/* Hallmark · genre: editorial (signalétique) · macrostructure: Photographic + Manifesto claims · theme: custom
 * vibe: "nuit parisienne, asphalte, panneaux routiers, jaune de chantier"
 * paper oklch(96% 0.012 85) · ink oklch(18% 0.016 255) · accent oklch(86% 0.17 92) jaune signal
 * display: Big Shoulders Display (signalétique condensée) · body: Atkinson Hyperlegible Next (lisibilité)
 * axes: dark+light / display-condensed / warm · nav: N9 edge-aligned · footer: Ft2 inline
 * Hallmark · pre-emit critique: P5 H5 E4 S5 R4 V5
 */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs */
  --color-asphalte: oklch(18% 0.016 255);
  --color-asphalte-2: oklch(23% 0.018 255);
  --color-asphalte-3: oklch(30% 0.018 255);
  --color-sur-sombre: oklch(95% 0.012 85);
  --color-sur-sombre-doux: oklch(82% 0.014 85);
  --color-papier: oklch(96% 0.012 85);
  --color-papier-2: oklch(92.5% 0.016 85);
  --color-blanc-champ: oklch(99% 0.004 85);
  --color-encre: oklch(19% 0.018 255);
  --color-encre-douce: oklch(40% 0.02 255);
  --color-filet: oklch(82% 0.016 85);
  --color-signal: oklch(86% 0.17 92);
  --color-signal-fort: oklch(80% 0.17 88);
  --color-rouge-panneau: oklch(55% 0.2 27);
  --color-bleu-panneau: oklch(46% 0.15 258);
  --color-blanc-panneau: oklch(98% 0.004 85);
  --color-noir-panneau: oklch(17% 0.01 255);
  --color-gris-poteau: oklch(62% 0.01 255);
  --color-erreur: oklch(50% 0.19 27);
  --color-focus-clair: oklch(46% 0.15 258);
  --color-focus-sombre: oklch(86% 0.17 92);

  /* Typo */
  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(2.25rem, 9vw, 3.5rem);
  --text-display: clamp(3.4rem, 15.5vw, 7.5rem);

  /* Espace (4 pt) */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;
  --gouttiere: 1rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --rule: 1px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-court: 140ms;
  --dur-moyen: 320ms;
  --dur-long: 900ms;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-asphalte);
  color: var(--color-encre);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-style: normal; margin: 0; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--color-focus-clair); outline-offset: 3px; }

/* ───────────── En-tête photo ───────────── */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(100svh, 920px);
  display: grid;
  grid-template-rows: auto 1fr;
  color: var(--color-sur-sombre);
  overflow: clip;
}
.hero :focus-visible { outline-color: var(--color-focus-sombre); }
.hero__photo, .hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero__photo img { object-fit: cover; object-position: 50% 62%; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom,
      color-mix(in oklch, var(--color-asphalte) 55%, transparent) 0%,
      color-mix(in oklch, var(--color-asphalte) 5%, transparent) 26%,
      color-mix(in oklch, var(--color-asphalte) 30%, transparent) 48%,
      color-mix(in oklch, var(--color-asphalte) 88%, transparent) 72%,
      var(--color-asphalte) 100%);
}

.barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) var(--gouttiere);
  padding-top: max(var(--space-sm), env(safe-area-inset-top));
}
.marque {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.marque__trait {
  width: 22px;
  height: 6px;
  background: var(--color-signal);
  border-radius: 1px;
}
.barre__lien {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-md);
  border: var(--rule) solid color-mix(in oklch, var(--color-sur-sombre) 55%, transparent);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  white-space: nowrap;
  background: color-mix(in oklch, var(--color-asphalte) 40%, transparent);
  transition: background-color var(--dur-court) var(--ease-out), color var(--dur-court) var(--ease-out);
}
.barre__lien:hover { background: var(--color-sur-sombre); color: var(--color-asphalte); }

.hero__corps {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: var(--space-lg) var(--gouttiere) var(--space-2xl);
  min-width: 0;
}

/* Panneau « limitation » : le visuel principal */
.panneau-limite {
  position: relative;
  margin: 0 0 0 auto;
  width: clamp(150px, 47vw, 340px);
  justify-self: end;
  margin-right: 4vw;
  animation: panneau-entree var(--dur-long) var(--ease-out) both;
}
.panneau-limite__svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px color-mix(in oklch, var(--color-noir-panneau) 55%, transparent));
}
.panneau-limite__poteau {
  position: absolute;
  top: 60%;
  left: calc(50% - 5px);
  width: 10px;
  height: 34vh;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  background: linear-gradient(to right,
    color-mix(in oklch, var(--color-gris-poteau) 70%, var(--color-noir-panneau)) 0%,
    var(--color-gris-poteau) 45%,
    color-mix(in oklch, var(--color-gris-poteau) 55%, var(--color-noir-panneau)) 100%);
  border-radius: 2px;
}
.sv-blanc { fill: var(--color-blanc-panneau); }
.sv-anneau { fill: none; stroke: var(--color-rouge-panneau); stroke-width: 22; }
.sv-chiffre {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 92px;
  fill: var(--color-noir-panneau);
  letter-spacing: -1px;
}
.sv-pourcent { font-size: 50px; font-weight: 700; }

.hero__texte {
  position: relative;
  z-index: 2;
  align-self: end;
  margin-top: var(--space-xl);
  min-width: 0;
  max-width: 44rem;
  animation: texte-entree var(--dur-long) var(--ease-out) 120ms both;
}
.hero__titre {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-display);
  line-height: 0.94;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  min-width: 0;
  text-wrap: balance;
}
.surligne {
  color: var(--color-signal);
  white-space: nowrap;
}
.hero__chapeau {
  margin-top: var(--space-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-sur-sombre);
}
.hero__intro {
  margin-top: var(--space-sm);
  max-width: 34rem;
  color: var(--color-sur-sombre-doux);
}
.hero .bouton { margin-top: var(--space-lg); }

/* Boutons */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 56px;
  padding: 0 var(--space-xl);
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-court) var(--ease-out), transform var(--dur-court) var(--ease-out);
}
.bouton--signal { background: var(--color-signal); color: var(--color-noir-panneau); }
.bouton--signal:hover { background: var(--color-signal-fort); }
.bouton:active { transform: translateY(1px); }
.bouton:disabled, .bouton[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.bouton[aria-busy="true"] { cursor: progress; }
.bouton--large { width: 100%; }

/* Marquage au sol : ligne discontinue */
.ligne-route {
  height: 6px;
  background: repeating-linear-gradient(90deg,
    var(--color-sur-sombre) 0 40px, transparent 40px 72px);
  opacity: 0.85;
}

/* ───────────── Compteur (comparaison) ───────────── */
.compteur {
  background: var(--color-asphalte);
  color: var(--color-sur-sombre);
  padding: 0 0 var(--space-3xl);
}
.compteur__grille {
  display: grid;
  gap: var(--space-2xl);
  padding: var(--space-2xl) var(--gouttiere) 0;
  max-width: calc(76rem + 2 * var(--gouttiere));
  margin: 0 auto;
}
.titre-section {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  line-height: 1.04;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  min-width: 0;
  text-wrap: balance;
}
.compteur__texte p { margin-top: var(--space-md); max-width: 32rem; color: var(--color-sur-sombre-doux); font-size: var(--text-lg); }
.compteur__texte strong, .chiffre { font-family: var(--font-display); font-weight: 800; font-size: 1.2em; letter-spacing: 0.01em; color: var(--color-sur-sombre); }
.compteur__ailleurs strong { color: var(--color-sur-sombre); }

.jauge {
  --piste-h: 30px;
  position: relative;
  display: grid;
  gap: var(--space-lg);
}
.jauge__ligne {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: var(--space-sm);
  row-gap: var(--space-xs);
}
.jauge__nom {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.jauge__val { color: var(--color-sur-sombre-doux); font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); letter-spacing: 0.03em; text-transform: uppercase; text-align: right; }
.jauge__piste {
  grid-column: 1 / -1;
  position: relative;
  height: var(--piste-h);
  background: var(--color-asphalte-2);
  border-radius: 3px;
  overflow: hidden;
}
.jauge__fixe {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: var(--color-signal);
}
.jauge__variable {
  position: absolute;
  inset: 0 auto 0 0;
  width: 96%;
  transform-origin: left center;
  background: repeating-linear-gradient(-55deg,
    var(--color-rouge-panneau) 0 7px, transparent 7px 13px);
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 62%, transparent 100%);
          mask-image: linear-gradient(to right, #000 0%, #000 62%, transparent 100%);
  animation: variable 4.8s var(--ease-in-out) infinite alternate;
}
/* Repères verticaux à 20 % et 40 % (échelle de 0 à 50 %), dans chaque piste */
.jauge__piste::before, .jauge__piste::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 0;
  border-left: 2px dashed color-mix(in oklch, var(--color-sur-sombre) 55%, transparent);
}
.jauge__piste::before { left: 40%; }
.jauge__piste::after { left: 80%; }
.jauge__echelle { position: relative; height: 2rem; margin-top: calc(-1 * var(--space-md)); }
.jauge__repere {
  position: absolute;
  top: 0;
  padding-top: 0.7rem;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-sur-sombre);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.jauge__repere::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 0.5rem;
  border-left: 2px solid currentColor;
}
.jauge__repere--20 { left: 40%; color: var(--color-signal); }
.jauge__repere--40 { left: 80%; }

/* ───────────── Règles (panneaux) ───────────── */
.regles {
  background: var(--color-papier);
  padding: var(--space-3xl) var(--gouttiere);
}
.regles > .titre-section, .regles__liste { max-width: 76rem; margin-inline: auto; }
.regles__liste {
  list-style: none;
  padding: 0;
  margin-top: var(--space-xl);
  display: grid;
}
.regle {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-xl) 0;
  border-top: var(--rule) solid var(--color-filet);
}
.regle:last-child { border-bottom: var(--rule) solid var(--color-filet); }
.regle__panneau { width: 100%; height: auto; }
.regle h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.06;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.regle p { margin-top: var(--space-xs); color: var(--color-encre-douce); }

.sv-bleu { fill: var(--color-bleu-panneau); }
.sv-liseré { fill: none; stroke: var(--color-blanc-panneau); stroke-width: 4; }
.sv-fil { stroke: var(--color-blanc-panneau); stroke-width: 3.5; stroke-linecap: round; fill: none; }
.sv-cerclage { fill: none; stroke: var(--color-noir-panneau); stroke-width: 3; }
.sv-rayures path { stroke: var(--color-noir-panneau); stroke-width: 5; }
.sv-triangle { fill: var(--color-blanc-panneau); stroke: var(--color-rouge-panneau); stroke-width: 18; stroke-linejoin: round; }
.sv-noir { fill: var(--color-noir-panneau); }
.sv-pente { font-family: var(--font-display); font-weight: 800; font-size: 40px; fill: var(--color-noir-panneau); }

/* ───────────── Formulaire ───────────── */
.inscription {
  background: var(--color-papier-2);
  padding: var(--space-3xl) var(--gouttiere) var(--space-4xl);
}
.inscription__grille { max-width: 76rem; margin: 0 auto; display: grid; gap: var(--space-xl); }
.inscription__sous { margin-top: var(--space-md); font-size: var(--text-lg); max-width: 30rem; }
.pas-demande {
  margin-top: var(--space-lg);
  padding: var(--space-md) 0 0;
  border-top: 3px solid var(--color-encre);
  max-width: 30rem;
  color: var(--color-encre-douce);
}
.pas-demande__titre {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-encre);
  margin-bottom: var(--space-2xs);
}

.formulaire { display: grid; gap: var(--space-lg); min-width: 0; }
.champ { display: grid; gap: var(--space-xs); min-width: 0; margin: 0; padding: 0; border: 0; }
.champ > label, .champ > legend {
  font-weight: 700;
  font-size: var(--text-base);
  padding: 0;
}
.champ > legend { float: left; width: 100%; margin-bottom: var(--space-xs); }
.champ > legend + * { clear: both; }
.label-petit { font-weight: 700; font-size: var(--text-sm); color: var(--color-encre-douce); }
.aide { font-size: var(--text-sm); color: var(--color-encre-douce); margin-top: calc(-1 * var(--space-xs)); clear: both; }

input[type="text"], input[type="tel"], select {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 var(--space-md);
  font: inherit;
  font-size: var(--text-base);
  color: var(--color-encre);
  background: var(--color-blanc-champ);
  border: 2px solid color-mix(in oklch, var(--color-encre) 30%, transparent);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-court) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder { color: color-mix(in oklch, var(--color-encre) 42%, transparent); }
input[type="text"]:hover, input[type="tel"]:hover, select:hover { border-color: color-mix(in oklch, var(--color-encre) 55%, transparent); }
input[type="text"]:focus-visible, input[type="tel"]:focus-visible, select:focus-visible { border-color: var(--color-encre); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--color-erreur); }
input:disabled, select:disabled { opacity: 0.55; cursor: not-allowed; }
select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--color-encre) 50%),
    linear-gradient(135deg, var(--color-encre) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.champ-duo { display: grid; gap: var(--space-lg); }
.vehicule { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-sm); }
.vehicule__case { display: grid; gap: var(--space-2xs); min-width: 0; }
.vehicule__case--annee { grid-column: 1 / -1; max-width: 9rem; }

/* Choix (radios et cases) en gros boutons */
.choix-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-sm); }
.puces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
.choix { position: relative; display: block; }
.choix input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choix span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 52px;
  padding: 0 var(--space-lg);
  font-weight: 700;
  white-space: nowrap;
  background: var(--color-blanc-champ);
  border: 2px solid color-mix(in oklch, var(--color-encre) 30%, transparent);
  border-radius: var(--radius-sm);
  transition: background-color var(--dur-court) var(--ease-out), color var(--dur-court) var(--ease-out), border-color var(--dur-court) var(--ease-out);
}
.choix--puce span { min-height: 52px; padding: 0 var(--space-md); justify-content: flex-start; }
.choix--puce span::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 3px;
  flex: none;
}
.choix:hover span { border-color: color-mix(in oklch, var(--color-encre) 60%, transparent); }
.choix input:focus-visible + span { outline: 3px solid var(--color-focus-clair); outline-offset: 3px; }
.choix input:checked + span { background: var(--color-encre); color: var(--color-papier); border-color: var(--color-encre); }
.choix--puce input:checked + span::before {
  background: var(--color-signal);
  border-color: var(--color-signal);
  box-shadow: inset 0 0 0 3px var(--color-encre);
}
.choix input:disabled + span { opacity: 0.55; cursor: not-allowed; }

.champ > .consentement__label {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: var(--space-sm);
  align-items: start;
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}
.consentement__label input {
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  accent-color: var(--color-encre);
  cursor: pointer;
}
.consentement__label a { font-weight: 700; text-underline-offset: 3px; }

.erreur { color: var(--color-erreur); font-size: var(--text-sm); font-weight: 700; }
.erreur:empty { display: none; }

.piege {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.turnstile:empty { display: none; }
.formulaire__note { font-size: var(--text-sm); color: var(--color-encre-douce); text-align: center; }

.succes {
  padding: var(--space-xl) 0;
  border-top: 6px solid var(--color-signal);
}
.succes__titre {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-2xl);
  text-transform: uppercase;
}

/* ───────────── Pied de page ───────────── */
.pied {
  background: var(--color-asphalte);
  color: var(--color-sur-sombre-doux);
  padding: 0 0 var(--space-2xl);
  font-size: var(--text-sm);
}
.pied :focus-visible { outline-color: var(--color-focus-sombre); }
.pied__ligne, .pied__credit { padding: 0 var(--gouttiere); max-width: calc(76rem + 2 * var(--gouttiere)); margin: 0 auto; }
.pied__ligne {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0 var(--space-sm);
  padding-top: var(--space-xl);
  color: var(--color-sur-sombre);
}
.pied__ligne a, .pied__credit a { text-underline-offset: 3px; }
.pied__ligne a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.pied__ligne > span { display: inline-flex; align-items: center; min-height: 44px; }
.pied__ligne > span[aria-hidden="true"] { display: none; }
.pied > .ligne-route { margin-top: var(--space-xl); }
.pied__credit { margin-top: var(--space-xs); }

/* ───────────── Mouvement ───────────── */
@keyframes panneau-entree {
  from { opacity: 0; transform: translateY(-14px) rotate(-4deg); }
  to { opacity: 1; transform: none; }
}
@keyframes texte-entree {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes variable {
  0% { transform: scaleX(0.62); }
  35% { transform: scaleX(0.9); }
  60% { transform: scaleX(0.74); }
  100% { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panneau-limite, .hero__texte { animation: fade 150ms linear both; }
  .jauge__variable { animation: none; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

/* ───────────── Grand écran ───────────── */
@media (min-width: 560px) {
  .pied__ligne { flex-direction: row; flex-wrap: wrap; }
  .pied__ligne > span[aria-hidden="true"] { display: inline-flex; }
  .puces { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .champ-duo { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .vehicule { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 8rem; }
  .vehicule__case--annee { grid-column: auto; max-width: none; }
}

@media (min-width: 900px) {
  :root { --gouttiere: 3rem; }
  .hero { min-height: min(100svh, 880px); }
  .hero__photo img { object-position: 50% 70%; }
  .hero::after {
    background:
      linear-gradient(to right,
        color-mix(in oklch, var(--color-asphalte) 92%, transparent) 0%,
        color-mix(in oklch, var(--color-asphalte) 70%, transparent) 38%,
        color-mix(in oklch, var(--color-asphalte) 10%, transparent) 70%),
      linear-gradient(to bottom, transparent 70%, var(--color-asphalte) 100%);
  }
  .hero__corps {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: end;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-3xl);
  }
  .hero__texte { grid-column: 1; grid-row: 1; margin-top: 0; }
  .panneau-limite { grid-column: 2; grid-row: 1; align-self: start; width: clamp(240px, 24vw, 340px); margin-right: 8%; margin-top: var(--space-xl); }
  .hero__titre { font-size: clamp(4.5rem, 7.4vw, 7.5rem); }
  .hero__intro { font-size: var(--text-lg); }
  .panneau-limite__poteau { height: 140vh; -webkit-mask-image: none; mask-image: none; }

  .compteur__grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: var(--space-4xl); padding-top: var(--space-3xl); }

  .regles { padding-block: var(--space-4xl); }
  .regles__liste { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-3xl); margin-top: var(--space-2xl); }
  .regle { grid-template-columns: 168px minmax(0, 1fr); gap: var(--space-xl); padding: var(--space-2xl) 0; }
  .regle:nth-last-child(2) { border-bottom: var(--rule) solid var(--color-filet); }
  .regle h3 { font-size: 2.125rem; }

  .inscription { padding-block: var(--space-4xl); }
  .inscription__grille { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-4xl); align-items: start; }
  .inscription__intro { position: sticky; top: var(--space-xl); }
  .formulaire, .succes { grid-column: 2; grid-row: 1; }
}

@media (min-width: 1280px) {
  .barre, .hero__corps { padding-inline: max(var(--gouttiere), calc((100% - 76rem) / 2)); }
}

/* ───────────── Page politique de confidentialité ───────────── */
.page-doc { background: var(--color-papier); }
.doc-barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--gouttiere);
  background: var(--color-asphalte);
  color: var(--color-sur-sombre);
}
.doc-barre :focus-visible { outline-color: var(--color-focus-sombre); }
.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--space-2xl) var(--gouttiere) var(--space-4xl);
}
.doc__maj { margin-top: var(--space-sm); color: var(--color-encre-douce); font-size: var(--text-sm); }
.doc h2 {
  margin-top: var(--space-2xl);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-xl);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.doc p, .doc ul { margin-top: var(--space-sm); }
.doc ul { padding-left: 1.25rem; }
.doc li + li { margin-top: var(--space-2xs); }
.doc a { font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* Champ « Laquelle ? » : visible seulement quand « Autre » est coché */
.champ-autre { display: none; margin-top: var(--space-s, 12px); }
.puces:has(input[value="autre"]:checked) + .champ-autre { display: block; }
.champ-autre.est-visible { display: block; }
.champ-autre input { width: 100%; }
