/* =====================================================================
   voyant-allume.fr, design "planche de bord de nuit"
   Titres : Chakra Petch | Texte : Asap
   ===================================================================== */

:root {
  --encre:        #11151f;   /* fond habitacle */
  --encre-2:      #171c29;   /* fond alterné */
  --plaque:       #1d2433;   /* surface carte */
  --plaque-haut:  #242c3e;   /* surface relevée */
  --trait:        rgba(255,255,255,0.09);
  --trait-fort:   rgba(255,255,255,0.16);

  --texte:        #e9edf6;
  --texte-doux:   #aeb8cd;
  --texte-faible: #7d8aa3;

  --ambre:        #f2a03d;   /* accent signature */
  --ambre-clair:  #ffc278;

  --rouge:        #ff5247;
  --orange:       #f7a23e;
  --vert:         #45c585;
  --bleu:         #4ea0ec;

  --rayon:        14px;
  --rayon-s:      9px;
  --contenant:    1180px;
  --ombre:        0 18px 40px -22px rgba(0,0,0,0.8);
}

/* teintes appliquées par classe sur n'importe quel bloc */
.t-rouge  { --teinte: var(--rouge);  }
.t-orange { --teinte: var(--orange); }
.t-vert   { --teinte: var(--vert);   }
.t-bleu   { --teinte: var(--bleu);   }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Asap", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--texte);
  background: var(--encre);
  background-image:
    radial-gradient(900px 500px at 80% -10%, rgba(242,160,61,0.07), transparent 60%),
    radial-gradient(700px 500px at 0% 0%, rgba(78,160,236,0.05), transparent 55%);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Chakra Petch", sans-serif; line-height: 1.15; font-weight: 600; }
img, svg { max-width: 100%; }
a { color: var(--ambre-clair); text-decoration: none; }
a:hover { text-decoration: underline; }

.contenant { width: 100%; max-width: var(--contenant); margin: 0 auto; padding: 0 22px; }

.saut-contenu {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ambre); color: #1a1304; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.saut-contenu:focus { left: 0; }

:focus-visible { outline: 3px solid var(--ambre); outline-offset: 2px; border-radius: 4px; }

/* ---------- Barre haute ---------- */
.barre-haute {
  position: sticky; top: 0; z-index: 40;
  background: rgba(15,19,28,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
}
.barre-haute-grille { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.marque { display: inline-flex; align-items: center; gap: 11px; color: var(--texte); font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: 1.28rem; letter-spacing: .5px; }
.marque:hover { text-decoration: none; }
.marque-temoin {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ambre);
  box-shadow: 0 0 0 4px rgba(242,160,61,0.18), 0 0 16px 2px rgba(242,160,61,0.9);
  animation: pulseTemoin 2.6s ease-in-out infinite;
}
@keyframes pulseTemoin { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .marque-temoin { animation: none; } }

.navigation-site { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.navigation-site > a {
  color: var(--texte-doux); font-weight: 500; padding: 8px 12px; border-radius: 999px; font-size: .98rem;
}
.navigation-site > a:hover { color: var(--texte); background: var(--plaque); text-decoration: none; }
.lien-outil {
  background: var(--ambre) !important; color: #1a1304 !important; font-weight: 600 !important;
}
.lien-outil:hover { background: var(--ambre-clair) !important; }
.lien-teinte { position: relative; padding-left: 26px !important; }
.lien-teinte::before {
  content: ""; position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 50%; background: var(--teinte); box-shadow: 0 0 8px var(--teinte);
}

.champ-recherche { display: flex; align-items: center; background: var(--plaque); border: 1px solid var(--trait); border-radius: 999px; padding: 3px 3px 3px 14px; }
.champ-recherche input { background: none; border: 0; color: var(--texte); padding: 7px 4px; width: 150px; font-size: .95rem; outline: none; }
.champ-recherche input::placeholder { color: var(--texte-faible); }
.champ-recherche button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--plaque-haut); color: var(--texte-doux); cursor: pointer; }
.champ-recherche button:hover { color: var(--ambre); }

.bouton-menu { display: none; flex-direction: column; gap: 5px; background: var(--plaque); border: 1px solid var(--trait); width: 46px; height: 42px; border-radius: 10px; cursor: pointer; margin-left: auto; }
.bouton-menu span { display: block; height: 2px; width: 22px; margin: 0 auto; background: var(--texte); transition: .25s; }

/* ---------- Fil d'Ariane ---------- */
.fil-route { padding: 16px 0 0; }
.fil-route ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; font-size: .9rem; color: var(--texte-faible); }
.fil-route li { display: flex; align-items: center; gap: 8px; }
.fil-route li + li::before { content: "›"; color: var(--texte-faible); }
.fil-route a { color: var(--texte-doux); }
.fil-route li[aria-current] { color: var(--texte); }

/* ---------- Accueil : planche de bord ---------- */
.planche-accueil { padding: 40px 0 14px; }
.planche-grille { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.planche-accroche h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); margin: 0 0 8px; }
.planche-accroche h1 .surligne { color: var(--ambre); }
.planche-accroche .sous-titre { font-size: 1.18rem; color: var(--texte-doux); margin: 0 0 26px; max-width: 30ch; }
.planche-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bouton-phare {
  display: inline-flex; align-items: center; gap: 10px; background: var(--ambre); color: #1a1304;
  font-family: "Chakra Petch", sans-serif; font-weight: 600; padding: 14px 24px; border-radius: 999px; font-size: 1.02rem;
}
.bouton-phare:hover { background: var(--ambre-clair); text-decoration: none; transform: translateY(-1px); }
.bouton-ligne {
  display: inline-flex; align-items: center; gap: 8px; color: var(--texte); border: 1px solid var(--trait-fort);
  padding: 14px 22px; border-radius: 999px; font-weight: 500;
}
.bouton-ligne:hover { border-color: var(--ambre); color: var(--ambre); text-decoration: none; }

/* le cluster de voyants animés à droite */
.cluster {
  background: linear-gradient(160deg, var(--plaque-haut), var(--encre-2));
  border: 1px solid var(--trait); border-radius: 22px; padding: 26px;
  box-shadow: var(--ombre); position: relative; overflow: hidden;
}
.cluster::after { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 180px at 70% 0%, rgba(255,255,255,0.06), transparent 70%); pointer-events: none; }
.cluster-titre { font-size: .82rem; text-transform: uppercase; letter-spacing: 2px; color: var(--texte-faible); margin: 0 0 16px; }
.cluster-voyants { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cluster-voyants .vitre-voyant { width: 100%; aspect-ratio: 1; }

/* ---------- Vitre de voyant (le picto allumé) ---------- */
.vitre-voyant {
  display: grid; place-items: center; background: #0d111a;
  border: 1px solid var(--trait); border-radius: var(--rayon-s); color: var(--teinte, var(--ambre));
  width: 64px; height: 64px; flex: none; position: relative;
}
.vitre-voyant .picto-voyant { width: 70%; height: 70%; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--teinte, var(--ambre)) 75%, transparent)); }
.vitre-voyant.lumineux { box-shadow: inset 0 0 22px -6px color-mix(in srgb, var(--teinte, var(--ambre)) 60%, transparent), 0 0 0 1px color-mix(in srgb, var(--teinte, var(--ambre)) 30%, transparent); }

/* ---------- Sélecteur de teinte (accueil + filtres) ---------- */
.bandeau-teintes { padding: 20px 0 8px; }
.bandeau-teintes h2, .section-titre { font-size: 1.5rem; margin: 0 0 4px; }
.section-chapeau { color: var(--texte-doux); margin: 0 0 22px; }
.selecteur-teinte { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tuile-teinte {
  display: block; background: var(--plaque); border: 1px solid var(--trait); border-top: 3px solid var(--teinte);
  border-radius: var(--rayon); padding: 20px; color: var(--texte); transition: .2s;
}
.tuile-teinte:hover { transform: translateY(-3px); border-color: var(--teinte); text-decoration: none; box-shadow: var(--ombre); }
.tuile-teinte .puce { width: 18px; height: 18px; border-radius: 50%; background: var(--teinte); box-shadow: 0 0 12px var(--teinte); display: inline-block; }
.tuile-teinte h3 { margin: 12px 0 6px; font-size: 1.3rem; }
.tuile-teinte p { margin: 0 0 12px; color: var(--texte-doux); font-size: .96rem; }
.tuile-teinte .compte { font-family: "Chakra Petch", sans-serif; font-size: .85rem; color: var(--texte-faible); }

/* ---------- Grille de signaux ---------- */
.bloc-section { padding: 34px 0; }
.bloc-section.alt { background: var(--encre-2); border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait); }
.grille-signaux { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.carte-signal {
  display: flex; gap: 15px; background: var(--plaque); border: 1px solid var(--trait); border-left: 3px solid var(--teinte);
  border-radius: var(--rayon); padding: 16px; color: var(--texte); transition: .18s;
}
.carte-signal:hover { transform: translateY(-2px); border-color: var(--trait-fort); border-left-color: var(--teinte); text-decoration: none; box-shadow: var(--ombre); }
.carte-corps { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.carte-nom { font-family: "Chakra Petch", sans-serif; font-weight: 600; font-size: 1.06rem; }
.carte-resume { color: var(--texte-doux); font-size: .93rem; line-height: 1.5; }
.carte-pied { display: flex; align-items: center; gap: 8px; margin-top: 4px; }

.pastille-teinte { font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; color: var(--teinte); border: 1px solid var(--teinte); }
.carte-niveau { font-size: .74rem; color: var(--texte-faible); }
.carte-niveau.n4 { color: var(--rouge); }
.carte-niveau.n3 { color: var(--orange); }

/* ---------- Jauge d'urgence ---------- */
.jauge-urgence { display: inline-flex; gap: 5px; }
.jauge-urgence .cran { width: 26px; height: 8px; border-radius: 3px; background: var(--trait-fort); }
.jauge-urgence .cran.est-actif.n1 { background: var(--vert); }
.jauge-urgence .cran.est-actif.n2 { background: var(--orange); }
.jauge-urgence .cran.est-actif.n3 { background: var(--orange); }
.jauge-urgence .cran.est-actif.n4 { background: var(--rouge); box-shadow: 0 0 10px var(--rouge); }

/* ---------- Fiche voyant ---------- */
.fiche-corps { padding: 8px 0 50px; }
.pupitre-voyant {
  display: grid; grid-template-columns: 168px 1fr; gap: 28px; align-items: center;
  background: linear-gradient(150deg, var(--plaque-haut), var(--encre-2));
  border: 1px solid var(--trait); border-radius: 20px; padding: 28px; margin: 18px 0 30px; box-shadow: var(--ombre);
}
.pupitre-vitre { width: 168px; height: 168px; border-radius: 18px; }
.pupitre-vitre .picto-voyant { width: 64%; height: 64%; }
.pupitre-meta .ligne-teinte { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pupitre-meta h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 10px; }
.pupitre-meta .accroche { color: var(--texte-doux); font-size: 1.1rem; margin: 0 0 16px; }
.pupitre-urgence { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pupitre-urgence .niveau-label { font-family: "Chakra Petch", sans-serif; font-weight: 600; }
.badge-systeme { font-size: .8rem; color: var(--texte-doux); background: var(--plaque); border: 1px solid var(--trait); padding: 4px 11px; border-radius: 999px; }

/* verdict flash */
.verdict-flash {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  border: 1px solid var(--teinte); border-radius: var(--rayon); padding: 18px 20px; margin: 0 0 30px;
  background: color-mix(in srgb, var(--teinte) 11%, var(--encre-2));
}
.verdict-flash .picto-statut { width: 34px; height: 34px; color: var(--teinte); }
.verdict-flash h2 { margin: 0 0 4px; font-size: 1.18rem; color: var(--teinte); }
.verdict-flash p { margin: 0; color: var(--texte); }

/* mise en page article : contenu + sommaire latéral */
.fiche-disposition { display: grid; grid-template-columns: 1fr 282px; gap: 40px; align-items: start; }
.fiche-texte > section { margin-bottom: 34px; scroll-margin-top: 90px; }
.fiche-texte h2 { font-size: 1.55rem; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--trait); }
.fiche-texte h3 { font-size: 1.2rem; margin: 22px 0 8px; }
.fiche-texte p, .fiche-texte li { font-size: 1.04rem; }
.fiche-texte p { margin: 0 0 14px; }

/* liste des causes (cartes) */
.bloc-origines { display: grid; gap: 12px; }
.carte-origine { background: var(--plaque); border: 1px solid var(--trait); border-radius: var(--rayon-s); padding: 14px 16px 14px 18px; border-left: 3px solid var(--ambre); }
.carte-origine h3 { margin: 0 0 4px; font-size: 1.06rem; }
.carte-origine p { margin: 0; color: var(--texte-doux); font-size: .98rem; }

/* protocole "que faire" : étapes numérotées */
.liste-gestes { list-style: none; counter-reset: geste; padding: 0; margin: 0; display: grid; gap: 12px; }
.liste-gestes li { counter-increment: geste; position: relative; padding: 14px 16px 14px 58px; background: var(--plaque); border: 1px solid var(--trait); border-radius: var(--rayon-s); }
.liste-gestes li::before {
  content: counter(geste); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ambre); color: #1a1304; font-family: "Chakra Petch", sans-serif; font-weight: 700;
}

/* encart fixe vs clignotant */
.duo-etat { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.carte-etat { border: 1px solid var(--trait); border-radius: var(--rayon-s); padding: 16px; background: var(--encre-2); }
.carte-etat.fixe { border-top: 3px solid var(--orange); }
.carte-etat.clignote { border-top: 3px solid var(--rouge); }
.carte-etat h3 { margin: 0 0 6px; font-size: 1.05rem; }
.carte-etat p { margin: 0; color: var(--texte-doux); font-size: .96rem; }

/* tableau coût / repères */
.tableau-defilant { overflow-x: auto; margin: 0 0 14px; }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--trait); }
thead th { font-family: "Chakra Petch", sans-serif; color: var(--ambre); background: var(--encre-2); }
tbody tr:hover { background: var(--plaque); }

/* FAQ accordéon */
.questions-route { display: grid; gap: 10px; }
.question {
  background: var(--plaque); border: 1px solid var(--trait); border-radius: var(--rayon-s); overflow: hidden;
}
.question summary { cursor: pointer; padding: 15px 18px; font-family: "Chakra Petch", sans-serif; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.question summary::-webkit-details-marker { display: none; }
.question summary::after { content: "+"; color: var(--ambre); font-size: 1.4rem; line-height: 1; }
.question[open] summary::after { content: "–"; }
.question .reponse { padding: 0 18px 16px; color: var(--texte-doux); }
.question .reponse p { margin: 0 0 10px; }

/* sommaire latéral + liés */
.colonne-laterale { position: sticky; top: 86px; display: grid; gap: 18px; }
.panneau { background: var(--plaque); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 18px; }
.panneau h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--texte-faible); margin: 0 0 12px; }
.sommaire-fiche { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sommaire-fiche a { display: block; color: var(--texte-doux); padding: 7px 10px; border-radius: 7px; font-size: .96rem; }
.sommaire-fiche a:hover { background: var(--plaque-haut); color: var(--texte); text-decoration: none; }
.liste-liens-fiche { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.liste-liens-fiche a { display: flex; gap: 10px; align-items: center; color: var(--texte); }
.liste-liens-fiche .vitre-voyant { width: 40px; height: 40px; }
.liste-liens-fiche a:hover .carte-nom { color: var(--ambre); }
.liste-liens-fiche span.l-nom { font-size: .95rem; }

/* ---------- Outil identificateur ---------- */
.outil-entete { padding: 30px 0 10px; text-align: center; }
.outil-entete h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 8px; }
.outil-entete p { color: var(--texte-doux); max-width: 56ch; margin: 0 auto; }
.console-filtre { background: var(--plaque); border: 1px solid var(--trait); border-radius: 18px; padding: 22px; margin: 24px 0; box-shadow: var(--ombre); }
.console-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.console-ligne:last-child { margin-bottom: 0; }
.console-ligne > .console-label { font-family: "Chakra Petch", sans-serif; font-weight: 600; color: var(--texte-faible); width: 110px; text-transform: uppercase; font-size: .8rem; letter-spacing: 1px; }
.puce-filtre {
  border: 1px solid var(--trait-fort); background: var(--encre-2); color: var(--texte-doux);
  padding: 9px 16px; border-radius: 999px; cursor: pointer; font-family: "Asap", sans-serif; font-size: .95rem; display: inline-flex; align-items: center; gap: 8px;
}
.puce-filtre:hover { color: var(--texte); border-color: var(--texte-doux); }
.puce-filtre[aria-pressed="true"] { background: var(--ambre); color: #1a1304; border-color: var(--ambre); font-weight: 600; }
.puce-filtre .rond { width: 11px; height: 11px; border-radius: 50%; background: var(--teinte, var(--ambre)); box-shadow: 0 0 8px var(--teinte, var(--ambre)); }
.compteur-resultats { color: var(--texte-faible); font-size: .95rem; margin: 0 0 14px; }
.aucun-resultat { text-align: center; color: var(--texte-doux); padding: 30px; }

/* ---------- En-tête des pages (hubs, recherche, légal) ---------- */
.entete-page {
  background: linear-gradient(150deg, var(--plaque-haut), var(--encre-2));
  border-bottom: 1px solid var(--trait);
  padding: 32px 0 30px; margin-bottom: 8px; position: relative;
}
.entete-page::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ambre);
}
.entete-page .badge-systeme { margin-bottom: 14px; }
.entete-page h1 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); margin: 0 0 10px; max-width: 24ch; }
.entete-page .accroche { color: var(--texte-doux); font-size: 1.12rem; max-width: 60ch; margin: 0; }
/* En-tête teinté pour les pages couleur : l'accent suit la teinte */
.entete-page.t-rouge::before, .entete-page.t-orange::before,
.entete-page.t-vert::before, .entete-page.t-bleu::before { background: var(--teinte); }
.zone-texte { max-width: 760px; }
.zone-texte h2 { font-size: 1.5rem; margin: 32px 0 12px; }
.zone-texte h3 { font-size: 1.18rem; margin: 22px 0 8px; }
.zone-texte p, .zone-texte li { font-size: 1.05rem; }
.zone-texte ul, .zone-texte ol { padding-left: 22px; }
.zone-texte li { margin-bottom: 7px; }
.encadre {
  background: var(--plaque); border: 1px solid var(--trait); border-left: 3px solid var(--ambre);
  border-radius: var(--rayon-s); padding: 16px 18px; margin: 20px 0;
}
.encadre h3 { margin: 0 0 6px; color: var(--ambre); font-size: 1.05rem; }
.encadre p { margin: 0; color: var(--texte-doux); }

/* ---------- Guides (dossiers) ---------- */
.carte-dossier {
  background: linear-gradient(150deg, var(--plaque-haut), var(--encre-2));
  border-bottom: 1px solid var(--trait); padding: 34px 0 30px; margin-bottom: 8px;
}
.carte-dossier-grille { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.dossier-label {
  display: inline-flex; align-items: center; gap: 8px; color: var(--ambre);
  font-family: "Chakra Petch", sans-serif; font-weight: 600; font-size: .8rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  background: color-mix(in srgb, var(--ambre) 12%, var(--encre)); border: 1px solid color-mix(in srgb, var(--ambre) 35%, transparent);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
.carte-dossier-texte h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 12px; max-width: 20ch; }
.dossier-accroche { color: var(--texte-doux); font-size: 1.15rem; margin: 0 0 18px; max-width: 58ch; }
.dossier-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--texte-faible); font-size: .92rem; }
.dossier-meta span { display: inline-flex; align-items: center; gap: 7px; }
.dossier-meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--texte-faible); margin-right: 13px; }
.carte-dossier-embleme .vitre-voyant { border-radius: 20px; }

.guide-texte > p:first-of-type { font-size: 1.18rem; line-height: 1.7; color: var(--texte); border-left: 3px solid var(--ambre); padding-left: 18px; margin: 4px 0 26px; }
.guide-texte h2 { font-size: 1.5rem; margin: 34px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--trait); scroll-margin-top: 90px; }
.guide-texte h3 { font-size: 1.18rem; margin: 24px 0 8px; color: var(--ambre-clair); }
.guide-texte p, .guide-texte li { font-size: 1.05rem; }
.guide-texte p { margin: 0 0 15px; }
.guide-texte ul, .guide-texte ol { padding-left: 4px; list-style: none; display: grid; gap: 9px; margin: 0 0 18px; }
.guide-texte ul li { position: relative; padding-left: 28px; }
.guide-texte ul li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--ambre); box-shadow: 0 0 8px color-mix(in srgb, var(--ambre) 70%, transparent); }
.guide-texte ol { counter-reset: gpas; }
.guide-texte ol li { position: relative; padding-left: 36px; counter-increment: gpas; }
.guide-texte ol li::before { content: counter(gpas); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--plaque-haut); border: 1px solid var(--trait-fort); color: var(--ambre); font-family: "Chakra Petch", sans-serif; font-size: .8rem; font-weight: 700; }
.guide-texte .encadre h3 { color: var(--ambre); margin-top: 0; }

.dossier-fin {
  margin-top: 34px; padding: 26px; text-align: center;
  background: linear-gradient(150deg, var(--plaque-haut), var(--encre-2));
  border: 1px solid var(--trait); border-radius: var(--rayon);
}
.dossier-fin h2 { border: 0; padding: 0; margin: 0 0 8px; }
.dossier-fin p { color: var(--texte-doux); max-width: 52ch; margin: 0 auto 18px; }

.liste-autres-guides { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.liste-autres-guides a { display: block; color: var(--texte); font-size: .96rem; padding-left: 16px; position: relative; }
.liste-autres-guides a::before { content: "›"; position: absolute; left: 0; color: var(--ambre); }
.liste-autres-guides a:hover { color: var(--ambre); text-decoration: none; }

@media (max-width: 760px) {
  .carte-dossier-grille { grid-template-columns: 1fr; }
  .carte-dossier-embleme { display: none; }
}

/* ---------- Pied ---------- */
.pied-route { background: var(--encre-2); border-top: 1px solid var(--trait); margin-top: 40px; }
.pied-grille { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding: 40px 22px 26px; }
.pied-bloc h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--texte-faible); margin: 0 0 12px; }
.pied-bloc a { display: block; color: var(--texte-doux); padding: 4px 0; }
.pied-bloc a:hover { color: var(--ambre); }
.pied-nom { font-family: "Chakra Petch", sans-serif; font-weight: 700; font-size: 1.2rem; margin: 10px 0 6px; }
.pied-baseline { color: var(--texte-doux); font-size: .95rem; margin: 0; max-width: 36ch; }
.pied-bas { border-top: 1px solid var(--trait); padding: 18px 22px 30px; display: grid; gap: 8px; }
.pied-avertissement { color: var(--texte-faible); font-size: .85rem; margin: 0; max-width: 90ch; }
.pied-legal { color: var(--texte-faible); font-size: .9rem; margin: 0; }
.pied-legal a { color: var(--texte-doux); }

/* ---------- 404 ---------- */
.zone-404 { text-align: center; padding: 70px 20px; }
.zone-404 .code { font-family: "Chakra Petch", sans-serif; font-size: 5.5rem; color: var(--ambre); line-height: 1; }
.zone-404 h1 { margin: 8px 0 10px; }
.zone-404 p { color: var(--texte-doux); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .planche-grille { grid-template-columns: 1fr; }
  .cluster { order: -1; }
  .fiche-disposition { grid-template-columns: 1fr; }
  .colonne-laterale { position: static; }
  .pied-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .bouton-menu { display: flex; }
  .navigation-site {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--encre-2); border-bottom: 1px solid var(--trait); padding: 14px; margin: 0;
    transform: translateY(-130%); transition: transform .28s ease; max-height: calc(100vh - 66px); overflow-y: auto;
  }
  .navigation-site.ouvert { transform: translateY(0); }
  .champ-recherche { margin-top: 6px; }
  .champ-recherche input { width: 100%; }
  .selecteur-teinte { grid-template-columns: 1fr 1fr; }
  .pupitre-voyant { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .pupitre-urgence { justify-content: center; }
  .duo-etat { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .selecteur-teinte { grid-template-columns: 1fr; }
  .pied-grille { grid-template-columns: 1fr; }
  .cluster-voyants { grid-template-columns: repeat(3, 1fr); }
}
