/* kadenas.fr · une colonne de lecture, polices du système (aucune ressource
   tierce : le site du socle doit tenir le socle). Vert 131° au registre des
   teintes de la flotte, à 30° de Shift et d'Angle Mort. Le vert dit « surveillé »,
   jamais « sécurisé ». Aucun tiret long dans le texte affiché (règle 15). */
:root {
  --fond: #f5f6f4;
  --carte: #ffffff;
  --encre: #1b2230;
  --doux: #586170;
  --filet: #dce1df;
  --vert: #2a8a3b;
  --vert-pale: #e4f2e6;
  --attente: #8a5f0e;
  --attente-pale: #f6ecd6;
  --alerte: #b3261e;
  --alerte-pale: #fbe3e0;
  --titre: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --texte: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #11161b; --carte: #182029; --encre: #e7ebef; --doux: #a2abb6; --filet: #2a333e;
    --vert: #5ec972; --vert-pale: #15301d; --attente: #e0b25a; --attente-pale: #33291a;
    --alerte: #f08a80; --alerte-pale: #3a1d1b;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font: 400 16px/1.6 var(--texte);
  display: flex; flex-direction: column; min-height: 100dvh;
}
a { color: var(--vert); }
a:focus-visible { outline: 2px solid var(--vert); outline-offset: 2px; border-radius: 3px; }
.col {
  width: 100%; max-width: 760px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
header.tete { padding-block: 22px 8px; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--encre); font: 700 1.15rem/1 var(--titre); letter-spacing: -.01em; }
.marque .tuile { width: 30px; height: 30px; border-radius: 8px; background: var(--vert); display: inline-grid; place-items: center; }
.marque .tuile svg { width: 13px; height: 15px; color: #fff; }
main { flex: 1; padding-block: 28px 56px; display: grid; gap: 44px; align-content: start; }
h1, h2, h3 { font-family: var(--titre); text-wrap: balance; margin: 0; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); line-height: 1.08; }
h2 { font-size: 1.35rem; line-height: 1.2; }
h3 { font-size: 1rem; }
p { margin: 0; }
section { display: grid; gap: 14px; }
.surtitre { font: 500 .76rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--vert); }
.chapo { color: var(--doux); font-size: 1.08rem; max-width: 62ch; }
.texte { max-width: 64ch; }
.doux { color: var(--doux); }
.petit { font-size: .9rem; }
ul.liste { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; max-width: 64ch; }

/* La pastille, telle qu'elle paraît au pied des sites */
.pastille { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 6px; border: 1px solid var(--filet); border-radius: 999px; font: 500 .8rem/1 var(--mono); color: var(--encre); text-decoration: none; background: var(--carte); }
.pastille .tuile { width: 18px; height: 18px; border-radius: 5px; background: var(--vert); display: inline-grid; place-items: center; }
.pastille .tuile svg { width: 8px; height: 10px; color: #fff; }

/* Les sites qui le portent */
.sites { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sites a { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--filet); border-radius: 12px; background: var(--carte); text-decoration: none; color: var(--encre); }
.sites a:hover { border-color: var(--vert); }
.sites .dom { font: 500 .85rem/1.3 var(--mono); color: var(--doux); grid-column: 1; min-width: 0; overflow-wrap: anywhere; }
.sites .nom { font-weight: 600; }
.sites .etat { grid-row: 1 / span 2; grid-column: 2; }

.niveau { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font: 500 .82rem/1 var(--texte); white-space: nowrap; }
.niveau::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.niveau.ok { background: var(--vert-pale); color: var(--vert); }
.niveau.ko { background: var(--alerte-pale); color: var(--alerte); }

.contact { padding: 18px 20px; border-radius: 12px; background: var(--vert-pale); display: grid; gap: 8px; }
.adresse { font: 500 1rem/1.3 var(--mono); user-select: all; overflow-wrap: anywhere; }

/* Le socle */
.controles { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: c; }
.controles li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--filet); counter-increment: c; }
.controles li::before { content: counter(c); font: 500 .85rem/1.65 var(--mono); color: var(--vert); }
.controles li > div { display: grid; gap: 2px; min-width: 0; }
.controles .qui { font: 400 .74rem/1.4 var(--mono); color: var(--doux); text-transform: uppercase; letter-spacing: .06em; }
.controles li.ext::before, .controles li.tenu::before { }

/* La page de vérification */
.fiche { border: 1px solid var(--filet); border-radius: 14px; background: var(--carte); padding: 20px; display: grid; gap: 18px; }
.fiche-tete { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.fiche-tete .dom { font: 700 1.35rem/1.1 var(--titre); overflow-wrap: anywhere; }
.tampon { font: 400 .8rem/1.45 var(--mono); color: var(--doux); }
.groupe { display: grid; }
.groupe h2 { font: 500 .74rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--doux); padding-bottom: 6px; }
.ctrl { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px dashed var(--filet); font-size: .94rem; }
.ctrl .ic { font: 600 .85rem/1 var(--mono); }
.ctrl .etat { font: 400 .76rem/1.35 var(--mono); color: var(--doux); text-align: right; max-width: 16ch; }
.ctrl.ok .ic { color: var(--vert); }
.ctrl.attente .ic, .ctrl.attente .etat { color: var(--attente); }
.ctrl.ko .ic, .ctrl.ko .etat { color: var(--alerte); }
.ctrl .detail { display: block; color: var(--doux); font-size: .84rem; }

footer.pied { border-top: 1px solid var(--filet); padding-block: 18px 26px; display: grid; gap: 10px; justify-items: center; text-align: center; font-size: .88rem; color: var(--doux); }
footer.pied nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
footer.pied a { color: var(--doux); }
footer.pied .colophon { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }
footer.pied .colophon a { color: inherit; }

@media (min-width: 900px) {
  body { font-size: 17px; }
}
