/* =========================================================
   CAEMAS — Fondations
   Palette : 4 couleurs principales (+ blanc cassé en base)
   ========================================================= */

/* ── View Transitions API — continuité cross-page ──────────
   Le navigateur conserve un screenshot de l'ancienne page
   pendant le chargement de la nouvelle → pas de flash blanc.
   animation:none = on supprime le cross-fade par défaut ;
   c'est GSAP qui anime le rideau de chaque côté.
   ─────────────────────────────────────────────────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation: none; }
/* Le rideau est nommé pour être "matché" entre les pages */
::view-transition-old(page-curtain),
::view-transition-new(page-curtain) { animation: none; mix-blend-mode: normal; }

:root {
  /* --- couleurs principales --- */
  --navy:     #d4afc2;  /* rose mauve doux            — Vision         */
  --espresso: #1e2535;  /* ardoise nuit         — Travail               */
  --taupe:    #c4bbb2;  /* taupe / grège        — Approche              */
  --marron:   #3b2314;  /* brun profond chaud   — portal card 01 fill   */
  --mist:     #d5d3da;  /* gris clair lavande   — Contact               */
  --royal:    #1C3E72;  /* bleu Nu Genea — Excellence */
  --hero-blue: #131390; /* bleu cobalt plus sombre — Hero */
  --orange:   #D85228;  /* terracotta méditerranéen — accents             */
  --sky:      #4a7fd6;  /* bleu moyen vif                               */
  --deep:     #067a7e;  /* turquoise foncé       — Origine & Essence      */
  --ocean:    #c4521a;  /* orange brûlé           — Services               */
  --night:    #1f1535;  /* violet nuit profond  — Formations             */

  /* base */
  --base:     #f5f0e1;  /* crème chaud (nouveau)  */
  --ink:      #16130f;  /* texte sombre            */

  /* texte contextuel par panneau (défini plus bas) */
  --fg: var(--ink);
  --fg-soft: rgba(22, 19, 15, 0.55);
  --line: rgba(22, 19, 15, 0.14);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(1.25rem, 4vw, 4rem);
}

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

/* Suppression globale des scrollbars natives sur tous les éléments —
   garantit qu'aucun élément (pin spacer GSAP, div dynamique…) n'en fait apparaître */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0 !important; height: 0 !important; background: transparent !important; }

/* BUG-36: curseur natif masqué uniquement sur pointer précis (souris) */
@media (pointer: fine) {
  html, html a, html button, html [role="button"],
  html input, html label, html select, html textarea {
    cursor: none !important;
  }
}
@media (pointer: coarse) {
  html, html * { cursor: auto !important; }
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%; /* empêche iOS d'agrandir le texte en paysage */
  text-size-adjust: 100%;
  overscroll-behavior: none;
  /* iOS Safari : désactive le layer "momentum" natif qui conflicte avec Lenis
     (syncTouch=true intercepte les events touch → pas besoin du smooth natif) */
  -webkit-overflow-scrolling: auto;
  /* overflow-y:scroll = la "piste" de scrollbar est toujours allouée → jamais
     de recalcul / décalage de layout quand GSAP modifie la hauteur de la page.
     scrollbar-width:none (Firefox) + width:0 (WebKit) → 0 pixel visible.       */
  overflow-y: scroll;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE / old-Edge */
  /* iOS : fond de la safe-area = couleur sombre, évite les halos colorés */
  background: #06101f;
}
/* width:0 au lieu de display:none → le slot existe mais prend 0px :
   aucun flash, aucun layout shift sur Windows (Chrome / Edge / Chromium) */
html::-webkit-scrollbar        { width: 0 !important; height: 0 !important; background: transparent; }
html::-webkit-scrollbar-thumb  { background: transparent; }
html::-webkit-scrollbar-track  { background: transparent; }

body {
  font-family: "Barlow", system-ui, sans-serif;
  background: var(--base);
  color: var(--ink);
  overflow-x: hidden;
  font-weight: 400;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto; /* Lenis gère le smooth, pas le navigateur */
  touch-action: pan-y;              /* iOS : autorise seulement le scroll vertical */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body::-webkit-scrollbar { width: 0 !important; background: transparent; }


/* ─── Scrollbar personnalisée ───────────────────────────────
   Track : ligne fine fixe sur le bord droit, pleine hauteur.
   Thumb : rectangle qui se déplace via --p (0→1) mis à jour en JS.
   mix-blend-mode:difference → s'inverse automatiquement sur tous
   les fonds (clair comme sombre) sans logique de couleur séparée.
────────────────────────────────────────────────────────────── */
.c-scrollbar {
  position: fixed;
  right: 0;
  top: 0;
  width: 2px;
  height: 100vh;
  z-index: 9999;
  pointer-events: none;
  background: transparent;   /* track invisible — seul le thumb est visible */
  mix-blend-mode: difference;
}

.c-scrollbar__thumb {
  position: absolute;
  right: 0;
  top: 0;
  width: 2px;
  height: calc(var(--thumb-h, 15%) * 1vh);
  background: #fff;
  transform: translateY(calc(var(--p, 0) * (100vh - var(--thumb-h, 15%) * 1vh)));
  border-radius: 1px;
  transition: opacity 0.4s ease;
  opacity: 0.65;
}

/* Petite pastille ronde en bas du thumb */
.c-scrollbar__thumb::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

/* ─── Curseur personnalisé ──────────────────────────────
   Un cercle de 10px, mix-blend-mode:difference :
   - sombre sur fond clair (beige, taupe)
   - clair sur fond sombre (navy, royal, espresso)
   S'étire en ovale visqueux dans la direction du mouvement.
   Transformé uniquement par JS (translate + rotate + scale).
   Pas de transition CSS sur transform → c'est le RAF qui gère.
────────────────────────────────────────────────────────── */
/* ── Petit point (toujours visible, blend difference) ── */
#cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 99999;
  pointer-events: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ── Gros blob curseur (haut de page, style Patreon) ──
   mix-blend-mode posé DIRECTEMENT sur l'élément (comme #cursor) pour qu'il
   blende contre la page. La position est gérée par JS via une variable CSS
   --bx/--by → le transform d'animation (vagues) ne rentre pas en conflit. */
#cursor-blob {
  position: fixed; top: 0; left: 0;   /* JS pilote left/top */
  z-index: 99997;
  width: 220px; height: 220px;
  pointer-events: none;
  opacity: 0;
  background: #fff;
  mix-blend-mode: difference;
  border-radius: 50%;
  transition: opacity 0.35s ease;
  will-change: left, top;
}
#cursor-blob.is-on { opacity: 1; }

/* ── Grand cercle d'expansion — MÊME système que #cursor ── */
#cursor-expand {
  position: fixed;
  top: 0; left: 0;
  z-index: 99998;
  pointer-events: none;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  /* Cercle NEUTRE adaptatif piloté en JS (.is-on-light / .is-on-dark) :
     pas de mix-blend-mode → AUCUN cast bleu-gris possible.
     Défaut = clair (le cercle n'apparaît qu'au survol des cartes, qui
     s'assombrissent → cercle clair = contraste net, comme le curseur). */
  background: #f1ebdc;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%) scale(0);
  will-change: transform;
  transition: opacity 0.2s ease, background-color 0.3s ease;
}
/* Sur fond clair (rare — débordement sur le taupe) → cercle sombre */
#cursor-expand.is-on-light { background: #1c1812; }
#cursor-expand.is-on-light #cursor-label { color: #f1ebdc; }

/* Mode blend — identique au petit curseur dot */
#cursor-expand.is-blend {
  background: #fff;
  mix-blend-mode: difference;
}
#cursor-expand.is-blend #cursor-label { opacity: 0; }

/* ── Bulle tactile mobile ── */
#touch-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #ffffff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 99999;
  opacity: 0;
  will-change: transform;
  /* opacity only — transform is driven by JS every frame */
  transition: opacity 0.22s ease;
}
@media (hover: hover) {
  #touch-cursor { display: none; }
}

#cursor-label {
  font-family: "Barlow", sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1c1812;   /* texte sombre sur le cercle clair par défaut */
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  transition: color 0.3s ease;
}

/* Explorer : curseur flèche standard — pas de grand cercle */
.portal-card__arrow {
  cursor: pointer;
}

/* Pas de curseur perso sur mobile (pointer: coarse) */
@media (pointer: coarse) {
  #cursor { display: none; }
  html, html a, html button, html [role="button"],
  html input, html label, html select, html textarea {
    cursor: auto !important;
  }
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

a { color: inherit; text-decoration: none; }
canvas { display: block; }

/* --- Ancien starfield global : désactivé, remplacé par hero__stars --- */
#starfield { display: none; }

/* ── Soleil vintage hero — style affiche méditerranéenne ──────────────── */
/* ── Vagues méditerranéennes — bas du hero ─────────────────────────────── */
/* Trochoid prolongé inversé : bleu géré par le SVG (fill-rule evenodd)
   Pas de background CSS — le SVG bleu + trous crème font tout le travail  */
.hero-waves {
  position: absolute;
  bottom: 0;
  left:   0;
  right:  0;
  height: 120px;        /* = VH de la vague brisante SVG */
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
}
@media (max-width: 640px) {
  .hero-waves { height: 85px; }
}

/* --- Flocons du hero : canvas absolu dans le panel hero --- */
.hero__stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ------------------ Texture papier ------------------- */
/* Grain généré par JS (canvas → data-URL) pour contrôler
   la taille réelle des particules. soft-light ajoute de la
   luminosité sans salir les couleurs foncées.             */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  background-repeat: repeat;
  mix-blend-mode: soft-light;
  opacity: 0.55;
}

/* Rideau de transition vers l'espace membre
   Fond crème par défaut — remplacé en JS selon la destination */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #f5f0e1;
  transform: translateY(-100%);  /* caché au-dessus — jamais display:none */
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  will-change: transform;
  view-transition-name: page-curtain;
}


/* ── Transition poisson SVG → réservation ── */
/* Cercle ink — expansion clip-path depuis le centre */
#fish-ink {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;             /* toujours en flex → images chargées en avance */
  visibility: hidden;        /* invisible mais le navigateur charge les ressources */
  pointer-events: none;
  background: #c4521a;
  clip-path: circle(0px at 50% 50%);
  will-change: clip-path;
  align-items: center;
  justify-content: center;
}
#fish-ink-bg { display: none; }

/* ─────────────────────── Nav ──────────────────────────────────────────────
   Système à deux niveaux :

   1. Brand + liens  →  mix-blend-mode: difference; color: #fff
      Le blanc s'inverse automatiquement sur tout fond :
        • fond sombre (navy, espresso, royal, ink)  → texte clair ✓
        • fond clair  (base, taupe, mist)            → texte foncé ✓
        • zone de transition (body ink entre panels) → texte clair ✓
      Aucune logique JS nécessaire : adaptation en temps réel.

   2. Bouton « Se connecter »  →  géré par JS (.nav--light)
      isolation: isolate empêche le blend du bouton de fuiter
      sur les éléments voisins. Le fond body étant désormais ink,
      le texte crème est lisible dans toutes les zones de transition.
──────────────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(1rem, 2vw, 1.6rem) var(--pad);
  pointer-events: none;
  /* Blend difference sur le conteneur fixe (fond transparent obligatoire).
     Blanc s'inverse sur tout fond — exactement comme le curseur. */
  color: #fff;
  mix-blend-mode: difference;
}
.nav > * { pointer-events: auto; }


.nav__brand {
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

/* Logo toujours blanc → le blend difference le rend sombre sur fond clair, clair sur fond sombre */
.nav__logo {
  display: block;
  height: 32px;
  width: auto;
  flex-shrink: 0;
  filter: invert(1);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__brand:hover .nav__logo {
  transform: rotate(-8deg) scale(1.08);
}

.nav__links {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.4rem);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.nav__links a { position: relative; opacity: 0.9; transition: opacity 0.4s var(--ease); }
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }


/* ═══════════════════════════════════════════════════════
   BOUTON CTA NAV ("Se connecter" / nom utilisateur)
   mix-blend-mode: difference — blanc s'inverse sur tout fond.
   Contour blanc + texte blanc → sombre sur fond clair, clair sur fond sombre.
═══════════════════════════════════════════════════════ */
.nav__cta {
  position: fixed;
  top: clamp(0.75rem, 1.6vw, 1.2rem);
  right: var(--pad);
  z-index: 101;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.6rem 1.3rem;
  border-radius: 100px;
  overflow: hidden;
  cursor: pointer;
  border: none;
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px #fff;
  mix-blend-mode: difference;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav__cta:hover { transform: scale(1.06); }

/* ── Conteneur de texte ── */
.nav__cta-text {
  position: relative;
  z-index: 3;
  display: inline-block;
  white-space: nowrap;
  transition: letter-spacing 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__cta:hover .nav__cta-text { letter-spacing: 0.08em; }

/* ── Label repos ── */
.nav__cta-label {
  position: relative;
  z-index: 2;
  font-weight: 500;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}

/* Label inv — legacy du système blend, caché mais conservé pour compat JS */
.nav__cta-label--inv { display: none; }

/* ── Fill — désactivé (était pour blend-mode) ── */
.nav__cta-fill { display: none; }

/* ── Avatar utilisateur (initiale) ── */
.nav__cta-avatar {
  display: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-family: "Barlow", sans-serif;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  mix-blend-mode: difference;
  transition: transform 0.3s var(--ease);
}
.nav__cta-avatar.is-visible { display: flex; }
.nav__cta:hover .nav__cta-avatar { transform: scale(1.12); }

/* ── Dot indicateur de statut ── */
.nav__cta-dot {
  position: relative;
  z-index: 3;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav__cta:hover .nav__cta-dot { transform: scale(1.5); opacity: 0.8; }

/* ── Shimmer hover ── */
.nav__cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(105deg,
    transparent 25%, rgba(255,255,255,0.15) 50%, transparent 75%);
  transform: translateX(-130%);
  pointer-events: none;
  border-radius: inherit;
}
.nav__cta:hover::after {
  animation: cta-shimmer 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes cta-shimmer { to { transform: translateX(130%); } }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* --------------------- Scroll hint ------------------- */
.scroll-hint {
  position: fixed;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
  transition: opacity 0.6s var(--ease);
}
.scroll-hint i {
  display: block;
  width: 1px;
  height: 42px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}
.scroll-hint i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  transform: translateY(-108%);
  animation: hint-drop 2.6s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}
@keyframes hint-drop {
  0%   { transform: translateY(-108%); }
  42%  { transform: translateY(0%);    }
  58%  { transform: translateY(0%);    }
  100% { transform: translateY(108%);  }
}

/* ── Vision : décor fréquence ─────────────────────────── */

/* Anneaux — chaque anneau a sa propre durée et son délai */
/* Canvas ondulations Vision */
.vision__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.8s ease;
}
#vision.is-inview .vision__canvas { opacity: 1; }
/* Animations décoratives en pause quand Vision hors écran (perf scroll) */
#vision:not(.is-inview) .vision__wave svg,
#vision:not(.is-inview) .vision__particles span {
  animation-play-state: paused;
}

/* Onde primaire */
.vision__wave {
  position: absolute;
  bottom: 16%;
  left: 0; right: 0;
  height: 90px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.09;
}
.vision__wave svg {
  width: 200%;
  height: 100%;
  animation: wave-drift 12s linear infinite;
}
/* Onde secondaire — vitesse et opacité différentes → effet d'interférence */
.vision__wave--2 {
  bottom: 22%;
  opacity: 0.05;
}
.vision__wave--2 svg {
  animation-duration: 7.5s;
  animation-direction: reverse; /* va dans l'autre sens */
}
.vision__wave path {
  stroke: currentColor;
  stroke-width: 1.5;
}
@keyframes wave-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Particules lumineuses flottantes */
.vision__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.vision__particles span {
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  animation: particle-rise ease-in infinite;
}
.vision__particles span:nth-child(1) { left: 12%;  animation-duration: 10s;  animation-delay: 0s;    width: 3px; height: 3px; }
.vision__particles span:nth-child(2) { left: 28%;  animation-duration: 13s;  animation-delay: 2.1s; }
.vision__particles span:nth-child(3) { left: 47%;  animation-duration: 9s;   animation-delay: 4.5s;  width: 2.5px; height: 2.5px; }
.vision__particles span:nth-child(4) { left: 61%;  animation-duration: 14s;  animation-delay: 1s; }
.vision__particles span:nth-child(5) { left: 75%;  animation-duration: 11s;  animation-delay: 3.3s;  width: 3px; height: 3px; }
.vision__particles span:nth-child(6) { left: 88%;  animation-duration: 8.5s; animation-delay: 6s; }
.vision__particles span:nth-child(7) { left: 38%;  animation-duration: 12s;  animation-delay: 7.2s;  width: 2px; height: 2px; }
.vision__particles span:nth-child(8) { left: 54%;  animation-duration: 15s;  animation-delay: 0.5s; }
@keyframes particle-rise {
  0%   { transform: translateY(0)     scale(1);   opacity: 0; }
  8%   { opacity: 0.45; }
  85%  { opacity: 0.12; }
  100% { transform: translateY(-70vh) scale(0.2); opacity: 0; }
}

/* Mots du lede Vision — animés mot par mot via JS */
.vision__word {
  display: inline-block;
  white-space: pre;
}

/* -------------- Wrapper scroll principal ------------- */
/* overflow-x:hidden sur le wrapper clippe les débordements
   latéraux créés par le skewY sans bloquer le scroll natif */
#smooth-wrapper {
  /* overflow-x: hidden cassait position:sticky sur les panneaux — on utilise
     overflow: clip qui clippe sans créer de scroll container */
  overflow-x: clip;
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#smooth-wrapper::-webkit-scrollbar { width: 0 !important; background: transparent; }

#smooth-content {
  /* will-change supprimé — GSAP le gère dynamiquement */
}

/* =========================================================
   PANNEAUX EMPILÉS
   Chaque panneau est "sticky" en haut : le suivant remonte
   depuis le bas et passe PAR-DESSUS le précédent (texte inclus).
   ========================================================= */

.stack { position: relative; z-index: 1; }

.panel {
  /* position: sticky retiré — Lenis brise le sticky CSS.
     position: relative obligatoire pour que z-index soit actif (couvrement des panneaux).
     Le pinning est géré par GSAP ScrollTrigger (position: fixed via JS), compatible Lenis. */
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 12vh, 9rem) var(--pad) clamp(3rem, 8vh, 6rem);
  overflow: clip;          /* clip sans scroll container — contient même les couches GPU */
  /* Propage la couleur de texte de chaque panel via --fg pour que
     fill="currentColor" et les textes sans color explicite soient corrects */
  color: var(--fg);
}

/* z-index croissant => le panneau suivant recouvre le précédent
   1  Hero          4  Origine&Essence   7  Travail      10 Contact
   2  Vision        5  Excellence        8  Formations
   3  Approche      6  Services          9  Découverte             */
.panel--hero     { z-index: 1; }
.panel--navy     { z-index: 2; }
.panel--base     { z-index: 3; }  /* Appel Découverte (Avant tout achat) */
.panel--taupe    { z-index: 4; }  /* Avis clients (juste après Découverte) */
.panel--royal    { z-index: 6; }  /* Excellence (après origine) */
.services-wrapper{ z-index: 6; }
.panel--espresso { z-index: 7; }  /* Travail            */
.panel--night    { z-index: 8; }  /* Formations         */
.panel--deep     { z-index: 5; }  /* Origine & Essence (déplacé sous les avis) */
.panel--mist     { z-index: 10; } /* Contact            */

/* Couleurs de fond + contraste texte par panneau */
.panel--hero     {
  background: #1f49cf;   /* bleu cobalt (pas trop saturé) */
  --fg: #ffffff; --fg-soft: rgba(255,255,255,.82); --line: rgba(255,255,255,.28);
  isolation: isolate;     /* contient le mix-blend du texte dans le hero */
}
.panel--hero::before { display: none; }
/* Couche motif (parallaxe) — légèrement débordante pour cacher les bords au mouvement.
   Filtre : décale le bleu royal vers le cobalt et adoucit légèrement (pas trop). */
.hero__bg { filter: hue-rotate(-9deg) saturate(0.9); }
.hero__pattern {
  position: absolute; inset: -14%;
  z-index: 0;
  background: url("../img/hero-pattern.png?v=4") center center / cover no-repeat;
  will-change: transform;
  transform: scale(1.06);
}
/* Textes du hero en mode blend avec le fond (s'inversent selon cobalt/blanc) */
.panel__inner--hero { mix-blend-mode: difference; }
/* Grain marqué par-dessus le bleu */
.panel--hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  opacity: 0.6;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.panel--navy     { background: var(--navy);     --fg: #2a0f1e;      --fg-soft: rgba(42,15,30,.6);     --line: rgba(42,15,30,.18); }
.panel--taupe    { background: #ece2cd;         --fg: #2a241f;      --fg-soft: rgba(42,36,31,.6);      --line: rgba(42,36,31,.18); }
/* violet profond — Origine & Essence */
.panel--deep     { background: var(--deep);     --fg: #ffffff;      --fg-soft: rgba(255,255,255,.65);  --line: rgba(255,255,255,.22); }
.panel--royal    { background: #a8d4f5; --fg: #0d2c4a; --fg-soft: rgba(13,44,74,.65); --line: rgba(13,44,74,.18); }
/* ardoise nuit — Travail */
.panel--espresso { background: var(--espresso); --fg: #d8e2f5;      --fg-soft: rgba(216,226,245,.55);  --line: rgba(216,226,245,.16); }
.panel--sky      { background: var(--sky);      --fg: #fff;         --fg-soft: rgba(255,255,255,.7);   --line: rgba(255,255,255,.22); }
/* violet nuit — Formations */
.panel--night    { background: var(--orange);  --fg: #f5f0e1;      --fg-soft: rgba(245,240,225,.65);  --line: rgba(245,240,225,.22); }
.panel--night .form-btn { color: var(--orange); }
.panel--base     { background: var(--base);     --fg: var(--ink);   --fg-soft: rgba(22,19,15,.55);     --line: rgba(22,19,15,.14); }
.panel--mist     { background: var(--mist);     --fg: #1a1aad;      --fg-soft: rgba(26,26,173,.6);     --line: rgba(26,26,173,.18); }

.panel { color: var(--fg); }

.panel__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.panel__inner--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.panel__inner--center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: clamp(1rem, 2.5vh, 1.8rem); }

@media (max-width: 860px) {
  .panel__inner--split { grid-template-columns: 1fr; }
}

/* --------------------- Typographie (style Oryzo / grotesque) --- */
.eyebrow {
  font-family: "Barlow", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}

/* Logotype héro — CAEMAS très grand, centré
   font-size en vw pur (relatif au viewport, pas au container max-width) :
   à ~1440px → 18vw = 259px → "CAEMAS" ≈ 4.1 × 259 = 1062px → ~85% des 1312px dispo. */
.hero__logotype {
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 18vw, 22vw);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.88;
  color: var(--fg);
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Inner hero : centrage vertical + horizontal, sans contrainte de max-width
   pour que le logotype CAEMAS puisse remplir toute la largeur disponible */
.panel__inner--hero {
  max-width: none;         /* lève la limite 1280px héritée de panel__inner */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.6rem, 3.5vh, 2.8rem);
  padding-top: clamp(0.5vh, 1.5vh, 3vh); /* léger seulement : justify-content:center du panel équilibre déjà */
  position: relative;
  z-index: 2;             /* devant le soleil (z-index:1) et derrière les vagues (z-index:4) */
}
.panel__inner--hero .eyebrow { margin-bottom: 0; }

/* Lede hero : tagline courte sous le logotype */
.hero__lede {
  margin-top: 0;
  max-width: 28ch;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Vague masque bas du hero */
/* Vague sinus sous le lede hero */

.display {
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 7.5vw, 7.5rem);
  max-width: 18ch;
}
.display--md { font-size: clamp(2rem, 5vw, 4.5rem); max-width: 20ch; }
.display--lg { font-size: clamp(2.8rem, 8vw, 8rem); max-width: 14ch; }
.display--xl { font-size: clamp(3rem, 9vw, 10rem); max-width: 14ch; }

.lede {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--fg-soft);
  font-weight: 400;
}

/* ── Géographie hero ─────────────────────────────────────── */
.hero__geo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.2rem, 2.5vh, 2rem);
  text-align: center;
}

.hero__geo-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.7rem;
  font-size: clamp(0.86rem, 1.1vw, 1.02rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg-soft);
  line-height: 1.55;
  margin: 0;
}

.hero__geo-dot {
  font-size: 0.65rem;
  color: var(--fg-soft);
  opacity: 0.35;
  line-height: 1;
}

/* Silhouettes îles */
.hero__islands {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.hero__island {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.hero__island-svg {
  display: block;
  width: clamp(48px, 6vw, 70px);
  height: clamp(48px, 6vw, 70px);
  fill: var(--fg);
  stroke: none;
}

.hero__island figcaption {
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  font-weight: 500;
  white-space: nowrap;
}

/* hero meta */
/* Tags catégories */
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--fg-soft);
}

/* Espacements hero */
.panel__inner--hero {
  gap: 0;
}
.hero__tags       { margin-bottom: clamp(1.2rem, 3vh, 2rem); }
.hero__logotype   { margin-bottom: 0; }
.hero__geo        { margin-top: clamp(1.4rem, 3vh, 2.4rem); margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════
   HERO — fond animé « fréquences » + titre encadré
   ═══════════════════════════════════════════════════════════ */
.hero__bg {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Aura chaude qui respire derrière le titre */
.hero__aura {
  display: none; /* supprimé — créait un rond bleu clair parasite */
  position: absolute;
  top: 44%; left: 50%;
  width: min(125vw, 1150px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0.12) 34%, transparent 64%);
  animation: hero-aura 9s ease-in-out infinite;
}
@keyframes hero-aura {
  0%,100% { opacity: 0.7; transform: translate(-50%,-50%) scale(1); }
  50%     { opacity: 1;   transform: translate(-50%,-50%) scale(1.13); }
}

/* Anneaux de fréquence concentriques (ondes émises depuis le centre) */
.hero__ring {
  position: absolute; top: 50%; left: 50%;
  width: 46vmax; height: 46vmax;
  border-radius: 50%;
  border: 1px solid rgba(245,240,225,0.12);
  transform: translate(-50%,-50%) scale(0.3);
  opacity: 0;
  animation: hero-ring 7.5s ease-out infinite;
}
.hero__ring--1 { animation-delay: 0s; }
.hero__ring--2 { animation-delay: 2.5s; }
.hero__ring--3 { animation-delay: 5s; }
@keyframes hero-ring {
  0%   { opacity: 0;    transform: translate(-50%,-50%) scale(0.3); }
  16%  { opacity: 0.45; }
  100% { opacity: 0;    transform: translate(-50%,-50%) scale(1.3); }
}

/* Mots-fantômes en arrière-plan (parallaxe souris pilotée par JS) */
.hero__ghosts { position: absolute; inset: 0; }
.hero__ghost {
  position: absolute;
  font-family: "Barlow", sans-serif; font-weight: 800;
  text-transform: uppercase; white-space: nowrap;
  color: rgba(22,19,15,0.045);
  letter-spacing: 0.01em;
  font-size: clamp(3.5rem, 13vw, 12rem);
  will-change: transform;
}
.hero__ghost--1 { top: 6%;   left: -5%; }
.hero__ghost--2 { bottom: 9%; right: -3%; }
.hero__ghost--3 { top: 44%;  left: 58%; }

/* Particules lumineuses flottantes */
.hero__particles { display: none; } /* bulles retirées (demande client) */
.hero__particles span {
  position: absolute; bottom: -10px;
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 0 7px rgba(255,255,255,0.55);
  opacity: 0;
  animation: hero-particle 15s linear infinite;
}
.hero__particles span:nth-child(1)  { left: 6%;  animation-duration: 14s; animation-delay: 0s;   }
.hero__particles span:nth-child(2)  { left: 15%; animation-duration: 18s; animation-delay: 3s;   }
.hero__particles span:nth-child(3)  { left: 24%; animation-duration: 12s; animation-delay: 6s;   }
.hero__particles span:nth-child(4)  { left: 33%; animation-duration: 20s; animation-delay: 1s;   }
.hero__particles span:nth-child(5)  { left: 42%; animation-duration: 16s; animation-delay: 8s;   }
.hero__particles span:nth-child(6)  { left: 51%; animation-duration: 13s; animation-delay: 4s;   }
.hero__particles span:nth-child(7)  { left: 60%; animation-duration: 19s; animation-delay: 10s;  }
.hero__particles span:nth-child(8)  { left: 69%; animation-duration: 15s; animation-delay: 2s;   }
.hero__particles span:nth-child(9)  { left: 78%; animation-duration: 17s; animation-delay: 7s;   }
.hero__particles span:nth-child(10) { left: 87%; animation-duration: 12s; animation-delay: 5s;   }
.hero__particles span:nth-child(11) { left: 94%; animation-duration: 21s; animation-delay: 9s;   }
.hero__particles span:nth-child(12) { left: 40%; animation-duration: 23s; animation-delay: 12s;  }
@keyframes hero-particle {
  0%   { transform: translateY(0);      opacity: 0; }
  10%  { opacity: 0.7; }
  85%  { opacity: 0.7; }
  100% { transform: translateY(-92vh);  opacity: 0; }
}

/* Eyebrow hero */
.hero__eyebrow {
  font-size: clamp(0.64rem, 0.95vw, 0.8rem);
  font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--fg-soft);
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin: 0 0 clamp(0.5rem, 1.5vh, 1.1rem);
}
.hero__eyebrow-star { color: var(--orange); font-size: 0.85em; animation: hero-star 4.5s ease-in-out infinite; }
@keyframes hero-star { 0%,100% { opacity: .5; transform: rotate(0); } 50% { opacity: 1; transform: rotate(90deg); } }

/* Titre encadré par une vague qui se trace tout autour */
.hero__title-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  padding: clamp(1.4rem, 4vh, 3.4rem) clamp(1.5rem, 4vw, 4rem);
}
/* Frame supprimée — remplacée par la vague */
.hero__frame { display: none; }

/* Vague animée au-dessus de CÆMAS */
.hero__wave-wrap {
  position: relative;
  width: min(640px, 92vw);
  height: 46px;
  margin: 0 auto 0.3rem;
  color: var(--fg);
  opacity: 0.52;
  pointer-events: none;
}
.hero__wave-svg { width: 100%; height: 100%; overflow: visible; }
.hero__wave-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: hero-wave-draw 1.6s cubic-bezier(.16,1,.3,1) 0.35s forwards,
             hero-wave-drift 5s ease-in-out 2.1s infinite;
}
@keyframes hero-wave-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes hero-wave-drift {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(-2%); }
}

/* ── (legacy kept for reduced-motion override) */
.hero__frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  color: var(--fg);
  opacity: 0.5;
  overflow: visible;
  pointer-events: none;
}
.hero__logotype {
  position: relative; z-index: 1;
  text-shadow: 0 2px 34px rgba(216,82,40,0.12);
}

/* Indice de défilement */
.hero__scroll {
  position: absolute; bottom: clamp(1rem, 2.6vh, 2rem); left: 50%;
  transform: translateX(-50%); z-index: 2;
  width: 1px; height: clamp(30px, 5.5vh, 50px);
  overflow: hidden; opacity: 0.6;
}
.hero__scroll-line {
  display: block; width: 100%; height: 60%;
  background: linear-gradient(to bottom, transparent, var(--fg));
  animation: hero-scroll 2.1s ease-in-out infinite;
}
@keyframes hero-scroll {
  0%       { transform: translateY(-110%); }
  60%,100% { transform: translateY(180%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__aura, .hero__ring, .hero__particles span, .hero__eyebrow-star { animation: none; }
  .hero__ring { opacity: .25; }
  .hero__wave-path { animation: none; stroke-dashoffset: 0; }
}

/* ── Bulles glassmorphiques hero ── */
/* Désactivées : le motif chargé derrière rendait le flou des bulles sale. */
.hero__bubbles { display: none; }
.hero__bubbles--legacy {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
  z-index: 1;
}
.hero__bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(7px) saturate(1.4);
  -webkit-backdrop-filter: blur(7px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.48);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    inset 0 -1px 0 rgba(255,255,255,0.12),
    0 8px 28px rgba(22,19,15,0.06);
  animation: bubble-sway var(--sway-dur, 4s) ease-in-out infinite alternate;
}
@keyframes bubble-sway {
  from { transform: translateX(calc(var(--sway, 40px) * -0.5)); }
  to   { transform: translateX(calc(var(--sway, 40px) *  0.5)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bubbles { display: none; }
}

/* Zone de boutons en bas du hero, sous la ligne de séparation */
.hero__actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  max-width: 1280px;
  margin: clamp(3rem, 6vh, 5rem) auto 0;
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 4vh, 3rem);
}

/* Boutons rectangulaires — hover GSAP (fill qui monte + flèche) */
.hero-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-width: clamp(180px, 22vw, 240px);
  padding: 1.05rem 2.4rem;
  border: 1px solid var(--fg);
  border-radius: 6px;
  font-family: "Barlow", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  cursor: pointer;
  -webkit-font-smoothing: antialiased;
}
.hero-btn__fill {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--fg);          /* clair → label deviendra royal au hover */
  transform: scaleY(0);
  transform-origin: bottom center;
  pointer-events: none;
}
.hero-btn__label,
.hero-btn__arrow {
  position: relative;
  z-index: 1;
}
.hero-btn__label { white-space: nowrap; }
.hero-btn__arrow {
  width: 22px;
  flex-shrink: 0;
}

/* Boutons Vision : orange */
#vision .hero-btn {
  background: var(--ink);
  color: #f0ebe0;
  border-color: var(--ink);
}
#vision .hero-btn__label { color: #f0ebe0; }
#vision .hero-btn__arrow { color: #f0ebe0; }
#vision .hero-btn__fill {
  background: #2b503d;
  transform-origin: right center;
  transform: scaleX(0);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
#vision .hero-btn:hover .hero-btn__fill,
#vision .hero-btn:focus-visible .hero-btn__fill {
  transform: scaleX(1);
  transform-origin: left center;
}
#vision .hero-btn:hover .hero-btn__label,
#vision .hero-btn:focus-visible .hero-btn__label { color: #fff; }
#vision .hero-btn:hover .hero-btn__arrow,
#vision .hero-btn:focus-visible .hero-btn__arrow { color: #fff; }

/* Section Vision : contenu entièrement centré */
#vision .panel__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
#vision .display,
#vision .vision__lede {
  margin-left: auto;
  margin-right: auto;
}
#vision .vision__lede {
  max-width: 68ch;
  width: 100%;   /* empêche le débordement en flex center */
  box-sizing: border-box;
  font-size: clamp(0.9rem, 1.3vw, 1.08rem);
  line-height: 1.7;
}

/* Boutons dans la section Vision : centrés sous le texte */
.vision__actions {
  justify-content: center;
  border-top: none;
  max-width: none;
  width: 100%;
  margin: clamp(2.2rem, 5vh, 3.5rem) auto 0;
  padding-top: 0;
}

@media (max-width: 560px) {
  .hero__actions  { flex-direction: column; align-items: center; }
  .vision__actions{ flex-direction: column; align-items: center; }
  .hero-btn       { width: 100%; max-width: 340px; min-width: 0; }
  #vision .vision__lede { max-width: 100%; }
  .lede { max-width: 100%; }
}

/* --------------------- Marquee ----------------------- */
.marquee {
  position: relative;
  z-index: 2;
  margin-top: clamp(2.5rem, 6vh, 5rem);
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(0.8rem, 2vh, 1.4rem) 0;
}
.marquee__track {
  display: inline-flex;
  font-family: "Barlow", sans-serif;
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  /* will-change géré par GSAP uniquement pendant l'animation */
}
#vision .marquee__track {
  font-family: "Barlow", sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.marquee__track span { padding-right: 0.3em; }

/* ────────────────────────────────────────────────────
   PORTAIL — deux grandes cartes CTA (Soins / Formations)
──────────────────────────────────────────────────── */
.portal {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
}

.portal__divider {
  background: var(--line);
  height: 100%;
}

.portal-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2.5rem, 7vw, 6rem) clamp(2rem, 5vw, 5rem);
  text-decoration: none;
  color: var(--fg);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Fond qui monte depuis le bas au hover */
.portal-card__fill {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  z-index: 0;
  transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: transform;
}

.portal-card:hover .portal-card__fill { transform: scaleY(1); }
.portal-card:hover { color: #fff; }

/* Contenu au-dessus du fill */
.portal-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vh, 1.8rem);
}

.portal-card__index {
  font-family: "Barlow", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.4;
  display: block;
}

.portal-card__title-wrap { overflow: hidden; }

.portal-card__title {
  font-family: "Barlow", sans-serif;
  font-size: clamp(2rem, 4.5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}

.portal-card__sub {
  font-size: clamp(0.82rem, 1.05vw, 0.9rem);
  line-height: 1.85;
  color: var(--fg-soft);
  max-width: 36ch;
  transition: color 0.5s ease;
}
.portal-card:hover .portal-card__sub { color: rgba(255,255,255,0.6); }

/* CTA visible — pill avec bordure */
.portal-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Barlow", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border: 1px solid currentColor;
  border-radius: 100px;
  opacity: 0.6;
  width: fit-content;
  transition: opacity 0.35s ease,
              transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.35s ease,
              color 0.35s ease;
}
.portal-card__arrow svg {
  width: 24px;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.portal-card:hover .portal-card__arrow {
  opacity: 1;
  transform: translateY(-3px);
}
.portal-card:hover .portal-card__arrow svg {
  transform: translateX(5px);
}

@media (max-width: 640px) {
  .portal { grid-template-columns: 1fr; grid-template-rows: 1fr 1px 1fr; }
  .portal__divider { width: 100%; height: 1px; }
  .portal-card__title { font-size: clamp(3rem, 14vw, 6rem); }
}

/* --------------------- Travail ----------------------- */
.works { list-style: none; margin-top: clamp(2rem, 5vh, 4rem); }
.works li {
  display: grid;
  grid-template-columns: 4ch 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: clamp(1.1rem, 3vh, 2rem) 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease), opacity 0.4s var(--ease);
}
.works li:last-child { border-bottom: 1px solid var(--line); }
.works li:hover { padding-left: 1.2rem; }
.works__idx { font-size: 0.85rem; opacity: 0.55; }
.works__name { font-family: "Barlow", sans-serif; font-weight: 700; font-size: clamp(1.6rem, 4.5vw, 3.2rem); line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; }
.works__tag { font-size: 0.8rem; letter-spacing: 0.06em; color: var(--fg-soft); text-transform: uppercase; }

/* --------------------- Contact ----------------------- */
.big-link {
  font-family: "Barlow", sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  position: relative;
  padding-bottom: 0.15em;
}
.big-link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.big-link:hover::after { transform: scaleX(0); transform-origin: right; }

/* ── Vague-cadre hero : se trace TOUT AUTOUR de CÆMAS en aller-retour ── */
/* Le cadre se trace une fois à l'arrivée puis RESTE fermé en permanence
   (les deux bouts se rejoignent parfaitement — boucle fermée). */
.hero__frame-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: hero-frame-draw 2.6s cubic-bezier(.16,1,.3,1) 0.5s forwards;
}
@keyframes hero-frame-draw {
  to { stroke-dashoffset: 0; }
}

/* Sweep conservé pour la vague de la section Contact */
@keyframes wave-sweep {
  0%   { stroke-dashoffset:  700; animation-timing-function: cubic-bezier(.4,0,.2,1); }
  38%  { stroke-dashoffset:    0; animation-timing-function: linear; }
  58%  { stroke-dashoffset:    0; animation-timing-function: cubic-bezier(.4,0,.2,1); }
  92%  { stroke-dashoffset: -700; animation-timing-function: linear; }
  100% { stroke-dashoffset: -700; }
}
.contact__wave-path {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
}
.contact__wave-path.is-animating {
  animation: wave-sweep 7s infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .hero__frame-path { animation: none; stroke-dashoffset: 0; }
}
@media (max-width: 767px) {
  .contact__wave-path { animation: none !important; stroke-dashoffset: 0; }
}

/* ── Vague contact ── */
.contact__wave {
  display: block;
  width: clamp(200px, 55vw, 520px);
  height: auto;
  opacity: 0.35;
  color: var(--fg);
  overflow: visible;
  margin-top: clamp(1.2rem, 3vh, 2rem);
}
/* Géré via .is-animating ajouté par ScrollTrigger */

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 4vh, 3rem);
  max-width: 1280px;
  margin: auto auto 0;
  width: 100%;
  padding-top: clamp(3rem, 8vh, 6rem);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--fg-soft);
}

/* Logo grand dans le footer */
.footer__logo {
  display: block;
  width: clamp(180px, 38vw, 400px);
  height: auto;
  opacity: 0;                   /* animé à l'arrivée (data-reveal) */
  will-change: transform;
  margin-top: -1.25rem;         /* remonte légèrement le poisson */
}
.footer__logo.is-revealed { opacity: 1; }

/* Mobile (tous formats) : poisson nettement plus grand pour que la
   typographie « CAEMAS » soit aussi lisible que sur PC, et remonté. */
@media (max-width: 767px) {
  .footer__logo {
    width: clamp(280px, 86vw, 380px);
    margin-top: -1.5rem;
  }
}


/* Animation nage mobile — poisson entier, typo préservée */
@keyframes fish-swim-mobile {
  0%   { transform: translateY(0px)   rotate(-1.5deg) translateX(0px);   }
  18%  { transform: translateY(-9px)  rotate( 1.2deg) translateX( 4px);  }
  38%  { transform: translateY(-5px)  rotate(-0.4deg) translateX(-2px);  }
  58%  { transform: translateY(-11px) rotate( 1.8deg) translateX( 5px);  }
  78%  { transform: translateY(-3px)  rotate(-1.0deg) translateX(-1px);  }
  100% { transform: translateY(0px)   rotate(-1.5deg) translateX(0px);   }
}

/* Ligne crédits en bas */
.footer__credits {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  width: 100%;
}

/* Liens légaux du footer */
.footer__legal {
  width: 100%;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(22, 19, 15, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.9rem;
}
.footer__legal a,
.footer__legal-btn {
  font-family: "Barlow", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(22, 19, 15, 0.55);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.22s var(--ease);
}
.footer__legal a:hover,
.footer__legal-btn:hover { color: var(--orange); }
.footer__legal-sep { color: rgba(22, 19, 15, 0.25); font-size: 0.7rem; }
@media (max-width: 560px) {
  .footer__legal-sep { display: none; }
  .footer__legal { gap: 0.5rem 1rem; }
}

/* =================== Section Services ================= */

/* Wrapper : hauteur calculée en JS pour que la section sticky
   "roule" aussi longtemps qu'il faut pour scroller toutes les cartes */
.services-wrapper {
  position: relative;
  /* min-height sera écrasé par JS */
  min-height: 100vh;
}

/* La section est gérée par ScrollTrigger.pin (GSAP) — pas de sticky CSS */
.services-section {
  height: 100vh;
  /* matcha nuit profond */
  background: var(--ocean);
  color: var(--fg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 1.8vh, 1.6rem) var(--pad) clamp(1rem, 2vh, 1.8rem);
  --fg: #e8f3eb;
  --fg-soft: rgba(220, 242, 225, 0.6);
  --line: rgba(220, 242, 225, 0.18);
}

/* En-tête : eyebrow + indicateur de scroll */
.services-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
  flex-shrink: 0;
}
.services-sub {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  opacity: 0.5;
  font-style: italic;
  flex-basis: 100%;
  margin-top: -0.2rem;
}
.services-scroll-hint {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-soft);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.services-section.is-active .services-scroll-hint { opacity: 1; }

/* ── Scroll nudge blend hint ── */
.svc-scroll-nudge {
  position: absolute;
  bottom: 2.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  mix-blend-mode: difference;
  color: #fff;
  pointer-events: none;
  z-index: 30;
  opacity: 0;
  will-change: opacity;
}
.svc-scroll-nudge__capsule {
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(255,255,255,0.65);
  border-radius: 11px;
  position: relative;
  flex-shrink: 0;
}
.svc-scroll-nudge__bead {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, 0);
  will-change: transform;
}
.svc-scroll-nudge__label {
  font-size: 0.60rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
  font-family: 'Barlow', sans-serif;
  opacity: 0.70;
}

/* Zone de défilement horizontale */
.services-viewport {
  flex: 1;
  overflow: hidden;   /* was: visible — changed to prevent card bleed-out to the
                         right when GSAP's pinType:transform disrupts parent clipping */
  display: flex;
  align-items: stretch;
}

/* Piste : flex-row des cartes, ne se wrape pas */
.services-track {
  display: flex;
  flex-direction: row;
  gap: clamp(1rem, 2vw, 1.8rem);
  align-items: stretch;
  flex-shrink: 0;
  /* AUCUN padding horizontal : la première carte est collée au bord
     gauche du viewport (lui-même inset de var(--pad) via la section).
     Le JS translate exactement scrollWidth - viewportWidth → la dernière
     carte se colle au bord droit du viewport, donc marge gauche == marge
     droite == var(--pad) sur tous les appareils, quel que soit le nombre
     de cartes. Ne pas réintroduire de padding-left/right ici. */
}

/* ── Fallback Firestore ─────────────────────────────────── */
.js-hidden { display: none !important; }

/* ── Carte service ─────────────────────────────────────── */
.svc-card {
  flex-shrink: 0;
  width: clamp(280px, 26vw, 360px);
  background: #f0ebe0;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 3vh, 2.2rem) clamp(1.4rem, 2.5vw, 2rem);
  position: relative;
  overflow: hidden;
  /* Légère élévation au hover */
  transition: transform 0.4s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); }
/* Pas de hover lift sur touch (mobile) */
@media (hover: none) { .svc-card:hover { transform: none; } }

/* Carte wide (séances multiples) */
.svc-card--wide { width: clamp(320px, 30vw, 420px); }
/* Carte XL — accompagnement avec liste longue */
.svc-card--xl   { width: clamp(360px, 36vw, 500px); }

/* Top : catégorie + index */
.svc-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.4rem, 3vh, 2rem);
}
.svc-card__cat {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--ink);
  color: #f0ebe0;
  padding: 0.3em 0.7em;
  display: inline-block;
}
.svc-card__idx {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.4;
  flex-shrink: 0;
}

/* ── Micro-vague sous le numéro de carte ── */
.svc-card__wave {
  display: block;
  width: 100%;
  height: 10px;
  overflow: hidden;
  margin-bottom: clamp(1rem, 2.5vh, 1.6rem);
  margin-top: calc(-1 * clamp(0.8rem, 2vh, 1.2rem));
  opacity: 0.22;
}
.svc-card__wave svg {
  display: block;
  width: 200%;
  height: 100%;
  animation: svc-wave-scroll 5s linear infinite;
}
@keyframes svc-wave-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Couleur adaptée à la carte (claire vs sombre) */
.svc-card--light .svc-card__wave { opacity: 0.18; }
.svc-card--dark  .svc-card__wave { opacity: 0.28; }

/* Corps */
.svc-card__body { flex: 1; display: flex; flex-direction: column; gap: 0.8rem; overflow: hidden; min-height: 0; }

.svc-card__title {
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.svc-card__mode {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.45;
}
.svc-card__desc {
  font-size: clamp(0.8rem, 0.9vw, 0.9rem);
  line-height: 1.6;
  opacity: 0.65;
  margin-top: 0.4rem;
}

/* Liste options (carte 06 + 01) */
.svc-card__options {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
  max-height: 12rem;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(22,19,15,0.2) transparent;
}
.svc-card__options li {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  opacity: 0.7;
  padding: 0.35rem 0;
  border-top: 1px solid rgba(22, 19, 15, 0.1);
}
/* Liste scrollable pour la carte [ 01 ] avec beaucoup d'options */
.svc-card__options--scroll {
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
  padding-right: 0.4rem;
}
.svc-card__options--scroll::-webkit-scrollbar { width: 3px; }
.svc-card__options--scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }
.svc-card__options--scroll::-webkit-scrollbar-track { background: transparent; }
/* Ligne séparatrice adaptée au fond sombre des services */
.svc-card--xl .svc-card__options li {
  border-top-color: rgba(255,255,255,0.08);
}

/* Tagline Origine */
.origine__tagline {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-top: 1.5rem;
}

/* Pied de carte */
.svc-card__footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: clamp(1.2rem, 2vh, 2rem);
  padding-top: clamp(1rem, 2vh, 1.6rem);
  border-top: 1px solid rgba(22, 19, 15, 0.12);
}
.svc-card__pricing {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}
.svc-card__duration {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.45;
}
.svc-card__price {
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  letter-spacing: -0.01em;
}

/* Boutons */
.svc-card__btns {
  display: flex;
  gap: 0.6rem;
}

/* Bouton générique */
.svc-btn {
  flex: 1;
  position: relative;
  overflow: hidden;
  font-family: "Barlow", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7em 0;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.35s ease;
}

/* Ghost (Détails) */
.svc-btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(22, 19, 15, 0.25);
  flex: 0 0 auto;
  padding: 0.7em 1.1em;
  transition: color 0.35s ease, box-shadow 0.35s ease;
}
.svc-btn--ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

/* Réserver — blob fill */
.svc-btn--book {
  background: var(--ink);
  color: #f0ebe0;
  isolation: isolate;
  gap: 0;
}
.svc-btn__label {
  position: relative;
  z-index: 2;
  transition: color 0.35s ease;
}
.svc-btn__fill {
  position: absolute;
  inset: 0;
  background: var(--royal);
  z-index: 1;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.svc-btn--book:hover .svc-btn__fill,
.svc-btn--book:focus-visible .svc-btn__fill {
  transform: scaleX(1);
  transform-origin: left center;
}
.svc-btn--book:hover .svc-btn__label { color: #e0e4f5; }

/* ── Prix promo (Fix 4) ── */
.svc-card__price-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}
.svc-card__price--old {
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 600;
  text-decoration: line-through;
  opacity: 0.45;
}
.svc-card__price--promo {
  color: var(--orange);
}
/* Fix 8: countdown badge */
.svc-card__countdown {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--orange);
  background: rgba(216, 82, 40, 0.08);
  border: 1px solid rgba(216, 82, 40, 0.2);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  white-space: nowrap;
  margin-top: 2px;
}

/* ── Fin section services ── */

/* =================== Animations base ================== */
/* Texte découpé par ligne (rempli par JS) */
.line-mask { display: block; overflow: hidden; }
.line-inner { display: block; }

/* will-change supprimés sur .line-inner et [data-reveal] :
   GSAP les ajoute automatiquement au démarrage de chaque animation
   et les retire à la fin → zéro couches GPU permanentes inutiles. */

/* Masquer les éléments animés avant que GSAP les initialise.
   Évite le flash du texte brut pendant le découpage par splitIntoLines()
   et le layout-shift visible au premier paint.
   GSAP restaure opacity:1 dans initReveals() dès que l'élément est prêt. */
[data-split],
[data-reveal] {
  opacity: 0;
}

/* Note : pas de fallback prefers-reduced-motion ici.
   Le scroll momentum et les panneaux sticky sont l'expérience core. */

/* ================================================================
   ORIGINE & ESSENCE
   ================================================================ */

/* Mots-fantômes — énormes textes flottants presque invisibles */
.origine__wave-canvas { display: none; }

.origine__ghosts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Wrapper de positionnement + dérive horizontale atmosphérique */
.o-ghost-drift {
  position: absolute;
  /* will-change retiré — évite la promotion GPU qui fait fuiter hors overflow:hidden */
}

/* Dérive douce vers la droite : alternate = oscillation continue sans saut
   Pas de translateZ(0) — évite la promotion GPU qui peut échapper à overflow:hidden */
@keyframes ghost-drift {
  from { transform: translateX(-3vw); }
  to   { transform: translateX(3vw); }
}

/* Chaque mot : durée et phase différentes → effet parallaxe atmosphérique */
.o-ghost-drift--1 { top: 4%;     left: -4%;  animation: ghost-drift  88s linear infinite alternate; }
.o-ghost-drift--2 { top: 36%;    right: -6%; animation: ghost-drift 112s linear infinite alternate; animation-delay: -40s; }
.o-ghost-drift--3 { bottom: 22%; left: 6%;   animation: ghost-drift  70s linear infinite alternate; animation-delay: -15s; }
.o-ghost-drift--4 { bottom: 3%;  right: 3%;  animation: ghost-drift 100s linear infinite alternate; animation-delay: -65s; }

.o-ghost {
  display: block;
  font-family: "Barlow", sans-serif;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.045;
  white-space: nowrap;
  line-height: 1;
  user-select: none;
  /* layer GPU dédié → la parallaxe (transform) ne re-rasterise pas ce gros texte */
  will-change: transform;
  transform: translateZ(0);
}

.o-ghost--1 { font-size: clamp(4rem, 11vw, 13rem); }
.o-ghost--2 { font-size: clamp(3rem, 8vw,  10rem); }
.o-ghost--3 { font-size: clamp(4rem, 12vw, 15rem); }
.o-ghost--4 { font-size: clamp(3rem, 7vw,   9rem); }

/* Tagline — mot par mot */
.origine__tagline-word {
  display: inline-block;
  white-space: pre;
}

.panel__inner--origine {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(0.4rem, 1vh, 0.8rem);
  padding-top: clamp(1rem, 2vh, 2rem);
}

.panel__inner--origine .eyebrow {
  width: 100%;
  text-align: center;
  opacity: 0.65;
  letter-spacing: 0.22em;
}

/* ── Images produits boutique ── */
/* ── Mot BOUTIQUE au-dessus de la ligne vague — même traitement que .hero__logotype ── */
.origine__boutique-word {
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 10.5vw, 12.5vw);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.88;
  text-align: center;
  width: 100%;
  margin: 0;
  /* blend difference : blanc s'inverse selon le fond — identique au logotype CAEMAS */
  color: #fff;
  mix-blend-mode: difference;
  position: relative;
  z-index: 2;
}

/* ── Séparateur ondulé ── */
.origine__sep {
  width: 100%;
  height: 60px;
  flex-shrink: 0;
  overflow: hidden;
  /* clip-path reveal piloté par GSAP */
  clip-path: inset(0 100% 0 0);
}
.origine__sep-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Row titre + bouton ── */
.origine__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 5rem);
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}



.origine__headline {
  font-size: clamp(3.5rem, 8vw, 10rem) !important;
  line-height: 0.88;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  text-align: left;
}

.origine__body {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* ── Bouton Boutique — Origine & Essence ── */
/* ── Colonne droite boutique ── */
.boutique-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  flex-shrink: 0;
}

/* ── Description produits ── */
.boutique-desc {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.boutique-desc__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  font-family: "Barlow", sans-serif;
  font-size: clamp(0.58rem, 0.7vw, 0.65rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  width: fit-content;
}
.boutique-desc__star {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.6em;
}

/* Séparateur fin entre badge et liste */
.boutique-desc__sep {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  transform-origin: left center;
  transform: scaleX(0);
}

.boutique-desc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.boutique-desc__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Barlow", sans-serif;
  font-size: clamp(0.72rem, 0.88vw, 0.82rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateX(-8px);
}

.boutique-desc__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.boutique-btn {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem 1rem 1.4rem;
  border-radius: 100px;
  border: none;
  /* blanc + difference → corail/saumon sur turquoise, identique à "Se connecter" */
  background: #fff;
  color: #000;
  mix-blend-mode: difference;
  font-family: "Barlow", sans-serif;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease;
  cursor: none;
}
.boutique-btn__fill { display: none; }
.boutique-btn__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.08);
  border-radius: 50%;
  padding: 5px;
  position: relative;
  z-index: 1;
  transition: background 0.45s ease;
}
.boutique-btn__icon svg {
  width: 100%;
  height: 100%;
}
.boutique-btn__label,
.boutique-btn__arrow {
  position: relative;
  z-index: 1;
}
.boutique-btn__arrow {
  font-size: 1.05rem;
  opacity: 0.7;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease;
}
.boutique-btn:hover {
  transform: translateY(-2px) scale(1.03);
  opacity: 0.88;
}
.boutique-btn:hover .boutique-btn__arrow {
  transform: translateX(6px);
  opacity: 1;
}

/* Variante pleine (crème + accent orange) — bouton « Découvrir nos séances ».
   Pas de blend : couleurs explicites pour une vraie touche d'orange. */
.boutique-btn--solid {
  mix-blend-mode: normal;
  background: #f5f0e1;
  color: #16130f;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}
.boutique-btn--solid .boutique-btn__icon {
  background: var(--orange);
  color: #fff;
}
.boutique-btn--solid .boutique-btn__arrow { color: var(--orange); opacity: 1; }
.boutique-btn--solid:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════════════
   BOUTIQUE — état « Bientôt disponible »
   Tout le bloc --soon contourne le mix-blend-mode hérité du
   .boutique-btn normal en forçant isolation:isolate sur la colonne
   et en redéfinissant complètement le bouton fermé sans blend-mode.
   ══════════════════════════════════════════════════════════════ */

/* La colonne crée un nouveau contexte de rendu → annule le blend-mode
   des enfants qui en héritaient implicitement */
.boutique-col--soon {
  isolation: isolate;
}

/* Tag « Bientôt disponible » ─────────────────────────────────── */
.boutique-soon-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.44rem 1rem;
  border-radius: 100px;
  /* Fond noir + contours dans l'orange de la page (--orange) */
  border: 1.5px solid var(--orange);
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: "Barlow", sans-serif;
  font-size: clamp(0.6rem, 0.72vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  width: fit-content;
  mix-blend-mode: normal;
}
.boutique-soon-tag__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D85228;
  box-shadow: 0 0 0 0 rgba(216, 82, 40, 0.6);
  animation: boutiqueSoonPulse 2.2s ease-out infinite;
  flex-shrink: 0;
}
@keyframes boutiqueSoonPulse {
  0%   { box-shadow: 0 0 0 0   rgba(216, 82, 40, 0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(216, 82, 40, 0);   }
  100% { box-shadow: 0 0 0 0   rgba(216, 82, 40, 0);   }
}
@media (prefers-reduced-motion: reduce) {
  .boutique-soon-tag__pulse { animation: none; }
}

/* Bouton « Fermé » ────────────────────────────────────────────
   Redéfinit entièrement le rendu : pas de blend-mode, fond foncé
   semi-transparent, bordure blanche discrète, cadenas ambré.
   Inerte au clic (aucun handler attaché, <button type=button>) mais on
   GARDE pointer-events:auto pour que le curseur personnalisé détecte le
   survol et joue l'animation de grossissement. */
.boutique-btn--closed {
  mix-blend-mode: normal !important;
  background: rgba(0, 0, 0, 0.42) !important;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  pointer-events: auto;
  opacity: 1 !important;
}
.boutique-btn--closed:hover,
.boutique-btn--closed:focus {
  transform: none !important;
  opacity: 1 !important;
}
.boutique-btn--closed .boutique-btn__icon {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff;
}
.boutique-btn__lock {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  color: var(--orange); /* cadenas dans l'orange de la page */
  flex-shrink: 0;
}
.boutique-btn__lock svg { width: 100%; height: 100%; display: block; }

.origine__body .lede {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 500;
  line-height: 1.5;
  color: #06101f;
}

.origine__body p {
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  line-height: 1.75;
  color: var(--fg-soft);
}

@media (max-width: 768px) {
  .panel__inner--origine {
    padding-top: clamp(3rem, 8vh, 5rem);
    gap: 1rem;
  }
  .origine__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .origine__headline {
    font-size: clamp(3rem, 11vw, 5.5rem) !important;
  }
  .origine__body .lede { color: var(--fg); }
  .origine__body p     { color: var(--fg-soft); }
}

/* ================================================================
   EXCELLENCE — section compacte (même gabarit qu'Origine)
   ================================================================ */
#excellence {
  min-height: auto;
  padding-top:    clamp(3.5rem, 8vh, 6rem);
  padding-bottom: clamp(2rem,   5vh, 4rem);
}

/* ================================================================
   EXCELLENCE — étoile géométrique
   ================================================================ */
.exc__star {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(280px, 50vw, 600px);
  height: auto;
  opacity: 0.1;
  pointer-events: none;
  /* centrage géré par GSAP (xPercent/yPercent) pour ne pas
     entrer en conflit avec transform: rotate() animé */
}
/* État initial caché */
.exc-path, .exc-ray {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.exc-dot, .exc-center {
  opacity: 0;
  transform-origin: center;
  scale: 0;
  color: var(--orange); /* points en orange */
  fill: var(--orange);
}
/* Vagues Nu Genea — 3 lignes rapprochées */
.exc-waves {
  display: block;
  width: 100%;
  height: 22px;
  margin: clamp(1.8rem, 4vh, 3rem) 0 0;
  pointer-events: none;
}

/* Orange dans le marquee */
.marquee__orange { color: var(--orange); font-style: normal; }

/* Marquee silhouettes géographiques */
.marquee--flags { padding: clamp(1.2rem, 3vh, 2rem) 0; }
/* Pays sous la vague — bord à bord (break-out du padding du panel) */
/* Hero : padding-bottom suffisant pour que les noms sous les SVG pays
   ne soient pas clippés par overflow:clip du panel */
#hero { padding-bottom: clamp(3rem, 6vh, 5rem); }

#hero .marquee--flags {
  margin-top: clamp(1.4rem, 2.6vh, 2.2rem);
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
/* Supprime le padding-right générique qui crée un gap asymétrique au loop */
.marquee--flags .marquee__track span { padding-right: 0; }
.marquee--flags .marquee__track {
  font-style: normal;
  font-weight: 400;
  align-items: flex-end;
  gap: 0;
}
.marquee__flag-group {
  display: inline-flex;
  align-items: flex-end;
  gap: 0;
  white-space: nowrap;
}
.mq-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55em;
  margin: 0 clamp(1.6rem, 3vw, 3rem);
}
.mq-island {
  display: block;
  height: clamp(44px, 6vw, 64px);
  width: auto;
  flex-shrink: 0;
}
.mq-name {
  font-family: "Barlow", sans-serif;
  font-size: clamp(0.65rem, 1vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.65;
}
.mq-sep {
  display: inline-flex;
  align-self: center;
  font-size: 0.35em;
  opacity: 0.3;
  flex-shrink: 0;
}

/* Underline animé sur "intention précise" */
.exc__word-precise {
  white-space: nowrap;
  padding-bottom: 6px;
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 3px;
  transition: background-size 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.exc__word-precise.is-underlined {
  background-size: 100% 3px;
}

/* ================================================================
   FORMATIONS
   ================================================================ */
.formations__head {
  margin-bottom: clamp(3rem, 7vh, 5rem);
}

.formations__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.form-card {
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease;
}

.form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.form-card:hover {
  border-color: var(--line);   /* conserve la même bordure visible au hover */
  box-shadow: inset 0 0 0 1px var(--line);  /* double le trait pour le renforcer */
}

.form-card__badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.form-badge {
  font-family: "Barlow", sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--line);
  color: var(--fg-soft);
}

.form-card__title {
  font-family: "Barlow", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.0;
  color: var(--fg);
}

.form-card__sub {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-top: -0.8rem;
}

.form-card__desc {
  font-size: clamp(0.85rem, 1vw, 0.92rem);
  line-height: 1.7;
  color: var(--fg-soft);
  flex: 1;
}

.form-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.form-card__price-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.form-card__price-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
}

.form-card__price {
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--fg);
}

/* Bouton Réserver ma place */
.form-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  font-family: "Barlow", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--fg);
  color: var(--night);
  border: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  flex-shrink: 0;
  transition: color 0.4s ease;
}

.form-btn__label {
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
}

.form-btn__fill {
  position: absolute;
  inset: 0;
  background: var(--royal);
  z-index: 1;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-btn:hover .form-btn__fill,
.form-btn:focus-visible .form-btn__fill {
  transform: scaleX(1);
  transform-origin: left center;
}

.form-btn:hover .form-btn__label { color: #e0e4f5; }

@media (max-width: 768px) {
  .formations__grid { grid-template-columns: 1fr; }
  .form-card__footer { flex-direction: column; align-items: flex-start; }
}

/* ================================================================
   APPEL DÉCOUVERTE — CTA
   ================================================================ */
.discovery__headline {
  font-size: clamp(2.8rem, 7vw, 8rem) !important;
  line-height: 0.92;
  padding-right: 0.12em; /* empêche le "." d'être clippé par line-mask overflow:hidden */
}
@media (max-width: 767px) {
  .discovery__headline {
    font-size: clamp(2.1rem, 7vw, 8rem) !important;
  }

  /* Sur mobile, les titres [data-split] dans un conteneur centré doivent occuper
     toute la largeur disponible — sinon splitIntoLines rétrécit l'élément à la
     largeur de la ligne la plus longue, rendant les lignes plus courtes mal centrées */
  .panel__inner--center [data-split] {
    width: 100%;
    max-width: 100%;
  }
}

.discovery__sub {
  max-width: 52ch;
  color: var(--fg-soft);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem) !important;
}

.discovery__actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.discovery__phone {
  font-family: "Barlow", sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--fg-soft);
  text-decoration: none;
  transition: color 0.3s ease;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.1rem;
}

.discovery__phone:hover { color: var(--fg); }

/* override gap pour la section discovery */
#discovery .panel__inner--center { gap: clamp(1.5rem, 3vh, 2.5rem); }

/* Carte "vous parlerez à Katiuscia" */
.discovery__caller {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(22,19,15,0.12);
  border-radius: 50px;
  padding: 0.55rem 1.1rem 0.55rem 0.55rem;
  width: fit-content;
  margin: 0 auto;
}
.discovery__caller-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--deep, #067a7e);
  color: #ffffff;
  font-family: "Barlow", sans-serif;
  font-size: 0.85rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0;
}
.discovery__caller-text {
  display: flex; flex-direction: column; gap: 0.05rem;
}
.discovery__caller-name {
  font-family: "Barlow", sans-serif;
  font-size: 0.82rem; font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.01em;
}
.discovery__caller-role {
  font-family: "Barlow", sans-serif;
  font-size: 0.68rem; font-weight: 500;
  color: var(--fg-soft);
  letter-spacing: 0.01em;
}

/* ── Étoiles de mer décoratives (section Vision) ── */
.vision__stars { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
#vision .panel__inner { position: relative; z-index: 2; }
.vision__star {
  position: absolute;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,0.28));
  animation: star-float 8s ease-in-out infinite;
  will-change: translate;
}
.vision__star--left {
  left: -3%; top: 20%;
  width: clamp(180px, 26vw, 440px);
  rotate: -10deg;
}
.vision__star--right-1 {
  right: 0%; top: 12%;
  width: clamp(120px, 15vw, 240px);
  rotate: 13deg;
  animation-delay: -2.6s;
}
.vision__star--right-2 {
  right: 9%; bottom: 12%;
  width: clamp(78px, 9vw, 150px);
  rotate: -8deg;
  animation-delay: -5.2s;
}
.vision__star--left-2 {
  left: 5%; bottom: 13%;
  width: clamp(90px, 11vw, 185px);
  rotate: 16deg;
  animation-delay: -3.8s;
}
.vision__star--left-3 {
  left: 14%; top: 4%;
  width: clamp(66px, 8vw, 130px);
  rotate: -20deg;
  animation-delay: -6.4s;
}
.vision__star--right-3 {
  right: 4%; top: 42%;
  width: clamp(78px, 10vw, 165px);
  rotate: -12deg;
  animation-delay: -1.4s;
}
.vision__star--right-4 {
  right: 22%; bottom: 5%;
  width: clamp(60px, 7vw, 115px);
  rotate: 9deg;
  animation-delay: -4.6s;
}
@keyframes star-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -18px; }
}
@media (max-width: 820px) {
  /* Visibles sur mobile aussi (demande client) — réduites + plus discrètes
     pour ne pas gêner la lecture du texte centré. */
  .vision__star { opacity: 0.45; animation-duration: 9s; }
  .vision__star--left    { width: 130px; left: -7%; top: 16%; }
  .vision__star--right-1 { width: 95px;  top: 9%; }
  .vision__star--right-2 { width: 70px;  right: 4%; bottom: 14%; }
  .vision__star--left-2  { width: 74px;  left: 2%; bottom: 16%; }
  .vision__star--left-3  { width: 56px;  left: 6%;  top: 3%; }
  .vision__star--right-3 { width: 62px;  right: 2%; top: 44%; }
  .vision__star--right-4 { width: 50px;  right: 14%; bottom: 6%; }
}

/* Bouton Réserver (CTA section) */
.disc-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3rem;
  font-family: "Barlow", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--base);
  border: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s ease;
}

.disc-btn__label {
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
}

.disc-btn__fill {
  position: absolute;
  inset: 0;
  background: var(--royal);
  z-index: 1;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.disc-btn:hover .disc-btn__fill,
.disc-btn:focus-visible .disc-btn__fill {
  transform: scaleX(1);
  transform-origin: left center;
}

.disc-btn:hover .disc-btn__label { color: #e0e4f5; }

/* ================================================================
   PHONE REVEAL BUTTON
   ================================================================ */

/* Hide the number span by default; show the label */
.phone-reveal-btn__number {
  display: none;
}

/* When revealed: swap label↔number */
.phone-reveal-btn.is-revealed .phone-reveal-btn__label {
  display: none;
}
.phone-reveal-btn.is-revealed .phone-reveal-btn__number {
  display: inline;
}

/* In service cards: make the phone button auto-width so "Réserver" keeps its space */
.svc-card__btns .phone-reveal-btn {
  flex: 0 0 auto;
  padding: 0.7em 1.1em;
}

/* In formation cards: wrap both buttons in a flex row */
.form-card__btns {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

/* GSAP crossfade: when JS adds transition classes */
.phone-reveal-btn__label,
.phone-reveal-btn__number {
  position: relative;
  z-index: 2;
  transition: opacity 0.25s ease;
}

@media (max-width: 768px) {
  .form-card__btns { flex-direction: column; align-items: stretch; }
}

/* ── Mobile : compense la barre navigateur qui masque le bas des cartes ── */
@media (pointer: coarse) {
  .svc-card {
    padding-bottom: calc(clamp(1.4rem, 3vh, 2.2rem) + env(safe-area-inset-bottom, 0px) + 1.5rem);
  }
  .services-track {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

/* ================================================================
   MOBILE SCROLL FIXES (< 768px)
   ================================================================ */
@media (max-width: 767px) {
  /* Services : GSAP scrub horizontal — même comportement que desktop */
  .services-wrapper {
    min-height: 100vh; /* fallback */
    min-height: 100svh;
  }
  .services-section {
    height: 100vh; /* fallback navigateurs sans svh */
    height: 100svh;
    overflow: hidden;
  }
  #services .services-viewport {
    overflow: hidden;
  }
  .svc-card {
    width: min(82vw, 340px) !important;
    flex-shrink: 0;
  }
  .services-track {
    width: max-content;
    /* Pas de padding horizontal (cf. règle desktop) : symétrie gauche/droite
       garantie par la translation exacte du JS. Seul le padding bas reste
       pour compenser la barre du navigateur mobile. */
    padding-left: 0;
    padding-right: 0;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
  }

  /* Panels mobile : overflow:clip conservé (ne casse pas le scroll Lenis sur iOS) */
  .services-section { overflow: hidden; }
}

/* =========================================================
   MODAL CHOIX DES OPTIONS — design premium CAEMAS
   Hooks JS préservés — ne pas renommer les classes / ids.
   ========================================================= */

/* ── Wrapper overlay ────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════
   OPT-MODAL — Sélection d'options CAEMAS
   Design : tête dark navy + vague + corps crème + pied fort
   ═══════════════════════════════════════════════════════════ */

.opt-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(.75rem, 3vw, 1.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s var(--ease), visibility .22s var(--ease);
}
.opt-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── Backdrop ── */
.opt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 19, 15, .62);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

/* ── Panel principal ── */
.opt-modal__panel {
  position: relative;
  width: min(540px, 100%);
  max-height: 92dvh;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--base, #f5f0e1);
  color: var(--ink, #16130f);
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 4px 12px  rgba(22, 19, 15, .08),
    0 24px 64px rgba(22, 19, 15, .28),
    0 64px 128px rgba(22, 19, 15, .12);
  will-change: transform, opacity;
}

/* ── Tête sombre (style section CAEMAS) ── */
.opt-modal__head {
  position: relative;
  background: #1b2a4a;
  padding: 1.8rem 1.9rem 1.6rem;
  flex-shrink: 0;
  overflow: hidden;
}
/* grain décoratif */
.opt-modal__head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: .35;
  pointer-events: none;
}
.opt-modal__head-inner { position: relative; z-index: 1; }

/* Bouton fermer — dans la tête */
.opt-modal__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 20;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245, 240, 225, .1);
  border: 1px solid rgba(245, 240, 225, .16);
  border-radius: 50%;
  color: rgba(245, 240, 225, .7);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), transform .25s var(--ease);
}
.opt-modal__close:hover {
  background: rgba(216, 82, 40, .22);
  color: #f5f0e1;
  border-color: rgba(216, 82, 40, .4);
  transform: rotate(90deg) scale(1.1);
}

/* Catégorie */
.opt-modal__cat {
  display: inline-block;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--orange, #D85228);
  margin-bottom: .55rem;
}

/* Titre */
.opt-modal__title {
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  line-height: 1.0;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: #f5f0e1;
  margin-bottom: .5rem;
  max-width: calc(100% - 3rem);
}

/* Micro-vague animée sous le titre (style svc-card) */
.opt-modal__titlewave {
  display: block;
  width: 100%;
  height: 10px;
  overflow: hidden;
  margin: .15rem 0 .7rem;
  color: var(--orange, #D85228);
  opacity: .7;
}
.opt-modal__titlewave svg {
  display: block;
  width: 200%;
  height: 100%;
  animation: svc-wave-scroll 5s linear infinite;
}

/* Hint */
.opt-modal__hint {
  font-size: .82rem;
  color: rgba(245, 240, 225, .52);
  margin-bottom: 0;
  font-weight: 500;
  letter-spacing: .01em;
}

/* ── Corps crème (scrollable) ── */
.opt-modal__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 1.25rem 1.6rem 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.opt-modal__scroll::-webkit-scrollbar { display: none; }

/* ── Liste d'options ── */
.opt-modal__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.opt-item { position: relative; }

.opt-item__label {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0 .9rem;
  padding: .95rem 1rem .95rem .85rem;
  background: #fbf7ec;
  border: 1.5px solid rgba(27, 42, 74, .1);
  border-radius: 16px;
  cursor: pointer;
  transition:
    border-color .22s var(--ease),
    background   .22s var(--ease),
    box-shadow   .22s var(--ease);
}
/* Hover = simple surbrillance, AUCUN déplacement (le curseur grossit) */
.opt-item__label:hover {
  border-color: rgba(27, 42, 74, .28);
  background: #fffdf7;
  box-shadow: 0 2px 10px rgba(27, 42, 74, .06);
}

/* Input natif masqué */
.opt-item__input {
  position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0;
}

/* Numéro d'ordre style [01] */
.opt-item__num {
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: rgba(27, 42, 74, .3);
  font-variant-numeric: tabular-nums;
  min-width: 1.6rem;
  line-height: 1;
  user-select: none;
}

/* Nom de l'option */
.opt-item__name {
  font-size: .94rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  transition: font-weight .18s ease, color .18s ease;
}
.opt-item__input:checked ~ .opt-item__name {
  font-weight: 700;
  color: #1b2a4a;
}

/* Prix */
.opt-item__price {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  text-align: right;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .05rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
}
.opt-item__price s {
  color: rgba(22, 19, 15, .38);
  font-size: .76rem;
  font-weight: 500;
  text-decoration-color: rgba(22, 19, 15, .25);
}
.opt-item__price strong {
  color: var(--orange, #D85228);
  font-weight: 800;
  font-size: 1rem;
}

/* Marque custom (checkbox/radio) */
.opt-item__mark {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 2px solid rgba(27, 42, 74, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  position: relative;
  transition:
    border-color .2s var(--ease),
    background   .2s var(--ease),
    box-shadow   .2s var(--ease);
}
.opt-item__input[type="checkbox"] ~ .opt-item__mark { border-radius: 6px; }

/* État coché — fond navy bien visible */
.opt-item__input:checked ~ .opt-item__mark {
  border-color: #1b2a4a;
  background: #1b2a4a;
  box-shadow: 0 0 0 4px rgba(27, 42, 74, .12), 0 2px 8px rgba(27, 42, 74, .35);
}
/* Radio — point crème central */
.opt-item__input[type="radio"]:checked ~ .opt-item__mark::after {
  content: "";
  position: absolute; inset: 5px;
  border-radius: 50%;
  background: #f5f0e1;
}
/* Checkbox — coche crème */
.opt-item__input[type="checkbox"]:checked ~ .opt-item__mark::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 5.5px;
  border-left: 2px solid #f5f0e1;
  border-bottom: 2px solid #f5f0e1;
  transform: translate(-50%, -62%) rotate(-45deg);
}

/* Ligne sélectionnée — fond teinté navy */
.opt-item__label:has(.opt-item__input:checked) {
  border-color: rgba(27, 42, 74, .38);
  background: rgba(27, 42, 74, .06);
  box-shadow:
    0 3px 14px rgba(27, 42, 74, .09),
    inset 0 0 0 1px rgba(27, 42, 74, .06);
}
.opt-item__label:has(.opt-item__input:checked) .opt-item__num {
  color: #1b2a4a;
}
.opt-item__label:has(.opt-item__input:checked):hover {
  box-shadow:
    0 8px 24px rgba(27, 42, 74, .13),
    inset 0 0 0 1px rgba(27, 42, 74, .08);
}

/* ── Pied de modal ── */
.opt-modal__foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.6rem clamp(1.1rem, 2.5vw, 1.5rem);
  background: linear-gradient(to bottom, rgba(245, 240, 225, 0) 0%, var(--base, #f5f0e1) 18%);
  border-top: 1px solid rgba(27, 42, 74, .08);
}
.opt-modal__foot::before {
  content: "";
  position: absolute;
  top: -32px; left: 0; right: 0;
  height: 32px;
  background: linear-gradient(to top, var(--base, #f5f0e1), transparent);
  pointer-events: none;
}

/* Total */
.opt-modal__total { display: flex; flex-direction: column; gap: .1rem; }
.opt-modal__total-lbl {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(22, 19, 15, .4);
}
.opt-modal__total-val {
  font-size: 1.8rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.03em;
  color: #1b2a4a;
}

/* Bouton Continuer — design des cartes (RÉSERVER / DÉCOUVRIR) */
.opt-modal__confirm {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: none;
  background: var(--ink, #16130f);
  color: #f0ebe0;
  padding: .85rem 1.9rem;
  border-radius: 0;
  font-family: "Barlow", sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .35s ease, opacity .2s ease;
}
.opt-modal__confirm-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: color .35s ease;
}
.opt-modal__confirm-fill {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--royal, #1C3E72);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .65s cubic-bezier(.16, 1, .3, 1);
}
.opt-modal__confirm:hover .opt-modal__confirm-fill,
.opt-modal__confirm:focus-visible .opt-modal__confirm-fill {
  transform: scaleX(1);
  transform-origin: left center;
}
.opt-modal__confirm:hover .opt-modal__confirm-label { color: #e0e4f5; }
.opt-modal__confirm.is-disabled,
.opt-modal__confirm:disabled {
  opacity: .26;
  pointer-events: none;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .opt-modal, .opt-modal__panel, .opt-modal__backdrop,
  .opt-item__label, .opt-item__mark, .opt-modal__confirm,
  .opt-modal__close { transition: none; }
}

/* ── Mobile ≤ 580px ── */
@media (max-width: 580px) {
  .opt-modal {
    padding: .4rem .4rem 0;
    align-items: flex-end;
  }
  .opt-modal__panel {
    width: 100%;
    max-height: 94dvh; max-height: 94vh;
    border-radius: 24px 24px 16px 16px;
  }
  .opt-modal__title { font-size: 1.55rem; }
  .opt-modal__foot {
    padding-bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  }
}

/* ===========================================================
   AVIS CLIENTS — section témoignages + carrousel
   =========================================================== */
.avis__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.8rem, 4vh, 3rem);
  width: 100%;
}
.avis__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.avis__title { margin: 0; }
.avis__summary {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: flex-start;
}
.avis__summary-stars { display: inline-flex; gap: .15rem; color: #c9871f; }
.avis__summary-stars .avis-star { width: 22px; height: 22px; }
.avis__summary-text {
  margin: 0;
  font-size: 1rem;
  color: var(--fg-soft);
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.avis__summary-text strong {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -.01em;
}

/* Étoile générique (section + cartes) */
.avis-star { display: inline-flex; width: 16px; height: 16px; line-height: 0; }
.avis-star svg { width: 100%; height: 100%; display: block; }

/* Carrousel : masque + piste en translation JS */
.avis-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* le scroll vertical de la page reste natif/fluide ; seul le swipe
     horizontal est géré par JS (verrouillage d'axe) */
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  cursor: grab;
}
.avis-carousel.is-dragging { cursor: grabbing; }
/* Souris précise : on masque le curseur natif → la main personnalisée (blend) prend le relais */
@media (pointer: fine) {
  .avis-carousel, .avis-carousel.is-dragging, .avis-carousel * { cursor: none; }
}
.avis-carousel__track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.6rem);
  will-change: transform;
  width: max-content;
}
.avis-carousel__loading { color: var(--fg-soft); font-size: .9rem; padding: 2rem 0; }

.avis-card {
  flex: 0 0 auto;
  width: clamp(280px, 30vw, 380px);
  background: #fffdf8;
  border: 1px solid rgba(42, 36, 31, 0.08);
  border-radius: 22px;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 20px 48px rgba(42, 36, 31, 0.12);
  user-select: none;
}
.avis-card__stars { display: inline-flex; gap: .18rem; color: #c9871f; }
.avis-card__stars .avis-star { width: 19px; height: 19px; }
.avis-card__text {
  margin: 0;
  font-size: clamp(.95rem, 1.15vw, 1.08rem);
  line-height: 1.6;
  color: var(--fg);
  font-style: italic;
  flex: 1;
}
.avis-card__foot {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding-top: .4rem;
  border-top: 1px solid rgba(42, 36, 31, 0.1);
}
.avis-card__avatar {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep), #045659);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
}
.avis-card__who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.avis-card__name { font-weight: 700; font-size: .92rem; color: var(--fg); }
.avis-card__item {
  font-size: .76rem;
  color: var(--fg-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .avis__head { flex-direction: column; align-items: flex-start; }
  .avis-card { width: 78vw; }
}
