/*-----------------------------------*\
  #style.css (MERGE) — Base complet d'origine + correctifs minimes
\*-----------------------------------*/

/**
 * copyright 2022 codewithsadee
 */

/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

  /**
   * colors
   */

  --dark-jungle-green: hsl(188, 63%, 7%);
  --prussian-blue: hsl(200, 69%, 14%);
  --raisin-black-1: hsl(227, 29%, 13%);
  --raisin-black-2: hsl(229, 17%, 19%);
  --yellow-green: hsl(89, 72%, 45%);
  --orange-soda: hsl(9, 100%, 62%);
  --cultured-1: hsl(0, 0%, 93%);
  --cultured-2: hsl(192, 24%, 96%);
  --misty-rose: hsl(7, 56%, 91%);
  --alice-blue: hsl(210, 100%, 97%);
  --seashell: hsl(8, 100%, 97%);
  --cadet: hsl(200, 15%, 43%);
  --white: hsl(0, 0%, 100%);
  --black: hsl(0, 0%, 0%);
  --opal: hsl(180, 20%, 62%);

  /**
   * typography
   */

  --ff-nunito-sans: "Nunito Sans", sans-serif;
  --ff-poppins: "Poppins", sans-serif;

  --fs-1: 1.875rem;
  --fs-2: 1.5rem;
  --fs-3: 1.375rem;
  --fs-4: 1.125rem;
  --fs-5: 0.875rem;
  --fs-6: 0.813rem;
  --fs-7: 0.75rem;

  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;

  /**
   * transition
   */

  --transition: 0.25s ease;

  /**
   * spacing
   */

  --section-padding: 100px;

  /**
   * shadow
   */

  --shadow-1: 0 5px 20px 0 hsla(219, 56%, 21%, 0.1);
  --shadow-2: 0 16px 32px hsla(188, 63%, 7%, 0.1);

}

/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li { list-style: none; }

a { text-decoration: none; }

a,
img,
span,
button,
ion-icon { display: block; }

button {
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

address { font-style: normal; }

ion-icon { pointer-events: none; }

html {
  font-family: var(--ff-nunito-sans);
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; } /* sécurité */

::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}

::-webkit-scrollbar-track { background: var(--white); }

::-webkit-scrollbar-thumb {
  background: var(--cadet);
  border-left: 2px solid var(--white);
}

/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.container { padding-inline: 15px; }

button, a { transition: var(--transition); }

.h1,
.h2,
.h3 {
  color: var(--dark-jungle-green);
  font-family: var(--ff-poppins);
  line-height: 1.3;
}

.h1 {
  font-size: var(--fs-1);
  line-height: 1;
}

.h2 { font-size: var(--fs-2); }

.h3 {
  font-size: var(--fs-4);
  font-weight: var(--font-weight, 700);
}

.h3 > a { color: inherit; }

.btn {
  position: relative;
  background: var(--orange-soda);
  color: var(--white);
  font-family: var(--ff-poppins);
  font-size: var(--fs-5);
  text-transform: var(--text-transform, capitalize);
  border: 1px solid var(--orange-soda);
  padding: 10px 20px;
  z-index: 1;
}

.btn:is(:hover, :focus) {
  background: var(--black);
  color: var(--dark-jungle-green);
  border-color: var(--black);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--white);
  transition: var(--transition);
  z-index: -1;
}

.btn:is(:hover, :focus)::before { width: 100%; }

.w-100 { width: 100%; }

.section-subtitle {
  color: var(--orange-soda);
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
  padding: 5px 20px;
  background: hsla(9, 100%, 62%, 0.1);
  width: max-content;
  border-radius: 50px;
  margin-inline: auto;
  margin-bottom: 15px;
}

.section-title {
  text-align: var(--text-align, center);
  margin-bottom: var(--margin-bottom, 50px);
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 14px;
  font-size: var(--fs-7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--white);
  border-radius: 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-badge.green { background: linear-gradient(135deg, #333333, #000000); }
.card-badge.orange { background: linear-gradient(135deg, #ff6a3d, #ff4500); }

.card-badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.has-scrollbar {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  overflow-x: auto;
  margin-inline: -15px;
  padding-inline: 15px;
  scroll-padding-left: 15px;
  padding-bottom: 60px;
  scroll-snap-type: inline mandatory;
}

.has-scrollbar > li {
  min-width: 100%;
  scroll-snap-align: start;
}

.has-scrollbar::-webkit-scrollbar-track {
  background: var(--cultured-2);
  outline: 2px solid var(--cadet);
  border-radius: 10px;
}

.has-scrollbar::-webkit-scrollbar-thumb {
  background: var(--cadet);
  border: 1px solid var(--cultured-2);
  border-radius: 10px;
}

.has-scrollbar::-webkit-scrollbar-button { width: 15%; }

/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header { position: relative; z-index: 2; }

.header-top {
  background: var(--prussian-blue);
  padding-block: 15px;
}

.header-top .container,
.header-top-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.header-top .container { gap: 8px 20px; }
.header-top-list { gap: 15px; }

.header-top-link {
  color: var(--white);
  font-size: var(--fs-6);
  font-weight: var(--fw-700);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.header-top-link:is(:hover, :focus) { color: var(--orange-soda); }

.header-top-link ion-icon {
  color: var(--orange-soda);
  font-size: 15px;
  --ionicon-stroke-width: 60px;
}

.header-top .wrapper,
.header-top-social-list {
  display: flex;
  align-items: center;
}

.header-top .wrapper { gap: 20px; }
.header-top-social-list { gap: 8px; }

.header-top-social-link {
  color: var(--white);
  font-size: 15px;
}

.header-top-btn {
  background: var(--orange-soda);
  color: var(--white);
  font-size: var(--fs-6);
  font-weight: var(--fw-700);
  padding: 4px 15px;
}

.header-top-btn:is(:hover, :focus) { --orange-soda: hsl(7, 72%, 46%); }

/* Masquer l'ancienne liste de réseaux si elle traîne encore quelque part */
.header-top-social-list { display: none !important; }

/* Conteneur à droite avec le CTA */
.header-top .wrapper,
.header-top-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

/* Petit texte rassurant */
.header-support {
  color: var(--white);
  font-size: var(--fs-6);
  opacity: 0.9;
  white-space: nowrap;
}

/* Bouton CTA */
.header-top-btn {
  background: var(--orange-soda);
  color: var(--white);
  font-size: var(--fs-6);
  font-weight: var(--fw-700);
  padding: 6px 18px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,.15);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.header-top-btn:is(:hover, :focus) {
  --orange-soda: hsl(7, 72%, 46%);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.2);
}

.header-bottom { background: var(--white); padding-block: 25px; }

@media (max-width: 576px) {
  .header-top-cta { gap: 10px; }
  .header-support { display: none; }
}

.header-bottom { background: var(--white); padding-block: 25px; }

.header-bottom .logo img {
  margin-inline: auto;
  height: 200px;
}

.navbar {
  background: var(--white);
  position: fixed;
  top: 0;
  left: -310px;
  max-width: 300px;
  width: 100%;
  height: 100%;
  box-shadow: 0 3px 10px hsla(0, 0%, 0%, 0.3);
  z-index: 5;
  padding: 60px 20px;
  visibility: hidden;
  transition: 0.15s ease-in;
}

.navbar.active {
  visibility: visible;
  transform: translateX(310px);
  transition: 0.25s ease-out;
}

.navbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--cultured-1);
  margin-bottom: 25px;
}

.navbar-top .logo img { width: 200px; }

.nav-close-btn ion-icon {
  font-size: 20px;
  --ionicon-stroke-width: 45px;
  padding: 5px;
}

.navbar-link {
  color: var(--cadet);
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
  text-transform: uppercase;
  padding-block: 15px;
}

.navbar-link:is(:hover, :focus) { color: var(--orange-soda); }

.overlay {
  position: fixed;
  inset: 0;
  background: hsla(0, 0%, 0%, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 4;
}

.overlay.active { opacity: 1; pointer-events: all; }

.header-bottom-actions {
  background: var(--white);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  padding-block: 15px 10px;
  box-shadow: -2px 0 30px hsla(237, 71%, 52%, 0.2);
  z-index: 3;
}

.header-bottom-actions-btn ion-icon {
  color: hsl(0, 0%, 10%);
  font-size: 20px;
  margin-inline: auto;
  margin-bottom: 5px;
  --ionicon-stroke-width: 40px;
  transition: var(--transition);
}

.header-bottom-actions-btn:is(:hover, :focus) ion-icon { color: var(--orange-soda); }

.header-bottom-actions-btn span {
  color: var(--cadet);
  font-family: var(--ff-poppins);
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
}

/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero {
  background: var(--cultured-2);
  padding-block: var(--section-padding);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 85vh;
  background-size: cover;
  background-position: center;
}

.hero .container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center;
  text-align: center;
}

.hero-title {
  order: 1;
  margin-bottom: 15px;
  color: #fff;
  white-space: nowrap;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.hero-subtitle { order: 2; display: block !important; text-align: center !important; margin: 0 auto; }
.hero-subtitle span {
  color: #fff;
  font-size: var(--fs-5);
  font-weight: var(--fw-700);
  white-space: nowrap;
}

/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about { padding-block: var(--section-padding); }

.about-banner { position: relative; margin-bottom: 40px; }

.about-banner > img { max-width: max-content; width: 100%; }

.about-banner .abs-img {
  position: absolute;
  bottom: 100px;
  left: 15px;
  width: 50%;
  border-radius: 4px;
}

.about .section-subtitle { margin-inline: 0; }

.about .section-title { --text-align: left; --margin-bottom: 15px; }

.about-text { color: var(--cadet); font-size: var(--fs-5); line-height: 1.7; margin-bottom: 30px; }

.about-list { margin-bottom: 30px; }

.about-item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.about-item-icon {
  background: var(--misty-rose);
  height: 45px;
  min-width: 45px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.about-item-icon ion-icon { color: var(--orange-soda); font-size: 18px; }

.about-item-text { color: var(--cadet); font-size: var(--fs-5); }

.about .callout {
  background: hsla(7, 78%, 53%, 0.05);
  color: var(--cadet);
  font-size: var(--fs-5);
  font-weight: var(--fw-500);
  line-height: 1.8;
  padding: 20px 25px;
  border-left: 4px solid var(--orange-soda);
  margin-bottom: 40px;
}

.about .btn { max-width: max-content; --text-transform: uppercase; }

/*-----------------------------------*\
  #SERVICE
\*-----------------------------------*/

.service { background: var(--cultured-2); padding-block: var(--section-padding); }

.service-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }

.service-card {
  position: relative;
  background: var(--white);
  text-align: center;
  padding: 40px 30px;
  box-shadow: var(--shadow-2);
}

.service-card .card-icon { width: max-content; margin-inline: auto; margin-bottom: 20px; }

.service-card .card-title { margin-bottom: 15px; }
.service-card .card-title > a:is(:hover, :focus) { color: var(--orange-soda); }

.service-card .card-text {
  color: var(--cadet);
  font-size: var(--fs-5);
  line-height: 1.8;
  margin-bottom: 25px;
}

.service-card .card-link {
  color: var(--opal);
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.service-card:is(:hover, :focus) .card-link { color: var(--orange-soda); }

.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--orange-soda);
  transition: var(--transition);
}

.service-card:is(:hover, :focus)::after { width: 100%; }

/*-----------------------------------*\
  #PROPERTY
\*-----------------------------------*/

.property { padding-block: var(--section-padding); }

.property-card { border: 1px solid var(--alice-blue); box-shadow: var(--shadow-2); }

.property-card .card-banner { position: relative; aspect-ratio: 2 / 1.5; overflow: hidden; }

.property-card .card-banner a { height: 100%; }

.property-card .card-banner img { height: 100%; object-fit: cover; transition: 0.5s ease; }

.property-card:hover .card-banner img { transform: scale(1.1); }

.property-card .card-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(0, 0%, 0%, 0.95), transparent 30%);
  pointer-events: none;
  z-index: 1;
}

.property-card .banner-actions {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  gap: 15px 10px;
  z-index: 1;
}

.banner-actions-btn {
  color: var(--white);
  font-size: var(--fs-6);
  line-height: 1;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  cursor: pointer;
}

.banner-actions-btn ion-icon { font-size: 16px; }
.banner-actions-btn:first-child { margin-right: auto; }
.banner-actions-btn:is(:hover, :focus) { color: var(--orange-soda); }

.property-card .card-content {
  padding: 30px 15px 15px;
  border-bottom: 1px solid hsla(0, 0%, 0%, 0.1);
}

.card-price {
  color: var(--orange-soda);
  font-family: var(--ff-poppins);
  font-size: var(--fs-5);
  margin-bottom: 5px;
}

.card-price strong { font-size: var(--fs-4); font-weight: var(--fw-600); }

.property-card .card-title { --font-weight: var(--fw-600); margin-bottom: 15px; }
.property-card .card-title > a:is(:hover, :focus) { color: var(--orange-soda); }

.property-card .card-text { color: var(--cadet); font-size: var(--fs-5); line-height: 1.8; margin-bottom: 25px; }

.property-card .card-list { display: flex; flex-wrap: wrap; align-items: center; row-gap: 15px; }

.property-card .card-item { padding-block: 5px; color: var(--cadet); font-size: var(--fs-5); }

.property-card .card-item:not(:last-child) {
  padding-right: 15px;
  border-right: 1px solid hsla(0, 0%, 0%, 0.2);
  margin-right: 20px;
}

.property-card .card-item :is(strong, ion-icon) { display: inline-block; }

.property-card .card-item ion-icon { margin-left: 2px; margin-bottom: -2px; }

.property-card .card-item span { margin-top: 5px; }

.card-footer {
  padding: 15px;
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.card-author { display: flex; align-items: center; gap: 10px; }

.author-avatar {
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
}

.author-name > a {
  color: var(--dark-jungle-green);
  font-family: var(--ff-poppins);
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
  margin-bottom: 3px;
}

.author-name > a:is(:hover, :focus) { color: var(--orange-soda); }

.author-title { color: var(--cadet); font-size: var(--fs-7); }

.card-footer-actions { display: flex; align-items: center; gap: 10px; }

.card-footer-actions-btn {
  background: var(--cultured-2);
  color: var(--cadet);
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.card-footer-actions-btn:is(:hover, :focus) {
  background: var(--orange-soda);
  color: var(--white);
}

/* Optionnel : masquer prix / footer agent */
.property-card .card-price { display: none; }
.property-card .card-footer { display: none; }

/*-----------------------------------*\
  #FEATURES
\*-----------------------------------*/

.features { background: var(--cultured-2); padding-block: var(--section-padding); }

.features-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 50px 20px; }

.features-list > li { width: calc(50% - 10px); }

.features-card {
  position: relative;
  background: var(--white);
  padding: 40px 15px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-1);
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
  cursor: default;
}

.features-card:hover { background: var(--orange-soda); transform: translateY(-4px); box-shadow: var(--shadow-2); }

.features-card .card-icon {
  background: var(--seashell);
  color: var(--orange-soda);
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 28px;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.features-card .card-icon ion-icon { --ionicon-stroke-width: 20px; }

.features-card:hover .card-icon { background: rgba(255,255,255,.18); color: var(--white); transform: scale(1.05); }

.features-card .card-title {
  color: var(--dark-jungle-green);
  font-family: var(--ff-poppins);
  font-size: var(--fs-6);
  font-weight: var(--fw-600);
  text-align: center;
  transition: color .25s ease;
}

.features-card:hover .card-title { color: var(--white); }

.features-card .card-text {
  color: var(--cadet);
  font-size: var(--fs-5);
  line-height: 1.6;
  text-align: center;
  margin-top: 8px;
  transition: color .25s ease;
}

.features-card:hover .card-text { color: var(--white); }

/*-----------------------------------*\
  #BLOG
\*-----------------------------------*/

.blog-card .card-meta-list,
.blog-content-bottom,
.blog-card .read-more-btn { display: none !important; }

.blog-content { padding: 22px 24px; }

.blog-title { font-size: 1.05rem; font-weight: var(--fw-700); margin-bottom: 8px; }

.blog-text { color: var(--cadet); font-size: var(--fs-6); line-height: 1.75; }

.blog { margin-top: 100px; }

/*-----------------------------------*\
  #CTA
\*-----------------------------------*/

.cta { background: linear-gradient(to bottom, var(--white) 50%, var(--raisin-black-1) 50%); }

.cta-card { background: var(--orange-soda); padding: 50px 25px; box-shadow: var(--shadow-2); }

.cta-card .card-content { max-width: max-content; margin-inline: auto; margin-bottom: 30px; }

.cta-card .card-title { color: var(--white); line-height: 1.3; margin-bottom: 15px; }

.cta-card .card-text { color: var(--white); font-size: var(--fs-5); line-height: 1.8; }

.cta-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--black);
  background: var(--white);
  box-shadow: var(--shadow-2);
  border-color: var(--white);
  margin-inline: auto;
}

.cta-btn:is(:hover, :focus) { background: none; color: var(--white); border-color: transparent; }

.cta-btn::before { background: var(--black); }

/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer { background: var(--raisin-black-1); color: var(--white); margin-bottom: 68px; }

.footer .container { padding-inline: 30px; }

.footer a { color: inherit; }

.footer-top { padding-top: 80px; padding-bottom: 40px; }

.footer-brand { margin-bottom: 70px; }

.footer-brand .logo { margin-bottom: 15px; }

.section-text { font-size: var(--fs-5); line-height: 1.8; margin-bottom: 30px; max-width: 45ch; }

.contact-list { display: grid; gap: 15px; margin-bottom: 30px; }

.contact-link { display: flex; align-items: flex-start; gap: 10px; }

.contact-link ion-icon { font-size: 18px; }

.contact-link :is(address, span) { font-size: var(--fs-5); transition: var(--transition); }

.contact-link:is(:hover, :focus) span { color: var(--orange-soda); }

.social-list { display: flex; align-items: center; gap: 20px; }

.footer-list:not(:last-child) { margin-bottom: 50px; }

.footer-list-title {
  font-family: var(--ff-poppins);
  font-size: var(--fs-3);
  font-weight: var(--fw-700);
  margin-bottom: 15px;
}

.footer-link { font-size: var(--fs-5); padding-block: 10px; }

.footer-link:is(:hover, :focus) { color: var(--orange-soda); }

.footer-bottom { background: var(--raisin-black-1); padding-block: 25px; }

.copyright { font-size: var(--fs-5); text-align: center; }

.copyright a { display: inline-block; }

.copyright a:is(:hover, :focus) { color: var(--orange-soda); }

/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/* >=600px */
@media (min-width: 600px) {
  :root { --fs-2: 1.875rem; }

  .container { max-width: 550px; margin-inline: auto; }

  .has-scrollbar { gap: 25px; margin-inline: -25px; padding-inline: 25px; scroll-padding-left: 25px; }
  .has-scrollbar > li { min-width: calc(50% - 12.5px); }

  .service-list > li { width: calc(50% - 15px); }

  .property .container { max-width: unset; padding-inline: 25px; }

  .cta-card { --fs-2: 1.5rem; }

  .footer-link-box { display: flex; justify-content: space-between; gap: 20px; }
}

/* >=768px */
@media (min-width: 768px) {
  :root { --fs-1: 2.5rem; --fs-5: 0.938rem; --fs-6: 0.875rem; }

  .container { max-width: 720px; }

  .btn { --fs-5: 1rem; padding: 12px 28px; }

  .header-top { padding-block: 5px; }
  .header-top .wrapper { margin-left: auto; }
  .header-top-social-list { gap: 12px; }
  .header-top-social-link { font-size: 1rem; }
  .header-top-btn { padding: 10px 20px; }

  .header-bottom-actions { all: unset; display: flex; align-items: center; gap: 10px; }
  .header-bottom .container { display: flex; justify-content: space-between; align-items: center; }
  .header-bottom-actions-btn ion-icon { margin-bottom: 0; }
  .header-bottom-actions-btn span { display: none; }
  .header-bottom-actions-btn { background: var(--white); width: 50px; height: 50px; box-shadow: var(--shadow-2); }

  .hero-content { max-width: 400px; }

  .about .section-title { max-width: 30ch; }
  .about-text { max-width: 55ch }
  .about-list { display: grid; grid-template-columns: 1fr 1fr; }

  .features-list > li { width: calc(33.33% - 13.33px); }
  .features-card { gap: 20px; }
  .features-card .card-icon { width: 80px; height: 80px; font-size: 32px; }
  .features-card .card-title { --fs-6: 1.125rem; }

  .blog-card { --fs-7: 0.875rem; }
  .blog-title { font-size: 1.25rem; }
  .blog .card-meta-list { gap: 30px; }

  .cta-card { --fs-2: 1.625rem; }

  .footer { margin-bottom: 0; }
}

/* >=992px */
@media (min-width: 992px) {
  :root { --fs-1: 3.125rem; --fs-4: 1.375rem; }

  .container { max-width: 970px; }
  .btn { padding: 15px 40px; }

  .header-top-list, .header-top .wrapper { gap: 30px; }

  .hero-content { max-width: unset; margin-bottom: 0; }
  .hero .container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }

  .about .container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
  .about-banner { margin-bottom: 0; }
  .about-banner > img { width: 100%; }

  .service-list > li { width: calc(33.33% - 20px); }

  .property-card .card-content { padding-inline: 30px; }
  .card-footer { padding: 20px 30px 30px; }

  .features-list { column-gap: 30px; }
  .features-list > li { width: calc(25% - 30px); }

  .blog-title { font-size: 1.375rem; }

  .cta-card {
    --fs-2: 1.875rem;
    --fs-5: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
  }
  .cta-card :is(.card-content, .cta-btn) { margin: 0; }

  .footer-top .container { display: flex; justify-content: space-between; }
  .footer-brand { max-width: 300px; margin-bottom: 0; }
  .footer-link-box { flex-basis: 550px; }
}

/* >=1200px */
@media (min-width: 1200px) {
  :root { --fs-2: 2.75rem; --fs-4: 1.5rem; }

  .container { max-width: 1200px; }
  .has-scrollbar > li { min-width: calc(33.33% - 16.66px); }

  .header-bottom { padding-block: 30px; }
  .header-bottom-actions-btn:last-child, .navbar-top, .overlay { display: none; }
  .navbar, .navbar.active { all: unset; }

  .navbar-list { display: flex; align-items: center; gap: 30px; }
  .navbar-link { color: var(--dark-jungle-green); --fs-5: 1.125rem; text-transform: capitalize; }

  .header-bottom > .container { display: flex; align-items: center; justify-content: space-between; }
  .header-bottom .logo img { height: 152px; width: auto; }

  .hero-text { padding-left: 30px; max-width: 450px; margin-bottom: 40px; }

  .features-card .card-icon { width: 100px; height: 100px; font-size: 45px; }
  .features-card .card-title { --fs-6: 1.375rem; }

  .cta-card { --fs-2: 2.25rem; padding-inline: 60px; }

  .footer { --fs-5: 1rem; }
  .footer-link-box { flex-basis: 700px; }
}

/* ==== NAV full-bleed sans liseré (desktop) ==== */
@media (min-width:1200px){
  .header-bottom{
    position: sticky; top:0; z-index:1000;
    padding-block:12px;
    background: transparent !important;
    box-shadow: none !important;
    position: relative;
    display: flow-root;
    margin: 0 !important;
  }
  .header-bottom::before{
    content:"";
    position:absolute;
    top:0;
    bottom:-3px;
    left:50%;
    width:100vw;
    transform:translateX(-50%);
    background:#fff;
    box-shadow:none;
    z-index:-1;
    pointer-events:none;
  }
  .header-bottom::after{
    content:"";
    position:absolute;
    left:50%; transform:translateX(-50%);
    bottom:-1px;
    width:100vw; height:1px;
    background: rgba(0,0,0,.08);
    z-index:-1;
    pointer-events:none;
  }
}

/* Sécurité anti-débordement horizontal du 100vw sur desktop */
html { overflow-x: hidden; }

/*-----------------------------------*\
  #RENTUP HOME
\*-----------------------------------*/

.hero-rentup {
  background-image: url("../images/rentup-banner.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}
.hero-rentup::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.hero-rentup .container {
  position: relative;
  z-index: 1;
  padding-top: 8rem;
  padding-bottom: 6rem;
}
.rentup-heading { color: #fff; text-align: left; margin-bottom: 2rem; }
.rentup-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr)) 64px;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  align-items: stretch;
}
.rentup-form .box {
  padding: 1rem 1.25rem;
  border-left: 1px solid #e5e7eb;
}
.rentup-form .box:first-child { border-left: none; }
.rentup-form span { display:block; font-size: .75rem; color:#6b7280; margin-bottom:.25rem; }
.rentup-form input, .rentup-form select {
  width: 100%;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
}
.rentup-form h4 { font-size: .95rem; margin: .5rem 0 0; color: #111827; }
.rentup-form .btn1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 64px;
  background: #10b981;
  color: #fff;
  border: none;
}
@media (max-width: 1024px) {
  .hero-rentup .container { padding-top: 6rem; padding-bottom: 4rem; }
  .rentup-form { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rentup-form .btn1 { width: 100%; height: 56px; }
}

/*-----------------------------------*\
  #ULTRA-RESPONSIVE ENHANCEMENTS
\*-----------------------------------*/

/* 1) Micro breakpoints (<=480) */
@media (max-width: 480px){
  .container{ padding-inline: 12px; text-align: center; }
  .section-title{ --margin-bottom: 32px; }
  .hero{ padding-block: 64px; }
  .hero-title{ white-space: normal; font-size: clamp(1.6rem, 7vw, 2.25rem); }
  .hero-subtitle span{ white-space: normal; font-size: 0.95rem; }

  .header-bottom .logo img{ max-height: 152px; width:auto; }
  .navbar-link{ font-size: 0.9rem; }

  .service-list > li, .features-list > li{ width: 100%; }

  .property-card .card-content{ padding: 20px 14px 14px; }
  .property-card .card-text{ font-size: 0.9rem; }
}

@media (max-width: 360px){
  .header-top{ padding-block: 10px; }
  .btn{ padding: 10px 16px; }
  .section-subtitle{ font-size: 0.8rem; }
}

/* 2) Petites hauteurs */
@media (max-height: 700px){
  .hero{ min-height: 70vh; padding-block: 56px; }
}

/* 3) Tablettes (<=1024) */
@media (max-width: 1024px){
  .hero-rentup .container{ padding-top: 6rem; padding-bottom: 4rem; }
  .rentup-form{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rentup-form .btn1{ width: 100%; height: 56px; }
}

/* 4) Téléphones (<=640) */
@media (max-width: 640px){
  .rentup-form{ grid-template-columns: 1fr; }
}

/* 5) Ajustements 768–992 */
@media (min-width: 768px) and (max-width: 991.98px){
  .hero-title{ font-size: clamp(2rem, 4.5vw, 2.6rem); }
}

/* 6) Grands écrans */
@media (min-width: 1440px){
  .section-text{ max-width: 60ch; }
}

/* 7) Accessibilité */
:focus-visible{
  outline: 2px dashed rgba(255,106,61,.8);
  outline-offset: 2px;
}

/* 8) Masquer le CTA sur mobile */
@media (max-width: 768px){
  .cta{ display:none !important; }
}

/* Espace avant le footer quand CTA masqué */
@media (max-width: 768px) {
  .about,
  .service,
  .property,
  .features,
  .blog {
    margin-bottom: 60px;
  }
  .footer { padding-top: 40px; }
}

/* ===========================
   NOS AVANTAGES — responsive only
   =========================== */

/* Téléphones : 1 colonne */
@media (max-width: 600px){
  #avantages .features-list{
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0; padding: 0;
  }
  #avantages .features-list > li{ width: auto !important; }

  #avantages .features-card{ padding: 20px 16px; text-align: center; }
  #avantages .card-icon{ width: 56px; height: 56px; font-size: 26px; }
  #avantages .card-title{ font-size: 1.05rem; }
  #avantages .card-text{ font-size: .95rem; line-height: 1.55; }
}

/* Petites tablettes : 2 colonnes */
@media (min-width: 601px) and (max-width: 991.98px){
  #avantages .features-list{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  #avantages .features-list > li{ width: auto !important; }
  #avantages .features-card{ padding: 24px 18px; }
  #avantages .card-icon{ width: 64px; height: 64px; font-size: 30px; }
  #avantages .card-title{ font-size: 1.1rem; }
  #avantages .card-text{ font-size: .98rem; }
}

@media (max-width: 360px){
  #avantages .features-card{ padding: 18px 14px; }
}

/* =======================================================
   PATCH RESPONSIVE ciblé
   - corrige l'espace blanc droite vers 585px (anti-overflow)
   - centre totalement le footer sur mobile
   - ne change pas le desktop
   ======================================================= */
@media (max-width: 991.98px){
  /* Empêche l’overflow créé par marges négatives des carrousels */
  .has-scrollbar{
    margin-inline: 0 !important;
    padding-inline: 0 !important;
    overflow-x: auto;
    scroll-padding-left: 0;
  }
  .has-scrollbar > li{ min-width: 100%; }

  /* Sécurités globales */
  html, body{ width:100%; overflow-x:hidden; }
  section, header, footer, .container{
    max-width:100%;
    overflow-x: clip; /* coupe les 1-2px de débordement */
  }
  /* Navbar off-canvas: s'assurer qu'elle ne dépasse pas visuellement */
  .navbar{ max-width: 100vw; }

  /* Logo plus compact en mobile pour éviter le poussage horizontal */
  .header-bottom .logo img{ height: 120px; width:auto; }
}

/* Footer centré en mobile */
@media (max-width: 768px){
  .footer-top .container,
  .footer-link-box,
  .footer-brand,
  .contact-list,
  .footer-list{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
  }
  .footer .section-text{ margin-left:auto; margin-right:auto; }
  .social-list{ justify-content:center; }
  .footer-list{ width:100%; }
  .footer-link{ display:inline-block; }
}

/* Masquer la section CTA sur toutes les largeurs "responsive" (<1200px) */
@media (max-width: 1199.98px){
  .cta { 
    display: none !important;
  }
}

/* 1) Masquer la CTA sur toutes les largeurs "responsive" (<1200px) */
@media (max-width: 1199.98px){
  .cta{ display:none !important; }
}

/* 2) Éviter que la dernière section visible (ex: .blog) colle au footer
      quand la CTA est masquée, de 768px à 1199px */
@media (min-width: 768px) and (max-width: 1199.98px){
  .about, .service, .property, .features, .blog{
    margin-bottom: clamp(48px, 6vw, 96px); /* espace avant le footer */
  }
  /* anti-collapsing : privilégie le padding si tes marges s’effondrent */
  .blog{ padding-bottom: 24px; }
}

/* 3) Centrer tout le contenu du footer sur mobile (≤767px) */
@media (max-width: 767.98px){
  .footer-top .container,
  .footer-link-box,
  .footer-brand,
  .contact-list,
  .footer-list{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
  }
}

/* 4) Sécurité anti-débordement horizontal pour éviter la “barre blanche” */
html, body{ overflow-x: hidden; }

/* ================================
   ABOUT — centrage en responsive
   (ne change rien au desktop >= 1200px)
   ================================ */
@media (max-width: 1199.98px){
  /* conteneur en colonne, tout centré */
  #about .container{
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
  }

  /* titres & sous-titres vraiment centrés */
  #about .section-subtitle{ margin-inline: auto; }
  #about .section-title{ --text-align: center; }
  #about .about-text{ margin-inline: auto; max-width: 65ch; }

  /* figure centrée + image secondaire non-absolue pour éviter les débordements */
  #about .about-banner{ margin: 0 auto 16px; text-align: center; }
  #about .about-banner > img{ margin-inline: auto; }
  #about .about-banner .abs-img{
    position: static;
    width: min(70%, 380px);
    margin: 12px auto 0;
  }

  /* items : centrés et lisibles */
  #about .about-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px 16px;
    width: 100%;
    justify-items: center;
  }
  #about .about-item{
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  #about .about-item-text{ text-align: center; }

  /* callout + bouton centrés */
  #about .callout{
    text-align: center;
    margin-inline: auto;
    max-width: 65ch;
  }
  #about .btn{ margin-inline: auto; }
}

/* ===============================
   HERO — correctifs responsive
   (wrap du titre + tailles fluides)
   =============================== */
@media (max-width: 1199.98px){
  .hero .container{
    padding-inline: 16px;
    max-width: 900px;
    text-align: center;
  }

  /* Le titre peut ENFIN revenir à la ligne */
  .hero-title{
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    line-height: 1.15;
    margin: 0 0 10px;
    /* taille fluide sur tablettes & mobiles */
    font-size: clamp(1.7rem, 5.5vw, 2.6rem);
  }

  /* Sous-titre idem (stop au nowrap) */
  .hero-subtitle,
  .hero-subtitle span{
    display: block;
    white-space: normal !important;
    overflow-wrap: anywhere;
    hyphens: auto;
    font-size: clamp(0.9rem, 2.4vw, 1rem);
  }

  /* Sécurité anti-débordement horizontal */
  .hero, .hero .container, .hero-title, .hero-subtitle{ max-width: 100%; }
}

/* Ajuste un peu la taille du titre entre 600 et 992 px */
@media (min-width: 600px) and (max-width: 991.98px){
  .hero-title{ font-size: clamp(2rem, 4.2vw, 2.6rem); }
}

/* ===========================
   FOOTER plus clair (meilleure lisibilité du logo)
   =========================== */

/* Choisis ici la teinte exacte du footer (plus claire que hsl(227,29%,13%)) */
:root{
  --footer-bg: hsl(227, 25%, 22%); /* ≈ #242c3a — ajuste si besoin */
}

/* Appliquer au footer */
.footer,
.footer-bottom{
  background: var(--footer-bg) !important;
}

/* Harmoniser la transition de couleur depuis la section CTA (desktop) */
.cta{
  background: linear-gradient(to bottom, var(--white) 50%, var(--footer-bg) 50%) !important;
}

/* Légère amélioration de contraste du texte dans le footer */
.footer .section-text,
.footer-link,
.contact-link :is(address, span){
  color: rgba(255,255,255,.92);
}

/* ===== Centrer UNIQUEMENT la barre du haut en responsive ===== */
@media (max-width: 991.98px){
  .header-top { text-align: center; }
  .header-top .container {
    justify-content: center !important;
  }
  .header-top-list {
    justify-content: center !important;
  }
  .header-top .wrapper,
  .header-top-cta {
    margin-left: 0 !important;
    justify-content: center !important;
  }
  .header-support {
    text-align: center;
    white-space: normal; /* garde tout visible, enlève si tu préfères une seule ligne */
  }
}

/* Dots pour carrousels (mobile/tablette) */
@media (max-width: 991.98px){
  .carousel-dots{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    margin-top:16px;
    user-select:none;
  }
  .carousel-dot{
    width:8px; height:8px;
    border-radius:999px;
    background: rgba(0,0,0,.2);
    transition: width .2s ease, background .2s ease, transform .2s ease;
  }
  .carousel-dot.is-active{
    width:20px;
    background: var(--orange-soda);
    transform: translateY(-1px);
  }
  /* un peu d’air sous les listes pour les dots */
  #property .has-scrollbar, 
  #blog .has-scrollbar{
    padding-bottom: 28px;
  }
}
