/* Charte « Encre » (skill brand) : crème en fond, encre pour le texte, terracotta en signal. */
:root{
  --accent:#b5573a; --accent-hover:#9a4830; --muted:#8a8577;
  --text-strong:#151a28; --text:#3a4154; --text-muted:#5a6275;
  --bg:#f4f0e7; --bg-pure:#ffffff; --bg-elev:#ebe5d8; --line:rgba(21,26,40,.14); --line-strong:rgba(21,26,40,.32);
  --serif:"IBM Plex Serif", Georgia, serif;
  --sans:"IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);font-size:16px;line-height:1.5}
a{color:var(--accent)}
a:hover{color:var(--accent-hover)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
h1,h2,h3,h4{font-family:var(--serif);color:var(--text-strong);line-height:1.25;margin:0 0 .4em}
h1{font-size:30px}
h2{font-size:24px;margin-top:1.2em}
h3{font-size:18px}
h4{font-size:16px}
p{margin:0 0 .5em}
#app{max-width:1240px;margin:0 auto;padding:0 18px 48px}
.colophon{max-width:1240px;margin:0 auto;padding:0 18px 24px;font-size:12px;color:var(--text-muted);text-align:center}

/* Bandeau de démo : fond clair, filet terracotta, vouvoiement (retour du 2026-11-01). */
.demo-bar{background:var(--bg-elev);border-left:4px solid var(--accent);padding:10px 18px;margin:0 -18px 12px;font-size:14px;display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;justify-content:space-between}
.demo-bar p{margin:0;flex:1 1 320px}
.demo-bar strong{color:var(--text-strong)}
.demo-cta{font-weight:600;white-space:nowrap}

.entete{padding:12px 0 4px}
.marque-outil{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);margin:0}
.entete h1{margin:0}
.moment{color:var(--text-muted)}
nav ul{list-style:none;display:flex;flex-wrap:wrap;gap:4px;margin:8px 0 0;padding:0;border-bottom:1px solid var(--line)}
nav a{display:block;padding:8px 12px;text-decoration:none;color:var(--text);border-bottom:3px solid transparent}
nav a[aria-current="page"]{color:var(--text-strong);font-weight:600;border-bottom-color:var(--accent)}
.titre-instrument{margin-top:.8em}
.surtitre{font-size:13px;color:var(--text-muted);margin:0}
.meta{font-size:14px;color:var(--text-muted)}
.signal{font-weight:600;color:var(--accent);margin:0 0 .3em}
.signal::before{content:"▲ "}
.erreur,.chargement{padding:40px 0}
.barre{display:flex;justify-content:flex-end}
.bascule{font:inherit;font-size:14px;padding:6px 12px;border:1px solid var(--line-strong);background:var(--bg-pure);border-radius:4px;cursor:pointer;color:var(--text-strong)}

/* ---------- radar ---------- */
.radar-et-detail{display:grid;grid-template-columns:minmax(0,3fr) minmax(260px,1fr);gap:18px;align-items:start}
.cadre-radar{margin:0}
.radar{width:100%;height:auto;display:block}
.anneau{stroke:var(--line-strong);stroke-width:1}
.anneau.a_l_horizon{fill:var(--bg-elev)}
.anneau.en_approche{fill:var(--bg)}
.anneau.a_portee{fill:var(--bg-pure)}
.centre{fill:var(--bg);stroke:var(--line-strong)}
.rayon{stroke:var(--line);stroke-width:1}
.rayon.limite-zone{stroke:var(--text-muted);stroke-width:2}
.bande-zone.zone-0{fill:var(--text-muted)}
.bande-zone.zone-1{fill:var(--muted)}
.lacune{fill:url(#hachures)}
.hachure{stroke:var(--accent);stroke-width:2;opacity:.45}
.libelle-anneau{font-size:15px;fill:var(--text-muted);dominant-baseline:middle;font-style:italic}
.libelle-secteur{font-size:21px;fill:var(--text);dominant-baseline:middle}
.libelle-secteur.en-lacune{fill:var(--accent);font-weight:600}
.lib-num{display:none}
.point{stroke:var(--text-strong);stroke-width:2}
.point.plein{fill:var(--text-strong)}
.point.vide{fill:var(--bg-pure)}
.signe,.pile,.veille{cursor:pointer}
.signe[aria-pressed="true"] .point{stroke:var(--accent);stroke-width:3}
.signe:focus-visible,.pile:focus-visible,.veille:focus-visible{outline:none}
/* Focus dessiné dans le SVG, lisible sans la couleur : trait plus épais. */
.signe:focus-visible .point{stroke:var(--accent);stroke-width:3}
.fanion{fill:var(--accent);stroke:var(--accent);stroke-width:1.2}
.pile rect{fill:var(--bg-pure);stroke:var(--text-strong);stroke-width:1.6}
.pile:focus-visible rect{stroke:var(--accent);stroke-width:4}
.pile-nombre{font-size:16px;font-weight:600;text-anchor:middle;dominant-baseline:central;fill:var(--text-strong)}
.veille{fill:none;stroke:var(--text-muted);stroke-width:1.6;stroke-dasharray:3 3}
.veille:focus-visible{stroke:var(--accent);stroke-width:4;stroke-dasharray:none}
.detail{background:var(--bg-pure);border:1px solid var(--line);border-radius:4px;padding:14px 16px;position:sticky;top:12px}
.detail.vide{color:var(--text-muted)}
.detail dl{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;margin:8px 0;font-size:14px}
.detail dt{color:var(--text-muted)}
.detail dd{margin:0}
.legende{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px;font-size:14px;margin-top:12px}
.legende ul,.legende ol{margin:0;padding-left:1.2em}
.secteurs-numerotes{display:none}
.anneaux{grid-column:1/-1;color:var(--text-muted)}
.marque{font-family:var(--sans);color:var(--text-strong)}

/* Sur un téléphone, les secteurs se nomment par leur numéro, la légende donne les noms. */
@media (max-width: 720px){
  .radar-et-detail{grid-template-columns:1fr}
  .detail{position:static}
  .lib-long{display:none}
  .lib-num{display:inline;font-size:34px;font-weight:600}
  .legende{grid-template-columns:1fr}
  .secteurs-numerotes{display:block}
}

/* ---------- tableaux et listes ---------- */
.defile{overflow-x:auto}
table{border-collapse:collapse;width:100%;font-size:14px;margin:8px 0 18px}
caption{text-align:left;font-family:var(--serif);font-size:18px;color:var(--text-strong);padding-bottom:6px}
th,td{border-bottom:1px solid var(--line);padding:6px 8px;text-align:left;vertical-align:top}
thead th{color:var(--text-muted);font-weight:600}
table.deplie{table-layout:fixed}
table.deplie th:first-child{width:28%}
tr.zone th{background:var(--bg-elev);font-family:var(--serif);color:var(--text-strong)}
.non-portee{color:var(--accent);font-weight:600}
.liste ol,.engages,.usages,.journal{list-style:none;padding:0;margin:0}
.liste li,.engages li,.usage,.journal li{background:var(--bg-pure);border:1px solid var(--line);border-radius:4px;padding:12px 14px;margin:0 0 10px}
.liste .conditions{margin:.2em 0 .4em;padding-left:1.2em;list-style:disc}
.liste .conditions li{border:0;padding:0;margin:0;background:none}
.usage.a-encadrer{border-left:4px solid var(--accent)}
.capacite{font-family:var(--sans);font-size:13px;font-weight:400;color:var(--text-muted);margin:12px 0 4px;text-transform:uppercase;letter-spacing:.04em}
h5{font-family:var(--serif);color:var(--text-strong);font-size:16px;margin:0 0 .3em}
.pour-lecteur{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.mesure ul{display:flex;flex-wrap:wrap;gap:6px 18px;list-style:none;padding:0}
.journal .evenement{font-weight:600;color:var(--text-strong)}
.effet{font-size:14px;color:var(--text-muted)}
.fiche dl{display:grid;grid-template-columns:minmax(120px,max-content) 1fr;gap:8px 16px}
.fiche dt{color:var(--text-muted)}
.fiche dd{margin:0}
.fiche ul{margin:0;padding-left:1.2em}
@media (max-width: 720px){ .fiche dl{grid-template-columns:1fr} .fiche dd{margin-bottom:6px} }
