/* ================================================================
   LE JAGUAR, page de vente Nordkapp
   Direction : nuit glaciaire, la même que le tunnel /nordkapp/.
   Bleu nuit, néon cyan, typographies Space Grotesk + Inter.
   ================================================================ */

:root {
  --bg: #050a17;
  --bg-deep: #03060f;
  --bg-raised: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #ede8df;
  --text-soft: rgba(237, 232, 223, 0.72);
  --muted: rgba(237, 232, 223, 0.5);
  --accent: #7fd8ff;
  --accent-deep: #408cff;
  --accent-ink: #050a17;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --shell: min(1200px, calc(100% - 40px));
  --header-height: 64px;
  --radius: 18px;
}

@media (min-width: 900px) {
  :root { --shell: min(1200px, calc(100% - 80px)); }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px;
  padding: 10px 14px; background: var(--accent); color: var(--accent-ink);
  border-radius: 8px; z-index: 100; text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Ciel de fond ---------- */
.sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background-image:
    radial-gradient(1px 1px at 22px 34px, rgba(255,255,255,0.30) 50%, transparent 51%),
    radial-gradient(1px 1px at 158px 96px, rgba(174,233,255,0.20) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 264px 188px, rgba(255,255,255,0.15) 50%, transparent 51%),
    radial-gradient(1px 1px at 92px 240px, rgba(174,233,255,0.18) 50%, transparent 51%),
    radial-gradient(1px 1px at 330px 60px, rgba(255,255,255,0.11) 50%, transparent 51%),
    url("constellations.svg"),
    radial-gradient(90rem 52rem at 72% -4%, rgba(64, 140, 255, 0.12), transparent 62%),
    linear-gradient(180deg, #081128 0%, #050a17 38%, #03060f 100%);
  background-size:
    380px 300px, 380px 300px, 380px 300px, 380px 300px, 380px 300px,
    1400px 1000px,
    100% 100%, 100% 100%;
}
.aurora {
  position: absolute; left: -20%; width: 140%; border-radius: 50%;
  filter: blur(60px); mix-blend-mode: screen; opacity: 0; will-change: transform, opacity;
  animation: aurora 18s ease-in-out infinite;
}
.aurora-1 {
  top: -6%; height: 300px;
  background: linear-gradient(90deg, transparent 0%, rgba(111,216,255,0.16) 30%, rgba(64,140,255,0.12) 60%, transparent 100%);
}
.aurora-2 {
  top: 8%; height: 220px; animation-duration: 24s; animation-delay: -9s;
  background: linear-gradient(90deg, transparent 10%, rgba(96,165,250,0.10) 40%, rgba(111,216,255,0.14) 70%, transparent 100%);
}
@keyframes aurora {
  0%   { opacity: 0;   transform: translateX(-8%) scaleY(1); }
  20%  { opacity: 1;   transform: translateX(0%)  scaleY(1.15); }
  50%  { opacity: 0.7; transform: translateX(6%)  scaleY(0.9); }
  80%  { opacity: 1;   transform: translateX(2%)  scaleY(1.2); }
  100% { opacity: 0;   transform: translateX(-6%) scaleY(1); }
}

/* Quelques étoiles qui scintillent, par-dessus le fond fixe. */
.sky::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 60px 120px, rgba(255,255,255,0.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 300px 40px, rgba(174,233,255,0.9) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 210px 260px, rgba(255,255,255,0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 420px 200px, rgba(255,255,255,0.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 520px 330px, rgba(174,233,255,0.7) 50%, transparent 51%);
  background-size: 640px 420px;
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { 0% { opacity: 0.15; } 50% { opacity: 0.7; } 100% { opacity: 0.25; } }

main, .site-footer { position: relative; z-index: 1; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(20px, 4vw, 40px);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
  animation: header-in 0.8s ease both;
}
@keyframes header-in { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
.site-header.is-scrolled {
  background: rgba(5, 10, 23, 0.82);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.brand {
  font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.28em; text-transform: uppercase; text-decoration: none;
}
.header-nav { display: flex; align-items: center; gap: 22px; }
.header-link {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--text-soft); font-weight: 400;
}
.header-link:hover { color: var(--text); }
.header-buy {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(127, 216, 255, 0.35);
  background: rgba(127, 216, 255, 0.06);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; font-weight: 500;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.header-buy .hb-price { color: var(--accent); font-family: var(--mono); letter-spacing: 0; }
.header-buy .hb-short { display: none; }
.header-buy:hover { background: rgba(127, 216, 255, 0.14); border-color: var(--accent); }
@media (max-width: 640px) {
  .header-link { display: none; }
  .header-buy { min-height: 40px; padding: 0 14px; font-size: 11px; gap: 8px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.22em; }
  .map-replay { min-height: 44px; padding: 10px 0; }
  .header-buy .hb-long { display: none; }
  .header-buy .hb-short { display: inline; }
}

/* ---------- Boutons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 26px; border-radius: 14px;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.button-primary {
  background: linear-gradient(180deg, #c4efff 0%, #8fd9f8 100%);
  color: var(--accent-ink);
  box-shadow: 0 0 28px rgba(111, 216, 255, 0.22), 0 10px 30px rgba(0, 0, 0, 0.35);
}
.button-primary strong { font-family: var(--mono); font-weight: 400; letter-spacing: 0; font-size: 15px; }
.button-primary { animation: breathe 4s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 28px rgba(111, 216, 255, 0.22), 0 10px 30px rgba(0, 0, 0, 0.35); }
  50%      { box-shadow: 0 0 46px rgba(111, 216, 255, 0.42), 0 10px 30px rgba(0, 0, 0, 0.35); }
}
.button-primary:hover { background: #d9f5ff; box-shadow: 0 0 48px rgba(111, 216, 255, 0.42), 0 12px 30px rgba(0,0,0,0.4); transform: translateY(-1px); }
.button-primary:active { transform: translateY(0); }

/* ---------- Apparition ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
/* Le premier écran s'anime seul au chargement, même sans JavaScript. */
.rise { opacity: 0; animation: rise 0.9s ease forwards; }
.rise:nth-child(2) { animation-delay: 0.1s; }
.rise:nth-child(3) { animation-delay: 0.2s; }
.rise:nth-child(4) { animation-delay: 0.3s; }
.rise:nth-child(5) { animation-delay: 0.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Écran 1 ---------- */
.eyebrow {
  margin: 0 0 18px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent);
}
.hero { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; }
/* La photo : pleine largeur, le motard se fond dans le bleu nuit, le bord gauche s'assombrit sous le texte. */
.hero-photo { position: absolute; inset: 0; z-index: 0; }
.hero-photo img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 48%, rgba(0, 0, 0, 0.75) 66%, rgba(0, 0, 0, 0.3) 84%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 48%, rgba(0, 0, 0, 0.75) 66%, rgba(0, 0, 0, 0.3) 84%, transparent 100%);
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5, 10, 23, 0.5) 0%, rgba(5, 10, 23, 0) 18%);
}
/* Invitation à descendre, en bas de la photo : libellé puis chevron. */
.hero-scroll {
  position: absolute; left: 50%; bottom: 33vh; bottom: 33svh; z-index: 1; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-decoration: none; color: rgba(174, 233, 255, 0.9);
}
/* Même police que NORDKAPP, plus petit et plus doux. */
.hero-scroll-label {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  color: rgba(237, 232, 223, 0.85); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 0, 0, 0.5);
}
.hero-scroll-icon {
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(174, 233, 255, 0.35); background: rgba(5, 10, 23, 0.4);
  animation: hero-cue 2.4s ease-in-out infinite;
}
.hero-scroll-icon svg { width: 28px; height: 28px; }
.hero-scroll:hover { color: #ffffff; }
.hero-scroll:hover .hero-scroll-icon { border-color: rgba(174, 233, 255, 0.7); }
@keyframes hero-cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- Écran 2 : le carnet et la carte ---------- */
.intro { padding: 0 0 8px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 0 20px; }
.hero-copy { max-width: 520px; container-type: inline-size; }
@media (min-width: 1024px) {
  /* Le texte part de la marge gauche, la carte va jusqu'au bord droit de l'écran. */
  .hero-grid {
    grid-template-columns: minmax(380px, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(32px, 4vw, 80px); align-items: center;
    padding: 0 0 0 max(40px, calc((100vw - 1500px) / 2 + 40px));
  }
  .hero-copy { max-width: 600px; }
  .eyebrow { font-size: 12px; }
  .hero-copy h1 { font-size: min(7.6rem, 18cqw); }
  .hero-lead { font-size: clamp(1.1rem, 1.5vw, 1.45rem); max-width: 520px; }
  .hero-stats { padding: 22px 0; margin-bottom: 36px; gap: clamp(22px, 3vw, 44px); }
  .hero-stats strong { font-size: clamp(1.6rem, 2.6vw, 2.5rem); }
  .hero-stats span { font-size: 11px; }
  .hero-actions .button { min-height: 64px; font-size: 17px; padding: 0 36px; min-width: 330px; }
  .hero-note { font-size: 12px; }
  .hero-grid .map-stage { width: min(100%, calc((100vh - 60px) * var(--map-w) / var(--map-h))); margin: 0 0 0 auto; }
}
.hero-copy h1 {
  margin: 0 0 22px;
  font-family: var(--display); font-weight: 700;
  /* Le mot fait 5,27 fois sa taille de police : 18 % de la colonne le fait tenir sur une ligne. */
  font-size: clamp(3rem, 6.4vw, 5.2rem);
  font-size: min(6.2rem, 18cqw);
  white-space: nowrap;
  line-height: 0.9; letter-spacing: 0.02em; text-transform: uppercase;
  filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.5));
}
.hero-copy h1 .word { display: inline-block; perspective: 600px; }
.hero-copy h1 .letter {
  display: inline-block;
  background: linear-gradient(175deg, #ffffff 0%, #ede8df 42%, #b9c6d6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* Les lettres montent quand on arrive sur l'écran (classe is-in posée par landing.js). */
html.has-js .hero-copy:not(.is-in) h1 .letter { opacity: 0; }
.hero-copy.is-in h1 .letter {
  opacity: 0; transform: translateY(45%) rotateX(50deg);
  animation: letter-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: calc(0.1s + var(--i) * 60ms);
}
@keyframes letter-rise { to { opacity: 1; transform: none; } }
.hero-lead {
  margin: 0 0 30px; font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55; color: var(--text-soft); max-width: 440px;
}
.hero-stats {
  list-style: none; margin: 0 0 32px; padding: 18px 0;
  display: flex; gap: clamp(18px, 3vw, 36px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  letter-spacing: 0.02em; line-height: 1;
}
.hero-stats span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted);
}
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero-actions .button { min-width: 280px; }
.hero-note {
  margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- La carte : posée directement sur le ciel, sans cadre ---------- */
.hero-map { position: relative; perspective: 1400px; }
.hero-map::before {
  content: ""; position: absolute; inset: -8% -6%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(64, 140, 255, 0.16), rgba(64, 140, 255, 0.05) 55%, transparent 100%);
  filter: blur(24px);
}
.map-card { position: relative; }
.map-frame {
  transform-style: preserve-3d;
  transition: transform 0.35s ease-out;
  will-change: transform;
}
.map-stage {
  position: relative; margin-inline: auto;
  width: min(100%, calc((100vh - 150px) * var(--map-w) / var(--map-h)));
  aspect-ratio: var(--map-w) / var(--map-h);
}
.map { display: block; width: 100%; height: 100%; overflow: visible; }

/* La carte se matérialise : fond, puis pays, puis épingles en cascade, puis le trajet. */
html.has-js .map-card:not(.is-ready) .map-land, html.has-js .map-card:not(.is-ready) .map-grid, html.has-js .map-card:not(.is-ready) .map-countries { opacity: 0; }
.map-land, .map-grid, .map-countries { transition: opacity 1.4s ease; }
html.has-js .city:not(.is-in), html.has-js .ref:not(.is-in) { opacity: 0; }
.city, .ref { transition: opacity 0.5s ease; }

/* Nuages : quelques masses douces qui dérivent d'ouest en est. */
.clouds { position: absolute; inset: 0; overflow: hidden; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 58% 54% at 50% 50%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 58% 54% at 50% 50%, #000 45%, transparent 100%); }
.clouds i {
  position: absolute; left: 0; top: var(--top); width: var(--w); height: var(--h); opacity: var(--o);
  background:
    radial-gradient(ellipse 34% 55% at 38% 58%, rgba(214, 236, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 28% 48% at 58% 42%, rgba(214, 236, 255, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 62%, rgba(214, 236, 255, 0.12), transparent 72%),
    radial-gradient(ellipse 22% 42% at 20% 56%, rgba(214, 236, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 22% 38% at 80% 60%, rgba(214, 236, 255, 0.10), transparent 70%);
  transform: translate3d(-110%, 0, 0);
  animation: cloud-drift var(--t) linear infinite; animation-delay: var(--d);
  will-change: transform;
}
@keyframes cloud-drift {
  0%   { transform: translate3d(-110%, 0, 0); }
  50%  { transform: translate3d(180%, -4%, 0); }
  100% { transform: translate3d(470%, 0, 0); }
}

/* Neige sur la Laponie : flocons générés par landing.js. */
.snow { position: absolute; top: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 45%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 45%, #000 30%, transparent 100%); }
.snow i {
  position: absolute; top: -6px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
  background: rgba(240, 248, 255, 0.9); box-shadow: 0 0 4px rgba(174, 233, 255, 0.8);
  opacity: 0; animation: snowfall var(--t) linear infinite; animation-delay: var(--d);
}
@keyframes snowfall {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  12%  { opacity: 0.9; }
  50%  { transform: translate3d(var(--sway), calc(var(--fall) * 0.5), 0); }
  88%  { opacity: 0.7; }
  100% { transform: translate3d(calc(var(--sway) * -0.6), var(--fall), 0); opacity: 0; }
}

/* Tableau de bord du trajet : km, jour et pays au fil de la moto. */
.trip {
  position: absolute; right: 6%; top: 55%;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end; text-align: right;
  pointer-events: none;
  opacity: 0; transform: translateY(8px); transition: opacity 0.8s ease, transform 0.8s ease;
}
.map-card.is-ready .trip { opacity: 1; transform: none; }
.trip-title {
  margin: 0 0 2px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--accent); padding-bottom: 8px; border-bottom: 1px solid rgba(127, 216, 255, 0.28); min-width: 120px;
}
.trip-row { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.trip-row strong {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.3vw, 1.9rem); letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums; color: #ffffff; text-shadow: 0 0 18px rgba(127, 216, 255, 0.35);
  min-width: 4.2ch;
}
.trip-row span { margin-top: 4px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

/* Halo de la moto qui pulse. */
.rider-halo { transform-box: fill-box; transform-origin: center; animation: halo 1.8s ease-out infinite; }
@keyframes halo { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(2.4); opacity: 0; } }
.map-grid { fill: none; stroke: rgba(174, 233, 255, 0.09); stroke-width: 0.8; }
.map-land { fill: rgba(174, 233, 255, 0.07); stroke: rgba(174, 233, 255, 0.28); stroke-width: 0.7; stroke-linejoin: round; }
.ref-dot { fill: rgba(237, 232, 223, 0.45); r: 2.4px; }
.ref-label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; fill: rgba(237, 232, 223, 0.42); }
.map-countries text {
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.32em;
  fill: rgba(174, 233, 255, 0.34); text-anchor: middle;
}
.trace-shadow { fill: none; stroke: #000; stroke-opacity: 0.55; stroke-width: 5; }
.trace-base { fill: none; stroke: rgba(174, 233, 255, 0.22); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.trace-glow {
  fill: none; stroke: #7fd8ff; stroke-opacity: 0.28; stroke-width: 7;
  stroke-linejoin: round; stroke-linecap: round;
}
.trace-line {
  fill: none; stroke: url(#trace-grad); stroke-width: 2.3;
  stroke-linejoin: round; stroke-linecap: round;
}

.city-base { fill: rgba(174, 233, 255, 0.35); r: 3px; }
.city-stem { stroke: rgba(174, 233, 255, 0.35); stroke-width: 1; }
.city-dot { fill: #ede8df; fill-opacity: 0.55; r: 4px; transition: fill 0.4s ease, fill-opacity 0.4s ease; }
.city-ring { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0; }
.city-label {
  font-family: var(--mono); font-size: 16.5px; letter-spacing: 0.06em;
  fill: rgba(237, 232, 223, 0.55); transition: fill 0.4s ease;
  paint-order: stroke; stroke: rgba(5, 10, 23, 0.9); stroke-width: 4px; stroke-linejoin: round;
}
.city.is-key .city-label { font-size: 18px; font-weight: 500; }
.city.is-lit .city-dot { fill: var(--accent); fill-opacity: 1; filter: drop-shadow(0 0 6px rgba(127, 216, 255, 0.9)); }
.city.is-lit .city-label { fill: #ffffff; }
.city.is-lit.is-key .city-ring { animation: ring 1.8s ease-out 1; }
@keyframes ring {
  0%   { opacity: 0.9; transform: scale(0.4); }
  100% { opacity: 0;   transform: scale(2.4); }
}
.city-ring { transform-box: fill-box; transform-origin: center; }

.rider-halo {
  fill: var(--accent); fill-opacity: 0.35;
  filter: drop-shadow(0 0 10px rgba(127, 216, 255, 0.9));
}
.rider-glyph { color: #ffffff; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }

.map-caption {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 4px 8px 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.map-caption p { margin: 0; display: flex; align-items: center; gap: 10px; }
.map-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.map-replay {
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  letter-spacing: inherit; text-transform: inherit; font-size: inherit; font-family: inherit;
  color: var(--text-soft); border-bottom: 1px solid transparent;
  opacity: 0; transition: opacity 0.4s ease, color 0.25s ease;
}
.map-card.is-done .map-replay { opacity: 1; }
.map-replay:hover { color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 1023px) {
  .intro { padding-top: 12px; }
  .map-stage { width: 100%; }
  .hero-copy { max-width: 600px; }
}
@media (max-width: 640px) {
  .hero-photo img { object-position: 50% 18%; }
  .hero-photo img {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0, 0, 0, 0.7) 72%, rgba(0, 0, 0, 0.25) 88%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0, 0, 0, 0.7) 72%, rgba(0, 0, 0, 0.25) 88%, transparent 100%);
  }
  .hero-scroll { bottom: 31vh; bottom: 31svh; gap: 12px; }
  .hero-scroll-label { font-size: 1.15rem; }
  .hero-scroll-icon { width: 52px; height: 52px; }
  .hero-map { margin-inline: -20px; }
  .hero-copy h1 { font-size: clamp(3rem, 15vw, 6rem); font-size: min(6rem, 18cqw); }
  .hero-stats { gap: 18px; flex-wrap: wrap; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; min-width: 0; }
  .hero-note { text-align: center; font-size: 10px; }
  .city-label { font-size: 30px; letter-spacing: 0.03em; }
  .city.is-key .city-label { font-size: 33px; }
  .city-dot { r: 6px; }
  .city-base { r: 4.5px; }
  .city-stem { stroke-width: 1.6; }
  .city.is-minor { display: none; }
  .ref { display: none; }
  .ref.is-ref-major { display: block; }
  .ref-dot { r: 3.5px; }
  .ref-label { font-size: 22px; }
  .map-countries text { font-size: 21px; letter-spacing: 0.2em; }
  .map-grid { stroke-width: 1.2; }
  .map-land { stroke-width: 1.1; }
  .trace-line { stroke-width: 4; }
  .trace-glow { stroke-width: 11; }
  .trace-base { stroke-width: 2.2; }
  .rider-glyph { transform: translate(0, -3px) scale(1.35) translate(-32px, -38px); }
  .rider-halo { r: 10px; }
  .map-stage { width: 100%; }
  .trip { top: 5%; left: 20px; right: auto; gap: 8px; align-items: flex-start; text-align: left; }
  .trip-title { min-width: 0; padding-bottom: 6px; font-size: 9px; }
  .trip-row { align-items: flex-start; }
  .trip-row strong { font-size: 1.35rem; min-width: 0; }
  .trip-row span { font-size: 8.5px; margin-top: 3px; }
  .map-caption { font-size: 9.5px; letter-spacing: 0.1em; flex-direction: column; align-items: flex-start; gap: 8px; padding-inline: 20px; }
}

/* Très petits écrans : le bouton reste sur une ligne. */
@media (max-width: 360px) {
  .button { font-size: 13px; padding: 0 18px; gap: 10px; white-space: nowrap; }
  .button-primary strong { font-size: 13px; }
  .eyebrow { letter-spacing: 0.16em; }
  .hero-stats { gap: 14px; }
  .hero-note { letter-spacing: 0.08em; }
}

/* ---------- Écran 2 ---------- */
.offer { padding: clamp(72px, 10vw, 130px) 0 clamp(80px, 10vw, 140px); }
.offer-grid {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 96px); align-items: center;
}
.offer-cover { position: relative; max-width: 380px; margin-inline: auto; perspective: 1200px; }
.offer-cover img {
  border-radius: 6px;
  transform: rotateY(12deg) rotateX(2deg);
  animation: cover-float 7s ease-in-out infinite;
  box-shadow: -30px 40px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(64, 140, 255, 0.12);
  outline: 1px solid rgba(255, 255, 255, 0.08);
}
.offer h2 {
  margin: 0 0 30px;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.08; letter-spacing: -0.01em;
}
.offer-list { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--line); }
.offer-list.reveal li { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: calc(var(--i, 0) * 90ms); }
.offer-list.reveal.is-visible li { opacity: 1; transform: none; }
.offer-list li {
  display: flex; gap: 20px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.35; color: var(--text);
}
.offer-list .txt { flex: 1 1 auto; }
/* Icônes animées : traits fins cyan, animation lente en boucle une fois la liste révélée */
.ico { flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: rgba(127, 216, 255, 0.05); }
.ico svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ico .in { stroke-opacity: 0.45; } .ico .gr { stroke-opacity: 0.22; stroke-width: 1; } .ico .sh { fill: rgba(127,216,255,0.18); stroke: none; }
.ico .pg { fill: rgba(127,216,255,0.12); transform-origin: 24px 24px; }
.ico text { fill: var(--accent); stroke: none; }
.ico .bag { fill: rgba(127,216,255,0.16); }
.ico .rt { stroke-dasharray: 60; stroke-dashoffset: 60; } .ico .dot { fill: var(--accent); stroke: none; opacity: 0; }
.ico .ck { stroke-dasharray: 12; stroke-dashoffset: 12; }
.offer-list.is-visible .ico-recit .pg { animation: ico-page 4s ease-in-out infinite; }
.offer-list.is-visible .ico-gpx .rt { animation: ico-route 4s ease-in-out infinite; }
.offer-list.is-visible .ico-gpx .dot { animation: ico-dot 4s ease-in-out infinite; }
.offer-list.is-visible .ico-heb .pin { animation: ico-pin 3.2s cubic-bezier(.3,.9,.4,1.2) infinite; transform-origin: 24px 36px; }
.offer-list.is-visible .ico-heb .sh { animation: ico-shadow 3.2s ease-in-out infinite; transform-origin: 24px 40px; }
.offer-list.is-visible .ico-bud .coin { animation: ico-coin 4s ease-in-out infinite; transform-origin: 24px 24px; }
.offer-list.is-visible .ico-moto .bag { animation: ico-bag 4s ease-in-out infinite; }
.offer-list.is-visible .ico-moto .wh { animation: ico-wheel 4s linear infinite; transform-box: fill-box; transform-origin: center; stroke-dasharray: 5 4; }
.offer-list.is-visible .ico-chk .ck1 { animation: ico-check 4.5s ease-out infinite; }
.offer-list.is-visible .ico-chk .ck2 { animation: ico-check 4.5s ease-out 0.5s infinite; }
.offer-list.is-visible .ico-chk .ck3 { animation: ico-check 4.5s ease-out 1s infinite; }
@keyframes ico-page { 0%, 20% { transform: scaleX(1); } 45%, 55% { transform: scaleX(-1); } 80%, 100% { transform: scaleX(1); } }
@keyframes ico-route { 0%, 8% { stroke-dashoffset: 60; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 60; } }
@keyframes ico-dot { 0%, 50% { opacity: 0; } 58%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ico-pin { 0%, 10% { transform: translateY(-14px); opacity: 0; } 35% { transform: translateY(0); opacity: 1; } 45% { transform: translateY(-3px); } 55%, 80% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes ico-shadow { 0%, 10% { transform: scale(0.4); opacity: 0.2; } 35%, 80% { transform: scale(1); opacity: 1; } 100% { opacity: 0.2; } }
@keyframes ico-coin { 0%, 25% { transform: rotateY(0); } 55%, 70% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@keyframes ico-bag { 0%, 15% { transform: translate(-10px, 0); opacity: 0; } 40%, 85% { transform: translate(0, 0); opacity: 1; } 100% { transform: translate(0, 0); opacity: 0; } }
@keyframes ico-wheel { to { transform: rotate(360deg); } }
@keyframes ico-check { 0%, 15% { stroke-dashoffset: 12; } 35%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 12; } }
.offer-aside { margin: 0 0 34px; color: var(--muted); font-size: 0.95rem; max-width: 520px; }
.offer-buy {
  display: grid; grid-template-columns: auto auto; gap: 18px 28px; align-items: center;
  padding: 24px 26px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg-raised);
}
.offer-price { display: flex; flex-direction: column; gap: 2px; }
.offer-price strong { font-family: var(--display); font-weight: 700; font-size: 2.4rem; line-height: 1; letter-spacing: 0.01em; }
.offer-price span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.offer-buy .button { justify-self: end; }
.offer-note { grid-column: 1 / -1; margin: 0; font-size: 0.85rem; color: var(--muted); }
@keyframes cover-float {
  0%, 100% { transform: rotateY(12deg) rotateX(2deg) translateY(0); }
  50%      { transform: rotateY(12deg) rotateX(2deg) translateY(-10px); }
}
@media (max-width: 900px) {
  .offer-grid { grid-template-columns: minmax(0, 1fr); }
  .offer-cover { max-width: 260px; }
  .offer-cover img { transform: none; box-shadow: 0 30px 60px rgba(0,0,0,0.55); animation: cover-float-flat 7s ease-in-out infinite; }
  @keyframes cover-float-flat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}
@media (max-width: 640px) {
  .offer-buy { grid-template-columns: 1fr; padding: 20px; }
  .offer-buy .button { justify-self: stretch; }
}

/* ---------- Écran 3, porte secondaire : le coup de main ---------- */
.essence { padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 9vw, 120px); border-top: 1px solid var(--line); }
.essence-shell { width: var(--shell); max-width: 720px; margin-inline: auto; }
.essence-titre {
  margin: 0 0 18px;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.1rem, 3.8vw, 3.2rem); line-height: 1.06; letter-spacing: -0.015em;
}
.essence-intro { margin: 0 0 30px; max-width: 54ch; font-size: 1.02rem; color: var(--text-soft); }

/* ---------- Le don : un bouton, le montant se choisit sur PayPal ---------- */
.don { margin: 0 0 48px; }
.don-cta { width: 100%; max-width: 380px; }
.don-note { margin: 14px 0 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.reservoir-titre {
  margin: 0 0 14px; font-family: var(--display); font-weight: 600;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--text);
}
.podium { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid var(--line); }
.podium li {
  display: flex; align-items: baseline; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line); color: var(--text-soft);
}
.podium .rang { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--accent); width: 1.6em; flex: none; }
.podium .qui { color: var(--text); font-weight: 600; letter-spacing: -0.01em; }
.podium .mot { flex: 1; font-style: italic; color: var(--text-soft); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .combien { margin-left: auto; font-family: var(--mono); color: var(--accent); white-space: nowrap; }
.podium .rang-1 .qui { font-size: 1.75rem; } .podium .rang-1 .combien { font-size: 1rem; }
.podium .rang-2 .qui { font-size: 1.4rem; }  .podium .rang-2 .combien { font-size: 0.92rem; }
.podium .rang-3 .qui { font-size: 1.15rem; } .podium .rang-3 .combien { font-size: 0.85rem; }
.podium .rang-4 .qui { font-size: 1rem; }    .podium .rang-4 .combien { font-size: 0.8rem; }
.podium .rang-5 .qui { font-size: 0.92rem; } .podium .rang-5 .combien { font-size: 0.78rem; }
.podium li.vide { color: var(--muted); }
.podium li.vide .qui { color: var(--muted); font-weight: 500; opacity: 0.55; }
.podium li.vide .qui:empty::before { content: "\2014"; opacity: 0.5; }
.reservoir-consigne { margin: 0; font-size: 0.88rem; line-height: 1.55; color: var(--muted); }

.footer-essence { text-transform: none !important; letter-spacing: 0.04em !important; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 calc(26px + env(safe-area-inset-bottom)); }
.footer-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.footer-row p { margin: 0; }
.footer-row a { text-decoration: none; color: var(--text-soft); text-transform: none; letter-spacing: 0.06em; }
.footer-row a:hover { color: var(--accent); }
@media (max-width: 640px) {
  .site-footer { padding-bottom: 110px; }
  .footer-coords { display: none; }
}

/* ---------- Barre d'achat mobile ---------- */
.mobile-buy {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 16px;
  background: rgba(8, 17, 40, 0.9); border: 1px solid rgba(127, 216, 255, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transform: translateY(120%); opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.mobile-buy div { display: flex; flex-direction: column; line-height: 1.15; }
.mobile-buy div span { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.mobile-buy div strong { font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.mobile-buy a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border-radius: 12px; background: linear-gradient(180deg, #c4efff 0%, #8fd9f8 100%);
  color: var(--accent-ink); text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
}
@media (max-width: 900px) {
  .mobile-buy { display: flex; }
  .mobile-buy.is-visible { transform: none; opacity: 1; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora { animation: none; opacity: 0.6; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rise { opacity: 1; animation: none; }
  .map-frame { transition: none; }
  .site-header, .button-primary, .sky::after, .offer-cover img, .rider-halo, .clouds i { animation: none; }
  .hero-copy h1 .letter, html.has-js .hero-copy:not(.is-in) h1 .letter { opacity: 1; transform: none; animation: none; }
  .hero-scroll-icon { animation: none; }
  .snow { display: none; }
  html.has-js .map-card:not(.is-ready) .map-land, html.has-js .map-card:not(.is-ready) .map-grid, html.has-js .map-card:not(.is-ready) .map-countries, html.has-js .city:not(.is-in), html.has-js .ref:not(.is-in) { opacity: 1; }
  .offer-list.reveal li { opacity: 1; transform: none; transition: none; }
  .ico * { animation: none !important; }
  .trip { opacity: 1; transform: none; transition: none; }
  .city-ring { animation: none !important; }
}
