/* ==========================================================================
   Oui Oui Car's — base v5 « nuit seule » (lot SOCLE)
   Reset, zones, typographie, composants partagés, logo B, en-tête, menu plein
   écran, pied, barre du bas, toasts, dialogues, médias. Uniquement des jetons de
   tokens.css. Un seul thème, sombre (SPEC-V5 §1 bis) ; impression en clair.
   Mouvement : transform, opacity, clip-path ; tout est coupé en mode calme
   (html[data-calme="on"]) et en prefers-reduced-motion.
   Classes documentées dans docs/GABARIT.html.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset moderne
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--h-entete) + var(--s-4));
  hanging-punctuation: first last;
}
@media (prefers-reduced-motion: no-preference) {
  html:not([data-calme="on"]) { scroll-behavior: smooth; }
}
img, picture, svg, video, canvas { display: block; max-width: 100%; }
svg { flex: none; }
input, button, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
button:disabled { cursor: not-allowed; }
p, li, dd, figcaption { text-wrap: pretty; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; overflow-wrap: break-word; }
p, h1, h2, h3, h4, h5, h6, li, dd, dt { overflow-wrap: break-word; }
ul[role="list"], ol[role="list"], .liste-nue { list-style: none; padding: 0; }
table { border-collapse: collapse; }
address { font-style: normal; }
sup { line-height: 0; font-size: .6em; text-transform: none; letter-spacing: 0; }
[hidden] { display: none !important; }
dialog { color: inherit; }
::selection { background: var(--vert-profond); color: var(--blanc); }
:target { scroll-margin-top: calc(var(--h-entete) + var(--s-4)); }

/* Focus jamais masqué par une barre fixe ou collante (WCAG 2.4.11) */
html[data-barre-bas="1"] { scroll-padding-bottom: calc(var(--h-barre-bas) + var(--zone-sure-bas) + var(--s-3)); }
@media (max-width: 899.98px) {
  html[data-page="eleve"][data-onglets="1"] { scroll-padding-bottom: calc(var(--h-barre-bas) + var(--zone-sure-bas) + var(--s-3)); }
}
html[data-page="vehicules"]:has(.parking__barre) { scroll-padding-top: calc(var(--h-entete) + 64px + var(--s-4)); }
html[data-page="admin"] { scroll-padding-top: calc(56px + var(--s-4)); }
@media (max-width: 899.98px) { html[data-page="admin"] { scroll-padding-top: calc(56px + 54px + var(--s-4)); } }
html[data-page="admin"]:has(.barre-enregistrer[data-sale]) { scroll-padding-bottom: calc(96px + var(--zone-sure-bas)); }
:focus-visible { scroll-margin-block: var(--s-3); }

/* --------------------------------------------------------------------------
   2. Page et zones
   -------------------------------------------------------------------------- */
:root {
  --fond: var(--zb-fond);
  --surface: var(--zb-surface);
  --texte: var(--zb-texte);
  --texte-2: var(--zb-texte-2);
  --lien: var(--zb-lien);
  --trait: var(--zb-trait);
  --ombre: var(--zb-ombre);
  --survol: var(--creme-a06);
  --anneau: var(--zb-anneau);
  color-scheme: dark;
}
body {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: clip;
  background-color: var(--zb-fond);
  color: var(--zb-texte);
  font-family: var(--police-texte);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-texte);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body > main { display: block; padding-top: var(--h-entete); }
/* Héros photo ou vidéo sous l'en-tête transparent (voir GABARIT §6) */
body > main:has(> :first-child[data-entete-transparent]) { padding-top: 0; }
main:focus { outline: none; }
html[data-barre-bas="1"] body { padding-bottom: calc(var(--h-barre-bas) + var(--zone-sure-bas)); }

.zone-bitume, .zone-sombre {
  --fond: var(--zb-fond);
  --surface: var(--zb-surface);
  --texte: var(--zb-texte);
  --texte-2: var(--zb-texte-2);
  --lien: var(--zb-lien);
  --trait: var(--zb-trait);
  --ombre: var(--zb-ombre);
  --survol: var(--creme-a06);
  --anneau: var(--zb-anneau);
  background-color: var(--fond);
  color: var(--texte);
  color-scheme: dark;
}
/* Ex-zones claires : le site est tout en nuit (SPEC-V5 §1 bis). .zone-marquage (alias .zone-claire) est une section
   alternée, une marche plus haut que le fond (--surface-1) ; .zone-blanche, une marche encore (--surface-2). */
.zone-marquage, .zone-claire, .zone-blanche {
  --fond: var(--zm-fond);
  --surface: var(--zm-surface);
  --texte: var(--zm-texte);
  --texte-2: var(--zm-texte-2);
  --lien: var(--zm-lien);
  --trait: var(--zm-trait);
  --ombre: var(--zm-ombre);
  --survol: var(--creme-a06);
  --anneau: var(--zm-anneau);
  background-color: var(--fond);
  color: var(--texte);
  color-scheme: dark;
}
.zone-blanche { --fond: var(--surface-2); --surface: var(--surface-3); }
/* Deux sections de teintes voisines se touchent : un filet fin marque la couture (aucun effet sur la mise en page) */
:is(.zone-bitume, .zone-sombre, .zone-marquage, .zone-claire, .zone-blanche) + :is(.zone-marquage, .zone-claire, .zone-blanche),
:is(.zone-marquage, .zone-claire, .zone-blanche) + :is(.zone-bitume, .zone-sombre) { box-shadow: inset 0 1px 0 var(--filet); }

/* Mise en page — UN seul conteneur (--largeur-max, 1440 px) pour l'en-tête, les héros, les sections, les légendes,
   les boutons pause et le pied : le logo, les titres et les légendes tombent sur les mêmes verticales.
   .conteneur--large est conservé pour compatibilité ; il a désormais la même largeur que .conteneur. */
.conteneur, .conteneur--large {
  width: 100%;
  max-width: calc(var(--largeur-max) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding-inline: max(var(--gouttiere), env(safe-area-inset-left)) max(var(--gouttiere), env(safe-area-inset-right));
}
.conteneur--texte { max-width: calc(var(--largeur-texte) + 2 * var(--gouttiere)); }
.conteneur--etroit { max-width: calc(960px + 2 * var(--gouttiere)); }
.section { padding-block: clamp(72px, 10vw, 152px); }
.section--serree { padding-block: clamp(48px, 6vw, 88px); }
.section--ample { padding-block: clamp(96px, 14vw, 200px); }
.pile > * + * { margin-top: var(--pile-espace, var(--s-4)); }
.grappe { display: flex; flex-wrap: wrap; gap: var(--grappe-espace, var(--s-3)); align-items: center; }
.grille { display: grid; gap: var(--grille-espace, var(--s-5)); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) {
  .grille--2, .grille--3, .grille--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.scinde { display: grid; gap: var(--s-7); align-items: center; }
.scinde > * { min-width: 0; }
@media (min-width: 960px) { .scinde { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); } }
.filet, .marquage { display: block; height: 1px; border: 0; background: var(--trait); color: inherit; opacity: 1; }

/* --------------------------------------------------------------------------
   3. Typographie
   -------------------------------------------------------------------------- */
h1, h2, h3, .titre-affiche, .titre-1, .titre-2, .titre-3 {
  font-family: var(--police-affichage);
  font-stretch: var(--largeur-titre);
  font-weight: var(--graisse-titre);
  font-kerning: normal;
}
.titre-affiche { font-size: var(--fs-affiche); line-height: var(--lh-affiche); letter-spacing: -.03em; }
h1, .titre-1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: -.025em; }
h2, .titre-2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
h3, .titre-3 { font-size: var(--fs-h3); line-height: var(--lh-h3); letter-spacing: -.01em; font-weight: 600; }
h4, .titre-4 {
  font-family: var(--police-affichage);
  font-weight: 600;
  font-size: var(--fs-l);
  line-height: 1.25;
  letter-spacing: -.005em;
}
.surtitre {
  font-family: var(--police-affichage);
  font-weight: 600;
  font-size: var(--fs-mention);
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--texte-2);
}
.chapeau { font-size: var(--fs-l); line-height: 1.5; max-width: 58ch; color: var(--texte); }
.mention { font-size: var(--fs-mention); line-height: 1.5; color: var(--texte-2); }
.texte-2 { color: var(--texte-2); }
.chiffre { font-family: var(--police-affichage); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
/* Chiffres, prix, kilomètres, numéros de dossier dans le texte courant : Archivo, chasse proportionnelle.
   Ajouter .chiffres--tableau dans une colonne de tableau pour aligner les chiffres. */
.chiffres { font-family: var(--police-affichage); font-variant-numeric: proportional-nums lining-nums; letter-spacing: 0; }
.chiffres--tableau { font-variant-numeric: tabular-nums lining-nums; }
.chiffre-cle { display: grid; gap: var(--s-2); }
.chiffre-cle > :first-child {
  font-family: var(--police-affichage);
  font-stretch: var(--largeur-titre);
  font-weight: 600;
  font-size: clamp(40px, 2rem + 2.6vw, 72px);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.chiffre-cle__libelle { color: var(--texte-2); line-height: 1.45; }
strong, b { font-weight: 700; }
small { font-size: var(--fs-s); }
a { color: var(--lien); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
code, kbd { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }
.insecable { white-space: nowrap; }

/* Texte courant : flux vertical, mesure de 60 à 70 caractères */
.prose { max-width: var(--mesure); }
.prose > * + * { margin-top: 1em; }
.prose > :is(h2, h3, h4) { margin-top: 1.8em; }
.prose > :is(h2, h3, h4) + * { margin-top: .6em; }
.prose h2 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
.prose h3 { font-size: var(--fs-l); line-height: 1.3; }
.prose :is(ul, ol) { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose ul { list-style: none; padding-left: 1.5em; }
.prose ul > li { position: relative; }
.prose ul > li::before {
  content: "";
  position: absolute;
  left: -1.3em;
  top: .78em;
  width: .7em;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

/* Lien avec flèche */
.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--police-affichage);
  font-weight: 600;
  color: var(--lien);
  text-decoration: none;
}
.lien-fleche:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.lien-fleche .i { transition: transform var(--d-moyen) var(--e-cinema); }
.lien-fleche:hover .i { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   4. Accessibilité
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.evitement {
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  left: max(8px, env(safe-area-inset-left));
  z-index: calc(var(--z-flash) + 1);
  padding: 12px 18px;
  border-radius: var(--r-bouton);
  background: var(--blanc-chaud);
  color: var(--noir);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(calc(-100% - 16px));
}
.evitement:focus, .evitement:focus-visible { transform: none; }

/* Focus : anneau de 2 px décollé, couleur de la zone (vert signal sur sombre, vert profond sur clair) */
:focus-visible {
  outline: 2px solid var(--anneau, var(--vert-signal));
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

/* --------------------------------------------------------------------------
   5. Icônes et lampe (point vert fixe, héritage v3)
   -------------------------------------------------------------------------- */
.i { width: 1.25em; height: 1.25em; fill: currentColor; vertical-align: -.25em; }
.i--trait { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i--24 { width: 24px; height: 24px; }
.lampe {
  display: inline-block;
  flex: none;
  width: .62em;
  height: .62em;
  border-radius: 50%;
  background: var(--vert-signal);
  vertical-align: baseline;
}
.lampe::before, .lampe::after { content: none; }

/* --------------------------------------------------------------------------
   6. Logo B « le rond-point » (docs/SPEC-V5-PANNEAU-LOGO.md §1 ; composant js/components/ooc-logo.js)
   Le premier O de « OUI » est un rond-point vu du ciel (anneau, marquage pointillé) où roule une voiture (point),
   puis « UI OUI CAR'S ». Un seul <svg class="logo"> en ligne : .logo__anneau (var(--logo-marque)),
   .logo__pointilles et contour de .logo__voiture (var(--logo-fond)), .logo__voiture (var(--logo-voiture)),
   .logo__nom (currentColor = var(--logo-nom)), .logo__signature (var(--logo-marque)).
   Taille : font-size = hauteur de capitale du nom. Boîtes exactes : horizontal 9,40 × 1,04 em ;
   signature 9,40 × 1,62 em ; symbole 1,02 × 1,02 em. Minimums : logo 120 px de large (font-size ≥ 12,8 px),
   symbole 20 px. Deux versions seulement : nuit (par défaut, partout à l'écran) et claire (ton="clair", et
   toujours à l'impression).
   -------------------------------------------------------------------------- */
ooc-logo {
  display: inline-flex;
  flex: none;
  vertical-align: middle;
  line-height: 1;
  font-size: 15px;
  color: var(--logo-nom);
}
ooc-odometre, ooc-silhouette { display: inline-block; }
ooc-logo[ton="sombre"] {
  --logo-marque: var(--logo-marque-sombre); --logo-fond: var(--logo-fond-sombre);
  --logo-voiture: var(--logo-voiture-sombre); --logo-nom: var(--logo-nom-sombre);
}
ooc-logo[ton="clair"] {
  --logo-marque: var(--logo-marque-clair); --logo-fond: var(--logo-fond-clair);
  --logo-voiture: var(--logo-voiture-clair); --logo-nom: var(--logo-nom-clair);
}
.logo { display: block; flex: none; overflow: visible; }
.logo__anneau { stroke: var(--logo-marque); }
.logo__pointilles { stroke: var(--logo-fond); }
.logo__voiture { fill: var(--logo-voiture); stroke: var(--logo-fond); }
.logo__nom { fill: currentColor; }
.logo__signature { fill: var(--logo-marque); }

/* Avant la définition du composant (premier affichage) ou sans JavaScript : l'hôte réserve exactement la boîte du
   rendu final et y pose le fichier officiel (public/assets/marque/), recadré au millième près : même logo, même
   place, aucun décalage quand le composant prend le relais. */
ooc-logo:not(:defined) {
  --logo-fichier: url("/assets/marque/logo-sombre.svg");
  --logo-fichier-signature: url("/assets/marque/logo-signature-sombre.svg");
  --logo-fichier-symbole: url("/assets/marque/symbole-sombre.svg");
  width: 9.4em;
  height: 1.04em;
  background: var(--logo-fichier) -.06em -.04em / 9.556968em 1.12em no-repeat;
}
ooc-logo:not(:defined)[ton="clair"] {
  --logo-fichier: url("/assets/marque/logo-clair.svg");
  --logo-fichier-signature: url("/assets/marque/logo-signature-clair.svg");
  --logo-fichier-symbole: url("/assets/marque/symbole-clair.svg");
}
ooc-logo:not(:defined):is([variante="signature"], [variante="vertical"]) {
  height: 1.62em;
  background: var(--logo-fichier-signature) -.1em -.08em / 9.656968em 1.78em no-repeat;
}
ooc-logo:not(:defined)[variante="symbole"] {
  width: 1.02em;
  height: 1.02em;
  background: var(--logo-fichier-symbole) -.08em -.07em / 1.18em 1.16em no-repeat;
}
ooc-logo:not(:defined) > * { display: none !important; }

/* --------------------------------------------------------------------------
   7. Boutons
   -------------------------------------------------------------------------- */
.btn {
  --btn-fond: transparent;
  --btn-texte: var(--texte);
  --btn-bord: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid var(--btn-bord);
  border-radius: var(--r-bouton);
  background: var(--btn-fond);
  color: var(--btn-texte);
  font-family: var(--police-affichage);
  font-weight: 600;
  font-size: max(15px, calc(var(--fs-base) - 1px));
  line-height: 1.15;
  letter-spacing: .005em;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--d-court) var(--e-douce), border-color var(--d-court) var(--e-douce), color var(--d-court) var(--e-douce);
}
.btn:hover { text-decoration: none; }
.btn .i { width: 1.15em; height: 1.15em; }
.btn > .i:last-child:not(:first-child) { transition: transform var(--d-moyen) var(--e-cinema); }
.btn:hover > .i:last-child:not(:first-child) { transform: translateX(3px); }

.btn--primaire { --btn-fond: var(--vert-profond); --btn-texte: var(--blanc); --btn-bord: var(--vert-profond); }
.btn--primaire:hover { --btn-fond: var(--vert-profond-survol); --btn-bord: var(--vert-profond-survol); }
.btn--primaire:active { --btn-fond: var(--vert-profond-2); }

.btn--secondaire { --btn-bord: currentColor; --btn-texte: var(--texte); }
.btn--secondaire:hover { --btn-fond: var(--survol); }
.btn--secondaire:active { --btn-fond: var(--trait); }

.btn--clair { --btn-fond: var(--blanc-chaud); --btn-texte: var(--noir); --btn-bord: var(--blanc-chaud); }
.btn--clair:hover { --btn-fond: var(--blanc); --btn-bord: var(--blanc); }

.btn--fantome { --btn-texte: var(--lien); padding-inline: 12px; }
.btn--fantome:hover { --btn-fond: var(--survol); }

/* RÉSERVÉ aux liens partenaires assurance */
.btn--sortie { --btn-fond: var(--bleu-sortie); --btn-texte: var(--blanc); --btn-bord: var(--bleu-sortie); }
.btn--sortie:hover { --btn-fond: var(--bleu-sortie-2); --btn-bord: var(--bleu-sortie-2); }

.btn--parking { --btn-fond: var(--brun-parking); --btn-texte: var(--blanc); --btn-bord: var(--brun-parking); }
.btn--parking:hover { --btn-fond: var(--noir-3); --btn-bord: var(--noir-3); }

/* Héritage v3 (accueil) : le bouton OUI devient un bouton primaire de grande taille */
.btn--oui { --btn-fond: var(--vert-profond); --btn-texte: var(--blanc); --btn-bord: var(--vert-profond); min-height: 56px; padding: 0 28px; font-size: var(--fs-l); }
.btn__oui .lampe { display: none; }
.btn__sous { font-family: var(--police-texte); font-weight: 400; font-size: var(--fs-s); }

.btn--petit { min-height: 44px; padding: 0 16px; font-size: 14.5px; }
.btn--grand { min-height: 56px; padding: 0 30px; font-size: max(16px, var(--fs-base)); }
.btn--bloc { display: flex; width: 100%; }
.btn--rond, .btn--icone { width: 44px; min-height: 44px; padding: 0; }
.btn--rond { border-radius: 50%; }

.btn:disabled, .btn[aria-disabled="true"] {
  --btn-fond: var(--trait);
  --btn-texte: var(--texte-2);
  --btn-bord: transparent;
  cursor: not-allowed;
}
/* Chargement : petit anneau qui tourne (fonctionnel, figé en mode calme), le bouton garde sa couleur */
.btn[aria-busy="true"], .btn.btn--chargement { cursor: progress; }
.btn--primaire:is([aria-busy="true"], .btn--chargement) { --btn-fond: var(--vert-profond); --btn-texte: var(--blanc); --btn-bord: var(--vert-profond); }
.btn--sortie:is([aria-busy="true"], .btn--chargement) { --btn-fond: var(--bleu-sortie); --btn-texte: var(--blanc); }
.btn--secondaire:is([aria-busy="true"], .btn--chargement) { --btn-fond: transparent; --btn-texte: var(--texte); --btn-bord: currentColor; }
.btn[aria-busy="true"]::before, .btn.btn--chargement::before {
  content: "";
  flex: none;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: tourne 900ms linear infinite;
}
@keyframes tourne { to { transform: rotate(360deg); } }
@keyframes clignotant { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* --------------------------------------------------------------------------
   8. Formulaires — erreurs orange avec « ! », jamais de rouge
   -------------------------------------------------------------------------- */
.champ { display: grid; gap: 8px; margin-bottom: var(--s-5); }
.champ__label, .champ > label { font-weight: 700; line-height: 1.3; }
.champ__option { font-weight: 400; color: var(--texte-2); }
.champ__aide { font-size: var(--fs-s); line-height: 1.5; color: var(--texte-2); }
.champ :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea),
.controle {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--texte-2);
  border-radius: var(--r-bouton);
  background-color: var(--surface);
  color: var(--texte);
  font-size: max(16px, var(--fs-base));
  line-height: 1.3;
  appearance: none;
  transition: border-color var(--d-court) var(--e-douce), box-shadow var(--d-court) var(--e-douce);
}
.champ textarea { min-height: 128px; resize: vertical; }
.champ select:not([multiple]):not([size]):not([hidden]),
select.controle:not([multiple]):not([size]) {
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.champ :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea):hover { border-color: var(--texte); }
.champ :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea):focus-visible {
  border-color: var(--anneau);
  box-shadow: 0 0 0 1px var(--anneau);
  outline-offset: 2px;
}
.champ ::placeholder { color: var(--texte-2); opacity: 1; }
.champ :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea)[aria-invalid="true"] {
  border-color: var(--orange-alerte);
  box-shadow: inset 3px 0 0 var(--orange-alerte);
}
.champ__erreur, .erreur-orange {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  border-left: 3px solid var(--orange-alerte);
  border-radius: 0 var(--r-petit) var(--r-petit) 0;
  background: var(--orange-a15);
  color: var(--texte);
  font-weight: 600;
  line-height: 1.45;
}
.champ__erreur::before, .erreur-orange::before, .alerte::before {
  content: "!";
  content: "!" / "";
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--orange-alerte);
  color: var(--noir);
  font-family: var(--police-affichage);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}
.champ__erreur:empty { display: none; }
.champ--erreur .champ__label { color: var(--texte); }

/* Cases à cocher et boutons radio */
.case {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding-block: 10px;
  line-height: 1.45;
  cursor: pointer;
}
.case input {
  appearance: none;
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid var(--texte-2);
  border-radius: var(--r-petit);
  background: var(--surface);
  cursor: pointer;
  transition: background-color var(--d-court) var(--e-douce), border-color var(--d-court) var(--e-douce);
}
.case input[type="radio"] { border-radius: 50%; }
.case input:checked { border-color: var(--vert-signal); background: var(--vert-signal); }
.case input[type="checkbox"]:checked::after {
  content: "";
  width: 11px;
  height: 6px;
  margin-top: -3px;
  border-left: 2px solid var(--noir);
  border-bottom: 2px solid var(--noir);
  transform: rotate(-45deg);
}
.case input[type="radio"]:checked::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--noir);
}
.case input[aria-invalid="true"] { border-color: var(--orange-alerte); }

/* Résumé d'erreurs au submit (aria-live, focus) */
.resume-erreurs {
  padding: var(--s-4) var(--s-5);
  border-left: 3px solid var(--orange-alerte);
  border-radius: 0 var(--r-bouton) var(--r-bouton) 0;
  background: var(--orange-a15);
  color: var(--texte);
}
.resume-erreurs__titre { font-weight: 700; }
.resume-erreurs ul { margin-top: 6px; padding-left: 1.2em; }
.resume-erreurs a { color: inherit; font-weight: 600; }

/* Alertes et encarts */
.alerte {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: var(--s-4) var(--s-5);
  border-left: 3px solid var(--orange-alerte);
  border-radius: 0 var(--r-bouton) var(--r-bouton) 0;
  background: var(--orange-a15);
  color: var(--texte);
}
.encart {
  padding: var(--s-5) var(--s-6);
  border: 1px solid var(--trait);
  border-radius: var(--r-carte);
  background: var(--surface);
  color: var(--texte);
}
.encart--vert { border-left: 3px solid var(--vert-signal); }

/* --------------------------------------------------------------------------
   9. Cartes, pastilles, badges, mentions
   -------------------------------------------------------------------------- */
.carte {
  position: relative;
  padding: var(--s-6);
  border: 1px solid var(--trait);
  border-radius: var(--r-carte);
  background: var(--surface);
  color: var(--texte);
  box-shadow: var(--ombre);
}
@media (max-width: 599.98px) { .carte { padding: var(--s-5); } }
.carte--plate { box-shadow: none; }
.carte--sombre {
  --surface: var(--zb-surface); --texte: var(--zb-texte); --texte-2: var(--zb-texte-2);
  --lien: var(--zb-lien); --trait: var(--zb-trait); --ombre: var(--zb-ombre); --survol: var(--creme-a06); --anneau: var(--zb-anneau);
  color-scheme: dark;
}
/* Héritage : .carte--claire est devenue une carte de nuit surélevée (plus aucune surface claire à l'écran) */
.carte--claire {
  --surface: var(--surface-3); --texte: var(--zm-texte); --texte-2: var(--zm-texte-2);
  --lien: var(--zm-lien); --trait: var(--zm-trait); --ombre: var(--zm-ombre); --survol: var(--creme-a06); --anneau: var(--zm-anneau);
}
.carte--lien { transition: transform var(--d-moyen) var(--e-cinema), box-shadow var(--d-moyen) var(--e-cinema); }
.carte--lien:hover { transform: translateY(-3px); }
.carte--lien a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.carte__media {
  margin: calc(-1 * var(--s-6)) calc(-1 * var(--s-6)) var(--s-5);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-carte) var(--r-carte) 0 0;
  background: var(--noir);
}
@media (max-width: 599.98px) { .carte__media { margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-5)) var(--s-5); } }
.carte__media :is(img, video) { width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, 50% 50%); }
.carte__corps { display: grid; gap: var(--s-3); }

.pastille {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: var(--r-capsule);
  background: var(--trait);
  color: var(--texte);
  font-size: var(--fs-mention);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .01em;
  white-space: nowrap;
  vertical-align: middle;
}
.pastille--vert { background: var(--vert-profond); color: var(--blanc); }
.pastille--orange { background: var(--orange-alerte); color: var(--noir); }
.pastille--bleu { background: var(--bleu-sortie); color: var(--blanc); }
.pastille--brun { background: var(--brun-parking); color: var(--blanc); }
.pastille--eteinte { background: var(--lampe-eteinte); color: var(--blanc-chaud); }
.pastille--contour { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }

/* Statut d'une information (« Exemple », « à confirmer », « prix indicatif ») — UN seul style, sobre :
   petit texte gris précédé d'un astérisque, sans bord ni fond. Règle « aucun fait inventé » : la mention reste
   visible, mais une seule fois par bloc de préférence (.note-statut en bas de section, .statut-appel à côté
   de chaque valeur concernée). .badge-exemple (v3) a exactement le même rendu. */
.statut, .badge-exemple {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--texte-2);
  font-family: var(--police-texte);
  font-size: var(--fs-mention);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
  vertical-align: baseline;
  white-space: normal;
}
.statut::before, .badge-exemple::before { content: "*\00a0"; content: "*\00a0" / ""; }
/* Plusieurs statuts côte à côte : « * prix à confirmer · Exemple » */
:is(.statut, .badge-exemple) + :is(.statut, .badge-exemple)::before { content: "·\00a0"; content: "·\00a0" / ""; }
/* Astérisque d'appel seul, à côté d'une valeur (le texte de la note est dans .note-statut) */
.statut-appel { margin-left: .1em; color: var(--texte-2); font-weight: 400; font-size: .7em; line-height: 0; vertical-align: super; }
/* Note unique de section : « * Prix indicatifs, à confirmer par l'agence · données d'exemple » */
.note-statut { font-size: var(--fs-mention); line-height: 1.5; color: var(--texte-2); }
.note-statut::before { content: "*\00a0"; content: "*\00a0" / ""; }

/* Information que l'agence n'a pas encore fournie.
   Public : texte gris en italique, sans fond ni crochets (entete.js remplace « [à compléter par l'agence] »
   par « communiqué prochainement »). Admin, corps des pages juridiques et facture (mentions obligatoires) :
   surligné orange, à traiter avant la mise en ligne. */
.a-completer {
  padding: 0;
  background: none;
  outline: 0;
  color: var(--texte-2);
  font-style: italic;
  font-weight: 400;
}
html[data-page="admin"] .a-completer,
html[data-page="legal"] main .a-completer,
html[data-page="facture"] .facture .a-completer {
  padding: 0 .3em;
  border-radius: 3px;
  background: var(--orange-a15);
  outline: 1px dashed var(--orange-alerte);
  outline-offset: 0;
  color: var(--texte);
  font-style: normal;
  font-weight: 700;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.mention-partenaire { font-size: var(--fs-mention); line-height: 1.5; color: var(--texte); }
.mention-partenaire strong { font-weight: 700; }
.mention-partenaire a { color: inherit; font-weight: 600; }
.mention-partenaire--cartouche {
  padding: 10px 14px;
  border-radius: var(--r-bouton);
  background: var(--noir-2);
  color: var(--blanc-chaud);
  box-shadow: inset 0 0 0 1px var(--creme-a12);
}

/* Lien de sortie (assurance partenaire) — bleu sobre, réservé à l'affiliation */
.sortie-lien {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: var(--r-bouton);
  background: var(--bleu-sortie);
  color: var(--blanc);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color var(--d-court) var(--e-douce);
}
.sortie-lien:hover { background: var(--bleu-sortie-2); text-decoration: none; }
.sortie-lien__numero {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: var(--r-petit);
  background: var(--blanc);
  color: var(--bleu-sortie);
  font-family: var(--police-affichage);
  font-weight: 700;
  font-size: 13px;
}
.sortie-lien__texte { display: grid; }
.sortie-lien__sous { font-weight: 400; font-size: var(--fs-s); opacity: .9; }
.sortie-lien .i { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   10. Tableaux et fiches
   -------------------------------------------------------------------------- */
.tableau { width: 100%; font-size: var(--fs-base); line-height: 1.5; font-variant-numeric: tabular-nums; }
.tableau caption { text-align: left; font-weight: 700; padding-bottom: var(--s-3); }
.tableau th, .tableau td { padding: 14px 16px 14px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--trait); }
.tableau thead th {
  padding-top: 0;
  font-family: var(--police-affichage);
  font-size: var(--fs-mention);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--texte-2);
  border-bottom-color: var(--texte-2);
}
.tableau tbody th { font-weight: 700; }
.tableau .num { text-align: right; white-space: nowrap; }
@media (max-width: 699.98px) {
  .tableau--empile thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tableau--empile tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--trait); }
  .tableau--empile :is(td, th) { display: block; padding: 3px 0; border: 0; }
  .tableau--empile td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-s); font-weight: 700; color: var(--texte-2); }
}
.fiche { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--trait); }
.fiche > div { display: grid; gap: 2px 24px; padding: 14px 0; border-bottom: 1px solid var(--trait); }
.fiche dt { font-weight: 700; }
.fiche dd { margin: 0; }
@media (min-width: 700px) { .fiche > div { grid-template-columns: 240px 1fr; } }

/* --------------------------------------------------------------------------
   11. Médias : image ou vidéo plein cadre, voile, bouton pause, en-tête photo
   Une vidéo (.media__video) ne démarre seule que si le mouvement est autorisé ;
   en mode calme ou prefers-reduced-motion, elle est masquée et son poster reste.
   -------------------------------------------------------------------------- */
.media { position: relative; overflow: hidden; background: var(--noir); }
.media > :is(img, video, picture), .media picture > img, .media__video, .media__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
}
.media > :is(img, video, picture, .media__video, .media__poster) { position: absolute; inset: 0; }
.media__voile { position: absolute; inset: 0; background: var(--voile-bas); pointer-events: none; }
html[data-calme="on"] .media__video { display: none; }
@media (prefers-reduced-motion: reduce) { .media__video { display: none; } }

.media-pause {
  position: absolute;
  right: max(var(--bord-conteneur), env(safe-area-inset-right));
  bottom: var(--s-5);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--asphalte-a45);
  color: var(--blanc-chaud);
  box-shadow: inset 0 0 0 1px var(--creme-a40);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  --anneau: var(--vert-signal);
  transition: background-color var(--d-court) var(--e-douce);
}
.media-pause:hover { background: var(--asphalte-a70); }
.media-pause .i { width: 18px; height: 18px; }
.media-pause__lecture, .media-pause[aria-pressed="true"] .media-pause__pause { display: none; }
.media-pause[aria-pressed="true"] .media-pause__lecture { display: block; }
html[data-calme="on"] .media-pause { display: none; }
@media (prefers-reduced-motion: reduce) { .media-pause { display: none; } }

/* En-tête de page photographique (pages statiques, véhicules…) : poser data-entete-transparent dessus */
.tete-photo {
  --fond: var(--zb-fond); --texte: var(--zb-texte); --texte-2: var(--creme-a70); --lien: var(--blanc-chaud);
  --trait: var(--creme-a20); --survol: var(--creme-a12); --anneau: var(--vert-signal);
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(520px, 82svh, 860px);
  padding: calc(var(--h-entete) + var(--s-8)) 0 clamp(48px, 7vw, 104px);
  overflow: clip;
  background: var(--noir);
  color: var(--blanc-chaud);
  color-scheme: dark;
}
.tete-photo--courte { min-height: clamp(440px, 64svh, 680px); }
.tete-photo--plein { min-height: 100svh; }
/* Texte en haut (ciel, mer) quand le sujet de l'image occupe le bas du cadre */
.tete-photo--haut { align-items: start; padding-top: calc(var(--h-entete) + clamp(48px, 9vh, 112px)); }
.tete-photo--haut .tete-photo__chapeau { max-width: 46ch; }
@media (min-width: 900px) {
  .tete-photo--haut::after { background: linear-gradient(to bottom, var(--noir-a78) 0%, var(--asphalte-a45) 34%, var(--noir-a0) 62%), linear-gradient(to top, var(--noir-a35), var(--noir-a0) 30%); }
}
.tete-photo__media { position: absolute; inset: 0; z-index: -2; }
.tete-photo__media :is(img, picture) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
  transform-origin: var(--focal, 50% 50%);
  animation: tete-photo-approche 2400ms var(--e-cinema) both;
}
.tete-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--voile-bas);
  pointer-events: none;
}
@media (max-width: 899.98px) {
  .tete-photo::after { background: linear-gradient(to top, var(--noir-a92) 0%, var(--noir-a72) 45%, var(--noir-a50) 75%, var(--noir-a55) 100%); }
}
@media (min-width: 900px) {
  .tete-photo::after { background: var(--voile-bas), linear-gradient(90deg, var(--noir-a55) 0%, var(--noir-a0) 62%); }
}
.tete-photo__contenu { display: grid; justify-items: start; gap: var(--s-5); }
.tete-photo__contenu > * { animation: tete-photo-texte var(--d-revele) var(--e-cinema) both; }
.tete-photo__contenu > :nth-child(2) { animation-delay: 80ms; }
.tete-photo__contenu > :nth-child(3) { animation-delay: 160ms; }
.tete-photo__contenu > :nth-child(n+4) { animation-delay: 240ms; }
.tete-photo__titre { max-width: 16ch; font-size: var(--fs-h1); }
.tete-photo__chapeau { max-width: 52ch; font-size: var(--fs-l); line-height: 1.5; color: var(--blanc-chaud); }
.tete-photo .surtitre { color: var(--creme-a70); }
.tete-photo__actions { margin-top: var(--s-2); width: 100%; }
.tete-photo__actions .btn { flex: 0 1 auto; }
@media (max-width: 599.98px) { .tete-photo__actions .btn { flex: 1 1 100%; } }
.tete-photo__legende {
  position: absolute;
  right: max(var(--bord-conteneur), env(safe-area-inset-right));
  bottom: var(--s-4);
  max-width: 40ch;
  font-size: 12px;
  line-height: 1.4;
  color: var(--creme-a70);
  text-align: right;
}
@media (max-width: 699.98px) { .tete-photo__legende { display: none; } }
@keyframes tete-photo-approche { from { transform: scale(1.06); } to { transform: none; } }
@keyframes tete-photo-texte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   12. En-tête — opaque (noir translucide, flou) ; transparent sur un héros
   ([data-transparent] posé par entete.js)
   -------------------------------------------------------------------------- */
.entete {
  --anneau: var(--vert-signal);
  --texte: var(--blanc-chaud);
  --survol: var(--creme-a12);
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-entete);
  height: calc(var(--h-entete) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--blanc-chaud);
  isolation: isolate;
}
.entete::before,
.entete::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity var(--d-moyen) var(--e-douce);
}
.entete::before { background: var(--voile-haut); opacity: 0; height: 140%; }
.entete::after {
  background: var(--noir-a92);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 1px 0 var(--creme-a06);
  opacity: 1;
}
.entete[data-transparent]::before { opacity: 1; }
.entete[data-transparent]::after { opacity: 0; }

.entete__rail {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  height: 100%;
  max-width: calc(var(--largeur-max) + 2 * var(--gouttiere));
  margin-inline: auto;
  padding-inline: max(var(--gouttiere), env(safe-area-inset-left)) max(var(--gouttiere), env(safe-area-inset-right));
}
.entete__logo {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 44px;
  margin-right: auto;
  border-radius: var(--r-petit);
  color: var(--blanc-chaud);
  text-decoration: none;
}
/* Logo B : UNE taille pour tous les en-têtes (site, menu, espace élève, poste de l'agence) = jeton --logo-entete
   (tokens.css), hauteur de capitale 14 → 15 → 18 px (132 → 141 → 169 px de large). */
.entete__logo ooc-logo { font-size: var(--logo-entete); }
.entete__logo-horizontal, .entete__logo-compact { font-size: inherit; }
.entete__logo-compact { display: none; }
.entete__nav { display: none; }
.entete__outils { display: flex; align-items: center; gap: var(--s-2); flex: none; }

/* Boutons ronds de l'en-tête : menu */
.entete__menu, .entete__menu-sansjs {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--blanc-chaud);
  box-shadow: inset 0 0 0 1px var(--creme-a20);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--d-court) var(--e-douce), box-shadow var(--d-court) var(--e-douce);
}
.entete__menu:hover, .entete__menu-sansjs:hover { background: var(--creme-a12); }
.entete__menu .i, .entete__menu-sansjs .i { width: 22px; height: 22px; }

/* Sans JavaScript : aucune commande inerte à l'écran ; le menu cède la place à un lien vers le pied */
.entete__menu-sansjs { display: none; }
html:not([data-js="1"]) :is(.entete__menu, .reglage, .double-commande, .pied__reglages,
  .pastille-sorties__bouton, .media-pause, .pmv__pause, .pmv__legende) { display: none; }
@media (max-width: 1199.98px) {
  html:not([data-js="1"]) .entete__menu-sansjs { display: grid; }
}

/* Bouton « Espace élève » / « Mon espace » */
.entete__espace { white-space: nowrap; }
.entete__espace-long { display: none; }
.entete__espace-icone { display: none; width: 20px; height: 20px; }
@media (max-width: 359.98px) {
  .entete__espace { width: 44px; padding: 0; }
  .entete__espace-court { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .entete__espace-icone { display: block; }
}

/* Pastille « Assurances » + popover non modal.
   Téléphone : ouverte depuis la barre du bas (popover en bas d'écran). Dès 768 px : pastille en contour bleu dans
   l'en-tête (la barre du bas disparaît) ; le popover se déplie sous la pastille. */
.pastille-sorties { display: contents; }
.pastille-sorties__bouton { display: none; }
.popover-sorties {
  --texte: var(--blanc-chaud); --texte-2: var(--gris); --trait: var(--creme-a12); --anneau: var(--vert-signal);
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(var(--h-barre-bas) + var(--zone-sure-bas) + 12px);
  z-index: calc(var(--z-entete) + 1);
  display: grid;
  gap: var(--s-3);
  max-height: calc(100svh - var(--h-entete) - var(--h-barre-bas) - 40px);
  overflow: auto;
  padding: var(--s-5);
  border-radius: var(--r-carte);
  background: var(--noir-2);
  color: var(--blanc-chaud);
  box-shadow: 0 0 0 1px var(--creme-a12), 0 24px 60px -24px var(--ombre-portee);
  transform-origin: 50% 100%;
  animation: popover-entree var(--d-moyen) var(--e-cinema);
}
@media (max-width: 767.98px) { html:not([data-barre-bas="1"]) .popover-sorties { bottom: calc(var(--zone-sure-bas) + 12px); } }
@keyframes popover-entree { from { opacity: 0; transform: translateY(8px); } }
.popover-sorties__titre { font-family: var(--police-affichage); font-weight: 600; font-size: var(--fs-l); line-height: 1.2; }
.popover-sorties .mention-partenaire { color: var(--creme-a70); }
.popover-sorties__liste { display: grid; gap: 8px; list-style: none; padding: 0; }

@media (min-width: 768px) {
  .pastille-sorties { display: block; position: relative; flex: none; }
  .pastille-sorties__bouton {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 15px 0 12px;
    border-radius: var(--r-capsule);
    background: transparent;
    color: var(--blanc-chaud);
    box-shadow: inset 0 0 0 1.5px var(--bleu-sortie);
    font-family: var(--police-affichage);
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: .01em;
    white-space: nowrap;
    transition: background-color var(--d-court) var(--e-douce), box-shadow var(--d-court) var(--e-douce);
  }
  .pastille-sorties__bouton:hover, .pastille-sorties__bouton[aria-expanded="true"] { background: var(--bleu-sortie); box-shadow: inset 0 0 0 1.5px var(--bleu-sortie); }
  .pastille-sorties__bouton .i { width: 16px; height: 16px; }
  /* Accueil : la pastille attend la fin du héros (bandeau partenaires déjà visible), mais sa place reste réservée :
     rien ne bouge dans l'en-tête quand elle apparaît. visibility la retire aussi de l'ordre de tabulation. */
  html[data-page="accueil"]:not([data-apres-hero="1"]) .pastille-sorties__bouton { visibility: hidden; }
  .popover-sorties {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    left: auto;
    bottom: auto;
    width: 380px;
    max-height: none;
    transform-origin: 80% 0;
  }
}

/* Ordinateur : navigation complète. Grille à trois colonnes : la navigation est centrée sur la page, le logo
   à gauche et les outils à droite ne la déplacent jamais. */
@media (min-width: 1200px) {
  .entete__rail { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); column-gap: var(--s-5); }
  .entete__logo { margin-right: 0; justify-self: start; }
  .entete__nav { display: block; justify-self: center; }
  .entete__outils { justify-self: end; }
  .entete__nav ul { display: flex; gap: 0; list-style: none; padding: 0; }
  .entete__nav a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--r-petit);
    color: var(--creme-a70);
    font-family: var(--police-affichage);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: .01em;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--d-court) var(--e-douce);
  }
  .entete__nav a::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 8px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform var(--d-moyen) var(--e-cinema);
  }
  .entete__nav a:hover { color: var(--blanc-chaud); }
  .entete[data-transparent] .entete__nav a { color: var(--blanc-chaud); }
  .entete__nav a:hover::after { transform: scaleX(1); }
  .entete__nav a[aria-current] { color: var(--blanc-chaud); }
  .entete__nav a[aria-current]::after { transform: scaleX(1); height: 2px; background: var(--vert-signal); }
  .entete__espace-long { display: inline; }
  .entete__espace-court { display: none; }
  .entete__menu { display: none; }

}
@media (min-width: 1200px) and (max-width: 1379.98px) {
  .entete__nav a { padding: 0 9px; font-size: 14.5px; }
  .entete__nav a::after { left: 9px; right: 9px; }
  .pastille-sorties__bouton { padding: 0; width: 40px; justify-content: center; }
  .pastille-sorties__bouton span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* --------------------------------------------------------------------------
   13. Menu plein écran (mobile et tablette, <dialog>)
   -------------------------------------------------------------------------- */
.menu-plein, .menu-poteau {
  --fond: var(--noir); --surface: var(--noir-2); --texte: var(--blanc-chaud); --texte-2: var(--gris);
  --lien: var(--blanc-chaud); --trait: var(--creme-a12); --survol: var(--creme-a06); --anneau: var(--vert-signal);
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--noir);
  color: var(--blanc-chaud);
  color-scheme: dark;
  opacity: 0;
  transition: opacity var(--d-moyen) var(--e-douce);
}
.menu-plein[data-ouvert], .menu-poteau[data-ouvert] { opacity: 1; }
.menu-plein::backdrop, .menu-poteau::backdrop { background: var(--noir); }
.menu-plein:not([open]), .menu-poteau:not([open]) { display: none; }
.menu-plein__tete, .menu-poteau__tete {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: calc(var(--h-entete) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(var(--gouttiere), env(safe-area-inset-right)) 0 max(var(--gouttiere), env(safe-area-inset-left));
  background: var(--noir);
  box-shadow: 0 1px 0 var(--creme-a06);
}
.menu-plein__logo { display: flex; align-items: center; min-height: 44px; color: var(--blanc-chaud); text-decoration: none; border-radius: var(--r-petit); }
.menu-plein__logo ooc-logo { font-size: var(--logo-entete); }
.menu-plein__fermer, .menu-poteau__fermer {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--blanc-chaud);
  box-shadow: inset 0 0 0 1px var(--creme-a20);
}
.menu-plein__fermer:hover { background: var(--creme-a12); }
.menu-plein__fermer .i, .menu-poteau__fermer .i { width: 22px; height: 22px; }
.menu-plein__corps {
  display: grid;
  gap: var(--s-7);
  min-height: calc(100% - var(--h-entete));
  align-content: space-between;
  padding: var(--s-5) max(var(--gouttiere), env(safe-area-inset-right)) calc(var(--s-6) + var(--zone-sure-bas)) max(var(--gouttiere), env(safe-area-inset-left));
}
.menu-plein__liens { display: grid; list-style: none; padding: 0; border-top: 1px solid var(--creme-a12); }
.menu-plein__liens li { border-bottom: 1px solid var(--creme-a12); }
.menu-plein__lien {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: baseline;
  padding: 12px 0;
  color: var(--blanc-chaud);
  font-family: var(--police-affichage);
  font-stretch: var(--largeur-titre);
  font-weight: 600;
  font-size: clamp(30px, 8.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.02em;
  text-decoration: none;
}
.menu-plein__num {
  font-family: var(--police-affichage);
  font-stretch: 100%;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--gris);
  font-variant-numeric: tabular-nums;
  transform: translateY(-.9em);
}
.menu-plein__lien:hover, .menu-plein__lien[aria-current] { color: var(--vert-signal); }
.menu-plein__secondaires {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 0 var(--s-5);
  margin-top: var(--s-5);
  padding: 0;
  list-style: none;
}
.menu-plein__secondaires a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--creme-a70);
  font-size: var(--fs-base);
  text-decoration: none;
}
.menu-plein__secondaires a:hover, .menu-plein__secondaires a[aria-current] { color: var(--blanc-chaud); text-decoration: underline; }
.menu-plein__bas { display: grid; gap: var(--s-5); }
.menu-plein__reglages { display: grid; gap: 0; border-top: 1px solid var(--creme-a12); }
.menu-plein__reglages .reglage { border-bottom: 1px solid var(--creme-a12); }
.menu-plein__adresse { font-size: var(--fs-s); color: var(--gris); }
/* Entrée : fondu et montée en décalé, 600 ms, sans rebond */
.menu-plein__liens li, .menu-plein__secondaires, .menu-plein__bas {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--d-long) var(--e-cinema), transform var(--d-long) var(--e-cinema);
  transition-delay: calc(80ms + var(--i, 0) * 45ms);
}
.menu-plein__liens li:nth-child(2) { --i: 1; }
.menu-plein__liens li:nth-child(3) { --i: 2; }
.menu-plein__liens li:nth-child(4) { --i: 3; }
.menu-plein__liens li:nth-child(5) { --i: 4; }
.menu-plein__liens li:nth-child(6) { --i: 5; }
.menu-plein__liens li:nth-child(7) { --i: 6; }
.menu-plein__secondaires { --i: 7; }
.menu-plein__bas { --i: 8; }
.menu-plein[data-ouvert] :is(.menu-plein__liens li, .menu-plein__secondaires, .menu-plein__bas) { opacity: 1; transform: none; }
@media (min-width: 720px) {
  .menu-plein__corps { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; column-gap: var(--s-8); }
}

/* Réglage « Réduire les animations » : bouton bascule avec interrupteur (le seul réglage d'affichage) */
.reglage, .double-commande {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  width: 100%;
  min-height: 52px;
  padding: 6px 0;
  color: var(--texte);
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}
.reglage__interrupteur {
  position: relative;
  flex: none;
  width: 40px;
  height: 22px;
  border-radius: var(--r-capsule);
  box-shadow: inset 0 0 0 1.5px var(--texte-2);
  transition: background-color var(--d-court) var(--e-douce), box-shadow var(--d-court) var(--e-douce);
}
.reglage__interrupteur::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--texte-2);
  transition: transform var(--d-moyen) var(--e-cinema), background-color var(--d-court) var(--e-douce);
}
.reglage[aria-pressed="true"] .reglage__interrupteur { background: var(--vert-signal); box-shadow: inset 0 0 0 1.5px var(--vert-signal); }
.reglage[aria-pressed="true"] .reglage__interrupteur::after { transform: translateX(18px); background: var(--noir); }
.reglage:hover .reglage__libelle { text-decoration: underline; text-underline-offset: .2em; }
.double-commande .i { display: none; }
.double-commande[aria-pressed="true"] { color: var(--vert-signal); }

/* Héritage v3 : liens « panneau » et panonceaux, rendus en simples liens de liste */
.panneau-direction, .panonceau {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 48px;
  color: var(--texte);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--trait);
}
.panneau-direction__distance { display: none; }
.panneau-direction:hover, .panonceau:hover { color: var(--lien); }

/* --------------------------------------------------------------------------
   14. Barre du bas mobile (accueil après le héros, véhicules)
   -------------------------------------------------------------------------- */
.barre-bas {
  --anneau: var(--vert-signal);
  position: fixed;
  inset: auto 0 0;
  z-index: calc(var(--z-entete) - 1);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 4px;
  height: calc(var(--h-barre-bas) + var(--zone-sure-bas));
  padding: 0 max(8px, env(safe-area-inset-right)) var(--zone-sure-bas) max(8px, env(safe-area-inset-left));
  background: var(--noir-a90);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  color: var(--blanc-chaud);
  box-shadow: 0 -1px 0 var(--creme-a12);
  visibility: hidden;
  transform: translateY(110%);
  transition: transform var(--d-long) var(--e-cinema), visibility 0s linear var(--d-long);
}
.barre-bas[data-visible="1"], html[data-js="0"] .barre-bas {
  visibility: visible;
  transform: none;
  transition: transform var(--d-long) var(--e-cinema), visibility 0s;
}
.barre-bas__lien {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 52px;
  border-radius: var(--r-bouton);
  color: var(--creme-a70);
  font-family: var(--police-affichage);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.barre-bas__lien { position: relative; }
.barre-bas__lien .i { width: 22px; height: 22px; }
/* Icônes toutes monochromes ; onglet actif en blanc avec un trait vert de 2 px au-dessus */
.barre-bas__lien[aria-current], .barre-bas__lien[aria-expanded="true"] { color: var(--blanc-chaud); }
.barre-bas__lien[aria-current]::before, .barre-bas__lien[aria-expanded="true"]::before {
  content: "";
  position: absolute;
  top: -6px;              /* bord haut de la barre : (64 - 52) / 2 */
  left: 28%;
  right: 28%;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--vert-signal);
}
/* « Réserver » : accent de texte, sans aplat */
.barre-bas__lien--reserver { color: var(--vert-signal); font-weight: 600; }
.barre-bas__lien--reserver[aria-current] { color: var(--vert-signal); }
/* Téléphone uniquement : dès 768 px, l'en-tête porte tout (pastille assurances, espace élève, menu) */
@media (min-width: 768px) { .barre-bas { display: none; } }

/* --------------------------------------------------------------------------
   15. Pied de page
   -------------------------------------------------------------------------- */
.pied {
  position: relative;
  z-index: var(--z-contenu);
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: calc(var(--s-6) + var(--zone-sure-bas));
  border-top: 1px solid var(--filet);
  background-color: var(--nuit);
}
.pied__haut {
  display: grid;
  gap: var(--s-5);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--creme-a12);
}
.pied__logo { display: inline-flex; justify-self: start; min-height: 44px; align-items: center; color: var(--blanc-chaud); text-decoration: none; border-radius: var(--r-petit); }
/* Pied : logo « signature » (AUTO-ÉCOLE · MARSEILLE) assez grand pour que la signature reste lisible : capitale
   du nom 30 → 34 px (282 → 320 px de large, signature 7,8 → 8,8 px de capitale). Sur téléphone, le logo prend toute
   la largeur du conteneur moins sa zone de protection à droite (rayon de l'anneau, 0,51 em) : 9,91 em au total,
   soit 34 px de capitale dès 377 px d'écran, 28 px à 320 px (jamais moins de 26 px). */
.pied__logo ooc-logo { font-size: clamp(30px, 1rem + 1.25vw, 34px); }
@media (max-width: 599.98px) {
  .pied__logo ooc-logo { font-size: clamp(26px, (100vw - 2 * var(--gouttiere)) / 9.91, 34px); }
}
.pied__accroche {
  max-width: 34ch;
  font-family: var(--police-affichage);
  font-stretch: var(--largeur-titre);
  font-weight: 500;
  font-size: clamp(22px, 1rem + 1.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--blanc-chaud);
}
.pied__actions { align-self: end; }
@media (min-width: 1000px) {
  .pied__haut { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; column-gap: var(--s-8); }
  .pied__logo { grid-column: 1 / -1; }
  .pied__actions { justify-content: flex-end; }
}
.pied__grille {
  display: grid;
  gap: var(--s-7) var(--s-6);
  padding-block: clamp(40px, 5vw, 64px);
}
.pied__titre {
  margin-bottom: var(--s-4);
  font-family: var(--police-affichage);
  font-weight: 600;
  font-size: var(--fs-mention);
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gris);
}
.pied__liste { display: grid; gap: 0; list-style: none; padding: 0; }
.pied__liste a, .pied__adresse a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--blanc-chaud);
  text-decoration: none;
  line-height: 1.35;
}
@media (pointer: coarse) { .pied__liste a, .pied__adresse a { min-height: 44px; } }
.pied__liste a:hover, .pied__adresse a:hover { text-decoration: underline; text-underline-offset: .22em; }
.pied__liste a[aria-current] { color: var(--vert-signal); }
.pied__adresse { display: grid; gap: var(--s-2); color: var(--blanc-chaud); line-height: 1.5; }
.pied__a-confirmer { color: var(--gris); font-size: var(--fs-s); }
.pied__acces { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
.pied__sous-titre {
  font-family: var(--police-affichage);
  font-weight: 600;
  font-size: var(--fs-mention);
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gris);
}
.pied__acces-liste { display: grid; gap: 6px; padding: 0; list-style: none; color: var(--blanc-chaud); line-height: 1.45; }
.pied__acces-liste li { display: grid; grid-template-columns: 12px 1fr; gap: 10px; align-items: baseline; }
.pied__acces-liste li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--vert-signal); transform: translateY(-2px); }
.pied__reglages { display: grid; align-content: start; gap: 0; }
.pied__reglages .pied__titre { margin-bottom: var(--s-2); }
.pied__reglages .reglage { border-bottom: 1px solid var(--creme-a12); }
.pied__bas {
  display: grid;
  gap: 6px;
  padding-top: var(--s-5);
  border-top: 1px solid var(--creme-a12);
  font-size: var(--fs-mention);
  line-height: 1.55;
  color: var(--gris);
}
.pied__bas a { color: var(--blanc-chaud); }
@media (min-width: 700px) {
  .pied__grille { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .pied__grille { grid-template-columns: 1fr 1.15fr 1fr .95fr; }
  .pied__bas { grid-template-columns: repeat(2, auto); justify-content: space-between; column-gap: var(--s-7); }
}

/* --------------------------------------------------------------------------
   16. Toasts (région aria-live créée par dialog.js)
   -------------------------------------------------------------------------- */
.toasts {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--s-4) + var(--zone-sure-bas));
  z-index: var(--z-toast);
  display: grid;
  justify-items: center;
  gap: var(--s-2);
  padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  pointer-events: none;
}
html[data-barre-bas="1"] .toasts { bottom: calc(var(--h-barre-bas) + var(--zone-sure-bas) + var(--s-3)); }
.toast {
  --texte: var(--blanc-chaud); --texte-2: var(--gris); --survol: var(--creme-a06); --trait: var(--creme-a20); --anneau: var(--vert-signal);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 4px 12px;
  width: min(520px, 100%);
  padding: 14px 8px 14px 16px;
  border-radius: var(--r-carte);
  background: var(--noir-2);
  color: var(--blanc-chaud);
  box-shadow: 0 0 0 1px var(--creme-a12), 0 24px 48px -24px var(--ombre-portee);
  pointer-events: auto;
  transition: opacity var(--d-moyen) var(--e-cinema), transform var(--d-moyen) var(--e-cinema);
}
.toast[data-etat="entree"], .toast[data-etat="sortie"] { opacity: 0; transform: translateY(12px); }
.toast__icone {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--creme-a12);
  color: var(--blanc-chaud);
  font-family: var(--police-affichage);
  font-weight: 700;
  font-size: 12px;
}
.toast--succes .toast__icone { background: var(--vert-signal); color: var(--noir); }
.toast--alerte .toast__icone { background: var(--orange-alerte); color: var(--noir); }
.toast__icone .i { width: 15px; height: 15px; }
.toast__message { padding-top: 1px; font-weight: 600; line-height: 1.45; }
.toast__fermer {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: -7px 0;
  border-radius: 50%;
  color: var(--gris);
}
.toast__fermer:hover { color: var(--blanc-chaud); background: var(--creme-a06); }
.toast__fermer .i { width: 18px; height: 18px; }
.toast__actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.toast__actions .btn { min-height: 40px; padding: 0 14px; font-size: var(--fs-s); }

/* --------------------------------------------------------------------------
   17. Dialogues (.dialogue, centré) et feuilles du bas (.feuille)
   -------------------------------------------------------------------------- */
.dialogue, .feuille {
  --fond: var(--surface-2);
  --surface: var(--surface-3);
  --texte: var(--zm-texte);
  --texte-2: var(--zm-texte-2);
  --lien: var(--zm-lien);
  --trait: var(--zm-trait);
  --ombre: var(--zm-ombre);
  --survol: var(--creme-a06);
  --anneau: var(--zm-anneau);
  z-index: var(--z-dialog);
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--fond);
  color: var(--texte);
  box-shadow: var(--ombre-haute);
  color-scheme: dark;
}
.dialogue--sombre, .feuille--sombre {
  --fond: var(--zb-surface); --surface: var(--zb-fond); --texte: var(--zb-texte); --texte-2: var(--zb-texte-2);
  --lien: var(--zb-lien); --trait: var(--zb-trait); --ombre: var(--zb-ombre); --survol: var(--creme-a06); --anneau: var(--zb-anneau);
  color-scheme: dark;
}
.dialogue { border-radius: var(--r-carte); }
div.dialogue, div.feuille { position: fixed; }
div.dialogue { top: 50%; left: 50%; translate: -50% -50%; }
.dialogue::backdrop, .feuille::backdrop { background: var(--asphalte-a70); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.voile {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-dialog) - 1);
  background: var(--asphalte-a70);
  opacity: 0;
  transition: opacity var(--d-moyen) var(--e-douce);
}
.voile[data-ouvert] { opacity: 1; }
.dialogue { opacity: 0; transform: translateY(10px); transition: opacity var(--d-moyen) var(--e-cinema), transform var(--d-moyen) var(--e-cinema); }
.dialogue[data-ouvert] { opacity: 1; transform: none; }

.feuille {
  inset: auto 0 0 0;
  width: 100%;
  max-height: 92dvh;
  margin: auto 0 0;
  border-radius: var(--r-feuille);
  padding-bottom: var(--zone-sure-bas);
  transform: translateY(100%);
  transition: transform var(--d-long) var(--e-cinema);
}
div.feuille { left: 0; right: 0; bottom: 0; }
.feuille[data-ouvert] { transform: none; }
.feuille::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 2px;
  background: var(--trait);
}
@media (min-width: 720px) {
  .feuille {
    inset: 0;
    width: min(600px, calc(100vw - 48px));
    max-height: calc(100dvh - 48px);
    margin: auto;
    border-radius: var(--r-carte);
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--d-moyen) var(--e-cinema), transform var(--d-moyen) var(--e-cinema);
  }
  div.feuille { top: 50%; left: 50%; right: auto; bottom: auto; translate: -50% -50%; }
  .feuille[data-ouvert] { opacity: 1; transform: none; }
  .feuille::before { display: none; }
}
.dialogue__tete {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-5) var(--s-3) var(--s-6);
  background: var(--fond);
}
.dialogue__titre { font-family: var(--police-affichage); font-stretch: var(--largeur-titre); font-weight: 600; font-size: var(--fs-h3); line-height: 1.15; }
.dialogue__corps { padding: 0 var(--s-6) var(--s-6); }
.dialogue__pied {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-6);
  background: var(--fond);
  box-shadow: 0 -1px 0 var(--trait);
}
@media (max-width: 599.98px) {
  .dialogue__tete { padding-left: var(--s-5); }
  .dialogue__corps { padding: 0 var(--s-5) var(--s-5); }
  .dialogue__pied { padding: var(--s-4) var(--s-5); }
}
.dialogue__fermer {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin: -6px -6px 0 0;
  border-radius: 50%;
  color: var(--texte);
}
.dialogue__fermer:hover { background: var(--survol); }
.dialogue__fermer .i { width: 22px; height: 22px; }
.dialogue--alerte .dialogue__tete { box-shadow: inset 0 3px 0 var(--orange-alerte); padding-top: calc(var(--s-5) + 3px); }
html.defilement-bloque { overflow: hidden; }

/* --------------------------------------------------------------------------
   18. Textes au vouvoiement : entete.js pose le texte de data-vous
   -------------------------------------------------------------------------- */
[data-vous] { display: inline; }

/* --------------------------------------------------------------------------
   19. Réduire les animations (html[data-calme="on"]) et prefers-reduced-motion :
   aucun mouvement, aucune transition
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
html[data-calme="on"] *,
html[data-calme="on"] *::before,
html[data-calme="on"] *::after {
  animation-duration: .01ms !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}

/* --------------------------------------------------------------------------
   20. Impression : la seule exception à la nuit. tokens.css inverse les jetons (papier blanc, texte quasi-noir,
   vert profond) ; ici, on retire ce qui n'a rien à faire sur papier et on impose le logo clair.
   -------------------------------------------------------------------------- */
@media print {
  :root { color-scheme: light; background: var(--papier); }
  .entete, .menu-plein, .menu-poteau, .barre-bas, .toasts, .evitement, .pied__reglages, .pied__actions, .media-pause { display: none !important; }
  body { background: var(--papier) !important; color: var(--encre) !important; }
  body > main { padding-top: 0 !important; }
  .zone-bitume, .zone-marquage, .zone-sombre, .zone-claire, .zone-blanche, .tete-photo, .pied {
    --fond: var(--papier); --surface: var(--papier); --texte: var(--encre); --texte-2: var(--encre-2);
    --lien: var(--encre); --trait: var(--trait-papier);
    background: var(--papier) !important;
    color: var(--encre) !important;
    box-shadow: none !important;
  }
  .tete-photo { min-height: 0; padding: 0 0 16px; }
  .tete-photo__media, .tete-photo::after { display: none; }
  /* Papier : toujours la version claire du logo, même quand la page impose ton="sombre" */
  ooc-logo, ooc-logo[ton] {
    --logo-marque: var(--logo-marque-clair); --logo-fond: var(--logo-fond-clair);
    --logo-voiture: var(--logo-voiture-clair); --logo-nom: var(--logo-nom-clair);
  }
  ooc-logo:not(:defined), ooc-logo:not(:defined)[ton] {
    --logo-fichier: url("/assets/marque/logo-clair.svg");
    --logo-fichier-signature: url("/assets/marque/logo-signature-clair.svg");
    --logo-fichier-symbole: url("/assets/marque/symbole-clair.svg");
  }
}
