/* Pages éditoriales — mêmes tokens que l'accueil (design/design-tokens.md),
   mais dans un fichier externe : ces pages sont générées, et une feuille
   partagée se met en cache une fois pour toutes.

   Les pages écrites à la main (accueil, CGU, support…) gardent leur style
   en ligne : les toucher n'apporterait rien et risquerait une régression. */

:root {
  --fond: #F1F5F3; --surface: #FFFFFF; --encre: #132420; --acier: #5C7370;
  --vert: #0E6B5B; --vert-doux: rgba(14, 107, 91, .09); --corail: #F2604A;
  --bord: rgba(19, 36, 32, .1); --ombre: 0 2px 10px rgba(14, 60, 50, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #0F1715; --surface: #17211E; --encre: #E8EFEC; --acier: #93A6A1;
    --vert: #3AA98F; --vert-doux: rgba(58, 169, 143, .14); --corail: #F47B66;
    --bord: rgba(232, 239, 236, .12); --ombre: 0 2px 10px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--fond); color: var(--encre); font-size: 17px;
  line-height: 1.65;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--vert); }
.contenu { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.haut { padding: 18px 0; }
header.haut .contenu {
  max-width: 980px; display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}
.marque {
  display: flex; align-items: center; gap: 10px; font-weight: 700;
  font-size: 20px; color: var(--encre); text-decoration: none;
}
.marque img { width: 34px; height: 34px; border-radius: 8px; }
.marque b { color: var(--vert); }
/* ---- L'entête : deux menus, zéro script -------------------------------
   Le menu des sections et le sélecteur de langue sont des <details>
   natifs. Ils s'ouvrent sans JavaScript, au clavier comme à la souris —
   décisif ici, puisque la CSP du site n'accorde pas 'unsafe-inline' aux
   scripts : une navigation qui dépendrait d'un script serait une
   navigation qui peut ne pas s'afficher.

   Avant, les langues défilaient à plat dans l'entête. À cinq elles
   poussaient la navigation sur une deuxième ligne dès 1280 px, et elles
   criaient plus fort qu'elle — bordées et vertes contre du gris. Chaque
   langue de plus aggravait les deux. */
nav.ancres { margin-left: auto; display: flex; gap: 10px; align-items: center; }
nav.ancres a { color: var(--acier); text-decoration: none; font-size: 15px; }
nav.ancres a:hover { color: var(--vert); }
nav.ancres details { position: relative; }
nav.ancres summary { list-style: none; cursor: pointer;
                     display: inline-flex; align-items: center; gap: 5px;
                     min-height: 44px; padding: 0 12px; border-radius: 99px;
                     border: 1px solid var(--bord); color: var(--vert);
                     font-weight: 600; font-size: 14.5px; }
nav.ancres summary::-webkit-details-marker { display: none; }
nav.ancres summary:hover, nav.ancres details[open] summary { border-color: var(--vert); }
nav.ancres .ic { width: 18px; height: 18px; fill: none; stroke: currentColor;
                 stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
nav.ancres details[open] .chevron { transform: rotate(180deg); }
.panneau { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
           display: flex; flex-direction: column; min-width: 176px;
           background: var(--surface); border: 1px solid var(--bord);
           border-radius: 12px; padding: 5px; box-shadow: var(--ombre); }
.panneau a { padding: 10px 12px; border-radius: 8px; font-size: 15px;
             color: var(--encre); }
.panneau a:hover { background: var(--vert-doux); color: var(--vert); }
/* La langue courante reste dans la liste — la retirer obligerait à
   deviner où l'on est. Elle se marque, à l'œil comme au lecteur d'écran
   (aria-current dans le HTML). */
.panneau a[aria-current] { background: var(--vert-doux); color: var(--vert);
                           font-weight: 600; }
.panneau a[aria-current]::before { content: "✓"; margin-right: 7px; }

/* Les sections en ligne sur desktop, dans le panneau du bouton menu sur
   mobile — l'une ou l'autre, jamais les deux. La bascule se fait au
   `display: none`, qui marche partout : révéler par CSS le contenu d'un
   <details> fermé aurait évité d'écrire les liens deux fois, mais un
   <details> fermé ne contribue pas à la largeur de son parent (mesuré à
   0 px). Chromium se rattrape avec `width: max-content` ; rien ne dit que
   Safari fasse pareil, et la navigation n'est pas l'endroit où parier. */
nav.ancres .sections { display: flex; gap: 18px; align-items: center; }
nav.ancres .sections a { font-size: 15px; }
@media (min-width: 761px) {
  nav.ancres .menu { display: none; }
}

/* Sous 760 px, le bouton menu apparaît et les sections passent dans son
   panneau. Elles ne disparaissent plus, comme c'était le cas avant. */
@media (max-width: 760px) {
  nav.ancres .sections { display: none; }
  nav.ancres { gap: 8px; }
  nav.ancres summary { padding: 0 10px; }
  nav.ancres .menu > .panneau { min-width: 190px; }
}

.pouls {
  border: none; border-top: 2.5px solid var(--corail); width: 90px;
  margin: 0 0 18px;
}

main.article { padding: 10px 0 40px; }
nav.fil { color: var(--acier); font-size: 14px; margin-bottom: 20px; }
nav.fil a { color: var(--acier); text-decoration: none; }
nav.fil a:hover { color: var(--vert); }

h1 { font-size: clamp(28px, 4vw, 38px); line-height: 1.2; margin: 0 0 14px; }
h2 {
  font-size: 24px; line-height: 1.3; margin: 38px 0 12px;
  scroll-margin-top: 20px;
}
h3 { font-size: 19px; margin: 26px 0 8px; }
p { margin: 0 0 16px; }
.chapeau { font-size: 19px; color: var(--acier); margin-bottom: 26px; }

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }

blockquote {
  margin: 22px 0; padding: 14px 18px; background: var(--vert-doux);
  border-left: 3px solid var(--vert); border-radius: 0 10px 10px 0;
}
blockquote p { margin: 0; color: var(--encre); }

code {
  background: var(--vert-doux); padding: 1px 5px; border-radius: 5px;
  font-size: .92em;
}

/* Les tableaux de protocole sont larges : ils défilent DANS leur boîte,
   jamais la page. */
.table-defilante { overflow-x: auto; margin: 0 0 20px; }
table {
  border-collapse: collapse; width: 100%; min-width: 520px;
  background: var(--surface); border: 1px solid var(--bord);
  border-radius: 12px; overflow: hidden; font-size: 15.5px;
}
th, td { text-align: left; padding: 11px 14px; border-top: 1px solid var(--bord); }
thead th {
  border-top: none; background: var(--vert-doux); color: var(--vert);
  font-size: 13px; text-transform: uppercase; letter-spacing: .04em;
}
td .note { display: block; color: var(--acier); font-size: 13.5px; font-weight: 400; }
tr.ligne-note td { color: var(--acier); font-size: 13.5px; padding-top: 0; border-top: none; }

.encart-attente {
  margin: 40px 0 24px; padding: 26px; background: var(--vert-doux);
  border-radius: 14px;
}
.encart-attente h2 { margin: 0 0 8px; font-size: 21px; }
.encart-attente p { color: var(--acier); font-size: 16px; }

form.liste-attente { margin: 16px 0 0; }
form.liste-attente .rang { display: flex; gap: 10px; flex-wrap: wrap; }
form.liste-attente input[type="email"] {
  flex: 1 1 240px; min-width: 0; font: inherit; padding: 12px 14px;
  border: 1px solid var(--bord); border-radius: 10px;
  background: var(--surface); color: var(--encre);
}
form.liste-attente button {
  font: inherit; font-weight: 700; padding: 12px 22px; border: none;
  border-radius: 10px; background: var(--vert); color: #fff; cursor: pointer;
}
form.liste-attente button[disabled] { opacity: .6; cursor: default; }
form.liste-attente .hp {
  position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden;
}
form.liste-attente .promesse { color: var(--acier); font-size: 13.5px; margin: 9px 0 0; }
form.liste-attente .etat { margin: 10px 0 0; font-size: 14.5px; }
form.liste-attente .etat.ok { color: var(--vert); font-weight: 600; }
form.liste-attente .etat.ko { color: var(--corail); font-weight: 600; }

.grille-guides {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; margin-bottom: 10px;
}
.carte-guide {
  display: block; background: var(--surface); border: 1px solid var(--bord);
  border-radius: 14px; padding: 18px; text-decoration: none;
  box-shadow: var(--ombre);
}
.carte-guide h3 { margin: 0 0 6px; font-size: 17px; color: var(--encre); }
.carte-guide p { margin: 0; color: var(--acier); font-size: 14.5px; }
.carte-guide:hover { border-color: var(--vert); }

.maj { color: var(--acier); font-size: 13.5px; }

footer.pied { padding: 26px 0 40px; color: var(--acier); font-size: 14px; }
footer.pied .contenu {
  max-width: 980px; display: flex; gap: 18px; flex-wrap: wrap;
  align-items: center;
}
footer.pied a { color: var(--acier); }
