/* =========================================================================
   CHRONO CLUC — design system commun, charte « Aurore retenue »
   (proposition n°18 retenue par la cliente, avec ses trois retouches).
   Référence : docs/CHARTE_AURORE.md ; maquette serie-4/01-retenue.html.

   Feuilles : app.css (ce cœur, chargé partout) + une feuille par zone :
   site.css, accueil.css (accueil seul), compte.css, reservation.css,
   livreur.css, admin.css. Aucune règle propre à une zone ici.

   Règles de la charte :
   - la couleur va sur la STRUCTURE (en-tête, hero, fonds de section, bandes,
     pied) ; l'INFORMATION reste calme : blanc, encre, petit marqueur + icône
     + texte ;
   - rôles fixes : rouge = agir, alertes, catégories ; jaune = temps, attente,
     âges ; bleu = navigation, information ; vert = validé ;
   - jaune et vert seulement en aplat, sous un texte foncé ;
   - la couleur n'est jamais seule (icône ou texte en plus) ;
   - CSP : aucun style en ligne ; les halos sont des classes ou des
     pseudo-éléments.
   ========================================================================= */

/* ---------- 1. Jetons ---------------------------------------------------- */
:root {
  /* Les quatre couleurs du logo officiel, relevées sur le fichier du logo.
     Codes officiels de la charte : TODO(CLIENT). */
  --cluc-rouge: #FC515A;
  --cluc-jaune: #FFB74B;
  --cluc-bleu: #24C0FB;
  --cluc-vert: #50D965;

  /* Variantes fortes (texte, boutons) : contraste vérifié par bin/contrast.php */
  --cluc-rouge-action: #D63340;   /* fond du bouton principal (texte blanc) */
  --cluc-rouge-fort: #C42B37;     /* texte d'erreur ; bouton principal survolé */
  --cluc-jaune-fort: #8A5A00;     /* texte « attente » sur blanc */
  --cluc-bleu-fort: #0B5F8A;      /* liens, navigation, focus */
  --cluc-vert-fort: #17703A;      /* texte « validé » sur blanc */
  --bleu-profond: #004AAD;        /* lueur du pied de page */

  /* Composantes RVB, pour les halos et les lueurs : rgb(var(--rvb-bleu) / .4) */
  --rvb-rouge: 252 81 90;
  --rvb-jaune: 255 183 75;
  --rvb-bleu: 36 192 251;
  --rvb-vert: 80 217 101;
  --rvb-rouge-fonce: 196 43 55;
  --rvb-bleu-profond: 0 74 173;
  --rvb-encre: 31 36 48;

  /* Lavis très clairs (fonds de message, puces) */
  --cluc-rouge-pale: #FFE9EA;
  --cluc-jaune-pale: #FFF4E3;
  --cluc-bleu-pale: #E5F7FE;
  --cluc-vert-pale: #E8F9EB;

  /* Ciels de section (structure) : teintes claires des quatre couleurs */
  --ciel-jaune: #FFE9C7;
  --ciel-bleu: #D5F2FE;
  --ciel-vert: #E3F8E6;
  --creme: #FAF7F2;

  /* Encre et neutres */
  --encre: #1F2430;
  --encre-douce: #4A5263;
  --nuit: #14161F;
  --blanc: #FFFFFF;
  --fond: #FFFFFF;            /* surfaces : panneaux, cartes, champs */
  --fond-page: #F6F7FA;       /* fond de page (appelé « --fond » dans la maquette) */
  --fond-doux: #EEF1F5;
  --gris: #E4E7EC;            /* filets */
  --gris-moyen: #C9CED8;
  --bordure: #C9CED8;
  --bord-champ: #767F90;      /* bord des champs : au moins 3:1 */
  --bordure-forte: #767F90;
  --sur-encre: #C3C8D2;       /* texte secondaire sur fond encre */

  /* Rôles */
  --action: var(--cluc-rouge-action);
  --action-survol: var(--cluc-rouge-fort);
  --lien: var(--cluc-bleu-fort);
  --succes: var(--cluc-vert-fort);
  --focus: #0B5F8A;
  --focus-sur-encre: #24C0FB;

  /* Noms de la maquette (pour reprendre son CSS sans traduction) */
  --rouge: var(--cluc-rouge);
  --jaune: var(--cluc-jaune);
  --bleu: var(--cluc-bleu);
  --vert: var(--cluc-vert);
  --rouge-action: var(--cluc-rouge-action);
  --rouge-texte: var(--cluc-rouge-fort);
  --jaune-texte: var(--cluc-jaune-fort);
  --bleu-texte: var(--cluc-bleu-fort);
  --vert-texte: var(--cluc-vert-fort);

  /* Verre dépoli (panneaux de structure) */
  --verre: rgba(255, 255, 255, .88);
  --verre-fort: rgba(255, 255, 255, .96);
  --verre-bord: rgba(255, 255, 255, .78);
  --flou: blur(24px) saturate(140%);

  /* Polices : polices système en attendant la police de la charte
     (TODO(CLIENT)) ; elle se branchera sur ces deux variables. */
  --police-titre: "Dubai", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --police-texte: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --police: var(--police-texte);
  --taille-base: 1.125rem;          /* 18 px */
  --taille-petite: 1rem;            /* 16 px ; rien sous 15 px */
  --taille-h1: clamp(2.375rem, 1.6rem + 3.2vw, 4.25rem);
  --taille-h2: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem);
  --taille-h3: 1.375rem;
  --interligne: 1.6;

  /* Espacements (échelle de 4 px, conservée : ≠ échelle --e-* de la maquette) */
  --e-1: .25rem; --e-2: .5rem; --e-3: .75rem; --e-4: 1rem; --e-5: 1.5rem;
  --e-6: 2rem; --e-7: 3rem; --e-8: 4rem; --e-9: 6rem;
  --marge: 1rem;                    /* gouttière latérale de page (2 rem dès 48 rem) */
  --gouttiere: 1rem;                /* entre colonnes (2 rem dès 48 rem) */

  /* Rayons : un seul système */
  --r-s: 14px;
  --r-m: 20px;
  --r-l: 28px;
  --r-pill: 999px;
  --rayon: var(--r-m);
  --rayon-petit: var(--r-s);
  --rayon-pilule: var(--r-pill);

  /* Deux niveaux d'élévation */
  --ombre-1: 0 1px 2px rgba(20, 22, 31, .05), 0 10px 28px -12px rgba(20, 22, 31, .16);
  --ombre-2: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 6px rgba(20, 22, 31, .04), 0 32px 64px -24px rgba(16, 34, 72, .26);
  --ombre: var(--ombre-1);
  --ombre-haute: var(--ombre-2);

  /* Tailles tactiles */
  --cible: 48px;
  --cible-livreur: 56px;

  --largeur: 80rem;                 /* 1 280 px de contenu */
  --mesure: 68ch;
  --ease: cubic-bezier(.22, 1, .36, 1);

  color-scheme: light;
}
@media (min-width: 48rem) { :root { --marge: 2rem; --gouttiere: 2rem; } }

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: var(--e-6);
}

body {
  margin: 0;
  font: 400 var(--taille-base)/var(--interligne) var(--police-texte);
  color: var(--encre);
  background: var(--fond-page);
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  min-width: 320px;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--police-titre);
  line-height: 1.12;
  margin: 0 0 var(--e-4);
  font-weight: 500;
  letter-spacing: -.015em;
  text-wrap: balance;
  hyphens: none;
}
/* Titres : graisse légère pour la ligne d'ouverture, graisse forte (.fort)
   pour la ligne qui frappe : « Le jeu fait la route. <span class="fort">Vous, la partie.</span> » */
h1 { font-size: var(--taille-h1); font-weight: 300; line-height: 1.02; letter-spacing: -.03em; }
h2 { font-size: var(--taille-h2); margin-top: var(--e-7); letter-spacing: -.02em; }
h3 { font-size: var(--taille-h3); margin-top: var(--e-6); letter-spacing: -.01em; }
h4 { font-family: var(--police-texte); font-size: var(--taille-base); font-weight: 700; letter-spacing: 0; }
h2:first-child, h3:first-child { margin-top: 0; }
.fort, h1 strong { font-weight: 500; }
.titre-leger { font-weight: 300; }
.titre-leger .fort { font-weight: 500; }
.l { display: block; }

p, ul, ol, dl { margin: 0 0 var(--e-4); }
p, li { max-width: var(--mesure); }
li + li { margin-top: var(--e-1); }

a { color: var(--lien); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:not(.btn):active { color: var(--encre); }

strong, b { font-weight: 700; }
small, .petit { font-size: var(--taille-petite); }

img, svg { max-width: 100%; height: auto; }
img { display: block; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--cluc-jaune); color: var(--encre); }

main[tabindex="-1"]:focus { outline: none; box-shadow: none; }

/* Focus : contour de 3 px contrasté, qui suit l'arrondi de l'élément */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

hr { border: 0; border-top: 1px solid var(--gris); margin: var(--e-6) 0; }

* { scrollbar-color: var(--bordure-forte) var(--fond-doux); }

/* Icônes du sprite (grille 24 px, trait 2 px) : icon('nom') → .icone ; .ic = alias de la maquette */
.icone, .ic { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.icone--pleine { fill: currentColor; stroke: none; }

[hidden] { display: none !important; }
.visuellement-cache, .vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.texte-secondaire { color: var(--encre-douce); }
.chiffres, .num { font-variant-numeric: tabular-nums lining-nums; }
.insecable { white-space: nowrap; }
/* Chiffres légers et grands */
.chiffre { font: 300 clamp(2.5rem, 2rem + 2vw, 3.5rem)/1 var(--police-titre); letter-spacing: -.03em; font-variant-numeric: tabular-nums lining-nums; }
.chiffre small { font-size: .5em; font-weight: 500; letter-spacing: 0; margin-left: .15em; }

/* ---------- 3. Mise en page --------------------------------------------- */
.conteneur { width: 100%; max-width: calc(var(--largeur) + 2 * var(--marge)); margin-inline: auto; padding-inline: var(--marge); }

.pile > * + * { margin-top: var(--e-4); }
.pile--large > * + * { margin-top: var(--e-6); }

.grille { display: grid; gap: var(--e-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.rangee { display: flex; flex-wrap: wrap; gap: var(--e-3); align-items: center; }
.rangee--entre { justify-content: space-between; }

.deux-colonnes { display: grid; gap: var(--e-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .deux-colonnes { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }

.section { position: relative; padding-block: var(--e-7); }
.section--serree { padding-block: var(--e-6); }
.section--blanche { background: var(--fond); }

/* Ciels de section (structure) : une teinte franche au centre, fondue vers
   le fond de page aux frontières. <section class="section ciel ciel--bleu"> */
.ciel {
  background: linear-gradient(180deg, var(--fond-page) 0, var(--ciel, var(--fond-page)) 6rem,
    var(--ciel, var(--fond-page)) calc(100% - 6rem), var(--fond-page) 100%);
}
.ciel--bleu { --ciel: var(--ciel-bleu); }
.ciel--jaune { --ciel: var(--ciel-jaune); }
.ciel--vert { --ciel: var(--ciel-vert); }
.ciel--creme { --ciel: var(--creme); }

/* Panneaux : blancs (information) ou dépolis (structure) */
.surface, .bloc, .panneau {
  background: var(--fond);
  border: 1px solid var(--gris);
  border-radius: var(--r-l);
  box-shadow: var(--ombre-1);
  padding: var(--e-5);
}
@media (max-width: 47.99rem) { .surface, .bloc, .panneau { border-radius: 24px; } }
@media (min-width: 48rem) { .surface, .bloc, .panneau { padding: var(--e-6); } }
.bloc h2 { font-size: 1.375rem; margin: 0 0 var(--e-4); display: flex; gap: var(--e-2); align-items: center; }
.verre {
  background: var(--verre);
  -webkit-backdrop-filter: var(--flou);
  backdrop-filter: var(--flou);
  border: 1px solid var(--verre-bord);
  border-radius: var(--r-l);
  box-shadow: var(--ombre-2);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .verre { background: rgba(255, 255, 255, .96); }
}

/* ---------- 4. Halos « aurore » (pages publiques seulement) -------------- */
/* Ciel de page posé par layouts/site.php (body.page-publique) : deux halos
   fixes en haut de page, sans animation, sans débordement horizontal.
   Intensité limitée pour que les liens (bleu fort) gardent 4,5:1 dessus. */
.page-publique { position: relative; isolation: isolate; }
.page-publique::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 52rem; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46rem 40rem at 6% 2rem, rgb(var(--rvb-bleu) / .4), rgb(var(--rvb-bleu) / .16) 55%, rgb(var(--rvb-bleu) / 0) 74%),
    radial-gradient(34rem 30rem at 94% 0, rgb(var(--rvb-jaune) / .38), rgb(var(--rvb-jaune) / .12) 55%, rgb(var(--rvb-jaune) / 0) 74%);
  -webkit-mask-image: linear-gradient(#000 50%, transparent);
  mask-image: linear-gradient(#000 50%, transparent);
}
@media (max-width: 47.99rem) {
  .page-publique::before {
    height: 34rem;
    background:
      radial-gradient(24rem 22rem at 0 0, rgb(var(--rvb-bleu) / .34), rgb(var(--rvb-bleu) / 0) 72%),
      radial-gradient(18rem 16rem at 100% 2rem, rgb(var(--rvb-jaune) / .3), rgb(var(--rvb-jaune) / 0) 72%);
  }
}

/* Halos de section (zones publiques) : conteneur .aurore (aria-hidden) dans
   une section en position: relative + isolation: isolate ; chaque .halo
   reçoit sa position et sa taille par une CLASSE de la feuille de zone
   (--x, --y, --t, --o), jamais par un attribut style (CSP). */
.aurore { position: absolute; inset: 0; z-index: -1; overflow: hidden; contain: paint; pointer-events: none; }
.halo {
  position: absolute; left: var(--x, 50%); top: var(--y, 50%);
  width: var(--t, 45rem); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side,
    rgb(var(--c) / var(--o, 1)) 0 var(--h0, 35%),
    rgb(var(--c) / calc(var(--o, 1) * .74)) var(--h1, 55%),
    rgb(var(--c) / calc(var(--o, 1) * .34)) var(--h2, 74%),
    rgb(var(--c) / calc(var(--o, 1) * .08)) var(--h3, 90%),
    rgb(var(--c) / 0) 100%);
}
.halo--bleu { --c: var(--rvb-bleu); }
.halo--jaune { --c: var(--rvb-jaune); }
.halo--vert { --c: var(--rvb-vert); }
.halo--rouge { --c: var(--rvb-rouge); }
.halo--rouge-fonce { --c: var(--rvb-rouge-fonce); }
.halo--bleu-profond { --c: var(--rvb-bleu-profond); }
/* Dérive lente, coupée par prefers-reduced-motion (§ 21) */
.halo--derive { animation: derive-a 28s ease-in-out infinite alternate; }
.halo--derive:nth-child(2n) { animation-name: derive-b; animation-duration: 34s; }
@keyframes derive-a { from { transform: translate3d(-4%, -3%, 0) scale(1); } to { transform: translate3d(5%, 4%, 0) scale(1.08); } }
@keyframes derive-b { from { transform: translate3d(4%, 2%, 0) scale(1.05); } to { transform: translate3d(-5%, -4%, 0) scale(.95); } }
@media (max-width: 47.99rem) { .halo { width: calc(var(--t, 45rem) * .8); } }

/* ---------- 5. Lien d'évitement ----------------------------------------- */
.evitement {
  position: absolute; left: var(--e-4); top: -120px; z-index: 100;
  display: inline-flex; align-items: center; min-height: var(--cible); padding: 0 22px;
  background: var(--encre); color: #fff; border-radius: var(--r-pill); font-weight: 600; text-decoration: none;
}
.evitement:focus { top: var(--e-4); }
.evitement:focus-visible { outline-color: var(--focus-sur-encre); }

/* ---------- 6. Logo ------------------------------------------------------ */
/* Logo officiel (img/logo-cluc.png ; version claire img/logo-cluc-clair.png
   sur fond encre) : jamais posé directement sur une des quatre couleurs. */
.logo { display: inline-flex; align-items: center; min-height: var(--cible); flex: none; border-radius: 8px; color: var(--encre); text-decoration: none; }
.logo img { height: 48px; width: auto; }

/* ---------- 7. En-tête et navigation en pilule -------------------------- */
.entete { position: relative; z-index: 30; padding-top: var(--e-4); }
.entete__barre {
  position: relative; display: flex; align-items: center; gap: var(--e-5);
  min-height: 5rem; padding: 0 var(--e-4) 0 var(--e-6);
  background: var(--verre-fort);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--verre-bord);
  border-radius: var(--r-l);
  box-shadow: var(--ombre-2);
}
/* Collant seulement sur un écran large et assez haut (focus jamais masqué) */
@media (min-width: 47.5rem) and (min-height: 44rem) {
  .entete--collant { position: sticky; top: 0; }
  html:has(.entete--collant) { scroll-padding-top: 7.5rem; }
}
.entete__titre { font-weight: 700; color: var(--encre-douce); }
.entete__actions { display: flex; align-items: center; gap: var(--e-2); margin-left: auto; }

.nav { display: none; margin-left: auto; }
.nav__liste { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav__liste li { margin: 0; }
.nav__lien {
  display: inline-flex; align-items: center; min-height: var(--cible); padding: 0 var(--e-4);
  border-radius: var(--r-pill); color: var(--encre); font-weight: 600; font-size: 1.0625rem;
  text-decoration: none; white-space: nowrap; transition: background-color .2s ease-out;
}
/* Page courante : aplat bleu + anneau encre et graisse (la couleur n'est jamais le seul repère, RGAA 3.1 / 10.x) */
.nav__lien[aria-current="page"] { background: var(--cluc-bleu); box-shadow: inset 0 0 0 2px var(--encre); font-weight: 700; }
@media (min-width: 75rem) {
  .nav { display: block; }
  .nav + .entete__actions { margin-left: 0; }
  .menu-mobile { display: none; }
}

/* « Ma sélection » : pilule encre, compteur blanc annoncé en texte */
.selection {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  min-height: 52px; padding: 0 10px 0 20px;
  border-radius: var(--r-pill); background: var(--encre); color: #fff;
  font-weight: 600; font-size: 1.0625rem; text-decoration: none;
}
.selection:not(:has(.selection__compte)) { padding-right: 20px; }
.selection__compte {
  display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px;
  border-radius: var(--r-pill); background: #fff; color: var(--encre);
  font: 700 1rem/1 var(--police-texte); font-variant-numeric: tabular-nums;
}
.selection[aria-current="page"] { box-shadow: 0 0 0 3px var(--fond), 0 0 0 5px var(--encre); }

/* Pastille de compteur générique (navigation de l'administration…) */
.compteur {
  display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem;
  border-radius: var(--r-pill); background: var(--cluc-rouge-action); color: #fff; font-size: 1rem; font-weight: 700;
  line-height: 1; font-variant-numeric: tabular-nums;
}

/* Menu mobile sans JavaScript (<details>) */
.menu-mobile { position: relative; }
.menu-mobile > summary {
  display: inline-flex; align-items: center; gap: var(--e-2); min-height: var(--cible); padding: 0 18px;
  border: 2px solid var(--encre); border-radius: var(--r-pill); background: var(--fond);
  font-weight: 600; cursor: pointer; list-style: none;
}
.menu-mobile > summary::-webkit-details-marker { display: none; }
.menu-mobile[open] > summary { background: var(--encre); color: #fff; }
.menu-mobile__panneau {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 40;
  width: min(20rem, calc(100vw - 2rem)); padding: 10px;
  background: var(--fond);
  border: 1px solid var(--gris); border-radius: var(--r-l); box-shadow: var(--ombre-2);
}
.menu-mobile__panneau ul { list-style: none; margin: 0; padding: 0; }
.menu-mobile__panneau li { margin: 0; }
.menu-mobile__panneau a, .menu-mobile__panneau button {
  display: flex; align-items: center; gap: var(--e-2); width: 100%; min-height: 52px; padding: 0 var(--e-4);
  border: 0; border-radius: var(--r-s); background: none; color: var(--encre);
  font-weight: 600; text-align: left; text-decoration: none; cursor: pointer;
}
.menu-mobile__panneau a[aria-current="page"] { background: var(--cluc-bleu); box-shadow: inset 0 0 0 2px var(--encre); font-weight: 700; }
.menu-mobile__panneau form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--gris); }

@media (hover: hover) and (pointer: fine) {
  .nav__lien:not([aria-current]):hover, .menu-mobile__panneau a:not([aria-current]):hover, .menu-mobile__panneau button:hover { background: rgb(var(--rvb-bleu) / .16); }
}

@media (max-width: 47.99rem) {
  .entete { padding-top: var(--e-3); }
  .entete__barre { min-height: 4.25rem; padding: 0 8px 0 14px; gap: var(--e-2); border-radius: 22px; }
  .logo img { height: 40px; }
  .selection { min-height: var(--cible); min-width: var(--cible); justify-content: center; padding: 0 6px 0 12px; gap: 6px; }
  .selection:not(:has(.selection__compte)) { padding-right: 12px; }
  .selection__texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .selection__compte { min-width: 28px; height: 28px; font-size: .9375rem; }
  .menu-mobile > summary { padding: 0 12px; gap: 6px; }
}
@media (max-width: 22.5rem) {
  .entete__barre { padding-left: 10px; }
  .logo img { height: 34px; }
  .menu-mobile__texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- 8. Boutons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--cible); padding: .55rem 1.5rem;
  border: 2px solid transparent; border-radius: var(--r-l); /* pilule jusqu'à 56 px de haut, coins arrondis si le libellé passe sur deux lignes */
  font: 600 var(--taille-base)/1.2 var(--police-texte);
  text-align: center; text-decoration: none; cursor: pointer;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: transform .2s ease-out, background-color .2s ease-out, box-shadow .2s ease-out, color .2s ease-out;
}
summary.btn { list-style: none; }
summary.btn::-webkit-details-marker { display: none; }
.btn .icone { width: 1.25rem; height: 1.25rem; }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

/* Principal : rouge action, texte blanc (alias historique : .btn--primaire) */
.btn--principal, .btn--primaire { background: var(--action); color: #fff; box-shadow: 0 14px 28px -14px rgb(214 51 64 / .75); }
/* Secondaire encre */
.btn--encre { background: var(--encre); color: #fff; }
/* Contour (alias historique : .btn--secondaire) */
.btn--contour, .btn--secondaire { background: var(--fond); color: var(--encre); border-color: var(--encre); }
.btn--contour[aria-pressed="true"] { background: var(--encre); color: #fff; }
/* Valider : aplat vert, texte encre (vert = validé) */
.btn--valider { background: var(--cluc-vert); color: var(--encre); }
.btn--discret { background: transparent; color: var(--lien); padding-inline: var(--e-3); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; }
.btn--danger { background: var(--fond); color: var(--cluc-rouge-fort); border-color: var(--cluc-rouge-fort); }
.btn--grand { min-height: 3.5rem; padding: .75rem 1.75rem; font-size: 1.125rem; }
.btn--bloc { width: 100%; }
.btn--icone { padding: 0; width: var(--cible); }

@media (hover: hover) and (pointer: fine) {
  .btn:not([disabled]):not([aria-disabled="true"]):hover { transform: translateY(-2px); }
  .btn--discret:hover { transform: none !important; text-decoration-thickness: 3px; }
  .btn--principal:hover, .btn--primaire:hover { background: var(--action-survol); }
  .btn--encre:hover { background: var(--nuit); }
  .btn--contour:hover, .btn--secondaire:hover { box-shadow: var(--ombre-1); }
  .btn--valider:hover { box-shadow: var(--ombre-1); }
  .btn--danger:hover { background: var(--cluc-rouge-pale); }
  a:hover { text-decoration-thickness: 3px; }
}

/* Lien fléché « Voir tout le catalogue → » */
.lien-fleche { display: inline-flex; align-items: center; gap: var(--e-2); min-height: var(--cible); font-weight: 600; color: var(--lien); }
.lien-fleche .icone { transition: transform .2s ease-out; }
@media (hover: hover) { .lien-fleche:hover .icone { transform: translateX(3px); } }

/* Bouton qui a l'air d'un lien (formulaire) */
.lien-bouton { background: none; border: 0; padding: 0 var(--e-1); min-height: var(--cible); font: inherit; font-weight: 700; color: var(--lien); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; cursor: pointer; }

/* ---------- 9. Sur-titres, chapô, marqueurs, pastilles ------------------ */
/* <p class="sur sur--bleu">Catalogue</p> : capitales espacées précédées d'un trait de couleur */
.sur {
  display: flex; align-items: center; gap: 14px; margin: 0 0 var(--e-4);
  font: 700 .9375rem/1.3 var(--police-texte); letter-spacing: .14em; text-transform: uppercase; color: var(--encre);
}
.sur::before { content: ""; width: 32px; height: 4px; border-radius: 2px; background: var(--trait, var(--encre)); flex: none; }
.sur--rouge { --trait: var(--cluc-rouge); }
.sur--jaune { --trait: var(--cluc-jaune); }
.sur--bleu { --trait: var(--cluc-bleu); }
.sur--vert { --trait: var(--cluc-vert); }
.chapo { font-size: 1.25rem; line-height: 1.5; color: var(--encre); max-width: 52ch; }
/* Tête de section : sur-titre, titre, chapô */
.tete { display: grid; gap: var(--e-4); margin-bottom: var(--e-7); }
.tete > * { margin: 0; }

/* Marqueur de rôle : petit carré de 12 px, toujours accompagné d'un texte */
.marqueur { display: inline-block; width: 12px; height: 12px; border-radius: 3px; flex: none; background: var(--c, var(--encre)); }
.marqueur--rouge { --c: var(--cluc-rouge); }
.marqueur--jaune { --c: var(--cluc-jaune); }
.marqueur--bleu { --c: var(--cluc-bleu); }
.marqueur--vert { --c: var(--cluc-vert); }
/* Pastille d'icône : rond de couleur, icône encre (40 px au plus) */
.pastille { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; color: var(--encre); background: var(--c, var(--fond-doux)); }
.pastille .icone { width: 22px; height: 22px; }
.pastille--rouge { --c: var(--cluc-rouge); }
.pastille--jaune { --c: var(--cluc-jaune); }
.pastille--bleu { --c: var(--cluc-bleu); }
.pastille--vert { --c: var(--cluc-vert); }

/* Code d'étiquetage CLUC00000 */
.code-etiquette {
  display: inline-block; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 700;
  font-size: 1rem; letter-spacing: .04em; padding: .05rem .45rem; border: 1.5px solid var(--encre);
  border-radius: 6px; background: var(--fond);
}
.telephone { font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- 10. Badges de statut : marqueur de couleur + icône + texte --- */
.statut {
  --c: var(--gris-moyen);
  display: inline-flex; align-items: center; gap: .45rem; padding: .2rem .75rem .2rem .3rem;
  border-radius: var(--r-pill); background: var(--fond); border: 1px solid var(--gris-moyen);
  font-size: 1rem; font-weight: 600; line-height: 1.3; white-space: nowrap; color: var(--encre);
}
.statut .icone { width: 1.5rem; height: 1.5rem; padding: .2rem; border-radius: 50%; background: var(--c); color: var(--encre); stroke-width: 2.5; }
.statut::before { content: ""; width: .75rem; height: .75rem; margin-left: .3rem; border-radius: 3px; background: var(--c); flex: none; }
.statut:has(.icone)::before { display: none; }
.statut--attente { --c: var(--cluc-jaune); }
.statut--preparee { --c: var(--cluc-bleu); }
.statut--livree { --c: var(--cluc-vert); }
.statut--retournee { --c: var(--gris); }
.statut--non-rendue { --c: var(--cluc-rouge); }
.statut--absent { --c: var(--cluc-jaune); border-color: var(--cluc-jaune-fort); }
.statut--premium { --c: var(--cluc-jaune); }
.statut--annulee { --c: transparent; color: var(--encre-douce); border-style: dashed; }
.statut--annulee::before { border: 1.5px solid var(--encre-douce); }

/* Pastille de zone : teinte de la zone + nom */
.zone {
  display: inline-flex; align-items: center; gap: var(--e-2); font-weight: 700;
  padding: .2rem .75rem .2rem .3rem; border-radius: var(--r-pill); background: var(--fond); border: 1px solid var(--gris-moyen);
}
.zone__pastille { width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--zone, var(--cluc-rouge)); box-shadow: inset 0 0 0 2px rgb(var(--rvb-encre) / .2); flex-shrink: 0; }

/* Teintes des zones (colonne zones.color_name) : aucune couleur en style en
   ligne. Toutes portent un texte foncé. À synchroniser avec Contrast::ZONE_TINTS. */
.teinte--rouge { --zone: #FC515A; }
.teinte--orange { --zone: #FF9147; }
.teinte--jaune { --zone: #FFB74B; }
.teinte--vert { --zone: #50D965; }
.teinte--turquoise { --zone: #3CC8B4; }
.teinte--bleu { --zone: #24C0FB; }
.teinte--violet { --zone: #B592F2; }
.teinte--rose { --zone: #F796BA; }
.teinte--gris { --zone: #C9CED8; }

/* ---------- 11. Visuel de jeu provisoire (sans photo) ------------------- */
.visuel-provisoire {
  width: 100%; height: 100%; display: grid; place-items: center;
  font: 300 2.6rem/1 var(--police-titre); letter-spacing: -0.02em; color: rgb(var(--rvb-encre) / .8);
}
.vignette { display: block; width: 4rem; height: 3rem; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--fond-doux); }
.vignette img { width: 100%; height: 100%; object-fit: cover; }
.vignette .visuel-provisoire { font-size: 1.25rem; }

/* ---------- 12. Ticket de passage (accueil, « Quand passez-vous ? »,
   tunnel, espace usager) --------------------------------------------------- */
.ticket {
  --zone: var(--cluc-rouge);
  display: grid; position: relative; overflow: hidden;
  background: var(--fond); border: 1px solid var(--gris); border-radius: var(--r-l); box-shadow: var(--ombre-2);
}
.ticket__bande { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e-2) var(--e-3); padding: var(--e-4) var(--e-5); border-bottom: 1px solid var(--gris); }
.ticket__bande::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--zone); box-shadow: inset 0 0 0 1px rgb(var(--rvb-encre) / .15); flex: none; }
.ticket__bande strong { font-weight: 700; }
.ticket__bande .petit, .ticket__bande .chiffres { color: var(--encre-douce); }
.ticket__bande .chiffres { margin-left: auto; white-space: nowrap; }
.ticket__corps { padding: var(--e-5); display: grid; gap: var(--e-5); }
.ticket__ligne { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--e-4); align-items: start; }
.ticket__ligne > .icone { width: 2.5rem; height: 2.5rem; padding: .5rem; border-radius: 50%; background: var(--cluc-jaune); color: var(--encre); }
.ticket__etiquette { display: block; font-size: .9375rem; font-weight: 700; color: var(--encre); text-transform: uppercase; letter-spacing: .12em; }
.ticket__valeur { display: block; margin: .15rem 0 .25rem; font: 500 1.75rem/1.1 var(--police-titre); letter-spacing: -.015em; overflow-wrap: anywhere; }
.ticket__perfo { height: 0; border-top: 1px solid var(--gris); margin-inline: var(--e-5); }
.ticket__pied { padding: var(--e-4) var(--e-5) var(--e-5); }

/* Outil « Quand passez-vous ? » (accueil, page dédiée, tunnel) */
.quand { background: var(--fond); border: 1px solid var(--gris); border-radius: var(--r-l); box-shadow: var(--ombre-1); padding: var(--e-5); }
.quand__formulaire { display: grid; gap: var(--e-3); }
@media (min-width: 36rem) { .quand__formulaire { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.quand__formulaire .champ { margin: 0; }

/* ---------- 13. Formulaires --------------------------------------------- */
.champ { display: grid; gap: var(--e-2); margin-bottom: var(--e-5); }
.champ > label, .champ__libelle { font-weight: 700; }
.champ__facultatif { font-weight: 500; color: var(--encre-douce); }
.champ__aide { font-size: var(--taille-petite); color: var(--encre-douce); margin: 0; }
.champ__erreur { display: flex; gap: var(--e-2); align-items: flex-start; color: var(--cluc-rouge-fort); font-weight: 600; margin: 0; }
.champ__erreur .icone { margin-top: .15em; }
.champ--court input { max-width: 14rem; }
.champ--sans-marge { margin: 0; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], input[type="time"],
input[type="number"], input[type="date"], input[type="url"], select, textarea {
  width: 100%; min-height: 3.5rem; padding: .6rem 1rem; font: inherit; font-size: max(1.125rem, 18px); font-weight: 500;
  color: var(--encre); background: var(--fond); border: 2px solid var(--bord-champ); border-radius: var(--r-s);
  caret-color: var(--cluc-rouge-action);
}
textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2430' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.25rem;
}
input::placeholder, textarea::placeholder { color: var(--bord-champ); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--encre); outline-offset: 2px; }
[aria-invalid="true"] { border-color: var(--cluc-rouge-action) !important; box-shadow: 0 0 0 4px rgb(214 51 64 / .12); }

input[type="file"] { width: 100%; min-height: var(--cible); padding: 0; font: inherit; font-size: max(1rem, 16px); color: var(--encre); background: var(--fond); border: 2px solid var(--bord-champ); border-radius: var(--r-s); }
input[type="file"]::file-selector-button { min-height: calc(var(--cible) - 4px); margin-inline-end: var(--e-3); padding-inline: var(--e-4); border: 0; border-inline-end: 2px solid var(--bord-champ); background: var(--fond-doux); color: var(--encre); font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 35.99rem) {
  input[type="file"] { display: block; height: auto; padding: 0 var(--e-4) var(--e-3); white-space: normal; overflow-wrap: anywhere; }
  input[type="file"]::file-selector-button {
    display: block; width: calc(100% + 2 * var(--e-4)); margin: 0 calc(-1 * var(--e-4)) var(--e-3);
    border-inline-end: 0; border-bottom: 2px solid var(--bord-champ); border-radius: 10px 10px 0 0;
  }
}

fieldset { border: 0; padding: 0; margin: 0 0 var(--e-5); min-width: 0; }
legend { font: 500 1.375rem/1.2 var(--police-titre); letter-spacing: -.01em; padding: 0; margin-bottom: var(--e-3); }

/* Choix en tuiles (radio / case à cocher) */
.choix { display: grid; gap: var(--e-3); }
@media (min-width: 40rem) { .choix--2 { grid-template-columns: repeat(2, 1fr); } .choix--3 { grid-template-columns: repeat(3, 1fr); } }
.choix__option { position: relative; }
.choix__option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.choix__option input:disabled { cursor: not-allowed; }
.choix__option label {
  display: grid; grid-template-columns: 1.6rem 1fr; gap: var(--e-3); align-items: start; height: 100%;
  padding: var(--e-4) var(--e-5); border: 2px solid var(--bord-champ); border-radius: var(--r-m); background: var(--fond);
  cursor: pointer; min-height: var(--cible); transition: border-color .2s ease-out, box-shadow .2s ease-out;
}
.choix__option label::before {
  content: ""; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid var(--bord-champ); background: var(--fond);
  margin-top: .1rem;
}
.choix__option input[type="checkbox"] + label::before { border-radius: 6px; }
.choix__option input:checked + label { border-color: var(--encre); box-shadow: 0 0 0 4px rgb(var(--rvb-encre) / .1); }
.choix__option input:checked + label::before {
  border-color: var(--encre); background: var(--cluc-vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2430' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17l9-10'/%3E%3C/svg%3E") center / 1.05rem no-repeat;
}
.choix__option input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 3px; }
.choix__option input:disabled + label { cursor: not-allowed; background: var(--fond-doux); border-style: dashed; }
.choix__option input:disabled + label::before { background: var(--fond-doux); }
@media (hover: hover) and (pointer: fine) { .choix__option input:not(:disabled):hover + label { border-color: var(--encre); } }
.choix__titre { display: block; font-weight: 700; font-size: 1.125rem; }
.choix__detail { display: block; color: var(--encre-douce); font-size: var(--taille-petite); margin-top: .15rem; }

/* Case à cocher simple */
.case-a-cocher { display: grid; grid-template-columns: 1.6rem 1fr; gap: var(--e-3); align-items: start; margin-bottom: var(--e-4); }
.case-a-cocher input { width: 1.6rem; height: 1.6rem; margin: .7rem 0 0; accent-color: var(--cluc-vert-fort); cursor: pointer; }
.case-a-cocher label { min-height: var(--cible); display: flex; align-items: center; cursor: pointer; }

/* Récapitulatif d'erreurs */
.recap-erreurs {
  background: var(--fond); border: 2px solid var(--cluc-rouge-action); border-left-width: 8px;
  border-radius: var(--r-m); padding: var(--e-5); margin-bottom: var(--e-6); box-shadow: var(--ombre-1);
}
.recap-erreurs h2 { font: 600 1.25rem/1.3 var(--police-texte); letter-spacing: 0; margin: 0 0 var(--e-3); display: flex; gap: var(--e-3); align-items: center; }
.recap-erreurs h2 .icone { width: 2rem; height: 2rem; padding: .35rem; border-radius: 50%; background: var(--cluc-rouge); color: var(--encre); }
.recap-erreurs ul { margin: 0; padding-left: 1.25rem; }
.recap-erreurs a { color: var(--cluc-rouge-fort); font-weight: 700; }
.recap-erreurs:focus-visible { outline-offset: 4px; }

/* ---------- 14. Messages (succès, attente, information, erreur) --------- */
/* Panneau blanc, filet de couleur à gauche, pastille d'icône : la couleur
   n'est jamais seule (icône + texte). */
.message {
  --c: var(--encre);
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: var(--e-3); align-items: start;
  padding: var(--e-3) var(--e-5) var(--e-3) var(--e-4); margin-bottom: var(--e-5);
  background: var(--fond); border: 1px solid var(--gris); border-left: 4px solid var(--c); border-radius: var(--r-s);
  box-shadow: var(--ombre-1);
}
.message > .icone { width: 2.25rem; height: 2.25rem; padding: .45rem; border-radius: 50%; background: var(--c); color: var(--encre); }
.message > div, .message > span, .message > p { align-self: center; min-width: 0; }
.message p { margin: 0; }
.message p + p { margin-top: var(--e-2); }
.message--info { --c: var(--cluc-bleu); }
.message--succes { --c: var(--cluc-vert); }
.message--attention, .message--attente { --c: var(--cluc-jaune); }
.message--erreur { --c: var(--cluc-rouge); }

/* Avertissement permanent (RG-47) et notes */
.avertissement-sante { font-size: var(--taille-petite); font-weight: 700; display: flex; gap: var(--e-2); align-items: flex-start; color: var(--encre); background: var(--cluc-jaune-pale); border-left: 4px solid var(--cluc-jaune); border-radius: 8px; padding: var(--e-3); margin: 0; }
.note { background: var(--cluc-jaune-pale); border-radius: var(--r-s); padding: var(--e-3) var(--e-4); }
.note p { margin: 0; }
.note__auteur { font-size: var(--taille-petite); color: var(--encre-douce); margin: 0 0 var(--e-1) !important; }

/* Messages flash du site public (partials/flash.php) : détachés de l'en-tête, le dernier sans marge basse.
   Le tunnel, l'espace livreur et l'administration ont déjà le rythme de leur <main>. */
.page-publique main > [data-flash] { padding-top: var(--e-5); }
.page-publique main > [data-flash] > .message:last-child { margin-bottom: 0; }

/* ---------- 15. Indicateur d'étapes du tunnel ---------------------------- */
.etapes { margin-bottom: var(--e-6); }
.etapes__texte { font-weight: 700; margin: 0 0 var(--e-3); }
.etapes__texte span { color: var(--encre-douce); font-weight: 600; }
.etapes__barre { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0; padding: 0; }
.etapes__barre li { height: 6px; border-radius: var(--r-pill); background: var(--gris-moyen); margin: 0; max-width: none; }
.etapes__barre li.fait { background: var(--cluc-vert); }
.etapes__barre li.encours { background: var(--encre); }
.etapes__retour { display: inline-flex; align-items: center; gap: var(--e-2); margin-bottom: var(--e-4); font-weight: 700; min-height: var(--cible); }

/* ---------- 16. Listes, récapitulatif, navigation secondaire ------------ */
.liste-nue { list-style: none; padding: 0; margin: 0; }
.liste-nue > li { margin: 0; max-width: none; }
.liste-simple { margin: 0; padding-left: 1.25rem; }
.liste-simple li { margin: 0; }

.recap { display: grid; gap: 0; margin: 0; }
.recap > div { display: grid; gap: var(--e-1) var(--e-4); padding: var(--e-4) 0; border-bottom: 1px solid var(--gris); }
@media (min-width: 40rem) { .recap > div { grid-template-columns: 12rem 1fr auto; align-items: start; } }
.recap dt { font-weight: 700; color: var(--encre-douce); }
.recap dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.liste-jeux { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--e-3); }
.liste-jeux li { margin: 0; max-width: none; display: flex; gap: var(--e-3); align-items: center; background: var(--fond); border-radius: var(--r-s); padding: var(--e-3); border: 1px solid var(--gris); }
.liste-jeux__nom { display: inline-flex; align-items: center; min-height: var(--cible); font-weight: 700; flex: 1; min-width: 0; overflow-wrap: anywhere; }

.details { display: grid; grid-template-columns: max-content 1fr; gap: var(--e-2) var(--e-5); margin: 0; }
@media (max-width: 35.99rem) { .details { grid-template-columns: minmax(0, 1fr); row-gap: 0; } .details dd { margin-bottom: var(--e-3); } }
.details dt { font-weight: 700; color: var(--encre-douce); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.fiche__description > :last-child { margin-bottom: 0; }

.mots { display: flex; flex-wrap: wrap; gap: var(--e-2); list-style: none; padding: 0; margin: 0; }
.mots li { margin: 0; }
.mot { display: inline-flex; align-items: center; min-height: var(--cible); padding: 0 .9rem; border-radius: var(--r-pill); background: var(--cluc-bleu-pale); color: var(--cluc-bleu-fort); font-weight: 600; text-decoration: none; font-size: var(--taille-petite); }

.avis { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e-4); }
.avis li { margin: 0; max-width: none; background: var(--fond); border: 1px solid var(--gris); border-radius: var(--r-m); padding: var(--e-4) var(--e-5); box-shadow: var(--ombre-1); }
.avis blockquote { margin: 0 0 var(--e-2); }
.avis blockquote p { margin: 0; }
.avis footer { font-size: var(--taille-petite); color: var(--encre-douce); }

.historique { list-style: none; padding: 0 0 0 var(--e-4); margin: 0; border-left: 3px solid var(--gris); display: grid; gap: var(--e-3); }
.historique li { margin: 0; }

/* Onglets en pilule (espace usager, administration) */
.nav-compte { display: flex; gap: var(--e-2); flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 var(--e-6); }
.nav-compte li { margin: 0; }
.nav-compte a { display: inline-flex; align-items: center; min-height: var(--cible); padding: 0 var(--e-4); border-radius: var(--r-pill); background: var(--fond); color: var(--encre); font-weight: 600; text-decoration: none; border: 1px solid var(--gris-moyen); }
.nav-compte a[aria-current="page"] { background: var(--cluc-bleu); border-color: var(--encre); box-shadow: inset 0 0 0 2px var(--encre); font-weight: 700; }

/* Raccourcis (grandes cibles) */
.raccourcis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); gap: var(--e-3); }
ul.raccourcis { list-style: none; padding: 0; margin: 0; }
ul.raccourcis li { margin: 0; max-width: none; }
.raccourci {
  display: flex; align-items: center; justify-content: center; gap: var(--e-2); min-height: var(--cible-livreur); padding: var(--e-2) var(--e-4);
  border-radius: var(--r-l); border: 2px solid var(--encre); color: var(--encre); font-weight: 700; text-decoration: none; background: var(--fond);
  touch-action: manipulation; text-align: center;
}

/* Fil d'Ariane */
.ariane { font-size: var(--taille-petite); margin-bottom: var(--e-5); }
.ariane ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--e-2); padding: 0; margin: 0; }
.ariane li { margin: 0; display: inline-flex; gap: var(--e-2); align-items: center; }
.ariane li + li::before { content: "›"; color: var(--encre-douce); }
.ariane a { display: inline-flex; align-items: center; min-height: var(--cible); }

/* État vide */
.vide { text-align: center; padding: var(--e-8) var(--e-4); background: var(--fond); border-radius: var(--r-l); border: 2px dashed var(--gris-moyen); }
.vide .icone { width: 3rem; height: 3rem; color: var(--encre-douce); margin: 0 auto var(--e-3); display: block; }
.vide p { margin-inline: auto; }

/* ---------- 17. Tableaux ------------------------------------------------- */
.tableau-conteneur { position: relative; background: var(--fond); border: 1px solid var(--gris); border-radius: var(--r-m); box-shadow: var(--ombre-1); overflow-x: auto; overscroll-behavior-x: contain; }
.tableau { width: 100%; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; }
.tableau caption { text-align: left; padding: var(--e-4); font-weight: 700; }
.tableau th, .tableau td { padding: .75rem var(--e-4); text-align: left; border-bottom: 1px solid var(--gris); vertical-align: top; }
.tableau thead th { background: var(--fond-page); font-size: .9375rem; text-transform: uppercase; letter-spacing: .08em; color: var(--encre-douce); white-space: nowrap; position: sticky; top: 0; }
.tableau thead th a { color: inherit; }
.tableau tbody tr:last-child td, .tableau tbody tr:last-child th { border-bottom: 0; }
.tableau .num { text-align: right; }
.tableau td a { font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .tableau tbody tr:hover { background: #FAFBFC; } }

/* ---------- 18. Pagination ---------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; gap: var(--e-2); justify-content: center; list-style: none; padding: 0; margin: var(--e-7) 0 0; }
.pagination li { margin: 0; }
.pagination a, .pagination li > span {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--e-2); min-width: var(--cible); min-height: var(--cible); padding: 0 var(--e-4);
  border-radius: var(--r-pill); font-weight: 600; text-decoration: none; background: var(--fond); color: var(--encre); border: 1px solid var(--gris-moyen);
}
.pagination li > span { border-color: transparent; background: none; }
.pagination [aria-current="page"] { background: var(--encre); color: #fff; border-color: var(--encre); }
@media (hover: hover) and (pointer: fine) { .pagination a:not([aria-current]):hover { border-color: var(--encre); } }

/* ---------- 19. Boîte de dialogue --------------------------------------- */
dialog {
  border: 1px solid var(--gris); border-radius: var(--r-l); padding: var(--e-6); max-width: min(34rem, calc(100vw - 2rem));
  background: var(--fond); box-shadow: var(--ombre-2); color: var(--encre);
}
dialog::backdrop { background: rgb(var(--rvb-encre) / .55); }

/* ---------- 20. Pied de page -------------------------------------------- */
.pied { position: relative; isolation: isolate; overflow: hidden; background: var(--encre); color: #fff; padding: var(--e-9) 0 var(--e-6); margin-top: var(--e-8); }
/* Lueur bleu profond en haut à droite (CSS seul) */
.pied::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; right: -26rem; top: -30rem; width: 56rem; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--rvb-bleu-profond) / .55), rgb(var(--rvb-bleu-profond) / .25) 55%, rgb(var(--rvb-bleu-profond) / 0));
}
.pied a { color: #fff; }
.pied :focus-visible { outline-color: var(--focus-sur-encre); }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.pied li { margin: 0; }
.pied__grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--e-6); padding-bottom: var(--e-7); border-bottom: 1px solid rgb(255 255 255 / .14); }
@media (min-width: 62rem) {
  .pied__grille { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--e-7) var(--gouttiere); }
  .pied__marque { grid-column: 1 / 7; }
  .pied__bloc--contact { grid-column: 7 / 10; }
  .pied__bloc--liens { grid-column: 10 / 13; }
}
.pied__marque { display: grid; gap: var(--e-5); align-content: start; }
.pied__marque .logo img { height: 56px; }
.pied__signature { margin: 0; font: 300 clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem)/1.12 var(--police-titre); letter-spacing: -.015em; max-width: 24ch; text-wrap: balance; }
.pied__apropos { margin: 0; color: var(--sur-encre); max-width: 48ch; }
.pied__bloc { display: grid; gap: var(--e-3); align-content: start; }
.pied__bloc p { margin: 0; }
.pied__titre { margin: 0; font: 700 .9375rem/1.3 var(--police-texte); letter-spacing: .14em; text-transform: uppercase; color: var(--sur-encre); }
.pied__bloc a { display: inline-flex; align-items: center; gap: var(--e-2); min-height: var(--cible); font-weight: 600; }
.pied__bloc .telephone { font-size: 1.375rem; }
.pied__bas { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e-5) var(--e-6); padding-top: var(--e-6); max-width: none; }
.pied__bas p { margin: 0; color: var(--sur-encre); font-size: 1rem; }
/* Emplacements des logos LEADER 21 et 70 (TODO(CLIENT) : logos à fournir) */
.leader { display: flex; flex-wrap: wrap; gap: var(--e-4); margin: 0; }
.leader span {
  display: grid; place-items: center; min-width: 10.75rem; min-height: 4.5rem; padding: 0 var(--e-5);
  border: 1px dashed rgb(255 255 255 / .34); border-radius: var(--r-s);
  color: var(--sur-encre); font-size: .9375rem; font-weight: 600; text-align: center;
}
@media (max-width: 47.99rem) {
  .pied { padding-top: var(--e-8); }
  .pied__marque .logo img { height: 48px; }
  .leader { width: 100%; gap: var(--e-3); }
  .leader span { min-width: 0; flex: 1 1 8.75rem; padding: 0 var(--e-3); }
}
/* Pied réduit du tunnel de réservation */
.pied--tunnel { margin-top: var(--e-7); padding-block: var(--e-5); }
.pied--tunnel::before { display: none; }
.pied--tunnel .rangee { gap: var(--e-3) var(--e-5); }

/* ---------- 21. Marcelito, le camion du CLUC (clin d'œil, en petit) ----- */
/* <svg class="marcelito-svg" viewBox="0 0 248 132" aria-hidden="true" focusable="false"><use href="#marcelito"/></svg>
   Vu de dessus (vues du ciel) : <use href="#marcelito-dessus" …/> (viewBox 0 0 56 24). */
.marcelito-svg { display: block; width: 132px; height: auto; overflow: visible; }

/* ---------- 22. Sprite, utilitaires d'affichage ------------------------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
@media (max-width: 35.99rem) {
  .masque-mobile { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cache-mobile { display: none !important; }
}

/* ---------- 23. Mouvement réduit ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .halo, .halo--derive { animation: none !important; }
  .btn:hover, .btn:active { transform: none !important; }
}

/* ---------- 24. Contraste forcé ----------------------------------------- */
@media (forced-colors: active) {
  .page-publique::before, .pied::before, .aurore { display: none; }
  .nav__lien[aria-current="page"], .menu-mobile__panneau a[aria-current="page"], .nav-compte a[aria-current="page"] { outline: 2px solid CanvasText; text-decoration: underline; }
  .selection, .btn, .statut, .message, .marqueur, .pastille, .zone__pastille, .ticket__bande::before { border: 1px solid CanvasText; }
  .choix__option input:checked + label { outline: 3px solid Highlight; }
  .etapes__barre li { border: 1px solid CanvasText; }
  .etapes__barre li.fait, .etapes__barre li.encours { background: CanvasText; }
}
