/* Console d'administration : couleurs du lagon des jeux (bleu nuit, corail, jaune soleil), à plat. */
@font-face { font-family: Lexend; src: url('polices/lexend-400.woff2') format('woff2'); font-weight: 400; }
@font-face { font-family: Lexend; src: url('polices/lexend-latin-700-normal.woff2') format('woff2'); font-weight: 700; }
:root {
  --nuit: #13294b; --texte: #13294b; --doux: #5f7a8c; --fond: #eef8f9; --carte: #ffffff; --liseré: #d5e6ea;
  --corail: #f0546a; --jaune: #ffc23a; --vert: #1e9e5a; --gris: #8597a3; --lagon: #0e8fa3;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Lexend, system-ui, sans-serif; font-size: 16px; color: var(--texte); background: var(--fond); }
button, input, select { font: inherit; color: inherit; }
.barre { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 24px; height: 60px; background: var(--nuit); color: #fff; }
.marque { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.marque .sous { color: #9fc3cf; font-size: 15px; padding-left: 10px; border-left: 1px solid #355178; }
.logo { width: 26px; height: 26px; border-radius: 6px; background: conic-gradient(var(--corail) 0 25%, #1f6fd1 0 50%, #22a85a 0 75%, var(--jaune) 0); }
.moi { font-size: 14px; color: #cfe2ea; text-align: right; }
.moi b { color: var(--jaune); font-weight: 700; margin-left: 6px; }
.corps { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: calc(100vh - 60px); }
.menu { padding: 20px 12px; border-right: 1px solid var(--liseré); background: #f7fcfc; }
.menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--texte); text-decoration: none; font-weight: 700; }
.menu a.on { background: #fff; box-shadow: inset 3px 0 0 var(--corail); }
.menu svg { width: 20px; height: 20px; fill: none; stroke: var(--corail); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
main { padding: 24px; max-width: 1100px; }
.titre { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
h1 { font-size: 26px; margin: 0 0 16px; }
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--liseré);
  background: #fff; color: var(--texte); font-weight: 700; text-decoration: none; cursor: pointer; }
.bouton.plein { background: var(--corail); border-color: var(--corail); color: #fff; }
.bouton.vert { background: var(--vert); border-color: var(--vert); color: #fff; }
.bouton:disabled { opacity: .5; cursor: default; }
.filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.filtres select, .filtres input { height: 40px; padding: 0 12px; border: 1px solid var(--liseré); border-radius: 8px; background: #fff; }
.filtres input { flex: 1; min-width: 200px; }
.puces { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #dceef1; }
.puces button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; cursor: pointer; font-weight: 700; color: var(--doux); }
.puces button.on { background: #fff; color: var(--texte); box-shadow: 0 1px 0 rgba(19, 41, 75, .12); }
.puces .n { display: inline-block; min-width: 22px; margin-left: 6px; padding: 0 6px; border-radius: 11px; background: #e9f3f5; font-size: 13px; color: var(--texte); }
.etat { color: var(--doux); }
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.carte { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 14px 16px; border-radius: 10px; background: var(--carte);
  border: 1px solid var(--liseré); cursor: pointer; text-align: left; width: 100%; }
.carte:hover, .carte:focus-visible { border-color: var(--lagon); outline: none; }
.carte .q { font-weight: 700; font-size: 17px; line-height: 1.35; }
.carte .r { color: var(--doux); font-size: 15px; margin-top: 4px; }
.carte .r b { color: var(--vert); }
.carte .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--doux); }
.droite { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.compte { font-size: 22px; font-weight: 700; color: var(--corail); line-height: 1; }
.compte small { display: block; font-size: 12px; color: var(--doux); font-weight: 400; text-align: right; }
.motifs { display: flex; flex-wrap: wrap; gap: 6px; }
.pastille { display: inline-block; padding: 2px 9px; border-radius: 11px; font-size: 13px; font-weight: 700; background: #fde6ea; color: #a3243a; }
.pastille.claire { background: #fff3d1; color: #8a5a00; }
.pastille.photo { background: #dff0fb; color: #1a5f8f; }
.pastille.autre { background: #eceff2; color: #4a5a66; }
.statut { font-size: 13px; font-weight: 700; padding: 2px 9px; border-radius: 11px; }
.statut.a-voir { background: #fff3d1; color: #8a5a00; }
.statut.corrige { background: #dcf3e6; color: #17703f; }
.statut.rejete { background: #eceff2; color: #4a5a66; }
.statut.revient { background: #fde6ea; color: #a3243a; }
.volet { position: fixed; top: 60px; right: 0; bottom: 0; width: min(560px, 100%); background: #fff; border-left: 1px solid var(--liseré);
  box-shadow: -8px 0 24px rgba(19, 41, 75, .12); overflow: auto; padding: 0 24px 24px; z-index: 3; }
.volet-tete { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 16px 0 8px; }
.volet h2 { margin: 0; font-size: 20px; }
.fermer { border: 0; background: #eef5f7; width: 36px; height: 36px; border-radius: 8px; font-size: 22px; cursor: pointer; }
.volet .q { font-size: 19px; font-weight: 700; line-height: 1.4; margin: 6px 0 12px; }
.choix { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.choix li { padding: 8px 12px; border-radius: 8px; background: #f3f8f9; }
.choix li.bonne { background: #dcf3e6; font-weight: 700; }
.choix li .qui { float: right; font-size: 13px; color: var(--doux); font-weight: 400; }
.info { font-size: 14px; color: var(--doux); margin: 4px 0; word-break: break-word; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 16px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e6eff2; vertical-align: top; }
th { color: var(--doux); font-weight: 700; font-size: 13px; }
textarea { width: 100%; min-height: 80px; padding: 10px; border: 1px solid var(--liseré); border-radius: 8px; font: inherit; resize: vertical; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
h3 { font-size: 16px; margin: 18px 0 6px; }
@media (max-width: 760px) {
  .corps { grid-template-columns: 1fr; }
  .menu { display: flex; padding: 8px 16px; border-right: 0; border-bottom: 1px solid var(--liseré); }
  main { padding: 16px; }
  .marque .sous { display: none; }
}

/* ---------------------------------------------------------------- lot 2 (18/11/2026) */
.seul { display: grid; place-items: center; min-height: calc(100vh - 60px); padding: 24px; }
.seul[hidden], .corps[hidden] { display: none; }
.boite { width: min(440px, 100%); background: #fff; border: 1px solid var(--liseré); border-radius: 12px; padding: 28px; }
.boite h1 { font-size: 24px; margin-bottom: 6px; }
.boite p { color: var(--doux); margin: 0 0 18px; }
label.champ { display: block; font-weight: 700; font-size: 15px; margin: 14px 0 6px; }
input.champ, select.champ { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--liseré); border-radius: 8px; background: #fff; font: inherit; }
.erreur { color: #a3243a; font-size: 15px; min-height: 20px; margin-top: 10px; }
.boite .bouton { width: 100%; margin-top: 18px; height: 46px; }
.moi button { background: none; border: 1px solid #355178; color: #cfe2ea; border-radius: 6px; padding: 4px 10px; margin-left: 10px; cursor: pointer; font-size: 13px; }
.rangee { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.rangee input.champ, .rangee select.champ { width: auto; min-width: 220px; flex: 1; }
.rangee .bouton { white-space: nowrap; }
table.liste-t { background: #fff; border: 1px solid var(--liseré); border-radius: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
table.liste-t th { background: #f3f9fa; }
table.liste-t td, table.liste-t th { padding: 10px 12px; }
table.liste-t tr:last-child td { border-bottom: 0; }
.petit { font-size: 13px; color: var(--doux); }
.actions-t { display: flex; flex-wrap: wrap; gap: 6px; }
.actions-t .bouton { min-height: 32px; padding: 0 10px; font-size: 14px; }
.statut.reliee { background: #dcf3e6; color: #17703f; }
.statut.en-attente { background: #fff3d1; color: #8a5a00; }
.statut.deliee { background: #eceff2; color: #4a5a66; }
.secret { margin: 12px 0; padding: 14px 16px; border-radius: 10px; background: #fff7e0; border: 2px solid var(--jaune); }
.secret code { font-size: 22px; font-weight: 700; letter-spacing: 1px; user-select: all; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tuile { background: #fff; border: 1px solid var(--liseré); border-radius: 10px; padding: 14px 16px; }
.tuile .v { font-size: 30px; font-weight: 700; line-height: 1.1; }
.tuile .l { color: var(--doux); font-size: 14px; margin-top: 4px; }
.carte-g { background: #fff; border: 1px solid var(--liseré); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.carte-g h2 { font-size: 17px; margin: 0 0 12px; }
.histo { display: flex; align-items: flex-end; gap: 2px; height: 160px; border-bottom: 1px solid #c9d8de; position: relative; }
.histo .b { flex: 1; min-width: 3px; background: var(--lagon); border-radius: 4px 4px 0 0; position: relative; }
.histo .b:hover, .histo .b:focus-visible { background: #0b6f7f; outline: none; }
.axe-x { display: flex; justify-content: space-between; font-size: 12px; color: var(--doux); margin-top: 6px; }
.barres-h { display: grid; grid-template-columns: minmax(120px, 240px) 1fr auto; gap: 8px 12px; align-items: center; font-size: 15px; }
.barres-h .piste { height: 14px; border-radius: 0 4px 4px 0; background: var(--lagon); min-width: 2px; }
.barres-h .val { color: var(--doux); font-size: 14px; white-space: nowrap; }
.bulle-info { position: fixed; pointer-events: none; background: var(--nuit); color: #fff; font-size: 13px; padding: 6px 9px; border-radius: 6px; z-index: 10; white-space: nowrap; }
.vide { color: var(--doux); padding: 8px 0; }

/* feuille du QR code (écran, puis impression) */
.feuille-fond { position: fixed; inset: 0; background: rgba(19, 41, 75, .5); z-index: 20; display: grid; place-items: center; overflow: auto; padding: 20px; }
.feuille-fond[hidden] { display: none; }
.feuille { background: #fff; width: min(760px, 100%); border-radius: 12px; padding: 32px 40px; color: #111; }
.feuille .outils { display: flex; gap: 10px; justify-content: flex-end; margin: -10px -16px 10px 0; }
.feuille h1 { font-size: 28px; margin: 0; }
.feuille .qui { font-size: 18px; margin: 6px 0 18px; }
.feuille .milieu { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.feuille ol { font-size: 18px; line-height: 1.5; padding-left: 22px; margin: 0; }
.feuille .alerte { margin-top: 22px; border: 3px solid #c62f45; border-radius: 10px; padding: 14px 18px; font-size: 16px; line-height: 1.45; }
.feuille .alerte b { color: #c62f45; font-size: 18px; display: block; margin-bottom: 4px; }
.feuille .lien { margin-top: 14px; font-size: 12px; color: #555; word-break: break-all; }
@media print {
  @page { size: A4; margin: 18mm; }
  body > *:not(.feuille-fond) { display: none !important; }
  .feuille-fond { position: static; background: none; padding: 0; display: block; }
  .feuille { width: auto; padding: 0; border-radius: 0; }
  .feuille .outils, .feuille .essai { display: none; }
}
