/* =================================================================
   SKI MASTER — style.css
   Minimalisme éditorial suisse · monochrome + signal rouge
   Tous les tokens sont en :root pour un swap immédiat.
   ================================================================= */

/* -----------------------------------------------------------------
   SPLASH SCREEN (première visite + changement de langue)
   Auto-dismiss ~3s. Scope préfixé .sm-splash pour éviter conflits.
   ----------------------------------------------------------------- */
.sm-splash {
  position: fixed; inset: 0; z-index: 10000;
  background: #0A0A0A;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 22px; /* espace serré entre le monogramme et la barre de chargement */
  transform: translateY(0);
  visibility: hidden; opacity: 0;
  pointer-events: none;
}
.sm-splash.is-active { visibility: visible; opacity: 1; pointer-events: auto; }
.sm-splash.is-exit {
  transition: transform .7s cubic-bezier(.77,0,.18,1) .15s;
  transform: translateY(-100%);
}

/* Logo plus compact que dans le fichier standalone (62vw/760px -> 44vw/440px) */
.sm-splash__logo { width: min(44vw, 440px); height: auto; overflow: visible; }

.sm-splash__draw {
  fill-opacity: 0;
  stroke-width: 1.6; stroke-linejoin: miter;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.sm-splash.is-active .sm-splash__draw {
  animation: sm-splash-trace 1.05s cubic-bezier(.77,0,.18,1) forwards,
             sm-splash-ink   .55s ease-out forwards;
}
.sm-splash.is-active .sm-splash__pS {
  stroke: #A9ABB7; fill: #A9ABB7; animation-delay: .15s, 1.0s;
}
.sm-splash.is-active .sm-splash__pK {
  stroke: #F5F4F1; fill: #F5F4F1; animation-delay: .32s, 1.15s;
}
@keyframes sm-splash-trace { to { stroke-dashoffset: 0; } }
@keyframes sm-splash-ink   { to { fill-opacity: 1; stroke-opacity: 0; } }

.sm-splash__fanion { clip-path: inset(0 100% 0 0); }
.sm-splash.is-active .sm-splash__fanion {
  animation: sm-splash-plant .42s cubic-bezier(.77,0,.18,1) 1.5s forwards;
}
@keyframes sm-splash-plant { to { clip-path: inset(0 0 0 0); } }

.sm-splash__croix { opacity: 0; transform-origin: 1089px 382px; }
.sm-splash.is-active .sm-splash__croix {
  animation: sm-splash-cross .28s cubic-bezier(.77,0,.18,1) 1.86s forwards;
}
@keyframes sm-splash-cross {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: scale(1); }
}

/* Loader + tag positionnés en flux normal (juste en dessous du logo grâce
   au gap du parent) - fini le "bottom: 16%" qui décrochait sur mobile. */
.sm-splash__loader {
  width: min(44vw, 440px); /* alignée sur la largeur du logo */
  height: 1px; background: rgba(169,171,183,.18);
}
.sm-splash__loader i {
  display: block; height: 1px; width: 0; background: #C1272D;
}
.sm-splash.is-active .sm-splash__loader i {
  animation: sm-splash-load 1.05s cubic-bezier(.77,0,.18,1) 1.7s forwards;
}
@keyframes sm-splash-load { to { width: 100%; } }

.sm-splash__tag {
  margin-top: -14px; /* remonte le tag pour qu'il soit collé à la barre */
  color: #A9ABB7;
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  opacity: 0;
}
.sm-splash.is-active .sm-splash__tag {
  animation: sm-splash-tag .4s ease-out 1.95s forwards;
}
@keyframes sm-splash-tag { to { opacity: .85; } }

body.sm-splash-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .sm-splash.is-active .sm-splash__draw { animation: none; fill-opacity: 1; stroke-opacity: 0; }
  .sm-splash.is-active .sm-splash__fanion { animation: none; clip-path: none; }
  .sm-splash.is-active .sm-splash__croix { animation: none; opacity: 1; }
  .sm-splash.is-active .sm-splash__loader i { animation: sm-splash-load .3s linear .2s forwards; }
  .sm-splash.is-active .sm-splash__tag { animation: sm-splash-tag .2s linear .2s forwards; }
}

/* ----------------------------------------------------------------
   1. DESIGN TOKENS
   ---------------------------------------------------------------- */
:root {
  /* --- Palette (REF §1.1) --- */
  --sm-black:    #0A0A0A;
  --sm-ink:      #141414;
  --sm-white:    #FFFFFF;
  --sm-paper:    #F5F4F1;
  --sm-red:      #C1272D;   /* LE rouge unique — signal, jamais décor */
  --sm-red-deep: #8E1D22;
  --sm-grey:     #A9ABB7;
  --sm-grey-700: #5A5C63;
  --sm-grey-200: #E4E3DF;

  /* --- Typographie (REF §1.2) — A REMPLACER si licence Elza dispo --- */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif; /* A REMPLACER : swap Elza Black ici */
  --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;          /* A REMPLACER : swap Söhne / Suisse Int'l ici */
  --font-mono:    "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* --- Échelle typo (REF §1.3) --- */
  --fs-hero:  clamp(4rem, 18vw, 22rem);
  --fs-xl:    clamp(2.5rem, 7vw, 7rem);
  --fs-l:     clamp(2rem, 4.5vw, 4rem);
  --fs-m:     clamp(1.5rem, 2.5vw, 2.25rem);
  --fs-bl:    clamp(1.125rem, 1.6vw, 1.5rem);
  --fs-b:     clamp(1rem, 1.1vw, 1.125rem);
  --fs-label: 0.75rem;

  /* --- Espacement (REF §1.4) — base 8px --- */
  --sp-1: 8px;  --sp-2: 16px; --sp-3: 24px; --sp-4: 40px;
  --sp-5: 64px; --sp-6: 96px; --sp-7: 160px; --sp-8: 240px;
  --sp-section: clamp(96px, 14vh, 200px);
  --wrap-max: 1600px;
  --pad-x: clamp(20px, 5vw, 80px);

  /* --- Motion (REF §1.6) --- */
  --ease-out:   cubic-bezier(.22, 1, .36, 1);
  --ease-inout: cubic-bezier(.65, .05, .36, 1);
  --dur-fast: .35s; --dur-base: .6s; --dur-slow: .9s; --dur-marquee: 38s;
}

/* ----------------------------------------------------------------
   2. RESET / BASE
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--sm-paper);
  color: var(--sm-black);
  font-family: var(--font-body);
  font-size: var(--fs-b);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: normal; color: var(--sm-red); } /* accent rouge via <em> */

::selection { background: var(--sm-red); color: var(--sm-white); }

/* --- Conteneur --- */
.wrap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* --- Label / mono utilitaire (REF §1.2) --- */
.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sm-grey-700);
  line-height: 1.4;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sm-grey-700);
  margin-bottom: var(--sp-4);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-l);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.section-title .accent { color: var(--sm-red); }

.section-head { margin-bottom: var(--sp-6); }

/* Focus visible (accessibilité) */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--sm-red);
  outline-offset: 3px;
}

/* ----------------------------------------------------------------
   3. BARRE DE PROGRESSION SCROLL
   ---------------------------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 200; background: transparent; pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%; width: 100%;
  background: var(--sm-red);
  transform: scaleX(0); transform-origin: left;
}

/* ----------------------------------------------------------------
   S0 — HEADER
   ---------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  /* Fond full-bleed, mais contenu aligné sur la grille du site (.wrap,
     max 1600px) : au-delà de 1600px le logo/nav s'alignent avec les
     contenus des sections et du footer */
  padding: var(--sp-3) calc(max(0px, (100% - var(--wrap-max)) / 2) + var(--pad-x));
  color: var(--sm-white);
  transition: background var(--dur-base) var(--ease-out),
              padding var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: var(--sm-paper);
  color: var(--sm-black);
  padding-block: var(--sp-2);
  border-bottom-color: var(--sm-grey-200);
}
/* Logo inline unique : les lettres (currentColor) suivent la couleur du header
   (blanc sur le hero, noir au scroll). Le fanion reste rouge. */
/* Monogramme SK+ : plus compact que l'ancien wordmark, un poil plus haut */
.site-header__logo { height: 26px; width: auto; display: block; color: inherit; transition: height var(--dur-base) var(--ease-out); }
.site-header.is-scrolled .site-header__logo { height: 22px; }
.site-header__brand { display: block; }
.site-header__nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 40px); }
.nav-link {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.85;
  transition: opacity var(--dur-fast);
}
.nav-link:hover { opacity: 1; color: var(--sm-red); }
/* Sélecteur de langue (header) */
.lang-switch { display: flex; align-items: center; }
.lang-switch__btn {
  appearance: none; background: none; border: 0; cursor: pointer;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  color: currentColor;
  opacity: 0.5;
  padding: 4px 6px;
  transition: opacity var(--dur-fast), color var(--dur-fast);
}
.lang-switch__btn + .lang-switch__btn { border-left: 1px solid currentColor; }
.lang-switch__btn:hover { opacity: 1; }
.lang-switch__btn.is-active { opacity: 1; color: var(--sm-red); }

.site-header__cta {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid currentColor;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.site-header__cta:hover { background: var(--sm-red); border-color: var(--sm-red); color: var(--sm-white); }
.site-header__nav .nav-link { display: none; }
@media (min-width: 768px) {
  .site-header__nav .nav-link { display: inline-block; }
}

/* ----------------------------------------------------------------
   BURGER + RIDEAU DE NAVIGATION (mobile < 768px)
   ---------------------------------------------------------------- */
.nav-burger { display: none; }
@media (max-width: 767px) {
  /* Sur mobile : le CTA Réserver cède la place au burger (navigation
     complète accessible dans le rideau, Contact inclus) */
  .site-header__cta { display: none; }
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center;
    gap: 6px; width: 34px; height: 34px; padding: 7px 4px;
    background: none; border: 0; cursor: pointer; color: currentColor;
  }
  .nav-burger span {
    display: block; height: 2px; width: 100%; background: currentColor;
    transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast);
  }
}
/* Burger -> croix quand le rideau est ouvert */
.nav-open .nav-burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.nav-panel {
  position: fixed; inset: 0; z-index: 300;
  visibility: hidden; pointer-events: none;
  /* À la fermeture : on retarde visibility:hidden le temps que le sheet
     glisse dehors (sinon la fermeture est instantanée, non animée) */
  transition: visibility 0s linear var(--dur-slow);
}
.nav-panel.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.nav-panel__scrim {
  position: absolute; inset: 0; border: 0; padding: 0;
  background: rgba(10, 10, 10, 0.45);
  opacity: 0; transition: opacity var(--dur-base) var(--ease-out);
  cursor: pointer; touch-action: none;
}
.nav-panel.is-open .nav-panel__scrim { opacity: 1; }

.nav-panel__sheet {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(58%, 300px);
  background: var(--sm-black); color: var(--sm-white);
  padding: calc(var(--sp-6) + 6px) var(--pad-x) var(--sp-5);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  /* ease-out : rapide puis décélère, identique à l'ouverture et à la fermeture */
  transition: transform var(--dur-slow) var(--ease-out);
}
.nav-panel.is-open .nav-panel__sheet { transform: translateX(0); }

.nav-panel__close {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 0.5em;
  background: none; border: 0; cursor: pointer; padding: 0;
  margin-bottom: var(--sp-5);
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--sm-grey);
  line-height: 1;
  transition: color var(--dur-fast);
}
.nav-panel__close .label { line-height: 1; color: inherit; transition: color var(--dur-fast); }
/* Croix : par défaut un « × » (« + » tourné à 45°) de la même couleur
   que le libellé. Au clic, elle se redresse en « + » (croix suisse) et
   passe au rouge (avec le libellé) pendant la fermeture. */
.nav-panel__close-x {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1em; line-height: 1; /* même hauteur que « Fermer » */
  color: inherit;
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform var(--dur-slow) var(--ease-out), color var(--dur-fast);
}
/* Survol : Fermer passe en rouge (transition douce, réversible). */
.nav-panel__close:hover,
.nav-panel__close:hover .label,
.nav-panel__close:hover .nav-panel__close-x,
.nav-panel__close:focus-visible,
.nav-panel__close:focus-visible .label,
.nav-panel__close:focus-visible .nav-panel__close-x { color: var(--sm-red); }
/* Clic : croix redressée en + suisse + rouge, texte rouge. Reste ainsi
   pendant les 700ms de latence avant la fermeture du sheet. */
.nav-panel__close.is-hit,
.nav-panel__close.is-hit .label,
.nav-panel__close.is-hit .nav-panel__close-x { color: var(--sm-red); }
.nav-panel__close.is-hit .nav-panel__close-x { transform: rotate(0deg); }

/* Grand numéro en contour (section courante) — filigrane bas-droite */
.nav-panel__num {
  position: absolute; right: -0.18em; bottom: -0.14em; z-index: 0;
  font-family: var(--font-display); font-weight: 700;
  /* interlettrage resserré (0.02em, quasi-défaut). Le « 0 » a un mask
     qui le fait fondre vers la droite → même si le second chiffre s'en
     approche, aucun contact de tracés en contour. */
  font-size: 15rem; line-height: 0.8; letter-spacing: 0.02em;
  color: transparent; -webkit-text-stroke: 2px var(--sm-red);
  opacity: 0.55; pointer-events: none;
  font-variant-numeric: tabular-nums;
  display: inline-flex; /* pour aligner les 2 spans sur la même baseline */
  align-items: baseline;
}
/* Le « 0 » fixe : dégradé qui fond vers le noir À GAUCHE (le côté droit
   du 0 reste net, le côté gauche disparaît dans le fond noir). */
.nav-panel__num-zero {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}
/* Le second chiffre (1-7) : opacité 0.75 relative au numéro global,
   soit visuellement plus discret que le « 0 » de gauche. */
.nav-panel__num-digit { opacity: 0.75; }

/* Rouleau de sélection (wheel picker) — roulette en perspective */
.nav-wheel {
  position: relative; z-index: 1;
  flex: 1 1 auto; align-self: stretch;
  perspective: 640px;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none; user-select: none;
  cursor: grab;
}
.nav-wheel:active { cursor: grabbing; }
.nav-wheel__track {
  /* Roulette remontée à 32% : rééquilibre le poids visuel avec le grand
     numéro rouge (font-size 15rem) qui occupe le bas du sheet */
  position: absolute; left: 0; right: 0; top: 32%;
  transform-style: preserve-3d;
}
.nav-wheel__item {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; align-items: baseline; gap: var(--sp-1);
  color: var(--sm-white);
  backface-visibility: hidden;
  will-change: transform, opacity;
}
.nav-wheel__no {
  font-family: var(--font-mono); font-size: var(--fs-label);
  color: var(--sm-grey-700); min-width: 2.3em;
}
.nav-wheel__label {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.3rem; line-height: 1; letter-spacing: -0.02em;
  text-transform: uppercase; white-space: nowrap;
}
/* Cran central sélectionné = libellé en contour rouge (langage du bandeau) */
.nav-wheel__item.is-selected .nav-wheel__label {
  color: var(--sm-red); -webkit-text-stroke: 0;
}
.nav-wheel__item.is-selected .nav-wheel__no { color: var(--sm-red); }
/* Barre verticale collée au bord droit de la roulette (dans .nav-wheel).
   - top:42% = même repère que .nav-wheel__track → jauge parfaitement
     centrée sur la ligne de sélection, pas sur le centre du sheet.
   - État par défaut : trait gris, un segment rouge défile en boucle (même
     langage visuel que .scroll-cue__line dans le hero).
   - État `.is-captured` (dès qu'on touche la roulette) : l'anim s'arrête et
     un SEGMENT rouge court se positionne CENTRÉ sur la sélection courante,
     glissant le long de la barre au gré des changements (--nav-pct-frac 0→1). */
.nav-panel__gauge {
  position: absolute;
  right: calc(var(--pad-x) * -0.4); /* léger décalage vers la droite dans le padding du sheet */
  top: 32%; height: 44px; /* aligné sur .nav-wheel__track (32%) */
  transform: translateY(-50%);
  width: 1px; background: var(--sm-grey);
  overflow: hidden; pointer-events: none;
  opacity: 0.5; /* plus discrète : moins d'attention visuelle */
  z-index: 3;
}
.nav-panel__gauge-fill {
  position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--sm-red);
  animation: scrollPulse 1.8s var(--ease-inout) infinite;
  will-change: top, height;
}
/* Capturée : petit segment (24px) qui se centre sur la selection courante.
   Calc : (hauteur bar - hauteur segment) * fraction 0→1 => top clampé
   naturellement entre 0 (selection en haut) et (bar-h - seg-h) (selection en bas). */
.nav-panel__gauge.is-captured .nav-panel__gauge-fill {
  animation: none;
  height: 12px; /* proportionnel à la nouvelle barre (44px) */
  top: calc((100% - 12px) * var(--nav-pct-frac, 0));
  transition: top var(--dur-base) var(--ease-out);
}

/* Repère du cran central (fenêtre de la roulette) */
.nav-wheel__selector {
  position: absolute; left: calc(-1 * var(--pad-x)); right: calc(-1 * var(--pad-x));
  top: 32%; height: 50px; transform: translateY(-50%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none; z-index: 2;
}

/* ----------------------------------------------------------------
   S1 — HERO
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  /* Safari 15+ : 100dvh suit dynamiquement l'état de la barre URL et
     s'étend derrière la barre translucide → couverture visuelle totale
     sur mobile, exactement le rendu voulu. Fallback 100vh pour anciens. */
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--sm-black);
  color: var(--sm-white);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
/* Image de fond du hero (skieur + trace rouge) */
.hero__bg {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 60% 50%;
  will-change: transform;
}
/* Voile pour lisibilité du texte superposé */
.hero__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0.34) 12%, rgba(10,10,10,0.15) 32%, rgba(10,10,10,0.20) 60%, rgba(10,10,10,0.80) 100%),
    radial-gradient(120% 70% at 50% 60%, rgba(10,10,10,0.35), transparent 70%);
}
/* Mobile : dégradé descendant du HAUT DE PAGE jusqu'au LOGO SKI MASTER
   (~50% du hero), pour que les labels fins « ©2026 SKI MASTER » +
   « Experience + Compétence » restent lisibles même sur zones claires
   (neige, ciel). En dessous du logo, le voile s'atténue puis reprend
   au bas pour cadrer l'image. */
@media (max-width: 767px) {
  .hero__veil {
    background:
      linear-gradient(180deg,
        rgba(10,10,10,0.95) 0%,
        rgba(10,10,10,0.72) 10%,
        rgba(10,10,10,0.45) 25%,
        rgba(10,10,10,0.22) 40%,
        rgba(10,10,10,0.15) 50%,
        rgba(10,10,10,0.20) 60%,
        rgba(10,10,10,0.85) 100%),
      radial-gradient(120% 70% at 50% 60%, rgba(10,10,10,0.35), transparent 70%);
  }
}
.hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-block: calc(var(--sp-6) + 20px) var(--sp-4);
}
.hero__meta {
  display: flex; justify-content: space-between; gap: var(--sp-2);
  flex-wrap: wrap;
}
.hero__meta .label { color: var(--sm-grey); }

/* Wordmark = logo réel (SVG blanc) */
.hero__wordmark {
  margin-block: auto;
  padding-block: var(--sp-4);
  width: 100%;
}
.hero__logo-mask { display: block; overflow: hidden; }
.hero__logo {
  display: block;
  width: min(90%, 1100px);
  height: auto;
  will-change: transform;
  /* Pas de drop-shadow : sur un wordmark dense, l'ombre diffuse
     formait un rectangle sombre basse opacité derrière le logo */
}

.hero__foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: var(--sp-3); flex-wrap: wrap;
}
.hero__lede {
  font-family: var(--font-body);
  font-size: var(--fs-bl);
  line-height: 1.5;
  max-width: 34ch;
  color: var(--sm-white);
}
.scroll-cue { display: inline-flex; flex-direction: column; gap: var(--sp-1); align-items: flex-start; }
.scroll-cue .label { color: var(--sm-grey); }
.scroll-cue__line {
  width: 1px; height: 48px; background: var(--sm-grey);
  position: relative; overflow: hidden; align-self: flex-start;
}
.scroll-cue__line::after {
  content: ""; position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%; background: var(--sm-red);
  animation: scrollPulse 1.8s var(--ease-inout) infinite;
}
@keyframes scrollPulse { 0% { top: -100%; } 60%,100% { top: 100%; } }

/* ----------------------------------------------------------------
   S2 — MARQUEE MANIFESTE
   ---------------------------------------------------------------- */
.marquee-section {
  background: var(--sm-black);
  color: var(--sm-white);
  padding-block: clamp(28px, 5vh, 56px);
  border-block: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
}
.marquee { overflow: hidden; }
.marquee__track {
  display: flex; width: max-content; will-change: transform;
}
.marquee__item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xl);
  /* line-height 1 clippait les accents des majuscules (SÉCURITÉ) */
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 0.4em;
}
.marquee__item .dot { color: var(--sm-red); padding-inline: 0.25em; }
.marquee__item em {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--sm-red);
}

/* ----------------------------------------------------------------
   S3 — INTRO
   ---------------------------------------------------------------- */
.intro {
  padding-block: var(--sp-section); position: relative; overflow: hidden;
  display: flex; align-items: center; min-height: 88svh; /* centrage vertical du bloc */
}
/* Texture topographique en overlay discret (code visuel récurrent) */
.intro__topo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.12; pointer-events: none;
  filter: grayscale(1) contrast(1.1);
  -webkit-mask-image: radial-gradient(120% 100% at 80% 30%, #000, transparent 75%);
          mask-image: radial-gradient(120% 100% at 80% 30%, #000, transparent 75%);
}
/* Manifeste centré (horizontal + vertical) */
.intro__inner { max-width: 1000px; margin-inline: auto; width: 100%; text-align: center; position: relative; z-index: 1; }
.intro__text {
  font-family: var(--font-display);
  font-weight: 500;
  /* Calibré pour que chaque ligne écrite tienne sur UNE ligne rendue
     (la plus longue ≈ 33 caractères) : pas d'empilement de fragments */
  font-size: clamp(1.6rem, 3.3vw, 3.3rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.intro__text .line, .line[data-line] { display: block; }
/* Signature + lien empilés au centre : plus de collision possible
   avec le texte, quelle que soit la largeur */
.intro__foot {
  margin-top: var(--sp-6);
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-3);
}
.intro__signature { display: block; }
.link-arrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex; gap: 0.6em; align-items: center;
  border-bottom: 1px solid var(--sm-grey-200);
  padding-bottom: 4px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.link-arrow span { transition: transform var(--dur-base) var(--ease-out); }
.link-arrow:hover { color: var(--sm-red); border-color: var(--sm-red); }
.link-arrow:hover span { transform: translateX(6px); }
.link-arrow--big { font-size: 0.95rem; margin-top: var(--sp-6); }

/* ----------------------------------------------------------------
   S4 — STATS / COMPTEURS
   ---------------------------------------------------------------- */
.stats {
  background: var(--sm-black);
  color: var(--sm-white);
  padding-block: var(--sp-section);
}
.stats__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5) var(--sp-3);
}
@media (min-width: 900px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; flex-direction: column; gap: var(--sp-2); }
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat__num .suffix { color: var(--sm-red); }
.stat__rule {
  height: 1px; width: 100%; background: rgba(255,255,255,0.18);
  transform: scaleX(0); transform-origin: left;
}
.stat .label { color: var(--sm-grey); }
.stats__note { margin-top: var(--sp-5); color: var(--sm-grey-700); }

/* ----------------------------------------------------------------
   S5 — FULL-BLEED
   ---------------------------------------------------------------- */
.fullbleed {
  position: relative;
  height: clamp(60vh, 90vh, 1000px);
  overflow: hidden;
  background: var(--sm-ink);
}
/* Variante avec video 9:16 cramée : fond off-white pour que les blancs
   de la vidéo se fondent visuellement, seul le skieur noir ressort. */
.fullbleed--video { background: #F5F4F1; }
.fullbleed--video .fullbleed__overlay { display: none; }
.fullbleed--video .fullbleed__label .label { color: var(--sm-black); }
.fullbleed__media { position: absolute; inset: -8% 0; will-change: transform; }
.fullbleed__media img,
.fullbleed__media video {
  width: 100%; height: 100%; object-fit: cover;
  /* Skieur dans le tiers haut : on garde le haut quand la bande est courte */
  object-position: 50% 40%;
  /* Pas de filtre : corpus déjà gradé N&B (recette v3) */
}
/* Video 9:16 : on centre le skieur (bas-milieu du cadre vertical).
   Pipeline color-match :
     1. filter contrast(1.06) + brightness(1.04) pousse les blancs de la
        vidéo au-delà de 255 → clip garanti à 255 pur sur tous les pixels
        clairs (compense les pertes de précision H.264 YUV420).
     2. mix-blend-mode: multiply avec section bg #F5F4F1 →
        (255, 255, 255) × (245, 244, 241) / 255 = (245, 244, 241) = #F5F4F1
        MATHÉMATIQUEMENT identique. Aucune bordure visible.
     3. isolation:isolate empêche le blend de déborder sur les sections
        adjacentes. */
.fullbleed__video {
  object-position: 50% 55%;
  display: block;
  background: transparent;
  filter: contrast(1.06) brightness(1.04);
  mix-blend-mode: multiply;
}
.fullbleed--video .fullbleed__media { isolation: isolate; }
.fullbleed__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.35), rgba(10,10,10,0.10) 40%, rgba(10,10,10,0.45));
}
.fullbleed__label {
  /* Aligné sur la grille du site (comme header/footer) et non sur pad-x seul */
  position: absolute; bottom: var(--sp-4);
  left: calc(max(0px, (100% - var(--wrap-max)) / 2) + var(--pad-x));
  right: calc(max(0px, (100% - var(--wrap-max)) / 2) + var(--pad-x));
  display: flex; justify-content: space-between; gap: var(--sp-2);
}
.fullbleed__label .label { color: var(--sm-white); }

/* ----------------------------------------------------------------
   S6 — PROGRAMMES
   ---------------------------------------------------------------- */
.programmes { padding-block: var(--sp-section); }
.prog-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-4) var(--sp-3);
}
@media (min-width: 720px)  { .prog-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .prog-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-4); } }

/* Bloc non navigant : description masquée par défaut, révélée au survol
   (desktop) ou au tap (mobile, classe .is-open). Ne redirige plus. */
.prog__inner { display: block; position: relative; }
@media (max-width: 1023px) { .prog__inner { cursor: pointer; } }

/* CTA discret : « + » blanc en haut-à-droite de chaque carte pour
   signifier « clique / survole pour découvrir plus ». Rotate en « × »
   rouge à l'ouverture (langage visuel identique à .terrain__arrow). */
.prog__inner::after {
  content: '+';
  position: absolute; top: var(--sp-3); right: var(--sp-3); z-index: 2;
  font-family: var(--font-mono); font-size: 1.5rem; line-height: 1;
  color: var(--sm-white); opacity: 0.85;
  pointer-events: none;
  transition: transform var(--dur-slow) var(--ease-inout), color var(--dur-fast);
}
.prog.is-open .prog__inner::after { transform: rotate(45deg); color: var(--sm-red); }
@media (hover: hover) and (pointer: fine) {
  .prog__inner:hover::after { transform: rotate(45deg); color: var(--sm-red); }
}
/* Card 03 « Sécurité en montagne » : l'image est très claire (neige +
   creusage de profil) => le « + » blanc devient invisible. On le passe en
   noir pour garder la lisibilité (retour au rouge à l'ouverture). */
.prog-grid .prog:nth-child(3) .prog__inner::after { color: var(--sm-black); }
.prog-grid .prog:nth-child(3).prog.is-open .prog__inner::after { color: var(--sm-red); }
@media (hover: hover) and (pointer: fine) {
  .prog-grid .prog:nth-child(3) .prog__inner:hover::after { color: var(--sm-red); }
}
.prog__media {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--sm-ink);
}
/* Mobile portrait (<720px, 1 col) : carré au lieu de portrait 4/5 pour
   réduire la hauteur de la section (~330px de scroll gagnés sur 4 cards).
   Desktop garde le format éditorial 4/5. */
@media (max-width: 719px) {
  .prog__media { aspect-ratio: 1 / 1; }
}
.prog__media img {
  width: 100%; height: 100%; object-fit: cover;
  /* Pas de filtre : corpus déjà gradé N&B (recette v3) */
  transition: transform var(--dur-slow) var(--ease-inout);
  will-change: transform;
}
/* Bloc rouge qui coulisse sur l'image au survol, en mode de fusion
   « incrustation » (overlay) : les hautes lumières restent blanches,
   la neige se teinte de rouge — cf. référence duo N&B / rouge.
   Le bloc ne couvre que la moitié gauche de l'image. */
.prog__veil {
  position: absolute; top: 0; bottom: 0; left: 0; width: 50%;
  pointer-events: none;
  background: var(--sm-red);
  mix-blend-mode: overlay;
  /* Opacité réduite : l'incrustation teinte sans dégrader l'image */
  opacity: 0.6;
  transform: translateX(-101%);
  /* ease-inout : démarrage plus doux qu'ease-out (fini l'à-coup au clic) */
  transition: transform var(--dur-slow) var(--ease-inout);
}
.prog__row {
  display: flex; gap: var(--sp-2); margin-top: var(--sp-3);
  align-items: flex-start;
}
.prog__no {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  color: var(--sm-grey-700);
  padding-top: 6px;
  transition: color var(--dur-base) var(--ease-inout), transform var(--dur-base) var(--ease-inout);
}
.prog__body { flex: 1; }
.prog__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-m);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: transform var(--dur-base) var(--ease-inout);
}
/* Zone révélable (description + CTA), masquée par défaut, dépliée au
   survol (desktop) ou au tap (mobile, .is-open). ease-inout partout pour
   un dépliage plus doux qu'un ease-out sec. */
.prog__more {
  display: block;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-inout),
              opacity var(--dur-base) var(--ease-inout),
              margin-top var(--dur-slow) var(--ease-inout);
}
.prog__sub { display: block; color: var(--sm-grey-700); max-width: 40ch; font-size: var(--fs-b); }
/* CTA mailto adapté à la section (email préfait vers Jean-Marc) */
.prog__cta {
  display: inline-flex; align-items: center; gap: 0.5em;
  margin-top: var(--sp-3);
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sm-red);
}
.prog__cta span { transition: transform var(--dur-base) var(--ease-out); }
.prog__cta:hover span { transform: translateX(5px); }

/* Révélation au tap (mobile) — les indices visuels accompagnent l'ouverture */
.prog.is-open .prog__more { max-height: 18rem; opacity: 1; margin-top: var(--sp-1); }
.prog.is-open .prog__veil { transform: translateX(0); }
.prog.is-open .prog__rule { transform: scaleX(1); }
.prog.is-open .prog__no { color: var(--sm-red); }
.prog__rule {
  display: block; height: 2px; width: 100%; margin-top: var(--sp-2);
  background: var(--sm-red); transform-origin: left;
  /* Extension plus douce : ease-inout + dur-slow pour être en tempo avec
     le dépliage de .prog__more (au lieu du dur-base sec). */
  transition: transform var(--dur-slow) var(--ease-inout);
  /* Petit CTA rouge visible par défaut (~15% de la largeur du body).
     Signale qu'il y a plus à découvrir sous la carte. Au clic (ou hover
     desktop), s'étend en scaleX(1) via .prog.is-open / :hover. */
  transform: scaleX(0.15);
}
/* Hover (desktop avec pointeur fin) */
/* Léger sur-cadrage : masque un liseré noir au bord bas de la source */
.prog__media--zoom img { transform: scale(1.03); }

@media (hover: hover) and (pointer: fine) {
  .prog__inner:hover .prog__media img { transform: scale(1.05); }
  .prog__inner:hover .prog__media--zoom img { transform: scale(1.08); }
  .prog__inner:hover .prog__veil { transform: translateX(0); }
  .prog__inner:hover .prog__rule { transform: scaleX(1); }
  .prog__inner:hover .prog__no { color: var(--sm-red); transform: translateX(4px); }
  .prog__inner:hover .prog__title { transform: translateX(6px); }
  .prog__inner:hover .prog__more { max-height: 18rem; opacity: 1; margin-top: var(--sp-1); }
}

/* ----------------------------------------------------------------
   S7 — APPROCHE
   ---------------------------------------------------------------- */
.approche {
  background: var(--sm-black);
  color: var(--sm-white);
  padding-block: var(--sp-section);
}
.approche__inner { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
@media (min-width: 1024px) {
  .approche__inner { grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-5); align-items: start; }
}
.approche__aside .section-title { color: var(--sm-white); }
.approche__aside .section-tag { color: var(--sm-grey); }
.approche__intro { margin-top: var(--sp-3); color: var(--sm-grey); max-width: 32ch; }
@media (min-width: 1024px) {
  .approche__aside { position: sticky; top: 18vh; }
}
.steps { display: flex; flex-direction: column; }
.step {
  position: relative;
  padding-block: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
}
.step:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.step__ghost {
  position: absolute; right: -0.05em; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(8rem, 22vw, 18rem); line-height: 1;
  color: var(--sm-red); opacity: 0.07; pointer-events: none; z-index: 0;
}
.step__no { display: block; color: var(--sm-grey); position: relative; z-index: 1; }
.step__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-xl); line-height: 1; letter-spacing: -0.03em;
  text-transform: uppercase; margin-top: var(--sp-2);
  position: relative; z-index: 1;
}
.step__desc {
  margin-top: var(--sp-2); color: var(--sm-grey); max-width: 46ch;
  position: relative; z-index: 1;
}

/* ----------------------------------------------------------------
   S8 — QUALIFICATIONS — registre asymétrique (titre sticky à gauche)
   ---------------------------------------------------------------- */
.certs { padding-block: var(--sp-section); }
.certs__inner { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
@media (min-width: 1024px) {
  .certs__inner { grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-5); align-items: start; }
  .certs__aside { position: sticky; top: 18vh; }
}
.certs__intro { margin-top: var(--sp-3); color: var(--sm-grey-700); max-width: 34ch; }

.cert-list { border-top: 1px solid var(--sm-grey-200); }
/* no | corps | année : l'année reste sur sa colonne à droite (même en
   mobile) pour que tous les titres s'alignent sur la même verticale */
.cert {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline;
  gap: var(--sp-1) var(--sp-3);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--sm-grey-200);
  transition: padding-left var(--dur-base) var(--ease-out);
}
.cert__year { justify-self: end; text-align: right; white-space: nowrap; }
.cert__no {
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: 0.14em; color: var(--sm-red);
}
.cert__body { display: block; }
.cert__title {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-m); letter-spacing: -0.01em; text-transform: uppercase;
  line-height: 1.05;
}
.cert__org { display: block; margin-top: var(--sp-1); }
.cert__year {
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--sm-grey-700);
  transition: color var(--dur-fast);
}
@media (hover: hover) and (pointer: fine) {
  .cert:hover { padding-left: var(--sp-2); }
  .cert:hover .cert__year { color: var(--sm-red); }
}

/* ----------------------------------------------------------------
   S9 — TÉMOIGNAGES — carrousel de cartes en dérive continue
   Bande noire (rythme paper/noir), deux rangées en sens opposés.
   Fallback sans JS / reduced-motion : scroll horizontal natif.
   ---------------------------------------------------------------- */
.testimonials {
  background: var(--sm-black);
  color: var(--sm-white);
  padding-block: var(--sp-section);
  overflow: hidden;
}
.testimonials .section-title { color: var(--sm-white); }
.testimonials .section-tag { color: var(--sm-grey); }

.tmo-rows { display: flex; flex-direction: column; gap: var(--sp-3); }
.tmo-row { overflow-x: auto; scrollbar-width: none; }
.tmo-row::-webkit-scrollbar { display: none; }
.tmo-row.is-marquee { overflow: hidden; }
.tmo-row__track { display: flex; width: max-content; will-change: transform; }
.tmo-row__group { display: flex; gap: var(--sp-3); padding-right: var(--sp-3); }

.tmo-card {
  width: clamp(300px, 30vw, 460px);
  flex-shrink: 0;
  background: var(--sm-ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  margin: 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-3);
  position: relative;
}
.tmo-card::before {
  content: ""; position: absolute; top: 0; left: var(--sp-3);
  width: 40px; height: 2px; background: var(--sm-red);
}
.tmo-card__quote {
  font-size: 1rem; line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}
.tmo-card__cite { color: var(--sm-grey); }
.tmo-card--paper { background: var(--sm-paper); border-color: transparent; }
.tmo-card--paper .tmo-card__quote { color: var(--sm-black); }
.tmo-card--paper .tmo-card__cite { color: var(--sm-grey-700); }

/* ----------------------------------------------------------------
   S10 — TERRAINS — index XL, image flottante au survol
   ---------------------------------------------------------------- */
.carnet { padding-block: var(--sp-section); }
.terrain-index { border-top: 1px solid var(--sm-grey-200); }
.terrain { border-bottom: 1px solid var(--sm-grey-200); }
/* Ligne = bouton (reset). Desktop : survol = aperçu flottant (pas de clic).
   Mobile : le « + » déplie l'image en accordéon. */
.terrain__inner {
  width: 100%; background: none; border: 0; color: inherit; font: inherit;
  text-align: left; cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    'no title arrow'
    'no meta  arrow';
  gap: var(--sp-1) var(--sp-3);
  padding-block: var(--sp-4);
  align-items: baseline;
}
@media (min-width: 900px) {
  .terrain__inner {
    grid-template-columns: 56px 1fr auto auto;
    grid-template-areas: 'no title meta arrow';
    gap: var(--sp-4); align-items: center;
  }
}
.terrain__no { grid-area: no; color: var(--sm-grey-700); }
.terrain__title {
  grid-area: title;
  font-family: var(--font-display); font-weight: 700;
  /* Hiérarchie : nettement sous le titre de section « Mes stations. » (fs-l) */
  font-size: clamp(1.5rem, 2.6vw, 2.6rem);
  line-height: 1; letter-spacing: -0.02em;
  text-transform: uppercase;
  transition: transform var(--dur-base) var(--ease-out);
}
@media (min-width: 480px) { .terrain__title { white-space: nowrap; } }
.terrain__meta { grid-area: meta; color: var(--sm-grey-700); }

/* Flèche « + » (mobile uniquement) */
.terrain__arrow {
  grid-area: arrow; align-self: center; justify-self: end;
  font-family: var(--font-mono); font-size: 1.6rem; line-height: 1;
  color: var(--sm-grey-700);
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-fast);
}
.terrain.is-open .terrain__arrow { transform: rotate(45deg); color: var(--sm-red); }

/* Panneau image déplié au tap */
.terrain__panel {
  overflow: hidden; max-height: 0;
  transition: max-height var(--dur-slow) var(--ease-out);
}
.terrain.is-open .terrain__panel { max-height: 85vh; }
.terrain__panel img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  margin-bottom: var(--sp-3);
}

/* Secret spots : titre en contour, il ne se dévoile pas */
.terrain--secret .terrain__title {
  color: transparent;
  -webkit-text-stroke: 1px var(--sm-red);
}

/* Desktop (>= 1024px) : aperçu flottant au survol, pas de clic ni d'accordéon.
   Basé sur la largeur (comme l'init de l'aperçu en JS), pas sur hover :
   plus fiable que les media hover sur les appareils hybrides. */
@media (min-width: 1024px) {
  .terrain__inner { cursor: default; }
  .terrain__arrow, .terrain__panel { display: none; }
  .terrain__inner:hover .terrain__title { transform: translateX(14px); }
  .terrain--secret .terrain__inner:hover .terrain__title { -webkit-text-stroke-color: var(--sm-red); }
}

/* Aperçu flottant (piloté en GSAP : x/y/scale/opacity)
   Format paysage (demande client) — cinéma 3:2 pour cadrer les photos horizontales. */
.terrain-preview {
  position: fixed; top: 0; left: 0;
  width: min(420px, 32vw); aspect-ratio: 3 / 2;
  overflow: hidden; pointer-events: none;
  z-index: 60; opacity: 0;
}
.terrain-preview img {
  width: 100%; height: 100%; object-fit: cover;
  /* Pas de filtre : corpus déjà gradé N&B (recette v3) */
}
@media (max-width: 1023px) { .terrain-preview { display: none; } }

/* ----------------------------------------------------------------
   S11 — CONTACT
   ---------------------------------------------------------------- */
.contact {
  position: relative; color: var(--sm-white);
  min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; background: var(--sm-black);
}
/* Mobile : section réduite au maximum utile. Combo min-height +
   padding interne raccourci (le padding block sp-7 était le principal
   coupable — ~90px de chaque côté). Le contenu se serre naturellement. */
@media (max-width: 767px) {
  .contact { min-height: 42svh; }
  .contact__inner { padding-block: var(--sp-4); }
  .contact__text { margin-top: var(--sp-2); }
  .contact__actions {
    margin-top: var(--sp-3);
    gap: 8px;
    /* Écrire à Jean-Marc + Pricing côte à côte : padding resserré,
       contact__lines (téléphone + email) descend d'une ligne. */
  }
  .contact__actions .btn-fill {
    padding: 14px 18px;
    font-size: 0.72rem; letter-spacing: 0.1em;
    flex: 0 1 auto;
  }
  .contact__actions .contact__lines {
    flex-basis: 100%;
    margin-top: var(--sp-2);
  }
  .contact__nb { margin-top: var(--sp-3); }
}
.contact__media { position: absolute; inset: -8% 0; will-change: transform; }
.contact__media img {
  width: 100%; height: 100%; object-fit: cover;
  /* Skieur cadré à droite : on privilégie ce côté quand le viewport crop */
  object-position: 72% 50%;
  /* Corpus déjà gradé — léger assombrissement conservé pour le texte */
  filter: brightness(0.88);
}
.contact__overlay {
  position: absolute; inset: 0;
  /* Scrim vertical bas → transparent : assombrit très légèrement la zone
     sous le fine-print OFFT sans se lire comme un dégradé à l'œil nu.
     Empilé au-dessus du scrim horizontal existant. */
  background:
    linear-gradient(to top,
      rgba(10,10,10,0.62) 0%,
      rgba(10,10,10,0.42) 10%,
      rgba(10,10,10,0.20) 22%,
      rgba(10,10,10,0)    36%),
    linear-gradient(90deg, rgba(10,10,10,0.78), rgba(10,10,10,0.30) 70%, rgba(10,10,10,0.15));
}
/* Desktop : le fine-print est plus loin du bord — le scrim vertical
   remonte un peu plus haut pour couvrir la ligne OFFT sans être perçu. */
@media (min-width: 768px) {
  .contact__overlay {
    background:
      linear-gradient(to top,
        rgba(10,10,10,0.58) 0%,
        rgba(10,10,10,0.38) 12%,
        rgba(10,10,10,0.18) 26%,
        rgba(10,10,10,0)    42%),
      linear-gradient(90deg, rgba(10,10,10,0.78), rgba(10,10,10,0.30) 70%, rgba(10,10,10,0.15));
  }
}
/* width 100% : le .wrap est enfant d'un flex (align-items center) ; sans ça
   il rétrécit au contenu et se centre au lieu de suivre la grille du site */
.contact__inner { position: relative; z-index: 2; width: 100%; padding-block: var(--sp-7); }
.contact__inner .section-tag { color: var(--sm-grey); }
.contact__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-xl); line-height: 0.92; letter-spacing: -0.03em;
  text-transform: uppercase;
}
.contact__title .accent { color: var(--sm-red); -webkit-text-stroke: 0; }
.contact__text { margin-top: var(--sp-3); font-size: var(--fs-bl); max-width: 40ch; color: var(--sm-white); }
.contact__actions { margin-top: var(--sp-5); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.btn-fill {
  position: relative; overflow: hidden;
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 18px 32px; border: 1px solid var(--sm-white);
  color: var(--sm-white);
}
.btn-fill span { position: relative; z-index: 1; transition: color var(--dur-base) var(--ease-out); }
.btn-fill::before {
  content: ""; position: absolute; inset: 0; background: var(--sm-red);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-out);
}
.btn-fill:hover::before { transform: scaleX(1); }
.btn-fill:hover { border-color: var(--sm-red); }

/* --- Traitement cinématique ciblé (ne touche que les images marquées .img-cine) ---
   Assombrit + booste le contraste → hautes lumières écrasées, ombres profondes.
   Approximation CSS d'une passe cinéma sur images N&B, non destructive et réversible.
   Ne pas généraliser à tout le corpus (voir mémoire pending-cinematic-pass). */
.img-cine { filter: brightness(0.82) contrast(1.22); }

/* ================================================================
   PDF VIEWER — modal inline pour la brochure Tarifs
   Ouvert via [data-pricing-open], fermé via [data-pdf-close] ou Escape.
   Fixed inset:0 + scrim opaque, panneau centré avec toolbar + iframe.
   ================================================================ */
.pdf-viewer {
  position: fixed; inset: 0; z-index: 1000;
  display: none;
  /* Scroll natif iOS : c'est CE conteneur qui scrolle, pas un enfant nested */
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  /* touch-action: laisse le navigateur gérer pan + pinch (zoom) natifs */
  touch-action: pan-y pinch-zoom;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pdf-viewer[aria-hidden="false"] { display: block; animation: pdfFade 0.32s var(--ease-out); }
.pdf-viewer__scrim { display: none; }  /* scrim géré directement sur .pdf-viewer */
@keyframes pdfFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pdfRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pdf-viewer__panel {
  /* Bloc dans le flow du .pdf-viewer scrollable : min-height 100% garantit
     que la barre sticky reste visible même quand la brochure est courte */
  min-height: 100%;
  width: 100%;
  background: transparent;
  color: var(--sm-white);
  animation: pdfRise 0.42s var(--ease-out);
}
.pdf-viewer__bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: rgba(10, 10, 10, 0.92);
  color: var(--sm-white);
  gap: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pdf-viewer__brand { display: flex; align-items: center; gap: 28px; min-width: 0; }
.pdf-viewer__wordmark { display: block; height: 20px; width: auto; color: var(--sm-white); }
.pdf-viewer__label { color: var(--sm-grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdf-viewer__actions { display: flex; align-items: center; gap: 8px; }
.pdf-viewer__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none;
  color: var(--sm-white);
  background: transparent; border: 1px solid rgba(255,255,255,0.35);
  cursor: pointer;
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.pdf-viewer__btn:hover { border-color: var(--sm-white); background: rgba(255,255,255,0.08); }
.pdf-viewer__btn--close:hover { color: var(--sm-red); border-color: var(--sm-red); background: transparent; }
.pdf-viewer__ico { font-family: var(--font-mono); font-size: 1rem; line-height: 1; letter-spacing: 0; }
.pdf-viewer__body {
  background: transparent;
  padding: 0;
}
/* Container qui stacke les pages (le scroll est géré par .pdf-viewer parent) */
.pdf-viewer__canvas {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 20px 32px;
  display: flex; flex-direction: column; gap: 16px;
  box-sizing: border-box;
}
.pdf-viewer__canvas.is-loading::before {
  content: "…"; color: var(--sm-white); font-family: var(--font-mono);
  align-self: center; margin: auto; opacity: 0.6;
}
.pdf-page {
  position: relative;
  width: 100%;
  background: #0a0a0a;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.pdf-page canvas { width: 100%; height: 100%; display: block; }
/* Overlay <a> transparent au-dessus des link annotations du PDF
   (mailto / tel restent cliquables même en rendu canvas) */
.pdf-annot {
  position: absolute; display: block;
  background: transparent;
}
.pdf-error {
  color: var(--sm-white); text-align: center; margin: auto;
  font-family: var(--font-mono); font-size: 0.85rem;
}
.pdf-error a { color: var(--sm-red); text-decoration: underline; }
@media (max-width: 767px) {
  /* Mobile : scrim opaque + PAS de backdrop-filter (iOS Safari : blur tue le 60fps du touch scroll) */
  .pdf-viewer { background: rgba(10, 10, 10, 0.96); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .pdf-viewer__panel { width: 100%; }
  .pdf-viewer__bar { padding: 10px 12px; gap: 8px; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10, 10, 10, 0.98); }
  .pdf-viewer__brand { gap: 12px; }
  .pdf-viewer__canvas {
    padding: 10px 10px 18px;
    gap: 10px;
    max-width: 100%;
  }
  .pdf-page { box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6); }
  .pdf-viewer__btn-label { display: none; }
  .pdf-viewer__btn { padding: 10px 12px; }
  /* Plein écran caché sur mobile — le mobile est déjà quasi-fullscreen */
  .pdf-viewer__btn--fullscreen { display: none; }
  .pdf-viewer__label { display: none; }
  .pdf-viewer__wordmark { height: 16px; }
}
/* Body lock : les styles position:fixed sont posés en JS (openPdf) pour
   préserver le scroll interne de la modale sur iOS Safari.
   La classe .pdf-open reste utile pour d'autres règles CSS conditionnelles. */
/* Variante « ghost » : identique au primary au repos (même bordure blanche pleine),
   se distingue seulement au survol (fond blanc + texte noir au lieu de fond rouge). */
.btn-fill--ghost::before { background: var(--sm-white); }
.btn-fill--ghost:hover span { color: var(--sm-black); }
.btn-fill--ghost:hover { border-color: var(--sm-white); }
.contact__lines { display: flex; flex-direction: column; gap: 6px; }
.contact__link { color: var(--sm-grey); transition: color var(--dur-fast); }
.contact__link:hover { color: var(--sm-red); }

/* ----------------------------------------------------------------
   S12 — FOOTER
   ---------------------------------------------------------------- */
.site-footer {
  background: var(--sm-black); color: var(--sm-white);
  padding-block: var(--sp-6) var(--sp-4);
}
.footer__top {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-5);
  grid-template-areas: "nav" "cols" "legal";
  padding-bottom: var(--sp-6); border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__nav { grid-area: nav; }
.footer__cols { grid-area: cols; }
.footer__legal { grid-area: legal; }
/* Nav étroite à gauche, colonnes info plus larges et plus à gauche (respiration) */
@media (min-width: 768px) {
  .footer__top {
    grid-template-columns: minmax(120px, 190px) 1fr;
    grid-template-areas: "nav cols" "legal cols";
    gap: var(--sp-6);
  }
}
.footer__nav { display: flex; flex-direction: column; gap: var(--sp-1); }
.footer__nav .nav-link { color: var(--sm-grey); }
.footer__nav .nav-link:hover { color: var(--sm-red); }

/* Contact & Partenaires : colonnes en desktop, accordéons en mobile */
.footer__cols { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); align-content: start; }
@media (min-width: 768px) { .footer__cols { grid-template-columns: 1fr 1fr; gap: var(--sp-5); } }
.footer__col-h { display: block; color: var(--sm-grey); margin-bottom: var(--sp-1); }
.footer__acc-panel p { color: var(--sm-white); font-size: 0.95rem; line-height: 1.7; }
.footer__acc-panel a:hover { color: var(--sm-red); }
.footer__acc-head {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 0.6em;
}
.footer__acc-head::-webkit-details-marker { display: none; }
.footer__acc-head:hover .footer__col-h { color: var(--sm-white); }
.footer__acc-chevron {
  color: var(--sm-white); font-size: 1.15rem; line-height: 1;
  font-family: var(--font-body); font-weight: 400; letter-spacing: 0; /* même « + » partout (Politique hérite du mono sinon) */
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-fast);
}
.footer__acc[open] .footer__acc-chevron { transform: rotate(45deg); color: var(--sm-red); }
.footer__acc-panel { margin-top: var(--sp-1); }
/* Desktop : colonnes statiques (toujours ouvertes, pas de « + ») */
@media (min-width: 768px) {
  .footer__acc-head { pointer-events: none; }
  .footer__acc-chevron { display: none; }
  .footer__col-h { margin-bottom: var(--sp-2); }
}
/* Mobile : Contact / Partenaires / Politique = une seule liste déroulante
   homogène (même disposition tête + « plus » à droite), rangs rapprochés.
   L'ouverture/fermeture est animée en JS (drop réversible). */
@media (max-width: 767px) {
  .footer__top { gap: var(--sp-3); }
  .footer__nav { margin-bottom: var(--sp-2); }
  .footer__cols { gap: var(--sp-3); }
  .footer__acc-head .footer__col-h { margin-bottom: 0; }
  /* Politique : le <summary> est inline-flex par défaut, ce qui laisse le
     <details> former une line-box plus haute et décale le glyphe vers le bas.
     On force display: flex (block-level) et line-height 1.4 pour que la boîte
     du <details> hugue exactement le summary — écart optique Partenaires→Politique
     = Contact→Partenaires. Sélecteur enfant pour battre la spécificité de la
     règle de base plus bas dans le fichier. */
  .footer__legal > .footer__legal-title {
    display: flex; width: 100%;
    align-items: center; justify-content: space-between; gap: 0.6em;
    line-height: 1.4;
  }
  .footer__legal { line-height: 1.4; }
  .footer__acc-panel, .footer__legal-nav { margin-top: 0; padding-top: var(--sp-2); }
}
/* Fermeture animée : le « + » repart tout de suite en sens inverse */
.footer__acc.is-closing .footer__acc-chevron,
.footer__legal.is-closing .footer__legal-chevron { transform: rotate(0deg); color: var(--sm-white); }

/* Wordmark centré entre les deux séparateurs (padding symétrique) */
.footer__wordmark { padding-block: var(--sp-5); }
.footer__wordmark img { display: block; width: 100%; height: auto; }

.footer__bottom {
  display: flex; justify-content: space-between; gap: var(--sp-2);
  flex-wrap: wrap; padding-top: var(--sp-3);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer__bottom .label { color: var(--sm-grey-700); }
.footer__credit { transition: color var(--dur-fast); }
.footer__credit:hover { color: var(--sm-red); }

/* ----------------------------------------------------------------
   4. ÉTATS D'ANIMATION (JS-driven). Sans JS = tout visible.
   ---------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
/* Lignes du manifeste : fondu + glissement (pas de masque parent,
   un translateY(110%) recouvrirait la ligne suivante) */
.js [data-line] { opacity: 0; transform: translateY(26px); }

/* --- HERO : reveal piloté par CSS (classe .is-revealed) ---
   Indépendant du ticker GSAP -> robuste si l'onglet est en arrière-plan
   pendant le chargement (rAF en pause). Le logo se révèle en masque bas->haut. */
.js .hero__logo { transform: translateY(106%); }
.js .hero__lede { opacity: 0; transform: translateY(24px); }
.js .hero.is-revealed .hero__logo {
  transform: translateY(0);
  transition: transform 1.1s var(--ease-out);
}
.js .hero.is-revealed .hero__lede {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.8s var(--ease-out) 0.5s, transform 0.8s var(--ease-out) 0.5s;
}

/* ----------------------------------------------------------------
   RESPIRATION — section philosophie (image calme + citation)
   ---------------------------------------------------------------- */
.respiration {
  position: relative; min-height: 90svh;
  /* Citation dans le tiers haut : laisse voir Jean-Marc entièrement */
  display: flex; align-items: flex-start;
  background: var(--sm-black); color: var(--sm-white); overflow: hidden;
}
.respiration__inner { padding-top: clamp(64px, 14vh, 170px); }
.respiration__media { position: absolute; inset: -8% 0; will-change: transform; }
.respiration__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
  /* Miroir horizontal : Jean-Marc (à ~24% à gauche) passe à droite,
     dégagé de la citation alignée à gauche */
  transform: scaleX(-1);
  /* Pas de filtre : corpus déjà gradé N&B (recette v3) */
}
.respiration__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,0.62) 0%, rgba(10,10,10,0.30) 45%, rgba(10,10,10,0.05) 100%);
}
/* idem contact : width 100% pour suivre la grille (parent flex centré) */
.respiration__inner { position: relative; z-index: 2; width: 100%; }
.respiration__quote {
  max-width: 20ch;
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--fs-l); line-height: 1.1; letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

/* ----------------------------------------------------------------
   NB contact
   ---------------------------------------------------------------- */
/* Fine-print OFFT : agrandi légèrement + interlignage détendu pour la
   lisibilité au bas de l'image contact (le scrim vertical fait le reste). */
.contact__nb {
  margin-top: var(--sp-5); max-width: 56ch; color: var(--sm-grey);
  font-size: 0.82rem; letter-spacing: 0.14em; line-height: 1.55;
}
@media (min-width: 768px) {
  .contact__nb { font-size: 0.88rem; }
}

/* ----------------------------------------------------------------
   5. RESPONSIVE — ajustements mobile
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
  .hero__wordmark { padding-block: var(--sp-3); }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .intro__text { font-size: clamp(1rem, 5vw, 1.5rem); }
  .respiration__quote { font-size: clamp(1.6rem, 7vw, 2.4rem); max-width: 16ch; }
  /* Point de fuite recadré sur Jean-Marc (à ~24% depuis la gauche) */
  .respiration__media img { object-position: 26% 58%; }
  /* Stats mobile : hauteur mesurée, note courte en bas à gauche (3 lignes max) */
  .stats { padding-block: var(--sp-6); }
  .stats__grid { gap: var(--sp-4) var(--sp-3); }
  .stats__note { margin-top: var(--sp-5); max-width: 30ch; }
  /* Panorama mobile : seulement les 3 destinations, une par ligne, à
     gauche ; secret spots + séparateurs masqués */
  .fullbleed__label { flex-direction: column; align-items: flex-start; gap: 0; }
  .fullbleed__label .label--secret { display: none; }
  .fullbleed__label .fb-sep { display: none; }
  .fullbleed__label .fb-dest { display: block; }
  /* Mobile : le format portrait crope trop les côtés — on décale sur la
     droite pour cadrer le skieur (qui se tient à ~65% de la largeur de
     l'image d'origine) au lieu de la seule gerbe de poudre.
     La video 9:16 tient deja en portrait, on la centre.  */
  .fullbleed__media img { object-position: 70% 55%; }
  .fullbleed__media video { object-position: 50% 50%; }
  /* Footer allégé : copyright sur une ligne, tagline et « tous droits
     réservés » masqués pour respirer */
  .footer__rights, .footer__tagline { display: none; }
  .footer__bottom { flex-direction: row; align-items: center; gap: var(--sp-2); }
}

/* ----------------------------------------------------------------
   7. LA TRACE — ligne rouge dessinée au scroll (2 segments)
   Couche décorative injectée en JS (desktop >= 1024px uniquement).
   pointer-events none : ne bloque jamais un clic.
   Jeu de profondeur : la couche est à z-index 4 ; les sections
   marquées z-index 6 passent DEVANT la trace (elle disparaît
   derrière), le reste passe DERRIÈRE (elle reste visible).
   ---------------------------------------------------------------- */
main { position: relative; }

.ski-layer {
  position: absolute; inset: 0; z-index: 4;
  pointer-events: none; overflow: hidden;
}
.ski-layer__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ski-layer__trace {
  fill: none;
  stroke: var(--sm-red);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.7;
}
/* Trace active sur tous les formats (mobile inclus) */

/* Couches au-dessus de la trace : elle s'y engouffre et disparaît */
.marquee-section { position: relative; z-index: 6; } /* la trace démarre DERRIÈRE le bandeau */
.fullbleed { z-index: 6; }                            /* le panorama l'avale */
.approche { position: relative; z-index: 6; }         /* le segment B en ressort */
.testimonials { position: relative; z-index: 6; }     /* elle glisse sous la bande noire */
.certs .wrap { position: relative; z-index: 6; }      /* elle passe derrière le texte */
.contact { z-index: 6; }                              /* elle finit sa course derrière le bloc contact */

/* ----------------------------------------------------------------
   8. ALTIMÈTRE DE DESCENTE (3883 m -> 1620 m)
   mix-blend difference : lisible sur paper comme sur noir.
   ---------------------------------------------------------------- */
.altimeter {
  position: fixed; left: var(--pad-x); bottom: var(--sp-3); z-index: 90;
  display: flex; align-items: baseline; gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sm-white);
  mix-blend-mode: difference;
  font-variant-numeric: tabular-nums;
  opacity: 0; transform: translateY(10px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.altimeter.is-on { opacity: 1; transform: none; }
.altimeter__value { font-size: 1.05rem; letter-spacing: 0.04em; }
.altimeter__ref {
  opacity: 0; transform: translateX(-6px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.altimeter.has-ref .altimeter__ref { opacity: 0.65; transform: none; }
/* Mobile : altimètre conservé (fond-fixe bas-gauche, mix-blend-difference
   assure la lisibilité aussi sur paper que sur noir) */

/* ----------------------------------------------------------------
   9. APPROCHE — activation des étapes au fil du scroll
   La classe .is-ready n'est posée que si GSAP tourne (pas de piège no-JS).
   ---------------------------------------------------------------- */
.steps.is-ready .step {
  opacity: 0.3;
  transition: opacity var(--dur-base) var(--ease-out);
}
.steps.is-ready .step.is-active { opacity: 1; }
/* Chiffre fantôme : fondu + léger push droite->gauche à l'activation */
.steps.is-ready .step .step__ghost {
  opacity: 0; transform: translate(48px, -50%);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.steps.is-ready .step.is-active .step__ghost { opacity: 0.14; transform: translate(0, -50%); }

/* Reveal des images (wipe) : coupe la transition CSS pendant le tween GSAP */
.media-wiping img { transition: none !important; }

/* ----------------------------------------------------------------
   6. PREFERS-REDUCED-MOTION — neutralise tout (REF §1.6 / §3)
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal], .js [data-line],
  .js .hero__logo {
    opacity: 1 !important; transform: none !important;
  }
  .scroll-cue__line::after { display: none; }
  .ski-layer, .altimeter { display: none !important; }
  .steps.is-ready .step { opacity: 1 !important; }
}

/* ----------------------------------------------------------------
   PAGE LÉGALE (mentions légales / protection des données)
   Sobre, dans la DA : papier, typo du site, accent rouge, sans image.
   ---------------------------------------------------------------- */
.legal-page { background: var(--sm-paper); color: var(--sm-black); }

.legal-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-2) var(--pad-x);
  background: rgba(245, 244, 241, 0.9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sm-grey-200);
}
.legal-header__logo { height: 24px; width: auto; display: block; }
.legal-header__back {
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sm-grey-700);
  display: inline-flex; align-items: center; gap: 0.5em;
  transition: color var(--dur-fast);
}
.legal-header__back span { transition: transform var(--dur-base) var(--ease-out); }
.legal-header__back:hover { color: var(--sm-red); }
.legal-header__back:hover span { transform: translateX(-5px); }

.legal { padding-block: clamp(48px, 9vh, 110px) var(--sp-7); }
.legal__wrap { max-width: 880px; }
.legal__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-l); line-height: 1.0; letter-spacing: -0.03em;
  text-transform: uppercase; margin-top: var(--sp-3);
}
.legal__lede {
  margin-top: var(--sp-4); max-width: 60ch;
  font-size: var(--fs-bl); color: var(--sm-grey-700);
  padding-bottom: var(--sp-5); border-bottom: 1px solid var(--sm-grey-200);
}
.legal__lede sup { font-size: 0.65em; }

.legal__block {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-2);
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--sm-grey-200);
}
@media (min-width: 720px) {
  .legal__block { grid-template-columns: 64px 1fr; gap: var(--sp-4); }
}
.legal__no { color: var(--sm-red); }
.legal__h {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-m); letter-spacing: -0.02em; text-transform: uppercase;
  line-height: 1.05; margin-bottom: var(--sp-3);
}
.legal__body p { color: var(--sm-ink); line-height: 1.7; max-width: 62ch; }
.legal__body p + p { margin-top: var(--sp-2); }
.legal__body em { color: var(--sm-red); font-style: normal; }
.legal__body a { border-bottom: 1px solid var(--sm-grey-200); transition: color var(--dur-fast), border-color var(--dur-fast); }
.legal__body a:hover { color: var(--sm-red); border-color: var(--sm-red); }

.legal__list { margin-top: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); }
.legal__list li { line-height: 1.6; max-width: 62ch; padding-left: var(--sp-3); position: relative; }
.legal__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 1px; background: var(--sm-red); }
.legal__k { display: block; color: var(--sm-grey-700); margin-bottom: 2px; }
.legal__update { display: block; margin-top: var(--sp-3); color: var(--sm-grey-700); }

.legal__home { margin-top: var(--sp-6); display: inline-block; border-color: var(--sm-black); color: var(--sm-black); }
.legal__home::before { background: var(--sm-red); }
.legal__home:hover { border-color: var(--sm-red); }
.legal__home:hover span { color: var(--sm-white); }

.legal-footer { background: var(--sm-black); color: var(--sm-white); padding-block: var(--sp-4); }
.legal-footer .footer__bottom { border-top: 0; padding-top: 0; }
.legal-footer .label { color: var(--sm-grey-700); }
@media (max-width: 767px) { .legal-footer .footer__bottom { flex-direction: column; gap: var(--sp-1); } }

/* Accordéon légal dans le footer (à côté de la nav) */
/* Espacement (pas de séparateur) entre la nav et l'accordéon légal */
.footer__legal-title {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sm-grey);
  transition: color var(--dur-fast);
}
.footer__legal-title::-webkit-details-marker { display: none; }
.footer__legal-title:hover { color: var(--sm-white); }
/* « + » blanc par défaut, rouge quand ouvert */
.footer__legal-chevron {
  color: var(--sm-white); font-size: 1.15rem; line-height: 1;
  font-family: var(--font-body); font-weight: 400; letter-spacing: 0; /* même « + » que Contact/Partenaires */
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-fast);
}
.footer__legal[open] .footer__legal-chevron { transform: rotate(45deg); color: var(--sm-red); }
.footer__legal-nav {
  display: flex; flex-direction: column; gap: var(--sp-1);
  margin-top: var(--sp-3);
}
.footer__legal-link {
  font-family: var(--font-mono); font-size: var(--fs-label);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--sm-grey-700);
  transition: color var(--dur-fast);
}
.footer__legal-link:hover { color: var(--sm-red); }
