:root {
  --marine: #0F1A38;
  --formation: #1E4B96;
  --accent: #BDD0F5;
  --instit: #223468;
  --gris: #697896;
  --alerte: #B42318;      /* rouge : ça ne va pas (non conforme, retard, lien cassé) */
  --ok: #1E7A46;          /* vert : ça va bien (conforme, fait, à jour) */
  --encours: #C2550C;     /* orange : à compléter, en cours, partiel (jamais de jaune ni d'or) */
  --fond: #F3F6FC;
  --blanc: #FFFFFF;
  --bord: #D5DEF0;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--marine);
  font-family: 'Bai Jamjuree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.5;
}
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 14px; }
main.wrap { padding-top: 18px; padding-bottom: 36px; }
a { color: var(--formation); }
h1 { font-size: 1.5rem; margin: .2rem 0 1rem; color: var(--marine); }
h2 { font-size: 1.2rem; margin: 1.4rem 0 .6rem; color: var(--instit); }
h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.muted { color: var(--gris); }
.small { font-size: .88rem; }

.topbar { background: var(--marine); color: #fff; position: sticky; top: 0; z-index: 10; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 54px; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: .3px; }
.brand span { color: var(--accent); font-weight: 500; }
.burger { background: none; border: 1px solid var(--gris); color: #fff; font-size: 1.2rem; border-radius: 6px; padding: 4px 11px; min-height: 40px; }
.nav { display: none; width: 100%; flex-direction: column; padding-bottom: 10px; }
.nav.ouvert { display: flex; }
.nav a, .nav .lien { color: #fff; text-decoration: none; padding: 12px 4px; border-top: 1px solid var(--instit); font: inherit; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; width: 100%; cursor: pointer; }
.nav a.actif { color: var(--accent); font-weight: 700; }
form.inline { display: block; margin: 0; }

.card { background: var(--blanc); border: 1px solid var(--bord); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.flash { padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; border: 1px solid; }
.flash.ok { background: #E7F4EC; border-color: var(--ok); color: #14532D; }
.flash.err { background: #FCEAE8; border-color: var(--alerte); color: #7A1A10; }

label { display: block; font-weight: 500; margin-bottom: 12px; }
input[type=text], input[type=password], input[type=url], input[type=date], input[type=file], select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px; font: inherit; color: var(--marine);
  background: #fff; border: 1px solid var(--gris); border-radius: 8px; min-height: 44px;
}
textarea { min-height: 90px; resize: vertical; }
.btn, button.btn {
  display: inline-block; background: var(--formation); color: #fff; border: 0; border-radius: 8px;
  padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 44px;
}
.btn.sec { background: var(--instit); }
.btn.danger { background: var(--alerte); }
.btn.mini { padding: 6px 12px; min-height: 36px; font-size: .9rem; }
.login { max-width: 420px; margin: 30px auto; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.st-conforme { background: var(--ok); color: #fff; }
.st-a_completer { background: var(--encours); color: #fff; }
.st-non_conforme { background: var(--alerte); color: #fff; }
.st-non_applicable { background: var(--accent); color: var(--instit); }
.b-verifier { background: var(--alerte); color: #fff; }
.b-auto { background: var(--formation); color: #fff; }
.b-nouveau { background: var(--instit); color: #fff; }
.b-impact-fort { background: var(--alerte); color: #fff; }
.b-impact-moyen { background: var(--gris); color: #fff; }
.b-impact-faible { background: var(--accent); color: var(--instit); }

/* Jauge */
.jauge { display: flex; align-items: center; gap: 16px; }
.jauge-cercle {
  --p: 0; width: 120px; height: 120px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--formation) calc(var(--p) * 1%), var(--accent) 0);
  display: grid; place-items: center;
}
.jauge-cercle span { width: 92px; height: 92px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; color: var(--marine); }
.barre { height: 12px; background: var(--accent); border-radius: 6px; overflow: hidden; }
.barre > i { display: block; height: 100%; background: var(--formation); }
.crit-ligne { margin-bottom: 12px; }
.crit-ligne .tete { display: flex; justify-content: space-between; gap: 8px; font-size: .95rem; margin-bottom: 4px; }

/* Listes */
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { padding: 10px 0; border-top: 1px solid var(--bord); }
.liste li:first-child { border-top: 0; }
.ligne-ind { display: flex; gap: 10px; align-items: flex-start; text-decoration: none; color: inherit; }
.ligne-ind .num { flex: none; min-width: 42px; font-weight: 700; color: var(--formation); }
.ligne-ind .txt { flex: 1; min-width: 0; }
.alerte-titre { color: var(--alerte); }
.puces { margin: .3rem 0 .3rem 1.1rem; padding: 0; }

.filtres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filtres a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--gris); color: var(--instit); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.filtres a.actif { background: var(--instit); color: #fff; border-color: var(--instit); }

.source-tete { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.meta { display: grid; grid-template-columns: 1fr; gap: 2px; font-size: .9rem; color: var(--gris); margin: 6px 0; }
.meta b { color: var(--instit); font-weight: 600; }
[hidden] { display: none !important; }

table.tab { width: 100%; border-collapse: collapse; }
table.tab th, table.tab td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--bord); vertical-align: top; }
table.tab thead { display: none; }
table.tab tr { display: block; padding: 8px 0; border-top: 1px solid var(--bord); }
table.tab td { display: block; border: 0; padding: 2px 0; }
table.tab td[data-l]::before { content: attr(data-l) " : "; color: var(--gris); font-size: .85rem; }

.foot { color: var(--gris); font-size: .85rem; padding-bottom: 24px; }


/* ---------- v0.2 ---------- */
.nav a, .nav .lien { font-size: .98rem; }

/* Cartes de chiffres cliquables */
.chiffres { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
a.chiffre {
  display: flex; flex-direction: column; justify-content: space-between; gap: 4px; min-height: 92px; padding: 12px;
  background: var(--blanc); border: 1px solid var(--bord); border-left: 4px solid var(--gris); border-radius: 12px;
  color: var(--marine); text-decoration: none;
}
a.chiffre:hover, a.chiffre:focus-visible { border-color: var(--formation); box-shadow: 0 2px 8px rgba(15, 26, 56, .12); outline: none; }
a.chiffre:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
a.chiffre .n { font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--instit); }
a.chiffre .l { font-size: .9rem; color: var(--gris); }
a.chiffre.c-ok { border-left-color: var(--ok); }
a.chiffre.c-ok .n { color: var(--ok); }
a.chiffre.c-neutre { border-left-color: var(--encours); }
a.chiffre.c-alerte { border-left-color: var(--alerte); }
a.chiffre.c-alerte .n { color: var(--alerte); }
.chiffres-tete { grid-template-columns: 1fr; }
a.chiffre.grand { flex-direction: row; align-items: center; gap: 14px; border-left-color: var(--formation); }
a.chiffre.grand .l { color: var(--marine); }
a.chiffre.compte { background: var(--marine); border-color: var(--marine); border-left-color: var(--accent); }
a.chiffre.compte .n { font-size: 2.6rem; color: #fff; }
a.chiffre.compte .l { color: var(--accent); }
a.chiffre.compte:hover { border-color: var(--accent); }
.jauge-cercle { width: 96px; height: 96px; }
.jauge-cercle span { width: 72px; height: 72px; font-size: 1.3rem; }

/* Badges */
.ct-conforme { background: var(--ok); color: #fff; }
.ct-partiel { background: var(--encours); color: #fff; }
.ct-manquant { background: var(--alerte); color: #fff; }
.ct-a_verifier_interne { background: var(--gris); color: #fff; }
.pr-haute { background: var(--alerte); color: #fff; }
.pr-moyenne { background: var(--instit); color: #fff; }
.pr-basse { background: var(--accent); color: var(--instit); }
.ac-a_faire { background: var(--encours); color: #fff; }
.ac-en_cours { background: var(--formation); color: #fff; }
.ac-fait { background: var(--ok); color: #fff; }
.b-retard { background: var(--alerte); color: #fff; text-transform: uppercase; letter-spacing: .3px; }
.b-ind { background: var(--marine); color: #fff; text-decoration: none; }
.filtres a.f-retard { border-color: var(--alerte); color: var(--alerte); }
.filtres a.f-retard.actif { background: var(--alerte); color: #fff; border-color: var(--alerte); }

/* Fiche indicateur : sections repliables */
.ancres { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; -webkit-overflow-scrolling: touch; }
.ancres a { flex: none; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--gris); color: var(--instit); text-decoration: none; font-size: .9rem; min-height: 40px; display: inline-flex; align-items: center; }
details.section { background: var(--blanc); border: 1px solid var(--bord); border-radius: 12px; margin-bottom: 12px; scroll-margin-top: 66px; }
details.section > summary { list-style: none; cursor: pointer; padding: 13px 14px; min-height: 48px; font-weight: 700; font-size: 1.05rem; color: var(--instit); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
details.section > summary::-webkit-details-marker { display: none; }
details.section > summary::after { content: "+"; font-size: 1.4rem; color: var(--formation); flex: none; }
details.section[open] > summary::after { content: "−"; }
details.section[open] > summary { border-bottom: 1px solid var(--bord); }
.section-corps { padding: 14px; }
.action-rapide { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 8px 0 4px; }
.action-rapide .mini-champ { margin: 0; font-size: .85rem; font-weight: 500; flex: 1 1 140px; }
.action-rapide select, .action-rapide input[type=date], .action-rapide textarea { margin-top: 2px; }
.action-rapide textarea { min-height: 60px; }
.filtre-ind { max-width: 320px; margin-bottom: 8px; }
.filtre-ind label { margin-bottom: 4px; }
article.action.en-retard { border-left: 4px solid var(--alerte); }
.barre-outils { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }

/* Modèles rendus en HTML */
.md h1 { font-size: 1.4rem; margin: 0 0 .8rem; }
.md h2 { font-size: 1.2rem; margin: 1.2rem 0 .5rem; }
.md h3 { font-size: 1.05rem; margin: 1rem 0 .4rem; }
.md p { margin: 0 0 .8rem; }
.md ul, .md ol { margin: 0 0 .8rem 1.2rem; padding: 0; }
.md li { margin-bottom: .25rem; }
.md blockquote { margin: 0 0 .8rem; padding: 6px 12px; border-left: 4px solid var(--accent); color: var(--instit); background: var(--fond); }
.md pre { overflow-x: auto; background: var(--fond); padding: 10px; border-radius: 8px; }
.md code { background: var(--fond); padding: 1px 5px; border-radius: 4px; }
.md hr { border: 0; border-top: 1px solid var(--bord); margin: 1rem 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1rem; -webkit-overflow-scrolling: touch; }
table.md-table { border-collapse: collapse; width: 100%; min-width: 420px; }
table.md-table th, table.md-table td { border: 1px solid var(--gris); padding: 6px 8px; text-align: left; vertical-align: top; }
table.md-table th { background: var(--instit); color: #fff; }
mark.completer { background: var(--accent); color: var(--marine); border-bottom: 2px dashed var(--formation); padding: 0 3px; border-radius: 3px; font-weight: 600; }

/* Dossier d'audit */
.audit-titre h1 { margin-bottom: .3rem; }
.sommaire .som-critere { margin-bottom: 12px; }
.som-inds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.st-pastille { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border-radius: 8px; font-weight: 700; font-size: .9rem; text-decoration: none; }
.audit-critere h2 { margin-top: 1.4rem; }
.audit-ind-tete { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.audit-ind-tete .num { font-weight: 700; color: var(--formation); }
.audit-sous { margin: .8rem 0 .2rem; color: var(--instit); }
.url-preuve { word-break: break-all; }
.only-print, .print-entete { display: none; }

@media (min-width: 560px) {
  .chiffres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 760px) {
  .chiffres-tete { grid-template-columns: 1fr 1fr; }
  form.inline { display: inline; }
  .grid.deux { grid-template-columns: 1fr 1fr; }
  .meta { grid-template-columns: 1fr 1fr; }
  table.tab thead { display: table-header-group; }
  table.tab tr { display: table-row; padding: 0; }
  table.tab td { display: table-cell; padding: 8px 6px; border-top: 1px solid var(--bord); }
  table.tab td[data-l]::before { content: none; }
}

@media (min-width: 980px) {
  .chiffres { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .burger { display: none; }
  .nav { display: flex; flex-direction: row; width: auto; padding: 0; gap: 2px; align-items: center; }
  .nav a, .nav .lien { border: 0; padding: 8px 10px; width: auto; font-size: .95rem; }
}

/* ---------- Impression ---------- */
@page { size: A4; margin: 16mm 14mm; }
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .topbar, .foot, .no-print, .filtres, .ancres, .flash, .burger { display: none !important; }
  .print-entete { display: block; border-bottom: 2px solid var(--marine); padding-bottom: 6pt; margin-bottom: 14pt; color: var(--marine); }
  .print-entete .pe-nom { font-size: 22pt; font-weight: 700; letter-spacing: .5px; }
  .print-entete .pe-ligne { font-size: 9pt; color: var(--instit); }
  .only-print { display: inline; }
  .wrap, main.wrap { max-width: none; padding: 0; }
  .card { border: 0; border-radius: 0; padding: 0; margin-bottom: 10pt; background: #fff; }
  a { color: inherit; text-decoration: none; }
  .url-preuve { text-decoration: underline; color: var(--formation); }
  h1 { font-size: 18pt; }
  h2, h3 { break-after: avoid; page-break-after: avoid; }
  .audit-critere { break-before: page; page-break-before: always; }
  .audit-ind { break-inside: avoid; page-break-inside: avoid; border-bottom: 1px solid var(--bord); padding-bottom: 8pt; }
  .sommaire { break-inside: avoid; }
  .st-pastille { border: 1px solid var(--gris); }
  .table-wrap { overflow: visible; }
  table.md-table { min-width: 0; }
  table.md-table thead { display: table-header-group; }
  table.md-table tr { break-inside: avoid; page-break-inside: avoid; }
  table.md-table th { background: var(--instit); color: #fff; }
  mark.completer { background: var(--accent); border-bottom: 1.5pt dashed var(--formation); }
  .md h2 { margin-top: 14pt; }
  details.section > .section-corps { display: block; }
}

/* ---------- v0.3 : module Partenaires ---------- */
.cache { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gros { font-size: 1.1rem; }
.progression { margin: 14px 0; }
.progression .tete { display: flex; justify-content: space-between; margin-bottom: 4px; }
.mini-barre { height: 8px; max-width: 160px; margin-bottom: 2px; }
.pas { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 4px 0 6px; font-size: .95rem; color: var(--gris); }

/* États d'étape, de compte et d'audit */
.ae-a_faire { background: var(--gris); color: #fff; }
.ae-en_cours { background: var(--formation); color: #fff; }
.ae-terminee { background: var(--accent); color: var(--instit); }
.pa-actif { background: var(--formation); color: #fff; }
.pa-attente { background: var(--accent); color: var(--instit); }
.pa-expire { background: var(--alerte); color: #fff; }
.au-conforme { background: var(--ok); color: #fff; }
.au-a_verifier { background: var(--instit); color: #fff; }
.au-a_completer { background: var(--encours); color: #fff; }
.au-non_conforme { background: var(--alerte); color: #fff; }
.au-non_applicable { background: var(--accent); color: var(--instit); }

/* Liste des étapes */
ol.etapes { list-style: none; margin: 0 0 14px; padding: 0; }
ol.etapes li { margin-bottom: 10px; }
.etape-ligne, li.etape-fixe { display: flex; gap: 12px; align-items: flex-start; background: var(--blanc); border: 1px solid var(--bord); border-radius: 12px; padding: 12px; color: var(--marine); text-decoration: none; }
.etape-ligne:hover, .etape-ligne:focus-visible { border-color: var(--formation); box-shadow: 0 2px 8px rgba(15, 26, 56, .12); outline: none; }
.etape-ligne .num, li.etape-fixe .num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--instit); color: #fff; display: grid; place-items: center; font-weight: 700; }
.etape-ligne .txt, li.etape-fixe .txt { flex: 1; min-width: 0; }

/* Orientations */
.card.orientation { border-left: 4px solid var(--formation); background: #EEF3FC; }
.encart { padding: 8px 0; border-top: 1px solid var(--bord); }
.encart:first-of-type { border-top: 0; }

/* Assistant pas à pas */
.assistant .question { background: var(--blanc); border: 1px solid var(--bord); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.assistant .question.en-erreur { border-color: var(--alerte); }
.libelle { display: block; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--alerte); text-decoration: none; }
details.aide { margin: 0 0 8px; font-size: .92rem; }
details.aide > summary { cursor: pointer; color: var(--formation); min-height: 32px; display: flex; align-items: center; }
details.aide > .md { background: var(--fond); border-radius: 8px; padding: 8px 12px; }
.choix { display: grid; gap: 8px; }
label.option { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--gris); border-radius: 8px; font-weight: 500; min-height: 44px; cursor: pointer; background: #fff; }
label.option input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--formation); }
.erreur-champ { color: #7A1A10; font-weight: 600; margin: 6px 0 0; }
input[type=email], input[type=tel], input[type=number] { display: block; width: 100%; margin-top: 4px; padding: 10px; font: inherit; color: var(--marine); background: #fff; border: 1px solid var(--gris); border-radius: 8px; min-height: 44px; }
.assistant .boutons { display: grid; gap: 10px; margin-top: 8px; }
.assistant .boutons .btn { width: 100%; text-align: center; }
.etat-enreg { margin: 4px 0 10px; }

/* Documents générés */
.md .valeur { background: #E6EEFB; border-radius: 3px; padding: 0 2px; }
.manquantes { border-left: 4px solid var(--alerte); }
dl.reponses { margin: 0 0 1rem; }
dl.reponses dt { font-weight: 600; font-size: .92rem; margin-top: 8px; color: var(--instit); }
dl.reponses dd { margin: 2px 0 0; padding-left: 10px; border-left: 3px solid var(--accent); overflow-wrap: anywhere; }

@media (min-width: 560px) {
  .assistant .boutons { grid-template-columns: 1fr 1fr 1.4fr; }
}
@media print {
  .md .valeur { background: transparent; }
  .manquantes, .assistant { display: none !important; }
}

/* ---------- v0.5 : audit blanc et Jour J ---------- */
.wrap.large { max-width: 1320px; }
.topbar .wrap { max-width: 1320px; }
.gr-majeure { background: var(--alerte); color: #fff; }
.gr-mineure { background: var(--accent); color: var(--instit); }
.b-import { background: var(--instit); color: #fff; }
.barre-ab > i { background: var(--instit); }
.ab-comp { display: block; margin: 6px 0 3px; color: var(--instit); text-decoration: none; }
.ab-comp:hover, .ab-comp:focus-visible { text-decoration: underline; }
.ab-ind > summary { gap: 12px; }
.ab-titre { flex: 1; min-width: 0; font-weight: 600; }
.ab-titre .num { color: var(--formation); font-weight: 700; margin-right: 6px; }
.ab-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.ab-ind > summary::after { margin-left: 4px; }
.ab-score { background: var(--gris); color: #fff; }
.ab-score.ok { background: var(--ok); }
.ab-corps { display: grid; gap: 18px; grid-template-columns: 1fr; }
.ab-corps h3 { margin: .9rem 0 .3rem; color: var(--instit); }
.ab-gauche h3:first-of-type, .ab-droite h3:first-child { margin-top: 0; }
.ab-2026 { background: #EEF3FC; border-left: 4px solid var(--formation); padding: 8px 12px; border-radius: 0 8px 8px 0; margin: .6rem 0; font-size: .92rem; }
fieldset.ab-question { border: 1px solid var(--bord); border-radius: 10px; padding: 10px 12px 4px; margin: 0 0 12px; min-width: 0; }
fieldset.ab-question legend { font-weight: 600; padding: 0 6px; max-width: 100%; }
fieldset.ab-question.etat-sait { border-color: var(--formation); background: #F5F8FE; }
fieldset.ab-question.etat-pas_encore { border-left: 4px solid var(--alerte); }
.ab-choix { display: grid; gap: 6px; margin-bottom: 8px; }
label.option.discret { color: var(--gris); font-weight: 400; min-height: 36px; padding: 6px 12px; }
.ab-boutons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.jj-liste { list-style: none; margin: 0; padding: 0; }
.jj-item { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--bord); }
.jj-item:first-child { border-top: 0; }
.jj-item label { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-weight: 500; cursor: pointer; flex: 1; }
.jj-item input[type=checkbox] { width: 22px; height: 22px; flex: none; margin: 2px 0 0; accent-color: var(--formation); }
.jj-item.fait .jj-texte { color: var(--gris); }
.jj-date { flex: none; min-width: 9.5rem; text-align: right; }
.jj-bas { align-items: start; }
@media (min-width: 760px) {
  .ab-corps { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
@media (min-width: 980px) {
  .chiffres-tete.trois { grid-template-columns: 1.4fr 1fr 1fr; }
  .nav a, .nav .lien { padding: 8px 8px; font-size: .92rem; }
}
@media (max-width: 559px) {
  .ab-ind > summary { flex-wrap: wrap; }
  .ab-meta { justify-content: flex-start; }
  .jj-item { flex-direction: column; gap: 4px; }
  .jj-date { text-align: left; min-width: 0; padding-left: 34px; }
}
@media print {
  .jj-rubrique { break-inside: auto; }
  .jj-item { break-inside: avoid; page-break-inside: avoid; border-top: 1px solid var(--bord); padding: 5pt 0; }
  .jj-item input[type=checkbox] { display: none; }
  .jj-case { font-size: 13pt; line-height: 1.2; flex: none; }
  .jj-item label { gap: 8pt; }
  .jj-item.fait .jj-texte { color: #000; }
  .jj-date { min-width: 7rem; }
  .card.orientation { background: #fff; border: 1px solid var(--marine); border-left: 4px solid var(--marine); padding: 6pt 10pt; }
  .jj-bas { display: block; }
  .jj-bas .card { break-inside: avoid; page-break-inside: avoid; }
  h2 { font-size: 13pt; }
}

/* Feu tricolore : vert = ça va, rouge = ça ne va pas */
a.chiffre.grand.g-ok { border-left-color: var(--ok); }
a.chiffre.grand.g-ok .jauge-cercle { background: conic-gradient(var(--ok) calc(var(--p) * 1%), #D7EEDF 0); }
a.chiffre.grand.g-ko { border-left-color: var(--alerte); }
a.chiffre.grand.g-ko .jauge-cercle { background: conic-gradient(var(--alerte) calc(var(--p) * 1%), #F6D5D2 0); }

/* Bulle Véro : lien simple vers le standard Véro (connexion Véro exigée là-bas, aucun secret transmis) */
.bulle-vero { position: fixed; right: 16px; bottom: 16px; z-index: 50; background: var(--marine); color: #fff; text-decoration: none;
  font-weight: 600; padding: 12px 18px; border-radius: 999px; box-shadow: 0 4px 14px rgba(15, 26, 56, .3); }
.bulle-vero:hover, .bulle-vero:focus-visible { background: var(--instit); outline: 3px solid var(--accent); outline-offset: 2px; }
@media print { .bulle-vero { display: none; } }

/* ---------- v0.6 : registres, intervenants, programmes ---------- */
.grid label, form.card label { display: block; margin-bottom: 8px; }
form.card input[type=text], form.card input[type=date], form.card select, form.card textarea { width: 100%; font: inherit; padding: 7px 9px; border: 1px solid var(--bord); border-radius: 6px; background: #fff; color: var(--marine); }
form.card label > input[type=checkbox] { width: auto; }
.prog { background: #fff; border: 1px solid var(--bord); border-radius: 10px; padding: 22px; }
.prog-tete { border-bottom: 3px solid var(--marine); padding-bottom: 12px; margin-bottom: 8px; }
.prog-tete h1 { margin-bottom: .2rem; }
.prog-sous { margin: 0 0 10px; color: var(--instit); font-weight: 600; }
.prog-cles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.prog-cles > div { background: var(--marine); color: #fff; border-radius: 8px; padding: 8px 10px; }
.prog-cles b { display: block; font-size: 1.05rem; }
.prog-cles span { display: block; font-size: .8rem; color: var(--accent); }
.prog h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .4px; border-left: 4px solid var(--formation); padding-left: 8px; margin: 1.1rem 0 .4rem; }
.prog h4 { margin: .6rem 0 .2rem; color: var(--formation); }
.prog ul { margin: .2rem 0 .4rem; padding-left: 1.2rem; }
.prog-2col { display: grid; grid-template-columns: 1fr; gap: 0 22px; }
@media (min-width: 760px) { .prog-2col { grid-template-columns: 1fr 1fr; } }
.prog-pied { margin-top: 18px; border-top: 1px solid var(--bord); padding-top: 8px; font-size: .78rem; color: var(--gris); }
@media print {
  .prog { border: 0; padding: 0; }
  .prog-2col { grid-template-columns: 1fr 1fr; }
  .prog-2col section, .prog h2 { break-inside: avoid; page-break-inside: avoid; }
  .prog h2, .prog h4 { break-after: avoid; page-break-after: avoid; }
  .prog-cles > div { border: 1px solid var(--marine); }
  .bulle-vero { display: none !important; }
}

.suppr-discret { background: none; border: 0; padding: 0; color: var(--gris); font: inherit; font-size: .8rem; text-decoration: underline; cursor: pointer; }
.suppr-discret:hover, .suppr-discret:focus-visible { color: var(--alerte); }

.barre-maj { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: -6px 0 16px; }
