/* Même ambiance que l'application : monitoring électrique sobre, données en
   mono ambre, aucune couleur qui ne porte pas d'information. */
:root {
  --bg: #0f1216;
  --panel: #161b21;
  --panel2: #1b222a;
  --line: #242c35;
  --text: #e8eaed;
  --muted: #8a94a0;
  --faint: #5a6470;
  --amber: #ffb454;
  --ok: #7fb069;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  --r: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.shell { max-width: 880px; margin: 0 auto; padding: 40px 24px 64px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

header.top {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
header.top h1 { font-size: 19px; font-weight: 650; letter-spacing: .02em; order: 1; }
/* Le titre est un lien sur la page des mentions : la mise en ligne doit tenir
   dans les deux cas, sinon la marque se décale d'une page à l'autre. */
header.top h1 span { color: var(--amber); }
header.top h1 .mark { vertical-align: -4px; margin-right: 8px; }
header.top h1 a { color: inherit; text-decoration: none; }
/* L'accroche prend son rang à elle : elle ne dispute pas sa ligne à la
   navigation, qui doit rester au même endroit d'une page à l'autre. */
.sub { order: 4; flex-basis: 100%; color: var(--muted); font-size: 13px; }
/* La navigation prend la place laissée par le sous-titre, le sélecteur de
   langue reste collé à droite. */
nav.pages { order: 2; margin-left: auto; display: flex; gap: 16px; font-size: 13px; }
nav.pages a { color: var(--muted); text-decoration: none; }
nav.pages a:hover { color: var(--text); }
nav.pages a[aria-current="page"] { color: var(--amber); }

.langs { order: 3; display: flex; gap: 4px; }
.langs button {
  font: inherit; font-size: 12px; background: none; color: var(--faint);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; cursor: pointer;
}
.langs button[aria-current="true"] { color: var(--amber); border-color: var(--amber); }

.disclaimer { color: var(--muted); font-size: 13px; margin: 18px 0 22px; }
.empty {
  background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--amber);
  border-radius: var(--r); padding: 14px 18px; margin-bottom: 12px;
  color: var(--text); font-size: 14px;
}

.cta { margin: -8px 0 22px; }
.cta a {
  display: inline-block; border: 1px solid var(--amber); border-radius: var(--r);
  padding: 9px 18px; color: var(--amber); text-decoration: none; font-size: 14px;
}
.cta a:hover { background: var(--panel2); }

.hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.big {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 2px;
}
.big .label { font-size: 12px; color: var(--muted); }
.big strong { font-size: 27px; font-weight: 600; color: var(--amber); letter-spacing: -.01em; }
.big .hint { font-size: 12px; color: var(--faint); }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; margin-top: 12px;
}
.card h2 { font-size: 13px; font-weight: 600; color: var(--text); text-transform: uppercase; letter-spacing: .06em; }
.hint { font-size: 12.5px; color: var(--faint); margin-top: 3px; }

#chart { margin-top: 14px; }
#chart svg { width: 100%; height: 160px; display: block; }
.legend { list-style: none; display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.sw { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.sw.cloud { background: var(--amber); }
.sw.local { background: var(--ok); }

table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
td { padding: 7px 0; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: none; }
td.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--amber); }
td.k { color: var(--faint); font-size: 12px; text-align: right; }
.bar { height: 3px; background: var(--amber); border-radius: 2px; margin-top: 4px; }
.bar.local { background: var(--ok); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.split strong { font-size: 22px; color: var(--ok); display: block; margin-top: 8px; }
.grids { list-style: none; margin-top: 10px; font-size: 13px; color: var(--muted); }
.grids li { display: flex; justify-content: space-between; padding: 3px 0; }
.grids span:last-child { font-family: var(--mono); color: var(--text); }

.method p { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.method p strong { color: var(--text); }
.method a { color: var(--amber); }
.method h2 { margin-top: 20px; }
.method h2:first-child { margin-top: 0; }

footer {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 6px 18px;
  margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--faint);
}
footer a { color: var(--muted); }
footer nav { display: flex; gap: 18px; }
/* La mention de propriété prend toute la largeur : elle clôt le pied de page
   plutôt que de disputer sa ligne aux liens. */
footer small { flex-basis: 100%; font-size: 12px; }

/* Téléchargement : un bouton par paquet, lisible d'un coup d'œil. */
.dl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.dl a {
  display: flex; flex-direction: column; gap: 2px;
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 10px 16px; background: var(--panel2);
  color: var(--text); text-decoration: none; font-size: 14px;
}
.dl a:hover { border-color: var(--amber); }
.dl a span { font-size: 11.5px; color: var(--faint); }
.dl a.bouton { border-color: var(--amber); }
.dl a.bouton span { color: var(--muted); }

#tous { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13.5px; }
#tous td { padding: 9px 0; border-top: 1px solid var(--line); }
#tous tr:first-child td { border-top: 0; }
#tous td:last-child { text-align: right; }
#tous td:last-child a { color: var(--amber); }
#tous .mono { color: var(--muted); }

/* Historique : le numéro de version porte la ligne, la date s'efface. */
.release h2 { display: flex; align-items: baseline; gap: 10px; font-family: var(--mono); }
.release .tag {
  font-family: var(--sans); font-style: normal; font-size: 11px;
  color: var(--amber); border: 1px solid var(--amber); border-radius: 6px; padding: 1px 7px;
}
.release .quand { margin-left: auto; font-size: 12px; color: var(--faint); }
.release .notes { margin: 12px 0 0 18px; color: var(--muted); font-size: 13.5px; }
.release .notes li { margin-top: 6px; }
.release + .release { margin-top: 12px; }

@media (max-width: 640px) {
  .hero, .split { grid-template-columns: 1fr; }

  /* Deux rangs, pas trois. Le sélecteur de langue tient à côté de la marque —
     il est petit et il y a la place ; le laisser tomber sur une ligne à lui
     donnait un en-tête en escalier, et un bouton orphelin sous la navigation.
     La navigation prend alors toute la largeur du second rang. */
  header.top { gap: 10px 14px; padding-bottom: 12px; }
  .langs { order: 2; margin-left: auto; }
  nav.pages {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    gap: 20px;
    font-size: 13.5px;
  }
  .sub { order: 4; margin-top: 2px; }
  .release .quand { margin-left: 0; flex-basis: 100%; }
}

/* ── Équivalences ──────────────────────────────────────────────────────── */
/* Une grille qui se remplit d'elle-même : le barème peut gagner une ligne sans
   toucher à la mise en page. La valeur d'abord, l'hypothèse en dernier et en
   plus petit — elle doit être lisible sans disputer la place au chiffre. */
.equivalences h3 {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--faint); margin: 18px 0 10px;
}
.eq {
  list-style: none; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.eq li {
  background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r-sm, 8px);
  padding: 11px 13px; display: flex; flex-direction: column; gap: 1px;
}
.eq strong { font-size: 19px; font-weight: 600; color: var(--amber); }
.eq span { font-size: 13px; color: var(--text); }
.eq em { font-size: 11.5px; font-style: normal; color: var(--faint); }
