/* ============================================
   KeyZen — Composants spécifiques
   ============================================ */

/* ============== HEADER ============== */
/* CR 09/2026 — Retour client : le header apparaissait « fondu » dans
   le fond de page (beige). On lui donne désormais un fond blanc opaque
   + liseré + ombre douce dès le chargement pour créer un contraste
   franc avec la page. L'état .scrolled renforce l'ombre. */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(9, 71, 19, 0.04), 0 4px 12px rgba(9, 71, 19, 0.05);
  transition: background var(--t-med) var(--ease), border-color var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
}
.site-header.scrolled {
  background: var(--surface);
  border-bottom-color: var(--line-strong);
  box-shadow: 0 2px 4px rgba(9, 71, 19, 0.06), 0 8px 24px rgba(9, 71, 19, 0.08);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}

/* ==========================================================
   CR 08/2026 — Layout à 2 étages : logo centré + menu + actions
   Structure (desktop ≥ 900px) :
     .header-container
       ├─ .header-top      → Étage 1 : logo centré (seul)
       ├─ .header-bottom   → Étage 2 : nav centrée + actions à droite (absolu)
   Sur mobile (< 900px) : layout horizontal + burger.
   ========================================================== */
.header-stacked .header-container {
  position: relative;
  display: block;              /* casse le flex du .container global */
  padding-top: 0.75rem;
  padding-bottom: 0;
  height: 100%;
}
.header-stacked .header-top {
  display: flex;
  justify-content: center;     /* logo centré */
  align-items: center;
  min-height: 60px;
  padding: 0.35rem 0 0.5rem;
}

/* ==========================================================
   CR 09/2026 (Sprint 1 · F1) — Bascule burger déplacée à 1080px.
   Justification : à 1086px (résolution la plus courante des laptops 13"
   en zoom 125 %), les 7 items de nav (543px) + logo (255px) + actions
   (430px) dépassaient largement la largeur du container utile. Le
   premier lien de nav sortait à left: -24px. Bascule burger anticipée
   pour éviter la compression désespérée qui existait précédemment via
   @media (min-width: 901px) and (max-width: 1180px).
   ========================================================== */

/* Étage 2 desktop (≥ 1081px) : nav + actions sur la même ligne flex.
   Nav prend l'espace disponible et se centre, actions collées à droite. */
@media (min-width: 1081px) {
  .header-stacked .header-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.15rem;
  }
  .header-stacked .nav-primary {
    flex: 1 1 auto;
    justify-content: center;
    gap: 1.6rem;
    padding: 0;
    /* Laisse la nav rétrécir plutôt que déborder */
    min-width: 0;
    flex-wrap: nowrap;
  }
  .header-stacked .nav-primary a {
    white-space: nowrap;
  }
  .header-stacked .header-actions {
    position: static;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    z-index: 2;
  }
  /* Ajuste la hauteur des éléments pour un rendu compact et aligné */
  .header-stacked .header-actions .header-cta {
    padding: 0.55rem 1.1rem;
    font-size: 0.82rem;
  }
}

/* ==========================================================
   CR 09/2026 (Sprint 1 · F1 bis) — Compression laptop 1081\u20131359px.
   Signalé par le verifier : à 1280px, le budget total (logo 255 + nav 728
   + actions 430 + gaps ~40 = ~1270px) dépasse le container utile (1193px).
   Cette règle compresse chirurgicalement 3 zones pour libérer ~120px :
     - Nav : gap 1.6rem → 1rem, font-size 0.88rem → 0.8rem  (\u2248 60px)
     - Actions : gap 0.85rem → 0.55rem, suffixe wordmark caché  (\u2248 15px)
     - CTA + Accès voyageur : padding horizontal réduit  (\u2248 20px)
   Au-dessus de 1360px, le layout confortable par défaut reprend.
   ========================================================== */
@media (min-width: 1081px) and (max-width: 1359px) {
  .header-stacked .nav-primary { gap: 1rem; }
  .header-stacked .nav-primary a { font-size: 0.8rem; letter-spacing: 0.02em; }
  .header-stacked .header-actions { gap: 0.55rem; }
  .header-stacked .header-actions .header-cta {
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
  }
  .header-stacked .header-actions .header-travellers {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
  }
  /* Suffixe " · Conciergerie" masqué en-dessous de 1360px pour libérer
     ~75px sur le logo (le wordmark "KeyZen" seul reste parfaitement lisible). */
  .logo-wordmark-suffix { display: none; }
  /* Sélecteur langue plus compact */
  .lang-mini button { padding: 0.3rem 0.6rem; }
}

/* Sur mobile / tablette / laptop 13" (≤ 1080px) : layout horizontal
   compact avec burger. --header-h à 76px. */
@media (max-width: 1080px) {
  :root { --header-h: var(--header-h-mobile, 76px); }
  .header-stacked .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
  }
  .header-stacked .header-top {
    padding: 0;
    justify-content: flex-start;
    min-height: 0;
  }
  .header-stacked .header-actions {
    position: static;
    transform: none;
    height: auto;
  }
  /* Le CTA "Devis offert" reste caché sous 1080px (accessible dans le menu burger) */
  .header-stacked .header-actions .header-cta { display: none; }
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex; align-items: center; gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover { color: var(--ink); }
.logo-mark-img {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
/* Wordmark : "KeyZen" toujours visible, " · Conciergerie" affiché à partir de ≥ md
   IMPORTANT : white-space:nowrap empêche le retour à la ligne quand
   l'espace du header est étroit (breakpoint intermédiaire) */
.logo-wordmark {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  line-height: 1;
}
.logo-wordmark-suffix {
  color: var(--text-soft);
  font-size: 0.82em;
  letter-spacing: 0.04em;
  font-weight: 400;
  white-space: nowrap;
}
/* CR 09/2026 (Sprint 1 \u00b7 F1) : suffixe wordmark cach\u00e9 \u00e0 partir de 1080px
   pour libérer la place au burger + logo compact. */
@media (max-width: 1080px) {
  .logo-wordmark-suffix { display: none; }
}
/* Legacy : ancien rond "K" — gardé au cas où d'autres composants l'utiliseraient */
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-contrast);
  font-size: 0.95rem;
  font-weight: 500;
  flex-shrink: 0;
}
/* Logo image dans le footer */
.footer-logo {
  display: block;
  width: 180px;
  height: auto;
  max-width: 100%;
  margin-bottom: 1rem;
}
.nav-primary {
  display: flex; align-items: center; gap: 2.25rem;
}
.nav-primary a {
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  position: relative;
  padding: 0.25rem 0;
  color: var(--text);
  opacity: 0.75;
  transition: opacity var(--t-fast) var(--ease);
}
.nav-primary a:hover, .nav-primary a.active { opacity: 1; }
.nav-primary a.active::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--accent);
}
.nav-right { display: flex; align-items: center; gap: 1rem; }

.burger {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.burger span { display: block; width: 16px; height: 1px; background: var(--text); position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--text);
}
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }

/* Croix de fermeture dans le menu mobile ouvert — CR 08/2026 point 8 */
.nav-close {
  position: absolute;
  top: 1.25rem;
  right: var(--container-pad, 1.25rem);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  z-index: 2;
}
.nav-close:hover {
  background: color-mix(in oklab, var(--accent, #094713) 8%, transparent);
  border-color: var(--accent);
}
/* Cachée par défaut (le rendu conditionnel côté React s'en occupe déjà,
   mais on force au cas où le menu desktop la laisse dans le DOM) */
.nav-primary:not(.open) .nav-close { display: none; }

/* Backdrop du menu mobile — CR 08/2026 point 8 */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 71, 19, 0.35);
  backdrop-filter: blur(4px);
  z-index: 99;
  animation: nav-backdrop-in 0.2s ease-out;
}
@keyframes nav-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* CTA mobile dans le menu ouvert — CR 08/2026 point 8 */
.nav-mobile-cta {
  display: none !important;
}

/* CR 09/2026 (Sprint 1 · F1) : breakpoint pass\u00e9 de 900px \u00e0 1080px.
   Le burger prend le relais d\u00e8s les laptops 13" (\u2264 1080px). */
@media (max-width: 1080px) {
  .nav-primary { display: none; }
  .burger { display: inline-flex; }
  /* CR 17/09/2026 — Refonte du menu propriétaire mobile pour aligner
     l'esthétique sur le menu voyageur (retour cliente : menu actuel
     trop imposant, se fond dans le fond beige).
     Changements :
       - Fond blanc franc (contraste visible sur beige)
       - Ancrage sous le header (position: absolute) au lieu de fullscreen
       - Ombre douce + bordure inférieure pour délimiter le panneau
       - Séparateurs entre items (comme voyageur)
       - Animation translateY descendante (au lieu de translateX)
       - Police 1.15rem sans-serif au lieu de 1.35rem serif
     L'identité propriétaire reste marquée par la couleur d'accent
     (vert palmier) et la structure globale du site. */
  .nav-primary.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    padding: 3.5rem 1.25rem 1.5rem;
    gap: 0;
    align-items: stretch;
    overflow: auto;
    max-height: calc(100vh - var(--header-h));
    z-index: 100;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(9, 71, 19, 0.10);
    animation: nav-open-in 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
  }
  /* CR 09/2026 (Sprint 3 bis \u00b7 F5 comp) \u2014 Alignement typographique
     avec le menu voyageur ouvert. Auparavant, la font-size \u00e0 2rem
     produisait un \u00e9cart de 17px avec le menu voyageur (0.95rem) \u2014
     incoh\u00e9rence UX pour un utilisateur qui switch entre les 2 univers.
     R\u00e9duite \u00e0 1.35rem (~22px) : reste \u00e9ditorial en serif, plus proche
     du menu voyageur qui monte lui \u00e0 1.15rem. */
  /* Items : plus discrets, séparés par une ligne fine (parité voyageur).
     La font-size 1.15rem sans-serif remplace le 1.35rem serif jugé trop
     imposant par la cliente. */
  .nav-primary.open a {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.25;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
    position: relative;
  }
  .nav-primary.open a:last-of-type {
    border-bottom: 0;
  }
  /* CR 09/2026 (Sprint 1 \u00b7 F8) : indicateur visuel de l'item actif
     dans le menu burger ouvert (barre verticale accent \u00e0 gauche
     + texte en couleur accent). Auparavant, aucune distinction visuelle
     ne signalait la page en cours \u2014 l'utilisateur se perdait. */
  .nav-primary.open a.active {
    color: var(--accent);
  }
  /* CR 17/09/2026 — Barre d'actif décalée à left: 0 (le conteneur passe
     en overflow:auto avec padding-left standard, une valeur négative
     serait coupée par le clipping). */
  .nav-primary.open a.active::before {
    content: "";
    position: absolute;
    left: -0.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 22px;
    border-radius: 2px;
    background: var(--accent);
  }
  /* Le soulignement discret d\u00e9j\u00e0 pr\u00e9sent en desktop (a.active::after)
     serait \u00e9crasant en font-size 2rem : on le neutralise en mode burger. */
  .nav-primary.open a.active::after { display: none; }
  .nav-primary.open .nav-mobile-cta {
    display: inline-flex !important;
    margin-top: 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    align-self: stretch;
    justify-content: center;
    padding: 1rem 1.5rem;
  }
  .nav-backdrop { display: block; }
}

/* CR 17/09/2026 — Slide-in descendant (parité menu voyageur). L'ancien
   translateX faisait glisser depuis la droite, incohérent avec un dropdown
   ancré sous le header. Le menu descend maintenant, feedback plus naturel. */
@keyframes nav-open-in {
  from { transform: translateY(-6%); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-primary.open { animation: none; }
  .nav-backdrop { animation: none; }
}

/* ============== HERO ============== */
/* CR 09/2026 (Sprint 2 · F6) — Hauteur hero réduite.
   Avant : padding-top calc(header-h + space-8) = 132 + 64 = 196px,
   padding-bottom section-y jusqu'\u00e0 128px \u2014 \u00e0 quoi s'ajoutait un
   visual "tall" 3/5 de 742px de haut. Total : 1307px de hero, le CTA
   principal invisible sans scroll m\u00eame sur laptop 1440\u00d7900.
   Après : padding-top r\u00e9duit \u00e0 space-6 (32px) et padding-bottom
   compress\u00e9. Hauteur cible : < 900px sur desktop 1440. */
.hero {
  padding-top: calc(var(--header-h) + var(--space-6));
  padding-bottom: clamp(3rem, 5vw, 5rem);
  background: var(--hero-bg, var(--bg));
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
/* CR 09/2026 (Sprint 1 \u00b7 F3) :
   - grid 1 colonne d\u00e9s 900px (inchang\u00e9)
   - min-width: 0 sur les items du grid \u00e9vite le flex/grid-blowout
     quand les enfants (Reveal, Visual) ont des tailles impos\u00e9es. */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid > div { min-width: 0; }
}

/* CR 09/2026 (Sprint 1 \u00b7 F3) : ratio hero adaptatif sur mobile.
   Sur desktop, le visual principal est en ratio 3/5 (\u201etall\u201d) qui
   pouvait projeter 625px de hauteur sur iPhone SE \u2014 le CTA n'\u00e9tait
   jamais visible sans scroll. On force un ratio 4/5 sous 900px et
   16/10 (\u201ewide\u201d) sous 600px. Le CTA reste ainsi dans le premier \u00e9cran. */
/* CR 09/2026 (Sprint 2 \u00b7 F6) : ratio hero adaptatif étendu.
   - Desktop confort (\u2265 1361px) : ratio 3/5 (tall) \u2014 pleine ampleur.
   - Laptop (1081\u20131360px) : ratio 4/5 \u2014 hauteur r\u00e9duite ~30%,
     CTA visible sans scroll m\u00eame sur laptop 13" 1280\u00d7800.
   - Tablette (\u2264 900px) : ratio 4/5 conserv\u00e9.
   - Mobile (\u2264 600px) : ratio 16/10 (wide) \u2014 hauteur minimale. */
@media (max-width: 1360px) {
  .hero .visual.tall { aspect-ratio: 4 / 5; }
}
@media (max-width: 600px) {
  .hero .visual.tall { aspect-ratio: 16 / 10; }
  /* Espace hero encore r\u00e9duit sur mobile (header mobile 76px). */
  .hero {
    padding-top: calc(var(--header-h) + var(--space-5));
  }
}
/* CR 09/2026 (Sprint 3 \u00b7 F22) \u2014 iPhone en paysage : le hero prenait
   toute la hauteur visible (414\u00d7896 rotation \u2192 896\u00d7414), le CTA
   principal restait sous le fold. On raccourcit encore padding + visual
   pour que le titre + CTA rentrent dans un \u00e9cran de 500px de haut. */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding-top: calc(var(--header-h) + var(--space-4));
    padding-bottom: var(--space-5);
  }
  .hero .visual.tall { aspect-ratio: 21 / 9; }
  .hero h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin-bottom: 0.85rem; }
  .hero-lead { margin-bottom: 1.25rem; font-size: 0.95rem; }
  .hero-meta { margin-top: 1.25rem; padding-top: 1rem; gap: 1rem; }
  .hero-meta-item strong { font-size: 1.1rem; }
}

.hero h1 {
  font-size: var(--fs-hero);
  line-height: 0.98;
  margin-bottom: 1.5rem;
}
.hero h1 .accent-word {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}
.hero-lead {
  font-size: var(--fs-lead);
  color: var(--text-soft);
  max-width: 48ch;
  margin-bottom: 2.5rem;
  line-height: 1.55;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-meta {
  display: flex; gap: 2rem; margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-meta-item { display: flex; flex-direction: column; gap: 0.25rem; }
.hero-meta-item strong {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text);
}
.hero-meta-item span { font-size: 0.8rem; color: var(--text-soft); letter-spacing: 0.05em; text-transform: uppercase; }

/* ============== PLACEHOLDERS VISUELS ============== */
/* Remplace les photos par des compositions stylisées tropicales */
.visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #ddd1bc 0%, #6b8f70 55%, #094713 100%);
  box-shadow: var(--shadow-md);
}
.visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 70% 25%, rgba(255,255,255,0.45) 0%, transparent 40%),
    radial-gradient(circle at 25% 75%, rgba(221, 209, 188, 0.55) 0%, transparent 45%);
}
.visual::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, transparent 0%, transparent 55%, rgba(74, 74, 74, 0.15) 100%);
}
.visual svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Ratio alternatifs */
.visual.wide { aspect-ratio: 16 / 10; }
.visual.square { aspect-ratio: 1; }
.visual.tall { aspect-ratio: 3 / 5; }

/* Variante photo réelle */
.visual-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1200ms var(--ease-out), opacity 600ms var(--ease);
}
.visual-photo::before,
.visual-photo::after {
  display: none; /* on masque les overlays décoratifs sur les vraies photos */
}
.visual-photo {
  background-color: var(--bg-alt);
}
.visual-photo::after {
  content: "";
  display: block;
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(42,42,42,0.25) 100%);
  pointer-events: none;
  z-index: 1;
}
.service-card:hover .visual-photo img {
  transform: scale(1.04);
}
/* Le hover de la carte agrandit légèrement la photo */
.visual-photo .visual-caption {
  z-index: 2;
}

/* Label photo "Photo à insérer" en coin */
.visual-caption {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  border-radius: 4px;
  font-weight: 500;
  z-index: 2;
}

/* ============== SERVICE CARD ============== */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem 2rem 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
  height: 100%;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-card-num {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.service-card h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.service-card p { color: var(--text-soft); font-size: 0.95rem; line-height: 1.65; }
.service-card ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.service-card li {
  font-size: 0.88rem;
  color: var(--text-soft);
  padding-left: 1.25rem;
  position: relative;
}
.service-card li::before {
  content: "";
  position: absolute; left: 0; top: 0.6em;
  width: 8px; height: 1px;
  background: var(--accent);
}

/* ============== FEATURE LIST (Pourquoi KeyZen) ============== */
.feature-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  align-items: flex-start;
}
.feature-item:last-child { border-bottom: 1px solid var(--line); }
.feature-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent);
  font-style: italic;
}
.feature-item h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.feature-item p { color: var(--text-soft); max-width: 60ch; }

/* ============== TÉMOIGNAGE CARROUSEL ============== */
.testi-wrap { position: relative; }
.testi-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem 0 2rem;
  scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-card {
  flex: 0 0 min(440px, 85vw);
  scroll-snap-align: start;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 1.5rem;
}
.testi-stars { display: flex; gap: 3px; color: var(--accent); letter-spacing: 2px; }
.testi-quote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text);
  font-style: italic;
  flex-grow: 1;
}
.testi-author {
  display: flex; align-items: center; gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: var(--font-serif); font-size: 1.1rem;
  flex-shrink: 0;
}
.testi-author-name { font-weight: 500; font-size: 0.95rem; }
.testi-author-role { font-size: 0.82rem; color: var(--text-soft); }
.testi-controls {
  display: flex; gap: 0.75rem; justify-content: flex-end;
  margin-top: 1rem;
}
.testi-ctrl {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--t-fast) var(--ease);
}
.testi-ctrl:hover { border-color: var(--accent); color: var(--accent); }

/* CR 09/2026 (Sprint 3 \u00b7 F17) \u2014 Dots de pagination t\u00e9moignages.
   Cach\u00e9s sur desktop (fl\u00e8ches suffisent), affich\u00e9s sur tablette + mobile
   pour indiquer la position dans le carrousel. */
.testi-dots {
  display: none;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
@media (max-width: 900px) {
  .testi-dots { display: flex; }
  /* Sur mobile, les fl\u00e8ches sont d\u00e9j\u00e0 dans .testi-controls, on peut
     les garder ou les cacher. On les garde pour l'accessibilit\u00e9. */
}
.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line-strong);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  /* Zone tactile r\u00e9elle \u00e9tendue \u00e0 24px sans agrandir le visuel */
  position: relative;
}
.testi-dot::before {
  content: "";
  position: absolute;
  inset: -8px;
}
.testi-dot:hover { background: var(--accent-soft); transform: scale(1.15); }
.testi-dot.active {
  background: var(--accent);
  width: 24px;
}
.testi-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============== CTA SECTION ============== */
.cta-band {
  background: var(--green-900);
  color: #f5f0e6;
  padding: clamp(3rem, 6vw, 5rem) var(--container-pad);
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
:root[data-theme="dark"] .cta-band {
  background: linear-gradient(135deg, #142218 0%, #052c0c 100%);
  border: 1px solid var(--line-strong);
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(221, 209, 188, 0.22) 0%, transparent 45%),
                    radial-gradient(circle at 80% 70%, rgba(107, 143, 112, 0.25) 0%, transparent 45%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #f5f0e6; font-size: var(--fs-display); max-width: 18ch; margin: 0 auto 1.5rem; }
.cta-band p { color: rgba(245, 240, 230, 0.78); max-width: 55ch; margin: 0 auto 2.5rem; font-size: var(--fs-lead); }
.cta-band .btn-primary { background: var(--sand-300); color: var(--green-900); }
.cta-band .btn-primary:hover { background: #f5f0e6; transform: translateY(-2px); }
.cta-band .btn-outline { border-color: rgba(245, 240, 230, 0.35); color: #f5f0e6; }
.cta-band .btn-outline:hover { border-color: #f5f0e6; background: rgba(245, 240, 230, 0.1); color: #f5f0e6; }

/* ============== FOOTER ============== */
.site-footer {
  background: var(--bg-alt);
  padding: var(--space-9) 0 var(--space-6);
  border-top: 1px solid var(--line);
  margin-top: var(--section-y);
}
/* CR 09/2026 (Sprint 3 \u00b7 F18) \u2014 Footer grid adaptatif.
   Avant : 4 colonnes fixes en desktop, 2 colonnes rigides entre 601\u2013900px
   (produisant un d\u00e9coupage illogique Logo+Services / Contact+L\u00e9gal sur
   iPad portrait, avec le logo prenant 2\u00d7 la place).
   Apr\u00e8s : la col "brand" (logo + tagline) reste sur toute la largeur
   sur tablette et mobile. Les 3 colonnes de liens utilisent auto-fill
   pour un placement continu, sans saut brutal. */
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem 2.5rem;
  }
  /* Le bloc "brand" (logo KeyZen + tagline) prend toute la largeur */
  .footer-grid > .footer-col:first-child {
    grid-column: 1 / -1;
    max-width: 42ch;
  }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  /* CR 17/09/2026 — Sur mobile étroit, la première colonne (logo KeyZen
     + tagline) est centrée. Sur desktop et tablette elle reste alignée
     à gauche, cohérente avec les autres colonnes en grille. Le max-width
     42ch hérité du breakpoint 900px reste actif (auto margins font le
     centrage). */
  .footer-grid > .footer-col:first-child {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .footer-grid > .footer-col:first-child .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-grid > .footer-col:first-child p {
    margin-left: auto;
    margin-right: auto;
  }
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a { opacity: 0.75; transition: opacity var(--t-fast) var(--ease); font-size: 0.92rem; }
.footer-col a:hover { opacity: 1; color: var(--accent); }

/* CR 08/2026 — Icônes des réseaux sociaux du footer principal.
   Le bloc n'existe que si au moins une URL sociale est renseignée
   dans l'admin. Les <a> ont opacity:0.75 par défaut (héritage du
   footer), on le remonte à 1 pour les icônes qui sont déjà discrètes. */
.footer-socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}
.footer-col .footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text);
  opacity: 0.85;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease, background 180ms ease, opacity 180ms ease;
  padding: 0;
}
.footer-col .footer-social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 6%, transparent);
  transform: translateY(-2px);
  opacity: 1;
}
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* Bouton "Changer d'espace (propriétaire / voyageur)" en pied de page
   CR 08/2026 : rendu clairement visible avec pill bleue.
   Le lien vers l'univers voyageur (bleu KeyZen) reste cohérent avec le
   pill "Accès voyageur" utilisé dans le header. */
.footer-bottom .footer-audience-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem 0.5rem 0.85rem;
  background: rgba(1, 138, 190, 0.08);
  color: #001B48;
  border: 1px solid rgba(1, 138, 190, 0.4);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.footer-bottom .footer-audience-switch::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #018ABE;
  box-shadow: 0 0 0 3px rgba(1, 138, 190, 0.2);
}
.footer-bottom .footer-audience-switch:hover {
  background: rgba(1, 138, 190, 0.16);
  border-color: rgba(1, 138, 190, 0.7);
  transform: translateY(-1px);
}
.footer-bottom .footer-audience-switch:focus-visible {
  outline: 2px solid #018ABE;
  outline-offset: 2px;
}

/* ============== WHATSAPP FLOATING ============== */
/* CR 09/2026 (Sprint 1 \u00b7 F7 + F23) :
   - Sur mobile (\u2264 600px), le widget devient un cercle compact 56\u00d756px
     (le label textuel \u00e9tait masqu\u00e9 mais le padding restait irr\u00e9gulier).
   - Respect de safe-area-inset-bottom (iPhones \u00e0 encoche + home indicator).
   - Objectif : ne plus masquer les CTA en bas de section sur mobile. */
.whatsapp-float {
  position: fixed;
  bottom: max(28px, env(safe-area-inset-bottom, 28px));
  right: 28px;
  z-index: 90;
  display: inline-flex;
  align-items: center; gap: 0.75rem;
  padding: 0.9rem 1.2rem 0.9rem 0.9rem;
  background: #25D366;
  color: white;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  transition: all var(--t-med) var(--ease);
  font-size: 0.9rem;
  font-weight: 500;
}
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5); }
.whatsapp-float svg { width: 22px; height: 22px; }
.whatsapp-float .wa-label { white-space: nowrap; }
@media (max-width: 600px) {
  .whatsapp-float {
    /* Cercle compact : 56\u00d756 min, aucun texte, marges plus discr\u00e8tes */
    width: 56px;
    height: 56px;
    padding: 0;
    gap: 0;
    justify-content: center;
    bottom: max(20px, env(safe-area-inset-bottom, 20px));
    right: 16px;
    /* Ombre l\u00e9g\u00e8rement r\u00e9duite pour un rendu plus discret */
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
  }
  .whatsapp-float .wa-label { display: none; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* ============== TWEAKS PANEL ============== */
.tweaks-panel {
  position: fixed;
  bottom: 28px; left: 28px;
  z-index: 95;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  width: 320px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  font-family: var(--font-sans);
  transform: translateY(calc(100% + 40px));
  opacity: 0;
  transition: all var(--t-med) var(--ease);
  pointer-events: none;
}
.tweaks-panel.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.tweaks-panel h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-soft); margin: 1rem 0 0.5rem;
  font-weight: 500;
}
.tweaks-panel h4:first-child { margin-top: 0; }
.tweaks-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tweak-chip {
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: all var(--t-fast) var(--ease);
  color: var(--text);
}
.tweak-chip.active {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
}
.tweak-chip:hover:not(.active) { border-color: var(--accent); }

.tweaks-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.5rem;
}
.tweaks-header-title { font-family: var(--font-serif); font-size: 1.1rem; }
.tweaks-close {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
}
.tweaks-close:hover { border-color: var(--accent); color: var(--accent); }

/* ============== FORMULAIRE MULTI-ÉTAPES ============== */
.form-wizard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
}
.form-steps {
  display: flex;
  gap: 0;
  margin-bottom: 2.5rem;
  position: relative;
}
.form-step-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--text-soft);
  position: relative;
  border-top: 2px solid var(--line);
  transition: all var(--t-med) var(--ease);
}
.form-step-pill.active { color: var(--accent); border-top-color: var(--accent); }
.form-step-pill.done { color: var(--text); border-top-color: var(--accent-soft); }
.form-step-pill-num {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.form-step-pill.active .form-step-pill-num { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.form-step-pill.done .form-step-pill-num { background: var(--accent-soft); color: var(--accent-contrast); border-color: var(--accent-soft); }

.form-content h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  margin-bottom: 0.5rem;
}
.form-content p.step-desc { color: var(--text-soft); margin-bottom: 2rem; max-width: 55ch; }

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (max-width: 600px) { .choice-grid { grid-template-columns: 1fr; } }
.choice-card {
  padding: 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  display: flex; flex-direction: column; gap: 0.5rem;
  background: var(--surface);
}
.choice-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.choice-card.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.choice-card-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-alt);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 0.5rem;
}
.choice-card.selected .choice-card-icon { background: var(--accent); color: var(--accent-contrast); }
.choice-card-title { font-family: var(--font-serif); font-size: 1.1rem; }
.choice-card-sub { font-size: 0.85rem; color: var(--text-soft); }

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.check-item {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface);
}
.check-item:hover { border-color: var(--accent); }
.check-item.checked {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.check-box {
  width: 18px; height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--line-strong);
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.check-item.checked .check-box { background: var(--accent); border-color: var(--accent); color: white; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.form-actions {
  display: flex; justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  gap: 1rem;
  flex-wrap: wrap;
}

.form-success {
  text-align: center;
  padding: 3rem 1rem;
}
.form-success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent); color: var(--accent-contrast);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}
.form-success h3 { font-size: var(--fs-h1); margin-bottom: 1rem; }

/* ============== PAGE HEADERS ============== */
.page-header {
  padding-top: calc(var(--header-h) + var(--space-8));
  padding-bottom: var(--space-7);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.page-header .eyebrow { margin-bottom: 1rem; }
.page-header h1 { font-size: var(--fs-display); max-width: 20ch; margin-bottom: 1rem; }
.page-header p { color: var(--text-soft); font-size: var(--fs-lead); max-width: 60ch; }

/* ============== PILL BADGE ============== */
.badge {
  display: inline-flex;
  align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.badge-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

/* ============== LANGUAGE SWITCHER MINI ============== */
.lang-mini {
  display: inline-flex;
  gap: 0.25rem;
  font-size: 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
}
.lang-mini button {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  color: var(--text-soft);
}
.lang-mini button.active {
  background: var(--text);
  color: var(--bg);
}

/* ============== LEGAL PAGE ============== */
.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
}
.legal-wrap h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.legal-wrap h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; }
.legal-wrap p { margin-bottom: 1rem; color: var(--text-soft); line-height: 1.75; }
.legal-wrap ul { margin-bottom: 1rem; color: var(--text-soft); }

/* ============== STAT BLOCK ============== */
.stat-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.4;
  max-width: 20ch;
}
