/* ==========================================================================
   Gare-moi — Signalétique urbaine
   --------------------------------------------------------------------------
   Direction : asphalte nocturne + peinture routière. Le vert de fraîcheur est
   le seul accent saturé, exactement comme sur la carte de l'app : quand il
   apparaît, il veut dire « une place, maintenant ».
   Motifs récurrents : lignes discontinues (marquage au sol), équerres d'angle
   (délimitation de place), grain d'asphalte.
   Palette alignée sur apps/mobile/src/theme/colors.ts.
   ========================================================================== */

/* ---------- Jetons ---------- */
:root {
  /* Asphalte */
  --asphalt-900: #080c11;
  --asphalt-800: #0b0f14;
  --asphalt-700: #121820;
  --asphalt-600: #1a222c;
  --asphalt-500: #26313d;

  /* Peinture routière */
  --paint: #f4f6f5;
  --paint-dim: #b8c2c9;
  --paint-faint: #7c8894;

  /* Fraîcheur — identique à l'app */
  --fresh: #22c55e;
  --fresh-deep: #15803d;
  --fresh-glow: rgba(34, 197, 94, 0.16);
  --warm: #eab308;
  --late: #f97316;

  /* Typo */
  --display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --body: 'Archivo', 'Helvetica Neue', sans-serif;

  /* Rythme */
  --gutter: clamp(1.25rem, 5vw, 6rem);
  --stack: clamp(4rem, 10vw, 9rem);
  --radius: 14px;
  --line: 1px solid var(--asphalt-500);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--asphalt-800);
  color: var(--paint);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button {
  font: inherit;
  cursor: pointer;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Accessibilité : toute l'animation est décorative, on la coupe net. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--fresh);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--fresh);
  color: var(--asphalt-900);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Grain d'asphalte, posé sur toute la page ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Jauge de progression de lecture ---------- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--fresh);
  z-index: 150;
}

/* ---------- Enveloppe ---------- */
.wrap {
  width: min(100%, 1240px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- En-tête ---------- */
.head {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--asphalt-800) 82%, transparent);
  border-bottom: var(--line);
}
.head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.head nav {
  display: none;
  gap: 1.75rem;
  font-size: 0.9rem;
}
.head nav a {
  text-decoration: none;
  color: var(--paint-dim);
  transition: color 0.2s;
}
.head nav a:hover {
  color: var(--fresh);
}
@media (min-width: 860px) {
  .head nav {
    display: flex;
  }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s,
    background 0.2s,
    border-color 0.2s;
}
.btn--primary {
  background: var(--fresh);
  color: var(--asphalt-900);
  box-shadow: 0 0 0 0 var(--fresh-glow);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px -8px var(--fresh);
}
.btn--ghost {
  border-color: var(--asphalt-500);
  color: var(--paint);
}
.btn--ghost:hover {
  border-color: var(--fresh);
  color: var(--fresh);
  transform: translateY(-2px);
}
.btn--sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
}

/* ---------- Étiquette de section ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fresh);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--fresh) 0 6px,
    transparent 6px 10px
  ); /* marquage discontinu */
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem) var(--stack);
  overflow: hidden;
}
/* Halo mouvant : la lueur d'une place fraîche sous l'asphalte */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  width: 130vmax;
  height: 130vmax;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(circle at 32% 38%, var(--fresh-glow) 0, transparent 42%),
    radial-gradient(circle at 70% 22%, rgba(234, 179, 8, 0.07) 0, transparent 38%);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  to {
    transform: translateX(-50%) translateY(5%) rotate(9deg);
  }
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: 1.08fr 0.92fr;
  }
}

.hero h1 {
  font-size: clamp(2.9rem, 8.2vw, 5.4rem);
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--fresh);
  position: relative;
}
/* Soulignement peint, tracé à l'apparition */
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.08em;
  height: 5px;
  background: var(--fresh);
  transform: scaleX(0);
  transform-origin: 0 50%;
  animation: paint 1s var(--ease-out) 0.7s forwards;
}
@keyframes paint {
  to {
    transform: scaleX(1);
  }
}

.hero__lede {
  font-size: clamp(1.05rem, 2.1vw, 1.25rem);
  color: var(--paint-dim);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.hero__meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--paint-faint);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fresh);
  box-shadow: 0 0 0 0 var(--fresh);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  70%,
  100% {
    box-shadow: 0 0 0 9px rgba(34, 197, 94, 0);
  }
}

/* ---------- Démo carte vivante ---------- */
.demo {
  position: relative;
  border: var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 15%, rgba(34, 197, 94, 0.07), transparent 55%),
    var(--asphalt-700);
  padding: 1rem;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}
.demo__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.5rem 0.9rem;
  border-bottom: var(--line);
  margin-bottom: 0.9rem;
}
.demo__label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paint-faint);
  font-weight: 700;
}
.demo__timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fresh);
}
.demo__canvas {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  /* Trame de rues */
  background-image:
    linear-gradient(var(--asphalt-600) 1px, transparent 1px),
    linear-gradient(90deg, var(--asphalt-600) 1px, transparent 1px);
  background-size: 46px 46px;
  background-color: var(--asphalt-800);
}
/* Deux axes plus larges, comme des boulevards */
.demo__canvas::before,
.demo__canvas::after {
  content: '';
  position: absolute;
  background: var(--asphalt-600);
}
.demo__canvas::before {
  left: 0;
  right: 0;
  top: 58%;
  height: 16px;
}
.demo__canvas::after {
  top: 0;
  bottom: 0;
  left: 34%;
  width: 16px;
}

.pin {
  position: absolute;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--asphalt-900);
  border: 2px solid rgba(255, 255, 255, 0.9);
  z-index: 2;
  /* Couleur par défaut : un pin doit être visible même si la boucle
     d'animation ne démarre jamais (onglet en arrière-plan, rAF suspendu). */
  background: var(--fresh);
  transition:
    background 0.6s linear,
    opacity 0.5s,
    transform 0.5s var(--ease-out);
}
.pin[data-tier='0'] {
  background: var(--fresh);
}
.pin[data-tier='1'] {
  background: var(--warm);
}
.pin[data-tier='2'] {
  background: var(--late);
  opacity: 0.72;
}
.pin[data-tier='gone'] {
  opacity: 0;
  transform: scale(0.4);
}
.pin[data-new='1'] {
  animation: pop 0.55s var(--ease-out);
}
@keyframes pop {
  from {
    transform: scale(0);
  }
}
/* L'onde d'une place qui vient d'apparaître */
.pin[data-tier='0']::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--fresh);
  animation: wave 2s ease-out infinite;
}
@keyframes wave {
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

.me {
  position: absolute;
  left: 46%;
  top: 62%;
  width: 15px;
  height: 15px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid var(--paint);
  z-index: 3;
}
.demo__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding-top: 0.9rem;
  font-size: 0.72rem;
  color: var(--paint-faint);
}
.demo__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.demo__legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

/* ---------- Bandeau défilant des quartiers ---------- */
.ticker {
  border-block: var(--line);
  padding-block: 0.9rem;
  overflow: hidden;
  background: var(--asphalt-900);
}
.ticker__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: slide 34s linear infinite;
}
.ticker span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paint-faint);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.ticker span::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fresh);
  opacity: 0.55;
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}
.ticker:hover .ticker__track {
  animation-play-state: paused;
}

/* ---------- Sections ---------- */
.sec {
  padding-block: var(--stack);
  position: relative;
}
.sec--rule {
  border-top: var(--line);
}
.sec h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 22ch;
  margin-bottom: 1.25rem;
}
.sec__lede {
  color: var(--paint-dim);
  max-width: 58ch;
  font-size: 1.05rem;
}

/* ---------- Problème : chiffres ---------- */
.stats {
  display: grid;
  gap: 1px;
  margin-top: 3rem;
  background: var(--asphalt-500);
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 760px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}
.stat {
  background: var(--asphalt-700);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: background 0.3s;
}
.stat:hover {
  background: var(--asphalt-600);
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--fresh);
  font-variant-numeric: tabular-nums;
}
.stat p {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: var(--paint-dim);
}

/* ---------- Étapes, en flux diagonal ---------- */
.steps {
  display: grid;
  gap: 1.25rem;
  margin-top: 3.5rem;
  counter-reset: s;
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
  .steps li:nth-child(2) {
    margin-top: 3rem;
  }
  .steps li:nth-child(3) {
    margin-top: 6rem;
  }
}
.steps li {
  position: relative;
  border: var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.75rem;
  background: var(--asphalt-700);
  counter-increment: s;
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.3s;
}
.steps li:hover {
  transform: translateY(-6px);
  border-color: var(--fresh-deep);
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  top: -0.85rem;
  left: 1.35rem;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--asphalt-900);
  background: var(--fresh);
  padding: 0.15rem 0.55rem;
  border-radius: 5px;
}
.steps h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}
.steps p {
  color: var(--paint-dim);
  font-size: 0.95rem;
}

/* ---------- Cartes de valeur, avec équerres de place ---------- */
.values {
  display: grid;
  gap: 1.25rem;
  margin-top: 3.5rem;
}
@media (min-width: 780px) {
  .values {
    grid-template-columns: 1fr 1fr;
  }
  .values li:first-child {
    grid-column: 1 / -1;
  }
}
.values li {
  position: relative;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--asphalt-700);
  border: var(--line);
  overflow: hidden;
}
.values li:first-child {
  background:
    radial-gradient(circle at 88% 12%, rgba(34, 197, 94, 0.14), transparent 60%), var(--asphalt-700);
}
/* Équerres d'angle : le marquage d'une place au sol, qui se dessine au survol */
.values li::before,
.values li::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid var(--fresh);
  opacity: 0;
  transition:
    opacity 0.35s,
    transform 0.35s var(--ease-out);
}
.values li::before {
  top: 12px;
  left: 12px;
  border-right: 0;
  border-bottom: 0;
  transform: translate(6px, 6px);
}
.values li::after {
  bottom: 12px;
  right: 12px;
  border-left: 0;
  border-top: 0;
  transform: translate(-6px, -6px);
}
.values li:hover::before,
.values li:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}
.values h3 {
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.values p {
  color: var(--paint-dim);
  font-size: 0.97rem;
  max-width: 60ch;
}

/* ---------- Tableau des points ---------- */
.points {
  margin-top: 3rem;
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.points div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.05rem clamp(1rem, 3vw, 1.75rem);
  background: var(--asphalt-700);
  border-bottom: var(--line);
  transition: background 0.25s;
}
.points div:last-child {
  border-bottom: 0;
}
.points div:hover {
  background: var(--asphalt-600);
}
.points p {
  font-size: 0.97rem;
  color: var(--paint-dim);
}
.points b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--fresh);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- Offres ---------- */
.plans {
  display: grid;
  gap: 1.25rem;
  margin-top: 3.5rem;
}
@media (min-width: 820px) {
  .plans {
    grid-template-columns: 1fr 1.08fr;
    align-items: start;
  }
}
.plan {
  border: var(--line);
  border-radius: 18px;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  background: var(--asphalt-700);
}
.plan--pro {
  border-color: var(--fresh-deep);
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 197, 94, 0.13), transparent 58%),
    var(--asphalt-700);
  position: relative;
}
.plan__tag {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--fresh);
  color: var(--asphalt-900);
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
}
.plan h3 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}
.plan__price {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.plan__price small {
  display: block;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--paint-faint);
  margin-top: 0.3rem;
}
.plan ul {
  display: grid;
  gap: 0.75rem;
}
.plan li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--paint-dim);
}
.plan li::before {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 0.3rem;
  border-radius: 50%;
  background: var(--fresh-glow);
  border: 1.5px solid var(--fresh);
}
.plan__note {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--paint-faint);
}

/* ---------- Confidentialité ---------- */
.privacy {
  display: grid;
  gap: 1px;
  margin-top: 3rem;
  background: var(--asphalt-500);
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 720px) {
  .privacy {
    grid-template-columns: repeat(2, 1fr);
  }
}
.privacy li {
  background: var(--asphalt-700);
  padding: 1.5rem;
  font-size: 0.95rem;
  color: var(--paint-dim);
}
.privacy li b {
  display: block;
  color: var(--paint);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

/* ---------- FAQ ---------- */
.faq {
  margin-top: 3rem;
  border-top: var(--line);
}
.faq details {
  border-bottom: var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 3rem 1.35rem 0;
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:hover {
  color: var(--fresh);
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -8px;
  border-right: 2px solid var(--fresh);
  border-bottom: 2px solid var(--fresh);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -3px;
}
.faq p {
  padding-bottom: 1.5rem;
  color: var(--paint-dim);
  max-width: 68ch;
  font-size: 0.97rem;
}

/* ---------- Appel final ---------- */
.final {
  position: relative;
  text-align: center;
  padding-block: clamp(4.5rem, 11vw, 8rem);
  border-top: var(--line);
  overflow: hidden;
}
.final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 100%, var(--fresh-glow), transparent 70%);
  pointer-events: none;
}
.final h2 {
  font-size: clamp(2.2rem, 6.5vw, 4.2rem);
  margin-inline: auto;
  max-width: 20ch;
  margin-bottom: 1.25rem;
}
.final p {
  color: var(--paint-dim);
  max-width: 46ch;
  margin: 0 auto 2.25rem;
}
.final .hero__cta {
  justify-content: center;
}

/* ---------- Pied ---------- */
.foot {
  border-top: var(--line);
  background: var(--asphalt-900);
  padding-block: 3rem 2rem;
  font-size: 0.9rem;
}
.foot__grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 760px) {
  .foot__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.foot h4 {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paint-faint);
  margin-bottom: 1rem;
  font-weight: 700;
}
.foot ul {
  display: grid;
  gap: 0.6rem;
}
.foot a {
  color: var(--paint-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.foot a:hover {
  color: var(--fresh);
}
.foot__tag {
  color: var(--paint-faint);
  max-width: 34ch;
  margin-top: 0.75rem;
}
.foot__legal {
  border-top: var(--line);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  color: var(--paint-faint);
  font-size: 0.82rem;
}
.foot__legal a {
  color: var(--paint-faint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Révélation au défilement ----------
   Le masquage initial est conditionné à la classe `.js`, posée par un script
   inline dans le <head>. Sans JavaScript — ou si le script échoue — le
   contenu reste simplement visible. Une page entièrement blanche parce
   qu'un observateur n'a pas déclenché n'est pas un compromis acceptable. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Pages de documents (CGU, confidentialité)
   ========================================================================== */
.doc {
  padding-block: clamp(3rem, 7vw, 5rem) var(--stack);
}
.doc__head {
  max-width: 62ch;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: var(--line);
}
.doc__head h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  margin-bottom: 1rem;
}
.doc__date {
  color: var(--paint-faint);
  font-size: 0.9rem;
}
.doc__body {
  max-width: 74ch;
}
.doc__body h2 {
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: var(--line);
}
.doc__body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.doc__body h3 {
  font-size: 1.12rem;
  margin: 2rem 0 0.7rem;
}
.doc__body p,
.doc__body li {
  color: var(--paint-dim);
  font-size: 0.98rem;
}
.doc__body p {
  margin-bottom: 1.1rem;
}
.doc__body ul {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.doc__body ul li {
  padding-left: 1.35rem;
  position: relative;
}
.doc__body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 2px;
  background: var(--fresh);
}
.doc__body strong {
  color: var(--paint);
}
.doc__body a {
  color: var(--fresh);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc__body blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--fresh);
  background: var(--asphalt-700);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.doc__body blockquote p:last-child {
  margin-bottom: 0;
}
.doc__table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
}
.doc__table th,
.doc__table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: var(--line);
  vertical-align: top;
}
.doc__table th {
  font-family: var(--display);
  font-weight: 700;
  color: var(--paint);
  white-space: nowrap;
}
.doc__table td {
  color: var(--paint-dim);
}
.doc__table tr:hover td {
  background: var(--asphalt-700);
}

/* Champ à compléter avant mise en ligne — impossible à manquer. */
.todo {
  background: var(--warm);
  color: var(--asphalt-900);
  font-weight: 700;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ==========================================================================
   Page 404 — « voie sans issue »
   ========================================================================== */
.nf {
  padding: clamp(3rem, 9vw, 7rem) 0 var(--stack);
}
.nf__in {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .nf__in {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.nf h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0.6rem 0 1.1rem;
}
.nf__lede {
  color: var(--paint-dim);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  max-width: 34ch;
  margin: 0 0 2rem;
}
.nf__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.nf__links {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  font-size: 0.92rem;
  color: var(--paint-faint);
}
.nf__links a {
  color: var(--paint-faint);
  text-decoration: none;
  border-bottom: 1px solid var(--asphalt-500);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.nf__links a:hover {
  color: var(--paint);
  border-color: var(--fresh);
}

/* La chaussée : marquage central qui s'interrompt sur une bande hachurée. */
/* Lecture de haut en bas : le 404 peint sur la chaussée, la ligne d'axe, puis
   la bande hachurée qui barre la route. Les trois zones sont positionnées en
   pourcentage et ne se chevauchent pas — vérifié par mesure du rendu. */
.nf__road {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius);
  border: var(--line);
  background: linear-gradient(180deg, var(--asphalt-700), var(--asphalt-900));
  overflow: hidden;
}
/* Grain d'asphalte, comme sur le reste du site. */
.nf__road::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 4px 4px;
}
.nf__dashes {
  position: absolute;
  top: 52%;
  bottom: 24%;
  left: 50%;
  width: 8px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, var(--paint-dim) 0 18px, transparent 18px 34px);
  opacity: 0.55;
}
/* Bande hachurée type « zone interdite ». */
.nf__block {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 78%;
  height: 58px;
  border-top: 3px solid var(--late);
  border-bottom: 3px solid var(--late);
  background: repeating-linear-gradient(
    -45deg,
    rgba(249, 115, 22, 0.32) 0 10px,
    transparent 10px 20px
  );
}
.nf__code {
  position: absolute;
  top: 11%;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4rem, 12vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px var(--paint-faint);
  opacity: 0.7;
}
