/* =========================================================
   StandByMines — Équipage 4L Trophy · Mines Nancy
   Direction artistique : "Darkroom product editorial"
   ========================================================= */

:root {
  /* Couleurs */
  --color-warm-cream: #ffedd7;
  --color-walnut-shadow: #100904;
  --color-bark-brown: #382416;
  --color-cork-border: #40372e;
  --color-driftwood: #6c5f51;
  --color-ember-accent: #dc5000;
  --color-pure-black: #000000;

  /* Typographie */
  --font-halyard-display-variable: 'Inter', 'Söhne', 'Neue Haas Grotesk', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-arial: 'Arial', ui-sans-serif, system-ui, sans-serif;

  --text-subheading: 18px;
  --text-heading-sm: 24px;
  --text-body: clamp(19px, 2.02vw, 29px);
  --leading-body: 1.26;
  --text-heading: clamp(30px, 2.85vw, 41px);
  --leading-heading: 0.9;
  --text-display: clamp(40px, 3.55vw, 51px);
  --leading-display: 0.9;

  --font-weight-regular: 400;
  --font-weight-medium: 500;

  /* Espacements */
  --spacing-6: 6px; --spacing-8: 8px; --spacing-9: 9px; --spacing-10: 10px;
  --spacing-12: 12px; --spacing-14: 14px; --spacing-18: 18px; --spacing-24: 24px;
  --spacing-31: 31px; --spacing-41: 41px; --spacing-45: 45px; --spacing-68: 68px; --spacing-204: 204px;

  --gutter: clamp(18px, 2.85vw, 41px);
  --card-padding: 24px;
  --element-gap: 18px;

  /* Rayons */
  --radius-cards: 12px;
  --radius-inputs: 0px;
  --radius-full-round: 9999px;
  --radius-buttons-pill: 36px;
  --radius-buttons-outlined: 22.5px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--color-walnut-shadow);
  color: var(--color-warm-cream);
  font-family: var(--font-halyard-display-variable);
  font-weight: var(--font-weight-medium);
  font-feature-settings: "ss01" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
/* Rien ne doit élargir la page sur téléphone (sinon le navigateur dézoome tout le site) :
   les éléments qui glissent depuis le bord pendant une animation sont rognés, sans créer de barre de défilement. */
html { overflow-x: clip; }
.reveal { overflow-x: clip; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--color-bark-brown); color: var(--color-warm-cream); }

/* ---------- Primitives typographiques ---------- */
.label {
  font-size: 12px; line-height: 1.2; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0;
}
.heading {
  font-size: var(--text-heading); line-height: var(--leading-heading);
  font-weight: 500; text-transform: uppercase;
}
.display {
  font-size: var(--text-display); line-height: var(--leading-display);
  font-weight: 500; text-transform: uppercase;
}
.body {
  font-size: var(--text-body); line-height: var(--leading-body);
  font-weight: 400; text-transform: none;
}
.accent { color: var(--color-ember-accent); }
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; will-change: transform; }

hr.dashed {
  border: 0; border-top: 1px dashed var(--color-driftwood);
  margin: var(--spacing-18) 0; width: 100%;
}

.link { position: relative; text-transform: uppercase; font-size: 12px; font-weight: 500; }
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 0;
  border-bottom: 1px dashed currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.link:hover::after, .link.is-active::after { transform: scaleX(1); transform-origin: left; }

/* Couches : fonds (0) < scène 3D (1) < contenus (2) < voile (3) < UI (10) */
.bg-layer { position: absolute; inset: 0; z-index: 0; }
.content { position: relative; z-index: 2; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 50; background: var(--color-walnut-shadow);
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--gutter);
}
.loader__inner { display: flex; justify-content: space-between; align-items: flex-end; text-transform: uppercase; }
.loader__label { font-size: 12px; }
.loader__count { font-size: clamp(56px, 12vw, 180px); line-height: .8; font-variant-numeric: tabular-nums; }
.loader__bar { margin-top: var(--spacing-24); height: 1px; border-top: 1px dashed var(--color-cork-border); position: relative; }
.loader__bar span { position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--color-warm-cream); transform: scaleX(0); transform-origin: left; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--spacing-24) var(--gutter);
  color: var(--color-warm-cream); transition: color .5s var(--ease-out);
  pointer-events: none;
}
.nav a { pointer-events: auto; }
.nav__logo { font-size: 14px; text-transform: uppercase; opacity: 0; }
.nav__links { display: flex; gap: var(--spacing-31); }
.nav__toggle { display: none; }                 /* bouton « Menu » : téléphone seulement (voir js/nav-mobile.js) */

.progress {
  position: fixed; right: 0; top: 0; bottom: 0; width: 6px; z-index: 10; pointer-events: none;
}
.progress__thumb {
  position: absolute; right: 0; top: 0; width: 6px; height: 12vh;
  background: var(--color-warm-cream); transition: background-color .5s var(--ease-out);
}

.scroll-hint {
  position: fixed; left: 50%; bottom: var(--spacing-24); z-index: 10;
  transform: translateX(-50%); display: flex; align-items: center; gap: var(--spacing-10);
  font-size: 10px; text-transform: uppercase; white-space: nowrap; pointer-events: none; color: var(--color-warm-cream); transition: color .5s var(--ease-out);
  opacity: 0;
}
.scroll-hint__icon {
  width: 18px; height: 18px; border: 1px solid currentColor; border-radius: var(--radius-full-round);
  display: grid; place-items: center;
}
.scroll-hint__icon svg { width: 12px; height: 12px; animation: nudge 1.8s var(--ease-out) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(2px); } }

/* Sur fond crème, l'interface passe en brun noyer */
body.on-light .nav, body.on-light .scroll-hint { color: var(--color-walnut-shadow); }
body.on-light .progress__thumb { background: var(--color-walnut-shadow); }

.webgl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
/* voile noir : « Grâce à vous » pilote --bo-in (0 → 1), « Qui sommes-nous » pilote --bo-out (0 → 1).
   Deux variables séparées : après un saut de la nav, l'ordre de recalcul des timelines ne peut plus laisser le voile allumé. */
.blackout {
  position: fixed; inset: 0; background: #050302; z-index: 3; pointer-events: none;
  --bo-in: 0; --bo-out: 0; opacity: calc(var(--bo-in) * (1 - var(--bo-out)));
}
/* voile des liens de navigation (fondu au lieu d'un défilement accéléré) — sous la nav */
.page-fade { position: fixed; inset: 0; background: var(--color-walnut-shadow); z-index: 9; opacity: 0; pointer-events: none; }

/* ---------- 0:00 Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; }
.hero__bg { overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.06) brightness(.92); transform: scale(1.25); }
.hero__shade {
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(16, 9, 4, .55) 100%),
    linear-gradient(180deg, rgba(16, 9, 4, .35) 0%, transparent 30%, transparent 70%, rgba(16, 9, 4, .45) 100%);
}
.hero__lockup { position: absolute; top: calc(var(--spacing-24) + 6px); left: var(--gutter); }
.hero__tagline { margin: 0 0 var(--spacing-12) .4vw; font-size: clamp(14px, 1.3vw, 18px); }
.hero__wordmark {
  font-size: clamp(30px, 8.6vw, 170px); line-height: .9; font-weight: 600; text-transform: uppercase;
  white-space: nowrap; transform-origin: left top;
}
.hero__wordmark .char { display: inline-block; will-change: transform; }
.hero__body {
  position: absolute; right: calc(var(--gutter) + 2vw); top: 44%; width: min(31vw, 460px);
}
.hero__body .ln { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__body .ln > span { display: inline-block; }
.hero__card {
  position: absolute; left: var(--gutter); bottom: var(--spacing-41); width: min(340px, 78vw);
  padding: var(--card-padding); border-radius: var(--radius-cards);
  background: rgba(255, 237, 215, .14); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 237, 215, .18);
}
.hero__card-title { font-size: 20px; line-height: 1.09; text-transform: uppercase; }
.hero__card-text { font-size: 15px; line-height: 1.26; font-weight: 400; text-align: right; }

/* ---------- 0:08 Reveal ---------- */
.reveal__pin {
  height: 100vh; position: relative; display: grid;
  grid-template-columns: 1fr 40% 1fr; align-items: center; gap: var(--spacing-18);
  padding: 0 var(--gutter);
}
.reveal__title { grid-column: 1; width: 100%; text-align: center; font-size: clamp(30px, 3.4vw, 62px); }
.reveal__text { grid-column: 3; width: 100%; text-align: center; font-size: clamp(17px, 1.75vw, 28px); }
.js-fill .w { color: rgba(255, 237, 215, .16); transition: none; }

/* ---------- 0:26 Grâce à vous ---------- */
.thanks__pin { height: 100vh; position: relative; overflow: hidden; }
.thanks__photo { opacity: 0; overflow: hidden; }
/* la photo (4:3) garde toute sa largeur, même sur un écran en hauteur : on peut la décaler (ROAD_SHIFT) sans découvrir son bord */
.thanks__photo img { --pw: max(100%, 100vh * 4 / 3); width: var(--pw); max-width: none; margin-left: calc((100% - var(--pw)) / 2); height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.08); filter: saturate(1.12) contrast(1.04); }
/* voile clair en haut : les textes noirs restent lisibles sur le ciel */
.thanks__shade { opacity: 0; background: linear-gradient(180deg, rgba(255, 237, 215, .38) 0%, rgba(255, 237, 215, .16) 40%, transparent 58%, rgba(16, 9, 4, .14) 100%); }
.thanks__text {
  position: absolute; left: 50%; top: 38vh; transform: translateX(-50%); width: min(34vw, 520px);
  text-align: center; font-size: clamp(16px, 1.45vw, 22px); line-height: 1.26; font-weight: 500; opacity: 0;
  color: var(--color-walnut-shadow);
}
.thanks__title .js-blur { color: var(--color-walnut-shadow); }
.thanks__title {
  /* largeur ajustée au titre et centrée : le sous-titre s'aligne ainsi sur le bord droit de « Grâce à vous » */
  position: absolute; top: 13vh; left: 0; right: 0; width: fit-content; margin: 0 auto; text-align: center;
  font-size: clamp(44px, 7.4vw, 128px); line-height: .9; font-weight: 600;
}
.thanks__title .js-blur .char { display: inline-block; }
.thanks__sub {
  display: block; font-size: clamp(11px, 1vw, 14px); text-transform: uppercase; margin-top: var(--spacing-10);
  text-align: right;
}

/* ---------- 0:36 Split / Qui sommes-nous ---------- */
.split__pin { height: 100vh; position: relative; overflow: hidden; background: #050302; perspective: 1400px; }
.split__cream { background: var(--color-warm-cream); opacity: 0; }
.split__shadow { opacity: 0; mix-blend-mode: multiply; }
.split__shadow img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.35) contrast(.7) brightness(1.2); opacity: .3; }
.split__title {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  text-align: center; white-space: nowrap;
  font-size: clamp(40px, 9.4vw, 200px); line-height: .9; font-weight: 600; letter-spacing: -0.01em;
}
.js-grad {
  --tc: #ffedd7; --td: rgba(255, 237, 215, .12);
  background-image: linear-gradient(90deg, var(--tc) 0%, var(--tc) 45%, var(--td) 55%, var(--td) 100%);
  background-size: 220% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding: 0 .04em .12em;
}
.split__half { position: absolute; left: -4%; right: -4%; height: 50%; overflow: hidden; z-index: 4; will-change: transform; }
.split__half img { position: absolute; left: 0; width: 100%; height: 200%; object-fit: cover; filter: brightness(0) sepia(.4); }
.split__half::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 140% at 50% 100%, transparent 30%, rgba(5, 3, 2, .75) 100%);
}
.split__half--bottom::after { background: radial-gradient(90% 140% at 50% 0%, transparent 30%, rgba(5, 3, 2, .75) 100%); }
.split__half--top { top: 0; transform-origin: 50% 0%; }
.split__half--top img { top: 0; }
.split__half--bottom { bottom: 0; transform-origin: 50% 100%; }
.split__half--bottom img { bottom: 0; }
.split__half--top { clip-path: polygon(0 0, 100% 0, 100% 100%, 92% 99%, 81% 100.5%, 70% 98.6%, 58% 100%, 47% 98.8%, 36% 100.4%, 24% 98.9%, 13% 100%, 0 99%); }
.split__half--bottom { clip-path: polygon(0 1%, 13% 0, 24% 1.1%, 36% -.4%, 47% 1.2%, 58% 0, 70% 1.4%, 81% -.5%, 92% 1%, 100% 0, 100% 100%, 0 100%); }
.split__crack {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%) scaleX(0); z-index: 5;
  background: linear-gradient(90deg, transparent, rgba(255, 190, 120, .9) 20%, rgba(255, 237, 215, 1) 50%, rgba(255, 190, 120, .9) 80%, transparent);
  box-shadow: 0 0 24px 4px rgba(220, 80, 0, .45);
}

/* ---------- 1:27 → 1:46 Désert vu du dessus (route générée par js/road.js) ---------- */
.desert { position: relative; background-color: #7a5233; }
.desert__road { background-repeat: repeat-y; background-position: 50% 0; background-size: 100% auto; }
.desert__road::before { /* voile latéral : la route reste lumineuse, les textes restent lisibles */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(16, 9, 4, .62) 0%, rgba(16, 9, 4, .3) 26%, transparent 38%, transparent 62%, rgba(16, 9, 4, .3) 74%, rgba(16, 9, 4, .62) 100%);
}
.desert__road::after { /* raccord crème → désert */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 38vh; pointer-events: none;
  background: linear-gradient(180deg, var(--color-warm-cream) 0%, rgba(255, 237, 215, .55) 45%, transparent 100%);
}

/* ---------- 1:27 Cartes ---------- */
.crew { color: var(--color-walnut-shadow); padding: 0 var(--gutter) var(--spacing-68); position: relative; z-index: 2; }
.crew__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-18); }
.card {
  border-radius: var(--radius-cards); padding: var(--card-padding); min-height: min(78vh, 720px);
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  background: #f4dfc4;
}
.card--car { background: var(--color-bark-brown); color: var(--color-warm-cream); }
.card--person { min-height: 0; }   /* la carte s'arrête à la fin du texte, sans vide */
.card__title { font-size: var(--text-heading-sm); line-height: 1.09; text-transform: uppercase; font-weight: 500; }
.card__mark {
  flex: 1; display: grid; place-items: center;
  font-size: clamp(160px, 20vw, 340px); line-height: .8; font-weight: 500; color: var(--color-warm-cream);
}
.card__stage { position: relative; height: clamp(210px, 30vh, 300px); margin: var(--spacing-12) 0 var(--spacing-18); }
.card__stage::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: auto; height: 92%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--color-bark-brown); opacity: .9;
}
/* Photo ronde de l'équipier, dans le disque ; les initiales restent tant que la photo manque */
.card__photo img, .card__initials {
  position: absolute; left: 50%; top: 50%; width: auto; height: 92%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
}
.card__photo img { object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.card__photo.has-photo img { opacity: 1; }
.card__initials {
  display: grid; place-items: center; color: var(--color-warm-cream);
  font-size: clamp(48px, 6vw, 84px); font-weight: 500; line-height: 1;
}
.card__photo.has-photo .card__initials { visibility: hidden; }
.card__foot { font-size: clamp(15px, 1.2vw, 18px); line-height: 1.45; font-weight: 400; }   /* juste sous la photo */

/* ---------- 1:30 4L Trophy ---------- */
.trophy {
  position: relative; height: 100vh; display: grid; grid-template-columns: 1fr 40% 1fr;
  gap: var(--spacing-18); padding: 16vh var(--gutter) 0; align-items: start;
}
.trophy__title { grid-column: 1; font-size: var(--text-display); }
.trophy__text { grid-column: 3; padding-top: 36vh; }

/* ---------- 1:32 Étapes ---------- */
.steps { position: relative; padding: 4vh var(--gutter) 30vh; }
.step {
  display: grid; grid-template-columns: 1fr 40% 1fr; gap: var(--spacing-18); align-items: center;
  min-height: 62vh; padding: var(--spacing-41) 0; border-top: 1px dashed rgba(255, 237, 215, .28);
  --st-in: 1; --st-out: 1; opacity: calc(var(--st-in) * var(--st-out));   /* fondu d'entrée × fondu de sortie (main.js) */
}
.step:last-child { border-bottom: 1px dashed rgba(255, 237, 215, .28); }
.step__text { grid-column: 1; display: flex; flex-direction: column; gap: var(--spacing-14); }
.step__num { font-size: 10px; text-transform: uppercase; color: rgba(255, 237, 215, .7); }
.step__title { font-size: var(--text-heading-sm); line-height: 1.09; text-transform: uppercase; font-weight: 500; }
.step__desc { font-size: clamp(16px, 1.35vw, 20px); line-height: 1.26; font-weight: 400; max-width: 24em; }
.step__media { grid-column: 3; aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.step__media img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }

/* ---------- 1:48 Galerie ---------- */
.gallery__pin { height: 100vh; overflow: hidden; display: flex; align-items: center; background: var(--color-walnut-shadow); position: relative; z-index: 2; }
.gallery__track { display: flex; gap: var(--spacing-10); padding: 0 var(--gutter); height: 74vh; will-change: transform; }
.shot { position: relative; height: 100%; flex: 0 0 auto; overflow: hidden; }
.shot--w { width: 58vw; }
.shot--m { width: 40vw; }
.shot--n { width: 24vw; }
.shot__img { position: absolute; inset: 0; overflow: hidden; }
.shot__img img { width: 120%; max-width: none; height: 100%; object-fit: cover; margin-left: -10%; will-change: transform; }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 9, 4, .5), transparent 35%, transparent 65%, rgba(16, 9, 4, .45)); pointer-events: none; }
.shot__tag { position: absolute; top: var(--spacing-18); left: var(--spacing-18); font-size: 10px; text-transform: uppercase; z-index: 1; }
.shot__title { position: absolute; left: var(--spacing-24); bottom: var(--spacing-41); z-index: 1; font-size: clamp(40px, 5.6vw, 96px); line-height: .9; font-weight: 500; }
.credit {
  position: absolute; right: var(--spacing-12); bottom: var(--spacing-10); z-index: 1;
  font-family: var(--font-arial); font-size: 8px; line-height: 1.2; text-transform: uppercase; color: var(--color-ember-accent);
}

/* ---------- 2:14 Nous rejoindre ---------- */
.join { position: relative; height: 100vh; min-height: 480px; overflow: hidden; background: var(--color-walnut-shadow); }
.join__head {
  /* espace entre « Nous soutenir » et les boutons */
  --join-title-gap: var(--spacing-68);
  position: absolute; inset: 14vh var(--gutter) var(--spacing-41); text-align: center;
  display: flex; flex-direction: column; gap: var(--join-title-gap);
}
.join__title { font-size: clamp(52px, 10vw, 190px); line-height: .9; font-weight: 600; text-transform: uppercase; }
/* les deux boutons : 1/3 de la largeur de l'écran à eux deux (espace compris), 1/4 de la hauteur restante sous le titre */
.join__buttons {
  --join-gap: var(--spacing-31);
  flex: 1; min-height: 0; display: grid; gap: var(--join-gap);
  grid-template-columns: repeat(2, minmax(0, calc((100vw / 3 - var(--join-gap)) / 2)));
  /* 1/4 de la hauteur sous le titre, mesurée comme avec l'ancien espace de 41 px : agrandir l'espace ne rétrécit pas les boutons */
  grid-template-rows: calc((100% + var(--join-title-gap) - var(--spacing-41)) / 4); justify-content: center; align-content: start;
}
/* au repos : bouton contour (ghost) ; au survol : il se remplit comme un bouton plein (Bark Brown, arrondi 36 px) */
.join__buttons .pill {
  justify-content: center; text-align: center; padding: var(--spacing-12);
  font-size: clamp(13px, 1.45vw, 28px); line-height: 1; font-weight: 500;
  background: transparent; border-color: rgba(255, 237, 215, .55); border-radius: var(--radius-buttons-outlined);
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), border-radius .4s var(--ease-out), transform .4s var(--ease-out);
}
.join__buttons .pill:hover,
.join__buttons .pill:focus-visible {
  background: var(--color-bark-brown); border-color: rgba(255, 237, 215, .55);
  border-radius: var(--radius-buttons-pill); transform: translateY(-4px);
}
.pill {
  display: inline-flex; align-items: center; padding: var(--spacing-14) var(--spacing-24);
  border-radius: var(--radius-buttons-pill); background: rgba(56, 36, 22, .7);
  border: 1px solid transparent; font-size: 12px; text-transform: uppercase;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), transform .4s var(--ease-out);
}
.pill--filled { background: var(--color-bark-brown); border-color: rgba(255, 237, 215, .55); }
.pill:hover { border-color: var(--color-warm-cream); transform: translateY(-2px); }

/* ---------- Contact ---------- */
.contact { position: relative; z-index: 2; background: var(--color-walnut-shadow); padding: var(--spacing-204) var(--gutter) var(--spacing-24); border-top: 1px dashed var(--color-cork-border); }
.contact__top { display: flex; flex-direction: column; gap: var(--spacing-18); margin-bottom: var(--spacing-68); }
.contact__title { font-size: clamp(40px, 6vw, 110px); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-68); }
.contact__info li { display: flex; flex-direction: column; gap: var(--spacing-10); padding: var(--spacing-24) 0; border-top: 1px dashed var(--color-cork-border); }
.contact__info li:last-child { border-bottom: 1px dashed var(--color-cork-border); }
.contact__value { font-size: var(--text-heading-sm); line-height: 1.09; text-transform: none; font-weight: 500; word-break: break-word; }
.contact__value.link::after { bottom: -6px; }
/* chaque adresse tient sur une seule ligne : la police se réduit avec la largeur de sa colonne
   (18,5 ≈ largeur de la plus longue adresse en multiples de la taille de police) */
.contact__addr { white-space: nowrap; font-size: clamp(12px, calc((100vw - 2 * var(--gutter)) / 18.5), 24px); }
@media (min-width: 901px) {
  .contact__addr { font-size: clamp(12px, calc((100vw - 2 * var(--gutter) - var(--spacing-68)) / 2 / 18.5), 24px); }
}
.contact__form { display: flex; flex-direction: column; gap: var(--spacing-31); }
.field { display: flex; flex-direction: column; gap: var(--spacing-8); }
.field input, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--color-warm-cream); border-radius: var(--radius-inputs);
  color: var(--color-warm-cream); font: 400 18px/1.26 var(--font-halyard-display-variable); padding: 1px 36px 8px 2px; outline: none; resize: vertical;
}
.field input:focus, .field textarea:focus { border-bottom-style: dashed; }
.ghost {
  align-self: flex-start; background: transparent; color: var(--color-warm-cream);
  border: 1px solid var(--color-warm-cream); border-radius: var(--radius-buttons-outlined);
  padding: 7.5px 18px; font: 500 12px/1.2 var(--font-halyard-display-variable); text-transform: uppercase; cursor: pointer;
  transition: background .4s var(--ease-out), color .4s var(--ease-out);
}
.ghost:hover { background: var(--color-warm-cream); color: var(--color-walnut-shadow); }
.form-note { min-height: 1em; color: var(--color-driftwood); }
.footer { margin-top: var(--spacing-68); padding-top: var(--spacing-24); border-top: 1px dashed var(--color-cork-border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--spacing-12); }
.legal { width: 100%; font-family: var(--font-arial); font-size: 8px; line-height: 1.2; text-transform: uppercase; color: var(--color-driftwood); }
.legal a { text-decoration: underline; text-underline-offset: 1px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.form-note.is-ok { color: var(--color-warm-cream); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { gap: var(--spacing-14); }
  .nav__links .link { font-size: 10px; }
  .hero__body { top: auto; bottom: 34vh; right: var(--gutter); width: 62vw; font-size: 18px; }
  .hero__card { width: 220px; padding: var(--spacing-18); }
  .hero__card-title { font-size: 18px; }
  .reveal__pin { grid-template-columns: 1fr; align-content: space-between; padding: 18vh var(--gutter) 12vh; }
  .reveal__title, .reveal__text { grid-column: 1; }
  .reveal__text { justify-self: end; max-width: 80vw; }
  .crew__grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card--car { min-height: 360px; }
  .reveal__title, .reveal__text { max-width: none; }
  .thanks__text { width: 62vw; top: 34vh; }
  .desert__road::before { background: linear-gradient(90deg, rgba(16, 9, 4, .5), rgba(16, 9, 4, .15) 35%, rgba(16, 9, 4, .15) 65%, rgba(16, 9, 4, .5)); }
  .trophy { grid-template-columns: 1fr; padding-top: 14vh; }
  .trophy__title, .trophy__text { grid-column: 1; }
  .trophy__text { padding-top: 44vh; }
  .step { grid-template-columns: 1fr 1fr; min-height: 0; }
  .step__text { grid-column: 1; }
  .step__media { grid-column: 2; }
  .shot--w { width: 84vw; } .shot--m { width: 70vw; } .shot--n { width: 52vw; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  /* Bandeau du haut : logo à gauche, bouton « Menu » à droite ; les liens s'ouvrent en plein écran */
  .nav { padding: var(--spacing-18) var(--gutter); }
  /* léger fondu derrière le bandeau : le contenu qui défile dessous ne se mélange plus au logo et au bouton */
  .nav::before {
    content: ""; position: absolute; inset: 0 0 -28px; z-index: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(16, 9, 4, .82) 0%, rgba(16, 9, 4, .5) 55%, rgba(16, 9, 4, 0) 100%);
    transition: opacity .5s var(--ease-out);
  }
  body.on-light .nav::before { background: linear-gradient(180deg, rgba(255, 237, 215, .9) 0%, rgba(255, 237, 215, .55) 55%, rgba(255, 237, 215, 0) 100%); }
  .nav.is-open::before { opacity: 0; }
  .nav__logo { font-size: 12px; position: relative; z-index: 2; }
  .nav__toggle {
    display: inline-flex; align-items: center; gap: var(--spacing-10); position: relative; z-index: 2; pointer-events: auto;
    margin: -10px -10px -10px auto; padding: 10px; background: none; border: 0; color: inherit; cursor: pointer;
    font: 500 12px/1 var(--font-halyard-display-variable); text-transform: uppercase;
  }
  .nav__burger { display: grid; gap: 5px; width: 20px; }
  .nav__burger i { display: block; height: 1.5px; background: currentColor; transition: transform .4s var(--ease-out); }
  .nav.is-open .nav__burger i:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav.is-open .nav__burger i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; justify-content: center; align-items: flex-start;
    gap: var(--spacing-31); padding: 96px var(--gutter) var(--spacing-68);
    background: var(--color-walnut-shadow); color: var(--color-warm-cream);
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .45s var(--ease-out), visibility 0s linear .45s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .45s var(--ease-out); }
  .nav__links .link { font-size: 30px; line-height: 1.1; }
  .nav.is-open, body.on-light .nav.is-open { color: var(--color-warm-cream); }
  .nav.is-open .nav__logo { opacity: 1 !important; }
  html.nav-open { overflow: hidden; }
  html.nav-open .scroll-hint, html.nav-open .progress { visibility: hidden; }
  .hero__lockup { top: 64px; }
  /* le texte reste au-dessus de la carte, qui prend toute la largeur (donc moins de hauteur) */
  .hero__body { width: auto; left: var(--gutter); right: var(--gutter); bottom: calc(56px + 156px); font-size: 17px; }
  .hero__card { bottom: 56px; left: var(--gutter); right: var(--gutter); width: auto; padding: var(--spacing-14) var(--spacing-18); }   /* au-dessus de « Faites défiler pour continuer » */
  .hero__card-title { font-size: 16px; }
  .hero__card-text { font-size: 14px; }
  /* « Qui sommes-nous ? » tient sur la largeur de l'écran */
  .split__title { font-size: 9.6vw; }
  /* étapes : le texte passe au-dessus de la route et de la 4L, on le pose sur un fond sombre pour qu'il reste lisible */
  .step { padding: var(--spacing-24) 0; gap: var(--spacing-14); }
  .step__text {
    display: flex; flex-direction: column; gap: var(--spacing-8); padding: var(--spacing-18); border-radius: var(--radius-cards);
    background: rgba(16, 9, 4, .66); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .step__media { border-radius: var(--radius-cards); }
  /* l'adresse e-mail tient sur une ligne */
  .contact__value[href^="mailto:"] { font-size: clamp(13px, calc((100vw - 2 * var(--gutter)) / 16.6), 24px); white-space: nowrap; }
  .hero__wordmark { font-size: 10.2vw; }
  .thanks__text { width: 76vw; }
  .step { grid-template-columns: 1fr; }
  .step__media { grid-column: 1; }
  /* sur téléphone, 1/3 de largeur serait illisible : les boutons prennent toute la largeur */
  .join__buttons { --join-gap: var(--spacing-18); grid-template-columns: 1fr 1fr; }
  .join__buttons .pill { font-size: 15px; }
}

/* Téléphone tenu à l'horizontale (écran bas) : l'accueil tient dans la hauteur de l'écran */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 0; }
  .hero__lockup { top: 52px; }
  .hero__wordmark { font-size: min(9vw, 15vh); }
  .hero__body { top: auto; bottom: 50px; right: var(--gutter); width: 38vw; font-size: 15px; }   /* au-dessus de « Faites défiler pour continuer » */
  .hero__card { bottom: 50px; width: min(300px, 42vw); padding: var(--spacing-12) var(--spacing-14); }
  .hero__card-title { font-size: 14px; }
  .hero__card-text { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint__icon svg { animation: none; }
}
