/* ==========================================================================
   Refill Labs — site v2 · direction « carnet de route »
   Charte : noir, vert glacier #ADD9D3, gris #C7C6C6, bleu puissant #171926
   Typo : Gopher Text (Regular → Black), auto-hébergée
   ========================================================================== */

@font-face { font-family: "Gopher"; src: url("../fonts/GopherText-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gopher"; src: url("../fonts/GopherText-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Gopher"; src: url("../fonts/GopherText-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Gopher"; src: url("../fonts/GopherText-Black.ttf") format("truetype"); font-weight: 900; font-display: swap; }

:root {
  --noir: #000000;
  --bleu: #171926;
  --glacier: #ADD9D3;
  --gris: #C7C6C6;
  --blanc: #F4F4F2;

  --bg: var(--noir);
  --surface: var(--bleu);
  --text: var(--blanc);
  --text-muted: var(--gris);
  --accent: var(--glacier);
  --on-accent: var(--noir);
  --rule: rgba(199, 198, 198, 0.18);
  --rule-strong: rgba(173, 217, 211, 0.45);
  --glow: rgba(173, 217, 211, 0.14);
  --error: #FF9B8F;

  --font: "Gopher", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
  --fs-2xl: clamp(2.2rem, 1.3rem + 3.6vw, 4.4rem);
  --fs-hero: clamp(3.4rem, 1rem + 10vw, 10.5rem);

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1320px;
  --header-h: 72px;
  --pill: 999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: var(--fs-md); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; line-height: .98; letter-spacing: -0.025em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 18px; border-radius: var(--pill); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.thin { font-weight: 500; letter-spacing: -0.015em; }
.accent { color: var(--accent); }
.muted { color: var(--text-muted); }
.note { font-size: var(--fs-xs); color: var(--text-muted); }

/* Libellé technique façon carnet de route (KM, coordonnées) */
.tag { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.tag b { color: var(--accent); font-weight: 900; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 10px 0 26px;
  border-radius: var(--pill); border: 0; background: var(--accent); color: var(--on-accent);
  font-weight: 900; font-size: var(--fs-md); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease);
}
.btn__arrow { width: 36px; height: 36px; border-radius: 50%; background: var(--noir); color: var(--accent); display: grid; place-items: center; transition: transform .25s var(--ease); }
.btn__arrow svg { width: 16px; height: 16px; }
.btn:hover { box-shadow: 0 0 0 6px var(--glow); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: var(--fs-sm); }

.link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; color: var(--text); text-decoration: none; border-bottom: 1.5px solid var(--rule-strong); transition: color .2s, border-color .2s; }
.link:hover { color: var(--accent); border-color: var(--accent); }
.link svg { width: 16px; height: 16px; }

/* ---------- En-tête ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; transition: background-color .3s var(--ease), border-color .3s; border-bottom: 1px solid transparent; }
.header.is-scrolled { background: rgba(0,0,0,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: var(--rule); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.header__logo { display: flex; align-items: center; min-height: 44px; }
.header__logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
/* Liens centrés dans la barre, logo à gauche, Contact à droite */
.nav__links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; font-weight: 700; font-size: var(--fs-sm); letter-spacing: .08em; text-transform: uppercase; color: var(--text); transition: color .2s; }
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { color: var(--accent); }
.nav .btn { margin-left: 10px; }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--rule-strong); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--accent); border-radius: 2px; position: relative; transition: transform .25s var(--ease), background-color .25s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .burger { display: inline-flex; }
  .header { background: rgba(0,0,0,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--noir); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 24px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links { position: static; transform: none; flex-direction: column; align-items: stretch; gap: 0; }
  .nav a:not(.btn) { min-height: 56px; font-size: var(--fs-lg); border-bottom: 1px solid var(--rule); padding: 0; }
  .nav .btn { margin: 16px 0 0; justify-content: center; }
}

/* ---------- Étapes du carnet de route (séparateur profil de dénivelé) ---------- */
.stage { position: relative; height: 92px; margin: 0 auto; max-width: var(--wrap); padding: 0 var(--gutter); }
.stage__profile { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; width: calc(100% - 2 * var(--gutter)); height: 80px; }
.stage__profile path { fill: none; stroke: var(--rule-strong); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.stage__profile .area { fill: url(#profileFill); stroke: none; }
.stage__pole { position: absolute; left: calc(var(--gutter) + (100% - 2 * var(--gutter)) * var(--at, .1)); bottom: 0; top: 4px; border-left: 1.5px dashed var(--accent); }
.stage__pole::before { content: ""; position: absolute; left: -6px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--glow); }
.stage__label { position: absolute; left: 14px; top: -6px; white-space: nowrap; }
.stage--end .stage__label { left: auto; right: 14px; }

.section { padding: clamp(64px, 9vw, 130px) 0; position: relative; overflow-x: clip; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.head h2 { font-size: var(--fs-2xl); }
.head p { font-size: var(--fs-lg); color: var(--text-muted); max-width: 44ch; }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Haut de page ----------
   Vidéo verticale (9:16, 720 × 1280) au centre-droit, bords nets, sur sa copie floutée.
   Le reste de l'écran : copie floutée de la même vidéo, avec le texte par-dessus. */
.hero { --vidh: calc((100svh - var(--header-h)) * .84); --vidw: calc(var(--vidh) * 9 / 16); --vidright: clamp(24px, 7vw, 140px); position: relative; min-height: 100svh; padding: calc(var(--header-h) + 28px) 0 40px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; justify-content: center; }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: blur(32px) saturate(1.15) brightness(.5); transform: scale(1.15); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 100%), linear-gradient(0deg, #000 0%, transparent 30%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); position: static; max-width: none; padding-left: var(--gutter); padding-right: calc(var(--vidw) + var(--vidright) + clamp(28px, 4vw, 72px)); }
.hero__text { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(3rem, 9vw, 11.5rem); line-height: .86; letter-spacing: -0.045em; }
.hero h1 .accent { display: block; }
.hero h1 .thin { display: block; color: var(--blanc); }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(24px, 3vw, 40px); padding-top: 24px; border-top: 1px solid var(--rule); }
.hero__lead { font-size: var(--fs-lg); max-width: 34ch; margin-right: auto; }
.hero__media { position: absolute; z-index: 0; top: calc(var(--header-h) + (100% - var(--header-h)) / 2); right: var(--vidright); transform: translateY(-50%); height: calc((100% - var(--header-h)) * .84); width: auto; aspect-ratio: 9 / 16; overflow: hidden; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.video-toggle { position: absolute; right: var(--gutter); bottom: 24px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(244,244,242,.5); background: rgba(0,0,0,.55); color: var(--blanc); cursor: pointer; display: grid; place-items: center; }
.video-toggle svg { width: 16px; height: 16px; }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }

/* Écran très étroit mais pas vertical : la vidéo reste à droite, le titre passe par-dessus en bas */
@media (max-width: 640px) {
  .hero { justify-content: flex-end; }
  .hero__grid { padding-right: var(--gutter); }
  .hero h1 { font-size: var(--fs-hero); }
  .hero__media::after { background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.65) 70%, #000 100%); }
  .hero::after { background: linear-gradient(0deg, #000 0%, rgba(0,0,0,.3) 60%, rgba(0,0,0,.45) 100%); }
}

/* Écran vertical (téléphone) : la vidéo remplit l'écran sans être agrandie, pas besoin du fond flouté */
@media (max-width: 860px) and (max-aspect-ratio: 3/4) {
  .hero { justify-content: flex-end; }
  .hero__bg { display: none; }
  .hero__media { inset: 0; width: 100%; height: 100%; aspect-ratio: auto; transform: none; }
  .hero__media::after { background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.05) 30%, rgba(0,0,0,.75) 62%, #000 100%); }
  .video-toggle { top: calc(var(--header-h) + 12px); bottom: auto; }
}

/* Bandeau défilant façon arche de course */
.ticker { border-block: 1px solid var(--rule); overflow: hidden; background: var(--noir); }
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: flex; align-items: center; gap: 28px; padding: 18px 14px; font-size: clamp(1.1rem, .9rem + 1vw, 1.7rem); font-weight: 900; white-space: nowrap; letter-spacing: -0.01em; }
.ticker__item .thin { color: var(--text-muted); }
.ticker__dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Simulateur (vrais écrans de la borne) ---------- */
.how { display: grid; grid-template-columns: minmax(240px, min(380px, 45%)) minmax(0, 1fr); gap: clamp(28px, 7vw, 120px); align-items: center; margin-top: clamp(40px, 6vw, 80px); }
@media (max-width: 700px) { .how { grid-template-columns: 1fr; } }
.sim { position: relative; width: 100%; max-width: 380px; margin: 0 auto; }
.sim::before { content: ""; position: absolute; inset: -18% -30%; z-index: -1; background-image: radial-gradient(circle, rgba(173,217,211,.55) 1.3px, transparent 1.8px); background-size: 16px 16px; -webkit-mask-image: radial-gradient(ellipse 50% 45% at 50% 50%, #000, transparent 72%); mask-image: radial-gradient(ellipse 50% 45% at 50% 50%, #000, transparent 72%); opacity: .35; }
.sim__frame { position: relative; padding: 12px; border-radius: 30px; background: linear-gradient(160deg, #26282f, #0a0a0d 60%); border: 1px solid #30333c; box-shadow: 0 50px 120px -50px rgba(173,217,211,.45); }
.sim__screen { position: relative; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; background: #000; }
.sim__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s var(--ease); }
.sim__screen img.is-on { opacity: 1; }
.sim__mask { position: absolute; z-index: 2; padding-left: .35em; display: flex; align-items: center; font-size: clamp(10px, 3.2vw, 14px); font-weight: 900; color: var(--blanc); white-space: nowrap; }
.sim__mask[hidden] { display: none; }
.hot { position: absolute; z-index: 3; border: 0; background: transparent; border-radius: 999px; cursor: pointer; }
.hot:hover { background: rgba(173,217,211,.12); }
.hot--pulse::after { content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 2px solid var(--accent); animation: hint 2.2s var(--ease) infinite; pointer-events: none; }
@keyframes hint { 0%, 100% { opacity: 0; transform: scale(.96); } 40% { opacity: .9; transform: scale(1); } }
.sim__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); z-index: 4; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; border-radius: 4px; }
.sim__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; margin-top: 18px; padding: 10px 10px 10px 18px; border: 1px solid var(--rule); border-radius: 14px; }
.sim__hint { font-size: var(--fs-sm); color: var(--text-muted); }
.sim__bar .btn { flex: none; }
.sim__bar .btn[hidden] { display: none; }

/* Les 3 étapes : un parcours vertical. La ligne se remplit au fil de la démo,
   chaque point de passage s'allume quand on l'atteint. */
.steps { --progress: 0; list-style: none; margin: 0; padding: 0 0 0 76px; position: relative; display: grid; gap: clamp(40px, 6vw, 72px); }
.steps::before, .steps::after { content: ""; position: absolute; left: 25px; top: 26px; width: 2px; border-radius: 2px; }
.steps::before { bottom: 26px; background: var(--rule); }
.steps::after { height: calc((100% - 52px) * var(--progress)); background: var(--accent); box-shadow: 0 0 14px rgba(173,217,211,.6); transition: height .6s var(--ease); }
.step { position: relative; z-index: 1; }
.step h3, .step p { opacity: .45; transition: opacity .35s var(--ease); }
.step__num { position: absolute; left: -76px; top: 0; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-md); font-weight: 900; color: var(--text-muted); background: var(--noir); border: 2px solid var(--rule-strong); transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.step h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); padding-top: 8px; }
.step p { color: var(--text-muted); margin-top: 10px; max-width: 40ch; font-size: var(--fs-lg); }
.step.is-done h3, .step.is-done p { opacity: .75; }
.step.is-done .step__num { color: var(--accent); border-color: var(--accent); }
.step.is-active h3, .step.is-active p { opacity: 1; }
.step.is-active .step__num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 8px var(--glow), 0 0 30px rgba(173,217,211,.45); }
.step.is-active h3 { color: var(--accent); }

/* ---------- Avantages : grille bento ----------
   Une grande case (le message principal), des cases larges et deux petites.
   Chaque case est portée par un mot-clé géant, pas par une icône. */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 14px; margin-top: clamp(40px, 6vw, 72px); }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 230px; padding: clamp(22px, 2.6vw, 36px); border-radius: 6px; background: #0c0d13; border: 1px solid var(--rule); transition: border-color .25s var(--ease), transform .25s var(--ease); }
.tile:hover { border-color: var(--rule-strong); transform: translateY(-3px); }
.tile--hero { grid-column: span 2; grid-row: span 2; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tile--hero:hover { border-color: var(--accent); }
.tile--wide { grid-column: span 2; }
.tile__big { font-weight: 900; line-height: .9; letter-spacing: -0.04em; color: var(--accent); font-size: clamp(3rem, 6vw, 5.5rem); }
.tile--hero .tile__big { color: var(--on-accent); font-size: clamp(4rem, 9vw, 8.5rem); }
.tile__big--md { font-size: clamp(2.4rem, 4.4vw, 4rem); }
.tile__big--sm { font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
.tile h3 { font-size: var(--fs-lg); letter-spacing: -0.01em; }
.tile p { color: var(--text-muted); margin-top: 8px; max-width: 46ch; }
.tile--hero p { color: rgba(0,0,0,.72); font-size: var(--fs-lg); }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--hero { grid-row: span 1; min-height: 300px; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile--hero, .tile--wide { grid-column: span 1; }
  .tile { min-height: 0; }
}

/* ---------- Impact ---------- */
.impact { position: relative; }
.impact__num { font-size: clamp(5.5rem, 1rem + 19vw, 19rem); font-weight: 900; line-height: .8; letter-spacing: -0.06em; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.impact__num .thin { color: var(--blanc); letter-spacing: -0.04em; }
.impact__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(20px, 5vw, 80px); align-items: center; margin-top: 28px; }
.impact__label { font-size: var(--fs-2xl); max-width: 16ch; }
.impact__goal { margin-top: 28px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding-top: 20px; border-top: 1px solid var(--rule); font-size: var(--fs-lg); max-width: 640px; }
.impact__goal strong { font-size: var(--fs-2xl); color: var(--accent); font-weight: 900; line-height: 1; }
.impact img { width: 100%; height: auto; filter: drop-shadow(0 40px 70px rgba(173,217,211,.16)); }
@media (max-width: 860px) { .impact__row { grid-template-columns: minmax(0, 1fr) 38%; } .impact__label { font-size: clamp(1.5rem, 1rem + 3vw, 2.2rem); } }

/* ---------- Carte ---------- */
.map-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .map-wrap { grid-template-columns: 1fr; } }
.cities { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--rule); }
.cities li { border-bottom: 1px solid var(--rule); }
.city-btn { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; min-height: 72px; padding: 0; background: transparent; border: 0; text-align: left; cursor: pointer; }
.city-btn strong { font-size: var(--fs-xl); font-weight: 900; transition: color .2s; }
.city-btn span { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.city-btn:hover strong, .city-btn[aria-expanded="true"] strong { color: var(--accent); }
.map { position: relative; width: 100%; max-width: 640px; margin: 0 auto; }
.map__canvas { position: relative; }
.map__canvas::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 10% 10%; opacity: .5; -webkit-mask-image: radial-gradient(circle at 55% 45%, #000 30%, transparent 75%); mask-image: radial-gradient(circle at 55% 45%, #000 30%, transparent 75%); }
.map svg.france { position: relative; width: 100%; height: auto; }
.france path { fill: rgba(23, 25, 38, .85); stroke: var(--accent); stroke-width: 1.3; stroke-linejoin: round; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.pin::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(173,217,211,.22), 0 0 26px 6px rgba(173,217,211,.5); }
.pin::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }
.pin__label { position: absolute; left: calc(50% + 14px); top: 50%; transform: translateY(-50%); font-size: var(--fs-xs); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.pin[aria-expanded="true"]::before { background: var(--blanc); }
.popup { position: absolute; z-index: 5; width: min(310px, 86vw); background: var(--noir); border: 1.5px solid var(--accent); border-radius: 14px; padding: 22px; box-shadow: 0 30px 60px -20px #000; transform: translate(-50%, 20px); }
.popup[hidden] { display: none; }
.popup h3 { font-size: var(--fs-xl); padding-right: 40px; }
.popup .soon { display: inline-block; margin-top: 8px; font-weight: 900; color: var(--on-accent); background: var(--accent); padding: 4px 12px; border-radius: 4px; font-size: var(--fs-sm); }
.popup .coords { display: block; margin-top: 10px; }
.popup p { color: var(--text-muted); font-size: var(--fs-sm); margin-top: 14px; }
.popup__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--blanc); cursor: pointer; display: grid; place-items: center; }
.popup__close svg { width: 18px; height: 18px; }
.popup form { margin-top: 14px; display: grid; gap: 14px; }
@media (max-width: 600px) { .popup { position: relative; left: auto !important; top: auto !important; transform: none; width: 100%; margin-top: 20px; } }

.strava { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: clamp(48px, 7vw, 96px); padding: 26px 0; border-block: 1px solid var(--rule); }
.strava h3 { font-size: var(--fs-xl); }
.strava h3 .thin { color: var(--text-muted); }

/* ---------- Courses / organisateurs ---------- */
.orga { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.orga figure { margin: 0; position: relative; border-radius: 6px; overflow: hidden; }
.orga figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.orga h2 { font-size: var(--fs-2xl); }
.orga .lead { font-size: var(--fs-lg); color: var(--text-muted); margin-top: 20px; max-width: 40ch; }
.checks { list-style: none; padding: 0; margin: 28px 0 32px; border-top: 1px solid var(--rule); }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.checks svg { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
@media (max-width: 900px) { .orga { grid-template-columns: 1fr; } }

/* ---------- Devenir membre + formulaires ---------- */
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.join h2 { font-size: var(--fs-hero); line-height: .86; letter-spacing: -0.045em; }
.join .lead { font-size: var(--fs-lg); color: var(--text-muted); margin-top: 24px; max-width: 36ch; }
@media (max-width: 900px) { .join { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field .label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.field .hint { text-transform: none; letter-spacing: 0; font-weight: 400; }
.input, .select, .textarea { width: 100%; min-height: 52px; padding: 10px 0; background: transparent; border: 0; border-bottom: 2px solid rgba(199,198,198,.4); border-radius: 0; color: var(--text); font-size: var(--fs-lg); transition: border-color .2s; }
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 32px; }
.select option { background: var(--noir); color: var(--text); }
.input:hover, .select:hover, .textarea:hover { border-bottom-color: var(--gris); }
.input:focus, .select:focus, .textarea:focus { border-bottom-color: var(--accent); outline: none; box-shadow: 0 2px 0 0 var(--accent); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; }
[aria-invalid="true"] { border-bottom-color: var(--error) !important; }
.error { font-size: var(--fs-xs); color: var(--error); font-weight: 500; }
.error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); color: var(--text-muted); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.form-summary { grid-column: 1 / -1; padding: 16px 20px; border-left: 3px solid var(--error); background: rgba(255,155,143,.07); outline: none; }
.form-summary h3 { font-size: var(--fs-md); color: var(--error); letter-spacing: 0; }
.form-summary ul { margin: 8px 0 0; padding-left: 18px; }
.form-summary a { color: var(--text); }
.form-success { padding: 28px; border-left: 3px solid var(--accent); background: var(--glow); font-weight: 700; font-size: var(--fs-lg); color: var(--accent); outline: none; }
.form-fail { color: var(--error); font-size: var(--fs-sm); grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid h2 { font-size: var(--fs-2xl); position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid h2 { position: static; } }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 56px 24px 0; font-weight: 900; font-size: var(--fs-lg); position: relative; min-height: 44px; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); background: linear-gradient(var(--accent), var(--accent)) center / 18px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 18px no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover, .faq details[open] summary { color: var(--accent); }
.faq .answer { padding: 0 0 26px; color: var(--text-muted); max-width: 60ch; }

/* ---------- Pied de page ---------- */
.footer { padding: clamp(56px, 8vw, 110px) 0 28px; border-top: 1px solid var(--rule); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer h2 { margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--text); font-weight: 500; transition: color .2s; }
.footer a:hover { color: var(--accent); }
.footer__mark { margin-top: clamp(48px, 8vw, 96px); width: 100%; height: auto; opacity: .95; }
.footer__bottom { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--fs-xs); color: var(--text-muted); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Pages secondaires ---------- */
.page { padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(64px, 9vw, 120px); }
.page h1 { font-size: var(--fs-hero); line-height: .86; letter-spacing: -0.045em; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 7vw, 110px); align-items: start; margin-top: clamp(40px, 6vw, 80px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.contact-list li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.contact-list .tag { display: block; }
.contact-list a { display: inline-block; margin-top: 6px; font-weight: 900; font-size: var(--fs-xl); text-decoration: none; color: var(--accent); word-break: break-word; }
.contact-list a:hover { text-decoration: underline; }
.legal { max-width: 760px; }
.legal h1 { font-size: var(--fs-2xl); }
.legal h2 { font-size: var(--fs-xl); color: var(--accent); margin: 48px 0 12px; letter-spacing: -0.01em; }
.legal p { color: var(--text-muted); margin-top: 8px; }
.legal strong { color: var(--text); }

/* ---------- Apparitions ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .pin::after, .hot--pulse::after { display: none; }
  .ticker__track { animation: none; }
}
