/* ==========================================================================
   MAIN — sections de pages (hero, storytelling, galerie, FAQ, CTA…)
   Chargé en dernier. Styles spécifiques aux sections marketing.
   ========================================================================== */

/* --- HERO (éditorial, cinématique) --------------------------------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding-bottom: clamp(3.5rem, 9vh, 7rem); }
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video { width:100%; height:100%; object-fit: cover; }
/* Hero clair par défaut (fond blanc cassé). Voile très léger pour la profondeur. */
.hero__media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 70%, rgba(28,27,24,.05) 100%); }
.hero__inner { position: relative; padding-block: clamp(2rem, 6vh, 4.5rem); color: var(--c-ink); max-width: 1000px; }
.hero__eyebrow { color: var(--c-gold-dark); letter-spacing: .32em; }
.hero__title { color: var(--c-ink); font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-display); line-height: .98; letter-spacing: -.018em; max-width: 15ch; margin-top: var(--sp-md); }
.hero__sub { color: var(--c-ink-soft); max-width: 44ch; margin-top: var(--sp-lg); font-size: var(--fs-lead); }
.hero__actions { display: flex; gap: var(--sp-md); margin-top: var(--sp-xl); flex-wrap: wrap; }
.hero__scroll { position:absolute; bottom: var(--sp-md); left:50%; transform:translateX(-50%); z-index:2; color: var(--c-ink-soft); font-size: var(--fs-caption); letter-spacing: var(--ls-caption); text-transform: uppercase; display:flex; flex-direction:column; align-items:center; gap:.5rem; pointer-events:none; }
.hero__scroll::after { content:""; width:1px; height:34px; background: linear-gradient(currentColor, transparent); opacity:.5; }
@media (max-height: 720px) { .hero__scroll { display:none; } }

/* Si une vraie photo est ajoutée en fond, on rebascule en texte clair lisible. */
.hero:not(.hero--split):has(.hero__media img) .hero__media::after,
.hero:has(.hero__media video) .hero__media::after { background: linear-gradient(180deg, rgba(23,28,24,.20) 0%, transparent 34%, rgba(23,28,24,.66) 100%); }
.hero:not(.hero--split):has(.hero__media img) .hero__inner,
.hero:has(.hero__media video) .hero__inner { color: #fff; }
.hero:not(.hero--split):has(.hero__media img) .hero__title,
.hero:has(.hero__media video) .hero__title { color: #fff; }
.hero:not(.hero--split):has(.hero__media img) .hero__sub,
.hero:has(.hero__media video) .hero__sub { color: rgba(255,255,255,.88); }
.hero:not(.hero--split):has(.hero__media img) .hero__eyebrow,
.hero:has(.hero__media video) .hero__eyebrow { color: rgba(255,255,255,.85); }
.hero:not(.hero--split):has(.hero__media img) .hero__scroll,
.hero:has(.hero__media video) .hero__scroll { color: rgba(255,255,255,.85); }

/* --- HERO ÉDITORIAL SPLIT : texte clair à gauche, image nette à droite - */
.hero--split { min-height: min(88svh, 840px); display: grid; grid-template-columns: 1.06fr .94fr; align-items: stretch; padding-bottom: 0; }
.hero--split .hero__content { display: flex; align-items: center; background: var(--c-bg); padding: clamp(4.5rem, 9vh, 7rem) clamp(1.5rem, 4.5vw, 4.75rem); }
.hero--split .hero__inner { max-width: 580px; margin: 0; padding-block: 0; color: var(--c-ink); }
.hero--split .hero__eyebrow { justify-content: flex-start; }
.hero--split .hero__title { color: var(--c-ink); font-size: clamp(2.5rem, 1.1rem + 3.5vw, 4.25rem); line-height: 1.02; max-width: 13ch; }
.hero--split .hero__sub { color: var(--c-ink-soft); max-width: 42ch; }
.hero--split .hero__media { position: relative; inset: auto; height: 100%; }
.hero--split .hero__media::after { display: none; }   /* image nette, pas de voile */
.hero--split .hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 920px) {
  .hero--split { grid-template-columns: 1fr; min-height: auto; }
  .hero--split .hero__media { min-height: 46svh; order: -1; }
  .hero--split .hero__content { padding: clamp(3rem, 7vh, 4.5rem) var(--gutter) clamp(3.5rem, 8vh, 5rem); }
}

/* --- STORYTELLING (texte + image alternés) ------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xl); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__media { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); }
.split__media img { aspect-ratio: 3/4; object-fit: cover; width: 100%; transition: transform var(--dur-slow) var(--ease-out); }
.split__media:hover img { transform: scale(1.045); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: var(--sp-lg); } .split--reverse > :first-child { order: 0; } }

/* --- AMENITIES (grille icônes) ------------------------------------- */
.amenities { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-md); }
.amenity {
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-lg);
  padding: var(--sp-xl) var(--sp-md) var(--sp-lg); text-align: center;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.amenity:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--sh-md); }
.amenity__icon {
  width: 60px; height: 60px; margin: 0 auto var(--sp-md);
  display: grid; place-content: center; border-radius: 50%;
  background: color-mix(in srgb, var(--c-gold) 14%, transparent);
  color: var(--c-gold-dark); transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.amenity:hover .amenity__icon { background: var(--c-gold); color: #fff; }
.amenity__icon svg { width: 26px; height: 26px; }
.amenity h4 { font-size: 1.05rem; font-weight: 500; letter-spacing: .01em; }
@media (max-width: 820px){ .amenities { grid-template-columns: 1fr 1fr; } }

/* --- GALERIE (mosaïque) -------------------------------------------- */
.gallery { columns: 3; column-gap: var(--sp-sm); }
.gallery img { width:100%; margin-bottom: var(--sp-sm); border-radius: var(--r-lg); break-inside: avoid; box-shadow: var(--sh-xs); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out); }
.gallery img:hover { transform: scale(1.02); box-shadow: var(--sh-md); }
@media (max-width: 820px){ .gallery { columns: 2; } }
@media (max-width: 520px){ .gallery { columns: 1; } }

/* --- FAQ (accordéon) ----------------------------------------------- */
.faq { max-width: var(--container-text); margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__q { display:flex; justify-content: space-between; gap: var(--sp-md); width:100%; text-align:left; background:none; border:0; padding: var(--sp-md) 0; cursor:pointer; font-family: var(--font-display); font-size: var(--fs-h4); font-weight: var(--fw-semibold); }
.faq__icon { transition: transform var(--dur-base) var(--ease-out); flex-shrink:0; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a { overflow: hidden; height: 0; }
.faq__a-inner { padding-bottom: var(--sp-md); color: var(--c-ink-soft); }

/* --- CTA finale ----------------------------------------------------- */
.cta-band { text-align:center; }
.cta-band h2 { max-width: 22ch; margin: 0 auto var(--sp-md); }
.cta-band .hero__actions { justify-content: center; }

/* --- CHIFFRES ÉDITORIAUX (emplacement) — cartes « trajets » ---------
   NB : sélecteurs en enfant direct (>) impératifs — le <strong> contient
   lui aussi un <span data-count> qu'il ne faut surtout pas écraser. */
.figures { align-self: center; display: flex; flex-direction: column; gap: var(--sp-sm); }
.figure {
  position: relative;
  display: grid; grid-template-columns: minmax(5.5ch, auto) 1fr auto; align-items: center; gap: var(--sp-lg);
  padding: var(--sp-md) var(--sp-lg);
  background: var(--c-ivory);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: color-mix(in srgb, var(--c-gold) 45%, transparent);
}
/* flèche champagne, glisse vers la destination au survol */
.figure::after {
  content: "→";
  justify-self: end;
  font-family: var(--font-display);
  font-size: 1.4rem; line-height: 1;
  color: var(--c-gold);
  opacity: .4;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.figure:hover::after { transform: translateX(6px); opacity: 1; }
.figure > strong {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.1rem, 1.4rem + 2.2vw, 3rem); line-height: 1;
  color: var(--c-ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  transition: color var(--dur-base) var(--ease-out);
}
.figure:hover > strong { color: var(--c-gold-dark); }
.figure > span {
  color: var(--c-ink-soft); font-size: var(--fs-caption);
  text-transform: uppercase; letter-spacing: .16em; text-align: left; font-weight: 500;
  line-height: 1.5;
}
@media (max-width: 480px) {
  .figure { grid-template-columns: minmax(4.5ch, auto) 1fr; gap: var(--sp-md); }
  .figure::after { display: none; }
}

/* --- PAGE LES VILLAS — typologies éditoriales ----------------------- */
.villa-row .split { align-items: center; }

.villa-plans { display: grid; gap: var(--sp-sm); }
.villa-plans__main {
  position: relative; display: block;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--c-white); box-shadow: var(--sh-md);
}
.villa-plans__main img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.villa-plans__main:hover img { transform: scale(1.035); }
.villa-plans__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-sm); }
.villa-plans__thumb {
  position: relative; display: block;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--c-white); box-shadow: var(--sh-xs);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.villa-plans__thumb:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.villa-plans__thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.villa-plans__tag {
  position: absolute; left: var(--sp-sm); bottom: var(--sp-sm);
  padding: .35rem .85rem;
  background: color-mix(in srgb, var(--c-ivory) 92%, transparent);
  backdrop-filter: blur(6px);
  border-radius: var(--r-pill);
  font-size: var(--fs-caption); font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-ink);
  box-shadow: var(--sh-xs);
}

.villa-num {
  display: block;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1;
  color: var(--c-gold); letter-spacing: .01em;
}
.villa-amenities {
  color: var(--c-ink-soft); font-size: var(--fs-small);
  letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
}
.villa-specs { margin-top: var(--sp-md); border-top: 1px solid var(--c-line); max-width: 460px; }
.villa-specs li {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-md);
  padding: .95rem 0; border-bottom: 1px solid var(--c-line);
}
.villa-specs__k { color: var(--c-ink-soft); font-size: var(--fs-small); }
.villa-specs__v {
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.4rem; color: var(--c-ink); white-space: nowrap;
}
.villa-cta { display: flex; align-items: center; gap: var(--sp-lg); flex-wrap: wrap; margin-top: var(--sp-lg); }

/* --- LOCALISATION (carte) ------------------------------------------ */
.locmap { aspect-ratio: 16/9; border-radius: var(--r-lg); overflow:hidden; box-shadow: var(--sh-md); }
.loctimes { display:flex; gap: var(--sp-lg); flex-wrap: wrap; }
.loctime strong { font-family: var(--font-display); font-size: var(--fs-h3); color: var(--c-gold-dark); }

/* --- INVESTISSEMENT (cartes argument numérotées) ------------------- */
.invest-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-md); counter-reset: inv; }
.invest-grid .card {
  counter-increment: inv; position: relative;
  padding: var(--sp-xl) var(--sp-lg) var(--sp-lg);
  border: 1px solid var(--c-line);
}
.invest-grid .card::before {
  content: "0" counter(inv);
  display: block; margin-bottom: var(--sp-md);
  font-family: var(--font-display); font-weight: 400; font-size: 2.4rem; line-height: 1;
  color: var(--c-gold); letter-spacing: .01em;
}
.invest-grid .card::after {
  content: ""; position: absolute; left: var(--sp-lg); bottom: var(--sp-lg); width: 34px; height: 2px;
  background: var(--c-gold); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.invest-grid .card:hover::after { transform: scaleX(1); }
.invest-grid .card .card__title { font-size: var(--fs-h4); font-weight: var(--fw-semibold); }
@media (max-width: 820px){ .invest-grid { grid-template-columns:1fr; } }

/* ==========================================================================
   DESIGN BOOST — bandes photo, showcase, CTA immersif
   ========================================================================== */

/* Section resserrée quand une image plein cadre suit directement */
.section--tight { padding-bottom: clamp(2rem, 4vh, 3rem); }

/* Bande photo « showcase » : cadre large, coins doux, ombre profonde */
.showcase { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); aspect-ratio: 16 / 8; margin: 0; }
.showcase img { width: 100%; height: 100%; object-fit: cover; }

/* Grade photo global : chaleur et matière, comme un tirage édito */
.split__media img, .gallery img, .showcase img, .card__media img,
.cta-band__media img, .hero__media img { filter: saturate(1.06) contrast(1.03); }
@media (max-width: 700px) { .showcase { aspect-ratio: 4 / 3; border-radius: var(--r-lg); } }

/* CTA final immersif : photo plein cadre + voile + texte blanc */
.cta-band--image { position: relative; display: grid; place-items: center; min-height: 72svh; overflow: hidden; text-align: center; padding-block: clamp(4rem, 10vh, 8rem); }
.cta-band--image .cta-band__media { position: absolute; inset: 0; }
.cta-band--image .cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,14,24,.5) 0%, rgba(12,14,24,.68) 100%); }
.cta-band__inner { position: relative; z-index: 2; }
.cta-band--image .eyebrow { color: rgba(255,255,255,.85); justify-content: center; }
.cta-band--image h2 { color: #fff; }
.cta-band--image .lead { color: rgba(255,255,255,.9); }

/* ==========================================================================
   PAGES — polish transverse (s'applique à TOUTES les pages)
   Psychologie couleur : blanc = clarté · encre = confiance · or = action clé.
   ========================================================================== */

/* --- Formulaires Fluent Forms (contact / capture de leads) --------- */
.fluentform .ff-el-group { margin-bottom: var(--sp-md); }
.fluentform .ff-el-input--label label { font-size: var(--fs-small); font-weight: 500; color: var(--c-ink); letter-spacing: .01em; }
.fluentform .ff-el-form-control,
.frm-fluent-form input:not([type=submit]),
.frm-fluent-form textarea,
.frm-fluent-form select {
  width: 100%; padding: .95rem 1.1rem; background: var(--c-white); color: var(--c-ink);
  border: 1px solid var(--c-line); border-radius: var(--r-md); font: inherit;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.fluentform .ff-el-form-control:focus,
.frm-fluent-form input:focus, .frm-fluent-form textarea:focus, .frm-fluent-form select:focus {
  outline: none; border-color: var(--c-gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-gold) 18%, transparent);
}
.fluentform .ff-btn-submit {
  background: var(--c-gold); color: #fff; border: 0; border-radius: var(--r-pill);
  padding: 1rem 2.25rem; font-weight: 600; letter-spacing: .04em; cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.fluentform .ff-btn-submit:hover { background: var(--c-gold-dark); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(215,161,0,.28); }

/* --- Filtres (Les Terrains) : états + slider or ------------------- */
.filters select:hover, .filters input[type="range"]:hover { border-color: var(--c-stone); }
.filters select:focus { outline: none; border-color: var(--c-gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-gold) 16%, transparent); }
.filters__reset:hover { color: var(--c-gold-dark); }
input[type="range"] { accent-color: var(--c-gold); }

/* --- En-tête de page interne (helper réutilisable) ---------------- */
.page-intro { text-align: center; max-width: 760px; margin: 0 auto clamp(2.5rem, 5vh, 4rem); }
.page-intro .eyebrow { justify-content: center; }

/* --- Prose (pages de contenu : récit, générique) ------------------ */
.flow h2, .flow h3 { margin-top: var(--sp-lg); }
.flow a:not(.btn) { color: var(--c-gold-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.flow a:not(.btn):hover { color: var(--c-ink); }
.flow blockquote { border-left: 2px solid var(--c-gold); padding-left: var(--sp-md); margin-block: var(--sp-lg); font-family: var(--font-display); font-weight: 300; font-size: var(--fs-h4); color: var(--c-ink); }

/* --- Tableaux élégants (comparatifs, investissement) -------------- */
.flow table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); margin-block: var(--sp-md); }
.flow table th, .flow table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--c-line); }
.flow table th { text-transform: uppercase; letter-spacing: .1em; font-size: var(--fs-caption); color: var(--c-ink-soft); font-weight: 600; }
.flow table tr:hover td { background: var(--c-bg-warm); }

/* --- Cohérence des cartes terrain --------------------------------- */
.terrains-grid .card { border: 1px solid var(--c-line); }

/* ==========================================================================
   HERO PLEIN CADRE (façon maquette de référence) — grand titre serif blanc
   ========================================================================== */
.hero--full { min-height: 100svh; display: grid; align-items: center; }
.hero--full .hero__inner { max-width: var(--container); }
.hero--full .hero__title {
  font-size: clamp(3.4rem, 1.2rem + 7.6vw, 8rem); line-height: .92; font-weight: var(--fw-bold);
  color: #fff; margin-top: var(--sp-md); text-shadow: 0 2px 34px rgba(0,0,0,.34);
}
.hero--full .hero__eyebrow { color: rgba(255,255,255,.9); text-shadow: 0 1px 14px rgba(0,0,0,.4); }
.hero--full .hero__sub { color: rgba(255,255,255,.92); text-shadow: 0 1px 16px rgba(0,0,0,.4); max-width: 34ch; }
/* voile un peu plus présent en bas pour poser le titre + le CTA */
.hero--full .hero__media::after { background: linear-gradient(100deg, rgba(18,20,16,.66) 0%, rgba(18,20,16,.34) 40%, rgba(18,20,16,.06) 66%, rgba(18,20,16,0) 100%), linear-gradient(0deg, rgba(18,20,16,.34) 0%, rgba(18,20,16,0) 32%) !important; }
/* bouton contour blanc élégant sur l'image */
.hero--full .btn--ghost { --btn-fg: #fff; border-color: rgba(255,255,255,.6); background: transparent; }
.hero--full .btn--ghost:hover { background: #fff; color: var(--c-ink); border-color: #fff; }

/* ==========================================================================
   BANDEAU CHIFFRES (clair, icônes filaires — façon maquette)
   ========================================================================== */
.stats-band { background: var(--c-bg); }
.stat__icon { display: grid; place-content: center; margin: 0 auto var(--sp-sm); color: var(--c-gold-dark); }
.stat__icon svg { width: 30px; height: 30px; }

.hero--full .hero__media { background-size: cover; background-position: center; background-repeat: no-repeat; }


/* --- CO-SIGNATURE MARNY SUR LE HERO ---------------------------------
   Placée DANS la colonne de texte, sous le CTA : alignée avec le titre,
   et surtout hors de portée du bouton WhatsApp flottant (fixe en bas à
   droite) — plus aucun chevauchement possible. */
.hero__cobrand {
  display: flex; align-items: center; gap: var(--sp-sm);
  margin-top: clamp(2rem, 5vh, 3.25rem);
}
.hero__cobrand-label {
  font-family: var(--font-primary);
  font-size: .6875rem;                 /* 11px */
  font-weight: var(--fw-medium);
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.75);
  text-shadow: 0 1px 12px rgba(0,0,0,.5);
  white-space: nowrap;
}
.hero__cobrand-rule { width: 1px; height: 26px; background: rgba(255,255,255,.35); flex: 0 0 auto; }
.hero__cobrand-logo {
  height: 42px; width: auto; display: block;
  filter: brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0,0,0,.45));
  opacity: .92;
}
@media (max-width: 640px) {
  .hero__cobrand { gap: .6rem; margin-top: 2rem; }
  .hero__cobrand-rule { display: none; }
  .hero__cobrand-logo { height: 34px; }
  .hero__cobrand-label { font-size: .625rem; letter-spacing: .14em; white-space: normal; }
}
