/* =====================================================================
   Accueil sécurité — mêmes jetons que les autres outils de la Toolbox
   (IBM Plex, thème clair, en-têtes sombres). Accent vert « sécurité ».
   ===================================================================== */
:root {
  color-scheme: light;
  --gray-50:  #f4f6f8;
  --gray-75:  #ffffff;
  --gray-100: #f6f7f9;
  --gray-200: #e9ecf1;
  --gray-300: #e4e7ec;
  --gray-400: #cfd5dd;
  --gray-500: #9aa3af;
  --gray-600: #6b7482;
  --gray-700: #5b6472;
  --gray-800: #3d4653;
  --gray-900: #10151b;

  --accent: #14854f;  --accent-soft: #e6f4ec;  --accent-line: #b5dcc6;  --accent-down: #0e6a3e;
  --pos: #1f7a5c;  --pos-bg: #e8f5ef;  --pos-line: #b7e2d0;
  --warn: #c26a05; --warn-bg: #fdf1e2; --warn-line: #f0d5a8; --warn-fg: #7a4304;
  --neg: #c4120d;  --neg-bg: #fdeceb;  --neg-line: #f2b8b6;
  --info: #0d66d0; --info-bg: #eaf2fe;

  --r-1: 7px; --r-2: 10px; --r-3: 14px;
  --shadow-1: 0 1px 3px rgba(16, 21, 27, .14);
  --shadow-2: 0 6px 18px rgba(16, 21, 27, .1);
  --head-bg: #10151b;
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--gray-50); color: var(--gray-900); font-family: var(--font);
       -webkit-font-smoothing: antialiased; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- En-tête */
.hd { background: var(--head-bg); color: #fff; position: relative; overflow: hidden;
      padding: calc(18px + env(safe-area-inset-top)) 18px 22px; }
.hd::after { content: ""; position: absolute; left: -10%; right: -10%; top: 46px; height: 2px;
             background: rgba(255,255,255,.12); transform: rotate(-5deg); pointer-events: none; }
.hd-org { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: #8a93a0; }
.hd-in { max-width: 1100px; margin: 0 auto; position: relative; }
.hd.etroit .hd-in { max-width: 760px; }
.hd h1 { margin: 12px 0 0; font-size: 26px; font-weight: 700; line-height: 1.15; display: flex; align-items: center; gap: 10px; }
.hd h1 .badge { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; flex: none; }
.hd h1 .badge svg { width: 19px; height: 19px; }
.hd-sub { font-family: var(--mono); font-size: 13px; color: #9aa3af; margin-top: 4px; }
.hd-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hd-btn { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-2);
          min-height: 40px; padding: 0 12px; cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: none;
          display: inline-flex; align-items: center; }
.hd-btn:hover { background: rgba(255,255,255,.15); }
.hd-btn:focus-visible { outline: 3px solid #ff861d; outline-offset: 2px; }

.tabs { display: flex; gap: 4px; margin-top: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { background: transparent; border: 0; color: #aab2bf; padding: 10px 14px; border-radius: var(--r-2) var(--r-2) 0 0;
       font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; min-height: 44px; }
.tab[aria-selected="true"] { background: var(--gray-50); color: var(--gray-900); }
.tab:focus-visible { outline: 3px solid #ff861d; outline-offset: -3px; }
.hd.with-tabs { padding-bottom: 0; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 18px 16px calc(32px + env(safe-area-inset-bottom)); }
.wrap.etroit { max-width: 760px; }

/* ----------------------------------------------------------------- Cartes */
.card { background: var(--gray-75); border: 1px solid var(--gray-300); border-radius: var(--r-3);
        padding: 18px; box-shadow: var(--shadow-1); }
.card + .card, .card + .grid2, .grid2 + .card { margin-top: 12px; }
h2 { font-size: 18px; margin: 0 0 4px; }
h3 { font-size: 15.5px; margin: 0 0 8px; }
.lead { color: var(--gray-700); font-size: 15px; line-height: 1.5; margin: 0 0 14px; }
.hint { color: var(--gray-600); font-size: 13.5px; line-height: 1.45; }
.mono { font-family: var(--mono); }

label.lbl { display: block; font-size: 12px; font-weight: 600; color: var(--gray-700);
            text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 5px; }
label.lbl .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--gray-600); }
.in { width: 100%; min-height: 48px; border: 1px solid var(--gray-400); border-radius: var(--r-2);
      padding: 0 13px; font-size: 17px; background: #fff; color: var(--gray-900); }
textarea.in { padding: 10px 13px; min-height: 90px; font-size: 15px; line-height: 1.45; resize: vertical; }
.in:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
       padding: 0 16px; border: 0; border-radius: var(--r-2); font-size: 15px; font-weight: 600;
       color: #fff; background: var(--gray-900); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:focus-visible { outline: 3px solid #ff861d; outline-offset: 2px; }
.btn svg { width: 18px; height: 18px; }
.btn.block { display: flex; width: 100%; min-height: 56px; margin-top: 18px; font-size: 17.5px; font-weight: 700; }
.btn.accent { background: var(--accent); }
.btn.danger { background: var(--neg); }
.btn.ghost { background: transparent; color: var(--gray-800); border: 1px solid var(--gray-400); }
.btn.ghost.block { min-height: 46px; font-size: 15px; font-weight: 600; margin-top: 10px; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.lien { background: none; color: var(--info); padding: 0; min-height: 32px; font-weight: 600; }

.note { border-radius: var(--r-2); padding: 12px 14px; font-size: 14.5px; line-height: 1.45; margin-top: 14px; }
.note.pos { background: var(--pos-bg); border: 1px solid var(--pos-line); color: var(--pos); }
.note.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-fg); }
.note.neg { background: var(--neg-bg); border: 1px solid var(--neg-line); color: var(--neg); }
.note.info { background: var(--info-bg); border: 1px solid #c7deff; color: #0a4a99; }

.chip { font-family: var(--mono); font-size: 11.5px; font-weight: 600; padding: 3px 7px; border-radius: 6px;
        background: var(--gray-200); color: var(--gray-800); white-space: nowrap; display: inline-block; }
.chip.valide { background: var(--pos-bg); color: var(--pos); }
.chip.expire, .chip.a_valider { background: var(--warn-bg); color: var(--warn-fg); }
.chip.revoque { background: var(--neg-bg); color: var(--neg); }
.chip.en_cours { background: var(--info-bg); color: var(--info); }

/* --------------------------------------------------------- Page publique */
.etapes { display: flex; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 600; color: #8a93a0; flex-wrap: wrap; }
.etapes span { display: inline-flex; align-items: center; gap: 6px; }
.etapes b { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #5b6472; display: grid; place-items: center;
            font-family: var(--mono); font-size: 12px; }
.etapes .on { color: #fff; }
.etapes .on b { background: var(--accent); border-color: var(--accent); }
.etapes .ok b { background: #2b3440; border-color: #2b3440; color: #9fd8b8; }
.etapes i { width: 18px; height: 1.5px; background: #3d4653; align-self: center; }

.who { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.who-n { font-weight: 700; font-size: 16px; }
.who-s { color: var(--gray-700); font-size: 13.5px; }

.lecteur { position: relative; background: #000; border-radius: var(--r-3); overflow: hidden; box-shadow: var(--shadow-2);
           aspect-ratio: 16 / 9; user-select: none; -webkit-user-select: none; }
.lecteur:fullscreen { border-radius: 0; aspect-ratio: auto; }
.lecteur video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.lecteur .grand-play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0;
                       background: rgba(20, 133, 79, .92); color: #fff; cursor: pointer; display: grid; place-items: center;
                       box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.lecteur .grand-play svg { width: 38px; height: 38px; margin-left: 5px; }
.lecteur .grand-play:focus-visible { outline: 3px solid #ff861d; outline-offset: 3px; }
.lecteur .attente { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 14px; pointer-events: none; }
.ctrl { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 8px;
        background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; display: flex; flex-direction: column; gap: 6px;
        transition: opacity .25s; }
.lecteur.calme .ctrl { opacity: 0; }
.barre { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.barre .vu { position: absolute; inset: 0 auto 0 0; background: rgba(255,255,255,.45); }
.barre .ici { position: absolute; inset: 0 auto 0 0; background: #4fd18b; }
.ctrl-l { display: flex; align-items: center; gap: 4px; }
.ctrl-l .t { font-family: var(--mono); font-size: 13px; margin: 0 8px; white-space: nowrap; }
.ctrl-l .grow { flex: 1; }
.ib { width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer;
      display: grid; place-items: center; }
.ib:hover { background: rgba(255,255,255,.14); }
.ib:focus-visible { outline: 2px solid #ff861d; }
.ib svg { width: 22px; height: 22px; }
.ib.txt { width: auto; padding: 0 8px; font-size: 13px; font-weight: 600; font-family: var(--mono); }

.suivi { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 14px; color: var(--gray-700); }
.suivi .jauge { flex: 1; height: 8px; border-radius: 4px; background: var(--gray-200); overflow: hidden; }
.suivi .jauge i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s; }
.suivi .pc { font-family: var(--mono); font-weight: 600; color: var(--gray-900); min-width: 44px; text-align: right; }

.decl { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 2px solid var(--gray-400); border-radius: var(--r-3);
        cursor: pointer; background: #fff; margin-top: 14px; line-height: 1.5; font-size: 15.5px; }
.decl:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.decl input { width: 24px; height: 24px; flex: none; margin-top: 1px; accent-color: var(--accent); }

.done { text-align: center; padding: 26px 18px; }
.done-ic { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center;
           color: #fff; background: var(--accent); }
.done-ic svg { width: 46px; height: 46px; }
.done h2 { font-size: 22px; }
.done .num { font-family: var(--mono); font-size: 30px; font-weight: 600; margin: 8px 0 2px; letter-spacing: .02em; }
.done .actions { display: flex; flex-direction: column; gap: 10px; max-width: 360px; margin: 18px auto 0; }

.pied { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 22px;
        color: var(--gray-600); font-size: 12.5px; }
.cadenas { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--gray-500);
           text-decoration: none; opacity: .55; }
.cadenas:hover, .cadenas:focus-visible { opacity: 1; background: var(--gray-200); outline: none; }
.cadenas svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------- Administration */
.bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.bar .grow { flex: 1; min-width: 180px; }
.bar .in, .bar select.in { min-height: 44px; font-size: 15px; width: auto; }
.bar .in.grow { width: 100%; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { background: var(--gray-75); border: 1px solid var(--gray-300); border-radius: var(--r-3); padding: 12px 14px;
        display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-1); }
.tile-v { font-family: var(--mono); font-size: 28px; font-weight: 600; line-height: 1.1; }
.tile-l { font-size: 13px; color: var(--gray-700); line-height: 1.3; overflow-wrap: anywhere; }
.tile.big { background: var(--gray-900); color: #fff; border-color: var(--gray-900); }
.tile.big .tile-l { color: #c8cfd9; }
.tile.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.tile.warn .tile-v, .tile.warn .tile-l { color: var(--warn-fg); }

.grid2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.grid2 > * { min-width: 0; }
@media (min-width: 900px) { .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.histo { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 18px; }
.histo div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.histo i { display: block; width: 100%; max-width: 28px; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; }
.histo i.zero { background: var(--gray-300); }
.histo span { font-family: var(--mono); font-size: 10.5px; color: var(--gray-600); white-space: nowrap; }
/* Étroit : une date sur deux, sinon elles se chevauchent. */
@media (max-width: 560px) { .histo div:nth-child(even) span { visibility: hidden; } .histo span { font-size: 9.5px; } }
.histo b { font-family: var(--mono); font-size: 11px; color: var(--gray-800); font-weight: 600; }

.liste { background: var(--gray-75); border: 1px solid var(--gray-300); border-radius: var(--r-3); box-shadow: var(--shadow-1); overflow: hidden; }
.ligne { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--gray-200);
         cursor: pointer; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; color: inherit; }
.ligne:first-child { border-top: 0; }
.ligne:hover { background: var(--gray-100); }
.ligne:focus-visible { outline: 3px solid #ff861d; outline-offset: -3px; }
.ligne .q { font-family: var(--mono); font-size: 13px; width: 92px; flex: none; color: var(--gray-700); line-height: 1.3; }
.ligne .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ligne .t { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne .s { color: var(--gray-700); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne .d { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.vide { padding: 18px 16px; color: var(--gray-600); font-size: 14px; }
.compte { color: var(--gray-700); font-size: 13.5px; margin: 0 0 8px; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 14px; margin: 10px 0 0; }
.kv dt { color: var(--gray-600); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }

.ent { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; overflow-wrap: anywhere; padding: 6px 0; border-top: 1px solid var(--gray-200); font-size: 14px; }
.ent:first-of-type { border-top: 0; }
.ent b { font-family: var(--mono); }

.vid-apercu { width: 100%; max-height: 360px; background: #000; border-radius: var(--r-2); display: block; }
.envoi { margin-top: 12px; }
.envoi progress { width: 100%; height: 10px; accent-color: var(--accent); }
.fichier { display: flex; align-items: center; gap: 10px; padding: 14px; border: 2px dashed var(--gray-400); border-radius: var(--r-3);
           cursor: pointer; color: var(--gray-700); font-size: 14.5px; }
.fichier:hover { border-color: var(--accent); color: var(--accent-down); }
.fichier input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14.5px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

.qr-affiche { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.qr-affiche .qr { width: 150px; height: 150px; padding: 8px; border: 1px solid var(--gray-300); border-radius: var(--r-2); background: #fff; }
.qr-affiche .qr svg { width: 100%; height: 100%; display: block; }

.login { max-width: 400px; margin: 0 auto; padding: 24px 16px; }
.code-in { font-family: var(--mono); font-size: 26px; letter-spacing: .3em; text-align: center; }

/* Fenêtres */
dialog { border: 0; border-radius: var(--r-3); padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 20px 50px rgba(16,21,27,.3); }
dialog::backdrop { background: rgba(16, 21, 27, .45); }
.dlg-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 16px 18px 0; }
.dlg-h h2 { margin: 0; }
.dlg-b { padding: 6px 18px 18px; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.x { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: var(--r-2); color: var(--gray-700); }
.x:hover { background: var(--gray-100); }

#toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%);
         background: var(--gray-900); color: #fff; padding: 12px 16px; border-radius: var(--r-2); font-size: 14.5px;
         box-shadow: var(--shadow-2); max-width: calc(100vw - 32px); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 10; }
#toast.on { opacity: 1; }
#toast.err { background: var(--neg); }

/* ================================================================ Impression */
#print { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  #app, dialog, #toast { display: none !important; }
  #print { display: block; }
}
#print.liste-imp { padding: 12mm; font-size: 9.5pt; color: #000; }
#print.liste-imp h1 { font-size: 15pt; margin: 0 0 2mm; }
#print.liste-imp .ph { font-size: 9.5pt; color: #333; margin-bottom: 4mm; }
#print.liste-imp table { width: 100%; border-collapse: collapse; }
#print.liste-imp th, #print.liste-imp td { border: 1px solid #555; padding: 1.4mm 1.8mm; text-align: left; vertical-align: top; }
#print.liste-imp th { background: #eee; }

.aff { width: 210mm; height: 297mm; box-sizing: border-box; padding: 52px 56px 48px; background: #fff; color: #10151b;
       font-family: var(--font); display: flex; flex-direction: column; gap: 28px; overflow: hidden;
       -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.aff-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1.5px solid #cfd5dd; padding-bottom: 16px;
           font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .08em; }
.aff-top .c { color: #5b6472; }
.aff h1 { margin: 0; font-size: 58px; line-height: 1.02; font-weight: 700; letter-spacing: -.01em; }
.aff-band { background: #14854f; color: #fff; border-radius: 22px; padding: 24px 32px; display: flex; align-items: center; gap: 24px; }
.aff-band svg { width: 72px; height: 72px; flex: none; }
.aff-band .v { display: block; font-size: 40px; font-weight: 700; line-height: 1.05; }
.aff-band .s { display: block; font-size: 19px; font-weight: 500; margin-top: 6px; }
.aff-qr { align-self: center; width: 400px; height: 400px; box-sizing: border-box; padding: 32px; border: 2px solid #cfd5dd; border-radius: 20px; }
.aff-qr svg { width: 100%; height: 100%; display: block; }
.aff-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.aff-steps div { display: flex; flex-direction: column; gap: 6px; font-size: 17px; line-height: 1.35; font-weight: 600; }
.aff-steps .n { font-family: var(--mono); font-size: 15px; color: #14854f; }
.aff-url { margin-top: auto; text-align: center; font-family: var(--mono); font-size: 15px; color: #3d4653;
           background: #f4f6f8; border-radius: 14px; padding: 14px 18px; }

/* ------------------------------------------------- Modules et carte d'accès */
.who.card { justify-content: space-between; }
.mods { display: flex; flex-direction: column; border: 1px solid var(--gray-300); border-radius: var(--r-2); overflow: hidden; }
.mod { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--gray-200); background: var(--gray-75); }
.mod:first-child { border-top: 0; }
.mod.off { background: var(--gray-100); }
.mod.off .mod-n { color: var(--gray-600); }
.mod-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mod-n { font-weight: 600; font-size: 15.5px; }
.mod-n .opt { font-weight: 400; color: var(--gray-600); font-size: 13px; }
.mod-s { font-size: 13px; color: var(--gray-700); }
.mod .btn { flex: none; }
.carte h2 { display: flex; align-items: center; gap: 8px; }
.carte h2 svg { width: 22px; height: 22px; }
.qr-carte { width: 200px; max-width: 70%; margin: 16px auto 8px; padding: 12px; background: #fff; border: 1px solid var(--gray-300); border-radius: var(--r-2); }
.qr-carte svg { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------------- Quiz */
.qz { border: 1px solid var(--gray-300); border-radius: var(--r-2); padding: 12px 14px 8px; margin: 14px 0 0; }
.qz legend { font-weight: 600; font-size: 15.5px; line-height: 1.4; padding: 0 4px; display: flex; gap: 8px; }
.qz-n { font-family: var(--mono); color: var(--accent); flex: none; }
.qz-c { display: flex; gap: 10px; align-items: flex-start; padding: 9px 4px; font-size: 15px; line-height: 1.4; cursor: pointer;
        border-top: 1px solid var(--gray-200); }
.qz-c:first-of-type { border-top: 0; }
.qz-c input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.qz-c:has(input:checked) span { font-weight: 600; }
.qz.corr.juste { border-color: var(--pos-line); }
.qz.corr.faux { border-color: var(--neg-line); }
.qz.corr .qz-c { cursor: default; }
.qz-verdict { margin: 6px 4px 4px; font-weight: 600; font-size: 14.5px; }
.qz.juste .qz-verdict { color: var(--pos); }
.qz.faux .qz-verdict { color: var(--neg); }
.qz-expl { white-space: pre-line; margin: 4px 0 8px; padding: 10px 12px; background: var(--gray-100); border-radius: var(--r-2); font-size: 14.5px; line-height: 1.5; }

/* --------------------------------------------- Administration : modules, quiz */
.seg-mod { display: flex; gap: 4px; flex-wrap: wrap; background: var(--gray-100); border: 1px solid var(--gray-300);
           border-radius: var(--r-2); padding: 3px; margin-bottom: 14px; }
.seg-mod button { min-height: 38px; padding: 0 12px; border: 0; background: transparent; border-radius: var(--r-1);
                  cursor: pointer; font-weight: 600; font-size: 14px; color: var(--gray-800); }
.seg-mod button.on { background: var(--gray-75); box-shadow: var(--shadow-1); color: var(--gray-900); }
.seg-mod button:focus-visible { outline: 3px solid #ff861d; outline-offset: 1px; }
.tab-mod { width: 100%; border-collapse: collapse; font-size: 14px; }
.tab-mod th { text-align: left; font-size: 12px; color: var(--gray-700); font-weight: 600; text-transform: uppercase;
              letter-spacing: .04em; padding: 6px 8px; border-bottom: 1px solid var(--gray-300); }
.tab-mod td { padding: 8px; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
@media (max-width: 600px) { .tab-mod th:nth-child(3), .tab-mod td:nth-child(3) { display: none; } }
.qz-ligne .s .bonne { color: var(--pos); font-weight: 600; }
.qz-ligne .s.expl { color: var(--gray-600); font-style: italic; display: block; margin-top: 2px; }
.qz-ligne.inactive .t { color: var(--gray-600); text-decoration: line-through; }
.qz-edit { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.qz-edit input[type=checkbox] { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }
.qz-edit .in { flex: 1; }
.qz-edit .x { flex: none; }
