/* L'application de Pélion. Couleurs : jetons de 07-charte-graphique/tokens.json (jamais de couleur en dur ailleurs). */
:root {
  --fond: #ffffff; --surface: #f6f7f9; --trait: #e3e1ea; --texte: #17263b; --texte-doux: #4a5568;
  --violette: #5b4277; --sur-violette: #ffffff; --violette-pale: #f1edf6; --violette-trait: #d8cfe4;
  --fil-or: #c8921a; --nuit: #17263b; --sur-nuit: #ffffff; --sur-nuit-doux: #c6cdd8;
  --drapeau: #b3322b; --drapeau-pale: #fbeeed; --valide: #2f6f50; --valide-pale: #eaf4ee;
  --ombre: 0 1px 2px rgba(23, 38, 59, .05), 0 8px 24px rgba(23, 38, 59, .06);
  --titre: "Archivo", "Arial Narrow", Arial, sans-serif;
  --lecture: "Literata", Georgia, serif;
  --rayon: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #121a26; --surface: #1a2433; --trait: #2c3646; --texte: #e8ecf2; --texte-doux: #a9b3c2;
    --violette: #b9a6d3; --sur-violette: #17263b; --violette-pale: #2a2238; --violette-trait: #4a3d5e;
    --fil-or: #e0ac3a; --nuit: #1f2b3d; --drapeau: #e2766e; --drapeau-pale: #3a1f1e; --valide: #6cc29a; --valide-pale: #17302a;
    --ombre: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: var(--titre); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--violette); }
em.pelion, em.metis { font-style: italic; }
.cache { display: none !important; }
:focus-visible { outline: 2px solid var(--violette); outline-offset: 2px; }

/* ─── Boutons ─── */
.btn { font-family: var(--titre); display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--trait); background: var(--fond); color: var(--texte);
  border-radius: 10px; padding: 10px 16px; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:hover { border-color: var(--violette-trait); background: var(--surface); }
.btn:active { transform: translateY(1px); }
.btn.plein { background: var(--violette); border-color: var(--violette); color: var(--sur-violette); }
.btn.plein:hover { filter: brightness(1.08); background: var(--violette); }
.btn.nuit { background: var(--nuit); border-color: var(--nuit); color: var(--sur-nuit); }
.btn.discret { border-color: transparent; background: transparent; color: var(--texte-doux); padding: 8px 10px; }
.btn.discret:hover { color: var(--texte); background: var(--surface); }
.btn.alerte { color: var(--drapeau); border-color: var(--drapeau); background: var(--fond); }
.btn.alerte.armé, .btn.armé { background: var(--drapeau); border-color: var(--drapeau); color: #fff; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.petit { padding: 6px 11px; font-size: 13.5px; border-radius: 8px; }
.fleche { width: 22px; height: 10px; flex: none; }

/* ─── Connexion ─── */
.connexion { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.connexion-gauche { background: var(--nuit); color: var(--sur-nuit); padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; min-height: 100vh; }
.connexion-gauche .logo { width: 150px; color: var(--sur-nuit); }
.connexion-gauche h1 { font-size: clamp(34px, 4.2vw, 56px); font-weight: 700; font-stretch: 78%; line-height: 1.02; letter-spacing: -.01em; margin: 0 0 18px; max-width: 15ch; }
.connexion-gauche p { font-family: var(--lecture); color: var(--sur-nuit-doux); font-size: 17px; line-height: 1.6; max-width: 40ch; margin: 0; }
.reseau { display: block; width: 100%; max-width: 440px; margin: 30px 0; opacity: .95; }
.connexion-droite { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.carte-connexion { width: 100%; max-width: 380px; }
.carte-connexion .etiquette { margin-bottom: 6px; }
.carte-connexion h2 { font-size: 30px; font-stretch: 82%; margin: 0 0 6px; }
.carte-connexion .aide { color: var(--texte-doux); font-family: var(--lecture); font-size: 15px; margin: 0 0 26px; }
.champ { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.champ label { font-size: 13.5px; font-weight: 600; color: var(--texte-doux); }
.champ input, .champ select, .champ textarea { border: 1px solid var(--trait); background: var(--fond); border-radius: 10px; padding: 12px 14px; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: none; border-color: var(--violette); box-shadow: 0 0 0 3px var(--violette-pale); }
.champ textarea { font-family: var(--lecture); min-height: 92px; resize: vertical; }
.code-saisie { letter-spacing: .4em; font-variant-numeric: tabular-nums; font-size: 22px !important; text-align: center; }
.erreur { color: var(--drapeau); background: var(--drapeau-pale); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; margin: 0 0 14px; }
.lien-bas { margin-top: 22px; font-size: 14px; color: var(--texte-doux); }
.lien-bas button { background: none; border: 0; color: var(--violette); cursor: pointer; padding: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ─── Bandeau ─── */
.entete { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--fond) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--trait); }
.entete-dedans { max-width: 1140px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 18px; }
.entete .logo { width: 92px; color: var(--texte); }
.entete .version { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fil-or); border: 1px solid currentColor; border-radius: 5px; padding: 2px 6px; }
.entete .qui { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--texte-doux); }
.pastille-nom { width: 34px; height: 34px; border-radius: 50%; background: var(--violette-pale); color: var(--violette); display: grid; place-items: center; font-weight: 700; font-size: 14px; }

.page { max-width: 1140px; margin: 0 auto; padding: 36px 24px 80px; }
.etiquette { font-size: 14px; font-weight: 600; color: var(--violette); letter-spacing: .02em; }
.titre-page { font-size: clamp(34px, 4vw, 48px); font-weight: 700; font-stretch: 78%; line-height: 1.05; margin: 6px 0 10px; letter-spacing: -.01em; }
.chapeau { font-family: var(--lecture); font-size: 18px; line-height: 1.6; color: var(--texte-doux); max-width: 62ch; margin: 0; }
.chapeau b { color: var(--texte); font-weight: 600; }

/* Le fil du parcours (trait d'or droit, nœuds, flèche vers le présentiel) */
.fil-hero { margin: 34px 0 40px; }
.fil-hero svg { width: 100%; height: auto; display: block; overflow: visible; }
.fil-hero .noeud-txt { font-family: var(--titre); font-size: 13px; font-weight: 700; fill: var(--texte-doux); }
.fil-hero .noeud-txt.fait { fill: var(--violette); }
.fil-hero .legende-fil { font-family: var(--titre); font-size: 12.5px; fill: var(--texte-doux); }

.grille { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.carte { background: var(--fond); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 22px; box-shadow: var(--ombre); }
.carte + .carte { margin-top: 18px; }
.carte h3 { margin: 0 0 4px; font-size: 19px; font-stretch: 85%; }
.carte .sous { margin: 0 0 14px; color: var(--texte-doux); font-size: 14.5px; }
.carte.nuit { background: var(--nuit); border-color: var(--nuit); color: var(--sur-nuit); }
.carte.nuit .sous, .carte.nuit .etiquette { color: var(--sur-nuit-doux); }
.carte.violette { background: var(--violette-pale); border-color: var(--violette-trait); box-shadow: none; }

/* Reprendre */
.reprendre { display: flex; align-items: center; gap: 22px; padding: 22px 24px; margin-bottom: 30px; border-radius: var(--rayon); background: var(--violette-pale); border: 1px solid var(--violette-trait); }
.reprendre .num { font-size: 54px; font-weight: 800; font-stretch: 70%; color: var(--violette); line-height: 1; min-width: 44px; text-align: center; }
.reprendre .quoi { flex: 1; min-width: 0; }
.reprendre .quoi b { display: block; font-size: 20px; font-stretch: 85%; }
.reprendre .quoi span { color: var(--texte-doux); font-size: 14.5px; }

/* Les étapes du parcours, reliées par le fil vertical */
.section-titre { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.section-titre h2 { font-size: 24px; font-stretch: 82%; margin: 0; }
.section-titre span { color: var(--texte-doux); font-size: 14px; }
.etapes { list-style: none; margin: 0 0 34px; padding: 0; position: relative; }
.etape { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 14px; padding-bottom: 14px; }
.etape::before { content: ""; position: absolute; left: 25px; top: 46px; bottom: -6px; width: 2px; background: var(--violette-trait); }
.etape:last-child::before { display: none; }
.etape.lue::before { background: var(--violette); }
.etape-num { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--violette-trait); background: var(--fond); display: grid; place-items: center; font-size: 20px; font-weight: 800; font-stretch: 75%; color: var(--violette); position: relative; z-index: 1; }
.etape.lue .etape-num { background: var(--violette); border-color: var(--violette); color: var(--sur-violette); }
.etape-num svg { position: absolute; inset: -2px; width: 52px; height: 52px; transform: rotate(-90deg); }
.etape-corps { border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px 18px; background: var(--fond); transition: border-color .15s, box-shadow .15s; }
.etape-corps:hover { border-color: var(--violette-trait); box-shadow: var(--ombre); }
.etape-corps h4 { margin: 2px 0 4px; font-size: 19px; font-stretch: 85%; line-height: 1.2; }
.etape-corps p { margin: 0 0 12px; font-family: var(--lecture); font-size: 15px; line-height: 1.55; color: var(--texte-doux); }
.etape-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.meta { color: var(--texte-doux); font-size: 13.5px; margin-right: auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.puce { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: var(--surface); color: var(--texte-doux); }
.puce.ok { background: var(--valide-pale); color: var(--valide); }
.puce.violette { background: var(--violette-pale); color: var(--violette); }
.puce.alerte { background: var(--drapeau-pale); color: var(--drapeau); }
.puce i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.barre { height: 4px; border-radius: 4px; background: var(--trait); overflow: hidden; width: 90px; }
.barre b { display: block; height: 100%; background: var(--violette); border-radius: 4px; }

.references { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.reference { border: 1px solid var(--trait); border-radius: var(--rayon); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.reference b { font-size: 16.5px; font-stretch: 88%; }
.reference.outil { background: var(--fond); border-color: var(--violette-trait); border-top: 3px solid var(--fil-or); }
.cadre-outil { width: 100%; height: 100%; border: 0; display: block; background: var(--fond); }
.reference p { margin: 0; font-family: var(--lecture); font-size: 14px; color: var(--texte-doux); line-height: 1.5; flex: 1; }

/* Colonne de droite */
.liste-verif { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.liste-verif li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 15px; }
.liste-verif .case { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--violette-trait); display: grid; place-items: center; }
.liste-verif li.ok .case { background: var(--valide); border-color: var(--valide); color: #fff; }
.liste-verif small { display: block; color: var(--texte-doux); font-size: 13px; }
.note { font-size: 13px; color: var(--texte-doux); margin: 14px 0 0; font-family: var(--lecture); }
.jours { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.jours li { display: flex; align-items: center; gap: 12px; }
.jour-date { width: 48px; text-align: center; border-radius: 10px; background: var(--surface); padding: 6px 0 5px; flex: none; }
.carte.nuit .jour-date { background: rgba(255, 255, 255, .08); }
.jour-date b { display: block; font-size: 21px; font-weight: 800; font-stretch: 75%; line-height: 1; }
.jour-date span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--sur-nuit-doux); }
.demi { display: flex; gap: 6px; margin-top: 4px; }
.demi span { font-size: 12px; border-radius: 6px; padding: 2px 7px; border: 1px solid rgba(255, 255, 255, .2); color: var(--sur-nuit-doux); }
.demi span.ok { background: var(--fil-or); border-color: var(--fil-or); color: var(--nuit); font-weight: 700; }
.compte-a-rebours { font-size: 46px; font-weight: 800; font-stretch: 70%; line-height: 1; }
.form-emarger { display: flex; gap: 8px; margin-top: 14px; }
.form-emarger input::placeholder, .code-saisie::placeholder { letter-spacing: normal; font-size: 16px; }
.form-emarger input { flex: 1; min-width: 0; border-radius: 10px; border: 0; padding: 12px; font-size: 22px; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }

/* ─── Calques plein écran : lecteur, questionnaire, rétractation, attestation ─── */
.calque { position: fixed; inset: 0; z-index: 50; background: var(--fond); display: flex; flex-direction: column; animation: monter .22s ease-out; }
@keyframes monter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.calque-tete { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--trait); }
.calque-tete .titre { min-width: 0; flex: 1; }
.calque-tete .titre small { display: block; font-size: 12.5px; color: var(--violette); font-weight: 600; }
.calque-tete .titre b { display: block; font-size: 17px; font-stretch: 88%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progression { height: 3px; background: var(--violette-trait); }
.progression b { display: block; height: 100%; background: var(--violette); transition: width .25s; }
.calque-corps { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; }
.calque-pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--trait); }

.lecteur-page { min-height: 100%; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px 40px; background: var(--surface); }
.lecteur-page img { width: 100%; max-width: 860px; height: auto; background: #fff; border-radius: 6px; box-shadow: var(--ombre); display: block; }
.compteur { font-variant-numeric: tabular-nums; color: var(--texte-doux); font-size: 14px; }

.qcm-corps { max-width: 760px; margin: 0 auto; padding: 36px 22px 40px; }
.qcm-q { font-family: var(--lecture); font-size: 21px; line-height: 1.55; margin: 8px 0 22px; }
.choix { display: flex; flex-direction: column; gap: 10px; }
.choix button { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; text-align: left; border: 1px solid var(--trait); border-radius: 12px; padding: 14px 16px; background: var(--fond); cursor: pointer; font-family: var(--lecture); font-size: 16.5px; line-height: 1.5; transition: border-color .12s, background .12s; }
.choix button:hover { border-color: var(--violette-trait); }
.choix .lettre { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--violette-trait); display: grid; place-items: center; font-family: var(--titre); font-weight: 700; font-size: 14px; color: var(--violette); }
.choix button[aria-pressed="true"] { border-color: var(--violette); background: var(--violette-pale); }
.choix button[aria-pressed="true"] .lettre { background: var(--violette); border-color: var(--violette); color: var(--sur-violette); }
.indice { font-size: 13.5px; color: var(--texte-doux); margin: -12px 0 18px; }

.resultat { text-align: center; padding: 18px 0 30px; }
.resultat .score { font-size: 96px; font-weight: 800; font-stretch: 68%; line-height: 1; margin: 6px 0; }
.resultat .score small { font-size: 40px; }
.seuil { position: relative; height: 8px; border-radius: 8px; background: var(--trait); max-width: 420px; margin: 18px auto 8px; }
.seuil b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: var(--violette); }
.seuil i { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--fil-or); }
.seuil-legende { font-size: 13px; color: var(--texte-doux); }
.verdict { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 16px; padding: 6px 14px; border-radius: 999px; margin-top: 14px; }
.verdict.ok { background: var(--valide-pale); color: var(--valide); }
.verdict.non { background: var(--violette-pale); color: var(--violette); }
.a-relire { text-align: left; max-width: 520px; margin: 22px auto 0; background: var(--surface); border-radius: 12px; padding: 16px 18px; font-size: 15px; }
.a-relire ul { margin: 8px 0 0; padding-left: 18px; font-family: var(--lecture); }
.correction { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.correction-q { border: 1px solid var(--trait); border-radius: 12px; padding: 16px 18px; }
.correction-q > p { font-family: var(--lecture); margin: 6px 0 10px; }
.correction-q ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-family: var(--lecture); font-size: 15px; }
.correction-q li { padding: 7px 10px; border-radius: 8px; background: var(--surface); }
.correction-q li.bonne { background: var(--valide-pale); }
.correction-q li.fausse { background: var(--drapeau-pale); }
.correction-q li em { font-family: var(--titre); font-style: normal; font-size: 12.5px; font-weight: 700; margin-left: 6px; }
.correction-q .expl { margin-top: 10px; font-family: var(--lecture); font-size: 14.5px; color: var(--texte-doux); line-height: 1.6; }

.document { max-width: 720px; margin: 0 auto; padding: 40px 24px 60px; font-family: var(--lecture); font-size: 16.5px; line-height: 1.65; }
.document .etiquette { font-family: var(--titre); }
.document h2 { font-family: var(--titre); font-size: 30px; font-stretch: 80%; margin: 4px 0 14px; line-height: 1.1; }
.document h3 { font-family: var(--titre); font-size: 19px; margin: 26px 0 8px; }
.document .encadre { background: var(--violette-pale); border-radius: 12px; padding: 16px 18px; margin: 18px 0; }
.document .encadre.alerte { background: var(--drapeau-pale); }
.document table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 10px 0; }
.document td, .document th { border-bottom: 1px solid var(--trait); padding: 8px 6px; text-align: left; vertical-align: top; }
.document th { font-family: var(--titre); font-size: 13.5px; color: var(--texte-doux); font-weight: 600; width: 34%; }
.accuse { border: 2px solid var(--violette); border-radius: 14px; padding: 20px; margin: 18px 0; }
.accuse .ref { font-family: var(--titre); font-size: 24px; font-weight: 700; letter-spacing: .03em; }

.notes { display: flex; flex-direction: column; gap: 18px; margin: 20px 0; }
.note-ligne p { margin: 0 0 8px; }
.echelle { display: flex; gap: 6px; }
.echelle button { flex: 1; border: 1px solid var(--trait); border-radius: 10px; background: var(--fond); padding: 10px 0; font-weight: 700; cursor: pointer; font-family: var(--titre); }
.echelle button[aria-pressed="true"] { background: var(--violette); border-color: var(--violette); color: var(--sur-violette); }
.echelle-legende { display: flex; justify-content: space-between; font-size: 12px; color: var(--texte-doux); margin-top: 4px; font-family: var(--titre); }

/* ─── Administration ─── */
.onglets { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 18px; }
.onglets button { border: 1px solid var(--trait); background: var(--fond); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 14.5px; }
.onglets button[aria-selected="true"] { background: var(--nuit); color: var(--sur-nuit); border-color: var(--nuit); }
.promo-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.promo-tete h2 { margin: 2px 0 2px; font-size: 28px; font-stretch: 80%; }
.promo-tete p { margin: 0; color: var(--texte-doux); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tableau-conteneur { border: 1px solid var(--trait); border-radius: var(--rayon); overflow-x: auto; background: var(--fond); }
table.tableau { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tableau th { text-align: left; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--texte-doux); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--trait); background: var(--surface); white-space: nowrap; }
.tableau td { padding: 12px 14px; border-bottom: 1px solid var(--trait); vertical-align: middle; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau .personne b { display: block; font-size: 15.5px; }
.tableau .personne span { color: var(--texte-doux); font-size: 13px; }
.segments { display: flex; gap: 3px; }
.segments span { width: 22px; height: 22px; border-radius: 6px; background: var(--surface); border: 1px solid var(--trait); position: relative; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; color: var(--texte-doux); }
.segments span.encours { background: linear-gradient(to top, var(--violette-pale) var(--p), var(--surface) var(--p)); }
.segments span.lu { background: var(--violette); border-color: var(--violette); color: var(--sur-violette); }
.segments span.qcm::after { content: ""; position: absolute; right: -3px; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--valide); border: 2px solid var(--fond); }
.segments span.bloque::after { content: ""; position: absolute; right: -3px; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--drapeau); border: 2px solid var(--fond); }
.points { display: flex; gap: 4px; }
.points i { width: 10px; height: 10px; border-radius: 50%; background: var(--trait); }
.points i.ok { background: var(--fil-or); }
.vide { text-align: center; padding: 40px 20px; color: var(--texte-doux); font-family: var(--lecture); }

.fenetre-fond { position: fixed; inset: 0; z-index: 60; background: rgba(13, 21, 32, .45); display: grid; place-items: center; padding: 20px; animation: apparaitre .15s; }
@keyframes apparaitre { from { opacity: 0; } }
.fenetre { background: var(--fond); border-radius: 18px; width: 100%; max-width: 460px; padding: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); max-height: 90vh; overflow: auto; }
.fenetre h3 { margin: 0 0 4px; font-size: 22px; font-stretch: 85%; }
.fenetre .sous { margin: 0 0 18px; color: var(--texte-doux); font-size: 14.5px; }
.fenetre .boutons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.code-montre { font-size: 44px; font-weight: 800; font-stretch: 70%; letter-spacing: .12em; text-align: center; background: var(--violette-pale); color: var(--violette); border-radius: 14px; padding: 16px 0; margin: 10px 0 12px; font-variant-numeric: tabular-nums; }
.trois-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.projection { position: fixed; inset: 0; z-index: 70; background: var(--nuit); color: var(--sur-nuit); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.projection .logo { width: 140px; color: var(--sur-nuit); position: absolute; top: 34px; left: 40px; }
.projection .quand { font-size: 26px; color: var(--sur-nuit-doux); }
.projection .gros-code { font-size: min(30vw, 300px); font-weight: 800; font-stretch: 68%; letter-spacing: .08em; line-height: 1; margin: 10px 0; font-variant-numeric: tabular-nums; }
.projection .consigne { font-family: var(--lecture); font-size: 24px; color: var(--sur-nuit-doux); }
.projection .trait-or { width: 200px; height: 3px; background: var(--fil-or); margin: 26px auto; position: relative; }
.projection .trait-or::after { content: ""; position: absolute; right: -2px; top: -6px; border-left: 12px solid var(--fil-or); border-top: 7.5px solid transparent; border-bottom: 7.5px solid transparent; }
.projection .presents { font-size: 22px; margin-top: 10px; }
.projection .btn { position: absolute; bottom: 30px; right: 36px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; background: var(--nuit); color: var(--sur-nuit); border-radius: 12px; padding: 12px 18px; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: monter .2s; max-width: calc(100% - 32px); }

@media print {
  .entete, .calque-tete, .calque-pied, .progression, .ne-pas-imprimer { display: none !important; }
  .calque { position: static; }
  body { background: #fff; color: #17263b; }
}
@media (max-width: 900px) {
  .grille { grid-template-columns: minmax(0, 1fr); }
  .connexion { grid-template-columns: minmax(0, 1fr); }
  .connexion-gauche { padding: 28px 22px 34px; min-height: auto; }
  .connexion-gauche h1 { font-size: 34px; margin-top: 26px; }
  .reseau { display: none; }
}
@media (max-width: 600px) {
  .page { padding: 24px 16px 70px; }
  .entete-dedans { padding: 10px 16px; }
  .entete .qui span.nom { display: none; }
  .references { grid-template-columns: minmax(0, 1fr); }
  .fil-hero { display: none; }
  .grille { margin-top: 24px; }
  .reprendre { flex-wrap: wrap; gap: 14px; }
  .reprendre .btn { width: 100%; }
  .etape { grid-template-columns: 40px minmax(0, 1fr); gap: 0 10px; }
  .etape-num, .etape-num svg { width: 40px; height: 40px; font-size: 16px; }
  .etape::before { left: 19px; top: 36px; }
  .qcm-q { font-size: 19px; }
  .calque-tete, .calque-pied { padding: 10px 14px; }
}
