
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,800&family=Outfit:wght@400;500;600;700;800&display=swap');
*{margin:0;padding:0;box-sizing:border-box}
:root{--ink:#1a1430;--c1:#ff6b6b;--c2:#feca57;--c3:#48dbfb;--c4:#1dd1a1;--green:#16a34a;--blue:#2563eb}
body{font-family:'Outfit',sans-serif;color:var(--ink);min-height:100vh;background:
 radial-gradient(circle at 8% 10%,#ffe9d6 0,transparent 36%),
 radial-gradient(circle at 92% 6%,#d6f0ff 0,transparent 34%),
 radial-gradient(circle at 50% 100%,#e7ffe9 0,transparent 40%),#fefcf8}
button{font-family:inherit;cursor:pointer;border:none}
input,select{font-family:inherit}

/* LOGIN */
.login{max-width:580px;margin:0 auto;padding:44px 20px 30px;text-align:center}
/* ===== Le bandeau des matieres (accueil) ===== */
.sub-2{margin:14px 0 26px}
.mrq{position:relative;overflow:hidden;margin:2px -20px 0;padding:2px 0;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent)}
.mrq-defile{display:flex;width:max-content;animation:mrqDefile 46s linear infinite}
.mrq:hover .mrq-defile{animation-play-state:paused}
.mrq-piste{display:flex;flex-shrink:0}
.mrq-item{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;
  background:#fff;border:1px solid #eee4f3;border-radius:999px;
  padding:8px 16px;margin-right:10px;font-size:13.5px;font-weight:600;color:#5a5470;
  box-shadow:0 4px 14px -10px rgba(80,40,120,.5)}
.mrq-ico{font-size:17px;line-height:1}
@keyframes mrqDefile{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
@media(prefers-reduced-motion:reduce){
  .mrq-defile{animation:none}
  .mrq{overflow-x:auto;-webkit-mask-image:none;mask-image:none}
}
@media(max-width:640px){
  .mrq{margin:2px -16px 0}
  .mrq-item{font-size:12.5px;padding:7px 13px;margin-right:8px}
  .mrq-ico{font-size:15px}
  .mrq-defile{animation-duration:38s}
}

.kick{display:inline-block;background:var(--ink);color:#fff;padding:7px 16px;border-radius:30px;font-size:11px;font-weight:700;letter-spacing:1.3px}
.hero h1{font-family:'Fraunces',serif;font-size:62px;font-weight:800;margin:16px 0 6px;line-height:1}
.grad{background:linear-gradient(120deg,var(--c1),var(--c2));-webkit-background-clip:text;background-clip:text;color:transparent}
.sub{font-size:17px;color:#5a5470;margin-bottom:26px}
.card{background:#fff;border-radius:24px;padding:26px;box-shadow:0 30px 60px -20px rgba(80,40,120,.25);border:1px solid #f0eafa;text-align:left}
.tabs{display:flex;flex-wrap:wrap;gap:8px;background:#f5f1fb;padding:6px;border-radius:14px;margin-bottom:18px}
.tabs > *{flex:0 0 auto}
@media(max-width:640px){
  .tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;-webkit-overflow-scrolling:touch;
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 26px),transparent);
    mask-image:linear-gradient(90deg,#000 calc(100% - 26px),transparent)}
}
.tab{flex:1;padding:11px;border-radius:10px;background:transparent;font-weight:700;color:#7a7390;font-size:15px}
.tab.on{background:#fff;color:var(--ink);box-shadow:0 4px 12px rgba(0,0,0,.08)}
.form{display:flex;flex-direction:column;gap:11px}.r2{display:flex;gap:11px}.r2 input{flex:1}
.form input{padding:13px 15px;border:2px solid #ece6f7;border-radius:12px;font-size:15px;background:#faf8fe}
.form input:focus{outline:none;border-color:var(--c1);background:#fff}
.hint{font-size:13px;color:#8a84a0}code{background:#f0eafa;padding:2px 7px;border-radius:6px;font-weight:700;color:#db2777}
.err{background:#fee2e2;color:#dc2626;padding:10px 14px;border-radius:10px;font-size:14px;margin-top:12px;font-weight:600}
.ok-msg{background:#dcfce7;color:#15803d;padding:10px 14px;border-radius:10px;font-size:14px;margin-top:12px;font-weight:600}
.cta{width:100%;margin-top:16px;padding:15px;border-radius:14px;background:linear-gradient(120deg,var(--c1),var(--c2));color:#fff;font-size:17px;font-weight:800;box-shadow:0 12px 24px -6px rgba(255,107,107,.5);transition:.2s}
.cta-demo{width:100%;margin:0 0 8px;padding:13px;border-radius:14px;background:linear-gradient(120deg,#7c3aed,#6d28d9);border:2px solid #6d28d9;color:#fff;font-size:15px;font-weight:800;cursor:pointer;transition:.15s;box-shadow:0 10px 22px -10px rgba(124,58,237,.55)}
.cta-demo:hover{filter:brightness(1.08)}
.cta-demo-note{margin:0 0 14px;font-size:12px;color:#8b86a0;text-align:center;line-height:1.4}
.demo-banner{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;background:linear-gradient(120deg,#7c3aed,#6d28d9);color:#fff;font-size:13.5px;font-weight:600;padding:9px 16px;text-align:center}
.demo-banner-quit{background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.5);color:#fff;border-radius:8px;padding:5px 12px;font-size:12.5px;font-weight:700;cursor:pointer}
.demo-banner-quit:hover{background:rgba(255,255,255,.32)}
.cta:hover{transform:translateY(-2px)}.cta.sm{max-width:260px;margin:14px auto 0}
.fnote{margin-top:20px;font-size:12px;color:#9a94aa}
.lstats{margin-top:22px;background:linear-gradient(135deg,#fff,#f7f5ff);border:1px solid #ece7fb;border-radius:18px;padding:20px 18px 16px;box-shadow:0 18px 40px -26px rgba(124,58,237,.35)}
.lstats-title{text-align:center;font-size:12px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;color:#7c3aed;margin-bottom:16px}
.lstats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.lstat{text-align:center;padding:10px 6px;border-radius:14px;background:#fff;border:1px solid #f0ecfb;transition:.2s}
.lstat:hover{transform:translateY(-2px);box-shadow:0 10px 22px -12px rgba(124,58,237,.4)}
.lstat-emoji{font-size:22px;line-height:1;margin-bottom:4px}
.lstat-num{font-family:'Fraunces',Georgia,serif;font-size:34px;font-weight:900;line-height:1;background:linear-gradient(120deg,#7c3aed,#db2777);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.lstat-lab{font-size:11.5px;color:#6a6480;font-weight:600;margin-top:5px;line-height:1.25}
@media(max-width:560px){.lstats-grid{grid-template-columns:repeat(2,1fr)}.lstat-num{font-size:30px}}
.lstat-rgpd{display:flex;align-items:center;gap:12px;margin-top:14px;padding:12px 16px;background:linear-gradient(135deg,#ecfdf5,#f0fdf4);border:1px solid #bbf7d0;border-radius:13px}
.lstat-rgpd-ico{font-size:24px;flex-shrink:0}
.lstat-rgpd-txt{display:flex;flex-direction:column;gap:2px}
.lstat-rgpd-txt b{font-size:14px;color:#047857;font-weight:800}
.lstat-rgpd-txt span{font-size:12.5px;color:#15803d;line-height:1.4}

/* SHELL */
.app{max-width:1120px;margin:0 auto;padding:0 16px 60px}
.top{display:flex;align-items:center;gap:14px;padding:18px 4px}
.brand{font-family:'Fraunces',serif;font-weight:800;font-size:22px}
.who{margin-left:auto;font-weight:600;color:#5a5470;font-size:14px}.who .cl{color:var(--blue);font-weight:700}
.lo{background:#f0eafa;padding:9px 16px;border-radius:10px;font-weight:700;color:#6b6485;font-size:14px}
.top.prof .lo{margin-left:auto}
.prof-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end;
  margin-left:auto;min-width:0}
@media(max-width:640px){
  /* Barre ELEVE : sans wrap, ses cinq enfants debordaient de 121 px en
     375 px de large. Le wrap suffit a supprimer le debordement ; les
     tailles reduites evitent une deuxieme ligne inutile. */
  .top:not(.prof){flex-wrap:wrap;gap:8px;padding:12px 2px}
  .top:not(.prof) .brand{font-size:17px;line-height:1.3;flex:0 1 auto}
  .top:not(.prof) .who{margin-left:0;font-size:12px}
  .top:not(.prof) .syncw{font-size:11.5px;padding:5px 9px}
  .top:not(.prof) .lo{margin-left:0;padding:7px 10px;font-size:12px}
  .top.prof{flex-wrap:wrap;gap:8px;padding:12px 2px}
  .top.prof .brand{font-size:19px;line-height:1.35}
  .prof-actions{width:100%;margin-left:0;justify-content:flex-start;gap:6px}
  /* Le lanceur flottant et son « ? » (haut à droite, ~74 px) mordaient sur
     le badge du nom : la 1re ligne leur laisse la place ; la rangée des
     boutons, seule sur sa ligne, reprend toute la largeur (12/11/2026). */
  .top.prof{padding-right:78px}
  .top.prof .prof-actions{width:calc(100% + 76px);margin-right:-76px}
  .top.prof .prof-actions .lo{margin-left:0;flex:1 1 calc(50% - 6px);text-align:center;
    padding:8px 6px;font-size:12px;white-space:nowrap;border-radius:9px}
}
.syncw{font-size:13.5px;font-weight:800;padding:8px 13px;border-radius:11px;border:1.5px solid transparent;white-space:nowrap;transition:.15s;letter-spacing:.2px}
button.syncw{cursor:pointer}
button.syncw:hover{transform:translateY(-1px)}
.syncw.off{background:#f1f5f9;color:#64748b;border-color:#e2e8f0}
.syncw.ok{background:#e7f9ee;color:#15803d;border-color:#a7e8c0}
.syncw.pending{background:#fff7e6;color:#b45309;border-color:#fcd9a0}
.syncw.saving{background:#eef4ff;color:#2563eb;border-color:#c3d8fb}
.syncw.error{background:#fee2e2;color:#dc2626;border-color:#f7b4b4}
@media(max-width:600px){ .syncw{font-size:12px;padding:7px 10px} .who{font-size:12.5px} }
.nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.nb-wrap{position:relative;display:inline-flex;align-items:center}
.nb-wrap.tab-hidden .nb{opacity:.45}
.res-tab-wrap{display:inline-flex;align-items:center}
.res-tab-wrap.res-tab-hidden .tt{opacity:.45}
.res-eye{margin-left:-2px;border:none;background:transparent;cursor:pointer;font-size:13px;padding:2px 4px;border-radius:6px;line-height:1}
.res-eye:hover{background:rgba(0,0,0,.06)}
.res-hidden-note{font-size:12.5px;color:#7c3aed;background:#f5f3ff;border:1px solid #ddd6fe;border-radius:8px;padding:7px 12px;margin-bottom:10px;display:inline-block}
.nb-eye{margin-left:-4px;margin-right:2px;border:none;background:transparent;cursor:pointer;font-size:13px;padding:2px 4px;border-radius:6px;line-height:1}
.nb-move{border:none;background:rgba(124,58,237,.1);color:#7c3aed;cursor:pointer;font-size:15px;font-weight:900;padding:1px 6px;border-radius:6px;line-height:1;margin:0 1px}
.nb-move:hover:not(:disabled){background:#7c3aed;color:#fff}
.nb-move:disabled{opacity:.25;cursor:default}
.res-move{border:none;background:rgba(124,58,237,.1);color:#7c3aed;cursor:pointer;font-size:14px;font-weight:900;padding:1px 5px;border-radius:6px;line-height:1;margin:0 1px}
.res-move:hover:not(:disabled){background:#7c3aed;color:#fff}
.res-move:disabled{opacity:.25;cursor:default}
.nb-eye:hover{background:rgba(0,0,0,.06)}
.nb-eye.off{filter:grayscale(0)}
.nb{padding:11px 18px;border-radius:12px;background:#fff;font-weight:700;font-size:15px;color:#6b6485;box-shadow:0 4px 14px -6px rgba(80,40,120,.2)}
.nb.on{background:var(--ink);color:#fff}

/* THEME PICK */
.theme-pick{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.tpill{flex:1;min-width:160px;display:flex;flex-direction:column;gap:2px;padding:14px 16px;border-radius:16px;background:#fff;border:2px solid #eee4f5;text-align:left;transition:.2s;box-shadow:0 6px 18px -10px rgba(80,40,120,.25)}
.tpill b{font-size:13px;color:var(--c)}.tpill span{font-size:15px;font-weight:700;color:var(--ink)}
.tpill.on{border-color:var(--c);background:#fff}
.tpill.lock{opacity:.55;cursor:not-allowed}
.locked-msg{background:#fff;border-radius:16px;padding:30px;text-align:center;color:#6b6485;font-weight:600;box-shadow:0 10px 30px -16px rgba(80,40,120,.2)}
.contract{background:linear-gradient(120deg,#fff6e8,#fef0f0);border:1.5px solid #fcd9b8;border-radius:16px;padding:14px 18px;font-size:14px;line-height:1.6;margin-bottom:20px}

/* GAMES GRID */
.games{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.gcard{position:relative;background:#fff;border-radius:18px;padding:20px;box-shadow:0 16px 36px -18px rgba(80,40,120,.28);border-top:4px solid var(--c,#7c3aed);text-align:center;transition:.22s}
.gcard:hover:not(.lock){transform:translateY(-4px)}
.gcard.lock{opacity:.55;filter:grayscale(.4)}
.gicon{font-size:38px}
.gtags{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin:6px 0}
.gbloom{display:inline-block;background:var(--c);color:#fff;font-size:10.5px;font-weight:700;padding:3px 11px;border-radius:20px;letter-spacing:.4px}
.gdiff{display:inline-block;background:#64748b;color:#fff;font-size:10.5px;font-weight:700;padding:3px 11px;border-radius:20px;letter-spacing:.4px}
.gcard h3{font-family:'Fraunces',serif;font-size:18px;margin:4px 0}
.gcard p{color:#6b6485;font-size:13.5px;min-height:38px}
.gbest{font-size:12.5px;font-weight:700;color:var(--c);margin:6px 0}
.gcard button{margin-top:8px;width:100%;padding:11px;border-radius:11px;background:var(--c,#7c3aed);color:#fff;font-weight:800;font-size:14px;transition:.2s}
.gcard button:hover:not(:disabled){filter:brightness(1.08)}
.gcard button:disabled{background:#d8d2e6;cursor:not-allowed}


/* ---------- Codes d'activité ---------- */
.gcode{position:absolute;top:9px;right:11px;font-family:ui-monospace,Menlo,Consolas,monospace;
  font-size:10.5px;font-weight:700;letter-spacing:.06em;color:#a49dbb;
  background:#f4f1fa;border:1px solid #e7e2f2;border-radius:6px;padding:2px 6px;
  cursor:pointer;user-select:all;line-height:1.5;z-index:2}
.gcode:hover{color:var(--c);border-color:var(--c)}
.gh-code{margin-left:auto;flex:0 0 auto;font-family:ui-monospace,Menlo,Consolas,monospace;
  font-size:11px;font-weight:700;letter-spacing:.06em;color:#a49dbb;
  background:#f4f1fa;border:1px solid #e7e2f2;border-radius:7px;padding:4px 9px;user-select:all}
@media(max-width:520px){ .gh-code{display:none} }


/* ---------- ETLV : ecoute et activites de dix minutes ---------- */
.eo-pistes{display:flex;flex-direction:column;gap:8px;margin:0 0 16px}
.eo-piste{display:flex;align-items:center;gap:10px;background:#ecfeff;
  border:1px solid #a5f3fc;border-radius:12px;padding:10px 14px}
.eo-piste-t{font-weight:700;color:#155e75;flex:1}
.eo-consigne{background:#fff7ed;border-left:4px solid #f59e0b;
  border-radius:0 10px 10px 0;padding:10px 14px;margin:12px 0}
.eo-tr{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;
  padding:12px 16px;margin-bottom:10px}
.eo-tr-t{display:flex;align-items:center;gap:8px;font-weight:700;
  color:#334155;margin-bottom:6px}
.eo-tr p{margin:0;line-height:1.6}
.eo-score,.eq-score{font-size:28px;font-weight:800;text-align:center;margin:4px 0 14px}
.eq-bandeau{display:flex;align-items:center;justify-content:space-between;
  margin:0 0 12px;font-size:13px}
.eq-niv{font-weight:800;border-radius:999px;padding:3px 12px}
.eq-niv-a2{background:#dcfce7;color:#166534}
.eq-niv-b1{background:#dbeafe;color:#1e40af}
.eq-niv-b2{background:#f3e8ff;color:#6b21a8}
.eq-avance{color:#64748b;font-weight:600}
.eq-niveaux{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:12px 0 16px}
.eq-nivres{display:flex;flex-direction:column;align-items:center;gap:2px;
  border-radius:14px;padding:10px 18px;min-width:104px}
.eq-nivres-t{font-size:12px;font-weight:800}
.eq-nivres-s{font-size:20px;font-weight:800}


/* ---------- Competences informatiques ---------- */
.kb-tete{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.kb-avance{font-size:13px;font-weight:600;color:#64748b}
.kb-intro{background:#f0fdfa;border-left:4px solid #0f766e;border-radius:0 10px 10px 0;
  padding:10px 14px;margin:10px 0 14px;line-height:1.55}
.kb-zone{font:600 22px/1.9 ui-monospace,Menlo,Consolas,monospace;background:#fffdf8;
  border:2px solid #cbd5e1;border-radius:14px;padding:16px 18px;margin:0 0 8px;
  cursor:text;outline:none;word-break:break-word;min-height:64px}
.kb-zone:focus{border-color:#0f766e;box-shadow:0 0 0 3px rgba(15,118,110,.15)}
.kb-zone-ko{border-color:#dc2626;box-shadow:0 0 0 3px rgba(220,38,38,.15)}
.kb-c{color:#94a3b8;white-space:pre}
.kb-c-ok{color:#0f766e}
.kb-c-now{background:#0f766e;color:#fff;border-radius:3px}
.kb-c-ko{background:#dc2626}
.kb-aide{font-size:13px;color:#64748b;margin:0 0 14px}
.kb-clavier{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;
  padding:12px 10px;margin:0 0 12px;overflow-x:auto}
.kb-rang{display:flex;gap:4px;justify-content:center;margin-bottom:4px}
.kb-t{flex:0 0 auto;min-width:34px;height:34px;line-height:34px;text-align:center;
  font:600 13px/34px ui-monospace,Menlo,Consolas,monospace;background:#fff;
  border:1px solid #cbd5e1;border-radius:6px;color:#475569}
.kb-t-esp{min-width:190px}
.kb-t-on{background:#0f766e;border-color:#0f766e;color:#fff;transform:translateY(1px)}
.kb-d-G5,.kb-d-D5{border-bottom:3px solid #db2777}
.kb-d-G4,.kb-d-D4{border-bottom:3px solid #d97706}
.kb-d-G3,.kb-d-D3{border-bottom:3px solid #16a34a}
.kb-d-G2,.kb-d-D2{border-bottom:3px solid #2563eb}
.kb-d-P{border-bottom:3px solid #7c3aed}
.kb-doigt{text-align:center;margin:8px 0 0;font-size:14px;color:#334155}
.kb-barre{height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin:0 0 10px}
.kb-barre-f{height:100%;background:#0f766e;transition:width .12s linear}
.kb-liste{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;margin:14px 0}
.kb-carte{display:flex;flex-direction:column;gap:3px;align-items:flex-start;text-align:left;
  background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:12px 14px;cursor:pointer}
.kb-carte:hover{border-color:#0f766e;box-shadow:0 2px 10px rgba(15,118,110,.12)}
.kb-carte-e{font-size:13px}
.kb-carte-n{font-weight:700}
.kb-carte-l{font-size:12px;color:#64748b}
.kb-scores{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:14px 0}
.kb-score{display:flex;flex-direction:column;align-items:center;gap:2px;background:#f0fdfa;
  border-radius:14px;padding:12px 22px;min-width:110px}
.kb-score-v{font-size:26px;font-weight:800;color:#0f766e}
.kb-score-l{font-size:12px;color:#475569}
.kb-mot{text-align:center;font-size:15px;margin:6px 0 14px}
.kb-fin-b{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.fj-cta-2{background:#fff;color:#0f766e;border:1px solid #0f766e}
.pl-el{background:#fffbeb;border:1px solid #fde68a;border-radius:12px;padding:14px 16px;
  margin:0 0 12px;font-size:16px;line-height:1.5}
.pl-zones{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:9px}
.pl-zone{display:flex;flex-direction:column;gap:2px;align-items:flex-start;text-align:left;
  background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:10px 13px;cursor:pointer}
.pl-zone span{font-size:12px;color:#64748b}
.pl-zone:hover:not(:disabled){border-color:#b45309}
.pl-zone.ok{border-color:#16a34a;background:#f0fdf4}
.pl-zone.ko{border-color:#dc2626;background:#fef2f2}
.pl-modele{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:12px 16px;margin:12px 0}
.pl-modele ol{margin:6px 0 0;padding-left:20px}
.pl-modele li{margin-bottom:5px;line-height:1.5}
.pl-ex{color:#475569}

/* ---------- Le Labo des pourcentages ----------
   Tout ce qui bouge est en CSS. Un onglet en arriere-plan bride les timers
   JS a ~1 s (§7.6) : une animation ecrite en setTimeout s'y figerait a
   mi-course, et l'eleve reviendrait sur un dessin incomprehensible. Le CSS,
   lui, se suspend proprement et repart.
   Les modificateurs portent tous le prefixe pc- (piege N). */

.pc-banniere{width:100%;max-height:220px;object-fit:cover;border-radius:16px;margin:0 0 14px}
.pc-titre{margin:0 0 6px;font-size:22px}
.pc-accroche{margin:0 0 18px;color:#475569;line-height:1.55}
.pc-h4{margin:22px 0 10px;font-size:16px;color:#0f172a}

/* --- les jauges du hub --- */
.pc-jauges{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 18px}
.pc-jauge{flex:1 1 140px;display:flex;flex-direction:column;align-items:center;gap:2px;
  background:#f0f9ff;border-radius:14px;padding:12px 16px}
.pc-jauge-v{font-size:26px;font-weight:800;color:#0369a1}
.pc-jauge-l{font-size:12px;color:#475569}

/* --- l'escalier des six etapes --- */
.pc-escalier{display:flex;flex-direction:column;gap:9px;margin:0 0 22px}
.pc-marche{display:flex;align-items:center;gap:13px;text-align:left;width:100%;
  background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:12px 15px;cursor:pointer;
  opacity:0;animation:pc-monte .42s ease-out forwards}
@keyframes pc-monte{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.pc-marche:hover{border-color:#0369a1;box-shadow:0 2px 12px rgba(3,105,161,.12)}
.pc-marche.finie{background:#f0fdf4;border-color:#86efac}
.pc-marche.encours{background:#fffbeb;border-color:#fde68a}
.pc-marche-n{flex:0 0 34px;height:34px;line-height:34px;text-align:center;border-radius:50%;
  background:#0369a1;color:#fff;font-weight:800;font-size:15px}
.pc-marche.finie .pc-marche-n{background:#16a34a}
.pc-marche.encours .pc-marche-n{background:#d97706}
.pc-marche-txt{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.pc-marche-txt small{color:#64748b;font-size:12.5px;line-height:1.45}
.pc-marche-etat{flex:0 0 auto;font-size:14px;font-weight:700;color:#475569}

/* --- le grand melange --- */
.pc-defi{background:#eef2ff;border:1px solid #c7d2fe;border-radius:16px;padding:16px 18px;margin:0 0 18px}
.pc-defi h4{margin:0 0 6px;font-size:17px}
.pc-defi p{margin:0 0 12px;line-height:1.55;color:#334155}
.pc-defi-mot{font-size:13px;color:#64748b;margin:10px 0 0}
.pc-mel-tete{display:flex;align-items:center;gap:10px;margin:0 0 12px;flex-wrap:wrap}
.pc-mel-etoiles{font-size:15px}
.pc-mel-mot{font-size:13.5px;color:#64748b}
/* Les prérequis — une carte par base à installer. La pastille est à
   GAUCHE et non au-dessus : posée au-dessus, elle poussait le texte et
   chaque carte prenait un écran (le défaut de §7.37, à ne pas refaire). */
/* ---- Accompagnement à l'orientation ---- */
.ao-regle{background:#fdf2f8;border:1px solid #fbcfe8;border-radius:12px;
  padding:13px 16px;margin:14px 0}
.ao-regle b{display:block;color:#9d174d;margin-bottom:5px}
.ao-regle p{margin:0;color:#475569;line-height:1.55;font-size:14.5px}
/* La mention de confidentialité n'est pas un ornement : elle répond à une
   vraie question que l'élève se pose avant de répondre. */
.ao-prive{background:#ecfdf5;border:1px solid #a7f3d0;border-radius:12px;
  padding:11px 15px;margin:14px 0;color:#065f46;font-size:14px;line-height:1.5}
.ao-choix{display:flex;flex-direction:column;gap:9px;margin:14px 0}
.ao-choix-b{text-align:left;background:#fff;border:1.5px solid #e2e8f0;
  border-radius:12px;padding:13px 16px;font-size:15px;color:#0f172a;
  line-height:1.45;transition:.15s;animation:pcMonte .4s cubic-bezier(.22,1,.36,1) both}
.ao-choix-b:hover{border-color:#be185d;background:#fdf2f8;transform:translateX(3px)}
.ao-retour{background:none;border:none;color:#64748b;font-size:14px;
  padding:8px 0;text-decoration:underline}
.ao-recap{display:flex;flex-direction:column;gap:8px;margin:14px 0;text-align:left}
.ao-recap-l{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:10px 13px}
.ao-recap-l span{display:block;color:#64748b;font-size:13.5px;margin-bottom:3px}
.ao-recap-l b{color:#9d174d;font-size:14.5px}
.ao-h4{margin:22px 0 10px;font-size:17px;color:#0f172a}
.ao-portrait-avatar{display:grid;place-items:center;margin:10px 0 4px}
.ao-traits{display:flex;flex-direction:column;gap:12px}
.ao-trait{background:#fff;border:1px solid #e2e8f0;border-left:4px solid #be185d;
  border-radius:12px;padding:13px 16px;
  animation:pcMonte .45s cubic-bezier(.22,1,.36,1) both}
.ao-trait-tete{display:flex;align-items:center;gap:9px;margin-bottom:4px}
.ao-trait-emo{font-size:20px}
.ao-trait-dit{margin:0 0 9px;color:#475569;line-height:1.5;font-size:14.5px}
.ao-jauge{height:8px;background:#f1f5f9;border-radius:99px;overflow:hidden}
.ao-jauge span{display:block;height:100%;border-radius:99px;
  background:linear-gradient(90deg,#be185d,#f472b6);
  animation:aoJauge .9s cubic-bezier(.22,1,.36,1) both}
@keyframes aoJauge{from{width:0 !important}}
.ao-trait-preuve{margin-top:7px;font-size:13px;color:#64748b}
.ao-suite{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;
  padding:12px 16px;margin:14px 0;font-size:14.5px;color:#334155}
.ao-suite p{margin:6px 0 0;color:#64748b;font-size:13.5px;line-height:1.5}
.ao-ouvre{display:flex;flex-direction:column;gap:10px}
.ao-ouvre-l{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px 16px}
.ao-ouvre-l ul{margin:6px 0 0;padding-left:20px;color:#475569;line-height:1.55}
.ao-avertit{background:#fffbeb;border:1.5px solid #fcd34d;border-radius:12px;
  padding:13px 16px;margin:16px 0}
.ao-avertit b{display:block;color:#78350f;margin-bottom:5px}
.ao-avertit p{margin:0;color:#57534e;line-height:1.55;font-size:14.5px}
.ao-restants{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0}
.ao-pastille{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:99px;
  padding:5px 12px;font-size:13.5px;color:#475569}
.ao-restants-box{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:12px;
  padding:12px 16px;margin:14px 0}
.ao-restants-box p{margin:4px 0 0;font-size:13.5px;color:#64748b}
.ao-pont{background:#eef2ff;border:1px solid #c7d2fe;border-radius:12px;
  padding:13px 16px;margin:16px 0}
.ao-pont b{display:block;color:#3730a3;margin-bottom:5px}
.ao-pont p{margin:0;color:#475569;line-height:1.55;font-size:14.5px}
/* L'atelier d'avatar : la scène reste visible pendant qu'on règle. */
.ao-atelier{display:grid;grid-template-columns:260px 1fr;gap:20px;margin:16px 0;
  align-items:start}
.ao-scene{position:sticky;top:12px;display:grid;place-items:center;gap:10px}
.ao-avatar-svg{border-radius:50%;box-shadow:0 8px 26px rgba(15,23,42,.16)}
.ao-reglages{display:flex;flex-direction:column;gap:13px}
.ao-rangee b{display:block;font-size:13.5px;color:#334155;margin-bottom:6px}
.ao-options{display:flex;flex-wrap:wrap;gap:6px}
.ao-opt{display:inline-flex;align-items:center;gap:6px;background:#fff;
  border:1.5px solid #e2e8f0;border-radius:10px;padding:6px 11px;
  font-size:13.5px;color:#334155;transition:.15s}
.ao-opt:hover{border-color:#be185d}
.ao-opt.on{border-color:#be185d;background:#fdf2f8;color:#9d174d;font-weight:700}
.ao-opt.sugg{box-shadow:0 0 0 2px #fde68a}
.ao-pastel{width:18px;height:18px;border-radius:50%;display:inline-block;
  border:1px solid rgba(15,23,42,.18)}
.ao-sugg-mot{font-size:13.5px;color:#78350f;background:#fffbeb;
  border-radius:10px;padding:9px 13px;margin:10px 0}
/* ---- Terminale ---- */
.aot-fiches{display:flex;flex-direction:column;gap:9px;margin:14px 0}
.aot-fiche{background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}
.aot-fiche.on{border-color:#ea580c;box-shadow:0 4px 16px rgba(234,88,12,.12)}
.aot-fiche-tete{display:flex;align-items:center;gap:12px;width:100%;
  background:none;border:none;padding:13px 16px;text-align:left}
.aot-fiche-emo{font-size:22px}
.aot-fiche-tete b{display:block;font-size:15.5px;color:#0f172a}
.aot-fiche-tete small{display:block;font-size:12.5px;color:#64748b}
.aot-fiche-duree{margin-left:auto;background:#fff7ed;border:1px solid #fed7aa;
  border-radius:99px;padding:4px 11px;font-size:12.5px;color:#9a3412;white-space:nowrap}
.aot-fiche-corps{padding:0 16px 14px}
.aot-fiche-corps dl{margin:0;display:grid;grid-template-columns:auto 1fr;
  gap:5px 14px;font-size:14.5px}
.aot-fiche-corps dt{color:#9a3412;font-weight:700;white-space:nowrap}
.aot-fiche-corps dd{margin:0;color:#475569;line-height:1.5}
.aot-piege{background:#fef2f2;border:1px solid #fecaca;border-radius:10px;
  padding:10px 14px;margin-top:11px}
.aot-piege b{display:block;color:#991b1b;font-size:13.5px;margin-bottom:3px}
.aot-piege p{margin:0;color:#7f1d1d;font-size:14px;line-height:1.5}
.aot-etapes{display:flex;flex-direction:column;gap:11px;margin:14px 0}
.aot-etape{background:#fff;border:1px solid #e2e8f0;border-left:4px solid #ea580c;
  border-radius:12px;padding:13px 16px;
  animation:pcMonte .45s cubic-bezier(.22,1,.36,1) both}
.aot-etape-tete{display:flex;align-items:center;gap:9px;margin-bottom:6px}
.aot-etape-emo{font-size:19px}
.aot-etape-quand{margin-left:auto;font-size:12.5px;color:#9a3412;
  background:#fff7ed;border-radius:99px;padding:3px 10px;white-space:nowrap}
.aot-etape p{margin:0 0 8px;color:#475569;line-height:1.55;font-size:14.5px}
.aot-etape-faire{background:#f0fdf4;border-radius:9px;padding:9px 13px;
  font-size:14px;color:#166534;line-height:1.5}
.aot-jauge-blocs{margin:12px 0}
.aot-jauge-blocs span{display:block;font-size:13.5px;color:#64748b;margin-bottom:5px}
.aot-blocs{display:flex;flex-direction:column;gap:13px;margin:14px 0}
.aot-bloc{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:13px 16px}
.aot-bloc-tete{display:flex;align-items:center;gap:9px;margin-bottom:5px}
.aot-bloc-n{width:24px;height:24px;border-radius:50%;background:#ea580c;color:#fff;
  display:grid;place-items:center;font-weight:800;font-size:12.5px}
.aot-bloc-consigne{margin:0 0 9px;color:#475569;font-size:14.5px;line-height:1.5}
.aot-bloc-txt{width:100%;border:1.5px solid #e2e8f0;border-radius:10px;
  padding:10px 13px;font:inherit;font-size:15px;line-height:1.5;resize:vertical}
.aot-bloc-txt:focus{outline:none;border-color:#ea580c}
.aot-voir{margin-top:8px;background:none;border:none;color:#ea580c;
  font-size:13.5px;text-decoration:underline;padding:0}
.aot-exemples{margin-top:10px;display:flex;flex-direction:column;gap:8px}
.aot-ex{border-radius:10px;padding:10px 13px;font-size:14px;line-height:1.5}
.aot-ex b{display:block;font-size:12.5px;margin-bottom:3px}
.aot-ex p{margin:0;font-style:italic}
.aot-ex.faible{background:#fef2f2;border:1px solid #fecaca;color:#7f1d1d}
.aot-ex.fort{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534}
.aot-aide{margin:2px 0 0;font-size:13.5px;color:#78350f}
.aot-final{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;
  padding:13px 16px;margin:16px 0}
.aot-final-txt{white-space:pre-wrap;font:inherit;font-size:14.5px;color:#0f172a;
  line-height:1.6;margin:8px 0 12px;background:#fff;border:1px dashed #cbd5e1;
  border-radius:10px;padding:12px 14px;max-height:280px;overflow:auto}
@media(max-width:760px){
  .ao-atelier{grid-template-columns:1fr}
  .ao-scene{position:static}
  .aot-fiche-corps dl{grid-template-columns:1fr;gap:2px}
  .aot-fiche-corps dt{margin-top:7px}
}
.ma-prereq-liste{display:flex;flex-direction:column;gap:11px;margin:16px 0 20px}
.ma-prereq-carte{display:grid;grid-template-columns:30px 1fr;gap:12px;
  background:#fff;border:1px solid #e2e8f0;border-left:4px solid #0369a1;
  border-radius:12px;padding:13px 15px;
  animation:pcMonte .45s cubic-bezier(.22,1,.36,1) both}
.ma-prereq-n{width:26px;height:26px;border-radius:50%;background:#0369a1;color:#fff;
  display:grid;place-items:center;font-weight:800;font-size:13px}
.ma-prereq-txt b{display:block;font-size:15.5px;margin-bottom:4px;color:#0f172a}
.ma-prereq-txt p{margin:0 0 8px;color:#475569;line-height:1.5;font-size:14.5px}
.ma-prereq-ex{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:8px;
  padding:7px 11px;font-family:ui-monospace,"Cascadia Code",Menlo,monospace;
  font-size:13.5px;color:#0f172a}
/* La réponse soumise au jugement : elle doit se voir d'un coup d'œil,
   c'est tout l'objet de l'exercice. */
.ma-jug-rep{display:flex;align-items:center;justify-content:space-between;gap:14px;
  background:#fffbeb;border:1.5px solid #fcd34d;border-radius:12px;
  padding:12px 16px;margin:14px 0}
.ma-jug-rep span{color:#78350f;font-size:14px}
.ma-jug-rep b{font-size:22px;color:#0f172a;letter-spacing:-.02em}
@media(max-width:600px){
  .ma-prereq-carte{grid-template-columns:24px 1fr;gap:9px;padding:11px 12px}
  .ma-jug-rep b{font-size:19px}
}
.pc-arevoir{background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;padding:12px 16px;
  margin:12px 0;text-align:left}
.pc-arevoir ul{margin:6px 0 0;padding-left:20px}
.pc-arevoir li{margin-bottom:3px}

/* --- la lecon --- */
.pc-lecon{background:#f8fafc;border-left:4px solid #0369a1;border-radius:0 12px 12px 0;
  padding:12px 16px;margin:0 0 16px}
.pc-lecon p{margin:0 0 8px;line-height:1.6}
.pc-lecon p:last-child{margin-bottom:0}
.pc-lecon-calc{font:700 18px/1.5 ui-monospace,Menlo,Consolas,monospace;color:#0369a1;
  background:#fff;border-radius:8px;padding:8px 12px;text-align:center}

/* --- l'encart « Voir le detail » (regle ①) --- */
.pc-detail-btn{background:#fff;border:1px dashed #94a3b8;border-radius:12px;padding:10px 16px;
  cursor:pointer;font-size:14.5px;color:#334155;margin:0 0 12px}
.pc-detail-btn.on{border-style:solid;border-color:#0369a1;color:#0369a1}
.pc-detail{background:#f0f9ff;border:1px solid #bae6fd;border-radius:14px;padding:14px 18px;margin:0 0 16px}
.pc-detail h5{margin:0 0 8px;font-size:15px}
.pc-detail>p{margin:0 0 12px;line-height:1.6;color:#334155}
.pc-detail-exo{background:#fff;border-radius:12px;padding:12px 14px}
.pc-detail-exo>p{margin:0 0 10px}
.pc-detail-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.pc-detail-saisie input{flex:1 1 140px;min-width:0;padding:9px 12px;border:2px solid #cbd5e1;
  border-radius:10px;font-size:16px}
.pc-detail-saisie input.juste{border-color:#16a34a;background:#f0fdf4}
.pc-detail-saisie input.faux{border-color:#dc2626;background:#fef2f2}
.pc-mini-cta{background:#0369a1;color:#fff;border:none;border-radius:10px;padding:9px 16px;cursor:pointer}
.pc-mini-cta:disabled{opacity:.45;cursor:default}
.pc-detail-corr{margin:12px 0 0;padding:10px 13px;border-radius:10px;line-height:1.55}
.pc-detail-corr.ok{background:#f0fdf4;border:1px solid #86efac}
.pc-detail-corr.ko{background:#fef2f2;border:1px solid #fecaca}
.pc-detail-corr p{margin:5px 0 0}
.pc-detail-antibi{font-size:12.5px;color:#64748b;margin:10px 0 0}

/* --- les trois paliers --- */
.pc-paliers-mot{color:#475569;line-height:1.55;margin:0 0 12px}
.pc-paliers{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:0 0 18px}
.pc-palier{display:flex;flex-direction:column;gap:3px;align-items:flex-start;text-align:left;
  background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:13px 16px;cursor:pointer;
  position:relative}
.pc-palier:hover{border-color:#0369a1;box-shadow:0 2px 12px rgba(3,105,161,.12)}
.pc-palier.valide{background:#f0fdf4;border-color:#86efac}
.pc-palier-etoiles{font-size:15px}
.pc-palier-nom{font-weight:700}
.pc-palier-sous{font-size:12.5px;color:#64748b;line-height:1.4}
.pc-palier-etat{font-size:12.5px;font-weight:700;color:#475569;margin-top:4px}

/* ============================================================
   LES ANIMATIONS
============================================================ */
.pc-anim{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:18px;margin:0 0 16px;
  text-align:center;overflow:hidden}
.pc-anim-legende{margin:14px 0 0;font-size:15px;color:#334155;line-height:1.6}
.pc-rejouer{margin:12px 0 0;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:999px;
  padding:6px 16px;font-size:13px;cursor:pointer;color:#475569}

/* 1. la grille de cent — « pourcent » = « sur cent », vu */
.pc-grille{display:grid;grid-template-columns:repeat(10,1fr);gap:3px;max-width:280px;margin:0 auto}
.pc-case{aspect-ratio:1;background:#e2e8f0;border-radius:2px}
.pc-case-on{background:#e2e8f0;animation:pc-allume .3s ease-out forwards}
@keyframes pc-allume{to{background:#0369a1;transform:scale(1.06)}}

/* 2. la barre et la portion qu'on en prend */
.pc-anim-part{display:flex;flex-direction:column;align-items:center;gap:6px}
.pc-barre{position:relative;height:44px;border-radius:10px;display:flex;align-items:center;
  justify-content:center;color:#fff;font-weight:700}
.pc-barre-tout{width:min(340px,90%);background:#94a3b8}
.pc-barre-prise{position:absolute;left:0;top:0;bottom:0;width:0;background:#0369a1;
  border-radius:10px 0 0 10px;animation:pc-prend 1.1s .4s ease-out forwards}
@keyframes pc-prend{to{width:20%}}
.pc-barre-lab{position:relative;z-index:1}
.pc-barre-res{width:min(68px,20%);background:#0369a1;font-size:13px;opacity:0;
  animation:pc-apparait .5s 1.5s ease-out forwards}
@keyframes pc-apparait{to{opacity:1}}
.pc-fleche-bas{font:700 15px/1 ui-monospace,Menlo,Consolas,monospace;color:#0369a1;opacity:0;
  animation:pc-apparait .4s 1.2s ease-out forwards}

/* 3. deux colonnes : la part face au tout */
.pc-anim-compare{display:flex;align-items:flex-end;justify-content:center;gap:26px;flex-wrap:wrap}
.pc-col-zone{display:flex;flex-direction:column;align-items:center;gap:6px}
.pc-col{width:62px;border-radius:10px 10px 0 0;display:flex;align-items:flex-start;
  justify-content:center;color:#fff;font-weight:700;font-size:14px;padding-top:6px;height:0;
  animation:pc-pousse .9s ease-out forwards}
.pc-col-tout{background:#94a3b8;--h:150px}
.pc-col-part{background:#0369a1;--h:38px;animation-delay:.5s}
@keyframes pc-pousse{to{height:var(--h)}}
.pc-col-lab{font-size:12.5px;color:#64748b}
.pc-compare-res{align-self:center;font-size:15px;line-height:1.7;color:#334155;opacity:0;
  animation:pc-apparait .5s 1.5s ease-out forwards}

/* 4. le tableau et sa diagonale */
.pc-anim-croix{display:flex;flex-direction:column;align-items:center;gap:10px;position:relative}
.pc-tab{border-collapse:collapse;font-size:15px}
.pc-tab td{border:1px solid #cbd5e1;padding:10px 18px}
.pc-td-a{background:#e0f2fe}
.pc-td-vide{background:#fef3c7;font-weight:800;font-size:18px}
.pc-croix-diag{font-size:26px;color:#0369a1;opacity:0;transform:scale(.4) rotate(-40deg);
  animation:pc-croix-in .6s .7s ease-out forwards}
@keyframes pc-croix-in{to{opacity:1;transform:scale(1) rotate(0)}}
.pc-croix-calc{font:600 17px/1.5 ui-monospace,Menlo,Consolas,monospace;color:#334155;opacity:0;
  animation:pc-apparait .5s 1.3s ease-out forwards}

/* 5. l'ecart qui se rapporte au DEPART — c'est toute la notion */
.pc-anim-evol{display:flex;align-items:flex-end;justify-content:center;gap:30px;flex-wrap:wrap}
.pc-ev-zone{display:flex;flex-direction:column;align-items:center;gap:6px}
.pc-ev-col{width:70px;border-radius:10px 10px 0 0;position:relative;display:flex;
  align-items:flex-end;justify-content:center;color:#fff;font-weight:700;font-size:13px;
  padding-bottom:8px;height:0;animation:pc-pousse .8s ease-out forwards}
.pc-ev-dep{background:#64748b;--h:110px}
.pc-ev-arr{background:#0369a1;--h:138px;animation-delay:.5s}
.pc-ev-ecart{position:absolute;top:-2px;left:0;right:0;height:28px;background:#f59e0b;
  border-radius:10px 10px 0 0;display:flex;align-items:center;justify-content:center;
  font-style:normal;font-size:12.5px;opacity:0;
  animation:pc-ecart-in .5s 1.4s ease-out forwards, pc-ecart-vers-gauche 1s 2.1s ease-in-out forwards}
@keyframes pc-ecart-in{to{opacity:1}}
/* Il glisse vers la colonne de gauche : on RAPPORTE l'ecart au depart. */
@keyframes pc-ecart-vers-gauche{to{transform:translateX(-100px)}}
.pc-ev-res{align-self:center;font-size:14.5px;line-height:1.7;color:#334155;opacity:0;
  animation:pc-apparait .5s 3s ease-out forwards}

/* 6. +20 % puis −20 % ne ramene PAS au depart */
.pc-anim-coef{position:relative;height:190px;display:flex;flex-direction:column;
  align-items:center;justify-content:flex-end;gap:8px}
.pc-coef-repere{position:absolute;left:0;right:0;bottom:118px;border-top:2px dashed #94a3b8;
  text-align:right;font-size:12px;color:#64748b;padding-right:6px}
.pc-coef-barre{width:92px;background:#0369a1;border-radius:10px 10px 0 0;height:100px;
  animation:pc-coef 5s ease-in-out infinite}
@keyframes pc-coef{
  0%,12%{height:100px;background:#0369a1}
  30%,46%{height:120px;background:#16a34a}
  64%,88%{height:96px;background:#dc2626}
  100%{height:100px;background:#0369a1}
}
.pc-coef-etapes{display:flex;gap:22px;font:700 15px/1 ui-monospace,Menlo,Consolas,monospace}
.pc-coef-e1{color:#16a34a;opacity:.25;animation:pc-coef-e1 5s ease-in-out infinite}
.pc-coef-e2{color:#dc2626;opacity:.25;animation:pc-coef-e2 5s ease-in-out infinite}
@keyframes pc-coef-e1{0%,18%{opacity:.25}30%,50%{opacity:1}62%,100%{opacity:.25}}
@keyframes pc-coef-e2{0%,52%{opacity:.25}64%,88%{opacity:1}100%{opacity:.25}}

/* Un eleve peut avoir demande l'arret des animations. On lui montre alors
   l'etat FINAL de chaque animation, pas un ecran vide. */
@media (prefers-reduced-motion: reduce){
  .pc-case-on{background:#0369a1}
  .pc-barre-prise{width:20%}
  .pc-col-tout{height:150px}
  .pc-col-part{height:38px}
  .pc-ev-dep{height:110px}
  .pc-ev-arr{height:138px}
  .pc-ev-ecart{opacity:1;transform:translateX(-100px)}
  .pc-coef-barre{height:96px;background:#dc2626}
  .pc-marche{opacity:1}
  .pc-anim *{animation:none !important;opacity:1 !important}
}

@media (max-width:520px){
  .pc-grille{max-width:220px}
  .pc-anim-compare,.pc-anim-evol{gap:16px}
  .pc-banniere{max-height:150px}
}


/* ---------- « Se souvenir de moi » ---------- */
.mm-souvenir{display:flex;align-items:center;gap:9px;margin:12px 0 4px;cursor:pointer;
  font-size:14.5px;color:#334155}
.mm-souvenir input{width:18px;height:18px;flex:0 0 auto;cursor:pointer;accent-color:#2451b3}
.mm-souvenir-note{font-size:12.5px;line-height:1.5}
.mm-souvenir-note a{color:#b91c1c}

/* ---------- Competences informatiques : les trois onglets ----------
   Tous les modificateurs portent le prefixe ip- (piege N) : un `.on` nu
   existe deja ailleurs, un `.card` aussi. */

.ip-chapo{color:#475569;line-height:1.6;margin:0 0 16px}
.ip-src{font-size:13px;color:#64748b;margin:0 0 18px}
.ip-note{margin:20px 0 0;padding:12px 16px;background:#fffbeb;border:1px solid #fde68a;
  border-radius:12px;line-height:1.6;color:#78350f}
.ip-vide{color:#64748b;font-style:italic;padding:20px 0}

/* --- les Notions --- */
.ip-onglets{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
.ip-onglet{background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:8px 15px;
  cursor:pointer;font-size:14px;color:#334155}
.ip-onglet:hover{border-color:#0f766e}
.ip-onglet.on{background:#0f766e;border-color:#0f766e;color:#fff;font-weight:600}
.ip-bloc{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:18px 20px}
.ip-banniere{width:100%;max-height:190px;object-fit:cover;border-radius:12px;margin:0 0 14px}
.ip-bloc h3{margin:0 0 6px;font-size:20px}
.ip-accroche{color:#475569;line-height:1.6;margin:0 0 18px;font-size:15.5px}
.ip-section{margin:0 0 16px}
.ip-section h4{margin:0 0 5px;font-size:15.5px;color:#0f172a}
.ip-section p{margin:0;line-height:1.65;color:#334155}
.ip-section code{background:#f1f5f9;border-radius:4px;padding:1px 5px;
  font:500 13.5px/1 ui-monospace,Menlo,Consolas,monospace;color:#0f766e}
.ip-retenir{margin:18px 0 0;padding:12px 16px;background:#f0fdfa;border-left:4px solid #0f766e;
  border-radius:0 12px 12px 0;line-height:1.65}
.ip-retenir code{background:#fff;border-radius:4px;padding:1px 5px;
  font:500 13.5px/1 ui-monospace,Menlo,Consolas,monospace;color:#0f766e}

/* --- le Programme --- */
.ip-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:11px;
  margin:0 0 24px}
.ip-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:13px 16px}
.ip-card-q{font-size:13px;color:#64748b;margin-bottom:3px}
.ip-card-r{font-weight:700;color:#0f766e;margin-bottom:6px}
.ip-card p{margin:0;font-size:14px;line-height:1.55;color:#334155}
.ip-dom{background:#fff;border:1px solid #e2e8f0;border-left:5px solid #94a3b8;
  border-radius:0 14px 14px 0;padding:14px 18px;margin:0 0 12px}
.ip-dom h4{margin:0 0 10px;font-size:17px}
.ip-tab{width:100%;border-collapse:collapse}
.ip-tab td{border-top:1px solid #f1f5f9;padding:8px 4px;vertical-align:top;line-height:1.5}
.ip-tab tr:first-child td{border-top:none}
.ip-tab-c{width:46px;font:700 13px/1.5 ui-monospace,Menlo,Consolas,monospace;color:#64748b}
.ip-tab-d{font-size:14px;color:#475569}

/* --- le Glossaire --- */
.ip-search{width:100%;padding:11px 15px;border:2px solid #cbd5e1;border-radius:12px;
  font-size:16px;margin:0 0 12px}
.ip-search:focus{outline:none;border-color:#0f766e}
.ip-filtres{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 16px}
.ip-filtre{background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:6px 13px;
  cursor:pointer;font-size:13px;color:#475569}
.ip-filtre:hover{border-color:#0f766e}
.ip-filtre.on{background:#0f766e;border-color:#0f766e;color:#fff}
.ip-mots{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px}
.ip-mot{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:11px 14px}
.ip-mot-tete{display:flex;align-items:baseline;justify-content:space-between;gap:8px;
  margin-bottom:4px}
.ip-mot-dom{font-size:11.5px;color:#64748b;background:#f1f5f9;border-radius:999px;
  padding:2px 8px;white-space:nowrap}
.ip-mot p{margin:0;font-size:14px;line-height:1.55;color:#334155}
.ip-retour{margin:20px auto 0;display:block}

@media (max-width:520px){
  .ip-banniere{max-height:130px}
  .ip-mots{grid-template-columns:1fr}
}

/* --- l'analogie, l'encart qui fait comprendre --- */
.ip-analogie{background:#fffbeb;border:1px solid #fde68a;border-radius:14px;
  padding:13px 17px;margin:0 0 20px}
.ip-analogie-t{font-weight:700;font-size:15.5px;color:#92400e;margin-bottom:6px}
.ip-analogie p{margin:0;line-height:1.7;color:#78350f}

/* --- ce qui surprend --- */
.ip-surprise{margin:18px 0 0;padding:12px 16px;background:#faf5ff;
  border-left:4px solid #7c3aed;border-radius:0 12px 12px 0;line-height:1.65;color:#4c1d95}
.ip-surprise code{background:#fff;border-radius:4px;padding:1px 5px;
  font:500 13.5px/1 ui-monospace,Menlo,Consolas,monospace;color:#7c3aed}

.ip-nav{margin:20px 0 0;text-align:center}
.ip-compte{font-size:12.5px;color:#64748b;margin:0 0 10px}

/* --- l'onglet Ressources, en attente assumée --- */
.ip-attente{background:#fff;border:1px dashed #cbd5e1;border-radius:16px;
  padding:32px 24px;text-align:center;max-width:620px;margin:0 auto}
.ip-attente-e{font-size:44px;line-height:1;margin-bottom:10px}
.ip-attente h3{margin:0 0 12px;font-size:19px}
.ip-attente p{margin:0 0 12px;line-height:1.65;color:#475569}
.ip-attente-b{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:18px}

/* ---------- Le schema de la position de repos ----------
   Prefixe kbs- partout (piege N) : `.kbs-t` ne peut pas heriter du `.kb-t`
   du clavier de l'exercice, qui a d'autres tailles. */

.kbs{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:14px 16px}
.kbs-titre{font-weight:700;font-size:14.5px;color:#0f172a;margin:0 0 12px}
/* Les deux mains cote a cote, le pouce EN DESSOUS — sa vraie place.
   Empile, l'ensemble demandait 500 px ; il n'en a que 373 a cote de
   « LA REGLE ». */
.kbs-rangee{display:flex;align-items:flex-start;justify-content:center;gap:26px;
  flex-wrap:wrap}
.kbs-main{display:flex;flex-direction:column;align-items:center;gap:5px}
.kbs-touches{display:flex;gap:3px}
.kbs-t{position:relative;width:40px;min-height:54px;display:flex;flex-direction:column;
  align-items:center;justify-content:flex-start;gap:2px;background:#fff;
  border:1px solid #cbd5e1;border-bottom-width:3px;border-radius:7px;padding:6px 2px 5px;
  animation:kbs-pose 3.2s ease-in-out infinite}
@keyframes kbs-pose{
  0%,72%{transform:translateY(0);box-shadow:none}
  80%{transform:translateY(2px);box-shadow:0 0 0 3px rgba(15,118,110,.18)}
  90%,100%{transform:translateY(0);box-shadow:none}
}
/* ⚠️ `display:inline` explicite. Le schema est pose DANS `.er-meta`,
   qui met tous ses <b> en bloc : sans cette surcharge, la note du bas
   s'affiche en escalier, un mot par ligne. */
.kbs .kbs-note b,.kbs .kbs-titre b{display:inline}
.kbs-t-l{font:700 15.5px/1 ui-monospace,Menlo,Consolas,monospace;color:#0f172a}
.kbs-t-d{font-size:9px;line-height:1.15;color:#64748b;text-align:center;
  white-space:nowrap}
/* La barre en relief du F et du J, celle que les index cherchent. */
.kbs-bosse{width:16px;height:3px;border-radius:2px;background:#0f766e;margin:1px 0 1px}
.kbs-d-G5,.kbs-d-D5{border-bottom-color:#db2777}
.kbs-d-G4,.kbs-d-D4{border-bottom-color:#d97706}
.kbs-d-G3,.kbs-d-D3{border-bottom-color:#16a34a}
.kbs-d-G2,.kbs-d-D2{border-bottom-color:#2563eb}
.kbs-lab{font-size:11.5px;color:#64748b}
.kbs-pouce{display:flex;flex-direction:column;align-items:center;gap:4px;
  flex:1 0 100%;margin-top:2px}
.kbs-barre{width:150px;height:20px;background:#fff;border:1px solid #cbd5e1;
  border-bottom:3px solid #7c3aed;border-radius:7px}
.kbs-note{margin:12px 0 0;font-size:12.5px;line-height:1.55;color:#475569}

/* Un eleve peut avoir demande l'arret des animations : le schema doit
   rester entierement lisible, seul le mouvement disparait. */
@media (prefers-reduced-motion: reduce){
  .kbs-t{animation:none}
}
@media (max-width:560px){
  .kbs-t{width:36px;min-height:50px}
  .kbs-t-l{font-size:14px}
  .kbs-t-d{font-size:8.5px}
}


/* « LA REGLE » et le schema, cote a cote — et l'un sous l'autre en mobile. */
.kb-regle{display:grid;grid-template-columns:minmax(210px,1fr) minmax(300px,1.35fr);
  gap:14px;align-items:start}
@media (max-width:720px){ .kb-regle{grid-template-columns:1fr} }


/* --- l'exigence du theme (Labo des pourcentages) --- */
.pc-exigence{background:#eef2ff;border:1px solid #c7d2fe;border-radius:999px;
  padding:7px 16px;margin:0 0 14px;display:inline-block;font-size:14px;color:#3730a3}
.pc-palier.conseille{border-color:#4f46e5;box-shadow:0 0 0 2px rgba(79,70,229,.14)}
.pc-palier-ici{position:absolute;top:-9px;right:12px;background:#4f46e5;color:#fff;
  font-size:10.5px;font-weight:700;border-radius:999px;padding:2px 9px}

/* ---------- Les challenges de frappe ----------
   Prefixe fr- partout (piege N). */

.fr-titre{margin:0 0 6px;font-size:22px}
.fr-chapo{color:#475569;line-height:1.6;margin:0 0 18px}
.fr-h4{margin:26px 0 10px;font-size:17px}

/* --- les deux cartes --- */
.fr-cartes{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;
  margin:0 0 8px}
.fr-carte{display:flex;flex-direction:column;gap:5px;align-items:center;text-align:center;
  background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:18px 16px;cursor:pointer}
.fr-carte:hover{border-color:#0f766e;box-shadow:0 4px 16px rgba(15,118,110,.14);
  transform:translateY(-2px)}
.fr-carte-e{font-size:34px;line-height:1}
.fr-carte-n{font-weight:800;font-size:16.5px}
.fr-carte-d{font-size:13px;color:#64748b;line-height:1.5}

/* --- l'epreuve --- */
.fr-ep{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:18px 20px}
.fr-ep h3{margin:0 0 8px;font-size:20px}
.fr-regle{color:#475569;line-height:1.6;margin:0 0 14px}
.fr-consigne{background:#f0fdfa;border-left:4px solid #0f766e;border-radius:0 12px 12px 0;
  padding:12px 16px;margin:0 0 18px}
.fr-consigne ul{margin:6px 0 0;padding-left:20px}
.fr-consigne li{margin-bottom:4px;line-height:1.55}

.fr-chrono{display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  margin:0 0 12px;flex-wrap:wrap}
.fr-chrono-v{font:800 30px/1 ui-monospace,Menlo,Consolas,monospace;color:#0f766e}
.fr-chrono-l{font-size:13px;color:#64748b}

/* Le texte modele. `pre-wrap` garde les espaces : c'est ce que l'eleve
   doit reproduire au signe pres. */
.fr-modele{background:#fffdf8;border:2px solid #e2e8f0;border-radius:14px;padding:14px 16px;
  font:400 17px/1.85 Georgia,serif;color:#334155;white-space:pre-wrap;margin:0 0 12px}
.fr-fait{background:#d1fae5;color:#065f46;border-radius:3px}

.fr-ecoute{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;
  padding:14px 16px;margin:0 0 12px;text-align:center}
.fr-ecoute p{margin:0 0 10px;color:#475569}

.fr-zone{width:100%;min-height:130px;padding:13px 15px;border:2px solid #cbd5e1;
  border-radius:14px;font:400 16px/1.7 ui-monospace,Menlo,Consolas,monospace;
  resize:vertical;margin:0 0 12px}
.fr-zone:focus{outline:none;border-color:#0f766e;box-shadow:0 0 0 3px rgba(15,118,110,.14)}

/* --- le resultat --- */
.fr-scores{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:14px 0}
.fr-score{display:flex;flex-direction:column;align-items:center;gap:2px;background:#f0fdfa;
  border-radius:14px;padding:14px 24px;min-width:110px}
.fr-score-v{font-size:28px;font-weight:800;color:#0f766e}
.fr-score-l{font-size:12px;color:#475569}
.fr-mot{text-align:center;font-size:15.5px;line-height:1.6;margin:6px 0 12px}
.fr-note{font-size:13px;color:#64748b;line-height:1.55;text-align:center;margin:8px 0}
.fr-place{text-align:center;font-size:16px;margin:10px 0;color:#b45309}
.fr-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:14px}

/* --- le classement --- */
.fr-bascule{display:flex;gap:8px;margin:0 0 14px;flex-wrap:wrap}
.fr-bascule-b{background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:8px 16px;
  cursor:pointer;font-size:14px;color:#334155}
.fr-bascule-b.on{background:#0f766e;border-color:#0f766e;color:#fff;font-weight:600}
.fr-clst-n{font-size:13px;color:#64748b;margin:0 0 10px}
.fr-top{list-style:none;padding:0;margin:0 0 14px;display:flex;flex-direction:column;gap:5px}
.fr-l{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e2e8f0;
  border-radius:12px;padding:9px 14px}
.fr-l.podium{background:#fffbeb;border-color:#fde68a}
.fr-l-r{flex:0 0 34px;text-align:center;font-weight:800;color:#64748b}
.fr-l-p{flex:1;font:600 15px/1 ui-monospace,Menlo,Consolas,monospace;color:#0f172a;
  letter-spacing:.02em}
.fr-l-v{flex:0 0 auto;font-weight:700;color:#0f766e}
.fr-moi{background:#eef2ff;border:1px solid #c7d2fe;border-radius:12px;padding:11px 15px;
  line-height:1.55;color:#3730a3}
.fr-moi-vide{background:#f8fafc;border-color:#e2e8f0;color:#64748b}
.fr-vide{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:14px;padding:22px;
  text-align:center;color:#475569}
.fr-vide p{margin:0 0 6px;line-height:1.6}
/* La ligne RGPD n'est pas une mention legale de bas de page : elle
   repond a la question que l'eleve se pose en voyant un classement. */
.fr-rgpd{margin:14px 0 0;font-size:12.5px;line-height:1.55;color:#64748b}
.fr-retour{margin:20px auto 0;display:block}

@media (max-width:520px){
  .fr-modele{font-size:15.5px;line-height:1.75}
  .fr-score{padding:12px 16px;min-width:92px}
  .fr-score-v{font-size:23px}
}

/* ---------- La recherche d'exercices ----------
   Prefixe rx- partout (piege N). */

.rx{position:relative;max-width:640px;margin:0 auto 18px}
.rx-barre{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e2e8f0;
  border-radius:999px;padding:8px 16px;box-shadow:0 4px 14px -8px rgba(80,40,120,.25)}
.rx-barre:focus-within{border-color:#7c5cff;box-shadow:0 0 0 3px rgba(124,92,255,.14)}
.rx-loupe{flex:0 0 auto;font-size:15px;opacity:.7}
.rx-input{flex:1;min-width:0;border:none;outline:none;background:transparent;
  font-size:15px;padding:3px 0;color:#1e1b34}
.rx-input::placeholder{color:#9aa0b4}
/* Chrome pose sa propre croix sur les champs `search` : on la retire, on a
   la notre — deux croix cote a cote sont incomprehensibles. */
.rx-input::-webkit-search-cancel-button{display:none}
.rx-vider{flex:0 0 auto;background:#f1f5f9;border:none;border-radius:999px;width:24px;
  height:24px;line-height:24px;text-align:center;cursor:pointer;color:#64748b;font-size:12px}
.rx-vider:hover{background:#e2e8f0}

/* Les resultats flottent AU-DESSUS de la grille des matieres : poses dans
   le flux, ils la pousseraient vers le bas a chaque lettre tapee. */
.rx-res,.rx-vide,.rx-aide{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:40;
  background:#fff;border:1px solid #e2e8f0;border-radius:16px;
  box-shadow:0 18px 40px -18px rgba(30,20,60,.4);overflow:hidden}
.rx-vide,.rx-aide{padding:14px 18px;color:#64748b;font-size:14px;line-height:1.55}
.rx-res{max-height:min(420px,60vh);overflow-y:auto}
.rx-l{display:flex;align-items:center;gap:11px;width:100%;text-align:left;background:#fff;
  border:none;border-bottom:1px solid #f1f5f9;padding:11px 16px;cursor:pointer}
.rx-l:last-child{border-bottom:none}
.rx-l:hover{background:#f8f7ff}
.rx-l-i{flex:0 0 26px;font-size:19px;text-align:center}
.rx-l-t{flex:1;display:flex;flex-direction:column;gap:1px;min-width:0}
.rx-l-t b{font-size:14.5px;color:#1e1b34;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
.rx-l-t small{font-size:12px;color:#7a7590}
.rx-l-c{flex:0 0 auto;font:700 11.5px/1 ui-monospace,Menlo,Consolas,monospace;
  background:#f1f5f9;color:#475569;border-radius:999px;padding:5px 9px;letter-spacing:.03em}

@media (max-width:560px){
  .rx{margin-bottom:14px}
  .rx-input{font-size:16px}   /* sous 16 px, iOS zoome sur le champ */
  .rx-l-c{display:none}
}

/* ---------- Les cinq domaines du CRCN ----------
   Prefixe px- partout (piege N). */

.px-intro{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:18px 20px}
.px-banniere{width:100%;max-height:200px;object-fit:cover;border-radius:12px;margin:0 0 14px}
.px-intro h3{margin:0 0 8px;font-size:20px}
.px-chapo{color:#475569;line-height:1.6;margin:0 0 16px}
.px-regles{background:#f0f9ff;border-left:4px solid #0284c7;border-radius:0 12px 12px 0;
  padding:12px 16px;margin:0 0 18px}
.px-regles ul{margin:6px 0 0;padding-left:20px}
.px-regles li{margin-bottom:4px;line-height:1.55}

.px-tete{display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  margin:0 0 12px;flex-wrap:wrap}
.px-num{font-size:13px;font-weight:700;color:#64748b}
.px-ctx{font-size:13px;color:#94a3b8}

/* --- le tableur --- */
/* Il DOIT pouvoir defiler horizontalement : sur un telephone, six colonnes
   ne tiennent pas, et une grille qui deborde pousse toute la page. */
.px-grille-wrap{overflow-x:auto;margin:0 0 14px;border-radius:12px;border:1px solid #cbd5e1}
.px-grille{border-collapse:collapse;width:100%;min-width:520px;background:#fff;
  font:400 14px/1.4 ui-monospace,Menlo,Consolas,monospace}
.px-grille th{background:#f1f5f9;color:#475569;font-weight:700;font-size:12.5px;
  border:1px solid #cbd5e1;padding:5px 8px;text-align:center}
.px-grille .px-lig{width:34px}
.px-grille .px-coin{width:34px;background:#e2e8f0}
.px-c{border:1px solid #e2e8f0;padding:6px 9px;min-width:72px;color:#334155}
.px-c-n{text-align:right;font-variant-numeric:tabular-nums}
.px-c-cible{background:#fef3c7;border:2px solid #f59e0b;text-align:center;
  font-weight:800;color:#92400e}

.px-q{margin:0 0 10px;font-size:15.5px;line-height:1.55}
.px-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 10px}
.px-ref{flex:0 0 auto;background:#f1f5f9;border-radius:8px;padding:8px 11px;
  font:700 14px/1 ui-monospace,Menlo,Consolas,monospace;color:#475569}
.px-saisie input{flex:1 1 200px;min-width:0;padding:10px 13px;border:2px solid #cbd5e1;
  border-radius:10px;font:400 16px/1 ui-monospace,Menlo,Consolas,monospace}
.px-saisie input:focus{outline:none;border-color:#0284c7}
.px-saisie input.juste{border-color:#16a34a;background:#f0fdf4}
.px-saisie input.faux{border-color:#dc2626;background:#fef2f2}
.px-aide{font-size:13px;color:#64748b;margin:0 0 10px}

.px-corr{padding:13px 16px;border-radius:12px;line-height:1.6;margin:12px 0 0}
.px-corr.ok{background:#f0fdf4;border:1px solid #86efac}
.px-corr.ko{background:#fff7ed;border:1px solid #fed7aa}
.px-corr p{margin:7px 0 0}
.px-sol code{background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:2px 7px;
  font:600 14px/1 ui-monospace,Menlo,Consolas,monospace;color:#0f766e}
.px-corr .fj-cta{margin-top:12px}

/* --- le tri en colonnes --- */
.px-carte{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:15px 18px;
  margin:0 0 14px;box-shadow:0 4px 14px -10px rgba(30,20,60,.3)}
.px-carte-de{font:600 12.5px/1.4 ui-monospace,Menlo,Consolas,monospace;color:#64748b;
  word-break:break-all;margin-bottom:4px}
.px-carte-obj{font-weight:800;font-size:15.5px;margin-bottom:7px;color:#0f172a}
.px-carte-txt{line-height:1.6;color:#334155}
.px-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}
.px-col{display:flex;flex-direction:column;gap:3px;align-items:flex-start;text-align:left;
  background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px 15px;cursor:pointer}
.px-col:hover:not(:disabled){border-color:#0284c7;box-shadow:0 2px 10px rgba(2,132,199,.12)}
.px-col span{font-size:12.5px;color:#64748b;line-height:1.4}
.px-col.ok{border-color:#16a34a;background:#f0fdf4}
.px-col.ko{border-color:#dc2626;background:#fef2f2}
.px-mot{text-align:center;font-size:15px;line-height:1.6;color:#475569;
  background:#f8fafc;border-radius:12px;padding:12px 16px;margin:10px 0}

@media (max-width:520px){
  .px-banniere{max-height:140px}
  .px-saisie input{font-size:16px}   /* sous 16 px, iOS zoome */
}

/* ---------- La fiche prof d'un jeu complexe ----------
   Prefixe bgd- partout (piege N). */

.bgd{max-width:940px;margin:0 auto}
.bgd-tete{display:flex;align-items:center;justify-content:space-between;gap:14px;
  flex-wrap:wrap;margin:0 0 6px}
.bgd-tete h3{margin:0;font-size:21px}
.bgd-actions{display:flex;gap:8px;flex-wrap:wrap}
.bgd-imprimer,.bgd-fermer{background:#fff;border:1px solid #e2e8f0;border-radius:999px;
  padding:8px 15px;cursor:pointer;font-size:14px;color:#334155}
.bgd-imprimer:hover,.bgd-fermer:hover{border-color:#7c5cff}
.bgd-chapo{color:#475569;line-height:1.6;margin:0 0 20px}

.bgd-s{background:#fff;border:1px solid #e2e8f0;border-radius:16px;
  padding:16px 20px;margin:0 0 14px}
.bgd-s h4{margin:0 0 12px;font-size:17px;color:#0f172a}

/* Un bloc que la fiche n'a pas rempli. Il DOIT se voir : une fiche a
   moitie ecrite qu'on decouvre en classe est pire qu'une fiche absente. */
.bgd-manque{background:#fff7ed;border:1px dashed #fdba74;border-radius:10px;
  padding:10px 14px;margin:0;color:#9a3412;font-size:14px}

/* --- en un coup d'oeil --- */
.bgd-apercu{width:100%;border-collapse:collapse}
.bgd-apercu th{text-align:left;padding:7px 12px 7px 0;color:#64748b;font-weight:600;
  font-size:14px;white-space:nowrap;vertical-align:top;width:1%}
.bgd-apercu td{padding:7px 0;line-height:1.5}
.bgd-apercu tr+tr th,.bgd-apercu tr+tr td{border-top:1px solid #f1f5f9}

.bgd-liste{margin:0;padding-left:20px}
.bgd-liste li{margin-bottom:7px;line-height:1.6}

/* --- avant la seance : des cases a cocher --- */
.bgd-avant{list-style:none;margin:0;padding:0}
.bgd-avant li{border-bottom:1px solid #f1f5f9}
.bgd-avant li:last-child{border-bottom:none}
.bgd-avant label{display:flex;align-items:flex-start;gap:10px;padding:9px 0;cursor:pointer}
.bgd-avant input{width:18px;height:18px;flex:0 0 auto;margin-top:2px;accent-color:#16a34a}
.bgd-avant span{flex:1;line-height:1.55}
.bgd-avant em{flex:0 0 auto;font-style:normal;font-size:12.5px;color:#94a3b8;
  white-space:nowrap;padding-top:2px}
.bgd-avant input:checked+span{color:#94a3b8;text-decoration:line-through}

/* --- le deroule : le bloc qu'on relit debout, en surveillant la classe --- */
.bgd-deroule{width:100%;border-collapse:collapse;font-size:14.5px}
.bgd-deroule th{background:#f8fafc;text-align:left;padding:8px 10px;font-size:12.5px;
  color:#64748b;text-transform:uppercase;letter-spacing:.04em}
.bgd-deroule td{border-top:1px solid #f1f5f9;padding:9px 10px;line-height:1.5;
  vertical-align:top}
.bgd-t{white-space:nowrap;font:700 13px/1.5 ui-monospace,Menlo,Consolas,monospace;
  color:#7c5cff}
/* Les lignes qui portent un geste a ne pas rater. */
.bgd-cle td{background:#faf9ff}
.bgd-cle .bgd-t{color:#5b21b6}

/* --- ce qu'on dit --- */
.bgd-dire{display:flex;flex-direction:column;gap:10px}
.bgd-dire-c{background:#f0fdfa;border-left:4px solid #0f766e;border-radius:0 12px 12px 0;
  padding:11px 15px}
.bgd-dire-q{font-size:12.5px;font-weight:700;color:#0f766e;text-transform:uppercase;
  letter-spacing:.04em;margin-bottom:4px}
.bgd-dire-c p{margin:0;line-height:1.65;font-style:italic;color:#134e4a}

/* --- la ou ca coince --- */
.bgd-coince{display:flex;flex-direction:column;gap:7px}
.bgd-c{background:#fffbeb;border:1px solid #fde68a;border-radius:12px;padding:10px 15px}
.bgd-c summary{cursor:pointer;font-weight:600;color:#92400e;line-height:1.5}
.bgd-c p{margin:9px 0 0;line-height:1.6;color:#78350f}

/* --- si ca deborde --- */
.bgd-deborde p{margin:0 0 9px;line-height:1.6}
.bgd-jamais{background:#fef2f2;border-left:4px solid #dc2626;border-radius:0 10px 10px 0;
  padding:10px 14px;color:#7f1d1d}

.bgd-teste{margin:16px 0 0;font-size:12.5px;line-height:1.55;color:#64748b}

/* --- pas encore de fiche --- */
.bgd-vide{background:#fff;border:1px dashed #cbd5e1;border-radius:16px;padding:32px 24px;
  text-align:center;max-width:600px;margin:0 auto}
.bgd-vide-e{font-size:42px;line-height:1;margin-bottom:10px}
.bgd-vide h3{margin:0 0 10px;font-size:18px}
.bgd-vide p{margin:0 0 16px;line-height:1.65;color:#475569}

/* ⚠️ La fiche s'imprime : le professeur la pose a cote du clavier plutot
   que de lire son ecran de pilotage ET sa fiche sur le meme telephone.
   On ne laisse partir QUE la fiche. */
@media print{
  body:has(.bgd) *{visibility:hidden}
  .bgd,.bgd *{visibility:visible}
  .bgd{position:absolute;left:0;top:0;width:100%;max-width:none;padding:0}
  .bgd-actions,.bgd-avant input{display:none}
  .bgd-s{border:none;border-top:1.5pt solid #333;border-radius:0;padding:10pt 0;
    margin:0;break-inside:avoid}
  .bgd-deroule{font-size:10pt}
  .bgd-dire-c,.bgd-c,.bgd-jamais{background:none;border-left:2pt solid #333}
  .bgd-c summary{list-style:none}
  /* Les replis doivent s'ouvrir sur le papier : un accordeon imprime
     fermé est un bloc perdu. */
  .bgd-c{display:block}
  .bgd-c p{display:block !important}
}

@media (max-width:640px){
  .bgd-deroule{font-size:13.5px}
  .bgd-deroule td,.bgd-deroule th{padding:7px 6px}
}


/* Le bouton d'acces a la fiche prof, en tete de l'ecran d'un jeu. */
.bg-fiche{display:block;width:100%;background:#faf9ff;border:1px solid #e9d5ff;
  border-radius:14px;padding:12px 18px;margin:0 0 16px;cursor:pointer;
  font-size:15px;color:#5b21b6;text-align:left;font-weight:600}
.bg-fiche:hover{border-color:#7c5cff;box-shadow:0 2px 12px rgba(124,92,255,.14)}

/* GAME SHELL */
.game{background:#fff;border-radius:22px;padding:24px;box-shadow:0 22px 50px -22px rgba(80,40,120,.3)}
.ghead{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.back{background:#f0eafa;padding:9px 15px;border-radius:10px;font-weight:700;color:#6b6485}
.gh-t{font-family:'Fraunces',serif;font-weight:800;font-size:19px;display:flex;flex-direction:column}
.gh-s{font-family:'Outfit';font-size:12px;font-weight:700;color:#9a94aa;letter-spacing:.5px;text-transform:uppercase}
.help{color:#5a5470;margin-bottom:14px}.muted{color:#9a94aa;font-weight:500}
.qn{margin-left:auto;font-weight:800;color:#9a94aa}.qn.r{text-align:right;margin-bottom:8px}

/* TRIEUR */
.tray{display:flex;flex-wrap:wrap;gap:9px;min-height:48px;margin-bottom:18px;padding:12px;background:#faf8fe;border-radius:14px;border:1.5px dashed #e0d8ef}
.tkn{padding:10px 14px;border-radius:11px;background:#fff;border:2px solid #eee4f5;font-weight:600;font-size:13.5px;transition:.15s}
.tkn.sel{border-color:var(--blue);background:#eef4ff;transform:scale(1.04);box-shadow:0 6px 16px -6px rgba(37,99,235,.5)}
.bacs{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.bac{background:#faf8fe;border:2px solid #eee4f5;border-radius:16px;padding:12px;min-height:120px;cursor:pointer;transition:.15s}
.bac:hover{border-color:var(--c3);background:#f0fbff}
.bac-d{display:block;font-weight:400;font-size:10.5px;opacity:.78;margin-top:3px;line-height:1.25}
.hint.resume{background:#eef6ff;border:1px solid #cfe2fb;border-radius:10px;padding:8px 10px;color:#1f4e79;line-height:1.4}
.unlockbar{display:flex;justify-content:flex-end;margin:0 0 10px}
.unlock-btn{background:#fff;border:1.5px dashed #b9a8e8;color:#5b2bd6;font-weight:700;border-radius:10px;padding:8px 12px;cursor:pointer;font-size:13px}
.unlock-btn:hover{background:#f6f1ff}
.unlocked-tag{font-weight:700;color:#16a34a;font-size:13px}
.modal-bg{position:fixed;inset:0;background:rgba(20,12,40,.45);display:flex;align-items:center;justify-content:center;z-index:50;padding:18px}
.modal{background:#fff;border-radius:18px;padding:20px;max-width:420px;width:100%;box-shadow:0 12px 40px rgba(0,0,0,.25)}
/* La fenêtre de démo des outils (10/11/2026) */
.apps-demo-fond{z-index:1000}
.apps-demo{background:#fff;border-radius:16px;width:min(1180px,96vw);height:min(800px,90vh);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.apps-demo-tete{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid #eee;color:#1a1430}
.apps-demo-x{border:0;background:#f1eef9;border-radius:10px;width:36px;height:36px;font-size:18px;cursor:pointer;color:#1a1430}
.apps-demo-x:hover{background:#e4defa}
.apps-demo-cadre{flex:1;width:100%;border:0;display:block;background:#fff}
.modal h3{margin:0 0 6px;font-family:'Fraunces',serif}
.modal .mtxt{font-size:13.5px;opacity:.85;line-height:1.45;margin:0 0 12px}
.modal input{width:100%;box-sizing:border-box;padding:11px;border:1.5px solid #ddd;border-radius:10px;font-size:15px}
.modal-act{display:flex;gap:10px;justify-content:flex-end;margin-top:14px}
.pwmgr{background:#fff;border-radius:14px;padding:18px;max-width:640px}
.pwmgr h3{font-family:'Fraunces',serif;margin:0 0 8px}
.pwnote{font-size:13px;opacity:.85;line-height:1.5;background:#fff8e8;border:1px solid #f0e2bd;border-radius:10px;padding:10px 12px;margin:0 0 14px}
.pwtable{width:100%;border-collapse:collapse}
.pwtable th,.pwtable td{text-align:left;padding:8px 10px;border-bottom:1px solid #eee;font-size:14px}
.pwshort{opacity:.55;font-size:12px}
.pwtable input{width:100%;box-sizing:border-box;padding:8px;border:1.5px solid #ddd;border-radius:8px;font-size:14px;font-family:monospace}
.pwact{display:flex;gap:10px;align-items:center;margin-top:14px}
.pwok{color:#16a34a;font-weight:700;font-size:13px}
/* --- Mes évaluations, côté élève --- */
.evmenu{max-width:1080px;margin:0 auto 14px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:12px 14px;box-shadow:0 1px 3px rgba(0,0,0,.05)}
.evmenu-h{font-weight:800;font-size:15px;margin-bottom:8px;color:#0e7490}
.evmenu-l{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;padding:10px 12px;margin-bottom:6px;cursor:pointer;font:inherit}
.evmenu-l:hover{border-color:#0e7490;background:#f0fdfa}
.evmenu-ico{font-size:22px;flex:0 0 auto}
.evmenu-info{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.evmenu-t{font-weight:700;font-size:14px}
/* EVAL-CORRECTION-ZERO */.evmenu-avenir{display:block;font-size:10.5px;font-weight:600;opacity:.85;white-space:nowrap}
.evmenu-repr{display:inline-block;margin-left:8px;font-size:11px;font-weight:700;color:#92400e;background:#fef3c7;border-radius:99px;padding:2px 9px;vertical-align:middle}
.evmenu-m{font-size:12px;opacity:.7}
.evmenu-note{flex:0 0 auto;font-weight:800;font-size:16px;padding:4px 10px;border-radius:8px;background:#f1f5f9}
.evmenu-note-ok{background:#dcfce7;color:#166534}
.evmenu-note-moy{background:#fef3c7;color:#92400e}
.evmenu-note-bof{background:#fee2e2;color:#991b1b}
.evmenu-l.afaire{background:#eff6ff;border-color:#bfdbfe;cursor:default}
.evmenu-l.afaire:hover{border-color:#bfdbfe;background:#eff6ff}
.evmenu-l.afaire.retard{background:#fff7ed;border-color:#fed7aa}
.evmenu-go{flex:0 0 auto;background:#0e7490;color:#fff;border-radius:8px;padding:7px 13px;font-weight:700;font-size:13px;text-decoration:none;white-space:nowrap}
.evmenu-go:hover{background:#0b5f75}
/* Les distributions déjà faites, rappelées dans « Donner à une classe » */
.ev-deja{background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;padding:10px 12px;margin-bottom:14px}
.ev-deja-h{font-weight:700;font-size:13px;margin-bottom:6px}
.ev-deja-l{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:6px 0;border-top:1px solid #eef2f7;font-size:12.5px}
.ev-deja-l:first-of-type{border-top:0}
.ev-deja-cl{font-weight:700}
.ev-deja-lien{font-family:monospace;font-size:11.5px;background:#fff;border:1px solid #e5e7eb;border-radius:6px;padding:3px 7px}
/* --- La copie relue --- */
.evm-copie-tete{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:10px 14px;margin-bottom:14px}
.evm-copie-tete>div{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
.evm-copie-tete b{font-size:15px}
.evm-copie-tete span{font-size:12px;opacity:.7}
.evm-copie-x{background:#f1f5f9;border:1px solid #e5e7eb;border-radius:8px;padding:6px 12px;cursor:pointer;font:inherit;font-size:13px}
.evm-copie-x:hover{border-color:#0e7490}
.evm-copie-note{flex:0 0 auto;font-weight:800;font-size:20px;color:#0e7490}
.evm-relecture{background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;padding:9px 13px;margin-bottom:12px;font-size:13px;line-height:1.5}
.evm-sc.muet{opacity:.65;font-weight:500}
/* --- Les évaluations distribuées, côté prof --- */
.eva{background:#fff;border-radius:14px;padding:4px 0 18px}
.eva h3{font-family:'Fraunces',serif;margin:0 0 6px}
.eva-l{border:1px solid #e5e7eb;border-radius:12px;margin-bottom:10px;overflow:hidden;background:#fff}
.eva-ouvre{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:#f8fafc;border:0;border-bottom:1px solid #e5e7eb;padding:11px 14px;cursor:pointer;font:inherit}
.eva-ouvre:hover{background:#f0fdfa}
.eva-ico{font-size:22px;flex:0 0 auto}
.eva-info{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.eva-t{font-weight:700;font-size:14px}
.eva-m{font-size:12px;opacity:.72}
.eva-fleche{flex:0 0 auto;opacity:.45;font-size:18px}
.eva-corr{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 14px;font-size:13px}
.eva-corr-etat{font-weight:700;padding:3px 9px;border-radius:7px;background:#f1f5f9}
.eva-corr-etat.on{background:#dcfce7;color:#166534}
.eva-prog{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.eva-prog input{padding:5px 8px;border:1.5px solid #ddd;border-radius:8px;font:inherit;font-size:13px}
.eva-tete-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.eva-filtres{display:flex;gap:6px}
.eva-ouvre.statique{cursor:default}
.eva-ouvre.statique:hover{background:#f8fafc}
.eva-etat{flex:0 0 auto;font-size:12px;font-weight:700;padding:3px 9px;border-radius:7px;background:#f1f5f9}
.eva-etat.encours{background:#dcfce7;color:#166534}
.eva-etat.avenir{background:#e0e7ff;color:#3730a3}
.eva-etat.close{background:#f1f5f9;color:#475569}
.eva-etat.annulee{background:#fee2e2;color:#991b1b}
.eva-lien{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 14px;border-bottom:1px solid #f1f5f9}
.eva-lien code{flex:1 1 240px;font-size:12px;background:#f8fafc;border:1px solid #e5e7eb;border-radius:6px;padding:5px 9px;overflow-wrap:anywhere}
.eva-qr{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 14px;border-bottom:1px solid #f1f5f9;background:#fafafa}
.eva-qr span{font-size:12.5px;opacity:.75;max-width:320px}
.rf.danger{color:#991b1b;border-color:#fecaca}
.rf.danger:hover{background:#fef2f2}
.ev-recherche{display:flex;gap:8px;align-items:center;margin:0 0 14px}
.ev-recherche input{flex:1 1 auto;padding:9px 13px;border:1.5px solid #e5e7eb;border-radius:10px;font:inherit;font-size:14px}
.ev-recherche input:focus{outline:none;border-color:#0e7490}
/* --- La voix anglaise --- */
.tts-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  width:30px;height:30px;margin:0 0 0 6px;padding:0;vertical-align:middle;
  background:#eef2ff;border:1px solid #c7d2fe;border-radius:8px;cursor:pointer;
  font-size:15px;line-height:1;transition:background .12s,border-color .12s}
.tts-btn:hover{background:#e0e7ff;border-color:#818cf8}
.tts-btn.tts-on{background:#4f46e5;border-color:#4f46e5;color:#fff}
.tts-btn.tts-petit{width:26px;height:26px;font-size:13px;margin-left:5px}
/* Dans une replique ou une option, le bouton suit la phrase sans la casser. */
.dlg-rep .afr, .fj-opt .afr{display:inline}
/* Le bouton d'un exemple de leçon suit la phrase sans la faire sauter. */
.tts-html{vertical-align:baseline;margin-left:4px}
.dict-word + .tts-btn{margin-left:6px}
/* --- Le Dojo des calculs --- */
.dj-barre{display:flex;gap:6px;justify-content:center;margin:0 0 16px}
.dj-plot{width:34px;height:6px;border-radius:3px;background:#e5e7eb}
.dj-plot.ici{background:#4f46e5}
.dj-plot.ok{background:#16a34a}
.dj-plot.ko{background:#f87171}
.dj-exo{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:20px;max-width:760px;margin:0 auto;
  animation:dj-entre .34s ease both}
.dj-exo-tete{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.dj-num{font-size:12.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;opacity:.6}
.dj-aide-btn{background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:6px 12px;font:inherit;font-size:13px;cursor:pointer}
.dj-aide-btn:hover{background:#fef3c7}
.dj-aide-btn.on{background:#fde68a}
.dj-formule{background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:11px 14px;margin-bottom:12px;font-size:14.5px;line-height:1.6}
.dj-contexte{display:flex;gap:10px;align-items:flex-start;background:#f8fafc;border-radius:12px;padding:13px 15px;line-height:1.65;font-size:15px}
.dj-emoji{font-size:26px;flex:0 0 auto;line-height:1.2}
.dj-donnees{width:100%;border-collapse:collapse;margin:12px 0}
.dj-donnees td{padding:7px 10px;border-bottom:1px solid #f1f5f9;font-size:14.5px}
.dj-donnees td:last-child{text-align:right;white-space:nowrap}
.dj-question{margin:14px 0 10px;font-size:16px;font-weight:700;line-height:1.5}
.dj-saisie{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dj-saisie input{flex:1 1 150px;min-width:0;max-width:260px;padding:12px 14px;border:2px solid #e5e7eb;border-radius:10px;font:inherit;font-size:19px;font-weight:700}.dj-signe{flex:0 0 auto;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:70px;height:50px;padding:0 10px;border:2px solid #4338ca;border-radius:10px;background:#4f46e5;font:inherit;font-size:21px;line-height:1;font-weight:800;color:#fff;cursor:pointer;box-shadow:0 2px 8px rgba(79,70,229,.30)}.dj-signe i{font-style:normal;font-size:10px;line-height:1;font-weight:700;letter-spacing:.05em;text-transform:uppercase;opacity:.95}.dj-signe:hover:not(:disabled){background:#4338ca;border-color:#3730a3}.dj-signe:active:not(:disabled){transform:translateY(1px)}.dj-signe:disabled{opacity:.45;cursor:default;box-shadow:none}
/* L'encart de remontee du travail reste sur l'appareil (DjRemontee). */
.djr-carte{margin:14px 0;padding:15px 17px;border:2px solid #f59e0b;border-radius:14px;background:#fffbeb;color:#7c2d12}
.djr-carte b{display:block;font-size:16px;margin-bottom:6px;color:#92400e}
.djr-carte p{margin:0 0 10px;font-size:14.5px;line-height:1.55}
.djr-liste{margin:0 0 12px;padding-left:20px;font-size:14px;line-height:1.7}
.djr-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:10px}
.djr-actions button{flex:1 1 auto;padding:11px 16px;border-radius:10px;font:inherit;font-size:14.5px;font-weight:700;cursor:pointer;border:2px solid transparent}
.djr-oui{background:#16a34a;border-color:#15803d;color:#fff}
.djr-oui:disabled{opacity:.6;cursor:default}
.djr-non{background:#fff;border-color:#d6d3d1;color:#57534e}
.djr-note{margin:0;font-size:12.5px;line-height:1.5;opacity:.85}
.djr-ok{border-color:#86efac;background:#f0fdf4;color:#14532d}
.djr-ok b{color:#15803d}.dj-signe-wrap{display:flex;align-items:center;gap:8px}
.dj-saisie input:focus{outline:none;border-color:#4f46e5}
.dj-saisie input.juste{border-color:#16a34a;background:#f0fdf4}
.dj-saisie input.faux{border-color:#dc2626;background:#fef2f2}
.dj-unite{font-weight:700;font-size:17px;opacity:.75}
.dj-cta{background:#4f46e5;color:#fff;border:0;border-radius:10px;padding:12px 22px;font:inherit;font-weight:700;font-size:15px;cursor:pointer}
.dj-cta:hover{background:#4338ca}
.dj-cta:disabled{opacity:.4;cursor:not-allowed}
.dj-cta.alt{background:#f1f5f9;color:#334155}
.dj-cta.alt:hover{background:#e2e8f0}
.dj-corr{margin-top:16px;border-radius:12px;padding:15px}
.dj-corr.ok{background:#f0fdf4;border:1px solid #86efac}
.dj-corr.ko{background:#fffbeb;border:1px solid #fde68a}
.dj-pose{margin:10px 0;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:14.5px;line-height:1.9}
.dj-ligne{padding:2px 0}
.dj-attendu{margin:8px 0;font-size:15px;animation:dj-pop .4s ease both}
.dj-piege{margin:8px 0 12px;font-size:13.5px;background:#fff;border-radius:8px;padding:9px 12px;line-height:1.6;
  animation:dj-monte .3s ease both;animation-delay:.8s}
.dj-bilan-score{font-family:'Fraunces',serif;font-size:52px;font-weight:800;text-align:center;margin:8px 0;
  animation:dj-pop .5s ease both}
.dj-bilan-mot{text-align:center;font-size:16px;font-weight:600;margin:0 0 10px}
.dj-bilan-serie{text-align:center;font-size:14px;opacity:.8}
.dj-bilan-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:16px}
/* La scene d'une serie de prononciation. Meme format que les bannieres
   de theme : 16/7, coins arrondis, jamais plus haute qu'un tiers d'ecran. */
.stt-scene{display:block;width:100%;max-height:250px;object-fit:cover;
  border-radius:14px;margin:0 0 14px;background:#f1f5f9}
@media(max-width:640px){ .stt-scene{max-height:170px} }

/* --- Le Dojo, en mouvement ---
   Demande de Djamil : le Dojo ne bougeait pas. Tout est en CSS, donc
   insensible au bridage des timers quand l'onglet passe en arriere-plan. */
@keyframes dj-entre     { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:none} }
@keyframes dj-monte     { from{opacity:0;transform:translateY(8px)}  to{opacity:1;transform:none} }
@keyframes dj-pop       { 0%{transform:scale(.7);opacity:0} 60%{transform:scale(1.12)} 100%{transform:scale(1);opacity:1} }
@keyframes dj-pulse     { 0%,100%{transform:scale(1)} 50%{transform:scale(1.22)} }
@keyframes dj-remplit   { from{width:0} }
@keyframes dj-secoue    { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-7px)} 40%{transform:translateX(7px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)} }

/* Chaque exercice entre par le bas : on SENT qu'on a tourné la page. */

/* La correction se dévoile ligne à ligne, dans l'ordre où on la lit —
   et non d'un bloc, qui donne envie de sauter à la fin. */
.dj-pose .dj-ligne{animation:dj-monte .3s ease both}
.dj-pose .dj-ligne:nth-child(1){animation-delay:.05s}
.dj-pose .dj-ligne:nth-child(2){animation-delay:.20s}
.dj-pose .dj-ligne:nth-child(3){animation-delay:.35s}
.dj-pose .dj-ligne:nth-child(4){animation-delay:.50s}
.dj-pose .dj-ligne:nth-child(5){animation-delay:.65s}

/* Le plot qui vient d'être marqué éclot ; celui où l'on se trouve respire. */
.dj-plot.ok,.dj-plot.ko{animation:dj-pop .35s ease both}
.dj-plot.ici{animation:dj-pulse 1.6s ease-in-out infinite}

/* Une réponse fausse secoue le champ : le corps comprend avant la tête. */
.dj-saisie input.faux{animation:dj-secoue .4s ease}

/* Les jauges se remplissent depuis zéro à l'affichage. */
.dj-jauge-barre span{animation:dj-remplit .9s cubic-bezier(.2,.8,.2,1) both}
.dj-feu-barre span{animation:dj-remplit .5s ease both}

/* Les cartes de notion arrivent en cascade. */
.dj-notion{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:16px;
  animation:dj-monte .35s ease both}
.dj-notion:nth-child(1){animation-delay:.02s}  .dj-notion:nth-child(2){animation-delay:.06s}
.dj-notion:nth-child(3){animation-delay:.10s}  .dj-notion:nth-child(4){animation-delay:.14s}
.dj-notion:nth-child(5){animation-delay:.18s}  .dj-notion:nth-child(6){animation-delay:.22s}
.dj-notion:nth-child(7){animation-delay:.26s}  .dj-notion:nth-child(8){animation-delay:.30s}
.dj-notion:nth-child(9){animation-delay:.34s}  .dj-notion:nth-child(10){animation-delay:.38s}

/* La série en cours, visible pendant qu'on joue : c'est ELLE qui valide
   le palier, elle doit donc être sous les yeux, pas seulement au bilan. */
.dj-feu{display:flex;align-items:center;gap:10px;justify-content:center;
  margin:0 auto 12px;max-width:420px;font-size:13px;font-weight:700}
.dj-feu-barre{flex:1;height:7px;background:#e5e7eb;border-radius:4px;overflow:hidden}
.dj-feu-barre span{display:block;height:100%;border-radius:4px;
  background:linear-gradient(90deg,#f59e0b,#16a34a)}
.dj-feu-txt{white-space:nowrap;color:#4f46e5}
.dj-feu-flamme{font-size:17px;display:inline-block}
.dj-feu-flamme.dj-feu-vif{animation:dj-pulse .7s ease-in-out 2}

/* Un élève peut avoir demandé moins de mouvement à son système. */
@media (prefers-reduced-motion: reduce){
  .dj-exo,.dj-pose .dj-ligne,.dj-attendu,.dj-piege,.dj-plot.ok,.dj-plot.ko,.dj-plot.ici,
  .dj-saisie input.faux,.dj-jauge-barre span,.dj-feu-barre span,.dj-notion,
  .dj-feu-flamme.dj-feu-vif,.dj-bilan-score{animation:none}
}

/* --- Le hub du Dojo --- */
.dj-hub-tete{max-width:760px;margin:0 auto 20px;text-align:center}
.dj-hub-tete h2{font-family:'Fraunces',serif;margin:0 0 8px}
.dj-hub-tete p{line-height:1.65;opacity:.85;margin:0 0 14px}
.dj-jauge{display:flex;align-items:center;gap:12px;justify-content:center;flex-wrap:wrap}
.dj-jauge-barre{flex:0 1 320px;height:10px;background:#e5e7eb;border-radius:5px;overflow:hidden}
.dj-jauge-barre span{display:block;height:100%;background:linear-gradient(90deg,#4f46e5,#16a34a);border-radius:5px;transition:width .3s}
.dj-jauge-txt{font-weight:700;font-size:14px}
.dj-notions{display:grid;gap:14px;max-width:900px;margin:0 auto}
.dj-notion-img{width:100%;aspect-ratio:16/7;object-fit:cover;border-radius:12px;margin-bottom:12px;display:block}
.dj-exo-img{width:100%;aspect-ratio:16/6;object-fit:cover;border-radius:12px;margin-bottom:14px;display:block}
.dj-notion-tete{display:flex;gap:12px;align-items:flex-start;margin-bottom:12px}
.dj-notion-emoji{font-size:30px;flex:0 0 auto;line-height:1.1}
.dj-notion-tete b{display:block;font-size:17px;margin-bottom:2px}
.dj-notion-tete span{font-size:13.5px;opacity:.78;line-height:1.5}
.dj-paliers{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:9px}
.dj-palier{text-align:left;background:#f8fafc;border:1.5px solid #e5e7eb;border-radius:11px;padding:11px 13px;cursor:pointer;font:inherit;display:flex;flex-direction:column;gap:3px}
.dj-palier:hover{border-color:#4f46e5;background:#eef2ff}
.dj-palier.valide{background:#f0fdf4;border-color:#86efac}
.dj-palier b{font-size:13.5px}
.dj-palier span{font-size:12px;opacity:.72;line-height:1.45}
.dj-palier i{font-size:11.5px;font-style:normal;font-weight:700;color:#4f46e5}
@media(max-width:640px){
  .dj-paliers{grid-template-columns:1fr}
}
@media(max-width:640px){
  .dj-exo{padding:15px}
  /* Le bouton du signe reste COLLE au champ, meme sur telephone : pousse
     a la ligne, il se lit comme une action a part et personne ne fait le
     lien avec la reponse a taper. */
  .dj-saisie input{flex:1 1 140px;max-width:none}
  .dj-cta{width:100%}
}
/* Le bouton d'un paragraphe se pose en fin de ligne, sans casser la lecture. */
.er-doc-corps p .tts-btn{vertical-align:baseline}
.er-vocab-l .tts-btn{margin-left:4px}
/* --- Écoute et répète --- */
.stt{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:18px;margin-top:12px}
.stt-phrase{display:flex;align-items:center;gap:4px;flex-wrap:wrap;font-size:19px;font-weight:700;line-height:1.45}
.stt-trad{display:block;margin-top:6px;font-size:14px}
.stt-indice{margin:8px 0 0;font-size:13px;opacity:.8;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:7px 11px}
.stt-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}
.stt-mic{background:#4f46e5;color:#fff;border:0;border-radius:10px;padding:11px 20px;font:inherit;font-weight:700;font-size:15px;cursor:pointer}
.stt-mic:hover{background:#4338ca}
.stt-mic.on{background:#dc2626;animation:sttPulse 1.1s ease-in-out infinite}
@keyframes sttPulse{0%,100%{opacity:1}50%{opacity:.65}}
.stt-suite{background:#0e7490;color:#fff;border:0;border-radius:10px;padding:11px 18px;font:inherit;font-weight:700;cursor:pointer}
.stt-attente{font-weight:600;opacity:.8}
.stt-aide{margin:10px 0 0;font-size:13px;color:#b91c1c;font-weight:600}
.stt-err{margin-top:10px;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:9px 12px;font-size:13.5px}
.stt-res{margin-top:14px;border-radius:12px;padding:14px}
.stt-res.top{background:#dcfce7;border:1px solid #86efac}
.stt-res.bon{background:#ecfdf5;border:1px solid #a7f3d0}
.stt-res.moyen{background:#fef3c7;border:1px solid #fde68a}
.stt-res.bas{background:#fef2f2;border:1px solid #fecaca}
.stt-score{font-size:30px;font-weight:800;font-family:'Fraunces',serif}
.stt-score.grand{font-size:46px;text-align:center;margin:10px 0}
.stt-verdict{margin:2px 0 8px;font-weight:600}
.stt-entendu{margin:0 0 10px;font-size:13.5px;font-style:italic;opacity:.85}
.stt-mots{display:flex;flex-wrap:wrap;gap:6px}
.stt-mot{padding:3px 9px;border-radius:7px;font-size:14px;font-weight:600;background:#fff;border:1px solid #e5e7eb}
.stt-mot.ok{background:#16a34a;border-color:#16a34a;color:#fff}
.stt-mot.proche{background:#fde68a;border-color:#f59e0b;color:#78350f}
.stt-mot.rate{background:#fecaca;border-color:#f87171;color:#7f1d1d}
.stt-mot.manque{background:#f1f5f9;border-color:#e2e8f0;color:#94a3b8;text-decoration:line-through}
.stt-rgpd{margin:12px 0 0;font-size:12px;opacity:.7;line-height:1.5}
.stt-indispo{background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:12px 14px;font-size:14px;line-height:1.6}
.stt-recap{margin:14px 0}
.stt-recap-l{display:flex;align-items:center;gap:8px;padding:7px 0;border-top:1px solid #f1f5f9;font-size:14px}
.stt-recap-l span{flex:1 1 auto}
.stt-recap-l b.ok{color:#16a34a}
.stt-recap-l b.moy{color:#d97706}
.stt-recap-l b.bof{color:#dc2626}
@media(max-width:640px){
  .stt-phrase{font-size:17px}
  .stt-mic{width:100%;justify-content:center}
}
.dlg-rep .tts-btn, .fj-opt .tts-btn{background:rgba(255,255,255,.75)}
/* --- Anglais + traduction à la demande --- */
.afr{display:inline}
.afr-en{}
.afr-fr-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  height:22px;padding:0 7px;margin-left:5px;vertical-align:middle;
  background:#f1f5f9;border:1px solid #e2e8f0;border-radius:6px;cursor:pointer;
  font:inherit;font-size:11px;font-weight:800;letter-spacing:.4px;color:#64748b;line-height:1}
.afr-fr-btn:hover{background:#e2e8f0;color:#334155}
.afr-fr-btn.on{background:#334155;border-color:#334155;color:#fff}
.afr-fr{display:block;margin-top:4px;font-size:.92em;font-style:italic;opacity:.8}
@media(max-width:640px){
  .tts-btn{width:34px;height:34px}
  .tts-btn.tts-petit{width:30px;height:30px}
}
.ev-corrchoix{display:flex;gap:8px;flex-wrap:wrap}
.ev-corrbtn{flex:1 1 190px;text-align:left;background:#f8fafc;border:1.5px solid #e5e7eb;border-radius:10px;padding:9px 12px;cursor:pointer;font:inherit;display:flex;flex-direction:column;gap:3px}
.ev-corrbtn:hover{border-color:#0e7490}
.ev-corrbtn.on{border-color:#0e7490;background:#f0fdfa}
.ev-corrbtn b{font-size:13px}
.ev-corrbtn span{font-size:11.5px;opacity:.72;line-height:1.4}
@media(max-width:640px){
  .eva-corr{gap:6px}
  .eva-t{font-size:13px}
}
@media(max-width:640px){
  .evmenu-note{font-size:14px}
  .evm-copie-tete{gap:8px}
}
.escodes{background:#fff;border-radius:14px;padding:18px;max-width:900px}
.escodes h3{font-family:'Fraunces',serif;margin:0 0 8px}
.escodes-jeu{margin-top:20px;padding-top:16px;border-top:1px solid #eee}
.escodes-tete{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.escodes-tete b{font-size:16px}
.escodes-bloc{margin:14px 0}
.escodes-bloc-tete{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px;background:#fff8e8;border:1px solid #f0e2bd;border-radius:8px;padding:8px 12px}
.escodes-bloc-tete span{font-size:14px;font-weight:600}
.escodes-code{font-family:monospace;font-size:15px;font-weight:700;background:#fff;border:1.5px solid #ddd;border-radius:8px;padding:4px 10px;cursor:pointer;letter-spacing:1px}
.escodes-code:hover{border-color:#b45309}
.escodes-code.on{background:#dcfce7;border-color:#16a34a;color:#166534}
.bac-h{font-weight:800;font-size:13.5px;text-align:center;padding:8px;border-radius:10px;background:#fff;margin-bottom:8px;color:var(--ink)}
.bac-body{display:flex;flex-direction:column;gap:6px}
.chip2{font-size:12.5px;font-weight:600;padding:7px 10px;border-radius:9px}
.chip2.ok{background:#e7f7ec;color:var(--green)}.chip2.no{background:#fee2e2;color:#dc2626}

/* MEMORY */
.mem-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}
.mcard{aspect-ratio:2.3/1;border-radius:10px;position:relative;background:linear-gradient(135deg,#48dbfb,#1dd1a1);color:#fff;font-weight:700;font-size:clamp(10px,1.1vw,14px);transition:.2s;perspective:600px}
.mcard .mc-front{font-size:clamp(18px,2vw,26px);display:flex;align-items:center;justify-content:center;height:100%}
.mcard .mc-back{display:none;padding:clamp(3px,.5vw,8px);line-height:1.2}
.mcard.up{background:#fff;border:2px solid var(--c3);color:var(--ink)}
.mcard.up .mc-front{display:none}.mcard.up .mc-back{display:flex;align-items:center;justify-content:center;height:100%}
.mcard.done{background:#e7f7ec;border-color:#bce8c9;color:var(--green)}
@media(max-width:560px){.mem-grid{grid-template-columns:repeat(3,1fr);gap:6px}.mcard{aspect-ratio:2/1}}
abbr.acr{text-decoration:underline dotted;text-underline-offset:2px;cursor:help;font-weight:600;border:none}
.mvar{margin:10px 0 4px;background:#f6f8fb;border:1px solid #e3e9f2;border-radius:10px;padding:8px 10px}
.mvar .mvh{font-weight:700;font-size:.82rem;color:#475569;margin-bottom:4px}
.mvar ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 14px}
.mvar li{font-size:.84rem;display:flex;align-items:center;gap:5px}
.mvar .mvname{color:#334155}
.mvar .mvpct{font-weight:700}
.mbilan{text-align:left;margin:10px 0;display:grid;gap:6px}
.mbilan .mbi{font-size:.86rem;display:flex;gap:7px;align-items:flex-start;line-height:1.3}

/* FLASH */
.flash-bar{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.combo{font-weight:800;color:#ef4444;font-size:14px}
.timer{flex:1;height:10px;background:#eee4f5;border-radius:8px;overflow:hidden}
.tfill{height:100%;transition:width 1s linear}
.flash-q{font-size:19px;font-weight:700;margin-bottom:16px;text-align:center;font-family:'Fraunces',serif}

/* OPTS générique */
.opts{display:flex;flex-direction:column;gap:11px}
.opt{padding:15px 17px;border-radius:14px;background:#f7f5fb;text-align:left;font-weight:600;font-size:15px;border:2px solid transparent;transition:.15s}
.opt:hover{background:#efeaf8}.opt.big{font-size:15.5px;padding:18px}
.opt.right{background:#e7f7ec;border-color:var(--green);color:var(--green)}
.opt.bad{background:#fee2e2;border-color:#dc2626;color:#dc2626}

/* VRAI FAUX */
.vf-card{font-family:'Fraunces',serif;font-size:21px;text-align:center;padding:28px 18px;background:linear-gradient(120deg,#f0f7ff,#f7f0ff);border-radius:18px;margin-bottom:16px;line-height:1.4}
.vf-btns{display:flex;gap:14px}
.vf{flex:1;padding:20px;border-radius:16px;font-size:18px;font-weight:800;color:#fff;transition:.15s}
.vf.v{background:#16a34a}.vf.f{background:#dc2626}
.vf:disabled{opacity:.85}.vf.right{outline:4px solid #16a34a55}.vf.bad{outline:4px solid #dc262655;opacity:.6}

/* INTRUS */
.intrus-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.iel{padding:22px 16px;border-radius:14px;background:#f7f5fb;font-weight:700;font-size:16px;transition:.15s}
.iel:hover{background:#efeaf8}
.iel.right{background:#e7f7ec;border:2px solid var(--green);color:var(--green)}
.iel.bad{background:#fee2e2;border:2px solid #dc2626;color:#dc2626}

/* CAS */
.case{background:linear-gradient(120deg,#f0f7ff,#f7f0ff);border-radius:16px;padding:18px;margin-bottom:16px}
.ctag{display:inline-block;background:var(--blue);color:#fff;font-size:11px;font-weight:700;padding:4px 12px;border-radius:20px;letter-spacing:.4px}
.ctxt{font-size:16px;line-height:1.55;margin:11px 0}.cq{font-weight:700;font-size:16px}

/* FEEDBACK */
.fb{margin-top:16px;padding:17px;border-radius:16px}
.fb.good{background:#e7f7ec}.fb.no{background:#fff3f0}
.fb p{margin:7px 0 13px;line-height:1.55}
.next{padding:11px 19px;border-radius:12px;background:var(--ink);color:#fff;font-weight:800}

/* RESULT */
.res{text-align:center;padding:14px}
.medal{font-size:58px}.res h2{font-family:'Fraunces',serif;font-size:38px}
.rpct{font-size:28px;font-weight:800}.res p{color:#6b6485;margin:10px 0 4px}

/* MISSION */
.mission-top{background:#faf8fe;border-radius:16px;padding:14px;margin-bottom:14px}
.mtitle{font-family:'Fraunces',serif;font-weight:800;font-size:17px;margin-bottom:10px}
.mgauges{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.mg{font-size:11px;font-weight:700;color:#6b6485;text-align:center}
.mbar{height:8px;background:#eee4f5;border-radius:6px;overflow:hidden;margin-top:4px}.mfill{height:100%;transition:width .5s}
.vplaceholder{background:#f4f0ff;border:2px dashed #c9b8f5;border-radius:14px;padding:22px;text-align:center;color:#5b2bd6;margin:12px 0;font-size:15px;line-height:1.5}
.vplaceholder span{font-size:12.5px;opacity:.8;font-weight:400}
.vembed{position:relative;padding-bottom:56.25%;height:0;margin:12px 0;border-radius:12px;overflow:hidden;background:#000}
.vembed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.page-doc audio,.intro-doc audio{width:100%;margin:10px 0}
.intro-doc{max-width:720px;margin:0 auto;background:#fff;border-radius:16px;padding:22px;line-height:1.55;box-shadow:0 4px 16px rgba(124,58,237,.08);border:1px solid #efe9fb}
.intro-doc h2{font-family:'Fraunces',serif;margin-top:.3em}
.slideshow{max-width:700px;margin:0 auto}
.sscap{text-align:center;font-weight:700;color:#6b6485;margin:2px 0 12px;font-size:13px;letter-spacing:.04em}
.slide{background:#fff;border-radius:18px;padding:22px 22px 18px;min-height:250px;box-shadow:0 4px 16px rgba(124,58,237,.08);border:1px solid #efe9fb}
.slide .semoji{font-size:34px;line-height:1}
.slide h2{font-family:'Fraunces',serif;margin:.25em 0 .35em;font-size:21px}
.slide .lead{font-size:14.5px;opacity:.9;line-height:1.5;margin:0 0 6px}
.slide ul{margin:10px 0 0;padding-left:20px}
.slide li{margin:8px 0;line-height:1.5;font-size:14px}
.slide li b{color:#5b2bd6}
.slide .note{margin:14px 0 0;font-style:italic;opacity:.85;border-left:3px solid #c9b8f5;padding-left:10px}
.slide-nav{display:flex;justify-content:space-between;align-items:center;margin-top:16px;gap:10px}
.dots{display:flex;gap:7px;justify-content:center;flex:1}
.dot{width:10px;height:10px;border-radius:50%;background:#ddd5f0;border:none;cursor:pointer;padding:0}
.dot.on{background:#7c3aed;transform:scale(1.15)}
.mgpct{display:block;margin-top:3px;font-size:12px;font-weight:800;line-height:1}
.mgemo{font-size:15px;line-height:1}
.mgname{display:block;font-size:9.5px;font-weight:700;color:#6b6485;line-height:1.15;margin-top:2px}
.mintro{background:#fff6e8;border-radius:12px;padding:12px 14px;font-size:14px;line-height:1.5;margin-bottom:12px}
.scene{background:linear-gradient(120deg,#fdf0f7,#f7f0ff);border-radius:16px;padding:18px;margin-bottom:14px}
.stag{display:inline-block;background:#db2777;color:#fff;font-size:11px;font-weight:700;padding:4px 12px;border-radius:20px}
.scene p{font-size:16px;line-height:1.5;margin-top:10px}
.gauges{display:flex;flex-direction:column;gap:10px;max-width:340px;margin:14px auto}
.gauge{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700}
.gauge span{width:120px;text-align:left;color:#6b6485}
.gbar{flex:1;height:12px;background:#eee4f5;border-radius:8px;overflow:hidden}.gfill{height:100%}

/* CONTENT */
.content{background:#fff;border-radius:22px;padding:26px;box-shadow:0 18px 44px -22px rgba(80,40,120,.25)}
.ptitle{font-family:'Fraunces',serif;font-size:28px;margin-bottom:14px}
.theme-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.tt{padding:9px 16px;border-radius:11px;background:#f5f1fb;font-weight:700;color:#6b6485;font-size:14px;border:2px solid transparent}
.tt.on{background:#fff;border-color:var(--c);color:var(--c)}
.intro{color:#5a5470;line-height:1.6;margin-bottom:20px;font-size:15px}
.sp{background:linear-gradient(120deg,var(--c1),var(--c2));-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:800}
.ngrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}
.ncard{background:#faf8fe;border-radius:18px;padding:18px;border:1px solid #f0eafa}
.ncard h3{font-family:'Fraunces',serif;font-size:18px;margin-bottom:9px}
.alab{font-size:11.5px;font-weight:700;color:#8b5cf6;letter-spacing:.4px}
.atxt{font-size:14px;line-height:1.55;color:#3a3450;margin:5px 0 12px}

/* MAGIC */
.magic{margin-top:4px}
.mbtn{width:100%;padding:11px 13px;border-radius:12px;background:linear-gradient(120deg,#48dbfb,#1dd1a1);color:#063;font-weight:800;font-size:13px;box-shadow:0 8px 18px -8px rgba(29,209,161,.6);transition:.2s}
.mbtn:hover{transform:translateY(-1px)}.mbtn.on{background:linear-gradient(120deg,#1dd1a1,#10ac84);color:#fff}
.spk{display:inline-block;margin-right:6px;animation:tw 1.6s infinite}
@keyframes tw{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.25)}}
.mbox{margin-top:11px;background:linear-gradient(120deg,#effcf9,#f0fbff);border:1.5px dashed #7fe3cf;border-radius:14px;padding:15px;animation:pop .3s}
@keyframes pop{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.mlab{font-weight:800;color:#10ac84;font-size:14px;margin-bottom:5px}
.mbox p{font-size:14.5px;line-height:1.6;color:#1a4a40}
.mex{margin-top:9px;font-size:13px;color:#2a6a5a;background:#fff;padding:9px 11px;border-radius:10px;font-weight:600}

/* PROGRAMME */
.pbox{background:#faf8fe;border-radius:18px;padding:22px;border:1px solid #f0eafa}
.pref{display:inline-block;background:var(--ink);color:#fff;font-size:12px;font-weight:700;padding:5px 14px;border-radius:20px}
.pbox h3{font-family:'Fraunces',serif;font-size:22px;margin:12px 0 4px}
.pbox h4{font-size:14px;margin:18px 0 8px;color:#8b5cf6;text-transform:uppercase;letter-spacing:.5px}
.plist{list-style:none;display:flex;flex-direction:column;gap:7px}
.plist li{padding:10px 15px;background:#fff;border-radius:10px;font-size:14px;border-left:4px solid var(--c2)}
.plist.q li{border-left-color:var(--c3);font-style:italic}.plist.cap li{border-left-color:var(--c4)}

/* LEXIQUE */
.search{width:100%;padding:13px 17px;border:2px solid #ece6f7;border-radius:14px;font-size:15px;margin-bottom:18px;background:#faf8fe}
.search:focus{outline:none;border-color:var(--c3);background:#fff}
.lex{display:flex;flex-direction:column;gap:12px}
.litem{background:#faf8fe;border-radius:16px;padding:16px 18px;border:1px solid #f0eafa}
.lterm{font-family:'Fraunces',serif;font-size:18px;font-weight:700;margin-bottom:5px}
.ldef{font-size:14px;line-height:1.55;color:#3a3450;margin-bottom:11px}

/* PROF */
.ptool{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:18px}
/* La barre d'onglets doit tenir quelle que soit la largeur. En flex simple,
   les derniers onglets sortaient du cadre et devenaient inatteignables :
   Visibilité et Établissements disparaissaient sur un écran étroit.

   Au-dessus de 640 px on passe à la ligne — tout reste visible d'un coup
   d'œil, sans geste à deviner. En dessous, douze onglets empilés mangeraient
   l'écran : on défile alors horizontalement, avec un dégradé en bord droit
   qui signale qu'il y a une suite. */
.seg{display:flex;flex-wrap:wrap;gap:4px;background:#f0eafa;border-radius:12px;padding:5px}
.seg button{padding:9px 15px;border-radius:9px;background:transparent;font-weight:700;color:#6b6485;font-size:14px;flex:0 0 auto}
@media(max-width:640px){
  .seg{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;-webkit-overflow-scrolling:touch;
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 26px),transparent);
    mask-image:linear-gradient(90deg,#000 calc(100% - 26px),transparent)}
  .seg button{white-space:nowrap;padding:9px 12px;font-size:13px}
}
.seg button.on{background:#fff;color:var(--ink);box-shadow:0 3px 8px rgba(0,0,0,.08)}
.ptool select{padding:10px 13px;border:2px solid #ece6f7;border-radius:11px;font-weight:600;background:#fff;font-size:14px}
.rf{margin-left:auto;background:var(--ink);color:#fff;padding:10px 17px;border-radius:11px;font-weight:700;font-size:14px}
.rf.alt{margin-left:8px;background:#16a34a}
.rf.danger{margin-left:8px;background:#dc2626}
.rf.pw{margin-left:8px;background:#8b5cf6}.rf.on{background:#d97706!important;border-color:#d97706}/* piege N : .rf.on est en descendance de .rf, jamais nu */
.rf.nb-l{margin-left:0}
.rf:disabled{opacity:.45;cursor:not-allowed}
.pwbox{background:#fff;border:1.5px solid #e9d5ff;border-radius:16px;padding:16px 18px;margin-bottom:16px;box-shadow:0 10px 28px -16px rgba(139,92,246,.35)}
.pwt{font-weight:800;margin-bottom:4px}
.pwh{font-size:13px;color:#8a84a0;margin-bottom:10px}
.pwrow{display:flex;gap:10px;flex-wrap:wrap}
.pwrow input{flex:1;min-width:160px;padding:11px 13px;border:2px solid #ece6f7;border-radius:11px;font-size:14px;background:#faf8fe}
.pwrow input:focus{outline:none;border-color:#8b5cf6;background:#fff}
.pwrow .rf{margin-left:0}
.pwmsg{margin-top:9px;font-weight:700;font-size:14px;color:#16a34a}
.selbar{display:flex;align-items:center;gap:14px;margin-bottom:12px;font-weight:700;color:#6b6485;font-size:14px}
.selrow td{background:#fff1f2!important}
.pt input[type="checkbox"]{width:17px;height:17px;cursor:pointer;accent-color:#dc2626}
.dt{font-size:12.5px;color:#8a84a0;white-space:nowrap}
.more{margin:10px auto 4px;display:block;padding:13px 22px;border-radius:13px;background:#2563eb;color:#fff;font-weight:800;font-size:14.5px;box-shadow:0 10px 22px -10px rgba(37,99,235,.6);transition:.2s}
.more:hover{transform:translateY(-2px)}
.qmedia{margin:10px 0;text-align:center}
.qmedia img,.qmedia video{max-width:100%;max-height:280px;border-radius:12px;box-shadow:0 8px 20px -10px rgba(0,0,0,.25)}
.qmedia audio{width:100%;max-width:420px}
.qmedia iframe{width:100%;max-width:560px;aspect-ratio:16/9;border:0;border-radius:12px}
.mleg{font-size:12.5px;color:#8a84a0;margin-top:5px;font-style:italic}
.ed{background:#fff;border-radius:18px;padding:20px;box-shadow:0 14px 36px -20px rgba(80,40,120,.25)}
.edbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:6px}
.edbar select{padding:10px 12px;border:2px solid #ece6f7;border-radius:11px;font-weight:600;background:#fff;font-size:14px}
.edhint{font-size:13px;color:#8a84a0;line-height:1.6;margin:8px 0 12px}
.edmsg{background:#e7f7ec;color:#16a34a;font-weight:700;padding:10px 14px;border-radius:10px;margin-bottom:12px;font-size:13.5px;line-height:1.5}
.edcount{display:inline-block;background:#fff6e8;color:#b45309;font-weight:700;font-size:13px;padding:7px 13px;border-radius:9px;margin-bottom:12px}
.edcard{background:#faf8fe;border:1px solid #f0eafa;border-radius:14px;padding:14px;margin-bottom:14px}
.edhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.edlab{display:block;font-size:11.5px;font-weight:800;color:#8b5cf6;text-transform:uppercase;letter-spacing:.4px;margin:10px 0 4px}
.ed textarea,.ed input:not([type="radio"]):not([type="number"]):not([type="checkbox"]){width:100%;padding:10px 12px;border:2px solid #ece6f7;border-radius:10px;font-size:14px;background:#fff;font-family:inherit}
.ed textarea{min-height:58px;resize:vertical}
.ed textarea:focus,.ed input:focus,.ed select:focus{outline:none;border-color:#8b5cf6}
.edopt{display:flex;gap:8px;align-items:center;margin-bottom:6px}
.edopt input[type="radio"]{width:19px;height:19px;accent-color:#16a34a;flex:none;cursor:pointer}
.edvf{display:flex;gap:20px;margin:8px 0;font-weight:700}
.edvf input[type="radio"]{width:18px;height:18px;accent-color:#16a34a;margin-right:6px}
.edx{background:#fee2e2;color:#dc2626;border-radius:8px;padding:7px 11px;font-weight:800;font-size:13px;flex:none}
.edadd2{background:#eef4ff;color:#2563eb;border-radius:9px;padding:8px 13px;font-weight:700;font-size:13px;margin-top:4px}
.edadd{width:100%;padding:14px;border-radius:12px;background:#2563eb;color:#fff;font-weight:800;font-size:15px;margin-top:6px}
.edadd:disabled{background:#d8d2e6;cursor:not-allowed}
.edchoice{background:#fff;border:1px solid #eee4f5;border-radius:10px;padding:11px;margin:8px 0}
.edeff{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.edeff label{display:block;font-size:10.5px;font-weight:700;color:#6b6485;margin-bottom:3px}
.edeff input{width:100%;padding:8px;border:2px solid #ece6f7;border-radius:8px;font-size:14px}
.med{background:#f0fbff;border:1.5px dashed #bae6fd;border-radius:10px;padding:10px;margin-top:10px;display:flex;flex-direction:column;gap:7px}
.med label{font-size:11.5px;font-weight:800;color:#0284c7;text-transform:uppercase;letter-spacing:.4px}
.med select,.med input{padding:9px 11px;border:2px solid #e0f2fe;border-radius:9px;font-size:13.5px;background:#fff;font-family:inherit}
@media(max-width:600px){.edeff{grid-template-columns:repeat(2,1fr)}}
.empty,.loading{background:#fff;border-radius:18px;padding:40px;text-align:center;color:#6b6485;font-size:16px;box-shadow:0 10px 30px -16px rgba(80,40,120,.2)}
.twrap{background:#fff;border-radius:18px;padding:8px;box-shadow:0 14px 36px -20px rgba(80,40,120,.25);overflow-x:auto}
.pt{width:100%;border-collapse:collapse;min-width:560px}
.pt th{text-align:left;padding:13px 11px;font-size:11.5px;text-transform:uppercase;letter-spacing:.4px;color:#8a84a0;border-bottom:2px solid #f0eafa}
.pt td{padding:13px 11px;border-bottom:1px solid #f5f1fb;font-size:14px}
.pt tr:hover td{background:#faf8fe}
.th-mini{text-align:center!important;font-size:15px!important}.th-mini small{display:block;font-size:9px;color:#b0a8c4}
.rk{font-weight:800;color:#b0a8c4}.nm{font-weight:700}.nm .ps{display:block;font-size:12px;color:#9a94aa;font-weight:500}
.moy{font-size:15px}
.tp{display:flex;align-items:center;gap:4px}.tpb{display:inline-block;width:36px;height:8px;background:#eee4f5;border-radius:6px;overflow:hidden}.tpb i{display:block;height:100%}.tpn{font-size:12px;font-weight:700;color:#8a84a0;margin-left:4px}
.sc{display:inline-block;min-width:30px;text-align:center;padding:3px 7px;border-radius:8px;font-weight:800;font-size:12px;border:1px solid}
.nc{color:#cfc8dd}
.cbar{display:inline-block;width:110px;height:9px;background:#eee4f5;border-radius:8px;overflow:hidden;vertical-align:middle}.cfill{height:100%}.cval{margin-left:8px;font-weight:800;font-size:14px}
.legend,.pn{margin-top:14px;font-size:12.5px;color:#9a94aa;text-align:center}

@media(max-width:600px){.hero h1{font-size:44px}.r2{flex-direction:column}.intrus-grid{grid-template-columns:1fr}.gauge span{width:90px}}
/* MENU MATIÈRE */
.mat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;max-width:920px;margin:0 auto}
.mat-card{background:#fff;border:2px solid #f0eafa;border-top:6px solid var(--c);border-radius:20px;padding:24px 18px;text-align:left;box-shadow:0 18px 40px -18px rgba(80,40,120,.25);transition:.15s;cursor:pointer}
.mat-card:hover{transform:translateY(-3px);border-color:var(--c)}
.mat-icon{font-size:40px}
.mat-card h3{font-size:18px;margin:10px 0 6px;line-height:1.25}
.mat-card p{font-size:13.5px;color:#6a6480;line-height:1.45}
.mat-go{display:inline-block;margin-top:12px;font-weight:800;color:var(--c)}
.lo.center{display:block;margin:22px auto 0;background:#f5f1fb;color:#5a5470;padding:9px 16px;border-radius:10px;font-weight:700}
@media(max-width:640px){.mat-grid{grid-template-columns:1fr}}
/* RESSOURCES */
.res-desc{font-size:13.5px;color:#6a6480;margin:4px 0 12px}
.res-empty{background:#faf7ef;border:1.5px dashed #d8cfae;border-radius:14px;padding:22px;text-align:center;font-weight:700;color:#8a7d4f}
.res-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.res-card{display:block;background:#fff;border:2px solid #f0eafa;border-left:6px solid #7c3aed;border-radius:16px;padding:16px 18px;text-decoration:none;color:inherit;box-shadow:0 14px 30px -18px rgba(80,40,120,.3);transition:.15s}
.res-card:hover{transform:translateY(-3px);border-color:#7c3aed}
.res-card h4{font-size:15px;margin:0 0 6px;line-height:1.3}
.res-card p{font-size:13px;color:#6a6480;line-height:1.45;margin:0}
.res-go{display:inline-block;margin-top:10px;font-weight:800;color:#7c3aed;font-size:13px}
/* ÉDITEUR VISUEL */
.riched{border:1.5px solid #ded5f2;border-radius:12px;overflow:hidden;background:#fff;margin:6px 0 10px}
.rtools{display:flex;flex-wrap:wrap;gap:4px;align-items:center;padding:8px;background:#f7f4fd;border-bottom:1.5px solid #ded5f2}
.rb{background:#fff;border:1px solid #ded5f2;border-radius:8px;padding:5px 10px;font-size:13px;font-weight:700;cursor:pointer;color:#3d3654}
.rb:hover{border-color:#7c3aed;color:#7c3aed}
.rsep{width:1px;height:20px;background:#ded5f2;margin:0 4px}
.rcolor{display:inline-flex;align-items:center;gap:3px;font-size:14px;cursor:pointer}
.rcolor input{width:26px;height:24px;border:none;background:none;padding:0;cursor:pointer}
.rarea{min-height:220px;max-height:55vh;overflow:auto;padding:14px 16px;font-size:14.5px;line-height:1.6;outline:none;text-align:left}
.rarea:focus{background:#fffdf8}
.rarea h2{font-size:19px;margin:14px 0 6px}
.rarea h3{font-size:16px;margin:12px 0 4px}
.rarea blockquote{border-left:4px solid #7c3aed;background:#f7f4fd;margin:8px 0;padding:8px 12px;border-radius:0 8px 8px 0}
.rarea ul,.rarea ol{padding-left:22px}
/* PAGE DE CONTENU (lecture) */
.res .back{background:#f5f1fb;border:none;border-radius:10px;padding:9px 14px;font-weight:800;color:#5a5470;cursor:pointer;margin-bottom:12px}
.page-doc{background:#fff;border:2px solid #f0eafa;border-radius:18px;padding:26px 28px;text-align:left;box-shadow:0 18px 40px -20px rgba(80,40,120,.3)}
.page-doc h1{font-size:24px;margin:0 0 14px}
.page-doc h2{font-size:19px;margin:18px 0 8px;color:#4c1d95}
.page-doc h3{font-size:16px;margin:14px 0 6px}
.page-doc p{font-size:14.5px;line-height:1.65;margin:6px 0}
.page-doc ul,.page-doc ol{padding-left:24px;font-size:14.5px;line-height:1.65}
.page-doc blockquote{border-left:4px solid #7c3aed;background:#f7f4fd;margin:10px 0;padding:10px 14px;border-radius:0 10px 10px 0}
.page-doc a{color:#7c3aed;font-weight:700}
.page-doc table{width:100%;border-collapse:collapse;margin:10px 0;font-size:13.5px}
.page-doc th,.page-doc td{border:1px solid #e4dcf5;padding:7px 10px;text-align:left;vertical-align:top;line-height:1.45}
.page-doc th{background:#f7f4fd;color:#4c1d95;font-weight:800}
.page-doc tr:nth-child(even) td{background:#fbfaff}
.rarea table{width:100%;border-collapse:collapse;font-size:13px}
.rarea th,.rarea td{border:1px solid #e4dcf5;padding:5px 8px;text-align:left}
@media(max-width:640px){.page-doc table{font-size:12px}.page-doc th,.page-doc td{padding:5px 6px}}
.res-card.page{cursor:pointer;text-align:left;width:100%;font-family:inherit}
/* RES-VIDEOS : la galerie de vidéos des Ressources (11/11/2026) */
.res-card.res-video{cursor:pointer;text-align:left;width:100%;font-family:inherit;padding:0 0 14px;overflow:hidden;border-left-width:2px}
.res-card.res-video h4,.res-card.res-video p{padding:0 14px}
.res-card.res-video h4{margin-top:10px}
.res-video-vig{position:relative;display:block;aspect-ratio:16/9;background:#1e1b4b;overflow:hidden}
.res-video-vig img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .25s}
.res-card.res-video:hover .res-video-vig img{transform:scale(1.04)}
.res-video-vig.vide{display:grid;place-items:center}
.res-video-ico{font-size:42px}
.res-video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:58px;height:58px;border-radius:50%;background:rgba(124,58,237,.92);color:#fff;display:grid;place-items:center;font-size:24px;padding-left:4px;box-shadow:0 6px 20px rgba(0,0,0,.35);transition:transform .15s}
.res-card.res-video:hover .res-video-play{transform:translate(-50%,-50%) scale(1.1)}
.res-video-src{position:absolute;right:8px;top:8px;background:#e11d48;color:#fff;font-size:11px;font-weight:800;border-radius:6px;padding:2px 7px}
.res-vg-fond{position:fixed;inset:0;z-index:1200;background:rgba(10,8,25,.82);display:flex;align-items:center;justify-content:center;padding:12px}
.res-vg{background:#14112b;color:#fff;border-radius:18px;width:min(1100px,100%);max-height:96vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.5)}
.res-vg-tete{display:flex;align-items:center;gap:10px;padding:10px 14px}
.res-vg-tete b{flex:1;font-size:16px;line-height:1.3}
.res-vg-n{font-size:13px;opacity:.7;font-weight:700}
.res-vg-x{border:0;background:rgba(255,255,255,.12);color:#fff;border-radius:10px;width:38px;height:38px;font-size:18px;cursor:pointer}
.res-vg-x:hover{background:rgba(255,255,255,.22)}
.res-vg-scene{position:relative;background:#000;display:flex;align-items:center;justify-content:center}
.res-vg-lecteur{width:100%;aspect-ratio:16/9;max-height:68vh;border:0;display:block;background:#000}
.res-vg-fl{position:absolute;top:50%;transform:translateY(-50%);z-index:2;border:0;width:44px;height:64px;border-radius:12px;background:rgba(20,17,43,.55);color:#fff;font-size:34px;line-height:1;cursor:pointer}
.res-vg-fl:hover{background:rgba(124,58,237,.85)}
.res-vg-fl.g{left:6px}.res-vg-fl.d{right:6px}
.res-vg-desc{margin:0;padding:10px 16px 0;font-size:14px;opacity:.85;line-height:1.45}
.res-vg-bande{display:flex;gap:10px;overflow-x:auto;padding:12px 14px 14px;scroll-snap-type:x mandatory}
.res-vg-mini{flex:0 0 150px;scroll-snap-align:start;border:2px solid transparent;border-radius:10px;background:rgba(255,255,255,.06);color:#fff;padding:0 0 6px;cursor:pointer;text-align:left;font-family:inherit;overflow:hidden}
.res-vg-mini img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.res-vg-mini span{display:block}
.res-vg-mini-t{font-size:11.5px;font-weight:700;padding:5px 7px 0;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.res-vg-mini.on{border-color:#a78bfa;background:rgba(124,58,237,.25)}
@media (max-width:640px){.res-vg{border-radius:12px}.res-vg-fl{width:36px;height:52px;font-size:28px}.res-vg-mini{flex-basis:118px}}
/* RES-VIDEOS-LIEN : le lien direct de la galerie et de chaque vidéo (12/11/2026) */
.res-vlien{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;background:#f5f3ff;border:2px dashed #c4b5fd;border-radius:14px;padding:10px 14px;margin:0 0 14px}
.res-vlien-t{font-weight:800;color:#4c1d95;font-size:14px}
.res-vlien-b{border:0;background:#7c3aed;color:#fff;font:inherit;font-weight:800;font-size:14px;border-radius:10px;padding:8px 14px;cursor:pointer;min-height:40px}
.res-vlien-b:hover{background:#6d28d9}
.res-vlien-b.qr{background:#fff;color:#5b21b6;border:2px solid #c4b5fd}
.res-vlien-u{flex:1 1 220px;min-width:0;font:12.5px/1.3 ui-monospace,monospace;color:#5b21b6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.res-vlien-aide{flex-basis:100%;font-size:12.5px;color:#6b7280}
.res-video-boite{position:relative;min-width:0}
.res-video-boite>.res-card{height:100%}
.res-video-lien{position:absolute;left:8px;top:8px;z-index:2;border:0;border-radius:10px;min-width:38px;height:38px;padding:0 8px;background:rgba(255,255,255,.94);color:#4c1d95;font-size:17px;font-weight:800;cursor:pointer;box-shadow:0 3px 10px rgba(0,0,0,.25)}
.res-video-lien:hover{background:#ede9fe}
.res-vg-lien{border:0;background:rgba(255,255,255,.12);color:#fff;border-radius:10px;height:38px;padding:0 12px;font:inherit;font-size:14px;font-weight:800;cursor:pointer;white-space:nowrap}
.res-vg-lien:hover{background:rgba(124,58,237,.85)}
@media (max-width:640px){.res-vlien-u{flex-basis:100%}.res-vg-tete b{font-size:14px}}
/* RES-VIDEOS : fin css */
@media(max-width:640px){.page-doc{padding:18px 16px}}
/* SYNCHRONISATION */
.syncpill{display:inline-flex;align-items:center;background:#f5f1fb;border:1.5px solid #ded5f2;color:#5a5470;border-radius:999px;padding:5px 12px;font-size:12.5px;font-weight:800}
.syncpill.on{background:#ecfdf5;border-color:#a7f3d0;color:#047857}
.syncpill.syncpill-err{background:#fef2f2;border-color:#fecaca;color:#b91c1c}
.cloud{margin-left:6px;font-size:13px}
.edhint2{font-size:12.5px;color:#6a6480;line-height:1.5;margin:6px 0;font-weight:500}
/* ÉTUDE DE DOCS */
.docbox{background:#fffdf5;border:1.5px solid #eadfb8;border-radius:14px;padding:16px 18px;margin:10px 0 14px;text-align:left;box-shadow:0 10px 24px -16px rgba(120,90,20,.35)}
.dochead{font-weight:800;font-size:14px;margin-bottom:8px;color:#8a6d1f}
.doctxt p{font-size:14.5px;line-height:1.55;margin:4px 0}
.docsrc{margin-top:8px;font-size:12px;color:#9a8d5f;font-style:italic;text-align:right}
/* ====== MON ORIENTATION ====== */
.ori-test{max-width:760px;margin:0 auto}
.ori-intro{background:#fff;border:1px solid #e8effa;border-radius:18px;padding:20px 22px;box-shadow:0 18px 40px -22px rgba(8,145,178,.4);margin-bottom:18px}
.ori-intro p{margin:8px 0;line-height:1.55}
.ori-steps{list-style:none;margin:12px 0;padding:0;display:flex;flex-direction:column;gap:8px}
.ori-steps li{background:#f4fbff;border:1px solid #d6eefb;border-radius:12px;padding:10px 14px;font-size:15px}
.ori-warn{font-size:13.5px;color:#7a5a00;background:#fff8e6;border:1px solid #ffe7a8;border-radius:12px;padding:10px 14px;line-height:1.5}
.ori-prog{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.ori-progbar{flex:1;height:10px;background:#e8effa;border-radius:20px;overflow:hidden}
.ori-progfill{height:100%;background:linear-gradient(90deg,#0891b2,#22d3ee);border-radius:20px;transition:width .3s}
.ori-prog span{font-size:13px;font-weight:700;color:#0e7490;white-space:nowrap}
.ori-qcard{background:#fff;border:1px solid #e8effa;border-radius:18px;padding:22px;box-shadow:0 18px 40px -24px rgba(8,145,178,.4)}
.ori-q{font-family:'Fraunces',serif;font-size:21px;font-weight:600;line-height:1.35;margin-bottom:16px}
.ori-opts{display:flex;flex-direction:column;gap:10px}
.ori-opt{text-align:left;padding:14px 16px;border-radius:13px;background:#f7fbfe;border:2px solid #e2eef7;font-size:15.5px;font-weight:500;color:#1a1430;transition:.15s;line-height:1.4}
.ori-opt:hover{border-color:#7dd3e8;background:#eef9ff}
.ori-opt.sel{border-color:#0891b2;background:#e0f6fd;box-shadow:0 4px 14px -6px rgba(8,145,178,.5);font-weight:700}
.ori-opt.multi{display:flex;align-items:flex-start;gap:11px}
.ori-check{font-size:19px;line-height:1.25;color:#0891b2;flex:0 0 auto}
.ori-opt.multi.sel .ori-check{color:#0e7490}
.ori-multi{font-size:14px;background:#ecfdf5;border:1px solid #a7e8cf;border-radius:12px;padding:10px 14px;line-height:1.5;color:#065f46}
.ori-multi-hint{font-size:13.5px;color:#0e7490;font-weight:600;margin:-6px 0 12px}
.ori-nav{display:flex;justify-content:space-between;gap:12px;margin-top:18px}
.ori-nav .cta.sm{margin:0;max-width:none;flex:1}
.ori-hint{text-align:center;font-size:13.5px;color:#0e7490;margin-top:10px;font-weight:600}
.ori-sub{text-align:center;color:#5a5470;margin-bottom:18px}
.ori-bars{display:flex;flex-direction:column;gap:9px;margin-bottom:20px}
.ori-bar{display:grid;grid-template-columns:190px 1fr 56px;align-items:center;gap:10px}
.ori-barlab{font-size:14px;font-weight:600}
.ori-bartrack{height:14px;background:#eef2f7;border-radius:20px;overflow:hidden}
.ori-barfill{height:100%;background:linear-gradient(90deg,#0891b2,#22d3ee);border-radius:20px}
.ori-barpct{font-size:13px;font-weight:800;color:#0e7490;text-align:right}
.ori-topbox{background:#ecfeff;border:1px solid #a5e8f5;border-radius:16px;padding:16px 18px;margin-bottom:18px}
.ori-toplab{font-size:12px;font-weight:800;letter-spacing:1px;color:#0e7490;text-transform:uppercase;margin-bottom:10px}
.ori-topchips{display:flex;flex-wrap:wrap;gap:8px}
.ori-chip{background:#0891b2;color:#fff;padding:7px 14px;border-radius:30px;font-size:14px;font-weight:700}
.ori-reco{background:#fff;border:2px solid #ffd9b8;border-radius:20px;padding:24px;box-shadow:0 24px 50px -26px rgba(234,88,12,.45);margin-bottom:18px}
.ori-reco-emo{font-size:48px;text-align:center}
.ori-reco h3{font-family:'Fraunces',serif;font-size:26px;text-align:center;margin:6px 0 4px}
.ori-reco-branche{text-align:center;color:#c2410c;font-size:15px;margin-bottom:12px}
.ori-reco>p{line-height:1.55;margin-bottom:6px}
.ori-reco-block{margin-top:16px;background:#fff7f0;border:1px solid #ffe0c4;border-radius:14px;padding:14px 16px}
.ori-reco-h{font-weight:800;color:#ea580c;margin-bottom:8px;font-size:15px}
.ori-reco-block ul{margin:0;padding-left:20px}
.ori-reco-block li{margin:5px 0;line-height:1.45}
.ori-reco-mets{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}
.ori-met-pill{background:#fff;border:1.5px solid #fdba74;color:#c2410c;padding:6px 12px;border-radius:24px;font-size:13.5px;font-weight:700}
.link-btn{background:none;border:none;color:#0891b2;font-weight:700;font-size:14px;text-decoration:underline;cursor:pointer;padding:0}
.ori-more{display:flex;flex-direction:column;gap:10px;align-items:center}
.ori-more .cta.sm{margin:0}
.ori-note-hint{font-size:13.5px;color:#0e7490;font-style:italic;margin-top:6px}
.spe-choice-btns{display:flex;flex-direction:column;gap:12px;max-width:520px;margin:22px auto 0}
.ori-go{display:block;width:100%;text-align:center;padding:16px 20px;border-radius:14px;border:2px solid #0891b2;background:linear-gradient(90deg,#0891b2,#22d3ee);color:#fff;font-size:16px;font-weight:800;cursor:pointer;transition:.15s;box-shadow:0 14px 30px -16px rgba(8,145,178,.6)}
.ori-go:hover{filter:brightness(1.05);transform:translateY(-1px)}
.ori-go.ghost{background:#fff;color:#0e7490;box-shadow:none}
.ori-go.ghost:hover{background:#f0fbff}
/* Découverte des métiers */
.ori-fam{margin-bottom:22px;border-left:5px solid var(--c);padding-left:14px}
.ori-fam-h{font-family:'Fraunces',serif;font-size:20px;font-weight:700;display:flex;align-items:center;gap:10px;margin-bottom:12px}
.ori-fam-emo{font-size:24px}
.ori-fam-n{margin-left:auto;font-family:'Outfit',sans-serif;font-size:12px;font-weight:700;color:#fff;background:var(--c);padding:3px 10px;border-radius:20px}
.ori-fam-grid{display:flex;flex-direction:column;gap:9px}
.ori-metcard{background:#fff;border:1px solid #ebe6f3;border-radius:13px;overflow:hidden;transition:.15s}
.ori-metcard.open{border-color:var(--c);box-shadow:0 14px 30px -20px rgba(0,0,0,.3)}
.ori-metcard-h{width:100%;text-align:left;background:none;padding:14px 16px;display:flex;justify-content:space-between;align-items:center;font-size:16px;font-weight:700;color:#1a1430}
.ori-metcard-arr{color:var(--c);font-size:12px}
.ori-metcard-body{padding:0 16px 16px}
.ori-metcard-body p{line-height:1.55;color:#3d3a4e;margin-bottom:10px}
.ori-met-tasks-h{font-weight:800;color:var(--c);font-size:14px;margin-bottom:6px}
.ori-met-tasks{margin:0;padding-left:20px}
.ori-met-tasks li{margin:4px 0;line-height:1.4;font-size:14.5px}
/* metiers-stmg:debut */
.ori-met-plus{margin-top:12px;padding-top:10px;border-top:1px dashed #e2dcef}
.ori-met-plus .ori-met-tasks-h{margin-top:10px}
.ori-met-qual,.ori-met-sal{margin:0 0 4px !important;font-size:14.5px;line-height:1.5}
.ori-met-dur{margin:6px 0 0 !important;font-size:13px;color:#64748b;line-height:1.45}
.ori-met-note{background:#fffbeb;border:1px solid #fcd34d;border-radius:10px;padding:8px 11px;margin:10px 0 0 !important;font-size:14px;color:#57534e}
/* metiers-stmg:fin */
@media(max-width:620px){
 .ori-bar{grid-template-columns:1fr;gap:3px}
 .ori-barlab{font-size:13px}.ori-barpct{text-align:left}
 .ori-q{font-size:19px}
}
/* ====== ENSEIGNEMENT SPÉCIFIQUE ====== */
.ori-progfill.spe{background:linear-gradient(90deg,#9333ea,#c084fc)}
.ori-opt.spe:hover{border-color:#c9a3ee;background:#f7effe}
.ori-opt.spe.sel{border-color:#9333ea;background:#f3e8ff;box-shadow:0 4px 14px -6px rgba(147,51,234,.5)}
.spe-mini{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 14px}
.spe-mini-pill{border:1.5px solid var(--c);color:var(--c);background:#fff;padding:6px 12px;border-radius:24px;font-size:13.5px;font-weight:700}
.spe-note{background:#fff;border:1px solid #ece6f3;border-radius:16px;padding:16px 18px;margin-bottom:14px;box-shadow:0 14px 34px -26px rgba(147,51,234,.5)}
.spe-note-q{font-family:'Fraunces',serif;font-size:18px;font-weight:600;margin-bottom:4px}
.spe-note-aide{font-size:13px;color:#7a7390;margin-bottom:12px;line-height:1.45}
.spe-note-ranges{display:flex;flex-wrap:wrap;gap:8px}
.spe-range{padding:9px 14px;border-radius:11px;background:#f7f3fd;border:2px solid #ece2f8;font-size:14px;font-weight:600;color:#1a1430;transition:.15s}
.spe-range:hover{border-color:#c9a3ee}
.spe-range.sel{border-color:#9333ea;background:#f3e8ff;color:#7e22ce;font-weight:800}
.ori-bar.spe4 .ori-barlab{font-weight:700}
.ori-reco.spe-reco{border:2px solid color-mix(in srgb,var(--c) 45%,#fff)}
.spe-explain{background:#faf7ff;border:1px solid #e9ddfa;border-radius:16px;padding:16px 18px;margin-bottom:16px}
.spe-explain-h{font-weight:800;color:#7e22ce;margin-bottom:8px;font-size:15px}
.spe-explain p{line-height:1.55;margin-bottom:6px}
.spe-explain-list{margin:8px 0 0;padding-left:20px}
.spe-explain-list li{margin:5px 0;line-height:1.45;font-size:14.5px}
.spe-card{background:#fff;border:1px solid #ece6f3;border-left:5px solid var(--c);border-radius:14px;padding:18px 20px;margin-bottom:14px;box-shadow:0 16px 38px -28px rgba(0,0,0,.4)}
.spe-card-h{font-family:'Fraunces',serif;font-size:21px;font-weight:700;display:flex;align-items:center;gap:10px;margin-bottom:8px;color:var(--c)}
.spe-card-emo{font-size:26px}
.spe-card-txt{line-height:1.55;color:#3d3a4e;margin-bottom:12px}
.spe-card-deb-h{font-weight:800;color:var(--c);font-size:14px;margin-bottom:6px}
.spe-card-deb{margin:0;padding-left:20px}
.spe-card-deb li{margin:4px 0;line-height:1.4;font-size:14.5px}
.synctest{margin-top:6px}
.stmsg{padding:10px 14px;border-radius:10px;font-size:13.5px;line-height:1.5;margin-top:6px;font-weight:600}
.stmsg.ok{background:#e7f9ee;color:#15803d;border:1px solid #a7e8c0}
.stmsg.warn{background:#fff7e6;color:#b45309;border:1px solid #fcd9a0}
.stmsg.err{background:#fee2e2;color:#dc2626;border:1px solid #f7b4b4}
.ref-spe{background:linear-gradient(90deg,#9333ea,#c084fc);color:#fff;font-weight:800;padding:9px 16px;border-radius:12px;font-size:15px;margin-bottom:10px}
.ref-prog{font-size:13px;font-weight:700;color:#7e22ce;margin-bottom:8px}
/* ===== Paramétrage & Synthèse classe (interface prof) ===== */
.settings{max-width:820px;margin:8px auto}
.settings h3{font-family:'Fraunces',serif;font-size:22px;margin-bottom:12px}
.setrow{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}
.synthwrap{max-width:980px;margin:4px auto}
.synth-head h3{font-family:'Fraunces',serif;font-size:21px;margin-bottom:4px}
.synth-sub{color:#5a5470;font-size:14px;margin-bottom:14px}
.synth-tip{display:inline-block;margin-left:6px;color:#0e7490;font-weight:600}
.synth-para{background:#fff;border:1px solid #e8e2f0;border-radius:16px;padding:18px 20px;margin-bottom:18px;box-shadow:0 16px 40px -28px rgba(0,0,0,.35)}
.synth-para p{line-height:1.6;margin:0 0 12px;font-size:15px}
.synth-para p:last-child{margin-bottom:0}
.synth-table thead th{background:#fff1f1}
.synth-themes{margin-top:18px}
.synth-themes-h{font-weight:800;color:#4b4660;margin-bottom:10px;font-size:15px}
.synth-theme-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.synth-theme-card{background:#fff;border:1px solid #e8e2f0;border-left:4px solid #cbd5e1;border-radius:12px;padding:12px 14px}
.synth-theme-card.weak{border-left-color:#dc2626;background:#fff7f7}
.synth-theme-card.strong{border-left-color:#16a34a}
.stc-name{font-weight:700;font-size:13.5px;margin-bottom:8px;line-height:1.3}
.stc-bar{height:8px;background:#eef2f7;border-radius:20px;overflow:hidden;margin-bottom:6px}
.stc-fill{height:100%;border-radius:20px}
.stc-moy{font-weight:800;font-size:14px;text-align:right}
/* ===== Simulateurs SDGN (entretien + paie) ===== */
.sim-intro{background:#eef9ff;border:1px solid #b9e3f5;border-radius:14px;padding:14px 16px;margin-bottom:14px;line-height:1.55;font-size:15px;color:#0c4a6e}
.ee-prog{font-size:13px;font-weight:700;color:#0d9488;margin-bottom:8px}
.paie-controls{background:#fff;border:1px solid #ece6f3;border-radius:16px;padding:16px 18px;margin-bottom:14px;box-shadow:0 16px 40px -28px rgba(0,0,0,.3)}
.pc-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 22px}
.pc-row{margin-bottom:0}
.pc-row label{display:block;font-size:14px;font-weight:600;margin-bottom:6px}
.pc-row input[type=range]{width:100%;accent-color:#b45309}
.pc-note{font-weight:500;color:#8a8398;font-size:12px}
.pc-warn{color:#dc2626;font-weight:700;font-size:12px}
/* Bulletin façon A4 portrait */
.bp-sheet{background:#fff;border:1px solid #d8d2e0;border-radius:8px;padding:24px 26px;margin:0 auto 14px;max-width:820px;box-shadow:0 24px 60px -30px rgba(0,0,0,.45);font-size:13px;color:#1a1430}
.bp-top{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:2px solid #1a1430;padding-bottom:12px;margin-bottom:12px}
.bp-co{font-family:'Fraunces',serif;font-weight:800;font-size:17px}
.bp-co-sub{color:#6b6485;font-size:11.5px;margin-top:2px}
.bp-meta{text-align:right;font-weight:800;font-size:13px;line-height:1.4}
.bp-meta span{font-weight:500;color:#6b6485;font-size:11.5px}
.bp-id{display:grid;grid-template-columns:1fr 1fr;gap:4px 18px;background:#f7f5fb;border-radius:8px;padding:10px 14px;margin-bottom:14px;font-size:12.5px}
.bp-table{width:100%;border-collapse:collapse;margin-bottom:12px;font-variant-numeric:tabular-nums}
.bp-table th{background:#eef0f5;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.3px;padding:6px 8px;text-align:right;border:1px solid #dfe2ea;color:#4b4660}
.bp-table th.bp-l{text-align:left}
.bp-table td{padding:6px 8px;text-align:right;border:1px solid #eceef3}
.bp-table td.bp-l{text-align:left}
.bp-table td.bp-base{color:#8a8398;font-size:12px}
.bp-brut td{background:#eef4ff;font-weight:800;color:#1d4ed8;border-color:#cfe0fb}
.bp-cot td{font-size:12.5px}
.bp-cot-note{display:block;font-weight:400;color:#8a8398;font-size:10.5px;font-style:italic;margin-top:1px}
.bp-cot-tot td{background:#f7f5fb;font-weight:800}
.bp-synth td{padding:8px;font-size:13.5px;border:none}
.bp-synth tr{border-bottom:1px solid #f0eef5}
.bp-synth .bp-minus .bp-r{color:#dc2626}
.bp-synth .bp-sub td{background:#fafafa;font-weight:700}
.bp-synth .bp-net td{background:#e7f9ee;color:#15803d;font-weight:800;font-size:16px}
.bp-synth .bp-cout td{background:#fff1e6;color:#b45309;font-weight:800;font-size:14.5px}
.bp-synth .bp-gap td{padding:3px;background:none}
/* Indicateurs */
.bp-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-bottom:14px}
.kpi{background:#fff;border:1px solid #ece6f3;border-radius:12px;padding:12px 14px;text-align:center;box-shadow:0 10px 26px -22px rgba(0,0,0,.3)}
.kpi-v{font-family:'Fraunces',serif;font-weight:800;font-size:22px;color:#b45309}
.kpi-l{font-size:11.5px;color:#6b6485;margin-top:3px;line-height:1.3}
.bp-actions{display:flex;flex-direction:column;gap:10px}
.ps-legend{font-size:13px;line-height:1.55;color:#5a5470;background:#fffbeb;border:1px solid #fde9b8;border-radius:12px;padding:11px 14px}
/* Assemblage des formules */
.assemble{max-width:760px;margin:0 auto}
.asm-titre{font-family:'Fraunces',serif;font-size:20px;margin:4px 0 6px}
.asm-help{font-size:14px;color:#5a5470;line-height:1.5;margin-bottom:14px}
.asm-formula{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#fff;border:1px solid #ece6f3;border-radius:14px;padding:16px;margin-bottom:14px;font-size:15px}
.asm-res{font-weight:800;color:#1a1430}
.asm-eq,.asm-op{font-weight:800;color:#b45309;font-size:18px}
.asm-slot{min-width:120px;min-height:34px;display:inline-flex;align-items:center;justify-content:center;padding:6px 12px;border:2px dashed #cbb89a;border-radius:10px;background:#fffaf3;color:#1a1430;font-weight:600;cursor:pointer;text-align:center}
.asm-slot.full{border-style:solid;border-color:#b45309;background:#fff1e0}
.asm-slot.ok{border-color:#16a34a;background:#e7f9ee;color:#15803d}
.asm-slot.bad{border-color:#dc2626;background:#fee2e2;color:#dc2626}
.asm-bank{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:14px}
.asm-brick{padding:10px 15px;border-radius:11px;background:#f3e8ff;border:2px solid #d9c2f0;color:#6b21a8;font-weight:700;font-size:14px;cursor:pointer;transition:.12s}
.asm-brick:hover:not(.used){background:#ead9fb;transform:translateY(-1px)}
.asm-brick.used{opacity:.35;cursor:default}
.paie-quiz{margin-top:6px}
@media(max-width:620px){ .pc-grid{grid-template-columns:1fr} .bp-sheet{padding:14px 12px;font-size:12px} .bp-table th,.bp-table td{padding:5px 5px;font-size:11px} }
.bp-co-legal{color:#8a8398;font-size:10.5px;margin-top:2px}
.bp-abs td{color:#dc2626;background:#fff6f6}
.hs-sim{background:#fff;border:1px solid #ece6f3;border-radius:14px;padding:14px 16px;margin-bottom:14px;box-shadow:0 14px 36px -26px rgba(0,0,0,.3)}
.hs-sim-h{font-weight:800;color:#0d9488;font-size:14.5px;margin-bottom:10px}
.hs-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:13px}
.hs-table th{background:#eef0f5;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.3px;padding:6px 8px;text-align:right;border:1px solid #dfe2ea;color:#4b4660}
.hs-table th.bp-l{text-align:left}
.hs-table td{padding:6px 8px;text-align:right;border:1px solid #eceef3}
.hs-table td.bp-l{text-align:left}
.hs-table tr.hs-25 td{background:#fff8ec}
.hs-table tr.hs-50 td{background:#fef0e7}
.hs-note{font-size:12.5px;color:#5a5470;line-height:1.5;margin-top:9px;background:#f0fdfa;border:1px solid #b9e8de;border-radius:10px;padding:9px 12px}
.bp-synth .bp-social td{background:#eef9ff;color:#0c4a6e;font-weight:700}
.bp-hint{font-weight:400;color:#6b6485;font-size:11px}
.bp-cumul{margin-top:6px}
.bp-cumul th{background:#f3effa;color:#6b21a8;font-size:11px;text-transform:uppercase;letter-spacing:.3px;padding:6px 8px;text-align:left;border:1px solid #e4daf3}
.bp-cumul td{padding:6px 8px;border:1px solid #eceef3;text-align:right;font-variant-numeric:tabular-nums}
.bp-cumul td.bp-l{text-align:left}
.bp-foot{text-align:center;color:#8a8398;font-size:10.5px;margin-top:12px;border-top:1px solid #eceef3;padding-top:8px}
.bp-btnrow{display:flex;gap:10px;flex-wrap:wrap}
@media print{
  body.printing-bp{background:#fff !important}
  body.printing-bp *{visibility:hidden !important}
  body.printing-bp #bp-print-area, body.printing-bp #bp-print-area *{visibility:visible !important}
  body.printing-bp #bp-print-area{position:absolute;left:0;top:0;width:100%;max-width:100%;box-shadow:none !important;border:none !important;margin:0;padding:10mm}
}
.grille{background:#fff;border:1px solid #ece6f3;border-radius:14px;padding:14px 16px;margin-bottom:14px;box-shadow:0 14px 36px -26px rgba(0,0,0,.3)}
.grille-h{font-weight:800;color:#1d4ed8;font-size:14.5px;margin-bottom:10px}
.grille-sub{font-weight:500;color:#8a8398;font-size:12.5px}
.grille-table{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.grille-table th{background:#eef0f5;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.3px;padding:6px 8px;text-align:right;border:1px solid #dfe2ea;color:#4b4660}
.grille-table th.bp-l{text-align:left}
.grille-table td{padding:7px 8px;text-align:right;border:1px solid #eceef3}
.grille-table td.bp-l{text-align:left}
.grille-table tr.grille-on td{background:#eef4ff}
.grille-note{display:block;font-weight:400;color:#8a8398;font-size:11px;margin-top:1px}
.grille-btn{background:#1d4ed8;color:#fff;border-radius:8px;padding:5px 11px;font-weight:700;font-size:12px;cursor:pointer;white-space:nowrap}
.grille-table tr.grille-on .grille-btn{background:#16a34a}
.grille-note2{font-size:12.5px;color:#5a5470;line-height:1.5;margin-top:9px;background:#eff5ff;border:1px solid #c9dcfb;border-radius:10px;padding:9px 12px}
.ident-edit{background:#fff;border:1px solid #ece6f3;border-radius:14px;padding:14px 16px;margin-bottom:14px;box-shadow:0 14px 36px -26px rgba(0,0,0,.3)}
.ident-h{font-weight:800;color:#b45309;font-size:14.5px;margin-bottom:10px}
.ident-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px}
.ident-grid label{display:flex;flex-direction:column;font-size:12px;font-weight:700;color:#4b4660;gap:4px}
.ident-grid input{border:1px solid #d8d2e0;border-radius:8px;padding:8px 10px;font-size:13.5px;font-weight:500;color:#1a1430}
.ident-grid input:focus{outline:none;border-color:#b45309;box-shadow:0 0 0 3px rgba(180,83,9,.12)}
@media(max-width:620px){ .ident-grid{grid-template-columns:1fr} .grille-table th,.grille-table td{padding:5px;font-size:11px} }
/* En-têtes de section avec outils (replier / détacher) */
.box-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.box-title{font-weight:800;font-size:14.5px;color:#4b4660}
.paie-controls .box-title{color:#b45309}
.grille .box-title{color:#1d4ed8}
.ident-edit .box-title{color:#b45309}
.hs-sim .box-title{color:#0d9488}
.box-tools{display:flex;gap:6px;flex-shrink:0}
.box-btn{background:#f0eafa;color:#6b6485;border-radius:8px;padding:5px 10px;font-weight:700;font-size:12.5px;cursor:pointer;white-space:nowrap;border:1px solid #e4daf3;transition:.12s}
.box-btn:hover{background:#e7ddf7}
.grille-cap{font-size:12.5px;color:#8a8398;margin:-4px 0 8px}
.drag-hint{font-weight:500;color:#b08;font-size:11.5px}
.float-hint{font-size:12.5px;color:#0c4a6e;background:#eef9ff;border:1px solid #b9e3f5;border-radius:10px;padding:9px 12px;margin-bottom:14px;line-height:1.5}
/* Panneau de réglages flottant, déplaçable et redimensionnable */
.paie-controls.floating{position:fixed;top:90px;right:24px;z-index:60;width:380px;max-width:94vw;max-height:80vh;overflow:auto;resize:both;box-shadow:0 30px 70px -20px rgba(0,0,0,.5);border:2px solid #b45309}
.paie-controls.floating .pc-grid{grid-template-columns:1fr}
@media(max-width:620px){
  .paie-controls.floating{right:3vw;left:3vw;width:auto;top:70px;max-height:70vh}
}
/* Accès direct (élève) */
.direct-wrap{max-width:560px;margin:40px auto;padding:0 16px}
.direct-card{background:#fff;border-radius:22px;padding:30px 26px;text-align:center;box-shadow:0 30px 60px -22px rgba(80,40,120,.3);border:1px solid #f0eafa}
.direct-card h2{font-family:'Fraunces',serif;font-size:26px;margin:8px 0 10px}
.direct-badge{display:inline-block;background:var(--ink);color:#fff;padding:6px 14px;border-radius:20px;font-size:12px;font-weight:700;letter-spacing:.5px}
.direct-sub{color:#5a5470;font-size:15px;line-height:1.55;margin-bottom:18px}
.direct-form{display:flex;flex-direction:column;gap:10px;margin-bottom:8px}
.direct-form input{padding:13px 15px;border:2px solid #ece6f7;border-radius:12px;font-size:15px;background:#faf8fe}
.direct-form input:focus{outline:none;border-color:var(--c1);background:#fff}
.direct-link{display:inline-block;margin-top:16px;color:#7a7390;font-size:13.5px;font-weight:600;text-decoration:none}
.direct-link:hover{color:var(--ink)}
/* Liens d'accès direct (prof) */
.liens{max-width:980px;margin:4px auto}
.liens h3{font-family:'Fraunces',serif;font-size:22px;margin-bottom:8px}
.liens-intro{color:#5a5470;font-size:14px;line-height:1.55;margin-bottom:12px}
.liens-pages{background:#f5f3ff;border:1px solid #ddd6fe;border-radius:12px;padding:14px 16px;margin-bottom:18px}
.liens-pages-h{font-family:'Fraunces',serif;font-weight:800;font-size:16px;color:#4c1d95;margin-bottom:6px}
.liens-pages-sub{font-size:13px;color:#5a5470;line-height:1.5;margin-bottom:11px}
.liens-pages-list{display:flex;flex-direction:column;gap:6px}
.liens-base{font-size:12.5px;color:#15803d;background:#e7f9ee;border:1px solid #a7e8c0;border-radius:10px;padding:9px 12px;margin-bottom:14px}
.liens-warn{font-size:13px;color:#b45309;background:#fff7e6;border:1px solid #fcd9a0;border-radius:10px;padding:11px 14px;margin-bottom:14px;line-height:1.55}
.liens-base code,.liens-warn code{background:#ffffff88;padding:1px 6px;border-radius:5px;font-size:12px}
.liens-search{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #e4daf3;border-radius:12px;padding:9px 13px;margin-bottom:14px;box-shadow:0 1px 6px rgba(60,40,90,.06)}
.liens-search:focus-within{border-color:var(--ink);box-shadow:0 2px 10px rgba(60,40,90,.14)}
.liens-search-ico{font-size:15px;opacity:.8}
.liens-search input{flex:1;min-width:0;border:0;outline:0;background:none;font:500 14px system-ui,sans-serif;color:#3d3660}
.liens-search input::-webkit-search-cancel-button{display:none}
.liens-search-x{border:0;background:#f1ecfa;color:#6b6485;border-radius:50%;width:22px;height:22px;line-height:1;cursor:pointer;font-size:12px}
.liens-search-x:hover{background:#e4daf3}
.liens-search-n{font:700 12px system-ui,sans-serif;color:#6b6485;background:#f6f2fd;border-radius:99px;padding:4px 10px;white-space:nowrap}
.liens-vide{background:#fff8e8;border:1px solid #f0dcae;border-radius:12px;padding:13px 16px;color:#7a5a12;font-size:13.5px;line-height:1.6;margin-bottom:14px}
.liens-qr{border:1px solid #e4daf3;background:#fff;border-radius:9px;padding:8px 12px;cursor:pointer;font:700 12.5px system-ui,sans-serif;color:#6b6485;white-space:nowrap}
.liens-qr:hover{background:#f6f2fd}
.qrpop-fond{position:fixed;inset:0;background:rgba(20,15,35,.55);z-index:10000;display:flex;align-items:center;justify-content:center;padding:20px;animation:qrpop-fond .2s ease}
@keyframes qrpop-fond{from{opacity:0}to{opacity:1}}
.qrpop{background:#fff;border-radius:18px;padding:22px 26px;max-width:360px;width:100%;text-align:center;box-shadow:0 12px 40px rgba(0,0,0,.3);animation:qrpop-entree .25s cubic-bezier(.34,1.4,.64,1)}
@keyframes qrpop-entree{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}
.qrpop h3{margin:0 0 12px;font-size:16px;color:#241d3d}
.qrpop .kk-qr{margin:0 auto}
.qrpop-url{font-size:11.5px;color:#8a84a0;word-break:break-all;margin:12px 0 14px}
.qrpop-actions{display:flex;gap:10px;justify-content:center}
.qrpop-print{padding:9px 18px;border:0;border-radius:10px;background:var(--ink);color:#fff;cursor:pointer;font:700 13px system-ui,sans-serif}
.qrpop-fermer{padding:9px 18px;border:1px solid #e4daf3;border-radius:10px;background:#fff;cursor:pointer;font:600 13px system-ui,sans-serif;color:#6b6485}
.taf-ok-qr{display:flex;align-items:center;gap:14px;justify-content:center;margin:12px 0;flex-wrap:wrap}
.taf-ok-qr span{font-size:12.5px;color:#6b6485;max-width:200px;text-align:left}
.liens-filtre{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}
.liens-filtre button{padding:7px 13px;border-radius:20px;background:#fff;border:1px solid #e4daf3;font-weight:700;font-size:13px;color:#6b6485;cursor:pointer}
.liens-filtre button.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.liens-subj{margin-bottom:18px}
.liens-subj-h{font-family:'Fraunces',serif;font-weight:800;font-size:17px;margin-bottom:8px}
.liens-theme{margin-bottom:12px}
.liens-theme-h{font-weight:700;color:#7e22ce;font-size:13px;margin-bottom:6px}
.liens-row{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #ece6f3;border-radius:10px;padding:8px 10px;margin-bottom:6px}
.liens-game{flex:0 0 230px;font-weight:600;font-size:13.5px;display:flex;align-items:center;gap:6px}
.liens-ico{font-size:16px}
.liens-url{flex:1;min-width:0;border:1px solid #e4daf3;border-radius:8px;padding:7px 9px;font-size:12px;color:#5a5470;background:#faf8fe;font-family:monospace}
.liens-copy{flex-shrink:0;background:#2563eb;color:#fff;border-radius:8px;padding:8px 13px;font-weight:700;font-size:13px;cursor:pointer;white-space:nowrap}
.liens-copy.ok{background:#16a34a}
.liens-foot{font-size:13px;color:#5a5470;margin-top:8px}
@media(max-width:680px){ .liens-row{flex-wrap:wrap} .liens-game{flex:1 1 100%} .liens-url{flex:1 1 60%} }
/* Niveau 1 — Introduction progressive au bulletin */
.pi-wrap{display:grid;grid-template-columns:1fr 0.9fr;gap:18px;align-items:start}
.pi-step{min-width:0;animation:pistep .45s cubic-bezier(.22,1,.36,1)}
@keyframes pistep{0%{opacity:0;transform:translateX(-14px)}100%{opacity:1;transform:none}}
.pi-progbar{height:7px;background:#e6f3f7;border-radius:10px;overflow:hidden;margin-bottom:8px}
.pi-progfill{height:100%;background:linear-gradient(90deg,#0891b2,#22d3ee);border-radius:10px;transition:width .6s cubic-bezier(.22,1,.36,1)}
.pi-prog{font-size:13px;font-weight:700;color:#0891b2;margin-bottom:8px}
.pi-bloc{font-family:'Fraunces',serif;font-weight:800;font-size:18px;margin-bottom:8px}
.pi-story{background:linear-gradient(135deg,#fff8ec,#fdf1f4);border:1px solid #f6dfc4;border-radius:13px;padding:11px 14px;font-size:14px;line-height:1.6;color:#5a4a3a;margin-bottom:12px;box-shadow:0 8px 22px -16px rgba(180,83,9,.4)}
.pi-q{font-size:15.5px;font-weight:600;line-height:1.55;color:#2a2440;margin-bottom:14px}
.pi-sheet{position:sticky;top:14px;background:#fff;border:2px solid #cdeaf2;border-radius:16px;padding:14px;box-shadow:0 20px 46px -28px rgba(8,145,178,.5)}
.pi-sheet-t{font-weight:800;color:#0891b2;font-size:14.5px;text-align:center;padding-bottom:10px;border-bottom:1px dashed #cdeaf2;margin-bottom:10px}
.pi-head{display:flex;justify-content:space-between;gap:10px;background:#f0fbfe;border-radius:10px;padding:10px 12px;margin-bottom:10px}
.pi-head div{display:flex;flex-direction:column}
.pi-head b{font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:#0e7490}
.pi-head span{font-size:13px;font-weight:600;color:#1a1430;margin-top:2px}
.pi-lines{display:flex;flex-direction:column;gap:7px;min-height:40px}
.pi-l{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:9px 12px;border-radius:9px;background:#f8fafc;font-size:13.5px;transition:transform .18s ease,box-shadow .18s ease}
.pi-l:hover{transform:translateX(2px)}
.pi-l span{color:#4b4660}
.pi-l b{white-space:nowrap;font-variant-numeric:tabular-nums}
.pi-l.plus b{color:#0d9488}
.pi-l.brut{background:#eef4ff;color:#1d4ed8;font-weight:800}
.pi-l.minus{background:#fff6f6}.pi-l.minus b{color:#dc2626}
.pi-l.net{background:#e7f9ee;color:#15803d;font-weight:800}
.pi-l.pat{background:#fff3e8;font-size:12.5px}.pi-l.pat b{color:#b45309;font-weight:800}
.pi-l.final{background:linear-gradient(120deg,#0891b2,#06b6d4);color:#fff;font-weight:800;font-size:15px;box-shadow:0 10px 24px -10px rgba(8,145,178,.6)}
.pi-l.final span{color:#fff}
.pi-ex{display:block;font-style:italic;font-size:11px;color:#8a8398;font-weight:400}
.pi-skel{font-size:12.5px;color:#9fb4bd;text-align:center;padding:14px 6px;font-style:italic}
.pop{animation:pipop .55s cubic-bezier(.34,1.46,.42,1), piglow 1.3s ease-out}
@keyframes pipop{0%{opacity:0;transform:translateY(-12px) scale(.94)}60%{opacity:1;transform:translateY(2px) scale(1.015)}100%{opacity:1;transform:none}}
@keyframes piglow{0%{box-shadow:0 0 0 0 rgba(8,145,178,.45)}100%{box-shadow:0 0 0 14px rgba(8,145,178,0)}}
@media(prefers-reduced-motion:reduce){ .pop,.pi-step,.pi-progfill{animation:none;transition:none} }
@media(max-width:760px){ .pi-wrap{grid-template-columns:1fr} .pi-sheet{position:static;order:-1} }
/* ===== Évaluations notées /20 ===== */
.evzone{margin-top:26px;padding-top:18px;border-top:2px dashed #d9c2f0}
.evzone-h{font-family:'Fraunces',serif;font-weight:800;font-size:18px;color:#7c3aed;margin-bottom:12px}
.evzone-sub{font-family:inherit;font-weight:500;font-size:12.5px;color:#8a8398}
.evgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:14px}
.evcard{background:linear-gradient(160deg,#faf7ff,#fff);border:2px solid #d9c2f0;border-radius:18px;padding:16px 18px;box-shadow:0 18px 44px -26px rgba(124,58,237,.55);transition:transform .18s ease,box-shadow .18s ease;position:relative;overflow:hidden}
.evcard:hover{transform:translateY(-3px);box-shadow:0 26px 54px -26px rgba(124,58,237,.65)}
.evcard-band{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.evic{font-size:26px}
.evsur{background:#7c3aed;color:#fff;border-radius:18px;padding:4px 12px;font-weight:800;font-size:12px;letter-spacing:.4px}
.evcard h3{font-family:'Fraunces',serif;font-size:17px;margin:2px 0 6px}
.evcard p{font-size:13.5px;color:#5a5470;line-height:1.5;margin-bottom:8px}
.evmeta{font-size:11.5px;color:#8a8398;margin-bottom:10px}
.evbest{font-size:13px;color:#7c3aed;background:#f3e8ff;border-radius:9px;padding:6px 10px;margin-bottom:10px;font-weight:600}
.evgo{width:100%;background:linear-gradient(120deg,#7c3aed,#9333ea);color:#fff;border-radius:11px;padding:11px;font-weight:800;font-size:14px;cursor:pointer;transition:.15s}
.evgo:hover{filter:brightness(1.08)}
/* Interface de l'évaluation */
.evb{max-width:780px;margin:0 auto}
.evb-steps{display:flex;gap:8px;margin-bottom:6px}
.evb-dot{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;background:#efe9f8;color:#9a90b5;transition:all .35s cubic-bezier(.22,1,.36,1)}
.evb-dot.cur{background:linear-gradient(120deg,#7c3aed,#9333ea);color:#fff;transform:scale(1.18);box-shadow:0 6px 16px -6px rgba(124,58,237,.6)}
.evb-dot.done{background:#e7f9ee;color:#15803d}
.evb-progtxt{font-size:13px;color:#6b6485}
.evb-exo{animation:pistep .45s cubic-bezier(.22,1,.36,1)}
.evb-niv{font-weight:800;color:#7c3aed;font-size:13.5px}
.evb-sur{font-weight:600;color:#8a8398}
.evb-titre{font-family:'Fraunces',serif;font-size:21px;margin:4px 0 8px}
.evb-scn{background:linear-gradient(135deg,#fff8ec,#fdf1f4);border:1px solid #f6dfc4;border-radius:13px;padding:11px 14px;font-size:14px;line-height:1.6;color:#5a4a3a;margin-bottom:10px;box-shadow:0 8px 22px -16px rgba(180,83,9,.4)}
.evb-chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}
.evb-chip{background:#f3e8ff;border:1px solid #d9c2f0;color:#6b21a8;border-radius:18px;padding:5px 12px;font-size:12.5px;font-weight:700;animation:pipop .5s cubic-bezier(.34,1.46,.42,1) both}
.evb-sheet{background:#fff;border:2px solid #d9c2f0;border-radius:16px;overflow:hidden;margin-bottom:14px;box-shadow:0 20px 46px -28px rgba(124,58,237,.5)}
.evb-sheet-t{background:#faf7ff;color:#7c3aed;font-weight:800;font-size:12.5px;padding:10px 14px;border-bottom:1px solid #ecdff7}
.evb-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border-bottom:1px solid #f3eefa;animation:pipop .5s cubic-bezier(.34,1.46,.42,1) both;transition:background .25s}
.evb-row:last-child{border-bottom:none}
.evb-lab{font-size:13.5px;color:#4b4660;line-height:1.45}
.evb-pts{font-style:normal;font-size:11px;color:#9a90b5;font-weight:700}
.evb-row.plus .evb-lab{color:#0d6e64}
.evb-row.minus .evb-lab{color:#b91c1c}
.evb-row.brut{background:#eef4ff}.evb-row.brut .evb-lab{color:#1d4ed8;font-weight:800}
.evb-row.net{background:#e7f9ee}.evb-row.net .evb-lab{color:#15803d;font-weight:800}
.evb-row.cout{background:#fff1e6}.evb-row.cout .evb-lab{color:#b45309;font-weight:800}
.evb-in{width:130px;flex-shrink:0;border:2px solid #d9c2f0;border-radius:9px;padding:8px 10px;font-size:14px;font-weight:700;text-align:right;font-variant-numeric:tabular-nums;background:#faf8fe;transition:border-color .15s,box-shadow .15s}
.evb-in:focus{outline:none;border-color:#7c3aed;box-shadow:0 0 0 3px rgba(124,58,237,.15);background:#fff}
.evb-res{font-weight:800;font-size:13.5px;white-space:nowrap;text-align:right}
.evb-row.ok{background:#e7f9ee;animation:evbok .6s ease}
.evb-row.ok .evb-res{color:#15803d}
.evb-row.bad{background:#fee9e9;animation:evbshake .45s ease}
.evb-row.bad .evb-res{color:#dc2626}
.evb-corr{display:block;font-style:normal;font-size:12px;color:#7c3aed;font-weight:700;margin-top:2px;white-space:normal}
.evb-corr small{color:#8a8398;font-weight:500}
@keyframes evbok{0%{box-shadow:inset 0 0 0 2px #16a34a}100%{box-shadow:inset 0 0 0 0 transparent}}
@keyframes evbshake{0%,100%{transform:translateX(0)}20%{transform:translateX(-6px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(2px)}}
.evb-btn{width:100%}
/* Note finale */
.evb-fin{max-width:640px;margin:0 auto;text-align:center}
.evb-note{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;width:170px;height:170px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#a855f7,#7c3aed 65%);color:#fff;box-shadow:0 26px 60px -18px rgba(124,58,237,.7);margin:6px auto 18px}
.evb-note-v{font-family:'Fraunces',serif;font-weight:900;font-size:52px;line-height:1}
.evb-note-v small{font-size:20px;font-weight:700;opacity:.85}
.evb-note-l{font-size:13px;font-weight:700;margin-top:6px;padding:0 14px}
.evb-break{display:flex;flex-direction:column;gap:9px;margin-bottom:18px;text-align:left}
.evb-bk{display:grid;grid-template-columns:1fr 130px 48px;gap:10px;align-items:center;background:#fff;border:1px solid #ece6f3;border-radius:11px;padding:9px 13px}
.evb-bk-t{font-size:12.5px;font-weight:700;color:#4b4660}
.evb-bk-t span{display:block;font-weight:500;color:#8a8398;font-size:11.5px}
.evb-bar{height:9px;background:#efe9f8;border-radius:8px;overflow:hidden}
.evb-fill{height:100%;background:linear-gradient(90deg,#7c3aed,#c084fc);border-radius:8px;transition:width 1s cubic-bezier(.22,1,.36,1)}
.evb-bk-p{font-weight:800;font-size:13px;color:#7c3aed;text-align:right}
/* Vue prof */
.evt h3{font-family:'Fraunces',serif;font-size:21px;margin-bottom:6px}
.evt-cards{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 14px}
.evt-card{background:linear-gradient(160deg,#faf7ff,#fff);border:1px solid #d9c2f0;border-radius:13px;padding:11px 15px;min-width:240px}
.evt-card-t{font-weight:800;font-size:14px;color:#7c3aed}
.evt-card-s{font-size:11.5px;color:#8a8398;margin:2px 0 5px}
.evt-card-m{font-size:13px;font-weight:600;color:#4b4660}
.evtries{color:#9a90b5;font-weight:500}
@media(max-width:620px){ .evb-row{flex-wrap:wrap} .evb-in{width:100%} .evb-bk{grid-template-columns:1fr 80px 44px} }
/* Onglet Évaluations + calculatrice */
.evzone-tab{margin-top:0;padding-top:0;border-top:none}
.evzone-intro{font-size:14px;color:#5a5470;line-height:1.55;background:#faf7ff;border:1px solid #e7dbf6;border-radius:12px;padding:11px 14px;margin-bottom:14px}
.evb-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.calc-toggle{background:#fff;border:2px solid #d9c2f0;color:#7c3aed;border-radius:11px;padding:9px 14px;font-weight:800;font-size:13px;cursor:pointer;transition:.15s;flex-shrink:0}
.calc-toggle:hover{background:#faf7ff;transform:translateY(-1px)}
.calc{position:fixed;top:92px;right:18px;z-index:80;width:232px;background:#fff;border:2px solid #d9c2f0;border-radius:16px;box-shadow:0 26px 60px -18px rgba(124,58,237,.6);overflow:hidden;animation:pipop .4s cubic-bezier(.34,1.46,.42,1)}
.calc-head{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(120deg,#7c3aed,#9333ea);color:#fff;padding:8px 11px;font-weight:800;font-size:13px;cursor:move;user-select:none;touch-action:none}
.calc-hint{font-style:normal;font-weight:500;font-size:10.5px;opacity:.85}
.calc-x{background:rgba(255,255,255,.2);color:#fff;border-radius:7px;width:24px;height:24px;font-weight:800;font-size:12px;cursor:pointer;flex-shrink:0}
.calc-screen{padding:12px 14px;text-align:right;font-variant-numeric:tabular-nums;font-weight:800;font-size:22px;min-height:30px;background:#faf7ff;color:#1a1430;word-break:break-all;line-height:1.2}
.calc-keys{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:10px;grid-auto-flow:row dense}
.calc-k{padding:11px 0;border-radius:10px;background:#f3eefa;font-weight:800;font-size:16px;cursor:pointer;transition:transform .08s,background .12s}
.calc-k:hover{background:#e9defa}
.calc-k:active{transform:scale(.92)}
.calc-op{background:#ede4fb;color:#7c3aed}
.calc-eq{grid-row:span 2;background:linear-gradient(160deg,#7c3aed,#9333ea);color:#fff}
.calc-zero{grid-column:span 2}
@media(max-width:620px){ .calc{right:3vw;top:auto;bottom:14px;width:min(232px,82vw)} }
/* ===== Jeux « L'organisation » (Thème 1 SDGN) — design partagé ===== */
.org-intro{text-align:center;max-width:680px;margin:0 auto;animation:pistep .5s cubic-bezier(.22,1,.36,1)}
.org-intro-emoji{font-size:48px;animation:pipop .6s cubic-bezier(.34,1.46,.42,1)}
.org-intro h2{font-family:'Fraunces',serif;font-size:26px;margin:6px 0 10px}
.org-intro>p{color:#5a5470;font-size:15px;line-height:1.6;margin-bottom:16px}
.org-def-box{background:linear-gradient(135deg,#eef6ff,#f3f0ff);border:1px solid #cdd9f5;border-radius:14px;padding:14px 16px;font-size:14.5px;line-height:1.6;color:#37345a;text-align:left}
.org-sub{font-size:14px;color:#5a5470;margin:12px 0 10px}
.org-h2{font-family:'Fraunces',serif;font-weight:800;font-size:20px;margin-bottom:10px;display:flex;align-items:baseline;gap:8px}
.org-h2 small{font-weight:600;color:#9a90b5;font-size:13px}
.org-prog{height:7px;background:#ece6f3;border-radius:10px;overflow:hidden;margin-bottom:14px}
.org-prog-fill{display:block;height:100%;background:#0284c7;border-radius:10px;transition:width .6s cubic-bezier(.22,1,.36,1)}
.org-scn{background:linear-gradient(135deg,#fff8ec,#fdf1f4);border:1px solid #f6dfc4;border-radius:14px;padding:14px 16px;font-size:15.5px;line-height:1.6;color:#4a3f33;margin-bottom:14px;box-shadow:0 8px 22px -16px rgba(180,83,9,.4)}
.org-choices{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-bottom:6px}
.org-choices-4{grid-template-columns:1fr 1fr}
.org-choice{display:flex;flex-direction:column;align-items:center;gap:6px;padding:16px 12px;border-radius:14px;background:#fff;border:2px solid #ece6f3;font-weight:700;font-size:14px;cursor:pointer;transition:transform .14s,border-color .14s,box-shadow .14s;text-align:center;color:#2a2440}
.org-choice:hover{transform:translateY(-3px);border-color:var(--oc,#0284c7);box-shadow:0 14px 30px -20px var(--oc,#0284c7)}
.org-choice-ic{font-size:28px}
.org-choice.ok{border-color:#16a34a;background:#e7f9ee;animation:evbok .6s ease}
.org-choice.bad{border-color:#dc2626;background:#fee9e9;animation:evbshake .45s ease}
.org-choice-sm{flex-direction:row;justify-content:flex-start;text-align:left;font-size:13.5px}
@media(max-width:640px){ .org-choices,.org-choices-4{grid-template-columns:1fr} }
/* Jeu 1 — pourquoi */
.org-pq-cards{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin:16px 0}
.org-pq-card{background:#fff;border:2px solid var(--oc);border-radius:16px;padding:16px 14px;text-align:center;box-shadow:0 16px 36px -26px var(--oc);animation:pipop .55s cubic-bezier(.34,1.46,.42,1) both}
.org-pq-ic{font-size:32px}
.org-pq-card h3{font-size:15px;margin:6px 0;color:var(--oc)}
.org-pq-card p{font-size:12.5px;color:#5a5470;line-height:1.5}
.org-forme-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0 16px}
.org-forme-card{text-align:left;background:#fff;border:2px solid #ece6f3;border-radius:14px;padding:13px;cursor:pointer;transition:.15s;animation:pipop .5s cubic-bezier(.34,1.46,.42,1) both}
.org-forme-card:hover{border-color:#7c3aed;transform:translateY(-2px)}
.org-forme-card.on{border-color:#7c3aed;background:#faf7ff}
.org-forme-sig{display:inline-block;background:#7c3aed;color:#fff;font-weight:800;font-size:13px;border-radius:8px;padding:3px 10px;margin-bottom:6px}
.org-forme-sig.sm{margin:0 8px 0 0;flex-shrink:0}
.org-forme-nom{font-weight:700;font-size:14px;color:#2a2440}
.org-forme-det{margin-top:8px;font-size:12.5px;color:#5a5470;line-height:1.5;animation:pipop .4s ease}
.org-forme-det p{margin:3px 0}
@media(max-width:640px){ .org-pq-cards,.org-forme-grid{grid-template-columns:1fr} }
/* Jeu 2 — ressources (resj-card : `.res-card` est la carte de la page
   Ressources, et le meme nom lui retirait son liseré violet) */
.resj-card{background:#fff;border:2px solid #d3eede;border-radius:18px;padding:16px 18px;box-shadow:0 20px 46px -28px rgba(22,163,74,.45)}
.res-elem{font-family:'Fraunces',serif;font-size:22px;font-weight:800;text-align:center;color:#15803d;margin-bottom:12px}
.res-q{font-size:14.5px;font-weight:600;color:#2a2440;margin:8px 0 8px}
.res-q2{margin-top:16px;padding-top:14px;border-top:1px dashed #d3eede}
.res-q small{font-weight:500;color:#9a90b5}
.res-types,.res-orgs{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:10px}
.res-type,.res-org{display:flex;align-items:center;gap:9px;padding:11px 13px;border-radius:11px;background:#f8fafc;border:2px solid #e8eef3;font-weight:700;font-size:13.5px;cursor:pointer;transition:.13s;text-align:left;color:#2a2440}
.res-type:hover,.res-org:hover{border-color:var(--oc,#16a34a);transform:translateX(2px)}
.res-type.sel,.res-org.sel{border-color:var(--oc,#16a34a);background:#fff}
.res-box{font-size:18px;flex-shrink:0}
.res-emoji{font-size:18px}
.res-type.ok,.res-org.ok{border-color:#16a34a;background:#e7f9ee}
.res-type.bad,.res-org.bad{border-color:#dc2626;background:#fee9e9}
@media(max-width:560px){ .res-types,.res-orgs{grid-template-columns:1fr} }
/* Jeux 3 & 5 — schéma à relier */
.prop-schema{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}
.prop-row{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #ece6f3;border-radius:12px;padding:11px 13px;animation:pipop .5s cubic-bezier(.34,1.46,.42,1) both}
.prop-org{flex:0 0 200px;display:flex;align-items:center;gap:8px;font-size:14px}
.prop-emoji{font-size:22px}
.prop-arrow{color:#9a90b5;font-size:12.5px;font-weight:700;flex-shrink:0}
.prop-slot{flex:1;min-height:42px;border:2px dashed #c9b6e8;border-radius:10px;background:#faf7ff;color:#6b21a8;font-weight:700;font-size:13.5px;cursor:pointer;padding:8px 10px;transition:.13s}
.prop-slot.full{border-style:solid;border-color:#7c3aed;background:#f3e8ff}
.prop-slot.ok{border-color:#16a34a;background:#e7f9ee;color:#15803d}
.prop-slot.bad{border-color:#dc2626;background:#fee9e9;color:#dc2626}
.prop-verdict{font-size:18px;flex-shrink:0;font-weight:800}
.prop-bank{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:14px}
.prop-brick{padding:11px 15px;border-radius:11px;background:#ede4fb;border:2px solid #d4c2f0;color:#6b21a8;font-weight:700;font-size:13.5px;cursor:pointer;transition:.13s}
.prop-brick:hover:not(.used){background:#e2d3f8;transform:translateY(-2px)}
.prop-brick.active{background:#7c3aed;color:#fff;border-color:#7c3aed;box-shadow:0 8px 20px -8px rgba(124,58,237,.6)}
.prop-brick.used{opacity:.32;cursor:default}
@media(max-width:560px){ .prop-row{flex-wrap:wrap} .prop-org{flex:1 1 100%} .prop-arrow{display:none} }
/* Vrai/Faux (jeu 3) */
/* ⚠️ `vf3-` ET PAS `vf-` : le jeu à cartes déclare son propre `.vf-btns`
   1 000 lignes plus haut, et la dernière déclaration l'emportait sur
   l'autre (piège N appliqué au nom de bloc). Renommer ici seulement, et
   dans le composant qui va avec. */
.vf3-btns{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:6px}
.vf-btn{padding:18px;border-radius:14px;font-weight:800;font-size:16px;cursor:pointer;border:2px solid #ece6f3;background:#fff;transition:.14s}
.vf-true:hover{border-color:#16a34a;background:#e7f9ee;transform:translateY(-2px)}
.vf-false:hover{border-color:#dc2626;background:#fee9e9;transform:translateY(-2px)}
.vf-btn.ok{border-color:#16a34a;background:#e7f9ee;animation:evbok .6s ease}
.vf-btn.bad{border-color:#dc2626;background:#fee9e9;animation:evbshake .45s ease}
/* Jeu 4 — gouvernement */
.gouv-modes{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin:16px 0}
.gouv-mode{background:#fff;border:2px solid var(--oc);border-radius:16px;padding:15px 13px;text-align:center;box-shadow:0 16px 36px -26px var(--oc);animation:pipop .55s cubic-bezier(.34,1.46,.42,1) both}
.gouv-mode-ic{font-size:30px}
.gouv-mode h3{font-size:14.5px;margin:6px 0;color:var(--oc)}
.gouv-mode p{font-size:12.5px;color:#5a5470;line-height:1.5}
/* Jeu 5 — contrôle */
.ctrl-cards{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin:16px 0}
.ctrl-card{background:#fff;border:2px solid #e4daf3;border-radius:16px;padding:15px 13px;text-align:center;box-shadow:0 16px 36px -26px rgba(124,58,237,.4);animation:pipop .55s cubic-bezier(.34,1.46,.42,1) both}
.ctrl-emoji{font-size:30px}
.ctrl-card h3{font-size:14px;margin:6px 0}
.ctrl-inst{font-size:12.5px;font-weight:700;color:#7c3aed;background:#f3e8ff;border-radius:9px;padding:6px 8px;margin-top:6px}
@media(max-width:640px){ .gouv-modes,.ctrl-cards{grid-template-columns:1fr} }
/* Illustration SVG sous chaque question (responsive PC + mobile) */
.org-ill{margin:0 auto 14px;max-width:300px;background:linear-gradient(135deg,#f8fbff,#fbf7ff);border:1px solid #e7edf6;border-radius:16px;padding:8px;box-shadow:0 12px 30px -24px rgba(40,40,90,.45);animation:pipop .5s cubic-bezier(.34,1.46,.42,1)}
.org-ill svg{display:block;width:100%;height:auto}
@media(max-width:560px){ .org-ill{max-width:200px} }
/* Carrousel d'exemples animés (écrans d'intro) */
.org-ex{margin-top:10px;border-top:1px dashed #e7e0ee;padding-top:8px}
.org-ex-track{position:relative;min-height:46px}
.org-ex-item{position:absolute;inset:0;display:flex;align-items:center;gap:9px;opacity:0;transform:translateY(6px);transition:opacity .5s,transform .5s;pointer-events:none;text-align:left}
.org-ex-item.on{opacity:1;transform:none}
.org-ex-emoji{font-size:24px;flex-shrink:0;filter:drop-shadow(0 2px 4px rgba(0,0,0,.12))}
.org-ex-txt{display:flex;flex-direction:column;line-height:1.25}
.org-ex-txt b{font-size:13px;color:var(--oc,#333)}
.org-ex-txt span{font-size:11.5px;color:#7a7390}
.org-ex-dots{display:flex;gap:5px;justify-content:center;margin-top:6px}
.org-ex-dots i{width:6px;height:6px;border-radius:50%;background:#d8d2e0;cursor:pointer;transition:.2s}
.org-ex-dots i.on{background:var(--oc,#7c3aed);width:18px;border-radius:4px}
/* Encadré « notion expliquée » */
.org-notion{background:#fffbeb;border:1px solid #fde9b8;border-left:4px solid #f59e0b;border-radius:0 10px 10px 0;padding:9px 12px;margin:4px 0 10px;font-size:13px;line-height:1.5;color:#5a4a2a}
.org-notion-mot{font-weight:800;color:#b45309}
.prop-corr{margin-bottom:4px}
/* ===== Entretien d'évaluation : simulateur d'indicateurs ===== */
.ind-card{background:#fff;border:2px solid #cce9e4;border-radius:18px;padding:16px 18px;margin-bottom:14px;box-shadow:0 20px 46px -28px rgba(13,148,136,.45)}
.ind-h{font-family:'Fraunces',serif;font-weight:800;font-size:18px;color:#0d9488;margin-bottom:10px}
.ind-h2{color:#b45309}
.ind-formula{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:linear-gradient(135deg,#f0fdfa,#f8fbff);border:1px dashed #b9e3db;border-radius:12px;padding:12px 14px;margin-bottom:14px;font-size:14px}
.ind-num,.ind-den{font-weight:700;color:#0f766e;background:#fff;border-radius:8px;padding:4px 9px;border:1px solid #cce9e4}
.ind-h2~.ind-formula .ind-num,.ind-h2~.ind-formula .ind-den{color:#b45309;border-color:#f3dcc0}
.ind-op{font-weight:800;color:#64748b;font-size:18px}
.ind-eq,.ind-eq2{font-weight:800;color:#0d9488;background:#ccfbf1;border-radius:8px;padding:4px 10px;font-size:16px;font-variant-numeric:tabular-nums}
.ind-h2~.ind-formula .ind-eq{color:#b45309;background:#fef0e0}
.ind-unit{font-weight:700;color:#64748b}
.ind-ctrl{margin-bottom:12px}
.ind-ctrl label{display:block;font-size:14px;font-weight:600;margin-bottom:6px}
.ind-ctrl input[type=range]{width:100%;accent-color:#0d9488}
.ind-h2~.ind-ctrl input,.ind-card:nth-of-type(2) input[type=range]{accent-color:#b45309}
.ind-calc{text-align:center;font-size:15px;color:#334155;background:#f8fafc;border-radius:10px;padding:9px;margin-bottom:8px;font-variant-numeric:tabular-nums}
.ind-verdict{text-align:center;font-weight:700;font-size:14px;border-radius:10px;padding:9px;margin-bottom:8px}
.v-top{background:#dcfce7;color:#15803d}.v-ok{background:#d1fae5;color:#0f766e}.v-mid{background:#fef9c3;color:#a16207}.v-low{background:#fee2e2;color:#b91c1c}
.ind-note{font-size:12.5px;line-height:1.5;color:#5a5470;background:#f0fdfa;border:1px solid #cce9e4;border-radius:10px;padding:9px 12px}
.ind-paren{font-weight:900;font-size:22px;color:#d97706;line-height:1}
.ind-cp{font-weight:900;color:#d97706}
.ind-paren-note{font-size:12.5px;line-height:1.5;color:#7c4a02;background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;padding:9px 12px;margin-bottom:8px}
.ind-paren-note u{text-decoration-color:#d97706}
/* ===== Tableau de bord ===== */
.dash{background:linear-gradient(160deg,#0f172a,#1e293b);border-radius:20px;padding:18px;margin-bottom:14px;box-shadow:0 30px 70px -30px rgba(15,23,42,.8);color:#e2e8f0}
.dash-id{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.dash-av{width:50px;height:50px;border-radius:14px;background:linear-gradient(135deg,#0d9488,#14b8a6);display:flex;align-items:center;justify-content:center;font-size:26px;box-shadow:0 8px 20px -8px rgba(13,148,136,.7)}
.dash-nom{font-family:'Fraunces',serif;font-weight:800;font-size:18px;color:#fff}
.dash-role{font-size:12px;color:#94a3b8}
.dash-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin-bottom:16px}
.dash-gauge{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:12px 8px;text-align:center}
.dash-gauge svg{width:96px;height:96px;display:block;margin:0 auto}
.gauge-l{font-size:11.5px;font-weight:700;margin-top:4px;color:#e2e8f0;line-height:1.25}
.gauge-s{font-size:11px;color:#94a3b8;margin-top:2px}
.dash-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}
.dk{background:rgba(255,255,255,.05);border-radius:12px;padding:11px 8px;text-align:center}
.dk-v{font-family:'Fraunces',serif;font-weight:800;font-size:19px;color:#5eead4}
.dk-l{font-size:10.5px;color:#94a3b8;margin-top:2px;line-height:1.2}
.dash-bars{background:rgba(255,255,255,.04);border-radius:14px;padding:12px 14px;margin-bottom:12px}
.db-row{display:flex;align-items:center;gap:10px;margin-bottom:8px;font-size:12.5px}
.db-row:last-child{margin-bottom:0}
.db-row span{width:52px;color:#94a3b8;flex-shrink:0}
.db-row b{width:38px;text-align:right;color:#e2e8f0;font-variant-numeric:tabular-nums}
.db-track{flex:1;height:14px;background:rgba(255,255,255,.08);border-radius:8px;overflow:hidden}
.db-fill{height:100%;background:linear-gradient(90deg,#0d9488,#2dd4bf);border-radius:8px;width:0;animation:dbgrow 1.1s cubic-bezier(.22,1,.36,1) forwards}
.db-fill.db-low{background:linear-gradient(90deg,#f59e0b,#fbbf24)}
@keyframes dbgrow{from{width:0 !important}}
.dash-read{font-size:13px;line-height:1.5;color:#cbd5e1;background:rgba(245,158,11,.12);border:1px solid rgba(245,158,11,.3);border-radius:10px;padding:10px 12px}
@media(max-width:620px){ .dash-grid{grid-template-columns:1fr} .dash-kpis{grid-template-columns:1fr 1fr} }
/* ===== Jeu de rôle ===== */
.rp-prog{height:7px;background:#cce9e4;border-radius:10px;overflow:hidden;margin-bottom:12px}
.rp-prog-fill{display:block;height:100%;background:linear-gradient(90deg,#0d9488,#2dd4bf);border-radius:10px;transition:width .5s cubic-bezier(.22,1,.36,1)}
.rp-moment{font-family:'Fraunces',serif;font-weight:800;font-size:18px;margin-bottom:8px}
.rp-moment small{font-family:inherit;font-weight:500;color:#9a90b5;font-size:12.5px}
.rp-scene{font-size:13.5px;font-style:italic;color:#64748b;background:#f8fafc;border-left:3px solid #cbd5e1;border-radius:0 8px 8px 0;padding:8px 12px;margin-bottom:12px}
.rp-bubble{display:flex;gap:10px;align-items:flex-start;margin-bottom:14px}
.rp-av{width:42px;height:42px;border-radius:50%;background:#fce7f3;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0}
.rp-lea .rp-txt{background:#fff;border:2px solid #f5d0e5;border-radius:4px 16px 16px 16px;padding:11px 14px;font-size:14.5px;color:#2a2440;box-shadow:0 10px 26px -20px rgba(225,29,72,.5);position:relative}
.rp-you{font-size:14px;color:#0f766e;background:#f0fdfa;border-radius:12px;padding:10px 13px;margin-bottom:12px}
.rp-opts{display:flex;flex-direction:column;gap:9px;margin-bottom:6px}
.rp-opt{text-align:left;padding:13px 15px;border-radius:13px;background:#fff;border:2px solid #e2e8f0;font-size:14px;font-weight:600;color:#2a2440;cursor:pointer;transition:transform .14s,border-color .14s,box-shadow .14s;line-height:1.4}
.rp-opt:hover{transform:translateX(3px);border-color:#0d9488;box-shadow:0 12px 26px -20px rgba(13,148,136,.6)}
.rp-opt.ok{border-color:#16a34a;background:#e7f9ee;animation:evbok .6s ease}
.rp-opt.bad{border-color:#dc2626;background:#fee9e9;animation:evbshake .45s ease}
/* Bascule des rôles */
.rp-switch{text-align:center;max-width:560px;margin:0 auto;animation:pistep .5s cubic-bezier(.22,1,.36,1)}
.rp-switch-ic{font-size:54px;animation:rpspin 1s cubic-bezier(.34,1.46,.42,1)}
@keyframes rpspin{0%{transform:rotate(-180deg) scale(.4);opacity:0}100%{transform:none;opacity:1}}
.rp-switch h2{font-family:'Fraunces',serif;font-size:24px;margin:6px 0 10px}
.rp-switch p{color:#5a5470;font-size:14.5px;line-height:1.6;margin-bottom:10px}
.rp-switch-hint{background:#f0fdfa;border:1px solid #cce9e4;border-radius:12px;padding:11px 14px;font-size:14px;font-weight:600;color:#0f766e;margin:6px 0 16px}
/* Jeu de rôle inversé (Léa) */
.rp-roletag{display:inline-block;background:#fce7f3;color:#9d2463;border:1px solid #f5d0e5;border-radius:18px;padding:5px 13px;font-size:12.5px;font-weight:700;margin-bottom:10px}
.rp-prog-lea{background:linear-gradient(90deg,#db2777,#f472b6)}
.rp-bubble.rp-boss .rp-txt{background:#fff;border:2px solid #cdd9f5;border-radius:4px 16px 16px 16px;padding:11px 14px;font-size:14.5px;color:#2a2440;box-shadow:0 10px 26px -20px rgba(37,99,235,.5)}
.rp-av-boss{background:#e0e9ff}
.rp-you-lea{color:#9d2463;background:#fdf2f8}
/* ===== Jeux « De l'individu à l'acteur » (moteur IndivGame) ===== */
.iv-intro{max-width:640px;margin:0 auto;text-align:center;animation:pistep .5s cubic-bezier(.22,1,.36,1)}
.iv-hero{background:linear-gradient(160deg,var(--oc),color-mix(in srgb,var(--oc) 70%,#000));border-radius:20px;padding:18px;color:#fff;margin-bottom:16px;box-shadow:0 24px 56px -28px var(--oc)}
.iv-hero-emoji{font-size:44px;animation:pipop .6s cubic-bezier(.34,1.46,.42,1)}
.iv-hero h2{font-family:'Fraunces',serif;font-size:23px;margin:4px 0 8px;color:#fff}
.iv-hero p{font-size:13.5px;line-height:1.55;color:rgba(255,255,255,.92)}
.iv-card{background:#fff;border:2px solid var(--oc);border-radius:18px;padding:16px 18px;text-align:left;box-shadow:0 20px 46px -28px var(--oc);animation:ivflip .5s cubic-bezier(.22,1,.36,1)}
@keyframes ivflip{0%{opacity:0;transform:translateY(10px) scale(.98)}100%{opacity:1;transform:none}}
.iv-card-top{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.iv-card-emoji{font-size:38px;line-height:1}
.iv-card-nom{font-family:'Fraunces',serif;font-weight:800;font-size:19px;color:var(--oc)}
.iv-card-tag{font-size:12.5px;font-weight:600;color:#8a8398}
.iv-card-def{font-size:14px;line-height:1.55;color:#3a3550;margin-bottom:10px}
.iv-card-ex{font-size:13px;line-height:1.5;color:#5a5470;background:color-mix(in srgb,var(--oc) 8%,#fff);border:1px solid color-mix(in srgb,var(--oc) 25%,#fff);border-radius:11px;padding:9px 12px}
.iv-ex-lab{font-weight:800;color:var(--oc);margin-right:4px}
.iv-dots{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:14px 0}
.iv-dot{width:42px;height:42px;border-radius:12px;border:2px solid #e8e3f0;background:#fff;font-size:20px;cursor:pointer;transition:.16s;display:flex;align-items:center;justify-content:center}
.iv-dot:hover{transform:translateY(-2px)}
.iv-dot.on{border-color:var(--oc);background:color-mix(in srgb,var(--oc) 12%,#fff);transform:translateY(-2px) scale(1.08);box-shadow:0 8px 18px -8px var(--oc)}
.iv-prog{height:7px;background:#ece6f3;border-radius:10px;overflow:hidden;margin-bottom:12px}
.iv-prog-fill{display:block;height:100%;border-radius:10px;transition:width .5s cubic-bezier(.22,1,.36,1)}
.iv-moment{font-family:'Fraunces',serif;font-weight:800;font-size:18px;margin-bottom:8px}
.iv-moment small{font-family:inherit;font-weight:500;color:#9a90b5;font-size:12.5px}
.iv-scene{font-size:13.5px;font-style:italic;color:#64748b;background:#f8fafc;border-left:3px solid #cbd5e1;border-radius:0 8px 8px 0;padding:8px 12px;margin-bottom:12px}
.iv-bubble{display:flex;gap:10px;align-items:flex-start;margin-bottom:11px}
.iv-av{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0}
.iv-av-boss{background:#e0e9ff}
.iv-av-sal{background:#dcfce7}
.iv-boss .iv-txt{background:#fff;border:2px solid #cdd9f5;border-radius:4px 16px 16px 16px;padding:11px 14px;font-size:14.5px;color:#2a2440;box-shadow:0 10px 26px -20px rgba(37,99,235,.5)}
.iv-sal .iv-txt{background:#fff;border:2px solid #bbf0cf;border-radius:4px 16px 16px 16px;padding:11px 14px;font-size:14.5px;color:#2a2440;box-shadow:0 10px 26px -20px rgba(13,148,136,.5)}
.iv-q{font-size:15px;font-weight:700;color:#2a2440;margin:12px 0 12px;background:#faf7ff;border-radius:11px;padding:10px 13px}
.iv-opts{display:flex;flex-direction:column;gap:9px;margin-bottom:6px}
.iv-opt{display:flex;align-items:center;gap:10px;text-align:left;padding:13px 15px;border-radius:13px;background:#fff;border:2px solid #e2e8f0;font-size:14px;font-weight:600;color:#2a2440;cursor:pointer;transition:transform .14s,border-color .14s,box-shadow .14s;line-height:1.4}
.iv-opt:hover{transform:translateX(3px);border-color:#7c3aed;box-shadow:0 12px 26px -20px rgba(124,58,237,.6)}
.iv-opt-emoji{font-size:22px;flex-shrink:0}
.iv-opt.ok{border-color:#16a34a;background:#e7f9ee;animation:evbok .6s ease}
.iv-opt.bad{border-color:#dc2626;background:#fee9e9;animation:evbshake .45s ease}
/* ===== Jeu « La communication entre les individus » ===== */
.cm-intro{max-width:640px;margin:0 auto;text-align:center;animation:pistep .5s cubic-bezier(.22,1,.36,1)}
.cm-hero{background:linear-gradient(160deg,#0ea5e9,#0369a1);border-radius:20px;padding:18px;color:#fff;margin-bottom:16px;box-shadow:0 24px 56px -28px #0ea5e9}
.cm-hero-emoji{font-size:44px;animation:pipop .6s cubic-bezier(.34,1.46,.42,1)}
.cm-hero h2{font-family:'Fraunces',serif;font-size:23px;margin:4px 0 8px;color:#fff}
.cm-hero p{font-size:13.5px;line-height:1.55;color:rgba(255,255,255,.92)}
.cm-steps-list{display:flex;flex-direction:column;gap:9px;margin-bottom:16px;text-align:left}
.cm-stepcard{display:flex;align-items:center;gap:12px;background:#fff;border:2px solid var(--oc);border-radius:14px;padding:12px 14px;box-shadow:0 14px 32px -26px var(--oc)}
.cm-stepcard span{width:30px;height:30px;border-radius:50%;background:var(--oc);color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.cm-stepcard b{font-size:14.5px;color:#2a2440;display:block}
.cm-stepcard small{font-size:12px;color:#8a8398}
.cm-substep{font-family:'Fraunces',serif;font-weight:800;font-size:18px;margin-bottom:10px;color:#0369a1}
.cm-sub-sm{font-size:15px}
.cm-sub-g{color:#15803d}.cm-sub-o{color:#b45309}.cm-sub-v{color:#6b21a8}
.cm-defbox{background:linear-gradient(135deg,#eff6ff,#f0fdfa);border:1px solid #cde3f5;border-radius:14px;padding:13px 15px;font-size:14px;line-height:1.55;color:#37425a;margin-bottom:14px}
.cm-card{background:#fff;border:2px solid var(--oc);border-radius:18px;padding:16px 18px;text-align:left;box-shadow:0 20px 46px -28px var(--oc);animation:ivflip .5s cubic-bezier(.22,1,.36,1)}
.cm-card-top{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.cm-card-emoji{font-size:34px}
.cm-card-nom{font-family:'Fraunces',serif;font-weight:800;font-size:19px;color:var(--oc)}
.cm-card-def{font-size:14px;line-height:1.55;color:#3a3550;margin-bottom:10px}
.cm-card-ex{font-size:13px;line-height:1.5;color:#5a5470;background:color-mix(in srgb,var(--oc) 8%,#fff);border:1px solid color-mix(in srgb,var(--oc) 22%,#fff);border-radius:11px;padding:9px 12px}
.cm-dots{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:14px 0}
.cm-dot{width:40px;height:40px;border-radius:11px;border:2px solid #e2e8f0;background:#fff;font-size:19px;cursor:pointer;transition:.16s}
.cm-dot.on{border-color:var(--oc);background:color-mix(in srgb,var(--oc) 12%,#fff);transform:translateY(-2px) scale(1.08);box-shadow:0 8px 18px -8px var(--oc)}
.cm-prog{height:7px;background:#e2e8f0;border-radius:10px;overflow:hidden;margin-bottom:12px}
.cm-prog span{display:block;height:100%;border-radius:10px;transition:width .5s cubic-bezier(.22,1,.36,1)}
/* scène de communication (étape 1) */
.cm-scene-comm{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.cm-pers{font-size:38px;flex-shrink:0;animation:pipop .5s cubic-bezier(.34,1.46,.42,1)}
.cm-bubble{flex:1;background:#fff;border:2px solid #cde3f5;border-radius:16px;padding:12px 15px;font-size:14.5px;color:#2a2440;box-shadow:0 12px 30px -22px rgba(14,165,233,.6);position:relative;text-align:center}
.cm-quote{background:#fff;border:2px solid #bbf0cf;border-left:5px solid #16a34a;border-radius:0 14px 14px 0;padding:14px 16px;font-size:15.5px;font-style:italic;color:#1a3a26;margin-bottom:14px;box-shadow:0 12px 30px -24px rgba(22,163,74,.5)}
.cm-q{font-size:15px;font-weight:700;color:#2a2440;margin:6px 0 12px;background:#f8fafc;border-radius:11px;padding:10px 13px}
.cm-opts{display:flex;flex-direction:column;gap:9px;margin-bottom:6px}
.cm-opt{display:flex;align-items:center;gap:10px;text-align:left;padding:13px 15px;border-radius:13px;background:#fff;border:2px solid #e2e8f0;font-size:14px;font-weight:600;color:#2a2440;cursor:pointer;transition:transform .14s,border-color .14s,box-shadow .14s;line-height:1.4}
.cm-opt:hover{transform:translateX(3px);border-color:#0ea5e9;box-shadow:0 12px 26px -20px rgba(14,165,233,.6)}
.cm-opt-emoji{font-size:21px;flex-shrink:0}
.cm-opt.ok{border-color:#16a34a;background:#e7f9ee;animation:evbok .6s ease}
.cm-opt.bad{border-color:#dc2626;background:#fee9e9;animation:evbshake .45s ease}
/* écoute active */
.cm-org{display:inline-block;background:#f3e8ff;color:#6b21a8;border:1px solid #e4d0f7;border-radius:16px;padding:4px 12px;font-size:12.5px;font-weight:700;margin-bottom:8px}
.cm-scene-txt{font-size:13.5px;font-style:italic;color:#64748b;background:#f8fafc;border-left:3px solid #cbd5e1;border-radius:0 8px 8px 0;padding:8px 12px;margin-bottom:10px}
.cm-bubble2{display:flex;gap:10px;align-items:flex-start;margin-bottom:8px}
.cm-av{width:42px;height:42px;border-radius:50%;background:#fde7c8;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0}
.cm-bubble2 .cm-txt{background:#fff;border:2px solid #f3dcb8;border-radius:4px 16px 16px 16px;padding:11px 14px;font-size:14.5px;color:#2a2440;box-shadow:0 10px 26px -20px rgba(180,83,9,.4)}
/* glisser-déposer signes */
.cm-help{font-size:12.5px;color:#64748b;margin-bottom:10px}
.cm-pool{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px;min-height:30px}
.cm-chip{background:#eef2ff;border:2px solid #c7d2fe;color:#3730a3;border-radius:20px;padding:8px 14px;font-size:13px;font-weight:600;cursor:pointer;transition:.14s}
.cm-chip:hover{transform:translateY(-2px)}
.cm-chip.held{background:#4f46e5;color:#fff;border-color:#4f46e5;box-shadow:0 8px 18px -8px rgba(79,70,229,.7);transform:scale(1.04)}
.cm-pool-empty{font-size:13px;color:#16a34a;font-weight:600;padding:6px}
.cm-baskets{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-bottom:14px}
.cm-basket{background:#fff;border:2px dashed color-mix(in srgb,var(--oc) 45%,#fff);border-radius:14px;padding:10px;min-height:120px;transition:.16s;cursor:pointer}
.cm-basket.target{border-style:solid;border-color:var(--oc);background:color-mix(in srgb,var(--oc) 7%,#fff);box-shadow:0 10px 26px -18px var(--oc)}
.cm-basket-h{font-weight:800;font-size:13.5px;color:var(--oc);text-align:center;padding-bottom:8px;border-bottom:1px solid color-mix(in srgb,var(--oc) 20%,#fff);margin-bottom:8px}
.cm-basket-body{display:flex;flex-direction:column;gap:6px}
.cm-dropped{background:#f8fafc;border:1px solid #e2e8f0;border-radius:9px;padding:7px 9px;font-size:12px;color:#2a2440;cursor:pointer;animation:pipop .4s ease}
.cm-dropped.ok{background:#e7f9ee;border-color:#16a34a;color:#15803d}
.cm-dropped.bad{background:#fee9e9;border-color:#dc2626;color:#b91c1c}
@media(max-width:620px){ .cm-baskets{grid-template-columns:1fr} .cm-basket{min-height:auto} }
/* ===== Mode administrateur (Étape 3) ===== */
.adm-fab{position:fixed;right:16px;bottom:76px;z-index:9001;border:none;border-radius:30px;padding:11px 16px;font-size:15px;font-weight:800;cursor:pointer;background:#1f2937;color:#fff;box-shadow:0 12px 30px -10px rgba(0,0,0,.5);opacity:.55;transition:.2s}
.adm-fab:hover{opacity:1;transform:translateY(-2px)}
.adm-fab.on{background:linear-gradient(135deg,#0d9488,#14b8a6);opacity:1}
.adm-fab.backup{background:#f59e0b;opacity:1;font-size:18px;padding:10px 13px}
.bk-row{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}
.bk-msg{background:#f1f5f9;border-radius:9px;padding:9px 12px;font-size:13.5px;color:#334155;margin-top:6px}
.role-badge{display:inline-block;background:rgba(30,27,55,.16);color:#1e1b37;font-size:11px;font-weight:700;padding:2px 9px;border-radius:20px;margin-left:8px;vertical-align:middle}
.ident-badge{display:inline-block;background:rgba(124,58,237,.14);color:#5b21b6;font-size:11px;font-weight:700;padding:2px 9px;border-radius:20px;margin-left:8px;vertical-align:middle}
/* Écrans élève d'un TàF (lanceur : liste, entre-deux, bilan) */
.tafr-tete{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:center;margin-bottom:10px}
.tafr-badge{background:#7c3aed;color:#fff;font-size:11.5px;font-weight:700;padding:4px 12px;border-radius:999px;white-space:nowrap}
.tafr-prof{font-size:12.5px;color:#64748b}
.tafr-prof b{color:#5b21b6}
.tafr-ech{display:inline-block;margin:0 auto 10px;background:#f5f3ff;border:1px solid #ddd6fe;color:#5b21b6;font-size:12.5px;font-weight:600;padding:5px 13px;border-radius:999px}
.tafr-ech.tard{background:#fff7ed;border-color:#fed7aa;color:#b45309}
.tafr-consigne{margin:0 0 10px;font-size:13.5px;line-height:1.6;color:#475569;background:#f8fafc;border-radius:9px;padding:10px 13px;text-align:left}
.tafr-avenir{margin:0 0 8px;font-size:13px;color:#b45309;font-weight:600}
.tafr-liste{list-style:none;margin:14px 0;padding:0;display:flex;flex-direction:column;gap:8px;text-align:left}
.tafr-exo{width:100%;display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e2e8f0;border-radius:11px;padding:11px 13px;cursor:pointer;font:inherit;text-align:left;transition:.12s}
.tafr-exo:hover{border-color:#7c3aed;background:#faf5ff;transform:translateY(-1px)}
.tafr-exo.fait{background:#f6fefb;border-color:#9fe1cb}.tafr-exo.verrouille{cursor:default;opacity:.75}.tafr-exo.verrouille:hover{border-color:#9fe1cb}.tafr-cadenas{margin-left:4px;font-size:11px;opacity:.7}
.tafr-exo-n{flex:0 0 auto;width:26px;height:26px;border-radius:50%;background:#ede9fe;color:#5b21b6;font-size:12.5px;font-weight:800;display:flex;align-items:center;justify-content:center}
.tafr-exo.fait .tafr-exo-n{background:#d1fae5;color:#047857}
.tafr-exo-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.tafr-exo-t b{font-size:14px;color:#1a1430}
.tafr-exo-t small{font-size:11.5px;color:#94a3b8}
.tafr-exo-go{flex:0 0 auto;font-size:12.5px;font-weight:700;color:#7c3aed;white-space:nowrap}
.tafr-exo-pct{flex:0 0 auto;font-size:13px;font-weight:800;color:#047857;white-space:nowrap}
.tafr-exo-pct.bof{color:#b45309}
.tafr-retour{display:block;margin:10px auto 0;background:none;border:0;color:#64748b;font-size:12.5px;cursor:pointer;text-decoration:underline}
.tafr-liste-btn{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:4px 11px;font-size:12px;cursor:pointer;color:#5b21b6;white-space:nowrap}
.tafr-liste-btn:hover{border-color:#7c3aed}

/* Pseudo affiché sous l'identité, dans le tableau de bord d'un TàF */
.taf-ps{display:block;font-size:11px;font-weight:400;color:#94a3b8;margin-top:1px}

/* Illustration en tête d'une Mission Dirigeant */
.mis-illus{margin:10px 0 14px;border-radius:12px;overflow:hidden;background:#faf7f0;max-width:720px}
.mis-illus img{display:block;width:100%;height:auto}
.scene-illus{max-width:520px;margin:8px 0 10px}

/* Établissements et mes classes */
.etab-compte{font-size:12px;color:#64748b;margin-top:3px}
.etab-badge{font-size:12.5px;background:#f5f3ff;border:1px solid #e6e0fb;color:#5b21b6;
  padding:5px 12px;border-radius:999px;font-weight:600;white-space:nowrap}
.ua-tools select{border:1px solid #e2e8f0;border-radius:8px;padding:5px 8px;font-size:12.5px;background:#fff}
.ua-tools .ref{border:1px solid #e2e8f0;background:#fff;border-radius:8px;padding:5px 11px;
  font-size:12.5px;cursor:pointer;color:#64748b;white-space:nowrap}
.ua-tools .ref.on{background:#ede9fe;border-color:#7c3aed;color:#5b21b6;font-weight:700}

/* Arbre de visibilité côté professeur */
.vis-arbre{display:flex;flex-direction:column;gap:6px}
.vis-mat{background:#fff;border:1px solid #e2e8f0;border-radius:11px;padding:8px 12px}
.vis-ligne{display:flex;align-items:center;gap:10px}
.vis-plier{background:none;border:0;font-size:13px;color:#64748b;cursor:pointer;padding:0 2px}
.vis-nom{flex:1;font-weight:700;font-size:14px;color:#1a1430}
.vis-nom.sub{font-weight:600;font-size:13px}
.vis-nom.mini{font-weight:400;font-size:12.5px;color:#475569}
.vis-btn{border:1px solid #e2e8f0;background:#fff;border-radius:999px;padding:4px 12px;
  font-size:12px;cursor:pointer;color:#0f6e56;white-space:nowrap}
.vis-btn.on{background:#fff7ed;border-color:#fed7aa;color:#b45309;font-weight:700}
.vis-btn.mini{padding:3px 9px;font-size:12px}
.vis-herite{font-size:11.5px;color:#94a3b8;font-style:italic;white-space:nowrap}
.vis-themes{margin:8px 0 2px 18px;display:flex;flex-direction:column;gap:8px}
.vis-theme{border-left:2px solid #f1f5f9;padding-left:10px}
.vis-jeux{margin:6px 0 0 8px;display:flex;flex-direction:column;gap:3px}
.vis-jeu{display:flex;align-items:center;gap:10px;padding:2px 0}

/* Contenu masqué par le professeur : visible, cadenassé, expliqué */
.vis-masque{position:relative}
.vis-masque>*{filter:grayscale(.85) opacity(.55);pointer-events:none}
.vis-masque::after{content:"🔒 Ton professeur ouvrira cette partie plus tard.";
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  background:rgba(255,255,255,.96);border:1px solid #ddd6fe;color:#5b21b6;
  font:600 12.5px system-ui,sans-serif;padding:8px 14px;border-radius:999px;
  white-space:nowrap;max-width:92%;overflow:hidden;text-overflow:ellipsis;
  box-shadow:0 2px 10px rgba(0,0,0,.08);pointer-events:none;z-index:3}

.app-attente{min-height:70vh;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:12px;text-align:center;padding:30px 20px;color:#4b4363}
.app-attente-ico{font-size:46px;animation:attente 1.4s ease-in-out infinite}
.app-attente h2{margin:0;color:#1e1b31}
.app-attente p{max-width:420px;margin:0;line-height:1.6}
@keyframes attente{0%,100%{transform:translateY(0);opacity:.75}50%{transform:translateY(-7px);opacity:1}}

.classe-avert{margin-top:8px;background:#fffbeb;border:1px solid #fde68a;border-radius:10px;
  padding:9px 12px;color:#78350f;font-size:13.5px;line-height:1.5}

/* ===== Versions des contenus ===== */
.vsn{max-width:1000px}
.vsn h3{margin:0 0 4px}
.vsn-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0 14px}
.vsn-bar label{font:700 13px system-ui,sans-serif;color:#6b6485}
.vsn-bar select{padding:8px 11px;border:2px solid #e2e8f0;border-radius:9px;background:#fff;
  font:600 13.5px system-ui,sans-serif;color:#1e293b;max-width:100%}
.vsn-msg{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;padding:10px 14px;
  margin-bottom:14px;color:#14532d;line-height:1.55}
.vsn-liste{display:flex;flex-direction:column;gap:8px}
.vsn-bloc{border:1px solid #e6e0fb;border-radius:11px;background:#fff;overflow:hidden}
.vsn-l{display:flex;align-items:center;gap:12px;padding:10px 14px;flex-wrap:wrap}
.vsn-nom{flex:1;min-width:170px;font:700 14px system-ui,sans-serif;color:#0f172a}
.vsn-th{font-weight:500;color:#6b6485}
.vsn-v{font:700 12px ui-monospace,monospace;background:#ede9fe;color:#5b21b6;
  border-radius:99px;padding:3px 9px}
.vsn-o,.vsn-d{font-size:12.5px;color:#6b6485;white-space:nowrap}
.vsn-btn{padding:6px 13px;font-size:12.5px}
.vsn-hist{border-top:1px solid #f1f5f9;background:#faf9ff;padding:6px 14px 10px}
.vsn-hl{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px dashed #e6e0fb;flex-wrap:wrap}
.vsn-hl:last-child{border-bottom:0}
.vsn-hv{font:700 12px ui-monospace,monospace;color:#6b6485;min-width:34px}
.vsn-hm{flex:1;min-width:180px;font-size:13.5px;color:#334155;line-height:1.45}
@media(max-width:640px){
  .vsn-nom,.vsn-hm{min-width:100%}
  .vsn-bar select{width:100%}
}

/* ===== Stratégie — quatre jeux de Management ===== */
.ms{max-width:920px;margin:0 auto}
.ms-consigne{background:#f5f3ff;border:1px solid #ddd6fe;border-radius:13px;padding:12px 16px;margin-bottom:14px}
.ms-consigne p{margin:0;font:600 15px/1.6 system-ui,sans-serif;color:#4c1d95}
.ms-sous{margin-top:5px!important;font-weight:500!important;font-size:13px!important;color:#7c6bab!important}
.ms-img{width:100%;border-radius:12px;display:block;max-height:190px;object-fit:cover}
.ms-img.petite{max-height:130px;margin-bottom:10px}
.ms-org{display:grid;grid-template-columns:minmax(0,260px) minmax(0,1fr);gap:14px;align-items:center;
  background:#fff;border:1px solid #e6e2d8;border-radius:14px;padding:12px;margin-bottom:14px}
.ms-org h3{margin:0 0 4px;font-size:18px;color:#1a1430}
.ms-org p{margin:0;font-size:13.5px;line-height:1.55;color:#5c5a68}
.ms-items{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.ms-item{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 14px;
  border:1px solid #e6e2d8;border-radius:11px;background:#fff;transition:.22s}
.ms-item.juste{border-color:#86efac;background:#f0fdf4}
.ms-item.faux{border-color:#fca5a5;background:#fef2f2}
.ms-item-txt{flex:1;min-width:200px;font-size:14px;line-height:1.5;color:#1e293b}
.ms-item select{padding:8px 11px;border:2px solid #e2e8f0;border-radius:9px;
  background:#fff;font:600 13px system-ui,sans-serif}
.ms-corr{flex-basis:100%;font-size:13px;color:#166534;background:#f0fdf4;border-radius:8px;padding:6px 11px}
.ms-cta{padding:11px 22px;border:0;border-radius:11px;background:#7c3aed;color:#fff;cursor:pointer;
  font:700 14.5px system-ui,sans-serif;transition:.15s;margin-right:8px}
.ms-cta:hover:not(:disabled){background:#6d28d9;transform:translateY(-1px)}
.ms-cta:disabled{background:#cbd5e1;cursor:not-allowed}
.ms-cta.alt{background:#475569}
.ms-bilan{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#f8fafc;
  border:1px solid #e2e8f0;border-radius:12px;padding:12px 16px}
.ms-bilan b{font-size:15px;color:#1e293b}
.ms-suite{animation:ms-apparait .3s ease}
@keyframes ms-apparait{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.ms-q{font:700 16px/1.55 system-ui,sans-serif;color:#1a1430;margin:0 0 10px}
.ms-opts{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
.ms-opt{text-align:left;padding:12px 15px;border:2px solid #e2e8f0;border-radius:11px;background:#fff;
  cursor:pointer;font:500 14px/1.5 system-ui,sans-serif;color:#1e293b;transition:.18s}
.ms-opt:hover:not(:disabled){border-color:#a78bfa}
.ms-opt.juste{border-color:#16a34a;background:#f0fdf4;font-weight:700}
.ms-opt.faux{border-color:#dc2626;background:#fef2f2}
.ms-expl{background:#f0f9ff;border:1px solid #bae6fd;border-radius:11px;padding:11px 15px;
  margin-bottom:12px;font-size:14px;line-height:1.65;color:#0c4a6e}
.ms-mieux{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:11px;padding:11px 15px;
  margin-bottom:12px;font-size:14px;line-height:1.6;color:#14532d}
.ms-phrase{background:#fffbeb;border:1px solid #fde68a;border-radius:13px;padding:20px 22px;
  margin-bottom:14px;font:600 19px/1.5 Georgia,serif;color:#78350f;text-align:center}
.ms-ouinon{display:flex;gap:10px;flex-wrap:wrap}
.ms-verdict{border-radius:11px;padding:11px 15px;margin-bottom:12px;font:700 15px system-ui,sans-serif}
.ms-verdict.juste{background:#f0fdf4;border:1px solid #bbf7d0;color:#14532d}
.ms-verdict.faux{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}
.ms-cartes{display:grid;grid-template-columns:repeat(auto-fill,minmax(264px,1fr));gap:12px;margin-bottom:16px}
.ms-carte{--ms-col:#7c3aed;border:1px solid #e6e2d8;border-left:5px solid var(--ms-col);
  border-radius:0 13px 13px 0;padding:13px 16px;background:#fff;cursor:pointer;transition:.2s}
.ms-carte:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.08)}
.ms-carte.on{grid-column:1/-1;box-shadow:0 6px 20px rgba(0,0,0,.1)}
.ms-carte-tete{display:flex;align-items:center;gap:9px;margin-bottom:5px}
.ms-emo{font-size:21px}
.ms-carte-tete b{font-size:16px;color:var(--ms-col)}
.ms-def{margin:0;font-size:13.5px;line-height:1.55;color:#475569}
.ms-plus{margin-top:11px;animation:ms-apparait .3s ease}
.ms-pm{font-size:13.5px;line-height:1.55;color:#166534;background:#f0fdf4;border-radius:8px;
  padding:7px 11px;margin-bottom:6px}
.ms-pm.moins{color:#9a3412;background:#fff7ed}
.ms-ex{display:flex;flex-direction:column;gap:5px;margin-top:9px}
.ms-ex-l{font-size:13.5px;line-height:1.5;color:#334155;border-left:2px solid #e2e8f0;padding-left:10px}
.ms-cas{background:#fff;border:1px solid #e6e2d8;border-radius:13px;padding:14px 17px;margin-bottom:14px}
.ms-cas p{margin:0;font:600 16px/1.6 system-ui,sans-serif;color:#1e293b}
.ms-choix{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:9px;margin-bottom:12px}
.ms-ch{--ms-col:#7c3aed;display:flex;align-items:center;gap:9px;padding:12px 15px;
  border:2px solid #e2e8f0;border-radius:11px;background:#fff;cursor:pointer;
  font:700 14px system-ui,sans-serif;color:#1e293b;transition:.18s;text-align:left}
.ms-ch:hover:not(:disabled){border-color:var(--ms-col);transform:translateY(-1px)}
.ms-ch.juste{border-color:#16a34a;background:#f0fdf4}
.ms-ch.faux{border-color:#dc2626;background:#fef2f2}
@media(max-width:640px){ .ms-org{grid-template-columns:1fr} .ms-cartes{grid-template-columns:1fr} }

/* ===== Brand Lab — ETLV ===== */
/* Les logos : cadre blanc, image contenue sans déformation. `contain` est
   indispensable — les logos ont des proportions très différentes, du carré
   d'Apple au bandeau d'Air France, et un `cover` les rognerait. */
.bl-logos{display:grid;grid-template-columns:repeat(auto-fill,minmax(212px,1fr));gap:12px;margin-bottom:14px}
.bl-logo-carte{border:1px solid #e6e2d8;border-radius:14px;padding:12px;background:#fff;
  display:flex;flex-direction:column;gap:8px;transition:.25s}
.bl-logo-carte.juste{border-color:#86efac;background:#f0fdf4}
.bl-logo-carte.faux{border-color:#fca5a5;background:#fef2f2}
.bl-logo-cadre{height:92px;display:flex;align-items:center;justify-content:center;
  background:#fff;border-radius:10px;padding:8px}
.bl-logo-cadre img{max-width:100%;max-height:100%;object-fit:contain;
  animation:bl-pose .4s ease}
@keyframes bl-pose{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}
.bl-logo-carte select{width:100%}
.bl-aide{background:#fffbeb;border:1px dashed #fcd34d;border-radius:8px;padding:6px 10px;
  cursor:pointer;font:600 12px system-ui,sans-serif;color:#92400e;text-align:left;line-height:1.45}
.bl-desc{font-size:12.5px;line-height:1.5;color:#166534;background:#f0fdf4;border-radius:8px;padding:6px 10px}
.bl-logo-mini{height:38px;display:flex;align-items:center;margin-bottom:6px}
.bl-logo-mini img{max-height:100%;max-width:130px;object-fit:contain}
.bl-slogan-logo{display:block;max-height:34px;max-width:140px;object-fit:contain;
  margin:0 auto 8px;background:#fff;border-radius:6px;padding:4px 8px}

.bl{max-width:900px;margin:0 auto}
.bl-consigne{background:#eff6ff;border:1px solid #bfdbfe;border-radius:13px;padding:12px 16px;margin-bottom:14px}
.bl-en{margin:0;font:600 15.5px system-ui,sans-serif;color:#1e3a8a;line-height:1.55}
.bl-fr{margin:5px 0 0;font-size:13px;color:#64748b;line-height:1.5}
.bl-barre{display:flex;align-items:center;gap:10px;margin:0 0 14px}
.bl-barre-fond{flex:1;height:7px;background:#e6e2d8;border-radius:99px;overflow:hidden}
.bl-barre-jus{height:100%;background:linear-gradient(90deg,#2563eb,#22d3ee);border-radius:99px;
  transition:width .5s cubic-bezier(.4,0,.2,1)}
.bl-barre span{font:700 12.5px ui-monospace,monospace;color:#64748b;white-space:nowrap}

.bl-etapes{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.bl-etape{display:flex;align-items:center;gap:7px;padding:7px 14px;border-radius:99px;
  background:#f1f5f9;color:#94a3b8;font:700 13px system-ui,sans-serif;transition:.3s}
.bl-etape.on{background:#2563eb;color:#fff;transform:scale(1.04)}
.bl-etape.fait{background:#dcfce7;color:#166534}

.bl-lignes{display:flex;flex-direction:column;gap:9px;margin-bottom:14px}
.bl-ligne{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:11px 14px;
  border:1px solid #e6e2d8;border-radius:12px;background:#fff;transition:.25s}
.bl-ligne.juste{border-color:#86efac;background:#f0fdf4}
.bl-ligne.faux{border-color:#fca5a5;background:#fef2f2}
.bl-ligne-txt{flex:1;min-width:210px;font-size:14px;line-height:1.5;color:#1e293b}
.bl-ligne select,.bl-carte-tri select{padding:8px 11px;border:2px solid #e2e8f0;border-radius:9px;
  background:#fff;font:600 13px system-ui,sans-serif;max-width:100%}
.bl-tag{display:inline-block;background:#1e3a8a;color:#fff;border-radius:5px;
  padding:1px 7px;font:800 10px system-ui,sans-serif;letter-spacing:.06em;vertical-align:middle}
.bl-corr{flex-basis:100%;font-size:13px;line-height:1.55;color:#166534;
  background:#f0fdf4;border-radius:8px;padding:7px 11px;animation:bl-apparait .3s ease}
@keyframes bl-apparait{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

.bl-grille-tri{display:grid;grid-template-columns:repeat(auto-fill,minmax(228px,1fr));gap:10px;margin-bottom:14px}
.bl-carte-tri{border:1px solid #e6e2d8;border-radius:12px;padding:11px 13px;background:#fff;transition:.25s}
.bl-carte-tri.juste{border-color:#86efac;background:#f0fdf4}
.bl-carte-tri.faux{border-color:#fca5a5;background:#fef2f2}
.bl-marque{font:800 15px system-ui,sans-serif;color:#1e293b;margin-bottom:7px}

.bl-cta{padding:11px 22px;border:0;border-radius:11px;background:#2563eb;color:#fff;cursor:pointer;
  font:700 14.5px system-ui,sans-serif;transition:.15s}
.bl-cta:hover:not(:disabled){background:#1d4ed8;transform:translateY(-1px)}
.bl-cta:disabled{background:#cbd5e1;cursor:not-allowed}
.bl-cta.alt{background:#0d9488}
.bl-lien{background:none;border:0;color:#2563eb;cursor:pointer;font:600 13px system-ui,sans-serif;
  text-decoration:underline;padding:0}
.bl-bilan{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#f8fafc;
  border:1px solid #e2e8f0;border-radius:12px;padding:12px 16px;animation:bl-apparait .3s ease}
.bl-bilan b{font-size:15px;color:#1e293b}

.bl-slogan{background:linear-gradient(135deg,#1e293b,#334155);color:#fff;border-radius:16px;
  padding:26px 24px;text-align:center;margin-bottom:14px;position:relative;overflow:hidden}
.bl-slogan::after{content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 20% 20%,rgba(96,165,250,.28),transparent 60%);pointer-events:none}
.bl-slogan-txt{font:700 24px/1.3 Georgia,serif;position:relative}
.bl-slogan-marque{margin-top:10px;font:600 14px system-ui,sans-serif;color:#93c5fd;
  opacity:0;animation:bl-monte .45s ease .1s forwards;position:relative}
@keyframes bl-monte{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.bl-opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:9px;margin-bottom:12px}
.bl-opt{padding:12px 15px;border:2px solid #e2e8f0;border-radius:12px;background:#fff;cursor:pointer;
  font:600 14px system-ui,sans-serif;color:#1e293b;transition:.18s;text-align:left}
.bl-opt:hover:not(:disabled){border-color:#60a5fa;transform:translateY(-1px)}
.bl-opt.juste{border-color:#16a34a;background:#f0fdf4;font-weight:800}
.bl-opt.faux{border-color:#dc2626;background:#fef2f2}
.bl-expl{background:#f0f9ff;border:1px solid #bae6fd;border-radius:11px;padding:11px 15px;
  margin-bottom:12px;font-size:14px;line-height:1.6;color:#0c4a6e;animation:bl-apparait .3s ease}
.bl-fiche-zone{margin-bottom:12px}
.bl-fiche{margin-top:9px;border:1px solid #e9d5ff;background:#faf5ff;border-radius:12px;padding:12px 15px;
  animation:bl-retourne .4s ease}
@keyframes bl-retourne{from{opacity:0;transform:rotateX(-70deg)}to{opacity:1;transform:none}}
.bl-fiche-t{font:800 15px system-ui,sans-serif;color:#7e22ce;margin-bottom:5px}
.bl-fiche p{margin:4px 0;font-size:13.5px;line-height:1.55;color:#4c1d95}
.bl-fiche-ex{font-style:italic;color:#7e22ce!important}

.bl-produit{position:relative;border-radius:14px;overflow:hidden;margin-bottom:14px}
.bl-produit img{width:100%;display:block;max-height:190px;object-fit:cover}
.bl-produit-nom{position:absolute;left:16px;bottom:14px;background:rgba(15,23,42,.82);color:#fff;
  border-radius:9px;padding:6px 14px;font:800 16px system-ui,sans-serif}
.bl-banniere{width:100%;border-radius:14px;margin-bottom:14px;max-height:170px;object-fit:cover}

.bl-strats{display:grid;grid-template-columns:repeat(auto-fill,minmax(268px,1fr));gap:12px;margin-bottom:16px}
.bl-strat{--bl-col:#2563eb;border:1px solid #e6e2d8;border-left:5px solid var(--bl-col);
  border-radius:0 13px 13px 0;padding:13px 16px;background:#fff;cursor:pointer;transition:.2s}
.bl-strat:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.08)}
.bl-strat.on{grid-column:1/-1;box-shadow:0 6px 20px rgba(0,0,0,.1)}
.bl-strat-tete{display:flex;align-items:center;gap:9px;margin-bottom:5px}
.bl-strat-emo{font-size:21px}
.bl-strat-tete b{font-size:16px;color:var(--bl-col)}
.bl-strat-def{margin:0;font-size:13.5px;line-height:1.55;color:#475569}
.bl-strat-plus{margin-top:11px;animation:bl-apparait .3s ease}
.bl-pm{font-size:13.5px;line-height:1.55;color:#166534;background:#f0fdf4;border-radius:8px;
  padding:7px 11px;margin-bottom:6px}
.bl-pm.moins{color:#9a3412;background:#fff7ed}
.bl-strat-ex{display:flex;flex-direction:column;gap:5px;margin-top:9px}
.bl-ex{font-size:13.5px;line-height:1.5;color:#334155;border-left:2px solid #e2e8f0;padding-left:10px}
.bl-strats-quiz{display:grid;grid-template-columns:repeat(auto-fit,minmax(178px,1fr));gap:9px;margin-bottom:12px}
.bl-sq{--bl-col:#2563eb;display:flex;align-items:center;gap:9px;padding:12px 15px;
  border:2px solid #e2e8f0;border-radius:12px;background:#fff;cursor:pointer;
  font:700 14px system-ui,sans-serif;color:#1e293b;transition:.18s;text-align:left}
.bl-sq:hover:not(:disabled){border-color:var(--bl-col);transform:translateY(-1px)}
.bl-sq.juste{border-color:#16a34a;background:#f0fdf4}
.bl-sq.faux{border-color:#dc2626;background:#fef2f2}
.bl-cas{background:#fffbeb;border:1px solid #fde68a;border-radius:13px;padding:16px 19px;
  margin-bottom:14px;font:600 16px/1.6 system-ui,sans-serif;color:#78350f}

.bl-fin{text-align:center;max-width:520px;margin:0 auto;padding:26px 16px}
.bl-fin-note{font:800 52px system-ui,sans-serif;color:#2563eb;line-height:1;
  animation:bl-note .55s cubic-bezier(.34,1.56,.64,1)}
@keyframes bl-note{from{opacity:0;transform:scale(.5)}to{opacity:1;transform:none}}
.bl-fin h3{margin:10px 0 6px;color:#1e293b}
.bl-fin p{color:#64748b;font-size:13.5px;line-height:1.6}
.bl-fin-actions{display:flex;gap:10px;justify-content:center;margin-top:16px;flex-wrap:wrap}
@media(max-width:620px){
  .bl-slogan-txt{font-size:19px}
  .bl-grille-tri,.bl-strats{grid-template-columns:1fr}
}

/* --- Logo detective : deux colonnes, appariement au clic --- */
.bl-det{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px;margin-bottom:14px}
.bl-det-col{display:flex;flex-direction:column;gap:8px}
.bl-det-tt{font:800 12px system-ui,sans-serif;color:#94a3b8;letter-spacing:.08em;text-transform:uppercase}
.bl-det-desc{display:flex;align-items:flex-start;gap:10px;text-align:left;padding:11px 14px;
  border:2px solid #e2e8f0;border-radius:12px;background:#fff;cursor:pointer;
  font:500 13.5px/1.5 system-ui,sans-serif;color:#1e293b;transition:.18s}
.bl-det-desc:hover{border-color:#93c5fd}
.bl-det-desc.choisie{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 3px rgba(37,99,235,.15)}
.bl-det-desc.appariee{background:#f8fafc;border-style:dashed}
.bl-det-desc.juste{border-color:#16a34a;background:#f0fdf4;border-style:solid}
.bl-det-desc.faux{border-color:#dc2626;background:#fef2f2;border-style:solid}
.bl-det-num{flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:#1e293b;color:#fff;
  display:inline-flex;align-items:center;justify-content:center;font:800 12px system-ui,sans-serif}
.bl-det-logos{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:9px}
.bl-det-logo{position:relative;height:92px;border:2px solid #e2e8f0;border-radius:12px;background:#fff;
  cursor:pointer;display:flex;align-items:center;justify-content:center;padding:12px 10px;transition:.18s}
.bl-det-logo img{max-width:100%;max-height:100%;object-fit:contain}
.bl-det-logo:hover{border-color:#93c5fd}
.bl-det-logo.cible{border-color:#2563eb;border-style:dashed;animation:bl-pulse 1.4s ease-in-out infinite}
@keyframes bl-pulse{0%,100%{box-shadow:0 0 0 0 rgba(37,99,235,.28)}50%{box-shadow:0 0 0 7px rgba(37,99,235,0)}}
.bl-det-logo.appariee{background:#f8fafc}
.bl-det-logo.juste{border-color:#16a34a;background:#f0fdf4}
.bl-det-logo.faux{border-color:#dc2626;background:#fef2f2}
.bl-det-logo .bl-det-num{position:absolute;top:-8px;left:-8px}
.bl-det-corr{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.bl-corr-logo{max-height:30px;max-width:88px;object-fit:contain;vertical-align:middle;margin-right:9px}
.bl-det-nommer{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:11px;margin-bottom:14px}
.bl-det-nom{border:2px solid #e2e8f0;border-radius:12px;padding:11px;background:#fff;
  display:flex;flex-direction:column;gap:8px;align-items:center}
.bl-det-nom.juste{border-color:#16a34a;background:#f0fdf4}
.bl-det-nom.faux{border-color:#dc2626;background:#fef2f2}
.bl-det-nom img{height:56px;max-width:100%;object-fit:contain}
.bl-det-nom select{width:100%}
@media(max-width:700px){ .bl-det{grid-template-columns:1fr} }

/* ===== L'Or Noir — la saga des choix stratégiques ===== */
.orn{max-width:1060px;margin:0 auto}
.orn h2{margin:8px 0 4px;color:#241a0e;font-family:Georgia,serif}
.orn-sous{display:block;color:#8a7758;font-size:13px}
.orn-recit{font:500 15px/1.75 Georgia,serif;color:#453722;margin:10px 0 14px}
.orn-banniere{width:100%;max-height:240px;object-fit:cover;border-radius:16px;margin-bottom:12px;
  animation:orn-fondu .8s ease}
@keyframes orn-fondu{from{opacity:0;transform:scale(1.02)}to{opacity:1;transform:none}}
.orn-tete{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.orn-lien{background:none;border:0;color:#7a5a1e;cursor:pointer;font:600 13px system-ui,sans-serif;
  text-decoration:underline}
.orn-cta{padding:11px 22px;border:0;border-radius:11px;background:#7a5a1e;color:#fff;cursor:pointer;
  font:700 14.5px system-ui,sans-serif;transition:.18s}
.orn-cta:hover:not(:disabled){background:#5c4212;transform:translateY(-1px)}
.orn-cta:disabled{background:#d4c9b2;cursor:not-allowed}
.orn-cta.discret{background:#f1e9d8;color:#7a5a1e}
.orn-cta.discret:hover{background:#e6dbc2}
.orn-retour{background:#fff;border:1px solid #d9cdb2;border-radius:9px;padding:8px 14px;cursor:pointer;
  font:600 13px system-ui,sans-serif;color:#5c4c30}

/* La lettre et les manuscrits */
.orn-lettre{max-width:760px}
.orn-lettre-img{width:100%;max-height:230px;object-fit:cover;border-radius:16px;margin-bottom:14px;
  animation:orn-fondu .8s ease}
.orn-manuscrit{background:#fbf5e6;border:1px solid #e6d9b8;border-radius:3px;padding:18px 24px;
  margin-bottom:14px;box-shadow:0 2px 10px rgba(70,50,10,.09);position:relative;
  animation:orn-monte .5s ease .15s backwards}
@keyframes orn-monte{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.orn-manuscrit::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,#caa02e,#7a5a1e)}
.orn-manuscrit p{margin:0;font:italic 500 15.5px/1.85 Georgia,serif;color:#43351c;white-space:pre-line}
.orn-carton{background:#fff;border:1px solid #d9cdb2;border-radius:4px;padding:16px 20px;margin-bottom:14px;
  box-shadow:0 3px 14px rgba(70,50,10,.12);animation:orn-monte .5s ease .3s backwards}
.orn-carton-titre{font:700 13px system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase;
  color:#7a5a1e;border-bottom:1px solid #eee2c8;padding-bottom:8px;margin-bottom:10px}
.orn-regle{margin:0;font-size:14px;line-height:1.7;color:#453722}

/* Les jauges */
.orn-jauges{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:12px 0 16px}
.orn-jauge{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #e6dcc4;
  border-radius:12px;padding:9px 12px}
.orn-jauge-ico{font-size:19px}
.orn-jauge-corps{flex:1;min-width:0}
.orn-jauge-nom{font:700 11.5px system-ui,sans-serif;color:#6d5c3c;letter-spacing:.04em;
  text-transform:uppercase;margin-bottom:4px}
.orn-jauge-nom b.up{color:#15803d}
.orn-jauge-nom b.down{color:#b91c1c}
.orn-jauge-fond{height:8px;background:#f1e9d8;border-radius:99px;overflow:hidden}
.orn-jauge-barre{height:100%;border-radius:99px;transition:width .9s cubic-bezier(.22,1,.36,1)}

/* Le journal de bord */
.orn-journal{background:#fff;border:1px solid #e6dcc4;border-radius:12px;margin-bottom:14px;overflow:hidden}
.orn-journal-tete{width:100%;display:flex;justify-content:space-between;align-items:center;background:none;
  border:0;padding:11px 15px;cursor:pointer;font:700 13.5px system-ui,sans-serif;color:#5c4c30}
.orn-journal ul{margin:0;padding:4px 18px 12px 32px}
.orn-journal li{font-size:13px;line-height:1.65;color:#453722;margin-bottom:4px}
.orn-journal-fin{padding:13px 17px}
.orn-journal-fin ul{padding:8px 0 0 18px}

/* Les chapitres */
.orn-chapitres{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:14px;margin-bottom:18px}
.orn-chap{background:#fff;border:1px solid #d9cdb2;border-radius:14px;overflow:hidden;display:flex;
  flex-direction:column;box-shadow:0 2px 10px rgba(70,50,10,.08);transition:.2s}
.orn-chap:hover{transform:translateY(-2px)}
.orn-chap.verrou{opacity:.55;filter:saturate(.4)}
.orn-chap.fait{border-color:#caa02e}
.orn-chap-img{width:100%;height:126px;object-fit:cover}
.orn-chap-corps{padding:12px 15px 15px;display:flex;flex-direction:column;gap:6px;flex:1}
.orn-chap-haut{display:flex;justify-content:space-between;align-items:center}
.orn-diff{font:700 14px system-ui,sans-serif;color:#caa02e}
.orn-fait{color:#7a5a1e;font:700 12.5px system-ui,sans-serif}
.orn-duree{color:#a08d68;font:600 12px system-ui,sans-serif}
.orn-chap h3{margin:0;font-size:16px;color:#241a0e;font-family:Georgia,serif}
.orn-chap-notion{font:700 11.5px system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;
  color:#7a5a1e;background:#f6efdd;border-radius:99px;padding:3px 11px;display:inline-block;
  align-self:flex-start}
.orn-chap p{margin:0;font-size:13px;color:#6d5c3c;flex:1}
.orn-verrou{color:#a89a78;font:600 13px system-ui,sans-serif;padding:6px 0}

/* L'appel de l'épilogue */
.orn-fin-appel{display:flex;align-items:center;gap:14px;background:#241a0e;border-radius:14px;
  padding:15px 19px;color:#ead9b0;flex-wrap:wrap}
.orn-fin-appel.pret{background:linear-gradient(120deg,#33240e,#7a5a1e);
  box-shadow:0 4px 18px rgba(202,160,46,.35)}
.orn-fin-ico{font-size:30px}
.orn-fin-txt{flex:1;min-width:220px}
.orn-fin-txt b{display:block;font-family:Georgia,serif;font-size:16px}
.orn-fin-txt span{font-size:13px;color:#cbb98d}

/* La porte d'un chapitre */
.orn-porte{max-width:840px}
.orn-porte-img{width:100%;max-height:250px;object-fit:cover;border-radius:16px;margin-bottom:12px;
.orn-scene-img{width:100%;max-height:180px;object-fit:cover;border-radius:12px;display:block;
  margin-bottom:10px;box-shadow:0 10px 24px -16px rgba(30,20,5,.5)}
  animation:orn-porte-ouvre .9s ease}
@keyframes orn-porte-ouvre{from{opacity:0;clip-path:inset(0 50% 0 50%)}to{opacity:1;clip-path:inset(0)}}
.orn-porte-tete h2{margin:4px 0}
.orn-retombees{background:#fbf5e6;border:1px solid #e6d9b8;border-left:4px solid #caa02e;border-radius:10px;
  padding:13px 17px;margin:12px 0;animation:orn-monte .5s ease .2s backwards}
.orn-retombees b{color:#7a5a1e;font-size:13.5px}
.orn-retombees p{margin:7px 0 0;font:italic 500 14.5px/1.75 Georgia,serif;color:#43351c}
.orn-lecon{background:#eef6f1;border:1px solid #cfe3d6;border-radius:12px;padding:13px 17px;margin-bottom:14px}
.orn-lecon b{color:#166534;font-size:14px}
.orn-lecon ul{margin:8px 0 0;padding-left:20px}
.orn-lecon li{font-size:13.5px;line-height:1.65;color:#14532d;margin-bottom:5px}
.orn-porte-actions{display:flex;gap:10px;flex-wrap:wrap}

/* La salle du conseil : dialogues */
.orn-conseil{max-width:760px}
.orn-dialogues{display:flex;flex-direction:column;gap:10px;margin:14px 0}
.orn-replique{display:flex;gap:10px;align-items:flex-start}
.orn-replique.neuve{animation:orn-replique .45s ease}
@keyframes orn-replique{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.orn-avatar{width:38px;height:38px;border-radius:50%;background:#f6efdd;border:1px solid #e6d9b8;
  display:flex;align-items:center;justify-content:center;font-size:19px;flex:none}
.orn-bulle{background:#fff;border:1px solid #e6dcc4;border-radius:4px 14px 14px 14px;padding:10px 14px;
  box-shadow:0 1px 5px rgba(70,50,10,.07)}
.orn-bulle-qui{font:700 12.5px system-ui,sans-serif;color:#7a5a1e;margin-bottom:3px}
.orn-bulle-qui span{font-weight:500;color:#a08d68;margin-left:7px;font-size:11.5px}
.orn-bulle p{margin:0;font-size:14px;line-height:1.65;color:#38301f}
.orn-conseil-actions{display:flex;justify-content:flex-end}

/* Le dossier : documents + énigmes */
.orn-jeu-tete{display:flex;align-items:center;gap:14px;background:#faf4e4;border:1px solid #e6d9b8;
  border-radius:12px;padding:10px 14px;margin-bottom:14px;flex-wrap:wrap}
.orn-jeu-tete>div{flex:1;min-width:200px}
.orn-avancee{font:700 12px system-ui,sans-serif;color:#7a5a1e;background:#f6efdd;
  border:1px solid #e6d9b8;border-radius:99px;padding:4px 12px}
.orn-duo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}
@media(max-width:880px){.orn-duo{grid-template-columns:1fr}}
.orn-docs{position:sticky;top:10px}
@media(max-width:880px){.orn-docs{position:static}}
.orn-onglets{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.orn-onglets button{padding:6px 12px;border:1px solid #d9cdb2;border-radius:99px;background:#fff;
  cursor:pointer;font:600 12px system-ui,sans-serif;color:#5c4c30}
.orn-onglets button.on{background:#7a5a1e;border-color:#7a5a1e;color:#fff}
.orn .kk-rapport p{white-space:pre-line}
.orn-pret{max-width:620px;text-align:center;padding-top:20px}

/* Le choix */
.orn-choix{max-width:920px}
.orn-note-relecture{background:#eef2fb;border:1px solid #c9d6f2;border-radius:10px;padding:10px 14px;
  color:#31437a;font-size:13px;margin-bottom:12px}
.orn-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:13px;margin-top:14px}
.orn-option{background:#fff;border:2px solid #e6dcc4;border-radius:14px;padding:15px 17px;cursor:pointer;
  display:flex;flex-direction:column;gap:8px;transition:.18s;animation:orn-monte .5s ease backwards}
.orn-option:nth-child(2){animation-delay:.1s}
.orn-option:nth-child(3){animation-delay:.2s}
.orn-option:hover{transform:translateY(-2px);box-shadow:0 4px 14px rgba(70,50,10,.12)}
.orn-option.on{border-color:#caa02e;box-shadow:0 4px 16px rgba(202,160,46,.25)}
.orn-option h3{margin:0;font-size:16.5px;color:#241a0e;font-family:Georgia,serif}
.orn-option>p{margin:0;font-size:13.5px;line-height:1.6;color:#453722;flex:1}
.orn-argu{display:flex;gap:8px;background:#faf4e4;border-radius:10px;padding:9px 11px;align-items:flex-start}
.orn-argu .orn-avatar{width:30px;height:30px;font-size:15px}
.orn-argu b{font:700 12px system-ui,sans-serif;color:#7a5a1e}
.orn-argu p{margin:2px 0 0;font:italic 500 12.5px/1.55 Georgia,serif;color:#43351c}

/* Le verdict */
.orn-verdict{max-width:720px;text-align:center;padding-top:14px}
.orn-sceau{font-size:44px;animation:orn-sceau .6s cubic-bezier(.34,1.56,.64,1)}
@keyframes orn-sceau{0%{transform:scale(.3) rotate(-14deg);opacity:0}100%{transform:none;opacity:1}}
.orn-savant{display:inline-block;background:#241a0e;color:#ead9b0;border-radius:99px;padding:8px 18px;
  font:600 13.5px system-ui,sans-serif;margin:10px 0 14px;animation:orn-monte .5s ease .25s backwards}
.orn-debrief{background:#fff;border:1px solid #e6dcc4;border-radius:12px;padding:14px 18px;text-align:left;
  margin:12px 0;animation:orn-monte .5s ease .35s backwards}
.orn-debrief b{color:#7a5a1e;font-size:14px}
.orn-debrief p{margin:7px 0 0;font-size:13.5px;line-height:1.7;color:#38301f}
.orn-antibi{color:#8a7758;font-size:13px;line-height:1.6;margin:10px 0 16px}

/* Le rappel des décisions (journal trempé) */
.orn-rappel{max-width:680px}
.orn-rappel-bloc{background:#fff;border:1px solid #e6dcc4;border-radius:12px;padding:13px 16px;margin-bottom:12px}
.orn-rappel-bloc>b{font-size:14px;color:#241a0e}
.orn-rappel-opts{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}
.orn-rappel-opt{padding:8px 14px;border:1.5px solid #d9cdb2;border-radius:99px;background:#fff;cursor:pointer;
  font:600 12.5px system-ui,sans-serif;color:#5c4c30}
.orn-rappel-opt.on{background:#7a5a1e;border-color:#7a5a1e;color:#fff}

/* L'épilogue */
.orn-epilogue{max-width:760px}
.orn-epilogue-img{width:100%;max-height:270px;object-fit:cover;border-radius:16px;margin-bottom:12px;
  animation:orn-fondu 1.2s ease}
body.dys .orn-manuscrit p,body.dys .orn-argu p,body.dys .orn-retombees p{font-style:normal}

.kk-badge-symb{display:block;font-size:22px;line-height:1;margin-bottom:2px}
.kk-symboles{margin:10px 0 4px;text-align:center}
.kk-symboles span:first-child{font:600 12.5px system-ui,sans-serif;color:#64748b}
.kk-symboles-rang{display:flex;gap:10px;justify-content:center;margin-top:7px}
.kk-symbole{width:44px;height:44px;border-radius:10px;background:#fff;border:2px solid #0e7490;
  display:flex;align-items:center;justify-content:center;font-size:22px;
  box-shadow:0 2px 7px rgba(14,116,144,.18)}
.kk-suite{margin-top:10px;animation:kk-suite-pop .35s cubic-bezier(.34,1.4,.64,1)}
@keyframes kk-suite-pop{from{opacity:0;transform:translateY(6px) scale(.96)}to{opacity:1;transform:none}}

/* ===== L'Héritage Fontaine — escape game du diagnostic stratégique ===== */
.hg{max-width:1060px;margin:0 auto}
.hg h2{margin:8px 0 4px;color:#2d2416;font-family:Georgia,serif}
.hg-sous{display:block;color:#8a7b62;font-size:13px}
.hg-manoir{width:100%;max-height:260px;object-fit:cover;border-radius:16px;margin-bottom:14px;
  animation:hg-fondu .8s ease}
@keyframes hg-fondu{from{opacity:0;transform:scale(1.02)}to{opacity:1;transform:none}}
.hg-tete{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.hg-lien{background:none;border:0;color:#8a5a2b;cursor:pointer;font:600 13px system-ui,sans-serif;
  text-decoration:underline}
.hg-cta{padding:11px 24px;border:0;border-radius:11px;background:#8a5a2b;color:#fff;cursor:pointer;
  font:700 14.5px system-ui,sans-serif;transition:.18s}
.hg-cta:hover:not(:disabled){background:#6e4517;transform:translateY(-1px)}
.hg-cta:disabled{background:#cfc5b4;cursor:not-allowed}
.hg-retour{background:#fff;border:1px solid #d8cdb9;border-radius:9px;padding:8px 14px;cursor:pointer;
  font:600 13px system-ui,sans-serif;color:#5c4d33}

/* L'enveloppe et les textes manuscrits */
.hg-lettre-ecran{max-width:760px}
.hg-lettre-img{width:100%;max-height:230px;object-fit:cover;border-radius:16px;margin-bottom:14px;
  animation:hg-fondu .8s ease}
.hg-carton{background:#fff;border:1px solid #d8cdb9;border-radius:4px;padding:18px 22px;margin-bottom:14px;
  box-shadow:0 3px 14px rgba(60,40,10,.12);animation:hg-monte .5s ease .15s backwards}
@keyframes hg-monte{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.hg-carton-titre{font:700 13px system-ui,sans-serif;letter-spacing:.18em;text-transform:uppercase;
  color:#8a5a2b;border-bottom:1px solid #e8dfd0;padding-bottom:8px;margin-bottom:10px}
.hg-notaire{margin:0;font-size:14px;line-height:1.75;color:#3d3424}
.hg-manuscrit{background:#fbf6ea;border:1px solid #e5d9bf;border-radius:3px;padding:18px 24px;
  margin-bottom:14px;box-shadow:0 2px 10px rgba(60,40,10,.08);position:relative;
  animation:hg-monte .5s ease .3s backwards}
.hg-manuscrit::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,#b8860b,#8a5a2b)}
.hg-manuscrit p{margin:0;font:italic 500 15.5px/1.85 Georgia,serif;color:#4a3a20;white-space:pre-line}
.hg-manuscrit.grand p{font-size:17px}
.hg-regle{color:#8a7b62;font-size:13px;line-height:1.6;margin-bottom:14px}
.hg-duo-lettre{display:grid;grid-template-columns:minmax(0,240px) minmax(0,1fr);gap:14px;
  align-items:start;margin-bottom:14px}
@media(max-width:640px){.hg-duo-lettre{grid-template-columns:1fr}}
.hg-portrait{background:#fff;border:1px solid #d8cdb9;padding:8px 8px 10px;border-radius:4px;
  box-shadow:0 3px 12px rgba(60,40,10,.14);transform:rotate(-1.2deg)}
.hg-portrait-img{width:100%;border-radius:2px;display:block}
.hg-portrait-leg{text-align:center;font:italic 12.5px Georgia,serif;color:#6d5f47;margin-top:7px}
.hg-duo-lettre .hg-manuscrit{margin-bottom:0}

/* ===== PrépaBac 2 : #LeSujetDékortiké, entraînement, bac blanc, fiches ===== */
.pb-rubs{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0 16px}
.pb-rub{padding:9px 16px;border-radius:12px;border:1px solid #e4daf3;background:#fff;
  font:700 13px system-ui,sans-serif;color:#6b6485;cursor:pointer;transition:.18s}
.pb-rub.on{background:#2d2748;color:#fff;border-color:#2d2748;transform:translateY(-1px);
  box-shadow:0 3px 10px rgba(45,39,72,.25)}

.dk-liste{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:12px}
.dk-carte{text-align:left;background:#fff;border:1px solid #e4daf3;border-radius:16px;padding:15px 17px;
  cursor:pointer;transition:.2s;animation:pb-glisse .45s ease backwards;display:flex;
  flex-direction:column;gap:6px}
.dk-carte:hover:not(.verrou){transform:translateY(-3px);box-shadow:0 6px 18px rgba(45,39,72,.14);border-color:#c9b8ec}
.dk-carte.verrou{opacity:.62;filter:saturate(.35);cursor:not-allowed;background:#faf8fc}
.dk-carte-vp{font:600 11px system-ui,sans-serif;color:#15803d;font-style:normal}
.vis-annales{background:#fff;border:1px solid #e4daf3;border-radius:14px;padding:14px 17px;margin-bottom:14px}
.vis-annales>b{font-size:14px;color:#2d2748}
.vis-annales>p{margin:6px 0 12px;font:400 13px/1.6 system-ui,sans-serif;color:#4a4463}
.vis-annales-bloc{margin-bottom:10px}
.vis-annales-bloc>i{display:block;font:700 11.5px system-ui,sans-serif;font-style:normal;
  text-transform:uppercase;letter-spacing:.08em;color:#8a80a8;margin-bottom:6px}
.vis-annale{display:inline-flex;flex-direction:column;align-items:flex-start;gap:1px;text-align:left;
  border:1px solid #e4daf3;background:#fff;border-radius:11px;padding:7px 12px;margin:0 6px 6px 0;
  font:600 12.5px system-ui,sans-serif;color:#4a4463;cursor:pointer;transition:.16s}
.vis-annale em{font:500 10.5px system-ui,sans-serif;font-style:normal;color:#a89cc8}
.vis-annale:hover:not(:disabled){border-color:#7c3aed}
.vis-annale.on{background:#eefaf1;border-color:#16a34a;color:#166534}
.vis-annale.on em{color:#4d9e6a}
.vis-annale.libre{background:#f6f2fd;border-color:#c9b8ec;color:#5b21b6;cursor:default}
.dk-verrou-note{background:#fff8e8;border:1px solid #f0dcae;border-radius:12px;padding:11px 15px;
  font:500 13px/1.6 system-ui,sans-serif;color:#7a5a12;margin:0 0 12px}
.dk-verrou-note.prof{background:#eefaf1;border-color:#b6e4c6;color:#166534}
.dk-carte-haut{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.dk-carte-haut b{font:700 15px Georgia,serif;color:#2d2748}
.dk-badge{flex:none;font:700 10.5px system-ui,sans-serif;border-radius:99px;padding:3px 10px;
  background:#f1ecfa;color:#6b6485}
.dk-badge.off{background:#e7f9ee;color:#15803d}
.dk-carte-centre{font:600 12px system-ui,sans-serif;color:#8a80a8}
.dk-carte p{margin:0;font:400 13px/1.6 system-ui,sans-serif;color:#4a4463}

.dk-tete{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.dk-titre{flex:1;min-width:200px}
.dk-titre b{display:block;font:700 16px Georgia,serif;color:#2d2748}
.dk-titre span{font-size:12.5px;color:#15803d}
.dk-pdf{display:inline-block;background:#fff;border:1px solid #e4daf3;border-radius:10px;
  padding:8px 13px;font:700 12.5px system-ui,sans-serif;color:#2d2748;text-decoration:none}
.dk-pdf:hover{border-color:#2d2748}
.dk-jauge{position:relative;background:#f1ecfa;border-radius:99px;height:26px;margin-bottom:12px;overflow:hidden}
.dk-jauge-barre{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#7c3aed,#2d2748);
  border-radius:99px;transition:width .4s ease}
.dk-jauge span{position:relative;display:block;text-align:center;font:700 12px/26px system-ui,sans-serif;color:#2d2748;mix-blend-mode:normal}
.dk-dossiers{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.dk-dossier-btn{padding:8px 14px;border-radius:12px;border:1px solid #e4daf3;background:#fff;cursor:pointer;
  font:700 13px system-ui,sans-serif;color:#6b6485;text-align:left}
.dk-dossier-btn i{display:block;font:500 11px system-ui,sans-serif;color:#a89cc8;font-style:normal}
.dk-dossier-btn.on{background:#2d2748;color:#fff;border-color:#2d2748}
.dk-dossier-btn.on i{color:#c9bde8}
.dk-dossier-titre{margin:10px 0;font-size:15px;color:#2d2748}
.dk-dossier-suivant{display:block;margin:14px auto 0}

.dk-q{background:#fff;border:1px solid #e4daf3;border-radius:14px;margin-bottom:9px;overflow:hidden}
.dk-q.on{border-color:#7c3aed;box-shadow:0 3px 14px rgba(124,58,237,.12)}
.dk-q-tete{width:100%;display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:0;
  background:none;cursor:pointer;text-align:left}
.dk-num{flex:none;background:#7c3aed;color:#fff;font:800 12px system-ui,sans-serif;border-radius:8px;
  padding:4px 9px}
.dk-enonce{flex:1;font:600 13.5px/1.5 system-ui,sans-serif;color:#2d2748}
.dk-corps{padding:0 14px 14px}
.dk-temps{border-radius:12px;padding:11px 14px;margin-bottom:9px;animation:pb-glisse .35s ease}
.dk-temps b{display:block;font-size:13px;margin-bottom:7px}
.dk-temps p{margin:0;font:400 13px/1.65 system-ui,sans-serif}
.dk-decode{background:#f6f2fd;border:1px solid #e0d4f7}
.dk-decode b{color:#5b21b6}
.dk-decode-grille{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}
.dk-decode-grille>div{background:#fff;border-radius:9px;padding:8px 11px;font:500 12.5px/1.5 system-ui,sans-serif;color:#4a4463}
.dk-decode-grille i{display:block;font:700 10.5px system-ui,sans-serif;font-style:normal;
  text-transform:uppercase;letter-spacing:.08em;color:#8a80a8;margin-bottom:3px}
.dk-demarche{background:#f0f6f6;border:1px solid #cfe3e3}
.dk-demarche b{color:#155e63}
.dk-demarche p{color:#1f4d51}
.dk-attendu{background:#eefaf1;border:1px solid #b6e4c6}
.dk-attendu b{color:#166534}
.dk-attendu p{color:#14532d}
.dk-piege{background:#fdf0e4;border:1px solid #eecfa8;border-radius:12px;padding:10px 14px;
  font:500 12.5px/1.6 system-ui,sans-serif;color:#8a4b12;margin-bottom:9px}
.dk-piege b{color:#8a4b12}
.dk-suite{display:block;width:100%;padding:10px;border-radius:11px;border:1px dashed #c9b8ec;
  background:#faf8ff;font:600 13px system-ui,sans-serif;color:#5b21b6;cursor:pointer;margin-bottom:9px}
.dk-suite:hover{background:#f3ecfd}
.dk-autoeval{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font:600 12.5px system-ui,sans-serif;color:#6b6485}
.dk-ae{padding:7px 13px;border-radius:99px;border:1px solid #e4daf3;background:#fff;cursor:pointer;
  font:600 12.5px system-ui,sans-serif}
.dk-ae.on{border-color:#2d2748;background:#2d2748;color:#fff}

.pb-botag{display:inline-block;margin-left:8px;vertical-align:middle;background:#f3ecfd;
  border:1px solid #d8c6f5;border-radius:99px;padding:2px 10px;font:700 10.5px system-ui,sans-serif;
  color:#5b21b6;cursor:pointer;white-space:nowrap;transition:.15s}
.pb-botag:hover{background:#7c3aed;color:#fff;border-color:#7c3aed}
.pb-botag-note{margin:0 0 12px;font:600 13.5px/1.6 system-ui,sans-serif;color:#5b21b6;
  background:#f6f2fd;border-radius:10px;padding:10px 14px}
.pb-botag-liste{list-style:none;margin:0;padding:0}
.pb-botag-liste li{display:flex;gap:10px;align-items:baseline;padding:7px 4px;border-bottom:1px solid #f1ecfa;
  font:500 13.5px system-ui,sans-serif;color:#3d3660}
.pb-botag-liste i{margin-left:auto;font-style:normal;font-size:12px;color:#8a80a8}
.pb-botag-renvoi{margin:12px 0 0;font-size:12.5px;color:#6b6485}
.pb-verbe{background:none;border:0;padding:0;font:inherit;color:#5b21b6;cursor:pointer;
  text-decoration:underline;text-decoration-style:wavy;text-decoration-color:#a78bfa;
  text-underline-offset:3px;font-weight:700}
.pb-verbe:hover{color:#7c3aed;background:#f3ecfd;border-radius:4px}
.pb-verbe-fiche{margin:0;font:500 14px/1.75 system-ui,sans-serif;color:#3d3660}
.pb-ex{background:#fff;border:1px solid #e4daf3;border-radius:14px;padding:13px 16px;margin-bottom:10px;
  animation:pb-glisse .4s ease backwards}
.pb-ex-q{margin:0 0 10px;font:600 13.5px/1.6 system-ui,sans-serif;color:#2d2748}
.pb-extrait{margin-bottom:10px}
.pb-extrait-btn{width:100%;display:flex;gap:8px;align-items:center;padding:9px 13px;border-radius:11px;
  border:1px solid #d9cfa8;background:#fdfaf0;font:600 12.5px system-ui,sans-serif;color:#7a5a12;
  cursor:pointer;text-align:left}
.pb-extrait-btn .pb-chev{margin-left:auto}
.pb-extrait.on .pb-extrait-btn{border-radius:11px 11px 0 0}
.pb-extrait-corps{border:1px solid #d9cfa8;border-top:0;border-radius:0 0 11px 11px;background:#fffdf6;
  padding:11px 14px;animation:pb-glisse .3s ease}
.pb-extrait-doc{margin-bottom:9px}
.pb-extrait-doc b{display:block;font:700 11.5px system-ui,sans-serif;text-transform:uppercase;
  letter-spacing:.06em;color:#8a6a1e;margin-bottom:3px}
.pb-extrait-doc p{margin:0;font:500 13px/1.65 Georgia,serif;color:#4a3f2c}
.pb-ex-att{background:#eefaf1;border:1px solid #b6e4c6;border-radius:11px;padding:10px 13px;animation:pb-glisse .3s ease}
.pb-ex-att b{font-size:12.5px;color:#166534}
.pb-ex-att p{margin:5px 0 0;font:400 13px/1.65 system-ui,sans-serif;color:#14532d}

.pb-blanc-choix{text-align:center;padding:8px 0 4px}
.pb-blanc-liste{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:12px}
.pb-blanc-sujet{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:#fff;
  border:1px solid #e4daf3;border-radius:14px;padding:13px 16px;margin-bottom:12px}
.pb-blanc-sujet b{font:700 15px Georgia,serif;color:#2d2748}
.pb-chrono{text-align:center;font:800 22px system-ui,sans-serif;color:#2d2748;background:#f6f2fd;
  border-radius:14px;padding:14px;margin-bottom:12px}
.pb-chrono.fini{background:#fdf0e4;color:#8a4b12;font-size:16px}
.pb-grille{background:#fff;border:1px solid #e4daf3;border-radius:14px;padding:14px 17px}
.pb-grille b{font-size:13.5px;color:#2d2748}
.pb-grille label{display:flex;gap:10px;align-items:flex-start;padding:8px 0;border-bottom:1px solid #f1ecfa;
  font:500 13px/1.6 system-ui,sans-serif;color:#4a4463;cursor:pointer}
.pb-grille label.on{color:#166534}
.pb-grille input{margin-top:3px;accent-color:#16a34a}
.pb-grille-bilan{margin:10px 0 0;font:700 12.5px system-ui,sans-serif;color:#6b6485}

.pb-calculs{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:10px}
.pb-calc{background:#fff;border:1px solid #e4daf3;border-left:4px solid #0e7490;border-radius:12px;
  padding:12px 15px;animation:pb-glisse .4s ease backwards}
.pb-calc b{font-size:13.5px;color:#2d2748}
.pb-calc code{display:block;background:#f0f6f6;border-radius:8px;padding:8px 11px;margin:7px 0;
  font:600 12.5px/1.5 ui-monospace,Consolas,monospace;color:#155e63;white-space:normal}
.pb-calc p{margin:0;font:400 12.5px/1.6 system-ui,sans-serif;color:#4a4463}
.pb-calc-ex{margin-top:9px;width:100%;padding:8px;border-radius:9px;border:1px dashed #9ec9d4;
  background:#f4fafb;font:700 12.5px system-ui,sans-serif;color:#0e7490;cursor:pointer}
.pb-calc-ex:hover{background:#e6f4f7}
.pbx>div{border-radius:12px;padding:12px 15px;margin-bottom:10px}
.pbx b{display:block;font-size:13px;margin-bottom:6px}
.pbx p{margin:0;font:400 13.5px/1.7 system-ui,sans-serif}
.pbx-enonce{background:#f6f2fd;border:1px solid #e0d4f7}
.pbx-enonce b{color:#5b21b6}
.pbx-enonce p{color:#3d3660}
.pbx-pose{background:#f0f6f6;border:1px solid #cfe3e3}
.pbx-pose b{color:#155e63}
.pbx-pose code{display:block;font:600 13px/1.9 ui-monospace,Consolas,monospace;color:#0e4a5e;
  white-space:pre-wrap}
.pbx-res{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  background:linear-gradient(120deg,#2d2748,#463a72);color:#fff}
.pbx-res span{font:700 11.5px system-ui,sans-serif;text-transform:uppercase;letter-spacing:.1em;color:#c9bde8}
.pbx-res b{margin:0;font:800 20px system-ui,sans-serif}
.pbx-phrase{background:#eefaf1;border:1px solid #b6e4c6}
.pbx-phrase b{color:#166534}
.pbx-phrase p{color:#14532d}
.pbx-garde{background:#fdf0e4;border:1px solid #eecfa8}
.pbx-garde b{color:#8a4b12}
.pbx-garde p{color:#8a4b12}
.pb-erreurs,.pb-tips{list-style:none;margin:0;padding:0}
.pb-erreurs li,.pb-tips li{display:flex;gap:11px;background:#fff;border:1px solid #e4daf3;border-radius:12px;
  padding:11px 15px;margin-bottom:8px;font:500 13px/1.65 system-ui,sans-serif;color:#4a4463;
  animation:pb-glisse .4s ease backwards}
.pb-erreurs li{border-left:4px solid #dc2626}
.pb-tips li{border-left:4px solid #16a34a}
@media(max-width:640px){.dk-tete{gap:8px}.pb-chrono{font-size:18px}}

/* ===== PrépaBac : l'infographie des annales ===== */
.pb{max-width:980px}
.pb-intro{color:#5a5470;font-size:14px;line-height:1.65;margin:4px 0 16px}
.pb-titre-mat{margin:14px 0 10px;font-size:19px;color:#2d2748}
.pb-bascule{display:flex;gap:8px;margin:12px 0}
.pb-bascule button{padding:9px 20px;border-radius:12px;border:1px solid #e4daf3;background:#fff;
  font:700 14px system-ui,sans-serif;color:#6b6485;cursor:pointer;transition:.18s}
.pb-bascule button.on{background:var(--ink,#2d2748);color:#fff;border-color:var(--ink,#2d2748);transform:translateY(-1px)}

.pb-chiffres{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:14px}
.pb-chiffre{background:linear-gradient(135deg,#fff,#f6f2fd);border:1px solid #e4daf3;border-radius:16px;
  padding:16px;text-align:center;animation:pb-pop .5s cubic-bezier(.2,.9,.3,1.2) backwards}
.pb-chiffre:nth-child(2){animation-delay:.12s}
.pb-chiffre:nth-child(3){animation-delay:.24s}
@keyframes pb-pop{from{opacity:0;transform:scale(.85)}to{opacity:1;transform:none}}
.pb-chiffre b{display:block;font-size:30px;color:#2d2748}
.pb-chiffre span{font-size:12.5px;color:#6b6485}

.pb-epreuve{background:#fff;border:1px solid #e4daf3;border-radius:16px;padding:15px 18px;margin-bottom:16px}
.pb-epreuve h4{margin:0 0 8px;font-size:15px;color:#2d2748}
.pb-epreuve p{margin:0 0 8px;font-size:13.5px;line-height:1.65;color:#4a4463}
.pb-baro{background:#f6f2fd;border-radius:10px;padding:9px 13px;font-weight:600}
.pb-h{margin:22px 0 10px;font-size:15px;color:#2d2748}

.pb-donut-bloc{display:flex;align-items:center;gap:18px;flex-wrap:wrap;background:#fff;
  border:1px solid #e4daf3;border-radius:16px;padding:14px 18px;margin-bottom:12px}
.pb-donut{width:150px;height:150px;flex:none;transform:rotate(-90deg)}
.pb-donut-arc{cursor:pointer;transition:stroke-width .25s,opacity .25s;
  animation:pb-arc 1s ease backwards}
@keyframes pb-arc{from{stroke-dasharray:0 999}}
.pb-donut-arc.pale{opacity:.25}
.pb-donut-titre{transform:rotate(90deg);transform-origin:70px 70px;font:600 11px system-ui,sans-serif;fill:#6b6485}
.pb-legende{display:flex;flex-direction:column;gap:8px}
.pb-leg{display:flex;align-items:center;gap:9px;border:1px solid #e4daf3;background:#fff;border-radius:99px;
  padding:8px 15px;font:700 13px system-ui,sans-serif;color:#4a4463;cursor:pointer;transition:.18s}
.pb-leg i{width:13px;height:13px;border-radius:50%;background:var(--c)}
.pb-leg.on{border-color:var(--c);box-shadow:0 2px 9px rgba(0,0,0,.12);transform:translateX(3px)}
.pb-leg.pale{opacity:.4}

.pb-barre-ligne{background:#fff;border:1px solid #e4daf3;border-radius:14px;margin-bottom:8px;
  cursor:pointer;transition:.2s;overflow:hidden;animation:pb-glisse .45s ease backwards}
@keyframes pb-glisse{from{opacity:0;transform:translateX(-16px)}to{opacity:1;transform:none}}
.pb-barre-ligne:hover{border-color:#c9b8ec;transform:translateX(2px)}
.pb-barre-ligne.on{border-color:#2d2748;box-shadow:0 3px 14px rgba(45,39,72,.14)}
.pb-barre-ligne.pale{opacity:.3;pointer-events:none}
.pb-barre-tete{display:flex;align-items:center;gap:11px;padding:11px 14px}
.pb-rang{flex:none;width:26px;height:26px;border-radius:50%;background:#2d2748;color:#fff;
  font:800 13px system-ui,sans-serif;display:flex;align-items:center;justify-content:center}
.pb-barre-corps{flex:1;min-width:0}
.pb-barre-nom{font:600 13.5px/1.4 system-ui,sans-serif;color:#2d2748;margin-bottom:5px}
.pb-barre-fond{background:#f1ecfa;border-radius:99px;height:24px;overflow:hidden}
.pb-barre{height:100%;border-radius:99px;width:var(--w);display:flex;align-items:center;
  justify-content:flex-end;padding-right:10px;min-width:88px;
  animation:pb-barre-pousse .9s cubic-bezier(.2,.8,.3,1) backwards}
@keyframes pb-barre-pousse{from{width:0;min-width:0}}
.pb-barre-val{font:700 11.5px system-ui,sans-serif;color:#fff;white-space:nowrap;text-shadow:0 1px 2px rgba(0,0,0,.25)}
.pb-chev{flex:none;color:#a89cc8;font-size:11px}
.pb-barre-detail{max-height:0;transition:max-height .3s ease;padding:0 14px}
.pb-barre-ligne.on .pb-barre-detail{max-height:220px;padding:0 14px 13px}
.pb-prog-puce{display:inline-block;color:#fff;font:700 11px system-ui,sans-serif;border-radius:99px;
  padding:4px 12px;margin-bottom:7px}
.pb-barre-detail p{margin:0;font-size:13px;line-height:1.65;color:#4a4463}

.pb-rituels{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:10px}
.pb-rituel{background:#fff;border:1px solid #e4daf3;border-left:4px solid #7c3aed;border-radius:12px;
  padding:12px 15px;cursor:pointer;transition:.18s;animation:pb-glisse .45s ease backwards}
.pb-rituel:hover{transform:translateY(-2px);box-shadow:0 4px 14px rgba(124,58,237,.12)}
.pb-rituel b{display:flex;justify-content:space-between;gap:8px;font-size:13.5px;color:#2d2748}
.pb-rituel p{margin:8px 0 0;font-size:13px;line-height:1.65;color:#4a4463}

.pb-annees{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}
.pb-annee{padding:7px 14px;border-radius:99px;border:1px solid #e4daf3;background:#fff;
  font:700 12.5px system-ui,sans-serif;color:#6b6485;cursor:pointer}
.pb-annee.on{background:#7c3aed;border-color:#7c3aed;color:#fff}
.pb-argus{list-style:none;margin:0;padding:0}
.pb-argus li{background:#fff;border:1px solid #e4daf3;border-radius:10px;padding:9px 13px;margin-bottom:6px;
  font-size:13px;line-height:1.55;color:#3d3660;display:flex;gap:10px;align-items:baseline;
  animation:pb-glisse .4s ease backwards}
.pb-an{flex:none;font:800 11.5px system-ui,sans-serif;color:#7c3aed;background:#f3ecfd;
  border-radius:6px;padding:2px 8px}

.pb-conseils{background:linear-gradient(135deg,#2d2748,#463a72);border-radius:16px;padding:16px 20px;
  color:#fff;margin-top:20px}
.pb-conseils b{font-size:14.5px}
.pb-conseils ul{margin:10px 0 0;padding-left:20px}
.pb-conseils li{font-size:13.5px;line-height:1.7;margin-bottom:7px;color:#e8e2f7}
.pb-jourj{background:linear-gradient(135deg,#0e4a5e,#15707d)}
.pb-renvoi{margin:12px 0 0;font-size:12.5px;color:#bfe3ec;border-top:1px solid rgba(255,255,255,.2);padding-top:10px}
@media(max-width:640px){.pb-donut-bloc{justify-content:center}.pb-barre-tete{padding:10px 11px}}


/* ===== Les formes juridiques — quatre activités SDGN ===== */
.fj{max-width:940px;margin:0 auto}
.fj-banniere{width:100%;aspect-ratio:16/7;max-height:340px;object-fit:cover;border-radius:16px;display:block;margin-bottom:14px}
@media(max-width:640px){.fj-banniere{aspect-ratio:4/3;max-height:260px}}
.fj h2{font-family:'Fraunces',serif;font-size:24px;margin:0 0 12px}
.fj h3{font-family:'Fraunces',serif;font-size:19px;margin:0 0 10px;color:#2d2748}
.fj-mentor{background:#f6f2fd;border-left:4px solid #7c3aed;border-radius:0 12px 12px 0;padding:12px 16px;margin-bottom:12px}
.fj-mentor b{display:block;font-size:13px;color:#5b21b6;margin-bottom:5px}
.fj-mentor p{margin:0;font-size:13.5px;line-height:1.6;color:#3d3564}
.fj-regle{font-size:13.5px;line-height:1.65;color:#4b5563;margin:0 0 10px}
.fj-antibi{background:#f0fdf4;border-radius:10px;padding:9px 13px;font-size:12.5px;color:#166534;margin:0 0 12px}
.fj-consigne{font-size:14px;font-weight:600;color:#2d2748;background:#f6f2fd;border-radius:10px;padding:9px 13px;margin:12px 0}
.fj-cta{background:#7c3aed;color:#fff;border:none;border-radius:11px;padding:10px 20px;
  font:inherit;font-size:14px;font-weight:700;cursor:pointer;margin-top:12px}
.fj-cta:hover{background:#6d28d9}
.fj-cta:disabled{background:#cbd5e1;cursor:default}
.fj-btn-soft{background:#fff;border:1px solid #d7cdf0;color:#5b21b6;border-radius:11px;padding:9px 16px;
  font:inherit;font-size:13.5px;font-weight:600;cursor:pointer;margin-top:12px;margin-right:8px}
.fj-retour{background:none;border:none;color:#7c3aed;font:inherit;font-size:13px;font-weight:600;cursor:pointer;padding:4px 0}
.fj-jauge-txt{font-size:12.5px;color:#6b7280;margin:6px 0}
.fj-jauge{height:9px;background:#eee4f3;border-radius:999px;overflow:hidden;margin-bottom:14px}
.fj-jauge-in{height:100%;background:linear-gradient(90deg,#7c3aed,#c084fc);transition:width .4s}

/* encart Aide */
.fj-detail{margin:12px 0}
.fj-detail-btn{background:#fff;border:1px dashed #7c3aed;color:#5b21b6;border-radius:10px;
  padding:8px 14px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.fj-detail-corps{border:1px dashed #d7cdf0;border-radius:12px;padding:12px 15px;margin-top:8px;background:#fdfbff}
.fj-detail-corps>b{display:block;color:#5b21b6;font-size:13.5px;margin-bottom:6px}
.fj-detail-corps p{margin:0 0 8px;font-size:13px;line-height:1.6;color:#3d4a52}
.fj-mini{background:#fff;border:1px solid #eee4f3;border-radius:10px;padding:10px 13px;margin-top:6px}
.fj-mini>b{display:block;font-size:12.5px;color:#7c3aed;margin-bottom:5px}
.fj-mini p{margin:0 0 8px;font-size:13px;color:#3d4a52}
.fj-mini-opts{display:flex;gap:8px;flex-wrap:wrap}
.fj-mini-opt{background:#f8fafc;border:1px solid #e2e8f0;border-radius:9px;padding:7px 14px;
  font:inherit;font-size:13px;cursor:pointer}
.fj-mini-opt.ok{background:#f0fdf4;border-color:#86efac}
.fj-mini-opt.ko{background:#fef2f2;border-color:#fca5a5}
.fj-mini-fb{margin-top:8px;font-size:12.5px;border-radius:8px;padding:7px 11px;line-height:1.5}
.fj-mini-fb.ok{background:#f0fdf4;color:#166534}
.fj-mini-fb.ko{background:#fdf5ef;color:#9a3f22}


/* --- Competences psychosociales : le parcours « Avan / Apre » ---------
   ⚠️ Toutes les classes portent le prefixe `cps-` (piege N) : un
   modificateur nu comme `.sans` ou `.avec` heriterait d'une regle
   homonyme ailleurs dans les 5 200 regles de cette feuille. */
.cps-parcours{max-width:780px;margin:0 auto}
.cps-fil{font-size:13px;color:#64748b;margin:6px 0 12px;font-weight:600}
.cps-sc{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:18px 20px;margin-bottom:14px}
.cps-sc-tete{margin-bottom:10px}
.cps-sc-lieu{display:inline-block;font-size:12px;font-weight:700;color:#0891b2;background:#ecfeff;border:1px solid #a5f3fc;border-radius:999px;padding:3px 10px}
.cps-sc-titre{margin:8px 0 0;font-size:20px;line-height:1.25}
.cps-sc-img{width:100%;max-height:230px;object-fit:cover;border-radius:10px;margin:10px 0}
.cps-sc-situ{font-size:16px;line-height:1.6;color:#334155}
.cps-rappel{font-size:14px;color:#64748b;font-style:italic;margin:0 0 10px}
.cps-volet{border-radius:12px;padding:14px 16px;margin:10px 0}
.cps-volet-t{font-weight:800;font-size:14px;margin-bottom:8px;letter-spacing:.02em}
.cps-sans{background:#fef2f2;border:1px solid #fecaca}
.cps-sans .cps-volet-t{color:#b91c1c}
.cps-avec{background:#f0fdf4;border:1px solid #bbf7d0}
.cps-avec .cps-volet-t{color:#15803d}
.cps-repl{font-size:15.5px;line-height:1.55;margin:0 0 8px}
.cps-reac{font-size:15px;color:#475569;margin:0 0 8px}
.cps-res{font-size:15px;font-weight:600;margin:0}
.cps-comp{width:100%;border-collapse:collapse;margin:10px 0;font-size:14.5px}
.cps-comp th,.cps-comp td{border:1px solid #e2e8f0;padding:8px 10px;text-align:left;vertical-align:top}
.cps-comp thead th{background:#f8fafc;font-size:13px}
.cps-comp tbody th{background:#f8fafc;font-weight:600;width:32%}
.cps-td-sans{background:#fef2f2}
.cps-td-avec{background:#f0fdf4}
.cps-nom{background:#eef2ff;border:1px solid #c7d2fe;border-radius:12px;padding:14px 16px;margin:12px 0}
.cps-nom-t{font-size:12px;font-weight:700;color:#4338ca;letter-spacing:.04em;text-transform:uppercase}
.cps-nom-n{font-size:19px;font-weight:800;margin:4px 0 6px}
.cps-morale{font-size:15px;color:#334155;font-style:italic;margin:10px 0}
.cps-liste{margin:10px 0;padding-left:20px;line-height:1.7}
.cps-btn{display:inline-block;margin-top:12px;background:#0d9488;color:#fff;border:none;border-radius:10px;padding:11px 18px;font-size:15px;font-weight:700;cursor:pointer}
.cps-btn:hover{filter:brightness(1.08)}
@media(max-width:560px){.cps-comp{font-size:13px}.cps-comp tbody th{width:30%}}

/* questions */
.fj-q{margin-top:8px}
.th-banniere{width:100%;aspect-ratio:16/7;max-height:250px;object-fit:cover;
  border-radius:16px;display:block;margin:0 0 14px}
@media(max-width:640px){.th-banniere{aspect-ratio:4/3;max-height:210px}}

/* ===== ETLV — compréhension écrite multi-niveaux ===== */
.er-meta{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:12px 0}
@media(max-width:640px){.er-meta{grid-template-columns:1fr}}
.er-meta>div{background:#f8fafc;border-radius:12px;padding:11px 14px}
.er-meta b{font-size:11.5px;letter-spacing:.06em;color:#2563eb;display:block;margin-bottom:5px}
.er-meta ul{margin:0;padding-left:17px}
.er-meta li{font-size:13.5px;line-height:1.5;color:#334155;margin-bottom:3px}
.er-debat{position:relative;border:2px solid #ef4444;border-radius:14px;padding:14px 16px 12px;margin:16px 0 12px}
.er-debat-l{position:absolute;top:-11px;left:14px;background:#ef4444;color:#fff;font-size:11px;
  font-weight:800;letter-spacing:.08em;padding:2px 10px;border-radius:6px}
.er-debat p{margin:0;font-size:15.5px;font-weight:700;color:#1d4ed8;line-height:1.5}
.er-doc{background:#fffbeb;border-radius:14px;padding:15px 18px;margin-bottom:14px}
.er-doc-tete{border-bottom:2px solid #fde68a;padding-bottom:7px;margin-bottom:11px}
.er-doc-tete b{display:block;font-size:15px;color:#78350f}
.er-doc-tete span{font-size:12px;color:#a16207;font-style:italic}
.er-doc-img{width:100%;aspect-ratio:16/7;max-height:230px;object-fit:cover;border-radius:11px;margin-bottom:11px;display:block}
.er-doc-corps p{margin:0 0 10px;font-size:14.5px;line-height:1.72;color:#1e293b}
.er-note{background:none;border:none;padding:0;font:inherit;color:#1d4ed8;font-weight:700;
  cursor:help;border-bottom:2px dotted #93c5fd}
.er-note.on{background:#dbeafe;border-radius:4px}
.er-note-bulle{background:#1e293b;color:#fff;border-radius:10px;padding:9px 13px;font-size:13.5px;margin-top:9px}
.er-note-bulle b{color:#93c5fd}
.er-doc-aide{font-size:12.5px;color:#a16207;font-style:italic;margin:8px 0 0}
.er-h4{margin:16px 0 9px;font-size:15px;color:#0f172a}
.er-nivs{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
.er-niv{display:flex;flex-direction:column;gap:3px;align-items:flex-start;text-align:left;
  font:inherit;cursor:pointer;background:#fff;border:1.5px solid #e2e8f0;border-radius:13px;
  padding:12px 14px;transition:.14s}
.er-niv:hover{border-color:#2563eb;transform:translateY(-2px);box-shadow:0 4px 14px rgba(37,99,235,.14)}
.er-niv.fait{background:#f0fdf4;border-color:#86efac}
.er-niv-e{font-size:17px;letter-spacing:.08em}
.er-niv b{font-size:14.5px;color:#0f172a}
.er-niv-n{font-size:11.5px;color:#64748b;font-weight:700}
.er-niv-a{font-size:12px;color:#475569;line-height:1.45}
.er-niv-ok{font-size:11.5px;color:#166534;font-weight:700}
.er-rappel{margin-bottom:12px}
.er-rappel summary{cursor:pointer;font-size:13.5px;font-weight:700;color:#2563eb;padding:7px 0}
.er-vf{flex-direction:row}
.er-vf .fj-opt{flex:1;text-align:center;font-weight:700}
.er-cit{font-style:italic}
.er-suite{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}
.er-btn-soft{font:inherit;font-size:13.5px;cursor:pointer;background:#f1f5f9;border:1px solid #e2e8f0;
  border-radius:10px;padding:9px 14px;color:#475569;font-weight:600;margin-top:12px;margin-right:8px}
.er-btn-soft:hover{border-color:#94a3b8}
.er-tache{background:#f5f3ff;border-left:4px solid #7c3aed;border-radius:0 12px 12px 0;
  padding:12px 15px;font-size:14.5px;line-height:1.6;color:#2e1065}
.er-etapes{padding-left:20px}
.er-etapes li{font-size:14px;line-height:1.6;color:#334155;margin-bottom:6px}
.er-vocab{background:#fff;border:1.5px solid #e2e8f0;border-radius:13px;padding:13px 16px;margin:14px 0}
.er-vocab h4{margin:0 0 9px;font-size:14px;color:#0f172a}
.er-vocab-g{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:5px 16px}
.er-vocab-l{display:flex;gap:8px;font-size:13.5px;line-height:1.5;border-bottom:1px dotted #e2e8f0;padding:3px 0}
.er-vocab-l b{color:#1d4ed8;flex:0 0 auto}
.er-vocab-l span{color:#64748b}

/* ===================== AGORA — anglais bac pro ===================== */
/* Deux colonnes qui se relient, des mots qu'on clique, un programme qui se
   lit. Le vert = acquis, le violet = sélectionné : jamais de rouge sur un
   exercice de langue, l'élève est déjà assez inhibé comme ça. */
.ag-match{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:640px){.ag-match{grid-template-columns:1fr}}
.ag-col{display:flex;flex-direction:column;gap:8px}
.ag-cell{display:flex;flex-direction:column;gap:2px;align-items:flex-start;text-align:left;
  font:inherit;font-size:14px;cursor:pointer;padding:10px 13px;border-radius:11px;
  border:1.5px solid #e2e8f0;background:#fff;color:#1e293b;transition:.14s;width:100%}
.ag-cell:hover:not(:disabled){border-color:#7c3aed;transform:translateY(-1px)}
.ag-cell.sel{border-color:#7c3aed;background:#f5f3ff;box-shadow:0 0 0 3px rgba(124,58,237,.14)}
.ag-cell.ok{border-color:#86efac;background:#f0fdf4;color:#166534;cursor:default;opacity:.75}
.ag-cell.fr{justify-content:center}
.ag-en{font-weight:700}
.ag-pron{font-size:11.5px;color:#7c8598;font-style:italic}

.ag-situ{background:#f5f3ff;border-left:4px solid #7c3aed;border-radius:0 12px 12px 0;
  padding:12px 15px;font-size:15px;line-height:1.55;color:#2e1065;margin-bottom:10px}

.ag-cible{background:#fffbeb;border:1.5px dashed #fcd34d;border-radius:12px;
  padding:11px 15px;margin-bottom:10px;font-size:16px;color:#78350f}
.ag-cible-l{display:block;font-size:11.5px;text-transform:uppercase;letter-spacing:.05em;
  color:#a16207;margin-bottom:3px}
.ag-zone{display:flex;flex-wrap:wrap;gap:7px;align-items:center;min-height:52px;
  background:#f8fafc;border:1.5px solid #e2e8f0;border-radius:12px;padding:10px 12px;margin-bottom:10px}
.ag-vide{color:#94a3b8;font-size:13.5px;font-style:italic}
.ag-banque{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}
.ag-mot{font:inherit;font-size:15px;font-weight:600;cursor:pointer;padding:8px 14px;
  border-radius:10px;border:1.5px solid #cbd5e1;background:#fff;color:#1e293b;transition:.12s}
.ag-mot:hover:not(:disabled){border-color:#7c3aed;color:#5b21b6}
.ag-mot.pose{background:#f5f3ff;border-color:#c4b5fd;color:#5b21b6}
.ag-mot.off{opacity:.25;cursor:default}

.ag-prog .ag-src{font-size:12.5px;color:#64748b;font-style:italic;margin-bottom:18px}
.ag-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:11px;margin-bottom:20px}
.ag-card{background:#fff;border:1px solid #e2e8f0;border-radius:13px;padding:13px 15px}
.ag-card-q{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#64748b;font-weight:700}
.ag-card-r{font-size:17px;font-weight:800;color:#0f172a;margin:3px 0 6px}
.ag-card p{margin:0;font-size:13.5px;line-height:1.55;color:#475569}
.ag-liste{margin:0 0 20px;padding-left:20px}
.ag-liste li{font-size:14px;line-height:1.6;color:#334155;margin-bottom:7px}
.ag-encart{background:#f5f3ff;border-radius:13px;padding:14px 17px;margin-bottom:13px}
.ag-encart h4{margin:0 0 6px;font-size:15px;color:#5b21b6}
.ag-encart p{margin:0;font-size:14px;line-height:1.6;color:#3b0764}

.fj-opts{display:flex;flex-direction:column;gap:8px}
.fj-opt{text-align:left;background:#fff;border:1px solid #e2e8f0;border-radius:11px;padding:11px 15px;
  font:inherit;font-size:13.5px;line-height:1.5;color:#334155;cursor:pointer}
.fj-opt:hover:not(:disabled){border-color:#7c3aed}
.fj-opt.ok{border-color:#16a34a;background:#f0fdf4}
.fj-opt.ko{border-color:#dc2626;background:#fef2f2}
.fj-corr{margin-top:12px;background:#f8fafc;border-radius:12px;padding:12px 15px}
.fj-corr-tete{font-weight:700;font-size:14px;margin-bottom:6px}
.fj-corr-tete.ok{color:#166534}
.fj-corr-tete.revoir{color:#0e7490}
.fj-corr-txt{margin:0 0 6px;font-size:13px;color:#334155}
.fj-corr-why{margin:0;font-size:13px;line-height:1.6;color:#475569}
.fj-vf{background:#fff;border:1px solid #e2e8f0;border-radius:11px;padding:11px 14px;margin-bottom:8px}
.fj-vf p{margin:0 0 8px;font-size:13.5px;color:#334155}
.fj-vf-btns{display:flex;gap:8px}
.fj-vf-btn{background:#f8fafc;border:1px solid #e2e8f0;border-radius:9px;padding:7px 16px;
  font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.fj-vf-btn.on{background:#ede9fe;border-color:#7c3aed}
.fj-vf-btn.ok{background:#f0fdf4;border-color:#16a34a}
.fj-vf-btn.ko{background:#fef2f2;border-color:#dc2626}
.fj-vf-why{margin:8px 0 0;font-size:12.5px;line-height:1.55;color:#475569;font-style:italic}
.fj-assoc{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid #e2e8f0;
  border-radius:11px;padding:10px 14px;margin-bottom:8px}
.fj-assoc.ok{border-color:#16a34a;background:#f0fdf4}
.fj-assoc.ko{border-color:#dc2626;background:#fef2f2}
.fj-assoc-g{flex:1 1 240px;font-size:13.5px;color:#334155}
.fj-assoc select{font:inherit;font-size:13px;padding:6px 10px;border-radius:8px;border:1px solid #cbd5e1;flex:1 1 160px;min-width:0;max-width:100%}
.fj-assoc-note{font-size:13px;color:#7c2d12;background:#fffbeb;border:1px solid #fcd34d;border-radius:9px;padding:7px 12px;margin:0 0 10px}
.fj-assoc-vrai{font-size:12.5px;color:#166534;font-weight:600}
.fj-ordre{display:flex;flex-direction:column;gap:8px}
.fj-ordre-l{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e2e8f0;
  border-radius:11px;padding:10px 14px}
.fj-ordre-l.ok{border-color:#16a34a;background:#f0fdf4}
.fj-ordre-l.ko{border-color:#dc2626;background:#fef2f2}
.fj-ordre-n{width:24px;height:24px;border-radius:50%;background:#ede9fe;color:#5b21b6;
  display:grid;place-items:center;font-weight:700;font-size:12.5px;flex:none}
.fj-ordre-t{flex:1;font-size:13.5px;color:#334155}
.fj-ordre-fl button{background:none;border:1px solid #e2e8f0;border-radius:7px;cursor:pointer;
  padding:2px 7px;margin-left:3px;font-size:11px}

/* activité 1 — la rue et les boutiques */
.fj-devantures{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.fj-devanture{text-align:left;background:#fff;border:2px solid #e2e8f0;border-radius:14px;padding:0 0 11px;
  overflow:hidden;cursor:pointer;font:inherit;transition:transform .15s}
.fj-devanture:hover{transform:translateY(-2px)}
.fj-devanture.fait{opacity:.75}
.fj-devanture-img{width:100%;height:96px;object-fit:cover;display:block;margin-bottom:8px}
.fj-devanture b{display:block;padding:0 12px;font-size:14px;color:#2d2748}
.fj-devanture-lieu{display:block;padding:0 12px;font-size:12px;color:#8a97a1}
.fj-tampon{display:inline-block;margin:6px 12px 0;font-size:11.5px;font-weight:700;color:#166534;
  background:#dcfce7;border-radius:999px;padding:2px 9px}
.fj-boutique-img{width:100%;max-height:200px;object-fit:cover;border-radius:14px;display:block;margin:10px 0}
.fj-vitrine{font-size:13.5px;color:#4b5563;font-style:italic;margin:0 0 6px}
.fj-patron{font-size:13.5px;color:#334155;margin:0 0 12px}
.fj-cartes{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.fj-carte{background:#fff;border:1px solid #d7cdf0;border-radius:999px;padding:8px 15px;
  font:inherit;font-size:13px;color:#5b21b6;cursor:pointer}
.fj-carte.posee{background:#ede9fe;opacity:.6;cursor:default}
.fj-bulle{background:#fff;border:1px solid #e2e8f0;border-left:4px solid #7c3aed;border-radius:0 12px 12px 0;
  padding:10px 14px;margin-bottom:8px}
.fj-bulle-q{display:block;font-size:12px;font-weight:700;color:#7c3aed;margin-bottom:4px}
.fj-bulle p{margin:0;font-size:13.5px;line-height:1.6;color:#334155}
.fj-bulle-carnet{display:inline-block;margin-top:6px;font-size:12px;color:#166534;background:#f0fdf4;
  border-radius:8px;padding:3px 9px}
.fj-carnet{overflow-x:auto;margin:12px 0}
.fj-carnet table{width:100%;border-collapse:collapse;font-size:12.5px;min-width:640px}
.fj-carnet th{background:#f6f2fd;color:#5b21b6;padding:8px 9px;text-align:left;font-size:11.5px;
  border:1px solid #eee4f3}
.fj-carnet td{padding:7px 9px;border:1px solid #eef2f6;color:#334155}
.fj-carnet td.vide{color:#cbd5e1;text-align:center}
.fj-carnet td.rempli{background:#fdfbff}
.fj-carnet-forme{font-weight:700;color:#2d2748;white-space:nowrap}
.fj-carnet tr.fait .fj-carnet-forme::after{content:" ✓";color:#16a34a}
.fj-carnet-repli{margin-top:12px;background:#f8fafc;border-radius:10px;padding:8px 12px}
.fj-carnet-repli summary{cursor:pointer;font-size:13px;font-weight:600;color:#5b21b6}
.fj-devine-bulle{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:16px 18px;
  font-size:15px;line-height:1.6;color:#334155;font-style:italic;margin-bottom:10px}
.fj-jetons{display:flex;gap:8px;flex-wrap:wrap}
.fj-jeton{background:#fff;border:1px solid #d7cdf0;border-radius:999px;padding:9px 16px;
  font:inherit;font-size:13px;font-weight:600;color:#5b21b6;cursor:pointer}
.fj-jeton.ok{background:#f0fdf4;border-color:#16a34a;color:#166534}
.fj-jeton.ko{background:#fef2f2;border-color:#dc2626;color:#991b1b}
.fj-deja{font-size:13px;color:#166534;background:#f0fdf4;border-radius:10px;padding:9px 13px}

/* activité 2 — le forum */
.fj-visiteur{display:flex;gap:14px;flex-wrap:wrap;background:#fff;border:1px solid #e2e8f0;
  border-radius:14px;padding:14px;margin-bottom:12px}
.fj-visiteur-img{width:220px;max-width:100%;height:140px;object-fit:cover;border-radius:11px;flex:none}
.fj-visiteur-txt{flex:1 1 260px}
.fj-visiteur-txt>b{display:block;font-size:14px;color:#2d2748;margin-bottom:8px}
.fj-bulle-v{background:#f8fafc;border-radius:11px;padding:9px 13px;margin:0 0 7px;
  font-size:13.5px;line-height:1.6;color:#334155}
.fj-relance{display:block;width:100%;text-align:left;background:#fff;border:1px solid #d7cdf0;
  border-radius:10px;padding:9px 14px;margin-bottom:6px;font:inherit;font-size:13px;color:#5b21b6;cursor:pointer}
.fj-relance.on{background:#ede9fe}
.fj-cle{display:inline-block;margin-top:6px;font-size:12px;color:#92400e;background:#fffbeb;
  border-radius:8px;padding:3px 9px}
.fj-tables{margin-top:14px;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
.fj-tables>.fj-consigne{grid-column:1/-1}
.fj-table{text-align:left;background:#fff;border:2px solid #e2e8f0;border-radius:13px;padding:11px 14px;
  font:inherit;cursor:pointer}
.fj-table.ok{background:#f0fdf4;border-color:#16a34a!important}
.fj-table.ko{background:#fef2f2;border-color:#dc2626!important}
.fj-table-ico{font-size:20px;display:block;margin-bottom:4px}
.fj-table b{display:block;font-size:13.5px;color:#2d2748;margin-bottom:2px}
.fj-table-sous{font-size:12px;color:#8a97a1}
.fj-detour{background:#fffbeb;border:1px solid #fde68a;border-radius:11px;padding:10px 14px;
  font-size:13px;line-height:1.6;color:#92400e;margin-bottom:10px}
.fj-histoire{background:#fff;border-left:4px solid #16a34a;border-radius:0 12px 12px 0;padding:12px 16px;
  font-size:13.5px;line-height:1.7;color:#334155}
.fj-legende{background:#fff;border:1px solid #e2e8f0;border-radius:11px;padding:11px 14px;margin-bottom:8px}
.fj-legende p{margin:0 0 8px;font-size:13.5px;color:#334155;font-style:italic}
.fj-recap{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;margin:12px 0}
.fj-recap-l{background:#fff;border-left:4px solid #ccc;border-radius:0 10px 10px 0;padding:9px 12px}
.fj-recap-l b{display:block;font-size:13px;color:#2d2748}
.fj-recap-l span{font-size:12px;color:#8a97a1}

/* activité 3 — la journée */
.fj-frise{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}
.fj-frise-p{font-size:11.5px;color:#94a3b8;background:#f1f5f9;border-radius:999px;padding:3px 10px}
.fj-frise-p.fait{background:#dcfce7;color:#166534}
.fj-frise-p.on{background:#7c3aed;color:#fff;font-weight:700}
.fj-arret{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px;align-items:start}
@media(max-width:820px){.fj-arret{grid-template-columns:1fr}}
.fj-arret-img{width:100%;max-height:170px;object-fit:cover;border-radius:13px;display:block;margin-bottom:10px}
.fj-echelle{background:#f8fafc;border-radius:14px;padding:12px;position:sticky;top:10px}
.fj-echelle-t{display:block;font-size:12.5px;color:#5b21b6;margin-bottom:8px}
.fj-etage{display:flex;gap:9px;align-items:flex-start;width:100%;text-align:left;background:#fff;
  border:2px solid #e2e8f0;border-radius:11px;padding:9px 11px;margin-bottom:7px;font:inherit;cursor:pointer}
.fj-etage.on{background:#ede9fe}
.fj-etage.ok{background:#f0fdf4;border-color:#16a34a!important}
.fj-etage.ko{background:#fef2f2;border-color:#dc2626!important}
.fj-etage-ico{font-size:18px;flex:none}
.fj-etage-txt b{display:block;font-size:13px;color:#2d2748}
.fj-etage-txt span{font-size:11.5px;color:#8a97a1;line-height:1.45}
.fj-etage-grave{display:block;margin-top:5px;font-size:11px;color:#166534;background:#f0fdf4;
  border-radius:7px;padding:3px 8px}
.fj-familles{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;margin:12px 0}
.fj-famille{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:11px 14px}
.fj-famille b{display:block;font-size:14px;color:#7c3aed;margin-bottom:4px}
.fj-famille p{margin:0;font-size:12.5px;line-height:1.55;color:#475569}
.fj-tri{background:#fff;border:1px solid #e2e8f0;border-radius:11px;padding:10px 14px;margin-bottom:8px}
.fj-tri.ok{border-color:#16a34a;background:#f0fdf4}
.fj-tri.ko{border-color:#dc2626;background:#fef2f2}
.fj-tri>span{display:block;font-size:13.5px;color:#334155;margin-bottom:7px}
.fj-tri-btns{display:flex;gap:8px}
.fj-tri-btn{background:#f8fafc;border:1px solid #e2e8f0;border-radius:9px;padding:6px 14px;
  font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.fj-tri-btn.on{background:#ede9fe;border-color:#7c3aed}

/* activité 4 — le cabinet */
.fj-dossiers{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.fj-dossier{text-align:left;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:0 0 11px;
  overflow:hidden;font:inherit;cursor:pointer;transition:transform .15s}
.fj-dossier:hover{transform:translateY(-2px)}
.fj-dossier.fait{border-color:#a8e2bd;background:#f6fdf8}
.fj-dossier-img{width:100%;height:100px;object-fit:cover;display:block;margin-bottom:8px}
.fj-dossier-diff{display:block;padding:0 12px;font-size:12px;color:#d97706}
.fj-dossier b{display:block;padding:0 12px;font-size:13.5px;color:#2d2748;margin:3px 0}
.fj-dossier-etat{display:block;padding:0 12px;font-size:11.5px;color:#8a97a1}
.fj-dossier-tete{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.fj-dossier-n{font-size:12px;color:#8a97a1}
.fj-dos-img{width:100%;max-height:200px;object-fit:cover;border-radius:14px;display:block;margin-bottom:12px}
.fj-acte2{background:#faf7ff;border-radius:16px;padding:14px}
.fj-imprevu{background:#fff;border-left:4px solid #d97706;border-radius:0 12px 12px 0;padding:12px 16px;
  font-size:13.5px;line-height:1.7;color:#334155}
.fj-crit{background:#fff;border:1px solid #e2e8f0;border-radius:11px;padding:10px 14px;margin-bottom:8px}
.fj-crit>b{display:block;font-size:13px;color:#5b21b6;margin-bottom:7px}
.fj-crit-opts{display:flex;flex-direction:column;gap:6px}
.fj-crit-opt{text-align:left;background:#f8fafc;border:1px solid #e2e8f0;border-radius:9px;padding:8px 12px;
  font:inherit;font-size:13px;color:#334155;cursor:pointer}
.fj-crit-opt.on{background:#ede9fe;border-color:#7c3aed}
.fj-crit-opt.ok{background:#f0fdf4;border-color:#16a34a}
.fj-crit-opt.ko{background:#fef2f2;border-color:#dc2626}
.fj-arg{margin-bottom:7px}
.fj-arg-btn{display:block;width:100%;text-align:left;background:#fff;border:1px solid #e2e8f0;
  border-radius:11px;padding:10px 14px;font:inherit;font-size:13.5px;line-height:1.5;color:#334155;cursor:pointer}
.fj-arg.on .fj-arg-btn{background:#ede9fe;border-color:#7c3aed}
.fj-arg.ok .fj-arg-btn{background:#f0fdf4;border-color:#16a34a}
.fj-arg.ko .fj-arg-btn{background:#fef2f2;border-color:#dc2626}
.fj-vies-intro{font-size:13px;color:#6b7280;margin:0 0 10px}
.fj-vies{background:#fff;border-radius:14px;overflow:hidden;border:1px solid #e2e8f0}
.fj-vies-tete{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#e2e8f0}
.fj-vies-tete>div{padding:10px 14px;font-size:12.5px;font-weight:700}
.fj-vies-tete .fj-vies-a{background:#f0fdf4;color:#166534}
.fj-vies-tete .fj-vies-b{background:#fef2f2;color:#991b1b}
.fj-vies-l{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#e2e8f0;
  animation:fjIn .35s both}
.fj-vies-l>div{padding:11px 14px;font-size:13px;line-height:1.6;background:#fff;color:#334155}
.fj-vies-lab{grid-column:1/-1;background:#f8fafc!important;font-weight:700;font-size:12px!important;
  color:#5b21b6!important;padding:7px 14px!important}
@keyframes fjIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.fj-galerie{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;margin:12px 0}
.fj-galerie-c{background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;padding-bottom:9px;opacity:.55}
.fj-galerie-c.fait{opacity:1;border-color:#a8e2bd}
.fj-galerie-img{width:100%;height:76px;object-fit:cover;display:block;margin-bottom:6px}
.fj-galerie-c b{display:block;padding:0 10px;font-size:12.5px;color:#2d2748}
.fj-galerie-c span{display:block;padding:0 10px;font-size:11.5px;color:#8a97a1}

/* bilans communs */
.fj-note{display:flex;align-items:baseline;gap:12px;background:#f6f2fd;border-radius:12px;
  padding:12px 16px;margin-bottom:12px;flex-wrap:wrap}
.fj-note b{font-family:'Fraunces',serif;font-size:26px;color:#5b21b6}
.fj-note span{font-size:12.5px;color:#5a5470}
.fj-auto{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px 15px;margin-top:12px}
.fj-auto>b{display:block;font-size:13.5px;color:#2d2748;margin-bottom:8px}
.fj-auto-btns{display:flex;gap:8px;flex-wrap:wrap}
.fj-auto-btn{background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:8px 15px;
  font:inherit;font-size:13px;cursor:pointer}
.fj-auto-btn.on{background:#ede9fe;border-color:#7c3aed}
.fj-auto-fb{margin:10px 0 0;font-size:13px;line-height:1.6;color:#475569}
/* ---- La Nuit du Greffe : le registre reconstitué ---- */
.ng-registre{font-size:.8rem}
.ng-registre td,.ng-registre th{vertical-align:top}
.ng-registre .ng-attente{color:#94a3b8;font-style:italic;text-align:center}
.ng-vide td:first-child{color:#94a3b8}

/* ---- Kaz Payanke : balances, nuancier, pensées, piles, miroirs ---- */
.kp-balances{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px 14px;margin:12px 0}
.kp-balance{display:flex;align-items:center;gap:10px;margin:8px 0}
.kp-bal-g,.kp-bal-d{font-size:.78rem;color:#475569;width:110px}
.kp-bal-d{text-align:right}
.kp-bal-axe{flex:1;height:8px;background:linear-gradient(90deg,#ddd6fe,#e2e8f0,#fbcfe8);border-radius:99px;position:relative}
.kp-bal-aiguille{position:absolute;top:-5px;width:4px;height:18px;background:#94a3b8;border-radius:2px;transform:translateX(-50%);transition:left .5s}
.kp-bal-aiguille.on{background:#7c3aed}
.kp-indices{margin:12px 0}
.kp-indice{border:1px solid #e2e8f0;border-radius:10px;margin:7px 0;background:#fff;overflow:hidden}
.kp-indice.vu{border-color:#a78bfa}
.kp-indice.piege{border-color:#f59e0b;background:#fffbeb}
.kp-indice-btn{display:block;width:100%;text-align:left;padding:9px 12px;border:0;background:transparent;cursor:pointer;font-size:.9rem}
.kp-indice-btn:disabled{cursor:default}
.kp-indice .fj-vf-why{margin:0 12px 9px}
.kp-galerie{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;margin:12px 0}
.kp-portrait{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:10px}
.kp-portrait .kp-balances{border:0;padding:4px 0;margin:4px 0}
.kp-muet{background:#f1f5f9;border-left:4px solid #64748b;border-radius:0 10px 10px 0;padding:10px 14px;font-style:italic}
.kp-son{background:#fdf4ff;border:1px solid #f0abfc;border-radius:12px;padding:12px 14px;margin:12px 0}
.kp-nuancier{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:12px 0}
.kp-nuancier.compact{grid-template-columns:repeat(6,1fr)}
.kp-carte-emo{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:8px;opacity:.45;text-align:center}
.kp-carte-emo.on{opacity:1;border-color:#db2777}
.kp-emo-ico{font-size:1.4rem;display:block}
.kp-emo-corps{text-align:left;font-size:.8rem;margin-top:6px}
.kp-emo-corps p{margin:4px 0;line-height:1.4}
.kp-pensees{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.kp-pensee{text-align:left;border:1px solid #cbd5e1;background:#fff;border-radius:12px;padding:11px 14px;cursor:pointer;font-size:.92rem;font-style:italic}
.kp-pensee.vue{opacity:.6}
.kp-pensee:hover{border-color:#0891b2}
.kp-suite-txt{background:#ecfeff;border:1px solid #a5f3fc;border-radius:12px;padding:12px 14px;line-height:1.55}
.kp-suite-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.kp-trousse{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin:12px 0}
.kp-outil{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:11px;display:flex;flex-direction:column;gap:4px;font-size:.85rem}
.kp-outil.on{border-color:#0891b2;background:#ecfeff}
.kp-outil-ico{font-size:1.3rem}
.kp-outil i{color:#64748b;font-size:.78rem}
.kp-estompe{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:10px;padding:10px 14px;color:#334155}
.kp-conclut{margin:8px 0}
.kp-prism table{width:100%;border-collapse:collapse;font-size:.83rem}
.kp-prism th,.kp-prism td{border:1px solid #e2e8f0;padding:7px;text-align:left;vertical-align:top}
.kp-prism thead th{background:#f8fafc}
.kp-carte-cam{background:#fff;border:2px solid #ea580c;border-radius:12px;padding:16px;font-size:1.05rem;text-align:center;margin:12px 0}
.kp-piles{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}
.kp-pile{flex:1;min-width:130px;border:1px solid #cbd5e1;background:#fff;border-radius:12px;padding:12px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;font-weight:600}
.kp-pile.ok{border-color:#16a34a;background:#f0fdf4}
.kp-pile.ko{border-color:#dc2626;background:#fef2f2}
.kp-pile-ico{font-size:1.4rem}
.kp-memo{background:#fffbeb;border:1px solid #fde68a;border-radius:12px;padding:12px 14px;margin:12px 0}
.kp-memo p{margin:6px 0 0;line-height:1.5}
.kp-traces{background:#eef2ff;border:1px solid #c7d2fe;border-radius:10px;padding:10px 14px}
.kp-mot{color:#475569;font-size:.9rem}
@media (max-width:640px){
  .kp-bal-g,.kp-bal-d{width:78px;font-size:.68rem}
  .kp-nuancier.compact{grid-template-columns:repeat(3,1fr)}
}

/* ---- Gouvernance : pèz-vote, affiche, trousseau, miroir ---- */
.gv-courriers h3{margin:0 0 12px}
.gv-courrier{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px 14px;margin-bottom:10px}
.gv-courrier b{display:block;margin-bottom:4px}
.gv-courrier-x{margin:4px 0;color:#475569;font-style:italic}
.gv-courrier-c{font-size:.85rem;color:#334155}
.gv-etape>p{line-height:1.55}
.gv-pez{background:#f5f3ff;border:1px solid #ddd6fe;border-radius:12px;padding:14px;margin:14px 0}
.gv-pez-t{display:block;margin-bottom:6px}
.gv-pez-regle{margin:0 0 10px;font-size:.92rem}
.gv-pez-jeu input[type=range]{width:100%;margin:8px 0}
.gv-balance{display:flex;height:34px;border-radius:8px;overflow:hidden;margin:10px 0;border:1px solid #c4b5fd}
.gv-balance-moi{background:#7c3aed;color:#fff;display:flex;align-items:center;justify-content:center;font-size:.75rem;min-width:34px}
.gv-balance-eux{flex:1;background:#ede9fe;color:#5b21b6;display:flex;align-items:center;justify-content:center;font-size:.8rem}
.gv-pez-verdict{margin:6px 0}
.gv-pez-why{color:#475569;font-size:.92rem;margin:0 0 10px}
.gv-pesees{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:12px 0}
.gv-pesee-carte{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:3px}
.gv-pesee-ico{font-size:1.4rem}
.gv-pesee-regle{font-size:.82rem;color:#64748b}
.gv-pesee-val{font-weight:700;color:#7c3aed}
.gv-grille{width:100%;border-collapse:collapse;margin:10px 0}
.gv-grille th{background:#f8fafc;border:1px solid #e2e8f0;padding:7px;font-size:.82rem;text-align:left;vertical-align:top}
.gv-grille thead th b{display:block}
.gv-grille thead th span{font-weight:400;color:#64748b;font-size:.78rem}
.gv-case{border:1px dashed #cbd5e1;padding:8px;font-size:.8rem;min-width:90px;height:52px;vertical-align:middle;cursor:pointer;background:#fff}
.gv-case.prete{background:#fef9c3;border-color:#facc15}
.gv-case.pleine{background:#ecfdf5;border:1px solid #6ee7b7;cursor:default}
.gv-pioche{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.gv-etiquette{border:1px solid #cbd5e1;background:#fff;border-radius:999px;padding:7px 12px;font-size:.85rem;cursor:pointer;text-align:left}
.gv-etiquette.on{background:#7c3aed;color:#fff;border-color:#7c3aed}
.gv-scene{background:#fff7ed;border:1px solid #fdba74;border-radius:12px;padding:12px 14px;margin:12px 0}
.gv-scene b{display:block;margin-bottom:6px}
.gv-vignette{background:#fef2f2;border:1px solid #fecaca;border-radius:10px;padding:9px 12px;margin:6px 0}
.gv-trousseau{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin:12px 0}
.gv-cle{display:flex;align-items:center;gap:8px;border:1px solid #cbd5e1;background:#fff;border-radius:10px;padding:9px 11px;cursor:pointer;text-align:left;position:relative}
.gv-cle:disabled{opacity:.85;cursor:default}
.gv-cle.gravee{background:#fffbeb;border-color:#f59e0b}
.gv-cle.tentee:not(.gravee){opacity:.55}
.gv-cle-ico{font-size:1.2rem}
.gv-cle-nom{font-size:.85rem;font-weight:600;flex:1}
.gv-cle-tag{font-size:.72rem;color:#b45309;font-weight:700}
.gv-trousseau.final .gv-cle{flex-wrap:wrap;cursor:default}
.gv-cle-notice{flex-basis:100%;font-size:.8rem;color:#64748b;font-weight:400}
.gv-notice{background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:9px 12px;font-size:.9rem}
.gv-fiche-champ{margin:12px 0}
.gv-fiche-champ b{display:block;margin-bottom:6px}
.gv-fiche-opts{display:flex;flex-wrap:wrap;gap:8px}
.gv-fiche-opts .on{background:#0f766e;color:#fff;border-color:#0f766e}
.gv-miroir{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
.gv-miroir-col{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px}
.gv-miroir-col.morale{background:#f0fdfa;border-color:#99f6e4}
.gv-miroir-col b{display:block;margin-bottom:8px}
.gv-miroir-col p{margin:5px 0;font-size:.87rem;line-height:1.4}
.gv-miroir-col p span{display:block;font-size:.72rem;color:#64748b;text-transform:uppercase;letter-spacing:.03em}
@media (max-width:640px){
  .gv-miroir{grid-template-columns:1fr}
  .gv-grille th,.gv-case{font-size:.72rem;padding:5px}
}


/* ===== Le Second tour (rattrapage du bac) ===== */
.rt{max-width:860px;margin:0 auto;padding:16px}
.rt-eviter{background:linear-gradient(135deg,#0e4a5e,#15707d);color:#fff;border-radius:16px;
  padding:16px 20px;margin-bottom:16px}
.rt-eviter b{display:block;margin-bottom:6px;font-size:15px}
.rt-eviter p{margin:0;font-size:13.5px;line-height:1.6;color:#d8eef4}
.rt-regles{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.rt-regle{background:#fff;border:1px solid #d7e7ec;border-radius:14px;padding:13px 15px;
  animation:rtIn .5s both}
.rt-regle b{display:block;color:#0e7490;font-size:13.5px;margin-bottom:5px}
.rt-regle p{margin:0;font-size:13px;line-height:1.55;color:#3d4a52}
.rt-sim{background:#fff;border:1px solid #d7e7ec;border-radius:16px;padding:16px 18px}
.rt-sim-tete label{font-weight:600;font-size:14px;color:#2d2748}
.rt-sim-tete input,.rt-ep-ecrit input{width:64px;text-align:center;font-size:15px;font-weight:700;
  border:2px solid #b6d5de;border-radius:9px;padding:5px 6px;margin:0 4px}
.rt-sim-tete input:focus,.rt-ep-ecrit input:focus{outline:none;border-color:#0e7490}
.rt-manque{margin-top:10px;background:#eef7fa;border:1px solid #cfe6ee;border-radius:10px;
  padding:9px 13px;font-size:13.5px;color:#155e75}
.rt-manque.ok{background:#f0fdf4;border-color:#bbe7c8;color:#166534}
.rt-manque.ko{background:#fdf3ef;border-color:#f2d6c8;color:#9a3f22}
.rt-eps{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.rt-ep{border:1px solid #e2ecf0;border-radius:12px;padding:11px 14px;background:#fafdfe;
  transition:border-color .2s,box-shadow .2s}
.rt-ep.on{border-color:#0e7490;box-shadow:0 6px 18px -12px rgba(14,116,144,.5);background:#fff}
.rt-ep-tete{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.rt-ep-choix{display:flex;align-items:center;gap:9px;cursor:pointer;font-size:14px;color:#2d2748}
.rt-ep-choix input{width:17px;height:17px;accent-color:#0e7490;cursor:pointer}
.rt-coef{font-size:11.5px;font-weight:700;color:#0e7490;background:#e5f3f7;border-radius:999px;
  padding:2px 10px;margin-left:8px}
.rt-ep-ecrit{margin-top:8px;font-size:13px;color:#4b5a63}
.rt-requis{display:block;margin-top:5px;font-size:12.5px;color:#64748b;font-style:italic}
.rt-requis.jouable{color:#166534}
.rt-requis.impossible{color:#9a3f22}
.rt-jauge{margin-top:10px;background:#f2f9fb;border-radius:10px;padding:10px 13px}
.rt-jauge label{font-size:13px;color:#155e75}
.rt-jauge input[type=range]{width:100%;margin:8px 0 4px;accent-color:#0e7490}
.rt-jauge-vide{margin-top:8px;font-size:12.5px;color:#8a97a1;font-style:italic}
.rt-gain{font-size:13px;color:#64748b}
.rt-gain.plus{font-weight:800;color:#166534;font-size:14.5px}
.rt-verdict{margin-top:14px;border-radius:14px;padding:14px 18px;text-align:center;
  background:#eef2f6;border:1px solid #dbe3ea;transition:background .3s}
.rt-verdict.gagne{background:linear-gradient(135deg,#ecfdf3,#d8f5e3);border-color:#a8e2bd}
.rt-verdict span{display:block;font-size:12.5px;color:#5a6772;text-transform:uppercase;
  letter-spacing:.4px}
.rt-verdict b{display:block;font-size:30px;font-family:'Fraunces',serif;color:#0e4a5e;margin:4px 0}
.rt-verdict.gagne b{color:#15803d}
.rt-verdict i{font-size:13px;color:#4b5a63}
.rt-note{margin:12px 0 0;font-size:13px;line-height:1.6;color:#155e75;background:#eef7fa;
  border-radius:10px;padding:10px 14px}
.rt-oraux{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}
.rt-oral{background:#fff;border:1px solid #d7e7ec;border-radius:14px;padding:13px 15px;
  animation:rtIn .5s both}
.rt-oral>b{display:flex;align-items:center;flex-wrap:wrap;color:#2d2748;font-size:14px;
  margin-bottom:6px}
.rt-oral p{margin:0;font-size:13px;line-height:1.6;color:#3d4a52}
@keyframes rtIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}


.rt-duree{display:inline-block;font-size:11.5px;font-weight:700;color:#155e75;background:#eef7fa;
  border-radius:999px;padding:3px 10px;margin-bottom:6px}
.rt-sujets-format{margin:0 0 8px;font-size:13px;line-height:1.6;color:#155e75;background:#eef7fa;
  border-radius:10px;padding:9px 13px}
.rt-sujet-session{display:block;font-size:11.5px;font-weight:600;color:#8a97a1;margin-top:2px}
.rt-sujet-questions li{font-weight:600;color:#2d2748}
/* ===== Les sujets d'oral du second tour ===== */
.rt-sujets{background:#fff;border:1px solid #d7e7ec;border-radius:16px;padding:14px 16px}
.rt-sujets-onglets{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.rt-sujets-onglets button{flex:1 1 auto;background:#eef2f6;border:1px solid #dbe3ea;border-radius:10px;
  padding:9px 14px;font:inherit;font-size:13.5px;font-weight:700;color:#5a6772;cursor:pointer;
  transition:background .15s,color .15s,border-color .15s}
.rt-sujets-onglets button.on{background:#0e7490;border-color:#0e7490;color:#fff}
.rt-sujets-intro{margin:0 0 12px;font-size:13px;line-height:1.6;color:#5a6772}
.rt-sujet{border:1px solid #e2ecf0;border-radius:12px;margin-bottom:8px;overflow:hidden;
  transition:border-color .2s}
.rt-sujet.on{border-color:#0e7490;box-shadow:0 8px 22px -16px rgba(14,116,144,.55)}
.rt-sujet-tete{display:flex;align-items:flex-start;gap:10px;width:100%;text-align:left;
  background:#fafdfe;border:none;padding:11px 13px;font:inherit;cursor:pointer}
.rt-sujet.on .rt-sujet-tete{background:#f2f9fb}
.rt-sujet-num{flex:none;font-size:11px;font-weight:800;color:#0e7490;background:#e5f3f7;
  border-radius:999px;padding:3px 9px;margin-top:1px;white-space:nowrap}
.rt-sujet-q{flex:1;font-size:13.5px;font-weight:600;color:#2d2748;line-height:1.5}
.rt-sujet-fleche{flex:none;color:#8a97a1;font-size:11px;margin-top:2px}
.rt-sujet-corps{padding:4px 13px 13px;border-top:1px dashed #dfeaf0;background:#fff}
.rt-sujet-bloc{margin-top:11px}
.rt-sujet-bloc>b{display:block;font-size:12.5px;color:#0e7490;margin-bottom:5px}
.rt-sujet-bloc p{margin:0;font-size:13px;line-height:1.6;color:#3d4a52}
.rt-sujet-bloc ol{margin:0;padding-left:20px}
.rt-sujet-bloc ol li{font-size:13px;line-height:1.6;color:#3d4a52;margin-bottom:5px}
.rt-sujet-mots{display:flex;flex-wrap:wrap;gap:6px}
.rt-mot{font-size:12px;font-weight:600;color:#5b21b6;background:#f3ecfd;border-radius:999px;
  padding:4px 11px}
.rt-sujet-piege{margin-top:12px;background:#fffbeb;border:1px solid #fde68a;border-radius:10px;
  padding:9px 13px;font-size:12.5px;line-height:1.55;color:#78350f}
.rt-sujet-piege b{color:#92400e}
.rt-methode{margin-top:14px;background:linear-gradient(135deg,#0e4a5e,#15707d);color:#fff;
  border-radius:14px;padding:14px 18px}
.rt-methode>b{display:block;margin-bottom:8px;font-size:14px}
.rt-methode ol{margin:0;padding-left:20px}
.rt-methode li{font-size:13px;line-height:1.6;color:#d8eef4;margin-bottom:5px}
@media(max-width:640px){
  .rt-sujets{padding:12px}
  .rt-sujet-q{font-size:13px}
  .rt-sujets-onglets button{font-size:12.5px;padding:8px 10px}
}


/* ===== L'atelier des calculs ===== */
.calc-wrap{max-width:900px;margin:0 auto}
.calc-hub-intro{color:#5a5470;font-size:14px;line-height:1.65;margin:4px 0 14px}
.calc-hub-h{margin:18px 0 10px;font-size:15px;color:#2d2748}
.calc-cartes{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.calc-carte{text-align:left;background:#fff;border:1px solid #d7e7ec;border-radius:14px;
  padding:13px 15px;cursor:pointer;transition:transform .15s,box-shadow .15s;font:inherit}
.calc-carte:hover{transform:translateY(-2px);box-shadow:0 10px 24px -14px rgba(14,116,144,.45)}
.calc-carte.fait{border-color:#a8e2bd;background:#f6fdf8}
.calc-carte-tete{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.calc-carte-ico{font-size:24px}
.calc-carte>b{display:block;font-size:14.5px;color:#2d2748;margin-bottom:4px}
.calc-carte>p{margin:0 0 8px;font-size:12.5px;line-height:1.5;color:#5a6772}
.calc-carte-pied{display:flex;flex-direction:column;gap:2px;font-size:11.5px;color:#8a97a1}
.calc-carte-etat{font-weight:600;color:#0e7490}
.calc-carte.fait .calc-carte-etat{color:#166534}
.calc-tag{font-size:10.5px;font-weight:700;border-radius:999px;padding:3px 9px;
  background:#eef2f6;color:#5a6772;white-space:nowrap}
/* Nom prefixe : « bac » seul entre en collision avec .bac (choix de bac). */
.calc-tag.calc-tag-bac{background:linear-gradient(135deg,#fef3c7,#fde68a);color:#92400e}
.calc-atelier{background:#fff;border:1px solid #d7e7ec;border-radius:16px;padding:18px 20px}
.calc-fil{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.calc-retour{background:none;border:none;color:#0e7490;font:inherit;font-size:13px;
  font-weight:600;cursor:pointer;padding:4px 0}
.calc-titre{font-family:'Fraunces',serif;font-size:21px;color:#2d2748;margin:0 0 10px}
.calc-contexte{background:#f2f9fb;border-radius:12px;padding:12px 15px;margin-bottom:12px}
.calc-contexte b{display:block;font-size:13.5px;color:#155e75;margin-bottom:4px}
.calc-contexte p{margin:0;font-size:13px;line-height:1.6;color:#3d4a52}
.calc-detail{margin-bottom:12px}
.calc-detail-btn{background:#fff;border:1px dashed #0e7490;color:#0e7490;border-radius:10px;
  padding:8px 14px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.calc-detail-corps{border:1px dashed #b6d5de;border-radius:12px;padding:12px 15px;margin-top:8px;
  background:#fbfeff}
.calc-detail-corps p{margin:0 0 8px;font-size:13px;line-height:1.6;color:#3d4a52}
.calc-mini{background:#fff;border:1px solid #e2ecf0;border-radius:10px;padding:10px 13px;margin-top:6px}
.calc-mini b{display:block;font-size:12.5px;color:#0e7490;margin-bottom:4px}
.calc-mini p{margin:0 0 8px;font-size:13px;color:#3d4a52}
.calc-mini-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.calc-mini-fb{margin-top:8px;font-size:12.5px;border-radius:8px;padding:7px 11px}
.calc-mini-fb.ok{background:#f0fdf4;color:#166534}
.calc-mini-fb.ko{background:#fdf5ef;color:#9a3f22}
.calc-etapes{display:flex;gap:8px;margin-bottom:10px}
.calc-etape{font-size:12px;font-weight:700;border-radius:999px;padding:4px 12px;
  background:#eef2f6;color:#8a97a1}
.calc-etape.actif{background:#0e7490;color:#fff}
.calc-etape.fait{background:#dcf5e5;color:#166534}
.calc-niveau h4{margin:0 0 8px;font-size:15px;color:#2d2748}
.calc-enonce{margin:0 0 10px;font-size:13.5px;line-height:1.6;color:#3d4a52}
.calc-donnees{width:100%;border-collapse:collapse;margin-bottom:10px;font-size:13px}
.calc-donnees td{border:1px solid #e2ecf0;padding:7px 11px;color:#3d4a52}
.calc-donnees td:last-child{text-align:right;font-weight:700;color:#2d2748;white-space:nowrap}
.calc-formule{margin-bottom:10px}
.calc-formule-btn{background:#fff8e6;border:1px solid #f3d9a4;color:#92610e;border-radius:10px;
  padding:7px 13px;font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}
.calc-formule-btn.re{background:none;border:none;font-size:11.5px;padding:4px 0;margin-top:4px}
.calc-formule-corps{background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:9px 13px;margin-top:6px}
.calc-formule-ligne{font-size:13px;color:#92400e;font-weight:600;padding:2px 0}
.calc-consigne{font-size:14px;font-weight:600;color:#2d2748;margin-bottom:10px;
  background:#f6f2fd;border-radius:10px;padding:9px 13px}
.calc-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.calc-saisie input,.calc-mini-saisie input{width:130px;font-size:15px;font-weight:700;text-align:center;
  border:2px solid #b6d5de;border-radius:9px;padding:7px 8px}
.calc-saisie input:focus,.calc-mini-saisie input:focus{outline:none;border-color:#0e7490}
.calc-unite{font-size:13px;font-weight:700;color:#5a6772}
.calc-btn{background:#0e7490;color:#fff;border:none;border-radius:10px;padding:9px 18px;
  font:inherit;font-size:13.5px;font-weight:700;cursor:pointer}
.calc-btn:hover{background:#155e75}
.calc-btn.sm{padding:6px 13px;font-size:12.5px}
.calc-btn.suite{margin-top:12px}
.calc-fb{margin-top:10px;font-size:13px;border-radius:10px;padding:9px 13px;line-height:1.55}
.calc-fb.ok{background:#f0fdf4;color:#166534}
.calc-fb.ko{background:#fdf5ef;color:#9a3f22}
.calc-fb.montre{background:#eef7fa;color:#155e75}
.calc-pose{margin-top:10px;background:#f8fafc;border-left:3px solid #0e7490;border-radius:0 10px 10px 0;
  padding:9px 13px;font-size:13px;color:#2d2748}
.calc-redaction{margin-top:10px;background:#f6f2fd;border-radius:10px;padding:10px 14px;
  font-size:13px;line-height:1.6;color:#3d3564}
.calc-qcm{margin-top:12px}
.calc-qcm>b{display:block;font-size:13.5px;color:#2d2748;margin-bottom:8px}
.calc-qcm-opt{display:block;width:100%;text-align:left;background:#fff;border:1px solid #d7e7ec;
  border-radius:10px;padding:9px 13px;margin-bottom:6px;font:inherit;font-size:12.5px;
  line-height:1.5;color:#3d4a52;cursor:pointer}
.calc-qcm-opt:hover{border-color:#0e7490}
.calc-qcm-opt.ok{border-color:#16a34a;background:#f0fdf4}
.calc-qcm-opt.ko{border-color:#dc2626;background:#fef2f2}
.calc-labo{margin-top:6px}
.calc-labo h4{margin:0 0 6px;font-size:15px;color:#2d2748}
.calc-labo-intro{margin:0 0 12px;font-size:13px;line-height:1.6;color:#5a6772}
.calc-labo-grille{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:640px){.calc-labo-grille{grid-template-columns:1fr}}
.calc-param{margin-bottom:12px}
.calc-param label{display:block;font-size:12.5px;color:#5a6772;margin-bottom:4px}
.calc-param label b{color:#0e7490;font-size:13.5px}
.calc-param input[type=range]{width:100%;accent-color:#0e7490}
.calc-labo-resultats{background:#f8fafc;border-radius:12px;padding:12px 15px}
.calc-labo-ligne{display:flex;align-items:baseline;justify-content:space-between;gap:10px;
  font-size:13px;color:#5a6772;padding:4px 0}
.calc-labo-ligne b{color:#2d2748;font-size:14.5px;white-space:nowrap}
.calc-labo-ligne.total b{font-size:17px;color:#0e7490}
.calc-labo-barre{margin:10px 0 4px}
.calc-labo-barre-fond{height:10px;border-radius:999px;background:#e2ecf0;overflow:hidden}
.calc-labo-barre-rempli{height:100%;border-radius:999px;transition:width .25s,background .25s}
.calc-labo-barre span{display:block;margin-top:4px;font-size:11px;color:#8a97a1}
.calc-verdict{margin-top:10px;border-radius:10px;padding:10px 13px;font-size:13px;line-height:1.55}
.calc-verdict.ok{background:#f0fdf4;color:#166534}
.calc-verdict.attention{background:#fffbeb;color:#92400e}
.calc-verdict.alerte{background:#fef2f2;color:#991b1b}
.calc-bilan h4{margin:0 0 10px;font-size:16px;color:#2d2748}
.calc-note{display:flex;align-items:baseline;gap:12px;background:#f6f2fd;border-radius:12px;
  padding:12px 16px;margin-bottom:12px;flex-wrap:wrap}
.calc-note b{font-family:'Fraunces',serif;font-size:26px;color:#5b21b6}
.calc-note span{font-size:12.5px;color:#5a5470}
.calc-erreurs{background:#fffbeb;border:1px solid #fde68a;border-radius:12px;padding:11px 15px;margin-bottom:10px}
.calc-erreurs b{display:block;font-size:13px;color:#92400e;margin-bottom:6px}
.calc-erreurs ul{margin:0;padding-left:18px}
.calc-erreurs li{font-size:12.5px;line-height:1.55;color:#78350f;margin-bottom:4px}
.calc-bilan-btns{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.calc-hub-fin{margin-top:20px;text-align:center}
.calc-hub-fin-note{margin:8px 0 0;font-size:12px;color:#8a97a1}



/* ===== Le débrief et sa fenêtre — commun aux jeux sérieux ===== */
.kk-modal-fond{position:fixed;inset:0;background:rgba(20,15,8,.55);backdrop-filter:blur(2px);
  z-index:9000;display:flex;align-items:center;justify-content:center;padding:18px;
  animation:kk-fondu .2s ease}
@keyframes kk-fondu{from{opacity:0}to{opacity:1}}
.kk-modal{background:#fff;border-radius:18px;width:min(760px,100%);max-height:88vh;display:flex;
  flex-direction:column;box-shadow:0 18px 60px rgba(20,15,8,.4);animation:kk-modal-monte .26s cubic-bezier(.2,.9,.3,1)}
@keyframes kk-modal-monte{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:none}}
.kk-modal-tete{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
  padding:16px 20px 12px;border-bottom:1px solid #ece5d8}
.kk-modal-tete h3{margin:0;font:700 18px Georgia,serif;color:#2d2416}
.kk-modal-sous{font:500 12.5px system-ui,sans-serif;color:#8a7b62}
.kk-modal-x{border:0;background:#f4efe4;color:#6d5f47;border-radius:50%;width:30px;height:30px;
  cursor:pointer;font-size:14px;flex:none}
.kk-modal-x:hover{background:#e8dfd0}
.kk-modal-corps{padding:16px 20px;overflow-y:auto;flex:1}
.kk-modal-pied{padding:12px 20px 16px;border-top:1px solid #ece5d8;text-align:right}
@media(max-width:620px){.kk-modal{max-height:92vh}.kk-modal-corps{padding:13px 15px}}

.kk-deb-section+.kk-deb-section{margin-top:22px;padding-top:18px;border-top:2px solid #f0e9dc}
.kk-deb-titre{margin:0 0 2px;font:700 16px Georgia,serif;color:#8a5a2b}
.kk-deb-sous{margin:0 0 10px;font-size:12.5px;color:#8a7b62}
.kk-deb-lecon{background:#f0f6f6;border:1px solid #cfe3e3;border-radius:12px;padding:11px 15px;margin-bottom:12px}
.kk-deb-lecon b{color:#155e63;font-size:13.5px}
.kk-deb-lecon ul{margin:7px 0 0;padding-left:19px}
.kk-deb-lecon li{font-size:13px;line-height:1.6;color:#1f4d51;margin-bottom:4px}

.kk-deb-bloc{border:1px solid #e5ddcd;border-radius:12px;margin-bottom:8px;overflow:hidden;background:#fff}
.kk-deb-bloc.on{border-color:#c9982f;box-shadow:0 2px 10px rgba(168,124,30,.15)}
.kk-deb-tete{width:100%;display:flex;align-items:flex-start;gap:10px;padding:11px 13px;border:0;
  background:#fbf8f2;cursor:pointer;text-align:left}
.kk-deb-tete:hover{background:#f6efe0}
.kk-deb-num{flex:none;width:22px;height:22px;border-radius:50%;background:#8a5a2b;color:#fff;
  font:700 12px system-ui,sans-serif;display:flex;align-items:center;justify-content:center}
.kk-deb-q{flex:1;font:600 13.5px/1.5 system-ui,sans-serif;color:#3d3424}
.kk-deb-chev{flex:none;color:#a89a80;font-size:11px;padding-top:3px}
.kk-deb-corps{padding:12px 14px 14px;border-top:1px solid #f0e9dc}
.kk-deb-etiq{display:block;font:700 11px system-ui,sans-serif;letter-spacing:.1em;
  text-transform:uppercase;color:#8a7b62;margin-bottom:5px}
.kk-deb-bonne{background:#eefaf1;border:1px solid #b6e4c6;border-radius:10px;padding:10px 13px;margin-bottom:10px}
.kk-deb-rep{margin:0;font:600 14px/1.6 system-ui,sans-serif;color:#14532d}
.kk-deb-liste{margin:0;padding-left:19px}
.kk-deb-liste li{font:500 13.5px/1.65 system-ui,sans-serif;color:#14532d;margin-bottom:3px}
.kk-deb-paires{list-style:none;padding-left:0}
.kk-deb-paires li{display:flex;flex-wrap:wrap;align-items:baseline;gap:7px}
.kk-deb-fleche{color:#7fa88d;font-style:normal}
.kk-deb-paires b{color:#14532d}
.kk-deb-cases{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}
.kk-deb-case{background:#fff;border:1px solid #cbe8d6;border-radius:9px;padding:9px 12px}
.kk-deb-case b{display:block;color:#166534;font-size:13px;margin-bottom:5px}
.kk-deb-why{background:#fbf6ea;border:1px solid #e5d9bf;border-radius:10px;padding:10px 13px}
.kk-deb-why p{margin:0;font:500 13.5px/1.7 system-ui,sans-serif;color:#4a3f2c}
.kk-deb-note{margin-top:14px;background:#f4f7fb;border:1px solid #cbd9e8;border-radius:12px;padding:12px 15px}
.kk-deb-note b{color:#1e4b7a;font-size:13.5px}
.kk-deb-note p{margin:6px 0 0;font:500 13px/1.7 system-ui,sans-serif;color:#33465c}
.kk-deb-koud{margin-top:9px;font-size:12.5px;line-height:1.6;color:#6d5f47}
.kk-deb-koud b{color:#8a5a2b}

/* Le carnet du vestibule et les tuiles du coffre */
.hg-carnet{background:#fff;border:1px solid #d8cdb9;border-radius:14px;padding:13px 17px;margin:14px 0 18px;
  box-shadow:0 2px 10px rgba(60,40,10,.08)}
.hg-carnet-titre{font:700 13px system-ui,sans-serif;letter-spacing:.14em;text-transform:uppercase;
  color:#8a5a2b;margin-bottom:10px}
.hg-carnet .hg-lettres{margin:0 0 10px}
.hg-carnet-note{margin:0;font:italic 500 13px/1.6 Georgia,serif;color:#6d5f47}
.hg-tuiles{display:flex;gap:9px;justify-content:center;margin:14px 0 4px;flex-wrap:wrap}
.hg-tuile{width:46px;height:52px;border-radius:8px;border:2px solid #a87c1e;cursor:pointer;
  font:800 24px Georgia,serif;color:#5c3d0e;background:linear-gradient(160deg,#f5d67e,#c9982f);
  box-shadow:0 3px 8px rgba(168,124,30,.35),inset 0 1px 0 rgba(255,255,255,.55);transition:.15s}
.hg-tuile:hover:not(:disabled){transform:translateY(-2px)}
.hg-tuile.usee,.hg-tuile:disabled{background:#efe9dc;border-color:#d8cdb9;color:#b7ab93;
  box-shadow:inset 0 2px 5px rgba(60,40,10,.14);cursor:not-allowed;transform:none}
.hg-tuile-eff{background:#fff;border-color:#d8cdb9;color:#8a5a2b;font-size:19px}
body.dys .hg-carnet-note{font-style:normal}

/* Le râtelier de lettres */
.hg-lettres{display:flex;gap:10px;margin:14px 0 18px}
.hg-laiton{width:52px;height:58px;border-radius:8px;display:flex;align-items:center;justify-content:center;
  font:800 26px Georgia,serif;color:#b7ab93;background:#efe9dc;border:2px solid #d8cdb9;
  box-shadow:inset 0 2px 5px rgba(60,40,10,.14)}
.hg-laiton.gagnee{color:#5c3d0e;background:linear-gradient(160deg,#f5d67e,#c9982f);border-color:#a87c1e;
  box-shadow:0 3px 9px rgba(168,124,30,.4),inset 0 1px 0 rgba(255,255,255,.55);
  animation:hg-frappe .55s cubic-bezier(.34,1.56,.64,1)}
@keyframes hg-frappe{0%{transform:scale(.3) rotate(-14deg);opacity:0}100%{transform:none;opacity:1}}
.hg-laiton.grande{width:96px;height:106px;font-size:52px;margin:0 auto 14px}

/* Les pièces de la villa */
.hg-pieces{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px;margin-bottom:18px}
.hg-piece{background:#fff;border:1px solid #d8cdb9;border-radius:14px;overflow:hidden;display:flex;
  flex-direction:column;box-shadow:0 2px 10px rgba(60,40,10,.08);transition:.2s}
.hg-piece:hover{transform:translateY(-2px)}
.hg-piece.verrou{opacity:.55;filter:saturate(.4)}
.hg-piece.faite{border-color:#c9982f}
.hg-piece-img{width:100%;height:130px;object-fit:cover}
.hg-piece-corps{padding:12px 15px 15px;display:flex;flex-direction:column;gap:6px;flex:1}
.hg-piece-haut{display:flex;justify-content:space-between;align-items:center}
.hg-diff{font:700 14px system-ui,sans-serif;color:#b8860b}
.hg-fait{color:#8a5a2b;font:700 12.5px system-ui,sans-serif}
.hg-piece h3{margin:0;font-size:16.5px;color:#2d2416;font-family:Georgia,serif}
.hg-piece-notion{font:700 11.5px system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;
  color:#8a5a2b;background:#f6efe0;border-radius:99px;padding:3px 11px;display:inline-block;
  align-self:flex-start}
.hg-piece p{margin:0;font-size:13px;color:#6d5f47;flex:1}
.hg-verrou{color:#a89a80;font:600 13px system-ui,sans-serif;padding:6px 0}

/* L'appel du coffre */
.hg-coffre-appel{display:flex;align-items:center;gap:14px;background:#2d2416;border-radius:14px;
  padding:15px 19px;color:#e8dfd0;flex-wrap:wrap}
.hg-coffre-appel.pret{background:linear-gradient(120deg,#3a2c12,#6e4517);
  box-shadow:0 4px 18px rgba(168,124,30,.35)}
.hg-coffre-ico{font-size:30px}
.hg-coffre-txt{flex:1;min-width:220px}
.hg-coffre-txt b{display:block;font-family:Georgia,serif;font-size:16px}
.hg-coffre-txt span{font-size:13px;color:#c9bda5}

/* La porte d'une pièce */
.hg-porte{max-width:820px}
.hg-porte-img{width:100%;max-height:250px;object-fit:cover;border-radius:16px;margin-bottom:12px;
  animation:hg-porte-ouvre .9s ease}
@keyframes hg-porte-ouvre{from{opacity:0;clip-path:inset(0 50% 0 50%)}to{opacity:1;clip-path:inset(0)}}
.hg-porte-tete h2{margin:4px 0}
.hg-recit{font:500 15px/1.75 Georgia,serif;color:#4a3f2c;margin:10px 0 14px}
.hg-lecon{background:#f0f6f6;border:1px solid #cfe3e3;border-radius:12px;padding:13px 17px;margin-bottom:14px}
.hg-lecon b{color:#155e63;font-size:14px}
.hg-lecon ul{margin:8px 0 0;padding-left:20px}
.hg-lecon li{font-size:13.5px;line-height:1.65;color:#1f4d51;margin-bottom:5px}
.hg-porte-actions{display:flex;gap:10px;flex-wrap:wrap}
.hg-sceau-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.kk-fin-actions,.orn-pret-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.gactions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:auto}
.gactions>button:first-child{flex:1;min-width:110px}
.gdeb{background:#fff;border:1px solid var(--c,#d8cdb9);color:var(--c,#5c4d33);border-radius:9px;
  padding:8px 11px;font:600 12.5px system-ui,sans-serif;cursor:pointer;white-space:nowrap}
.gdeb:hover{background:#faf7ff}
.kk-carte-actions,.orn-chap-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.hg-piece-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.hg-deb-tout{display:block;margin:0 auto 14px;font-size:13.5px}

/* Le jeu : documents et énigmes */
.hg-jeu-tete{display:flex;align-items:center;gap:14px;background:#faf6ec;border:1px solid #e5d9bf;
  border-radius:12px;padding:10px 14px;margin-bottom:14px;flex-wrap:wrap}
.hg-jeu-tete>div:nth-child(2){flex:1;min-width:200px}
.hg-avancee{font:700 12px system-ui,sans-serif;color:#8a5a2b;background:#f6efe0;
  border:1px solid #e5d9bf;border-radius:99px;padding:4px 12px}
.hg-duo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}
@media(max-width:880px){.hg-duo{grid-template-columns:1fr}}
.hg-docs{position:sticky;top:10px}
@media(max-width:880px){.hg-docs{position:static}}
.hg-onglets{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.hg-onglets button{padding:6px 12px;border:1px solid #d8cdb9;border-radius:99px;background:#fff;
  cursor:pointer;font:600 12px system-ui,sans-serif;color:#5c4d33}
.hg-onglets button.on{background:#8a5a2b;border-color:#8a5a2b;color:#fff}

/* Le sceau et le testament */
.hg-sceau{max-width:620px;text-align:center;padding-top:20px}
.hg-sceau h2{font-size:24px}
.hg-antibi{color:#8a7b62;font-size:13px;line-height:1.6;margin:10px 0 16px}
.hg-coffre{max-width:640px;text-align:center}
.hg-coffre-img{width:100%;max-height:260px;object-fit:cover;border-radius:16px;margin-bottom:12px;
  animation:hg-fondu .8s ease}
.hg-mot{display:flex;gap:10px;justify-content:center;margin:16px 0;flex-wrap:wrap}
.hg-mot input{width:238px;text-align:center;font:800 34px Georgia,serif;letter-spacing:.42em;
  padding:10px 0 10px 14px;border:2px solid #c9982f;border-radius:12px;background:#fbf6ea;color:#5c3d0e;
  text-transform:uppercase}
.hg-rate{background:#fdf0e4;border:1px solid #eecfa8;border-radius:10px;padding:10px 14px;
  color:#8a4b12;font-size:13.5px;line-height:1.55;margin-bottom:12px;animation:hg-secoue .4s ease}
@keyframes hg-secoue{0%,100%{transform:none}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
.hg-testament{max-width:740px}
.hg-epilogue-img{width:100%;max-height:280px;object-fit:cover;border-radius:16px;margin-bottom:12px;
  animation:hg-fondu 1.2s ease}
body.dys .hg-manuscrit p{font-style:normal}

/* ===== Kaz Konsèy — escape game de mise à niveau ===== */
.kk-hub,.kk-seance{max-width:1060px;margin:0 auto}
.kk-cover{width:100%;max-height:240px;object-fit:cover;border-radius:16px;margin-bottom:14px}
.kk-hub h2{margin:6px 0 4px;color:#0f172a}
.kk-sst{display:block;color:#64748b;font-size:13.5px;margin-top:2px}
.kk-consigne{color:#334155;line-height:1.65}
.kk-contrat{background:#fffbeb;border:1px solid #fde68a;border-radius:12px;padding:12px 16px;margin:12px 0}
.kk-contrat p{margin:4px 0 0;font-style:italic;color:#78350f}
.kk-form{display:flex;flex-direction:column;gap:6px;max-width:460px;margin:14px 0}
.kk-form label{font:700 13px system-ui,sans-serif;color:#475569;margin-top:6px}
.kk-form input{padding:10px 13px;border:2px solid #e2e8f0;border-radius:10px;font:500 15px system-ui,sans-serif}
.kk-hub-tete{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.kk-lien{background:none;border:0;color:#0e7490;cursor:pointer;font:600 13px system-ui,sans-serif;text-decoration:underline}
.kk-seances{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;margin-top:14px}
.kk-carte{background:#fff;border:1px solid #e2e8f0;border-radius:14px;overflow:hidden;display:flex;flex-direction:column;
  box-shadow:0 2px 8px rgba(0,0,0,.05)}
.kk-carte.verrou{opacity:.62}
.kk-carte-img{width:100%;height:130px;object-fit:cover}
.kk-carte-corps{padding:12px 15px 15px;display:flex;flex-direction:column;gap:6px;flex:1}
.kk-carte-diff{font:700 14px system-ui,sans-serif;color:#d97706;display:flex;justify-content:space-between}
.kk-fait{color:#16a34a;font-size:13px}
.kk-carte h3{margin:0;font-size:17px;color:#0f172a}
.kk-carte p{margin:0;font-size:13.5px;color:#475569;line-height:1.5}
.kk-pitch{font-style:italic;color:#64748b!important;flex:1}
.kk-verrou{color:#94a3b8;font:600 13px system-ui,sans-serif;padding:8px 0}
.kk-cta{align-self:flex-start;padding:11px 22px;border:0;border-radius:10px;background:#0e7490;color:#fff;cursor:pointer;
  font:700 14.5px system-ui,sans-serif;margin-top:8px;transition:.12s}
.kk-cta:hover:not(:disabled){background:#155e75}
.kk-cta:disabled{background:#cbd5e1;cursor:not-allowed}

.kk-seance-tete{display:flex;align-items:center;gap:14px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;
  padding:10px 14px;margin-bottom:14px;flex-wrap:wrap}
.kk-seance-tete>div:nth-child(2){flex:1;min-width:200px}
.kk-retour{background:#fff;border:1px solid #cbd5e1;border-radius:9px;padding:7px 13px;cursor:pointer;font:600 13px system-ui,sans-serif}
.kk-chrono{font:700 14px ui-monospace,monospace;color:#0e7490;text-align:right}
.kk-chrono span{display:block;font:600 12px system-ui,sans-serif;color:#64748b}

.kk-role-bandeau{border-radius:11px;padding:10px 15px;font:700 14px system-ui,sans-serif;margin-bottom:12px}
.kk-role-bandeau.senior{background:#ecfdf5;border:1px solid #86efac;color:#166534}
.kk-role-bandeau.junior{background:#eff6ff;border:1px solid #93c5fd;color:#1e40af}
.kk-sujet{font:700 13px system-ui,sans-serif;color:#0e7490;background:#ecfeff;border:1px solid #a5f3fc;
  border-radius:99px;padding:4px 13px;display:inline-block;margin:2px 0 10px}
.kk-notion{background:#fff;border:1px solid #e2e8f0;border-left:4px solid #0e7490;border-radius:0 12px 12px 0;
  padding:11px 15px;margin-bottom:10px}
.kk-notion-titre{font:800 14px system-ui,sans-serif;color:#0e7490;letter-spacing:.03em}
.kk-notion p{margin:6px 0 0;line-height:1.6;color:#1e293b}
.kk-notion-ex{color:#64748b!important;font-size:14px}

.kk-duo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}
@media(max-width:860px){.kk-duo{grid-template-columns:1fr}}
.kk-docs{position:sticky;top:10px}
.kk-scene-img{width:100%;max-height:180px;object-fit:cover;border-radius:12px;display:block;
  margin-bottom:10px;box-shadow:0 10px 24px -16px rgba(15,23,42,.55)}
@media(max-width:860px){.kk-docs{position:static}}
.kk-doc-onglets{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.kk-doc-onglets button{padding:6px 11px;border:1px solid #cbd5e1;border-radius:99px;background:#fff;cursor:pointer;
  font:600 12px system-ui,sans-serif;color:#475569}
.kk-doc-onglets button.on{background:#0e7490;border-color:#0e7490;color:#fff}
.kk-doc{background:#fffdf7;border:1px solid #e7dfc8;border-radius:12px;padding:14px 16px;
  box-shadow:0 2px 8px rgba(120,90,20,.07);max-height:70vh;overflow-y:auto}
.kk-doc-tete{border-bottom:2px solid #e7dfc8;padding-bottom:8px;margin-bottom:10px}
.kk-doc-tete b{display:block;font-size:15px;color:#3f2d10}
.kk-doc-tete span{font-size:12.5px;color:#8a7340}
.kk-doc-img{width:100%;border-radius:9px;margin-bottom:10px}
.kk-fiche{width:100%;border-collapse:collapse;font-size:13.5px}
.kk-fiche th{width:34%;text-align:left;vertical-align:top;padding:6px 10px 6px 0;color:#8a7340;font-weight:700}
.kk-fiche td{padding:6px 0;color:#1e293b;line-height:1.5;border-top:1px dashed #eadfc4}
.kk-mnt{font-family:ui-monospace,monospace;white-space:nowrap;text-align:right}
.kk-poste{border:1px solid #eadfc4;border-radius:9px;padding:9px 12px;margin-bottom:8px;font-size:13.5px;line-height:1.55}
.kk-poste-nom{font-weight:800;color:#3f2d10}
.kk-chat{display:flex;flex-direction:column;gap:8px}
.kk-bulle{max-width:88%;background:#eef2ff;border-radius:12px 12px 12px 3px;padding:8px 12px;font-size:13.5px;line-height:1.5}
.kk-bulle-d{align-self:flex-end;background:#dcfce7;border-radius:12px 12px 3px 12px}
.kk-bulle-qui{font:700 12px system-ui,sans-serif;color:#475569;display:flex;justify-content:space-between;gap:10px;margin-bottom:3px}
.kk-bulle-qui span{font-weight:500;color:#94a3b8}
.kk-table{width:100%;border-collapse:collapse;font-size:13.5px}
.kk-table th{background:#f1e9d2;text-align:left;padding:7px 9px;color:#3f2d10}
.kk-table td{padding:7px 9px;border-top:1px solid #eadfc4;line-height:1.5;vertical-align:top}
.kk-rapport{position:relative;font-size:13.5px;line-height:1.7;color:#1e293b}
.kk-rapport p{margin:6px 0 0}
.kk-tampon{display:inline-block;border:2px solid #b91c1c;color:#b91c1c;font:800 12px system-ui,sans-serif;
  letter-spacing:.12em;padding:3px 10px;border-radius:4px;transform:rotate(-3deg);margin-bottom:8px}
.kk-avis{border:1px solid #eadfc4;border-radius:9px;padding:9px 12px;margin-bottom:8px;font-size:13.5px}
.kk-avis-h{display:flex;justify-content:space-between;gap:8px;margin-bottom:3px}
.kk-etoiles-avis{color:#d97706;letter-spacing:.05em}
.kk-avis p{margin:0;line-height:1.5;color:#334155}
/* --- Traces en ligne : page de resultats, profil, fil, algorithme --- */
.grev{display:inline-block;background:#ede9fe;color:#5b21b6;border:1px solid #ddd6fe;
  border-radius:999px;padding:2px 9px;font-size:11px;font-weight:700;letter-spacing:.01em}

.kk-serp{background:#fff;border:1px solid #dfe3e8;border-radius:10px;padding:10px 12px}
.kk-serp-barre{display:flex;align-items:center;gap:8px;border:1px solid #d5dbe2;border-radius:999px;
  padding:7px 13px;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.07);margin-bottom:9px}
.kk-serp-loupe{font-size:13px;opacity:.65}
.kk-serp-req{flex:1;font-size:14.5px;color:#0f172a}
.kk-serp-x{color:#94a3b8;font-size:13px}
.kk-serp-compte{font-size:11.5px;color:#64748b;margin-bottom:11px}
.kk-serp-res{margin-bottom:14px}
.kk-serp-url{font-size:12px;color:#3c4043;line-height:1.3}
.kk-serp-url span{color:#5f6368}
.kk-serp-titre{font-size:16px;color:#1a0dab;line-height:1.35;margin:1px 0 2px;cursor:default}
.kk-serp-extrait{font-size:13px;color:#4d5156;line-height:1.55}
.kk-serp-date{color:#70757a}
.kk-serp-gene{border-left:3px solid #f59e0b;padding-left:9px;margin-left:-3px;background:#fffbeb;
  border-radius:0 6px 6px 0;padding-top:5px;padding-bottom:5px}

.kk-profil{background:#fff;border:1px solid #dfe3e8;border-radius:12px;padding:13px 14px}
.kk-profil-tete{display:flex;gap:13px;align-items:center;margin-bottom:9px}
.kk-profil-ph{width:62px;height:62px;flex:0 0 62px;border-radius:50%;display:grid;place-items:center;
  font-size:27px;background:linear-gradient(140deg,#a5b4fc,#38bdf8);color:#fff}
.kk-profil-pseudo{font-size:15.5px;font-weight:800;color:#0f172a;display:flex;align-items:center;gap:5px}
.kk-profil-cert{background:#0ea5e9;color:#fff;font-size:9.5px;width:14px;height:14px;border-radius:50%;
  display:grid;place-items:center;font-weight:700}
.kk-profil-arobase{font-size:12.5px;color:#64748b;margin-bottom:4px}
.kk-profil-stats{display:flex;gap:13px;font-size:12.5px;color:#475569;flex-wrap:wrap}
.kk-profil-bio{font-size:13.5px;line-height:1.55;color:#1e293b;white-space:pre-line}
.kk-profil-lien{font-size:12.5px;color:#0369a1;margin-top:4px}
.kk-profil-epingle{margin-top:9px;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:8px;
  padding:8px 10px;font-size:13px;line-height:1.5}
.kk-profil-epingle b{display:block;font-size:11px;color:#64748b;letter-spacing:.04em;margin-bottom:2px}
.kk-profil-grille{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:10px}
.kk-profil-case{aspect-ratio:1;background:#f1f5f9;border-radius:7px;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:3px;padding:5px;text-align:center}
.kk-profil-case-ic{font-size:20px}
.kk-profil-case-tx{font-size:10px;color:#64748b;line-height:1.25}
.kk-profil-note{margin-top:9px;font-size:12px;color:#64748b;font-style:italic}

.kk-fil{display:flex;flex-direction:column;gap:9px}
.kk-post{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:9px 11px}
.kk-post-tiers{background:#fef2f2;border-color:#fecaca}
.kk-post-tete{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:5px}
.kk-post-av{font-size:15px}
.kk-post-qui{font-weight:700;font-size:13px;color:#0f172a}
.kk-post-ou{font-size:11.5px;color:#64748b}
.kk-post-quand{font-size:11.5px;color:#94a3b8;margin-left:auto}
.kk-post-txt{font-size:13.5px;line-height:1.55;color:#1e293b}
.kk-post-tag{margin-top:5px;font-size:11.5px;color:#b91c1c;background:#fee2e2;border-radius:6px;
  padding:3px 7px;display:inline-block}
.kk-post-pied{display:flex;gap:12px;margin-top:6px;font-size:11.5px;color:#64748b}

.kk-algo{display:flex;flex-direction:column;gap:10px}
.kk-algo-bloc{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px}
.kk-algo-tete{display:flex;align-items:center;gap:7px;margin-bottom:7px;font-size:13.5px;color:#0f172a}
.kk-algo-ic{font-size:16px}
.kk-algo-items{display:flex;flex-wrap:wrap;gap:6px}
.kk-algo-item{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:4px 11px;
  font-size:12.5px;color:#334155}
.kk-algo-pourquoi{margin-top:8px;font-size:12px;line-height:1.5;color:#475569;background:#f8fafc;
  border-left:3px solid #94a3b8;padding:6px 9px;border-radius:0 6px 6px 0}
.kk-algo-pourquoi b{color:#334155}
@media(max-width:640px){.kk-profil-grille{grid-template-columns:repeat(3,1fr)}
  .kk-serp-titre{font-size:15px}}

.kk-plan{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:640px){.kk-plan{grid-template-columns:1fr}}
.kk-plan h5{margin:0 0 6px;color:#3f2d10;font-size:13px;text-transform:uppercase;letter-spacing:.05em}
.kk-rubrique{display:flex;gap:10px;padding:7px 0;border-top:1px dashed #eadfc4;font-size:13.5px;line-height:1.5}
.kk-rub-dim{flex:0 0 105px;font-weight:800;color:#8a7340}

.kk-salle h3,.kk-tuteur h3,.kk-coffre h3,.kk-kabar h3,.kk-fin h3{margin:0 0 6px;color:#0f172a}
.kk-avancee{font:700 12px system-ui,sans-serif;color:#0e7490;background:#ecfeff;border:1px solid #a5f3fc;
  border-radius:99px;padding:3px 11px;display:inline-block;margin-bottom:8px}
.kk-enigme{background:#fff;border:1px solid #e2e8f0;border-radius:13px;padding:14px 16px;box-shadow:0 1px 4px rgba(0,0,0,.05)}
.kk-enonce{margin:0 0 10px;font-weight:700;color:#0f172a;line-height:1.5}
.kk-ctx{background:#fffbeb;border:1px solid #fde68a;border-radius:9px;padding:8px 12px;margin-bottom:10px;
  color:#78350f;font-size:13.5px;line-height:1.55}
.kk-opts{display:flex;flex-direction:column;gap:7px}
.kk-opt{text-align:left;padding:10px 13px;border:2px solid #e2e8f0;border-radius:10px;background:#fff;cursor:pointer;
  font:500 14px system-ui,sans-serif;color:#1e293b;line-height:1.45;transition:.12s}
.kk-opt:hover:not(:disabled){border-color:#22d3ee}
.kk-opt.on{border-color:#0e7490;background:#ecfeff}
.kk-opt.juste{border-color:#16a34a;background:#f0fdf4;font-weight:600}
.kk-opt.faux{border-color:#dc2626;background:#fef2f2}
.kk-multi-n{font:600 12.5px system-ui,sans-serif;color:#64748b;margin-top:6px}
.kk-num{display:flex;align-items:center;gap:8px}
.kk-num input{width:170px;padding:10px 13px;border:2px solid #e2e8f0;border-radius:10px;font:600 16px system-ui,sans-serif}
.kk-num input.juste{border-color:#16a34a;background:#f0fdf4}
.kk-num span{font-weight:700;color:#475569}
.kk-ligne{display:flex;align-items:center;gap:10px;padding:8px 11px;border:1px solid #e2e8f0;border-radius:9px;
  background:#fafafa;margin-bottom:7px;flex-wrap:wrap}
.kk-ligne.juste{border-color:#86efac;background:#f0fdf4}
.kk-ligne.faux{border-color:#fca5a5;background:#fef2f2}
.kk-ligne-txt{flex:1;min-width:170px;font-size:13.5px;line-height:1.45;color:#1e293b}
.kk-ligne select{padding:7px 10px;border:2px solid #e2e8f0;border-radius:8px;background:#fff;
  font:600 12.5px system-ui,sans-serif;max-width:100%}
.kk-koudmin-btn{background:#fdf4ff;border:1px dashed #d8b4fe;border-radius:9px;padding:7px 12px;cursor:pointer;
  font:600 12.5px system-ui,sans-serif;color:#7e22ce;margin-bottom:10px}
.kk-koudmin{background:#fdf4ff;border:1px solid #e9d5ff;border-radius:9px;padding:9px 12px;margin-bottom:10px;
  font-size:13.5px;line-height:1.55;color:#581c87}
.kk-rate{background:#fff7ed;border:1px solid #fed7aa;border-radius:9px;padding:9px 12px;margin-top:10px;
  color:#9a3412;font-size:13.5px;line-height:1.5}
.kk-why{background:#f0f9ff;border:1px solid #bae6fd;border-radius:9px;padding:9px 12px;margin-top:10px;
  color:#0c4a6e;font-size:13.5px;line-height:1.6}

.kk-salle-fin{text-align:center;padding:30px 16px}
.kk-badge{width:86px;height:86px;border-radius:50%;background:linear-gradient(135deg,#0e7490,#155e75);color:#fff;
  font:800 40px system-ui,sans-serif;display:flex;align-items:center;justify-content:center;margin:0 auto 14px;
  box-shadow:0 6px 18px rgba(14,116,144,.4)}
.kk-coffre{text-align:center;padding:24px 16px;max-width:560px;margin:0 auto}
.kk-coffre-ferme,.kk-coffre-ouvert{font-size:58px;margin-bottom:8px}
.kk-code{display:flex;gap:10px;justify-content:center;margin-top:14px}
.kk-code input{width:150px;text-align:center;font:800 26px ui-monospace,monospace;letter-spacing:.35em;
  padding:10px;border:2px solid #cbd5e1;border-radius:11px}
.kk-coffre .kk-enigme{text-align:left;margin-top:14px}
.kk-kabar{max-width:720px;margin:0 auto}
.kk-grille{background:#f8fafc;border:1px solid #e2e8f0;border-radius:11px;padding:11px 15px;margin-top:12px;font-size:13.5px}
.kk-grille ul{margin:6px 0 0;padding-left:20px;line-height:1.7}
.kk-fin{max-width:640px;margin:0 auto;text-align:center;padding:20px 0}
.kk-etoiles{display:flex;flex-direction:column;gap:8px;margin:14px 0;text-align:left}
.kk-etoile{display:flex;gap:10px;align-items:center;border:1px solid #e2e8f0;border-radius:10px;padding:9px 13px;
  background:#fafafa;font-size:13.5px;opacity:.55}
.kk-etoile.on{opacity:1;border-color:#fcd34d;background:#fffbeb}
.kk-etoile b{flex:0 0 130px;color:#b45309}
.kk-etoile span{flex:1;color:#475569}
.kk-ok{flex:0 0 auto!important;font-weight:700}
.kk-etoile.on .kk-ok{color:#16a34a}
.kk-antibi{color:#64748b;font-size:13px;line-height:1.6}
body.dys .kk-doc,body.dys .kk-enigme{background:#fffaf0}

/* ----- Kaz Konsèy : Klasseur, QR, téléphone des juniors ----- */
.kk-outils{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.kk-outil{padding:7px 12px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;cursor:pointer;
  font:600 12.5px system-ui,sans-serif;color:#334155}
.kk-outil:hover{border-color:#0e7490;color:#0e7490}
.kk-fac{font-weight:500;color:#94a3b8;font-size:12px}
.kk-fac-note{font-size:12.5px;color:#64748b;line-height:1.55;margin-top:8px}
.kk-attente{color:#0e7490;font-weight:600;font-size:13.5px;margin:8px 0}

.kk-partage{display:flex;gap:18px;align-items:flex-start;background:#f0fdfa;border:1px solid #99f6e4;
  border-radius:14px;padding:15px 18px;margin:12px 0;flex-wrap:wrap}
.kk-partage-txt{flex:1;min-width:260px}
.kk-partage-txt h4{margin:0 0 8px;color:#0f766e;font-size:15px}
.kk-partage-txt ol{margin:0;padding-left:20px;line-height:1.65;font-size:13.5px;color:#134e4a}
.kk-partage-qr{flex:0 0 auto}
.kk-qr{border-radius:8px;box-shadow:0 2px 10px rgba(0,0,0,.12);display:block}
.kk-code-kaz{margin-top:10px;font-size:13px;color:#134e4a;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.kk-code-gros{font:800 24px ui-monospace,monospace;letter-spacing:.14em;color:#0f766e;
  background:#fff;border:2px dashed #5eead4;border-radius:9px;padding:3px 12px}
.kk-code-saisie{width:190px;text-align:center;font:800 26px ui-monospace,monospace;letter-spacing:.22em;
  padding:11px;border:2px solid #cbd5e1;border-radius:11px;margin:12px 0;text-transform:uppercase}

.kk-klasseur{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:14px 17px;margin:12px 0;
  box-shadow:0 2px 10px rgba(0,0,0,.05)}
.kk-kl-tete{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:4px}
.kk-kl-tete b{font-size:15px;color:#0f172a}
.kk-kl-note{font-size:12.5px;color:#64748b;margin-bottom:10px}
.kk-kl-onglets{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.kk-kl-onglets button{padding:7px 12px;border:1px solid #cbd5e1;border-radius:99px;background:#fff;cursor:pointer;
  font:600 12.5px system-ui,sans-serif;color:#475569}
.kk-kl-onglets button.on{background:#0f172a;border-color:#0f172a;color:#fff}
.kk-kl-page h3{margin:0;font-size:19px;color:#0f172a}
.kk-kl-st{color:#64748b;font-size:12.5px;margin:2px 0 12px;font-style:italic}
.kk-kl-h4{margin:16px 0 8px;color:#0f172a;font-size:15px}
.kk-kl-intro{color:#334155;line-height:1.65;margin-bottom:12px}
.kk-familles{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.kk-famille{border:1px solid #e2e8f0;border-top:4px solid;border-radius:0 0 12px 12px;padding:12px 14px}
.kk-famille h4{margin:0 0 8px;font-size:14.5px;letter-spacing:.02em}
.kk-famille p{margin:5px 0;font-size:13.5px;line-height:1.55;color:#334155}
.kk-fq{font:700 12px system-ui,sans-serif;color:#64748b;text-transform:uppercase;letter-spacing:.04em}
.kk-fr{font-weight:600;color:#0f172a!important}
.kk-fex{color:#64748b!important;font-style:italic}
.kk-piege{background:#fff7ed;border:1px solid #fed7aa;border-radius:11px;padding:11px 14px;margin-top:12px;
  font-size:13.5px;line-height:1.6;color:#7c2d12}
.kk-sigle{border:1px solid #e2e8f0;border-left:5px solid #94a3b8;border-radius:0 12px 12px 0;
  padding:11px 15px;margin-bottom:10px}
.kk-sigle.kk-fam-privée,.kk-sigle.kk-fam-privee{border-left-color:#d97706}
.kk-sigle.kk-fam-publique{border-left-color:#0e7490}
.kk-sigle.kk-fam-association{border-left-color:#16a34a}
.kk-sigle p{margin:5px 0;font-size:13.5px;line-height:1.55;color:#334155}
.kk-sigle-tete{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.kk-sigle-code{font:800 17px ui-monospace,monospace;color:#0f172a}
.kk-sigle-nom{font-weight:600;color:#475569;font-size:13.5px}
.kk-sigle-lettres{font-size:12.5px;color:#64748b;margin:3px 0 6px}
.kk-aretenir{background:#f0f9ff;border-radius:8px;padding:7px 11px;margin-top:7px;font-size:13px;
  line-height:1.55;color:#0c4a6e}
.kk-chapo{font-size:15px;line-height:1.65;color:#334155;font-weight:500;border-left:3px solid #cbd5e1;
  padding-left:12px;margin-bottom:14px}
.kk-echange{margin-bottom:12px}
.kk-q{font-weight:700;color:#0f172a;margin:0 0 4px;line-height:1.5}
.kk-r{margin:0;color:#334155;line-height:1.7}
.kk-mots{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px}
.kk-mot{border:1px solid #e2e8f0;border-radius:11px;padding:10px 13px}
.kk-mot-t{font:800 14px system-ui,sans-serif;color:#0e7490;margin-bottom:4px}
.kk-mot p{margin:3px 0;font-size:13px;line-height:1.55;color:#334155}

.kk-mob{max-width:640px;margin:0 auto;padding:12px 13px 40px}
.kk-mob-tete{display:flex;justify-content:space-between;align-items:center;gap:10px;
  background:#0f172a;color:#fff;border-radius:12px;padding:10px 14px;margin-bottom:12px;
  position:sticky;top:0;z-index:5}
.kk-mob-tete b{display:block;font-size:15px}
.kk-mob-tete span{font:600 12px ui-monospace,monospace;color:#94a3b8;letter-spacing:.1em}
.kk-mob-kl{background:#22d3ee;color:#083344;border:0;border-radius:9px;padding:8px 13px;cursor:pointer;
  font:700 12.5px system-ui,sans-serif;white-space:nowrap}
.kk-mob-salle{font:700 13px system-ui,sans-serif;color:#0e7490;margin-bottom:8px}
.kk-mob-logo{font-size:46px;text-align:center;margin-bottom:6px}
.kk-mob-attente{text-align:center;color:#475569;line-height:1.6;padding:24px 10px}
.kk-mob-astuce{color:#94a3b8;font-size:13px;margin-top:8px}
.kk-mob-err h2{margin:4px 0 8px}
.kk-mob-pied{margin-top:14px;font-size:12.5px;color:#64748b;line-height:1.5}
.kk-mob-pied label{display:flex;align-items:center;gap:7px;font-weight:600;color:#334155}
.kk-mob .kk-doc{max-height:none}
.kk-mob .kk-klasseur{padding:12px 13px;box-shadow:none;margin:0}
@media(max-width:520px){
  .kk-partage{flex-direction:column-reverse;align-items:center}
  .kk-partage-qr{align-self:center}
  .kk-familles,.kk-mots{grid-template-columns:1fr}
}

/* ===== Parcours Évaluations, côté professeur ===== */
.ev-sous{display:flex;gap:8px;margin:0 0 16px}
.ev-sujets{display:inline-flex;align-items:center;gap:5px;margin-right:8px}
.ev-sujets-lbl{font:700 12px system-ui,sans-serif;color:#8a8798;text-transform:uppercase;letter-spacing:.05em}
.ev-sujet{width:30px;height:30px;border:2px solid #e6e2d8;border-radius:8px;background:#fff;cursor:pointer;
  font:800 13px system-ui,sans-serif;color:#4a4658;padding:0}
.ev-sujet.on{background:#0e7490;border-color:#0e7490;color:#fff}
.ev-sous button{padding:9px 18px;border:1px solid #d9d5cb;border-radius:99px;background:#fff;cursor:pointer;
  font:700 13.5px system-ui,sans-serif;color:#4a4658}
.ev-sous button.on{background:#0e7490;border-color:#0e7490;color:#fff}
.ev-cat-intro{color:#5c5a68;font-size:14px;line-height:1.6;margin-bottom:16px;max-width:860px}
.ev-cartes{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:16px}
.ev-carte{background:#fff;border:1px solid #e6e2d8;border-radius:16px;overflow:hidden;
  display:flex;flex-direction:column;box-shadow:0 2px 10px rgba(0,0,0,.05)}
.ev-carte-band{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;color:#fff}
.ev-carte-ico{font-size:26px}
.ev-carte-sur{font:800 12px system-ui,sans-serif;background:rgba(255,255,255,.25);
  border-radius:99px;padding:3px 11px;letter-spacing:.03em}
.ev-carte-corps{padding:14px 17px 17px;display:flex;flex-direction:column;gap:8px;flex:1}
.ev-carte-corps h3{margin:0;font-size:17px;color:#1a1430;line-height:1.3}
.ev-carte-meta{font-size:12.5px;color:#8a8798}
.ev-carte-corps p{margin:0;font-size:13.5px;color:#5c5a68;line-height:1.55;flex:1}
.ev-carte-statut{font-size:12.5px;line-height:1.5;background:#fff7ed;border:1px solid #fed7aa;
  border-radius:9px;padding:7px 11px;color:#9a3412}
.ev-carte-statut.pub{background:#f0fdf4;border-color:#bbf7d0;color:#166534}
.ev-carte-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:2px}
.ev-carte-actions .rf{padding:8px 13px;font-size:13px}

.ev-donner,.ev-corrige{background:#fff;border:1px solid #e6e2d8;border-radius:16px;padding:18px 22px;
  margin-bottom:18px;box-shadow:0 2px 12px rgba(0,0,0,.06)}
.ev-donner h3,.ev-corrige h3{margin:0 0 6px;font-size:19px;color:#1a1430}
.ev-donner-note{color:#5c5a68;font-size:13.5px;line-height:1.6;margin-bottom:14px;max-width:760px}
.ev-champ{margin-bottom:13px}
.ev-champ label{display:block;font:700 13px system-ui,sans-serif;color:#4a4658;margin-bottom:5px}
.ev-champ label span{font-weight:500;color:#a3a0ad;font-size:12px}
.ev-champ input{width:100%;max-width:460px;padding:9px 12px;border:2px solid #e6e2d8;border-radius:10px;
  font:500 14px system-ui,sans-serif}
.ev-dates{display:flex;gap:16px;flex-wrap:wrap}
.ev-dates .ev-champ input{max-width:230px}
.ev-classes{display:flex;gap:8px;flex-wrap:wrap}
.ev-classe{padding:8px 15px;border:2px solid #e6e2d8;border-radius:99px;background:#fff;cursor:pointer;
  font:600 13.5px system-ui,sans-serif;color:#4a4658}
.ev-classe.on{background:#0e7490;border-color:#0e7490;color:#fff}
.ev-attente{color:#8a8798;font-size:13.5px}
.ev-err{background:#fef2f2;border:1px solid #fecaca;border-radius:9px;padding:9px 13px;
  color:#991b1b;font-size:13.5px;margin-bottom:12px}
.ev-donner-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:6px}
.ev-lien-bloc{display:flex;gap:18px;align-items:center;flex-wrap:wrap;background:#f7f5ef;
  border:1px solid #e6e2d8;border-radius:12px;padding:14px 17px;margin:12px 0}
.ev-lien-lbl{font:700 12.5px system-ui,sans-serif;color:#4a4658;margin-bottom:5px}
.ev-lien{display:block;font:600 14px ui-monospace,monospace;color:#0e7490;
  background:#fff;border:1px solid #e6e2d8;border-radius:8px;padding:7px 12px;margin-bottom:8px;
  word-break:break-all}

.ev-corrige-tete{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;
  flex-wrap:wrap;border-bottom:2px solid #f0ece2;padding-bottom:12px;margin-bottom:14px}
.ev-corrige-tete p{margin:4px 0 0;color:#8a8798;font-size:13px}
.ev-corrige-actions{display:flex;gap:8px}
.ev-cor-page{margin-bottom:20px}
.ev-cor-page-t{background:#f7f5ef;border-radius:9px;padding:8px 13px;margin-bottom:10px}
.ev-cor-page-t b{color:#1a1430;font-size:14.5px}
.ev-cor-page-t span{display:block;color:#8a8798;font-size:12.5px}
.ev-cor-q{border-left:3px solid #d9d5cb;padding-left:13px;margin-bottom:14px}
.ev-cor-q-t{display:flex;gap:9px;align-items:baseline;font-weight:700;color:#1a1430;line-height:1.45}
.ev-cor-num{background:#0e7490;color:#fff;border-radius:50%;width:22px;height:22px;flex:0 0 22px;
  display:inline-flex;align-items:center;justify-content:center;font:800 12px system-ui,sans-serif}
.ev-cor-pts{margin-left:auto;white-space:nowrap;color:#8a8798;font:600 12px system-ui,sans-serif}
.ev-cor-ctx{background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:7px 11px;
  margin:6px 0;font-size:13px;line-height:1.55;color:#78350f}
.ev-cor-rep{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;padding:8px 12px;
  margin-top:7px;font-size:13.5px;line-height:1.55;color:#14532d}
.ev-cor-l{padding:2px 0}
.ev-cor-expl{margin-top:6px;font-size:13px;line-height:1.6;color:#5c5a68}
.ev-test-bandeau{background:#eff6ff;border:1px solid #93c5fd;border-radius:12px;padding:11px 16px;
  margin-bottom:14px;font-size:13.5px;line-height:1.6;color:#1e3a8a;
  display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ev-test-bandeau .rf{margin-left:auto}
@media print{
  .ev-corrige-actions,.ev-sous,.ev-cat-intro,.ev-cartes,.ptool,.top{display:none!important}
  .ev-corrige{border:0;box-shadow:none;padding:0}
}

/* ===== Tableau de bord d'accueil du professeur ===== */
.tb{max-width:1180px;margin:0 auto;padding:4px 0 26px}
.tb-tete{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap;
  background:#fff;border:1px solid #e6e2d8;border-radius:16px;padding:18px 22px;margin-bottom:20px;
  box-shadow:0 2px 10px rgba(0,0,0,.05)}
.tb-tete h2{margin:0 0 4px;font-size:22px;color:#1a1430}
.tb-tete p{margin:0;color:#6b6a78;font-size:14px;line-height:1.55}
.tb-chiffres{display:flex;gap:10px;flex-wrap:wrap}
.tb-chiffre{background:#f7f5ef;border:1px solid #e6e2d8;border-radius:12px;padding:9px 14px;min-width:104px;text-align:center}
.tb-chiffre b{display:block;font:800 22px system-ui,sans-serif;color:#0e7490;line-height:1.1}
.tb-chiffre span{display:block;font-size:11.5px;color:#6b6a78;margin-top:3px;line-height:1.35}
.tb-attente{color:#6b6a78;font-size:14px;margin-bottom:14px}
.tb-groupe{margin-bottom:22px}
.tb-groupe-tete{border-left:4px solid;padding-left:11px;margin-bottom:11px}
.tb-groupe-tete b{display:block;font:800 15px system-ui,sans-serif;letter-spacing:.01em}
.tb-groupe-tete span{font-size:12.5px;color:#8a8798}
.tb-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(258px,1fr));gap:12px}
.tb-carte{--tb-col:#0e7490;display:flex;flex-direction:column;align-items:flex-start;gap:5px;
  text-align:left;background:#fff;border:1px solid #e6e2d8;border-radius:14px;padding:15px 17px;
  cursor:pointer;font:inherit;transition:.14s;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.tb-carte:hover{border-color:var(--tb-col);transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.09)}
.tb-carte:focus-visible{outline:3px solid var(--tb-col);outline-offset:2px}
.tb-ico{font-size:26px;line-height:1}
.tb-t{font:800 15px system-ui,sans-serif;color:#1a1430;display:flex;align-items:center;gap:7px}
.tb-x{font-size:13px;color:#6b6a78;line-height:1.5}
.tb-badge{background:#dc2626;color:#fff;border-radius:99px;font:800 11px system-ui,sans-serif;
  padding:1px 7px;line-height:1.6}
@media(max-width:620px){
  .tb-tete{flex-direction:column}
  .tb-chiffres{width:100%}
  .tb-chiffre{flex:1;min-width:0}
}

/* ===== Moteur d'évaluation notée ===== */
.evm{max-width:860px;margin:0 auto}
.evm-bar{display:flex;gap:6px;margin:14px 0 18px}
.evm-step{flex:1;height:7px;border-radius:99px;background:#e4e7ec}
.evm-step.fait{background:#0e7490}
.evm-step.ici{background:#22d3ee}
.evm-tete{margin-bottom:12px}
.evm-th{display:inline-block;font:700 12px system-ui,sans-serif;color:#0e7490;
  background:#ecfeff;border:1px solid #a5f3fc;border-radius:99px;padding:3px 10px;margin-bottom:8px}
.evm-tete h2{margin:4px 0 2px;font-size:24px;color:#0f172a}
.evm-sst{margin:0;color:#64748b;font-size:14px;font-weight:600}
.evm-img{border-radius:14px;overflow:hidden;margin:12px 0 16px;background:#f1f5f9;max-height:280px}
/* --- le tableau de caracterisation a etiquettes (type carac) ---
   ⚠️ Piege N : tout porte le prefixe `evm-cx-`, jamais un modificateur nu.
   Les etats `on` / `juste` / `faux` sont toujours ecrits accroches a leur
   bloc (`.evm-cx-eti.on`), jamais definis seuls. */
.evm-cx{margin:6px 0 4px}
.evm-cx-doc{background:#f8fafc;border:1px solid #e2e8f0;border-left:4px solid #0f766e;
  border-radius:0 12px 12px 0;padding:11px 15px;margin:0 0 11px;font-size:14.5px;line-height:1.6}
.evm-cx-doc>b{display:block;margin-bottom:6px;font-size:13.5px;color:#0f766e}
.evm-cx-doc p{margin:0 0 8px}.evm-cx-doc p:last-child{margin-bottom:0}
.evm-cx-aide{font-size:13px;opacity:.8;margin:10px 0 8px}
.evm-cx-pool{display:flex;flex-wrap:wrap;gap:7px;padding:11px;background:#eef2f7;
  border-radius:12px;min-height:52px;margin-bottom:14px}
.evm-cx-vide{font-size:13px;opacity:.65;align-self:center}
.evm-cx-eti{border:1px solid #cbd5e1;background:#fff;border-radius:999px;
  padding:6px 13px;font:inherit;font-size:13px;cursor:grab;text-align:left;line-height:1.35}
.evm-cx-eti:hover{border-color:#0f766e;background:#f0fdfa}
.evm-cx-eti.on{border-color:#0f766e;background:#0f766e;color:#fff}
.evm-cx-eti:disabled{cursor:default;opacity:.6}
.evm-cx-tab{border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}
.evm-cx-l{display:flex;gap:10px;align-items:flex-start;padding:9px 12px;
  border-bottom:1px solid #eef2f7;min-height:44px}
.evm-cx-l:last-child{border-bottom:none}
.evm-cx-l:nth-child(odd){background:#fafcfe}
.evm-cx-crit{flex:0 0 210px;font-size:13px;font-weight:600;padding-top:5px}
.evm-cx-cases{flex:1 1 auto;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.evm-cx-trou{font-style:normal;font-size:12.5px;opacity:.45}
.evm-cx-mis{border:1px solid #99f6e4;background:#f0fdfa;border-radius:999px;
  padding:5px 12px;font:inherit;font-size:12.5px;cursor:pointer;text-align:left;line-height:1.35}
.evm-cx-mis.juste{border-color:#16a34a;background:#f0fdf4}
.evm-cx-mis.faux{border-color:#dc2626;background:#fef2f2}
.evm-cx-sol{margin-top:12px;background:#f8fafc;border-radius:12px;padding:11px 14px;font-size:13.5px}
.evm-cx-sol>b{display:block;margin-bottom:6px}
.evm-cx-sol p{margin:0 0 4px;line-height:1.5}
@media(max-width:640px){
  .evm-cx-l{flex-direction:column;gap:5px}
  .evm-cx-crit{flex:none;padding-top:0;font-size:12.5px;opacity:.85}
  .evm-cx-eti,.evm-cx-mis{font-size:12.5px}
}
.evm-img img{display:block;width:100%;height:auto;object-fit:cover}
.evm-consigne{background:#f8fafc;border-left:4px solid #0e7490;border-radius:0 10px 10px 0;
  padding:12px 16px;margin-bottom:20px;color:#334155;line-height:1.6}

.evm-q{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:16px 18px;margin-bottom:16px;
  box-shadow:0 1px 3px rgba(0,0,0,.04)}
.evm-qh{display:flex;align-items:center;gap:10px;margin-bottom:8px;flex-wrap:wrap}
.evm-qn{font:700 13px system-ui,sans-serif;color:#0e7490;text-transform:uppercase;letter-spacing:.04em}
.evm-qp{font-size:12px;color:#64748b;background:#f1f5f9;border-radius:99px;padding:2px 9px}
.evm-qg{margin-left:auto;font:700 13px system-ui,sans-serif;border-radius:99px;padding:2px 10px}
.evm-qg.plein{background:#dcfce7;color:#15803d}
.evm-qg.part{background:#fef3c7;color:#b45309}
.evm-qg.zero{background:#fee2e2;color:#b91c1c}
.evm-enonce{margin:0 0 10px;font-weight:700;color:#0f172a;font-size:16px;line-height:1.5}
.evm-ctx{background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:10px 13px;
  margin-bottom:12px;color:#78350f;line-height:1.6;font-size:14.5px}

.evm-opts{display:flex;flex-direction:column;gap:8px}
.evm-opt{text-align:left;padding:11px 14px;border:2px solid #e2e8f0;border-radius:10px;background:#fff;
  cursor:pointer;font:500 15px system-ui,sans-serif;color:#1e293b;line-height:1.45;transition:.12s}
.evm-opt:hover:not(:disabled){border-color:#22d3ee;background:#f0fdff}
.evm-opt.choisi{border-color:#0e7490;background:#ecfeff}
.evm-opt.juste{border-color:#16a34a;background:#f0fdf4;color:#14532d;font-weight:600}
.evm-opt.faux{border-color:#dc2626;background:#fef2f2;color:#7f1d1d}
.evm-opt:disabled{cursor:default}

.evm-num{display:flex;align-items:center;gap:9px}
.evm-input{width:170px;padding:11px 13px;border:2px solid #e2e8f0;border-radius:10px;
  font:600 17px system-ui,sans-serif;color:#0f172a}
.evm-input.juste{border-color:#16a34a;background:#f0fdf4}
.evm-input.faux{border-color:#dc2626;background:#fef2f2}
.evm-unite{font-weight:700;color:#475569;font-size:17px}

.evm-vf{display:flex;flex-direction:column;gap:8px}
.evm-vfl{display:flex;align-items:center;gap:12px;padding:10px 13px;border:1px solid #e2e8f0;
  border-radius:10px;background:#fafafa;flex-wrap:wrap}
.evm-vfl.juste{border-color:#86efac;background:#f0fdf4}
.evm-vfl.faux{border-color:#fca5a5;background:#fef2f2}
.evm-vftxt{flex:1;min-width:200px;line-height:1.5;color:#1e293b}
.evm-vfb{display:flex;gap:6px}
.evm-mini{padding:6px 14px;border:2px solid #e2e8f0;border-radius:8px;background:#fff;cursor:pointer;
  font:600 13px system-ui,sans-serif;color:#475569}
.evm-mini.on{border-color:#0e7490;background:#ecfeff;color:#0e7490}
.evm-mini.sol{border-color:#16a34a;background:#dcfce7;color:#15803d}
.evm-mini:disabled{cursor:default}

.evm-tri{display:flex;flex-direction:column;gap:8px}
.evm-tril{display:flex;align-items:center;gap:12px;padding:10px 13px;border:1px solid #e2e8f0;
  border-radius:10px;background:#fafafa;flex-wrap:wrap}
.evm-tril.juste{border-color:#86efac;background:#f0fdf4}
.evm-tril.faux{border-color:#fca5a5;background:#fef2f2}
.evm-tritxt{flex:1;min-width:200px;line-height:1.5;color:#1e293b}
.evm-sel{padding:8px 11px;border:2px solid #e2e8f0;border-radius:8px;background:#fff;
  font:600 13.5px system-ui,sans-serif;color:#1e293b;cursor:pointer;max-width:100%}
.evm-sol{font:700 13px system-ui,sans-serif;color:#15803d;white-space:nowrap}

.evm-expl{margin-top:11px;background:#f0f9ff;border:1px solid #bae6fd;border-radius:10px;
  padding:10px 13px;color:#0c4a6e;line-height:1.6;font-size:14.5px}

.evm-pied{display:flex;align-items:center;gap:14px;margin:22px 0 40px;flex-wrap:wrap}
.evm-cta{padding:13px 26px;border:0;border-radius:11px;background:#0e7490;color:#fff;cursor:pointer;
  font:700 15.5px system-ui,sans-serif;transition:.12s}
.evm-cta:hover:not(:disabled){background:#155e75}
.evm-cta:disabled{background:#cbd5e1;cursor:not-allowed}
.evm-sc{font:700 14px system-ui,sans-serif;color:#0e7490}

.evm-fin{text-align:center;padding:34px 20px 60px}
.evm-note{font:800 62px system-ui,sans-serif;color:#0e7490;line-height:1}
.evm-note span{font-size:26px;color:#64748b}
.evm-mot{max-width:520px;margin:14px auto 26px;color:#334155;line-height:1.65;font-size:16px}
.evm-detail{max-width:460px;margin:0 auto;text-align:left}
.evm-dl{display:flex;justify-content:space-between;gap:14px;padding:10px 14px;border-bottom:1px solid #e2e8f0;
  color:#334155;font-size:14.5px}
.evm-dl b.ok{color:#15803d}
.evm-dl b.moy{color:#b45309}
.evm-dl b.bof{color:#b91c1c}
.evm-transmis{margin-top:24px;color:#15803d;font-weight:700}

/* Catalogue des évaluations, côté professeur */
.evcat{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:14px 16px;margin-bottom:18px}
.evcat h4{margin:0 0 4px;color:#0f172a;font-size:15px}
.evcat-l{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid #e2e8f0;flex-wrap:wrap}
.evcat-n{flex:1;min-width:210px}
.evcat-n b{display:block;color:#0f172a}
.evcat-n span{font-size:12.5px;color:#64748b}
.evcat-tag{font:700 11px system-ui,sans-serif;border-radius:99px;padding:3px 9px;white-space:nowrap}
.evcat-tag.masque{background:#fef3c7;color:#92400e}
.evcat-tag.ouvert{background:#dcfce7;color:#15803d}
.evcat-lien{font:600 12.5px ui-monospace,monospace;background:#fff;border:1px solid #cbd5e1;
  border-radius:8px;padding:7px 11px;color:#0e7490;max-width:100%;overflow-x:auto;white-space:nowrap}
.evcat-copy{padding:7px 13px;border:0;border-radius:8px;background:#0e7490;color:#fff;cursor:pointer;
  font:600 12.5px system-ui,sans-serif}
.evcat-copy:hover{background:#155e75}

@media(max-width:640px){
  .evm-note{font-size:48px}
  .evm-tete h2{font-size:20px}
  .evm-sel{width:100%}
}

/* ===== Lecture facilitée (dyslexie) ===== */
/* En BAS À GAUCHE : tout le côté droit est déjà pris — calculatrice
   (top 92), mode édition (bottom 76), signalement de bug (bottom 16),
   calcul flottant (bottom 196) — et en haut à droite le bouton recouvrait
   les commandes de la page. Le coin bas gauche est le seul libre. */
.dysfab{position:fixed;bottom:12px;left:12px;z-index:9000;display:inline-flex;align-items:center;gap:7px;
  background:#fff;border:1px solid #d8d2e6;border-radius:999px;padding:7px 14px;cursor:pointer;
  font:600 13px system-ui,sans-serif;color:#5b21b6;box-shadow:0 2px 10px rgba(0,0,0,.08);transition:.15s}
.dysfab:hover{border-color:#7c3aed;transform:translateY(-1px)}
.dysfab.on{background:#7c3aed;color:#fff;border-color:#7c3aed}
.dysfab-ico{font-size:15px;line-height:1}
.dysfab-txt{white-space:nowrap}
@media(max-width:720px){.dysfab-txt{display:none}.dysfab{padding:9px 11px}}

/* Les règles ci-dessous ne s'appliquent QUE si l'élève a activé le mode.
   Police sans empattement large, interlignage aéré, espacement entre les
   lettres et les mots, fond crème moins éblouissant que le blanc pur, et
   plus aucune italique — c'est ce qui gêne le plus à la lecture. */
body.dys{background:#f7f1e1}
body.dys, body.dys button, body.dys input, body.dys select, body.dys textarea,
body.dys .opt, body.dys .cq, body.dys p, body.dys li, body.dys td, body.dys th{
  font-family:Verdana,"Trebuchet MS",Tahoma,Arial,sans-serif;
  letter-spacing:.04em;word-spacing:.12em}
body.dys p, body.dys li, body.dys .doctxt, body.dys .cq, body.dys .opt,
body.dys .help, body.dys .direct-sub, body.dys .tafr-consigne{line-height:1.8}
body.dys .cq, body.dys .opt{font-size:16.5px}
body.dys em, body.dys i{font-style:normal;font-weight:700}
body.dys .card, body.dys .game, body.dys .docbox, body.dys .direct-card,
body.dys .mn-feuille, body.dys .taf-carte{background:#fffaf0}
body.dys .doctxt{background:#fffaf0}
/* Une option de QCM doit rester nettement séparée de sa voisine. */
body.dys .opts{gap:10px}
body.dys .opt{border:2px solid #d8cfb8}

/* Illustration d'une question d'étude de docs */
.qmedia-q{margin:10px 0 14px;border-radius:12px;overflow:hidden;background:#faf7f0;max-width:560px}
.qmedia-q img{display:block;width:100%;height:auto}

/* Rappel du lycée quand il n'y en a qu'un : on nomme sans rien demander */
.lycee-rappel{font-size:13px;color:#5b21b6;background:#f5f3ff;border:1px solid #e6e0fb;
  border-radius:9px;padding:8px 12px;margin:2px 0 6px;font-weight:600}
.lycee-select{margin-bottom:8px}

/* Bandeau de vue professeur simulée */
.vueprof-bandeau{background:linear-gradient(135deg,#fff7ed,#fffbeb);border:1px solid #fed7aa;
  border-radius:12px;padding:11px 16px;margin:12px 0 0;font-size:13px;color:#7c4a13;line-height:1.55}
.vueprof-bandeau b{color:#b45309}
.vueprof-sortie{margin-left:10px;background:#b45309;color:#fff;border:0;border-radius:8px;
  padding:5px 12px;font-size:12.5px;font-weight:700;cursor:pointer;white-space:nowrap}
.vueprof-sortie:hover{filter:brightness(1.08)}

/* Vue toutes matières : pastilles « matière + exercices validés » */
.pmat{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.pmat-p{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;padding:2px 9px;
  border-radius:999px;background:#f5f3ff;border:1px solid #e6e0fb;color:#4c3f78;white-space:nowrap}
.pmat-p b{color:#5b21b6;font-size:12px}

/* ===== TàF — Travail À Faire ===== */
.taf{padding:4px 0 20px}
.taf-tete{display:flex;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.taf-tete h3{font-size:19px}
.taf-tete>div:first-child{flex:1;min-width:240px}
.taf-sub{margin:5px 0 0;font-size:13px;color:#64748b;line-height:1.5}
.taf-majbar{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap}
.taf-maj{background:#eef2ff;color:#3730a3;border:1px solid #c7d2fe;border-radius:10px;
  padding:9px 14px;font-size:13.5px;font-weight:700;cursor:pointer;white-space:nowrap}
.taf-maj:hover{background:#e0e7ff}
.taf-maj:disabled{opacity:.6;cursor:default}
.taf-vu{margin:4px 0 0;font-size:12px;color:#64748b}
.taf-vu-ko{color:#b91c1c}
.taf-new{background:linear-gradient(135deg,#7c3aed,#a855f7);color:#fff;border:0;border-radius:10px;padding:10px 18px;font-size:14px;font-weight:700;cursor:pointer;white-space:nowrap}
.taf-new:disabled{opacity:.6;cursor:default}
.taf-annul{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:9px 15px;font-size:13.5px;cursor:pointer;color:#475569;white-space:nowrap}
.taf-annul:hover{border-color:#7c3aed;color:#5b21b6}
.taf-msg,.taf-err{border-radius:9px;padding:9px 13px;font-size:13.5px;margin-bottom:12px}
.taf-msg{background:#f1f5f9;color:#334155}
.taf-err{background:#fee2e2;color:#b91c1c;border:1px solid #fecaca}
.taf-vide{padding:24px;background:#fff;border:1px dashed #d8d2e6;border-radius:13px;color:#475569}
.taf-vide p{margin:4px 0}
.taf-vide-p{font-size:13px;color:#94a3b8;margin:8px 0 0}
.taf-liste{display:flex;flex-direction:column;gap:12px}
/* Le bandeau de l'eleve : trois blocs, un seul endroit. */
.nv-bandeaux{display:flex;flex-direction:column;gap:10px;max-width:820px;margin:0 auto 18px;text-align:left}
.nv-bandeaux:empty{display:none}
.tafr-moi{font-size:12.5px;color:#5a5470;margin-top:10px}
.tafr-pasmoi{border:0;background:none;padding:0;font:inherit;font-size:12.5px;color:#7c3aed;text-decoration:underline;cursor:pointer}
.tafmenu .evmenu-h{color:#b45309}
.tafmenu .evmenu-l.afaire{border-left-color:#f59e0b}
/* --- CPS : la carte et les neuf gestes (01/09/2026) --- */
.cps-aides{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin:12px 0 16px}
.cps-aide{background:#f8f6fd;border:1px solid #ece8f8;border-radius:12px;padding:10px 12px}
.cps-aide b{display:block;font-size:13.5px;margin-bottom:3px}
.cps-aide span{font-size:12.5px;color:#5a5470;line-height:1.45}
.cps-tri{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.cps-tri-l{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;
  background:#fff;border:1px solid #e9e4f6;border-radius:12px;padding:10px 12px}
.cps-tri-l.ok{border-color:#86efac;background:#f0fdf4}
.cps-tri-l.ko{border-color:#fecaca;background:#fef2f2}
.cps-tri-t{font-size:13.5px;line-height:1.45}
.cps-tri-b{display:flex;gap:5px}
.cps-tri-c{border:1px solid #e2e8f0;background:#fff;border-radius:9px;padding:5px 9px;
  font-size:17px;cursor:pointer;line-height:1}
.cps-tri-c.sel{border-color:#7c3aed;background:#f3effd}
.cps-tri-c:disabled{cursor:default;opacity:.75}
.cps-tri-r{grid-column:1/-1;font-size:12.5px;color:#5a5470}
.cps-liens{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.cps-lien{display:grid;gap:7px;background:#fff;border:1px solid #e9e4f6;border-radius:12px;padding:10px 12px}
.cps-lien.ok{border-color:#86efac;background:#f0fdf4}
.cps-lien.ko{border-color:#fecaca;background:#fef2f2}
.cps-lien-t{font-size:13.5px;line-height:1.45}
.cps-lien select{font:inherit;font-size:13px;border:1px solid #e2e8f0;border-radius:9px;padding:6px 9px;background:#fff}
.cps-lien-r{font-size:12.5px;color:#5a5470}
.cps-carte{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:14px 0 18px}
.cps-carte-f{border:1px dashed #d8d2ec;border-radius:14px;padding:12px 14px;background:#fbfaff}
.cps-carte-f.on{border-style:solid;border-color:#c4b5fd;background:#fff}
.cps-carte-t{font-weight:800;font-size:13.5px;margin-bottom:6px}
.cps-carte-v{font-size:12.5px;color:#a49ec4;font-style:italic}
.cps-carte-f ul{margin:0;padding-left:18px}
.cps-carte-f li{font-size:12.5px;line-height:1.5;color:#5a5470}
.cps-carte-b{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.cps-carte-b span{font-size:11.5px;font-weight:700;color:#6d28d9;background:#f3effd;border-radius:99px;padding:3px 9px}
.cps-opts{display:flex;flex-direction:column;gap:8px;margin:10px 0}
.cps-opt{text-align:left;font:inherit;font-size:13.5px;line-height:1.5;border:1px solid #e9e4f6;
  background:#fff;border-radius:12px;padding:11px 14px;cursor:pointer}
.cps-opt:hover:not(:disabled){border-color:#c4b5fd}
.cps-opt.ok{border-color:#16a34a;background:#f0fdf4}
.cps-opt.ko{border-color:#dc2626;background:#fef2f2}
.cps-opt.off{opacity:.55}
.cps-why{background:#f8f6fd;border-left:4px solid #7c3aed;border-radius:0 10px 10px 0;
  padding:11px 14px;font-size:13.5px;line-height:1.55;margin-bottom:12px}
.cps-sc-q{font-weight:700;font-size:14.5px;margin:10px 0 4px}
.cps-sc-note{font-size:12.5px;color:#5a5470;margin-top:8px}
/* --- Bassin Bleu : les quatre approches marketing --- */
.mkt-doc{background:#fff7ed;border-left:4px solid #ea580c;border-radius:0 12px 12px 0;
  padding:14px 18px;margin:12px 0;font-size:14px;line-height:1.6}
.mkt-doc p{margin:0 0 8px}
.mkt-doc p:last-child{margin-bottom:0}
.mkt-doc-mini{font-size:13px;background:#fffbf5;max-height:150px;overflow:auto}
.mkt-bilan{display:flex;flex-direction:column;gap:9px;margin:14px 0}
.mkt-bilan-l{display:grid;grid-template-columns:130px 1fr auto;gap:12px;align-items:start;
  background:#fff;border:1px solid #ece8f8;border-radius:12px;padding:11px 14px}
.mkt-bilan-l b{color:#c2410c;font-size:14px}
.mkt-bilan-l span{font-size:13px;color:#5a5470;line-height:1.5}
.mkt-bilan-l i{font-style:normal;font-weight:800;font-size:13px;color:#1a1430}
@media(max-width:640px){.mkt-bilan-l{grid-template-columns:1fr auto}
  .mkt-bilan-l span{grid-column:1/-1}}
.taf-code{margin-left:8px;font-size:11.5px;font-weight:800;color:#7c3aed;background:#f3effd;border-radius:6px;padding:1px 6px;letter-spacing:.3px}
.taf-filtre{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:12px;
  background:#f8f6fd;border:1px solid #ece8f8;border-radius:12px;padding:9px 14px;
  font-size:13.5px;font-weight:600;color:#1a1430;cursor:pointer;user-select:none}
.taf-filtre input{width:16px;height:16px;accent-color:#7c3aed;cursor:pointer}
.taf-filtre small{font-weight:500;color:#6f6a8f;font-size:12.5px}
.taf-carte{background:#fff;border:1px solid #e2e8f0;border-radius:13px;padding:14px 16px}
.taf-carte-h{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.taf-titre{flex:1;min-width:180px;text-align:left;background:none;border:0;padding:0;font-size:16px;font-weight:800;color:#1a1430;cursor:pointer}
.taf-titre:hover{color:#7c3aed;text-decoration:underline}
.taf-etat{font-size:11.5px;font-weight:700;padding:2px 10px;border-radius:999px;white-space:nowrap}
.taf-etat.encours{background:#e1f5ee;color:#0f6e56;border:1px solid #9fe1cb}
.taf-etat.avenir{background:#eef3ff;color:#2451b3;border:1px solid #dce6ff}
.taf-etat.termine{background:#f1f5f9;color:#64748b;border:1px solid #e2e8f0}
.taf-outils{display:flex;gap:6px}
.taf-outils button{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:5px 9px;font-size:14px;cursor:pointer}
.taf-outils button:hover{border-color:#7c3aed}
.taf-outils button.del:hover{border-color:#dc2626}
.taf-suivi{font-size:11.5px;font-weight:700;color:#5b21b6;background:#f5f3ff;border:1px solid #ddd6fe;padding:3px 10px;border-radius:999px;white-space:nowrap}
.taf-meta{display:flex;flex-wrap:wrap;gap:14px;margin-top:8px;font-size:12.5px;color:#64748b}
.taf-bas{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px;padding-top:12px;border-top:1px solid #f1f5f9}
.taf-lien{flex:1;min-width:230px;display:flex;gap:7px}
.taf-lien input{flex:1;min-width:0;height:34px;padding:0 10px;font:12px ui-monospace,Menlo,Consolas,monospace;border:1px solid #e2e8f0;border-radius:8px;background:#fafafe;color:#334155}
.taf-lien button{border:1px solid #e2e8f0;background:#fff;border-radius:8px;padding:0 12px;height:34px;font-size:12.5px;cursor:pointer;white-space:nowrap}
.taf-lien button:hover{border-color:#7c3aed}
.taf-lien.grand input{height:42px;font-size:13.5px}
.taf-lien.grand button{height:42px}
.taf-voir{background:#f5f3ff;border:1px solid #ddd6fe;color:#5b21b6;border-radius:9px;padding:8px 14px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
.taf-voir:hover{background:#ede9fe}
/* éditeur */
.taf-champ{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}
.taf-champ label{font-size:12.5px;font-weight:700;color:#475569}
.taf-champ small{font-size:11.5px;color:#94a3b8}
.taf-champ input,.taf-champ textarea,.taf-champ select{border:1px solid #d8d2e6;border-radius:9px;padding:9px 11px;font:inherit;font-size:13.5px;width:100%;box-sizing:border-box}
.taf-bloc{background:#fbfaff;border:1px solid #ece7fa;border-radius:13px;padding:14px 16px;margin-bottom:14px}
.taf-bloc-t{font-weight:800;color:#5b21b6;font-size:14px;margin-bottom:10px}
.taf-ajout{display:flex;gap:9px;flex-wrap:wrap}
.taf-ajout input{flex:1;min-width:200px;border:1px solid #d8d2e6;border-radius:9px;padding:9px 11px;font-size:13.5px}
.taf-ajout select{border:1px solid #d8d2e6;border-radius:9px;padding:9px 11px;font-size:13.5px;background:#fff}
.taf-trouves{display:flex;flex-direction:column;gap:4px;margin-top:9px;max-height:230px;overflow:auto}
.taf-trouve{display:flex;flex-direction:column;gap:1px;text-align:left;background:#fff;border:1px solid #e2e8f0;border-radius:9px;padding:8px 11px;cursor:pointer;font-size:13.5px}
.taf-trouve:hover{border-color:#7c3aed;background:#faf5ff}
.taf-trouve small{color:#94a3b8;font-size:11.5px}
.taf-items{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.taf-item{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e2e8f0;border-radius:9px;padding:8px 11px;font-size:13.5px}
.taf-item-l{flex:1;font-weight:600;color:#1a1430}
.taf-item small{color:#94a3b8;font-size:11.5px}
.taf-item button{background:none;border:0;color:#94a3b8;font-size:15px;cursor:pointer;padding:0 3px}
.taf-item button:hover{color:#dc2626}
.taf-cls{display:flex;flex-wrap:wrap;gap:8px}
.taf-chip{font-size:13px;padding:6px 13px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;cursor:pointer}
.taf-chip.on{background:#ede9fe;border-color:#7c3aed;color:#5b21b6;font-weight:700}
.taf-opts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;align-items:start}
.taf-check{grid-column:1/-1;display:flex;align-items:center;gap:8px;font-size:13.5px;color:#334155;cursor:pointer}
.taf-check input{width:16px;height:16px;cursor:pointer}
.taf-note{margin:10px 0 0;font-size:12.5px;color:#64748b;line-height:1.5}
/* La note du TàF sur 20 — préfixe taf-n20 : `.taf-note` existe déjà (piège N). */
.taf-maj.taf-n20-btn{background:#fef3c7;color:#92400e;border-color:#fcd34d}
.taf-maj.taf-n20-btn:disabled{opacity:.5;cursor:default}
.taf-n20{border:1px solid #fcd34d;background:#fffbeb;border-radius:14px;padding:14px 16px;margin:0 0 16px}
.taf-n20-tete{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.taf-n20-tete h4{margin:0;font-size:16px;color:#78350f}
.taf-n20-outils{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.taf-n20-outils select{padding:8px 10px;border:1px solid #e5e7eb;border-radius:10px;font-size:13px;background:#fff;max-width:100%}
.taf-n20-regle{margin:10px 0 12px;font-size:13px;color:#57534e;line-height:1.5}
.taf-n20-regle p{margin:4px 0}
.taf-n20-regle ul{margin:6px 0 0;padding-left:18px}
.taf-n20-table td:last-child,.taf-n20-table th:last-child{text-align:right}
.taf-n20-note{display:inline-block;min-width:44px;padding:3px 8px;border-radius:8px;text-align:center;font-size:14px}
.taf-n20-ok{background:#dcfce7;color:#166534}
.taf-n20-bas{background:#fee2e2;color:#991b1b}
.taf-n20-pied{margin:10px 0 0;font-size:12.5px;color:#78716c}
.taf-n20-groupe{margin:0 0 14px}
.taf-n20-groupe h5{margin:0 0 6px;font-size:15px;color:#78350f}
.taf-n20-groupe h5 span{font-weight:500;font-size:13px;color:#a16207}
.taf-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}
.taf-ok{background:#fff;border:1px solid #9fe1cb;border-radius:14px;padding:22px}
.taf-ok-t{font-size:18px;font-weight:800;color:#0f6e56;margin-bottom:8px}
.taf-ok p{font-size:13.5px;color:#475569;line-height:1.6}
.taf-ok-code{font-size:13px;color:#64748b}
/* tableau de bord */
.taf-kpis{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.taf-kpi{flex:1;min-width:130px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:13px 16px;display:flex;flex-direction:column;gap:2px}
.taf-kpi b{font-size:24px;color:#5b21b6;line-height:1}
.taf-kpi span{font-size:12.5px;color:#64748b}
.taf-kpi-cl{min-width:220px;gap:8px}
.taf-kpi-cl em{font-style:normal;font-weight:800;font-size:15px;color:#0f172a}
.taf-kpi-cl-l{display:flex;gap:18px;flex-wrap:wrap}
.taf-kpi-cl-l div{display:flex;flex-direction:column;gap:2px}
.taf-grp{margin:0 0 18px}
.taf-grp-t{margin:0 0 7px;font-size:16px;color:#3b0764}
.taf-grp-t span{font-weight:500;font-size:13px;color:#64748b}
.taf-grp-vide{margin:0;font-size:13px;color:#64748b;background:#fff;border:1px dashed #cbd5e1;border-radius:12px;padding:10px 14px}
/* ==== taf-debrief : styles ==== */
/* Débrief / corrigé projeté. Tout en `em` : la racine suit l'écran et le zoom. */
.taf-dbf-btn{background:#ede9fe;border-color:#c4b5fd;color:#4c1d95}
.dbf{position:fixed;inset:0;z-index:9500;background:#fbfaf7;color:#1a1430;display:flex;flex-direction:column;line-height:1.5}
.dbf-barre{display:flex;align-items:center;gap:.6em;padding:.6em 1.2em;background:#2e1065;color:#fff;flex-wrap:wrap}
.dbf-titre{font-weight:800;flex:1 1 12em;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dbf-pos{font-weight:700;opacity:.8;font-variant-numeric:tabular-nums}
.dbf-btn{font:inherit;font-size:.85em;font-weight:700;cursor:pointer;border-radius:.6em;padding:.45em .9em;border:1px solid #d7cdf0;background:#fff;color:#4c1d95}
.dbf-btn:disabled{opacity:.4;cursor:default}
.dbf-barre .dbf-btn{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.3);color:#fff}
.dbf-scene{flex:1;min-height:0;overflow-y:auto;padding:1.4em max(1.4em,6vw) 1.6em;animation:dbf-entre .3s ease both}
@keyframes dbf-entre{from{opacity:0;transform:translateY(.6em)}to{opacity:1;transform:none}}
.dbf-nav{display:flex;align-items:center;gap:.8em;padding:.6em 1.2em;border-top:1px solid #e7e2f0;background:#fff}
.dbf-pts{flex:1;min-width:0;display:flex;gap:.35em;justify-content:center;overflow-x:auto;padding:.3em 0}
.dbf-pt{flex:0 0 auto;width:.7em;height:.7em;border-radius:50%;border:0;padding:0;background:#d7cdf0;cursor:pointer}
.dbf-pt.on{background:#6d28d9;transform:scale(1.3)}
.dbf-nav .dbf-suiv{background:#6d28d9;color:#fff;border-color:#6d28d9}
.dbf-couv{max-width:48em;margin:0 auto;text-align:center;padding-top:1em}
.dbf-couv-sur{font-weight:800;color:#6d28d9;letter-spacing:.04em;text-transform:uppercase;font-size:.9em}
.dbf-couv h1{font-family:'Fraunces',serif;font-size:2.4em;line-height:1.15;margin:.3em 0 .6em}
.dbf-couv-liste{text-align:left;display:inline-block;margin:0 auto;font-size:1.25em;padding-left:1.4em}
.dbf-couv-liste li{margin:.35em 0}
.dbf-couv-liste em{color:#94a3b8;font-size:.8em}
.dbf-aide{margin-top:1.6em;color:#64748b;font-size:.9em}
.dbf-act{display:flex;align-items:center;gap:.5em;color:#6d28d9;font-weight:800;margin-bottom:.3em;flex-wrap:wrap}
.dbf-act-ico{font-size:1.4em}
.dbf-act em{font-style:normal;font-size:.75em;background:#ede9fe;border-radius:.4em;padding:.1em .45em;color:#5b21b6}
.dbf-h2{font-family:'Fraunces',serif;font-size:1.8em;line-height:1.2;margin:.1em 0 .7em}
.dbf-desc{font-size:1.1em;color:#475569;margin:-.3em 0 1em}
.dbf-points{display:grid;grid-template-columns:repeat(auto-fit,minmax(18em,1fr));gap:.9em}
.dbf-point{background:#fff;border:1px solid #e7e2f0;border-left:.35em solid #7c3aed;border-radius:.8em;padding:.8em 1em}
.dbf-point b{display:block;font-size:1.15em;margin-bottom:.25em}
.dbf-point p{margin:0;font-size:1.02em;color:#334155}
.dbf-lecon{margin:.45em 0 0;padding-left:1.1em;font-size:.95em;color:#334155}
.dbf-lecon li{margin:.2em 0}
.dbf-outils{margin:-.3em 0 .7em}
.dbf-exos{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.55em}
.dbf-exo{background:#fff;border:1px solid #e7e2f0;border-radius:.8em;overflow:hidden}
.dbf-exo.on{border-color:#a78bfa}
.dbf-q{display:flex;align-items:flex-start;gap:.7em;width:100%;text-align:left;font:inherit;font-size:1.08em;background:none;border:0;padding:.7em 1em;cursor:pointer;color:inherit}
.dbf-num{flex:0 0 auto;min-width:1.7em;height:1.7em;border-radius:50%;background:#ede9fe;color:#5b21b6;font-weight:800;display:inline-flex;align-items:center;justify-content:center;font-size:.85em}
.dbf-q-t{flex:1;min-width:0}
.dbf-chev{color:#a78bfa;font-size:.8em;padding-top:.2em}
.dbf-rep{padding:0 1em .9em 3.4em}
.dbf-bonne{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:.6em;padding:.45em .8em;font-weight:700;color:#14532d;margin-bottom:.45em}
.dbf-bonne p,.dbf-bonne ul{margin:0}
.dbf-why{margin:0;color:#334155}
.dbf-note{margin-top:1em;background:#fffbeb;border:1px solid #fde68a;border-radius:.8em;padding:.8em 1em}
.dbf-note p{margin:.3em 0 0}
.dbf-bilan{display:grid;grid-template-columns:repeat(auto-fit,minmax(20em,1fr));gap:1em}
.dbf-bilan-act{background:#fff;border:1px solid #e7e2f0;border-radius:.8em;padding:.9em 1.1em}
.dbf-bilan-act b{font-size:1.15em}
.dbf-bilan-act ul{margin:.4em 0 0;padding-left:1.2em}
.dbf-bilan-act li{margin:.25em 0}
.dbf-vide{font-size:1.2em;color:#64748b;background:#fff;border:1px dashed #cbd5e1;border-radius:.8em;padding:1em 1.2em}
.dbf-menu{max-width:980px;margin:0 auto}
.dbf-menu-tete h2{margin:0 0 4px}
.dbf-menu-tete p{margin:0 0 14px;color:#64748b;font-size:14px;line-height:1.5}
.dbf-menu-bloc{background:#fff;border:1px solid #e2e8f0;border-radius:13px;padding:12px 14px;margin-bottom:14px}
.dbf-menu-bloc h3{margin:0 0 8px;font-size:15px}
.dbf-menu-outils{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.dbf-menu-outils input{flex:1 1 240px;min-width:0;font:inherit;padding:9px 12px;border:1px solid #d7cdf0;border-radius:10px}
.dbf-menu-outils select{font:inherit;padding:9px 10px;border:1px solid #d7cdf0;border-radius:10px;max-width:100%}
.dbf-menu-grp h4{margin:12px 0 4px;font-size:14px;color:#3b0764}
.dbf-menu-grp h4 small{font-weight:500;color:#94a3b8}
.dbf-menu-l{display:flex;align-items:center;gap:10px;padding:7px 4px;border-top:1px solid #f1f5f9;flex-wrap:wrap}
.dbf-menu-nom{display:flex;align-items:center;gap:8px;flex:1 1 220px;min-width:0;cursor:pointer}
.dbf-menu-nom small{color:#64748b}
.dbf-menu-code{font-size:11.5px;font-weight:700;background:#ede9fe;color:#5b21b6;border-radius:6px;padding:1px 6px}
.dbf-menu-go{font:inherit;font-size:13px;font-weight:700;cursor:pointer;border-radius:9px;padding:6px 12px;border:1px solid #d7cdf0;background:#fff;color:#5b21b6}
.dbf-menu-sel{position:sticky;bottom:10px;display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:10px}
.dbf-menu-sel button{font:inherit;font-weight:800;cursor:pointer;border:0;border-radius:12px;padding:11px 18px;background:#6d28d9;color:#fff;box-shadow:0 8px 20px -10px rgba(76,29,149,.6)}
.dbf-menu-sel button:disabled{background:#cbd5e1;box-shadow:none;cursor:default}
@media (prefers-reduced-motion: reduce){.dbf-scene{animation:none}}
@media(max-width:640px){.dbf-rep{padding-left:1em}.dbf-points,.dbf-bilan{grid-template-columns:1fr}}
/* ==== taf-debrief : fin styles ==== */
.taf-tw{overflow-x:auto;background:#fff;border:1px solid #e2e8f0;border-radius:13px;padding:4px}
.taf-table{width:100%;border-collapse:collapse;font-size:13px}
.taf-table th{text-align:left;padding:9px 10px;border-bottom:2px solid #e2e8f0;font-size:11.5px;text-transform:uppercase;letter-spacing:.02em;color:#64748b;white-space:nowrap}
.taf-table td{padding:9px 10px;border-bottom:1px solid #f1f5f9;vertical-align:middle}
.taf-table tr.fini{background:#f6fefb}
.taf-el{font-weight:700;color:#1a1430}
.taf-th-exo{text-align:center;cursor:help}
.taf-cell{text-align:center;font-weight:700;font-size:12.5px}
.taf-oui{color:#0f6e56}
.taf-faible{color:#9a6a1a}
.taf-non{color:#cbd5e1}
.taf-jauge{width:78px;height:7px;background:#f1f5f9;border-radius:5px;overflow:hidden;display:block}
.taf-jauge span{display:block;height:100%;background:#7c3aed}
.taf-table .ok{color:#0f6e56}
.taf-table .bof{color:#9a6a1a}
.taf-date{font-size:12px;color:#94a3b8;white-space:nowrap}
.taf-legende{margin:10px 2px 0;font-size:11.5px;color:#94a3b8;line-height:1.9}
.taf-legende b{color:#64748b}
@media(max-width:760px){.taf-opts{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.taf-opts{grid-template-columns:1fr}}

/* Comptes : page pleine largeur, plus une modale de 600 px */
.usersadm{width:100%;max-width:none;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:18px 20px;margin-top:12px}
.ua-tete{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.ua-tete h3{margin:0;flex:1;font-size:19px}
.ua-retour{background:#fff;border:1px solid #e2e8f0;border-radius:9px;padding:7px 13px;font-size:13px;cursor:pointer;color:#475569}
.ua-retour:hover{border-color:#7c3aed;color:#5b21b6}
.ua-msg{background:#f1f5f9;border-radius:9px;padding:8px 12px;font-size:13.5px;color:#334155;margin-bottom:10px}
.ua-new{background:#faf5ff;border:1px solid #e9d5ff;border-radius:12px;padding:12px;margin-bottom:14px}
.ua-new-t{font-weight:800;color:#7c3aed;font-size:14px;margin-bottom:8px}
/* Le formulaire de création respire enfin : 4 colonnes + le bouton. */
.ua-new-grid{display:grid;grid-template-columns:repeat(4,1fr) auto;gap:12px;align-items:end}
@media(max-width:900px){.ua-new-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.ua-new-grid{grid-template-columns:1fr}}
.ua-fld{display:flex;flex-direction:column;gap:3px;flex:1;min-width:120px}
.ua-fld label{font-size:11.5px;font-weight:600;color:#64748b}
.ua-fld input,.ua-fld select{border:1px solid #d8d2e6;border-radius:9px;padding:9px 11px;font-size:13.5px;width:100%;box-sizing:border-box}
.ua-new-grid input,.ua-new-grid select{border:1px solid #d8d2e6;border-radius:9px;padding:9px 11px;font-size:13.5px;width:100%;min-width:0;box-sizing:border-box}
.ua-new-grid .cta.sm{white-space:nowrap}
/* Plus de boîte à défilement de 380 px : la page a la place. */
.ua-list{display:flex;flex-direction:column;gap:8px}
.ua-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e2e8f0;border-radius:11px;padding:10px 12px;background:#fff}
.ua-row.off{background:#fffbeb;border-color:#f59e0b;box-shadow:0 0 0 1px #fde68a}
.ua-main{flex:1;min-width:0}
.ua-id{font-weight:700;font-size:14px;color:#1a1430}
.ua-off{background:#fee2e2;color:#b91c1c;font-size:11px;padding:1px 8px;border-radius:12px;margin-left:8px;font-weight:700}
.ua-role{display:inline-block;font-size:11.5px;font-weight:700;padding:2px 9px;border-radius:20px;margin-top:4px}
.ua-role.r-super-admin{background:#ede9fe;color:#6d28d9}
.ua-role.r-prof-editeur{background:#d1fae5;color:#047857}
.ua-role.r-prof-lecture{background:#f1f5f9;color:#475569}
.ua-edit{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:6px}
.ua-edit select,.ua-edit input{border:1px solid #cbd5e1;border-radius:8px;padding:6px 9px;font-size:13px}
.ua-chk{font-size:12.5px;color:#475569;display:flex;align-items:center;gap:4px}
.ua-tools{display:flex;gap:6px;flex-shrink:0}
.ua-tools button{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:5px 9px;font-size:14px;cursor:pointer}
.ua-tools button:hover{border-color:#7c3aed}
.ua-tools button.del:hover{border-color:#dc2626}
.ua-cls{flex-basis:100%;margin-top:8px;padding-top:8px;border-top:1px dashed #e2e8f0}
.ua-cls-t{font-size:12px;color:#64748b;margin-bottom:5px;font-weight:600}
.ua-cls-list{display:flex;flex-wrap:wrap;gap:6px}
.ua-cls-chip{display:inline-flex;align-items:center;gap:4px;font-size:13px;padding:4px 10px;border:1px solid #e2e8f0;border-radius:999px;background:#fff;cursor:pointer;user-select:none}
.ua-cls-chip.on{background:#ede9fe;border-color:#7c3aed;color:#5b21b6;font-weight:600}
.ua-cls-empty{flex-basis:100%;margin-top:6px;font-size:12px;color:#94a3b8}
.cm{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:12px 14px;margin-bottom:14px}
.cm-t{font-weight:700;font-size:14px;margin-bottom:8px;color:#334155}
.cm-msg{background:#fef3c7;color:#92400e;padding:6px 10px;border-radius:8px;font-size:12.5px;margin-bottom:8px}
.cm-new{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin-bottom:10px}
.cm-list{display:flex;flex-direction:column;gap:5px}
.cm-row{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fff;border:1px solid #e2e8f0;border-radius:9px;padding:6px 10px}
.cm-row.off{opacity:.5}
.cm-nom{font-weight:600;font-size:13.5px}
.cm-aide{font-size:12.5px;color:#64748b;line-height:1.5;margin:-2px 0 12px}
.cm-niv{font:inherit;font-size:12.5px;border:1px solid #e2e8f0;border-radius:8px;padding:4px 8px;background:#fff;color:#1e293b;max-width:170px}
/* Une classe sans niveau se voit : c'est une declaration qui manque, pas un
   defaut d'affichage. */
.cm-niv.vide{border-color:#fbbf24;background:#fffbeb;color:#92400e}
.cl-gest{margin-top:18px;border-top:1px solid #ece8f8;padding-top:12px}
.cl-gest-t{font-weight:800;font-size:13.5px;color:#5a5470;margin-bottom:8px}
.cl-gest-l{display:flex;align-items:center;gap:10px;padding:5px 0;flex-wrap:wrap}
.cl-gest-n{font-weight:700;font-size:13.5px;min-width:150px}
.cl-gest-x{border:1px solid #fecaca;background:#fff;color:#b91c1c;border-radius:8px;
  padding:3px 9px;cursor:pointer;font-size:13px}
.cl-gest-x:hover{background:#fef2f2}
.cl-sup-fond{position:fixed;inset:0;z-index:9500;background:rgba(26,20,48,.45);
  display:grid;place-items:center;padding:18px}
.cl-sup{background:#fff;border-radius:18px;padding:22px;max-width:460px;
  box-shadow:0 30px 60px -20px rgba(80,40,120,.45);text-align:left}
.cl-sup h4{font-size:17px;margin-bottom:8px}
.cl-sup p{font-size:13.5px;color:#5a5470;line-height:1.55;margin-bottom:10px}
.cl-sup-c{color:#1a1430}
.cl-sup input{width:100%;border:1px solid #e2e8f0;border-radius:10px;padding:9px 12px;
  font:inherit;font-size:14px;margin-bottom:14px}
.cl-sup-b{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.cl-sup-go{border:0;border-radius:10px;padding:9px 16px;font:inherit;font-weight:700;
  background:#dc2626;color:#fff;cursor:pointer}
.cl-sup-go:disabled{background:#e5e7eb;color:#9ca3af;cursor:not-allowed}
.cm-an{color:#94a3b8;font-weight:400;font-size:12px}
.cm-tools{display:flex;gap:6px}
.cm-tools button{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:4px 9px;font-size:13px;cursor:pointer}
.cm-tools button.del:hover{border-color:#dc2626}
/* ===== Challenges (Phase 2) ===== */
.chv{padding:4px 0}
.chv-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.chv-sub{font-size:13px;color:#64748b;margin:4px 0 0}
.chv-new{background:linear-gradient(135deg,#f97316,#f59e0b);color:#fff;border:none;border-radius:10px;padding:10px 16px;font-weight:700;cursor:pointer;font-size:14px;white-space:nowrap}
.chv-msg{background:#fef3c7;color:#92400e;padding:8px 12px;border-radius:8px;font-size:13px;margin-bottom:10px}
.chv-empty,.che-empty{font-size:13.5px;color:#94a3b8;padding:14px;text-align:center;background:#f8fafc;border-radius:10px}
.chv-list{display:flex;flex-direction:column;gap:10px}
.chv-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px 14px}
.chv-cardtop{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.chv-cardtitle{display:flex;align-items:center;gap:8px;min-width:0}
.chv-type{font-size:12px;background:#ede9fe;color:#5b21b6;padding:2px 8px;border-radius:6px;font-weight:600;white-space:nowrap}
.chv-titre{font-weight:700;font-size:15px}
.chv-etat{font-size:12px;font-weight:600;padding:2px 9px;border-radius:20px;white-space:nowrap}
.chv-etat.encours{background:#dcfce7;color:#15803d}
.chv-etat.avenir{background:#dbeafe;color:#1e40af}
.chv-etat.termine{background:#f1f5f9;color:#64748b}
.chv-meta{display:flex;flex-wrap:wrap;gap:12px;font-size:12.5px;color:#64748b;margin-bottom:10px}
.chv-public{color:#0e7490;font-weight:600}
.chv-cardact{display:flex;gap:8px;flex-wrap:wrap}
.chv-cardact button{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:6px 12px;font-size:13px;cursor:pointer;font-weight:600}
.chv-cardact button:hover{border-color:#7c3aed}
.chv-cardact button.chv-del:hover{border-color:#dc2626}
/* éditeur */
.che{padding:4px 0;max-width:760px}
.che-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.che-x{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:5px 11px;cursor:pointer;font-size:15px}
.che-types{display:flex;gap:8px;margin-bottom:14px}
.che-type{flex:1;background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:10px;font-weight:600;cursor:pointer;font-size:14px}
.che-type.on{border-color:#7c3aed;background:#ede9fe;color:#5b21b6}
.che-lab{display:block;font-size:12px;font-weight:600;color:#475569;margin:12px 0 5px}
.che-hint-inline{color:#94a3b8;font-weight:400}
.che-inp{width:100%;box-sizing:border-box;border:1px solid #d8d2e6;border-radius:9px;padding:9px 11px;font-size:14px}
.che-dates{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.che-dt{display:flex;gap:6px}
.che-dt input[type=date]{flex:2;min-width:0}
.che-dt input[type=time]{flex:1;min-width:0}
.che-dt input{border:1px solid #d8d2e6;border-radius:9px;padding:9px;font-size:13.5px;box-sizing:border-box}
.che-quick{display:flex;gap:6px;margin-top:8px}
.che-quick button{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;padding:5px 11px;font-size:12px;cursor:pointer}
.che-classes{display:flex;flex-wrap:wrap;gap:6px}
.che-clschip{background:#f8fafc;border:1px solid #e2e8f0;color:#475569;font-size:13px;padding:5px 12px;border-radius:999px;cursor:pointer}
.che-clschip.on{background:#ede9fe;border-color:#7c3aed;color:#5b21b6;font-weight:600}
.che-open{display:flex;align-items:center;gap:7px;font-size:13px;color:#475569;margin-top:10px;cursor:pointer}
.che-note{font-size:12px;color:#64748b;margin:10px 0 0;padding-top:8px;border-top:1px dashed #e2e8f0}
.che-presets{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}
.che-preset{background:#fff;border:1px solid #e2e8f0;border-radius:9px;padding:9px;font-size:13px;cursor:pointer;text-align:left;font-weight:600}
.che-preset.on{border-color:#7c3aed;background:#ede9fe;color:#5b21b6}
.che-presetdesc{font-size:12.5px;color:#64748b;margin:8px 0 0;min-height:16px}
.che-advtog{background:none;border:none;color:#7c3aed;cursor:pointer;font-size:13px;padding:8px 0;font-weight:600}
.che-adv{padding:10px 0 0;border-top:1px solid #f1f5f9}
.che-bonus{display:flex;align-items:center;gap:8px;font-size:13.5px;color:#475569;padding:5px 0;cursor:pointer}
.che-addmodes{display:flex;gap:6px;margin-bottom:10px}
.che-addmode{flex:1;background:#fff;border:1px solid #e2e8f0;border-radius:9px;padding:8px;font-size:13px;cursor:pointer;font-weight:600}
.che-addmode.on{border-color:#7c3aed;background:#ede9fe;color:#5b21b6}
.che-searchwrap{position:relative}
.che-ac{position:absolute;left:0;right:0;top:42px;background:#fff;border:1px solid #cbd5e1;border-radius:10px;z-index:30;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.1)}
.che-acopt{display:flex;align-items:center;gap:8px;padding:9px 12px;cursor:pointer;border-bottom:1px solid #f1f5f9}
.che-acopt:hover{background:#f8fafc}
.che-actag{font-size:10.5px;font-weight:700;padding:2px 7px;border-radius:5px;white-space:nowrap}
.che-actag-mat{background:#dcfce7;color:#166534}
.che-actag-exo{background:#dbeafe;color:#1e40af}
.che-aclbl{font-size:13.5px;font-weight:500;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.che-acsub{font-size:11.5px;color:#94a3b8;white-space:nowrap}
.che-browse{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:12px}
.che-browsesel{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}
.che-browseadd{display:flex;gap:6px;margin-bottom:10px}
.che-browseadd button{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:6px 11px;font-size:12px;cursor:pointer;font-weight:600}
.che-games{display:flex;flex-direction:column;gap:5px;max-height:240px;overflow-y:auto}
.che-game{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:7px 11px}
.che-gamenom{font-size:13.5px}
.che-gameadd{background:#ede9fe;border:none;color:#5b21b6;border-radius:7px;padding:4px 11px;font-size:12px;cursor:pointer;font-weight:600;white-space:nowrap}
.che-listhead{display:flex;align-items:center;justify-content:space-between;margin:14px 0 8px;font-size:13px;font-weight:600}
.che-draghint{font-size:11.5px;color:#94a3b8;font-weight:400}
.che-list{display:flex;flex-direction:column;gap:7px}
.che-row{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #e2e8f0;border-radius:9px;padding:9px 12px;cursor:grab}
.che-grip{color:#cbd5e1;font-size:14px;cursor:grab}
.che-num{width:24px;height:24px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;flex-shrink:0}
.che-rowmain{flex:1;min-width:0}
.che-rowlbl{font-size:14px;font-weight:500}
.che-rowsub{font-size:12px;color:#94a3b8}
.che-rowrm{border:none;background:none;color:#dc2626;cursor:pointer;padding:4px;font-size:15px;opacity:0;transition:opacity .12s}
.che-row:hover .che-rowrm{opacity:1}
.che-err{background:#fee2e2;color:#dc2626;padding:9px 13px;border-radius:9px;font-size:13.5px;margin-top:12px;font-weight:600}
.che-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.che-cancel{background:#fff;border:1px solid #e2e8f0;border-radius:9px;padding:9px 16px;cursor:pointer;font-weight:600}
.che-save{background:linear-gradient(135deg,#f97316,#f59e0b);color:#fff;border:none;border-radius:9px;padding:9px 18px;cursor:pointer;font-weight:700}
.che-save:disabled{opacity:.6}
/* ===== Podium (Brique C2) ===== */
.cpod-bg{position:fixed;inset:0;background:rgba(15,12,41,.72);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:9999;padding:16px}
.cpod{position:relative;background:linear-gradient(160deg,#1e1b4b,#312e81 60%,#4c1d95);color:#fff;border-radius:22px;max-width:560px;width:100%;max-height:92vh;overflow-y:auto;padding:26px 22px;box-shadow:0 20px 60px rgba(0,0,0,.4);text-align:center}
.cpod-x{position:absolute;top:12px;right:14px;background:rgba(255,255,255,.15);border:none;color:#fff;width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:15px}
.cpod-x:hover{background:rgba(255,255,255,.28)}
.cpod-loading,.cpod-msg{padding:40px 10px;font-size:16px;color:#fff}
.cpod-wait{padding:24px 10px}
.cpod-big{font-size:54px;margin-bottom:8px}
.cpod-wait h2{color:#fff;margin:6px 0}
.cpod-wait p{color:#c7d2fe;font-size:14px}
.cpod-header{margin-bottom:18px}
.cpod-tag{display:inline-block;background:rgba(250,204,21,.2);color:#fde68a;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:4px 12px;border-radius:20px;margin-bottom:8px}
.cpod-title{color:#fff;margin:4px 0;font-size:22px}
.cpod-type{color:#c7d2fe;font-size:13px;margin:0}
.cpod-podium{display:flex;align-items:flex-end;justify-content:center;gap:12px;margin:26px 0 6px;min-height:240px}
.cpod-col{display:flex;flex-direction:column;align-items:center;width:140px;opacity:0;transform:translateY(16px);transition:opacity .5s,transform .5s}
.cpod-col.in{opacity:1;transform:translateY(0)}
.cpod-crown{font-size:26px;margin-bottom:2px;animation:cpodBounce 1s ease infinite alternate}
@keyframes cpodBounce{from{transform:translateY(0)}to{transform:translateY(-5px)}}
.cpod-medal{width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:18px;margin-bottom:6px;color:#1e1b4b}
.cpod-medal.gold{background:#fbbf24}
.cpod-medal.silver{background:#e5e7eb}
.cpod-medal.bronze{background:#f0997b}
.cpod-name{font-size:15px;font-weight:700;color:#fff;margin-bottom:2px;text-align:center;word-break:break-word}
.cpod-score{font-size:13px;color:#fde68a;font-weight:700;margin-bottom:2px}
.cpod-sub{font-size:11.5px;color:#c7d2fe;margin-bottom:8px}
.cpod-bar{width:100%;border-radius:12px 12px 0 0;transition:height .9s cubic-bezier(.22,1,.36,1);display:flex;align-items:flex-start;justify-content:center;padding-top:12px;min-height:0}
.cpod-bar.gold{background:linear-gradient(180deg,#fbbf24,#d97706)}
.cpod-bar.silver{background:linear-gradient(180deg,#e5e7eb,#9ca3af)}
.cpod-bar.bronze{background:linear-gradient(180deg,#f0997b,#b45309)}
.cpod-baricon{font-size:26px}
.cpod-hero{margin:18px auto 0;max-width:360px;background:rgba(255,255,255,.1);border:1px solid rgba(250,204,21,.3);border-radius:14px;padding:14px;opacity:0;transform:scale(.9);transition:opacity .5s,transform .5s}
.cpod-hero.in{opacity:1;transform:scale(1)}
.cpod-herolab{font-size:11px;font-weight:700;color:#fde68a;letter-spacing:.05em;text-transform:uppercase;margin-bottom:8px}
.cpod-herobody{display:flex;align-items:center;justify-content:center;gap:12px}
.cpod-heroav{width:46px;height:46px;border-radius:50%;background:rgba(250,204,21,.25);display:flex;align-items:center;justify-content:center;font-size:24px}
.cpod-heroinfo{text-align:left}
.cpod-heroname{font-size:16px;font-weight:700;color:#fff}
.cpod-herosub{font-size:12.5px;color:#c7d2fe}
.cpod-locked{margin-top:18px;font-size:12.5px;color:#a5b4fc}
.cpod-detailwrap{margin-top:18px;text-align:left}
.cpod-detailtog{background:rgba(255,255,255,.12);border:none;color:#fff;border-radius:9px;padding:9px 13px;cursor:pointer;font-size:13px;width:100%;text-align:left;font-weight:600}
.cpod-detail{margin-top:10px;background:rgba(255,255,255,.96);border-radius:10px;padding:6px;max-height:280px;overflow-y:auto}
/* --- Le Labo, version maths : le choix multiple et les animations --- */
/* --- Le repère des exercices graphiques --- */
.mg-cadre{margin:12px 0;background:#fff;border:1px solid #e6e2f4;border-radius:12px;padding:8px 6px}
.mg-svg{width:100%;height:auto;display:block}
.mg-grille{stroke:#e8edf5;stroke-width:1}
.mg-axe{stroke:#475569;stroke-width:1.6}
.mg-grad{fill:#64748b;font-size:9.5px;text-anchor:middle;font-family:inherit}
.mg-gy{text-anchor:end}
.mg-lab{fill:#475569;font-size:10px;font-weight:700;font-family:inherit}
.mg-labx{text-anchor:end}
.mg-ligne{fill:none;stroke:#4f46e5;stroke-width:2.4;stroke-linejoin:round}
.mg-point{fill:#4f46e5}
.mg-barre{fill:#818cf8}
.mg-marque{stroke:#dc2626;stroke-width:1.5;stroke-dasharray:4 3}
.mg-mtxt{fill:#b91c1c;font-size:10px;font-weight:700;font-family:inherit}
/* ⚠️ Le résumé écrit est caché à l'œil, PAS aux lecteurs d'écran : un
   graphique sans texte de remplacement rend l'exercice impossible à un
   élève qui ne voit pas. `display:none` l'aurait retiré à tout le monde. */
.mg-alt{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0}
.dj-choix{display:grid;gap:8px;margin:10px 0}
.dj-choix-b{border:1.5px solid #e2e8f0;background:#fff;border-radius:12px;padding:11px 14px;
  font:inherit;font-size:14.5px;text-align:left;cursor:pointer;color:#1e293b;line-height:1.45}
.dj-choix-b:hover:not(:disabled){border-color:#a5b4fc;background:#f8faff}
.dj-choix-b:disabled{cursor:default}
.dj-choix-b.bon{border-color:#16a34a;background:#f0fdf4;font-weight:700}
.dj-choix-b.rate{border-color:#dc2626;background:#fef2f2}
.pc-bo{margin:2px 0 12px;font-size:12.5px;color:#5a5470;line-height:1.5;
  background:#f8f6fd;border-left:3px solid #c4b5fd;border-radius:0 8px 8px 0;padding:8px 12px}
.pc-bo b{color:#4c1d95}
.ma-anim{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 10px}
.ma-carte{border-radius:12px;padding:9px 18px;font-weight:800;font-size:16px;
  animation:maPop .5s both}
.ma-add{background:#fef3c7;color:#92400e}
.ma-mul{background:#dcfce7;color:#166534;animation-delay:.9s}
.ma-calc{font-family:ui-monospace,Menlo,monospace;font-size:15px;color:#475569;
  animation:maPop .5s .45s both}
.ma-fleche{color:#94a3b8;font-size:19px;line-height:1;animation:maPop .4s .25s both}
.ma-anim-mult .ma-fleche:last-of-type{animation-delay:.7s}
.ma-ligne{display:flex;align-items:center;gap:12px;font-size:15px}
.ma-val{background:#eef2ff;color:#3730a3;border-radius:9px;padding:5px 12px;font-weight:700}
.ma-val.fin{background:#fee2e2;color:#991b1b}
.ma-arc{font-family:ui-monospace,Menlo,monospace;font-size:13.5px;color:#475569;
  border-bottom:2px solid #cbd5e1;padding:0 10px 2px}
.ma-arc.aller{animation:maPop .5s .2s both}
.ma-arc.rev{color:#b45309;border-color:#fbbf24;animation:maPop .5s .9s both}
.ma-ligne.retour{flex-direction:row-reverse;margin-top:6px}
.ma-escalier{display:flex;align-items:flex-end;gap:10px;min-height:150px}
.ma-marche{width:44px;background:linear-gradient(180deg,#a5b4fc,#6366f1);border-radius:7px 7px 0 0;
  position:relative;animation:maMonte .55s both}
.ma-marche.geo{background:linear-gradient(180deg,#fca5a5,#e11d48)}
.ma-marche i{position:absolute;top:-19px;left:0;right:0;text-align:center;font-style:normal;
  font-size:12px;font-weight:700;color:#475569}
.mt-paires{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:6px}
.mt-paires span{background:#eef2ff;color:#3730a3;border-radius:8px;padding:3px 11px;
  font-size:12.5px;font-weight:700;animation:maPop .4s .7s both}
.mt-regle{display:flex;flex-direction:column;gap:4px;align-items:center;margin-top:6px}
.mt-regle span{font-size:12.5px;color:#5a5470;animation:maPop .4s .5s both}
.mt-br{stroke:#94a3b8;stroke-width:2}
.mt-br.on{stroke:#4f46e5;stroke-width:2.6}
.mt-cond{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.mt-c{background:#f0fdf4;color:#166534;border-radius:9px;padding:5px 14px;font-size:13.5px;
  font-weight:700;animation:maPop .45s both}
.ma-mini{width:min(300px,94%);height:auto}
.ma-mini2{width:150px;height:auto}
.ma-tr{stroke:#dc2626;stroke-width:1.8;stroke-dasharray:4 3}
.ma-tr.t1{animation:maTrace .5s .2s both}
.ma-tr.t2{animation:maTrace .5s .75s both}
.ma-somm{fill:#dc2626;animation:maPop .5s .9s both}
.ma-sal{background:#eef2ff;color:#3730a3;border-radius:8px;padding:4px 9px;font-size:12.5px;
  font-weight:700;animation:maPop .4s both}
.ma-sal.med{background:#dbeafe;color:#1e40af;outline:2px solid #3b82f6}
.ma-sal.ext{background:#fee2e2;color:#991b1b}
@keyframes maTrace{from{opacity:0}to{opacity:1}}
.ma-barres{display:flex;gap:3px;width:min(400px,92%)}
.ma-part{flex:1;height:26px;background:#e2e8f0;border-radius:5px;animation:maPop .4s both}
.ma-part.on{background:#818cf8}
.ma-part.b.on{background:#f59e0b}
.ma-part.p{height:20px}
.ma-anim small{font-size:11.5px;color:#64748b;margin-top:-2px}
.ma-nombre{display:flex;align-items:baseline;gap:2px;font-family:ui-monospace,Menlo,monospace;
  font-size:30px;font-weight:800;color:#3730a3}
.ma-zero{animation:maPop .35s both;color:#6366f1}
.ma-bal{display:flex;align-items:center;gap:12px}
.ma-plat{background:#eef2ff;color:#3730a3;border-radius:10px;padding:7px 16px;font-weight:800;
  font-family:ui-monospace,Menlo,monospace;font-size:16px;animation:maPop .45s both}
.ma-plat.fin{background:#dcfce7;color:#166534}
.ma-eq{font-size:19px;color:#94a3b8;font-weight:800}
.ma-bal-op{font-size:12px;color:#b45309;background:#fffbeb;border-radius:99px;padding:3px 12px;
  animation:maPop .4s .25s both}
.ma-barre-faux{font-family:ui-monospace,Menlo,monospace;font-size:14px;color:#b91c1c;
  background:#fef2f2;border-radius:9px;padding:5px 14px;animation:maPop .4s .8s both}
.ma-bande{width:min(420px,90%);height:34px;background:#e2e8f0;border-radius:8px;overflow:hidden}
.ma-bande-a{display:block;height:100%;width:60%;background:#7dd3fc;animation:maLarg .7s .2s both}
.ma-bande-b{display:block;height:100%;width:25%;background:#0369a1;animation:maLarg .7s 1s both}
.ma-bande-lg{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;font-size:12px;color:#64748b}
.ma-bande-lg .c1{color:#0284c7;font-weight:700}
.ma-bande-lg .c2{color:#0369a1;font-weight:700}
.ma-jauges{display:flex;align-items:flex-end;gap:26px;min-height:70px}
.ma-jauge{display:flex;flex-direction:column;align-items:center;gap:5px}
.ma-jauge i{display:block;width:38px;background:linear-gradient(180deg,#a5b4fc,#4f46e5);
  border-radius:6px 6px 0 0;animation:maMonte .6s both}
.ma-jauge b{font-size:13px;color:#3730a3}
.ma-deux-lect{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin-top:4px}
.ma-deux-lect span{border-radius:9px;padding:5px 12px;font-size:13px;font-weight:700}
.ma-deux-lect .l1{background:#fef3c7;color:#92400e;animation:maPop .5s .5s both}
.ma-deux-lect .l2{background:#dbeafe;color:#1e40af;animation:maPop .5s .9s both}
.ma-regle{display:flex;align-items:center;gap:0;min-height:56px}
.ma-reg-b{background:#e2e8f0;color:#475569;border-radius:9px;padding:6px 14px;font-weight:800;
  font-size:15px;display:flex;flex-direction:column;align-items:center;line-height:1.2}
.ma-reg-b small{font-weight:500;font-size:10.5px;opacity:.75}
.ma-reg-b.on{background:#dcfce7;color:#166534;animation:maPop .5s .7s both}
.ma-reg-t{width:70px;height:3px;background:#cbd5e1;position:relative}
.ma-reg-t::after{content:"+ 12 %";position:absolute;top:-20px;left:50%;transform:translateX(-50%);
  font-size:11.5px;font-weight:700;color:#166534;white-space:nowrap;animation:maPop .5s 1.1s both}
.ma-cote{display:flex;gap:26px;flex-wrap:wrap;justify-content:center;text-align:center}
.ma-cote small{display:block;font-size:11px;color:#94a3b8;margin-top:2px}
.ma-marche.pet{width:24px}
.ma-lab{display:block;margin-top:7px;font-size:12.5px;color:#4338ca}
.ma-lab.r{color:#be123c}
@keyframes maLarg{from{width:0}}
.ma-chaine{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:center}
.ma-op{font-family:ui-monospace,Menlo,monospace;font-size:13.5px;color:#475569}
@keyframes maPop{from{opacity:0;transform:translateY(7px) scale(.94)}to{opacity:1;transform:none}}
@keyframes maMonte{from{opacity:0;transform:scaleY(0);transform-origin:bottom}
  to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){
  .ma-carte,.ma-calc,.ma-fleche,.ma-arc,.ma-marche{animation:none !important;opacity:1 !important;transform:none !important}
}
.arc-bascule{margin:0 0 14px}
.arc-onglets{display:inline-flex;gap:4px;background:#f1f5f9;border-radius:11px;padding:3px}
.arc-ong{border:0;background:none;border-radius:9px;padding:6px 14px;font:inherit;font-size:13.5px;
  font-weight:700;color:#64748b;cursor:pointer;display:inline-flex;align-items:center;gap:6px}
.arc-ong.on{background:#fff;color:#0f172a;box-shadow:0 1px 3px rgba(15,23,42,.14)}
.arc-pastille{background:#7c3aed;color:#fff;border-radius:99px;font-size:11px;font-weight:800;
  padding:1px 7px;line-height:1.5}
.arc-mot{margin:7px 0 0;font-size:12.5px;color:#64748b;line-height:1.5;max-width:66ch}
.chv-arc{border-color:#ddd6f3 !important;color:#4c1d95 !important}
.rf.arc{border-color:#ddd6f3;color:#4c1d95}
.cpod-tag.live{background:#7f1d1d;color:#fecaca}
.cpod-live-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 12px;
  background:rgba(255,255,255,.08);border-radius:12px;padding:9px 12px}
.cpod-live-n{flex:1;min-width:160px;color:#e0e7ff;font-size:13px;font-weight:700}
.cpod-live-btn{border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.12);
  color:#fff;border-radius:9px;padding:6px 12px;font:inherit;font-size:13px;cursor:pointer}
.cpod-live-btn:hover{background:rgba(255,255,255,.22)}
.cpod-live-btn.stop{background:#b91c1c;border-color:#ef4444;font-weight:700}
.cpod-live-btn.stop:hover{background:#dc2626}
.cpod-live-btn[disabled]{opacity:.55;cursor:default}
.cpod-live-t{margin:14px 0 6px;font-size:12px;font-weight:800;color:#64748b;
  text-transform:uppercase;letter-spacing:.04em}
.chv-stop{border-color:#fecaca !important;color:#b91c1c !important;font-weight:700}
.cpod-table{width:100%;border-collapse:collapse;font-size:12.5px;color:#1e1b4b}
.cpod-table th{text-align:left;padding:6px 8px;border-bottom:2px solid #e2e8f0;color:#64748b;font-size:11px}
.cpod-table td{padding:6px 8px;border-bottom:1px solid #f1f5f9}
.cpod-table tr:first-child td{font-weight:700}
.chban-wrap{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.chban{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,#fef3c7,#fde68a);border:1px solid #f59e0b;border-radius:12px;padding:12px 14px}
.chban-ico{font-size:24px}
.chban-txt{flex:1;font-size:14px;color:#78350f}
.chban-see{background:#7c3aed;color:#fff;border:none;border-radius:9px;padding:8px 14px;font-weight:700;cursor:pointer;white-space:nowrap}
.chban-see:hover{background:#6d28d9}
.chban-x{background:rgba(120,53,15,.12);border:none;color:#78350f;width:28px;height:28px;border-radius:50%;cursor:pointer;font-size:13px;flex-shrink:0}
/* Menu challenges (élève) */
.chmenu{background:linear-gradient(135deg,#ede9fe,#ddd6fe);border:1px solid #a78bfa;border-radius:16px;padding:16px;margin-bottom:16px}
.chmenu-h{font-size:17px;font-weight:800;color:#5b21b6;margin-bottom:12px}
.chmenu-card{display:flex;align-items:center;gap:12px;background:#fff;border-radius:12px;padding:12px 14px;margin-bottom:8px;border-left:5px solid #c4b5fd}
.chmenu-card:last-child{margin-bottom:0}
.chmenu-card.live{border-left-color:#16a34a}
.chmenu-card.soon{border-left-color:#f59e0b;opacity:.85}
.chmenu-info{flex:1;min-width:0}
.chmenu-titre{font-size:15.5px;font-weight:700;color:#1e1b4b}
.chmenu-meta{font-size:12.5px;color:#64748b;margin-top:2px}
.chmenu-play{background:linear-gradient(135deg,#16a34a,#22c55e);color:#fff;border:none;border-radius:10px;padding:10px 20px;font-weight:800;font-size:15px;cursor:pointer;white-space:nowrap}
.chmenu-play:hover{filter:brightness(1.08)}
.chmenu-soonbadge{background:#fef3c7;color:#92400e;font-size:12px;font-weight:700;padding:5px 12px;border-radius:20px;white-space:nowrap}
/* Enchaînement (ChallengeRun) */
.chrun-big{font-size:52px;text-align:center;margin-bottom:6px}
.chrun-intro .chrun-list{text-align:left;margin:14px 0 18px;padding-left:22px;display:flex;flex-direction:column;gap:6px}
.chrun-list li{font-size:14px;color:#334155}
.chrun-li-mat{font-weight:600}
.chrun-li-game{color:#64748b}
.chrun-quit{display:block;margin:10px auto 0;background:none;border:none;color:#94a3b8;font-size:13px;cursor:pointer;text-decoration:underline}
.chrun-topbar{display:flex;align-items:center;gap:12px;padding:10px 16px;background:#f8fafc;border-bottom:1px solid #e2e8f0}
.chrun-step{font-size:13px;color:#475569;font-weight:600;white-space:nowrap}
/* EVAL-RETOUR : sur téléphone, la barre d'exercice tient dans l'écran. */
.chrun-topbar{flex-wrap:wrap;min-width:0;max-width:100%;box-sizing:border-box}
.chrun-step{min-width:0;flex:1 1 140px;overflow:hidden;text-overflow:ellipsis}
.chrun-topbar>*{max-width:100%}
.chrun-prog{flex:1;height:9px;background:#e2e8f0;border-radius:6px;overflow:hidden;min-width:80px}
.chrun-prog-bar{height:100%;background:linear-gradient(90deg,#7c3aed,#a855f7);border-radius:6px;transition:width .5s}
/* ===== Simulateur bac ===== */
.bacsim{max-width:760px;margin:0 auto;padding:16px}
.bacsim-intro{font-size:14px;color:#475569;line-height:1.5;margin-bottom:16px}
.bacsim-session{background:linear-gradient(135deg,#ede9fe,#ddd6fe);border:2px solid #a78bfa;border-radius:14px;padding:16px;margin-bottom:18px}
.bacsim-session-lab{font-size:15px;font-weight:800;color:#5b21b6;margin-bottom:10px}
.bacsim-session-btns{display:flex;gap:10px;flex-wrap:wrap}
.bacsim-session-btn{flex:1;min-width:160px;background:#fff;border:2px solid #c4b5fd;border-radius:10px;padding:12px;font-size:15px;font-weight:700;color:#5b21b6;cursor:pointer;transition:all .15s}
.bacsim-session-btn.on{background:#7c3aed;color:#fff;border-color:#7c3aed;box-shadow:0 4px 14px rgba(124,58,237,.35)}
.bacsim-session-note{font-size:12.5px;color:#6d28d9;margin:10px 0 0;font-style:italic}
.bacsim-result{background:#fff;border:3px solid;border-radius:16px;padding:18px;text-align:center;margin-bottom:18px;position:sticky;top:8px;z-index:5;box-shadow:0 6px 20px rgba(0,0,0,.08)}
.bacsim-moy{display:flex;align-items:baseline;justify-content:center;gap:6px}
.bacsim-moy-val{font-size:46px;font-weight:900;line-height:1}
.bacsim-moy-sur{font-size:18px;color:#94a3b8;font-weight:700}
.bacsim-ment{display:inline-block;color:#fff;font-weight:800;font-size:16px;padding:6px 18px;border-radius:24px;margin-top:8px}
.bacsim-ment-sub{font-size:12.5px;color:#64748b;margin-top:6px}
.bacsim-prog{position:relative;height:22px;background:#f1f5f9;border-radius:11px;overflow:hidden;margin-top:12px}
.bacsim-prog-bar{position:absolute;left:0;top:0;height:100%;background:linear-gradient(90deg,#7c3aed,#a855f7);border-radius:11px;transition:width .4s}
.bacsim-prog-lab{position:relative;font-size:11.5px;font-weight:700;color:#334155;line-height:22px}
.bacsim-partiel{font-size:12px;color:#7c3aed;margin:10px 0 0}
.bacsim-bloc{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:14px 16px;margin-bottom:14px}
.bacsim-bloc-h{font-size:15.5px;font-weight:800;color:#1e1b4b;margin-bottom:12px}
.bacsim-bloc-tot{font-size:12px;font-weight:500;color:#94a3b8}
.bacsim-row{display:flex;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid #f1f5f9}
.bacsim-row:last-child{border-bottom:none}
.bacsim-nom{flex:1;font-size:13.5px;color:#334155;min-width:0}
.bacsim-coef{font-size:11.5px;font-weight:700;color:#7c3aed;background:#f3e8ff;padding:2px 8px;border-radius:6px;white-space:nowrap}
.bacsim-input{width:56px;border:1.5px solid #cbd5e1;border-radius:8px;padding:7px;font-size:15px;text-align:center;font-weight:700}
.bacsim-input:focus{border-color:#7c3aed;outline:none}
.bacsim-sur{font-size:12px;color:#94a3b8;font-weight:600}
.bacsim-optnote{font-size:12px;color:#ea580c;margin:0 0 10px;background:#fff7ed;padding:7px 10px;border-radius:8px}
.bacsim-optrow{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.bacsim-optnom{flex:1;border:1.5px solid #cbd5e1;border-radius:8px;padding:7px 10px;font-size:13.5px;min-width:0}
.bacsim-optrm{background:none;border:none;cursor:pointer;font-size:15px;padding:4px}
.bacsim-addopt{background:#f3e8ff;color:#7c3aed;border:none;border-radius:8px;padding:8px 14px;font-weight:700;font-size:13px;cursor:pointer}
.bacsim-reptog{background:none;border:none;color:#7c3aed;font-weight:700;font-size:13.5px;cursor:pointer;padding:8px 0;margin-bottom:6px}
.bacsim-rep{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:14px 16px;margin-bottom:14px}
.bacsim-repbar{display:flex;height:26px;border-radius:8px;overflow:hidden;margin-bottom:14px}
.bacsim-repseg{height:100%}
.bacsim-replist{display:flex;flex-direction:column;gap:5px}
.bacsim-repitem{display:flex;align-items:center;gap:8px;font-size:12.5px}
.bacsim-repdot{width:12px;height:12px;border-radius:3px;flex-shrink:0}
.bacsim-repnom{flex:1;color:#334155}
.bacsim-repcoef{color:#94a3b8;font-weight:600;white-space:nowrap}
.bacsim-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;flex-wrap:wrap}
.bacsim-reset{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:8px 14px;font-size:13px;cursor:pointer;color:#dc2626;font-weight:600}
.bacsim-src{font-size:11.5px;color:#94a3b8}
/* ===== Diplôme ===== */
.bacsim-diplzone{margin:14px 0 18px;text-align:center}
.bacsim-diplbtn{background:linear-gradient(135deg,#7c3aed,#9333ea);color:#fff;border:none;border-radius:12px;padding:13px 26px;font-size:16px;font-weight:800;cursor:pointer;box-shadow:0 6px 18px rgba(124,58,237,.3)}
.bacsim-diplbtn:hover{filter:brightness(1.08)}
.dipl-wrap{margin-top:16px}
.dipl{position:relative;border-radius:8px;overflow:hidden;margin:0 auto}
.dipl-land{width:100%;max-width:720px;aspect-ratio:1.414/1;background:radial-gradient(circle at 50% 40%,#fdfbf3,#f8f3e2 65%,#efe6cc);box-shadow:0 8px 30px rgba(0,0,0,.18)}
.dipl-border{position:absolute;inset:14px;border:1.5px solid #c9a94e;border-radius:4px;padding:3% 5%;display:flex;flex-direction:column}
.dipl-border:before{content:"";position:absolute;inset:5px;border:0.5px solid #e0cf94;border-radius:3px;pointer-events:none}
.dipl-laurel{position:absolute;top:42%;left:50%;transform:translate(-50%,-50%);font-size:160px;opacity:.06;pointer-events:none}
.dipl-head1{text-align:center;font-family:Georgia,serif;font-size:12px;font-weight:bold;color:#5b4a1e;letter-spacing:.02em}
.dipl-head2{text-align:center;font-family:Georgia,serif;font-size:13px;font-weight:bold;color:#3f3414;margin-top:2px}
.dipl-title1{text-align:center;font-family:Georgia,serif;font-size:26px;font-weight:bold;color:#2a2208;margin-top:10px}
.dipl-title2{text-align:center;font-family:Georgia,serif;font-size:21px;font-weight:bold;color:#2a2208;margin-top:2px}
.dipl-rule{width:55%;height:1px;background:#c9a94e;margin:8px auto 0}
.dipl-body{font-family:Georgia,serif;font-size:13px;color:#3f3414;line-height:1.55;margin-top:12px;position:relative;z-index:1}
.dipl-body p{margin:3px 0}
.dipl-mention{color:#7a1f1f}
.dipl-pseudo{font-style:italic;color:#6b5a28}
.dipl-foot{margin-top:auto;display:flex;align-items:flex-end;justify-content:space-between;font-family:Georgia,serif;padding-top:10px}
.dipl-fait{font-size:11.5px;color:#3f3414}
.dipl-sign{text-align:center}
.dipl-sign-lab{font-size:10px;color:#5b4a1e}
.dipl-sign-trace{font-size:22px;color:#1c1c3a;line-height:1}
.dipl-sign-name{font-size:13px;font-weight:bold;color:#1c1c3a;font-style:italic}
.dipl-num{position:absolute;bottom:6px;right:16px;font-family:Georgia,serif;font-size:8.5px;color:#6b5a28}
.dipl-note{text-align:center;font-size:11.5px;color:#94a3b8;margin-top:10px}
/* Rattrapage */
.dipl-ratt{background:radial-gradient(circle at 50% 40%,#fff7ed,#fef3e2 65%,#fde9cf);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:6%}
.dipl-ratt-band{background:#ea580c;color:#fff;font-family:Georgia,serif;font-size:30px;font-weight:bold;letter-spacing:.12em;padding:10px 40px;border-radius:8px;transform:rotate(-3deg);box-shadow:0 6px 16px rgba(234,88,12,.35)}
.dipl-ratt-body{margin-top:22px;font-family:Georgia,serif;color:#7c2d12;max-width:80%}
.dipl-ratt-body h3{font-size:20px;margin:6px 0}
.dipl-ratt-body p{font-size:14px;line-height:1.5;margin:8px 0}
.dipl-min{font-size:12px !important;color:#9a6a3a !important}
/* Redoublement */
.dipl-fail{background:radial-gradient(circle at 50% 40%,#fef2f2,#fde8e8 70%,#fbd5d5);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:6%}
.dipl-cachet{border:6px solid #dc2626;color:#dc2626;font-family:Georgia,serif;font-size:38px;font-weight:bold;letter-spacing:.1em;padding:14px 44px;border-radius:10px;transform:rotate(-9deg);opacity:.88;box-shadow:0 0 0 3px rgba(220,38,38,.2)}
.dipl-failmsg{margin-top:26px;font-family:Georgia,serif;color:#7f1d1d;max-width:80%}
.dipl-failmsg h3{font-size:20px;margin:6px 0}
.dipl-failmsg p{font-size:14px;line-height:1.5}
@media(max-width:560px){.dipl-title1{font-size:20px}.dipl-title2{font-size:15px}.dipl-body{font-size:10.5px}.dipl-head2{font-size:10.5px}.dipl-cachet{font-size:24px}.dipl-ratt-band{font-size:20px}}
/* ===== Contact / Doc / Footer / Bug / Messages ===== */
.cmodal-bg{position:fixed;inset:0;background:rgba(15,12,41,.6);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;z-index:10000;padding:16px}
.cmodal{position:relative;background:#fff;border-radius:18px;max-width:520px;width:100%;max-height:90vh;overflow-y:auto;padding:24px}
.docmodal{position:relative;background:#fff;border-radius:18px;max-width:640px;width:100%;max-height:90vh;overflow-y:auto;padding:24px}
.cmodal-x{position:absolute;top:12px;right:14px;background:#f1f5f9;border:none;width:32px;height:32px;border-radius:50%;cursor:pointer;font-size:15px}
.cmodal-x:hover{background:#e2e8f0}
.cmodal-h{margin:0 0 6px;font-size:20px}
.cmodal-sub{font-size:13.5px;color:#64748b;margin:0 0 16px;line-height:1.5} .cmodal-types{display:flex;gap:8px;margin:0 0 14px} .cmodal-type{flex:1;padding:9px 10px;border:1.5px solid #e2e8f0;background:#fff;border-radius:10px;font-size:13.5px;font-weight:700;color:#64748b;cursor:pointer;transition:all .15s} .cmodal-type:hover{border-color:#cbd5e1} .cmodal-type.on{border-color:#6d28d9;background:#f5f3ff;color:#6d28d9}
.cmodal-fields{display:flex;flex-direction:column;gap:10px}
.cmodal-inp{border:1.5px solid #d8d2e6;border-radius:10px;padding:10px 12px;font-size:14px;width:100%;box-sizing:border-box}
.cmodal-row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.cmodal-ta{border:1.5px solid #d8d2e6;border-radius:10px;padding:10px 12px;font-size:14px;width:100%;box-sizing:border-box;resize:vertical;font-family:inherit}
.cmodal-inp:focus,.cmodal-ta:focus{border-color:#7c3aed;outline:none}
.cmodal-err{background:#fee2e2;color:#dc2626;padding:8px 12px;border-radius:9px;font-size:13px;margin-top:10px}
.cmodal-send{margin-top:16px;width:100%;background:linear-gradient(135deg,#7c3aed,#9333ea);color:#fff;border:none;border-radius:11px;padding:12px;font-size:15px;font-weight:700;cursor:pointer}
.cmodal-send:disabled{opacity:.6}
.cmodal-done{text-align:center;padding:20px 0}
.cmodal-done-ico{font-size:48px;margin-bottom:8px}
.cmodal-done h3{margin:4px 0}
.cmodal-done p{color:#64748b;font-size:14px;margin-bottom:16px}
.doc-tabs{display:flex;gap:8px;margin-bottom:14px}
.doc-tab{flex:1;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:10px;font-size:14px;font-weight:600;cursor:pointer}
.doc-tab.on{background:#ede9fe;border-color:#7c3aed;color:#5b21b6}
.doc-body{font-size:14px;color:#334155}
.doc-intro{font-size:14.5px;color:#475569;margin:0 0 14px}
.doc-sec{margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid #f1f5f9}
.doc-sec:last-child{border-bottom:none}
.doc-sec h4{margin:0 0 6px;font-size:15px;color:#1e1b4b}
.doc-sec p{margin:0;line-height:1.6;color:#475569;font-size:13.5px}
.sitefooter{margin-top:32px;padding:18px 16px;border-top:1px solid #e2e8f0;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;text-align:center}
.sf-link{background:none;border:none;color:#7c3aed;font-size:13.5px;font-weight:600;cursor:pointer;padding:4px 6px}
.sf-link:hover{text-decoration:underline}
.sf-sep{color:#cbd5e1}
.sf-copy{flex-basis:100%;text-align:center;font-size:11.5px;color:#94a3b8;margin-top:6px}
.sf-ver{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:10.5px;color:#cbd5e1;letter-spacing:.02em}
.bugfab{position:fixed;right:16px;bottom:16px;z-index:9000;width:42.5px;height:42.5px;border-radius:50%;border:none;background:linear-gradient(135deg,#f97316,#ef4444);color:#fff;font-size:18.7px;cursor:pointer;box-shadow:0 5px 15px rgba(239,68,68,.4)}
.bugfab:hover{transform:scale(1.08)}
.tab-badge{display:inline-block;background:#ef4444;color:#fff;font-size:11px;font-weight:800;min-width:18px;height:18px;line-height:18px;border-radius:9px;padding:0 5px;margin-left:6px;vertical-align:middle}
.msgv{padding:4px 0}
.msgv-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.msgv-filtres{display:flex;gap:6px}
.msgv-fbtn{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:6px 12px;font-size:13px;cursor:pointer;font-weight:600}
.msgv-fbtn.on{background:#ede9fe;border-color:#7c3aed;color:#5b21b6}
.msgv-empty,.msgv-msg{padding:14px;text-align:center;color:#94a3b8;background:#f8fafc;border-radius:10px}
.msgv-list{display:flex;flex-direction:column;gap:10px}
.msgv-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px 14px}
.msgv-card.new{border-left:4px solid #ef4444}
.msgv-top{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.msgv-type{font-size:12px;font-weight:700;padding:2px 9px;border-radius:6px}
.msgv-type.bug{background:#fef2f2;color:#b91c1c}
.msgv-type.contact{background:#eff6ff;color:#1d4ed8}
.msgv-st{font-size:11.5px;font-weight:600;padding:2px 8px;border-radius:20px}
.msgv-st-new{background:#fee2e2;color:#b91c1c}
.msgv-st-lu{background:#f1f5f9;color:#64748b}
.msgv-st-tr{background:#dcfce7;color:#15803d}
.msgv-date{margin-left:auto;font-size:12px;color:#94a3b8}
.msgv-from{font-size:12.5px;color:#7c3aed;font-weight:600;margin-bottom:5px}
.msgv-text{font-size:14px;color:#1e1b4b;line-height:1.5;white-space:pre-wrap}
.msgv-ctx{margin-top:8px;font-size:11px;color:#94a3b8;background:#f8fafc;padding:6px 8px;border-radius:7px;word-break:break-all}
.msgv-acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.msgv-acts button,.msgv-reply{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:6px 12px;font-size:12.5px;cursor:pointer;font-weight:600;text-decoration:none;color:#334155}
.msgv-acts button:hover,.msgv-reply:hover{border-color:#7c3aed}
.msgv-del:hover{border-color:#dc2626 !important}
/* ===== Parcours (sets) ===== */
.pv{padding:4px 0}
.pv-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.pv-sub{margin:4px 0 0;font-size:13px;color:#64748b;max-width:520px}
.pv-new{background:linear-gradient(135deg,#2563eb,#3b82f6);color:#fff;border:none;border-radius:10px;padding:9px 16px;font-size:14px;font-weight:700;cursor:pointer;white-space:nowrap}
.pv-filtres{display:flex;gap:6px;margin-bottom:14px;flex-wrap:wrap}
.pv-fbtn{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:5px 14px;font-size:13px;cursor:pointer;font-weight:600;color:#475569}
.pv-fbtn.on{background:#dbeafe;border-color:#3b82f6;color:#1d4ed8}
.pv-empty,.pv-msg{padding:18px;text-align:center;color:#94a3b8;background:#f8fafc;border-radius:12px}
.pv-list{display:flex;flex-direction:column;gap:10px}
.pv-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:14px 16px}
.pv-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.pv-nom{font-size:15px;font-weight:700;color:#1e293b}
.pv-badge{font-size:11px;font-weight:700;padding:2px 9px;border-radius:20px}
.pv-badge.share{background:#dcfce7;color:#15803d}
.pv-badge.priv{background:#f1f5f9;color:#64748b}
.pv-badge.other{background:#eff6ff;color:#1d4ed8}
.pv-meta{margin-left:auto;font-size:12px;color:#94a3b8}
.pv-desc{margin:0 0 10px;font-size:13px;color:#64748b}
.pv-items{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.pv-chip{background:#f1f5f9;font-size:12px;padding:3px 9px;border-radius:6px;color:#475569}
.pv-chip.more{background:#e0e7ff;color:#4338ca;font-weight:700}
.pv-acts{display:flex;gap:8px;flex-wrap:wrap}
.pv-acts button{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:6px 12px;font-size:12.5px;cursor:pointer;font-weight:600;color:#334155}
.pv-acts button:hover{border-color:#2563eb}
.pv-del:hover{border-color:#dc2626 !important;color:#dc2626}
.pv-tip{margin-top:14px;padding:12px 14px;background:#eff6ff;border-radius:12px;font-size:13px;color:#1d4ed8}
/* éditeur de parcours */
.pv-edit{padding:4px 0;max-width:720px}
.pv-edit-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.pv-back{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:7px 14px;cursor:pointer;font-weight:600;font-size:13px}
.pv-form{display:flex;flex-direction:column;gap:8px}
.pv-lab{font-size:13px;font-weight:700;color:#334155;margin-top:8px}
.pv-inp{border:1.5px solid #d8d2e6;border-radius:10px;padding:9px 12px;font-size:14px;width:100%;box-sizing:border-box}
.pv-inp:focus{border-color:#2563eb;outline:none}
.pv-ta{border:1.5px solid #d8d2e6;border-radius:10px;padding:9px 12px;font-size:14px;width:100%;box-sizing:border-box;resize:vertical;font-family:inherit}
.pv-vis{display:flex;gap:8px;flex-wrap:wrap}
.pv-visbtn{flex:1;min-width:200px;background:#fff;border:1.5px solid #e2e8f0;border-radius:10px;padding:10px;font-size:13.5px;font-weight:600;cursor:pointer;color:#475569}
.pv-visbtn.on{background:#dbeafe;border-color:#2563eb;color:#1d4ed8}
.pv-builder{border:1px solid #e2e8f0;border-radius:12px;padding:12px;background:#fafbff}
.pv-modetabs{display:flex;gap:8px;margin-bottom:10px}
.pv-modetab{flex:1;background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:8px;font-size:13px;font-weight:600;cursor:pointer}
.pv-modetab.on{background:#dbeafe;border-color:#2563eb;color:#1d4ed8}
.pv-matches{display:flex;flex-direction:column;gap:5px;margin-top:8px}
.pv-match{display:flex;flex-direction:column;align-items:flex-start;background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:8px 10px;cursor:pointer;text-align:left}
.pv-match:hover{border-color:#2563eb;background:#f0f6ff}
.pv-match-lab{font-size:13.5px;font-weight:600;color:#1e293b}
.pv-match-sub{font-size:11.5px;color:#94a3b8}
.pv-nores{margin-top:8px;font-size:13px;color:#94a3b8;text-align:center;padding:8px}
.pv-browse-row{display:flex;gap:8px;margin-bottom:8px;flex-wrap:wrap}
.pv-sel{flex:1;min-width:160px;border:1.5px solid #d8d2e6;border-radius:8px;padding:8px;font-size:13.5px}
.pv-addmat{background:#dbeafe;color:#1d4ed8;border:none;border-radius:8px;padding:8px 12px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
.pv-games{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.pv-game{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:6px 10px;font-size:12.5px;cursor:pointer;color:#334155}
.pv-game:hover{border-color:#2563eb;background:#f0f6ff}
.pv-selected{margin-top:12px}
.pv-selected-h{font-size:13px;font-weight:700;color:#334155;margin-bottom:8px}
.pv-selected-empty{font-size:13px;color:#94a3b8;padding:12px;background:#f8fafc;border-radius:8px;text-align:center}
.pv-selitem{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:8px 10px;margin-bottom:6px}
.pv-selitem-main{flex:1;min-width:0}
.pv-selitem-lab{display:block;font-size:13px;font-weight:600;color:#1e293b}
.pv-selitem-sub{display:block;font-size:11px;color:#94a3b8}
.pv-selitem-rm{background:none;border:none;color:#dc2626;cursor:pointer;font-size:15px;padding:4px}
.pv-err{background:#fee2e2;color:#dc2626;padding:8px 12px;border-radius:9px;font-size:13px;margin-top:8px}
.pv-formacts{display:flex;gap:10px;justify-content:flex-end;margin-top:14px}
.pv-cancel{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:10px 18px;font-size:14px;cursor:pointer;font-weight:600}
.pv-save{background:linear-gradient(135deg,#2563eb,#3b82f6);color:#fff;border:none;border-radius:10px;padding:10px 20px;font-size:14px;font-weight:700;cursor:pointer}
.pv-save:disabled{opacity:.6}
/* loader de parcours dans l'éditeur de challenge */
.che-loadset{margin-bottom:10px}
.che-loadset-btn{background:#eef2ff;color:#4338ca;border:1px solid #c7d2fe;border-radius:9px;padding:8px 14px;font-size:13px;font-weight:700;cursor:pointer}
.che-setpanel{margin-top:8px;border:1px solid #e2e8f0;border-radius:10px;padding:10px;background:#fff;display:flex;flex-direction:column;gap:6px;max-height:280px;overflow-y:auto}
.che-setrow{display:flex;flex-direction:column;align-items:flex-start;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:8px 10px;cursor:pointer;text-align:left}
.che-setrow:hover{border-color:#4338ca;background:#eef2ff}
.che-setrow-nom{font-size:13.5px;font-weight:700;color:#1e293b}
.che-setrow-meta{font-size:11.5px;color:#94a3b8}
.che-setrow-tag{font-size:11px}
.che-setloading,.che-setempty{font-size:13px;color:#94a3b8;text-align:center;padding:10px}
.che-setclose{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:7px;font-size:12.5px;cursor:pointer;font-weight:600;margin-top:2px}
.che-matfilter{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-bottom:8px}
.che-matfilter-lab{font-size:12px;color:#64748b;font-weight:600;margin-right:2px}
.che-matchip{background:#eef2ff;color:#4338ca;border:1px solid #c7d2fe;border-radius:14px;padding:3px 9px;font-size:11.5px;font-weight:700;cursor:pointer}
.che-matchip.off{background:#f1f5f9;color:#94a3b8;border-color:#e2e8f0}
.che-matchip-reset{background:none;border:none;color:#2563eb;font-size:11.5px;font-weight:700;cursor:pointer;text-decoration:underline}
/* ===== Remise à niveau (RAN) ===== */
.ran-home{max-width:780px;margin:0 auto;padding:8px 0} .ran-back-btn{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1.5px solid #e2e8f0;color:#475569;font-weight:600;font-size:14px;padding:8px 16px;border-radius:10px;cursor:pointer;margin-bottom:14px;transition:all .15s} .ran-back-btn:hover{border-color:#cbd5e1;background:#f8fafc;color:#1e293b}
.ran-hero{display:flex;gap:16px;align-items:flex-start;background:linear-gradient(135deg,#0d9488,#0f766e);border-radius:16px;padding:22px 24px;color:#fff;margin-bottom:18px}
.ran-hero-ico{font-size:42px;line-height:1}
.ran-hero-t{margin:0 0 6px;font-size:21px;font-weight:800}
.ran-hero-s{margin:0;font-size:14.5px;line-height:1.6;color:#d1fae5}
.ran-progress{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:16px 18px;margin-bottom:18px}
.ran-progress-top{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:700;color:#334155;margin-bottom:10px}
.ran-progress-count{color:#0d9488}
.ran-progress-bar{height:10px;background:#f1f5f9;border-radius:6px;overflow:hidden}
.ran-progress-fill{height:100%;background:linear-gradient(90deg,#0d9488,#14b8a6);border-radius:6px;transition:width .5s}
.ran-progress-note{margin-top:10px;font-size:12.5px;color:#64748b} .ran-mat-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px} .ran-mat-badge{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1.5px solid #e2e8f0;border-radius:20px;padding:5px 12px;font-size:12.5px;font-weight:700;color:#475569} .ran-mat-badge.done{color:#fff} .ran-mat-dot{width:9px;height:9px;border-radius:50%;flex:0 0 auto} .ran-mat-lbl{white-space:nowrap} .ran-mat-frac{font-weight:800;opacity:.85} @media(max-width:600px){ .ran-mat-badge{flex:1 1 calc(50% - 8px);justify-content:center} }
.ran-bloc-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:14px 16px;margin-bottom:12px}
.ran-bloc-head{display:flex;align-items:center;gap:10px;padding-bottom:10px;margin-bottom:10px;border-bottom:2px solid #e2e8f0}
.ran-bloc-dot{width:12px;height:12px;border-radius:50%;flex-shrink:0}
.ran-bloc-nom{font-size:15px;font-weight:800;color:#1e293b;flex:1}
.ran-bloc-count{font-size:13px;font-weight:700;color:#64748b;background:#f1f5f9;padding:2px 10px;border-radius:20px} .ran-bloc-badge{display:inline-flex;align-items:center;gap:8px;background:#f1f5f9;padding:4px 12px;border-radius:20px;margin-left:auto} .ran-bloc-badge.done{color:#fff} .ran-bloc-bar{display:inline-block;width:54px;height:6px;background:#e2e8f0;border-radius:4px;overflow:hidden;vertical-align:middle} .ran-bloc-badge.done .ran-bloc-bar{background:rgba(255,255,255,.35)} .ran-bloc-bar-fill{display:block;height:100%;border-radius:4px;transition:width .3s} .ran-bloc-frac{font-size:13px;font-weight:700;color:#64748b;white-space:nowrap} .ran-bloc-badge.done .ran-bloc-frac{color:#fff}
.ran-cas-list{display:flex;flex-direction:column;gap:6px}
.ran-cas-row{display:flex;align-items:center;gap:10px;padding:8px 4px;flex-wrap:wrap}
.ran-cas-scores{flex-basis:100%;display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 2px 32px}
.ran-cas-score{font-size:11.5px;font-weight:600;color:#64748b;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:20px;padding:2px 10px;white-space:nowrap}
.ran-cas-score.ok{color:#15803d;background:#f0fdf4;border-color:#bbf7d0}
.ran-cas-row.soon{opacity:.55}
.ran-cas-state{font-size:16px;width:22px;text-align:center}
.ran-cas-titre{flex:1;font-size:14px;color:#334155} .ran-cas-titre{flex:1 1 auto;min-width:120px} .ran-cas-btn{white-space:nowrap;flex:0 0 auto} @media(max-width:600px){   .ran-cas-row{gap:8px}   .ran-cas-state{align-self:flex-start;margin-top:2px}   .ran-cas-titre{flex:1 1 100%;flex-basis:calc(100% - 30px);min-width:0;font-size:15px;font-weight:600}   .ran-cas-row .ran-cas-btn,.ran-cas-row .ran-cas-soon{flex:1 1 100%;width:100%;text-align:center;padding:11px 16px;font-size:14px}   .ran-cas-scores{margin-left:0;flex-basis:100%}   .ran-cas-score{flex:1 1 auto;text-align:center} }
.ran-cas-btn{border:none;color:#fff;border-radius:8px;padding:7px 16px;font-size:13px;font-weight:700;cursor:pointer}
.ran-cas-plus{background:linear-gradient(135deg,#7c3aed,#9333ea);white-space:nowrap}
.ran-cas-plus:hover{filter:brightness(1.07)} .ran-cas-suppl{background:linear-gradient(135deg,#0d9488,#0ea5a4);white-space:nowrap;color:#fff} .ran-cas-suppl:hover{filter:brightness(1.07)}
.ran-cas-soon{font-size:12px;color:#94a3b8;font-style:italic}
.ran-foot{margin-top:14px;padding:12px 16px;background:#f0fdfa;border-radius:12px;font-size:13px;color:#0f766e;line-height:1.6}
/* moteur d'un cas */
.ran-cas{max-width:720px;margin:0 auto;padding:8px 0}
.ran-head{display:flex;align-items:center;gap:14px;margin-bottom:14px;flex-wrap:wrap}
.ran-back{background:#fff;border:1px solid #e2e8f0;border-radius:9px;padding:8px 14px;font-size:13px;font-weight:600;cursor:pointer;color:#475569}
.ran-head-titles{flex:1;min-width:160px}
.ran-bloc{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.ran-titre{font-size:17px;font-weight:800;color:#1e293b}
.ran-vtag{margin-left:8px;font-size:11px;font-weight:700;background:#fef3c7;color:#b45309;padding:2px 8px;border-radius:12px;text-transform:uppercase;letter-spacing:.03em}
.ran-vtag.plus{background:#ede9fe;color:#6d28d9}
.ran-plus{background:linear-gradient(135deg,#7c3aed,#9333ea) !important;color:#fff !important}
.ran-plus:hover{filter:brightness(1.07)} .ran-suppl{background:linear-gradient(135deg,#0d9488,#0ea5a4) !important;color:#fff !important} .ran-suppl:hover{filter:brightness(1.07)}
.ran-note{text-align:right;display:flex;flex-direction:column;line-height:1.2}
.ran-note-lab{font-size:11px;color:#94a3b8}
.ran-note-val{font-size:20px;font-weight:800;color:#1e293b}
.ran-note-sub{font-size:10px;color:#cbd5e1}
.ran-segs{display:flex;gap:4px;margin-bottom:18px}
.ran-seg{flex:1;height:6px;border-radius:4px;background:#e2e8f0;transition:background .3s}
.ran-seg.on{background:#0d9488}
.ran-body{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:22px 24px;min-height:280px}
/* situation */
.ran-sit-banner{display:flex;align-items:center;gap:14px;border-radius:12px;padding:14px 18px;color:#fff;margin-bottom:16px}
.ran-sit-ico{font-size:32px}
.ran-sit-ent{font-size:18px;font-weight:800}
.ran-sit-meta{font-size:13px;opacity:.9}
.ran-sit-label{font-size:12px;font-weight:700;color:#94a3b8;text-transform:uppercase;letter-spacing:.04em;margin-bottom:10px}
.ran-sit-p{font-size:15px;line-height:1.7;color:#334155;margin:0 0 12px}
.ran-encarts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:16px 0}
.ran-encart{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px}
.ran-cours-wrap{display:flex;flex-direction:column;gap:14px;margin:18px 0}
.ran-cours-card{background:#eff6ff;border:1px solid #bfdbfe;border-left:4px solid #3b82f6;border-radius:10px;padding:14px 16px}
.ran-cours-titre{font-weight:700;color:#1e40af;margin-bottom:8px;font-size:15px}
.ran-cours-corps{color:#1e293b;line-height:1.65;font-size:14.5px}
.ran-cours-corps strong{color:#1d4ed8}
.ran-methodo{background:#fffbeb;border:1px solid #fde68a;border-left:4px solid #f59e0b;border-radius:12px;padding:18px 20px;margin-bottom:8px}
.ran-methodo-titre{font-weight:800;font-size:17px;margin-bottom:12px}
.ran-methodo-corps{color:#334155;line-height:1.7;font-size:15px}
.ran-methodo-corps strong{color:#b45309}
.ran-encart-lab{font-size:11.5px;color:#64748b;margin-bottom:3px}
.ran-encart-val{font-size:17px;font-weight:800;color:#0f766e}
.ran-sit-go{font-size:13.5px;color:#64748b;margin:14px 0 18px;font-style:italic}
/* question */
.ran-rappel{background:#f0fdfa;border-left:4px solid #14b8a6;border-radius:0 10px 10px 0;padding:12px 16px;margin-bottom:16px}
.ran-illus{margin:0 0 16px;border-radius:12px;overflow:hidden;border:1px solid #e2e8f0;background:#f8fafc;line-height:0}
.ran-illus img{display:block;width:100%;height:auto;max-height:280px;object-fit:cover}
.ran-rappel-lab{font-size:12px;font-weight:700;color:#0d9488;margin-bottom:5px}
.ran-rappel div:last-child{font-size:14px;line-height:1.6;color:#334155}
.ran-enonce{font-size:15.5px;line-height:1.6;color:#1e293b;font-weight:600;margin-bottom:14px}
.ran-opts{display:flex;flex-direction:column;gap:9px}
.ran-opt{text-align:left;background:#fff;border:1.5px solid #e2e8f0;border-radius:10px;padding:12px 15px;font-size:14.5px;cursor:pointer;color:#334155;transition:.15s}
.ran-opt:hover:not(:disabled){border-color:#14b8a6;background:#f0fdfa}
.ran-opt.sel{border-color:#14b8a6}
.ran-opt.correct{border-color:#16a34a;background:#f0fdf4;color:#15803d;font-weight:600}
.ran-opt.wrong{border-color:#dc2626;background:#fef2f2;color:#b91c1c}
.ran-opt.dim{opacity:.5}
.ran-vf{display:flex;gap:12px}
.ran-vfbtn{flex:1;background:#fff;border:1.5px solid #e2e8f0;border-radius:10px;padding:14px;font-size:15px;font-weight:700;cursor:pointer;color:#334155}
.ran-vfbtn:hover:not(:disabled){border-color:#14b8a6}
.ran-vfbtn.sel{border-color:#14b8a6}
.ran-vfbtn.correct{border-color:#16a34a;background:#f0fdf4;color:#15803d}
.ran-vfbtn.wrong{border-color:#dc2626;background:#fef2f2;color:#b91c1c}
.ran-vfbtn.dim{opacity:.5}
.ran-calc{margin-top:4px}
.ran-aide{margin-bottom:10px}
.ran-aide-btn{background:#fef9c3;color:#a16207;border:1px solid #fde68a;border-radius:8px;padding:7px 12px;font-size:13px;font-weight:600;cursor:pointer}
.ran-aide-txt{margin-top:8px;font-size:13.5px;line-height:1.6;color:#475569;background:#fffbeb;border-radius:8px;padding:10px 12px}
.ran-calc-row{display:flex;align-items:center;gap:8px}
.ran-calc-inp{flex:1;border:1.5px solid #d1d5db;border-radius:10px;padding:11px 14px;font-size:15px}
.ran-calc-inp:focus{border-color:#14b8a6;outline:none}
.ran-calc-unit{font-size:15px;font-weight:700;color:#64748b}
.ran-calc-btn{background:#0d9488;color:#fff;border:none;border-radius:10px;padding:11px 18px;font-size:14px;font-weight:700;cursor:pointer}
.ran-calc-btn:disabled{opacity:.5;cursor:default}
/* ===== Mini-calculatrice flottante (réutilisable) ===== */
.mcalc{position:relative;z-index:50}
.mcalc-fab{position:fixed;bottom:196px;right:16px;width:50px;height:50px;border-radius:50%;background:linear-gradient(135deg,#0d9488,#0f766e);color:#fff;border:none;font-size:22px;cursor:pointer;box-shadow:0 6px 18px rgba(13,148,136,.45);z-index:9000;display:flex;align-items:center;justify-content:center;transition:transform .15s}
.mcalc-fab:hover{transform:scale(1.08)}
.mcalc-pad{position:fixed;bottom:196px;right:16px;width:240px;background:#fff;border:1px solid #d1d5db;border-radius:16px;box-shadow:0 12px 36px rgba(0,0,0,.22);z-index:9000;padding:12px;font-family:inherit}
.mcalc-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.mcalc-title{font-size:13px;font-weight:700;color:#0f766e}
.mcalc-close{background:none;border:none;font-size:16px;color:#64748b;cursor:pointer;line-height:1;padding:2px 6px;margin-left:auto}
.mcalc-screen{background:#f1f5f9;border-radius:10px;padding:8px 12px;margin-bottom:10px;min-height:46px;text-align:right}
.mcalc-expr{font-size:19px;font-weight:600;color:#0f172a;word-break:break-all;line-height:1.2}
.mcalc-res{font-size:13px;color:#0d9488;font-weight:600;min-height:16px}
.mcalc-keys{display:flex;flex-direction:column;gap:6px}
.mcalc-row{display:flex;gap:6px}
.mcalc-k{flex:1;height:42px;border:1px solid #e2e8f0;background:#fff;border-radius:9px;font-size:17px;font-weight:600;color:#1e293b;cursor:pointer}
.mcalc-k:hover{background:#f1f5f9}
.mcalc-k.op{background:#ecfeff;color:#0e7490;border-color:#cffafe}
.mcalc-k.op:hover{background:#cffafe}
.mcalc-k.act{background:#f8fafc;color:#64748b;font-size:15px}
.mcalc-k.eq{background:#0d9488;color:#fff;border-color:#0d9488}
.mcalc-k.eq:hover{background:#0f766e}
.mcalc-hint{font-size:10.5px;color:#94a3b8;margin-top:8px;line-height:1.3;text-align:center}
@media (max-width:520px){.mcalc-pad{width:210px}.mcalc-k{height:38px;font-size:16px}}
/* >>> calc-report css : debut */
/* « ↳ Reporter le résultat » : une barre fine au pied de la calculatrice
   (36 px au moins, pour le doigt). Teal dans FloatingCalc, violet dans
   la MiniCalc des évaluations. Sources : outils/calc-report/. */
.mcalc-report{display:block;width:100%;min-height:36px;margin-top:8px;padding:6px 10px;border:1px solid #99f6e4;border-radius:9px;background:#f0fdfa;color:#0f766e;font:inherit;font-size:12.5px;font-weight:700;line-height:1.2;text-align:center;cursor:pointer;transition:background .12s,border-color .12s}
.mcalc-report:hover{background:#ccfbf1}
.mcalc-report:focus-visible{outline:2px solid #0d9488;outline-offset:2px}
.mcalc-report.mcalc-report-vide{background:#f8fafc;border-color:#e2e8f0;border-style:dashed;color:#64748b;font-weight:600;cursor:default}
.mcalc-report.mcalc-report-fait{background:#dcfce7;border-color:#86efac;color:#166534}
.calc .mcalc-report{width:calc(100% - 20px);margin:0 10px 10px;border-color:#d9c2f0;background:#faf7ff;color:#7c3aed}
.calc .mcalc-report:hover{background:#f3eefa}
.calc .mcalc-report.mcalc-report-vide{background:#fff;border-color:#e5dcf3;color:#8b84a0}
.calc .mcalc-report.mcalc-report-fait{background:#dcfce7;border-color:#86efac;color:#166534}
[data-mcalc-cible]{outline:3px solid #2dd4bf !important;outline-offset:2px;box-shadow:0 0 0 6px rgba(45,212,191,.18) !important}
/* >>> calc-report css : fin */
/* >>> francais css : debut */
/* ==================================================================
   FRANÇAIS — l'habillage des cours et de l'entraînement
   ------------------------------------------------------------------
   ⚠️ LE PRÉFIXE `frc-` A ÉTÉ CHERCHÉ LIBRE : 0 occurrence dans
      index.html, alors que `fr-` y apparaît 51 fois et que `.fr` y est
      déclarée nue. Une classe racine courte qui hérite d'une autre,
      c'est le cas `.mg` de §7.58 — et `.frc` n'est jamais déclarée nue
      ici, seulement en préfixe.
================================================================== */

.frc{max-width:760px;margin:0 auto}
.frc-intro{background:#eef2ff;border-left:4px solid #4338ca;border-radius:0 12px 12px 0;padding:14px 16px;margin-bottom:18px}
.frc-intro h3{margin:0 0 6px;font-size:18px;color:#1e1b4b}
.frc-intro p{margin:0 0 6px;font-size:14.5px;line-height:1.55;color:#312e81}
.frc-src{font-size:12.5px !important;color:#4c1d95 !important;opacity:.85}

.frc-grp{margin-bottom:20px}
.frc-grp-t{margin:0 0 10px;font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#4338ca}
.frc-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
.frc-card{display:flex;flex-direction:column;gap:4px;text-align:left;font:inherit;cursor:pointer;background:#fff;border:2px solid #e2e8f0;border-radius:12px;padding:12px 14px;transition:border-color .15s,transform .15s}
.frc-card:hover{border-color:#4338ca;transform:translateY(-2px)}
.frc-card b{font-size:15px;color:#0f172a;line-height:1.35}
.frc-card span{font-size:13px;color:#475569;line-height:1.45}
.frc-card i{font-size:11.5px;font-style:normal;font-weight:700;color:#4338ca}

.frc-lecon{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:16px 18px}
.frc-tete{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.frc-retour{font:inherit;font-size:13px;cursor:pointer;background:none;border:none;color:#4338ca;padding:4px 0}
.frc-cat{font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#64748b}
.frc-titre{margin:0 0 10px;font-size:20px;color:#1e1b4b;line-height:1.3}
.frc-regle{font-size:15px;line-height:1.65;color:#0f172a}
.frc-regle p{margin:0 0 9px}
.frc-regle ul{margin:0 0 10px;padding-left:20px}
.frc-regle li{margin-bottom:5px}
.frc-regle b{color:#1e1b4b}
.frc-astuce{background:#fffbeb;border:1px solid #fcd34d;border-radius:10px;padding:10px 14px;margin:12px 0}
.frc-astuce b{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#b45309;margin-bottom:4px}
.frc-astuce p{margin:0;font-size:14.5px;line-height:1.55}

.frc-cta{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.frc-btn{font:inherit;font-size:15px;font-weight:600;cursor:pointer;padding:10px 18px;border-radius:10px;border:none;background:#4338ca;color:#fff}
.frc-btn:hover{background:#3730a3}
.frc-gros{font-size:16px;padding:12px 22px}
.frc-plat{background:#f1f5f9;color:#475569}
.frc-plat:hover{background:#e2e8f0}

.frc-serie{margin-top:16px;border-top:2px solid #e2e8f0;padding-top:14px}
.frc-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12.5px;color:#64748b;margin-bottom:6px}
.frc-manche{font-weight:700;color:#4338ca}
.frc-pts{font-weight:800;color:#16a34a}
.frc-jauge{height:6px;background:#e2e8f0;border-radius:3px;overflow:hidden;margin-bottom:12px}
.frc-jauge i{display:block;height:100%;background:#4338ca;transition:width .25s}
.frc-q{margin:0 0 12px;font-size:17px;font-weight:600;line-height:1.5;color:#0f172a}
.frc-opts{display:flex;flex-wrap:wrap;gap:8px}
.frc-opt{flex:1 1 120px;min-width:0;font:inherit;font-size:16px;font-weight:600;cursor:pointer;padding:12px 14px;border-radius:10px;border:2px solid #cbd5e1;background:#fff;color:#0f172a;transition:border-color .15s,background .15s}
.frc-opt:hover:enabled{border-color:#4338ca;background:#f5f3ff}
.frc-ok{background:#f0fdf4;border-color:#16a34a;color:#15803d}
.frc-ko{background:#fef2f2;border-color:#dc2626;color:#b91c1c}
/* --- le verdict ACCROCHE A SON BLOC -----------------------------------
   Djamil, le 08/10/2026 : « quand on clique sur les mots qui comportent
   une faute, ils ne se mettent pas en surbrillance ».

   Les classes etaient bien posees par les composants, et les regles
   existaient — mais `.frc-jeton`, `.frc-case` et `.frc-opt` sont
   declarees PLUS BAS dans la feuille, et a specificite egale c'est la
   derniere qui gagne : leur `background:#fff` ecrasait le vert et le
   rouge. Rien ne le signale, ni erreur ni log : le mot cliquait, il ne
   changeait pas de couleur (§7.72).

   Deux classes valent mieux qu'un ordre : accrochee a son bloc, la
   regle gagne quel que soit l'endroit ou on la pose (§7.54). On garde
   `.frc-ok` / `.frc-ko` nues, employees ailleurs, et on AJOUTE. */
.frc-jeton.frc-ok,
.frc-case.frc-ok,
.frc-opt.frc-ok{background:#dcfce7;border-color:#16a34a;color:#14532d}
.frc-jeton.frc-ko,
.frc-case.frc-ko,
.frc-opt.frc-ko{background:#fee2e2;border-color:#dc2626;color:#991b1b}
/* Un mot trouve reste lisible une fois le texte fini, quand tous les
   jetons passent en `disabled` : sans cela le navigateur les delave et
   le vert s'efface au moment meme ou l'eleve relit sa trouvaille. */
.frc-jeton:disabled.frc-ok,
.frc-jeton:disabled.frc-ko{opacity:1}
.frc-jeton.frc-ok{font-weight:700}

/* --- le mot se SIGNALE, et pas seulement en couleur -------------------
   Djamil, le 08/10/2026 : « pour les jeux la chasse a la faute aussi,
   met des animations en couleur quand on clique sur les mauvaises
   reponses. »

   Les deux jeux a jetons — la chasse et la relecture — partagent
   `.frc-jeton` : une seule regle les sert tous les deux (§7.107).

   /!\ DEUX KEYFRAMES PROPRES AU FRANCAIS, et non `evbshake` qui existe
      deja. Reutiliser l'animation d'un autre lot creerait une dependance
      invisible : le jour ou ce lot la retire, celle-ci casse en silence,
      et rien ne relie les deux. Cent caracteres valent mieux qu'un fil
      qu'on ne voit pas.

   /!\ COURTES — 320 ms et 260 ms. Ce qu'on regarde est un mot, pas un
      effet : au-dela, l'animation retarde la lecture de la correction.

   /!\ ET L'ERREUR N'EST PAS SEULE A PARLER. Un signal qui ne se
      declenche qu'a la faute donne a l'ecran l'air de ne punir que :
      la bonne trouvaille a donc son accuse de reception, plus discret
      (§2.3). */
@keyframes frcSecousse{
  0%,100%{transform:translateX(0)}
  18%{transform:translateX(-5px)}
  38%{transform:translateX(4px)}
  58%{transform:translateX(-3px)}
  78%{transform:translateX(2px)}
}
@keyframes frcTrouve{
  0%{transform:scale(1)}
  45%{transform:scale(1.11)}
  100%{transform:scale(1)}
}
.frc-jeton.frc-ko{animation:frcSecousse .32s cubic-bezier(.36,.07,.19,.97) both}
.frc-jeton.frc-ok{animation:frcTrouve .26s cubic-bezier(.22,1,.36,1) both}
.frc-pale{opacity:.5}

/* ⚠️ L'ERREUR SE VOIT — rose pâle, pas gris (§7.118). Un élève qui ne
   sait pas qu'il s'est trompé ne lit pas l'explication. */
.frc-corr{margin-top:12px;background:#fef2f2;border-left:4px solid #f87171;border-radius:0 10px 10px 0;padding:11px 14px}
.frc-corr-ok{background:#f0fdf4;border-left-color:#4ade80}
.frc-corr b{font-size:14.5px}
.frc-corr p{margin:4px 0 10px;font-size:14.5px;line-height:1.55}

.frc-pause,.frc-bilan{margin-top:16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:16px 18px;text-align:center}
.frc-pause b{font-size:16px;color:#1e1b4b}
.frc-pause p{margin:6px 0;font-size:14.5px;color:#475569}
.frc-parfait{color:#15803d !important;font-weight:600}
.frc-score{font-size:34px;font-weight:800;color:#4338ca;line-height:1.1}
.frc-mot{margin:6px 0 0;font-size:15px;color:#334155}
.frc-revoir{text-align:left;background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:10px 14px;margin:12px 0 0}
/* ⚠️ LE `text-transform` NE PORTE QUE SUR LE TITRE DU BLOC, jamais sur
   les `b` des items : sans le `>`, les bonnes reponses listees dans
   « ce qui a coince » s'affichaient en CAPITALES — « MANGE », « VUES »,
   et surtout « A » pour « a ». Sur une matiere qui enseigne l'accent de
   « a » contre « a », mettre la reponse en capitale efface precisement
   la distinction qu'on travaille. Vu a l'ecran, invisible a toute
   mesure. */
.frc-revoir > b{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#b45309;margin-bottom:6px}
.frc-revoir li b{color:#0f172a;font-weight:700}
.frc-revoir ul{margin:0;padding-left:18px}
.frc-revoir li{font-size:14px;line-height:1.5;margin-bottom:4px}
.frc-rev-q{color:#475569}
.frc-bilan .frc-cta{justify-content:center}


/* ---------------- LES TROIS JEUX ---------------- */
.frc-anti{font-size:13.5px;color:#64748b;line-height:1.5;margin:10px 0 0}
.frc-aide{font-size:13.5px;color:#b45309;background:#fffbeb;border-radius:8px;padding:8px 12px;margin:10px 0 0}
.frc-chrono{font-variant-numeric:tabular-nums;font-weight:700;color:#0f766e}

/* La chasse à la faute : les mots de la phrase, cliquables.
   ⚠️ 44 px de haut au doigt : un mot de 13 px ne se touche pas. */
.frc-mots{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 2px}
.frc-jeton{font:inherit;font-size:17px;line-height:1.3;cursor:pointer;padding:9px 11px;min-height:44px;border-radius:9px;border:2px solid #e2e8f0;background:#fff;color:#0f172a;transition:border-color .15s,background .15s}
.frc-jeton:hover:enabled{border-color:#4338ca;background:#f5f3ff}
.frc-jeton:disabled{cursor:default}

/* L'accord en chaîne : la phrase se remplit de gauche à droite. */
.frc-chaine-aide{font-size:14px;color:#475569;margin:0 0 8px}
.frc-chaine-aide b{color:#4338ca}
.frc-chaine{font-size:19px;line-height:2.1;color:#0f172a;margin:0 0 14px}
.frc-donneur{background:#fef08a;border-radius:4px;padding:1px 4px;color:#0f172a}
.frc-case{display:inline-block;min-width:74px;text-align:center;font-weight:700;border-radius:7px;padding:2px 8px;border:2px solid #cbd5e1;background:#fff}
.frc-actif{border-color:#4338ca;border-style:dashed;color:#4338ca}
.frc-vide{border-color:#e2e8f0;color:#cbd5e1}
.frc-trou{font-weight:800;color:#4338ca;padding:0 2px}

/* ---------------- GLOSSAIRE, PROGRAMME, RESSOURCES ---------------- */
.frc-h2{margin:0 0 14px;font-size:22px;color:#1e1b4b}
.frc-rech{width:100%;box-sizing:border-box;font:inherit;font-size:15px;padding:11px 14px;border:2px solid #e2e8f0;border-radius:10px;margin-bottom:18px;background:#fff;color:#0f172a}
.frc-rech:focus{outline:none;border-color:#4338ca}
.frc-vide-msg{font-size:15px;color:#64748b;background:#f8fafc;border-radius:10px;padding:14px 16px}

.frc-gl{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.frc-gl-e{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px 14px}
.frc-gl-m{display:block;font-size:16px;color:#1e1b4b;margin-bottom:4px}
.frc-gl-d{margin:0 0 6px;font-size:14px;line-height:1.5;color:#334155}
.frc-gl-x{margin:0;font-size:14px;line-height:1.5;color:#4338ca;background:#eef2ff;border-radius:7px;padding:6px 10px}
.frc-gl-b{display:block;width:100%;margin-top:8px;font:inherit;font-size:13px;font-weight:600;text-align:left;cursor:pointer;background:none;border:none;color:#4338ca;padding:4px 0}
.frc-gl-b:hover{text-decoration:underline}

.frc-avert{background:#fffbeb;border:1px solid #fcd34d;border-radius:10px;padding:12px 16px;margin-bottom:18px}
.frc-avert b{display:block;font-size:14px;color:#b45309;margin-bottom:5px}
.frc-avert p{margin:0;font-size:14.5px;line-height:1.55;color:#78350f}
.frc-bloc{margin-bottom:14px}
.frc-bloc h4{margin:0 0 5px;font-size:16px;color:#1e1b4b}
.frc-bloc p{margin:0;font-size:14.5px;line-height:1.6;color:#334155}
.frc-th{background:#fff;border:1px solid #e2e8f0;border-left:4px solid #4338ca;border-radius:0 12px 12px 0;padding:12px 16px;margin-bottom:10px}
.frc-th b{font-size:15.5px;color:#1e1b4b}
.frc-th p{margin:4px 0 7px;font-size:14px;line-height:1.5;color:#475569}
.frc-th ul{margin:0;padding-left:20px}
.frc-th li{font-size:13.5px;line-height:1.5;color:#334155}
.frc-comment{padding-left:20px}
.frc-comment li{font-size:14.5px;line-height:1.6;margin-bottom:5px;color:#334155}

.frc-res{background:#fff;border:1px solid #e2e8f0;border-radius:12px;margin-bottom:9px;overflow:hidden}
.frc-res-on{border-color:#4338ca}
.frc-res-t{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;font:inherit;font-size:16px;font-weight:600;text-align:left;cursor:pointer;background:none;border:none;padding:13px 16px;color:#1e1b4b}
.frc-res-t i{font-style:normal;color:#4338ca}
.frc-res-c{padding:0 16px 14px}
.frc-res-d{margin:0 0 8px;font-size:14px;line-height:1.55;color:#475569}
.frc-res-c ul{margin:0;padding-left:20px}
.frc-res-c li{font-size:14.5px;line-height:1.6;margin-bottom:6px;color:#334155}

/* ---------------- LES DEUX ACTIVITES PROGRESSIVES ---------------- */
.frc-etape-mot{font-size:14.5px;line-height:1.55;color:#4338ca;background:#eef2ff;border-radius:9px;padding:9px 13px;margin:0 0 12px}
.frc-copie-t{font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#64748b;margin:0 0 8px}
.frc-copie{line-height:2.2;align-items:baseline}
.frc-copie .frc-jeton{font-size:16px;padding:6px 8px;min-height:36px}
.frc-pct{font-size:16px;color:#0f172a;margin:0 2px 0 -4px}
.frc-corr-l{margin:6px 0 10px;padding-left:20px}
.frc-corr-l li{font-size:14.5px;line-height:1.55;margin-bottom:5px}
/* --- les illustrations : un seul ratio pour les deux cadres ---------
   /!\ AUCUNE max-height ICI, et c'est delibere. Une hauteur plafonnee
      rendrait la bande visible dependante de la largeur de l'ecran :
      au-dela du plafond le cadre s'aplatit et rogne plus haut que la
      bande sur laquelle la luminance a ete mesuree (images.py). Avec un
      aspect-ratio seul, la bande vaut 5/9 a toute largeur. */
.frc-ban{width:100%;aspect-ratio:16/5;object-fit:cover;border-radius:14px;display:block;margin:0 0 14px}
.frc-card-img{width:100%;aspect-ratio:16/5;object-fit:cover;border-radius:9px;display:block;margin:0 0 2px}

@media (max-width:560px){
  .frc-copie{line-height:2.4}
  .frc-copie .frc-jeton{font-size:15px}
  .frc-gl{grid-template-columns:1fr}
  .frc-h2{font-size:19px}
  .frc-chaine{font-size:17px;line-height:2}
  .frc-jeton{font-size:16px}
  .frc-cards{grid-template-columns:1fr}
  .frc-titre{font-size:18px}
  .frc-q{font-size:16px}
  .frc-opt{flex:1 1 100%}
}
@media (prefers-reduced-motion: reduce){
  .frc-card,.frc-opt,.frc-jauge i,.frc-jeton{transition:none}
  /* /!\ UN CONTRE-ORDRE NE PROTEGE QUE CE QU'ON Y INSCRIT :
     une animation posee plus bas lui echappe, et personne ne
     le voit manquer (§7.121). */
  .frc-jeton.frc-ok,.frc-jeton.frc-ko{animation:none}
  .frc-card:hover{transform:none}
}
/* >>> francais css : fin *//* >>> flottants-deplacables css : debut */
/* ==================================================================
   LES BULLES FLOTTANTES SE DÉPLACENT — ce qui s'ajoute à la feuille
   ------------------------------------------------------------------
   ⚠️ `.mcalc-bar`, `.mcalc-close`, `.evsur-bar` ET `.evsur-close` NE SONT
      PAS REDÉCLARÉES ICI : leurs propriétés sont ajoutées aux règles
      existantes par l'injecteur. Une seconde déclaration nue du même nom
      est précisément ce que `collisions-css.py` signale, et une alerte
      qu'on prend l'habitude d'ignorer ne sert plus à rien le jour où
      elle dit vrai (§7.54).

   ⚠️ `.mm-grip` EST PARTAGÉE par les deux bulles — une seule poignée
      dessinée, pas deux qui finiraient par diverger (§7.42). Les deux
      `-drag`, eux, gardent le préfixe de leur bloc : ce sont des
      modificateurs, et un modificateur porte toujours le préfixe de son
      bloc (piège N).
================================================================== */

/* LA POIGNÉE SE VOIT SANS SURVOL : deux traits, la convention
   universelle. Un curseur `grab` ne dit rien à qui ne passe pas la
   souris dessus — et sur un écran tactile, il n'y a pas de survol du
   tout (§7.66). Dessinée en bordures : ni police, ni image, donc rien
   qui puisse manquer sur le PC d'une salle. */
.mm-grip{flex:0 0 14px;width:14px;height:9px;margin-right:7px;border-top:2px solid #cbd5e1;border-bottom:2px solid #cbd5e1;border-radius:1px}

/* Pendant le glissement. Les sélecteurs sont COMPOSÉS : `-drag` n'existe
   jamais seul, donc il ne peut rien hériter. */
.mcalc-pad.mcalc-drag{box-shadow:0 18px 44px rgba(0,0,0,.3)}
.mcalc-pad.mcalc-drag .mcalc-bar{cursor:grabbing}
.evsur-pad.evsur-drag{box-shadow:0 18px 44px rgba(0,0,0,.3)}
.evsur-pad.evsur-drag .evsur-bar{cursor:grabbing}
/* >>> flottants-deplacables css : fin */
.ran-assoc{display:flex;flex-direction:column;gap:9px}
.ran-assoc-row{display:flex;align-items:center;gap:8px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:9px;padding:8px 10px}
.ran-assoc-row.correct{border-color:#16a34a;background:#f0fdf4}
.ran-assoc-row.wrong{border-color:#dc2626;background:#fef2f2}
.ran-assoc-left{flex:1;font-size:13.5px;color:#334155}
.ran-assoc-arrow{color:#94a3b8}
.ran-assoc-sel{border:1.5px solid #d1d5db;border-radius:8px;padding:7px 9px;font-size:13px;min-width:130px}
.ran-assoc-mark{font-weight:800;font-size:16px}
.ran-assoc-row.correct .ran-assoc-mark{color:#16a34a}
.ran-assoc-row.wrong .ran-assoc-mark{color:#dc2626}
.ran-classement{display:flex;flex-direction:column;gap:8px}
.ran-cl-row{display:flex;align-items:center;gap:10px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:9px;padding:9px 12px}
.ran-cl-row.correct{border-color:#16a34a;background:#f0fdf4}
.ran-cl-row.wrong{border-color:#dc2626;background:#fef2f2}
.ran-cl-num{width:24px;height:24px;border-radius:50%;background:#0d9488;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px;flex-shrink:0}
.ran-cl-txt{flex:1;font-size:13.5px;color:#334155}
.ran-cl-moves{display:flex;flex-direction:column;gap:2px}
.ran-cl-moves button{background:#fff;border:1px solid #cbd5e1;border-radius:5px;width:24px;height:18px;font-size:10px;cursor:pointer;padding:0;line-height:1}
.ran-cl-moves button:disabled{opacity:.3}
.ran-exp{border-radius:10px;padding:14px 16px;margin-top:16px;font-size:14px;line-height:1.6}
.ran-exp.good{background:#f0fdf4;color:#15803d}
.ran-exp.bad{background:#fef2f2;color:#b91c1c}
.ran-exp-h{font-weight:800;margin-bottom:5px}
.ran-next-wrap{margin-top:18px;text-align:right}
.ran-next{border:none;color:#fff;border-radius:11px;padding:11px 22px;font-size:15px;font-weight:700;cursor:pointer}
/* auto-éval */
.ran-ae-intro{font-size:15px;line-height:1.7;color:#334155;margin-bottom:18px}
.ran-ae-btns{display:flex;flex-direction:column;gap:11px}
.ran-ae-btn{text-align:left;background:#fff;border:1.5px solid #e2e8f0;border-radius:11px;padding:15px 18px;font-size:15px;cursor:pointer;color:#334155;font-weight:600}
.ran-ae-btn:hover{border-color:#14b8a6;background:#f0fdfa}
/* bilan */
.ran-bilan-note{text-align:center;padding:10px 0}
.ran-bilan-note-lab{font-size:13px;color:#94a3b8}
.ran-bilan-note-val{font-size:46px;font-weight:800;line-height:1.1}
.ran-bilan-note-sub{font-size:12px;color:#cbd5e1}
.ran-bilan-box{border-radius:12px;padding:16px 18px;margin-top:16px;font-size:14.5px;line-height:1.6}
.ran-bilan-box.good{background:#f0fdf4;color:#15803d}
.ran-bilan-box.warn{background:#fffbeb;color:#b45309}
.ran-bilan-box-t{font-weight:800;font-size:16px;margin-bottom:5px}
.ran-bilan-acts{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:18px}
/* ---- LE CABINET : décor 2D, chemises, pièces du dossier ---- */
.cab-hub{max-width:920px;margin:0 auto;padding:6px 0 30px}
.cab-decor{position:relative;border-radius:18px;overflow:hidden;margin-bottom:22px;box-shadow:0 8px 30px rgba(15,23,42,.13)}
.cab-decor img{display:block;width:100%;height:auto}
.cab-decor-txt{position:absolute;left:0;right:0;bottom:0;padding:26px 22px 18px;color:#fff;background:linear-gradient(to top,rgba(12,20,34,.92),rgba(12,20,34,.55) 55%,transparent)}
.cab-decor-t{font-size:26px;font-weight:800;letter-spacing:.3px}
.cab-decor-s{font-size:14px;opacity:.92;margin-top:4px;max-width:640px;line-height:1.5}
.cab-pile{display:grid;gap:12px}
.cab-chemise{display:grid;gap:3px;text-align:left;padding:15px 17px;border-radius:12px;cursor:pointer;
  background:#fffdf7;border:1px solid #e6dfd0;border-left:7px solid #b45309;transition:transform .15s,box-shadow .15s}
.cab-chemise:hover{transform:translateX(3px);box-shadow:0 6px 18px rgba(15,23,42,.10)}
.cab-chemise-num{font-size:11px;font-weight:800;letter-spacing:2px;color:#b45309}
.cab-chemise-th{font-size:12px;color:#78716c}
.cab-chemise-t{font-size:17px;font-weight:750;color:#1c1917}
.cab-chemise-a{font-size:13.5px;color:#57534e;line-height:1.5}
.cab-chemise-n{font-size:11.5px;color:#a8a29e;margin-top:2px}
.cab-chemise-ok{font-size:11.5px;font-weight:700;color:#15803d;margin-top:3px}
.cab-chemise.classe{border-left-color:#15803d;background:#f7fdf9}
.cab-chemise.vide{cursor:default;opacity:.55;border-left-color:#d6d3d1;background:#faf9f7}
.cab-chemise.vide:hover{transform:none;box-shadow:none}

.cab-play{max-width:820px;margin:0 auto;padding:6px 0 34px}
.cab-back{background:none;border:none;color:#78716c;font-size:13.5px;cursor:pointer;padding:4px 0;margin-bottom:8px}
.cab-bandeau{display:flex;gap:12px;align-items:center;font-size:12px;color:#78716c;margin-bottom:4px}
.cab-bandeau-num{font-weight:800;letter-spacing:2px;color:#b45309}
.cab-titre{font-size:25px;font-weight:800;color:#1c1917;margin:2px 0 14px;line-height:1.25}
.cab-illus{border-radius:14px;overflow:hidden;margin:0 0 16px;box-shadow:0 5px 20px rgba(15,23,42,.10)}
.cab-illus img{display:block;width:100%;height:auto}
.cab-sit p{font-size:15.5px;line-height:1.65;color:#292524;margin:0 0 11px}
.cab-notions{font-size:12px;color:#a8a29e;margin:14px 0 18px}
.cab-go{background:#7c2d12;color:#fff;border:none;border-radius:10px;padding:12px 20px;font-size:15px;font-weight:700;cursor:pointer;margin-top:16px}
.cab-go:disabled{background:#d6d3d1;cursor:not-allowed}
.cab-sec{background:none;border:1px solid #d6d3d1;border-radius:10px;padding:11px 18px;font-size:14px;cursor:pointer;margin:16px 0 0 10px}
.cab-acts{display:flex;flex-wrap:wrap;gap:4px}
.cab-fil{display:flex;gap:5px;margin-bottom:16px}
.cab-fil-p{flex:1;height:4px;border-radius:3px;background:#e7e5e4}
.cab-fil-p.on{background:#b45309}
.cab-etape-t{font-size:19px;font-weight:750;color:#1c1917;margin:4px 0 10px}
.cab-consigne,.cab-enonce{font-size:15.5px;line-height:1.6;color:#292524;margin:0 0 14px}
.cab-enonce{font-weight:600}

.cab-docs{display:grid;gap:11px}
.cab-doc{border:1px solid #e7e5e4;border-radius:12px;overflow:hidden;background:#fff}
.cab-doc.sel{border-color:#b45309;box-shadow:0 0 0 2px rgba(180,83,9,.16)}
.cab-doc.bon{border-color:#15803d;box-shadow:0 0 0 2px rgba(21,128,61,.15)}
.cab-doc.faux{border-color:#b91c1c;box-shadow:0 0 0 2px rgba(185,28,28,.13)}
.cab-doc-head{display:grid;grid-template-columns:1fr auto;gap:2px 10px;width:100%;text-align:left;padding:11px 14px;background:#faf9f7;border:none;border-bottom:1px solid #eeece7;cursor:pointer}
.cab-doc-head:disabled{cursor:default}
.cab-doc-type{font-size:10.5px;font-weight:800;letter-spacing:1.3px;color:#a8a29e;text-transform:uppercase;grid-column:1}
.cab-doc-titre{font-size:14.5px;font-weight:700;color:#1c1917;grid-column:1}
.cab-doc-date{font-size:11.5px;color:#a8a29e;grid-column:1}
.cab-doc-case{grid-column:2;grid-row:1/4;align-self:center;width:26px;height:26px;border-radius:7px;border:1.5px solid #d6d3d1;display:flex;align-items:center;justify-content:center;font-weight:800;color:#b45309}
.cab-doc-corps{padding:13px 14px;font-size:13.5px;line-height:1.6;color:#3f3f46}
.cab-doc-why{padding:11px 14px;font-size:13px;line-height:1.55;border-top:1px solid #eeece7}
.cab-doc-why.bon{background:#f0fdf4;color:#166534}
.cab-doc-why.faux{background:#fef2f2;color:#991b1b}
.cab-chat{display:grid;gap:7px}
.cab-bulle{display:grid;gap:2px;max-width:82%;padding:8px 12px;border-radius:14px;font-size:13.5px}
.cab-bulle.ryan{background:#eef2f7;justify-self:start;border-bottom-left-radius:4px}
.cab-bulle.kev{background:#dcf3e4;justify-self:end;border-bottom-right-radius:4px}
.cab-bulle-qui{font-size:10.5px;font-weight:800;color:#78716c;letter-spacing:.6px}
.cab-cgu p{display:flex;gap:10px;margin:0 0 9px}
.cab-art{flex:none;font-weight:800;color:#b45309;font-size:12.5px;padding-top:1px}
.cab-mail-h{font-size:12.5px;color:#57534e;border-bottom:1px dashed #e7e5e4;padding-bottom:8px;margin-bottom:9px}
.cab-bq{width:100%;border-collapse:collapse;font-size:13px}
.cab-bq td{padding:7px 0;border-bottom:1px solid #f5f5f4}
.cab-bq-ref{font-size:11.5px;color:#a8a29e}
.cab-bq-m{text-align:right;font-weight:800;color:#b91c1c;white-space:nowrap}
.cab-bq-solde{font-size:12px;color:#78716c;margin-top:8px}
.cab-valide{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:14px;font-size:13px;color:#78716c}

.cab-opts{display:grid;gap:9px}
.cab-opt{text-align:left;padding:13px 15px;border-radius:11px;border:1.5px solid #e7e5e4;background:#fff;font-size:14.5px;line-height:1.5;cursor:pointer;color:#292524}
.cab-opt:hover:not(:disabled){border-color:#b45309}
.cab-opt.sel{border-color:#b45309;background:#fff7ed}
.cab-opt.bon{border-color:#15803d;background:#f0fdf4;color:#166534;font-weight:600}
.cab-opt.faux{border-color:#b91c1c;background:#fef2f2;color:#991b1b}
.cab-opt.pale{opacity:.5}
.cab-exp{margin-top:15px;padding:14px 16px;border-radius:11px;background:#fffbeb;border:1px solid #fde68a;font-size:14px;line-height:1.62;color:#78350f}
.cab-syl{margin:0 0 18px;padding:14px;border-radius:12px;background:#fafaf9;border:1px solid #eeece7}
.cab-syl-l{font-size:12.5px;font-weight:800;letter-spacing:.6px;color:#b45309;margin-bottom:9px;text-transform:uppercase}
.cab-syl .cab-opt{margin-bottom:8px;width:100%}
.cab-syl-why{font-size:13px;line-height:1.55;color:#44403c;background:#fff;border-radius:9px;padding:11px 13px;margin-top:4px}
.cab-corrige{padding:18px 20px;border-radius:14px;background:#0c1422;color:#e7e5e4;font-size:14.5px;line-height:1.7}
.cab-corrige u{text-decoration:none;background:rgba(180,83,9,.4);padding:1px 5px;border-radius:4px;font-style:normal}
.cab-corrige em{color:#fbbf24;font-style:normal}
.cab-detail{margin:0 0 15px}
.cab-detail-btn{background:#f0fdfa;border:1px solid #99f6e4;border-radius:10px;padding:10px 15px;font-size:14px;font-weight:650;color:#0f766e;cursor:pointer}
.cab-detail-corps{margin-top:9px;padding:14px 16px;border-radius:11px;background:#f0fdfa;border:1px solid #ccfbf1;font-size:14px;line-height:1.6;color:#134e4a}
.cab-detail-corps p{margin:0 0 11px}
.cab-mini-q{font-weight:700;margin-bottom:8px;font-size:13.5px}
.cab-mini-o{display:block;width:100%;text-align:left;margin-bottom:6px;padding:9px 12px;border-radius:9px;border:1px solid #99f6e4;background:#fff;font-size:13.5px;cursor:pointer}
.cab-mini-o.bon{border-color:#15803d;background:#f0fdf4;font-weight:650}
.cab-mini-o.faux{border-color:#b91c1c;background:#fef2f2}
.cab-mini-o.pale{opacity:.55}
.cab-mini-why{font-size:13px;margin-top:7px;color:#134e4a}
.cab-mini-note{font-size:11.5px;color:#5eead4;margin-top:5px}

.cab-copie{background:#fffdf7;border:1px solid #e6dfd0;border-left:5px solid #b45309;border-radius:10px;padding:15px 17px;margin:0 0 18px}
.cab-copie-t{font-size:11.5px;font-weight:800;letter-spacing:1.4px;color:#b45309;text-transform:uppercase;margin-bottom:9px}
.cab-copie-vide{font-size:13.5px;color:#a8a29e;font-style:italic;margin:0}
.cab-copie-p{font-size:14.5px;line-height:1.72;color:#292524;margin:0 0 9px}
.cab-copie-c{background:rgba(180,83,9,.18);padding:1px 6px;border-radius:4px;font-weight:700}
.cab-palette-l{font-size:13px;color:#78716c;margin-bottom:9px;width:100%}
.cab-palette{margin-bottom:14px;display:flex;flex-wrap:wrap;gap:8px}
.cab-conn{padding:9px 15px;border-radius:999px;border:1.5px solid #d6d3d1;background:#fff;font-size:14px;font-weight:650;color:#44403c;cursor:pointer}
.cab-conn:hover{border-color:#b45309;color:#b45309}
.cab-conn-f{padding:12px 15px;border-radius:10px;font-size:13.5px;line-height:1.6;margin-bottom:13px}
.cab-conn-f.bon{background:#f0fdf4;color:#166534;border:1px solid #bbf7d0}
.cab-conn-f.faux{background:#fffbeb;color:#78350f;border:1px solid #fde68a}
.cab-opt-c{font-weight:800;color:#b45309}

.cab-barres{background:#fff;border:1px solid #e7e5e4;border-radius:14px;padding:18px 20px;margin:0 0 18px;display:grid;gap:13px}
.cab-barre{display:grid;grid-template-columns:1fr 2fr auto;gap:14px;align-items:center}
.cab-barre-l{font-size:13.5px;color:#44403c;line-height:1.35}
.cab-barre-j{height:9px;border-radius:6px;background:#eeece7;overflow:hidden}
.cab-barre-r{display:block;height:100%;border-radius:6px;background:#c8a44c;transition:width .6s cubic-bezier(.4,0,.2,1)}
.cab-barre-r.ok{background:#15803d}
.cab-barre-p{font-size:15px;font-weight:800;color:#1c1917;min-width:44px;text-align:right}
.cab-mentor{background:#0c1422;color:#e7e5e4;border-radius:14px;padding:17px 20px;margin:0 0 18px}
.cab-mentor-t{color:#fbbf24;font-weight:800;font-size:14.5px;margin-bottom:9px}
.cab-mentor p{font-size:14px;line-height:1.65;margin:0 0 9px}
.cab-mentor p:last-child{margin-bottom:0}
.cab-mentor b{color:#fbbf24}
@media(max-width:560px){.cab-barre{grid-template-columns:1fr auto;gap:4px 10px}.cab-barre-j{grid-column:1/3;order:3}}

.cab-juge{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid #e7e5e4;border-radius:14px;padding:14px 18px;margin:0 0 16px}
.cab-juge-img{width:64px;height:64px;border-radius:12px;flex:none;object-fit:cover}
.cab-juge-d{flex:1}
.cab-juge-l{font-size:12.5px;color:#78716c;margin-bottom:6px}
.cab-juge-j{height:11px;border-radius:7px;background:#eeece7;overflow:hidden}
.cab-juge-r{height:100%;border-radius:7px;transition:width .7s cubic-bezier(.4,0,.2,1);background:#c8a44c}
.cab-juge-r.sceptique{background:#b91c1c}
.cab-juge-r.convaincu{background:#15803d}
.cab-juge-p{font-size:21px;font-weight:800;color:#1c1917;min-width:56px;text-align:right}
.cab-adverse{background:#fef2f2;border:1.5px solid #fecaca;border-radius:12px;padding:14px 17px;margin:0 0 14px;font-size:14.5px;line-height:1.6;color:#7f1d1d}
.cab-adverse-q{font-size:11.5px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:#b91c1c;margin-bottom:7px}
.cab-etiq{display:flex;flex-wrap:wrap;gap:9px;background:#faf9f7;border:1px solid #eeece7;border-radius:14px;padding:15px;margin:0 0 16px}
.cab-etiquette{padding:9px 14px;border-radius:9px;border:1px solid #e6dfd0;background:#fffdf7;font-size:13.5px;color:#292524;cursor:pointer;text-align:left;box-shadow:0 1px 2px rgba(15,23,42,.06)}
.cab-etiquette:hover{border-color:#b45309}
.cab-etiquette.main{border-color:#b45309;background:#fff7ed;box-shadow:0 0 0 2px rgba(180,83,9,.2)}
.cab-zones{display:grid;gap:12px}
.cab-zone{text-align:left;width:100%;border:2px dashed #d6d3d1;border-radius:14px;padding:14px 16px;background:#fff;cursor:default;min-height:76px;display:block}
.cab-zone.vise{border-color:#b45309;background:#fffbf5;cursor:pointer}
.cab-zone-l{display:block;font-size:11.5px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:#a8a29e;margin-bottom:9px}
.cab-zone-c{display:flex;flex-wrap:wrap;gap:7px}
.cab-posee{padding:7px 12px;border-radius:8px;background:#f0fdf4;border:1px solid #bbf7d0;color:#166534;font-size:13px}

/* ---- LA SÉANCE de Découverte ---- */

/* Illustration en tête d'une carte de notion (Découverte) */
.nillus{margin:-14px -14px 12px;border-radius:12px 12px 0 0;overflow:hidden;background:#faf7f0}
.nillus img{display:block;width:100%;height:auto}
.sea-wrap{max-width:860px;margin:0 auto}
.sea-quit{background:none;border:none;color:#78716c;font-size:13.5px;cursor:pointer;padding:4px 0;margin-bottom:6px}
.sea-head{background:#f0fdfa;border:1px solid #ccfbf1;border-radius:14px;padding:14px 18px;margin-bottom:16px}
.sea-titre{font-size:17px;font-weight:800;color:#0f766e;margin-bottom:9px}
.sea-barre{display:flex;gap:5px;margin-bottom:7px}
.sea-seg{flex:1;height:5px;border-radius:3px;background:#ccfbf1}
.sea-seg.fait{background:#0d9488}
.sea-seg.en-cours{background:#5eead4}
.sea-etape{font-size:12.5px;color:#0f766e}
.sea-intro{background:#fff;border:1px solid #e7e5e4;border-radius:16px;padding:26px 28px;text-align:center}
.sea-intro-t{font-size:25px;font-weight:800;color:#0f766e;margin-bottom:10px}
.sea-fil{font-size:15.5px;line-height:1.65;color:#292524;max-width:620px;margin:0 auto 18px}
.sea-liste{display:inline-block;text-align:left;margin:0 0 18px;padding-left:22px;color:#44403c;font-size:14.5px;line-height:2}
.sea-note{font-size:12.5px;color:#a8a29e;margin-bottom:18px}
.sea-pont{background:#fff;border:1px solid #e7e5e4;border-radius:16px;padding:24px 26px;text-align:center}
.sea-pont-t{font-size:20px;font-weight:800;color:#0f766e;margin-bottom:12px}
.sea-pont p{font-size:15.5px;line-height:1.65;color:#292524;max-width:620px;margin:0 auto 14px}
.sea-avant{background:#f0fdfa;border-radius:10px;padding:13px 16px;font-size:14.5px!important;color:#134e4a!important}
.sea-bilan{background:#fff;border:1px solid #e7e5e4;border-radius:16px;padding:26px 28px;text-align:center}
.sea-bilan-t{font-size:25px;font-weight:800;color:#0f766e;margin-bottom:10px}
.sea-barres{display:grid;gap:12px;margin:20px 0;text-align:left}
.sea-b{display:grid;grid-template-columns:1fr 2fr auto;gap:14px;align-items:center}
.sea-b-l{font-size:13.5px;color:#44403c}
.sea-b-j{height:9px;border-radius:6px;background:#eeece7;overflow:hidden}
.sea-b-r{display:block;height:100%;border-radius:6px;background:#f59e0b;transition:width .6s cubic-bezier(.4,0,.2,1)}
.sea-b-r.ok{background:#0d9488}
.sea-b-p{font-size:15px;font-weight:800;color:#1c1917;min-width:44px;text-align:right}
.sea-mentor{background:#0c1422;color:#e7e5e4;border-radius:14px;padding:17px 20px;margin:0 0 18px;text-align:left}
.sea-mentor-t{color:#5eead4;font-weight:800;font-size:14.5px;margin-bottom:9px}
.sea-mentor p{font-size:14px;line-height:1.65;margin:0 0 9px}
.sea-mentor p:last-child{margin-bottom:0}
.sea-mentor b{color:#5eead4}
.sea-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
@media(max-width:560px){.sea-b{grid-template-columns:1fr auto}.sea-b-j{grid-column:1/3;order:3}}
.cab-note{text-align:center;margin:18px 0}
.cab-note-v{font-size:46px;font-weight:800;color:#7c2d12;line-height:1.1}
.cab-note-s{font-size:12px;color:#a8a29e}
.cab-bilan{padding:16px 18px;border-radius:12px;background:#f0fdf4;color:#166534;font-size:15px;line-height:1.65}
@media(max-width:620px){.cab-titre{font-size:21px}.cab-decor-t{font-size:20px}.cab-corrige{padding:14px}}

.ran-sec-btn{background:#fff;border:1px solid #e2e8f0;border-radius:11px;padding:11px 18px;font-size:14px;cursor:pointer;font-weight:600;color:#475569}
/* Bandeaux globaux en-tête / pied (5D) */
.gband{margin:0 0 14px}
.gband-footer{margin:18px 0 0;border-top:1px solid #ece7f7;padding-top:12px}
.gband-content{}
.gband-admin{display:flex;align-items:center;gap:8px;background:#f1eefb;border:1px dashed #c9b8ee;border-radius:10px;padding:6px 10px;font-size:12.5px;color:#6d28d9;margin-top:6px}
.gband-admin>span{font-weight:700;flex:1}
.gband-admin button{background:#7c3aed;color:#fff;border:none;border-radius:8px;padding:5px 11px;font-size:12.5px;font-weight:700;cursor:pointer}
.gband-admin button.gband-rm{background:#fff;color:#dc2626;border:1px solid #fecaca}
.gband-editing{background:#faf9ff;border:1px solid #e9d5ff;border-radius:12px;padding:10px;margin-bottom:14px}
.adm-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:linear-gradient(135deg,#0f172a,#1e293b);color:#e2e8f0;border-radius:14px;padding:11px 15px;margin-bottom:14px;box-shadow:0 16px 36px -22px rgba(15,23,42,.7)}
.adm-bar-t{font-weight:800;font-size:15px}
.adm-bar-h{font-size:12.5px;color:#94a3b8;flex:1;min-width:160px}
.adm-save{background:#f59e0b;color:#1f2937;border:none;border-radius:10px;padding:9px 14px;font-weight:800;font-size:13.5px;cursor:pointer;transition:.18s}
.adm-save:hover{filter:brightness(1.08);transform:translateY(-1px)}
.adm-ok{color:#5eead4;font-weight:700;font-size:13px}
.gcard.adm-edit{cursor:grab;border:2px dashed #94a3b8;position:relative}
.gcard.adm-edit:active{cursor:grabbing}
.gcard.adm-hidden{opacity:.45;filter:grayscale(.6)}
.adm-handle{display:flex;align-items:center;gap:6px;font-size:12px;color:#64748b;font-weight:700;margin-bottom:6px;letter-spacing:1px}
.adm-handle-txt{margin-left:2px}
.adm-move{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:2px 8px;font-size:13px;font-weight:800;cursor:pointer;color:#475569;line-height:1.2}
.adm-move:hover{border-color:#b91c1c;color:#b91c1c}
.adm-eye{position:absolute;top:8px;right:8px;background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:4px 9px;font-size:11.5px;font-weight:700;cursor:pointer;color:#475569}
.adm-eye:hover{border-color:#0d9488;color:#0d9488}
/* Séparateurs de catégorie dans la liste des jeux */
.gsep{grid-column:1/-1;display:flex;align-items:center;gap:14px;margin:6px 0 2px;padding:2px 0}
.gsep-line{flex:1;height:2px;border-radius:2px;background:linear-gradient(90deg,transparent,#cbd5e1 30%,#cbd5e1 70%,transparent)}
.gsep-title{font-family:'Fraunces',serif;font-weight:800;font-size:16px;color:#475569;white-space:nowrap;padding:2px 6px}
.gsep.adm-edit{cursor:grab;border:2px dashed #cbd5e1;border-radius:12px;padding:8px 10px;background:#f8fafc}
.gsep.adm-edit:active{cursor:grabbing}
.gsep-tools{display:flex;gap:6px;flex-shrink:0}
.gsep-tools button{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:4px 8px;font-size:13px;cursor:pointer}
.gsep-tools button:hover{border-color:#0d9488}
.adm-addsep{background:#2563eb;color:#fff;border:none;border-radius:10px;padding:9px 13px;font-weight:800;font-size:13px;cursor:pointer;transition:.18s}
.adm-addsep:hover{filter:brightness(1.1);transform:translateY(-1px)}
.gsep-end{grid-column:1/-1;text-align:center;color:#94a3b8;font-size:13px;font-weight:700;border:2px dashed #cbd5e1;border-radius:12px;padding:12px;background:#f8fafc}
.mat-admbar{max-width:1100px;margin:0 auto 14px}
.mat-hdr-edit{margin-top:10px;background:#0d9488;color:#fff;border:none;border-radius:10px;padding:8px 14px;font-weight:700;font-size:13px;cursor:pointer}
.mat-card-wrap{position:relative}
.mat-card-wrap.adm-edit{outline:2px dashed #c9b8ee;outline-offset:3px;border-radius:18px}
.mat-card-wrap.adm-hidden{opacity:.5}
.mat-tools{position:absolute;top:6px;right:6px;z-index:3;display:flex;gap:5px;background:rgba(255,255,255,.95);border-radius:9px;padding:3px 5px;box-shadow:0 4px 12px -6px rgba(0,0,0,.3)}
.mat-tools button{background:#fff;border:1px solid #e2e8f0;border-radius:7px;padding:3px 7px;font-size:13px;cursor:pointer}
.mat-tools button:hover{border-color:#7c3aed}
.mat-drag{cursor:grab;font-size:15px;color:#94a3b8;padding:2px 4px}
.mat-cardedit{position:absolute;top:40px;right:6px;left:6px;z-index:4;background:#fff;border:1px solid #e9d5ff;border-radius:12px;padding:10px;box-shadow:0 12px 30px -10px rgba(0,0,0,.35);text-align:left}
.mat-cardedit label{display:block;font-size:12px;font-weight:700;color:#64748b;margin:6px 0 3px}
.mat-cardedit input,.mat-cardedit textarea{width:100%;border:1px solid #d8d2e6;border-radius:8px;padding:8px 10px;font-size:13.5px}
.mat-sep{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:10px;margin:6px 0;padding:6px 0}
.mat-sep-t{font-weight:800;font-size:17px;color:#1a1430;background:#fff;border-radius:20px;padding:6px 18px;box-shadow:0 4px 14px -8px rgba(0,0,0,.3)}
.mat-sep.adm-edit{outline:2px dashed #cbd5e1;outline-offset:2px;border-radius:12px}
.mat-sep-tools{display:flex;gap:5px}
.mat-sep-tools button{background:#fff;border:1px solid #e2e8f0;border-radius:7px;padding:4px 8px;font-size:13px;cursor:pointer}
.mat-sep-end{color:#94a3b8;font-size:13px;font-weight:700;border:2px dashed #cbd5e1;border-radius:12px;padding:12px;background:#f8fafc}
.ep-edit-screen{max-width:1100px;margin:0 auto;padding:10px}
.ep-edit-screen .adm-bar{margin-bottom:0}
/* Socle progression : barre XP + badges */
.xpbar-wrap{max-width:760px;margin:0 auto 18px;background:#fff;border:1px solid #ece7f7;border-radius:16px;padding:14px 18px;box-shadow:0 10px 30px -18px rgba(80,40,120,.3)}
.xpbar-top{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.xpbar-lvl{font-size:15px;color:#1a1430}
.xpbar-xp{font-size:13px;color:#7c6f95}
.xpbar-track{height:14px;background:#efeaf9;border-radius:10px;overflow:hidden}
.xpbar-fill{height:100%;background:linear-gradient(90deg,#f59e0b,#ef4444,#db2777);border-radius:10px;transition:width .6s cubic-bezier(.4,1.4,.5,1)}
.xpbar-foot{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px;margin-top:8px;font-size:12.5px;color:#7c6f95}
.xpbar-badges{background:none;border:none;color:#7c3aed;font-weight:700;font-size:12.5px;cursor:pointer}
.xpbar-badges:hover{text-decoration:underline}
.badges-modal{max-width:600px;width:94%}
.badges-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;max-height:420px;overflow:auto;padding:4px}
.badge-card{border:1px solid #e2e8f0;border-radius:12px;padding:12px 10px;text-align:center;background:#f8fafc;opacity:.55;filter:grayscale(.6)}
.badge-card.on{opacity:1;filter:none;background:#fff;border-color:#fde68a;box-shadow:0 6px 18px -10px rgba(245,158,11,.5)}
.badge-emoji{font-size:30px;line-height:1}
.badge-nom{font-weight:800;font-size:13.5px;color:#1a1430;margin-top:6px}
.badge-desc{font-size:11.5px;color:#64748b;margin-top:3px;line-height:1.35}
/* ===== Éditeur de blocs (Étape 4A) ===== */
.blk-adminbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:linear-gradient(135deg,#0f172a,#1e293b);color:#e2e8f0;border-radius:12px;padding:10px 14px;margin-bottom:14px}
.blk-adminbar>span:first-child{font-weight:800}
.blk-edit-btn{background:#0d9488;color:#fff;border:none;border-radius:9px;padding:8px 13px;font-weight:700;font-size:13.5px;cursor:pointer}
.blk-edit-btn:hover{filter:brightness(1.08)}
.blk-revert{background:#fff;color:#475569;border:1px solid #cbd5e1;border-radius:9px;padding:8px 12px;font-size:13px;cursor:pointer}
.blk-badge{background:#f59e0b;color:#412402;font-size:12px;font-weight:700;border-radius:20px;padding:3px 10px}
.blk-editor{margin-top:8px}
.blk-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:linear-gradient(135deg,#0f172a,#1e293b);color:#e2e8f0;border-radius:12px;padding:11px 15px;margin-bottom:12px}
.blk-tb-t{font-weight:800;font-size:15px}
.blk-tb-h{font-size:12.5px;color:#94a3b8;flex:1;min-width:140px}
.blk-save{background:#f59e0b;color:#1f2937;border:none;border-radius:10px;padding:9px 13px;font-weight:800;font-size:13.5px;cursor:pointer}
.blk-save:hover{filter:brightness(1.08)}
.blk-cancel{background:transparent;color:#e2e8f0;border:1px solid #475569;border-radius:10px;padding:9px 13px;font-size:13px;cursor:pointer}
.blk-msg{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46;border-radius:10px;padding:9px 13px;margin-bottom:12px;font-size:13.5px}
.blk-empty{color:#64748b;font-size:14px;text-align:center;padding:18px;border:1px dashed #cbd5e1;border-radius:12px;margin-bottom:12px}
.blk-item{border:1px dashed #cbd5e1;border-radius:12px;margin-bottom:10px;background:#fff;cursor:grab}
.blk-item:active{cursor:grabbing}
.blk-item-bar{display:flex;align-items:center;justify-content:space-between;padding:7px 10px;border-bottom:1px solid #f1f5f9;background:#f8fafc;border-radius:12px 12px 0 0}
.blk-item-type{font-size:12.5px;font-weight:700;color:#64748b;letter-spacing:.3px}
.blk-item-tools{display:flex;gap:4px}
.blk-item-tools button{background:#fff;border:1px solid #e2e8f0;border-radius:7px;padding:3px 8px;font-size:13px;cursor:pointer;color:#475569}
.blk-item-tools button:hover:not(:disabled){border-color:#0d9488;color:#0d9488}
.blk-item-tools button:disabled{opacity:.35;cursor:default}
.blk-item-tools button.del:hover{border-color:#dc2626;color:#dc2626}
.blk-preview{padding:12px 14px}
.blk-vide{color:#94a3b8;font-style:italic;font-size:13px}
.blk-form{padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.blk-form input,.blk-form textarea,.blk-form select{width:100%;border:1px solid #cbd5e1;border-radius:9px;padding:9px 11px;font-size:14px;font-family:inherit}
.blk-form textarea{resize:vertical}
.blk-form-act{display:flex;justify-content:flex-end}
.blk-add{display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:#f8fafc;border-radius:12px;padding:12px 14px;margin-top:6px}
.blk-add>span{font-size:13.5px;font-weight:700;color:#475569;width:100%}
.blk-add button{background:#fff;border:1px solid #cbd5e1;border-radius:20px;padding:7px 13px;font-size:13px;font-weight:600;cursor:pointer;color:#334155}
.blk-add button:hover{border-color:#0d9488;color:#0d9488;transform:translateY(-1px)}
/* Rendu des blocs (côté élève & aperçu) */
.blk-img{margin:14px 0;text-align:center}
.blk-img img{max-width:100%;border-radius:12px;box-shadow:0 14px 34px -22px rgba(0,0,0,.4)}
.blk-img figcaption{font-size:13px;color:#64748b;margin-top:6px;font-style:italic}
.blk-video{position:relative;padding-bottom:56.25%;height:0;margin:14px 0;border-radius:12px;overflow:hidden;background:#000}
.blk-video iframe,.blk-video video{position:absolute;top:0;left:0;width:100%;height:100%;border:0}
.blk-enc{border:1px solid var(--ebd);background:var(--ebg);border-left:4px solid var(--ec);border-radius:0 12px 12px 0;padding:12px 15px;margin:14px 0}
.blk-enc-h{font-weight:800;color:var(--ec);margin-bottom:4px}
.blk-enc-b{color:#334155;font-size:14.5px;line-height:1.6}
.blk-enc-b p{margin:0}
.blk-sep{border:0;border-top:2px solid #e2e8f0;margin:18px 0 4px}
.blk-sep-t{text-align:center;font-family:'Fraunces',serif;font-weight:800;color:#64748b;font-size:16px;margin-bottom:10px}
.blk-aud{margin:14px 0;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:11px 14px}
.blk-aud-t{font-weight:700;color:#334155;margin-bottom:6px;font-size:14px}
.blk-aud audio{width:100%}
.blk-aud-c{font-size:13px;color:#64748b;margin-top:6px;font-style:italic}
/* Enregistreur vocal (4B) */
.blk-rec-sep{font-size:12.5px;color:#94a3b8;text-align:center;margin:4px 0}
.blk-rec{background:#f8fafc;border:1px solid #e2e8f0;border-radius:11px;padding:11px 13px}
.blk-rec-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.blk-rec-btn{border:none;border-radius:10px;padding:9px 14px;font-weight:700;font-size:13.5px;cursor:pointer}
.blk-rec-btn.start{background:#dc2626;color:#fff}
.blk-rec-btn.stop{background:#1f2937;color:#fff}
.blk-rec-btn.reset{background:#fff;color:#475569;border:1px solid #cbd5e1}
.blk-rec-btn:hover{filter:brightness(1.08)}
.blk-rec-dot{color:#dc2626;font-weight:700;font-size:13px;animation:recblink 1s steps(2,start) infinite}
@keyframes recblink{50%{opacity:.3}}
.blk-rec-err{color:#b91c1c;background:#fee2e2;border:1px solid #fecaca;border-radius:9px;padding:8px 11px;font-size:13px;margin-top:8px}
.blk-rec-preview{margin-top:10px;display:flex;flex-direction:column;gap:8px}
.blk-rec-preview audio{width:100%}
.blk-rec-dl{font-size:13px;font-weight:700;color:#0d9488;text-decoration:none}
.blk-rec-dl:hover{text-decoration:underline}
.blk-rec-note{font-size:12px;line-height:1.5;color:#5a5470;background:#fffbeb;border:1px solid #fde68a;border-radius:9px;padding:8px 11px;margin:0}
.ep-prepend{margin-bottom:18px}
.ep-edit{margin-top:6px}
/* Upload (4C) */
.blk-up{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.blk-up-btn{background:#0d9488;color:#fff;border:none;border-radius:9px;padding:8px 13px;font-weight:700;font-size:13px;cursor:pointer}
.blk-up-btn:hover:not(:disabled){filter:brightness(1.08)}
.blk-up-btn:disabled{opacity:.6;cursor:default}
.blk-up-msg{font-size:12.5px;color:#0d9488;font-weight:600}
.blk-up-msg.blk-up-err{color:#dc2626}
.blk-rec-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.blk-rec-online{background:#0d9488;color:#fff;border:none;border-radius:10px;padding:9px 14px;font-weight:700;font-size:13px;cursor:pointer}
.blk-rec-online:hover:not(:disabled){filter:brightness(1.08)}
.blk-rec-online:disabled{opacity:.6;cursor:default}
.blk-rec-upmsg{font-size:13px;font-weight:600;color:#0d9488;margin-top:4px}
.blk-form-prev{padding:6px;background:#f1f5f9;border-radius:8px;text-align:center}
.cared{display:flex;flex-direction:column;gap:10px}
.cared-cap label{display:block;font-size:12px;font-weight:700;color:#64748b;margin-bottom:3px}
.cared-empty{color:#64748b;font-size:13px;text-align:center;padding:10px}
.cared-slide{border:1px solid #e2e8f0;border-radius:11px;padding:10px;background:#fafafa;display:flex;flex-direction:column;gap:7px}
.cared-slide-h{display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:13px;color:#475569}
.cared-slide-tools button{background:#fff;border:1px solid #e2e8f0;border-radius:7px;padding:3px 8px;font-size:12px;cursor:pointer;margin-left:4px}
.cared-slide-tools button.del:hover{border-color:#dc2626;color:#dc2626}
.cared-row2{display:flex;gap:6px}
.cared-emoji{width:90px;flex:none}
.cared-img{display:flex;gap:6px;align-items:center}
.cared-add{background:#7c3aed;color:#fff;border:none;border-radius:10px;padding:9px 13px;font-weight:700;font-size:13px;cursor:pointer}
.blk-carousel{margin:6px 0}
.blk-carousel-img{margin:8px 0}.blk-carousel-img img{max-width:100%;border-radius:10px}
.blk-lib-btn{background:#fff;border:1px solid #cbd5e1;border-radius:9px;padding:8px 13px;font-weight:600;font-size:13px;cursor:pointer;color:#334155}
.blk-lib-btn:hover{border-color:#0d9488;color:#0d9488}
.medialib{max-width:640px;width:92%}
.ml-empty{color:#64748b;text-align:center;padding:20px;font-size:14px}
.ml-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;max-height:420px;overflow:auto;padding:4px}
.ml-card{position:relative;border:1px solid #e2e8f0;border-radius:10px;padding:8px;background:#fff;text-align:center}
.ml-thumb{cursor:pointer;height:80px;display:flex;align-items:center;justify-content:center;border-radius:7px;overflow:hidden;background:#f8fafc}
.ml-thumb img{max-width:100%;max-height:80px;object-fit:cover}
.ml-thumb:hover{outline:2px solid #0d9488}
.ml-icon{font-size:32px}
.ml-name{font-size:11.5px;color:#334155;margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ml-meta{font-size:11px;color:#94a3b8}
.ml-del{position:absolute;top:5px;right:5px;background:rgba(255,255,255,.92);border:1px solid #e2e8f0;border-radius:7px;padding:2px 6px;font-size:12px;cursor:pointer}
.ml-del:hover{border-color:#dc2626;color:#dc2626}
/* ====== Simulateur d'entreprise (L'Île aux Macatias) ====== */
.simu-wrap{max-width:760px;margin:0 auto}
.simu{max-width:720px;margin:0 auto;padding:4px}
.simu-hero{text-align:center;background:linear-gradient(135deg,#fff7ed,#ffedd5);border:1px solid #fed7aa;border-radius:18px;padding:22px 18px;margin-bottom:16px}
.simu-emoji{font-size:54px;line-height:1}
.simu-hero h2{font-size:24px;margin:6px 0 2px;color:#9a3412}
.simu-lieu{font-size:13px;color:#c2410c;font-weight:700;margin-bottom:10px}
.simu-pitch{font-size:14.5px;color:#7c2d12;line-height:1.6;max-width:560px;margin:0 auto}
.simu-gauges{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:14px 0}
.simu-g{background:#fff;border:1px solid #f1e7d8;border-radius:11px;padding:9px 11px}
.simu-g-top{display:flex;justify-content:space-between;font-size:12.5px;color:#475569;margin-bottom:5px}
.simu-g-top b{color:#1a1430}
.simu-g-track{height:10px;background:#f1f0ec;border-radius:8px;overflow:hidden}
.simu-g-fill{height:100%;border-radius:8px;transition:width .6s cubic-bezier(.4,1.3,.5,1)}
.simu-monthbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px;background:#9a3412;color:#fff;border-radius:12px;padding:9px 14px;font-weight:700}
.simu-month{font-size:15px}
.simu-notion{font-size:12px;background:rgba(255,255,255,.2);padding:3px 10px;border-radius:20px}
.simu-context{background:#fff;border:1px solid #ece7f7;border-radius:13px;padding:14px 16px;font-size:15px;line-height:1.55;color:#1a1430;margin:12px 0}
.simu-decisions{display:flex;flex-direction:column;gap:9px}
.simu-dec{text-align:left;background:#fff;border:2px solid #fed7aa;border-radius:12px;padding:13px 15px;font-size:14.5px;font-weight:600;color:#7c2d12;cursor:pointer;transition:.15s}
.simu-dec:hover{border-color:#ea580c;background:#fff7ed;transform:translateY(-1px)}
.simu-feedback{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:13px;padding:14px 16px;margin-top:6px}
.simu-fb-expl{font-size:14.5px;color:#166534;line-height:1.55;margin-bottom:10px}
.simu-fb-delta{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}
.simu-chip{font-size:13px;font-weight:800;padding:4px 11px;border-radius:20px}
.simu-chip.up{background:#dcfce7;color:#15803d}
.simu-chip.down{background:#fee2e2;color:#b91c1c}
.simu-end{text-align:center}
.simu-medal{font-size:60px}
.simu-end h2{font-size:24px;color:#9a3412;margin:4px 0}
.simu-score{font-size:17px;color:#1a1430;margin:6px 0}
.simu-score b{color:#ea580c;font-size:20px}
.simu-verdict{font-size:14.5px;color:#475569;line-height:1.6;max-width:540px;margin:6px auto 14px}
.simu-bilan{text-align:left;background:#fff;border:1px solid #ece7f7;border-radius:13px;padding:14px 16px;margin:14px 0}
.simu-bilan h3{font-size:15px;margin-bottom:10px}
.simu-bilan-card{border-radius:11px;padding:11px 13px;margin-bottom:9px;border:1px solid #e2e8f0;background:#f8fafc}
.simu-bilan-card.bilan-vert{border-color:#bbf7d0;background:#f0fdf4}
.simu-bilan-card.bilan-orange{border-color:#fde68a;background:#fffbeb}
.simu-bilan-card.bilan-rouge{border-color:#fecaca;background:#fef2f2}
.simu-bilan-head{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:6px;font-size:14.5px;color:#1a1430;margin-bottom:5px}
.simu-bilan-val{font-size:13px;font-weight:700;color:#475569}
.simu-bilan-txt{font-size:13.5px;color:#334155;line-height:1.55}
/* Documents mis en scène dans le simulateur */
.doc{margin:12px 0;border-radius:13px;overflow:hidden;font-size:14px}
.doc-mail{border:1px solid #dbeafe;background:#fff}
.doc-mail-head{background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:10px 14px}
.doc-mail-row{font-size:13px;color:#475569;margin:2px 0}
.doc-mail-lab{color:#94a3b8;display:inline-block;min-width:48px}
.doc-mail-obj{margin-top:4px;font-size:14px;color:#1a1430}
.doc-mail-body{padding:14px 16px;color:#334155;line-height:1.55}
.doc-mail-body p{margin:0 0 8px}
.doc-mail-sign{padding:0 16px 14px;color:#64748b;font-style:italic;font-size:13px}
.doc-post{border:1px solid #e2e8f0;background:#fff;max-width:440px}
.doc-post-head{display:flex;align-items:center;gap:10px;padding:12px 14px}
.doc-post-av{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:18px}
.doc-post-name{font-weight:800;font-size:14px;color:#1a1430}
.doc-post-meta{font-size:12px;color:#94a3b8}
.doc-post-img{background:#f1f5f9}.doc-post-img img{width:100%;display:block}
.doc-post-txt{padding:4px 14px 12px;color:#1a1430;line-height:1.5}
.doc-post-stats{border-top:1px solid #f1f5f9;padding:9px 14px;font-size:13px;color:#64748b}
.doc-affiche{text-align:center;padding:22px 18px;border:2px solid #f59e0b;background:linear-gradient(135deg,#fef3c7,#fed7aa);max-width:440px;margin-left:auto;margin-right:auto}
.doc-aff-sur{font-size:12px;font-weight:700;color:#92400e;letter-spacing:.5px;text-transform:uppercase}
.doc-aff-emoji{font-size:48px;margin:6px 0}
.doc-aff-titre{font-size:24px;font-weight:900;color:#9a3412;line-height:1.1;font-family:Fraunces,Georgia,serif}
.doc-aff-sous{font-size:15px;color:#b45309;margin:6px 0 12px;font-weight:600}
.doc-aff-infos{display:flex;flex-direction:column;gap:5px;font-size:14px;color:#7c2d12;font-weight:600}
.doc-aff-pied{margin-top:12px;font-size:13px;color:#92400e;font-weight:700}
.doc-presse{border:1px solid #e2e8f0;background:#fff;padding:16px 18px;max-width:520px}
.doc-presse-journal{font-family:Fraunces,Georgia,serif;font-size:20px;font-weight:900;color:#1a1430;border-bottom:2px solid #1a1430;padding-bottom:4px}
.doc-presse-rubrique{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:#94a3b8;margin:8px 0}
.doc-presse-titre{font-family:Fraunces,Georgia,serif;font-size:20px;color:#1a1430;margin:4px 0 8px;line-height:1.2}
.doc-presse-chapo{font-size:14.5px;font-weight:600;color:#334155;line-height:1.5;margin-bottom:8px}
.doc-presse-p{font-size:13.5px;color:#475569;line-height:1.6;margin:0 0 7px}
.doc-presse-img{margin:8px 0}.doc-presse-img img{width:100%;border-radius:8px}.doc-presse-img span{display:block;font-size:11.5px;color:#94a3b8;margin-top:3px}
.doc-alerte{border:2px solid #f59e0b;background:#fffbeb}
.doc-alerte-head{background:#f59e0b;color:#fff;font-weight:800;padding:9px 14px;font-size:15px}
.doc-alerte-niveau{padding:8px 14px 0;font-weight:800;color:#b45309}
.doc-alerte-body{padding:8px 14px;color:#7c2d12;line-height:1.55}.doc-alerte-body p{margin:0 0 7px}
.doc-alerte-src{padding:0 14px 12px;font-size:12px;color:#a16207;font-style:italic}
.doc-avis{border:1px solid #bbf7d0;background:#f0fdf4;padding:12px 15px;max-width:440px}
.doc-avis-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}
.doc-avis-name{font-weight:800;color:#1a1430;font-size:14px}
.doc-avis-stars{color:#f59e0b;font-size:15px}
.doc-avis-txt{color:#166534;line-height:1.5;font-size:14px}
.simu-hero-img{margin:-4px 0 8px;border-radius:14px;overflow:hidden}.simu-hero-img img{width:100%;max-height:200px;object-fit:cover;display:block}
/* Intro façon coupure de presse numérique */
.presse-intro{background:#fffdf7;border:1px solid #e7e2d6;border-radius:14px;padding:22px 26px;margin-bottom:16px;box-shadow:0 12px 34px -20px rgba(60,50,30,.4)}
.presse-journal-bar{display:flex;justify-content:space-between;align-items:baseline;border-bottom:3px double #1a1430;padding-bottom:6px;flex-wrap:wrap;gap:4px}
.presse-journal-name{font-family:Fraunces,Georgia,serif;font-size:26px;font-weight:900;color:#1a1430;letter-spacing:-.5px}
.presse-journal-date{font-size:11.5px;color:#8a7f6a;font-style:italic}
.presse-rubrique{font-size:11px;font-weight:800;letter-spacing:1.5px;color:#b45309;text-transform:uppercase;margin:12px 0 4px}
.presse-titre{font-family:Fraunces,Georgia,serif;font-size:28px;line-height:1.15;color:#1a1430;margin:2px 0 8px;font-weight:900}
.presse-chapo{font-size:16px;line-height:1.5;color:#33302a;font-weight:600;font-style:italic;margin-bottom:8px}
.presse-byline{font-size:12px;color:#8a7f6a;border-top:1px solid #e7e2d6;border-bottom:1px solid #e7e2d6;padding:6px 0;margin-bottom:12px;text-transform:uppercase;letter-spacing:.5px}
.presse-figure{margin:0 0 14px;border-radius:8px;overflow:hidden}
.presse-figure img{width:100%;max-height:280px;object-fit:cover;display:block}
.presse-figure figcaption{font-size:11.5px;color:#8a7f6a;font-style:italic;padding:5px 2px;background:#f6f2e8}
.presse-colonnes{column-count:2;column-gap:26px;text-align:justify}
.presse-colonnes p{font-size:14px;line-height:1.62;color:#2b2820;margin:0 0 11px;break-inside:avoid}
.presse-colonnes p:first-of-type:first-letter{font-family:Fraunces,Georgia,serif;font-size:46px;font-weight:900;float:left;line-height:.82;padding:4px 7px 0 0;color:#b45309}
.simu-startbox{background:#fff7ed;border:1px solid #fed7aa;border-radius:14px;padding:16px 18px;text-align:center}
.simu-startbox-t{font-size:17px;font-weight:800;color:#9a3412}
.simu-startbox-h{font-size:13.5px;color:#7c2d12;line-height:1.5;margin:4px 0 6px}
.simu-notionbox{text-align:left;background:#fffdf7;border:1px solid #e7e2d6;border-left:4px solid #d97706;border-radius:10px;padding:12px 15px;margin-top:12px}
.simu-notionbox-h{font-size:13px;font-weight:800;color:#b45309;margin-bottom:7px}
.simu-notionbox-row{display:flex;gap:8px;font-size:13px;color:#3a3326;margin-bottom:4px;line-height:1.5}
.simu-notionbox-lab{flex:0 0 64px;font-weight:700;color:#8a7f6a}
.simu-notionbox-comment{font-size:12.5px;color:#5a5040;line-height:1.55;margin-top:8px;padding-top:8px;border-top:1px solid #efe9dc;font-style:italic}
@media(max-width:640px){.presse-colonnes{column-count:1}.presse-intro{padding:16px 16px}.presse-journal-name{font-size:21px}.presse-titre{font-size:22px}}
.simu-scene{border-radius:13px;overflow:hidden;margin:10px 0}.simu-scene img{width:100%;max-height:220px;object-fit:cover;display:block}
.doc-aff-img{margin:8px 0;border-radius:10px;overflow:hidden}.doc-aff-img img{width:100%;max-height:180px;object-fit:cover;display:block}
/* ====== Concept 2 — Dialogue à embranchements ====== */
.dlg-wrap,.dlg{max-width:680px;margin:0 auto}
.dlg-back{background:#ede9fe;color:#6d28d9;border:none;border-radius:9px;padding:8px 14px;font-weight:700;font-size:13px;cursor:pointer;margin-bottom:10px}
.dlg-hub{max-width:720px;margin:0 auto;text-align:center}
.dlg-hub-t{font-size:23px;color:#5b21b6;margin-bottom:6px}
.dlg-hub-intro{font-size:14.5px;color:#475569;line-height:1.55;max-width:540px;margin:0 auto 18px}
.dlg-hub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
.dlg-card{background:#fff;border:2px solid #ede9fe;border-radius:16px;padding:18px 16px;cursor:pointer;text-align:center;transition:.15s;font:inherit}
.dlg-card:hover{border-color:#a78bfa;transform:translateY(-2px);box-shadow:0 14px 30px -18px rgba(124,58,237,.5)}
.dlg-card-emoji{font-size:40px}
.dlg-card-t{font-size:16px;font-weight:800;color:#1a1430;margin-top:6px}
.dlg-card-role{font-size:12.5px;color:#7c6f95;margin-top:4px;line-height:1.4}
.dlg-card-done{font-size:12px;color:#15803d;font-weight:700;margin-top:8px}
.dlg-card-go{color:#7c3aed;font-weight:800;font-size:13.5px;margin-top:10px}
.dlg-intro{text-align:center;background:linear-gradient(135deg,#f5f3ff,#ede9fe);border:1px solid #ddd6fe;border-radius:18px;padding:22px 18px;margin-bottom:14px}
.dlg-intro-emoji{font-size:50px}
.dlg-intro-img{border-radius:14px;overflow:hidden;margin-bottom:8px}.dlg-intro-img img{width:100%;max-height:200px;object-fit:cover;display:block}
.dlg-intro h2{font-size:22px;color:#5b21b6;margin:4px 0}
.dlg-role{font-size:13px;color:#6d28d9;font-weight:700;margin-bottom:8px}
.dlg-pitch{font-size:14.5px;color:#433a5e;line-height:1.6;max-width:560px;margin:0 auto 10px}
.dlg-conseil{font-size:13px;color:#6d28d9;background:#fff;border:1px dashed #c4b5fd;border-radius:10px;padding:9px 12px;max-width:540px;margin:0 auto}
.dlg-notion{text-align:left;background:#fff;border:1px solid #ddd6fe;border-left:4px solid #7c3aed;border-radius:10px;padding:11px 14px;max-width:560px;margin:0 auto 10px}
.dlg-notion-h{font-size:13px;font-weight:800;color:#5b21b6;margin-bottom:6px}
.dlg-notion-row{display:flex;gap:8px;font-size:13px;color:#3b3357;margin-bottom:3px;line-height:1.45}
.dlg-notion-lab{flex:0 0 64px;font-weight:700;color:#7c6f95}
.dlg-notion-comment{font-size:12.5px;color:#52496b;line-height:1.5;margin-top:7px;padding-top:7px;border-top:1px solid #ede9fe;font-style:italic}
.dlg-card-notion{font-size:11.5px;color:#6d28d9;background:#f5f3ff;border-radius:8px;padding:5px 8px;margin-top:7px;line-height:1.35}
.dlg-gauges{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:9px;margin:12px 0}
.dlg-g{background:#fff;border:1px solid #ece7f7;border-radius:11px;padding:8px 11px}
.dlg-g-top{display:flex;justify-content:space-between;font-size:12px;color:#475569;margin-bottom:5px}.dlg-g-top b{color:#1a1430}
.dlg-g-track{height:9px;background:#f1f0ec;border-radius:8px;overflow:hidden}
.dlg-g-fill{height:100%;border-radius:8px;transition:width .5s cubic-bezier(.4,1.3,.5,1)}
.dlg-header{display:flex;align-items:center;gap:11px;background:#5b21b6;color:#fff;border-radius:13px 13px 0 0;padding:11px 15px}
.dlg-ava{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:22px;background:#7c3aed}
.dlg-ava-nom{font-weight:800;font-size:15px}
.dlg-ava-sub{font-size:11.5px;opacity:.85}
.dlg-thread{background:#faf9ff;border:1px solid #ece7f7;border-top:none;padding:14px;display:flex;flex-direction:column;gap:10px;max-height:none}
.dlg-bubble{max-width:82%;padding:11px 14px;border-radius:16px;font-size:14.5px;line-height:1.5}
.dlg-bubble.eux{align-self:flex-start;background:#fff;border:1px solid #e6e1f3;border-bottom-left-radius:4px;color:#1a1430}
.dlg-bubble.moi{align-self:flex-end;background:#7c3aed;color:#fff;border-bottom-right-radius:4px}
.dlg-tape{display:flex;gap:5px;align-items:center;padding:14px 16px}
.dlg-tape i{width:7px;height:7px;border-radius:50%;background:#b9aee0;display:block;animation:dlgtape 1.1s infinite ease-in-out}
.dlg-tape i:nth-child(2){animation-delay:.16s}
.dlg-tape i:nth-child(3){animation-delay:.32s}
@keyframes dlgtape{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}
@media (prefers-reduced-motion: reduce){.dlg-tape i{animation:none;opacity:.6}}
.dlg-b-img{margin:-2px 0 8px;border-radius:10px;overflow:hidden}.dlg-b-img img{width:100%;max-height:180px;object-fit:cover;display:block}
.dlg-fb{align-self:stretch;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:11px;padding:9px 13px}
.dlg-fb-txt{font-size:13.5px;color:#166534;line-height:1.5}
.dlg-fb-delta{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.dlg-chip{font-size:12px;font-weight:800;padding:3px 9px;border-radius:14px}
.dlg-chip.up{background:#dcfce7;color:#15803d}.dlg-chip.down{background:#fee2e2;color:#b91c1c}
.dlg-reponses{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid #ece7f7;border-top:none;border-radius:0 0 13px 13px;padding:12px}
.dlg-rep{text-align:left;background:#f5f3ff;border:2px solid #ddd6fe;border-radius:12px;padding:12px 14px;font-size:14px;font-weight:600;color:#4c1d95;cursor:pointer;transition:.15s}
.dlg-rep:hover{border-color:#7c3aed;background:#ede9fe;transform:translateX(2px)}
.dlg-next{background:#fff;border:1px solid #ece7f7;border-top:none;border-radius:0 0 13px 13px;padding:12px;text-align:center}
.dlg-end{text-align:center}
.dlg-medal{font-size:58px}
.dlg-end h2{font-size:23px;color:#5b21b6;margin:4px 0}
.dlg-score{font-size:16px;color:#1a1430}.dlg-score b{color:#7c3aed;font-size:19px}
.dlg-verdict{font-size:14.5px;color:#475569;line-height:1.6;max-width:540px;margin:6px auto 14px}
.dlg-bilan{text-align:left;background:#fff;border:1px solid #ece7f7;border-radius:13px;padding:14px 16px;margin:14px 0}
.dlg-bilan h3{font-size:15px;margin-bottom:10px}
.dlg-bilan-card{border-radius:11px;padding:11px 13px;margin-bottom:9px;border:1px solid #e2e8f0;background:#f8fafc}
.dlg-bilan-card.bilan-vert{border-color:#bbf7d0;background:#f0fdf4}
.dlg-bilan-card.bilan-orange{border-color:#fde68a;background:#fffbeb}
.dlg-bilan-card.bilan-rouge{border-color:#fecaca;background:#fef2f2}
.dlg-bilan-head{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:6px;font-size:14.5px;color:#1a1430;margin-bottom:5px}
.dlg-bilan-val{font-size:13px;font-weight:700;color:#475569}
.dlg-bilan-txt{font-size:13.5px;color:#334155;line-height:1.55}
/* ====== Concept 3 — Le procès (raisonnement juridique) ====== */
.prc-wrap,.prc{max-width:700px;margin:0 auto}
.prc-back{background:#fee2e2;color:#991b1b;border:none;border-radius:9px;padding:8px 14px;font-weight:700;font-size:13px;cursor:pointer;margin-bottom:10px}
.prc-hub{max-width:760px;margin:0 auto;text-align:center}
.prc-hub-t{font-size:23px;color:#991b1b;margin-bottom:6px}
.prc-hub-intro{font-size:14.5px;color:#475569;line-height:1.55;max-width:580px;margin:0 auto 18px}
.prc-hub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}
.prc-card{background:#fff;border:2px solid #fee2e2;border-radius:16px;padding:18px 16px;cursor:pointer;text-align:center;transition:.15s;font:inherit}
.prc-card:hover{border-color:#f87171;transform:translateY(-2px);box-shadow:0 14px 30px -18px rgba(185,28,28,.5)}
.prc-card-emoji{font-size:40px}
.prc-card-t{font-size:16px;font-weight:800;color:#1a1430;margin-top:6px}
.prc-card-sous{font-size:12.5px;color:#64607a;margin-top:5px;line-height:1.4}
.prc-card-notion{font-size:11.5px;color:#b91c1c;background:#fef2f2;border-radius:8px;padding:5px 8px;margin-top:8px;line-height:1.35}
.prc-card-done{font-size:12px;color:#15803d;font-weight:700;margin-top:7px}
.prc-card-go{color:#b91c1c;font-weight:800;font-size:13.5px;margin-top:9px}
/* saisine / dossier */
.prc-saisine{background:#fffdf9;border:1px solid #e8e2d4;border-radius:14px;padding:20px 22px;margin-bottom:14px;box-shadow:0 12px 32px -22px rgba(80,60,30,.45)}
.prc-saisine-band{display:flex;justify-content:space-between;align-items:baseline;border-bottom:2px solid #991b1b;padding-bottom:7px;flex-wrap:wrap;gap:4px}
.prc-trib{font-family:Fraunces,Georgia,serif;font-size:16px;font-weight:800;color:#7a1414}
.prc-ref{font-size:12px;color:#9a8f7a}
.prc-rubrique{font-size:11px;font-weight:800;letter-spacing:1.5px;color:#b91c1c;text-transform:uppercase;margin:12px 0 4px}
.prc-titre{font-family:Fraunces,Georgia,serif;font-size:25px;line-height:1.18;color:#1a1430;margin:2px 0 8px;font-weight:900}
.prc-chapo{font-size:15.5px;line-height:1.5;color:#33302a;font-weight:600;font-style:italic;margin-bottom:10px}
.prc-figure{margin:0 0 12px;border-radius:9px;overflow:hidden}.prc-figure img{width:100%;max-height:240px;object-fit:cover;display:block}
.prc-figure figcaption{font-size:11.5px;color:#9a8f7a;font-style:italic;padding:5px 2px;background:#f6f1e6}
.prc-role{font-size:13.5px;color:#7a1414;background:#fef2f2;border:1px solid #fecaca;border-radius:9px;padding:9px 12px;margin-bottom:11px;line-height:1.5}
.prc-recit p{font-size:14px;line-height:1.62;color:#2b2820;margin:0 0 10px;text-align:justify}
.prc-pretentions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:6px}
.prc-pret{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px}
.prc-pret-h{display:block;font-size:12px;font-weight:800;color:#475569;margin-bottom:4px}
.prc-pret div{font-size:13px;color:#334155;line-height:1.5}
@media(max-width:600px){.prc-pretentions{grid-template-columns:1fr}}
/* notion */
.prc-notion{text-align:left;background:#fff;border:1px solid #fecaca;border-left:4px solid #b91c1c;border-radius:10px;padding:11px 14px;margin-bottom:12px}
.prc-notion-h{font-size:13px;font-weight:800;color:#991b1b;margin-bottom:6px}
.prc-notion-row{display:flex;gap:8px;font-size:13px;color:#3b3357;margin-bottom:3px;line-height:1.45}
.prc-notion-lab{flex:0 0 64px;font-weight:700;color:#8a7080}
.prc-notion-comment{font-size:12.5px;color:#52496b;line-height:1.5;margin-top:7px;padding-top:7px;border-top:1px solid #fee2e2;font-style:italic}
/* étapes */
.prc-step{font-size:12px;font-weight:800;letter-spacing:.5px;color:#b91c1c;text-transform:uppercase;margin-bottom:6px}
.prc-h{font-size:17px;color:#1a1430;margin:10px 0 5px}
.prc-help{font-size:13.5px;color:#52596b;line-height:1.55;margin-bottom:12px}
.prc-warn{font-size:13px;color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:9px;padding:9px 12px;margin:8px 0}
/* pièces */
.prc-pieces{display:flex;flex-direction:column;gap:9px;margin-bottom:14px}
.prc-piece{border:1px solid #e5e1d4;border-radius:11px;overflow:hidden;background:#fffdf9}
.prc-piece.open{border-color:#d6a96a}
.prc-piece-head{width:100%;display:flex;align-items:center;gap:10px;background:none;border:none;padding:12px 14px;cursor:pointer;font:inherit;text-align:left}
.prc-piece-ico{font-size:20px}
.prc-piece-tit{flex:1;font-size:14px;font-weight:700;color:#1a1430}
.prc-piece-chev{color:#b08a5a;font-size:12px}
.prc-piece-body{padding:2px 16px 14px;border-top:1px dashed #e5e1d4}
.prc-piece-sous{font-size:12px;color:#9a8f7a;font-style:italic;margin:8px 0}
.prc-piece-body p{font-size:13.5px;line-height:1.6;color:#2f2b24;margin:0 0 8px}
.prc-piece-loi{font-size:13px;color:#1e3a8a;background:#eff6ff;border:1px solid #bfdbfe;border-left:3px solid #2563eb;border-radius:8px;padding:9px 12px;margin-top:6px;line-height:1.55}
/* faits */
.prc-faits{display:flex;flex-direction:column;gap:7px;margin-bottom:12px}
.prc-fait{display:flex;align-items:flex-start;gap:9px;text-align:left;background:#fff;border:2px solid #e2e8f0;border-radius:10px;padding:10px 12px;cursor:pointer;font:inherit;transition:.12s}
.prc-fait:hover:not(:disabled){border-color:#f87171}
.prc-fait.sel{border-color:#b91c1c;background:#fef2f2}
.prc-fait.bon{border-color:#16a34a;background:#f0fdf4}
.prc-fait.faux{border-color:#dc2626;background:#fef2f2}
.prc-fait.manque{border-color:#f59e0b;background:#fffbeb}
.prc-fait.ok-vide{opacity:.6}
.prc-fait-box{font-size:16px;line-height:1.3}
.prc-fait-txt{flex:1;font-size:13.5px;color:#1a1430;line-height:1.45}
.prc-fait-tag{font-size:11.5px;font-weight:700;white-space:nowrap;color:#475569}
.prc-feedback{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:11px;padding:12px 14px;margin:12px 0}
.prc-feedback-h{font-size:14px;font-weight:800;color:#15803d;margin-bottom:8px}
.prc-fb-line{font-size:13px;color:#334155;line-height:1.55;margin-bottom:6px}
/* qualif & délibéré */
.prc-qopts,.prc-dopts{display:flex;flex-direction:column;gap:9px;margin-bottom:12px}
.prc-qopt,.prc-dopt{text-align:left;background:#fff;border:2px solid #e2e8f0;border-radius:12px;padding:13px 15px;cursor:pointer;font:inherit;transition:.12s}
.prc-qopt:hover:not(:disabled),.prc-dopt:hover:not(:disabled){border-color:#b91c1c;background:#fef2f2}
.prc-qopt.bon,.prc-dopt.bon{border-color:#16a34a;background:#f0fdf4}
.prc-qopt.faux,.prc-dopt.faux{border-color:#dc2626;background:#fef2f2}
.prc-qopt-t,.prc-dopt-t{font-size:14px;font-weight:600;color:#1a1430;line-height:1.5}
.prc-qopt-exp,.prc-dopt-exp{font-size:13px;color:#334155;line-height:1.55;margin-top:8px;padding-top:8px;border-top:1px solid #e2e8f0}
.prc-synthese,.prc-solution{background:#eff6ff;border:1px solid #bfdbfe;border-left:4px solid #2563eb;border-radius:10px;padding:11px 14px;font-size:13.5px;color:#1e3a5a;line-height:1.6;margin-bottom:12px}
.prc-solution-h{font-size:14px;font-weight:800;color:#1e40af;margin-bottom:6px}
.prc-solution p{margin:0 0 8px}
/* verdict */
.prc-end{text-align:center}
.prc-medal{font-size:58px}
.prc-end h2{font-size:23px;color:#991b1b;margin:4px 0}
.prc-score{font-size:16px;color:#1a1430}.prc-score b{color:#b91c1c;font-size:19px}
.prc-verdict-txt{font-size:14.5px;color:#475569;line-height:1.6;max-width:560px;margin:6px auto 14px}
.prc-bilan{display:flex;flex-direction:column;gap:8px;text-align:left;max-width:460px;margin:0 auto 14px}
.prc-bilan-card{background:#fff;border:1px solid #ece7f7;border-radius:11px;padding:11px 14px}
.prc-bilan-head{display:flex;align-items:center;gap:7px;font-size:14px;color:#1a1430}
.prc-bilan-head span{margin-left:auto;font-weight:800;color:#b91c1c}
/* ====== Fac-similés de pièces (procès) ====== */
/* Ticket de caisse */
.doc-ticket{font-family:"Courier New",monospace;background:#fffef9;border:1px solid #e3ddcb;border-radius:6px;padding:14px 16px;max-width:300px;margin:4px auto;font-size:12.5px;color:#2b2820;box-shadow:0 4px 14px -8px rgba(0,0,0,.25)}
.doc-ticket-h{text-align:center;font-weight:800;font-size:15px;letter-spacing:1px}
.doc-ticket-sub{text-align:center;font-size:11px;color:#6a6354;line-height:1.4}
.doc-ticket-sep{text-align:center;color:#b8b09a;overflow:hidden;white-space:nowrap;font-size:11px;margin:5px 0}
.doc-ticket-line{display:flex;justify-content:space-between;gap:8px;line-height:1.6}
.doc-ticket-line.tot{font-weight:800;font-size:13.5px}
.doc-ticket-mention{font-size:11px;color:#1a1a1a;background:#fef9c3;border:1px dashed #d6c97a;padding:4px 6px;margin:5px 0;line-height:1.4;text-align:center}
.doc-ticket-foot{text-align:center;font-size:11px;color:#6a6354;margin-top:8px;font-style:italic}
/* Article de loi */
.doc-loi{background:#fbfaf6;border:1px solid #d8d2c0;border-radius:8px;overflow:hidden;margin:4px 0;font-family:Georgia,"Times New Roman",serif}
.doc-loi-band{background:#1e3a5a;color:#fff;font-size:11px;font-weight:800;letter-spacing:1.5px;padding:7px 14px;text-transform:uppercase}
.doc-loi-ref{font-size:14px;font-weight:800;color:#1e3a5a;padding:11px 16px 4px;font-family:Georgia,serif}
.doc-loi-al{font-size:13.5px;line-height:1.7;color:#2a2a2a;padding:2px 18px;margin:0 0 6px;text-align:justify;font-style:italic}
.doc-loi-note{font-size:12px;color:#475569;background:#eff6ff;border-top:1px solid #dbeafe;padding:8px 16px;line-height:1.5}
/* Courrier */
.doc-courrier{background:#fff;border:1px solid #e2ddd0;border-radius:6px;padding:18px 20px;margin:4px 0;font-family:Georgia,serif;font-size:13px;color:#2a2a2a;box-shadow:0 4px 16px -10px rgba(0,0,0,.2)}
.doc-courrier-head{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.doc-courrier-exp{font-size:12px;color:#33302a;line-height:1.5}
.doc-courrier-dest{font-size:12px;color:#33302a;line-height:1.5;text-align:right;margin-left:auto}
.doc-courrier-date{text-align:right;font-size:12.5px;color:#33302a;margin-bottom:12px}
.doc-courrier-objet{font-size:13px;margin-bottom:6px}
.doc-courrier-rec{font-size:11.5px;color:#991b1b;font-weight:700;text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px}
.doc-courrier-corps p{font-size:13px;line-height:1.65;margin:0 0 10px;text-align:justify}
.doc-courrier-sign{margin-top:14px;font-size:13px;font-style:italic;text-align:right;line-height:1.5}
/* E-mail */
.pd-mail{background:#fff;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;margin:4px 0;box-shadow:0 4px 14px -10px rgba(0,0,0,.2)}
.pd-mail-head{background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:10px 14px}
.pd-mail-row{display:flex;gap:8px;font-size:12.5px;color:#334155;line-height:1.7}
.pd-mail-lab{flex:0 0 42px;color:#94a3b8;font-weight:700}
.pd-mail-obj{font-weight:700;color:#1a1430}
.pd-mail-body{padding:13px 15px}
.pd-mail-body p{font-size:13px;line-height:1.6;color:#2f2b24;margin:0 0 9px}
.pd-mail-sign{font-size:12.5px;color:#475569;font-style:italic;margin-top:10px;line-height:1.5}
.pd-mail-pj{font-size:12px;color:#475569;background:#f1f5f9;border-radius:6px;padding:6px 10px;margin-top:10px;display:inline-block}
/* Conversation SMS */
.doc-sms{background:#eef2f6;border:1px solid #dbe2ea;border-radius:12px;padding:12px;margin:4px 0}
.doc-sms-h{font-size:11.5px;color:#64748b;text-align:center;font-style:italic;margin-bottom:10px;line-height:1.4}
.doc-sms-thread{display:flex;flex-direction:column;gap:9px}
.doc-sms-msg{max-width:80%;display:flex;flex-direction:column}
.doc-sms-msg.g{align-self:flex-start;align-items:flex-start}
.doc-sms-msg.d{align-self:flex-end;align-items:flex-end}
.doc-sms-nom{font-size:10.5px;color:#94a3b8;margin:0 6px 2px}
.doc-sms-bulle{font-size:13px;line-height:1.45;padding:8px 12px;border-radius:15px}
.doc-sms-msg.g .doc-sms-bulle{background:#fff;color:#1a1430;border-bottom-left-radius:4px}
.doc-sms-msg.d .doc-sms-bulle{background:#2563eb;color:#fff;border-bottom-right-radius:4px}
.doc-sms-heure{font-size:10px;color:#aab4c0;margin:2px 6px 0}
/* Procès-verbal */
.doc-pv{background:#fbfaf6;border:1px solid #d8d2c0;border-radius:8px;overflow:hidden;margin:4px 0;font-family:Georgia,serif}
.doc-pv-band{background:#3a2f25;color:#f5ecdd;font-size:11px;font-weight:800;letter-spacing:1.5px;padding:8px 14px;text-transform:uppercase;text-align:center}
.doc-pv-meta{font-size:11.5px;color:#6a6354;padding:3px 16px;border-bottom:1px dotted #e0d9c7}
.doc-pv-corps{padding:10px 16px}
.doc-pv-line{font-size:13px;line-height:1.65;color:#2a2a2a;margin:0 0 9px}
.doc-pv-q{display:block;color:#7a1414}
.doc-pv-r{display:block}
.doc-pv-cloture{font-size:11.5px;color:#6a6354;font-style:italic;padding:8px 16px;border-top:1px dotted #e0d9c7}
/* Chronologie */
.doc-chrono{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:14px 16px;margin:4px 0}
.doc-chrono-intro{font-size:12.5px;color:#475569;margin-bottom:10px;font-style:italic}
.doc-chrono-list{list-style:none;margin:0;padding:0;position:relative}
.doc-chrono-list:before{content:"";position:absolute;left:7px;top:6px;bottom:6px;width:2px;background:#cbd5e1}
.doc-chrono-item{position:relative;padding:0 0 12px 26px}
.doc-chrono-item:before{content:"";position:absolute;left:2px;top:4px;width:12px;height:12px;border-radius:50%;background:#b91c1c;border:2px solid #fff;box-shadow:0 0 0 1px #cbd5e1}
.doc-chrono-date{display:block;font-size:12px;font-weight:800;color:#b91c1c}
.doc-chrono-evt{display:block;font-size:13px;color:#2f2b24;line-height:1.5}
.doc-chrono-note{font-size:11.5px;color:#64748b;font-style:italic;margin-top:6px;padding-top:8px;border-top:1px solid #f1f5f9}
/* ====== Concept 4 — Le tableau de bord vivant ====== */
.tdb-wrap,.tdb{max-width:700px;margin:0 auto}
.tdb-back{background:#ccfbf1;color:#0f766e;border:none;border-radius:9px;padding:8px 14px;font-weight:700;font-size:13px;cursor:pointer;margin-bottom:10px}
.tdb-hub{max-width:760px;margin:0 auto;text-align:center}
.tdb-hub-t{font-size:23px;color:#0f766e;margin-bottom:6px}
.tdb-hub-intro{font-size:14.5px;color:#475569;line-height:1.55;max-width:580px;margin:0 auto 18px}
.tdb-hub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}
.tdb-card{background:#fff;border:2px solid #ccfbf1;border-radius:16px;padding:18px 16px;cursor:pointer;text-align:center;transition:.15s;font:inherit}
.tdb-card:hover{border-color:#2dd4bf;transform:translateY(-2px);box-shadow:0 14px 30px -18px rgba(13,148,136,.5)}
.tdb-card-emoji{font-size:40px}
.tdb-card-t{font-size:16px;font-weight:800;color:#1a1430;margin-top:6px}
.tdb-card-sous{font-size:12.5px;color:#64607a;margin-top:5px;line-height:1.4}
.tdb-card-notion{font-size:11.5px;color:#0f766e;background:#f0fdfa;border-radius:8px;padding:5px 8px;margin-top:8px;line-height:1.35}
.tdb-card-done{font-size:12px;color:#15803d;font-weight:700;margin-top:7px}
.tdb-card-go{color:#0f766e;font-weight:800;font-size:13.5px;margin-top:9px}
/* intro */
.tdb-saisine{background:#f7fffd;border:1px solid #cdeae4;border-radius:14px;padding:20px 22px;margin-bottom:14px;box-shadow:0 12px 32px -22px rgba(15,118,110,.4)}
.tdb-band{display:flex;justify-content:space-between;align-items:baseline;border-bottom:2px solid #0f766e;padding-bottom:7px;flex-wrap:wrap;gap:4px}
.tdb-band-t{font-size:11px;font-weight:800;letter-spacing:1.3px;color:#0f766e;text-transform:uppercase}
.tdb-band-r{font-size:12px;color:#5a8f87}
.tdb-titre{font-family:Fraunces,Georgia,serif;font-size:25px;line-height:1.18;color:#1a1430;margin:10px 0 8px;font-weight:900}
.tdb-figure{margin:0 0 12px;border-radius:9px;overflow:hidden}.tdb-figure img{width:100%;max-height:230px;object-fit:cover;display:block}
.tdb-figure figcaption{font-size:11.5px;color:#5a8f87;font-style:italic;padding:5px 2px;background:#eefaf7}
.tdb-pitch{font-size:14.5px;line-height:1.6;color:#33302a;margin-bottom:11px}
.tdb-role{font-size:13.5px;color:#0f5e57;background:#f0fdfa;border:1px solid #99f6e4;border-radius:9px;padding:9px 12px;margin-bottom:11px;line-height:1.5}
.tdb-fiche{background:#fff;border:1px solid #d6efe9;border-radius:10px;padding:11px 14px}
.tdb-fiche-h{font-size:13px;font-weight:800;color:#0f766e;margin-bottom:6px}
.tdb-fiche-row{display:flex;gap:10px;font-size:13px;color:#334155;margin-bottom:4px;line-height:1.45}
.tdb-fiche-lab{flex:0 0 130px;font-weight:700;color:#5a8f87}
/* notion */
.tdb-notion{text-align:left;background:#fff;border:1px solid #99f6e4;border-left:4px solid #0d9488;border-radius:10px;padding:11px 14px;margin-bottom:12px}
.tdb-notion-h{font-size:13px;font-weight:800;color:#0f766e;margin-bottom:6px}
.tdb-notion-row{display:flex;gap:8px;font-size:13px;color:#3b3357;margin-bottom:3px;line-height:1.45}
.tdb-notion-lab{flex:0 0 64px;font-weight:700;color:#5a8f87}
.tdb-notion-comment{font-size:12.5px;color:#52496b;line-height:1.5;margin-top:7px;padding-top:7px;border-top:1px solid #ccfbf1;font-style:italic}
/* étapes */
.tdb-step{font-size:12px;font-weight:800;letter-spacing:.5px;color:#0f766e;text-transform:uppercase;margin-bottom:6px}
.tdb-h{font-size:17px;color:#1a1430;margin:6px 0 5px}
.tdb-ctx{font-size:13.5px;color:#52596b;line-height:1.55;margin-bottom:11px}
.tdb-donnees{background:#fffdf5;border:1px solid #f0e6c8;border-radius:10px;padding:11px 14px;margin-bottom:12px}
.tdb-donnees-h{font-size:13px;font-weight:800;color:#a16207;margin-bottom:6px}
.tdb-donnees-row{display:flex;justify-content:space-between;gap:10px;font-size:13.5px;color:#3a3326;padding:3px 0;border-bottom:1px dotted #f0e6c8;line-height:1.4}
.tdb-donnees-row:last-child{border-bottom:none}
.tdb-donnees-val{font-weight:800;color:#1a1430;white-space:nowrap}
/* dashboard vivant */
.tdb-dash{background:#0f2e2b;border-radius:12px;padding:13px 15px;margin-bottom:14px}
.tdb-dash-h{font-size:12px;font-weight:800;letter-spacing:1px;color:#5eead4;text-transform:uppercase;margin-bottom:9px}
.tdb-dash-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:9px}
.tdb-dash-card{background:#16413c;border-left:4px solid var(--c,#64748b);border-radius:9px;padding:9px 11px;position:relative}
.tdb-dash-lab{font-size:11px;color:#a7d8d0;line-height:1.3}
.tdb-dash-val{font-size:18px;font-weight:800;color:#fff;margin-top:3px}
.tdb-dash-unite{font-size:12px;font-weight:600;color:#a7d8d0}
.tdb-dash-etat{position:absolute;top:8px;right:10px;font-size:13px}
/* calcul */
.tdb-calc-q{font-size:15px;font-weight:700;color:#1a1430;margin-bottom:7px;line-height:1.45}
.tdb-calc-bar{display:flex;justify-content:flex-end;margin-bottom:10px}
/* détail facultatif d'un indicateur */
.tdb-detail{margin:0 0 12px;border:1px dashed #99f6e4;border-radius:10px;background:#f7fffd;overflow:hidden}
.tdb-detail-toggle{width:100%;text-align:left;background:none;border:none;padding:10px 13px;font:inherit;font-size:13.5px;font-weight:700;color:#0f766e;cursor:pointer;display:flex;align-items:center;gap:6px}
.tdb-detail-toggle:hover{background:#eefaf7}
.tdb-detail-opt{margin-left:auto;font-size:10.5px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:#5a8f87;background:#d7f5ef;border-radius:20px;padding:2px 9px}
.tdb-detail-body{padding:0 14px 13px;border-top:1px solid #cdeae4}
.tdb-detail-intro{font-size:13px;color:#475a57;line-height:1.55;margin:10px 0}
.tdb-detail-table{background:#fff;border:1px solid #d6efe9;border-radius:9px;padding:6px 12px;margin-bottom:11px}
.tdb-detail-row{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:#33403d;padding:5px 0;border-bottom:1px dotted #e0f0ec;line-height:1.4}
.tdb-detail-row:last-child{border-bottom:none}
.tdb-detail-val{font-weight:700;color:#1a1430;white-space:nowrap}
.tdb-detail-total{border-top:2px solid #0f766e;margin-top:2px}
.tdb-detail-total .tdb-detail-lab{font-weight:800;color:#0f766e}
.tdb-detail-total .tdb-detail-val{color:#0f766e;font-size:14.5px}
.tdb-detail-train{background:#fff;border:1px solid #ffe2a8;border-radius:9px;padding:10px 12px;margin-bottom:10px}
.tdb-detail-q{font-size:13px;color:#7a5a10;line-height:1.5;margin-bottom:8px}
.tdb-detail-in{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.tdb-detail-in input{flex:1;min-width:120px;max-width:180px;font-size:14.5px;padding:7px 11px;border:2px solid #cbd5e1;border-radius:9px;font-family:inherit}
.tdb-detail-in input:focus{outline:none;border-color:#0d9488}
.tdb-detail-unite{font-size:13.5px;font-weight:700;color:#64748b}
.tdb-detail-btn{background:#0d9488;color:#fff;border:none;border-radius:9px;padding:7px 14px;font:inherit;font-weight:700;font-size:13px;cursor:pointer}
.tdb-detail-btn:disabled{opacity:.5;cursor:not-allowed}
.tdb-detail-fb{margin-top:8px;font-size:13px;border-radius:8px;padding:7px 11px;line-height:1.45}
.tdb-detail-fb.ok{background:#f0fdf4;border:1px solid #bbf7d0;color:#15803d}
.tdb-detail-fb.ko{background:#fef7ed;border:1px solid #fed7aa;color:#9a5b0a}
.tdb-detail-exp{font-size:12.5px;color:#3e524f;line-height:1.55;margin-top:4px;font-style:italic}
.tdb-detail-note{font-size:12px;color:#5a8f87;line-height:1.5;margin-top:7px;padding-top:7px;border-top:1px solid #cdeae4}
.tdb-formule{font-size:13px;color:#0f766e;background:#f0fdfa;border:1px dashed #5eead4;border-radius:8px;padding:8px 12px;margin-bottom:10px;line-height:1.5}
.tdb-formule-wrap{margin-bottom:10px}
.tdb-formule-btn{background:#fff;border:1px dashed #94a3b8;color:#475569;border-radius:8px;padding:7px 13px;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.tdb-formule-btn:hover{border-color:#0d9488;color:#0f766e;background:#f0fdfa}
.tdb-calc-in{display:flex;align-items:center;gap:8px;margin-bottom:11px}
.tdb-calc-in input{flex:1;max-width:240px;font-size:16px;padding:10px 13px;border:2px solid #cbd5e1;border-radius:10px;font-family:inherit}
.tdb-calc-in input:focus{outline:none;border-color:#0d9488}
.tdb-calc-unite{font-size:15px;font-weight:700;color:#64748b}
.tdb-feedback{border-radius:10px;padding:11px 14px;margin-bottom:12px;font-size:14px;line-height:1.5}
.tdb-feedback.ok{background:#f0fdf4;border:1px solid #bbf7d0;color:#15803d}
.tdb-feedback.ko{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c}
.tdb-feedback-exp{font-size:13px;color:#334155;line-height:1.55;margin-top:7px;padding-top:7px;border-top:1px solid rgba(0,0,0,.08)}
/* QCM lecture/décision */
.tdb-q{font-size:15.5px;font-weight:700;color:#1a1430;margin-bottom:5px;line-height:1.45}
.tdb-aide{font-size:13px;color:#52596b;line-height:1.5;margin-bottom:11px}
.tdb-opts{display:flex;flex-direction:column;gap:9px;margin-bottom:12px}
.tdb-opt{text-align:left;background:#fff;border:2px solid #e2e8f0;border-radius:12px;padding:13px 15px;cursor:pointer;font:inherit;transition:.12s}
.tdb-opt:hover:not(:disabled){border-color:#2dd4bf;background:#f0fdfa}
.tdb-opt.sel{border-color:#0d9488;background:#f0fdfa}
.tdb-opt.bon{border-color:#16a34a;background:#f0fdf4}
.tdb-opt.faux{border-color:#dc2626;background:#fef2f2}
.tdb-opt-t{font-size:14px;font-weight:600;color:#1a1430;line-height:1.5}
.tdb-opt-exp{font-size:13px;color:#334155;line-height:1.55;margin-top:8px;padding-top:8px;border-top:1px solid #e2e8f0}
.tdb-mini-synthese,.tdb-synthese{background:#f0fdfa;border:1px solid #99f6e4;border-left:4px solid #0d9488;border-radius:10px;padding:11px 14px;font-size:13.5px;color:#134e48;line-height:1.6;margin-bottom:12px}
.tdb-synthese-h{font-size:14px;font-weight:800;color:#0f766e;margin-bottom:6px}
.tdb-synthese p{margin:0 0 8px}
/* bilan */
.tdb-end{text-align:center}
.tdb-medal{font-size:56px}
.tdb-end h2{font-size:22px;color:#0f766e;margin:4px 0}
.tdb-score{font-size:16px;color:#1a1430}.tdb-score b{color:#0d9488;font-size:19px}
.tdb-verdict-txt{font-size:14.5px;color:#475569;line-height:1.6;max-width:560px;margin:6px auto 14px}
.tdb-bilan{display:flex;flex-direction:column;gap:8px;text-align:left;max-width:460px;margin:0 auto 14px}
.tdb-bilan-card{background:#fff;border:1px solid #d6efe9;border-radius:11px;padding:11px 14px}
.tdb-bilan-head{display:flex;align-items:center;gap:7px;font-size:14px;color:#1a1430}
.tdb-bilan-head span{margin-left:auto;font-weight:800;color:#0d9488}
/* ====== Concept 5 — Le lancement de produit ====== */
.lct-wrap,.lct{max-width:700px;margin:0 auto}
.lct-back{background:#fce7f3;color:#be185d;border:none;border-radius:9px;padding:8px 14px;font-weight:700;font-size:13px;cursor:pointer;margin-bottom:10px}
.lct-hub{max-width:760px;margin:0 auto;text-align:center}
.lct-hub-t{font-size:23px;color:#be185d;margin-bottom:6px}
.lct-hub-intro{font-size:14.5px;color:#475569;line-height:1.55;max-width:580px;margin:0 auto 18px}
.lct-hub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px}
.lct-card{background:#fff;border:2px solid #fbcfe8;border-radius:16px;padding:18px 16px;cursor:pointer;text-align:center;transition:.15s;font:inherit}
.lct-card:hover{border-color:#ec4899;transform:translateY(-2px);box-shadow:0 14px 30px -18px rgba(219,39,119,.5)}
.lct-card-emoji{font-size:40px}
.lct-card-t{font-size:16px;font-weight:800;color:#1a1430;margin-top:6px}
.lct-card-sous{font-size:12.5px;color:#64607a;margin-top:5px;line-height:1.4}
.lct-card-notion{font-size:11.5px;color:#be185d;background:#fdf2f8;border-radius:8px;padding:5px 8px;margin-top:8px;line-height:1.35}
.lct-card-done{font-size:12px;color:#15803d;font-weight:700;margin-top:7px}
.lct-card-go{color:#be185d;font-weight:800;font-size:13.5px;margin-top:9px}
.lct-saisine{background:#fff7fb;border:1px solid #f3cfe2;border-radius:14px;padding:20px 22px;margin-bottom:14px;box-shadow:0 12px 32px -22px rgba(190,24,93,.4)}
.lct-band{display:flex;justify-content:space-between;align-items:baseline;border-bottom:2px solid #be185d;padding-bottom:7px;flex-wrap:wrap;gap:4px}
.lct-band-t{font-size:11px;font-weight:800;letter-spacing:1.3px;color:#be185d;text-transform:uppercase}
.lct-band-r{font-size:12px;color:#a3567f}
.lct-titre{font-family:Fraunces,Georgia,serif;font-size:25px;line-height:1.18;color:#1a1430;margin:10px 0 8px;font-weight:900}
.lct-figure{margin:0 0 12px;border-radius:9px;overflow:hidden}.lct-figure img{width:100%;max-height:230px;object-fit:cover;display:block}
.lct-figure figcaption{font-size:11.5px;color:#a3567f;font-style:italic;padding:5px 2px;background:#fdeef6}
.lct-pitch{font-size:14.5px;line-height:1.6;color:#33302a;margin-bottom:11px}
.lct-role{font-size:13.5px;color:#9d174d;background:#fdf2f8;border:1px solid #fbcfe8;border-radius:9px;padding:9px 12px;margin-bottom:11px;line-height:1.5}
.lct-fiche{background:#fff;border:1px solid #f3d4e5;border-radius:10px;padding:11px 14px}
.lct-fiche-h{font-size:13px;font-weight:800;color:#be185d;margin-bottom:6px}
.lct-fiche-row{display:flex;gap:10px;font-size:13px;color:#334155;margin-bottom:4px;line-height:1.45}
.lct-fiche-lab{flex:0 0 90px;font-weight:700;color:#a3567f}
.lct-notion{text-align:left;background:#fff;border:1px solid #fbcfe8;border-left:4px solid #db2777;border-radius:10px;padding:11px 14px;margin-bottom:12px}
.lct-notion-h{font-size:13px;font-weight:800;color:#be185d;margin-bottom:6px}
.lct-notion-row{display:flex;gap:8px;font-size:13px;color:#3b3357;margin-bottom:3px;line-height:1.45}
.lct-notion-lab{flex:0 0 64px;font-weight:700;color:#a3567f}
.lct-notion-comment{font-size:12.5px;color:#52496b;line-height:1.5;margin-top:7px;padding-top:7px;border-top:1px solid #fbcfe8;font-style:italic}
.lct-step{font-size:12px;font-weight:800;letter-spacing:.5px;color:#be185d;text-transform:uppercase;margin-bottom:6px}
.lct-h{font-size:17px;color:#1a1430;margin:6px 0 5px}
.lct-ctx{font-size:13.5px;color:#52596b;line-height:1.55;margin-bottom:11px}
.lct-donnees{background:#fffdf5;border:1px solid #f0e6c8;border-radius:10px;padding:11px 14px;margin-bottom:12px}
.lct-donnees-h{font-size:13px;font-weight:800;color:#a16207;margin-bottom:6px}
.lct-donnees-row{display:flex;justify-content:space-between;gap:10px;font-size:13.5px;color:#3a3326;padding:3px 0;border-bottom:1px dotted #f0e6c8;line-height:1.4}
.lct-donnees-row:last-child{border-bottom:none}
.lct-donnees-val{font-weight:800;color:#1a1430;white-space:nowrap}
.lct-calc-bar{display:flex;justify-content:flex-end;margin-bottom:10px}
.lct-calc-q,.lct-q{font-size:15.5px;font-weight:700;color:#1a1430;margin-bottom:7px;line-height:1.45}
.lct-aide{font-size:13px;color:#52596b;line-height:1.5;margin-bottom:11px}
.lct-formule-wrap{margin-bottom:10px}
.lct-formule{font-size:13px;color:#be185d;background:#fdf2f8;border:1px dashed #f9a8d4;border-radius:8px;padding:8px 12px;line-height:1.5}
.lct-formule-btn{background:#fff;border:1px dashed #94a3b8;color:#475569;border-radius:8px;padding:7px 13px;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.lct-formule-btn:hover{border-color:#db2777;color:#be185d;background:#fdf2f8}
.lct-calc-in{display:flex;align-items:center;gap:8px;margin-bottom:11px}
.lct-calc-in input{flex:1;max-width:240px;font-size:16px;padding:10px 13px;border:2px solid #cbd5e1;border-radius:10px;font-family:inherit}
.lct-calc-in input:focus{outline:none;border-color:#db2777}
.lct-calc-unite{font-size:15px;font-weight:700;color:#64748b}
.lct-feedback{border-radius:10px;padding:11px 14px;margin-bottom:12px;font-size:14px;line-height:1.5}
.lct-feedback.ok{background:#f0fdf4;border:1px solid #bbf7d0;color:#15803d}
.lct-feedback.ko{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c}
.lct-feedback-exp{font-size:13px;color:#334155;line-height:1.55;margin-top:7px;padding-top:7px;border-top:1px solid rgba(0,0,0,.08)}
.lct-opts{display:flex;flex-direction:column;gap:9px;margin-bottom:12px}
.lct-opt{text-align:left;background:#fff;border:2px solid #e2e8f0;border-radius:12px;padding:13px 15px;cursor:pointer;font:inherit;transition:.12s}
.lct-opt:hover:not(:disabled){border-color:#f472b6;background:#fdf2f8}
.lct-opt.sel{border-color:#db2777;background:#fdf2f8}
.lct-opt.bon{border-color:#16a34a;background:#f0fdf4}
.lct-opt.faux{border-color:#dc2626;background:#fef2f2}
.lct-opt-t{font-size:14px;font-weight:600;color:#1a1430;line-height:1.5}
.lct-opt-exp{font-size:13px;color:#334155;line-height:1.55;margin-top:8px;padding-top:8px;border-top:1px solid #e2e8f0}
.lct-mini-synthese,.lct-synthese{background:#fdf2f8;border:1px solid #fbcfe8;border-left:4px solid #db2777;border-radius:10px;padding:11px 14px;font-size:13.5px;color:#831843;line-height:1.6;margin-bottom:12px}
.lct-synthese-h{font-size:14px;font-weight:800;color:#be185d;margin-bottom:6px}
.lct-synthese p{margin:0 0 8px}
.lct-end{text-align:center}
.lct-medal{font-size:56px}
.lct-end h2{font-size:22px;color:#be185d;margin:4px 0}
.lct-score{font-size:16px;color:#1a1430}.lct-score b{color:#db2777;font-size:19px}
.lct-verdict-txt{font-size:14.5px;color:#475569;line-height:1.6;max-width:560px;margin:6px auto 14px}
.lct-bilan{display:flex;flex-direction:column;gap:8px;text-align:left;max-width:460px;margin:0 auto 14px}
.lct-bilan-card{background:#fff;border:1px solid #f3d4e5;border-radius:11px;padding:11px 14px}
.lct-bilan-head{display:flex;align-items:center;gap:7px;font-size:14px;color:#1a1430}
.lct-bilan-head span{margin-left:auto;font-weight:800;color:#db2777}
.lct-pitch-recap{text-align:left;background:#fff;border:2px solid #fbcfe8;border-radius:12px;padding:14px 16px;max-width:560px;margin:0 auto 14px}
.lct-pitch-recap-h{font-size:14px;font-weight:800;color:#be185d;margin-bottom:9px}
.lct-pitch-line{font-size:13.5px;color:#33302a;line-height:1.5;margin-bottom:7px;display:flex;gap:8px;align-items:baseline}
.lct-pitch-tag{flex:0 0 auto;font-size:10.5px;font-weight:800;letter-spacing:.5px;color:#be185d;background:#fce7f3;border-radius:20px;padding:2px 9px;text-transform:uppercase}
/* ===== Concept 6 — Cellule de crise ===== */
.cri-wrap,.cri{max-width:720px;margin:0 auto}
.cri-back{background:none;border:none;color:#b91c1c;font:inherit;font-size:13.5px;cursor:pointer;margin-bottom:10px;padding:4px 0}
.cri-hub{max-width:780px;margin:0 auto;text-align:center}
.cri-hub-t{font-size:23px;color:#b91c1c;margin-bottom:6px}
.cri-hub-intro{font-size:14.5px;color:#475569;line-height:1.55;max-width:600px;margin:0 auto 18px}
.cri-hub-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.cri-card{background:#fff;border:2px solid #fecaca;border-radius:16px;padding:18px 16px;cursor:pointer;text-align:center;transition:.15s;font:inherit}
.cri-card:hover{border-color:#ef4444;transform:translateY(-2px);box-shadow:0 14px 30px -18px rgba(220,38,38,.5)}
.cri-card-emoji{font-size:40px}
.cri-card-t{font-size:16px;font-weight:800;color:#1a1430;margin-top:6px}
.cri-card-sous{font-size:12.5px;color:#64607a;margin-top:5px;line-height:1.4}
.cri-card-notion{font-size:11px;color:#b91c1c;background:#fef2f2;border-radius:8px;padding:6px 8px;margin-top:8px;line-height:1.4}
.cri-card-done{font-size:12px;color:#16a34a;font-weight:700;margin-top:8px}
.cri-card-go{font-size:13px;font-weight:700;color:#dc2626;margin-top:8px}
.cri-alert-band{background:linear-gradient(90deg,#b91c1c,#dc2626);color:#fff;font-weight:800;font-size:13px;letter-spacing:.5px;text-align:center;border-radius:10px;padding:8px 12px;margin-bottom:12px}
.cri-band-live{animation:criPulse 1.6s ease-in-out infinite}
@keyframes criPulse{0%,100%{box-shadow:0 0 0 0 rgba(220,38,38,.35)}50%{box-shadow:0 0 0 6px rgba(220,38,38,0)}}
.cri-intro-card{background:#fff;border:2px solid #fecaca;border-radius:18px;padding:20px;text-align:center}
.cri-intro-img{width:100%;max-height:200px;object-fit:cover;border-radius:12px;margin-bottom:12px}
.cri-niveau{font-size:11px;font-weight:800;letter-spacing:1px;color:#dc2626;text-transform:uppercase}
.cri-intro-t{font-size:22px;color:#991b1b;margin:5px 0}
.cri-role{font-size:14px;color:#475569;margin-bottom:10px}.cri-role b{color:#b91c1c}
.cri-pitch{font-size:14px;color:#334155;line-height:1.6;text-align:left;background:#fef2f2;border-radius:12px;padding:13px 15px;margin-bottom:12px}
.cri-fiche{text-align:left;background:#fff;border:1px solid #fecaca;border-radius:12px;padding:12px 14px;margin-bottom:12px}
.cri-fiche-h{font-size:14px;font-weight:800;color:#991b1b;margin-bottom:3px}
.cri-fiche-leg{font-size:12.5px;color:#64748b;font-style:italic;margin-bottom:8px}
.cri-fiche-row{display:flex;justify-content:space-between;gap:12px;font-size:13px;padding:4px 0;border-top:1px solid #fde8e8}
.cri-fiche-row span{color:#64748b}.cri-fiche-row b{color:#1a1430;text-align:right}
.cri-notion{font-size:12.5px;color:#7f1d1d;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;padding:10px 13px;margin-bottom:14px;line-height:1.5;text-align:left}
.cri-cta{background:linear-gradient(90deg,#dc2626,#b91c1c);color:#fff;border:none;border-radius:12px;padding:13px 22px;font:inherit;font-size:15px;font-weight:700;cursor:pointer;width:100%;transition:.15s}
.cri-cta:hover{filter:brightness(1.07)}
.cri-jauges{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:9px;margin-bottom:12px}
.cri-jauge{background:#fff;border:1px solid #fecaca;border-radius:10px;padding:8px 11px}
.cri-jauge-top{display:flex;justify-content:space-between;font-size:12.5px;color:#475569;margin-bottom:5px}
.cri-jauge-top b{font-size:14px}
.cri-jauge-bar{height:7px;background:#f1f5f9;border-radius:4px;overflow:hidden}
.cri-jauge-bar span{display:block;height:100%;border-radius:4px;transition:width .4s,background .4s}
.cri-prog{font-size:12.5px;font-weight:700;color:#b91c1c;margin-bottom:10px}
.cri-fil{background:#1f2937;border-radius:12px;padding:10px 12px;margin-bottom:12px}
.cri-fil-row{display:flex;gap:8px;align-items:baseline;font-size:12.5px;color:#e5e7eb;padding:3px 0;line-height:1.45}
.cri-fil-row.ok .cri-fil-txt b{color:#4ade80}
.cri-fil-row.ko .cri-fil-txt b{color:#f87171}
.cri-fil-time{color:#9ca3af;flex:0 0 auto}
.cri-situation{background:#fff;border:2px solid #fed7aa;border-left:5px solid #ea580c;border-radius:12px;padding:13px 15px;margin-bottom:12px}
.cri-situation-h{font-size:15px;font-weight:800;color:#9a3412;margin-bottom:5px}
.cri-situation-txt{font-size:14px;color:#334155;line-height:1.6;margin:0}
.cri-det{margin-bottom:12px}
.cri-det-toggle{background:#fff7ed;border:1px dashed #fdba74;border-radius:10px;padding:9px 13px;font:inherit;font-size:13px;color:#9a3412;cursor:pointer;width:100%;text-align:left;font-weight:600}
.cri-det-body{background:#fffbeb;border:1px solid #fde68a;border-top:none;border-radius:0 0 10px 10px;padding:12px 14px;margin-top:-4px}
.cri-det-block{margin-bottom:10px}
.cri-det-t{font-size:13.5px;font-weight:800;color:#92400e;margin-bottom:4px}
.cri-det-intro{font-size:13px;color:#475569;line-height:1.5;margin:0 0 7px}
.cri-det-row{display:flex;justify-content:space-between;gap:12px;font-size:12.5px;padding:3px 0;border-top:1px solid #fef3c7}
.cri-det-row span{color:#64748b}.cri-det-row b{color:#1a1430}
.cri-det-exp{font-size:12.5px;color:#334155;line-height:1.55;margin-top:7px;padding-top:7px;border-top:1px solid #fde68a}
.cri-q{font-size:15.5px;font-weight:700;color:#1a1430;margin-bottom:8px}
.cri-aide{font-size:13px;color:#9a3412;background:#fff7ed;border-radius:9px;padding:8px 12px;margin-bottom:10px;line-height:1.5}
.cri-opts{display:flex;flex-direction:column;gap:9px;margin-bottom:12px}
.cri-opt{text-align:left;background:#fff;border:2px solid #e2e8f0;border-radius:12px;padding:13px 15px;cursor:pointer;font:inherit;transition:.12s}
.cri-opt:hover:not(:disabled){border-color:#fb923c;background:#fff7ed}
.cri-opt.sel{border-color:#dc2626;background:#fef2f2}
.cri-opt.bon{border-color:#16a34a;background:#f0fdf4}
.cri-opt.faux{border-color:#dc2626;background:#fef2f2}
.cri-opt-t{font-size:14px;font-weight:600;color:#1a1430;line-height:1.5}
.cri-opt-exp{font-size:13px;color:#334155;line-height:1.55;margin-top:8px;padding-top:8px;border-top:1px solid #e2e8f0}
.cri-mini-synthese{background:#fef2f2;border:1px solid #fecaca;border-left:4px solid #dc2626;border-radius:10px;padding:11px 14px;font-size:13.5px;color:#7f1d1d;line-height:1.6;margin-bottom:12px}
.cri-end{text-align:center}
.cri-medal{font-size:56px}
.cri-end h2{font-size:22px;color:#991b1b;margin:4px 0}
.cri-score{font-size:16px;color:#1a1430}.cri-score b{color:#dc2626;font-size:19px}
.cri-verdict-txt{font-size:14.5px;color:#475569;line-height:1.6;max-width:580px;margin:6px auto 14px}
.cri-end-jauges{display:flex;flex-direction:column;gap:8px;max-width:460px;margin:0 auto 14px}
.cri-end-jauge{display:flex;align-items:center;gap:10px}
.cri-end-jlab{flex:0 0 140px;text-align:left;font-size:13px;color:#475569}
.cri-end-jbar{flex:1;height:9px;background:#f1f5f9;border-radius:5px;overflow:hidden}
.cri-end-jbar span{display:block;height:100%;border-radius:5px}
.cri-end-jval{flex:0 0 32px;text-align:right;font-weight:800;font-size:14px}
.cri-recap{text-align:left;background:#fff;border:2px solid #fecaca;border-radius:12px;padding:14px 16px;max-width:580px;margin:0 auto 14px}
.cri-recap-h{font-size:14px;font-weight:800;color:#991b1b;margin-bottom:9px}
.cri-recap-line{font-size:13.5px;color:#33302a;line-height:1.5;margin-bottom:7px;display:flex;gap:8px;align-items:baseline}
.cri-recap-tag{flex:0 0 auto;font-size:10.5px;font-weight:800;letter-spacing:.5px;color:#991b1b;background:#fee2e2;border-radius:20px;padding:2px 9px;text-transform:uppercase}
.cri-synthese{background:#fef2f2;border:1px solid #fecaca;border-left:4px solid #dc2626;border-radius:10px;padding:12px 15px;font-size:13.5px;color:#7f1d1d;line-height:1.6;margin:0 auto 14px;max-width:580px;text-align:left}
.cri-synthese-h{font-size:14px;font-weight:800;color:#991b1b;margin-bottom:6px}
.cri-synthese p{margin:0 0 8px}
/* ---- Dossier documentaire (réutilisable) ---- */
.docs{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:13px 15px;margin-bottom:14px}
.docs-head{font-size:13px;font-weight:800;color:#334155;margin-bottom:4px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.docs-requis{font-size:10.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:#b45309;background:#fef3c7;border-radius:20px;padding:2px 9px}
.docs-bonus{font-size:10.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:#0f766e;background:#ccfbf1;border-radius:20px;padding:2px 9px}
.docs-intro{font-size:12.5px;color:#52596b;line-height:1.5;margin:4px 0 10px}
.docs-strip{display:flex;gap:10px;flex-wrap:wrap}
.docs-vignette{position:relative;flex:1 1 150px;min-width:140px;max-width:210px;text-align:left;background:#fff;border:2px solid #e2e8f0;border-radius:11px;padding:11px 12px;cursor:pointer;font:inherit;transition:.12s;display:flex;flex-direction:column;gap:5px}
.docs-vignette:hover{border-color:#94a3b8;transform:translateY(-2px);box-shadow:0 10px 22px -16px rgba(0,0,0,.4)}
.docs-vignette.vu{border-color:#86efac;background:#f0fdf4}
.docs-vig-ico{font-size:26px}
.docs-vig-t{font-size:12.5px;font-weight:700;color:#1a1430;line-height:1.3}
.docs-vig-zoom{font-size:11px;font-weight:700;color:#64748b}
.docs-vig-vu{position:absolute;top:8px;right:10px;font-size:10.5px;font-weight:800;color:#15803d}
.docs-gate{font-size:12.5px;color:#b45309;background:#fffbeb;border:1px solid #fde68a;border-radius:9px;padding:9px 12px;margin-bottom:10px;line-height:1.45}
/* modal zoom */
.docs-modal{position:fixed;inset:0;background:rgba(15,18,30,.72);display:flex;align-items:center;justify-content:center;padding:18px;z-index:9999}
.docs-modal-inner{background:#fff;border-radius:16px;max-width:560px;width:100%;max-height:90vh;overflow:auto;padding:16px 16px 20px;position:relative;box-shadow:0 30px 70px -20px rgba(0,0,0,.6)}
.docs-modal-x{position:sticky;top:0;float:right;background:#1a1430;color:#fff;border:none;border-radius:8px;padding:6px 12px;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;z-index:2}
.docs-modal-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;font-size:13px;color:#64748b;font-weight:700}
.docs-modal-nav button{background:#f1f5f9;border:none;border-radius:8px;padding:7px 13px;font:inherit;font-weight:700;font-size:12.5px;cursor:pointer;color:#334155}
.docs-modal-nav button:disabled{opacity:.4;cursor:not-allowed}
/* fac-similés communs */
.doc-fx{background:#fff;border-radius:10px}
.doc-fx-zoom{padding:4px}
/* article de presse */
.doc-fx-article{border:1px solid #e2e8f0;padding:16px 18px}
.doca-journal{font-family:Fraunces,Georgia,serif;font-size:18px;font-weight:900;color:#1a1430;border-bottom:3px double #1a1430;padding-bottom:5px;display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:6px}
.doca-rubrique{font-family:system-ui,sans-serif;font-size:10px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:#be185d}
.doca-meta{font-size:11px;color:#94a3b8;margin:6px 0 8px}
.doca-titre{font-family:Fraunces,Georgia,serif;font-size:19px;line-height:1.25;color:#1a1430;margin:0 0 7px;font-weight:800}
.doca-chapo{font-size:13.5px;font-weight:700;color:#33405b;line-height:1.5;margin:0 0 9px}
.doca-corps{column-count:1;font-size:13px;color:#3a3f55;line-height:1.6}
.doc-fx-zoom .doca-corps{column-count:2;column-gap:20px}
.doca-corps p{margin:0 0 8px}
.doca-encadre{margin-top:12px;background:#fdf2f8;border-left:3px solid #db2777;border-radius:8px;padding:10px 13px;font-size:12.5px}
.doca-encadre b{color:#be185d;display:block;margin-bottom:5px}
.doca-enc-row{display:flex;justify-content:space-between;gap:10px;padding:2px 0;color:#3a3f55}
.doca-enc-val{font-weight:800;color:#1a1430}
/* post réseau social */
.doc-fx-post{border:1px solid #e2e8f0;padding:0;overflow:hidden;max-width:380px;margin:0 auto}
.docp-head{display:flex;align-items:center;gap:9px;padding:11px 13px}
.docp-avatar{width:38px;height:38px;border-radius:50%;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:17px;flex:0 0 auto}
.docp-nom{font-size:13.5px;font-weight:800;color:#1a1430}
.docp-check{color:#3b82f6;font-size:12px}
.docp-handle{font-size:11.5px;color:#94a3b8}
.docp-img{height:150px;display:flex;align-items:center;justify-content:center;font-size:54px}
.doc-fx-zoom .docp-img{height:230px;font-size:80px}
.docp-texte{font-size:13.5px;color:#1a1430;line-height:1.5;padding:11px 13px 4px}
.docp-tags{font-size:12.5px;color:#2563eb;font-weight:600;padding:0 13px 9px}
.docp-stats{font-size:12px;color:#64748b;padding:8px 13px;border-top:1px solid #f1f5f9}
.docp-comment{font-size:12.5px;color:#3a3f55;line-height:1.45;padding:8px 13px 12px;border-top:1px solid #f1f5f9}
.docp-comment b{color:#1a1430}
/* infographie data */
.doc-fx-data{border:1px solid #e2e8f0;padding:14px 16px}
.docd-titre{font-size:14px;font-weight:800;color:#1a1430;margin-bottom:2px}
.docd-source{font-size:11px;color:#94a3b8;margin-bottom:8px}
.docd-svg{width:100%;height:auto;display:block}
.docd-note{font-size:12px;color:#52596b;line-height:1.5;margin-top:8px;font-style:italic}
/* affiche image */
.doc-fx-affiche{text-align:center}
.docaf-img{width:100%;border-radius:8px;display:block}
.docaf-placeholder{background:repeating-linear-gradient(45deg,#fdf2f8,#fdf2f8 12px,#fce7f3 12px,#fce7f3 24px);border:2px dashed #f9a8d4;border-radius:10px;padding:40px 20px;font-size:46px;color:#db2777}
.docaf-ph-txt{font-size:13px;font-weight:700;color:#be185d;margin-top:8px;line-height:1.4}
.docaf-ph-txt small{font-weight:500;color:#a3567f;font-size:11px}
.docaf-legende{font-size:12px;color:#64748b;font-style:italic;margin-top:7px}
/* ===== Documents Concept 6 : terminal / mail / sms / officiel ===== */
.doc-fx-terminal{background:#0b1020;border-radius:10px;overflow:hidden;border:1px solid #1e293b}
.doct-bar{background:#1e293b;display:flex;align-items:center;gap:6px;padding:7px 11px}
.doct-dot{width:11px;height:11px;border-radius:50%;display:inline-block}
.doct-dot.r{background:#ef4444}.doct-dot.y{background:#f59e0b}.doct-dot.g{background:#22c55e}
.doct-title{color:#94a3b8;font-size:12px;margin-left:8px;font-family:'SFMono-Regular',Consolas,'Liberation Mono',monospace}
.doct-body{padding:13px 14px;font-family:'SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:12.5px;line-height:1.65;color:#cbd5e1;max-height:none}
.doct-line{white-space:pre-wrap;word-break:break-word}
.doct-prompt{color:#22c55e;margin-right:7px}
.doct-cmd{color:#e2e8f0}
.doct-err{color:#f87171;font-weight:700}
.doct-warn{color:#fbbf24}
.doct-ok{color:#4ade80}
.doct-info{color:#60a5fa}
.doct-note{padding:9px 14px;background:#111827;color:#94a3b8;font-size:11.5px;border-top:1px solid #1e293b;font-style:italic}
.doc-fx-zoom.doc-fx-terminal .doct-body{font-size:13.5px}
.doc-fx-mail{background:#fff;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden}
.docm-head{background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:11px 14px}
.docm-row{display:flex;gap:8px;font-size:12.5px;margin-bottom:3px}
.docm-lab{color:#94a3b8;flex:0 0 38px;font-weight:600}
.docm-val{color:#334155;word-break:break-word}
.docm-objet{font-size:14.5px;font-weight:800;color:#1a1430;margin-top:7px;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.docm-urgent{background:#fef2f2;color:#dc2626;font-size:10.5px;font-weight:800;border:1px solid #fecaca;border-radius:5px;padding:2px 7px}
.docm-corps{padding:13px 15px;font-size:13.5px;color:#334155;line-height:1.6}
.docm-corps p{margin:0 0 9px}
.docm-piece{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:7px;padding:8px 11px;font-size:12.5px;color:#475569;display:inline-block;margin-top:4px}
.docm-sign{padding:0 15px 14px;font-size:12.5px;color:#64748b;font-style:italic;white-space:pre-line}
.docsms-head{display:flex;align-items:center;gap:9px;background:#f1f5f9;border-radius:10px 10px 0 0;padding:10px 13px;border:1px solid #e2e8f0;border-bottom:none}
.docsms-ava{width:30px;height:30px;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px}
.docsms-nom{font-weight:700;color:#1a1430;font-size:14px}
.docsms-statut{margin-left:auto;font-size:11px;color:#16a34a}
.docsms-fil{background:#e5ddd5;background-image:linear-gradient(135deg,#ece5dd,#e5ddd5);padding:13px;display:flex;flex-direction:column;gap:8px;border:1px solid #e2e8f0;border-top:none;border-radius:0 0 10px 10px}
.docsms-bulle{max-width:78%;padding:8px 12px;border-radius:13px;font-size:13.5px;line-height:1.45;position:relative;box-shadow:0 1px 1px rgba(0,0,0,.08)}
.docsms-bulle.lui{align-self:flex-start;background:#fff;color:#1a1430;border-bottom-left-radius:4px}
.docsms-bulle.moi{align-self:flex-end;background:#d9fdd3;color:#111b21;border-bottom-right-radius:4px}
.docsms-h{display:block;font-size:9.5px;color:#667781;text-align:right;margin-top:2px}
.doc-fx-officiel{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:18px 20px}
.doco-entete{display:flex;align-items:center;gap:11px;border-bottom:2px solid #1a1430;padding-bottom:11px;margin-bottom:12px}
.doco-logo{font-size:30px;flex:0 0 auto}
.doco-orgnom{font-size:15px;font-weight:900;color:#1a1430;letter-spacing:.3px}
.doco-sousorg{font-size:11.5px;color:#64748b}
.doco-type{font-size:11px;font-weight:800;letter-spacing:1.5px;color:#b91c1c;text-transform:uppercase;margin-bottom:6px}
.doco-titre{font-size:16px;font-weight:800;color:#1a1430;margin:0 0 6px;line-height:1.35}
.doco-date{font-size:12px;color:#64748b;font-style:italic;margin-bottom:11px}
.doco-corps{font-size:13.5px;color:#334155;line-height:1.65;text-align:justify}
.doco-corps p{margin:0 0 9px}
.doco-signataire{margin-top:13px;font-size:12.5px;color:#1a1430;font-weight:600;white-space:pre-line;text-align:right}
.doco-cachet{margin-top:10px;display:inline-block;border:2px solid #94a3b8;color:#64748b;border-radius:8px;padding:5px 13px;font-size:11px;font-weight:700;text-transform:uppercase;transform:rotate(-4deg);opacity:.7}
/* ===== La qualification juridique ===== */
.qlf-wrap{max-width:760px;margin:0 auto}
.qlf{max-width:720px;margin:0 auto}
.qlf-badge{display:inline-block;background:#7f1d1d;color:#fff;font-size:11px;font-weight:800;letter-spacing:1px;padding:5px 12px;border-radius:20px;margin-bottom:12px}
.qlf-titre{font-size:22px;font-weight:900;color:#1a1430;margin:0 0 14px}
.qlf-situation{background:#fef7f7;border:1px solid #fadcdc;border-left:4px solid #b91c1c;border-radius:10px;padding:14px 16px;margin-bottom:14px}
.qlf-situation-h{font-size:12px;font-weight:800;letter-spacing:.5px;color:#b91c1c;text-transform:uppercase;margin-bottom:8px}
.qlf-intro-img{margin:0 0 14px;border-radius:12px;overflow:hidden;border:1px solid #eadcdc;box-shadow:0 10px 24px -14px rgba(185,28,28,.4)}
.qlf-intro-img img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.qlf-situation p{font-size:14px;line-height:1.6;color:#374151;margin:0 0 9px}
.qlf-situation p:last-child{margin-bottom:0}
.qlf-mission{background:#fff7ed;border:1px solid #fed7aa;border-radius:9px;padding:11px 14px;font-size:14px;font-weight:600;color:#9a3412;margin-bottom:14px}
.qlf-method{background:#f5f3ff;border:1px solid #ddd6fe;border-radius:9px;padding:11px 14px;font-size:13.5px;line-height:1.55;color:#4c1d95;margin-bottom:16px}
.qlf-exam{background:#fffbeb;border:1px solid #fde68a;border-left:4px solid #f59e0b;border-radius:9px;padding:11px 14px;font-size:13.5px;line-height:1.55;color:#854d0e;margin-bottom:12px}
.qlf-cta{width:100%;margin-top:14px;padding:14px;border-radius:13px;background:linear-gradient(120deg,#b91c1c,#dc2626);color:#fff;font-size:15.5px;font-weight:800;cursor:pointer;transition:.18s;box-shadow:0 12px 24px -10px rgba(185,28,28,.5)}
.qlf-cta:hover{filter:brightness(1.06)}
.qlf-cta:disabled{cursor:not-allowed}
.qlf-prog{margin-bottom:14px}
.qlf-prog-bar{height:7px;background:#f1e4e4;border-radius:6px;overflow:hidden}
.qlf-prog-bar span{display:block;height:100%;background:linear-gradient(90deg,#b91c1c,#f87171);transition:width .3s}
.qlf-prog-txt{font-size:12px;color:#9a6a6a;font-weight:600;margin-top:5px;text-align:right}
.qlf-rappel{margin-bottom:14px;border:1px solid #eadcdc;border-radius:9px;overflow:hidden}
.qlf-rappel summary{cursor:pointer;padding:9px 13px;font-size:13px;font-weight:700;color:#b91c1c;background:#fef7f7;list-style:none}
.qlf-rappel summary::-webkit-details-marker{display:none}
.qlf-rappel-body{padding:12px 14px;font-size:13px;line-height:1.55;color:#4b5563}
.qlf-rappel-body p{margin:0 0 8px}
.qlf-q-type{font-size:11px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;color:#b91c1c;margin-bottom:6px}
.qlf-q{font-size:16px;font-weight:700;color:#1a1430;line-height:1.4;margin-bottom:14px}
.qlf-opts{display:flex;flex-direction:column;gap:9px}
.qlf-opt{text-align:left;padding:13px 15px;border-radius:11px;border:2px solid #e7e0e0;background:#fff;font-size:14px;line-height:1.45;color:#1f2937;cursor:pointer;transition:.15s}
.qlf-opt:hover:not(:disabled){border-color:#b91c1c;background:#fef7f7}
.qlf-opt:disabled{cursor:default}
.qlf-opt.bon{border-color:#16a34a;background:#f0fdf4}
.qlf-opt.faux{border-color:#dc2626;background:#fef2f2}
.qlf-feedback{margin-top:13px;padding:12px 15px;border-radius:10px;font-size:14px;line-height:1.55}
.qlf-feedback.ok{background:#f0fdf4;border:1px solid #bbf7d0;color:#14532d}
.qlf-feedback.ko{background:#fef2f2;border:1px solid #fecaca;color:#7f1d1d}
.qlf-match{display:flex;gap:16px;flex-wrap:wrap}
.qlf-match-col{flex:1;min-width:260px;display:flex;flex-direction:column;gap:9px}
.qlf-match-row{display:flex;align-items:center;gap:8px}
.qlf-match-lab{flex:1;text-align:left;padding:10px 12px;border-radius:9px;border:2px solid #e7e0e0;background:#fff;font-size:13px;font-weight:600;color:#1f2937;cursor:pointer;transition:.15s}
.qlf-match-lab.sel{border-color:#b91c1c;background:#fef7f7;box-shadow:0 0 0 3px rgba(185,28,28,.15)}
.qlf-match-lab.bon{border-color:#16a34a;background:#f0fdf4}
.qlf-match-lab.faux{border-color:#dc2626;background:#fef2f2}
.qlf-match-arrow{color:#b91c1c;font-weight:800}
.qlf-match-slot{flex:0 0 130px;font-size:12.5px;color:#9ca3af;font-style:italic;padding:8px 10px;border:1px dashed #d6c5c5;border-radius:8px;min-height:20px}
.qlf-match-slot.filled{color:#1f2937;font-style:normal;font-weight:600;border-style:solid;background:#faf5f5}
.qlf-tags{flex:0 0 200px;display:flex;flex-direction:column;gap:8px;padding:11px;background:#faf5f5;border-radius:11px;border:1px solid #eadcdc}
.qlf-tag{padding:9px 11px;border-radius:8px;border:2px solid #d4b4b4;background:#fff;font-size:13px;font-weight:600;color:#7f1d1d;cursor:pointer;transition:.15s}
.qlf-tag:hover:not(:disabled){background:#b91c1c;color:#fff;border-color:#b91c1c}
.qlf-tag.used{opacity:.35;cursor:default}
.qlf-aide{background:#fffbeb;border:1px solid #fde68a;border-radius:9px;padding:10px 13px;font-size:13.5px;color:#92400e;margin-bottom:11px}
.qlf-textarea{width:100%;min-height:90px;padding:12px 14px;border-radius:11px;border:2px solid #e7e0e0;font-size:14px;line-height:1.5;font-family:inherit;resize:vertical;color:#1f2937}
.qlf-textarea:focus{outline:none;border-color:#b91c1c}
.qlf-textarea:disabled{background:#faf7f7;color:#6b7280}
.qlf-correction{margin-top:13px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:11px;padding:14px 16px}
.qlf-analyse{margin-top:13px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:11px;padding:14px 16px}
.qlf-analyse-h{font-size:13px;font-weight:800;color:#334155;margin-bottom:10px}
.qlf-analyse-court{font-size:13.5px;color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:9px 12px;margin:0}
.qlf-analyse-intro{font-size:13px;color:#475569;margin-bottom:10px}
.qlf-analyse-score{display:flex;align-items:center;gap:12px;margin-bottom:11px}
.qlf-analyse-pct{font-family:'Fraunces',Georgia,serif;font-size:32px;font-weight:900;line-height:1}
.qlf-analyse-pct.ok{color:#16a34a}.qlf-analyse-pct.moy{color:#d97706}.qlf-analyse-pct.ko{color:#dc2626}
.qlf-analyse-detail{font-size:13px;color:#64748b;font-weight:600}
.qlf-notions{display:flex;flex-direction:column;gap:6px}
.qlf-notion{display:flex;align-items:center;gap:8px;padding:7px 11px;border-radius:8px;font-size:13.5px}
.qlf-notion.trouve{background:#f0fdf4;border:1px solid #bbf7d0;color:#14532d}
.qlf-notion.manque{background:#fff;border:1px dashed #cbd5e1;color:#64748b}
.qlf-notion-ico{flex:0 0 auto}
.qlf-notion-cle{flex:1;font-weight:600}
.qlf-notion-tag{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:5px;padding:2px 6px}
.qlf-analyse-note{font-size:12px;color:#94a3b8;font-style:italic;margin:11px 0 0}
.qlf-correction-h{font-size:13px;font-weight:800;color:#14532d;margin-bottom:8px}
.qlf-correction p{font-size:14px;line-height:1.6;color:#1f2937;margin:0 0 9px}
.qlf-correction-exp{font-size:13px;color:#15803d;font-style:italic}
.qlf-auto{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:10px;padding-top:11px;border-top:1px dashed #bbf7d0}
.qlf-auto>span{font-size:13px;font-weight:700;color:#374151}
.qlf-auto-btn{padding:9px 14px;border-radius:9px;font-size:13px;font-weight:700;cursor:pointer;border:2px solid}
.qlf-auto-btn.ok{border-color:#16a34a;background:#fff;color:#16a34a}
.qlf-auto-btn.ok:hover{background:#16a34a;color:#fff}
.qlf-auto-btn.ko{border-color:#dc2626;background:#fff;color:#dc2626}
.qlf-auto-btn.ko:hover{background:#dc2626;color:#fff}
.qlf-end{text-align:center}
.qlf-score{font-family:'Fraunces',Georgia,serif;font-size:54px;font-weight:900;color:#b91c1c;line-height:1}
.qlf-verdict{font-size:17px;font-weight:700;color:#1a1430;margin:8px 0 18px}
.qlf-synth{text-align:left;background:#fef7f7;border:1px solid #fadcdc;border-radius:11px;padding:15px 17px;margin-bottom:14px}
.qlf-synth-h{font-size:13px;font-weight:800;color:#b91c1c;margin-bottom:10px}
.qlf-synth-row{display:flex;gap:10px;padding:7px 0;border-bottom:1px solid #f5e3e3;font-size:13.5px}
.qlf-synth-row:last-child{border-bottom:none}
.qlf-synth-lab{flex:0 0 110px;font-weight:800;color:#7f1d1d}
.qlf-synth-val{color:#374151;line-height:1.5}
.qlf-conclusion{text-align:left;background:#f5f3ff;border:1px solid #ddd6fe;border-radius:10px;padding:13px 15px;font-size:13.5px;line-height:1.6;color:#4c1d95;margin-bottom:6px}
.qlf-phrase{text-align:left;background:#f0fdf4;border:1px solid #bbf7d0;border-left:4px solid #16a34a;border-radius:10px;padding:14px 17px;margin-bottom:14px}
.qlf-phrase-h{font-size:12px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:#16a34a;margin-bottom:8px}
.qlf-phrase p{font-size:16px;line-height:1.65;color:#14532d;margin:0;font-weight:500}
@media(max-width:560px){.qlf-match{flex-direction:column}.qlf-tags{flex:1}.qlf-match-slot{flex:0 0 90px}}
/* ===== ETLV — Vocabulary trainer ===== */
.ep-prog{max-width:760px;display:flex;flex-direction:column;gap:14px}
.ep-prog-card{background:#fff;border:1px solid #e2e8f0;border-radius:13px;padding:18px 20px}
.ep-prog-card.highlight{background:#eff6ff;border-color:#bfdbfe}
.ep-prog-card h3{font-family:'Fraunces',Georgia,serif;font-size:17px;font-weight:800;color:#1e3a8a;margin:0 0 10px}
.ep-prog-card p{font-size:14.5px;line-height:1.6;color:#374151;margin:0 0 8px}
.ep-prog-card ul{margin:6px 0 0;padding-left:20px}
.ep-prog-card li{font-size:14px;line-height:1.55;color:#374151;margin:5px 0}
.ep-levels{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}
.ep-level{display:flex;flex-direction:column;align-items:center;justify-content:center;width:90px;height:78px;border-radius:12px;font-size:24px;font-weight:900;color:#fff}
.ep-level small{font-size:10px;font-weight:600;margin-top:4px;opacity:.95;text-transform:uppercase;letter-spacing:.3px}
.ep-level.a2{background:#60a5fa}.ep-level.b1{background:#3b82f6}.ep-level.b2{background:#6d28d9}
.ep-note{font-style:italic;color:#64748b !important;font-size:13.5px !important}
.ep-prog-refs{font-size:12.5px;color:#64748b;line-height:1.6;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:13px 16px}
.ec-nivs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.ec-niv{padding:9px 16px;border-radius:11px;border:2px solid #e2e8f0;background:#fff;font-size:14px;font-weight:800;color:#475569;cursor:pointer;transition:.15s}
.ec-niv:hover{border-color:#2563eb;color:#2563eb}
.ec-niv.on{background:linear-gradient(120deg,#2563eb,#1d4ed8);border-color:#1d4ed8;color:#fff}
.ec-count{font-size:12px;color:#94a3b8;font-weight:600;margin:0 0 10px;text-transform:uppercase;letter-spacing:.5px}
.ec-empty{text-align:center;color:#94a3b8;padding:24px;font-style:italic}
.ec-cats{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.ec-cat{padding:9px 16px;border-radius:22px;border:1px solid #cbd5e1;background:#fff;font-size:14px;font-weight:700;color:#475569;cursor:pointer;transition:.15s}
.ec-cat:hover{border-color:#2563eb;color:#2563eb}
.ec-cat.on{background:#1e3a8a;border-color:#1e3a8a;color:#fff}
.ec-list{display:flex;flex-direction:column;gap:10px;max-width:760px}
.ec-card{border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;background:#fff;transition:.15s}
.ec-card.open{border-color:#bfdbfe;box-shadow:0 8px 20px -14px rgba(37,99,235,.4)}
.ec-card-head{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:15px 18px;background:transparent;border:none;cursor:pointer;text-align:left}
.ec-card-title{font-family:'Fraunces',Georgia,serif;font-size:16.5px;font-weight:800;color:#1e3a8a}
.ec-card-chev{color:#94a3b8;font-size:12px;flex-shrink:0}
.ec-card-body{padding:0 18px 18px;animation:ecFade .2s ease}
@keyframes ecFade{from{opacity:0}to{opacity:1}}
.ec-html{font-size:14.5px;line-height:1.65;color:#374151}
.ec-html h2{font-size:15px}
.ec-html ul{margin:8px 0;padding-left:20px}
.ec-html li{margin:4px 0}
.ec-html table{width:100%;border-collapse:collapse;margin:10px 0;font-size:13.5px}
.ec-html th,.ec-html td{border:1px solid #e2e8f0;padding:7px 10px;text-align:left}
.ec-html th{background:#eff6ff;color:#1e40af;font-weight:700}
.ec-html blockquote{background:#fffbeb;border-left:4px solid #f59e0b;border-radius:8px;padding:10px 14px;margin:10px 0;color:#854d0e;font-size:13.5px}
.ec-html i{color:#1e40af}
.ec-exo{margin-top:16px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:11px;padding:14px 16px}
.ec-exo-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px;flex-wrap:wrap}
.ec-exo-nav{display:flex;align-items:center;gap:6px}
.ec-exo-counter{font-size:12px;font-weight:700;color:#15803d;background:#dcfce7;border-radius:6px;padding:3px 9px}
.ec-exo-arrow{width:30px;height:30px;border-radius:8px;border:1px solid #bbf7d0;background:#fff;color:#16a34a;font-size:15px;font-weight:800;cursor:pointer;transition:.15s}
.ec-exo-arrow:hover{background:#16a34a;color:#fff;border-color:#16a34a}
.ec-exo-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.ec-exo-next{background:#16a34a;border:none;border-radius:8px;padding:6px 14px;font-size:12.5px;font-weight:700;cursor:pointer;color:#fff}
.ec-exo-next:hover{background:#15803d}
.ec-exo-score{margin-top:10px;font-size:12.5px;font-weight:700;color:#15803d;text-align:right}
.ec-exo-h{font-size:13px;font-weight:800;color:#16a34a;margin-bottom:9px}
.ec-exo-tag{font-size:10.5px;background:#dcfce7;color:#15803d;border-radius:5px;padding:2px 7px;margin-left:5px;font-weight:700;text-transform:uppercase;letter-spacing:.3px}
.ec-exo-q{font-size:14.5px;font-weight:600;color:#14532d;margin-bottom:11px}
.ec-exo-opts{display:flex;flex-direction:column;gap:7px}
.ec-exo-opt{text-align:left;padding:10px 14px;border-radius:9px;border:2px solid #d1fae5;background:#fff;font-size:14px;color:#1f2937;cursor:pointer;transition:.15s}
.ec-exo-opt:hover:not(:disabled){border-color:#16a34a;background:#f0fdf4}
.ec-exo-opt:disabled{cursor:default}
.ec-exo-opt.good{border-color:#16a34a;background:#dcfce7;font-weight:700}
.ec-exo-opt.wrong{border-color:#dc2626;background:#fef2f2}
.ec-exo-fb{margin-top:10px;font-size:13.5px;line-height:1.5;color:#14532d}
.ec-exo-fb.ko{color:#7f1d1d}
.ec-exo-retry{display:block;margin-top:8px;background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:6px 12px;font-size:12.5px;font-weight:700;cursor:pointer;color:#475569}
.etlv-mini{max-width:640px;margin:0 auto}
.etlv-mini-h{font-family:'Fraunces',Georgia,serif;font-size:18px;font-weight:800;color:#1e3a8a;margin-bottom:6px;text-align:center}
.etlv-mini-info{font-size:13.5px;color:#64748b;text-align:center;margin-bottom:16px}
.etlv-mem-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.etlv-mem-card{aspect-ratio:3/2;border-radius:11px;border:2px solid #e2e8f0;background:#f8fafc;font-size:13px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:6px;text-align:center;color:#cbd5e1;transition:.18s}
.etlv-mem-card.up{color:#1f2937;background:#fff}
.etlv-mem-card.up.en{border-color:#2563eb;background:#eff6ff;color:#1e40af}
.etlv-mem-card.up.fr{border-color:#7c3aed;background:#f5f3ff;color:#5b21b6}
.etlv-mem-card.done{opacity:.4;border-color:#16a34a}
.etlv-mem-card:not(.up):hover{background:#eef2ff;border-color:#bfdbfe}
.etlv-vf-card{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;background:#f8fafc;border-radius:14px;padding:24px;margin-bottom:16px}
.etlv-vf-en{font-size:22px;font-weight:800;color:#1e40af}
.etlv-vf-eq{font-size:22px;color:#94a3b8}
.etlv-vf-fr{font-size:22px;font-weight:800;color:#5b21b6}
.etlv-vf-btns{display:flex;gap:12px}
.etlv-vf-btn{flex:1;padding:15px;border-radius:12px;border:2px solid #e2e8f0;background:#fff;font-size:15px;font-weight:800;cursor:pointer;transition:.15s}
.etlv-vf-btn.t:hover:not(:disabled){border-color:#16a34a;background:#f0fdf4}
.etlv-vf-btn.f:hover:not(:disabled){border-color:#dc2626;background:#fef2f2}
.etlv-vf-btn.reveal{border-color:#16a34a;background:#f0fdf4}
.etlv-vf-btn.bad{border-color:#dc2626;background:#fef2f2}
.etlv-intrus-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px;margin-bottom:6px}
.etlv-intrus-card{padding:18px 12px;border-radius:12px;border:2px solid #e2e8f0;background:#fff;font-size:15px;font-weight:700;color:#1f2937;cursor:pointer;transition:.15s}
.etlv-intrus-card:hover:not(:disabled){border-color:#2563eb;background:#eff6ff}
.etlv-intrus-card.good{border-color:#16a34a;background:#f0fdf4}
.etlv-intrus-card.bad{border-color:#dc2626;background:#fef2f2}
@media(max-width:480px){.etlv-mem-grid{grid-template-columns:repeat(3,1fr)}.etlv-vf-btns{flex-direction:column}}
.dict{max-width:720px;margin:0 auto}
.edg-simu{max-width:680px;margin:0 auto}
.edg-simu-hero{text-align:center;background:linear-gradient(135deg,#fff1f2,#fef2f2);border:1px solid #fecdd3;border-radius:18px;padding:28px 22px}
.edg-simu-badge{display:inline-block;background:#e11d48;color:#fff;font-size:12px;font-weight:800;padding:5px 14px;border-radius:20px;margin-bottom:12px}
.edg-simu-hero h2{font-family:'Fraunces',Georgia,serif;font-size:23px;font-weight:900;color:#9f1239;margin:0 0 10px}
.edg-simu-hero p{font-size:14.5px;line-height:1.6;color:#881337;margin:0 0 18px}
.edg-cta{padding:13px 24px;border-radius:13px;background:linear-gradient(120deg,#e11d48,#be123c);color:#fff;font-size:16px;font-weight:800;cursor:pointer;border:none;box-shadow:0 12px 24px -10px rgba(225,29,72,.5);transition:.15s}
.edg-cta:hover{filter:brightness(1.07)}
.edg-cta.ghost{background:#fff;color:#e11d48;border:2px solid #fecdd3;box-shadow:none}
.edg-simu-steps-preview{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:18px}
.edg-step-chip{font-size:22px;width:42px;height:42px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #fecdd3;border-radius:11px}
.edg-progress{height:8px;background:#fce7eb;border-radius:6px;overflow:hidden;margin-bottom:18px}
.edg-progress-bar{height:100%;background:linear-gradient(90deg,#e11d48,#fb7185);transition:width .3s}
.edg-step-head{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.edg-step-ico{font-size:34px;flex-shrink:0}
.edg-step-num{font-size:12px;font-weight:700;color:#e11d48;text-transform:uppercase;letter-spacing:.5px}
.edg-step-head h3{font-family:'Fraunces',Georgia,serif;font-size:19px;font-weight:800;color:#1f2937;margin:2px 0 0}
.edg-step-intro{font-size:14.5px;line-height:1.6;color:#4b5563;background:#f9fafb;border-left:4px solid #fda4af;border-radius:8px;padding:11px 15px;margin-bottom:14px}
.edg-step-q{font-size:16px;font-weight:800;color:#1f2937;margin-bottom:13px}
.edg-opts{display:flex;flex-direction:column;gap:10px}
.edg-opt{text-align:left;padding:14px 16px;border-radius:12px;border:2px solid #e5e7eb;background:#fff;font-size:14.5px;line-height:1.45;color:#1f2937;cursor:pointer;transition:.15s}
.edg-opt:hover:not(:disabled){border-color:#e11d48;background:#fff1f2}
.edg-opt:disabled{cursor:default}
.edg-opt.good{border-color:#16a34a;background:#f0fdf4;font-weight:700}
.edg-opt.wrong{border-color:#dc2626;background:#fef2f2}
.edg-fb{margin-top:16px;font-size:14px;line-height:1.6;padding:15px 17px;border-radius:12px}
.edg-fb.ok{background:#f0fdf4;border:1px solid #bbf7d0;color:#14532d}
.edg-fb.ko{background:#fff7ed;border:1px solid #fed7aa;color:#7c2d12}
.edg-next{display:block;margin-top:14px;background:#e11d48;color:#fff;border:none;border-radius:10px;padding:11px 18px;font-size:14.5px;font-weight:800;cursor:pointer}
.edg-next:hover{background:#be123c}
.edg-end{text-align:center;background:linear-gradient(135deg,#fff1f2,#fef2f2);border:1px solid #fecdd3;border-radius:18px;padding:30px 22px}
.edg-score{font-size:52px;font-weight:900;color:#e11d48;font-family:'Fraunces',Georgia,serif}
.edg-verdict{font-size:18px;font-weight:800;color:#9f1239;margin:6px 0}
.edg-end-sub{font-size:14px;color:#881337;margin-bottom:18px}
.edg-end-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.epb{max-width:680px;margin:0 auto}
.epb-badge{display:inline-block;background:#0d9488;color:#fff;font-size:12px;font-weight:800;padding:5px 14px;border-radius:20px;margin-bottom:10px}
.epb h2{font-family:'Fraunces',Georgia,serif;font-size:22px;font-weight:900;color:#0f766e;margin:0 0 10px}
.epb>p{font-size:14.5px;line-height:1.6;color:#374151;margin:0 0 14px}
.epb-tip{font-size:13.5px;line-height:1.5;color:#115e59;background:#f0fdfa;border:1px solid #99f6e4;border-radius:10px;padding:11px 15px;margin-bottom:16px}
.epb-cta{padding:12px 22px;border-radius:12px;background:linear-gradient(120deg,#0d9488,#0f766e);color:#fff;font-size:15px;font-weight:800;cursor:pointer;border:none;box-shadow:0 10px 22px -10px rgba(13,148,136,.5);transition:.15s}
.epb-cta:hover:not(:disabled){filter:brightness(1.08)}
.epb-cta:disabled{opacity:.45;cursor:default}
.epb-cta.ghost{background:#fff;color:#0d9488;border:2px solid #99f6e4;box-shadow:none}
.epb-progress{height:8px;background:#ccfbf1;border-radius:6px;overflow:hidden;margin-bottom:16px}
.epb-progress-bar{height:100%;background:linear-gradient(90deg,#0d9488,#2dd4bf);transition:width .3s}
.epb-qdg{font-size:13px;font-weight:800;color:#0d9488;background:#f0fdfa;border-radius:8px;padding:8px 12px;margin-bottom:10px}
.epb-org{font-size:15px;color:#1f2937;margin-bottom:6px}
.epb-ctx{font-size:14px;line-height:1.55;color:#4b5563;background:#f9fafb;border-left:4px solid #5eead4;border-radius:8px;padding:10px 14px;margin-bottom:16px}
.epb-modetitle{font-size:15px;font-weight:800;color:#1f2937;margin-bottom:12px;text-align:center}
.epb-modebtns{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.epb-mode{flex:1;min-width:150px;display:flex;flex-direction:column;gap:4px;padding:18px;border-radius:14px;border:2px solid #99f6e4;background:#fff;font-size:16px;font-weight:800;color:#0f766e;cursor:pointer;transition:.15s}
.epb-mode:hover{background:#f0fdfa;border-color:#0d9488}
.epb-mode span{font-size:12px;font-weight:600;color:#6b7280}
.epb-part{margin-bottom:14px}
.epb-part-lab{font-size:12.5px;font-weight:800;color:#0d9488;text-transform:uppercase;letter-spacing:.4px;margin-bottom:7px}
.epb-frags{display:flex;flex-direction:column;gap:8px}
.epb-frag{text-align:left;padding:11px 14px;border-radius:10px;border:2px solid #e5e7eb;background:#fff;font-size:14px;line-height:1.4;color:#1f2937;cursor:pointer;transition:.12s}
.epb-frag:hover:not(:disabled){border-color:#0d9488;background:#f0fdfa}
.epb-frag.sel{border-color:#0d9488;background:#ccfbf1;font-weight:700}
.epb-frag.good{border-color:#16a34a;background:#f0fdf4;font-weight:700}
.epb-frag.bad{border-color:#dc2626;background:#fef2f2}
.epb-frag:disabled{cursor:default}
.epb-preview{font-size:14.5px;color:#0f766e;background:#f0fdfa;border:1px dashed #5eead4;border-radius:10px;padding:11px 14px;margin:12px 0}
.epb-libre-lab,.epb-modele-lab,.epb-autoeval-lab{font-size:13.5px;font-weight:700;color:#374151;margin-bottom:8px}
.epb-ta{width:100%;border:2px solid #99f6e4;border-radius:12px;padding:12px;font-size:15px;font-family:inherit;line-height:1.5;resize:vertical;margin-bottom:12px}
.epb-ta:focus{outline:none;border-color:#0d9488}
.epb-result{margin-top:8px}
.epb-autoscore{font-size:14.5px;color:#0f766e;margin-bottom:10px}
.epb-notions{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}
.epb-notion{font-size:12.5px;font-weight:600;padding:5px 11px;border-radius:20px}
.epb-notion.found{background:#dcfce7;color:#166534}
.epb-notion.missing{background:#fee2e2;color:#991b1b}
.epb-modele-wrap{margin-bottom:12px}
.epb-modele{font-size:14.5px;font-style:italic;color:#0f766e;background:#f0fdfa;border:1px solid #5eead4;border-radius:10px;padding:11px 14px;font-weight:600}
.epb-conseil{font-size:13.5px;line-height:1.5;color:#374151;background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:10px 14px;margin:12px 0}
.epb-fb{margin-top:14px;font-size:14.5px;line-height:1.5;padding:14px 16px;border-radius:12px}
.epb-fb.ok{background:#f0fdf4;border:1px solid #bbf7d0;color:#14532d}
.epb-fb.ko{background:#fff7ed;border:1px solid #fed7aa;color:#7c2d12}
.epb-autoeval{margin-top:6px}
.epb-autoeval-btns{display:flex;gap:8px;flex-wrap:wrap}
.epb-ae{flex:1;min-width:100px;padding:10px;border-radius:10px;border:2px solid #e5e7eb;background:#fff;font-size:13.5px;font-weight:700;color:#374151;cursor:pointer;transition:.12s}
.epb-ae:hover{border-color:#0d9488}
.epb-ae.on{border-color:#0d9488;background:#ccfbf1;color:#0f766e}
.epb-next{display:block;margin-top:14px;background:#0d9488;color:#fff;border:none;border-radius:10px;padding:11px 18px;font-size:14.5px;font-weight:800;cursor:pointer}
.epb-next:hover{background:#0f766e}
.epb-end{text-align:center;background:linear-gradient(135deg,#f0fdfa,#ecfdf5);border:1px solid #99f6e4;border-radius:18px;padding:30px 22px}
.epb-score{font-size:52px;font-weight:900;color:#0d9488;font-family:'Fraunces',Georgia,serif}
.epb-verdict{font-size:18px;font-weight:800;color:#0f766e;margin:6px 0}
.epb-end-sub{font-size:14px;color:#115e59;margin-bottom:18px}
.epb-end-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.defi-badge{background:#9333ea!important}
.defi .epb-cta,.defi-cta{background:linear-gradient(120deg,#9333ea,#7e22ce)!important;box-shadow:0 10px 22px -10px rgba(147,51,234,.5)!important}
.defi-ghost{background:#fff!important;color:#9333ea!important;border:2px solid #e9d5ff!important;box-shadow:none!important}
.defi h2{color:#6b21a8!important}
.defi-tip{background:#faf5ff!important;border-color:#e9d5ff!important;color:#6b21a8!important}
.defi-bar{background:linear-gradient(90deg,#9333ea,#c084fc)!important}
.defi-casnum{font-size:12px;font-weight:800;color:#9333ea;text-transform:uppercase;letter-spacing:.5px;margin-bottom:6px}
.defi-org{font-size:15px;color:#1f2937;margin-bottom:8px}
.defi-ctx{font-size:14.5px;line-height:1.65;color:#374151;background:#faf5ff;border-left:4px solid #c084fc;border-radius:10px;padding:14px 16px;margin-bottom:18px}
.defi-consigne{font-size:15px;font-weight:700;color:#1f2937;margin-bottom:11px}
.defi-qdgs{display:flex;flex-direction:column;gap:9px;margin-bottom:14px}
.defi-qdg{text-align:left;padding:13px 16px;border-radius:11px;border:2px solid #e5e7eb;background:#fff;font-size:14px;line-height:1.45;color:#1f2937;cursor:pointer;transition:.12s}
.defi-qdg:hover{border-color:#9333ea;background:#faf5ff}
.defi-qdg.sel{border-color:#9333ea;background:#f3e8ff;font-weight:700}
.defi-qdg-fb{font-size:14px;line-height:1.5;padding:13px 15px;border-radius:11px;margin-bottom:16px}
.defi-qdg-fb.ok{background:#f0fdf4;border:1px solid #bbf7d0;color:#14532d}
.defi-qdg-fb.ko{background:#fff7ed;border:1px solid #fed7aa;color:#7c2d12}
.defi-qdg-good{font-weight:700;font-style:italic;margin:7px 0}
.defi-indices{margin-top:8px;font-size:13px;color:#4b5563;background:rgba(255,255,255,.6);border-radius:8px;padding:8px 11px}
.defi-ta:focus{border-color:#9333ea!important}
.defi-debrief-h{font-family:'Fraunces',Georgia,serif;font-size:19px;font-weight:800;color:#6b21a8;margin-bottom:14px}
.defi-block{margin-bottom:14px}
.defi-block-t{font-size:12.5px;font-weight:800;color:#9333ea;text-transform:uppercase;letter-spacing:.4px;margin-bottom:6px}
.defi-pill{display:inline-block;font-size:13px;font-weight:700;padding:5px 14px;border-radius:20px}
.defi-pill.ok{background:#dcfce7;color:#166534}
.defi-pill.ko{background:#fee2e2;color:#991b1b}
.defi-yourtxt{font-size:14px;font-style:italic;color:#4b5563;background:#f9fafb;border:1px solid #e5e7eb;border-radius:9px;padding:10px 13px}
.defi-debrieftxt{background:#faf5ff!important;border-color:#e9d5ff!important}
.defi-next{background:#9333ea!important}
.dict-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap;margin-bottom:16px;padding-bottom:16px;border-bottom:3px double #1e3a8a}
.dict-titlebar{display:flex;align-items:center;gap:12px}
.dict-book{font-size:34px}
.dict-title{font-family:'Fraunces',Georgia,serif;font-size:24px;font-weight:900;color:#1e3a8a;margin:0;line-height:1.1}
.dict-sub{font-size:12.5px;color:#64748b;margin:3px 0 0}
.dict-train{flex-shrink:0;padding:11px 16px;border-radius:11px;background:linear-gradient(120deg,#2563eb,#1d4ed8);color:#fff;font-size:14px;font-weight:800;cursor:pointer;box-shadow:0 10px 20px -10px rgba(37,99,235,.5);transition:.15s}
.dict-train:hover{filter:brightness(1.07)}
.dict-train.big{width:100%}
.dict-search{display:flex;align-items:center;gap:8px;background:#fff;border:2px solid #e2e8f0;border-radius:12px;padding:4px 12px;margin-bottom:12px}
.dict-search:focus-within{border-color:#2563eb}
.dict-search-ico{font-size:15px;opacity:.6}
.dict-search-input{flex:1;border:none;outline:none;font-size:15px;padding:9px 0;background:transparent;color:#1f2937;font-family:inherit}
.dict-search-clear{border:none;background:#f1f5f9;border-radius:50%;width:24px;height:24px;cursor:pointer;color:#64748b;font-size:13px}
.dict-filters{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}
.dict-filter{padding:6px 13px;border-radius:20px;border:1px solid #cbd5e1;background:#fff;font-size:12.5px;font-weight:600;color:#475569;cursor:pointer;transition:.15s}
.dict-filter:hover{border-color:#2563eb;color:#2563eb}
.dict-filter.on{background:#1e3a8a;border-color:#1e3a8a;color:#fff}
.dict-count{font-size:12px;color:#94a3b8;font-weight:600;margin-bottom:10px;text-transform:uppercase;letter-spacing:.5px}
.dict-list{display:flex;flex-direction:column}
.dict-empty{text-align:center;color:#94a3b8;padding:30px;font-style:italic}
.dict-entry{padding:14px 4px;border-bottom:1px solid #eef2f7}
.dict-entry:hover{background:#f8fafc}
.dict-entry-head{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
.dict-word{font-family:'Fraunces',Georgia,serif;font-size:19px;font-weight:800;color:#1e3a8a}
.dict-pos{font-size:13px;font-style:italic;color:#94a3b8;font-weight:600}
.dict-lvl{font-size:10px;font-weight:800;letter-spacing:.3px;padding:2px 7px;border-radius:5px}
.dict-lvl.lvl-pre{background:#dbeafe;color:#1e40af}
.dict-lvl.lvl-tle{background:#ede9fe;color:#6d28d9}
.dict-fr{font-size:14.5px;color:#374151;margin:5px 0 4px;font-weight:600}
.dict-flag{margin-right:3px}
.dict-def{font-size:13.5px;color:#64748b;line-height:1.5;font-style:italic}
.dict-theme-tag{display:inline-block;margin-top:7px;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#2563eb;background:#eff6ff;border:1px solid #bfdbfe;border-radius:5px;padding:2px 7px}
.dict-foot{margin-top:18px;padding-top:16px;border-top:1px solid #e2e8f0}
.etlv{max-width:680px;margin:0 auto}
.etlv-badge{display:inline-block;background:#1d4ed8;color:#fff;font-size:11px;font-weight:800;letter-spacing:1px;padding:5px 12px;border-radius:20px;margin-bottom:12px}
.etlv-title{font-size:22px;font-weight:900;color:#1a1430;margin:0 0 10px}
.etlv-intro{font-size:14.5px;line-height:1.6;color:#374151;margin-bottom:14px}
.etlv-modes-info{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.etlv-modes-info span{background:#eff6ff;border:1px solid #bfdbfe;border-radius:20px;padding:5px 12px;font-size:13px;font-weight:600;color:#1e40af}
.etlv-count{font-size:13px;color:#6b7280;font-weight:600;margin-bottom:6px}
.etlv-cta{width:100%;margin-top:14px;padding:14px;border-radius:13px;background:linear-gradient(120deg,#2563eb,#1d4ed8);color:#fff;font-size:15.5px;font-weight:800;cursor:pointer;transition:.18s;box-shadow:0 12px 24px -10px rgba(37,99,235,.5)}
.etlv-cta:hover{filter:brightness(1.07)}
.etlv-cta.ghost{background:#fff;color:#1d4ed8;border:2px solid #bfdbfe;box-shadow:none}
.etlv-cta:disabled{cursor:not-allowed}
.etlv-prog{margin-bottom:16px}
.etlv-prog-bar{height:7px;background:#e0e7ff;border-radius:6px;overflow:hidden}
.etlv-prog-bar span{display:block;height:100%;background:linear-gradient(90deg,#2563eb,#60a5fa);transition:width .3s}
.etlv-prog-txt{font-size:12px;color:#6b7280;font-weight:600;margin-top:5px;text-align:right}
.etlv-type{font-size:12.5px;font-weight:700;color:#1d4ed8;margin-bottom:12px}
.etlv-prompt{font-size:24px;font-weight:800;color:#1a1430;text-align:center;padding:18px;background:#f8fafc;border-radius:14px;margin-bottom:14px}
.etlv-def{font-size:16px;font-style:italic;color:#1f2937;text-align:center;padding:16px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;margin-bottom:6px}
.etlv-def-fr{font-size:13px;color:#6b7280;text-align:center;margin-bottom:14px}
.etlv-opts{display:flex;flex-direction:column;gap:9px}
.etlv-opt{text-align:left;padding:13px 16px;border-radius:11px;border:2px solid #e2e8f0;background:#fff;font-size:15px;color:#1f2937;cursor:pointer;transition:.15s}
.etlv-opt:hover:not(:disabled){border-color:#2563eb;background:#eff6ff}
.etlv-opt:disabled{cursor:default}
.etlv-opt.good{border-color:#16a34a;background:#f0fdf4}
.etlv-opt.wrong{border-color:#dc2626;background:#fef2f2}
.etlv-fb{margin-top:13px;padding:12px 15px;border-radius:10px;font-size:14px;font-weight:600}
.etlv-fb.ok{background:#f0fdf4;border:1px solid #bbf7d0;color:#14532d}
.etlv-fb.ko{background:#fef2f2;border:1px solid #fecaca;color:#7f1d1d}

/* --- Le corrigé d'un mot, donné dès la réponse (10/09/2026) ---------
   Il remplace la ligne « The answer was: … » : le couple complet, la
   définition, et ce que le mot choisi voulait dire quand l'élève s'est
   trompé. En français — c'est le moment où il vérifie, pas celui où on
   lui donne une phrase anglaise de plus. */
.etlv-cor{margin-top:13px;padding:12px 15px;border-radius:10px;font-size:14px;line-height:1.55}
.etlv-cor.ok{background:#f0fdf4;border:1px solid #bbf7d0;color:#14532d}
.etlv-cor.ko{background:#fef2f2;border:1px solid #fecaca;color:#7f1d1d}
.etlv-cor-t{font-weight:700;margin-bottom:6px}
.etlv-cor-mot{font-size:15.5px;margin:3px 0}
.etlv-cor-mot b{font-size:16.5px}
.etlv-cor-def{font-style:italic;opacity:.85;margin:5px 0 0;font-size:13.5px}
.etlv-cor-erreur{margin-top:7px;padding-top:7px;border-top:1px dashed rgba(0,0,0,.14);font-size:13.5px}

/* --- La pause entre deux manches ------------------------------------
   Trente-quatre questions d'affilée devenaient cinq manches de huit
   (Djamil, 10/09). Cet écran donne les mots ratés pendant qu'ils sont
   frais, et laisse partir l'élève sans lui faire perdre son travail. */
.etlv-pause{text-align:center}
.etlv-pause-t{font-size:20px;font-weight:800;color:#1d4ed8;margin-bottom:6px}
.etlv-pause-sc{font-size:15px;color:#475569;margin-bottom:14px}
.etlv-pause-rev{background:#fffbeb;border:1px solid #fcd34d;border-radius:12px;
  padding:12px 15px;margin:0 0 16px;text-align:left;font-size:14px;color:#7c2d12}
.etlv-pause-mot{margin-top:6px;font-size:15px}
.etlv-pause-mot b{color:#1d4ed8}
.etlv-flash{position:relative;height:170px;margin:0 auto 8px;cursor:pointer;perspective:1000px}
.etlv-flash-face{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:16px;font-size:26px;font-weight:800;backface-visibility:hidden;transition:transform .5s;box-shadow:0 14px 30px -16px rgba(37,99,235,.5)}
.etlv-flash-face.front{background:linear-gradient(135deg,#dbeafe,#eff6ff);color:#1e3a8a}
.etlv-flash-face.back{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;transform:rotateY(180deg)}
.etlv-flash.flipped .front{transform:rotateY(180deg)}
.etlv-flash.flipped .back{transform:rotateY(360deg)}
.etlv-flash-lang{font-size:11px;font-weight:800;letter-spacing:1px;opacity:.6;margin-bottom:6px}
.etlv-flash-hint{text-align:center;font-size:13px;color:#6b7280;font-style:italic;margin:0 0 12px;min-height:18px}
.etlv-self,.etlv-end-btns{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:center;margin-top:8px}
.etlv-self>span{font-size:13.5px;font-weight:600;color:#374151}
.etlv-self-btn{padding:9px 16px;border-radius:9px;font-size:14px;font-weight:700;cursor:pointer;border:2px solid}
.etlv-self-btn.ok{border-color:#16a34a;background:#fff;color:#16a34a}
.etlv-self-btn.ok:hover{background:#16a34a;color:#fff}
.etlv-self-btn.ko{border-color:#94a3b8;background:#fff;color:#64748b}
.etlv-self-btn.ko:hover{background:#64748b;color:#fff}
.etlv-match{display:flex;gap:16px;flex-wrap:wrap}
.etlv-match-col{flex:1;min-width:240px;display:flex;flex-direction:column;gap:9px}
.etlv-match-row{display:flex;align-items:center;gap:8px}
.etlv-match-fr{flex:1;text-align:left;padding:10px 12px;border-radius:9px;border:2px solid #e2e8f0;background:#fff;font-size:14px;font-weight:600;color:#1f2937;cursor:pointer;transition:.15s}
.etlv-match-fr.sel{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 3px rgba(37,99,235,.15)}
.etlv-match-fr.good{border-color:#16a34a;background:#f0fdf4}
.etlv-match-fr.wrong{border-color:#dc2626;background:#fef2f2}
.etlv-match-arrow{color:#2563eb;font-weight:800}
.etlv-match-slot{flex:0 0 120px;font-size:12.5px;color:#9ca3af;font-style:italic;padding:8px 10px;border:1px dashed #cbd5e1;border-radius:8px;min-height:20px}
.etlv-match-slot.filled{color:#1f2937;font-style:normal;font-weight:600;border-style:solid;background:#f8fafc}
.etlv-tags{flex:0 0 190px;display:flex;flex-direction:column;gap:8px;padding:11px;background:#f8fafc;border-radius:11px;border:1px solid #e2e8f0}
.etlv-tag{padding:9px 11px;border-radius:8px;border:2px solid #bfdbfe;background:#fff;font-size:13px;font-weight:600;color:#1e40af;cursor:pointer;transition:.15s}
.etlv-tag:hover:not(:disabled){background:#2563eb;color:#fff;border-color:#2563eb}
.etlv-tag.used{opacity:.35;cursor:default}
.etlv-end{text-align:center}
.etlv-score{font-family:'Fraunces',Georgia,serif;font-size:54px;font-weight:900;color:#2563eb;line-height:1}
.etlv-verdict{font-size:17px;font-weight:700;color:#1a1430;margin:8px 0 6px}
.etlv-end-sub{font-size:14px;color:#6b7280;margin-bottom:14px}
@media(max-width:560px){.etlv-match{flex-direction:column}.etlv-tags{flex:1}.etlv-prompt{font-size:20px}}

/* ============ PAPIYON — le plateau (sombre, pensé vidéoprojecteur) ============ */
.py-board{position:fixed;inset:0;z-index:9999;overflow:auto;color:#e6edf7;
  background:radial-gradient(circle at 15% 0,#1c2f4a 0,transparent 45%),
   radial-gradient(circle at 90% 100%,#31213f 0,transparent 40%),#0b1220;
  font-family:'Outfit',sans-serif}
.py-haut{display:flex;align-items:center;gap:18px;padding:14px 26px;font-weight:700}
.py-marque{font-family:'Fraunces',serif;font-size:20px;letter-spacing:.5px}
.py-acte-nom{opacity:.85;font-size:16px}
.py-code{margin-left:auto;background:#ffffff14;border:1px solid #ffffff2b;border-radius:9px;
  padding:4px 12px;font-size:16px;letter-spacing:2px}
.py-centre{max-width:1180px;margin:0 auto;padding:10px 26px 110px}
.py-err{color:#fca5a5;font-size:18px}
/* --- jauges : lisibles du fond de la salle --- */
.py-jauges{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;max-width:1180px;margin:4px auto 18px;padding:0 26px}
.py-jauge{background:#ffffff0d;border:1px solid #ffffff1f;border-radius:16px;padding:12px 16px}
.py-jauge-nom{font-size:15px;font-weight:700;opacity:.85;margin-bottom:2px}
.py-jauge-val{font-size:34px;font-weight:800;font-variant-numeric:tabular-nums;line-height:1.15}
.py-delta{font-size:17px;font-weight:800;margin-left:9px;animation:py-pop .5s ease both}
.py-delta.up{color:#4ade80}.py-delta.down{color:#f87171}
.py-jauge-barre{height:9px;background:#ffffff17;border-radius:5px;overflow:hidden;margin-top:7px}
.py-jauge-barre span{display:block;height:100%;border-radius:5px;transition:width .8s cubic-bezier(.2,.8,.2,1)}
.py-jauge-vert .py-jauge-barre span{background:linear-gradient(90deg,#22c55e,#4ade80)}
.py-jauge-orange .py-jauge-barre span{background:linear-gradient(90deg,#f59e0b,#fbbf24)}
.py-jauge-rouge .py-jauge-barre span{background:linear-gradient(90deg,#dc2626,#f87171)}
.py-jauge-rouge{animation:py-alerte 1.4s ease-in-out infinite;border-color:#f8717155}
/* --- accueil --- */
.py-attente{text-align:center}
.py-titre-jeu{font-family:'Fraunces',serif;font-size:64px;margin:24px 0 4px;animation:py-monte .6s ease both}
.py-sous-jeu{font-size:20px;opacity:.8;margin-bottom:26px}
.py-attente-2col{display:flex;gap:36px;justify-content:center;align-items:flex-start;flex-wrap:wrap}
.py-qr-bloc{background:#fff;border-radius:18px;padding:20px;color:#0f172a}
.py-lien{font-size:19px;margin-top:8px}
.py-lien-sous{font-size:13px;opacity:.75;max-width:300px;margin:6px auto 0}
.py-poles{display:grid;gap:9px;min-width:320px;text-align:left}
.py-pole{background:#ffffff0d;border:1px solid #ffffff1f;border-radius:12px;padding:9px 14px;display:flex;gap:10px;align-items:baseline}
.py-pole b{min-width:190px;font-size:15px}
.py-pole span{font-size:13.5px;opacity:.8}
.py-compte{margin-top:20px;font-size:22px;font-weight:800}
/* --- carte --- */
.py-carte{animation:py-monte .45s ease both}
.py-amorce{display:flex;gap:10px;align-items:flex-start;background:#7c3aed22;border:1px solid #a78bfa55;
  border-radius:13px;padding:11px 16px;margin-bottom:14px;font-size:16.5px;line-height:1.55}
.py-amorce-pap{font-size:22px;animation:py-flotte 2.4s ease-in-out infinite}
.py-carte-tete{display:flex;gap:22px;align-items:flex-start}
.py-carte-img{width:340px;max-width:36vw;aspect-ratio:16/9;object-fit:cover;border-radius:16px;
  box-shadow:0 12px 34px -14px #000c;animation:py-pop .5s ease both}
.py-carte-acte{font-size:14px;color:#fbbf24;font-weight:800;letter-spacing:1px;margin-bottom:4px}
.py-recettes{margin-left:14px;color:#4ade80;font-weight:700;letter-spacing:0;font-size:13.5px;animation:py-pop .5s ease both}
.py-carte h2{font-family:'Fraunces',serif;font-size:34px;margin:0 0 8px}
.py-situation{font-size:19.5px;line-height:1.6;opacity:.95}
.py-question{font-size:23px;font-weight:800;margin:18px 0 12px;color:#fbbf24}
.py-options{display:grid;gap:10px}
.py-option{display:flex;gap:14px;align-items:center;background:#ffffff0d;border:1px solid #ffffff22;
  border-radius:14px;padding:13px 18px;font-size:19px;animation:py-monte .4s ease both}
.py-option:nth-child(2){animation-delay:.08s}.py-option:nth-child(3){animation-delay:.16s}
.py-option-let{flex:0 0 auto;width:34px;height:34px;border-radius:50%;background:#fbbf24;color:#1a1430;
  display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:17px}
.py-docs-note{margin-top:14px;font-size:14.5px;opacity:.75}
.py-vote-etat{margin-top:18px;font-size:24px;display:flex;align-items:center;gap:12px}
.py-vote-pulse{font-size:30px;animation:py-alerte 1.1s ease-in-out infinite;display:inline-block}
/* --- dépouillement --- */
.py-depou{margin-top:16px;display:grid;gap:9px}
.py-depou-l{display:flex;align-items:center;gap:12px;font-size:19px}
.py-depou-barre{flex:1;height:26px;background:#ffffff12;border-radius:8px;overflow:hidden}
.py-depou-barre span{display:block;height:100%;background:linear-gradient(90deg,#60a5fa,#818cf8);
  border-radius:8px;transition:width 1s cubic-bezier(.2,.8,.2,1)}
.py-depou-gagnant .py-depou-barre span{background:linear-gradient(90deg,#fbbf24,#f59e0b)}
.py-depou-gagnant{font-weight:800}
.py-depou-roles{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.py-chip{background:#ffffff10;border:1px solid #ffffff22;border-radius:999px;padding:5px 13px;font-size:13.5px}
.py-chip .up{color:#4ade80}.py-chip .down{color:#f87171}
.py-egalite{margin-top:16px;display:grid;gap:8px}
.py-egalite p{font-size:19px;font-weight:700;color:#fbbf24}
/* --- retombée et notion --- */
.py-retombee{animation:py-monte .45s ease both;max-width:900px}
.py-retombee-choix{font-size:17px;font-weight:800;color:#fbbf24;margin-bottom:10px}
.py-retombee-txt{font-size:21px;line-height:1.65}
.py-notion{margin-top:20px;background:#0ea5e91a;border:1px solid #38bdf855;border-radius:15px;padding:15px 19px;animation:py-monte .5s ease both;animation-delay:.5s}
.py-notion-cadre{font-size:13.5px;letter-spacing:1.5px;text-transform:uppercase;color:#7dd3fc;font-weight:800;margin-bottom:5px}
.py-notion p{font-size:18.5px;line-height:1.6;margin:0}
.py-papillon-scene{position:relative;height:56px;margin-top:14px;display:flex;align-items:center;gap:12px}
.py-papillon{font-size:34px;display:inline-block;animation:py-envole 3.4s ease-in forwards}
.py-papillon-txt{font-size:16px;opacity:.8;font-style:italic}
/* --- démo, bilan, fin --- */
.py-demo{max-width:760px;margin:30px auto;text-align:center;animation:py-monte .4s ease both}
.py-demo-n{font-size:14px;letter-spacing:2px;opacity:.6;margin-bottom:10px}
.py-demo h2{font-family:'Fraunces',serif;font-size:38px;margin-bottom:12px}
.py-demo p{font-size:20px;line-height:1.65;opacity:.95}
.py-depou-demo{max-width:520px;margin:22px auto 0}
.py-demo-barre-0{display:block;height:100%;background:linear-gradient(90deg,#fbbf24,#f59e0b);border-radius:8px;animation:py-remplit0 1.4s ease both}
.py-demo-barre-1{display:block;height:100%;background:#818cf8;border-radius:8px;animation:py-remplit1 1.4s ease both}
.py-demo-barre-2{display:block;height:100%;background:#818cf8;border-radius:8px;animation:py-remplit2 1.4s ease both}
.py-bilan h2,.py-fin h2{font-family:'Fraunces',serif;font-size:36px}
.py-bilan h3,.py-fin h3{margin:22px 0 10px;font-size:20px}
.py-bilan-jauges{display:flex;gap:9px;flex-wrap:wrap;margin-top:10px}
.py-notions-liste{display:grid;gap:8px}
.py-notion-l{background:#ffffff0a;border:1px solid #ffffff1a;border-radius:11px;padding:9px 14px;font-size:15px;line-height:1.5}
.py-notion-l b{display:block;color:#7dd3fc;font-size:13.5px;margin-bottom:2px}
.py-bilan-note{margin-top:14px;opacity:.7;font-size:14.5px}
.py-fin-txt{font-size:20px;line-height:1.7;max-width:880px}
.py-fin-nuance{font-size:17px;opacity:.85;font-style:italic;margin-top:8px}
.py-revelation{display:flex;gap:16px;align-items:flex-start;margin:20px 0;background:#7c3aed22;border:1px solid #a78bfa66;border-radius:16px;padding:16px 20px;animation:py-monte .5s ease both}
.py-revelation b{font-size:19px}
.py-revelation p{font-size:16.5px;line-height:1.6;margin-top:6px;opacity:.95}
.py-complet{color:#fbbf24;font-size:16px;font-weight:700}
.py-secrets{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:9px}
.py-secret{border-radius:12px;padding:10px 14px;font-size:14.5px;border:1px solid #ffffff22;background:#ffffff08}
.py-secret.ok{border-color:#4ade8066;background:#22c55e14}
.py-secret b{display:block;margin-bottom:3px}
/* --- pilotage --- */
.py-pilote{position:fixed;left:0;right:0;bottom:0;display:flex;gap:10px;align-items:center;justify-content:center;
  padding:13px 20px;background:#0b1220e6;border-top:1px solid #ffffff1a;backdrop-filter:blur(6px)}
.py-btn{background:linear-gradient(135deg,#f59e0b,#fbbf24);color:#1a1430;border-radius:12px;
  padding:12px 26px;font-size:17px;font-weight:800;font-family:inherit}
.py-btn.alt{background:#ffffff1c;color:#e6edf7;border:1px solid #ffffff33}
.py-btn.petit{padding:7px 14px;font-size:14px}
.py-btn:disabled{opacity:.5;cursor:default}
.py-btn-arbitre{background:#ffffff1c;color:#e6edf7;border:1px solid #ffffff33;text-align:left;font-weight:600}
.py-mini{background:#ffffff14;color:#e6edf7;border:1px solid #ffffff26;border-radius:10px;padding:10px 13px;font-size:16px}
.py-qrpop{position:fixed;inset:0;background:#000a;display:flex;align-items:center;justify-content:center;z-index:10000}
.py-qrpop-in{background:#fff;color:#0f172a;border-radius:18px;padding:22px;text-align:center;font-weight:700}
.py-reglage{position:fixed;right:16px;bottom:74px;background:#111a2c;border:1px solid #ffffff26;border-radius:14px;padding:12px;z-index:10000;display:grid;gap:8px}
.py-reglage-l{display:flex;gap:8px;align-items:center;font-size:14px}
.py-reglage-l span{flex:1;min-width:170px}
/* --- écran prof (liste) --- */
.py-logo-grand{margin:18px 0 6px;animation:py-pop .6s ease both}
.py-prof-maitre{text-align:center}
.py-prof-danger{background:#fef2f2;border:1px solid #fecaca;color:#991b1b;border-radius:12px;
  padding:11px 15px;font-size:14px;line-height:1.55;margin:12px 0}
.py-prof-qr{display:inline-block;background:#fff;border:1px solid #eee4f3;border-radius:16px;padding:18px;margin-bottom:14px}
.py-prof-qr p{margin-top:9px;font-size:14.5px}
.py-prof-maitre .py-prof-new{justify-content:center}
.py-prof{max-width:900px;margin:0 auto}
.py-prof-intro{line-height:1.6;opacity:.85;margin:8px 0 16px}
.py-prof-new{display:flex;gap:10px;margin-bottom:18px;flex-wrap:wrap}
.py-prof-new input{border:1.5px solid #d9d2e5;border-radius:11px;padding:10px 14px;font-size:15px;flex:1;min-width:210px}
.py-prof-new .py-btn{padding:10px 20px;font-size:15px}
.py-prof-table{width:100%;border-collapse:collapse;font-size:14.5px}
.py-prof-table th{text-align:left;padding:8px 10px;opacity:.6;font-size:13px}
.py-prof-table td{padding:9px 10px;border-top:1px solid #eee4f3}
.py-prof-vide{opacity:.7}
/* --- téléphone --- */
.py-tel .py-tel-code{background:#f3eefc;border-radius:8px;padding:3px 10px;font-weight:800;letter-spacing:1px}
.py-tel-bloc{display:grid;gap:12px}
.py-tel-role{background:#eef2ff;border:1px solid #c7d2fe;border-radius:13px;padding:12px 15px}
.py-tel-role p{margin:4px 0 0;font-size:14px;line-height:1.55}
.py-tel-secret{background:#1e1b31;color:#ede9fe;border-radius:13px;padding:12px 15px}
.py-tel-secret p{margin:4px 0;font-size:14.5px;line-height:1.55}
.py-tel-secret span{font-size:12px;opacity:.7}
.py-tel-secret.gagne{background:#14532d;color:#dcfce7}
.py-tel-attente{opacity:.75;font-size:14.5px}
.py-tel-sit{font-size:15px;line-height:1.6}
.py-tel-docs{display:grid;gap:10px}
.py-tel-docs-t{font-size:14px}
.py-tel-vote{display:grid;gap:8px;margin-top:6px}
.py-tel-opt{display:flex;gap:10px;align-items:center;text-align:left;background:#fff;border:2px solid #e5dcf0;
  border-radius:13px;padding:11px 13px;font-size:14.5px;font-family:inherit;line-height:1.45}
.py-tel-opt.on{border-color:#7c3aed;background:#f6f1ff}
.py-tel-ok{color:#16a34a;font-weight:700;font-size:14px}
.py-tel-notion{background:#e0f2fe;border-radius:12px;padding:11px 14px;font-size:14px;line-height:1.55}
.py-tel-notion b{color:#0369a1;font-size:12.5px;text-transform:uppercase;letter-spacing:1px}
.py-tel-audio{background:#fff7ed;border:1px solid #fed7aa;border-radius:13px;padding:11px 14px}
.py-tel-audio-t{display:flex;align-items:center;gap:8px;font-weight:700;font-size:14px}
.py-fr{background:#eef2ff;border:1px solid #c7d2fe;border-radius:9px;padding:5px 12px;font-size:12.5px;font-weight:700;margin-top:8px}
.py-tel-audio-fr{font-size:13.5px;opacity:.85;margin-top:8px;line-height:1.5}
/* --- animations --- */
@keyframes py-monte{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes py-pop{0%{transform:scale(.6);opacity:0}60%{transform:scale(1.12)}100%{transform:scale(1);opacity:1}}
@keyframes py-alerte{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
@keyframes py-flotte{0%,100%{transform:translateY(0) rotate(-4deg)}50%{transform:translateY(-6px) rotate(5deg)}}
@keyframes py-envole{0%{transform:translate(0,0) rotate(0);opacity:1}
  30%{transform:translate(60px,-30px) rotate(14deg)}
  60%{transform:translate(160px,-46px) rotate(-8deg);opacity:1}
  100%{transform:translate(340px,-110px) rotate(10deg);opacity:0}}
@keyframes py-remplit0{from{width:0}to{width:100%}}
@keyframes py-remplit1{from{width:0}to{width:64%}}
@keyframes py-remplit2{from{width:0}to{width:36%}}
@media(max-width:900px){
  .py-jauges{grid-template-columns:repeat(2,1fr)}
  .py-carte-tete{flex-direction:column}
  .py-carte-img{width:100%;max-width:none}
  .py-titre-jeu{font-size:42px}
}
@media(prefers-reduced-motion:reduce){
  .py-carte,.py-option,.py-retombee,.py-notion,.py-demo,.py-titre-jeu,.py-carte-img,
  .py-delta,.py-papillon,.py-amorce-pap,.py-vote-pulse,.py-jauge-rouge{animation:none}
}


/* ============ Le Maître du jeu — pensé pour une main, debout ============ */
.py-mt{max-width:560px;margin:0 auto;padding:0 0 150px;font-family:'Outfit',sans-serif}
.py-mt-vide{padding:60px 20px;text-align:center;opacity:.7}
.py-mt-tete{display:flex;align-items:center;gap:11px;padding:12px 16px;
  background:#1a1430;color:#f8fafc;position:sticky;top:0;z-index:5}
.py-mt-tete b{display:block;font-size:16px;line-height:1.2}
.py-mt-tete span{font-size:12.5px;opacity:.75}
.py-mt-code{margin-left:auto;background:#ffffff1f;border-radius:8px;padding:4px 11px;
  font-weight:800;letter-spacing:2px;font-size:15px}
.py-mt-onglets{display:flex;gap:6px;padding:10px 12px;position:sticky;top:58px;
  background:#fefcf8;z-index:4;border-bottom:1px solid #eee4f3}
.py-mt-onglets button{flex:1;padding:9px 6px;border-radius:10px;background:#f3eefc;
  font:inherit;font-size:13px;font-weight:700;color:#5a5470}
.py-mt-onglets button.on{background:#1a1430;color:#fff}
.py-mt-corps{padding:12px}
.py-mt-bloc{background:#fff;border:1px solid #eee4f3;border-radius:14px;padding:13px 15px;margin-bottom:10px}
.py-mt-bloc b{font-size:15.5px}
.py-mt-bloc p{font-size:14.5px;line-height:1.6;margin-top:6px}
.py-mt-titre{font-weight:800;font-size:16px;margin-bottom:7px}
/* Ce qui se lit à voix haute : plus gros, mieux espacé — on le lit debout. */
.py-mt-lire{font-size:16px !important;line-height:1.65 !important;color:#1a1430}
.py-mt-question{font-weight:800;color:#b45309;font-size:16px !important;margin-top:9px !important}
.py-mt-amorce{background:#f6f1ff;border:1px solid #ddd0f5;border-radius:12px;
  padding:10px 14px;font-size:14px;line-height:1.55;margin-bottom:10px}
.py-mt-opts{display:grid;gap:7px;margin-bottom:10px}
.py-mt-opt{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid #eee4f3;
  border-radius:12px;padding:10px 13px;font-size:14.5px;line-height:1.45}
.py-mt-docs{background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;padding:11px 14px;
  font-size:13.5px;line-height:1.7}
.py-mt-docs b{display:block;margin-bottom:4px}
.py-mt-votes{background:#fff;border:1px solid #eee4f3;border-radius:14px;padding:13px 15px}
.py-mt-compteur{font-size:22px;font-weight:800;margin-bottom:10px}
.py-mt-barres{display:grid;gap:7px}
.py-mt-b{display:flex;align-items:center;gap:9px}
.py-mt-jauge{flex:1;height:20px;background:#f1ecfa;border-radius:7px;overflow:hidden}
.py-mt-jauge span{display:block;height:100%;background:linear-gradient(90deg,#818cf8,#a78bfa);
  border-radius:7px;transition:width .5s}
.py-mt-manque{margin-top:9px;font-size:13px;opacity:.75;line-height:1.5}
.py-mt-note{font-size:12.5px;opacity:.7;line-height:1.55;margin-top:6px}
.py-mt-notion{background:#e0f2fe;border:1px solid #bae6fd;border-radius:13px;padding:12px 15px}
.py-mt-notion-t{font-size:12px;letter-spacing:1.2px;text-transform:uppercase;color:#0369a1;font-weight:800}
.py-mt-notion p{font-size:15px;line-height:1.6;margin-top:5px}
.py-mt-secret{background:#1e1b31;color:#ede9fe;border-radius:12px;padding:11px 14px;
  font-size:13.5px;line-height:1.6;margin-top:10px}
.py-mt-pole{background:#fff;border:1px solid #eee4f3;border-radius:13px;padding:11px 14px;margin-bottom:8px}
.py-mt-pole-t{font-weight:800;font-size:14.5px}
.py-mt-pole-t span{background:#f3eefc;border-radius:999px;padding:1px 9px;font-size:12.5px;margin-left:5px}
.py-mt-pole-l{font-size:13.5px;opacity:.85;margin-top:3px}
.py-mt-pole-s{font-size:12.5px;opacity:.62;margin-top:5px;line-height:1.5}
.py-mt-jauges{background:#fff;border:1px solid #eee4f3;border-radius:14px;padding:6px 15px;margin-bottom:10px}
.py-mt-jl{display:flex;justify-content:space-between;align-items:center;padding:9px 0;
  border-bottom:1px solid #f4eefb;font-size:14.5px}
.py-mt-jl:last-child{border-bottom:none}
.py-mt-jl b{font-size:17px}
.py-mt-arb{display:grid;gap:7px;margin-top:9px}
/* La barre de pilotage : le pouce doit l'atteindre sans regarder. */
.py-mt-pilote{position:fixed;left:0;right:0;bottom:0;padding:11px 12px calc(11px + env(safe-area-inset-bottom));
  background:#fffffff2;border-top:1px solid #eee4f3;backdrop-filter:blur(6px);display:grid;gap:7px}
.py-mt-btn{width:100%;padding:16px;border-radius:14px;font:inherit;font-size:17px;font-weight:800;
  background:linear-gradient(135deg,#f59e0b,#fbbf24);color:#1a1430}
.py-mt-btn.alt{background:#f3eefc;color:#3c3357}
.py-mt-btn:disabled{opacity:.55}
.py-mt-err{background:#fee2e2;color:#991b1b;border-radius:10px;padding:8px 12px;font-size:13px}
.py-logo-nom{display:inline-flex;flex-direction:column;line-height:1.15}
.py-logo-nom b{font-family:'Fraunces',serif;font-size:1.25em}
.py-logo-nom i{font-style:normal;font-size:.62em;opacity:.7;letter-spacing:.5px}


/* ============ Board Games — le catalogue ============ */
.bg-menu{max-width:900px;margin:0 auto}
.bg-menu h2{font-family:'Fraunces',serif;font-size:26px}
.bg-intro{line-height:1.6;opacity:.85;margin:8px 0 18px}
.bg-cartes{display:grid;gap:14px}
.bg-act{ display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap; }
.bg-act-b{ border:1px solid #d7d2ea; background:#fff; color:#3b356b; border-radius:8px;
  padding:4px 9px; font-size:12.5px; font-weight:700; cursor:pointer; }
.bg-act-b:hover{ background:#f3f0ff; }
.bg-act-b:disabled{ opacity:.55; cursor:default; }
.bg-act-danger{ background:#fee2e2; border-color:#fca5a5; color:#b91c1c; }
.bg-act-danger:hover{ background:#fecaca; }
.bg-act-clos{ font-size:11.5px; font-weight:800; color:#b45309; background:#fef3c7;
  border-radius:999px; padding:2px 8px; }
.bg-act-err{ font-size:11.5px; color:#b91c1c; }

.bg-carte{display:block;width:100%;text-align:left;background:#fff;border:1.5px solid #eee4f3;
  border-radius:18px;padding:18px 20px;font:inherit;cursor:pointer;position:relative;
  transition:border-color .18s,box-shadow .18s,transform .18s}
.bg-carte:hover{border-color:#c4b5fd;box-shadow:0 14px 34px -22px rgba(80,40,120,.7);transform:translateY(-2px)}
.bg-carte-h{display:flex;align-items:center;gap:14px;margin-bottom:10px}
.bg-logo{flex:0 0 auto;display:inline-flex;font-size:34px;line-height:1}
.bg-carte-id{flex:1;min-width:0}
.bg-carte-id b{display:block;font-family:'Fraunces',serif;font-size:21px;line-height:1.2}
.bg-carte-id span{font-size:13.5px;opacity:.72}
.bg-badge{flex:0 0 auto;background:#f3eefc;color:#5a5470;border-radius:999px;
  padding:4px 12px;font-size:12.5px;font-weight:700;white-space:nowrap}
.bg-badge-actif{background:#dcfce7;color:#166534}
.bg-desc{font-size:14.5px;line-height:1.6;margin-bottom:11px}
.bg-meta{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}
.bg-meta span{background:#f8fafc;border:1px solid #eee4f3;border-radius:999px;
  padding:4px 11px;font-size:12.5px;font-weight:600;color:#5a5470}
.bg-couvre{background:#f6f1ff;border-radius:12px;padding:10px 14px;font-size:12.5px;
  line-height:1.6;color:#4c4370}
.bg-couvre b{color:#3c3357}
.bg-cta{display:inline-block;margin-top:12px;font-weight:800;color:#7c3aed;font-size:14.5px}
.bg-suite{margin-top:16px;font-size:13.5px;opacity:.65;font-style:italic}
.bg-retour{background:#f3eefc;color:#3c3357;border-radius:11px;padding:8px 16px;
  font:inherit;font-size:14px;font-weight:700;margin-bottom:14px}
.bg-retour:hover{background:#e9e0fa}
@media(max-width:640px){
  .bg-carte-h{flex-wrap:wrap}
  .bg-badge{order:3}
}


/* ============ Le poste du professeur : deux écrans ============ */
.py-pc-barre{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.py-pc-note{font-size:13px;opacity:.7;line-height:1.5}
/* Le Maître sur PC garde sa largeur de téléphone : c'est la même
   interface, et l'étirer sur 1400 px la rendrait illisible. */
.py-pc-cadre{max-width:560px;margin:0 auto;border:1px solid #eee4f3;border-radius:18px;
  overflow:hidden;background:#fefcf8;box-shadow:0 18px 44px -30px rgba(80,40,120,.6)}
.py-pc-cadre .py-mt{padding-bottom:20px}
.py-pc-cadre .py-mt-tete{position:static}
.py-pc-cadre .py-mt-onglets{position:static}
/* Sur PC la barre de pilotage n'a pas à flotter : la fenêtre ne défile
   pas sous le pouce. */
.py-pc-cadre .py-mt-pilote{position:static;background:#f8f4ff;border-top:1px solid #eee4f3}


/* ============ La fiche de notion, projetée ============ */
.py-nm{position:fixed;inset:0;z-index:10001;background:#050a14ee;display:flex;
  align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(4px);
  animation:py-monte .25s ease both}
.py-nm-in{background:#0f1729;border:1px solid #ffffff26;border-radius:22px;
  max-width:1080px;width:100%;max-height:92vh;overflow:auto;padding:26px 32px;color:#e6edf7}
.py-nm-tete{display:flex;align-items:flex-start;gap:16px;margin-bottom:16px}
.py-nm-emoji{font-size:44px;line-height:1}
.py-nm-tete h2{font-family:'Fraunces',serif;font-size:34px;line-height:1.15;margin:0}
.py-nm-prog{font-size:14px;letter-spacing:1.4px;text-transform:uppercase;color:#7dd3fc;font-weight:800}
.py-nm-x{margin-left:auto;background:#ffffff14;color:#e6edf7;border:1px solid #ffffff26;
  border-radius:11px;padding:9px 14px;font-size:17px}
.py-nm-quoi{font-size:23px;line-height:1.55;margin-bottom:16px}
.py-nm-quoi b{color:#fbbf24}
.py-nm-points{list-style:none;display:grid;gap:9px;margin-bottom:16px}
.py-nm-points li{position:relative;padding-left:26px;font-size:19px;line-height:1.55}
.py-nm-points li:before{content:"—";position:absolute;left:0;color:#fbbf24;font-weight:800}
.py-nm-points b{color:#fbbf24}
.py-nm-ex{background:#0ea5e91a;border:1px solid #38bdf855;border-radius:14px;
  padding:14px 18px;font-size:18px;line-height:1.55;margin-bottom:12px}
.py-nm-piege{background:#f59e0b1a;border:1px solid #fbbf2455;border-radius:14px;
  padding:14px 18px;font-size:18px;line-height:1.55}
/* --- la pièce projetée : un document, pas une interface --- */
.py-piece{margin-top:20px;background:#fdfcf7;color:#1f2937;border-radius:14px;overflow:hidden;
  font-family:'Outfit',sans-serif}
.py-piece-avert{background:#fef3c7;color:#92400e;padding:8px 18px;font-size:13px;font-weight:700}
.py-piece-tete{padding:20px 26px 14px;border-bottom:2px solid #1f2937;text-align:center}
.py-piece-tete h4{font-family:'Fraunces',serif;font-size:25px;margin:0 0 4px;letter-spacing:.5px}
.py-piece-sous{font-size:15px;opacity:.8}
.py-piece-lieu{font-size:13px;opacity:.62;margin-top:4px;font-style:italic}
.py-piece-corps{padding:18px 26px}
.py-piece-art{margin-bottom:14px}
.py-piece-art-t{font-size:15px;margin-bottom:3px}
.py-piece-num{display:inline-block;background:#1f2937;color:#fdfcf7;border-radius:5px;
  padding:1px 8px;font-size:12px;font-weight:700;margin-right:8px}
.py-piece-art p{font-size:16px;line-height:1.6;text-align:justify}
.py-piece-art-cle{background:#fef9e7;border-left:4px solid #f59e0b;
  padding:10px 14px;border-radius:0 8px 8px 0}
.py-piece-pied{padding:12px 26px 18px;font-size:14px;font-style:italic;opacity:.72;
  border-top:1px solid #e5e7eb}
.py-piece-loupe{background:#1f2937;color:#fdfcf7;padding:13px 26px;font-size:16px;line-height:1.55}
/* --- l'onglet Expliquer, côté Maître --- */
.py-mt-sect{font-size:12px;letter-spacing:1.4px;text-transform:uppercase;opacity:.6;
  font-weight:800;margin:14px 0 7px}
.py-mt-fiche{background:#fff;border:1px solid #eee4f3;border-radius:13px;padding:11px 14px;margin-bottom:8px}
.py-mt-fiche-ici{border-color:#fbbf24;background:#fffbeb}
.py-mt-fiche-t{font-size:15px}
.py-mt-fiche-p{font-size:12px;opacity:.62;margin:2px 0 8px}
.py-mt-fiche-b{display:flex;gap:7px;flex-wrap:wrap}
.py-mt-btn.petit{width:auto;flex:1;padding:10px 12px;font-size:14px;border-radius:11px}
@media(max-width:900px){
  .py-nm-in{padding:18px 20px}
  .py-nm-tete h2{font-size:26px}
  .py-nm-quoi{font-size:19px}
  .py-nm-points li{font-size:16.5px}
  .py-nm-ex,.py-nm-piege{font-size:16px}
}


/* --- Chaque page porte son image --- */
.py-demo-img{width:100%;max-width:640px;aspect-ratio:16/9;object-fit:cover;border-radius:18px;
  margin:0 auto 18px;display:block;box-shadow:0 16px 40px -20px #000c;animation:py-pop .5s ease both}
.py-bilan-img,.py-fin-img{width:100%;max-width:560px;aspect-ratio:16/9;object-fit:cover;
  border-radius:16px;margin-bottom:16px;display:block;box-shadow:0 14px 36px -20px #000c;
  animation:py-pop .5s ease both}
.py-retombee-img{float:right;width:300px;max-width:34vw;aspect-ratio:16/9;object-fit:cover;
  border-radius:14px;margin:0 0 14px 20px;box-shadow:0 12px 30px -16px #000c}
@media(max-width:900px){
  .py-retombee-img{float:none;width:100%;max-width:none;margin:0 0 14px}
}
@media(prefers-reduced-motion:reduce){
  .py-demo-img,.py-bilan-img,.py-fin-img{animation:none}
}


/* --- Le journal de bord --- */
.py-journal{display:grid;gap:9px;margin-bottom:6px}
.py-journal-l{display:flex;gap:12px;align-items:flex-start;background:#ffffff0a;
  border:1px solid #ffffff1a;border-radius:12px;padding:10px 14px}
.py-journal-n{flex:0 0 auto;width:26px;height:26px;border-radius:50%;background:#ffffff17;
  display:inline-flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:800}
.py-journal-t{font-weight:800;font-size:15px;margin-bottom:2px}
.py-journal-pap{margin-left:8px;font-size:14px}
.py-journal-d{font-size:14.5px;line-height:1.5;opacity:.92}
.py-journal-d b{color:#fbbf24}
.py-journal-r{font-size:13.5px;line-height:1.5;opacity:.72;margin-top:5px;font-style:italic}
.py-journal-compact .py-journal-l{padding:8px 12px}
.py-journal-compact .py-journal-t{font-size:14px}
.py-journal-compact .py-journal-d{font-size:13.5px}
/* Chez le Maître, fond clair. */
.py-mt-bloc .py-journal-l{background:#f8f4ff;border-color:#eee4f3;color:#1a1430}
.py-mt-bloc .py-journal-n{background:#e9e0fa}
.py-mt-bloc .py-journal-d b{color:#7c3aed}


/* --- La trace écrite : ce que le professeur emporte --- */
@media print{
  body{background:#fff !important}
  .py-board,.py-board *{visibility:hidden}
  #py-trace,#py-trace *{visibility:visible}
  #py-trace{position:absolute;inset:0;padding:0;background:#fff;color:#111}
  .py-trace-non{display:none !important}
}
#py-trace{display:none}
.py-trace-ouvert #py-trace{display:block;position:fixed;inset:0;z-index:10002;
  background:#fff;color:#111;overflow:auto;padding:28px 34px;font-family:'Outfit',sans-serif}
.py-trace-tete{border-bottom:2px solid #111;padding-bottom:12px;margin-bottom:18px}
.py-trace-tete h1{font-family:'Fraunces',serif;font-size:26px;margin:0 0 4px}
.py-trace-tete p{font-size:14px;opacity:.75}
#py-trace h2{font-size:17px;margin:20px 0 9px;border-left:4px solid #f59e0b;padding-left:10px}
.py-trace-j{display:grid;gap:7px}
.py-trace-l{border:1px solid #ddd;border-radius:8px;padding:9px 12px;font-size:13.5px;line-height:1.55}
.py-trace-l b{display:block;font-size:14px}
.py-trace-l i{font-style:normal;opacity:.72}
.py-trace-n{display:grid;gap:6px}
.py-trace-n div{font-size:13px;line-height:1.5;border-left:3px solid #bae6fd;padding-left:10px}
.py-trace-n b{display:block;color:#0369a1;font-size:12px;text-transform:uppercase;letter-spacing:.8px}
.py-trace-g{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:6px}
.py-trace-g span{border:1px solid #ddd;border-radius:999px;padding:4px 12px;font-size:13px;font-weight:700}
.py-trace-barre{position:fixed;top:14px;right:18px;display:flex;gap:8px;z-index:10003}


/* --- La recherche de notions --- */
.py-mt-rech{display:flex;align-items:center;gap:8px;background:#fff;border:1.5px solid #eee4f3;
  border-radius:12px;padding:4px 10px;margin-bottom:9px}
.py-mt-rech:focus-within{border-color:#7c3aed}
.py-mt-rech-ic{font-size:15px;opacity:.6}
.py-mt-rech input{flex:1;border:none;outline:none;font:inherit;font-size:15px;
  padding:9px 0;background:transparent;min-width:0}
.py-mt-rech-x{background:#f3eefc;color:#5a5470;border-radius:8px;padding:5px 9px;font-size:13px}


/* ---- Les trois ateliers « statuts et formes » ---- */
.st-doc{background:#fffdf8;border:1px solid #e6ddc9;border-radius:12px;
  padding:14px 16px;margin:12px 0;font-size:14.5px;line-height:1.55}
.st-doc-tete{border-bottom:1px solid #e6ddc9;padding-bottom:8px;margin-bottom:10px;
  display:flex;flex-direction:column;gap:2px}
.st-doc-tete b{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:#8a6d3b}
.st-doc-tete span{font-size:12.5px;color:#9a8f7d;font-style:italic}
.st-doc-pied{margin:10px 0 0;font-size:12px;color:#9a8f7d;font-style:italic}
.st-art{display:grid;grid-template-columns:92px 1fr;gap:10px;padding:7px 0;
  border-top:1px dashed #ece3d1}
.st-art:first-of-type{border-top:none}
.st-art-n{font-size:12.5px;font-weight:700;color:#8a6d3b;white-space:nowrap}
.st-art-c b{display:block;font-size:13px;color:#5c4a2a;margin-bottom:2px}
.st-art-manque{background:#fff4d6;border-radius:8px;padding:7px 8px;margin:4px -8px;
  border-top:none;box-shadow:inset 0 0 0 1.5px #f0c96a}
.st-art-vide{display:inline-block;color:#b45309;font-style:italic;letter-spacing:.04em}
.st-tab{width:100%;border-collapse:collapse;font-size:14px}
.st-tab th,.st-tab td{border:1px solid #e6ddc9;padding:7px 9px;vertical-align:top;text-align:left}
.st-tab th{background:#f8f2e4;font-weight:700;color:#5c4a2a;width:32%}
.st-tab thead th{width:auto;font-size:12.5px;letter-spacing:.03em}
.st-l-manque td{background:#fff4d6}
.st-sous{margin:-4px 0 8px;font-size:13.5px;color:var(--doux,#7a7267);font-style:italic}
.st-recit{margin:10px 0;line-height:1.6}
.st-carnet{background:#f4f7f5;border:1px solid #d8e4dd;border-radius:12px;
  padding:12px 14px;margin:14px 0}
.st-carnet-tete{display:flex;align-items:center;gap:8px;font-weight:800;
  font-size:14px;color:#2f6b52;margin-bottom:9px}
.st-carnet-tete span{margin-left:auto;font-weight:600;font-size:12.5px;color:#7d9b8c}
.st-carnet-vide{margin:0;font-size:13.5px;color:#7d9b8c;font-style:italic}
.st-carnet .st-tab th{background:#e8f0eb;color:#2f6b52}
.st-carnet .st-tab th,.st-carnet .st-tab td{border-color:#d8e4dd;font-size:13.5px}
@media(max-width:620px){
  .st-art{grid-template-columns:1fr;gap:2px}
  .st-tab,.st-tab tbody,.st-tab tr,.st-tab th,.st-tab td{display:block;width:auto}
  .st-tab th{border-bottom:none}
  .st-tab td{border-top:none;margin-bottom:6px}
}


/* ---------- My ETLV Oral ---------- */
.orl-h{margin:0 0 10px;font-size:22px}
.orl-intro{margin:0 0 12px;line-height:1.55}
.orl-pourquoi{background:#eef2ff;border-left:4px solid #4f46e5;border-radius:0 10px 10px 0;
  padding:12px 14px;margin:0 0 14px;line-height:1.55;font-size:15px}
.orl-liste{display:flex;flex-direction:column;gap:8px;margin:14px 0}
.orl-carte{display:flex;align-items:center;gap:12px;width:100%;text-align:left;cursor:pointer;
  background:#fff;border:1px solid #dfe3ee;border-radius:12px;padding:12px 14px;transition:.15s}
.orl-carte:hover{border-color:#4f46e5;transform:translateY(-1px)}
.orl-carte-fait{background:#f5f7ff;border-color:#c7cffb}
.orl-num{flex:0 0 32px;height:32px;display:grid;place-items:center;border-radius:50%;
  background:#4f46e5;color:#fff;font-weight:800;font-size:15px}
.orl-carte-fait .orl-num{background:#16a34a}
.orl-txt{flex:1;min-width:0;display:flex;flex-direction:column}
.orl-txt b{font-size:15.5px}
.orl-txt i{font-size:13px;color:#6b7280;font-style:normal}
.orl-pastille{flex:0 0 auto;font-size:12px;font-weight:700;color:#16a34a;
  background:#eafaf0;border-radius:999px;padding:3px 9px}
.orl-but{display:inline-block;font-size:12.5px;font-weight:800;letter-spacing:.04em;
  text-transform:uppercase;color:#4f46e5;background:#eef2ff;border-radius:999px;
  padding:4px 12px;margin:0 0 10px}
.orl-but span{font-weight:600;text-transform:none;letter-spacing:0;color:#6b7280}
.orl-fil{display:flex;align-items:center;gap:10px;margin-bottom:12px;font-weight:700}
.orl-retour{background:none;border:none;color:#4f46e5;font-weight:700;cursor:pointer;padding:0}
.orl-gab{background:#fff;border:1px solid #dfe3ee;border-radius:12px;padding:14px;
  line-height:2.4;font-size:16px}
.orl-fixe{white-space:pre-wrap}
.orl-trou{display:inline-flex;flex-direction:column;vertical-align:middle;margin:0 3px}
.orl-trou input{border:none;border-bottom:2px solid #4f46e5;background:#f8f9ff;
  font:inherit;padding:2px 6px;min-width:150px;border-radius:4px 4px 0 0}
.orl-trou input:focus{outline:none;background:#eef2ff}
.orl-trou i{font-size:11.5px;color:#8b92a6;font-style:normal;line-height:1.2;margin-top:1px}
.orl-apercu{margin:14px 0;padding:12px 14px;background:#f5f7ff;border-radius:10px;
  line-height:1.6;font-size:16px}
.orl-manque{color:#b45309;font-weight:600;margin:8px 0}
.orl-fiche{background:#fff;border:1px solid #dfe3ee;border-radius:12px;padding:16px 18px}
.orl-fiche h3{margin:0 0 14px}
.orl-fiche-l{margin:0 0 14px;padding-bottom:12px;border-bottom:1px solid #eef0f6}
.orl-fiche-l:last-child{border-bottom:none;padding-bottom:0}
.orl-fiche-l b{font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:#4f46e5}
.orl-fiche-l p{margin:4px 0 6px;line-height:1.6;font-size:16px}
@media print{
  .top,.lo,.fj-cta,.orl-fil,.fj-antibi{display:none!important}
  .orl-fiche{border:none;padding:0}
}

/* ---------- Nout'DeLo ----------
   Prefixe nd- partout (piege N). */

/* ============ LE PLATEAU — projete ============ */
/* ⚠️ HAUTEUR FIXE ET DEBORDEMENT MASQUE. Le plateau est projete : il
   ne se fait pas defiler. Ce qui ne tient pas est mis a l'echelle par
   `ndAjuster`, jamais renvoye sous la ligne de flottaison. */
.nd-plateau{height:100vh;overflow:hidden;
  background:linear-gradient(160deg,#062a3d,#0b4a63 60%,#0d6b7a);
  color:#eaf6fb;display:flex;flex-direction:column;padding:22px 30px;
  font-family:system-ui,-apple-system,'Segoe UI',sans-serif}
.nd-attente{align-items:center;justify-content:center}
.nd-chargement{font-size:20px;opacity:.7}

.nd-top{display:flex;align-items:center;gap:18px;flex-wrap:wrap;
  border-bottom:1px solid rgba(255,255,255,.14);padding-bottom:12px}
.nd-logo{height:44px;background:#fff;border-radius:9px;padding:3px}
/* Pas de filtre : `brightness(0) invert(1)` sur un SVG a fond plein
   rend un carre blanc opaque — le logo disparait dans sa propre
   silhouette. La pastille marche quel que soit le contenu du SVG. */
.nd-top-c{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.nd-top-l{font-size:13px;text-transform:uppercase;letter-spacing:.09em;opacity:.6}
.nd-top-c b{font-size:20px}
.nd-code{font:800 30px/1 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.14em}
.nd-regime{background:rgba(255,255,255,.1);border-radius:999px;padding:7px 16px;
  font-size:14px;white-space:nowrap}

.nd-corps{flex:1;min-height:0;display:flex;flex-direction:column;
  justify-content:center;justify-content:safe center;padding:22px 0;gap:14px}
/* ⚠️ `center` fait deborder un contenu trop grand DES DEUX COTES :
   le depouillement passait par-dessus l'en-tete du plateau. `safe`
   retombe sur flex-start des que ca ne tient pas — et c'est la
   condition pour que la mise a l'echelle mesure la bonne hauteur. Les
   deux valeurs sont dans la regle ci-dessus : sans `safe`, un navigateur
   ancien garde `center`. */
.nd-corps h1{font-size:64px;margin:0;letter-spacing:-.02em}
.nd-corps h2{font-size:38px;margin:0 0 6px;line-height:1.15}
.nd-baseline{font-size:22px;opacity:.8;margin:0}
.nd-scene{width:100%;max-height:190px;object-fit:cover;border-radius:16px;opacity:.85}
.nd-situation{font-size:23px;line-height:1.5;max-width:60ch;opacity:.94;margin:0}
.nd-consigne{font-size:17px;opacity:.65;margin:6px 0 0}
.nd-fictif{font-size:13px;opacity:.5;margin-top:auto}

.nd-acc{align-items:center;text-align:center}
.nd-acc-2{display:flex;gap:36px;align-items:center;flex-wrap:wrap;justify-content:center}
.nd-bouteille{height:280px;border-radius:14px}
.nd-acc-t{font-size:20px;opacity:.85;margin:0 0 12px}
.nd-code-g{font:800 76px/1 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.16em;
  background:rgba(255,255,255,.1);border-radius:18px;padding:16px 28px}
.nd-acc-n{font-size:17px;opacity:.65;margin:14px 0 0}

.nd-cotes{display:flex;gap:16px;flex-wrap:wrap;margin-top:8px}
.nd-cote{flex:1 1 260px;border-radius:14px;padding:14px 20px;display:flex;
  flex-direction:column;gap:3px}
.nd-cote b{font-size:13px;letter-spacing:.1em}
.nd-cote span{font-size:20px}
.nd-cote.pour{background:rgba(34,197,94,.18);border:1px solid rgba(34,197,94,.4)}
.nd-cote.contre{background:rgba(248,113,113,.26);border:1px solid rgba(248,113,113,.6)}

.nd-mise{align-items:center;text-align:center}
.nd-attend{font-size:20px;opacity:.8;margin:10px 0 18px}

/* --- le depouillement, groupe par groupe, en cascade --- */
.nd-dep{display:flex;flex-direction:column;gap:9px;max-width:760px}
.nd-dep-l{display:flex;align-items:center;gap:14px;background:rgba(255,255,255,.08);
  border-radius:12px;padding:11px 18px;font-size:19px;
  opacity:0;animation:nd-arrive .45s ease-out forwards}
@keyframes nd-arrive{from{opacity:0;transform:translateX(-22px)}to{opacity:1;transform:none}}
.nd-dep-e{font-size:24px}
.nd-dep-n{flex:1}
.nd-dep-p{color:#86efac;font-weight:700}
.nd-dep-c{color:#fca5a5;font-weight:700}
.nd-totaux{display:flex;gap:22px;margin-top:18px}
.nd-tot{flex:1;border-radius:16px;padding:18px;text-align:center;font-size:17px;
  letter-spacing:.08em}
.nd-tot b{display:block;font-size:52px;line-height:1}
.nd-tot.pour{background:rgba(34,197,94,.2)}
.nd-tot.contre{background:rgba(248,113,113,.18)}

.nd-verdict{color:#fde68a}
.nd-sorties{background:rgba(248,113,113,.16);border-radius:14px;padding:12px 18px;
  margin-top:12px}
.nd-sorties p{margin:4px 0;font-size:18px}

.nd-notion{max-width:70ch}
.nd-notion p{font-size:21px;line-height:1.6;opacity:.92}

.nd-bilan-2{display:flex;gap:32px;align-items:center;flex-wrap:wrap}
.nd-reg-g{background:rgba(255,255,255,.1);border-radius:16px;padding:16px 22px;
  margin-bottom:12px}
.nd-reg-g b{font-size:26px;display:block;margin-bottom:6px}
.nd-reg-g p{margin:0;font-size:18px;opacity:.85;line-height:1.5}
.nd-but{background:rgba(253,230,138,.16);border-radius:14px;padding:14px 20px}
.nd-but b{display:block;margin-bottom:4px;color:#fde68a}
.nd-but p{margin:0;font-size:18px;line-height:1.5}
.nd-journal{flex:1;min-width:300px;display:flex;flex-direction:column;gap:7px}
/* Huit decisions en une colonne, c'est la moitie de l'ecran. En deux,
   la demonstration garde sa place et le texte sa taille. */
.nd-journal-2{display:block;columns:2;column-gap:16px}
.nd-journal-2 .nd-j-l{break-inside:avoid;margin-bottom:7px}
.nd-corps-fin{gap:10px}
.nd-h2-fin{font-size:26px;opacity:.85}
.nd-corps-fin .nd-demo{margin-top:0}
.nd-corps-fin .nd-carte-g{width:200px;height:200px}
.nd-j-l{background:rgba(255,255,255,.07);border-radius:10px;padding:9px 14px}
.nd-j-l b{display:block;font-size:16px}
.nd-j-l span{font-size:14px;opacity:.72}
.nd-demo{background:rgba(255,255,255,.12);border-radius:16px;padding:18px 24px;
  margin-top:16px}
.nd-demo b{font-size:22px;display:block;margin-bottom:8px;color:#fde68a}
.nd-demo p{margin:0;font-size:19px;line-height:1.7}

.nd-bas{display:flex;align-items:center;gap:18px;
  border-top:1px solid rgba(255,255,255,.14);padding-top:12px}
.nd-bas-c{display:flex;flex-direction:column;gap:2px}
.nd-bas-l{font-size:12px;text-transform:uppercase;letter-spacing:.09em;opacity:.55}
.nd-bas-r{font-size:17px;font-weight:700}

/* ============ LA CARTE DU POUVOIR ============ */
.nd-carte{width:150px;height:150px;flex:0 0 auto}
.nd-carte-g{width:280px;height:280px}
.nd-cercle{fill:none;stroke:rgba(255,255,255,.16);stroke-width:1.5}
.nd-rayon{stroke:rgba(255,255,255,.5);stroke-width:1.5}
.nd-noeud{transition:r .8s ease,fill .8s ease}
.nd-sorti{opacity:.35}
.nd-emoji{font-size:13px}
/* ⚠️ La transition fait GLISSER le point d'une position a l'autre :
   c'est le DEPLACEMENT qu'on veut montrer, pas les deux positions. */
.nd-gravite{fill:#fde68a;transition:cx 1.4s cubic-bezier(.4,0,.2,1),cy 1.4s cubic-bezier(.4,0,.2,1)}
.nd-gravite-halo{fill:rgba(253,230,138,.22);
  transition:cx 1.4s cubic-bezier(.4,0,.2,1),cy 1.4s cubic-bezier(.4,0,.2,1)}
@media (prefers-reduced-motion: reduce){
  .nd-gravite,.nd-gravite-halo,.nd-noeud{transition:none}
  .nd-dep-l{animation:none;opacity:1}
}

/* ============ LES JAUGES ============ */
.nd-jauges{display:flex;flex-direction:column;gap:6px;width:100%}
.nd-jauge{display:flex;align-items:center;gap:10px;font-size:15px}
.nd-j-c .nd-jauge{font-size:13.5px;gap:8px}
.nd-jauge-e{width:24px;text-align:center}
.nd-jauge-n{flex:0 0 190px;opacity:.85;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap}
.nd-jauge-b{flex:1;position:relative;height:13px;background:rgba(255,255,255,.13);
  border-radius:999px;overflow:visible;min-width:80px}
.nd-jauge-b i{position:absolute;left:0;top:0;bottom:0;border-radius:999px;
  transition:width 1s ease}
/* Le seuil, trace sur la barre : on voit de combien on est au-dessus. */
.nd-jauge-b u{position:absolute;top:-3px;bottom:-3px;width:2px;
  background:rgba(255,255,255,.75);text-decoration:none}
.nd-jauge-v{flex:0 0 46px;text-align:right;font-variant-numeric:tabular-nums;opacity:.85}
.nd-jauge-j{flex:0 0 56px;text-align:right;font-size:13px;opacity:.6}
.nd-jauge.alerte .nd-jauge-n{color:#fde68a}
.nd-jauge.sorti{opacity:.4}

.nd-err{color:#fca5a5;font-size:14px;margin:8px 0 0}

/* ============ LE TELEPHONE DE L'ELEVE ============ */
.nd-tel{max-width:520px;margin:0 auto;padding:16px;display:flex;flex-direction:column;
  gap:12px}
.nd-tel-logo{height:52px;margin:0 auto 4px}
.nd-tel-chapo{text-align:center;color:#475569;line-height:1.6;margin:0}
.nd-tel-input{width:100%;padding:13px 16px;border:2px solid #cbd5e1;border-radius:12px;
  font-size:16px}
.nd-tel-input:focus{outline:none;border-color:#0284c7}
.nd-tel-tete{display:flex;align-items:center;gap:12px;background:#fff;
  border:1px solid #e2e8f0;border-left:5px solid #94a3b8;border-radius:14px;
  padding:12px 16px}
.nd-tel-e{font-size:30px}
.nd-tel-tete b{display:block;font-size:16px}
.nd-tel-tete span{font-size:13px;color:#64748b}
.nd-tel-secret{background:#fffbeb;border:1px solid #fde68a;border-radius:14px;
  padding:12px 16px}
.nd-tel-secret b{display:block;font-size:13px;color:#92400e;margin-bottom:4px}
.nd-tel-secret p{margin:0;line-height:1.55;color:#78350f}
.nd-tel-q{margin:0;font-size:19px;line-height:1.3}
.nd-tel-fiche{background:#f0f9ff;border-left:4px solid #0284c7;
  border-radius:0 12px 12px 0;padding:12px 16px}
.nd-tel-fiche b{display:block;font-size:12.5px;color:#0369a1;
  text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px}
.nd-tel-fiche p{margin:0;line-height:1.6}
.nd-tel-cotes{display:flex;flex-direction:column;gap:6px;font-size:14.5px;
  color:#334155}
.nd-tel-wait{text-align:center;color:#64748b;font-style:italic;padding:16px 0;margin:0}
.nd-tel-pub{font-size:13.5px;color:#64748b;margin:6px 0 0}
.nd-tel-attente p{line-height:1.6}

.nd-tel-mise{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:16px}
.nd-tel-lab{display:block;font-size:15px;margin-bottom:8px}
.nd-tel-lab b{font-size:22px;color:#0284c7}
/* Le curseur doit etre confortable au pouce : c'est le geste central du jeu. */
.nd-tel-range{width:100%;height:32px;accent-color:#0284c7}
.nd-tel-aide{font-size:12.5px;color:#64748b;margin:6px 0 0}
.nd-tel-stock{font-size:15px;color:#0f172a;margin:8px 0 0}
.nd-tel-stock b{color:#0284c7;font-size:17px}
.nd-tel-sorti{background:#fef2f2;border:1px solid #fecaca;border-radius:14px;
  padding:14px 16px}
.nd-tel-sorti b{display:block;color:#b91c1c;margin-bottom:6px}
.nd-tel-sorti p{margin:6px 0 0;line-height:1.6;color:#7f1d1d}
.nd-tel-choix{display:flex;gap:10px;margin:14px 0}
.nd-tel-b{flex:1;padding:16px;border-radius:14px;border:2px solid #e2e8f0;
  background:#fff;cursor:pointer;font-weight:800;font-size:16px;color:#334155}
.nd-tel-b.pour.on{background:#16a34a;border-color:#16a34a;color:#fff}
.nd-tel-b.contre.on{background:#dc2626;border-color:#dc2626;color:#fff}
.nd-tel-ok{text-align:center}
.nd-tel-ok b{display:block;font-size:17px;color:#16a34a;margin-bottom:6px}
.nd-tel-ok p{margin:4px 0}

/* ============ LE MAITRE DU JEU ============ */
.nd-m{max-width:560px;margin:0 auto;padding:14px 14px 96px;display:flex;
  flex-direction:column;gap:12px}
.nd-m-tete{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;
  border-bottom:1px solid #e2e8f0;padding-bottom:10px}
.nd-m-tete b{font-size:18px}
.nd-m-tete span{font-size:13px;color:#64748b}
.nd-m-ong{display:flex;gap:7px}
.nd-m-o{flex:1;background:#fff;border:1px solid #e2e8f0;border-radius:999px;
  padding:9px 6px;cursor:pointer;font-size:13.5px}
.nd-m-o.on{background:#0f172a;border-color:#0f172a;color:#fff}
.nd-m-corps{display:flex;flex-direction:column;gap:11px}
.nd-m-phase{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#64748b}
.nd-m-corps h3{margin:0;font-size:19px;line-height:1.3}
.nd-m-sit{margin:0;line-height:1.6;color:#334155}
.nd-m-mises{background:#f0f9ff;border-radius:12px;padding:12px 14px}
.nd-m-qui{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.nd-m-p{font-size:12.5px;background:#fff;border:1px solid #cbd5e1;border-radius:999px;
  padding:3px 10px;color:#64748b}
.nd-m-p.ok{background:#16a34a;border-color:#16a34a;color:#fff}
.nd-m-dep{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:12px 14px;
  line-height:1.9;font-size:14.5px}
.nd-m-notion{background:#f0fdfa;border-left:4px solid #0f766e;
  border-radius:0 12px 12px 0;padding:13px 16px}
.nd-m-notion b{display:block;margin-bottom:6px;color:#0f766e}
.nd-m-notion p{margin:0 0 8px;line-height:1.65}
.nd-m-g{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:11px 14px}
.nd-m-g.sorti{opacity:.5}
.nd-m-secret{margin:4px 0;font-size:13.5px;color:#92400e;background:#fffbeb;
  border-radius:8px;padding:6px 10px;line-height:1.5}
.nd-m-l{margin:0;font-size:13px;color:#64748b}
.nd-m-histo{background:#f8fafc;border-radius:12px;padding:12px 14px}
.nd-m-histo p{margin:4px 0;font-size:14px;line-height:1.5}

/* La barre de pilotage, atteignable au pouce sans regarder. */
.nd-m-barre{position:fixed;left:0;right:0;bottom:0;background:#fff;
  border-top:1px solid #e2e8f0;padding:12px 14px;display:flex;gap:8px;
  flex-wrap:wrap;box-shadow:0 -6px 20px -12px rgba(0,0,0,.3);z-index:50}
.nd-m-go{flex:1;min-width:180px;background:#0f172a;color:#fff;border:none;
  border-radius:14px;padding:16px;font-size:15.5px;font-weight:700;cursor:pointer}
.nd-m-go:disabled{opacity:.5}
.nd-m-rien{color:#94a3b8;font-size:14px;padding:8px}

/* ============ L'ECRAN PROF ============ */
.nd-prof{max-width:860px;margin:0 auto}
.nd-prof-tete{display:flex;gap:16px;align-items:center;margin-bottom:18px;flex-wrap:wrap}
.nd-prof-logo{height:56px}
.nd-prof-tete h3{margin:0 0 4px;font-size:20px}
.nd-prof-tete p{margin:0;color:#475569;line-height:1.55}
.nd-prof-creer{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.nd-prof-input{flex:1 1 200px;padding:11px 15px;border:1px solid #cbd5e1;
  border-radius:12px;font-size:15px}
.nd-prof-neuve{background:#f0fdfa;border:1px solid #99f6e4;border-radius:16px;
  padding:16px 20px;margin-bottom:16px}
.nd-prof-codes{display:flex;gap:16px;flex-wrap:wrap;margin:12px 0}
.nd-prof-codes>div{flex:1 1 220px;background:#fff;border-radius:12px;padding:11px 15px}
.nd-prof-codes span{display:block;font-size:12.5px;color:#64748b;margin-bottom:3px}
.nd-prof-code{font:800 24px/1 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.1em}
/* Le code de pilotage se distingue a l'oeil : le confondre avec celui
   qu'on projette donnerait la partie a la classe. */
.nd-prof-secret{background:#fef2f2 !important;border:1px solid #fecaca}
.nd-prof-secret span{color:#b91c1c}
.nd-prof-actions{display:flex;gap:10px;flex-wrap:wrap}
.nd-prof-qr{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:18px;
  text-align:center;margin-bottom:16px}
.nd-prof-qr p{margin:0 0 12px;color:#475569;line-height:1.55}
.nd-prof-h4{margin:20px 0 10px;font-size:16px}
.nd-prof-vide{color:#64748b;font-style:italic}
.nd-prof-liste{display:flex;flex-direction:column;gap:8px}
.nd-prof-l{display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:11px 15px;
  flex-wrap:wrap}
.nd-prof-l b{font:800 17px/1 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.08em}
.nd-prof-n{font-size:13px;color:#64748b}
.nd-prof-b{display:flex;gap:7px}
.nd-prof-b button{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:10px;
  padding:8px 13px;cursor:pointer;font-size:13.5px}
.nd-prof-b button:hover{border-color:#0284c7}

/* La carte du pouvoir est deja en grand dans le corps au bilan et a la
   fin : la repeter en miniature dans le bandeau ne dit rien de plus. */
.nd-plateau:has(.nd-corps .nd-carte-g) .nd-bas .nd-carte{display:none}

@media (max-width:760px){
  .nd-plateau{padding:14px 16px}
  .nd-corps h1{font-size:40px}
  .nd-corps h2{font-size:26px}
  .nd-code-g{font-size:44px}
  .nd-situation{font-size:18px}
  .nd-jauge-n{flex-basis:120px}
}

/* ==== apprendre : styles ==== */
/* ============================================================
   APPRENDRE À APPRENDRE — styles
   ⚠️ PIÈGE N : tout modificateur porte le préfixe de son bloc.
      `.ap-ok`, jamais `.ok` — la feuille de la plateforme compte
      5 216 règles et un nom court y devient un nom global.
============================================================ */

.ap-jeu{max-width:900px;margin:0 auto}
.ap-carte{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:22px 24px;margin-bottom:18px}
.ap-banniere{width:100%;height:190px;object-fit:cover;border-radius:12px;display:block;margin:0 0 16px}
.ap-titre{margin:0 0 4px;font-size:24px;color:#0f172a;letter-spacing:-.02em}
.ap-sous{margin:0 0 16px;color:#64748b;font-size:15px}
.ap-intro{font-size:16.5px;color:#334155;margin:0 0 14px}
.ap-p{font-size:16px;color:#334155;line-height:1.65;margin:0 0 12px}
.ap-h3{font-size:18px;color:#0f172a;margin:0 0 10px}
.ap-q{font-size:17px;font-weight:700;color:#0f172a;margin:16px 0 12px}
.ap-pas{font-size:12px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#94a3b8;margin:0 0 12px}
.ap-liste{margin:0 0 14px;padding-left:20px;color:#334155;line-height:1.8}
.ap-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}

/* la consigne : c'est elle qu'on relit, elle doit se distinguer */
.ap-consigne{background:#eef2ff;border-left:4px solid #6366f1;border-radius:0 10px 10px 0;
  padding:13px 16px;margin:0 0 16px;font-size:15.5px;color:#1e293b}
.ap-aide{margin:0 0 14px;font-size:15px}
.ap-aide summary{cursor:pointer;color:#4f46e5;font-weight:600}
.ap-aide p{margin:8px 0 0;color:#475569}

/* ---------- le surligneur ---------- */
.ap-texte{background:#fffdf7;border:1px solid #e7e5db;border-radius:12px;padding:18px 20px;
  font-size:17px;line-height:2.05;color:#1f2937}
.ap-seg{display:inline;border:0;background:transparent;font:inherit;color:inherit;
  padding:2px 0;cursor:pointer;border-radius:4px;text-align:left;
  transition:background .12s ease}
.ap-seg:hover{background:#f1f5f9}
.ap-seg.ap-on{background:#fde68a}
.ap-corrige .ap-seg{cursor:default}
.ap-corrige .ap-seg:hover{background:transparent}
.ap-corrige .ap-seg.ap-ok{background:#bbf7d0;box-shadow:inset 0 -2px 0 #16a34a}
.ap-corrige .ap-seg.ap-manque{background:#fee2e2;box-shadow:inset 0 -2px 0 #dc2626}
.ap-corrige .ap-seg.ap-trop{background:#fed7aa;box-shadow:inset 0 -2px 0 #ea580c}
.ap-corrige .ap-seg.ap-tiede{background:#e0e7ff;box-shadow:inset 0 -2px 0 #6366f1}

.ap-bilan{margin-top:20px;border-top:1px solid #e5e7eb;padding-top:18px}
.ap-score{display:flex;align-items:baseline;gap:14px;margin:0 0 14px}
.ap-score b{font-size:38px;color:#0f172a;letter-spacing:-.03em}
.ap-score span{color:#64748b;font-size:15px}
.ap-legende{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.ap-lg{font-size:12.5px;padding:3px 10px;border-radius:99px;font-weight:600}
.ap-lg.ap-ok{background:#bbf7d0;color:#14532d}
.ap-lg.ap-manque{background:#fee2e2;color:#7f1d1d}
.ap-lg.ap-trop{background:#fed7aa;color:#7c2d12}
.ap-lg.ap-tiede{background:#e0e7ff;color:#312e81}
.ap-note{background:#fff7ed;border-left:3px solid #f59e0b;padding:11px 15px;border-radius:0 8px 8px 0;
  font-size:15px;color:#78350f;margin:0 0 14px}
.ap-pourquoi{list-style:none;padding:0;margin:0 0 16px}
.ap-pourquoi li{display:flex;gap:10px;align-items:flex-start;padding:9px 0;border-bottom:1px solid #f1f5f9;
  font-size:15px;color:#475569;line-height:1.55}
.ap-etat{flex:0 0 auto;width:22px}

/* ---------- les options ---------- */
.ap-opts{display:flex;flex-direction:column;gap:9px;margin:0 0 14px}
.ap-opt{text-align:left;background:#f8fafc;border:2px solid #e2e8f0;border-radius:11px;
  padding:12px 15px;font:inherit;font-size:15.5px;color:#1e293b;cursor:pointer;line-height:1.5;
  transition:border-color .15s,background .15s}
.ap-opt:hover:not(:disabled){border-color:#94a3b8;background:#fff}
.ap-opt-on{border-color:#6366f1;background:#eef2ff}
.ap-opt-ok{border-color:#16a34a;background:#dcfce7}
.ap-opt-ko{border-color:#dc2626;background:#fee2e2}
.ap-fb{background:#f1f5f9;border-radius:10px;padding:13px 16px;font-size:15.5px;
  color:#334155;line-height:1.6;margin:0 0 14px}

/* ---------- rappel (cases) ---------- */
.ap-cases{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 16px}
.ap-case{background:#f8fafc;border:2px solid #e2e8f0;border-radius:99px;padding:9px 16px;
  font:inherit;font-size:15px;color:#1e293b;cursor:pointer}
.ap-case-on{border-color:#6366f1;background:#eef2ff}
.ap-case-rate{border-style:dashed;border-color:#dc2626;color:#991b1b}

/* ---------- tri ---------- */
.ap-tri{display:flex;flex-direction:column;gap:9px;margin:0 0 16px}
.ap-item{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;
  background:#f8fafc;border:2px solid #e2e8f0;border-radius:11px;padding:11px 14px}
.ap-item-t{font-size:15.5px;color:#1e293b;flex:1 1 200px}
.ap-item-b{display:flex;gap:7px;flex-wrap:wrap}
.ap-mini{background:#fff;border:1.5px solid #cbd5e1;border-radius:99px;padding:6px 13px;
  font:inherit;font-size:13.5px;color:#475569;cursor:pointer}
.ap-mini-on{background:#4f46e5;border-color:#4f46e5;color:#fff;font-weight:600}

/* ---------- ordre ---------- */
.ap-ordre{margin:0 0 12px;padding-left:22px}
.ap-ordre li{margin-bottom:8px;font-size:15.5px;padding:9px 13px}
.ap-restants{display:flex;flex-direction:column;gap:8px;margin:0 0 14px}

/* ---------- la courbe ---------- */
.ap-courbe{background:#0f172a;border-radius:14px;padding:16px 18px;margin:0 0 16px}
.ap-svg{width:100%;height:auto;display:block}
.ap-grille{stroke:#334155;stroke-width:1}
.ap-axe{fill:#64748b;font-size:10px}
.ap-trace{fill:none;stroke:#38bdf8;stroke-width:3;stroke-linecap:round;
  transition:d .35s ease}
.ap-rev{stroke:#fbbf24;stroke-width:2;stroke-dasharray:4 3}
.ap-jours{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0 10px}
.ap-jour{background:#1e293b;border:1.5px solid #334155;border-radius:99px;padding:7px 14px;
  font:inherit;font-size:13.5px;color:#cbd5e1;cursor:pointer}
.ap-jour-on{background:#fbbf24;border-color:#fbbf24;color:#451a03;font-weight:700}
.ap-verdict{color:#e2e8f0;font-size:15.5px;margin:8px 0 0}
.ap-courbe .ap-fb{background:#1e293b;color:#cbd5e1;margin-top:12px}

/* ---------- la boîte à outils ---------- */
.ap-filtres{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
.ap-filtre{background:#f1f5f9;border:1.5px solid #e2e8f0;border-radius:99px;padding:8px 16px;
  font:inherit;font-size:14px;color:#475569;cursor:pointer}
.ap-filtre-on{background:#0f172a;border-color:#0f172a;color:#fff;font-weight:600}
.ap-outils{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.ap-outil{background:#f8fafc;border:1px solid #e2e8f0;border-left:4px solid #6366f1;
  border-radius:0 12px 12px 0;padding:15px 17px}
.ap-outil h4{margin:0 0 7px;font-size:16px;color:#0f172a}
.ap-outil-q{margin:0 0 6px;font-size:12.5px;font-weight:700;letter-spacing:.05em;
  text-transform:uppercase;color:#6366f1}
.ap-outil-c{margin:0 0 8px;font-size:14.5px;color:#475569;line-height:1.55}
.ap-outil-g{margin:0;font-size:14px;color:#166534;font-weight:600}

/* ---------- la leçon, et la promesse de confidentialité ---------- */
.ap-lecon{background:#ecfdf5;border-left:4px solid #10b981;border-radius:0 12px 12px 0;
  padding:14px 17px;margin:16px 0}
.ap-lecon b{display:block;font-size:13px;letter-spacing:.06em;text-transform:uppercase;
  color:#047857;margin-bottom:6px}
.ap-lecon p{margin:0;font-size:15.5px;color:#065f46;line-height:1.6}
.ap-rien{font-size:13.5px;color:#94a3b8;font-style:italic;margin:14px 0 0}

@media (max-width:640px){
  .ap-carte{padding:17px 15px}
  .ap-banniere{height:140px}
  .ap-texte{font-size:16px;line-height:1.95;padding:14px 15px}
  .ap-score b{font-size:30px}
  .ap-item{align-items:flex-start}
}

@media (prefers-reduced-motion:reduce){
  .ap-seg,.ap-opt,.ap-trace{transition:none}
}

/* ============================================================
   LE SECOND LOT — 05/09/2026
   ⚠️ Piège N : chaque modificateur porte le préfixe de son bloc.
   `ap-mini-ok` et jamais `ok` : la feuille est UNIQUE pour toute la
   plateforme, un nom court y devient un nom global.
============================================================ */

/* ---------- les six formes du sketchnote ---------- */
.ap-formes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}
.ap-forme{display:flex;flex-direction:column;align-items:center;gap:5px;
  background:#fff;border:2px solid #e2e8f0;border-radius:14px;padding:12px 8px;
  cursor:pointer;text-align:center;color:#334155;transition:all .16s}
.ap-forme:hover:not(:disabled){border-color:#0369a1;transform:translateY(-2px)}
.ap-forme:disabled{cursor:default}
.ap-forme-svg{width:54px;height:40px;color:#0369a1}
.ap-forme-nom{font-weight:700;font-size:13.5px}
.ap-forme-quoi{font-size:12px;color:#64748b;line-height:1.35}

/* ---------- la boîte de Leitner ---------- */
.ap-boites{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:14px 0}
.ap-boite-p{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;
  padding:10px 11px;text-align:center}
.ap-boite-p b{display:block;font-size:12.5px;color:#0369a1;line-height:1.3}
.ap-boite-n{display:block;font-size:13px;color:#64748b;margin-top:4px}
.ap-cartes{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.ap-carte-l{display:flex;align-items:center;justify-content:space-between;gap:10px;
  flex-wrap:wrap;background:#fff;border:1.5px solid #e2e8f0;border-radius:12px;padding:10px 13px}
.ap-carte-q{font-weight:600;font-size:15px;color:#1e293b}
.ap-carte-b{display:flex;gap:6px}
/* ⚠️ `ap-fc-` : `.ap-mini` est déjà la pilule de tri du premier lot. */
.ap-fc-b{border:none;border-radius:9px;padding:7px 11px;font-size:13px;
  font-weight:600;cursor:pointer}
.ap-fc-b-ok{background:#d1fae5;color:#047857}
.ap-fc-b-ko{background:#fee2e2;color:#b91c1c}

/* ---------- la grille de la semaine ---------- */
/* ⚠️ `ap-sem-` ET PAS `ap-` NU : `.ap-grille` et `.ap-jour` appartenaient
   déjà à la courbe de l'oubli, 80 lignes plus haut (piège N). */
.ap-sem-grille{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:14px 0}
.ap-sem-jour{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:9px}
.ap-sem-jour-nom{font-weight:700;font-size:13px;color:#0369a1;margin-bottom:6px;text-align:center}
.ap-slot{display:block;width:100%;margin-bottom:5px;border:1.5px dashed #cbd5e1;
  background:#fff;border-radius:9px;padding:8px 6px;font-size:12.5px;color:#64748b;
  cursor:pointer;transition:all .14s}
.ap-slot:hover:not(:disabled){border-color:#0369a1;color:#0369a1}
.ap-slot-on{border-style:solid;border-color:#0369a1;background:#e0f2fe;
  color:#075985;font-weight:700}
.ap-slot-oc{border-style:solid;border-color:#e2e8f0;background:#f1f5f9;
  color:#94a3b8;cursor:not-allowed}
.ap-regles{list-style:none;padding:0;margin:14px 0;display:flex;flex-direction:column;gap:6px}
.ap-regles li{font-size:14px;line-height:1.5;padding:8px 12px;border-radius:10px}
.ap-r-ok{background:#ecfdf5;color:#065f46}
.ap-r-ko{background:#fef3c7;color:#92400e}
.ap-imprevu{background:#fef3c7;border-left:4px solid #f59e0b;border-radius:0 12px 12px 0;
  padding:13px 16px;margin:14px 0;font-size:15px;color:#78350f;line-height:1.6}

/* ---------- les jauges d'une séance de travail ---------- */
.ap-j{display:flex;align-items:center;gap:10px;margin:7px 0}
.ap-j-nom{flex:0 0 130px;font-size:13px;color:#64748b}
.ap-j-bar{flex:1;height:9px;background:#e2e8f0;border-radius:99px;overflow:hidden}
.ap-j-in{display:block;height:100%;border-radius:99px;transition:width .5s ease}
.ap-j-av{background:linear-gradient(90deg,#0369a1,#0ea5e9)}
.ap-j-en{background:linear-gradient(90deg,#b45309,#f59e0b)}
.ap-mot{background:#eff6ff;border-left:4px solid #0369a1;border-radius:0 10px 10px 0;
  padding:11px 15px;margin:10px 0 0;font-size:14.5px;color:#0c4a6e;line-height:1.6}

@media (max-width:640px){
  .ap-formes{grid-template-columns:repeat(2,1fr)}
  .ap-sem-grille{grid-template-columns:repeat(2,1fr)}
  .ap-boites{grid-template-columns:1fr;gap:6px}
  .ap-boite-p{display:flex;align-items:center;justify-content:space-between;text-align:left}
  .ap-boite-n{margin-top:0}
  .ap-j-nom{flex-basis:96px;font-size:12px}
  .ap-carte-l{align-items:flex-start;flex-direction:column}
}

@media (prefers-reduced-motion:reduce){
  .ap-forme,.ap-slot,.ap-j-in{transition:none}
}

/* ---------- les mesures d'Ebbinghaus, redessinées ---------- */
.ap-ebb{margin:14px 0;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.ap-ebb-tete{width:100%;background:none;border:none;text-align:left;cursor:pointer;
  padding:11px 14px;font-size:14.5px;font-weight:700;color:#0369a1}
.ap-ebb > div{padding:0 14px 14px}
.ap-ebb-sous{margin:0 0 10px;font-size:14px;color:#64748b}
.ap-ebb-l{display:flex;align-items:center;gap:9px;margin:5px 0}
.ap-ebb-t{flex:0 0 122px;font-size:13px;color:#334155}
.ap-ebb-bar{flex:1;height:12px;background:#e2e8f0;border-radius:99px;overflow:hidden}
.ap-ebb-in{display:block;height:100%;border-radius:99px;
  background:linear-gradient(90deg,#0369a1,#38bdf8)}
.ap-ebb-v{flex:0 0 44px;text-align:right;font-size:13px;font-weight:700;color:#0369a1}
.ap-source{margin:12px 0 0;font-size:12.5px;color:#94a3b8;line-height:1.55}
.ap-source a{color:#0369a1}

@media (max-width:640px){
  .ap-ebb-t{flex-basis:96px;font-size:12px}
  .ap-ebb-v{flex-basis:38px;font-size:12px}
}
/* ==== apprendre : fin des styles ==== */



/* ===== « La ligne de trop » — valeur ajoutée et consommations
   intermédiaires (MSDGN Terminale) =====================================
   ⚠️ TOUT MODIFICATEUR PORTE LE PRÉFIXE DE SON BLOC (piège N). Il n'y a
   qu'une feuille de style pour toute la plateforme, et un nom court
   devient un nom global : `.ok` et `.on` existent déjà nus ailleurs. Ils
   ne sont employés ici qu'en descendance (`.va-tri-btn.ok`), jamais nus.
   ⚠️ Les animations sont en CSS : un onglet passé en arrière-plan bride
   les timers JavaScript à ~1 s (§7.6), et une barre animée en JS
   resterait à zéro devant la classe. */
.va-tete { margin: 0 0 12px; }
.va-etape { display: inline-block; font-size: 12px; font-weight: 700;
            letter-spacing: .06em; text-transform: uppercase;
            color: #b45309; background: #fef3c7; border-radius: 99px;
            padding: 3px 11px; }
.va-tete h3 { margin: 7px 0 0; font-size: 20px; }
.va-sous { margin: -6px 0 12px; color: #64748b; font-size: 14px; font-style: italic; }
.va-acte { animation: va-entre .32s ease both; }
@keyframes va-entre { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.va-intro { font-size: 15.5px; line-height: 1.6; margin: 0 0 10px; }
.va-aide { font-size: 14px; color: #475569; margin: 0 0 12px; }
.va-h { margin: 4px 0 12px; font-size: 17px; }
.va-compte { font-size: 12.5px; font-weight: 700; color: #94a3b8;
             letter-spacing: .04em; margin: 0 0 8px; }

/* --- Le tri des douze lignes --- */
.va-tri { display: flex; flex-direction: column; gap: 9px; margin: 14px 0; }
.va-tri-l { border: 1px solid #e2e8f0; border-radius: 12px; padding: 11px 13px;
            background: #fff; transition: border-color .25s, background .25s; }
.va-tri-l.va-tri-ok { border-color: #86efac; background: #f0fdf4; }
.va-tri-l.va-tri-ko { border-color: #fca5a5; background: #fef2f2; }
.va-tri-txt { display: flex; justify-content: space-between; align-items: baseline;
              gap: 12px; margin-bottom: 9px; }
.va-tri-lib { font-size: 14.5px; line-height: 1.45; }
.va-tri-eur { font-weight: 700; white-space: nowrap; color: #0f172a; font-variant-numeric: tabular-nums; }
.va-tri-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.va-tri-btn { flex: 1 1 190px; padding: 9px 12px; border: 1.5px solid #cbd5e1;
              border-radius: 9px; background: #f8fafc; font-size: 13.5px;
              font-weight: 600; cursor: pointer; transition: all .18s; }
.va-tri-btn:hover:not(:disabled) { border-color: #b45309; background: #fffbeb; }
.va-tri-btn.on { border-color: #b45309; background: #fef3c7; color: #92400e; }
.va-tri-btn.ok { border-color: #16a34a; background: #dcfce7; color: #14532d; }
.va-tri-btn.ko { border-color: #dc2626; background: #fee2e2; color: #7f1d1d; }
.va-tri-btn:disabled { cursor: default; }
.va-tri-why { margin: 9px 0 0; font-size: 13.5px; line-height: 1.55; color: #334155;
              border-left: 3px solid #cbd5e1; padding-left: 10px; }
.va-total { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px;
            padding: 13px 15px; margin: 14px 0; }
.va-total b { display: block; font-size: 16px; color: #92400e; margin-bottom: 5px; }
.va-total p { margin: 0; font-size: 14.5px; line-height: 1.55; }

/* --- Le calcul --- */
.va-formule { background: #0f172a; color: #e2e8f0; border-radius: 10px;
              padding: 11px 15px; font-size: 15px; font-weight: 600;
              margin: 0 0 16px; }
.va-aide-btn { background: none; border: none; color: #b45309; font-size: 13.5px;
               font-weight: 700; cursor: pointer; padding: 4px 0; text-decoration: underline; }
.va-aide-txt { margin: 4px 0 10px; font-size: 14px; color: #475569;
               background: #f8fafc; border-radius: 8px; padding: 9px 12px; }
.va-saisie { display: flex; align-items: center; gap: 9px; margin: 12px 0; }
.va-saisie input { flex: 0 1 220px; padding: 11px 14px; font-size: 17px;
                   border: 2px solid #cbd5e1; border-radius: 10px;
                   font-variant-numeric: tabular-nums; }
.va-saisie input:focus { outline: none; border-color: #b45309; }
.va-unite { font-size: 17px; font-weight: 700; color: #475569; }

/* --- L'acte 3 : les preuves et le partage --- */
.va-choc { font-size: 15.5px; font-weight: 600; color: #92400e;
           background: #fffbeb; border-left: 4px solid #f59e0b;
           padding: 11px 15px; border-radius: 0 10px 10px 0; margin: 0 0 16px; }
.va-preuve { border: 1px solid #e2e8f0; border-radius: 12px; padding: 13px 15px;
             margin-bottom: 11px; background: #fff;
             animation: va-entre .34s ease both; }
.va-preuve b { display: block; font-size: 15.5px; color: #b45309; margin-bottom: 6px; }
.va-preuve p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.va-barre-bloc { margin: 8px 0 16px; }
.va-barre { display: flex; height: 46px; border-radius: 10px; overflow: hidden;
            background: #f1f5f9; }
.va-barre-part { display: flex; align-items: center; justify-content: center;
                 color: #fff; font-size: 13px; font-weight: 700;
                 transition: width 1.1s cubic-bezier(.22, 1, .36, 1);
                 overflow: hidden; white-space: nowrap; }
.va-legende { list-style: none; padding: 0; margin: 12px 0 0; }
.va-legende li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
                 font-size: 14px; padding: 5px 0; border-bottom: 1px solid #f1f5f9; }
.va-puce { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 auto; }
.va-pct { color: #64748b; font-size: 13px; }
.va-apres { font-size: 15px; line-height: 1.6; background: #f8fafc;
            border-radius: 10px; padding: 13px 15px; margin: 14px 0; }

/* --- L'acte 4 : le tableau des deux conserveries ---
   ⚠️ Le tableau défile DANS son cadre : sur un téléphone, une largeur
   fixe ferait défiler la page entière, et l'élève perdrait les boutons. */
.va-tab-cadre { overflow-x: auto; margin: 14px 0; -webkit-overflow-scrolling: touch; }
.va-tab { border-collapse: collapse; width: 100%; min-width: 420px; font-size: 14px; }
.va-tab th, .va-tab td { border: 1px solid #e2e8f0; padding: 9px 12px; text-align: right; }
.va-tab thead th { background: #0f172a; color: #fff; text-align: center; }
.va-tab thead th:first-child { background: #0f172a; }
.va-tab tbody th { text-align: left; background: #f8fafc; font-weight: 600; }
.va-tab tbody tr:nth-child(even) td { background: #fafafa; }

/* --- Le bilan --- */
.va-retenir { text-align: left; background: #f8fafc; border-radius: 12px;
              padding: 14px 16px; margin: 14px 0; }
.va-retenir b { display: block; margin-bottom: 7px; font-size: 15px; }
.va-retenir ul { margin: 0; padding-left: 20px; }
.va-retenir li { font-size: 14.5px; line-height: 1.6; margin-bottom: 6px; }
.va-mots { font-size: 15px; line-height: 1.6; margin: 0 0 14px; }

@media (max-width: 620px) {
  .va-tri-txt { flex-direction: column; gap: 3px; }
  .va-tri-btn { flex: 1 1 100%; }
  .va-saisie input { flex: 1 1 auto; }
}
/* Un élève peut avoir demandé moins d'animation : on la lui retire. */
@media (prefers-reduced-motion: reduce) {
  .va-acte, .va-preuve { animation: none; }
  .va-barre-part { transition: none; }
}

/* ===== La voix française : le bouton d'écoute d'un texte long =====
   ⚠️ `.tts-btn` fait 30 px de côté, en dur, et jusqu'à 34 px dans certains
   contextes : il est prévu pour une icône seule. Un bouton qui porte un
   LIBELLÉ doit donc sortir de ce gabarit, sinon le texte s'écrase dans le
   carré. D'où `!important` — il n'écrase pas une règle générale mais des
   surcharges contextuelles plus spécifiques que celle-ci. */
.tts-fr { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.tts-fr-etiq { width: auto !important; height: auto !important;
               padding: 7px 13px !important; border-radius: 99px !important;
               font-size: 14px !important; line-height: 1.2 !important;
               white-space: nowrap; }
.tts-fr-lab { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
/* Un bouton posé en tête de document se voit ; celui d'un énoncé se glisse
   au fil du texte sans le hacher. */
.mkt-doc-ecoute { display: flex; align-items: center; gap: 10px;
                  margin: 0 0 8px; }
.mkt-doc-ecoute .tts-fr { background: #0d9488; color: #fff; border-color: #0d9488; }
.mkt-doc-ecoute .tts-fr:hover { background: #0f766e; }
.mkt-doc-ecoute-dit { font-size: 12.5px; color: #64748b; }

/* ===== PEE — Prix de l'excellence économique ==================
   ⚠️ Tout est préfixé `pee-` (piège N). Seuls `on` / `ok` / `ko`
   restent nus, et jamais seuls — toujours `.pee-case.on`.
   La matière réutilise les classes `eco-` : le rendu d'un document de
   concours est celui d'un document d'économie. */

.pee-encadre { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 12px;
               padding: 12px 15px; margin: 14px 0; font-size: 14.5px; line-height: 1.6; }
.pee-lecon { background: #f8fafc; border-left: 3px solid #0d9488; border-radius: 0 10px 10px 0;
             padding: 12px 16px; margin: 0 0 14px; font-size: 14.5px; line-height: 1.6; }
.pee-lecon p { margin: 6px 0; }
.pee-lecon ul { margin: 6px 0 6px 18px; padding: 0; }
.pee-lecon li { margin: 4px 0; }

/* la consigne officielle, citée */
.pee-cite { margin: 10px 0; padding: 12px 16px; background: #eff6ff;
            border-left: 4px solid #1d4ed8; border-radius: 0 10px 10px 0;
            font-style: italic; font-size: 15px; line-height: 1.6; }
.pee-theme { text-align: center; font-size: 19px; margin: 16px 0; padding: 14px 12px;
             border-top: 2px solid #0f172a; border-bottom: 2px solid #0f172a; }

/* --- le corpus : des documents qu'on peut replier --- */
.pee-corpus { margin-bottom: 14px; }
.pee-doc { margin-bottom: 10px; }
.pee-doc-tab { width: 100%; text-align: left; padding: 9px 13px; border-radius: 9px;
               border: 1.5px solid #cbd5e1; background: #f8fafc; font-size: 13.5px;
               font-weight: 700; letter-spacing: .03em; cursor: pointer; color: #475569; }
.pee-doc-tab.on { border-color: #0d9488; background: #f0fdfa; color: #0f766e; }
.pee-doc-plie .eco-doc { display: none; }

/* --- le plan à construire --- */
.pee-plan-aide { font-size: 13.5px; color: #64748b; margin: 0 0 12px; }
.pee-plan-axes { display: grid; gap: 7px; margin-bottom: 14px; }
.pee-plan-axe { background: #eff6ff; border-radius: 9px; padding: 9px 13px;
                font-size: 14.5px; line-height: 1.5; }
.pee-plan-axe b { color: #1d4ed8; }
.pee-plan-tab { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 14px; }
.pee-plan-tab th, .pee-plan-tab td { padding: 8px 10px; border-bottom: 1px solid #e2e8f0;
                                     text-align: left; }
.pee-plan-tab thead th { background: #f8fafc; font-size: 12.5px; text-transform: uppercase;
                         letter-spacing: .03em; color: #475569; }
.pee-plan-num { text-align: center; width: 72px; }
.pee-plan-ok th, .pee-plan-ok td { background: #f0fdf4; }
.pee-plan-ko th, .pee-plan-ko td { background: #fef2f2; }
.pee-case { width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid #cbd5e1;
            background: #fff; font-size: 15px; font-weight: 800; color: #0f766e;
            cursor: pointer; }
.pee-case.on { border-color: #0d9488; background: #ccfbf1; }
.pee-plan-detail { margin-top: 12px; }
.pee-plan-detail p { font-size: 14px; line-height: 1.55; margin: 6px 0;
                     padding: 8px 12px; border-radius: 8px; background: #f8fafc; }
.pee-ok { border-left: 3px solid #16a34a; }
.pee-ko { border-left: 3px solid #dc2626; }

/* --- la grille d'auto-évaluation --- */
.pee-prive { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px;
             padding: 9px 12px; font-size: 13.5px; color: #475569; margin: 10px 0 14px; }
.pee-grille { display: grid; gap: 7px; margin-bottom: 14px; }
.pee-crit { display: flex; align-items: flex-start; gap: 11px; text-align: left;
            padding: 11px 14px; border-radius: 10px; border: 1.5px solid #cbd5e1;
            background: #fff; cursor: pointer; }
.pee-crit:hover { border-color: #0d9488; }
.pee-crit.on { border-color: #0d9488; background: #f0fdfa; }
.pee-crit-case { flex: 0 0 22px; height: 22px; border-radius: 6px; border: 1.5px solid #94a3b8;
                 display: flex; align-items: center; justify-content: center;
                 font-weight: 800; color: #0f766e; background: #fff; margin-top: 1px; }
.pee-crit.on .pee-crit-case { border-color: #0d9488; background: #ccfbf1; }
.pee-crit-txt { display: grid; gap: 2px; }
.pee-crit-txt b { font-size: 14.5px; }
.pee-crit-txt i { font-size: 13px; color: #64748b; font-style: normal; }
.pee-bilan-g { background: #f0fdfa; border-radius: 12px; padding: 13px 16px; margin-top: 12px; }
.pee-bilan-g p { margin: 6px 0; font-size: 14.5px; line-height: 1.55; }

/* --- le jour J --- */
.pee-temps { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14.5px; }
.pee-temps th { text-align: right; padding: 8px 12px; white-space: nowrap;
                font-variant-numeric: tabular-nums; color: #0f766e; width: 88px;
                border-bottom: 1px solid #e2e8f0; }
.pee-temps td { padding: 8px 12px; border-bottom: 1px solid #e2e8f0; line-height: 1.5; }
.pee-tips { margin: 6px 0 0 18px; padding: 0; }
.pee-tips li { margin: 7px 0; line-height: 1.55; }

@media (max-width: 640px) {
  .pee-theme { font-size: 17px; }
  .pee-plan-tab { font-size: 13px; }
  .pee-plan-num { width: 54px; }
  .pee-case { width: 26px; height: 26px; }
  .pee-temps th { width: 66px; padding: 7px 8px; }
}


/* ===== ÉCONOMIE — analyser un document =======================
   ⚠️ TOUT EST PRÉFIXÉ `eco-`, modificateurs compris (piège N) : la
   feuille est unique pour toute la plateforme, et un modificateur court
   y devient un nom global. Seuls `on` / `ok` / `ko` restent nus, et
   jamais seuls — toujours `.eco-red-opt.on`.

   ⚠️ LES ANIMATIONS SONT EN CSS, PAS EN JS. Un onglet en arrière-plan
   bride `setTimeout` à ~1 s et suspend `requestAnimationFrame` (§7.6,
   §7.32) : une barre animée en JS resterait à zéro devant la classe. */

.eco-intro { padding: 4px 2px 10px; }
.eco-accroche { font-size: 16.5px; line-height: 1.5; font-weight: 600; margin: 0 0 14px; }
.eco-regle { background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 12px;
             padding: 12px 15px; margin: 14px 0; }
.eco-regle > b { display: block; margin-bottom: 6px; color: #0f766e; }
.eco-regle p { margin: 5px 0; font-size: 14.5px; }
.eco-etapes-liste { margin: 8px 0 8px 18px; padding: 0; }
.eco-etapes-liste li { font-size: 14.5px; line-height: 1.5; margin: 4px 0; }

/* --- le cadre du document --- */
.eco-doc { margin: 0 0 16px; border: 1px solid #cbd5e1; border-radius: 12px;
           background: #fff; overflow: hidden; }
.eco-doc-tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
                padding: 10px 14px; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.eco-doc-num { font-size: 11.5px; font-weight: 800; letter-spacing: .06em;
               text-transform: uppercase; color: #475569; background: #e2e8f0;
               border-radius: 5px; padding: 3px 7px; }
.eco-doc-titre { font-weight: 700; font-size: 15.5px; }
.eco-doc-meta { display: flex; flex-wrap: wrap; gap: 16px; padding: 8px 14px;
                font-size: 13px; color: #475569; border-bottom: 1px solid #f1f5f9; }
.eco-doc-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
                padding: 8px 14px; border-top: 1px solid #f1f5f9; background: #fafafa; }
.eco-doc-source { font-size: 12px; color: #64748b; font-style: italic; }
.eco-doc-fictif { margin-left: auto; font-size: 11px; color: #92400e; background: #fffbeb;
                  border: 1px solid #fde68a; border-radius: 99px; padding: 2px 9px; }

/* --- le graphique --- */
.eco-g-cadre { padding: 10px 6px 4px; }
.eco-g-svg { width: 100%; height: auto; display: block; }
.eco-g-axe { stroke: #94a3b8; stroke-width: 1.5; }
.eco-g-grille { stroke: #e2e8f0; stroke-width: 1; }
.eco-g-grad { font-size: 11px; fill: #64748b; text-anchor: middle; }
.eco-g-gy { text-anchor: end; }

.eco-g-s0 { --eco-c: #0d9488; }
.eco-g-s1 { --eco-c: #b45309; }
.eco-g-barre { fill: var(--eco-c); transform-origin: center bottom;
               animation: eco-pousse .5s cubic-bezier(.22,.61,.36,1) both; }
.eco-g-ligne { stroke: var(--eco-c); stroke-width: 2.5; stroke-linejoin: round;
               stroke-linecap: round; stroke-dasharray: 2000;
               animation: eco-trace 1.1s ease-out both; }
.eco-g-point { fill: #fff; stroke: var(--eco-c); stroke-width: 2.5;
               animation: eco-apparait .35s ease-out both; animation-delay: .6s; }
.eco-g-clic { cursor: pointer; }
.eco-g-clic:hover { stroke: #1d4ed8; stroke-width: 3.5; }
.eco-g-juste { fill: #16a34a !important; stroke: #15803d !important; }
.eco-g-faux { fill: #dc2626 !important; stroke: #b91c1c !important; }
.eco-g-leg { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
             padding: 4px 0 8px; font-size: 13px; }
.eco-g-leg-i { display: inline-flex; align-items: center; gap: 6px; }
.eco-g-puce { width: 14px; height: 4px; border-radius: 2px; background: var(--eco-c);
              display: inline-block; font-style: normal; }

@keyframes eco-pousse { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes eco-trace { from { stroke-dashoffset: 2000; } to { stroke-dashoffset: 0; } }
@keyframes eco-apparait { from { opacity: 0; } to { opacity: 1; } }

/* --- le tableau --- */
.eco-tab-cadre { overflow-x: auto; padding: 4px 0; }
.eco-tab { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.eco-tab th, .eco-tab td { padding: 8px 12px; border-bottom: 1px solid #e2e8f0;
                           text-align: left; }
.eco-tab thead th { background: #f8fafc; font-size: 13px; text-transform: uppercase;
                    letter-spacing: .03em; color: #475569; white-space: nowrap; }
.eco-tab tbody th { font-weight: 600; }
.eco-tab-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eco-tab-total th, .eco-tab-total td { font-weight: 800; background: #f1f5f9;
                                       border-top: 2px solid #94a3b8; }
.eco-tab-clic { cursor: pointer; }
.eco-tab-clic:hover { background: #eff6ff; box-shadow: inset 0 0 0 2px #93c5fd; }
.eco-tab-juste { background: #dcfce7 !important; box-shadow: inset 0 0 0 2px #16a34a; }
.eco-tab-faux { background: #fee2e2 !important; box-shadow: inset 0 0 0 2px #dc2626; }
.eco-tab-note { font-size: 12.5px; color: #64748b; font-style: italic;
                padding: 6px 14px 2px; margin: 0; }

/* --- le texte --- */
.eco-txt { padding: 12px 16px; }
.eco-txt-p { position: relative; padding-left: 30px; margin: 0 0 12px;
             font-size: 15px; line-height: 1.65; border-radius: 8px; }
.eco-txt-n { position: absolute; left: 0; top: 2px; width: 21px; height: 21px;
             border-radius: 50%; background: #e2e8f0; color: #475569;
             font-size: 12px; font-weight: 800; display: flex;
             align-items: center; justify-content: center; }
.eco-txt-clic { cursor: pointer; padding: 6px 8px 6px 30px; margin-left: -8px; }
.eco-txt-clic:hover { background: #eff6ff; }
.eco-txt-juste { background: #dcfce7 !important; box-shadow: inset 0 0 0 2px #16a34a; }
.eco-txt-faux { background: #fee2e2 !important; box-shadow: inset 0 0 0 2px #dc2626; }

/* --- le fil des étapes --- */
.eco-fil { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.eco-fil-p { font-size: 12px; font-weight: 700; letter-spacing: .03em;
             text-transform: uppercase; color: #94a3b8; background: #f1f5f9;
             border-radius: 99px; padding: 4px 11px; }
.eco-fil-p.fait { color: #15803d; background: #dcfce7; }
.eco-fil-p.on { color: #fff; background: #0d9488; }
.eco-etape-dit { font-size: 15px; color: #334155; margin: 0 0 12px; }

/* --- la saisie d'un nombre --- */
.eco-saisie { display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
              margin: 12px 0; }
.eco-champ { width: 160px; padding: 10px 13px; border: 1.5px solid #cbd5e1;
             border-radius: 10px; font-size: 17px; font-variant-numeric: tabular-nums; }
.eco-champ:focus { outline: none; border-color: #0d9488; box-shadow: 0 0 0 3px #ccfbf1; }
.eco-unite { font-size: 15px; font-weight: 600; color: #475569; }
.eco-valider { margin-left: 4px; }

/* --- la phrase à composer --- */
.eco-red-phrase { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px;
                  padding: 12px 15px; font-size: 15.5px; line-height: 1.6;
                  margin-bottom: 14px; min-height: 44px; }
.eco-red-bloc { margin-bottom: 12px; }
.eco-red-lab { font-size: 12.5px; font-weight: 700; color: #475569;
               text-transform: uppercase; letter-spacing: .03em; margin-bottom: 5px; }
.eco-red-opts { display: grid; gap: 6px; }
.eco-red-opt { text-align: left; padding: 10px 13px; border-radius: 9px;
               border: 1.5px solid #cbd5e1; background: #fff; font-size: 14.5px;
               line-height: 1.45; cursor: pointer; }
.eco-red-opt:hover { border-color: #0d9488; background: #f0fdfa; }
.eco-red-opt.on { border-color: #0d9488; background: #ccfbf1; font-weight: 600; }
.eco-red-opt.ok { border-color: #16a34a; background: #dcfce7; }
.eco-red-opt.ko { border-color: #dc2626; background: #fee2e2; }

/* --- le bilan --- */
.eco-bilan-etapes { display: grid; gap: 6px; margin: 10px 0 14px; }
.eco-bilan-l { display: flex; justify-content: space-between; align-items: center;
               padding: 8px 13px; background: #f8fafc; border-radius: 9px;
               font-size: 14.5px; }
.eco-bilan-nom { font-weight: 600; }
.eco-bilan-sc { font-variant-numeric: tabular-nums; color: #475569; }
.eco-retenir { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px;
               padding: 12px 15px; }
.eco-retenir > b { display: block; margin-bottom: 5px; color: #1d4ed8; }
.eco-retenir p { margin: 0; font-size: 14.5px; line-height: 1.55; }

/* --- téléphone --- */
@media (max-width: 640px) {
  .eco-doc-fictif { margin-left: 0; }
  .eco-tab { font-size: 13.5px; }
  .eco-tab th, .eco-tab td { padding: 7px 9px; }
  .eco-txt-p { font-size: 14.5px; }
  .eco-red-opt { font-size: 14px; }
  .eco-champ { width: 130px; font-size: 16px; }
}

/* Un élève peut avoir demandé moins d'animation : on la lui retire. */
@media (prefers-reduced-motion: reduce) {
  .eco-g-barre, .eco-g-ligne, .eco-g-point { animation: none; stroke-dashoffset: 0; }
}


/* ===== SOFT — travailler les soft skills =====================
   ⚠️ TOUT EST PRÉFIXÉ `ss-`, modificateurs compris (piège N) : la
   feuille de style est unique pour toute la plateforme, et un
   modificateur nommé court y devient un nom global. Seul `on` reste nu,
   et jamais seul — toujours écrit `.ss-xxx.on`. */

.ss-intro { padding: 4px 2px 10px; }
.ss-lieu { color: #64748b; font-size: 14px; margin: 2px 0 8px; }
.ss-accroche { font-size: 17px; font-weight: 600; line-height: 1.45; margin: 0 0 10px; }
.ss-regle { background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 12px;
            padding: 12px 14px; margin: 14px 0; }
.ss-regle b { display: block; margin-bottom: 6px; color: #0f766e; }
.ss-regle p { margin: 4px 0; font-size: 14.5px; }

/* --- les jauges --- */
.ss-jauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
             margin: 10px 0 16px; }
.ss-jauge { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
            padding: 8px 10px; transition: border-color .35s, background .35s; }
.ss-jauge-monte { border-color: #34d399; background: #ecfdf5; }
.ss-jauge-baisse { border-color: #fca5a5; background: #fef2f2; }
.ss-jauge-tete { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; }
.ss-jauge-emo { font-size: 15px; }
.ss-jauge-nom { font-weight: 700; font-size: 13.5px; }
.ss-jauge-delta { margin-left: auto; font-size: 12px; }
.ss-jauge-monte .ss-jauge-delta { color: #059669; }
.ss-jauge-baisse .ss-jauge-delta { color: #dc2626; }
.ss-jauge-barre { height: 7px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.ss-jauge-fill { height: 100%; border-radius: 99px; background: #0d9488;
                 transition: width .55s cubic-bezier(.22,.61,.36,1); }
.ss-jauge-dit { display: block; margin-top: 5px; font-size: 11.5px; color: #64748b;
                line-height: 1.3; }

/* --- une situation --- */
.ss-fil { font-size: 12.5px; color: #64748b; letter-spacing: .04em;
          text-transform: uppercase; margin-bottom: 6px; }
.ss-echo { background: #fffbeb; border-left: 3px solid #f59e0b; border-radius: 0 8px 8px 0;
           padding: 8px 12px; font-size: 14px; margin: 0 0 12px; }
.ss-quand { font-weight: 700; color: #0f766e; margin: 10px 0 4px; font-size: 15px; }
.ss-scene { font-size: 16px; line-height: 1.6; margin: 0 0 14px; }
.ss-question { font-weight: 700; font-size: 16.5px; margin: 0 0 10px; }
.ss-choix { display: grid; gap: 9px; }
.ss-choix-btn { text-align: left; padding: 13px 15px; border-radius: 11px;
                border: 1.5px solid #cbd5e1; background: #fff; font-size: 15px;
                line-height: 1.45; cursor: pointer; transition: border-color .15s, background .15s; }
.ss-choix-btn:hover { border-color: #0d9488; background: #f0fdfa; }

.ss-retenu { font-size: 14.5px; color: #475569; margin: 0 0 10px; }
.ss-suite { background: #f1f5f9; border-radius: 12px; padding: 13px 15px;
            font-size: 15.5px; line-height: 1.6; margin-bottom: 12px; }
.ss-savoir { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px;
             padding: 12px 15px; margin-bottom: 14px; }
.ss-savoir b { display: block; margin-bottom: 6px; color: #1d4ed8; font-size: 15px; }
.ss-savoir p { margin: 5px 0; font-size: 14.5px; line-height: 1.55; }
.ss-garde { color: #1e40af; font-weight: 600; }

/* --- le bilan --- */
.ss-bilan h3 { margin-bottom: 4px; }
.ss-bilan-note { font-size: 13.5px; color: #64748b; margin: 0 0 14px; }
.ss-bilan-mot { font-size: 16px; line-height: 1.6; background: #f0fdfa;
                border-radius: 12px; padding: 13px 15px; margin: 14px 0; }
.ss-journal { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
              padding: 12px 14px; margin-bottom: 14px; }
.ss-journal > b { display: block; margin-bottom: 8px; }
.ss-journal-l { display: grid; gap: 2px; padding: 9px 0;
                border-top: 1px solid #e2e8f0; }
.ss-journal-l:first-of-type { border-top: 0; }
.ss-journal-q { font-size: 12px; color: #64748b; text-transform: uppercase;
                letter-spacing: .03em; }
.ss-journal-c { font-size: 14.5px; font-weight: 600; }
.ss-journal-e { font-size: 13.5px; color: #475569; }
.ss-journal-s { font-size: 12.5px; color: #0f766e; }
.ss-defi { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 12px;
           padding: 13px 15px; margin-bottom: 14px; }
.ss-defi > b { display: block; margin-bottom: 6px; color: #b45309; }
.ss-defi p { margin: 5px 0; font-size: 15px; line-height: 1.55; }
.ss-defi-apres { color: #92400e; font-size: 13.5px !important; }

/* --- le référentiel --- */
.ss-ref h3, .ss-defis h3 { margin-bottom: 6px; }
.ss-ref-prive { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px;
                padding: 9px 12px; font-size: 13.5px; color: #475569; margin: 10px 0 14px; }
.ss-fams { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.ss-fam-btn { padding: 7px 12px; border-radius: 99px; border: 1.5px solid #cbd5e1;
              background: #fff; font-size: 13.5px; cursor: pointer; }
.ss-fam-btn.on { border-color: #0d9488; background: #0d9488; color: #fff; }
.ss-fam-dit { font-size: 13.5px; color: #64748b; margin: 0 0 12px; }
.ss-fiches { display: grid; gap: 8px; margin-bottom: 14px; }
.ss-fiche { border: 1px solid #e2e8f0; border-radius: 11px; overflow: hidden;
            background: #fff; }
.ss-fiche-ouverte { border-color: #0d9488; }
.ss-fiche-tete { width: 100%; display: flex; align-items: center; gap: 9px;
                 padding: 12px 14px; background: none; border: 0; cursor: pointer;
                 text-align: left; font-size: 15px; }
.ss-fiche-emo { font-size: 18px; }
.ss-fiche-nom { font-weight: 600; }
.ss-fiche-niv { margin-left: auto; font-size: 15px; }
.ss-fiche-corps { padding: 0 14px 14px; }
.ss-fiche-corps p { font-size: 14.5px; line-height: 1.55; margin: 6px 0; }
.ss-fiche-obs { background: #eff6ff; border-radius: 10px; padding: 10px 13px;
                margin: 10px 0; }
.ss-fiche-obs b { color: #1d4ed8; font-size: 14px; }
.ss-fiche-preuve { background: #f0fdf4; border-radius: 10px; padding: 10px 13px;
                   margin: 10px 0; }
.ss-fiche-preuve b { color: #15803d; font-size: 14px; }
.ss-fiche-preuve p { font-style: italic; }
.ss-fiche-niveaux { margin-top: 12px; }
.ss-fiche-niveaux > b { font-size: 14px; }
.ss-nivs { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 4px; }
.ss-niv-btn { padding: 7px 12px; border-radius: 9px; border: 1.5px solid #cbd5e1;
              background: #fff; font-size: 13.5px; cursor: pointer; }
.ss-niv-btn.on { border-color: #0d9488; background: #f0fdfa; font-weight: 600; }
.ss-niv-dit { color: #64748b; font-size: 13px !important; }
.ss-ref-compte { font-size: 14.5px; background: #f1f5f9; border-radius: 10px;
                 padding: 11px 14px; margin: 6px 0 14px; }

/* --- les défis --- */
.ss-defis-l { display: grid; gap: 9px; margin-bottom: 14px; }
.ss-defi-c { border: 1px solid #e2e8f0; border-radius: 11px; padding: 12px 14px;
             background: #fff; }
.ss-defi-fait { border-color: #34d399; background: #f0fdf4; }
.ss-defi-t { font-weight: 700; font-size: 15px; margin-bottom: 5px; }
.ss-defi-c p { font-size: 14.5px; line-height: 1.55; margin: 5px 0; }
.ss-defi-btn { margin-top: 7px; padding: 7px 14px; border-radius: 9px;
               border: 1.5px solid #cbd5e1; background: #fff; font-size: 13.5px;
               cursor: pointer; }
.ss-defi-btn.on { border-color: #059669; background: #059669; color: #fff; }

/* --- téléphone --- */
@media (max-width: 640px) {
  .ss-jauges { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ss-jauge-dit { display: none; }
  .ss-scene { font-size: 15px; }
  .ss-choix-btn { font-size: 14.5px; padding: 12px 13px; }
}

/* Un élève peut avoir demandé moins d'animation : on la lui retire. */
@media (prefers-reduced-motion: reduce) {
  .ss-jauge-fill, .ss-jauge { transition: none; }
}



/* ============================================================
   MSDGN Terminale — ressources, équilibre financier, compétences
   Toutes les règles sont préfixées `tm-` (piège N).
   ⚠️ Les modificateurs (`neg`, `pos`, `ok`, `ko`, `plein`, `faux`) ne sont
   JAMAIS écrits nus : toujours en `.tm-xxx.neg`. Vérifié avant d'écrire
   qu'aucun d'eux n'a de règle nue ailleurs dans le fichier — c'est ce
   contrôle-là qui manquait le jour du badge en ovale jaune.
============================================================ */

.tm{ --tm-vert:#0f766e; --tm-vert-clair:#ccfbf1; --tm-rouge:#b91c1c; --tm-bleu:#1d4ed8; }

/* --- la carte d'identité d'une entreprise --- */
.tm-carte{ display:flex; gap:14px; align-items:flex-start; background:#f8fafc;
  border:1px solid #e2e8f0; border-radius:14px; padding:12px 14px; margin:12px 0; }
.tm-carte-img{ flex:0 0 96px; width:96px; height:72px; object-fit:cover; border-radius:10px; }
.tm-carte-txt b{ display:block; font-size:16px; }
.tm-carte-txt span{ display:block; font-size:12.5px; opacity:.7; margin-bottom:4px; }
.tm-carte-txt p{ margin:0; font-size:14px; line-height:1.5; }

/* --- textes courants --- */
.tm-h{ margin:16px 0 8px; font-size:18px; }
.tm-txt{ font-size:15px; line-height:1.6; margin:0 0 14px; }
.tm-pas{ font-size:12px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  opacity:.6; margin:10px 0 6px; }
.tm-formule{ background:#0f172a; color:#e2e8f0; border-radius:10px; padding:10px 14px;
  font-weight:700; text-align:center; margin:12px 0; }
.tm-lecon{ background:var(--tm-vert-clair); border-left:4px solid var(--tm-vert);
  border-radius:0 12px 12px 0; padding:12px 15px; margin:14px 0; font-size:14.5px; line-height:1.6; }
.tm-lecon p{ margin:0 0 8px; } .tm-lecon p:last-child{ margin:0; }
.tm-lecon-fort{ font-size:15.5px; }
.tm-retenir{ background:#eef2ff; border-radius:12px; padding:13px 16px; margin:12px 0; text-align:left; }
.tm-retenir b{ display:block; margin-bottom:7px; }
.tm-retenir p{ margin:0 0 7px; font-size:14px; line-height:1.55; }
.tm-liste{ margin:0 0 14px; padding-left:20px; font-size:14.5px; line-height:1.7; }
.tm-verdict{ border-radius:12px; padding:11px 15px; margin:12px 0; font-weight:600; font-size:14.5px; }
.tm-verdict.ok{ background:#f0fdf4; border:2px solid #86efac; color:#14532d; }
.tm-verdict.ko{ background:#fef2f2; border:2px solid #fca5a5; color:#7f1d1d; }

/* --- le tri en deux colonnes --- */
.tm-tri-pas{ font-size:12px; opacity:.6; margin-bottom:8px; }
.tm-tri-img{ width:100%; max-width:420px; aspect-ratio:16/9; object-fit:cover;
  border-radius:14px; display:block; margin:0 auto 12px; }
/* ⚠️ L'ELEMENT A CLASSER ET LES BOUTONS AVAIENT LE MEME FOND BLANC ET LA
   MEME BORDURE GRISE : rien ne disait lequel se clique (01/10/2026). La
   carte passe en ambre et ne se clique pas ; les colonnes gardent le fond
   blanc mais prennent la bordure violette, une ombre portee et un relief
   au survol — le vocabulaire du cliquable sur cette plateforme. */
.tm-tri-carte{ background:#fffbeb; border:2px solid #f59e0b; border-radius:14px;
  padding:16px; font-size:19px; font-weight:700; line-height:1.4; margin-bottom:16px;
  color:#422006; box-shadow:0 2px 0 #fde68a; }
.tm-tri-quoi{ display:block; font-size:12px; font-weight:800; letter-spacing:.06em;
  text-transform:uppercase; color:#92400e; margin-bottom:6px; }
.tm-tri-cols{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.tm-tri-col{ display:flex; flex-direction:column; gap:3px; align-items:flex-start; text-align:left;
  border:2px solid #7c3aed; border-radius:12px; background:#fff; padding:13px 14px; cursor:pointer;
  font:inherit; color:#2d2748; box-shadow:0 3px 0 #ddd6fe; transition:transform .15s,box-shadow .15s,background .15s; }
.tm-tri-col:hover,.tm-tri-col:focus-visible{ background:#f5f3ff; border-color:#5b21b6;
  transform:translateY(-1px); box-shadow:0 5px 0 #c4b5fd; }
.tm-tri-col b{ font-size:15px; color:#5b21b6; } .tm-tri-col span{ font-size:12.5px; opacity:.7; }
/* Un eleve peut avoir demande moins d'animations a son systeme. */
@media (prefers-reduced-motion: reduce){
  .tm-tri-col{ transition:none; }
  .tm-tri-col:hover,.tm-tri-col:focus-visible{ transform:none; }
}
/* Le rappel de contexte, replie par defaut : le resume reste lisible, le
   corps ne prend la place de la consigne que si on le demande. */
.tm-carte-pli{ margin:12px 0; border:1px solid #e2e8f0; border-radius:14px;
  background:#f8fafc; padding:4px 12px; }
.tm-carte-pli > summary{ cursor:pointer; padding:7px 2px; font-size:14px; list-style:none; }
.tm-carte-pli > summary::-webkit-details-marker{ display:none; }
.tm-carte-pli > summary::before{ content:"▸ "; color:#7c3aed; font-weight:800; }
.tm-carte-pli[open] > summary::before{ content:"▾ "; }
.tm-carte-pli > summary b{ font-size:15px; }
.tm-carte-pli > summary span{ font-size:12.5px; opacity:.7; margin-left:6px; }
.tm-carte-pli .tm-carte{ margin:0 0 10px; border:0; background:transparent; padding:0; }

/* --- l'écart bilan / prix de rachat --- */
.tm-ecart-l{ margin:0 0 16px; }
.tm-ecart-l > b{ display:block; margin-bottom:7px; }
.tm-ecart-b{ display:flex; align-items:center; gap:9px; margin-bottom:5px; font-size:13px; }
.tm-ecart-lab{ flex:0 0 150px; opacity:.75; }
.tm-ecart-jauge{ flex:1 1 auto; height:16px; background:#e2e8f0; border-radius:8px; overflow:hidden; }
.tm-ecart-fill{ display:block; height:100%; border-radius:8px; transition:width .5s ease; }
.tm-ecart-bilan{ background:#94a3b8; }
.tm-ecart-prix{ background:var(--tm-vert); }
.tm-ecart-v{ flex:0 0 76px; text-align:right; font-weight:700; }
.tm-ecart-diff{ margin:4px 0 0 159px; font-size:13.5px; }

/* --- la frise du cycle --- */
.tm-frise{ position:relative; background:#f8fafc; border:1px solid #e2e8f0;
  border-radius:14px; padding:12px 14px 22px; margin:12px 0; }
.tm-frise-tete{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:6px; }
.tm-frise-solde{ font-weight:700; }
.tm-frise-solde.pos{ color:#15803d; } .tm-frise-solde.neg{ color:var(--tm-rouge); }
.tm-svg{ display:block; width:100%; height:96px; overflow:visible; }
.tm-frise-longue .tm-svg{ height:120px; }
.tm-svg-zero{ stroke:#cbd5e1; stroke-width:1; stroke-dasharray:4 4; }
.tm-svg-courbe{ fill:none; stroke:var(--tm-bleu); stroke-width:2.5; stroke-linejoin:round; }
.tm-svg-pt{ fill:var(--tm-bleu); }
.tm-frise-jalons{ position:relative; height:12px; margin-top:2px; }
.tm-jalon{ position:absolute; top:0; width:10px; height:10px; margin-left:-5px;
  border-radius:50%; background:#e2e8f0; border:2px solid #cbd5e1; transition:all .3s ease; }
.tm-jalon.vu{ border-color:var(--tm-bleu); background:#fff; }
.tm-jalon-sortie.vu{ background:var(--tm-rouge); border-color:var(--tm-rouge); }
.tm-jalon-entree.vu{ background:#15803d; border-color:#15803d; }

.tm-evt{ border-radius:12px; padding:13px 16px; margin:12px 0; border-left:5px solid #cbd5e1;
  background:#f8fafc; animation:tm-entre .35s ease; }
.tm-evt b{ display:block; font-size:16px; margin-bottom:5px; }
.tm-evt p{ margin:0 0 7px; font-size:14.5px; line-height:1.55; }
.tm-evt-detail{ font-weight:700; font-size:14px; }
.tm-evt-sortie{ border-left-color:var(--tm-rouge); background:#fef2f2; }
.tm-evt-entree{ border-left-color:#15803d; background:#f0fdf4; }
.tm-evt-stock{ border-left-color:#b45309; background:#fffbeb; }
.tm-evt-creance{ border-left-color:var(--tm-bleu); background:#eff6ff; }
@keyframes tm-entre{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }

/* --- les curseurs --- */
.tm-curseur{ margin:0 0 15px; }
.tm-curseur-tete{ display:flex; justify-content:space-between; align-items:baseline; font-size:14px; }
.tm-curseur input[type=range]{ width:100%; margin:5px 0 3px; accent-color:var(--tm-vert); }
.tm-curseur-bas{ display:flex; align-items:center; gap:9px; }
.tm-curseur-jauge{ flex:1 1 auto; height:12px; background:#e2e8f0; border-radius:6px; overflow:hidden; }
.tm-curseur-fill{ display:block; height:100%; background:#b45309; border-radius:6px; transition:width .25s ease; }
.tm-curseur-fill.neg{ background:#15803d; }
.tm-curseur-v{ flex:0 0 108px; text-align:right; font-weight:700; font-size:13.5px; color:#b45309; }
.tm-curseur-v.neg{ color:#15803d; }
.tm-curseur-aide{ margin:3px 0 0; font-size:12.5px; opacity:.72; line-height:1.45; }
.tm-total{ display:flex; flex-direction:column; align-items:center; gap:2px;
  background:#0f172a; color:#fff; border-radius:14px; padding:14px; margin:14px 0; }
.tm-total span{ font-size:13px; opacity:.8; }
.tm-total b{ font-size:26px; }
.tm-total i{ font-style:normal; font-size:12.5px; opacity:.75; }
.tm-total.neg b{ color:#86efac; }

/* --- le réservoir FRNG / BFR / trésorerie --- */
.tm-reservoir{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:14px 0; align-items:end; }
.tm-res-col{ display:flex; flex-direction:column; align-items:center; gap:5px; }
.tm-res-v{ font-weight:700; font-size:14px; }
.tm-res-barre{ width:100%; height:130px; background:#f1f5f9; border-radius:10px;
  display:flex; align-items:flex-end; overflow:hidden; }
.tm-res-fill{ display:block; width:100%; border-radius:10px; transition:height .35s ease; }
.tm-res-frng{ background:var(--tm-vert); }
.tm-res-bfr{ background:#b45309; }
.tm-res-tn{ background:#15803d; }
.tm-res-tn-neg{ background:var(--tm-rouge); }
.tm-res-lab{ font-size:12px; text-align:center; opacity:.75; line-height:1.35; }

/* --- ranger le bilan --- */
/* ⚠️ L'ELEMENT A RANGER EN AMBRE, comme les autres ecrans de classement :
   il portait le meme fond blanc et la meme bordure grise que les boutons,
   donc rien ne disait lequel se clique (01/10/2026). Il garde l'etiquette
   « A ranger » de `.tm-tri-quoi`. */
.tm-poste{ display:grid; grid-template-columns:1fr auto; align-items:baseline;
  column-gap:12px; background:#fffbeb; border:2px solid #f59e0b; border-radius:14px;
  padding:14px 16px; margin-bottom:14px; color:#422006; box-shadow:0 2px 0 #fde68a; }
.tm-poste .tm-tri-quoi{ grid-column:1/-1; }
.tm-poste b{ font-size:17px; font-weight:700; line-height:1.35; }
.tm-poste .tm-poste-v{ font-weight:800; white-space:nowrap; font-size:17px; color:#92400e; }
.tm-masses{ display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.tm-masse{ display:flex; flex-direction:column; gap:2px; align-items:flex-start; text-align:left;
  border:2px solid #cbd5e1; border-radius:11px; background:#fff; padding:10px 12px; cursor:pointer;
  font:inherit; transition:transform .15s,box-shadow .15s,background .15s; }
.tm-masse b{ font-size:13.5px; } .tm-masse span{ font-size:11.5px; opacity:.7; line-height:1.35; }
/* ⚠️ LES DEUX COTES DU BILAN ONT CHACUN SA TEINTE, et c'est la MEME dans le
   tableau du bas : c'est ce qui relie le bouton clique a la case qui se
   remplit. Les deux couleurs existaient deja, en bordure gauche seulement. */
.tm-masse-actif{ border-color:#93b4fd; border-left:5px solid #1d4ed8; background:#eff6ff; }
.tm-masse-actif b{ color:#1e3a8a; }
.tm-masse-passif{ border-color:#fcd9a6; border-left:5px solid #b45309; background:#fffbeb; }
.tm-masse-passif b{ color:#7c2d12; }
.tm-masse-actif:hover,.tm-masse-actif:focus-visible{ background:#dbeafe;
  transform:translateY(-1px); box-shadow:0 4px 0 #bfdbfe; }
.tm-masse-passif:hover,.tm-masse-passif:focus-visible{ background:#fef3c7;
  transform:translateY(-1px); box-shadow:0 4px 0 #fde68a; }
@media (prefers-reduced-motion: reduce){
  .tm-masse{ transition:none; }
  .tm-masse:hover,.tm-masse:focus-visible{ transform:none; }
}
/* Les deux colonnes du tableau, aux teintes des boutons. */
.tm-tab-actif{ background:#eff6ff; border-radius:10px; padding:8px 10px; }
.tm-tab-passif{ background:#fffbeb; border-radius:10px; padding:8px 10px; }
.tm-tab-actif .tm-tableau-t{ color:#1e3a8a; opacity:.85; }
.tm-tab-passif .tm-tableau-t{ color:#7c2d12; opacity:.85; }
.tm-tab-actif .tm-tableau-l.plein b{ color:#1e3a8a; }
.tm-tab-passif .tm-tableau-l.plein b{ color:#7c2d12; }

/* ⚠️ FIGÉ = « ces chiffres sont acquis ». Pendant le rangement, le
   tableau se remplit sous les yeux ; pendant les calculs, il est le
   DOCUMENT qu'on lit. Même tableau, deux états — sans quoi l'élève
   croirait qu'il peut encore le changer. */
.tm-tableau.fige{ background:#f8fafc; border-style:solid; margin-bottom:14px; }
.tm-tableau.fige .tm-tableau-l{ padding-top:3px; padding-bottom:3px; }
.tm-tableau{ margin:16px 0 0; background:#f8fafc; border:1px solid #e2e8f0; border-radius:14px; padding:12px 14px; }
.tm-tableau > b{ display:block; font-size:13.5px; margin-bottom:8px; }
.tm-tableau-cols{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.tm-tableau-t{ display:block; font-size:11px; font-weight:800; letter-spacing:.08em; opacity:.55; margin-bottom:5px; }
.tm-tableau-l{ display:flex; justify-content:space-between; gap:8px; font-size:12.5px;
  padding:4px 0; border-bottom:1px dotted #cbd5e1; opacity:.45; }
.tm-tableau-l.plein{ opacity:1; }
.tm-tableau-l b{ white-space:nowrap; }

.tm-controle{ display:flex; align-items:center; justify-content:center; gap:16px; margin:14px 0; flex-wrap:wrap; }
.tm-controle-c{ display:flex; flex-direction:column; align-items:center; gap:3px;
  background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding:12px 18px; }
.tm-controle-c span{ font-size:12px; opacity:.7; } .tm-controle-c b{ font-size:19px; }
.tm-controle-eq{ font-size:26px; font-weight:800; opacity:.5; }

/* --- les trois indicateurs --- */
.tm-trois{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:12px 0; }
.tm-trois-c{ display:flex; flex-direction:column; align-items:center; gap:2px;
  border-radius:12px; padding:12px 8px; text-align:center; }
.tm-trois-c span{ font-size:11.5px; opacity:.75; line-height:1.3; }
.tm-trois-c b{ font-size:18px; }
.tm-trois-c i{ font-style:normal; font-size:11px; opacity:.65; }
.tm-trois-c.pos{ background:#f0fdf4; border:1px solid #86efac; color:#14532d; }
.tm-trois-c.neg{ background:#fef2f2; border:1px solid #fca5a5; color:#7f1d1d; }

/* --- la synthèse des quatre situations --- */
.tm-synth-l{ background:#f8fafc; border:1px solid #e2e8f0; border-left:5px solid var(--tm-vert);
  border-radius:0 12px 12px 0; padding:11px 14px; margin-bottom:10px; }
.tm-synth-sig{ display:flex; flex-wrap:wrap; gap:10px; font-size:12px; opacity:.8; margin-bottom:5px; }
.tm-synth-quoi{ display:block; font-size:15px; margin-bottom:3px; }
.tm-synth-ex{ margin:0 0 3px; font-size:12.5px; opacity:.7; }
.tm-synth-faire{ margin:0; font-size:13.5px; }

/* --- les leviers --- */
.tm-jauges{ margin:12px 0; }
.tm-jauge{ display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.tm-jauge-n{ flex:0 0 190px; font-size:13px; }
.tm-jauge-b{ flex:1 1 auto; height:11px; background:#e2e8f0; border-radius:6px; overflow:hidden; }
.tm-jauge-b i{ display:block; height:100%; background:var(--tm-vert); border-radius:6px; transition:width .45s ease; }
.tm-echo{ background:#fffbeb; border-left:4px solid #f59e0b; border-radius:0 10px 10px 0;
  padding:9px 13px; margin:10px 0; font-size:13.5px; font-style:italic; }
.tm-leviers{ display:grid; gap:9px; margin:12px 0; }
.tm-levier{ display:flex; flex-direction:column; gap:3px; align-items:flex-start; text-align:left;
  border:2px solid #cbd5e1; border-radius:12px; background:#fff; padding:13px 15px; cursor:pointer; font:inherit; }
.tm-levier:hover{ border-color:var(--tm-vert); background:#f0fdfa; }
.tm-levier b{ font-size:15px; } .tm-levier span{ font-size:12.5px; opacity:.72; }
.tm-suite-quoi{ font-size:14.5px; line-height:1.6; margin:0 0 10px; }
.tm-effet{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.tm-effet span{ font-weight:700; font-size:14px; border-radius:8px; padding:5px 11px; }
.tm-effet .pos{ background:#f0fdf4; color:#14532d; }
.tm-effet .neg{ background:#fef2f2; color:#7f1d1d; }
.tm-notion{ background:#eef2ff; border-radius:10px; padding:11px 14px; margin:0 0 10px;
  font-size:14.5px; line-height:1.6; }
.tm-cout{ font-size:13.5px; opacity:.8; line-height:1.55; margin:0 0 12px; }
.tm-journal{ background:#f8fafc; border-radius:12px; padding:12px 15px; margin:12px 0; text-align:left; }
.tm-journal b{ display:block; margin-bottom:6px; }
.tm-journal p{ margin:0 0 4px; font-size:13.5px; }
.tm-journal p.faux{ color:var(--tm-rouge); font-weight:600; }

/* --- calcul --- */
.tm-calc-tete{ display:flex; justify-content:space-between; align-items:center; gap:10px;
  flex-wrap:wrap; margin-bottom:8px; }
.tm-calc-tete b{ font-size:16px; }
.tm-calc-aide{ font-size:13px; opacity:.75; line-height:1.5; margin:0 0 10px; }
.tm-pose{ background:#f8fafc; border-radius:12px; padding:12px 15px; margin-top:12px; }
.tm-pose-l{ margin:0 0 5px; font-size:14px; line-height:1.55; }

/* --- téléphone --- */
@media (max-width:640px){
  .tm-tri-cols, .tm-masses, .tm-tableau-cols{ grid-template-columns:1fr; }
  .tm-trois{ grid-template-columns:1fr; }
  .tm-reservoir{ gap:8px; }
  .tm-res-barre{ height:100px; }
  .tm-ecart-lab{ flex:0 0 96px; font-size:12px; }
  .tm-ecart-diff{ margin-left:0; }
  .tm-jauge-n{ flex:0 0 130px; font-size:12px; }
  .tm-carte-img{ flex:0 0 72px; width:72px; height:56px; }
}
/* --- tri à N colonnes (les trois cycles) --- */
.tm-piles{ display:grid; gap:10px; }

/* --- un besoin de financement --- */
.tm-besoin{ background:#f8fafc; border:1px solid #e2e8f0; border-left:5px solid var(--tm-vert);
  border-radius:0 14px 14px 0; padding:13px 16px; margin:12px 0; }
.tm-besoin-tete{ display:flex; justify-content:space-between; align-items:baseline;
  gap:10px; flex-wrap:wrap; margin-bottom:6px; }
.tm-besoin-tete b{ font-size:16.5px; }
.tm-besoin-montant{ font-weight:800; font-size:17px; color:var(--tm-vert); white-space:nowrap; }
.tm-besoin p{ margin:0; font-size:14.5px; line-height:1.6; }
.tm-prix{ background:#fffbeb; border-radius:12px; padding:12px 15px; margin:0 0 12px; }
.tm-prix b{ display:block; margin-bottom:5px; }
.tm-prix p{ margin:0; font-size:14px; line-height:1.55; }

/* --- le tableau des financements --- */
.tm-fin-l{ background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px;
  padding:11px 14px; margin-bottom:10px; }
.tm-fin-sig{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:5px; }
.tm-fin-duree, .tm-fin-orig{ font-size:11.5px; font-weight:700; border-radius:999px; padding:2px 10px; }
.tm-fin-duree{ background:#0f172a; color:#fff; }
.tm-fin-orig{ background:#e2e8f0; color:#334155; }
.tm-fin-l b{ display:block; font-size:15px; margin-bottom:3px; }
.tm-fin-l p{ margin:0; font-size:13.5px; opacity:.8; }

/* --- juger le danger d'un financement --- */
.tm-dossier{ display:flex; align-items:stretch; gap:10px; margin:12px 0; flex-wrap:wrap; }
.tm-dos-l{ flex:1 1 220px; background:#f8fafc; border:1px solid #e2e8f0;
  border-radius:12px; padding:11px 14px; display:flex; flex-direction:column; gap:3px; }
.tm-dos-l span{ font-size:11px; font-weight:700; letter-spacing:.05em;
  text-transform:uppercase; opacity:.55; }
.tm-dos-l b{ font-size:15px; line-height:1.4; }
.tm-dos-l i{ font-style:normal; font-size:12.5px; opacity:.75; }
.tm-dos-fleche{ display:flex; align-items:center; font-size:22px; opacity:.4; }

/* ⚠️ La jauge se remplit APRÈS le jugement : `width` part de 0 et la
   transition la fait monter. Affichée d'emblée, elle donnerait la réponse. */
.tm-jauge-danger{ margin:14px 0; }
.tm-jd-piste{ position:relative; height:16px; border-radius:8px; overflow:hidden;
  background:linear-gradient(90deg,#dcfce7 0%,#dcfce7 34%,#fef3c7 34%,#fef3c7 69%,#fee2e2 69%,#fee2e2 100%); }
.tm-jd-fill{ display:block; height:100%; border-radius:8px;
  background:linear-gradient(90deg,#16a34a,#f59e0b 55%,#dc2626);
  transition:width .7s cubic-bezier(.22,1,.36,1); }
.tm-jd-seuil{ position:absolute; top:0; bottom:0; width:2px; background:rgba(15,23,42,.18); }
.tm-jd-s1{ left:34%; } .tm-jd-s2{ left:69%; }
.tm-jd-echelle{ display:flex; justify-content:space-between; font-size:11.5px;
  opacity:.7; margin-top:4px; }
.tm-jd-val{ text-align:center; font-size:14px; margin-top:6px; }

.tm-verdicts{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:12px 0; }
.tm-verdict-b{ display:flex; flex-direction:column; gap:3px; align-items:center;
  text-align:center; border:2px solid #cbd5e1; border-radius:12px; background:#fff;
  padding:13px 10px; cursor:pointer; font:inherit; }
.tm-verdict-b b{ font-size:14.5px; } .tm-verdict-b span{ font-size:11.5px; opacity:.7; line-height:1.35; }
.tm-vb-sain:hover{ border-color:#16a34a; background:#f0fdf4; }
.tm-vb-tendu:hover{ border-color:#f59e0b; background:#fffbeb; }
.tm-vb-danger:hover{ border-color:#dc2626; background:#fef2f2; }

@media (max-width:640px){
  .tm-verdicts{ grid-template-columns:1fr; }
  .tm-dos-fleche{ transform:rotate(90deg); justify-content:center; width:100%; }
}
@media (prefers-reduced-motion:reduce){
  .tm-evt{ animation:none; }
  .tm-ecart-fill, .tm-curseur-fill, .tm-res-fill, .tm-jauge-b i, .tm-jalon,
  .tm-jd-fill{ transition:none; }
}

/* ==================================================================
   Modele economique, invention, besoins (activites 10 a 12)

   ⚠️ Piege N : aucun modificateur nu. Tout porte le prefixe `tm-`, dans
   une feuille unique de 5 200 regles ou `.a` ou `.reste` seraient des
   noms globaux.
================================================================== */

/* --- un document lu avant les questions --- */
.tm-doc{ background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px;
  padding:12px 16px; margin:12px 0; font-size:14.5px; line-height:1.6; }
.tm-doc p{ margin:0 0 9px; } .tm-doc p:last-child{ margin-bottom:0; }
.tm-cas{ background:#eff6ff; border-left:4px solid var(--tm-bleu); border-radius:0 12px 12px 0;
  padding:12px 15px; margin:12px 0; font-size:14.5px; line-height:1.6; }

/* --- deux fiches cote a cote (le cafe) --- */
.tm-fiches{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:12px 0 16px; }
.tm-fiche{ border:1px solid #e2e8f0; border-radius:14px; padding:10px 12px; background:#fff; }
.tm-fiche-l{ margin:8px 0 0; padding-left:18px; font-size:13.5px; line-height:1.55; }
.tm-fiche-l li{ margin-bottom:5px; }

/* --- ou part l'argent : 100 euros encaisses --- */
.tm-cent{ margin:12px 0 16px; }
.tm-cent-leg{ display:flex; flex-wrap:wrap; gap:12px; margin-bottom:12px; font-size:12.5px; }
.tm-cent-leg-i{ display:inline-flex; align-items:center; gap:6px; }
.tm-cent-pastille{ width:12px; height:12px; border-radius:3px; display:inline-block; }
.tm-cent-l{ margin:0 0 14px; }
.tm-cent-l > b{ display:block; margin-bottom:6px; font-size:14.5px; }
.tm-cent-barre{ display:flex; height:30px; border-radius:8px; overflow:hidden;
  background:#e2e8f0; }
.tm-cent-seg{ display:flex; align-items:center; justify-content:center; font-style:normal;
  font-size:12px; font-weight:700; color:#fff; transition:width .5s ease; overflow:hidden; }
.tm-cent-a{ background:#64748b; } .tm-cent-b{ background:var(--tm-bleu); }
.tm-cent-c{ background:#a855f7; } .tm-cent-d{ background:var(--tm-vert); }
.tm-cent-quoi{ margin:6px 0 0; font-size:13.5px; line-height:1.5; opacity:.9; }

/* --- la frise des quatre temps de la demarche --- */
.tm-frise4{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:12px 0 16px; }
.tm-frise4-e{ display:flex; flex-direction:column; gap:4px; align-items:flex-start;
  background:#f0fdfa; border:1px solid #99f6e4; border-radius:12px; padding:11px 12px; }
.tm-frise4-n{ display:inline-flex; align-items:center; justify-content:center;
  width:24px; height:24px; border-radius:50%; background:var(--tm-vert); color:#fff;
  font-size:13px; font-weight:700; }
.tm-frise4-e b{ font-size:14.5px; }
.tm-frise4-q{ font-size:12.5px; opacity:.8; line-height:1.4; }

/* --- une erreur mise en scene --- */
.tm-erreur{ background:#fef2f2; border-left:5px solid var(--tm-rouge);
  border-radius:0 14px 14px 0; padding:13px 16px; margin:12px 0; }
.tm-erreur > b{ display:block; margin-bottom:6px; font-size:15px; }
.tm-erreur p{ margin:0; font-size:14.5px; line-height:1.6; }

@media (max-width:640px){
  .tm-fiches{ grid-template-columns:1fr; }
  .tm-frise4{ grid-template-columns:1fr 1fr; }
  .tm-cent-seg{ font-size:11px; }
}
@media (prefers-reduced-motion:reduce){
  .tm-cent-seg{ transition:none; }
}

/* ==================================================================
   Organiser la production : flux, qualite, couts (activites 13 a 15)
   ⚠️ Piege N : tout porte le prefixe `tm-`, jamais un modificateur nu.
================================================================== */

/* --- la simulation des huit semaines --- */
.tm-fx{ margin:12px 0 16px; }
.tm-fx-leg{ display:flex; flex-wrap:wrap; gap:14px; font-size:12.5px; margin-bottom:10px; }
.tm-fx-leg span{ display:inline-flex; align-items:center; gap:6px; }
.tm-fx-p{ width:12px; height:12px; border-radius:3px; display:inline-block; }
.tm-fx-cols{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.tm-fx-col{ border:1px solid #e2e8f0; border-radius:14px; padding:11px 12px; background:#fff; }
.tm-fx-col > b{ display:block; font-size:15px; }
.tm-fx-sous{ display:block; font-size:12px; opacity:.72; line-height:1.4; margin-bottom:9px; }
.tm-fx-sem{ display:flex; align-items:center; gap:7px; margin-bottom:5px; font-size:12px; }
.tm-fx-num{ flex:0 0 24px; opacity:.7; }
.tm-fx-barre{ flex:1 1 auto; display:flex; height:15px; border-radius:8px;
  overflow:hidden; background:#eef2f7; }
.tm-fx-barre i{ display:block; height:100%; transition:width .45s ease; }
.tm-fx-vendu{ background:var(--tm-vert); }
.tm-fx-stock{ background:#f59e0b; }
.tm-fx-rupture{ background:var(--tm-rouge); }
.tm-fx-chiffre{ flex:0 0 62px; text-align:right; font-size:11.5px; opacity:.8; }
.tm-fx-bilan{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:14px 0; }
.tm-fx-tot{ background:#f8fafc; border:1px solid #e2e8f0; border-radius:14px; padding:11px 13px; }
.tm-fx-tot > b{ display:block; margin-bottom:6px; }
.tm-fx-tot p{ margin:0 0 3px; font-size:13px; }
.tm-fx-cout{ margin-top:7px !important; padding-top:6px; border-top:1px solid #e2e8f0;
  font-size:14.5px !important; }

/* --- la facture de la qualite --- */
.tm-ql{ margin:12px 0 16px; }
.tm-ql-etat{ font-size:13.5px; line-height:1.6; margin:4px 0 12px; }
.tm-ql-l{ display:flex; align-items:center; gap:9px; margin-bottom:6px; font-size:13px; }
.tm-ql-nom{ flex:0 0 175px; opacity:.8; }
.tm-ql-jauge{ flex:1 1 auto; height:16px; background:#e2e8f0; border-radius:8px; overflow:hidden; }
.tm-ql-fill{ display:block; height:100%; border-radius:8px; transition:width .4s ease; }
.tm-ql-c1{ background:#64748b; } .tm-ql-c2{ background:var(--tm-bleu); }
.tm-ql-c3{ background:var(--tm-rouge); }
.tm-ql-v{ flex:0 0 86px; text-align:right; font-weight:700; }
.tm-ql-total{ margin:11px 0 4px; font-size:15.5px; }
.tm-ql-cause{ margin-top:6px; }

@media (max-width:640px){
  .tm-fx-cols, .tm-fx-bilan{ grid-template-columns:1fr; }
  .tm-ql-nom{ flex:0 0 108px; font-size:12px; }
  .tm-ql-v{ flex:0 0 72px; font-size:12.5px; }
  .tm-fx-chiffre{ flex:0 0 52px; }
}
@media (prefers-reduced-motion:reduce){
  .tm-fx-barre i, .tm-ql-fill{ transition:none; }
}

/* ==================================================================
   Les transformations numeriques de la production (activites 16-17)
   ⚠️ Piege N : tout porte le prefixe `tm-`, jamais un modificateur nu.
================================================================== */

/* --- le trajet d'un document --- */
.tm-ch{ margin:12px 0 16px; }
.tm-ch-tete{ display:flex; justify-content:space-between; align-items:baseline;
  margin-bottom:9px; font-size:15px; }
.tm-ch-pas{ font-size:12.5px; opacity:.7; }
.tm-ch-liste{ margin-bottom:12px; }
.tm-ch-e{ display:flex; gap:9px; align-items:flex-start; padding:9px 11px;
  border:1px solid #e2e8f0; border-radius:12px; margin-bottom:7px; background:#fff;
  animation:tm-monte .32s ease both; }
/* ⚠️ Accrochee a son bloc, jamais definie nue : c'est la forme que
   `collisions-css.py` reconnait comme sure (piege N). */
.tm-ch-e.tm-ch-saisie{ border-left:4px solid #f59e0b; background:#fffdf6; }
.tm-ch-num{ flex:0 0 22px; height:22px; border-radius:50%; background:var(--tm-vert);
  color:#fff; font-size:12px; font-weight:700; display:inline-flex;
  align-items:center; justify-content:center; margin-top:1px; }
.tm-ch-txt{ flex:1 1 auto; font-size:14px; line-height:1.5; }
.tm-ch-min{ display:inline-block; margin-left:7px; font-size:12px; opacity:.7; }
.tm-ch-tag{ display:inline-block; margin-left:6px; font-size:11px; padding:1px 8px;
  border-radius:999px; vertical-align:1px; }
.tm-ch-tag-s{ background:#fef3c7; color:#92400e; }
.tm-ch-tag-p{ background:#fee2e2; color:#991b1b; }
.tm-ch-bilans{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:14px 0; }
.tm-ch-tot{ background:#f8fafc; border:1px solid #e2e8f0; border-radius:14px; padding:11px 13px; }
.tm-ch-tot > b{ display:block; margin-bottom:8px; }
.tm-ch-tot p{ margin:0 0 3px; font-size:13px; }
.tm-ch-jauge{ display:block; height:12px; background:#e2e8f0; border-radius:6px;
  overflow:hidden; margin-bottom:9px; }
.tm-ch-fill{ display:block; height:100%; border-radius:6px; transition:width .5s ease; }
.tm-ch-f0{ background:var(--tm-rouge); } .tm-ch-f1{ background:var(--tm-vert); }

/* --- la comparaison de trois montants --- */
.tm-br{ margin:12px 0 16px; }
.tm-br-l{ display:flex; align-items:center; gap:9px; margin-bottom:8px; font-size:13.5px; }
.tm-br-nom{ flex:0 0 116px; font-weight:600; }
.tm-br-jauge{ flex:1 1 auto; height:20px; background:#e2e8f0; border-radius:10px; overflow:hidden; }
.tm-br-fill{ display:block; height:100%; border-radius:10px; transition:width .5s ease; }
.tm-br-a{ background:var(--tm-rouge); } .tm-br-b{ background:#f59e0b; }
.tm-br-c{ background:var(--tm-vert); }
.tm-br-v{ flex:0 0 88px; text-align:right; font-weight:700; }

@keyframes tm-monte{ from{ opacity:0; transform:translateY(9px); } to{ opacity:1; transform:none; } }

@media (max-width:640px){
  .tm-ch-bilans{ grid-template-columns:1fr; }
  .tm-br-nom{ flex:0 0 88px; font-size:12.5px; }
  .tm-br-v{ flex:0 0 74px; font-size:12.5px; }
}
@media (prefers-reduced-motion:reduce){
  .tm-ch-e{ animation:none; }
  .tm-ch-fill, .tm-br-fill{ transition:none; }
}

/* --- l'entonnoir des visiteurs (tm_freins) ---
   ⚠️ Les modificateurs portent le préfixe de leur bloc (`tm-tn-ok`,
   `tm-tn-ko`) : `.ok` et `.ko` nus existent ailleurs dans la feuille de
   la plateforme, et le badge hériterait des deux (piège N). */
.tm-tn-bloc{ margin:12px 0 6px; }
.tm-tn-h{ font-size:15px; margin:14px 0 8px; color:var(--tm-vert); }
.tm-tn{ background:#f8fafc; border:1px solid #e2e8f0; border-radius:14px;
  padding:12px 14px; margin-bottom:10px; }
.tm-tn-l{ display:flex; align-items:center; gap:9px; margin-bottom:7px; font-size:13.5px; }
.tm-tn-nom{ flex:0 0 172px; }
.tm-tn-barre{ flex:1 1 auto; height:18px; background:#e2e8f0; border-radius:9px; overflow:hidden; }
.tm-tn-barre i{ display:block; height:100%; border-radius:9px;
  background:var(--tm-vert); transition:width .5s ease; }
.tm-tn-n{ flex:0 0 78px; text-align:right; font-weight:700; }
.tm-tn-n em{ font-style:normal; font-weight:600; font-size:12px; }
.tm-tn-plus{ color:var(--tm-vert); } .tm-tn-moins{ color:var(--tm-rouge); }
.tm-tn-marge{ margin:10px 0 0; padding-top:9px; border-top:1px dashed #cbd5e1; font-size:14px; }
.tm-tn-marge em{ font-style:normal; color:var(--tm-vert); font-weight:600; }
.tm-tn-actions{ display:grid; gap:10px; margin:10px 0; }
.tm-tn-act{ display:flex; flex-direction:column; gap:3px; align-items:flex-start;
  text-align:left; background:#fff; border:2px solid #cbd5e1; border-radius:14px;
  padding:11px 13px; cursor:pointer; font:inherit; }
.tm-tn-act:hover{ border-color:var(--tm-vert); background:#f0fdfa; }
.tm-tn-act.on{ border-color:var(--tm-vert); background:var(--tm-vert-clair); }
.tm-tn-act.tm-tn-act-vu{ opacity:.92; }
.tm-tn-act b{ font-size:15px; } .tm-tn-act span{ font-size:13px; opacity:.78; }
.tm-tn-act em{ font-style:normal; font-size:12px; opacity:.6; }
/* ⚠️ AUCUN RETRAIT LATERAL ICI : l'entonnoir « apres » est comparé à l'œil
   avec celui du dessus. Un padding le rendait plus étroit, donc ses barres
   plus courtes à effectif égal — et la publicité paraissait faire BAISSER
   le trafic qu'elle augmente. Les deux `.tm-tn` doivent avoir exactement
   la même largeur. */
.tm-tn-res{ padding:12px 0 2px; margin:10px 0;
  border-top:1px dashed #cbd5e1; animation:tm-monte .35s ease; }
.tm-tn-compte{ background:#f8fafc; border-radius:12px; padding:10px 12px; margin:8px 0; }
.tm-tn-compte p{ margin:0 0 3px; font-size:14px; }
.tm-tn-ok{ color:var(--tm-vert); } .tm-tn-ko{ color:var(--tm-rouge); }
.tm-tn-why{ font-size:13.5px; line-height:1.6; margin:8px 0 0; }
.tm-tn-reste{ font-size:13px; opacity:.65; margin:6px 0 0; }
.tm-tn-ordre{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:12px 0; }
.tm-tn-ordre-c{ background:#f8fafc; border:1px solid #e2e8f0; border-radius:14px;
  padding:11px 13px; }
.tm-tn-ordre-c > b{ display:block; margin-bottom:7px; }
.tm-tn-ordre-c p{ margin:0 0 3px; font-size:13.5px; }

/* --- les deux achats côte à côte (tm_achat) --- */
.tm-deux{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:12px 0; }
.tm-deux-c{ background:#f8fafc; border:1px solid #e2e8f0; border-radius:14px;
  padding:11px 13px; }
.tm-deux-c > b{ display:block; margin-bottom:7px; font-size:15px; }
.tm-deux-c p{ margin:0 0 3px; font-size:13.5px; }

/* --- la révélation (tm_client) --- */
.tm-reveal{ background:#fffbeb; border:1px solid #fcd34d; border-radius:14px;
  padding:13px 15px; margin:12px 0; animation:tm-monte .35s ease; }
.tm-reveal p{ margin:0; font-size:14.5px; line-height:1.65; }

@media (max-width:640px){
  .tm-tn-nom{ flex:0 0 118px; font-size:12.5px; }
  .tm-tn-n{ flex:0 0 62px; font-size:12.5px; }
  .tm-tn-ordre, .tm-deux{ grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce){
  .tm-tn-barre i{ transition:none; }
  .tm-tn-res, .tm-reveal{ animation:none; }
}

/* --- Les mots a connaitre, avant de demarrer ---------------------
   ⚠️ Modificateurs prefixes (piege N) : `.tm-notions-t`, jamais `.t`. */
.tm-notions{ background:#f8fafc; border:1px solid #e2e8f0;
  border-left:4px solid #0369a1; border-radius:12px;
  padding:11px 15px; margin:14px 0 6px; text-align:left; }
.tm-notions-t{ display:block; font-size:14.5px; color:#075985;
  margin-bottom:7px; }
.tm-notions-l{ margin:0 0 6px; font-size:14px; line-height:1.55; }
.tm-notions-l:last-child{ margin-bottom:0; }
.tm-notions-l b{ color:#0c4a6e; }
@media (max-width:640px){
  .tm-notions{ padding:10px 12px; }
  .tm-notions-l{ font-size:13.5px; }
}

/* Les résultats déjà établis, rappelés au-dessus de la question.
   Volontairement plus discret que le tableau : c'est un pense-bête,
   pas un document. */
.tm-acquis{
  background:#f5f3ff; border:1px solid #ddd6fe; border-radius:12px;
  padding:10px 14px; margin:0 0 14px;
}
.tm-acquis > b{ display:block; font-size:12px; color:#6d28d9;
  text-transform:uppercase; letter-spacing:.03em; margin-bottom:6px; }
.tm-acquis-l{
  display:flex; justify-content:space-between; align-items:baseline;
  gap:14px; padding:3px 0; font-size:14.5px;
}
.tm-acquis-l span{ color:#4c1d95; }
.tm-acquis-l b{ color:#312e81; white-space:nowrap; }



/* ============================================================
   MES ACTIVITÉS PASSÉES — l'entrée du haut et son écran (29/10/2026)
   (c'était « Mes archives », un tiroir en bas de page — §7.95)

   Gris ardoise, et volontairement : c'est ce qui est derrière. Les
   bandeaux de l'accueil gardent le violet, le bleu roi et l'ambre — si
   les activités passées en reprenaient un, elles se liraient comme du
   travail en cours.

   ⚠️ Toutes les règles portent le préfixe `mpa-` (ou `nv-` pour l'entrée,
   qui vit dans la barre du haut), cherché nu dans la feuille avant d'être
   choisi (piège N) : `pas-` était pris (`.pas-lue`). Les lignes, elles,
   réutilisent `.evmenu-l` : deux écrans qui montrent la même chose
   doivent la montrer pareil.
============================================================ */
.nv-top-d{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.nv-passees{
  background:#f1f5f9; border:1px solid #cbd5e1; border-radius:99px;
  padding:7px 15px; font:700 13px/1.2 inherit; color:#334155; cursor:pointer;
  box-shadow:0 6px 18px -10px rgba(51,65,85,.45);
}
.nv-passees:hover{ background:#e2e8f0; border-color:#94a3b8; }
/* La pastille : ardoise, pas rouge — c'est un rappel, pas une alarme. */
.nv-passees-n{
  display:inline-block; min-width:19px; margin-left:7px; padding:1px 6px;
  border-radius:99px; background:#475569; color:#fff;
  font-size:11.5px; font-weight:800; line-height:17px; text-align:center;
}
.mpa-rayon.mpa-afaire{ background:#fffbeb; border-color:#fde68a; }
.mpa-afaire .mpa-rayon-n{ background:#fde68a; color:#92400e; }
.mpa-etiq{ display:inline-block; margin-right:6px; padding:0 7px; border-radius:6px;
  background:#fef3c7; color:#92400e; font-size:11.5px; font-weight:700; }
.mpa-page{ max-width:860px; margin:10px auto 24px; padding:0 4px; text-align:left; }
.mpa-tete{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:8px; }
.mpa-retour{
  background:#f1f5f9; border:1px solid #e2e8f0; border-radius:10px;
  padding:8px 14px; font:700 14px/1.2 inherit; color:#475569; cursor:pointer;
}
.mpa-retour:hover{ background:#e2e8f0; }
.mpa-titre{ margin:0; font-family:'Fraunces',serif; font-size:clamp(20px,4vw,26px); color:#1e293b; }
.mpa-mot{ margin:0 0 14px; font-size:14px; color:#64748b; line-height:1.55; }
.mpa-err{ margin:0 0 12px; font-size:14px; color:#b91c1c; }
.mpa-vide{ margin:0; font-size:14.5px; color:#64748b; background:#f8fafc;
  border:1px dashed #cbd5e1; border-radius:12px; padding:14px 16px; }
.mpa-rayon{ background:#f8fafc; border:1px solid #e2e8f0; border-radius:14px;
  padding:12px 14px 8px; margin-bottom:14px; }
.mpa-rayon-h{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin:0 0 9px; font:800 15px/1.3 inherit; color:#334155;
}
.mpa-rayon-n{ background:#e2e8f0; color:#475569; border-radius:99px;
  padding:2px 9px; font-size:12px; font-weight:700; }
/* Les lignes empruntent `.evmenu-l` : on ne change que ce qui dit
   « c'est rangé » — le fond blanc. Et un bouton y vaut un lien. */
.mpa-rayon .evmenu-l{ background:#fff; }
.mpa-rayon button.evmenu-go{ border:0; cursor:pointer; font-family:inherit; }
@media(max-width:640px){
  .nv-passees{ font-size:12.5px; padding:6px 12px; }
  .mpa-rayon{ padding:10px 10px 6px; }
}

/* ==== management-carac : styles ==== */
/* ============================================================
   Management 1ʳᵉ — caractériser une organisation
   Toutes les règles sont préfixées `cr-` (piège N).
   ⚠️ Aucun modificateur n'est écrit nu : `cr-gl-ok`, `cr-gl-on` portent
   le préfixe de leur bloc. `.ok` et `.on` nus existent ailleurs dans la
   feuille de la plateforme, et une règle héritée par accident ne
   ressemble jamais à une erreur — juste à une carte mal dessinée.
============================================================ */

.cr{ --cr-violet:#7c3aed; --cr-clair:#f5f3ff; --cr-bord:#ddd6fe; }

.cr .cr-h{ font-size:17px; margin:16px 0 10px; color:var(--cr-violet,#7c3aed); }
.cr-txt{ font-size:15px; line-height:1.6; margin:0 0 14px; }
.cr-note{ font-size:13.5px; opacity:.72; margin:10px 0 14px; }
.cr-pas{ font-size:12px; opacity:.6; margin-bottom:8px; }

/* --- la carte d'une organisation --- */
.cr-carte{ display:flex; gap:14px; align-items:flex-start; background:#f8fafc;
  border:1px solid #e2e8f0; border-radius:14px; padding:12px 14px; margin:12px 0; }
.cr-carte-img{ flex:0 0 96px; width:96px; height:72px; object-fit:cover; border-radius:10px; }
.cr-carte-t b{ display:block; font-size:16px; }
.cr-carte-t span{ display:block; font-size:12.5px; opacity:.7; margin-bottom:4px; }
.cr-carte-t p{ margin:0; font-size:14px; line-height:1.5; }

/* --- la scène d'un écran d'exercice ---
   ⚠️ Cadre en 16/6 pour des images en 16/9 : seule la bande centrale est
   montrée, et c'est sur elle que se mesure la luminance (§7.44). */
.cr-scene{ width:100%; aspect-ratio:16/6; max-height:190px; object-fit:cover;
  border-radius:14px; display:block; margin:0 0 12px; }
@media(max-width:640px){ .cr-scene{ aspect-ratio:16/7; max-height:150px; } }

/* --- un document du dossier --- */
.cr-doc{ background:#fbfaff; border:1px solid var(--cr-bord,#ddd6fe);
  border-left:4px solid var(--cr-violet,#7c3aed); border-radius:12px;
  padding:13px 16px; margin:12px 0;
  text-align:left; font-weight:400; font-size:14.5px; color:#2d2748; }
.cr-doc-t{ display:block; font-size:14.5px; font-weight:700; color:var(--cr-violet,#7c3aed);
  border-bottom:1px solid var(--cr-bord,#ddd6fe); padding-bottom:7px; margin:0 0 9px; }
.cr-doc-x{ margin:0; font-size:14.5px; line-height:1.65; }
.cr-doc-x p{ margin:0 0 8px; }
.cr-doc-x p:last-child{ margin-bottom:0; }
.cr-doc-s{ display:block; margin-top:9px; font-size:11.5px; opacity:.55; font-style:italic; }

/* --- la grille qui se remplit --- */
.cr-grille{ display:grid; gap:5px; margin:12px 0 16px; }
.cr-gl{ display:flex; gap:10px; align-items:baseline; background:#f8fafc;
  border:1px solid #e2e8f0; border-radius:9px; padding:7px 11px;
  transition:background .3s ease, border-color .3s ease; }
.cr-gl-nom{ flex:0 0 190px; font-size:13px; font-weight:600; }
.cr-gl-v{ flex:1 1 auto; font-size:13.5px; }
.cr-gl-v i{ opacity:.5; font-size:12.5px; }
.cr-gl.cr-gl-ok{ background:var(--cr-clair); border-color:var(--cr-bord); }
.cr-gl.cr-gl-ok .cr-gl-v{ font-weight:600; color:var(--cr-violet); }
.cr-gl.cr-gl-on{ border-color:var(--cr-violet); background:#fff;
  box-shadow:0 0 0 2px rgba(124,58,237,.14); }

/* --- l'extrait rappelé au-dessus de la question --- */
.cr-extrait{ background:#fffbeb; border:1px solid #fcd34d; border-radius:11px;
  padding:9px 13px; margin:10px 0 12px; font-size:13.5px; line-height:1.55; }

/* --- la règle d'un couple de critères --- */
.cr-regle{ background:var(--cr-clair); border:1px solid var(--cr-bord);
  border-radius:12px; padding:11px 14px; margin:10px 0 14px;
  font-size:14px; line-height:1.6; }

@media (max-width:640px){
  .cr-carte{ flex-direction:column; }
  .cr-carte-img{ width:100%; height:150px; flex:none; }
  .cr-gl{ flex-direction:column; gap:2px; }
  .cr-gl-nom{ flex:none; font-size:12.5px; opacity:.75; }
}
@media (prefers-reduced-motion:reduce){
  .cr-gl{ transition:none; }
}

/* ==== management-carac : fin des styles ==== */

/* ==== management-secteurs : styles ==== */
/* ============================================================
   Management 1ʳᵉ — les secteurs, les entreprises publiques,
   biens et services, les missions d'intérêt général
   ------------------------------------------------------------
   ⚠️ TOUTES LES RÈGLES SONT PRÉFIXÉES `mg-` (piège N), et aucun
   modificateur n'est écrit nu : `.mg-fl.mg-fl-ok` porte le
   préfixe de son bloc. `.ok`, `.on`, `.med` existent nus
   ailleurs dans la feuille unique de la plateforme, et une
   règle héritée par accident ne ressemble jamais à une erreur —
   juste à une carte mal dessinée.
============================================================ */

/* ⚠️ LA CLASSE RACINE EST `mgs`, PAS `mg`. `.mg` existe déjà dans la
   feuille de la plateforme — font-size:11px, font-weight:700,
   text-align:center — et les cinq activités du lot en héritaient : tout
   centré, tout en gras, sans qu'aucune règle d'ici ne le demande.
   C'est le piège N appliqué au NOM DU BLOC et non à un modificateur.
   Avant d'adopter un préfixe court, le chercher nu dans index.html. */
.mgs{ --mg-vert:#0f766e; --mg-clair:#f0fdfa; --mg-bord:#99f6e4; }

.mgs .mg-h{ font-size:17px; margin:16px 0 10px; color:var(--mg-vert,#0f766e); }
.mg-txt{ font-size:15px; line-height:1.6; margin:0 0 14px; }

.mg-encadre{ background:var(--mg-clair); border:1px solid var(--mg-bord);
  border-radius:12px; padding:11px 14px; margin:12px 0 16px;
  font-size:14.5px; line-height:1.6; }
.mg-encadre p{ margin:6px 0 0; }
.mg-encadre b{ color:var(--mg-vert); }

.mg-avert{ background:#fffbeb; border:1px solid #fcd34d; border-radius:11px;
  padding:9px 13px; margin:10px 0 14px; font-size:13.5px; line-height:1.55; }

/* --- la scène d'un écran d'exercice ---
   ⚠️ Le cadre est en 16/6 alors que les images sont en 16/9 : il ne
   montre que la BANDE CENTRALE. C'est sur elle que se mesure la
   luminance, pas sur l'image entière (§7.44). */
.mg-scene{ width:100%; aspect-ratio:16/6; max-height:190px; object-fit:cover;
  border-radius:14px; display:block; margin:0 0 12px; }
@media(max-width:640px){ .mg-scene{ aspect-ratio:16/7; max-height:150px; } }

/* --- la barre du partage du prix --- */
.mg-part{ margin:14px 0 8px; }
.mg-part-l{ display:flex; align-items:center; gap:9px; margin-bottom:7px; }
.mg-part-nom{ flex:0 0 210px; font-size:12.5px; line-height:1.35; }
.mg-part-nom i{ opacity:.55; font-size:11.5px; font-style:normal; }
.mg-part-piste{ flex:1 1 auto; height:16px; background:#f1f5f9;
  border-radius:8px; overflow:hidden; }
.mg-part-plein{ display:block; height:100%; border-radius:8px;
  transition:width .5s ease; }
.mg-part-prim{ background:#65a30d; }
.mg-part-sec{ background:#c2410c; }
.mg-part-tert{ background:#0369a1; }
.mg-part-v{ flex:0 0 68px; text-align:right; font-size:13px;
  font-variant-numeric:tabular-nums; }
.mg-part-tot{ margin:10px 0 0; font-size:13px; opacity:.72; }

/* --- le pari --- */
.mg-pari-apres{ margin-top:14px; }
.mg-pari-txt{ background:var(--mg-clair); border-left:4px solid var(--mg-vert);
  border-radius:0 10px 10px 0; padding:10px 14px; margin:0 0 12px;
  font-size:14.5px; line-height:1.6; }

/* --- les deux jauges des buts --- */
.mg-jauges{ display:grid; gap:10px; margin-bottom:16px; }
.mg-jauge{ background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px;
  padding:9px 13px; }
.mg-jauge-t{ font-size:14px; }
.mg-jauge-sous{ font-size:12px; opacity:.68; margin:2px 0 7px; line-height:1.4; }
.mg-jauge-piste{ height:11px; background:#e2e8f0; border-radius:6px; overflow:hidden; }
.mg-jauge-plein{ height:100%; border-radius:6px; transition:width .55s ease; }
.mg-jauge-mission{ background:#0d9488; }
.mg-jauge-comptes{ background:#7c3aed; }

/* --- la boussole : décisions et retombées --- */
.mg-bouss-t{ font-size:16px; margin:6px 0 6px; }
.mg-bouss-dit{ font-size:14.5px; line-height:1.6; margin:0 0 14px; }
.mg-choix{ display:grid; gap:9px; }
.mg-choix-b{ text-align:left; background:#fff; border:1.5px solid #cbd5e1;
  border-radius:12px; padding:12px 15px; font-size:14.5px; line-height:1.45;
  cursor:pointer; transition:border-color .2s ease, background .2s ease; }
.mg-choix-b:hover{ border-color:var(--mg-vert); background:var(--mg-clair); }
.mg-retombee{ margin-top:6px; }
.mg-retombee-x{ background:var(--mg-clair); border:1px solid var(--mg-bord);
  border-radius:12px; padding:11px 14px; margin:0 0 14px;
  font-size:14.5px; line-height:1.62; }

/* --- la fiche d'identité qui se remplit --- */
.mg-fiche{ margin:12px 0 16px; }
.mg-fiche-t{ display:block; font-size:15px; margin-bottom:9px; color:var(--mg-vert); }
.mg-fl{ display:flex; gap:10px; align-items:baseline; background:#f8fafc;
  border:1px solid #e2e8f0; border-radius:9px; padding:7px 11px; margin-bottom:5px;
  transition:background .3s ease, border-color .3s ease; }
.mg-fl-nom{ flex:0 0 190px; font-size:13px; font-weight:600; }
.mg-fl-v{ flex:1 1 auto; font-size:13.5px; }
.mg-fl-v i{ opacity:.5; font-size:12.5px; }
.mg-fl.mg-fl-ok{ background:var(--mg-clair); border-color:var(--mg-bord); }
.mg-fl.mg-fl-ok .mg-fl-v{ font-weight:600; color:var(--mg-vert); }
.mg-fl.mg-fl-on{ border-color:var(--mg-vert); background:#fff;
  box-shadow:0 0 0 2px rgba(15,118,110,.14); }

/* --- la grille récapitulative des trois secteurs --- */
.mg-tabl{ display:grid; gap:8px; margin:12px 0 16px; }
.mg-gl{ border:1px solid #e2e8f0; border-left-width:4px; border-radius:11px;
  padding:10px 13px; background:#fff; }
.mg-gl b{ display:block; font-size:15px; margin-bottom:3px; }
.mg-gl-prim{ border-left-color:#65a30d; }
.mg-gl-sec{ border-left-color:#c2410c; }
.mg-gl-tert{ border-left-color:#0369a1; }
.mg-gl-q{ display:block; font-size:13.5px; }
.mg-gl-n{ display:block; font-size:12.5px; margin-top:4px; font-weight:600;
  color:var(--mg-vert); }
.mg-gl-a{ display:block; font-size:12px; opacity:.62; margin-top:2px; }

/* --- un incident --- */
.mg-inc-t{ font-size:16px; margin:8px 0 6px; }
.mg-inc-x{ background:#fff; border:1px solid var(--mg-bord);
  border-left:4px solid var(--mg-vert); border-radius:12px; padding:11px 15px;
  margin:0 0 14px; font-size:14.5px; line-height:1.65; }

@media (max-width:640px){
  .mg-part-l{ flex-wrap:wrap; }
  .mg-part-nom{ flex:1 1 100%; }
  .mg-part-v{ flex:0 0 62px; }
  .mg-fl{ flex-direction:column; gap:2px; }
  .mg-fl-nom{ flex:none; font-size:12.5px; opacity:.75; }
}
@media (prefers-reduced-motion:reduce){
  .mg-part-plein, .mg-jauge-plein, .mg-fl, .mg-choix-b{ transition:none; }
}

/* ==== management-secteurs : fin des styles ==== */





























/* ==== msdgn-cycles : styles ==== */
/* ============================================================
   MSDGN Terminale — Les trois cycles
   ------------------------------------------------------------
   ⚠️ LE PRÉFIXE A ÉTÉ CHERCHÉ NU DANS index.html AVANT D'ÊTRE
   ADOPTÉ (§7.58) : ni `.cy`, ni `.cy-*`, ni `CY_*` n'existaient.
   ⚠️ Aucun modificateur n'est écrit nu (piège N) : `.cy-corr-ok`,
   `.cy-coin-on`, jamais `.ok` ni `.on`.
============================================================ */

.cy{ --cy-vert:#0d9488; --cy-clair:#f0fdfa; --cy-bord:#99f6e4;
     --cy-orange:#c2410c; --cy-bleu:#1d4ed8; }

.cy-h{ font-size:17px; margin:16px 0 10px; }
.cy .cy-h{ color:var(--cy-vert,#0d9488); }
.cy-intro{ font-size:14.5px; line-height:1.65; margin:0 0 14px; text-align:left; }
.cy-apres{ background:var(--cy-clair,#f0fdfa); border:1px solid var(--cy-bord,#99f6e4);
  border-radius:12px; padding:12px 15px; font-size:14.5px; line-height:1.65;
  text-align:left; margin:14px 0; }
.cy-lecon-t{ background:var(--cy-clair,#f0fdfa); border:1px solid var(--cy-bord,#99f6e4);
  border-radius:12px; padding:13px 16px; font-size:14.5px; line-height:1.65;
  text-align:left; }
.cy-piege{ background:#fffbeb; border:1px solid #fcd34d; border-radius:11px;
  padding:10px 14px; font-size:13.5px; line-height:1.6; text-align:left;
  margin:14px 0; }

/* --- une vignette : l'image, le mot, la phrase --- */
.cy-vig{ display:flex; gap:14px; align-items:flex-start; background:#fff;
  border:1px solid #e2e8f0; border-radius:14px; padding:12px 14px;
  margin:10px 0; text-align:left; }
.cy-vig-img{ flex:0 0 150px; width:150px; aspect-ratio:16/10; object-fit:cover;
  border-radius:11px; display:block; }
.cy-vig-txt{ flex:1 1 auto; min-width:0; }
.cy-vig-mot{ display:block; font-size:15px; margin-bottom:4px; }
.cy-vig-p2{ margin:0 0 6px; font-size:14px; line-height:1.55; }
.cy-vig-note{ margin:0; font-size:13px; line-height:1.5; opacity:.8; }
.cy-vig-p .cy-vig-img{ flex:0 0 100px; width:100px; }
.cy-vig-p .cy-vig-mot{ font-size:14px; }

/* --- les deux masses du cycle d'exploitation --- */
.cy-masse{ border-radius:14px; padding:13px 15px; margin:14px 0; text-align:left; }
.cy-masse-ac{ background:#eff6ff; border:1px solid #bfdbfe; }
.cy-masse-pc{ background:#fff7ed; border:1px solid #fed7aa; }
.cy-masse-t{ font-size:16px; font-weight:800; }
.cy-masse-s{ font-size:12.5px; opacity:.75; margin-bottom:8px; }
.cy-masse-p{ font-size:14.5px; line-height:1.6; margin:0 0 10px; }
.cy-vigs .cy-vig{ background:rgba(255,255,255,.75); }

/* --- le jeu de la durée --- */
.cy-achat{ font-size:17px; font-weight:700; background:#fff; border:1px solid #e2e8f0;
  border-radius:13px; padding:15px 18px; margin:12px 0; }
.cy-oui-non{ display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin:14px 0; }
.cy-b{ border:2px solid #e2e8f0; background:#fff; border-radius:13px;
  padding:13px 22px; font-size:15px; font-weight:700; font-family:inherit;
  color:#2d2748; cursor:pointer; transition:transform .12s ease; }
.cy-b:hover{ transform:translateY(-2px); border-color:var(--cy-bord,#99f6e4); }

.cy-corr{ border-radius:12px; padding:11px 15px; margin:12px 0;
  font-size:14px; line-height:1.6; text-align:left; }
.cy-corr-ok{ background:#f0fdf4; border:1px solid #bbf7d0; color:#14532d; }
.cy-corr-ko{ background:#fef2f2; border:1px solid #fecaca; color:#7f1d1d; }

/* --- les deux familles du passif stable --- */
.cy-fams{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:12px; margin:14px 0; }
.cy-fam{ border-radius:14px; padding:13px 15px; text-align:left; }
.cy-fam-propre{ background:#f0fdf4; border:1px solid #bbf7d0; }
.cy-fam-dette{ background:#eff6ff; border:1px solid #bfdbfe; }
.cy-fam-t{ font-size:15.5px; font-weight:800; margin-bottom:4px; }
.cy-fam-q{ font-size:13px; opacity:.78; margin-bottom:8px; line-height:1.5; }
.cy-fam-l{ margin:0 0 8px; padding-left:19px; font-size:13.5px; line-height:1.6; }
.cy-fam-n{ margin:0; font-size:13px; line-height:1.55; opacity:.85; }

/* --- les quatre coins du bilan --- */
.cy-bilan{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:14px 0 18px; }
.cy-col-t{ font-size:12px; font-weight:800; letter-spacing:.04em; opacity:.7;
  margin-bottom:6px; text-transform:uppercase; }
.cy-coin{ border:1px solid #e2e8f0; border-radius:12px; padding:9px 12px;
  margin-bottom:8px; text-align:left; background:#f8fafc; opacity:.42;
  transition:opacity .25s ease; }
.cy-coin-on{ opacity:1; }
.cy-coin b{ display:block; font-size:13.5px; }
.cy-coin-q{ display:block; font-size:12px; opacity:.78; line-height:1.45; margin-top:2px; }
.cy-coin-x{ display:block; font-size:11.5px; opacity:.62; line-height:1.45; margin-top:4px; }
.cy-coin-as.cy-coin-on{ background:#f5f3ff; border-color:#ddd6fe; }
.cy-coin-ac.cy-coin-on{ background:#eff6ff; border-color:#bfdbfe; }
.cy-coin-ps.cy-coin-on{ background:#f0fdf4; border-color:#bbf7d0; }
.cy-coin-pc.cy-coin-on{ background:#fff7ed; border-color:#fed7aa; }

@media(max-width:640px){
  .cy-vig{ flex-direction:column; gap:10px; }
  .cy-vig-img, .cy-vig-p .cy-vig-img{ flex:1 1 auto; width:100%; }
  .cy-bilan{ grid-template-columns:1fr; }
  .cy-achat{ font-size:15.5px; padding:13px 15px; }
  .cy-b{ padding:12px 16px; font-size:14px; }
}

/* ==================================================================
   « Le même bilan, deux lectures »
   ------------------------------------------------------------------
   ⚠️ Quatre préfixes NEUFS — cy-dl, cy-ret, cy-dt, cy-fx — cherchés nus
      dans index.html avant d'être adoptés (piège N étendu au nom de
      bloc, §7.58) : aucun n'y existait.
   ⚠️ Les deux tableaux larges défilent DANS leur cadre : le corps de la
      page ne doit jamais défiler horizontalement sur un téléphone.
================================================================== */
.cy-dl-doc{ background:#fffdf7; border:1px solid #e7e1d4; border-radius:12px;
  padding:14px 16px; margin:10px 0 14px; }
.cy-dl-head{ display:flex; flex-wrap:wrap; gap:6px 12px; align-items:baseline;
  border-bottom:2px solid #0d9488; padding-bottom:8px; margin-bottom:10px; }
.cy-dl-head b{ font-size:16px; color:#134e4a; }
.cy-dl-src{ font-size:11.5px; color:#8a8172; }
.cy-dl-cadre{ overflow-x:auto; }
.cy-dl-cote{ font-size:12px; font-weight:800; letter-spacing:.08em;
  color:#0d9488; margin:12px 0 4px; }
.cy-dl-t{ width:100%; border-collapse:collapse; font-size:13.5px; min-width:430px; }
.cy-dl-t th{ text-align:left; font-size:11.5px; text-transform:uppercase;
  letter-spacing:.04em; color:#7c7364; border-bottom:1px solid #e7e1d4;
  padding:4px 8px; font-weight:700; }
.cy-dl-t td{ padding:5px 8px; border-bottom:1px solid #f0ece1; }
.cy-dl-n{ text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.cy-dl-net{ font-weight:700; color:#134e4a; }
.cy-dl-tot td{ border-top:2px solid #0d9488; border-bottom:none;
  font-weight:800; background:#f3faf9; }
.cy-dl-tr.cy-dl-dfin td:first-child{ color:#9a3412; }
.cy-dl-pied{ margin-top:10px; font-size:11px; color:#8a8172; font-style:italic; }

.cy-ret-pq{ background:#f0fdfa; border-left:4px solid #0d9488; border-radius:9px;
  padding:10px 14px; margin:10px 0; font-size:14px; color:#134e4a; }
.cy-ret-t{ width:100%; border-collapse:collapse; font-size:13.5px;
  margin:12px 0; display:block; overflow-x:auto; white-space:nowrap; }
.cy-ret-t th{ text-align:left; font-size:11.5px; text-transform:uppercase;
  letter-spacing:.04em; color:#7c7364; padding:5px 10px;
  border-bottom:1px solid #e2e8f0; font-weight:700; }
.cy-ret-t td{ padding:7px 10px; border-bottom:1px solid #f1f5f9;
  white-space:normal; }
.cy-ret-bouge{ background:#fffbeb; }
.cy-ret-bouge td:last-child{ font-weight:800; color:#166534; }
.cy-ret-fixe td{ color:#64748b; }
.cy-ret-mot{ background:#fffbeb; border:1px solid #fcd34d; border-radius:10px;
  padding:11px 14px; font-size:14px; color:#7c2d12; margin:10px 0; }
.cy-ret-mot-plat{ background:#eef2ff; border-color:#c7d2fe; color:#3730a3; }
.cy-ret-gagne{ font-size:13.5px; color:#166534; margin:8px 0 12px; }

.cy-dt-duo{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:12px 0; }
.cy-dt-c{ border:1px solid #d9e2ec; border-radius:12px; padding:12px; background:#fff; }
.cy-dt-t{ font-weight:800; font-size:14px; margin-bottom:8px; color:#134e4a; }
.cy-dt-m{ display:flex; justify-content:space-between; gap:10px;
  font-size:13px; padding:5px 0; border-bottom:1px dashed #eef2f7; }
.cy-dt-m b{ white-space:nowrap; font-variant-numeric:tabular-nums; }
.cy-dt-tot{ margin-top:8px; padding-top:8px; border-top:2px solid #0d9488;
  font-weight:800; font-size:14.5px; color:#134e4a; text-align:right; }
.cy-dt-ind{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:14px 0; }
.cy-dt-i{ background:#f8fafc; border:1px solid #e2e8f0; border-radius:11px;
  padding:10px 12px; font-size:12.5px; color:#475569;
  display:flex; flex-direction:column; gap:4px; }
.cy-dt-i b{ font-size:18px; color:#0f172a; font-variant-numeric:tabular-nums; }
.cy-dt-i-ko{ background:#fef2f2; border-color:#fecaca; }
.cy-dt-i-ko b{ color:#b91c1c; }
.cy-dt-i-ok{ background:#f0fdf4; border-color:#bbf7d0; }
.cy-dt-i-ok b{ color:#166534; }
.cy-dt-ctrl{ font-size:13px; color:#475569; background:#f8fafc;
  border-radius:9px; padding:9px 12px; margin:10px 0 14px; }

.cy-fx-faux{ color:#b91c1c; }
.cy-fx-vrai{ color:#166534; font-weight:700; }
.cy-fx-opts{ display:flex; flex-direction:column; gap:8px; margin:10px 0; }

@media (max-width:640px){
  .cy-dt-duo{ grid-template-columns:1fr; }
  .cy-dt-ind{ grid-template-columns:1fr; }
  .cy-dl-t{ font-size:12.5px; }
}
/* La remarque secondaire d'un retraitement : discrète, sous l'essentiel.
   ⚠️ Elle ne doit PAS ressembler à un encadré d'avertissement — c'est une
   note de bas de page, pas le message principal. */
.cy-ret-note{font-size:12.5px;color:#64748b;margin:6px 0 12px;line-height:1.5}

/* ==================================================================
   « La machine à trésorerie »
   ------------------------------------------------------------------
   ⚠️ Préfixe `cym-`, cherché nu dans index.html avant d'être adopté
      (piège N étendu au nom de bloc) : zéro occurrence.
   ⚠️ Le curseur des jauges bouge en TRANSITION CSS, jamais au minuteur :
      un onglet en arrière-plan bride `setTimeout` et figerait la jauge.
================================================================== */
.cym-aide{background:#eff6ff;border-left:4px solid #3b82f6;border-radius:9px;
  padding:9px 13px;font-size:13.5px;color:#1e3a5f;margin:10px 0 14px}
.cym-pool{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.cym-bloc{display:flex;flex-direction:column;gap:2px;align-items:flex-start;
  background:#fff;border:2px solid #cbd5e1;border-radius:11px;padding:8px 12px;
  cursor:grab;font:inherit;text-align:left;transition:all .14s}
.cym-bloc:hover:not(:disabled){border-color:#0d9488;transform:translateY(-2px)}
.cym-bloc-on{border-color:#0d9488;background:#f0fdfa;box-shadow:0 0 0 3px rgba(13,148,136,.18)}
.cym-bloc-t{font-size:13.5px;font-weight:600;color:#1e293b}
.cym-bloc-v{font-size:12px;color:#64748b;font-variant-numeric:tabular-nums}
.cym-vide{font-size:13.5px;color:#64748b;font-style:italic}

.cym-plan{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 16px}
.cym-case{border:2px dashed #cbd5e1;border-radius:13px;padding:11px 12px;
  background:#f8fafc;min-height:104px;transition:all .16s}
.cym-case-pret{border-color:#0d9488;background:#f0fdfa}
.cym-case-t{font-weight:800;font-size:13.5px;color:#134e4a}
.cym-case-q{font-size:12px;color:#64748b;margin-bottom:5px}
.cym-case-tot{font-size:16px;font-weight:800;color:#0f172a;
  font-variant-numeric:tabular-nums;margin-bottom:6px}
.cym-case-l{display:flex;flex-wrap:wrap;gap:5px}
.cym-trou{font-size:12px;color:#94a3b8}
.cym-mis{background:#fff;border:1px solid #cbd5e1;border-radius:8px;
  padding:4px 8px;font-size:12px;color:#334155;cursor:pointer;font:inherit}
.cym-mis small{color:#64748b;font-variant-numeric:tabular-nums}
.cym-mis-ok{border-color:#16a34a;background:#f0fdf4}
.cym-mis-ko{border-color:#dc2626;background:#fef2f2}
.cym-corrs{margin:10px 0}
.cym-corr1{font-size:13.5px;line-height:1.6;margin:6px 0;color:#334155}

.cym-tb{display:flex;flex-direction:column;gap:10px;margin:14px 0}
.cym-j{border:1px solid #e2e8f0;border-radius:12px;padding:10px 13px;background:#fff}
.cym-j-tete{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.cym-j-nom{font-size:13px;font-weight:700;color:#475569}
.cym-j-v{font-size:19px;font-variant-numeric:tabular-nums}
.cym-j-axe{position:relative;height:10px;border-radius:99px;margin:8px 0 7px;
  background:linear-gradient(90deg,#fecaca,#fef3c7 45%,#fef3c7 55%,#bbf7d0)}
.cym-j-zero{position:absolute;left:50%;top:-3px;width:2px;height:16px;background:#94a3b8}
.cym-j-curs{position:absolute;top:-4px;width:16px;height:18px;margin-left:-8px;
  border-radius:5px;background:#0f172a;border:2px solid #fff;
  box-shadow:0 2px 6px rgba(0,0,0,.28);transition:left .35s ease}
.cym-j-mot{font-size:13px;line-height:1.5;color:#334155}
.cym-j-aide{font-size:11.5px;color:#94a3b8;margin-top:3px}
.cym-j-ok .cym-j-v{color:#166534}
.cym-j-ok{border-color:#bbf7d0;background:#f0fdf4}
.cym-j-moyen .cym-j-v{color:#a16207}
.cym-j-moyen{border-color:#fde68a;background:#fffbeb}
.cym-j-ko .cym-j-v{color:#b91c1c}
.cym-j-ko{border-color:#fecaca;background:#fef2f2}

.cym-curs{display:flex;flex-direction:column;gap:9px;margin:12px 0}
.cym-cur{display:block}
.cym-cur-n{display:flex;justify-content:space-between;font-size:13px;
  color:#475569;margin-bottom:3px}
.cym-cur-n b{font-variant-numeric:tabular-nums;color:#0f172a}
.cym-cur input{width:100%;accent-color:#0d9488}
.cym-etat{font-size:14px;font-weight:700;color:#64748b;margin:10px 0;
  padding:9px 13px;border-radius:10px;background:#f1f5f9}
.cym-etat-ok{color:#166534;background:#f0fdf4}
.cym-aide-b{background:#fffbeb;border:1px solid #fcd34d;border-radius:9px;
  padding:7px 12px;font-size:13px;color:#7c2d12;cursor:pointer;font:inherit}
.cym-aide-t{font-size:13.5px;color:#7c2d12;background:#fffbeb;border-radius:9px;
  padding:9px 13px;margin:8px 0}
.cym-why{font-size:14px;line-height:1.65;color:#134e4a;background:#f0fdfa;
  border-left:4px solid #0d9488;border-radius:9px;padding:11px 14px;margin:10px 0}
.cym-reset{display:block;margin:12px 0 0;background:none;border:none;
  font-size:12.5px;color:#64748b;cursor:pointer;text-decoration:underline;font:inherit}

@media (max-width:640px){
  .cym-plan{grid-template-columns:1fr}
  .cym-j-v{font-size:17px}
}
@media (prefers-reduced-motion:reduce){
  .cym-j-curs,.cym-bloc,.cym-case{transition:none}
}
.cym-eq{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:baseline;
  background:#f8fafc;border-radius:10px;padding:9px 13px;margin:0 0 12px;
  font-size:13px;color:#475569}
.cym-eq b{font-variant-numeric:tabular-nums;color:#0f172a}
.cym-eq-x{flex:1 1 100%;color:#134e4a}
/* ⚠️ Le besoin en fonds de roulement se lit à l'envers des deux autres :
   plus il est élevé, plus il pèse. Son axe porte donc le dégradé inverse,
   sans quoi la couleur contredirait le verdict écrit juste en dessous. */
.cym-j-axe-inv{background:linear-gradient(90deg,#bbf7d0,#fef3c7 45%,#fef3c7 55%,#fecaca)}

/* ==== msdgn-cycles : fin des styles ==== */
/* ==== etlv-grammaire : styles ==== */
/* ============================================================
   ETLV 1ʳᵉ — Grammar at work
   ------------------------------------------------------------
   ⚠️ LE PRÉFIXE A ÉTÉ CHERCHÉ NU DANS index.html AVANT D'ÊTRE
   ADOPTÉ (§7.58) : `.gw` et `.gw-*` n'existaient nulle part, et
   `GW_*` non plus côté JavaScript. C'est le contrôle qui a
   manqué au lot « secteurs », dont la classe racine `mg`
   heurtait une règle vieille de plusieurs mois.

   ⚠️ Aucun modificateur n'est écrit nu (piège N) : `.gw-b-ok`,
   `.gw-corr-ko`, jamais `.ok` ni `.ko`.
============================================================ */

.gw{ --gw-bleu:#0891b2; --gw-vert:#15803d; --gw-orange:#c2410c;
     --gw-clair:#ecfeff; --gw-bord:#a5f3fc; }

.gw-h{ font-size:17px; margin:16px 0 10px; }
.gw .gw-h{ color:var(--gw-bleu,#0891b2); }
.gw-pas{ font-size:12px; opacity:.6; margin:10px 0 8px; }
.gw-enonce{ font-size:15.5px; line-height:1.6; margin:0 0 12px; }
.gw-invite{ font-size:13.5px; opacity:.75; margin:12px 0 8px; }

/* --- les trois cases, le fil rouge du lot --- */
.gw-cases{ display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:10px; margin:6px 0 16px; }
.gw-case{ border:1px solid #e2e8f0; border-radius:13px; padding:10px 13px;
  background:#f8fafc; text-align:left; }
.gw-case-t{ font-weight:800; font-size:14.5px; margin-bottom:4px; }
.gw-case-q{ font-size:12.5px; opacity:.75; line-height:1.45; }
.gw-case-f{ font-size:12.5px; font-weight:700; margin-top:5px; }
.gw-case-x{ font-size:12.5px; margin-top:5px; opacity:.8; }
.gw-case-now{ background:#ecfeff; border-color:#a5f3fc; }
.gw-case-now .gw-case-t, .gw-case-now .gw-case-f{ color:#0e7490; }
.gw-case-every{ background:#f0fdf4; border-color:#bbf7d0; }
.gw-case-every .gw-case-t, .gw-case-every .gw-case-f{ color:#15803d; }
.gw-case-before{ background:#fff7ed; border-color:#fed7aa; }
.gw-case-before .gw-case-t, .gw-case-before .gw-case-f{ color:#c2410c; }

/* --- une phrase anglaise --- */
.gw-phrase{ margin:12px 0; text-align:left; }
.gw-phrase-gros{ font-size:17px; line-height:1.55; background:#fff;
  border:1px solid #e2e8f0; border-left:4px solid var(--gw-bleu,#0891b2);
  border-radius:12px; padding:13px 16px; }

/* --- les boutons de choix --- */
.gw-boutons{ display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 6px;
  justify-content:center; }
.gw-b{ border:2px solid #e2e8f0; background:#fff; border-radius:12px;
  padding:11px 18px; font-size:14.5px; font-weight:700; cursor:pointer;
  font-family:inherit; color:#2d2748; transition:transform .12s ease; }
.gw-b:not(:disabled):hover{ transform:translateY(-2px); }
.gw-b-now{ border-color:#a5f3fc; color:#0e7490; }
.gw-b-every{ border-color:#bbf7d0; color:#15803d; }
.gw-b-before{ border-color:#fed7aa; color:#c2410c; }
.gw-b-mot{ font-family:ui-monospace,Menlo,Consolas,monospace; font-size:15px; }
.gw-b-ok{ background:#dcfce7; border-color:#16a34a; color:#14532d; }
.gw-b-ko{ background:#fee2e2; border-color:#dc2626; color:#7f1d1d; }

/* --- la correction --- */
.gw-corr{ border-radius:12px; padding:11px 15px; margin:12px 0;
  font-size:14px; line-height:1.6; text-align:left; }
.gw-corr-ok{ background:#f0fdf4; border:1px solid #bbf7d0; color:#14532d; }
.gw-corr-ko{ background:#fef2f2; border:1px solid #fecaca; color:#7f1d1d; }
.gw-lecon{ background:#ecfeff; border:1px solid #a5f3fc; border-radius:12px;
  padding:13px 16px; font-size:14.5px; line-height:1.65; text-align:left; }

/* --- le texte à trous --- */
.gw-texte{ text-align:left; }
.gw-texte-t{ font-size:15px; margin:0 0 10px; color:var(--gw-bleu,#0891b2); }
.gw-para{ font-size:16px; line-height:2.1; margin:0 0 10px; }
.gw-para-fr{ font-size:14px; line-height:1.6; opacity:.75; font-style:italic;
  margin:0 0 12px; }
.gw-trou{ display:inline-flex; gap:5px; margin:0 4px; vertical-align:middle; }
.gw-t{ border:2px dashed #cbd5e1; background:#f8fafc; border-radius:9px;
  padding:4px 10px; font-size:14px; font-family:inherit; cursor:pointer;
  color:#2d2748; }
.gw-t-ok{ background:#dcfce7; border-style:solid; border-color:#16a34a; color:#14532d; }
.gw-t-ko{ background:#fee2e2; border-style:solid; border-color:#dc2626; color:#7f1d1d; }
.gw-fr{ background:#f1f5f9; border:none; border-radius:9px; padding:5px 11px;
  font-size:12.5px; font-family:inherit; cursor:pointer; color:#475569; }

/* --- la frise --- */
.gw-frise{ text-align:left; }
.gw-frise-faite{ margin:12px 0 16px; padding-left:20px; }
.gw-frise-faite li{ margin-bottom:12px; }
.gw-an{ display:inline-block; background:#fff7ed; color:#c2410c;
  border:1px solid #fed7aa; border-radius:8px; padding:2px 9px;
  font-size:13px; margin-bottom:4px; }
.gw-why{ display:block; font-size:12.5px; opacity:.7; line-height:1.5; }
.gw-frise-reste{ display:flex; flex-direction:column; gap:8px; }
.gw-carte{ border:1px solid #e2e8f0; background:#fff; border-radius:11px;
  padding:11px 15px; font-size:14.5px; line-height:1.5; text-align:left;
  font-family:inherit; color:#2d2748; cursor:pointer; }
.gw-carte:hover{ border-color:#a5f3fc; background:#ecfeff; }
.gw-carte-ko{ border-color:#dc2626; background:#fef2f2; }

.gw-aide{ background:#fef3c7; border:1px solid #fcd34d; border-radius:10px;
  padding:8px 14px; font-size:13.5px; font-family:inherit; cursor:pointer;
  color:#92400e; margin:10px 0; }

/* --- la conjugaison --- */
.gw-conj{ text-align:left; }
.gw-conj-p{ font-size:17px; line-height:1.7; background:#fff;
  border:1px solid #e2e8f0; border-radius:12px; padding:13px 16px; margin:10px 0; }
.gw-badge{ display:inline-block; border-radius:7px; padding:2px 8px;
  font-size:11.5px; font-weight:700; margin-right:7px; }
.gw-badge-reg{ background:#dcfce7; color:#14532d; }
.gw-badge-irr{ background:#fef3c7; color:#92400e; }

/* --- Then and now --- */
.gw-duo{ text-align:left; }
.gw-duo-tete{ display:flex; gap:13px; align-items:center; margin:10px 0 12px; }
.gw-duo-img{ flex:0 0 92px; width:92px; height:66px; object-fit:cover;
  border-radius:11px; }
.gw-duo-nom{ display:block; font-size:17px; }
.gw-duo-pays{ display:block; font-size:12.5px; opacity:.7; }
.gw-duo-etiq{ display:inline-block; background:#f1f5f9; border-radius:9px;
  padding:5px 12px; font-size:13px; font-weight:700; margin-bottom:8px; }
.gw-duo-fr{ font-size:13.5px; opacity:.75; font-style:italic; line-height:1.6;
  margin:12px 0 0; }

@media(max-width:640px){
  .gw-phrase-gros{ font-size:15.5px; padding:11px 13px; }
  .gw-para{ font-size:15px; line-height:2.3; }
  .gw-conj-p{ font-size:15.5px; }
  .gw-b{ padding:10px 14px; font-size:13.5px; }
  .gw-duo-img{ flex:0 0 70px; width:70px; height:52px; }
}

/* ==================================================================
   Comparatifs et superlatifs — les deux écrans neufs (10/09/2026)
   ------------------------------------------------------------------
   ⚠️ Préfixe `gwc-`, cherché nu dans index.html avant d'être adopté
      (piège N) : zéro déclaration.
================================================================== */
.gwc-carte{background:#fff;border:2px solid #cbd5e1;border-radius:14px;
  padding:18px 16px;margin:12px 0;text-align:center;font-size:24px;
  font-weight:800;color:#1e293b;letter-spacing:.01em}
.gwc-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 12px}
.gwc-col{display:flex;flex-direction:column;gap:3px;align-items:center;
  background:#f8fafc;border:2px solid #cbd5e1;border-radius:13px;
  padding:13px 10px;cursor:pointer;font:inherit;transition:all .15s}
.gwc-col:hover:not(:disabled){border-color:#1d4ed8;transform:translateY(-2px)}
.gwc-col b{font-size:16px;color:#1e3a8a}
.gwc-col span{font-size:12.5px;color:#64748b}
.gwc-col-ok{border-color:#16a34a;background:#f0fdf4}
.gwc-col-ko{border-color:#dc2626;background:#fef2f2}

.gwc-duo{display:flex;align-items:center;justify-content:center;gap:12px;
  flex-wrap:wrap;margin:10px 0 12px;text-align:center}
.gwc-duo-a,.gwc-duo-b{font-size:17px;font-weight:800;color:#1e3a8a;
  background:#eff6ff;border-radius:10px;padding:8px 14px}
.gwc-duo-vs{font-size:13px;font-weight:700;color:#94a3b8;text-transform:uppercase}
.gwc-fait{background:#fffbeb;border:1px solid #fcd34d;border-radius:11px;
  padding:11px 14px;font-size:14px;color:#7c2d12;line-height:1.55;margin:0 0 10px}
.gwc-adj{font-size:13px;color:#475569;margin:0 0 10px;text-align:center}
.gwc-adj b{color:#1d4ed8;font-size:15px}

@media (max-width:640px){
  .gwc-cols{grid-template-columns:1fr}
  .gwc-carte{font-size:21px}
  .gwc-duo-a,.gwc-duo-b{font-size:15.5px}
}

/* ==== etlv-grammaire : fin des styles ==== */











/* ==== management-pouvoir : styles ==== */
/* ==================================================================
   Le lot « pouvoir » — Management 1ʳᵉ et SDGN 1ʳᵉ
   ------------------------------------------------------------------
   ⚠️ PRÉFIXE `mp-` PARTOUT, et il a été cherché NU dans index.html
      avant d'être adopté (§7.58) : zéro déclaration, aucune collision.
   ⚠️ AUCUNE `var()` SANS VALEUR DE REPLI : une variable non résolue
      rend la déclaration entière invalide, donc la bordure disparaît
      au lieu de devenir grise (§7.58).
   ⚠️ LE TABLEAU DES QUATRE FORMES DÉFILE DANS SON CADRE : en 375 px,
      cinq colonnes ne tiennent pas, et c'est la page entière qui
      déborderait.
================================================================== */

.mp{ --mp-vio:#7c3aed; --mp-bord:#e6e1f3; --mp-fond:#faf9ff; --mp-encre:#1a1430; }

/* Les conteneurs d'écran. Ils ne portent qu'un rythme vertical, mais
   ils existent : une classe posée dans le rendu et absente de la
   feuille est une intention qu'on ne voit nulle part. */
.mp-chantier, .mp-effort, .mp-urne, .mp-front, .mp-paliers,
.mp-assemblee, .mp-volet{ margin:0 0 4px; }

.mp-h{ font-size:17px; font-weight:800; color:#312e81; margin:0 0 8px; }
.mp-txt{ font-size:15px; line-height:1.55; color:#2b2545; margin:0 0 12px; }
.mp-aide{ font-size:12.5px; color:#6b6485; line-height:1.5; margin:8px 0 0; }
.mp-sem{ font-size:12px; font-weight:800; color:#7c3aed; text-transform:uppercase;
  letter-spacing:.04em; margin:0 0 6px; }

.mp-maison{ background:#f5f3ff; border:1px solid #ddd6fe; border-radius:12px;
  padding:11px 14px; margin:0 0 14px; }
.mp-maison > b{ display:block; font-size:15px; color:#312e81; }
.mp-maison > span{ display:block; font-size:12.5px; color:#6d28d9; margin:2px 0 6px; }
.mp-maison > p{ font-size:14px; color:#2b2545; margin:0; line-height:1.5; }

/* --- les réglages : curseur et bascule ---------------------------- */
.mp-reglages{ display:flex; flex-wrap:wrap; gap:14px; align-items:flex-end; margin:0 0 14px; }
.mp-curseur{ flex:1 1 260px; }
.mp-curseur label{ display:block; font-size:14px; color:#2b2545; margin-bottom:6px; }
.mp-curseur label b{ color:#7c3aed; font-size:16px; }
.mp-curseur input[type=range]{ width:100%; accent-color:#7c3aed; }
.mp-bascule{ display:flex; gap:6px; }
.mp-btn{ font:inherit; font-size:13.5px; font-weight:700; cursor:pointer;
  background:#fff; color:#4c1d95; border:1px solid #ddd6fe; border-radius:10px;
  padding:8px 12px; }
.mp-btn.on{ background:#7c3aed; color:#fff; border-color:#7c3aed; }

/* --- le tableau de résultats -------------------------------------- */
.mp-tableau{ background:#fff; border:1px solid #e6e1f3; border-radius:12px;
  padding:6px 14px; margin:0 0 14px; }
.mp-tab-l{ display:flex; justify-content:space-between; align-items:baseline; gap:12px;
  padding:7px 0; border-bottom:1px dotted #e6e1f3; font-size:14px; color:#2b2545; }
.mp-tab-l:last-child{ border-bottom:none; }
.mp-tab-l b{ color:#312e81; white-space:nowrap; }
.mp-tab-l b.mp-gros{ font-size:22px; color:#7c3aed; }

/* --- la frise : tous les réglages à la même échelle ---------------- */
.mp-frise{ margin:0 0 14px; }
.mp-frise > b{ display:block; font-size:12.5px; color:#6b6485; margin-bottom:6px; }
.mp-frise-b{ display:flex; align-items:flex-end; gap:3px; height:90px;
  background:#faf9ff; border:1px solid #e6e1f3; border-radius:10px; padding:6px; }
.mp-bar{ flex:1; background:#c4b5fd; border-radius:3px 3px 0 0; cursor:pointer;
  transition:background .15s; }
.mp-bar:hover{ background:#a78bfa; }
.mp-bar.on{ background:#7c3aed; }

/* --- les défis ---------------------------------------------------- */
.mp-defis{ margin:0 0 14px; }
.mp-defi{ background:#fff; border:1px solid #e6e1f3; border-radius:10px;
  padding:9px 12px; margin-bottom:7px; }
.mp-defi.ok{ background:#f0fdf4; border-color:#bbf7d0; }
.mp-defi b{ display:block; font-size:14px; color:#2b2545; }
.mp-defi span{ display:block; font-size:12.5px; color:#6b6485; margin-top:3px; }

/* --- les jauges ---------------------------------------------------- */
.mp-jauge-l{ display:flex; align-items:center; gap:10px; margin:0 0 8px; font-size:13.5px; }
.mp-jauge-l > span:first-child{ flex:0 0 auto; color:#2b2545; }
.mp-jauge-piste{ flex:1 1 auto; height:12px; background:#ede9fe; border-radius:99px;
  overflow:hidden; min-width:60px; }
.mp-jauge-plein{ display:block; height:100%; background:#7c3aed; border-radius:99px;
  transition:width .35s ease; }
.mp-jauge-l b, .mp-jauge-l i{ flex:0 0 auto; font-style:normal; color:#312e81;
  white-space:nowrap; font-size:13px; }

/* --- l'équipe du projet de groupe ---------------------------------- */
.mp-equipe{ background:#fff; border:1px solid #e6e1f3; border-radius:12px;
  padding:10px 14px; margin:0 0 14px; }
.mp-equipe > b{ display:block; font-size:12.5px; color:#6b6485; margin-bottom:6px; }
.mp-equipe-l{ display:flex; justify-content:space-between; align-items:center;
  padding:4px 0; font-size:14px; color:#2b2545; }
.mp-eff{ font-style:normal; font-weight:800; width:26px; height:26px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center; font-size:13px; }
.mp-eff-0{ background:#fee2e2; color:#b91c1c; }
.mp-eff-1{ background:#fef3c7; color:#92400e; }
.mp-eff-2{ background:#dcfce7; color:#15803d; }
.mp-portraits{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 14px; }
.mp-portrait{ flex:1 1 150px; background:#faf9ff; border:1px solid #e6e1f3;
  border-radius:10px; padding:8px 11px; }
.mp-portrait b{ display:block; font-size:13.5px; color:#312e81; }
.mp-portrait span{ display:block; font-size:12.5px; color:#6b6485; line-height:1.45; }

/* --- les boutons de choix ------------------------------------------ */
.mp-choix{ display:flex; flex-wrap:wrap; gap:9px; }
.mp-choix-b{ flex:1 1 180px; text-align:left; font:inherit; cursor:pointer;
  background:#fff; border:1.5px solid #ddd6fe; border-radius:12px; padding:11px 14px; }
.mp-choix-b:hover{ border-color:#7c3aed; background:#faf9ff; }
.mp-choix-b b{ display:block; font-size:14.5px; color:#312e81; }
.mp-choix-b span{ display:block; font-size:12.5px; color:#6b6485; margin-top:3px; }

/* --- les écrans de règles et de suite ------------------------------ */
.mp-regles{ background:#f5f3ff; border:1px solid #ddd6fe; border-radius:14px;
  padding:14px 16px; margin:0 0 14px; }
.mp-regles h3{ margin:0 0 8px; font-size:16px; color:#312e81; }
.mp-regle{ background:#fff; border:1px solid #e6e1f3; border-radius:10px;
  padding:9px 12px; margin:8px 0; }
.mp-regle b{ display:block; font-size:14px; color:#6d28d9; }
.mp-regle span{ display:block; font-size:13.5px; color:#2b2545; line-height:1.5; }
.mp-apres-p{ font-size:13.5px; color:#4c1d95; margin:10px 0 0; }
.mp-suite{ background:#fff; border:1px solid #e6e1f3; border-radius:12px;
  padding:12px 14px; margin-top:12px; }
.mp-suite p{ font-size:14px; line-height:1.55; color:#2b2545; margin:0 0 10px; }
.mp-btns{ display:flex; flex-wrap:wrap; gap:8px; }
.mp-apres{ background:#f5f3ff; border:1px solid #ddd6fe; border-radius:14px;
  padding:14px 16px; margin:0 0 14px; }
.mp-apres h3{ margin:0 0 8px; font-size:16px; color:#312e81; }
.mp-apres p{ font-size:14.5px; line-height:1.6; color:#2b2545; margin:0 0 8px; }
.mp-retenir{ background:#f5f3ff; border:1px solid #ddd6fe; border-radius:12px;
  padding:11px 14px; text-align:left; }
.mp-retenir > b{ display:block; color:#6d28d9; margin-bottom:4px; }
.mp-retenir p{ font-size:13.5px; line-height:1.55; color:#2b2545; margin:0; }
.mp-retenir-l{ font-size:13px; color:#6d28d9; background:#f5f3ff; border-radius:8px;
  padding:7px 11px; margin:10px 0 0; }
.mp-compare2, .mp-compare3{ display:flex; flex-wrap:wrap; gap:10px; margin:0 0 14px; }
.mp-compare-c{ flex:1 1 140px; background:#fff; border:1px solid #e6e1f3;
  border-radius:12px; padding:11px 13px; text-align:center; }
.mp-compare-c.ok{ background:#f0fdf4; border-color:#bbf7d0; }
.mp-compare-c b{ display:block; font-size:12.5px; color:#6b6485; }
.mp-compare-c i{ display:block; font-style:normal; font-size:16px; font-weight:800;
  color:#312e81; margin-top:4px; }

/* --- l'urne -------------------------------------------------------- */
.mp-bulletins{ background:#fff; border:1px solid #e6e1f3; border-radius:12px;
  padding:10px 14px; margin:0 0 14px; }
.mp-bulletins > b{ display:block; font-size:12.5px; color:#6b6485; margin-bottom:8px; }
.mp-paquet{ border-bottom:1px dotted #e6e1f3; padding:8px 0; }
.mp-paquet:last-child{ border-bottom:none; }
.mp-paquet-n{ display:inline-block; font-weight:800; font-size:13.5px; color:#7c3aed; }
.mp-paquet-o{ display:block; margin:4px 0; }
.mp-paquet-o i{ display:block; font-style:normal; font-size:13.5px; color:#2b2545; }
.mp-paquet-q{ display:block; font-size:12.5px; color:#6b6485; }
.mp-paquet-q em{ font-style:normal; color:#7c3aed; }
.mp-regle-titre{ background:#f5f3ff; border:1px solid #ddd6fe; border-radius:12px;
  padding:10px 14px; margin:0 0 12px; }
.mp-regle-titre b{ display:block; font-size:14.5px; color:#312e81; }
.mp-regle-titre p{ font-size:13.5px; color:#2b2545; margin:4px 0 0; line-height:1.5; }
.mp-compte{ background:#fff; border:1px solid #e6e1f3; border-radius:12px;
  padding:8px 14px; margin:0 0 12px; }
.mp-compte-l{ display:flex; justify-content:space-between; gap:12px; padding:5px 0;
  font-size:14px; color:#2b2545; }
.mp-compte-l b{ color:#312e81; white-space:nowrap; }
.mp-second{ margin-top:8px; border-top:1px dashed #ddd6fe; padding-top:8px; }
.mp-second > b{ display:block; font-size:13px; color:#6d28d9; margin-bottom:4px; }

/* --- la frontière : les quatre repères ----------------------------- */
.mp-reperes{ background:#fff; border:1px solid #e6e1f3; border-radius:12px;
  padding:11px 14px; margin:0 0 14px; }
.mp-reperes > b{ display:block; font-size:12.5px; color:#6b6485; margin-bottom:8px; }
.mp-repere{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:7px; }
.mp-repere-n{ flex:0 0 46%; font-size:13.5px; color:#2b2545; }
.mp-repere-piste{ flex:1 1 auto; height:11px; background:#ede9fe; border-radius:99px;
  overflow:hidden; }
.mp-repere-plein{ display:block; height:100%; background:#7c3aed; border-radius:99px;
  transition:width .35s ease; }
.mp-arb{ background:#faf9ff; border:1px solid #e6e1f3; border-radius:14px;
  padding:13px 15px; }

/* --- les paliers --------------------------------------------------- */
.mp-trois{ display:flex; flex-wrap:wrap; gap:10px; margin:14px 0; }
.mp-panneau{ flex:1 1 220px; min-width:0; background:#fff; border:1px solid #e6e1f3;
  border-radius:12px; padding:11px 13px; }
.mp-panneau > b{ display:block; font-size:13px; color:#6d28d9; margin-bottom:7px; }
.mp-panneau p{ font-size:13.5px; color:#2b2545; margin:3px 0; line-height:1.45; }
.mp-obl{ border-bottom:1px dotted #e6e1f3; padding-bottom:6px; margin-bottom:6px; }
.mp-obl:last-child{ border-bottom:none; }
.mp-obl i{ display:block; font-style:normal; font-size:12px; font-weight:800;
  color:#7c3aed; margin-bottom:2px; }
.mp-jour-l{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-bottom:7px; font-size:13px; }
.mp-jour-l > span:first-child{ flex:0 0 48%; color:#2b2545; }
.mp-jour-l i{ font-style:normal; color:#312e81; font-weight:700; flex:0 0 auto; }

/* --- l'assemblée des associés -------------------------------------- */
.mp-regle-l{ font-size:14px; color:#4c1d95; background:#f5f3ff; border-radius:8px;
  padding:8px 12px; margin:0 0 12px; }
.mp-assoc{ display:flex; flex-wrap:wrap; gap:9px; margin:0 0 12px; }
.mp-assoc-c{ flex:1 1 200px; text-align:left; font:inherit; cursor:pointer;
  background:#fff; border:1.5px solid #e6e1f3; border-radius:12px; padding:10px 13px; }
.mp-assoc-c:hover:not(:disabled){ border-color:#7c3aed; }
.mp-assoc-c.on{ border-color:#7c3aed; background:#f5f3ff; }
.mp-assoc-c.fige{ background:#ede9fe; border-color:#c4b5fd; cursor:default; }
.mp-assoc-c:disabled{ opacity:.75; cursor:not-allowed; }
.mp-assoc-c b{ display:block; font-size:14.5px; color:#312e81; }
.mp-assoc-c i{ display:block; font-style:normal; font-size:13px; font-weight:800;
  color:#7c3aed; margin:2px 0 4px; }
.mp-assoc-c span{ display:block; font-size:12.5px; color:#6b6485; line-height:1.45; }
.mp-assoc-c em{ display:block; font-style:normal; font-size:12.5px; color:#b45309;
  margin-top:5px; line-height:1.45; }
.mp-compteur{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap;
  background:#fff; border:1.5px solid #e6e1f3; border-radius:12px;
  padding:10px 14px; margin:0 0 12px; }
.mp-compteur.ok{ background:#f0fdf4; border-color:#86efac; }
.mp-compteur span{ font-size:13px; color:#6b6485; }
.mp-compteur b{ font-size:20px; color:#312e81; }
.mp-compteur i{ font-style:normal; font-size:13px; color:#6d28d9; }
.mp-prix{ background:#fffbeb; border:1px solid #fde68a; border-radius:10px;
  padding:9px 12px; margin:0 0 10px; }
.mp-prix > b{ display:block; font-size:13px; color:#92400e; margin-bottom:4px; }
.mp-prix p{ font-size:13.5px; color:#2b2545; margin:3px 0; line-height:1.5; }
.mp-prix i{ font-style:normal; color:#92400e; }

/* --- les volets : la même situation, plusieurs formes -------------- */
.mp-forme{ background:#312e81; color:#fff; border-radius:12px 12px 0 0;
  padding:10px 14px; }
.mp-forme b{ display:block; font-size:15.5px; }
.mp-forme span{ display:block; font-size:12.5px; opacity:.85; }
.mp-volet .mp-txt{ background:#faf9ff; border:1px solid #e6e1f3; border-top:none;
  border-radius:0 0 12px 12px; padding:12px 14px; margin-bottom:14px; }
.mp-degat{ display:flex; align-items:baseline; gap:10px; flex-wrap:wrap;
  background:#fef2f2; border:1px solid #fecaca; border-radius:12px;
  padding:10px 14px; margin:0 0 14px; }
.mp-degat b{ font-size:16px; color:#b91c1c; }
.mp-degat span{ font-size:13.5px; color:#7f1d1d; }

/* --- le tableau des quatre formes ---------------------------------- */
.mp-grille-cadre{ overflow-x:auto; -webkit-overflow-scrolling:touch;
  border:1px solid #e6e1f3; border-radius:12px; margin:0 0 14px; }
.mp-grille{ border-collapse:collapse; width:100%; min-width:620px; background:#fff; }
.mp-grille th, .mp-grille td{ border:1px solid #e6e1f3; padding:8px 10px;
  font-size:13px; text-align:left; vertical-align:top; line-height:1.45; }
.mp-grille thead th{ background:#f5f3ff; color:#312e81; font-size:13.5px; }
.mp-grille tbody th{ background:#faf9ff; color:#6d28d9; width:150px; }
.mp-grille td{ color:#2b2545; }

/* --- ce que ça coûte tous les mois --------------------------------- */
.mp-cout{ background:#fff; border:1px solid #e6e1f3; border-radius:12px;
  padding:11px 14px; margin:0 0 12px; }
.mp-cout-l{ display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:7px 0;
  border-bottom:1px dotted #e6e1f3; }
.mp-cout-l:last-child{ border-bottom:none; }
.mp-cout-n{ flex:0 0 180px; font-size:13.5px; font-weight:700; color:#312e81; }
.mp-cout-l b{ flex:0 0 auto; color:#7c3aed; font-size:14px; }
.mp-cout-l i{ flex:1 1 100%; font-style:normal; font-size:12.5px; color:#6b6485;
  line-height:1.45; }

@media (max-width:640px){
  .mp-repere-n{ flex:0 0 100%; }
  .mp-jour-l > span:first-child{ flex:0 0 100%; }
  .mp-cout-n{ flex:0 0 100%; }
  .mp-frise-b{ height:70px; }
}

/* ==== management-pouvoir : fin des styles ==== */

/* ==== simulateurs : styles ==== */
/* ⚠️ TOUTES LES COULEURS SONT LITTÉRALES, aucune `var()` héritée d'un
   bloc voisin : une `var()` non résolue rend la déclaration ENTIÈRE
   invalide, et l'élément disparaît sans la moindre erreur (§7.58).
   ⚠️ Préfixe `smu-` : cherché nu dans index.html avant de l'adopter,
   zéro occurrence (piège N).

   ⚠️ TOUT L'ÉCRAN DE PROJECTION EST EN `em`, PAS EN PIXELS. Les
   vidéoprojecteurs de classe sont souvent en 1024×768 — donc CARRÉS et
   peu définis — et parfois en 800×600. Une taille en pixels y devient
   illisible ; une taille en `vw` seule s'effondre sur un écran carré,
   peu large mais haut. La racine mêle donc les DEUX dimensions, et se
   multiplie par un zoom que le professeur règle :

       font-size: calc(clamp(10.5px, .62vw + .62vh, 19px) * var(--smu-z))

   1920×1080 → 18,6 px · 1280×720 → 12,4 px · 1024×768 → 11,1 px ·
   800×600 → 10,5 px (le plancher). Tout le reste en `em` en découle. */

/* ---------- le catalogue, dans l'espace prof ---------------------- */
/* Celui-ci reste en pixels : il vit dans la page claire du professeur,
   sur un écran d'ordinateur, pas sur un vidéoprojecteur. */
.smu-hub{ padding:4px 0 10px; }
.smu-hub-tete{ max-width:72ch; margin:0 0 16px; }
.smu-hub-tete h2{ margin:0 0 6px; font-size:22px; color:#1e293b; }
.smu-hub-tete p{ margin:0; color:#475569; font-size:14.5px; line-height:1.5; }
/* Le filtre par matière (12/11/2026) : de grosses pastilles, lisibles au
   vidéoprojecteur et assez hautes pour le doigt (44 px) sur téléphone. */
.smu-filtres{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 10px; }
.smu-filtre{ display:inline-flex; align-items:center; gap:7px; min-height:44px;
  padding:8px 16px; border-radius:999px; border:2px solid #cbd5e1; background:#fff;
  color:#1e293b; font:inherit; font-size:16px; font-weight:700; cursor:pointer; }
.smu-filtre:hover{ border-color:#E0A13A; }
.smu-filtre.on{ background:#1e293b; border-color:#1e293b; color:#fff; }
.smu-filtre-e{ font-size:20px; line-height:1; }
.smu-filtre b{ font-size:13px; font-weight:800; background:#e2e8f0; color:#334155;
  border-radius:999px; padding:2px 8px; }
.smu-filtre.on b{ background:#E0A13A; color:#1A1305; }
.smu-chercher{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 14px; }
.smu-chercher input{ flex:1 1 260px; max-width:460px; min-height:44px; padding:8px 14px;
  border:2px solid #cbd5e1; border-radius:10px; font:inherit; font-size:16px; background:#fff; color:#1e293b; }
.smu-chercher input:focus{ outline:none; border-color:#E0A13A; }
.smu-compte{ color:#475569; font-size:14.5px; font-weight:700; }
.smu-rien{ color:#475569; font-size:15px; }
@media (max-width:640px){
  .smu-filtres{ gap:6px; }
  .smu-filtre{ flex:0 0 auto; font-size:15px; padding:8px 13px; }
  .smu-chercher input{ max-width:none; }
}

.smu-cartes{
  display:grid; gap:14px;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
}
.smu-carte{
  position:relative; display:flex; flex-direction:column; gap:7px;
  background:#171D26; border:1px solid #2C3644; border-radius:14px;
  padding:0 0 13px; overflow:hidden; color:#E8EDF4;
}
.smu-carte-img{ width:100%; aspect-ratio:16/6; object-fit:cover; display:block; margin-bottom:4px; }
.smu-carte-code{
  position:absolute; top:9px; right:9px;
  font-family:ui-monospace,Consolas,monospace; font-size:11px; font-weight:700;
  color:#E8EDF4; background:rgba(14,17,22,.72); border:1px solid #2C3644;
  border-radius:5px; padding:2px 6px; letter-spacing:.04em;
}
.smu-carte .smu-etat{
  margin:0 15px; font-size:10.5px; font-weight:800; letter-spacing:.14em;
  text-transform:uppercase; color:#97A3B4;
}
.smu-carte h3{ margin:0 15px; font-size:18px; line-height:1.15; color:#E8EDF4; }
.smu-carte p{ margin:0 15px; font-size:13.5px; line-height:1.42; color:#B7C1CF; }
.smu-leviers-l{
  margin:auto 15px 0; padding-top:9px; border-top:1px solid #2C3644;
  font-size:11.5px; line-height:1.5; color:#97A3B4;
}
.smu-leviers-l b{ color:#E0A13A; font-weight:700; }
.smu-leviers-l span{ display:block; margin-top:3px; color:#7E8A9A; }
.smu-carte-bas{ display:flex; gap:8px; margin:11px 15px 0; flex-wrap:wrap; }
.smu-carte.smu-vive{ border-color:#7A5A20; }
.smu-carte.smu-vive .smu-etat{ color:#E0A13A; }
.smu-carte.smu-aposer{ opacity:.72; }
.smu-carte.smu-aposer .smu-carte-img{ filter:grayscale(.6); }

/* ---------- les deux boutons partagés ----------------------------- */
.smu-primaire, .smu-plat{
  font:inherit; cursor:pointer; border-radius:.5em; padding:.45em .85em;
  font-weight:700; letter-spacing:.02em; white-space:nowrap;
  transition:background .18s, border-color .18s, color .18s;
}
.smu-hub .smu-primaire, .smu-hub .smu-plat{ font-size:13.5px; border-radius:9px; padding:8px 15px; }
.smu-primaire{ background:#E0A13A; border:1px solid #E0A13A; color:#1A1305; }
.smu-primaire:hover{ background:#EEB050; border-color:#EEB050; }
.smu-primaire[disabled]{ opacity:.35; cursor:default; }
.smu-plat{ background:transparent; border:1px solid #2C3644; color:#C6D0DC; }
.smu-plat:hover{ border-color:#E0A13A; color:#E0A13A; }

/* ---------- l'écran de projection --------------------------------- */
/* ⚠️ Posé sur le body en `position:fixed` (piège M) : l'espace prof a
   ses propres conteneurs à overflow. */
.smu-ecran{
  --smu-z:1;
  position:fixed; inset:0; z-index:9600;
  display:flex; flex-direction:column;
  background:#0E1116; color:#E8EDF4;
  font-family:inherit; -webkit-font-smoothing:antialiased;
  font-size:calc(clamp(10.5px, .62vw + .62vh, 19px) * var(--smu-z));
  line-height:1.35;
}
.smu-ecran button{ font:inherit; color:inherit; background:none; border:none; cursor:pointer; }
.smu-ecran button:focus-visible, .smu-ecran input:focus-visible{
  outline:2px solid #E0A13A; outline-offset:2px;
}
.smu-ecran .smu-somme, .smu-ecran .smu-val, .smu-ecran .smu-m,
.smu-ecran .smu-q, .smu-ecran .smu-num, .smu-ecran .smu-creance-t em,
.smu-ecran .smu-levier span, .smu-ecran kbd{
  font-family:ui-monospace,"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font-variant-numeric:tabular-nums;
}

/* la barre du haut */
.smu-haut{
  flex:0 0 auto; display:flex; align-items:center; gap:.9em; flex-wrap:wrap;
  padding:.5em .9em; background:#171D26; border-bottom:1px solid #2C3644;
}
.smu-marque{ display:flex; align-items:baseline; gap:.5em; flex:0 0 auto; }
.smu-marque b{ font-size:1.35em; font-weight:800; letter-spacing:-.01em; }
.smu-marque i{
  font-style:normal; font-size:.7em; letter-spacing:.14em;
  text-transform:uppercase; color:#97A3B4; font-weight:700;
}
.smu-leviers{ display:flex; align-items:center; gap:.8em; margin-left:auto; flex-wrap:wrap; }
.smu-levier{ display:flex; flex-direction:column; width:10em; min-width:8em; }
.smu-levier label{
  display:flex; justify-content:space-between; gap:.5em;
  font-size:.62em; font-weight:800; letter-spacing:.08em;
  text-transform:uppercase; color:#97A3B4;
}
.smu-levier label span{ color:#E0A13A; letter-spacing:0; text-transform:none; }
.smu-levier input[type=range]{
  -webkit-appearance:none; appearance:none;
  width:100%; height:4px; border-radius:2px; margin:.45em 0 0;
}
.smu-levier input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none; width:15px; height:15px; border-radius:50%;
  background:#E8EDF4; border:3px solid #E0A13A; cursor:grab;
}
.smu-levier input[type=range]::-moz-range-thumb{
  width:15px; height:15px; border-radius:50%;
  background:#E8EDF4; border:3px solid #E0A13A; cursor:grab;
}
.smu-bascule{
  display:flex; align-items:center; gap:.45em; white-space:nowrap;
  padding:.4em .75em; border:1px solid #2C3644 !important; border-radius:99em;
  font-size:.78em; font-weight:700; color:#97A3B4;
  transition:border-color .2s, color .2s, background .2s;
}
.smu-bascule .smu-voyant{
  width:.6em; height:.6em; border-radius:50%; background:#2C3644;
  transition:background .2s, box-shadow .2s;
}
.smu-bascule.smu-on{ color:#D8503C; border-color:#D8503C !important; background:rgba(216,80,60,.1); }
.smu-bascule.smu-on .smu-voyant{ background:#D8503C; box-shadow:0 0 0 .22em rgba(216,80,60,.2); }

/* Ce qui remplace les deux curseurs quand la forme ne repartit aucune
   part. Meme largeur que les deux leviers reunis (10em + .8em + 10em) :
   sans cela l'en-tete sauterait a chaque changement de forme, en pleine
   projection. */
.smu-sansparts{
  width:20.8em; margin:0; text-align:right; font-size:.72em; line-height:1.4;
  color:#97A3B4; font-style:italic;
}

/* le zoom — un vidéoprojecteur mal réglé se rattrape ici */
.smu-zoom{ display:flex; align-items:center; gap:.25em; flex:0 0 auto; }
.smu-zoom button{
  width:1.9em; height:1.9em; border:1px solid #2C3644; border-radius:.4em;
  font-size:.85em; font-weight:800; line-height:1;
  transition:border-color .2s, color .2s;
}
.smu-zoom button:hover:not([disabled]){ border-color:#E0A13A; color:#E0A13A; }
.smu-zoom button[disabled]{ opacity:.3; cursor:default; }
.smu-zoom i{
  font-style:normal; font-size:.62em; font-weight:800; letter-spacing:.07em;
  text-transform:uppercase; color:#97A3B4; min-width:3.6em; text-align:center;
}

/* le corps */
.smu-corps{ flex:1 1 auto; display:flex; min-height:0; }
.smu-registre{
  flex:0 0 auto; width:13.5em; min-width:9.5em; overflow-y:auto;
  background:#171D26; border-right:1px solid #2C3644; padding:.5em 0 .4em;
}
.smu-registre-t{
  padding:.15em .9em .4em; font-size:.62em; font-weight:800; letter-spacing:.14em;
  text-transform:uppercase; color:#97A3B4;
}
.smu-registre hr{ border:none; border-top:1px solid #2C3644; margin:.35em .9em .3em; }
/* ⚠️ LA LIGNE EST UNE `div`, PAS UN BOUTON. Elle en porte deux — choisir
   la forme, ouvrir sa fiche — et un bouton ne peut pas en contenir un
   autre : le navigateur sortirait le second du premier, et la mise en
   page casserait sans la moindre erreur. L'état actif se pose donc sur
   la ligne. */
.smu-forme-l{
  display:flex; align-items:stretch;
  border-left:3px solid transparent;
  transition:background .16s, border-color .16s;
}
.smu-forme-l:hover{ background:#1F2733; }
.smu-forme{
  display:flex; align-items:center; gap:.5em; flex:1 1 auto; min-width:0;
  text-align:left; padding:.22em .3em .22em .9em;
}
.smu-num{ width:.9em; flex:0 0 auto; font-size:.68em; color:#97A3B4; }
.smu-nom{ display:block; font-size:.92em; font-weight:700; line-height:1.12; }
.smu-sous{ display:block; font-size:.66em; color:#97A3B4; line-height:1.2; }
.smu-forme-l[data-actif="oui"]{ background:#1F2733; border-left-color:#E0A13A; }
.smu-forme-l[data-actif="oui"] .smu-nom{ color:#E0A13A; }
.smu-forme-l.smu-abrogee .smu-nom{ text-decoration:line-through; text-decoration-color:#7A5A20; }
/* l'icône qui ouvre la fiche : assez large pour être visée au doigt sur
   un tableau tactile, assez discrète pour ne pas voler le nom */
.smu-info{
  flex:0 0 auto; width:2.1em; font-size:.9em; line-height:1;
  color:#7E8A9A; transition:color .16s, background .16s;
}
.smu-info:hover{ color:#E0A13A; background:#0E1116; }

.smu-scene{
  flex:1 1 auto; min-width:0; overflow:auto;
  display:flex; flex-direction:column; gap:.7em;
  padding:.7em 1.1em;
}
.smu-tete{ display:flex; gap:.8em; align-items:stretch; }
.smu-scene-img{
  flex:0 0 auto; width:13em; aspect-ratio:16/5; object-fit:cover;
  border-radius:.5em; display:block; border:1px solid #2C3644;
}
.smu-recit{
  margin:0; align-self:center; max-width:64ch; min-width:0;
  font-size:1.08em; line-height:1.4; color:#E8EDF4;
}
.smu-recit b{ color:#E0A13A; font-weight:700; }

/* la créance, à l'échelle */
.smu-creance{ display:flex; flex-direction:column; gap:.3em; }
.smu-creance-t{
  display:flex; justify-content:space-between; align-items:baseline; gap:1em;
  font-size:.68em; font-weight:800; letter-spacing:.09em;
  text-transform:uppercase; color:#97A3B4;
}
.smu-creance-t em{
  font-style:normal; letter-spacing:0; text-transform:none;
  font-size:1.25em; color:#E8EDF4;
}
.smu-piste{
  display:flex; overflow:hidden; height:1.1em;
  border:1px solid #2C3644; border-radius:.25em; background:#1F2733;
}
.smu-piste i{ display:block; height:100%; transition:width .7s cubic-bezier(.3,.8,.3,1); }
.smu-p-regle{ background:#E0A13A; }
.smu-p-perso{ background:#D8503C; }
.smu-p-du{ background:repeating-linear-gradient(135deg,#2C3644 0 7px,#232C38 7px 14px); }

/* les deux patrimoines et le mur */
.smu-patrimoines{
  flex:1 1 auto; display:grid; align-items:stretch; gap:.7em;
  grid-template-columns:1fr 3.6em 1fr;
  min-height:8em;
}
.smu-coffre{
  display:flex; flex-direction:column; gap:.35em; overflow:hidden; min-width:0;
  background:#171D26; border:1px solid #2C3644; border-radius:.65em;
  padding:0 0 .7em;
  transition:border-color .4s, background .4s;
}
.smu-coffre-img{
  width:100%; flex:1 1 3.4em; min-height:2.4em;
  object-fit:cover; display:block; opacity:.86;
}
.smu-coffre h3{
  margin:.3em .8em 0; font-size:.74em;
  font-weight:800; letter-spacing:.11em; text-transform:uppercase; color:#97A3B4;
}
.smu-biens{
  margin:0 .8em; padding:0; list-style:none;
  display:flex; flex-wrap:wrap; gap:.25em .35em;
  font-size:.68em; color:#97A3B4; line-height:1.3;
}
.smu-biens li{ padding:.1em .4em; border:1px solid #2C3644; border-radius:.3em; background:#1F2733; }
.smu-somme{
  margin:auto .55em 0; font-weight:700; letter-spacing:-.02em;
  font-size:2.2em; line-height:1; transition:color .4s;
}
.smu-apres{ margin:0 .8em; font-size:.68em; color:#97A3B4; }
.smu-coffre.smu-entame{ border-color:#7A5A20; }
.smu-coffre.smu-touche{ border-color:#D8503C; background:rgba(216,80,60,.07); }
.smu-coffre.smu-touche .smu-somme{ color:#D8503C; }

.smu-mur{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.45em; }
.smu-brique{
  width:.95em; flex:1 1 auto; border-radius:.15em;
  background:linear-gradient(#4E9B72,#3C7A59);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.35);
  transition:opacity .5s, background .5s, transform .5s;
}
.smu-mur-mot{
  text-align:center; line-height:1.2; color:#4E9B72; transition:color .4s;
  font-size:.62em; font-weight:800; letter-spacing:.1em; text-transform:uppercase;
}
.smu-mur[data-etat="perce"] .smu-brique{
  background:linear-gradient(#D8503C 0 38%, transparent 38% 62%, #D8503C 62% 100%);
}
.smu-mur[data-etat="perce"] .smu-mur-mot{ color:#D8503C; }
.smu-mur[data-etat="absent"] .smu-brique{ opacity:.16; transform:scaleY(.12); background:#2C3644; }
.smu-mur[data-etat="absent"] .smu-mur-mot{ color:#D8503C; }

/* le verdict */
.smu-verdict{
  display:grid; gap:.15em 1.1em; align-items:center;
  grid-template-columns:minmax(0,auto) minmax(0,1fr);
  background:#171D26; border:1px solid #2C3644; border-radius:.65em;
  padding:.6em .85em;
  transition:border-color .4s, background .4s;
}
.smu-cle{
  grid-column:1; font-size:.68em; font-weight:800;
  letter-spacing:.1em; text-transform:uppercase; color:#97A3B4;
}
.smu-val{ grid-column:1; font-weight:700; line-height:1.02; color:#4E9B72; font-size:2.5em; transition:color .4s; }
.smu-dit{ grid-column:2; grid-row:1 / span 2; margin:0; max-width:56ch; font-size:1em; line-height:1.38; }
.smu-dit b{ color:#E8EDF4; font-weight:700; }
.smu-verdict.smu-touche{ border-color:#D8503C; background:rgba(216,80,60,.08); }
.smu-verdict.smu-touche .smu-val{ color:#D8503C; }
.smu-verdict.smu-attente .smu-val{ color:#97A3B4; }
.smu-verdict.smu-attente .smu-dit{ color:#97A3B4; font-style:italic; }

/* ⚠️ CE BANDEAU PREND L'ESPACE QUI RESTE. Il portait la leçon de l'écran
   en 10 px, avec 289 px de noir dessous, mesurés en 1280x720. Il est le
   dernier enfant d'une colonne flex : `flex:1` lui donne le vide, et il
   centre son contenu dedans. Quand l'écran est charge, la croissance
   vaut zéro et rien ne bouge.
   ⚠️ TAILLE EN `em`, JAMAIS EN `vh` : tout l'écran est mis à l'échelle
   par `--smu-z`, et une unité de fenêtre échapperait au zoom (§7.70). */
.smu-autrement{
  flex:1 1 auto; min-height:3.2em;
  display:flex; align-items:center; gap:.7em;
  margin:0; padding:.7em 1em;
  border-left:.28em solid #E0A13A; border-radius:0 .45em .45em 0;
  background:linear-gradient(90deg, rgba(224,161,58,.12), rgba(224,161,58,0) 72%);
  font-size:2em; line-height:1.28; color:#D9E1EC; font-weight:600;
}
.smu-autrement b{ color:#E0A13A; font-weight:800; }
.smu-au-ic{ flex:0 0 auto; font-size:1.7em; line-height:1; opacity:.92; }
.smu-au-t{ min-width:0; }
.smu-au-l{
  display:block; margin-bottom:.18em;
  font-size:.46em; font-weight:800; letter-spacing:.09em;
  text-transform:uppercase; color:#E0A13A;
}

/* la barre des jours */
.smu-bas{
  flex:0 0 auto; display:flex; align-items:center; gap:.8em; flex-wrap:wrap;
  padding:.45em .9em; background:#171D26; border-top:1px solid #2C3644;
}
/* ⚠️ Le bouton de la boîte à outils se pose en bas à GAUCHE, par-dessus
   cette barre. On lui réserve sa gouttière dès qu'elle est chargée. */
.smu-ecran.smu-avec-outils .smu-bas{ padding-left:calc(5vmin + 1.4em); }
.smu-jours{ display:flex; gap:.35em; flex:1 1 16em; min-width:0; }
.smu-jour{
  flex:1 1 0; min-width:0; text-align:left; padding:.3em .55em;
  border:1px solid #2C3644; border-radius:.45em;
  transition:border-color .2s, background .2s;
}
.smu-q{ display:block; font-size:.62em; color:#97A3B4; }
.smu-n{
  display:block; font-size:.88em; font-weight:700; line-height:1.15;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.smu-jour[aria-current="true"]{ border-color:#E0A13A; background:rgba(224,161,58,.12); }
.smu-jour[aria-current="true"] .smu-n{ color:#E0A13A; }
.smu-jour[data-passe="oui"]:not([aria-current="true"]) .smu-n{ color:#97A3B4; }
.smu-pilote{ display:flex; gap:.35em; flex:0 0 auto; }
.smu-pilote button{
  padding:.42em .8em; border:1px solid #2C3644; border-radius:.45em;
  font-weight:700; font-size:.88em; white-space:nowrap;
  transition:border-color .2s, color .2s;
}
.smu-pilote button:hover:not([disabled]){ border-color:#E0A13A; color:#E0A13A; }
.smu-pilote button[disabled]{ opacity:.34; cursor:default; }
.smu-pilote .smu-primaire{ border-color:#E0A13A; }
.smu-pilote .smu-primaire:hover:not([disabled]){ color:#1A1305; }
.smu-aide{ flex:0 0 auto; display:flex; gap:.6em; align-items:center; font-size:.66em; color:#97A3B4; }
.smu-aide kbd{ padding:.1em .35em; border:1px solid #2C3644; border-radius:.25em; background:#1F2733; }

/* la vue comparative */
.smu-compare{
  position:fixed; inset:0; z-index:9610; background:#0E1116; color:#E8EDF4;
  display:flex; flex-direction:column; gap:.6em; padding:.9em 1.3em;
  font-size:calc(clamp(10.5px, .62vw + .62vh, 19px) * var(--smu-z,1));
}
.smu-compare h2{ margin:0; font-size:1.8em; }
.smu-chapo{ margin:0; max-width:76ch; color:#97A3B4; font-size:.88em; }
.smu-grille{
  flex:1 1 auto; overflow:auto; align-content:start; display:grid; gap:.4em;
  grid-template-columns:repeat(auto-fill,minmax(16em,1fr));
}
.smu-ligne{
  display:grid; grid-template-columns:1fr auto; gap:.15em .7em; align-items:center;
  background:#171D26; border:1px solid #2C3644; border-left-width:4px;
  border-radius:.5em; padding:.4em .65em;
}
.smu-ligne.smu-sauve{ border-left-color:#4E9B72; }
.smu-ligne.smu-perd{ border-left-color:#D8503C; }
.smu-f{ font-weight:700; font-size:.94em; line-height:1.15; min-width:0; }
.smu-m{
  font-weight:700; font-size:1.1em; color:#4E9B72; white-space:nowrap;
  font-family:ui-monospace,"SFMono-Regular",Consolas,monospace; font-variant-numeric:tabular-nums;
}
.smu-ligne.smu-perd .smu-m{ color:#D8503C; }
.smu-ligne .smu-p{ grid-column:1 / -1; margin:0; color:#97A3B4; font-size:.74em; line-height:1.3; }
.smu-compare-bas{ display:flex; align-items:center; gap:.9em; flex-wrap:wrap; }
.smu-vide{ padding:40px; text-align:center; color:#97A3B4; }

/* ---------- la fiche d'une forme juridique, en modale --------------- */
/* Elle est faite pour être PROJETÉE : elle reprend la taille de base de
   l'écran, zoom compris, et son texte est celui qu'on lit à voix haute.
   ⚠️ `safe center` et non `center` : un contenu plus haut que la fenêtre
      déborderait des DEUX côtés, et le haut deviendrait inatteignable
      (§7.42). */
.smu-modale{
  position:fixed; inset:0; z-index:9620;
  background:rgba(7,9,12,.84);
  display:flex; align-items:safe center; justify-content:safe center;
  padding:1.1em;
  font-size:calc(clamp(10.5px, .62vw + .62vh, 19px) * var(--smu-z,1));
  color:#E8EDF4;
}
.smu-fiche{
  display:flex; flex-direction:column; width:100%; max-width:62em; max-height:100%;
  overflow:auto; background:#171D26; border:1px solid #2C3644; border-radius:.8em;
}
.smu-fiche-img{ flex:0 0 auto; width:100%; aspect-ratio:16/6; object-fit:cover; display:block; opacity:.88; }
.smu-fiche-corps{ display:flex; flex-direction:column; gap:.55em; padding:.85em 1.15em 1.05em; }
.smu-fiche-tete{ display:flex; align-items:baseline; gap:.7em; flex-wrap:wrap; }
.smu-fiche-sigle{
  font-size:.62em; font-weight:800; letter-spacing:.14em; color:#E0A13A;
}
.smu-fiche-tete h2{ margin:0; font-size:1.7em; line-height:1.04; }
.smu-fiche-x{ margin-left:auto; }
.smu-fiche-p{ margin:0; font-size:1.1em; line-height:1.36; }
.smu-fiche-l{ margin:0; display:grid; grid-template-columns:minmax(8em,13em) 1fr; gap:.32em .9em; }
.smu-fiche-l dt{
  font-size:.66em; font-weight:800; letter-spacing:.07em; text-transform:uppercase;
  color:#97A3B4; padding-top:.25em;
}
.smu-fiche-l dd{ margin:0; font-size:.92em; line-height:1.34; }
.smu-fiche-piege{
  margin:0; padding:.5em .7em; border-left:3px solid #D8503C;
  background:rgba(216,80,60,.09); border-radius:.35em;
  font-size:.88em; line-height:1.34;
}
.smu-fiche-piege b{ color:#D8503C; }

/* ---------- « Le conseil » ----------------------------------------- */
.smu-genre{
  display:flex; align-items:baseline; gap:.6em; flex-wrap:wrap; margin-bottom:.25em;
  font-size:.64em; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:#97A3B4;
}
.smu-genre em{
  font-style:normal; letter-spacing:0; text-transform:none;
  font-size:1.55em; font-weight:700; color:#E0A13A;
}
.smu-table{ display:flex; flex-direction:column; gap:.35em; }
.smu-table-t{
  display:flex; justify-content:space-between; align-items:baseline; gap:1em; flex-wrap:wrap;
  font-size:.64em; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:#97A3B4;
}
.smu-table-t em{
  font-style:normal; letter-spacing:0; text-transform:none;
  font-size:1.2em; font-weight:400; color:#7E8A9A;
}
.smu-gens{ display:grid; gap:.4em; grid-template-columns:repeat(auto-fit,minmax(11em,1fr)); }
.smu-gens-j{
  display:flex; align-items:center; gap:.5em; text-align:left; min-width:0;
  background:#171D26; border:1px solid #2C3644; border-radius:.55em; padding:.38em .5em;
  transition:border-color .18s, background .18s;
}
.smu-gens-j:hover:not([disabled]){ border-color:#7A5A20; }
.smu-init{
  flex:0 0 auto; width:2em; height:2em; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:#1F2733; border:1px solid #2C3644; font-weight:800; font-size:.95em;
  transition:background .18s, color .18s, border-color .18s;
}
.smu-gens-n{ flex:1 1 auto; min-width:0; line-height:1.12; }
.smu-gens-n b{ display:block; font-size:.84em; }
.smu-gens-n span{ display:block; font-size:.62em; color:#97A3B4; }
.smu-gens-p{
  flex:0 0 auto; font-size:.78em; font-weight:700; color:#97A3B4;
  font-family:ui-monospace,"SFMono-Regular",Consolas,monospace; font-variant-numeric:tabular-nums;
}
.smu-gens-j.smu-pour{ border-color:#4E9B72; background:rgba(78,155,114,.12); }
.smu-gens-j.smu-pour .smu-init{ background:#4E9B72; border-color:#4E9B72; color:#0E1116; }
.smu-gens-j.smu-pour .smu-gens-p{ color:#4E9B72; }
.smu-gens-j.smu-muet{ opacity:.4; }

.smu-vote{ display:flex; flex-direction:column; gap:.3em; }
.smu-jauge{ display:flex; flex-direction:column; gap:.22em; }
.smu-jauge-p{
  position:relative; height:1.15em; border-radius:.6em; overflow:hidden;
  background:#1F2733; border:1px solid #2C3644;
}
/* ⚠️ LE LAITON ÉTEINT NE SE VOIT PAS AU FOND D'UNE SALLE. Mesuré sur le
   fond de la barre (#1F2733), #7A5A20 donne un rapport de contraste de
   2,2 : les voix acquises mais insuffisantes se lisaient comme une barre
   vide. #C08A2E le porte à 4,7 — la classe voit qu'il y a des voix, et
   qu'elles ne suffisent pas. */
.smu-j-oui{ display:block; height:100%; background:#C08A2E; transition:width .35s ease, background .35s; }
.smu-j-oui.smu-ok{ background:#4E9B72; }
/* le repère du seuil vit DANS la barre : au-dessus, l'overflow qui
   arrondit les coins le couperait */
.smu-j-seuil{ position:absolute; top:0; bottom:0; width:3px; margin-left:-1px; background:#E8EDF4; }
.smu-jauge-l{ display:flex; justify-content:space-between; gap:1em; font-size:.72em; color:#97A3B4; }
.smu-jauge-l b{ color:#E8EDF4; font-weight:700; }
.smu-double{ font-size:.76em; line-height:1.3; color:#97A3B4; }
.smu-double b{ color:#E8EDF4; }
.smu-double em{ font-style:normal; font-weight:700; color:#E8EDF4; }

/* qui contrôle le dirigeant — toujours à l'écran, jamais replié :
   c'est la question du chapitre, pas une note de bas de page */
.smu-controle{
  display:grid; gap:.5em 1em; grid-template-columns:repeat(auto-fit,minmax(13em,1fr));
  border-top:1px solid #2C3644; padding-top:.5em;
}
.smu-controle > div{ min-width:0; }
.smu-controle b{
  display:block; margin-bottom:.12em; font-size:.6em; font-weight:800;
  letter-spacing:.1em; text-transform:uppercase; color:#E0A13A;
}
.smu-controle span{ display:block; font-size:.76em; line-height:1.3; color:#97A3B4; }

.smu-ligne.smu-hors{ border-left-color:#2C3644; opacity:.62; }
.smu-ligne.smu-hors .smu-m{ color:#97A3B4; }
.smu-court{ font-size:.86em; }

/* Le verdict du conseil est une PHRASE, pas une somme : la taille de la
   tuile — pensée pour « 19 000 € » — y ferait deux lignes de titre. */
.smu-conseil .smu-val{ font-size:1.55em; }
.smu-conseil .smu-scene-img{ width:16em; }
/* Qui contrôle le dirigeant se pose EN BAS de la scène : sur les
   décisions où le dirigeant signe seul, il n'y a pas de jauge, et le
   bloc remontait au milieu d'un écran à moitié vide. */
.smu-conseil .smu-controle{ margin-top:auto; }

/* ---------- le moteur générique : figure, cartes, barres ----------- */
/* La figure est un SVG étiré en largeur : les légendes vivent donc en
   HTML par-dessus, sinon elles se déformeraient avec lui. */
.smu-fig{ position:relative; flex:1 1 9em; min-height:7em; padding:0 0 1.1em 1.6em; }
.smu-svg{ width:100%; height:100%; display:block; overflow:visible; }
/* ⚠️ LE TITRE VERTICAL EST BORNÉ À LA HAUTEUR DE LA FIGURE. Posé en
   rotate() sur une ligne sans retour, sa longueur ne dépendait que du
   texte : « Coût des obligations, par salarié et par an » dépassait la
   figure et remontait en travers des cartes et du gyrophare. En écriture
   verticale, top et bottom fixent sa hauteur : le texte revient à la
   ligne dans la gouttière au lieu d'en sortir. */
.smu-fig-y{
  position:absolute; left:0; top:0; bottom:1.8em; width:2.6em;
  writing-mode:vertical-rl; transform:rotate(180deg);
  display:flex; align-items:center; justify-content:center; text-align:center;
  overflow:hidden; line-height:1.1;
  font-size:.62em; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:#97A3B4;
}
.smu-fig-x{
  position:absolute; left:1.6em; right:0; bottom:0; text-align:center;
  font-size:.62em; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#97A3B4;
}
.smu-fig-note{
  position:absolute; transform:translateY(-100%);
  background:#0E1116; border:1px solid #2C3644; border-radius:.35em;
  padding:.1em .4em; font-size:.66em; font-weight:700; color:#E8EDF4; white-space:nowrap;
  pointer-events:none;
}
.smu-fig-leg{
  position:absolute; right:0; top:0; display:flex; gap:.8em; flex-wrap:wrap;
  font-size:.64em; color:#97A3B4;
}
.smu-fig-leg span{ display:flex; align-items:center; gap:.3em; }
.smu-fig-leg i{ width:.9em; height:.2em; border-radius:.1em; display:block; }

.smu-cartes-c{ display:grid; gap:.45em; grid-template-columns:repeat(auto-fit,minmax(9em,1fr)); }
.smu-carte-c{
  position:relative;   /* la pastille de variation se pose dessus */
  display:flex; flex-direction:column; gap:.05em; min-width:0;
  background:#171D26; border:1px solid #2C3644; border-left-width:3px; border-radius:.5em;
  padding:.35em .6em;
}
.smu-carte-c.smu-bon{ border-left-color:#4E9B72; }
.smu-carte-c.smu-dur{ border-left-color:#D8503C; }
.smu-carte-c.smu-neutre{ border-left-color:#E0A13A; }
.smu-c-k{ font-size:.6em; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#97A3B4; }
.smu-c-v{
  font-size:1.35em; font-weight:700; line-height:1.05;
  font-family:ui-monospace,"SFMono-Regular",Consolas,monospace; font-variant-numeric:tabular-nums;
}
.smu-carte-c.smu-bon .smu-c-v{ color:#4E9B72; }
.smu-carte-c.smu-dur .smu-c-v{ color:#D8503C; }
.smu-c-s{ font-size:.62em; color:#97A3B4; line-height:1.25; }

.smu-barres{ display:flex; flex-direction:column; gap:.25em; }
.smu-barre{ display:grid; grid-template-columns:minmax(7em,13em) 1fr auto; gap:.6em; align-items:center; }
.smu-barre-n{ font-size:.78em; line-height:1.18; min-width:0; }
.smu-barre-n em{ display:block; font-style:normal; font-size:.82em; color:#97A3B4; }
.smu-barre-p{ display:block; height:.9em; background:#1F2733; border-radius:.45em; overflow:hidden; }
.smu-barre-p i{ display:block; height:100%; transition:width .35s ease, background .35s; }
.smu-barre-v{
  font-size:.86em; font-weight:700; white-space:nowrap; text-align:right;
  font-family:ui-monospace,"SFMono-Regular",Consolas,monospace; font-variant-numeric:tabular-nums;
}
.smu-barre-v em{ display:block; font-style:normal; font-size:.74em; font-weight:400; color:#97A3B4; }
.smu-barre.smu-fort .smu-barre-n{ font-weight:700; }
.smu-barre.smu-fort .smu-barre-p{ box-shadow:0 0 0 1px #E0A13A inset; }

/* ---------- les liens d'accès direct, dans l'écran du prof --------- */
/* En pixels : cet écran vit dans la page claire du professeur, pas sur
   un vidéoprojecteur. */
.smu-liens{ margin:18px 0 10px; }
.smu-liens-t{
  display:flex; align-items:baseline; gap:10px; flex-wrap:wrap;
  font-size:15px; font-weight:800; color:#1e293b; margin-bottom:8px;
}
.smu-liens-t em{ font-style:normal; font-size:12.5px; font-weight:400; color:#64748b; }
.smu-liens-l{ display:flex; flex-direction:column; gap:5px; }
.smu-lien{
  display:flex; align-items:center; gap:9px; flex-wrap:wrap;
  background:#f8fafc; border:1px solid #e2e8f0; border-radius:9px; padding:7px 11px;
}
.smu-lien-code{
  flex:0 0 auto; font-family:ui-monospace,Consolas,monospace; font-size:12px; font-weight:700;
  color:#7c3aed; background:#f3e8ff; border-radius:5px; padding:2px 7px;
}
.smu-lien-n{ flex:1 1 14em; min-width:0; font-size:13.5px; font-weight:600; color:#1e293b; line-height:1.2; }
.smu-lien-n em{ display:block; font-style:normal; font-size:11.5px; font-weight:400; color:#64748b; }

/* ---------- le tableau vivant ------------------------------------- */
/* ⚠️ TOUT EST EN CSS, sauf le glissement des curseurs. Une animation en
   JavaScript se fige des que la fenetre de projection passe en
   arriere-plan (§7.6) ; une transition CSS, non. Et `prefers-reduced-
   motion` coupe l'ensemble : un eleve peut l'avoir demande. */

/* le bandeau : ce que l'ecran vient de changer tout seul */
.smu-chg{
  display:flex; align-items:center; gap:.7em; flex-wrap:wrap;
  padding:.5em .85em; border-radius:.5em;
  background:linear-gradient(90deg, rgba(224,161,58,.16), rgba(224,161,58,.04) 60%), #1F2733;
  border:1px solid #7A5A20; border-left:.3em solid #E0A13A;
  animation:smu-entre .45s ease-out both;
}
.smu-chg-ic{ font-size:1.3em; line-height:1; flex:0 0 auto; }
.smu-chg.smu-chg-on .smu-chg-ic{ animation:smu-bat .7s ease-in-out infinite; }
.smu-chg-t{
  font-size:.72em; font-weight:800; letter-spacing:.12em;
  text-transform:uppercase; color:#E0A13A; flex:0 0 auto;
}
.smu-chg-l{ display:flex; gap:.6em; flex-wrap:wrap; flex:1 1 auto; min-width:0; }
.smu-chg-i{
  display:flex; align-items:baseline; gap:.4em; font-size:1.05em;
  padding:.1em .55em; border-radius:.35em; background:rgba(14,17,22,.5);
}
.smu-chg-i b{ font-weight:700; color:#FFFFFF; }
.smu-chg-i i{
  font-style:normal; font-weight:800; color:#F0B95A; font-size:1.1em;
  font-family:ui-monospace,Consolas,monospace; font-variant-numeric:tabular-nums;
}
.smu-chg-i u{ text-decoration:none; margin:0 .3em; color:#97A3B4; }
.smu-chg-r{
  flex:0 0 auto; font-size:.72em; font-weight:800; letter-spacing:.06em;
  padding:.35em .7em; border:1px solid #2C3644 !important; border-radius:.4em;
  color:#97A3B4; transition:border-color .18s, color .18s;
}
.smu-chg-r:hover:not([disabled]){ border-color:#E0A13A !important; color:#E0A13A; }
.smu-chg-r[disabled]{ opacity:.35; cursor:default; }

/* le gyrophare : il clignote SIX fois puis reste fixe. Une alerte qui
   clignote tout le cours finit par ne plus etre vue du tout. */
.smu-alerte{
  display:flex; align-items:center; gap:.8em;
  padding:.6em 1em; border-radius:.5em;
  border:1px solid #D8503C; background:rgba(216,80,60,.14);
  animation:smu-entre .4s ease-out both, smu-giro 1.05s ease-in-out 6;
}
.smu-alerte.smu-al-bon{ border-color:#4E9B72; background:rgba(78,155,114,.14); }
.smu-alerte.smu-al-neutre{ border-color:#E0A13A; background:rgba(224,161,58,.14); }
.smu-al-giro{ font-size:1.9em; line-height:1; flex:0 0 auto;
  animation:smu-bat .85s ease-in-out infinite; }
.smu-al-t{ display:flex; flex-direction:column; gap:.12em; min-width:0; }
.smu-al-t b{ font-size:1.25em; font-weight:800; color:#FFFFFF; line-height:1.15; }
.smu-al-t span{ font-size:1em; color:#E8EDF4; line-height:1.3; }

/* la pastille de variation, sur la carte qui vient de bouger */
/* ⚠️ `position:relative` est déclaré AVEC le bloc `.smu-carte-c`, plus
   haut. Redéclaré ici, il créait une seconde règle nue sur la même
   classe — sans dégât visible, et `collisions-css.py` le signalait à
   raison : une alerte qu'on prend l'habitude d'ignorer ne sert plus à
   rien le jour où elle dit vrai (§7.54). */
.smu-c-d{
  position:absolute; top:-.55em; right:.5em;
  padding:.12em .5em; border-radius:99em;
  font-size:.72em; font-weight:800; letter-spacing:.02em;
  font-family:ui-monospace,Consolas,monospace; font-variant-numeric:tabular-nums;
  background:#E0A13A; color:#1A1305; white-space:nowrap;
  box-shadow:0 .15em .5em rgba(0,0,0,.45);
  animation:smu-monte .55s cubic-bezier(.2,1.3,.4,1) both;
}
.smu-c-d.smu-d-bas{ background:#5B8FB9; color:#0E1116; }
.smu-carte-c.smu-bouge{ animation:smu-pulse .75s ease-out both; }

@keyframes smu-entre{
  from{ opacity:0; transform:translateY(-.5em); }
  to{ opacity:1; transform:none; }
}
@keyframes smu-monte{
  from{ opacity:0; transform:translateY(.9em) scale(.8); }
  to{ opacity:1; transform:none; }
}
@keyframes smu-bat{
  0%,100%{ transform:scale(1); opacity:1; }
  50%{ transform:scale(1.22); opacity:.72; }
}
@keyframes smu-giro{
  0%,100%{ box-shadow:0 0 0 0 rgba(216,80,60,0); }
  50%{ box-shadow:0 0 1.6em .2em rgba(216,80,60,.55); }
}
@keyframes smu-pulse{
  0%{ box-shadow:0 0 0 0 rgba(224,161,58,.7); }
  100%{ box-shadow:0 0 0 1.1em rgba(224,161,58,0); }
}

/* l'ecran de bilan : le gros plan de fin de demonstration */
.smu-scene-b{ justify-content:center; }
.smu-bilan{
  display:flex; flex-direction:column; gap:.8em;
  padding:.4em .6em; animation:smu-entre .5s ease-out both;
}
.smu-bi-t{
  font-size:.8em; font-weight:800; letter-spacing:.16em;
  text-transform:uppercase; color:#E0A13A;
}
.smu-bi-mot{
  margin:0; font-size:2.8em; font-weight:800; line-height:1.08;
  letter-spacing:-.02em; color:#FFFFFF; max-width:20em; text-wrap:balance;
}
.smu-bi-l{ margin:.2em 0 0; padding:0; list-style:none;
  display:flex; flex-direction:column; gap:.65em; counter-reset:smubi; }
.smu-bi-l li{
  counter-increment:smubi; position:relative; padding-left:2.2em;
  border-left:.22em solid #2C3644; padding-bottom:.1em;
  animation:smu-entre .5s ease-out both;
  animation-delay:calc(var(--smu-r, 0) * .13s + .15s);
}
.smu-bi-l li::before{
  content:counter(smubi); position:absolute; left:.6em; top:.02em;
  font-family:ui-monospace,Consolas,monospace;
  font-size:1.1em; font-weight:800; color:#E0A13A;
}
.smu-bi-l li b{ display:block; font-size:1.55em; font-weight:800; line-height:1.2; color:#E8EDF4; }
.smu-bi-l li span{ display:block; margin-top:.18em; font-size:1.25em; line-height:1.36; color:#B7C1CF; }
.smu-bi-fin{
  margin:.3em 0 0; padding:.6em .9em; border-radius:.45em;
  border-left:.28em solid #4E9B72; background:rgba(78,155,114,.12);
  font-size:1.35em; line-height:1.35; font-weight:600; color:#E8EDF4;
}
.smu-jour-b .smu-q{ color:#E0A13A; }

/* ---------- l'écran d'introduction -------------------------------- */
/* ⚠️ CES RÈGLES SONT AVANT LES MEDIA QUERIES, et ce n'est pas un
   détail : à spécificité égale c'est la dernière déclarée qui gagne.
   Posées après, elles écraseraient les réglages des écrans courts et
   étroits, qui ne feraient alors plus rien du tout (§7.72).
   Et tout est en `em` : l'écran entier est mis à l'échelle par
   `--smu-z`, une taille en `vh` échapperait au zoom (§7.70). */
.smu-in-corps{
  flex:1 1 auto; min-height:0; overflow:auto;
  display:flex; align-items:center; gap:1.8em;
  padding:1.4em 2em;
}
/* ⚠️ LA VIGNETTE NE S'ETIRE PAS SUR TOUTE LA HAUTEUR. En `align-self:
   stretch`, la boite faisait la hauteur de l'ecran pendant que la photo
   restait centree : la pastille, posee en absolu sur la boite, se
   retrouvait seule en bas a gauche de la projection, a 200 px de
   l'image. Vu a l'ecran, pas deduit. */
.smu-in-vue{
  position:relative; flex:0 0 33%; max-width:33%; align-self:center;
}
.smu-in-vue img{
  width:100%; aspect-ratio:4/3; object-fit:cover;
  border-radius:.7em; border:1px solid #2C3644; display:block;
}
.smu-in-emo{
  position:absolute; left:-.35em; bottom:.6em;
  width:2.2em; height:2.2em; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:1.5em; background:#171D26; border:1px solid #2C3644;
}
.smu-in-txt{
  flex:1 1 auto; min-width:0;
  display:flex; flex-direction:column; gap:.85em;
}
/* l'accroche : la seule ligne que la classe lit du fond de la salle */
.smu-in-acc{
  margin:0; font-size:3.4em; font-weight:800; line-height:1.06;
  letter-spacing:-.02em; color:#FFFFFF; max-width:18em;
  /* sinon la deuxieme ligne d'une accroche est un mot seul, ou pire
     un point d'interrogation tout seul : mesure a 1280x720 */
  text-wrap:balance;
}
.smu-in-p{
  margin:0; font-size:2em; line-height:1.4; color:#D9E1EC;
  max-width:32em; text-wrap:pretty;
}
.smu-in-voir{
  border-left:.28em solid #E0A13A; border-radius:0 .45em .45em 0;
  background:linear-gradient(90deg, rgba(224,161,58,.12), rgba(224,161,58,0) 72%);
  padding:.7em 1em; align-self:flex-start; max-width:36em;
}
.smu-in-voir-t{
  font-size:.85em; font-weight:800; letter-spacing:.11em;
  text-transform:uppercase; color:#E0A13A; margin-bottom:.4em;
}
.smu-in-voir ul{ margin:0; padding:0; list-style:none; }
.smu-in-voir li{
  font-size:1.35em; line-height:1.38; font-weight:600; color:#E8EDF4;
  padding-left:1.1em; position:relative;
}
.smu-in-voir li::before{
  content:"→"; position:absolute; left:0; color:#E0A13A; font-weight:800;
}
.smu-in-bas{ display:flex; align-items:center; gap:1.1em; flex-wrap:wrap; margin-top:.2em; }
/* ⚠️ LE BOUTON REPREND SON FOND ICI, ET IL LE FAUT. `.smu-ecran button`
   remet tout a plat — element + classe, donc plus specifique que
   `.smu-primaire` seul : le seul bouton de l'ecran se lisait comme du
   texte. Ailleurs c'est voulu ; sur un ecran d'accueil, il faut voir ou
   cliquer. */
.smu-ecran .smu-in-go{
  font-size:1.45em; padding:.5em 1.2em;
  background:#E0A13A; border:1px solid #E0A13A; color:#1A1305;
}
.smu-ecran .smu-in-go:hover{ background:#EEB050; border-color:#EEB050; }
.smu-in-aide{ font-size:.85em; color:#97A3B4; max-width:22em; line-height:1.3; }
.smu-ecran.smu-avec-outils .smu-in-corps{ padding-left:calc(5vmin + 1.6em); }

/* ---------- le rang de visages ------------------------------------- */
/* ⚠️ POSÉ AVANT LES MEDIA QUERIES. À spécificité égale, la dernière
   règle déclarée gagne : écrit après, ce bloc écraserait les réglages
   des écrans étroits et ils ne feraient plus rien du tout (§7.72). */
.smu-visages{
  margin:.7em 0 .2em; padding:.75em .9em .6em;
  border:1px solid #2A3444; border-radius:.7em;
  background:linear-gradient(180deg,#171E29,#141A24);
}
.smu-vis-t{
  font-size:.82em; letter-spacing:.09em; text-transform:uppercase;
  color:#8E9BAC; margin-bottom:.55em;
}
.smu-vis-r{ display:flex; flex-wrap:wrap; gap:.9em; align-items:flex-start; }
.smu-vis-u{
  display:flex; flex-direction:column; align-items:center; gap:.18em;
  flex:0 0 auto; width:5.2em; text-align:center;
}
.smu-vis-serre .smu-vis-u{ width:4.3em; }
.smu-vis-svg{ width:3.4em; height:3.4em; display:block; }
.smu-vis-serre .smu-vis-svg{ width:2.9em; height:2.9em; }
/* La couleur du visage glisse, la forme est redessinée à chaque rendu. */
.smu-vis-svg circle{ transition:fill .35s ease; }
.smu-vis-n{ font-size:.8em; color:#D6DEE8; font-weight:600; line-height:1.15; }
.smu-vis-m{ font-size:.72em; color:#8E9BAC; line-height:1.15; }

/* ---------- « La kaz à deux étages » (bilan fonctionnel) ----------- */
/* ⚠️ Préfixe `bf-` : cherché nu dans index.html avant de l'adopter,
   zéro occurrence (piège N). Tout en `em` (§7.70). Posé AVANT les media
   queries générales, et ses propres réglages étroits suivent ses règles
   de base, jamais l'inverse (§7.72).

   ⚠️ LA KAZ EST EN BAS, SUR TOUTE LA LARGEUR (16/09). Djamil : « le
   simulateur n'est pas lisible, la partie du milieu devrait se retrouver
   en bas ». En colonne centrale, chaque poste avait ~20 em de large et
   s'écrivait en 9 px au vidéoprojecteur. Mis à plat, un étage tient sur
   une rangée — nom · deux côtés · calcul — et le texte grossit d'un
   quart. */
.bf-corps{
  flex:1 1 auto; min-height:0;
  display:flex; flex-direction:column; gap:.5em; padding:.5em .9em;
}
.bf-haut{
  flex:1 1 auto; min-height:0;
  display:grid; gap:.8em;
  grid-template-columns:minmax(0,1fr) minmax(15em,26em) minmax(17em,22em);
}
.bf-g, .bf-vue, .bf-d{ min-height:0; min-width:0; overflow:auto; display:flex; flex-direction:column; gap:.5em; }

.bf-recit{ margin:0; font-size:1.22em; line-height:1.38; color:#E8EDF4; }
.bf-recit b{ color:#E0A13A; }
.bf-grand{ width:100%; aspect-ratio:16/9; object-fit:cover; min-height:0;
  border-radius:.5em; border:1px solid #2C3644; display:block; }
.bf-vue > .bf-grand{ flex:1 1 0; min-height:5em; aspect-ratio:auto; height:auto; animation:smu-entre .4s ease-out both; }
.bf-vue{ overflow:hidden; }

.bf-carte{ display:flex; flex-direction:column; gap:.35em; min-height:0;
  padding:.5em; border-radius:.55em; background:#171D26; border:1px solid #7A5A20;
  animation:smu-entre .4s ease-out both; }
.bf-carte .bf-grand{ flex:0 1 auto; max-height:11em; }
.bf-carte h3{ margin:0; font-size:1.15em; display:flex; justify-content:space-between; gap:.6em; }
.bf-carte h3 span{ color:#E0A13A; font-family:ui-monospace,Consolas,monospace; white-space:nowrap; }
.bf-carte p{ margin:0; font-size:1.05em; line-height:1.38; color:#D6DEE8; }
.bf-carte p b{ color:#E0A13A; }

.bf-vrac-t{ font-size:.72em; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:#97A3B4; margin-bottom:.3em; }
.bf-tuiles{ display:grid; gap:.4em; grid-template-columns:repeat(auto-fill,minmax(12.5em,1fr)); }

.bf .bf-tuile{
  display:grid; grid-template-columns:3em 1fr; grid-template-rows:auto auto;
  column-gap:.5em; align-items:center; text-align:left;
  padding:.35em; border:1px dashed #E0A13A; border-radius:.45em; background:#1F2733;
  transition:background .15s, transform .15s;
}
.bf .bf-tuile:hover{ background:#2A3342; transform:translateY(-.08em); }
.bf-tuile img{ grid-row:1 / 3; width:3em; height:3em; object-fit:cover; border-radius:.3em; }
.bf-tuile-n{ font-size:.95em; font-weight:700; line-height:1.15; }
.bf-tuile-m{ font-size:.85em; color:#E0A13A; font-family:ui-monospace,Consolas,monospace; }

/* la kaz, en bas */
.bf-kaz{ flex:0 0 auto; display:flex; flex-direction:column; }
.bf-toit{
  flex:0 0 auto; height:1.7em; margin:0 3em;
  clip-path:polygon(2% 100%, 50% 0, 98% 100%);
  background:linear-gradient(#C0563E,#8E3A2A);
  display:flex; align-items:flex-end; justify-content:center; padding-bottom:.15em;
}
.bf-toit span{ font-size:.72em; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:#FFE9D6; }
.bf-rang{
  display:grid; gap:.5em; align-items:stretch;
  grid-template-columns:7.5em minmax(0,1fr) minmax(0,1fr) 17em;
  padding:.3em .6em; background:#1B222D;
  border-left:.3em solid #6B4A2B; border-right:.3em solid #6B4A2B;
}
.bf-cols{ padding-top:.2em; padding-bottom:0; }
.bf-cols span{ font-size:.85em; font-weight:800; color:#C6D0DC; text-align:center; }
.bf-cols em, .bf-zone-t em{ display:block; font-style:normal; font-size:.82em; font-weight:700;
  color:#E0A13A; letter-spacing:.04em; animation:smu-entre .5s ease-out both; }
.bf-etage{ border-bottom:.3em solid #6B4A2B; }
.bf-etage-t{ display:flex; flex-direction:column; justify-content:center; gap:.1em; }
.bf-etage-t b{ font-size:.98em; color:#E8EDF4; }
.bf-etage-t span{ font-size:.75em; color:#97A3B4; line-height:1.2; }
.bf-etage-c{ display:flex; align-items:center; min-width:0; }
.bf-etage-cave{ background:#161B23; border-bottom-width:.45em; }
.bf-etage-cave .bf-etage-t b{ color:#E8C98E; }
.bf-zone{ display:flex; flex-direction:column; gap:.25em; min-width:0;
  padding:.3em .35em; border-radius:.4em; background:#131922; border:1px solid #2C3644; }
.bf-zone-es, .bf-zone-ac{ border-top:.2em solid #5B8FB9; }
.bf-zone-rs, .bf-zone-pc{ border-top:.2em solid #4E9B72; }
.bf-zone-ta{ border-top:.2em solid #C98A22; }
.bf-zone-tp{ border-top:.2em solid #D8503C; }
.bf-zone-t{ display:flex; justify-content:space-between; align-items:flex-start; gap:.4em; }
.bf-zone-t > span{ font-size:.92em; font-weight:700; color:#E8EDF4; line-height:1.15; }
.bf-zone-t > b{ font-size:1.05em; color:#FFFFFF; font-family:ui-monospace,Consolas,monospace; white-space:nowrap; }
.bf-zone-vide{ font-size:.8em; color:#5E6A7A; font-style:italic; padding:.2em 0; text-align:center; }
.bf-zone-l{ display:grid; gap:.25em; grid-template-columns:repeat(auto-fill,minmax(13em,1fr)); }
.bf-l{ display:grid; grid-template-columns:2.2em minmax(0,1fr) auto; gap:.4em; align-items:center;
  padding:.18em .3em; border-radius:.3em; background:#1F2733; animation:smu-entre .45s ease-out both; }
.bf-l img{ width:2.2em; height:2.2em; object-fit:cover; border-radius:.25em; }
.bf-l-n{ font-size:.92em; line-height:1.15; min-width:0; }
.bf-l-n i{ display:block; height:.26em; margin-top:.18em; border-radius:.2em; background:#E0A13A;
  transition:width .6s cubic-bezier(.3,.8,.3,1); }
.bf-zone-es .bf-l-n i, .bf-zone-ac .bf-l-n i{ background:#5B8FB9; }
.bf-zone-rs .bf-l-n i, .bf-zone-pc .bf-l-n i{ background:#4E9B72; }
.bf-zone-ta .bf-l-n i{ background:#C98A22; }
.bf-zone-tp .bf-l-n i{ background:#D8503C; }
.bf-l-m{ font-size:.95em; font-family:ui-monospace,Consolas,monospace; white-space:nowrap; color:#E8EDF4; }
.bf-l-neuf{ box-shadow:0 0 0 .14em #E0A13A; animation:smu-entre .45s ease-out both, smu-pulse .9s ease-out .1s both; }
.bf-l-bouge{ box-shadow:0 0 0 .14em #E0A13A; animation:smu-pulse .9s ease-out both; }
.bf-calc{
  width:100%; display:flex; flex-direction:column; gap:.12em;
  padding:.35em .6em; border-radius:.5em;
  animation:smu-entre .45s ease-out both;
}
.bf-calc-f{ font-size:.86em; font-weight:800; line-height:1.2; }
.bf-calc-n{ font-size:.95em; font-family:ui-monospace,Consolas,monospace; line-height:1.25; }
.bf-calc b{ font-size:1.12em; }
.bf-calc-eau{ background:rgba(62,142,208,.16); border:1px solid #3E8ED0; color:#CFE4F6; }
.bf-calc-trou{ background:rgba(160,110,60,.18); border:1px solid #A06E3C; color:#F0DCC4; }
.bf-calc-cave{ background:rgba(201,138,34,.16); border:1px solid #C98A22; color:#F2DDB0; }
.bf-calc.bf-calc-alerte{ background:rgba(216,80,60,.18); border-color:#D8503C;
  animation:smu-entre .45s ease-out both, smu-giro 1.05s ease-in-out 6; }
.bf-calc-al{ font-size:.82em; font-weight:800; color:#FFB4A6; line-height:1.2; }

/* la vérification : deux chemins, un seul nombre */
.bf-verif{ display:flex; flex-direction:column; gap:.25em; padding:.45em .7em; border-radius:.55em;
  background:rgba(78,155,114,.12); border:1px solid #4E9B72; animation:smu-entre .45s ease-out both; }
.bf-verif.bf-verif-ko{ background:rgba(216,80,60,.12); border-color:#D8503C; }
.bf-verif-t{ display:flex; justify-content:space-between; gap:.5em; font-size:.72em; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:#8FD3AE; }
.bf-verif-t b{ letter-spacing:0; text-transform:none; font-size:1.3em; color:#FFFFFF; }
.bf-verif-l{ display:grid; grid-template-columns:auto 1fr auto; gap:.5em; align-items:baseline; }
.bf-verif-l span{ font-size:.92em; font-weight:800; }
.bf-verif-l i{ font-style:normal; font-size:.82em; color:#B7C1CF; font-family:ui-monospace,Consolas,monospace; text-align:right; }
.bf-verif-l b{ font-size:1.15em; font-family:ui-monospace,Consolas,monospace; white-space:nowrap; }
.bf-verif-ok{ font-size:1.05em; font-weight:800; }
.bf-verif-dep{ font-size:.75em; color:#97A3B4; }

/* en haut à droite : réservoir − trou = caisse */
.bf-jauges{ display:flex; align-items:stretch; gap:.2em; }
.bf-signe{ align-self:center; font-size:1.6em; font-weight:800; color:#97A3B4; }
.bf-j{ flex:1 1 0; min-width:0; display:flex; flex-direction:column; align-items:center; gap:.2em; }
.bf-j-t{ display:flex; flex-direction:column; align-items:center; text-align:center; }
.bf-j-ic{ font-size:1.25em; line-height:1; }
.bf-j-t b{ font-size:.82em; line-height:1.1; }
.bf-j-cuve{
  position:relative; width:100%; height:9.5em;
  display:flex; flex-direction:column;
  border:1px solid #2C3644; border-radius:.5em; background:#131922; overflow:visible;
}
.bf-j-h, .bf-j-b{ flex:1 1 0; position:relative; overflow:hidden; }
.bf-j-h{ border-radius:.5em .5em 0 0; }
.bf-j-b{ border-radius:0 0 .5em .5em; }
.bf-j-h i, .bf-j-b i{ position:absolute; left:0; right:0; display:block;
  transition:height .8s cubic-bezier(.3,.8,.3,1), background .3s; }
.bf-j-h i{ bottom:0; }
.bf-j-b i{ top:0; }
.bf-j-sol{ flex:0 0 auto; height:.18em; background:#97A3B4; }
.bf-j-eau .bf-j-h i{ background:linear-gradient(#6FB3E8,#2F77B5); }
.bf-j-caisse .bf-j-h i{ background:linear-gradient(#F2C265,#C98A22); }
.bf-j-trou .bf-j-b i{ background:linear-gradient(#6B4A2B,#3B2716); }
.bf-j-trou .bf-j-h i{ background:linear-gradient(#78C49A,#3F8A62); }
.bf-j-eau .bf-j-b i, .bf-j-caisse .bf-j-b i{ background:linear-gradient(#D8503C,#8E2A1E); }
.bf-j-v{ font-size:1em; font-weight:800; font-family:ui-monospace,Consolas,monospace; white-space:nowrap; }
.bf-j-mal .bf-j-v{ color:#F08A78; }
.bf-j-trou.bf-j-mal .bf-j-v{ color:#E8C9A4; }
.bf .bf-j-s{ font-size:.72em; font-weight:800; padding:.2em .45em; border-radius:99em;
  border:1px solid #E0A13A; color:#E0A13A; text-align:center; line-height:1.15; }
.bf .bf-j-s0{ border-color:transparent; }
.bf-j-cache .bf-j-cuve{ opacity:.35; }
.bf-j-cache .bf-j-v{ color:#5E6A7A; }
.bf-j-d{
  max-width:100%; padding:.1em .4em; border-radius:99em; white-space:nowrap;
  overflow:hidden; text-overflow:clip;
  font-size:.66em; font-weight:800; font-family:ui-monospace,Consolas,monospace;
  background:#E0A13A; color:#1A1305; box-shadow:0 .15em .5em rgba(0,0,0,.45);
  animation:smu-monte .55s cubic-bezier(.2,1.3,.4,1) both;
}
.bf-j-d.bf-j-dm{ background:#5B8FB9; color:#0E1116; }

/* les événements */
.bf-evts{ display:grid; gap:.3em; grid-template-columns:repeat(auto-fill,minmax(15em,1fr)); }
.bf-ev{ display:flex; gap:.3em; align-items:stretch; }
.bf .bf-ev-b{ flex:1 1 auto; min-width:0; display:flex; align-items:center; gap:.5em; text-align:left;
  padding:.28em; border:1px solid #2C3644; border-radius:.45em; background:#1F2733;
  font-weight:700; font-size:.98em; transition:border-color .15s; }
.bf .bf-ev-b:hover{ border-color:#E0A13A; }
.bf-ev-b img{ width:2.8em; height:2.8em; object-fit:cover; border-radius:.3em; flex:0 0 auto; }
.bf-ev-fait .bf-ev-b{ opacity:.55; cursor:default; }
.bf .bf-ev-x{ flex:0 0 auto; font-size:.72em; padding:0 .5em; border:1px solid #4E9B72; border-radius:.45em; color:#8FD3AE; }
.bf-raz{ align-self:flex-start; }
.bf-evo{ display:flex; flex-direction:column; gap:.4em; animation:smu-entre .4s ease-out both; }
.bf-evo h3{ margin:0; font-size:1.25em; }
.bf-evo-h{ display:flex; justify-content:space-between; align-items:center; gap:.5em; }
.bf .bf-evo-x{ flex:0 0 auto; font-size:.85em; }
.bf-evo-t{ margin:0; font-size:1.02em; line-height:1.34; color:#D6DEE8; }
.bf-evo-r{ margin:0; font-size:.88em; color:#E0A13A; font-style:italic; }
.bf-pari-t{ font-size:.78em; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:#E0A13A; }
.bf-pari{ display:flex; gap:.3em; flex-wrap:wrap; }
.bf .bf-pari-b{ flex:1 1 5em; padding:.35em .45em; border:1px solid #2C3644; border-radius:.45em;
  background:#1F2733; font-weight:700; font-size:1em; }
.bf .bf-pari-b.bf-pari-on{ border-color:#E0A13A; background:rgba(224,161,58,.16); color:#E0A13A; }
.bf .bf-pari-b.bf-pari-ok{ border-color:#4E9B72; background:rgba(78,155,114,.22); color:#FFFFFF; }
.bf .bf-pari-b[disabled]{ cursor:default; }
.bf .bf-go{ align-self:flex-start; font-size:1.05em; }
.bf-res{ padding:.45em .7em; border-radius:.5em; border-left:.28em solid #E0A13A; background:#171D26;
  animation:smu-entre .45s ease-out both; }
.bf-res b{ display:block; font-size:1.1em; color:#FFFFFF; }
.bf-res p{ margin:.2em 0 0; font-size:.98em; line-height:1.34; color:#D6DEE8; }
.bf-res p b{ display:inline; color:#E0A13A; font-size:1em; }

@media (max-width:1000px){
  .bf-corps{ gap:.4em; padding:.4em .6em; }
  .bf-haut{ grid-template-columns:minmax(0,1fr) minmax(11em,17em) minmax(15em,17em); gap:.55em; }
  .bf-rang{ grid-template-columns:6em minmax(0,1fr) minmax(0,1fr) 12.5em; gap:.4em; padding:.25em .4em; }
  .bf-zone-l{ grid-template-columns:repeat(auto-fill,minmax(11em,1fr)); }
  .bf-l{ grid-template-columns:minmax(0,1fr) auto; }
  .bf-l img{ display:none; }
  .bf-recit{ font-size:1.08em; }
}
@media (max-height:700px){
  .bf-j-cuve{ height:7em; }
  .bf-toit{ height:1.3em; }
  .bf-carte .bf-grand{ max-height:7em; }
  .bf-recit{ font-size:1.05em; }
  /* l'événement révélé et la vérification sous l'image : mesurés à
     34 px et 17 px de trop en 800×600, ramenés à zéro */
  .bf-vue > .bf-grand{ min-height:2.5em; }
  .bf-verif{ padding:.35em .6em; gap:.12em; }
  .bf-evo{ gap:.28em; }
  .bf-g{ gap:.35em; }
  .bf-recit{ line-height:1.3; }
  .bf-evo h3{ font-size:1.08em; }
  .bf-evo-t{ font-size:.94em; }
  .bf-evo-r{ font-size:.8em; }
  .bf-res{ padding:.35em .6em; }
  .bf-res b{ font-size:1em; }
  .bf-res p{ font-size:.9em; }
  .bf .bf-pari-b{ padding:.25em .4em; font-size:.92em; }
}

/* ---------- « Les trois roues » (cycles de l'activité) ------------ */
/* ⚠️ Préfixe `cy3-` : `cy-` est déjà celui du lot cycles de §7.59, et
   `cy3-` a été cherché nu dans index.html, zéro occurrence (piège N).
   ⚠️ LES ROUES TOURNENT EN CSS (`transition:transform`), jamais en JS :
   la fenêtre de projection passe en arrière-plan (§7.6). */
.cy3-corps{
  flex:1 1 auto; min-height:0;
  display:grid; gap:.8em; padding:.6em .9em;
  grid-template-columns:minmax(14em,23em) minmax(0,1fr) minmax(16em,22em);
}
.cy3-g, .cy3-m, .cy3-d{ min-height:0; min-width:0; overflow:auto; display:flex; flex-direction:column; gap:.55em; }
.cy3-recit{ margin:0; font-size:1.1em; line-height:1.4; }
.cy3-recit b{ color:#E0A13A; }
.cy3-img{ width:100%; aspect-ratio:16/9; max-height:12em; object-fit:cover; border-radius:.5em;
  border:1px solid #2C3644; display:block; animation:smu-entre .4s ease-out both; }
.cy3-opts{ display:flex; flex-direction:column; gap:.3em; }
.cy3-opts-t{ font-size:.68em; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:#E0A13A; }
.cy3 .cy3-opt{ text-align:left; padding:.45em .7em; border:1px solid #2C3644; border-radius:.45em;
  background:#1F2733; font-weight:700; font-size:.95em; transition:border-color .15s, background .15s; }
.cy3 .cy3-opt:hover{ border-color:#E0A13A; }
.cy3 .cy3-opt.cy3-opt-on{ border-color:#E0A13A; background:rgba(224,161,58,.16); color:#E0A13A; }
.cy3-morale{ padding:.5em .7em; border-radius:.5em; border-left:.28em solid #E0A13A; background:#171D26;
  font-size:1em; line-height:1.38; color:#D6DEE8; animation:smu-entre .45s ease-out both; }
.cy3-morale b{ color:#E0A13A; }
.cy3-rejouer{ align-self:flex-start; }

.cy3-m{ justify-content:flex-start; }
.cy3-roues{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.5em; }
.cy3-roue{ display:flex; flex-direction:column; align-items:center; gap:.2em; min-width:0;
  padding:.45em .3em; border-radius:.6em; background:#171D26; border:1px solid #2C3644;
  transition:opacity .3s, border-color .3s; }
.cy3-roue-t{ text-align:center; line-height:1.15; }
.cy3-roue-t b{ display:block; font-size:.9em; }
.cy3-roue-t em{ display:block; font-style:normal; font-size:.78em; font-weight:700; color:#E0A13A;
  animation:smu-entre .5s ease-out both; }
.cy3-svg{ width:100%; max-width:16em; aspect-ratio:1; display:block; }
.cy3-dents{ transform-box:view-box; transform-origin:80px 80px;
  transition:transform .9s cubic-bezier(.3,.8,.3,1); }
.cy3-couronne{ fill:none; stroke-width:12; stroke-dasharray:7 5.2; }
.cy3-disque{ stroke:rgba(0,0,0,.25); stroke-width:2; }
.cy3-repere{ fill:#FFFFFF; stroke:#0E1116; stroke-width:2; }
.cy3-axe{ fill:#0E1116; stroke:#97A3B4; stroke-width:2; }
.cy3-st{ fill:#2C3644; transition:fill .3s, r .3s; }
.cy3-st.cy3-st-on{ fill:#FFFFFF; }
.cy3-r-expl .cy3-couronne{ stroke:#5B8FB9; } .cy3-r-expl .cy3-disque{ fill:#2D4A63; }
.cy3-r-inv .cy3-couronne{ stroke:#E0A13A; } .cy3-r-inv .cy3-disque{ fill:#5C4318; }
.cy3-r-fin .cy3-couronne{ stroke:#4E9B72; } .cy3-r-fin .cy3-disque{ fill:#24493A; }
.cy3-roue-st{ font-size:.95em; font-weight:800; color:#FFFFFF; text-align:center; min-height:1.3em; }
.cy3-roue-u{ font-size:.72em; color:#97A3B4; text-align:center; }
.cy3-roue.cy3-off{ opacity:.32; }
.cy3-roue.cy3-e-casse{ border-color:#D8503C; animation:cy3-grince .35s ease-in-out 5; }
.cy3-roue.cy3-e-casse .cy3-couronne{ stroke:#D8503C; }
.cy3-roue.cy3-e-cher{ border-color:#E0A13A; }
.cy3-roue.cy3-e-ok{ border-color:#4E9B72; }
@keyframes cy3-grince{
  0%,100%{ transform:translateX(0); } 25%{ transform:translateX(-.18em) rotate(-.6deg); }
  75%{ transform:translateX(.18em) rotate(.6deg); }
}
.cy3-accord{ padding:.5em .8em; border-radius:.5em; font-size:1.05em; font-weight:700; line-height:1.3;
  animation:smu-entre .45s ease-out both; }
.cy3-a-casse{ background:rgba(216,80,60,.16); border:1px solid #D8503C; }
.cy3-a-cher{ background:rgba(224,161,58,.14); border:1px solid #E0A13A; }
.cy3-a-ok{ background:rgba(78,155,114,.16); border:1px solid #4E9B72; }

.cy3-bilan{ padding:.5em .6em; border-radius:.55em; background:#171D26; border:1px solid #2C3644; }
.cy3-bilan-t{ font-size:.68em; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:#97A3B4; margin-bottom:.35em; }
.cy3-b-g{ display:grid; grid-template-columns:1fr 1fr; gap:.3em; }
.cy3-b-g > span{ font-size:.72em; font-weight:800; color:#97A3B4; text-align:center; }
.cy3-b-c{ padding:.6em .4em; border-radius:.4em; background:#131922; border:1px dashed #2C3644;
  text-align:center; transition:background .35s, border-color .35s; }
.cy3-b-c b{ font-size:.9em; color:#7E8A9A; }
.cy3-b-c.cy3-b-on b{ color:#FFFFFF; }
.cy3-b-inv.cy3-b-on{ background:rgba(224,161,58,.2); border:1px solid #E0A13A; }
.cy3-b-fin.cy3-b-on{ background:rgba(78,155,114,.2); border:1px solid #4E9B72; }
.cy3-b-expl.cy3-b-on, .cy3-b-expl2.cy3-b-on{ background:rgba(91,143,185,.22); border:1px solid #5B8FB9; }

.cy3-d-t{ font-size:.68em; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:#97A3B4; }
.cy3-courbe{ width:100%; display:block; background:#131922; border:1px solid #2C3644; border-radius:.5em; }
.cy3-c-rouge{ fill:rgba(216,80,60,.08); }
.cy3-c-zero{ stroke:#97A3B4; stroke-width:1; stroke-dasharray:3 3; }
.cy3-c-g{ fill:#7E8A9A; font-size:9px; font-family:ui-monospace,Consolas,monospace; }
.cy3-c-l{ fill:none; stroke:#E0A13A; stroke-width:2.6; stroke-linejoin:round; }
.cy3-c-l.cy3-c-l-neg{ stroke:#D8503C; }
.cy3-c-pt{ fill:#E0A13A; stroke:#0E1116; stroke-width:1.5; }
.cy3-c-pt.cy3-c-pt-neg{ fill:#D8503C; }
.cy3-c-x{ fill:#F08A78; font-size:10px; font-weight:800; }
.cy3-cartes{ display:grid; grid-template-columns:1fr; gap:.35em; }
.cy3-carte{ display:flex; flex-direction:column; padding:.4em .6em; border-radius:.45em;
  background:#171D26; border:1px solid #2C3644; }
.cy3-carte span{ font-size:.7em; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#97A3B4; }
.cy3-carte b{ font-size:1.35em; font-family:ui-monospace,Consolas,monospace; color:#FFFFFF; }
.cy3-carte i{ font-style:normal; font-size:.78em; color:#B7C1CF; line-height:1.3; }
.cy3-carte.cy3-carte-neg{ border-color:#D8503C; }
.cy3-carte.cy3-carte-neg b{ color:#F08A78; }
.cy3-attente{ padding:1em; border:1px dashed #2C3644; border-radius:.5em; color:#97A3B4; text-align:center; font-size:.95em; }
.cy3-legende{ display:flex; flex-direction:column; gap:.4em; }
.cy3-leg{ padding:.5em .7em; border-radius:.5em; background:#171D26; border-left:.3em solid #2C3644;
  display:flex; flex-direction:column; gap:.1em; animation:smu-entre .45s ease-out both; }
.cy3-leg b{ font-size:1em; }
.cy3-leg span{ font-size:.8em; color:#97A3B4; }
.cy3-leg i{ font-style:normal; font-size:.85em; color:#D6DEE8; line-height:1.3; }
.cy3-leg-expl{ border-left-color:#5B8FB9; } .cy3-leg-inv{ border-left-color:#E0A13A; } .cy3-leg-fin{ border-left-color:#4E9B72; }

@media (max-width:1000px){
  .cy3-corps{ grid-template-columns:minmax(12em,18em) minmax(0,1fr) minmax(14em,17em); gap:.55em; padding:.45em .6em; }
  .cy3-img{ max-height:8em; }
  .cy3-roue-u{ display:none; }
}
@media (max-height:700px){
  .cy3-svg{ max-width:9.5em; }
  .cy3-img{ max-height:7em; }
}

/* ---------- les écrans étroits, carrés ou peu définis -------------- */
/* 1024×768 et 800×600 : on garde la métaphore des deux coffres et du mur
   — c'est elle qui enseigne — et on retire ce qui n'est que du confort :
   les vignettes de biens d'abord, la photo de scène ensuite. */
@media (max-width:1000px){
  .smu-registre{ width:11em; }
  .smu-coffre-img{ flex:1 1 2.6em; }
  .smu-biens{ display:none; }
  .smu-scene-img{ width:9em; }
  .smu-dit{ font-size:.92em; }
  .smu-gens{ grid-template-columns:repeat(auto-fit,minmax(8.5em,1fr)); }
  .smu-gens-n span{ display:none; }
  .smu-in-corps{ gap:1.2em; padding:1em 1.3em; }
  .smu-in-vue{ flex:0 0 28%; max-width:28%; }
  .smu-in-acc{ font-size:2.7em; }
  .smu-in-p{ font-size:1.65em; }
  .smu-in-voir li{ font-size:1.2em; }
}
@media (max-width:840px){
  .smu-scene-img{ display:none; }
  .smu-verdict{ grid-template-columns:1fr; }
  .smu-dit{ grid-column:1; grid-row:auto; }
  .smu-aide{ display:none; }
  .smu-controle{ grid-template-columns:1fr; }
  .smu-fiche-l{ grid-template-columns:1fr; gap:.1em; }
  .smu-fiche-l dd{ margin-bottom:.35em; }
  .smu-barre{ grid-template-columns:1fr auto; }
  .smu-barre-p{ grid-column:1 / -1; }
  /* ⚠️ LA PHOTO RESTE, CONTRAIREMENT A CELLE DE LA SCENE. Retiree comme
     elle, elle laissait la moitie droite et tout le bas de l'ecran vides
     en 800x600 — exactement le defaut qu'on corrige ici. Elle se
     retrecit, elle ne part pas. */
  .smu-in-vue{ flex:0 0 34%; max-width:34%; }
  .smu-in-acc{ font-size:2.2em; }
  .smu-in-p{ font-size:1.4em; }
  .smu-in-voir li{ font-size:1.1em; }
}
/* Sous 620 px on n'est plus devant un videoprojecteur mais devant un
   telephone : la photo part pour de bon, le paragraphe prend tout. */
@media (max-width:620px){
  .smu-in-corps{ flex-direction:column; align-items:flex-start; }
  .smu-in-vue{ display:none; }
}

/* les projecteurs courts : on reprend de la hauteur sur les marges */
@media (max-height:700px){
  .smu-scene{ gap:.45em; padding:.45em .9em; }
  .smu-bi-mot{ font-size:2.1em; }
  .smu-bi-l{ gap:.45em; }
  .smu-bi-l li b{ font-size:1.3em; }
  .smu-bi-l li span{ font-size:1.1em; }
  .smu-bi-fin{ font-size:1.15em; padding:.45em .8em; }
  .smu-alerte{ padding:.45em .8em; }
  .smu-al-t b{ font-size:1.1em; }
  .smu-al-giro{ font-size:1.5em; }
  /* Sur un projecteur court il n'y a plus d'espace libre a prendre :
     le bandeau redescend a une taille qui tient sans faire defiler. */
  .smu-autrement{ font-size:1.25em; min-height:2.6em; padding:.5em .8em; }
  .smu-au-ic{ font-size:1.5em; }
  /* Une liste de sept barres defilait en 800x600 : sur un
     videoprojecteur, faire defiler pendant qu'on parle est pire qu'un
     texte un peu plus petit. Mesure : 66 px de trop, 0 apres. */
  .smu-barres{ gap:.1em; }
  .smu-barre-n{ font-size:.7em; }
  .smu-barre-p{ height:.62em; }
  /* le commentaire d'une barre passe a la ligne : c'est lui qui coute le
     plus de hauteur, et c'est lui qu'on peut perdre sans rien perdre */
  .smu-barre-n em{ display:none; }
  .smu-carte-c{ padding:.25em .5em; }
  .smu-c-v{ font-size:1.2em; }
  .smu-coffre-img{ flex:1 1 2.4em; }
  .smu-haut, .smu-bas{ padding-top:.3em; padding-bottom:.3em; }
  /* Un projecteur court n'a plus de hauteur a donner : l'accroche et le
     paragraphe redescendent a une taille qui tient sans faire defiler,
     et ils restent nettement plus gros que le reste de l'ecran. */
  .smu-in-corps{ gap:1.1em; padding:.8em 1.3em; }
  .smu-in-txt{ gap:.6em; }
  .smu-in-acc{ font-size:2.3em; }
  .smu-in-p{ font-size:1.5em; }
  .smu-in-voir{ padding:.5em .8em; }
  .smu-in-voir li{ font-size:1.08em; }
  .smu-in-go{ font-size:1.25em; }
}

@media (prefers-reduced-motion: reduce){
  .smu-ecran *, .smu-compare *{ transition-duration:.01ms !important; }
  /* Le gyrophare, la pastille et la pulsation disparaissent : ce qu'ils
     disent est ecrit en toutes lettres a cote, donc rien n'est perdu. */
  .smu-ecran *{ animation:none !important; }
}
/* Le tableau projeté — 22/09/2026. Les colonnes sont posées par le
   composant (`gridTemplateColumns` en ligne) : la feuille ne connaît que
   l'habillage, jamais le nombre de colonnes. */
.smu-tab{ display:flex; flex-direction:column; gap:.25em; margin:.7em 0 0; }
.smu-tab-l{ display:grid; gap:.5em; align-items:center; padding:.45em .7em;
  border-radius:.5em; background:rgba(255,255,255,.055); font-size:1.02em; }
.smu-tab-l > span{ display:flex; flex-direction:column; gap:.05em; min-width:0; }
.smu-tab-tete{ background:none; padding:.1em .7em; font-size:.86em; letter-spacing:.04em;
  text-transform:uppercase; color:#97A3B4; }
.smu-tab-f{ font-weight:700; }
.smu-tab-l em{ color:#97A3B4; font-size:.9em; font-style:normal; }
.smu-tab-l b{ display:block; color:#E0A13A; font-size:1.18em; }
.smu-tab-l.smu-dur b{ color:#F09A8C; }
.smu-tab-l.smu-bon b{ color:#8CD3AC; }
.smu-tab-bas{ background:rgba(224,161,58,.13); }
.smu-tab-bas b{ font-size:1.24em; }
@media (max-aspect-ratio:4/3){ .smu-tab-l{ font-size:.96em; } }

/* « Mets plus en avant les chiffres qui changent » (Djamil, 22/09) : la
   valeur qui vient de bouger se surligne et bat trois fois, puis se
   calme. Une mise en avant qui clignote tout le cours finit par ne plus
   être vue — c'est la règle du gyrophare (§7.75). */
@keyframes smu-neuf-bat {
  0%, 100% { background:transparent; box-shadow:none; }
  12%      { background:rgba(224,161,58,.34); box-shadow:0 0 0 .18em rgba(224,161,58,.22); }
  30%      { background:rgba(224,161,58,.10); box-shadow:none; }
  42%      { background:rgba(224,161,58,.34); box-shadow:0 0 0 .18em rgba(224,161,58,.22); }
  60%      { background:rgba(224,161,58,.10); box-shadow:none; }
  72%      { background:rgba(224,161,58,.34); box-shadow:0 0 0 .18em rgba(224,161,58,.22); }
}
.smu-neuf{ animation:smu-neuf-bat 2.4s ease-in-out 1 both; border-radius:.35em; }
.smu-carte-c.smu-neuf{ border-radius:.6em; }
.smu-tab-l > span.smu-neuf b{ color:#FFD27A; }
@media (prefers-reduced-motion:reduce){
  .smu-neuf{ animation:none; background:rgba(224,161,58,.16); }
}

/* ---------- « Ce qu'il faut retenir » ------------------------------
   L'enseignement de l'étape, projeté. Écrit GROS : il est fait pour
   être lu du fond de la salle et recopié dans un cahier.
   ⚠️ Tout en `em` (§7.70) : la racine de `.smu-modale` mêle vw ET vh,
      donc un vidéoprojecteur carré reste lisible.
------------------------------------------------------------------ */
.smu-lecon{
  width:100%; max-width:52em; max-height:100%; overflow:auto;
  display:flex; flex-direction:column; gap:.7em;
  padding:1em 1.2em 1.1em;
  background:#171D26; border:1px solid #3A465A; border-radius:.8em;
  border-top:.28em solid #E0A13A;
}
.smu-lecon-tete{ display:flex; align-items:baseline; gap:.7em; flex-wrap:wrap; }
.smu-lecon-et{
  font-size:.62em; font-weight:800; letter-spacing:.14em; text-transform:uppercase;
  color:#E0A13A;
}
.smu-lecon-tete h2{ margin:0; font-size:1.6em; line-height:1.06; flex:1 1 14em; }
.smu-lecon-mot{
  font-size:1.5em; line-height:1.24; font-weight:700; color:#FFF3DC;
  padding:.5em .75em; border-radius:.45em;
  background:rgba(224,161,58,.13); border-left:.2em solid #E0A13A;
}
.smu-lecon-mot b{ color:#F3C475; }
.smu-lecon-l{ margin:0; padding-left:1.15em; display:flex; flex-direction:column; gap:.4em; }
.smu-lecon-l li{ font-size:1.05em; line-height:1.36; }
.smu-lecon-l li b{ color:#E0A13A; }
.smu-lecon-piege{
  margin:0; padding:.5em .7em; border-left:3px solid #D8503C;
  background:rgba(216,80,60,.09); border-radius:.35em;
  font-size:.92em; line-height:1.34;
}
.smu-lecon-piege b{ color:#D8503C; }
.smu-lecon-pied{ margin:0; font-size:.7em; color:#97A3B4; }

/* le bouton de la barre du bas : ambré, pour qu'on le trouve sans
   chercher — c'est le geste qu'on répète à chaque étape */
.smu-retenir{
  background:rgba(224,161,58,.16) !important;
  border-color:#E0A13A !important; color:#F3C475 !important;
  font-weight:700;
}
.smu-retenir:hover{ background:rgba(224,161,58,.26) !important; }

/* ==== simulateurs : fin des styles ==== */

/* ==== agora-verbes : styles ==== */
/* AGORA — les verbes irréguliers. Tout est préfixé agv- (piège N). */
.agv .agv-onglets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0}
.agv .agv-onglet{display:flex;flex-direction:column;gap:2px;padding:9px 6px;border:2px solid #fbcfe8;
  border-radius:12px;background:#fff;color:#831843;cursor:pointer;font:inherit;text-align:center}
.agv .agv-onglet b{font-size:15px}
.agv .agv-onglet span{font-size:12px;color:#6b6485}
.agv .agv-onglet-on{background:#fdf2f8;border-color:#db2777}
.agv .agv-fam-exp{background:#fdf2f8;border-left:4px solid #db2777;border-radius:8px;padding:9px 12px;margin:0 0 10px}
.agv .agv-table{display:flex;flex-direction:column;gap:6px}
.agv .agv-bloc{border:1px solid #f3e8ff;border-radius:10px;padding:7px 9px;background:#fff}
.agv .agv-ligne{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.3fr);gap:6px;align-items:center}
.agv .agv-entete{font-size:12px;font-weight:700;color:#6b6485;text-transform:uppercase;padding:0 9px}
.agv .agv-forme{display:inline-flex;align-items:center;gap:4px;min-width:0;flex-wrap:wrap}
.agv .agv-forme b{font-size:16px;color:#1e1b4b}
.agv .agv-p b{color:#be185d}
.agv .agv-pp b{color:#0369a1}
.agv .agv-fr{font-size:13px;color:#4b5563;display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap}
.agv .agv-ex{margin-top:5px;font-size:14px;color:#374151}
.agv .agv-pieces{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}
.agv .agv-piece{display:flex;flex-direction:column;align-items:center;gap:3px;padding:12px 6px;border:2px dashed #d1d5db;
  border-radius:14px;background:#fff;min-height:84px;justify-content:center;text-align:center}
.agv .agv-piece small{font-size:11px;text-transform:uppercase;color:#6b6485;font-weight:700}
.agv .agv-piece b{font-size:20px;color:#1e1b4b;word-break:break-word}
.agv .agv-piece-base{border-style:solid;border-color:#db2777;background:#fdf2f8}
.agv .agv-piece-ok{border-style:solid;border-color:#16a34a;background:#f0fdf4}
.agv .agv-piece-ko{border-style:solid;border-color:#f59e0b;background:#fffbeb}
.agv .agv-piece-fr{font-size:12px;color:#6b6485}
.agv .agv-piece-juste{font-size:13px;color:#15803d;font-weight:700}
.agv .agv-trio{margin-top:8px;font-size:15px}
.agv .agv-trou{border:1px solid #e5e7eb;border-radius:12px;padding:10px 12px;margin:0 0 10px;background:#fff}
.agv .agv-trou-p{font-size:17px;line-height:1.6;color:#1e1b4b;margin:0 0 8px}
.agv .agv-trou-gros{font-size:19px;margin:8px 0 12px}
.agv .agv-num{display:inline-block;min-width:24px;height:24px;line-height:24px;text-align:center;border-radius:50%;
  background:#db2777;color:#fff;font-size:13px;font-weight:700;margin-right:8px}
.agv .agv-vide{display:inline-block;min-width:70px;padding:0 6px;border-bottom:2px solid #9ca3af;text-align:center;font-weight:700}
.agv .agv-vide-ok{color:#15803d;border-color:#16a34a}
.agv .agv-vide-ko{color:#b45309;border-color:#f59e0b}
.agv .agv-boutons-petits .gw-b{padding:7px 12px;font-size:15px}
.agv .agv-defi{display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px;margin:10px 0;
  border-radius:16px;background:linear-gradient(135deg,#fdf2f8,#eff6ff)}
.agv .agv-defi small{font-size:13px;color:#6b6485;font-weight:700}
.agv .agv-defi-b b{font-size:30px}
.agv .agv-flamme{margin-left:10px;padding:2px 9px;border-radius:999px;background:#f3f4f6;color:#6b7280;font-weight:700;transition:all .3s}
.agv .agv-flamme-on{background:#fee2e2;color:#b91c1c;transform:scale(1.08)}
@media (max-width:640px){
  .agv .agv-onglets{grid-template-columns:repeat(2,minmax(0,1fr))}
  .agv .agv-ligne{grid-template-columns:repeat(3,minmax(0,1fr))}
  .agv .agv-ligne .agv-fr{grid-column:1 / -1}
  .agv .agv-entete span:last-child{display:none}
  .agv .agv-piece b{font-size:17px}
}
@media (prefers-reduced-motion:reduce){ .agv .agv-flamme{transition:none} }

/* ==== agora-verbes : fin des styles ==== */

/* ==== larzan : styles ==== */
/* ⚠️ Préfixe `lz-` : cherché nu dans index.html avant de l'adopter (piège N).
   Le plateau est projeté : fond sombre, tout en `em`, la racine mêle les
   deux dimensions de l'écran comme les simulateurs (§7.70). Le téléphone et
   l'écran prof restent clairs. Toutes les couleurs sont littérales (§7.58). */

/* ---------- le plateau ---------- */
.lz-plateau{
  position:fixed; inset:0; z-index:9500; overflow:hidden;
  background:#0E1116; color:#E8EDF4;
  /* ⚠️ Plus gros que les simulateurs : mesuré en 1280×720, le mois joué
     laissait la moitié basse de l'écran vide avec des chiffres en 12 px.
     On écrit grand, et `lzAjuster` ne fait que RÉDUIRE quand ça déborde. */
  font-size:clamp(12px, .9vw + .9vh, 28px); line-height:1.35;
  display:flex; flex-direction:column;
}
.lz-charge{ align-items:center; justify-content:center; gap:1em; }
.lz-top{ flex:0 0 auto; display:flex; align-items:center; gap:.8em; padding:.45em 1em;
  background:#171D26; border-bottom:1px solid #2C3644; }
.lz-top b{ font-size:1.3em; }
.lz-top span{ font-size:.8em; letter-spacing:.1em; text-transform:uppercase; color:#97A3B4; font-weight:700; }
.lz-top i{ margin-left:auto; font-style:normal; font-family:ui-monospace,Consolas,monospace; color:#E0A13A; font-weight:800; }
.lz-err{ margin:.4em 1em; padding:.4em .7em; border-radius:.4em; background:rgba(216,80,60,.18);
  border:1px solid #D8503C; color:#FFD2CA; font-size:.95em; }
.lz-corps{ flex:1 1 auto; padding:.8em 1.2em; display:flex; flex-direction:column; gap:.7em; min-height:0; }
.lz-corps h2{ margin:0; font-size:1.7em; line-height:1.15; }
.lz-sur{ font-size:.78em; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:#E0A13A; }

/* l'accueil */
.lz-acc{ flex-direction:row; align-items:center; justify-content:center; gap:3em; }
.lz-acc-g{ display:flex; flex-direction:column; align-items:flex-start; gap:.4em; max-width:34em; }
.lz-acc h1{ margin:0; font-size:3.2em; line-height:1; }
.lz-acc-s{ margin:0; font-size:1.35em; color:#E0A13A; font-weight:700; }
.lz-acc-t{ margin:.6em 0 0; font-size:1.2em; }
.lz-code{ font-family:ui-monospace,Consolas,monospace; font-size:4.2em; font-weight:800; letter-spacing:.14em; color:#FFFFFF; }
.lz-acc-n{ margin:0; color:#97A3B4; font-size:1.05em; }
.lz-acc-d{ display:flex; flex-direction:column; align-items:center; gap:.8em; }
.lz-acc-d canvas, .lz-acc-d img, .lz-acc-d svg{ background:#FFFFFF; padding:.5em; border-radius:.5em; }
.lz-acc-l{ font-size:.9em; color:#B7C1CF; display:flex; flex-direction:column; gap:.2em; max-width:28em; }
.lz-acc-l b{ color:#E0A13A; }

/* les tables */
.lz-tables{ display:grid; gap:.6em; grid-template-columns:repeat(4,minmax(0,1fr)); }
.lz-tables-2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.lz-tables-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.lz-table{ background:#171D26; border:1px solid #2C3644; border-top:.3em solid #E0A13A; border-radius:.55em;
  padding:.45em .6em; display:flex; flex-direction:column; gap:.25em; min-width:0; }
.lz-t-h{ display:flex; align-items:center; gap:.5em; }
.lz-t-h img{ width:2.6em; height:2.6em; object-fit:cover; border-radius:.35em; }
.lz-t-h b{ font-size:1.1em; }
.lz-t-l{ display:grid; grid-template-columns:1fr auto auto; gap:.4em; align-items:baseline; }
.lz-t-l span{ font-size:.85em; color:#B7C1CF; }
.lz-t-l b{ font-family:ui-monospace,Consolas,monospace; font-size:1.05em; white-space:nowrap; }
.lz-t-mal b{ color:#F08A78; }
.lz-d{ font-style:normal; font-size:.72em; font-weight:800; font-family:ui-monospace,Consolas,monospace;
  padding:.05em .4em; border-radius:99em; white-space:nowrap; }
.lz-d-p{ background:#4E9B72; color:#0E1116; }
.lz-d-m{ background:#D8503C; color:#FFFFFF; }
.lz-t-v{ font-size:.78em; color:#8FD3AE; font-family:ui-monospace,Consolas,monospace; }
.lz-t-ko{ color:#F08A78; }
.lz-t-n{ display:flex; flex-direction:column; gap:.1em; font-size:.8em; color:#D6DEE8;
  border-top:1px solid #2C3644; padding-top:.25em; }
.lz-t-a{ font-size:.85em; font-weight:800; color:#FFB4A6; animation:lz-clignote 1s ease-in-out 5; }
@keyframes lz-clignote{ 50%{ opacity:.35; } }

/* les tris */
.lz-tri{ flex-direction:row; align-items:stretch; gap:1.2em; }
.lz-tri-g{ flex:1 1 55%; display:flex; flex-direction:column; gap:.5em; min-width:0; }
.lz-tri-d{ flex:1 1 45%; min-width:0; }
.lz-tri-img{ width:100%; max-height:12em; aspect-ratio:16/6; object-fit:cover; border-radius:.5em; }
.lz-tri-nom{ font-size:1.9em !important; }
.lz-tri-m{ font-family:ui-monospace,Consolas,monospace; font-size:2em; font-weight:800; color:#E0A13A; }
.lz-opts{ display:flex; gap:.5em; flex-wrap:wrap; }
.lz-opt{ flex:1 1 9em; display:flex; flex-direction:column; gap:.15em; padding:.5em .7em; border-radius:.5em;
  background:#1F2733; border:1px solid #2C3644; min-width:0; }
.lz-opt b{ font-size:1.1em; }
.lz-opt span{ font-size:.8em; color:#97A3B4; }
.lz-opt-ok{ border-color:#4E9B72; background:rgba(78,155,114,.22); }
.lz-opt-non{ opacity:.55; }
.lz-opt-bar{ display:block; position:relative; height:1.1em; margin-top:.2em; border-radius:.3em; background:#131922; font-style:normal; }
.lz-opt-bar u{ position:absolute; left:0; top:0; bottom:0; border-radius:.3em; background:#E0A13A; transition:width .7s ease; }
.lz-opt-bar em{ position:relative; font-style:normal; font-size:.75em; padding-left:.4em; color:#FFFFFF; font-weight:700; }
.lz-why{ margin:0; padding:.5em .7em; border-left:.3em solid #4E9B72; background:rgba(78,155,114,.12);
  border-radius:.4em; font-size:1.1em; }
.lz-attente{ margin:0; color:#B7C1CF; font-size:1.05em; }

.lz-bt{ display:flex; flex-direction:column; gap:.5em; }
.lz-bt-2{ display:grid; grid-template-columns:1fr 1fr; gap:.5em; }
.lz-bt-c{ display:flex; flex-direction:column; gap:.35em; background:#171D26; border:1px solid #2C3644;
  border-radius:.5em; padding:.45em; }
.lz-bt-h{ font-weight:800; font-size:1em; text-align:center; }
.lz-bt-h em, .lz-bz-t em{ display:block; font-style:normal; font-size:.78em; color:#E0A13A; font-weight:700; }
.lz-bz{ display:flex; flex-direction:column; gap:.15em; background:#131922; border-radius:.4em; padding:.3em .4em; }
.lz-bz-t{ display:flex; justify-content:space-between; gap:.4em; font-size:.85em; font-weight:700; }
.lz-bz-t b{ font-family:ui-monospace,Consolas,monospace; }
.lz-bz-l{ display:flex; justify-content:space-between; gap:.5em; font-size:.8em; color:#D6DEE8;
  animation:lz-entre .45s ease-out both; }
.lz-bz-l b{ font-family:ui-monospace,Consolas,monospace; white-space:nowrap; }
.lz-bz-a, .lz-bz-immo, .lz-bz-circ{ border-left:.25em solid #5B8FB9; }
.lz-bz-p, .lz-bz-dettes{ border-left:.25em solid #D8503C; }
.lz-bz-cp, .lz-bz-patri{ border-left:.25em solid #4E9B72; }
.lz-bt-hors{ font-size:.8em; color:#97A3B4; }
.lz-bt-eg{ text-align:center; font-family:ui-monospace,Consolas,monospace; font-weight:800; font-size:1.15em; color:#8FD3AE; }
@keyframes lz-entre{ from{ opacity:0; transform:translateY(-.4em); } to{ opacity:1; transform:none; } }

/* les questions */
.lz-q-g{ display:grid; gap:.6em; grid-template-columns:repeat(4,minmax(0,1fr)); }
.lz-q-1{ grid-template-columns:minmax(0,40em); justify-content:center; }
.lz-q-b{ background:#171D26; border:1px solid #2C3644; border-radius:.55em; padding:.5em; display:flex; flex-direction:column; gap:.35em; }
.lz-q-r{ font-weight:800; color:#E0A13A; }
.lz-q-t{ margin:0; font-size:1em; }
.lz-q-n{ font-style:normal; font-size:.8em; color:#B7C1CF; }
.lz-q-bilan{ max-width:60em; }

/* les mots, les situations, le mois joué */
.lz-mot-h{ display:flex; gap:1.2em; align-items:flex-start; }
.lz-mot-h img{ flex:0 0 32%; width:32%; aspect-ratio:4/3; object-fit:cover; border-radius:.6em; }
.lz-mot ul{ margin:.5em 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:.45em; }
.lz-mot li{ font-size:1.3em; line-height:1.35; padding-left:.8em; border-left:.25em solid #E0A13A;
  animation:lz-entre .5s ease-out both; animation-delay:calc(var(--lz-r, 0) * .15s); }
.lz-sit-h{ display:flex; gap:1.2em; align-items:flex-start; }
.lz-sit-h img{ flex:0 0 30%; width:30%; aspect-ratio:16/9; object-fit:cover; border-radius:.6em; }
.lz-sit-t{ margin:.3em 0 0; font-size:1.35em; line-height:1.35; }
.lz-sit-p{ margin:.5em 0 0; font-size:1.05em; color:#B7C1CF; }
.lz-sit-vote{ color:#E0A13A; font-weight:700; }
.lz-joue-c{ margin:0; font-size:1.2em; padding:.4em .7em; border-left:.3em solid #E0A13A; background:#171D26; border-radius:.4em; }

/* la bascule */
.lz-bas-t{ display:flex; flex-direction:column; gap:.2em; }
.lz-bas-l{ display:grid; grid-template-columns:1fr 1fr .8fr; gap:.8em; padding:.3em .6em; border-radius:.35em;
  background:#171D26; font-size:1em; animation:lz-entre .4s ease-out both; }
.lz-bas-h{ background:transparent; font-weight:800; color:#97A3B4; font-size:.85em; text-transform:uppercase; letter-spacing:.08em; }
.lz-bas-l b{ color:#E0A13A; }
.lz-bas-neuf{ outline:.15em solid #E0A13A; }
.lz-bas-p{ margin:0; font-size:1.25em; padding:.5em .8em; background:rgba(224,161,58,.12); border-radius:.5em; }

/* la fin */
.lz-titres{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.6em; }
.lz-titre{ display:flex; flex-direction:column; align-items:center; gap:.2em; padding:.7em; background:#171D26;
  border:1px solid #7A5A20; border-radius:.6em; text-align:center; }
.lz-titre span{ font-size:2.2em; }
.lz-titre b{ font-size:1em; }
.lz-titre em{ font-style:normal; font-size:1.25em; color:#E0A13A; font-weight:800; }
.lz-fin-q{ margin:0; font-size:1.3em; font-weight:700; text-align:center; }

/* ---------- le téléphone, le Maître ---------- */
.lz-tel{ max-width:30rem; margin:0 auto; padding:16px; min-height:100vh; display:flex; flex-direction:column; gap:12px;
  background:#FFFDF8; color:#1A1430; font-size:16px; }
.lz-tel h1{ margin:0; text-align:center; font-size:26px; }
.lz-tel-logo{ display:flex; justify-content:center; margin-top:18px; }
.lz-tel-chapo{ margin:0; text-align:center; color:#475569; }
.lz-tel-in{ width:100%; padding:12px; font-size:18px; border:2px solid #CBD5E1; border-radius:10px; }
.lz-tel-go{ width:100%; padding:14px; font-size:17px; font-weight:800; color:#1A1305; background:#E0A13A;
  border:none; border-radius:10px; cursor:pointer; }
.lz-tel-go[disabled]{ opacity:.5; }
.lz-tel-tete{ display:flex; gap:10px; align-items:center; padding:8px; background:#1E2330; color:#F8FAFC; border-radius:12px; }
.lz-tel-tete img{ width:64px; height:64px; object-fit:cover; border-radius:8px; flex:0 0 auto; }
.lz-tel-tete b{ display:block; font-size:15px; }
.lz-tel-tete p{ margin:2px 0 0; font-size:13px; color:#CBD5E1; line-height:1.3; }
.lz-tel-role{ font-size:12px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:#F2C265; }
.lz-tel-wait{ text-align:center; color:#64748B; margin:18px 0; font-size:17px; }
.lz-tel-bloc{ display:flex; flex-direction:column; gap:8px; }
.lz-tel-q{ margin:6px 0 0; font-weight:800; font-size:16px; }
.lz-tel-sous{ margin:0; color:#64748B; font-size:13px; }
.lz-tel-b{ display:flex; flex-direction:column; align-items:flex-start; gap:2px; text-align:left; padding:12px 14px;
  background:#FFFFFF; border:2px solid #E2E8F0; border-radius:10px; font-size:16px; cursor:pointer; color:#1A1430; }
.lz-tel-b span{ font-size:13px; color:#64748B; }
.lz-tel-b.lz-tel-on{ border-color:#E0A13A; background:#FFF3DC; }
.lz-tel-ligne{ margin:0; padding:10px 12px; background:#F1F5F9; border-radius:10px; font-size:17px; font-weight:700;
  display:flex; justify-content:space-between; gap:10px; }
.lz-tel-ligne b{ color:#B45309; white-space:nowrap; }
.lz-tel-rep{ padding:12px; border-radius:10px; background:#ECFDF5; border:1px solid #6EE7B7; }
.lz-tel-rep p{ margin:4px 0; }
.lz-tel-apercu{ margin:0; padding:10px 12px; border-radius:10px; background:#EFF6FF; font-size:14px; }
.lz-rouge{ color:#DC2626; }
.lz-tel-nb{ display:flex; flex-direction:column; gap:8px; }
.lz-tel-nbl{ display:flex; justify-content:space-between; align-items:center; gap:8px; padding:10px 12px; background:#FFFFFF;
  border:1px solid #E2E8F0; border-radius:10px; }
.lz-tel-nbl b{ font-family:ui-monospace,Consolas,monospace; }
.lz-m-tete{ display:flex; gap:10px; align-items:center; }
.lz-m-tete span{ display:block; font-size:13px; color:#64748B; }
.lz-m-ong{ display:flex; gap:6px; }
.lz-m-ong button{ flex:1; padding:8px; border:1px solid #CBD5E1; background:#FFFFFF; border-radius:8px; cursor:pointer; font-size:14px; }
.lz-m-ong button.lz-on{ background:#1E2330; color:#FFFFFF; border-color:#1E2330; }
.lz-m-corps{ display:flex; flex-direction:column; gap:10px; padding-bottom:90px; }
.lz-m-ecran{ margin:0; }
.lz-m-qui div{ display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
.lz-m-qui span{ padding:2px 8px; border-radius:99px; background:#E2E8F0; font-size:13px; }
.lz-m-qui span.lz-ok{ background:#BBF7D0; }
.lz-m-b2{ padding:10px; border:1px solid #CBD5E1; background:#FFFFFF; border-radius:10px; cursor:pointer; }
.lz-m-g{ display:flex; flex-direction:column; gap:4px; }
.lz-m-j{ display:flex; justify-content:space-between; gap:8px; align-items:center; font-size:14px; }
.lz-m-j select{ max-width:55%; }
.lz-m-carte{ display:flex; flex-direction:column; gap:2px; text-align:left; padding:10px; border:1px solid #E2E8F0;
  background:#FFFFFF; border-radius:10px; cursor:pointer; }
.lz-m-carte span{ font-size:13px; color:#64748B; }
.lz-m-carte.lz-on{ border-color:#E0A13A; background:#FFF3DC; }
.lz-m-barre{ position:fixed; left:0; right:0; bottom:0; padding:10px 16px; background:#FFFDF8; border-top:1px solid #E2E8F0;
  display:flex; flex-direction:column; gap:4px; max-width:30rem; margin:0 auto; }

/* ---------- l'écran prof ---------- */
.lz-prof{ display:flex; flex-direction:column; gap:12px; }
.lz-prof-tete{ display:flex; gap:14px; align-items:center; }
.lz-prof-tete h3{ margin:0 0 4px; }
.lz-prof-tete p{ margin:0; color:#475569; }
.lz-prof-creer{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.lz-prof-creer input{ padding:8px 10px; border:1px solid #CBD5E1; border-radius:8px; }
.lz-prof-neuve{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; padding:12px; border-radius:10px; background:#F8FAFC; border:1px solid #E2E8F0; }
.lz-prof-neuve div{ display:flex; flex-direction:column; }
.lz-prof-neuve b{ font-family:ui-monospace,Consolas,monospace; font-size:22px; }
.lz-prof-secret b{ color:#B45309; }
.lz-prof-qr{ display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.lz-prof-liste{ display:flex; flex-direction:column; gap:6px; }
.lz-prof-l{ display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap;
  padding:8px 10px; border:1px solid #E2E8F0; border-radius:8px; }
.lz-prof-l span{ color:#64748B; }
.lz-prof-l button{ margin-left:6px; padding:6px 10px; border:1px solid #CBD5E1; background:#FFFFFF; border-radius:8px; cursor:pointer; }

@media (max-width:1000px){
  .lz-tables{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lz-q-g{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lz-titres{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce){
  .lz-plateau *{ animation:none !important; transition:none !important; }
}
/* ==== larzan : fin des styles ==== */
/* ==== anglais-ml : styles ==== */
/* Anglais micro-lycée — la phonologie. Tout est préfixé aml- (piège N). */
.aml .aml-ecouter{display:flex;align-items:center;gap:8px;margin:10px 0;padding:8px 12px;border-radius:12px;
  background:#f0fdfa;border:2px solid #99f6e4;width:max-content;max-width:100%}
.aml .aml-ecouter span{font-weight:700;color:#0f766e}
.aml .aml-mots{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.aml .aml-mot{padding:9px 13px;border:2px solid #d1d5db;border-radius:12px;background:#fff;color:#1e1b4b;
  font:inherit;font-size:18px;cursor:pointer;transition:transform .15s,background .15s}
.aml .aml-mot:disabled{cursor:default}
.aml .aml-mot-on{background:#ccfbf1;border-color:#0f766e;font-weight:700;transform:scale(1.06)}
.aml .aml-mot-ok{background:#dcfce7;border-color:#16a34a;color:#14532d;font-weight:800}
.aml .aml-mot-oubli{background:#fffbeb;border-color:#f59e0b;border-style:dashed;color:#92400e;font-weight:800}
.aml .aml-mot-trop{background:#f3f4f6;border-color:#d1d5db;color:#9ca3af;text-decoration:line-through}
.aml .aml-rythme{display:flex;flex-wrap:wrap;align-items:flex-end;gap:4px 10px;margin:10px 0 4px;padding:10px 12px;
  border-radius:12px;background:#f8fafc}
.aml .aml-rythme span{display:inline-flex;flex-direction:column;align-items:center;line-height:1.1}
.aml .aml-rythme i{font-style:normal;color:#0f766e}
.aml .aml-r-fort{font-size:22px;font-weight:800;color:#0f766e}
.aml .aml-r-fort i{font-size:18px}
.aml .aml-r-faible{font-size:14px;color:#6b7280}
.aml .aml-r-faible i{font-size:12px;color:#9ca3af}
.aml .aml-trad{margin-top:8px;font-size:15px}
.aml .aml-phrase-gros{font-size:21px;line-height:1.6;color:#1e1b4b;margin:10px 0 12px}
.aml .aml-relief-mot{color:#b45309;background:#fef3c7;padding:0 5px;border-radius:6px;letter-spacing:.02em}
.aml .aml-nombres{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:8px 0 12px}
.aml .aml-nombre{font-size:22px;font-weight:800;padding:10px 0}
.aml .aml-bulle{display:flex;flex-direction:column;gap:3px;max-width:88%;padding:10px 14px;border-radius:16px;margin:8px 0;font-size:18px}
.aml .aml-bulle small{font-size:12px;font-weight:700;text-transform:uppercase;color:#6b7280}
.aml .aml-bulle-a{background:#f1f5f9;border-bottom-left-radius:4px}
.aml .aml-bulle-b{background:#ccfbf1;margin-left:auto;border-bottom-right-radius:4px}
@media (max-width:640px){
  .aml .aml-mot{font-size:16px;padding:8px 10px}
  .aml .aml-phrase-gros{font-size:18px}
  .aml .aml-nombres{grid-template-columns:repeat(3,minmax(0,1fr))}
  .aml .aml-bulle{max-width:100%}
}
@media (prefers-reduced-motion:reduce){ .aml .aml-mot{transition:none} }

/* ==== anglais-ml : fin des styles ==== */

/* ==== tienbo : styles ==== */
/* ⚠️ Préfixe `tlb-` : cherché nu dans index.html avant de l'adopter (piège N) —
   `tb-` était déjà pris. Le plateau est projeté : fond sombre, tout en `em`,
   racine qui mêle les deux dimensions de l'écran (§7.70). Le téléphone et
   l'écran prof restent clairs. Couleurs littérales (§7.58). */

/* ---------- le plateau ---------- */
.tlb-plateau{ position:fixed; inset:0; z-index:9500; overflow:hidden; background:#0B1A24; color:#E8F1F5;
  /* ⚠️ Mesuré en 1280×720 : à .85vw + .85vh, le dépouillement laissait le
     tiers bas de l'écran vide avec des verdicts en 14 px. On écrit grand ;
     `tlbAjuster` ne fait que RÉDUIRE quand ça déborde. */
  font-size:clamp(13px, 1.1vw + 1.1vh, 32px); line-height:1.35; display:flex; flex-direction:column; }
.tlb-charge{ align-items:center; justify-content:center; gap:1em; }
.tlb-top{ flex:0 0 auto; display:flex; align-items:center; gap:.7em; padding:.4em 1em; background:#10283A; border-bottom:1px solid #22455E; flex-wrap:wrap; }
.tlb-top > b{ font-size:1.25em; }
.tlb-top > span{ font-size:.78em; letter-spacing:.1em; text-transform:uppercase; color:#8FB3C7; font-weight:700; }
.tlb-top > i{ margin-left:auto; font-style:normal; font-family:ui-monospace,Consolas,monospace; color:#E9C27A; font-weight:800; }
.tlb-jauges{ display:flex; gap:.9em; align-items:center; font-weight:800; font-size:.95em; }
.tlb-jauges span{ white-space:nowrap; }
.tlb-mal{ color:#FF9C8A; }
.tlb-alerte{ color:#FFB4A6; animation:tlb-clignote 1s ease-in-out infinite; }
@keyframes tlb-clignote{ 50%{ opacity:.35; } }
.tlb-err{ margin:.4em 1em; padding:.4em .7em; border-radius:.4em; background:rgba(216,80,60,.18); border:1px solid #D8503C; color:#FFD2CA; font-size:.95em; }
.tlb-corps{ flex:1 1 auto; padding:.8em 1.2em; display:flex; flex-direction:column; gap:.7em; min-height:0; }
.tlb-corps h2{ margin:0; font-size:1.65em; line-height:1.15; }
.tlb-sur{ font-size:.78em; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:#E9C27A; }

.tlb-acc{ flex-direction:row; align-items:center; justify-content:center; gap:3em; }
.tlb-acc-g{ display:flex; flex-direction:column; align-items:flex-start; gap:.4em; max-width:34em; }
.tlb-acc h1{ margin:0; font-size:3.2em; line-height:1; }
.tlb-acc-s{ margin:0; font-size:1.3em; color:#E9C27A; font-weight:700; }
.tlb-acc-t{ margin:.6em 0 0; font-size:1.15em; }
.tlb-code{ font-family:ui-monospace,Consolas,monospace; font-size:4em; font-weight:800; letter-spacing:.14em; color:#FFFFFF; }
.tlb-acc-n{ margin:0; color:#8FB3C7; }
.tlb-acc-d{ display:flex; flex-direction:column; align-items:center; gap:.8em; }
.tlb-acc-d canvas, .tlb-acc-d img, .tlb-acc-d svg{ background:#FFFFFF; padding:.5em; border-radius:.5em; }
.tlb-acc-l{ font-size:.88em; color:#B9D0DC; display:flex; flex-direction:column; gap:.2em; max-width:30em; }

.tlb-mot-h, .tlb-sit-h, .tlb-bandeau{ display:flex; gap:1.1em; align-items:flex-start; }
.tlb-mot-h img{ flex:0 0 34%; width:34%; aspect-ratio:16/9; object-fit:cover; border-radius:.6em; }
.tlb-sit-h img, .tlb-bandeau img{ flex:0 0 28%; width:28%; aspect-ratio:16/9; object-fit:cover; border-radius:.6em; }
.tlb-mot ul{ margin:.5em 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:.45em; }
.tlb-mot li{ font-size:1.25em; padding-left:.8em; border-left:.25em solid #E9C27A; animation:tlb-entre .5s ease-out both; }
.tlb-mot-fort{ font-size:1.8em; font-weight:800; color:#E9C27A; margin:.3em 0; }
@keyframes tlb-entre{ from{ opacity:0; transform:translateY(-.4em); } to{ opacity:1; transform:none; } }
.tlb-sit-t{ margin:.3em 0 0; font-size:1.25em; line-height:1.35; }
.tlb-sit-p{ margin:.4em 0 0; font-size:1em; color:#B9D0DC; }
.tlb-bandeau{ background:#10283A; border-radius:.6em; padding:.5em; }
.tlb-bandeau p{ margin:.3em 0 0; font-size:1.1em; }
.tlb-bandeau.tlb-bandeau-rouge, .tlb-jour-h.tlb-bandeau-rouge{ background:#3A1414 !important; border:1px solid #D8503C; }

.tlb-choix{ display:flex; flex-direction:column; gap:.4em; }
.tlb-choix-l{ display:grid; grid-template-columns:2.4em 1fr; gap:.2em .6em; padding:.45em .7em; background:#10283A; border:1px solid #22455E; border-radius:.5em; }
.tlb-choix-l b{ grid-row:span 2; font-size:1.3em; color:#E9C27A; }
.tlb-choix-l span{ font-size:1.1em; }
.tlb-choix-l em{ font-style:normal; font-size:.85em; color:#8FB3C7; }
.tlb-choix-l.tlb-choix-on{ border-color:#4FC08D; background:rgba(79,192,141,.18); }

.tlb-modes{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.5em; }
.tlb-mode{ display:flex; flex-direction:column; gap:.3em; padding:.6em; background:#10283A; border:2px solid transparent; border-radius:.5em; }
.tlb-mode b{ font-size:1.05em; }
.tlb-mode span{ font-size:.85em; color:#F3F7F9; }
.tlb-inc{ display:flex; flex-direction:column; gap:.35em; padding:.6em; background:#10283A; border-radius:.5em; }
.tlb-inc p{ margin:0; }
.tlb-opt{ display:flex; justify-content:space-between; gap:.6em; padding:.3em .5em; background:#0B1A24; border-radius:.35em; }
.tlb-opt em{ font-style:normal; color:#E9C27A; white-space:nowrap; }
.tlb-demo-t{ display:flex; gap:1em; flex-wrap:wrap; font-size:1.3em; font-weight:800; }

.tlb-tuiles{ display:grid; gap:.55em; grid-template-columns:repeat(3,minmax(0,1fr)); }
.tlb-tuiles-4{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.tlb-tuile{ background:#10283A; border:1px solid #22455E; border-top:.3em solid #3FB6C8; border-radius:.55em; padding:.45em .55em; display:flex; flex-direction:column; gap:.3em; min-width:0; }
.tlb-tuile-h{ display:flex; align-items:center; gap:.5em; }
.tlb-tuile-h img{ width:2.6em; height:2.6em; object-fit:cover; border-radius:.35em; flex:0 0 auto; }
.tlb-tuile-h div{ display:flex; flex-direction:column; min-width:0; }
.tlb-tuile-h div b{ font-size:1.05em; }
.tlb-tuile-h div span{ font-size:.72em; color:#8FB3C7; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tlb-tuile-h i{ margin-left:auto; font-style:normal; white-space:nowrap; }
.tlb-tuile-h i em{ font-style:normal; color:#E9C27A; font-size:.8em; letter-spacing:-.05em; }
.tlb-tuile-c{ display:flex; flex-direction:column; gap:.2em; font-size:.9em; }
.tlb-tuile-c em{ font-style:normal; color:#B9D0DC; font-size:.9em; }
.tlb-pions{ display:flex; gap:.35em; }
.tlb-pion{ font-style:normal; display:inline-flex; align-items:center; justify-content:center; width:1.8em; height:1.8em; border-radius:50%; background:#0B1A24; }
.tlb-pion-encours{ outline:.14em solid #E9C27A; animation:tlb-clignote 1.4s ease-in-out infinite; }
.tlb-jour-h{ display:flex; align-items:center; gap:1em; padding:.3em .6em; border-radius:.5em; }
.tlb-chrono{ font-family:ui-monospace,Consolas,monospace; font-size:2.4em; font-weight:800; color:#FFFFFF; }
.tlb-chrono.tlb-chrono-fin{ color:#FF9C8A; }
.tlb-file{ display:flex; flex-direction:column; gap:.3em; padding:.45em .6em; background:#10283A; border-radius:.5em; }
.tlb-file div{ display:flex; flex-wrap:wrap; gap:.4em; }
.tlb-file span{ padding:.1em .6em; border-radius:99em; background:#0B1A24; font-size:.85em; }
.tlb-file span.tlb-plein{ background:#7A2A20; }
.tlb-bilan-j{ font-weight:800; color:#E9C27A; font-size:1.1em; }
.tlb-verdicts{ display:flex; flex-direction:column; gap:.1em; font-size:.85em; }
.tlb-lumieres{ display:flex; gap:.5em; flex-wrap:wrap; }
.tlb-lumieres b{ padding:.1em .5em; border-radius:.35em; background:#0B1A24; font-size:.9em; }
.tlb-lumieres-g b{ font-size:1.2em; }
.tlb-vert{ color:#7FE0B0; }
.tlb-rouge{ color:#FF9C8A; }
.tlb-miroir{ color:#E9C27A !important; }

.tlb-fiches{ display:grid; gap:.6em; grid-template-columns:repeat(3,minmax(0,1fr)); }
.tlb-fiches-1{ grid-template-columns:minmax(0,1fr); }
.tlb-fiches-2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.tlb-fiche{ display:flex; flex-direction:column; gap:.4em; background:#10283A; border:1px solid #22455E; border-radius:.6em; padding:.6em; }
.tlb-fiches-1 .tlb-fiche{ flex-direction:row; }
.tlb-fiche img{ width:100%; aspect-ratio:16/7; object-fit:cover; border-radius:.45em; }
.tlb-fiches-1 .tlb-fiche img{ width:34%; flex:0 0 34%; aspect-ratio:4/3; }
.tlb-fiche h3{ margin:0; font-size:1.3em; }
.tlb-fiche p{ margin:0; }
.tlb-fiche ul{ margin:0; padding-left:1.1em; }
.tlb-fiche-def{ font-size:1.12em; font-weight:700; }
.tlb-fiche-vecu{ color:#B9D0DC; }
.tlb-fiche-piege{ color:#FFCB8A; }
.tlb-voile{ position:absolute; inset:0; background:rgba(3,10,16,.82); display:flex; align-items:center; justify-content:center; padding:2em; z-index:3; }
.tlb-voile-c{ max-width:70em; width:100%; font-size:1.2em; }
.tlb-voile .tlb-fiche{ flex-direction:row; }
.tlb-voile .tlb-fiche img{ width:34%; flex:0 0 34%; aspect-ratio:4/3; }

.tlb-journal{ display:flex; flex-direction:column; gap:.2em; padding:.5em .7em; background:#10283A; border-radius:.5em; }
.tlb-journal-alt{ opacity:.8; border:1px dashed #22455E; }
.tlb-2col{ display:grid; grid-template-columns:1fr 1fr; gap:.6em; }
.tlb-miroir-t{ display:flex; flex-direction:column; gap:.25em; }
.tlb-miroir-l{ display:grid; grid-template-columns:1.2fr repeat(4,1fr); gap:.5em; padding:.35em .6em; background:#10283A; border-radius:.4em; }
.tlb-miroir-h{ background:transparent; color:#8FB3C7; font-weight:800; text-transform:uppercase; font-size:.8em; }
.tlb-decisions{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.5em; }
.tlb-dec{ display:flex; flex-direction:column; gap:.2em; padding:.5em; background:#10283A; border-radius:.5em; }
.tlb-dec em{ font-style:normal; color:#FFCB8A; font-size:.8em; }
.tlb-imprimer{ align-self:flex-start; padding:.5em 1em; font-size:1.1em; font-weight:800; border:none; border-radius:.5em; background:#E9C27A; color:#1A1305; cursor:pointer; }
#tlb-trace{ display:none; }

/* ---------- le téléphone, le Maître ---------- */
.tlb-tel{ max-width:30rem; margin:0 auto; padding:16px; min-height:100vh; display:flex; flex-direction:column; gap:12px; background:#F7FBFD; color:#10243A; font-size:16px; box-sizing:border-box; }
.tlb-tel h1{ margin:0; text-align:center; font-size:26px; }
.tlb-tel-logo{ display:flex; justify-content:center; margin-top:18px; }
.tlb-tel-chapo{ margin:0; text-align:center; color:#475569; }
.tlb-tel-in{ width:100%; padding:12px; font-size:18px; border:2px solid #CBD5E1; border-radius:10px; box-sizing:border-box; }
.tlb-tel-go{ width:100%; padding:14px; font-size:17px; font-weight:800; color:#FFFFFF; background:#1E6FA8; border:none; border-radius:10px; cursor:pointer; }
.tlb-tel-go[disabled]{ opacity:.5; }
.tlb-tel-tete{ display:flex; gap:10px; align-items:center; padding:8px; background:#10283A; color:#F8FAFC; border-radius:12px; border-left:6px solid #3FB6C8; }
.tlb-tel-tete img{ width:60px; height:60px; object-fit:cover; border-radius:8px; flex:0 0 auto; }
.tlb-tel-tete b{ display:block; font-size:15px; }
.tlb-tel-tete p{ margin:2px 0 0; font-size:13px; color:#CBD5E1; }
.tlb-tel-role{ font-size:12px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; color:#E9C27A; }
.tlb-tel-wait{ text-align:center; color:#64748B; margin:18px 0; font-size:17px; }
.tlb-tel-bloc{ display:flex; flex-direction:column; gap:8px; }
.tlb-tel-q{ margin:6px 0 0; font-weight:800; font-size:16px; }
.tlb-tel-sous{ margin:0; color:#64748B; font-size:13px; }
.tlb-tel-b{ display:flex; flex-direction:column; align-items:flex-start; gap:2px; text-align:left; padding:12px 14px; background:#FFFFFF; border:2px solid #E2E8F0; border-radius:10px; font-size:15px; cursor:pointer; color:#10243A; width:100%; box-sizing:border-box; }
.tlb-tel-b span{ font-size:13px; color:#64748B; }
.tlb-tel-b em{ font-style:normal; font-size:12px; font-weight:800; color:#1E6FA8; }
.tlb-tel-b[disabled]{ opacity:.5; }
.tlb-tel-b.tlb-tel-on{ border-color:#1E6FA8; background:#E6F2FA; }
.tlb-tel-doc{ display:flex; flex-direction:column; gap:6px; padding:12px; background:#FFFFFF; border:1px solid #E2E8F0; border-radius:10px; }
.tlb-tel-doc p{ margin:0; }
.tlb-tel-doc.tlb-doc-dom{ border-left:5px solid #CBD5E1; }
.tlb-dom{ align-self:flex-start; padding:2px 9px; border-radius:999px; background:#64748B; color:#FFFFFF; font-size:12px; font-weight:700; }
.tlb-tel-gris{ display:flex; flex-direction:column; gap:2px; padding:10px; background:#F1F5F9; border-radius:10px; color:#475569; }
.tlb-tel-gris span{ font-size:13px; }
.tlb-tel-dir{ margin:0; padding:10px 12px; border-radius:10px; background:#FFF3DC; color:#7A4B00; font-weight:800; }
.tlb-tel-ind{ padding:8px 10px; border-radius:8px; background:#ECFDF5; color:#065F46; }
.tlb-tel-detail{ padding:8px 10px; border-radius:8px; background:#FEF3C7; color:#78350F; }
.tlb-tel-chrono{ text-align:center; }
.tlb-tel-chrono .tlb-chrono{ color:#10243A; font-size:30px; }
.tlb-tel-chrono .tlb-chrono.tlb-chrono-fin{ color:#DC2626; }
.tlb-tel-appel{ padding:10px; border:1px dashed #94A3B8; background:transparent; border-radius:10px; color:#475569; cursor:pointer; }
.tlb-m-tete{ display:flex; gap:10px; align-items:center; }
.tlb-m-tete span{ display:block; font-size:13px; color:#64748B; }
.tlb-m-ong{ display:flex; gap:4px; }
.tlb-m-ong button{ flex:1; padding:8px 4px; border:1px solid #CBD5E1; background:#FFFFFF; border-radius:8px; cursor:pointer; font-size:13px; }
.tlb-m-ong button.tlb-on{ background:#10283A; color:#FFFFFF; border-color:#10283A; }
.tlb-m-corps{ display:flex; flex-direction:column; gap:10px; padding-bottom:90px; }
.tlb-m-ecran{ margin:0; }
.tlb-m-qui div{ display:flex; flex-wrap:wrap; gap:4px; margin-top:6px; }
.tlb-m-qui span{ padding:2px 8px; border-radius:99px; background:#E2E8F0; font-size:13px; }
.tlb-m-qui span.tlb-ok{ background:#BBF7D0; }
.tlb-m-b2{ padding:10px; border:1px solid #CBD5E1; background:#FFFFFF; border-radius:10px; cursor:pointer; }
.tlb-m-mini{ padding:4px 8px; border:1px solid #CBD5E1; background:#FFFFFF; border-radius:8px; cursor:pointer; font-size:12px; }
.tlb-m-g{ display:flex; flex-direction:column; gap:4px; }
.tlb-m-j{ display:flex; justify-content:space-between; gap:8px; align-items:center; font-size:14px; }
.tlb-m-j select{ max-width:50%; }
.tlb-m-carte{ display:flex; flex-direction:column; gap:2px; text-align:left; padding:10px; border:1px solid #E2E8F0; background:#FFFFFF; border-radius:10px; cursor:pointer; }
.tlb-m-carte span{ font-size:13px; color:#64748B; }
.tlb-m-carte.tlb-on{ border-color:#1E6FA8; background:#E6F2FA; }
.tlb-m-barre{ position:fixed; left:0; right:0; bottom:0; padding:10px 16px; background:#F7FBFD; border-top:1px solid #E2E8F0; display:flex; flex-direction:column; gap:4px; max-width:30rem; margin:0 auto; box-sizing:border-box; }

/* ---------- l'écran prof ---------- */
.tlb-prof{ display:flex; flex-direction:column; gap:12px; }
.tlb-prof-tete{ display:flex; gap:14px; align-items:center; }
.tlb-prof-tete h3{ margin:0 0 4px; }
.tlb-prof-tete p{ margin:0; color:#475569; }
.tlb-prof-creer{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.tlb-prof-fiche-o{ margin-top:8px; }
.tlb-prof-fiche{ display:flex; flex-direction:column; gap:8px; padding:12px 14px; border-radius:10px; background:#F8FAFC; border:1px solid #E2E8F0; }
.tlb-prof-fiche p{ margin:0; color:#475569; }
.tlb-prof-fiche label{ display:flex; flex-direction:column; gap:4px; font-size:14px; color:#334155; }
.tlb-prof-fiche input{ padding:8px 10px; border:1px solid #CBD5E1; border-radius:8px; max-width:560px; }
.tlb-prof-fiche-b{ display:flex; gap:10px; flex-wrap:wrap; }
.tlb-prof-creer input{ padding:8px 10px; border:1px solid #CBD5E1; border-radius:8px; }
.tlb-prof-neuve{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; padding:12px; border-radius:10px; background:#F8FAFC; border:1px solid #E2E8F0; }
.tlb-prof-neuve div{ display:flex; flex-direction:column; }
.tlb-prof-neuve b{ font-family:ui-monospace,Consolas,monospace; font-size:22px; }
.tlb-prof-secret b{ color:#B45309; }
.tlb-prof-qr{ display:flex; flex-direction:column; align-items:flex-start; gap:8px; }
.tlb-prof-liste{ display:flex; flex-direction:column; gap:6px; }
.tlb-prof-l{ display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; padding:8px 10px; border:1px solid #E2E8F0; border-radius:8px; }
.tlb-prof-l span{ color:#64748B; }
.tlb-prof-l button{ margin-left:6px; padding:6px 10px; border:1px solid #CBD5E1; background:#FFFFFF; border-radius:8px; cursor:pointer; }

/* ---------- les annexes de la fiche prof (fond clair, s'impriment) ---------- */
.tlb-doc-eq{ margin:10px 0 16px; }
.tlb-doc-eq h5{ margin:10px 0 6px; font-size:15px; }
.tlb-doc-j{ margin:8px 0 4px; font-weight:700; color:#334155; }
.tlb-doc-inc{ padding:8px 10px; margin:6px 0; border:1px solid #E2E8F0; border-radius:8px; break-inside:avoid; }
.tlb-doc-inc p{ margin:4px 0; }
.tlb-doc-inc ul{ margin:4px 0; padding-left:18px; }
.tlb-doc-ind{ color:#065F46; }

@media (max-width:1000px), (max-aspect-ratio:4/3){
  .tlb-tuiles{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tlb-fiches, .tlb-decisions, .tlb-modes{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  /* ⚠️ Une fiche seule garde TOUTE la largeur (17/09) : cette règle la
     coupait en deux dès que la fenêtre de projection était plus haute que
     du 4:3. Sur un écran haut, l'image passe au-dessus du texte. */
  .tlb-fiches.tlb-fiches-1{ grid-template-columns:minmax(0,1fr); }
  .tlb-corps > .tlb-fiches-1 .tlb-fiche{ flex-direction:column; }
  .tlb-corps > .tlb-fiches-1 .tlb-fiche img{ width:100%; flex:none; aspect-ratio:16/6; }
  /* ⚠️ Mesuré en 800×600 : trois fiches avec leur photo tombaient à 0,45
     d'échelle, illisibles. Sur un petit écran, le texte passe avant l'image. */
  .tlb-fiches-2 .tlb-fiche img, .tlb-fiches-3 .tlb-fiche img{ display:none; }
}
@media print{
  /* Scopé : sans le :has, TOUTE page imprimée de la plateforme sortait blanche. */
  body:has(#tlb-trace) *{ visibility:hidden; }
  #tlb-trace, #tlb-trace *{ visibility:visible; }
  #tlb-trace{ display:block; position:absolute; left:0; top:0; width:100%; color:#000000; background:#FFFFFF; font-size:11pt; }
  #tlb-trace table{ width:100%; border-collapse:collapse; margin:8pt 0; }
  #tlb-trace th, #tlb-trace td{ border:1px solid #999999; padding:3pt 4pt; text-align:left; vertical-align:top; }
  #tlb-trace caption{ text-align:left; font-weight:bold; }
  .tlb-plateau{ position:static; overflow:visible; }
}
@media (prefers-reduced-motion: reduce){
  .tlb-plateau *{ animation:none !important; transition:none !important; }
}
/* Le salon, le QR rappelé et la pause — lot du 16/09/2026. */
.tlb-tel-poste{ border-left:5px solid #CBD5E1; }
.tlb-acc-sans{ margin-top:10px; padding:8px 12px; border-radius:10px;
  background:rgba(255,255,255,.08); color:#FCD34D; font-size:15px; }
.tlb-qr-fond, .tlb-pause-fond{ position:absolute; inset:0; z-index:40;
  display:flex; align-items:center; justify-content:center; background:rgba(8,15,30,.88); }
.tlb-qr-boite, .tlb-pause-b{ background:#FFFFFF; color:#0F172A; border-radius:22px;
  padding:26px 34px; text-align:center; box-shadow:0 30px 70px rgba(0,0,0,.5); }
.tlb-qr-boite h2, .tlb-pause-b h2{ margin:0 0 12px; }
.tlb-qr-boite p, .tlb-pause-b p{ margin:12px 0 0; color:#475569; }
.tlb-prof-lien{ margin:10px 0; display:flex; flex-direction:column; gap:6px; align-items:center; }
.tlb-prof-lien code{ font-size:12.5px; color:#475569; word-break:break-all; }

/* Les diapositives du prologue (16/09/2026) : une image et trois lignes,
   lisibles du fond de la salle. */
/* ⚠️ `flex-direction:row` EXPLICITE : `.tlb-corps` est une colonne,
   et une regle qui ne redefinit que `display:flex` en herite — les
   deux moities se retrouvaient empilees. Vu a la capture, pas a la
   mesure : la mesure ne disait « aucun debordement ». */
.tlb-dia{ display:flex; flex-direction:row; gap:32px; align-items:center;
  justify-content:center; width:100%; }
.tlb-dia-img{ flex:0 0 46%; width:46%; border-radius:18px; object-fit:cover;
  max-height:64vh; box-shadow:0 20px 50px rgba(0,0,0,.45); }
.tlb-dia-t{ flex:1 1 0; min-width:0; }
.tlb-dia-t h2{ margin:6px 0 18px; }
.tlb-dia-t ul{ margin:0; padding-left:22px; }
.tlb-dia-t li{ margin-bottom:14px; line-height:1.35; }

/* Les quatre styles en couleur (16/09/2026) : fond de tuile et bandeau. */
.tlb-tuile.tlb-tuile-style{ border-width:2px; border-top-width:.3em; }
.tlb-tuile.tlb-tuile-style .tlb-tuile-h span, .tlb-tuile.tlb-tuile-style em{ color:#F3F7F9; }
.tlb-style-b{ display:flex; flex-direction:column; gap:.2em; border:2px solid; border-radius:.5em; padding:.45em .7em; margin:.3em 0; }
.tlb-style-b b{ font-size:1.15em; }
.tlb-style-b span{ font-size:.95em; color:#F3F7F9; }
.tlb-style-b i, .tlb-mode i{ font-size:.85em; color:#E3ECF1; }
/* Le compte d'une équipe au dépouillement, et le pourquoi des lumières. */
.tlb-caisse{ display:flex; flex-wrap:wrap; align-items:baseline; gap:.35em .8em; background:#10283A; border-radius:.5em; padding:.45em .7em; margin:.3em 0; }
.tlb-caisse em{ font-size:.8em; color:#9DB7C4; }
.tlb-compte{ display:flex; gap:.6em; flex-wrap:wrap; font-size:.9em; }
.tlb-pourquoi{ margin:0; font-size:.82em; line-height:1.25; color:#DCE8EE; }
.tlb-criteres{ margin:.3em 0; padding-left:1.1em; }
.tlb-criteres li{ margin:.2em 0; }
/* Qui décide, et la consigne générale du comité. */
.tlb-qui, .tlb-consigne{ background:#10283A; border-left:.3em solid #E9C27A; border-radius:.5em; padding:.45em .8em; margin:.4em 0; }
.tlb-consigne{ border-left-color:#3FB6C8; }
.tlb-sit-aide{ display:grid; gap:.6em; }
.tlb-sit-aide.tlb-sit-aide-2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.tlb-sit-aide .tlb-qui, .tlb-sit-aide .tlb-consigne{ margin:0; }
.tlb-qui p, .tlb-consigne p{ margin:.2em 0; }
/* Le débrief oral : une équipe à la fois, en grand. */
.tlb-deb-h{ display:flex; gap:1em; align-items:center; border-left:.4em solid; padding-left:.8em; }
.tlb-deb-h img{ width:34%; max-height:40vh; object-fit:cover; border-radius:.6em; }
.tlb-deb-q{ margin:.3em 0; padding-left:1.2em; font-size:1.05em; }
.tlb-deb-l{ display:grid; gap:.45em; grid-template-columns:repeat(auto-fit,minmax(14em,1fr)); margin:.6em 0; }
.tlb-deb-c{ display:flex; flex-direction:column; gap:.25em; background:#10283A; border-radius:.5em; padding:.5em .7em; }
.tlb-deb-c em{ font-size:.85em; color:#B9D0DC; }
.tlb-deb-suite{ display:flex; flex-wrap:wrap; gap:.4em; }
.tlb-deb-suite span{ border:2px solid; border-radius:999px; padding:.15em .7em; font-size:.85em; opacity:.6; }
.tlb-deb-suite span.tlb-on{ opacity:1; font-weight:800; }
.tlb-deb-suite span.tlb-fait{ opacity:.85; }

/* Le chrono du comité, la consigne en gros, les candidatures — 17/09/2026. */
.tlb-sit-titre{ display:flex; align-items:center; gap:.8em; flex-wrap:wrap; }
.tlb-min{ display:inline-block; font-family:ui-monospace,Consolas,monospace; font-weight:800; font-size:1.6em;
  padding:.15em .55em; border-radius:.45em; background:#10283A; color:#FFFFFF; border:2px solid #3FB6C8; }
.tlb-min.tlb-min-pret{ color:#B9D0DC; border-color:#22455E; font-size:1.15em; }
.tlb-min.tlb-min-fin{ color:#FFB4A6; border-color:#D8503C; animation:tlb-clignote 1s ease-in-out infinite; }
.tlb-min.tlb-min-ok{ color:#7FE0B0; border-color:#4FC08D; font-size:1.2em; }
.tlb-tel-chrono .tlb-min{ font-size:26px; }
.tlb-tel-chrono .tlb-min.tlb-min-pret, .tlb-tel-chrono .tlb-min.tlb-min-ok{ font-size:17px; }
.tlb-tel-grand{ margin:0; padding:12px 14px; border-radius:12px; background:#FFF3DC; color:#7A4B00;
  font-weight:900; font-size:21px; line-height:1.3; }
.tlb-tel-grand.tlb-tel-grand-eq{ background:#E6F2FA; color:#0F3D5E; font-size:19px; margin-bottom:8px; }
.tlb-m-min .tlb-min{ font-size:22px; align-self:flex-start; }
.tlb-m-min .tlb-min.tlb-min-pret, .tlb-m-min .tlb-min.tlb-min-ok{ font-size:15px; }
.tlb-m-mini.tlb-m-go{ background:#1E6FA8; color:#FFFFFF; border-color:#1E6FA8; font-weight:800; }
.tlb-m-mini.tlb-on{ background:#E6F2FA; border-color:#1E6FA8; font-weight:800; }
.tlb-m-mini:disabled{ opacity:.45; cursor:default; }
.tlb-cv-liste{ display:flex; flex-direction:column; gap:8px; margin:6px 0; }
.tlb-cv-titre{ font-size:15px; }
.tlb-cv{ display:flex; flex-direction:column; gap:4px; padding:10px 12px; background:#FFFFFF; border:1px solid #E2E8F0;
  border-left:5px solid #94A3B8; border-radius:10px; }
.tlb-cv.tlb-cv-exp{ border-left-color:#C98A22; }
.tlb-cv p{ margin:0; font-size:14px; line-height:1.35; }
.tlb-cv-h{ display:flex; gap:10px; align-items:center; }
.tlb-cv-h img{ width:56px; height:56px; border-radius:50%; object-fit:cover; object-position:50% 22%; flex:0 0 auto; background:#E2E8F0; }
.tlb-cv-h div{ display:flex; flex-direction:column; min-width:0; }
.tlb-cv-poste{ font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:#64748B; font-weight:700; }
.tlb-cv-badge{ font-size:12px; font-weight:800; color:#7A4B00; }
.tlb-cv .tlb-cv-plus{ color:#065F46; }
.tlb-cv .tlb-cv-moins{ color:#9A3412; }
.tlb-cv-pied{ display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; padding-top:4px; border-top:1px dashed #E2E8F0; font-size:14px; }
.tlb-cv-pied span{ color:#475569; font-size:13px; }
/* La couleur de l'équipe, les rôles, les jauges de la journée — 17/09/2026. */
.tlb-tel.tlb-tel-eq{ padding:14px 14px 18px; }
.tlb-tel-entete{ display:flex; flex-direction:column; gap:8px; }
.tlb-tel-equipe{ display:flex; gap:12px; align-items:center; padding:10px 12px; border-radius:14px; box-shadow:0 6px 16px rgba(16,36,58,.18); }
.tlb-tel-equipe img{ width:58px; height:58px; object-fit:cover; border-radius:10px; flex:0 0 auto; border:2px solid rgba(255,255,255,.7); }
.tlb-tel-equipe div{ display:flex; flex-direction:column; min-width:0; }
.tlb-tel-equipe-sur{ font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; opacity:.85; }
.tlb-tel-equipe .tlb-tel-equipe-nom{ font-size:23px; font-weight:900; line-height:1.1; }
.tlb-tel-equipe span{ font-size:14px; }
.tlb-tel-roles{ display:flex; flex-direction:column; gap:6px; }
.tlb-tel-roleb{ display:flex; flex-direction:column; gap:1px; padding:8px 12px; border:2px solid #94A3B8; border-radius:12px; }
.tlb-tel-roleb b{ font-size:19px; font-weight:900; letter-spacing:.03em; }
.tlb-tel-roleb span{ font-size:14px; font-weight:600; }
.tlb-jj{ display:flex; flex-direction:column; gap:10px; padding:12px; background:#FFFFFF; border:1px solid #E2E8F0; border-radius:12px; }
.tlb-jj-feux{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.tlb-jj-feu{ display:flex; flex-direction:column; align-items:center; gap:2px; padding:10px 6px; border-radius:12px; border:2px solid; text-align:center; }
.tlb-jj-feu b{ font-size:30px; line-height:1; }
.tlb-jj-feu span{ font-size:15px; font-weight:800; }
.tlb-jj-feu em{ font-style:normal; font-size:14px; font-weight:700; }
.tlb-jj-feu.tlb-jj-ok{ background:#ECFDF5; border-color:#10B981; color:#065F46; }
.tlb-jj-feu.tlb-jj-ko{ background:#FEF2F2; border-color:#EF4444; color:#991B1B; }
.tlb-jg{ display:flex; flex-direction:column; gap:4px; }
.tlb-jg-h{ display:flex; justify-content:space-between; gap:8px; font-size:14px; }
.tlb-jg-h span{ font-weight:700; color:#334155; }
.tlb-jg-h b{ white-space:nowrap; }
.tlb-jg-h b.tlb-jg-pos{ color:#047857; }
.tlb-jg-h b.tlb-jg-neg{ color:#B91C1C; }
.tlb-jg-barre{ position:relative; height:14px; border-radius:999px; background:#E2E8F0; overflow:hidden; }
.tlb-jg-barre i{ position:absolute; top:0; bottom:0; left:0; border-radius:999px; transition:width .6s ease; }
.tlb-jg-barre em{ position:absolute; top:-2px; bottom:-2px; width:3px; margin-left:-1px; background:#10243A; border-radius:2px; }
.tlb-jg-barre.tlb-jg-centre::after{ content:""; position:absolute; left:50%; top:0; bottom:0; width:2px; margin-left:-1px; background:#64748B; }
.tlb-jg-barre.tlb-jg-centre i{ border-radius:0; }
.tlb-jj-det summary{ cursor:pointer; font-weight:700; color:#1E6FA8; font-size:14px; }
.tlb-jj-det p{ margin:6px 0 0; font-size:14px; }
@media (prefers-reduced-motion: reduce){ .tlb-jg-barre i{ transition:none; } }
.tlb-corps > .tlb-fiches-1 .tlb-fiche{ font-size:1.3em; padding:.8em; gap:.5em; }
.tlb-notion-n{ padding:.15em .6em; border-radius:999px; background:#E9C27A; color:#10243A; font-weight:800; font-size:1em; }
/* La règle du jour guidée (style 🟠) — 17/09/2026. */
.tlb-regle{ display:flex; flex-direction:column; gap:6px; padding:14px; background:#FFF8EB; border:3px solid #E0873A; border-radius:14px; }
.tlb-regle span{ font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#9A3412; }
.tlb-regle b{ font-size:21px; line-height:1.3; color:#10243A; }
.tlb-regle p{ margin:0; font-size:15px; color:#475569; }
.tlb-regle em{ font-style:normal; font-weight:800; color:#9A3412; }
.tlb-regle-pas{ display:flex; justify-content:center; gap:10px; }
.tlb-regle-pas i{ font-style:normal; display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%; background:#E2E8F0; color:#64748B; font-weight:800; }
.tlb-regle-pas i.tlb-on{ background:#E0873A; color:#FFFFFF; }
.tlb-regle-pas i.tlb-fait{ background:#D1FAE5; }
/* L'écran de l'année, décision par décision — 17/09/2026. */
.tlb-an{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.6em; }
.tlb-an-l{ display:flex; flex-direction:column; gap:.25em; padding:.6em .75em; background:#10283A; border:1px solid #22455E; border-radius:.55em; }
.tlb-an-l b{ font-size:1.1em; }
.tlb-an-l span{ color:#B9D0DC; }
.tlb-an-l em{ font-style:normal; font-weight:800; }
.tlb-an-l em.tlb-an-vous{ color:#E9C27A; }
.tlb-an-l em.tlb-an-autre{ color:#8FB3C7; font-weight:600; }
@media (max-width:1000px), (max-aspect-ratio:4/3){ .tlb-an{ grid-template-columns:minmax(0,1fr); } }
/* Le bilan 3/3 en grand — 17/09/2026. */
.tlb-bil3 h2{ font-size:1.9em; }
.tlb-bil3-g{ display:flex; flex-direction:column; gap:.7em; }
.tlb-bil3-decs{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.55em; margin-top:.4em; }
.tlb-bil3-dec{ display:flex; flex-direction:column; gap:.2em; padding:.6em .8em; background:#10283A; border:1px solid #22455E; border-radius:.6em; }
.tlb-bil3-dec.tlb-bil3-st{ border:2px solid #E9C27A; }
.tlb-bil3-dec b{ font-size:1.25em; display:flex; gap:.5em; align-items:center; flex-wrap:wrap; }
.tlb-bil3-dec b i{ font-style:normal; font-size:.62em; padding:.1em .5em; border-radius:999px; background:#E9C27A; color:#10243A; text-transform:uppercase; letter-spacing:.06em; }
.tlb-bil3-dec span{ font-size:1.1em; color:#E8F1F5; }
.tlb-bil3-dec em{ font-style:normal; color:#FFCB8A; font-size:.9em; }
.tlb-bil3-op{ display:flex; flex-wrap:wrap; align-items:center; gap:.4em 1.2em; padding:.7em 1em; background:#10283A; border:1px solid #22455E; border-radius:.7em; }
.tlb-bil3-op .tlb-sur{ flex:1 0 100%; }
.tlb-bil3-op .tlb-bil3-trois{ flex:1 1 20em; }
.tlb-bil3-op p{ margin:0; font-size:1.15em; max-width:14em; }
.tlb-bil3-n{ display:flex; align-items:baseline; gap:.4em; }
.tlb-bil3-n b{ font-size:3.6em; line-height:1; color:#FFFFFF; }
.tlb-bil3-n span{ font-size:1.2em; color:#B9D0DC; }
.tlb-bil3-trois{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.4em; }
.tlb-bil3-trois div{ display:flex; flex-direction:column; align-items:center; padding:.4em; background:#0B1A24; border-radius:.5em; text-align:center; }
.tlb-bil3-trois b{ font-size:2.6em; line-height:1.05; }
.tlb-bil3-trois span{ font-size:.95em; }
.tlb-bil3-jaune{ color:#FCD34D; }
@media (max-width:1000px), (max-aspect-ratio:4/3){ .tlb-bil3-decs{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
/* « À vous d'expliquer » : la question avant la fiche — 21/09/2026. */
.tlb-expl{ display:flex; flex-direction:column; gap:.55em; align-items:center; text-align:center;
  padding:1em 1.2em; background:#12304A; border:3px solid #E9C27A; border-radius:.9em; }
.tlb-expl-t{ font-size:1.5em; font-weight:800; color:#E9C27A; }
.tlb-expl-q{ margin:0; font-size:2em; font-weight:800; line-height:1.25; color:#FFFFFF; max-width:22em; }
.tlb-expl-qui{ display:flex; flex-direction:column; gap:.15em; padding:.5em 1.2em;
  background:#0B1A24; border:3px solid #E9C27A; border-radius:.7em; }
.tlb-expl-qui b{ font-size:1.35em; }
.tlb-expl-qui span{ color:#B9D0DC; }
/* La décision tactique, au bilan : ni le gris de l'opérationnel, ni l'or
   du stratégique. */
.tlb-bil3-dec.tlb-bil3-ta{ border:2px solid #7FC7D9; }
.tlb-bil3-dec.tlb-bil3-ta b i{ background:#7FC7D9; color:#10243A; }

/* Le récapitulatif des cas, et le bilan consultable jusqu'au tour
   suivant — 22/09/2026. Replié par défaut : l'écran du moment reste
   l'écran du moment. */
.tlb-bilanj{ margin-top:14px; padding:10px 12px; background:#F1F5F9;
  border:1px solid #CBD5E1; border-radius:12px; }
.tlb-bilanj summary{ cursor:pointer; font-weight:800; color:#1E6FA8; font-size:15px; }
.tlb-bilanj[open] summary{ margin-bottom:10px; }
.tlb-recap-t{ margin:14px 0 6px; font-weight:800; font-size:15px; }
.tlb-recap{ display:flex; flex-direction:column; gap:9px; }
.tlb-recap-c{ padding:10px 12px; background:#FFFFFF; border:1px solid #E2E8F0;
  border-left:4px solid #94A3B8; border-radius:0 10px 10px 0; }
.tlb-recap-c b{ display:block; font-size:14px; line-height:1.4; }
.tlb-recap-ctx{ margin:6px 0 0; font-size:13.5px; line-height:1.5; color:#334155; }
.tlb-recap-dec{ margin:6px 0 0; font-size:13.5px; line-height:1.45; font-weight:600; }
.tlb-recap-res{ margin:4px 0 0; font-size:13.5px; line-height:1.45; color:#1E6FA8; }
.tlb-recap-aur{ margin:4px 0 0; font-size:12.5px; line-height:1.4; color:#64748B;
  font-style:italic; }

/* Ce que le directeur a décidé pour l'équipe, en style directif. */
.tlb-suivi{ margin-top:12px; padding:10px 12px; background:#FFF8EB;
  border:1px solid #E9C27A; border-radius:10px; }
.tlb-suivi b{ display:block; margin-bottom:6px; font-size:14px; }
.tlb-suivi p{ margin:0 0 4px; font-size:13.5px; line-height:1.45; }
/* --- Le quotidien du poste (22/09) : la file sur le telephone ------ */
.tlb-quo{ margin-top:12px; border:1px solid #CFE3F5; border-radius:12px;
  background:#F4F9FE; overflow:hidden; }
.tlb-quo-tete{ display:flex; justify-content:space-between; align-items:center;
  gap:8px; padding:8px 12px; background:#E3F0FB; }
.tlb-quo-tete b{ font-size:14px; }
.tlb-quo-tete span{ font-size:13px; font-weight:700; color:#2A5C86; }
.tlb-quo-cas{ padding:10px 12px; }
.tlb-quo-q{ margin:0 0 8px; font-size:14.5px; line-height:1.45; }
.tlb-quo-cas .tlb-tel-b{ margin-bottom:6px; }
.tlb-quo-fin{ padding:10px 12px; }
.tlb-quo-fin>p{ margin:0 0 8px; font-size:14px; font-weight:700; color:#1D5B32; }
.tlb-quo-det{ margin-bottom:6px; border-top:1px solid #DCEAF6; padding-top:6px; }
.tlb-quo-det summary{ cursor:pointer; font-size:13.5px; line-height:1.4; }
.tlb-quo-vu{ margin:6px 0 0; font-size:13px; }
.tlb-quo-why{ margin:4px 0 0; font-size:13px; line-height:1.45; color:#4A5568; }
/* Le bilan du quotidien, au depouillement projete. */
.tlb-quo-bilan{ display:flex; flex-wrap:wrap; gap:.6em 1.4em; align-items:baseline;
  margin:.5em 0; padding:.5em .9em; border-radius:.6em;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.16); }
.tlb-quo-bilan b{ font-size:1em; }
.tlb-quo-bilan span{ font-size:.95em; }

/* --- L'encadre d'estimation de l'objectif de saison ---------------- */
.tlb-estim{ margin:.6em 0; padding:.7em 1em; border-radius:.7em;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.2); }
.tlb-estim>b{ display:block; margin-bottom:.5em; font-size:1.02em; }
.tlb-estim-l{ display:flex; flex-wrap:wrap; gap:.5em 1.2em; }
.tlb-estim-l>div{ display:flex; flex-direction:column; }
.tlb-estim-l i{ font-style:normal; font-size:.82em; opacity:.8; }
.tlb-estim-l b{ font-size:1.15em; }
.tlb-estim-p{ margin:.5em 0 .4em; font-size:.92em; opacity:.9; }
.tlb-estim-bornes{ display:flex; flex-wrap:wrap; gap:.6em; margin-top:.3em; }
.tlb-estim-bornes>div{ flex:1 1 40%; min-width:0; padding:.45em .7em; border-radius:.5em;
  display:flex; flex-direction:column; }
.tlb-estim-bornes i{ font-style:normal; font-size:.82em; opacity:.85; }
.tlb-estim-bornes b{ font-size:1.25em; }
.tlb-estim-haut{ background:rgba(34,197,94,.18); }
.tlb-estim-bas{ background:rgba(239,68,68,.18); }
.tlb-estim-note{ margin:.5em 0 0; font-size:.88em; opacity:.85; line-height:1.45; }
/* ==== tienbo : fin des styles ==== */

/* ==== sak i rèst : début des styles ==== */
/* ==================================================================
   SAK I RÈST — le board game des coûts
   ------------------------------------------------------------------
   ⚠️ LE PLATEAU EST EN `em`, et sa racine mêle vw ET vh : un
      vidéoprojecteur de classe fait souvent 1024×768, parfois moins.
      Une taille en `vw` seule s'effondre sur un écran carré (§7.70).
   ⚠️ LE PRÉFIXE EST `sr-`, vérifié libre dans index.html avant d'être
      adopté (piège N) : un préfixe court déjà déclaré nu ailleurs
      habillerait tout le jeu sans qu'aucune règle ne le demande.
================================================================== */

/* ---------- le plateau --------------------------------------------- */
.sr-ecran{
  position:fixed; inset:0; z-index:9500;
  display:flex; flex-direction:column;
  background:#171009; color:#F2E6D5;
  font-size:calc(clamp(10.5px, .62vw + .62vh, 19px) * var(--smu-z,1));
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  overflow:hidden;
}
.sr-attente{ align-items:center; justify-content:center; font-size:1.4em; }

.sr-haut{
  display:flex; align-items:center; gap:.8em; padding:.5em .9em;
  background:#221709; border-bottom:1px solid #4A331A; flex:0 0 auto;
}
.sr-marque{ display:flex; flex-direction:column; line-height:1.15; }
.sr-marque b{ font-size:1.05em; letter-spacing:.02em; }
.sr-marque i{ font-size:.72em; color:#C9A97E; font-style:normal; }
.sr-haut-d{ margin-left:auto; display:flex; align-items:center; gap:.6em; }
.sr-pas{ font-size:.7em; color:#C98A3E; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }

.sr-scene{ flex:1 1 auto; min-height:0; overflow:auto; padding:.9em 1.1em; }
.sr-err{ margin:0; padding:.4em .9em; background:#5A1E14; color:#FFD9D2; font-size:.8em; }

/* ---------- la mise en place --------------------------------------- */
.sr-accueil{ display:flex; gap:1.6em; height:100%; align-items:flex-start; }
.sr-acc-g{ flex:1 1 55%; min-width:0; }
.sr-acc-g h1{ margin:.1em 0 .5em; font-size:2.1em; line-height:1.08; }
.sr-code{
  font-size:3.4em; font-weight:900; letter-spacing:.16em; color:#E0A13A;
  background:#221709; border:2px solid #C98A3E; border-radius:.2em;
  padding:.1em .3em; display:inline-block;
}
.sr-acc-url{ font-size:.85em; color:#C9A97E; margin:.5em 0 1em; }
.sr-acc-dit{ font-size:1.15em; line-height:1.4; max-width:26em; }
.sr-acc-n{ font-size:.85em; color:#C98A3E; margin-top:1em; }
.sr-acc-d{ flex:0 0 auto; display:flex; flex-direction:column; gap:.8em; align-items:center; }
.sr-acc-ilots{ display:grid; grid-template-columns:repeat(2,minmax(9em,1fr)); gap:.4em; width:100%; }
.sr-acc-ilot{
  display:flex; flex-direction:column; gap:.1em; padding:.35em .5em;
  background:#1F1509; border:1px solid #3A2A17; border-radius:.35em; font-size:.72em;
}
.sr-acc-ilot.sr-on{ border-color:#C98A3E; background:#2A1C0B; }
.sr-acc-boul{ color:#E0A13A; font-weight:700; }

/* ---------- le prologue --------------------------------------------- */
.sr-prologue{ display:flex; gap:1.4em; align-items:center; height:100%; }
.sr-prologue img{ flex:0 0 46%; max-width:46%; aspect-ratio:16/10; object-fit:cover; border-radius:.5em; }
.sr-prologue h1{ margin:0 0 .35em; font-size:2.2em; line-height:1.1; }
.sr-prologue p{ font-size:1.2em; line-height:1.4; color:#DCC9AC; }
.sr-prol-pts{ display:flex; gap:.4em; margin-top:1.2em; }
.sr-prol-pts span{ width:.7em; height:.7em; border-radius:50%; background:#4A331A; }
.sr-prol-pts span.sr-on{ background:#E0A13A; }

/* ---------- les comptoirs ------------------------------------------- */
.sr-grille{ display:grid; grid-template-columns:repeat(var(--sr-cols,3),1fr); gap:.7em; }
.sr-comptoir{
  background:#1F1509; border:1px solid #3A2A17; border-radius:.5em; padding:.6em .7em;
  display:flex; flex-direction:column; gap:.4em;
}
.sr-comptoir.sr-rev{ border-color:#C98A3E; }
.sr-c-tete{ display:flex; align-items:baseline; gap:.45em; }
.sr-c-n{
  flex:0 0 auto; width:1.5em; height:1.5em; border-radius:50%;
  background:#C98A3E; color:#171009; font-weight:900; font-size:.8em;
  display:grid; place-items:center;
}
.sr-c-tete b{ font-size:1.05em; }
.sr-c-tete i{ font-size:.7em; color:#A08A6A; font-style:normal; }
.sr-c-jauge{ height:.5em; background:#2E2010; border-radius:.25em; overflow:hidden; }
.sr-c-jauge span{ display:block; height:100%; background:#E0A13A; transition:width .4s ease; }
.sr-c-etat{ font-size:.72em; color:#C9A97E; }
.sr-rev-b{ display:flex; flex-direction:column; gap:.2em; margin-top:.25em; }
.sr-rev-b > div{ display:flex; justify-content:space-between; gap:.6em; font-size:.85em; }
.sr-rev-b b{ font-weight:600; color:#DCC9AC; }
.sr-rev-b span{ font-variant-numeric:tabular-nums; font-weight:800; }
.sr-mauvais{ color:#F08C7A; }
.sr-bon{ color:#8FD694; }

/* ---------- le bilan d'un acte -------------------------------------- */
.sr-bilan{ display:flex; gap:1.4em; height:100%; align-items:flex-start; }
.sr-bil-g{ flex:1 1 52%; min-width:0; }
.sr-bil-g h1{ margin:0 0 .5em; font-size:2em; line-height:1.1; }
.sr-bil-mot{
  font-size:1.35em; line-height:1.28; font-weight:700; color:#FFF0D9;
  padding:.5em .75em; border-left:.2em solid #E0A13A; border-radius:.4em;
  background:rgba(224,161,58,.12); margin-bottom:.7em;
}
.sr-bil-mot b{ color:#F3C475; }
.sr-bil-g ul{ margin:0; padding-left:1.1em; display:flex; flex-direction:column; gap:.3em; }
.sr-bil-g li{ font-size:1em; line-height:1.34; }
.sr-bil-g li b{ color:#E0A13A; }
.sr-bil-piege{
  margin:.7em 0 0; padding:.45em .7em; border-left:3px solid #D8503C;
  background:rgba(216,80,60,.1); border-radius:.35em; font-size:.9em; line-height:1.32;
}
.sr-bil-piege b{ color:#F08C7A; }
.sr-bil-d{ flex:1 1 44%; min-width:0; }
/* la question d'interprétation, avant que la notion soit nommée */
.sr-bil-enonce{ margin:0 0 .6em; font-size:1.2em; line-height:1.35; color:#F0E0C8; }
.sr-bil-opts{ margin:0; padding-left:1.3em; display:flex; flex-direction:column; gap:.35em; }
.sr-bil-opts li{ font-size:.98em; line-height:1.3; color:#DCC9AC; }
.sr-bil-dit{ margin:.8em 0 0; font-size:.95em; color:#C9A97E; font-style:italic; }
.sr-bil-rep{
  margin:0 0 .7em; padding:.5em .7em; border-radius:.4em;
  background:#16220F; border-left:.2em solid #8FD694;
  font-size:.98em; line-height:1.34;
}
.sr-bil-rep b{ color:#8FD694; }
.sr-bil-rep i{ color:#C9BFA8; font-style:normal; }

.sr-tab{ width:100%; border-collapse:collapse; font-size:.88em; }
.sr-tab th{
  text-align:left; font-size:.72em; text-transform:uppercase; letter-spacing:.06em;
  color:#A08A6A; padding:.3em .45em; border-bottom:1px solid #3A2A17; font-weight:800;
}
.sr-tab td{ padding:.3em .45em; border-bottom:1px solid #2A1E11; }
.sr-num{ text-align:right; font-variant-numeric:tabular-nums; font-weight:700; }

/* ---------- la trace écrite ------------------------------------------ */
.sr-trace{ background:#FFF; color:#1A1A1A; padding:1em 1.2em; border-radius:.4em; }
.sr-tr-h{ display:flex; align-items:center; gap:1em; }
.sr-tr-h h1{ margin:0; font-size:1.5em; }
.sr-tab-tr th{ color:#555; border-bottom:1px solid #CCC; }
.sr-tab-tr td{ border-bottom:1px solid #EEE; }
.sr-trace .sr-mauvais{ color:#B3261E; }
.sr-tr-notions{ display:grid; grid-template-columns:repeat(auto-fit,minmax(16em,1fr)); gap:.7em; margin-top:1em; }
.sr-tr-n{ border:1px solid #DDD; border-radius:.35em; padding:.5em .65em; }
.sr-tr-n h3{ margin:0 0 .25em; font-size:.95em; }
.sr-tr-n p{ margin:0 0 .3em; font-size:.82em; line-height:1.34; }
.sr-tr-p{ color:#7A3B32; }

/* ⚠️ ON N'IMPRIME PAS LE PLATEAU : fond sombre et boutons de pilotage
   n'ont rien à faire sur du papier. Le sélecteur est SCOPÉ par `:has`,
   sinon il rendrait blanche toute autre page imprimée de la
   plateforme (§7.83). */
@media print{
  body:has(#sr-trace) *{ visibility:hidden; }
  body:has(#sr-trace) #sr-trace, body:has(#sr-trace) #sr-trace *{ visibility:visible; }
  body:has(#sr-trace) #sr-trace{ position:absolute; inset:0; padding:0; }
  body:has(#sr-trace) .sr-tr-h button{ display:none; }
}

/* ---------- le téléphone --------------------------------------------- */
.sr-tel{
  min-height:100vh; background:#171009; color:#F2E6D5;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  display:flex; flex-direction:column;
}
.sr-tel-entree{ align-items:center; justify-content:center; gap:.6em; padding:1.5em; text-align:center; }
.sr-tel-entree h1{ margin:.2em 0 0; font-size:1.7em; }
.sr-tel-entree p{ margin:0; color:#C9A97E; }
.sr-tel input, .sr-placer input{
  width:100%; max-width:18em; padding:.65em .8em; font-size:1.1em;
  background:#221709; color:#F2E6D5; border:1px solid #4A331A; border-radius:.4em;
}
.sr-tel-tete{
  display:flex; align-items:center; gap:.6em; padding:.6em .8em;
  background:#221709; border-bottom:1px solid #4A331A; position:sticky; top:0; z-index:2;
}
.sr-tt-g{ display:flex; align-items:center; gap:.5em; }
.sr-tt-emo{ font-size:1.5em; }
.sr-tt-g b{ display:block; font-size:.95em; }
.sr-tt-g i{ display:block; font-size:.75em; color:#C9A97E; font-style:normal; }
.sr-tt-ilot{ margin-left:auto; font-size:.75em; color:#C98A3E; font-weight:800; }
.sr-tel-corps{ flex:1 1 auto; padding:.8em; }
.sr-attends{ text-align:center; color:#C9A97E; margin-top:2em; font-size:1.05em; line-height:1.4; }

.sr-placer{ padding:1em; gap:.5em; }
.sr-placer h2{ margin:.6em 0 .2em; font-size:1.15em; }
.sr-pl-ilots{ display:flex; gap:.4em; flex-wrap:wrap; }
.sr-pl-ilots button{
  flex:1 1 3em; padding:.7em 0; font-size:1.3em; font-weight:800;
  background:#221709; color:#F2E6D5; border:1px solid #4A331A; border-radius:.4em;
}
.sr-pl-ilots button.sr-on{ background:#E0A13A; color:#171009; border-color:#E0A13A; }
.sr-pl-postes{ display:flex; flex-direction:column; gap:.4em; }
.sr-pl-postes button{
  display:grid; grid-template-columns:2em 1fr; gap:.1em .6em; text-align:left;
  padding:.6em .7em; background:#221709; color:#F2E6D5;
  border:1px solid #4A331A; border-radius:.4em;
}
.sr-pl-postes button.sr-on{ border-color:#E0A13A; background:#2A1C0B; }
.sr-pl-emo{ grid-row:1/3; font-size:1.6em; align-self:center; }
.sr-pl-postes b{ font-size:1em; }
.sr-pl-postes i{ font-size:.78em; color:#C9A97E; font-style:normal; line-height:1.3; }

/* ---------- une pièce ------------------------------------------------- */
.sr-piece{
  background:#FBF6EC; color:#241A12; border-radius:.4em; padding:.7em .8em;
  border:1px solid #D8C6A8; box-shadow:0 2px 8px rgba(0,0,0,.35);
}
.sr-p-tete{ display:flex; justify-content:space-between; align-items:baseline; gap:.5em; }
.sr-p-de{ font-weight:800; font-size:.9em; }
.sr-p-genre{ font-size:.68em; text-transform:uppercase; letter-spacing:.08em; color:#8A6A42; }
.sr-piece h4{ margin:.35em 0 .15em; font-size:1em; }
.sr-p-pour{ margin:0; font-size:.82em; color:#5A4631; line-height:1.3; }
.sr-p-total{
  display:flex; justify-content:space-between; align-items:baseline;
  margin-top:.5em; padding-top:.4em; border-top:1px solid #D8C6A8; font-size:.95em;
}
.sr-p-total b{ font-size:1.2em; font-variant-numeric:tabular-nums; }
.sr-p-pied{ margin:.5em 0 0; font-size:.62em; color:#8A6A42; font-style:italic; }

/* ---------- le tri, les calculs --------------------------------------- */
.sr-tri-n, .sr-calc-n{ font-size:.75em; color:#C98A3E; font-weight:800; margin-bottom:.4em; }
.sr-tri-q{ margin:.8em 0 .5em; font-size:1.05em; font-weight:700; }
.sr-tri-o{ display:flex; flex-direction:column; gap:.4em; }
.sr-tri-o button{
  text-align:left; padding:.7em .8em; font-size:.95em; line-height:1.3;
  background:#221709; color:#F2E6D5; border:1px solid #4A331A; border-radius:.4em;
}
.sr-tri-rep, .sr-calc-rep{
  margin-top:.7em; padding:.6em .75em; border-radius:.4em;
  background:#1F1509; border-left:.2em solid #C98A3E;
}
.sr-tri-rep.sr-bon, .sr-calc-rep.sr-bon{ border-left-color:#8FD694; }
.sr-tri-rep.sr-revoir, .sr-calc-rep.sr-revoir{ border-left-color:#E0A13A; }
.sr-tri-rep p, .sr-calc-rep p{ margin:.3em 0 .5em; font-size:.88em; line-height:1.35; color:#DCC9AC; }
/* ⚠️ LE VERDICT EST UN BLOC, SINON LE BOUTON VIENT SE POSER DESSUS.
   Un <b> et un <button> sont tous deux en ligne : quand la réponse est
   juste et qu'il n'y a ni message ni attendu à afficher, plus rien ne
   les sépare — « ✅ C'est ça. » se retrouvait SOUS le bouton. Vu à
   l'écran, jamais à la mesure. */
.sr-tri-rep > b, .sr-calc-rep > b{ display:block; }
.sr-tri-rep > button, .sr-calc-rep > button{ margin-top:.5em; }
.sr-calc h3{ margin:.2em 0 .2em; font-size:1.15em; }
.sr-calc-q{ margin:0 0 .6em; font-size:.9em; color:#C9A97E; line-height:1.35; }
.sr-dossier{ width:100%; border-collapse:collapse; margin-bottom:.7em; font-size:.88em; }
.sr-dossier td{ padding:.32em .4em; border-bottom:1px solid #2A1E11; }
.sr-calc-in{ display:flex; align-items:center; gap:.4em; flex-wrap:wrap; }
.sr-calc-in input{ flex:1 1 7em; min-width:0; max-width:none; text-align:right; }
.sr-calc-in span{ font-size:1.1em; color:#C98A3E; }
.sr-attendu{ color:#F3C475 !important; }
.sr-fini{ text-align:center; margin-top:2em; }
.sr-fini p{ font-size:1.1em; }
.sr-mini{ font-size:.8em !important; color:#C9A97E; line-height:1.4; }

/* ---------- le Maître -------------------------------------------------- */
.sr-maitre{
  min-height:100vh; background:#171009; color:#F2E6D5; display:flex; flex-direction:column;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
.sr-m-tete{ display:flex; align-items:center; gap:.6em; padding:.6em .8em; background:#221709; }
.sr-m-tete b{ display:block; }
.sr-m-tete i{ display:block; font-size:.75em; color:#C9A97E; font-style:normal; }
.sr-m-pas{ margin-left:auto; font-size:.75em; color:#C98A3E; font-weight:800; }
.sr-m-onglets{ display:flex; border-bottom:1px solid #4A331A; }
.sr-m-onglets button{
  flex:1; padding:.55em .3em; font-size:.85em; background:none; color:#C9A97E;
  border:none; border-bottom:2px solid transparent;
}
.sr-m-onglets button.sr-on{ color:#E0A13A; border-bottom-color:#E0A13A; font-weight:700; }
.sr-m-corps{ flex:1 1 auto; padding:.8em; overflow:auto; }
.sr-m-tour h2{ margin:0 0 .5em; font-size:1.2em; }
.sr-m-ilots, .sr-m-diapos{ display:flex; gap:.35em; flex-wrap:wrap; margin:.5em 0; }
.sr-m-ilots button, .sr-m-diapos button{
  padding:.5em .7em; font-size:.85em; background:#221709; color:#F2E6D5;
  border:1px solid #4A331A; border-radius:.35em; text-align:left;
}
.sr-m-ilots button.sr-on, .sr-m-diapos button.sr-on{ background:#E0A13A; color:#171009; }
.sr-m-notion{ margin-top:.6em; }
.sr-m-notion h3{ margin:0 0 .2em; font-size:1.05em; color:#E0A13A; }
.sr-m-notion ul{ margin:.3em 0; padding-left:1.1em; font-size:.88em; line-height:1.35; }
.sr-m-piege{ font-size:.85em; color:#F08C7A; line-height:1.35; }
.sr-m-dit{ font-size:.88em; color:#C9A97E; line-height:1.4; }
.sr-m-q{ margin-top:.6em; padding:.5em .6em; border-radius:.4em; background:#1F1509; border-left:.2em solid #C98A3E; }
.sr-m-q h3{ margin:0 0 .25em; font-size:1.05em; color:#E0A13A; }
.sr-m-q p{ margin:.2em 0; font-size:.9em; line-height:1.35; }
.sr-m-q ol{ margin:.35em 0; padding-left:1.2em; font-size:.86em; line-height:1.3; }
.sr-m-q li.sr-on{ color:#8FD694; font-weight:700; }
.sr-m-why{ color:#DCC9AC; }
/* la question sur le téléphone du binôme */
.sr-tel-q h2{ margin:.2em 0 .4em; font-size:1.15em; }
.sr-tel-q-e{ margin:0 0 .5em; font-size:.97em; line-height:1.38; color:#F0E0C8; }
.sr-tel-q ol{ margin:0 0 .6em; padding-left:1.2em; display:flex; flex-direction:column; gap:.35em; }
.sr-tel-q li{ font-size:.9em; line-height:1.32; color:#DCC9AC; }
.sr-m-ilot{ margin-bottom:.7em; padding:.5em .6em; background:#1F1509; border-radius:.35em; }
.sr-m-ilot i{ display:block; font-size:.78em; color:#C98A3E; font-style:normal; margin:.1em 0 .3em; }
.sr-m-ilot ul{ margin:0; padding-left:1em; font-size:.85em; }
.sr-m-c{ margin-bottom:.7em; }
.sr-m-c table{ width:100%; border-collapse:collapse; font-size:.82em; }
.sr-m-c td{ padding:.22em .4em; border-bottom:1px solid #2A1E11; }
.sr-m-barre{
  position:sticky; bottom:0; display:flex; gap:.4em; padding:.55em .7em;
  background:#221709; border-top:1px solid #4A331A;
}
.sr-m-barre button{
  padding:.7em .8em; font-size:.95em; background:#2E2010; color:#F2E6D5;
  border:1px solid #4A331A; border-radius:.4em;
}
.sr-m-barre .smu-primaire{ flex:1; }
.sr-m-rev{ background:rgba(224,161,58,.16) !important; border-color:#E0A13A !important; color:#F3C475 !important; }

/* ---------- l'écran du professeur --------------------------------------- */
.sr-prof{ padding:1em; display:flex; flex-direction:column; gap:1em; }
.sr-prof-tete{ display:flex; align-items:center; gap:.8em; }
.sr-prof-tete h2{ margin:0; }
.sr-prof-tete p{ margin:.2em 0 0; font-size:.88em; color:#6b6485; }
.sr-prof-tete button{ margin-left:auto; }
.sr-prof-neuf, .sr-prof-liste{ background:#f6f4fb; border-radius:.5em; padding:.8em 1em; }
.sr-prof-neuf label{ display:block; margin:.5em 0; font-size:.9em; }
.sr-prof-neuf input, .sr-prof-neuf select{
  display:block; margin-top:.2em; padding:.45em .6em; font-size:1em;
  border:1px solid #cfc9de; border-radius:.35em; min-width:12em;
}
.sr-partie{ border-top:1px solid #e4e0ee; padding:.6em 0; }
.sr-partie.sr-close{ opacity:.6; }
.sr-partie-h{ display:flex; gap:.6em; align-items:baseline; flex-wrap:wrap; font-size:.9em; }
.sr-partie-h b{ font-size:1.15em; letter-spacing:.08em; }
.sr-partie-b{ display:flex; gap:.4em; flex-wrap:wrap; margin-top:.4em; }
.sr-tag{ background:#e4e0ee; border-radius:.3em; padding:.05em .4em; font-size:.85em; }
.sr-danger{ background:#fee2e2 !important; border-color:#D8503C !important; color:#8a2318 !important; }
.sr-msg{ margin:.5em 0 0; font-size:.9em; color:#5a4e8a; }
.sr-qr{
  background:#1A1420; color:#F2E6D5; border-radius:.6em; padding:1em 1.2em;
  display:flex; flex-direction:column; gap:.6em; align-items:center; max-width:24em;
}
.sr-qr h3{ margin:0; }
.sr-qr input{ padding:.5em .7em; font-size:1.1em; text-align:center; letter-spacing:.1em; }
.sr-qr-b{ display:flex; gap:.5em; }
.sr-url{ font-size:.72em; color:#C9A97E; word-break:break-all; text-align:center; margin:0; }
.sr-code-gros{ font-size:2em; font-weight:900; letter-spacing:.14em; color:#E0A13A; margin:0; }
.sr-alerte{ margin:0; font-size:.85em; color:#F08C7A; text-align:center; }

/* ---------- les écrans étroits ------------------------------------------ */
@media (max-width:900px){
  .sr-accueil, .sr-prologue, .sr-bilan{ flex-direction:column; gap:.8em; }
  .sr-prologue img{ flex:0 0 auto; max-width:100%; }
  .sr-grille{ grid-template-columns:1fr 1fr; }
}
@media (max-width:640px){
  .sr-grille{ grid-template-columns:1fr; }
  .sr-prof-tete{ flex-wrap:wrap; }
}
/* ==== sak i rèst : fin des styles ==== */











/* ==== culture-sdgn : styles ==== */
/* ============================================================
   CULTURE, NORMES, CODES — SDGN 1ʳᵉ
   Toutes les règles sont préfixées `cu-` (piège N). Vérifié avant
   d'écrire qu'aucune classe `.cu` ni `.cu-*` n'existait dans le
   fichier — c'est ce contrôle-là qui manquait le jour du badge en
   ovale jaune.
   ⚠️ Les modificateurs (`cu-vu`, `cu-on`) portent le préfixe du bloc :
   jamais `vu` ni `on` nus, qui existent ailleurs.
============================================================ */

.cu{ --cu-bleu:#0369a1; --cu-bleu-clair:#e0f2fe; --cu-violet:#6d28d9;
     --cu-bord:#e2e8f0; --cu-gris:#64748b; }

/* --- textes courants --- */
.cu-h{ margin:16px 0 8px; font-size:18px; }
.cu-txt{ font-size:15px; line-height:1.6; margin:0 0 14px; }
.cu-pas{ font-size:12px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  color:var(--cu-gris); margin:10px 0 6px; }
.cu-apres{ font-size:15px; line-height:1.6; margin:0 0 14px; font-style:italic;
  color:var(--cu-bleu); }
.cu-retenir{ background:var(--cu-bleu-clair); border-radius:12px; padding:13px 16px;
  margin:12px 0; text-align:left; }
.cu-retenir b{ display:block; margin-bottom:7px; }
.cu-retenir p{ margin:0; font-size:14px; line-height:1.55; }
.cu-fin{ font-size:15px; line-height:1.6; margin:14px 0; font-weight:600; }

/* --- le bandeau d'organisation ---
   Il reste en tête de l'écran : tout le lot repose sur le fait qu'un
   même geste change de sens selon l'endroit, et l'élève doit savoir
   à chaque instant chez qui il se trouve. */
.cu-band{ display:flex; gap:11px; align-items:center; background:#f8fafc;
  border:1px solid var(--cu-bord); border-left:4px solid var(--cu-bleu);
  border-radius:0 12px 12px 0; padding:9px 13px; margin:10px 0 14px; }
.cu-band-emo{ font-size:23px; line-height:1; }
.cu-band b{ display:block; font-size:15px; }
.cu-band i{ display:block; font-size:12.5px; color:var(--cu-gris); font-style:normal; }

/* --- les options d'un choix --- */
.cu-opts{ display:flex; flex-direction:column; gap:9px; margin:12px 0; }
.cu-opt{ text-align:left; background:#fff; border:2px solid var(--cu-bord);
  border-radius:12px; padding:11px 14px; font-size:14.5px; line-height:1.5;
  cursor:pointer; font-family:inherit; color:inherit; }
.cu-opt:hover{ border-color:var(--cu-bleu); background:var(--cu-bleu-clair); }

/* --- la scène du premier jour --- */
.cu-grille-ind{ display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:10px; margin:12px 0; }
.cu-ind{ display:flex; flex-direction:column; align-items:center; gap:5px;
  background:#fff; border:2px solid var(--cu-bord); border-radius:14px;
  padding:13px 9px; cursor:pointer; font-family:inherit; color:inherit;
  position:relative; }
.cu-ind:hover{ border-color:var(--cu-bleu); background:var(--cu-bleu-clair); }
.cu-ind.cu-vu{ opacity:.55; cursor:default; border-color:#86efac; background:#f0fdf4; }
.cu-ind-e{ font-size:26px; line-height:1; }
.cu-ind-n{ font-size:13px; text-align:center; line-height:1.35; }
.cu-ind-ok{ position:absolute; top:5px; right:8px; color:#15803d; font-weight:700; }
.cu-ind-tete{ display:flex; gap:10px; align-items:center; margin:10px 0 8px; }
.cu-ind-emo{ font-size:26px; line-height:1; }
.cu-ind-vu{ background:#f8fafc; border:1px solid var(--cu-bord); border-radius:12px;
  padding:11px 14px; font-size:14.5px; line-height:1.6; margin:0 0 12px; }

/* --- le carnet d'observation --- */
.cu-carnet{ background:#fffbeb; border:1px solid #fde68a; border-radius:12px;
  padding:11px 14px; margin:14px 0; }
.cu-carnet b{ display:block; margin-bottom:7px; }
.cu-carnet-l{ margin:0 0 5px; font-size:13.5px; line-height:1.5; }

/* --- les mini-cas --- */
.cu-famille{ display:inline-block; background:var(--cu-violet); color:#fff;
  border-radius:999px; padding:3px 11px; font-size:12px; font-weight:700; margin-bottom:9px; }
.cu-cas-qui{ font-size:15px; margin-bottom:3px; }
.cu-cas-quoi{ font-size:14.5px; line-height:1.6; margin:0 0 12px; }

/* --- les rituels et la grille : les boutons de fonction --- */
.cu-rite-t{ background:#f8fafc; border:1px solid var(--cu-bord); border-radius:12px;
  padding:13px 15px; font-size:15px; line-height:1.55; margin:0 0 12px; }
.cu-fonctions{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:9px; margin:12px 0; }
.cu-fonc{ background:#fff; border:2px solid var(--cu-bord); border-radius:12px;
  padding:12px 10px; font-size:14px; font-weight:600; cursor:pointer;
  font-family:inherit; color:inherit; line-height:1.4; }
.cu-fonc:hover{ border-color:var(--cu-violet); background:#f5f3ff; }

/* --- la grille de synthèse --- */
.cu-grille-tab{ display:grid; gap:8px; margin:14px 0; }
.cu-gl{ display:flex; gap:12px; align-items:flex-start; background:#f8fafc;
  border:1px solid var(--cu-bord); border-radius:12px; padding:9px 12px; }
.cu-gl-t{ flex:0 0 170px; min-width:0; }
.cu-gl-t b{ display:block; font-size:14px; }
.cu-gl-t i{ display:block; font-size:12px; color:var(--cu-gris); font-style:normal;
  line-height:1.35; }
.cu-gl-c{ flex:1 1 auto; min-width:0; }
.cu-gl-c p{ margin:0 0 4px; font-size:13px; line-height:1.45; color:#0f172a; }
.cu-ind-bloc{ margin-top:14px; }
.cu-ind-txt{ background:#fff; border:2px dashed var(--cu-violet); border-radius:12px;
  padding:12px 15px; font-size:14.5px; line-height:1.55; margin:0 0 12px; }

@media (max-width:640px){
  .cu-gl{ flex-direction:column; gap:5px; }
  .cu-gl-t{ flex:0 0 auto; }
  .cu-grille-ind{ grid-template-columns:repeat(auto-fill,minmax(118px,1fr)); }
}

/* ==== culture-sdgn : fin des styles ==== */

/* ==== droit-contrat : styles ==== */
/* ==== droit-contrat : styles ==== */
/* Le contrat — droit Terminale. Préfixe `dc-`, vérifié libre dans
   index.html avant d'être adopté (piège N) : ni `.dc` ni `.dc-*`
   n'existaient. */

.dc .dc-doc{ margin:12px 0; }

.dc-cas-tete{ display:flex; justify-content:space-between; align-items:baseline;
  gap:10px; margin-bottom:8px; }
.dc-cas-tete b{ font-size:16px; color:#312e81; }
.dc-cas-tete span{ font-size:13px; font-weight:700; color:#6b7280; white-space:nowrap; }

.dc-cas-img{ display:block; width:100%; max-height:190px; object-fit:cover;
  border-radius:12px; margin-bottom:10px; }

.dc-cas-enonce{ margin:0 0 12px; font-size:15.5px; line-height:1.55;
  padding:10px 12px; background:#f8fafc; border-left:4px solid #4338ca;
  border-radius:0 8px 8px 0; }

.dc-opts{ display:flex; flex-direction:column; gap:8px; }

/* La frise des six étapes de l'activité 3 : elle montre où l'on en est
   dans une affaire qui se déroule, et c'est la chronologie qui enseigne. */
.dc-fil{ display:flex; gap:6px; margin-bottom:10px; }
.dc-fil i{ flex:1 1 0; min-width:0; height:26px; line-height:26px; text-align:center;
  font-style:normal; font-size:13px; font-weight:700; border-radius:6px;
  background:#e5e7eb; color:#6b7280; }
.dc-fil i.dc-fil-fait{ background:#d1fae5; color:#065f46; }
.dc-fil i.dc-fil-on{ background:#b45309; color:#fff; }

.dc-retenir{ margin-top:12px; padding:12px 14px; border-radius:12px;
  background:#eef2ff; border:1px solid #c7d2fe; }
.dc-retenir b{ display:block; margin-bottom:6px; font-size:15px; color:#312e81; }
.dc-retenir p{ margin:0; font-size:14.5px; line-height:1.55; }

.dc-h3{ margin:0 0 10px; font-size:17px; color:#312e81; }

/* Le tri à colonnes nommées. Les colonnes s'empilent sous 640 px : à
   trois marches, trois colonnes côte à côte coupent les mots. */
.dc-tri-enonce{ margin:0 0 12px; font-size:15px; line-height:1.55;
  padding:10px 12px; background:#f8fafc; border-radius:8px; }
.dc-tri-carte{ margin:12px 0; padding:16px 18px; border-radius:12px;
  background:#fff; border:2px solid #e5e7eb; font-size:16px; line-height:1.55;
  text-align:center; }
.dc-tri-cols{ display:flex; gap:8px; }
.dc-tri-col{ flex:1 1 0; min-width:0; display:flex; flex-direction:column;
  align-items:center; gap:4px; padding:12px 10px; border-radius:12px;
  border:2px solid #c7d2fe; background:#eef2ff; cursor:pointer; font:inherit;
  font-size:14px; font-weight:700; color:#312e81; text-align:center; }
.dc-tri-col:hover{ background:#e0e7ff; }
.dc-tri-emo{ font-size:22px; line-height:1; }

/* ------------------------------------------------------------------
   L'ESCALIER DU SYLLOGISME
   ⚠️ LA MARCHE QUI MANQUE RESTE VIDE, ET C'EST LE TROU QUI ENSEIGNE.
      Les trois cases sont toujours dessinées ; celle qu'on n'a pas
      reçue garde sa place en pointillés. Masquer la case ferait un
      escalier de deux marches, c'est-à-dire un raisonnement qui a
      l'air complet.
------------------------------------------------------------------ */
.dc-escalier{ display:flex; flex-direction:column; gap:8px; margin:12px 0; }
.dc-mar{ padding:10px 12px; border-radius:10px; border:1px solid #e5e7eb;
  background:#fff; }
/* ⚠️ UNE CLASSE, UNE DÉCLARATION. Le décalage et le liseré étaient
   écrits dans deux règles séparées : sans dégât ici, mais
   `collisions-css.py` le signalait — et une alerte qu'on prend
   l'habitude d'ignorer ne sert plus à rien le jour où elle dit vrai
   (§7.54). Le décalage dit la montée : on ne descend jamais d'une
   marche. */
.dc-mar-1{ border-left:4px solid #7c3aed; }
.dc-mar-2{ margin-left:16px; border-left:4px solid #0d9488; }
.dc-mar-3{ margin-left:32px; border-left:4px solid #b45309; }
.dc-mar-n{ display:block; margin-bottom:4px; font-size:12.5px; font-weight:800;
  letter-spacing:.3px; text-transform:uppercase; color:#6b7280; }
.dc-mar p{ margin:0; font-size:14.5px; line-height:1.55; }
.dc-mar-vide{ border-style:dashed; background:#f9fafb; color:#9ca3af; }

.dc-cite{ margin:0 0 12px; padding:10px 14px; border-left:4px solid #94a3b8;
  background:#f8fafc; border-radius:0 8px 8px 0; font-size:15px;
  line-height:1.55; font-style:italic; }

/* ------------------------------------------------------------------
   MELVIN — les trois paliers
   ⚠️ LE PALIER CHOISI SE VOIT EN PERMANENCE. Un élève qui ne sait plus
      dans quel palier il travaille croit que l'aide a disparu.
------------------------------------------------------------------ */
.dc-paliers{ display:flex; flex-direction:column; gap:10px; margin:12px 0; }
.dc-pal{ display:block; width:100%; text-align:left; padding:12px 14px;
  border-radius:12px; border:2px solid #e5e7eb; background:#fff; cursor:pointer;
  font:inherit; transition:border-color .15s, background .15s; }
.dc-pal:hover{ border-color:#c7d2fe; }
.dc-pal-on{ border-color:#0369a1; background:#f0f9ff; }
.dc-pal-emo{ font-size:20px; margin-right:8px; }
.dc-pal-nom{ font-size:16px; font-weight:800; color:#0c4a6e; }
.dc-pal-quoi{ display:block; margin-top:6px; font-size:14px; line-height:1.5; }
.dc-pal-pour{ display:block; margin-top:4px; font-size:13px; color:#6b7280;
  font-style:italic; }

.dc-paliers-c{ flex-direction:row; gap:6px; margin:0; }
.dc-paliers-c .dc-pal{ flex:1 1 0; min-width:0; padding:6px 8px; text-align:center;
  border-width:1px; border-radius:8px; }
.dc-paliers-c .dc-pal-emo{ font-size:15px; margin-right:4px; }
.dc-paliers-c .dc-pal-nom{ font-size:13px; }

.dc-mel-barre{ display:flex; align-items:center; gap:10px; margin-bottom:12px;
  padding:8px 10px; border-radius:10px; background:#f1f5f9; }
.dc-mel-barre > span{ flex:0 0 auto; font-size:13px; font-weight:700; color:#475569; }
.dc-mel-barre .dc-paliers{ flex:1 1 auto; min-width:0; }

/* Le dossier, consultable partout. */
.dc-mel-det{ margin:0 0 8px; border:1px solid #e5e7eb; border-radius:10px;
  background:#fff; overflow:hidden; }
.dc-mel-det > summary{ cursor:pointer; padding:9px 12px; font-size:14px;
  font-weight:700; color:#334155; background:#f8fafc; }
.dc-mel-det[open] > summary{ border-bottom:1px solid #e5e7eb; }
.dc-mel-det .dc-doc{ margin:10px 12px; }
.dc-mel-note{ margin:0 12px 10px; padding:8px 10px; border-radius:8px;
  background:#fef3c7; font-size:13.5px; line-height:1.5; }

.dc-mel-mise{ margin:10px 0; padding:10px 12px; border-radius:10px;
  background:#f5f3ff; font-size:14.5px; line-height:1.55; }
.dc-mel-amorce{ margin:10px 0; padding:10px 12px; border-radius:10px;
  background:#ecfeff; border:1px solid #a5f3fc; }
.dc-mel-amorce b{ display:block; margin-bottom:4px; font-size:13.5px; color:#155e75; }
.dc-mel-amorce span{ font-size:14.5px; line-height:1.6; }
.dc-mel-indice{ margin:10px 0; padding:10px 12px; border-radius:10px;
  background:#fffbeb; border:1px solid #fcd34d; }
.dc-mel-indice b{ display:block; margin-bottom:4px; font-size:13.5px; color:#92400e; }
.dc-mel-indice span{ font-size:14.5px; line-height:1.55; }
.dc-mel-bi{ margin:10px 0; padding:7px 12px; border-radius:20px; cursor:pointer;
  font:inherit; font-size:13.5px; font-weight:700; color:#92400e;
  background:#fffbeb; border:1px solid #fcd34d; }

.dc-cles{ margin-top:12px; padding:12px 14px; border-radius:12px;
  background:#f0f9ff; border:1px solid #bae6fd; }
.dc-cles b{ display:block; margin-bottom:6px; font-size:15px; color:#0c4a6e; }
.dc-cles ol{ margin:0; padding-left:20px; }
.dc-cles li{ margin-bottom:6px; font-size:14.5px; line-height:1.55; }
.dc-cles li:last-child{ margin-bottom:0; }

/* La source du cas, discrète mais jamais absente. */
.dc-source{ margin:12px 0 0; font-size:12.5px; line-height:1.5; color:#6b7280;
  font-style:italic; }

@media (max-width:640px){
  .dc-cas-img{ max-height:150px; }
  .dc-cas-tete{ flex-wrap:wrap; }
  .dc-fil i{ font-size:12px; height:22px; line-height:22px; }
  /* Sur un téléphone, un décalage de 32 px laisse la troisième marche
     à une largeur qui coupe les mots : l'escalier s'aplatit et c'est la
     couleur du liseré qui porte la montée. */
  .dc-mar-2, .dc-mar-3{ margin-left:0; }
  .dc-tri-cols{ flex-direction:column; }
  .dc-tri-col{ flex-direction:row; justify-content:flex-start; gap:8px;
    text-align:left; }
  .dc-mel-barre{ flex-wrap:wrap; }
  .dc-mel-barre > span{ flex:1 1 100%; }
  .dc-paliers-c .dc-pal-nom{ font-size:12px; }
}
/* ==== droit-contrat : fin des styles ==== */

/* ==== droit-contrat : fin des styles ==== */

/* ==== droit-contrat : fin des styles ==== */

/* ==== droit-contrat : fin des styles ==== */

/* ==== droit-contrat : fin des styles ==== */

/* ==== droit-contrat : fin des styles ==== */

/* ==== droit-contrat : fin des styles ==== */

/* ==== droit-contrat : fin des styles ==== */

/* ==== droit-contrat : fin des styles ==== */

/* ==== droit-contrat : fin des styles ==== */

/* ==== droit-contrat : fin des styles ==== */

/* ==== droit-contrat : fin des styles ==== */

/* ==== koz : styles ==== */
/* ⚠️ LA PROJECTION EST EN THÈME SOMBRE. `.smu-ecran` porte
   `background:#0E1116; color:#E8EDF4` : des cartes blanches y
   trancheraient violemment au vidéoprojecteur, et un texte foncé y
   serait illisible partout où l'on n'a pas posé de fond. La palette
   ci-dessous est donc celle des simulateurs (#171D26 sur #0E1116,
   bordures #2C3644), pas celle des activités. */
/* « Anou Koz » — les dialogues projetés du chapitre 3 de SDGN.
   Préfixe `koz-` vérifié libre dans index.html avant d'être adopté
   (piège N) : ni `.koz` ni `.koz-*` n'existaient.

   ⚠️ TOUT EST EN `em`. La racine `.smu-ecran` porte déjà
   `font-size: calc(clamp(10.5px, .62vw + .62vh, 19px) * var(--smu-z))`,
   qui mêle les DEUX dimensions : une taille en `vw` seule s'effondre
   sur un vidéoprojecteur presque carré (§7.70). Ici on n'écrit donc
   QUE des `em` — une seule valeur en pixels suffirait à casser le
   réglage de zoom du professeur. */

.koz{ display:flex; flex-direction:column; gap:.7em; }

.koz-tete{ display:flex; align-items:center; gap:.8em; flex:0 0 auto; }
.koz-titre{ font-size:1.5em; font-weight:800; color:#E8EDF4; }
.koz-pas{ font-size:.95em; font-weight:700; color:#8C99AB; white-space:nowrap; }
.koz-tete .smu-zoom{ margin-left:auto; }
.koz-fermer{ font:inherit; font-size:.9em; font-weight:700; padding:.35em .8em;
  border-radius:.5em; border:1px solid #3A465A; background:#171D26; color:#E8EDF4;
  cursor:pointer; }

/* La scène : l'image à gauche, le dialogue à droite. Sous 4/3, elles
   s'empilent — c'est la HAUTEUR qui manque sur un vidéoprojecteur. */
.koz-scene{ flex:1 1 auto; display:flex; flex-direction:column; gap:.6em; min-height:0; }
.koz-scene-h{ display:flex; align-items:baseline; gap:.6em; }
.koz-lieu{ font-size:1.2em; font-weight:800; letter-spacing:.03em;
  text-transform:uppercase; color:#38BDF8; }

.koz-corps{ display:flex; gap:.9em; min-height:0; flex:1 1 auto; }
.koz-img-c{ flex:0 0 32%; min-width:0; display:flex; }
.koz-img{ width:100%; height:100%; object-fit:cover; border-radius:.7em;
  background:#232B37; }
.koz-dlg{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column;
  justify-content:safe center; gap:.5em; overflow:auto; }

.koz-rep{ position:relative; padding:.7em 1em; border-radius:.6em;
  background:#171D26; border:1px solid #2C3644; }
.koz-rep p{ margin:0; font-size:1.45em; line-height:1.45; }
.koz-rep-narr{ background:#131820; border-style:dashed; }
.koz-rep-narr p{ font-style:italic; color:#A8B4C4; }
.koz-qui{ display:block; font-size:.85em; font-weight:800; letter-spacing:.04em;
  text-transform:uppercase; margin-bottom:.15em; }
.koz-son{ position:absolute; top:.35em; right:.4em; font:inherit; font-size:.9em;
  line-height:1; padding:.2em .35em; border-radius:.4em; border:1px solid #2C3644;
  background:#232B37; color:#E8EDF4; cursor:pointer; }

.koz-question{ margin:0; padding:.7em 1em; border-radius:.6em;
  background:#1B2438; border:1px solid #3A4A6B; font-size:1.5em;
  font-weight:700; line-height:1.4; color:#BFD4FF; }
.koz-attente{ margin:0; font-size:1em; font-style:italic; color:#8C99AB; }

/* Les quatre cases. Elles ne notent pas : elles expliquent. */
.koz-cases{ display:flex; gap:.5em; }
.koz-case{ flex:1 1 0; min-width:0; display:flex; flex-direction:column;
  align-items:center; gap:.15em; padding:.6em .5em; border-radius:.6em;
  border:2px solid #2C3644; background:#171D26; color:#E8EDF4; cursor:pointer;
  font:inherit; text-align:center; }
.koz-case:hover{ border-color:#3A4A6B; }
.koz-case-emo{ font-size:1.5em; line-height:1; }
.koz-case-nom{ font-size:1.2em; font-weight:800; color:#E8EDF4; }
.koz-case-aide{ font-size:.95em; line-height:1.35; color:#8C99AB; }
.koz-case-bon{ border-color:#22C55E; background:#12251A; }
.koz-case-non{ border-color:#EF4444; background:#2A1416; }

.koz-rep-box{ padding:.6em .85em; border-radius:.6em; background:#171D26;
  border-left:.25em solid #38BDF8; }
.koz-rep-box b{ display:block; font-size:1em; margin-bottom:.2em; }
.koz-rep-box p{ margin:0; font-size:1.3em; line-height:1.45; }

/* Simulation 2 : les trois décisions, et ce qu'elles produisent. */
.koz-opts{ display:flex; flex-direction:column; gap:.4em; }
.koz-opt{ font:inherit; font-size:1.3em; text-align:left; padding:.55em .8em;
  border-radius:.6em; border:2px solid #2C3644; background:#171D26; color:#E8EDF4;
  cursor:pointer; line-height:1.45; }
.koz-opt:hover{ border-color:#3A4A6B; }
.koz-suite{ padding:.6em .85em; border-radius:.6em; background:#171D26;
  border-left:.25em solid #64748B; }
.koz-suite p{ margin:0 0 .3em; font-size:1.3em; line-height:1.45; }
.koz-suite p:last-child{ margin-bottom:0; }
.koz-suite-quoi{ font-weight:700; }
.koz-suite-note{ font-size:1em !important; color:#A8B4C4; }
/* ⚠️ Aucun verdict n'est « faux » : une décision jouable qui produit
   moins, c'est autre chose qu'une erreur. La couleur le dit — vert,
   ambre, gris — et jamais de rouge. */
.koz-v-bon{ border-left-color:#22C55E; background:#12251A; }
.koz-v-moyen{ border-left-color:#F59E0B; background:#251F0F; }
.koz-v-faible{ border-left-color:#8C99AB; background:#1A202A; }
.koz-opt-on.koz-v-bon{ border-color:#22C55E; background:#12251A; }
.koz-opt-on.koz-v-moyen{ border-color:#F59E0B; background:#251F0F; }
.koz-opt-on.koz-v-faible{ border-color:#64748B; background:#1A202A; }

/* Simulation 3 : deux maisons côte à côte. */
.koz-paire{ flex:1 1 auto; display:flex; flex-direction:column; gap:.6em; min-height:0; }
.koz-paire-t{ margin:0; font-size:1.5em; color:#E8EDF4; }
.koz-deux{ display:flex; gap:.8em; flex:1 1 auto; min-height:0; }
.koz-maison{ flex:1 1 0; min-width:0; display:flex; flex-direction:column; gap:.4em;
  padding:.7em .85em; border-radius:.7em; background:#171D26; border:1px solid #2C3644;
  overflow:auto; }
.koz-maison-h{ display:flex; align-items:center; gap:.5em; }
.koz-maison-emo{ font-size:1.6em; line-height:1; }
.koz-maison-h b{ display:block; font-size:1.15em; }
.koz-maison-s{ display:block; font-size:.85em; font-style:normal; color:#8C99AB; }
.koz-maison-txt{ margin:0; font-size:1.35em; line-height:1.45; }
.koz-maison-rep{ margin-top:auto; padding:.55em .7em; border-radius:.5em;
  background:#12251A; border:1px solid #1E5233; }
.koz-maison-rep b{ display:block; font-size:1.05em; margin-bottom:.2em; color:#6EE7A0; }
.koz-maison-rep p{ margin:0; font-size:1.2em; line-height:1.4; }

.koz-bilan{ flex:1 1 auto; overflow:auto; }
.koz-bilan h2{ margin:0 0 .3em; font-size:1.8em; color:#E8EDF4; }
.koz-bilan-txt{ margin:0 0 .7em; font-size:1.4em; line-height:1.45; }
.koz-bilan ul{ margin:0 0 .7em; padding-left:1.2em; }
.koz-bilan li{ margin-bottom:.5em; font-size:1.35em; line-height:1.45; }
.koz-bilan-q{ margin:0; padding:.6em .85em; border-radius:.6em; background:#1B2438;
  border:1px solid #3A4A6B; font-size:1.4em; font-weight:700; color:#BFD4FF; }

.koz-pied{ flex:0 0 auto; display:flex; align-items:center; gap:.5em; }
.koz-nav{ font:inherit; font-size:1.1em; font-weight:800; padding:.4em 1em;
  border-radius:.5em; border:1px solid #3A465A; background:#171D26; color:#E8EDF4;
  cursor:pointer; }
.koz-nav-p{ background:#0EA5E9; border-color:#0EA5E9; color:#06222F; }
.koz-nav:disabled{ opacity:.4; cursor:default; }
.koz-aide{ font-size:.9em; color:#8C99AB; margin-left:auto; }

/* ⚠️ SOUS 4/3, C'EST LA HAUTEUR QUI MANQUE : image et dialogue
   s'empilent, et l'image se réduit plutôt que de disparaître — elle
   plante la scène, et un écran à moitié vide est pire qu'une petite
   image (§7.70). */
@media (max-aspect-ratio: 4/3){
  .koz-corps{ flex-direction:column; }
  .koz-img-c{ flex:0 1 26%; }
  .koz-cases{ flex-wrap:wrap; }
  .koz-case{ flex:1 1 45%; }
}
@media (max-width: 1000px){
  .koz-case-aide{ display:none; }
}
/* ==== koz : fin des styles ==== */






/* ==== msdgn-production : css debut ==== */
/* Zambrok — préfixe `zb-`, vérifié libre dans index.html avant de le
   choisir (piège N : un préfixe court déjà déclaré nu ailleurs impose
   ses règles à tout le lot, §7.58). */
.zb{max-width:880px;margin:0 auto}
.zb-accueil{text-align:center;padding:6px 0 18px}
.zb-banniere{width:100%;height:220px;object-fit:cover;border-radius:14px;display:block;margin-bottom:14px}
.zb-accueil h2{margin:6px 0 10px;font-size:23px;color:#1e1b4b}
.zb-intro{font-size:16px;line-height:1.55;color:#3f3d56;max-width:620px;margin:0 auto 14px}
.zb-regle{background:#eef2ff;border:1px solid #c7d2fe;border-radius:12px;padding:12px 16px;font-size:14.5px;color:#3730a3;max-width:620px;margin:0 auto 20px}
.zb-barre{display:flex;gap:6px;justify-content:center;margin:4px 0 18px}
.zb-pas{width:38px;height:6px;border-radius:99px;background:#e2e8f0}
.zb-pas.on{background:#6366f1}
.zb-ecran{animation:zbEntre .28s ease}
@keyframes zbEntre{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.zb-t{font-size:20px;color:#1e1b4b;margin:0 0 10px}
.zb-consigne{font-size:16px;color:#3f3d56;margin:0 0 16px;line-height:1.5}
.zb-num{font-size:13px;color:#6b6485;font-weight:700;margin:0 0 6px}
.zb-q{font-size:16.5px;font-weight:700;color:#1e1b4b;margin:10px 0 12px;line-height:1.45}
.zb-ctx{background:#fffbeb;border:1px solid #fde68a;border-radius:12px;padding:12px 15px;font-size:15px;color:#78350f;line-height:1.5;margin-bottom:6px}
.zb-vigs{display:grid;gap:12px;margin-bottom:18px}
.zb-vig{background:#f8fafc;border:1px solid #e2e8f0;border-left:4px solid #6366f1;border-radius:10px;padding:12px 15px}
.zb-vig b{display:block;color:#3730a3;font-size:15.5px;margin-bottom:4px}
.zb-vig p{margin:0;font-size:15px;line-height:1.5;color:#3f3d56}
.zb-tri{display:grid;gap:10px;margin-bottom:16px}
.zb-tri-l{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:11px 14px;display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.zb-tri-l.ok{border-color:#86efac;background:#f0fdf4}
.zb-tri-l.ko{border-color:#fca5a5;background:#fef2f2}
.zb-tri-txt{flex:1 1 200px;min-width:0;font-size:15px;color:#1e1b4b;line-height:1.45}
.zb-sel{flex:1 1 170px;min-width:0;max-width:100%;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;font-size:14.5px;font-family:inherit;background:#fff}
.zb-why{flex:1 1 100%;margin:4px 0 0;font-size:14.5px;line-height:1.5;color:#475569}
.zb-why.ok{color:#166534}
.zb-why.ko{color:#991b1b}
.zb-opts{display:grid;gap:10px;margin-bottom:8px}
.zb-opt{text-align:left;background:#fff;border:1.5px solid #e2e8f0;border-radius:11px;padding:12px 15px;font-size:15px;line-height:1.45;color:#1e1b4b;cursor:pointer;font-family:inherit}
.zb-opt:hover:not(:disabled){border-color:#a5b4fc}
.zb-opt.ok{border-color:#16a34a;background:#f0fdf4;font-weight:600}
.zb-opt.ko{border-color:#dc2626;background:#fef2f2}
.zb-opt.pale{opacity:.5}
.zb-ordre{margin:0 0 14px;padding-left:22px}
.zb-ordre li{background:#f8fafc;border:1px solid #e2e8f0;border-radius:9px;padding:9px 12px;margin-bottom:7px;font-size:15px;color:#1e1b4b;line-height:1.45}
.zb-ordre li.ok{border-color:#86efac;background:#f0fdf4}
.zb-ordre li.ko{border-color:#fca5a5;background:#fef2f2}
.zb-sol{color:#166534;font-weight:600}
.zb-choix{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.zb-pill{background:#eef2ff;border:1px solid #c7d2fe;border-radius:99px;padding:8px 14px;font-size:14.5px;color:#3730a3;cursor:pointer;font-family:inherit;text-align:left;max-width:100%}
.zb-pill:hover{background:#e0e7ff}
.zb-doc{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:13px 16px;margin-bottom:16px;overflow-x:auto}
.zb-doc b{display:block;color:#3730a3;font-size:15px;margin-bottom:8px}
.zb-tab{border-collapse:collapse;width:100%;font-size:14.5px}
.zb-tab th,.zb-tab td{border:1px solid #e2e8f0;padding:7px 10px;text-align:left}
.zb-tab th{background:#eef2ff;color:#3730a3;font-weight:700}
.zb-calc{margin-bottom:16px}
.zb-saisie{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
.zb-champ{flex:1 1 140px;min-width:0;padding:10px 12px;border:1.5px solid #cbd5e1;border-radius:9px;font-size:16px;font-family:inherit}
.zb-unite{font-size:14.5px;color:#6b6485;font-weight:600}
.zb-score{font-size:15.5px;font-weight:700;color:#3730a3;margin:12px 0 8px}
.zb-cta{background:#6366f1;color:#fff;border:0;border-radius:11px;padding:12px 22px;font-size:15.5px;font-weight:700;cursor:pointer;font-family:inherit;margin-top:6px}
.zb-cta:disabled{background:#cbd5e1;cursor:not-allowed}
.zb-plat{background:#fff;color:#3730a3;border:1px solid #c7d2fe;border-radius:10px;padding:8px 15px;font-size:14px;cursor:pointer;font-family:inherit;margin-right:8px}
.zb-bilan{text-align:center;padding:26px 0}
.zb-note{font-size:52px;font-weight:800;color:#3730a3;line-height:1}
.zb-note span{font-size:24px;color:#6b6485}
.zb-mot{font-size:16px;color:#3f3d56;max-width:560px;margin:14px auto;line-height:1.55}
.zb-detail{font-size:14.5px;color:#6b6485;margin-bottom:8px}
@media(max-width:640px){
  .zb-banniere{height:150px}
  .zb-accueil h2{font-size:19px}
  .zb-note{font-size:42px}
  .zb-tri-txt{flex:1 1 100%}
  .zb-sel{flex:1 1 100%}
}

/* ==== msdgn-production : css fin ==== */
/* ==== reprise : css debut ==== */
/* La reprise — préfixe `mmrepr`, vérifié libre dans index.html (piège N). */
.mmrepr{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#eef2ff;border:1px solid #c7d2fe;border-left:4px solid #6366f1;border-radius:11px;padding:10px 14px;margin:0 0 14px;font-size:14.5px;color:#3730a3}
.mmrepr-ic{font-size:17px}
.mmrepr-txt{flex:1 1 200px;min-width:0;line-height:1.45}
.mmrepr-btn{background:#fff;border:1px solid #c7d2fe;border-radius:9px;padding:6px 12px;font-size:13.5px;color:#3730a3;cursor:pointer;font-family:inherit}
.mmrepr-btn:hover{background:#e0e7ff}

/* ==== reprise : css fin ==== */
/* ==== prof-groupes : styles ==== */
/* ============================================================
   Ranger les TàF et les évaluations · blocs dépliables
   ------------------------------------------------------------
   ⚠️ Toutes les règles sont préfixées `pg-` (piège N), et les
   modificateurs portent le préfixe de leur bloc — `.pg-mode-on`
   et non `.on`, qui existe nu ailleurs dans la feuille unique
   de la plateforme.
============================================================ */

.pg{ margin-top:6px; }

/* --- le sélecteur de mode --- */
.pg-barre{ display:flex; align-items:center; gap:7px; flex-wrap:wrap;
  margin:0 0 14px; }
.pg-barre-t{ font-size:13px; opacity:.68; }
.pg-barre-n{ margin-left:auto; font-size:12.5px; opacity:.55; }
.pg-mode{ border:1.5px solid #d8dde5; background:#fff; border-radius:999px;
  padding:5px 13px; font-size:13px; cursor:pointer;
  transition:border-color .18s ease, background .18s ease; }
.pg-mode:hover{ border-color:#7c3aed; }
.pg-mode.pg-mode-on{ border-color:#7c3aed; background:#f5f3ff; color:#5b21b6;
  font-weight:600; }
/* Le tri : une liste deroulante, pas quatre boutons de plus — la barre
   porte deja quatre modes, et deux rangees de pastilles se lisent mal. */
.pg-barre-t2{ margin-left:10px; }
.pg-tri{ border:1.5px solid #d8dde5; border-radius:999px; background:#fff;
  padding:5px 10px; font-size:13px; cursor:pointer; }
.pg-tri:focus{ outline:2px solid #7c3aed; outline-offset:1px; }

/* --- un bloc de classe ou d'échéance --- */
.pg-bloc{ border:1px solid #e6eaf0; border-left:5px solid #94a3b8;
  border-radius:12px; margin-bottom:11px; overflow:hidden; }
.pg-somm{ display:flex; align-items:center; gap:10px; cursor:pointer;
  padding:10px 14px; font-size:15px; font-weight:700;
  list-style:none; user-select:none; }
.pg-somm::-webkit-details-marker{ display:none; }
/* Le chevron dit l'état du bloc : sans lui, un bloc replié ressemble à
   un titre mort. */
.pg-somm::before{ content:"▸"; font-size:13px; opacity:.6;
  transition:transform .18s ease; }
.pg-bloc[open] > .pg-somm::before{ transform:rotate(90deg); }
.pg-somm-t{ flex:1 1 auto; }
.pg-somm-n{ flex:0 0 auto; color:#fff; border-radius:999px;
  min-width:22px; text-align:center; padding:1px 8px;
  font-size:12.5px; font-weight:700; }
/* ⚠️ La colonne et l'écart REPRENNENT `.taf-liste`, que ce conteneur
   remplace : sans eux les cartes de TàF se colleraient les unes aux
   autres. Les lignes d'évaluation, elles, portent déjà leur marge. */
.pg-corps{ background:#fff; padding:10px 11px 12px;
  border-top:1px solid #eef1f6;
  display:flex; flex-direction:column; gap:12px; }
.pg-plat{ display:flex; flex-direction:column; gap:12px; }

/* --- le badge « aussi donné à… » --- */
.pg-aussi{ display:inline-block; margin-left:7px; padding:1px 8px;
  border-radius:999px; background:#eef2ff; color:#4338ca;
  font-size:11.5px; font-weight:600; vertical-align:middle; }

@media (max-width:640px){
  .pg-barre-n{ flex:1 1 100%; margin-left:0; }
  .pg-barre-t2{ margin-left:0; }
  .pg-somm{ font-size:14px; padding:9px 11px; }
  .pg-corps{ padding:8px 7px 2px; }
}
@media (prefers-reduced-motion:reduce){
  .pg-mode, .pg-somm::before{ transition:none; }
}
@media print{
  /* Un bloc replié ne doit pas cacher son contenu sur le papier. */
  .pg-bloc > .pg-corps{ display:block !important; }
  .pg-barre{ display:none; }
}

/* ============================================================
   Côté élève : trois bandeaux, trois couleurs
   ------------------------------------------------------------
   Demande de Djamil : « côté élève, il faudrait distinguer avec
   des blocs de couleurs les challenges, TàF et évaluations sur
   leur page de garde ».

   Les trois existaient déjà et se ressemblaient : deux d'entre
   eux partageaient la classe `.evmenu`, donc le même bleu. On ne
   touche PAS à leur structure — seulement à la couleur d'accent,
   au liseré et à la pastille du titre.
============================================================ */

.nv-bandeaux .evmenu,
.nv-bandeaux .chmenu{ border-left:5px solid #94a3b8; }

/* Le travail à faire — ambre : c'est ce qui est dû. */
.nv-bandeaux .tafmenu{ border-left-color:#d97706; background:#fffbeb; }
.nv-bandeaux .tafmenu > .evmenu-h{ color:#92400e; }

/* Les challenges — vert : c'est ce qui se joue maintenant. */
.nv-bandeaux .chmenu{ border-left-color:#059669; background:#ecfdf5; }
.nv-bandeaux .chmenu > .chmenu-h{ color:#065f46; }

/* Les évaluations — ROUGE depuis le 24/09/2026 (demande de Djamil) :
   c'est ce qui compte, et ce qui reste.
   ⚠️ `:not(.tafmenu)` est nécessaire : les deux bandeaux portent la
   classe `.evmenu`, et sans lui le travail à faire reprendrait le
   rouge des évaluations — exactement la confusion qu'on corrige. */
.nv-bandeaux .evmenu:not(.tafmenu){ border-left-color:#dc2626; background:#fef2f2; }
.nv-bandeaux .evmenu:not(.tafmenu) > .evmenu-h{ color:#991b1b; }

/* ==== prof-groupes : fin des styles ==== */
/* ==== choix-exos : css debut ==== */
/* Le sélecteur d'exercices partagé (TàF et challenges).
   ⚠️ Toutes les règles portent le préfixe `mx-`, modificateurs compris
      (`mx-l-on`, jamais `on` nu) : une feuille unique de 5 000 règles
      pour toute la plateforme, un nom court y devient global (piège N). */
.mx{display:flex;flex-direction:column;gap:9px}
.mx-barre{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.mx-inp{flex:1 1 240px;min-width:0;border:1px solid #d8d2e6;border-radius:9px;
  padding:9px 11px;font-size:13.5px}
.mx-multi{border:1.5px solid #d8dde5;background:#fff;border-radius:999px;
  padding:7px 13px;font-size:12.5px;cursor:pointer;white-space:nowrap}
.mx-multi:hover{border-color:#7c3aed}
.mx-multi.mx-multi-on{border-color:#7c3aed;background:#f5f3ff;color:#5b21b6;font-weight:700}
/* ⚠️ `min-width:0` ET `max-width:100%` : un `<select>` prend la largeur de
   sa plus longue option, et « Management, Sciences de gestion et numérique
   — Terminale » débordait de 33 px en 375 px (mesuré). C'est le défaut de
   `.fj-assoc select` (§7.69), sur un autre sélecteur. */
.mx-matsel{border:1px solid #d8d2e6;border-radius:9px;padding:9px 11px;
  font-size:13px;background:#fff;max-width:230px;min-width:0}
.mx-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;
  background:#f5f3ff;border:1px solid #ddd6fe;border-radius:10px;padding:8px 11px}
.mx-add{background:#7c3aed;color:#fff;border:0;border-radius:9px;
  padding:8px 14px;font-size:13px;font-weight:700;cursor:pointer}
.mx-add:disabled{background:#c4b5fd;cursor:default}
.mx-vider{background:none;border:0;color:#6d28d9;font-size:12.5px;
  text-decoration:underline;cursor:pointer}
.mx-note{font-size:12px;color:#6b7280;margin-left:auto}
.mx-vide{font-size:13px;color:#94a3b8;margin:2px 0}
.mx-liste{display:flex;flex-direction:column;gap:4px;max-height:260px;overflow:auto}

.mx-l{display:flex;align-items:center;gap:9px;text-align:left;width:100%;
  box-sizing:border-box;background:#fff;border:1px solid #e2e8f0;border-radius:9px;
  padding:8px 11px;font-size:13.5px;cursor:pointer;
  -webkit-user-select:none;user-select:none}
.mx-l:hover{border-color:#7c3aed;background:#faf5ff}
.mx-l.mx-l-on{border-color:#7c3aed;background:#f5f3ff}
.mx-l.mx-l-deja{background:#f8fafc}
.mx-l-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.mx-l-nom{font-weight:600;color:#1a1430}
.mx-l small{color:#94a3b8;font-size:11.5px}
.mx-case{font-size:15px;line-height:1;color:#7c3aed}
.mx-deja{font-size:11px;font-weight:700;color:#15803d;background:#dcfce7;
  border-radius:6px;padding:2px 7px;white-space:nowrap}
.mx-l.mx-l-mat .mx-l-nom,.mx-l.mx-l-theme .mx-l-nom{color:#6d28d9}

.mx-mat{border:1px solid #ddd6fe;border-radius:11px;background:#fbfaff;overflow:hidden}
.mx-mat-t{display:flex;align-items:center;gap:9px;flex-wrap:wrap;
  padding:9px 11px;border-bottom:1px solid #ede9fe;background:#f5f3ff}
.mx-mat-t b{font-size:14px;color:#4c1d95}
.mx-mat-n{font-size:12px;color:#7c6bab}
.mx-mat-tout{margin-left:auto;background:#fff;border:1.5px solid #c4b5fd;
  border-radius:999px;padding:5px 11px;font-size:12px;color:#5b21b6;cursor:pointer}
.mx-mat-tout:hover{border-color:#7c3aed;background:#f5f3ff}
.mx-mat-x{background:none;border:0;color:#7c6bab;font-size:15px;cursor:pointer;padding:0 4px}
.mx-mat-x:hover{color:#dc2626}
.mx-mat-corps{max-height:340px;overflow:auto;padding:9px 11px;
  display:flex;flex-direction:column;gap:11px}
.mx-th{display:flex;flex-direction:column;gap:4px}
.mx-th-t{display:flex;align-items:center;gap:9px;font-size:12.5px;
  font-weight:700;color:#6b7280}
.mx-th-add{margin-left:auto;background:none;border:0;color:#7c3aed;
  font-size:12px;cursor:pointer;text-decoration:underline}
@media(max-width:640px){
  .mx-matsel{flex:1 1 100%;max-width:100%;width:100%}
  .mx-note{margin-left:0;flex:1 1 100%}
}

/* ==== choix-exos : css fin ==== */
/* ==== bandeaux-eleve : css debut ==== */
/* ============================================================
   LES DEUX BANDEAUX DE L'ÉLÈVE — 24/09/2026

   Djamil : « le bandeau travail à faire doit être plus visible ; le
   bandeau évaluation doit absolument devenir clignotant, les élèves ne
   le voient pas. » Couleur du TàF choisie par lui : le BLEU ROI franc.

   ⚠️ TOUTES LES RÈGLES PORTENT LE PRÉFIXE DE LEUR BLOC (piège N).
      `.urgent` existe déjà nu ailleurs dans cette feuille unique de
      5 000 règles : un modificateur nommé court y devient un nom global.

   ⚠️ LE CLIGNOTEMENT RESTE SOUS 3 Hz. La norme d'accessibilité
      (WCAG 2.3.1) interdit au-delà de trois clignotements par seconde :
      la pulsation est à 1,2 s, soit 0,83 Hz. Ce n'est pas une précaution
      théorique — un écran qui clignote vite est illisible, et c'est
      justement ce qu'on veut faire lire.
============================================================ */

/* ---------- Le travail à faire : bleu roi franc ---------- */
/* ⚠️ Le liseré passe de 5 à 6 px et l'en-tête devient une barre pleine :
   c'est la barre, pas la teinte du fond, qui fait la visibilité. */
.nv-bandeaux .tafmenu{
  border-left-color:#1d4ed8 !important; background:#eff6ff !important;
  border-left-width:6px;
}
.nv-bandeaux .tafmenu > .evmenu-h{
  color:#fff !important; background:#1d4ed8;
  margin:-12px -14px 10px; padding:9px 14px;
  border-radius:13px 13px 0 0; font-size:15.5px;
  display:flex; align-items:center; gap:9px;
}
/* Le compteur : « 2 travaux à faire » se lit d'un coup d'œil, là où
   l'élève devait sinon compter les lignes lui-même. */
.nv-bandeaux .tafmenu .evmenu-cpt{
  margin-left:auto; font-size:12.5px; font-weight:700;
  background:rgba(255,255,255,.22); border-radius:999px; padding:2px 10px;
}
/* ⚠️ Le bouton suit la couleur du bandeau, sinon il reste bleu-vert et
   le bandeau paraît à moitié repeint. */
.nv-bandeaux .tafmenu .evmenu-go{ background:#1d4ed8; }
.nv-bandeaux .tafmenu .evmenu-go:hover{ background:#1e40af; }
/* ⚠️ LE RETARD DOIT RESTER VISIBLE SUR CE FOND. Djamil a été prévenu :
   l'ambre du retard perd du contraste sur un fond bleu. On le rattrape
   par une bordure franche plutôt que par la teinte de fond seule. */
.nv-bandeaux .tafmenu .evmenu-l.afaire{ background:#fff; border-color:#bfdbfe; }
.nv-bandeaux .tafmenu .evmenu-l.afaire.retard{
  background:#fff7ed; border-color:#f97316; border-left:4px solid #f97316;
}

/* ---------- Les évaluations : la pulsation ---------- */
/* ⚠️ ELLE NE S'ALLUME QUE S'IL Y A QUELQUE CHOSE À COMPOSER. Un bandeau
   qui ne porte que des copies déjà rendues ne clignote pas : une alerte
   permanente s'apprend par cœur et cesse d'être vue (§7.54). */
/* ⚠️ L'EN-TÊTE DE L'ÉVALUATION EST UNE BARRE PLEINE, COMME CELLE DU TÀF.
   Écart assumé par rapport à la maquette validée : mesuré à l'écran, un
   TàF à barre pleine bleu roi ÉCRASAIT un bandeau d'évaluation resté
   discret — alors que c'est l'évaluation qu'on ne voit pas. La pulsation
   ne rattrape pas cela : à l'état bas d'un cycle, le bandeau redevient
   celui que les élèves ne voyaient pas. C'est donc la barre qui respire,
   et l'évaluation est visible même figée. */
@keyframes evmenu-pulse{
  0%,100%{ border-left-color:#dc2626;
           box-shadow:0 1px 3px rgba(0,0,0,.05); }
  50%    { border-left-color:#991b1b;
           box-shadow:0 0 0 4px rgba(220,38,38,.30), 0 2px 10px rgba(153,27,27,.25); }
}
@keyframes evmenu-barre-pulse{
  0%,100%{ background:#dc2626; }
  50%    { background:#991b1b; }
}
.nv-bandeaux .evmenu.evmenu-urgent > .evmenu-h{
  color:#fff !important; background:#dc2626;
  margin:-12px -14px 10px; padding:9px 14px;
  border-radius:13px 13px 0 0; font-size:15.5px;
  animation:evmenu-barre-pulse 1.2s ease-in-out infinite;
}
/* Sur la barre pleine, la pastille se détache en clair. */
.nv-bandeaux .evmenu.evmenu-urgent > .evmenu-h .evmenu-pastille{
  margin-left:auto; background:rgba(255,255,255,.22); animation:none;
}
@keyframes evmenu-pastille-pulse{
  0%,100%{ background:#dc2626; transform:scale(1); }
  50%    { background:#991b1b; transform:scale(1.08); }
}
/* La flèche qui glisse sur le bouton « Démarrer l'éval ». */
@keyframes evmenu-fleche-glisse{
  0%,100%{ transform:translateX(0); }
  50%    { transform:translateX(4px); }
}
.nv-bandeaux .evmenu.evmenu-urgent{
  animation:evmenu-pulse 1.2s ease-in-out infinite;
}
.nv-bandeaux .evmenu:not(.tafmenu) > .evmenu-h{
  display:flex; align-items:center; gap:9px; flex-wrap:wrap;
}
.evmenu-pastille{
  font-size:11px; font-weight:800; letter-spacing:.04em; color:#fff;
  background:#dc2626; border-radius:999px; padding:3px 10px;
  animation:evmenu-pastille-pulse 1.2s ease-in-out infinite;
}
.evmenu-fleche{
  display:inline-block;
  animation:evmenu-fleche-glisse 1.2s ease-in-out infinite;
}
/* Le bouton de l'évaluation à composer : plein, rouge, et plus large
   que « Faire → » — c'est le geste qu'on veut faire remarquer. */
.nv-bandeaux .evmenu:not(.tafmenu) .evmenu-l.afaire .evmenu-go{
  background:#dc2626; font-size:13.5px; padding:8px 15px;
}
.nv-bandeaux .evmenu:not(.tafmenu) .evmenu-l.afaire .evmenu-go:hover{
  background:#b91c1c;
}

/* ⚠️ MOUVEMENT RÉDUIT : ON COUPE L'ANIMATION, PAS LA MISE EN ÉVIDENCE.
   Un élève peut avoir demandé « moins d'animations » à son système ;
   lui rendre un bandeau ordinaire lui retirerait exactement ce qu'on
   vient d'ajouter. On fige donc sur l'état HAUT de la pulsation. */
@media(prefers-reduced-motion:reduce){
  .nv-bandeaux .evmenu.evmenu-urgent{
    animation:none; border-left-color:#991b1b; background:#fee2e2;
    box-shadow:0 0 0 3px rgba(220,38,38,.30);
  }
  .nv-bandeaux .evmenu.evmenu-urgent > .evmenu-h{
    animation:none; background:#b91c1c;
  }
  .evmenu-pastille{ animation:none; background:#991b1b; }
  .evmenu-fleche{ animation:none; }
}
@media(max-width:640px){
  .nv-bandeaux .tafmenu > .evmenu-h{ font-size:14.5px; padding:8px 12px; }
  .nv-bandeaux .tafmenu .evmenu-cpt{ font-size:11.5px; }
}

/* ==== bandeaux-eleve : css fin ==== */

/* ---- La porte de reprise (§7.106) ---- */
.mmrepr-porte{display:flex;align-items:center;justify-content:center;min-height:52vh;padding:18px}
.mmrepr-carte{max-width:560px;width:100%;background:#fff;border:1px solid #e6e2f5;
  border-radius:18px;padding:26px 22px;text-align:center;box-shadow:0 8px 28px rgba(60,40,120,.10)}
.mmrepr-carte .mmrepr-ic{font-size:40px;line-height:1}
.mmrepr-carte h2{margin:10px 0 6px;font-size:21px;color:#2f2360}
.mmrepr-q{margin:0 0 18px;color:#4a4368;font-size:15.5px;line-height:1.55}
.mmrepr-btns{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.mmrepr-oui,.mmrepr-non{border:0;border-radius:12px;padding:13px 18px;font-size:15px;
  font-weight:700;cursor:pointer;flex:1 1 210px;min-width:0}
.mmrepr-oui{background:#4f46e5;color:#fff}
.mmrepr-non{background:#f1eefc;color:#41357e}
.mmrepr-note{margin:16px 0 0;font-size:12.5px;color:#7a739a;line-height:1.5}
.mmrepr-att{display:flex;flex-direction:column;align-items:center;justify-content:center;
  min-height:42vh;gap:12px;color:#7a739a;font-size:14px}
.mmrepr-att-p{width:26px;height:26px;border:3px solid #e6e2f5;border-top-color:#4f46e5;
  border-radius:50%;animation:mmreprSpin .8s linear infinite}
@keyframes mmreprSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.mmrepr-att-p{animation:none}}

/* <<< AO-PROFIL styles — début >>> */
/* AO1 · Cent questions pour te dire — préfixe `aop-`, vérifié libre nu. */
.aop-head{margin:0 0 14px}
.aop-barre{height:7px;border-radius:7px;background:#e7e9f5;overflow:hidden}
.aop-barre-in{height:100%;background:linear-gradient(90deg,#6366f1,#4338ca);transition:width .25s}
.aop-compte{font-size:12px;color:#6b7390;margin-top:4px;text-align:right}
.aop-theme{margin:0 0 10px}
.aop-theme-t{font-size:19px;font-weight:800;color:#312e81}
.aop-theme-n{font-size:12px;color:#6b7390;margin-top:2px}
.aop-q{font-size:18px;line-height:1.35;font-weight:700;margin:14px 0 12px;color:#1b2340}
.aop-opts{display:flex;flex-direction:column;gap:9px}
.aop-opt{font:inherit;font-size:15px;line-height:1.35;text-align:left;padding:13px 15px;
  border:2px solid #dfe3f0;border-radius:12px;background:#fff;color:#1b2340;cursor:pointer;
  transition:border-color .12s,background .12s}
.aop-opt:hover{border-color:#a5b4fc;background:#f7f8ff}
.aop-opt-on{border-color:#4338ca;background:#eef0ff}
.aop-nav{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
.aop-plat{font:inherit;font-size:13.5px;padding:9px 14px;border:1.5px solid #dfe3f0;
  border-radius:10px;background:#fff;color:#4338ca;cursor:pointer}
.aop-plat:disabled{opacity:.45;cursor:default}
.aop-pause{text-align:center;padding:16px 4px}
.aop-pause-e{font-size:44px;line-height:1}
.aop-pause h3{margin:8px 0 6px;font-size:19px;color:#312e81}
.aop-pause p{font-size:15px;line-height:1.45;color:#4b5270;max-width:34em;margin:0 auto}
.aop-pause-b{display:flex;flex-direction:column;align-items:center;gap:9px;margin-top:16px}
.aop-h{font-size:22px;color:#312e81;margin:0 0 4px}
.aop-sous{font-size:14.5px;line-height:1.45;color:#4b5270;margin:0 0 16px}
.aop-h4{font-size:15px;color:#312e81;margin:20px 0 8px;
  border-bottom:2px solid #e7e9f5;padding-bottom:4px}
.aop-aide{font-size:12.5px;color:#6b7390;margin:-4px 0 8px}
.aop-axe{margin:0 0 14px}
.aop-axe-l{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#6b7390}
.aop-axe-r{position:relative;height:9px;border-radius:9px;margin:4px 0 6px;
  background:linear-gradient(90deg,#c7d2fe,#a5b4fc,#c7d2fe)}
.aop-axe-p{position:absolute;top:-4px;width:17px;height:17px;border-radius:50%;
  background:#4338ca;border:3px solid #fff;box-shadow:0 0 0 1.5px #4338ca;transform:translateX(-50%)}
.aop-axe-d{font-size:13.5px;line-height:1.4;color:#3a4160}
.aop-liste{display:flex;flex-direction:column;gap:8px}
.aop-liste-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.aop-item{font:inherit;text-align:left;padding:11px 13px;border:2px solid #dfe3f0;
  border-radius:11px;background:#fff;cursor:pointer;min-width:0}
.aop-item-t{font-size:14.5px;font-weight:800;color:#312e81}
.aop-item-d{font-size:13px;color:#4b5270;line-height:1.35;margin-top:2px}
.aop-item-p{font-size:11.5px;color:#7a819c;margin-top:4px;font-style:italic}
.aop-off{opacity:.42;border-style:dashed}
.aop-vide{text-align:center;padding:26px 6px}
.aop-fin{margin-top:22px;border-top:2px solid #e7e9f5;padding-top:14px}
.aop-ouvre{font-size:13.5px;line-height:1.5;color:#3a4160;background:#f5f6fc;
  border-left:4px solid #4338ca;padding:11px 13px;border-radius:0 9px 9px 0;margin:0 0 14px}
.aop-prenom{display:block;font-size:13.5px;color:#4b5270;margin:0 0 12px}
.aop-prenom input{font:inherit;font-size:14px;padding:7px 10px;border:1.5px solid #dfe3f0;
  border-radius:8px;margin-left:6px;max-width:100%;min-width:0}
.aop-fin-b{display:flex;flex-wrap:wrap;gap:9px}
.aop-rgpd{font-size:12.5px;color:#6b7390;line-height:1.45;margin-top:14px;
  background:#f5f6fc;padding:10px 12px;border-radius:9px}
@media(max-width:640px){
  .aop-q{font-size:16.5px}
  .aop-opt{font-size:14.5px;padding:12px 13px}
  .aop-axe-l{font-size:11px}
  .aop-fin-b button,.aop-nav button{flex:1 1 100%}
  .aop-prenom input{display:block;margin:6px 0 0;width:100%}
}
.aop-item-fixe{cursor:default;background:#fbfbff}
.aop-pont{margin-top:20px;font-size:13.5px;line-height:1.5;color:#3a4160;
  background:#fdf4ff;border-left:4px solid #a21caf;padding:11px 13px;border-radius:0 9px 9px 0}
/* Espace prof · les productions */
.prod{max-width:980px}
.prod-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.prod-bar h3{margin:0;font-size:19px;color:#312e81;flex:1 1 auto;min-width:0}
.prod-att,.prod-vide{font-size:14px;color:#6b7390;padding:14px 0}
.prod-err{font-size:14px;color:#b91c1c;background:#fee2e2;padding:9px 12px;border-radius:9px}
.prod-rgpd{font-size:12.5px;color:#5b6280;background:#f5f6fc;padding:9px 12px;
  border-radius:9px;line-height:1.45;margin:0 0 12px}
.prod-classe{border:1.5px solid #e3e6f2;border-radius:12px;margin-bottom:10px;background:#fff}
.prod-classe>summary{cursor:pointer;padding:11px 14px;font-size:15px;display:flex;
  align-items:center;gap:10px;flex-wrap:wrap}
.prod-classe>summary b{color:#312e81}
.prod-cnt{font-size:12.5px;color:#6b7390}
.prod-acts{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:9px;padding:0 14px 13px}
.prod-act{font:inherit;text-align:left;padding:11px 13px;border:1.5px solid #dfe3f0;
  border-radius:11px;background:#fbfbff;cursor:pointer;min-width:0}
.prod-act:hover{border-color:#a5b4fc;background:#f3f4ff}
.prod-act-n{font-size:14.5px;font-weight:700;color:#312e81}
.prod-act-d{font-size:12.5px;color:#6b7390;margin-top:2px}
.prod-actions{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:12px}
.prod-cta{font:inherit;font-size:14px;padding:10px 16px;border:0;border-radius:10px;
  background:#4338ca;color:#fff;cursor:pointer}
.prod-plat{font:inherit;font-size:13.5px;padding:9px 14px;border:1.5px solid #dfe3f0;
  border-radius:10px;background:#fff;color:#4338ca;cursor:pointer}
.prod-mini{padding:6px 11px;font-size:12.5px}
.prod-liste{display:flex;flex-direction:column;gap:7px}
.prod-el{display:flex;align-items:center;gap:11px;flex-wrap:wrap;padding:9px 13px;
  border:1.5px solid #e3e6f2;border-radius:10px;background:#fff}
.prod-el-n{font-size:14.5px;font-weight:700;color:#1b2340;flex:1 1 160px;min-width:0}
.prod-el-p{font-weight:400;color:#8a90a8;font-size:12.5px}
.prod-el-d{font-size:12.5px;color:#6b7390}
@media(max-width:640px){
  .prod-actions button,.prod-bar button{flex:1 1 100%}
  .prod-acts{grid-template-columns:1fr}
}
/* <<< AO-PROFIL styles — fin >>> */

/* eval-redaction : debut des styles */
.evr{max-width:1100px}
.evr-barre{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:12px}
.evr-modes{display:flex;border:1px solid #d7d3e8;border-radius:9px;overflow:hidden}
.evr-mode{background:#fff;border:0;padding:7px 13px;font-size:13px;font-weight:600;color:#6b6485;cursor:pointer}
.evr-mode.on{background:#4338ca;color:#fff}
.evr-plat{background:#fff;border:1px solid #d7d3e8;border-radius:9px;padding:7px 13px;font-size:13px;font-weight:600;color:#3b365c;cursor:pointer}
.evr-cta{margin-left:auto;background:#059669;color:#fff;border:0;border-radius:9px;padding:9px 16px;font-size:14px;font-weight:700;cursor:pointer}
.evr-cta:disabled{background:#cbd5e1;color:#64748b;cursor:default}
/* ==== evals-individuelles : styles (11/11/2026) ==== */
.ia-choix{border:1.5px solid #e5e7eb;border-radius:12px;padding:12px 14px;margin:0 0 14px;background:#fcfcfd}
.ia-recherche{width:100%;box-sizing:border-box;padding:8px 12px;border:1.5px solid #e5e7eb;border-radius:10px;font:inherit;font-size:14px;margin:0 0 8px}
.ia-cases{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:6px;max-height:320px;overflow:auto;padding:2px}
.ev-champ label.ia-case{margin:0;font-family:inherit;font-weight:400;font-size:14px;line-height:1.35;color:#0f172a}
.ia-case{display:flex;align-items:flex-start;gap:8px;padding:7px 10px;border:1.5px solid #e5e7eb;border-radius:10px;background:#fff;cursor:pointer;min-width:0}
.ia-case.on{border-color:#0e7490;background:#f0fdfa}
.ia-case input{margin-top:3px;flex:0 0 auto;width:18px;height:18px;accent-color:#0e7490}
.ia-case-t{display:flex;flex-direction:column;min-width:0}
.ia-case-t b{font-size:14px;overflow-wrap:anywhere}
.ia-case-t small,.ev-champ label.ia-case .ia-case-t small{font-size:12px;font-weight:400;color:#475569;overflow-wrap:anywhere}
.ia-ajout{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.ia-ajout input{flex:1 1 220px;min-width:0;padding:8px 12px;border:1.5px solid #e5e7eb;border-radius:10px;font:inherit;font-size:14px}
.ia-sel{margin-top:12px;padding-top:10px;border-top:1px dashed #cbd5e1}
.ia-puces{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.ia-puce{display:inline-flex;align-items:center;gap:2px;background:#e0f2fe;color:#0c4a6e;border-radius:99px;padding:3px 4px 3px 11px;font-size:13px;font-weight:700}
.ia-puce small{font-weight:400}
.ia-puce button{border:0;background:transparent;color:#0c4a6e;font-size:17px;line-height:1;cursor:pointer;padding:0 6px;min-width:28px;min-height:28px}
.ia-sel-mot{margin:6px 0 0}
.ia-coche{display:flex;align-items:center;gap:8px;font-size:14px;margin:0 0 12px;cursor:pointer}
.ia-coche input{width:18px;height:18px;accent-color:#0e7490}
.ia-sujets{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:8px;margin:0 0 14px}
.ia-sujet{display:flex;align-items:center;gap:10px;text-align:left;border:1.5px solid #e5e7eb;border-radius:12px;background:#fff;padding:10px 12px;cursor:pointer;font:inherit}
.ia-sujet:hover,.ia-sujet:focus-visible{border-color:#0e7490;background:#f0fdfa}
.ia-sujet-ico{font-size:24px}
.ia-sujet-t{display:flex;flex-direction:column;min-width:0}
.ia-sujet-t small{color:#475569;font-size:12.5px}
.ia-alerte{background:#fef3c7;border:1px solid #fcd34d;color:#78350f;border-radius:10px;padding:9px 12px;font-size:14px}
.ia-compteurs{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.ia-compteurs.mini{margin:6px 0 0}
.ia-cpt{display:inline-flex;align-items:center;gap:4px;border-radius:99px;padding:3px 10px;font-size:12.5px;border:1px solid transparent}
.ia-e-pas{background:#f1f5f9;color:#334155;border-color:#e2e8f0}
.ia-e-cours{background:#fef9c3;color:#713f12;border-color:#fde68a}
.ia-e-acorr{background:#dbeafe;color:#1e3a8a;border-color:#bfdbfe}
.ia-e-corr{background:#dcfce7;color:#14532d;border-color:#bbf7d0}
.ia-e-rest{background:#d1fae5;color:#064e3b;border-color:#6ee7b7}
.ia-e-retard{background:#fee2e2;color:#7f1d1d;border-color:#fecaca}
.ia-e-prog{background:#ede9fe;color:#4c1d95;border-color:#ddd6fe}
.ia-haut{display:flex;flex-wrap:wrap;gap:6px;justify-content:space-between}
.ia-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:4px 0 12px}
.ia-lignes{display:flex;flex-direction:column;gap:6px}
.ia-ligne{display:grid;grid-template-columns:minmax(150px,1.2fr) minmax(170px,1.3fr) minmax(120px,1fr) auto;gap:6px 12px;align-items:center;border:1px solid #e5e7eb;border-radius:12px;background:#fff;padding:9px 12px}
.ia-ligne:nth-child(even){background:#fafafa}
.ia-qui{display:flex;flex-direction:column;min-width:0}
.ia-qui b{overflow-wrap:anywhere}
.ia-qui small{color:#475569;font-size:12.5px}
.ia-etat{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.ia-badge{display:inline-block;border-radius:99px;padding:2px 9px;font-size:12.5px;font-weight:700;border:1px solid transparent}
.ia-quand{display:block;width:100%;color:#475569;font-size:12px}
.ia-note{font-size:14px}
.ia-boutons{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}
.ia-pied{margin-top:14px}
.ia-filtres{margin:0 0 10px;flex-wrap:wrap}
@media (max-width:760px){
  .ia-ligne{grid-template-columns:1fr;gap:6px}
  .ia-boutons{justify-content:flex-start}
  .ia-cases{grid-template-columns:1fr;max-height:none}
  .ia-sujets{grid-template-columns:1fr}
}
/* côté élève */
.evmenu-repr.ia-pourtoi{color:#0c4a6e;background:#e0f2fe}
.ia-redac{margin:10px 0 0;border:1px solid #bbf7d0;background:#f0fdf4;border-radius:10px;padding:8px 12px;font-size:14px;text-align:left}
.ia-redac summary{cursor:pointer;font-weight:700;color:#14532d}
.ia-redac-q{margin:8px 0 0;padding-top:8px;border-top:1px dashed #bbf7d0}
.ia-redac-q p{margin:2px 0}
.ia-redac-com{font-style:italic;color:#1f2937}
.ia-attente-mot{margin:10px 0 0;border:1px solid #bfdbfe;background:#eff6ff;color:#1e3a8a;border-radius:10px;padding:8px 12px;font-size:14px;text-align:left}
/* ==== evals-individuelles : styles fin ==== */
.evr-tete h3{margin:0 0 4px}
.evr-ok{color:#047857;font-weight:600;margin:6px 0 0}
.evr-ongl{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 10px}
.evr-ong{background:#fff;border:1px solid #d7d3e8;border-radius:8px;padding:6px 11px;font-size:13px;font-weight:600;color:#3b365c;cursor:pointer}
.evr-ong.on{background:#4338ca;border-color:#4338ca;color:#fff}
.evr-enonce{background:#f6f5fc;border:1px solid #e3e0f2;border-left:4px solid #4338ca;border-radius:10px;padding:13px 16px;margin-bottom:14px}
.evr-enonce p{margin:0;font-size:15px;font-weight:600;color:#1f1b3a}
.evr-page{font-size:12px;font-weight:700;color:#6b6485;text-transform:uppercase;letter-spacing:.4px;margin-bottom:4px}
.evr-ctx{margin-top:8px;font-size:14px;color:#3b365c}
.evr-att{margin-top:10px;font-size:14px}
.evr-att summary{cursor:pointer;font-weight:600;color:#4338ca}
.evr-liste{display:flex;flex-direction:column;gap:12px}
.evr-rep{background:#fff;border:1px solid #e3e0f2;border-radius:10px;padding:12px 14px}
.evr-qui{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;margin-bottom:7px}
.evr-qui span{font-size:12.5px;color:#6b6485}
.evr-cpt{margin-left:auto;font-size:12px;color:#8b85a6;white-space:nowrap}
.evr-txt{white-space:pre-wrap;background:#fbfaff;border:1px solid #e9e6f5;border-radius:8px;padding:10px 12px;font-size:14.5px;line-height:1.6;color:#1f1b3a}
.evr-vide{color:#9a94b3;font-style:italic}
.evr-note{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin-top:9px}
.evr-note label{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#3b365c}
.evr-pts{width:70px;padding:6px 8px;border:1.5px solid #c9c3e0;border-radius:7px;font-size:15px;font-weight:700;text-align:center}
.evr-sur{font-weight:600;color:#6b6485}
.evr-pts-vide{border-color:#e3e0f2;background:#fbfaff}
.evr-pts::placeholder{color:#b9b3cc;font-weight:400}
.evr-com{flex:1 1 240px;min-width:0;padding:6px 10px;border:1px solid #d7d3e8;border-radius:7px;font-size:13.5px}
.evr-el{background:#fff;border:1px solid #e3e0f2;border-radius:10px;padding:4px 12px}
.evr-el>summary{cursor:pointer;padding:9px 0;display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline}
.evr-el-c{font-size:12.5px;color:#6b6485}
.evr-el-n{margin-left:auto;font-size:13px;color:#3b365c;white-space:nowrap}
.evr-qbloc{margin:8px 0 14px}
.evr-qtitre{margin:0 0 6px;font-size:13.5px;font-weight:700;color:#4338ca}
.evm-redac-zone{width:100%;box-sizing:border-box;min-height:190px;padding:12px 14px;border:1.5px solid #c9c3e0;border-radius:10px;font:15px/1.65 inherit;color:#1f1b3a;resize:vertical}
.evm-redac-zone:focus{outline:0;border-color:#4338ca}
.evm-redac-cpt{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:6px;font-size:12.5px;color:#6b6485}
.evm-redac-cpt b{color:#3b365c}
.evm-redac-min{color:#b45309;font-weight:600}
.evm-redac-ok{color:#047857;font-weight:600}
.evm-redac-apres{margin-top:10px;background:#fff7ed;border:1px solid #fed7aa;border-radius:9px;padding:9px 12px;font-size:13.5px;color:#7c2d12}
.evm-plustard{margin:14px auto 0;max-width:560px;background:#eef2ff;border:1px solid #c7d2fe;border-radius:11px;padding:12px 16px;font-size:14px;color:#312e81;line-height:1.6}
@media(max-width:640px){.evr-cta{margin-left:0;width:100%}.evr-cpt{margin-left:0}}
/* eval-redaction : fin des styles */

/* eval-docs-questions : debut */
.evm-qdocs{display:flex;flex-direction:column;gap:10px;margin:10px 0 4px}
.evm-qdocs .evm-cx-doc{margin:0}
/* ⚠️ Un tableau de donnees se lit quand ses cases sont tracees : sans
   bordure, les colonnes d'un tableau de bord se confondent des qu'il y
   a plus de deux lignes (demande du 30/09/2026). */
.evm-cx-doc table{width:100%;border-collapse:collapse;margin:8px 0;font-size:14px}
.evm-cx-doc th,.evm-cx-doc td{border:1px solid #cbd5e1;padding:6px 9px;text-align:left}
.evm-cx-doc th{background:#f1f5f9;font-weight:700}
.evm-cx-doc td:not(:first-child){text-align:right;white-space:nowrap}
.evm-cx-doc tr:nth-child(even) td{background:#f8fafc}
/* eval-docs-questions : fin */

/* ==== evolution : styles (debut) ==== */
/* ⚠️ PREFIXE `tev-`, verifie NU dans index.html avant de l'adopter :
   `.tev-` 0 occurrence, `TEV_` 0, `Tev[A-Z]` 0. Le prefixe `ev-` etait
   deja pris par les evaluations — l'adopter aurait fait heriter ces
   ecrans de regles etrangeres, sans erreur ni log (piege N, §7.58).
   Un seul nom est emprunte volontairement : `dj-signe`, le bouton
   « moins » partage par tous les champs numeriques (§7.50). */

.tev { --tev-bleu: #0ea5e9; --tev-vert: #0d9488; --tev-encre: #0f172a; }

.tev-banniere { width: 100%; max-height: 190px; object-fit: cover;
  border-radius: 14px; margin-bottom: 14px; }

.tev-intro h2 { margin: 6px 0 10px; font-size: 21px; line-height: 1.25; }
.tev-intro-txt { font-size: 16px; line-height: 1.55; }
.tev-plan { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 12px;
  padding: 12px 14px; margin: 14px 0; }
.tev-plan b { display: block; margin-bottom: 6px; }
.tev-plan ol { margin: 0; padding-left: 20px; }
.tev-plan li { margin: 4px 0; line-height: 1.45; }
.tev-antibi { font-size: 13.5px; color: #475569; background: #f8fafc;
  border-left: 3px solid #cbd5e1; padding: 8px 12px; border-radius: 0 8px 8px 0; }

.tev-h { margin: 0 0 10px; font-size: 19px; }
.tev-cta { display: inline-block; margin-top: 14px; padding: 12px 20px;
  background: var(--tev-bleu); color: #fff; border: 0; border-radius: 10px;
  font-size: 16px; font-weight: 700; cursor: pointer; }
.tev-cta:disabled { background: #cbd5e1; cursor: not-allowed; }
.tev-plat { margin-top: 14px; margin-right: 10px; padding: 12px 16px;
  background: #fff; color: #334155; border: 1px solid #cbd5e1;
  border-radius: 10px; font-size: 15px; cursor: pointer; }

/* --------------------------------------------------------- animation */
.tev-anim-pas { font-size: 12.5px; font-weight: 700; color: #0369a1;
  text-transform: uppercase; letter-spacing: .04em; }
.tev-anim-t { display: block; margin: 4px 0 12px; font-size: 17px; }
.tev-anim-scene { background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 12px; padding: 14px; }
.tev-anim-abs { color: #64748b; font-size: 14px; text-align: center; }
.tev-anim-txt { margin: 12px 0 0; font-size: 15.5px; line-height: 1.55; }
.tev-anim-nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

/* ---------------------------------------------------------- exercice */
.tev-barre { display: flex; flex-wrap: wrap; gap: 6px 12px;
  align-items: baseline; justify-content: space-between; }
.tev-num { font-size: 13px; font-weight: 800; color: #0369a1; }
.tev-pal { font-size: 13px; color: #64748b; }
.tev-jauge { height: 6px; background: #e2e8f0; border-radius: 99px;
  overflow: hidden; margin: 6px 0 14px; }
.tev-jauge i { display: block; height: 100%; background: var(--tev-bleu);
  border-radius: 99px; transition: width .35s ease; }

.tev-ctx { display: flex; gap: 12px; align-items: flex-start;
  background: #f8fafc; border-radius: 12px; padding: 12px 14px; }
.tev-emo { font-size: 30px; line-height: 1; flex: 0 0 auto; }
.tev-dom { display: inline-block; font-size: 11.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; color: #0369a1;
  background: #e0f2fe; padding: 2px 8px; border-radius: 99px; margin-bottom: 4px; }
.tev-ctx p { margin: 0; line-height: 1.5; }

.tev-donnees { width: 100%; border-collapse: collapse; margin: 12px 0; }
.tev-donnees th, .tev-donnees td { border: 1px solid #e2e8f0; padding: 8px 10px;
  text-align: left; font-size: 15px; }
.tev-donnees th { background: #f8fafc; font-weight: 600; width: 62%; }
.tev-donnees td { font-weight: 800; white-space: nowrap; }

.tev-aide { margin: 10px 0; }
.tev-aide-b { background: #fffbeb; border: 1px solid #fde68a; color: #92400e;
  border-radius: 9px; padding: 8px 12px; font-size: 14px; cursor: pointer; }
.tev-aide-f { margin: 8px 0 0; background: #fffbeb; border-left: 3px solid #f59e0b;
  padding: 8px 12px; border-radius: 0 8px 8px 0; font-weight: 700; }

.tev-q { margin: 14px 0 10px; font-size: 16.5px; font-weight: 700; line-height: 1.45; }

.tev-saisie { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* ⚠️ `flex:1 1 140px` et non 100 % en mobile : le champ et le bouton
   « moins » doivent rester sur la MEME ligne, sinon personne ne fait le
   lien entre les deux (§7.50, mesuré a 375 px). */
.tev-saisie input { flex: 1 1 140px; min-width: 0; padding: 12px 14px;
  border: 2px solid #cbd5e1; border-radius: 10px; font-size: 17px; font-weight: 700; }
.tev-saisie input.juste { border-color: #10b981; background: #ecfdf5; }
.tev-saisie input.faux { border-color: #f59e0b; background: #fffbeb; }
.tev-unite { font-weight: 800; color: #334155; }
.tev-valider { margin-top: 0; }

.tev-choix { display: grid; gap: 8px; }
.tev-choix-b { text-align: left; padding: 12px 14px; border: 2px solid #e2e8f0;
  background: #fff; border-radius: 10px; font-size: 15px; line-height: 1.45; cursor: pointer; }
.tev-choix-b:hover:not(:disabled) { border-color: var(--tev-bleu); }
.tev-choix-b.bon { border-color: #10b981; background: #ecfdf5; }
.tev-choix-b.rate { border-color: #f59e0b; background: #fffbeb; }

.tev-corr { margin-top: 14px; padding: 12px 14px; border-radius: 12px; }
.tev-corr.ok { background: #ecfdf5; border: 1px solid #a7f3d0; }
.tev-corr.revoir { background: #fffbeb; border: 1px solid #fde68a; }
.tev-att { margin: 6px 0 0; font-size: 15.5px; }
.tev-pose { margin: 10px 0 0; padding-left: 22px; }
.tev-pose li { margin: 4px 0; line-height: 1.5; }
.tev-piege { margin: 10px 0 0; font-size: 14.5px; color: #7c2d12; line-height: 1.5; }
.tev-utile { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5;
  background: #eef2ff; border-left: 3px solid #6366f1; padding: 8px 12px;
  border-radius: 0 8px 8px 0; color: #312e81; }
.tev-corr-voix { margin: 8px 0 0; }

/* -------------------------------------------------- passage aux points */
.tev-pont p { line-height: 1.55; }
.tev-pont-ex { display: flex; gap: 14px; align-items: center; justify-content: center;
  background: #f8fafc; border-radius: 12px; padding: 14px; margin: 14px 0; }
.tev-pont-ex > div { text-align: center; }
.tev-pont-ex b { display: block; font-size: 26px; color: var(--tev-encre); }
.tev-pont-ex span { font-size: 12.5px; color: #64748b; }
.tev-pont-fl { font-size: 24px; color: #94a3b8; }
.tev-pont-deux { display: grid; gap: 8px; margin: 14px 0; }
.tev-pont-deux span { background: #eef2ff; border-radius: 10px; padding: 10px 14px;
  font-size: 15.5px; }

/* ------------------------------------------------------------- bilan */
.tev-bilan-note { font-size: 44px; font-weight: 800; color: var(--tev-bleu);
  line-height: 1; margin: 6px 0 12px; }
.tev-bilan-note span { font-size: 18px; font-weight: 600; color: #64748b; margin-left: 6px; }
.tev-bilan-det { background: #f8fafc; border-radius: 12px; padding: 10px 14px; }
.tev-bilan-det p { margin: 4px 0; }
.tev-bilan-txt { margin: 14px 0; font-size: 15.5px; line-height: 1.55; }

/* ⚠️ Le vert de SDGN ne redefinit QUE la variable : reecrire les regles
   aurait fait deux feuilles a tenir, et c'est toujours celle qu'on
   retouche le moins qui se perime (§7.97). */
.tev.tev-sdg { --tev-bleu: var(--tev-vert); }
.tev.tev-sdg .tev-plan { background: #f0fdfa; border-color: #99f6e4; }
.tev.tev-sdg .tev-num, .tev.tev-sdg .tev-dom { color: #0f766e; }
.tev.tev-sdg .tev-dom { background: #ccfbf1; }
.tev.tev-sdg .tev-anim-pas { color: #0f766e; }

@media (max-width: 640px) {
  .tev-donnees th { width: auto; }
  .tev-donnees th, .tev-donnees td { font-size: 14px; padding: 7px 8px; }
  .tev-donnees td { white-space: normal; }
  .tev-bilan-note { font-size: 36px; }
  .tev-pont-ex { gap: 8px; }
  .tev-pont-ex b { font-size: 22px; }
}
/* ==== evolution : styles (fin) ==== */

.evm-retour-note{margin:10px 0 0;padding:8px 12px;border-radius:0 8px 8px 0;background:#eef2ff;border-left:3px solid #6366f1;color:#312e81;font-size:14px;line-height:1.5}

/* ====== Le surligneur des documents d'evaluation (30/09/2026) ======
   Meme forme et meme place que la bulle de la calculatrice, 60 px
   au-dessus : les deux doivent pouvoir etre ouvertes en meme temps. */
/* ⚠️ `mark` EST DEJA STYLE AILLEURS SUR LA PLATEFORME — en gras, en 16 px,
   et en vert ou en rouge selon l endroit. Un surlignage en heritait :
   le texte changeait de graisse, de taille et de couleur, et passait
   pour blanc sur pastel. C est le piege N applique a une BALISE et non
   a une classe : le nom est deja pris, et on ne peut pas le renommer.
   On remet donc tout ce qui vient du contexte — police, taille,
   graisse, style — et on impose la seule chose qui compte : un texte
   noir, lisible sur les quatre pastels. */
.evsurl{border-radius:3px;padding:0 1px;box-decoration-break:clone;-webkit-box-decoration-break:clone;color:#0f172a !important;-webkit-text-fill-color:#0f172a;font-size:inherit !important;font-weight:inherit !important;font-family:inherit;font-style:inherit;line-height:inherit}
.evsur-fab{position:fixed;bottom:256px;right:16px;width:50px;height:50px;border-radius:50%;background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;border:none;font-size:22px;cursor:pointer;box-shadow:0 6px 18px rgba(217,119,6,.45);z-index:9000;display:flex;align-items:center;justify-content:center;transition:transform .15s}
.evsur-fab:hover{transform:scale(1.08)}
.evsur-fab.on{box-shadow:0 0 0 3px #fff,0 0 0 6px #f59e0b}
.evsur-pad{position:fixed;bottom:256px;right:16px;width:240px;background:#fff;border:1px solid #d1d5db;border-radius:16px;box-shadow:0 12px 36px rgba(0,0,0,.22);z-index:9000;padding:12px;font-family:inherit}
.evsur-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.evsur-titre{font-size:13px;font-weight:700;color:#b45309}
.evsur-close{background:none;border:none;font-size:16px;color:#64748b;cursor:pointer;line-height:1;padding:2px 6px;margin-left:auto}
.evsur-cs{display:flex;gap:8px;margin-bottom:10px}
.evsur-pc{flex:1;height:38px;border:3px solid transparent;border-radius:10px;cursor:pointer;font-size:16px;font-weight:800;color:#334155;line-height:1}
.evsur-outils{display:flex;gap:8px;margin-bottom:8px}
.evsur-gomme,.evsur-tout{flex:1;padding:8px 6px;border:1px solid #cbd5e1;background:#fff;border-radius:9px;font-size:12.5px;cursor:pointer;color:#334155}
.evsur-gomme.on{background:#fef3c7;border-color:#f59e0b;font-weight:700}
.evsur-tout:disabled{opacity:.45;cursor:not-allowed}
.evsur-aide{margin:0;font-size:12px;line-height:1.45;color:#64748b}
.evsur-nb{margin:6px 0 0;font-size:12px;font-weight:700;color:#b45309}
@media(max-width:640px){.evsur-pad{width:210px}}
/* ==== management-ch34 : css debut ==== */
/* Management ch. 3 et 4 — les deux cadres d'illustration ajoutés au
   moteur Zambrok. Rien d'autre : les treize activités réutilisent les
   règles `.zb-*` déjà en place (§7.99), donc aucun préfixe neuf et
   aucun risque de collision (piège N).

   ⚠️ LES DEUX CADRES NE ROGNENT PAS DU MÊME CÔTÉ. `.zb-scene` est plus
      large que la source 16/9 : `cover` garde toute la largeur et rogne
      la HAUTEUR (~36 % du centre visible sur un écran de bureau).
      `.zb-vig-img` est encore plus plate. La luminance se mesure sur la
      bande que chacun montre vraiment, jamais sur l'image entière
      (§7.44). */
.zb-scene{width:100%;height:180px;object-fit:cover;border-radius:12px;display:block;margin:0 0 14px}
.zb-vig-img{width:100%;height:120px;object-fit:cover;border-radius:8px;display:block;margin:0 0 10px}
@media(max-width:640px){
  .zb-scene{height:140px}
  .zb-vig-img{height:104px}
}

/* ==== management-ch34 : css fin ==== */
.gh-rz{ flex-shrink:0; font:inherit; font-size:12.5px; font-weight:700; cursor:pointer;
  background:#fff; color:#5b21b6; border:1.5px solid #c4b5fd; border-radius:999px;
  padding:5px 11px; white-space:nowrap; }
.gh-rz:hover,.gh-rz:focus-visible{ background:#f5f3ff; border-color:#7c3aed; }
@media (max-width:640px){ .gh-rz{ font-size:11.5px; padding:4px 9px; } }
/* ⚠️ L'ERREUR SE VOIT (01/10/2026). Le bloc de correction etait gris quel
   que soit le verdict, et son en-tete « a revoir » en cyan : rien ne
   distinguait une bonne reponse d'une erreur. Rose pastel pour l'erreur,
   vert pale pour la reussite — et Antibi reste tenu, on ne dit pas « Faux »,
   on dit « pas encore » et on invite a lire.
   Les six premieres familles portaient DEJA leur classe conditionnelle :
   elles n'ont demande aucune retouche de composant. */
.fj-corr-ko,.gw-corr-ko,.px-corr.ko,.pc-detail-corr.ko,.tev-corr.revoir,
.sr-tri-rep.sr-revoir{
  background:#fef2f2 !important; border-left:4px solid #f87171;
}
.fj-corr-ok,.gw-corr-ok,.px-corr.ok,.pc-detail-corr.ok,.tev-corr.ok,
.sr-tri-rep.sr-bon{
  background:#f0fdf4 !important; border-left:4px solid #4ade80;
}
/* L'en-tete : le cyan de `.revoir` ne disait rien d'une erreur. */
.fj-corr-tete.revoir,.tev-corr.revoir > b{ color:#b91c1c; }
.fj-corr-tete.ok{ color:#15803d; }
/* Le bloc d'explication des moteurs Zb, qui n'avait aucun verdict. */
.zb-why-ko{ background:#fef2f2; border-left:4px solid #f87171;
  border-radius:8px; padding:9px 12px; color:#7f1d1d; }
/* ⚠️ LES CHAPITRES (01/10/2026). Un separateur dessinait une simple ligne :
   les cartes qui suivaient ne lui appartenaient visiblement pas, et un
   theme de quinze cartes ne se parcourait pas. L'en-tete devient un bouton
   qui replie, annonce ce que le chapitre contient et ce qui y est fait.
   ⚠️ AUCUN CONTENEUR N'EST AJOUTE : `.games` est une grille, et envelopper
   les cartes les sortirait de ses enfants directs. Le repli consiste a ne
   PAS emettre les cartes du chapitre ferme. */
.gsep-chap{ gap:10px; margin:14px 0 2px; }
.gsep-btn{ display:flex; align-items:center; gap:8px; flex-shrink:0; cursor:pointer;
  font:inherit; background:#f5f3ff; border:1.5px solid #ddd6fe; border-radius:999px;
  padding:6px 14px; color:#4c1d95; text-align:left; }
.gsep-btn:hover,.gsep-btn:focus-visible{ background:#ede9fe; border-color:#a78bfa; }
.gsep-btn .gsep-title{ font-size:15.5px; color:#3b0764; padding:0; }
.gsep-chev{ font-size:12px; opacity:.75; flex-shrink:0; }
.gsep-cnt{ flex-shrink:0; font-size:11.5px; font-weight:800; color:#5b21b6;
  background:#fff; border-radius:999px; padding:2px 8px; }
.gsep-chap.plie .gsep-btn{ background:#fff; }
@media (max-width:640px){
  .gsep-btn{ padding:5px 11px; } .gsep-btn .gsep-title{ font-size:14px; }
}
/* ==== qcm-prof : les styles de l'editeur ==== */
.qcp-barre{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:14px 0; }
.qcp-barre label{ font-size:13px; font-weight:700; color:#475569; }
.qcp-barre select{ font:inherit; padding:7px 10px; border:1.5px solid #cbd5e1;
  border-radius:9px; max-width:100%; min-width:0; }
.qcp-add,.qcp-pub,.qcp-add-min{ font:inherit; cursor:pointer; border-radius:999px;
  font-weight:700; border:1.5px solid #0d9488; background:#fff; color:#0f766e;
  padding:7px 14px; font-size:13px; }
.qcp-pub{ background:#0d9488; color:#fff; }
.qcp-pub:disabled{ opacity:.5; cursor:default; }
.qcp-add-min{ font-size:12px; padding:4px 11px; border-color:#cbd5e1; color:#475569; }
.qcp-msg{ background:#f0fdfa; border-left:4px solid #0d9488; border-radius:9px;
  padding:10px 13px; margin:10px 0; font-size:13.5px; }
.qcp-note{ background:#fffbeb; border-left:4px solid #f59e0b; border-radius:9px;
  padding:10px 13px; margin:10px 0; font-size:13px; color:#422006; }
.qcp-vide{ background:#f8fafc; border-radius:12px; padding:16px; font-size:14px; }
.qcp-bloc{ border:1.5px solid #e2e8f0; border-radius:14px; margin:10px 0; background:#fff; }
.qcp-tete{ display:flex; align-items:center; gap:10px; padding:10px 13px; }
.qcp-plier{ font:inherit; font-weight:700; font-size:14.5px; cursor:pointer;
  background:none; border:0; color:#0f172a; text-align:left; flex:1; min-width:0; }
.qcp-cnt{ font-size:11.5px; font-weight:700; color:#5b21b6; background:#f5f3ff;
  border-radius:999px; padding:2px 9px; white-space:nowrap; }
.qcp-del{ font:inherit; cursor:pointer; background:none; border:0; font-size:14px; opacity:.6; }
.qcp-del:hover{ opacity:1; } .qcp-del:disabled{ opacity:.2; cursor:default; }
.qcp-corps{ padding:0 13px 13px; display:flex; flex-direction:column; gap:9px; }
.qcp-corps > label{ display:flex; flex-direction:column; gap:4px; font-size:12.5px;
  font-weight:700; color:#475569; }
.qcp-corps input,.qcp-corps textarea,.qcp-corps select{ font:inherit; font-weight:400;
  padding:7px 10px; border:1.5px solid #cbd5e1; border-radius:9px; width:100%;
  min-width:0; box-sizing:border-box; }
.qcp-q{ background:#f8fafc; border-radius:11px; padding:11px; display:flex;
  flex-direction:column; gap:7px; }
.qcp-q-tete{ display:flex; align-items:center; gap:8px; font-size:13px; }
.qcp-q-tete b{ flex:1; }
.qcp-q textarea,.qcp-q input{ font:inherit; padding:6px 9px; border:1.5px solid #cbd5e1;
  border-radius:8px; width:100%; min-width:0; box-sizing:border-box; }
.qcp-opt{ display:flex; align-items:center; gap:7px; }
.qcp-opt input[type=radio]{ width:auto; flex-shrink:0; }
.qcp-len{ font-size:10.5px; color:#94a3b8; min-width:22px; text-align:right; flex-shrink:0; }
.qcp-biais{ background:#fef2f2; border-left:4px solid #f87171; border-radius:11px;
  padding:12px 14px; margin:14px 0; font-size:13px; }
.qcp-biais-l{ padding:3px 0; border-bottom:1px dotted #fecaca; }
.qcp-biais-l span{ font-weight:700; color:#b91c1c; }
.qcp-droits{ margin-top:22px; border-top:2px dashed #e2e8f0; padding-top:16px; font-size:13px; }
.qcp-droit-l{ padding:9px 0; border-bottom:1px solid #f1f5f9; }
.qcp-droit-mats{ display:flex; flex-wrap:wrap; gap:5px; margin-top:5px; }
.qcp-droit-mats label{ font-size:11px; border:1.5px solid #cbd5e1; border-radius:999px;
  padding:3px 8px; cursor:pointer; display:flex; align-items:center; gap:4px; }
.qcp-droit-mats label.on{ border-color:#0d9488; background:#f0fdfa; color:#0f766e; font-weight:700; }
@media (max-width:640px){ .qcp-barre{ flex-direction:column; align-items:stretch; } }

/* ==== apps-menu : debut des styles ==== */
/* ⚠️ PREFIXE `apps-` SUR TOUT, modificateurs compris
   (`apps-carte-attente`, jamais `attente`). La feuille de la plateforme
   compte plus de cinq mille regles dans un seul fichier : un
   modificateur nomme court y devient un nom global et herite de la
   premiere regle du meme nom qui traine ailleurs (piege N). */
.apps-wrap{max-width:1000px}
.apps-tete h2{margin:0 0 6px;font-size:21px}
.apps-tete p{margin:0 0 18px;font-size:14px;line-height:1.55;color:#6b6485;max-width:60ch}

.apps-grille{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}

.apps-carte{
  position:relative;padding:18px 18px 16px;background:#fff;
  border:1px solid #e3e6ef;border-top:4px solid var(--apps-c,#2563eb);
  border-radius:14px;box-shadow:0 1px 8px rgba(17,24,39,.05)
}
.apps-carte-attente{opacity:.6}
.apps-icone{font-size:34px;line-height:1}
.apps-carte h3{margin:6px 0 2px;font-size:19px}
.apps-quoi{margin:0 0 10px;font-size:14px;font-weight:700;color:var(--apps-c,#2563eb)}
.apps-txt{margin:0 0 10px;font-size:13.5px;line-height:1.55;color:#4b5563}

.apps-points{margin:0 0 14px;padding-left:18px;font-size:13px;line-height:1.6;color:#6b6485}
.apps-points li{margin-bottom:2px}

.apps-actions{display:flex;flex-wrap:wrap;gap:8px}
.apps-b{
  display:inline-block;padding:9px 14px;font-size:14px;font-weight:700;
  color:#fff;text-decoration:none;background:var(--apps-c,#2563eb);
  border:2px solid var(--apps-c,#2563eb);border-radius:10px
}
.apps-b:hover{filter:brightness(.92)}
/* ⚠️ L'ETAT « plat » PORTE LE PREFIXE DE SON BLOC : `.apps-b-plat`, et
   pas `.plat`. C'est le badge en ovale jaune geant de §7.19, evite. */
.apps-b-plat{color:var(--apps-c,#2563eb);background:#fff}
/* §7.190 : le lien discret vers la boîte à outils */
.apps-lien{color:#5f3dc4;font-weight:700;text-decoration:underline}

.apps-attente{margin:0;font-size:13px;font-weight:700;color:#6b6485}

.apps-note{
  margin-top:20px;padding:14px 16px;font-size:13px;line-height:1.6;
  color:#374151;background:#f8fafc;border-left:4px solid #94a3b8;border-radius:10px
}
.apps-note strong{display:block;margin-bottom:4px}
.apps-note p{margin:0;max-width:66ch}

@media(max-width:640px){
  .apps-grille{grid-template-columns:1fr}
}
/* ==== apps-menu : fin des styles ==== */
/* ==== oquiz-pont : debut styles ==== */
/* Le bouton d'envoi vers OQuiz, a cote de « Projeter la selection ».
   ⚠️ `flex-wrap` et `gap` ne sont PAS ici : ils completent la regle
      `.dbf-menu-sel` D'ORIGINE (retouche 4). Les declarer une seconde
      fois ferait un doublon que `collisions-css.py` signale a raison —
      deux declarations d'une meme classe s'appliquent aux memes
      elements, et une alerte qu'on prend l'habitude d'ignorer ne sert
      plus a rien le jour ou elle dit vrai (§7.54). */
.dbf-menu-sel button.mmoq-b{background:#c2255c;box-shadow:0 8px 20px -10px rgba(194,37,92,.6)}
.dbf-menu-sel button.mmoq-b:disabled{background:#cbd5e1;box-shadow:none}
.mmoq-attente{position:fixed;inset:0;z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:24px;text-align:center;background:linear-gradient(160deg,#1b1340,#2d1b55 55%,#3b1d4e);color:#fff}
.mmoq-attente-t{margin:0;font-size:clamp(17px,2.2vw,26px);font-weight:700;max-width:30ch;line-height:1.45}
.mmoq-attente-b{padding:11px 22px;border:0;border-radius:999px;background:#c2255c;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.mmoq-arrivee{margin:10px 0 0;padding:12px 16px;border-radius:12px;background:#fdf2f8;border:1px solid #fbcfe8;border-left:4px solid #c2255c;color:#500724;font-size:14.5px;line-height:1.5}
.mmoq-msg{flex:1 0 100%;margin:4px 0 0;text-align:right;font-size:12.5px;color:#475569}
/* ==== oquiz-pont : fin styles ==== */
/* ==== mon-mdp : debut styles ==== */
/* « Mon mot de passe » : un formulaire court, et rien d'autre. */
.mmdp{max-width:460px;margin:0 auto;padding:18px}
.mmdp h3{margin:0 0 4px}
.mmdp-sous{margin:0 0 16px;font-size:13.5px;color:#6b6485;line-height:1.5}
.mmdp-grid{display:flex;flex-direction:column;gap:12px}
.mmdp-grid label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600;color:#475569}
.mmdp-grid input{padding:11px 13px;border:1px solid #e2e8f0;border-radius:10px;font:inherit;font-size:15px}
.mmdp-grid input:focus{outline:2px solid #7c3aed;outline-offset:1px;border-color:#7c3aed}
.mmdp-msg{margin:14px 0 0;padding:10px 13px;border-radius:10px;background:#f8fafc;font-size:14px}
.mmdp-go{width:100%;margin-top:14px;padding:12px;border:0;border-radius:10px;background:#7c3aed;color:#fff;font:inherit;font-weight:700;font-size:15px;cursor:pointer}
.mmdp-go:disabled{background:#cbd5e1;cursor:progress}
.mmdp-note{margin:12px 0 0;font-size:12.5px;color:#6b6485;text-align:center}
/* ==== mon-mdp : fin styles ==== */
/* ==== mdp-oublie : debut styles ==== */
/* L'adresse e-mail, sous le mot de passe : deux blocs, une seule page. */
.mmdp-mail{margin-top:26px;padding-top:22px;border-top:1px solid #e2e8f0}
.mmdp-mail h3{margin:0 0 4px}
/* ==== mdp-oublie : fin styles ==== */
/* ==== reveil : css debut ==== */
/* ===== LE RÉVEIL — préfixe rv-, cherché LIBRE avant d'être employé
   (piège N : 0 occurrence de « rv- » dans index.html au 03/10/2026).

   ⚠️ LA COULEUR DIT LE STATUT, et les trois autres bandeaux sont déjà
      pris : rouge = l'évaluation (c'est noté), bleu roi = le travail à
      faire (c'est dû), vert = les challenges (ça se joue). Le réveil est
      une PROPOSITION : sarcelle, ni alarme ni obligation. Reprendre un
      rouge l'aurait fait lire comme une dette. ===== */

.rv-menu {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-left: 4px solid #0d9488;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 10px 0;
}
.rv-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.rv-h-t { font-weight: 800; font-size: 15px; color: #0f766e; }
.rv-h-n {
  font-size: 12.5px; font-weight: 700; color: #115e59;
  background: #ccfbf1; border-radius: 999px; padding: 2px 9px;
}
.rv-quoi { font-size: 13px; color: #134e4a; margin: 6px 0 10px; line-height: 1.45; }

.rv-liste { display: flex; flex-direction: column; gap: 7px; }
.rv-l {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #ccfbf1; border-radius: 10px;
  padding: 8px 10px;
}
.rv-l-ico { font-size: 20px; flex: 0 0 auto; }
/* `min-width:0` sans quoi un nom long pousse le bouton hors de la carte :
   un élément flex ne rétrécit pas sous la largeur de son contenu
   (le défaut de `.mp-panneau`, §7.69).

   ⚠️ ET LA BASE EST `0`, JAMAIS `auto`. Avec une base `auto`, un nom long
      demande sa largeur ENTIÈRE : il ne rentre plus à côté de l'icône et
      passe à la ligne AVANT d'être rétréci — le retour à la ligne se
      décide sur la base, pas sur la taille finale. Mesuré à 375 px : la
      seule carte au nom long sortait son icône toute seule sur sa ligne,
      et les quatre autres non. Avec une base `0`, l'élément ne demande
      rien, rentre toujours, puis grandit pour remplir. */
.rv-l-txt { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.rv-l-nom {
  font-weight: 700; font-size: 13.5px; color: #0f172a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rv-l-sous { font-size: 11.5px; color: #5b7c79; margin-top: 1px; }
.rv-l-go {
  flex: 0 0 auto; text-decoration: none;
  background: #0d9488; color: #fff;
  font-weight: 700; font-size: 12.5px;
  border-radius: 999px; padding: 7px 13px;
}
.rv-l-go:hover { background: #0f766e; }

.rv-plus {
  margin-top: 9px; width: auto;
  background: #fff; color: #0f766e;
  border: 1px solid #5eead4; border-radius: 999px;
  font-weight: 700; font-size: 12.5px; padding: 7px 14px;
  cursor: pointer;
}
.rv-plus:hover { background: #f0fdfa; }

/* Sous 420 px, le bouton passe sous le texte plutôt que de l'écraser.
   Mesuré à 375 px : sans cette règle, le nom de l'activité tombait à
   ~90 px de large, donc illisible.

   ⚠️ L'ICÔNE RESTE AVEC LE TEXTE, et c'est ce que l'écran a montré.
      La première écriture donnait `flex:1 1 100%` au texte : il réclamait
      toute la ligne, l'icône se retrouvait SEULE sur la sienne et le
      bouton seul sur une troisième. Zéro débordement, tout lisible — et
      127 px par carte, donc 868 px de bandeau sur un téléphone de 812,
      qui repoussaient les matières d'une page entière. Aucune mesure ne
      voit cela ; seule une capture le montre.
      En 96 px par carte : 712 px, soit 156 de moins.

   ⚠️ LE RETOUR À LA LIGNE EST EXPLICITE (`::before` large de 100 %), et
      non obtenu par un `calc()` sur la largeur restante. Le calcul avait
      été essayé : il ratait de 5 px, parce qu'un emoji réglé à 20 px de
      police occupe 27 px de large. Une règle qui ne dépend d'aucune
      largeur mesurée n'a rien à recalculer le jour où l'icône ou le
      bouton changent de taille. */
@media (max-width: 420px) {
  .rv-l { flex-wrap: wrap; gap: 8px; padding: 8px 10px; }
  .rv-l::before { content: ""; order: 2; flex: 0 0 100%; height: 0; }
  .rv-l-ico { order: 1; }
  .rv-l-txt { order: 1; flex: 1 1 0; min-width: 0; }
  .rv-l-go { order: 3; margin-left: auto; }
}
/* ==== reveil : css fin ==== */
/* ==== grand-oral : css debut ==== */
/* ===== LE STUDIO DU GRAND ORAL — préfixe go-, cherché LIBRE avant
   d'être employé : 0 classe `.go-*` et 0 déclaration de `.go` nu dans
   index.html au 03/10/2026.

   ⚠️ LA RACINE S'APPELLE `.go-jeu`, PAS `.go`. Un nom de bloc de deux
      lettres finit toujours par être pris : c'est exactement ce qui est
      arrivé à `.mg`, qui héritait d'un `text-align:center` et d'un gras
      posés mille lignes plus haut, sur les cinq activités d'un lot
      entier (§7.58). Le coût d'un suffixe est nul ; celui d'une
      collision se paie en cherchant le défaut dans la mauvaise règle.
   ===== */

.go-tete h3 { margin: 0 0 4px; font-size: 20px; color: #0f172a; }
.go-sous { font-size: 13.5px; color: #475569; line-height: 1.5; margin: 0 0 14px; }

/* La phrase sur les données. Discrète, mais jamais absente : un élève à
   qui l'on demande son micro doit savoir où va sa voix AVANT d'accepter. */
.go-prive {
  background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 10px;
  padding: 9px 12px; font-size: 12.5px; color: #134e4a; line-height: 1.5;
  margin: 12px 0;
}
.go-err { color: #b91c1c; font-size: 13px; background: #fef2f2;
  border-left: 4px solid #f87171; border-radius: 8px; padding: 9px 12px; }

.go-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
/* `flex:0 1 auto` : le bouton garde sa taille naturelle et passe à la
   ligne plutôt que de se comprimer. Avec une base nulle, les boutons
   d'une même rangée se compriment sans limite et le plus petit tombe à
   16 px — intouchable au doigt (§7.119). */
.go-b {
  flex: 0 1 auto; background: #fff; color: #334155;
  border: 1px solid #cbd5e1; border-radius: 999px;
  font-weight: 700; font-size: 13.5px; padding: 9px 16px; cursor: pointer;
  text-align: left; line-height: 1.4;
}
.go-b:hover { background: #f8fafc; }
.go-b:disabled { opacity: .55; cursor: default; }

/* --- l'atelier de la question --- */
.go-tests { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.go-test { background: #faf5ff; border-left: 4px solid #a855f7; border-radius: 8px; padding: 9px 12px; }
.go-test b { font-size: 14px; color: #581c87; }
.go-test p { margin: 3px 0 0; font-size: 13px; color: #475569; line-height: 1.5; }

.go-qlist { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.go-q { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 11px 13px; }
.go-q.ok { background: #f0fdf4; border-left: 4px solid #4ade80; }
.go-q.ko { background: #fef2f2; border-left: 4px solid #f87171; }
.go-q-txt { margin: 0 0 8px; font-size: 14.5px; font-weight: 600; color: #0f172a; line-height: 1.45; }
.go-q-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.go-q-corr { font-size: 13px; color: #334155; line-height: 1.55; }
.go-q-rate { margin-top: 5px; font-size: 12px; color: #92400e; }

.go-saisie {
  width: 100%; box-sizing: border-box; border: 2px solid #c4b5fd;
  border-radius: 10px; padding: 10px 12px; font-size: 15px;
  font-family: inherit; line-height: 1.5; resize: vertical;
}
.go-coche {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 9px 12px;
}
.go-coche.on { background: #f0fdf4; border-color: #86efac; }
.go-coche input { margin-top: 3px; flex: 0 0 auto; }
/* `min-width:0` sans quoi un libellé long pousse la case hors de la
   ligne : un élément flex ne rétrécit pas sous son contenu (§7.69). */
.go-coche span { display: flex; flex-direction: column; min-width: 0; }
.go-coche b { font-size: 14px; color: #0f172a; }
.go-coche i { font-size: 12.5px; color: #64748b; font-style: normal; margin-top: 2px; line-height: 1.5; }
.go-bilanq { font-size: 14px; font-weight: 600; color: #0f172a; margin: 12px 0 0; line-height: 1.5; }

/* --- le plan --- */
.go-ordre { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.go-ord-l { background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #0d9488;
  border-radius: 8px; padding: 9px 12px; }
.go-ord-l.ok { background: #f0fdf4; border-left-color: #4ade80; }
.go-ord-l.ko { background: #fef2f2; border-left-color: #f87171; }
.go-ord-l b { font-size: 13.5px; color: #0f766e; }
.go-ord-l p { margin: 3px 0 0; font-size: 13.5px; color: #334155; line-height: 1.5; }
.go-choix { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.go-corr { background: #eff6ff; border-left: 4px solid #3b82f6; border-radius: 8px;
  padding: 11px 13px; margin: 12px 0; font-size: 13.5px; color: #1e3a5f; line-height: 1.6; }
.go-corr ol, .go-corr ul { margin: 6px 0 0; padding-left: 20px; }
.go-corr i { display: block; margin-top: 6px; font-style: normal; color: #475569; font-size: 12.5px; }

.go-nu { background: #fffbeb; border-left: 4px solid #f59e0b; border-radius: 8px;
  padding: 10px 13px; margin: 12px 0; }
.go-nu b { font-size: 13px; color: #92400e; }
.go-nu p { margin: 4px 0; font-size: 14.5px; color: #0f172a; line-height: 1.5; }
.go-nu i { font-size: 12.5px; color: #78716c; font-style: normal; }

.go-aei { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.go-aei-l { display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 11px 13px; }
.go-aei-i {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 999px;
  background: #0d9488; color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.go-aei-l > div { min-width: 0; }
.go-aei-l b { font-size: 13.5px; color: #0f766e; }
.go-aei-l p { margin: 3px 0; font-size: 14px; color: #0f172a; line-height: 1.55; }
.go-aei-l i { font-size: 12.5px; color: #64748b; font-style: normal; }
.go-retenir { margin: 8px 0 14px; padding-left: 20px; }
.go-retenir li { font-size: 14px; color: #334155; line-height: 1.6; margin-bottom: 6px; }

/* --- le studio --- */
.go-reperes { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.go-rep { background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #999;
  border-radius: 8px; padding: 9px 12px;
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.go-rep b { font-size: 14px; color: #0f172a; }
.go-rep span { font-size: 13px; color: #64748b; font-variant-numeric: tabular-nums; }
.go-rep p { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: #64748b; line-height: 1.45; }

/* Le chronomètre. Gros, parce qu'on le regarde en parlant : s'il faut
   plisser les yeux, on sort de son exposé. `tabular-nums` fige la
   largeur des chiffres — sinon le temps TREMBLE à chaque seconde. */
.go-chrono {
  font-size: 56px; font-weight: 800; text-align: center;
  font-variant-numeric: tabular-nums; line-height: 1.1; margin: 10px 0 6px;
}
.go-barre { position: relative; height: 22px; border-radius: 999px;
  background: #f1f5f9; overflow: hidden; margin: 10px 0; }
.go-barre-z { position: absolute; top: 0; bottom: 0; }
.go-barre-a { position: absolute; top: -3px; bottom: -3px; width: 3px;
  background: #0f172a; border-radius: 2px; transition: left .2s linear; }
.go-ou { font-size: 15px; color: #0f172a; text-align: center; margin: 8px 0 2px; line-height: 1.5; }
.go-reste { font-size: 13px; color: #64748b; text-align: center; margin: 0 0 14px;
  font-variant-numeric: tabular-nums; }

.go-mes { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.go-mes-c {
  flex: 1 1 180px; min-width: 0; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 10px; padding: 11px 13px; display: flex; flex-direction: column;
}
.go-mes-c b { font-size: 26px; color: #0f172a; font-variant-numeric: tabular-nums; }
.go-mes-c span { font-size: 12.5px; color: #64748b; font-weight: 600; }
.go-mes-c i { font-size: 12.5px; color: #475569; font-style: normal; margin-top: 5px; line-height: 1.5; }
.go-alerte { background: #fffbeb; border-left: 4px solid #f59e0b; border-radius: 8px;
  padding: 10px 13px; font-size: 13.5px; color: #78350f; line-height: 1.55; }
.go-relire { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 11px 13px; margin: 12px 0; }
.go-relire b { font-size: 14px; color: #0f172a; display: block; margin-bottom: 7px; }
.go-relire audio { width: 100%; }
.go-relire i { display: block; margin-top: 7px; font-size: 12.5px; color: #64748b;
  font-style: normal; line-height: 1.5; }

/* --- l'entretien --- */
.go-fams { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.go-fam { font-size: 12px; font-weight: 700; color: #64748b;
  background: #f1f5f9; border-radius: 999px; padding: 5px 11px; }
.go-fam.on { background: #0369a1; color: #fff; }
.go-jury { background: #f0f9ff; border: 1px solid #bae6fd; border-left: 4px solid #0369a1;
  border-radius: 10px; padding: 14px 16px; margin: 12px 0; }
.go-jury-q { margin: 0 0 7px; font-size: 17px; font-weight: 600; color: #0c4a6e; line-height: 1.5; }
.go-jury-n { margin: 0; font-size: 12.5px; color: #475569; }

/* Sous 420 px, les boutons passent chacun sur leur ligne : à deux par
   ligne, « ⏱ Je prends le temps de réfléchir » tombait à 140 px et se
   coupait en quatre lignes. */
@media (max-width: 420px) {
  .go-chrono { font-size: 44px; }
  .go-actions { flex-direction: column; align-items: stretch; }
  .go-b, .go-actions .fj-cta { width: 100%; text-align: center; }
  .go-rep { grid-template-columns: 1fr; }
}
/* ==== grand-oral : css fin ==== */

/* Les deux boutons de fin : le second est en retrait, et il le reste sur
   un téléphone — empilés sans distinction, ils se valent à l'œil. */
.kp-fins { display: flex; gap: .6rem; flex-wrap: wrap; }
.kp-fins .fj-cta { flex: 1 1 14rem; }
.kp-fins .kp-fin-2 { background: #fff; color: #4c1d95; border: 1px solid #ddd6fe; }

/* Le sujet rappelé en tête de chaque étape d'un sujet d'entraînement :
   discret, mais toujours là. */
.pee-sujet-rappel { background: #fffbeb; border-left: 3px solid #d97706;
  border-radius: 0 8px 8px 0; padding: .5rem .8rem; margin: 0 0 .7rem;
  font-size: .95rem; }
.pee-sujet-rappel b { color: #92400e; }

/* La table de valeurs sous un graphique : c'est elle qui rend un calcul
   possible, donc elle doit se lire — y compris sur un téléphone. */
.eco-g-vals { margin-top: .6rem; overflow-x: auto; }
.eco-g-vals table { border-collapse: collapse; font-size: .85rem; width: 100%; }
.eco-g-vals th, .eco-g-vals td { border: 1px solid #e2e8f0; padding: .3rem .5rem;
  text-align: right; white-space: nowrap; }
.eco-g-vals thead th { background: #f8fafc; font-weight: 700; }
.eco-g-vals tbody th { text-align: left; font-weight: 600; background: #f8fafc; }

/* --- PEE : les cartes de révision ------------------------------------
   ⚠️ Préfixe `pee-carte` cherché NU dans index.html avant d'être adopté
   (piège N) : zéro occurrence. */
.pee-cartes-barre { display: flex; justify-content: space-between; align-items: center;
                    gap: 10px; flex-wrap: wrap; margin: 10px 0 6px;
                    font-size: 13px; color: #64748b; font-weight: 700; }
.pee-cartes-fam { background: #f1f5f9; border-radius: 999px; padding: 3px 11px;
                  color: #334155; }
.pee-carte { background: #fff; border: 2px solid #0d9488; border-radius: 16px;
             padding: 26px 20px; min-height: 148px; display: flex;
             flex-direction: column; justify-content: center; align-items: center;
             text-align: center; box-shadow: 0 4px 14px rgba(13,148,136,.12); }
.pee-carte-v { background: #f0fdfa; }
.pee-carte-mot { margin: 0; font-size: 22px; font-weight: 800; color: #0f766e;
                 line-height: 1.3; }
.pee-carte-aide { margin: 12px 0 0; font-size: 14px; color: #94a3b8; font-style: italic; }
.pee-carte-def { margin: 14px 0 0; font-size: 16.5px; line-height: 1.55; color: #1e293b;
                 max-width: 46em; }
.pee-cartes-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pee-cartes-btns .fj-cta { flex: 1 1 10em; }
.pee-cartes-ok { background: #16a34a; }
.pee-cartes-ko { background: #d97706; }
.pee-cartes-encore { background: #475569; }
.pee-cartes-fin { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px;
                  padding: 18px 20px; }
.pee-cartes-fin h4 { margin: 0 0 8px; font-size: 19px; color: #0f172a; }
.pee-cartes-score { margin: 0 0 12px; font-size: 16px; }
.pee-cartes-rev { background: #fffbeb; border-left: 3px solid #d97706;
                  border-radius: 0 10px 10px 0; padding: 12px 14px; }
.pee-cartes-rev ul { margin: 8px 0 0 18px; padding: 0; }
.pee-cartes-rev li { margin: 7px 0; line-height: 1.5; }
.pee-cartes-rev-ok { margin: 0; color: #15803d; font-weight: 600; }
@media (max-width: 640px) {
  .pee-carte { padding: 20px 14px; min-height: 128px; }
  .pee-carte-mot { font-size: 19px; }
  .pee-carte-def { font-size: 15.5px; }
}

.pee-doc-corps { position: relative; }
.pee-doc-corps .tts-fr { margin: -6px 0 10px auto; display: block; }
.pee-encadre > span, .pee-lecon > span { display: block; }
.pee-encadre .tts-fr, .pee-lecon .tts-fr { margin-top: 8px; }

/* >>> SIM-79 styles — debut */
/* ==================================================================
   SIM-79 — l'atelier des flux
   ------------------------------------------------------------------
   ⚠️ TOUT EST EN `em`, JAMAIS EN PIXELS. Un simulateur se projette sur
      un vidéoprojecteur dont la résolution peut tomber à 1024×768, et
      la racine des écrans de simulateur mêle les deux dimensions pour
      survivre à un écran carré (§7.70). Une taille en pixels y
      resterait minuscule, et aucun zoom ne la rattraperait.

   ⚠️ LE PRÉFIXE `nuf-` A ÉTÉ CHERCHÉ LIBRE avant d'être employé :
      0 occurrence dans index.html (piège N). `.nu-` seul aurait été un
      nom de deux lettres, exactement le cas `.mg` de §7.58.
================================================================== */

.nuf-ecran { display: flex; flex-direction: column; gap: .5em;
  height: 100%; }

.nuf-haut { display: flex; align-items: center; justify-content: space-between;
  gap: .8em; flex-wrap: wrap; }
.nuf-haut h2 { margin: 0; font-size: 1.45em; }
.nuf-outils { display: flex; align-items: center; gap: .4em;
  flex-wrap: wrap; }

.nuf-mot { margin: 0; font-size: .95em; opacity: .78; }

/* Le cadre défile horizontalement : un flux de onze étapes ne tient pas
   dans une largeur d'écran, et le rétrécir rendrait les libellés
   illisibles au fond de la salle. */
.nuf-cadre { flex: 1 1 auto; min-height: 0; overflow: auto;
  background: #fff; color: #0f172a; border: 1px solid #e2e8f0; border-radius: .6em;
  padding: .3em; }
.nuf-svg { display: block; width: 100%; height: auto; }

.nuf-acteur { font-size: 15px; font-weight: 700; fill: #334155; }
.nuf-et-t { font-size: 13.5px; fill: #0f172a; }
.nuf-et-min { font-size: 12.5px; font-weight: 700; }
.nuf-et { cursor: pointer; }
.nuf-et:hover rect { filter: brightness(.97); }

/* La seconde lecture du temps : c'est ici que l'attente se voit. */
.nuf-barre { display: flex; flex-direction: column; gap: .25em; }
.nuf-barre-piste { display: flex; height: .9em; border-radius: .45em;
  overflow: hidden; background: #e2e8f0; color: #0f172a; }
.nuf-barre-p { height: 100%; }
.nuf-barre-leg { display: flex; gap: 1.2em; flex-wrap: wrap;
  font-size: .9em; }
.nuf-barre-leg .nuf-att { color: #b45309; font-weight: 700; }

.nuf-lecture { display: flex; gap: .6em; flex-wrap: wrap; }
.nuf-lec-c { flex: 1 1 8em; min-width: 0; background: #f8fafc;
  border: 1px solid #e2e8f0; border-radius: .5em; padding: .45em .6em;
  font-size: .92em; color: #0f172a; }
.nuf-lec-n { display: block; font-size: 1.5em; font-weight: 800;
  line-height: 1.1; }
.nuf-lec-att { background: #fffbeb; border-color: #fcd34d; }
.nuf-lec-att .nuf-lec-n { color: #b45309; }
.nuf-lec-ko { background: #fef2f2; border-color: #fca5a5; }
.nuf-lec-ko .nuf-lec-n { color: #b91c1c; }

.nuf-edit { display: flex; flex-direction: column; gap: .4em;
  color: #0f172a; background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: .6em;
  padding: .55em; }
.nuf-edit-l { display: flex; gap: .35em; flex-wrap: wrap;
  align-items: center; }
.nuf-in { flex: 1 1 100%; min-width: 0; font: inherit; font-size: 1.05em;
  padding: .35em .5em; border: 1px solid #94a3b8; border-radius: .4em;
  color: #0f172a; background: #fff; }
.nuf-min { font-weight: 800; min-width: 5em; text-align: center; }
.nuf-tbt { font: inherit; font-size: .9em; padding: .3em .6em;
  color: #0f172a; background: #fff; border: 2px solid #cbd5e1; border-radius: .4em;
  cursor: pointer; }
.nuf-tbt.on { background: #0f172a; color: #fff; border-color: #0f172a; }
.nuf-sup { color: #b91c1c; }
.nuf-aide { margin: 0; font-size: .9em; opacity: .7; }

.nuf-bas { display: flex; gap: .5em; flex-wrap: wrap; }

/* Le mode comparaison : deux flux, et l'écart qui se lit dessous. */
.nuf-cmps { display: flex; flex-direction: column; gap: .5em;
  flex: 1 1 auto; min-height: 0; }
.nuf-cmp { display: flex; flex-direction: column; gap: .25em;
  flex: 1 1 0; min-height: 0; }
.nuf-cmp h3 { margin: 0; font-size: 1.05em; }
.nuf-verdict { color: #0f172a; background: #f0fdf4; border: 1px solid #86efac;
  border-radius: .6em; padding: .55em .7em; }
.nuf-verdict p { margin: 0 0 .3em; font-size: .98em; }
.nuf-verdict p:last-child { margin-bottom: 0; }
.nuf-nuance { color: #b45309; }

/* Un écran large peut mettre les deux flux côte à côte ; un écran de
   vidéoprojecteur carré ne peut pas, et les empiler reste lisible. */
@media (min-aspect-ratio: 16/10) {
  .nuf-cmps { flex-direction: row; }
  .nuf-cmp { flex: 1 1 0; }
}

@media (prefers-reduced-motion: reduce) {
  .nuf-et:hover rect { filter: none; }
}
/* <<< SIM-79 styles — fin */
/* ==== argumentation : styles ==== */
/* ==================================================================
   LA QUESTION D'ARGUMENTATION — les deux écrans neufs
   ------------------------------------------------------------------
   ⚠️ LE PRÉFIXE `argu-` A ÉTÉ CHERCHÉ LIBRE AVANT D'ÊTRE EMPLOYÉ :
      0 classe dans index.html. `ar-` était déjà pris 320 fois, et un
      nom de deux lettres est exactement le cas `.mg` de §7.58 — une
      classe racine qui hérite silencieusement d'une autre. Les trois
      `.argu` trouvés dans le fichier sont des propriétés JS de l'Or
      Noir (`o.argu`), jamais des sélecteurs.

   ⚠️ ET CE BLOC NE REDÉFINIT AUCUNE CLASSE `zb-*`. Les écrans
      réutilisent `zb-ecran`, `zb-t`, `zb-consigne`, `zb-why`,
      `zb-cta` : les toucher jouerait sur les 34 activités du moteur.
================================================================== */

/* La question, sous les yeux d'un bout à l'autre. */
.argu-q { background: #eef2ff; border-left: 4px solid #4338ca;
  border-radius: 0 10px 10px 0; padding: 10px 14px; margin: 12px 0; }
.argu-q-et { display: block; font-size: 11px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; color: #4338ca;
  margin-bottom: 4px; }
.argu-q p { margin: 0; font-size: 16px; font-weight: 600; color: #1e1b4b; }

/* L'argument qui se construit, étage par étage. */
.argu-pile { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.argu-etage { display: flex; gap: 10px; align-items: flex-start;
  background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #94a3b8;
  border-radius: 0 10px 10px 0; padding: 10px 12px; }
.argu-etage.ok { background: #f0fdf4; border-color: #86efac; border-left-color: #16a34a; }
.argu-etage.ko { background: #fef2f2; border-color: #fca5a5; border-left-color: #dc2626; }
.argu-etage b { display: block; font-size: 12px; text-transform: uppercase;
  letter-spacing: .04em; color: #475569; margin-bottom: 2px; }
.argu-etage p { margin: 0; font-size: 15px; line-height: 1.5; }
.argu-lettre { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  background: #4338ca; color: #fff; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center; }
.argu-etage.ok .argu-lettre { background: #16a34a; }
.argu-etage.ko .argu-lettre { background: #dc2626; }

/* Le choix de l'étage courant. */
.argu-choix { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.argu-aide { margin: 0 0 6px; font-size: 14px; color: #475569; }

/* ⚠️ LA CONSIGNE DE L'ÉTAGE EN COURS DOIT RESSORTIR, et c'est une
   capture qui l'a montré : en gris pâle de 14 px sous les étages déjà
   posés — qui ont leur pastille, leur bordure et leur fond — elle se
   lisait comme une note de bas de page, alors que c'est elle qui dit
   quoi faire maintenant. Aucune mesure ne voit cela. */
.argu-choix .argu-aide { font-size: 15.5px; font-weight: 600; color: #1e1b4b;
  background: #eef2ff; border-radius: 8px; padding: 9px 12px; margin-bottom: 8px; }
.argu-opt { display: block; width: 100%; text-align: left; font: inherit;
  font-size: 15px; line-height: 1.5; padding: 11px 14px; cursor: pointer;
  background: #fff; color: #0f172a; border: 2px solid #cbd5e1; border-radius: 10px;
  transition: border-color .15s, background .15s; }
.argu-opt:hover { border-color: #4338ca; background: #f5f3ff; }

/* L'écart : le même argument nu, et celui qu'on vient de composer. */
.argu-face { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.argu-nu, .argu-plein { flex: 1 1 240px; min-width: 0; border-radius: 10px;
  padding: 11px 14px; }
.argu-nu { background: #f1f5f9; border: 1px dashed #94a3b8; }
.argu-plein { background: #eef2ff; border: 1px solid #a5b4fc; }
.argu-face b { display: block; font-size: 12px; text-transform: uppercase;
  letter-spacing: .04em; margin-bottom: 5px; color: #4338ca; }
.argu-nu b { color: #64748b; }
.argu-face p { margin: 0 0 6px; font-size: 15px; line-height: 1.55; }
.argu-face small { font-size: 12.5px; color: #64748b; }

.argu-modele { background: #f0fdf4; border: 1px solid #86efac;
  border-radius: 10px; padding: 11px 14px; margin: 12px 0; }
.argu-modele b { display: block; font-size: 12px; text-transform: uppercase;
  letter-spacing: .04em; color: #15803d; margin-bottom: 5px; }
.argu-modele p { margin: 0; font-size: 15px; line-height: 1.55; }

/* Ce que l'élève a sous la main pour rédiger. */
.argu-rappel { background: #fffbeb; border: 1px solid #fcd34d;
  border-radius: 10px; padding: 10px 14px; margin: 12px 0; }
.argu-rappel b { display: block; font-size: 12px; text-transform: uppercase;
  letter-spacing: .04em; color: #b45309; margin-bottom: 5px; }
.argu-rappel ul { margin: 0; padding-left: 20px; }
.argu-rappel li { font-size: 14.5px; line-height: 1.55; margin-bottom: 3px; }

/* La zone de rédaction. */
.argu-zone { display: block; width: 100%; box-sizing: border-box;
  font: inherit; font-size: 15.5px; line-height: 1.6; padding: 11px 13px;
  color: #0f172a; background: #fff; border: 2px solid #94a3b8;
  border-radius: 10px; resize: vertical; }
.argu-zone:focus { outline: none; border-color: #4338ca; }
.argu-compteur { margin: 6px 0 0; font-size: 13px; color: #475569;
  font-variant-numeric: tabular-nums; }
.argu-prive { margin: 8px 0 12px; font-size: 13px; line-height: 1.5;
  color: #475569; background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 8px; padding: 8px 11px; }

/* La sortie de celui qui bloque : un lien, jamais un bouton d'action —
   elle doit exister sans devenir le chemin de tout le monde. */
.argu-sortie { display: block; width: 100%; margin-top: 8px; font: inherit;
  font-size: 13.5px; text-align: center; padding: 8px; cursor: pointer;
  color: #475569; background: none; border: none;
  text-decoration: underline; text-underline-offset: 3px; }
.argu-sortie:hover { color: #0f172a; }

.argu-macopie { background: #fff; border: 1px solid #cbd5e1;
  border-radius: 10px; padding: 11px 14px; margin: 12px 0; }
.argu-macopie b { display: block; font-size: 12px; text-transform: uppercase;
  letter-spacing: .04em; color: #475569; margin-bottom: 5px; }
.argu-macopie p { margin: 0; font-size: 15px; line-height: 1.6;
  white-space: pre-wrap; }

/* Les critères de la grille, à cocher soi-même. */
.argu-tests { display: flex; flex-direction: column; gap: 7px; margin: 10px 0 14px; }
.argu-test { display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  background: #fff; border: 2px solid #cbd5e1; border-radius: 10px;
  padding: 10px 13px; }
.argu-test.on { background: #f0fdf4; border-color: #86efac; }
.argu-test input { margin: 2px 0 0; width: 18px; height: 18px; flex: 0 0 18px;
  cursor: pointer; }
.argu-test b { display: block; font-size: 15px; font-weight: 600;
  line-height: 1.45; color: #0f172a; }
.argu-test small { display: block; font-size: 13px; color: #64748b;
  margin-top: 2px; line-height: 1.45; }

/* ⚠️ Un téléphone de 375 px : les deux colonnes de l'écart s'empilent
   d'elles-mêmes (flex-wrap + base de 240 px), et la zone de saisie
   porte `box-sizing: border-box` — sans lui, ses 13 px de rembourrage
   s'ajoutent à ses 100 % et elle déborde du cadre. */
@media (max-width: 560px) {
  .argu-q p { font-size: 15px; }
  .argu-opt { font-size: 14.5px; padding: 10px 12px; }
  .argu-etage p, .argu-face p, .argu-modele p { font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .argu-opt { transition: none; }
}
/* ==== argumentation : fin des styles ==== */
/* >>> reveil replie css : debut */
.rv-menu > summary.rv-h {
  cursor: pointer; list-style: none; user-select: none;
  align-items: center;
}
.rv-menu > summary.rv-h::-webkit-details-marker { display: none; }
.rv-menu > summary.rv-h::after {
  content: "▸"; margin-left: auto; font-size: 14px;
  font-weight: 700; color: #0f766e;
}
.rv-menu[open] > summary.rv-h::after { content: "▾"; }
.rv-menu > summary.rv-h:hover .rv-h-t { text-decoration: underline; }
/* >>> reveil replie css : fin */
/* >>> maquillage css : debut */
/* ==== ZÉTWAL MAKIYAZ — le simulateur ====
   Préfixe `mk-`, cherché nu dans index.html avant d'être adopté :
   0 règle CSS, 0 constante, 0 fonction. C'est le contrôle que §7.58
   réclame — `.mg` avait été pris alors qu'il existait déjà, et cinq
   activités héritaient d'un centrage que personne n'avait demandé. */
.mk-grille{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:16px;margin:14px 0 4px}
.mk-leviers{display:flex;flex-direction:column;gap:14px}

.mk-lev{background:#fff;border:1px solid #e9d8f0;border-radius:12px;padding:11px 13px}
.mk-lev-h{display:flex;align-items:baseline;gap:8px;margin-bottom:6px}
.mk-lev-n{font-size:13.5px;font-weight:700;color:#4a1d52;flex:1 1 0;min-width:0}
.mk-lev-v{font-size:17px;font-weight:800;color:#a21caf;flex:0 0 auto}
.mk-lev-s{display:block;margin-top:5px;font-size:11.5px;font-style:normal;color:#7a6b80}
.mk-range{width:100%;accent-color:#a21caf;cursor:pointer}

.mk-inters{display:flex;flex-direction:column;gap:8px}
.mk-inter{display:flex;align-items:flex-start;gap:9px;width:100%;text-align:left;
  font:inherit;cursor:pointer;background:#fff;border:1px solid #e9d8f0;
  border-radius:12px;padding:10px 12px;transition:border-color .15s,background .15s}
.mk-inter:hover{border-color:#c084fc;background:#fdf7ff}
.mk-inter-on{border-color:#a21caf;background:#fdf4ff}
.mk-inter-b{flex:0 0 auto;font-size:15px;line-height:1.2}
.mk-inter b{display:block;font-size:13px;color:#4a1d52;line-height:1.35}
.mk-inter i{display:block;margin-top:2px;font-size:11.5px;font-style:normal;color:#7a6b80}

.mk-compte{background:#fdf7ff;border:1px solid #e9d8f0;border-radius:14px;padding:13px 15px}
.mk-compte-t{display:block;font-size:14px;color:#4a1d52;margin-bottom:9px}
.mk-l{display:flex;align-items:flex-start;gap:10px;padding:7px 0;border-bottom:1px dashed #efe0f5}
.mk-l-t{flex:1 1 0;min-width:0;font-size:13px;color:#3f3147;line-height:1.35}
.mk-l-t i{display:block;margin-top:2px;font-size:11px;font-style:normal;color:#8a7a90}
.mk-l-v{flex:0 0 auto;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}
.mk-plus{color:#15803d}
.mk-moins{color:#b91c1c}

.mk-res{display:flex;align-items:baseline;justify-content:space-between;gap:10px;
  margin-top:11px;padding:10px 12px;border-radius:11px}
.mk-res span{font-size:13.5px;font-weight:700}
.mk-res b{font-size:21px;font-variant-numeric:tabular-nums}
.mk-res-ok{background:#dcfce7;color:#14532d}
.mk-res-ko{background:#fee2e2;color:#991b1b}
.mk-verdict{margin:8px 0 0;font-size:12.5px;color:#5b4a62;line-height:1.45}
.mk-seuil{margin-top:9px;padding:9px 11px;background:#fff;border:1px dashed #d8b4e8;
  border-radius:10px;font-size:12.5px;color:#4a1d52;line-height:1.45}

.mk-defis{margin:16px 0 4px;background:#fff;border:1px solid #e9d8f0;
  border-radius:12px;padding:12px 14px}
.mk-defis>b{display:block;font-size:13.5px;color:#4a1d52;margin-bottom:8px}
.mk-defi{display:flex;align-items:flex-start;gap:9px;padding:7px 0}
.mk-defi-p{flex:0 0 22px;height:22px;border-radius:50%;background:#f3e8ff;color:#7e22ce;
  display:grid;place-items:center;font-size:12px;font-weight:800}
.mk-defi b{display:block;font-size:13px;color:#3f3147}
.mk-defi i{display:block;margin-top:2px;font-size:11.5px;font-style:normal;color:#7a6b80;line-height:1.45}
/* Un défi atteint se signale, et il ne se défait pas : rien n'est noté,
   c'est un encouragement et non un score (§2.3). */
.mk-defi-ok .mk-defi-p{background:#dcfce7;color:#15803d}
.mk-defi-ok b{color:#15803d}

.mk-note{margin:12px 0 0;font-size:11.5px;color:#8a7a90;line-height:1.5}

@media (max-width:700px){
  .mk-grille{grid-template-columns:1fr}
  .mk-res b{font-size:19px}
}
/* ⚠️ Un contre-ordre ne protège que ce qu'on y inscrit (§7.121) : les
   deux transitions posées ci-dessus y sont nommées. */
@media (prefers-reduced-motion: reduce){
  .mk-inter{transition:none}
}
/* >>> maquillage css : fin */

/* >>> maths schemas css : debut */
/* ⚠️ PRÉFIXE `ms-`, CHERCHÉ LIBRE AVANT D'ÊTRE EMPLOYÉ (piège N). Un
   nom court devient un nom global dans la feuille unique de la
   plateforme : `.mg` et `.go` l'ont déjà payé (§7.58, §7.124). */

/* Le schéma vit DANS la colonne de texte de la carte de prérequis,
   sous l'exemple chiffré : on lit la règle, puis l'exemple, puis on
   le voit. */
.ms-fig{margin:10px 0 0;padding:0;
  background:#fff;border:1px solid #e2e8f0;border-radius:10px;
  overflow:hidden}
.ms-svg{display:block;width:100%;height:auto;
  /* ⚠️ PAS DE `max-height` : le cadre porte un `viewBox`, donc sa
     hauteur suit sa largeur. Un plafond ferait rogner le dessin sur
     les écrans larges, et c'est précisément ce qu'on ne verrait pas
     en le mesurant sur un téléphone. */
  background:#fff;padding:2px 0 0}
.ms-fig figcaption{display:block;padding:7px 12px 9px;
  background:#f8fafc;border-top:1px solid #eef2f7;
  font-size:12px;line-height:1.45;color:#475569}

/* Au vidéoprojecteur comme sur un téléphone, le texte du SVG doit
   rester lisible : on le laisse grandir avec le cadre, sans jamais
   descendre sous une taille plancher. */
@media (min-width:900px){
  .ms-fig{max-width:520px}
}
/* >>> maths schemas css : fin */
/* ==== eval-resultats-css : debut ==== */
/* ==== eval-resultats : les tableaux de notes ====

   ⚠️ `.tbl` ET `.tblwrap` N'AVAIENT AUCUNE RÈGLE. Mesuré avant
      d'écrire : les deux classes sont employées exactement deux fois
      — le tableau des copies d'une évaluation et le tableau de toutes
      les notes — et la feuille ne les déclarait nulle part. Les deux
      s'affichaient donc au style PAR DÉFAUT du navigateur : aucune
      bordure, aucun zébrage, colonnes collées. C'est précisément
      « affiche les lignes de tableau pour que la lecture soit plus
      simple », et la déclaration sert les DEUX écrans.

   ⚠️ L'HABILLAGE SUIT `.taf-table`, le tableau déjà en place dans
      l'espace prof : un professeur qui passe d'un écran à l'autre ne
      doit pas réapprendre à lire un tableau (§7.33).             */

.tblwrap{overflow-x:auto;-webkit-overflow-scrolling:touch;
  border:1px solid #e2e8f0;border-radius:10px;background:#fff}
/* ⚠️ `separate`, PAS `collapse` : avec `collapse`, Chrome n'affiche
   plus les bordures d'une cellule `position:sticky` — et c'est
   justement la première colonne qui en a besoin. Les bordures se
   posent donc sur les cellules, et seulement en bas, pour qu'aucune
   ne double sa voisine. */
.tbl{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}
.tbl th{text-align:left;padding:9px 11px;border-bottom:2px solid #e2e8f0;
  font-size:11.5px;text-transform:uppercase;letter-spacing:.02em;
  color:#64748b;white-space:nowrap;background:#fff;vertical-align:bottom}
.tbl td{padding:9px 11px;border-bottom:1px solid #eef2f7;vertical-align:middle}
.tbl tbody tr:last-child td{border-bottom:0}
/* Le zébrage : c'est lui qui permet de suivre une ligne du regard
   quand la matière compte vingt évaluations, donc vingt-deux colonnes. */
.tbl tbody tr:nth-child(even) td{background:#f8fafc}
.tbl tbody tr:hover td{background:#eff6ff}

/* ⚠️ LA PREMIÈRE COLONNE RESTE VISIBLE PENDANT LE DÉFILEMENT
   HORIZONTAL. Sans elle, on fait défiler vingt colonnes et on ne sait
   plus de quel élève on lit la note — c'est le défaut que le zébrage
   seul ne corrige pas. Le fond doit être OPAQUE, sinon les colonnes
   passent dessous en transparence. */
.tbl .evn-c1{position:sticky;left:0;z-index:2;background:#fff;
  border-right:1px solid #e2e8f0;min-width:150px}
.tbl tbody tr:nth-child(even) .evn-c1{background:#f8fafc}
.tbl tbody tr:hover .evn-c1{background:#eff6ff}
.tbl td.evn-c1 b{display:block;line-height:1.25}
.evn-ps{display:block;color:#7c8798;font-size:11px;font-weight:400}
/* ⚠️ `.tbl th` EST PLUS SPÉCIFIQUE QUE `.evn-th-ev` — un élément plus
   une classe contre une classe seule — et son `nowrap` l'emportait :
   les titres d'évaluation se CHEVAUCHAIENT, « Le bulletin de salaire »
   s'écrivant par-dessus « des organisations ». Aucune mesure ne le
   voyait (ni débordement de page, ni erreur) ; seule la capture l'a
   montré. Il faut donc viser `th.evn-th-ev`, pas `.evn-th-ev`. */
.tbl th.evn-th-ev{white-space:normal;line-height:1.3;
  min-width:108px;max-width:190px}
.evn-n{white-space:nowrap}
.evn-moy{font-weight:400;font-size:12px;opacity:.78;margin-left:8px}
.evn-sans{margin:10px 2px 0}

@media (max-width:640px){
  .tbl{font-size:12.5px}
  .tbl th,.tbl td{padding:7px 9px}
  .tbl .evn-c1{min-width:120px}
}
/* ==== eval-resultats : fin des styles ==== */
/* ==== eval-resultats-css : fin ==== */
/* ==== visite-prof : debut des styles ==== z-index au-dessus de tout
   (le plus haut en usage était 10003). */
.vp{position:fixed;inset:0;z-index:10050;font-family:Outfit,system-ui,sans-serif}
.vp-bloc{position:fixed;inset:0;background:transparent}
.vp-bloc.vp-sombre{background:rgba(20,16,48,.62)}
.vp-voile{position:fixed;background:rgba(20,16,48,.62)}
.vp-trou{position:fixed;border-radius:12px;pointer-events:none;
  box-shadow:0 0 0 3px #feca57,0 0 22px 6px rgba(254,202,87,.55)}
.vp-bulle{position:fixed;background:#fff;color:#1a1430;border-radius:16px;padding:16px 18px 14px;
  box-shadow:0 18px 50px rgba(20,16,48,.35);max-height:calc(100vh - 32px);overflow:auto;
  animation:vp-entree .25s ease;box-sizing:border-box}
@keyframes vp-entree{from{opacity:0;transform:translateY(6px)}to{opacity:1}}
.vp-bulle[style*="translate"]{animation:none}
.vp-tete{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.vp-ico{font-size:22px;line-height:1}
.vp-num{font-size:12px;font-weight:600;color:#7c3aed;background:#f0eafa;border-radius:99px;padding:2px 9px}
.vp-passer{margin-left:auto;background:none;border:0;color:#6b6a78;font:inherit;font-size:13px;cursor:pointer;padding:4px 6px;border-radius:8px}
.vp-passer:hover{background:#f3f1ec;color:#1a1430}
.vp-bulle h3{font-family:Fraunces,Georgia,serif;font-size:19px;margin:4px 0 6px;line-height:1.25}
.vp-bulle p{font-size:14.5px;line-height:1.5;margin:0 0 10px;color:#2d2843}
.vp-barre{height:4px;background:#efedf5;border-radius:99px;overflow:hidden;margin:10px 0 12px}
.vp-barre span{display:block;height:100%;background:linear-gradient(90deg,#7c3aed,#0e7490);transition:width .3s ease}
.vp-pied{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.vp-pied button{font:inherit;font-size:14px;font-weight:600;border-radius:10px;padding:8px 14px;cursor:pointer;border:1px solid transparent}
.vp-prec{background:#fff;border-color:#e6e2d8 !important;color:#1a1430}
.vp-suiv{background:#7c3aed;color:#fff;margin-left:auto}
.vp-suiv:hover{background:#6d28d9}
.vp-eleve{background:#0ea5e9;color:#fff}
.vp-pied button:focus-visible,.vp-passer:focus-visible{outline:3px solid #feca57;outline-offset:2px}
/* les maquettes de la vue élève */
.vp-mq{background:#f7f5fb;border:1px solid #e6e2d8;border-radius:12px;padding:10px;margin:2px 0 4px;font-size:12px}
.vp-mq-niv{display:flex;align-items:center;justify-content:center;gap:6px;margin-bottom:8px}
.vp-mq-niv span{padding:4px 8px;border-radius:8px;background:#fff;border:1px solid #e6e2d8;color:#6b6a78}
.vp-mq-niv span.on{background:#1a1430;color:#fff;border-color:#1a1430;font-weight:700}
.vp-mq-kick{font-size:10.5px;font-weight:700;letter-spacing:.06em;color:#7c3aed;margin:2px 0 6px}
.vp-mq-mats{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.vp-mq-mats span{background:#fff;border:1px solid #e6e2d8;border-radius:10px;padding:7px 8px;display:flex;flex-direction:column;gap:2px}
.vp-mq-mats i{font-style:normal;color:#0e7490;font-weight:600}
.vp-mq-onglets{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:8px}
.vp-mq-onglets span{padding:3px 7px;border-radius:7px;background:#fff;border:1px solid #e6e2d8;color:#6b6a78}
.vp-mq-onglets span.on{background:#7c3aed;color:#fff;border-color:#7c3aed;font-weight:700}
.vp-mq-themes{display:flex;gap:4px;margin-bottom:6px}
.vp-mq-themes span{padding:3px 9px;border-radius:99px;background:#fff;border:1px solid #e6e2d8}
.vp-mq-themes span.on{background:#feca57;border-color:#feca57;font-weight:700}
.vp-mq-jeux{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.vp-mq-jeux span{background:#fff;border:1px solid #e6e2d8;border-radius:10px;padding:12px 6px;text-align:center;font-weight:600}
.vp-mq-notion{background:#fff;border:1px solid #e6e2d8;border-radius:10px;padding:9px 10px}
.vp-mq-notion p{font-size:12px;margin:3px 0 8px;color:#6b6a78}
.vp-mq-magique{display:inline-block;background:linear-gradient(90deg,#7c3aed,#ec4899);color:#fff;border-radius:99px;padding:5px 11px;font-weight:700}
@media(max-width:640px){
  .vp-bulle{padding:14px 14px 12px}
  .vp-bulle h3{font-size:17px}
  .vp-bulle p{font-size:14px}
}
@media(prefers-reduced-motion:reduce){.vp-barre span{transition:none}.vp-bulle{animation:none}}
/* ==== visite-prof : fin des styles ==== */
/* ==== comptes-actions : debut des styles ==== */
.ua-row.off .ua-off{background:#fef3c7;color:#92400e}
.ua-etab{font-weight:500;font-size:12px;color:#6b6a78;margin-left:8px}
.ua-main{flex:1 1 260px}
.ua-tools{flex-wrap:wrap;flex-shrink:1;justify-content:flex-end}
.ua-tools button.ua-activer{background:#16a34a;border-color:#16a34a;color:#fff;font-weight:700;font-size:14px;padding:7px 14px;
  box-shadow:0 2px 8px rgba(22,163,74,.35)}
.ua-tools button.ua-activer:hover{background:#15803d}
.ua-tools button.ua-mdp{font-size:13px;font-weight:600;color:#7c3aed;border-color:#ddd6fe;background:#f5f3ff}
.ua-tools button.ua-mdp:hover{background:#ede9fe}
.ua-mdpneuf{flex-basis:100%;display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#f5f3ff;border:1px solid #ddd6fe;
  border-radius:10px;padding:10px 12px;font-size:14px}
.ua-mdpneuf code{font-size:17px;font-weight:700;letter-spacing:.06em;background:#fff;border:1px dashed #7c3aed;border-radius:8px;padding:4px 10px;color:#1a1430}
.ua-mdpneuf button{background:#fff;border:1px solid #ddd6fe;border-radius:8px;padding:5px 10px;font:inherit;font-size:13px;cursor:pointer}
.ua-mdpneuf .ua-mdpneuf-x{margin-left:auto}
.ua-mdpneuf p{flex-basis:100%;margin:0;font-size:12.5px;color:#6b6a78}
/* ==== comptes-actions : fin des styles ==== */
/* ==== invit-whatsapp : debut des styles ==== */
.invit-wa{background:#ecfdf5;border:1px solid #a7f3d0;border-radius:12px;padding:12px 14px;margin:12px 0 4px;text-align:left}
.invit-wa-t{font-weight:700;font-size:14.5px;color:#065f46;margin-bottom:4px}
.invit-wa p{font-size:13.5px;line-height:1.45;color:#065f46;margin:0 0 10px}
.invit-wa-btn{display:inline-block;background:#25d366;color:#fff !important;font-weight:700;font-size:14px;text-decoration:none;
  border-radius:10px;padding:9px 16px;box-shadow:0 2px 8px rgba(37,211,102,.35)}
.invit-wa-btn:hover{background:#1ebe5a}
.invit-wa-btn:focus-visible{outline:3px solid #065f46;outline-offset:2px}
/* ==== invit-whatsapp : fin des styles ==== */
/* ==== peidelices : debut des styles ====
   Mission RSE chez Péi Délices. Préfixe pdl-. Relief et mouvement en CSS
   seul (perspective, translate/scale séparés pour que la parallaxe et le
   zoom lent ne se battent pas sur la même propriété). */
.pdl{position:relative;background:#0f172a;color:#1a1430;border-radius:18px;overflow:hidden;
  font-family:Outfit,system-ui,sans-serif;max-width:1100px;margin:0 auto;box-shadow:0 20px 50px rgba(15,23,42,.25)}
.pdl:fullscreen{max-width:none;border-radius:0;overflow:auto}
.pdl:fullscreen .pdl-decor{min-height:calc(100vh - 56px)}
.pdl *{box-sizing:border-box}
.pdl-scene{animation:pdl-entree .55s ease}
@keyframes pdl-entree{from{opacity:0;transform:translateY(10px) scale(.99)}to{opacity:1;transform:none}}

/* --- l'en-tête de jeu --- */
.pdl-hud{display:flex;align-items:center;gap:12px;padding:8px 12px;background:rgba(15,23,42,.92);color:#fff;
  position:sticky;top:0;z-index:5;backdrop-filter:blur(6px)}
.pdl-hud-moi{display:flex;align-items:center;gap:8px;background:none;border:0;color:#fff;cursor:pointer;padding:2px;text-align:left;font:inherit}
.pdl-hud-moi img{width:36px;height:36px;border-radius:50%;object-fit:cover;border:2px solid #fbbf24}
.pdl-hud-moi span{display:flex;flex-direction:column;line-height:1.15}
.pdl-hud-moi b{font-size:14px}.pdl-hud-moi i{font-size:11px;font-style:normal;opacity:.75}
.pdl-hud-prog{display:flex;gap:6px;margin:0 auto}
.pdl-hud-prog span{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;
  background:rgba(255,255,255,.12);color:rgba(255,255,255,.6);transition:all .3s}
.pdl-hud-prog span.fait{background:#16a34a;color:#fff}
.pdl-hud-prog span.ici{background:#fbbf24;color:#1a1430;transform:scale(1.15);box-shadow:0 0 0 3px rgba(251,191,36,.35)}
.pdl-hud-prog span.fait.ici{background:#16a34a;color:#fff;box-shadow:0 0 0 3px rgba(22,163,74,.35)}
.pdl-hud-outils{display:flex;gap:6px}
.pdl-hud-outils button{background:rgba(255,255,255,.12);border:0;color:#fff;border-radius:10px;width:38px;height:38px;font-size:17px;cursor:pointer;position:relative}
.pdl-hud-outils button:hover{background:rgba(255,255,255,.22)}
.pdl-hud-outils sup{position:absolute;top:-4px;right:-4px;background:#f59e0b;color:#1a1430;font-size:10px;font-weight:800;border-radius:99px;padding:1px 5px}

/* --- le décor vivant --- */
.pdl-decor{position:relative;min-height:min(80vh,780px);overflow:hidden;display:flex;align-items:center;justify-content:center;--px:0;--py:0}
.pdl-decor-img{position:absolute;inset:-5%;background-size:cover;background-position:center;
  translate:calc(var(--px) * -22px) calc(var(--py) * -14px);transition:translate .35s ease-out;
  animation:pdl-kb 34s ease-in-out infinite alternate}
@keyframes pdl-kb{from{scale:1.04}to{scale:1.14}}
.pdl-decor-voile{position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,23,42,.05) 0%,rgba(15,23,42,.15) 45%,rgba(15,23,42,.7) 100%)}
.pdl-sombre .pdl-decor-voile{background:rgba(15,23,42,.62)}
.pdl-decor-contenu{position:relative;z-index:1;width:100%;max-width:980px;padding:22px 18px;display:flex;flex-direction:column;align-items:center;gap:14px;min-width:0}
.pdl-decor-contenu>*{max-width:100%;min-width:0}
.pdl-page{max-width:1100px;margin:0 auto}

/* --- boutons --- */
.pdl-cta{font:inherit;font-weight:700;font-size:16px;border:0;border-radius:12px;padding:12px 22px;cursor:pointer;
  background:linear-gradient(135deg,#f59e0b,#ea580c);color:#fff;box-shadow:0 6px 18px rgba(234,88,12,.35);transition:transform .15s,box-shadow .15s}
.pdl-cta:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 24px rgba(234,88,12,.45)}
.pdl-cta:disabled{opacity:.5;cursor:not-allowed}
.pdl-cta.alt{background:#fff;color:#1a1430;box-shadow:0 4px 14px rgba(0,0,0,.15)}
.pdl-cta.petit{font-size:14px;padding:8px 14px;margin-left:auto;display:block;margin-top:10px}
.pdl-cta:focus-visible,.pdl-opt:focus-visible,.pdl button:focus-visible{outline:3px solid #fbbf24;outline-offset:2px}
.pdl-aide{font-size:13px;color:#64748b;margin:6px 0}
.pdl-clignote{animation:pdl-clig 1.6s ease-in-out infinite}
@keyframes pdl-clig{50%{opacity:.55}}
.pdl-consigne{background:rgba(255,255,255,.95);border-radius:12px;padding:10px 14px;font-size:15px;line-height:1.45;margin:0;max-width:820px;box-shadow:0 4px 14px rgba(0,0,0,.12)}
.pdl-consigne i{color:#64748b;font-size:13px}

/* --- l'accueil --- */
.pdl-accueil .pdl-decor-voile{background:linear-gradient(90deg,rgba(15,23,42,.82) 0%,rgba(15,23,42,.35) 60%,rgba(15,23,42,.1) 100%)}
.pdl-accueil .pdl-decor-contenu{align-items:flex-start}
.pdl-accueil-boite{color:#fff;max-width:560px;animation:pdl-entree 1s ease}
.pdl-accueil-sur{font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#fbbf24;font-weight:700}
.pdl-accueil-boite h1{font-family:Fraunces,Georgia,serif;font-size:clamp(38px,6vw,64px);line-height:1;margin:10px 0 12px;
  text-shadow:0 4px 24px rgba(0,0,0,.4)}
.pdl-accueil-boite h1 span{display:block;font-size:.55em;color:#fde68a;font-style:italic;margin-top:6px}
.pdl-accueil-boite p{font-size:16px;line-height:1.5;opacity:.95}
.pdl-accueil-btns{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}
.pdl-hommage{font-size:13px !important;background:rgba(255,255,255,.12);border-radius:10px;padding:8px 12px;display:inline-block}
.pdl-accueil-son{font-size:12.5px !important;opacity:.75 !important}

/* --- identité --- */
.pdl-identite{background:rgba(255,255,255,.97);border-radius:20px;padding:22px;max-width:560px;width:100%;text-align:center;box-shadow:0 18px 50px rgba(0,0,0,.35)}
.pdl-identite h2{font-family:Fraunces,Georgia,serif;font-size:30px;margin:0 0 6px}
.pdl-identite p{color:#475569;margin:0 0 14px}
.pdl-champ{display:flex;flex-direction:column;gap:6px;font-weight:700;text-align:left;margin-bottom:14px}
.pdl-champ input{font:inherit;font-size:20px;padding:12px 14px;border:2px solid #e2e8f0;border-radius:12px;outline:none}
.pdl-champ input:focus{border-color:#f59e0b}
.pdl-choix-perso>span{display:block;font-weight:700;text-align:left;margin-bottom:8px}
.pdl-choix-perso>div{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}
.pdl-perso{background:#fff;border:3px solid #e2e8f0;border-radius:16px;padding:0;overflow:hidden;cursor:pointer;transition:all .2s;font:inherit}
.pdl-perso img{width:100%;aspect-ratio:3/3.4;object-fit:cover;display:block;filter:saturate(.7);transition:filter .2s,transform .3s}
.pdl-perso b{display:block;padding:8px;font-size:17px}
.pdl-perso:hover img{filter:none;transform:scale(1.03)}
.pdl-perso.on{border-color:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.25);transform:translateY(-3px)}
.pdl-perso.on img{filter:none}

/* --- narration et badge --- */
.pdl-narration{align-self:stretch;margin-top:auto;background:rgba(15,23,42,.78);color:#fff;border-radius:14px;padding:16px 18px;
  font-size:18px;line-height:1.5;backdrop-filter:blur(4px);display:flex;flex-direction:column;gap:10px}
.pdl-decor:has(.pdl-narration){align-items:flex-end}
.pdl-narration p{margin:0}
.pdl-accueil-badge{display:flex;flex-direction:column;align-items:center;gap:10px}
.pdl-accueil-badge .pdl-aide{color:#fff;background:rgba(15,23,42,.6);border-radius:99px;padding:3px 12px}
.pdl-badge-scene{perspective:1000px;display:flex;flex-direction:column;align-items:center}
.pdl-badge{width:210px;height:310px;position:relative;transform-style:preserve-3d;transition:transform .8s cubic-bezier(.2,.8,.2,1);
  border:0;background:none;cursor:pointer;padding:0;animation:pdl-badge-arrive 1s cubic-bezier(.2,.8,.2,1)}
@keyframes pdl-badge-arrive{from{transform:translateY(-120px) rotateX(70deg) rotateZ(-8deg);opacity:0}to{transform:none;opacity:1}}
.pdl-badge.dos{transform:rotateY(180deg)}
.pdl-badge-face,.pdl-badge-dos{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:16px;
  background:linear-gradient(160deg,#fff 0%,#fff7ed 100%);box-shadow:0 18px 40px rgba(0,0,0,.4);display:flex;flex-direction:column;align-items:center;padding:14px;gap:6px;color:#1a1430}
.pdl-badge-face::before{content:"";position:absolute;top:8px;width:46px;height:8px;border-radius:9px;background:#cbd5e1}
.pdl-badge-logo{margin-top:12px;font-weight:800;color:#ea580c;font-size:15px}
.pdl-badge-face img{width:118px;height:140px;object-fit:cover;border-radius:12px;border:3px solid #fde68a}
.pdl-badge-nom{font-family:Fraunces,Georgia,serif;font-size:24px;font-weight:700}
.pdl-badge-role{font-size:12.5px;color:#475569}
.pdl-badge-code{margin-top:auto;font-family:ui-monospace,monospace;font-size:11px;letter-spacing:.1em;color:#94a3b8}
.pdl-badge-dos{transform:rotateY(180deg);justify-content:center;text-align:center;font-size:13px;background:linear-gradient(160deg,#15803d,#065f46);color:#fff}
.pdl-badge-dos b{font-size:20px}.pdl-badge-dos i{margin-top:10px;opacity:.85}
.pdl-badge-bande{width:100%;height:30px;margin-top:16px;background:repeating-linear-gradient(90deg,#fff 0 2px,transparent 2px 5px);opacity:.6}

/* --- la carte « Mission n » --- */
.pdl-titre-mission .pdl-decor-contenu{justify-content:center;min-height:inherit}
.pdl-tm{text-align:center;color:#fff;animation:pdl-tm 1s cubic-bezier(.2,.8,.2,1)}
@keyframes pdl-tm{from{opacity:0;letter-spacing:.3em;filter:blur(6px)}to{opacity:1;filter:none}}
.pdl-tm-n{font-size:14px;letter-spacing:.2em;text-transform:uppercase;color:#fbbf24;font-weight:800}
.pdl-tm h2{font-family:Fraunces,Georgia,serif;font-size:clamp(32px,5vw,54px);margin:10px 0;text-shadow:0 4px 30px rgba(0,0,0,.5)}
.pdl-tm-lieu{font-size:18px;margin-bottom:22px;opacity:.9}

/* --- bulles de dialogue --- */
.pdl-bulle{display:flex;gap:14px;align-items:flex-start;background:rgba(255,255,255,.97);border-radius:18px;padding:14px 16px;max-width:820px;width:100%;
  box-shadow:0 12px 34px rgba(0,0,0,.28);animation:pdl-bulle .45s cubic-bezier(.2,.8,.2,1)}
.pdl-decor-contenu>.pdl-bulle:only-child{margin-top:auto}
.pdl-decor:has(> .pdl-decor-contenu > .pdl-bulle:only-child){align-items:flex-end}
@keyframes pdl-bulle{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:none}}
.pdl-bulle-photo{width:84px;height:84px;border-radius:50%;object-fit:cover;flex-shrink:0;border:3px solid #fde68a;box-shadow:0 4px 12px rgba(0,0,0,.2)}
.pdl-bulle-corps{flex:1;min-width:0}
.pdl-bulle-nom{font-weight:800;font-size:16px;color:#1a1430}
.pdl-bulle-nom span{display:block;font-weight:500;font-size:12.5px;color:#64748b}
.pdl-bulle p{font-size:17px;line-height:1.5;margin:6px 0 0;color:#1e293b}
.pdl-tape{cursor:pointer}
.pdl-curseur{font-style:normal;color:#f59e0b;animation:pdl-clig .8s steps(2) infinite}
.pdl-suite{font:inherit;font-weight:700;background:#1a1430;color:#fff;border:0;border-radius:10px;padding:8px 14px;cursor:pointer;margin-top:10px;float:right;opacity:.35;transition:opacity .3s}
.pdl-suite.pret{opacity:1}

/* --- leçon --- */
.pdl-lecon{background:rgba(255,255,255,.97);border-radius:18px;padding:18px 20px;max-width:820px;width:100%;box-shadow:0 12px 34px rgba(0,0,0,.28);
  animation:pdl-bulle .45s ease}
.pdl-lecon-tete{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;font-weight:800;color:#0e7490;text-transform:uppercase;letter-spacing:.06em}
.pdl-lecon h3{font-family:Fraunces,Georgia,serif;font-size:24px;margin:6px 0 10px}
.pdl-lecon ul{margin:0 0 14px;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.pdl-lecon li{padding:10px 12px 10px 38px;background:#f0f9ff;border-radius:10px;position:relative;font-size:15.5px;line-height:1.45;
  animation:pdl-li .5s ease both}
.pdl-lecon li::before{content:"💡";position:absolute;left:10px;top:9px}
@keyframes pdl-li{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:none}}
.pdl-lecon .pdl-cta{display:block;margin-left:auto}

/* --- panneaux d'exercice --- */
.pdl-panneau{background:rgba(255,255,255,.97);border-radius:18px;padding:16px 18px;max-width:820px;width:100%;box-shadow:0 12px 34px rgba(0,0,0,.28);
  display:flex;flex-direction:column;gap:12px}
.pdl-panneau.large{max-width:980px}
.pdl-panneau .pdl-consigne{box-shadow:none;background:#fff7ed;max-width:none}
.pdl-ex-titre{font-family:Fraunces,Georgia,serif;font-size:21px;font-weight:700}
.pdl-qcm{display:flex;flex-direction:column;gap:10px;width:100%}
.pdl-qcm .pdl-bulle{box-shadow:none;background:#f8fafc;animation:none}
.pdl-qcm-prog{font-size:12.5px;font-weight:700;color:#0e7490;text-transform:uppercase;letter-spacing:.05em}
.pdl-qcm-q{font-size:18px;font-weight:600;margin:0}
.pdl-qcm-o{display:flex;flex-direction:column;gap:8px}
.pdl-opt{font:inherit;font-size:15.5px;text-align:left;display:flex;gap:10px;align-items:center;background:#fff;border:2px solid #e2e8f0;border-radius:12px;
  padding:11px 14px;cursor:pointer;transition:all .18s;color:#1e293b}
.pdl-opt:hover:not(:disabled){border-color:#f59e0b;transform:translateX(3px)}
.pdl-opt-l{width:26px;height:26px;flex-shrink:0;border-radius:8px;background:#f1f5f9;display:grid;place-items:center;font-weight:800;font-size:13px;color:#64748b}
.pdl-opt.bon{border-color:#16a34a;background:#f0fdf4;animation:pdl-pop .35s ease}
.pdl-opt.bon .pdl-opt-l{background:#16a34a;color:#fff}
.pdl-opt.faux{border-color:#dc2626;background:#fef2f2;animation:pdl-secoue .4s ease}
.pdl-opt.faux .pdl-opt-l{background:#dc2626;color:#fff}
.pdl-opt.eteint{opacity:.5}
@keyframes pdl-pop{50%{transform:scale(1.03)}}
@keyframes pdl-secoue{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.pdl-why{border-radius:12px;padding:12px 14px;font-size:15px;line-height:1.5;animation:pdl-bulle .35s ease;overflow:hidden}
.pdl-why.bon{background:#f0fdf4;border:1px solid #bbf7d0}
.pdl-why.faux{background:#fffbeb;border:1px solid #fde68a}
.pdl-decor-contenu>.pdl-why{max-width:820px;width:100%}

/* --- texte à trous --- */
.pdl-fiche{background:#fffdf5;border-radius:6px;padding:18px 20px;box-shadow:0 2px 0 #e7e2d3,0 8px 22px rgba(0,0,0,.12);
  background-image:repeating-linear-gradient(transparent 0 33px,#eef2f7 33px 34px);transform:rotate(-.4deg)}
.pdl-fiche-tete{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;border-bottom:2px solid #ea580c;padding-bottom:6px;margin-bottom:8px}
.pdl-fiche-tete b{letter-spacing:.12em;color:#ea580c}
.pdl-fiche-tete span{font-weight:700}
.pdl-fiche p{font-size:17px;line-height:2.05;margin:0}
.pdl-trou{font:inherit;font-weight:700;min-width:96px;border:0;border-bottom:2px dashed #94a3b8;background:#fff7ed;border-radius:6px 6px 0 0;
  padding:1px 8px;cursor:pointer;color:#9a3412;transition:all .2s}
.pdl-trou.plein{border-bottom-style:solid;border-color:#f59e0b;background:#fef3c7}
.pdl-trou.bon{background:#dcfce7;border-color:#16a34a;color:#166534}
.pdl-trou.faux{background:#fee2e2;border-color:#dc2626;color:#991b1b;animation:pdl-secoue .4s}
.pdl-banque{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.pdl-mot{font:inherit;font-weight:600;background:#fff;border:2px solid #fed7aa;border-radius:99px;padding:7px 14px;cursor:pointer;transition:all .15s}
.pdl-mot:hover:not(:disabled){background:#fff7ed;transform:translateY(-2px)}
.pdl-mot.sel{background:#f59e0b;color:#fff;border-color:#f59e0b}
.pdl-mot:disabled{opacity:.3;cursor:default}
.pdl-trous{display:flex;flex-direction:column;gap:14px}
.pdl-trous>.pdl-cta{align-self:center}

/* --- tri en post-its --- */
.pdl-tri{display:flex;flex-direction:column;gap:12px}
.pdl-postits{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.pdl-postit{font:inherit;font-size:14px;line-height:1.35;width:180px;min-height:84px;padding:12px;border:0;cursor:pointer;text-align:left;
  background:linear-gradient(170deg,#fef08a,#fde047);box-shadow:0 6px 14px rgba(0,0,0,.18);transform:rotate(var(--r));
  transition:transform .2s,box-shadow .2s;animation:pdl-postit .4s ease both;color:#422006}
@keyframes pdl-postit{from{opacity:0;transform:translateY(-20px) rotate(0)}}
.pdl-postit:hover{transform:rotate(0) scale(1.04)}
.pdl-postit.sel{transform:rotate(0) scale(1.08) translateY(-6px);box-shadow:0 14px 26px rgba(0,0,0,.28);outline:3px solid #ea580c}
.pdl-colonnes{display:grid;grid-template-columns:repeat(var(--n),1fr);gap:10px}
.pdl-col{background:#f8fafc;border:2px dashed #cbd5e1;border-radius:14px;padding:8px;min-height:150px;display:flex;flex-direction:column;gap:6px;transition:all .2s;cursor:pointer}
.pdl-col.cible{border-color:var(--c);background:color-mix(in srgb,var(--c) 8%,#fff);animation:pdl-clig 1.4s infinite}
.pdl-col-t{font-weight:800;text-align:center;color:#fff;background:var(--c);border-radius:9px;padding:6px}
.pdl-colle{font-size:13px;line-height:1.35;background:#fef9c3;border-radius:6px;padding:7px 9px;animation:pdl-pop .3s}
.pdl-colle.bon{background:#dcfce7}
.pdl-colle.faux{background:#fee2e2;animation:pdl-secoue .4s}

/* --- les trois piliers --- */
.pdl-piliers3d{position:relative;display:flex;justify-content:center;gap:clamp(10px,4vw,40px);padding:54px 20px 10px;perspective:800px;margin-bottom:6px}
.pdl-pilier{width:clamp(90px,18vw,140px);height:150px;border-radius:10px 10px 4px 4px;background:linear-gradient(90deg,color-mix(in srgb,var(--c) 75%,#000),var(--c) 45%,color-mix(in srgb,var(--c) 70%,#fff));
  color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;box-shadow:0 14px 30px rgba(0,0,0,.35);
  transform:rotateX(8deg);transform-origin:bottom;animation:pdl-monte .9s cubic-bezier(.2,.8,.2,1) both}
.pdl-pilier span{font-size:34px}.pdl-pilier b{font-size:14px;text-align:center}
@keyframes pdl-monte{from{transform:rotateX(8deg) scaleY(0);opacity:0}}
/* `translate`, pas `transform` : l'animation d'entrée écrase transform et
   le fronton partait à droite. */
.pdl-fronton{position:absolute;top:8px;left:50%;translate:-50% 0;background:#fff;border-radius:10px;padding:8px 18px;font-family:Fraunces,Georgia,serif;
  font-weight:700;box-shadow:0 6px 18px rgba(0,0,0,.25);white-space:nowrap;animation:pdl-bulle .6s .7s both}

/* --- l'enquête --- */
.pdl-enquete{width:100%;display:flex;flex-direction:column;gap:10px}
.pdl-enquete-tete{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px;background:rgba(255,255,255,.95);border-radius:12px;padding:8px 14px}
.pdl-enquete-tete .pdl-aide{margin:0}
.pdl-enquete-img{position:relative;width:100%;aspect-ratio:1200/670;background-size:100% 100%;border-radius:14px;box-shadow:0 14px 40px rgba(0,0,0,.45);overflow:hidden}
.pdl-hot{position:absolute;transform:translate(-50%,-50%);width:48px;height:48px;border-radius:50%;border:3px solid #fff;background:rgba(245,158,11,.92);
  font-size:21px;cursor:pointer;box-shadow:0 0 0 0 rgba(245,158,11,.7);animation:pdl-pulse 2s infinite;display:grid;place-items:center;padding:0}
.pdl-hot:hover{transform:translate(-50%,-50%) scale(1.15)}
.pdl-hot.fait{background:#16a34a;animation:none;font-size:20px;color:#fff;cursor:default}
@keyframes pdl-pulse{0%{box-shadow:0 0 0 0 rgba(245,158,11,.75)}70%{box-shadow:0 0 0 18px rgba(245,158,11,0)}100%{box-shadow:0 0 0 0 rgba(245,158,11,0)}}

/* --- la ronde 3D des parties prenantes --- */
.pdl-orbite-zone{width:100%;display:flex;flex-direction:column;align-items:center;gap:12px}
.pdl-orbite-scene{--rayon:300px;position:relative;width:100%;height:290px;perspective:1100px}
.pdl-orbite-centre{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:96px;height:96px;border-radius:50%;background:radial-gradient(circle,#fde68a,#f59e0b);
  display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:38px;box-shadow:0 0 50px rgba(251,191,36,.6)}
.pdl-orbite-centre small{font-size:10px;font-weight:800;color:#7c2d12}
.pdl-orbite{position:absolute;left:50%;top:50%;width:0;height:0;transform-style:preserve-3d;transition:transform .9s cubic-bezier(.2,.8,.2,1)}
.pdl-carte-pp{position:absolute;width:150px;height:206px;left:-75px;top:-103px;border-radius:14px;border:3px solid #fff;background:#fff;overflow:hidden;cursor:pointer;
  padding:0;font:inherit;box-shadow:0 10px 26px rgba(0,0,0,.35);backface-visibility:hidden;display:flex;flex-direction:column;transition:border-color .3s,filter .3s;filter:brightness(.65)}
.pdl-carte-pp.face{filter:none;border-color:#fbbf24}
.pdl-carte-pp img{width:100%;height:124px;object-fit:cover}
.pdl-carte-pp b{font-size:13px;padding:6px 6px 0}
.pdl-carte-pp span{font-size:10.5px;color:#64748b;padding:2px 6px;line-height:1.25}
.pdl-carte-pp.bon{border-color:#16a34a}.pdl-carte-pp.faux{border-color:#dc2626}
.pdl-orbite-cmd{display:flex;align-items:center;gap:10px}
.pdl-fl{width:46px;height:46px;border-radius:50%;border:0;background:#fff;font-size:18px;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.25)}
.pdl-orbite-choix{display:flex;gap:8px;color:#fff}
.pdl-orbite-zone .pdl-why{max-width:620px;width:100%}

/* --- jeu de rôle --- */
.pdl-role{width:100%;display:flex;flex-direction:column;gap:12px;align-items:center}
.pdl-role-table{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;width:100%;max-width:820px}
.pdl-role-siege{background:rgba(255,255,255,.9);border-radius:14px;padding:8px;display:flex;flex-direction:column;align-items:center;gap:4px;transition:all .3s;opacity:.75}
.pdl-role-siege img{width:58px;height:58px;border-radius:50%;object-fit:cover}
.pdl-role-siege>span{font-weight:700;font-size:13px}
.pdl-role-siege.parle{opacity:1;transform:translateY(-4px) scale(1.04);box-shadow:0 0 0 3px #fbbf24,0 10px 24px rgba(0,0,0,.3)}
.pdl-role-attente{background:#1a1430;color:#fff;border-radius:99px;padding:6px 16px;font-size:14px}
.pdl-role .pdl-qcm{background:rgba(255,255,255,.97);border-radius:18px;padding:16px;max-width:820px;box-shadow:0 12px 34px rgba(0,0,0,.28)}

/* --- jauges --- */
.pdl-jauge{width:100%}
.pdl-jauge-t{display:flex;justify-content:space-between;font-size:12.5px;font-weight:600;gap:6px}
.pdl-jauge-barre{height:8px;background:#e2e8f0;border-radius:99px;overflow:hidden;margin-top:3px}
.pdl-jauge-barre span{display:block;height:100%;border-radius:99px;transition:width .7s cubic-bezier(.2,.8,.2,1),background .4s}

/* --- le plan d'action --- */
.pdl-plan{display:flex;flex-direction:column;gap:12px}
.pdl-plan-tdb{display:grid;grid-template-columns:1.2fr repeat(4,1fr);gap:12px;align-items:end;background:#0f172a;color:#fff;border-radius:14px;padding:12px 14px;
  position:sticky;top:56px;z-index:2}
.pdl-plan-tdb .pdl-jauge-barre{background:rgba(255,255,255,.18)}
.pdl-budget span{font-size:12.5px;opacity:.8}.pdl-budget b{display:block;font-size:22px;font-family:Fraunces,Georgia,serif}
.pdl-budget .pdl-jauge-barre span{background:#fbbf24}
.pdl-budget.rouge b{color:#fca5a5;animation:pdl-secoue .4s}
.pdl-actions{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px}
.pdl-action{font:inherit;text-align:left;position:relative;background:#fff;border:2px solid #e2e8f0;border-radius:14px;padding:12px 12px 12px 12px;cursor:pointer;
  display:flex;flex-direction:column;gap:5px;transition:all .2s;min-height:120px}
.pdl-action:hover{transform:translateY(-3px);box-shadow:0 10px 22px rgba(0,0,0,.12)}
.pdl-action.on{border-color:#16a34a;background:#f0fdf4;box-shadow:0 0 0 3px rgba(22,163,74,.18)}
.pdl-action-ico{font-size:26px}
.pdl-action b{font-size:14.5px;line-height:1.3;padding-right:24px}
.pdl-action-cout{font-weight:800;color:#b45309;font-size:14px}
.pdl-action i{font-size:12px;color:#64748b}
.pdl-action-coche{position:absolute;top:10px;right:10px;width:26px;height:26px;border-radius:50%;background:#f1f5f9;display:grid;place-items:center;font-weight:800}
.pdl-action.on .pdl-action-coche{background:#16a34a;color:#fff;animation:pdl-pop .3s}
.pdl-plan>.pdl-cta{align-self:center}
.pdl-retour{display:flex;flex-direction:column;gap:8px;animation:pdl-bulle .4s}
.pdl-retour .pdl-bulle{box-shadow:none;background:#fffbeb;animation:none}
.pdl-retour.ok .pdl-bulle{background:#f0fdf4}
.pdl-retour ul{margin:0;padding-left:20px;font-size:15px;line-height:1.5}
.pdl-retour.ok .pdl-cta{align-self:flex-end}

/* --- les documents --- */
.pdl-feuille-fond{position:fixed;inset:0;z-index:10040;background:rgba(15,23,42,.6);display:flex;align-items:center;justify-content:center;padding:16px;perspective:1400px;
  backdrop-filter:blur(3px);animation:pdl-fondu .3s}
@keyframes pdl-fondu{from{opacity:0}}
.pdl-feuille{position:relative;background:#fff;border-radius:6px;max-width:720px;width:100%;max-height:calc(100vh - 32px);overflow-y:auto;overflow-x:hidden;padding:22px 24px;
  box-shadow:0 30px 70px rgba(0,0,0,.45);animation:pdl-tombe .7s cubic-bezier(.2,.8,.2,1);transform-origin:top center;color:#1e293b}
@keyframes pdl-tombe{from{transform:rotateX(55deg) translateY(-80px) rotateZ(-3deg);opacity:0}to{transform:none;opacity:1}}
.pdl-feuille.pose{max-height:none;position:relative;transform:rotate(-.6deg)}
.pdl-feuille-x{position:sticky;top:0;float:right;width:36px;height:36px;border-radius:50%;border:0;background:#f1f5f9;font-size:16px;cursor:pointer;z-index:2}
.pdl-feuille-titre{font-family:Fraunces,Georgia,serif;font-size:22px;margin:0 0 12px}
.pdl-feuille-enquete{max-width:760px;border-radius:16px}
.pdl-feuille-enquete .pdl-bulle{box-shadow:none;background:#f8fafc;animation:none}
.pdl-lettre{font-size:15.5px;line-height:1.55}
/* La feuille de style globale remet marges et retraits à zéro : sans ces
   lignes, les paragraphes d'une lettre se collent et les puces sortent. */
.pdl-lettre p,.pdl-mail-lu p,.pdl-journal p{margin:0 0 10px}
.pdl-lettre ul,.pdl-lettre ol{margin:0 0 10px;padding-left:22px}
.pdl-charte-liste{list-style:none;padding:0 !important;display:flex;flex-direction:column;gap:8px;counter-reset:eng}
.pdl-charte-liste li{background:#f0fdf4;border-left:4px solid #15803d;border-radius:8px;padding:9px 12px}
.pdl-charte-eng{display:flex;gap:8px;align-items:flex-start}
.pdl-charte-eng span{font-size:20px;line-height:1.2}
.pdl-charte-obj{font-size:14px;color:#166534;margin:4px 0 0 28px}
.pdl-charte-tags{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 0 28px}
.pdl-charte-tags span{font-size:11.5px;font-weight:700;background:#fff;border:1px solid #bbf7d0;border-radius:99px;padding:2px 8px}
.pdl-lettre-tete{display:flex;justify-content:space-between;gap:12px;border-bottom:3px solid #1d4ed8;padding-bottom:10px;margin-bottom:14px}
.pdl-lettre-logo b{display:block;font-size:26px;letter-spacing:.18em;color:#1d4ed8;font-family:Fraunces,Georgia,serif}
.pdl-lettre-logo span{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#64748b}
.pdl-lettre-adr{font-size:12.5px;text-align:right;color:#475569}
.pdl-lettre-date{text-align:right;font-style:italic}
.pdl-lettre-voix{float:right;margin-left:10px}
.pdl-signature{font-style:italic;margin-top:16px}
.pdl-doc-bandeau{background:#ea580c;color:#fff;font-weight:800;letter-spacing:.1em;padding:10px 14px;border-radius:6px;margin-bottom:12px;text-align:center}
.pdl-doc-bandeau.vert{background:linear-gradient(90deg,#15803d,#0e7490)}
.pdl-plan-doc table{width:100%;border-collapse:collapse;font-size:14px;margin:10px 0}
.pdl-plan-doc th,.pdl-plan-doc td{border-bottom:1px solid #e2e8f0;padding:7px;text-align:left}
.pdl-charte{position:relative}
.pdl-charte-intro{font-style:italic;color:#475569}
.pdl-charte-bloc h4{margin:12px 0 4px;font-size:16px;color:#15803d}
.pdl-charte-bloc ul{margin:0;padding-left:20px}
.pdl-charte-sign{display:flex;justify-content:space-between;gap:20px;margin-top:20px;font-family:"Brush Script MT","Segoe Script",cursive;font-size:21px}
.pdl-charte-sign i{font-family:Outfit,system-ui,sans-serif;font-size:12px;color:#64748b}
.pdl-tampon{position:absolute;right:calc(50% - 62px);bottom:6px;border:4px solid #dc2626;color:#dc2626;border-radius:10px;padding:4px 14px;font-weight:900;font-size:26px;
  letter-spacing:.12em;transform:rotate(-14deg);opacity:.85;text-align:center;animation:pdl-tampon .5s .9s both cubic-bezier(.3,1.6,.5,1)}
.pdl-tampon small{display:block;font-size:10px;letter-spacing:.1em}
@keyframes pdl-tampon{from{transform:rotate(-14deg) scale(3);opacity:0}to{transform:rotate(-14deg) scale(1);opacity:.85}}
.pdl-journal{font-family:Georgia,"Times New Roman",serif;color:#111}
.pdl-journal-tete{display:flex;justify-content:space-between;align-items:baseline;border-bottom:3px double #111;padding-bottom:6px;margin-bottom:10px;flex-wrap:wrap;gap:6px}
.pdl-journal-tete b{font-size:28px;font-family:Fraunces,Georgia,serif}
.pdl-journal-tete span{font-size:12px;color:#555;text-transform:capitalize}
.pdl-journal h3{font-size:28px;line-height:1.15;margin:6px 0}
.pdl-journal-chapo{font-weight:700;font-size:16px}
.pdl-journal img{width:100%;border-radius:4px;margin:8px 0 2px}
.pdl-journal-leg{font-size:12px;font-style:italic;color:#555;margin-top:0}
.pdl-journal p{line-height:1.55}
.pdl-mail-lu{font-size:15px;line-height:1.55}
.pdl-mail-entete{background:#f8fafc;border-radius:10px;padding:10px 12px;font-size:13.5px;display:flex;flex-direction:column;gap:3px;margin-bottom:10px;word-break:break-word}
.pdl-mail-corps p{margin:0 0 10px}

/* --- la boîte mail --- */
.pdl-boite{background:#fff;border-radius:14px;overflow:hidden;width:100%;max-width:900px;box-shadow:0 20px 50px rgba(0,0,0,.4);animation:pdl-bulle .5s ease}
.pdl-boite-barre{display:flex;justify-content:space-between;background:#1e3a8a;color:#fff;padding:9px 14px;font-weight:700;font-size:14px}
.pdl-boite-corps{display:grid;grid-template-columns:280px 1fr;min-height:360px}
.pdl-boite-liste{border-right:1px solid #e2e8f0;background:#f8fafc}
.pdl-boite-m{font:inherit;display:grid;grid-template-columns:1fr auto;gap:2px 8px;width:100%;text-align:left;border:0;border-bottom:1px solid #e2e8f0;background:none;padding:11px 12px;cursor:pointer}
.pdl-boite-m b{font-size:14px}.pdl-boite-m span{grid-column:1/3;font-size:13px;color:#475569}.pdl-boite-m i{font-size:11.5px;color:#94a3b8;font-style:normal}
.pdl-boite-m.nouveau{background:#eff6ff;box-shadow:inset 4px 0 0 #2563eb}
.pdl-boite-m.nouveau b::after{content:" ●";color:#2563eb}
.pdl-boite-m.on{background:#dbeafe}
.pdl-boite-lecture{padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.pdl-boite-lecture .pdl-cta{align-self:flex-end}
.pdl-pj{font:inherit;font-weight:600;align-self:flex-start;border:1px solid #cbd5e1;background:#f8fafc;border-radius:10px;padding:8px 12px;cursor:pointer}
.pdl-retour-liste{display:none;font:inherit;background:none;border:0;color:#1d4ed8;font-weight:600;cursor:pointer;padding:0;margin-bottom:6px}

/* --- mission accomplie --- */
.pdl-bravo{position:relative;min-height:min(80vh,780px);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;
  color:#fff;background:radial-gradient(circle at 50% 40%,#1e3a8a,#0f172a 70%);padding:30px 16px;overflow:hidden}
.pdl-bravo-n{font-size:14px;letter-spacing:.2em;text-transform:uppercase;color:#86efac;font-weight:800}
.pdl-bravo h2{font-family:Fraunces,Georgia,serif;font-size:clamp(30px,5vw,48px);margin:0}
.pdl-etoiles{font-size:54px;color:#fbbf24;letter-spacing:.1em;text-shadow:0 0 24px rgba(251,191,36,.6);animation:pdl-pop .6s .2s both}
.pdl-bravo p{font-size:17px;opacity:.9}
.pdl-confettis{position:absolute;inset:0;pointer-events:none}
.pdl-confettis i{position:absolute;top:-20px;width:10px;height:16px;background:hsl(var(--h),90%,60%);border-radius:2px;animation:pdl-confetti 2.6s ease-in forwards}
@keyframes pdl-confetti{to{transform:translateY(110vh) rotate(720deg);opacity:.2}}

/* --- le final --- */
.pdl-fin-doc{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%}
.pdl-fin-doc .pdl-feuille{animation:pdl-tombe .9s cubic-bezier(.2,.8,.2,1)}
.pdl-fin-doc .pdl-feuille.journal{max-width:620px}
.pdl-bilan{background:rgba(255,255,255,.97);border-radius:20px;padding:22px;max-width:760px;width:100%;box-shadow:0 18px 50px rgba(0,0,0,.35);text-align:center;animation:pdl-bulle .5s}
.pdl-bilan h2{font-family:Fraunces,Georgia,serif;font-size:34px;margin:0}
.pdl-bilan-total{display:flex;align-items:center;justify-content:center;gap:14px;margin:6px 0 14px}
.pdl-bilan-total b{font-size:44px;font-family:Fraunces,Georgia,serif;color:#ea580c}
.pdl-bilan-total span{font-size:34px;color:#f59e0b}
.pdl-bilan-missions{display:flex;flex-direction:column;gap:6px;text-align:left}
.pdl-bilan-m{display:grid;grid-template-columns:28px 1fr auto 52px;gap:10px;align-items:center;background:#f8fafc;border-radius:10px;padding:7px 10px;font-size:14.5px}
.pdl-bilan-m span{width:26px;height:26px;border-radius:50%;background:#16a34a;color:#fff;display:grid;place-items:center;font-weight:800;font-size:13px}
.pdl-bilan-m i{color:#f59e0b;font-style:normal;letter-spacing:.05em}
.pdl-bilan-m em{font-style:normal;font-weight:700;text-align:right}
.pdl-bilan-retenir{text-align:left;background:#f0f9ff;border-radius:12px;padding:12px 14px;margin:14px 0 4px}
.pdl-bilan-retenir ul{margin:6px 0 0;padding-left:20px;line-height:1.5}
.pdl-bilan .pdl-accueil-btns{justify-content:center}

/* --- dossier et toast --- */
.pdl-dossier{max-width:620px;border-radius:16px}
.pdl-dossier-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.pdl-dossier-doc{font:inherit;font-weight:600;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;
  padding:14px 10px;cursor:pointer;transition:transform .15s}
.pdl-dossier-doc:hover{transform:translateY(-3px) rotate(-1deg)}
.pdl-dossier-doc span{font-size:30px}
.pdl-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#1a1430;color:#fff;padding:12px 18px;border-radius:12px;z-index:10045;
  box-shadow:0 10px 30px rgba(0,0,0,.35);animation:pdl-bulle .4s;font-weight:600}

/* --- téléphone --- */
@media(max-width:700px){
  .pdl{border-radius:0}
  .pdl-hud{gap:6px;padding:6px 8px;flex-wrap:wrap}
  .pdl-hud-moi i{display:none}
  .pdl-hud-prog{gap:3px}.pdl-hud-prog span{width:22px;height:22px;font-size:11px}
  .pdl-hud-outils button{width:34px;height:34px;font-size:15px}
  .pdl-decor{min-height:calc(100vh - 110px)}
  .pdl-decor-contenu{padding:14px 10px}
  .pdl-bulle{padding:12px;gap:10px}
  .pdl-bulle-photo{width:56px;height:56px}
  .pdl-bulle p{font-size:15.5px}
  .pdl-narration{font-size:16px}
  .pdl-boite-corps{grid-template-columns:1fr}
  .pdl-boite-corps.lecture .pdl-boite-liste{display:none}
  .pdl-boite-corps:not(.lecture) .pdl-boite-lecture{display:none}
  .pdl-retour-liste{display:block}
  .pdl-colonnes{grid-template-columns:1fr}
  .pdl-col{min-height:70px}
  .pdl-postit{width:calc(50% - 6px)}
  .pdl-orbite-scene{--rayon:170px;height:240px}
  .pdl-carte-pp{width:118px;height:170px;left:-59px;top:-85px}
  .pdl-carte-pp img{height:100px}
  .pdl-role-table{grid-template-columns:repeat(2,1fr)}
  .pdl-plan-tdb{grid-template-columns:1fr 1fr;top:96px}
  .pdl-budget{grid-column:1/3}
  .pdl-hot{width:38px;height:38px;font-size:17px}
  .pdl-bilan-m{grid-template-columns:26px 1fr auto;font-size:13.5px}
  .pdl-bilan-m em{display:none}
  .pdl-feuille{padding:16px}
  .pdl-tampon{bottom:10px;right:12px;font-size:18px}
  .pdl-charte-sign{flex-direction:column;gap:10px;padding-right:110px}
}
@media(prefers-reduced-motion:reduce){
  .pdl *,.pdl *::before{animation:none !important;transition:none !important}
  .pdl-decor-img{translate:none}
}
/* ==== peidelices : fin des styles ==== */
/* ==== oulechef : debut des styles ====
   « Ou lé chef ! » — préfixe olc-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.olc). */
.olc .pdl-cta{background:linear-gradient(135deg,#0e7490,#0891b2);box-shadow:0 6px 18px rgba(14,116,144,.35)}
.olc .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(14,116,144,.45)}
.olc .pdl-cta.alt{background:#fff;color:#1a1430}
.olc-blanc{color:#fff !important}
.pdl-doc-bandeau.olc-bleu{background:linear-gradient(90deg,#0e7490,#1d4ed8)}
.pdl-doc-bandeau.olc-rouge{background:linear-gradient(90deg,#b91c1c,#ea580c)}
.olc-badge .pdl-badge-logo{color:#0e7490}
.olc-citation{font-style:italic;background:#f0f9ff;border-left:4px solid #0e7490;padding:8px 12px;border-radius:6px}

/* --- l'agenda --- */
.olc-agenda{width:100%;text-align:center;color:#fff}
.olc-agenda h2{font-family:Fraunces,Georgia,serif;font-size:clamp(24px,3.6vw,34px);margin:0 0 14px;text-shadow:0 4px 20px rgba(0,0,0,.5)}
.olc-jours{display:grid;grid-template-columns:repeat(7,1fr);gap:10px}
.olc-jour{font:inherit;color:#fff;border:2px solid rgba(255,255,255,.25);border-radius:14px;min-height:190px;padding:10px 8px;cursor:pointer;
  background-size:cover;background-position:center;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;text-align:center;
  transition:transform .2s,border-color .2s;animation:pdl-postit .5s ease both}
.olc-jour:hover:not(:disabled){transform:translateY(-4px)}
.olc-jour.prochain{border-color:#fbbf24;box-shadow:0 0 0 3px rgba(251,191,36,.35),0 12px 30px rgba(0,0,0,.4);animation:pdl-postit .5s ease both,olc-respire 2.4s 0.6s ease-in-out infinite}
@keyframes olc-respire{50%{transform:translateY(-3px);box-shadow:0 0 0 6px rgba(251,191,36,.25),0 16px 34px rgba(0,0,0,.45)}}
.olc-jour.fait{border-color:#16a34a}
.olc-jour.ferme{filter:grayscale(.85) brightness(.7);cursor:not-allowed}
.olc-jour-nom{position:absolute;top:8px;left:50%;translate:-50% 0;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;background:rgba(15,23,42,.7);border-radius:99px;padding:2px 10px}
.olc-jour{position:relative}
.olc-jour-ico{font-size:28px}
.olc-jour b{font-size:13.5px;line-height:1.2}
.olc-jour i{font-size:11px;font-style:normal;opacity:.85;line-height:1.2}
.olc-agenda-fin{font-size:18px;font-weight:700;margin-top:14px;text-shadow:0 2px 10px rgba(0,0,0,.6)}
.olc-tm .olc-feuillet{width:110px;margin:0 auto 14px;background:#fff;color:#1a1430;border-radius:12px;overflow:hidden;box-shadow:0 14px 30px rgba(0,0,0,.4);
  animation:olc-feuillet .8s cubic-bezier(.2,.8,.2,1);transform-origin:top center}
.olc-feuillet span{display:block;background:#dc2626;color:#fff;font-weight:800;font-size:13px;letter-spacing:.08em;padding:5px 0;text-transform:uppercase}
.olc-feuillet b{display:block;font-size:46px;padding:8px 0}
@keyframes olc-feuillet{from{transform:rotateX(-90deg);opacity:0}to{transform:none;opacity:1}}

/* --- lundi : les cartes --- */
.olc-swipe{display:flex;flex-direction:column;gap:12px;align-items:center}
.olc-swipe-prog{font-size:12.5px;font-weight:800;color:#0e7490;text-transform:uppercase;letter-spacing:.05em;align-self:flex-start}
.olc-swipe-pile{position:relative;width:100%;max-width:440px;min-height:210px}
.olc-carte{position:absolute;inset:0;background:#fff;border-radius:18px;padding:14px 16px;box-shadow:0 14px 34px rgba(15,23,42,.22);border:1px solid #e2e8f0;
  touch-action:pan-y;cursor:grab;user-select:none;transition:transform .35s cubic-bezier(.2,.8,.2,1);animation:olc-arrive .4s ease}
.olc-carte.dessous{transform:scale(.95) translateY(14px);animation:none;cursor:default;background:#f1f5f9;
  display:flex;align-items:flex-end;justify-content:center;padding-bottom:6px}
.olc-carte.dessous span{font-size:12.5px;font-weight:700;color:#64748b;transform:translateY(12px)}
.olc-carte.tamponnee{cursor:default}
.olc-swipe-prog{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.olc-attente{background:#fef3c7;color:#92400e;border-radius:99px;padding:2px 10px;font-size:12px;text-transform:none;letter-spacing:0;animation:pdl-pop .4s}
/* Le tampon posé sur la carte traitée : la BONNE réponse, toujours. */
.olc-tampon{position:absolute;right:16px;bottom:14px;font-weight:900;font-size:20px;letter-spacing:.1em;border:3px solid;border-radius:10px;padding:3px 12px;
  transform:rotate(-10deg);animation:olc-tampon .45s cubic-bezier(.3,1.6,.5,1)}
.olc-tampon.decision{color:#0e7490;border-color:#0e7490}
.olc-tampon.tache{color:#16a34a;border-color:#16a34a}
@keyframes olc-tampon{from{transform:rotate(-10deg) scale(2.6);opacity:0}to{transform:rotate(-10deg) scale(1);opacity:1}}
@keyframes olc-arrive{from{transform:translateY(-30px) scale(.96);opacity:0}}
.olc-carte-tete{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.olc-carte-tete img{width:46px;height:46px;border-radius:50%;object-fit:cover}
.olc-carte-tete b{display:block;font-size:15px}.olc-carte-tete span{font-size:12px;color:#64748b}
.olc-carte-tete i{margin-left:auto;font-size:11px;color:#94a3b8;font-style:normal}
.olc-carte p{font-size:16.5px;line-height:1.45;margin:0 0 10px}
.olc-carte-indice{display:flex;justify-content:space-between;font-size:13px;font-weight:700;color:#475569}
.olc-swipe-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;max-width:440px}
.olc-swipe-btns .pdl-opt{justify-content:center;font-weight:700}
.olc-swipe .pdl-why{width:100%}

/* --- mardi : l'ascenseur --- */
.olc-asc{display:flex;flex-direction:column;gap:12px}
.olc-asc-tdb{display:flex;flex-wrap:wrap;gap:8px 16px;background:#0f172a;color:#fff;border-radius:12px;padding:8px 14px;font-size:14px}
.olc-feu b{color:#fbbf24;animation:pdl-pop .4s}
.olc-asc-corps{display:grid;grid-template-columns:minmax(240px,340px) 1fr;gap:16px;align-items:start}
.olc-immeuble{position:relative;background:linear-gradient(180deg,#fef3c7,#fde68a);border-radius:12px 12px 6px 6px;padding:8px 54px 8px 8px;display:flex;flex-direction:column;gap:6px;
  box-shadow:0 12px 30px rgba(0,0,0,.25)}
.olc-toit{text-align:center;font-family:Fraunces,Georgia,serif;font-weight:700;font-size:13px;color:#7c2d12;padding:4px 0}
.olc-etage{font:inherit;position:relative;text-align:left;border:0;border-left:6px solid var(--c);background:#fff;border-radius:8px;padding:10px 12px;cursor:pointer;
  display:flex;flex-direction:column;gap:2px;min-height:84px;justify-content:center;transition:transform .15s,box-shadow .15s}
.olc-etage:hover:not(:disabled){transform:translateX(4px);box-shadow:0 6px 16px rgba(0,0,0,.15)}
.olc-etage-n{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#64748b}
.olc-etage b{font-size:16px;color:var(--c)}
.olc-etage i{font-size:12.5px;color:#475569;font-style:normal}
.olc-etage.bon{background:#dcfce7}
.olc-etage.faux{background:#fee2e2;animation:pdl-secoue .4s}
.olc-etage.attendu{box-shadow:0 0 0 3px #16a34a}
.olc-gaine{position:absolute;right:8px;top:36px;bottom:8px;width:38px;background:#334155;border-radius:6px;overflow:hidden}
.olc-cabine{position:absolute;left:3px;right:3px;height:33.33%;display:grid;place-items:center;background:linear-gradient(180deg,#e2e8f0,#94a3b8);border-radius:4px;
  font-size:18px;transition:top .6s cubic-bezier(.5,0,.3,1);box-shadow:inset 0 0 0 2px #475569}
.olc-ticket-zone{display:flex;flex-direction:column;gap:10px}
.olc-ticket{background:#fffdf5;border:2px dashed #cbd5e1;border-radius:12px;padding:14px 16px;animation:olc-arrive .4s ease}
.olc-ticket>span{font-size:11.5px;font-weight:800;color:#0e7490;text-transform:uppercase;letter-spacing:.06em}
.olc-ticket p{font-size:18px;font-weight:600;line-height:1.4;margin:6px 0 10px}
.olc-ticket i{font-size:12.5px;color:#64748b;font-style:normal}
.olc-chrono{height:8px;background:#e2e8f0;border-radius:99px;overflow:hidden;margin:4px 0 6px}
.olc-chrono span{display:block;height:100%;background:linear-gradient(90deg,#16a34a,#fbbf24);border-radius:99px;transition:width 1s linear}
.olc-chrono.gros{height:12px}
.olc-chrono.gros span{background:linear-gradient(90deg,#dc2626,#f59e0b)}

/* --- mercredi : la table du comité --- */
.olc-comite{display:flex;flex-direction:column;gap:12px}
.olc-table-zone{position:relative;width:100%;max-width:560px;aspect-ratio:16/9;margin:0 auto}
.olc-table{position:absolute;left:18%;right:18%;top:22%;bottom:22%;border-radius:50%;background:radial-gradient(ellipse at 40% 35%,#b45309,#78350f);
  box-shadow:0 18px 30px rgba(0,0,0,.35),inset 0 4px 10px rgba(255,255,255,.2);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fde68a}
.olc-table span{font-family:Fraunces,Georgia,serif;font-weight:700;font-size:15px}.olc-table i{font-size:12px;font-style:normal;opacity:.85}
.olc-siege{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:2px;transition:transform .3s}
.olc-siege img{width:54px;height:54px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 4px 12px rgba(0,0,0,.3);filter:saturate(.6) brightness(.9);transition:all .3s}
.olc-siege span{font-size:11.5px;font-weight:700;background:rgba(255,255,255,.92);border-radius:99px;padding:1px 7px}
.olc-siege.parle{transform:translate(-50%,-50%) scale(1.22);z-index:2}
.olc-siege.parle img{filter:none;border-color:#fbbf24;box-shadow:0 0 0 4px rgba(251,191,36,.45),0 8px 20px rgba(0,0,0,.35)}
.olc-siege.moi img{border-color:#0e7490;filter:none}
.olc-deux-btns{display:flex;flex-direction:column;gap:8px}
.olc-deux-btns p{margin:0;font-weight:700}
.olc-deux-btns i{color:#64748b}

/* --- mercredi : l'atelier SMART --- */
.olc-smart{display:flex;flex-direction:column;gap:12px}
.olc-smart-vague{display:flex;flex-direction:column;gap:2px;background:#fef2f2;border-radius:10px;padding:10px 12px}
.olc-smart-vague s{font-size:17px;color:#991b1b}.olc-smart-vague span{font-size:13px;color:#7f1d1d}
.olc-smart-lettres{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.olc-lettre{width:84px;border-radius:12px;background:#e2e8f0;color:#94a3b8;text-align:center;padding:6px 4px;transition:all .4s}
.olc-lettre b{display:block;font-size:28px;font-family:Fraunces,Georgia,serif}
.olc-lettre span{font-size:10.5px;font-weight:700}
.olc-lettre.on{background:linear-gradient(160deg,#16a34a,#0e7490);color:#fff;transform:translateY(-3px);box-shadow:0 8px 18px rgba(22,163,74,.35);animation:pdl-pop .4s}
.olc-smart-phrase{font-size:17px;font-weight:600;background:#f0f9ff;border:2px solid #bae6fd;border-radius:12px;padding:10px 14px;line-height:1.45}
.olc-smart-phrase span{color:#0e7490}
.olc-smart-cases{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.olc-smart-case{background:#f8fafc;border-radius:12px;padding:8px;display:flex;flex-direction:column;gap:6px;border:2px solid transparent}
.olc-smart-case.bon{border-color:#16a34a;background:#f0fdf4}
.olc-smart-case.faux{border-color:#dc2626;animation:pdl-secoue .4s}
.olc-smart-nom{font-weight:800;font-size:13px;color:#0e7490;text-transform:uppercase;letter-spacing:.05em}
.olc-puce{font:inherit;font-size:14px;text-align:left;background:#fff;border:2px solid #e2e8f0;border-radius:10px;padding:7px 9px;cursor:pointer;transition:all .15s}
.olc-puce:hover:not(:disabled){border-color:#0e7490}
.olc-puce.on{background:#0e7490;color:#fff;border-color:#0e7490}
.olc-smart-why{font-size:12.5px;color:#7f1d1d;margin:0}
.olc-smart>.pdl-cta{align-self:center}

/* --- jeudi : la grille des contraintes --- */
.olc-grille-zone{display:flex;flex-direction:column;gap:12px}
.olc-grille{display:grid;grid-template-columns:120px 1fr 1fr;gap:6px;font-size:13px}
.olc-axe{}
.olc-axe-t{font-weight:800;text-align:center;background:#0f172a;color:#fff;border-radius:8px;padding:6px}
.olc-axe-l{font-weight:800;background:#0f172a;color:#fff;border-radius:8px;padding:6px;display:grid;place-items:center;text-align:center}
.olc-cellule{background:#f8fafc;border:2px dashed #cbd5e1;border-radius:10px;padding:6px;min-height:90px;display:flex;flex-direction:column;gap:4px}
.olc-cellule-t{font-size:10.5px;font-weight:800;color:#94a3b8;text-transform:uppercase;letter-spacing:.04em}
.olc-mini{background:#fff;border-left:3px solid #0e7490;border-radius:6px;padding:5px 7px;font-size:12.5px;line-height:1.3;animation:pdl-pop .4s}

/* --- vendredi : le simulateur --- */
.olc-simu{display:flex;flex-direction:column;gap:12px}
.olc-simu-tete{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-weight:800;color:#0e7490}
.olc-moral{min-width:220px}
.olc-situation{display:flex;gap:14px;background:#f8fafc;border-radius:14px;padding:12px;animation:olc-arrive .4s ease}
.olc-situation img{width:96px;height:120px;border-radius:12px;object-fit:cover;flex-shrink:0}
.olc-situation h3{margin:0 0 4px;font-family:Fraunces,Georgia,serif;font-size:20px}
.olc-situation p{margin:0 0 8px;font-size:15.5px;line-height:1.45}
.olc-reperes{display:flex;gap:16px;flex-wrap:wrap;font-size:14px}
.olc-reperes b{color:#f59e0b;letter-spacing:.06em}
.olc-urg.u0{color:#16a34a}.olc-urg.u1{color:#ea580c}.olc-urg.u2{color:#dc2626}
.olc-matrice{display:grid;grid-template-columns:auto 132px;grid-template-rows:auto 96px auto;gap:2px 6px;align-self:center;font-size:11.5px;color:#475569}
.olc-matrice-t{grid-column:1/3;font-weight:700;text-align:center;margin-bottom:4px}
.olc-matrice-y{grid-row:2;grid-column:1;writing-mode:vertical-rl;transform:rotate(180deg);text-align:center}
.olc-matrice-g{grid-row:2;grid-column:2;display:grid;grid-template-columns:repeat(3,1fr);gap:3px}
.olc-matrice-g span{background:#e2e8f0;border-radius:4px}
.olc-matrice-g span.ici{background:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.35);animation:pdl-pop .5s}
.olc-matrice-x{grid-row:3;grid-column:2;text-align:center}
.olc-styles{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.olc-styles p{grid-column:1/-1;margin:0;font-weight:700}
.olc-style{justify-content:center;text-align:center}
.olc-meilleur{margin:8px 0 0;font-size:14px}

/* --- samedi : le cyclone --- */
.olc-cyclone{display:flex;flex-direction:column;gap:10px}
.olc-alerte{background:#dc2626;color:#fff;font-weight:900;letter-spacing:.08em;text-align:center;border-radius:10px;padding:8px;animation:olc-clignote 1s steps(2) infinite}
@keyframes olc-clignote{50%{background:#f97316}}
.olc-alerte.levee{background:#16a34a;animation:none}
.olc-cyclone-tete{display:flex;justify-content:space-between;font-weight:800;color:#0f172a}
.olc-compte{font-variant-numeric:tabular-nums}
.olc-compte.rouge{color:#dc2626;animation:pdl-pop .5s infinite}
.pdl-decor:has(.olc-cyclone:not(.calme)) .pdl-decor-img{animation:pdl-kb 34s ease-in-out infinite alternate,olc-tempete .5s ease-in-out infinite alternate}
@keyframes olc-tempete{from{translate:-3px 0}to{translate:3px 1px}}

/* --- dimanche --- */
.olc-duel{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.olc-duel-carte{background:#f8fafc;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:4px;font-size:14px}
.olc-duel-carte>b{font-size:15px;color:#0e7490}
.olc-calcul{display:flex;flex-direction:column;gap:10px}
.olc-calcul-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.olc-calcul-saisie input{font:inherit;font-size:22px;width:140px;padding:8px 12px;border:2px solid #cbd5e1;border-radius:10px;text-align:center}
.olc-calcul-saisie input:focus{outline:none;border-color:#0e7490}
.olc-calcul-saisie span{font-weight:700}

/* --- l'avis client --- */
.olc-avis-tete{display:flex;justify-content:space-between;align-items:baseline;border-bottom:3px solid #16a34a;padding-bottom:6px;margin-bottom:10px;flex-wrap:wrap;gap:6px}
.olc-avis-tete b{font-size:24px;color:#16a34a;font-family:Fraunces,Georgia,serif}
.olc-avis-tete span{font-size:12.5px;color:#64748b}
.olc-avis-carte{background:#f8fafc;border-radius:12px;padding:12px 14px}
.olc-avis-note{color:#16a34a;font-size:22px;letter-spacing:.08em}
.olc-avis-carte p{line-height:1.55}
.olc-avis-carte i{font-size:12.5px;color:#64748b}

@media(max-width:820px){
  .olc-jours{grid-template-columns:repeat(4,1fr)}
  .olc-asc-corps{grid-template-columns:1fr}
  .olc-ticket-zone{order:-1}
  .olc-smart-cases{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .olc-jours{grid-template-columns:repeat(2,1fr)}
  .olc-jour{min-height:150px}
  .olc-smart-cases{grid-template-columns:1fr}
  .olc-lettre{width:58px}.olc-lettre b{font-size:22px}
  .olc-grille{grid-template-columns:72px 1fr 1fr;font-size:12px}
  .olc-styles{grid-template-columns:1fr 1fr}
  .olc-duel{grid-template-columns:1fr}
  .olc-situation img{width:70px;height:90px}
  .olc-siege img{width:40px;height:40px}
}
/* ==== oulechef : fin des styles ==== */
/* ==== dc8 : debut des styles ==== */
.dc8 { position: relative; }
.dc8-panneau { max-width: 720px; margin-left: auto; margin-right: auto; }
.dc8-panneau-large { max-width: 860px; }
.dc8-photo-ico { display: inline-flex; align-items: center; justify-content: center; font-size: 34px; background: #e2e8f0; border-radius: 50%; width: 56px; height: 56px; flex: none; }
.dc8-perso-img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.dc8-perso-img.dc8-photo-ico { width: 84px; height: 84px; font-size: 44px; }
.dc8-hud-ico { font-size: 26px; }
.dc8-badge-dec { display: inline-block; background: #e0f2fe; color: #075985; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.dc8-badge-note { background: #fef3c7; color: #92400e; }
.dc8-fil { display: flex; gap: 6px; justify-content: center; padding: 6px 0 10px; flex-wrap: wrap; }
.dc8-fil span { opacity: .45; font-size: 18px; padding: 2px 6px; border-radius: 8px; }
.dc8-fil .dc8-fil-fait { opacity: .9; background: rgba(255,255,255,.55); }
.dc8-fil .dc8-fil-ici { opacity: 1; background: #fff; box-shadow: 0 0 0 2px #2563eb; }
.dc8-consigne { font-size: 15px; line-height: 1.45; margin: 4px 0 10px; }
.dc8-prog { font-size: 13px; color: #475569; margin-bottom: 6px; font-weight: 600; }
.dc8-note { font-size: 14px; color: #475569; margin: 8px 0; }

/* Le dossier posé sur le bureau */
.dc8-dossier { position: relative; background: #fffbeb; border: 1px solid #fcd34d; border-left: 6px solid #f59e0b; border-radius: 10px; padding: 12px 14px 12px 16px; margin: 8px 0 12px; box-shadow: 0 3px 8px rgba(0,0,0,.12); animation: dc8-pose .45s ease-out; }
.dc8-dossier p { margin: 4px 0 0; font-size: 16px; line-height: 1.45; color: #1e293b; }
.dc8-dossier-tete { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #b45309; }
.dc8-marque { position: absolute; right: 10px; bottom: 6px; border: 3px solid #b91c1c; color: #b91c1c; font-weight: 900; font-size: 15px; padding: 2px 10px; border-radius: 6px; transform: rotate(-9deg); animation: dc8-tampon .35s cubic-bezier(.2,1.6,.4,1); background: rgba(255,255,255,.6); }
.dc8-marque.vert { border-color: #15803d; color: #15803d; }
.dc8-dossier .dc8-marque { position: static; display: inline-block; margin: 10px 0 2px; }
@keyframes dc8-pose { from { opacity: 0; transform: translateY(-14px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes dc8-tampon { from { opacity: 0; transform: scale(2.2) rotate(-20deg); } to { opacity: 1; transform: scale(1) rotate(-9deg); } }
@keyframes dc8-tremble { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-6px) rotate(-1.5deg); } 40% { transform: translateX(6px) rotate(1.5deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }

/* Aide, file d'attente, fiche, fin */
.dc8-aide { margin: 0 0 12px; border: 2px dashed #f59e0b; border-radius: 10px; background: #fffbeb; }
.dc8-aide-btn { width: 100%; text-align: left; background: transparent; border: 0; font: inherit; font-weight: 800; color: #92400e; padding: 10px 12px; cursor: pointer; }
.dc8-aide-corps { padding: 0 12px 12px; font-size: 14px; line-height: 1.45; }
.dc8-aide-o { display: flex; gap: 6px; flex-wrap: wrap; }
.dc8-aide-opt { padding: 8px 12px; font: inherit; border-radius: 8px; border: 2px solid #cbd5e1; background: #fff; cursor: pointer; }
.dc8-aide-opt.bon { border-color: #16a34a; background: #dcfce7; } .dc8-aide-opt.faux { border-color: #dc2626; background: #fee2e2; }
.dc8-aide-why { font-size: 14px; color: #334155; margin: 8px 0; }
.dc8-file { display: flex; gap: 6px; justify-content: center; padding: 4px 8px; font-size: 22px; flex-wrap: wrap; }
.dc8-file-u { opacity: .55; transition: transform .4s, opacity .4s; }
.dc8-file-u.ici { opacity: 1; transform: scale(1.25); }
.dc8-file-u.parti { opacity: 1; }
.dc8-doc { padding: 4px; font-size: 15px; line-height: 1.55; }
.dc8-doc-tete { display: flex; flex-direction: column; border-bottom: 2px solid #1d4ed8; margin-bottom: 10px; padding-bottom: 6px; }
.dc8-doc-tete span { font-size: 13px; color: #475569; }
.dc8-fiche-mot { background: #dcfce7; padding: 0 5px; border-radius: 4px; }
.dc8-bravo { text-align: center; max-width: 520px; }
.dc8-bravo-score b { font-size: 44px; display: block; }
.dc8-fin { max-width: 760px; background: rgba(255, 255, 255, .97); }
.dc8-fin-profil { background: #eff6ff; border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.dc8-fin-etapes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0; }
.dc8-petit { padding: 6px 10px; border-radius: 999px; border: 2px solid #cbd5e1; background: #fff; font: inherit; cursor: pointer; color: #1e293b; }
.dc8-tm-notion { margin: 8px 0 14px; font-weight: 700; }
.dc8-accueil-l { text-align: left; margin: 10px 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.dc8-oui-non { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.dc8-bouton-yn { flex: 1 1 140px; padding: 12px 10px; font: inherit; font-weight: 700; color: #1e293b; border-radius: 10px; border: 2px solid #94a3b8; background: #fff; cursor: pointer; min-height: 48px; }
.dc8-bouton-yn:hover { border-color: #2563eb; background: #eff6ff; }
.dc8-bouton-yn.faux { border-color: #dc2626; background: #fee2e2; animation: dc8-tremble .45s linear; }

/* La route de la tournée */
.dc8-bravo-large { max-width: 760px; }
.dc8-semaine-titre { margin: 12px 0 6px; font-size: 16px; }
.dc8-semaine { display: grid; gap: 6px; margin: 8px 0; text-align: left; }
.dc8-jour { display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "n b s" "n e e"; gap: 2px 10px; align-items: center; background: #f8fafc; border: 2px solid #cbd5e1; border-left-width: 8px; border-radius: 10px; padding: 6px 10px; color: #1e293b; }
.dc8-jour-n { grid-area: n; font-weight: 800; font-size: 14px; white-space: nowrap; }
.dc8-jour b { grid-area: b; font-size: 14px; }
.dc8-jour em { grid-area: e; font-style: normal; font-size: 12px; color: #475569; }
.dc8-slots { grid-area: s; display: inline-flex; gap: 3px; }
.dc8-slots i { width: 11px; height: 16px; border-radius: 3px; background: #e2e8f0; border: 1px solid #cbd5e1; }
.dc8-slots i.on { background: #22c55e; border-color: #15803d; animation: dc8-pose .5s ease-out; }
.dc8-slots i.off { background: #ef4444; border-color: #b91c1c; }
.dc8-jour.ok { border-color: #16a34a; background: #f0fdf4; }
.dc8-jour.moyen { border-color: #d97706; background: #fffbeb; }
.dc8-jour.bouche { border-color: #dc2626; background: #fef2f2; }
.dc8-jour.vide { opacity: .75; border-style: dashed; }
.dc8-jour.ici { box-shadow: 0 0 0 3px #2563eb; }
.dc8-voiture { display: inline-block; animation: dc8-roule 1.6s ease-in-out infinite alternate; }
@keyframes dc8-roule { from { transform: translateX(-3px); } to { transform: translateX(4px); } }
.dc8-dossiers { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; }
.dc8-dossier-carte { display: flex; flex-direction: column; gap: 2px; background: #f8fafc; border: 2px dashed #cbd5e1; border-radius: 10px; padding: 8px 12px; font-size: 14px; color: #1e293b; }
.dc8-dossier-carte.fini { border-style: solid; border-color: #16a34a; background: #f0fdf4; }
.dc8-dossier-lieu { font-size: 12px; color: #475569; }

/* Fiche « Ce que je retiens » : trous bien visibles, consigne en tête */
.dc8-trous .pdl-trou { min-width: 120px; min-height: 40px; padding: 4px 10px; font-size: 16px; border: 2px dashed #f59e0b; border-radius: 8px; margin: 2px 3px; vertical-align: middle; }
.dc8-trous .pdl-trou.plein { border-style: solid; }
.dc8-trous-consigne { font-size: 14px; font-weight: 700; color: #92400e; background: #fef3c7; border-radius: 10px; padding: 8px 12px; margin: 0 0 6px; }
.dc8-trous .pdl-mot { min-height: 40px; }

/* Communs aux gestes : cases, options */
.dc8-cl-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; }
.dc8-cl-case { display: flex; flex-direction: column; gap: 2px; text-align: left; font: inherit; color: #1e293b; background: #fff; border: 2px solid #94a3b8; border-radius: 10px; padding: 8px 10px; min-height: 64px; cursor: pointer; }
.dc8-cl-case small { font-size: 12px; color: #475569; line-height: 1.3; }
.dc8-cl-case:hover:not(:disabled) { border-color: #2563eb; background: #eff6ff; }
.dc8-cl-case.faux { border-color: #dc2626; background: #fee2e2; animation: dc8-tremble .45s linear; }
.dc8-cl-case.bon { border-color: #16a34a; background: #dcfce7; }
.dc8-cl-nb { color: #16a34a; font-size: 14px; letter-spacing: 2px; min-height: 16px; }
.dc8-te-titre { font-weight: 800; font-size: 14px; margin: 10px 0 4px; color: #92400e; }
.dc8-te-opt { display: block; width: 100%; text-align: left; font: inherit; font-size: 15px; line-height: 1.35; color: #1e293b; background: #fff; border: 2px solid #cbd5e1; border-radius: 10px; padding: 8px 12px; margin: 4px 0; min-height: 44px; cursor: pointer; }
.dc8-te-opt:hover:not(:disabled) { border-color: #2563eb; }
.dc8-te-opt.sel { border-color: #2563eb; background: #dbeafe; font-weight: 700; }

/* 1. Les deux interrupteurs */
.dc8-int { display: grid; gap: 8px; margin: 8px 0; }
.dc8-int-r { display: grid; grid-template-columns: 38px 1fr auto; gap: 4px 10px; align-items: center; background: #f8fafc; border: 2px solid #cbd5e1; border-radius: 12px; padding: 8px 10px; color: #1e293b; transition: background .4s, border-color .4s; }
.dc8-int-r.allume { border-color: #f59e0b; background: #fffbeb; }
.dc8-int-r.eteint { border-color: #94a3b8; background: #f1f5f9; }
.dc8-lampe { font-size: 26px; text-align: center; }
.dc8-int-r.allume .dc8-lampe { animation: dc8-lueur 1.2s ease-in-out infinite alternate; }
@keyframes dc8-lueur { from { transform: scale(1); filter: drop-shadow(0 0 0 #fbbf24); } to { transform: scale(1.12); filter: drop-shadow(0 0 8px #fbbf24); } }
.dc8-int-q { display: flex; flex-direction: column; font-size: 15px; }
.dc8-int-q small { font-size: 12px; color: #475569; }
.dc8-int-b { display: flex; gap: 6px; }
.dc8-int-btn { min-width: 64px; min-height: 44px; font: inherit; font-weight: 800; color: #1e293b; background: #fff; border: 2px solid #94a3b8; border-radius: 999px; cursor: pointer; }
.dc8-int-btn.on { background: #dbeafe; border-color: #2563eb; }
.dc8-int-btn.faux { border-color: #dc2626; background: #fee2e2; animation: dc8-tremble .45s linear; }
.dc8-int-btn:disabled { cursor: default; }

/* 2. Le stylo */
.dc8-contrat { position: relative; background: #fffdf5; border: 1px solid #d6c9a0; border-radius: 6px; padding: 10px 14px 24px; margin: 10px 0; color: #292524; box-shadow: 0 2px 6px rgba(0,0,0,.12); font-family: Georgia, serif; }
.dc8-contrat.signe { border-color: #16a34a; }
.dc8-contrat-tete { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: #78716c; font-family: inherit; margin-bottom: 6px; }
.dc8-sig-l-liste { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dc8-sig-l { display: flex; flex-direction: column; gap: 3px; text-align: left; font: inherit; color: #292524; background: transparent; border: 2px dashed #a8a29e; border-radius: 8px; padding: 8px 10px; min-height: 96px; cursor: pointer; }
.dc8-sig-l:hover:not(:disabled) { border-color: #2563eb; background: #eff6ff; }
.dc8-sig-l.choisi { border-style: solid; border-color: #2563eb; background: #eff6ff; }
.dc8-sig-l.juste { border-color: #16a34a; background: #f0fdf4; }
.dc8-sig-l.faux { border-color: #dc2626; background: #fef2f2; }
.dc8-sig-role { font-size: 12px; font-weight: 800; color: #57534e; }
.dc8-sig-trait { min-height: 34px; border-bottom: 2px solid #78716c; display: flex; align-items: flex-end; font-size: 13px; color: #78716c; }
.dc8-sig-l small { font-size: 12px; color: #57534e; }
.dc8-sig-ecrit { display: inline-block; white-space: nowrap; animation: dc8-ecrit 1.1s steps(18, end) forwards; }
.dc8-sig-mot { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 24px; font-style: italic; color: #1e3a8a; }
.dc8-stylo { display: inline-block; margin-left: -2px; font-size: 18px; animation: dc8-stylo 1.1s ease-out forwards; }
@keyframes dc8-ecrit { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes dc8-stylo { 0% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; } }

/* 3. Le peson */
.dc8-peson { display: flex; justify-content: center; margin: 6px 0 2px; }
.dc8-peson-cadran { position: relative; width: 180px; height: 96px; border-radius: 180px 180px 0 0; background: linear-gradient(90deg, #bbf7d0, #fde68a, #fecaca); border: 3px solid #78350f; border-bottom: 0; overflow: hidden; }
.dc8-peson-g, .dc8-peson-d { position: absolute; bottom: 4px; font-size: 11px; font-weight: 800; color: #422006; }
.dc8-peson-g { left: 10px; } .dc8-peson-d { right: 10px; }
.dc8-peson-aiguille { position: absolute; left: calc(50% - 2px); bottom: 0; width: 4px; height: 78px; background: #7f1d1d; border-radius: 2px; transform-origin: 50% 100%; transition: transform 1s cubic-bezier(.3,1.4,.5,1); }

/* 4. La chaîne de la nullité */
.dc8-ch-frise { display: flex; gap: 6px; list-style: none; padding: 0; margin: 4px 0 8px; flex-wrap: wrap; }
.dc8-ch-e { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #e2e8f0; color: #475569; }
.dc8-ch-e.ici { background: #fef3c7; color: #92400e; box-shadow: 0 0 0 2px #f59e0b; }
.dc8-ch-e.fait { background: #dcfce7; color: #166534; }
.dc8-ch-q { margin: 8px 0; }
.dc8-ch-opts { display: grid; gap: 4px; }
.dc8-ch-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.dc8-ch-partie { min-height: 90px; background: #f1f5f9; border: 2px solid #94a3b8; border-radius: 12px; padding: 8px 10px; color: #1e293b; }
.dc8-ch-nom { font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.dc8-ch-objet { display: block; margin: 4px 0; padding: 6px 10px; background: #fff; border: 2px solid #f59e0b; border-radius: 8px; font-weight: 700; animation: dc8-pose .4s ease-out; }
.dc8-ch-objet.rendu { border-color: #16a34a; animation: dc8-arrive .8s ease-out; }
@keyframes dc8-arrive { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
.dc8-ch-partie:nth-child(2) .dc8-ch-objet.rendu { animation-name: dc8-arrive-d; }
@keyframes dc8-arrive-d { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
.dc8-ch-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; font-size: 14px; color: #1e293b; }
.dc8-ch-act span { flex: 1 1 200px; }

/* Jeu : le rendez-vous de décision */
.dc8-patri { background: #ecfdf5; border: 2px solid #16a34a; border-radius: 10px; padding: 6px 12px; margin: 4px 0 8px; color: #14532d; font-size: 15px; }
.dc8-patri-d { font-size: 13px; color: #475569; }
.dc8-patri-barre { height: 10px; background: #d1fae5; border-radius: 6px; overflow: hidden; margin-top: 4px; }
.dc8-patri-barre i { display: block; height: 100%; background: #16a34a; transition: width 1s ease; }
.dc8-patri-barre i.baisse { background: #d97706; }
.dc8-de-poids { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 6px; }
.dc8-de-sigs { display: grid; gap: 6px; margin-bottom: 8px; }
.dc8-de-sig { display: flex; align-items: center; gap: 10px; text-align: left; font: inherit; font-size: 15px; color: #1e293b; background: #fff; border: 2px solid #cbd5e1; border-radius: 10px; padding: 8px 12px; min-height: 46px; cursor: pointer; }
.dc8-de-sig.sel { border-color: #2563eb; background: #dbeafe; font-weight: 700; }
.dc8-de-case { flex: none; width: 24px; height: 24px; border: 2px solid #64748b; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; color: #1d4ed8; background: #fff; }

/* Jeu : le cordon d'engagement */
.dc8-co-frise { margin: 6px 0 10px; padding: 8px 12px 8px 30px; background: #f1f5f9; border-left: 4px solid #64748b; border-radius: 8px; font-size: 14px; color: #1e293b; line-height: 1.4; }
.dc8-co-frise li { margin: 3px 0; }
.dc8-co-liste { display: grid; gap: 8px; }
.dc8-co-opt { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 8px; text-align: left; font: inherit; font-size: 15px; color: #1e293b; background: #fff; border: 2px solid #94a3b8; border-radius: 12px; padding: 8px 12px; min-height: 56px; cursor: pointer; }
.dc8-co-opt:hover:not(:disabled) { border-color: #2563eb; background: #eff6ff; }
.dc8-co-opt.faux { border-color: #dc2626; background: #fee2e2; animation: dc8-tremble .45s linear; }
.dc8-co-opt.lie { border-color: #16a34a; background: #f0fdf4; box-shadow: 0 0 0 3px rgba(34,197,94,.35); }
.dc8-co-bourse { font-size: 26px; text-align: center; }
.dc8-co-cordon { grid-column: 2; font-weight: 800; font-size: 13px; color: #166534; animation: dc8-cordon .8s ease-out; overflow: hidden; white-space: nowrap; }
@keyframes dc8-cordon { from { max-width: 0; } to { max-width: 100%; } }

@media (max-width: 480px) {
  .dc8-jour { grid-template-columns: 52px 1fr; grid-template-areas: "n b" "s s" "e e"; }
  .dc8-int-r { grid-template-columns: 30px 1fr; }
  .dc8-int-b { grid-column: 1 / -1; }
  .dc8-int-btn { flex: 1; }
  .dc8-sig-l-liste { grid-template-columns: 1fr; }
  .dc8-sig-l { min-height: 84px; }
  .dc8-ch-parties { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .dc8-peson-aiguille, .dc8-patri-barre i { transition: none; }
  .dc8-dossier, .dc8-marque, .dc8-slots i.on, .dc8-ch-objet, .dc8-ch-objet.rendu, .dc8-voiture, .dc8-sig-ecrit, .dc8-stylo, .dc8-co-cordon, .dc8-int-r.allume .dc8-lampe { animation: none; }
}
/* ==== dc8 : fin des styles ==== */
/* ==== dc9 : debut des styles ==== */
.dc9 { position: relative; }
.dc9-panneau { max-width: 720px; margin-left: auto; margin-right: auto; }
.dc9-panneau-large { max-width: 860px; }
.dc9-photo-ico { display: inline-flex; align-items: center; justify-content: center; font-size: 34px; background: #e2e8f0; border-radius: 50%; width: 56px; height: 56px; flex: none; }
.dc9-perso-img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.dc9-perso-img.dc9-photo-ico { width: 84px; height: 84px; font-size: 44px; }
.dc9-hud-ico { font-size: 26px; }
.dc9-badge-dec { display: inline-block; background: #e0f2fe; color: #075985; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.dc9-badge-note { background: #fef3c7; color: #92400e; }
.dc9-fil { display: flex; gap: 6px; justify-content: center; padding: 6px 0 10px; flex-wrap: wrap; }
.dc9-fil span { opacity: .45; font-size: 18px; padding: 2px 6px; border-radius: 8px; }
.dc9-fil .dc9-fil-fait { opacity: .9; background: rgba(255,255,255,.55); }
.dc9-fil .dc9-fil-ici { opacity: 1; background: #fff; box-shadow: 0 0 0 2px #2563eb; }
.dc9-consigne { font-size: 15px; line-height: 1.45; margin: 4px 0 10px; }
.dc9-prog { font-size: 13px; color: #475569; margin-bottom: 6px; font-weight: 600; }
.dc9-note { font-size: 14px; color: #475569; margin: 8px 0; }

/* Le dossier posé sur le bureau */
.dc9-dossier { position: relative; background: #fffbeb; border: 1px solid #fcd34d; border-left: 6px solid #f59e0b; border-radius: 10px; padding: 12px 14px 12px 16px; margin: 8px 0 12px; box-shadow: 0 3px 8px rgba(0,0,0,.12); animation: dc9-pose .45s ease-out; }
.dc9-dossier p { margin: 4px 0 0; font-size: 16px; line-height: 1.45; color: #1e293b; }
.dc9-dossier-tete { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #b45309; }
.dc9-marque { position: absolute; right: 10px; bottom: 6px; border: 3px solid #b91c1c; color: #b91c1c; font-weight: 900; font-size: 15px; padding: 2px 10px; border-radius: 6px; transform: rotate(-9deg); animation: dc9-tampon .35s cubic-bezier(.2,1.6,.4,1); background: rgba(255,255,255,.6); }
@keyframes dc9-pose { from { opacity: 0; transform: translateY(-14px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes dc9-tampon { from { opacity: 0; transform: scale(2.2) rotate(-20deg); } to { opacity: 1; transform: scale(1) rotate(-9deg); } }

/* Aide, annexes, fiche, file d'attente, fin */
.dc9-aide { margin: 0 0 12px; border: 2px dashed #f59e0b; border-radius: 10px; background: #fffbeb; }
.dc9-aide-btn { width: 100%; text-align: left; background: transparent; border: 0; font: inherit; font-weight: 800; color: #92400e; padding: 10px 12px; cursor: pointer; }
.dc9-aide-corps { padding: 0 12px 12px; font-size: 14px; line-height: 1.45; }
.dc9-aide-o { display: flex; gap: 6px; flex-wrap: wrap; }
.dc9-aide-opt { padding: 8px 12px; font: inherit; border-radius: 8px; border: 2px solid #cbd5e1; background: #fff; cursor: pointer; }
.dc9-aide-opt.bon { border-color: #16a34a; background: #dcfce7; } .dc9-aide-opt.faux { border-color: #dc2626; background: #fee2e2; }
.dc9-aide-why { font-size: 14px; color: #334155; margin: 8px 0; }
.dc9-annexes { display: grid; gap: 8px; margin-bottom: 12px; }
.dc9-annexe { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; padding: 8px 12px; font-size: 14px; line-height: 1.4; }
.dc9-annexe p { margin: 4px 0 0; }
.dc9-file { display: flex; gap: 6px; justify-content: center; padding: 4px 8px; font-size: 22px; flex-wrap: wrap; }
.dc9-file-u { opacity: .55; transition: transform .4s, opacity .4s; }
.dc9-file-u.ici { opacity: 1; transform: scale(1.25); }
.dc9-file-u.parti { opacity: 1; }
.dc9-doc { padding: 4px; font-size: 15px; line-height: 1.55; }
.dc9-doc-tete { display: flex; flex-direction: column; border-bottom: 2px solid #1d4ed8; margin-bottom: 10px; padding-bottom: 6px; }
.dc9-doc-tete span { font-size: 13px; color: #475569; }
.dc9-fiche-mot { background: #dcfce7; padding: 0 5px; border-radius: 4px; }
.dc9-livre { list-style: none; padding: 0; margin: 0; }
.dc9-livre li { padding: 6px 0; border-bottom: 1px dashed #cbd5e1; }
.dc9-bravo { text-align: center; max-width: 520px; }
.dc9-bravo-score b { font-size: 44px; display: block; }
.dc9-fin { max-width: 760px; background: rgba(255, 255, 255, .97); }
.dc9-fin-profil { background: #eff6ff; border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.dc9-fin-etapes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0; }
.dc9-petit { padding: 6px 10px; border-radius: 999px; border: 2px solid #cbd5e1; background: #fff; font: inherit; cursor: pointer; }
.dc9-tm-notion { margin: 8px 0 14px; font-weight: 700; }
.dc9-accueil-l { text-align: left; margin: 10px 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.dc9-question { background: #f1f5f9; border-radius: 12px; padding: 12px 14px; margin: 6px 0; }
.dc9-question p { margin: 0 0 10px; font-size: 16px; line-height: 1.4; }
.dc9-question p:last-child { margin-bottom: 0; }
.dc9-oui-non { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.dc9-bouton-yn { flex: 1 1 140px; padding: 12px 10px; font: inherit; font-weight: 700; border-radius: 10px; border: 2px solid #94a3b8; background: #fff; cursor: pointer; min-height: 48px; }
.dc9-bouton-yn:hover { border-color: #2563eb; background: #eff6ff; }
.dc9-bouton-yn.faux { border-color: #dc2626; background: #fee2e2; animation: dc9-tremble .45s linear; }
@keyframes dc9-tremble { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-6px) rotate(-1.5deg); } 40% { transform: translateX(6px) rotate(1.5deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.dc9-ligne-ok { margin: 4px 0; font-size: 14px; color: #166534; }
.dc9-moment, .dc9-marche, .dc9-guichet, .dc9-voie, .dc9-scellebtn { color: #1e293b; }
.dc9-bal-legende { font-size: 14px; line-height: 1.4; background: #fef3c7; border-radius: 10px; padding: 8px 12px; margin: 6px 0; }

@media (prefers-reduced-motion: reduce) {
  .dc9 *, .dc9 *::before, .dc9 *::after { animation: none !important; transition: none !important; }
}
.dc9-accueil { background: rgba(8, 14, 30, .72); padding: 18px 22px; border-radius: 16px; backdrop-filter: blur(3px); }

/* Fiche « Ce que je retiens » : trous bien visibles, consigne en tête */
.dc9-trous .pdl-trou { min-width: 120px; min-height: 40px; padding: 4px 10px; font-size: 16px; border: 2px dashed #f59e0b; border-radius: 8px; margin: 2px 3px; vertical-align: middle; }
.dc9-trous .pdl-trou.plein { border-style: solid; }
.dc9-trous-consigne { font-size: 14px; font-weight: 700; color: #92400e; background: #fef3c7; border-radius: 10px; padding: 8px 12px; margin: 0 0 6px; }
.dc9-trous .pdl-mot { min-height: 40px; }
/* Grand dossier : le rappel des annexes utiles, juste au-dessus des réponses */
.dc9-rappel { margin: 6px 0 10px; padding: 8px 10px; background: #fffbeb; border-left: 4px solid #f59e0b; border-radius: 8px; font-size: 13px; line-height: 1.4; }
.dc9-rappel-a { margin: 0 0 8px; }
.dc9-rappel-a:last-child { margin-bottom: 0; }
/* Petit écran : l'en-tête garde les pastilles et les boutons ; la file des sept pictogrammes et la ligne d'icônes de l'étape disparaissent */
@media (max-width: 600px) {
  .dc9-file, .dc9-fil { display: none; }
}
/* ---------------- Les mécaniques du chapitre 9 ---------------- */
.dc9-oui-non.dc9-trois .dc9-bouton-yn { display: flex; flex-direction: column; gap: 2px; align-items: center; color: #1e293b; }
.dc9-bouton-yn small { font-weight: 400; font-size: 12px; line-height: 1.25; color: #475569; }
.dc9-question-p { margin: 8px 0 6px; font-size: 15px; }
.dc9-demande { background: #fff; border: 2px solid #94a3b8; border-radius: 12px; padding: 10px 14px; margin: 8px 0; color: #1e293b; animation: dc9-pose .4s ease-out; }
.dc9-demande-tete { font-size: 12px; font-weight: 800; color: #475569; margin-bottom: 4px; }
.dc9-demande p { margin: 0; font-size: 16px; line-height: 1.4; }

/* 1. Les épreuves : la malle, le droit (un parchemin), l'événement qui arrive */
.dc9-gros { flex: 1 1 200px; padding: 12px 12px; font: inherit; font-weight: 700; font-size: 15px; line-height: 1.3; text-align: left; color: #1e293b; background: #fff; border: 2px solid #94a3b8; border-radius: 10px; cursor: pointer; min-height: 60px; }
.dc9-gros:hover { border-color: #0e7490; background: #ecfeff; }
.dc9-gros.faux { border-color: #dc2626; background: #fee2e2; animation: dc9-tremble .45s linear; }
.dc9-malle { display: grid; grid-template-columns: 90px 1fr 90px; gap: 10px; align-items: center; margin: 8px 0 10px; padding: 10px; background: rgba(255, 255, 255, .85); border: 2px dashed #94a3b8; border-radius: 14px; overflow: hidden; }
.dc9-malle-pers { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; color: #1e293b; }
.dc9-malle-ico { font-size: 38px; }
.dc9-jeton { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; padding: 10px 12px; background: #fefce8; border: 2px solid #ca8a04; border-radius: 10px; color: #422006; font-size: 15px; transition: transform .8s ease, opacity .8s ease; animation: dc9-pose .45s ease-out; }
.dc9-jeton span { font-size: 26px; }
.dc9-jeton.reste { border-color: #16a34a; background: #f0fdf4; box-shadow: 0 0 14px 3px rgba(22, 163, 74, .4); }
.dc9-jeton.reste::after { content: "🔒"; position: absolute; right: -8px; top: -12px; font-size: 24px; animation: dc9-tampon .4s cubic-bezier(.2, 1.6, .4, 1); }
.dc9-jeton.part { border-color: #dc2626; background: #fef2f2; transform: translateX(110%) rotate(8deg); opacity: .55; }
.dc9-malle-evt { display: flex; flex-direction: column; align-items: center; font-size: 34px; color: #1e293b; transition: transform .5s; }
.dc9-malle-evt small { font-size: 12px; text-align: center; }
.dc9-malle-evt.prend { transform: scale(1.25); }

/* 2. La balance du photographe */
.dc9-bal2 { position: relative; height: 112px; margin: 8px auto; max-width: 420px; }
.dc9-bal2-fleau { position: absolute; left: 6%; right: 6%; top: 18px; height: 8px; background: #78350f; border-radius: 6px; transition: transform 1.1s cubic-bezier(.3, 1.3, .5, 1); transform-origin: 50% 50%; }
.dc9-bal2-plat { position: absolute; top: -2px; width: 92px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; background: #fef3c7; border: 3px solid #92400e; border-radius: 0 0 60px 60px; font-size: 22px; color: #1e293b; }
.dc9-bal2-plat b { font-size: 16px; }
.dc9-bal2-g { left: -10px; transform: translateY(8px); } .dc9-bal2-d { right: -10px; transform: translateY(8px); }
.dc9-bal2-pied { position: absolute; left: calc(50% - 5px); top: 20px; width: 10px; height: 80px; background: #78350f; border-radius: 4px; }
.dc9-bal2-pot { position: absolute; left: calc(50% + 70px); bottom: 0; display: flex; align-items: center; gap: 4px; padding: 3px 10px; background: #e7e5e4; border: 2px solid #78716c; border-radius: 0 0 14px 14px; color: #1e293b; font-size: 14px; }
.dc9-3plats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.dc9-plat { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; font: inherit; color: #1e293b; text-align: center; background: #fff; border: 2px solid #94a3b8; border-bottom-width: 5px; border-radius: 10px; cursor: pointer; min-height: 96px; transition: transform .2s, border-color .2s, background .3s; }
.dc9-plat:hover:not(:disabled) { transform: translateY(-2px); background: #f8fafc; }
.dc9-plat:disabled { cursor: default; }
.dc9-plat-0 { border-color: #be123c; } .dc9-plat-1 { border-color: #1d4ed8; } .dc9-plat-2 { border-color: #78716c; }
.dc9-plat.faux { border-color: #dc2626; background: #fee2e2; animation: dc9-tremble .45s linear; }
.dc9-plat-ico { font-size: 24px; }
.dc9-plat b { font-size: 13px; line-height: 1.2; }
.dc9-plat i { font-style: normal; font-size: 11.5px; color: #475569; }
.dc9-pile { display: inline-flex; flex-wrap: wrap; gap: 1px; justify-content: center; font-size: 12px; }
.dc9-poids { color: #92400e; animation: dc9-pose .4s ease-out; }
.dc9-verdict { margin: 8px 0; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 15px; animation: dc9-pose .5s ease-out; }
.dc9-verdict.atteinte { background: #ffe4e6; color: #9f1239; border: 2px solid #be123c; }
.dc9-verdict.libre { background: #dbeafe; color: #1e3a8a; border: 2px solid #1d4ed8; }

/* 3. Les tampons : l'encrier, la pratique, le sceau posé */
.dc9-encreurs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 6px 0; }
.dc9-encreur { position: relative; display: grid; grid-template-columns: 34px 1fr; grid-template-areas: "i b" "i j"; gap: 0 8px; align-items: center; text-align: left; padding: 10px 12px; font: inherit; color: #1e293b; background: #fff; border: 2px solid #94a3b8; border-left-width: 8px; border-radius: 10px; cursor: pointer; min-height: 62px; transition: transform .2s, background .3s; }
.dc9-encreur:hover { transform: translateY(-2px); background: #f8fafc; }
.dc9-encreur-ico { grid-area: i; font-size: 24px; }
.dc9-encreur b { grid-area: b; font-size: 14px; }
.dc9-encreur i { grid-area: j; font-style: normal; font-size: 12px; color: #475569; line-height: 1.25; }
.dc9-encreur-0 { border-left-color: #7c3aed; } .dc9-encreur-1 { border-left-color: #0369a1; } .dc9-encreur-2 { border-left-color: #b45309; }
.dc9-encreur-3 { border-left-color: #be123c; } .dc9-encreur-4 { border-left-color: #0f766e; } .dc9-encreur-5 { border-left-color: #16a34a; }
.dc9-encreur.faux { border-color: #dc2626; background: #fee2e2; animation: dc9-tremble .45s linear; }
.dc9-marque-ok { border-color: #166534; color: #166534; background: rgba(255, 255, 255, .85); }

/* 4. Le feutre noir : le brouillon, les phrases qu'on noircit */
.dc9-papier { background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; padding: 10px 12px; margin: 8px 0; box-shadow: 0 3px 8px rgba(0, 0, 0, .12); color: #1e293b; animation: dc9-pose .45s ease-out; }
.dc9-papier-tete { font-weight: 800; font-size: 14px; border-bottom: 2px solid #1e293b; padding-bottom: 4px; margin-bottom: 6px; }
.dc9-phrase { position: relative; display: block; width: 100%; text-align: left; font: inherit; color: #1e293b; background: transparent; border: 2px solid transparent; border-radius: 6px; padding: 7px 8px; margin: 2px 0; cursor: pointer; line-height: 1.4; min-height: 44px; }
.dc9-phrase:hover:not(:disabled) { background: #f1f5f9; }
.dc9-phrase:disabled { cursor: default; }
.dc9-phrase-t { display: block; transition: background .5s, color .5s; font-size: 15px; }
.dc9-phrase-etat { display: block; font-size: 11px; font-weight: 700; color: #64748b; margin-top: 2px; }
.dc9-phrase.noire .dc9-phrase-t { background: #0f172a; color: #0f172a; border-radius: 3px; user-select: none; }
.dc9-phrase.noire .dc9-phrase-etat { color: #0f172a; }
.dc9-phrase.faux { border-color: #dc2626; background: #fef2f2; }
.dc9-phrase.juste { border-color: #bbf7d0; }
.dc9-phrase-why { display: block; font-size: 13px; color: #7f1d1d; margin-top: 4px; }
.dc9-envoi { margin: 8px 0; }

/* 5. Les étiquettes */
.dc9-etiqs { display: grid; gap: 6px; }
.dc9-etiq { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; font: inherit; color: #1e293b; background: #fff; border: 2px solid #94a3b8; border-left-width: 8px; border-radius: 10px; cursor: pointer; min-height: 56px; }
.dc9-etiq i { font-style: normal; font-size: 12.5px; color: #475569; }
.dc9-etiq:hover { background: #f8fafc; }
.dc9-etiq.faux { border-color: #dc2626; background: #fee2e2; animation: dc9-tremble .45s linear; }
.dc9-nat-0 { border-left-color: #94a3b8; } .dc9-nat-1 { border-left-color: #0369a1; } .dc9-nat-2 { border-left-color: #be123c; }
.dc9-etiq-pose { position: absolute; right: 10px; top: 8px; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #e0f2fe; color: #075985; transform: rotate(-4deg); animation: dc9-tampon .4s cubic-bezier(.2, 1.6, .4, 1); }
.dc9-etiq-pose.dc9-nat-0 { background: #e2e8f0; color: #334155; } .dc9-etiq-pose.dc9-nat-2 { background: #ffe4e6; color: #9f1239; }
.dc9-etiq-forme { top: auto; bottom: 8px; background: #fef3c7; color: #92400e; }

/* 6. La plainte à compléter */
.dc9-formulaire { background: #fff; border: 2px solid #1e293b; border-radius: 4px; padding: 10px 14px; margin: 8px 0; color: #1e293b; line-height: 1.8; font-size: 16px; }
.dc9-formulaire-tete { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #475569; border-bottom: 1px solid #cbd5e1; margin-bottom: 4px; }
.dc9-formulaire p { margin: 0; }
.dc9-blanc { display: inline-block; min-width: 90px; text-align: center; border-bottom: 3px dashed #94a3b8; font-weight: 700; color: #94a3b8; padding: 0 6px; }
.dc9-blanc.attend { border-bottom-color: #f59e0b; color: #b45309; animation: dc9-pulse 1.4s ease-in-out infinite; }
.dc9-blanc.plein { border-bottom: 3px solid #16a34a; color: #166534; background: #f0fdf4; animation: dc9-pose .4s ease-out; }
@keyframes dc9-pulse { 0%, 100% { background: transparent; } 50% { background: #fef3c7; } }
.dc9-banque { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.dc9-mot { padding: 9px 14px; font: inherit; font-weight: 700; color: #1e293b; background: #f8fafc; border: 2px solid #94a3b8; border-radius: 999px; cursor: pointer; min-height: 44px; }
.dc9-mot:hover:not(:disabled) { border-color: #4d7c0f; background: #f7fee7; }
.dc9-mot:disabled { opacity: .35; cursor: default; }
.dc9-mot.faux { border-color: #dc2626; background: #fee2e2; animation: dc9-tremble .45s linear; }

/* 7. Le grand dossier, les réponses */
.dc9-qcm-o { display: grid; gap: 6px; margin: 6px 0; }

/* Le jeu : la maquette du numéro */
.dc9-journal { background: #fefcf3; border: 3px double #44403c; border-radius: 6px; padding: 10px 12px; color: #1c1917; }
.dc9-journal-tete { display: flex; flex-direction: column; align-items: center; border-bottom: 3px double #44403c; margin-bottom: 8px; padding-bottom: 6px; text-align: center; }
.dc9-journal-tete b { font-family: Georgia, "Times New Roman", serif; font-size: 22px; letter-spacing: .04em; }
.dc9-journal-tete span { font-size: 12px; color: #57534e; }
.dc9-maquette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 8px 0; }
.dc9-page { position: relative; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px; font: inherit; color: #1c1917; background: #fff; border: 2px solid #a8a29e; border-radius: 4px; cursor: pointer; min-height: 120px; transition: transform .2s, box-shadow .2s; grid-column: span 2; }
.dc9-page-1 { grid-column: span 6; min-height: 100px; }
.dc9-page-2, .dc9-page-3 { grid-column: span 3; }
.dc9-page-7 { grid-column: span 6; }
.dc9-page:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, .18); }
.dc9-page-n { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #78716c; text-transform: uppercase; }
.dc9-page-ico { font-size: 26px; }
.dc9-page b { font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.2; }
.dc9-page i { font-style: normal; font-size: 12.5px; color: #57534e; }
.dc9-page.ici { box-shadow: 0 0 0 3px #2563eb; }
.dc9-page-tampon { align-self: flex-start; margin-top: 4px; border: 3px solid #166534; color: #166534; font-weight: 900; font-size: 13px; padding: 1px 8px; border-radius: 6px; transform: rotate(-5deg); background: rgba(255, 255, 255, .8); animation: dc9-tampon .4s cubic-bezier(.2, 1.6, .4, 1); }
.dc9-page-tampon small { margin-left: 6px; font-weight: 700; }
.dc9-page.moyen { background: #fffbeb; border-color: #d97706; } .dc9-page.moyen .dc9-page-tampon { border-color: #b45309; color: #b45309; }
.dc9-page.bouche { background: #fef2f2; border-color: #dc2626; } .dc9-page.bouche .dc9-page-tampon { border-color: #b91c1c; color: #b91c1c; }
.dc9-page.ok { background: #f0fdf4; border-color: #16a34a; }
.dc9-page.vide { border-style: dashed; }
.dc9-page-vide { border-color: #a8a29e; color: #78716c; border-style: dashed; animation: none; }

@media (max-width: 600px) {
  .dc9-malle { grid-template-columns: 70px 1fr 56px; gap: 6px; padding: 8px 6px; }
  .dc9-malle-ico { font-size: 30px; }
  .dc9-3plats { grid-template-columns: 1fr; }
  .dc9-plat { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 56px; gap: 8px; }
  .dc9-plat i { display: none; }
  .dc9-encreurs { grid-template-columns: 1fr; }
  .dc9-maquette { grid-template-columns: 1fr 1fr; }
  .dc9-page, .dc9-page-1, .dc9-page-2, .dc9-page-3, .dc9-page-7 { grid-column: span 1; min-height: 110px; }
  .dc9-page-1, .dc9-page-7 { grid-column: span 2; }
  .dc9-bal2-plat { width: 70px; }
}
/* ==== dc9 : fin des styles ==== */
/* ==== dc7 : debut des styles ==== */
.dc7 { position: relative; }
.dc7-panneau { max-width: 720px; margin-left: auto; margin-right: auto; }
.dc7-panneau-large { max-width: 860px; }
.dc7-photo-ico { display: inline-flex; align-items: center; justify-content: center; font-size: 34px; background: #e2e8f0; border-radius: 50%; width: 56px; height: 56px; flex: none; }
.dc7-perso-img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.dc7-perso-img.dc7-photo-ico { width: 84px; height: 84px; font-size: 44px; }
.dc7-hud-ico { font-size: 26px; }
.dc7-badge-dec { display: inline-block; background: #e0f2fe; color: #075985; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.dc7-badge-note { background: #fef3c7; color: #92400e; }
.dc7-fil { display: flex; gap: 6px; justify-content: center; padding: 6px 0 10px; flex-wrap: wrap; }
.dc7-fil span { opacity: .45; font-size: 18px; padding: 2px 6px; border-radius: 8px; }
.dc7-fil .dc7-fil-fait { opacity: .9; background: rgba(255,255,255,.55); }
.dc7-fil .dc7-fil-ici { opacity: 1; background: #fff; box-shadow: 0 0 0 2px #2563eb; }
.dc7-consigne { font-size: 15px; line-height: 1.45; margin: 4px 0 10px; }
.dc7-prog { font-size: 13px; color: #475569; margin-bottom: 6px; font-weight: 600; }
.dc7-note { font-size: 14px; color: #475569; margin: 8px 0; }

/* Le dossier posé sur le bureau */
.dc7-dossier { position: relative; background: #fffbeb; border: 1px solid #fcd34d; border-left: 6px solid #f59e0b; border-radius: 10px; padding: 12px 14px 12px 16px; margin: 8px 0 12px; box-shadow: 0 3px 8px rgba(0,0,0,.12); animation: dc7-pose .45s ease-out; }
.dc7-dossier p { margin: 4px 0 0; font-size: 16px; line-height: 1.45; color: #1e293b; }
.dc7-dossier-tete { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #b45309; }
.dc7-marque { position: absolute; right: 10px; bottom: 6px; border: 3px solid #b91c1c; color: #b91c1c; font-weight: 900; font-size: 15px; padding: 2px 10px; border-radius: 6px; transform: rotate(-9deg); animation: dc7-tampon .35s cubic-bezier(.2,1.6,.4,1); background: rgba(255,255,255,.6); }
@keyframes dc7-pose { from { opacity: 0; transform: translateY(-14px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes dc7-tampon { from { opacity: 0; transform: scale(2.2) rotate(-20deg); } to { opacity: 1; transform: scale(1) rotate(-9deg); } }

/* Aide, annexes, fiche, file d'attente, fin */
.dc7-aide { margin: 0 0 12px; border: 2px dashed #f59e0b; border-radius: 10px; background: #fffbeb; }
.dc7-aide-btn { width: 100%; text-align: left; background: transparent; border: 0; font: inherit; font-weight: 800; color: #92400e; padding: 10px 12px; cursor: pointer; }
.dc7-aide-corps { padding: 0 12px 12px; font-size: 14px; line-height: 1.45; }
.dc7-aide-o { display: flex; gap: 6px; flex-wrap: wrap; }
.dc7-aide-opt { padding: 8px 12px; font: inherit; border-radius: 8px; border: 2px solid #cbd5e1; background: #fff; cursor: pointer; }
.dc7-aide-opt.bon { border-color: #16a34a; background: #dcfce7; } .dc7-aide-opt.faux { border-color: #dc2626; background: #fee2e2; }
.dc7-aide-why { font-size: 14px; color: #334155; margin: 8px 0; }
.dc7-annexes { display: grid; gap: 8px; margin-bottom: 12px; }
.dc7-annexe { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; padding: 8px 12px; font-size: 14px; line-height: 1.4; }
.dc7-annexe p { margin: 4px 0 0; }
.dc7-file { display: flex; gap: 6px; justify-content: center; padding: 4px 8px; font-size: 22px; flex-wrap: wrap; }
.dc7-file-u { opacity: .55; transition: transform .4s, opacity .4s; }
.dc7-file-u.ici { opacity: 1; transform: scale(1.25); }
.dc7-file-u.parti { opacity: 1; }
.dc7-doc { padding: 4px; font-size: 15px; line-height: 1.55; }
.dc7-doc-tete { display: flex; flex-direction: column; border-bottom: 2px solid #1d4ed8; margin-bottom: 10px; padding-bottom: 6px; }
.dc7-doc-tete span { font-size: 13px; color: #475569; }
.dc7-fiche-mot { background: #dcfce7; padding: 0 5px; border-radius: 4px; }
.dc7-livre { list-style: none; padding: 0; margin: 0; }
.dc7-livre li { padding: 6px 0; border-bottom: 1px dashed #cbd5e1; }
.dc7-bravo { text-align: center; max-width: 520px; }
.dc7-bravo-score b { font-size: 44px; display: block; }
.dc7-fin { max-width: 760px; background: rgba(255, 255, 255, .97); }
.dc7-fin-profil { background: #eff6ff; border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.dc7-fin-etapes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0; }
.dc7-petit { padding: 6px 10px; border-radius: 999px; border: 2px solid #cbd5e1; background: #fff; font: inherit; cursor: pointer; }
.dc7-tm-notion { margin: 8px 0 14px; font-weight: 700; }
.dc7-accueil-l { text-align: left; margin: 10px 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.dc7-question { background: #f1f5f9; border-radius: 12px; padding: 12px 14px; margin: 6px 0; }
.dc7-question p { margin: 0 0 10px; font-size: 16px; line-height: 1.4; }
.dc7-question p:last-child { margin-bottom: 0; }
.dc7-oui-non { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.dc7-bouton-yn { flex: 1 1 140px; padding: 12px 10px; font: inherit; font-weight: 700; border-radius: 10px; border: 2px solid #94a3b8; background: #fff; cursor: pointer; min-height: 48px; }
.dc7-bouton-yn:hover { border-color: #2563eb; background: #eff6ff; }
.dc7-bouton-yn.faux { border-color: #dc2626; background: #fee2e2; animation: dc7-tremble .45s linear; }
@keyframes dc7-tremble { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-6px) rotate(-1.5deg); } 40% { transform: translateX(6px) rotate(1.5deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.dc7-ligne-ok { margin: 4px 0; font-size: 14px; color: #166534; }
.dc7-moment, .dc7-marche, .dc7-guichet, .dc7-voie, .dc7-scellebtn { color: #1e293b; }
.dc7-bal-legende { font-size: 14px; line-height: 1.4; background: #fef3c7; border-radius: 10px; padding: 8px 12px; margin: 6px 0; }

/* ---------------- Le jeu « Ki i érit ? » (DR1-75) ---------------- */
.dc7-bravo-large { max-width: 760px; }
.dc7-semaine-titre { margin: 12px 0 6px; font-size: 16px; }
.dc7-semaine { display: grid; gap: 6px; margin: 8px 0; text-align: left; }
.dc7-jour { display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "n b s" "n e e"; gap: 2px 10px; align-items: center; background: #f8fafc; border: 2px solid #cbd5e1; border-left-width: 8px; border-radius: 10px; padding: 6px 10px; color: #1e293b; }
.dc7-jour-n { grid-area: n; font-weight: 800; font-size: 14px; white-space: nowrap; }
.dc7-jour b { grid-area: b; font-size: 14px; }
.dc7-jour em { grid-area: e; font-style: normal; font-size: 12px; color: #475569; }
.dc7-slots { grid-area: s; display: inline-flex; gap: 3px; }
.dc7-slots i { width: 11px; height: 16px; border-radius: 3px; background: #e2e8f0; border: 1px solid #cbd5e1; }
.dc7-slots i.on { background: #22c55e; border-color: #15803d; animation: dc7-pose .5s ease-out; }
.dc7-slots i.off { background: #ef4444; border-color: #b91c1c; }
.dc7-jour.ok { border-color: #16a34a; background: #f0fdf4; }
.dc7-jour.moyen { border-color: #d97706; background: #fffbeb; }
.dc7-jour.bouche { border-color: #dc2626; background: #fef2f2; }
.dc7-jour.vide { opacity: .75; border-style: dashed; }
.dc7-jour.ici { box-shadow: 0 0 0 3px #2563eb; }
/* 7. Le grand dossier */
.dc7-chemise { background: #fef9c3; border: 2px solid #ca8a04; border-radius: 4px 14px 14px 14px; padding: 8px 12px; margin: 8px 0 12px; color: #422006; }
.dc7-chemise-tete { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #854d0e; margin-bottom: 4px; }
.dc7-chemise-l { display: grid; grid-template-columns: 190px 1fr; gap: 8px; padding: 3px 0; border-bottom: 1px dashed #ca8a04; font-size: 13px; }
.dc7-chemise-l b { font-weight: 600; color: #a8a29e; }
.dc7-chemise-l.fait b { color: #14532d; animation: dc7-pose .4s ease-out; }
.dc7-chemise-l:last-child { border-bottom: 0; }

/* Fiche « Ce que je retiens » : trous bien visibles, consigne en tête */
.dc7-trous .pdl-trou { min-width: 120px; min-height: 40px; padding: 4px 10px; font-size: 16px; border: 2px dashed #f59e0b; border-radius: 8px; margin: 2px 3px; vertical-align: middle; }
.dc7-trous .pdl-trou.plein { border-style: solid; }
.dc7-trous-consigne { font-size: 14px; font-weight: 700; color: #92400e; background: #fef3c7; border-radius: 10px; padding: 8px 12px; margin: 0 0 6px; }
.dc7-trous .pdl-mot { min-height: 40px; }

/* ---------------- Les mécaniques du chapitre 7 ---------------- */
.dc7-marque.vert { border-color: #15803d; color: #15803d; }

/* 1. Le fil de la personnalité */
.dc7-lg { list-style: none; margin: 8px 0; padding: 0 0 0 10px; }
.dc7-lg-l { position: relative; padding: 0 0 0 22px; border-left: 4px solid #cbd5e1; transition: border-color .6s; }
.dc7-lg-l.pers { border-left-color: #22c55e; }
.dc7-lg-ev { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; width: 100%; text-align: left; font: inherit; font-size: 15px; line-height: 1.4; color: #1e293b; background: #fff; border: 2px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; margin: 5px 0; cursor: pointer; min-height: 48px; }
.dc7-lg-ev:hover:not(:disabled) { border-color: #2563eb; background: #eff6ff; }
.dc7-lg-ev:disabled { cursor: default; }
.dc7-lg-ev.faux { border-color: #dc2626; background: #fee2e2; animation: dc7-tremble .45s linear; }
.dc7-lg-ev.lampe { border-color: #16a34a; background: #f0fdf4; box-shadow: 0 0 0 3px rgba(34,197,94,.35); }
.dc7-lg-pt { flex: none; width: 22px; text-align: center; color: #94a3b8; }
.dc7-lg-t { flex: 1 1 200px; }
.dc7-lg-etq { flex: 1 0 100%; font-size: 13px; font-weight: 800; color: #166534; padding-left: 30px; }
.dc7-lg-aucun { display: block; width: 100%; margin: 6px 0; padding: 10px 12px; font: inherit; font-weight: 700; color: #334155; background: #f1f5f9; border: 2px dashed #94a3b8; border-radius: 10px; cursor: pointer; min-height: 48px; }
.dc7-lg-aucun:hover:not(:disabled) { border-color: #2563eb; }
.dc7-lg-aucun.faux { border-color: #dc2626; background: #fee2e2; animation: dc7-tremble .45s linear; }
.dc7-lg-aucun.bon { border: 2px solid #16a34a; background: #dcfce7; }
.dc7-lg-bande { font-size: 13px; color: #166534; margin: 4px 0; font-weight: 700; }

/* 2. La fiche à compléter */
.dc7-fi-cartes { display: grid; gap: 10px; margin: 8px 0; }
.dc7-fi-carte { border: 2px solid #94a3b8; border-radius: 12px; padding: 8px 10px; background: #f8fafc; color: #1e293b; }
.dc7-fi-carte.dc7-fi-morale { border-color: #7c3aed; background: #faf5ff; }
.dc7-fi-carte.dc7-fi-phys { border-color: #0369a1; background: #f0f9ff; }
.dc7-fi-tete { font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.dc7-fi-case { display: grid; grid-template-columns: 1fr; gap: 1px; width: 100%; text-align: left; font: inherit; color: #1e293b; background: #fff; border: 2px dashed #94a3b8; border-radius: 8px; padding: 6px 10px; margin: 4px 0; min-height: 56px; cursor: default; }
.dc7-fi-case.cible { border-color: #2563eb; cursor: pointer; background: #eff6ff; }
.dc7-fi-case.plein { border-style: solid; border-color: #16a34a; background: #f0fdf4; animation: dc7-pose .4s ease-out; }
.dc7-fi-nom { font-weight: 800; font-size: 14px; }
.dc7-fi-case small { font-size: 12px; color: #475569; line-height: 1.3; }
.dc7-fi-val { font-size: 15px; color: #166534; min-height: 20px; }
.dc7-fi-banque { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.dc7-fi-mention { display: flex; flex-direction: column; text-align: left; font: inherit; font-weight: 700; color: #1e293b; background: #fef3c7; border: 2px solid #f59e0b; border-radius: 10px; padding: 8px 12px; min-height: 48px; cursor: pointer; }
.dc7-fi-mention small { font-weight: 600; font-size: 13px; color: #78350f; text-decoration: underline; }
.dc7-fi-mention.sel { background: #fde68a; box-shadow: 0 0 0 3px #2563eb; }

/* 3. La balance */
.dc7-ba { position: relative; height: 112px; margin: 6px 0 2px; overflow: hidden; }
.dc7-ba-fleau { position: absolute; left: 22%; right: 22%; top: 34px; height: 8px; background: #78350f; border-radius: 4px; transition: transform 1s cubic-bezier(.3,1.4,.5,1); transform-origin: 50% 50%; }
.dc7-ba-pan { position: absolute; top: 6px; padding: 6px 14px; border-radius: 10px; font-size: 12px; font-weight: 800; color: #fff; }
.dc7-ba-pan.g { left: -34px; background: #16a34a; }
.dc7-ba-pan.d { right: -34px; background: #dc2626; }
.dc7-ba-pied { position: absolute; left: calc(50% - 6px); top: 40px; width: 12px; height: 70px; background: #78350f; border-radius: 3px; }
.dc7-ba-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0; }
.dc7-ba-col { border-radius: 10px; padding: 6px 8px; font-size: 13px; color: #1e293b; }
.dc7-ba-col.actif { background: #f0fdf4; border: 2px solid #16a34a; }
.dc7-ba-col.passif { background: #fef2f2; border: 2px solid #dc2626; }
.dc7-ba-col h4 { margin: 0 0 4px; font-size: 12px; }
.dc7-ba-col ul { list-style: none; padding: 0; margin: 0; min-height: 24px; }
.dc7-ba-col li { display: flex; justify-content: space-between; gap: 6px; padding: 2px 0; border-bottom: 1px dotted #94a3b8; animation: dc7-pose .4s ease-out; }
.dc7-ba-col li b { white-space: nowrap; }
.dc7-ba-tot { font-weight: 800; margin-top: 4px; }
.dc7-ba-carte { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px; padding: 8px 12px; margin: 8px 0; color: #1e293b; }
.dc7-ba-carte p { margin: 4px 0 8px; font-size: 16px; }
.dc7-ba-eur { font-weight: 800; color: #b45309; }
.dc7-ba-calc { background: #f1f5f9; border-radius: 12px; padding: 10px 12px; margin: 8px 0; color: #1e293b; }
.dc7-ba-rappel { background: #fef3c7; border-radius: 8px; padding: 6px 10px; font-size: 14px; }
.dc7-ba-saisie { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.dc7-ba-saisie input { width: 130px; font: inherit; font-size: 18px; padding: 6px 8px; border: 2px solid #94a3b8; border-radius: 8px; }

/* 4. Le comptoir des droits */
.dc7-co-caisse { background: #ecfdf5; border: 2px solid #16a34a; border-radius: 10px; padding: 6px 12px; margin: 4px 0 8px; color: #14532d; font-size: 15px; }
.dc7-co-prix { font-size: 15px; color: #92400e; }

/* Jeu : classer, acte, testament */
.dc7-cl-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; }
.dc7-cl-case { display: flex; flex-direction: column; gap: 2px; text-align: left; font: inherit; color: #1e293b; background: #fff; border: 2px solid #94a3b8; border-radius: 10px; padding: 8px 10px; min-height: 64px; cursor: pointer; }
.dc7-cl-case small { font-size: 12px; color: #475569; line-height: 1.3; }
.dc7-cl-case:hover:not(:disabled) { border-color: #2563eb; background: #eff6ff; }
.dc7-cl-case.faux { border-color: #dc2626; background: #fee2e2; animation: dc7-tremble .45s linear; }
.dc7-cl-case.bon { border-color: #16a34a; background: #dcfce7; }
.dc7-cl-nb { color: #16a34a; font-size: 14px; letter-spacing: 2px; min-height: 16px; }
.dc7-acte { background: #fffbeb; border: 1px solid #fcd34d; border-left: 6px solid #f59e0b; border-radius: 10px; padding: 10px 12px; margin: 8px 0; color: #1e293b; }
.dc7-acte-l { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 6px 4px; border-bottom: 1px dashed #d6d3d1; align-items: center; opacity: .6; }
.dc7-acte-l.ici { opacity: 1; background: #fef3c7; border-radius: 6px; box-shadow: 0 0 0 2px #2563eb; }
.dc7-acte-l.fait { opacity: 1; }
.dc7-acte-t { font-size: 15px; display: flex; flex-direction: column; }
.dc7-acte-t small { font-size: 12px; color: #78716c; }
.dc7-acte-cachet { border: 2px solid #15803d; color: #15803d; border-radius: 6px; padding: 1px 8px; font-size: 13px; transform: rotate(-3deg); animation: dc7-tampon .35s cubic-bezier(.2,1.6,.4,1); }
.dc7-acte-q { color: #1d4ed8; font-size: 13px; }
.dc7-acte-v { color: #a8a29e; }
.dc7-te-g { margin: 8px 0; }
.dc7-te-titre { font-weight: 800; font-size: 14px; margin-bottom: 4px; color: #92400e; }
.dc7-te-opt { display: block; width: 100%; text-align: left; font: inherit; font-size: 15px; line-height: 1.35; color: #1e293b; background: #fff; border: 2px solid #cbd5e1; border-radius: 10px; padding: 8px 12px; margin: 4px 0; min-height: 44px; cursor: pointer; }
.dc7-te-opt:hover:not(:disabled) { border-color: #2563eb; }
.dc7-te-opt.sel { border-color: #2563eb; background: #dbeafe; font-weight: 700; }
.dc7-te-feuille { position: relative; background: #fffdf5; border: 1px solid #d6c9a0; border-radius: 6px; padding: 10px 14px 14px; margin: 10px 0; color: #292524; box-shadow: 0 2px 6px rgba(0,0,0,.12); font-family: Georgia, serif; }
.dc7-te-feuille p { font-size: 16px; line-height: 1.5; margin: 6px 0 0; }
.dc7-te-feuille.signe { border-color: #16a34a; }

@media (max-width: 480px) {
  .dc7-chemise-l { grid-template-columns: 1fr; gap: 0; }
  .dc7-jour { grid-template-columns: 52px 1fr; grid-template-areas: "n b" "s s" "e e"; }
  .dc7-ba-cols { grid-template-columns: 1fr; }
  .dc7-lg-l { padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .dc7-ba-fleau { transition: none; }
  .dc7-dossier, .dc7-acte-cachet, .dc7-marque, .dc7-fi-case.plein, .dc7-ba-col li { animation: none; }
}

/* Grand dossier : le rappel des annexes utiles, juste au-dessus des réponses */
.dc7-rappel { margin: 6px 0 10px; padding: 8px 10px; background: #fffbeb; border-left: 4px solid #f59e0b; border-radius: 8px; font-size: 13px; line-height: 1.4; }
.dc7-rappel-a { margin: 0 0 8px; }
.dc7-rappel-a:last-child { margin-bottom: 0; }
/* Petit écran : l'en-tête garde les pastilles et les boutons ; la file des sept pictogrammes et la ligne d'icônes de l'étape disparaissent */
@media (max-width: 600px) {
  .dc7-file, .dc7-fil { display: none; }
}
/* ==== dc7 : fin des styles ==== */
/* ==== skr : debut des styles ==== */
/* « Karo par karo » (ECO1-94) — préfixe skr- (réutilise rvu-, pdl-, stc-grille / stc-pastille) */
.skr-guide{display:flex;gap:12px;align-items:flex-start;background:rgba(255,255,255,.92);border:1px solid #e2e8f0;border-radius:14px;padding:10px 12px;margin:8px 0}
.skr-guide-img{width:64px;height:64px;border-radius:50%;object-fit:cover;flex:none;border:3px solid #2563eb}
.skr-guide small{display:block;color:#475569;font-size:12.5px}
.skr-guide p{margin:6px 0 0;font-size:15.5px;line-height:1.5}
.skr-hud-freq{font-weight:800;font-size:13.5px}
.skr-hud-b{display:flex;gap:6px}
.skr-freq{display:flex;align-items:center;gap:8px;margin:6px 0}
.skr-freq-t{font-weight:800;font-size:13.5px;white-space:nowrap}
.skr-freq-piste{flex:1;height:14px;border-radius:99px;background:#e2e8f0;border:2px solid #475569;overflow:hidden}
.skr-freq-plein{height:100%;background:linear-gradient(90deg,#60a5fa,#2563eb);transition:width .8s cubic-bezier(.2,.8,.2,1)}
/* le mur de l'exposition */
.skr-mur{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin:12px 0}
.skr-cadre{display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px;border:3px solid #92400e;border-radius:6px;background:#fffbeb;text-align:center}
.skr-cadre small{font-size:10.5px;line-height:1.2;color:#475569}
.skr-cadre.ok{background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.skr-mur.grand .skr-cadre small{font-size:11.5px}
.skr-mini{display:grid;grid-template-columns:repeat(6,1fr);gap:1px;width:100%;max-width:64px;aspect-ratio:1/1}
.skr-mini i{display:block;background:#e2e8f0;border-radius:1px}
.skr-mini.plein i{animation:stc-pose .4s ease both}
/* la table de l'atelier */
.skr-table{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin:10px 0}
.skr-carte{position:relative;display:flex;flex-direction:column;gap:3px;align-items:flex-start;text-align:left;font:inherit;color:#1a1430;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:10px;cursor:pointer;transition:transform .15s,border-color .2s}
.skr-carte:hover:not(:disabled){transform:translateY(-2px);border-color:#2563eb}
.skr-carte b{font-size:14.5px}.skr-carte small{font-size:12px;color:#475569}
.skr-carte-n{font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#475569}
.skr-carte-ico{font-size:26px}
.skr-carte.valide{background:#f0fdf4;border-color:#86efac}.skr-carte.revoir{background:#fffbeb;border-color:#fcd34d}.skr-carte.ferme{opacity:.6;cursor:not-allowed}
.skr-carte.final{border-style:dashed;border-color:#2563eb}
.skr-rappel{font-style:italic;font-size:15.5px;margin:8px 0}
.skr-sceau{display:inline-block;border:4px solid;border-radius:8px;padding:4px 14px;font-weight:900;letter-spacing:.06em;transform:rotate(-4deg);animation:pda-tamponne .45s ease}
.skr-sceau.ok{color:#15803d;border-color:#15803d}.skr-sceau.ko{color:#b45309;border-color:#b45309}
.skr-bravo-pan{width:110px;margin:6px auto}
.skr-bravo-pan .skr-mini{max-width:110px}
/* la question « grille » */
.skr-g-corps{display:grid;grid-template-columns:minmax(180px,230px) 1fr;gap:14px;align-items:start;margin:8px 0}
.skr-grille-q:not(:has(.skr-g-panneau)) .skr-g-corps{grid-template-columns:1fr}
.skr-g-compte{font-size:14.5px;padding:5px 10px;border-radius:9px;background:#f1f5f9;border:1px solid #cbd5e1;margin:6px 0;text-align:center}
.skr-g-compte.ok{background:#f0fdf4;border-color:#86efac}.skr-g-compte.trop{background:#fef2f2;border-color:#fca5a5}
.skr-g-lignes{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.skr-g-lignes li{padding:6px 8px;border-radius:10px;border:1px solid #e2e8f0;background:#f8fafc}
.skr-g-lignes li.bon{background:#f0fdf4;border-color:#86efac}.skr-g-lignes li.faux{background:#fef2f2;border-color:#fca5a5}
.skr-g-ligne{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.skr-g-nom{flex:1 1 150px;min-width:0;font-size:14.5px}
.skr-g-pas{display:flex;align-items:center;gap:4px}
.skr-g-bt{font:inherit;font-weight:800;min-width:40px;height:40px;border:2px solid #94a3b8;border-radius:10px;background:#fff;cursor:pointer}
.skr-g-bt:hover:not(:disabled){background:#eff6ff;border-color:#2563eb}.skr-g-bt:disabled{opacity:.5;cursor:default}
.skr-g-val{min-width:46px;text-align:center;font-size:18px}
.skr-g-w{font-size:13.5px;line-height:1.45;margin-top:4px}
.skr-grille-q .rvu-cta:disabled{opacity:1;background:#cbd5e1;color:#1e293b;border:2px dashed #64748b;box-shadow:none}
@media (max-width:560px){
  .skr-mur{grid-template-columns:repeat(4,1fr)}
  .skr-g-corps{grid-template-columns:1fr}
  .skr-g-panneau{max-width:230px;margin:0 auto}
  .skr-table{grid-template-columns:1fr 1fr}
  .skr-g-bt{min-width:38px;height:38px}
  .skr-guide-img{width:52px;height:52px}
}
@media (prefers-reduced-motion:reduce){
  .skr-mini.plein i,.skr-sceau{animation:none}.skr-freq-plein{transition:none}
}
/* ==== skr : fin des styles ==== */
/* ==== stc : debut des styles ==== */
/* Activités courtes d'Éco 1re, chapitre 9 — préfixe stc- (réutilise rvu- du chapitre 6 et pda-missions du chapitre 8) */
.stc-calc{border-radius:10px;padding:8px 12px;font-size:15px;border:1px solid #cbd5e1;background:#f8fafc;margin:8px 0;line-height:1.5}
.stc-calc.faux{background:#fffbeb;border-color:#fcd34d}
/* 1. les cent carreaux */
.stc-coe-corps{display:grid;grid-template-columns:minmax(200px,260px) 1fr;gap:14px;align-items:start;margin:10px 0}
.stc-grille{display:grid;grid-template-columns:repeat(10,1fr);gap:2px;padding:6px;border:3px solid #475569;border-radius:8px;background:#e2e8f0;aspect-ratio:1/1;width:100%}
.stc-grille i{display:block;border-radius:2px;background:#cbd5e1;opacity:.45}
.stc-grille i.pose{opacity:1;animation:stc-pose .4s cubic-bezier(.2,.9,.3,1.2) both}
@keyframes stc-pose{from{transform:scale(.2) translateY(-30px);opacity:0}to{transform:none;opacity:1}}
.stc-postes{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.stc-postes li{display:flex;align-items:center;gap:8px;padding:6px 9px;border-radius:10px;background:#f8fafc;border:1px solid #e2e8f0;font-size:14.5px}
.stc-postes li.fait{background:#f0fdf4;border-color:#86efac}
.stc-pastille{width:16px;height:16px;border-radius:4px;flex:none}
.stc-poste-nom{flex:1;min-width:0}
.stc-poste-val{white-space:nowrap}
/* 2. Engel */
.stc-eng-regl{display:flex;flex-direction:column;gap:4px;margin:8px 0}
.stc-eng-regl input[type=range]{width:100%;height:32px;accent-color:#16a34a}
.stc-eng-ligne{margin:8px 0;display:flex;flex-direction:column;gap:4px}
.stc-eng-nom{font-weight:800;font-size:15px}
.stc-eng-barre{position:relative;height:26px;border-radius:8px;background:#e2e8f0;overflow:hidden;border:1px solid #cbd5e1}
.stc-eng-barre i{position:absolute;left:0;top:0;bottom:0;opacity:.75;transition:width .6s cubic-bezier(.2,.8,.2,1)}
.stc-eng-barre span{position:relative;display:block;padding:3px 10px;font-size:13.5px;font-weight:700;color:#0f172a}
.stc-eng-barre.part{height:26px}
.stc-eng-barre.part i{opacity:.4;background-image:repeating-linear-gradient(45deg,rgba(255,255,255,.5) 0 6px,transparent 6px 12px)}
/* 3. la caisse */
.stc-cai-regl{display:grid;grid-template-columns:auto 1fr;gap:8px 12px;align-items:center;margin:8px 0}
.stc-cai-regl input[type=range]{width:100%;height:32px;accent-color:#d97706}
.stc-cai-caisses{display:flex;flex-wrap:wrap;gap:4px;min-height:44px;margin:8px 0;padding:6px;border:3px solid #475569;border-radius:6px 6px 20px 20px;background:#fffbeb}
.stc-cai-boite{font-size:24px;animation:stc-pose .35s ease both}
.stc-cai-duo{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0}
.stc-cai-bloc{border-radius:12px;padding:8px 12px;border:2px solid #cbd5e1;background:#f8fafc;display:flex;flex-direction:column;gap:2px}
.stc-cai-bloc b{font-size:28px;line-height:1.1;transition:color .3s}
.stc-cai-bloc small{color:#475569}
.stc-cai-bloc.haut{background:#fef2f2;border-color:#fca5a5}.stc-cai-bloc.bas{background:#eff6ff;border-color:#93c5fd}.stc-cai-bloc.vol{background:#f0fdf4;border-color:#86efac}
/* 4. la balance */
.stc-bal-ans{display:flex;gap:8px;margin:8px 0;flex-wrap:wrap}
.stc-bal-prix{font-size:15px;margin:4px 0}
.stc-bal-scene{position:relative;height:190px;margin:8px 0}
.stc-bal-fleau{position:absolute;left:8%;right:8%;top:44px;height:8px;border-radius:4px;background:#475569;transition:transform .7s cubic-bezier(.3,1.4,.4,1);transform-origin:50% 50%}
.stc-bal-plateau{position:absolute;top:4px;width:44%;min-height:70px;transform:translateY(0);display:flex;align-items:flex-end;justify-content:center}
.stc-bal-plateau.g{left:-6%}.stc-bal-plateau.d{right:-6%}
.stc-bal-plateau{border-bottom:6px solid #475569;border-radius:0 0 16px 16px;background:linear-gradient(#fff0,#f1f5f9)}
.stc-bal-fleau .stc-bal-plateau{top:8px}
.stc-bal-ordi{font-size:44px;line-height:1}
.stc-bal-plats{display:flex;flex-wrap:wrap;gap:0;justify-content:center;max-width:100%;font-size:18px}
.stc-bal-plat{animation:stc-pose .3s ease both}
.stc-bal-pied{position:absolute;left:calc(50% - 5px);top:48px;width:10px;height:130px;background:#475569;border-radius:5px}
.stc-bal-pied::after{content:"";position:absolute;left:-30px;right:-30px;bottom:-6px;height:10px;border-radius:5px;background:#475569}
.stc-bal-regl{display:flex;flex-direction:column;gap:4px;margin:8px 0}
.stc-bal-regl input[type=range]{width:100%;height:32px;accent-color:#7c3aed}
@media (max-width:560px){
  .stc-coe-corps{grid-template-columns:1fr}
  .stc-grille{max-width:260px;margin:0 auto}
  .stc-cai-regl{grid-template-columns:1fr}
  .stc-cai-duo{grid-template-columns:1fr}
  .stc-bal-scene{height:200px}
  .stc-bal-ordi{font-size:34px}
  .stc-bal-plats{font-size:14px}
}
@media (prefers-reduced-motion:reduce){
  .stc-grille i.pose,.stc-cai-boite,.stc-bal-plat{animation:none}
  .stc-eng-barre i,.stc-bal-fleau{transition:none}
}
/* ==== stc : fin des styles ==== */
/* ==== pdaka : debut des styles ==== */
/* « Le Kanar » (ECO1-84) — préfixe pdaka- (réutilise rvu-, pdl- et pda- pour la mise en page) */
.pdaka-hud{flex-wrap:wrap}
.pdaka-hud-cred{font-weight:800;font-size:14px}
.pdaka-hud-b{display:flex;gap:6px}
.pdaka-guide{display:flex;gap:12px;align-items:flex-start;background:#fffbeb;border:1px solid #fcd34d;border-radius:14px;padding:10px 12px;margin:8px 0}
.pdaka-guide-ico{font-size:34px;line-height:1}
.pdaka-guide small{display:block;color:#64748b;font-size:12.5px}
.pdaka-guide p{margin:5px 0 0;font-size:15.5px;line-height:1.55}
/* le tableau de liège */
.pdaka-liege{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin:10px 0;padding:16px 12px;background:#c8a26b;background-image:radial-gradient(rgba(120,80,30,.25) 1px,transparent 1.5px);background-size:9px 9px;border:5px solid #8a5a2b;border-radius:12px}
.pdaka-depeche{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;font:inherit;color:#1a1430;background:#fffef6;border:1px solid #d6d3c4;border-radius:3px;padding:18px 12px 10px;cursor:pointer;box-shadow:2px 4px 8px rgba(60,40,10,.35);transition:transform .2s,box-shadow .2s}
.pdaka-depeche:hover:not(:disabled){transform:rotate(0deg) translateY(-3px) !important;box-shadow:3px 8px 14px rgba(60,40,10,.4)}
.pdaka-punaise{position:absolute;top:-8px;left:50%;transform:translateX(-50%);font-size:20px}
.pdaka-depeche-n{font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#64748b}
.pdaka-depeche-ico{font-size:24px}
.pdaka-depeche b{font-size:15px;line-height:1.3}
.pdaka-depeche small{font-size:12.5px;color:#475569;line-height:1.35;font-family:Georgia,"Times New Roman",serif}
.pdaka-depeche.libre{animation:pdaka-bat 2.4s ease-in-out infinite}
.pdaka-depeche.valide{border-color:#16a34a;background:#f0fdf4}
.pdaka-depeche.revoir{border-color:#f59e0b;background:#fffbeb}
.pdaka-depeche.ferme{opacity:.6;cursor:default}
.pdaka-depeche.une{background:#fff7ed;border-color:#fdba74}
@keyframes pdaka-bat{0%,100%{box-shadow:2px 4px 8px rgba(60,40,10,.35)}50%{box-shadow:0 0 0 3px rgba(245,158,11,.55),2px 4px 8px rgba(60,40,10,.35)}}
/* la Une */
.pdaka-une{margin:10px 0;padding:12px 14px;background:#fffef6;border:2px solid #1f2937;border-radius:4px;font-family:Georgia,"Times New Roman",serif}
.pdaka-une-tete{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;border-bottom:3px double #1f2937;padding-bottom:4px;margin-bottom:6px}
.pdaka-une-tete b{font-size:26px;letter-spacing:.12em}.pdaka-une-tete small{color:#64748b;font-size:12.5px}
.pdaka-une-titre{padding:4px 0;border-bottom:1px dotted #94a3b8;font-size:15px;line-height:1.4}
.pdaka-une-titre.ok{font-weight:700;animation:pdaka-imprime .5s ease}
.pdaka-une-titre .attente{color:#94a3b8;font-size:13px;font-style:italic}
.pdaka-une.grand .pdaka-une-titre{font-size:16.5px}
@keyframes pdaka-imprime{from{opacity:0;letter-spacing:.2em}to{opacity:1;letter-spacing:0}}
/* la crédibilité */
.pdaka-cred{display:flex;align-items:center;gap:10px;margin:6px 0 4px;font-size:14px}
.pdaka-cred-t{font-weight:800;white-space:nowrap}
.pdaka-cred-piste{flex:1;height:14px;border-radius:99px;background:#e2e8f0;border:2px solid #475569;overflow:hidden}
.pdaka-cred-plein{height:100%;background:linear-gradient(90deg,#fbbf24,#16a34a);transition:width .8s cubic-bezier(.2,.8,.2,1)}
/* le bilan d'un dossier */
.pdaka-tampon{display:inline-block;border:4px solid;border-radius:10px;padding:4px 16px;font-weight:900;letter-spacing:.08em;transform:rotate(-6deg);margin-bottom:6px;animation:pdaka-tampon .5s ease}
.pdaka-tampon.ok{color:#15803d;border-color:#15803d}.pdaka-tampon.ko{color:#b45309;border-color:#b45309}
@keyframes pdaka-tampon{from{transform:rotate(-6deg) scale(1.8);opacity:0}to{transform:rotate(-6deg) scale(1);opacity:1}}
.pdaka-rappel{background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;padding:10px 14px;font-size:16px;line-height:1.5;font-style:italic}
@media (max-width:560px){
  .pdaka-liege{grid-template-columns:1fr;gap:12px;padding:14px 10px}
  .pdaka-une-tete b{font-size:22px}
}
@media (prefers-reduced-motion:reduce){
  .pdaka-depeche.libre,.pdaka-tampon,.pdaka-une-titre.ok{animation:none}
  .pdaka-cred-plein,.pdaka-depeche{transition:none}
}
/* ==== pdaka : fin des styles ==== */
/* ==== pda : debut des styles ==== */
/* Activités courtes d'Éco 1re, chapitre 8 — préfixe pda- (réutilise les classes rvu- du chapitre 6 pour la mise en page) */
.pda-missions{list-style:none;margin:8px 0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:14.5px}
.pda-missions li{padding:5px 10px;border-radius:9px;background:#f8fafc;border:1px solid #e2e8f0}
.pda-missions li.fait{background:#f0fdf4;border-color:#86efac}
/* 1. le caddie */
.pda-cad-regl{display:grid;grid-template-columns:auto 1fr;gap:8px 12px;align-items:center;margin:8px 0}
.pda-cad-regl input[type=range]{width:100%;height:32px;accent-color:#0f766e}
.pda-cad-scene{margin:10px 0}
.pda-cad-caddie{position:relative;height:46px;border:3px solid #475569;border-radius:6px 6px 22px 22px;background:#e2e8f0;overflow:hidden}
.pda-cad-rempli{height:100%;transition:width .6s cubic-bezier(.2,.8,.2,1),background .3s}
.pda-cad-rempli.haut{background:#86efac}.pda-cad-rempli.bas{background:#fca5a5}.pda-cad-rempli.egal{background:#cbd5e1}
.pda-cad-repere{position:absolute;top:0;bottom:0;border-left:3px dashed #334155}
.pda-cad-repere span{position:absolute;top:2px;left:5px;font-size:12px;font-weight:700;color:#334155;background:rgba(255,255,255,.8);border-radius:6px;padding:0 4px;white-space:nowrap}
.pda-cad-n{margin-top:5px;font-size:16px}
.pda-cad-calc{border-radius:10px;padding:8px 12px;font-size:15.5px;border:1px solid #cbd5e1;background:#f8fafc;margin:6px 0}
.pda-cad-calc.haut{background:#f0fdf4;border-color:#86efac}.pda-cad-calc.bas{background:#fef2f2;border-color:#fca5a5}
/* 2. le panier */
.pda-pan-t td,.pda-pan-t th{vertical-align:middle}
.pda-pan-val{font-size:13.5px;line-height:1.4;animation:pda-ticket .45s ease}
.pda-pan-total th,.pda-pan-total td{background:#fffbeb;border-top:2px solid #f59e0b}
@keyframes pda-ticket{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.pda-pan-indice{margin:10px 0}
.pda-pan-jauge{display:flex;flex-direction:column;gap:6px}
.pda-pan-j0,.pda-pan-j1{border-radius:8px;padding:6px 10px;font-weight:800;font-size:14px;white-space:nowrap;overflow:hidden}
.pda-pan-j0{background:#cbd5e1;width:76.9%}
.pda-pan-j1{background:#fbbf24;transition:width .8s cubic-bezier(.2,.8,.2,1)}
/* 3. les poids */
.pda-poi-budget{display:flex;gap:6px;margin:10px 0}
.pda-poi-poste{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:0;font:inherit;color:#1a1430;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:8px 2px;cursor:pointer;transition:border-color .2s,background .2s}
.pda-poi-poste.sel{border-color:#7c3aed;background:#f5f3ff;box-shadow:0 0 0 3px rgba(124,58,237,.18)}
.pda-poi-poste b{font-size:13.5px;text-align:center;overflow-wrap:anywhere}.pda-poi-poste small{font-size:12px;color:#475569}
.pda-poi-ico{font-size:24px}
.pda-poi-regl{display:flex;flex-direction:column;gap:4px;margin:8px 0}
.pda-poi-regl input[type=range]{width:100%;height:32px;accent-color:#7c3aed}
.pda-poi-effet{background:#faf5ff;border:1px solid #e9d5ff;border-radius:10px;padding:8px 12px;margin:6px 0;font-size:15px}
.pda-poi-jauge{height:14px;border-radius:99px;background:#e2e8f0;border:2px solid #475569;overflow:hidden;margin-top:6px}
.pda-poi-plein{height:100%;background:linear-gradient(90deg,#a78bfa,#7c3aed);transition:width .5s cubic-bezier(.2,.8,.2,1)}
/* 4. le reste à vivre */
.pda-res-menages{display:flex;flex-direction:column;gap:12px;margin:10px 0}
.pda-res-nom{font-weight:800;font-size:14.5px;margin-bottom:4px}
.pda-res-barre{display:flex;height:42px;border-radius:10px;overflow:hidden;border:2px solid #475569;background:#e2e8f0}
.pda-res-cont,.pda-res-reste,.pda-res-plus{display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;white-space:nowrap;overflow:hidden;transition:width .8s cubic-bezier(.2,.8,.2,1)}
.pda-res-cont{background:#fda4af;color:#881337}.pda-res-reste{background:#86efac;color:#14532d}
.pda-res-plus{background:repeating-linear-gradient(45deg,#f43f5e,#f43f5e 6px,#fda4af 6px,#fda4af 12px)}
.pda-res-txt{font-size:13.5px;line-height:1.5;margin-top:4px}
.pda-res-choc{font-size:14px;line-height:1.5;margin-top:3px;color:#881337;animation:pda-ticket .45s ease}
.pda-res-choix{display:flex;gap:10px;flex-wrap:wrap}
/* le verdict du jeu « Le Kanar » (type de question « verdict ») */
.pda-coupure{margin:8px 0;padding:10px 14px;background:#fffbeb;border:2px dashed #b45309;border-radius:6px;font-family:Georgia,"Times New Roman",serif;transform:rotate(-.6deg)}
.pda-coupure p{margin:4px 0 0;font-size:17px;line-height:1.45;font-weight:700}
.pda-coupure-t{font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#92400e;font-family:inherit}
.pda-regle{list-style:none;margin:6px 0;padding:8px 10px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;font-size:13.5px;line-height:1.5;display:flex;flex-direction:column;gap:2px}
.pda-tampons{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0}
.pda-tampon{font:inherit;font-weight:900;font-size:15px;line-height:1.25;border:3px solid;border-radius:10px;padding:12px 6px;background:#fff;cursor:pointer;transition:transform .15s,background .2s}
.pda-tampon:hover:not(:disabled){transform:rotate(-2deg) scale(1.03)}
.pda-t-exact{color:#15803d;border-color:#15803d}.pda-t-faux{color:#b91c1c;border-color:#b91c1c}.pda-t-incomplet{color:#b45309;border-color:#b45309}
.pda-tampon:disabled{cursor:default;opacity:.55}.pda-tampon.bon{opacity:1;background:#f0fdf4;animation:pda-tamponne .45s ease}.pda-tampon.faux{opacity:1;background:#fef2f2}
@keyframes pda-tamponne{from{transform:scale(1.5) rotate(-8deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}
.pda-titre-corrige{background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;padding:8px 12px;font-family:Georgia,"Times New Roman",serif;font-size:16px;line-height:1.45;margin:8px 0}
@media (max-width:560px){
  .pda-cad-regl{grid-template-columns:1fr}
  .pda-poi-budget{display:grid;grid-template-columns:1fr 1fr}
  .pda-poi-poste b{font-size:13px}.pda-poi-poste small{font-size:10.5px}.pda-poi-ico{font-size:20px}
  .pda-res-cont,.pda-res-reste{font-size:11.5px}
  .pda-tampons{grid-template-columns:1fr}
  .pda-pan-t td,.pda-pan-t th{padding:5px 4px;font-size:12.5px}
}
@media (prefers-reduced-motion:reduce){
  .pda-cad-rempli,.pda-pan-j1,.pda-poi-plein,.pda-res-cont,.pda-res-reste,.pda-res-plus,.pda-pan-val,.pda-res-choc,.pda-tampon.bon{transition:none;animation:none}
}
/* ==== pda : fin des styles ==== */
/* ==== ecpal : debut des styles ==== */
/* « Allô, lo budjé ! » (ECO1-74) — préfixe ecpal- (réutilise rvu- et pdl- pour la mise en page) */
.ecpal-hud{flex-wrap:wrap}
.ecpal-hud-direct{display:inline-flex;align-items:center;gap:6px;font-weight:800;font-size:12.5px;letter-spacing:.06em;color:#fecaca}
.ecpal-point{display:inline-block;width:10px;height:10px;border-radius:50%;background:#ef4444;box-shadow:0 0 0 0 rgba(239,68,68,.6);animation:ecpal-clignote 1.6s ease-in-out infinite}
@keyframes ecpal-clignote{0%,100%{box-shadow:0 0 0 0 rgba(239,68,68,.55)}50%{box-shadow:0 0 0 6px rgba(239,68,68,0)}}
.ecpal-hud-aud{font-weight:800;font-size:14px}
.ecpal-hud-b{display:flex;gap:6px}
.ecpal-direct{display:inline-flex;align-items:center;gap:8px;background:#1e293b;color:#fecaca;border-radius:99px;padding:4px 14px;font-weight:800;font-size:12.5px;letter-spacing:.07em;margin-bottom:8px}
.ecpal-eq{display:inline-flex;align-items:flex-end;gap:2px;height:16px;margin-left:6px}
.ecpal-eq i{display:block;width:3px;background:#f87171;border-radius:2px;animation:ecpal-eq 1.1s ease-in-out infinite}
.ecpal-eq i:nth-child(1){animation-delay:-.2s}.ecpal-eq i:nth-child(2){animation-delay:-.7s}.ecpal-eq i:nth-child(3){animation-delay:-.4s}.ecpal-eq i:nth-child(4){animation-delay:-.9s}.ecpal-eq i:nth-child(5){animation-delay:-.1s}
@keyframes ecpal-eq{0%,100%{height:4px}50%{height:16px}}
.ecpal-guide{display:flex;gap:12px;align-items:flex-start;background:#fff7ed;border:1px solid #fed7aa;border-radius:14px;padding:10px 12px;margin:8px 0}
.ecpal-guide-ico{font-size:34px;line-height:1}
.ecpal-guide small{display:block;color:#64748b;font-size:12.5px}
.ecpal-guide p{margin:5px 0 0;font-size:15.5px;line-height:1.55}
.ecpal-standard{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:9px;margin:10px 0}
.ecpal-ligne{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;font:inherit;color:#1a1430;background:#fff;border:2px solid #cbd5e1;border-radius:14px;padding:10px 12px 10px 28px;cursor:pointer;transition:transform .2s,border-color .2s}
.ecpal-ligne:hover:not(:disabled){transform:translateY(-2px);border-color:#9333ea}
.ecpal-voyant{position:absolute;left:10px;top:13px;width:10px;height:10px;border-radius:50%;background:#94a3b8}
.ecpal-ligne.libre .ecpal-voyant{background:#f59e0b;animation:ecpal-clignote 1.4s ease-in-out infinite}
.ecpal-ligne.valide{border-color:#16a34a;background:#f0fdf4}.ecpal-ligne.valide .ecpal-voyant{background:#16a34a}
.ecpal-ligne.revoir{border-color:#f59e0b;background:#fffbeb}.ecpal-ligne.revoir .ecpal-voyant{background:#f59e0b}
.ecpal-ligne.ferme{opacity:.55;cursor:default}
.ecpal-ligne-n{font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#64748b}
.ecpal-ligne-ico{font-size:24px}
.ecpal-ligne b{font-size:15px;line-height:1.3}
.ecpal-ligne small{font-size:12.5px;color:#475569;line-height:1.35}
.ecpal-audimat{display:flex;align-items:center;gap:10px;margin:6px 0 4px;font-size:14px}
.ecpal-audimat-t{font-weight:800;white-space:nowrap}
.ecpal-audimat-piste{flex:1;height:14px;border-radius:99px;background:#e2e8f0;border:2px solid #475569;overflow:hidden}
.ecpal-audimat-plein{height:100%;background:linear-gradient(90deg,#fbbf24,#16a34a);transition:width .8s cubic-bezier(.2,.8,.2,1)}
.ecpal-tampon{display:inline-block;border:4px solid;border-radius:10px;padding:4px 16px;font-weight:900;letter-spacing:.08em;transform:rotate(-6deg);margin-bottom:6px;animation:ecpal-tampon .5s ease}
.ecpal-tampon.ok{color:#15803d;border-color:#15803d}.ecpal-tampon.ko{color:#b45309;border-color:#b45309}
@keyframes ecpal-tampon{from{transform:rotate(-6deg) scale(1.8);opacity:0}to{transform:rotate(-6deg) scale(1);opacity:1}}
.ecpal-rappel{background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;padding:10px 14px;font-size:16px;line-height:1.5;font-style:italic}
@media (max-width:560px){
  .ecpal-standard{grid-template-columns:1fr}
  .ecpal-hud-direct{display:none}
}
@media (prefers-reduced-motion:reduce){
  .ecpal-point,.ecpal-eq i,.ecpal-ligne.libre .ecpal-voyant,.ecpal-tampon{animation:none}
  .ecpal-audimat-plein,.ecpal-ligne{transition:none}
}
/* ==== ecpal : fin des styles ==== */
/* ==== ecp : debut des styles ==== */
/* Activités courtes d'Éco 1re, chapitre 7 — préfixe ecp- (réutilise les classes rvu- du chapitre 6 pour la mise en page) */
.ecp-curs{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.ecp-curs input[type=range]{width:100%;height:32px;accent-color:#9333ea}
.ecp-curs-deux{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ecp-curs-bloc{position:relative;border-radius:12px;padding:8px 12px;display:flex;flex-direction:column;gap:2px;overflow:hidden;border:2px solid #cbd5e1;background:#f8fafc}
.ecp-curs-bloc b{font-size:20px}
.ecp-curs-bloc i{display:block;height:8px;border-radius:5px;margin-top:4px;transition:width .35s ease}
.ecp-curs-bloc.conso i{background:#3b82f6}.ecp-curs-bloc.epar i{background:#16a34a}
/* 1. la tirelire */
.ecp-tir-scene{display:grid;grid-template-columns:150px 1fr;gap:14px;margin:10px 0;align-items:stretch}
.ecp-pile{display:flex;flex-direction:column;height:230px;border:3px solid #475569;border-radius:16px;overflow:hidden;background:#e2e8f0}
.ecp-pile-ep,.ecp-pile-co{display:flex;align-items:center;justify-content:center;font-weight:800;font-size:14px;transition:height .5s cubic-bezier(.2,.8,.2,1);overflow:hidden;white-space:nowrap}
.ecp-pile-ep{background:#86efac;color:#14532d}
.ecp-pile-co{background:#93c5fd;color:#1e3a8a}
.ecp-tir-droite{display:flex;flex-direction:column;gap:8px;justify-content:center}
.ecp-tir-droite input[type=range]{width:100%;height:32px;accent-color:#9333ea}
.ecp-tir-calc{background:#faf5ff;border:1px solid #e9d5ff;border-radius:10px;padding:8px 10px;font-size:14.5px;line-height:1.6}
.ecp-tir-somme{border-top:1px dashed #c4b5fd;margin-top:3px;padding-top:3px}
/* 2. le supplément */
.ecp-sup-barre{margin:8px 0}
.ecp-sup-nom{font-weight:700;font-size:14.5px;margin-bottom:3px}
.ecp-sup-piste{display:flex;height:46px;border-radius:10px;overflow:hidden;border:2px solid #475569;background:#e2e8f0}
.ecp-sup-bloc{border:0;font:inherit;font-weight:800;font-size:13px;cursor:pointer;padding:0 4px;white-space:nowrap;overflow:hidden;color:#1a1430;transition:filter .2s}
.ecp-sup-bloc.base{background:#cbd5e1;border-right:2px solid #fff}
.ecp-sup-bloc.plus{background:repeating-linear-gradient(45deg,#fcd34d,#fcd34d 7px,#fde68a 7px,#fde68a 14px)}
.ecp-sup-bloc.plus.ok{background:#86efac;color:#14532d}
.ecp-sup-bloc:disabled{cursor:default}
.ecp-sup-bloc:hover:not(:disabled){filter:brightness(1.1);outline:3px solid #f59e0b;outline-offset:-3px}
/* 3. ranger : les trois familles restent visibles en bas de l'écran pendant qu'on fait défiler les cartes */
.ecp-ranger .rvu-env-rang{position:sticky;bottom:6px;z-index:3;background:rgba(255,255,255,.97);padding:6px;border-radius:14px;box-shadow:0 -4px 14px rgba(15,23,42,.18)}
/* 4. la baignoire */
.ecp-bai-scene{display:grid;grid-template-columns:110px 160px 1fr;gap:12px;align-items:end;margin:18px 0 10px}
.ecp-bai-robinet{display:flex;flex-direction:column;align-items:center;font-size:12.5px;text-align:center;gap:3px}
.ecp-bai-robinet span{font-size:42px}
.ecp-bai-bac{position:relative;height:170px;border:3px solid #475569;border-top:4px dotted #94a3b8;border-radius:6px 6px 26px 26px;background:#f1f5f9;overflow:hidden}
.ecp-bai-eau{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(#7dd3fc,#38bdf8);transition:height .7s cubic-bezier(.2,.8,.2,1)}
.ecp-bai-niv{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);text-align:center;font-weight:800;font-size:15px;color:#0c4a6e;text-shadow:0 0 6px #fff}
.ecp-bai-note{font-size:14px;line-height:1.5}
.ecp-bai-liste{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;padding:8px 12px;margin:8px 0;display:flex;flex-direction:column;gap:3px;font-size:15px}
.ecp-bai-liste .tot{border-top:1px dashed #86efac;margin-top:3px;padding-top:4px}
@media (max-width:560px){
  .ecp-tir-scene{grid-template-columns:96px 1fr;gap:8px}.ecp-pile{height:200px}.ecp-pile-ep,.ecp-pile-co{font-size:12px}
  .ecp-bai-scene{grid-template-columns:70px 1fr;gap:8px}.ecp-bai-note{grid-column:1 / -1}.ecp-bai-robinet span{font-size:32px}
  .ecp-curs-deux{grid-template-columns:1fr}
  .ecp-ranger .rvu-env-rang{grid-template-columns:repeat(3,1fr);gap:5px}
  .ecp-ranger .rvu-env-enveloppe{padding:6px 3px}.ecp-ranger .rvu-env-enveloppe small{display:none}.ecp-ranger .rvu-env-eico{font-size:22px}.ecp-ranger .rvu-env-enveloppe b{font-size:12.5px}
  .ecp-sup-bloc{font-size:11.5px}
}
@media (prefers-reduced-motion:reduce){
  .ecp-pile-ep,.ecp-pile-co,.ecp-bai-eau,.ecp-curs-bloc i{transition:none}
}
/* ==== ecp : fin des styles ==== */
/* ==== dc6 : debut des styles ==== */
.dc6 { position: relative; }
.dc6-panneau { max-width: 720px; margin-left: auto; margin-right: auto; }
.dc6-panneau-large { max-width: 860px; }
.dc6-photo-ico { display: inline-flex; align-items: center; justify-content: center; font-size: 34px; background: #e2e8f0; border-radius: 50%; width: 56px; height: 56px; flex: none; }
.dc6-perso-img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.dc6-perso-img.dc6-photo-ico { width: 84px; height: 84px; font-size: 44px; }
.dc6-hud-ico { font-size: 26px; }
.dc6-badge-dec { display: inline-block; background: #e0f2fe; color: #075985; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.dc6-badge-note { background: #fef3c7; color: #92400e; }
.dc6-fil { display: flex; gap: 6px; justify-content: center; padding: 6px 0 10px; flex-wrap: wrap; }
.dc6-fil span { opacity: .45; font-size: 18px; padding: 2px 6px; border-radius: 8px; }
.dc6-fil .dc6-fil-fait { opacity: .9; background: rgba(255,255,255,.55); }
.dc6-fil .dc6-fil-ici { opacity: 1; background: #fff; box-shadow: 0 0 0 2px #2563eb; }
.dc6-consigne { font-size: 15px; line-height: 1.45; margin: 4px 0 10px; }
.dc6-prog { font-size: 13px; color: #475569; margin-bottom: 6px; font-weight: 600; }
.dc6-note { font-size: 14px; color: #475569; margin: 8px 0; }

/* Le dossier posé sur le bureau */
.dc6-dossier { position: relative; background: #fffbeb; border: 1px solid #fcd34d; border-left: 6px solid #f59e0b; border-radius: 10px; padding: 12px 14px 12px 16px; margin: 8px 0 12px; box-shadow: 0 3px 8px rgba(0,0,0,.12); animation: dc6-pose .45s ease-out; }
.dc6-dossier p { margin: 4px 0 0; font-size: 16px; line-height: 1.45; color: #1e293b; }
.dc6-dossier-tete { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #b45309; }
.dc6-marque { position: absolute; right: 10px; bottom: 6px; border: 3px solid #b91c1c; color: #b91c1c; font-weight: 900; font-size: 15px; padding: 2px 10px; border-radius: 6px; transform: rotate(-9deg); animation: dc6-tampon .35s cubic-bezier(.2,1.6,.4,1); background: rgba(255,255,255,.6); }
@keyframes dc6-pose { from { opacity: 0; transform: translateY(-14px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes dc6-tampon { from { opacity: 0; transform: scale(2.2) rotate(-20deg); } to { opacity: 1; transform: scale(1) rotate(-9deg); } }

/* Aide, annexes, fiche, file d'attente, fin */
.dc6-aide { margin: 0 0 12px; border: 2px dashed #f59e0b; border-radius: 10px; background: #fffbeb; }
.dc6-aide-btn { width: 100%; text-align: left; background: transparent; border: 0; font: inherit; font-weight: 800; color: #92400e; padding: 10px 12px; cursor: pointer; }
.dc6-aide-corps { padding: 0 12px 12px; font-size: 14px; line-height: 1.45; }
.dc6-aide-o { display: flex; gap: 6px; flex-wrap: wrap; }
.dc6-aide-opt { padding: 8px 12px; font: inherit; border-radius: 8px; border: 2px solid #cbd5e1; background: #fff; cursor: pointer; }
.dc6-aide-opt.bon { border-color: #16a34a; background: #dcfce7; } .dc6-aide-opt.faux { border-color: #dc2626; background: #fee2e2; }
.dc6-aide-why { font-size: 14px; color: #334155; margin: 8px 0; }
.dc6-annexes { display: grid; gap: 8px; margin-bottom: 12px; }
.dc6-annexe { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; padding: 8px 12px; font-size: 14px; line-height: 1.4; }
.dc6-annexe p { margin: 4px 0 0; }
.dc6-file { display: flex; gap: 6px; justify-content: center; padding: 4px 8px; font-size: 22px; flex-wrap: wrap; }
.dc6-file-u { opacity: .55; transition: transform .4s, opacity .4s; }
.dc6-file-u.ici { opacity: 1; transform: scale(1.25); }
.dc6-file-u.parti { opacity: 1; }
.dc6-doc { padding: 4px; font-size: 15px; line-height: 1.55; }
.dc6-doc-tete { display: flex; flex-direction: column; border-bottom: 2px solid #1d4ed8; margin-bottom: 10px; padding-bottom: 6px; }
.dc6-doc-tete span { font-size: 13px; color: #475569; }
.dc6-fiche-mot { background: #dcfce7; padding: 0 5px; border-radius: 4px; }
.dc6-livre { list-style: none; padding: 0; margin: 0; }
.dc6-livre li { padding: 6px 0; border-bottom: 1px dashed #cbd5e1; }
.dc6-bravo { text-align: center; max-width: 520px; }
.dc6-bravo-score b { font-size: 44px; display: block; }
.dc6-fin { max-width: 760px; background: rgba(255, 255, 255, .97); }
.dc6-fin-profil { background: #eff6ff; border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.dc6-fin-etapes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0; }
.dc6-petit { padding: 6px 10px; border-radius: 999px; border: 2px solid #cbd5e1; background: #fff; font: inherit; cursor: pointer; }
.dc6-tm-notion { margin: 8px 0 14px; font-weight: 700; }
.dc6-accueil-l { text-align: left; margin: 10px 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.dc6-question { background: #f1f5f9; border-radius: 12px; padding: 12px 14px; margin: 6px 0; }
.dc6-question p { margin: 0 0 10px; font-size: 16px; line-height: 1.4; }
.dc6-question p:last-child { margin-bottom: 0; }
.dc6-oui-non { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.dc6-bouton-yn { flex: 1 1 140px; padding: 12px 10px; font: inherit; font-weight: 700; border-radius: 10px; border: 2px solid #94a3b8; background: #fff; cursor: pointer; min-height: 48px; }
.dc6-bouton-yn:hover { border-color: #2563eb; background: #eff6ff; }
.dc6-bouton-yn.faux { border-color: #dc2626; background: #fee2e2; animation: dc6-tremble .45s linear; }
@keyframes dc6-tremble { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-6px) rotate(-1.5deg); } 40% { transform: translateX(6px) rotate(1.5deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.dc6-ligne-ok { margin: 4px 0; font-size: 14px; color: #166534; }
.dc6-moment, .dc6-marche, .dc6-guichet, .dc6-voie, .dc6-scellebtn { color: #1e293b; }
.dc6-bal-legende { font-size: 14px; line-height: 1.4; background: #fef3c7; border-radius: 10px; padding: 8px 12px; margin: 6px 0; }

/* 1. Les scellés : la balance d'audience, les quatre moments, les six sceaux de cire */
.dc6-aud-haut { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 8px; }
.dc6-bal { position: relative; width: 150px; height: 70px; flex: none; }
.dc6-bal-pied { position: absolute; left: 50%; bottom: 0; width: 8px; height: 50px; margin-left: -4px; background: #78350f; border-radius: 3px; }
.dc6-bal-pied::after { content: ""; position: absolute; left: -22px; bottom: 0; width: 52px; height: 6px; background: #78350f; border-radius: 3px; }
.dc6-bal-fleau { position: absolute; left: 6px; right: 6px; top: 16px; height: 7px; background: #b45309; border-radius: 4px; transition: transform 1.1s cubic-bezier(.3, 1.3, .5, 1); }
.dc6-bal.penche .dc6-bal-fleau { transform: rotate(-11deg); animation: dc6-oscille 2.4s ease-in-out infinite alternate; }
.dc6-bal.equilibre .dc6-bal-fleau { transform: rotate(0); }
.dc6-bal-plat { position: absolute; top: -2px; width: 40px; height: 40px; margin-left: -20px; border-bottom: 4px solid #b45309; display: flex; align-items: flex-end; justify-content: center; font-size: 22px; }
.dc6-bal-g { left: 0; } .dc6-bal-d { left: 100%; }
.dc6-bal.penche .dc6-bal-plat { transform: rotate(11deg); }
@keyframes dc6-oscille { from { transform: rotate(-12deg); } to { transform: rotate(-9deg); } }
.dc6-bal-cap { flex: 1 1 160px; font-size: 14px; font-weight: 700; color: #92400e; }
.dc6-voy-titre { flex-basis: 100%; font-size: 13px; color: #475569; margin-top: 2px; }
.dc6-voy { display: flex; gap: 6px; flex-basis: 100%; }
.dc6-voy-l { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.dc6-voy-l small { font-size: 11px; line-height: 1.15; color: #334155; }
.dc6-voy-pt { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; border-radius: 50%; background: #1e293b; filter: grayscale(1) opacity(.5); transition: all .4s; }
.dc6-voy-l.on .dc6-voy-pt { background: #fef3c7; filter: none; box-shadow: 0 0 12px 3px rgba(22, 163, 74, .6); border: 2px solid #16a34a; }
.dc6-voy-l.on small { color: #166534; font-weight: 800; }
.dc6-moments { display: grid; gap: 8px; margin: 6px 0; }
.dc6-moment { position: relative; display: flex; align-items: flex-start; gap: 10px; text-align: left; padding: 10px 12px; font: inherit; border: 2px solid #94a3b8; border-radius: 10px; background: #fff; cursor: pointer; line-height: 1.4; min-height: 48px; transition: border-color .3s, background .3s; }
.dc6-moment:hover:not(:disabled) { border-color: #7c3aed; background: #f5f3ff; }
.dc6-moment:disabled { cursor: default; }
.dc6-moment-n { flex: none; display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: #e2e8f0; font-weight: 800; }
.dc6-moment-t { flex: 1 1 auto; padding-right: 8px; }
.dc6-moment.faux { border-color: #dc2626; background: #fee2e2; animation: dc6-tremble .45s linear; }
.dc6-moment.cloche { border-color: #f59e0b; background: #fffbeb; }
.dc6-moment.cloche .dc6-moment-n { background: #f59e0b; color: #fff; }
.dc6-moment.scelle { border-color: #16a34a; background: #f0fdf4; padding-right: 64px; }
.dc6-moment.scelle .dc6-moment-n { background: #16a34a; }
.dc6-sceau { position: absolute; right: 10px; top: 50%; margin-top: -24px; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; background: radial-gradient(circle at 35% 30%, #ef4444, #991b1b); box-shadow: 0 3px 6px rgba(0, 0, 0, .35), inset 0 0 0 3px rgba(255, 255, 255, .25); animation: dc6-sceau .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes dc6-sceau { from { opacity: 0; transform: scale(2.6) rotate(-30deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
.dc6-sceaux { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0; }
.dc6-scellebtn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; font: inherit; border: 2px solid #94a3b8; border-radius: 12px; background: #fff; cursor: pointer; text-align: center; min-height: 84px; }
.dc6-scellebtn:hover { border-color: #7c3aed; background: #f5f3ff; }
.dc6-scellebtn-ico { font-size: 24px; }
.dc6-scellebtn b { font-size: 13px; }
.dc6-scellebtn i { font-style: normal; font-size: 11px; color: #475569; line-height: 1.25; }
.dc6-scellebtn.faux { border-color: #dc2626; background: #fee2e2; animation: dc6-tremble .45s linear; }

/* 2. L'aiguillage : le rail, le wagon, les voies, le quai qui s'allume */
.dc6-rail { margin: 8px 0; }
.dc6-gare { display: flex; gap: 10px; align-items: stretch; }
.dc6-gare-rail { position: relative; flex: none; width: 46px; display: flex; flex-direction: column; align-items: center; }
.dc6-gare-rail::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 6px; margin-left: -3px; background: repeating-linear-gradient(#94a3b8 0 8px, #cbd5e1 8px 14px); border-radius: 3px; }
.dc6-gare-pt { position: relative; margin-top: 8px; width: 14px; height: 14px; border-radius: 50%; background: #0369a1; border: 3px solid #e0f2fe; }
.dc6-wagon { position: relative; margin-top: 4px; font-size: 30px; animation: dc6-roule .9s cubic-bezier(.3, 1, .5, 1); }
@keyframes dc6-roule { from { transform: translateY(-46px); opacity: .3; } to { transform: none; opacity: 1; } }
.dc6-gare-corps { flex: 1 1 auto; min-width: 0; padding: 4px 0 10px; }
.dc6-gare-t { margin: 4px 0 8px; font-size: 16px; line-height: 1.4; }
.dc6-voies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dc6-quais { grid-template-columns: repeat(3, 1fr); }
.dc6-voie { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; font: inherit; border: 2px solid #94a3b8; border-radius: 12px; background: #fff; cursor: pointer; text-align: center; min-height: 76px; }
.dc6-voie:hover { border-color: #0369a1; background: #f0f9ff; transform: translateY(-2px); }
.dc6-voie-ico { font-size: 24px; }
.dc6-voie b { font-size: 14px; }
.dc6-voie i { font-style: normal; font-size: 12px; color: #475569; line-height: 1.25; }
.dc6-voie.faux { border-color: #dc2626; background: #fee2e2; animation: dc6-tremble .45s linear; }
.dc6-quai-allume { display: inline-block; background: #dcfce7; border: 3px solid #16a34a; border-radius: 12px; padding: 10px 14px; font-size: 16px; animation: dc6-allume 1s ease-out; box-shadow: 0 0 14px 3px rgba(22, 163, 74, .45); }
@keyframes dc6-allume { from { opacity: 0; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } to { opacity: 1; } }

/* 3. Les deux guichets : la demande, les guichets, les caisses */
.dc6-demande { background: #fff; border: 2px solid #475569; border-radius: 12px; padding: 10px 14px; margin: 8px 0; box-shadow: 0 3px 8px rgba(0, 0, 0, .15); animation: dc6-pose .4s ease-out; }
.dc6-demande-tete { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #475569; }
.dc6-demande p { margin: 4px 0 0; font-size: 16px; line-height: 1.45; font-weight: 600; }
.dc6-2guichets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 8px 0; }
.dc6-guichet { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; font: inherit; border: 3px solid #94a3b8; border-radius: 14px; background: #fff; cursor: pointer; text-align: center; min-height: 130px; transition: background .3s, border-color .3s, transform .3s; }
.dc6-guichet-0 { border-top: 8px solid #1d4ed8; } .dc6-guichet-1 { border-top: 8px solid #be185d; }
.dc6-guichet:hover:not(:disabled) { background: #f8fafc; transform: translateY(-2px); }
.dc6-guichet:disabled { cursor: default; opacity: .9; }
.dc6-guichet-ico { font-size: 32px; }
.dc6-guichet b { font-size: 15px; }
.dc6-guichet i { font-style: normal; font-size: 12px; color: #475569; line-height: 1.25; }
.dc6-guichet.faux { border-color: #dc2626; background: #fee2e2; animation: dc6-tremble .45s linear; }
.dc6-pile { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 6px; }
.dc6-jeton { background: #e2e8f0; border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; color: #1e293b; animation: dc6-jeton .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes dc6-jeton { from { transform: translateY(-40px) scale(1.5); opacity: 0; } to { transform: none; opacity: 1; } }
.dc6-caisses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 6px 0; }
.dc6-caisse { position: relative; background: #f1f5f9; border-radius: 12px; padding: 8px 10px; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.dc6-caisse b { font-size: 22px; }
.dc6-caisse-etat { border-left: 6px solid #1d4ed8; } .dc6-caisse-vict { border-left: 6px solid #be185d; }
.dc6-gain { position: absolute; right: 10px; bottom: 8px; font-weight: 800; color: #15803d; animation: dc6-gain 1.4s ease-out forwards; }
@keyframes dc6-gain { from { transform: translateY(14px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(-14px); opacity: 0; } }
@keyframes dc6-pose { from { opacity: 0; transform: translateY(-14px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }

/* 4. L'escalier : les marches, le dossier qui monte, les trois lampes */
.dc6-marches { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 10px; }
.dc6-marche { position: relative; display: flex; align-items: center; gap: 8px; width: 62%; padding: 10px 12px; font: inherit; text-align: left; border: 2px solid #94a3b8; border-bottom-width: 6px; border-radius: 10px; background: #f8fafc; cursor: pointer; min-height: 52px; transition: background .3s, border-color .3s; }
.dc6-m0 { margin-left: 0; } .dc6-m1 { margin-left: 12%; } .dc6-m2 { margin-left: 24%; } .dc6-m3 { margin-left: 36%; }
.dc6-marche:hover:not(:disabled) { border-color: #0f766e; background: #f0fdfa; }
.dc6-marche:disabled { cursor: default; }
div.dc6-marche { cursor: default; }
.dc6-marche-ico { font-size: 22px; flex: none; }
.dc6-marche-t { display: flex; flex-direction: column; min-width: 0; }
.dc6-marche-t b { font-size: 14px; }
.dc6-marche-t i { font-style: normal; font-size: 12px; color: #475569; line-height: 1.25; }
.dc6-marche.passee { background: #e2e8f0; }
.dc6-marche.ici { border-color: #0f766e; background: #ccfbf1; }
.dc6-marche.verrou { background: #e2e8f0; border-style: dashed; }
.dc6-marche.faux { border-color: #dc2626; background: #fee2e2; animation: dc6-tremble .45s linear; }
.dc6-dossier-ico { position: absolute; right: 8px; top: -14px; font-size: 26px; animation: dc6-monte .9s cubic-bezier(.3, 1, .5, 1); }
@keyframes dc6-monte { from { transform: translate(-30px, 46px); opacity: .3; } to { transform: none; opacity: 1; } }
.dc6-lampes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 10px; }
.dc6-lampe { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px 10px; font: inherit; background: #1e293b; color: #cbd5e1; border: 3px solid #475569; border-radius: 14px; cursor: pointer; text-align: center; min-height: 104px; transition: background .3s, border-color .3s, box-shadow .3s, color .3s; }
.dc6-lampe-ico { font-size: 26px; filter: grayscale(1) opacity(.55); transition: filter .3s; }
.dc6-lampe b { font-size: 13px; }
.dc6-lampe i { font-style: normal; font-size: 11px; opacity: .85; line-height: 1.25; }
.dc6-lampe em { position: absolute; top: 5px; right: 7px; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: .95; }
.dc6-lampe b { margin-top: 14px; }
.dc6-lampe.allume { background: #fef3c7; color: #422006; border-color: #f59e0b; box-shadow: 0 0 14px 3px rgba(245, 158, 11, .55); }
.dc6-lampe.allume .dc6-lampe-ico { filter: none; }
.dc6-lampe.faux { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .45); animation: dc6-tremble .45s linear; }
.dc6-lampe.juste { border-color: #16a34a; }
.dc6-lampe:disabled { cursor: default; }

@media (max-width: 480px) {
  .dc6-sceaux { grid-template-columns: repeat(2, 1fr); }
  .dc6-voies, .dc6-quais { grid-template-columns: 1fr; }
  .dc6-voie { flex-direction: row; justify-content: flex-start; text-align: left; gap: 10px; min-height: 0; padding: 10px 12px; }
  .dc6-voie b, .dc6-voie i { display: block; }
  .dc6-gare-rail { width: 34px; }
  .dc6-2guichets { gap: 6px; }
  .dc6-guichet { min-height: 120px; padding: 10px 4px; }
  .dc6-guichet b { font-size: 13px; }
  .dc6-caisses { gap: 6px; }
  .dc6-caisse b { font-size: 18px; }
  .dc6-marche { width: 70%; }
  .dc6-m1 { margin-left: 10%; } .dc6-m2 { margin-left: 20%; } .dc6-m3 { margin-left: 30%; }
  .dc6-lampes { gap: 6px; }
  .dc6-lampe { min-height: 96px; padding: 10px 3px 8px; }
  .dc6-lampe b { font-size: 12px; }
  .dc6-moment.scelle { padding-right: 56px; }
  .dc6-sceau { width: 40px; height: 40px; margin-top: -20px; font-size: 20px; }
  .dc6-fil { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .dc6 *, .dc6 *::before, .dc6 *::after { animation: none !important; transition: none !important; }
}
.dc6-accueil { background: rgba(8, 14, 30, .72); padding: 18px 22px; border-radius: 16px; backdrop-filter: blur(3px); }

/* ---------------- Le jeu « Dan lo Palé ! » (DR1-65) ---------------- */
.dc6-bravo-large { max-width: 760px; }
.dc6-semaine-titre { margin: 12px 0 6px; font-size: 16px; }
.dc6-semaine { display: grid; gap: 6px; margin: 8px 0; text-align: left; }
.dc6-jour { display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "n b s" "n e e"; gap: 2px 10px; align-items: center; background: #f8fafc; border: 2px solid #cbd5e1; border-left-width: 8px; border-radius: 10px; padding: 6px 10px; color: #1e293b; }
.dc6-jour-n { grid-area: n; font-weight: 800; font-size: 14px; white-space: nowrap; }
.dc6-jour b { grid-area: b; font-size: 14px; }
.dc6-jour em { grid-area: e; font-style: normal; font-size: 12px; color: #475569; }
.dc6-slots { grid-area: s; display: inline-flex; gap: 3px; }
.dc6-slots i { width: 11px; height: 16px; border-radius: 3px; background: #e2e8f0; border: 1px solid #cbd5e1; }
.dc6-slots i.on { background: #22c55e; border-color: #15803d; animation: dc6-pose .5s ease-out; }
.dc6-slots i.off { background: #ef4444; border-color: #b91c1c; }
.dc6-jour.ok { border-color: #16a34a; background: #f0fdf4; }
.dc6-jour.moyen { border-color: #d97706; background: #fffbeb; }
.dc6-jour.bouche { border-color: #dc2626; background: #fef2f2; }
.dc6-jour.vide { opacity: .75; border-style: dashed; }
.dc6-jour.ici { box-shadow: 0 0 0 3px #2563eb; }

/* 1. Le rôle de la journée */
.dc6-role-tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #1e293b; color: #f1f5f9; border-radius: 10px 10px 0 0; padding: 8px 12px; font-size: 13px; }
.dc6-role-jauge { display: inline-flex; gap: 3px; }
.dc6-role-jauge i { width: 14px; height: 14px; border-radius: 50%; background: #475569; transition: background .4s; }
.dc6-role-jauge i.on { background: #22c55e; }
.dc6-gjs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.dc6-gj { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 6px; font: inherit; color: #1e293b; border: 2px solid #94a3b8; border-radius: 50px / 22px; background: #fff; cursor: pointer; text-align: center; min-height: 66px; transition: transform .2s, border-color .2s, background .2s; }
.dc6-gj:hover:not(:disabled) { border-color: #9a3412; background: #fff7ed; }
.dc6-gj.sel { border-color: #9a3412; background: #ffedd5; transform: translateY(-3px); box-shadow: 0 4px 10px rgba(154, 52, 18, .35); }
.dc6-gj.pris { opacity: .4; }
.dc6-gj:disabled { cursor: default; }
.dc6-gj-ico { font-size: 22px; }
.dc6-gj b { font-size: 12px; line-height: 1.2; }
.dc6-rangs { display: grid; gap: 8px; margin: 6px 0 10px; }
.dc6-rang { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 4px 10px; text-align: left; padding: 10px 12px; font: inherit; color: #1e293b; background: #fffbeb; border: 2px solid #fcd34d; border-left: 6px solid #f59e0b; border-radius: 10px; cursor: pointer; line-height: 1.4; transition: border-color .3s, background .3s; }
.dc6-rang.cible:hover { border-color: #9a3412; background: #fff7ed; }
.dc6-rang-h { font-weight: 800; color: #b45309; font-size: 14px; }
.dc6-rang-sceau { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: #166534; animation: dc6-tampon .4s cubic-bezier(.2, 1.6, .4, 1); }
.dc6-rang.ok { border-color: #16a34a; background: #f0fdf4; cursor: default; }
.dc6-rang.faux { border-color: #dc2626; background: #fee2e2; animation: dc6-tremble .45s linear; }
.dc6-rang:disabled { cursor: default; }

/* 2. Le plan du palais */
.dc6-queue { display: flex; gap: 6px; flex-wrap: wrap; font-size: 22px; margin: 2px 0 8px; }
.dc6-queue span { opacity: .55; padding: 2px 6px; border-radius: 8px; background: rgba(255, 255, 255, .5); }
.dc6-queue .ici { opacity: 1; box-shadow: 0 0 0 2px #9a3412; background: #fff; }
.dc6-queue .parti { opacity: .9; }
.dc6-batiment { display: grid; gap: 6px; margin: 8px 0; border: 3px solid #78716c; border-radius: 12px; padding: 6px; background: #e7e5e4; }
.dc6-etage { display: grid; grid-template-columns: 150px 1fr; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; }
.dc6-etage-civil { background: #e0f2fe; }
.dc6-etage-penal { background: #fce7f3; }
.dc6-etage-annexe { background: #ecfccb; }
.dc6-etage-nom { display: flex; flex-direction: column; font-size: 12px; color: #1e293b; line-height: 1.25; }
.dc6-etage-nom b { font-size: 13px; }
.dc6-etage-nom i { font-style: normal; color: #475569; margin-top: 2px; }
.dc6-salles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dc6-etage-annexe .dc6-salles { grid-template-columns: 1fr; max-width: 240px; }
.dc6-salle { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; font: inherit; color: #1e293b; background: #fff; border: 2px solid #94a3b8; border-bottom-width: 5px; border-radius: 8px; cursor: pointer; text-align: center; min-height: 66px; transition: transform .2s, border-color .2s, background .3s; }
.dc6-salle:hover:not(:disabled) { border-color: #9a3412; background: #fff7ed; transform: translateY(-2px); }
.dc6-salle:disabled { cursor: default; }
.dc6-salle-ico { font-size: 22px; }
.dc6-salle b { font-size: 12px; line-height: 1.2; }
.dc6-salle-nb { font-size: 12px; letter-spacing: -2px; }
.dc6-salle.faux { border-color: #dc2626; background: #fee2e2; animation: dc6-tremble .45s linear; }
.dc6-salle.allume { border-color: #16a34a; background: #dcfce7; box-shadow: 0 0 14px 3px rgba(22, 163, 74, .45); }

/* 3. La frise du procès civil */
.dc6-pers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0; }
.dc6-pers-c { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px; background: #fff; border: 2px solid #94a3b8; border-radius: 12px; text-align: center; color: #1e293b; }
.dc6-pers-c.fait { border-color: #16a34a; background: #f0fdf4; }
.dc6-pers-ico { font-size: 30px; }
.dc6-pers-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.dc6-eti { padding: 8px 10px; font: inherit; font-weight: 700; font-size: 13px; border: 2px solid #94a3b8; border-radius: 999px; background: #f8fafc; cursor: pointer; color: #1e293b; min-height: 40px; }
.dc6-eti:hover { border-color: #9a3412; background: #fff7ed; }
.dc6-eti.faux { border-color: #dc2626; background: #fee2e2; animation: dc6-tremble .45s linear; }
.dc6-pers-eti { font-weight: 800; color: #166534; font-size: 14px; }
.dc6-frise { display: grid; gap: 4px; margin: 8px 0; }
.dc6-frise-case { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; padding: 6px 8px; background: #f1f5f9; border: 2px dashed #94a3b8; border-radius: 10px; color: #1e293b; font-size: 14px; line-height: 1.35; }
.dc6-frise-case.attend { border-color: #9a3412; background: #fff7ed; }
.dc6-frise-case.pleine { border: 2px solid #16a34a; background: #f0fdf4; animation: dc6-pose .4s ease-out; }
.dc6-frise-n { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: #e2e8f0; font-weight: 800; }
.dc6-frise-case.pleine .dc6-frise-n { background: #16a34a; color: #fff; }
.dc6-frise-t { display: flex; flex-direction: column; gap: 2px; }
.dc6-frise-t.vide { color: #94a3b8; }
.dc6-cartes { display: grid; gap: 6px; margin: 6px 0; }
.dc6-carte { text-align: left; padding: 10px 12px; font: inherit; line-height: 1.4; color: #1e293b; background: #fff; border: 2px solid #94a3b8; border-radius: 10px; cursor: pointer; min-height: 48px; }
.dc6-carte:hover { border-color: #9a3412; background: #fff7ed; }
.dc6-carte.sel { border-color: #9a3412; background: #ffedd5; box-shadow: 0 3px 8px rgba(154, 52, 18, .3); }
.dc6-carte.faux { border-color: #dc2626; background: #fee2e2; animation: dc6-tremble .45s linear; }

/* 4. Le dossier pénal : thermomètre, chemise, bulletin */
.dc6-peine { margin-top: 6px !important; font-size: 14px !important; color: #7c2d12 !important; }
.dc6-thermo { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: stretch; margin: 8px 0; }
.dc6-tube { position: relative; width: 26px; margin: 0 auto; border: 3px solid #475569; border-radius: 14px; background: #f1f5f9; overflow: hidden; min-height: 210px; }
.dc6-mercure { position: absolute; left: 0; right: 0; bottom: 0; background: #94a3b8; transition: height 1.2s cubic-bezier(.3, 1.2, .5, 1), background .6s; }
.dc6-mercure-0 { background: #eab308; } .dc6-mercure-1 { background: #f97316; } .dc6-mercure-2 { background: #dc2626; }
.dc6-niveaux { display: grid; gap: 6px; }
.dc6-niveau { display: grid; grid-template-columns: 34px 1fr; grid-template-areas: "i b" "i j"; gap: 0 8px; align-items: center; text-align: left; padding: 10px 12px; font: inherit; color: #1e293b; background: #fff; border: 2px solid #94a3b8; border-left-width: 8px; border-radius: 10px; cursor: pointer; min-height: 66px; transition: background .3s, border-color .3s; }
.dc6-niveau-ico { grid-area: i; font-size: 24px; }
.dc6-niveau b { grid-area: b; font-size: 15px; }
.dc6-niveau i { grid-area: j; font-style: normal; font-size: 13px; color: #166534; font-weight: 700; }
.dc6-nv0 { border-left-color: #eab308; } .dc6-nv1 { border-left-color: #f97316; } .dc6-nv2 { border-left-color: #dc2626; }
.dc6-niveau:hover:not(:disabled) { background: #f8fafc; }
.dc6-niveau:disabled { cursor: default; }
.dc6-niveau.juste { border-color: #16a34a; background: #f0fdf4; }
.dc6-niveau.faux { border-color: #dc2626; background: #fee2e2; animation: dc6-tremble .45s linear; }
.dc6-cases { display: grid; gap: 6px; margin: 8px 0; }
.dc6-case { display: grid; gap: 2px; text-align: left; padding: 8px 12px; font: inherit; color: #1e293b; background: #f1f5f9; border: 2px dashed #94a3b8; border-radius: 10px; cursor: pointer; line-height: 1.35; min-height: 52px; }
.dc6-case b { font-size: 14px; }
.dc6-case span { font-size: 14px; }
.dc6-case .vide { color: #94a3b8; font-size: 12px; }
.dc6-case.cible:hover { border-color: #9a3412; background: #fff7ed; }
.dc6-case.pleine { border: 2px solid #16a34a; background: #f0fdf4; cursor: default; animation: dc6-pose .4s ease-out; }
.dc6-case:disabled { cursor: default; }

/* 7. Le grand dossier */
.dc6-chemise { background: #fef9c3; border: 2px solid #ca8a04; border-radius: 4px 14px 14px 14px; padding: 8px 12px; margin: 8px 0 12px; color: #422006; }
.dc6-chemise-tete { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #854d0e; margin-bottom: 4px; }
.dc6-chemise-l { display: grid; grid-template-columns: 190px 1fr; gap: 8px; padding: 3px 0; border-bottom: 1px dashed #ca8a04; font-size: 13px; }
.dc6-chemise-l b { font-weight: 600; color: #a8a29e; }
.dc6-chemise-l.fait b { color: #14532d; animation: dc6-pose .4s ease-out; }
.dc6-chemise-l:last-child { border-bottom: 0; }

/* Fiche « Ce que je retiens » : trous bien visibles, consigne en tête */
.dc6-trous .pdl-trou { min-width: 120px; min-height: 40px; padding: 4px 10px; font-size: 16px; border: 2px dashed #f59e0b; border-radius: 8px; margin: 2px 3px; vertical-align: middle; }
.dc6-trous .pdl-trou.plein { border-style: solid; }
.dc6-trous-consigne { font-size: 14px; font-weight: 700; color: #92400e; background: #fef3c7; border-radius: 10px; padding: 8px 12px; margin: 0 0 6px; }
.dc6-trous .pdl-mot { min-height: 40px; }

@media (max-width: 480px) {
  .dc6-gjs { grid-template-columns: repeat(2, 1fr); }
  .dc6-etage { grid-template-columns: 1fr; gap: 4px; }
  .dc6-salles { gap: 4px; }
  .dc6-salle b { font-size: 11px; }
  .dc6-pers { gap: 6px; }
  .dc6-thermo { grid-template-columns: 30px 1fr; gap: 8px; }
  .dc6-tube { width: 20px; min-height: 230px; }
  .dc6-chemise-l { grid-template-columns: 1fr; gap: 0; }
  .dc6-jour { grid-template-columns: 52px 1fr; grid-template-areas: "n b" "s s" "e e"; }
}
/* Plan du palais : ce que juge chaque salle, sous son nom */
.dc6-salle-juge { font-size: 10.5px; line-height: 1.25; color: #475569; text-align: center; }
/* Grand dossier : le rappel des annexes utiles, juste au-dessus des réponses */
.dc6-rappel { margin: 6px 0 10px; padding: 8px 10px; background: #fffbeb; border-left: 4px solid #f59e0b; border-radius: 8px; font-size: 13px; line-height: 1.4; }
.dc6-rappel-a { margin: 0 0 8px; }
.dc6-rappel-a:last-child { margin-bottom: 0; }
/* Petit écran : l'en-tête garde les pastilles et les boutons ; la file des sept pictogrammes et la ligne d'icônes de l'étape disparaissent */
@media (max-width: 600px) {
  .dc6-file, .dc6-fil { display: none; }
}
/* ==== dc6 : fin des styles ==== */
/* ==== kig : debut des styles ==== */
/* « Lo Kont lé bon ? » (ECO1-54) — préfixe kig- ; réutilise les classes rvu- du moteur de questions */
.kig-hud-n{font-weight:800;background:rgba(255,255,255,.14);border-radius:99px;padding:3px 10px;font-size:13px}
.kig-hud-b{display:flex;gap:6px}
.kig-guide{display:flex;gap:12px;align-items:flex-start;background:#f0f9ff;border:1px solid #bae6fd;border-radius:14px;padding:10px 12px;margin:10px 0}
.kig-guide-ico{font-size:40px;line-height:1}
.kig-guide b{display:block;font-size:16px}
.kig-guide small{display:block;color:#475569;font-size:12.5px;margin-bottom:4px}
.kig-guide p{margin:4px 0 0;font-size:15.5px;line-height:1.5}
.kig-registre{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:10px 0}
.kig-fiche{position:relative;font:inherit;color:#1a1430;text-align:left;background:#fffdf5;border:2px solid #d6cfae;border-radius:6px 14px 6px 14px;padding:10px 10px 12px;min-height:128px;display:flex;flex-direction:column;gap:3px;cursor:pointer;overflow:hidden;box-shadow:0 3px 8px rgba(80,60,0,.12);transition:transform .15s,border-color .2s}
.kig-fiche:hover:not(:disabled){transform:translateY(-2px) rotate(-.4deg);border-color:#0f766e}
.kig-fiche:disabled{cursor:default;background:#f1f5f9;border-color:#cbd5e1;color:#64748b}
.kig-fiche.ici{border-color:#1d4ed8}
.kig-fiche-n{font-size:11.5px;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.03em}
.kig-fiche-ico{font-size:26px}
.kig-fiche b{font-size:14px;line-height:1.25}
.kig-fiche small{font-size:12px;line-height:1.3;color:#475569}
.kig-fiche.valide{border-color:#16a34a;background:#f7fff9}
.kig-fiche.revoir{border-color:#f59e0b;background:#fffbeb}
.kig-tampon{position:absolute;right:6px;bottom:8px;font-weight:900;font-size:12px;letter-spacing:.06em;border:3px solid;border-radius:6px;padding:1px 6px;transform:rotate(-12deg);opacity:.9;animation:kig-tamponne .45s cubic-bezier(.2,1.6,.4,1) both}
.kig-tampon.ok{color:#15803d;border-color:#15803d}
.kig-tampon.ko{color:#b45309;border-color:#b45309}
@keyframes kig-tamponne{from{opacity:0;transform:rotate(-12deg) scale(2.2)}to{opacity:.9;transform:rotate(-12deg) scale(1)}}
.kig-bravo{text-align:center}
.kig-gros-tampon{display:inline-block;font-weight:900;font-size:30px;letter-spacing:.08em;border:6px solid;border-radius:12px;padding:4px 20px;transform:rotate(-6deg);margin-bottom:8px;animation:kig-tamponne-g .6s cubic-bezier(.2,1.6,.4,1) both}
.kig-gros-tampon.ok{color:#16a34a;border-color:#16a34a}
.kig-gros-tampon.ko{color:#d97706;border-color:#d97706}
@keyframes kig-tamponne-g{from{opacity:0;transform:rotate(-6deg) scale(3)}to{opacity:1;transform:rotate(-6deg) scale(1)}}
@media (max-width:700px){.kig-registre{grid-template-columns:repeat(2,1fr)}}
@media (prefers-reduced-motion:reduce){.kig-tampon,.kig-gros-tampon{animation:none}.kig-fiche{transition:none}}
/* ==== kig : fin des styles ==== */
/* ==== rvu : debut des styles ==== */
/* Activités courtes d'Éco 1re, chapitre 6 — préfixe rvu- */
.rvu-hud{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;background:rgba(15,23,42,.92);color:#fff;font-size:14px}
.rvu-hud button{background:rgba(255,255,255,.12);border:0;color:#fff;border-radius:10px;width:38px;height:38px;font-size:17px;cursor:pointer}
.rvu-fil{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.rvu-fil span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:16px;background:rgba(255,255,255,.35);border:2px solid transparent}
.rvu-fil span.fait{background:#16a34a}
.rvu-fil span.ici{background:#fbbf24;transform:scale(1.15);box-shadow:0 0 0 3px rgba(251,191,36,.35)}
.rvu-fil span.clic{cursor:pointer}
.rvu-titre-etape{color:#fff;font-weight:700;font-size:15px;text-shadow:0 1px 6px rgba(0,0,0,.7);text-align:center}
.rvu-panneau{background:rgba(255,255,255,.97);color:#1a1430;border-radius:18px;padding:16px 18px;max-width:820px;width:100%;box-shadow:0 12px 34px rgba(0,0,0,.28);animation:rvu-entree .4s ease}
@keyframes rvu-entree{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.rvu-badge-dec{display:inline-block;background:#e0f2fe;color:#075985;border-radius:99px;padding:3px 12px;font-size:12.5px;font-weight:700;margin-bottom:8px}
.rvu-ex-titre{font-family:Fraunces,Georgia,serif;font-size:20px;font-weight:700;margin-bottom:6px}
.rvu-q-tete{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.rvu-q-tete .rvu-ex-titre{font-size:15px;margin:0;color:#475569}
.rvu-consigne{margin:6px 0 10px;font-size:16px;line-height:1.5;font-weight:600}
.rvu-rappel{background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;padding:9px 12px;font-size:15px;line-height:1.5;margin:6px 0}
.rvu-note{font-size:14px;color:#475569;margin:8px 0}
.rvu-cta{margin-top:12px}
.rvu-aide{background:#fefce8;border:1px solid #fde68a;border-radius:10px;padding:6px 12px;margin:6px 0}
.rvu-aide summary{cursor:pointer;font-weight:700;color:#854d0e}
.rvu-aide p{margin:8px 0 4px;font-size:15px;line-height:1.5}
.rvu-why{margin-top:10px}
.rvu-bonne{margin-top:6px}
.rvu-ko{color:#92400e;font-weight:600}
/* leçon */
.rvu-lecon-tete{display:flex;align-items:center;justify-content:space-between;color:#475569;font-weight:700;font-size:14px}
.rvu-lecon h3{font-family:Fraunces,Georgia,serif;font-size:23px;margin:6px 0 10px}
.rvu-veut{background:#f0f9ff;border-radius:10px;padding:10px 12px;font-size:16px;line-height:1.5;margin:8px 0}
.rvu-ex{background:#f0fdf4;border-radius:10px;padding:10px 12px;font-size:16px;line-height:1.5;margin:8px 0}
.rvu-cours{background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;padding:10px 12px;margin:8px 0}
.rvu-cours-tete{display:flex;align-items:center;justify-content:space-between}
.rvu-cours ul{margin:6px 0 0;padding:0 0 0 4px;list-style:none;display:flex;flex-direction:column;gap:8px}
.rvu-cours li{font-size:15px;line-height:1.5}
/* questions */
.rvu-opts{display:flex;flex-direction:column;gap:8px;margin:6px 0}
.rvu-opt{font:inherit;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:11px 14px;cursor:pointer;font-size:15.5px;line-height:1.4;color:#1a1430;transition:transform .15s,border-color .15s}
.rvu-opt:hover:not(:disabled){border-color:#0f766e;transform:translateX(2px)}
.rvu-opt.bon{background:#dcfce7;border-color:#16a34a}
.rvu-opt.faux{background:#fee2e2;border-color:#f87171;opacity:.8}
.rvu-opt:disabled{cursor:default}
.rvu-opt.petit{padding:7px 12px;font-size:14.5px;text-align:center}
.rvu-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0}
.rvu-champ{font:inherit;font-size:18px;padding:9px 12px;border:2px solid #94a3b8;border-radius:10px;width:140px;max-width:100%}
.rvu-unite{font-weight:700}
.rvu-saisie .pdl-cta.petit{margin:0}
.rvu-relier{display:flex;flex-direction:column;gap:10px}
.rvu-rel-l{border:2px solid #e2e8f0;border-radius:12px;padding:9px 12px}
.rvu-rel-l.bon{border-color:#16a34a;background:#f0fdf4}
.rvu-rel-l.faux{border-color:#f59e0b;background:#fffbeb}
.rvu-rel-t{font-size:15.5px;line-height:1.45;margin-bottom:7px}
.rvu-rel-b{display:flex;gap:6px;flex-wrap:wrap}
.rvu-table-cadre{overflow-x:auto;margin:8px 0;max-width:100%}
.rvu-table{border-collapse:collapse;font-size:14.5px;min-width:100%}
.rvu-table th,.rvu-table td{border:1px solid #cbd5e1;padding:6px 9px;text-align:center}
.rvu-table th{background:#f1f5f9;text-align:left}
/* mots de tous les jours, titres de la leçon, légende du circuit */
.rvu-mots{background:#fefce8;border:1px solid #fde68a;border-radius:10px;padding:9px 12px;margin:8px 0;font-size:15px;line-height:1.45}
.rvu-mots ul{margin:5px 0 0;padding-left:18px}
.rvu-cours .rvu-cours-repere{font-size:14.5px;color:#9a3412;margin-top:2px}
.rvu-num{color:#9a3412}
.rvu-legende{list-style:none;margin:4px 0 8px;padding:8px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;font-size:13.5px;line-height:1.4;display:flex;flex-direction:column;gap:3px}
/* accueil et bilan */
.rvu-accueil{background:rgba(255,255,255,.96);color:#1a1430;border-radius:20px;padding:22px 20px;max-width:720px;width:100%;box-shadow:0 18px 50px rgba(0,0,0,.35)}
.rvu-accueil-sur{font-size:12.5px;color:#475569;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.rvu-accueil h1{font-family:Fraunces,Georgia,serif;font-size:30px;margin:6px 0 10px;line-height:1.15}
.rvu-accueil h1 span{display:block;font-size:16px;font-weight:600;color:#0f766e;margin-top:4px}
.rvu-accueil p{font-size:16px;line-height:1.55}
.rvu-accueil-l{list-style:none;padding:0;margin:10px 0;display:flex;flex-direction:column;gap:5px;font-size:15.5px}
.rvu-accueil-btns{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.rvu-bilan h2{font-family:Fraunces,Georgia,serif;margin:0 0 8px}
.rvu-retiens{background:#f0f9ff;border-radius:12px;padding:10px 14px;text-align:left;margin:10px 0}
.rvu-retiens ul{margin:6px 0 0;padding-left:20px;font-size:15.5px;line-height:1.5}
@media (max-width:560px){
  .rvu-prods{grid-template-columns:1fr}
  .rvu-etals{gap:5px}.rvu-etal{padding:7px 3px}.rvu-etal-ico{font-size:28px}.rvu-etal b{font-size:13px}.rvu-etal small{font-size:11.5px}
  .rvu-cases{gap:5px}.rvu-case{min-height:110px}
  .rvu-noeud{width:30%;padding:3px 3px}.rvu-noeud span{font-size:17px}.rvu-noeud b{font-size:10.5px}
  .rvu-gains{grid-template-columns:1fr}
  .rvu-accueil h1{font-size:25px}.rvu-panneau{padding:13px 12px}
}
@media (prefers-reduced-motion:reduce){
  .rvu-icones i,.rvu-pose,.rvu-panneau,.rvu-zone,.rvu-piece,.rvu-bulle{animation:none}
  .rvu-h-pan,.rvu-h-pot,.rvu-gain,.rvu-noeud,.rvu-chip,.rvu-etal{transition:none}
}
.rvu-curseur{display:flex;flex-direction:column;gap:6px;font-size:15px;margin:6px 0}
.rvu-curseur input{width:100%;height:32px;accent-color:#0f766e}
.rvu-opt.sel{border-color:#1d4ed8;background:#dbeafe}
.rvu-choix{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0}
/* 1. la barre des ventes */
.rvu-bar-cadre{background:#f8fafc;border:2px solid #e2e8f0;border-radius:14px;padding:9px 12px;margin:8px 0}
.rvu-bar-tete{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:15px}
.rvu-bar-piste{display:flex;height:38px;border-radius:10px;overflow:hidden;border:2px solid #475569;background:#e2e8f0;margin-top:6px}
.rvu-bar-va{background:#4ade80;color:#14532d;font-weight:800;font-size:13.5px;display:flex;align-items:center;justify-content:center;white-space:nowrap;overflow:hidden;transition:width .8s cubic-bezier(.2,.8,.2,1)}
.rvu-bar-ci{background:repeating-linear-gradient(45deg,#cbd5e1,#cbd5e1 6px,#e2e8f0 6px,#e2e8f0 12px);color:#334155;font-weight:700;font-size:12.5px;display:flex;align-items:center;justify-content:center;white-space:nowrap;overflow:hidden;transition:width .8s cubic-bezier(.2,.8,.2,1)}
.rvu-bar-note{margin-top:6px;font-size:14px;background:#ecfdf5;border-radius:8px;padding:4px 8px}
.rvu-lignes{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.rvu-ligne{border:2px solid #e2e8f0;border-radius:12px;padding:8px 12px}
.rvu-ligne.ci{background:#f1f5f9;border-color:#94a3b8}
.rvu-ligne.va{background:#f0fdf4;border-color:#16a34a}
.rvu-ligne-t{display:flex;align-items:center;gap:8px;font-size:15.5px}
.rvu-ligne-t em{margin-left:auto;font-style:normal;font-weight:800}
.rvu-ligne-b{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}
.rvu-ligne-w{margin:6px 0 0;font-size:14px;line-height:1.4;color:#334155}
/* 2. la filière */
.rvu-fl{display:flex;flex-direction:column;gap:9px;margin:8px 0}
.rvu-fl-l{display:grid;grid-template-columns:150px 1fr;gap:8px;align-items:center}
.rvu-fl-n{display:flex;flex-direction:column;font-size:14px;line-height:1.25}
.rvu-fl-n small{font-size:12px;color:#475569}
.rvu-fl-piste{background:#f1f5f9;border-radius:8px;min-height:34px;overflow:hidden}
.rvu-fl-prod{background:#60a5fa;color:#0c2a5e;font-weight:800;font-size:13px;height:34px;display:flex;align-items:center;padding:0 8px;white-space:nowrap;border-radius:8px;transition:width .6s ease}
.rvu-fl-dec{display:flex;height:34px;border-radius:8px;overflow:hidden;transition:width .6s ease}
.rvu-fl-ci{background:repeating-linear-gradient(45deg,#cbd5e1,#cbd5e1 6px,#e2e8f0 6px,#e2e8f0 12px);font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;white-space:nowrap;overflow:hidden}
.rvu-fl-va{background:#4ade80;color:#14532d;font-weight:800;font-size:13px;display:flex;align-items:center;justify-content:center;white-space:nowrap;overflow:hidden}
.rvu-fl-total{display:flex;flex-direction:column;gap:3px;border-radius:12px;padding:8px 12px;font-size:15px}
.rvu-fl-total.trop{background:#fef2f2;border:2px solid #f87171}
.rvu-fl-total.juste{background:#f0fdf4;border:2px solid #16a34a}
/* 3. les ananas */
.rvu-vol{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.rvu-vol-n{font-size:14px;font-weight:700;margin-bottom:3px}
.rvu-vol-piste{background:#f1f5f9;border-radius:8px;height:30px;overflow:hidden}
.rvu-vol-b{height:30px;border-radius:8px;display:flex;align-items:center;padding:0 8px;font-weight:800;font-size:13.5px;white-space:nowrap;transition:width .5s ease}
.rvu-vol-b.ref{background:#cbd5e1;color:#334155}
.rvu-vol-b.val{background:#fcd34d;color:#78350f}
.rvu-vol-b.vol{background:#a78bfa;color:#2e1065}
/* 4. la piscine */
.rvu-jauge{margin:10px 0}
.rvu-jauge-piste{position:relative;height:36px;border-radius:10px;background:#e2e8f0;border:2px solid #475569;overflow:visible}
.rvu-jauge-plein{height:100%;border-radius:8px;display:flex;align-items:center;justify-content:flex-end;padding:0 8px;font-weight:800;font-size:14px;min-width:34px;transition:width .5s ease,background .3s}
.rvu-jauge-plein.march{background:#4ade80;color:#14532d}
.rvu-jauge-plein.non{background:#fda4af;color:#881337}
.rvu-jauge-50{position:absolute;left:50%;top:-6px;bottom:-6px;width:3px;background:#1e293b}
.rvu-jauge-50 span{position:absolute;top:-20px;left:50%;transform:translateX(-50%);font-size:12.5px;font-weight:800;white-space:nowrap}
.rvu-jauge-plein{white-space:nowrap}
/* le dossier à composer : ajouter, retirer, ignorer (jeu ECO1-54) */
.rvu-comp{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.rvu-comp-l{border:2px solid #e2e8f0;border-radius:12px;padding:8px 12px}
.rvu-comp-l.bon{border-color:#16a34a;background:#f0fdf4}
.rvu-comp-l.faux{border-color:#f59e0b;background:#fffbeb}
.rvu-comp-t{display:flex;justify-content:space-between;gap:10px;font-size:15.5px;line-height:1.4}
.rvu-comp-t em{font-style:normal;font-weight:800;white-space:nowrap}
.rvu-comp-b{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.rvu-comp-w{margin-top:6px;font-size:14px;line-height:1.4;color:#334155}
.rvu-jauge-l{display:flex;justify-content:space-between;font-size:12.5px;color:#475569;margin-top:3px}
.rvu-etiq{display:inline-block;border-radius:99px;padding:5px 14px;font-weight:800;font-size:15px;margin:4px 0}
.rvu-etiq.march{background:#dcfce7;color:#166534}
.rvu-etiq.non{background:#ffe4e6;color:#9f1239}
@media (max-width:560px){
  .rvu-fl-l{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  .rvu-bar-va,.rvu-bar-ci,.rvu-fl-prod,.rvu-fl-dec,.rvu-vol-b,.rvu-jauge-plein{transition:none}
}
/* ---- chapitre 6 : enveloppes, partage de la valeur ajoutée, seaux du barème, balance ---- */
.rvu-env-cartes,.rvu-bal-cartes{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;margin:8px 0}
.rvu-env-carte{display:flex;flex-direction:column;gap:3px;align-items:flex-start;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:8px 10px;cursor:pointer;font:inherit;color:#1a1430;transition:transform .35s,opacity .35s,border-color .2s}
.rvu-env-carte:hover:not(:disabled){border-color:#0f766e}
.rvu-env-carte.sel{border-color:#f59e0b;background:#fffbeb;transform:translateY(-3px);box-shadow:0 6px 14px rgba(245,158,11,.35)}
.rvu-env-carte.envolee{opacity:.35;transform:scale(.94);cursor:default}
.rvu-env-ico{font-size:22px}.rvu-env-txt{font-size:14px;line-height:1.35}.rvu-env-carte b{font-size:14px;color:#0f172a}
.rvu-env-rang{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:10px 0}
.rvu-env-enveloppe{display:flex;flex-direction:column;align-items:center;gap:3px;background:#f8fafc;border:3px dashed #94a3b8;border-radius:14px;padding:10px 8px;cursor:pointer;font:inherit;transition:background .2s,transform .2s}
.rvu-env-enveloppe.pret{background:#fef9c3;animation:rvu-pulse 1.4s ease-in-out infinite}
.rvu-env-enveloppe:hover{transform:translateY(-2px)}
.rvu-env-eico{font-size:28px}.rvu-env-enveloppe small{font-size:13px;color:#475569}
.rvu-agents .rvu-opt.pret{background:#fef9c3}
@keyframes rvu-pulse{0%,100%{box-shadow:0 0 0 0 rgba(245,158,11,.0)}50%{box-shadow:0 0 0 5px rgba(245,158,11,.35)}}
.rvu-pieces{height:46px}
.rvu-piece-va{border:0;border-right:2px solid #fff;color:#fff;font-weight:800;font-size:13px;cursor:pointer;padding:0;transition:filter .2s,transform .3s;min-width:18px}
.rvu-piece-va.sel{filter:brightness(1.25);outline:3px solid #f59e0b;outline-offset:-3px}
.rvu-piece-va.pose{cursor:default;opacity:.8}
.rvu-pieces-l{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:3px;font-size:13.5px}
.rvu-pieces-l i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:6px;vertical-align:middle}
.rvu-pieces-l li.sel{font-weight:800}
.rvu-seaux{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0}
.rvu-seau-col{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.rvu-seau-taux{font-weight:800;font-size:17px;color:#0f172a}
.rvu-seau{position:relative;width:100%;max-width:150px;height:120px;border:3px solid #475569;border-top:0;border-radius:0 0 22px 22px;background:#f1f5f9;overflow:hidden}
.rvu-seau-eau{position:absolute;left:0;right:0;bottom:0;background:#38bdf8;transition:height .55s cubic-bezier(.2,.8,.2,1)}
.rvu-seau-eau.t1{background:#fbbf24}.rvu-seau-eau.t2{background:#f87171}.rvu-seau-eau.t3{background:#a78bfa}
.rvu-seau-l{font-size:12.5px;color:#475569;line-height:1.3}
.rvu-seau-m{font-size:13px}
.rvu-seaux-rev{margin:8px 0}.rvu-seaux-rev input[type=range]{width:100%}
.rvu-seaux-reperes{display:flex;gap:6px;flex-wrap:wrap;margin-top:4px}
.rvu-seaux-total{background:#ecfdf5;border-radius:10px;padding:6px 10px;font-size:15px;margin:6px 0}
.rvu-bal-scene{position:relative;height:190px;margin:10px 0}
.rvu-bal-flau{position:absolute;top:34px;left:4%;right:4%;display:flex;justify-content:space-between;align-items:flex-start;transition:transform .8s cubic-bezier(.3,1.4,.4,1);transform-origin:50% 0}
.rvu-bal-flau:before{content:"";position:absolute;left:8%;right:8%;top:-4px;height:7px;background:#475569;border-radius:4px}
.rvu-bal-plateau{width:44%;display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:6px;padding:10px 6px;background:#fff;border:3px solid #475569;border-radius:0 0 40px 40px;cursor:pointer;font:inherit;color:#1a1430}
.rvu-bal-plateau.g{border-color:#be123c}.rvu-bal-plateau.d{border-color:#15803d}
.rvu-bal-plateau.pret{background:#fef9c3;animation:rvu-pulse 1.4s ease-in-out infinite}
.rvu-bal-plateau span{font-size:18px;font-weight:800}
.rvu-bal-pied{position:absolute;left:50%;top:28px;bottom:0;width:10px;margin-left:-5px;background:#475569;border-radius:5px}
@media (max-width:560px){
  .rvu-seaux{gap:5px}.rvu-seau{height:90px}.rvu-seau-l{font-size:11px}.rvu-seau-m{font-size:11.5px}
  .rvu-bal-plateau{padding:8px 3px}.rvu-bal-plateau span{font-size:15px}
}
@media (prefers-reduced-motion:reduce){
  .rvu-seau-eau,.rvu-bal-flau,.rvu-env-carte,.rvu-piece-va{transition:none}
  .rvu-env-enveloppe.pret,.rvu-bal-plateau.pret{animation:none}
}
/* ==== rvu : fin des styles ==== */
/* ==== dc5 : debut des styles ==== */
.dc5 { position: relative; }
.dc5-panneau { max-width: 720px; margin-left: auto; margin-right: auto; }
.dc5-panneau-large { max-width: 860px; }
.dc5-photo-ico { display: inline-flex; align-items: center; justify-content: center; font-size: 34px; background: #e2e8f0; border-radius: 50%; width: 56px; height: 56px; flex: none; }
.dc5-perso-img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.dc5-perso-img.dc5-photo-ico { width: 84px; height: 84px; font-size: 44px; }
.dc5-hud-ico { font-size: 26px; }
.dc5-badge-dec { display: inline-block; background: #e0f2fe; color: #075985; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.dc5-badge-note { background: #fef3c7; color: #92400e; }
.dc5-fil { display: flex; gap: 6px; justify-content: center; padding: 6px 0 10px; flex-wrap: wrap; }
.dc5-fil span { opacity: .45; font-size: 18px; padding: 2px 6px; border-radius: 8px; }
.dc5-fil .dc5-fil-fait { opacity: .9; background: rgba(255,255,255,.55); }
.dc5-fil .dc5-fil-ici { opacity: 1; background: #fff; box-shadow: 0 0 0 2px #2563eb; }
.dc5-consigne { font-size: 15px; line-height: 1.45; margin: 4px 0 10px; }
.dc5-prog { font-size: 13px; color: #475569; margin-bottom: 6px; font-weight: 600; }
.dc5-note { font-size: 14px; color: #475569; margin: 8px 0; }

/* Le dossier posé sur le bureau */
.dc5-dossier { position: relative; background: #fffbeb; border: 1px solid #fcd34d; border-left: 6px solid #f59e0b; border-radius: 10px; padding: 12px 14px 12px 16px; margin: 8px 0 12px; box-shadow: 0 3px 8px rgba(0,0,0,.12); animation: dc5-pose .45s ease-out; }
.dc5-dossier p { margin: 4px 0 0; font-size: 16px; line-height: 1.45; color: #1e293b; }
.dc5-dossier-tete { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #b45309; }
.dc5-marque { position: absolute; right: 10px; bottom: 6px; border: 3px solid #b91c1c; color: #b91c1c; font-weight: 900; font-size: 15px; padding: 2px 10px; border-radius: 6px; transform: rotate(-9deg); animation: dc5-tampon .35s cubic-bezier(.2,1.6,.4,1); background: rgba(255,255,255,.6); }
@keyframes dc5-pose { from { opacity: 0; transform: translateY(-14px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes dc5-tampon { from { opacity: 0; transform: scale(2.2) rotate(-20deg); } to { opacity: 1; transform: scale(1) rotate(-9deg); } }

/* Aide, annexes, fiche, file d'attente, fin */
.dc5-aide { margin: 0 0 12px; border: 2px dashed #f59e0b; border-radius: 10px; background: #fffbeb; }
.dc5-aide-btn { width: 100%; text-align: left; background: transparent; border: 0; font: inherit; font-weight: 800; color: #92400e; padding: 10px 12px; cursor: pointer; }
.dc5-aide-corps { padding: 0 12px 12px; font-size: 14px; line-height: 1.45; }
.dc5-aide-o { display: flex; gap: 6px; flex-wrap: wrap; }
.dc5-aide-opt { padding: 8px 12px; font: inherit; border-radius: 8px; border: 2px solid #cbd5e1; background: #fff; cursor: pointer; }
.dc5-aide-opt.bon { border-color: #16a34a; background: #dcfce7; } .dc5-aide-opt.faux { border-color: #dc2626; background: #fee2e2; }
.dc5-aide-why { font-size: 14px; color: #334155; margin: 8px 0; }
.dc5-annexes { display: grid; gap: 8px; margin-bottom: 12px; }
.dc5-annexe { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; padding: 8px 12px; font-size: 14px; line-height: 1.4; }
.dc5-annexe p { margin: 4px 0 0; }
.dc5-file { display: flex; gap: 6px; justify-content: center; padding: 4px 8px; font-size: 22px; flex-wrap: wrap; }
.dc5-file-u { opacity: .55; transition: transform .4s, opacity .4s; }
.dc5-file-u.ici { opacity: 1; transform: scale(1.25); }
.dc5-file-u.parti { opacity: 1; }
.dc5-doc { padding: 4px; font-size: 15px; line-height: 1.55; }
.dc5-doc-tete { display: flex; flex-direction: column; border-bottom: 2px solid #1d4ed8; margin-bottom: 10px; padding-bottom: 6px; }
.dc5-doc-tete span { font-size: 13px; color: #475569; }
.dc5-fiche-mot { background: #dcfce7; padding: 0 5px; border-radius: 4px; }
.dc5-livre { list-style: none; padding: 0; margin: 0; }
.dc5-livre li { padding: 6px 0; border-bottom: 1px dashed #cbd5e1; }
.dc5-bravo { text-align: center; max-width: 520px; }
.dc5-bravo-score b { font-size: 44px; display: block; }
.dc5-fin { max-width: 760px; }
.dc5-fin-profil { background: #eff6ff; border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.dc5-fin-etapes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0; }
.dc5-petit { padding: 6px 10px; border-radius: 999px; border: 2px solid #cbd5e1; background: #fff; font: inherit; cursor: pointer; }
.dc5-tm-notion { margin: 8px 0 14px; font-weight: 700; }
.dc5-accueil-l { text-align: left; margin: 10px 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
/* Questions, boutons, choix (communs aux mécaniques) */
.dc5-question { background: #f1f5f9; border-radius: 12px; padding: 12px 14px; margin: 6px 0; }
.dc5-question p { margin: 0 0 10px; font-size: 16px; line-height: 1.4; }
.dc5-question p:last-child { margin-bottom: 0; }
.dc5-oui-non { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.dc5-bouton-yn { flex: 1 1 140px; padding: 12px 10px; font: inherit; font-weight: 700; border-radius: 10px; border: 2px solid #94a3b8; background: #fff; cursor: pointer; min-height: 48px; }
.dc5-bouton-yn:hover { border-color: #2563eb; background: #eff6ff; }
.dc5-bouton-yn.faux { border-color: #dc2626; background: #fee2e2; animation: dc5-tremble .45s linear; }
.dc5-choix4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 6px 0; }
.dc5-choix-n3 { grid-template-columns: 1fr; }
.dc5-choix { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; font: inherit; border-radius: 10px; border: 2px solid #94a3b8; background: #fff; cursor: pointer; min-height: 70px; text-align: center; }
.dc5-choix span { font-size: 24px; }
.dc5-choix b { font-size: 14px; }
.dc5-choix i { font-style: normal; font-size: 12px; color: #475569; }
.dc5-choix:hover:not(:disabled) { border-color: #2563eb; background: #eff6ff; }
.dc5-choix:disabled { cursor: default; }
.dc5-choix.faux { border-color: #dc2626; background: #fee2e2; animation: dc5-tremble .45s linear; }
.dc5-choix.bon { border-color: #16a34a; background: #dcfce7; }
@keyframes dc5-tremble { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-6px) rotate(-1.5deg); } 40% { transform: translateX(6px) rotate(1.5deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }


/* La jauge */
.dc5-jauge-bloc { margin: 34px 0 10px; }
.dc5-jauge-barre { position: relative; height: 34px; background: #e2e8f0; border-radius: 17px; overflow: visible; border: 2px solid #94a3b8; }
.dc5-jauge-zone { position: absolute; top: 0; right: 0; bottom: 0; background: repeating-linear-gradient(45deg, #bbf7d0, #bbf7d0 6px, #dcfce7 6px, #dcfce7 12px); border-radius: 0 15px 15px 0; opacity: .8; }
.dc5-jauge-plein { position: absolute; top: 0; left: 0; bottom: 0; background: #3b82f6; border-radius: 15px; transition: width 1s cubic-bezier(.3,1.2,.5,1), background .5s; }
.dc5-jauge-plein.bon { background: #16a34a; } .dc5-jauge-plein.mauvais { background: #dc2626; }
.dc5-jauge-loi { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 3px solid #78350f; }
.dc5-jauge-loi i { position: absolute; top: -20px; left: 6px; font-style: normal; font-size: 12px; font-weight: 800; color: #78350f; white-space: nowrap; }
.dc5-jauge-legende { display: flex; justify-content: space-between; font-size: 13px; color: #475569; margin-top: 6px; }

/* Les voyants des quatre repères */
.dc5-voyants { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0 12px; }
.dc5-voyant { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px 10px; font: inherit; background: #1e293b; color: #cbd5e1; border: 3px solid #475569; border-radius: 14px; cursor: pointer; text-align: center; min-height: 112px; transition: background .3s, border-color .3s, box-shadow .3s, color .3s; }
.dc5-voyant .dc5-voyant-ico { font-size: 28px; filter: grayscale(1) opacity(.55); transition: filter .3s; }
.dc5-voyant b { font-size: 14px; }
.dc5-voyant i { font-style: normal; font-size: 12px; opacity: .85; line-height: 1.25; }
.dc5-voyant em { position: absolute; top: 6px; right: 8px; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; opacity: .8; }
.dc5-voyant.allume { background: #fef3c7; color: #422006; border-color: #f59e0b; box-shadow: 0 0 14px 3px rgba(245, 158, 11, .55); }
.dc5-voyant.allume .dc5-voyant-ico { filter: none; }
.dc5-voyant.faux { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .45); animation: dc5-tremble .45s linear; }
.dc5-voyant.juste { border-color: #16a34a; }
.dc5-voyant:disabled { cursor: default; }
.dc5-marque-bon { border-color: #15803d; color: #15803d; }

/* Les tiroirs et le tableau */
.dc5-3tiroirs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 12px; }
.dc5-tiroir { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; font: inherit; background: linear-gradient(#fff, #f1f5f9); border: 3px solid #94a3b8; border-radius: 14px 14px 6px 6px; cursor: pointer; min-height: 120px; text-align: center; transition: transform .4s, opacity .4s, background .3s; }
.dc5-tiroir .dc5-tiroir-ico { font-size: 32px; }
.dc5-tiroir b { font-size: 14px; }
.dc5-tiroir i { font-style: normal; font-size: 12px; color: #475569; line-height: 1.25; }
.dc5-tiroir:hover:not(:disabled) { border-color: #0d9488; background: #f0fdfa; transform: translateY(-3px); }
.dc5-tiroir.faux { border-color: #dc2626; background: #fee2e2; animation: dc5-tremble .45s linear; }
.dc5-tiroir.bon { border-color: #16a34a; background: #dcfce7; transform: translateY(-5px) scale(1.03); }
.dc5-tiroir.ferme { opacity: .5; transform: scale(.96); }
.dc5-tiroir:disabled { cursor: default; }
.dc5-tableau { margin: 8px 0 10px; border: 2px solid #cbd5e1; border-radius: 10px; overflow: hidden; font-size: 13px; }
.dc5-tab-l { display: grid; grid-template-columns: 1.2fr 1.3fr 1.3fr 1fr; gap: 6px; padding: 8px 10px; border-bottom: 1px solid #e2e8f0; transition: background .5s; }
.dc5-tab-l:last-child { border-bottom: 0; }
.dc5-tab-t { background: #e2e8f0; font-weight: 800; }
.dc5-tab-l.on { background: #bbf7d0; font-weight: 700; }

/* Les étapes, le tampon et ses animations */
.dc5-ligne-ok { margin: 4px 0; font-size: 14px; color: #166534; }
.dc5-quoi { font-weight: 700; color: #92400e; }
.dc5-marque-acte { border-color: #1d4ed8; color: #1d4ed8; }
.dc5-marque-fait { border-color: #b45309; color: #b45309; }
.dc5-anim { position: relative; height: 54px; margin: 4px 0 8px; overflow: hidden; text-align: center; font-size: 34px; }
.dc5-main-g, .dc5-main-d { position: absolute; top: 4px; }
.dc5-main-g { left: 8%; animation: dc5-mg 1.1s ease-out forwards; }
.dc5-main-d { right: 8%; animation: dc5-md 1.1s ease-out forwards; transform: scaleX(-1); }
@keyframes dc5-mg { from { left: 8%; } to { left: calc(50% - 38px); } }
@keyframes dc5-md { from { right: 8%; } to { right: calc(50% - 38px); } }
.dc5-eclair { display: inline-block; animation: dc5-eclair 1s ease-in forwards; }
@keyframes dc5-eclair { from { transform: translateY(-50px) scale(.6); opacity: 0; } to { transform: translateY(0) scale(1.1); opacity: 1; } }

/* La balance du juge */
.dc5-bal-scene { position: relative; height: 120px; margin: 8px auto 4px; max-width: 420px; }
.dc5-pied { position: absolute; left: 50%; bottom: 0; width: 10px; height: 78px; margin-left: -5px; background: #78350f; border-radius: 4px; }
.dc5-pied::after { content: ""; position: absolute; left: -26px; bottom: 0; width: 62px; height: 8px; background: #78350f; border-radius: 4px; }
.dc5-fleau { position: absolute; left: 6%; right: 6%; top: 18px; height: 8px; background: #b45309; border-radius: 4px; transform-origin: 50% 50%; transition: transform 1.2s cubic-bezier(.3, 1.3, .5, 1); }
.dc5-fleau.penche-droite { transform: rotate(9deg); }
.dc5-fleau.penche-gauche { transform: rotate(-9deg); }
.dc5-plat { position: absolute; top: 4px; width: 64px; height: 64px; margin-left: -32px; border-bottom: 5px solid #b45309; display: flex; align-items: flex-end; justify-content: center; font-size: 30px; transition: transform 1.2s cubic-bezier(.3, 1.3, .5, 1); }
.dc5-plat::before { content: ""; position: absolute; top: -2px; left: 50%; width: 1px; height: 0; }
.dc5-plat-g { left: 0; } .dc5-plat-d { left: 100%; }
.dc5-fleau.penche-droite .dc5-plat { transform: rotate(-9deg); }
.dc5-fleau.penche-gauche .dc5-plat { transform: rotate(9deg); }
.dc5-bal-legende { font-size: 14px; line-height: 1.4; background: #fef3c7; border-radius: 10px; padding: 8px 12px; margin: 6px 0; }
.dc5-2gens { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 8px 0; }
.dc5-gens { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 8px; font: inherit; background: #fff; border: 3px solid #94a3b8; border-radius: 14px; cursor: pointer; text-align: center; min-height: 110px; transition: background .3s, border-color .3s, transform .3s; }
.dc5-gens-ico { font-size: 34px; }
.dc5-gens b { font-size: 15px; }
.dc5-gens i { font-style: normal; font-size: 12px; color: #475569; line-height: 1.25; }
.dc5-gens:hover:not(:disabled) { border-color: #2563eb; background: #eff6ff; transform: translateY(-2px); }
.dc5-gens.faux { border-color: #dc2626; background: #fee2e2; animation: dc5-tremble .45s linear; }
.dc5-gens.bon { border-color: #16a34a; background: #dcfce7; }
.dc5-gens:disabled { cursor: default; }

/* La loupe : fiche, poids, rangement */
.dc5-fiche-l { margin: 6px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.45; color: #1e293b; }
.dc5-poids { display: flex; align-items: center; gap: 5px; margin: 6px 0 10px; }
.dc5-poids span { width: 26px; height: 12px; border-radius: 6px; background: #e2e8f0; border: 1px solid #94a3b8; transition: background .4s; }
.dc5-poids span.plein { background: #f59e0b; border-color: #b45309; }
.dc5-poids b { font-size: 13px; margin-left: 6px; color: #475569; }
.dc5-poids-p { margin: 0; }
.dc5-poids-p span { width: 18px; height: 9px; }
.dc5-rang-l { display: grid; gap: 8px; margin: 8px 0; }
.dc5-rang { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; font: inherit; border: 2px solid #94a3b8; border-radius: 10px; background: #fff; cursor: pointer; min-height: 52px; flex-wrap: wrap; }
.dc5-rang b { flex: 1 1 150px; font-size: 14px; }
.dc5-rang-n { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: #e2e8f0; font-weight: 800; }
.dc5-rang:hover:not(:disabled) { border-color: #0f766e; background: #f0fdfa; }
.dc5-rang.pris { border-color: #16a34a; background: #dcfce7; cursor: default; }
.dc5-rang.pris .dc5-rang-n { background: #16a34a; color: #fff; }
.dc5-rang.faux { border-color: #dc2626; background: #fee2e2; animation: dc5-tremble .45s linear; }

.dc5-options-l { display: grid; gap: 8px; margin: 6px 0; }
.dc5-optl { text-align: left; padding: 12px 14px; font: inherit; border: 2px solid #94a3b8; border-radius: 10px; background: #fff; cursor: pointer; line-height: 1.35; min-height: 48px; }
.dc5-optl:hover:not(:disabled) { border-color: #2563eb; background: #eff6ff; }
.dc5-optl.faux { border-color: #dc2626; background: #fee2e2; animation: dc5-tremble .45s linear; }
.dc5-optl.bon { border-color: #16a34a; background: #dcfce7; }
.dc5-optl:disabled { cursor: default; }

/* L'audience */
.dc5-audience { font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: #9f1239; white-space: nowrap; }
@media (max-width: 480px) {
  .dc5-voyants { gap: 6px; }
  .dc5-voyant { min-height: 100px; padding: 10px 4px 8px; }
  .dc5-voyant b { font-size: 13px; }
  .dc5-voyant i { font-size: 11px; }
  .dc5-file { display: none; }
  .dc5-3tiroirs { grid-template-columns: 1fr; }
  .dc5-tiroir { min-height: 0; flex-direction: row; justify-content: flex-start; text-align: left; gap: 10px; padding: 10px 12px; }
  .dc5-tiroir b, .dc5-tiroir i { display: block; }
  .dc5-tab-l { grid-template-columns: 1fr 1fr; font-size: 12px; }
  .dc5-tab-t { display: none; }
  .dc5-2gens { gap: 6px; }
  .dc5-gens { min-height: 96px; padding: 10px 4px; }
  .dc5-gens b { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .dc5 *, .dc5 *::before, .dc5 *::after { animation: none !important; transition: none !important; }
}
.dc5-accueil { background: rgba(8, 14, 30, .72); padding: 18px 22px; border-radius: 16px; backdrop-filter: blur(3px); }
/* ==== dc5 : fin des styles ==== */
/* ==== bdc : debut des styles ==== */
/* « Lo Kont lé bon ? » (ECO1-54) — préfixe bdc- ; réutilise les classes mpi- du moteur de questions */
.bdc-hud-n{font-weight:800;background:rgba(255,255,255,.14);border-radius:99px;padding:3px 10px;font-size:13px}
.bdc-hud-b{display:flex;gap:6px}
.bdc-guide{display:flex;gap:12px;align-items:flex-start;background:#f0f9ff;border:1px solid #bae6fd;border-radius:14px;padding:10px 12px;margin:10px 0}
.bdc-guide-ico{font-size:40px;line-height:1}
.bdc-guide b{display:block;font-size:16px}
.bdc-guide small{display:block;color:#475569;font-size:12.5px;margin-bottom:4px}
.bdc-guide p{margin:4px 0 0;font-size:15.5px;line-height:1.5}
.bdc-registre{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:10px 0}
.bdc-fiche{position:relative;font:inherit;color:#1a1430;text-align:left;background:#fffdf5;border:2px solid #d6cfae;border-radius:6px 14px 6px 14px;padding:10px 10px 12px;min-height:128px;display:flex;flex-direction:column;gap:3px;cursor:pointer;overflow:hidden;box-shadow:0 3px 8px rgba(80,60,0,.12);transition:transform .15s,border-color .2s}
.bdc-fiche:hover:not(:disabled){transform:translateY(-2px) rotate(-.4deg);border-color:#0f766e}
.bdc-fiche:disabled{cursor:default;background:#f1f5f9;border-color:#cbd5e1;color:#64748b}
.bdc-fiche.ici{border-color:#1d4ed8}
.bdc-fiche-n{font-size:11.5px;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.03em}
.bdc-fiche-ico{font-size:26px}
.bdc-fiche b{font-size:14px;line-height:1.25}
.bdc-fiche small{font-size:12px;line-height:1.3;color:#475569}
.bdc-fiche.valide{border-color:#16a34a;background:#f7fff9}
.bdc-fiche.revoir{border-color:#f59e0b;background:#fffbeb}
.bdc-tampon{position:absolute;right:6px;bottom:8px;font-weight:900;font-size:12px;letter-spacing:.06em;border:3px solid;border-radius:6px;padding:1px 6px;transform:rotate(-12deg);opacity:.9;animation:bdc-tamponne .45s cubic-bezier(.2,1.6,.4,1) both}
.bdc-tampon.ok{color:#15803d;border-color:#15803d}
.bdc-tampon.ko{color:#b45309;border-color:#b45309}
@keyframes bdc-tamponne{from{opacity:0;transform:rotate(-12deg) scale(2.2)}to{opacity:.9;transform:rotate(-12deg) scale(1)}}
.bdc-bravo{text-align:center}
.bdc-gros-tampon{display:inline-block;font-weight:900;font-size:30px;letter-spacing:.08em;border:6px solid;border-radius:12px;padding:4px 20px;transform:rotate(-6deg);margin-bottom:8px;animation:bdc-tamponne-g .6s cubic-bezier(.2,1.6,.4,1) both}
.bdc-gros-tampon.ok{color:#16a34a;border-color:#16a34a}
.bdc-gros-tampon.ko{color:#d97706;border-color:#d97706}
@keyframes bdc-tamponne-g{from{opacity:0;transform:rotate(-6deg) scale(3)}to{opacity:1;transform:rotate(-6deg) scale(1)}}
@media (max-width:700px){.bdc-registre{grid-template-columns:repeat(2,1fr)}}
@media (prefers-reduced-motion:reduce){.bdc-tampon,.bdc-gros-tampon{animation:none}.bdc-fiche{transition:none}}
/* ==== bdc : fin des styles ==== */
/* ==== mpi : debut des styles ==== */
/* Activités courtes d'Éco 1re, chapitre 5 — préfixe mpi- */
.mpi-hud{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;background:rgba(15,23,42,.92);color:#fff;font-size:14px}
.mpi-hud button{background:rgba(255,255,255,.12);border:0;color:#fff;border-radius:10px;width:38px;height:38px;font-size:17px;cursor:pointer}
.mpi-fil{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.mpi-fil span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:16px;background:rgba(255,255,255,.35);border:2px solid transparent}
.mpi-fil span.fait{background:#16a34a}
.mpi-fil span.ici{background:#fbbf24;transform:scale(1.15);box-shadow:0 0 0 3px rgba(251,191,36,.35)}
.mpi-fil span.clic{cursor:pointer}
.mpi-titre-etape{color:#fff;font-weight:700;font-size:15px;text-shadow:0 1px 6px rgba(0,0,0,.7);text-align:center}
.mpi-panneau{background:rgba(255,255,255,.97);color:#1a1430;border-radius:18px;padding:16px 18px;max-width:820px;width:100%;box-shadow:0 12px 34px rgba(0,0,0,.28);animation:mpi-entree .4s ease}
@keyframes mpi-entree{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.mpi-badge-dec{display:inline-block;background:#e0f2fe;color:#075985;border-radius:99px;padding:3px 12px;font-size:12.5px;font-weight:700;margin-bottom:8px}
.mpi-ex-titre{font-family:Fraunces,Georgia,serif;font-size:20px;font-weight:700;margin-bottom:6px}
.mpi-q-tete{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.mpi-q-tete .mpi-ex-titre{font-size:15px;margin:0;color:#475569}
.mpi-consigne{margin:6px 0 10px;font-size:16px;line-height:1.5;font-weight:600}
.mpi-rappel{background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;padding:9px 12px;font-size:15px;line-height:1.5;margin:6px 0}
.mpi-note{font-size:14px;color:#475569;margin:8px 0}
.mpi-cta{margin-top:12px}
.mpi-aide{background:#fefce8;border:1px solid #fde68a;border-radius:10px;padding:6px 12px;margin:6px 0}
.mpi-aide summary{cursor:pointer;font-weight:700;color:#854d0e}
.mpi-aide p{margin:8px 0 4px;font-size:15px;line-height:1.5}
.mpi-why{margin-top:10px}
.mpi-bonne{margin-top:6px}
.mpi-ko{color:#92400e;font-weight:600}
/* leçon */
.mpi-lecon-tete{display:flex;align-items:center;justify-content:space-between;color:#475569;font-weight:700;font-size:14px}
.mpi-lecon h3{font-family:Fraunces,Georgia,serif;font-size:23px;margin:6px 0 10px}
.mpi-veut{background:#f0f9ff;border-radius:10px;padding:10px 12px;font-size:16px;line-height:1.5;margin:8px 0}
.mpi-ex{background:#f0fdf4;border-radius:10px;padding:10px 12px;font-size:16px;line-height:1.5;margin:8px 0}
.mpi-cours{background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;padding:10px 12px;margin:8px 0}
.mpi-cours-tete{display:flex;align-items:center;justify-content:space-between}
.mpi-cours ul{margin:6px 0 0;padding:0 0 0 4px;list-style:none;display:flex;flex-direction:column;gap:8px}
.mpi-cours li{font-size:15px;line-height:1.5}
/* questions */
.mpi-opts{display:flex;flex-direction:column;gap:8px;margin:6px 0}
.mpi-opt{font:inherit;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:11px 14px;cursor:pointer;font-size:15.5px;line-height:1.4;color:#1a1430;transition:transform .15s,border-color .15s}
.mpi-opt:hover:not(:disabled){border-color:#0f766e;transform:translateX(2px)}
.mpi-opt.bon{background:#dcfce7;border-color:#16a34a}
.mpi-opt.faux{background:#fee2e2;border-color:#f87171;opacity:.8}
.mpi-opt:disabled{cursor:default}
.mpi-opt.petit{padding:7px 12px;font-size:14.5px;text-align:center}
.mpi-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0}
.mpi-champ{font:inherit;font-size:18px;padding:9px 12px;border:2px solid #94a3b8;border-radius:10px;width:140px;max-width:100%}
.mpi-unite{font-weight:700}
.mpi-saisie .pdl-cta.petit{margin:0}
.mpi-relier{display:flex;flex-direction:column;gap:10px}
.mpi-rel-l{border:2px solid #e2e8f0;border-radius:12px;padding:9px 12px}
.mpi-rel-l.bon{border-color:#16a34a;background:#f0fdf4}
.mpi-rel-l.faux{border-color:#f59e0b;background:#fffbeb}
.mpi-rel-t{font-size:15.5px;line-height:1.45;margin-bottom:7px}
.mpi-rel-b{display:flex;gap:6px;flex-wrap:wrap}
.mpi-table-cadre{overflow-x:auto;margin:8px 0;max-width:100%}
.mpi-table{border-collapse:collapse;font-size:14.5px;min-width:100%}
.mpi-table th,.mpi-table td{border:1px solid #cbd5e1;padding:6px 9px;text-align:center}
.mpi-table th{background:#f1f5f9;text-align:left}
/* mots de tous les jours, titres de la leçon, légende du circuit */
.mpi-mots{background:#fefce8;border:1px solid #fde68a;border-radius:10px;padding:9px 12px;margin:8px 0;font-size:15px;line-height:1.45}
.mpi-mots ul{margin:5px 0 0;padding-left:18px}
.mpi-cours .mpi-cours-repere{font-size:14.5px;color:#9a3412;margin-top:2px}
.mpi-num{color:#9a3412}
.mpi-legende{list-style:none;margin:4px 0 8px;padding:8px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;font-size:13.5px;line-height:1.4;display:flex;flex-direction:column;gap:3px}
/* accueil et bilan */
.mpi-accueil{background:rgba(255,255,255,.96);color:#1a1430;border-radius:20px;padding:22px 20px;max-width:720px;width:100%;box-shadow:0 18px 50px rgba(0,0,0,.35)}
.mpi-accueil-sur{font-size:12.5px;color:#475569;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.mpi-accueil h1{font-family:Fraunces,Georgia,serif;font-size:30px;margin:6px 0 10px;line-height:1.15}
.mpi-accueil h1 span{display:block;font-size:16px;font-weight:600;color:#0f766e;margin-top:4px}
.mpi-accueil p{font-size:16px;line-height:1.55}
.mpi-accueil-l{list-style:none;padding:0;margin:10px 0;display:flex;flex-direction:column;gap:5px;font-size:15.5px}
.mpi-accueil-btns{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.mpi-bilan h2{font-family:Fraunces,Georgia,serif;margin:0 0 8px}
.mpi-retiens{background:#f0f9ff;border-radius:12px;padding:10px 14px;text-align:left;margin:10px 0}
.mpi-retiens ul{margin:6px 0 0;padding-left:20px;font-size:15.5px;line-height:1.5}
@media (max-width:560px){
  .mpi-prods{grid-template-columns:1fr}
  .mpi-etals{gap:5px}.mpi-etal{padding:7px 3px}.mpi-etal-ico{font-size:28px}.mpi-etal b{font-size:13px}.mpi-etal small{font-size:11.5px}
  .mpi-cases{gap:5px}.mpi-case{min-height:110px}
  .mpi-noeud{width:30%;padding:3px 3px}.mpi-noeud span{font-size:17px}.mpi-noeud b{font-size:10.5px}
  .mpi-gains{grid-template-columns:1fr}
  .mpi-accueil h1{font-size:25px}.mpi-panneau{padding:13px 12px}
}
@media (prefers-reduced-motion:reduce){
  .mpi-icones i,.mpi-pose,.mpi-panneau,.mpi-zone,.mpi-piece,.mpi-bulle{animation:none}
  .mpi-h-pan,.mpi-h-pot,.mpi-gain,.mpi-noeud,.mpi-chip,.mpi-etal{transition:none}
}
.mpi-curseur{display:flex;flex-direction:column;gap:6px;font-size:15px;margin:6px 0}
.mpi-curseur input{width:100%;height:32px;accent-color:#0f766e}
.mpi-opt.sel{border-color:#1d4ed8;background:#dbeafe}
.mpi-choix{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0}
/* 1. la barre des ventes */
.mpi-bar-cadre{background:#f8fafc;border:2px solid #e2e8f0;border-radius:14px;padding:9px 12px;margin:8px 0}
.mpi-bar-tete{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:15px}
.mpi-bar-piste{display:flex;height:38px;border-radius:10px;overflow:hidden;border:2px solid #475569;background:#e2e8f0;margin-top:6px}
.mpi-bar-va{background:#4ade80;color:#14532d;font-weight:800;font-size:13.5px;display:flex;align-items:center;justify-content:center;white-space:nowrap;overflow:hidden;transition:width .8s cubic-bezier(.2,.8,.2,1)}
.mpi-bar-ci{background:repeating-linear-gradient(45deg,#cbd5e1,#cbd5e1 6px,#e2e8f0 6px,#e2e8f0 12px);color:#334155;font-weight:700;font-size:12.5px;display:flex;align-items:center;justify-content:center;white-space:nowrap;overflow:hidden;transition:width .8s cubic-bezier(.2,.8,.2,1)}
.mpi-bar-note{margin-top:6px;font-size:14px;background:#ecfdf5;border-radius:8px;padding:4px 8px}
.mpi-lignes{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.mpi-ligne{border:2px solid #e2e8f0;border-radius:12px;padding:8px 12px}
.mpi-ligne.ci{background:#f1f5f9;border-color:#94a3b8}
.mpi-ligne.va{background:#f0fdf4;border-color:#16a34a}
.mpi-ligne-t{display:flex;align-items:center;gap:8px;font-size:15.5px}
.mpi-ligne-t em{margin-left:auto;font-style:normal;font-weight:800}
.mpi-ligne-b{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}
.mpi-ligne-w{margin:6px 0 0;font-size:14px;line-height:1.4;color:#334155}
/* 2. la filière */
.mpi-fl{display:flex;flex-direction:column;gap:9px;margin:8px 0}
.mpi-fl-l{display:grid;grid-template-columns:150px 1fr;gap:8px;align-items:center}
.mpi-fl-n{display:flex;flex-direction:column;font-size:14px;line-height:1.25}
.mpi-fl-n small{font-size:12px;color:#475569}
.mpi-fl-piste{background:#f1f5f9;border-radius:8px;min-height:34px;overflow:hidden}
.mpi-fl-prod{background:#60a5fa;color:#0c2a5e;font-weight:800;font-size:13px;height:34px;display:flex;align-items:center;padding:0 8px;white-space:nowrap;border-radius:8px;transition:width .6s ease}
.mpi-fl-dec{display:flex;height:34px;border-radius:8px;overflow:hidden;transition:width .6s ease}
.mpi-fl-ci{background:repeating-linear-gradient(45deg,#cbd5e1,#cbd5e1 6px,#e2e8f0 6px,#e2e8f0 12px);font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;white-space:nowrap;overflow:hidden}
.mpi-fl-va{background:#4ade80;color:#14532d;font-weight:800;font-size:13px;display:flex;align-items:center;justify-content:center;white-space:nowrap;overflow:hidden}
.mpi-fl-total{display:flex;flex-direction:column;gap:3px;border-radius:12px;padding:8px 12px;font-size:15px}
.mpi-fl-total.trop{background:#fef2f2;border:2px solid #f87171}
.mpi-fl-total.juste{background:#f0fdf4;border:2px solid #16a34a}
/* 3. les ananas */
.mpi-vol{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.mpi-vol-n{font-size:14px;font-weight:700;margin-bottom:3px}
.mpi-vol-piste{background:#f1f5f9;border-radius:8px;height:30px;overflow:hidden}
.mpi-vol-b{height:30px;border-radius:8px;display:flex;align-items:center;padding:0 8px;font-weight:800;font-size:13.5px;white-space:nowrap;transition:width .5s ease}
.mpi-vol-b.ref{background:#cbd5e1;color:#334155}
.mpi-vol-b.val{background:#fcd34d;color:#78350f}
.mpi-vol-b.vol{background:#a78bfa;color:#2e1065}
/* 4. la piscine */
.mpi-jauge{margin:10px 0}
.mpi-jauge-piste{position:relative;height:36px;border-radius:10px;background:#e2e8f0;border:2px solid #475569;overflow:visible}
.mpi-jauge-plein{height:100%;border-radius:8px;display:flex;align-items:center;justify-content:flex-end;padding:0 8px;font-weight:800;font-size:14px;min-width:34px;transition:width .5s ease,background .3s}
.mpi-jauge-plein.march{background:#4ade80;color:#14532d}
.mpi-jauge-plein.non{background:#fda4af;color:#881337}
.mpi-jauge-50{position:absolute;left:50%;top:-6px;bottom:-6px;width:3px;background:#1e293b}
.mpi-jauge-50 span{position:absolute;top:-20px;left:50%;transform:translateX(-50%);font-size:12.5px;font-weight:800;white-space:nowrap}
.mpi-jauge-plein{white-space:nowrap}
/* le dossier à composer : ajouter, retirer, ignorer (jeu ECO1-54) */
.mpi-comp{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.mpi-comp-l{border:2px solid #e2e8f0;border-radius:12px;padding:8px 12px}
.mpi-comp-l.bon{border-color:#16a34a;background:#f0fdf4}
.mpi-comp-l.faux{border-color:#f59e0b;background:#fffbeb}
.mpi-comp-t{display:flex;justify-content:space-between;gap:10px;font-size:15.5px;line-height:1.4}
.mpi-comp-t em{font-style:normal;font-weight:800;white-space:nowrap}
.mpi-comp-b{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.mpi-comp-w{margin-top:6px;font-size:14px;line-height:1.4;color:#334155}
.mpi-jauge-l{display:flex;justify-content:space-between;font-size:12.5px;color:#475569;margin-top:3px}
.mpi-etiq{display:inline-block;border-radius:99px;padding:5px 14px;font-weight:800;font-size:15px;margin:4px 0}
.mpi-etiq.march{background:#dcfce7;color:#166534}
.mpi-etiq.non{background:#ffe4e6;color:#9f1239}
@media (max-width:560px){
  .mpi-fl-l{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  .mpi-bar-va,.mpi-bar-ci,.mpi-fl-prod,.mpi-fl-dec,.mpi-vol-b,.mpi-jauge-plein{transition:none}
}
/* ==== mpi : fin des styles ==== */
/* ==== dc4 : debut des styles ==== */
.dc4 { position: relative; }
.dc4-panneau { max-width: 720px; margin-left: auto; margin-right: auto; }
.dc4-panneau-large { max-width: 860px; }
.dc4-photo-ico { display: inline-flex; align-items: center; justify-content: center; font-size: 34px; background: #e2e8f0; border-radius: 50%; width: 56px; height: 56px; flex: none; }
.dc4-perso-img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.dc4-perso-img.dc4-photo-ico { width: 84px; height: 84px; font-size: 44px; }
.dc4-hud-ico { font-size: 26px; }
.dc4-badge-dec { display: inline-block; background: #e0f2fe; color: #075985; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.dc4-badge-note { background: #fef3c7; color: #92400e; }
.dc4-fil { display: flex; gap: 6px; justify-content: center; padding: 6px 0 10px; flex-wrap: wrap; }
.dc4-fil span { opacity: .45; font-size: 18px; padding: 2px 6px; border-radius: 8px; }
.dc4-fil .dc4-fil-fait { opacity: .9; background: rgba(255,255,255,.55); }
.dc4-fil .dc4-fil-ici { opacity: 1; background: #fff; box-shadow: 0 0 0 2px #2563eb; }
.dc4-consigne { font-size: 15px; line-height: 1.45; margin: 4px 0 10px; }
.dc4-prog { font-size: 13px; color: #475569; margin-bottom: 6px; font-weight: 600; }
.dc4-note { font-size: 14px; color: #475569; margin: 8px 0; }

/* Le dossier posé sur le bureau */
.dc4-dossier { position: relative; background: #fffbeb; border: 1px solid #fcd34d; border-left: 6px solid #f59e0b; border-radius: 10px; padding: 12px 14px 12px 16px; margin: 8px 0 12px; box-shadow: 0 3px 8px rgba(0,0,0,.12); animation: dc4-pose .45s ease-out; }
.dc4-dossier p { margin: 4px 0 0; font-size: 16px; line-height: 1.45; color: #1e293b; }
.dc4-dossier-tete { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #b45309; }
.dc4-marque { position: absolute; right: 10px; bottom: 6px; border: 3px solid #b91c1c; color: #b91c1c; font-weight: 900; font-size: 15px; padding: 2px 10px; border-radius: 6px; transform: rotate(-9deg); animation: dc4-tampon .35s cubic-bezier(.2,1.6,.4,1); background: rgba(255,255,255,.6); }
@keyframes dc4-pose { from { opacity: 0; transform: translateY(-14px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes dc4-tampon { from { opacity: 0; transform: scale(2.2) rotate(-20deg); } to { opacity: 1; transform: scale(1) rotate(-9deg); } }

/* Aide, annexes, fiche, file d'attente, fin */
.dc4-aide { margin: 0 0 12px; border: 2px dashed #f59e0b; border-radius: 10px; background: #fffbeb; }
.dc4-aide-btn { width: 100%; text-align: left; background: transparent; border: 0; font: inherit; font-weight: 800; color: #92400e; padding: 10px 12px; cursor: pointer; }
.dc4-aide-corps { padding: 0 12px 12px; font-size: 14px; line-height: 1.45; }
.dc4-aide-o { display: flex; gap: 6px; flex-wrap: wrap; }
.dc4-aide-opt { padding: 8px 12px; font: inherit; border-radius: 8px; border: 2px solid #cbd5e1; background: #fff; cursor: pointer; }
.dc4-aide-opt.bon { border-color: #16a34a; background: #dcfce7; } .dc4-aide-opt.faux { border-color: #dc2626; background: #fee2e2; }
.dc4-aide-why { font-size: 14px; color: #334155; margin: 8px 0; }
.dc4-annexes { display: grid; gap: 8px; margin-bottom: 12px; }
.dc4-annexe { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; padding: 8px 12px; font-size: 14px; line-height: 1.4; }
.dc4-annexe p { margin: 4px 0 0; }
.dc4-file { display: flex; gap: 6px; justify-content: center; padding: 4px 8px; font-size: 22px; flex-wrap: wrap; }
.dc4-file-u { opacity: .55; transition: transform .4s, opacity .4s; }
.dc4-file-u.ici { opacity: 1; transform: scale(1.25); }
.dc4-file-u.parti { opacity: 1; }
.dc4-doc { padding: 4px; font-size: 15px; line-height: 1.55; }
.dc4-doc-tete { display: flex; flex-direction: column; border-bottom: 2px solid #1d4ed8; margin-bottom: 10px; padding-bottom: 6px; }
.dc4-doc-tete span { font-size: 13px; color: #475569; }
.dc4-fiche-mot { background: #dcfce7; padding: 0 5px; border-radius: 4px; }
.dc4-livre { list-style: none; padding: 0; margin: 0; }
.dc4-livre li { padding: 6px 0; border-bottom: 1px dashed #cbd5e1; }
.dc4-bravo { text-align: center; max-width: 520px; }
.dc4-bravo-score b { font-size: 44px; display: block; }
.dc4-fin { max-width: 760px; }
.dc4-fin-profil { background: #eff6ff; border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.dc4-fin-etapes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0; }
.dc4-petit { padding: 6px 10px; border-radius: 999px; border: 2px solid #cbd5e1; background: #fff; font: inherit; cursor: pointer; }
.dc4-tm-notion { margin: 8px 0 14px; font-weight: 700; }
.dc4-accueil-l { text-align: left; margin: 10px 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
/* Questions, boutons, choix (communs aux mécaniques) */
.dc4-question { background: #f1f5f9; border-radius: 12px; padding: 12px 14px; margin: 6px 0; }
.dc4-question p { margin: 0 0 10px; font-size: 16px; line-height: 1.4; }
.dc4-question p:last-child { margin-bottom: 0; }
.dc4-oui-non { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.dc4-bouton-yn { flex: 1 1 140px; padding: 12px 10px; font: inherit; font-weight: 700; border-radius: 10px; border: 2px solid #94a3b8; background: #fff; cursor: pointer; min-height: 48px; }
.dc4-bouton-yn:hover { border-color: #2563eb; background: #eff6ff; }
.dc4-bouton-yn.faux { border-color: #dc2626; background: #fee2e2; animation: dc4-tremble .45s linear; }
.dc4-choix4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 6px 0; }
.dc4-choix-n3 { grid-template-columns: 1fr; }
.dc4-choix { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; font: inherit; border-radius: 10px; border: 2px solid #94a3b8; background: #fff; cursor: pointer; min-height: 70px; text-align: center; }
.dc4-choix span { font-size: 24px; }
.dc4-choix b { font-size: 14px; }
.dc4-choix i { font-style: normal; font-size: 12px; color: #475569; }
.dc4-choix:hover:not(:disabled) { border-color: #2563eb; background: #eff6ff; }
.dc4-choix:disabled { cursor: default; }
.dc4-choix.faux { border-color: #dc2626; background: #fee2e2; animation: dc4-tremble .45s linear; }
.dc4-choix.bon { border-color: #16a34a; background: #dcfce7; }
@keyframes dc4-tremble { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-6px) rotate(-1.5deg); } 40% { transform: translateX(6px) rotate(1.5deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }


/* La jauge */
.dc4-jauge-bloc { margin: 12px 0 10px; }
.dc4-jauge-barre { position: relative; height: 34px; background: #e2e8f0; border-radius: 17px; overflow: visible; border: 2px solid #94a3b8; }
.dc4-jauge-zone { position: absolute; top: 0; right: 0; bottom: 0; background: repeating-linear-gradient(45deg, #bbf7d0, #bbf7d0 6px, #dcfce7 6px, #dcfce7 12px); border-radius: 0 15px 15px 0; opacity: .8; }
.dc4-jauge-plein { position: absolute; top: 0; left: 0; bottom: 0; background: #3b82f6; border-radius: 15px; transition: width 1s cubic-bezier(.3,1.2,.5,1), background .5s; }
.dc4-jauge-plein.bon { background: #16a34a; } .dc4-jauge-plein.mauvais { background: #dc2626; }
.dc4-jauge-loi { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 3px solid #78350f; }
.dc4-jauge-loi i { position: absolute; top: -20px; left: 6px; font-style: normal; font-size: 12px; font-weight: 800; color: #78350f; white-space: nowrap; }
.dc4-jauge-legende { display: flex; justify-content: space-between; font-size: 13px; color: #475569; margin-top: 6px; }

/* Les voyants des quatre repères */
.dc4-voyants { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0 12px; }
.dc4-voyant { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px 10px; font: inherit; background: #1e293b; color: #cbd5e1; border: 3px solid #475569; border-radius: 14px; cursor: pointer; text-align: center; min-height: 112px; transition: background .3s, border-color .3s, box-shadow .3s, color .3s; }
.dc4-voyant .dc4-voyant-ico { font-size: 28px; filter: grayscale(1) opacity(.55); transition: filter .3s; }
.dc4-voyant b { font-size: 14px; }
.dc4-voyant i { font-style: normal; font-size: 12px; opacity: .85; line-height: 1.25; }
.dc4-voyant em { position: absolute; top: 6px; right: 8px; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; opacity: .8; }
.dc4-voyant.allume { background: #fef3c7; color: #422006; border-color: #f59e0b; box-shadow: 0 0 14px 3px rgba(245, 158, 11, .55); }
.dc4-voyant.allume .dc4-voyant-ico { filter: none; }
.dc4-voyant.faux { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .45); animation: dc4-tremble .45s linear; }
.dc4-voyant.juste { border-color: #16a34a; }
.dc4-voyant:disabled { cursor: default; }
.dc4-marque-bon { border-color: #15803d; color: #15803d; }

/* Toucher dans le texte */
.dc4-texte-tap { font-size: 16px; line-height: 2.3; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px; padding: 12px 14px; margin: 8px 0; }
.dc4-tap { font: inherit; border: 0; border-bottom: 2px dotted #64748b; background: rgba(251, 191, 36, .22); padding: 2px 4px; margin: 0 1px; cursor: pointer; border-radius: 4px; color: inherit; }
.dc4-tap:hover:not(:disabled) { background: #fde68a; }
.dc4-tap.faux { background: #fee2e2; border-bottom-color: #dc2626; animation: dc4-tremble .45s linear; }
.dc4-tap.trouve { background: #bbf7d0; border-bottom: 2px solid #16a34a; font-weight: 700; cursor: default; }
.dc4-tap em { display: inline-block; margin-left: 6px; padding: 0 6px; font-style: normal; font-size: 11px; font-weight: 800; color: #14532d; background: #fff; border-radius: 8px; }

/* Le bilan des dégâts */
.dc4-colonnes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 12px; }
.dc4-colonne { background: #f8fafc; border: 2px solid #cbd5e1; border-radius: 10px; min-height: 96px; padding: 6px 8px; font-size: 13px; }
.dc4-col0 { border-color: #2563eb; } .dc4-col1 { border-color: #dc2626; } .dc4-col2 { border-color: #7c3aed; }
.dc4-col-tete { font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.dc4-colonne ul, .dc4-feuille ol { margin: 0; padding-left: 16px; }
.dc4-colonne li { margin-bottom: 3px; line-height: 1.3; }
.dc4-tombe { animation: dc4-chute .55s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes dc4-chute { from { opacity: 0; transform: translateY(-26px) scale(1.1); } to { opacity: 1; transform: none; } }
.dc4-carte-degat { background: #fff; border: 2px solid #94a3b8; border-radius: 12px; padding: 12px 14px; margin: 6px 0 8px; font-size: 16px; box-shadow: 0 3px 8px rgba(0, 0, 0, .1); animation: dc4-pose .4s ease-out; }
.dc4-saisie { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dc4-saisie input { width: 150px; padding: 10px 12px; font: inherit; font-size: 18px; border: 2px solid #94a3b8; border-radius: 10px; }
.dc4-saisie span { font-weight: 800; font-size: 18px; }

/* Les trois portes et le tableau */
.dc4-3portes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 12px; }
.dc4-porte { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; font: inherit; background: linear-gradient(#fff, #f1f5f9); border: 3px solid #94a3b8; border-radius: 14px 14px 6px 6px; cursor: pointer; min-height: 120px; text-align: center; transition: transform .4s, opacity .4s, background .3s; }
.dc4-porte .dc4-porte-ico { font-size: 32px; }
.dc4-porte b { font-size: 14px; }
.dc4-porte i { font-style: normal; font-size: 12px; color: #475569; line-height: 1.25; }
.dc4-porte:hover:not(:disabled) { border-color: #0d9488; background: #f0fdfa; transform: translateY(-3px); }
.dc4-porte.faux { border-color: #dc2626; background: #fee2e2; animation: dc4-tremble .45s linear; }
.dc4-porte.bon { border-color: #16a34a; background: #dcfce7; transform: translateY(-5px) scale(1.03); }
.dc4-porte.ferme { opacity: .5; transform: scale(.96); }
.dc4-porte:disabled { cursor: default; }
.dc4-tableau { margin: 8px 0 10px; border: 2px solid #cbd5e1; border-radius: 10px; overflow: hidden; font-size: 13px; }
.dc4-tab-l { display: grid; grid-template-columns: 1.2fr 1.3fr 1.3fr 1fr; gap: 6px; padding: 8px 10px; border-bottom: 1px solid #e2e8f0; transition: background .5s; }
.dc4-tab-l:last-child { border-bottom: 0; }
.dc4-tab-t { background: #e2e8f0; font-weight: 800; }
.dc4-tab-l.on { background: #bbf7d0; font-weight: 700; }

/* Le seuil de 5 000 € */
.dc4-lignes { list-style: none; margin: 8px 0 0; padding: 0; }
.dc4-lignes li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px dashed #fcd34d; font-size: 15px; }
.dc4-seuil-zone { background: repeating-linear-gradient(45deg, #bfdbfe, #bfdbfe 6px, #dbeafe 6px, #dbeafe 12px) !important; }

/* Le constat d'accord */
.dc4-feuille { position: relative; background: #fff; border: 1px solid #cbd5e1; border-radius: 4px; padding: 14px 16px 18px; margin: 8px 0 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); background-image: repeating-linear-gradient(transparent, transparent 27px, #e2e8f0 28px); min-height: 90px; }
.dc4-feuille-tete { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: #475569; margin-bottom: 6px; }
.dc4-feuille ol { font-size: 15px; line-height: 28px; }
.dc4-feuille.signee { border-color: #16a34a; }
.dc4-options-l { display: grid; gap: 8px; margin: 6px 0; }
.dc4-optl { text-align: left; padding: 12px 14px; font: inherit; border: 2px solid #94a3b8; border-radius: 10px; background: #fff; cursor: pointer; line-height: 1.35; min-height: 48px; }
.dc4-optl:hover:not(:disabled) { border-color: #2563eb; background: #eff6ff; }
.dc4-optl.faux { border-color: #dc2626; background: #fee2e2; animation: dc4-tremble .45s linear; }
.dc4-optl.bon { border-color: #16a34a; background: #dcfce7; }
.dc4-optl:disabled { cursor: default; }

/* L'audience */
.dc4-audience { font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: #9f1239; white-space: nowrap; }
@media (max-width: 480px) {
  .dc4-voyants { gap: 6px; }
  .dc4-voyant { min-height: 100px; padding: 10px 4px 8px; }
  .dc4-voyant b { font-size: 13px; }
  .dc4-voyant i { font-size: 11px; }
  .dc4-colonnes { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .dc4-colonne { min-height: 0; padding: 4px 5px; font-size: 11px; }
  .dc4-col-tete { font-size: 11px; }
  .dc4-file { display: none; }
  .dc4-3portes { grid-template-columns: 1fr; }
  .dc4-porte { min-height: 0; flex-direction: row; justify-content: flex-start; text-align: left; gap: 10px; padding: 10px 12px; }
  .dc4-porte b, .dc4-porte i { display: block; }
  .dc4-tab-l { grid-template-columns: 1fr 1fr; font-size: 12px; }
  .dc4-tab-t { display: none; }
  .dc4-saisie input { width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .dc4 *, .dc4 *::before, .dc4 *::after { animation: none !important; transition: none !important; }
}
.dc4-accueil { background: rgba(8, 14, 30, .72); padding: 18px 22px; border-radius: 16px; backdrop-filter: blur(3px); }
/* ==== dc4 : fin des styles ==== */
/* ==== fct : debut des styles ==== */
/* Activités courtes d'Éco 1re, chapitre 4 — préfixe fct- */
.fct-hud{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;background:rgba(15,23,42,.92);color:#fff;font-size:14px}
.fct-hud button{background:rgba(255,255,255,.12);border:0;color:#fff;border-radius:10px;width:38px;height:38px;font-size:17px;cursor:pointer}
.fct-fil{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.fct-fil span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:16px;background:rgba(255,255,255,.35);border:2px solid transparent}
.fct-fil span.fait{background:#16a34a}
.fct-fil span.ici{background:#fbbf24;transform:scale(1.15);box-shadow:0 0 0 3px rgba(251,191,36,.35)}
.fct-fil span.clic{cursor:pointer}
.fct-titre-etape{color:#fff;font-weight:700;font-size:15px;text-shadow:0 1px 6px rgba(0,0,0,.7);text-align:center}
.fct-panneau{background:rgba(255,255,255,.97);color:#1a1430;border-radius:18px;padding:16px 18px;max-width:820px;width:100%;box-shadow:0 12px 34px rgba(0,0,0,.28);animation:fct-entree .4s ease}
@keyframes fct-entree{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.fct-badge-dec{display:inline-block;background:#e0f2fe;color:#075985;border-radius:99px;padding:3px 12px;font-size:12.5px;font-weight:700;margin-bottom:8px}
.fct-ex-titre{font-family:Fraunces,Georgia,serif;font-size:20px;font-weight:700;margin-bottom:6px}
.fct-q-tete{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.fct-q-tete .fct-ex-titre{font-size:15px;margin:0;color:#475569}
.fct-consigne{margin:6px 0 10px;font-size:16px;line-height:1.5;font-weight:600}
.fct-rappel{background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;padding:9px 12px;font-size:15px;line-height:1.5;margin:6px 0}
.fct-note{font-size:14px;color:#475569;margin:8px 0}
.fct-cta{margin-top:12px}
.fct-aide{background:#fefce8;border:1px solid #fde68a;border-radius:10px;padding:6px 12px;margin:6px 0}
.fct-aide summary{cursor:pointer;font-weight:700;color:#854d0e}
.fct-aide p{margin:8px 0 4px;font-size:15px;line-height:1.5}
.fct-why{margin-top:10px}
.fct-bonne{margin-top:6px}
.fct-ko{color:#92400e;font-weight:600}
/* leçon */
.fct-lecon-tete{display:flex;align-items:center;justify-content:space-between;color:#475569;font-weight:700;font-size:14px}
.fct-lecon h3{font-family:Fraunces,Georgia,serif;font-size:23px;margin:6px 0 10px}
.fct-veut{background:#f0f9ff;border-radius:10px;padding:10px 12px;font-size:16px;line-height:1.5;margin:8px 0}
.fct-ex{background:#f0fdf4;border-radius:10px;padding:10px 12px;font-size:16px;line-height:1.5;margin:8px 0}
.fct-cours{background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;padding:10px 12px;margin:8px 0}
.fct-cours-tete{display:flex;align-items:center;justify-content:space-between}
.fct-cours ul{margin:6px 0 0;padding:0 0 0 4px;list-style:none;display:flex;flex-direction:column;gap:8px}
.fct-cours li{font-size:15px;line-height:1.5}
/* questions */
.fct-opts{display:flex;flex-direction:column;gap:8px;margin:6px 0}
.fct-opt{font:inherit;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:11px 14px;cursor:pointer;font-size:15.5px;line-height:1.4;color:#1a1430;transition:transform .15s,border-color .15s}
.fct-opt:hover:not(:disabled){border-color:#0f766e;transform:translateX(2px)}
.fct-opt.bon{background:#dcfce7;border-color:#16a34a}
.fct-opt.faux{background:#fee2e2;border-color:#f87171;opacity:.8}
.fct-opt:disabled{cursor:default}
.fct-opt.petit{padding:7px 12px;font-size:14.5px;text-align:center}
.fct-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0}
.fct-champ{font:inherit;font-size:18px;padding:9px 12px;border:2px solid #94a3b8;border-radius:10px;width:140px;max-width:100%}
.fct-unite{font-weight:700}
.fct-saisie .pdl-cta.petit{margin:0}
.fct-relier{display:flex;flex-direction:column;gap:10px}
.fct-rel-l{border:2px solid #e2e8f0;border-radius:12px;padding:9px 12px}
.fct-rel-l.bon{border-color:#16a34a;background:#f0fdf4}
.fct-rel-l.faux{border-color:#f59e0b;background:#fffbeb}
.fct-rel-t{font-size:15.5px;line-height:1.45;margin-bottom:7px}
.fct-rel-b{display:flex;gap:6px;flex-wrap:wrap}
.fct-table-cadre{overflow-x:auto;margin:8px 0;max-width:100%}
.fct-table{border-collapse:collapse;font-size:14.5px;min-width:100%}
.fct-table th,.fct-table td{border:1px solid #cbd5e1;padding:6px 9px;text-align:center}
.fct-table th{background:#f1f5f9;text-align:left}
/* deux producteurs, des curseurs d'heures */
.fct-prods{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0}
.fct-prod{background:#f8fafc;border:2px solid #e2e8f0;border-radius:14px;padding:9px 10px;display:flex;flex-direction:column;gap:7px;min-width:0}
.fct-prod-nom{font-weight:800;font-size:16px;display:flex;flex-direction:column}
.fct-prod-id{display:flex;align-items:center;gap:10px}
.fct-portrait{width:56px;height:56px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.fct-prod-nom small{font-weight:600;font-size:12.5px;color:#475569}
.fct-horloge{display:flex;height:26px;border-radius:99px;overflow:hidden;border:2px solid #475569;background:#e2e8f0;font-size:12.5px;font-weight:700}
.fct-h-pan,.fct-h-pot{display:flex;align-items:center;justify-content:center;white-space:nowrap;overflow:hidden;transition:width .6s cubic-bezier(.2,.8,.2,1)}
.fct-h-pan{background:#fcd34d;color:#78350f}
.fct-h-pot{background:#fda4af;color:#881337}
.fct-curseur{display:flex;flex-direction:column;gap:6px;font-size:15px;margin:4px 0}
.fct-curseur input{width:100%;height:32px;accent-color:#0f766e}
.fct-piles{display:flex;flex-direction:column;gap:4px}
.fct-pile-l{display:flex;flex-direction:column;gap:1px;font-size:13.5px;min-height:38px}
.fct-icones{display:flex;gap:1px;flex-wrap:wrap}
.fct-icones i{font-style:normal;font-size:17px;line-height:1.15;animation:fct-pop .35s ease both}
@keyframes fct-pop{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:none}}
.fct-delta{margin:0;font-size:13.5px;line-height:1.4;background:#fffbeb;border-radius:8px;padding:5px 8px}
.fct-cout-opp{margin:0;font-size:13.5px;line-height:1.4;background:#ecfeff;border-radius:8px;padding:5px 8px}
.fct-total{background:#f0fdf4;border:2px solid #86efac;border-radius:12px;padding:8px 12px;font-size:15.5px;margin:6px 0}
.fct-total small{color:#475569}
/* taux d'échange */
.fct-rail{position:relative;height:62px;margin:2px 8px 10px}
.fct-rail-ligne{position:absolute;left:0;right:0;top:30px;height:6px;background:#cbd5e1;border-radius:99px}
.fct-zone{position:absolute;top:24px;height:18px;background:rgba(34,197,94,.45);border:2px solid #16a34a;border-radius:8px;animation:fct-zone .8s ease both;z-index:1}
.fct-zone span{position:absolute;left:50%;top:20px;transform:translateX(-50%);font-size:12px;font-weight:800;color:#166534;white-space:nowrap}
@keyframes fct-zone{from{opacity:0;transform:scaleX(.2)}to{opacity:1;transform:none}}
.fct-repere{position:absolute;top:20px;width:2px;height:26px;background:#334155;z-index:2}
.fct-repere span{position:absolute;left:50%;top:-18px;transform:translateX(-50%);font-size:12px;font-weight:700;white-space:nowrap;color:#1e293b}
.fct-repere.haut span{top:30px}
.fct-essai{position:absolute;top:27px;width:12px;height:12px;border-radius:50%;margin-left:-6px;background:#f59e0b;border:2px solid #fff;z-index:3}
.fct-essai.bon{background:#16a34a}
.fct-gains{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:6px 0}
.fct-gain{border:2px solid #e2e8f0;border-radius:12px;padding:7px 10px;display:flex;justify-content:space-between;align-items:center;font-size:15px;transition:background .3s,border-color .3s}
.fct-gain b{font-size:18px}
.fct-gain.plus{background:#f0fdf4;border-color:#16a34a}
.fct-gain.moins{background:#fef2f2;border-color:#ef4444}
/* tri exportation / importation */
.fct-pile{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0;min-height:44px}
.fct-chip{font:inherit;color:#1a1430;background:#fff;border:2px solid #94a3b8;border-radius:99px;padding:7px 12px;cursor:pointer;font-size:15px;display:flex;gap:6px;align-items:center;transition:transform .15s}
.fct-chip.sel{border-color:#1d4ed8;background:#dbeafe;transform:scale(1.05)}
.fct-cases{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}
.fct-case{font:inherit;color:#1a1430;background:#f8fafc;border:2px dashed #94a3b8;border-radius:14px;padding:8px;min-height:130px;display:flex;flex-direction:column;gap:6px;align-items:stretch;text-align:left;cursor:pointer}
.fct-case:disabled{cursor:default}
.fct-case.attend{border-color:#1d4ed8;background:#eff6ff}
.fct-case b{font-size:15px;text-align:center}
.fct-case-def{font-size:12.5px;line-height:1.3;color:#475569;text-align:center}
.fct-pose{background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:3px 6px;font-size:13px;line-height:1.3;animation:fct-entree .4s ease}
/* mots de tous les jours, titres de la leçon, légende du circuit */
.fct-mots{background:#fefce8;border:1px solid #fde68a;border-radius:10px;padding:9px 12px;margin:8px 0;font-size:15px;line-height:1.45}
.fct-mots ul{margin:5px 0 0;padding-left:18px}
.fct-cours .fct-cours-repere{font-size:14.5px;color:#9a3412;margin-top:2px}
.fct-num{color:#9a3412}
.fct-legende{list-style:none;margin:4px 0 8px;padding:8px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;font-size:13.5px;line-height:1.4;display:flex;flex-direction:column;gap:3px}
/* circuit */
.fct-cadre{position:relative;width:100%;max-width:560px;margin:6px auto;padding-bottom:min(68.75%,385px);background:#f8fafc;border:2px solid #e2e8f0;border-radius:14px;overflow:hidden}
.fct-svg{position:absolute;left:0;top:0;width:100%;height:100%}
.fct-lib{font-weight:700;paint-order:stroke;stroke:#f8fafc;stroke-width:3px}
.fct-noeud{position:absolute;transform:translate(-50%,-50%);font:inherit;color:#1a1430;background:#fff;border:2px solid #94a3b8;border-radius:12px;padding:4px 6px;width:27%;max-width:130px;display:flex;flex-direction:column;align-items:center;gap:1px;cursor:pointer;line-height:1.15;transition:transform .15s,border-color .2s,background .2s}
.fct-noeud span{font-size:20px}
.fct-noeud b{font-size:11.5px;text-align:center}
.fct-noeud small{font-size:9.5px;color:#475569;text-align:center;line-height:1.1;font-weight:600}
.fct-noeud em{font-style:normal;font-size:10.5px;font-weight:800;color:#fff;border-radius:99px;padding:0 6px;background:#0f766e}
.fct-noeud:disabled{cursor:default}
.fct-noeud.donne{border-color:#0f766e;background:#ccfbf1;transform:translate(-50%,-50%) scale(1.06)}
.fct-noeud.recoit{border-color:#b45309;background:#fef3c7;transform:translate(-50%,-50%) scale(1.06)}
.fct-noeud.recoit em{background:#b45309}
.fct-legende-d summary{cursor:pointer;font-weight:700;font-size:14px;color:#475569;margin:4px 0}
.fct-mission{position:sticky;top:0;z-index:5;background:#faf5ff;border:2px solid #ddd6fe;border-radius:12px;padding:8px 12px;margin:8px 0}
.fct-mission-n{font-size:12.5px;font-weight:800;color:#6d28d9;text-transform:uppercase;letter-spacing:.03em}
.fct-mission-t{margin:4px 0;font-size:16px;font-weight:700;line-height:1.4}
.fct-etape{margin:2px 0 6px;font-size:14.5px;color:#475569}
.fct-type{display:flex;gap:8px;flex-wrap:wrap}
/* le troc */
.fct-bourse{display:flex;gap:10px;flex-wrap:wrap;align-items:center;background:#fffbeb;border:2px solid #fde68a;border-radius:12px;padding:7px 12px;font-size:15.5px;font-weight:700;position:relative}
.fct-bourse-arg{margin-left:auto}
.fct-piece{position:absolute;left:30%;top:0;font-style:normal;font-size:22px;animation:fct-vol 1.2s ease-out both}
@keyframes fct-vol{0%{opacity:0;transform:translate(-40px,30px) scale(.4)}40%{opacity:1}100%{opacity:0;transform:translate(170px,-6px) scale(1.1)}}
.fct-etals{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}
.fct-etal{font:inherit;color:#1a1430;background:#fff;border:2px solid #cbd5e1;border-radius:14px;padding:9px 6px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;transition:transform .2s,border-color .2s,background .3s}
.fct-etal:hover:not(:disabled){transform:translateY(-2px);border-color:#b45309}
.fct-etal-ico{font-size:34px}
.fct-etal b{font-size:14.5px}
.fct-etal small{font-size:12.5px;color:#475569;line-height:1.3}
.fct-etal-q{color:#b45309!important;font-weight:700}
.fct-etal.refus{background:#fef2f2;border-color:#f87171;cursor:default}
.fct-bulle{font-style:normal;font-size:13px;line-height:1.35;font-weight:700;color:#991b1b;animation:fct-entree .4s ease}
/* accueil et bilan */
.fct-accueil{background:rgba(255,255,255,.96);color:#1a1430;border-radius:20px;padding:22px 20px;max-width:720px;width:100%;box-shadow:0 18px 50px rgba(0,0,0,.35)}
.fct-accueil-sur{font-size:12.5px;color:#475569;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.fct-accueil h1{font-family:Fraunces,Georgia,serif;font-size:30px;margin:6px 0 10px;line-height:1.15}
.fct-accueil h1 span{display:block;font-size:16px;font-weight:600;color:#0f766e;margin-top:4px}
.fct-accueil p{font-size:16px;line-height:1.55}
.fct-accueil-l{list-style:none;padding:0;margin:10px 0;display:flex;flex-direction:column;gap:5px;font-size:15.5px}
.fct-accueil-btns{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.fct-bilan h2{font-family:Fraunces,Georgia,serif;margin:0 0 8px}
.fct-retiens{background:#f0f9ff;border-radius:12px;padding:10px 14px;text-align:left;margin:10px 0}
.fct-retiens ul{margin:6px 0 0;padding-left:20px;font-size:15.5px;line-height:1.5}
@media (max-width:560px){
  .fct-prods{grid-template-columns:1fr}
  .fct-etals{gap:5px}.fct-etal{padding:7px 3px}.fct-etal-ico{font-size:28px}.fct-etal b{font-size:13px}.fct-etal small{font-size:11.5px}
  .fct-cases{gap:5px}.fct-case{min-height:110px}
  .fct-noeud{width:30%;padding:3px 3px}.fct-noeud span{font-size:17px}.fct-noeud b{font-size:10.5px}
  .fct-gains{grid-template-columns:1fr}
  .fct-accueil h1{font-size:25px}.fct-panneau{padding:13px 12px}
}
@media (prefers-reduced-motion:reduce){
  .fct-icones i,.fct-pose,.fct-panneau,.fct-zone,.fct-piece,.fct-bulle{animation:none}
  .fct-h-pan,.fct-h-pot,.fct-gain,.fct-noeud,.fct-chip,.fct-etal{transition:none}
}

/* ---- ch. 4 : gestes, jeu ---- */
.fct-cases.cinq{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.fct-cases.cinq .fct-case{min-height:104px}
.fct-badge-dec.defi{background:#fef3c7;color:#92400e}
.fct-pile-l{display:flex;flex-direction:column;gap:4px;margin:6px 0}
.fct-trois{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0}
.fct-combo{font:inherit;color:#1a1430;background:#fff;border:2px solid #cbd5e1;border-radius:14px;padding:10px 6px;cursor:pointer;display:flex;flex-direction:column;gap:3px;text-align:center;transition:transform .15s,border-color .2s}
.fct-combo:hover{transform:translateY(-2px);border-color:#be185d}
.fct-combo.vu{border-color:#16a34a}
.fct-combo.sel{background:#fdf2f8;border-color:#be185d;box-shadow:0 0 0 3px rgba(190,24,93,.18)}
.fct-combo small{font-size:12.5px;color:#475569;line-height:1.3}
.fct-atelier-vue{background:#f8fafc;border:2px solid #e2e8f0;border-radius:14px;padding:10px 12px;margin:8px 0;animation:fct-entree .35s ease}
.fct-gens{display:flex;flex-wrap:wrap;gap:4px 14px;margin-bottom:8px;min-height:34px}
.fct-intens{font-size:15px;line-height:1.5}
.fct-gros{font-size:19px;color:#be185d}
.fct-barre{height:12px;background:#e2e8f0;border-radius:99px;overflow:hidden;margin-top:6px}
.fct-barre i{display:block;height:100%;background:linear-gradient(90deg,#f472b6,#be185d);border-radius:99px;transition:width .6s cubic-bezier(.2,.8,.2,1)}
.fct-couts{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.fct-cout{display:grid;grid-template-columns:1.1fr 1.6fr auto;gap:10px;align-items:center;border:2px solid #e2e8f0;border-radius:12px;padding:7px 10px;transition:background .3s,border-color .3s}
.fct-cout.gagne{background:#f0fdf4;border-color:#16a34a}
.fct-cout-t{display:flex;flex-direction:column;font-size:14.5px}
.fct-cout-t small{font-size:12px;color:#475569}
.fct-cout-barre{height:16px;background:#e2e8f0;border-radius:99px;overflow:hidden}
.fct-cout-barre i{display:block;height:100%;background:#f59e0b;border-radius:99px;transition:width .5s cubic-bezier(.2,.8,.2,1)}
.fct-cout.gagne .fct-cout-barre i{background:#16a34a}
.fct-cout-v{font-size:16px;white-space:nowrap}
.fct-pas{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14.5px}
.fct-pas span{min-width:96px}
.fct-pas button{width:38px;height:38px;border-radius:10px;border:2px solid #94a3b8;background:#fff;font-size:20px;font-weight:700;cursor:pointer;color:#1a1430}
.fct-pas button:disabled{opacity:.4;cursor:default}
.fct-pas b{min-width:34px;text-align:center;font-size:17px}
.fct-pas.gros span{min-width:150px}
.fct-annee{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center;border:2px solid #e2e8f0;border-radius:12px;padding:8px 10px;margin:6px 0;background:#fffbeb}
.fct-annee-t{min-width:110px}
.fct-annee-f{flex-basis:100%;font-size:15px}
.fct-reglages{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.fct-prodlive{background:#f0fdf4;border:2px solid #86efac;border-radius:12px;padding:8px 12px;margin:8px 0;font-size:15.5px;display:flex;flex-wrap:wrap;gap:4px 8px;align-items:baseline}
.fct-prodlive small{flex-basis:100%;color:#475569;font-size:13.5px}
.fct-leviers{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.fct-levier{font:inherit;color:#1a1430;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:9px 12px;cursor:pointer;display:grid;grid-template-columns:auto 1fr;gap:2px 10px;align-items:center;transition:transform .15s,border-color .2s}
.fct-levier span{font-size:26px;grid-row:span 2}
.fct-levier small{font-size:13px;color:#166534;font-weight:700}
.fct-levier:hover:not(:disabled){border-color:#15803d;transform:translateX(2px)}
.fct-levier.pris{background:#dcfce7;border-color:#16a34a;cursor:default}
.fct-prim{margin-top:8px}
@keyframes fct-entree{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
/* le guide et la ligne du jeu */
.fct-guide{display:flex;gap:12px;align-items:flex-start;background:#f0f9ff;border:1px solid #bae6fd;border-radius:14px;padding:10px 12px;margin:8px 0}
.fct-guide-ico{font-size:34px}
.fct-guide small{display:block;color:#475569;font-size:12.5px}
.fct-guide p{margin:5px 0 0;font-size:15.5px;line-height:1.5}
.fct-ligne{background:#0f172a;border-radius:14px;overflow:hidden;margin:8px 0;color:#e2e8f0}
.fct-bande{position:relative;height:38px;background:repeating-linear-gradient(90deg,#334155 0 22px,#1e293b 22px 44px);border-bottom:4px solid #64748b}
.fct-bande i{position:absolute;top:4px;font-style:normal;font-size:24px;animation:fct-roule 6s linear infinite}
@keyframes fct-roule{from{transform:translateX(-12vw)}to{transform:translateX(100vw)}}
.fct-ligne-i{display:flex;flex-wrap:wrap;gap:4px 18px;padding:7px 12px;font-size:14px;justify-content:space-between}
.lz-hud b{margin-right:auto}
.lz-caisse{font-weight:700;margin-right:10px}
.lz-hud-b{display:flex;gap:8px}
.fct-planning{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}
.fct-jour{font:inherit;color:#1a1430;background:#fff;border:2px solid #cbd5e1;border-radius:14px;padding:9px 6px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;min-width:0}
.fct-jour.libre{border-color:#0369a1;background:#f0f9ff}
.fct-jour.regle{border-color:#16a34a;background:#f0fdf4}
.fct-jour.reprise{border-color:#f59e0b;background:#fffbeb}
.fct-jour.ferme{opacity:.55;cursor:default}
.fct-jour.ici{box-shadow:0 0 0 3px rgba(3,105,161,.3)}
.fct-jour-ico{font-size:26px}
.fct-jour small{font-size:12px;color:#475569;line-height:1.25}
.fct-jour .fct-jour-s{font-weight:700;color:#0f172a}
@media (max-width:560px){
  .fct-trois{grid-template-columns:1fr}
  .fct-cout{grid-template-columns:1fr;gap:4px}
  .fct-planning{grid-template-columns:repeat(2,1fr)}
  .fct-cases.cinq{grid-template-columns:1fr 1fr}
  .fct-pas.gros span{min-width:0;flex-basis:100%}
}
@media (prefers-reduced-motion:reduce){
  .fct-bande i,.fct-atelier-vue{animation:none}
  .fct-barre i,.fct-cout-barre i,.fct-combo,.fct-levier{transition:none}
}
.fct-choix{background:#eff6ff;border:2px solid #93c5fd;border-radius:12px;padding:8px 10px;margin:6px 0;position:sticky;top:4px;z-index:5;animation:fct-entree .25s ease}
.fct-choix>b{display:block;font-size:14.5px;margin-bottom:6px}
.fct-choix-b{display:flex;flex-wrap:wrap;gap:6px}
.fct-salaire .fct-curseur{position:sticky;top:0;z-index:5;background:rgba(255,255,255,.97);padding:6px 4px;border-radius:10px;box-shadow:0 2px 6px rgba(0,0,0,.08)}
@media (max-width:560px){.fct-cout{padding:5px 8px}.fct-cout-barre{height:10px}}
.fct-rappel .fct-l{margin:3px 0}
/* ==== fct : fin des styles ==== */
/* ==== ems : debut des styles ==== */
/* Troké Foir ! — Éco 1re, chapitre 3 — préfixe ems- */
.ems-hud{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;background:rgba(15,23,42,.92);color:#fff;font-size:14px;flex-wrap:wrap}
.ems-hud-moi{display:flex;align-items:center;gap:8px;background:transparent;border:0;color:#fff}
.ems-hud-moi i{display:block;font-size:12px;opacity:.8;font-style:normal}
.ems-hud-prog{display:flex;gap:6px}
.ems-hud-prog span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:14px;background:rgba(255,255,255,.18);border:2px solid transparent}
.ems-hud-prog span.fait{background:#16a34a}
.ems-hud-prog span.ici{background:#fbbf24;color:#1a1430;box-shadow:0 0 0 3px rgba(251,191,36,.35)}
.ems-hud button{background:rgba(255,255,255,.12);border:0;color:#fff;border-radius:10px;width:36px;height:36px;font-size:16px;cursor:pointer;margin-left:6px}
.ems-perso-img{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:50%;background:#fef3c7;font-size:38px}
.ems-perso-img.petit{width:34px;height:34px;font-size:20px}
.ems-fil{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.ems-fil span{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:15px;background:rgba(255,255,255,.35);border:2px solid transparent}
.ems-fil span.fait{background:#16a34a}
.ems-fil span.ici{background:#fbbf24;transform:scale(1.15);box-shadow:0 0 0 3px rgba(251,191,36,.35)}
.ems-titre-etape{color:#fff;font-weight:700;font-size:15px;text-shadow:0 1px 6px rgba(0,0,0,.7);text-align:center}
.ems-panneau{background:rgba(255,255,255,.97);color:#1a1430;border-radius:18px;padding:16px 18px;max-width:820px;width:100%;box-shadow:0 12px 34px rgba(0,0,0,.28);animation:ems-entree .4s ease}
.ems-panneau.ems-large{max-width:900px}
@keyframes ems-entree{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.ems-badge-dec{display:inline-block;border-radius:99px;padding:3px 12px;font-size:12.5px;font-weight:700;margin-bottom:8px;background:#e0f2fe;color:#075985}
.ems-badge-dec.ems-dec-epreuve{background:#fee2e2;color:#991b1b}
.ems-badge-dec.ems-dec-action{background:#fef3c7;color:#854d0e}
.ems-ex-titre{font-family:Fraunces,Georgia,serif;font-size:20px;font-weight:700;margin-bottom:6px}
.ems-q-tete{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.ems-q-tete .ems-ex-titre{font-size:15px;margin:0;color:#475569}
.ems-consigne{margin:6px 0 10px;font-size:16px;line-height:1.5;font-weight:600}
.ems-rappel{background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;padding:9px 12px;font-size:15px;line-height:1.5;margin:6px 0}
.ems-note{font-size:14px;color:#475569;margin:8px 0}
.ems-cta{margin-top:12px}
.ems-aide{background:#fefce8;border:1px solid #fde68a;border-radius:10px;padding:6px 12px;margin:6px 0}
.ems-aide summary{cursor:pointer;font-weight:700;color:#854d0e}
.ems-aide p{margin:8px 0 4px;font-size:15px;line-height:1.5}
.ems-why{margin-top:10px}
.ems-bonne{margin-top:6px}
.ems-ko{color:#92400e;font-weight:600}
.ems-conseq{margin-top:8px;border-radius:10px;padding:8px 12px;font-size:15px}
.ems-conseq.bon{background:#dcfce7;border:1px solid #86efac}
.ems-conseq.faux{background:#fef3c7;border:1px solid #fcd34d}
/* personnages */
.ems-bulle{display:flex;gap:12px;align-items:flex-start}
.ems-avatar{flex:0 0 auto;width:76px;height:76px;border-radius:50%;background:#fef3c7;display:grid;place-items:center;font-size:32px;overflow:hidden}
.ems-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.ems-bulle-corps{flex:1}
.ems-bulle-nom{font-weight:800;font-size:15px}
.ems-bulle-nom span{font-weight:500;font-size:13px;color:#64748b;margin-left:8px}
.ems-bulle p{margin:6px 0;font-size:16.5px;line-height:1.55}
/* tableau de l'étal */
.ems-tableau-bloc{display:flex;flex-direction:column;align-items:center;gap:4px}
.ems-legende{margin:2px 0 0;max-width:820px;text-align:center;font-size:13px}
.ems-fonc-item{margin:10px 0}
.ems-tableau{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;max-width:820px}
.ems-tab-case{display:flex;flex-direction:column;align-items:center;min-width:76px;background:rgba(255,255,255,.95);border-radius:12px;padding:5px 10px;color:#1a1430;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.ems-tab-case b{font-size:17px}
.ems-tab-case small{font-size:11.5px;color:#64748b}
.ems-tab-case.bouge{animation:ems-bouge .9s ease;background:#fef3c7}
@keyframes ems-bouge{0%{transform:scale(1)}40%{transform:scale(1.14)}100%{transform:scale(1)}}
/* leçon */
.ems-lecon-tete{display:flex;align-items:center;justify-content:space-between;color:#475569;font-weight:700;font-size:14px}
.ems-lecon h3{font-family:Fraunces,Georgia,serif;font-size:23px;margin:6px 0 10px}
.ems-veut{background:#f0f9ff;border-radius:10px;padding:10px 12px;font-size:16px;line-height:1.5;margin:8px 0}
.ems-ex{background:#f0fdf4;border-radius:10px;padding:10px 12px;font-size:16px;line-height:1.5;margin:8px 0}
.ems-cours{background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;padding:10px 12px;margin:8px 0}
.ems-cours-tete{display:flex;align-items:center;justify-content:space-between}
.ems-cours ul{margin:6px 0 0;padding:0 0 0 4px;list-style:none;display:flex;flex-direction:column;gap:8px}
.ems-cours li{font-size:15px;line-height:1.5}
/* questions */
.ems-opts{display:flex;flex-direction:column;gap:8px;margin:6px 0}
.ems-opt{font:inherit;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:11px 14px;cursor:pointer;font-size:15.5px;line-height:1.4;color:#1a1430;transition:transform .15s,border-color .15s}
.ems-opt:hover:not(:disabled){border-color:#0f766e;transform:translateX(2px)}
.ems-opt.bon{background:#dcfce7;border-color:#16a34a}
.ems-opt.faux{background:#fee2e2;border-color:#f87171;opacity:.8}
.ems-opt.on{background:#fef3c7;border-color:#f59e0b}
.ems-opt.vu{border-style:dashed}
.ems-opt:disabled{cursor:default}
.ems-opt.ems-court{padding:7px 12px;font-size:14.5px;text-align:center}
.ems-opt.ems-bleu.on{background:#dbeafe;border-color:#2563eb}
.ems-opt.ems-rouge.on{background:#fee2e2;border-color:#dc2626}
.ems-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0}
.ems-champ{font:inherit;font-size:18px;padding:9px 12px;border:2px solid #94a3b8;border-radius:10px;width:140px;max-width:100%}
.ems-unite{font-weight:700}
.ems-saisie .pdl-cta.petit{margin:0}
.ems-table-cadre{overflow-x:auto;margin:8px 0;max-width:100%}
.ems-table{border-collapse:collapse;font-size:14.5px;min-width:100%}
.ems-table th,.ems-table td{border:1px solid #cbd5e1;padding:6px 9px;text-align:center}
.ems-table th{background:#f1f5f9;text-align:left}
.ems-table .ems-ton{background:#fef3c7;font-weight:800}
/* jetons-heures */
.ems-jetons{display:inline-flex;flex-wrap:wrap;gap:3px;vertical-align:middle}
.ems-jeton{width:15px;height:15px;border-radius:50%;background:#e2e8f0;border:2px solid #94a3b8;display:inline-block}
.ems-jeton.plein{background:#f59e0b;border-color:#b45309;animation:ems-pop .3s ease}
.ems-jeton.plein.tresse{background:#d97706;border-color:#92400e}
.ems-jeton.plein.chaudron{background:#14b8a6;border-color:#0f766e}
.ems-jeton.plein.cargo{background:#3b82f6;border-color:#1d4ed8}
.ems-jeton.plein.foire{background:#f59e0b;border-color:#b45309}
@keyframes ems-pop{0%{transform:scale(.3)}70%{transform:scale(1.3)}100%{transform:scale(1)}}
.ems-geste{display:flex;flex-direction:column;gap:8px}
.ems-plateau{background:linear-gradient(#fef3c7,#fde68a);border:3px solid #b45309;border-radius:16px;padding:10px 12px}
.ems-reserve-jetons{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.ems-postes{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ems-poste{background:#fff;border-radius:12px;padding:8px 10px;border:3px solid #d97706}
.ems-poste.chaudron{border-color:#0f766e}
.ems-poste-tete{display:flex;flex-direction:column}
.ems-poste-tete small{color:#64748b;font-size:12.5px}
.ems-poste-jetons{min-height:26px;margin:6px 0}
.ems-poste-prod{font-weight:800;font-size:16px}
.ems-btns{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.ems-btns.ems-centre{justify-content:center}
.ems-mini{font:inherit;font-size:14px;font-weight:700;border:2px solid #94a3b8;border-radius:10px;background:#fff;padding:5px 10px;cursor:pointer;color:#1a1430}
.ems-mini:disabled{opacity:.4;cursor:default}
.ems-resume{font-weight:800;font-size:16.5px;text-align:center}
.ems-duo-perso{background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:8px 10px}
.ems-duo-ligne{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:6px}
.ems-duo-poste{display:flex;flex-direction:column;gap:4px;border-radius:10px;padding:6px 8px;background:#fffbeb}
.ems-duo-poste.chaudron{background:#f0fdfa}
.ems-etoile{font-style:normal;font-weight:800;color:#b45309;font-size:13px}
.ems-total{background:#ecfeff;border:2px solid #0891b2;border-radius:12px;padding:8px 12px;text-align:center}
.ems-total b{font-size:17px}
.ems-total small{display:block;color:#475569}
/* marchandage */
.ems-taux{display:flex;gap:8px;flex-wrap:wrap}
.ems-march-corps{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap}
.ems-balance{font-size:54px;width:90px;text-align:center}
.ems-balance span{display:inline-block;transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.ems-march-txt{flex:1;min-width:240px}
.ems-march-txt p{margin:4px 0;font-size:15px;line-height:1.5}
.ems-gain{display:grid;grid-template-columns:54px 1fr 70px;gap:8px;align-items:center;margin:4px 0;font-size:15px}
.ems-gain-barre{background:#e2e8f0;border-radius:99px;height:14px;overflow:hidden}
.ems-gain-barre i{display:block;height:100%;border-radius:99px;transition:width .6s}
.ems-gain.ems-plus i{background:#16a34a}
.ems-gain.ems-zero i{background:#94a3b8}
.ems-gain.ems-moins i{background:#dc2626}
.ems-verdict{margin-top:6px;border-radius:10px;padding:8px 12px;font-weight:700}
.ems-verdict.bon{background:#dcfce7}
.ems-verdict.faux{background:#fee2e2}
/* quai */
.ems-pile{display:flex;gap:8px;flex-wrap:wrap;min-height:44px}
.ems-chip{font:inherit;background:#fff;border:2px solid #94a3b8;border-radius:12px;padding:8px 12px;cursor:pointer;font-size:15px;display:flex;gap:6px;align-items:center}
.ems-chip.sel{border-color:#f59e0b;background:#fef3c7;transform:scale(1.04)}
.ems-cases{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ems-case{font:inherit;text-align:left;background:#f8fafc;border:3px dashed #94a3b8;border-radius:14px;padding:10px;min-height:96px;cursor:pointer;color:#1a1430}
.ems-case.attend{border-color:#0f766e;background:#f0fdfa}
.ems-case:disabled{cursor:default}
.ems-case-in{display:flex;flex-direction:column;gap:4px;margin-top:6px}
.ems-pose{font-size:14px;background:#fff;border-radius:8px;padding:3px 8px;border:1px solid #cbd5e1;animation:ems-pop .3s ease}
/* cargo */
.ems-cargo-voies{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ems-voie{border-radius:14px;padding:10px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:4px}
.ems-voie.cargo{background:#dbeafe;border:3px solid #2563eb}
.ems-voie.foire{background:#fef3c7;border:3px solid #d97706}
.ems-voie-n{font-size:34px;font-weight:800}
.ems-courrier{background:#fffbeb;border:2px solid #b45309;border-radius:6px;padding:10px 14px;animation:ems-entree .5s ease;transform:rotate(-.6deg)}
.ems-courrier-tete{font-weight:800}
/* circuit */
.ems-board{position:relative;width:100%;aspect-ratio:100/62.5;background:linear-gradient(#f0f9ff,#e0f2fe);border:2px solid #7dd3fc;border-radius:14px;overflow:hidden}
.ems-svg{position:absolute;inset:0;width:100%;height:100%}
.ems-agent{position:absolute;transform:translate(-50%,-50%);font:inherit;background:#fff;border:3px solid #0f766e;border-radius:14px;padding:4px 8px;cursor:pointer;display:flex;flex-direction:column;align-items:center;font-size:12.5px;color:#1a1430;min-width:74px;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.ems-agent:disabled{opacity:.85;cursor:default;border-color:#94a3b8}
.ems-agent.sel{border-color:#f59e0b;background:#fef3c7}
.ems-agent-ico{font-size:22px}
.ems-fl-trait{transition:stroke .6s}
.ems-fl.vive .ems-fl-trait{animation:ems-flux 1.2s linear infinite}
.ems-fl.vive .ems-fl-bille{animation:ems-bille 2.4s linear infinite}
.ems-fl.coupe .ems-fl-bille{display:none}
.ems-fl.coupe{opacity:.45;transition:opacity .8s}
.ems-fl-lib{font-size:2.6px;font-weight:700}
@keyframes ems-flux{to{stroke-dashoffset:-7.6}}
@keyframes ems-bille{from{transform:translate(0,0)}to{transform:translate(var(--dx),var(--dy))}}
.ems-crayons{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.ems-carte-flux{background:#fefce8;border:2px solid #fde68a;border-radius:12px;padding:4px 12px}
/* troc */
.ems-troc-tete{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.ems-tenu{font-weight:800;font-size:17px;background:#fef3c7;border-radius:10px;padding:6px 12px}
.ems-stands{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.ems-stand{font:inherit;background:#fff;border:3px solid #cbd5e1;border-radius:14px;padding:10px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px;color:#1a1430;text-align:center}
.ems-stand.vu{border-color:#f59e0b}
.ems-stand:disabled{opacity:.6;cursor:default}
.ems-stand em{font-style:normal;font-size:13px;color:#475569}
.ems-monnaie{display:flex;flex-direction:column}
.ems-prog-fonc{font-weight:700;color:#475569;font-size:14px}
/* écrans */
.ems-accueil h1 span{display:block;font-size:15px;font-weight:500;line-height:1.4;margin-top:6px}
.ems-accueil-l{list-style:none;padding:0;margin:10px 0;display:flex;flex-direction:column;gap:6px;text-align:left}
.ems-tm-notion{margin:6px 0;font-weight:700}
.ems-badge{border:2px solid #b45309;border-radius:14px;padding:10px 14px;background:#fffbeb;max-width:420px}
.ems-badge-haut{display:flex;flex-direction:column;margin-bottom:6px}
.ems-badge-corps{display:flex;gap:12px;align-items:center}
.ems-badge-corps span{display:block;font-size:13px}
.ems-bravo-score{display:flex;align-items:center;gap:12px;justify-content:center;font-size:40px}
.ems-ce-qui-change{background:#f0fdf4;border-radius:12px;padding:8px 14px;margin:8px 0;text-align:left}
.ems-ce-qui-change ul{margin:6px 0 0;padding-left:18px}
.ems-fin-profil{background:rgba(255,255,255,.95);color:#1a1430;border-radius:14px;padding:10px 16px;margin:10px 0}
.ems-fin-manches{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin:10px 0}
.ems-petit{font:inherit;font-size:13.5px;border:2px solid #cbd5e1;border-radius:10px;background:#fff;padding:5px 10px;cursor:pointer}
.ems-retiens{background:rgba(255,255,255,.95);color:#1a1430;border-radius:14px;padding:10px 16px;text-align:left}
.ems-retiens li{margin:6px 0;line-height:1.5}
@media (max-width:560px){
  .ems-postes,.ems-duo-ligne,.ems-cases,.ems-cargo-voies{grid-template-columns:1fr}
  .ems-stands{grid-template-columns:1fr}
  .ems-agent{min-width:58px;padding:3px 5px;font-size:11px}
  .ems-agent-ico{font-size:17px}
  .ems-panneau{padding:12px 12px}
}
@media (prefers-reduced-motion: reduce){
  .ems-panneau,.ems-jeton.plein,.ems-pose,.ems-courrier,.ems-tab-case.bouge{animation:none}
  .ems-fl.vive .ems-fl-trait,.ems-fl.vive .ems-fl-bille{animation:none}
  .ems-balance span,.ems-gain-barre i,.ems-fl-trait,.ems-fl.coupe{transition:none}
  .ems-opt,.ems-chip{transition:none}
}
.ems-transition{font-size:14px;line-height:1.5;color:#7c2d12;margin:6px 0 4px}
.ems-attention{margin-top:6px;padding:8px 10px;border-radius:8px;background:#fee2e2;border:1px solid #fca5a5;color:#7f1d1d;font-weight:700;font-size:15px;line-height:1.4}
/* ==== ems : fin des styles ==== */
/* ==== ech : debut des styles ==== */
/* Activités courtes d'Éco 1re, chapitre 3 — préfixe ech- */
.ech-hud{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;background:rgba(15,23,42,.92);color:#fff;font-size:14px}
.ech-hud button{background:rgba(255,255,255,.12);border:0;color:#fff;border-radius:10px;width:38px;height:38px;font-size:17px;cursor:pointer}
.ech-fil{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.ech-fil span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:16px;background:rgba(255,255,255,.35);border:2px solid transparent}
.ech-fil span.fait{background:#16a34a}
.ech-fil span.ici{background:#fbbf24;transform:scale(1.15);box-shadow:0 0 0 3px rgba(251,191,36,.35)}
.ech-fil span.clic{cursor:pointer}
.ech-titre-etape{color:#fff;font-weight:700;font-size:15px;text-shadow:0 1px 6px rgba(0,0,0,.7);text-align:center}
.ech-panneau{background:rgba(255,255,255,.97);color:#1a1430;border-radius:18px;padding:16px 18px;max-width:820px;width:100%;box-shadow:0 12px 34px rgba(0,0,0,.28);animation:ech-entree .4s ease}
@keyframes ech-entree{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.ech-badge-dec{display:inline-block;background:#e0f2fe;color:#075985;border-radius:99px;padding:3px 12px;font-size:12.5px;font-weight:700;margin-bottom:8px}
.ech-ex-titre{font-family:Fraunces,Georgia,serif;font-size:20px;font-weight:700;margin-bottom:6px}
.ech-q-tete{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.ech-q-tete .ech-ex-titre{font-size:15px;margin:0;color:#475569}
.ech-consigne{margin:6px 0 10px;font-size:16px;line-height:1.5;font-weight:600}
.ech-rappel{background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;padding:9px 12px;font-size:15px;line-height:1.5;margin:6px 0}
.ech-note{font-size:14px;color:#475569;margin:8px 0}
.ech-cta{margin-top:12px}
.ech-aide{background:#fefce8;border:1px solid #fde68a;border-radius:10px;padding:6px 12px;margin:6px 0}
.ech-aide summary{cursor:pointer;font-weight:700;color:#854d0e}
.ech-aide p{margin:8px 0 4px;font-size:15px;line-height:1.5}
.ech-why{margin-top:10px}
.ech-bonne{margin-top:6px}
.ech-ko{color:#92400e;font-weight:600}
/* leçon */
.ech-lecon-tete{display:flex;align-items:center;justify-content:space-between;color:#475569;font-weight:700;font-size:14px}
.ech-lecon h3{font-family:Fraunces,Georgia,serif;font-size:23px;margin:6px 0 10px}
.ech-veut{background:#f0f9ff;border-radius:10px;padding:10px 12px;font-size:16px;line-height:1.5;margin:8px 0}
.ech-ex{background:#f0fdf4;border-radius:10px;padding:10px 12px;font-size:16px;line-height:1.5;margin:8px 0}
.ech-cours{background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;padding:10px 12px;margin:8px 0}
.ech-cours-tete{display:flex;align-items:center;justify-content:space-between}
.ech-cours ul{margin:6px 0 0;padding:0 0 0 4px;list-style:none;display:flex;flex-direction:column;gap:8px}
.ech-cours li{font-size:15px;line-height:1.5}
/* questions */
.ech-opts{display:flex;flex-direction:column;gap:8px;margin:6px 0}
.ech-opt{font:inherit;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:11px 14px;cursor:pointer;font-size:15.5px;line-height:1.4;color:#1a1430;transition:transform .15s,border-color .15s}
.ech-opt:hover:not(:disabled){border-color:#0f766e;transform:translateX(2px)}
.ech-opt.bon{background:#dcfce7;border-color:#16a34a}
.ech-opt.faux{background:#fee2e2;border-color:#f87171;opacity:.8}
.ech-opt:disabled{cursor:default}
.ech-opt.petit{padding:7px 12px;font-size:14.5px;text-align:center}
.ech-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0}
.ech-champ{font:inherit;font-size:18px;padding:9px 12px;border:2px solid #94a3b8;border-radius:10px;width:140px;max-width:100%}
.ech-unite{font-weight:700}
.ech-saisie .pdl-cta.petit{margin:0}
.ech-relier{display:flex;flex-direction:column;gap:10px}
.ech-rel-l{border:2px solid #e2e8f0;border-radius:12px;padding:9px 12px}
.ech-rel-l.bon{border-color:#16a34a;background:#f0fdf4}
.ech-rel-l.faux{border-color:#f59e0b;background:#fffbeb}
.ech-rel-t{font-size:15.5px;line-height:1.45;margin-bottom:7px}
.ech-rel-b{display:flex;gap:6px;flex-wrap:wrap}
.ech-table-cadre{overflow-x:auto;margin:8px 0;max-width:100%}
.ech-table{border-collapse:collapse;font-size:14.5px;min-width:100%}
.ech-table th,.ech-table td{border:1px solid #cbd5e1;padding:6px 9px;text-align:center}
.ech-table th{background:#f1f5f9;text-align:left}
/* deux producteurs, des curseurs d'heures */
.ech-prods{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0}
.ech-prod{background:#f8fafc;border:2px solid #e2e8f0;border-radius:14px;padding:9px 10px;display:flex;flex-direction:column;gap:7px;min-width:0}
.ech-prod-nom{font-weight:800;font-size:16px;display:flex;flex-direction:column}
.ech-prod-id{display:flex;align-items:center;gap:10px}
.ech-portrait{width:56px;height:56px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.ech-prod-nom small{font-weight:600;font-size:12.5px;color:#475569}
.ech-horloge{display:flex;height:26px;border-radius:99px;overflow:hidden;border:2px solid #475569;background:#e2e8f0;font-size:12.5px;font-weight:700}
.ech-h-pan,.ech-h-pot{display:flex;align-items:center;justify-content:center;white-space:nowrap;overflow:hidden;transition:width .6s cubic-bezier(.2,.8,.2,1)}
.ech-h-pan{background:#fcd34d;color:#78350f}
.ech-h-pot{background:#fda4af;color:#881337}
.ech-curseur{display:flex;flex-direction:column;gap:6px;font-size:15px;margin:4px 0}
.ech-curseur input{width:100%;height:32px;accent-color:#0f766e}
.ech-piles{display:flex;flex-direction:column;gap:4px}
.ech-pile-l{display:flex;flex-direction:column;gap:1px;font-size:13.5px;min-height:38px}
.ech-icones{display:flex;gap:1px;flex-wrap:wrap}
.ech-icones i{font-style:normal;font-size:17px;line-height:1.15;animation:ech-pop .35s ease both}
@keyframes ech-pop{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:none}}
.ech-delta{margin:0;font-size:13.5px;line-height:1.4;background:#fffbeb;border-radius:8px;padding:5px 8px}
.ech-cout-opp{margin:0;font-size:13.5px;line-height:1.4;background:#ecfeff;border-radius:8px;padding:5px 8px}
.ech-total{background:#f0fdf4;border:2px solid #86efac;border-radius:12px;padding:8px 12px;font-size:15.5px;margin:6px 0}
.ech-total small{color:#475569}
/* taux d'échange */
.ech-rail{position:relative;height:62px;margin:2px 8px 10px}
.ech-rail-ligne{position:absolute;left:0;right:0;top:30px;height:6px;background:#cbd5e1;border-radius:99px}
.ech-zone{position:absolute;top:24px;height:18px;background:rgba(34,197,94,.45);border:2px solid #16a34a;border-radius:8px;animation:ech-zone .8s ease both;z-index:1}
.ech-zone span{position:absolute;left:50%;top:20px;transform:translateX(-50%);font-size:12px;font-weight:800;color:#166534;white-space:nowrap}
@keyframes ech-zone{from{opacity:0;transform:scaleX(.2)}to{opacity:1;transform:none}}
.ech-repere{position:absolute;top:20px;width:2px;height:26px;background:#334155;z-index:2}
.ech-repere span{position:absolute;left:50%;top:-18px;transform:translateX(-50%);font-size:12px;font-weight:700;white-space:nowrap;color:#1e293b}
.ech-repere.haut span{top:30px}
.ech-essai{position:absolute;top:27px;width:12px;height:12px;border-radius:50%;margin-left:-6px;background:#f59e0b;border:2px solid #fff;z-index:3}
.ech-essai.bon{background:#16a34a}
.ech-gains{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:6px 0}
.ech-gain{border:2px solid #e2e8f0;border-radius:12px;padding:7px 10px;display:flex;justify-content:space-between;align-items:center;font-size:15px;transition:background .3s,border-color .3s}
.ech-gain b{font-size:18px}
.ech-gain.plus{background:#f0fdf4;border-color:#16a34a}
.ech-gain.moins{background:#fef2f2;border-color:#ef4444}
/* tri exportation / importation */
.ech-pile{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0;min-height:44px}
.ech-chip{font:inherit;color:#1a1430;background:#fff;border:2px solid #94a3b8;border-radius:99px;padding:7px 12px;cursor:pointer;font-size:15px;display:flex;gap:6px;align-items:center;transition:transform .15s}
.ech-chip.sel{border-color:#1d4ed8;background:#dbeafe;transform:scale(1.05)}
.ech-cases{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}
.ech-case{font:inherit;color:#1a1430;background:#f8fafc;border:2px dashed #94a3b8;border-radius:14px;padding:8px;min-height:130px;display:flex;flex-direction:column;gap:6px;align-items:stretch;text-align:left;cursor:pointer}
.ech-case:disabled{cursor:default}
.ech-case.attend{border-color:#1d4ed8;background:#eff6ff}
.ech-case b{font-size:15px;text-align:center}
.ech-case-def{font-size:12.5px;line-height:1.3;color:#475569;text-align:center}
.ech-pose{background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:3px 6px;font-size:13px;line-height:1.3;animation:ech-entree .4s ease}
/* mots de tous les jours, titres de la leçon, légende du circuit */
.ech-mots{background:#fefce8;border:1px solid #fde68a;border-radius:10px;padding:9px 12px;margin:8px 0;font-size:15px;line-height:1.45}
.ech-mots ul{margin:5px 0 0;padding-left:18px}
.ech-cours .ech-cours-repere{font-size:14.5px;color:#9a3412;margin-top:2px}
.ech-num{color:#9a3412}
.ech-legende{list-style:none;margin:4px 0 8px;padding:8px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;font-size:13.5px;line-height:1.4;display:flex;flex-direction:column;gap:3px}
/* circuit */
.ech-cadre{position:relative;width:100%;max-width:560px;margin:6px auto;padding-bottom:min(68.75%,385px);background:#f8fafc;border:2px solid #e2e8f0;border-radius:14px;overflow:hidden}
.ech-svg{position:absolute;left:0;top:0;width:100%;height:100%}
.ech-lib{font-weight:700;paint-order:stroke;stroke:#f8fafc;stroke-width:3px}
.ech-noeud{position:absolute;transform:translate(-50%,-50%);font:inherit;color:#1a1430;background:#fff;border:2px solid #94a3b8;border-radius:12px;padding:4px 6px;width:27%;max-width:130px;display:flex;flex-direction:column;align-items:center;gap:1px;cursor:pointer;line-height:1.15;transition:transform .15s,border-color .2s,background .2s}
.ech-noeud span{font-size:20px}
.ech-noeud b{font-size:11.5px;text-align:center}
.ech-noeud small{font-size:9.5px;color:#475569;text-align:center;line-height:1.1;font-weight:600}
.ech-noeud em{font-style:normal;font-size:10.5px;font-weight:800;color:#fff;border-radius:99px;padding:0 6px;background:#0f766e}
.ech-noeud:disabled{cursor:default}
.ech-noeud.donne{border-color:#0f766e;background:#ccfbf1;transform:translate(-50%,-50%) scale(1.06)}
.ech-noeud.recoit{border-color:#b45309;background:#fef3c7;transform:translate(-50%,-50%) scale(1.06)}
.ech-noeud.recoit em{background:#b45309}
.ech-legende-d summary{cursor:pointer;font-weight:700;font-size:14px;color:#475569;margin:4px 0}
.ech-mission{position:sticky;top:0;z-index:5;background:#faf5ff;border:2px solid #ddd6fe;border-radius:12px;padding:8px 12px;margin:8px 0}
.ech-mission-n{font-size:12.5px;font-weight:800;color:#6d28d9;text-transform:uppercase;letter-spacing:.03em}
.ech-mission-t{margin:4px 0;font-size:16px;font-weight:700;line-height:1.4}
.ech-etape{margin:2px 0 6px;font-size:14.5px;color:#475569}
.ech-type{display:flex;gap:8px;flex-wrap:wrap}
/* le troc */
.ech-bourse{display:flex;gap:10px;flex-wrap:wrap;align-items:center;background:#fffbeb;border:2px solid #fde68a;border-radius:12px;padding:7px 12px;font-size:15.5px;font-weight:700;position:relative}
.ech-bourse-arg{margin-left:auto}
.ech-piece{position:absolute;left:30%;top:0;font-style:normal;font-size:22px;animation:ech-vol 1.2s ease-out both}
@keyframes ech-vol{0%{opacity:0;transform:translate(-40px,30px) scale(.4)}40%{opacity:1}100%{opacity:0;transform:translate(170px,-6px) scale(1.1)}}
.ech-etals{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}
.ech-etal{font:inherit;color:#1a1430;background:#fff;border:2px solid #cbd5e1;border-radius:14px;padding:9px 6px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;transition:transform .2s,border-color .2s,background .3s}
.ech-etal:hover:not(:disabled){transform:translateY(-2px);border-color:#b45309}
.ech-etal-ico{font-size:34px}
.ech-etal b{font-size:14.5px}
.ech-etal small{font-size:12.5px;color:#475569;line-height:1.3}
.ech-etal-q{color:#b45309!important;font-weight:700}
.ech-etal.refus{background:#fef2f2;border-color:#f87171;cursor:default}
.ech-bulle{font-style:normal;font-size:13px;line-height:1.35;font-weight:700;color:#991b1b;animation:ech-entree .4s ease}
/* accueil et bilan */
.ech-accueil{background:rgba(255,255,255,.96);color:#1a1430;border-radius:20px;padding:22px 20px;max-width:720px;width:100%;box-shadow:0 18px 50px rgba(0,0,0,.35)}
.ech-accueil-sur{font-size:12.5px;color:#475569;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.ech-accueil h1{font-family:Fraunces,Georgia,serif;font-size:30px;margin:6px 0 10px;line-height:1.15}
.ech-accueil h1 span{display:block;font-size:16px;font-weight:600;color:#0f766e;margin-top:4px}
.ech-accueil p{font-size:16px;line-height:1.55}
.ech-accueil-l{list-style:none;padding:0;margin:10px 0;display:flex;flex-direction:column;gap:5px;font-size:15.5px}
.ech-accueil-btns{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.ech-bilan h2{font-family:Fraunces,Georgia,serif;margin:0 0 8px}
.ech-retiens{background:#f0f9ff;border-radius:12px;padding:10px 14px;text-align:left;margin:10px 0}
.ech-retiens ul{margin:6px 0 0;padding-left:20px;font-size:15.5px;line-height:1.5}
@media (max-width:560px){
  .ech-prods{grid-template-columns:1fr}
  .ech-etals{gap:5px}.ech-etal{padding:7px 3px}.ech-etal-ico{font-size:28px}.ech-etal b{font-size:13px}.ech-etal small{font-size:11.5px}
  .ech-cases{gap:5px}.ech-case{min-height:110px}
  .ech-noeud{width:30%;padding:3px 3px}.ech-noeud span{font-size:17px}.ech-noeud b{font-size:10.5px}
  .ech-gains{grid-template-columns:1fr}
  .ech-accueil h1{font-size:25px}.ech-panneau{padding:13px 12px}
}
@media (prefers-reduced-motion:reduce){
  .ech-icones i,.ech-pose,.ech-panneau,.ech-zone,.ech-piece,.ech-bulle{animation:none}
  .ech-h-pan,.ech-h-pot,.ech-gain,.ech-noeud,.ech-chip,.ech-etal{transition:none}
}
/* ==== ech : fin des styles ==== */
/* ==== dc3 : debut des styles ==== */
.dc3 { position: relative; }
.dc3-panneau { max-width: 720px; margin-left: auto; margin-right: auto; }
.dc3-panneau-large { max-width: 860px; }
.dc3-photo-ico { display: inline-flex; align-items: center; justify-content: center; font-size: 34px; background: #e2e8f0; border-radius: 50%; width: 56px; height: 56px; flex: none; }
.dc3-perso-img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.dc3-perso-img.dc3-photo-ico { width: 84px; height: 84px; font-size: 44px; }
.dc3-hud-ico { font-size: 26px; }
.dc3-badge-dec { display: inline-block; background: #e0f2fe; color: #075985; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.dc3-badge-note { background: #fef3c7; color: #92400e; }
.dc3-fil { display: flex; gap: 6px; justify-content: center; padding: 6px 0 10px; flex-wrap: wrap; }
.dc3-fil span { opacity: .45; font-size: 18px; padding: 2px 6px; border-radius: 8px; }
.dc3-fil .dc3-fil-fait { opacity: .9; background: rgba(255,255,255,.55); }
.dc3-fil .dc3-fil-ici { opacity: 1; background: #fff; box-shadow: 0 0 0 2px #2563eb; }
.dc3-consigne { font-size: 15px; line-height: 1.45; margin: 4px 0 10px; }
.dc3-prog { font-size: 13px; color: #475569; margin-bottom: 6px; font-weight: 600; }
.dc3-note { font-size: 14px; color: #475569; margin: 8px 0; }

/* Le dossier posé sur le bureau */
.dc3-dossier { position: relative; background: #fffbeb; border: 1px solid #fcd34d; border-left: 6px solid #f59e0b; border-radius: 10px; padding: 12px 14px 12px 16px; margin: 8px 0 12px; box-shadow: 0 3px 8px rgba(0,0,0,.12); animation: dc3-pose .45s ease-out; }
.dc3-dossier p { margin: 4px 0 0; font-size: 16px; line-height: 1.45; color: #1e293b; }
.dc3-dossier-tete { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #b45309; }
.dc3-marque { position: absolute; right: 10px; bottom: 6px; border: 3px solid #b91c1c; color: #b91c1c; font-weight: 900; font-size: 15px; padding: 2px 10px; border-radius: 6px; transform: rotate(-9deg); animation: dc3-tampon .35s cubic-bezier(.2,1.6,.4,1); background: rgba(255,255,255,.6); }
@keyframes dc3-pose { from { opacity: 0; transform: translateY(-14px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes dc3-tampon { from { opacity: 0; transform: scale(2.2) rotate(-20deg); } to { opacity: 1; transform: scale(1) rotate(-9deg); } }

/* Aide, annexes, fiche, file d'attente, fin */
.dc3-aide { margin: 0 0 12px; border: 2px dashed #f59e0b; border-radius: 10px; background: #fffbeb; }
.dc3-aide-btn { width: 100%; text-align: left; background: transparent; border: 0; font: inherit; font-weight: 800; color: #92400e; padding: 10px 12px; cursor: pointer; }
.dc3-aide-corps { padding: 0 12px 12px; font-size: 14px; line-height: 1.45; }
.dc3-aide-o { display: flex; gap: 6px; flex-wrap: wrap; }
.dc3-aide-opt { padding: 8px 12px; font: inherit; border-radius: 8px; border: 2px solid #cbd5e1; background: #fff; cursor: pointer; }
.dc3-aide-opt.bon { border-color: #16a34a; background: #dcfce7; } .dc3-aide-opt.faux { border-color: #dc2626; background: #fee2e2; }
.dc3-aide-why { font-size: 14px; color: #334155; margin: 8px 0; }
.dc3-annexes { display: grid; gap: 8px; margin-bottom: 12px; }
.dc3-annexe { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; padding: 8px 12px; font-size: 14px; line-height: 1.4; }
.dc3-annexe p { margin: 4px 0 0; }
.dc3-file { display: flex; gap: 6px; justify-content: center; padding: 4px 8px; font-size: 22px; flex-wrap: wrap; }
.dc3-file-u { opacity: .55; transition: transform .4s, opacity .4s; }
.dc3-file-u.ici { opacity: 1; transform: scale(1.25); }
.dc3-file-u.parti { opacity: 1; }
.dc3-doc { padding: 4px; font-size: 15px; line-height: 1.55; }
.dc3-doc-tete { display: flex; flex-direction: column; border-bottom: 2px solid #1d4ed8; margin-bottom: 10px; padding-bottom: 6px; }
.dc3-doc-tete span { font-size: 13px; color: #475569; }
.dc3-fiche-mot { background: #dcfce7; padding: 0 5px; border-radius: 4px; }
.dc3-livre { list-style: none; padding: 0; margin: 0; }
.dc3-livre li { padding: 6px 0; border-bottom: 1px dashed #cbd5e1; }
.dc3-bravo { text-align: center; max-width: 520px; }
.dc3-bravo-score b { font-size: 44px; display: block; }
.dc3-fin { max-width: 760px; }
.dc3-fin-profil { background: #eff6ff; border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.dc3-fin-etapes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0; }
.dc3-petit { padding: 6px 10px; border-radius: 999px; border: 2px solid #cbd5e1; background: #fff; font: inherit; cursor: pointer; }
.dc3-tm-notion { margin: 8px 0 14px; font-weight: 700; }
.dc3-accueil-l { text-align: left; margin: 10px 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
/* Questions, boutons, choix (communs aux mécaniques) */
.dc3-question { background: #f1f5f9; border-radius: 12px; padding: 12px 14px; margin: 6px 0; }
.dc3-question p { margin: 0 0 10px; font-size: 16px; line-height: 1.4; }
.dc3-question p:last-child { margin-bottom: 0; }
.dc3-oui-non { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.dc3-bouton-yn { flex: 1 1 140px; padding: 12px 10px; font: inherit; font-weight: 700; border-radius: 10px; border: 2px solid #94a3b8; background: #fff; cursor: pointer; min-height: 48px; }
.dc3-bouton-yn:hover { border-color: #2563eb; background: #eff6ff; }
.dc3-bouton-yn.faux { border-color: #dc2626; background: #fee2e2; animation: dc3-tremble .45s linear; }
.dc3-choix4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 6px 0; }
.dc3-choix-n3 { grid-template-columns: 1fr; }
.dc3-choix { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; font: inherit; border-radius: 10px; border: 2px solid #94a3b8; background: #fff; cursor: pointer; min-height: 70px; text-align: center; }
.dc3-choix span { font-size: 24px; }
.dc3-choix b { font-size: 14px; }
.dc3-choix i { font-style: normal; font-size: 12px; color: #475569; }
.dc3-choix:hover:not(:disabled) { border-color: #2563eb; background: #eff6ff; }
.dc3-choix:disabled { cursor: default; }
.dc3-choix.faux { border-color: #dc2626; background: #fee2e2; animation: dc3-tremble .45s linear; }
.dc3-choix.bon { border-color: #16a34a; background: #dcfce7; }
@keyframes dc3-tremble { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-6px) rotate(-1.5deg); } 40% { transform: translateX(6px) rotate(1.5deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }

/* La frise de la vie d'une loi */
.dc3-frise-loi { position: relative; margin: 8px 0 12px; padding-bottom: 28px; }
.dc3-fl-ligne { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 5px solid #64748b; padding-top: 6px; }
.dc3-fl-noeud { text-align: center; font-size: 12px; color: #334155; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dc3-fl-noeud span { font-size: 26px; margin-top: -26px; background: #fff; border: 3px solid #64748b; border-radius: 50%; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; }
.dc3-fl-noeud i { font-style: normal; line-height: 1.2; }
.dc3-fl-loupe { position: absolute; bottom: 0; font-size: 30px; transform: translateX(-50%); transition: left .8s cubic-bezier(.3,1.3,.5,1); animation: dc3-pose .5s ease-out; }

/* Le circuit européen */
.dc3-bruxelles { background: #1d4ed8; color: #fff; font-weight: 700; text-align: center; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.dc3-flux { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; height: 26px; color: #94a3b8; font-size: 18px; }
.dc3-flux.va span { color: #1d4ed8; animation: dc3-descend .9s ease-in-out 2; }
@keyframes dc3-descend { 0% { transform: translateY(-8px); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }
.dc3-etats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.dc3-etat { background: #f8fafc; border: 2px solid #cbd5e1; border-radius: 10px; padding: 8px; min-height: 120px; font-size: 13px; transition: border-color .5s, background .5s; }
.dc3-etat.recoit { border-color: #1d4ed8; background: #eff6ff; }
.dc3-etat b { display: block; margin-bottom: 4px; font-size: 14px; }
.dc3-etat-doc span { display: block; margin-top: 4px; opacity: 0; animation: dc3-apparait .5s ease-out forwards; line-height: 1.3; }
.dc3-etat-doc .dc3-transpo { color: #b45309; font-weight: 700; }
.dc3-etat-doc .dc3-meme { color: #166534; font-weight: 700; }
@keyframes dc3-apparait { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* La pyramide et les duels */
.dc3-pyr { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 8px 0 12px; }
.dc3-pyr-niv { min-height: 40px; border: 2px dashed #94a3b8; border-radius: 8px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px 8px; font-size: 13px; background: #f8fafc; color: #64748b; transition: background .4s; }
.dc3-pyr-niv.pose { border: 2px solid #0d9488; background: #ccfbf1; color: #0f172a; font-weight: 700; animation: dc3-pose .45s ease-out; }
.dc3-pyr-niv.prochain { border-color: #f59e0b; background: #fffbeb; }
.dc3-cartes-pyr { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 8px; }
.dc3-cpyr { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; font: inherit; background: #fff; border: 2px solid #94a3b8; border-radius: 10px; cursor: pointer; text-align: center; }
.dc3-cpyr span { font-size: 24px; }
.dc3-cpyr b { font-size: 14px; }
.dc3-cpyr i { font-style: normal; font-size: 12px; color: #475569; }
.dc3-cpyr:hover { border-color: #0d9488; background: #f0fdfa; }
.dc3-cpyr.faux { border-color: #dc2626; background: #fee2e2; animation: dc3-tremble .45s linear; }
.dc3-duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 8px; margin: 10px 0; }
.dc3-vs { align-self: center; font-size: 26px; }
.dc3-regle { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 12px; font: inherit; background: #fff; border: 2px solid #94a3b8; border-radius: 12px; cursor: pointer; min-height: 110px; transition: transform .8s, opacity .8s, background .4s; }
.dc3-regle b { font-size: 14px; color: #1e293b; }
.dc3-regle span { font-size: 14px; line-height: 1.35; }
.dc3-regle:hover:not(:disabled) { border-color: #2563eb; background: #eff6ff; }
.dc3-regle:disabled { cursor: default; }
.dc3-regle.faux { border-color: #dc2626; background: #fee2e2; animation: dc3-tremble .45s linear; }
.dc3-regle.gagne { border-color: #16a34a; background: #dcfce7; transform: translateY(-6px) scale(1.03); }
.dc3-regle.perd { opacity: .55; transform: translateY(14px) scale(.96); border-style: dashed; }

/* La jauge */
.dc3-jauge-bloc { margin: 12px 0 10px; }
.dc3-jauge-barre { position: relative; height: 34px; background: #e2e8f0; border-radius: 17px; overflow: visible; border: 2px solid #94a3b8; }
.dc3-jauge-zone { position: absolute; top: 0; right: 0; bottom: 0; background: repeating-linear-gradient(45deg, #bbf7d0, #bbf7d0 6px, #dcfce7 6px, #dcfce7 12px); border-radius: 0 15px 15px 0; opacity: .8; }
.dc3-jauge-plein { position: absolute; top: 0; left: 0; bottom: 0; background: #3b82f6; border-radius: 15px; transition: width 1s cubic-bezier(.3,1.2,.5,1), background .5s; }
.dc3-jauge-plein.bon { background: #16a34a; } .dc3-jauge-plein.mauvais { background: #dc2626; }
.dc3-jauge-loi { position: absolute; top: -6px; bottom: -6px; width: 0; border-left: 3px solid #78350f; }
.dc3-jauge-loi i { position: absolute; top: -20px; left: 6px; font-style: normal; font-size: 12px; font-weight: 800; color: #78350f; white-space: nowrap; }
.dc3-jauge-legende { display: flex; justify-content: space-between; font-size: 13px; color: #475569; margin-top: 6px; }

/* La relecture */
.dc3-texte-rel { font-size: 16px; line-height: 2.1; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 10px; padding: 12px 14px; margin: 8px 0; }
.dc3-rel-mot { font: inherit; border: 0; border-bottom: 2px dotted #94a3b8; background: transparent; padding: 1px 3px; cursor: pointer; border-radius: 4px; color: inherit; }
.dc3-rel-mot:hover { background: #fde68a; }
.dc3-rel-mot.ouvert { background: #fde047; border-bottom-color: #ca8a04; }
.dc3-rel-mot.corrige { background: #bbf7d0; border-bottom: 2px solid #16a34a; cursor: default; font-weight: 700; }
.dc3-rel-mot.juste { background: #e0f2fe; border-bottom: 2px solid #0284c7; }
.dc3-aide-why-bis { font-size: 14px; }
@media (max-width: 480px) {
  .dc3-cartes-pyr { grid-template-columns: 1fr 1fr; }
  .dc3-duel { grid-template-columns: 1fr; }
  .dc3-vs { justify-self: center; }
  .dc3-etats { gap: 4px; }
  .dc3-etat { padding: 6px; font-size: 12px; }
  .dc3-fl-noeud { font-size: 11px; }
  .dc3-fl-noeud span { width: 36px; height: 36px; font-size: 20px; margin-top: -22px; }
}

@media (max-width: 480px) {
}
@media (prefers-reduced-motion: reduce) {
  .dc3 *, .dc3 *::before, .dc3 *::after { animation: none !important; transition: none !important; }
}
.dc3-accueil { background: rgba(8, 14, 30, .72); padding: 18px 22px; border-radius: 16px; backdrop-filter: blur(3px); }
/* ==== dc3 : fin des styles ==== */
/* ==== dc2 : debut des styles ==== */
.dc2 { position: relative; }
.dc2-panneau { max-width: 720px; margin-left: auto; margin-right: auto; }
.dc2-panneau-large { max-width: 860px; }
.dc2-photo-ico { display: inline-flex; align-items: center; justify-content: center; font-size: 34px; background: #e2e8f0; border-radius: 50%; width: 56px; height: 56px; flex: none; }
.dc2-perso-img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.dc2-perso-img.dc2-photo-ico { width: 84px; height: 84px; font-size: 44px; }
.dc2-hud-ico { font-size: 26px; }
.dc2-badge-dec { display: inline-block; background: #e0f2fe; color: #075985; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.dc2-badge-note { background: #fef3c7; color: #92400e; }
.dc2-fil { display: flex; gap: 6px; justify-content: center; padding: 6px 0 10px; flex-wrap: wrap; }
.dc2-fil span { opacity: .45; font-size: 18px; padding: 2px 6px; border-radius: 8px; }
.dc2-fil .dc2-fil-fait { opacity: .9; background: rgba(255,255,255,.55); }
.dc2-fil .dc2-fil-ici { opacity: 1; background: #fff; box-shadow: 0 0 0 2px #2563eb; }
.dc2-consigne { font-size: 15px; line-height: 1.45; margin: 4px 0 10px; }
.dc2-prog { font-size: 13px; color: #475569; margin-bottom: 6px; font-weight: 600; }
.dc2-note { font-size: 14px; color: #475569; margin: 8px 0; }

/* Le dossier posé sur le bureau */
.dc2-dossier { position: relative; background: #fffbeb; border: 1px solid #fcd34d; border-left: 6px solid #f59e0b; border-radius: 10px; padding: 12px 14px 12px 16px; margin: 8px 0 12px; box-shadow: 0 3px 8px rgba(0,0,0,.12); animation: dc2-pose .45s ease-out; }
.dc2-dossier p { margin: 4px 0 0; font-size: 16px; line-height: 1.45; color: #1e293b; }
.dc2-dossier-tete { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #b45309; }
.dc2-marque { position: absolute; right: 10px; bottom: 6px; border: 3px solid #b91c1c; color: #b91c1c; font-weight: 900; font-size: 15px; padding: 2px 10px; border-radius: 6px; transform: rotate(-9deg); animation: dc2-tampon .35s cubic-bezier(.2,1.6,.4,1); background: rgba(255,255,255,.6); }
@keyframes dc2-pose { from { opacity: 0; transform: translateY(-14px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes dc2-tampon { from { opacity: 0; transform: scale(2.2) rotate(-20deg); } to { opacity: 1; transform: scale(1) rotate(-9deg); } }

/* Les piliers */
.dc2-toit { text-align: center; font-weight: 800; letter-spacing: .1em; font-size: 13px; color: #fff; background: #64748b; padding: 8px 6px; border-radius: 10px 10px 0 0; clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%); transition: background .6s; }
.dc2-toit.ok { background: linear-gradient(90deg, #2563eb, #dc2626, #16a34a, #9333ea); }
.dc2-pils { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.dc2-pil { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; padding: 12px 6px 14px; min-height: 130px; border: 2px solid #cbd5e1; border-radius: 6px; background: linear-gradient(#f8fafc, #e2e8f0); cursor: pointer; font: inherit; color: #0f172a; transition: transform .25s, box-shadow .25s, background .4s; }
.dc2-pil:disabled { cursor: default; }
.dc2-pil-ico { font-size: 28px; }
.dc2-pil b { font-size: 15px; }
.dc2-pil i { font-size: 12px; font-style: normal; color: #475569; line-height: 1.25; text-align: center; }
.dc2-pil:not(:disabled):hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0,0,0,.18); border-color: var(--c); }
.dc2-pil.tient { background: linear-gradient(#fff, color-mix(in srgb, var(--c) 22%, #fff)); border-color: var(--c); }
.dc2-pil.juste { animation: dc2-leve .5s ease-out; }
.dc2-pil.tremble, .dc2-pil.tremble:not(:disabled):hover { animation: dc2-tremble .45s linear; border-color: #dc2626; background: #fee2e2; }
@keyframes dc2-tremble { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-6px) rotate(-1.5deg); } 40% { transform: translateX(6px) rotate(1.5deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes dc2-leve { from { transform: translateY(8px); } to { transform: none; } }
.dc2-tampon .dc2-toit { display: none; }
.dc2-tampon .dc2-pil { min-height: 78px; flex-direction: row; justify-content: center; gap: 8px; border-radius: 12px; border-width: 3px; border-color: var(--c); background: #fff; }
.dc2-tampon .dc2-pil.tient { background: color-mix(in srgb, var(--c) 18%, #fff); }
.dc2-tampon .dc2-pils { grid-template-columns: repeat(2, 1fr); }

/* Le détecteur */
.dc2-chemin { display: flex; align-items: center; justify-content: center; gap: 0; margin: 6px 0 10px; }
.dc2-noeud { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e2e8f0; color: #64748b; font-weight: 800; transition: background .4s, color .4s, transform .4s; }
.dc2-noeud.ici { background: #0891b2; color: #fff; transform: scale(1.1); }
.dc2-noeud.verdict.ici { background: #16a34a; font-size: 18px; }
.dc2-fil2 { width: 60px; height: 6px; background: #cbd5e1; transition: background .5s; }
.dc2-fil2.oui, .dc2-fil2.non { background: #0891b2; }
.dc2-question { background: #f1f5f9; border-radius: 12px; padding: 12px 14px; margin: 6px 0; }
.dc2-question p { margin: 0 0 10px; font-size: 16px; line-height: 1.4; }
.dc2-oui-non { display: flex; gap: 10px; flex-wrap: wrap; }
.dc2-bouton-yn { flex: 1 1 140px; padding: 12px 10px; font: inherit; font-weight: 700; border-radius: 10px; border: 2px solid #94a3b8; background: #fff; cursor: pointer; min-height: 48px; }
.dc2-bouton-yn:hover { border-color: #2563eb; background: #eff6ff; }
.dc2-bouton-yn.faux { border-color: #dc2626; background: #fee2e2; animation: dc2-tremble .45s linear; }
.dc2-verdict { display: flex; align-items: center; gap: 10px; background: #dcfce7; border: 2px solid #16a34a; border-radius: 12px; padding: 10px 14px; margin: 8px 0; font-size: 17px; animation: dc2-pose .4s ease-out; }
.dc2-verdict span { font-size: 26px; }

/* La balance */
.dc2-bal { position: relative; height: 240px; margin: 14px 0 12px; isolation: isolate; }
.dc2-bal-fleau { position: absolute; left: 4%; right: 4%; top: 80px; height: 10px; background: #78350f; border-radius: 6px; transition: transform 1s cubic-bezier(.3,1.4,.5,1); transform: rotate(var(--a, 0deg)); transform-origin: 50% 50%; z-index: 1; }
.dc2-bal-plateau { position: absolute; top: 10px; width: 44%; min-height: 70px; background: #fff; border: 2px solid #78350f; border-radius: 0 0 14px 14px; padding: 8px; font-size: 13px; text-align: center; display: flex; flex-direction: column; gap: 4px; justify-content: center; transition: transform 1s; transform: rotate(calc(var(--a, 0deg) * -1)); transform-origin: 50% 0; }
.dc2-bal-plateau.g { left: -2%; }
.dc2-bal-plateau.d { right: -2%; }
.dc2-bal-plateau b { color: #78350f; font-size: 13px; }
.dc2-bal-plateau span { font-size: 14px; color: #1e293b; }
.dc2-bal-pied { position: absolute; left: 50%; top: 84px; width: 10px; height: 150px; margin-left: -5px; background: #a16207; border-radius: 4px; z-index: 0; }
.dc2-choix4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.dc2-choix2 { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 8px 0; }
.dc2-choix { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; font: inherit; border-radius: 10px; border: 2px solid #94a3b8; background: #fff; cursor: pointer; min-height: 70px; }
.dc2-choix span { font-size: 24px; }
.dc2-choix i { font-style: normal; font-size: 12px; color: #475569; }
.dc2-choix:hover:not(:disabled) { border-color: #2563eb; background: #eff6ff; }
.dc2-choix.faux { border-color: #dc2626; background: #fee2e2; animation: dc2-tremble .45s linear; }
.dc2-choix.bon { border-color: #16a34a; background: #dcfce7; }
.dc2-choix.large { flex-direction: row; justify-content: flex-start; text-align: left; padding: 12px 14px; font-weight: 600; }

/* Calmer et ranger */
.dc2-chemin-l { margin: 2px 0 6px; font-size: 12px; color: #475569; text-align: center; }
.dc2-thermo { display: flex; align-items: flex-end; gap: 10px; margin: 4px 0 16px; }
.dc2-thermo-l { font-size: 13px; font-weight: 700; color: #475569; writing-mode: horizontal-tb; }
.dc2-thermo-b { width: 26px; height: 90px; background: #e2e8f0; border-radius: 13px; overflow: hidden; display: flex; align-items: flex-end; border: 2px solid #94a3b8; }
.dc2-thermo-b span { display: block; width: 100%; transition: height 1s cubic-bezier(.3,1.2,.5,1), background .6s; }
.dc2-thermo-b .vert { background: #16a34a; } .dc2-thermo-b .orange { background: #f59e0b; } .dc2-thermo-b .rouge { background: #dc2626; }
.dc2-decision { background: #f8fafc; border: 2px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.dc2-decision.fait { border-color: #16a34a; background: #f0fdf4; }
.dc2-decision p { margin: 0 0 8px; font-size: 15px; }
.dc2-decision-ok { font-size: 14px; color: #166534; }
.dc2-bail { background: #fff; border: 2px solid #64748b; border-radius: 10px; padding: 10px 14px; margin: 8px 0; transition: border-color .5s, background .5s; }
.dc2-bail-tete { font-weight: 800; margin-bottom: 6px; }
.dc2-bail ul { list-style: none; padding: 0; margin: 0; }
.dc2-bail li { padding: 6px 0; border-top: 1px dashed #cbd5e1; font-size: 14px; transition: opacity .4s; }
.dc2-bail li.vide { color: #b91c1c; }
.dc2-bail li.rep { color: #166534; animation: dc2-pose .4s ease-out; }
.dc2-curseur { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; margin: 8px 0; }
.dc2-curseur input { flex: 1; min-height: 32px; }

/* La frise */
.dc2-frise-cartes { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 10px; }
.dc2-fcarte { position: relative; display: block; text-align: left; padding: 12px 14px 12px 44px; font: inherit; background: #fff; border: 2px solid #94a3b8; border-radius: 10px; cursor: pointer; font-size: 15px; line-height: 1.35; }
.dc2-fcarte:hover { border-color: #2563eb; }
.dc2-fcarte.posee { background: #eff6ff; border-color: #2563eb; }
.dc2-fnum { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: #2563eb; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.dc2-frise-ligne { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border-top: 4px solid #94a3b8; padding-top: 8px; margin-bottom: 10px; }
.dc2-frise-case { text-align: center; font-size: 12px; color: #475569; padding: 4px; border-radius: 8px; }
.dc2-frise-case.pleine span { display: block; font-size: 15px; font-weight: 800; color: #1e293b; }
.dc2-frise-case.juste { background: #dcfce7; }

/* Aide, annexes, fiche, file d'attente, fin */
.dc2-aide { margin: 0 0 12px; border: 2px dashed #f59e0b; border-radius: 10px; background: #fffbeb; }
.dc2-aide-btn { width: 100%; text-align: left; background: transparent; border: 0; font: inherit; font-weight: 800; color: #92400e; padding: 10px 12px; cursor: pointer; }
.dc2-aide-corps { padding: 0 12px 12px; font-size: 14px; line-height: 1.45; }
.dc2-aide-o { display: flex; gap: 6px; flex-wrap: wrap; }
.dc2-aide-opt { padding: 8px 12px; font: inherit; border-radius: 8px; border: 2px solid #cbd5e1; background: #fff; cursor: pointer; }
.dc2-aide-opt.bon { border-color: #16a34a; background: #dcfce7; } .dc2-aide-opt.faux { border-color: #dc2626; background: #fee2e2; }
.dc2-aide-why { font-size: 14px; color: #334155; margin: 8px 0; }
.dc2-annexes { display: grid; gap: 8px; margin-bottom: 12px; }
.dc2-annexe { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; padding: 8px 12px; font-size: 14px; line-height: 1.4; }
.dc2-annexe p { margin: 4px 0 0; }
.dc2-file { display: flex; gap: 6px; justify-content: center; padding: 4px 8px; font-size: 22px; flex-wrap: wrap; }
.dc2-file-u { opacity: .55; transition: transform .4s, opacity .4s; }
.dc2-file-u.ici { opacity: 1; transform: scale(1.25); }
.dc2-file-u.parti { opacity: 1; }
.dc2-doc { padding: 4px; font-size: 15px; line-height: 1.55; }
.dc2-doc-tete { display: flex; flex-direction: column; border-bottom: 2px solid #1d4ed8; margin-bottom: 10px; padding-bottom: 6px; }
.dc2-doc-tete span { font-size: 13px; color: #475569; }
.dc2-fiche-mot { background: #dcfce7; padding: 0 5px; border-radius: 4px; }
.dc2-livre { list-style: none; padding: 0; margin: 0; }
.dc2-livre li { padding: 6px 0; border-bottom: 1px dashed #cbd5e1; }
.dc2-bravo { text-align: center; max-width: 520px; }
.dc2-bravo-score b { font-size: 44px; display: block; }
.dc2-fin { max-width: 760px; }
.dc2-fin-profil { background: #eff6ff; border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.dc2-fin-etapes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0; }
.dc2-petit { padding: 6px 10px; border-radius: 999px; border: 2px solid #cbd5e1; background: #fff; font: inherit; cursor: pointer; }
.dc2-tm-notion { margin: 8px 0 14px; font-weight: 700; }
.dc2-accueil-l { text-align: left; margin: 10px 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
@media (max-width: 480px) {
  .dc2-pils { grid-template-columns: repeat(2, 1fr); }
  .dc2-choix4 { grid-template-columns: 1fr 1fr; }
  .dc2-bal { height: 205px; margin: 8px 0 8px; }
  .dc2-bal-fleau { top: 58px; }
  .dc2-bal-plateau { min-height: 58px; padding: 5px; }
  .dc2-bal-pied { top: 62px; height: 120px; }
  .dc2-bal-plateau { width: 47%; font-size: 12px; }
  .dc2-fil2 { width: 34px; }
}
/* ---- Chapitre 2 : le choix, la réaction, le projecteur, le brouillon, le contrôle, le surligneur ---- */
.dc2-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; }
.dc2-cat { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 8px; min-height: 96px; font: inherit; border: 2px solid #cbd5e1; border-radius: 12px; background: #fff; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; }
.dc2-cat:not(:disabled):hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0,0,0,.18); border-color: var(--c); }
.dc2-cat:disabled { cursor: default; }
.dc2-cat-ico { font-size: 28px; }
.dc2-cat b { font-size: 15px; text-align: center; }
.dc2-cat i { font-style: normal; font-size: 12px; color: #475569; text-align: center; line-height: 1.25; }
.dc2-cat.juste { border-color: var(--c); background: linear-gradient(#fff, color-mix(in srgb, var(--c) 22%, #fff)); animation: dc2-leve .5s ease-out; }
.dc2-cat.tremble, .dc2-cat.tremble:not(:disabled):hover { animation: dc2-tremble .45s linear; border-color: #dc2626; background: #fee2e2; }
.dc2-mot-cible { font-size: 14px; color: #92400e; margin: 4px 0 0; }
.dc2-regles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin: 8px 0; }
.dc2-regle { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; font: inherit; text-align: left; border: 2px solid #cbd5e1; border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s, transform .2s; }
.dc2-regle:hover { border-color: #2563eb; transform: translateY(-2px); }
.dc2-regle.ici { border-color: #2563eb; background: #eff6ff; }
.dc2-regle.vue i { color: #15803d; }
.dc2-regle-ico { font-size: 26px; }
.dc2-regle i { font-style: normal; font-size: 12px; color: #475569; }
.dc2-scene { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #f8fafc; border: 2px solid #94a3b8; border-radius: 14px; padding: 12px 14px; margin: 8px 0; animation: dc2-pose .4s ease-out; }
.dc2-scene.etat { border-color: #dc2626; background: #fef2f2; }
.dc2-scene-moi { font-weight: 700; }
.dc2-scene-fleche { font-size: 26px; color: #475569; }
.dc2-scene-qui { display: flex; flex-direction: column; gap: 3px; flex: 1 1 220px; }
.dc2-scene-qui b { font-size: 18px; }
.dc2-scene-qui em { font-size: 13px; color: #475569; font-style: normal; font-weight: 700; }
.dc2-proj-textes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; margin: 8px 0; }
.dc2-proj-texte { display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; padding: 10px 12px; border: 2px solid #cbd5e1; border-radius: 12px; background: #fffbeb; cursor: pointer; }
.dc2-proj-texte span { font-size: 14px; line-height: 1.4; color: #334155; }
.dc2-proj-texte.ici { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.25); }
.dc2-proj-jours { display: flex; gap: 8px; margin: 4px 0 8px; flex-wrap: wrap; }
.dc2-proj-jour { padding: 8px 14px; font: inherit; font-weight: 700; border: 2px solid #94a3b8; border-radius: 999px; background: #fff; cursor: pointer; min-height: 44px; }
.dc2-proj-jour.ici { border-color: #0891b2; background: #cffafe; }
.dc2-foule { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; padding: 14px 8px; background: #0f172a; border-radius: 14px; margin: 6px 0; justify-items: center; }
.dc2-pers { font-size: 34px; opacity: .85; transition: opacity .5s, filter .5s, transform .5s; }
.dc2-foule.eclaire .dc2-pers { opacity: .18; filter: grayscale(1); }
.dc2-foule.eclaire .dc2-pers.lit { opacity: 1; filter: none; transform: scale(1.18); text-shadow: 0 0 18px #fde047; }
.dc2-proj-lecture { background: #ecfeff; border-left: 5px solid #0891b2; padding: 8px 12px; border-radius: 8px; font-size: 15px; line-height: 1.45; }
.dc2-feuille { position: relative; background: #fffef7; border: 1px solid #d6d3d1; border-radius: 6px; padding: 14px 16px 18px; margin: 8px 0; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.dc2-feuille-tete { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: #78716c; border-bottom: 2px solid #78716c; padding-bottom: 4px; margin-bottom: 8px; }
.dc2-phrase { font-size: 17px; line-height: 1.7; margin: 0; }
.dc2-trou-phrase { border-bottom: 2px dashed #94a3b8; color: #94a3b8; padding: 0 4px; }
.dc2-trou-phrase.plein { border-bottom-color: #16a34a; color: #14532d; animation: dc2-pose .35s ease-out; }
.dc2-trou-phrase.attend { border-bottom-color: #f59e0b; color: #b45309; }
.dc2-morceaux { display: flex; flex-direction: column; gap: 8px; }
.dc2-morceau { text-align: left; font: inherit; padding: 12px 14px; border: 2px solid #94a3b8; border-radius: 10px; background: #fff; cursor: pointer; min-height: 48px; line-height: 1.35; }
.dc2-morceau:hover { border-color: #2563eb; background: #eff6ff; }
.dc2-morceau.tremble { border-color: #dc2626; background: #fee2e2; animation: dc2-tremble .45s linear; }
.dc2-courrier { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; padding: 10px 14px; margin: 8px 0; box-shadow: 0 3px 8px rgba(0,0,0,.1); }
.dc2-courrier p { margin: 4px 0 0; font-size: 16px; line-height: 1.45; }
.dc2-lampes { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.dc2-lampe { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #e2e8f0; color: #475569; font-size: 14px; }
.dc2-lampe span { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; font-weight: 800; }
.dc2-lampe.ici { background: #fef3c7; color: #92400e; box-shadow: 0 0 0 2px #f59e0b; }
.dc2-lampe.oui { background: #dcfce7; color: #14532d; }
.dc2-lampe.non { background: #fee2e2; color: #7f1d1d; }
.dc2-verdict.non { background: #fee2e2; border-color: #dc2626; }
.dc2-article { background: #eff6ff; border-left: 6px solid #2563eb; border-radius: 10px; padding: 10px 14px; margin: 8px 0; }
.dc2-article.ecart { background: #faf5ff; border-left-color: #7c3aed; }
.dc2-article p { margin: 4px 0 0; font-size: 15px; line-height: 1.45; }
.dc2-mots-cles { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.dc2-mot-cle { padding: 3px 10px; border-radius: 999px; background: #e2e8f0; font-size: 13px; font-weight: 700; color: #475569; }
.dc2-mot-cle.ici { background: #fde68a; color: #78350f; box-shadow: 0 0 0 2px #f59e0b; }
.dc2-mot-cle.ok { background: #bbf7d0; color: #14532d; }
.dc2-faits { line-height: 2.1; font-size: 16px; }
.dc2-seg { cursor: pointer; border-radius: 6px; padding: 2px 4px; background: #fefce8; border-bottom: 2px solid #eab308; transition: background .2s; }
.dc2-seg:hover, .dc2-seg:focus { background: #fef9c3; outline: none; }
.dc2-seg.pris { background: #bbf7d0; border-bottom-color: #16a34a; }
.dc2-seg.tremble { background: #fee2e2; animation: dc2-tremble .45s linear; }
.dc2-cherche { background: #fef3c7; border-radius: 8px; padding: 8px 12px; margin: 6px 0; font-size: 15px; }
.dc2-trouves { list-style: none; padding: 0; margin: 6px 0; font-size: 14px; line-height: 1.4; }
.dc2-trouves li { padding: 3px 0; }
.dc2-barre { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 4px 8px; font-size: 13px; }
.dc2-barre-t { font-weight: 700; background: rgba(255,255,255,.75); border-radius: 999px; padding: 3px 10px; }
.dc2-barre-c { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.6); opacity: .65; transition: transform .4s, background .4s; }
.dc2-barre-c.ici { opacity: 1; transform: scale(1.2); box-shadow: 0 0 0 2px #f59e0b; }
.dc2-barre-c.fait { opacity: 1; background: #bbf7d0; color: #14532d; font-weight: 800; }
.dc2-arrete { background: #fffef7; border: 1px solid #d6d3d1; border-radius: 6px; padding: 12px 14px; margin: 10px 0; text-align: left; }
.dc2-arrete h4 { text-align: center; margin: 6px 0; letter-spacing: .05em; }
.dc2-arrete .vide { color: #94a3b8; font-style: italic; }
.dc2-signature { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-top: 12px; font-size: 13px; }
.dc2-paraphe { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 26px; color: #1e3a8a; transform: rotate(-4deg); animation: dc2-tampon .6s ease-out; }
.dc2-marque-signe { position: absolute; left: 10px; bottom: 0; border: 3px solid #b91c1c; color: #b91c1c; font-weight: 900; padding: 2px 12px; border-radius: 6px; transform: rotate(-9deg); animation: dc2-tampon .6s ease-out; }
@keyframes dc2-leve { 0% { transform: translateY(6px); } 60% { transform: translateY(-6px); } 100% { transform: none; } }
@media (max-width: 520px) { .dc2-foule { grid-template-columns: repeat(4, 1fr); } .dc2-pers { font-size: 30px; } .dc2-cats { grid-template-columns: repeat(2, 1fr); } }
/* Le bouton « J'ai compris » reste visible en bas de l'écran, même sur un rappel long. */
.dc2-lecon > .pdl-cta { position: sticky; bottom: 10px; z-index: 3; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
@media (prefers-reduced-motion: reduce) {
  .dc2 *, .dc2 *::before, .dc2 *::after { animation: none !important; transition: none !important; }
}
/* ==== dc2 : fin des styles ==== */
/* ==== eca : debut des styles ==== */
/* Économie 1re, chapitre 1 — activités ECO1-12 à 15 et jeu ECO1-16 — préfixes eca- et lob- */
.eca-hud{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;background:rgba(15,23,42,.92);color:#fff;font-size:14px}
.eca-hud button{background:rgba(255,255,255,.12);border:0;color:#fff;border-radius:10px;width:38px;height:38px;font-size:17px;cursor:pointer}
.eca-fil{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.eca-fil span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:16px;background:rgba(255,255,255,.35);border:2px solid transparent}
.eca-fil span.fait{background:#16a34a}
.eca-fil span.ici{background:#fbbf24;transform:scale(1.15);box-shadow:0 0 0 3px rgba(251,191,36,.35)}
.eca-fil span.clic{cursor:pointer}
.eca-titre-etape{color:#fff;font-weight:700;font-size:15px;text-shadow:0 1px 6px rgba(0,0,0,.7);text-align:center}
.eca-panneau{background:rgba(255,255,255,.97);color:#1a1430;border-radius:18px;padding:16px 18px;max-width:820px;width:100%;box-shadow:0 12px 34px rgba(0,0,0,.28);animation:eca-entree .4s ease}
@keyframes eca-entree{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.eca-badge-dec{display:inline-block;background:#e0f2fe;color:#075985;border-radius:99px;padding:3px 12px;font-size:12.5px;font-weight:700;margin-bottom:8px}
.eca-badge-dec.ent{background:#fef9c3;color:#854d0e}
.eca-badge-dec.defi{background:#dcfce7;color:#166534}
.eca-ex-titre{font-family:Fraunces,Georgia,serif;font-size:20px;font-weight:700;margin-bottom:6px}
.eca-q-tete{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.eca-q-tete .eca-ex-titre{font-size:15px;margin:0;color:#475569}
.eca-consigne{margin:6px 0 10px;font-size:16px;line-height:1.5;font-weight:600}
.eca-rappel{background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;padding:9px 12px;font-size:15px;line-height:1.5;margin:6px 0}
.eca-etape{margin:8px 0;padding:10px 12px;border-radius:12px;background:#f1f5f9}
.eca-formule{font-size:14.5px;background:#f8fafc;border-radius:8px;padding:6px 10px;margin:4px 0}
.eca-note{font-size:14px;color:#475569;margin:8px 0}
.eca-cta{margin-top:12px}
.eca-aide{background:#fefce8;border:1px solid #fde68a;border-radius:10px;padding:6px 12px;margin:6px 0 10px}
.eca-aide summary{cursor:pointer;font-weight:700;color:#854d0e}
.eca-aide p{margin:8px 0 4px;font-size:15px;line-height:1.5}
.eca-why{margin-top:10px}
.eca-bonne{margin-top:6px}
.eca-ko{color:#92400e;font-weight:600}
.eca-doc{background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:8px 10px;margin:6px 0}
.eca-doc-titre{font-weight:700;font-size:14.5px;margin-bottom:4px}
.eca-doc table{border-collapse:collapse;width:100%;font-size:14.5px}
.eca-doc th{text-align:left;font-weight:500;padding:3px 6px 3px 0}
.eca-doc td{text-align:right;font-weight:800;white-space:nowrap;padding:3px 0 3px 6px}
/* leçon */
.eca-lecon-tete{display:flex;align-items:center;justify-content:space-between;color:#475569;font-weight:700;font-size:14px}
.eca-lecon h3{font-family:Fraunces,Georgia,serif;font-size:23px;margin:6px 0 10px}
.eca-points{list-style:none;padding:0;margin:8px 0;display:flex;flex-direction:column;gap:8px}
.eca-points li{font-size:15.5px;line-height:1.5;padding:8px 11px;border-radius:10px;background:#f8fafc}
.eca-points li.clair{background:#f0f9ff}
.eca-points li.cours{background:#fff7ed;border:1px solid #fed7aa}
/* questions */
.eca-opts{display:flex;flex-direction:column;gap:8px;margin:6px 0}
.eca-opt{font:inherit;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:11px 14px;cursor:pointer;font-size:15.5px;line-height:1.4;color:#1a1430;transition:transform .15s,border-color .15s}
.eca-opt:hover:not(:disabled){border-color:#0f766e;transform:translateX(2px)}
.eca-opt.bon{background:#dcfce7;border-color:#16a34a}
.eca-opt.faux{background:#fee2e2;border-color:#f87171;opacity:.8}
.eca-opt:disabled{cursor:default}
.eca-opt.petit{padding:7px 12px;font-size:14.5px;text-align:center}
.eca-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0}
.eca-champ{font:inherit;font-size:18px;padding:9px 12px;border:2px solid #94a3b8;border-radius:10px;width:140px;max-width:100%}
.eca-unite{font-weight:700}
.eca-saisie .pdl-cta.petit{margin:0}
.eca-classer{display:flex;flex-direction:column;gap:10px}
.eca-cl-l{border:2px solid #e2e8f0;border-radius:12px;padding:9px 12px}
.eca-cl-l.bon{border-color:#16a34a;background:#f0fdf4}
.eca-cl-l.faux{border-color:#f59e0b;background:#fffbeb}
.eca-cl-t{font-size:15.5px;line-height:1.45;margin-bottom:7px;font-weight:600}
.eca-cl-b{display:flex;gap:6px;flex-wrap:wrap}
/* trois questions */
.eca-trois-cible{background:#eef2ff;border-radius:10px;padding:9px 12px;font-size:16px;margin:6px 0}
.eca-trois-hist{margin:6px 0;padding-left:20px;font-size:14.5px;line-height:1.45}
.eca-trois-hist li.rate{color:#92400e}
.eca-trois-hist small{color:#64748b}
.eca-trois-etape{border-left:4px solid #0f766e;padding-left:10px;margin:8px 0;animation:eca-entree .35s ease}
.eca-trois-titre{font-weight:800;font-size:16px;margin-bottom:4px}
/* panier */
.eca-bourse{margin:8px 0}
.eca-bourse-fond{height:20px;background:#e2e8f0;border-radius:99px;overflow:hidden}
.eca-bourse-fond i{display:block;height:100%;background:linear-gradient(90deg,#16a34a,#84cc16);border-radius:99px;transition:width .6s ease}
.eca-bourse-fond i.trop{background:#dc2626}
.eca-bourse b{display:block;text-align:center;margin-top:4px;font-size:16px}
.eca-envies{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0}
.eca-envie{font:inherit;color:#1a1430;background:#fff;border:2px solid #cbd5e1;border-radius:14px;padding:10px 6px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;transition:transform .2s,opacity .4s,filter .4s,border-color .2s}
.eca-envie:hover:not(:disabled){transform:translateY(-2px)}
.eca-envie-ico{font-size:32px}
.eca-envie b{font-size:14.5px}
.eca-envie.pris{border-color:#16a34a;background:#f0fdf4;transform:scale(1.03)}
.eca-envie.laisse{filter:grayscale(1);opacity:.55}
.eca-tag{font-style:normal;font-size:12px;font-weight:800;border-radius:99px;padding:2px 8px;background:#dcfce7;color:#166534}
/* fiche à trous */
.eca-fiche{padding-left:22px;display:flex;flex-direction:column;gap:12px;font-size:16px;line-height:1.55}
.eca-mot{display:inline-block;min-width:64px;text-align:center;border-bottom:3px solid #94a3b8;color:#94a3b8;font-weight:800}
.eca-mot.ok{color:#166534;border-color:#16a34a}
.eca-mots{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.eca-mot-b{font:inherit;font-size:14.5px;background:#fff;border:2px solid #94a3b8;border-radius:99px;padding:5px 13px;cursor:pointer}
.eca-mot-b.faux{background:#fee2e2;border-color:#f87171;opacity:.7}
/* animations qui montrent la notion */
.eca-viz{background:#f8fafc;border-radius:12px;padding:10px;margin:8px 0}
.eca-flux{display:flex;align-items:center;gap:6px;justify-content:space-between}
.eca-flux-ag{display:flex;flex-direction:column;align-items:center;font-size:12.5px;text-align:center;min-width:74px}
.eca-flux-ag span{font-size:34px}
.eca-flux-voie{flex:1;display:flex;flex-direction:column;gap:12px;font-size:12px;min-width:0}
.eca-flux-rail{position:relative;height:28px;border-bottom:3px dashed #94a3b8}
.eca-flux-rail small{position:absolute;bottom:-18px;left:0;right:0;text-align:center;color:#475569}
.eca-flux-rail.bas{margin-top:4px}
.eca-piece{position:absolute;left:0;top:0;font-style:normal;font-size:24px;animation:eca-va 2.6s linear infinite}
.eca-piece.retour{animation-name:eca-vient;left:auto;right:0}
@keyframes eca-va{0%{left:0;opacity:0}10%{opacity:1}90%{opacity:1}100%{left:calc(100% - 26px);opacity:0}}
@keyframes eca-vient{0%{right:0;opacity:0}10%{opacity:1}90%{opacity:1}100%{right:calc(100% - 26px);opacity:0}}
.eca-prix{display:flex;flex-direction:column;gap:10px}
.eca-prix-l span{font-weight:700;font-size:14px}
.eca-barres{display:flex;flex-direction:column;gap:4px;margin:3px 0}
.eca-barres i{display:block;font-style:normal;font-size:12px;font-weight:700;color:#fff;padding:3px 8px;border-radius:6px;width:var(--w);white-space:nowrap;overflow:hidden;animation:eca-barre 1.2s ease both}
.eca-barres i.cout{background:#dc2626}
.eca-barres i.prix{background:#16a34a}
.eca-barres i.prix.zero{background:#64748b;min-width:44px}
@keyframes eca-barre{from{width:0}to{width:var(--w)}}
.eca-prix em{font-style:normal;font-size:13px;font-weight:700}
.eca-prix em.ok{color:#166534}.eca-prix em.non{color:#92400e}
.eca-rarete{display:flex;flex-direction:column;gap:10px}
.eca-rar-l{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700}
.eca-rar-l>span{width:78px}
.eca-rar-piste{position:relative;flex:1;height:22px;background:#e2e8f0;border-radius:99px;overflow:hidden}
.eca-rar-piste i{position:absolute;left:0;top:0;bottom:0;border-radius:99px}
.eca-rar-piste i.besoins{background:linear-gradient(90deg,#f59e0b,#dc2626);animation:eca-besoins 3.2s ease-in-out infinite}
.eca-rar-piste i.ressources{background:#0f766e;width:55%;animation:eca-ress 1.6s ease both}
.eca-rar-piste em{position:absolute;right:8px;top:2px;font-style:normal;font-size:12px;color:#fff}
.eca-rar-limite{position:absolute;left:55%;top:0;bottom:0;border-left:3px dashed #1a1430;padding-left:4px;font-size:11px;line-height:22px}
@keyframes eca-besoins{0%{width:10%}85%{width:100%}100%{width:100%}}
@keyframes eca-ress{from{width:0}to{width:55%}}
/* accueil et bilan */
.eca-accueil{background:rgba(255,255,255,.96);color:#1a1430;border-radius:20px;padding:22px 20px;max-width:720px;width:100%;box-shadow:0 18px 50px rgba(0,0,0,.35)}
.eca-accueil-sur{font-size:12.5px;color:#475569;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.eca-accueil h1{font-family:Fraunces,Georgia,serif;font-size:30px;margin:6px 0 10px;line-height:1.15}
.eca-accueil h1 span{display:block;font-size:16px;font-weight:600;color:#0f766e;margin-top:4px}
.eca-accueil p{font-size:16px;line-height:1.55}
.eca-accueil-l{list-style:none;padding:0;margin:10px 0;display:flex;flex-direction:column;gap:5px;font-size:15.5px}
.eca-accueil-btns{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.eca-guide{display:flex;gap:10px;align-items:flex-start;background:#f0fdfa;border-radius:12px;padding:10px 12px;margin:8px 0}
.eca-guide-ico{font-size:40px;line-height:1}
.eca-guide small{display:block;color:#475569;font-size:12.5px}
.eca-guide p{margin:4px 0 0;font-size:15.5px}
.eca-bilan h2{font-family:Fraunces,Georgia,serif;margin:0 0 8px}
.eca-retiens-fin{background:#f0f9ff;border-radius:12px;padding:10px 14px;text-align:left;margin:10px 0}
.eca-retiens-fin ul{margin:6px 0 0;padding-left:20px;font-size:15.5px;line-height:1.5}
/* le jeu : le bourg qui se construit */
.lob-hud{flex-wrap:wrap}
.lob-hud-b{display:flex;gap:6px}
.lob-briques{background:rgba(251,191,36,.25);border-radius:99px;padding:4px 12px;font-weight:800}
.lob-bourg{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:10px 0}
.lob-tuile{font:inherit;color:#1a1430;border:2px solid #cbd5e1;background:#fff;border-radius:14px;padding:10px 6px;display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;cursor:pointer;transition:transform .2s}
.lob-tuile b{font-size:13px;line-height:1.2}
.lob-tuile small{font-size:12px;color:#475569}
.lob-tuile-ico{font-size:34px}
.lob-tuile.libre{border-color:#84cc16;background:#f7fee7}
.lob-tuile.libre:hover{transform:translateY(-3px)}
.lob-tuile.chantier{border-color:#f59e0b;background:#fffbeb}
.lob-tuile.bati{border-color:#16a34a;background:#f0fdf4}
.lob-tuile.bati .lob-tuile-ico{animation:lob-pop .6s cubic-bezier(.3,1.6,.5,1) both}
.lob-tuile.ferme{opacity:.55;cursor:default}
.lob-tuile.ici{box-shadow:0 0 0 3px #fbbf24}
@keyframes lob-pop{from{transform:scale(.2);opacity:0}to{transform:none;opacity:1}}
.lob-bravo-ico{font-size:64px}
.lob-bravo-ico.bati{animation:lob-pop .8s cubic-bezier(.3,1.6,.5,1) both}
.eca-panier>.eca-cta{position:sticky;bottom:8px;z-index:3;box-shadow:0 6px 18px rgba(0,0,0,.25)}
@media (max-width:560px){
  .eca-cl-b .eca-opt.petit{flex:1 1 44%;min-height:44px}
  .eca-envies{gap:5px}.eca-envie{padding:8px 3px}.eca-envie-ico{font-size:26px}.eca-envie b{font-size:13px}
  .eca-accueil h1{font-size:25px}.eca-panneau{padding:13px 12px}
  .lob-bourg{grid-template-columns:repeat(2,1fr)}
  .eca-flux-ag{min-width:58px;font-size:11.5px}.eca-flux-ag span{font-size:28px}
}
@media (prefers-reduced-motion:reduce){
  .eca-piece,.eca-barres i,.eca-rar-piste i,.lob-tuile.bati .lob-tuile-ico,.lob-bravo-ico.bati,.eca-panneau,.eca-trois-etape{animation:none}
  .eca-piece{left:40%;opacity:1}.eca-piece.retour{left:auto;right:40%}
  .eca-rar-piste i.besoins{width:100%}.eca-bourse-fond i{transition:none}
}
/* ==== eca : fin des styles ==== */
/* ==== edc : debut des styles ==== */
/* Activités courtes d'Éco 1re, chapitre 2 — préfixe edc- */
.edc-hud{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;background:rgba(15,23,42,.92);color:#fff;font-size:14px}
.edc-hud button{background:rgba(255,255,255,.12);border:0;color:#fff;border-radius:10px;width:38px;height:38px;font-size:17px;cursor:pointer}
.edc-fil{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.edc-fil span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:16px;background:rgba(255,255,255,.35);border:2px solid transparent}
.edc-fil span.fait{background:#16a34a}
.edc-fil span.ici{background:#fbbf24;transform:scale(1.15);box-shadow:0 0 0 3px rgba(251,191,36,.35)}
.edc-fil span.clic{cursor:pointer}
.edc-titre-etape{color:#fff;font-weight:700;font-size:15px;text-shadow:0 1px 6px rgba(0,0,0,.7);text-align:center}
.edc-panneau{background:rgba(255,255,255,.97);color:#1a1430;border-radius:18px;padding:16px 18px;max-width:820px;width:100%;box-shadow:0 12px 34px rgba(0,0,0,.28);animation:edc-entree .4s ease}
@keyframes edc-entree{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.edc-badge-dec{display:inline-block;background:#e0f2fe;color:#075985;border-radius:99px;padding:3px 12px;font-size:12.5px;font-weight:700;margin-bottom:8px}
.edc-ex-titre{font-family:Fraunces,Georgia,serif;font-size:20px;font-weight:700;margin-bottom:6px}
.edc-q-tete{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.edc-q-tete .edc-ex-titre{font-size:15px;margin:0;color:#475569}
.edc-consigne{margin:6px 0 10px;font-size:16px;line-height:1.5;font-weight:600}
.edc-rappel{background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;padding:9px 12px;font-size:15px;line-height:1.5;margin:6px 0}
.edc-note{font-size:14px;color:#475569;margin:8px 0}
.edc-cta{margin-top:12px}
.edc-aide{background:#fefce8;border:1px solid #fde68a;border-radius:10px;padding:6px 12px;margin:6px 0}
.edc-aide summary{cursor:pointer;font-weight:700;color:#854d0e}
.edc-aide p{margin:8px 0 4px;font-size:15px;line-height:1.5}
.edc-why{margin-top:10px}
.edc-bonne{margin-top:6px}
.edc-ko{color:#92400e;font-weight:600}
/* leçon */
.edc-lecon-tete{display:flex;align-items:center;justify-content:space-between;color:#475569;font-weight:700;font-size:14px}
.edc-lecon h3{font-family:Fraunces,Georgia,serif;font-size:23px;margin:6px 0 10px}
.edc-veut{background:#f0f9ff;border-radius:10px;padding:10px 12px;font-size:16px;line-height:1.5;margin:8px 0}
.edc-ex{background:#f0fdf4;border-radius:10px;padding:10px 12px;font-size:16px;line-height:1.5;margin:8px 0}
.edc-cours{background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;padding:10px 12px;margin:8px 0}
.edc-cours-tete{display:flex;align-items:center;justify-content:space-between}
.edc-cours ul{margin:6px 0 0;padding:0 0 0 4px;list-style:none;display:flex;flex-direction:column;gap:8px}
.edc-cours li{font-size:15px;line-height:1.5}
/* questions */
.edc-opts{display:flex;flex-direction:column;gap:8px;margin:6px 0}
.edc-opt{font:inherit;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:11px 14px;cursor:pointer;font-size:15.5px;line-height:1.4;color:#1a1430;transition:transform .15s,border-color .15s}
.edc-opt:hover:not(:disabled){border-color:#0f766e;transform:translateX(2px)}
.edc-opt.bon{background:#dcfce7;border-color:#16a34a}
.edc-opt.faux{background:#fee2e2;border-color:#f87171;opacity:.8}
.edc-opt:disabled{cursor:default}
.edc-opt.petit{padding:7px 12px;font-size:14.5px;text-align:center}
.edc-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0}
.edc-champ{font:inherit;font-size:18px;padding:9px 12px;border:2px solid #94a3b8;border-radius:10px;width:140px;max-width:100%}
.edc-unite{font-weight:700}
.edc-saisie .pdl-cta.petit{margin:0}
.edc-relier{display:flex;flex-direction:column;gap:10px}
.edc-rel-l{border:2px solid #e2e8f0;border-radius:12px;padding:9px 12px}
.edc-rel-l.bon{border-color:#16a34a;background:#f0fdf4}
.edc-rel-l.faux{border-color:#f59e0b;background:#fffbeb}
.edc-rel-t{font-size:15.5px;line-height:1.45;margin-bottom:7px}
.edc-rel-b{display:flex;gap:6px;flex-wrap:wrap}
.edc-table-cadre{overflow-x:auto;margin:8px 0;max-width:100%}
.edc-table{border-collapse:collapse;font-size:14.5px;min-width:100%}
.edc-table th,.edc-table td{border:1px solid #cbd5e1;padding:6px 9px;text-align:center}
.edc-table th{background:#f1f5f9;text-align:left}
.edc-table td.edc-em{background:#fef3c7;font-weight:800}
/* diagrammes en barres */
.edc-chart{margin:10px 0}
.edc-plot{position:relative;display:flex;align-items:flex-end;gap:8px;height:130px;border-bottom:3px solid #475569;padding:0 6px}
.edc-barre-col{flex:1;height:100%;display:flex;align-items:flex-end;justify-content:center}
.edc-barre-col i{display:block;width:62%;max-width:54px;background:#94a3b8;border-radius:6px 6px 0 0;transition:height .7s cubic-bezier(.2,.8,.2,1)}
.edc-barre-col.vue i{background:#f59e0b}
.edc-barre-col.achetee i{background:#16a34a}
.edc-barre-col.courant i{background:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.3)}
.edc-barre-col.moins i{background:#16a34a}
.edc-barre-col.egal i{background:#f59e0b}
.edc-barre-col.plus i{background:#dc2626}
.edc-etiq{display:flex;gap:8px;padding:0 6px}
.edc-etiq div{flex:1;text-align:center;display:flex;flex-direction:column;font-size:13px;line-height:1.25}
.edc-etiq small{color:#64748b}
.edc-ligne-prix{position:absolute;left:0;right:0;border-top:3px dashed #dc2626;z-index:2;pointer-events:none}
.edc-ligne-prix span{position:absolute;right:0;top:-24px;background:#fee2e2;color:#991b1b;font-size:12.5px;font-weight:700;border-radius:6px;padding:1px 7px}
/* budget */
.edc-bourse{margin:8px 0}
.edc-bourse-fond{height:20px;background:#e2e8f0;border-radius:99px;overflow:hidden}
.edc-bourse-fond i{display:block;height:100%;background:linear-gradient(90deg,#16a34a,#84cc16);border-radius:99px;transition:width .8s ease}
.edc-bourse b{display:block;text-align:center;margin-top:4px;font-size:16px}
.edc-envies{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0}
.edc-envie{font:inherit;color:#1a1430;background:#fff;border:2px solid #cbd5e1;border-radius:14px;padding:10px 6px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;position:relative;transition:transform .2s,opacity .4s,filter .4s,border-color .2s}
.edc-envie:hover{transform:translateY(-2px)}
.edc-envie-ico{font-size:34px}
.edc-envie b{font-size:15px}
.edc-sat{font-size:12.5px;color:#475569}
.edc-sat-barre{display:block;width:80%;height:7px;background:#e2e8f0;border-radius:99px;overflow:hidden}
.edc-sat-barre i{display:block;height:100%;background:#0f766e}
.edc-envie.choisie{border-color:#16a34a;background:#f0fdf4;transform:scale(1.03)}
.edc-envie.laissee{filter:grayscale(1);opacity:.55}
.edc-envie.opp{border-color:#f59e0b;background:#fffbeb;animation:edc-lueur 1.4s ease-in-out infinite}
@keyframes edc-lueur{0%,100%{box-shadow:0 0 0 0 rgba(245,158,11,.5)}50%{box-shadow:0 0 0 8px rgba(245,158,11,0)}}
.edc-tag{font-style:normal;font-size:12px;font-weight:800;border-radius:99px;padding:2px 8px;background:#dcfce7;color:#166534}
.edc-tag.gris{background:#e2e8f0;color:#475569}
.edc-tag.etoile{background:#fde68a;color:#78350f}
/* glaces */
.edc-glaces-corps{display:flex;gap:12px;align-items:stretch}
.edc-glaces-corps .edc-chart{flex:1;margin:0;min-width:0}
.edc-jauge{width:74px;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;font-weight:700;text-align:center}
.edc-jauge-fond{width:34px;height:130px;background:#e2e8f0;border-radius:99px;overflow:hidden;display:flex;align-items:flex-end}
.edc-jauge-fond i{display:block;width:100%;background:linear-gradient(0deg,#ef4444,#f59e0b,#84cc16);border-radius:99px;transition:height .8s ease}
.edc-oui-non{display:flex;gap:8px;flex-wrap:wrap}
.edc-decision p{font-size:16px;line-height:1.5}
/* caisses */
.edc-pile{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0;min-height:44px}
.edc-chip{font:inherit;color:#1a1430;background:#fff;border:2px solid #94a3b8;border-radius:99px;padding:7px 12px;cursor:pointer;font-size:15px;display:flex;gap:6px;align-items:center;transition:transform .15s}
.edc-chip.sel{border-color:#0f766e;background:#ccfbf1;transform:scale(1.05)}
.edc-caisses-l{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0}
.edc-caisse{font:inherit;color:#1a1430;background:#f8fafc;border:2px dashed #94a3b8;border-radius:14px;padding:8px;min-height:120px;display:flex;flex-direction:column;gap:6px;align-items:stretch;text-align:left;cursor:pointer}
.edc-caisse:disabled{cursor:default}
.edc-caisse.attend{border-color:#0f766e;background:#f0fdfa}
.edc-caisse b{font-size:14px;text-align:center}
.edc-caisse-def{font-size:12px;line-height:1.3;color:#475569;text-align:center}
.edc-pose{background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:3px 6px;font-size:13px;line-height:1.3;animation:edc-entree .4s ease}
/* mélange */
.edc-curseur{display:flex;flex-direction:column;gap:6px;font-size:16px;margin:6px 0}
.edc-curseur input{width:100%;height:32px;accent-color:#15803d}
.edc-champ-ferme{background:#f0fdf4;border-radius:12px;padding:8px 10px;display:flex;flex-direction:column;gap:6px}
.edc-rang{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.edc-rang-nom{width:62px;font-size:13px;color:#475569;font-weight:700}
.edc-icones{display:flex;gap:2px;flex-wrap:wrap}
.edc-icones i{font-style:normal;font-size:24px;animation:edc-pop .35s ease both}
@keyframes edc-pop{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:none}}
.edc-prod{font-weight:800;color:#166534}
.edc-cout{margin:8px 0}
.edc-cout-fond{height:18px;background:#e2e8f0;border-radius:99px;overflow:hidden}
.edc-cout-fond i{display:block;height:100%;background:linear-gradient(90deg,#f59e0b,#dc2626);border-radius:99px;transition:width .6s ease}
.edc-cout b{display:block;margin-top:4px;font-size:15px}
.edc-vus{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}
.edc-vu{border:2px solid #e2e8f0;border-radius:10px;padding:6px 8px;display:flex;flex-direction:column;font-size:13px}
.edc-vu.oui{border-color:#94a3b8}
.edc-vu.mini{border-color:#16a34a;background:#f0fdf4}
.edc-vu em{font-style:normal;font-weight:800;color:#166534}
/* accueil et bilan */
.edc-accueil{background:rgba(255,255,255,.96);color:#1a1430;border-radius:20px;padding:22px 20px;max-width:720px;width:100%;box-shadow:0 18px 50px rgba(0,0,0,.35)}
.edc-accueil-sur{font-size:12.5px;color:#475569;font-weight:700;text-transform:uppercase;letter-spacing:.03em}
.edc-accueil h1{font-family:Fraunces,Georgia,serif;font-size:30px;margin:6px 0 10px;line-height:1.15}
.edc-accueil h1 span{display:block;font-size:16px;font-weight:600;color:#0f766e;margin-top:4px}
.edc-accueil p{font-size:16px;line-height:1.55}
.edc-accueil-l{list-style:none;padding:0;margin:10px 0;display:flex;flex-direction:column;gap:5px;font-size:15.5px}
.edc-accueil-btns{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.edc-bilan h2{font-family:Fraunces,Georgia,serif;margin:0 0 8px}
.edc-retiens{background:#f0f9ff;border-radius:12px;padding:10px 14px;text-align:left;margin:10px 0}
.edc-retiens ul{margin:6px 0 0;padding-left:20px;font-size:15.5px;line-height:1.5}
@media (max-width:560px){
  .edc-envies{gap:5px}.edc-envie{padding:8px 3px}.edc-envie-ico{font-size:28px}.edc-envie b{font-size:13.5px}
  .edc-caisses-l{grid-template-columns:1fr}.edc-caisse{min-height:70px}
  .edc-glaces-corps{gap:6px}.edc-jauge{width:58px;font-size:11px}
  .edc-accueil h1{font-size:25px}.edc-panneau{padding:13px 12px}
  .edc-plot,.edc-etiq{gap:4px}
}
@media (prefers-reduced-motion:reduce){
  .edc-envie.opp,.edc-icones i,.edc-pose,.edc-panneau{animation:none}
  .edc-barre-col i,.edc-bourse-fond i,.edc-jauge-fond i,.edc-cout-fond i{transition:none}
}
/* ==== edc : fin des styles ==== */
/* ==== bpr : debut des styles ==== */
/* « Bon pri, bon bouké ! » — Éco 1re, chapitre 2 — préfixe bpr- */
.bpr-hud{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;background:rgba(15,23,42,.92);color:#fff;font-size:14px;flex-wrap:wrap}
.bpr-hud button{background:rgba(255,255,255,.12);border:0;color:#fff;border-radius:10px;min-width:40px;height:40px;font-size:17px;cursor:pointer}
.bpr-prof{display:flex;align-items:center;gap:4px;font-size:13px}
.bpr-prof button{width:34px;min-width:34px;height:34px;font-size:14px}
.bpr-fil{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}
.bpr-fil span{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-size:17px;background:rgba(255,255,255,.4);border:2px solid transparent}
.bpr-fil span.fait{background:#16a34a}
.bpr-fil span.ici{background:#fbbf24;transform:scale(1.12);box-shadow:0 0 0 3px rgba(251,191,36,.35)}
.bpr-titre-etape{color:#fff;font-weight:700;font-size:15px;text-shadow:0 1px 6px rgba(0,0,0,.7);text-align:center}
.bpr-carnet{display:flex;flex-wrap:wrap;gap:6px 12px;justify-content:center;background:rgba(255,255,255,.93);color:#1a1430;border-radius:12px;padding:6px 12px;font-size:13.5px;max-width:820px;width:100%}
.bpr-panneau{background:rgba(255,255,255,.97);color:#1a1430;border-radius:18px;padding:16px 18px;max-width:820px;width:100%;box-sizing:border-box;box-shadow:0 12px 34px rgba(0,0,0,.28);animation:bpr-entree .4s ease}
@keyframes bpr-entree{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.bpr-ex-titre{font-family:Fraunces,Georgia,serif;font-size:20px;font-weight:700;margin-bottom:6px}
.bpr-consigne{margin:6px 0 10px;font-size:16px;line-height:1.5;font-weight:600}
.bpr-rappel{background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;padding:9px 12px;font-size:15px;line-height:1.5;margin:6px 0}
.bpr-note{font-size:14px;color:#475569;margin:8px 0}
.bpr-cta{margin-top:12px}
.bpr-btns{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.bpr-why{margin-top:10px;padding:10px 12px;border-radius:10px;font-size:15.5px;line-height:1.5}
.bpr-why.bon{background:#f0fdf4;border:1px solid #86efac}
.bpr-why.faux{background:#fffbeb;border:1px solid #fcd34d}
.bpr-bonne{margin-top:6px}
/* bulle d'un personnage */
.bpr-bulle{display:flex;gap:12px;align-items:flex-start;background:rgba(255,255,255,.96);color:#1a1430;border-radius:16px;padding:12px 14px;max-width:820px;width:100%;box-sizing:border-box;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.bpr-bulle-photo{position:relative;flex:0 0 72px;width:72px;height:72px;border-radius:50%;overflow:hidden;background:#fde68a;display:grid;place-items:center;font-size:36px}
.bpr-bulle-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.bpr-bulle-txt{flex:1;min-width:0}
.bpr-bulle-txt p{margin:4px 0 0;font-size:16px;line-height:1.5}
.bpr-bulle-txt small{color:#64748b}
/* leçon */
.bpr-lecon-tete{display:flex;align-items:center;justify-content:space-between;color:#475569;font-weight:700;font-size:14px}
.bpr-lecon h3{font-family:Fraunces,Georgia,serif;font-size:23px;margin:6px 0 10px}
.bpr-veut{background:#f0f9ff;border-radius:10px;padding:10px 12px;font-size:16px;line-height:1.55;margin:8px 0}
.bpr-ex{background:#f0fdf4;border-radius:10px;padding:10px 12px;font-size:16px;line-height:1.55;margin:8px 0}
.bpr-cours{background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;padding:10px 12px;margin:8px 0}
.bpr-cours-tete{cursor:pointer;min-height:40px;display:flex;align-items:center}
.bpr-cours ul{margin:6px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.bpr-cours li{font-size:15px;line-height:1.5}
/* aide */
.bpr-aide{background:#fefce8;border:1px solid #fde68a;border-radius:10px;padding:6px 12px;margin:6px 0}
.bpr-aide summary{cursor:pointer;font-weight:700;color:#854d0e;min-height:32px}
.bpr-aide p{margin:8px 0 4px;font-size:15px;line-height:1.5}
.bpr-mini{margin-top:8px;font-size:15px}
.bpr-mini-o{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}
/* questions */
.bpr-q-tete{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.bpr-q-titre{font-size:14px;color:#475569;font-weight:700}
.bpr-opts{display:flex;flex-direction:column;gap:8px;margin:6px 0}
.bpr-opt{font:inherit;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:11px 14px;min-height:44px;cursor:pointer;font-size:15.5px;line-height:1.4;color:#1a1430;transition:transform .15s,border-color .15s}
.bpr-opt:hover:not(:disabled){border-color:#0f766e;transform:translateX(2px)}
.bpr-opt.bon{background:#dcfce7;border-color:#16a34a}
.bpr-opt.faux{background:#fee2e2;border-color:#f87171;opacity:.85}
.bpr-opt:disabled{cursor:default}
.bpr-opt.petit{padding:7px 12px;font-size:14.5px;text-align:center;min-height:40px}
.bpr-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0}
.bpr-champ{font:inherit;font-size:18px;padding:9px 12px;border:2px solid #94a3b8;border-radius:10px;width:140px;max-width:100%;min-height:44px;box-sizing:border-box}
.bpr-unite{font-weight:700}
.bpr-saisie .pdl-cta.petit{margin:0}
.bpr-relier{display:flex;flex-direction:column;gap:10px}
.bpr-rel-l{border:2px solid #e2e8f0;border-radius:12px;padding:9px 12px}
.bpr-rel-l.bon{border-color:#16a34a;background:#f0fdf4}
.bpr-rel-l.faux{border-color:#f59e0b;background:#fffbeb}
.bpr-rel-t{font-size:15.5px;line-height:1.45;margin-bottom:7px}
.bpr-rel-b{display:flex;gap:6px;flex-wrap:wrap}
.bpr-carte{border:2px dashed #b45309;border-radius:14px;padding:8px 10px;background:#fffbeb;animation:bpr-retourne .6s ease}
@keyframes bpr-retourne{from{transform:rotateY(90deg);opacity:0}to{transform:none;opacity:1}}
.bpr-table-cadre{overflow-x:auto;margin:8px 0;max-width:100%}
.bpr-table{border-collapse:collapse;font-size:14.5px;min-width:100%}
.bpr-table th,.bpr-table td{border:1px solid #cbd5e1;padding:6px 9px;text-align:center}
.bpr-table th{background:#f1f5f9;text-align:left}
.bpr-table td.bpr-em{background:#fef3c7;font-weight:800}
.bpr-table td.bpr-cible{color:#15803d;font-weight:800}
/* 1. panier */
.bpr-bourse{margin:8px 0}
.bpr-bourse-fond{height:20px;background:#e2e8f0;border-radius:99px;overflow:hidden}
.bpr-bourse-fond i{display:block;height:100%;background:linear-gradient(90deg,#16a34a,#f59e0b);border-radius:99px;transition:width .6s ease}
.bpr-bourse b{display:block;text-align:center;margin-top:4px;font-size:15px}
.bpr-articles{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin:8px 0}
.bpr-article{font:inherit;display:flex;flex-direction:column;gap:3px;align-items:center;text-align:center;background:#fff;border:2px solid #cbd5e1;border-radius:14px;padding:10px 6px;min-height:104px;cursor:pointer;color:#1a1430;transition:transform .15s,border-color .15s}
.bpr-article-ico{font-size:30px}
.bpr-article b{font-size:14px;line-height:1.25}
.bpr-article.dans{border-color:#16a34a;background:#dcfce7;transform:translateY(-3px)}
.bpr-article.trop{opacity:.5;cursor:not-allowed}
.bpr-article em{font-size:12px;color:#991b1b;font-style:normal}
.bpr-coeurs{font-size:13px;letter-spacing:1px}
.bpr-trois{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:10px 0}
.bpr-trois div{background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;padding:8px 10px;display:flex;flex-direction:column;gap:3px;font-size:14.5px;line-height:1.4;animation:bpr-entree .5s ease}
.bpr-ticket{background:#fffdf5;border:1px dashed #94a3b8;border-radius:6px;padding:10px 14px;margin:10px auto;max-width:340px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13.5px;box-shadow:0 3px 10px rgba(0,0,0,.12)}
.bpr-ticket ul{list-style:none;margin:6px 0;padding:0}
.bpr-ticket li{display:flex;justify-content:space-between;gap:8px;border-bottom:1px dotted #cbd5e1;padding:2px 0}
.bpr-ticket-total{display:flex;justify-content:space-between;font-size:15px;margin-top:4px}
.bpr-ticket small{display:block;color:#64748b}
/* 2. balance */
.bpr-bal{margin:10px 0 4px;perspective:600px}
.bpr-bal-fleau{display:grid;grid-template-columns:1fr 1fr;gap:10px;transition:transform .9s cubic-bezier(.3,1.4,.5,1);transform-origin:50% 100%;border-bottom:6px solid #92400e;padding-bottom:6px}
.bpr-plat{background:#f8fafc;border:2px solid #cbd5e1;border-radius:14px;padding:8px;display:flex;flex-direction:column;gap:6px;font-size:14.5px;line-height:1.35}
.bpr-plat.gauche{background:#ecfdf5;border-color:#6ee7b7}
.bpr-plat small{font-weight:700;color:#475569}
.bpr-laisse{font:inherit;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:10px;padding:8px;min-height:60px;cursor:pointer;color:#1a1430;display:flex;flex-direction:column;gap:2px;font-size:14.5px}
.bpr-laisse span,.bpr-laisse em{font-size:12.5px;color:#64748b;font-style:normal}
.bpr-laisse.bon{background:#dcfce7;border-color:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.25)}
.bpr-laisse.faux{background:#fee2e2;border-color:#f87171}
.bpr-laisse:disabled{cursor:default}
/* 3. vase et marge */
.bpr-vase-corps{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin:8px 0}
.bpr-vase-v{flex:0 0 130px;text-align:center}
.bpr-vase-fleurs{display:flex;flex-wrap:wrap;justify-content:center;min-height:42px;font-size:24px}
.bpr-vase-fleurs span{opacity:.15;transform:scale(.6);transition:all .5s cubic-bezier(.3,1.5,.5,1)}
.bpr-vase-fleurs span.on{opacity:1;transform:none}
.bpr-vase-pot{font-size:44px;line-height:1}
.bpr-plaisir{flex:1;min-width:190px;display:flex;flex-direction:column;gap:5px;margin:6px 0}
.bpr-plaisir-l{display:grid;grid-template-columns:54px 1fr 44px;gap:6px;align-items:center;font-size:13.5px}
.bpr-plaisir-b{height:14px;background:#e2e8f0;border-radius:99px;overflow:hidden}
.bpr-plaisir-b i{display:block;height:100%;background:#f59e0b;border-radius:99px;transition:width .6s ease}
.bpr-plaisir-l.pris .bpr-plaisir-b i{background:#16a34a}
.bpr-prixtag{display:inline-block;background:#fee2e2;color:#991b1b;border-radius:10px;padding:4px 12px;font-size:17px;margin:4px 0}
.bpr-stepper{display:flex;align-items:center;justify-content:center;gap:14px;margin:10px 0}
.bpr-pm{width:52px;height:52px;border-radius:50%;border:2px solid #0f766e;background:#fff;font-size:26px;font-weight:700;cursor:pointer;color:#0f766e}
.bpr-pm:disabled{opacity:.35;cursor:default}
.bpr-stepper-n{text-align:center;font-size:18px;min-width:110px}
.bpr-stepper-n b{font-size:34px}
.bpr-stepper-n small{display:block;color:#475569;font-size:13.5px}
.bpr-cmp{border-radius:10px;padding:8px 12px;margin:6px 0;font-size:15px;line-height:1.45}
.bpr-cmp.bon{background:#f0fdf4;border:1px solid #86efac}
.bpr-cmp.faux{background:#fef2f2;border:1px solid #fca5a5}
/* 4. marché */
.bpr-jours{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.bpr-jour{font:inherit;flex:1 1 140px;min-height:44px;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:8px 10px;cursor:pointer;color:#1a1430;font-size:15px}
.bpr-jour.on{border-color:#0f766e;background:#ccfbf1;font-weight:700}
.bpr-scene{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0}
.bpr-seau,.bpr-foule{background:#f8fafc;border:2px solid #e2e8f0;border-radius:12px;padding:8px;min-height:96px;font-size:20px;line-height:1.2}
.bpr-seau div,.bpr-foule div{display:flex;flex-wrap:wrap;gap:1px}
.bpr-seau small,.bpr-foule small{display:block;font-size:12.5px;color:#475569;margin-top:4px}
.bpr-seau span{animation:bpr-pop .4s ease both}
.bpr-foule span{animation:bpr-pop .4s ease both}
@keyframes bpr-pop{from{transform:scale(.3);opacity:0}to{transform:none;opacity:1}}
.bpr-curseur{display:block;margin:10px 0}
.bpr-curseur input[type=range]{width:100%;height:36px;margin:4px 0}
.bpr-curseur-ext{display:flex;justify-content:space-between;color:#64748b}
.bpr-etiquette{background:#fef3c7;border:2px solid #f59e0b;border-radius:12px;padding:8px 14px;font-size:20px;text-align:center;margin:8px 0;transition:transform .25s}
.bpr-etiquette b{font-size:28px;color:#b45309}
/* 5. disjoncteurs et fonction */
.bpr-compteur{background:#f0fdf4;border:2px solid #86efac;border-radius:12px;padding:8px 12px;margin:8px 0;text-align:center;font-size:17px}
.bpr-compteur b{font-size:34px}
.bpr-compteur-b{height:12px;background:#e2e8f0;border-radius:99px;overflow:hidden;margin-top:6px}
.bpr-compteur-b i{display:block;height:100%;background:#16a34a;transition:width .7s ease}
.bpr-inter{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:8px 0}
.bpr-int{font:inherit;display:flex;flex-direction:column;gap:3px;align-items:center;text-align:center;background:#fff;border:2px solid #86efac;border-radius:14px;padding:10px 6px;min-height:100px;cursor:pointer;color:#1a1430}
.bpr-int span{font-size:28px}
.bpr-int b{font-size:14px;line-height:1.25}
.bpr-int em{font-size:12px;color:#475569;font-style:normal}
.bpr-int.off{background:#fee2e2;border-color:#f87171}
.bpr-fam{background:#ede9fe;color:#5b21b6;border-radius:99px;padding:1px 9px;font-size:12px;font-weight:700}
.bpr-familles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:8px 0}
.bpr-familles div{background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;padding:8px 10px;font-size:14.5px}
.bpr-familles ul{margin:4px 0 0;padding-left:18px}
.bpr-bottes{background:#f0fdf4;border:2px solid #86efac;border-radius:12px;padding:8px 12px;margin:8px 0;font-size:17px}
.bpr-bottes-n b{font-size:30px}
.bpr-bottes-ico{display:flex;flex-wrap:wrap;font-size:20px;min-height:26px}
.bpr-bottes-ico span{animation:bpr-pop .35s ease both}
/* 6. équipes */
.bpr-eq-liste{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:8px 0}
.bpr-eq{border:2px solid #cbd5e1;border-radius:14px;padding:10px;display:flex;flex-direction:column;gap:6px;background:#fff}
.bpr-eq.on{border-color:#16a34a;background:#f0fdf4}
.bpr-eq-comp{font-size:22px;display:flex;flex-wrap:wrap;gap:2px;align-items:center}
.bpr-eq-comp small{font-size:13px;color:#475569;flex-basis:100%}
.bpr-eq-barre{height:14px;background:#e2e8f0;border-radius:99px;overflow:hidden}
.bpr-eq-barre i{display:block;height:100%;background:#16a34a;border-radius:99px}
.bpr-eq-barre.anim i{animation:bpr-barre 2.2s ease-out}
@keyframes bpr-barre{from{width:0}to{width:100%}}
.bpr-eq-res{font-size:15px;min-height:22px}
/* 7. ligne de coupe */
.bpr-barres{position:relative;display:flex;align-items:flex-end;gap:6px;height:150px;border-bottom:3px solid #475569;padding:0 4px 0;margin:30px 0 4px}
.bpr-bcol{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;font-size:12px;position:relative}
.bpr-bcol i{display:block;width:70%;max-width:46px;background:#cbd5e1;border-radius:6px 6px 0 0;transition:height .5s ease,background .3s}
.bpr-bcol.coupee i{background:#16a34a}
.bpr-bcol.coupee.cher i{background:#dc2626}
.bpr-bcol b{font-size:12.5px}
.bpr-bcol small{color:#64748b;font-size:11.5px}
.bpr-rm{position:absolute;left:0;right:0;border-top:3px dashed #b45309;z-index:2;pointer-events:none}
.bpr-rm span{position:absolute;right:0;top:-24px;background:#fef3c7;color:#92400e;font-size:12.5px;font-weight:700;border-radius:6px;padding:1px 7px}
.bpr-courbe{width:100%;max-width:340px;display:block;margin:8px auto;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px}
/* bilan, carte qui se retourne, accueil, fin */
.bpr-retiens,.bpr-miroir{background:rgba(255,255,255,.12);border-radius:12px;padding:8px 12px;margin:8px 0;text-align:left}
.bpr-retiens p,.bpr-miroir p{margin:4px 0 0;line-height:1.5}
.bpr-recap{display:flex;flex-direction:column;gap:6px;margin:10px 0;text-align:left}
.bpr-recap-l{display:flex;align-items:center;justify-content:space-between;gap:8px;background:rgba(255,255,255,.12);border-radius:10px;padding:6px 10px;font-size:14.5px}
.bpr-recap-l.ok{background:rgba(34,197,94,.3)}
.bpr-flip-page{max-width:560px;margin:0 auto;padding:16px;color:#fff;text-align:center}
.bpr-flip{perspective:900px;margin:14px 0}
.bpr-flip-in{position:relative;transition:transform .9s;transform-style:preserve-3d;min-height:230px}
.bpr-flip.verso .bpr-flip-in{transform:rotateY(180deg)}
.bpr-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:16px;padding:14px;color:#1a1430;text-align:left;font-size:15.5px;line-height:1.5;box-sizing:border-box;overflow:auto}
.bpr-face.recto{background:#fef3c7;border:3px solid #f59e0b}
.bpr-face.verso{background:#dcfce7;border:3px solid #16a34a;transform:rotateY(180deg)}
.bpr-face ul{margin:8px 0 0;padding-left:18px}
.bpr-accueil{max-width:640px;margin:0 auto;padding:18px;color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.6)}
.bpr-accueil h1{font-family:Fraunces,Georgia,serif;font-size:30px;margin:8px 0}
.bpr-accueil h1 span{display:block;font-size:15px;font-weight:400;font-family:inherit;margin-top:6px}
.bpr-accueil-sur{font-size:13px;opacity:.9}
.bpr-accueil-l{list-style:none;padding:0;margin:10px 0;display:flex;flex-direction:column;gap:4px}
.bpr-accueil-btns{display:flex;gap:10px;flex-wrap:wrap}
.bpr-perso-ico{font-size:40px;display:block}
.bpr-accueil .bpr-note,.bpr-flip-page .bpr-note{color:#fff;opacity:.95}
.bpr-bal{overflow:hidden;padding:0 10px}
@media (max-width:420px){
  .bpr-table{font-size:12.5px}
  .bpr-table th,.bpr-table td{padding:4px 5px}
  .bpr-panneau{padding:12px 12px}
  .bpr-scene{grid-template-columns:1fr}
  .bpr-bal-fleau{grid-template-columns:1fr}
  .bpr-plaisir-l{grid-template-columns:48px 1fr 40px}
  .bpr-ex-titre{font-size:18px}
  .bpr-bulle-photo{flex-basis:56px;width:56px;height:56px;font-size:28px}
}
@media (prefers-reduced-motion:reduce){
  .bpr *{animation:none !important;transition:none !important}
  .bpr-flip.verso .bpr-flip-in{transform:none}
  .bpr-flip-in{min-height:0}
  .bpr-face{position:static;backface-visibility:visible;transform:none !important}
  .bpr-flip .bpr-face.verso{display:none}
  .bpr-flip.verso .bpr-face.recto{display:none}
  .bpr-flip.verso .bpr-face.verso{display:block}
}
/* ==== bpr : fin des styles ==== */
/* ==== dc1 : debut des styles ==== */
.dc1 { position: relative; }
.dc1-panneau { max-width: 720px; margin-left: auto; margin-right: auto; }
.dc1-panneau-large { max-width: 860px; }
.dc1-photo-ico { display: inline-flex; align-items: center; justify-content: center; font-size: 34px; background: #e2e8f0; border-radius: 50%; width: 56px; height: 56px; flex: none; }
.dc1-perso-img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.dc1-perso-img.dc1-photo-ico { width: 84px; height: 84px; font-size: 44px; }
.dc1-hud-ico { font-size: 26px; }
.dc1-badge-dec { display: inline-block; background: #e0f2fe; color: #075985; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.dc1-badge-note { background: #fef3c7; color: #92400e; }
.dc1-fil { display: flex; gap: 6px; justify-content: center; padding: 6px 0 10px; flex-wrap: wrap; }
.dc1-fil span { opacity: .45; font-size: 18px; padding: 2px 6px; border-radius: 8px; }
.dc1-fil .dc1-fil-fait { opacity: .9; background: rgba(255,255,255,.55); }
.dc1-fil .dc1-fil-ici { opacity: 1; background: #fff; box-shadow: 0 0 0 2px #2563eb; }
.dc1-consigne { font-size: 15px; line-height: 1.45; margin: 4px 0 10px; }
.dc1-prog { font-size: 13px; color: #475569; margin-bottom: 6px; font-weight: 600; }
.dc1-note { font-size: 14px; color: #475569; margin: 8px 0; }

/* Le dossier posé sur le bureau */
.dc1-dossier { position: relative; background: #fffbeb; border: 1px solid #fcd34d; border-left: 6px solid #f59e0b; border-radius: 10px; padding: 12px 14px 12px 16px; margin: 8px 0 12px; box-shadow: 0 3px 8px rgba(0,0,0,.12); animation: dc1-pose .45s ease-out; }
.dc1-dossier p { margin: 4px 0 0; font-size: 16px; line-height: 1.45; color: #1e293b; }
.dc1-dossier-tete { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #b45309; }
.dc1-marque { position: absolute; right: 10px; bottom: 6px; border: 3px solid #b91c1c; color: #b91c1c; font-weight: 900; font-size: 15px; padding: 2px 10px; border-radius: 6px; transform: rotate(-9deg); animation: dc1-tampon .35s cubic-bezier(.2,1.6,.4,1); background: rgba(255,255,255,.6); }
@keyframes dc1-pose { from { opacity: 0; transform: translateY(-14px) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
@keyframes dc1-tampon { from { opacity: 0; transform: scale(2.2) rotate(-20deg); } to { opacity: 1; transform: scale(1) rotate(-9deg); } }

/* Les piliers */
.dc1-toit { text-align: center; font-weight: 800; letter-spacing: .1em; font-size: 13px; color: #fff; background: #64748b; padding: 8px 6px; border-radius: 10px 10px 0 0; clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%); transition: background .6s; }
.dc1-toit.ok { background: linear-gradient(90deg, #2563eb, #dc2626, #16a34a, #9333ea); }
.dc1-pils { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.dc1-pil { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; padding: 12px 6px 14px; min-height: 130px; border: 2px solid #cbd5e1; border-radius: 6px; background: linear-gradient(#f8fafc, #e2e8f0); cursor: pointer; font: inherit; color: #0f172a; transition: transform .25s, box-shadow .25s, background .4s; }
.dc1-pil:disabled { cursor: default; }
.dc1-pil-ico { font-size: 28px; }
.dc1-pil b { font-size: 15px; }
.dc1-pil i { font-size: 12px; font-style: normal; color: #475569; line-height: 1.25; text-align: center; }
.dc1-pil:not(:disabled):hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0,0,0,.18); border-color: var(--c); }
.dc1-pil.tient { background: linear-gradient(#fff, color-mix(in srgb, var(--c) 22%, #fff)); border-color: var(--c); }
.dc1-pil.juste { animation: dc1-leve .5s ease-out; }
.dc1-pil.tremble, .dc1-pil.tremble:not(:disabled):hover { animation: dc1-tremble .45s linear; border-color: #dc2626; background: #fee2e2; }
@keyframes dc1-tremble { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-6px) rotate(-1.5deg); } 40% { transform: translateX(6px) rotate(1.5deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes dc1-leve { from { transform: translateY(8px); } to { transform: none; } }
.dc1-tampon .dc1-toit { display: none; }
.dc1-tampon .dc1-pil { min-height: 78px; flex-direction: row; justify-content: center; gap: 8px; border-radius: 12px; border-width: 3px; border-color: var(--c); background: #fff; }
.dc1-tampon .dc1-pil.tient { background: color-mix(in srgb, var(--c) 18%, #fff); }
.dc1-tampon .dc1-pils { grid-template-columns: repeat(2, 1fr); }

/* Le détecteur */
.dc1-chemin { display: flex; align-items: center; justify-content: center; gap: 0; margin: 6px 0 10px; }
.dc1-noeud { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e2e8f0; color: #64748b; font-weight: 800; transition: background .4s, color .4s, transform .4s; }
.dc1-noeud.ici { background: #0891b2; color: #fff; transform: scale(1.1); }
.dc1-noeud.verdict.ici { background: #16a34a; font-size: 18px; }
.dc1-fil2 { width: 60px; height: 6px; background: #cbd5e1; transition: background .5s; }
.dc1-fil2.oui, .dc1-fil2.non { background: #0891b2; }
.dc1-question { background: #f1f5f9; border-radius: 12px; padding: 12px 14px; margin: 6px 0; }
.dc1-question p { margin: 0 0 10px; font-size: 16px; line-height: 1.4; }
.dc1-oui-non { display: flex; gap: 10px; flex-wrap: wrap; }
.dc1-bouton-yn { flex: 1 1 140px; padding: 12px 10px; font: inherit; font-weight: 700; border-radius: 10px; border: 2px solid #94a3b8; background: #fff; cursor: pointer; min-height: 48px; }
.dc1-bouton-yn:hover { border-color: #2563eb; background: #eff6ff; }
.dc1-bouton-yn.faux { border-color: #dc2626; background: #fee2e2; animation: dc1-tremble .45s linear; }
.dc1-verdict { display: flex; align-items: center; gap: 10px; background: #dcfce7; border: 2px solid #16a34a; border-radius: 12px; padding: 10px 14px; margin: 8px 0; font-size: 17px; animation: dc1-pose .4s ease-out; }
.dc1-verdict span { font-size: 26px; }

/* La balance */
.dc1-bal { position: relative; height: 240px; margin: 14px 0 12px; isolation: isolate; }
.dc1-bal-fleau { position: absolute; left: 4%; right: 4%; top: 80px; height: 10px; background: #78350f; border-radius: 6px; transition: transform 1s cubic-bezier(.3,1.4,.5,1); transform: rotate(var(--a, 0deg)); transform-origin: 50% 50%; z-index: 1; }
.dc1-bal-plateau { position: absolute; top: 10px; width: 44%; min-height: 70px; background: #fff; border: 2px solid #78350f; border-radius: 0 0 14px 14px; padding: 8px; font-size: 13px; text-align: center; display: flex; flex-direction: column; gap: 4px; justify-content: center; transition: transform 1s; transform: rotate(calc(var(--a, 0deg) * -1)); transform-origin: 50% 0; }
.dc1-bal-plateau.g { left: -2%; }
.dc1-bal-plateau.d { right: -2%; }
.dc1-bal-plateau b { color: #78350f; font-size: 13px; }
.dc1-bal-plateau span { font-size: 14px; color: #1e293b; }
.dc1-bal-pied { position: absolute; left: 50%; top: 84px; width: 10px; height: 150px; margin-left: -5px; background: #a16207; border-radius: 4px; z-index: 0; }
.dc1-choix4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.dc1-choix2 { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 8px 0; }
.dc1-choix { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; font: inherit; border-radius: 10px; border: 2px solid #94a3b8; background: #fff; cursor: pointer; min-height: 70px; }
.dc1-choix span { font-size: 24px; }
.dc1-choix i { font-style: normal; font-size: 12px; color: #475569; }
.dc1-choix:hover:not(:disabled) { border-color: #2563eb; background: #eff6ff; }
.dc1-choix.faux { border-color: #dc2626; background: #fee2e2; animation: dc1-tremble .45s linear; }
.dc1-choix.bon { border-color: #16a34a; background: #dcfce7; }
.dc1-choix.large { flex-direction: row; justify-content: flex-start; text-align: left; padding: 12px 14px; font-weight: 600; }

/* Calmer et ranger */
.dc1-chemin-l { margin: 2px 0 6px; font-size: 12px; color: #475569; text-align: center; }
.dc1-thermo { display: flex; align-items: flex-end; gap: 10px; margin: 4px 0 16px; }
.dc1-thermo-l { font-size: 13px; font-weight: 700; color: #475569; writing-mode: horizontal-tb; }
.dc1-thermo-b { width: 26px; height: 90px; background: #e2e8f0; border-radius: 13px; overflow: hidden; display: flex; align-items: flex-end; border: 2px solid #94a3b8; }
.dc1-thermo-b span { display: block; width: 100%; transition: height 1s cubic-bezier(.3,1.2,.5,1), background .6s; }
.dc1-thermo-b .vert { background: #16a34a; } .dc1-thermo-b .orange { background: #f59e0b; } .dc1-thermo-b .rouge { background: #dc2626; }
.dc1-decision { background: #f8fafc; border: 2px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.dc1-decision.fait { border-color: #16a34a; background: #f0fdf4; }
.dc1-decision p { margin: 0 0 8px; font-size: 15px; }
.dc1-decision-ok { font-size: 14px; color: #166534; }
.dc1-bail { background: #fff; border: 2px solid #64748b; border-radius: 10px; padding: 10px 14px; margin: 8px 0; transition: border-color .5s, background .5s; }
.dc1-bail-tete { font-weight: 800; margin-bottom: 6px; }
.dc1-bail ul { list-style: none; padding: 0; margin: 0; }
.dc1-bail li { padding: 6px 0; border-top: 1px dashed #cbd5e1; font-size: 14px; transition: opacity .4s; }
.dc1-bail li.vide { color: #b91c1c; }
.dc1-bail li.rep { color: #166534; animation: dc1-pose .4s ease-out; }
.dc1-curseur { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; margin: 8px 0; }
.dc1-curseur input { flex: 1; min-height: 32px; }

/* La frise */
.dc1-frise-cartes { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 10px; }
.dc1-fcarte { position: relative; display: block; text-align: left; padding: 12px 14px 12px 44px; font: inherit; background: #fff; border: 2px solid #94a3b8; border-radius: 10px; cursor: pointer; font-size: 15px; line-height: 1.35; }
.dc1-fcarte:hover { border-color: #2563eb; }
.dc1-fcarte.posee { background: #eff6ff; border-color: #2563eb; }
.dc1-fnum { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: #2563eb; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.dc1-frise-ligne { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border-top: 4px solid #94a3b8; padding-top: 8px; margin-bottom: 10px; }
.dc1-frise-case { text-align: center; font-size: 12px; color: #475569; padding: 4px; border-radius: 8px; }
.dc1-frise-case.pleine span { display: block; font-size: 15px; font-weight: 800; color: #1e293b; }
.dc1-frise-case.juste { background: #dcfce7; }

/* Aide, annexes, fiche, file d'attente, fin */
.dc1-aide { margin: 0 0 12px; border: 2px dashed #f59e0b; border-radius: 10px; background: #fffbeb; }
.dc1-aide-btn { width: 100%; text-align: left; background: transparent; border: 0; font: inherit; font-weight: 800; color: #92400e; padding: 10px 12px; cursor: pointer; }
.dc1-aide-corps { padding: 0 12px 12px; font-size: 14px; line-height: 1.45; }
.dc1-aide-o { display: flex; gap: 6px; flex-wrap: wrap; }
.dc1-aide-opt { padding: 8px 12px; font: inherit; border-radius: 8px; border: 2px solid #cbd5e1; background: #fff; cursor: pointer; }
.dc1-aide-opt.bon { border-color: #16a34a; background: #dcfce7; } .dc1-aide-opt.faux { border-color: #dc2626; background: #fee2e2; }
.dc1-aide-why { font-size: 14px; color: #334155; margin: 8px 0; }
.dc1-annexes { display: grid; gap: 8px; margin-bottom: 12px; }
.dc1-annexe { background: #fffbeb; border: 1px solid #fcd34d; border-radius: 8px; padding: 8px 12px; font-size: 14px; line-height: 1.4; }
.dc1-annexe p { margin: 4px 0 0; }
.dc1-file { display: flex; gap: 6px; justify-content: center; padding: 4px 8px; font-size: 22px; flex-wrap: wrap; }
.dc1-file-u { opacity: .55; transition: transform .4s, opacity .4s; }
.dc1-file-u.ici { opacity: 1; transform: scale(1.25); }
.dc1-file-u.parti { opacity: 1; }
.dc1-doc { padding: 4px; font-size: 15px; line-height: 1.55; }
.dc1-doc-tete { display: flex; flex-direction: column; border-bottom: 2px solid #1d4ed8; margin-bottom: 10px; padding-bottom: 6px; }
.dc1-doc-tete span { font-size: 13px; color: #475569; }
.dc1-fiche-mot { background: #dcfce7; padding: 0 5px; border-radius: 4px; }
.dc1-livre { list-style: none; padding: 0; margin: 0; }
.dc1-livre li { padding: 6px 0; border-bottom: 1px dashed #cbd5e1; }
.dc1-bravo { text-align: center; max-width: 520px; }
.dc1-bravo-score b { font-size: 44px; display: block; }
.dc1-fin { max-width: 760px; }
.dc1-fin-profil { background: #eff6ff; border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.dc1-fin-etapes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0; }
.dc1-petit { padding: 6px 10px; border-radius: 999px; border: 2px solid #cbd5e1; background: #fff; font: inherit; cursor: pointer; }
.dc1-tm-notion { margin: 8px 0 14px; font-weight: 700; }
.dc1-accueil-l { text-align: left; margin: 10px 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
@media (max-width: 480px) {
  .dc1-pils { grid-template-columns: repeat(2, 1fr); }
  .dc1-choix4 { grid-template-columns: 1fr 1fr; }
  .dc1-bal { height: 205px; margin: 8px 0 8px; }
  .dc1-bal-fleau { top: 58px; }
  .dc1-bal-plateau { min-height: 58px; padding: 5px; }
  .dc1-bal-pied { top: 62px; height: 120px; }
  .dc1-bal-plateau { width: 47%; font-size: 12px; }
  .dc1-fil2 { width: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .dc1 *, .dc1 *::before, .dc1 *::after { animation: none !important; transition: none !important; }
}
/* ==== dc1 : fin des styles ==== */
/* ==== dsk : debut des styles ====
   « Dan lo sak ! » — préfixe dsk-. Hérite des styles pdl- de Péi Délices (le conteneur porte .pdl.dsk).
   Couleurs : ambre du miel, vert des hauts. */
.dsk .pdl-cta{background:linear-gradient(135deg,#b45309,#92400e);box-shadow:0 6px 18px rgba(180,83,9,.3)}
.dsk .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(180,83,9,.4)}
.dsk .pdl-cta.alt{background:#fff;color:#1c1917;border:2px solid #b45309;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.dsk .pdl-decor{background:linear-gradient(135deg,#422006,#1c1917 60%,#78350f)}
.dsk-panneau{color:#1c1917}
.dsk .dsk-panneau-large{max-width:1000px;width:100%}
.dsk-photo-ico{display:inline-grid;place-items:center;font-size:30px;background:#fde68a;border-radius:50%}
.dsk .pdl-bulle-photo.dsk-photo-ico{width:64px;height:64px;flex:0 0 64px}
.dsk .pdl-hud-moi .dsk-photo-ico{width:36px;height:36px;font-size:20px;border:2px solid #fbbf24}
.dsk-perso-img.dsk-photo-ico{display:grid;width:100%;aspect-ratio:3/3.4;font-size:64px;border-radius:0;background:linear-gradient(160deg,#fef3c7,#fde68a)}
img.dsk-photo{object-fit:cover;object-position:50% 22%}
img.dsk-perso-img{width:100%;aspect-ratio:3/3.4;display:block}
img.dsk-badge-photo{width:84px;height:96px;border-radius:10px;flex:0 0 84px}
.dsk-note{font-size:13.5px;color:#57534e;margin:8px 0}
.dsk-consigne{background:#fffbeb;border-left:5px solid #b45309;border-radius:10px;padding:10px 12px;margin:6px 0;font-size:15px;line-height:1.45}
.dsk-petit{font:inherit;font-weight:700;font-size:13.5px;background:#f5f5f4;border:2px solid #d6d3d1;border-radius:10px;padding:7px 10px;cursor:pointer;color:#1c1917;touch-action:manipulation}
.dsk-petit:hover:not(:disabled){border-color:#b45309;background:#fffbeb}
.dsk .dsk-hud-prog{gap:4px}
.dsk .dsk-hud-prog em{font-style:normal;font-size:14px;margin:0 2px 0 6px}
.dsk-tm-notion{color:#fef3c7;font-weight:700;margin:6px 0 12px;font-size:15px}
.dsk-fil{display:flex;gap:6px;justify-content:center;margin:0 0 10px;flex-wrap:wrap}
.dsk-fil span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.35);font-size:15px;opacity:.7}
.dsk-fil .dsk-fil-fait{background:#bbf7d0;opacity:1}
.dsk-fil .dsk-fil-ici{background:#fff;opacity:1;box-shadow:0 0 0 3px #b45309}
.dsk-semaine{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
.dsk-semaine span{background:rgba(255,255,255,.7);border:2px solid #fde68a;border-radius:999px;padding:4px 10px;font-weight:700;font-size:13.5px;color:#422006}
.dsk-semaine span.fait{background:#bbf7d0;border-color:#16a34a}
/* Le tri */
.dsk-carte{background:#fff;border:2px solid #5eead4;border-radius:14px;padding:14px;font-size:17px;font-weight:700;box-shadow:0 6px 14px rgba(0,0,0,.08);margin:6px 0 10px}
.dsk-carte p{margin:0}
.dsk-dest{display:grid;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
.dsk-dest.dest-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.dsk-dest.dest-5{grid-template-columns:repeat(3,minmax(0,1fr))}
.dsk-dest-b{font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px 6px;cursor:pointer;color:#1c1917;text-align:center}
.dsk-dest-b span{font-size:22px}
.dsk-dest-b b{font-size:14px;line-height:1.2}
.dsk-dest-b:hover:not(:disabled){border-color:#b45309}
.dsk-dest-b.bon{border-color:#16a34a;background:#dcfce7}
.dsk-dest-b.faux{border-color:#dc2626;background:#fee2e2}
/* Le constat, le compositeur, la grille */
.dsk-constat{background:#fffbeb;border:2px dashed #d97706;border-radius:12px;padding:10px 14px;margin:6px 0 10px;font-size:15px;color:#1c1917}
.dsk-constat ul{margin:6px 0 4px 18px;padding:0}
.dsk-constat i{font-size:12.5px;color:#78716c}
.dsk-slot{display:flex;flex-direction:column;gap:6px;margin:8px 0}
.dsk-choix{font:inherit;text-align:left;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px 12px;cursor:pointer;color:#1c1917;font-size:15.5px}
.dsk-choix:hover:not(:disabled){border-color:#b45309}
.dsk-choix.on{border-color:#b45309;background:#fef3c7;font-weight:700}
.dsk-phrase{background:#fff;border:3px solid #b45309;border-radius:14px;padding:12px 14px;font-size:17px;font-weight:700;margin:10px 0;line-height:1.4}
.dsk-lampes{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.dsk-lampe{border-radius:999px;padding:5px 12px;font-weight:700;font-size:14px}
.dsk-lampe.bon{background:#dcfce7;color:#14532d;border:2px solid #16a34a}
.dsk-lampe.faux{background:#fee2e2;color:#7f1d1d;border:2px solid #dc2626}
.dsk-grille-l{background:#fff;border:2px solid #e7e5e4;border-radius:12px;padding:10px 12px;margin:8px 0;font-size:15px}
.dsk-oui{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.dsk-oui button{font:inherit;font-weight:700;background:#f5f5f4;border:2px solid #d6d3d1;border-radius:10px;padding:6px 12px;cursor:pointer;color:#1c1917}
.dsk-oui button.on.oui{background:#dcfce7;border-color:#16a34a}
.dsk-oui button.on.non{background:#fee2e2;border-color:#dc2626}
.dsk-oui button.on.doute{background:#fef9c3;border-color:#ca8a04}
.dsk-zone{width:100%;font:inherit;font-size:16px;border:2px solid #b45309;border-radius:12px;padding:10px;box-sizing:border-box;resize:vertical}
.dsk-compte{font-size:12.5px;color:#57534e;margin:4px 0 8px}
.dsk-modeles li{margin:6px 0;font-size:15.5px}
/* Le viseur : la photo se rapproche quand on tourne la bague */
.dsk-vis-fen{position:relative;overflow:hidden;border-radius:16px;border:4px solid #1c1917;aspect-ratio:16/8;background:#422006;margin:8px 0}
.dsk-vis-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.3,.7,.3,1);transform-origin:50% 55%}
.dsk-vis-croix{position:absolute;inset:0;pointer-events:none;background:linear-gradient(#fff6,#fff6) 50% 0/2px 100% no-repeat,linear-gradient(#fff6,#fff6) 0 50%/100% 2px no-repeat;border:22px solid rgba(0,0,0,.18)}
.dsk-vis-txt{position:absolute;left:0;right:0;bottom:0;background:rgba(0,0,0,.72);color:#fff;padding:8px 12px}
.dsk-vis-txt p{margin:2px 0 0;font-size:16px;font-weight:700;line-height:1.35}
.dsk-vis-txt i{font-size:12.5px;color:#fde68a;font-style:normal}
.dsk-bague{display:flex;align-items:center;justify-content:center;gap:8px;margin:8px 0}
.dsk-bague button{font:inherit;font-size:20px;width:48px;height:44px;border-radius:12px;border:2px solid #b45309;background:#fff;cursor:pointer}
.dsk-bague button:disabled{opacity:.35;cursor:default}
.dsk-cran{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e7e5e4;font-weight:700}
.dsk-cran.on{background:#b45309;color:#fff;box-shadow:0 0 0 3px #fde68a}
.dsk-cadre{font-size:14px;color:#44403c;text-align:center;margin:4px 0 8px}
/* Les documents */
.dsk-badge{background:#fff;border-radius:16px;overflow:hidden;border:3px solid #1c1917;max-width:420px;margin:0 auto 12px;color:#1c1917;text-align:left}
.dsk-badge-haut{background:linear-gradient(90deg,#422006,#b45309,#d97706);color:#fff;padding:8px 12px;display:flex;flex-direction:column}
.dsk-badge-haut b{font-size:20px;letter-spacing:3px}
.dsk-badge-haut span{font-size:11.5px;font-weight:700}
.dsk-badge-corps{display:flex;gap:12px;padding:12px;align-items:center}
.dsk-badge-corps>div{display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.dsk-badge-corps b{font-size:18px}
.dsk-badge-photo.dsk-photo-ico{width:84px;height:96px;flex:0 0 84px;border-radius:10px;font-size:44px}
.dsk-doc{background:#fff;border:2px solid #d6d3d1;border-radius:14px;padding:10px 14px;color:#1c1917}
.dsk-doc-tete{display:flex;flex-direction:column;border-bottom:3px solid #b45309;margin-bottom:8px;padding-bottom:6px}
.dsk-doc-tete span{font-size:12.5px;color:#57534e}
.dsk-fiche{margin:8px 0;display:flex;flex-direction:column;gap:2px;font-size:14.5px}
.dsk-fiche i{font-style:normal;color:#57534e;font-size:13.5px}
.dsk-mur{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.dsk-tirage{display:flex;flex-direction:column;gap:2px;font-size:12.5px;overflow:hidden}
.dsk-tirage img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:8px;transition:filter .8s}
.dsk-tirage i{font-style:normal;color:#57534e}
.dsk-bravo,.dsk-fin{color:#1c1917}
.dsk-bravo-score{display:flex;align-items:center;gap:12px;font-size:32px;margin:6px 0}
.dsk-rejouer{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:10px 0}
@media (max-width:560px){.dsk-dest,.dsk-dest.dest-3,.dsk-dest.dest-5{grid-template-columns:repeat(2,minmax(0,1fr))}.dsk-mur{grid-template-columns:repeat(2,minmax(0,1fr))}.dsk-vis-fen{aspect-ratio:4/3}}

.dsk-rappel{background:#fffbeb;border-left:5px solid #b45309;border-radius:10px;padding:9px 12px;margin:8px 0;font-weight:600;font-size:15px}
.dsk-jeton-carte{background:#fff7ed;border:2px dashed #b45309;border-radius:14px;padding:14px;margin:10px 0;font-size:17px;line-height:1.4}
.dsk-jeton-carte .dsk-rappel{margin-top:10px}
.dsk-cases{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:10px 0}
.dsk-cases.dsk-grille{grid-template-columns:1fr 1fr}
.dsk-case{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 8px;border:2px solid #d6d3d1;border-radius:14px;background:#fff;cursor:pointer;font:inherit;color:#1c1917;min-height:70px}
.dsk-case span{font-size:26px}
.dsk-case:hover:not(:disabled){border-color:#b45309;transform:translateY(-2px)}
.dsk-case.bon{border-color:#16a34a;background:#dcfce7}.dsk-case.faux{border-color:#dc2626;background:#fee2e2}.dsk-case.eteint{opacity:.45}
.dsk-saisie{display:flex;gap:10px;align-items:center;margin:10px 0}
.dsk-saisie input{font:inherit;font-size:20px;padding:8px 12px;border:2px solid #b45309;border-radius:10px;width:170px}
.dsk-sac-jetons{display:flex;flex-wrap:wrap;gap:6px;padding:12px;background:radial-gradient(#fde68a,#d97706);border-radius:20px 20px 40px 40px;margin:10px 0}
.dsk-jeton{width:38px;height:38px;border-radius:50%;display:inline-grid;place-items:center;background:#fff;border:3px solid #ca8a04;font-size:20px;transition:all .3s}
.dsk-jeton.risk{background:#fef2f2}.dsk-jeton.prot{background:#dbeafe;border-style:dashed}
.dsk-jeton.tire{opacity:.25;transform:scale(.7)}
table.dsk-carte{width:100%;border-collapse:collapse;font-size:14px;margin:8px 0}
.dsk-carte th,.dsk-carte td{border:1px solid #d6d3d1;padding:6px 8px;text-align:left}
.dsk-carte th{background:#fef3c7}.dsk-carte tr.dsk-prot td{background:#dbeafe}
.dsk-note{font-size:14px;color:#57534e;margin:6px 0}
.dsk-opts{display:grid;gap:10px;margin:10px 0}
.dsk-opt{display:flex;flex-direction:column;gap:3px;text-align:left;padding:12px 14px;border:2px solid #d6d3d1;border-radius:14px;background:#fff;font:inherit;color:#1c1917;cursor:pointer}
.dsk-opt:hover:not(:disabled){border-color:#b45309}.dsk-opt.on{border-color:#b45309;background:#fffbeb}.dsk-opt i{color:#92400e;font-style:normal;font-weight:700}
.dsk-compteurs{display:flex;flex-wrap:wrap;gap:8px 18px;margin:8px 0;font-size:15px}.dsk-compteurs .net{margin-left:auto;font-size:17px}
.dsk-dernier{padding:10px 14px;border-radius:12px;margin:8px 0;font-weight:600}
.dsk-dernier.bon{background:#dcfce7}.dsk-dernier.faux{background:#fee2e2}.dsk-dernier.prot{background:#dbeafe}
.dsk-chances{display:grid;gap:6px;margin:10px 0}
.dsk-btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.dsk-zone{width:100%;font:inherit;padding:10px;border:2px solid #b45309;border-radius:12px;margin:8px 0}
.dsk-apres{margin-top:12px}
.dsk-semaine{display:flex;gap:8px;justify-content:center;font-size:24px;margin:10px 0}.dsk-semaine span{opacity:.45}.dsk-semaine span.fait{opacity:1}
.dsk-tm-notion{margin:8px 0;font-size:15px}
.dsk-badge-haut{display:flex;flex-direction:column;background:#b45309;color:#fff;padding:8px 12px;border-radius:10px 10px 0 0}
.dsk-badge{border:2px solid #b45309;border-radius:12px;background:#fff;margin:8px auto;max-width:420px}
.dsk-badge-corps{display:flex;gap:12px;padding:12px;align-items:center}.dsk-badge-corps span{display:block;font-size:14px;color:#57534e}
.dsk-doc{color:#1c1917}.dsk-doc-tete{display:flex;flex-direction:column;border-bottom:2px solid #b45309;margin-bottom:8px}
.dsk-fiche{display:flex;flex-direction:column;background:#fffbeb;border-radius:10px;padding:8px 12px;margin:6px 0}


.dsk-doc,.dsk-bravo{overflow-x:auto}.dsk-carte{display:block;overflow-x:auto}
/* ==== dsk : fin des styles ==== */
/* ==== ltn : debut des styles ====
   « Lo tan i pass ! » — préfixe ltn-. Hérite des styles pdl- de Péi Délices (le conteneur porte .pdl.ltn).
   Couleurs : bleu lagon, orange de coque, bois de chantier. */
.ltn .pdl-cta{background:linear-gradient(135deg,#0369a1,#075985);box-shadow:0 6px 18px rgba(3,105,161,.3)}
.ltn .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(3,105,161,.4)}
.ltn .pdl-cta.alt{background:#fff;color:#1c1917;border:2px solid #0369a1;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.ltn .pdl-decor{background:linear-gradient(135deg,#0c4a6e,#1c1917 60%,#78350f)}
.ltn-panneau{color:#1c1917}
.ltn .ltn-panneau-large{max-width:1000px;width:100%}
.ltn-photo-ico{display:inline-grid;place-items:center;font-size:30px;background:#bae6fd;border-radius:50%}
.ltn .pdl-bulle-photo.ltn-photo-ico{width:64px;height:64px;flex:0 0 64px}
.ltn .pdl-hud-moi .ltn-photo-ico{width:36px;height:36px;font-size:20px;border:2px solid #fbbf24}
.ltn-perso-img.ltn-photo-ico{display:grid;width:100%;aspect-ratio:3/3.4;font-size:64px;border-radius:0;background:linear-gradient(160deg,#e0f2fe,#fde68a)}
img.ltn-photo{object-fit:cover;object-position:50% 22%}
img.ltn-perso-img{width:100%;aspect-ratio:3/3.4;display:block}
img.ltn-badge-photo{width:84px;height:96px;border-radius:10px;flex:0 0 84px}
.ltn-note{font-size:13.5px;color:#57534e;margin:8px 0}
.ltn-consigne{background:#f0f9ff;border-left:5px solid #0369a1;border-radius:10px;padding:10px 12px;margin:6px 0;font-size:15px;line-height:1.45}
.ltn-petit{font:inherit;font-weight:700;font-size:13.5px;background:#f5f5f4;border:2px solid #d6d3d1;border-radius:10px;padding:7px 10px;cursor:pointer;color:#1c1917;touch-action:manipulation}
.ltn-petit:hover:not(:disabled){border-color:#0369a1;background:#f0f9ff}
.ltn .ltn-hud-prog{gap:4px}
.ltn .ltn-hud-prog em{font-style:normal;font-size:14px;margin:0 2px 0 6px}
.ltn-tm-notion{color:#e0f2fe;font-weight:700;margin:6px 0 12px;font-size:15px}
.ltn-fil{display:flex;gap:6px;justify-content:center;margin:0 0 10px;flex-wrap:wrap}
.ltn-fil span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.35);font-size:15px;opacity:.7}
.ltn-fil .ltn-fil-fait{background:#bbf7d0;opacity:1}
.ltn-fil .ltn-fil-ici{background:#fff;opacity:1;box-shadow:0 0 0 3px #0369a1}
.ltn-semaine{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
.ltn-semaine span{background:rgba(255,255,255,.7);border:2px solid #bae6fd;border-radius:999px;padding:4px 10px;font-weight:700;font-size:13.5px;color:#0c4a6e}
.ltn-semaine span.fait{background:#bbf7d0;border-color:#16a34a}
/* Le tri */
.ltn-carte{background:#fff;border:2px solid #7dd3fc;border-radius:14px;padding:14px;font-size:17px;font-weight:700;box-shadow:0 6px 14px rgba(0,0,0,.08);margin:6px 0 10px}
.ltn-carte p{margin:0}
.ltn-dest{display:grid;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
.ltn-dest.dest-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ltn-dest.dest-5{grid-template-columns:repeat(3,minmax(0,1fr))}
.ltn-dest-b{font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px 6px;cursor:pointer;color:#1c1917;text-align:center}
.ltn-dest-b span{font-size:22px}
.ltn-dest-b b{font-size:14px;line-height:1.2}
.ltn-dest-b:hover:not(:disabled){border-color:#0369a1}
.ltn-dest-b.bon{border-color:#16a34a;background:#dcfce7}
.ltn-dest-b.faux{border-color:#dc2626;background:#fee2e2}
/* Le constat, le compositeur, la grille */
.ltn-constat{background:#fffbeb;border:2px dashed #d97706;border-radius:12px;padding:10px 14px;margin:6px 0 10px;font-size:15px;color:#1c1917}
.ltn-constat ul{margin:6px 0 4px 18px;padding:0}
.ltn-constat i{font-size:12.5px;color:#78716c}
.ltn-slot{display:flex;flex-direction:column;gap:6px;margin:8px 0}
.ltn-choix{font:inherit;text-align:left;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px 12px;cursor:pointer;color:#1c1917;font-size:15.5px}
.ltn-choix:hover:not(:disabled){border-color:#0369a1}
.ltn-choix.on{border-color:#0369a1;background:#e0f2fe;font-weight:700}
.ltn-phrase{background:#fff;border:3px solid #0369a1;border-radius:14px;padding:12px 14px;font-size:17px;font-weight:700;margin:10px 0;line-height:1.4}
.ltn-lampes{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.ltn-lampe{border-radius:999px;padding:5px 12px;font-weight:700;font-size:14px}
.ltn-lampe.bon{background:#dcfce7;color:#14532d;border:2px solid #16a34a}
.ltn-lampe.faux{background:#fee2e2;color:#7f1d1d;border:2px solid #dc2626}
.ltn-grille-l{background:#fff;border:2px solid #e7e5e4;border-radius:12px;padding:10px 12px;margin:8px 0;font-size:15px}
.ltn-oui{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.ltn-oui button{font:inherit;font-weight:700;background:#f5f5f4;border:2px solid #d6d3d1;border-radius:10px;padding:6px 12px;cursor:pointer;color:#1c1917}
.ltn-oui button.on.oui{background:#dcfce7;border-color:#16a34a}
.ltn-oui button.on.non{background:#fee2e2;border-color:#dc2626}
.ltn-oui button.on.doute{background:#fef9c3;border-color:#ca8a04}
.ltn-zone{width:100%;font:inherit;font-size:16px;border:2px solid #0369a1;border-radius:12px;padding:10px;box-sizing:border-box;resize:vertical}
.ltn-compte{font-size:12.5px;color:#57534e;margin:4px 0 8px}
.ltn-modeles li{margin:6px 0;font-size:15.5px}
/* Le viseur : la photo se rapproche quand on tourne la bague */
.ltn-vis-fen{position:relative;overflow:hidden;border-radius:16px;border:4px solid #1c1917;aspect-ratio:16/8;background:#0c4a6e;margin:8px 0}
.ltn-vis-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.3,.7,.3,1);transform-origin:50% 55%}
.ltn-vis-croix{position:absolute;inset:0;pointer-events:none;background:linear-gradient(#fff6,#fff6) 50% 0/2px 100% no-repeat,linear-gradient(#fff6,#fff6) 0 50%/100% 2px no-repeat;border:22px solid rgba(0,0,0,.18)}
.ltn-vis-txt{position:absolute;left:0;right:0;bottom:0;background:rgba(0,0,0,.72);color:#fff;padding:8px 12px}
.ltn-vis-txt p{margin:2px 0 0;font-size:16px;font-weight:700;line-height:1.35}
.ltn-vis-txt i{font-size:12.5px;color:#bae6fd;font-style:normal}
.ltn-bague{display:flex;align-items:center;justify-content:center;gap:8px;margin:8px 0}
.ltn-bague button{font:inherit;font-size:20px;width:48px;height:44px;border-radius:12px;border:2px solid #0369a1;background:#fff;cursor:pointer}
.ltn-bague button:disabled{opacity:.35;cursor:default}
.ltn-cran{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e7e5e4;font-weight:700}
.ltn-cran.on{background:#0369a1;color:#fff;box-shadow:0 0 0 3px #bae6fd}
.ltn-cadre{font-size:14px;color:#44403c;text-align:center;margin:4px 0 8px}
/* Les documents */
.ltn-badge{background:#fff;border-radius:16px;overflow:hidden;border:3px solid #1c1917;max-width:420px;margin:0 auto 12px;color:#1c1917;text-align:left}
.ltn-badge-haut{background:linear-gradient(90deg,#0c4a6e,#0369a1,#d97706);color:#fff;padding:8px 12px;display:flex;flex-direction:column}
.ltn-badge-haut b{font-size:20px;letter-spacing:3px}
.ltn-badge-haut span{font-size:11.5px;font-weight:700}
.ltn-badge-corps{display:flex;gap:12px;padding:12px;align-items:center}
.ltn-badge-corps>div{display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.ltn-badge-corps b{font-size:18px}
.ltn-badge-photo.ltn-photo-ico{width:84px;height:96px;flex:0 0 84px;border-radius:10px;font-size:44px}
.ltn-doc{background:#fff;border:2px solid #d6d3d1;border-radius:14px;padding:10px 14px;color:#1c1917}
.ltn-doc-tete{display:flex;flex-direction:column;border-bottom:3px solid #0369a1;margin-bottom:8px;padding-bottom:6px}
.ltn-doc-tete span{font-size:12.5px;color:#57534e}
.ltn-fiche{margin:8px 0;display:flex;flex-direction:column;gap:2px;font-size:14.5px}
.ltn-fiche i{font-style:normal;color:#57534e;font-size:13.5px}
.ltn-mur{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ltn-tirage{display:flex;flex-direction:column;gap:2px;font-size:12.5px;overflow:hidden}
.ltn-tirage img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:8px;transition:filter .8s}
.ltn-tirage i{font-style:normal;color:#57534e}
.ltn-bravo,.ltn-fin{color:#1c1917}
.ltn-bravo-score{display:flex;align-items:center;gap:12px;font-size:32px;margin:6px 0}
.ltn-rejouer{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:10px 0}
@media (max-width:560px){.ltn-dest,.ltn-dest.dest-3,.ltn-dest.dest-5{grid-template-columns:repeat(2,minmax(0,1fr))}.ltn-mur{grid-template-columns:repeat(2,minmax(0,1fr))}.ltn-vis-fen{aspect-ratio:4/3}}

/* Le lecteur, la frise, les jauges */
.ltn-lecteur{display:flex;flex-direction:column;gap:10px}
.ltn-lecteur-ecran{position:relative;border-radius:14px;overflow:hidden;aspect-ratio:16/8;background:#cfe8f5;box-shadow:0 6px 18px rgba(0,0,0,.2)}
.ltn-lecteur-img,.ltn-ecran{width:100%;height:100%;object-fit:cover;display:block;transition:opacity .6s}
.ltn-ecran{aspect-ratio:16/8;border-radius:12px;max-height:260px}
.ltn-img-repli{display:grid;place-items:center;font-size:64px;background:linear-gradient(160deg,#bae6fd,#fde68a)}
.ltn-lecteur-legende{position:absolute;left:0;right:0;bottom:0;padding:8px 12px;background:linear-gradient(transparent,rgba(0,0,0,.65));color:#fff;display:flex;justify-content:space-between;gap:8px;font-size:13.5px;flex-wrap:wrap}
.ltn-frise{position:relative;height:84px;margin:6px 14px 0}
.ltn-frise-barre{position:absolute;left:0;right:0;top:30px;height:10px;border-radius:6px;background:#cbd5e1}
.ltn-frise-fait{position:absolute;left:0;top:0;bottom:0;border-radius:6px;background:linear-gradient(90deg,#0369a1,#ea580c);transition:width .9s ease}
.ltn-tete-lecture{position:absolute;top:-24px;transform:translateX(-50%);color:#ea580c;font-size:22px;transition:left .9s ease}
.ltn-marque{position:absolute;top:14px;transform:translateX(-50%);width:42px;height:42px;border-radius:50%;border:3px solid #0369a1;background:#fff;font:inherit;font-weight:800;font-size:16px;cursor:pointer;color:#0c4a6e;touch-action:manipulation}
.ltn-marque.fait{background:#bbf7d0;border-color:#16a34a}
.ltn-marque.ici{box-shadow:0 0 0 4px rgba(234,88,12,.45)}
.ltn-marque:disabled{opacity:.45;cursor:not-allowed}
.ltn-frise-mois{position:absolute;left:-8px;right:-8px;bottom:0;display:flex;justify-content:space-between;font-size:11px;color:#57534e}
.ltn-jauges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ltn-jauge{background:#f0f9ff;border:2px solid #bae6fd;border-radius:12px;padding:6px 8px;font-size:13.5px;display:flex;flex-direction:column;gap:3px;color:#0c4a6e}
.ltn-jauge-b{height:9px;background:#e2e8f0;border-radius:6px;overflow:hidden}
.ltn-jauge-b i{display:block;height:100%;background:linear-gradient(90deg,#0369a1,#16a34a);transition:width .8s}
/* Rappel des chiffres, saisie */
.ltn-rappel{background:#fffbeb;border:2px dashed #d97706;border-radius:12px;padding:8px 14px;margin:6px 0 10px;font-size:15px;color:#1c1917}
.ltn-rappel ul{margin:4px 0 2px 18px;padding:0}
.ltn-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0}
.ltn-champ{font:inherit;font-size:18px;font-weight:700;padding:9px 12px;border:3px solid #0369a1;border-radius:10px;width:170px;max-width:100%;color:#1c1917;background:#fff}
.ltn-champ.petit{width:110px;font-size:16px;padding:6px 8px}
.ltn-unite{font-weight:700;color:#475569}
.ltn-msg{color:#b91c1c;font-weight:700;margin:4px 0}
.ltn-zone{width:100%;box-sizing:border-box;font:inherit;font-size:16px;padding:10px;border:3px solid #0369a1;border-radius:10px;margin:6px 0;color:#1c1917;background:#fff}
/* Curseurs (table de mixage) */
.ltn-table{display:flex;flex-direction:column;gap:8px}
.ltn-fader{display:grid;grid-template-columns:minmax(150px,1.2fr) minmax(120px,2fr) auto;gap:10px;align-items:center;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:8px 10px}
.ltn-fader.bon{border-color:#16a34a;background:#f0fdf4}.ltn-fader.faux{border-color:#dc2626;background:#fef2f2}
.ltn-fader label{display:flex;flex-direction:column;font-size:15px}.ltn-fader label span{font-size:12.5px;color:#57534e}
.ltn-fader input[type=range],.ltn-tete,.ltn-simul-curs input[type=range]{width:100%;accent-color:#0369a1;height:28px}
.ltn-fader-val{display:flex;align-items:center;gap:6px;font-weight:700}
/* Décalage */
.ltn-dec-grille{background:#fff;border:2px solid #bae6fd;border-radius:12px;padding:8px;overflow-x:auto}
.ltn-dec-tete,.ltn-dec-ligne{display:grid;grid-template-columns:repeat(5,minmax(100px,1fr));gap:6px;margin:4px 0;min-width:520px}
.ltn-dec-tete span{text-align:center;font-weight:800;color:#0c4a6e;font-size:13.5px;border-bottom:2px solid #bae6fd}
.ltn-bloc{font:inherit;font-size:13.5px;font-weight:700;border-radius:10px;padding:8px 6px;text-align:center;border:2px solid #0369a1;background:#e0f2fe;color:#0c4a6e}
button.ltn-bloc{cursor:pointer}.ltn-bloc.entier{animation:ltnPulse 1.6s infinite}
.ltn-bloc.moitie{background:#dcfce7;border-color:#16a34a;color:#14532d;animation:ltnGlisse .6s}
.ltn-bloc.suite{background:#fef3c7;border-color:#d97706;color:#78350f}
@keyframes ltnPulse{0%,100%{box-shadow:0 0 0 0 rgba(3,105,161,.4)}50%{box-shadow:0 0 0 6px rgba(3,105,161,0)}}
@keyframes ltnGlisse{from{transform:translateX(-60px);opacity:.2}to{transform:none;opacity:1}}
/* Piste : tête de lecture, barres */
.ltn-piste{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;background:#fff;border:2px solid #bae6fd;border-radius:12px;padding:8px;margin:8px 0}
.ltn-piste.long{grid-template-columns:repeat(12,1fr);gap:3px}
.ltn-piste-col{display:flex;flex-direction:column;align-items:center;border-radius:8px;padding:2px}
.ltn-piste-col.ici{background:#e0f2fe;outline:2px solid #0369a1}
.ltn-piste-col span{font-size:11.5px;color:#334155;text-align:center}
.ltn-piste-barres{position:relative;height:150px;width:100%;display:flex;flex-direction:column;justify-content:flex-start;align-items:center}
.ltn-zero{position:absolute;left:0;right:0;top:75px;border-top:2px dashed #64748b}
.ltn-barre{width:60%;position:absolute}
.ltn-barre.pos{bottom:75px;background:#16a34a}.ltn-barre.neg{top:75px;background:#dc2626}
.ltn-barre.gris{background:#94a3b8;width:25%;margin-left:70%;opacity:.85}
.ltn-solde{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0;padding:8px 12px;border-radius:12px;font-size:15px}
.ltn-solde b{font-size:24px}.ltn-solde.neg{background:#fee2e2;color:#7f1d1d}.ltn-solde.pos{background:#dcfce7;color:#14532d}
/* Film des jours */
.ltn-jour{text-align:center;font-weight:800;color:#0c4a6e;margin:4px 0}
.ltn-etapes{display:grid;gap:6px;margin:8px 0}
.ltn-etape{display:grid;grid-template-columns:1.4fr 1fr 1fr auto;gap:8px;align-items:center;background:#fff;border:2px solid #cbd5e1;border-radius:10px;padding:6px 10px;font-size:14px}
.ltn-etape.retard{border-color:#dc2626;background:#fef2f2}.ltn-etape em{font-style:normal;font-weight:800;color:#b91c1c}
/* Simulateur */
.ltn-simul{background:#f0f9ff;border:3px solid #0369a1;border-radius:14px;padding:10px 12px;margin:0 0 12px}
.ltn-simul-tete{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;color:#0c4a6e;font-size:14px}
.ltn-simul-pre{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
.ltn-simul-curs{display:grid;gap:6px}.ltn-simul-curs label{font-size:15px;display:block}
.ltn-simul-res{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:8px;font-size:14.5px}
.ltn-simul-r{padding:2px 10px;border-radius:8px}.ltn-simul-r.pos{background:#dcfce7}.ltn-simul-r.neg{background:#fee2e2}
/* GANTT */
.ltn-g-tete,.ltn-g-ligne{display:grid;grid-template-columns:minmax(130px,200px) 1fr;gap:8px;align-items:center;margin:3px 0}
.ltn-g-ligne{background:#fff;border:2px solid #e2e8f0;border-radius:10px;padding:4px 8px}.ltn-g-ligne.faux{border-color:#dc2626;background:#fef2f2}
.ltn-g-ligne em{grid-column:1/-1;font-style:normal;font-size:13.5px;color:#b91c1c}
.ltn-g-nom{display:flex;flex-direction:column;font-size:13.5px;line-height:1.25}.ltn-g-nom i{font-size:12px;color:#64748b}
.ltn-g-cell{display:flex;gap:8px;align-items:center}
.ltn-g-pas{display:flex;align-items:center;gap:4px;font-weight:800;min-width:96px;color:#0c4a6e}
.ltn-g-grille{display:grid;flex:1;gap:2px;min-width:0}
.ltn-g-tete b{text-align:center;font-size:11.5px;color:#475569}.ltn-g-tete b.lim{color:#b91c1c;border-bottom:3px solid #dc2626}
.ltn-g-barre{display:block;background:#0369a1;color:#fff;border-radius:6px;text-align:center;font-style:normal;font-weight:700;font-size:12.5px;padding:3px 0;grid-row:1}
.ltn-g-barre.tard{background:#dc2626}
.ltn-simulnb .ltn-nombre{margin-top:6px}
.ltn-souvenirs{background:#fffbeb;border:2px solid #fcd34d;border-radius:12px;padding:8px 14px;margin:8px 0;color:#1c1917}
.ltn-tab{border-collapse:collapse;width:100%;font-size:14px}.ltn-tab th,.ltn-tab td{border:1px solid #cbd5e1;padding:5px 8px;text-align:right}.ltn-tab th:first-child{text-align:left}.ltn-tab td.neg{color:#b91c1c;font-weight:800}
@media (max-width:620px){.ltn-fader{grid-template-columns:1fr}.ltn-etape{grid-template-columns:1fr 1fr}.ltn-g-tete,.ltn-g-ligne{grid-template-columns:1fr}.ltn-g-cell{flex-wrap:wrap}.ltn-jauges{grid-template-columns:1fr}.ltn-frise{margin:6px 22px 0}.ltn-marque{width:36px;height:36px}.ltn-piste-barres{height:130px}.ltn-zero{top:65px}.ltn-barre.pos{bottom:65px}.ltn-barre.neg{top:65px}}
/* ==== ltn : fin des styles ==== */
/* ==== zgi : debut des styles ====
   « Zéguiy i tourn ! » — préfixe zgi-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.zgi). Couleurs : le feutre d'un
   jeu de société, le bleu du froid, l'orange de la chaleur.
   Les dégradés sont SOUS la photo : ils restent visibles si elle manque. */
.zgi .pdl-cta{background:linear-gradient(135deg,#0e7490,#ea580c);box-shadow:0 6px 18px rgba(14,116,144,.3)}
.zgi .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(14,116,144,.4)}
.zgi .pdl-cta.alt{background:#fff;color:#0c4a6e;border:2px solid #0e7490;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.zgi .pdl-decor{background:linear-gradient(135deg,#0c4a6e,#155e75 55%,#9a3412)}
.zgi .pdl-decor-img{background-size:cover!important}
.zgi .pdl-decor.zgi-d-atelier{background-image:linear-gradient(160deg,#292524,#57534e 60%,#0e7490)}
.zgi .pdl-decor.zgi-d-bureau{background-image:linear-gradient(160deg,#78350f,#a16207 55%,#166534)}
.zgi .pdl-decor.zgi-d-chantier{background-image:linear-gradient(170deg,#0284c7,#38bdf8 60%,#f59e0b)}
.zgi .pdl-decor.zgi-d-chaleur{background-image:linear-gradient(170deg,#f97316,#fbbf24 60%,#0ea5e9)}
.zgi .pdl-decor.zgi-d-matin{background-image:linear-gradient(170deg,#1e3a8a,#c2410c 70%,#fde68a)}
.zgi-panneau{color:#0f172a}
.zgi .zgi-panneau-large{max-width:1000px;width:100%}
.zgi-photo-ico{display:inline-grid;place-items:center;font-size:30px;background:#cffafe;border-radius:50%;line-height:1}
.zgi .pdl-bulle-photo.zgi-photo-ico{width:64px;height:64px;flex:0 0 64px}
.zgi .pdl-hud-moi .zgi-photo-ico{width:36px;height:36px;font-size:20px;border:2px solid #67e8f9}
.zgi-perso-img{width:100%;aspect-ratio:3/3.4;display:grid!important;font-size:64px;border-radius:0!important;background:linear-gradient(160deg,#cffafe,#ffedd5)!important}
.zgi-mini{width:44px;height:44px;flex:0 0 44px;font-size:24px}
.zgi-photo-img{display:block;object-fit:cover;object-position:50% 22%;border-radius:50%;background:#cffafe}
img.zgi-perso-img{display:block!important;width:100%;height:auto;aspect-ratio:3/3.4;object-position:50% 20%;border-radius:12px!important}
.zgi-note{font-size:13.5px;color:#475569;margin:8px 0}
.zgi-ko{color:#b45309;font-weight:700;margin:8px 0}
.zgi-consigne{background:#ecfeff;border-left:5px solid #0e7490;border-radius:10px;padding:10px 12px;margin:0 0 8px;font-size:15px;line-height:1.45}
.zgi-petit{font:inherit;font-weight:700;font-size:13.5px;background:#f1f5f9;border:2px solid #cbd5e1;border-radius:10px;padding:7px 10px;cursor:pointer;color:#0f172a;touch-action:manipulation}
.zgi-petit:hover:not(:disabled){border-color:#0e7490;background:#ecfeff}
.zgi-petit:disabled{opacity:.75;cursor:default}
.zgi-petit.on{border-color:#0e7490;background:#cffafe}
.zgi-petit.bon{border-color:#16a34a;background:#dcfce7;opacity:1}
.zgi-petit.faux{border-color:#f59e0b;background:#fef3c7;opacity:1}
.zgi .zgi-hud-prog{gap:4px}
.zgi .zgi-hud-prog em{font-style:normal;font-size:14px;margin:0 2px 0 6px}
.zgi-hud-jauges{font:inherit;display:flex;gap:6px;align-items:center;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:10px;padding:4px 8px;color:inherit;cursor:pointer;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums;flex-wrap:wrap}
.zgi-hud-jauges span.haut{color:#86efac}
.zgi-hud-jauges span.bas{color:#fca5a5}
.zgi-tm-notion{color:#ecfeff;font-weight:700;margin:6px 0 12px;font-size:15px}
.zgi-fil{display:flex;gap:6px;justify-content:center;margin:0 0 10px;flex-wrap:wrap}
.zgi-fil span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.35);font-size:15px;opacity:.7}
.zgi-fil .zgi-fil-fait{background:#bbf7d0;opacity:1}
.zgi-fil .zgi-fil-ici{background:#fff;opacity:1;box-shadow:0 0 0 3px #0e7490}

/* ---- Le plateau : la piste des mois ---- */
.zgi-plateau-haut{max-width:1000px;width:100%;margin:0 auto 8px;box-sizing:border-box}
.zgi-piste{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:3px;background:#14532d;background-image:radial-gradient(rgba(255,255,255,.07) 1px,transparent 1px);background-size:6px 6px;border:3px solid #78350f;border-radius:12px;padding:16px 6px 6px;box-sizing:border-box;width:100%}
.zgi-case-mois{font:inherit;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:1px;min-width:0;background:#f8fafc;border:2px solid #cbd5e1;border-radius:7px;padding:4px 0;color:#0f172a;min-height:48px}
button.zgi-case-mois{cursor:pointer;touch-action:manipulation}
button.zgi-case-mois:hover{border-color:#0e7490}
.zgi-case-mois.zgi-n-haut{background:#ffedd5}
.zgi-case-mois.zgi-n-bas{background:#e0f2fe}
.zgi-case-mois.ici{box-shadow:0 0 0 2px #facc15}
.zgi-case-mois.choisi{border-color:#0e7490;box-shadow:0 0 0 2px #0e7490}
.zgi-case-mois.coupe{border-color:#dc2626;box-shadow:0 0 0 2px #dc2626}
.zgi-m-nom{font-size:11.5px;font-weight:800;line-height:1.1}
.zgi-m-niv{font-size:13px;line-height:1.1}
.zgi-aiguille{position:absolute;top:-15px;left:50%;transform:translateX(-50%);color:#facc15;font-size:14px;line-height:1;text-shadow:0 1px 2px #000;animation:zgi-pointe 1.4s infinite alternate}
.zgi-jeton{position:absolute;top:-8px;right:-3px;text-decoration:none;font-size:14px;animation:zgi-pose .35s ease-out}
.zgi-piste-ca .zgi-case-mois{min-height:150px}
.zgi-barre{position:relative;display:block;width:68%;background:linear-gradient(180deg,#f97316,#fb923c);border-radius:4px 4px 0 0;animation:zgi-monte .7s ease-out both;max-height:96px;min-height:3px;font-style:normal}
.zgi-case-mois .zgi-barre{margin-top:auto}
.zgi-barre em{position:absolute;top:-16px;left:50%;transform:translateX(-50%);font-size:11px;font-weight:800;font-style:normal;color:#0f172a}
.zgi-piste-ca .zgi-barre{height:auto}
@keyframes zgi-pointe{from{transform:translate(-50%,-2px)}to{transform:translate(-50%,2px)}}
@keyframes zgi-pose{from{transform:translateY(-14px) scale(1.5);opacity:0}to{transform:none;opacity:1}}
@keyframes zgi-monte{from{transform:scaleY(0);transform-origin:bottom}to{transform:scaleY(1);transform-origin:bottom}}
.zgi-exercice{font-weight:800;margin:8px 0;color:#0c4a6e}

/* ---- Cases à choisir ---- */
.zgi-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.zgi-5{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.zgi-case{font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:9px 6px;cursor:pointer;color:#0f172a;touch-action:manipulation;min-width:0}
.zgi-case>span{font-size:23px}
.zgi-case>b{font-size:14px}
.zgi-case>i{font-style:normal;font-size:12px;color:#475569}
.zgi-case:hover:not(:disabled){border-color:#0e7490;background:#ecfeff}
.zgi-case.on{border-color:#0e7490;background:#cffafe;box-shadow:0 0 0 2px #0e7490}
.zgi-case.bon{border-color:#16a34a;background:#dcfce7}
.zgi-case.faux{border-color:#f59e0b;background:#fef3c7}
.zgi-choix-ligne{margin:8px 0}
.zgi-choix-ligne>b{display:block;margin:0 0 4px;font-size:14px;color:#0c4a6e}
.zgi-carte-decision,.zgi-carte-info{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;background:#fffbeb;border:2px solid #d97706;border-radius:12px;padding:12px;margin:8px auto;max-width:560px;box-shadow:0 5px 14px rgba(0,0,0,.14);animation:zgi-pose .3s ease-out}
.zgi-carte-decision span,.zgi-carte-n{font-size:12.5px;font-weight:700;color:#92400e}
.zgi-carte-decision b,.zgi-carte-info b{font-size:17px;line-height:1.3}
.zgi-carte-ico{font-size:30px}
.zgi-carte-info i{font-style:normal;font-size:13px;color:#475569}
.zgi-zones{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.zgi-zone{display:flex;flex-direction:column;gap:3px;background:#f0fdf4;border:2px dashed #16a34a;border-radius:10px;padding:7px;min-height:58px;font-size:12.5px;min-width:0}
.zgi-zone-m{background:#fff7ed;border-color:#ea580c}
.zgi-zone-l{background:#f5f3ff;border-color:#7c3aed}
.zgi-zone span{background:#fff;border-radius:6px;padding:3px 5px}
.zgi-brume{position:relative;background:#f8fafc;border:2px solid #cbd5e1;border-radius:12px;padding:9px 11px;margin:8px 0}
.zgi-brume p{margin:4px 0 7px}
.zgi-brume em{display:block;font-style:normal;font-size:13.5px;margin-top:7px;color:#0c4a6e}
.zgi-brume-2{background:linear-gradient(90deg,#e2e8f0,#f1f5f9)}
.zgi-brume-3{background:linear-gradient(90deg,#cbd5e1,#e2e8f0)}

/* ---- Les pions et leurs heures ---- */
.zgi-compteur{background:#fff7ed;border:2px solid #ea580c;border-radius:12px;padding:8px 12px;margin:8px 0}
.zgi-compteur.ok{background:#f0fdf4;border-color:#16a34a}
.zgi-compteur b{font-size:20px;margin-right:10px;font-variant-numeric:tabular-nums}
.zgi-compteur-b{height:10px;background:#e2e8f0;border-radius:6px;overflow:hidden;margin-top:5px}
.zgi-compteur-b i{display:block;height:100%;background:linear-gradient(90deg,#0e7490,#ea580c);transition:width .25s}
.zgi-pions{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:8px}
.zgi-pion,.zgi-pion-grand{display:flex;flex-direction:column;align-items:center;gap:3px;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:7px;text-align:center}
.zgi-pion.sais{background:#ecfeff}
.zgi-pion.sup,.zgi-pion-grand.sup{border-color:#f59e0b;background:#fffbeb}
.zgi-pion.max{border-color:#ea580c}
.zgi-pion.bloque,.zgi-pion-grand.bloque{border-color:#dc2626;background:#fef2f2;animation:zgi-secoue .4s}
.zgi-pion-t{font-size:24px}
.zgi-pion b{font-size:13px}
.zgi-pion em{font-style:normal;font-weight:800;font-variant-numeric:tabular-nums}
.zgi-sablier{width:26px;height:38px;border:2px solid #475569;border-radius:5px;display:flex;align-items:flex-end;overflow:hidden;background:#f1f5f9}
.zgi-sablier i{display:block;width:100%;background:#0e7490;transition:height .2s}
.zgi-pion.sup .zgi-sablier i{background:#f59e0b}
.zgi-pion.max .zgi-sablier i{background:#ea580c}
.zgi-pm{display:flex;gap:6px}
.zgi-pm button{font:inherit;font-weight:900;font-size:19px;width:40px;height:38px;border:2px solid #cbd5e1;border-radius:9px;background:#fff;cursor:pointer;touch-action:manipulation}
.zgi-pm button:hover{border-color:#0e7490}
.zgi-outils{display:flex;flex-wrap:wrap;gap:7px;margin:9px 0}
.zgi-pion-grand{max-width:230px;margin:10px auto}
.zgi-pion-grand span{font-size:44px}
.zgi-pion-grand b{font-size:20px}
@keyframes zgi-secoue{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}

/* ---- La saison fraîche, les jetons, les cartes ---- */
.zgi-cases-f{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.zgi-case-f{font:inherit;display:flex;flex-direction:column;gap:3px;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:9px 11px;cursor:pointer;color:#0f172a;touch-action:manipulation}
.zgi-case-f>span{font-size:22px}
.zgi-case-f em{font-style:normal;font-size:13px;color:#334155}
.zgi-case-f.on{border-color:#0e7490;background:#cffafe}
.zgi-case-f.bon{border-color:#16a34a;background:#dcfce7}
.zgi-case-f.faux{border-color:#f59e0b;background:#fef3c7}
.zgi-rang{display:flex;justify-content:center;gap:6px;font-size:30px;margin:8px 0;flex-wrap:wrap}
.zgi-rang span{animation:zgi-attend 1.3s infinite alternate}
@keyframes zgi-attend{from{transform:translateY(0)}to{transform:translateY(-5px)}}
.zgi-jeton-l{display:flex;gap:9px;align-items:flex-start;background:#f8fafc;border:2px solid #cbd5e1;border-radius:12px;padding:8px 10px;margin:7px 0}
.zgi-jeton-l.bon{border-color:#16a34a;background:#f0fdf4}
.zgi-jeton-l.faux{border-color:#f59e0b;background:#fffbeb}
.zgi-jeton-l em{display:block;font-style:normal;font-size:13.5px;color:#334155}
.zgi-paquet{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0}
.zgi-carte-etat{display:flex;flex-direction:column;gap:3px;background:#fffbeb;border:2px solid #d97706;border-radius:11px;padding:8px;font-size:13px;min-width:0;transition:filter .4s,background .4s}
.zgi-carte-etat span{font-size:22px}
.zgi-carte-etat i{font-style:normal;color:#475569}
.zgi-e-ok{background:#dcfce7;border-color:#16a34a}
.zgi-e-ecartee{background:#f1f5f9;border-color:#94a3b8}
.zgi-e-perimee,.zgi-e-perdue,.zgi-e-vieille{background:#fee2e2;border-color:#dc2626;filter:saturate(.75)}
.zgi-source{background:#f8fafc;border:2px solid #cbd5e1;border-radius:12px;padding:8px 11px;margin:7px 0}
.zgi-source p{margin:0 0 6px}
.zgi-source em{display:block;font-style:normal;font-size:13.5px;margin-top:6px;color:#334155}
.zgi-grille{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.zgi-critere{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
.zgi-critere b{width:100%;font-size:13.5px}
.zgi-demandes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.zgi-demande{font:inherit;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:10px;padding:8px 10px;cursor:pointer;color:#0f172a;touch-action:manipulation}
.zgi-demande.on{border-color:#16a34a;background:#dcfce7;opacity:1}
.zgi-demande.rate{border-color:#dc2626;background:#fee2e2;opacity:1}
.zgi-papiers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.zgi-papier{font:inherit;min-height:112px;background:#fffbeb;border:2px solid #d97706;border-radius:10px;padding:9px;cursor:pointer;color:#0f172a;touch-action:manipulation}
.zgi-papier.vu{opacity:1;cursor:default}
.zgi-papier.vieux{background:#fee2e2;border-color:#dc2626}
.zgi-papier span{display:flex;flex-direction:column;gap:3px}
.zgi-papier i,.zgi-papier em{font-style:normal;font-size:13px}

/* ---- Documents, bilan, accueil ---- */
.zgi-bord{background:#fff;color:#0f172a;border-radius:12px;padding:10px;text-align:left}
.zgi-bord-t{font-weight:900;font-size:16px;margin:0 0 13px}
.zgi-jauges{display:flex;flex-direction:column;gap:6px;margin:10px 0}
.zgi-jauge{display:grid;grid-template-columns:96px 1fr 30px;gap:8px;align-items:center;font-size:13.5px}
.zgi-jauge em{grid-column:1/-1;font-style:normal;font-size:12px;color:#475569;margin-top:-4px}
.zgi-jauge-barre{height:11px;background:#e2e8f0;border-radius:6px;overflow:hidden}
.zgi-jauge-barre i{display:block;height:100%;background:#0e7490}
.zgi-jauge.haut .zgi-jauge-barre i{background:#16a34a}
.zgi-jauge.bas .zgi-jauge-barre i{background:#dc2626}
.zgi-souvenirs{margin:6px 0 0;padding-left:0;list-style:none;font-size:13.5px}
.zgi-souvenirs li{padding:4px 0;border-top:1px solid #e2e8f0}
.zgi-badge{background:#fff;color:#0f172a;border-radius:14px;overflow:hidden;border:2px solid #0e7490;max-width:430px;margin:0 auto 12px;text-align:left}
.zgi-badge-haut{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;background:linear-gradient(135deg,#0e7490,#ea580c);color:#fff;padding:8px 12px;font-size:13px}
.zgi-badge-corps{display:flex;gap:12px;padding:12px}
.zgi-badge-photo{width:82px;height:100px;flex:0 0 82px;border-radius:10px!important;font-size:44px}
.zgi-badge-corps>div{display:flex;flex-direction:column;gap:3px}
.zgi-badge-mission{font-weight:800;color:#c2410c}
.zgi-doc{background:#fff;color:#0f172a;border-radius:10px;padding:12px;text-align:left}
.zgi-doc-tete{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;border-bottom:2px solid #0e7490;padding-bottom:5px;margin-bottom:8px}
.zgi-hypo-doc{display:flex;flex-direction:column;gap:3px;background:#f8fafc;border-radius:8px;padding:8px;margin:6px 0}
.zgi-hypo-doc em{font-style:normal;font-size:13px;color:#475569}
.zgi-hypo{background:#fff;border-radius:12px;padding:8px}
.zgi-hypo-tete{display:flex;justify-content:space-between;gap:6px;margin-bottom:6px}
.zgi-hypo-l{display:flex;flex-direction:column;gap:7px}
.zgi-hypo-o{font:inherit;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:10px;padding:9px 11px;cursor:pointer;color:#0f172a;touch-action:manipulation}
.zgi-hypo-o.bon{border-color:#16a34a;background:#dcfce7}
.zgi-hypo-o.faux{border-color:#f59e0b;background:#fef3c7}
.zgi-plan ol{padding-left:20px}
.zgi-plan li{margin:7px 0}
.zgi-plan em{display:block;font-style:normal;font-size:13px}
.zgi-tenu em{color:#15803d}
.zgi-a-tenir em{color:#b45309}
.zgi-ctx{display:flex;gap:9px;align-items:flex-start}
.zgi-ctx p{margin:0}
.zgi-doc-lettre{background:#fffbeb;border:1px solid #d97706;border-radius:8px;padding:8px 11px;margin:7px 0;font-size:14px}
.zgi-doc-lettre p{margin:2px 0}
.zgi-doc-titre{font-weight:800}
.zgi-options{display:flex;flex-direction:column;gap:7px;margin:7px 0}
.zgi-aide{margin:7px 0}
.zgi-aide-bouton{font:inherit;font-weight:700;display:flex;justify-content:space-between;gap:8px;width:100%;background:#fefce8;border:1px solid #eab308;border-radius:9px;padding:7px 10px;cursor:pointer;color:#0f172a}
.zgi-aide-corps{background:#fefce8;border-radius:0 0 9px 9px;padding:6px 10px;font-size:14px}
.zgi-aide-corps p{margin:3px 0}
.zgi-aide-formule{font-weight:800}
.zgi-rappel{background:#eff6ff;border-left:5px solid #2563eb;border-radius:8px;padding:8px 10px;font-weight:700;margin:6px 0}
.zgi-formule{margin:6px 0}
.zgi-saisie{display:flex;align-items:center;gap:7px;margin:7px 0;flex-wrap:wrap}
.zgi-saisie input{font:inherit;font-size:18px;width:120px;padding:7px 9px;border:2px solid #94a3b8;border-radius:9px}
.zgi-suite{margin-top:7px}
.zgi-accueil-titre{display:flex;align-items:center;gap:12px;justify-content:center;flex-wrap:wrap}
.zgi-logo-aiguille{font-size:54px;animation:zgi-attend 1.5s infinite alternate}
.zgi-accueil h1{margin:0}
.zgi-accueil h1 span{display:block;font-size:15px;font-weight:600;opacity:.82}
.zgi-portes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.zgi-porte{font:inherit;display:flex;flex-direction:column;gap:3px;text-align:left;background:#ecfeff;border:2px solid #0e7490;border-radius:12px;padding:11px;cursor:pointer;color:#0f172a;touch-action:manipulation}
.zgi-porte-2{background:#fff7ed;border-color:#ea580c}
.zgi-porte span{font-size:13px;font-weight:700}
.zgi-porte i{font-style:normal;font-size:13px;color:#475569}
.zgi-bravo{text-align:center}
.zgi-bravo-score b{font-size:42px;display:block}
.zgi-bravo-score span{font-size:24px;color:#d97706}
.zgi-fin-profil{background:#ecfeff;color:#0f172a;border-radius:12px;padding:10px 13px;margin:9px 0}
.zgi-fin-profil p{margin:5px 0 0}
.zgi-rejouer{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:9px 0;font-size:13.5px}
.zgi-maq{margin:9px 0}
@media (max-width:640px){
  .zgi-piste{padding:15px 3px 4px;gap:2px}
  .zgi-case-mois{min-height:41px;border-width:1px;border-radius:5px}
  .zgi-m-nom{font-size:8.5px}
  .zgi-m-niv{font-size:9.5px}
  .zgi-barre em{font-size:8.5px}
  .zgi-3,.zgi-zones,.zgi-portes,.zgi-cases-f,.zgi-demandes,.zgi-papiers{grid-template-columns:1fr}
  .zgi-5{grid-template-columns:repeat(2,minmax(0,1fr))}
  .zgi-paquet{grid-template-columns:repeat(2,minmax(0,1fr))}
  .zgi-grille{grid-template-columns:1fr}
  .zgi-case{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:5px;padding:7px 5px}
  .zgi-case>i{width:100%}
  .zgi-pions{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .zgi-pm button{width:34px}
  .zgi-hud-jauges{font-size:11.5px;gap:4px;padding:3px 5px}
}
/* ==== zgi : fin des styles ==== */
/* ==== pbl : debut des styles ====
   « Kadré la kestyon ! » — préfixe pbl-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.pbl). Couleurs : le bleu-vert du
   lagon, l'ambre d'un tirage, le bois d'un studio photo. */
.pbl .pdl-cta{background:linear-gradient(135deg,#0f766e,#115e59);box-shadow:0 6px 18px rgba(15,118,110,.3)}
.pbl .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(15,118,110,.4)}
.pbl .pdl-cta.alt{background:#fff;color:#1c1917;border:2px solid #0f766e;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.pbl .pdl-decor{background:linear-gradient(135deg,#134e4a,#1c1917 60%,#78350f)}
.pbl-panneau{color:#1c1917}
.pbl .pbl-panneau-large{max-width:1000px;width:100%}
.pbl-photo-ico{display:inline-grid;place-items:center;font-size:30px;background:#99f6e4;border-radius:50%}
.pbl .pdl-bulle-photo.pbl-photo-ico{width:64px;height:64px;flex:0 0 64px}
.pbl .pdl-hud-moi .pbl-photo-ico{width:36px;height:36px;font-size:20px;border:2px solid #fbbf24}
.pbl-perso-img.pbl-photo-ico{display:grid;width:100%;aspect-ratio:3/3.4;font-size:64px;border-radius:0;background:linear-gradient(160deg,#ccfbf1,#fde68a)}
img.pbl-photo{object-fit:cover;object-position:50% 22%}
img.pbl-perso-img{width:100%;aspect-ratio:3/3.4;display:block}
img.pbl-badge-photo{width:84px;height:96px;border-radius:10px;flex:0 0 84px}
.pbl-note{font-size:13.5px;color:#57534e;margin:8px 0}
.pbl-consigne{background:#f0fdfa;border-left:5px solid #0f766e;border-radius:10px;padding:10px 12px;margin:6px 0;font-size:15px;line-height:1.45}
.pbl-petit{font:inherit;font-weight:700;font-size:13.5px;background:#f5f5f4;border:2px solid #d6d3d1;border-radius:10px;padding:7px 10px;cursor:pointer;color:#1c1917;touch-action:manipulation}
.pbl-petit:hover:not(:disabled){border-color:#0f766e;background:#f0fdfa}
.pbl .pbl-hud-prog{gap:4px}
.pbl .pbl-hud-prog em{font-style:normal;font-size:14px;margin:0 2px 0 6px}
.pbl-tm-notion{color:#ccfbf1;font-weight:700;margin:6px 0 12px;font-size:15px}
.pbl-fil{display:flex;gap:6px;justify-content:center;margin:0 0 10px;flex-wrap:wrap}
.pbl-fil span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.35);font-size:15px;opacity:.7}
.pbl-fil .pbl-fil-fait{background:#bbf7d0;opacity:1}
.pbl-fil .pbl-fil-ici{background:#fff;opacity:1;box-shadow:0 0 0 3px #0f766e}
.pbl-semaine{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
.pbl-semaine span{background:rgba(255,255,255,.7);border:2px solid #99f6e4;border-radius:999px;padding:4px 10px;font-weight:700;font-size:13.5px;color:#134e4a}
.pbl-semaine span.fait{background:#bbf7d0;border-color:#16a34a}
/* Le tri */
.pbl-carte{background:#fff;border:2px solid #5eead4;border-radius:14px;padding:14px;font-size:17px;font-weight:700;box-shadow:0 6px 14px rgba(0,0,0,.08);margin:6px 0 10px}
.pbl-carte p{margin:0}
.pbl-dest{display:grid;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
.pbl-dest.dest-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.pbl-dest.dest-5{grid-template-columns:repeat(3,minmax(0,1fr))}
.pbl-dest-b{font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px 6px;cursor:pointer;color:#1c1917;text-align:center}
.pbl-dest-b span{font-size:22px}
.pbl-dest-b b{font-size:14px;line-height:1.2}
.pbl-dest-b:hover:not(:disabled){border-color:#0f766e}
.pbl-dest-b.bon{border-color:#16a34a;background:#dcfce7}
.pbl-dest-b.faux{border-color:#dc2626;background:#fee2e2}
/* Le constat, le compositeur, la grille */
.pbl-constat{background:#fffbeb;border:2px dashed #d97706;border-radius:12px;padding:10px 14px;margin:6px 0 10px;font-size:15px;color:#1c1917}
.pbl-constat ul{margin:6px 0 4px 18px;padding:0}
.pbl-constat i{font-size:12.5px;color:#78716c}
.pbl-slot{display:flex;flex-direction:column;gap:6px;margin:8px 0}
.pbl-choix{font:inherit;text-align:left;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px 12px;cursor:pointer;color:#1c1917;font-size:15.5px}
.pbl-choix:hover:not(:disabled){border-color:#0f766e}
.pbl-choix.on{border-color:#0f766e;background:#ccfbf1;font-weight:700}
.pbl-phrase{background:#fff;border:3px solid #0f766e;border-radius:14px;padding:12px 14px;font-size:17px;font-weight:700;margin:10px 0;line-height:1.4}
.pbl-lampes{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.pbl-lampe{border-radius:999px;padding:5px 12px;font-weight:700;font-size:14px}
.pbl-lampe.bon{background:#dcfce7;color:#14532d;border:2px solid #16a34a}
.pbl-lampe.faux{background:#fee2e2;color:#7f1d1d;border:2px solid #dc2626}
.pbl-grille-l{background:#fff;border:2px solid #e7e5e4;border-radius:12px;padding:10px 12px;margin:8px 0;font-size:15px}
.pbl-oui{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.pbl-oui button{font:inherit;font-weight:700;background:#f5f5f4;border:2px solid #d6d3d1;border-radius:10px;padding:6px 12px;cursor:pointer;color:#1c1917}
.pbl-oui button.on.oui{background:#dcfce7;border-color:#16a34a}
.pbl-oui button.on.non{background:#fee2e2;border-color:#dc2626}
.pbl-oui button.on.doute{background:#fef9c3;border-color:#ca8a04}
.pbl-zone{width:100%;font:inherit;font-size:16px;border:2px solid #0f766e;border-radius:12px;padding:10px;box-sizing:border-box;resize:vertical}
.pbl-compte{font-size:12.5px;color:#57534e;margin:4px 0 8px}
.pbl-modeles li{margin:6px 0;font-size:15.5px}
/* Le viseur : la photo se rapproche quand on tourne la bague */
.pbl-vis-fen{position:relative;overflow:hidden;border-radius:16px;border:4px solid #1c1917;aspect-ratio:16/8;background:#134e4a;margin:8px 0}
.pbl-vis-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.3,.7,.3,1);transform-origin:50% 55%}
.pbl-vis-croix{position:absolute;inset:0;pointer-events:none;background:linear-gradient(#fff6,#fff6) 50% 0/2px 100% no-repeat,linear-gradient(#fff6,#fff6) 0 50%/100% 2px no-repeat;border:22px solid rgba(0,0,0,.18)}
.pbl-vis-txt{position:absolute;left:0;right:0;bottom:0;background:rgba(0,0,0,.72);color:#fff;padding:8px 12px}
.pbl-vis-txt p{margin:2px 0 0;font-size:16px;font-weight:700;line-height:1.35}
.pbl-vis-txt i{font-size:12.5px;color:#99f6e4;font-style:normal}
.pbl-bague{display:flex;align-items:center;justify-content:center;gap:8px;margin:8px 0}
.pbl-bague button{font:inherit;font-size:20px;width:48px;height:44px;border-radius:12px;border:2px solid #0f766e;background:#fff;cursor:pointer}
.pbl-bague button:disabled{opacity:.35;cursor:default}
.pbl-cran{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e7e5e4;font-weight:700}
.pbl-cran.on{background:#0f766e;color:#fff;box-shadow:0 0 0 3px #99f6e4}
.pbl-cadre{font-size:14px;color:#44403c;text-align:center;margin:4px 0 8px}
/* Les documents */
.pbl-badge{background:#fff;border-radius:16px;overflow:hidden;border:3px solid #1c1917;max-width:420px;margin:0 auto 12px;color:#1c1917;text-align:left}
.pbl-badge-haut{background:linear-gradient(90deg,#134e4a,#0f766e,#d97706);color:#fff;padding:8px 12px;display:flex;flex-direction:column}
.pbl-badge-haut b{font-size:20px;letter-spacing:3px}
.pbl-badge-haut span{font-size:11.5px;font-weight:700}
.pbl-badge-corps{display:flex;gap:12px;padding:12px;align-items:center}
.pbl-badge-corps>div{display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.pbl-badge-corps b{font-size:18px}
.pbl-badge-photo.pbl-photo-ico{width:84px;height:96px;flex:0 0 84px;border-radius:10px;font-size:44px}
.pbl-doc{background:#fff;border:2px solid #d6d3d1;border-radius:14px;padding:10px 14px;color:#1c1917}
.pbl-doc-tete{display:flex;flex-direction:column;border-bottom:3px solid #0f766e;margin-bottom:8px;padding-bottom:6px}
.pbl-doc-tete span{font-size:12.5px;color:#57534e}
.pbl-fiche{margin:8px 0;display:flex;flex-direction:column;gap:2px;font-size:14.5px}
.pbl-fiche i{font-style:normal;color:#57534e;font-size:13.5px}
.pbl-mur{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.pbl-tirage{display:flex;flex-direction:column;gap:2px;font-size:12.5px;overflow:hidden}
.pbl-tirage img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:8px;transition:filter .8s}
.pbl-tirage i{font-style:normal;color:#57534e}
.pbl-bravo,.pbl-fin{color:#1c1917}
.pbl-bravo-score{display:flex;align-items:center;gap:12px;font-size:32px;margin:6px 0}
.pbl-rejouer{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:10px 0}
@media (max-width:560px){.pbl-dest,.pbl-dest.dest-3,.pbl-dest.dest-5{grid-template-columns:repeat(2,minmax(0,1fr))}.pbl-mur{grid-template-columns:repeat(2,minmax(0,1fr))}.pbl-vis-fen{aspect-ratio:4/3}}
/* ==== pbl : fin des styles ==== */
/* ==== agj : debut des styles ==== */
.agj-page{max-width:860px;margin:0 auto;padding:12px 14px 40px;color:#1e293b;font-size:17px;line-height:1.5}
.agj-page h2,.agj-page h3,.agj-page h4{margin:.4em 0;color:#0f172a}
.agj-hero{position:relative;border-radius:16px;overflow:hidden;background:#0f172a;margin-bottom:14px}
.agj-hero .agj-ban{width:100%;max-height:300px;object-fit:cover;display:block;opacity:.55}
.agj-hero-txt{position:absolute;inset:0;padding:18px;color:#fff;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(transparent 20%,rgba(2,6,23,.85))}
.agj-hero-txt h2{color:#fff;margin:0 0 6px}.agj-hero-txt p{margin:.2em 0}
.agj-ban{width:100%;max-height:170px;object-fit:cover;border-radius:12px;display:block;margin:6px 0}
.agj-intro{display:flex;gap:14px;align-items:center;background:#f1f5f9;border-radius:14px;padding:12px;margin-bottom:10px}
.agj-portrait{width:96px;height:128px;object-fit:cover;border-radius:12px;flex:none}
.agj-barre{display:flex;justify-content:space-between;gap:8px;background:#0f172a;color:#fff;border-radius:12px;padding:8px 14px;margin-bottom:12px;font-weight:700;font-size:15px}
.agj-tete{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:#475569}
.agj-tag{background:#e0e7ff;color:#3730a3;border-radius:99px;padding:3px 12px;font-weight:700}
.agj-palier-tete{display:flex;gap:12px;align-items:center}.agj-palier-tete>span{font-size:40px}
.agj-aide{background:#fef9c3;border-radius:10px;padding:8px 12px;font-size:15px}
.agj-lecon{background:#eff6ff;border-left:5px solid #2563eb;border-radius:10px;padding:8px 16px;margin:10px 0}
.agj-legende{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.agj-leg{border:2px solid;border-radius:99px;padding:2px 12px;font-weight:700;font-size:14px;background:#fff}
.agj-annexes{background:#fffbeb;border:1px dashed #d97706;border-radius:10px;padding:8px 14px;margin:8px 0;font-size:16px}
.agj-annexes p{margin:.3em 0}
.agj-question{font-weight:700;font-size:18px;background:#f1f5f9;border-radius:10px;padding:8px 12px}
.agj-bulle{display:flex;gap:10px;align-items:flex-start;margin:8px 0}
.agj-bulle-ico{font-size:30px}.agj-bulle-txt{background:#ede9fe;border-radius:14px;padding:8px 14px;font-weight:600}
.agj-seg{border-left:6px solid #94a3b8;background:#fff;border-radius:10px;padding:6px 12px;margin:8px 0;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.agj-seg p{margin:.3em 0}.agj-seg.ok{background:#f0fdf4}.agj-seg.ko{background:#fef2f2}
.agj-btns{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0}
.agj-b{min-height:44px;font:inherit;font-size:14px;font-weight:700;border:2px solid #cbd5e1;background:#fff;border-radius:99px;padding:4px 12px;cursor:pointer}
.agj-b.on{border-color:transparent}
.agj-w{font-size:15px;color:#334155;margin:.3em 0}
.agj-duels{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0}
@media (max-width:640px){.agj-duels{grid-template-columns:1fr}.agj-intro{flex-direction:column;text-align:center}}
.agj-duel,.agj-opt,.agj-optpos,.agj-piece{font:inherit;text-align:left;border:2px solid #cbd5e1;background:#fff;border-radius:12px;padding:10px 14px;cursor:pointer;color:#1e293b;display:block;width:100%;margin:6px 0}
.agj-duel span{display:block;margin-top:4px}
.agj-duel.on,.agj-opt.on,.agj-optpos.on{border-color:#2563eb;background:#eff6ff}
.agj-duel.ok,.agj-opt.ok{border-color:#16a34a;background:#f0fdf4}.agj-duel.ko,.agj-opt.ko{border-color:#dc2626;background:#fef2f2}
.agj-pos{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.agj-optpos{text-align:center;font-weight:700}
.agj-bloc{background:#f8fafc;border-radius:12px;padding:8px 14px;margin:10px 0}
.agj-corr{background:#f0f9ff;border-radius:12px;padding:8px 14px;margin:10px 0}
.agj-phrase{font-size:18px;background:#f8fafc;border-radius:10px;padding:10px 14px}
.agj-trou{background:#fde68a;border-radius:6px;padding:1px 8px;font-weight:700}
.agj-trou.ok{background:#bbf7d0}.agj-trou.ko{background:#fecaca}
.agj-slots{display:grid;gap:8px;margin:8px 0}
.agj-slot{border:2px dashed #94a3b8;border-radius:12px;padding:8px 12px;min-height:54px;cursor:pointer;background:#fff}
.agj-slot small{display:block;font-weight:700;color:#64748b}.agj-slot.plein{border-style:solid}
.agj-slot.ok{background:#f0fdf4;border-color:#16a34a}.agj-slot.ko{background:#fef2f2;border-color:#dc2626}
.agj-piece:disabled{opacity:.35;cursor:default}
.agj-petit{font-size:14px;color:#64748b}.agj-rappel{background:#fef9c3;border-radius:8px;padding:6px 12px;font-size:15px}
.agj-ordre{border-left:5px solid;padding-left:10px;margin:.4em 0}
.agj-inter h4{margin-top:0}.agj-qr{border-top:1px solid #e2e8f0;padding-top:6px}
.agj-rep.ok{background:#f0fdf4}.agj-rep.ko{background:#fef2f2}.agj-rep{border-radius:8px;padding:6px 10px;margin:.3em 0}
.agj-area{width:100%;box-sizing:border-box;font:inherit;border:2px solid #cbd5e1;border-radius:12px;padding:10px;resize:vertical}
.agj-memo{background:#ecfeff;border-radius:8px;padding:8px 12px;font-size:15px}
.agj-consigne{font-weight:600}
.agj-case{display:flex;gap:8px;align-items:flex-start;margin:6px 0;font-size:16px}
.agj-case input{margin-top:6px;width:20px;height:20px;flex:none}
.agj-modele{background:#fff;border-left:5px solid #16a34a;padding:8px 12px;border-radius:8px}
.agj-score{margin-top:12px;font-weight:700}
.agj-score .pdl-cta,.agj-page>.pdl-cta,.agj-page div>.pdl-cta{margin:8px 8px 0 0}
.agj-jauge{height:14px;background:#e2e8f0;border-radius:99px;overflow:hidden;flex:1;min-width:80px}
.agj-jauge div{height:100%;background:linear-gradient(90deg,#f59e0b,#16a34a);transition:width .6s}
.agj-ligne{display:flex;gap:10px;align-items:center;margin:6px 0;flex-wrap:wrap}
.agj-ligne span{min-width:230px}
.agj-bacc{background:#f8fafc;border-radius:12px;padding:6px 14px;margin:10px 0;border-left:5px solid #7c3aed}
.agj-forme{background:#ede9fe;border-radius:8px;padding:6px 12px;font-size:15px}
.agj-dossier{background:#fffbeb;border:1px solid #fcd34d;border-radius:12px;padding:8px 14px;margin:10px 0}
/* ==== agj : fin des styles ==== */
/* ==== bws : debut des styles ====
   « Fé sonn lo bwa ! » — préfixe bws-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.bws). Couleurs : le bois de
   tamarin, l'ambre du vernis, le vert des Hauts. Images : img/bwasonn/.
   Les dégradés sont posés SOUS la photo : ils restent visibles si elle manque. */
.bws .pdl-cta{background:linear-gradient(135deg,#b45309,#166534);box-shadow:0 6px 18px rgba(180,83,9,.3)}
.bws .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(180,83,9,.4)}
.bws .pdl-cta.alt{background:#fff;color:#451a03;border:2px solid #b45309;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.bws .pdl-decor{background:linear-gradient(135deg,#292524,#78350f 55%,#14532d)}
.bws .pdl-decor-img{background-size:cover!important}
.bws .pdl-decor.bws-d-garage{background-image:linear-gradient(160deg,#78350f,#a16207 55%,#166534)}
.bws .pdl-decor.bws-d-atelier{background-image:linear-gradient(170deg,#44403c,#92400e 60%,#14532d)}
.bws .pdl-decor.bws-d-village{background-image:linear-gradient(170deg,#94a3b8,#4d7c0f 60%,#14532d)}
.bws .pdl-decor.bws-d-mairie{background-image:linear-gradient(170deg,#fef3c7,#d6a15f 60%,#57534e)}
.bws-panneau{color:#1c1917}
.bws .bws-panneau-large{max-width:1000px;width:100%}
.bws-photo-ico{display:inline-grid;place-items:center;font-size:30px;background:#fef3c7;border-radius:50%;line-height:1}
.bws .pdl-bulle-photo.bws-photo-ico{width:64px;height:64px;flex:0 0 64px}
.bws .pdl-hud-moi .bws-photo-ico{width:36px;height:36px;font-size:20px;border:2px solid #fbbf24}
.bws-perso-img{width:100%;aspect-ratio:3/3.4;display:grid!important;font-size:64px;border-radius:0!important;background:linear-gradient(160deg,#fef3c7,#dcfce7)!important}
.bws-mini{width:44px;height:44px;flex:0 0 44px;font-size:24px}
.bws-photo-img{display:block;object-fit:cover;object-position:50% 25%;border-radius:50%;background:#fef3c7}
img.bws-perso-img{display:block!important;width:100%;height:auto;aspect-ratio:3/3.4;object-position:50% 20%;border-radius:12px!important}
.bws-note-p{font-size:13.5px;color:#57534e;margin:8px 0}
.bws-ko{color:#b45309;font-weight:700;margin:8px 0}
.bws-consigne{background:#fffbeb;border-left:5px solid #b45309;border-radius:10px;padding:10px 12px;margin:0 0 6px;font-size:15px;line-height:1.45}
.bws-exemple{background:#f0fdf4;border-radius:10px;padding:10px 12px;margin:6px 0;font-size:14.5px;line-height:1.45;color:#14532d}
.bws-regle{background:#1c1917;color:#fef3c7;border-radius:10px;padding:8px 12px;margin:0;font-size:14px;font-weight:700;line-height:1.4}
.bws-petit{font:inherit;font-weight:700;font-size:13.5px;background:#f5f5f4;border:2px solid #d6d3d1;border-radius:10px;padding:7px 10px;cursor:pointer;color:#1c1917;touch-action:manipulation}
.bws-petit:hover:not(:disabled){border-color:#b45309;background:#fffbeb}
.bws .bws-hud-prog{gap:4px}
.bws .bws-hud-prog em{font-style:normal;font-size:14px;margin:0 2px 0 6px}
.bws-hud-jauges{font:inherit;display:flex;gap:6px;align-items:center;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:10px;padding:4px 8px;color:inherit;cursor:pointer;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}
.bws-hud-jauges span.haut{color:#86efac}
.bws-hud-jauges span.bas{color:#fca5a5}
.bws-hud-hex{font-size:18px;line-height:1}
.bws-tm-notion{color:#fef3c7;font-weight:700;margin:6px 0 12px;font-size:15px}
.bws-fil{display:flex;gap:6px;justify-content:center;margin:0 0 10px;flex-wrap:wrap}
.bws-fil span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.35);font-size:15px;opacity:.7}
.bws-fil .bws-fil-fait{background:#bbf7d0;opacity:1}
.bws-fil .bws-fil-ici{background:#fff;opacity:1;box-shadow:0 0 0 3px #b45309}
.bws-accueil-titre{text-align:center;margin:6px 0}
.bws-accueil-titre span{display:block;font-size:15px;font-weight:600;opacity:.8}

/* ---- L'accueil ---- */
.bws-portes{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:14px 0}
.bws-porte{font:inherit;text-align:left;display:flex;flex-direction:column;gap:4px;background:#fff;color:#1c1917;border:3px solid #f59e0b;border-radius:16px;padding:14px;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.2);transition:transform .15s}
.bws-porte:hover{transform:translateY(-3px)}
.bws-porte b{font-size:19px}
.bws-porte span{font-weight:800;font-size:13px;color:#b45309}
.bws-porte i{font-style:normal;font-size:13.5px;color:#57534e}
.bws-porte-2{border-color:#16a34a}
.bws-porte-2 span{color:#166534}

/* ---- Zones communes ---- */
.bws-jetons,.bws-halo,.bws-pose,.bws-fleur-zone,.bws-table-zone,.bws-proto,.bws-depart,.bws-choix,.bws-calcul-zone,.bws-carton-zone,.bws-epoques{display:flex;flex-direction:column;gap:10px;text-align:left}
.bws-deux{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:12px;align-items:start}
.bws-col{display:flex;flex-direction:column;gap:8px}
@keyframes bws-tombe{from{transform:translateY(-24px) rotate(-3deg);opacity:0}to{transform:none;opacity:1}}
@keyframes bws-pose{0%{transform:scale(1.5);opacity:.2}70%{transform:scale(.96)}100%{transform:scale(1);opacity:1}}
@keyframes bws-onde{0%,100%{filter:brightness(1)}50%{filter:brightness(1.25)}}
@keyframes bws-loin{50%{opacity:.45}}

/* ---- Le plateau ---- */
.bws-plateau-zone{width:100%;max-width:470px;margin:0 auto}
.bws-plateau{position:relative;width:100%;aspect-ratio:1.0825;filter:drop-shadow(0 8px 10px rgba(28,25,23,.35))}
.bws-case{position:absolute;width:20%;height:25%;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);background:#57534e;border:0;padding:0;font:inherit;color:inherit;display:block}
.bws-fleur .bws-case{width:33.33%;height:40%}
.bws-case-in{position:absolute;inset:3.5%;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);background:#e7e5e4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;text-align:center;line-height:1.05;padding:0 6%}
.bws-case-ico{font-size:clamp(15px,4.4vw,24px)}
.bws-case-nom{font-size:clamp(8.5px,2.3vw,11.5px);font-weight:800;color:#1c1917}
.bws-case-d{position:absolute;top:6%;right:24%;background:#1c1917;color:#fff;border-radius:50%;width:18px;height:18px;display:grid;place-items:center;font-size:11px}
.bws-case-f{position:absolute;bottom:7%;font-style:normal;font-size:11px}
.bws-t-foret .bws-case-in{background:#86c67c}
.bws-t-scierie .bws-case-in{background:#d6a15f}
.bws-t-canne .bws-case-in{background:#d9f99d}
.bws-t-village .bws-case-in{background:#fed7aa}
.bws-t-cfa .bws-case-in,.bws-t-labo .bws-case-in{background:#bfdbfe}
.bws-t-mairie .bws-case-in{background:#fde68a}
.bws-t-route .bws-case-in{background:#d6d3d1}
.bws-t-fibre .bws-case-in{background:#c4b5fd}
.bws-t-port .bws-case-in,.bws-t-plage .bws-case-in{background:#7dd3fc}
.bws-t-site .bws-case-in{background:#fff7ed}
.bws-cliquable{cursor:pointer;touch-action:manipulation}
.bws-cliquable .bws-case-in{transition:filter .15s}
.bws-cliquable:hover:not(:disabled) .bws-case-in{filter:brightness(1.08)}
.bws-case.bws-t-site{background:#b45309}
.bws-sel{background:#16a34a!important}
.bws-sel .bws-case-in{background:#bbf7d0!important}
.bws-centre{background:#b45309}
.bws-d1{background:#f59e0b}
.bws-d2{background:#a8a29e}
.bws-cible{background:#dc2626!important;animation:bws-onde 1.2s infinite}
.bws-atelier{background:#92400e!important}
.bws-atelier .bws-case-in{background:linear-gradient(160deg,#fbbf24,#b45309)!important;animation:bws-pose .5s}
.bws-tuile .bws-case-in{background:#fde68a!important;animation:bws-pose .4s}
.bws-onde .bws-case-in{animation:bws-onde 2.4s infinite}
.bws-eteint{background:#44403c!important}
.bws-eteint .bws-case-in{background:#78716c!important;filter:grayscale(1)}
.bws-loin{position:absolute;right:-4px;top:-6px;background:#1e1b4b;color:#fff;border:2px dashed #a5b4fc;border-radius:12px;padding:4px 8px;font-size:12px;font-weight:800;display:flex;flex-direction:column;z-index:2}
.bws-loin i{font-style:normal;font-weight:600;font-size:10.5px}
.bws-loin-ko{border-color:#fca5a5;animation:bws-loin 1s infinite}
.bws-legende{font-size:13.5px;margin:6px 0 0;font-weight:700;text-align:center}

/* ---- La grille ---- */
.bws-grille-zone{overflow-x:auto}
.bws-grille{border-collapse:collapse;width:100%;font-size:13px;background:#fff}
.bws-grille th,.bws-grille td{border:1px solid #d6d3d1;padding:4px 6px;text-align:left}
.bws-grille th{background:#fef3c7;font-size:12px}
.bws-num{text-align:center!important;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.bws-grille-brut td{background:#f5f5f4}
.bws-grille-total td{background:#dcfce7;font-weight:900}

/* ---- Jetons, notes ---- */
.bws-jeton,.bws-evenement{display:flex;flex-direction:column;align-items:center;gap:3px;background:#fff;border:2px solid #f59e0b;border-radius:14px;padding:10px 14px;max-width:420px;align-self:center;text-align:center;box-shadow:0 8px 18px rgba(0,0,0,.15);animation:bws-tombe .4s}
.bws-jeton-n{font-size:12px;font-weight:800;color:#b45309}
.bws-jeton-ico{font-size:32px}
.bws-familles{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.bws-famille{font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border:3px solid #d6d3d1;border-radius:12px;padding:8px 5px;cursor:pointer;color:#1c1917;text-align:center;touch-action:manipulation}
.bws-famille span{font-size:22px}
.bws-famille b{font-size:13.5px}
.bws-famille i{font-style:normal;font-size:11.5px;color:#57534e}
.bws-famille.bon{background:#dcfce7;border-color:#16a34a}
.bws-famille.faux{background:#fef3c7;border-color:#f59e0b}
.bws-famille:disabled{cursor:default}
.bws-quatre{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.bws-tas{display:flex;flex-wrap:wrap;gap:2px;justify-content:center;border:2px dashed #d6d3d1;border-radius:10px;padding:5px;min-height:44px;background:#fafaf9;font-size:15px}
.bws-tas b{flex-basis:100%;text-align:center;font-size:12.5px}
.bws-question{background:#fffbeb;border:2px solid #f59e0b;border-radius:12px;padding:10px;animation:bws-tombe .35s}
.bws-question p{margin:6px 0}
.bws-notes{display:flex;gap:8px;justify-content:center}
.bws-note{font:inherit;font-size:22px;font-weight:900;width:54px;height:54px;border-radius:12px;background:#fff;border:3px solid #d6d3d1;cursor:pointer;color:#1c1917;touch-action:manipulation}
.bws-note.bon{background:#dcfce7;border-color:#16a34a}
.bws-note.faux{background:#fef3c7;border-color:#f59e0b}
.bws-site-choisi{margin:0;font-size:14px}

/* ---- Le puzzle ---- */
.bws-fleur{position:relative;width:100%;max-width:330px;margin:0 auto;aspect-ratio:1.04;filter:drop-shadow(0 6px 8px rgba(28,25,23,.3))}
.bws-vide .bws-case-in{background:#fafaf9}
.bws-vide .bws-case-nom{color:#a8a29e}
.bws-attend{background:#16a34a}
.bws-plateau-tuiles{display:flex;flex-wrap:wrap;gap:6px;min-height:32px}
.bws-a-poser{font:inherit;font-size:13.5px;font-weight:700;background:#fff;border:2px solid #d6d3d1;border-radius:10px;padding:7px 9px;cursor:pointer;color:#1c1917;touch-action:manipulation}
.bws-a-poser.on{border-color:#16a34a;background:#dcfce7}
.bws-liens{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px;font-size:13.5px}
.bws-lien-ok{color:#166534;font-weight:700}
.bws-lien-ko{color:#b91c1c;font-weight:700}

/* ---- La table de mixage ---- */
.bws-table{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;background:linear-gradient(180deg,#292524,#1c1917);border-radius:14px;padding:10px 8px}
.bws-piste{display:flex;flex-direction:column;align-items:center;gap:5px;color:#fef3c7;text-align:center;border-radius:10px;padding:4px 2px}
.bws-piste.bon{background:rgba(22,163,74,.3)}
.bws-piste.faux{background:rgba(245,158,11,.25)}
.bws-piste b{font-size:12.5px}
.bws-piste em{font-style:normal;font-size:10.5px;color:#d6d3d1;line-height:1.2}
.bws-pousse{font:inherit;font-size:17px;width:44px;height:38px;border-radius:9px;background:#57534e;border:2px solid #a8a29e;color:#fff;cursor:pointer;touch-action:manipulation}
.bws-pousse:disabled{opacity:.45;cursor:default}
.bws-pousse:active:not(:disabled){transform:translateY(2px)}
.bws-rail{position:relative;width:14px;height:96px;background:#0c0a09;border-radius:7px}
.bws-rail i{position:absolute;left:0;right:0;bottom:0;background:#f59e0b;border-radius:7px;transition:height .4s}
.bws-bouton-c{position:absolute;left:-7px;width:28px;height:18px;background:#e7e5e4;border-radius:4px;box-shadow:0 2px 4px rgba(0,0,0,.5);transition:bottom .4s}

/* ---- Prototype, départ ---- */
.bws-force{font-size:14px;font-weight:700}
.bws-force-barre{height:12px;background:#e7e5e4;border-radius:6px;overflow:hidden;margin-top:4px}
.bws-force-barre i{display:block;height:100%;background:linear-gradient(90deg,#0ea5e9,#16a34a);transition:width .6s}
.bws-carnet{background:#fffef5;border:1px solid #d6d3d1;border-radius:6px;padding:8px 12px;font-family:"Segoe Print",cursive;font-size:13px}
.bws-carnet p{margin:4px 0}
.bws-pertes{margin:0;padding-left:0;list-style:none;display:flex;flex-direction:column;gap:6px;font-size:14.5px;font-weight:700}
.bws-pertes li{background:#fef2f2;border-left:4px solid #dc2626;border-radius:8px;padding:6px 10px;animation:bws-tombe .35s}

/* ---- Découvertes ---- */
.bws-carton{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px}
.bws-piece{font:inherit;display:flex;flex-direction:column;align-items:center;gap:3px;background:#fef3c7;border:2px solid #d97706;border-radius:12px;padding:10px;cursor:pointer;color:#1c1917;text-align:center;touch-action:manipulation}
.bws-piece span{font-size:28px}
.bws-piece i{font-style:normal;font-size:12px;color:#92400e}
.bws-piece em{font-style:normal;font-size:13px;font-weight:700;color:#166534}
.bws-piece.vu{background:#fff;cursor:default}
.bws-dates{display:flex;gap:8px;justify-content:center}
.bws-date{font:inherit;font-weight:900;font-size:18px;padding:8px 18px;border-radius:12px;background:#fff;border:3px solid #d6d3d1;cursor:pointer;color:#1c1917;touch-action:manipulation}
.bws-date.on{background:#fbbf24;border-color:#b45309}
.bws-village{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;animation:bws-tombe .35s}
.bws-village div{display:flex;flex-direction:column;background:#f5f5f4;border-radius:10px;padding:8px 10px}
.bws-village span{font-size:12.5px;color:#57534e}
.bws-village b{font-size:16px}

/* ---- Choix, calcul, carnet ---- */
.bws-ctx{display:flex;gap:10px;align-items:flex-start;background:#fafaf9;border-radius:12px;padding:10px;border:1px solid #e7e5e4}
.bws-ctx p{margin:0;font-size:15px;line-height:1.45}
.bws-options{display:flex;flex-direction:column;gap:8px}
.bws-opt{text-align:left}
.bws .bws-opt.on{border-color:#b45309;background:#fffbeb}
.bws-suite{display:flex;flex-direction:column;gap:6px}
.bws-calcul{display:flex;flex-direction:column;gap:8px}
.bws-rappel{margin:0;background:#eff6ff;border:2px solid #bfdbfe;border-radius:10px;padding:10px 12px;font-size:14.5px;line-height:1.45}
.bws-formule{margin:0;font-size:14.5px}
.bws-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.bws-saisie input{font:inherit;font-size:18px;font-weight:700;width:150px;padding:8px 10px;border:2px solid #a8a29e;border-radius:10px}
.bws-saisie span{font-weight:800}
.bws-aide{border:2px dashed #fbbf24;border-radius:12px;background:#fafaf9}
.bws-aide-bouton{font:inherit;width:100%;display:flex;justify-content:space-between;gap:8px;background:transparent;border:0;padding:8px 12px;cursor:pointer;font-weight:800;color:#92400e;flex-wrap:wrap}
.bws-aide-bouton span{font-weight:600;font-size:12.5px;color:#57534e}
.bws-aide-corps{padding:0 12px 10px}
.bws-aide-corps p{margin:4px 0}
.bws-aide-formule{font-weight:700}
.bws-hypo{display:flex;flex-direction:column;gap:10px;text-align:left}
.bws-hypo-tete{display:flex;justify-content:space-between;gap:8px;background:#fef3c7;border-radius:8px;padding:6px 10px;flex-wrap:wrap}
.bws-hypo-tete span{font-size:12.5px;font-weight:700;color:#b45309}
.bws-hypo-l{display:flex;flex-direction:column;gap:8px}
.bws-hypo-o{font:inherit;text-align:left;background:#fff;border:2px solid #e7e5e4;border-radius:12px;padding:10px 12px;cursor:pointer;color:#1c1917;font-size:15px}
.bws-hypo-o.bon{background:#dcfce7;border-color:#16a34a}
.bws-hypo-o.faux{background:#fef3c7;border-color:#f59e0b}
.bws-hypo-doc{display:flex;flex-direction:column;gap:3px;background:#fffbeb;border-left:4px solid #b45309;border-radius:8px;padding:8px 10px;margin:6px 0;text-align:left}
.bws-hypo-doc span{font-size:13.5px}
.bws-hypo-doc em{font-size:12.5px;color:#b45309;font-style:normal}

/* ---- Tableau de bord, documents ---- */
.bws-bord{display:flex;flex-direction:column;gap:8px;text-align:left;background:#fafaf9;border-radius:14px;padding:10px;margin:8px 0;border:2px solid #e7e5e4;color:#1c1917}
.bws-bord-t{font-weight:900}
.bws-jauges{display:grid;gap:6px}
.bws-jauge{display:grid;grid-template-columns:120px 1fr 34px;gap:6px;align-items:center;font-size:13.5px}
.bws-jauge em{grid-column:1/-1;font-style:normal;font-size:11.5px;color:#57534e;margin-top:-4px}
.bws-jauge-barre{height:12px;background:#e7e5e4;border-radius:6px;overflow:hidden}
.bws-jauge-barre i{display:block;height:100%;background:#78716c;transition:width .6s}
.bws-jauge.haut .bws-jauge-barre i{background:#16a34a}
.bws-jauge.bas .bws-jauge-barre i{background:#dc2626}
.bws-jauge b{text-align:right;font-variant-numeric:tabular-nums}
.bws-souvenirs{margin:0;padding-left:18px;font-size:13.5px;display:flex;flex-direction:column;gap:4px}
.bws-badge{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 10px 24px rgba(0,0,0,.2);max-width:380px;margin:0 auto 12px;color:#1c1917;text-align:left}
.bws-badge-haut{background:linear-gradient(135deg,#b45309,#166534);color:#fff;padding:10px 14px;display:flex;flex-direction:column}
.bws-badge-haut b{letter-spacing:.2em}
.bws-badge-haut span{font-size:12px;opacity:.9}
.bws-badge-corps{display:flex;gap:12px;padding:12px 14px;align-items:center}
.bws-badge-corps>div{display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.bws-badge-corps b{font-size:18px}
.bws-badge-photo{width:76px;height:76px;font-size:44px;flex:0 0 76px}
.bws-badge-mission{font-weight:800;color:#b45309}
.bws-doc{background:#fff;border-radius:10px;padding:12px;color:#1c1917;text-align:left;box-shadow:0 6px 16px rgba(0,0,0,.1)}
.bws-doc-tete{display:flex;justify-content:space-between;gap:8px;border-bottom:2px solid #b45309;padding-bottom:6px;margin-bottom:8px;flex-wrap:wrap}
.bws-doc-tete span{font-size:12px;color:#57534e}
.bws-rapport ol{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px}
.bws-rapport li{display:flex;flex-direction:column;gap:2px;font-size:14px}
.bws-rapport li span{font-size:13px;color:#44403c}
.bws-rapport li em{font-style:normal;font-size:12.5px;font-weight:700}
.bws-tenu em{color:#166534}
.bws-a-tenir em{color:#b45309}
.bws-bravo-score{display:flex;flex-direction:column;align-items:center;margin:6px 0}
.bws-bravo-score b{font-size:42px;color:#b45309}
.bws-fin-profil{background:#fffbeb;border-radius:12px;padding:10px 12px;margin:8px 0;text-align:left}
.bws-fin-profil p{margin:4px 0}
.bws-rejouer{display:flex;gap:6px;flex-wrap:wrap;align-items:center;justify-content:center;margin:8px 0;font-size:13.5px}
.bws-maq{text-align:left}

@media (max-width:720px){
  .bws-deux{grid-template-columns:1fr}
  .bws-familles{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:560px){
  .bws-jauge{grid-template-columns:96px 1fr 30px}
  .bws-table{gap:3px;padding:8px 3px}
  .bws-piste b{font-size:11px}
  .bws-piste em{font-size:9.5px}
  .bws-hud-jauges{font-size:11.5px;gap:4px;padding:3px 5px}
  .bws-hud-hex{display:none}
  .bws-grille{font-size:12px}
}
/* ==== bws : fin des styles ==== */
/* ==== dmz : debut des styles ====
   « Toupi i déménaz ! » — préfixe dmz-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.dmz). Couleurs : le kraft des
   cartons, l'orange de la toupie, le vert d'eau des nouveaux locaux.
   Images : img/demenaz/ (décors 16:9, portraits 3:4). Les dégradés ci-dessous
   sont posés SOUS la photo (sur .pdl-decor) : ils restent visibles si elle manque. */
.dmz .pdl-cta{background:linear-gradient(135deg,#ea580c,#b45309);box-shadow:0 6px 18px rgba(180,83,9,.3)}
.dmz .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(180,83,9,.4)}
.dmz .pdl-cta.alt{background:#fff;color:#1c1917;border:2px solid #ea580c;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.dmz .pdl-decor{background:linear-gradient(135deg,#292524,#78350f 55%,#0f766e)}
.dmz .pdl-decor-img{background-size:cover!important}
.dmz .pdl-decor.dmz-d-reserve{background-image:radial-gradient(circle at 80% 25%,rgba(253,230,138,.35),transparent 30%),repeating-linear-gradient(0deg,rgba(0,0,0,.12) 0 3px,transparent 3px 90px),linear-gradient(160deg,#44403c,#78350f 60%,#292524)}
.dmz .pdl-decor.dmz-d-local{background-image:radial-gradient(circle at 75% 20%,rgba(255,255,255,.35),transparent 30%),repeating-linear-gradient(90deg,rgba(255,255,255,.06) 0 2px,transparent 2px 110px),linear-gradient(170deg,#94a3b8,#0f766e 70%,#134e4a)}
.dmz .pdl-decor.dmz-d-magasin{background-image:radial-gradient(circle at 20% 30%,rgba(251,191,36,.35),transparent 30%),linear-gradient(160deg,#a16207,#c2410c 55%,#365314)}
.dmz .pdl-decor.dmz-d-quartier{background-image:radial-gradient(circle at 80% 15%,rgba(255,255,255,.4),transparent 25%),linear-gradient(175deg,#38bdf8,#16a34a 65%,#365314)}
.dmz .pdl-decor.dmz-d-futur{background-image:radial-gradient(circle at 70% 20%,rgba(254,240,138,.45),transparent 30%),linear-gradient(170deg,#0d9488,#65a30d 60%,#14532d)}
.dmz .dmz-sepia .pdl-decor-img{filter:sepia(.55) saturate(.85) contrast(1.05)}
.dmz .dmz-soir .pdl-decor-img{filter:brightness(.55) hue-rotate(200deg) saturate(.7)}
.dmz-panneau{color:#1c1917}
.dmz .dmz-panneau-large{max-width:1000px;width:100%}
.dmz-photo-ico{display:inline-grid;place-items:center;font-size:30px;background:#ffedd5;border-radius:50%;line-height:1}
.dmz .pdl-bulle-photo.dmz-photo-ico{width:64px;height:64px;flex:0 0 64px}
.dmz .pdl-hud-moi .dmz-photo-ico{width:36px;height:36px;font-size:20px;border:2px solid #fb923c}
.dmz-perso-img{width:100%;aspect-ratio:3/3.4;display:grid!important;font-size:64px;border-radius:0!important;background:linear-gradient(160deg,#ffedd5,#ccfbf1)!important}
img.dmz-perso-img{display:block!important;width:100%;height:auto;aspect-ratio:3/3.4;object-position:50% 20%;border-radius:12px!important}
.dmz-mini{width:40px;height:40px;flex:0 0 40px;font-size:22px}
.dmz-photo-img{display:block;object-fit:cover;object-position:50% 25%;border-radius:50%;background:#ffedd5}
.dmz-note{font-size:13.5px;color:#57534e;margin:8px 0}
.dmz-ko{color:#b45309;font-weight:700;margin:8px 0}
.dmz-consigne{background:#fff7ed;border-left:5px solid #ea580c;border-radius:10px;padding:10px 12px;margin:0 0 6px;font-size:15px;line-height:1.45}
.dmz-petit{font:inherit;font-weight:700;font-size:13.5px;background:#f5f5f4;border:2px solid #d6d3d1;border-radius:10px;padding:7px 10px;cursor:pointer;color:#1c1917;touch-action:manipulation}
.dmz-petit:hover:not(:disabled){border-color:#ea580c;background:#fff7ed}
.dmz .dmz-hud-prog{gap:4px}
.dmz .dmz-hud-prog em{font-style:normal;font-size:14px;margin:0 2px 0 6px}
.dmz-hud-jauges{font:inherit;display:flex;gap:6px;align-items:center;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:10px;padding:4px 8px;color:inherit;cursor:pointer;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}
.dmz-hud-jauges span.haut{color:#86efac}
.dmz-hud-jauges span.bas{color:#fca5a5}
.dmz-tm-notion{color:#ffedd5;font-weight:700;margin:6px 0 12px;font-size:15px}
.dmz-fil-etapes{display:flex;gap:6px;justify-content:center;margin:0 0 10px;flex-wrap:wrap}
.dmz-fil-etapes span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.35);font-size:15px;opacity:.7}
.dmz-fil-etapes .dmz-fait{background:#bbf7d0;opacity:1}
.dmz-fil-etapes .dmz-ici{background:#fff;opacity:1;box-shadow:0 0 0 3px #ea580c}

/* ---- L'accueil ---- */
.dmz-portes{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:14px 0}
.dmz-porte{font:inherit;text-align:left;display:flex;flex-direction:column;gap:4px;background:#fffbeb;color:#1c1917;border:3px solid #d97706;border-radius:6px 18px 6px 18px;padding:14px;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.2);transition:transform .15s}
.dmz-porte:hover{transform:translateY(-3px) rotate(-.4deg)}
.dmz-porte b{font-size:19px}
.dmz-porte span{font-weight:800;font-size:13px;color:#92400e}
.dmz-porte i{font-style:normal;font-size:13.5px;color:#57534e}
.dmz-porte-2{border-color:#0d9488;background:#f0fdfa}
.dmz-porte-2 span{color:#0f766e}

/* ---- Le carton en relief ---- */
.dmz-carton-zone,.dmz-deballe,.dmz-aimants,.dmz-cables,.dmz-nuit,.dmz-charte-jeu,.dmz-fil,.dmz-vote,.dmz-commande,.dmz-choix,.dmz-calcul-zone{display:flex;flex-direction:column;gap:10px;text-align:left}
.dmz-scene-carton{display:flex;gap:16px;align-items:center;flex-wrap:wrap;justify-content:center;perspective:700px;padding:6px 0}
.dmz-boite{font:inherit;position:relative;width:200px;height:130px;border:none;background:none;padding:0;cursor:pointer;transform-style:preserve-3d;transform:rotateX(14deg);touch-action:manipulation}
.dmz-boite:disabled{cursor:default}
.dmz-boite-face{position:absolute;inset:22px 0 0;background:linear-gradient(180deg,#d6a463,#b7853f);border-radius:4px;box-shadow:inset 0 0 0 2px rgba(120,53,15,.35),0 10px 18px rgba(0,0,0,.35);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#422006;padding:6px}
.dmz-boite-face::before{content:"";position:absolute;left:44%;top:0;bottom:0;width:12%;background:rgba(253,230,138,.55)}
.dmz-boite-face b{position:relative;font-size:12px;letter-spacing:.04em;background:#fffbeb;border:1px dashed #92400e;padding:2px 6px;border-radius:3px;text-align:center}
.dmz-boite-face i{position:relative;font-style:normal;font-size:12px;font-weight:700}
.dmz-rabat{position:absolute;top:0;width:50%;height:26px;background:linear-gradient(180deg,#e5b878,#c79350);border-radius:3px;transition:transform .6s cubic-bezier(.3,1.5,.5,1);box-shadow:0 2px 4px rgba(0,0,0,.25)}
.dmz-rabat.g{left:0;transform-origin:left bottom}
.dmz-rabat.d{right:0;transform-origin:right bottom}
.dmz-boite.ouvert .dmz-rabat.g{transform:rotateZ(-38deg) translateY(-6px)}
.dmz-boite.ouvert .dmz-rabat.d{transform:rotateZ(38deg) translateY(-6px)}
.dmz-boite:not(:disabled):hover .dmz-boite-face{box-shadow:inset 0 0 0 2px rgba(120,53,15,.35),0 0 0 4px #fb923c,0 10px 18px rgba(0,0,0,.35)}
.dmz-boite:not(:disabled){animation:dmz-tremble 2.4s ease-in-out infinite}
@keyframes dmz-tremble{0%,88%,100%{transform:rotateX(14deg)}91%{transform:rotateX(14deg) rotate(-2deg)}94%{transform:rotateX(14deg) rotate(2deg)}}
.dmz-sol{display:flex;gap:6px;flex-wrap:wrap;max-width:260px}
.dmz-pose{position:relative;font-size:28px;background:#fff;border-radius:10px;padding:4px 8px;box-shadow:0 3px 8px rgba(0,0,0,.15)}
.dmz-pose i{position:absolute;right:-6px;bottom:-6px;font-style:normal;font-size:15px}
.dmz-objet{display:flex;gap:12px;align-items:flex-start;background:#fff;border:2px solid #fdba74;border-radius:14px;padding:12px;box-shadow:0 8px 20px rgba(0,0,0,.12);animation:dmz-sort .55s cubic-bezier(.2,1.4,.4,1) both}
@keyframes dmz-sort{0%{opacity:0;transform:translateY(40px) scale(.6) rotate(-8deg)}100%{opacity:1;transform:none}}
.dmz-objet-ico{font-size:46px;line-height:1;flex:0 0 auto;filter:drop-shadow(0 4px 4px rgba(0,0,0,.2))}
.dmz-objet>div:last-child{flex:1 1 auto;min-width:0}
.dmz-objet-note{max-width:460px}
.dmz-objet-nom{display:block;font-size:15.5px;margin-top:2px}
.dmz-histoire{display:flex;gap:8px;align-items:flex-start;font-style:italic;color:#44403c;margin:8px 0}
.dmz-sorts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.dmz-sort{font:inherit;font-weight:800;display:flex;gap:6px;align-items:center;background:#fafaf9;border:2px solid #d6d3d1;border-radius:12px;padding:9px;cursor:pointer;color:#1c1917;touch-action:manipulation}
.dmz-sort span{font-size:20px}
.dmz-sort:hover:not(:disabled){border-color:#ea580c}
.dmz-sort.on{border-color:#ea580c;background:#ffedd5}
.dmz-sort:disabled:not(.on){opacity:.45}
.dmz-suite{margin-top:8px}
.dmz-bilan-carton{display:flex;flex-direction:column;gap:6px}
.dmz-epoque-l{margin:0;padding-left:18px;line-height:1.5}

/* ---- Les zones du déballage ---- */
.dmz-zones{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px}
.dmz-zone{font:inherit;text-align:left;display:flex;flex-direction:column;gap:3px;min-height:86px;background:repeating-linear-gradient(135deg,#f5f5f4 0 10px,#fafaf9 10px 20px);border:3px dashed #a8a29e;border-radius:12px;padding:10px;cursor:pointer;color:#1c1917;touch-action:manipulation;transition:border-color .15s,transform .15s}
.dmz-zone b{font-size:15px}
.dmz-zone span{font-size:12.5px;color:#57534e}
.dmz-zone:hover:not(:disabled){border-color:#ea580c;transform:translateY(-2px)}
.dmz-zone:disabled{cursor:default}
.dmz-zone.bon{border-style:solid;border-color:#16a34a;background:#dcfce7}
.dmz-zone.faux{border-style:solid;border-color:#f59e0b;background:#fef3c7;animation:dmz-non .35s}
@keyframes dmz-non{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.dmz-zone-objets{font-style:normal;font-size:22px;letter-spacing:2px;margin-top:auto}
.dmz-skin-rayons .dmz-zone{background:linear-gradient(180deg,#fef3c7 0 30%,#fff 30%);border:3px solid #d97706;border-radius:6px 6px 14px 14px}
.dmz-skin-rayons .dmz-zone b{background:#78350f;color:#fff;border-radius:4px;padding:3px 6px;font-size:13.5px}
.dmz-skin-frise .dmz-zones{grid-template-columns:repeat(3,1fr);position:relative}
.dmz-skin-frise .dmz-zone{background:#fff;border:3px solid #0d9488;border-top-width:8px}
.dmz-skin-frise .dmz-zone[data-z=a]{border-color:#a16207;background:#fefce8}
.dmz-skin-frise .dmz-zone[data-z=c]{border-color:#7c3aed;background:#f5f3ff}

/* ---- Le planning à aimants ---- */
.dmz-tableau-aimants{background:#f8fafc;border:3px solid #94a3b8;border-radius:12px;padding:8px;box-shadow:inset 0 2px 8px rgba(0,0,0,.08);overflow-x:auto}
.dmz-ta-ligne{display:grid;grid-template-columns:minmax(64px,1.3fr) repeat(6,minmax(36px,1fr)) minmax(42px,.9fr);gap:4px;align-items:center;margin:3px 0}
.dmz-ta-tete span,.dmz-ta-pied span{font-weight:800;font-size:12.5px;text-align:center;color:#475569}
.dmz-ta-nom{font-weight:800;font-size:13.5px}
.dmz-case{font:inherit;height:40px;border-radius:8px;border:2px solid #cbd5e1;background:#fff;cursor:pointer;font-size:20px;touch-action:manipulation;transition:transform .12s}
.dmz-case:hover{border-color:#ea580c}
.dmz-case.on{background:#fed7aa;border-color:#ea580c;animation:dmz-clac .25s}
@keyframes dmz-clac{0%{transform:scale(1.25)}100%{transform:scale(1)}}
.dmz-case.interdit{background:#f1f5f9;border-style:dashed;cursor:not-allowed;font-size:15px}
.dmz-compte{text-align:center;font-size:13px;border-radius:6px;padding:3px 0;background:#e2e8f0;font-variant-numeric:tabular-nums}
.dmz-compte.juste{background:#bbf7d0;color:#14532d}
.dmz-compte.trop{background:#fecaca;color:#7f1d1d}

/* ---- Les câbles ---- */
.dmz-cables-grille{display:grid;grid-template-columns:1.3fr 1fr;gap:12px}
.dmz-cables-col{display:flex;flex-direction:column;gap:8px}
.dmz-appareil,.dmz-prise{font:inherit;text-align:left;display:flex;gap:8px;align-items:center;background:#fff;border:3px solid #d6d3d1;border-radius:12px;padding:9px;cursor:pointer;color:#1c1917;font-size:14px;touch-action:manipulation;position:relative}
.dmz-appareil.sel{border-color:#ea580c;box-shadow:0 0 0 4px rgba(234,88,12,.25)}
.dmz-appareil.fait{opacity:.9}
.dmz-app-ico{font-size:26px}
.dmz-fiche{position:absolute;right:-12px;top:50%;transform:translateY(-50%);font-style:normal;border-radius:50%;width:26px;height:26px;display:grid;place-items:center;font-size:14px}
.dmz-prise{background:#1c1917;color:#fafaf9;border-color:#44403c}
.dmz-prise:disabled{cursor:default}
.dmz-prise.pleine{color:#1c1917}
.dmz-prise.faux{border-color:#f59e0b;animation:dmz-non .35s}
.dmz-trou{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#e7e5e4;color:#44403c;font-weight:900;flex:0 0 36px;font-size:16px}

/* ---- La nuit de Nadège ---- */
.dmz-chambre{position:relative;background:linear-gradient(180deg,#0f172a,#1e1b4b);border-radius:16px;padding:20px;min-height:260px;display:flex;justify-content:center}
.dmz-lune{position:absolute;left:16px;top:10px;font-size:34px;opacity:.8}
.dmz-tel{width:230px;background:#111827;border-radius:26px;padding:10px;box-shadow:0 0 0 3px #374151,0 0 40px rgba(99,102,241,.45)}
.dmz-tel-ecran{background:#020617;border-radius:18px;min-height:220px;padding:8px;display:flex;flex-direction:column;gap:6px}
.dmz-notif{background:rgba(255,255,255,.92);border-radius:10px;padding:6px 8px;font-size:12.5px;display:flex;flex-direction:column;animation:dmz-sort .45s both}
.dmz-notif b{font-size:11px;color:#6d28d9}
.dmz-suite-nuit{display:flex;flex-direction:column;gap:8px}

/* ---- La charte, la commande ---- */
.dmz-regles{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px}
.dmz-regle{font:inherit;text-align:left;display:flex;flex-wrap:wrap;gap:6px;align-items:flex-start;background:#fffbeb;border:2px solid #fcd34d;border-radius:10px;padding:9px;cursor:pointer;color:#1c1917;font-size:14px;touch-action:manipulation;transform:rotate(-.3deg)}
.dmz-regle:nth-child(even){transform:rotate(.4deg)}
.dmz-regle>span:nth-child(2){flex:1 1 180px}
.dmz-regle.on{border-color:#ea580c;background:#ffedd5}
.dmz-regle.bon{border-color:#16a34a;background:#dcfce7}
.dmz-regle.faux{border-color:#dc2626;background:#fee2e2}
.dmz-regle em{flex:1 1 100%;font-size:12.5px;color:#44403c}
.dmz-options{display:flex;flex-direction:column;gap:8px}
.dmz-opt.on{border-color:#ea580c;background:#ffedd5}

/* ---- Le fil du quartier ---- */
.dmz-post{background:#fff;border:1px solid #e7e5e4;border-radius:14px;padding:12px;box-shadow:0 6px 16px rgba(0,0,0,.12);max-width:520px}
.dmz-post-tete{display:flex;gap:8px;align-items:center;font-size:14px}
.dmz-post-tete span{color:#78716c}
.dmz-post-photo{font-size:38px;text-align:center;background:linear-gradient(180deg,#bae6fd,#d6d3d1);border-radius:10px;padding:16px;letter-spacing:6px}
.dmz-post-pied{margin-top:8px;font-size:14px;color:#44403c;font-variant-numeric:tabular-nums}
.dmz-post-pied.vit b{color:#dc2626;animation:dmz-pulse 1s infinite}
@keyframes dmz-pulse{50%{opacity:.55}}
.dmz-ctx{display:flex;gap:10px;align-items:flex-start;background:#fafaf9;border-radius:12px;padding:10px}
.dmz-ctx p{margin:0}

/* ---- Le vote ---- */
.dmz-urne{font-size:15px}
.dmz-urne b{font-size:24px;color:#c2410c;font-variant-numeric:tabular-nums}
.dmz-barre{display:grid;grid-template-columns:minmax(120px,1.2fr) 2fr 60px;gap:8px;align-items:center;font-size:14px}
.dmz-barre-fond{background:#e7e5e4;border-radius:8px;height:18px;overflow:hidden}
.dmz-barre-fond i{display:block;height:100%;background:linear-gradient(90deg,#fb923c,#ea580c);transition:width .2s}
.dmz-barre.gagne span{font-weight:800}
.dmz-barre.gagne .dmz-barre-fond i{background:linear-gradient(90deg,#4ade80,#16a34a)}

/* ---- Calculs ---- */
.dmz-rappel{background:#fefce8;border:2px dashed #ca8a04;border-radius:10px;padding:9px 11px;margin:0;font-size:14.5px;line-height:1.45}
.dmz-formule{margin:0;font-size:14px;color:#44403c}
.dmz-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.dmz-saisie input{font:inherit;font-size:20px;width:150px;padding:8px 10px;border:3px solid #fdba74;border-radius:10px}
.dmz-saisie span{font-weight:800;font-size:18px}
.dmz-aide{background:#f0fdfa;border:2px solid #99f6e4;border-radius:10px}
.dmz-aide-bouton{font:inherit;font-weight:800;width:100%;text-align:left;display:flex;justify-content:space-between;gap:6px;background:none;border:none;padding:8px 10px;cursor:pointer;color:#0f766e}
.dmz-aide-bouton span{font-weight:600;font-size:12.5px}
.dmz-aide-corps{padding:0 10px 8px;font-size:14px}
.dmz-aide-formule{font-weight:700}

/* ---- Le carnet ---- */
.dmz-hypo{display:flex;flex-direction:column;gap:8px;text-align:left}
.dmz-hypo-tete{display:flex;justify-content:space-between;gap:8px;background:#78350f;color:#fff;border-radius:8px;padding:6px 10px;font-size:13.5px}
.dmz-hypo-l{display:flex;flex-direction:column;gap:8px}
.dmz-hypo-o{font:inherit;text-align:left;background:#fffbeb;border:2px solid #fcd34d;border-radius:10px;padding:10px;cursor:pointer;color:#1c1917;font-size:14.5px;touch-action:manipulation}
.dmz-hypo-o.bon{border-color:#16a34a;background:#dcfce7}
.dmz-hypo-o.faux{border-color:#f59e0b;background:#fef3c7}
.dmz-hypo-doc{display:flex;flex-direction:column;gap:3px;background:#fffbeb;border-left:5px solid #d97706;border-radius:8px;padding:8px 10px;margin:6px 0;text-align:left}
.dmz-hypo-doc em{font-size:12.5px;color:#57534e}
.dmz-maq input{width:100%}

/* ---- Documents ---- */
.dmz-doc{background:#fff;color:#1c1917;border-radius:12px;padding:12px;box-shadow:0 4px 14px rgba(0,0,0,.12);text-align:left;margin:8px 0}
.dmz-doc-tete{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;border-bottom:3px double #d97706;padding-bottom:6px;margin-bottom:8px}
.dmz-doc-tete b{letter-spacing:.04em}
.dmz-doc-tete span{font-size:12.5px;color:#57534e}
.dmz-table-defile{overflow-x:auto}
.dmz-table{border-collapse:collapse;width:100%;font-size:13.5px;min-width:520px}
.dmz-table th,.dmz-table td{border:1px solid #e7e5e4;padding:6px;vertical-align:top;text-align:left}
.dmz-table thead th{background:#fff7ed}
.dmz-table tbody th{background:#fafaf9;white-space:nowrap}
.dmz-mur-l{display:flex;flex-direction:column;gap:2px;margin:6px 0;font-size:14px}
.dmz-badge{background:#fff;color:#1c1917;border-radius:14px;overflow:hidden;box-shadow:0 8px 22px rgba(0,0,0,.25);max-width:380px;margin:0 auto 12px;text-align:left}
.dmz-badge-haut{background:linear-gradient(135deg,#ea580c,#b45309);color:#fff;padding:8px 12px;display:flex;flex-direction:column}
.dmz-badge-haut b{font-size:20px;letter-spacing:.12em}
.dmz-badge-haut span{font-size:11.5px}
.dmz-badge-corps{display:flex;gap:12px;padding:12px;align-items:center}
.dmz-badge-corps>div{display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.dmz-badge-photo{width:76px;height:76px;flex:0 0 76px;border-radius:12px!important;font-size:40px}
.dmz-badge-mission{font-style:italic;color:#92400e}
.dmz-bord{background:#fff;color:#1c1917;border-radius:12px;padding:12px;text-align:left;margin:8px 0}
.dmz-bord-t{font-weight:800;margin-bottom:6px}
.dmz-jauges{display:flex;flex-direction:column;gap:6px}
.dmz-jauge{display:grid;grid-template-columns:110px 1fr 34px;gap:8px;align-items:center;font-size:14px}
.dmz-jauge em{grid-column:1/-1;font-size:12px;color:#78716c;margin-top:-4px}
.dmz-jauge-barre{background:#e7e5e4;border-radius:8px;height:12px;overflow:hidden}
.dmz-jauge-barre i{display:block;height:100%;background:#f59e0b;transition:width .4s}
.dmz-jauge.haut .dmz-jauge-barre i{background:#16a34a}
.dmz-jauge.bas .dmz-jauge-barre i{background:#dc2626}
.dmz-souvenirs{list-style:none;padding:0;margin:10px 0 0;display:flex;flex-direction:column;gap:6px}
.dmz-souvenirs li{display:flex;gap:8px;align-items:center;font-size:13.5px}
.dmz-projection{border:3px solid #7c3aed;background:linear-gradient(180deg,#f5f3ff,#fff)}
.dmz-proj-chiffres{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin-bottom:8px}
.dmz-proj-chiffres div{background:#fff;border-radius:10px;padding:8px;display:flex;flex-direction:column;box-shadow:0 2px 8px rgba(124,58,237,.15)}
.dmz-proj-chiffres b{font-size:26px;color:#6d28d9;font-variant-numeric:tabular-nums}
.dmz-proj-chiffres span{font-size:12.5px;color:#57534e}
.dmz-bravo-score{display:flex;gap:10px;align-items:baseline;justify-content:center}
.dmz-bravo-score b{font-size:40px;color:#c2410c}
.dmz-rejouer{display:flex;gap:6px;flex-wrap:wrap;align-items:center;font-size:13.5px;margin:10px 0}
.dmz-fin{text-align:left}

@media (max-width:600px){
  .dmz-boite{width:170px;height:115px}
  .dmz-cables-grille{grid-template-columns:1fr}
  .dmz-skin-frise .dmz-zones{grid-template-columns:1fr}
  .dmz-ta-ligne{grid-template-columns:58px repeat(6,minmax(30px,1fr)) 38px;gap:3px}
  .dmz-case{height:36px;font-size:16px}
  .dmz-barre{grid-template-columns:1fr 1fr 48px}
  .dmz-objet-ico{font-size:36px}
  .dmz-hud-jauges{font-size:11.5px;gap:3px;padding:3px 5px}
}
/* ==== dmz : fin des styles ==== */
/* ==== jrd : debut des styles ====
   « Fé pous ! » — préfixe jrd-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.jrd). Couleurs : le vert du
   jardin, la terre des plates-bandes, le rouge du flamboyant. */
.jrd .pdl-cta{background:linear-gradient(135deg,#16a34a,#166534);box-shadow:0 6px 18px rgba(22,101,52,.3)}
.jrd .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(22,101,52,.4)}
.jrd .pdl-cta.alt{background:#fff;color:#1c1917;border:2px solid #16a34a;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.jrd .pdl-decor{background:linear-gradient(135deg,#14532d,#1c1917 60%,#a16207)}
.jrd-panneau{color:#1c1917}
.jrd .jrd-panneau-large{max-width:1000px;width:100%}
.jrd-photo-ico{display:inline-grid;place-items:center;font-size:30px;background:#bbf7d0;border-radius:50%}
.jrd .pdl-bulle-photo.jrd-photo-ico{width:64px;height:64px;flex:0 0 64px}
.jrd .pdl-hud-moi .jrd-photo-ico{width:36px;height:36px;font-size:20px;border:2px solid #86efac}
.jrd-perso-img.jrd-photo-ico{display:grid;width:100%;aspect-ratio:3/3.4;font-size:64px;border-radius:0;background:linear-gradient(160deg,#dcfce7,#fde68a)}
.jrd-mini.jrd-photo-ico{width:52px;height:52px;font-size:28px;flex:0 0 52px}
img.jrd-photo{object-fit:cover;object-position:50% 22%}
img.jrd-perso-img{width:100%;aspect-ratio:3/3.4;display:block}
img.jrd-mini{width:52px;height:52px;border-radius:50%;flex:0 0 52px}
img.jrd-badge-photo{width:84px;height:96px;border-radius:10px;flex:0 0 84px}
.jrd-note{font-size:13.5px;color:#57534e;margin:8px 0}
.jrd .pdl-bilan .jrd-note,.jrd .jrd-bravo .jrd-note{color:inherit;opacity:.9}
.jrd-ko{color:#b91c1c;font-weight:700;margin:8px 0}
.jrd-consigne{background:#f0fdf4;border-left:5px solid #16a34a;border-radius:10px;padding:10px 12px;margin:0 0 6px;font-size:15px;line-height:1.45;text-align:left}
.jrd-petit{font:inherit;font-weight:700;font-size:13.5px;background:#f5f5f4;border:2px solid #d6d3d1;border-radius:10px;padding:7px 10px;cursor:pointer;color:#1c1917;touch-action:manipulation}
.jrd-petit:hover:not(:disabled){border-color:#16a34a;background:#f0fdf4}
.jrd .jrd-hud-prog{gap:4px}
.jrd .jrd-hud-prog em{font-style:normal;font-size:14px;margin:0 2px 0 6px}
.jrd-tm-notion{color:#dcfce7;font-weight:700;margin:6px 0 12px;font-size:15px}
.jrd-fil{display:flex;gap:6px;justify-content:center;margin:0 0 8px;flex-wrap:wrap}
.jrd-fil span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.35);font-size:15px;opacity:.7}
.jrd-fil .jrd-fil-fait{background:#bbf7d0;opacity:1}
.jrd-fil .jrd-fil-ici{background:#fff;opacity:1;box-shadow:0 0 0 3px #16a34a}
.jrd-etape,.jrd-trier,.jrd-arrosage,.jrd-cueillette,.jrd-portail,.jrd-tdb{display:flex;flex-direction:column;gap:10px;text-align:left}

/* ---- L'accueil : deux portes ---- */
.jrd-portes{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:14px 0}
.jrd-porte{font:inherit;text-align:left;display:flex;flex-direction:column;gap:4px;background:#fff;color:#1c1917;border:3px solid #eab308;border-radius:16px;padding:14px;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.2);transition:transform .15s}
.jrd-porte:hover{transform:translateY(-3px)}
.jrd-porte b{font-size:19px}
.jrd-porte span{font-weight:800;font-size:13px;color:#a16207}
.jrd-porte i{font-style:normal;font-size:13.5px;color:#57534e}
.jrd-porte-2{border-color:#16a34a}
.jrd-porte-2 span{color:#15803d}

/* ---- LE JARDIN ---- */
.jrd-jardin{background:linear-gradient(180deg,rgba(240,253,244,.96),rgba(254,243,199,.96));border:3px solid #65a30d;border-radius:18px;padding:10px;color:#1c1917;text-align:center}
.jrd-jardin-t{font-weight:800;margin-bottom:6px}
.jrd-plates{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;align-items:end}
.jrd-plante{font:inherit;position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;background:none;border:2px solid transparent;border-radius:14px;padding:4px 2px;color:#1c1917;cursor:default;min-width:0}
.jrd-plante:not(:disabled){cursor:pointer}
.jrd-plante:not(:disabled):hover{border-color:#86efac;background:rgba(255,255,255,.6)}
.jrd-plante.jrd-actif{border-color:#16a34a;background:rgba(255,255,255,.7)}
.jrd-tige-zone{height:150px;width:100%;display:flex;align-items:flex-end;justify-content:center}
.jrd-tige{position:relative;width:8px;border-radius:6px 6px 0 0;transition:height .9s cubic-bezier(.3,1.4,.5,1);display:block}
.jrd-cime{position:absolute;left:50%;top:0;transform:translate(-50%,-70%);line-height:1;transition:font-size .9s,filter .6s;filter:drop-shadow(0 3px 2px rgba(0,0,0,.2))}
.jrd-fane .jrd-cime{filter:grayscale(.8) sepia(.6) drop-shadow(0 3px 2px rgba(0,0,0,.2))}
.jrd-fane .jrd-tige{opacity:.55}
.jrd-pousse .jrd-cime{animation:jrd-pousse .9s ease-out}
.jrd-recule .jrd-cime{animation:jrd-tremble .7s ease-out}
@keyframes jrd-pousse{0%{transform:translate(-50%,-70%) scale(.8)}60%{transform:translate(-50%,-70%) scale(1.18)}100%{transform:translate(-50%,-70%) scale(1)}}
@keyframes jrd-tremble{0%,100%{transform:translate(-50%,-70%) rotate(0)}30%{transform:translate(-50%,-70%) rotate(-12deg)}60%{transform:translate(-50%,-70%) rotate(8deg)}}
.jrd-goutte{position:absolute;top:0;left:50%;transform:translateX(-50%);font-size:12.5px;font-weight:800;color:#0369a1;background:#e0f2fe;border-radius:10px;padding:1px 6px;white-space:nowrap;animation:jrd-tombe 1.2s ease-out;z-index:1}
.jrd-goutte.jrd-feuille{color:#92400e;background:#fef3c7}
@keyframes jrd-tombe{from{transform:translate(-50%,-14px);opacity:0}to{transform:translate(-50%,0);opacity:1}}
.jrd-pot{display:block;width:100%;background:#78350f;color:#fef3c7;border-radius:4px 4px 10px 10px;font-size:11.5px;font-weight:700;padding:2px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jrd-etiquette{display:flex;flex-direction:column;line-height:1.15}
.jrd-etiquette b{font-size:12.5px}
.jrd-etiquette i{font-style:normal;font-size:11px;color:#57534e}
.jrd-jauge{display:block;width:90%;height:7px;background:#e7e5e4;border-radius:4px;overflow:hidden}
.jrd-jauge span{display:block;height:100%;transition:width .9s}
.jrd-vigueur{font-size:11px;color:#57534e;font-variant-numeric:tabular-nums}
.jrd-legende{font-size:12.5px;color:#57534e;margin:6px 0 0}
.jrd-jardin-petit .jrd-tige-zone{height:92px}
.jrd-jardin-petit .jrd-cime{font-size:24px!important}
.jrd-bande{margin:0 auto 10px;max-width:1000px;width:100%}
.jrd-dit{background:#fff;border-left:5px solid #d97706;border-radius:10px;padding:10px 12px;font-size:15px;line-height:1.45;animation:jrd-pop .3s}
@keyframes jrd-pop{from{transform:scale(.96);opacity:.4}to{transform:none;opacity:1}}

/* ---- Trier ---- */
.jrd-carte{background:#fff;border:2px solid #86efac;border-radius:14px;padding:14px;font-size:17px;font-weight:700;box-shadow:0 6px 14px rgba(0,0,0,.08);animation:jrd-pop .3s}
.jrd-carte p{margin:0}
.jrd-dest{display:grid;gap:8px;grid-template-columns:repeat(3,minmax(0,1fr))}
.jrd-dest.dest-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.jrd-dest.dest-4{grid-template-columns:repeat(2,minmax(0,1fr))}
.jrd-dest.dest-5{grid-template-columns:repeat(3,minmax(0,1fr))}
.jrd-dest-b{font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px 6px;cursor:pointer;color:#1c1917;text-align:center}
.jrd-dest-b span{font-size:22px}
.jrd-dest-b b{font-size:14px;line-height:1.2}
.jrd-dest-b i{font-style:normal;font-size:12px;color:#78716c}
.jrd-dest-b:hover:not(:disabled){border-color:#16a34a}
.jrd-dest-b.bon{border-color:#16a34a;background:#dcfce7}
.jrd-dest-b.faux{border-color:#dc2626;background:#fee2e2}

/* ---- Calcul, aide, cahier ---- */
.jrd-calcul{display:flex;flex-direction:column;gap:4px;text-align:left}
.jrd-rappel{background:#f5f5f4;border-radius:10px;padding:8px 12px;font-size:14.5px;line-height:1.45;margin:6px 0}
.jrd-formule{background:#f0fdf4;border-left:4px solid #16a34a;border-radius:8px;padding:8px 12px;margin:8px 0;font-size:14.5px;line-height:1.4}
.jrd-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.jrd-saisie-zone{display:flex;flex-direction:column;gap:4px}
.jrd-fo{display:flex;flex-direction:column;gap:4px}
.jrd-fo .pdl-opt{text-align:left}
.jrd-saisie input{font:inherit;font-size:18px;width:160px;padding:8px 10px;border:2px solid #a8a29e;border-radius:10px}
.jrd-aide{border:2px dashed #16a34a;border-radius:12px;margin:8px 0;background:#f7fef9;text-align:left}
.jrd-aide-bouton{font:inherit;width:100%;display:flex;justify-content:space-between;gap:8px;align-items:center;background:none;border:0;padding:8px 12px;font-weight:800;cursor:pointer;color:#166534;text-align:left}
.jrd-aide-bouton span{font-weight:600;font-size:12.5px;color:#15803d}
.jrd-aide-corps{padding:0 12px 10px;font-size:14.5px}
.jrd-aide-corps p{margin:4px 0}
.jrd-aide-formule{font-weight:700;color:#166534}
.jrd-hypo{display:flex;flex-direction:column;gap:10px;text-align:left}
.jrd-hypo-tete{display:flex;justify-content:space-between;gap:8px;background:#14532d;color:#dcfce7;border-radius:10px;padding:8px 12px;flex-wrap:wrap}
.jrd-hypo-tete span{font-size:12.5px;color:#bbf7d0}
.jrd-hypo-l{display:flex;flex-direction:column;gap:8px}
.jrd-hypo-o{font:inherit;text-align:left;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px 12px;cursor:pointer;color:#1c1917;font-weight:600;line-height:1.35}
.jrd-hypo-o.bon{border-color:#16a34a;background:#dcfce7}
.jrd-hypo-o.faux{border-color:#dc2626;background:#fee2e2}
.jrd-hypo-doc{display:flex;flex-direction:column;gap:3px;background:#f0fdf4;border-left:5px solid #16a34a;border-radius:10px;padding:8px 12px;margin:6px 0;text-align:left;color:#1c1917}
.jrd-hypo-doc span{font-size:14px}
.jrd-hypo-doc em{font-size:13px;color:#57534e}

/* ---- Cartes d'arrosage ---- */
.jrd-cartes{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px}
.jrd-carte-a{font:inherit;text-align:left;display:flex;flex-direction:column;gap:4px;background:#fff;border:3px solid #d6d3d1;border-radius:14px;padding:10px 12px;cursor:pointer;color:#1c1917;transition:transform .15s}
.jrd-carte-a:hover:not(:disabled){transform:translateY(-2px);border-color:#16a34a}
.jrd-carte-a.on{border-color:#0284c7;background:#e0f2fe;box-shadow:0 0 0 3px #bae6fd}
.jrd-carte-a:disabled{opacity:.5;cursor:default}
.jrd-carte-ico{font-size:26px}
.jrd-carte-a b{font-size:15px;line-height:1.25}
.jrd-carte-a i{font-style:normal;font-size:12.5px;color:#57534e}
.jrd-carte-a small{font-size:13px;line-height:1.35;color:#44403c}
.jrd-effets{display:flex;flex-direction:column;gap:2px}
.jrd-effets em{font-style:normal;font-size:13px;font-weight:700;border-radius:8px;padding:2px 6px}
.jrd-plus{background:#e0f2fe;color:#075985}
.jrd-moins{background:#fef3c7;color:#92400e}

/* ---- La cueillette ---- */
.jrd-arbre{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px;background:radial-gradient(ellipse at 50% 40%,#4ade80,#166534);border-radius:50% 50% 24px 24px;padding:18px 14px 14px}
.jrd-mangue{font:inherit;font-size:24px;line-height:1;background:none;border:0;cursor:pointer;padding:4px 0;transition:transform .2s,opacity .2s;touch-action:manipulation}
.jrd-mangue:hover{transform:scale(1.15)}
.jrd-mangue.jrd-cueillie{opacity:.25;transform:translateY(6px) scale(.85)}
.jrd-comptes{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.jrd-compte{display:flex;flex-direction:column;align-items:center;border-radius:12px;padding:8px;color:#fff;text-align:center}
.jrd-compte i{font-style:normal;font-size:13px}
.jrd-compte b{font-size:19px;font-variant-numeric:tabular-nums}
.jrd-compte small{font-size:12px;opacity:.9}
.jrd-c-div{background:#b45309}
.jrd-c-auto{background:#15803d}
.jrd-projets{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px}
.jrd-projet{font:inherit;text-align:left;display:flex;flex-direction:column;gap:4px;background:#fff;border:3px solid #d6d3d1;border-radius:14px;padding:10px 12px;cursor:pointer;color:#1c1917}
.jrd-projet.on{border-color:#16a34a;background:#f0fdf4}
.jrd-projet:disabled{cursor:default}
.jrd-projet:disabled:not(.on){opacity:.6}
.jrd-projet b{font-size:15px}
.jrd-projet span{font-size:13.5px;line-height:1.4}
.jrd-projet i{font-size:12.5px;color:#b91c1c}

/* ---- Le portail ---- */
.jrd-visiteur{display:flex;gap:10px;align-items:flex-start;background:#fff;border:2px solid #fdba74;border-radius:14px;padding:10px 12px}
.jrd-visiteur b{display:block}
.jrd-visiteur i{font-style:normal;font-size:12.5px;color:#78716c}
.jrd-visiteur p{margin:4px 0 0;font-size:15px;line-height:1.4}
.jrd-decision{background:#fefce8;border-radius:12px;padding:8px 10px}
.jrd-decision p{margin:0 0 6px;font-weight:700}
.jrd-decision-b{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.jrd-oui,.jrd-non{font:inherit;text-align:left;display:flex;flex-direction:column;gap:3px;border-radius:12px;padding:10px;cursor:pointer;color:#1c1917;background:#fff}
.jrd-oui{border:3px solid #16a34a}
.jrd-non{border:3px solid #dc2626}
.jrd-oui span,.jrd-non span{font-size:13px;font-weight:700}
.jrd-oui i,.jrd-non i{font-style:normal;font-size:12.5px;color:#57534e}

/* ---- Le tableau de bord ---- */
.jrd-tableau-wrap{overflow-x:auto;max-width:100%}
.jrd-tableau{width:100%;border-collapse:collapse;background:#fff;font-size:14px;color:#1c1917}
.jrd-tableau th{background:#14532d;color:#fff;padding:6px;text-align:left}
.jrd-tableau td{border-bottom:1px solid #e7e5e4;padding:6px;animation:jrd-pop .4s}
.jrd-v-plus{color:#15803d;font-weight:700}
.jrd-v-moins{color:#b91c1c;font-weight:700}
.jrd-retourne{animation:jrd-flip .6s ease-out}
@keyframes jrd-flip{from{transform:rotateX(80deg);opacity:0}to{transform:none;opacity:1}}

/* ---- Découvertes ---- */
.jrd-course{display:flex;flex-direction:column;align-items:center;gap:8px}
.jrd-horloge{font-size:26px;font-weight:800;font-variant-numeric:tabular-nums}
.jrd-bungalows{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;font-size:26px}
.jrd-bungalows span{opacity:.45;transition:opacity .3s}
.jrd-bungalows .jrd-b-pret{opacity:1;animation:jrd-pop .3s}

/* ---- Documents, fins ---- */
.jrd-badge{background:#fff;border-radius:16px;overflow:hidden;border:3px solid #14532d;max-width:420px;margin:0 auto 12px;color:#1c1917;text-align:left}
.jrd-badge-haut{background:linear-gradient(90deg,#14532d,#16a34a,#eab308);color:#fff;padding:8px 12px;display:flex;flex-direction:column}
.jrd-badge-haut b{font-size:20px;letter-spacing:3px}
.jrd-badge-haut span{font-size:11.5px;font-weight:700}
.jrd-badge-corps{display:flex;gap:12px;padding:12px;align-items:center}
.jrd-badge-corps>div{display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.jrd-badge-corps b{font-size:18px}
.jrd-badge-photo.jrd-photo-ico{width:84px;height:96px;flex:0 0 84px;border-radius:10px;font-size:44px}
.jrd-badge-mission{font-weight:700;color:#15803d}
.jrd-doc{background:#fff;border-radius:12px;padding:12px;color:#1c1917;text-align:left;display:flex;flex-direction:column;gap:8px}
.jrd-doc-tete{display:flex;flex-direction:column;border-bottom:2px solid #1c1917;padding-bottom:4px}
.jrd-doc-tete span{font-size:12.5px;color:#78716c}
.jrd-fiche{display:flex;flex-direction:column;gap:2px;border-bottom:1px dashed #d6d3d1;padding:6px 0;font-size:14px}
.jrd-bravo-score{display:flex;flex-direction:column;align-items:center;margin:6px 0}
.jrd-bravo-score b{font-size:38px}
.jrd-fin-profil{background:#fff;color:#1c1917;border-radius:14px;padding:12px;margin:10px 0;text-align:left}
.jrd-fin-profil b{font-size:18px}
.jrd-fin-profil p{margin:6px 0 0}
.jrd-rejouer{display:flex;gap:6px;flex-wrap:wrap;align-items:center;justify-content:center;margin:8px 0}
.jrd-maq input{width:100%}

/* ---- Téléphone ---- */
@media (max-width:560px){
  .jrd-dest,.jrd-dest.dest-5{grid-template-columns:repeat(2,minmax(0,1fr))}
  .jrd-plates{gap:2px}
  .jrd-tige-zone{height:110px}
  .jrd-jardin-petit .jrd-tige-zone{height:70px}
  .jrd-jardin-petit .jrd-cime{font-size:20px!important}
  .jrd-etiquette b{font-size:9.5px;word-break:break-word;hyphens:auto}
  .jrd-etiquette i,.jrd-vigueur{font-size:9.5px}
  .jrd-pot{font-size:9.5px}
  .jrd-arbre{grid-template-columns:repeat(6,minmax(0,1fr));border-radius:24px}
  .jrd-comptes,.jrd-decision-b{grid-template-columns:1fr}
  .jrd-goutte{font-size:10.5px;padding:1px 3px}
}
/* ==== jrd : fin des styles ==== */
/* ==== kmt : debut des styles ====
   « Chak kilomèt i konte ! » — préfixe kmt-. Hérite des styles pdl- de Péi
   Délices (le conteneur porte les deux classes : .pdl.kmt). Couleurs : la
   terre rouge du Sud, le bleu de l'émail, l'asphalte de la route. */
.kmt .pdl-cta{background:linear-gradient(135deg,#c2410c,#9a3412);box-shadow:0 6px 18px rgba(154,52,18,.3)}
.kmt .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(154,52,18,.4)}
.kmt .pdl-cta.alt{background:#fff;color:#1c1917;border:2px solid #c2410c;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.kmt .pdl-decor{background:linear-gradient(135deg,#0e7490,#1c1917 60%,#9a3412)}
.kmt-panneau{color:#1c1917}
.kmt .kmt-panneau-large{max-width:1000px;width:100%}
.kmt-photo-ico{display:inline-grid;place-items:center;font-size:30px;background:#fed7aa;border-radius:50%}
.kmt .pdl-bulle-photo.kmt-photo-ico{width:64px;height:64px;flex:0 0 64px}
.kmt .pdl-hud-moi .kmt-photo-ico{width:36px;height:36px;font-size:20px;border:2px solid #fb923c}
.kmt-perso-img.kmt-photo-ico{display:grid;width:100%;aspect-ratio:3/3.4;font-size:64px;border-radius:0;background:linear-gradient(160deg,#ffedd5,#99f6e4)}
img.kmt-photo{object-fit:cover;object-position:50% 22%}
img.kmt-perso-img{width:100%;aspect-ratio:3/3.4;display:block}
img.kmt-badge-photo{width:84px;height:96px;border-radius:10px;flex:0 0 84px}
.kmt-note{font-size:13.5px;color:#57534e;margin:8px 0}
.kmt-ko{color:#b91c1c;font-weight:700;margin:8px 0}
.kmt-consigne{background:#fff7ed;border-left:5px solid #c2410c;border-radius:10px;padding:10px 12px;margin:0 0 6px;font-size:15px;line-height:1.45}
.kmt-petit{font:inherit;font-weight:700;font-size:13.5px;background:#f5f5f4;border:2px solid #d6d3d1;border-radius:10px;padding:7px 10px;cursor:pointer;color:#1c1917;touch-action:manipulation}
.kmt-petit:hover:not(:disabled){border-color:#c2410c;background:#fff7ed}
.kmt .kmt-hud-prog{gap:4px}
.kmt .kmt-hud-prog em{font-style:normal;font-size:14px;margin:0 2px 0 6px}
.kmt-tm-notion{color:#fef9c3;font-weight:700;margin:6px 0 12px;font-size:15px}
.kmt-fil{display:flex;gap:5px;justify-content:center;margin:0 0 8px;flex-wrap:wrap}
.kmt-fil span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.35);font-size:14px;opacity:.7}
.kmt-fil .kmt-fil-fait{background:#bbf7d0;opacity:1}
.kmt-fil .kmt-fil-ici{background:#fff;opacity:1;box-shadow:0 0 0 3px #c2410c}

/* ---- L'accueil : deux portes ---- */
.kmt-portes{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:14px 0}
.kmt-porte{font:inherit;text-align:left;display:flex;flex-direction:column;gap:4px;background:#fff;color:#1c1917;border:3px solid #0e7490;border-radius:16px;padding:14px;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.2);transition:transform .15s}
.kmt-porte:hover{transform:translateY(-3px)}
.kmt-porte b{font-size:19px}
.kmt-porte span{font-weight:800;font-size:13px;color:#0e7490}
.kmt-porte i{font-style:normal;font-size:13.5px;color:#57534e}
.kmt-porte-2{border-color:#c2410c}
.kmt-porte-2 span{color:#c2410c}

/* ---- LA ROUTE (les arrêts, la camionnette, les panneaux des choix) ---- */
.kmt-route{position:relative;height:96px;margin:0 auto 8px;width:min(100%,1000px);background:rgba(255,255,255,.88);border-radius:14px;overflow:hidden}
.kmt-route-bande{position:absolute;left:0;right:0;top:40px;height:14px;background:#334155;background-image:linear-gradient(90deg,#f8fafc 50%,transparent 50%);background-size:28px 3px;background-repeat:repeat-x;background-position:0 6px}
.kmt-arret{position:absolute;top:4px;display:flex;flex-direction:column;align-items:center;width:20%;text-align:center;overflow:hidden;font-size:11.5px;color:#57534e}
.kmt-arret-ico{font-size:18px;line-height:1;filter:grayscale(.6)}
.kmt-arret b{margin-top:30px;font-size:11.5px}
.kmt-passe .kmt-arret-ico,.kmt-la .kmt-arret-ico{filter:none}
.kmt-la b{color:#c2410c}
.kmt-panneau-choix{font-style:normal;font-size:10.5px;background:#fef3c7;border:1px solid #f59e0b;border-radius:6px;padding:0 4px;margin-top:1px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.kmt-route-van{position:absolute;top:22px;font-size:26px;transform:scaleX(-1);transition:left 1s ease-in-out;animation:kmt-cahot 1.2s ease-in-out infinite}
@keyframes kmt-cahot{0%,100%{margin-top:0}50%{margin-top:-2px}}

/* ---- LA PILE SUR LE TOIT ---- */
.kmt-pile{background:linear-gradient(180deg,#e0f2fe,#fff 70%);border:2px solid #7dd3fc;border-radius:14px;padding:8px 10px;text-align:center}
.kmt-pile-t{font-weight:800;font-size:14px;margin-bottom:4px}
.kmt-pile-scene{display:flex;align-items:flex-end;justify-content:center;gap:16px}
.kmt-pile-col{display:flex;flex-direction:column;align-items:center;width:min(280px,72vw)}
.kmt-carton{width:84%;border:2px solid rgba(0,0,0,.25);border-bottom:0;color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;overflow:hidden;border-radius:4px 4px 0 0;box-shadow:inset 0 -3px 0 rgba(0,0,0,.15);transition:height .5s}
.kmt-carton span{padding:0 4px;line-height:1.1;text-shadow:0 1px 1px rgba(0,0,0,.4)}
.kmt-tombe{animation:kmt-tombe .7s cubic-bezier(.3,1.5,.6,1)}
@keyframes kmt-tombe{from{transform:translateY(-80px);opacity:0}to{transform:none;opacity:1}}
.kmt-van{position:relative;width:100%;height:52px;background:linear-gradient(180deg,#f8fafc,#cbd5e1);border:2px solid #475569;border-radius:10px 26px 8px 8px;display:flex;align-items:center;justify-content:center}
.kmt-van-corps{font-size:10px;font-weight:900;letter-spacing:2px;color:#c2410c}
.kmt-roue{position:absolute;bottom:-12px;width:24px;height:24px;border-radius:50%;background:#1f2937;border:4px solid #94a3b8}
.kmt-roue-1{left:16%}.kmt-roue-2{right:16%}
.kmt-pile-prix{width:70px;border:2px dashed #16a34a;background:#dcfce7;border-radius:6px;display:flex;align-items:flex-start;justify-content:center;font-size:11.5px;font-weight:800;color:#166534;margin-bottom:22px}
.kmt-pile-total{margin-top:16px;font-size:14px}
.kmt-pile-petit .kmt-pile-col{width:min(220px,60vw)}
.kmt-pile-mini{width:min(100%,1000px);margin:0 auto 8px;background:rgba(255,255,255,.92);border-radius:12px;padding:4px 10px;color:#1c1917;text-align:left}
.kmt-pile-mini summary{cursor:pointer;font-weight:800;font-size:14px;padding:4px 0}

/* ---- Trier, grille, cartes ---- */
.kmt-trier,.kmt-grille,.kmt-suites,.kmt-projets,.kmt-pots,.kmt-file,.kmt-fenetre,.kmt-charger,.kmt-d2,.kmt-d3,.kmt-sondage{display:flex;flex-direction:column;gap:10px;text-align:left}
.kmt-carte{background:#fff;border:2px solid #fdba74;border-radius:14px;padding:14px;font-size:17px;font-weight:700;box-shadow:0 6px 14px rgba(0,0,0,.08);animation:kmt-pop .3s}
.kmt-carte p{margin:0}
@keyframes kmt-pop{from{transform:scale(.96);opacity:.4}to{transform:none;opacity:1}}
.kmt-quai{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.kmt-quai-pile{background:#f1f5f9;border-radius:10px;padding:6px;min-height:52px;font-size:12px;text-align:center}
.kmt-quai-pile b{display:block;margin-bottom:2px}
.kmt-dest{display:grid;gap:8px;grid-template-columns:repeat(3,minmax(0,1fr))}
.kmt-dest.dest-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.kmt-dest.dest-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.kmt-dest-b{font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px 6px;cursor:pointer;color:#1c1917;text-align:center;touch-action:manipulation}
.kmt-dest-b span{font-size:22px}
.kmt-dest-b b{font-size:14px;line-height:1.2}
.kmt-dest-b i{font-style:normal;font-size:12px;color:#78716c}
.kmt-dest-b:hover:not(:disabled){border-color:#c2410c}
.kmt-dest-b.bon{border-color:#16a34a;background:#dcfce7}
.kmt-dest-b.faux{border-color:#dc2626;background:#fee2e2}
.kmt-grille-t{width:100%;border-collapse:collapse;background:#fff;border-radius:10px;overflow:hidden;font-size:13px}
.kmt-grille-t th,.kmt-grille-t td{border:1px solid #e7e5e4;padding:4px 6px;text-align:center}
.kmt-grille-t thead th{background:#f1f5f9}
.kmt-grille-t td{min-height:26px;font-size:16px}
.kmt-grille-choix{display:flex;flex-direction:column;gap:6px}
.kmt-grille-choix>span{font-weight:800;font-size:14px}

/* ---- Projets, routes, suites ---- */
.kmt-projets-l{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
.kmt-trois{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.kmt-projet{font:inherit;text-align:left;display:flex;flex-direction:column;gap:6px;background:#fff;border:3px solid #d6d3d1;border-radius:14px;padding:12px;cursor:pointer;color:#1c1917}
.kmt-projet.on{border-color:#16a34a;background:#f0fdf4}
.kmt-projet b{font-size:16px}
.kmt-projet ul{margin:0;padding-left:18px;font-size:14px;line-height:1.4}
.kmt-projet p{margin:0;font-size:14.5px;line-height:1.4}
.kmt-projet i{font-size:13px;color:#57534e;font-style:normal;font-weight:700}
.kmt-suites-l{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.kmt-suites-l li{display:flex;gap:10px;align-items:center;background:#fff;border-radius:12px;padding:8px 10px;font-size:14.5px;line-height:1.4;animation:kmt-pop .4s;border:1px solid #e7e5e4}
.kmt-suite-ico{font-size:22px;flex:0 0 auto}
.kmt-charger p{margin:0;font-size:15px}
.kmt-partage{display:flex;flex-wrap:wrap;gap:2px;justify-content:center;font-size:16px;min-height:22px}

/* ---- La file au stand ---- */
.kmt-clients{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.kmt-client{display:flex;flex-direction:column;align-items:center;background:#fff;border:2px solid #e7e5e4;border-radius:12px;padding:6px 2px;transition:transform .3s,opacity .3s}
.kmt-client span{font-size:26px}
.kmt-client i{font-style:normal;font-size:16px}
.kmt-client small{font-size:11px;color:#57534e}
.kmt-achete{border-color:#16a34a;background:#f0fdf4;transform:translateY(-4px)}
.kmt-part{opacity:.5;transform:translateX(6px)}
.kmt-essais{margin:0;padding-left:20px;font-size:14px}

/* ---- La fenêtre de prix ---- */
.kmt-regle{position:relative;height:74px;background:#fee2e2;border-radius:10px;margin:22px 4px 6px;border:2px solid #fca5a5}
.kmt-regle-vert{position:absolute;top:0;bottom:0;background:#bbf7d0;border-left:3px solid #16a34a;border-right:3px solid #16a34a}
.kmt-regle-mark{position:absolute;top:4px;transform:translateX(-50%);font-size:11px;font-weight:700;background:#fff;border-radius:6px;padding:0 4px;white-space:nowrap}
.kmt-regle-mark.kmt-bas{top:44px}
.kmt-regle-curseur{position:absolute;top:-20px;transform:translateX(-50%);font-size:20px;color:#c2410c;transition:left .25s}
.kmt-fenetre-boutons{display:flex;gap:10px;align-items:center;justify-content:center}
.kmt-fenetre-prix{font-size:24px;font-variant-numeric:tabular-nums;min-width:120px;text-align:center}

/* ---- Découvertes ---- */
.kmt-sondage-l{display:flex;flex-direction:column;gap:6px}
.kmt-barre{position:relative;font:inherit;text-align:left;background:#fff;border:2px solid #d6d3d1;border-radius:10px;padding:10px 12px;cursor:pointer;overflow:hidden;color:#1c1917;display:flex;flex-direction:column}
.kmt-barre.on{border-color:#c2410c}
.kmt-barre b,.kmt-barre i{position:relative;z-index:1}
.kmt-barre i{font-style:normal;font-size:12.5px;color:#57534e}
.kmt-barre-fond{position:absolute;left:0;top:0;bottom:0;background:#fed7aa;transition:width .8s}
.kmt-d2-cartes{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:6px}
.kmt-d2-carte{font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border:2px dashed #94a3b8;border-radius:12px;padding:8px 4px;cursor:pointer;color:#1c1917}
.kmt-d2-carte span{font-size:22px}
.kmt-d2-carte b{font-size:13px;text-align:center}
.kmt-d2-carte i{font-style:normal;font-weight:800;color:#c2410c}
.kmt-d2-carte.on{border-style:solid;border-color:#16a34a;background:#f0fdf4}

/* ---- Calcul, aide, carnet ---- */
.kmt-calcul{display:flex;flex-direction:column;gap:4px;text-align:left}
.kmt-rappel{background:#f5f5f4;border-radius:10px;padding:8px 12px;font-size:14.5px;line-height:1.45;margin:6px 0}
.kmt-formule{background:#ecfeff;border-left:4px solid #0e7490;border-radius:8px;padding:8px 12px;margin:4px 0;font-size:14.5px;line-height:1.4}
.kmt-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.kmt-saisie input{font:inherit;font-size:18px;width:160px;padding:8px 10px;border:2px solid #a8a29e;border-radius:10px}
.kmt-aide{border:2px dashed #ea580c;border-radius:12px;margin:6px 0;background:#fffaf5;text-align:left}
.kmt-aide-bouton{font:inherit;width:100%;display:flex;justify-content:space-between;gap:8px;align-items:center;background:none;border:0;padding:8px 12px;font-weight:800;cursor:pointer;color:#9a3412;text-align:left}
.kmt-aide-bouton span{font-weight:600;font-size:12.5px;color:#c2410c}
.kmt-aide-corps{padding:0 12px 10px;font-size:14.5px}
.kmt-aide-corps p{margin:4px 0}
.kmt-aide-formule{font-weight:700;color:#166534}
.kmt-hypo{display:flex;flex-direction:column;gap:10px;text-align:left}
.kmt-hypo-tete{display:flex;justify-content:space-between;gap:8px;background:#164e63;color:#fde68a;border-radius:10px;padding:8px 12px;flex-wrap:wrap}
.kmt-hypo-tete span{font-size:12.5px;color:#a5f3fc}
.kmt-hypo-l{display:flex;flex-direction:column;gap:8px}
.kmt-hypo-o{font:inherit;text-align:left;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px 12px;cursor:pointer;color:#1c1917;font-weight:600;line-height:1.35}
.kmt-hypo-o.bon{border-color:#16a34a;background:#dcfce7}
.kmt-hypo-o.faux{border-color:#dc2626;background:#fee2e2}
.kmt-hypo-doc{display:flex;flex-direction:column;gap:3px;background:#ecfeff;border-left:5px solid #0e7490;border-radius:10px;padding:8px 12px;margin:6px 0;text-align:left;color:#1c1917}
.kmt-hypo-doc span{font-size:14px}
.kmt-hypo-doc em{font-size:13px;color:#57534e}

/* ---- Documents, bilan, fins ---- */
.kmt-badge{background:#fff;border-radius:16px;overflow:hidden;border:3px solid #1c1917;max-width:420px;margin:0 auto 12px;color:#1c1917;text-align:left}
.kmt-badge-haut{background:linear-gradient(90deg,#9a3412,#c2410c,#0e7490);color:#fff;padding:8px 12px;display:flex;flex-direction:column}
.kmt-badge-haut b{font-size:20px;letter-spacing:3px}
.kmt-badge-haut span{font-size:11.5px;font-weight:700}
.kmt-badge-corps{display:flex;gap:12px;padding:12px;align-items:center}
.kmt-badge-corps>div{display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.kmt-badge-corps b{font-size:18px}
.kmt-badge-photo.kmt-photo-ico{width:84px;height:96px;flex:0 0 84px;border-radius:10px;font-size:44px}
.kmt-badge-mission{font-weight:700;color:#c2410c}
.kmt-doc{background:#fff;border-radius:12px;padding:12px;color:#1c1917;text-align:left}
.kmt-doc-tete{display:flex;flex-direction:column;border-bottom:2px solid #1c1917;margin-bottom:8px;padding-bottom:4px}
.kmt-doc-tete span{font-size:12.5px;color:#78716c}
.kmt-journal ul{margin:4px 0;padding-left:18px;font-size:14px;line-height:1.45}
.kmt-journal li span{font-weight:700}
.kmt-fiche{width:100%;border-collapse:collapse;font-size:14px;margin:6px 0}
.kmt-fiche th,.kmt-fiche td{border:1px solid #d6d3d1;padding:5px 8px;text-align:right}
.kmt-fiche th:first-child,.kmt-fiche td:first-child{text-align:left}
.kmt-fiche tr:last-child td{font-weight:800;background:#fff7ed}
.kmt-bord{background:#fff;border-radius:14px;padding:10px;color:#1c1917;margin:10px 0;text-align:left}
.kmt-bord-t{font-weight:800;margin-bottom:8px}
.kmt-bord-l{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}
.kmt-indic{display:flex;flex-direction:column;gap:2px;border:2px solid #e7e5e4;border-radius:12px;padding:8px;background:#fafaf9}
.kmt-indic b{font-size:13.5px}
.kmt-indic i{font-style:normal;font-size:12.5px;color:#57534e}
.kmt-i-haut{border-color:#86efac;background:#f0fdf4}
.kmt-i-moyen{border-color:#fde68a;background:#fffbeb}
.kmt-i-bas{border-color:#fca5a5;background:#fef2f2}
.kmt-bravo-score{display:flex;flex-direction:column;align-items:center;margin:6px 0}
.kmt-bravo-score b{font-size:38px}
.kmt-fin-profil{background:#fff;color:#1c1917;border-radius:14px;padding:12px;margin:10px 0;text-align:left}
.kmt-fin-profil b{font-size:18px}
.kmt-rejouer{display:flex;gap:6px;flex-wrap:wrap;align-items:center;justify-content:center;margin:8px 0}
.kmt-maq input{width:100%}

/* ---- Téléphone ---- */
@media (max-width:560px){
  .kmt-dest,.kmt-dest.dest-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kmt-clients{grid-template-columns:repeat(4,minmax(0,1fr))}
  .kmt-arret b{font-size:10px}
  .kmt-panneau-choix{display:none}
  .kmt-route{height:84px}
  .kmt-quai-pile b{font-size:11px}
  .kmt-regle-mark{font-size:9.5px}
}
/* ==== kmt : fin des styles ==== */
/* ==== lgo : debut des styles ====
   « Lalgo, aprann byin ! » — préfixe lgo-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.lgo). Couleurs : le bois d'une case
   créole, le vert des diodes de Lalgo, le violet du contrôle.
   Images : img/lalgo/ (décors 16:9, portraits 3:4). Les dégradés ci-dessous sont
   posés SOUS la photo (sur .pdl-decor) : ils restent visibles si elle manque. */
.lgo .pdl-cta{background:linear-gradient(135deg,#7c3aed,#0f766e);box-shadow:0 6px 18px rgba(124,58,237,.3)}
.lgo .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(124,58,237,.4)}
.lgo .pdl-cta.alt{background:#fff;color:#1e1b4b;border:2px solid #7c3aed;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.lgo .pdl-decor{background:linear-gradient(135deg,#1c1917,#44403c 55%,#4c1d95)}
.lgo .pdl-decor-img{background-size:cover!important}
.lgo .pdl-decor.lgo-d-agence{background-image:radial-gradient(circle at 20% 30%,rgba(250,204,21,.25),transparent 30%),linear-gradient(160deg,#78350f,#a16207 55%,#166534)}
.lgo .pdl-decor.lgo-d-atelier{background-image:radial-gradient(circle at 75% 45%,rgba(74,222,128,.35),transparent 20%),radial-gradient(circle at 80% 50%,rgba(96,165,250,.3),transparent 18%),linear-gradient(170deg,#292524,#57534e 60%,#1e1b4b)}
.lgo .pdl-decor.lgo-d-logement{background-image:radial-gradient(circle at 50% 35%,rgba(56,189,248,.35),transparent 30%),linear-gradient(170deg,#f5f5f4,#d6d3d1 60%,#c2410c)}
.lgo .pdl-decor.lgo-d-nuit{background-image:radial-gradient(circle at 70% 55%,rgba(250,204,21,.35),transparent 18%),linear-gradient(170deg,#020617,#1e1b4b 60%,#3f1d0b)}
.lgo-panneau{color:#0f172a}
.lgo .lgo-panneau-large{max-width:1000px;width:100%}
.lgo-photo-ico{display:inline-grid;place-items:center;font-size:30px;background:#ede9fe;border-radius:50%;line-height:1}
.lgo .pdl-bulle-photo.lgo-photo-ico{width:64px;height:64px;flex:0 0 64px}
.lgo .pdl-hud-moi .lgo-photo-ico{width:36px;height:36px;font-size:20px;border:2px solid #a78bfa}
.lgo-perso-img{width:100%;aspect-ratio:3/3.4;display:grid!important;font-size:64px;border-radius:0!important;background:linear-gradient(160deg,#ede9fe,#ccfbf1)!important}
.lgo-mini{width:44px;height:44px;flex:0 0 44px;font-size:24px}
.lgo-photo-img{display:block;object-fit:cover;object-position:50% 25%;border-radius:50%;background:#ede9fe}
img.lgo-perso-img{display:block!important;width:100%;height:auto;aspect-ratio:3/3.4;object-position:50% 20%;border-radius:12px!important}
.lgo-note{font-size:13.5px;color:#475569;margin:8px 0}
.lgo-ko{color:#b45309;font-weight:700;margin:8px 0}
.lgo-consigne{background:#f5f3ff;border-left:5px solid #7c3aed;border-radius:10px;padding:10px 12px;margin:0 0 6px;font-size:15px;line-height:1.45}
.lgo-petit{font:inherit;font-weight:700;font-size:13.5px;background:#f1f5f9;border:2px solid #cbd5e1;border-radius:10px;padding:7px 10px;cursor:pointer;color:#0f172a;touch-action:manipulation}
.lgo-petit:hover:not(:disabled){border-color:#7c3aed;background:#f5f3ff}
.lgo-petit:disabled{opacity:.7;cursor:default}
.lgo-petit.bon{border-color:#16a34a;background:#dcfce7}
.lgo-petit.faux{border-color:#f59e0b;background:#fef3c7}
.lgo .lgo-hud-prog{gap:4px}
.lgo .lgo-hud-prog em{font-style:normal;font-size:14px;margin:0 2px 0 6px}
.lgo-hud-jauges{font:inherit;display:flex;gap:6px;align-items:center;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:10px;padding:4px 8px;color:inherit;cursor:pointer;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums;flex-wrap:wrap}
.lgo-hud-jauges span.haut{color:#86efac}
.lgo-hud-jauges span.bas{color:#fca5a5}
.lgo-tm-notion{color:#ede9fe;font-weight:700;margin:6px 0 12px;font-size:15px}
.lgo-fil{display:flex;gap:6px;justify-content:center;margin:0 0 10px;flex-wrap:wrap}
.lgo-fil span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.35);font-size:15px;opacity:.7}
.lgo-fil .lgo-fil-fait{background:#bbf7d0;opacity:1}
.lgo-fil .lgo-fil-ici{background:#fff;opacity:1;box-shadow:0 0 0 3px #7c3aed}

/* ---- Lalgo, le robot dessiné en CSS ---- */
.lgo-robot{position:relative;display:inline-flex;flex-direction:column;align-items:center;width:84px;flex:0 0 84px;--lgo-oeil:#4ade80}
.lgo-antenne{display:block;width:4px;height:14px;background:#64748b;position:relative}
.lgo-antenne:after{content:"";position:absolute;top:-8px;left:-4px;width:12px;height:12px;border-radius:50%;background:var(--lgo-oeil);box-shadow:0 0 10px var(--lgo-oeil);animation:lgo-clignote 1.6s infinite}
.lgo-tete{width:84px;height:66px;border-radius:18px;background:linear-gradient(160deg,#f8fafc,#cbd5e1);border:3px solid #475569;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr auto;align-items:center;justify-items:center;padding:8px 10px 6px;box-shadow:0 6px 0 #334155;box-sizing:border-box}
.lgo-oeil{width:16px;height:16px;border-radius:50%;background:var(--lgo-oeil);box-shadow:0 0 8px var(--lgo-oeil);animation:lgo-cligne 4s infinite}
.lgo-bouche{grid-column:1/-1;width:34px;height:8px;border-radius:0 0 12px 12px;background:#334155}
.lgo-parle .lgo-bouche{animation:lgo-parle .3s infinite alternate}
.lgo-h-pense{--lgo-oeil:#60a5fa}
.lgo-h-pense .lgo-oeil{animation:lgo-regarde 1.4s infinite alternate}
.lgo-h-pense .lgo-bouche{height:4px;border-radius:2px}
.lgo-h-triste{--lgo-oeil:#94a3b8}
.lgo-h-triste .lgo-bouche{border-radius:12px 12px 0 0}
.lgo-h-injuste{--lgo-oeil:#f97316}
.lgo-h-injuste .lgo-oeil{border-radius:3px;transform:rotate(45deg)}
.lgo-h-alarme{--lgo-oeil:#ef4444}
.lgo-h-alarme .lgo-tete{animation:lgo-secoue .5s infinite}
@keyframes lgo-clignote{50%{opacity:.35}}
@keyframes lgo-cligne{0%,92%,100%{transform:scaleY(1)}95%{transform:scaleY(.1)}}
@keyframes lgo-regarde{from{transform:translateX(-3px)}to{transform:translateX(3px)}}
@keyframes lgo-parle{from{height:4px}to{height:12px}}
@keyframes lgo-secoue{20%,60%{transform:translateX(-3px)}40%,80%{transform:translateX(3px)}}
.lgo-robot-mini,.lgo-robot-hud{transform:scale(.5);transform-origin:center;width:44px;flex:0 0 44px;margin:-14px -20px -16px}
.lgo-robot-hud{transform:scale(.36);margin:-24px -22px -26px -26px}
.lgo-robot-bulle{margin:0 6px 0 0}
.lgo-accueil-titre{display:flex;gap:14px;align-items:center;justify-content:center;flex-wrap:wrap}

/* ---- L'accueil : deux portes ---- */
.lgo-portes{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:14px 0}
.lgo-porte{font:inherit;text-align:left;display:flex;flex-direction:column;gap:4px;background:#fff;color:#0f172a;border:3px solid #a78bfa;border-radius:16px;padding:14px;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.2);transition:transform .15s}
.lgo-porte:hover{transform:translateY(-3px)}
.lgo-porte b{font-size:19px}
.lgo-porte span{font-weight:800;font-size:13px;color:#6d28d9}
.lgo-porte i{font-style:normal;font-size:13.5px;color:#475569}
.lgo-porte-2{border-color:#14b8a6}
.lgo-porte-2 span{color:#0f766e}

/* ---- Zones communes ---- */
.lgo-gamelle,.lgo-dressage,.lgo-test,.lgo-boite-zone,.lgo-vitrine,.lgo-alerte-zone,.lgo-crise,.lgo-chaine-zone,.lgo-choix,.lgo-calcul-zone,.lgo-eclair,.lgo-loupe,.lgo-sms-zone,.lgo-papier-zone{display:flex;flex-direction:column;gap:10px;text-align:left}
@keyframes lgo-tombe{from{transform:translateY(-30px) rotate(-3deg);opacity:0}to{transform:none;opacity:1}}

/* ---- La gamelle ---- */
.lgo-gamelle-scene{display:flex;gap:16px;align-items:center;justify-content:center;flex-wrap:wrap;background:linear-gradient(180deg,#1e1b4b,#312e81);border-radius:16px;padding:16px 12px}
.lgo-carte-donnee{display:flex;flex-direction:column;align-items:center;gap:4px;background:#fff;border-radius:14px;padding:12px 16px;max-width:360px;text-align:center;box-shadow:0 10px 24px rgba(0,0,0,.35);animation:lgo-tombe .45s cubic-bezier(.2,1.4,.5,1)}
.lgo-carte-n{font-size:12px;font-weight:800;color:#6d28d9}
.lgo-carte-ico{font-size:34px}
.lgo-carte-donnee b{font-size:15.5px;line-height:1.35}
.lgo-dests{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.lgo-dest{font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border:3px solid #cbd5e1;border-radius:12px;padding:10px 6px;cursor:pointer;color:#0f172a;text-align:center;box-shadow:0 4px 0 #94a3b8;touch-action:manipulation}
.lgo-dest:active{transform:translateY(3px);box-shadow:0 1px 0 #94a3b8}
.lgo-dest span{font-size:24px}
.lgo-dest b{font-size:14px}
.lgo-dest i{font-style:normal;font-size:12px;color:#64748b}
.lgo-dest.lgo-dest-donner{border-color:#86efac}
.lgo-dest.lgo-dest-inutile{border-color:#cbd5e1}
.lgo-dest.lgo-dest-coffre{border-color:#c4b5fd}
.lgo-dest.bon{background:#dcfce7;border-color:#16a34a}
.lgo-dest.faux{background:#fef3c7;border-color:#f59e0b}
.lgo-dest:disabled{cursor:default}
.lgo-trois{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.lgo-tas{display:flex;flex-direction:column;gap:3px;border:2px dashed #cbd5e1;border-radius:10px;padding:6px;font-size:12px;min-height:60px;background:#f8fafc}
.lgo-tas b{font-size:12.5px}
.lgo-tas span{background:#fff;border-radius:6px;padding:2px 5px;animation:lgo-tombe .35s}
.lgo-tas.lgo-dest-donner{border-color:#86efac;background:#f0fdf4}
.lgo-tas.lgo-dest-coffre{border-color:#c4b5fd;background:#f5f3ff}

/* ---- Le dressage ---- */
.lgo-dressage-grille{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:12px;align-items:start}
.lgo-dressage-g{display:flex;flex-direction:column;gap:10px}
.lgo-dressage-d{display:flex;flex-direction:column;align-items:center;gap:8px;background:#1e1b4b;border-radius:16px;padding:12px;position:sticky;top:8px}
.lgo-ancien{background:#fffbeb;border:1px solid #fcd34d;border-radius:8px;padding:10px 12px;box-shadow:0 8px 18px rgba(0,0,0,.12);position:relative;animation:lgo-tombe .4s;transform:rotate(-.4deg)}
.lgo-ancien-tete{display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap;border-bottom:2px solid #a16207;padding-bottom:4px}
.lgo-ancien ul{margin:8px 0 34px;padding-left:4px;list-style:none;display:flex;flex-direction:column;gap:4px;font-size:14.5px}
.lgo-ok b{color:#15803d}
.lgo-nok b{color:#b91c1c}
.lgo-inconnu b{color:#64748b;font-style:italic}
.lgo-tampon-clain{position:absolute;right:12px;bottom:8px;transform:rotate(-8deg);border:3px solid currentColor;border-radius:6px;padding:2px 8px;font-weight:900;letter-spacing:.05em;font-size:14px;background:rgba(255,255,255,.7)}
.lgo-tampon-clain.lgo-acc{color:#15803d}
.lgo-tampon-clain.lgo-ref{color:#b91c1c}
.lgo-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.lgo-action{font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border:3px solid #cbd5e1;border-radius:12px;padding:8px 6px;cursor:pointer;color:#0f172a;text-align:center;touch-action:manipulation}
.lgo-action span{font-size:22px}
.lgo-action b{font-size:13.5px}
.lgo-action i{font-style:normal;font-size:11.5px;color:#64748b}
.lgo-action.bon{background:#dcfce7;border-color:#16a34a}
.lgo-action.faux{background:#fef3c7;border-color:#f59e0b}
.lgo-action:disabled{cursor:default}
.lgo-cerveau{width:100%;background:#0f172a;border-radius:12px;padding:10px;color:#e2e8f0;display:flex;flex-direction:column;gap:6px}
.lgo-cerveau-t{display:flex;justify-content:space-between;gap:6px;font-weight:800;flex-wrap:wrap}
.lgo-cerveau-t span{font-weight:600;font-size:12px;color:#a5b4fc}
.lgo-cerveau .lgo-note{color:#cbd5e1;font-size:12px;margin:2px 0 0}
.lgo-appris{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:5px;font-size:13px}
.lgo-appris li{background:#1e293b;border-radius:8px;padding:5px 8px;animation:lgo-apparait .4s}
.lgo-appris-injuste{color:#fecaca;border:2px solid #ef4444}
.lgo-appris-injuste em{font-style:normal;font-weight:800;color:#fca5a5}
@keyframes lgo-apparait{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.lgo-test-l{display:flex;flex-direction:column;gap:8px}
.lgo-test-c{display:flex;gap:10px;align-items:center;background:#f8fafc;border:2px solid #e2e8f0;border-radius:12px;padding:8px 10px}
.lgo-test-c div{flex:1;display:flex;flex-direction:column;font-size:13.5px}
.lgo-test-c div span{color:#64748b;font-size:12.5px}
.lgo-test-c em{font-style:normal;font-weight:800;white-space:nowrap}
.lgo-test-c.lgo-acc{border-color:#86efac;background:#f0fdf4;animation:lgo-tombe .35s}
.lgo-test-c.lgo-ref{border-color:#fca5a5;background:#fef2f2;animation:lgo-tombe .35s}
.lgo-test-c.lgo-en-cours{border-color:#a78bfa;box-shadow:0 0 0 3px #ede9fe}

/* ---- La boîte noire, la vitrine ---- */
.lgo-boite{background:#0f172a;border-radius:14px;padding:12px;color:#e2e8f0;min-height:90px;border:3px solid #334155;box-shadow:inset 0 0 30px rgba(0,0,0,.6)}
.lgo-couvercle{text-align:center;font-size:28px;letter-spacing:.3em;padding:14px 0}
.lgo-boite.ouverte .lgo-couvercle{display:none}
.lgo-regle{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:6px;font-size:14.5px}
.lgo-regle li{animation:lgo-tombe .35s}
.lgo-cache{color:#fdba74;font-weight:800}
.lgo-cache em{font-style:normal;font-size:12.5px;color:#fca5a5}
.lgo-coupe{text-decoration:line-through;opacity:.6}
.lgo-doc .lgo-regle{color:#0f172a}
.lgo-vit{background:#f8fafc;border:2px solid #e2e8f0;border-radius:12px;padding:8px 10px;display:flex;flex-direction:column;gap:6px}
.lgo-vit p{margin:0;font-weight:700;font-size:14.5px}
.lgo-vit.bon{border-color:#86efac;background:#f0fdf4}
.lgo-vit.faux{border-color:#fcd34d;background:#fffbeb}
.lgo-vit em{font-style:normal;font-size:13px;color:#334155}
.lgo-vit-b{display:flex;gap:6px;flex-wrap:wrap}
.lgo-page-pub{background:#fff;border:2px solid #7c3aed;border-radius:10px;padding:10px 12px;animation:lgo-tombe .4s}
.lgo-page-pub ul{margin:6px 0 0;padding-left:18px;font-size:14px}

/* ---- La crise ---- */
.lgo-sirene{background:repeating-linear-gradient(135deg,#b91c1c 0 16px,#991b1b 16px 32px);color:#fff;font-weight:900;text-align:center;border-radius:12px;padding:10px;animation:lgo-pulse 1s infinite alternate}
@keyframes lgo-pulse{from{box-shadow:0 0 0 0 rgba(239,68,68,.6)}to{box-shadow:0 0 0 10px rgba(239,68,68,0)}}
.lgo-journal{background:#020617;color:#4ade80;font-family:Consolas,monospace;border-radius:10px;padding:10px 12px;font-size:13.5px}
.lgo-journal p{margin:3px 0;opacity:0;animation:lgo-tombe .4s forwards}
.lgo-frise{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}
.lgo-frise span{font-size:11.5px;font-weight:700;background:#f1f5f9;border-radius:8px;padding:5px;text-align:center;color:#64748b}
.lgo-frise .lgo-f-fait{background:#dcfce7;color:#15803d}
.lgo-frise .lgo-f-ici{background:#ede9fe;color:#5b21b6;box-shadow:0 0 0 2px #7c3aed}
.lgo-chrono{background:#0f172a;color:#e2e8f0;border-radius:10px;padding:8px 12px;font-size:14px;text-align:center}
.lgo-chrono b{color:#5eead4;font-variant-numeric:tabular-nums}
.lgo-chrono.urgent b{color:#fca5a5}

/* ---- La chaîne de blocs ---- */
.lgo-blocs{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
.lgo-bloc{position:relative;background:#fff;border:3px solid #a78bfa;border-radius:12px;padding:8px 10px;display:flex;flex-direction:column;gap:4px;font-size:13.5px}
.lgo-bloc p{margin:0;font-weight:700}
.lgo-bloc i{font-size:11.5px;color:#64748b}
.lgo-bloc-n{font-size:12px;font-weight:900;color:#6d28d9}
.lgo-empr{display:flex;flex-direction:column;gap:2px;font-size:12px}
.lgo-empr code{background:#ede9fe;border-radius:4px;padding:0 5px;font-weight:800}
.lgo-empr em{font-style:normal;color:#b91c1c;font-weight:800}
.lgo-change{background:#fee2e2!important;color:#b91c1c;animation:lgo-secoue .5s}
.lgo-bloc-mod{border-color:#f97316;background:#fff7ed}
.lgo-bloc-casse{border-color:#ef4444;background:#fef2f2;animation:lgo-secoue .6s}
.lgo-copies{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}
.lgo-copie{display:flex;flex-direction:column;gap:3px;background:#f0fdf4;border:2px solid #86efac;border-radius:10px;padding:8px;font-size:13px}
.lgo-copie em{font-style:normal;font-weight:800}
.lgo-copie-ko{background:#fef2f2;border-color:#fca5a5}

/* ---- Dossiers à trois choix, documents ---- */
.lgo-ctx{display:flex;gap:10px;align-items:flex-start;background:#f8fafc;border-radius:12px;padding:10px;border:1px solid #e2e8f0}
.lgo-ctx p{margin:0;font-size:15px;line-height:1.45}
.lgo-doc-lettre{background:#fff;border:2px solid #1e1b4b;border-radius:8px;padding:10px 14px;font-family:Georgia,serif}
.lgo-doc-lettre p{margin:4px 0}
.lgo-doc-titre{font-weight:800;color:#4c1d95}
.lgo-options{display:flex;flex-direction:column;gap:8px}
.lgo-opt{text-align:left}
.lgo .lgo-opt.on{border-color:#7c3aed;background:#f5f3ff}

/* ---- Calcul, aide, journal ---- */
.lgo-calcul{display:flex;flex-direction:column;gap:8px}
.lgo-rappel{margin:0;background:#eff6ff;border:2px solid #bfdbfe;border-radius:10px;padding:10px 12px;font-size:14.5px;line-height:1.45}
.lgo-formule{margin:0;font-size:14.5px}
.lgo-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.lgo-saisie input{font:inherit;font-size:18px;font-weight:700;width:150px;padding:8px 10px;border:2px solid #94a3b8;border-radius:10px}
.lgo-saisie span{font-weight:800}
.lgo-aide{border:2px dashed #c4b5fd;border-radius:12px;background:#f8fafc}
.lgo-aide-bouton{font:inherit;width:100%;display:flex;justify-content:space-between;gap:8px;background:transparent;border:0;padding:8px 12px;cursor:pointer;font-weight:800;color:#4c1d95;flex-wrap:wrap}
.lgo-aide-bouton span{font-weight:600;font-size:12.5px;color:#64748b}
.lgo-aide-corps{padding:0 12px 10px}
.lgo-aide-corps p{margin:4px 0}
.lgo-aide-formule{font-weight:700}
.lgo-hypo{display:flex;flex-direction:column;gap:10px;text-align:left}
.lgo-hypo-tete{display:flex;justify-content:space-between;gap:8px;background:#ede9fe;border-radius:8px;padding:6px 10px;flex-wrap:wrap}
.lgo-hypo-tete span{font-size:12.5px;font-weight:700;color:#6d28d9}
.lgo-hypo-l{display:flex;flex-direction:column;gap:8px}
.lgo-hypo-o{font:inherit;text-align:left;background:#fff;border:2px solid #e2e8f0;border-radius:12px;padding:10px 12px;cursor:pointer;color:#0f172a;font-size:15px}
.lgo-hypo-o.bon{background:#dcfce7;border-color:#16a34a}
.lgo-hypo-o.faux{background:#fef3c7;border-color:#f59e0b}
.lgo-hypo-doc{display:flex;flex-direction:column;gap:3px;background:#f5f3ff;border-left:4px solid #7c3aed;border-radius:8px;padding:8px 10px;margin:6px 0;text-align:left}
.lgo-hypo-doc span{font-size:13.5px}
.lgo-hypo-doc em{font-size:12.5px;color:#6d28d9;font-style:normal}

/* ---- Découvertes ---- */
.lgo-eclair-robot{display:flex;justify-content:center}
.lgo-piles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lgo-pile{display:flex;flex-direction:column;gap:4px;min-height:140px;background:#f0fdf4;border:3px solid #86efac;border-radius:12px;padding:8px}
.lgo-pile.lgo-pile-non{background:#fef2f2;border-color:#fca5a5}
.lgo-mini-doss{background:#fff;border-radius:6px;padding:3px 6px;font-size:13px;box-shadow:0 2px 4px rgba(0,0,0,.08);animation:lgo-tombe .35s}
.lgo-doss-vole{align-self:center;background:#fff;border:2px solid #4c1d95;border-radius:8px;padding:8px 14px;font-weight:800;animation:lgo-vole .6s ease-in-out}
@keyframes lgo-vole{0%{transform:scale(.6);opacity:0}40%{transform:scale(1.05);opacity:1}100%{transform:translateY(20px);opacity:.3}}
.lgo-loupe-grille{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}
.lgo-loupe-col{display:flex;flex-direction:column;gap:6px;background:#f0fdf4;border:2px solid #86efac;border-radius:12px;padding:8px}
.lgo-loupe-col.lgo-pile-non{background:#fef2f2;border-color:#fca5a5}
.lgo-doss-carte{font:inherit;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:8px;padding:8px;cursor:pointer;color:#0f172a;font-size:13.5px}
.lgo-doss-carte.vu{cursor:default;border-color:#94a3b8}
.lgo-doss-carte i{display:block;font-style:normal;color:#6d28d9;margin-top:2px}
.lgo-suite{display:flex;flex-direction:column;gap:6px}
.lgo-sms{align-self:center;display:flex;flex-direction:column;gap:4px;background:#e2e8f0;border-radius:18px 18px 18px 4px;padding:12px 16px;max-width:320px;box-shadow:0 6px 14px rgba(0,0,0,.15);animation:lgo-tombe .5s}
.lgo-sms span{font-size:12px;color:#64748b}
.lgo-sms b{font-size:17px}
.lgo-papier{align-self:center;width:100%;max-width:440px;background:#fffef5;border:1px solid #d6d3d1;border-radius:4px;padding:14px 16px;font-family:"Comic Sans MS","Segoe Print",cursive;box-shadow:0 8px 18px rgba(0,0,0,.15);transform:rotate(.5deg);background-image:repeating-linear-gradient(0deg,transparent 0 27px,#bfdbfe 27px 28px)}
.lgo-papier b{font-family:inherit;font-size:13px}
.lgo-papier p{margin:6px 0}
.lgo-papier.gomme .lgo-ligne-gomme{background:radial-gradient(ellipse at center,rgba(148,163,184,.35),transparent 70%);color:#1e3a8a}

/* ---- Tableau de bord, documents ---- */
.lgo-bord{display:flex;flex-direction:column;gap:8px;text-align:left;background:#f8fafc;border-radius:14px;padding:10px;margin:8px 0;border:2px solid #e2e8f0;color:#0f172a}
.lgo-bord-haut{display:flex;gap:12px;align-items:center}
.lgo-bord-t{font-weight:900}
.lgo-jauges{display:grid;gap:6px}
.lgo-jauge{display:grid;grid-template-columns:120px 1fr 34px;gap:6px;align-items:center;font-size:13.5px}
.lgo-jauge em{grid-column:1/-1;font-style:normal;font-size:11.5px;color:#64748b;margin-top:-4px}
.lgo-jauge-barre{height:12px;background:#e2e8f0;border-radius:6px;overflow:hidden}
.lgo-jauge-barre i{display:block;height:100%;background:#64748b;transition:width .6s}
.lgo-jauge.haut .lgo-jauge-barre i{background:#16a34a}
.lgo-jauge.bas .lgo-jauge-barre i{background:#dc2626}
.lgo-jauge b{text-align:right;font-variant-numeric:tabular-nums}
.lgo-souvenirs{margin:0;padding-left:18px;font-size:13.5px;display:flex;flex-direction:column;gap:4px}
.lgo-badge{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 10px 24px rgba(0,0,0,.2);max-width:380px;margin:0 auto 12px;color:#0f172a;text-align:left}
.lgo-badge-haut{background:linear-gradient(135deg,#7c3aed,#0f766e);color:#fff;padding:10px 14px;display:flex;flex-direction:column}
.lgo-badge-haut b{letter-spacing:.2em}
.lgo-badge-haut span{font-size:12px;opacity:.9}
.lgo-badge-corps{display:flex;gap:12px;padding:12px 14px;align-items:center}
.lgo-badge-corps>div{display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.lgo-badge-corps b{font-size:18px}
.lgo-badge-photo{width:76px;height:76px;font-size:44px;flex:0 0 76px}
.lgo-badge-mission{font-weight:800;color:#6d28d9}
.lgo-doc{background:#fff;border-radius:10px;padding:12px;color:#0f172a;text-align:left;box-shadow:0 6px 16px rgba(0,0,0,.1)}
.lgo-doc-tete{display:flex;justify-content:space-between;gap:8px;border-bottom:2px solid #7c3aed;padding-bottom:6px;margin-bottom:8px;flex-wrap:wrap}
.lgo-doc-tete span{font-size:12px;color:#64748b}
.lgo-rapport ol{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px}
.lgo-rapport li{display:flex;flex-direction:column;gap:2px;font-size:14px}
.lgo-rapport li span{font-size:13px;color:#334155}
.lgo-rapport li em{font-style:normal;font-size:12.5px;font-weight:700}
.lgo-tenu em{color:#15803d}
.lgo-a-tenir em{color:#b45309}
.lgo-bravo-score{display:flex;flex-direction:column;align-items:center;margin:6px 0}
.lgo-bravo-score b{font-size:42px;color:#6d28d9}
.lgo-fin-profil{background:#f5f3ff;border-radius:12px;padding:10px 12px;margin:8px 0;text-align:left}
.lgo-fin-profil p{margin:4px 0}
.lgo-rejouer{display:flex;gap:6px;flex-wrap:wrap;align-items:center;justify-content:center;margin:8px 0;font-size:13.5px}
.lgo-maq{text-align:left}

@media (max-width:640px){
  .lgo-dressage-grille{grid-template-columns:1fr}
  .lgo-dressage-d{position:static;order:-1;flex-direction:row;flex-wrap:wrap;justify-content:center}
  .lgo-dressage-d .lgo-cerveau{flex:1 1 200px}
  /* 07/11 bis : bandeau compact au-dessus du dossier (boutons visibles à 375 px) */
  .lgo-dressage-d{padding:6px 8px;gap:6px;align-items:center}
  .lgo-dressage-d .lgo-robot{transform:scale(.6);transform-origin:center;margin:-18px -16px}
  .lgo-dressage-d-vide .lgo-robot{display:none}
  .lgo-cerveau-vide{padding:6px 8px;gap:2px}
  .lgo-cerveau-vide .lgo-cerveau-t{font-size:13.5px}
}
@media (max-width:560px){
  .lgo-jauge{grid-template-columns:96px 1fr 30px}
  .lgo-dests,.lgo-actions,.lgo-trois{grid-template-columns:1fr}
  .lgo-dest,.lgo-action{flex-direction:row;flex-wrap:wrap;justify-content:flex-start;text-align:left;gap:4px 8px}
  .lgo-dest i,.lgo-action i{flex-basis:100%}
  .lgo-frise{grid-template-columns:1fr 1fr}
  .lgo-hud-jauges{font-size:11.5px;gap:4px;padding:3px 5px}
  .lgo-robot-hud{display:none}
}
/* ==== lgo : fin des styles ==== */
/* ==== mrt : debut des styles ====
   « Lo marto i tonb ! » — préfixe mrt-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.mrt). Couleurs : le velours
   bordeaux d'une salle des ventes, l'or du marteau, le bois du pupitre. */
.mrt .pdl-cta{background:linear-gradient(135deg,#b91c1c,#7f1d1d);box-shadow:0 6px 18px rgba(127,29,29,.3)}
.mrt .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(127,29,29,.4)}
.mrt .pdl-cta.alt{background:#fff;color:#1c1917;border:2px solid #b91c1c;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.mrt .pdl-decor{background:linear-gradient(135deg,#4a0e17,#1c1917 60%,#7c2d12)}
.mrt-panneau{color:#1c1917}
.mrt .mrt-panneau-large{max-width:1000px;width:100%}
.mrt-photo-ico{display:inline-grid;place-items:center;font-size:30px;background:#fde68a;border-radius:50%}
.mrt .pdl-bulle-photo.mrt-photo-ico{width:64px;height:64px;flex:0 0 64px}
.mrt .pdl-hud-moi .mrt-photo-ico{width:36px;height:36px;font-size:20px;border:2px solid #facc15}
.mrt-perso-img.mrt-photo-ico{display:grid;width:100%;aspect-ratio:3/3.4;font-size:64px;border-radius:0;background:linear-gradient(160deg,#fef3c7,#fca5a5)}
.mrt-mini.mrt-photo-ico{width:44px;height:44px;font-size:24px;flex:0 0 44px}
/* Les photos (img/marto/) : visage cadré en haut du portrait 3:4. */
img.mrt-photo{object-fit:cover;object-position:50% 22%}
img.mrt-perso-img{width:100%;aspect-ratio:3/3.4;display:block}
img.mrt-mini{width:44px;height:44px;border-radius:50%;flex:0 0 44px}
img.mrt-badge-photo{width:84px;height:96px;border-radius:10px;flex:0 0 84px}
.mrt-note{font-size:13.5px;color:#57534e;margin:8px 0}
.mrt-ko{color:#b91c1c;font-weight:700;margin:8px 0}
.mrt-consigne{background:#fff7ed;border-left:5px solid #b91c1c;border-radius:10px;padding:10px 12px;margin:0 0 6px;font-size:15px;line-height:1.45}
.mrt-petit{font:inherit;font-weight:700;font-size:13.5px;background:#f5f5f4;border:2px solid #d6d3d1;border-radius:10px;padding:7px 10px;cursor:pointer;color:#1c1917;touch-action:manipulation}
.mrt-petit:hover:not(:disabled){border-color:#b91c1c;background:#fff7ed}
.mrt-petit:disabled{opacity:.45;cursor:default}
.mrt .mrt-hud-prog{gap:4px}
.mrt .mrt-hud-prog em{font-style:normal;font-size:14px;margin:0 2px 0 6px}
.mrt-tm-notion{color:#fef9c3;font-weight:700;margin:6px 0 12px;font-size:15px}
.mrt-fil{display:flex;gap:6px;justify-content:center;margin:0 0 10px;flex-wrap:wrap}
.mrt-fil span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.35);font-size:15px;opacity:.7}
.mrt-fil .mrt-fil-fait{background:#bbf7d0;opacity:1}
.mrt-fil .mrt-fil-ici{background:#fff;opacity:1;box-shadow:0 0 0 3px #b91c1c}

/* ---- L'accueil : deux portes ---- */
.mrt-portes{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:14px 0}
.mrt-porte{font:inherit;text-align:left;display:flex;flex-direction:column;gap:4px;background:#fff;color:#1c1917;border:3px solid #eab308;border-radius:16px;padding:14px;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.2);transition:transform .15s}
.mrt-porte:hover{transform:translateY(-3px)}
.mrt-porte b{font-size:19px}
.mrt-porte span{font-weight:800;font-size:13px;color:#a16207}
.mrt-porte i{font-style:normal;font-size:13.5px;color:#57534e}
.mrt-porte-2{border-color:#b91c1c}
.mrt-porte-2 span{color:#b91c1c}

/* ---- LA CRIÉE ---- */
.mrt-etape-criee,.mrt-trier,.mrt-suites,.mrt-tickets,.mrt-projets{display:flex;flex-direction:column;gap:10px;text-align:left}
.mrt-criee{display:flex;flex-direction:column;gap:10px;text-align:left;user-select:none;-webkit-user-select:none}
.mrt-lot{display:flex;gap:12px;align-items:center;background:#fff7ed;border:2px solid #fdba74;border-radius:14px;padding:10px 12px}
.mrt-lot-ico{font-size:34px}
.mrt-lot b{display:block;font-size:17px}
.mrt-lot span{font-size:13.5px;color:#57534e}
.mrt-pupitre{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;gap:2px 14px;align-items:center;background:linear-gradient(180deg,#7c2d12,#431407);color:#fff;border-radius:16px;padding:14px 16px;box-shadow:inset 0 -6px 0 rgba(0,0,0,.25)}
.mrt-marteau{grid-row:span 2;font-size:48px;transform-origin:80% 80%;transition:transform .25s}
.mrt-marteau.mrt-c1{transform:rotate(-25deg)}
.mrt-marteau.mrt-c2{transform:rotate(-45deg)}
.mrt-adjuge .mrt-marteau{animation:mrt-frappe .5s ease-out}
@keyframes mrt-frappe{0%{transform:rotate(-50deg)}60%{transform:rotate(12deg)}100%{transform:rotate(0)}}
.mrt-prix{display:flex;flex-direction:column}
.mrt-prix i{font-style:normal;font-size:13px;color:#fed7aa}
.mrt-prix b{font-size:34px;font-variant-numeric:tabular-nums;color:#fde68a;line-height:1.1}
.mrt-appel{font-weight:800;font-size:18px;color:#fff;letter-spacing:.3px}
.mrt-adjuge .mrt-appel{color:#facc15;font-size:22px}
.mrt-suivante{margin:0;font-size:14px;text-align:center}
.mrt-salle{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}
.mrt-rival{display:grid;grid-template-columns:auto auto 1fr;gap:4px 8px;align-items:center;background:#fff;border:2px solid #e7e5e4;border-radius:12px;padding:8px;transition:transform .2s,border-color .2s}
.mrt-rival b{display:block;font-size:14.5px}
.mrt-rival i{font-style:normal;font-size:12px;color:#78716c}
.mrt-raquette{font-size:20px;transition:transform .2s;opacity:.4}
.mrt-leve .mrt-raquette{transform:translateY(-6px) rotate(-12deg);opacity:1}
.mrt-rival.mrt-leve{border-color:#b91c1c;transform:translateY(-2px)}
.mrt-rival.mrt-sorti{opacity:.85;background:#fafaf9}
.mrt-lit{grid-column:1/-1;margin:2px 0 0;font-size:13px;line-height:1.35;background:#fef9c3;border-radius:8px;padding:6px 8px;font-weight:600;animation:mrt-pop .3s}
.mrt-tel{display:flex;flex-direction:column;align-items:center;gap:8px;background:#f0fdf4;border:3px solid #86efac;border-radius:16px;padding:12px}
.mrt-tel.mrt-leve{border-color:#16a34a;box-shadow:0 0 0 4px #bbf7d0}
.mrt-tel-t{font-size:14.5px;text-align:center}
.mrt-plafond{color:#b91c1c}
.mrt-boutons{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;width:100%}
.mrt-encherir{font:inherit;font-weight:800;font-size:17px;flex:1 1 260px;max-width:420px;padding:14px 12px;border:0;border-radius:14px;color:#fff;background:linear-gradient(135deg,#16a34a,#166534);box-shadow:0 6px 0 #14532d;cursor:pointer;touch-action:manipulation}
.mrt-encherir:active:not(:disabled){transform:translateY(4px);box-shadow:0 2px 0 #14532d}
.mrt-encherir:disabled{opacity:.55;cursor:default}
.mrt-journal{margin:0;padding:0 0 0 22px;font-size:13px;color:#57534e}
.mrt-fin-boutons{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:8px}
@keyframes mrt-pop{from{transform:scale(.96);opacity:.4}to{transform:none;opacity:1}}

/* ---- Trier, balance, tableau des cours ---- */
.mrt-carte{background:#fff;border:2px solid #fdba74;border-radius:14px;padding:14px;font-size:17px;font-weight:700;box-shadow:0 6px 14px rgba(0,0,0,.08);animation:mrt-pop .3s}
.mrt-carte p{margin:0}
.mrt-dest{display:grid;gap:8px;grid-template-columns:repeat(3,minmax(0,1fr))}
.mrt-dest.dest-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.mrt-dest.dest-5{grid-template-columns:repeat(3,minmax(0,1fr))}
.mrt-dest-b{font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px 6px;cursor:pointer;color:#1c1917;text-align:center}
.mrt-dest-b span{font-size:22px}
.mrt-dest-b b{font-size:14px;line-height:1.2}
.mrt-dest-b i{font-style:normal;font-size:12px;color:#78716c}
.mrt-dest-b:hover:not(:disabled){border-color:#b91c1c}
.mrt-dest-b.bon{border-color:#16a34a;background:#dcfce7}
.mrt-dest-b.faux{border-color:#dc2626;background:#fee2e2}
.mrt-balance{display:flex;flex-direction:column;align-items:center;background:#fff;border-radius:14px;padding:10px 8px 6px;border:2px solid #fde68a}
.mrt-fleau{display:flex;justify-content:space-between;gap:10px;width:min(100%,520px);border-top:6px solid #78350f;padding-top:6px;transition:transform .5s}
.mrt-plateau{display:flex;flex-direction:column;align-items:center;min-width:120px;background:#fef3c7;border:2px solid #d97706;border-radius:0 0 40px 40px;padding:6px 10px 10px}
.mrt-plateau-d{background:#e0e7ff;border-color:#4f46e5}
.mrt-plateau i{font-style:normal;font-size:12.5px;font-weight:700}
.mrt-plateau b{font-variant-numeric:tabular-nums}
.mrt-pied{font-size:13px;font-weight:700;color:#166534;margin-top:4px}
.mrt-tableau{display:flex;flex-direction:column;align-items:center;gap:2px;background:#020617;color:#e2e8f0;border-radius:14px;padding:10px;border:3px solid #334155;font-family:ui-monospace,Consolas,monospace}
.mrt-tableau span{font-size:13px;letter-spacing:2px;color:#94a3b8}
.mrt-cours{font-size:32px;color:#facc15;transition:color .3s}
.mrt-tableau i{font-style:normal;font-size:12.5px;text-align:center}
.mrt-tickets .mrt-compteurs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mrt-compteur{display:flex;flex-direction:column;align-items:center;border-radius:12px;padding:8px;color:#fff}
.mrt-compteur i{font-style:normal;font-size:13px}
.mrt-compteur b{font-size:20px;font-variant-numeric:tabular-nums}
.mrt-in{background:#15803d}
.mrt-out{background:#b91c1c}

/* ---- Projets, suites ---- */
.mrt-projets-l{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
.mrt-projet{font:inherit;text-align:left;display:flex;flex-direction:column;gap:6px;background:#fff;border:3px solid #d6d3d1;border-radius:14px;padding:12px;cursor:pointer;color:#1c1917}
.mrt-projet.on{border-color:#16a34a;background:#f0fdf4}
.mrt-projet b{font-size:16px}
.mrt-projet ul{margin:0;padding-left:18px;font-size:14px;line-height:1.4}
.mrt-projet p{margin:0;font-size:14.5px;line-height:1.4}
.mrt-projet i{font-size:13px;color:#57534e}
.mrt-suites-l{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.mrt-suites-l li{display:flex;gap:10px;align-items:center;background:#fff;border-radius:12px;padding:8px 10px;font-size:14.5px;line-height:1.4;animation:mrt-pop .4s;border:1px solid #e7e5e4}
.mrt-suite-ico{font-size:22px;flex:0 0 auto}

/* ---- Calcul, aide, carnet ---- */
.mrt-calcul{display:flex;flex-direction:column;gap:4px;text-align:left}
.mrt-rappel{background:#f5f5f4;border-radius:10px;padding:8px 12px;font-size:14.5px;line-height:1.45;margin:6px 0}
.mrt-formule{background:#fff7ed;border-left:4px solid #ea580c;border-radius:8px;padding:8px 12px;margin:8px 0;font-size:14.5px;line-height:1.4}
.mrt-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.mrt-saisie input{font:inherit;font-size:18px;width:160px;padding:8px 10px;border:2px solid #a8a29e;border-radius:10px}
.mrt-aide{border:2px dashed #ea580c;border-radius:12px;margin:8px 0;background:#fffaf5;text-align:left}
.mrt-aide-bouton{font:inherit;width:100%;display:flex;justify-content:space-between;gap:8px;align-items:center;background:none;border:0;padding:8px 12px;font-weight:800;cursor:pointer;color:#9a3412;text-align:left}
.mrt-aide-bouton span{font-weight:600;font-size:12.5px;color:#c2410c}
.mrt-aide-corps{padding:0 12px 10px;font-size:14.5px}
.mrt-aide-corps p{margin:4px 0}
.mrt-aide-formule{font-weight:700;color:#166534}
.mrt-hypo{display:flex;flex-direction:column;gap:10px;text-align:left}
.mrt-hypo-tete{display:flex;justify-content:space-between;gap:8px;background:#431407;color:#fde68a;border-radius:10px;padding:8px 12px;flex-wrap:wrap}
.mrt-hypo-tete span{font-size:12.5px;color:#fed7aa}
.mrt-hypo-l{display:flex;flex-direction:column;gap:8px}
.mrt-hypo-o{font:inherit;text-align:left;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px 12px;cursor:pointer;color:#1c1917;font-weight:600;line-height:1.35}
.mrt-hypo-o.bon{border-color:#16a34a;background:#dcfce7}
.mrt-hypo-o.faux{border-color:#dc2626;background:#fee2e2}
.mrt-hypo-doc{display:flex;flex-direction:column;gap:3px;background:#fff7ed;border-left:5px solid #b91c1c;border-radius:10px;padding:8px 12px;margin:6px 0;text-align:left;color:#1c1917}
.mrt-hypo-doc span{font-size:14px}
.mrt-hypo-doc em{font-size:13px;color:#57534e}

/* ---- Documents, registre, fins ---- */
.mrt-badge{background:#fff;border-radius:16px;overflow:hidden;border:3px solid #1c1917;max-width:420px;margin:0 auto 12px;color:#1c1917;text-align:left}
.mrt-badge-haut{background:linear-gradient(90deg,#7f1d1d,#b91c1c,#eab308);color:#fff;padding:8px 12px;display:flex;flex-direction:column}
.mrt-badge-haut b{font-size:20px;letter-spacing:3px}
.mrt-badge-haut span{font-size:11.5px;font-weight:700}
.mrt-badge-corps{display:flex;gap:12px;padding:12px;align-items:center}
.mrt-badge-corps>div{display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.mrt-badge-corps b{font-size:18px}
.mrt-badge-photo.mrt-photo-ico{width:84px;height:96px;flex:0 0 84px;border-radius:10px;font-size:44px}
.mrt-badge-mission{font-weight:700;color:#b91c1c}
.mrt-doc{background:#fff;border-radius:12px;padding:12px;color:#1c1917;text-align:left}
.mrt-doc-tete{display:flex;flex-direction:column;border-bottom:2px solid #1c1917;margin-bottom:8px;padding-bottom:4px}
.mrt-doc-tete span{font-size:12.5px;color:#78716c}
.mrt-fiche{display:flex;flex-direction:column;gap:2px;border-bottom:1px dashed #d6d3d1;padding:6px 0;font-size:14px}
.mrt-fiche i{font-style:normal;color:#57534e;font-size:13px}
.mrt-bord{background:#fff;border-radius:14px;padding:10px;color:#1c1917;margin:10px 0;text-align:left}
.mrt-bord-t{font-weight:800;margin-bottom:8px}
.mrt-bord-l{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}
.mrt-indic{display:flex;flex-direction:column;gap:2px;border:2px solid #e7e5e4;border-radius:12px;padding:8px;background:#fafaf9}
.mrt-indic b{font-size:13.5px}
.mrt-indic i{font-style:normal;font-size:12.5px;color:#57534e}
.mrt-i-haut{border-color:#86efac;background:#f0fdf4}
.mrt-i-moyen{border-color:#fde68a;background:#fffbeb}
.mrt-i-bas{border-color:#fca5a5;background:#fef2f2}
.mrt-bravo-score{display:flex;flex-direction:column;align-items:center;margin:6px 0}
.mrt-bravo-score b{font-size:38px}
.mrt-fin-profil{background:#fff;color:#1c1917;border-radius:14px;padding:12px;margin:10px 0;text-align:left}
.mrt-fin-profil b{font-size:18px}
.mrt-rejouer{display:flex;gap:6px;flex-wrap:wrap;align-items:center;justify-content:center;margin:8px 0}
.mrt-maq input{width:100%}

/* ---- Téléphone ---- */
@media (max-width:560px){
  .mrt-dest,.mrt-dest.dest-5{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mrt-prix b{font-size:26px}
  .mrt-marteau{font-size:38px}
  .mrt-appel{font-size:16px}
  .mrt-plateau{min-width:0;padding:4px 6px 8px}
  .mrt-cours{font-size:26px}
  .mrt-salle{grid-template-columns:1fr}
}
/* ==== mrt : fin des styles ==== */
/* ==== fgr : debut des styles ====
   « Pa gard la figir ! » — préfixe fgr-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.fgr). Couleurs : le bleu nuit
   d'un plateau d'appels, le turquoise des casques, le jaune des post-it.
   Images : img/figir/ (décors 16:9, portraits 3:4). Les dégradés ci-dessous sont
   posés SOUS la photo (sur .pdl-decor) : ils restent visibles si elle manque. */
.fgr .pdl-cta{background:linear-gradient(135deg,#0d9488,#1e40af);box-shadow:0 6px 18px rgba(30,64,175,.3)}
.fgr .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(30,64,175,.4)}
.fgr .pdl-cta.alt{background:#fff;color:#0f172a;border:2px solid #0d9488;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.fgr .pdl-decor{background:linear-gradient(135deg,#0f172a,#1e3a8a 55%,#0f766e)}
.fgr .pdl-decor-img{background-size:cover!important}
.fgr .pdl-decor.fgr-d-bureau{background-image:radial-gradient(circle at 20% 30%,rgba(250,204,21,.25),transparent 30%),repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 2px,transparent 2px 80px),linear-gradient(160deg,#1e293b,#334155 60%,#0f766e)}
.fgr .pdl-decor.fgr-d-plateau{background-image:radial-gradient(circle at 15% 80%,rgba(45,212,191,.35),transparent 25%),radial-gradient(circle at 70% 75%,rgba(96,165,250,.35),transparent 25%),repeating-linear-gradient(0deg,rgba(255,255,255,.06) 0 3px,transparent 3px 60px),linear-gradient(170deg,#0f172a,#1e3a8a 60%,#134e4a)}
.fgr .pdl-decor.fgr-d-pause{background-image:radial-gradient(circle at 80% 20%,rgba(251,146,60,.3),transparent 30%),linear-gradient(160deg,#292524,#44403c 55%,#0f766e)}
.fgr .pdl-decor.fgr-d-direction{background-image:radial-gradient(circle at 50% 10%,rgba(250,204,21,.22),transparent 35%),repeating-linear-gradient(90deg,rgba(255,255,255,.04) 0 1px,transparent 1px 120px),linear-gradient(170deg,#1e1b4b,#312e81 60%,#0f172a)}
.fgr-panneau{color:#0f172a}
.fgr .fgr-panneau-large{max-width:1000px;width:100%}
.fgr-photo-ico{display:inline-grid;place-items:center;font-size:30px;background:#ccfbf1;border-radius:50%;line-height:1}
.fgr .pdl-bulle-photo.fgr-photo-ico{width:64px;height:64px;flex:0 0 64px}
.fgr .pdl-hud-moi .fgr-photo-ico{width:36px;height:36px;font-size:20px;border:2px solid #2dd4bf}
.fgr-perso-img{width:100%;aspect-ratio:3/3.4;display:grid!important;font-size:64px;border-radius:0!important;background:linear-gradient(160deg,#ccfbf1,#bfdbfe)!important}
.fgr-mini{width:44px;height:44px;flex:0 0 44px;font-size:24px}
.fgr-photo-img{display:block;object-fit:cover;object-position:50% 25%;border-radius:50%;background:#ccfbf1}
img.fgr-perso-img{display:block!important;width:100%;height:auto;aspect-ratio:3/3.4;object-position:50% 20%;border-radius:12px!important}
.fgr-note{font-size:13.5px;color:#475569;margin:8px 0}
.fgr-ko{color:#b45309;font-weight:700;margin:8px 0}
.fgr-consigne{background:#f0fdfa;border-left:5px solid #0d9488;border-radius:10px;padding:10px 12px;margin:0 0 6px;font-size:15px;line-height:1.45}
.fgr-petit{font:inherit;font-weight:700;font-size:13.5px;background:#f1f5f9;border:2px solid #cbd5e1;border-radius:10px;padding:7px 10px;cursor:pointer;color:#0f172a;touch-action:manipulation}
.fgr-petit:hover:not(:disabled){border-color:#0d9488;background:#f0fdfa}
.fgr-petit:disabled{opacity:.55;cursor:default}
.fgr-petit.bon{border-color:#16a34a;background:#dcfce7}
.fgr-petit.faux{border-color:#f59e0b;background:#fef3c7}
.fgr .fgr-hud-prog{gap:4px}
.fgr .fgr-hud-prog em{font-style:normal;font-size:14px;margin:0 2px 0 6px}
.fgr-hud-jauges{font:inherit;display:flex;gap:6px;align-items:center;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:10px;padding:4px 8px;color:inherit;cursor:pointer;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}
.fgr-hud-jauges span.haut{color:#86efac}
.fgr-hud-jauges span.bas{color:#fca5a5}
.fgr-tm-notion{color:#ccfbf1;font-weight:700;margin:6px 0 12px;font-size:15px}
.fgr-fil{display:flex;gap:6px;justify-content:center;margin:0 0 10px;flex-wrap:wrap}
.fgr-fil span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.35);font-size:15px;opacity:.7}
.fgr-fil .fgr-fil-fait{background:#bbf7d0;opacity:1}
.fgr-fil .fgr-fil-ici{background:#fff;opacity:1;box-shadow:0 0 0 3px #0d9488}

/* ---- L'accueil : deux portes ---- */
.fgr-portes{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:14px 0}
.fgr-porte{font:inherit;text-align:left;display:flex;flex-direction:column;gap:4px;background:#fff;color:#0f172a;border:3px solid #2dd4bf;border-radius:16px;padding:14px;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.2);transition:transform .15s}
.fgr-porte:hover{transform:translateY(-3px)}
.fgr-porte b{font-size:19px}
.fgr-porte span{font-weight:800;font-size:13px;color:#0f766e}
.fgr-porte i{font-style:normal;font-size:13.5px;color:#475569}
.fgr-porte-2{border-color:#3b82f6}
.fgr-porte-2 span{color:#1d4ed8}

/* ---- LA CORBEILLE EN TEMPS RÉEL ---- */
.fgr-bureau,.fgr-choix,.fgr-cv-zone,.fgr-tampon-zone,.fgr-entretien,.fgr-paie,.fgr-vote,.fgr-eclair,.fgr-loupe,.fgr-calcul-zone{display:flex;flex-direction:column;gap:10px;text-align:left}
.fgr-bureau-tete{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.fgr-bureau-tete .pdl-ex-titre{flex:1 1 200px;margin:0}
.fgr-horloge{font-variant-numeric:tabular-nums;background:#0f172a;color:#5eead4;border-radius:10px;padding:5px 10px;font-size:16px;box-shadow:inset 0 0 0 2px #134e4a}
.fgr-horloge.fgr-en-pause{color:#fbbf24;animation:fgr-clignote 1s step-end infinite}
@keyframes fgr-clignote{50%{opacity:.4}}
.fgr-corbeille{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px;background:linear-gradient(180deg,#e2e8f0,#cbd5e1);border-radius:14px;padding:10px;border:2px dashed #94a3b8}
.fgr-dossier{font:inherit;position:relative;display:flex;flex-direction:column;gap:3px;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:10px;padding:8px 10px;cursor:pointer;color:#0f172a;animation:fgr-tombe .45s cubic-bezier(.2,1.4,.5,1);box-shadow:0 3px 0 #94a3b8}
.fgr-dossier:hover:not(:disabled){border-color:#0d9488;transform:translateY(-2px)}
.fgr-dossier.on{border-color:#1d4ed8;box-shadow:0 0 0 3px #bfdbfe}
.fgr-dossier.fait{opacity:.6;cursor:default;background:#f0fdf4;border-color:#86efac}
.fgr-dossier.fgr-repris{border-color:#f59e0b;background:#fffbeb;animation:fgr-secoue .5s}
.fgr-dossier b{font-size:13.5px;line-height:1.2}
.fgr-dossier em{font-style:normal;font-size:12px;font-weight:800;color:#b45309}
.fgr-dossier.fait em{color:#15803d}
.fgr-dossier-ico{font-size:22px}
.fgr-attendu{cursor:default;opacity:.6;box-shadow:none;border-style:dashed;justify-content:center;font-size:13px;animation:none}
.fgr-sablier{display:block;height:6px;border-radius:4px;background:#e2e8f0;overflow:hidden}
.fgr-sablier i{display:block;height:100%;background:linear-gradient(90deg,#ef4444,#f59e0b,#22c55e);transition:width 1s linear}
@keyframes fgr-tombe{from{transform:translateY(-30px) rotate(-4deg);opacity:0}to{transform:none;opacity:1}}
@keyframes fgr-secoue{20%,60%{transform:translateX(-4px)}40%,80%{transform:translateX(4px)}}
.fgr-alerte{display:flex;gap:10px;align-items:center;background:#fef3c7;border:2px solid #f59e0b;border-radius:12px;padding:8px 10px;font-weight:700;font-size:14px;animation:fgr-tombe .4s}
.fgr-alerte span:not(.fgr-photo-ico){flex:1}
.fgr-ouvert{border-top:3px solid #1d4ed8;padding-top:10px;animation:fgr-tombe .35s}

/* ---- Le CV à l'aveugle ---- */
.fgr-cv{background:#fff;border:1px solid #cbd5e1;border-radius:6px;box-shadow:0 10px 24px rgba(15,23,42,.15);padding:12px;transform:rotate(-.4deg)}
.fgr-cv-tete{display:flex;justify-content:space-between;font-weight:900;letter-spacing:.08em;color:#1e3a8a;border-bottom:2px solid #1e3a8a;padding-bottom:6px;margin-bottom:6px;flex-wrap:wrap;gap:4px}
.fgr-cv-tete span{font-weight:600;letter-spacing:0;color:#64748b;font-size:12px}
.fgr-cv-ligne{font:inherit;position:relative;display:flex;flex-wrap:wrap;gap:8px;align-items:center;width:100%;text-align:left;background:transparent;border:2px solid transparent;border-radius:8px;padding:7px 8px;cursor:pointer;color:#0f172a;font-size:14.5px}
.fgr-cv-ligne:hover{background:#f8fafc;border-color:#e2e8f0}
.fgr-cv-ico{font-size:18px}
.fgr-cv-t{flex:1 1 200px}
.fgr-cv-ligne.fgr-masque .fgr-cv-t{background:#0f172a;color:transparent;border-radius:3px;user-select:none}
.fgr-bande{font-size:11px;font-weight:800;color:#fff;background:#0f172a;border-radius:4px;padding:1px 6px}
.fgr-cv-ligne.bon{border-color:#86efac}
.fgr-cv-ligne.faux{border-color:#f59e0b;background:#fffbeb}
.fgr-cv-ligne em{flex-basis:100%;font-style:normal;font-size:13px;color:#92400e}
.fgr-valider{align-self:center}

/* ---- Les dossiers à trois choix ---- */
.fgr-ctx{display:flex;gap:10px;align-items:flex-start;background:#f8fafc;border-radius:12px;padding:10px;border:1px solid #e2e8f0}
.fgr-ctx p{margin:0;font-size:15px;line-height:1.45}
.fgr-doc-annonce{background:#fff;border:2px solid #1e3a8a;border-radius:8px;padding:10px 14px;font-family:Georgia,serif}
.fgr-doc-annonce p{margin:4px 0}
.fgr-doc-titre{font-weight:800;color:#1e3a8a}
.fgr-options{display:flex;flex-direction:column;gap:8px}
.fgr-opt{text-align:left}
.fgr .fgr-opt.on{border-color:#0d9488;background:#f0fdfa}
.fgr-lignes{flex-direction:row;flex-wrap:wrap}

/* ---- Le tampon ---- */
.fgr-postit{position:relative;background:#fef9c3;border-radius:4px;padding:12px 14px;box-shadow:0 8px 16px rgba(0,0,0,.15);transform:rotate(.6deg);max-width:620px;align-self:center;width:100%}
.fgr-postit p{margin:8px 0 0;font-size:15.5px;line-height:1.45}
.fgr-postit-de{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:13px}
.fgr-postit-de span:last-child{color:#78716c}
.fgr-marque{position:absolute;right:10px;bottom:8px;transform:rotate(-12deg);border:3px solid currentColor;border-radius:6px;padding:2px 8px;font-weight:900;font-size:14px;letter-spacing:.05em;opacity:.85;animation:fgr-tamponne .3s ease-out;background:rgba(255,255,255,.6)}
@keyframes fgr-tamponne{from{transform:rotate(-12deg) scale(2);opacity:0}to{transform:rotate(-12deg) scale(1);opacity:.85}}
.fgr-tamponne.fgr-t-deonto .fgr-marque{color:#1d4ed8}
.fgr-tamponne.fgr-t-ethique .fgr-marque{color:#15803d}
.fgr-tamponne.fgr-t-abus .fgr-marque{color:#b91c1c}
.fgr-tamponne{padding-bottom:44px}
.fgr-tampons{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.fgr-tampon{font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border:3px solid #cbd5e1;border-radius:12px;padding:10px 6px;cursor:pointer;color:#0f172a;text-align:center;box-shadow:0 4px 0 #94a3b8;touch-action:manipulation}
.fgr-tampon:active{transform:translateY(3px);box-shadow:0 1px 0 #94a3b8}
.fgr-tampon span{font-size:22px}
.fgr-tampon b{font-size:14px}
.fgr-tampon i{font-style:normal;font-size:12px;color:#64748b}
.fgr-tampon.fgr-t-deonto{border-color:#93c5fd}
.fgr-tampon.fgr-t-ethique{border-color:#86efac}
.fgr-tampon.fgr-t-abus{border-color:#fca5a5}
.fgr-tampon.bon{background:#dcfce7;border-color:#16a34a}
.fgr-tampon.faux{background:#fef3c7;border-color:#f59e0b}
.fgr-tampon:disabled{cursor:default}
.fgr-sous .fgr-tampon{padding:8px 6px}

/* ---- L'entretien à l'aveugle ---- */
.fgr-rideau{display:flex;flex-direction:column;align-items:center;gap:2px;background:repeating-linear-gradient(90deg,#7f1d1d 0 14px,#991b1b 14px 28px);color:#fff;border-radius:12px;padding:16px;text-align:center;box-shadow:inset 0 -10px 20px rgba(0,0,0,.3)}
.fgr-rideau span{font-size:34px}
.fgr-rideau i{font-style:normal;opacity:.85;font-size:13px}
.fgr-situation{margin:0;font-weight:700;color:#1e3a8a}
.fgr-critere{background:#f8fafc;border:2px solid #e2e8f0;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:6px;animation:fgr-tombe .35s}
.fgr-critere.bon{border-color:#86efac}
.fgr-critere.moyen{border-color:#fde68a}
.fgr-critere.faux{border-color:#f59e0b}
.fgr-critere-t{display:flex;gap:8px;flex-wrap:wrap;align-items:baseline}
.fgr-critere-t span{font-size:13px;color:#64748b}
.fgr-critere em{font-style:normal;font-size:13px;color:#334155}
.fgr-reponse{margin:0;background:#fff;border-left:4px solid #0d9488;border-radius:8px;padding:8px 10px;font-style:italic;font-size:15px}
.fgr-etoiles{display:flex;gap:6px}
.fgr-etoile{font:inherit;font-weight:800;font-size:15px;flex:1;max-width:110px;background:#fff;border:2px solid #cbd5e1;border-radius:10px;padding:8px 4px;cursor:pointer;color:#0f172a;touch-action:manipulation}
.fgr-etoile.on{background:#fde68a;border-color:#d97706}
.fgr-etoile:disabled{cursor:default}
.fgr-revele{display:flex;gap:12px;align-items:center;background:#fff7ed;border:2px solid #fdba74;border-radius:14px;padding:10px;animation:fgr-leve .7s ease-out}
@keyframes fgr-leve{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0)}}
.fgr-revele div{display:flex;flex-direction:column;gap:2px}
.fgr-revele span{font-size:13.5px;color:#475569}
.fgr-revele-photo{width:70px;height:70px;font-size:40px;flex:0 0 70px}
.fgr-table{width:100%;border-collapse:collapse;font-size:14px;background:#fff}
.fgr-table td,.fgr-table th{border-bottom:1px solid #e2e8f0;padding:6px 8px;text-align:left}
.fgr-table th{background:#e0f2fe;font-size:13px}
.fgr-tr-fort td{font-weight:800;background:#f0fdfa}
.fgr-double td:nth-child(n+2){text-align:center}
.fgr-double td:nth-child(3){background:#f0fdf4;font-weight:700}
.fgr-ecart{background:#fee2e2;border-radius:10px;padding:8px 12px;font-size:15px;text-align:center}

/* ---- Les fiches de paie ---- */
.fgr-fiches{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
.fgr-fiche{background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:10px;box-shadow:0 6px 14px rgba(15,23,42,.12)}
.fgr-fiche-tete{display:flex;flex-direction:column;border-bottom:2px solid #0f766e;padding-bottom:4px;margin-bottom:6px}
.fgr-fiche-tete b{font-size:12.5px;letter-spacing:.05em;color:#0f766e}
.fgr-fiche-tete span{font-size:11.5px;color:#64748b}
.fgr-fiche-qui{display:flex;gap:8px;align-items:center;margin-bottom:4px}
.fgr-carte{background:#fff;border:2px solid #1e3a8a;border-radius:12px;padding:10px 12px;font-size:15.5px;box-shadow:0 6px 14px rgba(0,0,0,.08)}
.fgr-carte p{margin:0}
.fgr-dest{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.fgr-dest-b{font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border:3px solid #cbd5e1;border-radius:12px;padding:10px;cursor:pointer;color:#0f172a}
.fgr-dest-b span{font-size:22px}
.fgr-dest-b.bon{background:#dcfce7;border-color:#16a34a}
.fgr-dest-b.faux{background:#fef3c7;border-color:#f59e0b}

/* ---- Le vote ---- */
.fgr-urne{text-align:center;font-size:15px;background:#0f172a;color:#e2e8f0;border-radius:12px;padding:10px}
.fgr-urne b{font-size:28px;color:#5eead4;font-variant-numeric:tabular-nums}
.fgr-barre{display:grid;grid-template-columns:1fr;gap:3px;background:#f8fafc;border-radius:10px;padding:8px;border:2px solid #e2e8f0}
.fgr-barre span{font-size:13.5px;font-weight:700}
.fgr-barre-fond{height:16px;background:#e2e8f0;border-radius:8px;overflow:hidden}
.fgr-barre-fond i{display:block;height:100%;background:linear-gradient(90deg,#0d9488,#3b82f6);transition:width .25s}
.fgr-barre b{font-size:13px;text-align:right;font-variant-numeric:tabular-nums}
.fgr-gagne{border-color:#16a34a;background:#f0fdf4}

/* ---- Calcul, aide, QCM, carnet ---- */
.fgr-calcul{display:flex;flex-direction:column;gap:8px}
.fgr-rappel{margin:0;background:#eff6ff;border:2px solid #bfdbfe;border-radius:10px;padding:10px 12px;font-size:14.5px;line-height:1.45}
.fgr-formule{margin:0;font-size:14.5px}
.fgr-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.fgr-saisie input{font:inherit;font-size:18px;font-weight:700;width:150px;padding:8px 10px;border:2px solid #94a3b8;border-radius:10px}
.fgr-saisie span{font-weight:800}
.fgr-aide{border:2px dashed #93c5fd;border-radius:12px;background:#f8fafc}
.fgr-aide-bouton{font:inherit;width:100%;display:flex;justify-content:space-between;gap:8px;background:transparent;border:0;padding:8px 12px;cursor:pointer;font-weight:800;color:#1e3a8a;flex-wrap:wrap}
.fgr-aide-bouton span{font-weight:600;font-size:12.5px;color:#64748b}
.fgr-aide-corps{padding:0 12px 10px}
.fgr-aide-corps p{margin:4px 0}
.fgr-aide-formule{font-weight:700}
.fgr-hypo{display:flex;flex-direction:column;gap:10px;text-align:left}
.fgr-hypo-tete{display:flex;justify-content:space-between;gap:8px;background:#fef9c3;border-radius:8px;padding:6px 10px;flex-wrap:wrap}
.fgr-hypo-tete span{font-size:12.5px;font-weight:700;color:#a16207}
.fgr-hypo-l{display:flex;flex-direction:column;gap:8px}
.fgr-hypo-o{font:inherit;text-align:left;background:#fff;border:2px solid #e2e8f0;border-radius:12px;padding:10px 12px;cursor:pointer;color:#0f172a;font-size:15px}
.fgr-hypo-o.bon{background:#dcfce7;border-color:#16a34a}
.fgr-hypo-o.faux{background:#fef3c7;border-color:#f59e0b}
.fgr-hypo-doc{display:flex;flex-direction:column;gap:3px;background:#fefce8;border-left:4px solid #eab308;border-radius:8px;padding:8px 10px;margin:6px 0;text-align:left}
.fgr-hypo-doc span{font-size:13.5px}
.fgr-hypo-doc em{font-size:12.5px;color:#a16207;font-style:normal}

/* ---- Découvertes ---- */
.fgr-piles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.fgr-pile{display:flex;flex-direction:column;gap:4px;min-height:140px;background:#f0fdf4;border:3px solid #86efac;border-radius:12px;padding:8px}
.fgr-pile.fgr-pile-non{background:#fef2f2;border-color:#fca5a5}
.fgr-cv-mini{background:#fff;border-radius:6px;padding:3px 6px;font-size:13px;box-shadow:0 2px 4px rgba(0,0,0,.08);animation:fgr-tombe .35s}
.fgr-cv-vole{align-self:center;background:#fff;border:2px solid #1e3a8a;border-radius:8px;padding:8px 14px;font-weight:800;animation:fgr-vole .8s ease-in-out}
@keyframes fgr-vole{0%{transform:scale(.6);opacity:0}40%{transform:scale(1.05);opacity:1}100%{transform:translateY(20px);opacity:.3}}
.fgr-loupe-grille{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}
.fgr-loupe-col{display:flex;flex-direction:column;gap:6px;background:#f0fdf4;border:2px solid #86efac;border-radius:12px;padding:8px}
.fgr-loupe-col.fgr-pile-non{background:#fef2f2;border-color:#fca5a5}
.fgr-cv-carte{font:inherit;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:8px;padding:8px;cursor:pointer;color:#0f172a;font-size:13.5px}
.fgr-cv-carte.vu{cursor:default;border-color:#94a3b8}
.fgr-cv-carte i{display:block;font-style:normal;color:#0f766e;margin-top:2px}
.fgr-suite{display:flex;flex-direction:column;gap:6px}

/* ---- Tableau de bord, trombinoscope, documents ---- */
.fgr-bord{display:flex;flex-direction:column;gap:8px;text-align:left;background:#f8fafc;border-radius:14px;padding:10px;margin:8px 0;border:2px solid #e2e8f0;color:#0f172a}
.fgr-bord-t{font-weight:900}
.fgr-jauges{display:grid;gap:6px}
.fgr-jauge{display:grid;grid-template-columns:120px 1fr 34px;gap:6px;align-items:center;font-size:13.5px}
.fgr-jauge em{grid-column:1/-1;font-style:normal;font-size:11.5px;color:#64748b;margin-top:-4px}
.fgr-jauge-barre{height:12px;background:#e2e8f0;border-radius:6px;overflow:hidden}
.fgr-jauge-barre i{display:block;height:100%;background:#64748b;transition:width .6s}
.fgr-jauge.haut .fgr-jauge-barre i{background:#16a34a}
.fgr-jauge.bas .fgr-jauge-barre i{background:#dc2626}
.fgr-jauge b{text-align:right;font-variant-numeric:tabular-nums}
.fgr-trombi{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:6px}
.fgr-trombi-p{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border-radius:10px;padding:6px 4px;font-size:12px;text-align:center}
.fgr-humeur{position:absolute;top:2px;right:6px;font-size:18px}
.fgr-souvenirs{margin:0;padding-left:18px;font-size:13.5px;display:flex;flex-direction:column;gap:4px}
.fgr-badge{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 10px 24px rgba(0,0,0,.2);max-width:380px;margin:0 auto 12px;color:#0f172a;text-align:left}
.fgr-badge-haut{background:linear-gradient(135deg,#0d9488,#1e3a8a);color:#fff;padding:10px 14px;display:flex;flex-direction:column}
.fgr-badge-haut b{letter-spacing:.2em}
.fgr-badge-haut span{font-size:12px;opacity:.9}
.fgr-badge-corps{display:flex;gap:12px;padding:12px 14px;align-items:center}
.fgr-badge-corps>div{display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.fgr-badge-corps b{font-size:18px}
.fgr-badge-photo{width:76px;height:76px;font-size:44px;flex:0 0 76px}
.fgr-badge-mission{font-weight:800;color:#0f766e}
.fgr-doc{background:#fff;border-radius:10px;padding:12px;color:#0f172a;text-align:left;box-shadow:0 6px 16px rgba(0,0,0,.1)}
.fgr-doc-tete{display:flex;justify-content:space-between;gap:8px;border-bottom:2px solid #0f766e;padding-bottom:6px;margin-bottom:8px;flex-wrap:wrap}
.fgr-doc-tete span{font-size:12px;color:#64748b}
.fgr-charte ol{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px}
.fgr-charte li{display:flex;flex-direction:column;gap:2px;font-size:14px}
.fgr-charte li span{font-size:13px;color:#334155}
.fgr-charte li em{font-style:normal;font-size:12.5px;font-weight:700}
.fgr-tenu em{color:#15803d}
.fgr-a-tenir em{color:#b45309}
.fgr-bravo-score{display:flex;flex-direction:column;align-items:center;margin:6px 0}
.fgr-bravo-score b{font-size:42px;color:#0f766e}
.fgr-fin-profil{background:#f0fdfa;border-radius:12px;padding:10px 12px;margin:8px 0;text-align:left}
.fgr-fin-profil p{margin:4px 0}
.fgr-rejouer{display:flex;gap:6px;flex-wrap:wrap;align-items:center;justify-content:center;margin:8px 0;font-size:13.5px}
.fgr-maq{text-align:left}

@media (max-width:560px){
  .fgr-jauge{grid-template-columns:96px 1fr 30px}
  .fgr-corbeille{grid-template-columns:1fr 1fr}
  .fgr-piles{grid-template-columns:1fr 1fr}
  .fgr-hud-jauges{font-size:11.5px;gap:4px;padding:3px 5px}
  .fgr-table{font-size:12.5px}
  .fgr-table td,.fgr-table th{padding:5px 4px}
}
/* ==== fgr : fin des styles ==== */
/* ==== klg : debut des styles ====
   « Mèt an Une ! » — préfixe klg-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.klg). Couleurs : le clignotant
   orange de l'auto-école, le noir d'encre et le papier du magazine. */
.klg .pdl-cta{background:linear-gradient(135deg,#f97316,#c2410c);box-shadow:0 6px 18px rgba(194,65,12,.3)}
.klg .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(194,65,12,.4)}
.klg .pdl-cta.alt{background:#fff;color:#1c1917;border:2px solid #f97316;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.klg .pdl-decor{background:linear-gradient(135deg,#0f172a,#1e3a8a 60%,#c2410c)}
.klg-panneau{color:#1c1917}
.klg .klg-panneau-large{max-width:1040px;width:100%}
.klg-photo-ico{display:inline-grid;place-items:center;font-size:30px;background:#ffedd5;border-radius:50%}
.klg .pdl-bulle-photo.klg-photo-ico{width:64px;height:64px;flex:0 0 64px}
.klg-hud-photo{width:36px;height:36px;font-size:20px;border:2px solid #f97316}
.klg-perso-img{display:grid;place-items:center;width:100%;aspect-ratio:3/3.4;font-size:64px;background:linear-gradient(160deg,#ffedd5,#fed7aa)}
.klg-mini{width:44px;height:44px;flex:0 0 44px;font-size:24px}
/* Les portraits en photo (img.klg-photo) ; l'émoji de repli garde les règles ci-dessus */
img.klg-photo{object-fit:cover;display:block}
.klg img.pdl-bulle-photo.klg-photo{width:64px;height:64px;flex:0 0 64px}
img.klg-mini.klg-photo,img.klg-hud-photo.klg-photo{border-radius:50%}
img.klg-perso-img.klg-photo{width:100%;aspect-ratio:3/3.4}
img.klg-presse-photo.klg-photo{width:84px;height:96px;flex:0 0 84px;border-radius:10px}
.klg-note{font-size:13.5px;color:#57534e;margin:8px 0}
.klg-ko{color:#c2410c;font-weight:700;margin:8px 0}
.klg-consigne{background:#fff7ed;border-left:5px solid #f97316;border-radius:10px;padding:10px 12px;margin:0 0 6px;font-size:15px;line-height:1.45}
.klg-petit{font:inherit;font-weight:700;font-size:13.5px;background:#f5f5f4;border:2px solid #d6d3d1;border-radius:10px;padding:7px 10px;cursor:pointer;color:#1c1917}
.klg-petit:hover{border-color:#f97316;background:#fff7ed}
.klg .klg-hud-prog{gap:4px}
.klg .klg-hud-prog em{font-style:normal;font-size:14px;margin:0 2px 0 6px}
.klg .klg-hud-prog .klg-hud-conf{font-size:12.5px;font-weight:800;background:#fff7ed;color:#9a3412;border-radius:99px;padding:2px 8px;white-space:nowrap}
.klg-tm-notion{color:#ffedd5;font-weight:700;margin:6px 0 12px;font-size:15px}
.klg-fil{display:flex;gap:6px;justify-content:center;margin:0 0 10px;flex-wrap:wrap}
.klg-fil span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.35);font-size:15px;opacity:.7}
.klg-fil .klg-fil-fait{background:#bbf7d0;opacity:1}
.klg-fil .klg-fil-ici{background:#fff;opacity:1;box-shadow:0 0 0 3px #f97316}

/* ---- L'accueil : deux portes ---- */
.klg-portes{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:14px 0}
.klg-porte{font:inherit;text-align:left;display:flex;flex-direction:column;gap:4px;background:#fff;color:#1c1917;border:3px solid #f97316;border-radius:16px;padding:14px;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.2);transition:transform .15s}
.klg-porte:hover{transform:translateY(-3px)}
.klg-porte b{font-size:19px}
.klg-porte span{font-weight:800;font-size:13px;color:#c2410c}
.klg-porte i{font-style:normal;font-size:13.5px;color:#57534e}
.klg-porte-2{border-color:#1e3a8a}
.klg-porte-2 span{color:#1e3a8a}

/* ---- La confiance des lecteurs ---- */
.klg-conf{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;background:#fff;border-radius:12px;padding:8px 10px;border:2px solid #fed7aa;margin:6px 0;color:#1c1917}
.klg-conf span{font-size:13px;font-weight:700}
.klg-conf-barre{height:14px;background:#f5f5f4;border-radius:99px;overflow:hidden}
.klg-conf-barre i{display:block;height:100%;background:linear-gradient(90deg,#fb923c,#16a34a);transition:width .6s}
.klg-conf b{font-variant-numeric:tabular-nums}

/* ---- LA PAGE DU MAGAZINE ---- */
.klg-page{background:#fffdf8;color:#111827;border-radius:6px;box-shadow:0 10px 30px rgba(0,0,0,.25);padding:14px 16px;text-align:left;font-family:Georgia,"Times New Roman",serif;max-width:560px;margin:0 auto;display:flex;flex-direction:column;gap:8px;position:relative}
.klg-page-petit{max-width:420px;font-size:13px;padding:10px 12px;gap:6px}
.klg-page-tete{display:flex;justify-content:space-between;align-items:baseline;gap:8px;border-bottom:4px solid #111827;padding-bottom:4px;flex-wrap:wrap}
.klg-page-tete b{font-family:system-ui,sans-serif;font-weight:900;letter-spacing:2px;font-size:20px;color:#ea580c}
.klg-page-tete span{font-family:system-ui,sans-serif;font-size:11.5px;color:#57534e}
.klg-page-rub{margin:4px 0 2px;font-size:22px;line-height:1.15}
.klg-page-vide{color:#a8a29e;font-style:italic;text-align:center;margin:18px 0}
.klg-page-pied{border-top:1px solid #d6d3d1;padding-top:4px;font-family:system-ui,sans-serif;font-size:10.5px;color:#78716c}
.klg-page-une{background:linear-gradient(180deg,#fffdf8,#fff7ed)}
.klg-une-photo{font-size:54px;text-align:center;background:linear-gradient(135deg,#1e3a8a,#f97316);border-radius:8px;padding:12px 0;letter-spacing:6px}
.klg-une-sommaire{display:flex;flex-direction:column;gap:2px;font-family:system-ui,sans-serif;font-size:12.5px;background:#111827;color:#fff;border-radius:8px;padding:8px 10px}
.klg-une-sommaire b{color:#fb923c}
.klg-b-chiffre{display:flex;flex-direction:column;border-left:6px solid #f97316;background:#fff7ed;border-radius:6px;padding:6px 10px;position:relative;animation:klg-pop .35s}
.klg-b-chiffre b{font-family:system-ui,sans-serif;font-size:28px;font-weight:900;line-height:1.1;color:#9a3412}
.klg-b-chiffre span{font-size:14px}
.klg-b-chiffre s,.klg-b-post s,.klg-b-une s{color:#dc2626;text-decoration-thickness:3px;font-size:.75em}
.klg-erratum{position:absolute;right:6px;top:-8px;transform:rotate(6deg);background:#dc2626;color:#fff;font-family:system-ui,sans-serif;font-style:normal;font-weight:900;font-size:11px;letter-spacing:1px;padding:2px 7px;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.3)}
.klg-b-err{outline:2px dashed #fca5a5}
.klg-b-fiche{font-family:system-ui,sans-serif;font-size:13px;background:#f1f5f9;border-radius:6px;padding:5px 8px;animation:klg-pop .35s}
.klg-b-mots{margin:0;font-size:16px;font-style:italic;border-left:4px solid #1e3a8a;padding:4px 10px;animation:klg-pop .35s}
.klg-b-mots cite{display:block;font-style:normal;font-size:12px;color:#57534e;margin-top:2px}
.klg-b-avis{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;padding:6px 10px;animation:klg-pop .35s}
.klg-b-avis p{margin:2px 0}
.klg-b-avis i{font-size:12px;color:#57534e}
.klg-b-rep{font-family:system-ui,sans-serif;font-size:12.5px;color:#1e3a8a;background:#eff6ff;border-radius:6px;padding:4px 6px}
.klg-etoiles{color:#f59e0b;letter-spacing:1px;font-family:system-ui,sans-serif}
.klg-b-post{display:flex;flex-direction:column;gap:2px;font-family:system-ui,sans-serif;font-size:13.5px;background:#eef2ff;border-radius:6px;padding:6px 10px;position:relative}
.klg-b-une{display:flex;flex-direction:column;gap:2px;text-align:center;position:relative;padding:4px 0}
.klg-b-une b{font-size:26px;line-height:1.15;font-weight:900}
.klg-b-projets{font-family:system-ui,sans-serif;font-size:13px;background:#f0fdf4;border-radius:6px;padding:6px 10px}
.klg-b-projets ul{margin:4px 0 0;padding-left:18px}
@keyframes klg-pop{from{transform:scale(.96);opacity:.3}to{transform:none;opacity:1}}

/* ---- LA TABLE DE MONTAGE ---- */
.klg-montage,.klg-trier,.klg-impression,.klg-suites,.klg-avis,.klg-budget,.klg-multi,.klg-choix,.klg-d1,.klg-d2,.klg-d3{display:flex;flex-direction:column;gap:10px;text-align:left}
.klg-table{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;background:repeating-linear-gradient(0deg,#e7e5e4 0 1px,#f5f5f4 1px 24px);border:2px solid #a8a29e;border-radius:14px;padding:10px}
.klg-marbre{display:flex;flex-direction:column;gap:8px}
.klg-marbre-t{font-weight:800;font-size:13.5px;color:#44403c}
.klg-copie{font:inherit;text-align:left;background:#fff;border:2px solid #d6d3d1;border-radius:10px;padding:9px 10px;cursor:pointer;color:#1c1917;font-size:14px;line-height:1.35;box-shadow:0 2px 0 #d6d3d1;transition:transform .12s}
.klg-copie:hover{transform:translateY(-2px);border-color:#f97316}
.klg-copie.on{border-color:#f97316;background:#fff7ed;box-shadow:0 0 0 3px #fed7aa;transform:rotate(-1deg)}
.klg-zones{display:flex;flex-direction:column;gap:8px}
.klg-zone{font:inherit;display:flex;flex-direction:column;gap:3px;text-align:left;border:2px dashed #94a3b8;border-radius:12px;padding:10px;background:rgba(255,255,255,.85);cursor:pointer;color:#1c1917;min-height:70px}
.klg-zone:disabled{cursor:default}
.klg-zone:not(:disabled):hover{border-style:solid}
.klg-zone-t{font-weight:800;font-size:14.5px}
.klg-zone i{font-style:normal;font-size:12px;color:#57534e}
.klg-zone-c{font-size:12px;background:#f1f5f9;border-radius:6px;padding:3px 6px}
.klg-zone-chiffre{border-color:#f97316}
.klg-zone-mots{border-color:#1e3a8a}
.klg-zone-pique{border-color:#78716c;background:rgba(245,245,244,.9)}
.klg-zone-pique .klg-zone-c{text-decoration:line-through;color:#78716c}
.klg-apercu{background:#e7e5e4;border-radius:14px;padding:10px}
.klg-apercu-t{font-weight:800;font-size:13px;margin-bottom:6px;color:#44403c}

/* ---- Trier, cocher, choisir ---- */
.klg-carte{background:#fff;border:2px solid #fed7aa;border-radius:14px;padding:14px;font-size:17px;font-weight:700;box-shadow:0 6px 14px rgba(0,0,0,.08);animation:klg-pop .3s}
.klg-carte p{margin:0}
.klg-dest{display:grid;gap:8px;grid-template-columns:repeat(3,minmax(0,1fr))}
.klg-dest-b{font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px 6px;cursor:pointer;color:#1c1917;text-align:center}
.klg-dest-b span{font-size:22px}
.klg-dest-b b{font-size:14px;line-height:1.2}
.klg-dest-b i{font-style:normal;font-size:12px;color:#78716c}
.klg-dest-b:hover:not(:disabled){border-color:#f97316}
.klg-dest-b.bon{border-color:#16a34a;background:#dcfce7}
.klg-dest-b.faux{border-color:#dc2626;background:#fee2e2}
.klg-multi-l,.klg-choix-l,.klg-avis-l,.klg-projets{display:flex;flex-direction:column;gap:8px}
.klg-coche{font:inherit;display:grid;grid-template-columns:auto 1fr;gap:2px 10px;align-items:center;text-align:left;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px;cursor:pointer;color:#1c1917}
.klg-coche span{grid-row:span 2;font-size:20px}
.klg-coche i{font-style:normal;font-size:13px;color:#44403c}
.klg-coche.on{border-color:#f97316;background:#fff7ed}
.klg-coche.bon{border-color:#16a34a}
.klg-coche.faux{border-color:#dc2626;background:#fef2f2}
.klg-choix-o{font:inherit;text-align:left;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:11px 12px;cursor:pointer;color:#1c1917;font-weight:700;line-height:1.35}
.klg-choix-o:hover:not(:disabled){border-color:#f97316}
.klg-choix-o.bon{border-color:#16a34a;background:#dcfce7}
.klg-choix-o.faux{border-color:#dc2626;background:#fee2e2}
.klg-valider{align-self:center}
.klg-avis-c{font:inherit;display:flex;flex-direction:column;gap:2px;text-align:left;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:9px 11px;cursor:pointer;color:#1c1917}
.klg-avis-c b{font-weight:600;font-size:14.5px}
.klg-avis-c i{font-size:12.5px;color:#57534e}
.klg-avis-c em{font-style:normal;font-size:12.5px;color:#1e3a8a;background:#eff6ff;border-radius:6px;padding:3px 6px}
.klg-avis-c.on{border-color:#f97316;background:#fff7ed;box-shadow:0 0 0 3px #fed7aa}
.klg-avis-c:disabled{opacity:.5;cursor:default}
.klg-projet{font:inherit;display:grid;grid-template-columns:auto 1fr;gap:2px 10px;align-items:center;text-align:left;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px;cursor:pointer;color:#1c1917}
.klg-projet span{grid-row:span 3;font-size:26px}
.klg-projet i{font-style:normal;font-size:13px;color:#44403c}
.klg-projet em{font-style:normal;font-size:12.5px;font-weight:700;color:#b91c1c}
.klg-projet.on{border-color:#16a34a;background:#f0fdf4}
.klg-projet:disabled{opacity:.55;cursor:default}
.klg-caisse{font-size:15px;background:#111827;color:#fed7aa;border-radius:10px;padding:8px 12px;align-self:flex-start}

/* ---- Calcul, aide ---- */
.klg-calcul{display:flex;flex-direction:column;gap:4px;text-align:left}
.klg-rappel{background:#f5f5f4;border-radius:10px;padding:8px 12px;font-size:14.5px;line-height:1.45;margin:6px 0}
.klg-formule{background:#fff7ed;border-left:4px solid #f97316;border-radius:8px;padding:8px 12px;margin:8px 0;font-size:14.5px;line-height:1.4}
.klg-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.klg-saisie input{font:inherit;font-size:18px;width:140px;padding:8px 10px;border:2px solid #a8a29e;border-radius:10px}
.klg-aide{border:2px dashed #f97316;border-radius:12px;margin:8px 0;background:#fffaf5;text-align:left}
.klg-aide-bouton{font:inherit;width:100%;display:flex;justify-content:space-between;gap:8px;align-items:center;background:none;border:0;padding:8px 12px;font-weight:800;cursor:pointer;color:#9a3412;text-align:left}
.klg-aide-bouton span{font-weight:600;font-size:12.5px;color:#c2410c}
.klg-aide-corps{padding:0 12px 10px;font-size:14.5px}
.klg-aide-corps p{margin:4px 0}
.klg-aide-formule{font-weight:700;color:#166534}

/* ---- Impression, courrier, suites ---- */
.klg-presse{background:linear-gradient(180deg,#3f3f46,#18181b);border-radius:14px;padding:14px;overflow:hidden}
.klg-presse.imprime .klg-page{animation:klg-sort .9s cubic-bezier(.2,.8,.2,1)}
@keyframes klg-sort{from{transform:translateY(-60%) scale(.9);opacity:0}to{transform:none;opacity:1}}
.klg-courrier{display:flex;flex-direction:column;gap:8px}
.klg-lecteurs{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.klg-lecteurs li{display:flex;gap:10px;align-items:center;background:#fff;border-radius:12px;padding:8px 10px;font-size:14.5px;line-height:1.4;animation:klg-pop .4s;color:#1c1917}
.klg-lecteurs li>span:nth-child(2){flex:1}
.klg-lecteurs em{font-style:normal;font-weight:900;font-size:13px;border-radius:6px;padding:2px 6px}
.klg-plus{background:#dcfce7;color:#166534}
.klg-moins{background:#fee2e2;color:#b91c1c}
.klg-egal{background:#f5f5f4;color:#57534e}
.klg-table-bord{width:100%;border-collapse:collapse;font-size:14px;background:#fff;border-radius:10px;overflow:hidden}
.klg-table-bord th,.klg-table-bord td{border-bottom:1px solid #e7e5e4;padding:6px 8px;text-align:left}
.klg-table-bord th{background:#111827;color:#fff;font-size:13px}
.klg-tr-mieux td:last-child{color:#166534;background:#f0fdf4}
.klg-tr-pire td:last-child{color:#b91c1c;background:#fef2f2}
.klg-inscrits{background:#111827;color:#fed7aa;border-radius:12px;padding:10px 12px;font-size:15px}

/* ---- Découvertes ---- */
.klg-idees{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}
.klg-idee{font:inherit;text-align:left;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px;cursor:pointer;color:#1c1917;font-weight:700}
.klg-idee.fait{border-color:#16a34a;background:#f0fdf4}
.klg-forfaits{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.klg-forfait{display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px;color:#1c1917}
.klg-forfait span{font-size:26px;font-weight:900}
.klg-forfait i{font-style:normal;font-size:12.5px;color:#57534e}
.klg-forfait-k{border-color:#f97316;background:#fff7ed}
.klg-bilan3{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.klg-bilan3>div{display:flex;flex-direction:column;align-items:center;background:#fff;border-radius:12px;padding:10px;color:#1c1917}
.klg-bilan3 b{font-size:24px}
.klg-bilan3 span{font-size:13px;color:#57534e;text-align:center}
.klg-hypo{display:flex;flex-direction:column;gap:10px;text-align:left}
.klg-hypo-tete{display:flex;justify-content:space-between;gap:8px;background:#111827;color:#fed7aa;border-radius:10px;padding:8px 12px;flex-wrap:wrap}
.klg-hypo-tete span{font-size:12.5px;color:#d6d3d1}
.klg-hypo-l{display:flex;flex-direction:column;gap:8px}
.klg-hypo-o{font:inherit;text-align:left;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px 12px;cursor:pointer;color:#1c1917;font-weight:600;line-height:1.35}
.klg-hypo-o.bon{border-color:#16a34a;background:#dcfce7}
.klg-hypo-o.faux{border-color:#dc2626;background:#fee2e2}
.klg-hypo-doc{display:flex;flex-direction:column;gap:3px;background:#fff7ed;border-left:5px solid #f97316;border-radius:10px;padding:8px 12px;margin:6px 0;text-align:left;color:#1c1917}
.klg-hypo-doc span{font-size:14px}
.klg-hypo-doc em{font-size:13px;color:#57534e}

/* ---- Documents, fins ---- */
.klg-presse-carte{background:#fff;border-radius:16px;overflow:hidden;border:3px solid #111827;max-width:420px;margin:0 auto 12px;color:#1c1917;text-align:left}
.klg-presse-haut{background:linear-gradient(90deg,#f97316,#c2410c,#1e3a8a);color:#fff;padding:8px 12px;display:flex;flex-direction:column}
.klg-presse-haut b{font-size:20px;letter-spacing:3px}
.klg-presse-haut span{font-size:11.5px;font-weight:700}
.klg-presse-corps{display:flex;gap:12px;padding:12px;align-items:center}
.klg-presse-corps>div{display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.klg-presse-corps b{font-size:18px}
.klg-presse-photo{display:grid;place-items:center;width:84px;height:96px;flex:0 0 84px;border-radius:10px;font-size:44px;background:#ffedd5}
.klg-presse-mission{font-weight:700;color:#c2410c}
.klg-doc{background:#fff;border-radius:12px;padding:12px;color:#1c1917;text-align:left}
.klg-doc-tete{display:flex;flex-direction:column;border-bottom:2px solid #111827;margin-bottom:8px;padding-bottom:4px}
.klg-doc-tete span{font-size:12.5px;color:#78716c}
.klg-mag{display:flex;flex-direction:column;gap:16px}
.klg-bravo-score{display:flex;flex-direction:column;align-items:center;margin:6px 0}
.klg-bravo-score b{font-size:38px}
.klg-fin-profil{background:#fff;color:#1c1917;border-radius:14px;padding:12px;margin:10px 0;text-align:left}
.klg-fin-profil b{font-size:18px}
.klg-fin-mag{max-height:520px;overflow:auto;border-radius:12px;padding:6px;background:rgba(255,255,255,.12)}
.klg-rejouer{display:flex;gap:6px;flex-wrap:wrap;align-items:center;justify-content:center;margin:8px 0}
.klg-maq input{width:100%}

/* ---- Téléphone ---- */
@media (max-width:640px){
  .klg-table{grid-template-columns:1fr}
  .klg-dest{grid-template-columns:1fr}
  .klg-dest-b{flex-direction:row;justify-content:flex-start;gap:8px;text-align:left}
  .klg-page{padding:10px 10px}
  .klg-page-tete b{font-size:16px}
  .klg-b-chiffre b{font-size:23px}
  .klg-b-une b{font-size:21px}
  .klg-conf{grid-template-columns:1fr auto}
  .klg-conf-barre{grid-column:1/-1;grid-row:2}
  .klg-forfaits,.klg-bilan3{grid-template-columns:1fr}
}
/* ==== klg : fin des styles ==== */
/* ==== zfd : debut des styles ====
   « Zanfan demin » — préfixe zfd-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.zfd). Couleurs : le turquoise
   du lagon, le vert de la forêt, le corail du récif. */
.zfd .pdl-cta{background:linear-gradient(135deg,#0d9488,#15803d);box-shadow:0 6px 18px rgba(13,148,136,.3)}
.zfd .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(13,148,136,.4)}
.zfd .pdl-cta.alt{background:#fff;color:#134e4a;border:2px solid #0d9488;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.zfd .pdl-decor{background:linear-gradient(135deg,#0c4a6e,#0f172a 60%,#15803d)}
.zfd-panneau{color:#1c1917}
.zfd .zfd-panneau-large{max-width:1000px;width:100%}
.zfd-panneau,.zfd-panneau *{min-width:0;overflow-wrap:anywhere}
.zfd-photo-ico{display:inline-grid;place-items:center;font-size:30px;background:#ccfbf1;border-radius:50%}
.zfd .pdl-bulle-photo.zfd-photo-ico{width:64px;height:64px;flex:0 0 64px}
.zfd .pdl-hud-moi .zfd-photo-ico{width:36px;height:36px;font-size:20px;border:2px solid #facc15}
.zfd-perso-img{width:100%;aspect-ratio:3/3.4;object-fit:cover;object-position:top;display:block}
.zfd-perso-img.zfd-photo-ico{display:grid;font-size:64px;border-radius:0}
.zfd-enfant{margin-top:10px}
.zfd-mini{width:44px;height:44px;border-radius:50%;object-fit:cover;object-position:top;flex:0 0 44px}
.zfd-mini.zfd-photo-ico{font-size:24px}
.zfd-note{font-size:13.5px;color:#57534e;margin:8px 0}
.zfd-ko{color:#b91c1c;font-weight:700;margin:6px 0}
.zfd-vert{color:#15803d;font-weight:700}
.zfd-grand{font-size:17px;line-height:1.45}
.zfd-consigne{background:#f0fdfa;border-left:5px solid #0d9488;border-radius:10px;padding:10px 12px;margin:0 0 10px;font-size:15px;line-height:1.45;text-align:left}
.zfd-rappel{background:#f5f5f4;border-radius:10px;padding:8px 12px;font-size:14.5px;line-height:1.5;margin:6px 0;text-align:left}
.zfd-formule{background:#fefce8;border-left:4px solid #eab308;border-radius:8px;padding:8px 12px;margin:8px 0;font-size:14.5px;line-height:1.4;text-align:left;font-weight:700}
.zfd-petit{font:inherit;font-weight:700;font-size:13.5px;background:#f5f5f4;border:2px solid #d6d3d1;border-radius:10px;padding:7px 10px;cursor:pointer;color:#1c1917;touch-action:manipulation}
.zfd-petit:hover:not(:disabled){border-color:#0d9488;background:#f0fdfa}
.zfd-petit.bon{border-color:#16a34a;background:#dcfce7}
.zfd-petit.faux{border-color:#dc2626;background:#fef2f2;animation:zfd-non .35s}
.zfd .zfd-hud-prog{gap:4px}
.zfd .zfd-hud-prog span{min-width:34px}
.zfd-fil{display:flex;gap:6px;justify-content:center;margin:0 0 10px;flex-wrap:wrap}
.zfd-fil span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.35);font-size:15px;opacity:.7}
.zfd-fil .zfd-fil-fait{background:#99f6e4;opacity:1}
.zfd-fil .zfd-fil-ici{background:#fff;opacity:1;box-shadow:0 0 0 3px #0d9488}
.zfd-accueil-l{text-align:left;margin:8px 0 12px;padding-left:4px;list-style:none;display:grid;gap:5px;font-size:14.5px}
.zfd-tm-trad{font-style:italic;font-size:17px;margin:2px 0 8px;color:#fde68a}
.zfd-tm-notion{background:rgba(255,255,255,.15);border-radius:10px;padding:6px 12px;margin:8px auto;max-width:560px}
.zfd-ici{background:#ecfeff;border:2px dashed #06b6d4;border-radius:12px;padding:8px 12px;margin:10px 0;text-align:left}
.zfd-ici p{margin:4px 0}
.zfd-lecon li b,.zfd-why b{color:#0f766e}
.zfd-pourquoi-faux{opacity:.9}

/* --- le tableau de bord voilé --- */
.zfd-tableau{background:rgba(15,23,42,.82);color:#fff;border-radius:16px;padding:8px 10px;margin:0 auto 10px;max-width:1000px;width:100%;box-shadow:0 8px 20px rgba(0,0,0,.25)}
.zfd-tableau-titre{font-size:12.5px;font-weight:800;letter-spacing:.5px;opacity:.85;margin-bottom:6px;text-align:left}
.zfd-tableau-l{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.zfd-compteur{position:relative;background:#1e293b;border-radius:12px;padding:7px 9px;display:flex;flex-direction:column;gap:1px;text-align:left;overflow:hidden;border:2px solid #334155;transition:border-color .3s}
.zfd-compteur-nom{font-size:12px;color:#cbd5e1;font-weight:700}
.zfd-compteur b{font-size:18px;color:#fff;font-variant-numeric:tabular-nums}
.zfd-compteur small{font-size:11px;color:#94a3b8}
.zfd-compteur.ok{border-color:#16a34a}
.zfd-compteur.ko{border-color:#dc2626}
.zfd-compteur.voile b{filter:blur(6px);user-select:none}
.zfd-compteur.voile .zfd-compteur-nom{filter:blur(2.5px)}
.zfd-cadenas{font-style:normal;font-size:12px;color:#fbbf24;font-weight:800}
.zfd-fleche{font-style:normal;font-size:12.5px;font-weight:800}
.zfd-fleche.monte{color:#4ade80}
.zfd-fleche.baisse{color:#f87171}
.zfd-compteur:not(.voile){animation:zfd-devoile .9s ease-out}
.zfd-devoile{text-align:left}
.zfd-devoile-h{display:flex;gap:10px;align-items:flex-start}
.zfd-devoile-h p{margin:0;line-height:1.5}
.zfd-devoile-ok{animation:zfd-arrive .5s ease-out;margin-top:10px}

/* --- la carte des projets --- */
.zfd-carte-zone{text-align:left}
.zfd-carte{position:relative;border-radius:16px;overflow:hidden;margin:6px 0 10px;box-shadow:0 6px 16px rgba(0,0,0,.2)}
.zfd-carte-img{display:block;width:100%;height:auto}
.zfd-pin{position:absolute;transform:translate(-50%,-50%);width:42px;height:42px;border-radius:50%;border:3px solid #fff;background:rgba(15,23,42,.65);font-size:21px;cursor:pointer;display:grid;place-items:center;touch-action:manipulation;transition:transform .2s,background .2s;animation:zfd-pulse 2.2s ease-in-out infinite}
.zfd-pin.on{background:#0d9488;animation:none;box-shadow:0 0 0 4px #facc15}
.zfd-pin.vu{transform:translate(-50%,-50%) scale(1.2)}
.zfd-budget{display:flex;flex-wrap:wrap;gap:8px 16px;background:#0f172a;color:#fff;border-radius:12px;padding:8px 12px;margin-bottom:8px;font-size:14.5px}
.zfd-budget b{color:#fde68a}
.zfd-projets{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.zfd-projet{font:inherit;text-align:left;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:8px 10px;cursor:pointer;display:flex;flex-direction:column;gap:2px;color:#1c1917;touch-action:manipulation}
.zfd-projet small{color:#57534e;font-size:12.5px}
.zfd-projet i{font-style:normal;color:#0f766e;font-weight:800;font-size:12.5px}
.zfd-projet.on{border-color:#0d9488;background:#f0fdfa}
.zfd-projet.vu{box-shadow:0 0 0 3px #facc15}
.zfd-projet-ico{font-size:24px}
.zfd-fiche-projet{background:#fffbeb;border:2px solid #facc15;border-radius:14px;padding:10px 12px;margin:10px 0;animation:zfd-arrive .3s ease-out}
.zfd-fiche-projet p{margin:4px 0}

/* --- scènes, piège, échos --- */
.zfd-scene-img{display:block;width:100%;border-radius:14px;margin-bottom:10px;box-shadow:0 6px 14px rgba(0,0,0,.2)}
.zfd-maree-fin{text-align:center;animation:zfd-arrive .4s ease-out}
.zfd-piege{text-align:left}
.zfd-choix-l{display:grid;gap:8px}
.zfd-choix-o{font:inherit;text-align:left;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px 12px;cursor:pointer;color:#1c1917;font-size:15px;display:flex;gap:8px;align-items:flex-start;touch-action:manipulation}
.zfd-choix-o.bon{border-color:#16a34a;background:#f0fdf4}
.zfd-choix-o.faux{border-color:#dc2626;background:#fef2f2;animation:zfd-non .35s}
.zfd-piege-boum{background:#fff7ed;border:3px solid #ea580c;border-radius:14px;padding:12px;margin-top:10px;animation:zfd-tousse .45s}
.zfd-tampon{display:inline-block;font-weight:900;font-size:22px;color:#fff;background:#dc2626;border-radius:10px;padding:4px 14px;transform:rotate(-4deg);box-shadow:0 4px 0 #991b1b;animation:zfd-tampon .4s cubic-bezier(.3,1.6,.5,1)}
.zfd-piege-qui{display:flex;gap:8px;align-items:center;font-style:italic;margin:8px 0}
.zfd-calcul{text-align:left}
.zfd-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0}
.zfd-saisie input{font:inherit;font-size:18px;width:120px;padding:7px 9px;border:2px solid #a8a29e;border-radius:10px}
.zfd-saisie.juste input{border-color:#16a34a;background:#f0fdf4}
.zfd-saisie.faux input{border-color:#dc2626;animation:zfd-non .35s}
.zfd-echo{text-align:left;background:linear-gradient(160deg,#fff7ed,#ecfeff);border-radius:16px;padding:12px}
.zfd-echo-an{font-weight:900;color:#9a3412;letter-spacing:.5px;margin-bottom:8px}
.zfd-echo-corps{display:flex;gap:12px;align-items:flex-start}
.zfd-echo-photo{width:110px;height:140px;object-fit:cover;object-position:top;border-radius:14px;flex:0 0 110px;box-shadow:0 6px 14px rgba(0,0,0,.2)}
.zfd-echo-photo.zfd-photo-ico{font-size:56px;border-radius:14px}
.zfd-echo-l{font-size:16.5px;line-height:1.5;margin:6px 0;animation:zfd-arrive .5s ease-out;font-style:italic}

/* --- le lagon --- */
.zfd-lagon{text-align:left}
.zfd-banc{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center;background:linear-gradient(180deg,#67e8f9,#0891b2);border-radius:16px;padding:10px;margin-bottom:8px;color:#fff;transition:background .6s}
.zfd-banc.bas{background:linear-gradient(180deg,#a5f3fc,#64748b)}
.zfd-banc.effondre{background:linear-gradient(180deg,#cbd5e1,#475569)}
.zfd-banc-eau{position:relative;height:96px;border-radius:12px;background:rgba(255,255,255,.15);overflow:hidden}
.zfd-banc-eau span{position:absolute;font-size:20px;animation:zfd-nage 3s ease-in-out infinite}
.zfd-banc-info{display:flex;flex-direction:column;gap:4px}
.zfd-banc-info b{font-size:18px}
.zfd-jauge{height:12px;background:rgba(255,255,255,.35);border-radius:999px;overflow:hidden}
.zfd-jauge i{display:block;height:100%;background:#facc15;transition:width .8s}
.zfd-saisons{display:flex;gap:4px;align-items:flex-end;min-height:24px;margin:4px 0 8px;flex-wrap:wrap}
.zfd-saisons span{display:flex;flex-direction:column;align-items:center;font-size:11px;color:#57534e;gap:2px}
.zfd-saisons i{display:block;width:22px;background:#0891b2;border-radius:4px 4px 0 0}
.zfd-saisons .b i{background:#16a34a}
.zfd-saisons .ko i{background:#dc2626}
.zfd-resultat{background:#f0f9ff;border-radius:12px;padding:8px 12px;margin-bottom:8px;animation:zfd-arrive .5s ease-out}
.zfd-bateaux{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:10px}
.zfd-bateau{display:flex;gap:8px;align-items:flex-start;background:#fff;border:2px solid #e7e5e4;border-radius:12px;padding:8px}
.zfd-bateau small{display:block;color:#57534e;font-size:12.5px;line-height:1.35}
.zfd-bateau.moi{border-color:#0d9488;background:#f0fdfa}
.zfd-curseur{display:flex;flex-direction:column;gap:4px;font-size:14px}
.zfd-curseur input{width:100%;accent-color:#0d9488}
.zfd-reponses-l,.zfd-compare-l{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}
.zfd-reponse{font:inherit;text-align:left;background:#fff;border:2px solid #d6d3d1;border-radius:14px;padding:10px;cursor:pointer;display:flex;flex-direction:column;gap:4px;color:#1c1917;touch-action:manipulation}
.zfd-reponse i{font-style:normal;color:#0f766e;font-weight:700;font-size:13px}
.zfd-reponse small{font-size:13px;color:#44403c;line-height:1.4}
.zfd-reponse.on{border-color:#0d9488;background:#f0fdfa;box-shadow:0 0 0 3px #99f6e4}
.zfd-compare-c{background:#fff;border:2px solid #e7e5e4;border-radius:14px;padding:10px;display:flex;flex-direction:column;gap:3px;text-align:left}
.zfd-compare-c.moi{border-color:#0d9488;background:#f0fdfa}
.zfd-compare-c small{color:#44403c;line-height:1.4}
.zfd-tri{text-align:left}
.zfd-tri-l{background:#fff;border:2px solid #e7e5e4;border-radius:12px;padding:8px 10px;margin-bottom:6px;display:flex;flex-direction:column;gap:6px}
.zfd-tri-l.juste{border-color:#16a34a}
.zfd-tri-b{display:flex;flex-wrap:wrap;gap:6px}

/* --- l'enquête à fils et la boîte à outils --- */
.zfd-fils{text-align:left}
.zfd-fils-zone{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin:8px 0}
.zfd-fils-svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;overflow:visible}
.zfd-fils-svg path{animation:zfd-trace .6s ease-out}
.zfd-fils-col{display:flex;flex-direction:column;gap:8px}
.zfd-fils-col>i{font-style:normal;font-weight:800;font-size:12.5px;color:#0f766e;text-transform:uppercase;letter-spacing:.5px}
.zfd-fil-carte{font:inherit;position:relative;z-index:1;text-align:left;background:#fff;border:3px solid #d6d3d1;border-radius:12px;padding:8px 9px;cursor:pointer;font-size:14px;color:#1c1917;display:flex;flex-direction:column;gap:2px;touch-action:manipulation;min-height:56px;justify-content:center}
.zfd-fil-carte small{font-size:11.5px;color:#78716c}
.zfd-fil-carte.sel{box-shadow:0 0 0 4px #facc15;transform:translateY(-2px)}
.zfd-fil-carte.fait{background:#f8fafc}
.zfd-situation{background:#fff7ed;border:2px solid #fdba74;border-radius:14px;padding:10px 12px;margin-bottom:8px;text-align:left}
.zfd-situation p{margin:4px 0 0}
.zfd-instr{text-align:left}
.zfd-outils{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:8px}
.zfd-outil{font:inherit;font-weight:800;background:#fff;border:2px solid #d6d3d1;border-radius:14px;padding:10px 6px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;color:#1c1917;touch-action:manipulation}
.zfd-outil span{font-size:28px}
.zfd-outil.bon{border-color:#16a34a;background:#dcfce7}
.zfd-outil.moyen{border-color:#eab308;background:#fefce8}
.zfd-outil.faux{border-color:#dc2626;background:#fef2f2;animation:zfd-non .35s}
.zfd-appliquer{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
.zfd-taxe{background:#f0f9ff;border:2px solid #38bdf8;border-radius:14px;padding:10px 12px;margin-top:8px;display:flex;flex-direction:column;gap:6px}
.zfd-taxe input{accent-color:#0284c7}
.zfd-applique{background:#ecfdf5;border-radius:12px;padding:10px 12px;margin-top:8px;font-weight:700;animation:zfd-arrive .4s ease-out}

/* --- la balance --- */
.zfd-balance-zone{text-align:left}
.zfd-balance{position:relative;height:190px;margin:10px auto 6px;max-width:620px}
.zfd-fleau{position:absolute;left:4%;right:4%;top:40px;height:8px;background:#78350f;border-radius:6px;transition:transform .6s cubic-bezier(.3,1.4,.5,1);transform-origin:50% 50%}
.zfd-plateau{position:absolute;top:8px;width:44%;min-height:96px;background:#fff;border:3px solid #a16207;border-radius:0 0 18px 18px;padding:6px;display:flex;flex-direction:column;gap:4px;font-size:13px;text-align:center}
.zfd-plateau.g{left:0}
.zfd-plateau.dr{right:0}
.zfd-jetons{display:flex;flex-wrap:wrap;gap:3px;justify-content:center}
.zfd-jeton{background:radial-gradient(circle at 35% 35%,#fde68a,#d97706);color:#451a03;font-weight:900;font-size:10.5px;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;animation:zfd-tombe .35s ease-out;box-shadow:0 2px 0 #92400e}
.zfd-pied{position:absolute;left:50%;top:44px;transform:translateX(-50%);font-size:64px;line-height:1;color:#78350f}
.zfd-balance-btns{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center;background:#f5f5f4;border-radius:12px;padding:8px 10px;margin:8px 0}
.zfd-projection{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;background:#0f172a;color:#e2e8f0;border-radius:12px;padding:10px 12px;margin-bottom:10px;font-size:14px}
.zfd-projection b{color:#fde68a}
.zfd-projection .zfd-ko{grid-column:1/-1;color:#fca5a5}

/* --- le bilan --- */
.zfd-bilan{text-align:left}
.zfd-courbes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0 12px}
.zfd-courbe{margin:0;background:#fff;border:2px solid #e7e5e4;border-radius:12px;padding:6px 8px}
.zfd-courbe figcaption{font-weight:800;font-size:13.5px}
.zfd-courbe svg{width:100%;height:auto;display:block}
.zfd-courbe small{color:#57534e;font-size:11.5px}

/* --- documents, bravo, fin --- */
.zfd-badge{background:linear-gradient(160deg,#f0fdfa,#fff);border:3px solid #0d9488;border-radius:16px;overflow:hidden;max-width:440px;margin:0 auto 12px;color:#1c1917}
.zfd-badge-haut{background:#0d9488;color:#fff;padding:8px 12px;display:flex;flex-direction:column;text-align:left}
.zfd-badge-haut span{font-size:12px;opacity:.85}
.zfd-badge-corps{display:flex;gap:12px;padding:12px;align-items:center;text-align:left}
.zfd-badge-corps>div{display:flex;flex-direction:column;gap:2px}
.zfd-badge-photo{width:88px;height:108px;object-fit:cover;object-position:top;border-radius:10px;flex:0 0 88px}
.zfd-badge-mission{font-style:italic;color:#0f766e;font-size:13px}
.zfd-doc{background:#fff;color:#1c1917;border-radius:12px;padding:12px;text-align:left}
.zfd-doc-tete{display:flex;flex-direction:column;border-bottom:2px solid #1c1917;margin-bottom:8px;padding-bottom:4px}
.zfd-doc-tete span{font-size:12.5px;color:#78716c}
.zfd-doc li{margin:5px 0}
.zfd-table{width:100%;border-collapse:collapse;margin:6px 0 10px;font-size:14px}
.zfd-table th,.zfd-table td{border:1px solid #d6d3d1;padding:5px 7px;text-align:left}
.zfd-table th{background:#f0fdfa}
.zfd-bravo-score{display:flex;flex-direction:column;align-items:center;margin:6px 0}
.zfd-bravo-score b{font-size:40px}
.zfd-bravo .zfd-tableau{margin:10px 0}
.zfd-fin-titre{display:flex;flex-direction:column;align-items:center;gap:2px;margin-bottom:6px}
.zfd-fin-titre span{font-size:54px;animation:zfd-tampon .6s cubic-bezier(.3,1.6,.5,1)}
.zfd-fin-titre h2{margin:0}
.zfd-fin-profil{background:#fff;color:#1c1917;border-radius:14px;padding:10px 12px;margin:8px 0;text-align:left}
.zfd-relecture{background:rgba(255,255,255,.95);color:#1c1917;border-radius:14px;padding:10px 12px;margin:8px 0;text-align:left;display:flex;flex-direction:column;gap:6px}
.zfd-relecture-l{display:flex;gap:8px;align-items:flex-start;opacity:0;animation:zfd-arrive .6s ease-out forwards}
.zfd-relecture-l p{margin:0;font-size:14px;line-height:1.45}
.zfd-fin-etapes{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:8px 0}

@keyframes zfd-tampon{from{transform:scale(2.4) rotate(-12deg);opacity:0}to{transform:rotate(-4deg);opacity:1}}
@keyframes zfd-tousse{0%,100%{transform:translateX(0)}20%{transform:translateX(-7px) rotate(-1deg)}40%{transform:translateX(7px)}60%{transform:translateX(-5px)}80%{transform:translateX(4px)}}
@keyframes zfd-non{0%,100%{transform:translateX(0)}25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
@keyframes zfd-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes zfd-devoile{from{filter:blur(8px);transform:scale(.96)}to{filter:none;transform:none}}
@keyframes zfd-pulse{0%,100%{box-shadow:0 0 0 0 rgba(250,204,21,.7)}50%{box-shadow:0 0 0 8px rgba(250,204,21,0)}}
@keyframes zfd-nage{0%,100%{transform:translateX(0)}50%{transform:translateX(14px)}}
@keyframes zfd-tombe{from{transform:translateY(-30px);opacity:0}to{transform:none;opacity:1}}
@keyframes zfd-trace{from{stroke-dasharray:600;stroke-dashoffset:600}to{stroke-dasharray:600;stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){
  .zfd *,.zfd *::before,.zfd *::after{animation:none!important;transition:none!important}
  .zfd-relecture-l{opacity:1}
}
@media (max-width:640px){
  .zfd-tableau-l{grid-template-columns:1fr 1fr}
  .zfd-compteur b{font-size:16px}
  .zfd-bateaux,.zfd-reponses-l,.zfd-compare-l,.zfd-courbes,.zfd-projection{grid-template-columns:1fr}
  .zfd-banc{grid-template-columns:1fr}
  .zfd-outils{grid-template-columns:1fr 1fr}
  .zfd-fils-zone{gap:14px}
  .zfd-fil-carte{font-size:12px;padding:6px;min-height:64px}
  .zfd-fil-carte small{display:none}
  .zfd-pin{width:32px;height:32px;font-size:16px;border-width:2px}
  .zfd-echo-photo{width:80px;height:104px;flex-basis:80px}
  .zfd-balance{height:200px}
  .zfd-jeton{width:28px;height:28px;font-size:9px}
}
/* ==== zfd : fin des styles ==== */
/* ==== mzr : debut des styles ====
   « Mézir avan di ! » — préfixe mzr-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.mzr). Couleurs : le vert d'une
   ressourcerie, le jaune d'un mètre ruban, le rouge du stylo du correcteur. */
.mzr .pdl-cta{background:linear-gradient(135deg,#16a34a,#0f766e);box-shadow:0 6px 18px rgba(15,118,110,.3)}
.mzr .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(15,118,110,.4)}
.mzr .pdl-cta.alt{background:#fff;color:#14532d;border:2px solid #16a34a;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.mzr .pdl-decor{background:linear-gradient(135deg,#14532d,#0f172a 60%,#a16207)}
.mzr-panneau{color:#1c1917}
.mzr .mzr-panneau-large{max-width:980px;width:100%}
.mzr-panneau,.mzr-panneau *{min-width:0;overflow-wrap:anywhere}
.mzr-photo-ico{display:inline-grid;place-items:center;font-size:30px;background:#dcfce7;border-radius:50%}
.mzr .pdl-bulle-photo.mzr-photo-ico{width:64px;height:64px;flex:0 0 64px}
.mzr .pdl-hud-moi .mzr-photo-ico{width:36px;height:36px;font-size:20px;border:2px solid #facc15}
.mzr-perso-img{width:100%;aspect-ratio:3/3.4;object-fit:cover;display:block}
.mzr-perso-img.mzr-photo-ico{display:grid;font-size:64px;border-radius:0}
.mzr-mini{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:0 0 44px}
.mzr-mini.mzr-photo-ico{font-size:24px}
.mzr-note{font-size:13.5px;color:#57534e;margin:8px 0}
.mzr-ko{color:#b91c1c;font-weight:700;margin:6px 0}
.mzr-consigne{background:#f0fdf4;border-left:5px solid #16a34a;border-radius:10px;padding:10px 12px;margin:0 0 8px;font-size:15px;line-height:1.45;text-align:left}
.mzr-rappel{background:#f5f5f4;border-radius:10px;padding:8px 12px;font-size:14.5px;line-height:1.45;margin:6px 0;text-align:left}
.mzr-formule{background:#fefce8;border-left:4px solid #eab308;border-radius:8px;padding:8px 12px;margin:8px 0;font-size:14.5px;line-height:1.4;text-align:left}
.mzr-badge-dec{display:inline-block;background:#e0f2fe;color:#075985;font-weight:800;font-size:12.5px;border-radius:999px;padding:3px 10px;margin:0 0 8px}
.mzr-petit{font:inherit;font-weight:700;font-size:13.5px;background:#f5f5f4;border:2px solid #d6d3d1;border-radius:10px;padding:7px 10px;cursor:pointer;color:#1c1917;touch-action:manipulation}
.mzr-petit:hover{border-color:#16a34a;background:#f0fdf4}
.mzr .mzr-hud-prog{gap:4px}
.mzr-fil{display:flex;gap:6px;justify-content:center;margin:0 0 10px;flex-wrap:wrap}
.mzr-fil span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.35);font-size:15px;opacity:.7}
.mzr-fil .mzr-fil-fait{background:#bbf7d0;opacity:1}
.mzr-fil .mzr-fil-ici{background:#fff;opacity:1;box-shadow:0 0 0 3px #16a34a}
.mzr-accueil-l{text-align:left;margin:8px 0 12px;padding-left:4px;list-style:none;display:grid;gap:4px;font-size:14.5px}
.mzr-tm-notion{background:rgba(255,255,255,.15);border-radius:10px;padding:6px 12px;margin:8px auto;max-width:520px}

/* --- les choix corrigés --- */
.mzr-choix{margin-top:10px;text-align:left}
.mzr-choix-l{display:grid;gap:8px}
.mzr-choix-o{font:inherit;text-align:left;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px 12px;cursor:pointer;color:#1c1917;font-size:15px;touch-action:manipulation;transition:transform .15s,border-color .15s}
.mzr-choix-o:hover:not(:disabled){border-color:#16a34a;transform:translateY(-1px)}
.mzr-choix-o.bon,.mzr-choix-o.choisi{border-color:#16a34a;background:#f0fdf4}
.mzr-choix-o.faux{border-color:#dc2626;background:#fef2f2;animation:mzr-non .35s}
.mzr-choix-o:disabled{cursor:default}

/* --- la Divizèr --- */
.mzr-machine-zone{text-align:left}
.mzr-cartes{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:8px 0 12px}
.mzr-carte{font:inherit;display:flex;gap:8px;align-items:center;background:#fffbeb;border:2px solid #facc15;border-radius:12px;padding:9px 10px;cursor:pointer;color:#1c1917;font-weight:700;font-size:14.5px;text-align:left;touch-action:manipulation;transition:transform .15s,box-shadow .15s}
.mzr-carte span{font-size:22px}
.mzr-carte.sel{box-shadow:0 0 0 4px #16a34a;transform:translateY(-3px) rotate(-1deg)}
.mzr-carte.posee{opacity:.45}
.mzr-machine{position:relative;background:linear-gradient(160deg,#334155,#0f172a);border-radius:22px;padding:14px;color:#fff;box-shadow:inset 0 0 0 3px #64748b,0 10px 24px rgba(0,0,0,.25);max-width:520px;margin:0 auto}
.mzr-machine-nom{font-weight:900;letter-spacing:3px;text-align:center;color:#facc15;margin-bottom:8px}
.mzr-plateau{font:inherit;display:flex;flex-direction:column;gap:2px;width:100%;background:#1e293b;border:2px dashed #94a3b8;border-radius:14px;padding:10px;color:#e2e8f0;cursor:pointer;min-height:64px;text-align:center;touch-action:manipulation}
.mzr-plateau i{font-size:12px;font-style:normal;color:#94a3b8;text-transform:uppercase;letter-spacing:1px}
.mzr-plateau b{font-size:16px;color:#fff}
.mzr-plateau.plein{border-style:solid;border-color:#facc15;background:#273449}
.mzr-plateau.attend{animation:mzr-attend 1.1s ease-in-out infinite}
.mzr-barre-div{display:flex;align-items:center;justify-content:center;gap:14px;margin:6px 0;font-size:28px}
.mzr-barre-div b{color:#facc15}
.mzr-engrenage{display:inline-block;font-size:30px;color:#94a3b8}
.mzr-machine.tourne .mzr-engrenage.e1{animation:mzr-tourne .6s linear infinite}
.mzr-machine.tourne .mzr-engrenage.e2{animation:mzr-tourne .6s linear infinite reverse}
.mzr-machine.tousse{animation:mzr-tousse .45s}
.mzr-ecran{margin-top:10px;background:#052e16;border-radius:10px;padding:10px;text-align:center;font-family:ui-monospace,Consolas,monospace;font-size:20px;color:#4ade80;min-height:48px;box-shadow:inset 0 0 12px rgba(74,222,128,.25)}
.mzr-ecran-vide{color:#86efac;opacity:.7}
.mzr-manette{display:block;margin:10px auto 0}
.mzr-compte{font-variant-numeric:tabular-nums}

/* --- la course des vélos --- */
.mzr-course{text-align:left}
.mzr-piste{display:flex;gap:10px;align-items:center;background:#fff;border-radius:14px;padding:8px 10px;margin:8px 0;border:2px solid #e7e5e4}
.mzr-piste-corps{flex:1;min-width:0}
.mzr-velos{display:flex;flex-wrap:wrap;gap:2px;font-size:20px;min-height:26px}
.mzr-velos span{opacity:0}
.mzr-velos.roule span{animation:mzr-arrive .4s ease-out forwards}
.mzr-retours{display:flex;flex-wrap:wrap;gap:2px;align-items:center;font-size:16px;margin-top:4px}
.mzr-retours span{animation:mzr-arrive .4s ease-out both}
.mzr-retours i{font-style:normal;font-size:12.5px;color:#b91c1c;font-weight:700;margin-left:4px}
.mzr-piste-nb{display:flex;flex-direction:column;align-items:flex-end;font-size:30px;font-weight:900;color:#15803d}
.mzr-piste-nb small{font-size:11px;color:#78716c;font-weight:600}

/* --- la bascule --- */
.mzr-bascule{text-align:left}
.mzr-bascule-b{display:flex;gap:6px;background:#e7e5e4;border-radius:999px;padding:4px;margin:8px 0}
.mzr-bascule-b button{font:inherit;flex:1;border:0;border-radius:999px;padding:9px 6px;font-weight:800;cursor:pointer;background:transparent;color:#44403c;touch-action:manipulation}
.mzr-bascule-b button.on{background:#16a34a;color:#fff;box-shadow:0 3px 8px rgba(22,163,74,.35)}
.mzr-barres{display:grid;gap:8px;margin:8px 0}
.mzr-barre-l{display:grid;grid-template-columns:44px 1fr auto;gap:8px;align-items:center;background:#fff;border-radius:12px;padding:6px 8px;border:2px solid #e7e5e4}
.mzr-barre-l.gagne{border-color:#facc15}
.mzr-barre-fond{height:16px;background:#f5f5f4;border-radius:999px;overflow:hidden}
.mzr-barre-fond i{display:block;height:100%;background:linear-gradient(90deg,#22c55e,#facc15);border-radius:999px;transition:width .7s cubic-bezier(.2,.8,.2,1)}
.mzr-barre-l b{font-size:18px;white-space:nowrap}
.mzr-barre-l small{font-size:11.5px;color:#78716c;font-weight:600}

/* --- le frigo --- */
.mzr-frigo{text-align:left}
.mzr-trajet{list-style:none;padding:0;margin:8px 0;display:grid;gap:6px}
.mzr-trajet li{display:flex;gap:10px;align-items:center;background:#fff;border-radius:12px;padding:8px 10px;border:2px solid #e7e5e4;opacity:.55;transition:opacity .3s,border-color .3s}
.mzr-trajet li.passe{opacity:1;border-color:#bbf7d0}
.mzr-trajet li.ici{opacity:1;border-color:#16a34a;transform:scale(1.02)}
.mzr-trajet-ico{font-size:24px;flex:0 0 30px;text-align:center}
.mzr-trajet li.ici .mzr-trajet-ico{animation:mzr-saute .6s ease-in-out infinite}

/* --- les postes --- */
.mzr-postes{text-align:left}
.mzr-poste{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;justify-content:space-between;background:#fff;border:2px solid #e7e5e4;border-radius:12px;padding:8px 10px;margin:6px 0}
.mzr-poste.juste{border-color:#16a34a;background:#f0fdf4}
.mzr-poste.faux{border-color:#dc2626}
.mzr-poste-nom{font-weight:700;flex:1 1 180px}
.mzr-poste-b{display:flex;gap:6px}
.mzr-poste-b button{font:inherit;border:2px solid #d6d3d1;background:#fafaf9;border-radius:10px;padding:6px 10px;font-weight:700;cursor:pointer;touch-action:manipulation}
.mzr-poste-b button.on{border-color:#0f766e;background:#ccfbf1}
.mzr-poste-w{flex:1 1 100%;font-size:13.5px}

/* --- l'élastique --- */
.mzr-elastique{text-align:left}
.mzr-jauge{margin:10px 0}
.mzr-jauge-fond{position:relative;height:28px;background:#f5f5f4;border-radius:999px;border:2px solid #d6d3d1}
.mzr-jauge-dep{position:absolute;left:0;top:0;bottom:0;background:#94a3b8;border-radius:999px 0 0 999px}
.mzr-jauge-plus{position:absolute;top:0;bottom:0;background:linear-gradient(90deg,#22c55e,#16a34a);transition:width .25s}
.mzr-jauge-cible{position:absolute;top:-24px;transform:translateX(-50%);font-size:18px}
.mzr-jauge-ech{display:flex;justify-content:space-between;font-size:11.5px;color:#78716c;margin-top:2px}
.mzr-curseur{display:block;margin:8px 0;font-weight:700}
.mzr-curseur input{width:100%;accent-color:#16a34a;height:30px}
.mzr-ecarts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mzr-regle{background:#fff;border:2px solid #e7e5e4;border-radius:12px;padding:8px 10px;display:flex;flex-direction:column;gap:2px}
.mzr-regle strong{font-size:22px;color:#0f766e}
.mzr-regle-trait{height:10px;margin-top:4px;background:repeating-linear-gradient(90deg,#facc15 0 8px,#eab308 8px 10px);border-radius:3px;transition:width .25s}
.mzr-elast strong{color:#c2410c}
.mzr-elast-bande{height:10px;margin-top:4px;background:linear-gradient(90deg,#fb923c,#ea580c);border-radius:999px;transition:width .35s cubic-bezier(.3,1.6,.5,1)}

/* --- les fiches --- */
.mzr-fiches{text-align:left}
.mzr-duel{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}
.mzr-duel>div{background:#fff;border-radius:12px;padding:8px;text-align:center;border:2px solid #e7e5e4;display:flex;flex-direction:column}
.mzr-gros{font-size:36px;font-weight:900;color:#15803d}
.mzr-gros.bas{color:#b45309}
.mzr-duel i{font-style:normal;font-size:12px;color:#78716c}
.mzr-fiches-l{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}
.mzr-fiche{font:inherit;position:relative;min-height:112px;border:0;background:none;padding:0;cursor:pointer;perspective:700px;touch-action:manipulation}
.mzr-fiche-dos,.mzr-fiche-face{position:absolute;inset:0;border-radius:12px;padding:10px;display:flex;flex-direction:column;justify-content:center;gap:4px;backface-visibility:hidden;transition:transform .6s;text-align:left}
.mzr-fiche-dos{background:linear-gradient(135deg,#0f766e,#14532d);color:#fff;font-weight:800}
.mzr-fiche-dos small{font-weight:600;opacity:.8}
.mzr-fiche-face{background:#fff;border:2px solid #16a34a;color:#1c1917;font-size:13.5px;transform:rotateY(180deg)}
.mzr-fiche.ouverte .mzr-fiche-dos{transform:rotateY(180deg)}
.mzr-fiche.ouverte .mzr-fiche-face{transform:rotateY(360deg)}

/* --- les défis --- */
.mzr-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.mzr-saisie input{font:inherit;font-size:18px;width:130px;padding:8px 10px;border:2px solid #a8a29e;border-radius:10px}
.mzr-saisie span{font-weight:700}
.mzr-aide{border:2px dashed #eab308;border-radius:12px;margin:8px 0;background:#fefce8;text-align:left}
.mzr-aide-bouton{font:inherit;width:100%;display:flex;justify-content:space-between;gap:8px;align-items:center;background:none;border:0;padding:8px 12px;font-weight:800;cursor:pointer;color:#854d0e;text-align:left}
.mzr-aide-bouton span{font-weight:600;font-size:12.5px}
.mzr-aide-corps{padding:0 12px 10px;font-size:14.5px}
.mzr-aide-corps p{margin:4px 0}
.mzr-aide-formule{font-weight:700;color:#166534}
.mzr-phrase,.mzr-interp,.mzr-retiens,.mzr-rapport{text-align:left}
.mzr-phrase-ligne{font-size:20px;font-weight:700;margin:10px 0;line-height:2}
.mzr-trou{font:inherit;display:inline-block;min-width:70px;text-align:center;border:0;border-bottom:3px dashed #16a34a;background:#f0fdf4;border-radius:6px 6px 0 0;padding:0 8px;margin:0 2px;color:#14532d;font-weight:800;cursor:pointer}
.mzr-trou.plein{border-bottom-style:solid}
.mzr-trou.sel{box-shadow:0 0 0 3px #facc15}
.mzr-trou.juste{background:#dcfce7;border-color:#16a34a}
.mzr-trou.faux{background:#fee2e2;border-color:#dc2626;color:#991b1b;animation:mzr-non .35s}
.mzr-puces{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.mzr-puce{font:inherit;background:#fff;border:2px solid #d6d3d1;border-radius:999px;padding:7px 12px;font-weight:700;cursor:pointer;color:#1c1917;text-align:left;touch-action:manipulation}
.mzr-puce.on{border-color:#16a34a;background:#dcfce7}
.mzr-puce:disabled{opacity:.45;cursor:default}
.mzr-banque{background:#f5f5f4;border-radius:12px;padding:8px}
.mzr-feuille{background:#fffef7;border-radius:6px;padding:12px 14px;box-shadow:0 4px 14px rgba(0,0,0,.12);background-image:repeating-linear-gradient(180deg,transparent 0 27px,#e0f2fe 27px 28px)}
.mzr-feuille-tete{font-weight:900;font-size:12.5px;letter-spacing:1px;color:#475569;border-bottom:2px solid #f87171;padding-bottom:4px;margin-bottom:8px}
.mzr-ligne{padding:6px 0;border-bottom:1px dashed #e7e5e4}
.mzr-ligne-txt{margin:2px 0;font-family:"Segoe Print","Comic Sans MS",cursive;font-size:15px}
.mzr-ligne.corrigee .mzr-ligne-txt{text-decoration:line-through;text-decoration-color:#dc2626;text-decoration-thickness:2px;opacity:.7}
.mzr-ligne-rouge{margin:4px 0;color:#b91c1c;font-weight:700;font-family:"Segoe Print","Comic Sans MS",cursive;animation:mzr-ecrit .6s ease-out}
.mzr-ligne-w{font-size:13px;color:#166534;margin:2px 0}
.mzr-ligne-o{display:grid;gap:6px;margin:6px 0}
.mzr-stylo{font:inherit;background:#fef2f2;border:2px solid #fca5a5;color:#b91c1c;border-radius:10px;padding:6px 10px;font-weight:800;cursor:pointer;touch-action:manipulation}
.mzr-morceau{background:#fff;border:2px solid #e7e5e4;border-radius:12px;padding:8px 10px;margin:6px 0}
.mzr-morceau.juste{border-color:#16a34a;background:#f0fdf4}
.mzr-morceau.faux{border-color:#dc2626}
.mzr-morceau-o{display:grid;gap:6px;margin-top:6px}
.mzr-morceau-o .mzr-puce{border-radius:10px}
.mzr-interp q{display:block;font-style:italic;margin:6px 0}
.mzr-fiche-l{padding-left:20px;line-height:1.9;font-size:15px}
.mzr-fiche-mot{color:#15803d}

/* --- documents, bravo, fin --- */
.mzr-badge{background:#fff;border-radius:16px;overflow:hidden;border:3px solid #14532d;max-width:420px;margin:0 auto 12px;color:#1c1917;text-align:left}
.mzr-badge-haut{background:linear-gradient(90deg,#16a34a,#0f766e,#facc15);color:#fff;padding:8px 12px;display:flex;flex-direction:column}
.mzr-badge-haut b{font-size:20px;letter-spacing:3px}
.mzr-badge-haut span{font-size:11.5px;font-weight:700}
.mzr-badge-corps{display:flex;gap:12px;padding:12px;align-items:center}
.mzr-badge-corps>div{display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.mzr-badge-corps b{font-size:18px}
.mzr-badge-photo{width:84px;height:96px;object-fit:cover;border-radius:10px;flex:0 0 84px}
.mzr-badge-photo.mzr-photo-ico{border-radius:10px;font-size:44px}
.mzr-badge-mission{font-weight:700;color:#0f766e}
.mzr-doc{background:#fff;border-radius:12px;padding:12px;color:#1c1917;text-align:left}
.mzr-doc-tete{display:flex;flex-direction:column;border-bottom:2px solid #1c1917;margin-bottom:8px;padding-bottom:4px}
.mzr-doc-tete span{font-size:12.5px;color:#78716c}
.mzr-doc li{margin:4px 0}
.mzr-bravo-score{display:flex;flex-direction:column;align-items:center;margin:6px 0}
.mzr-bravo-score b{font-size:40px}
.mzr-fin-profil{background:#fff;color:#1c1917;border-radius:14px;padding:12px;margin:10px 0;text-align:left}
.mzr-fin-profil b{font-size:18px}
.mzr-fin-etapes{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:8px 0}

/* --- les pièges --- */
.mzr-piege{text-align:left}
.mzr-piege .mzr-choix-o{display:flex;gap:8px;align-items:flex-start}
.mzr-piege-boum{position:relative;background:#fff7ed;border:3px solid #ea580c;border-radius:14px;padding:12px;margin-top:10px;animation:mzr-tousse .45s}
.mzr-tampon{display:inline-block;font-weight:900;font-size:22px;color:#fff;background:#dc2626;border-radius:10px;padding:4px 14px;transform:rotate(-4deg);box-shadow:0 4px 0 #991b1b;animation:mzr-tampon .4s cubic-bezier(.3,1.6,.5,1)}
.mzr-piege-gerald{display:flex;gap:8px;align-items:center;font-style:italic;margin:8px 0}
.mzr-dabord{background:#eff6ff;border:2px dashed #3b82f6;border-radius:12px;padding:10px;margin:8px 0}
.mzr-dabord-l{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:8px}
.mzr-dabord-l input{font:inherit;font-size:17px;width:90px;padding:6px 8px;border:2px solid #a8a29e;border-radius:10px}
.mzr-dabord-l.juste input{border-color:#16a34a;background:#f0fdf4}
.mzr-dabord-l.faux input{border-color:#dc2626;animation:mzr-non .35s}
.mzr-dabord-l .mzr-ko{flex:1 1 100%;margin:2px 0}
.mzr-bloque{opacity:.5}
.mzr-piege-ok{animation:mzr-arrive .4s ease-out}
@keyframes mzr-tampon{from{transform:scale(2.4) rotate(-12deg);opacity:0}to{transform:rotate(-4deg);opacity:1}}
@keyframes mzr-tourne{to{transform:rotate(360deg)}}
@keyframes mzr-tousse{0%,100%{transform:translateX(0)}20%{transform:translateX(-7px) rotate(-1deg)}40%{transform:translateX(7px)}60%{transform:translateX(-5px)}80%{transform:translateX(4px)}}
@keyframes mzr-non{0%,100%{transform:translateX(0)}25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
@keyframes mzr-attend{0%,100%{border-color:#94a3b8}50%{border-color:#facc15}}
@keyframes mzr-arrive{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:none}}
@keyframes mzr-saute{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes mzr-ecrit{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@media (prefers-reduced-motion:reduce){
  .mzr *,.mzr *::before,.mzr *::after{animation:none!important;transition:none!important}
  .mzr-velos span{opacity:1}
}
@media (max-width:560px){
  .mzr-ecarts,.mzr-duel{grid-template-columns:1fr}
  .mzr-phrase-ligne{font-size:17px}
  .mzr-machine{padding:10px}
  .mzr-cartes{grid-template-columns:1fr 1fr}
  .mzr-carte{font-size:13px;padding:8px}
  .mzr-piste-nb{font-size:24px}
}
/* ==== mzr : fin des styles ==== */
/* ==== lmc : debut des styles ====
   « Ni plis, ni mwin ! » — préfixe lmc-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.lmc). Couleurs : la cire chaude,
   le miel et le bois d'un atelier de bougies. */
.lmc .pdl-cta{background:linear-gradient(135deg,#d97706,#b45309);box-shadow:0 6px 18px rgba(180,83,9,.3)}
.lmc .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(180,83,9,.4)}
.lmc .pdl-cta.alt{background:#fff;color:#1c1917;border:2px solid #d97706;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.lmc .pdl-decor{background:linear-gradient(135deg,#78350f,#1c1917 60%,#a16207)}
.lmc-panneau{color:#1c1917}
.lmc .lmc-panneau-large{max-width:1000px;width:100%}
.lmc-photo-ico{display:inline-grid;place-items:center;font-size:30px;background:#fef3c7;border-radius:50%}
.lmc .pdl-bulle-photo.lmc-photo-ico{width:64px;height:64px;flex:0 0 64px}
.lmc .pdl-hud-moi .lmc-photo-ico{width:36px;height:36px;font-size:20px;border:2px solid #facc15}
.lmc-perso-img{width:100%;aspect-ratio:3/3.4;object-fit:cover;display:block}
.lmc-perso-img.lmc-photo-ico{display:grid;font-size:64px;border-radius:0;background:linear-gradient(160deg,#fef3c7,#fde68a)}
.lmc-mini{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:0 0 44px}
.lmc-mini.lmc-photo-ico{font-size:24px}
.lmc-note{font-size:13.5px;color:#57534e;margin:8px 0}
.lmc-ko{color:#b45309;font-weight:700;margin:8px 0}
.lmc-consigne{background:#fffbeb;border-left:5px solid #d97706;border-radius:10px;padding:10px 12px;margin:0 0 6px;font-size:15px;line-height:1.45}
.lmc-petit{font:inherit;font-weight:700;font-size:13.5px;background:#f5f5f4;border:2px solid #d6d3d1;border-radius:10px;padding:7px 10px;cursor:pointer;color:#1c1917;touch-action:manipulation}
.lmc-petit:hover:not(:disabled){border-color:#d97706;background:#fffbeb}
.lmc-petit:disabled{opacity:.45;cursor:default}
.lmc .lmc-hud-prog{gap:4px}
.lmc .lmc-hud-prog em{font-style:normal;font-size:14px;margin:0 2px 0 6px}
.lmc-tm-notion{color:#fef9c3;font-weight:700;margin:6px 0 12px;font-size:15px}
.lmc-fil{display:flex;gap:6px;justify-content:center;margin:0 0 10px;flex-wrap:wrap}
.lmc-fil span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.35);font-size:15px;opacity:.7}
.lmc-fil .lmc-fil-fait{background:#bbf7d0;opacity:1}
.lmc-fil .lmc-fil-ici{background:#fff;opacity:1;box-shadow:0 0 0 3px #d97706}

/* ---- L'accueil : deux portes ---- */
.lmc-portes{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:14px 0}
.lmc-porte{font:inherit;text-align:left;display:flex;flex-direction:column;gap:4px;background:#fff;color:#1c1917;border:3px solid #f59e0b;border-radius:16px;padding:14px;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.2);transition:transform .15s}
.lmc-porte:hover{transform:translateY(-3px)}
.lmc-porte b{font-size:19px}
.lmc-porte span{font-weight:800;font-size:13px;color:#b45309}
.lmc-porte i{font-style:normal;font-size:13.5px;color:#57534e}
.lmc-porte-2{border-color:#16a34a}
.lmc-porte-2 span{color:#15803d}

/* ---- LA COULÉE ---- */
.lmc-etape-coulee,.lmc-trier,.lmc-cadenas,.lmc-partage,.lmc-suites,.lmc-ventes,.lmc-labo,.lmc-salaire{display:flex;flex-direction:column;gap:10px;text-align:left}
.lmc-coulee{display:flex;flex-direction:column;align-items:stretch;gap:0;background:linear-gradient(180deg,#fffbeb,#fef3c7);border:2px solid #fcd34d;border-radius:16px;padding:12px;user-select:none;-webkit-user-select:none}
.lmc-caisse{position:relative;height:74px;border:3px solid #78350f;border-radius:14px 14px 22px 22px;background:#fff;overflow:hidden;margin:0 auto;width:min(100%,420px)}
.lmc-caisse-liq{position:absolute;left:0;right:0;bottom:0;background:repeating-linear-gradient(135deg,#fbbf24 0 10px,#f59e0b 10px 20px);transition:height .12s linear}
.lmc-cire .lmc-caisse-liq{background:linear-gradient(180deg,#fef3c7,#fde68a)}
.lmc-caisse-t{position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;height:100%;padding:0 12px;gap:8px}
.lmc-caisse-t span{font-weight:800;font-size:14px;background:rgba(255,255,255,.85);border-radius:8px;padding:2px 6px}
.lmc-caisse-m{font-size:20px;font-variant-numeric:tabular-nums;background:#1c1917;color:#fde68a;border-radius:8px;padding:2px 8px}
.lmc-filet{width:8px;height:18px;margin:0 auto;border-radius:0 0 4px 4px;background:transparent}
.lmc-filet.on{background:linear-gradient(180deg,#f59e0b,#fbbf24);animation:lmc-coule .3s linear infinite}
@keyframes lmc-coule{from{opacity:.6}to{opacity:1}}
.lmc-tubes{display:flex;justify-content:center;gap:8px;flex-wrap:nowrap;margin:2px 0 8px}
.lmc-tube{font:inherit;flex:1 1 0;min-width:0;max-width:120px;display:flex;flex-direction:column;align-items:center;gap:2px;background:transparent;border:2px solid transparent;border-radius:12px;padding:4px 2px;cursor:pointer;color:#1c1917}
.lmc-tube.on{border-color:#d97706;background:#fff}
.lmc-tube.lmc-ferme{cursor:default;opacity:.85}
.lmc-tube-verre{position:relative;width:46px;height:150px;border:3px solid #a8a29e;border-top:none;border-radius:0 0 14px 14px;background:rgba(255,255,255,.75);overflow:hidden}
.lmc-tube.on .lmc-tube-verre{border-color:#78350f}
.lmc-tube.lmc-pile .lmc-tube-verre{border-color:#16a34a;box-shadow:0 0 0 3px #bbf7d0}
.lmc-tube-liq{position:absolute;left:0;right:0;bottom:0;transition:height .1s linear;opacity:.9}
.lmc-grad{position:absolute;left:0;width:9px;height:2px;background:#a8a29e}
.lmc-trait{position:absolute;left:-2px;right:-2px;height:0;border-top:3px dashed #dc2626;z-index:2}
.lmc-trait i{position:absolute;right:1px;top:-15px;font-style:normal;font-size:9.5px;font-weight:800;color:#dc2626;background:rgba(255,255,255,.85);border-radius:4px;padding:0 2px}
.lmc-tube-ico{font-size:18px}
.lmc-tube b{font-size:12.5px;line-height:1.1;text-align:center}
.lmc-tube-m{font-size:12px;font-variant-numeric:tabular-nums;font-weight:700}
.lmc-tube em{font-style:normal;font-size:11.5px;font-weight:800;border-radius:6px;padding:0 4px}
.lmc-ok{color:#166534;background:#dcfce7}
.lmc-pasok{color:#b91c1c;background:#fee2e2}
.lmc-legende{margin:0 0 8px;font-size:12.5px;color:#57534e;text-align:center}
.lmc-commandes{display:flex;flex-direction:column;align-items:center;gap:8px}
.lmc-choix{margin:0;font-size:14px;text-align:center}
.lmc-verser{font:inherit;font-weight:800;font-size:16px;width:min(100%,420px);padding:14px 12px;border:0;border-radius:14px;color:#fff;background:linear-gradient(135deg,#d97706,#92400e);box-shadow:0 6px 0 #78350f;cursor:pointer;touch-action:none}
.lmc-verser:active{transform:translateY(4px);box-shadow:0 2px 0 #78350f}
.lmc-verser:disabled{opacity:.45;cursor:default}
.lmc-fins{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.lmc-valider{align-self:center}

/* ---- Trier ---- */
.lmc-carte{background:#fff;border:2px solid #fcd34d;border-radius:14px;padding:14px;font-size:17px;font-weight:700;box-shadow:0 6px 14px rgba(0,0,0,.08);animation:lmc-pop .3s}
.lmc-carte p{margin:0}
.lmc-dest{display:grid;gap:8px;grid-template-columns:repeat(3,minmax(0,1fr))}
.lmc-dest.dest-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.lmc-dest.dest-6{grid-template-columns:repeat(3,minmax(0,1fr))}
.lmc-dest-b{font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px 6px;cursor:pointer;color:#1c1917;text-align:center}
.lmc-dest-b span{font-size:22px}
.lmc-dest-b b{font-size:14px;line-height:1.2}
.lmc-dest-b i{font-style:normal;font-size:12px;color:#78716c}
.lmc-dest-b:hover:not(:disabled){border-color:#d97706}
.lmc-dest-b.bon{border-color:#16a34a;background:#dcfce7}
.lmc-dest-b.faux{border-color:#dc2626;background:#fee2e2}
.lmc-jauge{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;background:#fff;border-radius:12px;padding:8px 10px;border:2px solid #fde68a}
.lmc-jauge span{font-size:13px;font-weight:700}
.lmc-jauge-barre{height:14px;background:#f5f5f4;border-radius:99px;overflow:hidden}
.lmc-jauge-barre i{display:block;height:100%;background:linear-gradient(90deg,#fbbf24,#d97706);transition:width .5s}
.lmc-jauge b{font-variant-numeric:tabular-nums}
@keyframes lmc-pop{from{transform:scale(.96);opacity:.4}to{transform:none;opacity:1}}

/* ---- Cadenas, demandes, suites ---- */
.lmc-cad-l{display:grid;gap:8px}
.lmc-cad{font:inherit;display:grid;grid-template-columns:auto 1fr;gap:2px 10px;align-items:center;text-align:left;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px;cursor:pointer;color:#1c1917}
.lmc-cad span{grid-row:span 2;font-size:24px}
.lmc-cad i{font-style:normal;font-size:12.5px;color:#78716c}
.lmc-cad em{grid-column:1/-1;font-style:normal;font-size:13px;font-weight:700}
.lmc-cad.on{border-color:#7c3aed;background:#f5f3ff}
.lmc-cad.bon{border-color:#16a34a}
.lmc-cad.faux{border-color:#dc2626;background:#fef2f2}
.lmc-demandes{display:grid;gap:8px}
.lmc-demande{display:flex;gap:10px;align-items:flex-start;background:#fff;border-radius:12px;padding:8px 10px;border:2px solid #fde68a}
.lmc-demande p{margin:0;font-size:14.5px;line-height:1.4}
.lmc-suites-l{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.lmc-suites-l li{display:flex;gap:10px;align-items:center;background:#fff;border-radius:12px;padding:8px 10px;font-size:14.5px;line-height:1.4;animation:lmc-pop .4s}

/* ---- Découvertes ---- */
.lmc-ticket{font:inherit;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;text-align:left;background:#fff;border:2px dashed #d97706;border-radius:12px;padding:10px;cursor:pointer;color:#1c1917}
.lmc-ticket.fait{border-style:solid;border-color:#16a34a;background:#f0fdf4}
.lmc-ticket:disabled{cursor:default}
.lmc-ticket span{font-size:22px}
.lmc-ticket i{font-style:normal;font-weight:800}
.lmc-mini-caisse{font-size:16px;background:#1c1917;color:#fde68a;border-radius:10px;padding:8px 12px;align-self:flex-start}
.lmc-idees{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}
.lmc-idee{font:inherit;text-align:left;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px;cursor:pointer;color:#1c1917;font-weight:700}
.lmc-idee.fait{border-color:#16a34a;background:#f0fdf4}

/* ---- Calcul, aide, hypothèse ---- */
.lmc-calcul{display:flex;flex-direction:column;gap:4px;text-align:left}
.lmc-rappel{background:#f5f5f4;border-radius:10px;padding:8px 12px;font-size:14.5px;line-height:1.45;margin:6px 0}
.lmc-formule{background:#fffbeb;border-left:4px solid #f59e0b;border-radius:8px;padding:8px 12px;margin:8px 0;font-size:14.5px;line-height:1.4}
.lmc-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.lmc-saisie input{font:inherit;font-size:18px;width:140px;padding:8px 10px;border:2px solid #a8a29e;border-radius:10px}
.lmc-aide{border:2px dashed #f59e0b;border-radius:12px;margin:8px 0;background:#fffdf5;text-align:left}
.lmc-aide-bouton{font:inherit;width:100%;display:flex;justify-content:space-between;gap:8px;align-items:center;background:none;border:0;padding:8px 12px;font-weight:800;cursor:pointer;color:#92400e;text-align:left}
.lmc-aide-bouton span{font-weight:600;font-size:12.5px;color:#a16207}
.lmc-aide-corps{padding:0 12px 10px;font-size:14.5px}
.lmc-aide-corps p{margin:4px 0}
.lmc-aide-formule{font-weight:700;color:#166534}
.lmc-hypo{display:flex;flex-direction:column;gap:10px;text-align:left}
.lmc-hypo-tete{display:flex;justify-content:space-between;gap:8px;background:#1c1917;color:#fde68a;border-radius:10px;padding:8px 12px;flex-wrap:wrap}
.lmc-hypo-tete span{font-size:12.5px;color:#d6d3d1}
.lmc-hypo-l{display:flex;flex-direction:column;gap:8px}
.lmc-hypo-o{font:inherit;text-align:left;background:#fff;border:2px solid #d6d3d1;border-radius:12px;padding:10px 12px;cursor:pointer;color:#1c1917;font-weight:600;line-height:1.35}
.lmc-hypo-o.bon{border-color:#16a34a;background:#dcfce7}
.lmc-hypo-o.faux{border-color:#dc2626;background:#fee2e2}
.lmc-hypo-doc{display:flex;flex-direction:column;gap:3px;background:#fffbeb;border-left:5px solid #d97706;border-radius:10px;padding:8px 12px;margin:6px 0;text-align:left;color:#1c1917}
.lmc-hypo-doc span{font-size:14px}
.lmc-hypo-doc em{font-size:13px;color:#57534e}

/* ---- Documents, tableau des tubes, fins ---- */
.lmc-badge{background:#fff;border-radius:16px;overflow:hidden;border:3px solid #1c1917;max-width:420px;margin:0 auto 12px;color:#1c1917;text-align:left}
.lmc-badge-haut{background:linear-gradient(90deg,#f59e0b,#b45309,#facc15);color:#fff;padding:8px 12px;display:flex;flex-direction:column}
.lmc-badge-haut b{font-size:20px;letter-spacing:3px}
.lmc-badge-haut span{font-size:11.5px;font-weight:700}
.lmc-badge-corps{display:flex;gap:12px;padding:12px;align-items:center}
.lmc-badge-corps>div{display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.lmc-badge-corps b{font-size:18px}
.lmc-badge-photo{width:84px;height:96px;object-fit:cover;border-radius:10px;flex:0 0 84px}
.lmc-badge-photo.lmc-photo-ico{border-radius:10px;font-size:44px}
.lmc-badge-mission{font-weight:700;color:#b45309}
.lmc-doc{background:#fff;border-radius:12px;padding:12px;color:#1c1917;text-align:left}
.lmc-doc-tete{display:flex;flex-direction:column;border-bottom:2px solid #1c1917;margin-bottom:8px;padding-bottom:4px}
.lmc-doc-tete span{font-size:12.5px;color:#78716c}
.lmc-table{width:100%;border-collapse:collapse;font-size:14px}
.lmc-table td{border-bottom:1px solid #e7e5e4;padding:5px 4px}
.lmc-table td:last-child{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.lmc-tr-fort td{font-weight:800;background:#fef3c7}
.lmc-bord{background:#fff;border-radius:14px;padding:10px;color:#1c1917;margin:10px 0}
.lmc-bord-t{font-weight:800;margin-bottom:8px}
.lmc-bord-l{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.lmc-indic{display:flex;flex-direction:column;gap:2px;border:2px solid #e7e5e4;border-radius:12px;padding:8px;text-align:center;background:#fafaf9}
.lmc-indic span{font-size:17px;font-weight:800;overflow-wrap:anywhere}
.lmc-indic b{font-size:13px}
.lmc-indic i{font-style:normal;font-size:12px;color:#78716c}
.lmc-i-haut{border-color:#86efac;background:#f0fdf4}
.lmc-i-moyen{border-color:#fde68a;background:#fffbeb}
.lmc-i-bas{border-color:#fca5a5;background:#fef2f2}
.lmc-bravo-score{display:flex;flex-direction:column;align-items:center;margin:6px 0}
.lmc-bravo-score b{font-size:38px}
.lmc-fin-profil{background:#fff;color:#1c1917;border-radius:14px;padding:12px;margin:10px 0;text-align:left}
.lmc-fin-profil b{font-size:18px}
.lmc-rejouer{display:flex;gap:6px;flex-wrap:wrap;align-items:center;justify-content:center;margin:8px 0}
.lmc-maq input{width:100%}

/* ---- Téléphone ---- */
@media (max-width:560px){
  .lmc-tubes{gap:3px}
  .lmc-tube{padding:3px 0}
  .lmc-tube-verre{width:34px;height:120px}
  .lmc-tube b{font-size:11px}
  .lmc-tube-m{font-size:10.5px}
  .lmc-tube em{font-size:10px}
  .lmc-trait i{font-size:8.5px}
  .lmc-dest,.lmc-dest.dest-6{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lmc-caisse-m{font-size:17px}
  .lmc-coulee{padding:8px}
  .lmc-jauge{grid-template-columns:1fr auto}
  .lmc-jauge-barre{grid-column:1/-1;grid-row:2}
}
/* ==== lmc : fin des styles ==== */
/* ==== ksp : debut des styles ====
   « Kass pa la tèt ! » — préfixe ksp-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.ksp). Couleurs : les encres
   d'un atelier d'impression (cyan, magenta, jaune) sur fond d'atelier. */
.ksp .pdl-cta{background:linear-gradient(135deg,#0891b2,#db2777);box-shadow:0 6px 18px rgba(219,39,119,.3)}
.ksp .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(219,39,119,.4)}
.ksp .pdl-cta.alt{background:#fff;color:#0f172a;border:2px solid #0891b2;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.ksp .pdl-decor{background:linear-gradient(135deg,#155e75,#1e293b 60%,#9d174d)}
.ksp-panneau{color:#0f172a}
.ksp .ksp-panneau-large{max-width:1180px;width:100%}
.ksp-photo-ico{display:inline-grid;place-items:center;font-size:30px;background:#cffafe;border-radius:50%}
.ksp .pdl-bulle-photo.ksp-photo-ico{width:64px;height:64px;flex:0 0 64px}
.ksp .pdl-hud-moi .ksp-photo-ico{width:36px;height:36px;font-size:20px;border:2px solid #facc15}
.ksp-perso-img{width:100%;aspect-ratio:3/3.4;object-fit:cover;display:block}
.ksp-perso-img.ksp-photo-ico{display:grid;font-size:64px;border-radius:0;background:linear-gradient(160deg,#cffafe,#fce7f3)}
.ksp-note{font-size:13.5px;color:#475569;margin:8px 0}
.ksp-ko{color:#b45309;font-weight:700;margin:8px 0}
.ksp-petit{font:inherit;font-weight:700;font-size:13.5px;background:#f1f5f9;border:2px solid #cbd5e1;border-radius:10px;padding:6px 12px;cursor:pointer;color:#0f172a}
.ksp-petit:hover,.ksp-petit.on{border-color:#0891b2;background:#ecfeff}
.ksp .ksp-hud-prog{gap:4px}
.ksp .ksp-hud-prog em{font-style:normal;font-size:14px;margin:0 2px 0 6px}
.ksp-mode-note{font-size:12.5px;font-weight:800;color:#9d174d;background:#fce7f3;border-radius:99px;padding:4px 10px}
.ksp-tm-notion{color:#fef9c3;font-weight:700;margin:6px 0 12px;font-size:15px}
.ksp-fil{display:flex;gap:6px;justify-content:center;margin:0 0 10px;flex-wrap:wrap}
.ksp-fil span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.35);font-size:15px;opacity:.7}
.ksp-fil .ksp-fil-fait{background:#bbf7d0;opacity:1}
.ksp-fil .ksp-fil-ici{background:#fff;opacity:1;box-shadow:0 0 0 3px #db2777}

/* ---- L'accueil : deux portes ---- */
.ksp-portes{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:14px 0}
.ksp-porte{font:inherit;text-align:left;display:flex;flex-direction:column;gap:4px;background:#fff;color:#0f172a;border:3px solid #06b6d4;border-radius:16px;padding:14px;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.2);transition:transform .15s}
.ksp-porte:hover{transform:translateY(-3px)}
.ksp-porte b{font-size:19px}
.ksp-porte span{font-weight:800;font-size:13px;color:#0e7490}
.ksp-porte i{font-style:normal;font-size:13.5px;color:#475569}
.ksp-porte-2{border-color:#db2777}
.ksp-porte-2 span{color:#be185d}

/* ---- La journée ---- */
.ksp-jour,.ksp-carte,.ksp-outils,.ksp-paniers{display:flex;flex-direction:column;gap:12px;text-align:left;position:relative}
.ksp-jour-tete{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.ksp-jour-tete h3{margin:0;font-size:20px}
.ksp-horloge{font-size:15px;background:#0f172a;color:#facc15;border-radius:10px;padding:5px 12px;font-variant-numeric:tabular-nums}
.ksp-consigne{background:#ecfeff;border-left:5px solid #0891b2;border-radius:10px;padding:10px 12px}
.ksp-consigne p{margin:0 0 8px;font-size:15px;line-height:1.45}
.ksp-consigne p:last-child{margin-bottom:0}
.ksp-consigne .pdl-cta{margin-top:4px}
.ksp-compteurs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.ksp-cpt{background:#f8fafc;border:2px solid #e2e8f0;border-radius:12px;padding:6px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:1px}
.ksp-cpt span{font-size:18px}
.ksp-cpt b{font-size:18px;font-variant-numeric:tabular-nums}
.ksp-cpt i{font-style:normal;font-size:11.5px;color:#64748b;line-height:1.2}
.ksp-cpt-mal{border-color:#fca5a5;background:#fef2f2}
.ksp-toast{position:sticky;top:6px;z-index:6;background:#0f172a;color:#fff;font-size:14px;font-weight:700;line-height:1.35;border-radius:10px;padding:8px 12px;box-shadow:0 6px 14px rgba(0,0,0,.3);animation:ksp-pop .25s}
.ksp-dernier{margin:0;font-size:14px;font-weight:700;background:#fef9c3;border-radius:10px;padding:6px 10px;animation:ksp-pop .3s}
.ksp-dernier span{margin-right:2px}
.ksp-commandes{display:flex;gap:8px;flex-wrap:wrap}
.ksp-journal{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:13.5px}
.ksp-journal li{background:#f8fafc;border-radius:8px;padding:5px 8px;display:flex;gap:6px;align-items:flex-start;animation:ksp-pop .3s}
.ksp-journal li:first-child{background:#fef9c3;font-weight:600}
.ksp-bloque{background:#fff1f2;border:2px solid #fb7185;border-radius:12px;padding:10px 12px}
.ksp-bloque p{margin:0 0 8px;font-size:14.5px}
@keyframes ksp-pop{from{transform:scale(.96);opacity:0}to{transform:none;opacity:1}}

/* ---- LA CHAÎNE EN COULOIRS ---- */
.ksp-chaine{display:grid;grid-template-columns:132px minmax(0,1fr);gap:0;background:#fff;border:3px solid #0f172a;border-radius:14px;overflow:hidden;box-shadow:0 10px 24px rgba(0,0,0,.18)}
.ksp-couloirs{display:grid;grid-auto-flow:row;border-right:3px solid #0f172a}
.ksp-couloir{font:inherit;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;padding:4px 8px;border:0;border-bottom:1px dashed #94a3b8;text-align:left;color:#0f172a;cursor:default}
.ksp-couloir:last-child{border-bottom:0}
.ksp-couloir.ksp-cliquable{cursor:pointer}
.ksp-couloir.ksp-cliquable:hover{filter:brightness(.95);outline:3px solid #db2777;outline-offset:-3px}
.ksp-couloir b{font-size:13px;line-height:1.15}
.ksp-couloir-ico{font-size:20px}
.ksp-couloir i{font-style:normal;font-size:11px;font-weight:800;color:#9d174d;animation:ksp-clign 1s infinite alternate}
.ksp-occupe{box-shadow:inset 4px 0 0 #db2777}
.ksp-grille{position:relative;display:grid;min-width:0}
.ksp-grille>*{min-width:0}
.ksp-bande{border-bottom:1px dashed #94a3b8;z-index:0}
.ksp-bande:last-of-type{border-bottom:0}
.ksp-bande.ksp-cliquable{cursor:pointer}
.ksp-bande.ksp-cliquable:hover{filter:brightness(.95)}
.ksp-c-cli{background:#e0f2fe}
.ksp-c-sor{background:#fce7f3}
.ksp-c-dim{background:#fef3c7}
.ksp-c-jos{background:#ede9fe}
.ksp-c-log{background:#dcfce7}
.ksp-trait{width:100%;height:100%;z-index:1;pointer-events:none;overflow:visible}
.ksp-trait path{fill:none;stroke:#0f172a;stroke-width:3;stroke-dasharray:7 6;stroke-linejoin:round;opacity:.55;animation:ksp-flux 1.2s linear infinite}
@keyframes ksp-flux{to{stroke-dashoffset:-26}}
.ksp-case,.ksp-bout{position:relative;z-index:2;margin:5px;border-radius:12px;border:2px solid rgba(15,23,42,.25);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:4px 3px;text-align:center;font:inherit;color:#0f172a;min-height:58px;box-shadow:0 3px 8px rgba(0,0,0,.12)}
.ksp-case b,.ksp-bout b{font-size:11.5px;line-height:1.15;font-weight:700}
.ksp-case-ico{font-size:18px}
.ksp-case-n{position:absolute;top:-8px;left:-6px;background:#0f172a;color:#fff;font-size:10.5px;font-weight:800;border-radius:99px;min-width:18px;height:18px;display:grid;place-items:center;padding:0 4px}
.ksp-mode{position:absolute;top:-9px;right:-6px;font-style:normal;font-size:13px;background:#fff;border-radius:99px;width:22px;height:22px;display:grid;place-items:center;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.ksp-main{cursor:pointer;border-style:solid}
.ksp-main:hover{transform:translateY(-1px);border-color:#db2777}
.ksp-auto{border-style:dashed;cursor:default}
.ksp-case.ksp-a-faire{border-color:#db2777;animation:ksp-appel .9s infinite alternate}
@keyframes ksp-appel{from{box-shadow:0 0 0 0 rgba(219,39,119,.6)}to{box-shadow:0 0 0 6px rgba(219,39,119,0)}}
@keyframes ksp-clign{from{opacity:1}to{opacity:.45}}
.ksp-case.ksp-marque{outline:3px solid #f59e0b;outline-offset:1px}
.ksp-marque-ico{position:absolute;bottom:-9px;right:-4px;font-size:15px}
.ksp-bout{background:#0f172a;color:#fff;border-color:#0f172a}
.ksp-bout span{font-size:18px}
.ksp-bout i{font-style:normal;font-size:11px;color:#facc15;font-weight:700}
.ksp-res{background:#15803d;border-color:#15803d}
.ksp-jetons{display:flex;gap:2px;flex-wrap:wrap;justify-content:center;margin-top:2px}
.ksp-jeton{position:relative;background:#fff;border:2px solid #0891b2;border-radius:8px;min-width:24px;height:24px;display:grid;place-items:center;font-size:13px;overflow:hidden;animation:ksp-pop .25s}
.ksp-jeton.ksp-j-travail{border-color:#db2777}
.ksp-j-prog{position:absolute;left:0;bottom:0;height:4px;background:#db2777;transition:width .4s}
.ksp-jeton em{position:absolute;top:-4px;right:-5px;font-style:normal;font-size:11px}
.ksp-j-bloque{border-color:#e11d48;background:#ffe4e6}
.ksp-j-fache{border-color:#f97316}
.ksp-plus{font-size:11px;font-weight:800;align-self:center}
/* Téléphone : une colonne par acteur, les étapes de haut en bas. */
.ksp-chaine.ksp-vertical{grid-template-columns:1fr;grid-template-rows:auto auto}
.ksp-vertical .ksp-couloirs{grid-auto-flow:column;border-right:0;border-bottom:3px solid #0f172a}
.ksp-vertical .ksp-couloir{min-height:0;align-items:center;text-align:center;border-bottom:0;border-right:1px dashed #94a3b8;padding:4px 2px}
.ksp-vertical .ksp-couloir:last-child{border-right:0}
.ksp-vertical .ksp-couloir b{font-size:11px}
.ksp-vertical .ksp-couloir-ico{font-size:17px}
.ksp-vertical .ksp-bande{border-bottom:0;border-right:1px dashed #94a3b8}
.ksp-vertical .ksp-case,.ksp-vertical .ksp-bout{margin:5px 3px;min-height:54px}
.ksp-vertical .ksp-case b,.ksp-vertical .ksp-bout b{font-size:10.5px}

/* ---- Le bilan d'une journée ---- */
.ksp-bilan b{display:block;margin-bottom:6px}
.ksp-bilan-t{width:100%;border-collapse:collapse;font-size:14px;margin:6px 0 10px;background:#fff;border-radius:10px;overflow:hidden}
.ksp-bilan-t th,.ksp-bilan-t td{padding:5px 8px;border-bottom:1px solid #e2e8f0;text-align:left}
.ksp-bilan-t th{background:#f1f5f9;font-size:12.5px}
.ksp-mieux{color:#15803d;font-weight:800}
.ksp-pire{color:#b91c1c;font-weight:800}

/* ---- Les cartes d'événement et la panne ---- */
.ksp-evt-fond{position:fixed;inset:0;z-index:50;background:rgba(15,23,42,.6);display:flex;align-items:flex-start;justify-content:center;padding:16px;overflow:auto}
.ksp-evt{background:#fffdf5;border:4px solid #0f172a;border-radius:18px;max-width:640px;width:100%;padding:16px;box-shadow:0 20px 40px rgba(0,0,0,.4);animation:ksp-tombe .4s;color:#0f172a;text-align:left}
@keyframes ksp-tombe{from{transform:translateY(-40px) rotate(-3deg);opacity:0}to{transform:none;opacity:1}}
.ksp-evt-tete{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.ksp-evt-tete span{font-size:30px}
.ksp-evt-tete b{font-size:19px}
.ksp-evt-tete i{font-style:normal;font-size:12px;font-weight:800;color:#9d174d;background:#fce7f3;border-radius:99px;padding:3px 9px;margin-left:auto}
.ksp-evt-txt{font-size:15.5px;line-height:1.5;margin:0 0 8px}
.ksp-tampons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0}
.ksp-tampon{font:inherit;font-size:18px;font-weight:900;letter-spacing:1px;padding:14px 8px;border-radius:12px;border:4px double;cursor:pointer;background:#fff;transform:rotate(-2deg);transition:transform .15s}
.ksp-tampon:hover:not(:disabled){transform:rotate(0) scale(1.03)}
.ksp-t-agilite{color:#0e7490;border-color:#0891b2}
.ksp-t-rigidite{color:#9f1239;border-color:#e11d48}
.ksp-tampon.bon{background:#dcfce7;animation:ksp-tamp .35s}
.ksp-tampon.faux{background:#fee2e2;opacity:.7}
@keyframes ksp-tamp{0%{transform:scale(1.4) rotate(-8deg)}100%{transform:rotate(-2deg)}}

/* ---- La carte à tracer ---- */
.ksp-doc-journee{background:#fffbeb;border-left:5px solid #f59e0b;border-radius:10px;padding:10px 12px;font-size:15px;line-height:1.5}
.ksp-doc-journee b{display:block;margin-bottom:4px}
.ksp-doc-journee p{margin:0}
.ksp-pile{display:flex;flex-wrap:wrap;gap:8px}
.ksp-pile-carte{font:inherit;display:flex;flex-direction:column;align-items:flex-start;gap:2px;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:8px 10px;cursor:pointer;text-align:left;max-width:240px;box-shadow:0 3px 8px rgba(0,0,0,.1);transform:rotate(-1deg)}
.ksp-pile-carte:nth-child(even){transform:rotate(1deg)}
.ksp-pile-carte span{font-size:20px}
.ksp-pile-carte b{font-size:14px}
.ksp-pile-carte i{font-style:normal;font-size:12px;color:#64748b}
.ksp-pile-carte.on{border-color:#db2777;background:#fdf2f8;transform:translateY(-3px) rotate(0);box-shadow:0 8px 16px rgba(219,39,119,.25)}
.ksp-carte-msg{margin:0;font-weight:700;font-size:14.5px;background:#fff7ed;border-radius:10px;padding:8px 12px;color:#9a3412}
.ksp-carte-msg.ksp-msg-ok{background:#f0fdf4;color:#166534}
.ksp-bouts{display:flex;flex-direction:column;gap:10px}
.ksp-consigne-p{margin:0;font-weight:700}
.ksp-note-1{display:block;margin-top:6px;font-weight:800}

/* ---- Brancher les outils ---- */
.ksp-probleme,.ksp-tache{display:flex;gap:10px;align-items:flex-start;background:#fff1f2;border:2px solid #fda4af;border-radius:14px;padding:10px 12px}
.ksp-probleme span,.ksp-tache span{font-size:28px}
.ksp-probleme p,.ksp-tache p{margin:0;font-size:15.5px;line-height:1.45;flex:1}
.ksp-tache{background:#f0f9ff;border-color:#7dd3fc}
.ksp-catalogue{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px}
.ksp-outil{font:inherit;text-align:left;display:flex;flex-direction:column;gap:3px;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:10px;cursor:pointer;color:#0f172a}
.ksp-outil:hover:not(:disabled){border-color:#0891b2;transform:translateY(-2px)}
.ksp-outil span{font-size:22px}
.ksp-outil b{font-size:14.5px}
.ksp-outil i{font-style:normal;font-size:12.5px;color:#475569;line-height:1.3}
.ksp-outil.bon,.ksp-panier.bon{border-color:#16a34a;background:#f0fdf4}
.ksp-outil.faux,.ksp-panier.faux{border-color:#ef4444;background:#fef2f2}
.ksp-outil.eteint,.ksp-panier.eteint{opacity:.45}
.ksp-legende{margin:0;font-size:13px;color:#475569}

/* ---- Les paniers de l'IA ---- */
.ksp-paniers-l{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ksp-panier{font:inherit;display:flex;flex-direction:column;align-items:center;gap:4px;background:#fff;border:3px dashed #94a3b8;border-radius:16px;padding:12px 6px;cursor:pointer;color:#0f172a;text-align:center}
.ksp-panier:hover:not(:disabled){border-color:#0891b2}
.ksp-panier span{font-size:26px}
.ksp-panier b{font-size:13.5px;line-height:1.25}
.ksp-paniers-recap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;font-size:12.5px}
.ksp-paniers-recap>div{background:#f8fafc;border-radius:10px;padding:6px 8px}
.ksp-paniers-recap ul{margin:4px 0 0;padding-left:16px}

/* ---- Calcul, aide ---- */
.ksp-rappel{background:#f1f5f9;border-radius:10px;padding:8px 12px;font-size:14.5px;line-height:1.45;margin:6px 0}
.ksp-formule{background:#fffbeb;border-left:4px solid #f59e0b;border-radius:8px;padding:8px 12px;margin:8px 0;font-size:14.5px;line-height:1.4}
.ksp-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ksp-saisie input{font:inherit;font-size:18px;width:140px;padding:8px 10px;border:2px solid #94a3b8;border-radius:10px}
.ksp-aide{border:2px dashed #f59e0b;border-radius:12px;margin:8px 0;background:#fffdf5}
.ksp-aide-bouton{font:inherit;width:100%;display:flex;justify-content:space-between;gap:8px;align-items:center;background:none;border:0;padding:8px 12px;font-weight:800;cursor:pointer;color:#92400e;text-align:left}
.ksp-aide-bouton span{font-weight:600;font-size:12.5px;color:#a16207}
.ksp-aide-corps{padding:0 12px 10px;font-size:14.5px}
.ksp-aide-corps p{margin:4px 0}
.ksp-aide-formule{font-weight:700;color:#166534}

/* ---- Le ticket de réparation ---- */
.ksp-ticket{background:#fffdf5;border:3px dashed #0f172a;border-radius:6px;padding:14px;position:relative;text-align:left}
.ksp-ticket-tete{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-family:"Courier New",monospace;font-weight:900;letter-spacing:1px}
.ksp-ticket-tete span{font-family:inherit;font-size:12px;background:#0f172a;color:#facc15;border-radius:4px;padding:2px 8px}
.ksp-ticket-l{display:flex;flex-direction:column;gap:8px}
.ksp-ticket-o{font:inherit;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:8px;padding:10px 12px;cursor:pointer;font-size:15px;color:#0f172a}
.ksp-ticket-o:hover:not(:disabled){border-color:#db2777}
.ksp-ticket-o.bon{border-color:#16a34a;background:#f0fdf4}
.ksp-ticket-o.faux{border-color:#ef4444;background:#fef2f2}
.ksp-ticket-doc{display:flex;flex-direction:column;gap:3px;background:#fffdf5;border:2px dashed #0f172a;border-radius:6px;padding:8px 10px;margin:6px 0;text-align:left;color:#0f172a}
.ksp-ticket-doc span{font-size:13.5px}
.ksp-ticket-doc em{font-size:12.5px;color:#0e7490}

/* ---- Documents, tableau de bord, bravo, fins ---- */
.ksp-badge{background:#fff;border-radius:16px;overflow:hidden;border:3px solid #0f172a;max-width:420px;margin:0 auto 12px;color:#0f172a;text-align:left}
.ksp-badge-haut{background:linear-gradient(90deg,#06b6d4,#db2777,#facc15);color:#fff;padding:8px 12px;display:flex;flex-direction:column}
.ksp-badge-haut b{font-size:20px;letter-spacing:3px}
.ksp-badge-haut span{font-size:11.5px;font-weight:700}
.ksp-badge-corps{display:flex;gap:12px;padding:12px;align-items:center}
.ksp-badge-corps>div{display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.ksp-badge-corps b{font-size:18px}
.ksp-badge-photo{width:84px;height:96px;object-fit:cover;border-radius:10px;flex:0 0 84px}
.ksp-badge-photo.ksp-photo-ico{border-radius:10px;font-size:44px}
.ksp-badge-mission{font-weight:700;color:#be185d}
.ksp-doc{background:#fff;border-radius:12px;padding:12px;color:#0f172a;text-align:left}
.ksp-doc-tete{display:flex;flex-direction:column;border-bottom:2px solid #0f172a;margin-bottom:8px;padding-bottom:4px}
.ksp-doc-tete span{font-size:12.5px;color:#64748b}
.ksp-bord{background:#fff;border-radius:14px;padding:10px;color:#0f172a;margin:10px 0}
.ksp-bord-t{font-weight:800;margin-bottom:8px}
.ksp-bord-l{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.ksp-indic{display:flex;flex-direction:column;gap:2px;border:2px solid #e2e8f0;border-radius:12px;padding:8px;text-align:center;background:#f8fafc}
.ksp-indic span{font-size:20px;font-weight:800}
.ksp-indic b{font-size:13px}
.ksp-indic i{font-style:normal;font-size:12px;color:#64748b}
.ksp-i-haut{border-color:#86efac;background:#f0fdf4}
.ksp-i-moyen{border-color:#fde68a;background:#fffbeb}
.ksp-i-bas{border-color:#fca5a5;background:#fef2f2}
.ksp-bravo-score{display:flex;flex-direction:column;align-items:center;margin:6px 0}
.ksp-bravo-score b{font-size:38px}
.ksp-fin-profil{background:#fff;color:#0f172a;border-radius:14px;padding:12px;margin:10px 0;text-align:left}
.ksp-fin-profil b{font-size:18px}
.ksp-rejouer{display:flex;gap:6px;flex-wrap:wrap;align-items:center;justify-content:center;margin:8px 0}
.ksp-maq{margin-top:10px}

/* ---- Téléphone ---- */
@media (max-width:720px){
  .ksp-compteurs{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ksp-compteurs .ksp-cpt:nth-child(n+4){grid-column:span 1}
  .ksp-cpt i{font-size:10.5px}
  .ksp-tampons{grid-template-columns:1fr}
  .ksp-paniers-l,.ksp-paniers-recap{grid-template-columns:1fr}
  .ksp-evt{padding:12px}
  .ksp-pile-carte{max-width:100%;flex:1 1 140px}
}
/* ==== ksp : fin des styles ==== */
/* ==== mte : debut des styles ====
   « Pass lo mo ! » — préfixe mte-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.mte). Couleurs : le blanc du
   tableau, le feutre violet de Tom, l'orange et le turquoise des tapis de
   saut. */
.mte .pdl-cta{background:linear-gradient(135deg,#f97316,#db2777);box-shadow:0 6px 18px rgba(219,39,119,.3)}
.mte .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(219,39,119,.4)}
.mte .pdl-cta.alt{background:#fff;color:#0f172a;border:2px solid #f97316;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.mte .pdl-decor{background:linear-gradient(135deg,#0f766e,#1e293b 60%,#9a3412)}
.mte-panneau{color:#0f172a}
.mte .mte-panneau-large{max-width:1100px;width:100%}
.mte-photo-ico{display:inline-grid;place-items:center;font-size:30px;background:#ccfbf1;border-radius:50%}
.mte .pdl-bulle-photo.mte-photo-ico{width:64px;height:64px;flex:0 0 64px}
.mte .pdl-hud-moi .mte-photo-ico{width:36px;height:36px;font-size:20px;border:2px solid #fbbf24}
.mte-perso-img{width:100%;aspect-ratio:3/3.4;object-fit:cover;display:block}
.mte-perso-img.mte-photo-ico{display:grid;font-size:64px;border-radius:0;background:linear-gradient(160deg,#ccfbf1,#fed7aa)}
.mte-note{font-size:13.5px;color:#475569;margin:8px 0}
.mte-ok{color:#15803d;font-weight:700;margin:8px 0}
.mte-ko{color:#b45309;font-weight:700;margin:8px 0}
.mte-pas{font:inherit;font-weight:700;font-size:13.5px;background:#f1f5f9;border:2px solid #cbd5e1;border-radius:10px;padding:5px 11px;cursor:pointer;color:#0f172a}
.mte-pas:hover{border-color:#f97316;background:#fff7ed}
.mte-tete-pas{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;font-weight:800;color:#7c3aed;font-size:16px}
.mte-tete-pas span{font-weight:600;font-size:12.5px;color:#64748b;background:#f1f5f9;border-radius:99px;padding:3px 10px}
.mte .mte-hud-prog{gap:4px}
.mte .mte-hud-prog em{font-style:normal;font-size:14px;margin:0 2px 0 6px}

/* ---- L'accueil : deux portes ---- */
.mte-portes{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:14px 0}
.mte-porte{font:inherit;text-align:left;display:flex;flex-direction:column;gap:4px;background:#fff;color:#0f172a;border:3px solid #14b8a6;border-radius:16px;padding:14px;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.2);transition:transform .15s}
.mte-porte:hover{transform:translateY(-3px)}
.mte-porte b{font-size:19px}
.mte-porte span{font-weight:800;font-size:13px;color:#0f766e}
.mte-porte i{font-style:normal;font-size:13.5px;color:#475569}
.mte-porte-2{border-color:#f97316}
.mte-porte-2 span{color:#c2410c}

/* ---- La journée ---- */
.mte-journee,.mte-rate{display:flex;flex-direction:column;gap:12px;text-align:left}
.mte-journee-tete{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.mte-journee-tete h3{margin:0;font-size:20px}
.mte-mode{font-size:12.5px;font-weight:800;color:#9a3412;background:#ffedd5;border-radius:99px;padding:4px 10px}
.mte-consigne{display:flex;gap:8px;align-items:flex-start;background:#f5f3ff;border-left:5px solid #7c3aed;border-radius:10px;padding:8px 12px}
.mte-consigne p{margin:0;font-size:15px;line-height:1.45;flex:1}
.mte-plan{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);grid-template-areas:"tab sit" "tab cote";grid-template-rows:auto 1fr;column-gap:14px;row-gap:0;align-items:start}
.mte-plan-tab{grid-area:tab;min-width:0}
.mte-sit{grid-area:sit;min-width:0;margin-bottom:10px}
.mte-plan>.mte-cote{grid-area:cote}
.mte-astuce{position:sticky;top:6px;z-index:5;background:#0f172a;color:#fff;font-size:13.5px;font-weight:700;line-height:1.35;border-radius:10px;padding:8px 12px;box-shadow:0 6px 14px rgba(0,0,0,.3);animation:mte-pop .25s}
.mte-aimant.mte-inactif{cursor:default}
.mte-aimant.mte-inactif:hover{transform:none;border-color:#e2e8f0}
.mte-formule{background:#fffbeb;border-left:4px solid #f59e0b;border-radius:8px;padding:8px 12px;margin:8px 0;font-size:14.5px;line-height:1.4}
.mte-cote{display:flex;flex-direction:column;gap:10px;min-width:0}

/* ---- Le tableau blanc ---- */
.mte-tableau{position:relative;background:#fdfdfb;border:10px solid #cbd5e1;border-radius:14px;padding:10px;box-shadow:inset 0 0 30px rgba(15,23,42,.06),0 10px 24px rgba(0,0,0,.25);display:flex;flex-direction:column;gap:10px;color:#7c3aed}
.mte-zone{border:2px dashed #94a3b8;border-radius:12px;padding:8px}
.mte-zone-in{background:rgba(20,184,166,.07);border-color:#14b8a6}
.mte-zone-out{background:rgba(249,115,22,.06);border-color:#fb923c}
.mte-zone-t{font-family:"Comic Sans MS","Segoe Print",cursive;font-weight:800;font-size:13px;color:#334155;margin-bottom:6px;letter-spacing:.5px}
.mte-aimants{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.mte-aimant{font:inherit;position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border:3px solid #e2e8f0;border-radius:14px;padding:8px 4px 6px;cursor:pointer;color:#0f172a;box-shadow:0 3px 0 rgba(0,0,0,.15);transition:transform .12s,border-color .12s;min-height:96px}
.mte-aimant:hover:not(:disabled){transform:translateY(-2px);border-color:#a78bfa}
.mte-aimant:disabled{cursor:default}
.mte-aimant b{font-size:13px;line-height:1.15;text-align:center}
.mte-aimant i{font-style:normal;font-size:11px;color:#64748b;line-height:1.15;text-align:center}
.mte-aimant-photo{width:44px;height:44px;border-radius:50%;object-fit:cover;border:2px solid #fff;box-shadow:0 0 0 2px #cbd5e1}
.mte-aimant-photo.mte-photo-ico{font-size:24px;box-shadow:none}
.mte-aimant-org{background:#f5f3ff}
.mte-aimant-de{border-color:#7c3aed;box-shadow:0 0 0 3px rgba(124,58,237,.3)}
.mte-aimant-a{border-color:#db2777;box-shadow:0 0 0 3px rgba(219,39,119,.3)}
.mte-role{position:absolute;z-index:3;top:-9px;left:50%;transform:translateX(-50%);font-style:normal;font-size:9.5px;font-weight:900;letter-spacing:.5px;color:#fff;background:#7c3aed;border-radius:99px;padding:1px 7px;white-space:nowrap}
.mte-aimant-a .mte-role{background:#db2777}
.mte-visage{position:absolute;top:4px;right:4px;font-size:17px;animation:mte-pop .4s cubic-bezier(.2,1.6,.4,1)}
.mte-s-ok{border-color:#22c55e;background:#f0fdf4}
.mte-s-demi{border-color:#f59e0b;background:#fffbeb}
.mte-s-ko{border-color:#ef4444;background:#fef2f2}
.mte-s-vexe{border-color:#b91c1c;background:#fee2e2;animation:mte-secoue .5s}
@keyframes mte-pop{0%{transform:scale(0)}100%{transform:scale(1)}}
@keyframes mte-secoue{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
.mte-reponse{position:absolute;z-index:3;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);width:170px;background:#0f172a;color:#fff;font-size:12px;line-height:1.3;border-radius:10px;padding:6px 8px;box-shadow:0 6px 14px rgba(0,0,0,.3);animation:mte-pop .35s .7s both}
.mte-reponse::after{content:"";position:absolute;top:100%;left:50%;margin-left:-6px;border:6px solid transparent;border-top-color:#0f172a}
.mte-fleche{position:absolute;left:0;top:0;pointer-events:none;overflow:visible;z-index:2;color:#7c3aed}
.mte-trait{stroke-dasharray:600;stroke-dashoffset:600;animation:mte-trace .6s ease-out forwards}
@keyframes mte-trace{to{stroke-dashoffset:0}}
.mte-forme{position:absolute;z-index:2;transform:translate(-50%,-50%);background:#7c3aed;color:#fff;font-size:11.5px;font-weight:800;border-radius:99px;padding:2px 9px;white-space:nowrap;pointer-events:none;box-shadow:0 2px 6px rgba(0,0,0,.25)}
.mte-env{position:absolute;left:0;top:0;z-index:4;font-size:26px;margin:-16px 0 0 -14px;animation:mte-vol .9s ease-in-out forwards;pointer-events:none}
@keyframes mte-vol{from{transform:translate(var(--x1),var(--y1)) scale(.6)}60%{transform:translate(calc((var(--x1) + var(--x2)) / 2),calc((var(--y1) + var(--y2)) / 2 - 30px)) scale(1.2)}to{transform:translate(var(--x2),var(--y2)) scale(0);opacity:.2}}

/* ---- Le panneau de la situation ---- */
.mte-situation,.mte-choix-t,.mte-verdict{background:#fff;border:2px solid #e2e8f0;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:8px}
.mte-moment{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-weight:900;color:#0f766e;font-size:15px}
.mte-moment span{font-weight:700;font-size:12px;color:#64748b}
.mte-carte{display:flex;gap:10px;align-items:flex-start;background:#fef9c3;border-radius:10px;padding:10px;box-shadow:0 3px 8px rgba(0,0,0,.08);transform:rotate(-.6deg)}
.mte-carte p{margin:0;font-size:15px;line-height:1.45;font-weight:600;flex:1}
.mte-carte-ico{font-size:28px}
.mte-etapes{margin:0;padding-left:22px;font-size:14px;color:#64748b;display:flex;flex-direction:column;gap:2px}
.mte-etapes .ici{color:#7c3aed;font-weight:800}
.mte-etapes .fait{color:#15803d;text-decoration:line-through;text-decoration-color:rgba(21,128,61,.4)}
.mte-ma-fleche{margin:0;font-size:14px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.mte-cartes{display:flex;flex-direction:column;gap:6px}
.mte-cartes-t{font-weight:800;font-size:14px;color:#334155}
.mte-opt{font:inherit;display:flex;gap:8px;align-items:flex-start;text-align:left;background:#f8fafc;border:2px solid #cbd5e1;border-radius:10px;padding:8px 10px;cursor:pointer;color:#0f172a;font-size:14px;line-height:1.35}
.mte-opt:hover{border-color:#a78bfa}
.mte-opt span{flex:0 0 auto;font-size:17px}
.mte-opt-msg span{font-size:12px;font-weight:900;width:22px;height:22px;display:grid;place-items:center;background:#e2e8f0;border-radius:50%}
.mte-opt.on{border-color:#7c3aed;background:#f5f3ff;box-shadow:0 0 0 3px rgba(124,58,237,.2)}
.mte-envoyer{font:inherit;font-weight:900;font-size:18px;color:#fff;background:linear-gradient(135deg,#7c3aed,#db2777);border:0;border-radius:14px;padding:12px;cursor:pointer;box-shadow:0 6px 16px rgba(124,58,237,.35)}
.mte-envoyer:disabled{opacity:.4;cursor:not-allowed;box-shadow:none}
.mte-taches{display:flex;flex-direction:column;gap:8px}
.mte-tache{font:inherit;display:grid;grid-template-columns:auto 1fr;gap:2px 10px;text-align:left;background:#fef9c3;border:0;border-radius:10px;padding:10px;cursor:pointer;color:#0f172a;box-shadow:0 3px 8px rgba(0,0,0,.1);transition:transform .12s}
.mte-tache:hover{transform:rotate(-1deg) scale(1.01)}
.mte-tache span{grid-row:span 2;font-size:26px}
.mte-tache b{font-size:15px}
.mte-tache i{font-style:normal;font-size:13px;color:#475569}
.mte-fait{margin:0;font-size:13px;color:#15803d;font-weight:700}
.mte-verdict-t{font-weight:900;font-size:17px;color:#7c3aed;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.mte-verdict-t span{font-size:13px;color:#0f172a;background:#f1f5f9;border-radius:99px;padding:2px 10px}
.mte-v{display:flex;gap:8px;align-items:flex-start;border-radius:10px;padding:7px 9px;background:#f8fafc;border-left:5px solid #cbd5e1}
.mte-v b{font-size:13.5px}
.mte-v p{margin:2px 0 0;font-size:13.5px;line-height:1.4}
.mte-v-ico{font-size:17px}
.mte-v-ok{border-left-color:#22c55e;background:#f0fdf4}
.mte-v-demi{border-left-color:#f59e0b;background:#fffbeb}
.mte-v-ko{border-left-color:#ef4444;background:#fef2f2}
.mte-rx{margin:0;font-size:14px;background:#0f172a;color:#fff;border-radius:12px;padding:8px 10px;display:flex;gap:6px;align-items:flex-start;flex-wrap:wrap}
.mte-rx span{font-size:18px}
.mte-rx-vexe{background:#7f1d1d}
.mte-bilan{text-align:left}
.mte-bilan-l{margin:6px 0;padding-left:20px;font-size:14px}
.mte-bilan-btns{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.mte-note-1{font-weight:800}
.mte-rate-l{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:8px}
.mte-rate-l li{background:#fff;border-radius:10px;padding:8px 10px;border-left:5px solid #ef4444;font-size:13.5px;line-height:1.35;display:flex;flex-direction:column;gap:3px}
.mte-rate-l .mte-rate-demi{border-left-color:#f59e0b}
.mte-rate-l .mte-rate-ok{border-left-color:#22c55e}
.mte-rate-l em{font-style:normal;font-weight:700;color:#7f1d1d}

/* ---- Aide, saisie, rappel, fil ---- */
.mte-aide{border:2px dashed #fcd34d;background:#fffbeb;border-radius:12px;margin:0 0 12px;text-align:left}
.mte-aide-bouton{width:100%;display:flex;justify-content:space-between;gap:8px;background:none;border:0;font:inherit;font-weight:800;padding:9px 12px;cursor:pointer;color:#92400e}
.mte-aide-bouton span{font-weight:600;font-size:12.5px;color:#a16207}
.mte-aide-corps{padding:0 12px 12px;font-size:14.5px}
.mte-aide-corps p{margin:8px 0}
.mte-aide-formule{background:#fff;border-left:4px solid #f59e0b;padding:6px 10px;font-weight:700}
.mte-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}
.mte-saisie input{font:inherit;font-size:19px;font-weight:700;width:140px;max-width:100%;padding:7px 10px;border-radius:10px;border:2px solid #cbd5e1;text-align:right}
.mte-saisie input:focus{outline:none;border-color:#7c3aed;box-shadow:0 0 0 3px rgba(124,58,237,.25)}
.mte-saisie span{font-weight:700;color:#475569}
.mte-saisie .pdl-cta{margin:0}
.mte-calcul{text-align:left}
.mte-rappel{background:#ecfeff;border:1px solid #a5f3fc;border-left:5px solid #0891b2;border-radius:10px;padding:8px 12px;margin:8px 0;font-size:15px;line-height:1.45}
.mte-fil{display:flex;gap:6px;justify-content:center;margin:0 0 10px}
.mte-fil span{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.35);font-size:15px;opacity:.6}
.mte-fil .mte-fil-fait{background:#bbf7d0;opacity:1}
.mte-fil .mte-fil-ici{background:#fff;opacity:1;box-shadow:0 0 0 3px #facc15}

/* ---- Le mur des questions ---- */
.mte-epingle .pdl-qcm-q{margin:8px 0}
.mte-postits{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:10px 0}
.mte-postit{font:inherit;font-weight:700;font-size:14.5px;line-height:1.35;text-align:left;background:#fef08a;border:0;border-radius:4px;padding:16px 12px 12px;cursor:pointer;transform:rotate(var(--r,0deg));box-shadow:0 6px 14px rgba(0,0,0,.18);position:relative;color:#0f172a;transition:transform .2s}
.mte-postit::before{content:"📌";position:absolute;top:-10px;left:50%;margin-left:-8px;font-size:16px}
.mte-postit:hover:not(:disabled){transform:rotate(0) scale(1.03)}
.mte-postit:disabled{cursor:default}
.mte-pi-bon{background:#bbf7d0}
.mte-pi-faux{background:#fed7aa;opacity:.85}
.mte-mur{background:#f8fafc;border:8px solid #cbd5e1;border-radius:12px;padding:12px;text-align:left}
.mte-mur-t{color:#7c3aed;font-weight:800;margin-bottom:8px}
.mte-mur-grille{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.mte-mur-vide{border:2px dashed #cbd5e1;border-radius:6px;color:#94a3b8;display:grid;place-items:center;min-height:70px;font-size:13px}
.mte-mur-pi{background:#fef08a;border-radius:3px;padding:10px;font-size:13px;line-height:1.35;transform:rotate(var(--r,0deg));box-shadow:0 4px 10px rgba(0,0,0,.2);color:#0f172a}
.mte-mur-pi b{display:block}
.mte-mur-pi span{display:block;margin-top:6px;font-size:12.5px;color:#14532d}
.mte-mur-pi em{display:block;margin-top:6px;font-size:12px;font-style:normal;font-weight:700;color:#7c3aed}
.mte-mur-neuf{animation:mte-epingler .7s cubic-bezier(.2,1.4,.4,1)}
.mte-mur-moi{background:#ddd6fe;margin-top:10px}
@keyframes mte-epingler{0%{transform:translateY(-40px) rotate(-12deg) scale(1.3);opacity:0}100%{transform:rotate(var(--r,0deg));opacity:1}}

/* ---- Documents ---- */
.mte-doc{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:14px 16px;font-size:14.5px;line-height:1.5;color:#0f172a;text-align:left}
.mte-doc-tete{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;border-bottom:3px solid #f97316;padding-bottom:6px;margin-bottom:8px}
.mte-doc-tete b{letter-spacing:1px}
.mte-doc-tete span{font-size:12px;color:#64748b}
.mte-doc-sem{margin:8px 0}
.mte-doc-sem ul{margin:4px 0;padding-left:20px;font-size:13.5px}
.mte-badge{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 8px 20px rgba(0,0,0,.18);max-width:380px;margin:8px auto;color:#0f172a;text-align:left}
.mte-badge-haut{background:linear-gradient(135deg,#14b8a6,#f97316);color:#fff;padding:10px 14px}
.mte-badge-haut b{display:block;font-size:20px;letter-spacing:2px}
.mte-badge-haut span{font-size:11.5px;opacity:.95}
.mte-badge-corps{display:flex;gap:12px;padding:12px 14px;align-items:center}
.mte-badge-corps>div{display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.mte-badge-corps>div b{font-size:18px}
.mte-badge-photo{width:84px;height:100px;object-fit:cover;border-radius:8px;flex:0 0 84px}
.mte-badge-photo.mte-photo-ico{border-radius:8px;font-size:44px}
.mte-badge-mission{color:#7c3aed;font-weight:700}

/* ---- Bravo, tableau de bord, fins ---- */
.mte-bravo{text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center}
.mte-bravo .mte-mur,.mte-bravo .mte-bord{width:100%}
.mte-bravo-score b{font-size:40px;color:#db2777;display:block}
.mte-bord{background:#fff7ed;border:2px solid #fed7aa;border-radius:14px;padding:10px;text-align:left}
.mte-bord-t{font-weight:800;color:#c2410c;margin-bottom:6px}
.mte-bord-l{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px}
.mte-indic{background:#fff;border:2px solid #e2e8f0;border-radius:10px;padding:8px;display:flex;flex-direction:column;gap:2px;font-size:13px}
.mte-indic span{font-size:21px;font-weight:900}
.mte-indic i{font-style:normal;font-weight:700;color:#64748b}
.mte-i-haut{border-color:#22c55e;background:#f0fdf4}
.mte-i-moyen{border-color:#38bdf8}
.mte-i-bas{border-color:#f59e0b;background:#fffbeb}
.mte-tm-notion{color:#ccfbf1;font-size:14px;margin:4px 0 10px}
.mte-fin-profil{background:#ccfbf1;border-radius:14px;padding:12px 14px;text-align:left}
.mte-fin-profil b{font-size:20px;display:block}
.mte-fin-profil p{margin:6px 0 0}
.mte-fin .mte-mur,.mte-fin .mte-bord{margin:10px 0}
.mte-maq input{width:100%}
.mte-rejouer{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:center;margin:8px 0;font-size:13.5px;color:#475569}
.mte-rejouer .mte-pas{font-size:13px;padding:4px 10px}

@media (max-width:820px){
  .mte-plan{grid-template-columns:1fr;grid-template-areas:"sit" "tab" "cote";grid-template-rows:auto auto auto;row-gap:12px}
  .mte-sit{margin-bottom:0}
  /* Le tableau est atteint par un défilement : l'enveloppe, la réponse et le visage attendent qu'il soit à l'écran. */
  .mte-env{animation-delay:.55s;animation-fill-mode:both}
  .mte-reponse{animation-delay:1.3s}
  .mte-s-ok .mte-visage,.mte-s-demi .mte-visage,.mte-s-ko .mte-visage,.mte-s-vexe .mte-visage{animation-delay:.9s;animation-fill-mode:both}
  .mte-portes{grid-template-columns:1fr}
}
@media (max-width:420px){
  .mte-tableau{border-width:6px;padding:6px}
  .mte-aimants{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .mte-aimant{min-height:84px;padding:7px 2px 4px}
  .mte-aimant b{font-size:11.5px}
  .mte-aimant i{font-size:10px}
  .mte-aimant-photo{width:36px;height:36px}
  .mte-reponse{width:140px}
  .mte-forme{font-size:10.5px}
}
/* ==== mte : fin des styles ==== */
/* ==== dko : debut des styles ====
   « Dlo i koul ! » — préfixe dko-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.dko). Couleurs : le bleu de
   l'eau et l'orange des blocs d'un atelier de programmation. */
.dko .pdl-cta{background:linear-gradient(135deg,#0ea5e9,#1d4ed8);box-shadow:0 6px 18px rgba(29,78,216,.32)}
.dko .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(29,78,216,.42)}
.dko .pdl-cta.alt{background:#fff;color:#0f172a;border:2px solid #0ea5e9;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.dko .pdl-decor{background:linear-gradient(135deg,#0c4a6e,#1e293b 60%,#14532d)}
.dko-panneau{color:#0f172a}
.dko .dko-panneau-large{max-width:1000px;width:100%}
.dko-photo-ico{display:inline-grid;place-items:center;font-size:30px;background:#e0f2fe;border-radius:50%}
.dko .pdl-bulle-photo.dko-photo-ico{width:64px;height:64px;flex:0 0 64px}
.dko .pdl-hud-moi .dko-photo-ico{width:36px;height:36px;font-size:20px;border:2px solid #fbbf24}
.dko-perso-img{width:100%;aspect-ratio:3/3.4;object-fit:cover;display:block}
.dko-perso-img.dko-photo-ico{display:grid;font-size:64px;border-radius:0;background:linear-gradient(160deg,#e0f2fe,#fde68a)}
.dko-note{font-size:13.5px;color:#475569;margin:8px 0}
.dko-ok{color:#15803d;font-weight:700;margin:8px 0}
.dko-ko{color:#b45309;font-weight:700;margin:8px 0}
.dko-pas{font:inherit;font-weight:700;font-size:14px;background:#f1f5f9;border:2px solid #cbd5e1;border-radius:10px;padding:6px 12px;cursor:pointer;color:#0f172a}
.dko-pas:hover{border-color:#0ea5e9;background:#f0f9ff}
.dko-tete-pas{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;font-weight:800;color:#1d4ed8;font-size:16px}
.dko-tete-pas span{font-weight:600;font-size:12.5px;color:#64748b;background:#f1f5f9;border-radius:99px;padding:3px 10px}
.dko .dko-hud-prog{gap:4px}
.dko .dko-hud-prog em{font-style:normal;font-size:14px;margin:0 2px 0 6px}

/* ---- L'accueil : deux portes ---- */
.dko-portes{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:14px 0}
.dko-porte{font:inherit;text-align:left;display:flex;flex-direction:column;gap:4px;background:#fff;color:#0f172a;border:3px solid #0ea5e9;border-radius:16px;padding:14px;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.2);transition:transform .15s}
.dko-porte:hover{transform:translateY(-3px)}
.dko-porte b{font-size:19px}
.dko-porte span{font-weight:800;font-size:13px;color:#0369a1}
.dko-porte i{font-style:normal;font-size:13.5px;color:#475569}
.dko-porte-2{border-color:#f97316}
.dko-porte-2 span{color:#c2410c}

/* ---- L'atelier de blocs ---- */
.dko-atelier{display:flex;flex-direction:column;gap:12px;text-align:left}
.dko-atelier-tete{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.dko-atelier-tete h3{margin:0;font-size:20px}
.dko-atelier-mode{font-size:12.5px;font-weight:800;color:#9a3412;background:#ffedd5;border-radius:99px;padding:4px 10px}
.dko-consigne{display:flex;gap:8px;align-items:flex-start;background:#f0f9ff;border-left:5px solid #0ea5e9;border-radius:10px;padding:8px 12px}
.dko-consigne p{margin:0;font-size:15px;line-height:1.45;flex:1}
.dko-plan{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:14px;align-items:start}
.dko-prog{background:#1e293b;background-image:radial-gradient(rgba(255,255,255,.07) 1px,transparent 1px);background-size:16px 16px;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:8px}
.dko-prog-t{color:#e2e8f0;font-weight:800;display:flex;justify-content:space-between;gap:8px}
.dko-prog-t span{font-weight:600;font-size:12px;color:#94a3b8}
.dko-groupe{color:#fde68a;font-weight:800;font-size:13.5px;margin-top:6px}
.dko-ligne{font:inherit;position:relative;display:flex;flex-direction:column;align-items:stretch;gap:5px;text-align:left;background:#fff;border:3px solid transparent;border-left:10px solid var(--c);border-radius:6px 12px 12px 6px;padding:8px 34px 8px 10px;cursor:pointer;color:#0f172a;box-shadow:0 3px 0 rgba(0,0,0,.35);transition:transform .12s,border-color .12s}
.dko-ligne:hover{transform:translateX(3px)}
.dko-ligne-sel{border-color:#facc15;box-shadow:0 0 0 3px rgba(250,204,21,.35),0 3px 0 rgba(0,0,0,.35)}
.dko-chapeau{font-weight:800;font-size:14px;line-height:1.3}
.dko-alors{font-size:11px;font-weight:900;letter-spacing:1px;color:var(--c)}
.dko-prise{display:block;border:2px dashed #94a3b8;border-radius:8px;padding:7px 10px;color:#64748b;font-size:13.5px;font-weight:700}
.dko-ligne-marque{position:absolute;right:8px;top:8px;font-size:18px}
.dko-ligne-ok{border-color:#22c55e}
.dko-ligne-demi{border-color:#f59e0b}
.dko-ligne-ko{border-color:#ef4444;animation:dko-secoue .4s}
@keyframes dko-secoue{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
.dko-bloc{font:inherit;display:flex;gap:8px;align-items:center;text-align:left;width:100%;background:var(--c,#2563eb);color:#fff;font-weight:700;font-size:14px;line-height:1.3;border:0;border-radius:8px;padding:9px 12px;cursor:pointer;box-shadow:0 3px 0 rgba(0,0,0,.3);position:relative}
.dko-bloc i{font-style:normal;font-size:18px;flex:0 0 auto}
.dko-bloc::before{content:"";position:absolute;left:18px;top:-5px;width:16px;height:6px;background:inherit;border-radius:3px 3px 0 0}
.dko-bloc:disabled{opacity:.5;cursor:default}
.dko-bloc-pose{cursor:inherit;animation:dko-clac .35s cubic-bezier(.2,1.5,.4,1)}
@keyframes dko-clac{0%{transform:translateY(-14px) scale(1.05);opacity:.3}100%{transform:none;opacity:1}}
.dko-ligne .dko-bloc-pose{background:var(--c)}
.dko-boite-cote{position:sticky;top:8px}
.dko-boite{background:#f8fafc;border:2px solid #e2e8f0;border-radius:14px;padding:10px;display:flex;flex-direction:column;gap:8px}
.dko-boite-t{display:flex;justify-content:space-between;align-items:center;font-weight:800}
.dko-boite-t span{font-size:12px;color:#fff;background:var(--c);border-radius:99px;padding:2px 9px}
.dko-boite-pour{margin:0;font-size:13px;color:#475569}
.dko-boite .dko-bloc{background:var(--c)}
.dko-boite .dko-bloc:hover:not(:disabled){filter:brightness(1.1);transform:translateY(-1px)}
.dko-bloc-choisi{outline:3px solid #facc15;outline-offset:2px}
.dko-lancer{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.dko-play{font:inherit;font-weight:900;font-size:18px;color:#fff;background:linear-gradient(135deg,#22c55e,#15803d);border:0;border-radius:14px;padding:12px 22px;cursor:pointer;box-shadow:0 5px 0 #14532d;transition:transform .1s}
.dko-play:active:not(:disabled){transform:translateY(3px);box-shadow:0 2px 0 #14532d}
.dko-play:disabled{background:#94a3b8;box-shadow:0 5px 0 #64748b;cursor:default}
.dko-reste{font-size:13.5px;color:#64748b;font-weight:700}

/* ---- La journée qui se déroule ---- */
.dko-journee{background:#ecfeff;border:2px solid #a5f3fc;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:8px;scroll-margin-top:12px}
.dko-journee-t{display:flex;justify-content:space-between;align-items:center;gap:8px;font-weight:800;color:#0e7490}
.dko-vite{font-size:12.5px;padding:4px 10px}
.dko-tuyau{position:relative;display:flex;justify-content:space-around;align-items:flex-end;min-height:54px;padding:0 6px 14px;margin:2px 0 4px}
.dko-tuyau::before{content:"";position:absolute;left:0;right:0;bottom:4px;height:10px;background:#cbd5e1;border-radius:5px}
.dko-tuyau-eau{position:absolute;left:0;bottom:4px;height:10px;background:linear-gradient(90deg,#38bdf8,#2563eb);border-radius:5px;transition:width 1s ease;box-shadow:0 0 8px rgba(56,189,248,.7)}
.dko-maison{position:relative;font-size:24px;z-index:1;transition:transform .3s}
.dko-maison-ok{animation:dko-saute .5s}
.dko-maison-ko{filter:grayscale(.6)}
.dko-maison-ko::after{content:"💧";position:absolute;left:30%;top:100%;font-size:14px;animation:dko-goutte 1.2s infinite}
@keyframes dko-saute{50%{transform:translateY(-8px)}}
@keyframes dko-goutte{0%{transform:translateY(0);opacity:1}100%{transform:translateY(14px);opacity:0}}
.dko-ev{display:flex;gap:10px;background:#fff;border-radius:10px;padding:8px 10px;border-left:6px solid #94a3b8;animation:dko-arrive .4s ease}
.dko-ev-ok{border-left-color:#22c55e}
.dko-ev-demi{border-left-color:#f59e0b}
.dko-ev-ko{border-left-color:#ef4444}
@keyframes dko-arrive{0%{transform:translateY(10px);opacity:0}100%{transform:none;opacity:1}}
.dko-ev-h{flex:0 0 78px;font-weight:800;font-size:13px;color:#334155;display:flex;flex-direction:column;align-items:center;text-align:center}
.dko-ev-h span{font-size:24px}
.dko-ev-corps p{margin:2px 0;font-size:14.5px;line-height:1.4}
.dko-ev-txt{font-weight:700}
.dko-ev-bloc{color:#64748b;font-size:13px !important}
.dko-bilan-btns{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.dko-note-1{font-weight:800}

/* ---- Aide, saisie, rappel ---- */
.dko-aide{border:2px dashed #fcd34d;background:#fffbeb;border-radius:12px;margin:0 0 12px;text-align:left}
.dko-aide-bouton{width:100%;display:flex;justify-content:space-between;gap:8px;background:none;border:0;font:inherit;font-weight:800;padding:9px 12px;cursor:pointer;color:#92400e}
.dko-aide-bouton span{font-weight:600;font-size:12.5px;color:#a16207}
.dko-aide-corps{padding:0 12px 12px;font-size:14.5px}
.dko-aide-corps p{margin:8px 0}
.dko-aide-formule{background:#fff;border-left:4px solid #f59e0b;padding:6px 10px;font-weight:700}
.dko-aide-choix{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.dko-aide-bon{border-color:#22c55e;background:#f0fdf4}
.dko-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}
.dko-saisie input{font:inherit;font-size:19px;font-weight:700;width:140px;max-width:100%;padding:7px 10px;border-radius:10px;border:2px solid #cbd5e1;text-align:right}
.dko-saisie input:focus{outline:none;border-color:#0ea5e9;box-shadow:0 0 0 3px rgba(14,165,233,.25)}
.dko-saisie span{font-weight:700;color:#475569}
.dko-saisie .pdl-cta{margin:0}
.dko-calcul{text-align:left}
.dko-rappel{background:#ecfeff;border:1px solid #a5f3fc;border-left:5px solid #0891b2;border-radius:10px;padding:8px 12px;margin:8px 0;font-size:15px;line-height:1.45}
.dko-fil{display:flex;gap:6px;justify-content:center;margin:0 0 10px}
.dko-fil span{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.35);font-size:15px;opacity:.6}
.dko-fil .dko-fil-fait{background:#bbf7d0;opacity:1}
.dko-fil .dko-fil-ici{background:#fff;opacity:1;box-shadow:0 0 0 3px #facc15}

/* ---- La loupe ---- */
.dko-loupe{text-align:left}
.dko-mail{background:#fff;border:1px solid #cbd5e1;border-radius:8px;box-shadow:0 6px 18px rgba(0,0,0,.12);padding:10px;display:flex;flex-direction:column;gap:6px;font-family:Arial,Helvetica,sans-serif;margin:10px 0}
.dko-z{font:inherit;font-size:14.5px;text-align:left;background:#f8fafc;border:2px solid transparent;border-radius:6px;padding:7px 9px;cursor:pointer;color:#0f172a}
.dko-z:hover{border-color:#cbd5e1}
.dko-z-objet{font-weight:700}
.dko-z-lien{color:#1d4ed8;text-decoration:underline}
.dko-z-marque{border-color:#ef4444;background:#fef2f2}
.dko-z-marque::after{content:" 🚩"}
.dko-z-juste{box-shadow:inset 0 0 0 2px #22c55e}
.dko-z-faux{box-shadow:inset 0 0 0 2px #f59e0b}
.dko-z-why{display:block;margin-top:4px;font-size:13px;font-family:inherit;color:#334155;text-decoration:none}

/* ---- Le mur des questions ---- */
.dko-epingle .pdl-qcm-q{margin:8px 0}
.dko-postits{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:10px 0}
.dko-postit{font:inherit;font-weight:700;font-size:14.5px;line-height:1.35;text-align:left;background:#fef08a;border:0;border-radius:4px;padding:16px 12px 12px;cursor:pointer;transform:rotate(var(--r,0deg));box-shadow:0 6px 14px rgba(0,0,0,.18);position:relative;color:#0f172a;transition:transform .2s}
.dko-postit::before{content:"📌";position:absolute;top:-10px;left:50%;margin-left:-8px;font-size:16px}
.dko-postit:hover:not(:disabled){transform:rotate(0) scale(1.03)}
.dko-postit:disabled{cursor:default}
.dko-pi-bon{background:#bbf7d0}
.dko-pi-faux{background:#fed7aa;opacity:.85}
.dko-mur{background:#1e3a5f linear-gradient(135deg,#1e40af,#0c4a6e);border-radius:12px;padding:12px;box-shadow:inset 0 0 0 6px #0b2a4a;text-align:left}
.dko-mur-t{color:#e0f2fe;font-weight:800;margin-bottom:8px}
.dko-mur-grille{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.dko-mur-vide{border:2px dashed rgba(224,242,254,.4);border-radius:6px;color:rgba(224,242,254,.65);display:grid;place-items:center;min-height:70px;font-size:13px}
.dko-mur-pi{background:#fef08a;border-radius:3px;padding:10px;font-size:13px;line-height:1.35;transform:rotate(var(--r,0deg));box-shadow:0 4px 10px rgba(0,0,0,.25);color:#0f172a}
.dko-mur-pi b{display:block}
.dko-mur-pi span{display:block;margin-top:6px;font-size:12.5px;color:#14532d}
.dko-mur-pi em{display:block;margin-top:6px;font-size:12px;font-style:normal;font-weight:700;color:#1d4ed8}
.dko-mur-neuf{animation:dko-epingler .7s cubic-bezier(.2,1.4,.4,1)}
.dko-mur-moi{background:#bae6fd;margin-top:10px}
@keyframes dko-epingler{0%{transform:translateY(-40px) rotate(-12deg) scale(1.3);opacity:0}100%{transform:rotate(var(--r,0deg));opacity:1}}

/* ---- Documents ---- */
.dko-doc{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:14px 16px;font-size:14.5px;line-height:1.5;color:#0f172a;text-align:left}
.dko-doc-tete{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;border-bottom:3px solid #0ea5e9;padding-bottom:6px;margin-bottom:8px}
.dko-doc-tete b{letter-spacing:1px}
.dko-doc-tete span{font-size:12px;color:#64748b}
.dko-doc-prog{margin:8px 0}
.dko-doc-prog ul{margin:4px 0;padding-left:20px;font-size:13.5px}
.dko-charte ol{padding-left:22px}
.dko-charte-sign{font-family:"Segoe Script","Brush Script MT",cursive;font-size:17px;border-top:1px dashed #cbd5e1;padding-top:8px}
.dko-badge{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 8px 20px rgba(0,0,0,.18);max-width:380px;margin:8px auto;color:#0f172a;text-align:left}
.dko-badge-haut{background:linear-gradient(135deg,#0ea5e9,#1d4ed8);color:#fff;padding:10px 14px}
.dko-badge-haut b{display:block;font-size:20px;letter-spacing:2px}
.dko-badge-haut span{font-size:11.5px;opacity:.9}
.dko-badge-corps{display:flex;gap:12px;padding:12px 14px;align-items:center}
.dko-badge-corps>div{display:flex;flex-direction:column;gap:2px;font-size:13.5px}
.dko-badge-corps>div b{font-size:18px}
.dko-badge-photo{width:84px;height:100px;object-fit:cover;border-radius:8px;flex:0 0 84px}
.dko-badge-photo.dko-photo-ico{border-radius:8px;font-size:44px}
.dko-badge-droits{color:#0369a1;font-weight:700}

/* ---- Bravo, réseau, fins ---- */
.dko-bravo{text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center}
.dko-bravo .dko-mur,.dko-bravo .dko-reseau{width:100%}
.dko-bravo-score b{font-size:40px;color:#1d4ed8;display:block}
.dko-gagnante{background:#fef9c3;border-radius:12px;padding:10px 12px;text-align:left;margin:0}
.dko-reseau{background:#f0f9ff;border:2px solid #bae6fd;border-radius:14px;padding:10px;text-align:left}
.dko-reseau-t{font-weight:800;color:#0369a1;margin-bottom:6px}
.dko-reseau-l{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
.dko-quartier{background:#fff;border:2px solid #e2e8f0;border-radius:10px;padding:8px;display:flex;flex-direction:column;gap:2px;font-size:13px}
.dko-quartier span{font-size:22px}
.dko-quartier i{font-style:normal;font-weight:800;color:#64748b}
.dko-q-plein{border-color:#22c55e;background:#f0fdf4}
.dko-q-moyen{border-color:#38bdf8}
.dko-q-faible{border-color:#f59e0b;background:#fffbeb}
.dko-tm-notion{color:#e0f2fe;font-size:14px;margin:4px 0 10px}
.dko-fin-profil{background:#e0f2fe;border-radius:14px;padding:12px 14px;text-align:left}
.dko-fin-profil b{font-size:20px;display:block}
.dko-fin-profil p{margin:6px 0 0}
.dko-fin .dko-mur{margin:10px 0}
.dko-maq input{width:100%}
.dko-rejouer{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:center;margin:8px 0;font-size:13.5px;color:#475569}
.dko-rejouer .dko-pas{font-size:13px;padding:4px 10px}

.dko-boite-inline{display:none}
@media (max-width:720px){
  .dko-plan{grid-template-columns:1fr}
  .dko-boite-cote{display:none}
  .dko-boite-inline{display:block}
  .dko-boite{position:static}
  .dko-ev-h{flex-basis:58px;font-size:12px}
  .dko-ligne{padding-right:30px}
  .dko-portes{grid-template-columns:1fr}
}
/* ==== dko : fin des styles ==== */
/* ==== kby : debut des styles ====
   « Konbyin mi touch ? » — préfixe kby-. Hérite des styles pdl- de Péi
   Délices (le conteneur porte les deux classes : .pdl.kby). Couleurs : le
   turquoise et le corail d'une salle de remise en forme. */
.kby .pdl-cta{background:linear-gradient(135deg,#14b8a6,#0f766e);box-shadow:0 6px 18px rgba(15,118,110,.32)}
.kby .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(15,118,110,.42)}
.kby .pdl-cta.alt{background:#fff;color:#1a1430;border:2px solid #14b8a6;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.kby .pdl-decor{background:linear-gradient(135deg,#134e4a,#1e293b 60%,#7c2d12)}
.kby-panneau{color:#1a1430}
.kby-photo-ico{display:inline-grid;place-items:center;font-size:30px;background:#ccfbf1;border-radius:50%}
.kby .pdl-bulle-photo.kby-photo-ico{width:64px;height:64px;flex:0 0 64px}
.kby .pdl-hud-moi .kby-photo-ico{width:36px;height:36px;font-size:20px;border:2px solid #fbbf24}
.kby-perso-img{width:100%;aspect-ratio:3/3.4;object-fit:cover;display:block}
.kby-perso-img.kby-photo-ico{display:grid;font-size:64px;border-radius:0;background:linear-gradient(160deg,#ccfbf1,#fde68a)}
.kby-note{font-size:13.5px;color:#475569;margin:8px 0}
.kby-ok{color:#15803d;font-weight:700;margin:8px 0}
.kby-ko{color:#b45309;font-weight:700;margin:8px 0}
.kby-rappel{background:#ecfeff;border:1px solid #a5f3fc;border-left:5px solid #0891b2;border-radius:10px;padding:8px 12px;margin:8px 0;font-size:15px}

/* ---- Le curseur-pari ---- */
.kby-pari{display:flex;flex-direction:column;align-items:stretch;gap:10px}
.kby-pari-tete{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;font-weight:800;color:#0f766e;font-size:16px}
.kby-pari-tete span{font-weight:600;font-size:12.5px;color:#64748b;background:#f1f5f9;border-radius:99px;padding:3px 10px}
.kby-pari-q{font-size:17px;font-weight:700;margin:0;line-height:1.4}
.kby-pari-valeur{font-size:40px;font-weight:900;text-align:center;color:#0f766e;font-variant-numeric:tabular-nums;letter-spacing:-.5px}
.kby-regle{position:relative;padding:34px 4px 34px}
.kby-regle input[type=range]{width:100%;height:34px;accent-color:#0f766e;cursor:pointer}
.kby-regle-bornes{display:flex;justify-content:space-between;font-size:12px;color:#64748b}
.kby-repere{position:absolute;top:0;transform:translateX(-50%);transition:left 1.1s cubic-bezier(.2,.8,.2,1);pointer-events:none;white-space:nowrap}
.kby-repere b{display:block;font-size:11.5px;padding:2px 8px;border-radius:8px;color:#fff;position:relative}
.kby-repere b::after{content:"";position:absolute;left:50%;bottom:-6px;margin-left:-5px;border:5px solid transparent;border-top-color:inherit}
.kby-repere-moi{top:auto;bottom:2px}
.kby-repere-moi b{background:#64748b;border-color:#64748b}
.kby-repere-moi b::after{bottom:auto;top:-10px;border-top-color:transparent;border-bottom-color:#64748b}
.kby-repere-vrai{opacity:0;top:-4px}
.kby-repere-vrai.on{opacity:1;animation:kby-pop .5s ease}
.kby-repere-vrai b{background:#e11d48;border-color:#e11d48;font-size:12.5px}
.kby-pari-pas{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.kby-pas{font:inherit;font-weight:700;font-size:14px;background:#f1f5f9;border:2px solid #cbd5e1;border-radius:10px;padding:6px 12px;cursor:pointer;color:#1a1430}
.kby-pas:hover{border-color:#14b8a6;background:#f0fdfa}
.kby-pari .pdl-cta{align-self:center}
.kby-revele{background:#fff1f2;border:2px solid #fecdd3;border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:6px;animation:kby-pop .5s ease}
.kby-revele-chiffre{font-size:17px}
.kby-revele-chiffre b{font-size:24px;color:#e11d48}
.kby-revele-ecart{font-weight:700;color:#9f1239}
.kby-revele-txt{margin:4px 0;font-size:15.5px;line-height:1.45}
.kby-flair{color:#b45309;font-weight:800;letter-spacing:1px}
.kby-revele .pdl-cta{align-self:flex-start;margin-top:4px}
@keyframes kby-pop{0%{transform:scale(.9);opacity:0}100%{transform:scale(1);opacity:1}}

/* ---- Le bulletin de paie ---- */
.kby-bulletin{background:#fffdf7;border:1px solid #d6d3d1;border-radius:6px;box-shadow:0 6px 18px rgba(0,0,0,.12);font-family:Arial,Helvetica,sans-serif;color:#1c1917;font-size:13.5px;padding:12px 14px;max-width:640px;margin:8px auto;width:100%}
.kby-bul-tete{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;border-bottom:2px solid #1c1917;padding-bottom:6px}
.kby-bul-tete b{display:block;font-size:15px;letter-spacing:1px}
.kby-bul-tete span{font-size:11px;color:#57534e}
.kby-bul-titre{text-align:right;font-weight:800;font-size:14px}
.kby-bul-titre span{display:block;font-weight:400}
.kby-bul-salarie{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;background:#f5f5f4;padding:6px 8px;margin:8px 0;font-size:12.5px}
.kby-bul-lignes,.kby-bul-pat{display:flex;flex-direction:column}
.kby-bl{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:6px 8px;border-bottom:1px dotted #d6d3d1;background:none;border-left:0;border-right:0;border-top:0;font:inherit;color:inherit;text-align:left;width:100%}
.kby-bl-t i{font-size:11.5px;color:#78716c;font-style:normal}
.kby-bl-m{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:600}
.kby-bl-rub .kby-bl-t{padding-left:14px}
.kby-bl-fort{font-weight:800;background:#f5f5f4}
.kby-bl-grand{font-size:15px;background:#e7e5e4}
.kby-bl-clic{cursor:pointer;transition:background .15s,box-shadow .15s}
.kby-bl-clic:hover{background:#ccfbf1;box-shadow:inset 4px 0 0 #14b8a6}
.kby-bl-on{background:#fef9c3;box-shadow:inset 4px 0 0 #eab308;animation:kby-pop .4s ease}
.kby-bl-off{opacity:.45}
.kby-bul-pat{margin-top:10px;border-top:2px solid #b91c1c}
.kby-bul-pat-t{font-weight:800;font-size:12px;color:#b91c1c;padding:6px 8px;letter-spacing:.3px}
.kby-bul-pied{font-size:10.5px;color:#78716c;margin:8px 0 0;line-height:1.4}

/* ---- L'escalier (manche 1) ---- */
.kby-escalier{display:flex;flex-direction:column;align-items:center;gap:6px}
.kby-compteur{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;justify-content:center}
.kby-compteur span{font-weight:700;color:#475569}
.kby-compteur-n{font-size:36px;font-weight:900;color:#0f766e;animation:kby-chute .6s ease;font-variant-numeric:tabular-nums}
@keyframes kby-chute{0%{transform:translateY(-14px);opacity:0}100%{transform:none;opacity:1}}

/* ---- Documents ---- */
.kby-doc{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:14px 16px;font-size:14.5px;line-height:1.5;color:#1a1430;text-align:left}
.kby-doc-tete{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;border-bottom:3px solid #14b8a6;padding-bottom:6px;margin-bottom:8px}
.kby-doc-tete b{letter-spacing:1px}
.kby-doc-tete span{font-size:12px;color:#64748b}
.kby-contrat-salaire{font-size:16px;background:#fef9c3;padding:4px 8px;border-radius:6px}
.kby-signe{font-style:italic;color:#475569}
.kby-table{width:100%;border-collapse:collapse;font-size:13.5px;margin:8px 0}
.kby-table th,.kby-table td{border:1px solid #e2e8f0;padding:6px 8px;text-align:left}
.kby-table th{background:#f0fdfa;color:#115e59}

/* ---- 💡 Aide ---- */
.kby-aide{border:2px dashed #fcd34d;background:#fffbeb;border-radius:12px;margin:0 0 12px;text-align:left}
.kby-aide-bouton{width:100%;display:flex;justify-content:space-between;gap:8px;background:none;border:0;font:inherit;font-weight:800;padding:9px 12px;cursor:pointer;color:#92400e}
.kby-aide-bouton span{font-weight:600;font-size:12.5px;color:#a16207}
.kby-aide-corps{padding:0 12px 12px;font-size:14.5px}
.kby-aide-corps p{margin:8px 0}
.kby-aide-formule{background:#fff;border-left:4px solid #f59e0b;padding:6px 10px;font-weight:700}
.kby-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}
.kby-saisie input{font:inherit;font-size:19px;font-weight:700;width:140px;max-width:100%;padding:7px 10px;border-radius:10px;border:2px solid #cbd5e1;text-align:right}
.kby-saisie input:focus{outline:none;border-color:#14b8a6;box-shadow:0 0 0 3px rgba(20,184,166,.25)}
.kby-saisie span{font-weight:700;color:#475569}
.kby-saisie .pdl-cta{margin:0}

/* ---- QCM ---- */
.kby-qcm-ico{font-size:24px;margin-right:8px;vertical-align:middle}

/* ---- Le mur des questions ---- */
.kby-epingle .pdl-qcm-q{margin:8px 0}
.kby-postits{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:10px 0}
.kby-postit{font:inherit;font-weight:700;font-size:14.5px;line-height:1.35;text-align:left;background:#fef08a;border:0;border-radius:4px;padding:16px 12px 12px;cursor:pointer;transform:rotate(var(--r,0deg));box-shadow:0 6px 14px rgba(0,0,0,.18);position:relative;color:#1a1430;transition:transform .2s}
.kby-postit::before{content:"📌";position:absolute;top:-10px;left:50%;margin-left:-8px;font-size:16px}
.kby-postit:hover:not(:disabled){transform:rotate(0) scale(1.03)}
.kby-postit:disabled{cursor:default}
.kby-pi-bon{background:#bbf7d0;outline:3px solid #16a34a}
.kby-pi-faux{background:#fed7aa;opacity:.8}
.kby-mur{background:#7c4a24 linear-gradient(135deg,#a16207,#78350f);border-radius:12px;padding:12px;box-shadow:inset 0 0 0 6px #57300f}
.kby-mur-t{color:#fef3c7;font-weight:800;margin-bottom:8px}
.kby-mur-grille{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.kby-mur-vide{border:2px dashed rgba(254,243,199,.4);border-radius:6px;color:rgba(254,243,199,.6);display:grid;place-items:center;min-height:70px;font-size:13px}
.kby-mur-pi{background:#fef08a;border-radius:3px;padding:10px;font-size:13px;line-height:1.35;transform:rotate(var(--r,0deg));box-shadow:0 4px 10px rgba(0,0,0,.25);color:#1a1430;text-align:left}
.kby-mur-pi b{display:block}
.kby-mur-pi span{display:block;margin-top:6px;font-size:12.5px;color:#14532d}
.kby-mur-neuf{animation:kby-epingle .7s cubic-bezier(.2,1.4,.4,1)}
.kby-mur-moi{background:#bae6fd;margin-top:10px}
@keyframes kby-epingle{0%{transform:translateY(-40px) rotate(-12deg) scale(1.3);opacity:0}100%{transform:rotate(var(--r,0deg));opacity:1}}

/* ---- Manche 2 : ordre et tuyaux ---- */
.kby-ordre{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0}
.kby-ordre-carte{font:inherit;font-weight:800;font-size:15px;padding:18px 8px;border-radius:14px;border:3px solid var(--c);background:#fff;color:var(--c);cursor:pointer;position:relative}
.kby-ordre-carte.on{background:var(--c);color:#fff}
.kby-ordre-rang{position:absolute;top:-10px;left:-10px;width:28px;height:28px;border-radius:50%;background:#1a1430;color:#fff;display:grid;place-items:center;font-size:14px}
.kby-barres{display:flex;flex-direction:column;gap:8px;margin:6px 0}
.kby-barre{display:grid;grid-template-columns:110px 1fr 70px;align-items:center;gap:8px;font-size:14px}
.kby-barre-fond{background:#e2e8f0;border-radius:99px;height:16px;overflow:hidden}
.kby-barre-fond i{display:block;height:100%;border-radius:99px;animation:kby-pousse 1s ease}
.kby-barre b{text-align:right}
@keyframes kby-pousse{0%{width:0!important}}
.kby-tuyaux{display:grid;grid-template-columns:1fr 1.6fr;gap:14px;margin:10px 0}
.kby-tuyaux-g,.kby-tuyaux-d{display:flex;flex-direction:column;gap:10px}
.kby-piece{font:inherit;border:3px solid var(--c);border-radius:50px;padding:10px 14px;background:#fff;cursor:pointer;display:flex;justify-content:space-between;gap:6px;color:#1a1430}
.kby-piece b{color:var(--c)}
.kby-piece.sel{background:var(--c);color:#fff;transform:scale(1.04)}
.kby-piece.sel b{color:#fff}
.kby-piece.ok{opacity:.45}
.kby-tuyau{font:inherit;text-align:left;border:3px solid #cbd5e1;border-left-width:12px;border-radius:12px;padding:10px 12px;background:#f8fafc;cursor:pointer;display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:#1a1430;font-size:14.5px}
.kby-tuyau.cible:not(:disabled){border-color:#14b8a6;animation:kby-clignote 1.2s infinite}
.kby-tuyau.ok{border-color:var(--c);background:#f0fdf4}
.kby-tuyau b{color:var(--c);margin-left:auto}
.kby-tuyau-ico{font-size:24px}
@keyframes kby-clignote{50%{box-shadow:0 0 0 4px rgba(20,184,166,.25)}}

/* ---- Manche 3 : le bulletin qui se retourne, la toise ---- */
.kby-flip{perspective:1400px;margin:8px 0}
.kby-flip-in{display:grid;transition:transform .9s cubic-bezier(.3,.7,.2,1);transform-style:preserve-3d}
.kby-flip-face{grid-area:1/1;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.kby-flip-dos{transform:rotateY(180deg)}
.kby-flip.on .kby-flip-in{transform:rotateY(180deg)}
.kby-encadre{background:#f0fdfa;border:1px solid #99f6e4;border-left:5px solid #0f766e;border-radius:10px;padding:10px 14px;margin:8px 0;font-size:14.5px;line-height:1.5;text-align:left}
.kby-encadre p{margin:6px 0}
.kby-etiquettes{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:8px 0;min-height:44px}
.kby-etiq{font:inherit;font-weight:700;border:2px solid #0f766e;background:#fff;color:#0f766e;border-radius:99px;padding:8px 14px;cursor:pointer}
.kby-etiq.sel{background:#0f766e;color:#fff}
.kby-toise{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;height:260px;align-items:end;margin:10px 0;background:repeating-linear-gradient(0deg,#f1f5f9 0 1px,transparent 1px 26px)}
.kby-toise-col{font:inherit;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;gap:6px;background:none;border:0;cursor:pointer;padding:0}
.kby-toise-col:disabled{cursor:default}
.kby-toise-zone{flex:1;position:relative;display:block}
.kby-toise-barre{position:absolute;left:0;right:0;bottom:0;background:var(--c);border-radius:10px 10px 0 0;display:flex;align-items:flex-start;justify-content:center;padding-top:8px;transition:background .4s;animation:kby-monte .9s ease;min-height:40px}
.kby-toise-barre b{color:#fff;font-size:15px;text-shadow:0 1px 2px rgba(0,0,0,.3)}
.kby-toise-col.cible:not(:disabled) .kby-toise-barre{box-shadow:0 0 0 4px rgba(20,184,166,.35)}
.kby-toise-etiq{font-weight:700;font-size:13px;text-align:center;min-height:34px;color:#1a1430}
@keyframes kby-monte{0%{transform:scaleY(.1);transform-origin:bottom}100%{transform:scaleY(1);transform-origin:bottom}}

/* ---- Manche 5 : la pochette ---- */
.kby-cartes{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:10px 0}
.kby-carte{font:inherit;font-size:14px;font-weight:600;line-height:1.3;width:200px;max-width:100%;text-align:left;background:#fff;border:2px solid #e2e8f0;border-top:6px solid #f97316;border-radius:10px;padding:10px;cursor:pointer;transform:rotate(var(--r,0deg));box-shadow:0 4px 10px rgba(0,0,0,.12);animation:kby-pop .4s ease both;color:#1a1430}
.kby-carte.sel{border-color:#0f766e;box-shadow:0 0 0 4px rgba(15,118,110,.3);transform:rotate(0) translateY(-4px)}
.kby-colonnes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.kby-col{border:2px dashed #cbd5e1;border-radius:12px;padding:8px;min-height:120px;background:#f8fafc;cursor:pointer}
.kby-col.cible{border-color:#14b8a6;background:#f0fdfa}
.kby-col-t{font-weight:800;font-size:15px;margin-bottom:6px}
.kby-col-t span{display:block;font-weight:500;font-size:11.5px;color:#64748b}
.kby-colle{background:#fff;border-radius:8px;padding:6px 8px;font-size:12.5px;margin-top:6px;border-left:4px solid #16a34a;animation:kby-pop .3s ease}

/* ---- Bravo, fin ---- */
.kby-bravo{text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center}
.kby-bravo .kby-mur{width:100%}
.kby-bravo-score b{font-size:40px;color:#0f766e;display:block}
.kby-fin-profil{background:#fef3c7;border-radius:14px;padding:12px 14px;text-align:left}
.kby-fin-profil b{font-size:20px;display:block}
.kby-fin-profil span{font-size:13px;color:#92400e;font-weight:700}
.kby-fin-profil p{margin:6px 0 0}
.kby-maq{text-align:left;margin:10px 0}
.kby-fin .kby-mur{margin:10px 0}

/* ---- Téléphone ---- */
@media (max-width:600px){
  .kby-pari-valeur{font-size:32px}
  .kby-tuyaux{grid-template-columns:1fr}
  .kby-colonnes{grid-template-columns:1fr}
  .kby-ordre{grid-template-columns:1fr}
  .kby-toise{height:210px;gap:6px}
  .kby-toise-barre b{font-size:12px}
  .kby-barre{grid-template-columns:86px 1fr 58px;font-size:13px}
  .kby-bulletin{font-size:12.5px;padding:10px}
  .kby-bl{padding:6px 4px}
  .kby-compteur-n{font-size:30px}
  .kby-carte{width:100%}
}
/* ==== kby : fin des styles ==== */
/* ==== lpy : debut des styles ==== « Lapaye lé fo ! » (outils/lapaye/styles.css) */
.pdl.lpy{background:#f4efe6;color:#1f2937;--lpy-teal:#0f766e;--lpy-teal2:#14b8a6;--lpy-sable:#fbf3e4;--lpy-rouge:#b91c1c;--lpy-encre:#1e293b}
.lpy-corps{min-height:560px;display:flex;flex-direction:column}
.lpy-barre-haut{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#0f3d3a;color:#fff;position:sticky;top:0;z-index:6}
.lpy-moi{display:flex;align-items:center;gap:8px;min-width:0}
.lpy-moi b{font-size:15px}
.lpy-moi i{font-size:12px;opacity:.75}
.lpy-titre-court{flex:1;text-align:center;font-family:Fraunces,Georgia,serif;font-weight:700;letter-spacing:.5px}
.lpy-outils{display:flex;gap:6px}
.lpy-outils button{background:rgba(255,255,255,.12);border:0;color:#fff;border-radius:10px;width:36px;height:36px;font-size:17px;cursor:pointer}
.lpy-outils button:hover{background:rgba(255,255,255,.25)}
.lpy-centre-jeu{flex:1;animation:pdl-entree .45s ease}
.lpy-petit{font-size:12.5px;color:#64748b;margin:6px 0}
.lpy-ok{color:#047857;font-weight:600}
.lpy-ko{color:var(--lpy-rouge);font-weight:600}

/* --- accueil, prologue --- */
.lpy-accueil,.lpy-prologue{min-height:560px;display:flex;align-items:center;justify-content:center;padding:28px 18px;
  background:radial-gradient(circle at 20% 20%,#2dd4bf33,transparent 50%),linear-gradient(135deg,#0f3d3a,#134e4a 55%,#7c5c2e);background-size:cover;background-position:center;position:relative}
.lpy-accueil-photo::before,.lpy-prologue-photo::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,61,58,.55),rgba(15,23,42,.8))}
.lpy-accueil-boite,.lpy-prologue-in{position:relative;max-width:640px;width:100%}
.lpy-accueil-boite{color:#fff;animation:pdl-entree 1s ease}
.lpy-accueil-sur{display:inline-block;background:#fbbf24;color:#422006;font-weight:700;font-size:12.5px;padding:4px 10px;border-radius:999px}
.lpy-accueil-boite h1{font-family:Fraunces,Georgia,serif;font-size:clamp(40px,7vw,68px);line-height:1;margin:12px 0}
.lpy-accueil-boite p{line-height:1.55;font-size:15.5px}
.lpy-creole{background:rgba(255,255,255,.12);border-left:4px solid #fbbf24;padding:10px 12px;border-radius:8px;font-size:16.5px!important}
.lpy-accueil-son{font-size:13px!important;opacity:.85}
.lpy-choix-perso{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:6px 0 16px}
.lpy-perso{background:#fff;border:3px solid #e2e8f0;border-radius:16px;padding:14px 8px;cursor:pointer;font:inherit;display:flex;flex-direction:column;align-items:center;gap:8px;transition:all .2s}
.lpy-perso .lpy-visage{width:96px;height:96px}
.lpy-perso-on{border-color:var(--lpy-teal2);box-shadow:0 0 0 4px #14b8a633;transform:translateY(-3px)}
.lpy-prologue-in .lpy-bulle,.lpy-prologue-in .lpy-recit{background:rgba(255,255,255,.97)}

/* --- visages, bulles --- */
.lpy-visage{position:relative;flex:none;width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,#ccfbf1,#fde68a);display:inline-flex;align-items:center;justify-content:center;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.lpy-visage i{font-style:normal;font-size:34px}
.lpy-visage img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.lpy-visage-petit{width:34px;height:34px}
.lpy-visage-petit i{font-size:19px}
.lpy-humeur-fache{box-shadow:0 0 0 3px #f87171}
.lpy-humeur-content{box-shadow:0 0 0 3px #34d399}
.lpy-humeur-perdu{box-shadow:0 0 0 3px #fbbf24}
.lpy-humeur-attend{animation:lpy-attend 1.6s ease-in-out infinite}
@keyframes lpy-attend{50%{transform:translateY(-3px)}}
.lpy-bulle{display:flex;gap:12px;align-items:flex-start;background:#fff;border-radius:16px;padding:14px;box-shadow:0 6px 20px rgba(15,23,42,.12);margin:10px 0;animation:pdl-entree .4s ease}
.lpy-bulle-moi{flex-direction:row-reverse;background:#ecfdf5}
.lpy-bulle-pf{background:linear-gradient(135deg,#eef2ff,#faf5ff);border:1px solid #c7d2fe}
.lpy-bulle-corps{flex:1;min-width:0}
.lpy-bulle-nom{font-weight:700;font-size:14px;color:var(--lpy-teal)}
.lpy-bulle-nom span{font-weight:400;color:#64748b;margin-left:6px;font-size:12.5px}
.lpy-bulle p{margin:6px 0;font-size:16px;line-height:1.5}
.lpy-suite{font:inherit;font-weight:700;border:0;border-radius:10px;padding:8px 14px;background:#e2e8f0;color:#334155;cursor:pointer;float:right;transition:all .2s}
.lpy-pret{background:var(--lpy-teal);color:#fff}
.lpy-recit{background:#fffbeb;border-left:4px solid #f59e0b;border-radius:10px;padding:12px 14px;margin:10px 0;font-style:italic;animation:pdl-entree .4s ease}
.lpy-recit p{margin:0 0 6px;line-height:1.55}

/* --- jauges --- */
.lpy-jauges{display:flex;gap:10px;flex-wrap:wrap;padding:8px 12px;background:#123f3b;color:#e2fdf8;position:relative}
.lpy-jauge{flex:1;min-width:150px;display:flex;align-items:center;gap:8px;font-size:13px}
.lpy-jauge span{white-space:nowrap}
.lpy-jauge-fond{flex:1;height:10px;background:rgba(255,255,255,.18);border-radius:999px;overflow:hidden}
.lpy-jauge-val{height:100%;border-radius:999px;transition:width .6s ease}
.lpy-j-conf .lpy-jauge-val{background:linear-gradient(90deg,#fbbf24,#34d399)}
.lpy-j-fiab .lpy-jauge-val{background:linear-gradient(90deg,#60a5fa,#a78bfa)}
.lpy-j-heure{justify-content:center}
.lpy-horloge{font-family:"Courier New",monospace;font-size:18px;background:#0b2523;padding:2px 10px;border-radius:8px;color:#5eead4}
.lpy-j-alerte .lpy-horloge{color:#fca5a5;animation:lpy-clig 1s steps(2) infinite}
.lpy-j-alerte b{color:#fca5a5}
@keyframes lpy-clig{50%{opacity:.4}}
.lpy-toasts{position:absolute;right:12px;top:100%;display:flex;flex-direction:column;gap:4px;z-index:7;pointer-events:none}
.lpy-toast{background:#047857;color:#fff;font-weight:700;font-size:13px;padding:4px 10px;border-radius:999px;animation:lpy-toast 2.6s ease forwards;box-shadow:0 4px 12px rgba(0,0,0,.2)}
.lpy-toast-neg{background:var(--lpy-rouge)}
@keyframes lpy-toast{0%{opacity:0;transform:translateY(-6px)}10%{opacity:1;transform:none}80%{opacity:1}100%{opacity:0;transform:translateY(-10px)}}

/* --- l'acte : en-tête, guichet --- */
.lpy-acte-tete{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 12px;background:#fbf3e4;border-bottom:1px solid #e7dcc8}
.lpy-acte-tete b{font-family:Fraunces,Georgia,serif;font-size:17px;color:#0f3d3a}
.lpy-acte-tete span{font-size:12.5px;color:#64748b;flex:1;min-width:180px}
.lpy-progres{display:flex;gap:3px;flex-wrap:wrap;max-width:260px}
.lpy-progres i{width:9px;height:9px;border-radius:50%;background:#d6cbb6}
.lpy-progres .lpy-fait{background:var(--lpy-teal2)}
.lpy-progres .lpy-ici-pt{background:#f59e0b;box-shadow:0 0 0 3px #f59e0b44}
.lpy-quitter{border:0;background:#e7dcc8;border-radius:50%;width:30px;height:30px;cursor:pointer}
.lpy-guichet{display:grid;grid-template-columns:230px minmax(0,1fr) 190px;gap:10px;padding:10px;align-items:start}
.lpy-centre{min-width:0}
.lpy-scene{animation:pdl-entree .4s ease}
@media (max-width:1000px){
  .lpy-guichet{grid-template-columns:1fr}
  .lpy-centre{order:1}.lpy-classeur{order:2}.lpy-pf{order:3}
  .lpy-classeur,.lpy-pf{position:static;max-height:none}
}

/* --- la porte vitrée --- */
.lpy-porte{position:relative;height:74px;border-radius:12px;overflow:hidden;margin-bottom:8px;background:linear-gradient(180deg,#cfe8e4,#a7d3cc);background-size:cover;background-position:center;border:3px solid #8b6b45}
.lpy-porte-photo::after{content:"";position:absolute;inset:0;background:rgba(207,232,228,.35);backdrop-filter:blur(1px)}
.lpy-vitre{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;gap:16px;filter:blur(1.6px);z-index:1}
.lpy-silhouette{font-size:44px;line-height:1;opacity:.6;animation:lpy-file 3s ease-in-out infinite}
@keyframes lpy-file{50%{transform:translateX(4px)}}
.lpy-porte-txt{position:absolute;left:8px;top:6px;z-index:2;background:rgba(255,255,255,.85);font-size:12px;font-weight:600;padding:2px 8px;border-radius:999px;color:#0f3d3a}

/* --- le bulletin --- */
.lpy-bul{position:relative;background:#fdfcf8;border:1px solid #d6d3cb;border-radius:2px;box-shadow:0 8px 24px rgba(15,23,42,.14);padding:14px 14px 10px;margin:10px 0;
  font-family:Arial,Helvetica,sans-serif;font-size:12.5px;color:#111;max-width:800px}
.lpy-bul-badge{position:absolute;right:10px;top:-10px;background:#6366f1;color:#fff;font-size:11px;font-weight:700;padding:3px 9px;border-radius:999px;font-family:Outfit,system-ui,sans-serif}
.lpy-bul-entete{display:grid;grid-template-columns:1.4fr 1fr;gap:8px;margin-bottom:8px}
@media (max-width:620px){.lpy-bul-entete{grid-template-columns:1fr}}
.lpy-bul-cadre{border:1px solid #9ca3af;padding:6px 8px;display:flex;flex-direction:column;gap:1px;font-size:11px;color:#374151}
.lpy-bul-cadre b{font-size:13.5px;color:#111;letter-spacing:.3px}
.lpy-bul-droite b{font-size:15px;letter-spacing:1.5px}
.lpy-bul-sal{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:2px 12px;font-size:11.5px;border:1px solid #9ca3af;padding:6px 8px;margin-bottom:8px}
.lpy-bul-sal i{font-style:normal;color:#6b7280;font-size:10.5px;text-transform:uppercase;margin-right:4px}
.lpy-bul-defil{overflow-x:auto}
.lpy-bul table{width:100%;border-collapse:collapse;min-width:560px;margin-bottom:6px}
.lpy-bul th{font-size:10.5px;text-align:right;color:#111;font-weight:700;padding:4px;border-top:1px solid #6b7280;border-bottom:1px solid #6b7280;background:#ececec;text-transform:uppercase}
.lpy-bul th:first-child{text-align:left}
.lpy-bul td{padding:3px 4px;border-bottom:1px solid #ecebe6}
.lpy-lib{text-align:left}
.lpy-nb{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.lpy-sec th{background:#e5e5e5;color:#111;text-align:left;font-size:10.5px;letter-spacing:.4px;padding:3px 6px;border-top:1px solid #bdbdbd;border-bottom:0}
.lpy-tot td{font-weight:700;border-top:1px solid #6b7280}
.lpy-info td{color:#374151;font-style:italic}
.lpy-net td{font-weight:800;font-size:15px;border-top:2px solid #111;border-bottom:2px solid #111;background:#f3f4f6}
.lpy-pat td{color:#4b5563}
.lpy-bul-pied{min-width:0!important}
.lpy-l-clic{cursor:pointer}
.lpy-l-clic:hover td{background:#fef9c3}
.lpy-l-on td{background:#fef08a!important;transition:background .3s}
.lpy-l-doigt td{background:#fde68a!important;animation:lpy-clig 1s steps(2) infinite}
.lpy-l-ko td{background:#fee2e2!important;color:var(--lpy-rouge)!important;text-decoration:line-through}
.lpy-l-ok td{background:#d1fae5!important;color:#065f46!important}
.lpy-l-manque td{text-align:center;color:#4f46e5;font-weight:700;cursor:pointer;border:1px dashed #a5b4fc;background:#eef2ff}
.lpy-bul-bas{display:flex;flex-direction:column;gap:3px;font-size:10.5px;color:#374151;border-top:1px solid #9ca3af;padding-top:6px}
.lpy-bul-bas em{font-weight:700;color:#111}
.lpy-bul-bas small{text-align:right;color:#6366f1}
.lpy-bul-compact{font-size:11.5px}
.lpy-bul-compact td{padding:2px 4px}

/* --- la fiche de Marie-Claude --- */
.lpy-fiche-zone{display:grid;gap:10px}
.lpy-fiche-avec-bul{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
@media (max-width:760px){.lpy-fiche-avec-bul{grid-template-columns:1fr}}
.lpy-fiche{background:#fff;border-radius:6px;border-left:10px solid #b91c1c;box-shadow:0 8px 24px rgba(15,23,42,.14);padding:14px 16px;position:relative;
  background-image:repeating-linear-gradient(180deg,transparent 0 27px,#e0f2fe 27px 28px)}
.lpy-fiche-tete{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12.5px;color:#991b1b;font-weight:700}
.lpy-fiche h3{font-family:Fraunces,Georgia,serif;font-size:21px;margin:6px 0 8px;color:#7f1d1d}
.lpy-fiche-intro{font-size:15px;line-height:1.5}
.lpy-point{background:rgba(255,255,255,.92);border-radius:8px;padding:8px 10px;margin:8px 0;border:1px solid #f3e8d7}
.lpy-point-neuf{animation:pdl-entree .5s ease;border-color:#fbbf24;box-shadow:0 0 0 3px #fbbf2433}
.lpy-mot{font-size:16px;color:#0f3d3a}
.lpy-point p{margin:4px 0;line-height:1.5;font-size:14.5px}
.lpy-ici{color:#065f46}
.lpy-cours{background:#eff6ff;border-left:4px solid #3b82f6;padding:6px 8px;border-radius:6px;font-size:14px;margin-top:6px}
.lpy-cours span{display:block;font-weight:700;color:#1d4ed8;font-size:12px}
.lpy-fiche-bas{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;font-size:13px;color:#64748b}

/* --- questions --- */
.lpy-q{background:#fff;border-radius:14px;padding:14px;box-shadow:0 6px 20px rgba(15,23,42,.1);margin:10px 0;animation:pdl-entree .4s ease}
.lpy-q-titre{font-size:12.5px;font-weight:700;color:var(--lpy-teal);text-transform:uppercase;letter-spacing:.4px;margin-bottom:4px}
.lpy-q-enonce{font-size:16.5px;font-weight:600;line-height:1.45;margin:6px 0 10px}
.lpy-opts{display:grid;gap:8px}
.lpy-opt{font:inherit;text-align:left;font-size:15px;line-height:1.4;padding:11px 14px;border-radius:12px;border:2px solid #e2e8f0;background:#f8fafc;cursor:pointer;transition:all .15s}
.lpy-opt:hover:not(:disabled){border-color:var(--lpy-teal2);background:#f0fdfa}
.lpy-opt-ok{border-color:#10b981!important;background:#d1fae5!important}
.lpy-opt-ko{border-color:#ef4444!important;background:#fee2e2!important}
.lpy-opt-off{opacity:.45}
.lpy-corr{border-radius:10px;padding:10px 12px;margin-top:10px;line-height:1.5;overflow:hidden}
.lpy-corr p{margin:6px 0}
.lpy-corr-ok{background:#ecfdf5;border:1px solid #a7f3d0}
.lpy-corr-ko{background:#fff7ed;border:1px solid #fed7aa}
.lpy-consigne{background:#f0fdfa;border:1px solid #99f6e4;border-radius:10px;padding:8px 12px;font-size:14.5px;margin:6px 0}
.lpy-rappel{background:#fefce8;border:1px solid #fde68a;border-radius:10px;padding:8px 12px;font-size:14px;margin:8px 0;display:flex;flex-direction:column;gap:2px}
.lpy-aide{margin:4px 0 8px}
.lpy-aide-btn{font:inherit;font-size:13.5px;font-weight:700;border:1px dashed #f59e0b;background:#fffbeb;color:#92400e;border-radius:10px;padding:6px 12px;cursor:pointer}
.lpy-aide-corps{background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:8px 12px;margin-top:6px;font-size:14px}
.lpy-mini{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.lpy-mini input{font:inherit;width:110px;padding:5px 8px;border:2px solid #fde68a;border-radius:8px}
.lpy-mini button{font:inherit;border:0;background:#f59e0b;color:#fff;border-radius:8px;padding:5px 10px;cursor:pointer;font-weight:700}
.lpy-champs{display:grid;gap:8px;margin-bottom:10px}
.lpy-champ{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-weight:600;font-size:14.5px}
.lpy-champ span{flex:1;min-width:170px}
.lpy-champ input{font:inherit;font-size:17px;width:150px;padding:8px 10px;border:2px solid #cbd5e1;border-radius:10px;text-align:right}
.lpy-champ-ok input{border-color:#10b981;background:#ecfdf5}
.lpy-champ-ko input{border-color:#ef4444;background:#fef2f2}
.lpy-champ em{color:#047857;font-style:normal}
.lpy-encadre{background:#fff7ed;border:2px solid #fb923c;border-radius:12px;padding:10px 12px;font-size:14.5px;line-height:1.5;margin:10px 0}

/* --- vidéo --- */
.lpy-video{background:#fff;border-radius:14px;padding:14px;box-shadow:0 6px 20px rgba(15,23,42,.1);margin:10px 0}
.lpy-video h3{margin:0 0 8px;font-size:17px}
.lpy-video-cadre{display:flex;justify-content:center;background:#0f172a;border-radius:12px;padding:8px}
.lpy-video-cadre video{max-height:62vh;max-width:100%;border-radius:8px}
.lpy-sous{font-size:14.5px;line-height:1.5}
.lpy-sous ul{margin:4px 0;padding-left:20px}
.lpy-barre-anim{position:relative;display:flex;gap:6px;align-items:stretch;height:52px;margin:8px 0;font-weight:700;font-size:13px}
.lpy-barre-anim span{display:flex;align-items:center;justify-content:center;border-radius:8px;color:#fff;padding:0 8px;white-space:nowrap}
.lpy-ba-brut{background:#0f766e;flex:1;animation:lpy-ba1 4s ease infinite}
.lpy-ba-cot{background:#f59e0b;flex:0 0 auto;animation:lpy-ba2 4s ease infinite}
.lpy-ba-net{background:#064e3b;flex:0 0 auto;animation:lpy-ba3 4s ease infinite}
@keyframes lpy-ba1{0%,20%{opacity:1}40%,100%{opacity:.35}}
@keyframes lpy-ba2{0%,25%{opacity:0;transform:translateY(-8px)}45%,100%{opacity:1;transform:none}}
@keyframes lpy-ba3{0%,55%{opacity:0;transform:scale(.8)}75%,100%{opacity:1;transform:none}}

/* --- tri --- */
.lpy-tri-items{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0;min-height:40px}
.lpy-etiq{font:inherit;font-size:13.5px;text-align:left;border:2px solid #cbd5e1;background:#fff;border-radius:10px;padding:8px 10px;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.08);max-width:100%}
.lpy-etiq-sel{border-color:#f59e0b;background:#fffbeb;transform:translateY(-2px);box-shadow:0 6px 14px rgba(245,158,11,.3)}
.lpy-etiq-faute{border-style:dashed;border-color:#fca5a5}
.lpy-tri-cats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.lpy-cat{font:inherit;text-align:left;border:2px dashed #94a3b8;background:#f8fafc;border-radius:12px;padding:10px;cursor:pointer;min-height:70px;display:flex;flex-direction:column;gap:4px}
.lpy-cat-active{border-color:var(--lpy-teal2);background:#f0fdfa}
.lpy-cat b{font-size:13.5px}
.lpy-cat em{font-style:normal;font-weight:800;color:var(--lpy-teal)}
.lpy-cat-in{display:flex;flex-direction:column;gap:2px}
.lpy-cat-in small{font-size:11.5px;background:#e2e8f0;border-radius:6px;padding:2px 6px}
.lpy-tri-panneau .lpy-tri-items{background:#c9a26b;background-image:radial-gradient(#b48a52 1px,transparent 1px);background-size:8px 8px;padding:10px;border-radius:10px;border:6px solid #8b6b45}
.lpy-tri-panneau .lpy-etiq{background:#fef9c3;border-color:#fde047;transform:rotate(-1deg)}
.lpy-tri-panneau .lpy-etiq:nth-child(2n){background:#dbeafe;border-color:#93c5fd;transform:rotate(1deg)}
.lpy-tri-tirelire .lpy-cat{border-style:solid;border-color:#f9a8d4;background:#fdf2f8}
.lpy-barre{display:flex;flex-direction:column;gap:4px;margin:8px 0}
.lpy-barre-pleine{background:linear-gradient(90deg,#0f766e,#14b8a6);color:#fff;font-weight:800;padding:10px;border-radius:10px;transition:width .8s ease;white-space:nowrap}
.lpy-barre span{font-size:12px;color:#64748b}
.lpy-cent{display:flex;flex-wrap:wrap;gap:4px;margin:8px 0;font-size:12px}
.lpy-cent b{width:100%}
.lpy-cent span{background:#ccfbf1;border-radius:8px;padding:6px;display:flex;flex-direction:column;min-width:70px}
.lpy-cent i{font-style:normal;font-weight:800;font-size:15px;color:#0f766e}

/* --- choisir et ordonner --- */
.lpy-ordre-zone{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px}
@media (max-width:760px){.lpy-ordre-zone{grid-template-columns:1fr}}
.lpy-ordre-cartes{display:grid;gap:8px}
.lpy-carte{font:inherit;text-align:left;font-size:14px;line-height:1.4;border:2px solid #e2e8f0;background:#fff;border-radius:12px;padding:9px 12px;cursor:pointer;display:flex;flex-direction:column;gap:4px}
.lpy-carte small{font-size:12.5px;color:#475569}
.lpy-carte-prise{opacity:.45}
.lpy-carte-bonne{border-color:#10b981;background:#ecfdf5;opacity:1}
.lpy-carte-fausse{border-color:#ef4444;background:#fef2f2;opacity:1}
.lpy-carte-off{opacity:.55}
.lpy-ordre-slots{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:8px}
.lpy-ordre-slots li{background:#f0fdfa;border:2px solid #99f6e4;border-radius:10px;padding:8px;font-size:14px}
.lpy-ordre-slots .lpy-slot-vide{background:#f8fafc;border-style:dashed;border-color:#cbd5e1;color:#94a3b8}
.lpy-ordre-slots button{font:inherit;text-align:left;border:0;background:none;cursor:pointer;width:100%;padding:0}

/* --- loupe, journal, corrigé --- */
.lpy-loupe-btns{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.lpy-btn-juste{font:inherit;font-weight:700;border:2px solid #10b981;background:#ecfdf5;color:#065f46;border-radius:12px;padding:9px 14px;cursor:pointer}
.lpy-btn-juste:disabled{opacity:.5;cursor:default}
.lpy-journal{background:#0b1020;color:#c7d2fe;border-radius:12px;padding:10px 12px;margin:10px 0;font-size:13px;box-shadow:inset 0 0 0 1px #312e81}
.lpy-journal-tete{color:#a78bfa;font-weight:700;font-size:12px;margin-bottom:6px}
.lpy-journal code{font-family:"Courier New",monospace;line-height:1.5;white-space:pre-wrap;display:block}
.lpy-flou{filter:blur(2px);opacity:.6}
.lpy-ecart{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0}
.lpy-ecart span{background:#fff;border-radius:12px;padding:8px;display:flex;flex-direction:column;font-size:12.5px;box-shadow:0 3px 10px rgba(0,0,0,.08)}
.lpy-ecart b{font-size:18px}
.lpy-barre-rouge{text-decoration:line-through;color:var(--lpy-rouge)}

/* --- classeur --- */
.lpy-classeur{background:#7f1d1d;border-radius:12px;padding:8px;color:#fff;position:sticky;top:56px;max-height:calc(100vh - 70px);overflow-y:auto}
.lpy-classeur-tete{font-weight:800;font-size:13.5px;margin-bottom:6px}
.lpy-onglets{display:flex;flex-direction:column;gap:4px}
.lpy-onglet{font:inherit;font-size:13px;text-align:left;border:0;border-radius:8px;padding:6px 8px;background:#991b1b;color:#fee2e2;cursor:pointer}
.lpy-onglet:hover{background:#b91c1c}
.lpy-onglet-on{background:#fff;color:#7f1d1d;font-weight:700}
.lpy-onglet-utile{box-shadow:inset 3px 0 0 #fbbf24}
.lpy-classeur .lpy-petit{color:#fecaca;font-size:11.5px}
.lpy-doc{background:#fff;color:#1f2937;border-radius:8px;padding:10px;font-size:13px;margin-top:6px}
.lpy-doc h4{margin:0 0 6px;font-size:14px;color:#7f1d1d}
.lpy-doc dl{display:grid;grid-template-columns:auto 1fr;gap:3px 8px;margin:0}
.lpy-doc dt{font-weight:700;color:#475569}
.lpy-doc dd{margin:0}
.lpy-doc-note{background:#fffbeb;border-left:3px solid #f59e0b;padding:5px 8px;border-radius:4px;margin:6px 0}
.lpy-doc-table{width:100%;border-collapse:collapse;font-size:12px;margin:4px 0}
.lpy-doc-table td,.lpy-doc-table th{border-bottom:1px solid #eee;padding:3px 4px;text-align:left}
.lpy-doc-2{display:grid;gap:6px}
.lpy-hs td{background:#fef3c7}
.lpy-liste{list-style:none;padding:0;margin:4px 0;display:flex;flex-direction:column;gap:4px}
.lpy-liste button{font:inherit;font-size:13.5px;text-align:left;width:100%;border:1px solid #e2e8f0;background:#fff;border-radius:8px;padding:6px 8px;cursor:pointer}
.lpy-classeur .lpy-fiche{font-size:13px;padding:10px}
.lpy-classeur .lpy-doc dl{grid-template-columns:1fr}
.lpy-classeur .lpy-doc dd{margin-bottom:3px}
.lpy-classeur .lpy-fiche h3{font-size:16px}

/* --- PayFlash --- */
.lpy-pf{background:linear-gradient(180deg,#1e1b4b,#312e81);color:#e0e7ff;border-radius:12px;padding:10px;font-size:12.5px;position:sticky;top:56px;max-height:calc(100vh - 70px);overflow-y:auto;border:3px solid #111827}
.lpy-pf-tete{display:flex;justify-content:space-between;align-items:center;font-weight:800;font-size:15px}
.lpy-pf-tete i{font-style:normal;background:linear-gradient(90deg,#f0abfc,#93c5fd);color:#1e1b4b;border-radius:6px;padding:0 6px;font-size:11px}
.lpy-pf-slogan{color:#a5b4fc;font-size:11.5px;margin:4px 0 8px}
.lpy-pf-liste{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.lpy-pf-liste li{display:flex;gap:6px;align-items:center;padding:2px 4px;border-radius:4px}
.lpy-pf-corrige{background:rgba(251,191,36,.18);color:#fde68a}
.lpy-pf-explique{background:rgba(52,211,153,.15);color:#a7f3d0}
.lpy-pf .lpy-petit{color:#a5b4fc;font-size:11px}
.lpy-pf-journal{margin-top:8px;display:flex;flex-direction:column;gap:4px}
.lpy-pf-journal code{font-family:"Courier New",monospace;font-size:10.5px;background:rgba(0,0,0,.35);padding:4px;border-radius:4px;color:#c7d2fe}
.lpy-pf-propose{background:#eef2ff;border:2px solid #818cf8;border-radius:10px;padding:8px 12px;display:flex;flex-direction:column;gap:2px;font-size:14px;margin:8px 0}
.lpy-pf-propose i{color:#6366f1}

/* --- préparer un bulletin --- */
.lpy-prepa-grille{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:10px}
@media (max-width:760px){.lpy-prepa-grille{grid-template-columns:1fr}}
.lpy-prepa-form{background:#fff;border-radius:8px;box-shadow:0 8px 24px rgba(15,23,42,.12);padding:12px}
.lpy-prepa-tete{border-bottom:2px solid #0f3d3a;padding-bottom:6px;margin-bottom:6px;font-size:13.5px}
.lpy-prepa-ligne{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:6px 0;border-bottom:1px dashed #e5e7eb}
.lpy-prepa-ligne label{flex:1;min-width:160px;font-size:14px;font-weight:600}
.lpy-prepa-ligne input{font:inherit;width:120px;padding:6px 8px;border:2px solid #cbd5e1;border-radius:8px;text-align:right}
.lpy-prepa-ligne button{font:inherit;border:0;background:var(--lpy-teal);color:#fff;border-radius:8px;padding:6px 10px;cursor:pointer}
.lpy-prepa-ligne button:disabled{opacity:.4}
.lpy-prepa-ligne em{font-style:normal;color:var(--lpy-rouge);font-weight:700}
.lpy-prepa-ok input{border-color:#10b981;background:#ecfdf5}
.lpy-prepa-ko input{border-color:#ef4444;background:#fef2f2}
.lpy-prepa-aide{width:100%;color:#92400e;background:#fffbeb;border-radius:6px;padding:3px 6px}
.lpy-prepa-ligne .lpy-indice{background:#fde68a;color:#78350f}

/* --- bilan, bureau, documents, fins --- */
.lpy-bilan{background:#fff;border-radius:14px;padding:18px;text-align:center;box-shadow:0 6px 20px rgba(15,23,42,.1)}
.lpy-bilan h2{font-family:Fraunces,Georgia,serif;margin:4px 0}
.lpy-bilan .lpy-bulle{text-align:left}
.lpy-bureau-grille{display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:10px;padding:10px}
@media (max-width:800px){.lpy-bureau-grille{grid-template-columns:1fr}}
.lpy-bureau-scene{border-radius:14px;padding:12px;min-height:330px;background:linear-gradient(180deg,#e7dcc8,#c9b28c);background-size:cover;background-position:center;position:relative}
.lpy-bureau-photo::before{content:"";position:absolute;inset:0;border-radius:14px;background:linear-gradient(180deg,rgba(0,0,0,.1),rgba(0,0,0,.45))}
.lpy-bureau-scene>*{position:relative}
.lpy-pause{background:#fef3c7;border:2px solid #f59e0b;border-radius:12px;padding:10px 12px;font-weight:600;margin:8px 0}
.lpy-carte-acte{background:#fff;border-radius:14px;padding:16px;max-width:460px;margin:14px auto 0;box-shadow:0 12px 30px rgba(0,0,0,.25);text-align:center;animation:pdl-entree .5s ease}
.lpy-carte-acte span{font-size:13px;color:var(--lpy-teal);font-weight:700}
.lpy-carte-acte h2{font-family:Fraunces,Georgia,serif;margin:6px 0;font-size:24px}
.lpy-carte-acte p{margin:4px 0 6px;color:#475569}
.lpy-carte-acte small{display:block;color:#94a3b8;margin-bottom:10px}
.lpy-bureau-bas{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:10px;padding:0 10px 12px}
@media (max-width:800px){.lpy-bureau-bas{grid-template-columns:1fr}}
.lpy-actes,.lpy-dossier{background:#fff;border-radius:12px;padding:10px;box-shadow:0 4px 14px rgba(0,0,0,.06)}
.lpy-actes{display:flex;flex-direction:column;gap:5px}
.lpy-acte-mini{font:inherit;display:flex;align-items:center;gap:8px;text-align:left;border:1px solid #e2e8f0;background:#f8fafc;border-radius:10px;padding:6px 10px;cursor:pointer}
.lpy-acte-mini b{width:24px;height:24px;border-radius:50%;background:#cbd5e1;display:inline-flex;align-items:center;justify-content:center;font-size:13px}
.lpy-acte-mini span{flex:1;font-size:14px}
.lpy-acte-mini i{font-style:normal;font-size:12px;color:#64748b}
.lpy-acte-mini.lpy-fait b{background:var(--lpy-teal2);color:#fff}
.lpy-acte-mini.lpy-courant{border-color:#f59e0b;background:#fffbeb}
.lpy-acte-mini:disabled{opacity:.55;cursor:default}
.lpy-docjeu{font-size:15px;line-height:1.55}
.lpy-docjeu h3{font-family:Fraunces,Georgia,serif;color:#0f3d3a}
.lpy-doc-entete{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;border-bottom:2px solid #0f3d3a;padding-bottom:6px;font-size:13px}
.lpy-final{padding:10px}
.lpy-fin{border-radius:16px;min-height:260px;display:flex;align-items:flex-end;background:linear-gradient(135deg,#0f3d3a,#7c5c2e);background-size:cover;background-position:center;position:relative;overflow:hidden;margin-bottom:10px}
.lpy-fin-photo::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 30%,rgba(0,0,0,.75))}
.lpy-fin-in{position:relative;color:#fff;padding:18px}
.lpy-fin-in span{background:#fbbf24;color:#422006;font-weight:800;font-size:12px;padding:2px 8px;border-radius:999px}
.lpy-fin-in h2{font-family:Fraunces,Georgia,serif;font-size:30px;margin:6px 0}
.lpy-fin-chiffres{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.lpy-fin-chiffres span{background:#fff;border-radius:10px;padding:6px 10px;font-size:13.5px;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.lpy-final .lpy-docjeu{background:#fff;border-radius:8px;padding:14px;box-shadow:0 6px 18px rgba(0,0,0,.1);margin:10px 0}
.lpy .pdl-bilan-total b{color:#0f3d3a}
@media print{.lpy-barre-haut,.lpy-jauges,.lpy-classeur,.lpy-pf{display:none}}
/* ==== lpy : fin des styles ==== */
/* ==== zt2 : debut des styles ====
   « Zétwal Makiyaz 2 — Soraya, an 1 » — chronique de vie devant le miroir
   de loge. Préfixe zt2-. Bois de la coiffeuse, ampoules dorées, papier
   kraft, post-it, ticket de caisse, cahier à spirale. */
.zt2{--zt2-bois:#5a3a26;--zt2-bois2:#7b5136;--zt2-or:#f2c14e;--zt2-or2:#d99a1e;--zt2-rose:#e88aa6;--zt2-creme:#fff8ef;--zt2-encre:#2b1d16;--zt2-vert:#2f8f5b;--zt2-rouge:#c0392b;
  background:radial-gradient(ellipse at top,#6e4630,#3a2418 70%);color:var(--zt2-encre);font-size:16px;line-height:1.45;min-height:100%}
.zt2 *{box-sizing:border-box}
.zt2-corps{max-width:1180px;margin:0 auto;padding:8px 10px 60px}
.zt2-barre-haut{display:flex;align-items:center;gap:10px;justify-content:space-between;background:rgba(255,248,239,.92);border-radius:14px;padding:6px 12px;margin-bottom:10px;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.zt2-moi{display:flex;align-items:center;gap:8px}.zt2-moi i{font-size:12px;color:#8a6a55}
.zt2-titre-court{font-weight:700;color:var(--zt2-bois);font-family:Georgia,serif;text-align:center;flex:1}
.zt2-outils button{background:none;border:0;font-size:20px;cursor:pointer;padding:4px 6px;border-radius:8px}
.zt2-outils button:hover{background:#f6e4d2}
.zt2-centre{animation:zt2Apparait .45s ease}
@keyframes zt2Apparait{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* Visages et bulles */
.zt2-visage{position:relative;display:inline-flex;width:54px;height:54px;border-radius:50%;overflow:hidden;background:#f3d9c4;flex:none;align-items:center;justify-content:center;border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.25)}
.zt2-visage i{font-style:normal;font-size:28px}
.zt2-visage img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 20%}
.zt2-visage-petit{width:34px;height:34px}.zt2-visage-petit i{font-size:18px}
.zt2-bulle{display:flex;gap:10px;align-items:flex-start;margin:10px 0;animation:zt2Apparait .35s ease}
.zt2-bulle-d{flex-direction:row-reverse}
.zt2-bulle-corps{background:var(--zt2-creme);border-radius:16px;padding:10px 14px;box-shadow:0 4px 14px rgba(0,0,0,.18);flex:1;max-width:720px}
.zt2-bulle-d .zt2-bulle-corps{background:#ffe9f0}
.zt2-bulle-nom{font-weight:700;color:var(--zt2-bois);font-size:14px}.zt2-bulle-nom span{font-weight:400;color:#8a6a55;margin-left:6px;font-size:12px}
.zt2-bulle-corps p{margin:6px 0}
.zt2-suite{background:none;border:0;color:#b9874f;font-weight:700;cursor:pointer;padding:4px 0}
.zt2-suite.zt2-pret{color:var(--zt2-bois)}
.zt2-recit,.zt2-sms,.zt2-pensee{background:rgba(255,248,239,.95);border-radius:14px;padding:12px 16px;box-shadow:0 4px 14px rgba(0,0,0,.2);max-width:760px;margin:10px auto}
.zt2-recit p{font-family:Georgia,serif;font-size:17px;margin:4px 0 8px}
.zt2-pensee{display:flex;gap:10px;align-items:center;border-radius:30px;background:#fff;position:relative}
.zt2-pensee p{margin:0;flex:1;color:#6a4a3a}
.zt2-pensee .zt2-suite{white-space:nowrap}
.zt2-sms{max-width:520px;background:#e7f7ec;border:1px solid #bfe3cb}
.zt2-sms-tete{font-size:12px;color:#2f6f45;font-weight:700}

/* Lieux */
.zt2-lieu{position:relative;border-radius:18px;overflow:hidden;min-height:340px;padding:16px;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(160deg,#c98f6a,#6e4630)}
.zt2-lieu-img{position:absolute;inset:0;background-size:cover;background-position:center;animation:zt2KenBurns 26s ease-in-out infinite alternate}
@keyframes zt2KenBurns{from{transform:scale(1)}to{transform:scale(1.07)}}
.zt2-lieu-voile{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 35%,rgba(30,15,8,.55))}
.zt2-lieu-deco{position:absolute;inset:0;background:radial-gradient(circle at 75% 20%,rgba(255,220,150,.45),transparent 40%),repeating-linear-gradient(90deg,rgba(255,255,255,.04) 0 2px,transparent 2px 22px)}
.zt2-lieu-contenu{position:relative;z-index:1}
.zt2-dial{min-height:120px}

/* Accueil */
.zt2-accueil{min-height:560px;justify-content:center}
.zt2-accueil-boite{background:rgba(255,248,239,.94);border-radius:20px;padding:22px;max-width:720px;margin:0 auto;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.zt2-accueil-boite h1{font-family:Georgia,serif;color:var(--zt2-bois);margin:6px 0 10px}
.zt2-creole{background:#fff1d6;border-left:4px solid var(--zt2-or2);padding:8px 12px;border-radius:8px;color:var(--zt2-encre)}
.zt2-toi{font-size:15px}
.zt2 .zt2-accueil-boite p,.zt2 .zt2-accueil-boite .pdl-accueil-son{color:var(--zt2-encre)}
.zt2 .zt2-accueil-boite .pdl-accueil-sur{color:#a0522d}

/* Leçon : le cahier de Tatie Rolande */
.zt2-lecon{background:#fffdf6 repeating-linear-gradient(180deg,transparent 0 27px,#dfe9f5 27px 28px);border-radius:16px;padding:14px 16px 18px 46px;position:relative;box-shadow:0 8px 24px rgba(0,0,0,.3);max-width:900px;margin:0 auto}
.zt2-lecon:before{content:"";position:absolute;left:14px;top:12px;bottom:12px;width:14px;background:repeating-linear-gradient(180deg,#9a9a9a 0 6px,transparent 6px 18px);border-radius:7px}
.zt2-lecon-tete{display:flex;gap:10px;align-items:center}
.zt2-lecon-tete span{font-size:12px;color:#8a6a55}.zt2-lecon-tete h3{margin:2px 0;font-family:Georgia,serif;color:var(--zt2-bois)}
.zt2-lecon-scene{position:relative;background:linear-gradient(180deg,#fdf1e2,#f6e2c9);border-radius:12px;margin:10px 0;padding:10px;min-height:210px}
.zt2-lecon-scene small{display:block;text-align:center;color:#8a6a55}
.zt2-revoir{position:absolute;right:8px;top:8px;background:#fff;border:1px solid #e3c9a8;border-radius:999px;padding:3px 10px;cursor:pointer;font-size:12px;z-index:3}
.zt2-lecon-points{padding-left:20px}.zt2-lecon-points li{margin:6px 0}.zt2-neuf{animation:zt2Apparait .4s ease}
.zt2-cours{background:#eef6ff;border-left:4px solid #3b82f6;border-radius:8px;padding:8px 12px;margin:10px 0}.zt2-cours p{margin:4px 0}
.zt2-deplier{margin-top:6px}

/* Animations de leçon */
.zt2-anim{position:relative;min-height:190px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center}
.zt2-anim-legende{width:100%;text-align:center;font-weight:700;color:var(--zt2-bois);animation:zt2Apparait .5s ease}
.zt2-anim-cpt{font-weight:700;font-size:18px}
.zt2-jarre{position:relative;width:120px;height:150px;border:4px solid #b07a4f;border-radius:30px 30px 46px 46px;overflow:hidden;background:rgba(255,255,255,.5)}
.zt2-jarre-fond{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(180deg,#9ad19a,#4f9e5b);transition:height 1.2s ease}
.zt2-jarre b{position:absolute;left:0;right:0;top:40%;text-align:center}
.zt2-billets-in span,.zt2-billets-out span{display:inline-block;margin:2px 4px;animation:zt2Tombe .8s ease both}
.zt2-billets-out{display:flex;flex-direction:column;font-size:14px}
.zt2-billets-out span{animation-name:zt2Sort}
@keyframes zt2Tombe{from{opacity:0;transform:translateY(-30px)}to{opacity:1;transform:none}}
@keyframes zt2Sort{from{opacity:0;transform:translateX(-30px)}to{opacity:1;transform:none}}
.zt2-mini-cal{display:grid;grid-template-columns:repeat(10,22px);gap:3px}
.zt2-mini-cal span{font-size:10px;text-align:center;background:#fff;border-radius:3px;animation:zt2Apparait .3s ease both}
.zt2-mini-cal span.zt2-rdv{background:var(--zt2-rose);color:#fff}
.zt2-releve-anim{background:#fff;border-radius:8px;padding:6px;min-width:240px;max-height:220px;overflow:auto;font-size:13px;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.zt2-ligne-tombe{display:flex;justify-content:space-between;gap:8px;border-bottom:1px dashed #eee;padding:2px 0;animation:zt2Tombe .5s ease both}
.zt2-ligne-var b{color:#a34}.zt2-ligne-perso{color:#777;font-style:italic}
.zt2-route{position:relative;width:100%;max-width:520px;height:46px;border-bottom:4px dashed #8a6a55;margin:6px auto}
.zt2-route-a{position:absolute;left:0;bottom:4px}.zt2-route-b{position:absolute;right:0;bottom:4px}
.zt2-voiture{position:absolute;bottom:2px;font-size:26px;transition:left 1.6s ease}
.zt2-v-aller{animation:zt2Aller 1.6s ease forwards}.zt2-v-retour{animation:zt2Retour 1.6s ease forwards}
@keyframes zt2Aller{from{left:4%}to{left:80%}}
@keyframes zt2Retour{from{left:80%;transform:scaleX(-1)}to{left:4%;transform:scaleX(-1)}}
.zt2-route-jeu{height:52px}
.zt2-odo{display:inline-flex;gap:2px;background:#111;padding:6px 8px;border-radius:8px;align-items:flex-end}
.zt2-odo span{display:inline-block;background:#fdfdfd;color:#111;font:700 22px/1 monospace;padding:4px 5px;border-radius:3px;animation:zt2Roule .5s ease}
.zt2-odo small{color:#fff;margin-left:6px}
@keyframes zt2Roule{from{transform:translateY(-60%);opacity:0}to{transform:none;opacity:1}}
.zt2-ticket{position:relative;background:#fffef8;font-family:"Courier New",monospace;font-size:14px;padding:10px 12px 20px;width:290px;max-width:100%;box-shadow:0 4px 12px rgba(0,0,0,.18);clip-path:polygon(0 0,100% 0,100% calc(100% - 8px),95% 100%,90% calc(100% - 8px),85% 100%,80% calc(100% - 8px),75% 100%,70% calc(100% - 8px),65% 100%,60% calc(100% - 8px),55% 100%,50% calc(100% - 8px),45% 100%,40% calc(100% - 8px),35% 100%,30% calc(100% - 8px),25% 100%,20% calc(100% - 8px),15% 100%,10% calc(100% - 8px),5% 100%,0 calc(100% - 8px))}
.zt2-ticket-tete{text-align:center;font-weight:700;border-bottom:1px dashed #999;margin-bottom:4px;font-size:12px}
.zt2-ticket-l{display:flex;justify-content:space-between;gap:8px;animation:zt2Imprime .45s ease both}
@keyframes zt2Imprime{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.zt2-ticket-tot{border-top:1px dashed #999;font-weight:700;margin-top:3px}
.zt2-ticket-pied{text-align:center;font-size:11px;color:#a34;margin-top:4px;text-transform:uppercase}
.zt2-trou b{background:#fff3b0;padding:0 6px;animation:zt2Clignote 1.2s infinite}
.zt2-cache{opacity:.35}.zt2-imprime b{color:#1f6f3f}.zt2-neuve{color:#a34;font-weight:700}
.zt2-postit-ticket{position:absolute;right:-6px;top:30px;background:#fff59d;padding:6px 8px;transform:rotate(8deg);font-family:"Comic Sans MS",cursive;font-size:12px;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.zt2-postit-colle{position:static;display:table;margin:8px 0 0 auto;transform:rotate(-4deg)}
.zt2-colonne{position:relative;width:200px;height:220px;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;border-bottom:3px solid #8a6a55}
.zt2-brique{display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px;font-weight:700;border:2px solid rgba(0,0,0,.15);border-radius:4px;margin-top:2px;animation:zt2Tombe .6s ease both;max-height:40%}
.zt2-brique-cr{background:#d9c6b5;max-height:none}
.zt2-marge-or{background:linear-gradient(180deg,#ffe28a,var(--zt2-or2));border-radius:4px 4px 0 0;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12px;animation:zt2Brille 2s infinite;max-height:45%}
@keyframes zt2Brille{50%{filter:brightness(1.15)}}
.zt2-etiquette{position:absolute;bottom:-34px;left:50%;transform:translateX(-50%);background:#fff;border:2px solid var(--zt2-or2);border-radius:6px 16px 16px 6px;padding:2px 12px;font-weight:700;white-space:nowrap}
.zt2-etiq-ok{background:#fff1c2}
.zt2-colonne-jeu{margin:6px auto 44px}
.zt2-barres{display:flex;gap:12px;align-items:flex-end;justify-content:center;height:210px;width:100%;max-width:560px;margin:0 auto}
.zt2-barre-col{flex:1;display:flex;flex-direction:column;align-items:center;height:100%;justify-content:flex-end;font-size:12px;text-align:center}
.zt2-barre-or{position:relative;width:70%;background:linear-gradient(180deg,#ffe28a,var(--zt2-or2));border-radius:6px 6px 0 0;transition:height 1s ease;min-height:18px;display:flex;justify-content:center}
.zt2-barre-or b{position:absolute;top:-20px;font-size:13px}
.zt2-encours .zt2-barre-or{outline:3px solid var(--zt2-rose)}
.zt2-pieces-tombent{position:absolute;top:10px;animation:zt2Pieces 1.4s infinite;font-style:normal}
@keyframes zt2Pieces{from{transform:translateY(0);opacity:1}to{transform:translateY(70px);opacity:0}}
.zt2-ruban-heures{display:flex;justify-content:space-between;font-size:12px;color:#8a6a55;border-bottom:2px solid #d9b994;margin-bottom:24px}
.zt2-cent{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:center}
.zt2-cent div{padding:12px 16px;border-radius:10px;font-weight:700;animation:zt2Apparait .5s ease both}
.zt2-cent-pile{background:#d6f0d6}.zt2-cent-part{background:#f8d0d0}.zt2-cent-reste{background:#fff1c2}

/* Le miroir */
.zt2-miroir{position:relative;width:min(340px,86vw);aspect-ratio:1;margin:8px auto 34px;border-radius:50%;background:radial-gradient(circle,#8a6040 58%,#5a3a26 60%,#3e2718 100%);box-shadow:0 10px 30px rgba(0,0,0,.4)}
.zt2-miroir-petit{width:min(240px,70vw)}
.zt2-miroir-glace{position:absolute;inset:14%;border-radius:50%;overflow:hidden;background:radial-gradient(circle at 35% 30%,#eef3f6,#9fb0ba);display:flex;align-items:center;justify-content:center;text-align:center;box-shadow:inset 0 0 20px rgba(0,0,0,.35)}
.zt2-miroir-plein .zt2-miroir-glace{animation:zt2Flash .9s ease}
@keyframes zt2Flash{30%{box-shadow:inset 0 0 60px #fff,0 0 40px #fff8c4}}
.zt2-miroir-txt{font-weight:700;color:#2b1d16;padding:6px;font-size:14px;background:rgba(255,255,255,.6);border-radius:10px}
.zt2-bulbe{position:absolute;width:7.5%;height:7.5%;margin:-3.75% 0 0 -3.75%;border-radius:50%;background:#e8e2d6;box-shadow:inset 0 -2px 3px rgba(0,0,0,.25);transition:background .5s,box-shadow .5s}
.zt2-bulbe.zt2-on,.zt2-bulbe.zt2-demi{background:radial-gradient(circle,#fffbe6,#ffe58a);box-shadow:0 0 calc(14px * var(--k)) rgba(255,230,140,calc(var(--k))),inset 0 -2px 3px rgba(0,0,0,.1)}
.zt2-bulbe.zt2-demi{opacity:calc(.45 + .55 * var(--k))}
.zt2-bulbe.zt2-or{background:radial-gradient(circle,#fff3c4,#f2a91e);box-shadow:0 0 16px rgba(242,169,30,.9)}
.zt2-bulbe.zt2-fantome{background:radial-gradient(circle,#fff3c4,#f2a91e);animation:zt2Eteint 2.2s ease forwards}
@keyframes zt2Eteint{0%{opacity:1;box-shadow:0 0 16px rgba(242,169,30,.9)}100%{opacity:.25;background:#bbb;box-shadow:none}}
.zt2-miroir-cpt{position:absolute;left:0;right:0;bottom:-30px;text-align:center;font-size:13px;color:var(--zt2-bois);font-weight:700}
.zt2-miroir-cpt b{color:var(--zt2-or2)}
.zt2-coiffeuse-centre .zt2-miroir-cpt,.zt2-film .zt2-miroir-cpt{color:#fff}
.zt2-gravures{display:flex;flex-direction:column;gap:2px;font-size:12px;font-weight:700}
.zt2-gravures span{background:rgba(255,255,255,.7);border-radius:6px;padding:1px 6px;animation:zt2Apparait .4s ease}
.zt2-reflet{position:absolute;inset:0;background-size:cover;background-position:center;filter:blur(1.5px) saturate(.9);opacity:.85}
.zt2-reflet-film{filter:none;opacity:1;animation:zt2Apparait .6s ease}

/* Questions */
.zt2-question,.zt2-epreuve,.zt2-decision,.zt2-bilan,.zt2-fin-mois,.zt2-reaction,.zt2-releve,.zt2-releve-fin,.zt2-mallettes,.zt2-regle,.zt2-predit,.zt2-arrondi,.zt2-epingle-jeu,.zt2-compare,.zt2-urnes-jeu,.zt2-courbe,.zt2-balance-jeu,.zt2-enveloppe-jeu,.zt2-etiquette-jeu,.zt2-compteurs,.zt2-final-q,.zt2-fin,.zt2-film,.zt2-doc-etape,.zt2-serie,.zt2-bilan-total{background:var(--zt2-creme);border-radius:16px;padding:14px 16px;box-shadow:0 8px 24px rgba(0,0,0,.28);max-width:900px;margin:0 auto 12px}
.zt2-serie .zt2-question{box-shadow:none;padding:6px 0;margin:0;background:none}
.zt2-serie-decor{display:flex;justify-content:center;margin-bottom:8px}
.zt2-compact{box-shadow:none;padding:6px 0}
.zt2-q-titre{font-weight:700;color:var(--zt2-bois);margin-bottom:6px}
.zt2-q{font-size:16px}
.zt2-chiffres{background:#fff7d6;border:1px solid #f1d98a;border-radius:10px;padding:8px 10px;font-size:14px;margin:6px 0}
.zt2-aide{margin:6px 0}.zt2-aide-btn{background:none;border:0;color:#9a6b2f;font-weight:700;cursor:pointer}
.zt2-aide-corps{background:#fff;border:1px dashed #e3c9a8;border-radius:8px;padding:8px 10px;font-size:14px}
.zt2-aide-ex{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.zt2-aide-ex input{width:90px;padding:4px 6px;border:1px solid #ccc;border-radius:6px}
.zt2-mini{background:#f6e4d2;border:0;border-radius:6px;padding:4px 8px;cursor:pointer}
.zt2-ok{color:var(--zt2-vert)}.zt2-ko{color:var(--zt2-rouge)}
.zt2-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0}
.zt2-saisie input{font-size:18px;padding:8px 10px;border:2px solid #d9b994;border-radius:10px;width:160px;max-width:60vw}
.zt2-options{display:grid;gap:8px}
.zt2-opt{display:flex;gap:10px;align-items:center;text-align:left;background:#fff;border:2px solid #ead7c3;border-radius:12px;padding:10px 12px;cursor:pointer;font-size:15px}
.zt2-opt:hover:not(:disabled){border-color:var(--zt2-rose)}
.zt2-opt-l{flex:none;width:28px;height:28px;border-radius:50%;background:#f6e4d2;display:flex;align-items:center;justify-content:center;font-weight:700}
.zt2-bon{border-color:var(--zt2-vert)!important;background:#e8f7ee!important}.zt2-faux{border-color:var(--zt2-rouge)!important;background:#fdecea!important}.zt2-eteint{opacity:.55}
.zt2-consigne{font-weight:700;color:var(--zt2-bois)}
.zt2-note{font-size:13px;color:#7a5a45;font-style:italic}
.zt2-legende{font-size:12px;color:#7a5a45;text-align:center;margin:-22px 0 6px}
.zt2-guide{color:#7a4a9a;font-weight:600}
.zt2-corrige{display:flex;gap:8px;align-items:center;background:#fff1f1;border-radius:12px;padding:8px 10px;margin:8px 0}.zt2-corrige p{margin:0;flex:1}

/* Chapitre */
.zt2-chap-tete{display:flex;align-items:center;gap:10px;background:rgba(255,248,239,.92);border-radius:14px;padding:6px 10px;margin-bottom:8px}
.zt2-chap-tete i{display:block;font-size:12px;color:#8a6a55}
.zt2-quitter{font-size:22px;background:none;border:0;cursor:pointer}
.zt2-mini-page{background:#fff;border:1px solid #e0c7a8;border-radius:6px;padding:2px 8px;text-align:center;line-height:1.1}.zt2-mini-page span{display:block;font-size:10px}
.zt2-moment{margin-left:auto;font-size:12px;color:#8a6a55;white-space:nowrap}
.zt2-jauge-ep{position:relative;background:rgba(255,248,239,.85);border-radius:999px;height:26px;margin:0 0 10px;overflow:hidden}
.zt2-jauge-ep span{position:relative;z-index:1;font-size:12px;font-weight:700;padding:0 12px;line-height:26px}
.zt2-jauge-ep i{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,#ffe28a,var(--zt2-or2));transition:width .6s ease}
.zt2-bilan{text-align:center;position:relative}
.zt2-tampon-etoile{font-size:64px;color:var(--zt2-or2);animation:zt2Tampon .7s cubic-bezier(.2,1.6,.4,1) both}
@keyframes zt2Tampon{from{transform:scale(2.4) rotate(-30deg);opacity:0}to{transform:none;opacity:1}}
.zt2-pct{font-size:22px}
.zt2-echec{text-align:left}
.zt2-marque-page{position:absolute;right:18px;top:-6px;width:18px;height:44px;background:var(--zt2-rouge);clip-path:polygon(0 0,100% 0,100% 100%,50% 80%,0 100%)}
.zt2-re-liste{font-size:14px}

/* Mécaniques */
.zt2-mallettes-lit{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.zt2-mallette{background:#fff;border:2px solid #ead7c3;border-radius:14px;padding:10px;cursor:pointer;text-align:center;display:flex;flex-direction:column;gap:4px}
.zt2-mallette small{color:#7a5a45}
.zt2-mallette.zt2-choisie{border-color:var(--zt2-or2);background:#fff6dc;transform:translateY(-4px)}
.zt2-mallette-boite{position:relative;height:60px;background:linear-gradient(#2b2b2b,#111);border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:20px}
.zt2-mallette-boite i{position:absolute;top:-8px;left:40%;width:20%;height:10px;border:3px solid #444;border-bottom:0;border-radius:6px 6px 0 0}
.zt2-tel-solde{display:inline-flex;gap:10px;align-items:center;background:#111;color:#fff;border-radius:16px;padding:8px 14px;font-weight:700}
.zt2-tel-solde.zt2-rouge .zt2-compteur{color:#ff8a80}
.zt2-carte-ligne{background:#fff;border:2px solid #ead7c3;border-radius:12px;padding:10px 12px;display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;cursor:grab;animation:zt2Tombe .5s ease;margin:8px 0}
.zt2-carte-ligne span{font-size:12px;color:#8a6a55}.zt2-carte-ligne i{font-style:normal;font-weight:700}
.zt2-sel{border-color:var(--zt2-rose);box-shadow:0 0 0 3px rgba(232,138,166,.3)}
.zt2-clignote{animation:zt2Clignote .5s 4}
@keyframes zt2Clignote{50%{background:#ffd6d6}}
.zt2-pochettes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.zt2-pochette{border:0;border-radius:12px 12px 18px 18px;padding:12px 8px;cursor:pointer;min-height:110px;display:flex;flex-direction:column;align-items:center;gap:4px;box-shadow:inset 0 -6px 0 rgba(0,0,0,.08)}
.zt2-poch-fixe{background:#dbe8ff}.zt2-poch-var{background:#ffe0ea}.zt2-poch-perso{background:#e9e9e9}
.zt2-pochette span{font-size:12px}
.zt2-poch-pile{display:flex;flex-wrap:wrap;gap:3px;justify-content:center}.zt2-poch-pile i{font-size:10px;background:#fff;border-radius:4px;padding:0 4px;font-style:normal}
.zt2-allume{outline:4px solid var(--zt2-or);animation:zt2Brille 1s infinite}
.zt2-rejeu{margin:0 auto 8px}
.zt2-releves{font-size:13px;color:#5a7a5a}
.zt2-curseur{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0}.zt2-curseur input[type=range]{flex:1;min-width:160px}
.zt2-pastille{background:#fff;border:2px solid #ead7c3;border-radius:999px;padding:4px 10px;margin:2px;cursor:pointer}
.zt2-pastille.zt2-on{background:var(--zt2-rose);border-color:var(--zt2-rose);color:#fff}
.zt2-gros{font-size:18px;padding:8px 18px}
.zt2-regle-curseurs>div{margin:6px 0}
.zt2-declaration{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;width:100%}
.zt2-agenda-page{background:#fffdf3;border:1px solid #e6d3b3;border-radius:6px 12px 12px 6px;padding:10px;box-shadow:2px 3px 10px rgba(0,0,0,.15);min-width:200px;position:relative;animation:zt2Tourne .6s ease}
@keyframes zt2Tourne{from{transform:perspective(600px) rotateY(-70deg);opacity:0}to{transform:none;opacity:1}}
.zt2-agenda-icones{display:flex;flex-wrap:wrap;gap:4px;max-width:240px;font-size:22px;margin:6px 0}
.zt2-agenda-icones .zt2-mariee{background:#fff0f5;border-radius:6px}
.zt2-formulaire{background:#fff;border:1px solid #c9d3dd;font-family:Arial,sans-serif;font-size:13px;min-width:260px;max-width:360px;flex:1}
.zt2-form-tete{background:#e9eef3;font-weight:700;padding:6px 8px;font-size:12px}
.zt2-form-l{display:flex;justify-content:space-between;gap:6px;padding:4px 8px;border-top:1px solid #e3e8ee}
.zt2-form-tot{font-weight:700;background:#f7f9fb}.zt2-rempli{color:#1f4f9f}
.zt2-env-kraft{background:linear-gradient(135deg,#c9a26b,#a97d45);color:#3a2410;border-radius:6px;padding:20px;text-align:center;cursor:pointer;width:240px;margin:0 auto;box-shadow:0 6px 14px rgba(0,0,0,.25);display:flex;flex-direction:column;gap:4px}
.zt2-ouverte{animation:zt2Ouvre .6s ease}
@keyframes zt2Ouvre{50%{transform:rotateX(25deg)}}
.zt2-cartes-rdv{text-align:center}
.zt2-pile{display:flex;flex-wrap:wrap;gap:4px;justify-content:center;margin:6px 0}
.zt2-carte-rdv{background:#fff;border:1px solid #e0c7a8;border-radius:6px;padding:4px 6px;font-size:12px;transition:opacity .4s}
.zt2-carte-m{background:#fff0f5}.zt2-posee{opacity:.3}
.zt2-choix-2{display:flex;gap:10px;justify-content:center}
.zt2-frise{width:100%;max-width:640px;margin:10px auto}
.zt2-frise-mois{display:grid;grid-template-columns:repeat(12,1fr);font-size:11px;text-align:center;color:#7a5a45}
.zt2-frise-barre{position:relative;height:34px;background:repeating-linear-gradient(90deg,#fff 0,#fff calc(100%/12 - 1px),#d9b994 calc(100%/12 - 1px),#d9b994 calc(100%/12));border:1px solid #d9b994;border-radius:6px}
.zt2-bande-verte{position:absolute;top:0;bottom:0;background:rgba(47,143,91,.35);font-size:11px;color:#1f5f3b;display:flex;align-items:center;justify-content:center;transition:left 1.2s ease}
.zt2-epingle{position:absolute;top:-16px;font-size:24px;transform:translateX(-30%);transition:left 1.4s ease;animation:zt2Plante .6s ease}
.zt2-epingle-faux{filter:grayscale(1);opacity:.6}
@keyframes zt2Plante{from{transform:translate(-30%,-30px);opacity:0}to{transform:translateX(-30%);opacity:1}}
.zt2-frise-legende{text-align:center;font-weight:700;font-size:13px;margin-top:4px}
.zt2-mois-choix,.zt2-jours-choix{display:flex;flex-wrap:wrap;gap:4px;justify-content:center;margin:6px 0}
.zt2-jour{width:34px;height:30px;border:1px solid #e0c7a8;background:#fff;border-radius:6px;cursor:pointer}
.zt2-jour.zt2-on{background:var(--zt2-rose);color:#fff}
.zt2-compare-cartes{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px}
.zt2-compare-carte{background:#fff;border:1px solid #ead7c3;border-radius:12px;padding:8px 10px;font-size:14px}
.zt2-compare-sr{font-weight:700;color:var(--zt2-vert)}
.zt2-urnes{text-align:center}
.zt2-urnes-prix{font-weight:700;font-size:18px;margin-bottom:6px}
.zt2-urnes-rang{display:flex;gap:16px;justify-content:center}
.zt2-urne{display:flex;flex-direction:column;align-items:center;gap:2px;width:96px}
.zt2-urne-verre{position:relative;width:70px;height:120px;border:3px solid rgba(80,120,160,.6);border-top:0;border-radius:0 0 12px 12px;background:rgba(220,235,250,.4);overflow:hidden}
.zt2-urne-jetons{position:absolute;left:0;right:0;bottom:0;transition:height 1.2s cubic-bezier(.3,1.3,.5,1);background:radial-gradient(circle,#fff 0 3px,transparent 4px) 0 0/10px 10px}
.zt2-u-cher .zt2-urne-jetons{background-color:#e57373}.zt2-u-douteux .zt2-urne-jetons{background-color:#ffb74d}.zt2-u-ok .zt2-urne-jetons{background-color:#66bb6a}
.zt2-urne small{font-size:11px}
.zt2-urnes-nav{display:flex;gap:10px;align-items:center;justify-content:center;margin-top:10px}
.zt2-courbe-svg{width:100%;max-width:620px;display:block;margin:0 auto;background:#fff;border-radius:10px}
.zt2-axe{stroke:#8a6a55;stroke-width:2}.zt2-axe-t{font-size:12px;fill:#7a5a45;text-anchor:middle}
.zt2-courbe-ligne{fill:none;stroke:var(--zt2-rose);stroke-width:3;stroke-dasharray:1200;animation:zt2Trace 2s ease forwards}
@keyframes zt2Trace{from{stroke-dashoffset:1200}to{stroke-dashoffset:0}}
.zt2-point circle{fill:var(--zt2-or2);stroke:#fff;stroke-width:2;cursor:pointer}.zt2-point text{font-size:12px;text-anchor:middle;font-weight:700}
.zt2-point.zt2-bon circle{fill:var(--zt2-vert)}.zt2-point.zt2-faux circle{fill:var(--zt2-rouge)}
.zt2-scenarios{display:flex;gap:18px;justify-content:center}
.zt2-scen{display:flex;flex-direction:column;align-items:center;font-size:13px}
.zt2-scen-barre{position:relative;width:46px;height:110px;background:#f3e7d8;border-radius:6px;overflow:hidden}
.zt2-scen-barre i{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(180deg,#ffe28a,var(--zt2-or2));transition:height 1s ease}
.zt2-devis-rature{position:relative;background:#fff;border:1px solid #ddd;border-radius:6px;padding:10px;font-size:14px;max-width:520px;margin:0 auto}
.zt2-devis-tete{font-weight:700;font-size:12px;border-bottom:1px solid #eee;margin-bottom:4px}
.zt2-devis-l{display:flex;justify-content:space-between}
.zt2-barre-rouge{text-decoration:line-through;text-decoration-color:var(--zt2-rouge);text-decoration-thickness:2px}
.zt2-rature{color:var(--zt2-rouge);font-family:"Comic Sans MS",cursive;transform:rotate(-3deg);margin:6px 0;font-size:15px}
.zt2-notes-vertes{display:flex;flex-wrap:wrap;gap:6px}
.zt2-notes-vertes span{color:#1f7a3f;font-family:"Comic Sans MS",cursive;border-bottom:2px solid #9ad19a;animation:zt2Apparait .4s ease}
.zt2-balance{position:relative;width:300px;max-width:100%;height:170px;margin:0 auto}
.zt2-bal-fleau{position:absolute;left:10px;right:10px;top:30px;height:6px;background:#8a6a55;border-radius:3px;display:flex;justify-content:space-between;transition:transform .5s ease}
.zt2-bal-plateau{margin-top:8px;background:#f3e7d8;border-radius:0 0 40px 40px;padding:10px 8px;font-size:12px;min-width:110px;text-align:center}
.zt2-bal-pied{position:absolute;left:50%;top:30px;bottom:30px;width:6px;margin-left:-3px;background:#8a6a55}
.zt2-bal-mcv{position:absolute;left:0;right:0;bottom:4px;text-align:center;font-weight:700;color:var(--zt2-vert)}
.zt2-bal-plancher{position:absolute;left:0;right:0;bottom:26px;text-align:center;color:var(--zt2-rouge);font-weight:700;font-size:12px}
.zt2-bal-rang{display:flex;gap:14px;align-items:center;justify-content:center;flex-wrap:wrap}
.zt2-tasse-mini{display:flex;gap:8px;align-items:center;max-width:220px;font-size:12px}

/* Objets de la coiffeuse */
.zt2-tasse{position:relative;width:46px;height:48px;display:inline-block}
.zt2-tasse-corps{position:absolute;left:0;bottom:0;width:38px;height:36px;border:3px solid #fff;border-top:0;border-radius:0 0 12px 12px;background:#f5efe7;overflow:hidden;box-shadow:0 2px 4px rgba(0,0,0,.3)}
.zt2-cafe{position:absolute;left:0;right:0;bottom:0;background:#6b3e1f;transition:height 1s ease}
.zt2-anse{position:absolute;right:0;bottom:12px;width:12px;height:16px;border:3px solid #fff;border-left:0;border-radius:0 10px 10px 0}
.zt2-vapeur{position:absolute;left:8px;top:-6px;font-style:normal;color:rgba(255,255,255,.85);animation:zt2Vapeur 2.4s infinite;font-size:14px}
@keyframes zt2Vapeur{from{transform:translateY(4px);opacity:0}50%{opacity:1}to{transform:translateY(-8px);opacity:0}}
.zt2-froide .zt2-tasse-corps{filter:saturate(.6)}
.zt2-etoiles i{font-style:normal;color:#d8cfc4}.zt2-etoiles i.zt2-pleine{color:var(--zt2-or2)}
.zt2-etoiles i.zt2-moitie{background:linear-gradient(90deg,var(--zt2-or2) 50%,#d8cfc4 50%);-webkit-background-clip:text;background-clip:text;color:transparent}
.zt2-coiffeuse-ecran{position:relative}
.zt2-question-fil{text-align:center;color:#ffe9b8;font-family:Georgia,serif;font-style:italic;font-size:18px;margin:4px 0 10px;text-shadow:0 1px 3px #000}
.zt2-coiffeuse-grille{display:grid;grid-template-columns:1fr 300px;gap:14px;align-items:start}
.zt2-coiffeuse-centre{position:relative;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(0,0,0,.12));border-radius:20px;padding:10px}
.zt2-pensee-hub{max-width:520px;margin:0 auto 6px}
.zt2-miroir-hub{width:min(380px,84vw)}
.zt2-postit{position:absolute;right:16%;top:12%;background:#fff59d;padding:6px 8px;transform:rotate(6deg);font-family:"Comic Sans MS",cursive;font-size:12px;box-shadow:0 3px 8px rgba(0,0,0,.3);z-index:2;max-width:42%}
.zt2-postit b{color:var(--zt2-vert)}.zt2-postit.zt2-rouge b{color:var(--zt2-rouge)}
.zt2-postit-grand{position:static;transform:rotate(-2deg);font-size:16px;max-width:none;padding:12px 16px}
.zt2-cf-plaque{text-align:center;color:#ffe9b8;font-weight:700;margin:-22px 0 8px;font-size:14px}
.zt2-plateau{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;align-items:flex-end;background:linear-gradient(180deg,var(--zt2-bois2),var(--zt2-bois));border-radius:14px;padding:14px 10px;box-shadow:inset 0 4px 0 rgba(255,255,255,.12),0 8px 18px rgba(0,0,0,.35)}
.zt2-obj{display:flex;flex-direction:column;align-items:center;gap:2px;color:#fff;font-size:12px}
.zt2-tel{background:#111;border:3px solid #333;border-radius:14px;padding:10px 12px;min-width:120px}
.zt2-tel b{font-size:17px}.zt2-tel b.zt2-ko{color:#ff8a80}
.zt2-kraft{background:linear-gradient(135deg,#c9a26b,#a97d45);color:#3a2410;border-radius:4px;padding:8px 10px;min-width:110px;box-shadow:0 calc(2px + 8px * var(--ep)) 0 -2px #8c6633}
.zt2-carte-visite{background:#fff;color:var(--zt2-encre);border-radius:4px;padding:6px 10px;transform:rotate(-4deg)}
.zt2-cote{display:flex;flex-direction:column;gap:10px}
.zt2-agenda{position:relative;background:#7b2d3b;border-radius:10px;padding:10px;box-shadow:0 8px 18px rgba(0,0,0,.35)}
.zt2-agenda .zt2-agenda-page{min-width:0}
.zt2-agenda .zt2-agenda-page p{margin:4px 0;font-weight:700}
.zt2-page-tourne{position:absolute;inset:10px;z-index:3;transform-origin:left center;animation:zt2PageTourne 1.5s ease forwards;background:#fffdf3}
@keyframes zt2PageTourne{0%{transform:perspective(800px) rotateY(0)}100%{transform:perspective(800px) rotateY(-175deg);opacity:.2}}
.zt2-tampon-or{display:block;font-size:40px;color:var(--zt2-or2);text-align:center;animation:zt2Tampon .6s ease both}
.zt2-mois-minis{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}
.zt2-mois-mini{background:#fffdf3;border:1px solid #e6d3b3;border-radius:6px;padding:4px 2px;cursor:pointer;font-size:11px;display:flex;flex-direction:column;align-items:center}
.zt2-mois-mini i{font-style:normal}.zt2-fait{background:#fff1c2}.zt2-fait i{color:var(--zt2-or2)}.zt2-courant{outline:2px solid var(--zt2-rose)}
.zt2-pochette-docs,.zt2-cahier{background:var(--zt2-creme);border-radius:12px;padding:8px 10px;font-size:13px}
.zt2-pochette-docs ul,.zt2-cahier ul{margin:4px 0;padding-left:16px}
.zt2-pochette-docs button{background:none;border:0;color:#5a3a26;text-align:left;cursor:pointer;padding:2px 0;text-decoration:underline dotted}
.zt2-cahier{background:#fffdf6 repeating-linear-gradient(180deg,transparent 0 19px,#dfe9f5 19px 20px)}

/* Fin du mois, décisions */
.zt2-fm-rang{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.zt2-fm-chiffres{flex:1;font-size:14px;min-width:240px}
.zt2-objets{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:12px 0}
.zt2-objet{position:relative;background:#fff;border-radius:12px;padding:10px;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:13px;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.zt2-objet>span:first-child{font-size:24px}
.zt2-drapeau{position:absolute;top:-10px;right:-6px;font-size:12px;font-weight:700;color:#fff;border-radius:6px;padding:1px 6px;animation:zt2Tampon .6s ease both}
.zt2-d-vert{background:var(--zt2-vert)}.zt2-d-rouge{background:var(--zt2-rouge)}
.zt2-evts{font-size:14px}
.zt2-dec-options{display:grid;gap:8px}
.zt2-dec-opt{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;text-align:left;background:#fff;border:2px solid #ead7c3;border-radius:12px;padding:10px 12px;cursor:pointer}
.zt2-dec-opt .zt2-opt-l{grid-row:span 2}.zt2-dec-opt small{color:#7a5a45}
.zt2-dec-opt.zt2-on{border-color:var(--zt2-rose);background:#fff0f5}
.zt2-photo{display:block;width:100%;border-radius:12px}
.zt2-photo-bandeau{max-height:300px;object-fit:cover;margin-bottom:10px}

/* Final */
.zt2-film-barres{display:flex;gap:6px;align-items:flex-end;height:110px;justify-content:center}
.zt2-film-col{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;width:44px;font-size:11px}
.zt2-film-col i{width:70%;background:linear-gradient(180deg,#ffe28a,var(--zt2-or2));border-radius:4px 4px 0 0;transition:height .8s ease}
.zt2-film-col i.zt2-neg{background:#e57373}
.zt2-film-total{text-align:center;font-size:18px}
.zt2-honnete{background:#eef6ff;border-left:4px solid #3b82f6;border-radius:8px;padding:8px 12px;margin:10px 0}
.zt2-reponse{background:#fff1c2;border-radius:12px;padding:10px 14px;margin:10px 0}.zt2-reponse p{margin:4px 0;font-family:Georgia,serif;font-size:17px}
.zt2-fin h2{font-family:Georgia,serif;color:var(--zt2-bois);text-align:center}.zt2-fin-txt{text-align:center;font-size:17px}

/* Documents */
.zt2-feuille-pose{animation:zt2Pose .6s ease}
@keyframes zt2Pose{from{transform:perspective(800px) rotateX(35deg) translateY(-30px);opacity:0}to{transform:none;opacity:1}}
.zt2-doc{background:#fff;color:#222;padding:16px 18px;border-radius:4px;box-shadow:0 4px 14px rgba(0,0,0,.2);font-size:14px;max-width:760px;margin:0 auto;font-family:Arial,sans-serif}
.zt2-doc-tete{border-bottom:2px solid var(--zt2-rose);margin-bottom:8px;padding-bottom:6px}
.zt2-doc-tete small{display:block;color:#666;font-size:11px}
.zt2-doc-tete h3{margin:8px 0 2px}
.zt2-doc-logo{font-family:Georgia,serif;font-size:20px;color:#b45374;font-weight:700}
.zt2-doc-sous{color:#555;margin:2px 0}
.zt2-doc-admin{background:#e9eef3;font-weight:700;padding:6px 8px;margin-bottom:8px;font-size:13px}
.zt2-sitronel{background:#e8f5e9}
.zt2-doc-pied{font-size:10px;color:#888;border-top:1px solid #eee;margin-top:12px;padding-top:4px}
.zt2-table{width:100%;border-collapse:collapse;margin:6px 0;font-size:13px}
.zt2-table th,.zt2-table td{border:1px solid #ddd;padding:4px 6px;text-align:left}
.zt2-table th{background:#f6eee6}.zt2-table tr.zt2-tot td{font-weight:700;background:#fff8e1}
.zt2-signature{font-family:"Brush Script MT","Comic Sans MS",cursive;font-size:20px;text-align:right;color:#3a3a8a}
.zt2-postit-doc{display:inline-block;background:#fff59d;padding:6px 10px;transform:rotate(-4deg);font-family:"Comic Sans MS",cursive}
.zt2-doc-msg{max-width:420px;background:#f0f4f8}
.zt2-msg-tete{font-weight:700;font-size:13px;margin-bottom:6px}
.zt2-msg-bulle{background:#fff;border-radius:16px 16px 16px 4px;padding:10px 12px;box-shadow:0 1px 3px rgba(0,0,0,.1)}
.zt2-doc-miroir{display:flex;justify-content:center}.zt2-doc-miroir .zt2-miroir-cpt{color:#333;text-shadow:none}
.zt2-doc-courbe{width:100%;max-width:360px;display:block;margin:6px auto}.zt2-doc-courbe polyline{fill:none;stroke:#b45374;stroke-width:2.5}.zt2-doc-courbe text{font-size:9px;text-anchor:middle}
.zt2-attestation{text-align:center;border:6px double var(--zt2-or2)}
.zt2-att-etoile{font-size:40px;color:var(--zt2-or2)}
.zt2-dossier-doc{margin:14px 0}.zt2-dossier-doc h4{color:#fff;margin:4px 0}
.zt2-dossier-ecran .zt2-dossier{margin-top:10px}

/* Démonstrations animées */
.zt2-demo{background:var(--zt2-creme);border-radius:16px;padding:14px 16px;box-shadow:0 8px 24px rgba(0,0,0,.28);max-width:900px;margin:0 auto 12px}
.zt2-demo .zt2-lecon-tete span{font-size:12px;color:#8a6a55}.zt2-demo .zt2-lecon-tete h3{margin:2px 0;font-family:Georgia,serif;color:var(--zt2-bois)}
.zt2-demo-scene{background:linear-gradient(180deg,#fdf1e2,#f6e2c9);border-radius:12px;margin:10px 0;padding:14px;min-height:200px;display:flex;align-items:center;justify-content:center}
.zt2-demo-mcv{width:100%;max-width:620px}
.zt2-demo-barre{display:flex;height:54px;gap:2px}
.zt2-demo-seg{display:flex;align-items:center;justify-content:center;text-align:center;font-size:12px;font-weight:700;border-radius:8px;transition:transform .9s ease,opacity .9s ease,background .6s,box-shadow .6s;padding:2px}
.zt2-seg-reste{background:#f3dfb8}.zt2-seg-cout{background:#f4b6b6}.zt2-seg-sr{background:#e6d6c4}.zt2-seg-vert{background:#bfe3cb}
.zt2-retire{transform:translateY(46px) rotate(6deg);opacity:.35}
.zt2-allume{background:linear-gradient(180deg,#ffe28a,var(--zt2-or2));box-shadow:0 0 18px rgba(242,169,30,.8)}
.zt2-seg-vert.zt2-allume{background:#7fcf99;box-shadow:0 0 14px rgba(47,143,91,.6)}
.zt2-cache{opacity:.15}
.zt2-demo-legende-barre{text-align:center;font-size:13px;margin-bottom:8px;color:var(--zt2-bois);font-weight:700}
.zt2-demo-jauge-h{position:relative;margin-top:30px;height:26px;background:#fff;border:2px solid #8a6a55;border-radius:8px;overflow:hidden;animation:zt2Apparait .5s ease}
.zt2-demo-jauge-h i{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,#ffe28a,var(--zt2-or2));animation:zt2Remplit 1.4s ease both}
.zt2-demo-jauge-h span{position:relative;font-size:12px;font-weight:700;padding-left:8px;line-height:22px}
@keyframes zt2Remplit{from{transform:scaleX(0);transform-origin:left}to{transform:scaleX(1);transform-origin:left}}
.zt2-demo-pile{display:flex;flex-direction:column;align-items:center;gap:6px}
.zt2-demo-tour{position:relative;width:200px;min-height:230px;display:flex;flex-direction:column;justify-content:flex-end;border-bottom:3px solid #8a6a55}
.zt2-demo-jauge{height:250px;border:3px solid #8a6a55;border-top:0;border-radius:0 0 10px 10px;background:rgba(255,255,255,.6)}
.zt2-demo-jauge.zt2-pleine{box-shadow:0 0 22px rgba(255,230,140,.9)}
.zt2-demo-trait{position:absolute;left:-3px;right:-3px;bottom:220px;border-top:2px dashed var(--zt2-rouge);font-size:11px;color:var(--zt2-rouge);text-align:right;padding-right:4px}
.zt2-demo-bloc{display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;border:1px solid rgba(0,0,0,.12);border-radius:4px;animation:zt2Tombe .6s ease both;overflow:hidden;flex:none}
.zt2-bloc-s{background:#ffd6e2}.zt2-bloc-m{background:#e3d4f5}
.zt2-demo-total{font-weight:700;color:var(--zt2-bois);text-align:center}
.zt2-demo-cal{width:100%;max-width:640px}
.zt2-demo-mois{display:grid;grid-template-columns:repeat(12,1fr);gap:3px}
.zt2-demo-case{position:relative;height:74px;background:#fff;border:1px solid #d9b994;border-radius:6px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;align-items:center;font-size:10px}
.zt2-demo-case i{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(180deg,#ffe28a,var(--zt2-or2));transition:height .8s ease}
.zt2-demo-case span,.zt2-demo-case small{position:relative}
.zt2-demo-plancher{width:100%;max-width:600px}
.zt2-demo-axe{position:relative;height:56px;background:#fff;border:2px solid #8a6a55;border-radius:8px;margin-top:22px}
.zt2-demo-zone-rouge{position:absolute;left:0;top:0;bottom:0;background:rgba(192,57,43,.25);font-size:11px;display:flex;align-items:center;justify-content:center}
.zt2-demo-zone-verte{position:absolute;right:0;top:0;bottom:0;background:rgba(47,143,91,.2);font-size:12px;display:flex;align-items:center;justify-content:center}
.zt2-demo-repere{position:absolute;top:-22px;transform:translateX(-50%);font-size:12px;font-weight:700;color:var(--zt2-rouge);border-left:2px solid var(--zt2-rouge);padding-left:4px;white-space:nowrap}
.zt2-demo-curseur{position:absolute;top:10px;transform:translateX(-50%);font-size:26px;transition:left 1.6s ease}
.zt2-demo-axe-t{display:flex;justify-content:space-between;font-size:12px;color:#7a5a45;margin:2px 0 8px}
.zt2-demo .zt2-legende{margin:4px 0}
@media (max-width:760px){.zt2-demo-case{height:60px;font-size:9px}.zt2-demo-case small{display:none}.zt2-demo-barre{height:62px}.zt2-demo-seg{font-size:10px}}
/* Téléphone */
@media (max-width:760px){
  .zt2-coiffeuse-grille{grid-template-columns:1fr}
  .zt2-titre-court{display:none}
  .zt2-mallettes-lit,.zt2-pochettes{grid-template-columns:1fr}
  .zt2-objets{grid-template-columns:repeat(2,1fr)}
  .zt2-lecon{padding-left:34px}
  .zt2-lieu{min-height:280px;padding:10px}
  .zt2-barres{gap:6px}
  .zt2-urnes-rang{gap:6px}.zt2-urne{width:84px}
  .zt2-scenarios{gap:8px}
  .zt2-pochette{min-height:70px}
}
/* Impression du dossier : seul le dossier sort, en A4 */
@media print{
  body.zt2-impression *{visibility:hidden}
  body.zt2-impression .zt2-dossier,body.zt2-impression .zt2-dossier *{visibility:visible}
  body.zt2-impression .zt2-dossier{position:absolute;left:0;top:0;width:100%}
  body.zt2-impression .zt2-dossier-doc{page-break-inside:avoid}
  body.zt2-impression .zt2-dossier-doc h4{color:#000}
  body.zt2-impression .zt2-doc{box-shadow:none}
}
/* ---- EXTENSION 2 : pages « bis », vidéos, brochure ---- */
.zt2-flacons,.zt2-recette,.zt2-compose,.zt2-bulles,.zt2-demonte,.zt2-vitrine{background:var(--zt2-creme);border-radius:14px;padding:12px;box-shadow:0 4px 14px rgba(0,0,0,.2)}
.zt2-flacon:disabled,.zt2-pot:disabled{opacity:1;color:inherit}
.zt2-mois-mini.zt2-bis{border-style:dashed;background:#fdf1d8}
.zt2-seance{background:#fff8ef;border-left:4px solid var(--zt2-or2);border-radius:8px;padding:6px 10px;font-size:14px;margin:8px 0}
/* Lecteur vidéo (9:16) */
.zt2-video{margin:12px auto;max-width:420px;background:#fff;border-radius:12px;padding:10px;box-shadow:0 4px 14px rgba(0,0,0,.18);text-align:center}
.zt2-video figcaption{font-weight:700;color:var(--zt2-bois);margin-bottom:6px}
.zt2-video video{width:100%;max-height:70vh;border-radius:8px;background:#000;aspect-ratio:9/16;object-fit:contain}
.zt2-video-repli{text-align:left;background:#eef6ff;border-left:4px solid #3b82f6;border-radius:8px;padding:8px 10px;font-size:15px}
.zt2-video-texte{text-align:left;font-size:14px;margin-top:6px}.zt2-video-texte summary{cursor:pointer;color:#3b6fb6}
/* Animation des flacons */
.zt2-flacon-grand{display:flex;flex-direction:column;align-items:center;gap:6px}
.zt2-flacon-verre{font-size:54px;position:relative;transition:transform .6s}.zt2-flacon-verre b{display:block;font-size:16px;color:var(--zt2-bois)}
.zt2-flacon-verre.zt2-coupe{transform:scale(.7)}
.zt2-visages{display:grid;grid-template-columns:repeat(10,14px);gap:3px;justify-content:center}
.zt2-visages i{width:14px;height:14px;border-radius:50%;background:radial-gradient(circle at 40% 35%,#ffe1cc,#e8b894);animation:zt2Pop .4s both}
.zt2-visages-jeu{grid-template-columns:repeat(20,12px)}.zt2-visages-jeu i{width:12px;height:12px}
@keyframes zt2Pop{from{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}
.zt2-doses{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center}
.zt2-doses span{background:#fff;border:2px solid #ead7c3;border-radius:999px;padding:3px 9px;animation:zt2Pop .4s both}.zt2-doses b{width:100%;text-align:center;font-size:18px;color:var(--zt2-bois)}
/* Le flacon gradué */
.zt2-etagere{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;background:linear-gradient(#7b5136,#5a3a26);padding:12px;border-radius:12px;margin:8px 0}
.zt2-flacon{display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff8ef;border:2px solid #ead7c3;border-radius:12px;padding:8px;cursor:pointer;font-size:14px;text-align:center}
.zt2-flacon small{color:#7a5a45}.zt2-flacon i{font-size:13px}
.zt2-flacon:disabled{cursor:default}.zt2-flacon.zt2-actif{border-color:var(--zt2-rose);box-shadow:0 0 0 3px rgba(232,138,166,.4)}
.zt2-flacon.zt2-fait{background:#f2fbf5;border-color:#9fd3b2}
.zt2-flacon-ico{font-size:30px}
.zt2-goutte{margin-top:4px;background:#e7f3ff;border-radius:999px;padding:2px 8px;font-weight:700;animation:zt2Pop .4s both}
.zt2-decoupe{background:#fff;border-radius:12px;padding:8px;margin:8px 0;text-align:center}
.zt2-coupelle{background:#fff8ef;border:2px dashed var(--zt2-or2);border-radius:12px;padding:10px;margin-top:10px}
/* La fiche recette */
.zt2-recette-rang{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center}
.zt2-fiche{background:#fffdf5;border:1px solid #e3d3b8;border-radius:8px;padding:10px;font-size:14px;box-shadow:2px 3px 0 #e3d3b8}
.zt2-fiche ul{margin:6px 0 0;padding-left:18px}.zt2-fiche li.zt2-ok{color:var(--zt2-vert);font-weight:700}
.zt2-visage-sil{position:relative;width:170px;height:200px;margin:0 auto;border-radius:50% 50% 46% 46%;background:radial-gradient(circle at 50% 40%,#ffe7d6,#e9b996);display:flex;align-items:center;justify-content:center;font-size:70px;transition:box-shadow .5s}
.zt2-visage-sil.zt2-maquille{box-shadow:0 0 0 6px var(--zt2-or),0 0 24px var(--zt2-or)}
.zt2-visage-doses{position:absolute;bottom:6px;left:0;right:0;display:flex;flex-wrap:wrap;justify-content:center;gap:2px;font-size:18px}
.zt2-visage-doses i{animation:zt2Pop .35s both}
.zt2-pots{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:10px 0}
.zt2-pot{display:flex;flex-direction:column;align-items:center;background:#fff;border:2px solid #ead7c3;border-radius:12px;padding:6px;cursor:pointer;font-size:13px}
.zt2-pot span{font-size:24px}.zt2-pot i{font-size:12px;color:#7a5a45}.zt2-pot:disabled{opacity:.6;cursor:default}
/* La brochure, trois volets (A4 paysage plié en trois) */
.zt2-brochure{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;color:#2b1d16;font-family:Georgia,serif;border-radius:4px;box-shadow:0 6px 18px rgba(0,0,0,.25);min-height:360px;overflow:hidden}
.zt2-volet{padding:14px 12px;border-right:1px dashed #d8c3ad;font-size:13px;position:relative}.zt2-volet:last-child{border-right:0}
.zt2-volet h4{margin:4px 0 8px;color:#b45374;font-size:15px}
.zt2-volet-face{background:linear-gradient(160deg,#3a2418,#6e4630);color:#fff8ef;text-align:center;display:flex;flex-direction:column;justify-content:flex-end;min-height:340px}
.zt2-broch-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55}
.zt2-broch-photo+.zt2-broch-photo-ico{display:none}
.zt2-broch-photo-ico{position:absolute;top:30%;left:0;right:0;font-size:60px;opacity:.5}
.zt2-broch-titre,.zt2-broch-sous,.zt2-broch-slogan,.zt2-broch-annee{position:relative}
.zt2-broch-titre{font-size:24px;color:var(--zt2-or)}.zt2-broch-sous{font-size:13px}
.zt2-broch-slogan{font-style:italic;margin:10px 4px;font-size:15px}.zt2-broch-annee{font-size:12px;letter-spacing:2px;text-transform:uppercase;margin-bottom:6px}
.zt2-broch-l{display:grid;grid-template-columns:auto 1fr auto;gap:6px;align-items:center;border-bottom:1px dotted #e3d3b8;padding:5px 0}
.zt2-broch-l small{display:block;color:#7a5a45;font-family:Arial,sans-serif;font-size:11px}.zt2-broch-l em{font-style:normal;font-weight:700;color:#b45374;white-space:nowrap}
.zt2-broch-l-petite{font-size:12px;padding:2px 0}
.zt2-broch-mini{font-size:10px;color:#7a5a45;font-family:Arial,sans-serif}
.zt2-broch-contact{font-weight:700;margin-top:10px}
.zt2-broch-photo-petite{width:100%;max-height:90px;object-fit:cover;border-radius:6px}
.zt2-brochure-apercu{transform-origin:top center}
.zt2-broch-mini-grille{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;background:#fff;border-radius:10px;padding:10px;box-shadow:0 3px 10px rgba(0,0,0,.15)}
.zt2-broch-mini-titre{grid-column:1/-1;color:#b45374;font-family:Georgia,serif}
.zt2-broch-case{display:flex;justify-content:space-between;gap:8px;border:1px dashed #d8c3ad;border-radius:8px;padding:6px 8px;font-size:14px}
.zt2-broch-case.zt2-tombe b{color:#b45374;animation:zt2Tombe .6s both}
@keyframes zt2Tombe{from{transform:translateY(-30px);opacity:0}to{transform:none;opacity:1}}
.zt2-compose-choix{background:#fff;border-radius:12px;padding:10px;margin:10px 0}.zt2-compose-choix>b{display:block;margin:8px 0 4px}
/* Le téléphone du 27 décembre */
.zt2-tel4b{max-width:520px;margin:0 auto 10px;background:#f3ece4;border:10px solid #2b1d16;border-radius:28px;padding:10px;min-height:220px}
.zt2-tel4b-petit{max-width:300px;min-height:160px;border-width:6px;font-size:13px}
.zt2-tel4b-tete{font-size:12px;text-align:center;color:#7a5a45;margin-bottom:6px}
.zt2-bulle4b{background:#fff;border-radius:14px 14px 14px 4px;padding:8px 10px;margin:6px 0;max-width:88%;box-shadow:0 1px 2px rgba(0,0,0,.15);font-size:14px}
.zt2-bulle4b p{margin:4px 0 0}.zt2-bulle4b-nom{font-weight:700;font-size:13px;display:flex;justify-content:space-between;gap:8px}.zt2-bulle4b-nom small{font-weight:400;color:#8a6a55}
.zt2-bulle4b.zt2-arrive{animation:zt2Pop .4s both}
.zt2-bulle4b.zt2-passe{opacity:.6;font-size:12px}
.zt2-bulle4b.zt2-envoye{margin-left:auto;background:#dcf5d4;border-radius:14px 14px 4px 14px}
.zt2-etiq4b-rang{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0}
.zt2-etiq4b{background:#fff8ef;border:2px dashed var(--zt2-or2);border-radius:8px;padding:4px 8px;font-size:13px;cursor:pointer}
.zt2-etiq4b.zt2-colle{border-style:solid;background:#fff3c9;cursor:default;animation:zt2Tombe .4s both}
.zt2-jauges4b{background:#fff;border-radius:10px;padding:6px 8px;margin:6px 0;font-size:13px}
.zt2-jauges4b>div{margin:4px 0}.zt2-jauges4b i{display:block;height:10px;border-radius:5px;background:var(--zt2-vert);margin-top:2px;transition:width .8s}
.zt2-jauges4b i.zt2-j-paie{background:var(--zt2-or2)}.zt2-jauges4b i.zt2-j-neg{background:var(--zt2-rouge)}
.zt2-cartes4b{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.zt2-carte4b{display:flex;flex-direction:column;align-items:center;gap:4px;background:#fff;border:2px solid #ead7c3;border-radius:12px;padding:10px 6px;cursor:pointer;font-size:14px;text-align:center}
.zt2-carte4b span{font-size:26px}.zt2-carte4b:disabled{opacity:.4;cursor:not-allowed}.zt2-carte4b small{font-size:11px;color:#7a5a45}
.zt2-carte4b.zt2-mini4b{padding:4px;font-size:18px}
.zt2-recap4b{list-style:none;padding:0}.zt2-recap4b li{background:#fff;border-radius:8px;padding:6px 10px;margin:4px 0}
.zt2-recap4b li.zt2-ok{border-left:4px solid var(--zt2-vert)}.zt2-recap4b li.zt2-ko{border-left:4px solid var(--zt2-rouge);color:inherit}
.zt2-rep4b{border-bottom:1px dotted #ddd;padding:6px 0}.zt2-msg-elle{background:#eef6ff}
/* La facture qui se démonte */
.zt2-facture{background:#fff;font-family:"Courier New",monospace;font-size:14px;border-radius:4px;padding:10px 12px;box-shadow:0 4px 14px rgba(0,0,0,.2);max-width:520px;margin:0 auto}
.zt2-facture-tete{font-weight:700;border-bottom:2px solid #2b1d16;padding-bottom:4px;margin-bottom:6px;font-size:12px}
.zt2-facture-l{display:flex;justify-content:space-between;gap:8px;padding:3px 0;border-bottom:1px dashed #ddd}
.zt2-facture-tot{font-weight:700;border-top:2px solid #2b1d16;border-bottom:0;margin-top:4px}
.zt2-facture-anim{max-width:340px}
.zt2-demonte-rang{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:8px 0}
.zt2-bandes{display:flex;flex-direction:column;gap:8px}
.zt2-bande{background:#fff;border:1px solid #d8c3ad;border-radius:2px;padding:8px;font-family:"Courier New",monospace;font-size:13px;text-align:left;cursor:pointer;box-shadow:0 2px 0 #e3d3b8}
.zt2-bande.zt2-allume{box-shadow:0 0 0 3px var(--zt2-or)}
.zt2-pot-achat{background:linear-gradient(#e7f3ff,#cfe4fb);border:3px solid #9cc5e8;border-radius:0 0 40px 40px;padding:10px;min-height:170px;display:flex;flex-direction:column;gap:6px}
.zt2-bande.zt2-dans-pot{animation:zt2Tombe .35s both}
/* Le multiplicateur */
.zt2-multi{display:flex;flex-direction:column;align-items:center;gap:8px}
.zt2-spray-carte{display:flex;flex-direction:column;align-items:center;background:#fff;border-radius:12px;padding:10px 16px}
.zt2-etiq-prix{display:inline-block;background:#fff3c9;border:2px solid var(--zt2-or2);border-radius:6px;padding:2px 8px;font-weight:700;transition:transform .4s}
.zt2-spray-carte .zt2-etiq-prix{font-size:22px;margin-top:6px}
.zt2-molette{display:flex;flex-wrap:wrap;align-items:center;gap:6px;justify-content:center;font-size:14px}
.zt2-molette-x{font-size:22px;font-weight:700;color:#b45374}
.zt2-cotis7b{background:#fff;border-radius:10px;padding:8px 10px;font-size:13px}
.zt2-cotis7b>div{margin:6px 0}.zt2-cotis7b i{display:block;height:20px;line-height:20px;border-radius:4px;background:#e9a6b8;color:#fff;font-style:normal;font-weight:700;padding-left:6px;margin-top:2px;transition:width .8s;white-space:nowrap}
.zt2-cotis7b i.zt2-c-vente{background:#2f8f5b}
/* La vitrine */
.zt2-vitrine-boite{display:grid;gap:10px}
.zt2-vitrine-verre{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;background:linear-gradient(180deg,rgba(220,240,255,.85),rgba(190,220,240,.6));border:3px solid #bfd8ea;border-bottom-width:8px;border-radius:8px;padding:10px;min-height:110px}
.zt2-vitrine-place{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#9bb;font-size:13px}
.zt2-vitrine-place span{font-size:28px}.zt2-vitrine-place.zt2-pose{animation:zt2Tombe .4s both;color:#2b1d16}
.zt2-vitrine-carton{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.zt2-vitrine-bilan{background:#fff;border-radius:10px;padding:8px 10px;margin:8px 0}
.zt2-demo-doses{display:flex;flex-direction:column;gap:4px;min-width:260px}
.zt2-ligne-tot{font-weight:700;border-top:2px solid #2b1d16}
.zt2-doc-brochure{max-width:980px;padding:8px}
@media (max-width:760px){
  .zt2-etagere,.zt2-recette-rang,.zt2-demonte-rang{grid-template-columns:1fr 1fr}
  .zt2-recette-rang,.zt2-demonte-rang{grid-template-columns:1fr}
  .zt2-pots,.zt2-cartes4b{grid-template-columns:repeat(2,1fr)}
  .zt2-brochure{grid-template-columns:1fr}.zt2-volet{border-right:0;border-bottom:1px dashed #d8c3ad}
  .zt2-volet-face{min-height:240px;order:-1}
  .zt2-vitrine-verre,.zt2-vitrine-carton{grid-template-columns:repeat(3,1fr)}
  .zt2-visages-jeu{grid-template-columns:repeat(12,12px)}
  .zt2-tel4b{border-width:6px}
}
/* La brochure s'imprime seule, en A4 paysage plié en trois */
@page zt2pay{size:A4 landscape;margin:8mm}
@media print{
  body.zt2-impression .zt2-dossier-doc:has(.zt2-doc-brochure){page:zt2pay;break-before:page;break-after:page}
  body.zt2-impression .zt2-brochure{grid-template-columns:repeat(3,1fr);box-shadow:none;min-height:180mm}
  body.zt2-impression .zt2-volet-face{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
/* ==== zt2 : fin des styles ==== */
/* ==== mtd : debut des styles ====
   « Tout i tyin ! » — préfixe mtd-. La carte vivante du parc (photo en
   trois états, fils animés, nœuds et plantes), la fiche-graine, et une
   mise en page par mécanique (tisser, loupe, bacs, cascade, nœuds, pont,
   invitations, discours). */
.mtd .pdl-decor-contenu{max-width:1060px}
.mtd-hud-lieu{margin:0 auto;color:#fff;font-size:13px;font-weight:700;text-align:center;padding:4px 12px;border-radius:20px;background:rgba(21,128,61,.55);border:1px solid #4ade80;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:46vw}
@media (max-width:620px){.mtd-hud-lieu{font-size:11px;padding:3px 8px}.mtd .pdl-hud-outils button{width:32px;height:32px;font-size:15px}}
.mtd .pdl-qcm{background:rgba(255,255,255,.97);border-radius:18px;padding:16px;max-width:840px;box-shadow:0 12px 34px rgba(0,0,0,.28);align-self:center}
.mtd-plein{width:100%;max-width:1100px;margin:0 auto;padding:12px;display:flex;flex-direction:column;gap:12px;box-sizing:border-box;background:linear-gradient(180deg,#ecfdf5,#f0fdf4 60%,#fefce8);min-height:100%}
@keyframes mtd-tombe{from{opacity:0;transform:translateY(-16px) rotate(-1.2deg)}to{opacity:1;transform:none}}
@keyframes mtd-pulse{0%{box-shadow:0 0 0 0 rgba(250,204,21,.85)}70%{box-shadow:0 0 0 14px rgba(250,204,21,0)}100%{box-shadow:0 0 0 0 rgba(250,204,21,0)}}
@keyframes mtd-non{0%,100%{transform:translateX(0)}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
@keyframes mtd-tremble{0%{transform:translate(0,0)}25%{transform:translate(2px,-1px)}50%{transform:translate(-2px,1px)}75%{transform:translate(1px,2px)}}
@keyframes mtd-pousse{from{transform:scale(.6) translateY(4px)}to{transform:none}}
@keyframes mtd-flotte{50%{transform:translateY(-4px)}}

/* --- encart 💡 Aide --- */
.mtd-exo{width:100%;display:flex;flex-direction:column;gap:12px;align-items:stretch}
.mtd-aide{background:#fffbeb;border:2px solid #fcd34d;border-radius:14px;max-width:860px;width:100%;align-self:center;box-shadow:0 4px 14px rgba(0,0,0,.12);box-sizing:border-box}
.mtd-aide-t{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;background:none;border:0;font:inherit;font-weight:800;font-size:15px;color:#92400e;padding:10px 14px;cursor:pointer}
.mtd-aide-t span{font-weight:500;font-size:13px;color:#b45309}
.mtd-aide-corps{padding:0 14px 12px;font-size:14px;line-height:1.45}
.mtd-aide-o{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.mtd-aide-opt{font:inherit;font-size:14px;background:#fff;border:2px solid #fde68a;border-radius:10px;padding:7px 12px;cursor:pointer;text-align:left}
.mtd-aide-opt.mtd-aide-bon{background:#dcfce7;border-color:#16a34a}.mtd-aide-opt.mtd-aide-faux{background:#fee2e2;border-color:#dc2626}
.mtd-aide-corr{margin:6px 0;color:#713f12}
.mtd-aide-re{font:inherit;font-size:13px;background:none;border:0;color:#b45309;cursor:pointer;text-decoration:underline}

/* --- consignes, récits --- */
.mtd-consigne{background:rgba(255,255,255,.96);border-radius:12px;padding:10px 14px;margin:0;font-size:15px;line-height:1.45;max-width:940px;align-self:center;box-shadow:0 6px 18px rgba(0,0,0,.14);box-sizing:border-box;width:100%}
.mtd-consigne i{color:#64748b;font-size:13px}
.mtd-recit{background:rgba(15,23,42,.84);color:#fff;border-radius:16px;padding:16px 20px;max-width:680px;font-size:17px;line-height:1.55;display:flex;flex-direction:column;gap:10px;align-items:flex-end;animation:mtd-tombe .5s ease}
.mtd-recit p{margin:0;align-self:stretch}
.mtd-msg{max-width:940px;align-self:center}
.mtd-astuce{margin:0;font-size:14px;color:#334155;background:#f1f5f9;border-radius:10px;padding:8px 12px;align-self:center;max-width:940px}
.mtd-astuce-fort{background:#e0f2fe;color:#075985;font-weight:700;animation:mtd-tombe .5s ease}

/* --- la fiche-graine (la leçon) --- */
.mtd-graine{background:#fffdf5;border-radius:18px;max-width:860px;width:100%;align-self:center;box-shadow:0 14px 38px rgba(0,0,0,.32);overflow:hidden;animation:mtd-tombe .5s ease;display:flex;flex-direction:column;box-sizing:border-box}
.mtd-graine-sachet{background:linear-gradient(135deg,#166534,#15803d 55%,#65a30d);color:#fff;padding:12px 16px;display:flex;flex-direction:column;gap:6px;position:relative}
.mtd-graine-sachet:after{content:"";position:absolute;left:0;right:0;bottom:-8px;height:16px;background:radial-gradient(circle at 8px 0,transparent 7px,#fffdf5 8px) repeat-x;background-size:16px 16px}
.mtd-graine-tete{display:flex;align-items:center;gap:10px}
.mtd-graine-ico{font-size:30px;animation:mtd-flotte 2.4s ease-in-out infinite}
.mtd-graine-tete small{display:block;font-size:11px;letter-spacing:.12em;text-transform:uppercase;opacity:.85}
.mtd-graine-tete h3{margin:0;font-size:19px}
.mtd-graine-tete>div{flex:1}
.mtd-graine-qui{display:flex;align-items:center;gap:8px;font-size:13px}
.mtd-graine-qui img{width:30px;height:30px;border-radius:50%;object-fit:cover;border:2px solid #fff}
.mtd-graine-notions{padding:18px 16px 6px;display:flex;flex-direction:column;gap:12px}
.mtd-notion{border-left:4px solid #16a34a;background:#f0fdf4;border-radius:10px;padding:10px 12px;animation:mtd-tombe .45s ease}
.mtd-notion-mot{display:flex;align-items:center;gap:6px;font-size:18px;color:#14532d}
.mtd-notion-mot b{text-transform:none}
.mtd-notion p{margin:6px 0 0;font-size:15px;line-height:1.5;color:#1e293b}
.mtd-notion-ici{color:#334155!important}
.mtd-notion-def{background:#fff;border:1px dashed #86efac;border-radius:8px;padding:6px 10px;font-size:14px!important;color:#14532d!important}
.mtd-graine-plus{font:inherit;font-weight:700;background:#dcfce7;border:0;border-top:1px solid #bbf7d0;padding:10px;cursor:pointer;color:#166534}
.mtd-graine>.pdl-cta{margin:10px 16px 14px;align-self:flex-end}

/* --- la carte vivante du réseau --- */
.mtd-reseau{position:relative;width:100%;aspect-ratio:16/9;border-radius:18px;overflow:hidden;box-shadow:0 12px 34px rgba(0,0,0,.3);background:#14532d;user-select:none;-webkit-user-select:none;align-self:center}
.mtd-reseau-tisse{touch-action:none}
@media (max-width:640px){.mtd-reseau{aspect-ratio:5/4}}
.mtd-reseau-fond{position:absolute;inset:0;background-size:cover;background-position:center;transition:opacity 1.6s ease}
.mtd-reseau-voile{position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,23,42,.18),rgba(15,23,42,.05) 40%,rgba(15,23,42,.25))}
.mtd-reseau-svg{position:absolute;inset:0;pointer-events:none}
.mtd-fil-trace{fill:none;stroke-width:4;stroke-linecap:round;filter:drop-shadow(0 0 3px rgba(255,255,255,.7));stroke-dasharray:600;animation:mtd-trace 1.2s ease-out}
@keyframes mtd-trace{from{stroke-dashoffset:600}to{stroke-dashoffset:0}}
.mtd-fil-zone{fill:none;stroke:transparent;stroke-width:22;pointer-events:stroke;cursor:pointer}
.mtd-fil-gris .mtd-fil-trace{stroke-dasharray:none;animation:none;opacity:.85;stroke-width:5}
.mtd-fil-invisible .mtd-fil-trace{stroke-dasharray:4 7;animation:mtd-luit 1.6s ease-in-out infinite;stroke:#e0f2fe!important}
@keyframes mtd-luit{50%{opacity:.35}}
.mtd-fil-attente .mtd-fil-trace{stroke-dasharray:6 6;animation:none}
.mtd-fil-casse .mtd-fil-trace{stroke-dasharray:10 14;animation:none;opacity:.8}
.mtd-fil-choisi .mtd-fil-trace{stroke-width:8;stroke:#facc15!important}
.mtd-particule{filter:drop-shadow(0 0 4px #fff)}
.mtd-fil-etiq{fill:#fff;font:700 12px sans-serif;text-anchor:middle;paint-order:stroke;stroke:#0f172a;stroke-width:3px}
.mtd-fil-tire{stroke:#facc15;stroke-width:4;stroke-dasharray:8 6;stroke-linecap:round}
.mtd-noeud{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:2px;cursor:pointer;z-index:2;touch-action:none}
.mtd-noeud-badge{position:relative;width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.92);border:3px solid #fff;box-shadow:0 4px 14px rgba(0,0,0,.4);display:grid;place-items:center;font-size:22px;transition:transform .2s}
.mtd-noeud:hover .mtd-noeud-badge{transform:scale(1.08)}
.mtd-noeud-ext .mtd-noeud-badge{background:rgba(224,242,254,.95);border-style:dashed;border-color:#0284c7}
.mtd-noeud-nom{background:rgba(15,23,42,.82);color:#fff;font:700 11px/1.2 sans-serif;padding:2px 7px;border-radius:8px;white-space:nowrap}
.mtd-noeud-marque{background:#facc15;color:#422006;font:800 11px/1.2 sans-serif;padding:2px 7px;border-radius:8px;white-space:nowrap;animation:mtd-tombe .4s ease}
.mtd-noeud-sel .mtd-noeud-badge{border-color:#facc15;transform:scale(1.15)}
.mtd-noeud-cible .mtd-noeud-badge{border-color:#facc15;animation:mtd-pulse 1.4s infinite}
.mtd-noeud-etape .mtd-noeud-badge{border-color:#facc15;animation:mtd-pulse 1.6s infinite}
.mtd-noeud-etape .mtd-noeud-marque{background:#fde047}
.mtd-noeud-eteint{opacity:.45;filter:grayscale(1)}
.mtd-noeud-feu .mtd-noeud-badge{background:#fecaca;border-color:#dc2626;animation:mtd-tremble .25s infinite}
.mtd-noeud-feu .mtd-noeud-marque,.mtd-noeud-touche .mtd-noeud-marque,.mtd-noeud-rate .mtd-noeud-marque{background:#dc2626;color:#fff}
.mtd-noeud-touche .mtd-noeud-badge{filter:grayscale(.7);border-color:#f97316}
.mtd-noeud-tas .mtd-noeud-marque{background:#78350f;color:#fef3c7}
.mtd-noeud-demande .mtd-noeud-marque{background:#fde047}
.mtd-plante{position:absolute;right:-20px;top:-24px;width:34px;height:36px;overflow:visible;filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))}
.mtd-plante-terre{fill:#78350f}
.mtd-plante-tige{stroke:#15803d;stroke-width:2.2;fill:none;stroke-linecap:round;transition:all .8s ease}
.mtd-plante-feuille{fill:#22c55e;stroke:#15803d;stroke-width:.6;animation:mtd-pousse .7s ease-out;transform-origin:12px 24px}
.mtd-plante-fleur{fill:#facc15;stroke:#f97316;stroke-width:1;animation:mtd-pousse .9s ease-out}
.mtd-plante-0 .mtd-plante-tige{stroke:#a16207}
.mtd-plante-seche{stroke:#a16207;fill:none;stroke-width:1.6}
.mtd-reseau-astuce{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);background:#facc15;color:#422006;font:700 12px sans-serif;padding:4px 10px;border-radius:10px;z-index:3;max-width:92%;text-align:center}
@media (max-width:640px){.mtd-noeud-badge{width:36px;height:36px;font-size:17px;border-width:2px}.mtd-noeud-nom{font-size:10px;padding:1px 5px}.mtd-noeud-marque{font-size:10px}.mtd-plante{right:-15px;top:-18px;width:26px;height:28px}}

/* --- le hub --- */
.mtd-hub{width:100%;max-width:1100px;margin:0 auto;padding:12px;display:flex;flex-direction:column;gap:12px;box-sizing:border-box;background:linear-gradient(180deg,#ecfdf5,#fefce8)}
.mtd-hub-tete{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.mtd-hub-tete>div:first-child{display:flex;flex-direction:column;gap:2px}
.mtd-hub-tete b{font-size:20px;color:#14532d}
.mtd-hub-tete span{font-size:14px;color:#334155}
.mtd-verdure{display:flex;align-items:center;gap:8px;background:#fff;border-radius:12px;padding:6px 10px;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.mtd-verdure i{font-size:12px;color:#64748b}
.mtd-verdure-barre{width:140px;height:12px;background:linear-gradient(90deg,#fde68a,#fef3c7);border-radius:6px;overflow:hidden}
.mtd-verdure-barre span{display:block;height:100%;background:linear-gradient(90deg,#84cc16,#15803d);transition:width 1.2s ease}
.mtd-verdure b{color:#15803d}
.mtd-legende{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.mtd-legende span{font-size:12px;background:#fff;border-left:4px solid var(--c);border-radius:8px;padding:3px 8px}
.mtd-fiche-noeud{position:relative;background:#fff;border-radius:14px;padding:10px 14px;box-shadow:0 6px 18px rgba(0,0,0,.14);font-size:14px;animation:mtd-tombe .4s ease}
.mtd-fiche-noeud p{margin:4px 0}
.mtd-fiche-x{position:absolute;right:8px;top:6px;background:none;border:0;font-size:16px;cursor:pointer}
.mtd-etapes{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.mtd-etape{font:inherit;text-align:left;display:grid;grid-template-columns:auto 1fr;gap:2px 10px;background:#fff;border:2px solid #e2e8f0;border-radius:14px;padding:10px 12px;cursor:pointer}
.mtd-etape-n{grid-row:1/4;font-size:24px;align-self:center}
.mtd-etape b{font-size:15px;color:#14532d}.mtd-etape i{font-size:12px;color:#475569}.mtd-etape em{font-size:12px;color:#15803d;font-style:normal;font-weight:700}
.mtd-etape-ouverte{border-color:#facc15;animation:mtd-pulse 2s infinite}
.mtd-etape-faite{background:#f0fdf4;border-color:#86efac}
.mtd-etape-fermee{opacity:.6;cursor:not-allowed}
.mtd-souvenirs{background:#fffdf5;border:1px solid #fde68a;border-radius:14px;padding:10px 14px;font-size:14px}
.mtd-souvenirs ul{margin:6px 0 0;padding-left:18px}.mtd-souvenirs li{margin:3px 0}

/* --- accueil --- */
.mtd-accueil h1 span{display:block;font-size:.5em;font-weight:600;opacity:.9}
.mtd-accueil-titre{background:rgba(255,255,255,.14);border-radius:10px;padding:8px 12px}
.mtd-accueil-fils{display:flex;gap:10px;justify-content:center;margin:6px 0}
.mtd-accueil-fils span{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#fff;border:3px solid var(--c);font-size:18px;animation:mtd-flotte 2.2s ease-in-out infinite}

/* --- tisser --- */
.mtd-tisser{display:flex;flex-direction:column;gap:10px}
.mtd-demande{background:#fff;border-radius:14px;padding:10px 14px;box-shadow:0 6px 18px rgba(0,0,0,.14);animation:mtd-tombe .4s ease}
.mtd-demande p{margin:4px 0;font-size:15px;line-height:1.45}
.mtd-demande .mtd-consigne{box-shadow:none;padding:6px 0 0;background:none;font-size:14px}
.mtd-demande-n{font:800 11px sans-serif;letter-spacing:.1em;color:#15803d;text-transform:uppercase}
.mtd-fils{background:#fff;border-radius:14px;padding:10px 14px;box-shadow:0 6px 18px rgba(0,0,0,.14);animation:mtd-tombe .35s ease}
.mtd-fils p{margin:0 0 8px;font-size:15px}
.mtd-fils-choix{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
@media (max-width:640px){.mtd-fils-choix{grid-template-columns:repeat(2,minmax(0,1fr))}}
.mtd-fil-btn{font:inherit;text-align:left;display:grid;grid-template-columns:auto 1fr;gap:0 8px;background:color-mix(in srgb,var(--c) 10%,#fff);border:2px solid var(--c);border-radius:12px;padding:8px 10px;cursor:pointer}
.mtd-fil-btn span{grid-row:1/3;font-size:20px;align-self:center}.mtd-fil-btn b{font-size:14px}.mtd-fil-btn i{font-size:11px;color:#475569}
.mtd-fil-btn:hover{transform:translateY(-2px)}
.mtd-lien-annule{font:inherit;font-size:13px;background:none;border:0;color:#64748b;text-decoration:underline;cursor:pointer;margin-top:6px}
.mtd-verdit{display:flex;flex-direction:column;gap:10px}

/* --- la loupe --- */
.mtd-loupe{display:flex;flex-direction:column;gap:10px}
.mtd-loupe-liste{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px}
.mtd-loupe-fil{font:inherit;text-align:left;display:flex;flex-direction:column;gap:2px;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:8px 10px;cursor:pointer;font-size:13px}
.mtd-loupe-fil small{font-weight:800;color:#64748b;font-size:11px}
.mtd-loupe-sel{border-color:#facc15;box-shadow:0 0 0 3px rgba(250,204,21,.4)}
.mtd-loupe-teint{border-color:var(--c);background:color-mix(in srgb,var(--c) 10%,#fff);cursor:default}
.mtd-loupe-inv{border-style:dashed;border-color:#0284c7;animation:mtd-tombe .5s ease}
.mtd-familles{background:#fff;border-radius:14px;padding:10px 14px;box-shadow:0 6px 18px rgba(0,0,0,.14);animation:mtd-tombe .35s ease}
.mtd-familles p{margin:0 0 8px;font-size:15px}
.mtd-familles-choix{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
@media (max-width:640px){.mtd-familles-choix{grid-template-columns:1fr}}
.mtd-fam-btn{font:inherit;text-align:left;display:grid;grid-template-columns:auto 1fr;gap:0 8px;background:color-mix(in srgb,var(--c) 10%,#fff);border:2px solid var(--c);border-radius:12px;padding:8px 10px;cursor:pointer}
.mtd-fam-btn span{grid-row:1/3;font-size:22px;align-self:center}.mtd-fam-btn i{font-size:12px;color:#475569}

/* --- les bacs à déchets --- */
.mtd-boucle{display:flex;flex-direction:column;gap:10px}
.mtd-compteur{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;background:#fff;border-radius:12px;padding:8px 12px;font-size:14px;box-shadow:0 2px 8px rgba(0,0,0,.1)}
.mtd-compteur-barre{height:14px;border-radius:7px;background:#e2e8f0;display:flex;overflow:hidden}
.mtd-compteur-barre span{background:#16a34a;transition:width .8s}.mtd-compteur-barre i{background:#78350f;transition:width .8s;margin-left:auto}
.mtd-compteur-v b{color:#15803d}.mtd-compteur-e b{color:#78350f}
@media (max-width:520px){.mtd-compteur{grid-template-columns:1fr 1fr}.mtd-compteur-barre{grid-column:1/-1;grid-row:2}}
.mtd-tas{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.mtd-tas-btn{font:inherit;display:flex;flex-direction:column;align-items:flex-start;background:#fef3c7;border:2px solid #d97706;border-radius:12px;padding:6px 10px;cursor:pointer;animation:mtd-tombe .4s ease}
.mtd-tas-btn small{font-size:11px;color:#92400e}.mtd-tas-btn b{font-size:14px}.mtd-tas-btn i{font-size:12px;color:#78350f}
.mtd-tas-sel{border-color:#facc15;background:#fde047;transform:translateY(-3px);box-shadow:0 6px 14px rgba(0,0,0,.2)}
.mtd-boucle-envoi{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:center;background:#fff;border-radius:12px;padding:8px 12px;font-size:14px}
.mtd-decharge{font:inherit;font-weight:700;background:#78350f;color:#fef3c7;border:0;border-radius:10px;padding:6px 12px;cursor:pointer}
.mtd-camion{background:rgba(15,23,42,.86);color:#fff;border-radius:16px;padding:16px 20px;max-width:640px;display:flex;flex-direction:column;gap:10px;align-items:center;text-align:center}
.mtd-camion-anim{font-size:42px;animation:mtd-roule 3s linear infinite}
@keyframes mtd-roule{from{transform:translateX(-140px)}to{transform:translateX(140px)}}
.mtd-camion-txt{font-size:17px;line-height:1.5;margin:0}

/* --- calculs --- */
.mtd-calcul{background:rgba(255,255,255,.97);border-radius:18px;padding:16px;max-width:820px;width:100%;align-self:center;box-shadow:0 12px 34px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:10px;box-sizing:border-box}
.mtd-calcul-q{font-size:17px;font-weight:700;margin:0}
.mtd-rappel{background:#eff6ff;border-left:4px solid #2563eb;border-radius:8px;padding:8px 12px;font-size:14px;line-height:1.45}
.mtd-formule-btn{font:inherit;font-size:13px;align-self:flex-start;background:#fef9c3;border:1px solid #facc15;border-radius:10px;padding:5px 10px;cursor:pointer}
.mtd-formule{margin:0;background:#fefce8;border-radius:8px;padding:8px 12px;font-weight:700;color:#713f12}
.mtd-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mtd-saisie input{font:inherit;font-size:18px;width:150px;padding:8px 12px;border:2px solid #cbd5e1;border-radius:10px}
.mtd-saisie input:focus{border-color:#16a34a;outline:none}

/* --- la cascade --- */
.mtd-cascade{display:flex;flex-direction:column;gap:10px}
.mtd-tremble .mtd-reseau{animation:mtd-tremble .18s infinite}
.mtd-alerte{background:rgba(69,10,10,.9);color:#fff;border-radius:16px;padding:16px 20px;max-width:620px;display:flex;flex-direction:column;gap:10px;align-items:center;text-align:center;font-size:17px;line-height:1.5}
.mtd-alerte p{margin:0}
.mtd-alerte-bandeau{background:#dc2626;font-weight:800;letter-spacing:.1em;padding:6px 14px;border-radius:8px;animation:mtd-luit .8s infinite}
.mtd-decor-feu .pdl-decor-img{filter:sepia(.4) saturate(1.6) hue-rotate(-12deg) brightness(.8)}
.mtd-prev{display:flex;flex-direction:column;gap:6px}
.mtd-prev-ligne{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#fff;border-radius:12px;padding:6px 10px}
.mtd-prev-ligne>b{min-width:120px;font-size:14px}
.mtd-prev-ligne>div{display:flex;flex-wrap:wrap;gap:6px}
.mtd-prev-btn{font:inherit;font-size:13px;background:#fff;border:2px solid #e2e8f0;border-radius:10px;padding:5px 10px;cursor:pointer}
.mtd-prev-on{border-color:var(--c);background:color-mix(in srgb,var(--c) 14%,#fff);font-weight:700}
.mtd-cascade-txt{margin:0;text-align:center;font-weight:800;color:#7f1d1d;font-size:16px}
.mtd-correction{background:#fff;border-radius:14px;padding:10px 14px;font-size:14px;line-height:1.45;box-shadow:0 6px 18px rgba(0,0,0,.14)}
.mtd-correction p{margin:5px 0}
.mtd-ok{color:#14532d}.mtd-ko{color:#991b1b}

/* --- la décision --- */
.mtd-decision{background:rgba(255,255,255,.97);border-radius:18px;padding:14px 16px;max-width:820px;width:100%;align-self:center;box-shadow:0 12px 34px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:10px;box-sizing:border-box}
.mtd-decision-tete{font-weight:800;font-size:17px;color:#14532d;display:flex;flex-direction:column}
.mtd-decision-tete span{font-weight:500;font-size:13px;color:#64748b}
.mtd-decision .mtd-consigne{box-shadow:none;padding:0;background:none}
.mtd-decision-o{display:flex;flex-direction:column;gap:8px}
.mtd-decision-btn{font:inherit;font-size:15px;text-align:left;display:flex;gap:10px;align-items:flex-start;background:#f8fafc;border:2px solid #cbd5e1;border-radius:12px;padding:10px 12px;cursor:pointer;line-height:1.4}
.mtd-decision-btn span{font-weight:800;background:#14532d;color:#fff;border-radius:6px;padding:0 7px}
.mtd-decision-btn:hover{border-color:#16a34a}
.mtd-echo{display:flex;flex-direction:column;gap:8px;align-items:flex-end}

/* --- nouer --- */
.mtd-nouer{background:rgba(255,255,255,.97);border-radius:18px;padding:14px;max-width:880px;width:100%;align-self:center;box-shadow:0 12px 34px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:10px;box-sizing:border-box}
.mtd-nouer .mtd-consigne{box-shadow:none;padding:0;background:none}
.mtd-face{display:grid;grid-template-columns:1fr 1.3fr 1fr;align-items:center;gap:8px;animation:mtd-tombe .4s ease}
.mtd-face-org{background:#14532d;color:#fff;border-radius:12px;padding:10px;text-align:center;font-size:14px}
.mtd-face-fil{height:40px;display:flex;align-items:center}
.mtd-face-mou{width:100%;height:20px;border-bottom:3px dashed #94a3b8;border-radius:0 0 50% 50%}
.mtd-face-casse{animation:mtd-non .4s}
.mtd-noeud-dessin{width:100%;height:30px}
.mtd-face-txt{margin:0;font-size:15px;line-height:1.5;background:#f8fafc;border-radius:10px;padding:8px 12px}
.mtd-types{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
@media (max-width:700px){.mtd-types{grid-template-columns:repeat(2,minmax(0,1fr))}.mtd-face{grid-template-columns:1fr;}.mtd-face-fil{height:30px}}
.mtd-type-btn{font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;background:color-mix(in srgb,var(--c) 8%,#fff);border:2px solid var(--c);border-radius:12px;padding:6px 8px;cursor:pointer;text-align:center}
.mtd-type-btn b{font-size:14px}.mtd-type-btn i{font-size:11px;color:#475569}
.mtd-noues{display:flex;flex-wrap:wrap;gap:6px}
.mtd-noues span{font-size:12px;border:2px solid var(--c);border-radius:20px;padding:2px 8px;background:#fff}

/* --- le pont --- */
.mtd-pont{background:rgba(255,255,255,.96);border-radius:18px;padding:14px;max-width:940px;width:100%;align-self:center;box-shadow:0 12px 34px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:10px;box-sizing:border-box}
.mtd-pont .mtd-consigne{box-shadow:none;padding:0;background:none}
.mtd-pont-scene{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:stretch}
.mtd-pont-bout{writing-mode:vertical-rl;transform:rotate(180deg);background:#14532d;color:#fff;border-radius:10px;padding:8px 4px;font-weight:800;text-align:center;font-size:14px}
.mtd-pont-village{background:#0369a1}
.mtd-pont-voies{display:flex;flex-direction:column;gap:6px;background:repeating-linear-gradient(90deg,#a16207 0 6px,#ca8a04 6px 30px);padding:6px;border-radius:10px}
.mtd-voie{font:inherit;text-align:left;display:grid;grid-template-columns:1fr auto;gap:0 8px;background:#fff;border:3px solid var(--c);border-radius:10px;padding:6px 10px;cursor:pointer}
.mtd-voie b{font-size:14px;color:var(--c)}.mtd-voie i{font-size:11px;color:#475569;grid-column:1}
.mtd-voie-cartes{grid-row:1/3;grid-column:2;display:flex;flex-wrap:wrap;max-width:90px;color:var(--c);font-size:18px;align-content:center}
.mtd-voie:disabled{cursor:default}
.mtd-pont-carte{background:#fef9c3;border:2px solid #facc15;border-radius:12px;padding:10px 12px;font-size:16px;font-weight:700;text-align:center;animation:mtd-tombe .4s ease;display:flex;flex-direction:column;gap:4px}
.mtd-pont-carte small{font-weight:600;font-size:11px;color:#92400e}
.mtd-petition{transform:rotate(-1deg)}

/* --- invitations --- */
.mtd-invit{background:rgba(255,255,255,.97);border-radius:18px;padding:14px;max-width:940px;width:100%;align-self:center;box-shadow:0 12px 34px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:10px;box-sizing:border-box}
.mtd-invit .mtd-consigne{box-shadow:none;padding:0;background:none}
.mtd-cartons{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px}
.mtd-carton{font:inherit;display:flex;flex-direction:column;gap:3px;align-items:flex-start;text-align:left;background:#fffdf5;border:2px solid #e7e5e4;border-radius:12px;padding:10px;cursor:pointer;box-shadow:0 3px 8px rgba(0,0,0,.08)}
.mtd-carton-ico{font-size:26px}.mtd-carton b{font-size:13px}.mtd-carton i{font-size:11px;color:#64748b}.mtd-carton em{font-size:12px;font-style:normal;font-weight:800;color:#15803d}
.mtd-carton-on{border-color:#16a34a;background:#f0fdf4;transform:translateY(-3px)}
.mtd-chaises{display:flex;gap:12px;justify-content:center;font-size:30px}
.mtd-chaises span{width:52px;height:52px;display:grid;place-items:center;border-radius:12px;background:#f1f5f9}
.mtd-chaise-prise{background:#dcfce7!important;animation:mtd-pousse .4s ease}
.mtd-invite-carte{display:flex;gap:12px;align-items:center;background:#f8fafc;border-radius:12px;padding:10px 12px}
.mtd-invite-carte>span{font-size:34px}.mtd-invite-carte div{display:flex;flex-direction:column;gap:2px}.mtd-invite-carte i{font-size:12px;color:#64748b}.mtd-invite-carte small{font-size:12px}
.mtd-invite-venu{background:#f0fdf4;border:2px solid #86efac}
.mtd-apports{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px}
.mtd-apport{font:inherit;font-size:14px;display:flex;gap:8px;align-items:center;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:8px 10px;cursor:pointer}
.mtd-apport span{font-size:20px}
.mtd-apport-bon{background:#dcfce7;border-color:#16a34a}.mtd-apport-faux{background:#fee2e2;border-color:#dc2626;animation:mtd-non .4s}
.mtd-entre{margin:8px 0 0;font-style:italic;color:#14532d}

/* --- le discours --- */
.mtd-discours{background:rgba(255,255,255,.97);border-radius:18px;padding:14px;max-width:900px;width:100%;align-self:center;box-shadow:0 12px 34px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:10px;box-sizing:border-box}
.mtd-discours .mtd-consigne{box-shadow:none;padding:0;background:none}
.mtd-discours-cases{display:flex;flex-direction:column;gap:6px}
.mtd-discours-case{border:2px dashed #cbd5e1;border-radius:12px;padding:6px 10px}
.mtd-discours-case small{font-weight:800;color:#15803d;font-size:12px}
.mtd-discours-case p{margin:2px 0 0;font-size:14px;line-height:1.4}
.mtd-discours-allume{border-color:#facc15;background:#fefce8}
.mtd-discours-plein{border-style:solid;border-color:#86efac;background:#f0fdf4}
.mtd-discours-vide{color:#94a3b8}
.mtd-discours-phrases{display:flex;flex-direction:column;gap:6px}
.mtd-phrase{font:inherit;font-size:14px;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:8px 10px;cursor:pointer;line-height:1.4}
.mtd-phrase:hover{border-color:#16a34a}
.mtd-phrase-tremble{animation:mtd-non .4s;border-color:#dc2626}

/* --- bravo, fin --- */
.mtd-bravo-plante{width:80px;height:86px;position:relative;margin:0 auto}
.mtd-bravo-plante .mtd-plante{position:static;width:80px;height:86px}
.mtd-fin-badge{display:flex;flex-direction:column;align-items:center;gap:2px;background:color-mix(in srgb,var(--c) 12%,#fff);border:2px solid var(--c);border-radius:16px;padding:10px 14px;text-align:center}
.mtd-fin-badge span{font-size:34px}.mtd-fin-badge b{color:var(--c);font-size:18px}.mtd-fin-badge i{font-size:12px;color:#475569}
.mtd-fins{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
@media (max-width:760px){.mtd-fins{grid-template-columns:repeat(2,minmax(0,1fr))}}
.mtd-fin-carte{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;border:2px solid #e2e8f0;border-radius:12px;padding:8px;opacity:.6;font-size:12px}
.mtd-fin-carte span{font-size:24px}.mtd-fin-carte i{color:#64748b}
.mtd-fin-tienne{opacity:1;border-color:var(--c);background:color-mix(in srgb,var(--c) 10%,#fff)}
.mtd-rechoix{background:rgba(255,255,255,.97);border-radius:18px;padding:16px;max-width:760px;width:100%;margin:16px auto;display:flex;flex-direction:column;gap:10px;box-sizing:border-box}

/* --- les documents --- */
.mtd-doc{font-size:14px;line-height:1.5;color:#1e293b}
.mtd-doc h3{margin:4px 0 6px}
.mtd-doc-ent{margin:0;font:800 11px Outfit,sans-serif;letter-spacing:.12em;color:#15803d}
.mtd-doc-sous{margin:0 0 8px;color:#64748b;font-style:italic}
.mtd-doc-date{margin:0 0 8px;color:#64748b}
.mtd-doc-signe{text-align:right;font-family:"Segoe Script","Brush Script MT",cursive;font-size:20px;margin:8px 0 0}
.mtd-doc-note{background:#f8fafc;border-left:3px solid #94a3b8;padding:6px 10px;border-radius:6px;font-size:13px}
.mtd-doc-decision{font-weight:800;color:#166534;background:#f0fdf4;border-radius:8px;padding:6px 10px}
.mtd-doc-manuscrit{font-family:"Segoe Print","Comic Sans MS",cursive;background:repeating-linear-gradient(#fffef6 0 25px,#dcfce7 25px 26px);padding:8px 10px;border-radius:6px}
.mtd-doc-officiel{border-top:5px double #15803d;padding-top:6px}
.mtd-table{width:100%;border-collapse:collapse;font-size:13px;margin:6px 0}
.mtd-table th,.mtd-table td{border:1px solid #e2e8f0;padding:5px 7px;text-align:left;vertical-align:top}
.mtd-table th{background:#f1f5f9}
.mtd-tampon{position:relative;right:auto;bottom:auto;display:inline-block;margin-top:10px;font-size:18px;border-color:#15803d;color:#15803d}
.mtd-badge{width:min(340px,100%);border-radius:16px;overflow:hidden;background:linear-gradient(135deg,#14532d,#15803d 60%,#65a30d);color:#fff;box-shadow:0 14px 34px rgba(0,0,0,.4);margin:0 auto}
.mtd-badge-tete{display:flex;flex-direction:column;padding:10px 14px;background:rgba(0,0,0,.25)}
.mtd-badge-tete b{letter-spacing:.2em;color:#fde047}.mtd-badge-tete span{font-size:12px;opacity:.85}
.mtd-badge-corps{display:flex;gap:12px;padding:12px 14px;align-items:center}
.mtd-badge-corps img{width:84px;height:104px;object-fit:cover;border-radius:10px;border:2px solid #fde047}
.mtd-badge-corps div{display:flex;flex-direction:column;gap:3px}
.mtd-badge-corps b{font-size:20px}.mtd-badge-corps span{font-size:13px}.mtd-badge-corps i{font-size:11px;opacity:.85}
.mtd-badge-pied{padding:8px 14px 12px;font-size:12px;font-style:italic;opacity:.92}
.mtd-journal img{width:100%;border-radius:6px;margin:6px 0}
@media (prefers-reduced-motion:reduce){.mtd-particule{display:none}.mtd-camion-anim,.mtd-tremble .mtd-reseau,.mtd-noeud-feu .mtd-noeud-badge,.mtd-noeud-cible .mtd-noeud-badge,.mtd-noeud-etape .mtd-noeud-badge{animation:none}}
/* ==== mtd : fin des styles ==== */
/* ==== mtc : debut des styles ====
   « Plas Lib — le bureau des données » — préfixe mtc-. Le bureau vu de
   face, le classeur du règlement, le papier des dossiers, la loupe, les
   tampons en relief, le guichet, le téléphone à réparer, le calendrier,
   l'horloge des 72 heures, le classement de Kalkil, la jauge carbone,
   l'audition, le journal du matin. Tous les modificateurs portent mtc-. */
.mtc .pdl-decor-contenu{max-width:1060px}
.mtc-decor-plein .pdl-decor-contenu{max-width:1120px}
.mtc-hud-jour{margin:0 auto;color:#fff;font-size:13px;font-weight:700;text-align:center;padding:4px 12px;border-radius:20px;background:rgba(14,116,144,.55);border:1px solid #22d3ee;max-width:46vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mtc .pdl-qcm{background:rgba(255,255,255,.97);border-radius:18px;padding:16px;max-width:840px;box-shadow:0 12px 34px rgba(0,0,0,.28);align-self:center}
.mtc .pdl-tri{background:rgba(255,255,255,.96);border-radius:18px;padding:14px;max-width:1040px;width:100%;box-shadow:0 12px 34px rgba(0,0,0,.28)}
@media (max-width:620px){.mtc-hud-jour{font-size:11px;padding:3px 8px;max-width:38vw}.mtc .pdl-hud-outils button{width:32px;height:32px;font-size:15px}}
@keyframes mtc-tombe{from{opacity:0;transform:translateY(-18px) rotate(-1.5deg)}to{opacity:1;transform:none}}
@keyframes mtc-glisse{from{opacity:0;transform:translateX(60px) rotate(2deg)}to{opacity:1;transform:none}}
@keyframes mtc-secoue{0%,100%{transform:none}25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}

/* --- encart 💡 Aide --- */
.mtc-exo{width:100%;display:flex;flex-direction:column;gap:12px;align-items:stretch}
.mtc-aide{background:#fffbeb;border:2px solid #fcd34d;border-radius:14px;max-width:860px;width:100%;align-self:center;box-shadow:0 4px 14px rgba(0,0,0,.12)}
.mtc-aide-t{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;background:none;border:0;font:inherit;font-weight:800;font-size:15px;color:#92400e;padding:10px 14px;cursor:pointer}
.mtc-aide-t span{font-weight:500;font-size:13px;color:#b45309}
.mtc-aide-corps{padding:0 14px 12px;font-size:14px;line-height:1.45}
.mtc-aide-o{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.mtc-aide-opt{font:inherit;font-size:14px;background:#fff;border:2px solid #fde68a;border-radius:10px;padding:7px 12px;cursor:pointer;text-align:left}
.mtc-aide-opt.mtc-aide-bon{background:#dcfce7;border-color:#16a34a}.mtc-aide-opt.mtc-aide-faux{background:#fee2e2;border-color:#dc2626}
.mtc-aide-corr{margin:6px 0;color:#713f12}
.mtc-aide-re{font:inherit;font-size:13px;background:none;border:0;color:#b45309;cursor:pointer;text-decoration:underline}

/* --- consignes, récits, messages --- */
.mtc-consigne{background:rgba(255,255,255,.95);border-radius:12px;padding:10px 14px;margin:0;font-size:15px;line-height:1.45;max-width:900px;align-self:center;box-shadow:0 6px 18px rgba(0,0,0,.18)}
.mtc-recit{background:rgba(15,23,42,.86);color:#fff;border-radius:16px;padding:16px 20px;max-width:680px;font-size:17px;line-height:1.55;display:flex;flex-direction:column;gap:10px;align-items:flex-end;animation:mtc-tombe .5s ease}
.mtc-recit p{margin:0;align-self:stretch}
.mtc-msg{margin:0;border-radius:10px;padding:8px 12px;font-size:14px;line-height:1.45;max-width:900px;align-self:center;width:100%;box-sizing:border-box}
.mtc-msg-ok{background:#dcfce7;color:#14532d}.mtc-msg-ko{background:#fee2e2;color:#7f1d1d;animation:mtc-secoue .35s}.mtc-msg-info{background:#e0f2fe;color:#0c4a6e}
.mtc-reste{margin:0;color:#fff;font-weight:700;font-size:13px;text-shadow:0 1px 3px rgba(0,0,0,.6);align-self:center}
.mtc-consequence{margin:8px 0 0;font-size:13px;color:#475569;font-style:italic}

/* --- le règlement : un classeur à anneaux --- */
.mtc-reglement{position:relative;max-width:860px;width:100%;animation:mtc-glisse .6s cubic-bezier(.2,.9,.3,1.2)}
.mtc-reglement-anneaux{position:absolute;left:-6px;top:30px;bottom:30px;display:flex;flex-direction:column;justify-content:space-around;z-index:2}
.mtc-reglement-anneaux i{width:22px;height:22px;border-radius:50%;border:5px solid #94a3b8;background:#1e293b;box-shadow:inset 0 2px 3px rgba(0,0,0,.5)}
.mtc-reglement-feuille{background:#fffef9;background-image:linear-gradient(90deg,transparent 46px,#fecaca 46px 48px,transparent 48px);border-radius:6px 16px 16px 6px;padding:16px 20px 18px 62px;box-shadow:0 1px 0 #e7e5e4,0 3px 0 #f5f5f4,0 5px 0 #e7e5e4,0 18px 40px rgba(0,0,0,.35);border-left:10px solid #b91c1c}
.mtc-reglement-tete{display:flex;justify-content:space-between;align-items:center;gap:10px}
.mtc-reglement-onglet{font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#b91c1c}
.mtc-reglement h3{margin:6px 0 4px;font-size:21px;color:#1c1917}
.mtc-reglement-mode{margin:0 0 10px;font-size:13px;color:#78716c}
.mtc-reglement-plus{font:inherit;font-weight:700;margin-top:10px;background:#fef2f2;border:1px dashed #fca5a5;border-radius:10px;padding:8px 14px;cursor:pointer;color:#991b1b}
.mtc-reglement .pdl-cta{margin-top:12px}
.mtc-notion{border-top:1px dashed #d6d3d1;padding:10px 0 4px;animation:mtc-tombe .45s ease both}
.mtc-notion h4{margin:0 0 4px;font-size:17px;color:#0f172a;display:flex;gap:8px;align-items:baseline}
.mtc-notion-n{font-size:12px;color:#b91c1c;font-weight:800}
.mtc-notion p{margin:4px 0;font-size:15px;line-height:1.5}
.mtc-notion-simple{color:#1e293b}
.mtc-notion-ex{color:#0e7490;background:#ecfeff;border-radius:8px;padding:5px 9px}
.mtc-notion-def{margin:6px 0 2px;padding:6px 10px;border-left:4px solid #b91c1c;background:#fef2f2;font-size:14px;color:#450a0a;font-style:italic}
.mtc-notion-def b{font-style:normal}
@media (max-width:620px){.mtc-reglement-feuille{padding:14px 12px 14px 34px;background-image:linear-gradient(90deg,transparent 24px,#fecaca 24px 26px,transparent 26px)}.mtc-reglement-anneaux i{width:16px;height:16px;border-width:4px}.mtc-reglement h3{font-size:18px}}
.mtc-classeur{max-width:820px}
.mtc-classeur-onglets{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}
.mtc-classeur-onglet{font:inherit;font-size:13px;font-weight:700;border:1px solid #fecaca;background:#fff;color:#991b1b;border-radius:8px 8px 0 0;padding:5px 10px;cursor:pointer}
.mtc-classeur-onglet.mtc-classeur-ici{background:#b91c1c;color:#fff;border-color:#b91c1c}
.mtc-classeur-titre{margin:4px 0;font-size:18px}

/* --- le papier des dossiers, la loupe --- */
.mtc-dossier{display:flex;flex-direction:column;gap:12px;align-items:center;width:100%;max-width:880px}
.mtc-chemise{position:relative;background:linear-gradient(#f5d99a,#eac57a);border-radius:4px 14px 14px 14px;padding:22px 16px 16px;width:100%;box-sizing:border-box;box-shadow:0 18px 40px rgba(0,0,0,.35);animation:mtc-tombe .55s ease;display:flex;flex-direction:column;gap:10px}
.mtc-chemise-onglet{position:absolute;top:-16px;left:0;background:#eac57a;border-radius:10px 10px 0 0;padding:4px 14px;font-size:13px;font-weight:800;color:#713f12;max-width:92%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mtc-demandeur,.mtc-vitre{display:flex;gap:12px;align-items:flex-start;background:rgba(255,255,255,.92);border-radius:12px;padding:10px 12px}
.mtc-demandeur img,.mtc-vitre img{width:64px;height:64px;border-radius:50%;object-fit:cover;flex:none;border:3px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.mtc-demandeur b,.mtc-vitre b{display:block;font-size:15px}.mtc-demandeur i,.mtc-vitre i{display:block;font-size:12px;color:#64748b}
.mtc-demandeur p,.mtc-vitre p{margin:6px 0 0;font-size:15px;line-height:1.45}
.mtc-demande{margin:0;background:#fff;border-radius:10px;padding:10px 12px;font-size:15px}
.mtc-papier{position:relative;background:#fff;border-radius:3px;padding:12px 16px 14px;box-shadow:0 2px 0 #e5e7eb,0 8px 22px rgba(0,0,0,.18);transform:rotate(-.4deg);overflow:hidden;width:100%;box-sizing:border-box}
.mtc-papier:nth-child(even){transform:rotate(.5deg)}
.mtc-papier-neuf{animation:mtc-glisse .6s ease;border:2px solid #22c55e}
.mtc-papier-titre{font-weight:800;font-size:14px;color:#334155;border-bottom:2px solid #e2e8f0;padding-bottom:6px;margin-bottom:6px}
.mtc-papier ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.mtc-ligne{font-family:"Courier New",Courier,monospace;font-size:14.5px;line-height:1.5;padding:4px 8px;border-radius:6px;border:2px solid transparent;transition:transform .15s,background .15s}
.mtc-papier-loupe{cursor:zoom-in}
.mtc-papier-loupe .mtc-ligne{cursor:pointer}
.mtc-papier-loupe .mtc-ligne:hover{background:#fef9c3;transform:scale(1.035);transform-origin:left center}
.mtc-ligne-faute{border-color:#dc2626;background:#fef2f2;border-radius:40% 30% 45% 35%/60% 50% 55% 45%}
.mtc-ligne-fausse{background:#f1f5f9;text-decoration:line-through;color:#64748b}
.mtc-loupe-cercle{position:absolute;width:86px;height:86px;margin:-43px 0 0 -43px;border-radius:50%;border:5px solid #334155;background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.55),rgba(186,230,253,.18) 60%,rgba(14,116,144,.12));box-shadow:0 6px 16px rgba(0,0,0,.3),inset 0 0 12px rgba(255,255,255,.6);pointer-events:none;z-index:3}
.mtc-loupe-cercle:after{content:"";position:absolute;width:14px;height:46px;background:linear-gradient(90deg,#1e293b,#475569);border-radius:7px;right:-22px;bottom:-34px;transform:rotate(-45deg)}
.mtc-empreinte{position:absolute;right:14px;top:16px;border:4px double var(--c);color:var(--c);font-weight:900;font-size:22px;letter-spacing:.08em;padding:4px 12px;border-radius:8px;transform:rotate(-12deg);opacity:.82;mix-blend-mode:multiply;animation:mtc-encre .45s cubic-bezier(.2,1.6,.4,1);pointer-events:none;background:rgba(255,255,255,.15)}
@keyframes mtc-encre{from{transform:scale(2.2) rotate(-4deg);opacity:0}to{transform:rotate(-12deg);opacity:.82}}
.mtc-cachet-seul{position:relative;height:56px;width:240px}

/* --- les tampons en relief --- */
.mtc-tampons{display:flex;flex-direction:column;gap:10px;align-items:center;width:100%;max-width:880px}
.mtc-tampons-rang{display:flex;gap:18px;justify-content:center;flex-wrap:wrap}
.mtc-tampon{position:relative;font:inherit;border:0;background:none;cursor:pointer;width:150px;height:118px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:0;transition:transform .15s}
.mtc-tampon:hover:not(:disabled){transform:translateY(-6px)}
.mtc-tampon:disabled{cursor:default}
.mtc-tampon-manche{width:42px;height:58px;border-radius:21px 21px 8px 8px;background:linear-gradient(90deg,#3f1d0b,#7c2d12 45%,#3f1d0b);box-shadow:0 4px 8px rgba(0,0,0,.35)}
.mtc-tampon-semelle{width:146px;box-sizing:border-box;padding:10px 4px;border-radius:8px;background:linear-gradient(#e5e7eb,#9ca3af);border-bottom:8px solid var(--c);color:var(--c);font-weight:900;font-size:16px;letter-spacing:.06em;text-align:center;box-shadow:0 6px 14px rgba(0,0,0,.35)}
.mtc-tampon.mtc-tampon-frappe{animation:mtc-frappe .52s ease}
@keyframes mtc-frappe{0%{transform:none}35%{transform:translateY(-26px) scale(1.05)}60%{transform:translateY(14px) scale(.96)}100%{transform:none}}
@media (max-width:620px){.mtc-tampons-rang{gap:8px}.mtc-tampon{width:104px;height:96px}.mtc-tampon-semelle{width:102px;font-size:12.5px;padding:8px 2px}.mtc-tampon-manche{width:32px;height:46px}}

/* --- jour 1 : le formulaire à la loupe --- */
.mtc-formulaire,.mtc-ecran-atelier,.mtc-courrier,.mtc-nuit,.mtc-algo,.mtc-sobriete,.mtc-audition,.mtc-guichet,.mtc-mail-atelier{display:flex;flex-direction:column;gap:12px;align-items:center;width:100%}
.mtc-form-doc{background:#fff;border-radius:16px;padding:14px;box-shadow:0 18px 40px rgba(0,0,0,.35);max-width:760px;width:100%;box-sizing:border-box;display:grid;grid-template-columns:1fr 1fr;gap:8px;cursor:zoom-in}
.mtc-form-tete{grid-column:1/-1;font-weight:800;color:#0e7490;font-size:15px;border-bottom:2px solid #e0f2fe;padding-bottom:6px}
.mtc-champ{position:relative;font:inherit;text-align:left;border:2px solid #e2e8f0;border-radius:10px;padding:8px 10px;background:#f8fafc;cursor:zoom-in;display:flex;flex-direction:column;gap:2px;transition:transform .15s,box-shadow .15s}
.mtc-champ:hover:not(:disabled){transform:scale(1.04);box-shadow:0 0 0 4px rgba(14,116,144,.18),0 10px 20px rgba(0,0,0,.12);z-index:1}
.mtc-champ-sel{border-color:#0e7490;background:#ecfeff;box-shadow:0 0 0 4px rgba(14,116,144,.25)}
.mtc-champ-lab{font-size:12px;font-weight:800;color:#475569;text-transform:uppercase;letter-spacing:.03em}
.mtc-champ-val{font-size:14px;color:#0f172a}
.mtc-champ-fait{border-color:var(--c);background:color-mix(in srgb,var(--c) 10%,#fff);cursor:default}
.mtc-champ-tag{align-self:flex-start;margin-top:3px;font-size:11px;font-weight:800;color:#fff;background:var(--c);border-radius:20px;padding:2px 8px}
@media (max-width:620px){.mtc-form-doc{grid-template-columns:1fr}}
.mtc-cases{background:rgba(255,255,255,.97);border-radius:14px;padding:10px 12px;max-width:900px;width:100%;box-sizing:border-box;box-shadow:0 10px 28px rgba(0,0,0,.25);animation:mtc-tombe .35s ease}
.mtc-cases p{margin:0 0 8px;font-size:15px}
.mtc-cases-rang{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.mtc-case{font:inherit;border:2px solid var(--c);background:#fff;border-radius:12px;padding:8px 10px;cursor:pointer;text-align:left;display:flex;flex-direction:column;gap:2px}
.mtc-case:hover{background:color-mix(in srgb,var(--c) 10%,#fff)}
.mtc-case b{color:var(--c);font-size:14px}.mtc-case i{font-size:12px;color:#64748b}

/* --- jour 2 : le guichet --- */
.mtc-file{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.mtc-file-n{font-size:12px;font-weight:800;padding:4px 10px;border-radius:20px;background:rgba(255,255,255,.75);color:#334155}
.mtc-file-fait{background:#16a34a;color:#fff}.mtc-file-ici{background:#f59e0b;color:#fff;box-shadow:0 0 0 3px rgba(245,158,11,.35)}
.mtc-vitre{max-width:880px;width:100%;box-sizing:border-box;border:3px solid #cbd5e1;background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(224,242,254,.94));animation:mtc-glisse .5s ease}
.mtc-guichet-outils{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.mtc-outil{font:inherit;font-weight:700;font-size:14px;border:2px solid #334155;background:#fff;color:#0f172a;border-radius:12px;padding:8px 12px;cursor:pointer}
.mtc-outil:disabled{opacity:.5;cursor:default}
.mtc-outil.mtc-outil-on{background:#0e7490;color:#fff;border-color:#0e7490}
.mtc-pieces{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px;max-width:900px;width:100%}
.mtc-principes{display:flex;flex-direction:column;gap:8px;align-items:center;width:100%}
.mtc-principes-rang{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;max-width:900px}
.mtc-principe{font:inherit;font-weight:700;font-size:14px;background:#fff;border:2px solid #7c3aed;color:#5b21b6;border-radius:20px;padding:7px 12px;cursor:pointer}
.mtc-principe:hover{background:#f5f3ff}

/* --- jour 3 : le téléphone à réparer --- */
.mtc-telephone{position:relative;width:340px;max-width:100%;box-sizing:border-box;background:#fff;border:12px solid #0f172a;border-radius:38px;padding:34px 14px 18px;box-shadow:0 22px 50px rgba(0,0,0,.45);display:flex;flex-direction:column;gap:8px}
.mtc-tel-encoche{position:absolute;top:6px;left:50%;width:90px;height:14px;margin-left:-45px;border-radius:10px;background:#0f172a}
.mtc-zone{position:relative;font:inherit;font-size:13.5px;text-align:left;border:2px dashed transparent;border-radius:10px;background:#f8fafc;padding:8px 10px;cursor:zoom-in;line-height:1.4;transition:transform .2s}
.mtc-zone:hover:not(:disabled){border-color:#f59e0b;transform:scale(1.03)}
.mtc-zone-sel{border-color:#0e7490;border-style:solid;background:#ecfeff}
.mtc-zone-titre{font-size:18px;font-weight:800;background:none;color:#0e7490}
.mtc-zone-texte{font-size:11.5px;color:#64748b}
.mtc-zone-boutons{text-align:center;font-weight:700}
.mtc-zone-continuer{text-align:center;background:#0e7490;color:#fff}
.mtc-zone-reparee{border:2px solid #16a34a;background:#f0fdf4;cursor:default;animation:mtc-repare .6s ease}
.mtc-zone-vue{border:2px solid #cbd5e1;cursor:default;opacity:.85}
.mtc-zone-coche{display:block;margin-top:4px;font-size:11px;font-weight:800;color:#15803d}
@keyframes mtc-repare{0%{transform:rotateX(90deg)}100%{transform:none}}

/* --- le calcul --- */
.mtc-calcul{background:rgba(255,255,255,.97);border-radius:18px;padding:16px;max-width:760px;width:100%;box-sizing:border-box;box-shadow:0 12px 34px rgba(0,0,0,.28);display:flex;flex-direction:column;gap:10px}
.mtc-calcul-q{margin:0;font-size:17px;font-weight:700}
.mtc-rappel{background:#eff6ff;border-left:4px solid #2563eb;border-radius:8px;padding:8px 12px;font-size:14.5px;line-height:1.45}
.mtc-formule-btn{align-self:flex-start;font:inherit;font-size:13px;font-weight:700;background:#fef3c7;border:0;border-radius:8px;padding:6px 10px;cursor:pointer;color:#92400e}
.mtc-formule{margin:0;background:#fffbeb;border-radius:8px;padding:6px 10px;font-family:"Courier New",monospace;font-size:14px}
.mtc-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.mtc-saisie input{font:inherit;font-size:18px;width:150px;padding:8px 10px;border:2px solid #94a3b8;border-radius:10px}

/* --- jour 4 : le courrier et le calendrier --- */
.mtc-pile-lettres{position:relative;height:18px;width:220px}
.mtc-pile-lettres i{position:absolute;left:calc(var(--k) * 8px);top:calc(var(--k) * -2px);width:160px;height:16px;background:#fefce8;border:1px solid #d6d3d1;border-radius:3px;transform:rotate(calc(var(--k) * 2deg - 4deg))}
.mtc-enveloppe{font:inherit;position:relative;width:420px;max-width:100%;height:220px;background:linear-gradient(160deg,#fef3c7,#fde68a);border:0;border-radius:10px;box-shadow:0 16px 36px rgba(0,0,0,.35);cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;overflow:hidden;animation:mtc-tombe .5s ease}
.mtc-enveloppe:before{content:"";position:absolute;top:0;left:0;right:0;height:110px;background:linear-gradient(160deg,#fcd34d,#f59e0b);clip-path:polygon(0 0,100% 0,50% 100%);opacity:.75}
.mtc-enveloppe span{font-size:42px;position:relative}.mtc-enveloppe b,.mtc-enveloppe i{position:relative}.mtc-enveloppe i{font-size:13px;color:#78350f}
.mtc-enveloppe:hover{transform:rotate(-1deg) scale(1.02)}
.mtc-lettre{position:relative;background:#fffef7;background-image:repeating-linear-gradient(transparent 0 27px,#e0f2fe 27px 28px);border-radius:4px;padding:14px 18px;max-width:640px;width:100%;box-sizing:border-box;box-shadow:0 16px 36px rgba(0,0,0,.35);animation:mtc-deplie .6s ease;transform-origin:top}
@keyframes mtc-deplie{from{transform:scaleY(.1);opacity:0}to{transform:none;opacity:1}}
.mtc-lettre-tete{display:flex;gap:10px;align-items:center}
.mtc-lettre-tete img{width:52px;height:52px;border-radius:50%;object-fit:cover}
.mtc-lettre-tete i{display:block;font-size:12px;color:#64748b}
.mtc-lettre-txt{font-family:"Segoe Print","Bradley Hand","Comic Sans MS",cursive;font-size:16px;line-height:1.75;margin:10px 0 0}
.mtc-lettre-cachet{position:absolute;right:12px;bottom:10px;border:3px double var(--c);color:var(--c);font-weight:900;padding:3px 10px;border-radius:6px;transform:rotate(-10deg);animation:mtc-encre .45s ease}
.mtc-droits{display:flex;flex-direction:column;gap:8px;align-items:center;width:100%}
.mtc-droits-rang{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:680px;width:100%}
.mtc-droit{font:inherit;background:#fff;border:2px solid #0e7490;border-radius:12px;padding:8px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:1px;transition:transform .15s}
.mtc-droit:hover{transform:translateY(-3px);background:#ecfeff}
.mtc-droit span{font-size:22px}.mtc-droit b{font-size:14px;color:#0e7490}.mtc-droit i{font-size:11.5px;color:#64748b}
@media (max-width:620px){.mtc-droits-rang{grid-template-columns:repeat(2,1fr)}}
.mtc-cal{display:flex;flex-direction:column;gap:8px;align-items:center;width:100%}
.mtc-cal-deux{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}
.mtc-cal-mois{background:#fff;border-radius:12px;padding:10px;box-shadow:0 10px 26px rgba(0,0,0,.25);width:250px}
.mtc-cal-mois>b{display:block;text-align:center;text-transform:capitalize;color:#b91c1c;margin-bottom:4px}
.mtc-cal-sem,.mtc-cal-grille{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center}
.mtc-cal-sem i{font-size:11px;color:#94a3b8;font-style:normal;font-weight:700}
.mtc-cal-vide{height:30px}
.mtc-cal-j{font:inherit;font-size:13px;height:30px;border:0;border-radius:7px;background:#f8fafc;cursor:pointer}
.mtc-cal-j:hover:not(:disabled){background:#fef3c7}
.mtc-cal-recu{box-shadow:inset 0 0 0 2px #0e7490;font-weight:800}
.mtc-cal-choisi{background:#fecaca}
.mtc-cal-juste{background:#16a34a!important;color:#fff;font-weight:800}

/* --- jour 5 : l'horloge des 72 heures --- */
.mtc-scene-nuit .pdl-decor-img{animation:mtc-gyro 2.4s ease-in-out infinite}
@keyframes mtc-gyro{0%,100%{filter:brightness(.85)}50%{filter:brightness(1.15) saturate(1.3)}}
.mtc-nuit-haut{display:flex;gap:16px;align-items:center;flex-wrap:wrap;justify-content:center}
.mtc-horloge{position:relative;width:170px;height:170px}
.mtc-horloge svg{width:100%;height:100%;transform:rotate(-90deg)}
.mtc-horloge-fond{fill:rgba(15,23,42,.88);stroke:#334155;stroke-width:12}
.mtc-horloge-arc{fill:none;stroke:#22c55e;stroke-width:12;stroke-linecap:round;transition:stroke-dashoffset 1s ease,stroke .5s}
.mtc-horloge-urgent .mtc-horloge-arc{stroke:#f59e0b}
.mtc-horloge-depasse .mtc-horloge-arc{stroke:#dc2626}
.mtc-horloge-depasse{animation:mtc-secoue .4s 2}
.mtc-horloge-txt{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;text-align:center}
.mtc-horloge-txt b{font-size:30px;font-variant-numeric:tabular-nums}.mtc-horloge-txt i{font-size:11px;color:#cbd5e1}.mtc-horloge-txt span{font-size:12px;margin-top:4px;color:#fde68a}
.mtc-nuit-frise{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.mtc-nuit-frise li{font-size:13px;font-weight:700;color:#cbd5e1;background:rgba(15,23,42,.7);border-radius:20px;padding:4px 12px;border-left:4px solid #475569}
.mtc-nuit-frise li.mtc-frise-ici{color:#fff;border-left-color:#f59e0b}
.mtc-nuit-frise li.mtc-frise-fait{color:#bbf7d0;border-left-color:#22c55e}
.mtc-alerte-msg{background:rgba(127,29,29,.92);color:#fff;border-radius:12px;padding:10px 14px;max-width:860px;width:100%;box-sizing:border-box;font-size:15px;border:2px solid #f87171;animation:mtc-tombe .4s ease}
.mtc-cartes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:900px;width:100%}
@media (max-width:720px){.mtc-cartes{grid-template-columns:1fr}}
.mtc-carte{font:inherit;font-size:14.5px;line-height:1.4;text-align:left;background:#fff;border:0;border-radius:14px;padding:12px;cursor:pointer;box-shadow:0 10px 24px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:6px;transition:transform .2s}
.mtc-carte:hover:not(:disabled){transform:translateY(-5px) rotate(-.6deg)}
.mtc-carte-h{align-self:flex-start;font-size:12px;font-weight:800;background:#0f172a;color:#fde68a;border-radius:20px;padding:2px 8px}
.mtc-carte-bon{outline:3px solid #22c55e;background:#f0fdf4}
.mtc-carte-faux{opacity:.55;background:#fee2e2;text-decoration:line-through}
.mtc-mail{background:#fff;border-radius:14px;max-width:640px;width:100%;box-sizing:border-box;box-shadow:0 16px 36px rgba(0,0,0,.35);padding:10px;display:flex;flex-direction:column;gap:4px}
.mtc-mail-l{font:inherit;font-size:14.5px;text-align:left;border:2px solid transparent;background:#f8fafc;border-radius:8px;padding:8px 10px;cursor:zoom-in}
.mtc-mail-l:hover{border-color:#f59e0b}
.mtc-mail-indice{border-color:#dc2626;background:#fef2f2;font-weight:700}
.mtc-mail-rien{opacity:.6}

/* --- jour 6 : la table de réglage de Kalkil --- */
.mtc-algo-corps{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:14px;max-width:1040px;width:100%}
@media (max-width:760px){.mtc-algo-corps{grid-template-columns:1fr}}
.mtc-algo-criteres{display:flex;flex-direction:column;gap:6px}
.mtc-crit{background:rgba(255,255,255,.97);border-radius:12px;padding:8px 10px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;box-shadow:0 6px 16px rgba(0,0,0,.2);border:2px solid transparent}
.mtc-crit-faux{border-color:#dc2626;animation:mtc-secoue .35s}
.mtc-crit-ok{border-color:#16a34a}
.mtc-crit-nom{font-weight:700;font-size:14px}
.mtc-crit-why{flex-basis:100%;margin:2px 0 0;font-size:13px;color:#475569}
.mtc-interrupteur{font:inherit;font-size:12px;font-weight:800;display:flex;align-items:center;gap:6px;border:0;background:#fee2e2;color:#991b1b;border-radius:20px;padding:4px 10px 4px 4px;cursor:pointer}
.mtc-interrupteur i{width:34px;height:20px;border-radius:10px;background:#f87171;position:relative;transition:background .2s}
.mtc-interrupteur i:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:left .2s}
.mtc-interrupteur.mtc-interrupteur-on{background:#dcfce7;color:#166534}
.mtc-interrupteur.mtc-interrupteur-on i{background:#22c55e}
.mtc-interrupteur.mtc-interrupteur-on i:after{left:16px}
.mtc-algo-classement{position:relative;background:rgba(15,23,42,.88);border-radius:14px;padding:8px;box-sizing:border-box}
.mtc-algo-seuil{position:absolute;left:8px;right:8px;height:18px;border-top:2px dashed #f87171;color:#fca5a5;font-size:11px;text-align:center;line-height:18px}
.mtc-cond{position:absolute;left:8px;right:8px;top:8px;height:40px;display:flex;align-items:center;gap:8px;background:#fff;border-radius:10px;padding:0 10px;transition:transform .7s cubic-bezier(.3,1.3,.5,1),opacity .4s;font-size:14px}
.mtc-cond b{width:22px;color:#64748b}
.mtc-cond-nom{font-weight:700;white-space:nowrap}
.mtc-cond i{flex:1;font-size:12px;color:#64748b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mtc-cond em{font-style:normal;font-weight:800;color:#0e7490}
.mtc-cond-cache{opacity:.45;filter:grayscale(1)}
.mtc-cond-dylan{box-shadow:inset 4px 0 0 #f59e0b}

/* --- jour 7 : le plan de sobriété --- */
.mtc-jauges{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;max-width:900px;width:100%}
.mtc-jauge-co2,.mtc-jauge-cout{background:rgba(255,255,255,.96);border-radius:12px;padding:8px 12px;box-shadow:0 6px 16px rgba(0,0,0,.2);font-size:14px}
.mtc-jauge-co2{flex:1;min-width:240px}
.mtc-jauge-barre{height:12px;background:#e2e8f0;border-radius:6px;overflow:hidden;margin-top:6px}
.mtc-jauge-barre i{display:block;height:100%;transition:width .6s ease,background .4s}
.mtc-jauge-trop{background:#fee2e2;color:#991b1b}
.mtc-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;max-width:960px;width:100%}
.mtc-action{font:inherit;text-align:left;background:#fff;border:2px solid #e2e8f0;border-radius:14px;padding:10px 12px;cursor:pointer;display:flex;flex-direction:column;gap:4px;box-shadow:0 8px 20px rgba(0,0,0,.2);transition:transform .2s}
.mtc-action:hover{transform:translateY(-3px)}
.mtc-action b{font-size:12px;color:#64748b}.mtc-action span{font-size:14.5px;font-weight:600}.mtc-action i{font-size:12px;color:#0e7490;font-style:normal;font-weight:700}
.mtc-action em{font-size:13px;color:#334155;font-style:normal}
.mtc-action-pris{border-color:#16a34a;background:#f0fdf4}
.mtc-action-pris b{color:#15803d}
.mtc-action-faux{border-color:#dc2626;animation:mtc-secoue .35s}

/* --- jour 8 : l'audition --- */
.mtc-preuves{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px;max-width:960px;width:100%}
.mtc-preuve{font:inherit;background:linear-gradient(#f5d99a,#eac57a);border:0;border-radius:4px 12px 12px 12px;padding:10px;cursor:pointer;text-align:left;display:flex;flex-direction:column;gap:2px;box-shadow:0 8px 18px rgba(0,0,0,.25);transition:transform .2s}
.mtc-preuve:hover:not(:disabled){transform:translateY(-4px) rotate(-1deg)}
.mtc-preuve span{font-size:22px}.mtc-preuve b{font-size:14px;color:#422006}.mtc-preuve i{font-size:12px;color:#713f12}
.mtc-preuve-bon{outline:3px solid #16a34a}
.mtc-preuve-faux{outline:3px solid #dc2626;animation:mtc-secoue .35s}

/* --- le bureau (écran principal) --- */
.mtc-bureau{display:flex;flex-direction:column;gap:12px;align-items:center;width:100%}
.mtc-calendrier{display:grid;grid-template-columns:repeat(8,1fr);gap:5px;width:100%;max-width:980px}
.mtc-cal-case{font:inherit;background:rgba(255,255,255,.88);border:0;border-radius:10px;padding:6px 4px;display:flex;flex-direction:column;align-items:center;gap:1px;box-shadow:0 4px 10px rgba(0,0,0,.2);border-top:6px solid #b91c1c;cursor:pointer}
.mtc-cal-case:disabled{opacity:.6;cursor:default}
.mtc-cal-case b{font-size:13px}.mtc-cal-case i{font-size:10.5px;color:#64748b;font-style:normal}
.mtc-cal-case.mtc-cal-fait{background:#dcfce7}
.mtc-cal-case.mtc-cal-auj{background:#fff7ed;box-shadow:0 0 0 3px #f59e0b,0 6px 14px rgba(0,0,0,.25);transform:translateY(-3px)}
.mtc-cal-case.mtc-cal-cnil{border-top-color:#1e3a8a}
@media (max-width:620px){.mtc-calendrier{grid-template-columns:repeat(4,1fr)}}
.mtc-indics{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;width:100%;max-width:980px}
@media (max-width:720px){.mtc-indics{grid-template-columns:repeat(2,1fr)}}
.mtc-indic{background:rgba(255,255,255,.95);border-radius:12px;padding:6px 8px;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 4px 12px rgba(0,0,0,.2);position:relative}
.mtc-indic span{font-size:20px}.mtc-indic b{font-size:16px;font-variant-numeric:tabular-nums}.mtc-indic b small{font-size:10px;color:#64748b;font-weight:600}
.mtc-indic i{font-size:11px;color:#64748b;font-style:normal}
.mtc-indic em{position:absolute;top:4px;right:6px;font-style:normal;font-size:11px;font-weight:800}
.mtc-indic-mieux{box-shadow:0 0 0 3px #22c55e}.mtc-indic-mieux em{color:#15803d}
.mtc-indic-pire{box-shadow:0 0 0 3px #ef4444}.mtc-indic-pire em{color:#b91c1c}
.mtc-indics-petit .mtc-indic{padding:4px 6px}.mtc-indics-petit .mtc-indic span{font-size:16px}.mtc-indics-petit .mtc-indic b{font-size:14px}
.mtc-plateau{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;align-items:end;width:100%;max-width:980px;margin-top:10px}
@media (max-width:720px){.mtc-plateau{grid-template-columns:1fr}}
.mtc-pile{font:inherit;position:relative;background:none;border:0;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.7);padding-top:88px}
.mtc-pile:disabled{cursor:default;opacity:.7}
.mtc-pile-feuilles{position:absolute;top:0;left:50%;width:170px;height:70px;margin-left:-85px}
.mtc-pile-feuilles i{position:absolute;left:0;right:0;bottom:calc(var(--k) * 9px);height:30px;border-radius:3px 12px 12px 12px;background:linear-gradient(#f5d99a,#e3b867);box-shadow:0 3px 6px rgba(0,0,0,.35);transform:rotate(calc((var(--k) - 2) * 2.2deg))}
.mtc-pile:hover:not(:disabled) .mtc-pile-feuilles i:last-child{transform:translateY(-10px) rotate(-3deg);transition:transform .25s}
.mtc-pile b{font-size:16px}.mtc-pile span{font-size:13px}
.mtc-postit{background:#fef08a;color:#422006;border-radius:2px;padding:12px 14px;box-shadow:0 10px 18px rgba(0,0,0,.3);transform:rotate(-2deg);font-family:"Segoe Print","Bradley Hand","Comic Sans MS",cursive;font-size:15px;line-height:1.45}
.mtc-postit p{margin:0 0 6px}.mtc-postit b{display:block;font-family:system-ui,sans-serif;font-size:12.5px;color:#9a3412}
.mtc-classeur-btn{font:inherit;background:linear-gradient(90deg,#7f1d1d,#b91c1c 20%,#b91c1c);color:#fff;border:0;border-radius:6px 14px 14px 6px;padding:14px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px;box-shadow:0 12px 24px rgba(0,0,0,.35);transform:perspective(500px) rotateY(-8deg);transition:transform .25s}
.mtc-classeur-btn:hover:not(:disabled){transform:perspective(500px) rotateY(0) translateY(-4px)}
.mtc-classeur-btn:disabled{opacity:.6;cursor:default}
.mtc-classeur-btn span{font-size:34px}.mtc-classeur-btn i{font-size:12px;color:#fecaca}
.mtc-bureau-go{margin-top:4px}
.mtc-revue{background:rgba(255,255,255,.94);border-radius:12px;padding:10px 14px;max-width:760px;width:100%;box-sizing:border-box;font-size:14px}
.mtc-revue ul{margin:6px 0 0;padding-left:18px}

/* --- le journal du matin --- */
.mtc-matin{display:flex;flex-direction:column;gap:12px;align-items:center;width:100%}
.mtc-journal{background:#f8f5ec;background-image:linear-gradient(rgba(0,0,0,.02) 1px,transparent 1px);background-size:100% 4px;color:#1c1917;border-radius:3px;padding:14px 18px;max-width:640px;width:100%;box-sizing:border-box;box-shadow:0 18px 40px rgba(0,0,0,.4);transform:rotate(-1deg);animation:mtc-journal .8s cubic-bezier(.2,.9,.3,1.2);font-family:Georgia,"Times New Roman",serif}
@keyframes mtc-journal{from{transform:rotate(-200deg) scale(.1);opacity:0}to{transform:rotate(-1deg);opacity:1}}
.mtc-journal-tete{display:flex;justify-content:space-between;align-items:baseline;border-bottom:3px double #1c1917;padding-bottom:4px;margin-bottom:8px;gap:8px;flex-wrap:wrap}
.mtc-journal-tete b{font-size:26px;letter-spacing:.02em}.mtc-journal-tete i{font-size:12px}
.mtc-journal-une{margin:4px 0 8px;font-size:23px;line-height:1.2}
.mtc-journal-breve{margin:4px 0;font-size:15px}
.mtc-journal-avis{margin-top:10px;border-top:1px solid #a8a29e;padding-top:6px;font-family:system-ui,sans-serif;font-size:13.5px}
.mtc-journal-avis p{margin:4px 0}
.mtc-journal-photo{width:100%;border-radius:2px;filter:grayscale(.85) contrast(1.05);margin-bottom:8px}
.mtc-journal-doc{transform:none;animation:none}

/* --- les documents --- */
.mtc-doc{font-size:14.5px;line-height:1.5}
.mtc-doc p{margin:6px 0}
.mtc-doc-tete{display:flex;gap:10px;align-items:center;border-bottom:2px solid #e2e8f0;padding-bottom:8px;margin-bottom:8px}
.mtc-doc-tete b{display:block}.mtc-doc-tete i{display:block;font-size:12px;color:#64748b}
.mtc-doc-logo{flex:none;background:#0e7490;color:#fff;font-weight:900;border-radius:10px;padding:8px 10px;font-size:13px}
.mtc-doc-logo-cnil{background:#1e3a8a;letter-spacing:.1em}
.mtc-doc-signe{text-align:right;font-style:italic;margin-top:12px!important}
.mtc-doc-table{width:100%;border-collapse:collapse;font-size:13.5px}
.mtc-doc-table th,.mtc-doc-table td{border-bottom:1px solid #e2e8f0;padding:5px 6px;text-align:left;vertical-align:top}
.mtc-doc-tampon{display:inline-block;border:2px solid var(--c);color:var(--c);font-weight:900;font-size:11.5px;padding:1px 6px;border-radius:5px;transform:rotate(-4deg)}
.mtc-doc-officiel{border-top:6px solid #1e3a8a;padding-top:6px}
.mtc-badge{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;max-width:300px;margin:0 auto;border:2px solid #0e7490;border-radius:16px;padding:0 0 12px;overflow:hidden}
.mtc-badge-bande{background:#0e7490;color:#fff;width:100%;font-weight:800;padding:8px 0}
.mtc-badge img{width:120px;height:150px;object-fit:cover;border-radius:10px;margin-top:8px}
.mtc-badge b{font-size:20px}.mtc-badge span{font-weight:700;color:#0e7490}.mtc-badge i{font-size:12px;color:#64748b}
.mtc-badge-code{font-family:"Courier New",monospace;letter-spacing:.2em;background:#f1f5f9;border-radius:6px;padding:2px 8px}

/* --- l'accueil et la fin --- */
.mtc-accueil h1 span{display:block;font-size:.5em;font-weight:600;opacity:.85}
.mtc-accueil-creole{font-style:italic;background:rgba(255,255,255,.12);border-radius:10px;padding:8px 10px}
.mtc-accueil-question{font-weight:700;color:#fde68a}
.mtc-accueil-tampons{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.mtc-accueil-tampons span{border:3px double var(--c);color:var(--c);background:rgba(255,255,255,.9);font-weight:900;padding:3px 10px;border-radius:6px;transform:rotate(-8deg);animation:mtc-encre .6s cubic-bezier(.2,1.6,.4,1) both}
.mtc-fin-badge{display:flex;flex-direction:column;align-items:center;gap:4px;background:color-mix(in srgb,var(--c) 14%,#fff);border:3px solid var(--c);border-radius:16px;padding:12px 16px;text-align:center}
.mtc-fin-badge span{font-size:40px}.mtc-fin-badge b{font-size:19px;color:var(--c)}.mtc-fin-badge i{font-size:13px;color:#475569}
.mtc-fin-pistes{background:#fff7ed;border-radius:12px;padding:10px 14px;font-size:14px;text-align:left}
.mtc-fin-pistes ul{margin:4px 0 0;padding-left:18px}
/* ==== mtc : fin des styles ==== */
/* ==== msj : debut des styles ====
   « Gard lo kèr ! » — tower defense des risques. Préfixe msj-.
   Un plan vu de dessus, un chemin lumineux, des risques qui marchent, des
   défenses qui s'allument quand elles agissent, un cœur qui encaisse. */
.msj{background:radial-gradient(circle at 15% 0%,#0e7490 0%,#0c4a6e 40%,#082f49 100%);color:#0f172a}
.msj .pdl-scene{padding:0}
.msj-corps{display:grid;grid-template-columns:240px 1fr;gap:14px;padding:14px;min-height:min(86vh,820px)}
.msj-centre{background:#f0f9ff;border-radius:18px;padding:14px;min-width:0;animation:pdl-entree .45s ease;position:relative}

/* --- le panneau de gauche --- */
.msj-panneau{display:flex;flex-direction:column;gap:12px;color:#e0f2fe}
.msj-moi{display:flex;gap:10px;align-items:center}
.msj-moi img{width:54px;height:54px;border-radius:50%;object-fit:cover;border:3px solid #fb923c}
.msj-moi span{display:flex;flex-direction:column;line-height:1.2}
.msj-moi b{font-size:17px;color:#fff}.msj-moi i{font-size:12px;font-style:normal;opacity:.8}
.msj-tresor{background:rgba(255,255,255,.08);border-radius:12px;padding:8px 10px;display:flex;justify-content:space-between;align-items:center}
.msj-tresor b{font-size:18px;color:#bbf7d0}
.msj-tresor.msj-bas b{color:#fecaca}
.msj-panneau .pdl-jauge{background:rgba(255,255,255,.08);border-radius:12px;padding:8px 10px;color:#e0f2fe}
.msj-compte{display:flex;flex-direction:column;gap:4px;background:rgba(255,255,255,.08);border-radius:12px;padding:8px 10px;font-size:14px}
.msj-compte b{color:#fff}
.msj-souvenirs{background:rgba(255,255,255,.08);border-radius:12px;padding:8px 10px;font-size:13px}
.msj-souvenirs ul{margin:6px 0 0;padding-left:16px;line-height:1.4}
.msj-outils{display:flex;gap:6px;flex-wrap:wrap}
.msj-outils button{background:rgba(255,255,255,.14);border:0;color:#fff;border-radius:10px;width:42px;height:42px;font-size:18px;cursor:pointer;position:relative}
.msj-outils button:hover{background:rgba(255,255,255,.26)}
.msj-outils sup{position:absolute;top:-4px;right:-4px;background:#fb923c;color:#0f172a;font-size:10px;font-weight:800;border-radius:99px;padding:1px 5px}
.msj-lien{background:none;border:0;color:#0369a1;text-decoration:underline;cursor:pointer;font:inherit;font-size:14px;padding:6px}

/* --- écrans plein cadre (accueil, identité, badge) --- */
.msj-ecran{position:relative;min-height:min(86vh,760px);background-size:cover;background-position:center;display:flex;align-items:center;justify-content:center;padding:24px}
.msj-ecran::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,47,73,.25),rgba(8,47,73,.75))}
.msj-ecran>*{position:relative}
.msj-accueil-boite{max-width:720px}
.msj-accueil-boite h1 span{display:block;font-size:16px;font-weight:600;opacity:.9;margin-top:6px}
.msj-accueil-mode{background:rgba(255,255,255,.14);border-radius:10px;padding:8px 12px;font-size:14px}
.msj-identite{max-width:520px}
.msj-badge-scene{display:flex;flex-direction:column;align-items:center;gap:18px}

/* --- le badge --- */
.msj-badge{width:260px;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 18px 40px rgba(0,0,0,.35);display:flex;flex-direction:column;align-items:center;padding-bottom:12px;
  animation:msj-badge 1s cubic-bezier(.2,.8,.2,1)}
@keyframes msj-badge{from{transform:perspective(600px) rotateY(90deg)}to{transform:none}}
.msj-badge-bande{width:100%;background:linear-gradient(90deg,#0891b2,#f97316);color:#fff;font-weight:800;font-size:12px;letter-spacing:.08em;text-align:center;padding:8px}
.msj-badge img{width:120px;height:150px;object-fit:cover;border-radius:12px;margin:12px 0 8px}
.msj-badge b{font-size:22px}.msj-badge>span{font-size:13px;color:#475569;text-align:center;padding:0 10px}
.msj-badge-code{margin-top:8px;font-size:11px;color:#0369a1;background:#e0f2fe;border-radius:8px;padding:4px 8px;text-align:center}

/* --- la tour de contrôle (hub) --- */
.msj-tour-controle{display:flex;flex-direction:column;gap:12px}
.msj-saison{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.msj-saison-v{background:#fff;border:2px solid #bae6fd;border-radius:12px;padding:6px;display:flex;flex-direction:column;align-items:center;font-size:12px;text-align:center}
.msj-saison-v span{font-size:22px}.msj-saison-v i{font-style:normal;color:#64748b}
.msj-saison-v.msj-fait{border-color:#16a34a;background:#f0fdf4}
.msj-saison-v.msj-ici{border-color:#f97316;box-shadow:0 0 0 4px rgba(249,115,22,.2);animation:pdl-clig 1.8s infinite}
.msj-annonce{background:#fff;border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:6px;box-shadow:0 6px 18px rgba(8,47,73,.12)}
.msj-annonce b{font-size:17px}.msj-annonce span{font-size:14px;color:#334155}
.msj-annonce-r{font-size:18px!important}
.msj-annonce .pdl-cta{align-self:flex-start}

/* --- LE PLAN --- */
.msj-plan{position:relative;width:100%;aspect-ratio:1376/768;border-radius:14px;overflow:hidden;box-shadow:0 10px 28px rgba(8,47,73,.3);background:#14532d}
.msj-plan-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.msj-chemin{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.msj-chemin polyline{fill:none;stroke:#fde047;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:2 7;opacity:.95;
  vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 3px #f97316);animation:msj-marche 1.4s linear infinite}
@keyframes msj-marche{to{stroke-dashoffset:-18}}
.msj-coeur{position:absolute;transform:translate(-50%,-50%);font-size:clamp(22px,4vw,40px);display:flex;flex-direction:column;align-items:center;pointer-events:none;
  animation:msj-bat 1.1s ease-in-out infinite;filter:drop-shadow(0 0 8px rgba(239,68,68,.8))}
.msj-coeur span{font-size:11px;font-weight:800;color:#fff;background:rgba(127,29,29,.85);border-radius:6px;padding:0 5px;margin-top:-2px}
@keyframes msj-bat{50%{transform:translate(-50%,-50%) scale(1.12)}}
.msj-coeur.msj-touche{animation:msj-touche .45s ease}
@keyframes msj-touche{30%{transform:translate(-50%,-50%) scale(1.45);filter:drop-shadow(0 0 22px #ef4444)}}
.msj-point{position:absolute;transform:translate(-50%,-50%);width:38px;height:38px;border-radius:50%;border:3px solid #fff;background:#f97316;color:#fff;font-weight:900;font-size:18px;
  cursor:pointer;box-shadow:0 0 0 0 rgba(249,115,22,.7);animation:msj-pulse 1.5s infinite}
.msj-point.msj-fait{background:#16a34a;animation:none}
@keyframes msj-pulse{70%{box-shadow:0 0 0 14px rgba(249,115,22,0)}}
.msj-slot{position:absolute;transform:translate(-50%,-50%);width:clamp(30px,4.6vw,46px);height:clamp(30px,4.6vw,46px);border-radius:12px;border:3px dashed rgba(255,255,255,.9);
  background:rgba(8,47,73,.45);color:#fff;font-weight:900;font-size:20px;cursor:pointer;display:grid;place-items:center;padding:0;transition:transform .2s}
.msj-slot.msj-cible{border-color:#fde047;background:rgba(253,224,71,.35);animation:pdl-clig 1s infinite}
.msj-slot.msj-occupe{border:3px solid var(--c);background:#fff;font-size:clamp(16px,2.4vw,24px);box-shadow:0 4px 10px rgba(0,0,0,.35)}
.msj-slot.msj-occupe span{position:relative;line-height:1}
.msj-slot.msj-occupe i{position:absolute;right:-12px;bottom:-12px;font-style:normal;font-size:12px;background:var(--c);border-radius:99px;padding:1px 3px}
.msj-slot.msj-tir{animation:msj-tir .5s ease;box-shadow:0 0 0 6px var(--c),0 0 24px var(--c)}
@keyframes msj-tir{40%{transform:translate(-50%,-50%) scale(1.25)}}
.msj-pop{position:absolute;transform:translate(-50%,-160%);white-space:nowrap;font-weight:900;font-size:clamp(11px,1.5vw,15px);padding:2px 8px;border-radius:99px;color:#fff;
  pointer-events:none;z-index:40;animation:msj-pop 1.1s ease-out forwards;box-shadow:0 3px 8px rgba(0,0,0,.35)}
.msj-pop-stop{background:#16a34a}.msj-pop-prot{background:#2563eb}.msj-pop-assu{background:#9333ea}.msj-pop-pca{background:#ea580c}.msj-pop-impact{background:#dc2626;font-size:clamp(12px,1.8vw,17px)}
@keyframes msj-pop{0%{opacity:0;transform:translate(-50%,-90%) scale(.6)}20%{opacity:1;transform:translate(-50%,-170%) scale(1.1)}100%{opacity:0;transform:translate(-50%,-260%) scale(1)}}
.msj-unite{position:absolute;transform:translate(-50%,-50%);font-size:clamp(16px,2.6vw,26px);background:rgba(255,255,255,.92);border:3px solid #dc2626;border-radius:50%;
  width:1.75em;height:1.75em;display:grid;place-items:center;line-height:1;transition:left .45s linear,top .45s linear,opacity .5s,transform .3s;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.55));animation:msj-sautille .5s ease-in-out infinite alternate}
@keyframes msj-sautille{to{margin-top:-4px}}
.msj-unite.msj-protege{transform:translate(-50%,-50%) scale(.72);border-color:#2563eb;box-shadow:0 0 0 5px rgba(37,99,235,.55),0 0 16px rgba(59,130,246,.9)}
.msj-unite.msj-assure{border-style:dashed}
.msj-unite.msj-stoppe{opacity:.0;transform:translate(-50%,-50%) scale(1.8) rotate(25deg)}
.msj-unite.msj-arrive{opacity:0;transform:translate(-50%,-50%) scale(.2)}
.msj-unite i{position:absolute;font-style:normal;font-size:12px}
.msj-badge-a{right:-10px;top:-8px}.msj-badge-p{left:-10px;top:-8px}

/* --- le plateau --- */
.msj-plateau{display:flex;flex-direction:column;gap:10px}
.msj-plateau-haut{display:flex;gap:10px;flex-wrap:wrap;align-items:stretch}
.msj-radar{flex:1;min-width:240px;background:#082f49;color:#e0f2fe;border-radius:12px;padding:8px 10px;display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:14px}
.msj-radar>b{width:100%;font-size:13px;color:#7dd3fc}
.msj-radar-r{background:rgba(255,255,255,.1);border-radius:10px;padding:4px 8px;display:flex;gap:6px;align-items:center;font-size:16px}
.msj-radar-r i{font-style:normal;font-size:11px;color:#fde68a}
.msj-radar-r em{font-style:normal;font-size:12px}
.msj-budget{background:#fff;border-radius:12px;padding:8px 12px;font-size:15px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;border:2px solid #86efac}
.msj-budget b{font-size:18px;color:#15803d}
.msj-budget.msj-bas{border-color:#fca5a5}.msj-budget.msj-bas b{color:#b91c1c}
.msj-main{display:flex;flex-direction:column;gap:10px}
.msj-cartes-def{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:8px}
.msj-dcarte{font:inherit;text-align:left;background:#fff;border:2px solid #e2e8f0;border-top:6px solid var(--c);border-radius:12px;padding:8px 10px;cursor:pointer;
  display:flex;flex-direction:column;gap:3px;transition:transform .15s,box-shadow .15s;color:#0f172a}
.msj-dcarte:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 8px 18px rgba(0,0,0,.12)}
.msj-dcarte.msj-sel{border-color:var(--c);box-shadow:0 0 0 4px rgba(249,115,22,.25);transform:translateY(-3px)}
.msj-dcarte:disabled{opacity:.45;cursor:not-allowed}
.msj-dcarte b{font-size:13.5px;line-height:1.25}
.msj-dcarte-fam{font-size:11px;font-weight:800;color:var(--c);text-transform:uppercase;letter-spacing:.04em}
.msj-dcarte-ico{font-size:26px}
.msj-dcarte-cib{font-size:15px}
.msj-dcarte-eff{font-size:12px;color:#475569;line-height:1.3}
.msj-dcarte-prix{font-weight:800;color:#0369a1;margin-top:auto}
.msj-commandes{display:flex;flex-direction:column;gap:8px}
.msj-compteurs{display:flex;flex-wrap:wrap;gap:6px}
.msj-compteurs span{background:#fff;border-radius:10px;padding:6px 10px;font-size:14px;box-shadow:0 2px 6px rgba(0,0,0,.06)}
.msj-journal{background:#0f172a;color:#e2e8f0;border-radius:10px;padding:10px 12px;margin:0;font-size:15px;line-height:1.45;min-height:48px}
.msj-info-def h3{margin-top:0}

/* --- le bilan de vague --- */
.msj-bilan{background:#fff;border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:10px;animation:pdl-bulle .4s ease}
.msj-bilan h3{margin:0}
.msj-bilan-chiffres{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.msj-bilan-chiffres div{background:#f0f9ff;border-radius:10px;padding:8px;display:flex;flex-direction:column;align-items:center;text-align:center}
.msj-bilan-chiffres b{font-size:20px;color:#0c4a6e}.msj-bilan-chiffres span{font-size:12px;color:#475569}
.msj-bilan-compare{background:#fef3c7;border-radius:10px;padding:8px 12px;margin:0;font-size:14px}
.msj-bilan-table,.msj-doc-table{width:100%;border-collapse:collapse;font-size:13.5px}
.msj-bilan-table th,.msj-bilan-table td,.msj-doc-table th,.msj-doc-table td{border-bottom:1px solid #e2e8f0;padding:6px;text-align:left;vertical-align:top}
.msj-bilan-table th,.msj-doc-table th{background:#f1f5f9;font-size:12px}

/* --- la vague (déroulé) --- */
.msj-vague{position:relative;display:flex;flex-direction:column;gap:12px;min-height:100%}
.msj-vague-decor{position:absolute;inset:-14px;border-radius:18px;background-size:cover;background-position:center;opacity:.2;pointer-events:none;filter:saturate(1.1);
  transition:opacity .6s;animation:msj-lent 30s ease-in-out infinite alternate}
@keyframes msj-lent{from{background-position:40% 50%}to{background-position:60% 50%}}
.msj-vague-dialogue .msj-vague-decor{opacity:1}
.msj-vague-dialogue .msj-vague-decor::after{content:"";position:absolute;inset:0;border-radius:18px;background:linear-gradient(180deg,rgba(8,47,73,0) 40%,rgba(8,47,73,.55))}
.msj-vague-dialogue{min-height:min(70vh,620px)}
.msj-vague-dialogue .msj-dialogue{padding-top:min(36vh,300px)}
.msj-vague-plateau .msj-vague-decor{display:none}
.msj-vague>*:not(.msj-vague-decor){position:relative}
.msj-vague-barre{display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:#0c4a6e;color:#fff;border-radius:12px;padding:6px 12px;font-weight:700;font-size:14px}
.msj-vague-barre .msj-lien{color:#bae6fd;margin-left:auto}
.msj-pas{display:flex;gap:4px;flex-wrap:wrap}
.msj-pas i{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.25)}
.msj-pas i.msj-fait{background:#4ade80}.msj-pas i.msj-ici{background:#fb923c;box-shadow:0 0 0 3px rgba(251,146,60,.35)}
.msj-vague-corps{display:flex;flex-direction:column;gap:12px;align-items:stretch;animation:pdl-entree .4s ease}
.msj-dialogue{display:flex;flex-direction:column;align-items:center;padding-top:min(18vh,140px)}
.msj-dialogue .pdl-bulle{max-width:760px}

/* --- la leçon : le carnet de Willy --- */
.msj-lecon{background:#fffef7;border-radius:6px 16px 16px 6px;border-left:14px solid #0e7490;padding:16px 18px;box-shadow:0 10px 28px rgba(8,47,73,.18);max-width:820px;width:100%;align-self:center;
  background-image:repeating-linear-gradient(#fffef7 0 29px,#e0f2fe 29px 30px)}
.msj-lecon-tete{display:flex;gap:12px;align-items:center;margin-bottom:8px}
.msj-lecon-tete img{width:58px;height:58px;border-radius:50%;object-fit:cover;border:3px solid #0e7490}
.msj-lecon-tete span{font-size:12px;color:#0e7490;font-weight:700}
.msj-lecon-tete h3{margin:2px 0 0;font-size:21px}
.msj-lecon-tete>div{flex:1}
.msj-lecon-points{margin:0;padding-left:4px;list-style:none;display:flex;flex-direction:column;gap:8px}
.msj-lecon-points li{font-size:16px;line-height:1.5;background:rgba(255,255,255,.85);border-radius:8px;padding:6px 10px}
.msj-lecon-points li.msj-neuf{animation:msj-deplie .5s cubic-bezier(.2,.8,.2,1)}
@keyframes msj-deplie{from{opacity:0;transform:perspective(500px) rotateX(-70deg);transform-origin:top}to{opacity:1;transform:none}}
.msj-deplier{margin-top:10px}

/* --- le tour du parc --- */
.msj-tour{display:flex;flex-direction:column;gap:10px}
.msj-tour-fiche h3{margin-top:0}
.msj-tour-photo{width:100%;aspect-ratio:16/6;border-radius:10px;background-size:cover;background-position:center;margin-bottom:8px}
.msj-fait-txt{background:#f0f9ff;border-left:4px solid #0284c7;padding:8px 10px;border-radius:6px}

/* --- la cartographie --- */
.msj-carto{display:flex;flex-direction:column;gap:10px}
.msj-carto-corps{display:grid;grid-template-columns:200px 1fr;gap:12px}
.msj-carto-cartes{display:flex;flex-direction:column;gap:6px}
.msj-rcarte{font:inherit;display:flex;flex-direction:column;align-items:flex-start;gap:2px;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:8px 10px;cursor:pointer;text-align:left;color:#0f172a}
.msj-rcarte-ico{font-size:22px}
.msj-rcarte i{font-size:11.5px;color:#b45309;font-style:normal}
.msj-rcarte.msj-sel{border-color:#f97316;box-shadow:0 0 0 4px rgba(249,115,22,.2)}
.msj-rcarte.msj-pose{background:#f8fafc}
.msj-rcarte.msj-ok{border-color:#16a34a;background:#f0fdf4}
.msj-rcarte.msj-proche{border-color:#f59e0b}.msj-rcarte.msj-faux{border-color:#dc2626}
.msj-grille-bloc{display:flex;flex-direction:column;gap:8px;min-width:0}
.msj-fiche-risque{background:#fff;border:2px solid #f97316;border-radius:12px;padding:8px 12px}
.msj-fiche-risque p{margin:4px 0 0;font-size:15px;line-height:1.45}
.msj-grille{display:flex;flex-direction:column;gap:4px;position:relative;padding-left:22px}
.msj-axe-y{position:absolute;left:-30px;top:42%;transform:rotate(-90deg);font-weight:800;font-size:12px;color:#0c4a6e;white-space:nowrap}
.msj-axe-x{text-align:center;font-weight:800;font-size:12px;color:#0c4a6e;padding-left:80px}
.msj-ligne{display:grid;grid-template-columns:80px repeat(3,1fr);gap:4px}
.msj-lab-y,.msj-lab-x{font-size:12px;font-weight:700;color:#334155;display:flex;align-items:center;justify-content:center;text-align:center}
.msj-case{min-height:62px;border-radius:10px;border:2px solid rgba(255,255,255,.6);cursor:pointer;position:relative;display:flex;flex-wrap:wrap;gap:2px;align-items:center;justify-content:center;font-size:24px;padding:14px 2px 2px}
.msj-crit-1,.msj-crit-2{background:#bbf7d0}.msj-crit-3{background:#fef08a}.msj-crit-4{background:#fde68a}.msj-crit-6{background:#fdba74}.msj-crit-9{background:#fca5a5}
.msj-case:hover{outline:3px solid #0369a1}
.msj-case-n{position:absolute;top:2px;left:4px;font-size:10.5px;font-weight:800;color:#7c2d12}
.msj-jeton{animation:pdl-pop .35s ease;line-height:1}
.msj-jeton.msj-ok{filter:drop-shadow(0 0 4px #16a34a)}
.msj-jeton.msj-faux,.msj-jeton.msj-proche{animation:pdl-secoue .5s ease;filter:drop-shadow(0 0 4px #dc2626)}
.msj-seuils{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12.5px}
.msj-seuils>div{background:#fff;border-radius:10px;padding:6px 8px;display:flex;flex-direction:column;gap:2px}
.msj-seuils i{font-style:normal;font-weight:700}

/* --- ranger une carte à la fois --- */
.msj-tiroirs{display:flex;flex-direction:column;gap:10px;align-items:stretch}
.msj-carte-centre{align-self:center;max-width:520px;background:#fff;border-radius:14px;padding:16px 18px;font-size:17px;font-weight:600;text-align:center;box-shadow:0 10px 24px rgba(0,0,0,.14);
  animation:msj-arrive .45s cubic-bezier(.2,.8,.2,1);display:flex;flex-direction:column;gap:6px}
.msj-carte-centre span{font-size:12px;color:#64748b;font-weight:700}
@keyframes msj-arrive{from{opacity:0;transform:translateY(-30px) rotate(-4deg)}to{opacity:1;transform:none}}
.msj-cases{display:grid;grid-template-columns:repeat(var(--n),1fr);gap:8px}
.msj-tiroir{font:inherit;background:#fff;border:3px solid var(--c);border-radius:12px;padding:12px 6px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;color:#0f172a;transition:transform .15s}
.msj-tiroir:hover:not(:disabled){transform:translateY(-3px);background:#f8fafc}
.msj-tiroir b{font-size:14.5px}.msj-tiroir span{font-size:12px;background:var(--c);color:#fff;border-radius:99px;padding:0 8px}
.msj-tiroir.msj-bon{background:#dcfce7;animation:pdl-pop .35s ease}
.msj-tiroir.msj-faux{background:#fee2e2;animation:pdl-secoue .4s ease}
.msj-tiroirs-tiroirs .msj-tiroir{border-radius:6px;border-width:3px 3px 8px;box-shadow:inset 0 -14px 0 rgba(0,0,0,.04)}
.msj-tiroirs-portes .msj-tiroir{min-height:110px;border-radius:40px 40px 8px 8px;justify-content:center}
.msj-tiroirs-piliers .msj-tiroir{min-height:120px;border-radius:4px;border-width:8px 3px 8px;justify-content:flex-end;background:repeating-linear-gradient(90deg,#fff 0 10px,#f1f5f9 10px 12px)}
.msj-tiroirs-tampons .msj-tiroir{border-radius:50%;aspect-ratio:1;max-width:130px;justify-self:center;width:100%;justify-content:center;border-style:double;border-width:6px}

/* --- les calculs --- */
.msj-nombre{display:flex;flex-direction:column;gap:8px;max-width:760px;width:100%;align-self:center}
.msj-rappel{background:#fffbeb;border:2px solid #fbbf24;border-radius:12px;padding:10px 12px;font-size:15px;line-height:1.45}
.msj-nombre-q{font-size:16px;margin:0}
.msj-nombre-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.msj-nombre-saisie input{font:inherit;font-size:20px;width:170px;padding:8px 10px;border-radius:10px;border:2px solid #94a3b8}
.msj-nombre-saisie input:focus{border-color:#0284c7;outline:none}

/* --- le guichet de l'assureur --- */
.msj-guichet{display:flex;flex-direction:column;gap:10px;max-width:760px;width:100%;align-self:center}
.msj-contrat{background:#fffdf5;border:1px solid #e7e2d3;border-radius:6px;padding:14px 16px;box-shadow:0 8px 22px rgba(0,0,0,.12);animation:msj-arrive .5s ease}
.msj-contrat-tete{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;color:#7c3aed;border-bottom:2px solid #7c3aed;padding-bottom:6px}
.msj-contrat h3{margin:8px 0}
.msj-contrat table{width:100%;border-collapse:collapse;font-size:15px}
.msj-contrat td{padding:5px;border-bottom:1px dashed #d6d3d1}
.msj-contrat td+td{font-weight:800;text-align:right}
.msj-contrat-compare{margin-top:8px;background:#ede9fe;border-radius:8px;padding:8px 10px}
.msj-signer{background:#fff;border-radius:12px;padding:10px 12px}

/* --- le courriel piège --- */
.msj-courriel-bloc{display:flex;flex-direction:column;gap:10px;max-width:760px;width:100%;align-self:center}
.msj-courriel{background:#fff;border-radius:10px;box-shadow:0 8px 22px rgba(0,0,0,.14);padding:6px;border-top:28px solid #e2e8f0}
.msj-courriel-l{font:inherit;width:100%;text-align:left;background:none;border:2px solid transparent;border-radius:8px;padding:8px 10px;cursor:pointer;font-size:15px;color:#0f172a}
.msj-courriel-l:hover:not(:disabled){background:#f1f5f9}
.msj-courriel-l.msj-sel{border-color:#f97316;background:#fff7ed}
.msj-courriel-l.msj-bon{border-color:#16a34a;background:#f0fdf4}
.msj-courriel-l.msj-rate{border-color:#dc2626;border-style:dashed}
.msj-courriel-l.msj-faux{border-color:#dc2626;background:#fef2f2}
.msj-courriel-why{margin:2px 12px 8px;font-size:13.5px;color:#334155}

/* --- le plan de continuité --- */
.msj-ordre{display:flex;flex-direction:column;gap:10px}
.msj-ordre-corps{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.msj-ordre-pile{display:flex;flex-direction:column;gap:6px}
.msj-etape{font:inherit;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:10px;padding:10px;cursor:pointer;font-size:14.5px;color:#0f172a}
.msj-etape.msj-pris{opacity:.3}
.msj-etape.msj-faux{border-color:#dc2626;animation:pdl-secoue .4s ease}
.msj-classeur{background:#fff7ed;border:2px solid #ea580c;border-radius:6px 14px 14px 6px;padding:10px 10px 10px 34px;margin:0;display:flex;flex-direction:column;gap:6px;font-size:14.5px}
.msj-classeur-t{list-style:none;margin-left:-24px;font-weight:800;color:#9a3412}
.msj-classeur li.msj-neuf{animation:msj-arrive .4s ease}

/* --- la fin d'une vague, la fin du jeu --- */
.msj-finvague,.msj-fin{display:flex;flex-direction:column;gap:10px;align-items:center;text-align:center;max-width:720px;margin:0 auto}
.msj-delta{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;width:100%}
.msj-delta span{background:#fff;border-radius:10px;padding:8px;font-size:15px}
.msj-fin-img{width:100%;aspect-ratio:16/9;border-radius:14px;background-size:cover;background-position:center;box-shadow:0 10px 28px rgba(0,0,0,.25)}
.msj-conditions{list-style:none;padding:0;margin:0;text-align:left;display:flex;flex-direction:column;gap:4px}
.msj-conditions li{background:#fff;border-radius:8px;padding:6px 10px}
.msj-conditions li.msj-ok{background:#f0fdf4}
.msj-liste-vagues{list-style:none;padding:0;display:flex;flex-direction:column;gap:6px}
.msj-liste-vagues li{display:grid;grid-template-columns:30px 1fr auto;gap:2px 8px;align-items:center;background:#f8fafc;border-radius:10px;padding:6px 8px}
.msj-liste-vagues li span{grid-row:span 2;font-size:22px}
.msj-liste-vagues li i{font-size:12.5px;color:#64748b;font-style:normal;grid-column:2}
.msj-liste-vagues li button{grid-row:1/span 2;grid-column:3}
.msj-liste-vagues li.msj-fait{background:#f0fdf4}

/* --- les documents --- */
.msj-doc{background:#fff;font-size:14px;line-height:1.45}
.msj-doc-tete{display:flex;gap:12px;align-items:flex-start;border-bottom:3px solid #0891b2;padding-bottom:8px;margin-bottom:10px}
.msj-doc-logo{font-size:34px}
.msj-doc-tete b{display:block;color:#0e7490;letter-spacing:.04em}
.msj-doc-tete span{display:block;font-size:12px;color:#64748b}
.msj-doc-tete h3{margin:6px 0 0}
.msj-doc-tete i{font-size:12.5px;color:#475569}
.msj-doc-note{background:#f0f9ff;border-radius:8px;padding:8px 10px;font-size:13px}
.msj-doc-sign{text-align:right;font-style:italic;color:#334155}
.msj-doc-liste{display:flex;flex-direction:column;gap:6px}
.msj-doc-liste i{color:#0369a1;font-style:normal;font-size:12.5px}
.msj-doc-contrat{border:1px dashed #a8a29e;border-radius:8px;padding:8px 10px;margin-bottom:8px;display:flex;flex-direction:column;gap:2px}
.msj-doc-contrat.msj-signe{border:2px solid #7c3aed;background:#faf5ff}
.msj-doc-contrat span{font-size:13px;color:#475569}
.msj-journal-doc{background:#fdfbf4;font-family:Georgia,serif;padding:6px}
.msj-journal-tete{font-size:26px;font-weight:900;letter-spacing:.06em;border-bottom:3px double #1c1917;text-align:center;padding-bottom:4px}
.msj-journal-tete span{display:block;font-size:11px;font-weight:400;letter-spacing:0;font-family:system-ui,sans-serif;color:#57534e}
.msj-journal-doc h3{font-size:22px;margin:10px 0}
.msj-journal-doc img{width:100%;border-radius:4px;filter:sepia(.25)}

@media (max-width:820px){
  .msj-corps{grid-template-columns:1fr;padding:8px;gap:8px}
  .msj-panneau{display:grid;grid-template-columns:1fr 1fr;gap:8px;order:2}
  .msj-corps-vague .msj-panneau{display:none}
  .msj-moi,.msj-souvenirs,.msj-outils{grid-column:1/-1}
  .msj-centre{padding:8px;border-radius:14px}
  .msj-saison{grid-template-columns:repeat(5,1fr);gap:3px}
  .msj-saison-v{padding:4px 2px;font-size:10.5px}
  .msj-saison-v i{display:none}
  .msj-carto-corps{grid-template-columns:1fr}
  .msj-carto-cartes{flex-direction:row;flex-wrap:wrap}
  .msj-rcarte{flex:1 1 140px}
  .msj-ligne{grid-template-columns:62px repeat(3,1fr)}
  .msj-axe-x{padding-left:62px}
  .msj-case{min-height:52px;font-size:20px}
  .msj-seuils{grid-template-columns:1fr}
  .msj-cases{grid-template-columns:repeat(2,1fr)}
  .msj-tiroirs-portes .msj-cases,.msj-tiroirs-piliers .msj-cases{grid-template-columns:repeat(var(--n),1fr)}
  .msj-ordre-corps{grid-template-columns:1fr}
  .msj-bilan-chiffres{grid-template-columns:repeat(2,1fr)}
  .msj-bilan-table{font-size:12px}
  .msj-cartes-def{grid-template-columns:repeat(2,1fr)}
  .msj-dialogue{padding-top:30px}
  .msj-slot.msj-occupe i{display:none}
  .msj-ecran{padding:12px}
}
@media (prefers-reduced-motion:reduce){
  .msj *{animation-duration:.01s!important;animation-iteration-count:1!important}
  .msj-unite{transition:none}
}
/* ==== msj : fin des styles ==== */
/* ==== msf : debut des styles ====
   ZARBOUTAN (SDGN 1re, chapitre 15). Préfixe msf-. Une cabane de chantier
   en bois, une frise de lambrequins, le vert pastel des cases de Salazie, le
   rouge de la tôle neuve ; une tablette qui porte le diagramme de Gantt. */
.msf{position:relative;overflow:hidden;background:#2b1d12;min-height:min(88vh,880px);color:#2a1d10;
  --msf-bois:#8b5a2b;--msf-bois-c:#c89b6d;--msf-vert:#9fd8b4;--msf-tole:#c2412d;--msf-creme:#fff8ec;--msf-encre:#2a1d10;--msf-rouge:#dc2626}
.msf-fond{position:absolute;inset:-30px;background-size:cover;background-position:center;filter:blur(5px) saturate(1.1) brightness(.5);transform:scale(1.04)}
.msf>*:not(.msf-fond){position:relative;z-index:1}
.msf-plein{min-height:min(88vh,880px);display:flex}
.msf-plein>.pdl-decor{flex:1}
.msf .pdl-cta{background:linear-gradient(135deg,#c2412d,#9a3412);color:#fff}
.msf .pdl-cta.alt{background:#fff8ec;color:#7c2d12;border:2px solid #c2412d}

/* --- l'accueil --- */
.msf-accueil{max-width:740px;margin:0 auto;padding:44px 18px 40px;text-align:center;color:#fff8ec}
.msf-accueil-sur{display:inline-block;font-size:12px;letter-spacing:.14em;text-transform:uppercase;background:rgba(255,255,255,.15);padding:5px 12px;border-radius:99px}
.msf-logo{margin:20px 0 4px;font-size:clamp(46px,11vw,96px);font-weight:900;letter-spacing:.04em;line-height:1;color:#fff8ec;
  text-shadow:0 4px 0 #8b5a2b,0 8px 0 #5b3a1a,0 12px 24px rgba(0,0,0,.5);position:relative;padding-bottom:26px}
.msf-logo::after{content:"";position:absolute;left:8%;right:8%;bottom:0;height:20px;
  background:radial-gradient(circle at 50% 0,#fff8ec 9px,transparent 10px) 0 0/26px 20px repeat-x;filter:drop-shadow(0 2px 0 #8b5a2b)}
.msf-accueil-sous{font-size:17px;font-weight:700;color:#fde68a}
.msf-accueil p{line-height:1.55}
.msf-accueil .pdl-accueil-btns{justify-content:center}

/* --- la barre du haut --- */
.msf-barre{display:flex;align-items:center;gap:12px;padding:8px 14px;background:linear-gradient(180deg,#5b3a1a,#3f2812);border-bottom:4px solid #2b1d12;color:#fff8ec;flex-wrap:wrap;
  box-shadow:0 6px 0 -2px rgba(0,0,0,.15)}
.msf-barre-logo{font-weight:900;letter-spacing:.08em;color:#fde68a}
.msf-barre-moi{display:flex;align-items:center;gap:8px;font-size:14px}
.msf-barre-moi img{width:34px;height:34px;border-radius:50%;object-fit:cover;border:2px solid #fde68a}
.msf-barre-moi i{opacity:.75;font-size:12px}
.msf-outils{margin-left:auto;display:flex;gap:6px}
.msf-outils button{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);color:#fff;border-radius:10px;padding:6px 9px;font-size:16px;cursor:pointer;position:relative}
.msf-outils sup{position:absolute;top:-6px;right:-6px;background:#c2412d;border-radius:99px;font-size:10px;padding:1px 5px}
.msf-centre{padding:16px 14px 28px;max-width:1120px;margin:0 auto;animation:msf-entre .45s ease-out}
@keyframes msf-entre{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* --- la cabane --- */
.msf-cabane{display:flex;flex-direction:column;gap:14px}
.msf-cabane-haut{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px}
.msf-cabane-case{min-height:220px;border-radius:16px;background-size:cover;background-position:center;position:relative;box-shadow:0 10px 28px rgba(0,0,0,.4);border:4px solid #fff8ec;animation:msf-kb 22s ease-in-out infinite alternate}
@keyframes msf-kb{from{background-size:110%}to{background-size:125%}}
.msf-cabane-case span{position:absolute;left:10px;bottom:10px;background:rgba(43,29,18,.8);color:#fff8ec;padding:4px 10px;border-radius:8px;font-size:13px;font-weight:700}
.msf-fil-projet{background:var(--msf-creme);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:10px;box-shadow:0 10px 28px rgba(0,0,0,.3)}
.msf-phase>i{display:block;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#8b5a2b;margin-bottom:4px}
.msf-phase>div{display:flex;gap:6px;flex-wrap:wrap}
.msf-jalon{display:inline-flex;align-items:center;gap:6px;background:#f1e4cf;border-radius:99px;padding:5px 10px;font-size:13px;border:2px solid transparent}
.msf-jalon em{font-style:normal;font-weight:600}
.msf-jalon.fait{background:#d1fae5;color:#065f46}
.msf-jalon.ici{border-color:#c2412d;animation:msf-pouls 1.6s ease-in-out infinite}
@keyframes msf-pouls{50%{box-shadow:0 0 0 6px rgba(194,65,45,.25)}}
.msf-prochaine{display:flex;align-items:center;gap:14px;background:var(--msf-creme);border-radius:16px;padding:12px 16px;margin-top:10px;flex-wrap:wrap;box-shadow:0 8px 20px rgba(0,0,0,.3)}
.msf-prochaine>span{font-size:38px}
.msf-prochaine>div{flex:1;min-width:180px;display:flex;flex-direction:column}
.msf-prochaine i{font-size:12px;color:#8b5a2b}
.msf-prochaine b{font-size:20px}
.msf-prochaine em{font-size:14px;color:#57534e}
.msf-carnet-bord{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.msf-carnet-bord li{display:grid;grid-template-columns:34px 1fr auto;gap:2px 8px;align-items:center;background:#faf5ec;border-radius:10px;padding:8px 10px}
.msf-carnet-bord li span{grid-row:span 2;font-size:22px}
.msf-carnet-bord li i{grid-column:2;font-size:13px;color:#57534e}
.msf-carnet-bord li button{grid-row:1/span 2;grid-column:3}
.msf-carnet-bord li.msf-fait{background:#ecfdf5}

/* --- l'étape --- */
.msf-etape{background:rgba(255,248,236,.97);border-radius:18px;padding:14px;box-shadow:0 14px 34px rgba(0,0,0,.4)}
.msf-etape-tete{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-bottom:2px dashed #e7d3b5;padding-bottom:10px;margin-bottom:12px}
.msf-etape-tete button{background:#f1e4cf;border:0;border-radius:8px;padding:6px 10px;cursor:pointer;font-weight:700}
.msf-etape-tete i{font-size:13px;color:#78716c;flex-basis:100%}
.msf-dialogue .pdl-bulle{margin:6px 0}

/* --- le carnet de Ton Florentin --- */
.msf-carnet{background:repeating-linear-gradient(180deg,#fffdf6 0 31px,#e8dcc4 31px 32px);border-radius:14px;padding:14px 16px 18px 28px;border-left:10px solid #8b5a2b;box-shadow:inset 6px 0 10px -6px rgba(0,0,0,.3),0 6px 16px rgba(0,0,0,.15)}
.msf-carnet-tete{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.msf-carnet-tete img{width:54px;height:54px;border-radius:50%;object-fit:cover;border:3px solid #8b5a2b}
.msf-carnet-tete>div{flex:1;display:flex;flex-direction:column}
.msf-carnet-tete i{font-size:12px;color:#8b5a2b}
.msf-carnet-tete b{font-size:19px}
.msf-carnet-pages{display:flex;flex-direction:column;gap:10px;margin-bottom:12px}
.msf-page{background:#fff;border-radius:10px;padding:10px 12px;box-shadow:0 3px 10px rgba(0,0,0,.08);border:1px solid #eadfcb}
.msf-page-neuve{animation:msf-deplie .55s cubic-bezier(.2,.9,.3,1.2);transform-origin:top}
@keyframes msf-deplie{from{opacity:0;transform:perspective(600px) rotateX(-70deg)}to{opacity:1;transform:none}}
.msf-page h4{margin:0 0 6px;font-size:18px;display:flex;align-items:center;gap:8px;color:#7c2d12}
.msf-page h4 span{background:#c2412d;color:#fff;border-radius:50%;width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;font-size:13px}
.msf-page p{margin:4px 0;line-height:1.5}
.msf-simple{font-size:16px}
.msf-ex{background:#ecfdf5;border-radius:8px;padding:6px 8px}
.msf-def{background:#fef3c7;border-radius:8px;padding:6px 8px;font-size:14px}

/* --- les calculs --- */
.msf-rappel{background:#eff6ff;border:2px solid #93c5fd;border-radius:10px;padding:8px 10px;margin:8px 0;font-size:15px}
.msf-calc-q{font-weight:700;font-size:17px}
.msf-calc-ligne{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.msf-calc-ligne input{font-size:20px;padding:8px 10px;border-radius:10px;border:2px solid #c89b6d;width:160px}

/* --- la lettre à surligner --- */
.msf-feutres{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.msf-feutre{border:3px solid var(--c);background:#fff;border-radius:99px;padding:8px 14px;font-weight:800;cursor:pointer;font-size:15px}
.msf-feutre.on{background:var(--c);transform:translateY(-2px) rotate(-2deg);box-shadow:0 6px 12px rgba(0,0,0,.2)}
.msf-lettre{background:#fffdf7;border-radius:6px;padding:18px 20px;box-shadow:0 10px 30px rgba(0,0,0,.25);font-family:Georgia,"Times New Roman",serif;font-size:17px;line-height:1.8;transform:rotate(-.4deg);animation:msf-tombe .7s ease-out}
@keyframes msf-tombe{from{opacity:0;transform:translateY(-40px) rotate(-6deg)}to{opacity:1;transform:rotate(-.4deg)}}
.msf-lettre-tete{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:14px;color:#57534e;margin-bottom:6px}
.msf-morceau{cursor:pointer;border-radius:4px;padding:1px 2px;transition:background .2s}
.msf-morceau:hover{background:#f5f5f4}
.msf-morceau.marque{background:linear-gradient(transparent 20%,var(--c) 20%,var(--c) 85%,transparent 85%)}
.msf-morceau.bon{outline:2px solid #16a34a}
.msf-morceau.faux{outline:2px solid #dc2626}
.msf-morceau.manque{outline:2px dashed #dc2626}
.msf-lettre-sign{text-align:right;font-style:italic}
.msf-legende{display:block;font-size:13px;margin-top:4px;color:#57534e}

/* --- les fils (tableau de liège) --- */
.msf-fils-grille{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:12px;align-items:start}
.msf-liege{position:relative;height:520px;border-radius:14px;background:#b07d4f radial-gradient(rgba(0,0,0,.12) 1px,transparent 1.5px) 0 0/9px 9px;border:10px solid #6b4423;box-shadow:inset 0 0 30px rgba(0,0,0,.35)}
.msf-fils-svg{position:absolute;inset:0;pointer-events:none;color:#7f1d1d}
.msf-fil{stroke:#991b1b;stroke-width:3;stroke-linecap:round;filter:drop-shadow(0 2px 1px rgba(0,0,0,.4));animation:msf-fil .35s ease-out}
.msf-fil.bon{stroke:#15803d;color:#15803d}
.msf-fil.faux{stroke:#dc2626;stroke-dasharray:6 4}
.msf-fil.manque{stroke:#fde68a;stroke-width:2.5;stroke-dasharray:4 6}
@keyframes msf-fil{from{stroke-dasharray:0 400}to{stroke-dasharray:400 0}}
.msf-fiche{position:absolute;transform:translate(-50%,-50%) rotate(var(--r));width:min(150px,30%);background:#fffbe6;border:0;border-radius:4px;padding:8px 6px 6px;box-shadow:0 5px 10px rgba(0,0,0,.35);cursor:pointer;display:flex;flex-direction:column;gap:2px;text-align:center;font-family:inherit;transition:transform .15s}
.msf-fiche::before{content:"";position:absolute;top:-6px;left:50%;width:12px;height:12px;margin-left:-6px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fca5a5,#b91c1c);box-shadow:0 2px 2px rgba(0,0,0,.4)}
.msf-fiche b{font-size:15px}
.msf-fiche span{font-size:12px;font-weight:700;line-height:1.15}
.msf-fiche i{font-size:11px;color:#57534e}
.msf-fiche.sel{transform:translate(-50%,-50%) scale(1.1);outline:4px solid #f59e0b;z-index:3}
.msf-fiche.cible{animation:msf-frise 1s ease-in-out infinite}
@keyframes msf-frise{50%{transform:translate(-50%,-50%) rotate(calc(var(--r) * -1)) scale(1.03)}}
.msf-fils-bulle{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);background:#1c1917;color:#fff;padding:6px 10px;border-radius:10px;font-size:13px;width:max-content;max-width:92%;z-index:4}
.msf-indices{background:#fffdf6;border-radius:12px;padding:10px 12px;font-size:14px;border-left:6px solid #8b5a2b}
.msf-indices ol{margin:6px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:6px}
.msf-fils-pied{display:flex;align-items:center;gap:12px;margin-top:10px;flex-wrap:wrap}

/* --- le diagramme de Gantt --- */
.msf-gantt{background:#1e293b;border-radius:14px;padding:10px;color:#e2e8f0;box-shadow:0 0 0 6px #0f172a,0 12px 28px rgba(0,0,0,.35);margin:10px 0;touch-action:pan-y;user-select:none}
.msf-g-titre{font-size:13px;color:#cbd5e1;margin-bottom:6px}
.msf-g-corps{display:grid;grid-template-columns:150px minmax(0,1fr);gap:0 6px}
.msf-g-noms{display:flex;flex-direction:column}
.msf-g-nom{height:30px;display:flex;align-items:center;gap:6px;font-size:13px;background:none;border:0;color:inherit;padding:0 4px;text-align:left;font-family:inherit;border-radius:6px;white-space:nowrap;overflow:hidden}
button.msf-g-nom{cursor:pointer;background:rgba(255,255,255,.05);margin-bottom:0}
button.msf-g-nom:hover{background:rgba(255,255,255,.12)}
.msf-g-nom b{width:20px;flex:none;color:#fde68a}
.msf-g-nom span{flex:1;overflow:hidden;text-overflow:ellipsis}
.msf-g-nom i{font-size:11px;color:#94a3b8}
.msf-g-entete{height:30px;font-size:11px;color:#94a3b8}
.msf-g-nom.marque{background:rgba(220,38,38,.35);box-shadow:inset 3px 0 0 #f87171}
.msf-g-nom.rouge b{color:#f87171}
.msf-g-nom.sel{outline:2px solid #fde68a}
.msf-g-pistes{position:relative;background:repeating-linear-gradient(90deg,rgba(255,255,255,.07) 0 1px,transparent 1px calc(100% / var(--n)))}
.msf-g-regle{height:30px;position:relative;font-size:10px;color:#94a3b8}
.msf-g-regle span{position:absolute;transform:translateX(-50%);top:9px}
.msf-g-ligne{height:30px;position:relative}
.msf-g-barre{position:absolute;top:4px;height:22px;border-radius:6px;background:linear-gradient(180deg,#38bdf8,#0284c7);box-shadow:0 2px 0 #075985;display:flex;align-items:center;justify-content:center;overflow:hidden;transition:left .18s ease,width .25s ease;z-index:2}
.msf-g-barre b{position:relative;z-index:2;font-size:12px;color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.5)}
.msf-g-barre.mobile{cursor:grab;touch-action:none}
.msf-g-barre.mobile:active{cursor:grabbing}
.msf-g-barre.sel{outline:3px solid #fde68a;z-index:3}
.msf-g-barre.conflit{background:linear-gradient(180deg,#f87171,#b91c1c);box-shadow:0 2px 0 #7f1d1d;animation:msf-tremble .5s ease-in-out infinite}
@keyframes msf-tremble{25%{transform:translateX(-2px)}75%{transform:translateX(2px)}}
.msf-g-barre.rouge{background:linear-gradient(180deg,#ef4444,#991b1b);box-shadow:0 0 12px 2px rgba(239,68,68,.75),0 2px 0 #7f1d1d;animation:msf-allume .9s ease-out}
@keyframes msf-allume{from{filter:brightness(2.2);box-shadow:0 0 30px 10px rgba(239,68,68,1)}}
.msf-g-barre.finie{filter:saturate(.6)}
.msf-g-progres{position:absolute;left:0;top:0;bottom:0;background:rgba(74,222,128,.75);z-index:1}
.msf-g-deborde{position:absolute;right:0;top:0;bottom:0;background:repeating-linear-gradient(45deg,#f97316 0 6px,#ea580c 6px 12px);z-index:1;opacity:.9}
.msf-g-fantome{position:absolute;top:3px;height:24px;border:2px dashed rgba(253,230,138,.7);border-radius:7px;z-index:1}
.msf-g-liens{position:absolute;left:0;top:0;width:100%;pointer-events:none;z-index:1;overflow:visible}
.msf-g-lien{fill:none;stroke:#94a3b8;stroke-width:1.5;opacity:.75}
.msf-g-lien.conflit{stroke:#f87171;stroke-width:2.5;opacity:1;stroke-dasharray:4 3}
.msf-g-delai{position:absolute;top:0;bottom:0;border-left:3px dashed #f59e0b;z-index:4;pointer-events:none}
.msf-g-delai span{position:absolute;top:0;right:3px;background:#f59e0b;color:#1c1917;font-size:10px;font-weight:800;padding:1px 4px;border-radius:4px;white-space:nowrap}
.msf-g-curseur{position:absolute;top:0;bottom:0;width:3px;background:#4ade80;box-shadow:0 0 10px #4ade80;z-index:5;pointer-events:none;transition:left .05s linear}
.msf-g-charge{background:rgba(124,58,237,.12);border-radius:4px}
.msf-g-charge span{position:absolute;top:6px;height:18px;border-radius:3px;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center}
.msf-g-charge .msf-c1{background:#8b5cf6}
.msf-g-charge .msf-c2{background:#dc2626;color:#fff;animation:msf-tremble .5s infinite}
.msf-g-charge-nom{color:#c4b5fd}
.msf-fleches{display:flex;align-items:center;gap:10px;background:#fff;border-radius:12px;padding:8px;border:2px solid #e7d3b5}
.msf-fleches button{width:48px;height:48px;font-size:20px;border-radius:12px;border:0;background:#1e293b;color:#fff;cursor:pointer;flex:none}
.msf-fleches span{flex:1;display:flex;flex-direction:column}
.msf-fleches i{font-size:13px;color:#57534e}
.msf-compteurs{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}
.msf-compteurs>div{flex:1;min-width:120px;background:#fff;border-radius:12px;padding:8px 12px;border:2px solid #e7d3b5;display:flex;flex-direction:column}
.msf-compteurs i{font-size:12px;color:#78716c}
.msf-compteurs b{font-size:22px}
.msf-bon{border-color:#86efac !important}
.msf-bon b{color:#15803d}
.msf-mauvais{border-color:#fca5a5 !important}
.msf-mauvais b{color:#b91c1c}

/* --- le réseau PERT --- */
.msf-pert{position:relative;height:300px;background:#0f172a;border-radius:14px;margin:10px 0}
.msf-pert svg{position:absolute;inset:0;width:100%;height:100%}
.msf-pert line{stroke:#64748b;stroke-width:2}
.msf-pert line.crit{stroke:#ef4444;stroke-width:3}
.msf-pert-n{position:absolute;transform:translate(-50%,-50%);background:#1e293b;border:2px solid #64748b;color:#e2e8f0;border-radius:10px;padding:4px 7px;display:flex;flex-direction:column;align-items:center;font-size:11px;min-width:54px}
.msf-pert-n b{font-size:16px;color:#fde68a}
.msf-pert-n.crit{border-color:#ef4444;box-shadow:0 0 10px rgba(239,68,68,.6)}
.msf-pert-n span{font-weight:700}

/* --- la lecture : le chantier en accéléré --- */
.msf-scene{position:relative;aspect-ratio:16/9;max-height:62vh;width:100%;border-radius:16px;overflow:hidden;box-shadow:0 14px 34px rgba(0,0,0,.45);background:#000}
.msf-scene-img{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity 1.2s ease;transform:scale(1.03)}
.msf-scene-img.on{opacity:1;animation:msf-kb2 30s linear infinite alternate}
@keyframes msf-kb2{to{transform:scale(1.12)}}
.msf-ciel{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(255,180,90,calc(.35 - var(--f) * .35)),transparent 60%);mix-blend-mode:soft-light}
.msf-soleil{position:absolute;font-size:30px;transform:translate(-50%,-50%);filter:drop-shadow(0 0 12px #fde047);transition:left .06s linear,top .06s linear}
.msf-scene-pluie .msf-scene-img.on{filter:brightness(.8)}
.msf-pluie{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.msf-pluie i{position:absolute;top:-20%;width:2px;height:60px;background:linear-gradient(180deg,transparent,rgba(200,220,255,.75));animation:msf-goutte linear infinite;transform:rotate(12deg)}
@keyframes msf-goutte{to{transform:translate(-40px,140vh) rotate(12deg)}}
.msf-poste{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;pointer-events:none;animation:msf-saute .7s ease-in-out infinite alternate}
.msf-poste span{font-size:28px;filter:drop-shadow(0 2px 3px rgba(0,0,0,.6))}
.msf-poste b{background:rgba(15,23,42,.8);color:#fff;font-size:11px;padding:2px 6px;border-radius:6px;white-space:nowrap}
@keyframes msf-saute{to{transform:translate(-50%,-58%)}}
.msf-camion{position:absolute;bottom:8%;left:-15%;font-size:52px;animation:msf-roule 2.8s ease-out forwards;transform:scaleX(-1)}
@keyframes msf-roule{to{left:30%}}
.msf-jour{position:absolute;top:10px;left:10px;background:rgba(15,23,42,.85);color:#fff;border-radius:12px;padding:6px 12px;display:flex;flex-direction:column;align-items:center;border:2px solid #fde68a}
.msf-jour i{font-size:11px;text-transform:uppercase;letter-spacing:.1em}
.msf-jour b{font-size:30px;line-height:1;font-variant-numeric:tabular-nums}
.msf-hud{position:absolute;top:10px;right:10px;display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:70%}
.msf-hud>div{background:rgba(15,23,42,.85);color:#fff;border-radius:10px;padding:4px 9px;display:flex;flex-direction:column;border:2px solid transparent}
.msf-hud i{font-size:10px;opacity:.75}
.msf-hud b{font-size:15px;font-variant-numeric:tabular-nums}
.msf-hud .msf-mauvais{border-color:#f87171 !important}
.msf-hud .msf-mauvais b{color:#fca5a5}
.msf-toast{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);background:#065f46;color:#fff;padding:8px 12px;border-radius:12px;font-size:13px;width:max-content;max-width:94%;animation:msf-entre .4s ease-out;box-shadow:0 6px 18px rgba(0,0,0,.4)}
.msf-commandes{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0}
.msf-alea{background:#fff;border-radius:14px;border:3px solid #f59e0b;padding:12px;margin:10px 0;animation:msf-deplie .5s ease-out;box-shadow:0 10px 28px rgba(0,0,0,.25)}
.msf-alea-tete{display:flex;gap:12px;align-items:flex-start}
.msf-alea-tete img{width:120px;height:90px;object-fit:cover;border-radius:10px;flex:none}
.msf-alea-tete i{font-size:12px;color:#b45309;font-weight:800}
.msf-alea-tete b{display:block;font-size:19px}
.msf-alea-tete p{margin:4px 0 0;line-height:1.45}
.msf-alea-effet{background:#fef3c7;border-radius:10px;padding:8px 10px;font-weight:600}
.msf-alea-opts{display:flex;flex-direction:column;gap:8px}
.msf-opt{text-align:left;background:#faf5ec;border:2px solid #e7d3b5;border-radius:12px;padding:10px 12px;cursor:pointer;font-family:inherit;font-size:15px;display:flex;flex-direction:column;gap:3px}
.msf-opt:hover{border-color:#c2412d;background:#fff}
.msf-opt i{font-size:13px;color:#57534e;font-style:normal}
.msf-fin-lecture{background:#fff;border-radius:14px;padding:14px;margin-top:10px;text-align:center}

/* --- documents --- */
.msf-doc{font-family:Georgia,"Times New Roman",serif;color:#1c1917;line-height:1.55}
.msf-doc h3{font-family:inherit;margin:0 0 10px}
.msf-doc-droite{text-align:right}
.msf-doc-sign{text-align:right;font-style:italic;margin-top:12px}
.msf-doc-large .msf-gantt{font-family:system-ui,sans-serif}
.msf-badge{width:min(300px,100%);margin:0 auto;background:linear-gradient(180deg,#fff8ec,#f1e4cf);border-radius:16px;padding:16px;text-align:center;border:3px solid #8b5a2b;display:flex;flex-direction:column;align-items:center;gap:4px;box-shadow:0 10px 24px rgba(0,0,0,.3)}
.msf-badge-logo{font-weight:900;letter-spacing:.1em;color:#7c2d12;display:flex;flex-direction:column}
.msf-badge-logo i{font-size:11px;letter-spacing:0;font-weight:400;color:#57534e}
.msf-badge img{width:110px;height:130px;object-fit:cover;border-radius:12px;border:3px solid #fff}
.msf-badge b{font-size:22px}
.msf-badge em{font-size:12px;color:#57534e}
.msf-table{width:100%;border-collapse:collapse;font-size:14px;font-family:system-ui,sans-serif}
.msf-table th,.msf-table td{border:1px solid #d6c4a8;padding:5px 7px;text-align:left}
.msf-table th{background:#f1e4cf}
.msf-journal{padding-left:18px}
.msf-journal li{margin-bottom:8px;display:flex;flex-direction:column}
.msf-journal i{font-size:13px;color:#57534e}
.msf-pv{position:relative}
.msf-pv-sign{display:flex;justify-content:space-between;margin-top:16px}
.msf-pv-sign span{display:flex;flex-direction:column;font-size:13px}
.msf-pv-sign i{font-family:"Brush Script MT",cursive;font-size:24px;color:#1e3a8a}
.msf-tampon{position:absolute;right:20px;bottom:44px;border:4px solid #b91c1c;color:#b91c1c;font-weight:900;padding:4px 12px;border-radius:8px;transform:rotate(-14deg);font-size:22px;opacity:.8;font-family:system-ui,sans-serif;animation:msf-tamponne .5s ease-out}
@keyframes msf-tamponne{from{transform:rotate(-14deg) scale(2.4);opacity:0}}
.msf-article-titre{font-weight:900;font-size:26px;letter-spacing:.06em;border-bottom:3px double #1c1917;display:flex;flex-direction:column}
.msf-article-titre i{font-size:12px;font-weight:400;letter-spacing:0}
.msf-article img{width:100%;max-height:240px;object-fit:cover;border-radius:6px;filter:sepia(.25)}

/* --- bilans et fin --- */
.msf-bilan-e{background:rgba(255,248,236,.97);border-radius:18px;padding:22px;text-align:center;position:relative;overflow:hidden}
.msf-bilan-sur{font-size:13px;text-transform:uppercase;letter-spacing:.1em;color:#8b5a2b}
.msf-bilan-pct{display:block;font-size:20px;margin:6px 0}
.msf-verdict{display:flex;flex-direction:column;gap:12px}
.msf-verdict-fin{background:rgba(255,248,236,.97);border-radius:18px;padding:24px;text-align:center;position:relative;overflow:hidden}
.msf-verdict-ico{font-size:64px;animation:msf-pouls 1.6s infinite}
.msf-verdict-chiffres{font-weight:700}
.msf-fin-retard{border:4px solid #f59e0b}
.msf-fin-horsbudget{border:4px solid #dc2626}
.msf-fin-reserves{border:4px solid #7c3aed}
.msf-fin-atemps{border:4px solid #16a34a}
.msf-bilan{background:rgba(255,248,236,.97)}
.msf-verdict-tag{display:inline-block;background:#f1e4cf;border-radius:99px;padding:4px 12px}

/* --- téléphone --- */
@media (max-width:760px){
  .msf-cabane-haut{grid-template-columns:1fr}
  .msf-fils-grille{grid-template-columns:1fr}
  .msf-liege{height:600px}
  .msf-fiche{width:31%;padding:6px 3px 4px}
  .msf-fiche span{font-size:11px}
  .msf-g-corps{grid-template-columns:58px minmax(0,1fr)}
  .msf-g-nom span{display:none}
  .msf-g-nom i{display:none}
  .msf-g-charge-nom span{display:none}
  .msf-g-regle span:nth-child(4n+3){display:none}
  .msf-scene{aspect-ratio:4/3;max-height:none}
  .msf-hud{max-width:62%}
  .msf-hud b{font-size:13px}
  .msf-poste b{display:none}
  .msf-alea-tete img{width:76px;height:76px}
  .msf-pert{height:340px}
  .msf-pert-n{min-width:40px;padding:3px 4px}
  .msf-centre{padding:12px 8px 24px}
  .msf-etape{padding:10px}
  .msf-lettre{font-size:16px;padding:14px}
}
@media (prefers-reduced-motion:reduce){
  .msf-scene-img.on,.msf-cabane-case,.msf-poste,.msf-g-barre.conflit,.msf-fiche.cible{animation:none}
}
/* ==== msf : fin des styles ==== */
/* ==== mse : debut des styles ====
   LÈR I TONB ! (SDGN 1re, chapitre 14). Préfixe mse-. Une radio au petit
   matin : décor flouté sombre, cartes claires, et au centre le TABLEAU
   BLANC MAGNÉTIQUE de la semaine, où les blocs tombent comme des aimants
   en relief. Modificateurs toujours préfixés (piège N). */
.mse{position:relative;overflow:hidden;background:#0b1220;min-height:min(88vh,880px);color:#f1f5f9;
  --mse-carte:rgba(255,255,255,.96);--mse-encre:#0f172a;--mse-rouge:#dc2626;--mse-jaune:#eab308;--mse-bleu:#2563eb;--mse-vert:#16a34a;--mse-onair:#ef4444}
.mse-fond{position:absolute;inset:-30px;background-size:cover;background-position:center;filter:blur(5px) saturate(1.1) brightness(.45);transform:scale(1.04);transition:background-image .6s}
.mse>*:not(.mse-fond){position:relative;z-index:1}
.mse .pdl-bulle,.mse .pdl-why,.mse .pdl-qcm,.mse .pdl-lecon{color:var(--mse-encre)}
.mse .pdl-why .pdl-cta{margin-top:10px}
.mse-centre{max-width:1040px;margin:0 auto;padding:16px 16px 60px;animation:pdl-entree .45s ease}

/* --- l'accueil --- */
.mse-accueil{max-width:740px;margin:0 auto;padding:46px 20px 40px;text-align:center}
.mse-accueil-sur{display:inline-block;font-size:12px;letter-spacing:.1em;text-transform:uppercase;background:rgba(255,255,255,.12);padding:5px 12px;border-radius:99px;line-height:1.4}
.mse-titre-jeu{margin:18px 0 8px;display:flex;justify-content:center;align-items:flex-end;gap:10px;flex-wrap:wrap;font-size:clamp(46px,11vw,96px);font-weight:900;line-height:.95}
.mse-titre-jeu span{display:inline-block;padding:4px 14px 8px;border-radius:12px;color:#fff;box-shadow:0 6px 0 rgba(0,0,0,.35),inset 0 -6px 0 rgba(0,0,0,.18);animation:mse-chute .9s cubic-bezier(.3,1.5,.6,1) both}
.mse-titre-jeu span:nth-child(1){background:var(--mse-rouge);animation-delay:.05s}
.mse-titre-jeu span:nth-child(2){background:var(--mse-bleu);animation-delay:.35s}
.mse-titre-jeu b{color:var(--mse-jaune);animation:mse-chute .9s .65s cubic-bezier(.3,1.5,.6,1) both;display:inline-block}
@keyframes mse-chute{0%{transform:translateY(-160px) rotate(-8deg);opacity:0}70%{opacity:1}100%{transform:none}}
.mse-accueil-sous{font-size:18px;font-weight:700;color:#fde68a;line-height:1.45}
.mse-accueil p{line-height:1.55}
.mse-accueil .pdl-accueil-btns{justify-content:center}
.mse-identite{background:var(--mse-carte);color:var(--mse-encre);border-radius:20px;padding:22px;max-width:560px;margin:30px auto;box-shadow:0 20px 50px rgba(0,0,0,.45)}

/* --- la barre du haut --- */
.mse-barre{display:flex;align-items:center;gap:12px;padding:10px 14px;background:rgba(8,12,24,.8);border-bottom:2px solid rgba(239,68,68,.45);backdrop-filter:blur(6px);flex-wrap:wrap}
.mse-barre-logo{font-weight:900;letter-spacing:.06em;color:#fff}
.mse-barre-logo::after{content:"● EN DIRECT";margin-left:10px;font-size:11px;color:var(--mse-onair);letter-spacing:.12em;animation:mse-onair 1.6s ease-in-out infinite}
@keyframes mse-onair{50%{opacity:.35}}
.mse-jauges-mini{display:flex;gap:8px;font-size:13px;font-weight:700}
.mse-jauges-mini span{background:rgba(255,255,255,.1);border-radius:99px;padding:3px 9px}
.mse-outils{margin-left:auto;display:flex;gap:6px}
.mse-outils button{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#fff;border-radius:10px;padding:6px 9px;font-size:16px;cursor:pointer;position:relative}
.mse-outils sup{position:absolute;top:-6px;right:-6px;background:var(--mse-onair);border-radius:99px;font-size:10px;padding:1px 5px}

/* --- une journée --- */
.mse-journee{background:rgba(15,23,42,.78);border:1px solid rgba(255,255,255,.12);border-radius:20px;padding:14px;box-shadow:0 20px 50px rgba(0,0,0,.4)}
.mse-journee-tete{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.mse-journee-tete button{background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.25);border-radius:99px;padding:4px 12px;cursor:pointer;font:inherit;font-size:13px}
.mse-journee-tete b{color:#fde68a}
.mse-journee-tete i{font-size:12px;color:#cbd5e1;flex-basis:100%}
.mse-progres{display:flex;gap:4px;flex-basis:100%}
.mse-progres span{flex:1;height:5px;border-radius:9px;background:rgba(255,255,255,.15)}
.mse-progres .mse-p-fait{background:var(--mse-vert)}
.mse-progres .mse-p-ici{background:var(--mse-jaune);animation:mse-onair 1.4s infinite}
.mse-etape{animation:pdl-entree .4s ease}
.mse .pdl-ex-titre{color:#fde68a;font-weight:900;font-size:18px;margin:4px 0 10px}
.mse .pdl-consigne{line-height:1.5;color:var(--mse-encre);margin-bottom:8px}
.mse .pdl-aide{color:#cbd5e1}
.mse .pdl-qcm-prog{color:#cbd5e1}
.mse-suite{background:var(--mse-carte);color:var(--mse-encre);border-radius:16px;padding:14px 16px;margin-top:12px;line-height:1.5;animation:pdl-entree .35s ease}
.mse-retard-msg{background:rgba(148,163,184,.2);border:1px dashed #94a3b8;border-radius:12px;padding:8px 12px;font-size:14px}

/* --- LA GRILLE QUI TOMBE : un tableau blanc magnétique --- */
.mse-grille-zone{display:flex;flex-direction:column;gap:10px}
.mse-grille-tete{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.mse-grille-tete b{font-size:17px}
.mse-grille-tete span{font-size:13px;color:#cbd5e1}
.mse-lent-btn{margin-left:auto;font:inherit;font-size:13px;font-weight:700;border-radius:99px;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.08);color:#fff;padding:6px 12px;cursor:pointer}
.mse-lent-btn.mse-lent-on{background:#065f46;border-color:#34d399}
.mse-tombe{border-radius:14px;padding:10px 14px;background:var(--mse-carte);color:var(--mse-encre);border-left:8px solid #94a3b8;animation:mse-glisse .35s ease}
@keyframes mse-glisse{from{transform:translateY(-10px);opacity:0}}
.mse-tombe-urg{border-left-color:var(--mse-rouge)}.mse-tombe-ct{border-left-color:var(--mse-jaune)}
.mse-tombe-lt{border-left-color:var(--mse-bleu)}.mse-tombe-hum{border-left-color:var(--mse-vert)}
.mse-tombe-gris{border-left-color:#64748b;background:#f1f5f9}
.mse-tombe-lab{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#64748b;margin-right:8px}
.mse-tombe>b{font-size:17px}
.mse-tombe>i{display:block;font-style:normal;font-size:13px;color:#334155;margin-top:2px}
.mse-gris-q p{margin:6px 0;line-height:1.4}
.mse-gris-o{display:flex;gap:8px;flex-wrap:wrap}
.mse-gris-o button{font:inherit;font-weight:700;border:2px solid #334155;background:#fff;color:#0f172a;border-radius:10px;padding:8px 12px;cursor:pointer;display:flex;gap:8px;align-items:center}
.mse-gris-o button:hover{background:#fef9c3}
.mse-gris-o span{background:#334155;color:#fff;border-radius:6px;padding:0 6px;font-size:12px}
.mse-grille-corps{display:flex;gap:14px;align-items:flex-start}
.mse-grille{flex:1;display:grid;grid-template-columns:46px repeat(7,minmax(0,1fr));gap:3px;padding:10px;border-radius:14px;max-width:600px;
  background:linear-gradient(160deg,#f8fafc,#e2e8f0);box-shadow:inset 0 0 0 6px #cbd5e1,0 18px 40px rgba(0,0,0,.45);perspective:600px}
.mse-jour{text-align:center;font-weight:800;font-size:12px;color:#334155;display:flex;flex-direction:column;align-items:center;line-height:1.1}
.mse-jour i{font-style:normal;font-size:11px}
.mse-heure{font-size:10px;color:#64748b;display:flex;align-items:center;justify-content:flex-end;padding-right:4px}
.mse-case{aspect-ratio:1.75;min-height:24px;min-width:0;border:1px dashed #cbd5e1;border-radius:6px;background:transparent;padding:0;font-size:16px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;transition:transform .15s}
.mse-case.mse-c-urg,.mse-case.mse-c-ct,.mse-case.mse-c-lt,.mse-case.mse-c-hum,.mse-case.mse-c-gris,.mse-case.mse-c-fixe,.mse-case.mse-c-retard{border:0;
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.22),inset 0 2px 0 rgba(255,255,255,.35),0 2px 3px rgba(0,0,0,.25)}
.mse-c-urg{background:var(--mse-rouge)}.mse-c-ct{background:var(--mse-jaune)}.mse-c-lt{background:var(--mse-bleu)}.mse-c-hum{background:var(--mse-vert)}
.mse-c-gris{background:repeating-linear-gradient(45deg,#94a3b8 0 6px,#a8b3c4 6px 12px)}
.mse-c-fixe{background:#475569;color:#fff;font-size:13px}
.mse-c-retard{background:repeating-linear-gradient(-45deg,#64748b 0 5px,#475569 5px 10px)}
.mse-case.mse-actif{transform:translateZ(14px) scale(1.04);outline:2px solid #fff;outline-offset:-2px;z-index:2}
.mse-case.mse-ombre{background:rgba(15,23,42,.12);border:2px dashed #64748b}
.mse-case.mse-ecrase{background:#57534e !important;filter:saturate(.2);position:relative;animation:mse-ecrase .5s ease}
@keyframes mse-ecrase{0%{transform:scaleY(1)}40%{transform:scaleY(.55)}100%{transform:scaleY(.85)}}
.mse-case.mse-flash{animation:mse-flash .42s ease;background:#fff !important}
@keyframes mse-flash{0%,100%{filter:brightness(1)}50%{filter:brightness(2.2);transform:scale(1.08)}}
.mse-cote{width:200px;display:flex;flex-direction:column;gap:10px}
.mse-suivante{background:rgba(255,255,255,.1);border-radius:12px;padding:8px 10px;font-size:13px}
.mse-suivante span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#cbd5e1}
.mse-legende{list-style:none;margin:0;padding:8px 10px;background:rgba(255,255,255,.1);border-radius:12px;font-size:13px}
.mse-legende li{display:flex;align-items:center;gap:8px;margin:3px 0}
.mse-legende span{width:16px;height:16px;border-radius:4px;display:inline-block;box-shadow:inset 0 -3px 0 rgba(0,0,0,.25)}
.mse-regle{font-size:12px;color:#cbd5e1;margin:0}
.mse-toast{background:var(--mse-carte);color:var(--mse-encre);border-radius:12px;padding:9px 12px;font-size:14px;line-height:1.45;border-left:6px solid #94a3b8;animation:mse-glisse .3s ease}
.mse-toast-bon,.mse-toast-ligne{border-left-color:var(--mse-vert)}
.mse-toast-faux{border-left-color:var(--mse-jaune)}
.mse-toast-ecrase{border-left-color:var(--mse-rouge);background:#fff1f2}
.mse-commandes{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.mse-commandes button{font:inherit;font-size:22px;font-weight:800;min-width:56px;min-height:50px;border-radius:14px;border:0;background:#1e293b;color:#fff;cursor:pointer;
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.4),0 4px 10px rgba(0,0,0,.35)}
.mse-commandes button:active{transform:translateY(2px);box-shadow:inset 0 -1px 0 rgba(0,0,0,.4)}
.mse-commandes .mse-poser{background:#b91c1c;font-size:17px;padding:0 16px}
.mse-lent .mse-commandes .mse-poser{background:#065f46}
.mse-aide-touches{text-align:center;font-size:13px}
.mse-grille-fin{background:var(--mse-carte);color:var(--mse-encre);border-radius:16px;padding:16px}

/* --- la leçon qui se déplie --- */
.mse-lecon{background:#fffdf7;color:var(--mse-encre);border-radius:18px;padding:16px 18px;box-shadow:0 14px 36px rgba(0,0,0,.35);border-top:8px solid #f59e0b}
.mse-lecon-longue-vue{border-top-color:#a16207;background:radial-gradient(circle at 90% 0,#fef3c7,#fffdf7 40%)}
.mse-lecon-agenda{border-top-color:#7c3aed}
.mse-lecon-conducteur{border-top-color:var(--mse-rouge);background:#fffbeb}
.mse-lecon-panneau{border-top-color:#0f766e;background:#f0fdfa}
.mse-lecon-frigo{border-top-color:#0284c7;background:linear-gradient(180deg,#f0f9ff,#fff)}
.mse-lecon-carnet{border-top-color:#be185d;background:repeating-linear-gradient(180deg,#fffdf7 0 27px,#e0e7ff 27px 28px)}
.mse-lecon-tete{display:flex;align-items:center;gap:12px}
.mse-lecon-tete img{width:54px;height:54px;border-radius:50%;object-fit:cover;border:3px solid #fbbf24}
.mse-lecon-tete span{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#92400e;font-weight:800}
.mse-lecon-tete h3{margin:2px 0 0;font-size:20px}
.mse-lecon-tete>:last-child{margin-left:auto}
.mse-lecon-intro{font-style:italic;color:#475569;line-height:1.5}
.mse-notions{padding-left:22px;margin:8px 0}
.mse-notion{margin:10px 0 14px;animation:pdl-entree .4s ease;line-height:1.5}
.mse-notion h4{margin:0 0 4px;font-size:17px;color:#7c2d12}
.mse-notion p{margin:4px 0}
.mse-ici{background:#ecfeff;border-radius:8px;padding:6px 10px;color:#164e63}
.mse-notion blockquote{margin:6px 0 0;padding:6px 10px;border-left:4px solid #f59e0b;background:#fffbeb;font-size:14px;color:#422006}
.mse-notion blockquote small{font-weight:800;color:#92400e}
.mse-lecon .pdl-cta{margin-top:8px}

/* --- choix, bulles, QCM --- */
.mse-choix{background:var(--mse-carte);color:var(--mse-encre);border-radius:18px;padding:16px}
.mse-choix-tag{font-size:12px;font-weight:800;color:#7c3aed;text-transform:uppercase;letter-spacing:.06em}
.mse-choix h3{margin:6px 0 12px;line-height:1.35}
.mse-choix-o{display:grid;gap:10px}
.mse-choix-b{font:inherit;text-align:left;display:flex;gap:10px;align-items:center;border:2px solid #cbd5e1;background:#fff;border-radius:14px;padding:12px;cursor:pointer;line-height:1.4}
.mse-choix-b span{font-size:22px}
.mse-choix-b:hover:not(:disabled){border-color:#7c3aed}
.mse-choix-b.mse-pris{border-color:#7c3aed;background:#f5f3ff;box-shadow:0 0 0 3px rgba(124,58,237,.25)}
.mse-choix-b:disabled:not(.mse-pris){opacity:.5}
.mse-choix .mse-suite{background:#f5f3ff;border:1px solid #ddd6fe}
.mse-qcm{position:relative}
.mse-brouillard .pdl-qcm{position:relative;z-index:1}
.mse-lv-fond{display:flex;gap:10px;margin-bottom:10px}
.mse-lv-fond span{flex:1;text-align:center;padding:16px 6px;border-radius:12px;font-weight:800;background:rgba(255,255,255,.15);filter:blur(calc(var(--f) * 2.2px));opacity:calc(1 - var(--f) * .25)}

/* --- une carte à la fois : la longue-vue --- */
.mse-lv-oculaire{margin:10px auto;width:min(270px,70%);aspect-ratio:1;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:radial-gradient(circle,#fef3c7 0 55%,#a16207 56% 62%,#1c1917 63%);box-shadow:0 14px 34px rgba(0,0,0,.5);animation:mse-zoom .45s ease}
@keyframes mse-zoom{from{transform:scale(.6);opacity:0}}
.mse-lv-carte{width:66%;text-align:center;font-weight:800;color:#1c1917;line-height:1.35;font-size:16px}
.mse-lv-regle{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;position:relative;padding-top:18px}
.mse-lv-regle::before{content:"";position:absolute;left:0;right:0;top:6px;height:6px;border-radius:9px;background:linear-gradient(90deg,#eab308,#2563eb)}
.mse-lv-zone{font:inherit;border:2px solid #cbd5e1;background:#fff;border-radius:12px;padding:10px 6px;cursor:pointer;display:flex;flex-direction:column;align-items:center;color:var(--mse-encre)}
.mse-lv-zone b{filter:blur(calc(var(--flou) * .6px))}
.mse-lv-zone i{font-style:normal;font-size:12px;color:#475569}
.mse-bon{border-color:var(--mse-vert) !important;background:#dcfce7 !important}
.mse-faux{border-color:var(--mse-rouge) !important;background:#fee2e2 !important;animation:mse-secoue .35s}
@keyframes mse-secoue{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}

/* --- la console du direct --- */
.mse-fil-ecran{background:#020617;border:3px solid #334155;border-radius:14px;padding:16px;margin:10px 0;overflow:hidden;box-shadow:inset 0 0 30px rgba(34,211,238,.15)}
.mse-depeche{font-family:"Courier New",ui-monospace,monospace;color:#a5f3fc;font-size:16px;line-height:1.45;animation:mse-defile .4s ease}
.mse-depeche span{display:block;color:#f87171;font-weight:900;letter-spacing:.14em;font-size:12px;margin-bottom:4px}
@keyframes mse-defile{from{transform:translateX(60%);opacity:0}}
.mse-console-boutons{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;background:linear-gradient(180deg,#334155,#1e293b);padding:12px;border-radius:16px}
.mse-cb{font:inherit;font-weight:800;font-size:14px;border:0;border-radius:12px;padding:14px 6px;cursor:pointer;color:#fff;line-height:1.25;
  box-shadow:inset 0 -5px 0 rgba(0,0,0,.35),0 4px 10px rgba(0,0,0,.4);display:flex;flex-direction:column;align-items:center;gap:4px}
.mse-cb span{font-size:20px}
.mse-cb-0{background:#b91c1c}.mse-cb-1{background:#a16207}.mse-cb-2{background:#1d4ed8}.mse-cb-3{background:#475569}
.mse-cb:active{transform:translateY(3px)}
.mse-cb.mse-bon,.mse-cb.mse-faux{color:var(--mse-encre)}

/* --- le fil qui s'emballe --- */
.mse-fil{background:#020617;border-radius:16px;padding:14px;border:2px solid #1e293b}
.mse-fil-horloge{font-family:"Courier New",monospace;font-size:28px;font-weight:900;color:#f87171;text-align:right}
.mse-fil-liste{display:flex;flex-direction:column;gap:6px;margin:8px 0}
.mse-fil-msg{background:#0f172a;border-left:4px solid #22d3ee;border-radius:8px;padding:7px 10px;font-size:14px;animation:mse-glisse calc(.5s - var(--k) * .04s) ease}

/* --- le cadran de Kristof --- */
.mse-cadran-zone{display:flex;align-items:center;gap:16px;justify-content:center;flex-wrap:wrap;margin-bottom:10px}
.mse-cadran{position:relative;width:200px;height:200px;border-radius:50%;box-shadow:0 10px 30px rgba(0,0,0,.5),inset 0 0 0 4px rgba(255,255,255,.2);transition:background .6s}
.mse-cadran-h{position:absolute;left:50%;top:50%;font-size:10px;color:#fff;font-weight:700;transform:rotate(var(--a)) translateY(-88px) rotate(calc(-1 * var(--a)));margin:-6px 0 0 -10px;text-shadow:0 1px 2px #000}
.mse-cadran-centre{position:absolute;inset:38px;border-radius:50%;background:#0f172a;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:22px}
.mse-cadran-centre b{font-size:14px}.mse-cadran-centre i{font-size:11px;color:#94a3b8}
.mse-cadran-leg{list-style:none;padding:0;margin:0;font-size:13px}
.mse-cadran-leg li{display:flex;gap:8px;align-items:center;margin:4px 0}
.mse-cadran-leg span{width:14px;height:14px;border-radius:50%}

/* --- les calculs --- */
.mse-calcul{background:var(--mse-carte);color:var(--mse-encre);border-radius:16px;padding:14px 16px}
.mse-calcul .pdl-qcm-prog{color:#475569}
.mse-calcul-q{font-size:17px;font-weight:700;line-height:1.45}
.mse-rappel{background:#fffbeb;color:#422006;border-left:5px solid #f59e0b;border-radius:10px;padding:10px 12px;margin:8px 0;line-height:1.45;font-size:15px}
.mse-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.mse-saisie input{font:inherit;font-size:20px;width:160px;padding:8px 10px;border:2px solid #94a3b8;border-radius:10px}
.mse-saisie .pdl-cta.petit{margin:0}
.mse-encore{color:#92400e !important}

/* --- le frigo --- */
.mse-frigo-porte{margin:10px auto;max-width:460px;background:linear-gradient(90deg,#e2e8f0,#f8fafc 40%,#e2e8f0);border-radius:22px;padding:22px;border:3px solid #cbd5e1;position:relative;box-shadow:0 14px 30px rgba(0,0,0,.4)}
.mse-frigo-porte::after{content:"";position:absolute;right:14px;top:30%;width:8px;height:40%;border-radius:9px;background:#94a3b8}
.mse-frigo-info{background:#fef9c3;color:#1c1917;padding:14px;border-radius:6px;transform:rotate(-1.5deg);box-shadow:0 6px 12px rgba(0,0,0,.2);font-weight:700;line-height:1.4;animation:mse-zoom .35s ease;max-width:88%}
.mse-frigo-etiquette{margin-top:12px;display:inline-block;background:#fff;color:#0f172a;border:2px dashed #0284c7;border-radius:8px;padding:6px 10px;font-size:14px}
.mse-frigo-curseur{width:100%;accent-color:#0284c7;margin:10px 0 4px}
.mse-frigo-crans{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:10px}
.mse-frigo-crans button{font:inherit;font-size:12px;border:2px solid #475569;background:rgba(255,255,255,.1);color:#fff;border-radius:9px;padding:6px 4px;cursor:pointer}
.mse-frigo-crans .mse-cran-on{background:#0284c7;border-color:#38bdf8}
.mse-frigo-crans .mse-bon{color:var(--mse-encre)}

/* --- ranger : aimants, prises, dossiers --- */
.mse-pioche{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.mse-piece{font:inherit;font-size:14px;text-align:left;display:flex;gap:6px;align-items:flex-start;max-width:320px;border:0;border-radius:10px;padding:8px 10px;cursor:pointer;
  background:#fff;color:var(--mse-encre);box-shadow:0 3px 0 rgba(0,0,0,.25);line-height:1.35}
.mse-piece.mse-sel{outline:3px solid #fbbf24;transform:translateY(-3px)}
.mse-ranger-aimants .mse-piece{border-radius:16px;background:linear-gradient(180deg,#fff,#e2e8f0)}
.mse-ranger-prises .mse-piece{background:#0f172a;color:#e2e8f0;border:2px solid #22d3ee}
.mse-ranger-dossiers .mse-piece{background:#fef3c7;border-left:6px solid #d97706;border-radius:4px}
.mse-bandes{display:grid;grid-template-columns:repeat(var(--n),1fr);gap:8px}
.mse-bande{min-height:120px;border-radius:14px;padding:8px;background:rgba(255,255,255,.1);border:2px dashed rgba(255,255,255,.3);cursor:pointer;transition:background .2s}
.mse-bande.mse-cible{background:rgba(251,191,36,.18);border-color:#fbbf24}
.mse-bande-t{font-weight:900;font-size:14px;margin-bottom:6px;display:flex;align-items:center;gap:6px}
.mse-ranger-aimants .mse-bande-0{border-color:#a78bfa}.mse-ranger-aimants .mse-bande-1{border-color:#f59e0b}.mse-ranger-aimants .mse-bande-2{border-color:#22d3ee}
.mse-prise{width:16px;height:16px;border-radius:50%;background:#0f172a;box-shadow:inset 0 0 0 3px #22d3ee,inset 0 0 0 6px #0f172a,inset 0 0 0 8px #64748b}
.mse-ranger-prises .mse-bande{background:#111827;border-style:solid;border-color:#334155}
.mse-ranger-dossiers .mse-bande{background:rgba(254,243,199,.12);border-radius:4px 14px 14px 14px}
.mse-colle{font-size:13px;background:rgba(255,255,255,.92);color:var(--mse-encre);border-radius:8px;padding:6px 8px;margin-top:5px;line-height:1.3;border:2px solid transparent}

/* --- la courbe des pubs --- */
.mse-pub-barres{display:grid;grid-template-columns:repeat(12,1fr);gap:4px;align-items:end;height:200px;background:rgba(255,255,255,.06);border-radius:14px;padding:10px 8px 24px}
.mse-pub-barre{font:inherit;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;background:none;border:0;cursor:pointer;color:#cbd5e1;position:relative;padding:0}
.mse-pub-barre span{width:100%;border-radius:6px 6px 0 0;background:linear-gradient(180deg,#fbbf24,#b45309);transition:filter .2s;animation:mse-monte .6s ease both}
@keyframes mse-monte{from{transform:scaleY(0);transform-origin:bottom}}
.mse-pub-barre i{position:absolute;bottom:-20px;font-style:normal;font-size:11px}
.mse-pub-barre.mse-pub-on span{filter:brightness(1.3);box-shadow:0 0 14px #fbbf24}
.mse-pub-barre.mse-pub-vu i{color:#fde68a;font-weight:800}
.mse-mois{background:var(--mse-carte);color:var(--mse-encre);border-radius:12px;padding:10px 12px;margin:12px 0;line-height:1.45;animation:mse-glisse .3s ease}

/* --- les casques --- */
.mse-casques-rangee{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:10px 0}
.mse-casque{font:inherit;position:relative;border:2px solid rgba(255,255,255,.25);background:rgba(255,255,255,.08);color:#fff;border-radius:16px;padding:10px 6px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px}
.mse-casque img{width:64px;height:64px;border-radius:50%;object-fit:cover;filter:grayscale(.7)}
.mse-casque-ico{position:absolute;top:2px;font-size:30px;transition:transform .3s}
.mse-casque i{font-style:normal;font-size:11px;color:#cbd5e1}
.mse-casque.mse-casque-vu img{filter:none}
.mse-casque.mse-casque-on{border-color:#fbbf24;box-shadow:0 0 18px rgba(251,191,36,.5)}
.mse-casque.mse-casque-on .mse-casque-ico{transform:translateY(16px)}
.mse-frise{display:flex;align-items:center;gap:6px;margin:12px 0;font-size:12px;color:#fca5a5}
.mse-frise i{flex:1;height:4px;background:repeating-linear-gradient(90deg,#ef4444 0 8px,transparent 8px 14px)}

/* --- le tableau (écran principal) --- */
.mse-tableau{display:grid;grid-template-columns:1.4fr 1fr;gap:16px}
.mse-tableau-gauche,.mse-tableau-droite{display:flex;flex-direction:column;gap:12px}
.mse-tableau h2{margin:0}
.mse-jauges{background:var(--mse-carte);color:var(--mse-encre);border-radius:14px;padding:10px 12px}
.mse-prochain{background:var(--mse-carte);color:var(--mse-encre);border-radius:18px;padding:16px;border-top:8px solid var(--mse-onair)}
.mse-prochain span{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#b91c1c;font-weight:800}
.mse-prochain h3{margin:4px 0}
.mse-memoire{background:rgba(255,255,255,.1);border-radius:14px;padding:10px 12px;font-size:14px}
.mse-memoire ul,.mse-souvenirs{list-style:none;padding:0;margin:6px 0 0}
.mse-memoire li,.mse-souvenirs li{display:flex;gap:8px;align-items:center;margin:6px 0;line-height:1.35}
.mse-memoire img,.mse-souvenirs img{width:34px;height:34px;border-radius:50%;object-fit:cover;flex:none}

/* --- documents --- */
.mse-doc{color:var(--mse-encre);line-height:1.5}
.mse-doc-tete{display:flex;gap:14px;align-items:center;border-bottom:3px solid #ef4444;padding-bottom:8px;margin-bottom:10px}
.mse-doc-tete h3{margin:0}.mse-doc-tete p{margin:2px 0 0;color:#475569;font-size:14px}
.mse-logo{display:flex;flex-direction:column;align-items:center;background:#0f172a;color:#fff;border-radius:12px;padding:6px 10px;line-height:1.1;min-width:110px}
.mse-logo span{font-size:22px}.mse-logo b{font-size:12px}.mse-logo i{font-size:9px;color:#94a3b8}
.mse-mini-grille{display:grid;grid-template-columns:34px repeat(7,minmax(0,1fr));gap:2px;background:#f1f5f9;border-radius:10px;padding:6px;max-width:440px}
.mse-mini-grille>b{font-size:10px;text-align:center;color:#334155}
.mse-mini-grille>i{font-size:9px;font-style:normal;color:#64748b;display:flex;align-items:center}
.mse-mini-grille>span{aspect-ratio:1.3;border-radius:3px;font-size:10px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px dashed #e2e8f0}
.mse-mini-grille>span.mse-c-urg,.mse-mini-grille>span.mse-c-ct,.mse-mini-grille>span.mse-c-lt,.mse-mini-grille>span.mse-c-hum,.mse-mini-grille>span.mse-c-fixe,.mse-mini-grille>span.mse-c-retard{border:0}
.mse-mini-grille>span.mse-c-urg{background:var(--mse-rouge)}.mse-mini-grille>span.mse-c-ct{background:var(--mse-jaune)}
.mse-mini-grille>span.mse-c-lt{background:var(--mse-bleu)}.mse-mini-grille>span.mse-c-hum{background:var(--mse-vert)}
.mse-mini-grille>span.mse-c-fixe{background:#475569;color:#fff}.mse-mini-grille>span.mse-c-retard{background:#64748b}
.mse-mini-grille>span.mse-ecrase{background:#57534e;filter:saturate(.2)}
.mse-tableau .mse-doc{background:var(--mse-carte);border-radius:14px;padding:10px 12px}
.mse-table{width:100%;border-collapse:collapse;font-size:14px;margin:8px 0}
.mse-table th,.mse-table td{border:1px solid #cbd5e1;padding:5px 7px;text-align:left;vertical-align:top}
.mse-table th{background:#f1f5f9}
.mse-doc-note{font-size:13px;color:#475569;font-style:italic;border-left:4px solid #f59e0b;padding-left:8px}
.mse-badge{max-width:420px;border-radius:16px;overflow:hidden;border:2px solid #0f172a;margin:0 auto}
.mse-badge-bande{background:#0f172a;color:#fff;font-weight:900;font-size:12px;letter-spacing:.08em;padding:8px 12px}
.mse-badge-corps{display:flex;gap:12px;padding:12px;align-items:center;background:linear-gradient(135deg,#fff,#fef3c7)}
.mse-badge-corps img{width:96px;height:120px;object-fit:cover;border-radius:10px}
.mse-badge-corps div{display:flex;flex-direction:column}
.mse-badge-corps b{font-size:22px}.mse-badge-corps small{color:#64748b;margin-top:4px}
.mse-badge-code{background:#ef4444;color:#fff;font-family:"Courier New",monospace;font-weight:900;text-align:right;padding:4px 12px}
.mse-lettre{font-family:Georgia,serif}
.mse-lettre-date{text-align:right;color:#475569}
.mse-signature{font-style:italic;margin-top:14px}
.mse-journal{font-family:Georgia,serif}
.mse-journal-titre{font-size:26px;font-weight:900;border-bottom:4px double #0f172a;padding-bottom:4px;display:flex;flex-direction:column}
.mse-journal-titre i{font-size:12px;font-weight:400}

/* --- bilan, fin, semaine --- */
.mse-bilan,.mse-fin{background:var(--mse-carte);color:var(--mse-encre);border-radius:20px;padding:20px;max-width:720px;margin:20px auto;text-align:center;line-height:1.5;box-shadow:0 20px 50px rgba(0,0,0,.45)}
.mse-bilan-jour{font-weight:800;color:#b91c1c}
.mse-bilan-pct{font-size:56px;font-weight:900;color:#0f172a}
.mse-bilan-pct span{display:block;font-size:22px;color:#f59e0b}
.mse-fin-ico{font-size:64px;animation:mse-chute .8s cubic-bezier(.3,1.5,.6,1) both}
.mse-fin .mse-jauges{text-align:left;box-shadow:none;padding:0}
.mse-souvenirs{text-align:left}
.mse-fin-note b{font-size:20px}
.mse-semaine{list-style:none;padding:0;margin:0}
.mse-semaine li{display:grid;grid-template-columns:30px 1fr auto;gap:2px 10px;align-items:center;padding:8px 0;border-bottom:1px solid #e2e8f0}
.mse-semaine li span{grid-row:span 2;font-size:22px}
.mse-semaine li i{font-size:12px;color:#475569;grid-column:2}
.mse-semaine li .pdl-cta{grid-row:1 / span 2;grid-column:3;margin:0}
.mse-semaine li.mse-fait b{color:#15803d}

/* --- téléphone --- */
@media (max-width:760px){
  .mse-tableau{grid-template-columns:1fr}
  .mse-grille-corps{flex-direction:column}
  .mse-cote{width:100%;flex-direction:row;flex-wrap:wrap}
  .mse-cote>*{flex:1 1 140px}
  .mse-grille{grid-template-columns:30px repeat(7,minmax(0,1fr));padding:6px;gap:2px;width:100%;max-width:none}
  .mse-legende,.mse-regle{display:none}
  .mse-jour{font-size:10px}
  .mse-case{min-height:24px;font-size:12px}
  .mse-heure{font-size:8px}
  .mse-console-boutons,.mse-casques-rangee{grid-template-columns:repeat(2,1fr)}
  .mse-bandes{grid-template-columns:1fr}
  .mse-bande{min-height:70px}
  .mse-lv-regle{grid-template-columns:1fr}
  .mse-frigo-crans{grid-template-columns:repeat(2,1fr)}
  .mse-jauges-mini{order:3;flex-basis:100%}
  .mse-commandes button{min-width:50px;min-height:48px}
  .mse-pub-barres{height:160px}
  .mse-pub-barre i{font-size:9px}
}
@media (prefers-reduced-motion:reduce){
  .mse-titre-jeu span,.mse-titre-jeu b,.mse-fin-ico,.mse-case.mse-ecrase,.mse-case.mse-flash{animation:none}
}
/* ==== mse : fin des styles ==== */
/* ==== msd : debut des styles ====
   LARG LAMAR ! (SDGN 1re, chapitre 13). Préfixe msd-. Une passerelle de
   navigation : bleu nuit et laiton, un hublot où la houle passe et où
   l'horizon roule, des cadrans à aiguille, des voyants, des manettes. */
.msd{position:relative;overflow:hidden;background:#06182b;min-height:min(88vh,880px);color:#e8f1fb;
  --msd-laiton:#d6a64b;--msd-nuit:#0b2540;--msd-carte:rgba(8,28,48,.9)}
.msd-fond{position:absolute;inset:-30px;background-size:cover;background-position:center;filter:blur(5px) saturate(1.1) brightness(.38);transform:scale(1.04)}
.msd>*:not(.msd-fond){position:relative;z-index:1}
.msd .pdl-cta.msd-cta{background:linear-gradient(135deg,#0ea5e9,#0d9488);color:#fff;box-shadow:0 6px 20px rgba(14,165,233,.35)}
.msd .pdl-cta.msd-cta.alt{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.35)}
.msd .pdl-cta.alt{color:#fff}
.msd .pdl-bulle,.msd .pdl-why{color:#10233a}
.msd .pdl-why .pdl-cta{margin-top:10px}
.msd-plein{min-height:min(88vh,880px);display:flex;align-items:center;justify-content:center;padding:16px}
.msd-identite{margin:auto}

/* --- l'accueil --- */
.msd-accueil{max-width:720px;margin:0 auto;padding:44px 18px 40px;text-align:center}
.msd-accueil-sur{display:inline-block;font-size:12px;letter-spacing:.14em;text-transform:uppercase;background:rgba(255,255,255,.12);padding:5px 12px;border-radius:99px}
.msd-logo{margin:18px 0 8px;font-size:clamp(46px,11vw,96px);line-height:1;font-weight:900;font-family:Fraunces,Georgia,serif;
  background:linear-gradient(90deg,#f87171,#fbbf24,#facc15,#4ade80,#38bdf8,#818cf8,#c084fc);-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 3px 0 rgba(0,0,0,.45));animation:msd-tangue 4s ease-in-out infinite}
@keyframes msd-tangue{0%,100%{transform:rotate(-1.5deg) translateY(0)}50%{transform:rotate(1.5deg) translateY(-4px)}}
.msd-accueil-sous{font-size:17px;font-weight:700;color:#fde68a}
.msd-accueil p{line-height:1.55}
.msd-accueil-notions{font-size:14px;color:#bae6fd;background:rgba(255,255,255,.07);border-radius:12px;padding:10px 14px}
.msd-accueil .pdl-accueil-btns{justify-content:center}

/* --- l'embarquement --- */
.msd-embarque{width:100%;max-width:900px;display:flex;flex-direction:column;gap:14px;align-items:center}
.msd-embarque-img{width:100%;aspect-ratio:16/8;border-radius:18px;background-size:cover;background-position:center;box-shadow:0 18px 40px rgba(0,0,0,.45);animation:msd-zoom 14s ease-in-out infinite alternate}
@keyframes msd-zoom{from{transform:scale(1)}to{transform:scale(1.04)}}

/* --- la barre du haut --- */
.msd-barre-haut{display:flex;align-items:center;gap:10px;padding:9px 12px;background:rgba(3,14,26,.82);border-bottom:2px solid rgba(214,166,75,.45);backdrop-filter:blur(6px);flex-wrap:wrap}
.msd-barre-logo{font-weight:900;color:var(--msd-laiton);letter-spacing:.08em}
.msd-mini-cad{display:flex;gap:6px;flex-wrap:wrap}
.msd-mini-cad span{font-size:13px;font-weight:800;padding:3px 8px;border-radius:99px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18)}
.msd-mini-cad .msd-z-vert{color:#86efac}.msd-mini-cad .msd-z-orange{color:#fcd34d}.msd-mini-cad .msd-z-rouge{color:#fca5a5;animation:msd-clig 1.2s infinite}
.msd-outils{margin-left:auto;display:flex;gap:6px}
.msd-outils button{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#fff;border-radius:10px;padding:6px 9px;font-size:16px;cursor:pointer;position:relative}
.msd-outils sup{position:absolute;top:-6px;right:-6px;background:#0ea5e9;border-radius:99px;font-size:10px;padding:1px 5px}
.msd-centre{max-width:1000px;margin:0 auto;padding:14px 14px 60px;animation:pdl-entree .45s ease}

/* --- le hublot : la mer, la houle, le roulis --- */
.msd-hublot{position:relative;border-radius:26px;overflow:hidden;min-height:190px;border:6px solid #8a6a2c;
  box-shadow:inset 0 0 0 3px #e9c46a,inset 0 0 40px rgba(0,0,0,.55),0 14px 34px rgba(0,0,0,.5);background:#0b3b5c}
.msd-hublot-mer{position:absolute;inset:-14%;background-size:cover;background-position:center;animation:msd-roulis 7s ease-in-out infinite}
.msd-hublot-fort .msd-hublot-mer{animation-duration:3.2s;--a:3.2deg}
@keyframes msd-roulis{0%,100%{transform:rotate(calc(var(--a,1.2deg) * -1)) translateY(0)}50%{transform:rotate(var(--a,1.2deg)) translateY(-8px)}}
.msd-houle{position:absolute;left:0;right:0;bottom:0;height:42%;pointer-events:none;overflow:hidden}
.msd-houle i{position:absolute;left:-50%;width:200%;height:60px;bottom:calc(var(--b,0) * 1px);border-radius:45%;
  background:radial-gradient(ellipse at 50% 0,rgba(255,255,255,.22),rgba(255,255,255,0) 60%);animation:msd-vague 6s linear infinite;opacity:.8}
.msd-houle i:nth-child(1){--b:-20;animation-duration:7s}
.msd-houle i:nth-child(2){--b:6;animation-duration:9s;animation-direction:reverse;opacity:.5}
.msd-houle i:nth-child(3){--b:30;animation-duration:11s;opacity:.35}
.msd-hublot-fort .msd-houle i{animation-duration:2.6s;height:90px}
@keyframes msd-vague{from{transform:translateX(0) translateY(0)}50%{transform:translateX(12%) translateY(-6px)}to{transform:translateX(25%) translateY(0)}}
.msd-hublot-reflet{position:absolute;inset:0;background:linear-gradient(125deg,rgba(255,255,255,.22),rgba(255,255,255,0) 30%,rgba(255,255,255,0) 70%,rgba(255,255,255,.08));pointer-events:none}
.msd-hublot>*:not(.msd-hublot-mer):not(.msd-houle):not(.msd-hublot-reflet){z-index:2}
.msd-hublot-titre{position:absolute;left:14px;bottom:12px;background:rgba(3,14,26,.72);border-radius:12px;padding:8px 12px;max-width:calc(100% - 28px)}
.msd-hublot-titre i{display:block;font-style:normal;font-size:12px;color:#bae6fd}
.msd-hublot-titre b{font-size:18px}
.msd-pont .msd-hublot{min-height:230px}
@media (prefers-reduced-motion:reduce){.msd-hublot-mer,.msd-houle i,.msd-logo{animation:none}}

/* --- le pupitre : cadrans, cap, voyants --- */
.msd-pupitre{margin-top:14px;background:linear-gradient(180deg,#132c46,#0a1d31);border:2px solid rgba(214,166,75,.55);border-radius:20px;padding:12px;box-shadow:inset 0 2px 0 rgba(255,255,255,.08),0 10px 26px rgba(0,0,0,.45)}
.msd-cadrans{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.msd-cadran{background:radial-gradient(circle at 50% 30%,#1e3a5f,#091827);border-radius:16px;padding:8px 8px 10px;text-align:center;border:2px solid #3b5878;box-shadow:inset 0 0 16px rgba(0,0,0,.6)}
.msd-cadran svg{width:100%;max-width:200px;display:block;margin:0 auto}
.msd-aiguille{transform-origin:50px 52px;transform-box:view-box;transition:transform 1.4s cubic-bezier(.3,1.6,.5,1)}
.msd-cadran-t{font-weight:800;font-size:13px;color:#e2e8f0}
.msd-cadran-v b{font-size:24px;font-family:"Courier New",ui-monospace,monospace;margin-right:6px}
.msd-cadran-v i{font-style:normal;font-size:12px}
.msd-z-vert .msd-cadran-v{color:#86efac}.msd-z-orange .msd-cadran-v{color:#fcd34d}.msd-z-rouge .msd-cadran-v{color:#fca5a5}
.msd-cadran.msd-z-rouge{border-color:#dc2626;animation:msd-alarme 1.3s infinite}
@keyframes msd-alarme{50%{box-shadow:inset 0 0 16px rgba(0,0,0,.6),0 0 18px rgba(220,38,38,.7)}}
.msd-cadran-petit svg{max-width:130px}
.msd-cadran-petit .msd-cadran-v b{font-size:20px}
.msd-cap{display:flex;align-items:center;gap:12px;margin-top:10px;background:rgba(0,0,0,.28);border-radius:14px;padding:8px 12px;border:1px solid rgba(255,255,255,.12)}
.msd-cap b{display:block;font-size:16px}
.msd-cap span{font-size:13px;color:#cbd5e1}
.msd-cap.msd-z-rouge b{color:#fca5a5}.msd-cap.msd-z-orange b{color:#fcd34d}.msd-cap.msd-z-vert b{color:#86efac}
.msd-cap-rose{width:54px;height:54px;flex-shrink:0;border-radius:50%;position:relative;border:3px solid var(--msd-laiton);
  background:conic-gradient(from -90deg at 50% 50%,#dc2626 0 72deg,#f59e0b 72deg 108deg,#16a34a 108deg 180deg,#0b1d31 180deg 360deg)}
.msd-cap-rose i{position:absolute;left:50%;top:50%;width:3px;height:24px;margin-left:-1.5px;margin-top:-24px;background:#fff;border-radius:2px;transform-origin:50% 100%;transition:transform 1.4s cubic-bezier(.3,1.6,.5,1)}
.msd-voyants{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:6px;margin-top:10px}
.msd-voyant{display:flex;align-items:center;gap:8px;font-size:12.5px;background:rgba(255,255,255,.05);border-radius:9px;padding:5px 8px}
.msd-voyant i{width:12px;height:12px;border-radius:50%;flex-shrink:0;background:#64748b}
.msd-v-vert i{background:#22c55e;box-shadow:0 0 8px #22c55e}
.msd-v-orange i{background:#f59e0b;box-shadow:0 0 8px #f59e0b}
.msd-v-rouge i{background:#ef4444;box-shadow:0 0 10px #ef4444;animation:msd-clig 1s infinite}
@keyframes msd-clig{50%{opacity:.35}}

/* --- la passerelle (hub) --- */
.msd-pont{display:flex;flex-direction:column;gap:12px}
.msd-prochaine{display:flex;align-items:center;gap:12px;background:var(--msd-carte);border:1px solid rgba(214,166,75,.5);border-radius:16px;padding:12px 14px;flex-wrap:wrap}
.msd-prochaine>span{font-size:36px}
.msd-prochaine>div{flex:1;min-width:180px}
.msd-prochaine i{display:block;font-style:normal;font-size:12px;color:#bae6fd}
.msd-prochaine b{display:block;font-size:18px}
.msd-prochaine em{display:block;font-style:normal;font-size:13px;color:#cbd5e1}
.msd-souvenirs{background:rgba(255,248,230,.95);color:#3b2f1a;border-radius:12px;padding:10px 14px;font-size:14px;border-left:5px solid var(--msd-laiton)}
.msd-souvenirs ul{margin:6px 0 0;padding-left:18px}

/* --- une traversée --- */
.msd-trav{display:flex;flex-direction:column;gap:12px}
.msd-trav .msd-hublot{min-height:130px}
.msd-trav-tete{position:relative;display:flex;flex-direction:column;gap:2px;padding:12px 14px;background:linear-gradient(90deg,rgba(3,14,26,.8),rgba(3,14,26,.2))}
.msd-trav-tete button{align-self:flex-start;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.3);color:#fff;border-radius:8px;padding:3px 9px;cursor:pointer;font-size:13px;margin-bottom:4px}
.msd-trav-tete b{font-size:18px}
.msd-trav-tete i{font-style:normal;font-size:13px;color:#bae6fd}
.msd-panneau{background:rgba(6,24,43,.86);border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:14px}
.msd-etape{display:flex;flex-direction:column;gap:12px}
.msd-etape-t,.msd-ex-titre{font-weight:900;font-size:17px;color:var(--msd-laiton)}
.msd-prog{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#93c5fd}
.msd-scene{display:flex;flex-direction:column;gap:10px}
.msd-consigne{background:rgba(255,255,255,.96);color:#10233a;border-radius:12px;padding:10px 14px;font-size:15px;line-height:1.45;margin:0}
.msd-consigne i{color:#475569;font-size:13px}
.msd-rappel{background:#fff7e0;color:#3b2f1a;border:1px solid #f0d58c;border-radius:12px;padding:9px 12px;font-size:14px;line-height:1.45}

/* --- le carnet de la capitaine --- */
.msd-carnet{background:#fdf8ec;color:#2b2416;border-radius:16px;padding:14px;box-shadow:0 10px 26px rgba(0,0,0,.35);display:flex;flex-direction:column;gap:10px;
  background-image:repeating-linear-gradient(180deg,transparent 0 27px,rgba(59,130,246,.12) 27px 28px)}
.msd-carnet-tete{display:flex;align-items:center;gap:10px}
.msd-carnet-tete img{width:52px;height:52px;border-radius:50%;object-fit:cover;border:2px solid var(--msd-laiton)}
.msd-carnet-tete>div{flex:1}
.msd-carnet-tete i{display:block;font-style:normal;font-size:12px;color:#7c5c1e}
.msd-carnet-tete b{font-size:19px;font-family:Fraunces,Georgia,serif}
.msd-carnet-pages{display:flex;flex-direction:column;gap:10px}
.msd-page{background:#fff;border-radius:12px;padding:10px 14px;border-left:5px solid #0ea5e9;box-shadow:0 3px 10px rgba(0,0,0,.08)}
.msd-page-neuve{animation:msd-deplie .5s ease}
@keyframes msd-deplie{from{transform:perspective(600px) rotateX(-70deg);transform-origin:top;opacity:0}to{transform:none;opacity:1}}
.msd-page h4{margin:0 0 4px;font-size:18px;color:#0c4a6e}
.msd-page p{margin:4px 0;line-height:1.5;font-size:15px}
.msd-page-ici{color:#065f46}
.msd-page-def{background:#eff6ff;border-radius:8px;padding:6px 10px;font-size:14px!important}
.msd .msd-carnet .pdl-cta.alt{color:#0c4a6e;border-color:#0c4a6e;background:#e0f2fe}

/* --- QCM, calculs, cases --- */
.msd-opts{display:flex;flex-direction:column;gap:8px}
.msd-opt{display:flex;gap:10px;align-items:center;text-align:left;font:inherit;font-size:15px;background:#f8fafc;color:#10233a;border:2px solid #cbd5e1;border-radius:12px;padding:10px 12px;cursor:pointer;transition:all .2s}
.msd-opt:hover:not(:disabled){border-color:#0ea5e9;transform:translateX(3px)}
.msd-opt-l{width:28px;height:28px;flex-shrink:0;border-radius:50%;background:#0c4a6e;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900}
.msd-opt.msd-bon{background:#dcfce7;border-color:#16a34a}
.msd-opt.msd-faux{background:#fee2e2;border-color:#dc2626}
.msd-opt.msd-eteint{opacity:.55}
.msd-opt.msd-coche{border-color:#0ea5e9;background:#e0f2fe}
.msd-calc{display:flex;flex-direction:column;gap:10px}
.msd-calc-q{font-weight:800;font-size:16px;margin:0}
.msd-calc-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.msd-calc-saisie input{font:inherit;font-size:18px;width:150px;padding:8px 10px;border-radius:10px;border:2px solid #0ea5e9;background:#fff;color:#10233a}
.msd-table{width:100%;border-collapse:collapse;background:#fff;color:#10233a;border-radius:12px;overflow:hidden;font-size:14px}
.msd-table th{background:#0c4a6e;color:#fff;text-align:left;padding:7px 8px;font-size:13px}
.msd-table td{padding:7px 8px;border-top:1px solid #e2e8f0}
.msd-table .msd-vide td{color:#94a3b8;font-style:italic}
.msd-ligne-choisie td{background:#e0f2fe;font-weight:800}
.msd-choix{display:flex;gap:10px;flex-wrap:wrap}
.msd-choix-b{flex:1;min-width:110px;font:inherit;font-size:18px;padding:14px;border-radius:14px;border:2px solid var(--msd-laiton);background:linear-gradient(180deg,#1e3a5f,#0b1d31);color:#fff;cursor:pointer}
.msd-choix-b:hover{transform:translateY(-3px);box-shadow:0 8px 18px rgba(214,166,75,.35)}

/* --- T1 : la manette des gaz --- */
.msd-gaz{display:flex;flex-direction:column;gap:12px}
.msd-gaz-poste{display:flex;gap:14px;align-items:stretch;flex-wrap:wrap}
.msd-manette-gaz{position:relative;background:linear-gradient(180deg,#1f2937,#0b1220);border:2px solid var(--msd-laiton);border-radius:14px;padding:10px;width:150px}
.msd-manette-rail{display:flex;flex-direction:column;gap:8px}
.msd-cran{font:inherit;font-size:14px;font-weight:800;padding:10px 6px;border-radius:10px;border:2px solid #475569;background:#111827;color:#cbd5e1;cursor:pointer}
.msd-cran.on{border-color:#38bdf8;background:#0c4a6e;color:#fff;box-shadow:0 0 12px rgba(56,189,248,.6)}
.msd-cran.fait{color:#86efac}
.msd-manette-poignee{display:none}
.msd-route{flex:1;min-width:240px;display:flex;flex-direction:column;gap:8px}
.msd-route-cote{display:flex;justify-content:space-between;font-size:13px;font-weight:800;color:#bae6fd}
.msd-route-mer{position:relative;height:54px;border-radius:12px;background:linear-gradient(180deg,#0ea5e9,#075985);overflow:hidden;
  background-image:repeating-linear-gradient(90deg,rgba(255,255,255,.18) 0 2px,transparent 2px 40px),linear-gradient(180deg,#0ea5e9,#075985)}
.msd-bato{position:absolute;top:8px;font-style:normal;font-size:30px;transition:left .1s linear;animation:msd-tangue 1.6s ease-in-out infinite}
.msd-compteurs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.msd-compteurs div{background:#020617;border:1px solid #334155;border-radius:10px;padding:6px 10px}
.msd-compteurs i{display:block;font-style:normal;font-size:12px;color:#94a3b8}
.msd-compteurs b{font-family:"Courier New",ui-monospace,monospace;font-size:22px;color:#fcd34d}

/* --- T2 : le câblage --- */
.msd-cablage{display:flex;flex-direction:column;gap:12px}
.msd-fils{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.msd-fil{font:inherit;font-size:14px;display:flex;align-items:center;gap:8px;padding:9px 12px;border-radius:99px;border:2px solid #475569;background:#0f172a;color:#e2e8f0;cursor:pointer}
.msd-fil i{width:12px;height:12px;border-radius:50%;background:#64748b}
.msd-fil.sel{border-color:#facc15;box-shadow:0 0 14px rgba(250,204,21,.55);transform:translateY(-3px)}
.msd-fil.sel i{background:#facc15}
.msd-bornes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.msd-borne{background:rgba(255,255,255,.06);border:2px dashed color-mix(in srgb,var(--c) 70%,#fff);border-radius:14px;padding:8px;min-height:140px;display:flex;flex-direction:column;gap:6px;cursor:pointer}
.msd-borne.cible{animation:msd-clig 1.3s infinite;background:color-mix(in srgb,var(--c) 18%,transparent)}
.msd-borne-t{font-weight:900;text-align:center;background:var(--c);color:#0b1220;border-radius:9px;padding:5px}
.msd-borne-t i{display:block;font-style:normal;font-weight:600;font-size:11.5px}
.msd-branche,.msd-place{font:inherit;font-size:13px;background:#0b1220;border:1px solid #334155;color:#e2e8f0;border-radius:9px;padding:6px 8px;text-align:left}
.msd-allume{border-color:#22c55e!important;box-shadow:0 0 10px rgba(34,197,94,.55)}
.msd-etincelle{border-color:#ef4444!important;animation:msd-zap .3s 3}
@keyframes msd-zap{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}

/* --- T3 : l'atelier du pupitre --- */
.msd-atelier{display:flex;flex-direction:column;gap:12px}
.msd-vitrine{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px}
.msd-carte-v{font:inherit;font-size:13.5px;display:flex;gap:8px;align-items:center;text-align:left;padding:9px 10px;border-radius:12px;border:2px solid #475569;background:#f8fafc;color:#10233a;cursor:pointer}
.msd-carte-v i{width:12px;height:12px;border-radius:50%;background:#94a3b8;flex-shrink:0}
.msd-carte-v.sel{border-color:#0ea5e9;box-shadow:0 0 0 3px rgba(14,165,233,.35);transform:translateY(-2px)}
.msd-places{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;background:linear-gradient(180deg,#132c46,#0a1d31);border:2px solid var(--msd-laiton);border-radius:16px;padding:10px}
.msd-places-groupe{display:flex;flex-direction:column;gap:6px}
.msd-places-groupe>b{color:var(--c);font-size:13px;text-align:center}
.msd-place{cursor:pointer;min-height:44px;border-style:dashed}
.msd-place.pleine{border-style:solid;border-color:var(--c)}
.msd-place.cible{animation:msd-clig 1.3s infinite;border-color:#facc15}

/* --- T4 : le relevé --- */
.msd-releve{display:flex;flex-direction:column;gap:10px}
.msd-regle{background:#e0f2fe;color:#0c4a6e;border-radius:12px;padding:9px 12px;font-size:13.5px;line-height:1.45;border-left:5px solid #0284c7}
.msd-lampe{font:inherit;font-size:12px;font-weight:800;min-width:76px;padding:5px 8px;border-radius:99px;border:2px solid #94a3b8;background:#e2e8f0;color:#334155;cursor:pointer;display:inline-block;text-align:center}
.msd-l-vert{background:#22c55e;border-color:#15803d;color:#fff;box-shadow:0 0 10px rgba(34,197,94,.6)}
.msd-l-orange{background:#f59e0b;border-color:#b45309;color:#fff;box-shadow:0 0 10px rgba(245,158,11,.6)}
.msd-l-rouge{background:#ef4444;border-color:#b91c1c;color:#fff;box-shadow:0 0 10px rgba(239,68,68,.6)}
.msd-table-releve td:nth-child(2),.msd-table-releve td:nth-child(3){white-space:nowrap}
.msd-lampe.ok::after{content:" ✓"}
.msd-lampe.ko::after{content:" ✗"}

/* --- T5 : journal, alerte, leviers --- */
.msd-alerte{border-radius:12px;padding:10px 14px;font-weight:700;line-height:1.45}
.msd-alerte-ok{background:#fee2e2;color:#7f1d1d;border:2px solid #ef4444;animation:msd-alarme2 1.2s 4}
.msd-alerte-ko{background:#1f2937;color:#e5e7eb;border:2px dashed #6b7280}
@keyframes msd-alarme2{50%{box-shadow:0 0 18px rgba(239,68,68,.7)}}
.msd-journal{display:flex;flex-direction:column;gap:10px}
.msd-journal-pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px}
.msd-jpage{font:inherit;text-align:left;background:#fdf8ec;color:#2b2416;border:0;border-radius:10px;padding:10px;min-height:96px;cursor:pointer;box-shadow:0 4px 10px rgba(0,0,0,.25);display:flex;flex-direction:column;gap:6px;transition:transform .3s}
.msd-jpage i{color:#94a3b8;font-size:13px}
.msd-jpage:not(.lu){background:#e7dcc0;transform:rotate(-1deg)}
.msd-jpage.lu{animation:msd-deplie .4s ease}
.msd-leviers{display:flex;flex-direction:column;gap:12px}
.msd-leviers-rangee{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.msd-levier{font:inherit;font-size:14px;text-align:left;display:flex;flex-direction:column;gap:6px;align-items:flex-start;background:linear-gradient(180deg,#1e293b,#0b1220);color:#e2e8f0;border:2px solid #475569;border-radius:14px;padding:10px;cursor:pointer}
.msd-levier>b{background:var(--msd-laiton);color:#0b1220;border-radius:50%;width:26px;height:26px;display:flex;align-items:center;justify-content:center}
.msd-levier-manche{width:100%;height:34px;position:relative}
.msd-levier-manche i{position:absolute;left:50%;bottom:0;width:8px;height:32px;margin-left:-4px;background:linear-gradient(90deg,#94a3b8,#e2e8f0);border-radius:4px;transform-origin:50% 100%;transform:rotate(-30deg);transition:transform .5s cubic-bezier(.3,1.6,.5,1)}
.msd-levier-manche i::before{content:"";position:absolute;top:-10px;left:-6px;width:20px;height:20px;border-radius:50%;background:#dc2626}
.msd-levier.tire .msd-levier-manche i{transform:rotate(30deg)}
.msd-levier.tire{border-color:#facc15}
.msd-levier.msd-bon{border-color:#22c55e;box-shadow:0 0 14px rgba(34,197,94,.45)}
.msd-suite{background:#fff;color:#10233a;border-radius:12px;padding:12px 14px}
.msd-suite b{font-size:18px;color:#0c4a6e}

/* --- T6 : tenir la barre --- */
.msd-vague-img{height:160px;border-radius:14px;background-size:cover;background-position:center;animation:msd-zoom 10s ease-in-out infinite alternate}
.msd-barre{display:flex;flex-direction:column;gap:12px}
.msd-barre-aig{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;position:sticky;top:0;z-index:3;background:rgba(6,24,43,.95);padding:6px;border-radius:14px}
.msd-manettes{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.msd-manette{background:linear-gradient(180deg,#1f2937,#0b1220);border:2px solid var(--msd-laiton);border-radius:14px;padding:8px;display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center}
.msd-manette>b{font-size:13.5px}
.msd-manette>i{font-style:normal;font-size:11.5px;color:#94a3b8;line-height:1.3}
.msd-manette-corps{display:flex;flex-direction:column;gap:4px;align-items:center;width:100%}
.msd-manette-corps button{font:inherit;width:100%;max-width:110px;padding:6px;border-radius:9px;border:1px solid #64748b;background:#334155;color:#fff;font-size:16px;cursor:pointer}
.msd-manette-corps button:disabled{opacity:.35;cursor:default}
.msd-manette-fente{display:flex;flex-direction:column;gap:3px;width:100%;max-width:110px}
.msd-manette-fente span{font-size:12.5px;padding:4px;border-radius:7px;background:#020617;color:#64748b;border:1px solid #1e293b}
.msd-manette-fente span.on{background:#0c4a6e;color:#fff;border-color:#38bdf8;font-weight:800;box-shadow:0 0 10px rgba(56,189,248,.5)}
.msd-souffle{background:#fff7e0;color:#3b2f1a;border-radius:12px;padding:9px 12px;border-left:5px solid var(--msd-laiton)}

/* --- T7 : le tampon --- */
.msd-tampon{display:flex;flex-direction:column;gap:10px}
.msd-rapport{background:#fff;color:#10233a;border-radius:8px;padding:12px 14px;box-shadow:0 10px 24px rgba(0,0,0,.35);font-family:Georgia,serif}
.msd-rapport-tete{font-weight:800;border-bottom:2px solid #0c4a6e;padding-bottom:6px;margin-bottom:6px;font-family:inherit;font-size:14px}
.msd-ligne-r{position:relative;padding:7px 4px;border-bottom:1px dashed #cbd5e1;min-height:30px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.msd-ligne-r.active{background:#fef9c3}
.msd-coup{font-style:normal;font-family:"Courier New",monospace;font-weight:900;font-size:14px;padding:2px 8px;border:3px solid;border-radius:6px;transform:rotate(-8deg);animation:msd-tampon .35s ease;flex-shrink:0}
.msd-coup-ok{color:#15803d;border-color:#15803d}
.msd-coup-faux{color:#b91c1c;border-color:#b91c1c}
@keyframes msd-tampon{from{transform:scale(2.4) rotate(-8deg);opacity:0}to{transform:scale(1) rotate(-8deg);opacity:1}}
.msd .msd-t-ok{background:#15803d;color:#fff}
.msd .msd-t-faux{background:#b91c1c;color:#fff}

/* --- T8 : la passerelle de débarquement --- */
.msd-passerelle{display:flex;flex-direction:column;gap:12px}
.msd-jetons{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.msd-jeton{font:inherit;font-size:13.5px;max-width:300px;text-align:left;padding:9px 12px;border-radius:12px;border:2px solid #f59e0b;background:#fffbeb;color:#3b2f1a;cursor:pointer;box-shadow:0 4px 10px rgba(0,0,0,.25)}
.msd-jeton.sel{transform:translateY(-4px) scale(1.03);box-shadow:0 0 0 3px #f59e0b,0 10px 20px rgba(0,0,0,.35)}
.msd-quai{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px;background:repeating-linear-gradient(90deg,#57534e 0 18px,#44403c 18px 20px);padding:10px;border-radius:14px}
.msd-pp{font:inherit;text-align:left;display:flex;flex-direction:column;gap:4px;background:rgba(15,23,42,.92);color:#e2e8f0;border:2px solid #475569;border-radius:12px;padding:9px;cursor:pointer;min-height:70px}
.msd-pp i{font-style:normal;font-size:12px;color:#94a3b8}
.msd-pp span{font-size:13px;color:#86efac}
.msd-pp.cible{border-color:#f59e0b}
.msd-pp.servie{border-color:#22c55e;background:rgba(6,78,59,.9)}

/* --- fin de traversée, fin de saison, documents --- */
.msd-bilan-t{text-align:center;display:flex;flex-direction:column;gap:10px;align-items:stretch}
.msd-bilan-sur{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#93c5fd}
.msd-bilan-t h2{margin:0;font-family:Fraunces,Georgia,serif}
.msd-bilan-pct{font-size:18px}
.msd-effets{background:rgba(255,255,255,.95);color:#10233a;border-radius:12px;padding:10px 14px;text-align:left}
.msd-effets ul{margin:6px 0 0;padding-left:18px}
.msd-verdict{display:flex;flex-direction:column;gap:12px}
.msd-verdict-fin{text-align:center;background:var(--msd-carte);border-radius:18px;padding:14px;overflow:hidden;position:relative}
.msd-fin-img{height:220px;border-radius:14px;background-size:cover;background-position:center}
.msd-verdict-ico{font-size:54px;margin-top:6px}
.msd-verdict-fin h2{margin:0;font-family:Fraunces,Georgia,serif;font-size:30px}
.msd-fin-cap{font-weight:800;color:#bae6fd}
.msd-verdict-tag{font-size:14px}
.msd-bilan{color:#10233a}
.msd-carnet-liste{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.msd-carnet-liste li{display:grid;grid-template-columns:32px 1fr auto;gap:2px 10px;align-items:center;background:#f8fafc;border-radius:10px;padding:8px 10px}
.msd-carnet-liste li>span{grid-row:span 2;font-size:22px}
.msd-carnet-liste li>i{font-style:normal;font-size:12.5px;color:#475569;grid-column:2}
.msd-carnet-liste li>button{grid-row:1/span 2;grid-column:3}
.msd-fait{border-left:4px solid #16a34a}
.msd-doc{color:#10233a;font-size:14.5px;line-height:1.5}
.msd-doc-tete{display:flex;gap:10px;align-items:center;border-bottom:3px solid #0c4a6e;padding-bottom:8px;margin-bottom:10px;flex-wrap:wrap}
.msd-doc-logo{font-size:26px}
.msd-doc-tete b{display:block;letter-spacing:.1em}
.msd-doc-tete i{display:block;font-size:12px;color:#475569}
.msd-doc-titre{margin-left:auto;text-align:right}
.msd-doc-pied{font-style:italic;color:#475569;border-top:1px solid #e2e8f0;padding-top:6px}
.msd-doc-groupe{border-left:5px solid var(--c);padding-left:10px;margin:8px 0}
.msd-doc-groupe ul{margin:4px 0;padding-left:18px}
.msd-doc-rapport{padding-left:18px}
.msd-doc-rapport li i{color:#15803d;font-style:normal;font-weight:700}
.msd-doc-rapport li em{color:#b91c1c}
.msd-badge{border-radius:14px;overflow:hidden;border:2px solid #0c4a6e;max-width:420px;margin:0 auto;background:#fff}
.msd-badge-bande{background:linear-gradient(90deg,#0c4a6e,#0d9488);color:#fff;font-weight:800;font-size:12px;letter-spacing:.08em;padding:7px 10px}
.msd-badge-corps{display:flex;gap:12px;padding:12px;align-items:center}
.msd-badge-corps img{width:92px;height:118px;object-fit:cover;border-radius:10px}
.msd-badge-corps b{display:block;font-size:22px}
.msd-badge-corps span{display:block;font-weight:700;color:#0c4a6e}
.msd-badge-corps i{display:block;font-size:12.5px;color:#475569;font-style:normal}
.msd-gazette{font-family:Georgia,serif}
.msd-gazette-titre{text-align:center;font-weight:900;font-size:26px;letter-spacing:.06em;border-bottom:4px double #10233a;padding-bottom:4px;margin-bottom:8px}
.msd-gazette-titre i{display:block;font-size:12px;font-weight:400;letter-spacing:0}
.msd-gazette h3{font-size:21px;margin:6px 0}

/* --- téléphone --- */
@media (max-width:640px){
  .msd-centre{padding:10px 8px 50px}
  .msd-panneau{padding:10px}
  .msd-cadrans,.msd-barre-aig{gap:5px}
  .msd-cadran{padding:5px 3px 6px}
  .msd-cadran-t{font-size:11px}
  .msd-cadran-v b{font-size:18px}
  .msd-cadran-v i{display:block;font-size:10.5px}
  .msd-bornes,.msd-places{grid-template-columns:1fr}
  .msd-manettes{grid-template-columns:repeat(2,1fr)}
  .msd-manette-gaz{width:100%}
  .msd-manette-rail{flex-direction:row}
  .msd-manette-rail .msd-cran{flex:1}
  .msd-hublot{border-width:4px;border-radius:18px}
  .msd-trav-tete b{font-size:15.5px}
  .msd-voyants{grid-template-columns:1fr}
  .msd-table{font-size:12.5px}
  .msd-table th,.msd-table td{padding:5px}
  .msd-mini-cad span{font-size:11.5px;padding:2px 6px}
  .msd-doc-titre{margin-left:0;text-align:left}
}
/* ==== msd : fin des styles ==== */
/* ==== mko : debut des styles ====
   « Rakomod — Lé kont lé bon ? » — chronique d'atelier sur l'établi.
   Préfixe mko-. Tout est dessiné en CSS : bois de l'établi, tapis vert,
   calendrier mural, coffre, fils, balance, scie, pont, armoires. */
.mko{background:#3b2a1d;color:#1f1a14;font-size:16px;line-height:1.45}
.mko .pdl-cta{background:linear-gradient(135deg,#f59e0b,#ea580c);color:#fff}
.mko .pdl-cta.alt{background:#fff;color:#1f1a14}
.mko-corps{display:flex;flex-direction:column;min-height:min(88vh,860px)}
.mko-centre{flex:1;padding:14px;animation:pdl-entree .45s ease;min-width:0}
.mko-barre-haut{display:flex;align-items:center;gap:12px;padding:8px 14px;background:linear-gradient(#2a1d13,#3b2a1d);color:#fde7c7;flex-wrap:wrap}
.mko-moi{display:flex;align-items:center;gap:8px}
.mko-moi b{color:#fff}.mko-moi i{font-size:12px;opacity:.75;font-style:normal}
.mko-titre-court{flex:1;text-align:center;font-family:Fraunces,Georgia,serif;font-size:17px;letter-spacing:.02em}
.mko-outils{display:flex;gap:6px}
.mko-outils button{background:rgba(255,255,255,.12);border:0;color:#fff;border-radius:10px;width:40px;height:40px;font-size:18px;cursor:pointer}
.mko-outils button:hover{background:rgba(255,255,255,.25)}

/* --- visages et bulles --- */
.mko-visage{position:relative;display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff7ed,#fed7aa);border:3px solid #fff;box-shadow:0 4px 12px rgba(0,0,0,.25);overflow:hidden;flex:0 0 auto}
.mko-visage i{font-style:normal;font-size:38px;line-height:1}
.mko-visage img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.mko-visage-petit{width:38px;height:38px;border-width:2px}.mko-visage-petit i{font-size:22px}
.mko-bulle{display:flex;gap:12px;align-items:flex-start;background:#fffdf8;border-radius:18px;padding:12px 14px;box-shadow:0 10px 30px rgba(0,0,0,.25);animation:pdl-bulle .4s ease;max-width:760px;margin:8px auto}
.mko-bulle-d{flex-direction:row-reverse;background:#ecfeff}
.mko-bulle-corps{flex:1;min-width:0}
.mko-bulle-nom{font-weight:800;color:#9a3412;display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.mko-bulle-nom span{font-weight:500;font-size:12px;color:#78716c}
.mko-bulle p{margin:6px 0 0;font-size:17px}
.mko-suite{margin-top:10px;margin-left:auto;display:block;border:0;border-radius:10px;padding:8px 14px;font:inherit;font-weight:700;background:#e7e5e4;color:#57534e;cursor:pointer;transition:all .2s}
.mko-suite.mko-pret{background:#ea580c;color:#fff;animation:pdl-pulse 1.8s infinite}
.mko-recit{background:rgba(255,253,248,.95);border-left:6px solid #ea580c;border-radius:12px;padding:14px 16px;max-width:760px;margin:8px auto;font-size:17px;font-style:italic;box-shadow:0 10px 30px rgba(0,0,0,.2)}
.mko-recit p{margin:0 0 8px}
.mko-ht{font-style:normal;background:#fef3c7;border-radius:10px;padding:8px 10px}
.mko-notif{max-width:520px;margin:8px auto;background:#111827;color:#f9fafb;border-radius:20px;padding:12px 16px;box-shadow:0 14px 34px rgba(0,0,0,.4);animation:mko-notif .5s cubic-bezier(.2,1.4,.4,1)}
.mko-notif-tete{font-size:13px;font-weight:700;color:#93c5fd}
.mko-notif-vocal{background:#7f1d1d}.mko-notif-vocal .mko-notif-tete{color:#fecaca}
.mko-notif-courriel{background:#fff;color:#111827;border:2px solid #2563eb}.mko-notif-courriel .mko-notif-tete{color:#2563eb}
.mko-notif p{margin:6px 0 0;font-size:16px}
@keyframes mko-notif{from{transform:translateY(-30px) scale(.9);opacity:0}}
.mko-dial{width:100%}

/* --- les lieux (dessinés en CSS ; la photo se pose par-dessus si elle existe) --- */
.mko-lieu{position:relative;border-radius:16px;overflow:hidden;min-height:min(56vh,520px);display:flex;isolation:isolate}
.mko-lieu-img{position:absolute;inset:0;background-size:cover;background-position:center;z-index:0;animation:pdl-kb 22s ease-in-out infinite alternate}
.mko-lieu-deco{position:absolute;inset:0;z-index:0;pointer-events:none}
.mko-lieu-contenu{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:10px;padding:16px;width:100%}
.mko-lieu-voile{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(rgba(0,0,0,.08) 0%,rgba(0,0,0,.12) 45%,rgba(0,0,0,.5) 100%)}
.mko-lieu-photo{background:#1c1917}
.mko-photo{display:block;max-width:100%}
.mko-accorde-photo{width:100%;max-height:320px;object-fit:cover;object-position:center 30%;border-radius:12px;margin:0 0 10px;box-shadow:0 8px 22px rgba(0,0,0,.25);animation:pdl-bulle .5s ease}
.mko-lieu-rue{background:linear-gradient(#fdba74 0%,#fca5a5 35%,#a5b4fc 70%,#475569 100%)}
.mko-lieu-rue .mko-lieu-deco{background:linear-gradient(90deg,#16a34a 0 8%,transparent 8% 14%,#f59e0b 14% 30%,transparent 30% 34%,#0ea5e9 34% 52%,transparent 52% 58%,#ec4899 58% 74%,transparent 74% 80%,#84cc16 80% 100%) bottom/100% 46% no-repeat,
  repeating-linear-gradient(90deg,transparent 0 22px,rgba(255,255,255,.35) 22px 26px) bottom/100% 4% no-repeat,linear-gradient(#64748b,#334155) bottom/100% 10% no-repeat}
.mko-lieu-atelier{background:linear-gradient(#fef3c7,#fde68a 40%,#d6b88c 41%,#b08968)}
.mko-lieu-atelier .mko-lieu-deco{background:repeating-linear-gradient(90deg,rgba(120,72,30,.12) 0 2px,transparent 2px 90px) top/100% 41% no-repeat,radial-gradient(circle at 80% 18%,rgba(255,255,255,.8) 0 6%,transparent 7%),linear-gradient(90deg,transparent 60%,rgba(14,165,233,.18) 60% 92%,transparent 92%) top/100% 41% no-repeat}
.mko-lieu-kiosque{background:linear-gradient(#bae6fd,#e0f2fe 45%,#a8a29e 46%,#78716c)}
.mko-lieu-kiosque .mko-lieu-deco{background:linear-gradient(#15803d,#166534) 12% 22%/26% 26% no-repeat,repeating-linear-gradient(90deg,#f87171 0 8px,#fbbf24 8px 16px,#60a5fa 16px 24px) 14% 50%/22% 14% no-repeat}
.mko-lieu-banque{background:linear-gradient(#e0f2fe,#bae6fd 30%,#38bdf8 30.5%,#0284c7 46%,#f5f5f4 46.5%,#e7e5e4)}
.mko-lieu-banque .mko-lieu-deco{background:linear-gradient(#57534e,#44403c) 70% 100%/40% 26% no-repeat,radial-gradient(ellipse at 12% 70%,#16a34a 0 9%,transparent 10%)}
.mko-lieu-etabli{background:#c8a27a}
.mko-accueil{min-height:min(84vh,780px)}
.mko-accueil-boite h1{font-family:Fraunces,Georgia,serif;font-size:clamp(28px,5vw,46px);margin:6px 0}
.mko-creole{background:#fef3c7;color:#422006;border-radius:12px;padding:10px 12px;font-size:17px}
.mko-lieu-photo .mko-accueil-boite{background:rgba(17,24,39,.72);border-radius:18px;padding:18px 20px;box-shadow:0 14px 40px rgba(0,0,0,.4);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.mko-identite .mko-perso{display:flex;flex-direction:column;align-items:center;padding:14px 10px}
.mko-identite .mko-perso .mko-visage{width:110px;height:110px}.mko-identite .mko-perso .mko-visage i{font-size:66px}

/* --- la devanture du prologue --- */
.mko-devanture{position:relative;width:min(420px,90%);height:220px;margin:10px auto 0;background:#e7e5e4;border:8px solid #57534e;border-bottom:0;border-radius:8px 8px 0 0;overflow:hidden}
.mko-enseigne{position:absolute;top:0;left:0;right:0;height:40px;background:#0f766e;color:#fef3c7;font-family:Fraunces,Georgia,serif;font-weight:800;font-size:22px;letter-spacing:.3em;text-align:center;line-height:40px;z-index:3}
.mko-vitrine{position:absolute;inset:40px 0 0;display:flex;align-items:center;justify-content:center;font-size:44px;background:linear-gradient(#fffbeb,#fde68a)}
.mko-rideau{position:absolute;inset:40px 0 0;z-index:2;background:repeating-linear-gradient(#a8a29e 0 10px,#78716c 10px 12px);transition:transform 1.6s cubic-bezier(.5,0,.2,1)}
.mko-leve .mko-rideau{transform:translateY(-100%)}

/* --- l'établi : l'écran principal --- */
.mko-etabli{display:flex;flex-direction:column;gap:12px}
.mko-objectif{background:#fef3c7;border:2px dashed #d97706;border-radius:12px;padding:10px 14px;font-weight:700;color:#7c2d12}
.mko-etabli-grille{display:grid;grid-template-columns:240px 1fr 280px;gap:14px;align-items:start}
.mko-calendrier{position:relative;background:#fff;border-radius:6px;padding:26px 14px 16px;box-shadow:0 12px 26px rgba(0,0,0,.35);perspective:900px;min-height:330px}
.mko-cal-clou{position:absolute;top:8px;left:50%;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#e5e7eb,#4b5563);box-shadow:0 2px 3px rgba(0,0,0,.4)}
.mko-cal-page{position:relative;background:#fff;text-align:center;display:flex;flex-direction:column;align-items:center;gap:4px;border-top:10px solid #dc2626;padding-top:8px;transform-origin:top center;animation:mko-pageneuve .5s ease}
.mko-cal-page>b{font-family:Fraunces,Georgia,serif;font-size:72px;line-height:1;color:#111827}
.mko-cal-page p{margin:6px 0 0;font-weight:800}
.mko-cal-page i{font-size:13px;color:#57534e}
.mko-cal-jour{text-transform:uppercase;font-size:12px;letter-spacing:.2em;color:#dc2626;font-weight:800}
.mko-cal-page .pdl-cta{margin-top:10px;font-size:15px;padding:10px 14px}
.mko-arrache{position:absolute;left:14px;right:14px;top:26px;z-index:5;background:#fff;box-shadow:0 8px 18px rgba(0,0,0,.3);animation:mko-arrache 1.4s cubic-bezier(.5,0,.8,.6) forwards}
@keyframes mko-arrache{0%{transform:none}25%{transform:rotateX(-35deg) rotateZ(-4deg)}100%{transform:translateY(420px) rotateX(-80deg) rotateZ(-28deg);opacity:0}}
@keyframes mko-pageneuve{from{opacity:.3}}
.mko-trombone{position:absolute;top:-18px;right:6px;font-size:34px;transform:rotate(25deg);filter:hue-rotate(320deg) saturate(3);z-index:3}
.mko-etabli-centre{min-width:0}
.mko-tapis{position:relative;background:linear-gradient(#c8a27a,#b08968);border-radius:14px;padding:18px;box-shadow:inset 0 0 0 10px #8d6748,0 12px 26px rgba(0,0,0,.35);min-height:330px}
.mko-tapis::before{content:"";position:absolute;inset:18px;border-radius:8px;background:#166534;background-image:linear-gradient(rgba(255,255,255,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.09) 1px,transparent 1px);background-size:24px 24px}
.mko-deco{position:absolute;font-size:30px;opacity:.85;z-index:1;filter:drop-shadow(0 3px 2px rgba(0,0,0,.4))}
.mko-deco-tournevis{top:24px;right:30px;transform:rotate(35deg)}.mko-deco-tel{bottom:26px;right:40px;transform:rotate(-12deg)}
.mko-deco-cafe{bottom:28px;left:30px}.mko-deco-vis{top:30px;left:36px;font-size:18px}
.mko-pages{position:relative;z-index:2;display:grid;grid-template-columns:repeat(auto-fill,minmax(74px,1fr));gap:10px;padding:46px 20px 10px}
.mko-page-mini{background:#fff;border:0;border-top:6px solid #dc2626;border-radius:4px;padding:6px 4px;font:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;box-shadow:0 4px 8px rgba(0,0,0,.35);transition:transform .2s;opacity:.6}
.mko-page-mini b{font-size:24px;font-family:Fraunces,Georgia,serif;line-height:1}
.mko-page-mini span{font-size:11px;text-transform:uppercase}
.mko-page-mini i{font-style:normal;font-size:11px}
.mko-page-mini.mko-fait{opacity:1;border-top-color:#16a34a;transform:rotate(-2deg)}
.mko-page-mini.mko-courante{opacity:1;outline:3px solid #fbbf24;animation:pdl-pulse 1.8s infinite}
.mko-page-mini:hover{transform:translateY(-3px)}
.mko-tapis-aide{position:relative;z-index:2;color:#dcfce7;font-size:13px;text-align:center;margin:6px 0 0}
.mko-tapis-photo{background-color:#3f2d1e;background-size:cover;background-position:center}
.mko-tapis-photo::before{background:rgba(6,40,22,.22);background-image:none}
.mko-tapis-photo .mko-deco{display:none}
.mko-tapis-photo .mko-tapis-aide{display:table;margin:8px auto 0;background:rgba(0,0,0,.55);border-radius:8px;padding:4px 10px}
.mko-chemise{background:#f5d48a;border-radius:4px 12px 12px 12px;padding:14px;box-shadow:0 12px 26px rgba(0,0,0,.35);position:relative}
.mko-chemise-onglet{position:absolute;top:-26px;left:0;background:#f5d48a;border-radius:8px 8px 0 0;padding:4px 12px;font-weight:800;font-size:13px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mko-chemise ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.mko-chemise li button{width:100%;text-align:left;background:#fffdf5;border:0;border-radius:6px;padding:6px 8px;font:inherit;font-size:13px;cursor:pointer;box-shadow:0 2px 0 #d6b45c;animation:mko-docarrive .5s ease both}
.mko-chemise li button:hover{background:#fff}
@keyframes mko-docarrive{from{transform:translateY(-14px) rotate(-3deg);opacity:0}}
.mko-carnet{margin-top:12px;background:#fffbeb;border-radius:8px;padding:8px 10px;font-size:13px;border-left:4px solid #b45309}
.mko-carnet ul{list-style:disc;padding-left:16px;gap:2px}.mko-carnet p{margin:4px 0 0;color:#78716c}

/* --- un acte --- */
.mko-acte{background:#fffaf2;border-radius:16px;padding:12px;box-shadow:0 12px 30px rgba(0,0,0,.35)}
.mko-acte-tete{display:flex;align-items:center;gap:10px;padding-bottom:10px;border-bottom:2px dashed #e7d5bd;margin-bottom:10px}
.mko-acte-tete>div:nth-child(3){display:flex;flex-direction:column;flex:1;min-width:0}
.mko-acte-tete i{font-size:13px;color:#78716c;font-style:normal}
.mko-quitter{border:0;background:#e7e5e4;border-radius:10px;width:36px;height:36px;font-size:20px;cursor:pointer}
.mko-mini-cal{background:#fff;border-top:5px solid #dc2626;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.2);padding:2px 8px;text-align:center;display:flex;flex-direction:column;line-height:1}
.mko-mini-cal b{font-size:22px;font-family:Fraunces,Georgia,serif}.mko-mini-cal span{font-size:10px;text-transform:uppercase}
.mko-moment{font-size:12px;color:#a8a29e;white-space:nowrap}
.mko-jauge-ep{position:relative;background:#f5f5f4;border-radius:99px;height:24px;margin-bottom:10px;overflow:hidden}
.mko-jauge-ep span{position:relative;z-index:1;font-size:12px;font-weight:700;padding:0 10px;line-height:24px}
.mko-jauge-ep i{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,#86efac,#22c55e);transition:width .6s}
.mko-acte-corps{animation:pdl-entree .4s ease}
.mko-rappel{background:#eff6ff;border-left:6px solid #2563eb;border-radius:12px;padding:12px 16px;max-width:780px;margin:0 auto}
.mko-rappel ul{margin:8px 0 0;padding-left:18px}.mko-rappel li{margin:4px 0}
.mko-epreuve{background:linear-gradient(135deg,#fff7ed,#fef3c7);border:2px solid #f59e0b;border-radius:16px;padding:16px 18px;max-width:720px;margin:0 auto;text-align:center}
.mko-epreuve>b{font-size:20px}
.mko-bilan-acte{position:relative;text-align:center;padding:20px 10px;overflow:hidden}
.mko-bilan-acte h2{font-family:Fraunces,Georgia,serif;margin:8px 0}
.mko-pct{font-size:34px;display:block}
.mko-tampon-valide,.mko-tampon-accorde{display:inline-block;border:5px solid #16a34a;color:#16a34a;font-weight:900;font-size:28px;letter-spacing:.2em;padding:4px 16px;border-radius:10px;animation:pdl-tampon .6s cubic-bezier(.2,1.6,.4,1) both;transform:rotate(-14deg)}
.mko-echec .mko-trombone{position:static;display:inline-block}
.mko-re-liste{text-align:left;max-width:760px;margin:10px auto;background:#fffbeb;border-radius:12px;padding:10px 14px 10px 30px}
.mko-re-liste li{margin:6px 0}

/* --- la leçon de Jean-Max --- */
.mko-lecon{background:#fffdf5;border-radius:16px;padding:14px 16px;box-shadow:inset 0 0 0 2px #f5d48a;max-width:900px;margin:0 auto}
.mko-lecon-tete{display:flex;gap:12px;align-items:center}
.mko-lecon-tete>div{flex:1;min-width:0}
.mko-lecon-tete span{font-size:12px;color:#9a3412;font-weight:700}
.mko-lecon-tete h3{margin:2px 0 0;font-family:Fraunces,Georgia,serif;font-size:24px}
.mko-lecon-scene{position:relative;margin:12px 0}
.mko-revoir{position:absolute;right:8px;bottom:8px;z-index:9;border:0;border-radius:99px;background:rgba(255,255,255,.92);padding:6px 12px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.mko-lecon-points{margin:0;padding-left:22px;font-size:17px}
.mko-lecon-points li{margin:8px 0;white-space:pre-line;animation:pdl-li .45s ease both}
.mko-lecon-points li.mko-neuf{background:#fef9c3;border-radius:8px;padding:4px 6px;margin-left:-6px}
.mko-deplier{margin:6px 0}
.mko-cours{background:#eef2ff;border:2px solid #6366f1;border-radius:12px;padding:10px 14px;margin:10px 0;animation:pdl-bulle .4s ease}
.mko-cours>b{color:#3730a3}
.mko-cours p{margin:6px 0 0}

/* --- les explications animées --- */
.mko-anim{position:relative;height:250px;border-radius:14px;overflow:hidden;background:#c8a27a;box-shadow:inset 0 0 0 8px #8d6748}
.mko-anim::before{content:"";position:absolute;inset:8px;border-radius:8px;background:#166534;background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);background-size:22px 22px}
.mko-anim>*{position:absolute;z-index:1}
.mko-anim-legende{left:50%;bottom:14px;transform:translateX(-50%);background:#fff;border-radius:99px;padding:4px 14px;font-weight:700;white-space:nowrap;animation:pdl-bulle .5s ease both;font-size:14px}
/* le coffre */
.mko-coffre{width:170px;height:120px;left:50%;top:60px;margin-left:-85px;perspective:500px}
.mko-coffre-dos{position:absolute;inset:0;border-radius:12px;background:rgba(186,230,253,.35);border:3px solid rgba(255,255,255,.7);transform:translate(10px,-10px)}
.mko-coffre-face{position:absolute;inset:0;border-radius:12px;background:rgba(224,242,254,.55);backdrop-filter:blur(2px);border:3px solid #fff;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 10px 20px rgba(0,0,0,.3)}
.mko-coffre-face b{font-size:13px;color:#0c4a6e}
.mko-compteur{font-family:"Courier New",monospace;font-weight:800;font-size:20px;color:#14532d;font-variant-numeric:tabular-nums}
.mko-fleche{font-weight:900;font-size:15px;padding:3px 10px;border-radius:99px;animation:pdl-bulle .4s ease both}
.mko-fleche-in{left:50%;top:14px;margin-left:-110px;background:#22c55e;color:#fff}
.mko-fleche-out{left:50%;bottom:14px;margin-left:30px;background:#ef4444;color:#fff}
.mko-piece{width:34px;height:34px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fef08a,#eab308 60%,#a16207);color:#713f12;font-weight:900;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 4px rgba(0,0,0,.4)}
.mko-piece-tombe{left:50%;top:-40px;margin-left:-17px;animation:mko-tombe-coffre 1.2s cubic-bezier(.5,0,.6,1.3) forwards}
@keyframes mko-tombe-coffre{0%{transform:translateY(0) rotateY(0)}80%{transform:translateY(130px) rotateY(720deg);opacity:1}100%{transform:translateY(130px) rotateY(720deg);opacity:0}}
.mko-billet{padding:6px 12px;background:linear-gradient(135deg,#86efac,#16a34a);color:#052e16;font-weight:800;border-radius:4px;box-shadow:0 2px 4px rgba(0,0,0,.4)}
.mko-billet-sort{left:50%;top:120px;margin-left:-28px;animation:mko-sort 1.3s ease-in forwards}
@keyframes mko-sort{0%{opacity:0;transform:translateY(0)}20%{opacity:1}100%{opacity:0;transform:translateY(120px) rotate(18deg)}}
.mko-carton-passe{left:-80px;top:96px;font-size:44px;display:flex;flex-direction:column;align-items:center;animation:mko-passe 3s linear forwards}
.mko-carton-passe small{font-size:12px;background:#fff;border-radius:6px;padding:0 6px}
@keyframes mko-passe{to{transform:translateX(300px)}}
.mko-rosette-paie{right:24px;top:30px;background:#fff;border-radius:12px;padding:6px 12px;font-size:22px;animation:pdl-bulle .5s ease both}
.mko-rosette-paie b{color:#16a34a}
/* les fils */
.mko-fils-svg{left:0;top:10px;width:100%;height:200px}
.mko-fil{fill:none;stroke-width:6;stroke-linecap:round;stroke-dasharray:900;stroke-dashoffset:900;animation:mko-trace 1.6s ease forwards}
.mko-fil-orange{stroke:#f97316}.mko-fil-bleu{stroke:#3b82f6}.mko-fil-vert{stroke:#22c55e}
@keyframes mko-trace{to{stroke-dashoffset:0}}
.mko-fils-l{background:#fff;border-radius:99px;padding:2px 10px;font-size:13px;font-weight:800;animation:pdl-bulle .4s ease both}
.mko-fils-l1{left:12px;top:30px;color:#c2410c}.mko-fils-l2{right:12px;top:94px;color:#1d4ed8}.mko-fils-l3{left:12px;top:150px;color:#15803d}
.mko-fils-noeuds{left:16px;right:16px;bottom:40px;display:flex;justify-content:space-between}
.mko-fils-noeuds span{background:#fff;border-radius:10px;padding:4px 10px;font-weight:800}
.mko-voyage{font-size:28px;top:104px}
.mko-voyage-ecran{left:40px;animation:mko-va 2.6s ease-in-out infinite}
.mko-voyage-billet{right:40px;animation:mko-vient 2.6s ease-in-out infinite;top:150px}
@keyframes mko-va{0%{transform:translateX(0)}100%{transform:translateX(min(70vw,560px))}}
@keyframes mko-vient{0%{transform:translateX(0)}100%{transform:translateX(max(-70vw,-560px))}}
/* le relevé */
.mko-releve-anim{left:50%;top:14px;width:min(420px,86%);margin-left:max(-210px,-43%);background:#fff;border-radius:6px;padding:8px;font-size:13px;transform-origin:top;animation:mko-deplie .9s ease both;box-shadow:0 8px 18px rgba(0,0,0,.3)}
@keyframes mko-deplie{from{transform:scaleY(.1)}}
.mko-ra-tete{font-weight:800;border-bottom:1px solid #e5e7eb;margin-bottom:4px}
.mko-ra-ligne{display:grid;grid-template-columns:50px 1fr 54px 54px;gap:4px;padding:2px 4px;border-radius:4px;transition:background .8s}
.mko-sur-vert{background:linear-gradient(90deg,rgba(134,239,172,.9),rgba(134,239,172,.9)) no-repeat;background-size:100% 100%;animation:mko-surligne .8s ease both}
.mko-sur-rouge{background:linear-gradient(90deg,rgba(252,165,165,.9),rgba(252,165,165,.9)) no-repeat;background-size:100% 100%;animation:mko-surligne .8s ease both}
@keyframes mko-surligne{from{background-size:0 100%}}
.mko-attente{left:16px;right:16px;bottom:52px;display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.95);border-radius:10px;padding:6px 10px;font-size:13px;font-weight:700;animation:pdl-bulle .4s ease both}
.mko-horloge{font-size:24px;animation:mko-tourne 2s linear infinite}
@keyframes mko-tourne{to{transform:rotate(360deg)}}
.mko-attente .mko-piece{position:static;width:24px;height:24px;font-size:12px}
.mko-piece-attend{animation:mko-attend 3s ease-in-out infinite}
@keyframes mko-attend{0%,60%{transform:translateX(0)}100%{transform:translateX(60px);opacity:0}}
.mko-formule-ecrit{left:50%;bottom:12px;transform:translateX(-50%);background:#fffbeb;border:2px solid #f59e0b;border-radius:10px;padding:4px 12px;font-weight:800;font-size:14px;white-space:nowrap;overflow:hidden;max-width:94%;animation:mko-ecrit 2.4s steps(60) both}
@keyframes mko-ecrit{from{max-width:0}}
/* les bacs */
.mko-bac{width:30%;height:150px;bottom:16px;border-radius:0 0 16px 16px;border:4px solid;border-top:0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px;animation:pdl-bulle .5s ease both}
.mko-bac>b{font-size:13px;background:#fff;border-radius:6px;padding:0 6px}
.mko-bac-rouge{left:3%;border-color:#dc2626;background:rgba(254,202,202,.85)}
.mko-bac-vert{left:35%;border-color:#16a34a;background:rgba(187,247,208,.85)}
.mko-bac-gris{left:67%;border-color:#78716c;background:rgba(231,229,228,.9);border-radius:16px;border-top:4px solid #78716c}
.mko-tombe{background:#fff;border-radius:6px;padding:1px 6px;font-size:12px;font-weight:700;animation:mko-tombe .7s cubic-bezier(.5,0,.6,1.4) both}
@keyframes mko-tombe{from{transform:translateY(-140px) rotate(-12deg);opacity:0}}
/* l'étagère */
.mko-etagere{left:4%;right:4%;top:14px;display:flex;flex-direction:column;gap:6px}
.mko-etagere-planche{display:flex;gap:6px;justify-content:center;padding:6px;border-bottom:8px solid #92400e;background:rgba(255,255,255,.15);border-radius:4px}
.mko-boite{font-size:28px;animation:mko-entre .6s ease both}
@keyframes mko-entre{from{transform:translateX(-200px);opacity:0}}
.mko-boite-part{animation:mko-part .8s ease forwards}
@keyframes mko-part{to{transform:translateY(80px) scale(.3);opacity:0}}
.mko-etagere-cpt{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.mko-etagere-cpt>span{background:#fff;border-radius:8px;padding:2px 8px;font-size:13px;font-weight:700}
.mko-etagere-cpt .mko-compteur{font-size:14px}
.mko-rouge .mko-compteur{color:#b91c1c}
.mko-usure{left:6%;right:6%;bottom:12px;background:#fff;border-radius:10px;padding:6px 10px;font-size:13px;animation:pdl-bulle .5s ease both}
.mko-usure-barre{height:12px;background:#e5e7eb;border-radius:99px;overflow:hidden;margin:4px 0}
.mko-usure-barre i{display:block;height:100%;width:5%;background:#dc2626;animation:mko-usure 2s ease both}
@keyframes mko-usure{from{width:0}}
/* la caisse */
.mko-caisse-anim{left:50%;top:16px;margin-left:-120px;width:240px;background:linear-gradient(#b91c1c,#7f1d1d);border-radius:12px 12px 6px 6px;padding:10px;box-shadow:0 10px 18px rgba(0,0,0,.4)}
.mko-caisse-ecran{background:#052e16;color:#4ade80;font-family:"Courier New",monospace;font-weight:800;font-size:20px;text-align:right;padding:4px 8px;border-radius:4px}
.mko-caisse-touches{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;margin-top:6px}
.mko-caisse-touches span{background:#fef3c7;border-radius:4px;text-align:center;font-weight:800;font-size:12px}
.mko-ticket-anim{position:absolute;left:30px;right:30px;top:100%;background:#fff;font-family:"Courier New",monospace;font-size:13px;padding:4px 8px;transform-origin:top;animation:mko-imprime 1s steps(6) both;box-shadow:0 4px 8px rgba(0,0,0,.3)}
.mko-ticket-anim p{margin:0}
@keyframes mko-imprime{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0)}}
.mko-tampon-anim{left:50%;bottom:20px;transform:translateX(-50%) rotate(-8deg);border:4px solid #dc2626;color:#dc2626;background:rgba(255,255,255,.9);font-weight:900;padding:4px 12px;border-radius:8px;white-space:nowrap;animation:mko-tampon 0.6s cubic-bezier(.2,1.6,.4,1) both;font-size:15px}
@keyframes mko-tampon{from{transform:translateX(-50%) rotate(-8deg) scale(3);opacity:0}}
/* la balance */
.mko-fleau{position:relative;width:min(460px,100%);height:210px;margin:0 auto}
.mko-anim .mko-fleau{left:50%;top:10px;transform:translateX(-50%)}
.mko-fleau-bras{position:absolute;left:8%;right:8%;top:40px;height:8px;background:linear-gradient(#a8a29e,#57534e);border-radius:4px;transition:transform 1s cubic-bezier(.3,1.4,.5,1)}
.mko-fleau-bras::after{content:"";position:absolute;left:50%;top:-8px;width:18px;height:18px;margin-left:-9px;border-radius:50%;background:#44403c}
.mko-plateau{position:absolute;top:8px;width:150px;margin-left:-75px;display:flex;flex-direction:column;align-items:center;transition:transform 1s cubic-bezier(.3,1.4,.5,1);transform-origin:top center}
.mko-plateau-g{left:0}.mko-plateau-d{left:100%}
.mko-plateau-blocs{display:flex;flex-direction:column-reverse;align-items:center;gap:2px;min-height:96px;justify-content:flex-start;padding-top:4px}
.mko-plateau-assiette{width:150px;background:linear-gradient(#e7e5e4,#a8a29e);border-radius:0 0 75px 75px/0 0 20px 20px;text-align:center;font-weight:900;padding:3px 0;font-size:14px}
.mko-bloc{font-size:11px;font-weight:800;padding:2px 6px;border-radius:4px;color:#fff;white-space:nowrap;animation:mko-tombe .7s cubic-bezier(.5,0,.6,1.4) both;max-width:150px;overflow:hidden;text-overflow:ellipsis}
.mko-bloc-d{background:#dc2626}.mko-bloc-g,.mko-bloc-prix{background:#2563eb}.mko-bloc-prod{background:#16a34a}
.mko-fleau-pied{position:absolute;left:50%;top:46px;width:14px;height:150px;margin-left:-7px;background:linear-gradient(90deg,#57534e,#a8a29e,#57534e);border-radius:4px 4px 0 0}
.mko-fleau-pied::after{content:"";position:absolute;bottom:0;left:-40px;right:-40px;height:12px;background:#44403c;border-radius:6px}
.mko-fleau-legendes{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-between;font-size:12px;font-weight:700}
.mko-fleau-legendes span{background:rgba(255,255,255,.9);border-radius:6px;padding:1px 6px;max-width:46%}
.mko-marge-anim{right:14px;top:14px;background:#22c55e;color:#fff;font-weight:900;border-radius:10px;padding:4px 12px;animation:pdl-pulse 1.6s infinite,pdl-bulle .4s ease both}
.mko-trois-couts{left:10px;right:10px;bottom:10px;display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.mko-trois-couts span{background:#fff;border-radius:8px;padding:2px 8px;font-size:12px;font-weight:700;animation:pdl-bulle .5s ease both}
/* la barre du chiffre d'affaires */
.mko-barre-anim{left:4%;right:4%;top:70px;height:56px;display:flex;border-radius:6px;overflow:visible}
.mko-barre-or{position:relative;height:100%;background:linear-gradient(#e7c9a0,#c49a6c);border-radius:6px 0 0 6px;display:flex;align-items:center;justify-content:center;transition:background 1s}
.mko-barre-or.mko-brille{background:linear-gradient(#fde68a,#f59e0b);box-shadow:0 0 22px #fbbf24}
.mko-barre-or b{position:relative;z-index:2;font-size:13px;text-align:center}
.mko-cadenas{position:absolute;left:0;top:-30px;height:24px;background:#1e3a8a;color:#fff;font-size:11px;font-weight:800;border-radius:6px;display:flex;align-items:center;justify-content:center;animation:mko-retenu 1s ease-in-out infinite;white-space:nowrap;overflow:hidden}
@keyframes mko-retenu{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.mko-morceau{height:100%;position:relative;display:flex;align-items:center;justify-content:center}
.mko-morceau span{position:absolute;top:62px;font-size:10px;color:#fff;white-space:nowrap;opacity:0}
.mko-envole{animation:mko-envole 1.8s ease-in forwards}
.mko-envole span{opacity:1}
@keyframes mko-envole{0%{transform:none}30%{transform:translateY(-16px) rotate(-6deg)}100%{transform:translate(160px,-140px) rotate(25deg);opacity:0}}
.mko-barre-legende{left:50%;bottom:20px;transform:translateX(-50%);background:#fff;border-radius:99px;padding:3px 12px;font-weight:800;font-size:13px;white-space:nowrap}
.mko-ejecte{right:12px;bottom:56px;background:#fff;border-radius:10px;padding:4px 10px;font-size:12px;font-weight:700;animation:mko-ejecte 1.2s ease both}
@keyframes mko-ejecte{from{transform:translate(-160px,-40px) rotate(-30deg);opacity:0}}
/* la ligne du zéro */
.mko-zero-anim{inset:16px}
.mko-zero-ligne{position:absolute;left:0;right:0;top:55%;height:3px;background:#fff}
.mko-zero-ligne span{position:absolute;left:4px;top:-20px;color:#fff;font-weight:800;font-size:12px}
.mko-zcol{position:absolute;width:18%;border-radius:6px 6px 0 0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;transform-origin:bottom;animation:mko-pousse 1s ease both;opacity:.55;transition:opacity .4s,box-shadow .4s}
.mko-zpos{bottom:45%;background:#22c55e}
.mko-zneg{top:55%;background:#ef4444;border-radius:0 0 6px 6px;transform-origin:top}
.mko-zcol b{font-size:12px;color:#fff;white-space:nowrap;margin-top:2px}
.mko-zcol span{position:absolute;bottom:-18px;color:#fff;font-size:12px;font-weight:700}
.mko-zneg span{bottom:auto;top:-18px}
.mko-zon{opacity:1;box-shadow:0 0 16px #fff}
@keyframes mko-pousse{from{transform:scaleY(0)}}
.mko-tendance{position:absolute;right:6px;top:0;background:#fff;border-radius:8px;padding:2px 8px;font-weight:900;color:#16a34a;animation:pdl-bulle .4s ease both}
/* la photo */
.mko-anim-photo{filter:grayscale(1)}
.mko-flash{inset:0;background:#fff;animation:mko-flash .9s ease forwards;z-index:8}
@keyframes mko-flash{0%{opacity:1}100%{opacity:0}}
.mko-photo-date{right:16px;bottom:12px;font-family:"Courier New",monospace;color:#fb923c;font-weight:900;font-size:18px;filter:none}
.mko-armoires-anim{left:10%;right:10%;top:16px;bottom:44px;display:flex;gap:16px}
.mko-arm-anim{flex:1;background:#78350f;border:4px solid #451a03;border-radius:6px;position:relative;display:flex;flex-direction:column;align-items:center;animation:pdl-bulle .5s ease both}
.mko-arm-anim b{color:#fff;font-size:12px;text-align:center;padding:2px}
.mko-arm-rempli{position:absolute;left:6px;right:6px;bottom:6px;height:10%;background:repeating-linear-gradient(#d6b88c 0 18px,#a16207 18px 20px);transition:height 1.6s ease}
.mko-arm-rempli.mko-plein{height:72%}
.mko-egal{left:50%;bottom:10px;transform:translateX(-50%);background:#fff;border-radius:99px;padding:2px 12px;font-weight:900;white-space:nowrap}
/* le film */
.mko-projecteur{left:12px;top:70px;width:90px;height:70px;background:#292524;border-radius:10px;display:flex;justify-content:space-around;align-items:flex-start}
.mko-bobine{font-size:34px;color:#a8a29e;margin-top:-26px;animation:mko-tourne 2s linear infinite}
.mko-faisceau{position:absolute;left:90px;top:10px;width:120px;height:50px;background:linear-gradient(90deg,rgba(254,240,138,.7),rgba(254,240,138,.05));clip-path:polygon(0 35%,100% 0,100% 100%,0 65%)}
.mko-ecran-film{left:220px;right:12px;top:14px;bottom:14px;background:#fafaf9;border-radius:6px;overflow:hidden}
.mko-defile{position:absolute;inset:0;display:flex;align-items:center}
.mko-defile span{position:absolute;left:100%;font-weight:900;font-size:20px;animation:mko-defile 2.7s linear infinite}
@keyframes mko-defile{to{transform:translateX(-160%)}}
.mko-film-cols{position:absolute;inset:6px;display:flex;gap:8px;align-items:flex-end}
.mko-film-col{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;gap:2px;position:relative}
.mko-film-col>b{position:absolute;top:0;left:0;right:0;text-align:center;font-size:13px}
.mko-film-col i{font-style:normal;color:#fff;font-weight:800;font-size:12px;display:flex;align-items:center;justify-content:center;border-radius:4px;animation:mko-pousse .9s ease both}
.mko-film-ch i{background:#dc2626}.mko-film-pr i{background:#16a34a}
.mko-film-col i.mko-film-or{background:linear-gradient(#fde68a,#f59e0b);color:#78350f;order:-1;animation:mko-tombe .8s ease both}
.mko-film-ch{flex-direction:column}

/* --- les questions --- */
.mko-question{max-width:780px;margin:0 auto}
.mko-q-titre{font-weight:900;font-size:18px;margin-bottom:8px}
.mko-q{font-size:18px;font-weight:600;margin:10px 0}
.mko-chiffres{background:#ecfdf5;border:2px solid #10b981;border-radius:12px;padding:8px 12px;font-size:15px}
.mko-aide{margin:8px 0;border-radius:12px;background:#fffbeb;border:1px solid #fde68a}
.mko-aide-btn{border:0;background:none;font:inherit;font-weight:800;padding:8px 12px;cursor:pointer;color:#92400e}
.mko-aide-corps{padding:0 12px 10px}
.mko-aide-corps p{margin:4px 0}
.mko-aide-ex{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.mko-aide-ex input{width:110px;font:inherit;padding:4px 8px;border:2px solid #fde68a;border-radius:8px}
.mko-mini{border:0;border-radius:8px;background:#e7e5e4;padding:6px 10px;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.mko-mini.mko-on{background:#1f2937;color:#fff}
.mko-ok{color:#15803d;font-weight:800}.mko-ko{color:#b45309;font-weight:700}
.mko-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mko-saisie input{font:inherit;font-size:20px;width:170px;padding:8px 12px;border:2px solid #d6d3d1;border-radius:10px}
.mko-saisie input:focus{border-color:#f59e0b;outline:none}
.mko-saisie .pdl-cta.petit{margin:0}
.mko-options{display:flex;flex-direction:column;gap:8px}
.mko-opt{display:flex;gap:10px;align-items:center;text-align:left;border:2px solid #e7e5e4;background:#fff;border-radius:12px;padding:10px 12px;font:inherit;font-size:16px;cursor:pointer;transition:all .2s}
.mko-opt:hover:not(:disabled){border-color:#f59e0b;transform:translateX(3px)}
.mko-opt-l{flex:0 0 28px;height:28px;border-radius:50%;background:#1f2937;color:#fff;font-weight:900;display:flex;align-items:center;justify-content:center}
.mko-opt.mko-bon{border-color:#16a34a;background:#f0fdf4}
.mko-opt.mko-faux{border-color:#dc2626;background:#fef2f2}
.mko-opt.mko-eteint{opacity:.5}
.mko-opt.mko-barree{opacity:.35;text-decoration:line-through}
.mko-guide{background:#f5f3ff;border-left:4px solid #7c3aed;border-radius:8px;padding:6px 10px;font-size:15px}
.mko-consigne{font-size:16px;background:#fff;border-radius:10px;padding:8px 12px;box-shadow:0 1px 0 #e7d5bd}
.mko-prog{font-size:13px;color:#a8a29e;text-align:center;margin:6px 0}
.mko-corrige{display:flex;gap:10px;align-items:flex-start;background:#fffbeb;border:2px solid #fbbf24;border-radius:12px;padding:10px 12px;margin:10px auto;max-width:720px;animation:pdl-bulle .35s ease}
.mko-corrige p{margin:0;flex:1}
.mko-corrige .pdl-cta.petit{margin-top:0}
.mko-choix2{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:8px 0}
.mko-indice{outline:4px solid #a855f7 !important;outline-offset:2px;animation:mko-indice 1s ease-in-out infinite}
@keyframes mko-indice{50%{outline-color:rgba(168,85,247,.3)}}
.mko-survol{outline:4px dashed #f59e0b;outline-offset:2px}
.mko-fantome{position:fixed;z-index:10060;pointer-events:none;opacity:.92;margin:0;box-shadow:0 18px 30px rgba(0,0,0,.35);transition:none;background:#fff;border-radius:12px}
.mko-meca{display:flex;flex-direction:column;gap:10px}
.mko-table{border-collapse:collapse;width:100%;font-size:14px;background:#fff}
.mko-table th,.mko-table td{border:1px solid #e7e5e4;padding:4px 8px;text-align:left}
.mko-table th{background:#f5f5f4}
.mko-objet{display:flex;flex-direction:column;align-items:center;gap:4px;background:#fffdf8;border-radius:12px;padding:12px 14px;box-shadow:0 10px 22px rgba(0,0,0,.3);cursor:grab;touch-action:none;user-select:none;text-align:center;max-width:340px;margin:0 auto;font-weight:600}
.mko-objet-ico{font-size:34px}
.mko-objet-date{font-size:12px;font-weight:900;background:#1f2937;color:#fff;border-radius:6px;padding:0 6px}
.mko-objet-tombe{animation:mko-objet-tombe .6s cubic-bezier(.4,1.5,.5,1) both}
@keyframes mko-objet-tombe{from{transform:translateY(-90px) rotate(-10deg);opacity:0}}
.mko-objet-part{animation:mko-objet-part .6s ease forwards}
@keyframes mko-objet-part{to{transform:scale(.2);opacity:0}}
.mko-objet-envole{animation:mko-objet-envole .7s cubic-bezier(.3,1.4,.5,1) both}
@keyframes mko-objet-envole{from{transform:translate(-120px,40px) rotate(-30deg) scale(.4);opacity:0}}
.mko-objet-piege{border:3px dashed #f59e0b;background:#fff7ed}
.mko-objet small{font-size:12px;color:#b45309}
.mko-coupe{animation:mko-coupe .9s ease forwards}
@keyframes mko-coupe{50%{clip-path:polygon(0 0,48% 0,48% 100%,0 100%);transform:translateX(-10px)}100%{opacity:0}}

/* --- acte 1 : le coffre à double trappe --- */
.mko-coffre-etabli{display:grid;grid-template-columns:220px 1fr 220px;gap:12px;align-items:center;background:#166534;border-radius:14px;padding:14px;box-shadow:inset 0 0 0 8px #8d6748}
.mko-coffre-col{display:flex;flex-direction:column;gap:10px;align-items:stretch}
.mko-coffre-grand{position:relative;left:auto;top:auto;margin:0 auto;width:180px;height:110px}
.mko-trappe{border-radius:12px;padding:12px 10px;text-align:center;font-weight:800;cursor:pointer;transition:transform .2s,box-shadow .2s;border:3px dashed}
.mko-trappe:hover{transform:scale(1.03)}
.mko-trappe-haut{background:#dcfce7;border-color:#16a34a;color:#14532d}
.mko-trappe-bas{background:#fee2e2;border-color:#dc2626;color:#7f1d1d}
.mko-plateau-rien{background:#f5f5f4;border-color:#78716c;color:#44403c;border-radius:50%/30%;padding:22px 10px}
.mko-avale{animation:mko-avale .6s ease}
@keyframes mko-avale{50%{transform:scale(1.12);box-shadow:0 0 30px #fde047}}
.mko-coffre-centre{display:flex;flex-direction:column;gap:8px;min-height:220px;justify-content:center}
.mko-journal{list-style:none;margin:0;padding:8px;background:#fffdf5;border-radius:10px;font-size:13px;font-family:"Courier New",monospace;min-height:110px}
.mko-journal li{padding:2px 0;border-bottom:1px dashed #e7e5e4;animation:pdl-li .4s ease both}
.mko-j-entree{color:#15803d}.mko-j-sortie{color:#b91c1c}.mko-j-rien{color:#78716c}

/* --- acte 2 : les fils --- */
.mko-carte-etape{background:#fff;border-radius:12px;padding:10px 14px;box-shadow:0 8px 18px rgba(0,0,0,.18);display:flex;gap:10px;align-items:center;animation:mko-objet-tombe .5s ease both}
.mko-carte-etape span{background:#1f2937;color:#fff;border-radius:8px;padding:2px 8px;font-size:12px;white-space:nowrap}
.mko-fils-boutons{display:flex;gap:8px;flex-wrap:wrap}
.mko-btn-fil{flex:1;min-width:150px;border:3px solid var(--c);background:#fff;border-radius:12px;padding:8px;font:inherit;font-weight:800;cursor:pointer;display:flex;flex-direction:column;color:var(--c)}
.mko-btn-fil small{color:#57534e;font-weight:500}
.mko-btn-fil.mko-on{background:var(--c);color:#fff}.mko-btn-fil.mko-on small{color:#fff}
.mko-fils-aide{margin:0;font-weight:700;color:#9a3412}
.mko-plateau-fils{position:relative;aspect-ratio:5/3;max-height:420px;width:100%;background:#166534;border-radius:14px;box-shadow:inset 0 0 0 8px #8d6748;overflow:hidden}
.mko-fils-plan{position:absolute;inset:0;width:100%;height:100%}
.mko-fil-pose{fill:none;stroke-width:.8;stroke-linecap:round;stroke-dasharray:200;stroke-dashoffset:200;animation:mko-trace 1s ease forwards}
.mko-fils-fini .mko-fil-pose{stroke-dasharray:3 2;animation:mko-vivant 1s linear infinite}
@keyframes mko-vivant{to{stroke-dashoffset:-10}}
.mko-figurine{position:absolute;transform:translate(-50%,-50%);border:0;background:#fffdf8;border-radius:16px;padding:6px 10px;display:flex;flex-direction:column;align-items:center;font:inherit;cursor:pointer;box-shadow:0 8px 0 #a16207,0 12px 18px rgba(0,0,0,.35);z-index:2;min-width:84px}
.mko-figurine span{font-size:30px}.mko-figurine b{font-size:12px;white-space:nowrap}
.mko-figurine:disabled{cursor:default;opacity:1;color:#1f1a14}
.mko-figurine.mko-envoie{background:#fde68a;transform:translate(-50%,-56%)}

/* --- acte 3 : le relevé --- */
.mko-surligneurs{display:flex;gap:8px;flex-wrap:wrap}
.mko-surligneur{flex:1;min-width:150px;border:3px solid transparent;border-radius:12px;padding:8px;font:inherit;font-weight:800;cursor:pointer}
.mko-sl-vert{background:#bbf7d0}.mko-sl-rouge{background:#fecaca}
.mko-surligneur.mko-on{border-color:#1f2937;transform:translateY(-2px);box-shadow:0 4px 10px rgba(0,0,0,.2)}
.mko-releve{background:#fff;border-radius:6px;padding:10px;box-shadow:0 10px 24px rgba(0,0,0,.2);font-family:"Courier New",monospace;font-size:14px}
.mko-releve-tete{display:flex;flex-direction:column;border-bottom:2px solid #1f2937;margin-bottom:6px;padding-bottom:4px;font-family:inherit}
.mko-releve-tete span{font-size:12px}
.mko-releve-l{display:grid;grid-template-columns:60px 1fr 80px 80px;gap:6px;width:100%;border:0;background:none;text-align:left;font:inherit;padding:4px 6px;border-radius:4px;cursor:pointer;border-bottom:1px dotted #e7e5e4}
.mko-releve-l span:nth-child(3),.mko-releve-l span:nth-child(4){text-align:right}
.mko-releve-entete{font-weight:900;cursor:default}
.mko-releve-pied{font-weight:900;cursor:default;border-top:2px solid #1f2937}
.mko-clignote{animation:pdl-clig .4s 3}
.mko-papiers{display:flex;flex-direction:column;gap:8px}
.mko-papier{background:#fffef0;border:1px solid #e7e5e4;border-radius:4px;padding:12px;box-shadow:2px 4px 0 #e7d5bd;transform:rotate(-1deg);font-weight:600;animation:mko-objet-tombe .5s ease both;max-width:560px;margin:0 auto}

/* --- acte 4 : la boîte à chaussures --- */
.mko-boite-zone{display:flex;gap:14px;align-items:center;justify-content:center;flex-wrap:wrap;min-height:150px}
.mko-boite-chaussures{width:130px;height:90px;background:linear-gradient(#f97316,#c2410c);border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;font-size:36px;box-shadow:0 10px 18px rgba(0,0,0,.35)}
.mko-boite-chaussures span{font-size:13px;font-weight:800}
.mko-tremble{animation:mko-tremble .5s ease 2}
@keyframes mko-tremble{25%{transform:rotate(-3deg)}75%{transform:rotate(3deg)}}
.mko-bacs-jeu{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.mko-bac-jeu{border-radius:0 0 16px 16px;border:4px solid;border-top-width:10px;padding:8px;min-height:150px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;transition:transform .2s}
.mko-bac-jeu:hover{transform:translateY(-3px)}
.mko-bac-jeu ul{list-style:none;margin:0;padding:0;font-size:11px;width:100%}
.mko-bac-jeu li{background:rgba(255,255,255,.8);border-radius:4px;padding:1px 4px;margin-top:2px;animation:mko-tombe .5s ease both}
.mko-bacj-charge{border-color:#dc2626;background:#fee2e2}.mko-bacj-produit{border-color:#16a34a;background:#dcfce7}.mko-bacj-ni{border-color:#78716c;background:#f5f5f4;border-radius:16px}
.mko-carte-piege{background:#fff7ed;border:2px dashed #f59e0b;border-radius:12px;padding:10px;font-weight:700}

/* --- acte 5 : la caisse --- */
.mko-caisse-zone{display:grid;grid-template-columns:1fr 300px;gap:14px;align-items:start}
.mko-tarifs .mko-tr-on{background:#fef3c7;font-weight:800}
.mko-caisse{background:linear-gradient(#b91c1c,#7f1d1d);border-radius:16px 16px 8px 8px;padding:12px;box-shadow:0 14px 24px rgba(0,0,0,.4)}
.mko-caisse .mko-caisse-ecran{font-size:18px;min-height:32px}
.mko-pave{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:8px 0}
.mko-pave button{border:0;border-radius:8px;background:#fef3c7;font:inherit;font-weight:900;font-size:18px;padding:8px 0;cursor:pointer;box-shadow:0 3px 0 #b45309}
.mko-pave button:active{transform:translateY(2px);box-shadow:none}
.mko-pave .mko-pave-ok{grid-column:span 3;background:#22c55e;color:#fff;box-shadow:0 3px 0 #15803d}
.mko-ticket{background:#fff;font-family:"Courier New",monospace;font-size:13px;padding:8px 10px;border-radius:2px;mask:linear-gradient(#000 calc(100% - 8px),transparent);min-height:60px}
.mko-ticket-tete{text-align:center;font-weight:900;margin:0 0 4px}
.mko-ticket-l{display:flex;justify-content:space-between;margin:0;animation:mko-imprime .6s steps(4) both}
.mko-ticket-total{display:flex;justify-content:space-between;margin:6px 0 0;border-top:2px dashed #1f2937;font-weight:900;animation:mko-imprime .8s steps(4) both}
.mko-secoue{animation:pdl-secoue .5s}
.mko-dilemme{background:#fff7ed;border-radius:14px;padding:8px}

/* --- acte 6 : la balance des coûts et la réglette --- */
.mko-briques-jeu .mko-fleau,.mko-prix-jeu .mko-fleau{background:#166534;border-radius:14px;box-shadow:inset 0 0 0 6px #8d6748;height:230px}
.mko-plateau-cible{border:3px dashed #dc2626;border-radius:12px;text-align:center;padding:8px;font-weight:800;color:#b91c1c;background:#fef2f2}
.mko-briques{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.mko-brique{display:flex;flex-direction:column;align-items:center;border:0;border-radius:6px;padding:8px 10px;font:inherit;cursor:pointer;background:linear-gradient(#fdba74,#ea580c);color:#fff;box-shadow:0 4px 0 #9a3412;touch-action:none;max-width:200px}
.mko-brique span{font-size:13px;font-weight:700}
.mko-brique small{font-size:11px;background:rgba(0,0,0,.25);border-radius:4px;padding:2px 4px;margin-top:4px}
.mko-brique.mko-on{transform:translateY(4px);box-shadow:0 0 0 3px #fff,0 0 0 6px #dc2626}
.mko-brique.mko-bon{background:linear-gradient(#86efac,#16a34a);box-shadow:0 4px 0 #14532d}
.mko-brique.mko-faux{background:linear-gradient(#fca5a5,#b91c1c);animation:pdl-secoue .5s}
.mko-brique.mko-eteint{opacity:.45}
.mko-reglette{display:flex;justify-content:center;gap:0;background:linear-gradient(#fde68a,#f59e0b);border-radius:8px;padding:6px;box-shadow:0 4px 0 #b45309}
.mko-cran{flex:1;max-width:120px;border:0;border-left:2px solid #92400e;background:none;font:inherit;font-weight:900;font-size:18px;padding:10px 0;cursor:pointer}
.mko-cran:first-child{border-left:0}
.mko-cran.mko-on{background:#1f2937;color:#fde68a;border-radius:6px}
.mko-marge{text-align:center;font-size:18px;margin:4px 0}

/* --- acte 7 : la scie --- */
.mko-barre-jeu{position:relative;height:74px;background:#166534;border-radius:12px;box-shadow:inset 0 0 0 6px #8d6748;padding:12px;cursor:pointer;overflow:hidden}
.mko-barre-bois{height:100%;background:linear-gradient(#f5deb3,#d2a86e);border-radius:4px;display:flex;align-items:center;justify-content:center;transition:width .8s cubic-bezier(.5,0,.3,1);box-shadow:0 4px 0 #a0743f;min-width:120px}
.mko-scie-on .mko-barre-bois{animation:mko-scie .15s linear 4}
@keyframes mko-scie{50%{transform:translateX(3px)}}
.mko-copeau{position:absolute;right:20px;top:20px;background:#f97316;color:#fff;font-size:11px;font-weight:800;border-radius:4px;padding:2px 6px;animation:mko-envole 1.6s ease-in forwards;pointer-events:none}
.mko-etiquette{flex-direction:row;gap:10px}
.mko-crochet{border:3px dashed #1e3a8a;border-radius:12px;padding:10px;background:#eff6ff;display:flex;flex-wrap:wrap;gap:6px;align-items:center;cursor:pointer;min-height:56px}
.mko-crochet b{width:100%;color:#1e3a8a}
.mko-crochet span{background:#1e3a8a;color:#fff;border-radius:4px 4px 12px 12px;padding:4px 8px;font-size:13px;animation:mko-pend 1.6s ease-in-out infinite alternate;transform-origin:top center}
@keyframes mko-pend{from{transform:rotate(-3deg)}to{transform:rotate(3deg)}}
.mko-camembert-zone{display:flex;gap:20px;align-items:center;justify-content:center;flex-wrap:wrap}
.mko-camembert{width:200px;height:200px;border-radius:50%;box-shadow:0 10px 20px rgba(0,0,0,.3);animation:mko-camembert 1.4s ease both}
@keyframes mko-camembert{from{transform:rotate(-180deg) scale(.2);opacity:0}}
.mko-legende{list-style:none;padding:0;margin:0}
.mko-legende li{display:flex;align-items:center;gap:8px;margin:4px 0}
.mko-legende i{width:16px;height:16px;border-radius:4px;display:inline-block}

/* --- acte 8 : le brouillon --- */
.mko-brouillon-zone{display:grid;grid-template-columns:1fr 300px;gap:14px;align-items:start}
.mko-brouillon{position:relative;background:#fffef5;background-image:repeating-linear-gradient(transparent 0 31px,#bfdbfe 31px 32px);border-radius:4px;padding:14px 18px 14px 40px;box-shadow:0 10px 20px rgba(0,0,0,.25);font-family:"Segoe Print","Comic Sans MS","Bradley Hand",cursive;transform:rotate(-.6deg);cursor:zoom-in;overflow:hidden}
.mko-brouillon::before{content:"";position:absolute;left:28px;top:0;bottom:0;width:2px;background:#fca5a5}
.mko-brouillon-titre{margin:0 0 6px;font-weight:700;text-decoration:underline}
.mko-br-l{display:flex;justify-content:space-between;width:100%;border:0;background:none;font:inherit;font-size:16px;line-height:32px;padding:0 8px;border-radius:20px;cursor:pointer;color:#1e3a8a;position:relative}
.mko-br-l:hover{background:rgba(253,224,71,.25)}
.mko-cercle{box-shadow:0 0 0 3px #dc2626;border-radius:50%/40%}
.mko-trouve{background:rgba(134,239,172,.4)}
.mko-oublie{background:rgba(253,224,71,.6);animation:pdl-clig .5s 4}
.mko-br-total{font-weight:900;border-top:2px solid #1e3a8a;cursor:default}
.mko-vert b{color:#15803d}.mko-rougeT b{color:#b91c1c}
.mko-loupe{position:absolute;width:90px;height:90px;margin:-45px 0 0 -45px;border-radius:50%;border:5px solid #57534e;box-shadow:0 0 0 2px #fff,inset 0 0 20px rgba(255,255,255,.6);pointer-events:none;background:rgba(255,255,255,.08);backdrop-filter:contrast(1.3) saturate(1.4)}
.mko-loupe::after{content:"";position:absolute;right:-26px;bottom:-26px;width:34px;height:10px;background:#57534e;border-radius:4px;transform:rotate(45deg)}
.mko-br-balance .mko-fleau{background:#166534;border-radius:14px;box-shadow:inset 0 0 0 6px #8d6748;height:230px}
.mko-br-balance>p{text-align:center;font-size:22px;letter-spacing:.2em}
.mko-raisons{max-width:780px;margin:0 auto;width:100%}

/* --- acte 9 : les colonnes et le pont --- */
.mko-cols-zone{position:relative;height:260px;background:#1f2937;border-radius:14px;overflow:hidden;touch-action:none}
.mko-cols-zero{position:absolute;left:0;right:0;top:50%;height:3px;background:#fff}
.mko-cols-zero span{position:absolute;left:6px;top:-20px;color:#fff;font-size:12px;font-weight:800}
.mko-col{position:absolute;width:20%;transition:height .5s cubic-bezier(.3,1.3,.5,1);display:flex;flex-direction:column;align-items:center}
.mko-col-pos{bottom:50%;background:linear-gradient(#4ade80,#16a34a);border-radius:6px 6px 0 0}
.mko-col-neg{top:50%;background:linear-gradient(#dc2626,#f87171);border-radius:0 0 6px 6px;flex-direction:column-reverse}
.mko-col b{color:#fff;font-size:13px;white-space:nowrap;padding:2px}
.mko-col-poignee{background:#fbbf24;color:#1f2937;border-radius:6px;padding:0 10px;font-weight:900;cursor:ns-resize;margin:-12px 0 0;touch-action:none;user-select:none}
.mko-col-neg .mko-col-poignee{margin:0 0 -12px}
.mko-col-ok{box-shadow:0 0 16px #fde047}
.mko-cols-saisies{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.mko-col-saisie{background:#fff;border-radius:12px;padding:8px;display:flex;flex-direction:column;gap:4px;align-items:flex-start;border:2px solid #e7e5e4}
.mko-col-saisie input{width:120px;font-size:17px}
.mko-col-saisie.mko-ok{border-color:#16a34a;background:#f0fdf4}.mko-col-saisie.mko-montre{border-color:#f59e0b;background:#fffbeb}
.mko-pont-scene{position:relative;display:grid;grid-template-rows:auto 1fr auto;gap:0;background:linear-gradient(#bae6fd,#e0f2fe);border-radius:14px;overflow:hidden;min-height:330px}
.mko-falaise{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;background:linear-gradient(#a16207,#713f12);color:#fff;flex-wrap:wrap;position:relative}
.mko-falaise-haut{border-radius:0 0 40% 0/0 0 30px 0}
.mko-falaise-bas{border-radius:40% 0 0 0/30px 0 0 0;background:linear-gradient(#713f12,#451a03)}
.mko-marcheur{font-size:34px;transition:transform 3s ease-in-out}
.mko-pont-fini .mko-marcheur{animation:mko-traverse 3.2s ease-in-out forwards}
@keyframes mko-traverse{0%{transform:translate(0,0)}15%{transform:translate(-20px,-6px)}100%{transform:translate(-40px,260px)}}
.mko-vide{position:relative;padding:12px;background:repeating-linear-gradient(135deg,rgba(14,116,144,.05) 0 10px,transparent 10px 20px)}
.mko-tablier{display:flex;flex-direction:column;gap:4px;align-items:center;transform:perspective(600px) rotateX(18deg)}
.mko-planche-posee,.mko-planche-vide{width:min(560px,96%);border-radius:4px;min-height:30px}
.mko-planche-vide{border:2px dashed rgba(113,63,18,.35)}
.mko-planche-posee{border:0;font:inherit;font-weight:900;color:#fff;display:flex;justify-content:space-between;align-items:center;padding:4px 12px;cursor:pointer;background:repeating-linear-gradient(90deg,#b45309 0 40px,#92400e 40px 42px);box-shadow:0 4px 0 #451a03;animation:mko-pose .5s cubic-bezier(.3,1.5,.5,1) both}
.mko-planche-posee small{font-weight:600;font-size:12px;opacity:.9}
.mko-plus{outline:3px solid #22c55e}.mko-moins{outline:3px solid #ef4444}
@keyframes mko-pose{from{transform:translateY(-40px) rotate(-6deg);opacity:0}}
.mko-chute{animation:mko-chute 1.3s ease-in forwards !important}
@keyframes mko-chute{to{transform:translateY(300px) rotate(40deg);opacity:0}}
.mko-compteur-pont{background:#fff;color:#1f2937;border-radius:10px;padding:4px 10px;font-weight:800}
.mko-compteur-pont.mko-ok{background:#22c55e;color:#fff}.mko-compteur-pont.mko-ok .mko-compteur{color:#fff}
.mko-calcul-direct{font-family:"Courier New",monospace;font-weight:700;background:#fff;border-radius:10px;padding:6px 10px;margin:0;overflow-wrap:anywhere}
.mko-tas{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.mko-planche{display:flex;flex-direction:column;align-items:center;border:0;border-radius:6px;padding:8px 10px;font:inherit;cursor:pointer;background:repeating-linear-gradient(90deg,#fcd34d 0 30px,#fbbf24 30px 32px);box-shadow:0 4px 0 #b45309;max-width:220px;touch-action:none}
.mko-planche b{font-size:16px}.mko-planche span{font-size:12px;text-align:center}
.mko-planche small{font-size:11px;color:#57534e}
.mko-planche.mko-on{transform:translateY(-4px);box-shadow:0 0 0 3px #1f2937,0 8px 0 #b45309}
.mko-pont-choix{background:#fff;border-radius:12px;padding:10px;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center}
.mko-pont-choix p{width:100%;text-align:center;margin:0;font-weight:800}
.mko-ecartees{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:13px}

/* --- acte 10 : les armoires --- */
.mko-niveau{position:relative;height:28px;width:min(360px,90%);margin:0 auto;background:linear-gradient(#ecfccb,#bef264);border:3px solid #3f6212;border-radius:99px}
.mko-niveau::before,.mko-niveau::after{content:"";position:absolute;top:2px;bottom:2px;width:2px;background:#3f6212;left:44%}
.mko-niveau::after{left:56%}
.mko-bulle-air{position:absolute;top:3px;width:44px;height:16px;margin-left:-22px;border-radius:99px;background:radial-gradient(circle at 40% 35%,#fff,#d9f99d);transition:left .8s cubic-bezier(.3,1.4,.5,1)}
.mko-armoires{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mko-armoire{background:linear-gradient(#92400e,#78350f);border:5px solid #451a03;border-radius:8px;padding:8px;cursor:pointer;display:flex;flex-direction:column;min-height:260px}
.mko-armoire>b{color:#fef3c7;text-align:center}
.mko-armoire-corps{flex:1;display:flex;flex-direction:column-reverse;gap:3px;justify-content:flex-start;padding:6px;background:rgba(0,0,0,.2);border-radius:4px;margin:6px 0}
.mko-carton{background:linear-gradient(#e7c9a0,#c49a6c);border-radius:3px;font-size:12px;font-weight:700;display:flex;align-items:center;padding:0 6px;box-shadow:inset 0 -3px 0 #a0743f;animation:mko-tombe .5s ease both;cursor:pointer;overflow:hidden}
.mko-vibre{animation:pdl-secoue .4s 3;background:#fca5a5 !important}
.mko-armoire-total{color:#fff;font-weight:900;text-align:center}

/* --- acte 11 : le film --- */
.mko-film-tableau{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:#1f2937;padding:12px;border-radius:14px}
.mko-film-colonne{background:#fafaf9;border-radius:8px;padding:8px;min-height:200px;display:flex;flex-direction:column;gap:4px;cursor:pointer;border-top:8px solid}
.mko-fc-charges{border-color:#dc2626}.mko-fc-produits{border-color:#16a34a}
.mko-diapo-posee,.mko-diapo-or{display:flex;justify-content:space-between;gap:6px;background:#fff;border:1px solid #e7e5e4;border-radius:4px;padding:3px 6px;font-size:13px;animation:mko-tombe .4s ease both}
.mko-diapo-posee i,.mko-diapo-or i{font-style:normal;font-weight:800}
.mko-diapo-or{background:linear-gradient(#fde68a,#f59e0b);font-weight:900}
.mko-film-total{margin-top:auto;font-weight:900;border-top:2px solid #1f2937;padding-top:4px}
.mko-diapo{background:linear-gradient(#f5f5f4,#d6d3d1);box-shadow:0 4px 0 #78716c;border:3px solid #1f2937}
.mko-photofilm .mko-pf-tableaux{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap}
.mko-pf-t{background:#fff;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:4px;min-width:200px;box-shadow:0 6px 14px rgba(0,0,0,.2)}
.mko-pf-or{background:linear-gradient(#fde68a,#f59e0b);border-radius:4px;padding:2px 6px;font-weight:900;animation:pdl-pulse 1.6s infinite}
.mko-pf-fleche{font-weight:900;color:#b45309;font-size:20px;animation:mko-retenu 1.2s ease-in-out infinite}

/* --- les documents --- */
.mko-doc{background:#fff;border-radius:4px;padding:14px;position:relative}
.mko-doc-tete{display:flex;gap:10px;align-items:flex-start;border-bottom:3px solid #0f766e;padding-bottom:8px;margin-bottom:10px;flex-wrap:wrap}
.mko-doc-logo{width:40px;height:40px;border-radius:10px;background:#0f766e;color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px}
.mko-doc-tete>div:nth-child(2){display:flex;flex-direction:column;font-size:12px;flex:1;min-width:160px}
.mko-doc-tete>div:nth-child(2) b{font-size:15px}
.mko-doc-titre{display:flex;flex-direction:column;width:100%}
.mko-doc-titre b{font-family:Fraunces,Georgia,serif;font-size:19px}
.mko-doc-titre i{font-size:13px;color:#57534e}
.mko-doc-table td{font-size:13px}
.mko-doc-table td:last-child{white-space:nowrap}
.mko-dl-tot td{font-weight:900;background:#f5f5f4}
.mko-dl-or td{font-weight:900;background:#fef3c7}
.mko-dl-entree td:last-child,.mko-dl-produit td:last-child{color:#15803d}
.mko-dl-sortie td:last-child,.mko-dl-charge td:last-child{color:#b91c1c}
.mko-dl-faux td:nth-child(2){color:#b91c1c;text-decoration:line-through}
.mko-dl-orange td:nth-child(2){color:#c2410c}.mko-dl-bleu td:nth-child(2){color:#1d4ed8}.mko-dl-vert td:nth-child(2){color:#15803d}
.mko-doc-ticket .mko-doc-table{font-family:"Courier New",monospace}
.mko-pointable{cursor:pointer}
.mko-pointable:hover td{background:#fef9c3}
.mko-pointe td,.mko-bonne-ligne td{background:#fde047 !important;box-shadow:inset 0 0 0 1px #ca8a04}
.mko-lettre{font-family:Georgia,serif;font-size:15px;max-width:640px;margin:0 auto;overflow:hidden}
.mko-lettre-banque{display:flex;flex-direction:column;color:#0c4a6e;border-bottom:2px solid #0c4a6e;margin-bottom:10px}
.mko-lettre-adr{text-align:right;font-size:13px}
.mko-doc-sign{text-align:right;font-style:italic}
.mko-tampon-accorde{position:absolute;right:20px;top:40%;font-size:24px;border-color:#16a34a;color:#16a34a;background:rgba(255,255,255,.6)}

/* --- acte 12 : la banque --- */
.mko-mode-banque{background:#0c4a6e}
.mko-banque-salle{position:relative;background:linear-gradient(#f0f9ff,#fff);border-radius:16px;padding:14px;box-shadow:0 12px 30px rgba(0,0,0,.35);overflow:hidden}
.mko-q-banque{display:flex;flex-direction:column;gap:10px}
.mko-eventail{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;padding:14px 4px}
.mko-doc-carte{width:150px;min-height:110px;border:0;background:#fff;border-radius:6px;box-shadow:0 8px 16px rgba(0,0,0,.25);font:inherit;font-size:13px;font-weight:700;padding:10px;cursor:pointer;transform:rotate(var(--r));transition:transform .25s;display:flex;flex-direction:column;align-items:center;gap:6px;border-top:6px solid #0f766e}
.mko-doc-carte span{font-size:28px}
.mko-doc-carte:hover{transform:rotate(0) translateY(-8px) scale(1.05);z-index:2}
.mko-doc-pose{animation:pdl-tombe .6s ease both}
.mko-chuchote{background:#f5f3ff;border-radius:10px;padding:6px 10px;font-style:italic}
.mko-accorde{text-align:center}
.mko-accorde .mko-bulle,.mko-accorde .pdl-feuille{text-align:left}
.mko-fin{background:#fffaf2;border-radius:16px;padding:16px;text-align:center}
.mko-fin h2{font-family:Fraunces,Georgia,serif}
.mko-recap{text-align:left;background:#fff;border-radius:6px;padding:20px;margin-top:12px;box-shadow:0 6px 18px rgba(0,0,0,.2)}
.mko-recap h2{font-family:Fraunces,Georgia,serif;margin:0}
.mko-recap h3{border-bottom:2px solid #0f766e;margin:16px 0 6px;font-size:16px}
.mko-recap-sous{color:#57534e;margin:2px 0 10px}

/* --- téléphone --- */
@media (max-width:900px){
  .mko-etabli-grille{grid-template-columns:1fr}
  .mko-calendrier{min-height:0}
  .mko-coffre-etabli{grid-template-columns:1fr}
  .mko-caisse-zone,.mko-brouillon-zone{grid-template-columns:1fr}
}
@media (max-width:600px){
  .mko-centre{padding:8px}
  .mko-bacs-jeu,.mko-cols-saisies{grid-template-columns:1fr}
  .mko-armoires,.mko-film-tableau{grid-template-columns:1fr}
  .mko-releve-l{grid-template-columns:44px 1fr 56px 56px;font-size:12px}
  .mko-anim{height:230px}
  .mko-figurine{min-width:64px;padding:4px 6px}.mko-figurine span{font-size:22px}.mko-figurine b{font-size:10px}
  .mko-titre-court{display:none}
  .mko-ecran-film{left:110px}.mko-faisceau{width:30px}
  .mko-doc-table td,.mko-doc-table th{padding:3px 4px;font-size:11px}
}

/* --- impression du dossier (récapitulatif A4) --- */
@media print{
  body.mko-impression *{visibility:hidden !important}
  body.mko-impression .mko-recap,body.mko-impression .mko-recap *{visibility:visible !important}
  body.mko-impression .mko-recap{position:absolute;left:0;top:0;width:100%;box-shadow:none;margin:0;padding:0;font-size:11px}
  body.mko-impression .mko-recap .mko-doc{page-break-inside:avoid;padding:4px}
  body.mko-impression .mko-recap .mko-table td,body.mko-impression .mko-recap .mko-table th{padding:2px 4px;font-size:10px}
}
/* ==== mko : fin des styles ==== */
/* ==== mt9 : debut des styles ====
   « Rasinn FC — Studio Tribune » — préfixe mt9-. Le studio : tiroirs de
   blocs, supports qui se composent (affiche, story, note, film, discours,
   communiqué), le panel de visages dessinés et leurs jauges, la table de
   mixage, le mur des supports, la salle de crise, le fil des annonces. */
.mt9 .pdl-decor-contenu{max-width:1080px}
.mt9-hud-date{margin:0 auto;color:#fff;font-size:13px;font-weight:600;opacity:.9;text-align:center}
@media (max-width:620px){.mt9-hud-date{display:none}.mt9 .pdl-hud-outils button{width:32px;height:32px;font-size:15px}}
.mt9-cadre{width:100%;display:flex;flex-direction:column;gap:12px;align-items:stretch}
.mt9-exo{width:100%;display:flex;flex-direction:column;gap:12px;align-items:stretch}
.mt9-exo>.pdl-ex-titre{align-self:center;color:#fff}
.mt9-recit{background:rgba(15,23,42,.82);color:#f8fafc;border-radius:16px;padding:16px 20px;max-width:720px;font-size:17px;line-height:1.55;margin-top:auto}
.mt9-recit .pdl-cta{margin-top:12px}

/* --- l'encart 💡 Aide --- */
.mt9-aide{background:#fffbeb;border:2px solid #fcd34d;border-radius:14px;max-width:820px;width:100%;align-self:center;box-shadow:0 4px 14px rgba(0,0,0,.12)}
.mt9-aide-t{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;background:none;border:0;font:inherit;font-weight:800;font-size:15px;color:#92400e;padding:10px 14px;cursor:pointer}
.mt9-aide-t span{font-weight:500;font-size:13px;color:#b45309}
.mt9-aide-corps{padding:0 14px 12px;font-size:14px;line-height:1.45}
.mt9-aide-o{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.mt9-aide-opt{font:inherit;font-size:14px;background:#fff;border:2px solid #fde68a;border-radius:10px;padding:7px 12px;cursor:pointer;text-align:left}
.mt9-aide-opt.bon{background:#dcfce7;border-color:#16a34a}.mt9-aide-opt.faux{background:#fee2e2;border-color:#dc2626}
.mt9-aide-corr{margin:6px 0;color:#713f12}
.mt9-aide-re{font:inherit;font-size:13px;background:none;border:0;color:#b45309;cursor:pointer;text-decoration:underline}

/* --- la leçon, cinq habits --- */
.mt9-lecon{background:#fff;border-radius:16px;padding:16px 20px 18px;max-width:820px;width:100%;box-shadow:0 14px 34px rgba(0,0,0,.28);position:relative;animation:mt9-deplie .55s ease;transform-origin:top center}
@keyframes mt9-deplie{from{opacity:0;transform:perspective(700px) rotateX(-55deg)}to{opacity:1;transform:none}}
.mt9-lecon-tete{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px}
.mt9-lecon-onglet{font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#15803d}
.mt9-lecon h3{margin:4px 0 10px;font-size:20px;color:#1a1430}
.mt9-lecon ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:9px;font-size:15px;line-height:1.5}
.mt9-lecon-pt{animation:mt9-pt .45s ease}
@keyframes mt9-pt{from{opacity:0;transform:translateY(-6px) scaleY(.6)}to{opacity:1;transform:none}}
.mt9-lecon-plus{font:inherit;font-weight:700;margin-top:12px;background:#f0fdf4;border:2px dashed #86efac;border-radius:10px;padding:8px 14px;cursor:pointer;color:#166534}
.mt9-lecon-marge{margin:12px 0 4px;font-size:14px;color:#475569;font-style:italic;border-left:3px solid #facc15;padding-left:10px}
.mt9-lecon .pdl-cta{margin-top:10px}
.mt9-lecon-fiche{border-top:10px solid #15803d;background:linear-gradient(#fff,#fff) padding-box,repeating-linear-gradient(90deg,#15803d 0 18px,#facc15 18px 36px) border-box}
.mt9-lecon-fiche:after{content:"";position:absolute;left:0;right:0;top:46%;height:1px;background:repeating-linear-gradient(90deg,#cbd5e1 0 6px,transparent 6px 12px);opacity:.6;pointer-events:none}
.mt9-lecon-vocal{background:#0f172a;color:#e2e8f0}
.mt9-lecon-vocal h3{color:#fff}.mt9-lecon-vocal .mt9-lecon-onglet{color:#86efac}
.mt9-lecon-vocal .mt9-lecon-marge{color:#cbd5e1}
.mt9-onde{display:flex;align-items:center;gap:3px;height:40px;margin:4px 0 8px}
.mt9-onde i{flex:1;background:#22c55e;border-radius:3px;height:var(--h);animation:mt9-onde 1.1s ease-in-out infinite alternate}
@keyframes mt9-onde{from{transform:scaleY(.35)}to{transform:scaleY(1)}}
.mt9-lecon-tableau{background:#f8fafc;border:10px solid #94a3b8;border-radius:8px;font-family:"Comic Sans MS","Segoe Print",Outfit,sans-serif}
.mt9-lecon-tableau h3{color:#1d4ed8}.mt9-lecon-tableau ol{color:#0f172a}
.mt9-lecon-postit{background:#fef9c3;transform:rotate(-.7deg);box-shadow:0 18px 30px rgba(0,0,0,.3);font-family:"Comic Sans MS","Segoe Print",Outfit,sans-serif}
.mt9-lecon-postit .mt9-lecon-onglet{color:#a16207}
.mt9-lecon-urgence{border:4px solid #dc2626;background:#fff7f7}
.mt9-lecon-urgence .mt9-lecon-onglet{color:#dc2626}
.mt9-lecon-urgence .mt9-lecon-marge{color:#b91c1c;font-weight:800;font-style:normal;border-color:#dc2626}

/* --- les visages --- */
.mt9-visage{display:block;overflow:visible}
.mt9-visage.attente .mt9-oeil{animation:mt9-cligne 3.2s infinite}
@keyframes mt9-cligne{0%,92%,100%{transform:scaleY(1)}95%{transform:scaleY(.1)}}
.mt9-oeil{transform-box:fill-box;transform-origin:center}
.mt9-membre-tete{animation:mt9-saute .45s cubic-bezier(.3,1.6,.6,1)}
@keyframes mt9-saute{0%{transform:scale(.8) translateY(6px)}60%{transform:scale(1.12) translateY(-4px)}100%{transform:none}}

/* --- le panel --- */
.mt9-panel{background:rgba(255,255,255,.96);border-radius:16px;padding:12px;box-shadow:0 12px 30px rgba(0,0,0,.25);width:100%}
.mt9-panel-titre{font-weight:800;font-size:14px;color:#14532d;margin:0 0 8px;text-align:center}
.mt9-panel-rang{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:8px}
.mt9-membre{position:relative;background:#f8fafc;border:2px solid #e2e8f0;border-top:5px solid var(--c);border-radius:12px;padding:8px 6px 8px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;animation:mt9-arrive .5s ease both;min-width:0}
@keyframes mt9-arrive{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.mt9-membre.cible{background:#f0fdf4;border-color:#86efac;border-top-color:var(--c)}
.mt9-membre.gris{opacity:.42;filter:grayscale(.8)}
.mt9-membre-cible{position:absolute;top:4px;right:6px;font-size:14px}
.mt9-membre b{font-size:12.5px;color:#0f172a;line-height:1.15}
.mt9-membre i{font-size:11.5px;color:#64748b}
.mt9-jauge{display:flex;align-items:center;gap:3px;width:100%;margin:3px 0}
.mt9-jauge span{font-size:11px}
.mt9-jauge-barre{position:relative;flex:1;height:8px;border-radius:5px;background:linear-gradient(90deg,#ef4444,#f59e0b 45%,#22c55e)}
.mt9-jauge-barre i{position:absolute;top:-4px;width:6px;height:16px;margin-left:-3px;background:#0f172a;border:2px solid #fff;border-radius:3px;transition:left .6s cubic-bezier(.3,1.4,.6,1)}
.mt9-membre-bulle{font-size:12px;line-height:1.3;color:#334155;margin:2px 0 0;min-height:2.6em}
.mt9-membre-bulle.dit{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:5px 6px;animation:mt9-arrive .35s ease}
.mt9-membre-pique{font-size:11px;color:#b91c1c;margin:2px 0 0}
.mt9-membre-plait{font-size:11px;color:#15803d;margin:2px 0 0}

/* --- le studio --- */
.mt9-studio{display:flex;flex-direction:column;gap:12px;width:100%}
.mt9-brief{background:#fff;border-radius:14px;padding:12px 16px;box-shadow:0 8px 22px rgba(0,0,0,.2);border-left:6px solid #15803d}
.mt9-brief-sup{display:inline-block;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;background:#f0fdf4;color:#15803d;border-radius:6px;padding:2px 8px;margin-bottom:4px}
.mt9-brief b{display:block;font-size:18px;color:#0f172a}
.mt9-brief p{margin:4px 0;font-size:14.5px;color:#334155}
.mt9-brief-cibles{font-size:13.5px;font-weight:700;color:#14532d;display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.mt9-brief-cibles span{background:var(--c);color:#fff;border-radius:20px;padding:2px 9px;font-size:12.5px}
.mt9-brief-cibles em{font-weight:600;color:#475569}
.mt9-studio-corps{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:12px;align-items:start}
.mt9-studio.en-test .mt9-studio-corps{grid-template-columns:minmax(0,1fr);justify-items:center}
.mt9-tiroirs{background:rgba(255,255,255,.95);border-radius:14px;padding:10px;box-shadow:0 8px 22px rgba(0,0,0,.2);min-width:0}
.mt9-onglets{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:8px}
.mt9-onglet{font:inherit;font-size:13px;font-weight:700;border:2px solid #e2e8f0;background:#f8fafc;border-radius:9px;padding:5px 9px;cursor:pointer;color:#334155}
.mt9-onglet.on{background:#15803d;border-color:#15803d;color:#fff}
.mt9-onglet.fait:not(.on){border-color:#86efac;color:#166534}
.mt9-blocs{display:flex;flex-direction:column;gap:7px;animation:mt9-arrive .3s ease}
.mt9-blocs-aide{margin:0;font-size:12.5px;color:#64748b}
.mt9-bloc{font:inherit;font-size:14.5px;text-align:left;display:flex;gap:8px;align-items:flex-start;background:#fff;border:2px solid #cbd5e1;border-bottom-width:4px;border-radius:11px;padding:9px 11px;cursor:grab;transition:transform .15s,border-color .15s;color:#0f172a;line-height:1.35}
.mt9-bloc:hover:not(:disabled){transform:translateY(-2px) rotate(-.4deg);border-color:#22c55e}
.mt9-bloc:active{cursor:grabbing}
.mt9-bloc.pris{border-color:#16a34a;background:#f0fdf4}
.mt9-bloc:disabled{opacity:.4;cursor:default}
.mt9-bloc-ico{flex-shrink:0}
.mt9-plan-travail{min-width:0;display:flex;justify-content:center;width:100%}
.mt9-studio-pied{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;background:rgba(15,23,42,.75);color:#fff;border-radius:12px;padding:8px 12px;font-size:14px}
.mt9-passer{font:inherit;align-self:center;background:rgba(255,255,255,.85);border:0;border-radius:9px;padding:6px 12px;cursor:pointer;font-weight:700}
.mt9-verdict{background:#fff;border-radius:14px;padding:12px 16px;box-shadow:0 8px 22px rgba(0,0,0,.2);font-size:14.5px;line-height:1.45}
.mt9-verdict h4{margin:0 0 6px;font-size:16px}
.mt9-verdict ul{margin:0;padding-left:0;list-style:none;display:flex;flex-direction:column;gap:5px}
.mt9-verdict li.ok{color:#166534}.mt9-verdict li.ko{color:#7f1d1d;background:#fef2f2;border-radius:8px;padding:5px 8px}
.mt9-verdict-note{font-size:13px;color:#475569;margin:8px 0 0}
.mt9-verdict-btns{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:8px}

/* --- les supports --- */
.mt9-sup{position:relative;background:#fff;color:#0f172a;border-radius:6px;box-shadow:0 18px 38px rgba(0,0,0,.35);padding:14px;width:100%;max-width:440px;display:flex;flex-direction:column;gap:8px;animation:mt9-pose .5s ease}
@keyframes mt9-pose{from{opacity:0;transform:translateY(-14px) rotate(-2deg)}to{opacity:1;transform:none}}
.mt9-case{border-radius:8px;padding:6px 8px;transition:background .25s,box-shadow .25s;min-width:0;overflow-wrap:anywhere}
.mt9-case.vide{border:2px dashed #94a3b8;color:#64748b;font-size:13px;cursor:pointer;background:rgba(241,245,249,.7)}
.mt9-case.vide:hover,.mt9-case.active{border-color:#16a34a;background:#f0fdf4;box-shadow:0 0 0 3px rgba(34,197,94,.25)}
.mt9-case.pleine{cursor:default;animation:mt9-claque .35s cubic-bezier(.3,1.6,.6,1)}
@keyframes mt9-claque{from{transform:scale(1.08)}to{transform:none}}
.mt9-case.pleine.active{outline:2px solid #22c55e}
.mt9-case.pas-lue{opacity:.35}
.mt9-case.lue{background:#fef9c3;box-shadow:0 0 0 3px #facc15}
.mt9-case-ph{font-weight:600}
.mt9-case-pre{font-weight:700;opacity:.85}
.mt9-chip{display:inline-block;font-size:12px;background:#f1f5f9;border-radius:20px;padding:4px 10px!important}
.mt9-sup-pied{display:flex;flex-wrap:wrap;gap:6px}
.mt9-sup-sign{font-size:11px;color:#64748b;text-align:right;font-style:italic}
.mt9-photo{min-height:86px;display:flex;align-items:flex-end;background:linear-gradient(135deg,#14532d,#15803d 55%,#facc15);color:#fff!important;font-style:italic;font-size:13px}
.mt9-photo.pleine{flex-direction:column;align-items:flex-start;justify-content:flex-end;position:relative;min-height:120px;background:radial-gradient(circle at 70% 30%,rgba(250,204,21,.55),transparent 45%),linear-gradient(135deg,#14532d,#15803d 55%,#166534)}
.mt9-scene{font-size:40px;line-height:1;align-self:center;margin:auto 0 6px;filter:drop-shadow(0 4px 6px rgba(0,0,0,.35));animation:mt9-saute .6s ease;font-style:normal}
.mt9-photo.vide{color:#334155!important;background:rgba(241,245,249,.7)}
.mt9-sup-affiche{background:#fffdf5;border:8px solid #15803d;border-radius:4px}
.mt9-affiche-bandeau{font-size:12px;font-weight:900;letter-spacing:.18em;color:#15803d;text-align:center}
.mt9-affiche-titre{font-size:21px;font-weight:900;line-height:1.15;color:#14532d;text-transform:uppercase}
.mt9-affiche-preuve{font-size:14.5px;font-weight:600}
.mt9-affiche-action{background:#facc15;color:#14532d;font-weight:800;border-radius:6px}
.mt9-sup-story{max-width:280px;aspect-ratio:9/16;border-radius:26px;border:7px solid #0f172a;background:linear-gradient(180deg,#052e16,#166534 50%,#0f172a);color:#fff;padding:12px 10px}
.mt9-sup-story .mt9-case.vide{background:rgba(255,255,255,.12);color:#e2e8f0;border-color:rgba(255,255,255,.5)}
.mt9-story-barres{display:flex;gap:3px}.mt9-story-barres i{flex:1;height:3px;border-radius:2px;background:rgba(255,255,255,.55)}
.mt9-story-compte{font-size:12px;font-weight:700;display:flex;align-items:center;gap:5px}
.mt9-story-titre{font-size:19px;font-weight:900;line-height:1.15;text-shadow:0 2px 8px rgba(0,0,0,.5)}
.mt9-story-sticker{background:#fff;color:#14532d;font-weight:800;border-radius:12px;transform:rotate(-2deg);font-size:13.5px}
.mt9-sup-story .mt9-chip{background:rgba(255,255,255,.2);color:#fff}
.mt9-sup-story .mt9-sup-pied{margin-top:auto}
.mt9-sup-note{background:#fefce8;transform:rotate(.5deg);font-family:"Segoe UI",Outfit,sans-serif}
.mt9-punaise{position:absolute;top:-8px;left:50%;width:18px;height:18px;margin-left:-9px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fca5a5,#dc2626);box-shadow:0 3px 6px rgba(0,0,0,.35)}
.mt9-note-tete{font-size:11px;font-weight:800;letter-spacing:.05em;color:#854d0e;border-bottom:1px solid #fde68a;padding-bottom:4px}
.mt9-note-titre{font-size:17px;font-weight:800}
.mt9-note-action{background:#fef08a;font-weight:700}
.mt9-sup-communique{border-top:6px solid #15803d}
.mt9-comm-tete{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:12px;color:#475569;border-bottom:1px solid #e2e8f0;padding-bottom:6px}
.mt9-comm-tete b{color:#15803d;font-size:14px}
.mt9-comm-titre{font-size:18px;font-weight:800}
.mt9-comm-fin{font-style:italic}
.mt9-sup-film{background:#111827;color:#f8fafc;border-radius:8px;padding:8px}
.mt9-film-trous{height:12px;background:repeating-linear-gradient(90deg,transparent 0 8px,#f8fafc 8px 18px,transparent 18px 26px);opacity:.6;border-radius:2px}
.mt9-film-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.mt9-film-plan{background:linear-gradient(160deg,#1f2937,#14532d);border-radius:6px;padding:6px;min-height:110px;display:flex;flex-direction:column;gap:4px;font-size:13px}
.mt9-film-plan small{font-size:10.5px;color:#86efac;font-weight:700}
.mt9-sup-film .mt9-case.vide{background:rgba(255,255,255,.08);color:#cbd5e1;border-color:rgba(255,255,255,.4)}
.mt9-sup-film .mt9-sup-sign{color:#94a3b8}
.mt9-sup-discours{background:#fff;background-image:repeating-linear-gradient(#fff 0 25px,#dbeafe 25px 26px);border-left:4px solid #f87171;font-family:"Segoe Print","Comic Sans MS",Outfit,sans-serif}
.mt9-discours-tete{font-size:12px;font-weight:700;color:#b91c1c}
.mt9-manus{font-size:15.5px;line-height:1.45}
.mt9-souligne{text-decoration:underline wavy #16a34a}
.mt9-sup-communique .mt9-sup-sign,.mt9-sup-note .mt9-sup-sign{margin-top:4px}

/* --- le rangement --- */
.mt9-ranger{background:rgba(255,255,255,.96);border-radius:16px;padding:14px;box-shadow:0 12px 30px rgba(0,0,0,.25);max-width:860px;width:100%;align-self:center;display:flex;flex-direction:column;gap:10px}
.mt9-ranger .pdl-consigne{color:#0f172a;margin:0}
.mt9-ranger-prog{font-size:12px;font-weight:700;color:#64748b;text-align:right}
.mt9-ranger-item{position:relative;align-self:center;background:#fff;border:2px solid #0f172a;border-radius:12px;padding:12px 16px;font-size:16px;font-weight:600;max-width:560px;text-align:center;box-shadow:0 8px 0 #0f172a;animation:mt9-arrive .4s ease;display:flex;gap:10px;align-items:center}
.mt9-ranger-item.part{animation:mt9-part .6s ease forwards .25s}
@keyframes mt9-part{to{opacity:0;transform:translateX(120px) rotate(8deg)}}
.mt9-ranger-ico{font-size:24px}
.mt9-ranger-cases{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.mt9-case-r{font:inherit;position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;background:#f8fafc;border:2px solid var(--c,#94a3b8);border-radius:12px;padding:10px 8px;cursor:pointer;color:#0f172a;transition:transform .15s}
.mt9-case-r:hover:not(:disabled){transform:translateY(-2px)}
.mt9-case-r b{font-size:14.5px}.mt9-case-r small{font-size:12px;color:#64748b}
.mt9-case-r.faux{animation:pdl-secoue .4s ease;background:#fee2e2;border-color:#dc2626}
.mt9-case-r.bon{background:#dcfce7;border-color:#16a34a}
.mt9-case-r-n{position:absolute;top:4px;right:8px;font-size:12px;font-weight:800;color:#15803d}
.mt9-ranger-tampons .mt9-ranger-item{background:#fffdf5;transform:rotate(-1deg);font-family:Georgia,serif;font-weight:500;border-color:#a8a29e;box-shadow:0 6px 14px rgba(0,0,0,.2)}
.mt9-ranger-tampons .mt9-case-r{border-width:3px;border-style:double;background:#fff;color:var(--c,#0f172a)}
.mt9-coup-tampon{position:absolute;right:-10px;top:-16px;transform:rotate(-12deg);border:3px solid var(--c);color:var(--c);font-style:normal;font-weight:900;letter-spacing:.08em;text-transform:uppercase;font-size:13px;padding:2px 8px;border-radius:6px;background:rgba(255,255,255,.85);animation:mt9-tamponne .3s ease}
@keyframes mt9-tamponne{from{transform:rotate(-12deg) scale(2.2);opacity:0}to{transform:rotate(-12deg) scale(1);opacity:1}}
.mt9-bancs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mt9-banc{background:linear-gradient(#a16207,#713f12);color:#fff;border-radius:10px;padding:6px 10px;min-height:48px}
.mt9-banc b{font-size:12.5px}
.mt9-banc div{display:flex;flex-wrap:wrap;gap:2px;font-size:22px}
.mt9-assis{animation:mt9-saute .4s ease}
.mt9-viseur{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;align-items:center}
.mt9-viseur-cible{position:relative;width:min(300px,80vw);aspect-ratio:1}
.mt9-viseur-cible .mt9-case-r{position:absolute;border-radius:50%;justify-content:center}
.mt9-viseur-cible .mt9-r-cible{inset:0;background:repeating-radial-gradient(circle,#fff 0 18px,#fee2e2 18px 36px);border-color:#dc2626;justify-content:flex-start;padding-top:16px}
.mt9-viseur-cible .mt9-r-coeur{inset:30%;background:#dc2626;color:#fff;border-color:#7f1d1d;z-index:1;padding:4px}
.mt9-viseur-cible .mt9-r-coeur small{color:#fee2e2}
.mt9-viseur-cible .mt9-r-coeur b{font-size:13px}
.mt9-viseur-cote{display:flex;flex-direction:column;gap:8px;min-width:170px}
.mt9-ranger-fleches .mt9-case-r{background:linear-gradient(90deg,#f8fafc 70%,#dcfce7);clip-path:polygon(0 0,88% 0,100% 50%,88% 100%,0 100%);padding-right:22px}

/* --- la table de mixage --- */
.mt9-mix{background:#1f2937;color:#f8fafc;border-radius:16px;padding:14px;box-shadow:0 14px 34px rgba(0,0,0,.4);max-width:860px;width:100%;align-self:center;display:flex;flex-direction:column;gap:12px}
.mt9-mix-tete b{display:block;font-size:17px}.mt9-mix-tete span{font-size:13px;color:#86efac}
.mt9-mix-corps{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;align-items:center}
.mt9-mix-public{background:#f8fafc;color:#0f172a;border-radius:12px;padding:8px;display:flex;flex-direction:column;align-items:center;text-align:center;border-top:5px solid var(--c)}
.mt9-mix-public b{font-size:13px}.mt9-mix-public i{font-size:11.5px;color:#64748b}
.mt9-mix-texte{background:#fff;color:#0f172a;border-radius:10px;padding:12px 14px;font-size:16px;line-height:1.5;min-height:110px;font-family:Georgia,serif}
.mt9-mix-texte p{margin:0;animation:mt9-arrive .3s ease}
.mt9-faders{display:flex;flex-direction:column;gap:10px}
.mt9-fader{position:relative;display:grid;grid-template-columns:90px 70px minmax(0,1fr) 90px;align-items:center;gap:8px;font-size:13px;background:#111827;border-radius:10px;padding:8px 10px}
.mt9-fader b{color:#facc15}
.mt9-fader input{width:100%;accent-color:#22c55e;height:26px}
.mt9-fader-piste{position:relative;display:block;min-width:0}
.mt9-fader-zone{position:absolute;bottom:-3px;height:5px;background:#22c55e;border-radius:3px;pointer-events:none}

/* --- le mur des supports --- */
.mt9-mur{background:repeating-linear-gradient(45deg,#b45309 0 6px,#a16207 6px 12px);border-radius:16px;padding:14px;box-shadow:0 14px 34px rgba(0,0,0,.4);max-width:980px;width:100%;align-self:center;display:flex;flex-direction:column;gap:10px}
.mt9-mur>.pdl-consigne{background:#fff;border-radius:10px;padding:8px 12px;margin:0;color:#0f172a}
.mt9-mur-budget{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:10px;align-items:center;background:#0f172a;color:#fff;border-radius:12px;padding:8px 12px}
.mt9-mur-budget div b{display:block;font-size:15px}.mt9-mur-budget div span{font-size:11px;color:#94a3b8}
.mt9-mur-budget.trop{background:#7f1d1d}
.mt9-mur-barre{height:10px;background:#334155;border-radius:6px;overflow:hidden}
.mt9-mur-barre i{display:block;height:100%;background:linear-gradient(90deg,#22c55e,#facc15);transition:width .4s}
.mt9-mur-budget.trop .mt9-mur-barre i{background:#ef4444}
.mt9-mur-visages{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.mt9-mur-v{background:rgba(255,255,255,.75);border-radius:10px;padding:4px 8px;display:flex;flex-direction:column;align-items:center;opacity:.6;transition:opacity .3s}
.mt9-mur-v.on{opacity:1;background:#fff;box-shadow:0 0 0 3px #22c55e}
.mt9-mur-v small{font-size:11px;font-weight:700}
.mt9-mur-cartes{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.mt9-carte-sup{font:inherit;text-align:left;background:#fffdf5;border:0;border-radius:4px;padding:10px 10px 8px;cursor:pointer;transform:rotate(var(--r));box-shadow:0 6px 12px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:4px;position:relative;transition:transform .2s;color:#0f172a}
.mt9-carte-sup:before{content:"";position:absolute;top:-6px;left:50%;width:12px;height:12px;margin-left:-6px;border-radius:50%;background:#2563eb;box-shadow:0 2px 4px rgba(0,0,0,.4)}
.mt9-carte-sup:hover{transform:rotate(0) scale(1.03)}
.mt9-carte-sup.prise{background:#dcfce7;outline:3px solid #16a34a;transform:rotate(0) scale(1.03)}
.mt9-carte-sup b{font-size:14px;line-height:1.3}
.mt9-carte-type{font-size:11px;font-weight:800;text-transform:uppercase;color:#92400e}
.mt9-carte-chiffres{font-size:13px;font-weight:700;color:#1e3a8a}
.mt9-carte-pub{font-size:11.5px;color:#475569}

/* --- la salle de crise --- */
.mt9-crise{display:flex;flex-direction:column;gap:12px;max-width:900px;width:100%;align-self:center}
.mt9-crise-ecran{background:#0b0b0f;color:#fff;border-radius:14px;padding:12px 14px;box-shadow:0 0 0 2px #dc2626,0 14px 34px rgba(0,0,0,.5);display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}
.mt9-crise-live{font-weight:700;font-size:14px}
.mt9-rec{color:#ef4444;animation:mt9-clignote 1s steps(2) infinite}
@keyframes mt9-clignote{50%{opacity:.2}}
.mt9-crise-compteur b{font-size:28px;font-variant-numeric:tabular-nums;color:#facc15;margin-right:6px}
.mt9-crise-compteur span{font-size:12.5px;color:#cbd5e1}
.mt9-crise-compteur.rouge b{color:#ef4444;animation:pdl-secoue .5s ease infinite}
.mt9-crise-coms{width:100%;display:flex;flex-wrap:wrap;gap:6px}
.mt9-crise-coms span{background:#1f2937;border-radius:12px;padding:4px 10px;font-size:12.5px;animation:mt9-arrive .4s ease}
.mt9-crise-etape{background:#fff;border-radius:14px;padding:12px 14px;box-shadow:0 10px 26px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:10px}
.mt9-crise-etape h4{margin:0;font-size:16px;color:#7f1d1d}
.mt9-crise-voix{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}
.mt9-voix{font:inherit;text-align:left;background:#f8fafc;border:2px solid #cbd5e1;border-radius:11px;padding:10px;cursor:pointer;display:flex;flex-direction:column;gap:4px;font-size:14.5px;color:#0f172a}
.mt9-voix small{font-size:12.5px}
.mt9-voix.bon{border-color:#16a34a;background:#f0fdf4}.mt9-voix.bon small{color:#166534}
.mt9-voix.faux{border-color:#dc2626;background:#fef2f2;opacity:.85}.mt9-voix.faux small{color:#991b1b}
.mt9-crise-comm{display:flex;flex-direction:column;gap:6px;border:1px solid #e2e8f0;border-top:6px solid #15803d;border-radius:8px;padding:10px;background:#fff}
.mt9-temps{border:2px dashed #cbd5e1;border-radius:9px;padding:7px 10px;font-size:14.5px;cursor:pointer;display:flex;flex-direction:column;gap:2px}
.mt9-temps small{font-size:11.5px;font-weight:800;color:#15803d;text-transform:uppercase}
.mt9-temps em{color:#94a3b8;font-size:13px}
.mt9-temps.plein{border-style:solid;border-color:#94a3b8;animation:mt9-claque .3s ease}
.mt9-temps.bon{border-color:#16a34a;background:#f0fdf4}
.mt9-temps.faux{border-color:#dc2626;background:#fef2f2}
.mt9-temps-why{margin:2px 0 0;font-size:12.5px;color:#991b1b}
.mt9-crise-blocs{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:7px}
.mt9-alerte{background:rgba(15,15,20,.9);color:#fff;border-radius:16px;padding:18px;max-width:640px;box-shadow:0 0 0 3px #dc2626,0 0 40px rgba(220,38,38,.5);animation:mt9-alarme 1s ease 3}
@keyframes mt9-alarme{50%{box-shadow:0 0 0 3px #dc2626,0 0 80px rgba(220,38,38,.9)}}
.mt9-alerte-bandeau{font-weight:900;letter-spacing:.06em;color:#fca5a5;margin-bottom:8px}
.mt9-alerte p{font-size:16px;line-height:1.5}

/* --- le fil des annonces --- */
.mt9-fil{background:rgba(255,255,255,.96);border-radius:16px;padding:14px;box-shadow:0 12px 30px rgba(0,0,0,.25);max-width:980px;width:100%;align-self:center;display:flex;flex-direction:column;gap:10px}
.mt9-fil .pdl-consigne{color:#0f172a;margin:0}
.mt9-fil-ligne{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;position:relative}
.mt9-fil-ligne:before{content:"";position:absolute;left:4%;right:4%;top:15px;height:4px;background:#cbd5e1;border-radius:2px}
.mt9-fil-case{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;font-size:12.5px;cursor:pointer;min-width:0}
.mt9-fil-case>b{background:#0f172a;color:#fff;border-radius:20px;padding:4px 10px;font-size:12.5px;z-index:1}
.mt9-fil-case em{color:#94a3b8}
.mt9-fil-case.pleine>div{background:#f8fafc;border:2px solid #cbd5e1;border-radius:10px;padding:5px;display:flex;flex-direction:column;align-items:center;gap:2px;animation:mt9-claque .3s ease}
.mt9-fil-case.ok>div{border-color:#16a34a;background:#f0fdf4}
.mt9-fil-case.ko>div{border-color:#dc2626;background:#fef2f2;animation:pdl-secoue .4s ease}
.mt9-fil-src{font-size:11.5px;font-weight:700}
.mt9-fil-case.ok .mt9-fil-src{color:#166534}.mt9-fil-case.ko .mt9-fil-src{color:#991b1b}
.mt9-fil-cartes{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:7px}

/* --- la planche du plan --- */
.mt9-planche{background:rgba(255,255,255,.97);border-radius:16px;padding:14px;box-shadow:0 12px 30px rgba(0,0,0,.25);max-width:900px;width:100%;align-self:center;display:flex;flex-direction:column;gap:10px}
.mt9-planche .pdl-consigne{color:#0f172a;margin:0}
.mt9-ordre{display:flex;flex-wrap:wrap;gap:7px;justify-content:center}
.mt9-ordre-c{font:inherit;font-size:14px;font-weight:600;background:#fff;border:2px solid #0f172a;border-radius:10px;padding:8px 12px;cursor:pointer;box-shadow:0 4px 0 #0f172a;color:#0f172a}
.mt9-ordre-c.placee{background:#dcfce7;border-color:#16a34a;box-shadow:none;opacity:.7}
.mt9-ordre-c.secoue{animation:pdl-secoue .4s ease;background:#fee2e2}
.mt9-ordre-n{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#16a34a;color:#fff;font-size:12px;margin-right:6px}
.mt9-plan-doc{width:100%;border-collapse:collapse;font-size:13.5px;background:#fff}
.mt9-plan-doc caption{font-weight:800;text-align:left;padding:4px 0 6px;color:#14532d}
.mt9-plan-doc th{width:38%;text-align:left;background:#f0fdf4;color:#14532d;border:1px solid #bbf7d0;padding:6px 8px;vertical-align:top}
.mt9-plan-doc td{border:1px solid #e2e8f0;padding:6px 8px}
.mt9-plan-doc tr.rempli td{animation:mt9-arrive .4s ease}
.mt9-ligne-q{display:flex;flex-direction:column;gap:8px}

/* --- calculs --- */
.mt9-calcul{background:#fff;border-radius:16px;padding:14px 16px;box-shadow:0 12px 30px rgba(0,0,0,.25);max-width:760px;width:100%;align-self:center;display:flex;flex-direction:column;gap:8px}
.mt9-calcul-q{font-size:16px;font-weight:700;margin:0}
.mt9-rappel{background:#eff6ff;border:2px solid #bfdbfe;border-radius:10px;padding:8px 12px;font-size:14.5px;line-height:1.45}
.mt9-formule-btn{font:inherit;align-self:flex-start;background:#fefce8;border:2px solid #fde68a;border-radius:9px;padding:5px 10px;cursor:pointer;font-weight:700;font-size:13.5px}
.mt9-formule{margin:0;font-family:ui-monospace,Menlo,monospace;background:#f8fafc;border-radius:8px;padding:6px 10px}
.mt9-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.mt9-saisie input{font:inherit;font-size:18px;width:150px;border:2px solid #cbd5e1;border-radius:10px;padding:7px 10px}
.mt9-saisie .pdl-cta.petit{margin:0}

/* --- publication --- */
.mt9-publie{background:rgba(255,255,255,.97);border-radius:16px;padding:14px;max-width:820px;width:100%;box-shadow:0 12px 30px rgba(0,0,0,.25);display:flex;flex-direction:column;gap:10px}
.mt9-publie h3{margin:0;font-size:17px;color:#14532d}
.mt9-publie-g{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px;align-items:start}
.mt9-publie-doc{display:flex;justify-content:center;transform:scale(.92);transform-origin:top center}
.mt9-publie-d{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.mt9-publie-d li{display:flex;justify-content:space-between;background:#f8fafc;border-radius:9px;padding:7px 10px;font-size:14px;animation:mt9-arrive .4s ease both}
.mt9-publie-d li.plus b{color:#15803d}.mt9-publie-d li.moins b{color:#b91c1c}
.mt9-publie-d li b{font-size:16px}

/* --- l'imprimante et les commandes --- */
.mt9-imprimante{background:rgba(255,255,255,.96);border-radius:16px;padding:14px;box-shadow:0 12px 30px rgba(0,0,0,.25);max-width:900px;width:100%;display:flex;flex-direction:column;gap:10px;align-items:center;text-align:center}
.mt9-imprimante h3{margin:0;font-size:17px}
.mt9-deux{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%}
.mt9-commande-papier{background:#fffdf5;border:1px solid #e7e5e4;border-radius:4px;padding:12px;box-shadow:0 8px 16px rgba(0,0,0,.18);display:flex;flex-direction:column;gap:6px;align-items:center;animation:mt9-imprime 1.1s cubic-bezier(.2,.8,.3,1) both;text-align:center}
@keyframes mt9-imprime{from{clip-path:inset(0 0 100% 0);transform:translateY(-30px)}to{clip-path:inset(0 0 0 0);transform:none}}
.mt9-commande-papier img{width:62px;height:62px;border-radius:50%;object-fit:cover;border:3px solid #15803d}
.mt9-commande-papier b{font-size:17px;color:#0f172a}
.mt9-commande-papier p{margin:0;font-size:14px;color:#334155}
.mt9-commande-papier small{font-size:12px;color:#64748b;font-weight:700}
.mt9-commande-ico{font-size:42px}
.mt9-une{padding-top:0}
.mt9-fente{width:70%;height:12px;background:#1f2937;border-radius:0 0 10px 10px;box-shadow:inset 0 -3px 4px rgba(0,0,0,.6)}

/* --- le studio (écran principal) --- */
.mt9-atelier{width:100%;display:flex;flex-direction:column;gap:12px}
.mt9-atelier-tete{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.mt9-atelier-tete h2{margin:0;color:#fff;font-size:24px;text-shadow:0 2px 8px rgba(0,0,0,.6)}
.mt9-date{background:#facc15;color:#14532d;font-weight:800;border-radius:20px;padding:4px 12px;font-size:13.5px}
.mt9-atelier-corps{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:12px;align-items:start}
.mt9-atelier-centre,.mt9-atelier-cote{display:flex;flex-direction:column;gap:12px;min-width:0}
.mt9-banc-panel{background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.88));border-radius:16px;padding:10px;box-shadow:0 10px 26px rgba(0,0,0,.25)}
.mt9-banc-rang{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;background:linear-gradient(transparent 70%,#a16207 70%,#713f12);border-radius:10px;padding:4px 4px 10px}
.mt9-banc-m{display:flex;flex-direction:column;align-items:center;text-align:center;gap:1px;min-width:0}
.mt9-banc-m b{font-size:10.5px;line-height:1.1;color:#0f172a;background:rgba(255,255,255,.85);border-radius:5px;padding:1px 3px}
.mt9-banc-m span{font-size:11px;font-weight:800;color:#0f172a;background:rgba(255,255,255,.88);border-radius:5px;padding:0 4px;margin-top:1px}
.mt9-mini-jauge{width:90%;height:5px;background:#e2e8f0;border-radius:3px;overflow:hidden}
.mt9-mini-jauge i{display:block;height:100%;background:var(--c);transition:width .6s}
.mt9-indics{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mt9-indics div{background:rgba(255,255,255,.95);border-radius:12px;padding:8px 10px;display:flex;flex-direction:column}
.mt9-indics b{font-size:17px;color:#0f172a}.mt9-indics span{font-size:12px;color:#64748b}
.mt9-indics div.alerte{background:#fee2e2}
.mt9-mur-pubs{background:repeating-linear-gradient(45deg,#b45309 0 6px,#a16207 6px 12px);border-radius:12px;padding:8px;display:flex;flex-direction:column;gap:6px}
.mt9-mur-pubs>b{color:#fff;font-size:13.5px}
.mt9-mur-pubs>div{display:flex;flex-wrap:wrap;gap:6px}
.mt9-mur-pubs button{font:inherit;font-size:12px;background:#fffdf5;border:0;border-radius:3px;padding:6px 8px;cursor:pointer;transform:rotate(var(--r));box-shadow:0 3px 6px rgba(0,0,0,.3);max-width:150px;text-align:left;display:flex;gap:4px;color:#0f172a}
.mt9-mur-pubs button:hover{transform:rotate(0) scale(1.05)}
.mt9-liaison{background:rgba(255,255,255,.95);border-radius:12px;padding:8px 12px;font-size:13px}
.mt9-liaison ul{margin:4px 0 0;padding-left:16px;display:flex;flex-direction:column;gap:3px}
.mt9-acces-prof{background:rgba(255,255,255,.9);border-radius:10px;padding:6px 10px;display:flex;flex-wrap:wrap;gap:5px;align-items:center;font-size:12.5px}
.mt9-acces-prof button{font:inherit;font-size:12px;border:1px solid #cbd5e1;background:#fff;border-radius:6px;padding:3px 7px;cursor:pointer}
.mt9-tm-date{font-weight:800;color:#facc15;letter-spacing:.04em}
.mt9-accueil-panel{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}
.mt9-accueil-panel span{background:rgba(255,255,255,.9);border-radius:50%;padding:3px;animation:mt9-saute 1s ease both}

/* --- documents --- */
.mt9-badge{width:250px;margin:0 auto;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 14px 30px rgba(0,0,0,.35);display:flex;flex-direction:column;align-items:center;gap:4px;padding-bottom:12px;color:#0f172a;animation:mt9-pose .6s ease}
.mt9-badge-haut{width:100%;background:linear-gradient(90deg,#15803d,#166534);color:#facc15;font-weight:900;font-size:12px;letter-spacing:.1em;text-align:center;padding:8px}
.mt9-badge img{width:110px;height:130px;object-fit:cover;border-radius:10px;margin-top:8px;border:3px solid #facc15}
.mt9-badge b{font-size:20px}.mt9-badge span{font-size:13px;font-weight:700;color:#15803d}.mt9-badge i{font-size:11px;color:#64748b}
.mt9-badge-code{font-family:monospace;letter-spacing:2px;color:#0f172a}
.mt9-lettre{background:#fff;color:#0f172a;padding:18px 22px;font-size:15px;line-height:1.55;max-width:640px}
.mt9-manus-doc{font-family:"Segoe Print","Comic Sans MS",Outfit,sans-serif;background:#fffdf5}
.mt9-entete{display:flex;justify-content:space-between;align-items:baseline;border-bottom:3px solid #15803d;padding-bottom:6px;margin-bottom:10px;gap:8px}
.mt9-entete b{color:#15803d}.mt9-entete span{font-size:12px;color:#64748b}
.mt9-dest{text-align:right}
.mt9-signe{text-align:right;font-style:italic;margin-top:12px}
.mt9-doc-meta{font-size:12px;color:#64748b;margin-top:8px}
.mt9-doc-pub{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px}
.mt9-comm-crise h4{margin:0 0 8px;font-size:18px}
.mt9-article{background:#fff;color:#0f172a;max-width:640px;padding:14px 18px;font-family:Georgia,serif}
.mt9-article-tete{font-family:Outfit,sans-serif;font-size:12px;font-weight:900;letter-spacing:.06em;color:#be123c;border-bottom:2px solid #be123c;padding-bottom:4px}
.mt9-article h3{font-size:22px;margin:8px 0}
.mt9-article img{width:100%;border-radius:6px;max-height:240px;object-fit:cover}
.mt9-fin-badge{border:3px solid var(--c);border-radius:14px;padding:10px 14px;display:flex;flex-direction:column;align-items:center;gap:4px;background:#fff;text-align:center}
.mt9-fin-badge span{font-size:40px}.mt9-fin-badge b{font-size:18px;color:var(--c)}.mt9-fin-badge i{font-size:13px;color:#475569}
.mt9-fin-panel{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.mt9-fin-panel div{display:flex;flex-direction:column;align-items:center;font-size:11px}

/* --- téléphone --- */
@media (max-width:760px){
  .mt9-studio-corps,.mt9-atelier-corps,.mt9-publie-g,.mt9-deux{grid-template-columns:minmax(0,1fr)}
  .mt9-banc-rang{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:8px}
  .mt9-mix-corps{grid-template-columns:minmax(0,1fr)}
  .mt9-fader{grid-template-columns:auto minmax(0,1fr) auto;row-gap:2px;column-gap:6px}
  .mt9-fader b{grid-column:1/-1}
  .mt9-fader>span:not(.mt9-fader-piste){font-size:11px;color:#cbd5e1}
  /* pendant le test, les visages passent AU-DESSUS du support : on les voit réagir */
  .mt9-studio.en-test .mt9-brief{order:-2}
  .mt9-studio.en-test .mt9-panel{order:-1}
  .mt9-studio.en-test .mt9-panel-rang{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px}
  .mt9-studio.en-test .mt9-membre{flex:0 0 132px;scroll-snap-align:start}
  .mt9-studio.en-test .mt9-sup{transform:scale(.92);transform-origin:top center}
  .mt9-fil-ligne{grid-template-columns:minmax(0,1fr)}
  .mt9-fil-ligne:before{display:none}
  .mt9-fil-case{flex-direction:row;text-align:left;justify-content:flex-start}
  .mt9-mur-budget{grid-template-columns:1fr 1fr}
  .mt9-mur-barre{grid-column:1/-1;order:-1}
  .mt9-bancs{grid-template-columns:1fr}
  .mt9-panel-rang{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mt9-sup{max-width:100%}
  .mt9-film-plans{grid-template-columns:minmax(0,1fr)}
  .mt9-film-plan{min-height:0}
  .mt9-affiche-titre{font-size:18px}
}
/* ==== mt9 : fin des styles ==== */
/* ==== ms2 : debut des styles ====
   « Mi wa, mi pans ! » — vue subjective. Préfixe ms2-. L'écran est ce que
   voit le personnage : paupières, tunnel, teinte de l'émotion, lunettes. */
.ms2{background:radial-gradient(circle at 20% 0%,#1e3a5f 0%,#0f172a 55%,#0b1020 100%);color:#0f172a}
.ms2 .pdl-scene{padding:0}
.ms2-corps{display:grid;grid-template-columns:250px 1fr;gap:14px;padding:14px;min-height:min(86vh,820px)}
.ms2-centre{background:#f1f5f9;border-radius:18px;padding:14px;min-width:0;animation:pdl-entree .45s ease;position:relative}

/* --- le panneau de gauche --- */
.ms2-panneau{display:flex;flex-direction:column;gap:12px;color:#e2e8f0}
.ms2-moi{display:flex;gap:10px;align-items:center}
.ms2-moi img{width:54px;height:54px;border-radius:50%;object-fit:cover;border:3px solid #2dd4bf}
.ms2-moi span{display:flex;flex-direction:column;line-height:1.2}
.ms2-moi b{font-size:17px;color:#fff}.ms2-moi i{font-size:12px;font-style:normal;opacity:.75}
.ms2-panneau .pdl-jauge{background:rgba(255,255,255,.07);border-radius:12px;padding:8px 10px;color:#e2e8f0}
.ms2-souvenirs{background:rgba(255,255,255,.07);border-radius:12px;padding:8px 10px;font-size:13px}
.ms2-souvenirs ul{margin:6px 0 0;padding-left:16px;line-height:1.4}
.ms2-souvenirs.ms2-grand{background:#fff;color:#0f172a;font-size:15px;list-style:none;padding:12px 16px;border-radius:14px;margin:12px 0}
.ms2-souvenirs.ms2-grand li{padding:6px 0;border-bottom:1px dashed #cbd5e1;animation:pdl-entree .5s both}
.ms2-souvenirs.ms2-grand li::before{content:"🧠 "}
.ms2-outils{display:flex;gap:6px;flex-wrap:wrap}
.ms2-outils button{background:rgba(255,255,255,.12);border:0;color:#fff;border-radius:10px;width:42px;height:42px;font-size:18px;cursor:pointer;position:relative}
.ms2-outils button:hover{background:rgba(255,255,255,.24)}
.ms2-outils sup{position:absolute;top:-4px;right:-4px;background:#f59e0b;color:#0f172a;font-size:10px;font-weight:800;border-radius:99px;padding:1px 5px}

/* --- la ligne de cœur de la semaine --- */
.ms2-ecg{background:#04140f;border:1px solid #134e4a;border-radius:12px;padding:8px 10px;color:#5eead4;font-size:12px}
.ms2-ecg svg{width:100%;height:56px;display:block;margin-top:4px;background-image:linear-gradient(rgba(45,212,191,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(45,212,191,.08) 1px,transparent 1px);background-size:10px 10px}
.ms2-ecg-vide{stroke:#134e4a;stroke-width:1.5;stroke-dasharray:3 4}
.ms2-ecg-trace{stroke-dasharray:400;stroke-dashoffset:400;animation:ms2-trace 1.6s ease forwards;filter:drop-shadow(0 0 3px currentColor)}
@keyframes ms2-trace{to{stroke-dashoffset:0}}
.ms2-ecg-jours{display:flex;justify-content:space-between;margin-top:3px;font-size:11px;color:#99f6e4}

/* --- LA VUE SUBJECTIVE --- */
.ms2-vue{position:relative;border-radius:16px;overflow:hidden;min-height:min(58vh,520px);display:flex;background:#000;--px:0;--py:0;isolation:isolate}
.ms2-vue-img{position:absolute;inset:-4%;background-size:cover;background-position:center;
  transform:translate(calc(var(--px) * -14px),calc(var(--py) * -10px)) scale(1.05);transition:filter .7s ease,transform .25s ease-out;animation:ms2-souffle 14s ease-in-out infinite alternate}
@keyframes ms2-souffle{from{scale:1}to{scale:1.06}}
.ms2-vue-filtre{position:absolute;inset:0;mix-blend-mode:multiply;transition:background .6s;pointer-events:none}
.ms2-vue-teinte{position:absolute;inset:0;background:var(--emo);opacity:var(--teinte);mix-blend-mode:multiply;transition:opacity .8s,background .8s;pointer-events:none}
.ms2-vue-tunnel{position:absolute;inset:0;pointer-events:none;transition:opacity .5s;
  background:radial-gradient(ellipse at 50% 45%,transparent calc(62% - var(--tunnel) * 40%),rgba(2,6,23,.94) calc(98% - var(--tunnel) * 28%))}
.ms2-vue-tremble .ms2-vue-img{animation:ms2-tremble .22s linear infinite}
@keyframes ms2-tremble{0%{translate:0 0}25%{translate:1.5px -1px}50%{translate:-1px 1.5px}75%{translate:1px 1px}100%{translate:0 0}}
.ms2-paupiere{position:absolute;left:-5%;right:-5%;height:56%;background:#05060a;z-index:6;pointer-events:none;animation:ms2-ouvre 1.2s cubic-bezier(.6,0,.2,1) forwards}
.ms2-paupiere.ms2-haut{top:0;border-radius:0 0 50% 50%;transform-origin:top}
.ms2-paupiere.ms2-bas{bottom:0;border-radius:50% 50% 0 0;transform-origin:bottom}
@keyframes ms2-ouvre{0%{transform:scaleY(1)}35%{transform:scaleY(.82)}55%{transform:scaleY(.9)}100%{transform:scaleY(0)}}
.ms2-vue-cligne .ms2-paupiere{animation:ms2-ouvre 1.2s forwards,ms2-cligne 3.6s 1.4s ease-in-out infinite}
@keyframes ms2-cligne{0%,80%,100%{transform:scaleY(0)}88%{transform:scaleY(.55)}}
.ms2-vue-169{aspect-ratio:16/9;min-height:0}
.ms2-vue-169 .ms2-vue-img{animation:none}
.ms2-temoins .ms2-entendu{margin-top:10px;max-width:none}
.ms2-temoins .ms2-vue-coin{top:auto;bottom:10px}
.ms2-vue-contenu{position:relative;z-index:4;display:flex;flex-direction:column;justify-content:flex-end;gap:10px;padding:14px;width:100%}
.ms2-vue-coin{position:absolute;top:12px;right:12px}
.ms2-zone{position:absolute;z-index:3;border-radius:14px;transition:all .5s;pointer-events:none}
.ms2-zone.ms2-on{box-shadow:0 0 0 3px rgba(253,224,71,.95),0 0 26px 6px rgba(253,224,71,.55);animation:ms2-zone 1.8s ease-in-out infinite}
.ms2-zone span{position:absolute;left:0;top:-26px;background:#fde047;color:#0f172a;font-size:12px;font-weight:800;border-radius:8px;padding:2px 8px;white-space:nowrap}
@keyframes ms2-zone{50%{box-shadow:0 0 0 3px rgba(253,224,71,.6),0 0 36px 10px rgba(253,224,71,.35)}}
.ms2-cam{position:absolute;inset:0;z-index:5;pointer-events:none;color:#fff;font:700 13px ui-monospace,monospace;padding:12px;display:flex;justify-content:space-between;
  background:repeating-linear-gradient(0deg,rgba(255,255,255,.05) 0 1px,transparent 1px 3px)}
.ms2-cam b{color:#ef4444;animation:pdl-clig 1s steps(1) infinite}

/* --- l'émotiomètre --- */
.ms2-coeur{display:inline-flex;align-items:center;gap:6px;background:rgba(2,6,23,.78);color:#fff;border:2px solid var(--emo);border-radius:99px;padding:5px 12px 5px 8px;font-size:14px;backdrop-filter:blur(4px)}
.ms2-coeur-ico{color:#ef4444;font-size:22px;display:inline-block;animation:ms2-bat var(--duree) ease-in-out infinite}
@keyframes ms2-bat{0%,100%{transform:scale(1)}15%{transform:scale(1.32)}30%{transform:scale(1)}45%{transform:scale(1.18)}}
.ms2-coeur b{font-size:20px;font-variant-numeric:tabular-nums;min-width:36px;text-align:right}
.ms2-coeur i{font-style:normal;font-size:11px;opacity:.7}
.ms2-coeur-emo{margin-left:6px;padding-left:8px;border-left:1px solid rgba(255,255,255,.3);color:var(--emo);font-weight:700;filter:brightness(1.4)}
.ms2-coeur.ms2-fort{animation:ms2-alarme .9s ease-in-out infinite}
@keyframes ms2-alarme{50%{box-shadow:0 0 0 6px rgba(239,68,68,.35)}}

/* --- les pensées --- */
.ms2-nuage{position:relative;background:#fff;border-radius:30px;padding:12px 18px;max-width:640px;box-shadow:0 10px 30px rgba(0,0,0,.3);
  animation:ms2-flotte 4s ease-in-out infinite,pdl-entree .5s;font-size:17px;line-height:1.45;color:#1e293b;font-style:italic;margin-left:30px}
.ms2-nuage p{margin:0}
.ms2-nuage::before{content:"💭";position:absolute;left:-34px;top:-8px;font-size:30px;font-style:normal}
.ms2-nuage-bulles i{position:absolute;background:#fff;border-radius:50%;box-shadow:0 4px 10px rgba(0,0,0,.2)}
.ms2-nuage-bulles i:first-child{width:16px;height:16px;left:-14px;bottom:-6px}
.ms2-nuage-bulles i:last-child{width:9px;height:9px;left:-26px;bottom:-16px}
.ms2-nuage.ms2-petit{font-size:15px;padding:8px 14px}
@keyframes ms2-flotte{50%{transform:translateY(-5px)}}
.ms2-ligne-pensee{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.ms2-recit{background:rgba(2,6,23,.82);color:#f8fafc;border-left:4px solid #2dd4bf;border-radius:12px;padding:12px 16px;font-size:16.5px;line-height:1.5;max-width:780px}
.ms2-recit p{margin:0 0 6px}
.ms2-dialogue{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.ms2-entendu{background:rgba(2,6,23,.8);color:#fff;border-radius:14px;padding:10px 14px;max-width:720px;backdrop-filter:blur(3px)}
.ms2-entendu b{color:#fde68a;font-size:13px;text-transform:uppercase;letter-spacing:.04em}
.ms2-entendu p{margin:4px 0 0;font-size:17px;line-height:1.45;animation:pdl-entree .4s}
.ms2-entendu-cam{border:2px solid #ef4444;font-family:ui-monospace,monospace}

/* --- les lunettes --- */
.ms2-lunettes{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0}
.ms2-lunettes-t{font-weight:800;font-size:14px;color:#334155;margin-right:4px}
.ms2-lunette{font:inherit;font-size:14px;font-weight:700;display:inline-flex;align-items:center;gap:6px;border:2px solid #cbd5e1;background:#fff;border-radius:99px;padding:6px 14px;cursor:pointer;transition:all .2s}
.ms2-lunette span{font-size:18px}
.ms2-lunette:hover:not(:disabled){transform:translateY(-2px);border-color:#14b8a6}
.ms2-lunette.ms2-on{background:#0f766e;color:#fff;border-color:#0f766e;box-shadow:0 0 0 4px rgba(20,184,166,.25)}
.ms2-lunette.ms2-vu:not(.ms2-on)::after{content:"✓";color:#16a34a}
.ms2-lunette.ms2-ferme{opacity:.55;cursor:not-allowed}

/* --- la journée --- */
.ms2-journee-tete{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.ms2-journee-tete img{width:46px;height:46px;border-radius:50%;object-fit:cover;border:3px solid #14b8a6}
.ms2-tete-kenzo .ms2-journee-tete img{border-color:#f97316}
.ms2-tete-noemie .ms2-journee-tete img{border-color:#a855f7}
.ms2-journee-tete div{display:flex;flex-direction:column;line-height:1.2;flex:1;min-width:0}
.ms2-journee-tete b{font-size:16px}.ms2-journee-tete i{font-size:13px;color:#64748b;font-style:normal}
.ms2-moment{font-size:12px;color:#64748b;background:#e2e8f0;border-radius:99px;padding:3px 10px;white-space:nowrap}
.ms2-quitter{border:0;background:#e2e8f0;width:34px;height:34px;border-radius:50%;font-size:20px;cursor:pointer}
.ms2-etape{animation:pdl-entree .45s ease}
.ms2-ex-titre{font-family:Fraunces,Georgia,serif;font-size:21px;font-weight:700;margin:4px 0 10px;color:#0f172a}
.ms2-consigne{font-size:16px;line-height:1.5;color:#1e293b;margin:8px 0;white-space:pre-line}
.ms2-consigne i{color:#64748b;font-size:14px}
.ms2-aide{font-size:14px;color:#475569}

/* --- les leçons, six formes --- */
.ms2-lecon{border-radius:16px;padding:18px 20px;margin:4px 0;box-shadow:0 10px 30px rgba(15,23,42,.15);animation:pdl-entree .5s;position:relative}
.ms2-lecon-tete{display:flex;align-items:center;gap:12px;margin-bottom:8px}
.ms2-lecon-tete img{width:52px;height:52px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 3px 8px rgba(0,0,0,.2)}
.ms2-lecon-tete div{flex:1}
.ms2-lecon-tete span{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;opacity:.75}
.ms2-lecon-tete h3{font-family:Fraunces,Georgia,serif;font-size:24px;margin:2px 0 0}
.ms2-lecon-points{margin:8px 0 12px;padding-left:22px;line-height:1.55;font-size:16.5px}
.ms2-lecon-points li{margin:6px 0}
.ms2-lecon-points li.ms2-neuf{animation:ms2-deplie .55s ease}
@keyframes ms2-deplie{from{opacity:0;transform:perspective(600px) rotateX(-70deg);transform-origin:top}to{opacity:1;transform:none}}
.ms2-deplier{display:block;margin:6px 0}
.ms2-tout-lire{background:none;border:0;color:#64748b;text-decoration:underline;cursor:pointer;font-size:13px;margin-top:6px}
.ms2-lecon-carnet{background:#fffbeb repeating-linear-gradient(transparent 0 27px,#fde68a 27px 28px);border-left:10px solid #b45309}
.ms2-lecon-banc{background:linear-gradient(160deg,#ecfdf5,#d1fae5);border:2px solid #34d399}
.ms2-lecon-banc::after{content:"🌳";position:absolute;right:14px;top:10px;font-size:34px;opacity:.6}
.ms2-lecon-fiche{background:#fff;border:1px solid #e2e8f0;box-shadow:0 2px 0 #e2e8f0,0 4px 0 #f1f5f9,0 14px 30px rgba(15,23,42,.15)}
.ms2-lecon-postit{background:#fef08a;transform:rotate(-.8deg);box-shadow:4px 10px 20px rgba(0,0,0,.2)}
.ms2-lecon-classeur{background:#eff6ff;border-left:34px solid #1d4ed8;
  background-image:radial-gradient(circle at -18px 30px,#fff 7px,transparent 8px),radial-gradient(circle at -18px 120px,#fff 7px,transparent 8px)}
.ms2-lecon-miroir{background:linear-gradient(135deg,#f8fafc,#e2e8f0 40%,#f8fafc 60%,#cbd5e1);border:3px solid #94a3b8}

/* --- QCM --- */
.ms2-qcm-prog{font-size:13px;color:#64748b;font-weight:700;margin-bottom:6px}
.ms2-qcm-q{background:#fff;border-radius:22px;padding:14px 18px;font-size:17.5px;line-height:1.45;font-weight:600;box-shadow:0 6px 18px rgba(15,23,42,.1);position:relative;margin:6px 0 12px 22px;animation:pdl-entree .4s}
.ms2-qcm-q::before{content:"";position:absolute;left:-14px;bottom:8px;width:14px;height:14px;background:#fff;border-radius:50%}
.ms2-qcm-o{display:flex;flex-direction:column;gap:8px}
.ms2-opt{font:inherit;font-size:16px;text-align:left;display:flex;gap:10px;align-items:center;background:#fff;border:2px solid #e2e8f0;border-radius:14px;padding:10px 14px;cursor:pointer;transition:all .15s;color:#0f172a}
.ms2-opt:hover:not(:disabled){border-color:#14b8a6;transform:translateX(3px)}
.ms2-opt-l{flex:none;width:28px;height:28px;border-radius:50%;background:#e2e8f0;display:grid;place-items:center;font-weight:800;font-size:13px}
.ms2-opt.ms2-bon{border-color:#16a34a;background:#f0fdf4}.ms2-opt.ms2-bon .ms2-opt-l{background:#16a34a;color:#fff}
.ms2-opt.ms2-faux{border-color:#dc2626;background:#fef2f2}.ms2-opt.ms2-faux .ms2-opt-l{background:#dc2626;color:#fff}
.ms2-opt.ms2-eteint{opacity:.5}
.ms2-why{border-radius:14px;padding:12px 14px;margin-top:12px;font-size:15.5px;line-height:1.5;animation:pdl-entree .4s}
.ms2-why.ms2-bon{background:#f0fdf4;border:2px solid #86efac}
.ms2-why.ms2-faux{background:#fff7ed;border:2px solid #fdba74}
.ms2-why.ms2-neutre{background:#f8fafc;border:2px solid #cbd5e1}
.ms2-why p{margin:6px 0 0}

/* --- ranger : le moteur et ses habits --- */
.ms2-cartes{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.ms2-carte{font:inherit;font-size:14.5px;line-height:1.35;text-align:left;background:#fff;border:2px solid #e2e8f0;border-radius:14px;padding:9px 12px;cursor:pointer;max-width:340px;
  transform:rotate(var(--r,0deg));animation:pdl-entree .4s both;box-shadow:0 3px 8px rgba(15,23,42,.08);transition:transform .15s,border-color .15s;color:#0f172a}
.ms2-carte:hover{transform:rotate(0) translateY(-2px)}
.ms2-carte.ms2-sel{border-color:#0f766e;background:#ccfbf1;transform:rotate(0) scale(1.04);box-shadow:0 0 0 4px rgba(20,184,166,.25)}
.ms2-cases{display:grid;grid-template-columns:repeat(min(var(--n),3),minmax(0,1fr));gap:10px;margin:10px 0}
.ms2-case{background:#fff;border:2px dashed #94a3b8;border-radius:16px;padding:10px;min-height:96px;cursor:pointer;transition:all .2s}
.ms2-case.ms2-cible{border-color:#0f766e;background:#f0fdfa;box-shadow:0 0 0 3px rgba(20,184,166,.2)}
.ms2-case-t{font-weight:800;font-size:14.5px;margin-bottom:6px}
.ms2-pose{font-size:13.5px;background:#f1f5f9;border-radius:10px;padding:6px 8px;margin:5px 0;animation:pdl-entree .3s}
.ms2-pose.ms2-faux{background:#fee2e2;animation:ms2-non .4s}
.ms2-pose.ms2-bon{background:#dcfce7}
.ms2-pose em{display:block;font-size:12.5px;color:#475569;margin-top:3px}
@keyframes ms2-non{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
/* le lendemain : des nuages qui s'envolent, des pierres qui restent */
.ms2-tri-lendemain .ms2-case:first-child{background:linear-gradient(#e0f2fe,#fff);border-style:solid;border-color:#7dd3fc}
.ms2-tri-lendemain .ms2-case:last-child{background:linear-gradient(#f5f5f4,#e7e5e4);border-style:solid;border-color:#a8a29e}
.ms2-tri-lendemain .ms2-case:first-child .ms2-pose{border-radius:20px}
.ms2-tri-lendemain.ms2-fini .ms2-case:first-child .ms2-pose{animation:ms2-envol 2.4s ease forwards}
@keyframes ms2-envol{60%{opacity:.8}100%{opacity:.35;transform:translateY(-8px) scale(.97);filter:blur(1px)}}
.ms2-lendemain-reste{color:#57534e!important;font-weight:700}
/* les poches de la blouse */
.ms2-tri-poches .ms2-case{border-radius:6px 6px 26px 26px;border-style:solid;border-width:3px;background:#f0fdfa;border-color:#5eead4}
.ms2-tri-poches .ms2-case:nth-child(2){background:#fff7ed;border-color:#fdba74}
.ms2-tri-poches .ms2-case:nth-child(3){background:#faf5ff;border-color:#d8b4fe}
/* le miroir en quatre éclats */
.ms2-tri-miroir .ms2-cases{grid-template-columns:repeat(2,minmax(0,1fr))}
.ms2-tri-miroir .ms2-case{background:linear-gradient(135deg,#f8fafc,#e2e8f0 45%,#fff 55%,#cbd5e1);border:3px solid #94a3b8}
.ms2-tri-miroir .ms2-case:nth-child(1){clip-path:polygon(0 0,100% 0,96% 100%,0 94%)}
.ms2-tri-miroir .ms2-case:nth-child(2){clip-path:polygon(2% 0,100% 0,100% 96%,0 100%)}
.ms2-tri-miroir .ms2-case:nth-child(3){clip-path:polygon(0 4%,97% 0,100% 100%,0 100%)}
.ms2-tri-miroir .ms2-case:nth-child(4){clip-path:polygon(0 0,100% 5%,100% 100%,3% 100%)}
/* l'entonnoir : chaque étape garde moins que la précédente */
.ms2-tri-entonnoir .ms2-cases{grid-template-columns:1fr}
.ms2-tri-entonnoir .ms2-case{border-style:solid;border-color:#a5b4fc;background:#eef2ff;min-height:60px}
.ms2-tri-entonnoir .ms2-case:nth-child(2){margin:0 5%}.ms2-tri-entonnoir .ms2-case:nth-child(3){margin:0 10%}.ms2-tri-entonnoir .ms2-case:nth-child(4){margin:0 15%}
/* la caméra */
.ms2-tri-camera .ms2-case:first-child{background:#0f172a;color:#f8fafc;border-color:#ef4444;border-style:solid}
.ms2-tri-camera .ms2-case:first-child .ms2-pose{background:#1e293b;color:#f8fafc}
.ms2-tri-camera .ms2-case:last-child{background:#fdf4ff;border-color:#e879f9}
.ms2-cam-image{font-family:ui-monospace,monospace}
.ms2-tri-camera .ms2-case:first-child .ms2-pose em{color:#fca5a5}
/* le nuancier : la couleur de chaque émotion */
.ms2-tri-nuancier .ms2-case{border-style:solid;border-width:3px}
.ms2-tri-nuancier .ms2-case:nth-child(1){border-color:#f59e0b;background:#fffbeb}
.ms2-tri-nuancier .ms2-case:nth-child(2){border-color:#3b82f6;background:#eff6ff}
.ms2-tri-nuancier .ms2-case:nth-child(3){border-color:#8b5cf6;background:#f5f3ff}
.ms2-tri-nuancier .ms2-case:nth-child(4){border-color:#dc2626;background:#fef2f2}
.ms2-tri-nuancier .ms2-case:nth-child(5){border-color:#ec4899;background:#fdf2f8}
.ms2-tri-nuancier .ms2-case:nth-child(6){border-color:#65a30d;background:#f7fee7}
/* les règles, punaisées sur un liège */
.ms2-tri-regles .ms2-case{background:#fef9c3;border:none;box-shadow:2px 6px 14px rgba(0,0,0,.15);transform:rotate(-1deg)}
.ms2-tri-regles .ms2-case:nth-child(2){transform:rotate(1.2deg);background:#dbeafe}
.ms2-tri-regles .ms2-case:nth-child(3){background:#fce7f3}

/* --- lundi : les curseurs --- */
.ms2-observe{display:flex;gap:14px;align-items:flex-start;background:#fff;border-radius:16px;padding:14px;box-shadow:0 6px 18px rgba(15,23,42,.08)}
.ms2-vue-observe{min-height:min(48vh,420px)}
.ms2-vue-observe .ms2-observe{background:rgba(255,255,255,.94);backdrop-filter:blur(3px)}
.ms2-observe-photo{width:110px;height:140px;object-fit:cover;border-radius:12px;flex:none}
.ms2-observe-corps{flex:1;min-width:0}
.ms2-observe-corps>b{font-size:18px;display:block}.ms2-observe-corps>i{color:#64748b;font-style:normal;font-size:13px}
.ms2-indices{list-style:none;padding:0;margin:10px 0}
.ms2-indices li{background:#f8fafc;border-radius:16px;padding:8px 12px;margin:6px 0;font-style:italic;animation:pdl-entree .4s}
.ms2-indices li.ms2-piege{background:#fef3c7;text-decoration:line-through;text-decoration-color:#d97706}
.ms2-indices li em{text-decoration:none;display:inline;font-style:normal;color:#b45309;font-weight:700}
.ms2-axe{display:flex;align-items:center;gap:10px;margin:12px 0}
.ms2-axe>span{flex:0 0 120px;font-weight:700;font-size:14px;text-align:center}
.ms2-axe-crans{flex:1;display:flex;justify-content:space-between;align-items:center;position:relative;height:56px}
.ms2-axe-crans::before{content:"";position:absolute;left:12px;right:12px;top:50%;height:6px;border-radius:3px;background:linear-gradient(90deg,#a78bfa,#e2e8f0,#2dd4bf)}
.ms2-cran{position:relative;width:46px;height:46px;border-radius:50%;border:3px solid #cbd5e1;background:#fff;cursor:pointer;padding:0;overflow:hidden;transition:all .2s}
.ms2-cran.ms2-on{border-color:#0f766e;transform:scale(1.15);box-shadow:0 0 0 5px rgba(20,184,166,.25)}
.ms2-cran img{width:100%;height:100%;object-fit:cover}
.ms2-cran.ms2-cible{outline:3px dashed #16a34a;outline-offset:3px}
.ms2-axe.ms2-mini .ms2-axe-crans{height:30px}.ms2-axe.ms2-mini .ms2-cran{width:20px;height:20px;cursor:default}.ms2-axe.ms2-mini>span{flex-basis:90px;font-size:12px}

/* --- lundi : le planning --- */
.ms2-gens{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
.ms2-gens-carte{font:inherit;display:flex;flex-direction:column;align-items:center;gap:4px;background:#fff;border:3px solid #e2e8f0;border-radius:16px;padding:8px 12px;cursor:pointer;transition:all .2s}
.ms2-gens-carte img{width:64px;height:64px;border-radius:50%;object-fit:cover}
.ms2-gens-carte.ms2-sel{border-color:#0f766e;transform:translateY(-4px);box-shadow:0 8px 18px rgba(20,184,166,.3)}
.ms2-stands{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0}
.ms2-stand{background:#fff;border:2px dashed #94a3b8;border-radius:16px;padding:10px 12px;cursor:pointer;transition:all .2s}
.ms2-stand.ms2-cible{border-color:#0f766e;background:#f0fdfa}
.ms2-stand.ms2-bon{border:2px solid #16a34a;background:#f0fdf4;cursor:default}
.ms2-stand.ms2-faux{border:2px solid #f97316;background:#fff7ed;cursor:default}
.ms2-stand-t{font-weight:800}
.ms2-stand p{font-size:13.5px;color:#475569;margin:4px 0}
.ms2-stand-qui{display:flex;align-items:center;gap:8px;font-weight:800;margin-top:6px}
.ms2-stand-qui img{width:36px;height:36px;border-radius:50%;object-fit:cover}
.ms2-stand-vide{color:#94a3b8;font-size:13px;margin-top:6px}
.ms2-stand .ms2-revers{color:#334155;font-size:13px;background:rgba(255,255,255,.7);border-radius:8px;padding:6px 8px}

/* --- mardi : le tunnel --- */
.ms2-tunnel-haut{position:absolute;top:12px;left:12px;right:12px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.ms2-cri{background:#fff;color:#991b1b;font-weight:800;font-size:17px;border-radius:14px;padding:8px 14px;border:3px solid #dc2626;animation:ms2-cri .5s ease;max-width:640px}
@keyframes ms2-cri{0%{transform:scale(.6);opacity:0}60%{transform:scale(1.06)}100%{transform:none;opacity:1}}
.ms2-tunnel-options{display:flex;flex-direction:column;gap:8px;align-items:center;margin-top:110px}
.ms2-pensee-opt{font:inherit;font-size:15.5px;text-align:left;background:rgba(255,255,255,.96);border:2px solid #fecaca;border-radius:22px;padding:10px 16px;cursor:pointer;max-width:620px;width:100%;color:#0f172a;
  animation:ms2-apparait .6s ease both;transition:transform .15s}
.ms2-pensee-opt:hover{transform:scale(1.02)}
.ms2-pensee-opt.ms2-calme{border-color:#5eead4}
@keyframes ms2-apparait{from{opacity:0;transform:scale(.85);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}
.ms2-respirer{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:12px}
.ms2-btn-respirer{font:inherit;font-weight:800;font-size:17px;border:0;border-radius:99px;padding:16px 24px;cursor:pointer;color:#fff;background:linear-gradient(135deg,#0d9488,#0f766e);
  box-shadow:0 0 0 0 rgba(20,184,166,.5);user-select:none;touch-action:none;-webkit-user-select:none}
.ms2-btn-respirer.ms2-on{animation:ms2-inspire 3s ease-in-out infinite}
@keyframes ms2-inspire{50%{box-shadow:0 0 0 22px rgba(20,184,166,0);transform:scale(1.08)}}
.ms2-btn-respirer-clic{font:inherit;font-size:14px;border:2px solid #0f766e;background:#fff;color:#0f766e;border-radius:99px;padding:10px 16px;cursor:pointer}
.ms2-respirer .ms2-consigne{flex-basis:100%}
.ms2-contagion{display:flex;gap:10px;flex-wrap:wrap}
.ms2-contagion-p{display:flex;flex-direction:column;align-items:center;gap:3px;color:#fff;font-size:12px;font-weight:700;opacity:0;animation:pdl-entree .5s forwards}
.ms2-contagion-p img{width:52px;height:52px;border-radius:50%;object-fit:cover;border:3px solid #fff;transition:all .6s}
.ms2-contagion-p.ms2-rouge img{border-color:#dc2626;box-shadow:0 0 18px 4px rgba(220,38,38,.75);filter:sepia(.4) saturate(1.6) hue-rotate(-20deg)}
.ms2-contagion-p.ms2-calme img{border-color:#2dd4bf;box-shadow:0 0 14px 2px rgba(45,212,191,.6)}

/* --- mardi : la chaîne --- */
.ms2-chaine-piste{display:flex;flex-direction:column;gap:6px;margin:10px 0}
.ms2-onde{background:#fff;border-radius:12px;padding:8px 12px;border-left:6px solid #dc2626;margin-left:calc(var(--k) * 18px);animation:pdl-entree .35s;font-size:15px;
  box-shadow:0 0 0 calc(var(--k) * 1.5px) rgba(220,38,38,.12)}
.ms2-onde b{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#dc2626;color:#fff;font-size:12px;margin-right:8px}
.ms2-onde.ms2-bon{border-left-color:#16a34a}.ms2-onde.ms2-faux{border-left-color:#f97316;background:#fff7ed}

/* --- mercredi : les témoins --- */
.ms2-temoins-barre{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.ms2-temoin{font:inherit;display:flex;align-items:center;gap:8px;background:#fff;border:3px solid #e2e8f0;border-radius:99px;padding:4px 14px 4px 4px;cursor:pointer;font-weight:700;font-size:14px;transition:all .2s}
.ms2-temoin img{width:40px;height:40px;border-radius:50%;object-fit:cover}
.ms2-temoin.ms2-on{border-color:#0f766e;background:#f0fdfa}
.ms2-temoin.ms2-vu:not(.ms2-on){border-color:#86efac}
.ms2-temoin:disabled{opacity:.5;cursor:not-allowed}
.ms2-temoin.ms2-camera-btn{background:#0f172a;color:#fff;border-color:#334155}
.ms2-temoin-cam{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#ef4444;font-size:20px}

/* --- mercredi : la main courante --- */
.ms2-mc-feuille{background:#fff repeating-linear-gradient(transparent 0 29px,#dbeafe 29px 30px);border-left:4px solid #f87171;border-radius:6px;padding:10px 16px 14px 22px;font-family:"Segoe Print","Comic Sans MS",cursive;box-shadow:0 8px 20px rgba(15,23,42,.12);margin-bottom:12px}
.ms2-mc-tete{font-family:Outfit,system-ui,sans-serif;font-weight:800;font-size:13px;color:#475569;margin-bottom:6px}
.ms2-mc-l{margin:4px 0;font-size:15px;animation:pdl-entree .4s}
.ms2-mc-l.ms2-avis{color:#c2410c}.ms2-mc-l.ms2-fait{color:#1e3a8a}.ms2-mc-l.ms2-vide{color:#94a3b8}

/* --- une décision --- */
.ms2-decision-o{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.ms2-decision-o .ms2-pensee-opt{border-color:#cbd5e1}

/* --- jeudi --- */
.ms2-classeur-page{background:#eff6ff;border-left:8px solid #1d4ed8;border-radius:10px;padding:10px 14px;font-size:15px;line-height:1.5;animation:ms2-deplie .5s}
.ms2-gestes-tete{display:flex;gap:14px;align-items:center;background:#fff;border-radius:16px;padding:12px;flex-wrap:wrap}
.ms2-gestes-tete>img{width:96px;height:120px;border-radius:12px;object-fit:cover}
.ms2-perso-verrou{flex:1;min-width:220px}
.ms2-perso-verrou p{margin:4px 0 0;font-size:14px;color:#475569}
.ms2-gestes-o{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ms2-geste{font:inherit;text-align:left;font-size:15px;background:#fff;border:2px solid #e2e8f0;border-radius:14px;padding:10px 12px;cursor:pointer;color:#0f172a}
.ms2-geste.ms2-on{border-color:#7c3aed;background:#f5f3ff}
.ms2-geste.ms2-bon{border-color:#16a34a;background:#f0fdf4}.ms2-geste.ms2-faux{border-color:#dc2626;background:#fef2f2}
.ms2-candidats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}
.ms2-candidat{background:#fff;border-radius:12px;padding:10px 12px;box-shadow:0 4px 12px rgba(15,23,42,.08);transform:rotate(-.5deg);font-size:14px}
.ms2-candidat:nth-child(2){transform:rotate(.6deg)}
.ms2-candidat ul{margin:6px 0 0;padding-left:16px;line-height:1.4}

/* --- vendredi : ce qu'on trouve sur moi --- */
.ms2-serp{background:#fff;border-radius:16px;padding:12px;box-shadow:0 6px 18px rgba(15,23,42,.1)}
.ms2-serp-barre{display:flex;gap:8px;align-items:center;border:2px solid #e2e8f0;border-radius:99px;padding:8px 14px;margin-bottom:10px}
.ms2-serp-r{border-radius:12px;padding:8px 12px;margin:6px 0;transition:all .45s;border-left:4px solid #e2e8f0}
.ms2-serp-r b{display:block;color:#1d4ed8;font-size:15.5px}
.ms2-serp-r p{margin:3px 0 0;font-size:14px;color:#334155}
.ms2-serp-site{font-size:12px;color:#15803d}
.ms2-serp-video{border-left-color:#ef4444}.ms2-serp-avis{border-left-color:#f59e0b}.ms2-serp-algo{border-left-color:#8b5cf6;background:#faf5ff}
.ms2-serp-vignette{display:inline-block;margin-top:6px;background:#0f172a;color:#fff;border-radius:8px;padding:10px 18px;font-size:14px}
.ms2-serp.ms2-regard .ms2-serp-r.ms2-off{opacity:.25;filter:blur(1.5px);transform:scale(.98)}
.ms2-serp.ms2-regard .ms2-serp-r.ms2-on{background:#fefce8;box-shadow:0 0 0 3px #fde047;transform:scale(1.01)}

/* --- le vestiaire et son miroir embué --- */
.ms2-vestiaire{display:flex;flex-direction:column;gap:10px;align-items:center;text-align:center}
.ms2-vestiaire-t{font-family:Fraunces,Georgia,serif;font-size:22px;font-weight:700}
.ms2-vestiaire-jour{display:flex;flex-direction:column;gap:10px;align-items:center;max-width:680px}
.ms2-vestiaire-jour .ms2-nuage{margin-left:34px;text-align:left}
.ms2-glace{position:relative;width:100%;max-width:760px;aspect-ratio:16/9;border-radius:18px;overflow:hidden;border:10px solid #cbd5e1;box-shadow:inset 0 0 40px rgba(0,0,0,.35),0 14px 34px rgba(15,23,42,.3);background:#334155}
.ms2-glace-img{position:absolute;inset:0;background-size:cover;background-position:center;filter:blur(1px);transition:filter 1s}
.ms2-glace.ms2-net .ms2-glace-img{filter:none}
.ms2-buee{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab;transition:opacity 1.2s}
.ms2-glace.ms2-net .ms2-buee{opacity:0;pointer-events:none}
.ms2-essuyer{position:absolute;right:12px;bottom:12px;font:inherit;font-weight:700;border:0;border-radius:99px;padding:8px 14px;background:rgba(15,23,42,.75);color:#fff;cursor:pointer}

/* --- les documents --- */
.ms2-doc{font-size:15px;line-height:1.5;color:#0f172a}
.ms2-doc-tete{display:flex;gap:10px;align-items:center;border-bottom:3px solid #14b8a6;padding-bottom:8px;margin-bottom:12px;flex-wrap:wrap}
.ms2-doc-logo{width:44px;height:44px;border-radius:50%;background:#0f766e;color:#fff;display:grid;place-items:center;font-size:22px}
.ms2-doc-tete>div:nth-child(2){display:flex;flex-direction:column;line-height:1.2}
.ms2-doc-tete>div:nth-child(2) span{font-size:12px;color:#64748b}
.ms2-doc-titre{margin-left:auto;text-align:right;display:flex;flex-direction:column}
.ms2-doc-titre i{font-size:12.5px;color:#64748b}
.ms2-doc-sign{text-align:right;font-style:italic;color:#475569;margin-top:14px}
.ms2-doc h4{margin:12px 0 4px;color:#0f766e}
.ms2-doc-ligne p{font-family:"Segoe Print","Comic Sans MS",cursive}
.ms2-table{width:100%;border-collapse:collapse;font-size:14px}
.ms2-table th,.ms2-table td{border:1px solid #e2e8f0;padding:6px 8px;text-align:left;vertical-align:top}
.ms2-table th{background:#f0fdfa}
.ms2-fiche li{margin:4px 0}
.ms2-fiche li.ms2-raye{text-decoration:line-through;color:#94a3b8}
.ms2-fiche li em{text-decoration:none;color:#0f766e;font-size:13px}
.ms2-livret-ps{background:#f0fdfa;border-radius:8px;padding:6px 10px;font-size:14px}
.ms2-lettre{font-family:Georgia,serif}
.ms2-badge{width:250px;margin:0 auto;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 14px 30px rgba(0,0,0,.35);display:flex;flex-direction:column;align-items:center;padding-bottom:12px;text-align:center;animation:ms2-badge 1s ease}
@keyframes ms2-badge{from{transform:perspective(700px) rotateY(180deg)}to{transform:none}}
.ms2-badge-bande{width:100%;background:linear-gradient(135deg,#0f766e,#14b8a6);color:#fff;font-weight:800;padding:10px}
.ms2-badge img{width:120px;height:150px;object-fit:cover;border-radius:12px;margin:12px 0 6px}
.ms2-badge b{font-size:22px}.ms2-badge span{font-size:13px;color:#475569}.ms2-badge i{font-size:12px;color:#64748b;margin-top:4px}
.ms2-badge-code{font-family:ui-monospace,monospace;font-size:12px;background:#f1f5f9;border-radius:6px;padding:2px 8px;margin-top:6px}
.ms2-badge-scene{display:flex;flex-direction:column;gap:14px;align-items:center;width:100%}
.ms2-semaine{list-style:none;padding:0;margin:0}
.ms2-semaine li{display:grid;grid-template-columns:40px 70px 1fr auto;gap:8px;align-items:center;padding:8px;border-bottom:1px solid #e2e8f0}
.ms2-semaine li img{width:36px;height:36px;border-radius:50%;object-fit:cover}
.ms2-semaine li i{grid-column:3;font-style:normal;font-size:13px;color:#64748b}
.ms2-semaine li button{grid-column:4;grid-row:1/span 2}
.ms2-semaine li.ms2-fait b{color:#15803d}

/* --- fins --- */
.ms2-finjour{text-align:center;position:relative;padding:20px 10px}
.ms2-finjour h2{font-family:Fraunces,Georgia,serif;font-size:32px;margin:6px 0}
.ms2-finjour-sur{font-weight:800;color:#0f766e;text-transform:uppercase;letter-spacing:.06em;font-size:13px}
.ms2-finjour-pct{font-size:30px;color:#ea580c;display:block}
.ms2-deltas{display:flex;gap:10px;justify-content:center;margin:12px 0;flex-wrap:wrap}
.ms2-deltas span{border-radius:99px;padding:6px 14px;font-weight:700;background:#f1f5f9}
.ms2-deltas .ms2-plus{background:#dcfce7;color:#166534}.ms2-deltas .ms2-moins{background:#fee2e2;color:#991b1b}
.ms2-fin .pdl-bilan{margin:0 auto}
.ms2-fin-titre{font-family:Fraunces,Georgia,serif;font-size:24px;font-weight:700;text-align:center;margin:10px 0}
.ms2-fin-img{height:min(42vh,380px);border-radius:16px;background-size:cover;background-position:center;animation:pdl-entree 1s}
.ms2-fin-jauges{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}
.ms2-fin .pdl-feuille.pose{margin:12px auto}
.ms2-accueil .ms2-vue-contenu{justify-content:center;align-items:flex-start;min-height:min(80vh,720px);padding:28px;background:linear-gradient(90deg,rgba(2,6,23,.82),rgba(2,6,23,.25))}
.ms2-identite{margin:auto}
.ms2 .pdl-bulle{max-width:none}

/* --- téléphone --- */
@media (max-width:820px){
  .ms2-corps{grid-template-columns:1fr;padding:8px;gap:8px}
  .ms2-panneau{display:grid;grid-template-columns:1fr 1fr;gap:8px;order:2}
  .ms2-corps-jour .ms2-panneau{display:none}
  .ms2-ecg,.ms2-souvenirs,.ms2-outils,.ms2-moi{grid-column:1/-1}
  .ms2-centre{padding:10px;border-radius:14px}
  .ms2-vue{min-height:min(50vh,420px)}
  .ms2-vue.ms2-vue-169{min-height:0}
  .ms2-gestes-tete>img{width:72px;height:92px}
  .ms2-perso-verrou{min-width:0}
  .ms2-axe.ms2-mini>span{flex-basis:58px;font-size:11px}
  .ms2-stands,.ms2-gestes-o,.ms2-candidats,.ms2-fin-jauges{grid-template-columns:1fr}
  .ms2-cases{grid-template-columns:1fr}
  .ms2-tri-miroir .ms2-cases{grid-template-columns:1fr}
  .ms2-axe>span{flex-basis:70px;font-size:12px}
  .ms2-cran{width:38px;height:38px}
  .ms2-observe{flex-direction:column}.ms2-observe-photo{width:90px;height:110px}
  .ms2-nuage{font-size:15.5px;margin-left:28px}
  .ms2-tunnel-options{margin-top:150px}
  .ms2-onde{margin-left:calc(var(--k) * 8px)}
  .ms2-doc-titre{margin-left:0;text-align:left}
  .ms2-semaine li{grid-template-columns:36px 1fr auto}
  .ms2-semaine li span{display:none}
  .ms2-semaine li b,.ms2-semaine li i{grid-column:2}
  .ms2-semaine li button{grid-column:3}
  .ms2-accueil .ms2-vue-contenu{padding:16px}
}
@media (prefers-reduced-motion:reduce){
  .ms2 *{animation-duration:.01s!important;animation-iteration-count:1!important}
  .ms2-paupiere{display:none}
}
/* ==== ms2 : fin des styles ==== */
/* ==== mcc : debut des styles ====
   « Les Gardiens de Mazerin » — bande dessinée interactive. Préfixe mcc-.
   La page est un papier d'album (grain + trame de points), les cases ont un
   trait noir épais et une gouttière blanche ; elles entrent en se tournant
   comme une page (rotateY autour du bord gauche). Les bulles sont en HTML,
   lettrage BD, queue en CSS. Les modificateurs portent le préfixe du bloc
   (piège N) : mcc-bon, mcc-faux, mcc-sel… jamais « bon » nu. */
.mcc{--mcc-encre:#111827;--mcc-papier:#fbf6e9;--mcc-jaune:#fde68a;--mcc-rouge:#dc2626;
  --mcc-lettrage:"Comic Neue","Comic Sans MS","Chalkboard SE","Trebuchet MS",Outfit,system-ui,sans-serif;
  --mcc-titre:Bangers,"Luckiest Guy",Impact,"Arial Black",sans-serif;background:#1f2937}
.mcc-scene{background:var(--mcc-papier);
  background-image:radial-gradient(rgba(17,24,39,.07) 1px,transparent 1.2px);background-size:7px 7px;
  min-height:min(82vh,760px);padding:16px 14px 26px;animation:mcc-page .6s ease}
@keyframes mcc-page{from{opacity:0;transform:perspective(1400px) rotateY(-14deg);transform-origin:left center}to{opacity:1;transform:none}}
.mcc-hud{flex-wrap:wrap}
.mcc-hud-echos{display:flex;gap:6px}
.mcc-hud-echos span{display:flex;align-items:center;gap:3px;background:rgba(255,255,255,.12);border-radius:99px;padding:3px 8px;font-size:13px}
.mcc-hud-echos b{font-size:12px}

/* --- la couverture --- */
.mcc-couv{position:relative;min-height:min(82vh,760px);margin:-16px -14px -26px;display:flex;align-items:flex-end;overflow:hidden;border:6px solid var(--mcc-encre)}
.mcc-couv-img{position:absolute;inset:0;background-size:cover;background-position:center;animation:mcc-kb 30s ease-in-out infinite alternate}
@keyframes mcc-kb{from{scale:1.02}to{scale:1.12}}
.mcc-couv::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(17,24,39,0) 25%,rgba(17,24,39,.85) 100%);pointer-events:none}
.mcc-couv-contenu{position:relative;z-index:1;color:#fff;padding:22px 20px 26px;max-width:760px}
.mcc-couv-sur{display:inline-block;background:var(--mcc-jaune);color:var(--mcc-encre);font-weight:800;font-size:13px;padding:4px 10px;border:2px solid var(--mcc-encre);transform:rotate(-1.5deg)}
.mcc-couv h1{font-family:var(--mcc-titre);font-size:clamp(40px,8vw,78px);line-height:.92;margin:10px 0 6px;letter-spacing:1px;
  color:#facc15;-webkit-text-stroke:2px var(--mcc-encre);text-shadow:4px 4px 0 var(--mcc-encre);transform:rotate(-2deg)}
.mcc-couv h1 span{display:block;color:#fff;font-size:.62em}
.mcc-couv p{font-size:16px;line-height:1.5;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.mcc-couv .mcc-ono{position:absolute;right:18px;top:-40px}
.mcc-couv .pdl-accueil-son{font-size:13px;opacity:.85}

/* --- l'identité, le sommaire --- */
.mcc-identite{display:flex;justify-content:center;padding:20px 0}
.mcc-identite .pdl-identite{border:4px solid var(--mcc-encre);border-radius:6px;box-shadow:8px 8px 0 var(--mcc-encre)}
.mcc-sommaire{max-width:980px;margin:0 auto;text-align:center}
.mcc-sommaire h2{font-family:var(--mcc-titre);font-size:34px;letter-spacing:1px;margin:4px 0 14px;color:var(--mcc-encre)}
.mcc-sommaire-grille{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.mcc-vignette{position:relative;display:flex;flex-direction:column;text-align:left;background:#fff;border:4px solid var(--mcc-encre);padding:0;cursor:pointer;font:inherit;
  box-shadow:5px 5px 0 var(--mcc-encre);transition:transform .2s}
.mcc-vignette:hover:not(:disabled){transform:rotate(-1deg) translateY(-3px)}
.mcc-vignette:disabled{filter:grayscale(1) brightness(.8);cursor:not-allowed;opacity:.7}
.mcc-vignette.mcc-fait{border-color:#15803d}
.mcc-vignette.mcc-brille{animation:mcc-brille 1.6s ease-in-out infinite}
@keyframes mcc-brille{50%{box-shadow:5px 5px 0 var(--mcc-encre),0 0 0 6px rgba(250,204,21,.6)}}
.mcc-vignette .mcc-choix-img{height:120px}
.mcc-vignette-txt{display:flex;flex-direction:column;padding:8px 10px 10px;gap:2px}
.mcc-vignette-txt small{font-weight:800;color:var(--mcc-rouge);text-transform:uppercase;font-size:11px}
.mcc-vignette-txt b{font-family:var(--mcc-titre);font-size:20px;letter-spacing:.5px;line-height:1.05}
.mcc-vignette-txt i{font-size:13px;color:#475569;font-style:normal}

/* --- la planche --- */
.mcc-planche{max-width:1020px;margin:0 auto}
.mcc-planche-tete{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;border-bottom:4px solid var(--mcc-encre);padding-bottom:6px;margin-bottom:12px}
.mcc-planche-n{background:var(--mcc-encre);color:var(--mcc-jaune);font-family:var(--mcc-titre);font-size:18px;letter-spacing:1px;padding:2px 10px;transform:rotate(-2deg)}
.mcc-planche-tete b{font-family:var(--mcc-titre);font-size:clamp(24px,4vw,34px);letter-spacing:1px;color:var(--mcc-encre);line-height:1}
.mcc-planche-tete i{font-style:normal;color:#57534e;font-size:14px}
.mcc-grille{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mcc-cellule{min-width:0;display:flex;flex-direction:column;gap:6px}
.mcc-pleine{grid-column:1 / -1}
.mcc-tourner{align-self:flex-end;font:inherit;font-weight:800;font-size:15px;background:var(--mcc-jaune);border:3px solid var(--mcc-encre);padding:8px 16px;cursor:pointer;
  box-shadow:3px 3px 0 var(--mcc-encre);animation:mcc-pouls 1.4s ease-in-out infinite}
.mcc-tourner:hover{transform:translate(-1px,-1px);box-shadow:4px 4px 0 var(--mcc-encre)}
@keyframes mcc-pouls{50%{transform:scale(1.04)}}
.mcc-resume{grid-column:1 / -1;flex-direction:row;align-items:center;gap:8px;background:#fff;border:3px dashed #a8a29e;padding:8px 12px;font-size:14px;color:#44403c}
.mcc-resume.mcc-note{border-style:solid;border-color:#15803d;background:#f0fdf4}
.mcc-resume em{margin-left:auto;font-style:normal;color:#b45309;letter-spacing:1px}
.mcc-jeu{background:#fff;border:4px solid var(--mcc-encre);box-shadow:6px 6px 0 var(--mcc-encre);padding:14px;animation:mcc-tourne .7s cubic-bezier(.2,.8,.3,1)}

/* --- une case --- */
.mcc-case{position:relative;min-height:230px;border:4px solid var(--mcc-encre);background:#e7e5e4;overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;
  transform-origin:left center;animation:mcc-tourne .7s cubic-bezier(.2,.8,.3,1);box-shadow:4px 4px 0 rgba(17,24,39,.85)}
.mcc-case.mcc-fixe{animation:none}
.mcc-case.mcc-large{min-height:300px}
@keyframes mcc-tourne{0%{opacity:0;transform:perspective(1200px) rotateY(-75deg)}60%{opacity:1}100%{transform:none}}
.mcc-case-img{position:absolute;inset:0;background-size:cover;background-position:center;animation:mcc-kb 26s ease-in-out infinite alternate}
.mcc-trame{position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(rgba(17,24,39,.16) .8px,transparent 1px);background-size:5px 5px;mix-blend-mode:multiply}
.mcc-cap{position:absolute;left:8px;top:8px;max-width:78%;background:var(--mcc-jaune);border:2.5px solid var(--mcc-encre);padding:6px 10px;
  font-family:var(--mcc-lettrage);font-weight:700;font-size:14px;line-height:1.3;color:var(--mcc-encre);box-shadow:2px 2px 0 var(--mcc-encre);z-index:2}
.mcc-case-ono .mcc-cap{max-width:56%}
.mcc-case-ono.mcc-large .mcc-cap{max-width:62%}
.mcc-case-bulles{position:relative;margin:78px 8px 8px;display:flex;flex-direction:column;gap:6px;z-index:3}
.mcc-case-dial{min-height:0;background:#fff}
.mcc-case-dial .mcc-case-bulles,.mcc-case-dial>.mcc-bulle-l{position:relative;margin:12px}
.mcc-case-dial .mcc-case-img{opacity:.35}
.mcc-case-moi{background:#fef9c3}

/* --- l'onomatopée --- */
.mcc-ono{--c:#facc15;position:absolute;right:12px;top:10px;z-index:4;font-family:var(--mcc-titre);font-size:clamp(28px,5vw,46px);letter-spacing:1px;
  color:var(--c);-webkit-text-stroke:2px var(--mcc-encre);text-shadow:3px 3px 0 var(--mcc-encre);transform:rotate(-8deg);pointer-events:none;white-space:nowrap}
.mcc-ono i{display:inline-block;font-style:normal;animation:mcc-ono .55s cubic-bezier(.3,1.8,.5,1) both}
@keyframes mcc-ono{0%{opacity:0;transform:scale(0) translateY(20px)}100%{opacity:1;transform:none}}
.mcc-ono:hover i{animation:mcc-vibre .3s linear 2}
@keyframes mcc-vibre{25%{transform:translateY(-2px) rotate(3deg)}75%{transform:translateY(2px) rotate(-3deg)}}

/* --- la bulle --- */
.mcc-bulle-l{display:flex;align-items:flex-end;gap:8px;animation:mcc-pop .4s cubic-bezier(.3,1.6,.5,1)}
.mcc-bulle-l.mcc-droite{flex-direction:row-reverse}
@keyframes mcc-pop{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}
.mcc-bulle-tete{width:52px;height:52px;border-radius:50%;object-fit:cover;object-position:top;border:3px solid var(--mcc-encre);background:#fff;flex:none}
.mcc-bulle{position:relative;background:#fff;border:3px solid var(--mcc-encre);border-radius:22px;padding:8px 14px 10px;
  font-family:var(--mcc-lettrage);font-size:15px;line-height:1.38;color:var(--mcc-encre);box-shadow:2px 2px 0 var(--mcc-encre);max-width:100%;min-width:0}
.mcc-bulle::before{content:"";position:absolute;left:-14px;bottom:10px;border:9px solid transparent;border-right:14px solid var(--mcc-encre);border-left:0}
.mcc-bulle::after{content:"";position:absolute;left:-8px;bottom:12px;border:6px solid transparent;border-right:10px solid #fff;border-left:0}
.mcc-droite .mcc-bulle::before{left:auto;right:-14px;border-right:0;border-left:14px solid var(--mcc-encre)}
.mcc-droite .mcc-bulle::after{left:auto;right:-8px;border-right:0;border-left:10px solid #fff}
.mcc-bulle-nom{display:block;font-family:var(--mcc-titre);font-weight:400;letter-spacing:.5px;font-size:14px;color:var(--mcc-rouge)}
.mcc-bulle-vide{min-width:120px;background:#fffbeb}
.mcc-bulle-vide::after{border-right-color:#fffbeb}
.mcc-droite .mcc-bulle-vide::after{border-left-color:#fffbeb}
.mcc-points i{display:inline-block;font-style:normal;font-size:26px;line-height:1;animation:mcc-saute 1s ease-in-out infinite}
.mcc-points i:nth-child(2){animation-delay:.15s}.mcc-points i:nth-child(3){animation-delay:.3s}
@keyframes mcc-saute{50%{transform:translateY(-6px)}}
.mcc-petite .mcc-bulle{font-size:14px}
.mcc-petite{margin:0 0 10px}

/* --- la leçon, six formes --- */
.mcc-lecon{position:relative;padding:16px 18px;border:4px solid var(--mcc-encre);box-shadow:6px 6px 0 var(--mcc-encre);background:#fff;animation:mcc-tourne .7s ease}
.mcc-lecon-tete{display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:800;font-size:13px;text-transform:uppercase;color:var(--mcc-rouge)}
.mcc-lecon h3{font-family:var(--mcc-titre);font-size:28px;letter-spacing:.5px;margin:6px 0 10px;color:var(--mcc-encre)}
.mcc-lecon ol{margin:0 0 12px;padding-left:22px;display:flex;flex-direction:column;gap:8px}
.mcc-lecon li{font-size:15.5px;line-height:1.5}
.mcc-lecon li.mcc-cache{color:#78716c;cursor:pointer;background:repeating-linear-gradient(-45deg,#f5f5f4 0 8px,#e7e5e4 8px 16px);padding:6px 10px;border-radius:6px;list-style:none;margin-left:-22px}
.mcc-lecon li.mcc-cache:first-of-type,.mcc-lecon li.mcc-montre+li.mcc-cache{color:var(--mcc-encre);font-weight:700;outline:2px dashed var(--mcc-rouge)}
.mcc-lecon li.mcc-montre{animation:mcc-pop .35s ease}
.mcc-lecon-fiche{background:linear-gradient(#fff 0 0) padding-box;border-radius:14px;border-color:#14532d;box-shadow:6px 6px 0 #14532d}
.mcc-lecon-panneau{background:#a16207;background-image:repeating-linear-gradient(0deg,rgba(0,0,0,.08) 0 3px,transparent 3px 26px);color:#fffbeb;border-color:#422006;box-shadow:6px 6px 0 #422006}
.mcc-lecon-panneau h3,.mcc-lecon-panneau .mcc-lecon-tete{color:#fef3c7}
.mcc-lecon-panneau li.mcc-cache{color:#422006}
.mcc-lecon-cartouche{background:var(--mcc-jaune)}
.mcc-lecon-carnet{background:#fff;background-image:repeating-linear-gradient(180deg,transparent 0 27px,#bfdbfe 27px 28px);border-left:14px solid #b91c1c}
.mcc-lecon-planches ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0;list-style:none}
.mcc-lecon-planches li{border:3px solid var(--mcc-encre);padding:8px 10px;background:#f8fafc;margin:0}
.mcc-lecon-planches li.mcc-cache{margin:0}
.mcc-lecon-affiche{background:#eff6ff;border-color:#1e3a8a;box-shadow:6px 6px 0 #1e3a8a;transform:rotate(-.4deg)}

/* --- les exercices dans la planche --- */
.mcc-ex-tete{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.mcc-ex-tete b{font-family:var(--mcc-titre);font-weight:400;font-size:22px;letter-spacing:.5px;color:var(--mcc-encre)}
.mcc-ex-tete span{font-size:13px;color:#57534e;font-weight:700}
.mcc-consigne{font-weight:700;font-size:15px;margin:10px 0 8px;color:#1c1917}
.mcc-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mcc-duo .mcc-case{min-height:150px;display:flex;align-items:center}
.mcc-repliques{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.mcc-replique{display:flex;align-items:flex-start;gap:10px;text-align:left;font-family:var(--mcc-lettrage);font-size:15px;line-height:1.35;background:#fff;color:var(--mcc-encre);
  border:3px solid var(--mcc-encre);border-radius:18px;padding:8px 12px;cursor:pointer;box-shadow:3px 3px 0 var(--mcc-encre);transition:transform .15s}
.mcc-replique:hover:not(:disabled){transform:translate(-2px,-2px);box-shadow:5px 5px 0 var(--mcc-encre);background:#fffbeb}
.mcc-replique-l{flex:none;width:26px;height:26px;border-radius:50%;background:var(--mcc-encre);color:#fff;display:grid;place-items:center;font-family:var(--mcc-titre);font-size:15px}
.mcc-replique.mcc-bon{background:#dcfce7;border-color:#15803d}
.mcc-replique.mcc-faux{background:#fee2e2;border-color:var(--mcc-rouge)}
.mcc-replique.mcc-eteint{opacity:.45}
.mcc-repliques-courtes{flex-direction:row;flex-wrap:wrap}
.mcc-repliques-courtes .mcc-replique{flex:1 1 200px}

/* corriger la bulle */
.mcc-bulle-corrige{font-size:17px}
.mcc-morceau{font:inherit;color:inherit;background:none;border:0;border-bottom:2px dotted #a8a29e;padding:0 1px;cursor:pointer;line-height:1.5}
.mcc-morceau:hover:not(:disabled){background:#fef08a}
.mcc-morceau.mcc-trouve{background:#fecaca;text-decoration:line-through;text-decoration-color:var(--mcc-rouge);text-decoration-thickness:3px}
.mcc-morceau.mcc-secoue,.mcc-ranger-case.mcc-secoue{animation:mcc-secoue .4s linear 2}
@keyframes mcc-secoue{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
.mcc-reecrit s{color:var(--mcc-rouge)}
.mcc-reecrit ins{text-decoration:none;background:#bbf7d0;padding:0 4px;border-radius:4px;font-weight:700;animation:mcc-pop .4s ease}
.mcc-reecrit.mcc-faux ins{background:#fde68a}

/* choisir la case suivante */
.mcc-choix-cases{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:12px}
.mcc-choix-case{position:relative;display:flex;flex-direction:column;text-align:left;padding:0;font:inherit;background:#fff;border:4px solid var(--mcc-encre);cursor:pointer;
  box-shadow:4px 4px 0 var(--mcc-encre);transition:transform .25s,opacity .4s}
.mcc-choix-case:hover:not(:disabled){transform:rotate(-1deg) translateY(-4px)}
.mcc-choix-img{display:block;height:140px;background-size:cover;background-position:center;border-bottom:3px solid var(--mcc-encre)}
.mcc-choix-txt{display:flex;flex-direction:column;gap:3px;padding:8px 10px 10px;font-size:14px;line-height:1.35}
.mcc-choix-txt b{font-family:var(--mcc-titre);font-weight:400;font-size:19px;letter-spacing:.5px}
.mcc-choix-txt i{font-style:normal;color:#44403c}
.mcc-choix-case.mcc-pris{transform:scale(1.05) rotate(-1deg);border-color:#ca8a04;box-shadow:0 0 0 5px var(--mcc-jaune),6px 6px 0 var(--mcc-encre);z-index:1}
.mcc-choix-case.mcc-ecarte{opacity:.25;transform:scale(.94)}
.mcc-choix-petits .mcc-choix-img{height:100px}
.mcc-effets{display:flex;gap:4px;flex-wrap:wrap;padding:0 10px 8px}
.mcc-effets em{font-style:normal;font-size:12px;font-weight:800;border-radius:99px;padding:1px 7px}
.mcc-plus{background:#dcfce7;color:#14532d}
.mcc-moins{background:#fee2e2;color:#7f1d1d}

/* le gaufrier des incidents */
.mcc-strip{display:grid;grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr);align-items:stretch;gap:6px;margin-bottom:10px}
.mcc-strip .mcc-case{min-height:220px}
.mcc-fleche{display:grid;place-items:center;font-size:26px;font-weight:900}
.mcc-case-blanche{background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;border-style:dashed}
.mcc-case-blanche span{font-family:var(--mcc-titre);font-size:70px;color:#d6d3d1;line-height:1}
.mcc-case-blanche i{font-style:normal;font-weight:700;color:#78716c}
.mcc-case-rep.mcc-bon{border-color:#15803d}
.mcc-case-rep.mcc-faux{border-color:var(--mcc-rouge)}
.mcc-case-rep .mcc-cap{top:auto;bottom:8px;max-width:calc(100% - 16px)}
.mcc-tampon-pose{position:absolute;right:10px;top:12px;z-index:5;font-family:var(--mcc-titre);font-size:22px;color:#15803d;border:4px double #15803d;padding:2px 10px;background:rgba(255,255,255,.85);
  transform:rotate(-10deg);animation:mcc-tamp .35s cubic-bezier(.3,1.8,.5,1)}
.mcc-tampon-pose.mcc-faux{color:var(--mcc-rouge);border-color:var(--mcc-rouge)}
@keyframes mcc-tamp{from{opacity:0;transform:rotate(-10deg) scale(2.2)}to{opacity:1;transform:rotate(-10deg)}}
.mcc-principes>div{display:flex;flex-wrap:wrap;gap:8px}
.mcc-tampon-btn{font-family:var(--mcc-titre);font-size:20px;letter-spacing:.5px;background:#fff;border:4px double var(--mcc-encre);padding:6px 14px;cursor:pointer;transform:rotate(-2deg)}
.mcc-tampon-btn:hover{background:var(--mcc-jaune)}

/* le cartouche des chiffres */
.mcc-rappel{background:var(--mcc-jaune);border:3px solid var(--mcc-encre);padding:8px 12px;font-size:15px;line-height:1.45;margin:10px 0;box-shadow:3px 3px 0 var(--mcc-encre)}
.mcc-calcul-ligne{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mcc-calcul-champ{font:inherit;font-size:20px;font-weight:700;width:180px;max-width:100%;padding:8px 12px;border:3px solid var(--mcc-encre);border-radius:8px}
.mcc-unite{font-weight:800;font-size:18px}

/* poser : à qui la bulle, diagnostic, regards */
.mcc-tas{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 12px;min-height:40px}
.mcc-pion{font:inherit;font-size:14px;line-height:1.3;text-align:left;background:#fff;border:3px solid var(--mcc-encre);padding:7px 10px;cursor:pointer;max-width:330px;
  transform:rotate(var(--r));box-shadow:2px 2px 0 var(--mcc-encre);animation:mcc-pop .35s ease both}
.mcc-pion.mcc-sel{background:var(--mcc-jaune);transform:rotate(0) scale(1.05);box-shadow:4px 4px 0 var(--mcc-encre)}
.mcc-cibles{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:10px;margin-bottom:10px}
.mcc-cible{min-width:0;cursor:pointer;transition:transform .2s}
.mcc-cible.mcc-attend{animation:mcc-attend 1.2s ease-in-out infinite}
@keyframes mcc-attend{50%{transform:translateY(-3px)}}
.mcc-colle{display:block;font-size:13px;line-height:1.3;background:#fff;border:2px solid #a8a29e;padding:5px 8px;margin-top:6px;animation:mcc-pop .3s ease}
.mcc-colle.mcc-bon,.mcc-mini-bulle.mcc-bon{border-color:#15803d;background:#f0fdf4}
.mcc-colle.mcc-faux,.mcc-mini-bulle.mcc-faux{border-color:var(--mcc-rouge);background:#fee2e2;animation:mcc-secoue .4s linear 2}
.mcc-mini-bulle{display:block;font-family:var(--mcc-lettrage);background:#fff;border:2px solid var(--mcc-encre);border-radius:16px;padding:6px 10px;font-size:14px;line-height:1.3}
.mcc-quibulle .mcc-pion{border:0;background:none;box-shadow:none;padding:0}
.mcc-quibulle .mcc-pion.mcc-sel .mcc-mini-bulle{background:var(--mcc-jaune);box-shadow:3px 3px 0 var(--mcc-encre)}
.mcc-voix{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;background:#fff;border:4px solid var(--mcc-encre);padding:10px 8px;min-height:180px;box-shadow:4px 4px 0 var(--mcc-encre)}
.mcc-voix img{width:72px;height:72px;border-radius:50%;object-fit:cover;object-position:top;border:3px solid var(--mcc-encre)}
.mcc-voix b{font-family:var(--mcc-titre);font-weight:400;font-size:17px}
.mcc-voix small{font-weight:800;color:var(--mcc-rouge)}
.mcc-voix-bulles{width:100%;display:flex;flex-direction:column;gap:4px;margin-top:4px}
.mcc-mini-bulle.mcc-accroche{text-align:left;font-size:13px}
.mcc-diag .mcc-cibles{grid-template-columns:repeat(2,minmax(0,1fr))}
.mcc-diag-case{border:4px solid var(--mcc-encre);padding:8px 10px;min-height:120px;background:#fff;box-shadow:3px 3px 0 var(--mcc-encre)}
.mcc-diag-case b{font-family:var(--mcc-titre);font-weight:400;font-size:20px;letter-spacing:.5px}
.mcc-diag-case small{display:block;font-size:12px;color:#57534e}
.mcc-diag-dedans{background:#f0fdf4}
.mcc-diag-dehors{background:#eff6ff}
.mcc-regard{display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;border:4px solid var(--mcc-encre);background:#fff;padding:10px 8px;min-height:190px;box-shadow:4px 4px 0 var(--mcc-encre)}
.mcc-regard-ico{font-size:40px;line-height:1}
.mcc-regard b{font-family:var(--mcc-titre);font-weight:400;font-size:20px}
.mcc-regard i{font-family:var(--mcc-lettrage);font-size:13px;color:#44403c}
.mcc-regard-bulle{width:100%;border:2px dashed #a8a29e;border-radius:14px;min-height:60px;padding:4px 6px;margin-top:6px}

/* ranger les cases */
.mcc-ranger-grille{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:10px}
.mcc-ranger-case{position:relative;display:flex;flex-direction:column;text-align:left;padding:0;font:inherit;background:#fff;border:4px solid var(--mcc-encre);cursor:pointer;box-shadow:3px 3px 0 var(--mcc-encre);transition:transform .25s}
.mcc-ranger-case .mcc-choix-img{height:96px}
.mcc-ranger-n{position:absolute;left:-6px;top:-8px;z-index:1;width:30px;height:30px;border-radius:50%;background:var(--mcc-encre);color:var(--mcc-jaune);display:grid;place-items:center;font-family:var(--mcc-titre);font-size:18px}
.mcc-ranger-txt{padding:6px 8px 8px;font-size:13.5px;line-height:1.3}
.mcc-ranger-case.mcc-sel{transform:translateY(-6px) rotate(-1.5deg);border-color:#ca8a04;box-shadow:0 0 0 4px var(--mcc-jaune)}
.mcc-ranger-case.mcc-bon{border-color:#15803d;cursor:default}
.mcc-ranger-case.mcc-bon .mcc-ranger-n{background:#15803d;color:#fff}

/* les tampons */
.mcc-tampons-outils{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.mcc-outil{--c:#111827;display:flex;align-items:center;gap:6px;font-family:var(--mcc-titre);font-size:16px;letter-spacing:.5px;color:var(--c);background:#fff;border:4px double var(--c);padding:6px 12px;cursor:pointer;transition:transform .2s}
.mcc-outil span{font-size:20px}
.mcc-outil.mcc-sel{background:var(--c);color:#fff;transform:translateY(-3px) rotate(-2deg)}
.mcc-tampons-cases{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:10px}
.mcc-tcase{position:relative;font:inherit;font-size:14px;line-height:1.4;text-align:left;background:#fff;border:3px solid var(--mcc-encre);padding:10px 12px 34px;cursor:pointer;min-height:96px;box-shadow:3px 3px 0 var(--mcc-encre)}
.mcc-tcase.mcc-attend:hover{background:#fffbeb}
.mcc-tcase.mcc-faux{border-color:var(--mcc-rouge);animation:mcc-secoue .4s linear 2}
.mcc-tcase.mcc-bon{border-color:#15803d}
.mcc-empreinte{--c:#111827;position:absolute;right:8px;bottom:6px;font-style:normal;font-family:var(--mcc-titre);font-size:15px;color:var(--c);border:3px double var(--c);padding:1px 8px;
  transform:rotate(-6deg);background:rgba(255,255,255,.8);animation:mcc-tamp .3s ease}

/* fin de planche */
.mcc-finpl{max-width:640px;margin:10px auto;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.mcc-finpl-tampon{display:flex;flex-direction:column;align-items:center;border:6px double #15803d;color:#15803d;padding:10px 24px;transform:rotate(-4deg);background:#fff;animation:mcc-tamp .5s cubic-bezier(.3,1.8,.5,1)}
.mcc-finpl-tampon small{font-weight:800;text-transform:uppercase;font-size:12px}
.mcc-finpl-tampon b{font-family:var(--mcc-titre);font-size:52px;line-height:1}
.mcc-echos{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mcc-echo{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;background:#fff;border:3px solid var(--mcc-encre);padding:6px 10px;font-weight:700;font-size:14px}
.mcc-echo-barre{height:10px;background:#e7e5e4;border-radius:99px;overflow:hidden}
.mcc-echo-barre i{display:block;height:100%;transition:width 1s ease}
.mcc-echo em{font-style:normal;font-size:12px;border-radius:99px;padding:1px 7px}
.mcc-une{width:100%;background:#fff;border:3px solid var(--mcc-encre);padding:10px 14px;font-family:Georgia,serif;text-align:left;box-shadow:4px 4px 0 var(--mcc-encre);animation:mcc-tourne .8s ease .4s both}
.mcc-une small{display:block;font-weight:800;text-transform:uppercase;font-size:11px;color:var(--mcc-rouge);font-family:system-ui,sans-serif}
.mcc-une b{font-size:20px;line-height:1.25}
.mcc-centre{display:flex;justify-content:center;margin-top:14px}
.mcc-bilan{background:#fff;border:4px solid var(--mcc-encre);box-shadow:6px 6px 0 var(--mcc-encre);max-width:860px;margin:0 auto}
.mcc .pdl-fin-doc{display:flex;flex-direction:column;align-items:center;gap:14px}

/* --- les documents --- */
.mcc-doc{font-family:Georgia,serif;color:#1c1917;font-size:14.5px;line-height:1.5}
.mcc-doc h4{font-family:system-ui,sans-serif;margin:12px 0 6px}
.mcc-doc-entete{display:flex;align-items:center;gap:10px;border-bottom:3px solid #14532d;padding-bottom:8px;margin-bottom:10px}
.mcc-doc-logo{font-size:30px;width:46px;height:46px;border-radius:50%;background:#14532d;display:grid;place-items:center}
.mcc-doc-entete span{display:flex;flex-direction:column;line-height:1.2}
.mcc-doc-entete b{color:#14532d;font-size:16px}
.mcc-doc-entete i,.mcc-doc-entete em{font-size:12px;color:#57534e}
.mcc-doc-entete em{font-style:normal;font-weight:700;color:#1c1917}
.mcc-doc-table{width:100%;border-collapse:collapse;font-family:system-ui,sans-serif;font-size:13px;margin:8px 0}
.mcc-doc-table th,.mcc-doc-table td{border:1px solid #d6d3d1;padding:5px 7px;vertical-align:top;text-align:left}
.mcc-doc-table th{background:#f5f5f4}
.mcc-num{text-align:right;white-space:nowrap}
.mcc-total td{font-weight:800;border-top:2px solid #1c1917}
.mcc-ok{background:#f0fdf4}.mcc-ko{background:#fef2f2}
.mcc-doc-note{font-size:13px;color:#44403c;font-style:italic;border-left:3px solid #a8a29e;padding-left:8px}
.mcc-doc-avis{background:#fffbeb;border:1px solid #fde68a;padding:6px 10px}
.mcc-doc-sign{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:14px;font-style:italic;flex-wrap:wrap}
.mcc-doc-tampon{font-style:normal;font-family:system-ui,sans-serif;font-weight:900;font-size:12px;color:#b91c1c;border:3px double #b91c1c;padding:3px 8px;transform:rotate(-8deg);letter-spacing:1px}
.mcc-doc-diag{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;font-family:system-ui,sans-serif;font-size:12.5px}
.mcc-doc-diag>div{border:1px solid #d6d3d1;padding:4px 8px}
.mcc-doc-diag ul{margin:2px 0;padding-left:16px}
.mcc-badge-corps{display:flex;gap:14px;align-items:center}
.mcc-badge-corps img{width:110px;height:140px;object-fit:cover;object-position:top;border:3px solid #14532d;border-radius:8px}
.mcc-badge-corps p{margin:0 0 6px;display:flex;flex-direction:column}
.mcc-badge-corps small{font-size:11px;text-transform:uppercase;color:#57534e;font-family:system-ui,sans-serif}
.mcc-gazette-titre{font-family:"Old English Text MT",Georgia,serif;font-size:34px;text-align:center;border-bottom:3px double #1c1917;line-height:1.1}
.mcc-gazette-date{text-align:center;font-size:12px;text-transform:uppercase;letter-spacing:1px;border-bottom:1px solid #1c1917;margin-bottom:8px}
.mcc-gazette img{width:100%;max-height:220px;object-fit:cover;filter:grayscale(.6) contrast(1.1);border:1px solid #1c1917}
.mcc-gazette h4{font-family:Georgia,serif;font-size:22px}

/* --- téléphone --- */
@media (max-width:720px){
  .mcc-scene{padding:12px 10px 22px}
  .mcc-grille,.mcc-duo,.mcc-sommaire-grille,.mcc-echos,.mcc-tampons-cases,.mcc-lecon-planches ol{grid-template-columns:minmax(0,1fr)}
  .mcc-choix-cases,.mcc-cibles,.mcc-diag .mcc-cibles{grid-template-columns:minmax(0,1fr)}
  .mcc-ranger-grille{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mcc-strip{grid-template-columns:minmax(0,1fr)}
  .mcc-fleche{transform:rotate(90deg);height:24px}
  .mcc-case{min-height:200px}.mcc-case.mcc-large{min-height:230px}
  .mcc-choix-img{height:110px}
  .mcc-hud-echos{order:5;width:100%;justify-content:center}
  .mcc-bulle{font-size:14px}
  .mcc-cap{font-size:13px;max-width:88%}
  .mcc-doc-diag{grid-template-columns:minmax(0,1fr)}
  .mcc-badge-corps{flex-direction:column;align-items:flex-start}
}
.mcc .mcc-case.mcc-case-dial{min-height:0}
.mcc .mcc-duo .mcc-case.mcc-case-dial{min-height:150px}
@media (max-width:720px){
  .mcc-ono{font-size:24px;right:8px;top:8px}
  .mcc-case-ono .mcc-cap,.mcc-case-ono.mcc-large .mcc-cap{max-width:60%}
  .mcc .mcc-duo .mcc-case.mcc-case-dial{min-height:0}
}
/* ==== mcc : fin des styles ==== */
/* ==== msc : debut des styles ====
   KOSA I VO ? (SDGN 1re, chapitre 12). Préfixe msc-. Un plateau de télé :
   fond sombre du décor flouté, projecteurs qui balaient, grand tableau
   lumineux en chiffres LED, pupitres, cartes, roue, barres animées. */
.msc{position:relative;overflow:hidden;background:#140b2e;min-height:min(88vh,880px);color:#f8f5ff;
  --msc-or:#fbbf24;--msc-rose:#ec4899;--msc-violet:#7c3aed;--msc-bleu:#22d3ee;--msc-carte:rgba(24,14,58,.86)}
.msc-fond{position:absolute;inset:-30px;background-size:cover;background-position:center;filter:blur(6px) saturate(1.2) brightness(.42);transform:scale(1.04);transition:background-image .6s}
.msc-projos{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.msc-projos i{position:absolute;top:-20%;left:calc(12% + var(--i) * 25%);width:120px;height:140%;
  background:linear-gradient(180deg,rgba(255,240,200,.28),rgba(255,240,200,0) 75%);transform-origin:50% 0;filter:blur(6px);
  animation:msc-balaie calc(5s + var(--i) * 1.3s) ease-in-out infinite alternate;mix-blend-mode:screen}
.msc-projos i:nth-child(2n){background:linear-gradient(180deg,rgba(236,72,153,.28),rgba(236,72,153,0) 75%)}
.msc-projos i:nth-child(3n){background:linear-gradient(180deg,rgba(34,211,238,.25),rgba(34,211,238,0) 75%)}
.msc-projos-fort i{width:170px;animation-duration:calc(2.6s + var(--i) * .5s)}
@keyframes msc-balaie{0%{transform:rotate(-28deg)}100%{transform:rotate(28deg)}}
@media (prefers-reduced-motion:reduce){.msc-projos i{animation:none;transform:rotate(-10deg)}}
.msc>*:not(.msc-fond):not(.msc-projos){position:relative;z-index:1}
.msc .pdl-cta.msc-cta{background:linear-gradient(135deg,#f59e0b,#ec4899);color:#fff;box-shadow:0 6px 22px rgba(236,72,153,.4)}
.msc .pdl-cta.msc-cta.alt{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.35)}
.msc-plein{min-height:min(88vh,880px);display:flex}
.msc-plein>.pdl-decor{flex:1}

/* --- l'accueil --- */
.msc-accueil{max-width:720px;margin:0 auto;padding:48px 20px 40px;text-align:center}
.msc-accueil-sur{display:inline-block;font-size:12px;letter-spacing:.14em;text-transform:uppercase;background:rgba(255,255,255,.12);padding:5px 12px;border-radius:99px}
.msc-logo-emission{margin:18px 0 6px;display:flex;justify-content:center;align-items:baseline;gap:12px;flex-wrap:wrap;font-size:clamp(44px,10vw,92px);line-height:.95;font-weight:900;letter-spacing:-.02em}
.msc-logo-emission span{background:linear-gradient(180deg,#fff7d6,#fbbf24 55%,#d97706);-webkit-background-clip:text;background-clip:text;color:transparent;filter:drop-shadow(0 4px 0 #7c2d12) drop-shadow(0 0 18px rgba(251,191,36,.55))}
.msc-logo-emission b{color:#ec4899;text-shadow:0 0 20px #ec4899;display:inline-block;animation:msc-pulse 1.4s ease-in-out infinite}
@keyframes msc-pulse{50%{transform:scale(1.18) rotate(8deg)}}
.msc-accueil-sous{font-size:18px;font-weight:700;color:#fde68a}
.msc-accueil p{line-height:1.55}
.msc-accueil .pdl-accueil-btns{justify-content:center}

/* --- la barre du haut et le tableau lumineux --- */
.msc-barre{display:flex;align-items:center;gap:12px;padding:10px 14px;background:rgba(10,4,26,.72);border-bottom:2px solid rgba(251,191,36,.35);backdrop-filter:blur(6px);flex-wrap:wrap}
.msc-barre-logo{font-weight:900;color:#fbbf24;letter-spacing:.06em;text-shadow:0 0 10px rgba(251,191,36,.6)}
.msc-outils{margin-left:auto;display:flex;gap:6px}
.msc-outils button{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#fff;border-radius:10px;padding:6px 9px;font-size:16px;cursor:pointer;position:relative}
.msc-outils sup{position:absolute;top:-6px;right:-6px;background:#ec4899;border-radius:99px;font-size:10px;padding:1px 5px}
.msc-tableau{display:flex;align-items:stretch;justify-content:center;gap:10px;background:#07030f;border:3px solid #3b2a62;border-radius:16px;padding:12px 16px;
  box-shadow:inset 0 0 30px rgba(124,58,237,.35),0 0 30px rgba(124,58,237,.35);max-width:560px;margin:0 auto}
.msc-tab-cote{display:flex;flex-direction:column;align-items:center;min-width:120px;padding:4px 10px;border-radius:10px;transition:box-shadow .4s}
.msc-tab-cote i{font-style:normal;font-size:11px;letter-spacing:.14em;color:#a5b4fc}
.msc-tab-cote b{font-size:15px}
.msc-compteur{font-family:"Courier New",ui-monospace,monospace;font-weight:900;font-size:44px;color:#fbbf24;letter-spacing:.06em;
  text-shadow:0 0 6px #f59e0b,0 0 18px rgba(245,158,11,.8);background:repeating-linear-gradient(90deg,transparent 0 3px,rgba(0,0,0,.25) 3px 4px);-webkit-background-clip:text;background-clip:text}
.msc-tab-rival .msc-compteur{color:#fb7185;text-shadow:0 0 6px #e11d48,0 0 18px rgba(225,29,72,.8)}
.msc-mene{box-shadow:0 0 0 2px #fbbf24,0 0 22px rgba(251,191,36,.6);animation:msc-clignote 1.6s ease-in-out infinite}
.msc-tab-rival.msc-mene{box-shadow:0 0 0 2px #fb7185,0 0 22px rgba(251,113,133,.6)}
@keyframes msc-clignote{50%{box-shadow:0 0 0 2px transparent}}
.msc-tab-vs{align-self:center;font-weight:900;color:#ec4899;font-size:18px}
.msc-tableau-petit{padding:4px 10px;border-width:2px;margin:0;gap:6px}
.msc-tableau-petit .msc-tab-cote{min-width:74px;flex-direction:row;gap:6px;padding:2px 6px}
.msc-tableau-petit .msc-tab-cote i{display:none}
.msc-tableau-petit .msc-tab-cote b{font-size:12px;max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msc-tableau-petit .msc-compteur{font-size:22px}
.msc-tableau-petit .msc-tab-vs{font-size:12px}

/* --- le centre --- */
.msc-centre{max-width:980px;margin:0 auto;padding:16px 16px 60px;animation:pdl-entree .45s ease}
.msc-manche{background:var(--msc-carte);border:1px solid rgba(255,255,255,.12);border-radius:20px;padding:14px;box-shadow:0 20px 50px rgba(0,0,0,.4)}
.msc-manche-tete{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.msc-manche-tete button{background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.25);border-radius:99px;padding:4px 12px;cursor:pointer}
.msc-manche-tete b{color:#fde68a}
.msc-manche-tete i{font-size:12px;color:#c4b5fd;flex-basis:100%}
.msc-etape-t{font-weight:900;font-size:18px;margin:4px 0 12px;color:#fff}
.msc-prog{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;color:#c4b5fd;margin-bottom:8px}
.msc-buzz-score b{color:#fbbf24}
.msc-consigne{line-height:1.5}
.msc-aide{font-size:13px;color:#c4b5fd}
.msc-ex-titre{font-weight:800;margin-bottom:6px}
.msc .pdl-bulle{color:#1f1633}
.msc .pdl-why{color:#1f1633}
.msc .pdl-why .pdl-cta{margin-top:10px}
.msc-rappel{background:#fffbeb;color:#422006;border-left:5px solid #f59e0b;border-radius:10px;padding:10px 12px;margin:8px 0;line-height:1.45;font-size:15px}
.msc-annonce{margin:10px 0;padding:12px 14px;border-radius:14px;font-weight:800;background:rgba(34,211,238,.15);border:1px solid rgba(34,211,238,.5);animation:pdl-entree .3s ease}
.msc-annonce-rival{background:rgba(251,113,133,.15);border-color:rgba(251,113,133,.6)}
.msc-annonce-bon{background:rgba(74,222,128,.15);border-color:rgba(74,222,128,.6)}
.msc-annonce .pdl-cta{margin-left:10px}
.msc-suspense{text-align:center;font-size:22px;animation:msc-tremble .25s linear infinite}
@keyframes msc-tremble{25%{transform:translateX(-2px)}75%{transform:translateX(2px)}}

/* --- le générique --- */
.msc-generique{position:relative;text-align:center;padding:60px 16px;border-radius:24px;overflow:hidden;background:radial-gradient(circle at 50% 40%,rgba(124,58,237,.6),rgba(10,4,26,.92) 70%)}
.msc-generique .msc-projos{position:absolute}
.msc-gen-n{position:relative;font-weight:900;letter-spacing:.3em;color:#fbbf24;animation:msc-glisse .6s ease both}
.msc-gen-ico{position:relative;font-size:70px;margin:10px 0;animation:msc-zoom .7s .2s cubic-bezier(.2,1.6,.4,1) both}
.msc-gen-t{position:relative;font-size:clamp(30px,6vw,54px);margin:0;font-weight:900;text-shadow:0 0 24px rgba(236,72,153,.8);animation:msc-glisse .6s .35s ease both}
.msc-gen-s{position:relative;color:#fde68a;animation:msc-glisse .6s .5s ease both}
.msc-generique .pdl-cta{position:relative;margin-top:14px;animation:msc-glisse .6s .7s ease both}
@keyframes msc-glisse{from{opacity:0;transform:translateY(24px)}}
@keyframes msc-zoom{from{opacity:0;transform:scale(.2) rotate(-30deg)}}

/* --- les fiches de Josie --- */
.msc-fiches-tete{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.msc-fiches-tete img{width:54px;height:54px;border-radius:50%;object-fit:cover;object-position:50% 20%;border:2px solid #34d399}
.msc-fiches-tete div{flex:1;display:flex;flex-direction:column}
.msc-fiches-tete i{font-style:normal;font-size:12px;color:#a7f3d0}
.msc-fiches-tete b{font-size:18px}
.msc-fiches-pile{display:flex;flex-direction:column;gap:10px;margin-bottom:12px}
.msc-fiche{position:relative;background:#fffef7;color:#1f1633;border-radius:12px;padding:12px 14px 12px 46px;line-height:1.5;
  box-shadow:0 6px 16px rgba(0,0,0,.25);transform:rotate(var(--r));border-top:6px solid #34d399}
.msc-fiche-neuve{animation:msc-retourne .55s ease both}
@keyframes msc-retourne{from{opacity:0;transform:perspective(600px) rotateX(-80deg)}}
.msc-fiche-n{position:absolute;left:12px;top:12px;width:24px;height:24px;border-radius:50%;background:#059669;color:#fff;font-weight:900;font-size:13px;display:grid;place-items:center}

/* --- QCM et options --- */
.msc-opts{display:flex;flex-direction:column;gap:8px;margin:10px 0}
.msc-opts-grille{display:grid;grid-template-columns:1fr 1fr}
.msc-opt{display:flex;align-items:center;gap:10px;text-align:left;background:linear-gradient(180deg,#2a1a5e,#1b1040);color:#fff;border:2px solid #5b46a8;border-radius:14px;padding:10px 12px;
  cursor:pointer;font-size:15px;line-height:1.35;transition:transform .15s,border-color .2s,box-shadow .2s;clip-path:polygon(12px 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,12px 100%,0 50%)}
.msc-opt:hover:not(:disabled){transform:translateY(-2px);border-color:#fbbf24;box-shadow:0 0 18px rgba(251,191,36,.35)}
.msc-opt-l{flex:none;width:28px;height:28px;border-radius:50%;background:#fbbf24;color:#1b1040;font-weight:900;display:grid;place-items:center}
.msc-opt.msc-bon{background:linear-gradient(180deg,#16a34a,#14532d);border-color:#86efac;animation:msc-flash .6s ease 2}
.msc-opt.msc-faux{background:linear-gradient(180deg,#e11d48,#7f1d1d);border-color:#fda4af}
.msc-opt.msc-eteint{opacity:.45}
.msc-opt:disabled{cursor:default}
@keyframes msc-flash{50%{filter:brightness(1.5)}}

/* --- calculs --- */
.msc-calc-q{font-weight:800;font-size:17px;margin:8px 0}
.msc-calc-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.msc-calc-saisie input{font-size:20px;font-weight:800;width:170px;padding:8px 10px;border-radius:10px;border:2px solid #fbbf24;background:#fff;color:#1b1040}

/* --- manche 1 : le buzzer --- */
.msc-buzz-ecran{display:flex;gap:12px;align-items:flex-start;background:#07030f;border:2px solid #3b2a62;border-radius:16px;padding:14px;min-height:96px}
.msc-buzz-ecran img{width:52px;height:52px;border-radius:50%;object-fit:cover;object-position:50% 20%;flex:none}
.msc-buzz-ecran p{margin:0;font-size:19px;line-height:1.45;font-weight:700}
.msc-buzz-ecran p i{font-weight:400;color:#c4b5fd;font-size:13px;display:block}
.msc-buzz-chrono{position:relative;height:22px;border-radius:99px;background:rgba(255,255,255,.08);margin:10px 0;overflow:hidden}
.msc-buzz-chrono span{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#22d3ee,#f59e0b,#e11d48);transition:width .1s linear}
.msc-buzz-chrono i{position:relative;font-style:normal;font-size:12px;padding:0 10px;line-height:22px;font-weight:700}
.msc-gros-buzzer{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:14px auto;width:150px;height:150px;border-radius:50%;cursor:pointer;
  background:radial-gradient(circle at 40% 35%,#ff8a8a,#dc2626 45%,#7f1d1d);border:8px solid #d4d4d8;color:#fff;
  box-shadow:0 10px 0 #52525b,0 18px 30px rgba(0,0,0,.5),0 0 40px rgba(220,38,38,.6);transition:transform .08s,box-shadow .08s;animation:msc-appel 1.2s ease-in-out infinite}
.msc-gros-buzzer span{font-weight:900;font-size:26px;letter-spacing:.08em}
.msc-gros-buzzer i{font-style:normal;font-size:11px;opacity:.85}
.msc-gros-buzzer:active{transform:translateY(8px);box-shadow:0 2px 0 #52525b,0 6px 12px rgba(0,0,0,.5)}
@keyframes msc-appel{50%{box-shadow:0 10px 0 #52525b,0 18px 30px rgba(0,0,0,.5),0 0 70px rgba(220,38,38,.95)}}
.msc-rival-buzz{display:flex;align-items:center;gap:12px;justify-content:center;margin:12px 0;font-size:20px;animation:msc-tremble .2s linear 6}
.msc-rival-buzz img{width:64px;height:64px;border-radius:50%;object-fit:cover;object-position:50% 20%;border:3px solid #fb7185;box-shadow:0 0 22px #e11d48}
.msc-points-suspens{animation:msc-clignote .6s infinite}

/* --- manche 2 : le juste coût --- */
.msc-tournant{display:flex;justify-content:center;margin-bottom:10px}
.msc-tournant img{max-width:min(520px,100%);border-radius:18px;animation:msc-tourne 6s ease-in-out infinite alternate;box-shadow:0 0 40px rgba(34,211,238,.35)}
@keyframes msc-tourne{from{transform:perspective(800px) rotateY(-14deg)}to{transform:perspective(800px) rotateY(14deg)}}
.msc-fiche-velo{background:#fffef7;color:#1f1633;border-radius:16px;padding:12px;margin-bottom:8px}
.msc-fiche-velo-t{display:flex;gap:10px;align-items:center;margin-bottom:6px}
.msc-fiche-velo-t img{width:92px;height:52px;object-fit:cover;border-radius:8px}
.msc-fiche-velo-t div{display:flex;flex-direction:column}
.msc-fiche-velo-t i{font-size:12px;color:#6b7280;font-style:normal}
.msc-table{width:100%;border-collapse:collapse;font-size:14px}
.msc-table td,.msc-table th{padding:5px 8px;border-bottom:1px solid #e5e7eb;text-align:left}
.msc-table td:last-child{text-align:right;font-weight:800;white-space:nowrap}
.msc-table tr[style] td:first-child{border-left:5px solid var(--c)}
.msc-table-grille td{text-align:center!important}
.msc-table-grille th{text-align:center;background:#f3f0ff;font-size:13px}
.msc-ligne-choisie td{background:#fef3c7}
.msc-etages{display:flex;flex-direction:column-reverse;gap:4px;margin-top:8px}
.msc-etage{display:flex;justify-content:space-between;background:linear-gradient(90deg,#ede9fe,#fae8ff);border-radius:8px;padding:5px 10px;font-size:13px;animation:msc-glisse .4s calc(var(--k) * .1s) both}
.msc-etage i{font-style:normal}
.msc-jc-rival{display:flex;align-items:center;gap:10px;background:rgba(251,113,133,.12);border:1px solid rgba(251,113,133,.45);border-radius:14px;padding:8px 10px;margin:8px 0;font-size:14px}
.msc-jc-rival img{width:40px;height:40px;border-radius:50%;object-fit:cover;object-position:50% 20%;flex:none}
.msc-jc-piste{position:relative;background:#07030f;border:2px solid #3b2a62;border-radius:16px;padding:16px 18px 10px;margin:10px 0}
.msc-jc-valeur{text-align:center;font-family:"Courier New",monospace;font-size:42px;font-weight:900;color:#fbbf24;text-shadow:0 0 14px rgba(245,158,11,.8)}
.msc-jc-valeur small{font-size:20px}
.msc-jc-piste input[type=range]{width:100%;accent-color:#f59e0b;height:30px;cursor:pointer}
.msc-jc-marques{position:relative;height:24px}
.msc-jc-m{position:absolute;top:0;transform:translateX(-50%);width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:900}
.msc-jc-mr{background:#e11d48;color:#fff}
.msc-jc-mj{background:#16a34a;color:#fff;animation:msc-zoom .5s ease both}
.msc-jc-bornes{display:flex;justify-content:space-between;font-size:12px;color:#a5b4fc}
.msc-jc-fins{display:flex;gap:6px;flex-wrap:wrap;align-items:center;justify-content:center}
.msc-jc-pas{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.3);border-radius:10px;padding:8px 10px;font-weight:800;cursor:pointer;min-width:52px}
.msc-jc-verdict{font-size:15px;margin-bottom:6px}
.msc-jc-gain{font-weight:900;color:#7c3aed}

/* --- manche 3 : le banc d'essai --- */
.msc-labo-photo,.msc-banc-img{height:200px;border-radius:16px;background-size:cover;background-position:center;margin-bottom:10px;position:relative;overflow:hidden}
.msc-banc-velos{position:absolute;inset:auto 10px 10px 10px;display:flex;gap:10px;justify-content:center}
.msc-banc-velos img{width:min(42%,220px);border-radius:10px;border:2px solid rgba(255,255,255,.6);box-shadow:0 8px 20px rgba(0,0,0,.5)}
.msc-tests{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px;margin:10px 0}
.msc-test{display:flex;gap:8px;align-items:center;text-align:left;background:rgba(255,255,255,.08);color:#fff;border:2px solid rgba(255,255,255,.25);border-radius:14px;padding:10px;cursor:pointer;font-size:14px}
.msc-test span{font-size:22px}
.msc-test.msc-on{border-color:#22d3ee;background:rgba(34,211,238,.18);box-shadow:0 0 16px rgba(34,211,238,.4)}
.msc-barres{display:flex;flex-direction:column;gap:10px;margin:10px 0}
.msc-barre-test{background:rgba(7,3,15,.75);border:1px solid #3b2a62;border-radius:14px;padding:10px 12px;opacity:.55}
.msc-barre-test.msc-lance{opacity:1}
.msc-barre-t{font-weight:800;margin-bottom:6px;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.msc-barre-t i{font-weight:400;font-style:normal;font-size:12px;color:#a5b4fc}
.msc-barre-l{display:grid;grid-template-columns:150px 1fr 110px;gap:8px;align-items:center;font-size:13px;margin:3px 0}
.msc-barre-fond{height:14px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden}
.msc-barre-plein{display:block;height:100%;border-radius:99px;transition:width 1.4s cubic-bezier(.2,.9,.3,1);transition-delay:var(--d)}
.msc-barre-rampaz .msc-barre-plein{background:linear-gradient(90deg,#0d9488,#2dd4bf)}
.msc-barre-turbo .msc-barre-plein{background:linear-gradient(90deg,#ea580c,#fb923c)}
.msc-barre-l b{text-align:right}
.msc-doc .msc-barre-test{background:#f8f7ff;color:#1f1633;border-color:#ddd6fe}

/* --- manche 4 : enquête, prix, duel --- */
.msc-enquete{background:#fffef7;color:#1f1633;border-radius:16px;padding:12px;margin-bottom:10px;overflow-x:auto}
.msc-enquete-t{display:block;margin-bottom:6px}
.msc-enquete .msc-aide{color:#6b21a8}
.msc-choixprix .msc-consigne{background:rgba(255,255,255,.08);border-radius:12px;padding:10px}
.msc-prix-cartes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0}
.msc-prix-carte{display:flex;flex-direction:column;gap:4px;background:linear-gradient(180deg,#312e81,#1e1b4b);color:#fff;border:2px solid #6366f1;border-radius:16px;padding:14px 10px;cursor:pointer;font-size:13px;transition:transform .15s}
.msc-prix-carte b{font-size:22px;color:#fbbf24}
.msc-prix-carte i{font-style:normal;color:#a5b4fc}
.msc-prix-carte:hover{transform:translateY(-4px) rotate(-1deg);border-color:#fbbf24}
.msc-duel-scene{display:grid;grid-template-columns:1fr 1.4fr 1fr;gap:10px;align-items:center;margin:8px 0}
.msc-duel-podium{text-align:center;background:rgba(7,3,15,.7);border:2px solid #3b2a62;border-radius:14px;padding:8px;transition:box-shadow .4s,transform .4s}
.msc-duel-podium img{width:100%;max-height:90px;object-fit:cover;border-radius:10px}
.msc-duel-podium.msc-gagne{box-shadow:0 0 0 3px #fbbf24,0 0 30px rgba(251,191,36,.6);transform:scale(1.05)}
.msc-client{background:#fffef7;color:#1f1633;border-radius:16px;padding:12px;text-align:center;animation:msc-glisse .5s ease both;transition:transform .8s ease,opacity .8s}
.msc-client-ico{font-size:40px;display:block}
.msc-client p{margin:4px 0 0;font-size:14px;line-height:1.4}
.msc-va-moi{transform:translateX(-8%) scale(.94) rotate(-2deg)}
.msc-va-rival{transform:translateX(8%) scale(.94) rotate(2deg)}
.msc-main{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:10px 0}
.msc-carte{width:132px;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:6px;padding:10px 8px;border-radius:14px;cursor:pointer;
  background:linear-gradient(170deg,#fffef7,#fde68a);color:#1f1633;border:3px solid #fff;box-shadow:0 8px 18px rgba(0,0,0,.35);transform:rotate(calc(var(--k) * 2deg));transition:transform .18s,box-shadow .18s}
.msc-carte:hover:not(:disabled){transform:translateY(-10px) rotate(0);box-shadow:0 14px 30px rgba(251,191,36,.5)}
.msc-carte-ico{font-size:30px}
.msc-carte-t{font-weight:800;font-size:13px;line-height:1.25;text-align:center}
.msc-carte i{font-style:normal;font-size:10px;text-transform:uppercase;letter-spacing:.1em;padding:2px 8px;border-radius:99px;background:#1f1633;color:#fff}
.msc-carte-prix i{background:#ea580c}.msc-carte-qualite i{background:#0d9488}.msc-carte-service i{background:#7c3aed}
.msc-carte.msc-bon{box-shadow:0 0 0 4px #16a34a,0 0 30px rgba(22,163,74,.7);transform:translateY(-14px) scale(1.05)}
.msc-carte.msc-faux{box-shadow:0 0 0 4px #e11d48;transform:translateY(-8px)}
.msc-carte.msc-meilleure{box-shadow:0 0 0 4px #16a34a}
.msc-carte.msc-eteint{opacity:.4}
.msc-carte:disabled{cursor:default}

/* --- manche 5 : la roue --- */
.msc-roue-zone{text-align:center}
.msc-roue-cadre{position:relative;width:min(300px,80vw);margin:6px auto 12px;container-type:inline-size}
.msc-roue{width:100%;aspect-ratio:1;border-radius:50%;border:8px solid #fbbf24;box-shadow:0 0 0 6px #7c2d12,0 0 40px rgba(251,191,36,.5);position:relative;transition:transform 2.6s cubic-bezier(.15,.85,.25,1)}
.msc-roue-lab{position:absolute;left:50%;top:50%;font-size:30px;margin:-18px 0 0 -18px;width:36px;height:36px;line-height:36px;transform-origin:50% 50%}
.msc-roue-fleche{position:absolute;top:-22px;left:50%;transform:translateX(-50%);font-size:34px;color:#fff;z-index:2;text-shadow:0 2px 6px #000}
.msc-roue-res{margin-top:10px;font-weight:900;font-size:18px;padding:8px 12px;border-radius:12px;background:var(--c);display:inline-flex;flex-direction:column;animation:msc-zoom .4s ease both}
.msc-roue-res i{font-weight:400;font-size:12px;font-style:normal}
.msc-roue-zone .msc-calc{text-align:left}

/* --- manche 6 : quitte ou double --- */
.msc-mise{position:relative;overflow:hidden;text-align:center;padding:26px 14px;border-radius:18px;background:radial-gradient(circle,rgba(236,72,153,.35),rgba(10,4,26,.9) 70%)}
.msc-mise>*{position:relative}
.msc-mise>i{font-style:normal;font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:#fde68a}
.msc-mise-theme{display:block;font-size:24px;margin:8px 0}
.msc-mise-btns{display:flex;justify-content:center;gap:14px;flex-wrap:wrap}
.msc-jeton{width:76px;height:76px;border-radius:50%;cursor:pointer;font-size:24px;font-weight:900;color:#1b1040;
  background:radial-gradient(circle at 35% 30%,#fff7d6,#fbbf24 55%,#b45309);border:5px dashed #fff;box-shadow:0 6px 16px rgba(0,0,0,.4);transition:transform .15s}
.msc-jeton:hover:not(:disabled){transform:translateY(-4px) rotate(20deg)}
.msc-jeton:disabled{opacity:.35;cursor:default}
.msc-mise-rappel{margin-bottom:8px;color:#fde68a}

/* --- le plateau entre deux manches --- */
.msc-plateau{display:flex;flex-direction:column;gap:14px}
.msc-pupitres{display:grid;grid-template-columns:1fr auto 1fr;gap:14px;align-items:end}
.msc-pupitre{text-align:center;background:linear-gradient(180deg,rgba(124,58,237,.55),rgba(30,16,70,.9));border:2px solid #a78bfa;border-radius:18px 18px 8px 8px;padding:10px;display:flex;flex-direction:column;align-items:center}
.msc-pupitre img{width:84px;height:84px;border-radius:50%;object-fit:cover;object-position:50% 20%;border:3px solid #fbbf24;box-shadow:0 0 18px rgba(251,191,36,.5)}
.msc-pupitre i{font-style:normal;font-size:12px;color:#c4b5fd}
.msc-pupitre-rival{background:linear-gradient(180deg,rgba(225,29,72,.5),rgba(70,16,30,.9));border-color:#fb7185}
.msc-pupitre-rival img{border-color:#fb7185}
.msc-applaudimetre{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px}
.msc-applaudimetre i{font-style:normal}
.msc-applaudimetre>span{width:26px;height:110px;border-radius:99px;background:rgba(255,255,255,.1);border:2px solid rgba(255,255,255,.3);display:flex;align-items:flex-end;overflow:hidden}
.msc-applaudimetre>span>span{display:block;width:100%;background:linear-gradient(0deg,#16a34a,#fbbf24,#ec4899);transition:height 1.2s}
.msc-prochaine{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:var(--msc-carte);border:1px solid rgba(251,191,36,.4);border-radius:18px;padding:12px 14px}
.msc-prochaine>span{font-size:40px}
.msc-prochaine>div{flex:1;display:flex;flex-direction:column;min-width:160px}
.msc-prochaine i{font-style:normal;font-size:12px;color:#c4b5fd}
.msc-prochaine b{font-size:20px}
.msc-prochaine em{font-style:normal;color:#fde68a;font-size:14px}
.msc-souvenirs{background:rgba(255,255,255,.07);border-radius:14px;padding:10px 12px;font-size:14px}
.msc-souvenirs ul{margin:6px 0 0;padding-left:18px}
.msc-conducteur{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}
.msc-conducteur li{display:grid;grid-template-columns:32px 1fr auto;gap:2px 8px;align-items:center;background:#f8f7ff;border-radius:12px;padding:8px 10px}
.msc-conducteur li span{grid-row:span 2;font-size:22px}
.msc-conducteur li i{font-style:normal;font-size:12px;color:#6b7280;grid-column:2}
.msc-conducteur li button{grid-row:1 / span 2;grid-column:3}
.msc-conducteur li.msc-fait{background:#ecfdf5}

/* --- fin de manche, verdict --- */
.msc-bilan-m,.msc-verdict-fin{position:relative;text-align:center;background:var(--msc-carte);border-radius:22px;padding:26px 16px;overflow:hidden;border:1px solid rgba(251,191,36,.35)}
.msc-bilan-sur{font-size:12px;letter-spacing:.2em;text-transform:uppercase;color:#fde68a}
.msc-bilan-m h2{margin:6px 0 12px}
.msc-bilan-pts{display:flex;justify-content:center;gap:24px;margin-bottom:10px}
.msc-bilan-pts div{display:flex;flex-direction:column}
.msc-bilan-pts i{font-style:normal;font-size:13px;color:#c4b5fd}
.msc-bilan-pts b{font-family:"Courier New",monospace;font-size:38px;color:#fbbf24;text-shadow:0 0 12px rgba(245,158,11,.7)}
.msc-bilan-pts .msc-tab-rival b{color:#fb7185;text-shadow:0 0 12px rgba(225,29,72,.7)}
.msc-bilan-pct{display:block;margin:4px 0 8px}
.msc-verdict-roule{display:flex;flex-direction:column;gap:14px;align-items:center}
.msc-verdict-ico{font-size:80px;animation:msc-zoom .7s cubic-bezier(.2,1.6,.4,1) both}
.msc-verdict-fin h2{font-size:clamp(28px,5vw,44px);margin:4px 0 12px}
.msc-fin-victoire{border-color:#fbbf24;box-shadow:0 0 60px rgba(251,191,36,.35)}
.msc-fin-revanche{border-color:#fb7185}
.msc-verdict-fin p{max-width:620px;margin:12px auto;line-height:1.5}
.msc-verdict-tag{text-align:center;margin-bottom:6px}
.msc-bilan{color:#1f1633}

/* --- documents --- */
.msc-doc{background:#fff;color:#1f1633;border-radius:12px;padding:14px;font-size:14px;line-height:1.45}
.msc-doc-tete{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;align-items:center;border-bottom:3px solid #0d9488;padding-bottom:8px;margin-bottom:10px}
.msc-doc-logo{font-size:26px;grid-row:span 2}
.msc-doc-tete>div:nth-child(2){display:flex;flex-direction:column}
.msc-doc-tete i{font-style:normal;font-size:12px;color:#6b7280}
.msc-doc-titre{grid-column:1 / -1;display:flex;flex-direction:column}
.msc-doc-titre b{font-size:17px;color:#0f766e}
.msc-doc-pyramide{display:flex;flex-direction:column;gap:5px}
.msc-doc-etage{display:grid;grid-template-columns:1fr auto;gap:0 10px;border-left:8px solid var(--c);background:#f8fafc;border-radius:8px;padding:6px 10px}
.msc-doc-etage i{font-style:normal;font-size:12px;color:#6b7280;grid-column:1}
.msc-doc-etage b{grid-row:1 / span 2;grid-column:2;align-self:center;font-size:16px}
.msc-doc-pied{font-size:12px;color:#6b7280;margin-top:8px}
.msc-badge{max-width:380px;margin:0 auto;padding:0;overflow:hidden}
.msc-badge-bande{background:linear-gradient(90deg,#7c3aed,#ec4899);color:#fff;font-weight:900;font-size:12px;letter-spacing:.12em;padding:8px 12px}
.msc-badge-corps{display:flex;gap:12px;padding:12px;align-items:center}
.msc-badge-corps img{width:90px;height:112px;object-fit:cover;border-radius:10px}
.msc-badge-corps div{display:flex;flex-direction:column}
.msc-badge-corps b{font-size:22px}
.msc-badge-corps i{font-style:normal;font-size:12px;color:#6b7280}
.msc-journal{font-family:Georgia,"Times New Roman",serif}
.msc-journal-titre{font-size:26px;font-weight:900;text-align:center;border-bottom:3px double #1f1633;padding-bottom:6px;display:flex;flex-direction:column}
.msc-journal-titre i{font-size:12px;font-weight:400;font-style:italic}
.msc-journal h3{font-size:20px;margin:10px 0 6px}

/* --- téléphone --- */
@media (max-width:640px){
  .msc-centre{padding:10px 10px 60px}
  .msc-manche{padding:10px}
  .msc-barre{gap:6px}
  .msc-barre-logo{display:none}
  .msc-tableau{padding:8px 6px;gap:4px}
  .msc-tab-cote{min-width:0;padding:4px}
  .msc-compteur{font-size:30px}
  .msc-tableau-petit .msc-compteur{font-size:18px}
  .msc-tableau-petit .msc-tab-cote b{max-width:44px}
  .msc-opts-grille{grid-template-columns:1fr}
  .msc-buzz-ecran p{font-size:16px}
  .msc-gros-buzzer{width:120px;height:120px}
  .msc-prix-cartes{grid-template-columns:1fr}
  .msc-duel-scene{grid-template-columns:1fr 1fr}
  .msc-client{grid-column:1 / -1;grid-row:1}
  .msc-carte{width:calc(50% - 8px);min-height:120px;transform:none}
  .msc-barre-l{grid-template-columns:96px 1fr 76px;font-size:12px}
  .msc-pupitre img{width:58px;height:58px}
  .msc-applaudimetre>span{height:80px}
  .msc-va-moi,.msc-va-rival{transform:scale(.95)}
}
/* ==== msc : fin des styles ==== */
/* ==== mtb : debut des styles ====
   « Kat'Rou — le cadran du temps » — préfixe mtb-. Le cadran de laiton,
   le tunnel du voyage, les époques (filtres de couleur), le calque du
   temps, la radio, le trousseau, la ligne du temps et l'effet papillon. */
.mtb .pdl-decor-contenu{max-width:1060px}
.mtb-hud-an{margin:0 auto;color:#fff;font-size:13px;font-weight:700;text-align:center;padding:4px 12px;border-radius:20px;background:color-mix(in srgb,var(--c) 55%,transparent);border:1px solid var(--c)}
@media (max-width:620px){.mtb-loupe{width:26px;height:26px;font-size:12px;border-width:2px}.mtb-hud-titre{display:none}.mtb-hud-an{font-size:11px;padding:3px 8px;white-space:nowrap}.mtb .pdl-hud-outils button{width:32px;height:32px;font-size:15px}}

/* --- les époques : la même photo ne se regarde pas pareil --- */
.mtb-ep-1995 .pdl-decor-img{filter:sepia(.38) saturate(1.15) contrast(.96)}
.mtb-ep-2010 .pdl-decor-img{filter:saturate(.92) contrast(1.02)}
.mtb-ep-2040 .pdl-decor-img{filter:saturate(1.15) hue-rotate(-6deg)}
.mtb-ep-2040 .pdl-decor-voile{background:linear-gradient(180deg,rgba(76,29,149,.25),rgba(15,23,42,.72))}
.mtb-decor-plein .pdl-decor-contenu{max-width:1100px}

/* --- encart 💡 Aide --- */
.mtb-exo{width:100%;display:flex;flex-direction:column;gap:12px;align-items:stretch}
.mtb-aide{background:#fffbeb;border:2px solid #fcd34d;border-radius:14px;max-width:860px;width:100%;align-self:center;box-shadow:0 4px 14px rgba(0,0,0,.12)}
.mtb-aide-t{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;background:none;border:0;font:inherit;font-weight:800;font-size:15px;color:#92400e;padding:10px 14px;cursor:pointer}
.mtb-aide-t span{font-weight:500;font-size:13px;color:#b45309}
.mtb-aide-corps{padding:0 14px 12px;font-size:14px;line-height:1.45}
.mtb-aide-o{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.mtb-aide-opt{font:inherit;font-size:14px;background:#fff;border:2px solid #fde68a;border-radius:10px;padding:7px 12px;cursor:pointer;text-align:left}
.mtb-aide-opt.mtb-aide-bon{background:#dcfce7;border-color:#16a34a}.mtb-aide-opt.mtb-aide-faux{background:#fee2e2;border-color:#dc2626}
.mtb-aide-corr{margin:6px 0;color:#713f12}
.mtb-aide-re{font:inherit;font-size:13px;background:none;border:0;color:#b45309;cursor:pointer;text-decoration:underline}

/* --- consignes, récits, panneaux --- */
.mtb-consigne{background:rgba(255,255,255,.95);border-radius:12px;padding:10px 14px;margin:0;font-size:15px;line-height:1.45;max-width:900px;align-self:center;box-shadow:0 6px 18px rgba(0,0,0,.18)}
.mtb-consigne i{color:#64748b;font-size:13px}
.mtb-recit{background:rgba(15,23,42,.84);color:#fff;border-radius:16px;padding:16px 20px;max-width:680px;font-size:17px;line-height:1.55;display:flex;flex-direction:column;gap:10px;align-items:flex-end;animation:mtb-tombe .5s ease}
.mtb-recit p{margin:0;align-self:stretch}
.mtb-panneau{background:rgba(255,255,255,.97);border-radius:18px;padding:16px;max-width:980px;width:100%;box-shadow:0 14px 34px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:12px;align-items:center}
.mtb-panneau h3{margin:0;color:#4c1d95}
.mtb .pdl-qcm{background:rgba(255,255,255,.97);border-radius:18px;padding:16px;max-width:840px;box-shadow:0 12px 34px rgba(0,0,0,.28);align-self:center}
@keyframes mtb-tombe{from{opacity:0;transform:translateY(-16px) rotate(-1.2deg)}to{opacity:1;transform:none}}

/* --- la leçon, sept habits d'époque --- */
.mtb-lecon{background:#fff;border-radius:16px;padding:16px 20px 18px;max-width:840px;width:100%;box-shadow:0 14px 34px rgba(0,0,0,.3);position:relative;animation:mtb-tombe .5s ease}
.mtb-lecon-tete{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px}
.mtb-lecon-onglet{font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#0369a1}
.mtb-lecon h3{margin:4px 0 10px;font-size:20px;color:#1a1430}
.mtb-lecon ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:9px;font-size:15px;line-height:1.5}
.mtb-lecon-pt{animation:mtb-pt .45s ease}
@keyframes mtb-pt{from{opacity:0;transform:translateX(-8px)}to{opacity:1;transform:none}}
.mtb-lecon-plus{font:inherit;font-weight:700;margin-top:12px;background:#f1f5f9;border:0;border-radius:10px;padding:8px 14px;cursor:pointer;color:#334155}
.mtb-lecon-marge{margin:12px 0 4px;font-size:14px;color:#475569;font-style:italic;border-left:3px solid #fbbf24;padding-left:10px}
.mtb-lecon .pdl-cta{margin-top:10px}
/* écran du cadran : verre bleu, rivets de laiton */
.mtb-lecon-ecran{background:radial-gradient(circle at 30% 0%,#f0f9ff,#fff 60%);border:3px solid #b45309;box-shadow:0 0 0 4px #78350f,0 18px 40px rgba(0,0,0,.4),inset 0 0 30px rgba(56,189,248,.18)}
.mtb-lecon-ecran:before,.mtb-lecon-ecran:after{content:"";position:absolute;top:8px;width:9px;height:9px;border-radius:50%;background:radial-gradient(#fde68a,#92400e)}
.mtb-lecon-ecran:before{left:8px}.mtb-lecon-ecran:after{right:8px}
/* fax de 1995 : papier thermique qui se déroule */
.mtb-lecon-fax{background:repeating-linear-gradient(#fffdf6 0 27px,#f5efe0 27px 28px);font-family:"Courier New",Courier,monospace;border-radius:4px;transform-origin:top;animation:mtb-fax 1s ease}
.mtb-lecon-fax h3{font-family:"Courier New",Courier,monospace;text-transform:uppercase;font-size:18px}
.mtb-lecon-fax .mtb-lecon-onglet{color:#78350f}
.mtb-lecon-fax:before{content:"";position:absolute;left:0;right:0;top:-10px;height:10px;background:linear-gradient(90deg,#57534e,#a8a29e,#57534e);border-radius:4px 4px 0 0}
@keyframes mtb-fax{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0 0 0 0)}}
/* radio de 2010 */
.mtb-lecon-radio{border-top:6px solid #0891b2;background:linear-gradient(#ecfeff,#fff 40%)}
.mtb-lecon-radio .mtb-lecon-onglet{color:#0e7490}
.mtb-onde{display:flex;align-items:center;gap:3px;height:40px;margin:4px 0 6px;padding:0 4px;background:#cffafe;border-radius:22px}
.mtb-onde i{flex:1;height:var(--h);background:#0891b2;border-radius:2px;animation:mtb-onde 1.1s ease-in-out infinite alternate}
@keyframes mtb-onde{from{transform:scaleY(.35)}to{transform:scaleY(1)}}
/* page web de 2010 */
.mtb-lecon-blog{border:1px solid #94a3b8;border-radius:6px;padding-top:40px;background:#fff}
.mtb-lecon-blog:before{content:"◀ ▶ ⟳   http://www.partage-auto.re/blog";position:absolute;left:0;right:0;top:0;height:30px;background:linear-gradient(#e2e8f0,#cbd5e1);border-bottom:1px solid #94a3b8;font:12px Tahoma,Verdana,sans-serif;color:#475569;padding:7px 12px;border-radius:6px 6px 0 0}
.mtb-lecon-blog h3{font-family:Verdana,Tahoma,sans-serif;color:#1d4ed8}
/* notification d'aujourd'hui */
.mtb-lecon-telephone{border-radius:24px;background:linear-gradient(#f8fafc,#fff);border:1px solid #e2e8f0}
.mtb-lecon-telephone .mtb-lecon-onglet{color:#16a34a}
.mtb-lecon-telephone:before{content:"";position:absolute;top:8px;left:50%;width:70px;height:6px;margin-left:-35px;border-radius:4px;background:#cbd5e1}
/* fiche projetée */
.mtb-lecon-fiche{border-left:10px solid #16a34a}
.mtb-lecon-fiche .mtb-lecon-onglet{color:#15803d}
/* hologramme de 2040 */
.mtb-lecon-holo{background:linear-gradient(135deg,rgba(237,233,254,.96),rgba(224,242,254,.96));border:1px solid #a78bfa;box-shadow:0 0 30px rgba(139,92,246,.45),0 14px 34px rgba(0,0,0,.3);overflow:hidden}
.mtb-lecon-holo:after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,rgba(124,58,237,.06) 0 2px,transparent 2px 5px);pointer-events:none;animation:mtb-scan 3s linear infinite}
.mtb-lecon-holo .mtb-lecon-onglet{color:#6d28d9}
@keyframes mtb-scan{from{background-position:0 0}to{background-position:0 40px}}

/* --- le cadran de laiton (SVG) --- */
.mtb-cadran{width:min(220px,52vw);aspect-ratio:1;filter:drop-shadow(0 0 18px rgba(56,189,248,.45))}
.mtb-cadran-petit{width:96px}
.mtb-cadran svg{width:100%;height:100%;display:block}
.mtb-cad-laiton{fill:#b45309;stroke:#78350f;stroke-width:3}
.mtb-cad-verre{fill:#0c4a6e;stroke:#fbbf24;stroke-width:2}
.mtb-cad-trait{stroke:#7dd3fc;stroke-width:1.6}
.mtb-cad-an{fill:#bae6fd;font:700 11px Outfit,system-ui,sans-serif}
.mtb-cad-an.mtb-cad-ici{fill:#fde047;font-size:13px}
.mtb-cad-aiguille{transform-origin:100px 100px;transition:transform 1.2s cubic-bezier(.3,1.5,.5,1)}
.mtb-cad-aiguille line{stroke:#fbbf24;stroke-width:4;stroke-linecap:round}
.mtb-cad-aiguille circle{fill:#fde047}
.mtb-cad-axe{fill:#fbbf24;stroke:#78350f;stroke-width:2}
.mtb-cadran-tourne .mtb-cad-aiguille{animation:mtb-tourne 1s linear infinite;transition:none}
@keyframes mtb-tourne{from{transform:rotate(0)}to{transform:rotate(360deg)}}
.mtb-cadran-petit .mtb-cad-an{font-size:13px}

/* --- le voyage : tunnel, distorsion, compteur d'années --- */
.mtb-voyage{position:relative;min-height:min(80vh,780px);overflow:hidden;display:flex;align-items:center;justify-content:center;flex-direction:column;cursor:pointer;
  background:radial-gradient(circle at 50% 50%,color-mix(in srgb,var(--c) 40%,#020617) 0%,#020617 70%);animation:mtb-tremble .18s linear infinite}
.mtb-voyage-arrive{animation:mtb-flash .9s ease forwards}
.mtb-voyage:before{content:"";position:absolute;inset:-60%;background:repeating-conic-gradient(from 0deg,color-mix(in srgb,var(--c) 45%,transparent) 0deg 3deg,transparent 3deg 13deg);animation:mtb-tourne 2.2s linear infinite;opacity:.55;pointer-events:none}
.mtb-voyage-arrive:before{opacity:0;transition:opacity .5s}
@keyframes mtb-tremble{0%{transform:translate(0,0)}25%{transform:translate(1px,-1px)}50%{transform:translate(-1px,1px)}75%{transform:translate(1px,1px)}}
@keyframes mtb-flash{0%{filter:brightness(2.6)}100%{filter:brightness(1)}}
.mtb-tunnel{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}
.mtb-tunnel i{position:absolute;width:40px;height:40px;border-radius:50%;border:4px solid var(--c);box-shadow:0 0 22px var(--c),inset 0 0 18px var(--c);opacity:0;animation:mtb-anneau 1.6s ease-in infinite}
@keyframes mtb-anneau{0%{transform:scale(.2) rotate(0);opacity:0}20%{opacity:.9}100%{transform:scale(22) rotate(40deg);opacity:0}}
.mtb-voyage-arrive .mtb-tunnel i{animation-play-state:paused;opacity:0}
.mtb-voyage-centre{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:8px}
.mtb-voyage-monte .mtb-voyage-centre{animation:mtb-onduler .6s ease-in-out infinite alternate}
@keyframes mtb-onduler{from{transform:skewX(-3deg) scale(1);filter:hue-rotate(0) blur(0)}to{transform:skewX(3deg) scale(1.04);filter:hue-rotate(40deg) blur(.6px)}}
.mtb-voyage-an{font:900 clamp(54px,14vw,110px)/1 Outfit,system-ui,sans-serif;color:#fff;letter-spacing:.04em;text-shadow:0 0 24px var(--c),0 0 4px #fff;font-variant-numeric:tabular-nums}
.mtb-voyage-sous{color:#e0f2fe;font-weight:700;font-size:16px;text-align:center;padding:0 16px}
.mtb-voyage-passer{position:absolute;bottom:10px;color:rgba(255,255,255,.55);font-size:12px;margin:0}
@media (prefers-reduced-motion:reduce){.mtb-voyage,.mtb-voyage:before,.mtb-voyage-monte .mtb-voyage-centre,.mtb-tunnel i{animation:none}}

/* --- le calque du temps --- */
.mtb-calque-jeu{display:flex;flex-direction:column;gap:12px;width:100%;align-items:center}
.mtb-calque{position:relative;width:100%;max-width:980px;aspect-ratio:16/9;border-radius:16px;overflow:hidden;box-shadow:0 16px 40px rgba(0,0,0,.45);touch-action:pan-y;user-select:none;background:#0f172a}
.mtb-calque-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.mtb-calque-avant{position:absolute;inset:0}
.mtb-calque-ancien{filter:sepia(.4) saturate(1.1)}
.mtb-calque-trait{position:absolute;top:0;bottom:0;width:4px;margin-left:-2px;background:#fde047;box-shadow:0 0 12px #fde047;pointer-events:none}
.mtb-calque-trait span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#fde047;color:#422006;border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center;font-weight:900;box-shadow:0 2px 10px rgba(0,0,0,.4)}
.mtb-calque-et{position:absolute;top:10px;background:rgba(15,23,42,.8);color:#fff;font-weight:800;font-size:13px;padding:4px 10px;border-radius:20px;pointer-events:none}
.mtb-calque-et-g{left:10px;color:#fcd34d}.mtb-calque-et-d{right:10px;color:#86efac}
.mtb-calque-range{position:absolute;left:0;right:0;bottom:4px;width:100%;opacity:0;height:22px;cursor:ew-resize}
.mtb-loupe{position:absolute;transform:translate(-50%,-50%);width:34px;height:34px;border-radius:50%;border:3px solid #fff;background:rgba(124,58,237,.9);color:#fff;font:800 14px Outfit,system-ui,sans-serif;cursor:pointer;box-shadow:0 0 0 0 rgba(124,58,237,.7);animation:mtb-pulse 1.8s infinite;z-index:2}
.mtb-loupe.mtb-loupe-faite{background:#16a34a;animation:none}
@keyframes mtb-pulse{0%{box-shadow:0 0 0 0 rgba(253,224,71,.8)}70%{box-shadow:0 0 0 14px rgba(253,224,71,0)}100%{box-shadow:0 0 0 0 rgba(253,224,71,0)}}
.mtb-loupe-carte{background:#fff;border-radius:16px;padding:14px 16px;max-width:900px;width:100%;box-shadow:0 12px 30px rgba(0,0,0,.3);animation:mtb-tombe .4s ease;display:flex;flex-direction:column;gap:10px}
.mtb-loupe-txt{margin:0;font-size:15px;line-height:1.45}
.mtb-facteurs,.mtb-types{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;width:100%;max-width:900px}
.mtb-facteur,.mtb-type{font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 8px;border-radius:12px;border:2px solid var(--c);background:color-mix(in srgb,var(--c) 10%,#fff);cursor:pointer;transition:transform .15s}
.mtb-facteur:hover,.mtb-type:hover{transform:translateY(-2px)}
.mtb-facteur span,.mtb-type span{font-size:22px}
.mtb-facteur b,.mtb-type b{color:var(--c);font-size:14px}
.mtb-facteur i,.mtb-type i{font-size:12px;color:#475569}
.mtb-facteur-faux,.mtb-type-faux{animation:mtb-non .4s;background:#fee2e2}
@keyframes mtb-non{0%,100%{transform:translateX(0)}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}

/* --- le rangement et le comptoir --- */
.mtb-ranger{display:flex;flex-direction:column;gap:12px;width:100%;align-items:center}
.mtb-cartes{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;max-width:980px}
.mtb-carte{font:inherit;font-size:14px;line-height:1.35;background:#fff;border:2px solid #e2e8f0;border-radius:12px;padding:9px 12px;max-width:300px;text-align:left;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.18);animation:mtb-tombe .35s both}
.mtb-carte.mtb-carte-sel{border-color:#7c3aed;background:#f5f3ff;transform:translateY(-3px);box-shadow:0 0 0 3px rgba(124,58,237,.3)}
.mtb-cases{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:8px;width:100%;max-width:1000px}
@media (max-width:760px){.mtb-cases{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:420px){.mtb-cases{grid-template-columns:1fr}}
.mtb-case{background:rgba(255,255,255,.95);border:2px dashed var(--c);border-radius:14px;padding:8px;min-height:90px;display:flex;flex-direction:column;gap:6px;cursor:pointer;transition:background .2s}
.mtb-case.mtb-case-cible{background:color-mix(in srgb,var(--c) 12%,#fff);border-style:solid;animation:mtb-appel 1.2s infinite}
@keyframes mtb-appel{50%{box-shadow:0 0 0 4px color-mix(in srgb,var(--c) 30%,transparent)}}
.mtb-case-t{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;color:var(--c)}
.mtb-case-t b{font-size:14px}.mtb-case-t i{font-size:11px;color:#64748b;width:100%}
.mtb-pose{font-size:13px;line-height:1.3;background:#f8fafc;border-left:4px solid var(--c);border-radius:6px;padding:6px 8px;animation:mtb-pt .3s ease}
.mtb-pose small{display:block;margin-top:4px;color:#166534;font-size:12px}
.mtb-pose.mtb-pose-faux,.mtb-plan-case.mtb-pose-faux{background:#fee2e2;border-color:#dc2626;animation:mtb-non .4s}
.mtb-pose.mtb-pose-bon{background:#f0fdf4}
.mtb-client{background:#fffbeb;border:2px solid #d97706;border-radius:16px;padding:12px 16px;max-width:620px;width:100%;box-shadow:0 10px 26px rgba(0,0,0,.3);animation:mtb-arrive .5s ease;position:relative}
@keyframes mtb-arrive{from{opacity:0;transform:translateX(60px)}to{opacity:1;transform:none}}
.mtb-client-qui{font-weight:800;color:#92400e;font-size:14px}
.mtb-client-dit{font-size:17px;margin:6px 0;font-family:Georgia,serif}
.mtb-file{display:flex;gap:4px;font-size:18px;opacity:.7}
.mtb-ranger-comptoir .mtb-case{background:repeating-linear-gradient(#fffef8 0 21px,#f1e9d2 21px 22px)}

/* --- la radio des signaux --- */
.mtb-radio-jeu{display:flex;flex-direction:column;gap:12px;width:100%;align-items:center}
.mtb-radio{width:100%;max-width:760px;background:linear-gradient(#78350f,#451a03);border-radius:22px;padding:16px;box-shadow:0 18px 40px rgba(0,0,0,.5),inset 0 2px 0 rgba(255,255,255,.2);display:flex;flex-direction:column;gap:12px}
.mtb-radio-cadran{background:linear-gradient(#fef3c7,#fde68a);border-radius:12px;padding:22px 16px 10px;position:relative;box-shadow:inset 0 0 18px rgba(120,53,15,.4)}
.mtb-radio-echelle{position:relative;height:34px;border-bottom:2px solid #78350f}
.mtb-radio-echelle span{position:absolute;bottom:4px;transform:translateX(-50%);font:700 11px "Courier New",monospace;color:#78350f}
.mtb-radio-marque{position:absolute;top:-14px;width:12px;height:12px;margin-left:-6px;border-radius:50%;background:var(--c);box-shadow:0 0 6px var(--c)}
.mtb-radio-aiguille{position:absolute;top:-16px;bottom:-4px;width:3px;margin-left:-1px;background:#dc2626;box-shadow:0 0 6px #dc2626;transition:left .08s}
.mtb-radio-freq{display:flex;align-items:center;justify-content:flex-end;gap:8px;font:700 13px "Courier New",monospace;color:#78350f;margin-top:6px}
.mtb-radio-led{width:10px;height:10px;border-radius:50%;background:#7f1d1d}
.mtb-radio-led.mtb-radio-led-on{background:#22c55e;box-shadow:0 0 10px #22c55e}
.mtb-radio-reglage{display:flex;align-items:center;gap:10px}
.mtb-radio-molette{flex:1;accent-color:#f59e0b;height:30px}
.mtb-radio-saut{font:inherit;width:42px;height:42px;border-radius:50%;border:0;background:radial-gradient(#d6d3d1,#78716c);cursor:pointer;font-size:16px;box-shadow:0 3px 8px rgba(0,0,0,.5)}
.mtb-radio-message{min-height:78px;background:#0c0a09;color:#a3e635;border-radius:10px;padding:12px 14px;font:15px/1.45 "Courier New",monospace;transition:filter .1s}
.mtb-radio-message.mtb-radio-net{color:#ecfccb;box-shadow:0 0 14px rgba(163,230,53,.35)}

/* --- le trousseau --- */
.mtb-trousseau{display:flex;flex-direction:column;gap:12px;width:100%;align-items:center}
.mtb-schema{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:center;width:100%;max-width:860px;background:rgba(255,255,255,.95);border-radius:18px;padding:14px;box-shadow:0 12px 30px rgba(0,0,0,.3)}
@media (max-width:620px){.mtb-schema{grid-template-columns:1fr}.mtb-schema-fleche{transform:rotate(90deg)}}
.mtb-schema-col{display:flex;flex-direction:column;gap:8px}
.mtb-schema-t{font-weight:800;color:#334155;font-size:14px}
.mtb-acteur{font:inherit;display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;border:2px solid #cbd5e1;background:#fff;cursor:pointer;position:relative;text-align:left}
.mtb-acteur span{font-size:22px}
.mtb-acteur:disabled{opacity:.45;cursor:default}
.mtb-acteur.mtb-acteur-on{border-color:#16a34a;background:#f0fdf4;opacity:1}
.mtb-acteur.mtb-acteur-faux{animation:mtb-non .4s;border-color:#dc2626;background:#fee2e2}
.mtb-cle-posee{position:absolute;right:10px;font-style:normal;font-size:20px;animation:mtb-cle .6s cubic-bezier(.3,1.6,.5,1)}
@keyframes mtb-cle{from{transform:translateY(-30px) rotate(-90deg) scale(.4);opacity:0}to{transform:none;opacity:1}}
.mtb-schema-fleche{font-size:22px;opacity:.25;transition:opacity .4s;white-space:nowrap}
.mtb-schema-fleche.mtb-schema-fleche-on{opacity:1;animation:mtb-roule 1.4s ease-in-out infinite alternate}
@keyframes mtb-roule{from{letter-spacing:0}to{letter-spacing:6px}}
.mtb-modele{max-width:860px}

/* --- la décision sans étiquette --- */
.mtb-decision{background:rgba(255,255,255,.97);border-radius:18px;padding:16px;max-width:880px;width:100%;box-shadow:0 14px 34px rgba(0,0,0,.35);display:flex;flex-direction:column;gap:12px;animation:mtb-tombe .5s ease}
.mtb-decision-tete{font-weight:900;font-size:18px;color:#4c1d95}
.mtb-signaux{background:#f8fafc;border-radius:12px;padding:10px 14px;font-size:14px}
.mtb-signaux ul{margin:6px 0 0;padding-left:4px;list-style:none;display:flex;flex-direction:column;gap:6px}
.mtb-signaux li{animation:mtb-pt .5s both}
.mtb-decision .pdl-bulle{box-shadow:none;background:#faf5ff}
.mtb-options{display:flex;flex-direction:column;gap:8px}
.mtb-option{font:inherit;font-size:15px;text-align:left;display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:12px;border:2px solid #e2e8f0;background:#fff;cursor:pointer;transition:all .15s}
.mtb-option:hover{border-color:#a78bfa}
.mtb-option.mtb-option-on{border-color:#7c3aed;background:#f5f3ff;box-shadow:0 0 0 3px rgba(124,58,237,.2)}
.mtb-option-l{flex:none;width:26px;height:26px;border-radius:50%;background:#ede9fe;color:#5b21b6;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:13px}
.mtb-note-choix{margin:0;font-size:13px;color:#64748b;font-style:italic}
.mtb-echo{display:flex;gap:12px;align-items:center;background:#faf5ff;border:1px solid #ddd6fe;border-radius:14px;padding:12px 14px;animation:mtb-tombe .5s ease}
.mtb-echo p{margin:0;font-size:15px}
.mtb-papillon{font-size:34px;animation:mtb-vole 2s ease-in-out infinite}
@keyframes mtb-vole{0%,100%{transform:translateY(0) rotate(-8deg)}50%{transform:translateY(-8px) rotate(8deg) scaleX(.8)}}

/* --- le calcul --- */
.mtb-calcul{background:rgba(255,255,255,.97);border-radius:18px;padding:16px;max-width:820px;width:100%;align-self:center;box-shadow:0 12px 34px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:10px}
.mtb-calcul-q{font-size:17px;font-weight:700;margin:0}
.mtb-rappel{background:#eff6ff;border-left:4px solid #2563eb;border-radius:8px;padding:8px 12px;font-size:14px;line-height:1.45}
.mtb-formule-btn{font:inherit;font-size:13px;align-self:flex-start;background:#fef9c3;border:1px solid #facc15;border-radius:10px;padding:5px 10px;cursor:pointer}
.mtb-formule{margin:0;background:#fefce8;border-radius:8px;padding:8px 12px;font-weight:700;color:#713f12}
.mtb-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mtb-saisie input{font:inherit;font-size:18px;width:150px;padding:8px 12px;border:2px solid #cbd5e1;border-radius:10px}
.mtb-saisie input:focus{border-color:#7c3aed;outline:none}

/* --- l'effet papillon --- */
.mtb-page-papillon{background:radial-gradient(circle at 50% 0%,#312e81,#0f172a 70%);padding:18px 14px;min-height:min(80vh,780px);display:flex;justify-content:center}
.mtb-papillon-ecran{display:flex;flex-direction:column;gap:12px;align-items:center;width:100%;max-width:1000px}
.mtb-papillon-ecran h3{color:#fde047;margin:0;font-size:24px;text-shadow:0 0 14px rgba(253,224,71,.5)}
.mtb-indics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;width:100%}
@media (max-width:760px){.mtb-indics{grid-template-columns:repeat(3,minmax(0,1fr))}}
.mtb-indic{background:rgba(255,255,255,.95);border-radius:12px;padding:8px 6px;display:flex;flex-direction:column;align-items:center;gap:1px;text-align:center;position:relative}
.mtb-indic span{font-size:20px}
.mtb-indic b{font-size:19px;color:#0f172a;font-variant-numeric:tabular-nums}
.mtb-indic i{font-size:11px;color:#64748b;line-height:1.2}
.mtb-indic em{position:absolute;top:4px;right:6px;font-style:normal;font-size:11px;font-weight:800;color:#16a34a}
.mtb-indic.mtb-indic-monte{box-shadow:0 0 0 2px #22c55e,0 0 16px rgba(34,197,94,.5)}
.mtb-indics-petit .mtb-indic{padding:6px 4px}.mtb-indics-petit .mtb-indic b{font-size:16px}
.mtb-indics-petit{grid-template-columns:repeat(3,minmax(0,1fr))}
.mtb-chaine{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:center;color:#e0e7ff;font-weight:700;font-size:14px}
.mtb-chaine span{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:20px;padding:4px 10px}
.mtb-chaine i{font-style:normal;color:#fde047}

/* --- le curseur du télétravail --- */
.mtb-kevin{background:rgba(255,255,255,.97);border-radius:18px;padding:16px;max-width:820px;width:100%;align-self:center;box-shadow:0 12px 34px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:12px}
.mtb-kevin .mtb-consigne{box-shadow:none;padding:0;background:none}
.mtb-semaine{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.mtb-jour{border-radius:12px;background:#fef3c7;border:2px solid #f59e0b;display:flex;flex-direction:column;align-items:center;padding:6px 0;transition:all .3s}
.mtb-jour span{font-size:24px;transition:transform .3s}
.mtb-jour.mtb-jour-maison{background:#dcfce7;border-color:#16a34a}
.mtb-jour.mtb-jour-maison span{transform:scale(1.15)}
.mtb-kevin-curseur{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-weight:700}
.mtb-kevin-curseur input{flex:1;min-width:180px;accent-color:#16a34a}
.mtb-kevin-jours{margin:0}
.mtb-barres{display:flex;flex-direction:column;gap:8px}
.mtb-barre{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,2fr) auto;gap:8px;align-items:center;font-size:13px}
.mtb-barre>div{height:18px;background:#f1f5f9;border-radius:9px;overflow:hidden}
.mtb-barre>div i{display:block;height:100%;border-radius:9px;transition:width .5s cubic-bezier(.3,1.4,.5,1)}
.mtb-barre b{min-width:64px;text-align:right}
.mtb-barre.mtb-barre-moins{font-weight:800}
.mtb-barre.mtb-barre-moins b:after{content:" ✓";color:#16a34a}
@media (max-width:520px){.mtb-barre{grid-template-columns:1fr auto}.mtb-barre>div{grid-column:1/-1;grid-row:2}}

/* --- l'atelier du contrat --- */
.mtb-atelier{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:14px;width:100%;max-width:1000px;align-items:start}
@media (max-width:760px){.mtb-atelier{grid-template-columns:1fr}}
.mtb-contrat-papier{background:#fffdf7;border-radius:6px;padding:16px 18px 50px;box-shadow:0 14px 30px rgba(0,0,0,.35);font-family:Georgia,serif;position:relative;transform:rotate(-.8deg);min-height:260px}
.mtb-contrat-ent{margin:0;font:800 11px Outfit,sans-serif;letter-spacing:.12em;color:#15803d}
.mtb-contrat-papier h4{margin:6px 0 2px;font-size:18px}
.mtb-contrat-sous{margin:0 0 8px;font-size:13px;color:#64748b;font-style:italic}
.mtb-contrat-papier ol{padding-left:20px;display:flex;flex-direction:column;gap:6px;font-size:14px}
.mtb-contrat-ligne{animation:mtb-imprime .7s steps(20)}
@keyframes mtb-imprime{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
.mtb-contrat-vide{color:#cbd5e1;list-style:none}
.mtb-tampon{position:relative;right:auto;bottom:auto;display:inline-block;margin-top:10px;font-size:18px;border-color:#15803d;color:#15803d}
.mtb-clause{background:rgba(255,255,255,.97);border-radius:18px;padding:16px;box-shadow:0 12px 34px rgba(0,0,0,.3)}

/* --- la machine à futurs --- */
.mtb-futurs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:100%}
@media (max-width:760px){.mtb-futurs{grid-template-columns:repeat(2,minmax(0,1fr))}}
.mtb-futur{border-radius:14px;overflow:hidden;background:#fff;border:2px solid #e2e8f0;display:flex;flex-direction:column;opacity:.55;filter:grayscale(.85);transition:all .4s}
.mtb-futur-img{aspect-ratio:16/9;background-size:cover;background-position:center}
.mtb-futur b{padding:6px 8px 0;font-size:14px;color:var(--c)}
.mtb-futur i{padding:2px 8px 8px;font-size:12px;color:#475569;line-height:1.3}
.mtb-futur.mtb-futur-moi{opacity:1;filter:none;border-color:var(--c);box-shadow:0 0 0 3px color-mix(in srgb,var(--c) 40%,transparent),0 0 24px var(--c);transform:scale(1.03)}

/* --- le plaidoyer --- */
.mtb-plaidoyer{display:flex;flex-direction:column;gap:12px;width:100%;align-items:center}
.mtb-plan{display:flex;flex-direction:column;gap:8px;width:100%;max-width:860px}
.mtb-plan-case{background:rgba(255,255,255,.96);border:2px dashed #a78bfa;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:4px;cursor:pointer;min-height:54px}
.mtb-plan-case b{color:#6d28d9;font-size:13px}
.mtb-plan-case span{font-size:14px}
.mtb-plan-case i{color:#94a3b8}
.mtb-plan-case.mtb-case-cible{border-style:solid;background:#faf5ff;--c:#7c3aed;animation:mtb-appel 1.2s infinite}
.mtb-plan-case.mtb-pose-bon{border-style:solid;border-color:#16a34a;background:#f0fdf4}

/* --- le cockpit du Kadran : le hub --- */
.mtb-cockpit{width:100%;max-width:1060px;display:flex;flex-direction:column;gap:12px}
.mtb-cockpit-tete{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;color:#fff}
.mtb-cockpit-tete h2{margin:0;font-size:24px;text-shadow:0 0 14px rgba(56,189,248,.6)}
.mtb-cockpit-tete span{opacity:.75;font-size:13px}
.mtb-cockpit-corps{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:14px}
@media (max-width:800px){.mtb-cockpit-corps{grid-template-columns:1fr}}
.mtb-cockpit-g{display:flex;flex-direction:column;align-items:center;gap:12px;background:linear-gradient(#292524,#1c1917);border:3px solid #b45309;border-radius:22px;padding:16px;box-shadow:inset 0 0 30px rgba(0,0,0,.6),0 14px 34px rgba(0,0,0,.4)}
.mtb-cockpit-d{display:flex;flex-direction:column;gap:10px}
.mtb-prochain{background:rgba(255,255,255,.97);border-radius:14px;padding:12px 14px;width:100%;animation:mtb-tombe .5s ease}
.mtb-prochain-an{display:inline-block;background:var(--c);color:#fff;font-weight:800;font-size:12px;padding:3px 10px;border-radius:20px}
.mtb-prochain h3{margin:6px 0 4px;font-size:18px}
.mtb-prochain p{margin:0 0 8px;font-size:14px;color:#475569}
.mtb-frise{background:rgba(255,255,255,.96);border-radius:16px;padding:12px 14px;position:relative;overflow:hidden}
.mtb-frise-t{font-size:14px;color:#334155}
.mtb-frise-ligne{display:grid;grid-template-columns:repeat(4,1fr);margin-top:10px;position:relative}
.mtb-frise-ligne:before{content:"";position:absolute;left:12%;right:12%;top:31px;height:4px;background:linear-gradient(90deg,#d97706,#0891b2,#16a34a,#7c3aed);border-radius:2px}
.mtb-noeud{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;position:relative;opacity:.55}
.mtb-noeud.mtb-noeud-vu{opacity:1}
.mtb-noeud-an{font-weight:800;font-size:13px;color:var(--c)}
.mtb-noeud-point{width:18px;height:18px;border-radius:50%;background:#fff;border:4px solid var(--c);z-index:1}
.mtb-noeud-vu .mtb-noeud-point{background:var(--c);box-shadow:0 0 10px var(--c)}
.mtb-noeud-d{font-size:12px;color:#334155;line-height:1.25}
.mtb-frise-vague .mtb-noeud-point{animation:mtb-onde-temps 2.4s ease}
.mtb-frise-vague:after{content:"🦋";position:absolute;top:22px;left:0;font-size:24px;animation:mtb-papillon-vol 2.4s ease forwards}
@keyframes mtb-onde-temps{0%,100%{transform:scale(1)}30%{transform:scale(1.8);box-shadow:0 0 0 10px rgba(253,224,71,.4)}}
@keyframes mtb-papillon-vol{from{left:4%;transform:translateY(0)}50%{transform:translateY(-14px)}to{left:90%;transform:translateY(0);opacity:0}}
.mtb-present{background:rgba(255,255,255,.96);border-radius:16px;padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.mtb-present b{font-size:14px;color:#334155}
.mtb-present-cache{margin:0;font-size:14px;color:#64748b;font-style:italic}
.mtb-paradoxe{background:linear-gradient(135deg,#faf5ff,#eef2ff);border:1px solid #c4b5fd;border-radius:16px;padding:10px 14px;display:flex;flex-direction:column;gap:6px}
.mtb-paradoxe b{color:#5b21b6}.mtb-paradoxe>span{font-size:13px;color:#475569}
.mtb-paradoxe div{display:flex;gap:8px;flex-wrap:wrap}
.mtb-paradoxe button{font:inherit;font-weight:700;font-size:13px;border:2px solid #7c3aed;background:#fff;color:#5b21b6;border-radius:20px;padding:5px 12px;cursor:pointer}
.mtb-liaison{background:rgba(255,253,240,.97);border-radius:16px;padding:10px 14px;font-size:13px;max-height:220px;overflow:auto}
.mtb-liaison ul{margin:6px 0 0;padding-left:4px;list-style:none;display:flex;flex-direction:column;gap:5px}
.mtb-acces-prof{display:flex;flex-wrap:wrap;gap:6px;align-items:center;color:#e7e5e4;font-size:12px}
.mtb-acces-prof button{font:inherit;font-size:12px;border:1px solid #a8a29e;background:transparent;color:#fff;border-radius:14px;padding:3px 8px;cursor:pointer}

/* --- l'accueil --- */
.mtb-accueil{display:flex;flex-direction:column;gap:10px}
.mtb-accueil-ans{display:flex;gap:8px;flex-wrap:wrap}
.mtb-accueil-ans span{background:var(--c);color:#fff;font-weight:800;padding:4px 12px;border-radius:20px;font-size:14px;animation:mtb-flotte 2.4s ease-in-out infinite}
@keyframes mtb-flotte{50%{transform:translateY(-4px)}}

/* --- les documents --- */
.mtb-doc{font-size:14px;line-height:1.5;color:#1e293b}
.mtb-doc h3{margin:4px 0 6px}
.mtb-doc-ent{margin:0;font:800 11px Outfit,sans-serif;letter-spacing:.12em;color:#b45309}
.mtb-doc-sous{margin:0 0 8px;color:#64748b;font-style:italic}
.mtb-doc-date{margin:0 0 8px;color:#64748b}
.mtb-doc-signe{text-align:right;font-family:"Segoe Script","Brush Script MT",cursive;font-size:20px;margin:8px 0 0}
.mtb-doc-note{background:#f8fafc;border-left:3px solid #94a3b8;padding:6px 10px;border-radius:6px;font-size:13px}
.mtb-doc-decision{font-weight:800;color:#5b21b6;background:#faf5ff;border-radius:8px;padding:6px 10px}
.mtb-doc-manuscrit{font-family:"Segoe Print","Comic Sans MS",cursive;background:repeating-linear-gradient(#fffef6 0 25px,#e0e7ff 25px 26px);padding:8px 10px;border-radius:6px}
.mtb-doc-officiel{border-top:5px double #15803d;padding-top:6px}
.mtb-doc-holo{background:linear-gradient(135deg,#f5f3ff,#ecfeff);border-radius:10px;padding:12px 14px;border:1px solid #c4b5fd}
.mtb-table{width:100%;border-collapse:collapse;font-size:13px;margin:6px 0}
.mtb-table th,.mtb-table td{border:1px solid #e2e8f0;padding:5px 7px;text-align:left;vertical-align:top}
.mtb-table th{background:#f1f5f9}
.mtb-passe{width:min(340px,100%);border-radius:16px;overflow:hidden;background:linear-gradient(135deg,#1e1b4b,#0c4a6e);color:#fff;box-shadow:0 14px 34px rgba(0,0,0,.4);margin:0 auto}
.mtb-passe-tete{display:flex;flex-direction:column;padding:10px 14px;background:rgba(0,0,0,.25)}
.mtb-passe-tete b{letter-spacing:.2em;color:#fde047}.mtb-passe-tete span{font-size:12px;opacity:.8}
.mtb-passe-corps{display:flex;gap:12px;padding:12px 14px;align-items:center}
.mtb-passe-corps img{width:84px;height:104px;object-fit:cover;border-radius:10px;border:2px solid #fde047}
.mtb-passe-corps div{display:flex;flex-direction:column;gap:3px}
.mtb-passe-corps b{font-size:20px}.mtb-passe-corps span{font-size:13px}.mtb-passe-corps i{font-size:11px;opacity:.8}
.mtb-passe-pied{display:flex;align-items:center;gap:10px;padding:8px 14px 12px;font-size:12px;font-style:italic;opacity:.9}
.mtb-passe-pied .mtb-cadran{width:46px}
.mtb-journal img{width:100%;border-radius:6px;margin:6px 0}
.mtb-fin-badge{display:flex;flex-direction:column;align-items:center;gap:2px;background:color-mix(in srgb,var(--c) 12%,#fff);border:2px solid var(--c);border-radius:16px;padding:10px 14px;text-align:center}
.mtb-fin-badge span{font-size:34px}.mtb-fin-badge b{color:var(--c);font-size:18px}.mtb-fin-badge i{font-size:12px;color:#475569}
/* ==== mtb : fin des styles ==== */
/* ==== mta : debut des styles ====
   « Silans ! — le procès de Kasroch » (MSDGN Tle, chapitre 10). Toutes les
   classes sont préfixées mta- ; les briques pdl- viennent de Péi Délices. */
.mta{--mta-bois:#7c4a1e;--mta-vert:#14532d;--mta-or:#fbbf24;--mta-encre:#1e1b2e}
.mta .pdl-decor{min-height:min(84vh,820px)}
.mta .pdl-ex-titre{color:#fde68a;text-shadow:0 2px 8px rgba(0,0,0,.8)}
.mta .pdl-qcm-prog{color:#fde68a;text-shadow:0 1px 4px rgba(0,0,0,.8)}
.mta-hud-date{color:#fde68a;font-weight:700;font-size:13.5px;margin:0 auto;text-align:center;padding:0 6px}

/* ---------- la balance ---------- */
.mta-balance{position:relative;width:240px;height:120px;margin:0 auto}
.mta-balance.petit{width:150px;height:78px}
.mta-bal-pied{position:absolute;left:50%;bottom:0;width:10px;height:78%;margin-left:-5px;background:linear-gradient(90deg,#b45309,#fbbf24,#b45309);border-radius:4px}
.mta-bal-pied::after{content:"";position:absolute;bottom:-4px;left:-30px;width:70px;height:10px;background:#92400e;border-radius:6px}
.mta-bal-pied::before{content:"";position:absolute;top:-8px;left:-4px;width:18px;height:18px;border-radius:50%;background:#fbbf24;box-shadow:0 0 12px rgba(251,191,36,.7)}
.mta-bal-fleau{position:absolute;left:6%;right:6%;top:18%;height:6px;background:linear-gradient(#fde68a,#b45309);border-radius:3px;transition:transform 1.2s cubic-bezier(.3,1.6,.5,1);transform-origin:50% 50%}
.mta-bal-plat{position:absolute;top:4px;width:66px;display:flex;flex-direction:column;align-items:center;transition:transform 1.2s cubic-bezier(.3,1.6,.5,1);transform-origin:50% 0}
.mta-balance.petit .mta-bal-plat{width:44px}
.mta-bal-plat::before{content:"";width:2px;height:28px;background:#fde68a;display:block}
.mta-bal-plat span{display:flex;align-items:center;justify-content:center;width:62px;height:24px;border-radius:0 0 40px 40px;background:linear-gradient(#fde68a,#d97706);font-size:16px;box-shadow:0 4px 8px rgba(0,0,0,.3)}
.mta-balance.petit .mta-bal-plat span{width:42px;height:18px;font-size:12px}
.mta-bal-plat i{font-size:11px;color:#fff;font-style:normal;font-weight:700;text-shadow:0 1px 3px #000;margin-top:2px;white-space:nowrap}
.mta-bal-plat.g{left:-30px}.mta-bal-plat.d{right:-30px}
.mta-balance.petit .mta-bal-plat.g{left:-20px}.mta-balance.petit .mta-bal-plat.d{right:-20px}

/* ---------- le jury : douze petits personnages ---------- */
.mta-jury{display:grid;grid-template-columns:repeat(6,1fr);gap:14px 6px;padding:14px 8px 6px;background:linear-gradient(#8b5a2b,#5b3a1a);border-radius:14px;box-shadow:inset 0 -6px 0 rgba(0,0,0,.25),0 8px 20px rgba(0,0,0,.35);width:100%;max-width:440px}
.mta-jury.petit{max-width:330px;gap:10px 4px;padding:10px 6px 4px}
.mta-jure{position:relative;display:flex;flex-direction:column;align-items:center;transform:rotate(var(--p));transform-origin:50% 100%;transition:transform 1s ease;animation:mta-respire 3.2s ease-in-out infinite}
.mta-jure-tete{width:28px;height:28px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fde7d1,#c08457);border:3px solid var(--c);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:#3b1d0a}
.mta-jury.petit .mta-jure-tete{width:22px;height:22px;font-size:10px;border-width:2px}
.mta-jure-corps{width:30px;height:18px;border-radius:12px 12px 4px 4px;background:var(--c);margin-top:-3px}
.mta-jury.petit .mta-jure-corps{width:24px;height:13px}
.mta-jure-nom{font-size:9.5px;color:#fde68a;margin-top:2px;white-space:nowrap;max-width:62px;overflow:hidden;text-overflow:ellipsis}
.mta-jure.def .mta-jure-tete{box-shadow:4px 0 0 #f59e0b}
.mta-jure.pc .mta-jure-tete{box-shadow:-4px 0 0 #2dd4bf}
.mta-jure.reagit{animation:mta-hoche .5s ease 3}
.mta-jure-bulle{position:absolute;top:-20px;font-size:17px;animation:mta-bulle 2.2s ease forwards;z-index:3}
@keyframes mta-respire{0%,100%{translate:0 0}50%{translate:0 -2px}}
@keyframes mta-hoche{0%,100%{translate:0 0}50%{translate:0 4px}}
@keyframes mta-bulle{0%{opacity:0;transform:translateY(6px) scale(.6)}15%{opacity:1;transform:none}80%{opacity:1}100%{opacity:0;transform:translateY(-10px)}}

/* ---------- le marteau ---------- */
.mta-marteau-voile{position:fixed;inset:0;z-index:2147483600;display:flex;align-items:center;justify-content:center;background:rgba(15,10,5,.35);pointer-events:none;animation:mta-fondu 1.7s ease forwards}
.mta-marteau{display:flex;flex-direction:column;align-items:center;gap:6px;background:rgba(30,27,46,.92);color:#fde68a;border:3px solid var(--mta-or,#fbbf24);border-radius:18px;padding:16px 26px;box-shadow:0 20px 50px rgba(0,0,0,.5);text-align:center;max-width:90vw}
.mta-marteau b{font-family:Fraunces,Georgia,serif;font-size:clamp(20px,4.5vw,30px)}
.mta-marteau-ico{font-size:46px;display:block;transform-origin:80% 80%;animation:mta-coup .5s ease 2}
@keyframes mta-coup{0%{transform:rotate(-40deg)}60%{transform:rotate(12deg)}100%{transform:rotate(0)}}
@keyframes mta-fondu{0%{opacity:0}12%{opacity:1}80%{opacity:1}100%{opacity:0}}

/* ---------- les briques ---------- */
.mta-atelier{width:100%;max-width:900px;display:flex;flex-direction:column;gap:12px}
.mta-atelier-tete{background:linear-gradient(90deg,#14532d,#166534);color:#fff;border-radius:14px;padding:10px 14px;display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;box-shadow:0 6px 16px rgba(0,0,0,.25)}
.mta-atelier-tete span{font-weight:800;font-family:Fraunces,Georgia,serif;font-size:17px}
.mta-atelier-tete i{font-size:13px;opacity:.85}
.mta-exo{display:flex;flex-direction:column;gap:12px;width:100%}
.mta-msg{margin:0;border-radius:12px;padding:10px 14px;font-size:14.5px;line-height:1.45;animation:pdl-entree .35s ease}
.mta-msg.bon{background:#dcfce7;color:#14532d;border-left:5px solid #16a34a}
.mta-msg.faux{background:#fff7ed;color:#7c2d12;border-left:5px solid #f97316}
.mta-lien{background:none;border:0;color:#e0e7ff;text-decoration:underline;font:inherit;font-size:13px;cursor:pointer;align-self:center;padding:4px}
.mta-aide{background:rgba(255,251,235,.97);border:2px dashed #f59e0b;border-radius:14px;overflow:hidden}
.mta-aide-t{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;background:none;border:0;font:inherit;font-weight:800;color:#92400e;padding:10px 14px;cursor:pointer;font-size:15px}
.mta-aide-t span{font-weight:500;font-size:13px;color:#b45309}
.mta-aide-corps{padding:0 14px 12px}
.mta-aide-corps p{margin:4px 0 8px;line-height:1.45}
.mta-aide-o{display:flex;flex-wrap:wrap;gap:8px}
.mta-aide-opt{font:inherit;font-size:14px;background:#fff;border:2px solid #fde68a;border-radius:10px;padding:7px 12px;cursor:pointer}
.mta-aide-opt.bon{background:#dcfce7;border-color:#16a34a}
.mta-aide-opt.faux{background:#fee2e2;border-color:#ef4444}
.mta-aide-corr{background:#fff;border-radius:10px;padding:8px 12px}
.mta-aide-re{background:none;border:0;color:#b45309;font:inherit;font-size:13px;cursor:pointer;text-decoration:underline}

/* ---------- la leçon, sous huit habits ---------- */
.mta-fiche{background:#fffdf7;border-radius:16px;padding:18px 20px;max-width:760px;width:100%;box-shadow:0 18px 40px rgba(0,0,0,.35);position:relative;animation:pdl-entree .6s ease}
.mta-fiche-tete{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px;font-weight:700;color:#7c2d12;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px dashed #d6c7a1;padding-bottom:8px}
.mta-fiche h3{font-family:Fraunces,Georgia,serif;font-size:23px;margin:10px 0}
.mta-fiche ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:8px}
.mta-fiche-pt{line-height:1.5;font-size:15.5px;animation:pdl-entree .5s ease}
.mta-fiche-plus{margin-top:12px;background:#fef3c7;border:0;border-radius:10px;padding:9px 14px;font:inherit;font-weight:700;color:#92400e;cursor:pointer}
.mta-fiche .pdl-cta{margin-top:14px}
.mta-fiche-reglement,.mta-fiche-parchemin{background:linear-gradient(#f8eccc,#efdcae);border:1px solid #c9a96a}
.mta-fiche-reglement::before,.mta-fiche-reglement::after,.mta-fiche-parchemin::before,.mta-fiche-parchemin::after{content:"";position:absolute;left:-6px;right:-6px;height:14px;border-radius:8px;background:linear-gradient(#a16207,#713f12)}
.mta-fiche-reglement::before,.mta-fiche-parchemin::before{top:-7px}
.mta-fiche-reglement::after,.mta-fiche-parchemin::after{bottom:-7px}
.mta-fiche-huissier{border-top:8px solid #1e3a8a;font-family:"Courier New",monospace}
.mta-fiche-huissier .mta-fiche-pt{font-family:system-ui,sans-serif}
.mta-fiche-code{background:#7f1d1d;color:#fff}
.mta-fiche-code .mta-fiche-pt{background:#fffdf7;color:#1e1b2e;border-radius:8px;padding:6px 10px;list-style-position:inside;margin-left:-22px}
.mta-fiche-code .mta-fiche-tete{color:#fecaca;border-color:#fca5a5}
.mta-fiche-rapport{border-left:10px solid #0369a1;background:repeating-linear-gradient(#fff 0 27px,#e0f2fe 27px 28px)}
.mta-fiche-message{background:#ecfeff;border-radius:22px 22px 22px 6px}
.mta-fiche-message .mta-fiche-pt{background:#fff;border-radius:16px 16px 16px 4px;padding:8px 12px;box-shadow:0 2px 6px rgba(0,0,0,.08);list-style:none;margin-left:-22px}
.mta-fiche-tract{background:#f0fdf4;border:3px solid #15803d;transform:rotate(-.6deg)}
.mta-fiche-carnet{background:repeating-linear-gradient(#fffef5 0 29px,#cbd5e1 29px 30px);border-left:26px solid #9f1239}

/* ---------- audience 1 : le plan de salle ---------- */
.mta-plan-entre{display:flex;gap:12px;align-items:center;background:#fff;border-radius:16px;padding:12px 16px;box-shadow:0 10px 26px rgba(0,0,0,.3);animation:mta-entre .6s cubic-bezier(.3,1.4,.5,1)}
.mta-plan-entre p{margin:2px 0 0;font-size:14.5px;line-height:1.4;color:#334155}
.mta-plan-entre b{font-size:17px}
.mta-plan-ico{font-size:40px}
@keyframes mta-entre{from{opacity:0;transform:translateX(-60px) rotate(-3deg)}to{opacity:1;transform:none}}
.mta-plan-salle{position:relative;padding:22px 26px 26px 26px;background:linear-gradient(#e7d3b0,#cfae7c);border-radius:18px;box-shadow:inset 0 0 0 6px #8b5a2b}
.mta-axe{position:absolute;font-size:11.5px;font-weight:800;color:#5b3a1a;white-space:nowrap}
.mta-axe.y{top:4px;left:50%;transform:translateX(-50%)}
.mta-axe.y2{bottom:4px;left:50%;transform:translateX(-50%)}
.mta-axe.x{left:2px;top:50%;transform:translateY(-50%) rotate(-90deg);transform-origin:center;left:-22px}
.mta-axe.x2{right:-18px;top:50%;transform:translateY(-50%) rotate(90deg)}
.mta-plan-grille{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mta-banc{font:inherit;text-align:left;border:0;border-radius:12px;padding:10px;min-height:96px;display:flex;flex-direction:column;gap:2px;background:#fffaf0;box-shadow:0 5px 0 #8b5a2b;cursor:pointer;transition:transform .15s}
.mta-banc.cible:hover{transform:translateY(-3px)}
.mta-banc b{font-size:14.5px}
.mta-banc i{font-size:12px;color:#64748b}
.mta-banc.b0{background:#fef3c7}
.mta-banc-assis{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.mta-assis{font-size:22px;animation:mta-assied .5s cubic-bezier(.3,1.6,.5,1)}
@keyframes mta-assied{from{transform:translateY(-30px) scale(.4);opacity:0}to{transform:none;opacity:1}}

/* ---------- audience 2 : les scellés ---------- */
.mta-scelles-table{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:16px;background:linear-gradient(135deg,#7c4a1e,#5b3412);border-radius:16px;box-shadow:inset 0 0 30px rgba(0,0,0,.4)}
.mta-scelle{font:inherit;position:relative;transform:rotate(var(--r));background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(226,232,240,.85));border:2px solid #cbd5e1;border-radius:6px;padding:20px 8px 10px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;box-shadow:0 6px 14px rgba(0,0,0,.35);transition:transform .2s}
.mta-scelle::before{content:"";position:absolute;top:0;left:0;right:0;height:10px;background:repeating-linear-gradient(90deg,#dc2626 0 10px,#fff 10px 20px)}
.mta-scelle:hover:not(:disabled){transform:rotate(0) scale(1.05)}
.mta-scelle-n{font-size:11px;font-weight:800;color:#991b1b}
.mta-scelle-ico{font-size:30px}
.mta-scelle b{font-size:12.5px;text-align:center;line-height:1.2}
.mta-scelle i{font-size:10.5px;font-style:normal;font-weight:800;border:2px solid currentColor;border-radius:4px;padding:1px 4px;transform:rotate(-6deg)}
.mta-scelle.fait{opacity:.85;cursor:default}
.mta-scelle.t0 i,.mta-tampon-pose.t0{color:#b91c1c}
.mta-scelle.t1 i,.mta-tampon-pose.t1{color:#15803d}
.mta-scelle.t2 i,.mta-tampon-pose.t2{color:#1d4ed8}
.mta-piece{position:relative;background:#fff;border-radius:10px;padding:16px;box-shadow:0 14px 34px rgba(0,0,0,.4);animation:mta-tombe .6s cubic-bezier(.3,1.4,.5,1)}
@keyframes mta-tombe{from{transform:translateY(-40px) rotate(4deg);opacity:0}to{transform:none;opacity:1}}
.mta-piece-n{font-size:12px;font-weight:800;color:#991b1b;text-transform:uppercase}
.mta-piece-photo{display:flex;gap:12px;align-items:center;background:#0f172a;color:#e2e8f0;border-radius:8px;padding:14px;margin:8px 0;border:6px solid #f8fafc;box-shadow:0 0 0 1px #cbd5e1}
.mta-piece-photo span{font-size:52px}
.mta-piece-photo i{font-size:14px}
.mta-piece h4{margin:4px 0 8px;font-family:Fraunces,Georgia,serif;font-size:19px}
.mta-loupe-zone{position:relative;border:2px dashed #94a3b8;border-radius:10px;cursor:none;touch-action:none;min-height:70px;background:#f8fafc;overflow:hidden}
.mta-loupe-flou{filter:blur(5px);user-select:none}
.mta-loupe-net{position:absolute;inset:0;background:#fffbeb;pointer-events:none}
.mta-loupe-cercle{position:absolute;width:128px;height:128px;margin:-64px 0 0 -64px;border-radius:50%;border:5px solid #334155;box-shadow:0 0 0 2px #e2e8f0,0 8px 20px rgba(0,0,0,.35);pointer-events:none}
.mta-loupe-cercle::after{content:"";position:absolute;right:-30px;bottom:-30px;width:40px;height:12px;background:#334155;border-radius:6px;transform:rotate(45deg)}
.mta-indice{margin:0;padding:14px;font-size:16px;line-height:1.5;font-weight:600}
.mta-indice.clair{background:#fffbeb;border-radius:8px;margin-top:8px;font-size:15px}
.mta-tampon-pose{position:absolute;right:16px;top:40%;font-weight:900;font-size:20px;border:4px solid currentColor;border-radius:8px;padding:4px 12px;transform:rotate(-12deg);text-transform:uppercase;animation:mta-tamponne .4s cubic-bezier(.3,1.8,.5,1);background:rgba(255,255,255,.85)}
@keyframes mta-tamponne{from{transform:rotate(-12deg) scale(2.5);opacity:0}to{transform:rotate(-12deg) scale(1);opacity:1}}
.mta-tampons{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:8px}
.mta-tampon{font:inherit;font-weight:800;font-size:14.5px;border:3px solid currentColor;background:#fff;border-radius:10px;padding:9px 14px;cursor:pointer;box-shadow:0 4px 0 currentColor;transition:transform .1s}
.mta-tampon:active{transform:translateY(3px);box-shadow:0 1px 0 currentColor}
.mta-tampon.t0{color:#b91c1c}.mta-tampon.t1{color:#15803d}.mta-tampon.t2{color:#1d4ed8}

/* ---------- audience 3 : l'objection ---------- */
.mta-barre{display:flex;gap:14px;align-items:flex-start;background:rgba(15,23,42,.88);color:#fff;border-radius:18px;padding:14px;box-shadow:0 14px 34px rgba(0,0,0,.4);border:2px solid #7c4a1e}
.mta-barre-photo{width:92px;height:110px;object-fit:cover;border-radius:12px;border:3px solid #fbbf24;flex:none}
.mta-barre-texte{flex:1;min-width:0}
.mta-barre-n{font-size:12px;color:#fde68a;font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.mta-barre-texte p{font-size:clamp(16px,2.3vw,20px);line-height:1.45;margin:8px 0;font-family:Fraunces,Georgia,serif}
.mta-chrono{height:8px;background:rgba(255,255,255,.2);border-radius:99px;overflow:hidden}
.mta-chrono i{display:block;height:100%;background:linear-gradient(90deg,#ef4444,#f59e0b);transition:width 1s linear}
.mta-obj-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.mta-objection-btn{font:inherit;font-weight:900;font-size:clamp(20px,4vw,28px);letter-spacing:.04em;color:#fff;background:radial-gradient(circle at 30% 30%,#f87171,#b91c1c);border:4px solid #fff;border-radius:18px;padding:14px 28px;cursor:pointer;box-shadow:0 8px 0 #7f1d1d,0 14px 30px rgba(185,28,28,.5);animation:mta-pulse 1.4s ease-in-out infinite;transform:rotate(-2deg)}
.mta-objection-btn:active{transform:translateY(6px) rotate(-2deg);box-shadow:0 2px 0 #7f1d1d}
@keyframes mta-pulse{0%,100%{scale:1}50%{scale:1.05}}
.mta-passer{font:inherit;font-weight:700;background:#fff;border:0;border-radius:14px;padding:12px 20px;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.2)}
.mta-passer:disabled{opacity:.5}
.mta-motif{display:flex;flex-direction:column;gap:8px;background:rgba(255,255,255,.96);border-radius:14px;padding:12px;animation:pdl-entree .35s ease}
.mta-motif-q{margin:0;font-weight:800;color:#7f1d1d}

/* ---------- audience 4 : la contre-expertise ---------- */
.mta-ecran-expert{background:linear-gradient(135deg,#0c4a6e,#082f49);color:#fff;border-radius:16px;padding:14px;box-shadow:0 14px 30px rgba(0,0,0,.4);border:3px solid #38bdf8}
.mta-ee-n{font-size:12px;font-weight:800;color:#7dd3fc;text-transform:uppercase;letter-spacing:.05em}
.mta-ee-dit{display:flex;gap:12px;align-items:center;margin-top:8px}
.mta-ee-dit img{width:64px;height:64px;border-radius:50%;object-fit:cover;border:3px solid #7dd3fc;flex:none}
.mta-ee-dit p{margin:0;font-size:clamp(16px,2.4vw,21px);font-family:Fraunces,Georgia,serif;font-style:italic}
.mta-rappel{background:#fefce8;border:2px solid #facc15;border-radius:12px;padding:10px 14px;font-size:15px;line-height:1.45}
.mta-formule-btn{align-self:flex-start;font:inherit;font-size:13.5px;background:#fff;border:2px solid #fbbf24;border-radius:99px;padding:6px 12px;cursor:pointer}
.mta-formule{margin:0;background:#fff;border-radius:10px;padding:8px 12px;font-family:"Courier New",monospace;font-size:14px}
.mta-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fff;border-radius:12px;padding:10px}
.mta-saisie input{font:inherit;font-size:20px;width:150px;padding:8px 10px;border:2px solid #cbd5e1;border-radius:10px}
.mta-saisie span{font-weight:800;font-size:18px}
.mta-saisie .pdl-cta.petit{margin:0}
.mta-question2{display:flex;flex-direction:column;gap:8px}
.mta-deux,.mta-trois{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.mta-trois{grid-template-columns:repeat(3,1fr)}
.mta-choix{font:inherit;font-weight:700;font-size:15px;background:#fff;border:3px solid #e2e8f0;border-radius:12px;padding:12px;cursor:pointer;transition:transform .15s}
.mta-choix:hover{transform:translateY(-2px);border-color:#fbbf24}

/* ---------- audience 5 : l'interrogatoire ---------- */
.mta-temoin{display:flex;gap:14px;align-items:center;background:rgba(255,255,255,.95);border-radius:16px;padding:12px}
.mta-temoin-photo{width:86px;height:100px;object-fit:cover;border-radius:12px;border:3px solid #94a3b8;transition:filter .6s,transform .6s;flex:none}
.mta-temoin-photo.ferme{filter:grayscale(.8) brightness(.8);transform:scale(.95)}
.mta-temoin-photo.ouvert{border-color:#16a34a;box-shadow:0 0 0 4px rgba(22,163,74,.25)}
.mta-temoin-info{flex:1;display:flex;flex-direction:column;gap:6px}
.mta-conf{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;font-size:13px}
.mta-conf div{height:10px;background:#e2e8f0;border-radius:99px;overflow:hidden}
.mta-conf i{display:block;height:100%;background:linear-gradient(90deg,#f97316,#16a34a);transition:width .8s ease}
.mta-conf em{font-style:normal;font-weight:800}
.mta-tour{color:#fde68a;font-weight:800;text-align:center;font-size:15px}
.mta-cartes-q{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.mta-carte-q{font:inherit;font-size:14.5px;line-height:1.4;text-align:left;background:#fffdf7;border:2px solid #e7d3b0;border-radius:14px;padding:14px;cursor:pointer;box-shadow:0 6px 0 #c9a96a;transition:transform .15s}
.mta-carte-q:hover:not(:disabled){transform:translateY(-4px) rotate(-1deg)}
.mta-carte-q.bon{background:#dcfce7;border-color:#16a34a}
.mta-carte-q.faux{background:#fee2e2;border-color:#ef4444}
.mta-carte-q.eteint{opacity:.45}
.mta-reponse{display:flex;flex-direction:column;gap:8px}
.mta-faits{display:flex;flex-direction:column;gap:8px}
.mta-fait{font:inherit;font-size:14.5px;line-height:1.4;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:10px 12px;cursor:pointer}
.mta-fait.sel{border-color:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.3);transform:scale(1.01)}
.mta-fait i{display:block;font-size:11.5px;color:#64748b;margin-bottom:2px}
.mta-colonnes3{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:10px}
.mta-col{background:rgba(255,255,255,.93);border-radius:12px;padding:10px;min-height:110px;border-top:6px solid #94a3b8}
.mta-col.cible{cursor:pointer;outline:3px dashed #fbbf24}
.mta-col b{display:block;font-size:14px;margin-bottom:6px}
.mta-col p{margin:0 0 6px;font-size:12.5px;background:#f8fafc;border-radius:8px;padding:6px;animation:pdl-entree .3s ease}
.mta-col.c0{border-top-color:#dc2626}.mta-col.c1{border-top-color:#f59e0b}.mta-col.c2{border-top-color:#16a34a}

/* ---------- audience 6 : la lampe UV ---------- */
.mta-uv-zone{position:relative;touch-action:none;cursor:crosshair;border-radius:16px;overflow:hidden;box-shadow:0 16px 40px rgba(0,0,0,.45)}
.mta-affiche{position:relative;background:linear-gradient(160deg,#ecfccb 0%,#bbf7d0 40%,#86efac 100%);padding:16px;display:flex;flex-direction:column;gap:8px;min-height:100%}
.mta-affiche.uv{background:radial-gradient(circle,#2e1065,#1e0b3b);color:#e9d5ff}
.mta-aff-tete{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:6px;border-bottom:3px solid #166534;padding-bottom:6px}
.mta-affiche.uv .mta-aff-tete{border-color:#a855f7}
.mta-aff-tete b{font-family:Fraunces,Georgia,serif;font-size:26px;letter-spacing:.08em;color:#14532d}
.mta-affiche.uv .mta-aff-tete b{color:#c4b5fd}
.mta-aff-tete span{font-style:italic;font-size:13px}
.mta-aff-ligne{font:inherit;position:relative;display:flex;flex-direction:column;gap:2px;text-align:left;background:rgba(255,255,255,.65);border:2px solid transparent;border-radius:10px;padding:8px 10px;cursor:pointer;color:#14532d;font-weight:700;font-size:15px}
.mta-affiche.uv .mta-aff-ligne{background:rgba(88,28,135,.35);color:#c4b5fd;cursor:default}
.mta-aff-ligne.l0 .mta-aff-txt{font-size:22px;font-family:Fraunces,Georgia,serif}
.mta-aff-ligne.l1{align-self:flex-end;border:2px dashed #15803d;border-radius:50px}
.mta-aff-ligne.l3{background:linear-gradient(135deg,rgba(21,128,61,.75),rgba(14,116,144,.75));color:#fff;min-height:58px;justify-content:center}
.mta-affiche.uv .mta-aff-ligne.l3{background:rgba(88,28,135,.35)}
.mta-aff-ligne.sel{border-color:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.35)}
.mta-aff-ligne.fait{opacity:.8}
.mta-aff-uv{font-family:"Comic Sans MS","Segoe Print",cursive;color:#f0abfc;font-size:14px;font-weight:600;text-shadow:0 0 8px #d946ef}
.mta-aff-sticker{align-self:flex-start;font-size:11.5px;background:#fee2e2;color:#991b1b;border:2px solid #dc2626;border-radius:6px;padding:1px 6px;transform:rotate(-2deg)}
.mta-aff-sticker.ok{background:#dcfce7;color:#14532d;border-color:#16a34a}
.mta-aff-pied{font-size:11px;opacity:.7;text-align:center}
.mta-uv-calque{position:absolute;inset:0;pointer-events:none}
.mta-uv-calque .mta-affiche{height:100%}
.mta-uv-halo{position:absolute;width:180px;height:180px;margin:-90px 0 0 -90px;border-radius:50%;box-shadow:0 0 0 3px rgba(216,180,254,.8),0 0 40px 10px rgba(168,85,247,.55);pointer-events:none}
.mta-signes{background:#fff;border-radius:14px;padding:12px;animation:pdl-entree .3s ease}
.mta-signes p{margin:0 0 8px}
.mta-signes-o{display:flex;flex-wrap:wrap;gap:8px}
.mta-signe{font:inherit;font-weight:700;font-size:14px;border:2px solid #cbd5e1;background:#f8fafc;border-radius:10px;padding:8px 12px;cursor:pointer}
.mta-signe.s0{border-color:#16a34a;color:#14532d}
.mta-signe:hover{background:#fef3c7}

/* ---------- audience 7 : les statuts ---------- */
.mta-fragments{display:flex;flex-wrap:wrap;gap:8px}
.mta-fragment{font:inherit;font-size:14px;line-height:1.35;text-align:left;background:#fffdf7;border:2px solid #c9a96a;border-radius:4px 14px 4px 14px;padding:9px 11px;cursor:pointer;max-width:100%;flex:1 1 260px;box-shadow:0 3px 8px rgba(0,0,0,.15)}
.mta-fragment.sel{border-color:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.35);transform:rotate(-1deg)}
.mta-parchemin{background:linear-gradient(#f8eccc,#ecd6a4);border-radius:8px;padding:16px;box-shadow:0 14px 30px rgba(0,0,0,.4);display:flex;flex-direction:column;gap:8px;border:1px solid #b08a4a}
.mta-parch-titre{text-align:center;font-family:Fraunces,Georgia,serif;font-weight:800;letter-spacing:.06em;color:#5b3a1a}
.mta-article{position:relative;border:2px dashed #b08a4a;border-radius:8px;padding:8px 10px;min-height:46px;background:rgba(255,255,255,.35)}
.mta-article.cible{cursor:pointer;background:rgba(254,243,199,.7)}
.mta-article b{font-family:Fraunces,Georgia,serif;color:#5b3a1a}
.mta-article p{margin:6px 0 0;font-size:14px;font-style:italic;animation:pdl-entree .3s ease}
.mta-article.a4{border-color:#94a3b8;background:rgba(226,232,240,.5)}
.mta-article-ici{position:absolute;right:8px;top:6px;font-size:12px;font-weight:800;color:#b45309}

/* ---------- la plaidoirie ---------- */
.mta-pl-jury{display:flex;align-items:flex-end;justify-content:center;gap:10px;flex-wrap:wrap}
.mta-pl-camp{align-self:center;background:var(--c);color:#fff;font-weight:800;border-radius:99px;padding:6px 16px;box-shadow:0 4px 12px rgba(0,0,0,.3)}
.mta-pl-texte{background:#fffdf7;border-radius:12px;padding:10px 12px 10px 32px;margin:0;display:flex;flex-direction:column;gap:6px}
.mta-pl-texte li{font-size:14px;line-height:1.4;border-radius:6px;padding:4px 6px}
.mta-pl-texte li i{color:#64748b;font-size:12.5px}
.mta-pl-texte li.ok{background:#dcfce7}.mta-pl-texte li.sans{background:#fef9c3}.mta-pl-texte li.contre,.mta-pl-texte li.piege{background:#fee2e2}
.mta-pl-etape{display:flex;flex-direction:column;gap:8px}
.mta-deck{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.mta-carte-arg{font:inherit;font-size:14px;line-height:1.4;text-align:left;background:#fff;border:2px solid #e2e8f0;border-radius:12px;padding:10px 12px;cursor:pointer;box-shadow:0 5px 0 #cbd5e1;transition:transform .15s;display:flex;flex-direction:column;gap:4px}
.mta-carte-arg:hover{transform:translateY(-4px) rotate(.6deg);border-color:#fbbf24}
.mta-carte-src{font-size:11px;font-weight:800;text-transform:uppercase;color:#64748b;letter-spacing:.03em}
.mta-preuves{background:#fff;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:8px}
.mta-carte-choisie{margin:0;font-style:italic;background:#fef3c7;border-radius:10px;padding:8px 10px}
.mta-preuves-o{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px}
.mta-preuve{font:inherit;font-size:14px;text-align:left;border:2px solid #cbd5e1;background:#f8fafc;border-radius:10px;padding:8px 10px;cursor:pointer}
.mta-preuve:hover{background:#fef3c7;border-color:#f59e0b}

/* ---------- les documents ---------- */
.mta-doc{font-size:14.5px;line-height:1.5;color:#1e1b2e}
.mta-doc-tete{display:flex;gap:10px;align-items:center;border-bottom:3px double #7c4a1e;padding-bottom:8px;margin-bottom:10px}
.mta-doc-logo{font-size:30px}
.mta-doc-tete div{display:flex;flex-direction:column}
.mta-doc-tete b{font-family:Fraunces,Georgia,serif;font-size:18px}
.mta-doc-tete i{font-size:12.5px;color:#64748b}
.mta-doc h4{margin:10px 0 4px;font-family:Fraunces,Georgia,serif}
.mta-doc-corps{background:#fffbeb;border-left:4px solid #b45309;padding:8px 12px;border-radius:0 8px 8px 0}
.mta-doc-signe{text-align:right;font-style:italic;font-family:"Segoe Script","Brush Script MT",cursive;font-size:16px}
.mta-doc-note{font-size:13px;color:#475569;font-style:italic}
.mta-doc-table{width:100%;border-collapse:collapse;font-size:13px;display:block;overflow-x:auto}
.mta-doc-table th,.mta-doc-table td{border:1px solid #e2e8f0;padding:5px 7px;text-align:left;vertical-align:top}
.mta-doc-table th{background:#f1f5f9}
.mta-doc-table td.t0,.mta-doc .rouge{color:#b91c1c;font-weight:700}
.mta-doc-table td.t1,.mta-doc .vert{color:#15803d;font-weight:700}
.mta-doc-table td.t2{color:#1d4ed8;font-weight:700}
.mta-doc .orange{color:#c2410c;font-weight:700}
.mta-doc-liste{padding-left:20px;display:flex;flex-direction:column;gap:6px}
.mta-doc-parchemin{background:linear-gradient(#fbf3dc,#f1e2bb);padding:14px;border-radius:6px}
.mta-doc-verdict{font-family:Fraunces,Georgia,serif;font-size:24px;font-weight:800;text-align:center;margin:8px 0;color:#7c2d12}
.mta-doc-tampon{display:inline-block;color:#b91c1c;border:3px solid #b91c1c;border-radius:50%;padding:18px 10px;font-weight:900;font-size:11px;transform:rotate(-14deg);margin:6px 0 0 30px;opacity:.85}
.mta-doc-cartes{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.mta-doc-carte{border-radius:10px;padding:8px 10px;font-size:13px;line-height:1.4;border-left:6px solid}
.mta-doc-carte span{display:block;font-size:11px;font-weight:800;color:#64748b}
.mta-doc-carte.def{background:#fff7ed;border-color:#b45309}.mta-doc-carte.pc{background:#f0fdfa;border-color:#0f766e}
.mta-badge{width:270px;max-width:100%;background:linear-gradient(160deg,#14532d,#052e16);color:#fff;border-radius:16px;padding:14px;display:flex;flex-direction:column;align-items:center;gap:6px;box-shadow:0 16px 36px rgba(0,0,0,.45);animation:mta-tombe .7s ease}
.mta-badge-haut{font-size:10.5px;letter-spacing:.1em;font-weight:800;color:#fde68a;text-align:center}
.mta-badge img{width:110px;height:130px;object-fit:cover;border-radius:10px;border:3px solid #fde68a}
.mta-badge b{font-size:22px;font-family:Fraunces,Georgia,serif}
.mta-badge span{text-transform:uppercase;font-weight:800;font-size:13px;color:#bbf7d0}
.mta-badge em{font-size:11.5px;opacity:.85;text-align:center}
.mta-badge i{font-size:12px;background:rgba(255,255,255,.12);border-radius:99px;padding:2px 10px}
.mta-journal{font-family:Georgia,serif;color:#111}
.mta-journal-nom{font-family:Fraunces,Georgia,serif;font-size:30px;font-weight:900;text-align:center;border-bottom:4px double #111;letter-spacing:.04em}
.mta-journal-nom span{display:block;font-size:11px;font-weight:400;font-style:italic;letter-spacing:0}
.mta-journal h3{font-size:22px;margin:10px 0}
.mta-journal img{width:100%;max-height:240px;object-fit:cover;border-radius:4px;filter:sepia(.15)}
.mta-journal p{line-height:1.55;text-align:justify}

/* ---------- l'écran principal : la salle ---------- */
.mta-salle-decor .pdl-decor-voile{background:linear-gradient(180deg,rgba(15,23,42,.55),rgba(15,23,42,.35) 40%,rgba(15,23,42,.8))}
.mta-salle{width:100%;display:grid;grid-template-columns:1fr 1fr;grid-template-areas:"estrade estrade" "centre jury" "appel role" "revoir revoir";gap:14px;align-items:start}
.mta-estrade{grid-area:estrade;justify-self:center;display:flex;align-items:center;gap:12px;background:linear-gradient(#166534,#14532d);color:#fff;border-radius:14px 14px 4px 4px;padding:8px 18px 8px 8px;box-shadow:0 10px 0 #5b3a1a,0 16px 30px rgba(0,0,0,.45)}
.mta-estrade img{width:58px;height:58px;border-radius:50%;object-fit:cover;border:3px solid #fde68a}
.mta-estrade div{display:flex;flex-direction:column}
.mta-estrade i{font-size:13px;color:#bbf7d0}
.mta-salle-centre{grid-area:centre;display:flex;flex-direction:column;align-items:center;gap:8px;background:rgba(15,23,42,.55);border-radius:16px;padding:12px}
.mta-salle-compte{color:#fff;font-size:13px;text-align:center;margin:0}
.mta-cred{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;width:100%;color:#fff;font-size:13px}
.mta-cred div{height:10px;background:rgba(255,255,255,.2);border-radius:99px;overflow:hidden}
.mta-cred i{display:block;height:100%;background:linear-gradient(90deg,#f59e0b,#fde68a);transition:width .8s}
.mta-banc-jury{grid-area:jury;display:flex;justify-content:center}
.mta-role{grid-area:role;background:rgba(255,251,235,.95);border-radius:14px;padding:10px 12px}
.mta-role-t{font-weight:800;color:#7c2d12;margin-bottom:4px}
.mta-role ol{margin:0;padding-left:20px;font-size:13.5px;display:flex;flex-direction:column;gap:3px}
.mta-role li.passee{color:#16a34a;text-decoration:line-through}
.mta-role li.ici{font-weight:800;color:#b45309}
.mta-role li i{font-size:12px;color:#64748b}
.mta-appel{grid-area:appel;background:rgba(255,255,255,.96);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:8px;box-shadow:0 10px 26px rgba(0,0,0,.35)}
.mta-appel p{margin:0}
.mta-appel span{font-size:13.5px;color:#475569}
.mta-appel-camp,.mta-tm-camp{align-self:flex-start;background:var(--c);color:#fff !important;font-weight:800;border-radius:99px;padding:4px 12px;font-size:13.5px}
.mta-tm-camp{display:inline-block;margin:8px 0}
.mta-revoir{grid-area:revoir;background:rgba(255,255,255,.9);border-radius:12px;padding:8px 12px}
.mta-revoir summary{cursor:pointer;font-weight:700}
.mta-revoir div{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.mta-revoir button{font:inherit;font-size:13px;background:#fff;border:2px solid #e2e8f0;border-radius:99px;padding:5px 10px;cursor:pointer}

/* ---------- accueil, identité, miroir, délibération, fin ---------- */
.mta-accueil-balance{margin:10px 0 4px;animation:mta-oscille 4s ease-in-out infinite}
@keyframes mta-oscille{0%,100%{transform:rotate(-2deg)}50%{transform:rotate(2deg)}}
.mta-choix-camp>span{display:block;font-weight:700;text-align:left;margin-bottom:8px}
.mta-choix-camp>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mta-camp-btn{font:inherit;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;border:3px solid #e2e8f0;background:#fff;border-radius:14px;padding:10px;cursor:pointer;transition:all .2s}
.mta-camp-btn span{font-size:30px}
.mta-camp-btn i{font-size:12px;color:#64748b;line-height:1.35}
.mta-camp-btn.on{border-color:var(--c);box-shadow:0 0 0 4px rgba(245,158,11,.25);transform:translateY(-3px)}
.mta-bravo-cartes{background:rgba(255,255,255,.95);color:#1e1b2e;border-radius:14px;padding:10px 14px;text-align:left;max-width:640px}
.mta-bravo-cartes p{margin:6px 0;font-size:14px}
.mta-bravo-cartes i{font-size:12.5px;color:#64748b}
.mta-miroir{display:flex;flex-direction:column;align-items:center;gap:14px;color:#fff;text-align:center;max-width:640px}
.mta-miroir-cartes{display:flex;align-items:center;gap:14px;perspective:900px}
.mta-miroir-c{display:flex;flex-direction:column;align-items:center;gap:4px;background:var(--c);border-radius:16px;padding:16px;min-width:140px;font-size:34px;box-shadow:0 12px 30px rgba(0,0,0,.45)}
.mta-miroir-c b{font-size:15px}.mta-miroir-c i{font-size:12px;opacity:.85}
.mta-miroir-c.avant{animation:mta-retourne 1.4s ease .3s both;opacity:.6}
.mta-miroir-c.apres{animation:mta-entre .8s ease 1.2s both}
.mta-miroir-fleche{font-size:40px;animation:mta-pulse 1.2s ease-in-out infinite}
@keyframes mta-retourne{0%{transform:rotateY(0)}50%{transform:rotateY(90deg)}100%{transform:rotateY(0)}}
.mta-delib{display:flex;flex-direction:column;align-items:center;gap:14px;color:#fff;text-align:center;max-width:720px;width:100%}
.mta-delib h2{font-family:Fraunces,Georgia,serif;font-size:clamp(26px,5vw,40px);margin:0;text-shadow:0 4px 14px #000}
.mta-delib-murmures{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.mta-delib-murmures span{background:rgba(255,255,255,.14);border-radius:99px;padding:5px 12px;font-style:italic;font-size:14px;opacity:0;animation:pdl-entree .6s ease forwards}
.mta-delib-scores{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}
.mta-delib-scores div{background:rgba(15,23,42,.75);border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:4px}
.mta-delib-scores b{font-size:26px;color:#fde68a}
.mta-delib-verdict{background:#fffdf7;color:#1e1b2e;border-radius:18px;padding:18px;box-shadow:0 20px 50px rgba(0,0,0,.5);animation:mta-tombe .8s cubic-bezier(.3,1.5,.5,1);border:4px solid #b45309}
.mta-delib-verdict span{font-size:48px;display:block}
.mta-delib-verdict b{font-family:Fraunces,Georgia,serif;font-size:26px}
.mta-delib-verdict p{margin:8px 0 0;line-height:1.5}
.mta-fin-badge{display:flex;flex-direction:column;align-items:center;gap:4px;background:#fffdf7;border-radius:16px;padding:14px;border:3px solid #b45309;text-align:center}
.mta-fin-badge span{font-size:40px}
.mta-fin-badge b{font-family:Fraunces,Georgia,serif;font-size:21px}
.mta-fin-badge i{font-size:14px;line-height:1.45}
.mta-fin-badge em{font-size:12.5px;color:#64748b;font-style:normal}
.mta-fin-badge.pacte{border-color:#16a34a}.mta-fin-badge.demeure{border-color:#b91c1c}.mta-fin-badge.relaxe{border-color:#b45309}.mta-fin-badge.renvoi{border-color:#64748b}

/* ---------- téléphone ---------- */
@media (max-width:700px){
  .mta-salle{grid-template-columns:1fr;grid-template-areas:"estrade" "appel" "centre" "jury" "role" "revoir"}
  .mta-scelles-table{grid-template-columns:repeat(2,1fr);padding:10px;gap:10px}
  .mta-cartes-q,.mta-colonnes3,.mta-trois{grid-template-columns:1fr}
  .mta-jury{gap:10px 2px;padding:10px 4px 4px}
  .mta-jure-nom{display:none}
  .mta-barre{flex-direction:column;align-items:center;text-align:center}
  .mta-barre-photo{width:76px;height:86px}
  .mta-plan-salle{padding:22px 22px 24px}
  .mta-axe.x,.mta-axe.x2{font-size:10px}
  .mta-choix-camp>div{grid-template-columns:1fr}
  .mta-miroir-c{min-width:110px;padding:10px;font-size:26px}
  .mta-delib-scores{grid-template-columns:1fr}
  .mta-fiche{padding:14px}
  .mta-fiche h3{font-size:20px}
  .mta-hud-date{font-size:11.5px}
}
/* ==== mta : fin des styles ==== */
/* ==== mcd : debut des styles ====
   « Karèt ! » — préfixe mcd-. Hérite des styles pdl- de Péi Délices (le
   conteneur porte les deux classes : .pdl.mcd). Couleurs : le turquoise du
   lagon, le vert de la tortue, le sable, le rouge de la lampe de nuit.
   Tous les états portent le préfixe (piège N) : mcd-jauge-danger, mcd-vole-g… */
.mcd .pdl-cta{background:linear-gradient(135deg,#10b981,#0e7490)}
.mcd .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(16,185,129,.45)}
.mcd .pdl-cta.alt{background:#fff;color:#0f172a}
.mcd-hud-mois{margin:0 auto;font-size:13px;font-weight:700;color:#a7f3d0;text-align:center}
.mcd-etape{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%;max-width:900px;margin:0 auto}
.mcd-large{max-width:1000px}
.mcd-large>*{width:100%}
.mcd-large .pdl-cta:not(.petit){align-self:center;width:auto}
.mcd-etape-tete{display:flex;flex-direction:column;align-items:center;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.6);text-align:center}
.mcd-etape-tete span{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#a7f3d0}
.mcd-etape-tete b{font-size:22px}

/* --- l'accueil --- */
.mcd-accueil-demo{display:flex;align-items:center;gap:14px;color:#fff;font-weight:700;margin:4px 0 8px}
.mcd-accueil-demo i{font-style:normal;font-size:34px;display:inline-block;animation:mcd-balance 2.4s ease-in-out infinite}
@keyframes mcd-balance{0%,100%{transform:rotate(0)}25%{transform:translateX(-14px) rotate(-14deg)}75%{transform:translateX(14px) rotate(14deg)}}

/* --- les quatre jauges --- */
.mcd-jauges{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;width:100%;max-width:560px;margin:0 auto;background:rgba(15,23,42,.82);
  border-radius:16px;padding:10px 8px 8px;box-sizing:border-box;box-shadow:0 8px 24px rgba(0,0,0,.35)}
.mcd-jauge{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;color:#e2e8f0}
.mcd-jauge b{font-size:11.5px;font-weight:600;letter-spacing:.02em}
.mcd-jauge-tube{position:relative;width:46px;height:56px;border-radius:14px;background:#1e293b;overflow:hidden;border:2px solid #334155}
.mcd-jauge-tube i{position:absolute;left:0;right:0;bottom:0;height:var(--v);background:linear-gradient(0deg,var(--c),color-mix(in srgb,var(--c) 60%,#fff));
  transition:height .7s cubic-bezier(.3,1.4,.5,1)}
.mcd-jauge-ico{position:absolute;inset:0;display:grid;place-items:center;font-size:24px;filter:drop-shadow(0 1px 2px rgba(0,0,0,.6))}
.mcd-jauge-danger .mcd-jauge-tube{border-color:#ef4444;animation:mcd-alarme 1s ease-in-out infinite}
@keyframes mcd-alarme{50%{box-shadow:0 0 0 4px rgba(239,68,68,.45)}}
.mcd-jauge-point{position:absolute;top:-6px;width:0;height:0;border-radius:50%;background:#fff;transition:all .2s}
.mcd-jauge-point.petit{width:7px;height:7px;top:-9px}
.mcd-jauge-point.gros{width:13px;height:13px;top:-12px}
.mcd-jauge-fleche{position:absolute;right:6px;top:2px;font-style:normal;font-size:14px;font-weight:800;animation:mcd-saute .9s ease both}
.mcd-jauge-monte .mcd-jauge-fleche{color:#4ade80}.mcd-jauge-baisse .mcd-jauge-fleche{color:#f87171}
.mcd-jauge-monte .mcd-jauge-tube{box-shadow:0 0 14px rgba(74,222,128,.7)}
.mcd-jauge-baisse .mcd-jauge-tube{box-shadow:0 0 14px rgba(248,113,113,.7)}
@keyframes mcd-saute{0%{transform:translateY(8px);opacity:0}40%{transform:translateY(-4px);opacity:1}100%{transform:none}}

/* --- la pile de cartes --- */
.mcd-pioche{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%}
.mcd-compteur{color:#fff;font-size:13px;font-weight:700;text-shadow:0 1px 4px rgba(0,0,0,.7)}
.mcd-filet{color:#fde68a}
.mcd-table{position:relative;width:min(92vw,360px);height:400px;perspective:1000px}
.mcd-dos{position:absolute;inset:0;border-radius:22px;border:3px solid #fef3c7;
  background:radial-gradient(circle at 50% 50%,#065f46 18%,transparent 19%) 0 0/46px 46px,radial-gradient(circle at 50% 50%,#047857 18%,transparent 19%) 23px 23px/46px 46px,#064e3b;
  box-shadow:0 10px 26px rgba(0,0,0,.4)}
.mcd-dos-1{transform:translate(6px,8px) rotate(3deg)}
.mcd-dos-2{transform:translate(-8px,12px) rotate(-4deg);opacity:.85}
.mcd-carte{position:absolute;inset:0;border-radius:22px;background:linear-gradient(180deg,#fffdf5,#fef3c7);color:#1c1917;
  box-shadow:0 18px 40px rgba(0,0,0,.45);display:flex;flex-direction:column;align-items:center;padding:16px 18px;box-sizing:border-box;
  touch-action:none;user-select:none;cursor:grab;animation:mcd-arrive .45s cubic-bezier(.2,.9,.3,1.2) backwards}
.mcd-carte:active{cursor:grabbing}
@keyframes mcd-arrive{from{transform:translateY(-40px) rotate(-6deg) scale(.9);opacity:0}to{transform:none;opacity:1}}
.mcd-vole-g{transition:transform .4s ease-in,opacity .4s;transform:translateX(-140%) rotate(-32deg)!important;opacity:0}
.mcd-vole-d{transition:transform .4s ease-in,opacity .4s;transform:translateX(140%) rotate(32deg)!important;opacity:0}
.mcd-carte-label{min-height:42px;width:100%;display:flex;align-items:center;justify-content:center;text-align:center;font-size:14px;font-weight:800;
  color:#94a3b8;border-radius:12px;padding:4px 8px;box-sizing:border-box;transition:background .15s,color .15s}
.mcd-carte-label.on{color:#fff}
.mcd-label-g{background:#be123c}.mcd-label-d{background:#047857}
.mcd-carte-portrait{margin:8px 0 6px}
.mcd-visage{width:96px;height:96px;border-radius:50%;object-fit:cover;object-position:center 20%;border:4px solid #fff;box-shadow:0 4px 14px rgba(0,0,0,.25);display:block}
.mcd-visage-emoji{display:grid;place-items:center;font-size:52px;background:#ccfbf1}
.mcd-visage-p{width:48px;height:48px;border-width:2px;font-size:26px;flex:none}
.mcd-carte-nom{display:flex;flex-direction:column;align-items:center;text-align:center;line-height:1.2}
.mcd-carte-nom b{font-size:16px}.mcd-carte-nom span{font-size:12px;color:#57534e}
.mcd-carte-txt{font-size:15.5px;line-height:1.45;text-align:center;margin:10px 0 0;overflow:auto}
.mcd-carte-retard{background:linear-gradient(180deg,#fff7ed,#fde68a)}
.mcd-carte-retard-tag{margin-top:auto;font-size:12px;font-weight:700;color:#9a3412;background:#ffedd5;border-radius:999px;padding:3px 10px}
.mcd-boutons{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;max-width:560px}
.mcd-btn{border:0;border-radius:14px;padding:12px 10px;font:inherit;font-size:14px;font-weight:700;cursor:pointer;color:#fff;line-height:1.25;transition:transform .15s}
.mcd-btn:hover{transform:translateY(-2px)}
.mcd-btn-g{background:#9f1239}.mcd-btn-d{background:#047857}
.mcd-echo{background:#fff;color:#1c1917;border-radius:16px;padding:12px 16px;max-width:560px;width:100%;box-sizing:border-box;box-shadow:0 10px 26px rgba(0,0,0,.35);animation:pdl-entree .4s ease}
.mcd-echo p{margin:6px 0;font-size:15px;line-height:1.45}
.mcd-echo-choix{font-size:13px;color:#57534e}
.mcd-echo-crash{background:#fee2e2}
.mcd-echo-d{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.mcd-echo-d span{font-size:13px;font-weight:800;border-radius:999px;padding:2px 10px}
.mcd-plus{background:#dcfce7;color:#166534}.mcd-moins{background:#fee2e2;color:#991b1b}

/* --- l'association vacille --- */
.mcd-crash{background:#1c1917;color:#fef2f2;border-radius:20px;padding:22px;max-width:560px;width:100%;box-sizing:border-box;text-align:center;
  box-shadow:0 18px 40px rgba(0,0,0,.5);animation:mcd-secousse .6s ease}
@keyframes mcd-secousse{0%,100%{transform:none}20%{transform:translateX(-10px) rotate(-2deg)}40%{transform:translateX(9px) rotate(2deg)}60%{transform:translateX(-6px)}80%{transform:translateX(4px)}}
.mcd-crash h2{margin:6px 0;color:#fca5a5}.mcd-crash h3{margin:0 0 6px}
.mcd-crash .pdl-aide{color:#fde68a}
.mcd-crash-ico{font-size:54px;position:relative;display:inline-block}
.mcd-crash-ico span{position:absolute;right:-18px;bottom:0;font-size:16px;font-weight:800;background:#dc2626;color:#fff;border-radius:999px;padding:1px 8px}

/* --- le CA fait le point --- */
.mcd-point{display:flex;flex-direction:column;gap:10px;width:100%;max-width:820px}
.mcd-point-grille{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mcd-point-m{display:flex;gap:10px;align-items:center;background:rgba(255,255,255,.95);border-radius:14px;padding:8px 10px;color:#1c1917}
.mcd-point-m div{display:flex;flex-direction:column;font-size:13.5px;line-height:1.35}
.mcd-note-cartes{color:#fff;background:rgba(15,23,42,.8);border-radius:999px;padding:6px 14px;margin:0}

/* --- les leçons, sous sept formes --- */
.mcd-fiche-pliee{display:flex;flex-direction:column;gap:4px;align-items:flex-start;text-align:left;font:inherit;border:0;cursor:pointer;
  border-radius:14px;padding:18px 20px;max-width:560px;width:100%;box-shadow:0 14px 34px rgba(0,0,0,.35);transform:rotate(-1.2deg);transition:transform .2s;background:#fff;color:#0f172a}
.mcd-fiche-pliee:hover{transform:rotate(0) scale(1.02)}
.mcd-fiche-pliee b{font-size:18px}.mcd-fiche-pliee span{font-size:13.5px;color:#475569}
.mcd-fiche-pliee em{font-style:normal;font-size:13px;color:#047857;font-weight:700;animation:pdl-clig 1.6s ease-in-out infinite}
.mcd-fiche{background:#fff;color:#0f172a;border-radius:14px;padding:18px 20px;max-width:820px;width:100%;box-sizing:border-box;box-shadow:0 14px 34px rgba(0,0,0,.35);
  animation:mcd-deplie .6s cubic-bezier(.2,.8,.2,1);transform-origin:top center}
@keyframes mcd-deplie{from{transform:perspective(900px) rotateX(-75deg);opacity:0}to{transform:none;opacity:1}}
.mcd-fiche-tete{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.04em}
.mcd-fiche h3{margin:8px 0 6px;font-size:20px}
.mcd-fiche ul{margin:0 0 12px;padding-left:20px;display:flex;flex-direction:column;gap:7px}
.mcd-fiche li{font-size:15px;line-height:1.5;animation:pdl-entree .5s ease both}
.mcd-forme-classeur{border-left:14px solid #b91c1c;background:#fff}
.mcd-forme-carnet{background:#1e1b4b;color:#e0e7ff;border:2px solid #dc2626}
.mcd-forme-carnet h3,.mcd-forme-carnet li{color:#e0e7ff}
.mcd-forme-carnet .mcd-fiche-tete,.mcd-forme-carnet.mcd-fiche-pliee span{color:#fca5a5}
.mcd-forme-carnet.mcd-fiche-pliee b{color:#fff}
.mcd-forme-tableau{background:#14532d;color:#ecfccb;border:8px solid #92400e}
.mcd-forme-tableau h3,.mcd-forme-tableau li{color:#ecfccb;font-family:"Segoe Print","Comic Sans MS",cursive,inherit}
.mcd-forme-tableau .mcd-fiche-tete,.mcd-forme-tableau.mcd-fiche-pliee span{color:#bef264}
.mcd-forme-tableau.mcd-fiche-pliee b{color:#fff}
.mcd-forme-charte{background:#fefce8;border:3px dashed #ca8a04}
.mcd-forme-convention{background:#fef9c3;transform:rotate(.6deg);border-top:22px solid #fde047}
.mcd-forme-lettre{background:#faf5ff;border:1px solid #c4b5fd}
.mcd-forme-lettre li{font-family:"Segoe Print","Comic Sans MS",cursive,inherit;color:#5b21b6}
.mcd-forme-discours{background:#fff;border-radius:6px;box-shadow:6px 6px 0 #cbd5e1,12px 12px 0 #e2e8f0}

/* --- l'encart « 💡 Aide » --- */
.mcd-aide{width:100%;max-width:820px;background:#fffbeb;border:2px solid #fcd34d;border-radius:14px;color:#1c1917;box-sizing:border-box}
.mcd-aide-tete{display:flex;justify-content:space-between;align-items:center;width:100%;background:none;border:0;font:inherit;font-weight:800;padding:10px 14px;cursor:pointer;color:#92400e}
.mcd-aide-tete i{font-style:normal;font-weight:500;font-size:13px}
.mcd-aide-corps{padding:0 14px 12px}
.mcd-aide-corps p{margin:4px 0 8px}
.mcd-aide-o{display:flex;flex-wrap:wrap;gap:8px}
.mcd-aide-b{border:2px solid #e5e7eb;background:#fff;border-radius:10px;padding:8px 12px;font:inherit;cursor:pointer}
.mcd-aide-b.bon{border-color:#16a34a;background:#dcfce7}.mcd-aide-b.faux{border-color:#dc2626;background:#fee2e2}
.mcd-aide-rep{font-weight:700;color:#065f46}

/* --- étape 1 : la boussole --- */
.mcd-boussole{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%}
.mcd-rose{position:relative;width:min(80vw,300px);aspect-ratio:1;border-radius:50%;
  background:radial-gradient(circle,#fef3c7 0 54%,#d97706 55% 57%,#fef3c7 58% 66%,#92400e 67% 70%,transparent 71%),conic-gradient(from -30deg,#10b98155 0 60deg,transparent 0);
  box-shadow:0 12px 30px rgba(0,0,0,.4)}
.mcd-aiguille{position:absolute;left:calc(50% - 6px);top:8%;width:12px;height:42%;transform-origin:50% 100%;transition:transform .8s cubic-bezier(.3,1.6,.5,1);
  background:linear-gradient(180deg,#dc2626,#7f1d1d);clip-path:polygon(50% 0,100% 100%,0 100%)}
.mcd-rose-centre{position:absolute;left:18%;right:18%;top:52%;font-size:13.5px;font-weight:700;color:#1c1917;text-align:center;line-height:1.3}
.mcd-caps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%;max-width:640px}
.mcd-cap{display:flex;flex-direction:column;align-items:center;gap:2px;border:0;border-radius:14px;padding:10px 6px;font:inherit;font-weight:700;font-size:13.5px;cursor:pointer;background:#fff;color:#1c1917}
.mcd-cap span{font-size:24px}
.mcd-cap.bon{background:#bbf7d0}.mcd-cap.faux{background:#fecaca}.mcd-cap.eteint{opacity:.5}

/* --- étape 2 : le filet --- */
.mcd-filet-jeu{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%}
.mcd-decision{background:#fff;color:#1c1917;border-radius:14px;padding:12px 16px;font-size:16px;font-weight:700;max-width:640px;text-align:center;box-shadow:0 8px 20px rgba(0,0,0,.3)}
.mcd-mailles{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;max-width:640px;padding:12px;box-sizing:border-box;border-radius:16px;
  background:repeating-linear-gradient(45deg,transparent 0 16px,rgba(255,255,255,.18) 16px 18px),repeating-linear-gradient(-45deg,transparent 0 16px,rgba(255,255,255,.18) 16px 18px),#0e7490}
.mcd-maille{display:flex;flex-direction:column;align-items:flex-start;gap:3px;border:3px solid transparent;border-radius:12px;background:rgba(255,255,255,.92);color:#1c1917;
  padding:10px;font:inherit;font-size:14px;font-weight:600;text-align:left;cursor:pointer;transition:transform .15s}
.mcd-maille span{font-size:20px}
.mcd-maille.on{border-color:#facc15;background:#fef9c3;transform:scale(1.03)}
.mcd-maille.juste{border-color:#16a34a}.mcd-maille.faux{border-color:#dc2626}
.mcd-maille.oui{background:#dcfce7}
.mcd-maille i{font-style:normal;font-size:12.5px;font-weight:800}
.mcd-verdict{font-size:22px;font-weight:900;letter-spacing:.1em;border:4px solid;border-radius:10px;padding:4px 16px;transform:rotate(-4deg);background:rgba(255,255,255,.92);animation:mcd-tampon .4s ease both}
.mcd-verdict.strat{color:#b91c1c;border-color:#b91c1c}.mcd-verdict.jour{color:#0369a1;border-color:#0369a1}
@keyframes mcd-tampon{from{transform:rotate(-4deg) scale(2.2);opacity:0}to{transform:rotate(-4deg) scale(1);opacity:1}}

/* --- les calculs --- */
.mcd-calcul{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;max-width:720px}
.mcd-rappel{background:#ecfeff;color:#164e63;border-left:5px solid #0891b2;border-radius:10px;padding:10px 14px;font-size:14px;line-height:1.5;width:100%;box-sizing:border-box}
.mcd-calcul-ligne{display:flex;align-items:center;gap:8px;color:#fff;font-weight:700}
.mcd-calcul-ligne input{font:inherit;font-size:18px;width:150px;padding:8px 10px;border-radius:10px;border:2px solid #a7f3d0;text-align:right}

/* --- étape 3 : le budget et la pirogue --- */
.mcd-pirogue-jeu{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%}
.mcd-budget{display:flex;gap:16px;align-items:center;background:#fff;color:#1c1917;border-radius:16px;padding:12px 14px;max-width:720px;width:100%;box-sizing:border-box;flex-wrap:wrap;justify-content:center}
.mcd-camembert{width:120px;height:120px;border-radius:50%;flex:none;box-shadow:inset 0 0 0 3px #fff}
.mcd-budget.petit .mcd-camembert{width:80px;height:80px}
.mcd-budget table{border-collapse:collapse;font-size:13.5px;flex:1;min-width:240px}
.mcd-budget td{padding:3px 6px;border-bottom:1px solid #e7e5e4}
.mcd-budget td:nth-child(n+2){text-align:right;white-space:nowrap}
.mcd-budget td i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px}
.mcd-total td{font-weight:800;border-bottom:0}
.mcd-alerte-coupe{background:#fee2e2;color:#7f1d1d;border-radius:12px;padding:10px 14px;font-weight:700;animation:mcd-secousse .6s ease}
.mcd-mer{position:relative;width:100%;max-width:560px;height:130px;border-radius:16px;overflow:hidden;background:linear-gradient(180deg,#bae6fd 0 50%,#0891b2 50%)}
.mcd-pirogue{position:absolute;left:12%;right:12%;top:30%;height:46px;display:flex;align-items:flex-end;gap:2px;padding:0 18px 6px;box-sizing:border-box;
  border-radius:0 0 60% 60%/0 0 100% 100%;background:linear-gradient(180deg,#92400e,#78350f);transition:transform 1s cubic-bezier(.3,1.5,.5,1)}
.mcd-sac{display:grid;place-items:center;min-width:22px;height:30px;border-radius:8px 8px 4px 4px;font-size:15px;transform:translateY(-14px)}
.mcd-vague{position:absolute;left:-10%;right:-10%;top:52%;height:20px;background:radial-gradient(circle at 10px -4px,transparent 12px,#0891b2 13px) 0 0/26px 20px;animation:mcd-houle 3s linear infinite}
@keyframes mcd-houle{to{transform:translateX(26px)}}
.mcd-jetons-reste{color:#fff;font-size:14px;text-align:center}
.mcd-rouge{color:#fca5a5}.mcd-vert{color:#86efac}
.mcd-sources{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;max-width:720px}
.mcd-source{display:flex;flex-direction:column;gap:4px;background:#fff;color:#1c1917;border-radius:12px;padding:8px 10px;font-size:13.5px;font-weight:600}
.mcd-source i{font-style:normal;font-size:12px;color:#78716c;font-weight:500}
.mcd-source div{display:flex;align-items:center;gap:10px}
.mcd-source b{font-size:18px;min-width:20px;text-align:center}
.mcd-pm{width:36px;height:36px;border-radius:50%;border:0;font-size:20px;font-weight:800;cursor:pointer;background:#e7e5e4;color:#1c1917}
.mcd-pm-plus{background:#10b981;color:#fff}
.mcd-pm:disabled{opacity:.35;cursor:default}

/* --- étape 4 : le tableau des gardes --- */
.mcd-gardes{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%}
.mcd-gardes-gens{display:flex;flex-direction:column;gap:8px;width:100%;max-width:760px}
.mcd-garde{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;background:#fff;color:#1c1917;border:3px solid transparent;border-radius:14px;padding:8px 10px;font:inherit;text-align:left;cursor:pointer}
.mcd-garde span{display:flex;flex-direction:column;font-size:13.5px}
.mcd-garde small{font-style:italic;color:#44403c;font-size:13.5px}
.mcd-garde em{font-style:normal;font-weight:700;font-size:13px;color:#047857;max-width:170px;text-align:right}
.mcd-garde i{grid-column:2 / 4;font-style:normal;font-size:12.5px;color:#991b1b;font-weight:700}
.mcd-garde.on{border-color:#facc15;background:#fefce8}
.mcd-garde.juste{border-color:#16a34a}.mcd-garde.faux{border-color:#dc2626}
.mcd-gestes{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:760px;background:rgba(15,23,42,.75);border-radius:14px;padding:8px;animation:pdl-entree .3s ease}
.mcd-geste{display:flex;align-items:center;gap:6px;border:0;border-radius:999px;padding:8px 14px;background:#ecfdf5;color:#065f46;font:inherit;font-weight:700;font-size:13.5px;cursor:pointer}
.mcd-geste:disabled{opacity:.5;cursor:default}
.mcd-geste span{font-size:18px}

/* --- étape 5 : le stylo rouge --- */
.mcd-stylo{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%}
.mcd-convention{background:#fffdf7;color:#1c1917;border-radius:6px;padding:16px 18px;max-width:720px;width:100%;box-sizing:border-box;box-shadow:0 14px 34px rgba(0,0,0,.35);font-family:Georgia,serif}
.mcd-convention-tete{display:flex;flex-direction:column;text-align:center;border-bottom:2px solid #1c1917;padding-bottom:6px;margin-bottom:8px}
.mcd-convention-tete b{font-size:18px;letter-spacing:.04em}.mcd-convention-tete span{font-size:12.5px;color:#57534e}
.mcd-convention ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:6px}
.mcd-clause{cursor:pointer;padding:4px 6px;border-radius:6px;font-size:15px;line-height:1.45;position:relative}
.mcd-clause:hover{background:#fef2f2}
.mcd-clause span{background-image:linear-gradient(transparent 46%,#dc2626 46%,#dc2626 58%,transparent 58%);background-repeat:no-repeat;background-size:0 100%;transition:background-size .45s ease}
.mcd-clause.rayee span{background-size:100% 100%;color:#78716c}
.mcd-clause i{display:block;font-family:system-ui,sans-serif;font-style:normal;font-size:12.5px;font-weight:700;margin-top:3px}
.mcd-clause.juste i{color:#166534}.mcd-clause.faux i{color:#991b1b}
.mcd-clause.faux{background:#fee2e2}

/* --- étape 6 : le vote --- */
.mcd-vote{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%}
.mcd-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;width:100%;max-width:820px}
.mcd-option{display:flex;flex-direction:column;align-items:center;gap:4px;border:0;border-radius:16px;padding:14px 10px;background:#fff;color:#1c1917;font:inherit;cursor:pointer;text-align:center;transition:transform .15s}
.mcd-option:hover{transform:translateY(-3px)}
.mcd-option span{font-size:30px}.mcd-option b{font-size:15px}.mcd-option i{font-style:normal;font-size:13px;color:#57534e}
.mcd-sieges{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;padding:14px;border-radius:999px;background:radial-gradient(ellipse,#92400e 0 55%,transparent 56%)}
.mcd-siege{display:flex;flex-direction:column;align-items:center;gap:3px;background:rgba(255,255,255,.92);border-radius:14px;padding:8px;min-width:84px;color:#1c1917;font-size:12.5px;border:3px solid transparent}
.mcd-siege img{width:48px;height:48px;border-radius:50%;object-fit:cover}
.mcd-siege.pour{border-color:#16a34a;animation:mcd-saute .5s ease}.mcd-siege.contre{border-color:#dc2626;animation:mcd-saute .5s ease}

/* --- étape 7 : rapport et réponse --- */
.mcd-indic{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%}
.mcd-indic-grille{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;max-width:760px}
.mcd-indic-carte{border:3px solid transparent;border-radius:12px;background:#fff;color:#1c1917;padding:10px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;text-align:left}
.mcd-indic-carte.on{border-color:#facc15;background:#fefce8}
.mcd-indic-carte.juste{border-color:#16a34a;background:#dcfce7}.mcd-indic-carte.faux{border-color:#dc2626;background:#fee2e2}
.mcd-assemble{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%;max-width:820px}
.mcd-assemble-q{color:#fff;font-size:18px;font-weight:800;text-align:center;text-shadow:0 2px 8px rgba(0,0,0,.6)}
.mcd-assemble-texte{background:#fff;color:#1c1917;border-radius:6px;padding:12px 16px;width:100%;box-sizing:border-box;box-shadow:6px 6px 0 #cbd5e1}
.mcd-assemble-texte p{margin:4px 0;animation:pdl-entree .4s ease both}
.mcd-assemble-vide{color:#a8a29e}
.mcd-assemble-o{display:flex;flex-direction:column;gap:8px;width:100%}

/* --- le local --- */
.mcd-local{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%;max-width:720px}
.mcd-local-titre{display:flex;flex-direction:column;align-items:center;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.6)}
.mcd-local-titre b{font-size:22px}.mcd-local-titre span{font-size:13px;color:#a7f3d0;font-weight:700}
.mcd-local-pile{display:flex;align-items:center;gap:18px;border:0;border-radius:20px;padding:16px 22px;background:rgba(255,253,245,.97);color:#1c1917;font:inherit;cursor:pointer;
  box-shadow:0 16px 36px rgba(0,0,0,.45);text-align:left;transition:transform .2s;animation:mcd-flotte 3s ease-in-out infinite}
.mcd-local-pile:hover{transform:scale(1.03)}
@keyframes mcd-flotte{50%{transform:translateY(-5px)}}
.mcd-local-pile>span:last-child{display:flex;flex-direction:column}
.mcd-local-pile small{font-weight:800;color:#047857;text-transform:uppercase;letter-spacing:.06em}
.mcd-local-pile b{font-size:19px}.mcd-local-pile em{font-style:normal;font-weight:700;color:#0e7490;margin-top:4px}
.mcd-local-cartes{position:relative;width:64px;height:84px;flex:none}
.mcd-local-cartes i{position:absolute;inset:0;border-radius:10px;border:2px solid #fef3c7;background:#064e3b;display:grid;place-items:center;font-style:normal;font-size:28px}
.mcd-local-cartes i:nth-child(1){transform:rotate(-10deg)}.mcd-local-cartes i:nth-child(2){transform:rotate(6deg)}
.mcd-polaroid{margin:0;background:#fff;padding:6px 6px 4px;border-radius:4px;box-shadow:0 10px 24px rgba(0,0,0,.45);transform:rotate(-3deg);width:min(70vw,260px)}
.mcd-polaroid img{width:100%;display:block;border-radius:2px;aspect-ratio:16/9;object-fit:cover}
.mcd-polaroid figcaption{font-family:"Segoe Print","Comic Sans MS",cursive,inherit;font-size:12.5px;color:#1e3a8a;text-align:center;padding-top:3px}
.mcd-rejouer-btn{background:rgba(15,23,42,.8);color:#fff;border:0;border-radius:999px;padding:8px 16px;font:inherit;font-size:13.5px;cursor:pointer}
.mcd-rejouer{display:flex;flex-direction:column;gap:6px;width:100%;max-width:520px}
.mcd-rejouer button{display:flex;justify-content:space-between;gap:10px;border:0;border-radius:12px;background:#fff;color:#1c1917;padding:8px 12px;font:inherit;font-size:14px;cursor:pointer;text-align:left}
.mcd-rejouer i{font-style:normal;font-weight:800;color:#047857}
.mcd-issue{font-size:18px;font-weight:800;color:#065f46}

/* --- les documents --- */
.mcd-doc{background:#fff;color:#1c1917;font-size:14.5px;line-height:1.5;max-width:640px}
.mcd-papier{background:#fffdf5}
.mcd-doc-tete{border-bottom:3px solid #047857;margin-bottom:10px;padding-bottom:6px}
.mcd-doc-logo{display:flex;flex-direction:column}
.mcd-doc-logo b{color:#047857;letter-spacing:.08em}.mcd-doc-logo span{font-size:11.5px;color:#64748b}
.mcd-doc-tete h3{margin:6px 0 0;font-size:19px}
.mcd-doc-sous{margin:2px 0 0;font-size:13px;color:#57534e}
.mcd-doc-note{font-size:13px;color:#065f46;background:#ecfdf5;border-radius:8px;padding:6px 10px}
.mcd-doc ul,.mcd-doc ol{padding-left:20px}
.mcd-ok{color:#166534}.mcd-mal{color:#991b1b}
.mcd-raye{text-decoration:line-through;text-decoration-color:#dc2626;text-decoration-thickness:2px;color:#78716c}
.mcd-pv-nom{font-size:24px;font-weight:800;text-align:center;font-family:"Segoe Print","Comic Sans MS",cursive,inherit;color:#1e3a8a;margin:6px 0}
.mcd-signatures{display:flex;justify-content:space-between;gap:12px;margin-top:14px;font-family:"Segoe Print","Comic Sans MS",cursive,inherit;color:#1e3a8a}
.mcd-doc .mcd-tampon{display:inline-block;margin-top:8px;border:3px solid #047857;color:#047857;font-weight:900;letter-spacing:.12em;padding:2px 12px;transform:rotate(-8deg);border-radius:8px}
.mcd-journal-saison{margin:6px 0}
.mcd-journal-saison ul{margin:2px 0;font-size:13.5px}
.mcd-lettre{font-family:Georgia,serif;background:#faf5ff}
.mcd-signature{text-align:right;font-style:italic}
.mcd-journal{font-family:Georgia,serif}
.mcd-journal-tete{display:flex;justify-content:space-between;align-items:baseline;border-bottom:4px double #1c1917;padding-bottom:4px;flex-wrap:wrap;gap:6px}
.mcd-journal-tete b{font-size:22px}.mcd-journal-tete span{font-size:11.5px;color:#57534e}
.mcd-journal img{width:100%;border-radius:6px;margin:6px 0}

@media (max-width:600px){
  .mcd-table{height:380px}
  .mcd-jauge-tube{width:40px;height:48px}
  .mcd-point-grille,.mcd-mailles,.mcd-sources,.mcd-indic-grille{grid-template-columns:1fr}
  .mcd-options{grid-template-columns:1fr}
  .mcd-caps{grid-template-columns:1fr}
  .mcd-garde{grid-template-columns:auto 1fr}
  .mcd-garde em{grid-column:2;text-align:left;max-width:none}
  .mcd-garde i{grid-column:2}
  .mcd-carte-txt{font-size:14.5px}
  .mcd-visage{width:80px;height:80px}
  .mcd-visage-p{width:42px;height:42px}
}
/* ==== mcd : fin des styles ==== */
/* ==== ms1 : debut des styles ==== « Ousa i lé ? — le quartier Flèr-Kann » (SDGN 1re, ch. 1) */
.ms1 { background: #0b1220; }
.ms1-hud-ciel span { background: rgba(255,255,255,.14); }
/* --- la page d'une journée : la carte de l'étape, puis le panorama --- */
.ms1-journee { padding: 10px 10px 14px; background: linear-gradient(#0b1220, #111a2e); min-height: 60vh; }
.ms1-carte-zone { max-width: 880px; margin: 0 auto 10px; scroll-margin-top: 70px; }
.ms1-carte { background: #fffdf7; border-radius: 16px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: ms1-pose .45s ease both; color: #1a1430; }
@keyframes ms1-pose { from { transform: translateY(14px) rotate(-.6deg); opacity: 0; } to { transform: none; opacity: 1; } }
.ms1-prog { font-size: 12px; color: #64748b; font-weight: 700; margin-bottom: 6px; }
.ms1-qcm-q { font-weight: 700; font-size: 16px; line-height: 1.45; margin: 8px 0 10px; }
.ms1-qcm-o { display: grid; gap: 8px; }
.ms1-opt { display: flex; gap: 10px; align-items: flex-start; text-align: left; font: inherit; font-size: 15px; line-height: 1.4; background: #fff; border: 2px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; cursor: pointer; color: #1a1430; transition: transform .15s, border-color .15s; }
.ms1-opt:hover:not(:disabled) { border-color: #0e7490; transform: translateX(3px); }
.ms1-opt-l { flex: 0 0 26px; height: 26px; border-radius: 50%; background: #e0f2fe; color: #0e7490; font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.ms1-opt-bon { border-color: #16a34a; background: #f0fdf4; }
.ms1-opt-faux { border-color: #dc2626; background: #fef2f2; animation: ms1-non .35s; }
.ms1-opt-eteint { opacity: .55; }
@keyframes ms1-non { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.ms1-rappel { background: #eff6ff; border-left: 4px solid #2563eb; border-radius: 8px; padding: 8px 12px; font-size: 14px; line-height: 1.45; margin: 6px 0; }
.ms1-formule-b { background: none; border: 1px dashed #0e7490; color: #0e7490; border-radius: 8px; padding: 6px 10px; cursor: pointer; font: inherit; font-size: 14px; }
.ms1-formule { background: #ecfeff; border-radius: 8px; padding: 6px 10px; font-family: ui-monospace, monospace; font-size: 14px; margin: 0; }
.ms1-saisie { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.ms1-saisie input { font: inherit; font-size: 18px; width: 140px; padding: 8px 10px; border: 2px solid #cbd5e1; border-radius: 10px; }
/* --- les leçons --- */
.ms1-lecon { border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; background: #fff; border: 2px solid #e2e8f0; position: relative; }
.ms1-lecon h3 { margin: 6px 0 8px; font-size: 1.2rem; }
.ms1-lecon ul { margin: 0; padding-left: 20px; }
.ms1-lecon li { margin: 7px 0; line-height: 1.5; animation: ms1-monte .45s ease both; }
@keyframes ms1-monte { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ms1-lecon-sur { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 13px; color: #64748b; font-style: italic; }
.ms1-lecon-par { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 6px; }
.ms1-lecon-par img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.ms1-lecon-par i { color: #64748b; }
.ms1-lecon-carnet { background: repeating-linear-gradient(#fffef8 0 27px, #dbeafe 27px 28px); border-color: #fcd34d; }
.ms1-lecon-carnet::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; border-left: 2px solid #fca5a5; }
.ms1-lecon-affiche { background: #fef9c3; border: 0; box-shadow: 0 6px 16px rgba(0,0,0,.18); transform: rotate(-.4deg); }
.ms1-lecon-affiche::after { content: "📌"; position: absolute; top: -12px; left: 50%; font-size: 22px; }
.ms1-lecon-fiche { background: #f0f9ff; border: 2px solid #7dd3fc; }
.ms1-lecon-fil { background: #fff1f2; border: 2px dashed #e11d48; }
.ms1-lecon-tableau { background: #1f3b2c; color: #f8fafc; border: 8px solid #8b5a2b; font-family: "Comic Sans MS", "Segoe Print", cursive; }
.ms1-lecon-tableau .ms1-lecon-sur, .ms1-lecon-tableau .ms1-lecon-par i { color: #cbd5e1; }
.ms1-lecon-tournee { background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 2px solid #d97706; }
.ms1-lecon-rumeur { background: #f5f3ff; border: 2px solid #a78bfa; border-radius: 24px 24px 24px 4px; }
.ms1-lecon-lune { background: linear-gradient(#1e1b4b, #312e81); color: #f8fafc; border: 2px solid #fbbf24; }
.ms1-lecon-lune .ms1-lecon-sur, .ms1-lecon-lune .ms1-lecon-par i { color: #c7d2fe; }
.ms1-aide { border: 2px solid #fcd34d; border-radius: 12px; background: #fffbeb; margin: 0 0 14px; }
.ms1-aide-tete { width: 100%; display: flex; justify-content: space-between; gap: 8px; background: none; border: 0; padding: 10px 14px; font-weight: 700; cursor: pointer; color: #92400e; font: inherit; font-size: 1rem; }
.ms1-aide-tete i { font-weight: 400; font-size: .85rem; }
.ms1-aide-corps { padding: 0 14px 12px; }
.ms1-aide-o { display: flex; flex-wrap: wrap; gap: 8px; }
.ms1-aide-b { border: 2px solid #e2e8f0; background: #fff; border-radius: 10px; padding: 8px 12px; cursor: pointer; font: inherit; text-align: left; }
.ms1-aide-bon { border-color: #16a34a; background: #f0fdf4; }
.ms1-aide-faux { border-color: #dc2626; background: #fef2f2; }
.ms1-aide-rep { margin: 10px 0 0; color: #475569; }
/* --- bulles et dialogues --- */
.ms1-bulle { display: flex; gap: 12px; align-items: flex-start; }
.ms1-bulle-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #fbbf24; flex: 0 0 64px; }
.ms1-bulle-corps { flex: 1; background: #fff; border-radius: 4px 16px 16px 16px; padding: 10px 14px; border: 2px solid #e2e8f0; }
.ms1-bulle-corps p { margin: 4px 0; font-size: 16px; line-height: 1.5; }
.ms1-bulle-nom { font-weight: 800; font-size: 14px; }
.ms1-bulle-nom span { font-weight: 400; color: #64748b; margin-left: 6px; font-size: 12px; }
.ms1-bulle-moi .ms1-bulle-photo { border-color: #38bdf8; }
/* --- l'avis de recherche --- */
.ms1-avis { border: 3px solid #b45309; background: #fffaf0 radial-gradient(circle at 90% 10%, #fde68a55, transparent 40%); }
.ms1-avis-tete { display: flex; align-items: center; gap: 8px; font-weight: 900; letter-spacing: .06em; color: #92400e; font-size: 13px; }
.ms1-avis-tete img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #f59e0b; }
.ms1-avis-tete em { margin-left: auto; font-style: normal; background: #fee2e2; color: #991b1b; border-radius: 99px; padding: 2px 8px; letter-spacing: 0; }
.ms1-avis-q { font-size: 18px; font-weight: 800; line-height: 1.4; margin: 8px 0; font-family: Georgia, "Times New Roman", serif; }
.ms1-avis-aide { color: #475569; font-size: 14px; margin: 4px 0; }
.ms1-crit { margin: 6px 0 0; padding-left: 4px; list-style: none; }
.ms1-crit li { margin: 3px 0; }
.ms1-crit-ok { color: #166534; }
.ms1-crit-ko { color: #991b1b; font-weight: 700; }
.ms1-fil-casse-msg { color: #be123c; font-weight: 700; animation: ms1-non .4s; }
/* --- le panorama --- */
.ms1-pano { position: relative; max-width: 1400px; margin: 0 auto; }
.ms1-vp { position: relative; height: clamp(260px, 58vh, 560px); overflow-x: auto; overflow-y: hidden; border-radius: 14px; cursor: none; touch-action: pan-x; scrollbar-width: thin; background: #000; box-shadow: 0 10px 30px rgba(0,0,0,.45) inset, 0 0 0 2px #1e293b; user-select: none; -webkit-user-select: none; }
.ms1-bande { position: relative; }
.ms1-panneau { position: absolute; top: 0; object-fit: cover; pointer-events: none; transition: filter 1.2s; }
.ms1-fondu { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%); mask-image: linear-gradient(90deg, transparent 0, #000 5%); }
.ms1-lumiere { position: absolute; inset: 0; pointer-events: none; transition: background 1.2s, opacity 1.2s; }
.ms1-t-matin .ms1-lumiere { background: linear-gradient(180deg, rgba(255,214,170,.28), rgba(190,220,255,.12) 50%, transparent); mix-blend-mode: soft-light; }
.ms1-t-matin .ms1-panneau { filter: saturate(.92) brightness(1.03); }
.ms1-t-aprem .ms1-lumiere { background: linear-gradient(180deg, rgba(255,190,90,.18), transparent 70%); mix-blend-mode: multiply; }
.ms1-t-soir .ms1-panneau { filter: brightness(.72) saturate(1.15) hue-rotate(-8deg); }
.ms1-t-soir .ms1-lumiere { background: linear-gradient(180deg, rgba(255,120,80,.55), rgba(120,60,140,.45) 45%, rgba(20,20,60,.35)); mix-blend-mode: multiply; }
.ms1-t-nuit .ms1-panneau { filter: brightness(.95); }
/* la vie du quartier */
.ms1-vie { position: absolute; pointer-events: none; }
.ms1-vie-fenetre { background: radial-gradient(#ffe7a3, #ffb84d 60%, transparent 75%); border-radius: 3px; opacity: 0; animation: ms1-allume 6s ease-in-out infinite; mix-blend-mode: screen; }
.ms1-vie-fenetre:nth-of-type(2n) { animation-delay: 2.5s; }
@keyframes ms1-allume { 0%, 8% { opacity: 0; } 20%, 85% { opacity: .85; } 100% { opacity: .85; } }
.ms1-vie-enseigne { border: 3px solid var(--c); border-radius: 8px; box-shadow: 0 0 12px var(--c), inset 0 0 8px var(--c); animation: ms1-neon 2.4s steps(1) infinite; }
@keyframes ms1-neon { 0%, 70% { opacity: 1; } 72% { opacity: .2; } 76% { opacity: 1; } 80% { opacity: .3; } 84% { opacity: 1; } }
.ms1-vie-gyro { border-radius: 50%; background: #3b82f6; box-shadow: 0 0 18px 8px #3b82f6; animation: ms1-gyro 1s steps(2) infinite; }
@keyframes ms1-gyro { 50% { opacity: .15; } }
.ms1-vie-guirlande { background: radial-gradient(circle, #fde68a 2px, transparent 3px) 0 0 / 18px 100% repeat-x; filter: drop-shadow(0 0 4px #fbbf24); animation: ms1-scintille 1.6s ease-in-out infinite alternate; }
@keyframes ms1-scintille { to { opacity: .55; } }
.ms1-vie-etincelles::before, .ms1-vie-etincelles::after { content: ""; position: absolute; left: 30%; top: 40%; width: 4px; height: 4px; border-radius: 50%; background: #fff7c2; box-shadow: 6px -4px #ffd166, -5px -6px #fff, 9px 3px #fbbf24, -8px 2px #ffe08a, 2px -10px #fff; animation: ms1-gerbe .6s linear infinite; }
.ms1-vie-etincelles::after { animation-delay: .3s; transform: scale(.7); }
@keyframes ms1-gerbe { from { opacity: 1; transform: translate(0, 0) scale(1); } to { opacity: 0; transform: translate(-6px, 10px) scale(1.8); } }
.ms1-vie-fumee::before, .ms1-vie-fumee::after { content: ""; position: absolute; left: 35%; bottom: 0; width: 60%; height: 40%; border-radius: 50%; background: rgba(230,230,240,.35); filter: blur(4px); animation: ms1-fumee 4s ease-out infinite; }
.ms1-vie-fumee::after { animation-delay: 2s; }
@keyframes ms1-fumee { from { transform: translateY(0) scale(.6); opacity: .7; } to { transform: translateY(-260%) scale(1.6); opacity: 0; } }
.ms1-passant { position: absolute; left: 0; width: 8px; height: 22px; pointer-events: none; animation: ms1-marche linear infinite; }
.ms1-passant::before { content: ""; position: absolute; left: 1px; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--teint); }
.ms1-passant::after { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 13px; border-radius: 3px 3px 1px 1px; background: var(--habit); animation: ms1-pas .5s ease-in-out infinite alternate; }
@keyframes ms1-marche { from { transform: translateX(0); } to { transform: translateX(var(--sw)); } }
@keyframes ms1-pas { to { transform: translateY(-1px) rotate(3deg); } }
.ms1-t-nuit .ms1-passant, .ms1-t-soir .ms1-passant { opacity: .55; }
.ms1-oiseau { position: absolute; left: 0; color: #1e293b; font-size: 14px; pointer-events: none; animation: ms1-vol 34s linear infinite; }
@keyframes ms1-vol { from { transform: translateX(-30px) translateY(0); } 50% { transform: translateX(calc(var(--sw) / 2)) translateY(-14px); } to { transform: translateX(var(--sw)) translateY(0); } }
.ms1-etoile { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; animation: ms1-scintille 1.8s ease-in-out infinite alternate; pointer-events: none; }
.ms1-luciole { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #d9f99d; box-shadow: 0 0 10px 3px #bef264; animation: ms1-luciole 5s ease-in-out infinite; pointer-events: none; }
@keyframes ms1-luciole { 0%, 100% { transform: translate(0, 0); opacity: .2; } 30% { opacity: 1; } 50% { transform: translate(18px, -14px); opacity: .9; } 75% { transform: translate(-10px, -6px); opacity: .3; } }
.ms1-fete { position: absolute; pointer-events: none; }
.ms1-fete::after { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); font-size: 28px; filter: drop-shadow(0 0 8px #fbbf24); animation: ms1-danse 1.2s ease-in-out infinite alternate; }
.ms1-fete-buffet::after { content: "🍽️ 🥘 🍹"; }
.ms1-fete-arche::after { content: "🏮 🏮 🏮"; }
.ms1-fete-musique::after { content: "🎶 🥁 🎶"; }
@keyframes ms1-danse { to { transform: translateX(-50%) translateY(-8px) rotate(3deg); } }
/* les zones (organisations, leurres) */
.ms1-zone { position: absolute; background: transparent; border: 2px solid transparent; border-radius: 12px; cursor: inherit; padding: 0; font: inherit; }
.ms1-zone-revele { border-color: rgba(255,255,255,.55); box-shadow: 0 0 0 9999px transparent, inset 0 0 22px rgba(253,224,71,.35); animation: ms1-respire 2.2s ease-in-out infinite; cursor: pointer; }
.ms1-zone-trouve { border-color: rgba(34,197,94,.7); cursor: pointer; }
.ms1-zone-sel { border-color: #e11d48; box-shadow: inset 0 0 30px rgba(225,29,72,.45); }
.ms1-zone-marque { border-color: #fbbf24; animation: ms1-marque .7s ease-in-out infinite alternate; }
@keyframes ms1-respire { 50% { box-shadow: inset 0 0 34px rgba(253,224,71,.55); } }
@keyframes ms1-marque { to { box-shadow: inset 0 0 40px rgba(251,191,36,.8), 0 0 18px rgba(251,191,36,.8); } }
.ms1-zone-tag { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); background: rgba(15,23,42,.85); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 99px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s; }
.ms1-zone:hover .ms1-zone-tag, .ms1-zone-trouve .ms1-zone-tag, .ms1-zone-sel .ms1-zone-tag { opacity: 1; }
.ms1-zone-trouve .ms1-zone-tag::after { content: " ✓"; color: #4ade80; }
.ms1-fenetre { position: absolute; width: 44px; height: 44px; border-radius: 10px; border: 2px solid #fde68a; background: radial-gradient(#fff7c2, #f59e0b); font-size: 20px; cursor: pointer; box-shadow: 0 0 24px 8px rgba(251,191,36,.7); animation: ms1-fenetre 1.4s ease-in-out infinite alternate; z-index: 3; }
.ms1-fenetre-fait { background: #16a34a; color: #fff; border-color: #bbf7d0; box-shadow: 0 0 10px rgba(22,163,74,.7); animation: none; font-weight: 900; }
@keyframes ms1-fenetre { to { transform: scale(1.08); box-shadow: 0 0 34px 12px rgba(251,191,36,.85); } }
.ms1-tresor { position: absolute; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fde68a; background: rgba(15,23,42,.75); font-size: 18px; cursor: pointer; animation: ms1-fenetre 1s ease-in-out infinite alternate; z-index: 3; }
.ms1-fils { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; overflow: visible; }
.ms1-fil { fill: none; stroke: #e11d48; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px #fb7185); stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: ms1-tend 1.4s ease forwards; }
.ms1-fil-casse { stroke: #94a3b8; stroke-dasharray: 10 8; animation: ms1-casse 1.4s ease forwards; }
@keyframes ms1-tend { to { stroke-dashoffset: 0; } }
@keyframes ms1-casse { 0% { opacity: 1; } 60% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(30px); } }
/* la loupe */
.ms1-loupe { position: absolute; border-radius: 50%; overflow: hidden; pointer-events: none; z-index: 5; border: 6px solid #b87333; box-shadow: 0 0 0 2px #7c4a1e, 0 12px 30px rgba(0,0,0,.55), inset 0 0 30px rgba(255,255,255,.35); background: #000; }
.ms1-loupe::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 40%); }
.ms1-loupe-bande { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.ms1-indice { position: absolute; transform: translate(-50%, -50%); font-size: 18px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.88); box-shadow: 0 0 0 2px #fbbf24, 0 0 16px #fde047; animation: ms1-respire 1.6s ease-in-out infinite; }
.ms1-indice-tresor { font-size: 12px; width: 18px; height: 18px; box-shadow: 0 0 0 2px #a78bfa, 0 0 12px #c4b5fd; }
.ms1-fleche { position: absolute; top: calc(clamp(260px, 58vh, 560px) / 2 - 22px); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(15,23,42,.75); color: #fff; font-size: 18px; cursor: pointer; z-index: 6; }
.ms1-fleche:disabled { opacity: .25; cursor: default; }
.ms1-fleche-g { left: 6px; }
.ms1-fleche-d { right: 6px; }
.ms1-toast { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); background: rgba(15,23,42,.92); color: #fff; padding: 8px 14px; border-radius: 99px; font-size: 14px; z-index: 7; animation: ms1-pose .3s ease both; max-width: 90%; text-align: center; }
.ms1-minicarte { position: relative; display: flex; height: 38px; margin-top: 8px; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .9; }
.ms1-minicarte img { flex: 1; min-width: 0; height: 100%; object-fit: cover; }
.ms1-minicarte-vue { position: absolute; top: 0; bottom: 0; border: 2px solid #fbbf24; border-radius: 6px; background: rgba(251,191,36,.15); pointer-events: none; transition: left .15s; }
.ms1-minicarte b { position: absolute; bottom: 3px; width: 7px; height: 7px; margin-left: -3px; border-radius: 50%; background: #fde047; pointer-events: none; }
.ms1-minicarte b.ms1-point-trouve { background: #22c55e; }
/* --- la fiche d'identité --- */
.ms1-fiche { color: #1a1430; }
.ms1-fiche-tete { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.ms1-fiche-tete h3 { margin: 2px 0; font-size: 1.15rem; }
.ms1-fiche-tete small { letter-spacing: .12em; font-weight: 800; color: #0e7490; font-size: 11px; }
.ms1-fiche-tete i { color: #64748b; font-size: 13px; }
.ms1-vignette { position: relative; width: 120px; height: 84px; flex: 0 0 120px; border-radius: 10px; background-repeat: no-repeat; box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(0,0,0,.25); }
.ms1-vignette span { position: absolute; right: -6px; bottom: -6px; background: #fff; border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; font-size: 16px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.ms1-fiche-dl { display: grid; grid-template-columns: minmax(110px, 30%) 1fr; gap: 6px 12px; margin: 0; font-size: 14px; line-height: 1.45; }
.ms1-fiche-dl dt { font-weight: 800; color: #475569; }
.ms1-fiche-dl dd { margin: 0; }
.ms1-verrou { color: #94a3b8; font-style: italic; }
.ms1-fiche-concl { margin-top: 12px; background: #f0fdf4; border: 2px dashed #86efac; border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.ms1-fiche-concl ul { margin: 6px 0 0; padding-left: 18px; }
.ms1-fiche-concl span { font-weight: 700; }
.ms1-fiche-concl p { margin: 6px 0 0; color: #475569; }
.ms1-fiche-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 12px; }
.ms1-fiche-q { font-weight: 800; font-size: 17px; }
/* --- panier, tournée, comparateur, fenêtres --- */
.ms1-panier-objet { margin: 10px auto; max-width: 520px; background: #fff; border: 2px solid #0e7490; border-radius: 14px; padding: 14px; text-align: center; font-weight: 800; font-size: 17px; animation: ms1-tombe .5s cubic-bezier(.3,1.4,.6,1) both; box-shadow: 0 8px 18px rgba(14,116,144,.2); }
@keyframes ms1-tombe { from { transform: translateY(-40px) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
.ms1-paniers { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.ms1-panier-b { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; background: linear-gradient(#fef3c7, #fde68a); border: 2px solid #d97706; border-radius: 6px 6px 22px 22px; padding: 10px 6px; cursor: pointer; text-align: center; }
.ms1-panier-b i { font-size: 12px; color: #78350f; }
.ms1-panier-b em { position: absolute; top: 4px; right: 8px; font-style: normal; font-weight: 800; color: #92400e; }
.ms1-panier-ico { font-size: 24px; }
.ms1-panier-bon { border-color: #16a34a; background: #dcfce7; animation: ms1-pose .3s; }
.ms1-panier-faux { border-color: #dc2626; background: #fee2e2; animation: ms1-non .35s; }
.ms1-enveloppe { display: flex; gap: 14px; align-items: center; margin: 10px auto; max-width: 560px; background: #fffbeb; border: 2px solid #d6d3d1; border-radius: 6px; padding: 14px; box-shadow: 0 8px 20px rgba(0,0,0,.15); animation: ms1-tombe .5s both; background-image: repeating-linear-gradient(135deg, #ef4444 0 10px, #fff 10px 20px, #2563eb 20px 30px, #fff 30px 40px); background-size: 100% 8px; background-repeat: no-repeat; background-position: bottom; }
.ms1-enveloppe p { margin: 0; display: flex; flex-direction: column; gap: 2px; font-family: Georgia, serif; }
.ms1-enveloppe small { font-size: 11px; letter-spacing: .08em; color: #78716c; }
.ms1-enveloppe b { font-size: 18px; }
.ms1-enveloppe i { color: #57534e; font-size: 13px; }
.ms1-timbre { width: 86px; height: 64px; flex: 0 0 86px; border-radius: 2px; box-shadow: 0 0 0 4px #fff, 0 0 0 5px #d6d3d1; }
.ms1-boites { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.ms1-boite { display: flex; gap: 8px; align-items: center; text-align: left; font: inherit; font-size: 14px; background: #fff; border: 2px solid #fbbf24; border-radius: 12px; padding: 10px; cursor: pointer; line-height: 1.35; }
.ms1-boite span { font-size: 24px; }
.ms1-boite-bon { border-color: #16a34a; background: #f0fdf4; }
.ms1-boite-faux { border-color: #dc2626; background: #fef2f2; animation: ms1-non .35s; }
.ms1-balance { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; position: relative; }
.ms1-balance::before { content: "⚖️"; position: absolute; left: 50%; top: 10px; transform: translateX(-50%); font-size: 26px; z-index: 1; }
.ms1-plateau { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; background: #f8fafc; border-radius: 14px; padding: 10px; font-size: 13px; animation: ms1-balance 3s ease-in-out infinite alternate; }
.ms1-plateau-1 { animation-delay: 1.5s; }
.ms1-plateau i { color: #475569; }
@keyframes ms1-balance { from { transform: translateY(-3px); } to { transform: translateY(3px); } }
.ms1-coches { display: grid; gap: 6px; }
.ms1-coche { display: flex; gap: 10px; text-align: left; font: inherit; font-size: 15px; background: #fff; border: 2px solid #e2e8f0; border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.ms1-coche span { font-size: 18px; }
.ms1-coche-on { border-color: #0e7490; background: #ecfeff; }
.ms1-ecoute blockquote { margin: 8px 0; padding: 10px 14px; background: #1e1b4b; color: #fef3c7; border-radius: 12px; font-style: italic; line-height: 1.5; position: relative; }
.ms1-ecoute blockquote::before { content: "🎧"; position: absolute; right: 8px; top: -12px; font-size: 20px; }
.ms1-ecoute-ou { font-weight: 700; margin: 6px 0 0; }
.ms1-fete-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.ms1-fete-opt { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; font: inherit; background: #fff; border: 2px solid #e2e8f0; border-radius: 14px; padding: 12px; cursor: pointer; transition: transform .15s, border-color .15s; }
.ms1-fete-opt:hover { transform: translateY(-3px); border-color: #e11d48; }
.ms1-fete-opt i { font-size: 13px; color: #475569; }
.ms1-tresor-vu { text-align: center; }
.ms1-tresor-vu > span { font-size: 60px; display: block; animation: ms1-danse 1s ease-in-out infinite alternate; }
/* --- horloge, bravo, accueil --- */
.ms1-horloge { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #fff; cursor: pointer; position: relative; overflow: hidden; }
.ms1-horloge-matin { background: linear-gradient(#fbcfe8, #fde68a 60%, #bae6fd); color: #1a1430; }
.ms1-horloge-midi { background: linear-gradient(#38bdf8, #e0f2fe); color: #1a1430; }
.ms1-horloge-aprem { background: linear-gradient(#60a5fa, #fde68a); color: #1a1430; }
.ms1-horloge-soir { background: linear-gradient(#7c3aed, #f97316 70%, #fbbf24); }
.ms1-horloge-nuit { background: radial-gradient(circle at 70% 20%, #312e81, #020617 70%); }
.ms1-astre { font-size: 80px; animation: ms1-course 2.6s ease-out both; filter: drop-shadow(0 0 30px rgba(255,220,120,.8)); }
@keyframes ms1-course { from { transform: translate(-160px, 120px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.ms1-horloge-t { display: flex; flex-direction: column; align-items: center; animation: ms1-monte .8s .6s both; }
.ms1-horloge-t b { font-size: 46px; font-family: Georgia, serif; }
.ms1-horloge-t span { font-size: 20px; font-weight: 700; }
.ms1-bravo-col { font-weight: 700; }
.ms1-accueil h1 span { display: block; font-size: .5em; font-weight: 700; opacity: .85; }
.ms1-narration p { font-size: 17px; }
.ms1-arrivee-doc { display: flex; flex-direction: column; gap: 12px; align-items: center; padding: 16px; max-width: 520px; }
.ms1-fin-titre { font-size: 20px; font-weight: 900; color: #92400e; }
/* --- les documents --- */
.ms1-doc { color: #1a1430; font-size: 14px; line-height: 1.45; }
.ms1-doc h3 { margin: 0 0 8px; }
.ms1-doc table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.ms1-doc th, .ms1-doc td { border: 1px solid #cbd5e1; padding: 6px 8px; vertical-align: top; text-align: left; }
.ms1-doc th { background: #f1f5f9; }
.ms1-signature { font-style: italic; text-align: right; color: #475569; }
.ms1-laissez { width: min(420px, 100%); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: ms1-tombe .6s both; }
.ms1-laissez-bande { background: linear-gradient(90deg, #0e7490, #b45309); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .1em; padding: 8px 12px; }
.ms1-laissez-corps { display: flex; gap: 12px; padding: 12px; align-items: center; }
.ms1-laissez-corps img { width: 82px; height: 100px; object-fit: cover; border-radius: 8px; }
.ms1-laissez-corps div { display: flex; flex-direction: column; gap: 3px; }
.ms1-laissez-corps small { letter-spacing: .15em; color: #b45309; font-weight: 800; }
.ms1-laissez-corps b { font-size: 22px; }
.ms1-laissez-corps span { font-size: 13px; color: #475569; }
.ms1-laissez-pied { font-size: 12px; padding: 8px 12px; background: #f8fafc; border-top: 1px dashed #cbd5e1; }
.ms1-carnet-compte { font-weight: 700; color: #0e7490; }
.ms1-carnet-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.ms1-carnet-case { display: flex; flex-direction: column; align-items: center; gap: 6px; font: inherit; font-size: 12px; text-align: center; background: #fff; border: 2px solid #e2e8f0; border-radius: 12px; padding: 8px; cursor: pointer; }
.ms1-carnet-case .ms1-vignette { width: 100%; flex: none; height: 74px; }
.ms1-carnet-vide { background: #f1f5f9; color: #94a3b8; cursor: default; min-height: 120px; justify-content: center; }
.ms1-carnet-vide span { font-size: 28px; }
.ms1-carnet-tresors { display: flex; gap: 10px; flex-wrap: wrap; }
.ms1-carnet-tresor { display: flex; gap: 6px; align-items: center; background: #f5f3ff; border-radius: 99px; padding: 4px 12px; }
.ms1-carnet-tresor span { font-size: 22px; }
.ms1-guide { font-family: Georgia, "Times New Roman", serif; }
.ms1-guide-une { text-align: center; border-bottom: 3px double #1a1430; padding-bottom: 8px; margin-bottom: 8px; }
.ms1-guide-une small { letter-spacing: .15em; font-family: system-ui, sans-serif; font-weight: 800; color: #0e7490; }
.ms1-guide-une h3 { font-size: 1.5rem; margin: 4px 0; }
.ms1-guide-fam h4 { margin: 10px 0 4px; color: #b45309; }
.ms1-guide-fam ul { margin: 0; padding-left: 18px; }
.ms1-guide-fam li { margin: 4px 0; }
.ms1-guide-fete { background: #fff1f2; border-radius: 8px; padding: 6px 10px; }
.ms1-guide-err { background: #fefce8; border-radius: 8px; padding: 6px 10px; margin-top: 8px; }
.ms1-guide-err h4 { margin: 0 0 4px; }
.ms1-cadran h3 { margin: 0 0 10px; }
.ms1-cadran-l { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; background: #fff; border: 2px solid #e2e8f0; border-radius: 12px; padding: 8px 10px; margin-bottom: 6px; cursor: pointer; }
.ms1-cadran-l:disabled { opacity: .5; cursor: not-allowed; }
.ms1-cadran-ico { font-size: 22px; }
.ms1-cadran-t { display: flex; flex-direction: column; flex: 1; }
.ms1-cadran-t i { font-size: 12px; color: #64748b; }
.ms1-cadran-fait { border-color: #86efac; }
.ms1-cadran-ici { border-color: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,.3); }
/* --- téléphone --- */
@media (max-width: 640px) {
  .ms1-journee { padding: 6px 4px 10px; }
  .ms1-carte { padding: 12px; border-radius: 12px; }
  .ms1-vp { height: clamp(230px, 46vh, 380px); cursor: default; }
  .ms1-fleche { top: calc(clamp(230px, 46vh, 380px) / 2 - 20px); width: 40px; height: 40px; }
  .ms1-avis-q { font-size: 16px; }
  .ms1-bulle-photo { width: 46px; height: 46px; flex-basis: 46px; }
  .ms1-fiche-dl { grid-template-columns: 1fr; gap: 2px; }
  .ms1-fiche-dl dd { margin-bottom: 6px; }
  .ms1-vignette { width: 92px; height: 66px; flex-basis: 92px; }
  .ms1-hud .pdl-hud-moi i { display: none; }
  .ms1-balance { grid-template-columns: 1fr; }
  .ms1-balance::before { display: none; }
  .ms1-enveloppe { flex-direction: column; text-align: center; }
}
@media (hover: none) { .ms1-vp { cursor: default; } }
@media (prefers-reduced-motion: reduce) { .ms1-passant, .ms1-oiseau, .ms1-luciole, .ms1-vie { animation: none !important; } }
/* ==== ms1 : fin des styles ==== */
/* ==== mt8 : debut des styles ====
   « Tout'Moun ! » — préfixe mt8-. Le poste multicanal : fenêtres qui
   sonnent, file d'usagers animée, patience qui fond, cahier puis fiche
   usager ; le chat du chatbot ; le tuyau des inscriptions. */
.mt8 .pdl-decor-contenu{max-width:1060px}
.mt8-hud-date{margin:0 auto;color:#fff;font-size:13px;font-weight:600;opacity:.9;text-align:center}
@media (max-width:620px){.mt8-hud-date{display:none}.mt8 .pdl-hud-outils button{width:32px;height:32px;font-size:15px}}

/* --- l'encart 💡 Aide --- */
.mt8-exo{width:100%;display:flex;flex-direction:column;gap:12px;align-items:stretch}
.mt8-aide{background:#fffbeb;border:2px solid #fcd34d;border-radius:14px;max-width:820px;width:100%;align-self:center;box-shadow:0 4px 14px rgba(0,0,0,.12)}
.mt8-aide-t{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;background:none;border:0;font:inherit;font-weight:800;font-size:15px;color:#92400e;padding:10px 14px;cursor:pointer}
.mt8-aide-t span{font-weight:500;font-size:13px;color:#b45309}
.mt8-aide-corps{padding:0 14px 12px;font-size:14px;line-height:1.45}
.mt8-aide-o{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.mt8-aide-opt{font:inherit;font-size:14px;background:#fff;border:2px solid #fde68a;border-radius:10px;padding:7px 12px;cursor:pointer;text-align:left}
.mt8-aide-opt.bon{background:#dcfce7;border-color:#16a34a}.mt8-aide-opt.faux{background:#fee2e2;border-color:#dc2626}
.mt8-aide-corr{margin:6px 0;color:#713f12}
.mt8-aide-re{font:inherit;font-size:13px;background:none;border:0;color:#b45309;cursor:pointer;text-decoration:underline}

/* --- la leçon, six habits --- */
.mt8-lecon{background:#fff;border-radius:16px;padding:16px 20px 18px;max-width:820px;width:100%;box-shadow:0 14px 34px rgba(0,0,0,.28);position:relative;animation:mt8-tombe .5s ease}
@keyframes mt8-tombe{from{opacity:0;transform:translateY(-18px) rotate(-1.5deg)}to{opacity:1;transform:none}}
.mt8-lecon-tete{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px}
.mt8-lecon-onglet{font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#0f766e}
.mt8-lecon h3{margin:4px 0 10px;font-size:20px;color:#1a1430}
.mt8-lecon ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:9px;font-size:15px;line-height:1.5}
.mt8-lecon-pt{animation:mt8-pt .45s ease}
@keyframes mt8-pt{from{opacity:0;transform:translateX(-8px)}to{opacity:1;transform:none}}
.mt8-lecon-plus{font:inherit;font-weight:700;margin-top:12px;background:#f1f5f9;border:0;border-radius:10px;padding:8px 14px;cursor:pointer;color:#334155}
.mt8-lecon-marge{margin:12px 0 4px;font-size:14px;color:#475569;font-style:italic;border-left:3px solid #fbbf24;padding-left:10px}
.mt8-lecon .pdl-cta{margin-top:10px}
/* classeur : intercalaire et anneaux */
.mt8-lecon-classeur{border-left:14px solid #0f766e;padding-left:26px;background:repeating-linear-gradient(#fff 0 29px,#e0f2fe 29px 30px)}
.mt8-lecon-classeur:before{content:"";position:absolute;left:-10px;top:30px;bottom:30px;width:6px;background:radial-gradient(circle,#cbd5e1 4px,transparent 5px) 0 0/6px 46px}
.mt8-lecon-classeur .mt8-lecon-onglet{background:#0f766e;color:#fff;padding:3px 10px;border-radius:8px 8px 0 0}
/* mémo : post-it */
.mt8-lecon-memo{background:#fef9c3;transform:rotate(-.6deg);box-shadow:0 18px 30px rgba(0,0,0,.3);font-family:"Comic Sans MS","Segoe Print",Outfit,sans-serif}
.mt8-lecon-memo .mt8-lecon-onglet{color:#a16207}
/* vocal : forme d'onde */
.mt8-lecon-vocal{border-top:6px solid #22c55e}
.mt8-lecon-vocal .mt8-lecon-onglet{color:#15803d}
.mt8-onde{display:flex;align-items:center;gap:3px;height:42px;margin:4px 0 6px;padding:0 4px;background:#f0fdf4;border-radius:22px}
.mt8-onde i{flex:1;height:var(--h);background:#22c55e;border-radius:2px;animation:mt8-onde 1.1s ease-in-out infinite alternate}
@keyframes mt8-onde{from{transform:scaleY(.35)}to{transform:scaleY(1)}}
/* notice : logiciel */
.mt8-lecon-notice{border:2px solid #334155;border-radius:10px;background:linear-gradient(#f8fafc,#fff)}
.mt8-lecon-notice .mt8-lecon-onglet{color:#334155}
.mt8-lecon-notice:before{content:"● ● ●";position:absolute;top:-2px;left:0;right:0;height:22px;background:#334155;color:#94a3b8;font-size:9px;padding:5px 10px;border-radius:8px 8px 0 0}
.mt8-lecon-notice .mt8-lecon-tete{margin-top:16px}
/* tableau blanc */
.mt8-lecon-tableau{border:10px solid #94a3b8;border-radius:6px;background:#fcfcfd}
.mt8-lecon-tableau h3{color:#1d4ed8}
/* note au conseil */
.mt8-lecon.mt8-lecon-note{font-family:Georgia,serif;border-top:5px double #1e3a8a}

/* --- les QCM du moteur commun, posés sur une carte blanche --- */
.mt8 .pdl-qcm{background:rgba(255,255,255,.97);border-radius:18px;padding:16px;max-width:820px;box-shadow:0 12px 34px rgba(0,0,0,.28);align-self:center}

/* --- portraits --- */
.mt8-tete{width:52px;height:52px;border-radius:50%;object-fit:cover;flex:none;border:2px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.25);background:#e2e8f0}
.mt8-tete.petit{width:34px;height:34px;border-width:1.5px}
.mt8-tete-ico{display:inline-grid;place-items:center;font-size:26px}
.mt8-tete-ico.petit{font-size:18px}

/* ========== LE POSTE MULTICANAL ========== */
.mt8-exo-poste{max-width:1040px}
.mt8-poste{position:relative;width:100%;background:#0b1220;border-radius:16px;padding:10px;box-shadow:0 18px 44px rgba(0,0,0,.45);color:#e2e8f0}
.mt8-poste-barre{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:6px 8px 10px;font-size:13px}
.mt8-horloge{font-weight:800;font-size:16px;font-variant-numeric:tabular-nums;color:#fff}
.mt8-horloge i{font-weight:500;font-size:12px;opacity:.8;font-style:normal}
.mt8-jauge-sat{position:relative;display:flex;flex-direction:column;min-width:150px;flex:1 1 150px;max-width:260px;background:#1e293b;border-radius:10px;padding:4px 10px 8px;overflow:hidden}
.mt8-jauge-sat b{position:relative;z-index:1}
.mt8-jauge-sat i{position:absolute;left:0;bottom:0;height:4px;background:#f59e0b;transition:width .5s}
.mt8-jauge-sat.haut i{background:#22c55e}.mt8-jauge-sat.bas i{background:#ef4444}
.mt8-jauge-sat em{position:relative;z-index:1;font-size:10px;font-style:normal;opacity:.7}
.mt8-attente{background:#1e293b;border-radius:10px;padding:6px 10px}
.mt8-attente.bas{background:#7f1d1d;animation:mt8-pulse 1s ease-in-out infinite}
@keyframes mt8-pulse{50%{filter:brightness(1.35)}}
.mt8-etoiles-moy{background:#831843;border-radius:10px;padding:6px 10px;font-weight:700}
.mt8-prog{margin-left:auto;background:#334155;border-radius:99px;padding:4px 10px;font-weight:700}
.mt8-onglets{display:none}
.mt8-poste-corps{position:relative;display:grid;grid-template-columns:1fr 210px;gap:10px;min-height:420px}
.mt8-fenetres{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
.mt8-fenetres.n3>.mt8-fen:first-child{grid-column:1/-1}
.mt8-fen{background:#f8fafc;color:#1a1430;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;min-height:150px;border-top:5px solid var(--c);transition:box-shadow .3s}
.mt8-fen-t{display:flex;justify-content:space-between;align-items:center;padding:7px 10px;background:color-mix(in srgb,var(--c) 14%,#fff);font-weight:800;font-size:14px;color:var(--c)}
.mt8-fen-t b{background:var(--c);color:#fff;border-radius:99px;min-width:22px;text-align:center;padding:1px 7px;font-size:12px}
.mt8-fen.sonne{animation:mt8-sonne .6s ease-in-out infinite;box-shadow:0 0 0 3px var(--c),0 0 22px var(--c)}
@keyframes mt8-sonne{0%,100%{transform:none}20%{transform:rotate(-.8deg)}40%{transform:rotate(.8deg)}60%{transform:rotate(-.5deg)}}
.mt8-fen-liste{display:flex;flex-direction:column;gap:6px;padding:8px;flex:1;overflow:auto;max-height:260px}
.mt8-fen-vide{margin:auto;color:#94a3b8;font-size:13px;text-align:center}
.mt8-file{display:flex;gap:4px;padding:6px 10px 0;min-height:44px;align-items:flex-end;background:linear-gradient(transparent 70%,#e2e8f0 70%)}
.mt8-file-pers{animation:mt8-marche .8s ease-out both,mt8-dandine 2.4s ease-in-out infinite}
@keyframes mt8-marche{from{transform:translateX(60px);opacity:0}to{transform:none;opacity:1}}
@keyframes mt8-dandine{50%{translate:0 -2px}}
.mt8-dem{position:relative;display:flex;align-items:center;gap:8px;width:100%;font:inherit;text-align:left;background:#fff;border:1.5px solid #e2e8f0;border-radius:10px;padding:6px 8px 9px;cursor:pointer;animation:mt8-arrive .4s ease;color:#1a1430}
@keyframes mt8-arrive{from{transform:translateY(-8px) scale(.96);opacity:0}to{transform:none;opacity:1}}
.mt8-dem:hover:not(:disabled){border-color:var(--c);box-shadow:0 4px 12px rgba(0,0,0,.1)}
.mt8-dem:disabled{opacity:.55;cursor:default}
.mt8-dem.ouverte{border-color:var(--c);background:color-mix(in srgb,var(--c) 10%,#fff)}
.mt8-dem.urgente{border-color:#ef4444;animation:mt8-urgent .7s ease-in-out infinite}
@keyframes mt8-urgent{50%{background:#fee2e2}}
.mt8-dem.partie{background:#fef2f2;border-style:dashed;border-color:#f87171}
.mt8-dem-txt{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.mt8-dem-txt b{font-size:13px}
.mt8-dem-txt i{font-size:12px;font-style:normal;color:#64748b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mt8-dem-et{color:#db2777;font-style:normal;font-size:11px;letter-spacing:-1px}
.mt8-patience{position:absolute;left:8px;right:8px;bottom:3px;height:3px;background:#e2e8f0;border-radius:2px;overflow:hidden}
.mt8-patience i{display:block;height:100%;background:linear-gradient(90deg,#ef4444,#f59e0b 40%,#22c55e);transition:width .2s linear}
.mt8-cahier{background:#fefce8;color:#1a1430;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:6px;background-image:repeating-linear-gradient(#fefce8 0 21px,#e7e5e4 21px 22px)}
.mt8-cahier.grc{background:#f1f5f9;background-image:none;border:2px solid #334155}
.mt8-cahier-t{font-weight:800;font-size:14px}
.mt8-cahier-corps{display:flex;flex-direction:column;align-items:flex-start;gap:3px;font-size:13px}
.mt8-cahier-corps i{font-size:12px;color:#64748b;font-style:normal}
.mt8-cahier-corps ul{margin:4px 0 0;padding-left:16px;font-size:12px;display:flex;flex-direction:column;gap:3px}
.mt8-cahier-corps li.vide{list-style:none;margin-left:-16px;color:#94a3b8}
.mt8-cahier-vide{font-size:13px;color:#78716c;margin:0}
/* la demande ouverte, posée sur les fenêtres */
.mt8-traite{position:absolute;inset:0 220px 0 0;z-index:3;background:#fff;color:#1a1430;border-radius:12px;padding:12px 14px;overflow:auto;border-top:6px solid var(--c);box-shadow:0 16px 40px rgba(0,0,0,.45);animation:mt8-ouvre .3s ease}
@keyframes mt8-ouvre{from{transform:scale(.94);opacity:0}to{transform:none;opacity:1}}
.mt8-traite-t{font-weight:800;color:var(--c);font-size:14px;margin-bottom:8px}
.mt8-traite-t i{font-weight:500;color:#64748b;font-style:normal}.mt8-traite-t em{font-style:normal;color:#dc2626}
.mt8-traite-msg{display:flex;gap:10px;align-items:flex-start;margin-bottom:10px}
.mt8-traite-msg p{margin:0;background:#f1f5f9;border-radius:4px 14px 14px 14px;padding:9px 12px;font-size:15px;line-height:1.45}
.mt8-msg-chat p{background:#e0e7ff}.mt8-msg-tel p{background:#ffedd5;font-style:italic}.mt8-msg-avis p{background:#fce7f3}
.mt8-avis-et{color:#db2777;font-style:normal;font-weight:800}
.mt8-traite-q{font-weight:700;margin:6px 0 8px;font-size:15px}
.mt8-traite-o{display:flex;flex-direction:column;gap:7px}
.mt8 .pdl-opt.choisi{border-color:#4f46e5;background:#eef2ff;box-shadow:0 0 0 2px #a5b4fc}
.mt8-pause{font-size:12px;color:#64748b;margin:6px 0 0}
.mt8-fin-service{position:absolute;inset:0;z-index:4;background:rgba(11,18,32,.92);border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:20px;animation:mt8-ouvre .4s ease}
.mt8-fin-service h3{font-size:24px;margin:0;color:#fbbf24}
.mt8-fin-service p{margin:2px 0;color:#e2e8f0}
.sans-chrono .mt8-patience{display:none}
.mt8-sur-poste{max-width:1040px;align-self:center}

/* le poste sur téléphone : onglets, une fenêtre à la fois */
@media (max-width:760px){
  .mt8 .pdl-decor-contenu{padding:12px 8px}
  .mt8-poste{padding:6px}
  .mt8-poste-corps{grid-template-columns:1fr;min-height:0}
  .mt8-onglets{display:flex;gap:4px;overflow-x:auto;padding-bottom:6px}
  .mt8-onglet{flex:1 0 auto;font:inherit;font-size:12px;font-weight:700;border:0;border-radius:10px 10px 4px 4px;padding:7px 9px;background:#1e293b;color:#cbd5e1;position:relative;cursor:pointer;border-bottom:3px solid transparent}
  .mt8-onglet.on{background:#f8fafc;color:var(--c);border-bottom-color:var(--c)}
  .mt8-onglet.vivant:not(.on){animation:mt8-pulse 1s ease-in-out infinite}
  .mt8-onglet sup{background:#ef4444;color:#fff;border-radius:99px;padding:0 5px;font-size:10px;margin-left:3px}
  .mt8-fenetres{grid-template-columns:1fr}
  .mt8-fen{display:none}.mt8-fen.on{display:flex}
  .mt8-fenetres.n3>.mt8-fen:first-child{grid-column:auto}
  .mt8-cahier{order:2}
  .mt8-traite{position:fixed;inset:auto 0 0 0;max-height:88vh;border-radius:16px 16px 0 0;z-index:30}
  .mt8-jauge-sat{max-width:none}
}

/* ========== RANGER (prises, frise, fiche) ========== */
.mt8-ranger{width:100%;max-width:980px;display:flex;flex-direction:column;gap:12px}
.mt8-cartes{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.mt8-carte{font:inherit;font-size:14px;line-height:1.35;max-width:300px;text-align:left;background:#fff;border:2px solid #e2e8f0;border-radius:12px;padding:9px 12px;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.15);animation:mt8-arrive .35s ease both;color:#1a1430}
.mt8-carte.sel{border-color:#f59e0b;transform:translateY(-4px) rotate(-1deg);box-shadow:0 10px 22px rgba(245,158,11,.45)}
.mt8-cases{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:8px}
.mt8-case{background:rgba(255,255,255,.95);border-radius:14px;padding:8px;min-height:120px;border-top:6px solid var(--c);cursor:pointer;display:flex;flex-direction:column;gap:6px;transition:transform .2s,box-shadow .2s}
.mt8-case.cible{box-shadow:0 0 0 3px #fbbf24;animation:mt8-pulse 1.1s ease-in-out infinite}
.mt8-case-t{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;color:var(--c)}
.mt8-case-t b{font-size:14px}.mt8-case-t i{font-size:12px;color:#64748b;font-style:normal}
.mt8-prise{font-size:22px;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#e2e8f0;box-shadow:inset 0 3px 6px rgba(0,0,0,.25)}
.mt8-pose{font-size:13px;line-height:1.35;background:color-mix(in srgb,var(--c) 10%,#fff);border-left:4px solid var(--c);border-radius:8px;padding:6px 8px;animation:mt8-branche .35s ease;color:#1a1430}
@keyframes mt8-branche{from{transform:translateY(-14px);opacity:0}to{transform:none;opacity:1}}
.mt8-pose.faux{background:#fee2e2;border-left-color:#dc2626;animation:mt8-secoue .4s}
.mt8-pose.bon{cursor:help}
.mt8-pose small{display:block;margin-top:5px;color:#334155;font-size:12px}
@keyframes mt8-secoue{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.mt8-ranger-frise .mt8-cases{position:relative}
.mt8-ranger-frise .mt8-cases:before{content:"";position:absolute;left:0;right:0;top:32px;height:4px;background:linear-gradient(90deg,#0f766e,#4f46e5,#be185d);border-radius:2px;z-index:0}
.mt8-ranger-frise .mt8-case{position:relative;z-index:1}
.mt8-ranger-fiche .mt8-cases{background:#f1f5f9;border:2px solid #334155;border-radius:14px;padding:8px}
@media (max-width:760px){
  .mt8-cases{grid-template-columns:1fr}
  .mt8-case{min-height:60px}
  .mt8-ranger-frise .mt8-cases:before{display:none}
  .mt8-carte{max-width:100%}
}

/* ========== CALCUL ========== */
.mt8-panneau{width:100%;max-width:880px;display:flex;flex-direction:column;gap:12px;align-items:stretch}
.mt8-calcul{background:#fff;border-radius:16px;padding:14px 18px;box-shadow:0 14px 34px rgba(0,0,0,.28);width:100%;max-width:820px;align-self:center}
.mt8-calcul-q{font-weight:700;font-size:16px;margin:4px 0 8px}
.mt8-rappel{background:#ecfeff;border:1.5px solid #67e8f9;border-radius:10px;padding:8px 12px;font-size:14px;line-height:1.45}
.mt8-formule-btn{font:inherit;font-size:13px;margin:10px 0 0;background:#fef3c7;border:0;border-radius:8px;padding:6px 10px;cursor:pointer}
.mt8-formule{font-family:ui-monospace,Menlo,monospace;background:#f8fafc;border-radius:8px;padding:8px 10px;font-size:13px}
.mt8-saisie{display:flex;align-items:center;gap:8px;margin-top:12px;flex-wrap:wrap}
.mt8-saisie input{font:inherit;font-size:18px;width:160px;max-width:100%;padding:8px 10px;border:2px solid #cbd5e1;border-radius:10px}
.mt8-saisie .pdl-cta.petit{margin:0}
.mt8-calcul .pdl-why ul{margin:6px 0;padding-left:18px}

/* ========== LE TUYAU ========== */
.mt8-tuyau{background:rgba(255,255,255,.97);border-radius:16px;padding:14px;width:100%;box-shadow:0 14px 34px rgba(0,0,0,.28);display:flex;flex-direction:column;gap:12px}
.mt8-tuyau .pdl-consigne{box-shadow:none;padding:0;background:none}
.mt8-tuyau-corps{display:grid;grid-template-columns:1fr 150px;gap:12px;align-items:stretch}
.mt8-tuyau-paliers{display:flex;flex-direction:column;gap:8px}
.mt8-palier{display:grid;grid-template-columns:1fr 50px;gap:2px 8px;align-items:center;animation:mt8-pt .4s ease both}
.mt8-palier-nom{grid-column:1/-1;font-size:13px;font-weight:600}
.mt8-palier-nom i{font-style:normal;color:#64748b;font-weight:500}
.mt8-palier-barre{position:relative;height:22px;background:#f1f5f9;border-radius:11px;overflow:hidden}
.mt8-palier-barre i{position:absolute;left:0;top:0;bottom:0;border-radius:11px}
.mt8-palier-barre i.fantome{background:repeating-linear-gradient(45deg,#cbd5e1 0 6px,#e2e8f0 6px 12px)}
.mt8-palier-barre i.plein{background:linear-gradient(90deg,#0ea5e9,#4f46e5);transition:width .8s cubic-bezier(.3,1.3,.5,1);overflow:hidden}
.mt8-palier-barre i.plein.change{background:linear-gradient(90deg,#22c55e,#0ea5e9)}
.mt8-palier-barre em{position:absolute;top:7px;width:8px;height:8px;border-radius:50%;background:#fff;opacity:.8;animation:mt8-goutte 2.4s linear infinite}
@keyframes mt8-goutte{from{left:-10px}to{left:100%}}
.mt8-palier>b{font-variant-numeric:tabular-nums;text-align:right}
.mt8-palier small{grid-column:1/-1;font-size:11px;color:#0369a1}
.mt8-tuyau-bilan{display:flex;flex-direction:column;gap:8px}
.mt8-tuyau-bilan>div{flex:1;background:#ecfdf5;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;text-align:center}
.mt8-tuyau-bilan>div b{font-size:30px;color:#047857}
.mt8-tuyau-bilan>div span{font-size:12px}
.mt8-tuyau-bilan .guichet{background:#fff7ed}.mt8-tuyau-bilan .guichet b{color:#c2410c}
.mt8-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mt8-action{font:inherit;text-align:left;background:#fff;border:2px solid #e2e8f0;border-radius:12px;padding:9px 11px;cursor:pointer;display:flex;flex-direction:column;gap:3px;color:#1a1430}
.mt8-action b{font-size:14px}.mt8-action span{font-size:12px;color:#475569}.mt8-action em{font-style:normal;font-weight:800;color:#047857;font-size:13px}
.mt8-action.on{border-color:#4f46e5;box-shadow:0 0 0 3px #c7d2fe}
.mt8-action.mt8-action-combo{border-style:dashed}
.mt8-adopter{background:#f8fafc;border-radius:12px;padding:10px 12px}
.mt8-adopter p{margin:0 0 8px}
.mt8-adopter>div{display:flex;flex-wrap:wrap;gap:6px}
.mt8-choix{font:inherit;font-size:13px;background:#fff;border:2px solid #cbd5e1;border-radius:99px;padding:6px 12px;cursor:pointer}
.mt8-choix.on{border-color:#0f766e;background:#ccfbf1;font-weight:700}
.mt8-adopter .pdl-cta{margin-top:10px}
@media (max-width:760px){.mt8-tuyau-corps{grid-template-columns:1fr}.mt8-tuyau-bilan{flex-direction:row}.mt8-actions{grid-template-columns:1fr}}

/* ========== RÉVÉLATIONS ========== */
.mt8-revel{background:#fff;border-radius:16px;padding:16px 20px;max-width:720px;width:100%;box-shadow:0 14px 34px rgba(0,0,0,.3);animation:mt8-tombe .5s ease}
.mt8-revel h3{margin:0 0 10px}
.mt8-revel-2{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.mt8-revel-2>div{background:#f1f5f9;border-radius:12px;padding:10px;display:flex;flex-direction:column;align-items:center;text-align:center}
.mt8-revel-2 b{font-size:34px}.mt8-revel-2 span{font-weight:700;font-size:13px}.mt8-revel-2 i{font-size:12px;color:#64748b;font-style:normal}
.mt8-revel-2 .vrai{background:#fef2f2;animation:mt8-revele 1s .4s ease both}
@keyframes mt8-revele{from{transform:rotateY(90deg)}to{transform:none}}
.mt8-revel-txt{background:#fef9c3;border-radius:10px;padding:10px 12px;font-weight:600}

/* ========== LE FIL UNIQUE (sans fiche) ========== */
.mt8-sansfiche{width:100%;max-width:900px;display:flex;flex-direction:column;gap:10px;align-items:center}
.mt8-agace{display:flex;align-items:center;gap:10px;background:#fff;border-radius:99px;padding:5px 14px 5px 5px;font-weight:700;font-size:14px}
.mt8-agace>i{width:140px;height:10px;background:#e2e8f0;border-radius:5px;overflow:hidden}
.mt8-agace>i em{display:block;height:100%;background:linear-gradient(90deg,#f59e0b,#dc2626);transition:width .8s}
.mt8-sf-fen{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
.mt8-sf{background:#f8fafc;border-radius:12px;overflow:hidden;border-top:5px solid var(--c);opacity:.45;min-height:120px;color:#1a1430}
.mt8-sf.vu{opacity:1}.mt8-sf.dernier{animation:mt8-sonne .6s ease-in-out 3}
.mt8-sf-u{margin:8px;font-size:14px;background:#e0e7ff;border-radius:10px;padding:7px 9px}
.mt8-sf-a{margin:8px;font-size:13px;color:#64748b;font-style:italic}
@media (max-width:760px){.mt8-sf-fen{grid-template-columns:1fr}}

/* ========== L'ATELIER DU CHATBOT ========== */
.mt8-atelier{background:#fff;border-radius:16px;padding:14px 16px;width:100%;max-width:820px;align-self:center;box-shadow:0 14px 34px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:10px;color:#1a1430}
.mt8-bot-tete{display:flex;align-items:center;gap:12px}
.mt8-bot-tete b{display:block;font-size:18px}.mt8-bot-tete i{font-style:normal;color:#64748b;font-size:13px}
.mt8-bot-face{font-size:40px;width:64px;height:64px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(135deg,#e0e7ff,#c7d2fe);transition:transform .3s}
.mt8-bot-face.pret{animation:mt8-dandine 1.4s ease-in-out infinite;background:linear-gradient(135deg,#bbf7d0,#a5f3fc)}
.mt8-bot-face.anime{animation:mt8-bot 2s ease-in-out infinite}
@keyframes mt8-bot{0%,100%{transform:rotate(0)}25%{transform:rotate(-6deg)}75%{transform:rotate(6deg)}}
.mt8-reglages{display:flex;flex-wrap:wrap;gap:6px}
.mt8-reglage{font:inherit;font-size:13px;background:#f1f5f9;border:2px solid transparent;border-radius:99px;padding:5px 11px;cursor:pointer}
.mt8-reglage.on{border-color:#4f46e5;background:#eef2ff}
.mt8-reglage.fait{background:#dcfce7}
.mt8-reglage em{font-style:normal;color:#15803d;font-weight:800}
.mt8-reglage-corps{animation:mt8-pt .35s ease}
.mt8-indice{font-size:13px;background:#fff7ed;border-radius:8px;padding:8px 10px}
.mt8-chat-fil{background:#eef2ff;border-radius:14px;padding:10px;display:flex;flex-direction:column;gap:8px;max-height:430px;overflow:auto;scroll-behavior:smooth}
.mt8-bulle-u{display:flex;gap:8px;align-items:flex-end;animation:mt8-arrive .35s ease}
.mt8-bulle-u p{margin:0;background:#fff;border-radius:14px 14px 14px 4px;padding:8px 11px;font-size:14px;max-width:80%}
.mt8-bulle-bot{display:flex;gap:8px;align-items:flex-end;flex-direction:row-reverse;animation:mt8-arrive .35s ease;position:relative}
.mt8-bulle-bot p{margin:0;background:#4f46e5;color:#fff;border-radius:14px 14px 4px 14px;padding:8px 11px;font-size:14px;max-width:78%}
.mt8-bulle-bot.vague p{background:#94a3b8}
.mt8-bulle-bot.bete p{background:#dc2626;animation:mt8-secoue .5s}
.mt8-bulle-bot em{font-style:normal;font-size:11px;font-weight:800;align-self:center;white-space:nowrap}
.mt8-bulle-bot.ok em{color:#15803d}.mt8-bulle-bot.vague em{color:#64748b}.mt8-bulle-bot.bete em{color:#dc2626}
.mt8-bot-mini{font-size:22px}
.mt8-bulle-bot.ecrit p{display:flex;gap:4px;padding:12px}
.mt8-bulle-bot.ecrit p i{width:7px;height:7px;border-radius:50%;background:#fff;animation:mt8-points 1s ease-in-out infinite}
.mt8-bulle-bot.ecrit p i:nth-child(2){animation-delay:.15s}.mt8-bulle-bot.ecrit p i:nth-child(3){animation-delay:.3s}
@keyframes mt8-points{50%{transform:translateY(-4px);opacity:.5}}
.mt8-bot-bilan{background:#fef2f2;border-radius:12px;padding:10px 12px}
.mt8-bot-bilan.bon{background:#ecfdf5}
.mt8-bot-bilan b{font-size:17px}

/* ========== LE CONSEIL ========== */
.mt8-vote{background:rgba(255,255,255,.97);border-radius:16px;padding:14px;width:100%;box-shadow:0 14px 34px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:10px}
.mt8-vote .pdl-consigne{box-shadow:none;padding:0;background:none}
.mt8-semaine{display:flex;flex-wrap:wrap;gap:6px 14px;background:#f1f5f9;border-radius:12px;padding:10px 12px;font-size:13px}
.mt8-semaine b{width:100%;font-size:14px}
.mt8-votes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mt8-vote-carte{font:inherit;text-align:left;background:#fff;border:2px solid #e2e8f0;border-radius:14px;padding:10px 12px;cursor:pointer;display:flex;flex-direction:column;gap:4px;color:#1a1430;transition:transform .2s}
.mt8-vote-carte:hover:not(:disabled){transform:translateY(-3px)}
.mt8-vote-carte span{font-size:26px}.mt8-vote-carte b{font-size:15px}.mt8-vote-carte i{font-style:normal;font-size:13px;color:#475569}
.mt8-vote-carte.on{border-color:#1e3a8a;box-shadow:0 0 0 3px #bfdbfe;animation:mt8-tamponne .4s ease}
@keyframes mt8-tamponne{0%{transform:scale(1.06)}100%{transform:none}}
@media (max-width:620px){.mt8-votes{grid-template-columns:1fr}}

/* ========== LE POSTE AU REPOS ========== */
.mt8-bureau{width:100%;display:flex;flex-direction:column;gap:12px}
.mt8-bureau-tete{display:flex;justify-content:space-between;align-items:center;color:#fff;gap:10px}
.mt8-bureau-tete h2{margin:0;font-size:22px}
.mt8-date{background:#fbbf24;color:#1a1430;font-weight:800;border-radius:99px;padding:5px 12px;font-size:14px}
.mt8-bureau-corps{display:grid;grid-template-columns:1.1fr 1fr;gap:12px;align-items:start}
.mt8-mini-fen{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mt8-mini{background:#f8fafc;border-radius:12px;border-top:5px solid var(--c);padding:10px;display:flex;flex-direction:column;gap:4px;min-height:84px;color:#1a1430}
.mt8-mini b{color:var(--c);font-size:14px}.mt8-mini span{font-size:13px;color:#334155}
.mt8-mini.sonne{animation:mt8-sonne .6s ease-in-out infinite;box-shadow:0 0 18px var(--c)}
.mt8-mini.grc{grid-column:1/-1;background:#fefce8}.mt8-mini.grc.on{background:#f1f5f9}
.mt8-bureau-cote{display:flex;flex-direction:column;gap:10px}
.mt8-indics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.mt8-indics>div{background:rgba(255,255,255,.95);border-radius:10px;padding:6px;display:flex;flex-direction:column;align-items:center;text-align:center}
.mt8-indics b{font-size:16px}.mt8-indics span{font-size:11px;color:#64748b}
.mt8-indics .alerte{background:#fee2e2}
.mt8-appel{background:#fff;border-radius:14px;padding:12px 14px;box-shadow:0 10px 26px rgba(0,0,0,.3);animation:mt8-tombe .5s ease;color:#1a1430}
.mt8-appel-t{font-size:12px;font-weight:800;text-transform:uppercase;color:#0f766e;letter-spacing:.04em}
.mt8-appel h3{margin:4px 0;font-size:20px}
.mt8-appel-notion{font-size:13px;color:#475569;margin:4px 0}
.mt8-appel-canaux{font-size:13px;margin:4px 0 10px}
.mt8-liaison{background:rgba(254,252,232,.96);border-radius:12px;padding:10px 12px;font-size:13px;color:#1a1430}
.mt8-liaison ul{margin:6px 0 0;padding-left:16px;display:flex;flex-direction:column;gap:4px}
.mt8-acces-prof{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12px;color:#fff}
.mt8-acces-prof button{font:inherit;font-size:12px;border:0;border-radius:8px;padding:4px 8px;cursor:pointer}
@media (max-width:760px){.mt8-bureau-corps{grid-template-columns:1fr}.mt8-indics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ========== ACCUEIL, IDENTITÉ, RÉCIT, FINS ========== */
.mt8-accueil-canaux{display:flex;gap:14px;justify-content:center;margin:6px 0}
.mt8-accueil-canaux span{font-size:30px;width:58px;height:58px;display:grid;place-items:center;border-radius:16px;background:#fff;box-shadow:0 0 0 3px var(--c);animation:mt8-sonne 1.2s ease-in-out infinite}
.mt8-mode{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch;justify-content:center}
.mt8-mode>span{width:100%;text-align:center;font-weight:700}
.mt8-mode button{font:inherit;font-weight:700;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:8px 14px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px;color:#1a1430}
.mt8-mode button i{font-style:normal;font-weight:500;font-size:12px;color:#64748b}
.mt8-mode button.on{border-color:#0f766e;background:#ccfbf1}
.mt8-recit{background:rgba(15,23,42,.82);color:#fff;border-radius:16px;padding:16px 20px;max-width:680px;font-size:17px;line-height:1.55;display:flex;flex-direction:column;gap:10px;align-items:flex-end;animation:mt8-tombe .5s ease}
.mt8-recit p{margin:0;align-self:stretch}
.mt8-vocal-annonce{margin-bottom:10px}
.mt8-tm-date{font-weight:800;background:#fbbf24;color:#1a1430;border-radius:99px;padding:4px 12px;display:inline-block}
.mt8-fin-badge{display:flex;flex-direction:column;align-items:center;gap:2px;background:color-mix(in srgb,var(--c) 12%,#fff);border:2px solid var(--c);border-radius:14px;padding:10px;margin:8px 0;text-align:center}
.mt8-fin-badge span{font-size:36px}.mt8-fin-badge b{color:var(--c);font-size:18px}.mt8-fin-badge i{font-style:normal;font-size:12px;color:#475569}

/* ========== LES DOCUMENTS ========== */
.mt8-badge{width:min(340px,100%);background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 14px 34px rgba(0,0,0,.35);animation:mt8-tombe .6s ease;color:#1a1430}
.mt8-badge-tete{background:linear-gradient(135deg,#0f766e,#14b8a6);color:#fff;padding:10px 14px;display:flex;flex-direction:column}
.mt8-badge-tete b{font-size:13px;letter-spacing:.06em}.mt8-badge-tete span{font-size:12px;opacity:.9}
.mt8-badge-corps{display:flex;gap:12px;padding:12px 14px;align-items:center}
.mt8-badge-corps img{width:84px;height:104px;object-fit:cover;border-radius:10px}
.mt8-badge-corps div{display:flex;flex-direction:column;gap:3px}
.mt8-badge-corps b{font-size:20px}.mt8-badge-corps span{font-size:13px;font-weight:600}.mt8-badge-corps i{font-size:12px;color:#64748b;font-style:normal}
.mt8-badge-pied{background:#f0fdfa;padding:6px 14px;font-size:12px;font-style:italic;color:#0f766e}
.mt8-doc{font-size:14px;line-height:1.5;color:#1a1430}
.mt8-doc h3{margin:0 0 4px;font-size:18px}
.mt8-doc-sous{margin:0 0 10px;color:#64748b;font-size:13px}
.mt8-doc-note{margin-top:10px;font-size:13px;color:#475569;font-style:italic}
.mt8-doc-date{text-align:right;color:#64748b}
.mt8-doc-signe{text-align:right;font-weight:700;font-style:italic}
.mt8-doc-manuscrit{font-family:"Segoe Print","Comic Sans MS",Outfit,sans-serif;background:repeating-linear-gradient(#fff 0 25px,#e0f2fe 25px 26px);padding:10px 14px;border-radius:8px}
.mt8-doc-officiel{font-family:Georgia,serif}
.mt8-doc-entete{text-align:center;font-size:12px;letter-spacing:.08em;color:#1e3a8a;font-weight:700;border-bottom:2px solid #1e3a8a;padding-bottom:6px}
.mt8-table{width:100%;border-collapse:collapse;font-size:13px}
.mt8-table th,.mt8-table td{border-bottom:1px solid #e2e8f0;padding:5px 6px;text-align:left;vertical-align:top}
.mt8-table th{background:#f1f5f9}
.mt8-doc-avis{border-left:4px solid #be185d;padding-left:10px;margin-bottom:10px}
.mt8-doc-avis p{margin:2px 0}
.mt8-doc-rep{color:#0f766e;font-weight:600}.mt8-doc-rep.faible{color:#9a3412}
.mt8-doc-grc{border:2px solid #334155;border-radius:10px;padding:10px 14px}
.mt8-tampon{display:inline-block;transform:rotate(-8deg);border:3px solid #b91c1c;color:#b91c1c;font-weight:900;letter-spacing:.12em;padding:3px 12px;border-radius:6px;animation:mt8-tamponne .5s ease}
.mt8-tampon.vert{border-color:#047857;color:#047857}
.mt8-journal img{max-width:100%;border-radius:8px}
/* ==== mt8 : fin des styles ==== */
/* ==== mt7 : debut des styles ====
   « Pirwèt ! » — préfixe mt7-. Hérite des styles pdl- de Péi Délices (le
   conteneur porte les deux classes : .pdl.mt7). Couleurs : le rouge et le
   crème de la toile du chapiteau, l'or des projecteurs. */
.mt7 .pdl-cta{background:linear-gradient(135deg,#be123c,#9f1239);box-shadow:0 6px 18px rgba(159,18,57,.32)}
.mt7 .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(159,18,57,.42)}
.mt7 .pdl-cta.alt{background:#fff;color:#0f172a}
.mt7 .pdl-ex-titre{color:#fde68a}
.mt7 .pdl-qcm-prog{color:#fde68a}
.mt7-hud-date{flex:1;min-width:0;text-align:center;font-weight:800;font-size:13px;color:#fde68a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mt7-exo{display:flex;flex-direction:column;gap:12px;min-width:0}
.mt7-2col{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:16px;align-items:start}
@media (max-width:760px){.mt7-2col{grid-template-columns:minmax(0,1fr)}}
.mt7-msg{margin:4px 0 0;padding:9px 12px;border-radius:10px;background:#f1f5f9;font-size:14px;line-height:1.45;animation:mt7-glisse .3s ease}
.mt7-msg.bon{background:#dcfce7;color:#14532d}
.mt7-msg.faux{background:#fee2e2;color:#7f1d1d}
.mt7-msg .pdl-cta{display:block;margin-top:10px}
@keyframes mt7-glisse{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

/* --- la coupe du chapiteau (2,5D) --- */
.mt7-coupe{position:relative;width:100%;aspect-ratio:16/10;min-height:300px;border-radius:18px;overflow:hidden;
  background:linear-gradient(#3b0a1a,#5b1028 40%,#2a0712);box-shadow:inset 0 0 60px rgba(0,0,0,.5),0 10px 30px rgba(0,0,0,.25);perspective:900px;user-select:none}
.mt7-coupe.petit{min-height:190px;max-width:520px;margin:6px auto}
.mt7-coupe.nuit{filter:brightness(.62) saturate(.8);transition:filter .5s}
.mt7-toile{position:absolute;left:0;right:0;top:0;height:62%;
  background:repeating-linear-gradient(90deg,#b91c1c 0 34px,#fef3c7 34px 68px);
  clip-path:polygon(0 30%,50% 0,100% 30%,100% 100%,0 100%);opacity:.9;
  box-shadow:inset 0 -40px 60px rgba(0,0,0,.45)}
.mt7-toile::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 70%,rgba(253,230,138,.35),transparent 60%),linear-gradient(transparent 55%,rgba(40,6,14,.75))}
.mt7-mat{position:absolute;top:4%;bottom:44%;width:8px;background:linear-gradient(90deg,#78716c,#d6d3d1,#78716c);border-radius:4px}
.mt7-mat.g{left:13%}.mt7-mat.d{right:13%}
.mt7-trapeze{position:absolute;left:44%;top:6%;width:12%;height:28%;transform-origin:50% 0;animation:mt7-balance 3.4s ease-in-out infinite}
.mt7-trapeze::before,.mt7-trapeze::after{content:"";position:absolute;top:0;bottom:6px;width:2px;background:#e7e5e4}
.mt7-trapeze::before{left:0}.mt7-trapeze::after{right:0}
.mt7-trapeze i{position:absolute;left:-2px;right:-2px;bottom:0;height:6px;border-radius:3px;background:#a16207}
@keyframes mt7-balance{0%,100%{transform:rotate(-7deg)}50%{transform:rotate(7deg)}}
.mt7-regie{position:absolute;right:3%;top:44%;width:24%;height:8%;background:linear-gradient(#44403c,#292524);border-radius:6px;
  box-shadow:0 6px 0 #1c1917;display:flex;align-items:center;justify-content:center}
.mt7-regie span{position:absolute;top:100%;margin-top:8px;font-size:11px;font-weight:800;color:#fde68a}
.mt7-nacelle{position:absolute;left:4%;top:42%;width:16%;height:4%;background:linear-gradient(#57534e,#292524);border-radius:4px;box-shadow:0 5px 0 #1c1917}
.mt7-nacelle::before{content:"";position:absolute;left:46%;bottom:100%;width:2px;height:900%;background:#a8a29e}
.mt7-projo{position:absolute;top:2%;width:0;height:0;border-left:7px solid transparent;border-right:7px solid transparent;border-top:12px solid #fde68a}
.mt7-projo::after{content:"";position:absolute;left:-60px;top:0;width:120px;height:220px;background:linear-gradient(rgba(253,230,138,.28),transparent);clip-path:polygon(45% 0,55% 0,100% 100%,0 100%);animation:mt7-projo 6s ease-in-out infinite alternate}
.mt7-projo.a{left:30%}.mt7-projo.b{left:66%}
.mt7-projo.b::after{animation-delay:-3s}
@keyframes mt7-projo{from{transform:rotate(-12deg)}to{transform:rotate(12deg)}}
.mt7-sol{position:absolute;left:-10%;right:-10%;bottom:-14%;height:86%;background:radial-gradient(ellipse at 50% 30%,#a16207,#713f12 60%,#422006);
  transform:rotateX(58deg);transform-origin:50% 100%;border-top:4px solid #fbbf24}
.mt7-piste{position:absolute;left:30%;right:30%;top:30%;bottom:14%;border-radius:50%;background:radial-gradient(ellipse,#dc2626,#991b1b 70%);border:8px solid #fef3c7;box-shadow:0 0 30px rgba(253,230,138,.4)}
.mt7-zone{position:absolute;font-size:10px;font-weight:800;color:rgba(254,243,199,.75);letter-spacing:.04em;text-transform:uppercase;pointer-events:none}
.mt7-zone.bureau{left:2%;bottom:3%}.mt7-zone.musique{right:2%;bottom:3%}.mt7-zone.agres{left:2%;top:50%}.mt7-zone.piste-t{left:46%;bottom:3%}
.mt7-coupe-titre{position:absolute;left:10px;top:8px;max-width:calc(100% - 20px);font-size:12px;font-weight:800;color:#0f172a;background:rgba(255,255,255,.85);
  padding:4px 10px;border-radius:99px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;z-index:60}

/* --- les petits personnages --- */
.mt7-perso{position:absolute;transform:translate(-50%,-100%) scale(var(--e,1));transform-origin:50% 100%;width:58px;height:96px;padding:0;border:0;background:none;cursor:pointer;
  transition:left .85s ease-in-out,top .85s ease-in-out;font-family:inherit}
.mt7-perso:focus-visible{outline:3px solid #fde68a;border-radius:12px}
.mt7-tete{position:absolute;left:50%;top:18px;width:34px;height:34px;margin-left:-17px;border-radius:50%;overflow:hidden;border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.4);background:#fde68a;z-index:2}
.mt7-tete img{width:100%;height:100%;object-fit:cover;object-position:50% 18%}
.mt7-corps{position:absolute;left:50%;top:48px;width:30px;height:34px;margin-left:-15px;border-radius:12px 12px 6px 6px;background:var(--c);box-shadow:inset -4px -6px 0 rgba(0,0,0,.18)}
.mt7-corps::before,.mt7-corps::after{content:"";position:absolute;top:5px;width:8px;height:22px;border-radius:5px;background:var(--c);filter:brightness(.88)}
.mt7-corps::before{left:-6px;transform-origin:50% 10%;transform:rotate(14deg)}
.mt7-corps::after{right:-6px;transform-origin:50% 10%;transform:rotate(-14deg)}
.mt7-ombre{position:absolute;left:50%;bottom:6px;width:36px;height:8px;margin-left:-18px;border-radius:50%;background:rgba(0,0,0,.4)}
.mt7-nom{position:absolute;left:50%;bottom:-8px;transform:translateX(-50%);font-size:10px;font-weight:800;color:#fff;background:rgba(15,23,42,.75);padding:1px 6px;border-radius:99px;white-space:nowrap}
.mt7-mini{position:absolute;left:50%;bottom:-20px;width:40px;margin-left:-20px;display:flex;flex-direction:column;gap:2px}
.mt7-mini i{display:block;height:3px;border-radius:2px;transition:width .6s}
.mt7-mini i.c{background:#fbbf24}.mt7-mini i.i{background:#f43f5e}
.mt7-bulle{position:absolute;left:50%;top:-6px;transform:translateX(-50%);font-size:20px;line-height:1;background:#fff;border-radius:50%;width:28px;height:28px;display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 6px rgba(0,0,0,.35);z-index:3}
.mt7-bulle::after{content:"";position:absolute;bottom:-4px;left:50%;margin-left:-4px;border:4px solid transparent;border-top-color:#fff;border-bottom:0}
.mt7-perso.sel .mt7-tete{border-color:#fde68a;box-shadow:0 0 0 3px #f59e0b,0 0 18px #fde68a}
.mt7-perso.sel .mt7-ombre{background:rgba(253,230,138,.6)}
/* les humeurs : il chante, il travaille, il bâille, il boude */
.mt7-h-chante{animation:mt7-saute .9s ease-in-out infinite}
.mt7-h-chante .mt7-corps::before{transform:rotate(150deg)}
.mt7-h-chante .mt7-corps::after{transform:rotate(-150deg)}
@keyframes mt7-saute{0%,100%{transform:translate(-50%,-100%) scale(var(--e,1))}50%{transform:translate(-50%,-108%) scale(var(--e,1))}}
.mt7-notes{position:absolute;left:24px;top:-6px;font-style:normal;font-size:12px;color:#fde68a;white-space:nowrap;animation:mt7-notes 1.6s ease-out infinite}
@keyframes mt7-notes{from{opacity:1;transform:translate(0,0)}to{opacity:0;transform:translate(14px,-18px)}}
.mt7-h-calme .mt7-corps{animation:mt7-respire 2.6s ease-in-out infinite}
@keyframes mt7-respire{0%,100%{transform:scaleY(1)}50%{transform:scaleY(1.04)}}
.mt7-h-baille .mt7-tete{animation:mt7-baille 3.2s ease-in-out infinite}
.mt7-h-baille .mt7-bulle{animation:mt7-pulse 3.2s ease-in-out infinite}
@keyframes mt7-baille{0%,60%,100%{transform:rotate(0)}75%{transform:rotate(-14deg) translateY(2px)}}
@keyframes mt7-pulse{0%,60%,100%{transform:translateX(-50%) scale(1)}75%{transform:translateX(-50%) scale(1.25)}}
.mt7-h-boude .mt7-tete{filter:grayscale(.6);transform:rotate(8deg)}
.mt7-h-boude .mt7-corps{filter:saturate(.4)}
.mt7-h-boude .mt7-corps::before{transform:rotate(-70deg) translate(4px,4px)}
.mt7-h-boude .mt7-corps::after{transform:rotate(70deg) translate(-4px,4px)}
.mt7-h-boude .mt7-bulle{animation:mt7-tremble .5s ease-in-out infinite}
@keyframes mt7-tremble{25%{transform:translateX(-56%)}75%{transform:translateX(-44%)}}
.mt7-h-parti{opacity:.35;cursor:default;filter:grayscale(1)}
.mt7-h-parti .mt7-tete,.mt7-h-parti .mt7-corps{visibility:hidden}
.mt7-h-parti .mt7-bulle{top:40px}
.mt7-delta{position:absolute;left:50%;top:-34px;transform:translateX(-50%);white-space:nowrap;font-size:12px;font-weight:900;color:#0f172a;background:#fde68a;padding:2px 8px;border-radius:99px;
  box-shadow:0 2px 8px rgba(0,0,0,.35);animation:mt7-delta 2.6s ease forwards;z-index:4;pointer-events:none}
@keyframes mt7-delta{0%{opacity:0;transform:translate(-50%,8px)}12%{opacity:1;transform:translate(-50%,0)}80%{opacity:1}100%{opacity:0;transform:translate(-50%,-16px)}}
.mt7-coupe.petit .mt7-perso{width:46px}
@media (max-width:600px){.mt7-perso{width:44px}.mt7-tete{width:26px;height:26px;margin-left:-13px;top:20px}.mt7-corps{top:44px;width:24px;height:28px;margin-left:-12px}.mt7-bulle{width:22px;height:22px;font-size:15px}.mt7-nom{font-size:9px}}

/* --- la vie de la troupe --- */
.mt7-vie{display:flex;flex-direction:column;gap:12px;min-width:0}
.mt7-hud2{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;background:rgba(15,23,42,.88);color:#fff;border-radius:14px;padding:10px 14px}
.mt7-hud2 .mt7-jauge{flex:1 1 150px;color:#fff}
.mt7-sem{font-weight:900;color:#fde68a}
.mt7-energie{display:flex;align-items:center;gap:3px;font-weight:800}
.mt7-energie i{display:inline-block;width:14px;height:20px;border-radius:4px;background:#334155;clip-path:polygon(40% 0,100% 0,62% 45%,100% 45%,20% 100%,42% 55%,0 55%)}
.mt7-energie i.on{background:#fbbf24;animation:mt7-glisse .3s}
.mt7-abs{font-size:12px;color:#cbd5e1}
.mt7-vie-corps{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:14px;align-items:start}
@media (max-width:900px){.mt7-vie-corps{grid-template-columns:minmax(0,1fr)}}
.mt7-vie-scene{min-width:0}
.mt7-legende{font-size:12px;color:#cbd5e1;margin:6px 2px 0;line-height:1.5}
.mt7-legende i{display:inline-block;width:18px;height:4px;border-radius:2px;vertical-align:middle}
.mt7-legende i.c{background:#fbbf24}.mt7-legende i.i{background:#f43f5e}
.mt7-vie-cote{display:flex;flex-direction:column;gap:10px;min-width:0}
.mt7-retour{background:#fef9c3;border:1px solid #fde047;border-radius:12px;padding:10px 12px;font-size:14px;line-height:1.45;animation:mt7-glisse .35s}
.mt7-astuce{background:#fff;border-radius:14px;padding:12px 14px;box-shadow:0 4px 14px rgba(0,0,0,.08)}
.mt7-astuce p{margin:6px 0 0;font-size:14px;line-height:1.45;color:#334155}
.mt7-fichep{background:#fff;border-radius:16px;padding:12px 14px;box-shadow:0 6px 18px rgba(0,0,0,.1);display:flex;flex-direction:column;gap:8px;animation:mt7-glisse .3s}
.mt7-fichep-t{display:flex;gap:10px;align-items:center}
.mt7-fichep-t img{width:56px;height:56px;border-radius:50%;object-fit:cover;object-position:50% 18%;border:3px solid #fde68a;flex:none}
.mt7-fichep-t b{display:block;font-size:15px}
.mt7-fichep-t span{display:block;font-size:12px;color:#9f1239;font-weight:700}
.mt7-fichep-t i{display:block;font-size:12px;color:#475569}
.mt7-humeur{margin:0;font-weight:800}
.mt7-jauge{display:grid;grid-template-columns:auto minmax(40px,1fr) 30px;align-items:center;gap:8px;font-size:13px;font-weight:700}
.mt7-jauge-b{height:10px;border-radius:99px;background:rgba(148,163,184,.35);overflow:hidden}
.mt7-jauge-b i{display:block;height:100%;border-radius:99px;transition:width .7s cubic-bezier(.2,1.2,.4,1)}
.mt7-jauge b{text-align:right}
.mt7-besoins{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.mt7-besoin{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px}
.mt7-besoin div{width:18px;height:46px;border-radius:6px;background:#e2e8f0;display:flex;align-items:flex-end;overflow:hidden}
.mt7-besoin div i{display:block;width:100%;background:linear-gradient(#22c55e,#15803d);transition:height .7s}
.mt7-besoin.bas div i{background:linear-gradient(#f87171,#b91c1c)}
.mt7-besoin.bas span{animation:mt7-pulse2 1s ease-in-out infinite}
@keyframes mt7-pulse2{50%{transform:scale(1.25)}}
.mt7-besoin em{font-style:normal;color:#475569;text-align:center;line-height:1.1}
.mt7-grief{margin:0;color:#b91c1c;font-weight:700;font-size:13px}
.mt7-pensee{margin:0;background:#f8fafc;border-radius:10px;padding:8px 10px;font-size:13.5px;line-height:1.45;color:#334155;font-style:italic}
.mt7-actions,.mt7-groupe{display:flex;flex-wrap:wrap;gap:6px}
.mt7-groupe{background:#fff;border-radius:14px;padding:10px 12px;box-shadow:0 4px 14px rgba(0,0,0,.08)}
.mt7-groupe>b{width:100%;font-size:13px}
.mt7-act{display:flex;align-items:center;gap:6px;padding:7px 10px;border-radius:10px;border:2px solid #fecdd3;background:#fff1f2;font:inherit;font-size:13px;cursor:pointer;transition:transform .15s}
.mt7-act:hover:not(:disabled){transform:translateY(-2px);border-color:#be123c}
.mt7-act:disabled{opacity:.4;cursor:not-allowed}
.mt7-act.g{border-color:#fde68a;background:#fefce8}
.mt7-act i{font-style:normal;font-size:11px;color:#a16207;font-weight:800}
.mt7-fin-sem{align-self:stretch}
.mt7-acces-prof{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12px;color:#475569}
.mt7-acces-prof button{border:1px solid #cbd5e1;background:#fff;border-radius:8px;padding:3px 8px;cursor:pointer;font:inherit;font-size:12px}

/* --- la semaine qui passe --- */
.mt7-passe{display:flex;flex-direction:column;gap:12px;position:relative}
.mt7-passe-jour{align-self:center;font-weight:900;font-size:18px;background:#0f172a;color:#fde68a;padding:6px 16px;border-radius:99px}
.mt7-passer{position:absolute;right:8px;top:4px;border:0;background:rgba(15,23,42,.7);color:#fff;border-radius:99px;padding:5px 12px;cursor:pointer;font:inherit;font-size:13px}
.mt7-bilan-sem{background:#fffbeb;border:2px solid #fde68a;border-radius:16px;padding:14px;animation:mt7-glisse .4s;
  background-image:repeating-linear-gradient(transparent 0 27px,rgba(148,163,184,.25) 27px 28px)}
.mt7-bilan-sem h3{margin:0 0 8px}
.mt7-bilan-chiffres{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:8px}
.mt7-bilan-chiffres div{background:#fff;border-radius:10px;padding:8px;text-align:center;box-shadow:0 2px 6px rgba(0,0,0,.06)}
.mt7-bilan-chiffres b{display:block;font-size:22px;color:#9f1239}
.mt7-bilan-chiffres span{font-size:12px;color:#475569}
.mt7-bilan-l{list-style:none;margin:0 0 8px;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:6px}
.mt7-bilan-l li{display:flex;align-items:center;gap:6px;background:#fff;border-radius:10px;padding:5px 8px;font-size:13px}
.mt7-bilan-l img{width:28px;height:28px;border-radius:50%;object-fit:cover;object-position:50% 18%}
.mt7-bilan-l em{margin-left:auto;font-style:normal;font-size:12px;color:#475569;white-space:nowrap}
.mt7-depart{background:#fee2e2;color:#7f1d1d;border-radius:10px;padding:8px 10px;font-weight:700}
.mt7-usure{font-size:13px;color:#57534e;font-style:italic}

/* --- le lundi, l'atelier, la leçon --- */
.mt7-tm{background:rgba(15,23,42,.58);border-radius:20px;padding:18px 16px;backdrop-filter:blur(2px)}
.mt7-tm-sem{display:inline-block;background:#fde68a;color:#7c2d12;font-weight:900;border-radius:99px;padding:4px 12px;font-size:13px}
.mt7-tm-ev{max-width:620px;margin:10px auto;font-size:16px;line-height:1.5;color:#fff}
.mt7-atelier{display:flex;flex-direction:column;gap:12px}
.mt7-atelier-tete{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;background:#0f172a;color:#fff;border-radius:12px;padding:8px 12px}
.mt7-atelier-tete span{font-size:12px;color:#fde68a;font-weight:800}
.mt7-atelier-tete b{font-size:15px}
.mt7-atelier-pas{margin-left:auto}
.mt7-atelier-ex{display:flex;flex-direction:column;gap:12px}
.mt7-intro{max-width:760px}
.mt7-fiche{background:#fff;border-radius:16px;padding:16px 18px;box-shadow:0 8px 24px rgba(0,0,0,.12);max-width:820px;animation:mt7-glisse .4s}
.mt7-fiche-tete{display:flex;justify-content:space-between;align-items:center;gap:8px;font-weight:800;font-size:13px;color:#9f1239}
.mt7-fiche h3{margin:8px 0}
.mt7-fiche ol{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:7px}
.mt7-fiche-pt{line-height:1.5;animation:mt7-glisse .35s}
.mt7-fiche-plus{margin-top:10px;border:0;background:#fff1f2;color:#9f1239;border-radius:10px;padding:8px 12px;font:inherit;font-weight:800;cursor:pointer}
.mt7-fiche .pdl-cta{margin-top:12px}
.mt7-fiche-carnet{background:#fffbeb;background-image:repeating-linear-gradient(transparent 0 29px,rgba(59,130,246,.18) 29px 30px);font-family:"Segoe Print","Comic Sans MS",cursive;border-left:6px solid #f87171}
.mt7-fiche-caisses{background:#f5f5f4}
.mt7-fiche-robinets{background:linear-gradient(135deg,#ecfeff,#fff7ed)}
.mt7-fiche-vocal{background:#0f172a;color:#e2e8f0}
.mt7-fiche-vocal .mt7-fiche-tete{color:#fde68a}
.mt7-fiche-vocal .mt7-fiche-plus{background:#1e293b;color:#fde68a}
.mt7-fiche-vocal h3::before{content:"▶ ▮▮▯▮▮▮▯▮▯▮▮▮▮▯ ";color:#f43f5e;font-size:12px;letter-spacing:-1px}
.mt7-fiche-mur{background:#44403c;color:#f5f5f4;background-image:repeating-linear-gradient(90deg,transparent 0 60px,rgba(0,0,0,.18) 60px 63px)}
.mt7-fiche-mur .mt7-fiche-tete{color:#fde68a}
.mt7-fiche-cahier{background:#f8fafc;background-image:repeating-linear-gradient(transparent 0 29px,rgba(148,163,184,.35) 29px 30px);border-left:3px double #f87171}
.mt7-fiche-pli .mt7-fiche-pt{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:6px;padding:6px 8px;transform-origin:top;animation:mt7-deplie .45s ease}
@keyframes mt7-deplie{from{transform:rotateX(-80deg);opacity:0}to{transform:none;opacity:1}}
.mt7-fiche-affiche{background:linear-gradient(160deg,#7f1d1d,#b45309);color:#fff7ed;border:6px double #fde68a}
.mt7-fiche-affiche .mt7-fiche-tete{color:#fde68a}
.mt7-fiche-affiche .mt7-fiche-plus{background:#fde68a;color:#7f1d1d}
/* la pyramide de caisses */
.mt7-pyr{display:flex;flex-direction:column;align-items:center;gap:4px;margin:8px 0 12px}
.mt7-caisse{border:0;font:inherit;font-weight:800;font-size:13px;color:#fff;padding:9px 10px;border-radius:6px;background:linear-gradient(#a16207,#713f12);
  box-shadow:inset 0 0 0 3px rgba(0,0,0,.18),0 3px 0 #422006;animation:mt7-pose .45s cubic-bezier(.2,1.4,.4,1);text-align:center}
@keyframes mt7-pose{from{opacity:0;transform:translateY(-24px)}to{opacity:1;transform:none}}
.mt7-caisse.n0{width:100%;max-width:340px}.mt7-caisse.n1{width:86%;max-width:290px}.mt7-caisse.n2{width:72%;max-width:240px}.mt7-caisse.n3{width:58%;max-width:190px}.mt7-caisse.n4{width:44%;max-width:150px}
.mt7-caisse.vide{background:transparent;box-shadow:inset 0 0 0 2px rgba(120,113,108,.5);min-height:34px;animation:none}
.mt7-pyr.grande button{cursor:pointer;padding:14px 10px}
.mt7-pyr.grande button:hover:not(:disabled){filter:brightness(1.15)}
.mt7-caisse.allume{background:linear-gradient(#facc15,#ca8a04);color:#422006;box-shadow:0 0 0 3px #fde68a,0 0 24px #facc15}
/* l'Aide */
.mt7-aide{border:2px dashed #fbbf24;border-radius:14px;background:#fffbeb}
.mt7-aide-t{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;border:0;background:none;font:inherit;font-weight:900;padding:10px 12px;cursor:pointer}
.mt7-aide-t span{font-weight:600;font-size:13px;color:#92400e}
.mt7-aide-corps{padding:0 12px 12px}
.mt7-aide-o{display:flex;flex-wrap:wrap;gap:6px}
.mt7-aide-opt{border:2px solid #fde68a;background:#fff;border-radius:10px;padding:7px 10px;font:inherit;cursor:pointer}
.mt7-aide-opt.bon{border-color:#16a34a;background:#dcfce7}.mt7-aide-opt.faux{border-color:#dc2626;background:#fee2e2}
.mt7-aide-corr{margin:8px 0 4px}
.mt7-aide-re{border:0;background:none;color:#92400e;font:inherit;font-weight:700;cursor:pointer}

/* --- S1 : la grille des deux jauges --- */
.mt7-obs{display:flex;gap:12px;align-items:center;background:#fff;border-radius:14px;padding:12px;box-shadow:0 4px 14px rgba(0,0,0,.08);animation:mt7-glisse .35s;position:relative}
.mt7-obs img,.mt7-obs-ano{width:58px;height:58px;border-radius:50%;object-fit:cover;object-position:50% 18%;flex:none;display:flex;align-items:center;justify-content:center;font-size:28px;background:#e2e8f0}
.mt7-obs p{margin:4px 0 0;line-height:1.45}
.mt7-obs-n{position:absolute;right:10px;top:8px;font-size:12px;color:#64748b;font-weight:800}
.mt7-grille{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:26px 0 0 26px}
.mt7-axe{position:absolute;font-size:12px;font-weight:800;color:#fde68a}
.mt7-axe.h{top:4px;left:26px;right:0;text-align:center}
.mt7-axe.v{left:0;top:26px;bottom:0;writing-mode:vertical-rl;transform:rotate(180deg);text-align:center}
.mt7-case{min-height:96px;border-radius:14px;border:2px solid transparent;font:inherit;cursor:pointer;padding:10px;text-align:left;display:flex;flex-direction:column;gap:6px;transition:transform .15s}
.mt7-case:hover:not(:disabled){transform:scale(1.02)}
.mt7-case.c0{background:#dcfce7;border-color:#86efac}.mt7-case.c1{background:#fef9c3;border-color:#fde047}
.mt7-case.c2{background:#ffedd5;border-color:#fdba74}.mt7-case.c3{background:#fee2e2;border-color:#fca5a5}
.mt7-case-p{display:flex;flex-wrap:wrap;gap:4px}
.mt7-case-p img{width:30px;height:30px;border-radius:50%;object-fit:cover;object-position:50% 18%;border:2px solid #fff;animation:mt7-pose .4s}
.mt7-case-p i{font-style:normal;font-size:22px}

/* --- S3 : l'expérience et les robinets --- */
.mt7-jauges2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;background:#fff;border-radius:12px;padding:10px}
@media (max-width:600px){.mt7-jauges2{grid-template-columns:minmax(0,1fr)}}
.mt7-goutte{background:#fff;border-radius:14px;padding:12px 14px;font-weight:700;box-shadow:0 4px 14px rgba(0,0,0,.08);animation:mt7-tombe .5s cubic-bezier(.2,1.4,.4,1)}
@keyframes mt7-tombe{from{opacity:0;transform:translateY(-30px)}to{opacity:1;transform:none}}
.mt7-robinets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mt7-robinet{border:0;border-radius:16px;padding:12px;font:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;color:#fff;transition:transform .15s}
.mt7-robinet:hover:not(:disabled){transform:translateY(-3px)}
.mt7-robinet.r0{background:linear-gradient(#f59e0b,#b45309)}.mt7-robinet.r1{background:linear-gradient(#e11d48,#9f1239)}
.mt7-robinet-ico{font-size:30px}
.mt7-cuve{width:70%;height:60px;border:3px solid rgba(255,255,255,.8);border-top:0;border-radius:0 0 14px 14px;display:flex;align-items:flex-end;overflow:hidden}
.mt7-cuve i{display:block;width:100%;background:rgba(255,255,255,.75);transition:height .6s}

/* --- S4 : le miroir des loges --- */
.mt7-miroir{position:relative;background:linear-gradient(135deg,#e0f2fe,#f8fafc 40%,#e2e8f0);border:10px solid #57534e;border-radius:14px;padding:28px 18px 18px;min-height:150px;
  box-shadow:inset 0 0 30px rgba(255,255,255,.9),0 8px 20px rgba(0,0,0,.25);overflow:hidden}
.mt7-miroir-lampes{position:absolute;left:0;right:0;top:4px;display:flex;justify-content:space-around}
.mt7-miroir-lampes i{width:12px;height:12px;border-radius:50%;background:#fde68a;box-shadow:0 0 10px #fde68a}
.mt7-miroir-mot{position:relative;z-index:2;font-family:"Segoe Print","Comic Sans MS",cursive;font-size:19px;color:#be123c;line-height:1.5;margin:0;max-width:78%}
.mt7-miroir-signe{position:relative;z-index:2;display:block;text-align:right;font-family:"Segoe Print","Comic Sans MS",cursive;color:#be123c;max-width:78%}
.mt7-miroir-max{position:absolute;right:10px;bottom:8px;width:22%;max-width:110px;border-radius:12px;opacity:.55;filter:blur(.4px);transition:opacity .5s,transform .5s}
.mt7-miroir-max.ravi{opacity:.9;transform:scale(1.06) rotate(-2deg)}
.mt7-morceaux{display:flex;flex-direction:column;gap:6px}
.mt7-morceau{text-align:left;border:2px solid #fecdd3;background:#fff;border-radius:12px;padding:10px 12px;font:inherit;cursor:pointer;line-height:1.4;transition:transform .15s}
.mt7-morceau:hover{transform:translateX(4px);border-color:#be123c}

/* --- S5 : le mur des loges --- */
.mt7-mur{position:relative;border-radius:14px;overflow:hidden;box-shadow:0 8px 20px rgba(0,0,0,.2)}
.mt7-mur img{display:block;width:100%;height:auto}
.mt7-mur-pt{position:absolute;width:34px;height:34px;margin:-17px 0 0 -17px;border-radius:50%;border:3px solid rgba(253,230,138,.4);pointer-events:none}
.mt7-mur-pt.actif{border-color:#fde68a;box-shadow:0 0 0 6px rgba(253,230,138,.35),0 0 30px #fde68a;animation:mt7-pulse2 1s ease-in-out infinite}
.mt7-mur-pt.vu{border-color:#22c55e;background:rgba(34,197,94,.25)}
.mt7-goutte.mur{border-left:5px solid #fbbf24}
.mt7-tiroirs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
@media (max-width:640px){.mt7-tiroirs{grid-template-columns:repeat(2,minmax(0,1fr))}}
.mt7-tiroir{border:0;border-radius:12px;padding:12px 8px;font:inherit;cursor:pointer;display:flex;flex-direction:column;gap:4px;align-items:center;text-align:center;
  background:linear-gradient(#78350f,#451a03);color:#fef3c7;box-shadow:inset 0 -6px 0 rgba(0,0,0,.25);transition:transform .15s}
.mt7-tiroir:hover:not(:disabled){transform:translateY(-3px)}
.mt7-tiroir span{font-size:12px;color:#fde68a}

/* --- S6 : le cahier de régie --- */
.mt7-vrai{font-size:13px;color:#57534e;background:#f5f5f4;border-radius:10px;padding:8px 10px;margin:0}
.mt7-cahier{background:#fff;border-radius:12px;padding:10px 14px;background-image:repeating-linear-gradient(transparent 0 33px,rgba(148,163,184,.3) 33px 34px);border-left:3px double #f87171}
.mt7-cahier-l{display:flex;justify-content:space-between;gap:10px;min-height:34px;align-items:center;font-family:"Segoe Print","Comic Sans MS",cursive;font-size:14px;color:#64748b}
.mt7-cahier-l.actif{color:#0f172a;font-weight:700}
.mt7-cahier-l.fait b{color:#15803d;animation:mt7-pose .4s}
.mt7-calc{background:#fff;border-radius:14px;padding:12px 14px;box-shadow:0 4px 14px rgba(0,0,0,.08);display:flex;flex-direction:column;gap:8px}
.mt7-calc p{margin:0}
.mt7-rappel{background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;padding:8px 10px;font-size:14px}
.mt7-formule-b{align-self:flex-start;border:0;background:#fef9c3;border-radius:8px;padding:6px 10px;font:inherit;font-weight:700;cursor:pointer}
.mt7-formule{background:#fef9c3;border-radius:8px;padding:6px 10px;font-weight:700}
.mt7-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mt7-saisie input{width:140px;font:inherit;font-size:18px;padding:8px 10px;border-radius:10px;border:2px solid #cbd5e1}
.mt7-multi{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
.mt7-multi-o{text-align:left;border:2px solid #e2e8f0;background:#fff;border-radius:10px;padding:9px 12px;font:inherit;cursor:pointer}
.mt7-multi-o.on{border-color:#be123c;background:#fff1f2}
.mt7-multi-o.bon{border-color:#16a34a;background:#dcfce7}.mt7-multi-o.faux{border-color:#dc2626;background:#fee2e2}
.mt7-thermo{position:relative;width:46px;height:220px;margin:10px auto;border-radius:23px;background:#e2e8f0;border:4px solid #fff;box-shadow:0 4px 14px rgba(0,0,0,.15);display:flex;align-items:flex-end;overflow:hidden}
.mt7-thermo i{display:block;width:100%;background:linear-gradient(#ef4444,#f59e0b);transition:height .6s}
.mt7-thermo span{position:absolute;left:50%;bottom:-26px;transform:translateX(-50%);font-size:12px;white-space:nowrap}

/* --- S7 : le fil de tension --- */
.mt7-fil{position:relative;height:200px;border-radius:16px;background:linear-gradient(#1e1b4b,#312e81 60%,#3b0764);overflow:hidden}
.mt7-fil-g,.mt7-fil-d{position:absolute;top:56px;width:62px;height:62px;border-radius:50%;object-fit:cover;object-position:50% 18%;border:3px solid #fde68a}
.mt7-fil-g{left:8px}.mt7-fil-d{right:8px}
.mt7-fil-corde{position:absolute;left:70px;right:70px;top:86px;height:3px;background:#e7e5e4;box-shadow:0 0 6px #fff}
.mt7-fil-filet{position:absolute;left:12%;right:12%;bottom:10px;height:26px;background:repeating-linear-gradient(45deg,transparent 0 8px,rgba(255,255,255,.35) 8px 9px),repeating-linear-gradient(-45deg,transparent 0 8px,rgba(255,255,255,.35) 8px 9px);border-radius:0 0 50% 50%}
.mt7-funambule{position:absolute;top:42px;width:70px;margin-left:-35px;text-align:center;transform:rotate(var(--p,0deg));transform-origin:50% 100%;transition:left .9s ease-in-out,transform .4s}
.mt7-fun-corps{font-size:36px;display:block}
.mt7-balancier{position:absolute;left:0;right:0;top:20px;height:3px;background:#fbbf24;border-radius:2px}
.mt7-funambule.chute{animation:mt7-chute 1.5s ease-in forwards}
@keyframes mt7-chute{0%{top:42px}50%{top:130px;transform:rotate(90deg)}70%{top:118px}100%{top:126px;transform:rotate(90deg)}}
.mt7-pas{display:flex;flex-direction:column;gap:8px}
.mt7-pas>b{line-height:1.4}

/* --- S8 : le discours --- */
.mt7-micro{display:flex;gap:12px;background:radial-gradient(ellipse at 30% 0,#7f1d1d,#1c1917 70%);border-radius:16px;padding:14px;color:#fef3c7;min-height:140px}
.mt7-micro-texte{flex:1;min-width:0}
.mt7-micro-texte p{margin:0 0 8px;line-height:1.45;animation:mt7-glisse .4s}
.mt7-micro-texte p.vide{color:#a8a29e;font-style:italic}
.mt7-applaudi{display:flex;flex-direction:column;align-items:center;gap:4px;flex:none}
.mt7-applaudi div{width:22px;height:110px;border-radius:11px;background:#44403c;display:flex;align-items:flex-end;overflow:hidden}
.mt7-applaudi i{display:block;width:100%;background:linear-gradient(#22c55e,#facc15);transition:height .6s}

/* --- la première et la fin --- */
.mt7-premiere{max-width:720px;margin:0 auto;text-align:center;color:#fff}
.mt7-premiere h2{color:#fde68a}
.mt7-tableaux{list-style:none;margin:12px 0;padding:0;display:flex;flex-direction:column;gap:6px;text-align:left}
.mt7-tableaux li{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;background:rgba(15,23,42,.82);border-radius:12px;padding:9px 12px;opacity:.5;transition:opacity .5s,transform .5s}
.mt7-tableaux li.vu{opacity:1;transform:scale(1.01)}
.mt7-tableaux li.reussi{box-shadow:inset 4px 0 0 #22c55e}.mt7-tableaux li.bancal{box-shadow:inset 4px 0 0 #f59e0b}.mt7-tableaux li.coupe{box-shadow:inset 4px 0 0 #ef4444}
.mt7-tableaux span{font-size:12px;color:#cbd5e1}
.mt7-tableaux em{margin-left:auto;font-style:normal;font-weight:800}
.mt7-fin-badge{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;border-radius:16px;padding:12px;margin:8px 0;background:#fff7ed;border:2px solid #fdba74}
.mt7-fin-badge span{font-size:40px}
.mt7-fin-badge i{font-size:14px;line-height:1.45;color:#57534e}
.mt7-fin-badge em{font-style:normal;font-size:12px;font-weight:800;color:#9f1239}
.mt7-fin-badge.ovation{background:#f0fdf4;border-color:#86efac}.mt7-fin-badge.annulee{background:#fef2f2;border-color:#fca5a5}
.mt7-journal-bord{background:#fff;border-radius:12px;padding:8px 12px;margin:8px 0}
.mt7-journal-bord summary{cursor:pointer;font-weight:800}
.mt7-journal-bord ul{margin:6px 0 0;padding-left:18px;font-size:13px;line-height:1.5;max-height:220px;overflow:auto}
.mt7-outil{background:#fefce8;border:2px solid #fde68a;border-radius:14px;padding:10px 14px;margin:8px auto;max-width:520px;text-align:left}
.mt7-outil p{margin:4px 0 0;font-size:14px}

/* --- les documents --- */
.mt7-doc{font-size:14.5px;line-height:1.55;color:#1c1917}
.mt7-doc-tete{border-bottom:3px solid #be123c;margin-bottom:10px;padding-bottom:6px}
.mt7-doc-logo{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px}
.mt7-doc-logo span{font-size:22px}
.mt7-doc-logo b{color:#be123c;letter-spacing:.08em}
.mt7-doc-logo i{font-size:12px;color:#78716c}
.mt7-doc-tete h3{margin:6px 0 2px}
.mt7-doc-sous{margin:0;font-size:12.5px;color:#57534e}
.mt7-doc-signe{text-align:right;font-family:"Segoe Print","Comic Sans MS",cursive;color:#9f1239}
.mt7-doc-note{font-size:13px;color:#57534e;background:#f5f5f4;border-radius:8px;padding:8px 10px}
.mt7-doc-cadre{border:2px solid #1c1917;border-radius:8px;padding:10px 12px;margin:10px 0}
.mt7-doc-grille{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
@media (max-width:600px){.mt7-doc-grille{grid-template-columns:minmax(0,1fr)}}
.mt7-doc-grille>div{background:#fafaf9;border-radius:8px;padding:8px 10px}
.mt7-doc-grille ul{margin:4px 0 0;padding-left:16px;font-size:13px}
.mt7-doc-table{width:100%;border-collapse:collapse;font-size:13px}
.mt7-doc-table td{border-bottom:1px solid #e7e5e4;padding:6px 4px;vertical-align:top}
.mt7-doc-ligne{background-image:repeating-linear-gradient(transparent 0 23px,rgba(148,163,184,.2) 23px 24px)}
.mt7-postit{background:#fef08a;padding:14px 16px;font-family:"Segoe Print","Comic Sans MS",cursive;font-size:16px;transform:rotate(-1.5deg);box-shadow:0 6px 12px rgba(0,0,0,.15);margin:8px 4px 14px}
.mt7-postit i{display:block;text-align:right;margin-top:6px}
.mt7-badge{max-width:260px;margin:0 auto;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 10px 26px rgba(0,0,0,.25);display:flex;flex-direction:column;align-items:center;gap:4px;padding-bottom:12px;text-align:center}
.mt7-badge-bande{width:100%;background:repeating-linear-gradient(90deg,#be123c 0 18px,#fef3c7 18px 36px);color:#0f172a;font-weight:900;font-size:11px;padding:6px 0;text-shadow:0 0 4px #fff}
.mt7-badge img{width:110px;height:130px;object-fit:cover;object-position:50% 18%;border-radius:10px;margin-top:8px}
.mt7-badge b{font-size:20px}
.mt7-badge span{font-weight:800;color:#be123c}
.mt7-badge i{font-size:12px;color:#57534e}
.mt7-badge-code{font-family:monospace;font-size:12px;letter-spacing:.2em;color:#78716c}
.mt7-programme{background:linear-gradient(160deg,#1c1917,#450a0a);color:#fef3c7;border-radius:12px;padding:16px}
.mt7-prog-titre{text-align:center;border-bottom:1px solid rgba(253,230,138,.4);padding-bottom:10px;margin-bottom:10px}
.mt7-prog-titre span,.mt7-prog-titre i{display:block;font-size:12px;color:#fcd34d}
.mt7-prog-titre b{display:block;font-size:34px;letter-spacing:.2em;color:#fde68a}
.mt7-prog-liste{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.mt7-prog-liste li{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;border-bottom:1px dotted rgba(253,230,138,.25);padding:3px 0}
.mt7-prog-liste li.barre b{text-decoration:line-through;opacity:.6}
.mt7-prog-liste li.moi{color:#fde68a;font-weight:800}
.mt7-prog-liste span{font-size:12.5px;color:#e7e5e4}
.mt7-programme .mt7-doc-note{background:rgba(0,0,0,.25);color:#fde68a}
.mt7-journal{font-family:Georgia,"Times New Roman",serif}
.mt7-journal-tete{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:6px;border-bottom:3px double #1c1917;padding-bottom:4px}
.mt7-journal-tete b{font-size:22px;letter-spacing:.02em}
.mt7-journal-tete span{font-size:12px;color:#57534e}
.mt7-journal h2{font-size:22px;line-height:1.25;margin:10px 0}
.mt7-journal img{width:100%;border-radius:6px;margin-bottom:8px}
/* ==== mt7 : fin des styles ==== */
/* ==== msb : debut des styles ====
   GALÉ — Fé o Por (SDGN 1re, chapitre 11). Préfixe msb-. L'écran est une
   application de réseau social fictive (Pikpik) posée sur le décor du
   lieu, flouté : profil à gauche, fil ou semaine au centre, mosaïque
   d'identité à droite. Sur téléphone, une seule colonne. */
.msb{background:#1d2b36;min-height:min(86vh,860px)}
.msb-fond{position:absolute;inset:-30px;background-size:cover;background-position:center;filter:blur(14px) saturate(1.15) brightness(.55);transform:scale(1.05);transition:background-image .6s}
.msb-app{position:relative;z-index:1;margin:14px;border-radius:20px;background:rgba(246,243,236,.97);box-shadow:0 18px 50px rgba(0,0,0,.35);overflow:hidden;
  display:flex;flex-direction:column;min-height:calc(min(86vh,860px) - 28px)}
.msb-app-crise{animation:msb-tremble .5s ease 2;box-shadow:0 0 0 3px #ef4444,0 18px 50px rgba(239,68,68,.35)}
@keyframes msb-tremble{0%,100%{transform:none}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
.msb-barre{display:flex;align-items:center;gap:12px;padding:10px 16px;background:#fff;border-bottom:1px solid #e7e1d4}
.msb-pikpik{font-weight:900;font-size:22px;letter-spacing:-.04em;background:linear-gradient(90deg,#e4572e,#f59e0b 45%,#0f8b8d);-webkit-background-clip:text;background-clip:text;color:transparent}
.msb-pikpik i{font-style:normal;color:#e4572e;-webkit-text-fill-color:#e4572e}
.msb-recherche{flex:1;max-width:320px;background:#f1ede4;border-radius:99px;padding:6px 14px;font-size:13px;color:#8a8273}
.msb-barre-ico{margin-left:auto;font-size:15px;white-space:nowrap}
.msb-barre-ico b{font-size:13px;margin-left:4px}
.msb-corps{display:grid;grid-template-columns:230px minmax(0,1fr) 220px;gap:14px;padding:14px;flex:1;align-items:start}
.msb-centre{min-width:0;animation:pdl-entree .45s ease}

/* --- le profil --- */
.msb-profil{display:flex;flex-direction:column;gap:10px;position:sticky;top:10px}
.msb-profil-carte{background:#fff;border-radius:16px;padding:14px;text-align:center;box-shadow:0 2px 10px rgba(29,43,54,.06)}
.msb-profil-av{width:74px;height:74px;margin:0 auto;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#e4572e,#f59e0b,#0f8b8d,#e4572e);padding:3px}
.msb-profil-av svg{background:#fff;border-radius:50%}
.msb-profil-nom{display:flex;flex-direction:column;margin-top:6px}
.msb-profil-nom b{font-size:16px}.msb-profil-nom i{font-size:12px;font-style:normal;color:#6b7280}
.msb-abonnes{margin-top:8px;display:flex;flex-direction:column}
.msb-compteur{font-weight:900;font-size:24px;font-variant-numeric:tabular-nums;color:#1d2b36}
.msb-abonnes i{font-size:12px;font-style:normal;color:#6b7280}
.msb-meteo{background:#fff;border-radius:16px;padding:10px 12px;display:grid;grid-template-columns:auto 1fr;gap:4px 10px;align-items:center;box-shadow:0 2px 10px rgba(29,43,54,.06)}
.msb-meteo-ico{font-size:30px;animation:msb-flotte 3s ease-in-out infinite;grid-row:span 2}
@keyframes msb-flotte{50%{transform:translateY(-3px) rotate(-4deg)}}
.msb-meteo-t{display:flex;flex-direction:column;line-height:1.2}
.msb-meteo-t i{font-size:11px;font-style:normal;color:#6b7280}.msb-meteo-t b{font-size:14px}
.msb-meteo-barre{height:6px;border-radius:99px;background:#eee;overflow:hidden}
.msb-meteo-barre span{display:block;height:100%;background:var(--m);transition:width 1s}
.msb-profil .pdl-jauge{background:#fff;border-radius:14px;padding:8px 12px;box-shadow:0 2px 10px rgba(29,43,54,.06)}
.msb-moi{display:flex;align-items:center;gap:8px;background:#1d2b36;color:#fff;border-radius:14px;padding:8px 10px}
.msb-moi img{width:38px;height:38px;border-radius:50%;object-fit:cover;border:2px solid #f59e0b}
.msb-moi span{display:flex;flex-direction:column;line-height:1.15}.msb-moi i{font-size:11px;font-style:normal;opacity:.75}
.msb-souvenirs{background:#fff8e7;border:1px dashed #e9c46a;border-radius:14px;padding:8px 10px;font-size:12.5px}
.msb-souvenirs ul{margin:4px 0 0;padding-left:16px}
.msb-outils{display:flex;gap:6px;flex-wrap:wrap}
.msb-outils button{position:relative;background:#fff;border:0;border-radius:10px;width:38px;height:38px;font-size:17px;cursor:pointer;box-shadow:0 2px 6px rgba(29,43,54,.08)}
.msb-outils button:hover{background:#fdf1e4}
.msb-outils sup{position:absolute;top:-4px;right:-4px;background:#e4572e;color:#fff;font-size:10px;font-weight:800;border-radius:99px;padding:1px 5px}
.msb-btn-mosa{display:none}

/* --- la mosaïque d'identité --- */
.msb-droite{position:sticky;top:10px;background:#fff;border-radius:16px;padding:12px;box-shadow:0 2px 10px rgba(29,43,54,.06)}
.msb-droite-t{display:block;font-size:14px;margin-bottom:8px}
.msb-mosaique{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.msb-tuile{border-radius:12px;background:repeating-linear-gradient(45deg,#f4f1ea 0 6px,#ece7dc 6px 12px);min-height:78px;padding:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:3px;transition:transform .4s}
.msb-tuile>i{font-size:10px;font-style:normal;text-transform:uppercase;letter-spacing:.05em;color:#8a8273}
.msb-tuile>div{font-size:22px;color:#c2b9a6;font-weight:800;display:grid;place-items:center}
.msb-tuile>span{font-size:10.5px;line-height:1.2;color:#1d2b36}
.msb-tuile.pleine{background:#fff;border:2px solid #0f8b8d;animation:msb-pose .6s ease}
.msb-tuile.pleine>div{color:inherit}
.msb-tuile img{width:40px;height:40px;border-radius:50%;object-fit:cover}
@keyframes msb-pose{from{transform:rotateY(90deg)}to{transform:none}}
.msb-pastilles{display:inline-flex;gap:3px}
.msb-pastilles i{width:16px;height:16px;border-radius:50%;border:1px solid rgba(0,0,0,.15);display:block}
.msb-vignette{display:inline-block;width:46px;height:34px;border-radius:8px;background-size:cover;background-position:center;flex-shrink:0}

/* --- le fil --- */
.msb-fil{display:flex;flex-direction:column;gap:14px;max-width:560px;margin:0 auto}
.msb-notif-carte{display:flex;align-items:center;gap:12px;background:linear-gradient(120deg,#1d2b36,#0f8b8d);color:#fff;border-radius:16px;padding:12px 14px;
  box-shadow:0 10px 26px rgba(15,139,141,.35);animation:msb-appel 2.4s ease-in-out infinite}
@keyframes msb-appel{50%{box-shadow:0 10px 34px rgba(228,87,46,.55)}}
.msb-notif-carte img{width:46px;height:46px;border-radius:50%;object-fit:cover;border:2px solid #f59e0b;flex-shrink:0}
.msb-notif-carte>div{flex:1;min-width:0}.msb-notif-carte i{font-size:12px;font-style:normal;opacity:.85}
.msb-notif-carte p{margin:2px 0 0;font-size:14.5px}
.msb-notif-carte>span{font-size:34px}
.msb-notif-carte.drop{background:linear-gradient(120deg,#e4572e,#f59e0b)}
.msb-post{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 2px 12px rgba(29,43,54,.08);animation:pdl-entree .5s ease}
.msb-post header{display:flex;align-items:center;gap:8px;padding:10px 12px}
.msb-post-av{width:34px;height:34px;border-radius:50%;background:#f1ede4;display:grid;place-items:center;font-weight:900;object-fit:cover;flex-shrink:0;overflow:hidden}
.msb-post header b{font-size:14px}.msb-post header i{margin-left:auto;font-size:12px;font-style:normal;color:#6b7280}
.msb-post-img{aspect-ratio:16/9;background:#e7e1d4 center/cover;display:grid;place-items:center;color:#8a8273}
.msb-post p{margin:0;padding:10px 12px 4px;font-size:14.5px;line-height:1.45}
.msb-post footer{display:flex;gap:16px;padding:6px 12px 10px;font-size:14px;color:#374151}
.msb-post footer span{display:flex;gap:4px;align-items:center}
.msb-post-coms{list-style:none;margin:0;padding:0 12px 10px;font-size:13px;color:#4b5563}
.msb-post-coms li::before{content:"💬 "}
.msb-post.petit .msb-post-img{aspect-ratio:2/1}
.msb-tags{color:#0f8b8d;font-weight:600}
.msb-duo{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}

/* --- une semaine --- */
.msb-ep{max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.msb-ep-tete{display:flex;align-items:center;gap:10px;background:#fff;border-radius:14px;padding:8px 12px;flex-wrap:wrap}
.msb-ep-tete button{border:0;background:#f1ede4;border-radius:10px;padding:6px 10px;font:inherit;font-weight:700;cursor:pointer}
.msb-ep-tete b{font-size:15px}.msb-ep-tete i{font-size:12.5px;font-style:normal;color:#0f8b8d;margin-left:auto}
.msb-ep-crise .msb-ep-tete{background:#fee2e2}
.msb-etape{background:#fff;border-radius:16px;padding:14px;box-shadow:0 2px 12px rgba(29,43,54,.06);display:flex;flex-direction:column;gap:12px;animation:pdl-entree .45s ease}
.msb-etape-t{font-weight:800;font-size:15px;color:#1d2b36}
.msb-consigne{margin:0;font-size:15px;line-height:1.5}
.msb-aide{font-size:12.5px;color:#6b7280;margin:4px 0 0;text-align:center}
.msb-cta{align-self:center}
.msb-ex-titre{font-weight:800}
.msb-rappel{background:#eef7f6;border-left:4px solid #0f8b8d;border-radius:10px;padding:10px 12px;font-size:14px;line-height:1.5}
.msb-reaction{border-radius:12px;padding:12px 14px;background:#f1f5f9;font-size:15px;line-height:1.5}
.msb-reaction.bon{background:#ecfdf5;border:1px solid #a7f3d0}.msb-reaction.faux{background:#fff7ed;border:1px solid #fed7aa}

/* --- les messages privés --- */
.msb-dm{background:#fff;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 2px 12px rgba(29,43,54,.08)}
.msb-dm-tete{padding:10px 14px;background:#1d2b36;color:#fff;font-size:13.5px}
.msb-dm-fil{padding:14px;display:flex;flex-direction:column;gap:10px;max-height:52vh;overflow-y:auto;cursor:pointer;background:#faf8f3}
.msb-dm-msg{display:flex;gap:8px;align-items:flex-end;animation:msb-bulle .35s ease}
@keyframes msb-bulle{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
.msb-dm-msg img{width:34px;height:34px;border-radius:50%;object-fit:cover;flex-shrink:0}
.msb-dm-msg>div{background:#fff;border:1px solid #ece7dc;border-radius:16px 16px 16px 4px;padding:8px 12px;max-width:85%}
.msb-dm-msg b{font-size:12px;color:#0f8b8d}.msb-dm-msg p{margin:2px 0 0;font-size:15px;line-height:1.45}
.msb-dm-ecrit p{display:flex;gap:4px;padding:4px 0}
.msb-dm-ecrit p i{width:7px;height:7px;border-radius:50%;background:#9ca3af;animation:msb-point 1s infinite}
.msb-dm-ecrit p i:nth-child(2){animation-delay:.15s}.msb-dm-ecrit p i:nth-child(3){animation-delay:.3s}
@keyframes msb-point{50%{transform:translateY(-4px);opacity:.5}}
.msb-dm>.pdl-cta,.msb-dm>.msb-aide{margin:12px auto}

/* --- la story du cours --- */
.msb-story-zone{display:flex;flex-direction:column;align-items:center;gap:12px}
.msb-story{position:relative;width:min(100%,400px);aspect-ratio:9/14;border-radius:22px;overflow:hidden;color:#fff;
  background:radial-gradient(circle at 20% 0%,#f59e0b55,transparent 50%),radial-gradient(circle at 100% 100%,#0f8b8d,transparent 60%),linear-gradient(160deg,#1d2b36,#2c3e50);
  box-shadow:0 18px 40px rgba(29,43,54,.4);display:flex;flex-direction:column}
.msb-story-barres{display:flex;gap:4px;padding:10px 12px 0}
.msb-story-barres span{flex:1;height:3px;border-radius:2px;background:rgba(255,255,255,.3);overflow:hidden;position:relative}
.msb-story-barres span.plein{background:#fff}
.msb-story-barres span.en-cours::after{content:"";position:absolute;inset:0;background:#fff;animation:msb-charge 6s linear forwards;transform-origin:left}
@keyframes msb-charge{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.msb-story-auteur{display:flex;align-items:center;gap:8px;padding:8px 12px;font-size:13px}
.msb-story-auteur img{width:30px;height:30px;border-radius:50%;object-fit:cover;border:2px solid #fff}
.msb-story-auteur i{font-style:normal;opacity:.75;font-size:11.5px}
.msb-story-auteur>:last-child{margin-left:auto}
.msb-story-page{flex:1;display:flex;align-items:center;justify-content:center;padding:14px 26px;animation:msb-glisse .4s ease}
@keyframes msb-glisse{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
.msb-story-titre{text-align:center}
.msb-story-titre span{font-size:13px;background:rgba(255,255,255,.18);padding:4px 10px;border-radius:99px}
.msb-story-titre h3{font-size:28px;line-height:1.15;margin:14px 0 10px}
.msb-story-titre i{font-style:normal;opacity:.8;font-size:13px}
.msb-story-point{text-align:center}
.msb-story-n{display:inline-block;font-size:12px;font-weight:800;background:#f59e0b;color:#1d2b36;border-radius:99px;padding:2px 10px;margin-bottom:12px}
.msb-story-point p{font-size:19px;line-height:1.45;font-weight:600;margin:0}
.msb-story-g,.msb-story-d{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:56px;border:0;background:rgba(255,255,255,.12);color:#fff;font-size:28px;cursor:pointer}
.msb-story-g{left:0;border-radius:0 12px 12px 0}.msb-story-d{right:0;border-radius:12px 0 0 12px}
.msb-story-g:disabled,.msb-story-d:disabled{opacity:.2;cursor:default}

/* --- calculs --- */
.msb-calc{display:flex;flex-direction:column;gap:10px}
.msb-calc-prog{font-size:12.5px;font-weight:800;color:#0f8b8d;text-transform:uppercase;letter-spacing:.05em}
.msb-calc-q{margin:0;font-size:16.5px;font-weight:700}
.msb-calc-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.msb-calc-saisie input{font:inherit;font-size:18px;width:130px;padding:8px 10px;border:2px solid #d6cfc0;border-radius:10px}
.msb-calc-saisie .pdl-cta.petit{margin:0}
.msb-table{border-collapse:collapse;width:100%;font-size:14px;background:#fff}
.msb-table caption{font-weight:800;text-align:left;padding-bottom:6px}
.msb-table td,.msb-table th{border-bottom:1px solid #ece7dc;padding:7px 8px;text-align:left}
.msb-table td:last-child{text-align:right;font-weight:700;font-variant-numeric:tabular-nums}
.msb-table tr.total td{border-top:2px solid #1d2b36;font-weight:800}
.msb-table tr.note td{color:#6b7280;font-size:13px}
.msb-tdb th{background:#1d2b36;color:#fff;font-size:13px}
.msb-tdb td:nth-child(2){color:#6b7280;font-weight:600}

/* --- la balance --- */
.msb-bal-scene{position:relative;height:220px;margin:6px 0 4px}
.msb-bal-fleau{position:absolute;left:8%;right:8%;top:40px;height:6px;background:#1d2b36;border-radius:3px;transition:transform .8s cubic-bezier(.3,1.6,.5,1)}
.msb-bal-plateau{position:absolute;top:6px;width:46%;min-height:96px;background:#fff;border:2px solid #1d2b36;border-radius:0 0 18px 18px;padding:6px 8px;display:flex;flex-direction:column;gap:3px;font-size:12px;transition:transform .8s;transform-origin:top center}
.msb-bal-plateau.g{left:-4%;border-color:#0f8b8d}.msb-bal-plateau.d{right:-4%;border-color:#e4572e}
.msb-bal-plateau b{font-size:12.5px}
.msb-bal-plateau span{background:#f1ede4;border-radius:6px;padding:2px 6px;animation:msb-bulle .3s ease}
.msb-bal-plateau span.moins{background:#fee2e2}
.msb-bal-pied{position:absolute;left:50%;top:44px;width:8px;height:150px;margin-left:-4px;background:linear-gradient(#1d2b36,#4b5563);border-radius:4px}
.msb-bal-pied::after{content:"";position:absolute;bottom:-6px;left:-36px;width:80px;height:12px;border-radius:6px;background:#1d2b36}
.msb-bal-verdict{position:absolute;bottom:0;left:0;right:0;text-align:center;font-weight:800;font-size:14px}
.msb-args{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.msb-arg{font:inherit;font-size:14px;text-align:left;border:2px solid #e7e1d4;background:#fff;border-radius:12px;padding:9px 10px;cursor:pointer;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.msb-arg>span{width:22px;height:22px;border-radius:50%;background:#f1ede4;display:grid;place-items:center;font-weight:800;flex-shrink:0}
.msb-arg.on{border-color:#0f8b8d;background:#eef7f6}.msb-arg.on>span{background:#0f8b8d;color:#fff}
.msb-arg.bon{border-color:#16a34a}.msb-arg.faux{border-color:#dc2626;background:#fef2f2}
.msb-arg i{width:100%;font-size:12px;font-style:normal;color:#6b7280}

/* --- étiquettes --- */
.msb-etiq{display:flex;flex-direction:column;gap:8px}
.msb-etiq-com{background:#faf8f3;border:1px solid #ece7dc;border-radius:14px;padding:8px 10px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.msb-etiq-com p{margin:0;flex:1;min-width:200px;font-size:14.5px}
.msb-etiq-com.faux{animation:pdl-secoue .4s ease;border-color:#dc2626}
.msb-etiq-com.bon{border-color:#86efac}
.msb-etiq-btns{display:flex;gap:6px;flex-wrap:wrap}
.msb-etiq-btns button{font:inherit;font-size:13px;border:2px solid var(--c);color:var(--c);background:#fff;border-radius:99px;padding:5px 10px;cursor:pointer;font-weight:700}
.msb-etiq-btns button.on{background:var(--c);color:#fff}

/* --- studio et compositeur --- */
.msb-studio-grille,.msb-compo-grille{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:14px;align-items:start}
.msb-studio-choix,.msb-compo-choix{display:flex;flex-direction:column;gap:10px}
.msb-studio-ligne>b{display:block;font-size:13.5px;margin-bottom:4px}
.msb-studio-ligne>div{display:flex;flex-direction:column;gap:5px}
.msb-studio-opt{font:inherit;font-size:13.5px;text-align:left;border:2px solid #e7e1d4;background:#fff;border-radius:12px;padding:7px 9px;cursor:pointer;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.msb-studio-opt.on{border-color:#e4572e;background:#fff4ee;box-shadow:0 0 0 3px #e4572e22}
.msb-studio-opt i{width:100%;font-size:12px;font-style:normal;color:#6b7280}
.msb-studio-apercu{--b1:#f1ede4;--b2:#9ca3af;--b3:#1d2b36;position:sticky;top:10px;border-radius:16px;overflow:hidden;background:var(--b1);color:var(--b3);border:3px solid var(--b2);transition:all .5s}
.msb-apercu-tete{display:flex;align-items:center;gap:8px;padding:8px 10px;background:rgba(255,255,255,.6)}
.msb-apercu-tete i{margin-left:auto;font-size:11px;font-style:normal;opacity:.6}
.msb-apercu-img{aspect-ratio:16/10;background-size:cover;background-position:center}
.msb-studio-apercu p{margin:0;padding:8px 10px;font-size:14px}
.msb-apercu-sig{font-weight:800;color:var(--b2)}
.msb-post-apercu.publie{animation:msb-publie .7s ease}
@keyframes msb-publie{30%{transform:scale(1.03) rotate(-1deg)}}
.msb-compo-bilan{margin:8px 0 0;padding-left:18px;font-size:14px}

/* --- micro-trottoir --- */
.msb-trot-prog{font-size:12.5px;font-weight:800;color:#0f8b8d}
.msb-trot-bulle{background:#fff;border:2px solid #e7e1d4;border-radius:22px 22px 22px 6px;padding:12px 14px;animation:msb-bulle .35s ease;min-height:96px}
.msb-trot-bulle b{font-size:13px;color:#6b7280}.msb-trot-bulle p{margin:4px 0 0;font-size:16.5px}
.msb-trot-bulle.bon{border-color:#16a34a;animation:msb-vole .75s ease forwards}
.msb-trot-bulle.faux{border-color:#dc2626;background:#fef2f2}
.msb-trot-bulle i{display:block;margin-top:6px;font-size:13px;font-style:normal;color:#b91c1c}
@keyframes msb-vole{60%{transform:scale(.96)}100%{transform:translateY(40px) scale(.6);opacity:0}}
.msb-trot-compteurs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.msb-trot-c{font:inherit;border:0;border-radius:16px;padding:12px 6px;background:var(--c);color:#fff;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px;box-shadow:0 6px 0 rgba(0,0,0,.18);transition:transform .1s}
.msb-trot-c:active,.msb-trot-c.tape{transform:translateY(4px);box-shadow:0 2px 0 rgba(0,0,0,.18)}
.msb-trot-c span{font-size:24px}.msb-trot-c b{font-size:26px;font-variant-numeric:tabular-nums}.msb-trot-c i{font-size:12.5px;font-style:normal;line-height:1.2}

/* --- modération --- */
.msb-modo-tete{display:flex;justify-content:space-between;font-size:13px;font-weight:700;color:#dc2626}
.msb-modo-com{background:#faf8f3;border:1px solid #ece7dc;border-radius:16px;padding:12px 14px;animation:msb-bulle .35s ease}
.msb-modo-com p{margin:6px 0 0;font-size:16px}
.msb-etoiles{color:#f59e0b;margin-left:8px;letter-spacing:1px}
.msb-modo-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.msb-modo-a{font:inherit;font-size:14.5px;border:2px solid #e7e1d4;background:#fff;border-radius:12px;padding:10px;cursor:pointer;font-weight:600}
.msb-modo-a:hover:not(:disabled){border-color:#0f8b8d}
.msb-modo-a.bon{border-color:#16a34a;background:#f0fdf4}.msb-modo-a.faux{border-color:#dc2626;background:#fef2f2}.msb-modo-a.eteint{opacity:.45}
.msb-mieux{display:block;margin-top:4px;font-style:normal;font-weight:700}
.msb-avis{display:flex;flex-wrap:wrap;gap:6px}
.msb-avis span{background:#fff8e7;border-radius:8px;padding:4px 8px;color:#f59e0b;font-size:15px}
.msb-avis span i{font-style:normal;color:#d6cfc0}.msb-avis span.bas{background:#fee2e2}
.msb-offre{background:#faf5ff;border:1px solid #e9d5ff;border-radius:16px;padding:12px 14px}
.msb-offre i{font-size:12px;font-style:normal;color:#9333ea;margin-left:8px}.msb-offre p{margin:6px 0 0;font-size:15px}

/* --- le bad buzz --- */
.msb-alarme{background:#1f1115;color:#fff;border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center;animation:msb-tremble .4s ease 3}
.msb-alarme-n{font-size:22px;font-weight:900;color:#fca5a5}
.msb-alarme-n .msb-compteur{color:inherit;font-size:inherit}
.msb-alarme-img{width:100%;aspect-ratio:16/8;border-radius:12px;background-size:cover;background-position:center;box-shadow:0 0 0 3px #ef4444}
.msb-alarme p{margin:0;font-size:16px}
.msb-direct{display:flex;flex-direction:column;gap:10px}
.msb-direct-ecran{background:#111827;border-radius:14px;padding:10px 12px;color:#fff}
.msb-direct-tete{font-size:14px}.msb-direct-tete b{font-size:20px;font-variant-numeric:tabular-nums;color:#fca5a5}
.msb-live{background:#ef4444;border-radius:6px;padding:1px 6px;font-weight:800;font-size:12px;animation:msb-clign 1s infinite}
@keyframes msb-clign{50%{opacity:.4}}
.msb-courbe{width:100%;height:110px;display:block;margin-top:6px;background:linear-gradient(transparent 49%,#ffffff12 50%,transparent 51%)}
.msb-direct-plan{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.msb-direct-case{border:2px dashed #d6cfc0;border-radius:12px;padding:8px 6px;font-size:12.5px;min-height:62px;display:flex;flex-direction:column;gap:4px}
.msb-direct-case span{width:22px;height:22px;border-radius:50%;background:#e7e1d4;display:grid;place-items:center;font-weight:800;font-size:12px}
.msb-direct-case.pleine{border-style:solid;border-color:#16a34a;background:#f0fdf4;animation:msb-pose .5s ease}
.msb-direct-case.pleine span{background:#16a34a;color:#fff}
.msb-direct-cartes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.msb-direct-carte{font:inherit;font-size:13.5px;font-weight:700;text-align:left;border:0;border-radius:12px;padding:12px 10px;background:#1d2b36;color:#fff;cursor:pointer;box-shadow:0 5px 0 #0b141b;transition:transform .12s}
.msb-direct-carte:hover:not(:disabled){transform:translateY(-3px) rotate(-1deg)}
.msb-direct-carte.brulee{background:#7f1d1d;opacity:.55;text-decoration:line-through;cursor:not-allowed}
.msb-direct-msg{border-radius:12px;padding:10px 12px;background:#ecfdf5;border:1px solid #a7f3d0;font-size:14.5px;animation:msb-bulle .3s ease}
.msb-direct-msg.faux{background:#fef2f2;border-color:#fecaca}

/* --- casting --- */
.msb-casting{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.msb-carte-influ{background:#fff;border:2px solid #ece7dc;border-radius:16px;padding:10px;display:flex;flex-direction:column;gap:4px;text-align:center;transition:transform .25s}
.msb-carte-influ:hover{transform:translateY(-3px) rotate(.5deg)}
.msb-carte-influ img{width:84px;height:84px;border-radius:50%;object-fit:cover;margin:0 auto;border:3px solid #f59e0b}
.msb-carte-influ>i{font-size:12px;font-style:normal;color:#6b7280}
.msb-carte-influ dl{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;margin:6px 0;text-align:left;font-size:12.5px}
.msb-carte-influ dt{color:#6b7280}.msb-carte-influ dd{margin:0;font-weight:700}
.msb-carte-influ .pdl-cta.petit{margin:auto auto 0}
.msb-carte-influ.on{border-color:#0f8b8d;box-shadow:0 0 0 3px #0f8b8d33}
.msb-carte-aucun{justify-content:center;background:#faf8f3}.msb-carte-aucun>span{font-size:40px}

/* --- multi, barres --- */
.msb-multi{display:flex;flex-direction:column;gap:8px}
.msb-multi-o{display:flex;flex-direction:column;gap:6px}
.msb-multi-carte{font:inherit;font-size:14.5px;text-align:left;border:2px solid #e7e1d4;background:#fff;border-radius:12px;padding:9px 11px;cursor:pointer;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.msb-multi-carte>span{font-size:18px}
.msb-multi-carte.on{border-color:#0f8b8d;background:#eef7f6}
.msb-multi-carte.faux{border-color:#dc2626;background:#fef2f2;animation:pdl-secoue .4s ease}
.msb-multi-carte.bon{border-color:#16a34a;background:#f0fdf4}
.msb-multi-carte i{width:100%;font-size:12.5px;font-style:normal;color:#6b7280}
.msb-barres{display:flex;flex-direction:column;gap:8px;background:#faf8f3;border-radius:14px;padding:12px}
.msb-barres-t{font-size:14.5px}
.msb-barre{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto;gap:8px;align-items:center;font-size:13.5px}
.msb-barre>div{height:14px;background:#ece7dc;border-radius:99px;overflow:hidden}
.msb-barre>div i{display:block;height:100%;border-radius:99px;animation:msb-pousse 1.2s ease}
@keyframes msb-pousse{from{width:0!important}}
.msb-barres-rem{display:flex;flex-direction:column;gap:2px;font-size:13px}

/* --- fins de semaine et fin --- */
.msb-bilan-sem{position:relative;background:#fff;border-radius:18px;padding:22px 16px;text-align:center;max-width:560px;margin:0 auto;overflow:hidden;display:flex;flex-direction:column;align-items:center;gap:8px}
.msb-bilan-sur{font-size:12.5px;text-transform:uppercase;letter-spacing:.06em;color:#0f8b8d;font-weight:800}
.msb-bilan-sem h2{margin:0}.msb-bilan-pct{font-size:22px}
.msb-bilan-deltas{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.msb-bilan-deltas span{background:#f1ede4;border-radius:99px;padding:5px 12px;font-size:14px}
.msb-bilan-deltas span.plus{background:#dcfce7}.msb-bilan-deltas span.moins{background:#fee2e2}
.msb-fin{max-width:760px;margin:0 auto;background:#fff;border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:12px}
.msb-fin-img{width:100%;aspect-ratio:16/8;border-radius:14px;background-size:cover;background-position:center;animation:msb-zoom 12s ease-in-out infinite alternate}
@keyframes msb-zoom{to{transform:scale(1.04)}}
.msb-fin-scene{display:flex;flex-direction:column;gap:12px;align-items:center}
.msb-fin-t{margin:0}.msb-fin-titre{font-size:18px;font-weight:800;text-align:center}
.msb-saison{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.msb-saison li{display:grid;grid-template-columns:90px 1fr auto;gap:2px 10px;align-items:center;background:#faf8f3;border-radius:12px;padding:8px 10px}
.msb-saison li span{font-size:12px;font-weight:800;color:#0f8b8d}.msb-saison li i{grid-column:2;font-size:12.5px;font-style:normal;color:#6b7280}
.msb-saison li .pdl-cta{grid-row:1/span 2;grid-column:3;margin:0}
.msb-saison li.fait{background:#ecfdf5}

/* --- documents --- */
.msb-doc{background:#fff;color:#1d2b36;font-size:14.5px;line-height:1.5;display:flex;flex-direction:column;gap:10px}
.msb-doc-tete{display:flex;align-items:center;gap:10px;border-bottom:3px solid #0f8b8d;padding-bottom:8px;flex-wrap:wrap}
.msb-doc-tete>div{display:flex;flex-direction:column;line-height:1.2}
.msb-doc-tete i{font-size:12px;font-style:normal;color:#6b7280}
.msb-doc-titre{margin-left:auto;text-align:right}
.msb-doc blockquote{margin:0;border-left:4px solid #e4572e;padding:8px 12px;background:#fff7ed;font-style:italic}
.msb-doc ul,.msb-doc ol{margin:0;padding-left:20px}
.msb-doc-signes{display:flex;justify-content:space-around;gap:10px;font-family:"Segoe Script","Brush Script MT",cursive;font-size:20px;color:#0f8b8d;border-top:1px dashed #d6cfc0;padding-top:8px}
.msb-doc-pied{font-size:12.5px;color:#6b7280;margin:0}
.msb-badge-corps{display:flex;gap:14px;align-items:center}
.msb-badge-corps img{width:110px;height:140px;object-fit:cover;border-radius:12px;border:3px solid #f59e0b}
.msb-badge-corps>div{display:flex;flex-direction:column;gap:2px}
.msb-badge-corps b{font-size:22px}.msb-badge-corps i{font-size:13px;font-style:normal;color:#6b7280}
.msb-badge{max-width:440px;animation:msb-pose .7s ease}
.msb-journal{font-family:Georgia,"Times New Roman",serif}
.msb-journal-titre{font-size:24px;font-weight:900;letter-spacing:.04em;border-bottom:3px double #1d2b36;text-align:center;display:flex;flex-direction:column}
.msb-journal-titre i{font-size:12px;font-weight:400;letter-spacing:0}
.msb-journal h3{margin:0;font-size:20px}
.msb-journal-chiffres{background:#f1ede4;padding:6px 10px;border-radius:8px;font-family:Outfit,system-ui,sans-serif;font-size:13px}

/* --- téléphone et tablette --- */
@media (max-width:1000px){
  .msb-corps{grid-template-columns:minmax(0,1fr)}
  .msb-profil{position:static;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px}
  .msb-profil-carte{display:flex;align-items:center;gap:10px;text-align:left;padding:10px}
  .msb-profil-av{width:58px;height:58px;margin:0}
  .msb-abonnes{margin:0 0 0 auto;text-align:right}
  .msb-souvenirs{display:none}
  .msb-btn-mosa{display:block}
  .msb-droite{display:none;position:static}
  .msb-droite.ouverte{display:block}
  .msb-mosaique{grid-template-columns:repeat(4,1fr)}
}
@media (max-width:600px){
  .msb-app{margin:6px;border-radius:14px}
  .msb-corps{padding:8px;gap:10px}
  .msb-recherche{display:none}
  .msb-studio-grille,.msb-compo-grille,.msb-args,.msb-duo{grid-template-columns:minmax(0,1fr)}
  .msb-studio-apercu{position:static}
  .msb-direct-plan{grid-template-columns:repeat(2,1fr)}
  .msb-direct-cartes{grid-template-columns:repeat(2,1fr)}
  .msb-mosaique{grid-template-columns:repeat(2,1fr)}
  .msb-modo-actions{grid-template-columns:minmax(0,1fr)}
  .msb-trot-c i{font-size:11px}
  .msb-story-point p{font-size:17px}
  .msb-barre{grid-template-columns:minmax(0,1fr) auto;}
  .msb-barre>div{grid-column:1/-1;grid-row:2}
  .msb-saison li{grid-template-columns:1fr auto}
  .msb-saison li i{grid-column:1}
  .msb-saison li .pdl-cta{grid-column:2}
  .msb-bal-plateau{font-size:11px}
  .msb-profil{grid-template-columns:1fr 1fr;gap:6px}
  .msb-profil-carte,.msb-outils{grid-column:1/-1}
  .msb-profil-carte{padding:6px 10px}
  .msb-profil-av{width:44px;height:44px}
  .msb-profil-av svg{width:38px;height:38px}
  .msb-compteur{font-size:20px}
  .msb-moi{display:none}
  .msb-meteo{padding:6px 8px;gap:2px 6px}
  .msb-meteo-ico{font-size:22px}
  .msb-meteo-t i{display:none}
  .msb-profil .pdl-jauge{padding:6px 8px;font-size:12px}
  .msb-outils{justify-content:center}
}
/* ==== msb : fin des styles ==== */
/* ==== msa : debut des styles ====
   « Lanvol — en direct de la salle de contrôle » — préfixe msa-. Hérite des
   styles pdl- de Péi Délices (le conteneur porte les deux classes :
   .pdl.msa). Couleurs : le bleu nuit d'une salle de contrôle, le vert et le
   rouge des cours, l'ambre des alertes. Tous les états portent le préfixe
   (piège N) : msa-on, msa-bon, msa-faux, msa-sel… */
.msa .pdl-cta{background:linear-gradient(135deg,#22d3ee,#0284c7);box-shadow:0 6px 18px rgba(2,132,199,.35)}
.msa .pdl-cta.alt{background:#fff;color:#0f172a}
.msa-hud-dir{margin:0 auto;font-size:13px;font-weight:700;color:#67e8f9;text-align:center;line-height:1.2}
.msa-etape{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%;max-width:900px;min-width:0}
.msa-etape>*{max-width:100%;min-width:0}
.msa-large{max-width:1100px;margin:0 auto;padding:14px 12px;background:radial-gradient(ellipse at top,#0b2545,#050b18 70%);min-height:min(80vh,780px)}
.msa-large>*{width:100%}
.msa-large .pdl-cta:not(.petit){align-self:center;width:auto}
.msa-note{font-size:13px;color:#94a3b8;text-align:center;margin:4px 0}
.msa-prudence{font-size:11.5px;color:#64748b;text-align:center;margin:6px 0 0}
.msa-prudence-accueil{font-size:13px !important;color:#fde68a !important;background:rgba(15,23,42,.55);border-radius:10px;padding:6px 10px}

/* --- le mur d'écrans --- */
.msa-mur{background:#030712;border:1px solid #1e3a5f;border-radius:16px;padding:10px;box-shadow:0 0 0 1px rgba(34,211,238,.08),0 20px 50px rgba(0,0,0,.5);color:#e2e8f0;width:100%}
.msa-mur-haut{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;padding:2px 4px 8px}
.msa-mur-haut b{flex:1;min-width:0;color:#cbd5e1;font-weight:600}
.msa-direct{color:#f87171;font-weight:800;letter-spacing:.06em;font-size:12px;animation:msa-pulse 1.4s ease-in-out infinite}
@keyframes msa-pulse{50%{opacity:.35}}
.msa-horloge{font-family:ui-monospace,Menlo,monospace;color:#fbbf24;font-weight:700}
.msa-mur-grille{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:10px}
.msa-ecran{background:linear-gradient(180deg,#071426,#04101f);border:1px solid #16324f;border-radius:12px;padding:10px;min-width:0;position:relative;overflow:hidden}
.msa-ecran::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(180deg,rgba(255,255,255,.025) 0 1px,transparent 1px 3px);pointer-events:none}
.msa-ecran-titre{font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:#7dd3fc;font-weight:700}
.msa-cours-ligne{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:4px 0}
.msa-cours{font-family:ui-monospace,Menlo,monospace;font-size:clamp(28px,5vw,44px);font-weight:800;transition:color .3s}
.msa-hausse{color:#4ade80}.msa-baisse{color:#f87171}
.msa-courbe{width:100%;height:clamp(120px,22vw,200px);display:block}
.msa-courbe-ref{stroke:#334155;stroke-dasharray:4 4;stroke-width:1}
.msa-ligne{fill:none;stroke-width:3;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.msa-ligne-haut{stroke:#4ade80;fill:#4ade80}.msa-ligne-bas{stroke:#f87171;fill:#f87171}
polyline.msa-ligne-haut,polyline.msa-ligne-bas{fill:none}
.msa-aire-haut{fill:rgba(74,222,128,.12)}.msa-aire-bas{fill:rgba(248,113,113,.12)}
.msa-point{filter:drop-shadow(0 0 6px currentColor)}
.msa-capi{font-size:13px;color:#cbd5e1;margin-top:6px;overflow-wrap:anywhere}
.msa-capi b{font-family:ui-monospace,Menlo,monospace;color:#fde68a}
.msa-capi i{color:#64748b;font-style:normal;font-size:12px}
.msa-voyants{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-content:start}
.msa-voyant{background:#061224;border:1px solid #16324f;border-radius:10px;padding:7px 8px;min-width:0;display:grid;grid-template-columns:1fr auto;gap:2px 6px;align-items:center;transition:border-color .4s,box-shadow .4s}
.msa-voyant-tete{display:flex;align-items:center;gap:6px;font-size:12.5px;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.msa-voyant>b{font-family:ui-monospace,Menlo,monospace;font-size:18px}
.msa-voyant-barre{grid-column:1/-1;height:6px;background:#0f223b;border-radius:99px;overflow:hidden}
.msa-voyant-barre i{display:block;height:100%;border-radius:99px;background:currentColor;transition:width .3s}
.msa-voyant em{grid-column:1/-1;font-style:normal;font-size:11.5px;color:#94a3b8}
.msa-lampe{width:11px;height:11px;border-radius:50%;flex-shrink:0;background:currentColor;box-shadow:0 0 10px currentColor}
.msa-v-vert{color:#4ade80}.msa-v-orange{color:#fbbf24}.msa-v-rouge{color:#f87171}
.msa-voyant.msa-v-vert,.msa-voyant.msa-v-orange,.msa-voyant.msa-v-rouge{color:#e2e8f0}
.msa-voyant.msa-v-vert .msa-lampe,.msa-voyant.msa-v-vert .msa-voyant-barre i{color:#4ade80}
.msa-voyant.msa-v-orange .msa-lampe,.msa-voyant.msa-v-orange .msa-voyant-barre i{color:#fbbf24}
.msa-voyant.msa-v-rouge .msa-lampe,.msa-voyant.msa-v-rouge .msa-voyant-barre i{color:#f87171}
.msa-voyant.msa-v-rouge .msa-lampe{animation:msa-pulse .9s ease-in-out infinite}
.msa-eclair{animation:msa-eclair 1s ease 2}
@keyframes msa-eclair{50%{box-shadow:0 0 0 3px rgba(251,191,36,.6);border-color:#fbbf24}}
.msa-bandeau{margin-top:10px;background:#fbbf24;color:#0f172a;border-radius:8px;overflow:hidden;white-space:nowrap;font-weight:700;font-size:13.5px;padding:6px 0;position:relative}
.msa-bandeau-defile{display:inline-flex;gap:38px;padding-left:100%;animation:msa-defile linear infinite}
.msa-bandeau-defile span{flex-shrink:0}
@keyframes msa-defile{from{transform:translateX(0)}to{transform:translateX(-100%)}}
.msa-mur-bas{display:flex;justify-content:center;gap:10px;margin-top:10px;min-height:10px}
.msa-vite{font:inherit;font-size:13px;border:1px solid #334155;background:#0b1729;color:#cbd5e1;border-radius:99px;padding:6px 14px;cursor:pointer}

/* --- les fiches de leçon --- */
.msa-fiche-pliee{display:flex;flex-direction:column;gap:4px;align-items:flex-start;text-align:left;font:inherit;border:0;cursor:pointer;
  border-radius:14px;padding:18px 20px;max-width:560px;width:100%;box-shadow:0 14px 34px rgba(0,0,0,.4);transform:rotate(-1deg);transition:transform .2s;background:#fff;color:#0f172a}
.msa-fiche-pliee:hover{transform:rotate(0) scale(1.02)}
.msa-fiche-ico{font-size:28px}
.msa-fiche-pliee b{font-size:17px}.msa-fiche-pliee span{font-size:14px;color:#475569}
.msa-fiche-pliee em{font-style:normal;font-size:13px;color:#0284c7;font-weight:700;animation:pdl-clig 1.6s ease-in-out infinite}
.msa-fiche{background:#fff;color:#0f172a;border-radius:14px;padding:18px 20px;max-width:820px;width:100%;box-shadow:0 14px 34px rgba(0,0,0,.4);
  animation:msa-deplie .6s cubic-bezier(.2,.8,.2,1);transform-origin:top center}
@keyframes msa-deplie{from{transform:perspective(900px) rotateX(-75deg);opacity:0}to{transform:none;opacity:1}}
.msa-fiche-tete{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12.5px;color:#64748b;font-weight:700;text-transform:uppercase;letter-spacing:.04em;flex-wrap:wrap}
.msa-fiche h3{font-family:Fraunces,Georgia,serif;font-size:24px;margin:8px 0}
.msa-fiche ul{margin:0 0 12px;padding-left:20px}
.msa-fiche li{margin:7px 0;line-height:1.5;font-size:15.5px;animation:pdl-entree .5s ease both}
.msa-fiche .pdl-cta{display:block;margin-left:auto}
.msa-forme-notice{background:linear-gradient(180deg,#ecfeff,#fff);border-top:6px solid #06b6d4}
.msa-forme-rapport{background:#fffdf7;border-left:10px solid #1e3a8a}
.msa-forme-memo{background:#fefce8;border-top:6px dashed #ca8a04}
.msa-forme-convocation{background:#faf5ff;border:2px solid #a855f7}
.msa-forme-affiche{background:linear-gradient(135deg,#f0fdf4,#fff7ed);border-top:6px solid #16a34a}
.msa-forme-mot{background:#fff;font-family:Fraunces,Georgia,serif;border-left:6px solid #0f172a}
.msa-forme-mot li{font-style:italic}

/* --- les QCM de Péi Délices posés sur un décor sombre --- */
.msa .pdl-ex-titre,.msa .pdl-qcm-prog{display:inline-block;align-self:flex-start;color:#e0f2fe;background:rgba(3,7,18,.78);border-radius:99px;padding:4px 12px;text-shadow:none}
.msa .pdl-qcm{display:flex;flex-direction:column;gap:8px}

/* --- le calcul --- */
.msa-calcul{background:#fff;color:#0f172a;border-radius:14px;padding:16px 18px;max-width:760px;width:100%;box-shadow:0 10px 28px rgba(0,0,0,.3)}
.msa-rappel{background:#eff6ff;border:1px solid #bfdbfe;border-radius:10px;padding:8px 12px;font-size:14.5px;line-height:1.5;margin-bottom:10px;color:#0f172a}
.msa-rappel-table{max-width:820px;width:100%;overflow-x:auto}
.msa-rappel-table table{border-collapse:collapse;margin-top:6px;font-size:13.5px;width:100%}
.msa-rappel-table th,.msa-rappel-table td{border:1px solid #bfdbfe;padding:4px 6px;text-align:center}
.msa-calcul-q{font-size:16px;margin:4px 0 8px;line-height:1.45}
.msa-calcul-aide{font-size:13.5px;color:#475569;margin:0 0 8px}
.msa-calcul-ligne{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.msa-calcul-ligne input{font:inherit;font-size:20px;width:180px;max-width:100%;padding:8px 10px;border:2px solid #cbd5e1;border-radius:10px}
.msa-calcul-ligne input:focus{outline:none;border-color:#0284c7}
.msa-calcul-faux{color:#b91c1c;font-size:14px;margin:8px 0 0}
.msa-calcul .pdl-why{margin-top:10px}

/* --- le mur qui s'allume --- */
.msa-allume{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;max-width:820px}
.msa-allume-grille{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}
.msa-allume-ecran{font:inherit;background:#0a0f1a;border:2px solid #1e293b;border-radius:12px;min-height:96px;color:#334155;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;transition:all .3s}
.msa-allume-ecran span{font-size:30px;filter:grayscale(1) brightness(.4);transition:filter .3s}
.msa-allume-ecran b{font-size:14px}
.msa-allume-ecran.msa-on{background:linear-gradient(180deg,#071a33,#04101f);border-color:#22d3ee;color:#e0f2fe;box-shadow:0 0 18px rgba(34,211,238,.35);animation:msa-allumage .5s ease}
.msa-allume-ecran.msa-on span{filter:none}
.msa-allume-ecran.msa-sel{outline:3px solid #fbbf24}
.msa-ae-cours{grid-column:span 2}
@keyframes msa-allumage{0%{filter:brightness(3)}40%{filter:brightness(.6)}100%{filter:none}}
.msa-allume-info{background:#fff;color:#0f172a;border-radius:12px;padding:10px 14px;font-size:15px;line-height:1.45;max-width:760px;animation:pdl-entree .4s ease}

/* --- le pronostic et le verdict --- */
.msa-prono,.msa-verdict{background:#0b1729;border:1px solid #1e3a5f;border-radius:14px;padding:14px;color:#e2e8f0;width:100%;max-width:820px;margin:0 auto}
.msa-prono-tete,.msa-verdict-tete{display:flex;flex-direction:column;gap:2px;margin-bottom:10px}
.msa-prono-tete b,.msa-verdict-tete b{font-size:18px;color:#67e8f9}
.msa-prono-tete span{font-size:14px;color:#cbd5e1}
.msa-prono-liste,.msa-verdict-liste{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.msa-prono-ligne{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#061224;border-radius:10px;padding:6px 8px}
.msa-prono-nom{flex:1;min-width:150px;font-size:14.5px}
.msa-prono-btns{display:flex;gap:4px;flex-wrap:wrap}
.msa-prono-btn{font:inherit;font-size:13px;border:1px solid #334155;background:#0f223b;color:#cbd5e1;border-radius:8px;padding:6px 9px;cursor:pointer}
.msa-prono-btn.msa-on.msa-s2{background:#166534;border-color:#4ade80;color:#fff}
.msa-prono-btn.msa-on.msa-s1{background:#334155;border-color:#94a3b8;color:#fff}
.msa-prono-btn.msa-on.msa-s0{background:#7f1d1d;border-color:#f87171;color:#fff}
.msa-prono .pdl-cta,.msa-verdict .pdl-cta{display:block;margin:0 auto}
.msa-verdict-ligne{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;background:#061224;border-radius:10px;padding:7px 10px;border-left:4px solid #334155}
.msa-verdict-ligne.msa-bon{border-left-color:#4ade80}.msa-verdict-ligne.msa-faux{border-left-color:#f87171}
.msa-verdict-nom{font-size:14.5px;font-weight:600}
.msa-verdict-fl{font-family:ui-monospace,Menlo,monospace;font-size:13px;color:#fde68a;white-space:nowrap}
.msa-verdict-ligne em{grid-column:1/-1;font-style:normal;font-size:13px;color:#94a3b8}

/* --- la décision --- */
.msa-decision{display:flex;flex-direction:column;gap:12px;align-items:center;width:100%;max-width:880px;margin:0 auto}
.msa-decision>*{max-width:100%}
.msa-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}
.msa-option{font:inherit;text-align:left;background:#fff;color:#0f172a;border:2px solid #e2e8f0;border-radius:14px;padding:14px;cursor:pointer;display:flex;flex-direction:column;gap:6px;
  transition:transform .15s,border-color .15s;animation:pdl-entree .5s ease both}
.msa-option:hover{transform:translateY(-3px);border-color:#0284c7}
.msa-option b{font-size:16px}.msa-option span{font-size:13.5px;color:#475569;line-height:1.4}
.msa-chrono{font-weight:800;color:#fde68a;background:#1e293b;border-radius:99px;padding:6px 16px;font-size:14px}
.msa-chrono-urgent{color:#fecaca;background:#7f1d1d;animation:msa-pulse .8s ease-in-out infinite}
.msa-flash{display:flex;flex-direction:column;align-items:center;gap:4px;background:linear-gradient(135deg,#b91c1c,#7f1d1d);color:#fff;border-radius:14px;padding:12px 18px;
  box-shadow:0 0 30px rgba(239,68,68,.45);animation:msa-alerte .6s ease 3;text-align:center;max-width:720px;width:100%}
.msa-flash span{font-size:12.5px;letter-spacing:.08em;font-weight:800;opacity:.9}
.msa-flash b{font-size:clamp(18px,3vw,24px)}
.msa-flash-petit{padding:8px 14px;animation:none}
@keyframes msa-alerte{50%{transform:scale(1.03);box-shadow:0 0 50px rgba(239,68,68,.75)}}

/* --- la vanne du bénéfice --- */
.msa-vanne{background:#fff;color:#0f172a;border-radius:14px;padding:14px;max-width:560px;width:100%;box-shadow:0 10px 28px rgba(0,0,0,.3)}
.msa-vanne-source{text-align:center;font-size:15px;margin-bottom:10px}
.msa-vanne-cuves{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.msa-cuve{position:relative;height:170px;border:3px solid #cbd5e1;border-top:0;border-radius:0 0 16px 16px;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:8px;text-align:center;gap:2px}
.msa-cuve i{position:absolute;left:0;right:0;bottom:0;transition:height .6s cubic-bezier(.2,.8,.2,1);z-index:0}
.msa-cuve-div i{background:linear-gradient(180deg,#c4b5fd,#7c3aed)}.msa-cuve-res i{background:linear-gradient(180deg,#86efac,#16a34a)}
.msa-cuve b,.msa-cuve span,.msa-cuve em{position:relative;z-index:1;background:rgba(255,255,255,.88);border-radius:6px;padding:0 6px}
.msa-cuve em{font-style:normal;font-size:12.5px}
.msa-vanne-crans{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.msa-cran{font:inherit;font-weight:700;border:2px solid #cbd5e1;background:#fff;color:#0f172a;border-radius:99px;padding:8px 16px;cursor:pointer}
.msa-cran.msa-on{border-color:#0284c7;background:#e0f2fe}

/* --- le fil des dépêches --- */
.msa-fil{display:flex;flex-direction:column;gap:12px;align-items:center;width:100%;max-width:820px}
.msa-une{background:#030712;color:#fde68a;border:2px solid #fbbf24;border-radius:12px;padding:12px 16px;width:100%;animation:msa-tombe .5s cubic-bezier(.2,.8,.2,1)}
.msa-une-flash{font-size:12px;font-weight:800;letter-spacing:.08em;color:#f87171}
.msa-une p{margin:4px 0 0;font-size:18px;font-weight:700;line-height:1.35}
@keyframes msa-tombe{from{transform:translateY(-30px);opacity:0}to{transform:none;opacity:1}}
.msa-tiroirs-btns,.msa-tiroirs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
.msa-tiroir-btn{font:inherit;text-align:left;background:#fff;color:#0f172a;border:2px solid #e2e8f0;border-radius:12px;padding:10px;cursor:pointer;display:flex;flex-direction:column;gap:2px}
.msa-tiroir-btn span{font-size:12.5px;color:#64748b}
.msa-tiroir{background:#fff;color:#0f172a;border-radius:12px;padding:10px;font-size:13.5px;min-width:0}
.msa-tiroir ul{margin:6px 0 0;padding-left:18px}
.msa-tiroir li{margin:3px 0}
.msa-tiroir-fait{border-top:5px solid #0284c7}.msa-tiroir-prev{border-top:5px solid #a855f7}.msa-tiroir-rum{border-top:5px solid #f97316}
.msa-bon{border-color:#16a34a !important;background:#f0fdf4 !important}
.msa-faux{border-color:#dc2626 !important;background:#fef2f2 !important}
.msa-eteint{opacity:.45}
.msa-verdict-ligne.msa-bon,.msa-verdict-ligne.msa-faux{background:#061224 !important;border-color:transparent !important}
.msa-verdict-ligne.msa-bon{border-left-color:#4ade80 !important}.msa-verdict-ligne.msa-faux{border-left-color:#f87171 !important}

/* --- l'hémicycle --- */
.msa-hemi{background:#fff;color:#0f172a;border-radius:14px;padding:12px;max-width:640px;width:100%;box-shadow:0 10px 28px rgba(0,0,0,.3)}
.msa-hemi-svg{width:100%;max-width:440px;display:block;margin:0 auto}
.msa-siege{animation:msa-siege .4s ease both;transition:opacity .4s;transform-box:fill-box;transform-origin:center}
.msa-siege-inc{opacity:.35}.msa-siege-abst{opacity:.25}
@keyframes msa-siege{from{transform:scale(0);opacity:0}}
.msa-hemi-legende{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:13.5px}
.msa-hemi-legende li{display:grid;grid-template-columns:14px minmax(0,1fr) auto auto;gap:6px;align-items:center}
.msa-hemi-legende i{width:12px;height:12px;border-radius:50%}
.msa-hemi-legende em{font-style:normal;color:#64748b;font-size:12.5px}
.msa-hemi-res{margin-top:10px;text-align:center;padding:8px;border-radius:10px;font-size:14px}
.msa-adoptee{background:#f5f3ff;color:#5b21b6}.msa-rejetee{background:#fff7ed;color:#c2410c}
.msa-ag-intro{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%}

/* --- le standard --- */
.msa-standard{display:flex;flex-direction:column;gap:12px;align-items:center;width:100%;max-width:820px}
.msa-tableau-appels{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.msa-ligne-tel{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;font-size:20px;background:#1e293b;opacity:.5}
.msa-ligne-tel.msa-fait{background:#166534;opacity:1}
.msa-ligne-tel.msa-sonne{background:#b45309;opacity:1;animation:msa-sonne .5s ease-in-out infinite}
@keyframes msa-sonne{25%{transform:rotate(-12deg)}75%{transform:rotate(12deg)}}
.msa-appel-entrant{font:inherit;display:flex;flex-direction:column;align-items:center;gap:4px;background:#fff;color:#0f172a;border:0;border-radius:18px;padding:18px 26px;cursor:pointer;box-shadow:0 0 0 6px rgba(34,197,94,.3);animation:msa-alerte 1.2s ease infinite}
.msa-appel-ico{font-size:36px;animation:msa-sonne .5s ease-in-out infinite}
.msa-appel-entrant em{font-style:normal;color:#16a34a;font-weight:700;font-size:13px}
.msa-appel{display:flex;flex-direction:column;gap:10px;align-items:center;width:100%}
.msa-cartes-attentes{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px;width:100%}
.msa-carte-attente{font:inherit;font-size:14px;text-align:left;background:#fff;color:#0f172a;border:2px solid #e2e8f0;border-radius:12px;padding:10px;cursor:pointer;line-height:1.35}
.msa-carte-attente:hover:not(:disabled){border-color:#0284c7}
.msa-carte-attente.msa-pris{border-style:dashed;color:#64748b}

/* --- le sens des deux valeurs --- */
.msa-sens{display:flex;flex-direction:column;gap:12px;align-items:center;width:100%;max-width:760px}
.msa-sens-btns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
.msa-sens-btn{font:inherit;font-weight:700;background:#fff;color:#0f172a;border:2px solid #e2e8f0;border-radius:12px;padding:12px 8px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px}
.msa-sens-btn span{font-size:26px}

/* --- la table de mixage --- */
.msa-mix{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:12px;align-items:start}
.msa-mix>.pdl-cta{grid-column:1/-1;justify-self:center}
.msa-mix-table,.msa-mix-proj{background:#0b1729;border:1px solid #1e3a5f;border-radius:14px;padding:12px;color:#e2e8f0;min-width:0}
.msa-mix-budget{text-align:center;font-weight:800;color:#fca5a5;margin-bottom:8px}
.msa-mix-budget.msa-ok{color:#4ade80}
.msa-faders{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.msa-fader{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;min-width:0}
.msa-fader button{width:36px;height:30px;border-radius:8px;border:1px solid #334155;background:#0f223b;color:#fff;font-size:16px;cursor:pointer}
.msa-fader-rail{width:22px;height:130px;background:#061224;border:1px solid #334155;border-radius:99px;position:relative;overflow:hidden}
.msa-fader-rail i{position:absolute;left:0;right:0;bottom:0;background:var(--c);transition:height .3s;box-shadow:0 0 12px var(--c)}
.msa-fader b{font-family:ui-monospace,Menlo,monospace;font-size:14px}
.msa-fader span{font-size:11.5px;color:#cbd5e1;line-height:1.2;overflow-wrap:anywhere}
.msa-mix-svg{width:100%;height:auto;display:block;margin-top:6px}
.msa-mix-an{fill:#64748b;font-size:10px;text-anchor:middle}
.msa-mix-ref{fill:none;stroke-width:2;stroke-dasharray:5 4;opacity:.75}
.msa-mix-moi{fill:none;stroke:#fde68a;stroke-width:4}
.msa-mix-legende{list-style:none;padding:0;margin:6px 0;font-size:12.5px;display:flex;flex-direction:column;gap:3px}
.msa-mix-legende li{display:flex;gap:6px;align-items:center}
.msa-mix-legende i{width:16px;height:4px;border-radius:2px;flex-shrink:0}
.msa-mix-moi-l{background:#fde68a;height:5px !important}
.msa-mix-voy{display:flex;flex-wrap:wrap;gap:6px;font-size:13px;font-weight:700}
.msa-mix-voy span{background:#061224;border-radius:99px;padding:2px 8px}

/* --- assembler la réponse --- */
.msa-assemble{background:#fff;color:#0f172a;border-radius:14px;padding:14px 16px;max-width:760px;width:100%;box-shadow:0 10px 28px rgba(0,0,0,.3)}
.msa-assemble-q{font-weight:800;font-size:16px}
.msa-assemble-rep{background:#f8fafc;border:1px dashed #94a3b8;border-radius:10px;padding:10px;min-height:48px;font-size:15px;line-height:1.5}
.msa-assemble-choix{display:flex;flex-direction:column;gap:6px}
.msa-morceau{font:inherit;font-size:14.5px;text-align:left;background:#fff;border:2px solid #e2e8f0;border-radius:10px;padding:9px 10px;cursor:pointer;color:#0f172a}

/* --- la salle : l'agenda --- */
.msa-agenda{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:12px}
.msa-prochain{font:inherit;display:flex;flex-direction:column;align-items:center;gap:3px;background:linear-gradient(135deg,#0e7490,#1e3a8a);color:#fff;border:0;border-radius:16px;padding:14px 22px;cursor:pointer;
  box-shadow:0 0 0 1px rgba(103,232,249,.4),0 12px 30px rgba(14,116,144,.45);max-width:560px;width:100%;text-align:center}
.msa-prochain b{font-size:20px}.msa-prochain em{font-style:normal;font-size:13.5px;opacity:.85}
.msa-prochain i{font-style:normal;font-weight:800;color:#fde68a;margin-top:4px}
.msa-prochain.msa-fini{cursor:default}
.msa-revoir-btn{font:inherit;font-size:13px;background:none;border:0;color:#7dd3fc;cursor:pointer;text-decoration:underline}
.msa-revoir{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px;width:100%;max-width:820px}
.msa-revoir button{font:inherit;font-size:13px;background:#0b1729;color:#e2e8f0;border:1px solid #1e3a5f;border-radius:10px;padding:8px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px}
.msa-revoir button:disabled{opacity:.4;cursor:not-allowed}
.msa-revoir em{font-style:normal;color:#fde68a}

/* --- les documents --- */
.msa-doc{font-size:15px;line-height:1.5;color:#0f172a}
.msa-doc-tete{border-bottom:2px solid #0f172a;margin-bottom:12px;padding-bottom:8px}
.msa-doc-logo{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;align-items:baseline}
.msa-doc-logo b{font-size:18px;letter-spacing:.06em;color:#0284c7}
.msa-doc-logo span{font-size:11.5px;color:#64748b}
.msa-doc-tete h3{font-family:Fraunces,Georgia,serif;font-size:21px;margin:8px 0 0}
.msa-doc-sous{margin:2px 0 0;color:#475569;font-size:13.5px}
.msa-doc-table{border-collapse:collapse;width:100%;margin:8px 0;font-size:14px}
.msa-doc-table td{border:1px solid #cbd5e1;padding:5px 8px}
.msa-doc-note{background:#f1f5f9;border-left:4px solid #0284c7;padding:8px 10px;font-size:13.5px;border-radius:0 8px 8px 0}
.msa-tampon{display:inline-block;margin-top:10px;border:3px solid #dc2626;color:#dc2626;font-weight:900;letter-spacing:.12em;padding:4px 12px;transform:rotate(-8deg);border-radius:6px;animation:msa-tampon .4s cubic-bezier(.2,.8,.2,1)}
@keyframes msa-tampon{from{transform:rotate(-8deg) scale(2.4);opacity:0}}
.msa-lettre p{font-family:Fraunces,Georgia,serif}
.msa-signature{text-align:right;font-style:italic}
.msa-journal-tete{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;border-bottom:3px double #0f172a;padding-bottom:6px;margin-bottom:8px}
.msa-journal-tete b{font-family:Fraunces,Georgia,serif;font-size:24px}
.msa-journal-tete span{font-size:12px;color:#64748b}
.msa-journal h3{font-family:Fraunces,Georgia,serif;font-size:22px;margin:6px 0}
.msa-journal img{width:100%;border-radius:8px;margin:6px 0}
.msa-badge{font:inherit;width:250px;max-width:100%;height:330px;perspective:900px;background:none;border:0;cursor:pointer;position:relative;padding:0}
.msa-badge-face{position:absolute;inset:0;background:#fff;border-radius:14px;box-shadow:0 12px 30px rgba(0,0,0,.35);display:flex;flex-direction:column;align-items:center;gap:5px;padding:0 0 12px;overflow:hidden;
  backface-visibility:hidden;transition:transform .6s;color:#0f172a}
.msa-badge-verso{transform:rotateY(180deg);justify-content:center;padding:16px}
.msa-badge.msa-dos .msa-badge-face{transform:rotateY(180deg)}
.msa-badge.msa-dos .msa-badge-verso{transform:rotateY(0)}
.msa-badge-bande{width:100%;background:linear-gradient(135deg,#0e7490,#1e3a8a);color:#fff;font-weight:800;font-size:12px;letter-spacing:.06em;padding:8px}
.msa-badge img{width:120px;height:140px;object-fit:cover;border-radius:10px;margin-top:6px}
.msa-badge b{font-size:20px}.msa-badge span{font-size:13px;color:#475569;padding:0 10px;text-align:center}
.msa-badge i{font-size:11.5px;color:#64748b;font-style:normal}
.msa-codebarre{font-size:28px;letter-spacing:-2px;margin:8px 0}

/* --- la fin --- */
.msa-issue{font-size:16px;font-weight:700;background:#ecfeff;border-radius:12px;padding:10px 12px;color:#0f172a}
.msa-fin-mur{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:8px 0;font-weight:800}
.msa-fin-mur span{background:#0b1729;border-radius:99px;padding:3px 10px}
.msa-fin-mur span:first-child{color:#fde68a}

@media (max-width:760px){
  .msa-mur-grille{grid-template-columns:1fr}
  .msa-options,.msa-tiroirs-btns,.msa-tiroirs,.msa-sens-btns{grid-template-columns:1fr}
  .msa-mix{grid-template-columns:1fr}
  .msa-allume-grille{grid-template-columns:repeat(2,minmax(0,1fr))}
  .msa-voyant>b{font-size:16px}
  .msa-prono-nom{min-width:100%}
  .msa-verdict-ligne{grid-template-columns:1fr}
  .msa-verdict-fl{white-space:normal}
  .msa-hemi-legende li{grid-template-columns:14px minmax(0,1fr) auto}
  .msa-hemi-legende em{grid-column:2/-1}
}
/* ==== msa : fin des styles ==== */
/* ==== ms9 : debut des styles ==== « Koup lo gato ! » (SDGN 1re, ch. 9) */
.ms9 { --ms9-encre: #1e293b; --ms9-papier: #fffaf0; --ms9-or: #ca8a04; }
.ms9-panneau { max-width: 920px; margin: 0 auto; padding: 16px 12px 28px; }
.ms9-ecran { background: rgba(255, 250, 240, .96); color: var(--ms9-encre); border-radius: 18px; padding: 18px 16px; box-shadow: 0 18px 50px rgba(0,0,0,.35); animation: ms9-monte .45s ease both; }
@keyframes ms9-monte { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.ms9-ecran .pdl-bulle { margin-bottom: 8px; }
.ms9-accueil h1 span { display: block; }

/* La leçon, sous plusieurs habits */
.ms9-lecon { border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; background: #fff; border: 2px solid #e2e8f0; position: relative; }
.ms9-lecon h3 { margin: 6px 0 8px; font-size: 1.2rem; }
.ms9-lecon ul { margin: 0; padding-left: 20px; }
.ms9-lecon li { margin: 6px 0; line-height: 1.45; animation: ms9-monte .4s ease both; }
.ms9-lecon-sur { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .85rem; color: #64748b; font-weight: 600; flex-wrap: wrap; }
.ms9-lecon-par { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .85rem; }
.ms9-lecon-par img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.ms9-lecon-par i { color: #64748b; }
.ms9-lecon-fiche { background: #fef9c3; border-color: #facc15; transform: rotate(-.4deg); box-shadow: 4px 6px 0 rgba(0,0,0,.08); }
.ms9-lecon-fiche::before { content: "📌"; position: absolute; top: -14px; left: 50%; font-size: 1.5rem; }
.ms9-lecon-carnet { background: repeating-linear-gradient(#fff, #fff 27px, #dbeafe 28px); border-left: 6px solid #ef4444; }
.ms9-lecon-mot { background: #fff7ed; border-color: #fdba74; font-family: Georgia, serif; }
.ms9-lecon-statuts { background: linear-gradient(#fdf6e3, #f5e6c8); border-color: #b45309; font-family: Georgia, serif; }
.ms9-lecon-tableau { background: #f8fafc; border: 8px solid #94a3b8; border-radius: 6px; }
.ms9-lecon-classeur { background: #eef2ff; border-color: #818cf8; border-left-width: 14px; }
.ms9-lecon-plus { margin-top: 8px; background: none; border: 2px dashed #b45309; color: #92400e; border-radius: 10px; padding: 8px 12px; font-weight: 700; cursor: pointer; }

/* L'aide */
.ms9-aide { border: 2px solid #fcd34d; border-radius: 12px; background: #fffbeb; margin: 0 0 14px; }
.ms9-aide-tete { width: 100%; display: flex; justify-content: space-between; gap: 8px; background: none; border: 0; padding: 10px 14px; font-weight: 700; cursor: pointer; color: #92400e; font-size: 1rem; }
.ms9-aide-tete i { font-weight: 400; font-size: .85rem; }
.ms9-aide-corps { padding: 0 14px 12px; }
.ms9-aide-o { display: flex; flex-wrap: wrap; gap: 8px; }
.ms9-aide-b { border: 2px solid #e2e8f0; background: #fff; border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.ms9-aide-bon { border-color: #16a34a; background: #dcfce7; }
.ms9-aide-faux { border-color: #dc2626; background: #fee2e2; }
.ms9-aide-rep { margin-top: 8px; color: #334155; }

/* Les calculs */
.ms9-rappel { background: #ecfeff; border: 2px solid #67e8f9; border-radius: 12px; padding: 10px 12px; margin: 8px 0; line-height: 1.45; }
.ms9-calcul-q { font-weight: 700; font-size: 1.05rem; }
.ms9-formule-b { background: #fef3c7; border: 2px solid #f59e0b; border-radius: 10px; padding: 6px 10px; cursor: pointer; font-weight: 600; }
.ms9-formule { background: #fef3c7; border-radius: 10px; padding: 8px 12px; font-weight: 700; }
.ms9-calcul-saisie { display: flex; gap: 8px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.ms9-calcul-saisie input { font-size: 1.15rem; padding: 10px 12px; border: 2px solid #94a3b8; border-radius: 10px; width: 180px; max-width: 60vw; }

/* 1. Le voyage */
.ms9-voyage-scene { position: relative; height: 150px; border-radius: 12px; overflow: hidden; margin: 8px 0; }
.ms9-voyage-scene img { width: 100%; height: 100%; object-fit: cover; }
.ms9-feuille-vole { position: absolute; top: 40%; left: -10%; font-size: 3rem; animation: ms9-vole 1.6s cubic-bezier(.3,.6,.3,1) forwards; filter: drop-shadow(0 6px 8px rgba(0,0,0,.4)); }
@keyframes ms9-vole { 0% { left: -10%; transform: rotate(-20deg) translateY(-20px); } 60% { transform: rotate(12deg) translateY(10px); } 100% { left: 45%; transform: rotate(0) translateY(0); } }
.ms9-ticket { background: #fff; border: 1px dashed #94a3b8; border-radius: 8px; padding: 8px 12px; font-family: "Courier New", monospace; }
.ms9-ticket-l { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px dotted #cbd5e1; }
.ms9-ticket-vend { font-weight: 700; color: #0f766e; }
.ms9-ticket-l b { white-space: nowrap; }
.ms9-puces { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.ms9-puce { font-size: 1.1rem; font-weight: 800; padding: 10px 18px; border-radius: 999px; border: 3px solid #cbd5e1; background: #fff; cursor: pointer; transition: transform .15s; }
.ms9-puce:hover:not(:disabled) { transform: translateY(-2px); }
.ms9-puce-bon { border-color: #16a34a; background: #dcfce7; }
.ms9-puce-faux { border-color: #dc2626; background: #fee2e2; }
.ms9-barre { display: flex; height: 40px; border-radius: 10px; overflow: hidden; margin: 10px 0; font-size: .82rem; font-weight: 700; color: #fff; }
.ms9-barre > div { display: flex; align-items: center; justify-content: center; padding: 0 6px; white-space: nowrap; overflow: hidden; animation: ms9-barre .7s ease both; }
.ms9-barre-ci { background: #64748b; }
.ms9-barre-va { background: linear-gradient(90deg, #16a34a, #22c55e); }
@keyframes ms9-barre { from { flex-basis: 0; width: 0 !important; } }
.ms9-chaine { display: flex; gap: 6px; align-items: stretch; flex-wrap: wrap; margin-bottom: 10px; }
.ms9-chaine-e { flex: 1 1 140px; background: #fff; border: 2px solid #cbd5e1; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; align-items: center; text-align: center; animation: ms9-monte .4s ease both; }
.ms9-chaine-e span { font-size: 1.8rem; }
.ms9-chaine-e i { color: #64748b; font-size: .85rem; }
.ms9-chaine-client { border-color: #f59e0b; }

/* 2. Le massicot */
.ms9-massicot-zone { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; align-items: start; }
.ms9-machine { position: relative; height: 340px; background: linear-gradient(#475569, #1e293b); border-radius: 14px; padding: 46px 18px 40px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.ms9-lame { position: absolute; top: 8px; left: 10px; right: 10px; height: 26px; background: linear-gradient(#e2e8f0, #94a3b8); border-radius: 4px 4px 10px 10px; box-shadow: 0 4px 0 #334155; z-index: 2; }
.ms9-lame-tombe { animation: ms9-lame .5s ease-in; }
@keyframes ms9-lame { 0% { top: 8px; } 45% { top: 60%; } 100% { top: 8px; } }
.ms9-lame-bloque { animation: ms9-bloque .5s; background: linear-gradient(#fecaca, #ef4444); }
@keyframes ms9-bloque { 0%,100% { transform: none; } 20% { transform: translateY(14px) rotate(-1deg); } 40% { transform: translateY(10px) rotate(1deg); } 60% { transform: translateY(14px) rotate(-1deg); } }
.ms9-bloc { background: repeating-linear-gradient(#ffffff, #ffffff 5px, #e2e8f0 6px); border-radius: 4px; box-shadow: 0 8px 16px rgba(0,0,0,.4); transition: height .6s ease; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px; }
.ms9-bloc span { background: rgba(255,255,255,.9); border-radius: 6px; padding: 4px 8px; font-weight: 800; color: #0f172a; font-size: .9rem; }
.ms9-corbeille { position: absolute; bottom: 8px; left: 10px; right: 10px; color: #fde68a; font-weight: 700; font-size: .85rem; text-align: center; }
.ms9-releve { background: #fff; border-radius: 12px; padding: 10px; border: 1px solid #e2e8f0; }
.ms9-releve-t { font-weight: 800; margin-bottom: 6px; }
.ms9-bande { width: 100%; display: flex; justify-content: space-between; gap: 8px; text-align: left; background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 8px; padding: 8px 10px; margin: 5px 0; cursor: pointer; font-size: .95rem; transition: transform .15s, opacity .3s; }
.ms9-bande:hover:not(:disabled) { transform: translateX(4px); border-color: #0ea5e9; }
.ms9-bande-coupee { text-decoration: line-through; opacity: .45; background: #e2e8f0; animation: ms9-tombe .5s ease; }
@keyframes ms9-tombe { 0% { transform: none; } 50% { transform: translateY(8px) rotate(2deg); } 100% { transform: none; } }
.ms9-bande-bloquee { border-color: #f59e0b; background: #fffbeb; }
.ms9-massicot-msg { border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-weight: 600; }
.ms9-ok { background: #dcfce7; color: #14532d; }
.ms9-ko { background: #fee2e2; color: #7f1d1d; }

/* 3. Le plan de table */
.ms9-cartons { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 14px; }
.ms9-carton { transform: rotate(var(--r)); background: #fff; border: 2px solid #fcd34d; border-radius: 6px; padding: 8px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; text-align: left; box-shadow: 0 4px 10px rgba(0,0,0,.12); animation: ms9-monte .4s ease both; max-width: 220px; }
.ms9-carton i { font-size: .75rem; color: #b45309; font-style: normal; font-weight: 700; }
.ms9-carton-sel { border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37,99,235,.3); transform: rotate(0) scale(1.05); }
.ms9-chaises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ms9-chaise { background: #fff; border: 3px solid var(--c, #94a3b8); border-radius: 14px; padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; text-align: center; min-height: 110px; transition: transform .15s; }
.ms9-cible .ms9-chaise { animation: ms9-pulse 1.2s infinite; }
@keyframes ms9-pulse { 50% { transform: scale(1.03); } }
.ms9-chaise-ico { font-size: 1.8rem; }
.ms9-chaise em { display: block; background: #f1f5f9; border-radius: 6px; padding: 3px 6px; font-size: .85rem; font-style: normal; animation: ms9-monte .3s ease both; }
.ms9-porte { --c: #78716c; background: #fafaf9; }

/* 4. Le débat */
.ms9-parts-b { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; }
.ms9-part-b { border: 3px solid var(--c); background: #fff; border-radius: 12px; padding: 10px; cursor: pointer; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.ms9-part-b span { font-size: 1.4rem; }
.ms9-part-b:disabled, .ms9-puce:disabled { color: inherit; opacity: .55; cursor: default; }
.ms9-part-b.ms9-puce-bon, .ms9-puce.ms9-puce-bon { border-color: #16a34a; background: #dcfce7; opacity: 1; }
.ms9-part-b.ms9-puce-faux, .ms9-puce.ms9-puce-faux { border-color: #dc2626; background: #fee2e2; opacity: 1; }

/* Le gâteau */
.ms9-gato { position: relative; width: 100%; max-width: 250px; margin: 0 auto; filter: drop-shadow(0 14px 18px rgba(0,0,0,.35)); }
.ms9-gato svg { width: 100%; display: block; overflow: visible; }
.ms9-gato-socle { fill: #92400e; }
.ms9-gato-creme { fill: none; stroke: #fff7ed; stroke-width: 6; stroke-dasharray: 3 7; }
.ms9-gato-part path { stroke: #fff7ed; stroke-width: 2.5; transition: d .35s ease; }
.ms9-gato-verrou path { opacity: .75; }
.ms9-gato-part text { fill: #fff; font-weight: 800; font-size: 15px; paint-order: stroke; stroke: rgba(0,0,0,.35); stroke-width: 3px; }
.ms9-gato-va { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); background: #0f172a; color: #fde68a; border-radius: 999px; padding: 3px 10px; font-weight: 800; font-size: .85rem; white-space: nowrap; }
.ms9-gato-petit { max-width: 120px; }

/* L'assemblée */
.ms9-salle { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; margin: 0 auto 8px; }
.ms9-plateau { position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #b45309, #78350f); box-shadow: inset 0 0 0 10px #92400e, 0 20px 40px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; padding: 6%; }
.ms9-plateau .ms9-gato { max-width: 82%; }
.ms9-siege { position: absolute; transform: translate(-50%, -50%); width: 70px; display: flex; flex-direction: column; align-items: center; background: none; border: 0; cursor: pointer; padding: 0; }
.ms9-siege img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--c); background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.3); transition: transform .2s; }
.ms9-siege:hover img { transform: scale(1.08); }
.ms9-siege-nom { font-size: .72rem; font-weight: 800; background: rgba(15,23,42,.85); color: #fff; border-radius: 6px; padding: 1px 5px; margin-top: -6px; white-space: nowrap; }
.ms9-siege-hum { position: absolute; top: -6px; right: 2px; font-size: 1.2rem; animation: ms9-hop .4s ease; }
@keyframes ms9-hop { 50% { transform: translateY(-6px) scale(1.2); } }
.ms9-siege-hors img { filter: grayscale(.5); border-style: dashed; }
.ms9-siege-parle img { box-shadow: 0 0 0 5px #facc15; }
.ms9-main { position: absolute; top: -26px; font-size: 1.6rem; animation: ms9-leve .45s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes ms9-leve { from { transform: translateY(20px) scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.ms9-main-baissee .ms9-main { font-size: 1.1rem; top: -18px; color: #dc2626; }
.ms9-main-baissee img { filter: grayscale(.8); }
.ms9-compteur { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(15,23,42,.92); color: #fff; padding: 10px 16px; border-radius: 14px; font-size: 1.1rem; z-index: 3; text-align: center; }
.ms9-compteur b { font-size: 1.8rem; color: #fde68a; }
.ms9-adopte { background: #15803d; animation: ms9-pulse 1s 3; }
.ms9-rejete { background: #b91c1c; }
.ms9-parole { margin: 4px 0 8px; }
.ms9-fil { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 10px; }
.ms9-fil-l { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 10px; padding: 5px 8px; font-size: .88rem; opacity: .75; }
.ms9-fil-l img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.ms9-fil-neuf { opacity: 1; box-shadow: 0 0 0 2px #facc15; animation: ms9-monte .35s ease; }
.ms9-pupitre { background: #fff; border-radius: 14px; padding: 10px 12px; border: 1px solid #e2e8f0; }
.ms9-pupitre-t { margin-bottom: 6px; }
.ms9-reglage { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) 92px; gap: 8px; align-items: center; padding: 6px 0 6px 8px; border-left: 6px solid var(--c); margin: 4px 0; }
.ms9-reglage-t { display: flex; flex-direction: column; font-size: .9rem; }
.ms9-reglage-t span { font-size: 1.1rem; }
.ms9-reglage-t i { color: #64748b; font-size: .78rem; }
.ms9-reglage-c { display: flex; align-items: center; gap: 6px; }
.ms9-reglage-c input[type=range] { flex: 1; min-width: 0; accent-color: var(--c); }
.ms9-reglage-info { color: #64748b; font-size: .85rem; }
.ms9-reglage-v { text-align: right; display: flex; flex-direction: column; }
.ms9-reglage-v b { font-size: 1.15rem; }
.ms9-reglage-v i { color: #64748b; font-size: .78rem; }
.ms9-reglage-fixe { opacity: .85; }
.ms9-pm { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--c); background: #fff; font-size: 1.2rem; font-weight: 800; cursor: pointer; flex: none; }
.ms9-pm:disabled { opacity: .35; cursor: default; }
.ms9-pupitre-aide { font-size: .82rem; color: #64748b; margin: 6px 0 0; }
.ms9-voter { display: block; margin: 12px auto 0; font-size: 1.15rem; }
.ms9-non { margin: 8px 0; padding-left: 18px; }

/* 5. Le journal */
.ms9-journal { background: #fff; border-radius: 14px; padding: 12px; }
.ms9-journal-t { font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; }
.ms9-journal-l { display: grid; grid-template-columns: 34px 80px 1fr; gap: 8px; align-items: start; padding: 8px 0; border-bottom: 1px dashed #cbd5e1; animation: ms9-monte .4s ease both; }
.ms9-journal-l span { font-size: 1.5rem; }
.ms9-journal-l p { margin: 0; }

/* L'ordre du jour */
.ms9-odj h3 { margin-top: 0; }
.ms9-odj-l { width: 100%; display: grid; grid-template-columns: 40px 1fr 70px; gap: 8px; align-items: center; text-align: left; background: #fff; border: 2px solid #e2e8f0; border-radius: 12px; padding: 8px 10px; margin: 6px 0; cursor: pointer; }
.ms9-odj-l:disabled { opacity: .5; cursor: default; }
.ms9-odj-ico { font-size: 1.5rem; }
.ms9-odj-t { display: flex; flex-direction: column; }
.ms9-odj-t i { color: #64748b; font-size: .82rem; }
.ms9-odj-et { text-align: right; }
.ms9-odj-fait { border-color: #86efac; }
.ms9-odj-ici { border-color: #facc15; box-shadow: 0 0 0 3px rgba(250,204,21,.3); }

/* L'équipe, l'arrivée */
.ms9-narration { max-width: 640px; }
.ms9-equipe { background: rgba(255,250,240,.96); border-radius: 18px; padding: 14px; max-width: 900px; margin: 0 auto; color: var(--ms9-encre); }
.ms9-equipe-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 8px 0 14px; }
.ms9-equipe-p { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border-radius: 12px; padding: 8px; border-top: 4px solid var(--c); animation: ms9-monte .4s ease both; }
.ms9-equipe-p img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.ms9-equipe-p i { font-size: .78rem; color: #64748b; }
.ms9-hors { opacity: .8; border-top-style: dashed; }

/* Les documents */
.ms9-doc { font-size: .95rem; }
.ms9-doc-tete { display: flex; flex-direction: column; border-bottom: 3px double #1e293b; padding-bottom: 6px; margin-bottom: 10px; }
.ms9-doc-tete b { letter-spacing: .08em; }
.ms9-doc-tete span { color: #64748b; font-size: .85rem; }
.ms9-doc-tete em { font-weight: 800; font-style: normal; font-size: 1.1rem; margin-top: 6px; }
.ms9-doc-banque { border-bottom-color: #334155; }
.ms9-doc-tab { width: 100%; border-collapse: collapse; margin: 8px 0; }
.ms9-doc-tab td { padding: 5px 6px; border-bottom: 1px solid #e2e8f0; }
.ms9-doc-tab td:not(:first-child) { text-align: right; white-space: nowrap; }
.ms9-doc-gris td { color: #64748b; }
.ms9-doc-total td { font-weight: 800; border-top: 2px solid #1e293b; }
.ms9-doc-coupe td { color: #64748b; text-decoration: line-through; }
.ms9-doc-garde td { color: #0f172a; }
.ms9-doc-liste li { border-left: 5px solid var(--c); padding-left: 8px; margin: 6px 0; list-style: none; }
.ms9-doc-liste { padding-left: 0; }
.ms9-signe { text-align: right; font-style: italic; margin-top: 14px; }
.ms9-article img { width: 100%; border-radius: 8px; margin: 6px 0; }
.ms9-journal-nom { font-family: Georgia, serif; font-weight: 900; letter-spacing: .1em; text-align: center; border-bottom: 3px double #0f172a; padding-bottom: 4px; }
.ms9-criteres { display: grid; gap: 6px; margin: 10px 0; }
.ms9-critere { border-radius: 10px; padding: 8px 10px; font-weight: 600; }

/* Téléphone */
@media (max-width: 640px) {
  .ms9-panneau { padding: 10px 6px 24px; }
  .ms9-ecran { padding: 14px 10px; }
  .ms9-massicot-zone { grid-template-columns: 1fr; }
  .ms9-machine { height: 220px; }
  .ms9-chaises { grid-template-columns: repeat(2, 1fr); }
  .ms9-siege { width: 52px; }
  .ms9-siege img { width: 40px; height: 40px; border-width: 2px; }
  .ms9-siege-nom { font-size: .62rem; }
  .ms9-siege-hum { font-size: .95rem; top: -8px; right: -2px; }
  .ms9-main { font-size: 1.2rem; top: -20px; }
  .ms9-reglage { grid-template-columns: 1fr 74px; }
  .ms9-reglage-c { grid-column: 1 / -1; grid-row: 2; }
  .ms9-journal-l { grid-template-columns: 30px 1fr; }
  .ms9-journal-l p { grid-column: 1 / -1; }
  .ms9-gato-part text { font-size: 18px; }
}
/* ==== ms9 : fin des styles ==== */
/* ==== mcb : debut des styles ====
   « Zéranyom — l'archipel des parfums ». Préfixe mcb-. La carte est un SVG
   (mer en dégradé, vagues qui bougent, drapeaux qui se plantent, fils
   lumineux, navires qui suivent leur route) ; tout le reste est en CSS. */
.mcb{--mcb-rose:#db2777;--mcb-bois:#7c4a1e;--mcb-papier:#fdf6e3}

/* ---------------- la carte ---------------- */
.mcb-carte{position:relative;width:100%;max-width:900px;margin:0 auto;border-radius:16px;overflow:hidden;
  border:6px solid #8b5a2b;box-shadow:0 0 0 2px #d6a86b inset,0 14px 34px rgba(0,0,0,.45);background:#0b3f63}
.mcb-carte svg{display:block;width:100%;height:auto}
.mcb-carte-petite{max-width:520px}
.mcb-terre{fill:url(#mcbTerre);stroke:#5b4a2a;stroke-width:1.2}
.mcb-vague{animation:mcb-vague 4.2s ease-in-out infinite}
@keyframes mcb-vague{0%,100%{transform:translateX(0);opacity:.15}50%{transform:translateX(14px);opacity:.6}}
.mcb-medaillon rect{fill:rgba(11,63,99,.85);stroke:#d6a86b;stroke-width:2}
.mcb-medaillon-t{fill:#fde68a;font:700 13px Outfit,system-ui,sans-serif}
.mcb-rose circle{fill:rgba(253,246,227,.18);stroke:#d6a86b}
.mcb-rose path{fill:#fde68a}
.mcb-rose text{fill:#fde68a;font:800 12px Outfit,system-ui,sans-serif}
.mcb-terr-halo{fill:rgba(255,255,255,0);stroke:rgba(255,255,255,0);stroke-width:2;transition:all .3s}
.mcb-terr-pt{fill:#fff;stroke:#0b3f63;stroke-width:2}
.mcb-terr-nom{fill:#fff;font:700 15px Outfit,system-ui,sans-serif;paint-order:stroke;stroke:#0b3f63;stroke-width:4px;stroke-linejoin:round}
.mcb-terr-cible .mcb-terr-halo{stroke:#fde68a;fill:rgba(253,230,138,.18);animation:mcb-pulse 1.6s ease-in-out infinite}
@keyframes mcb-pulse{50%{stroke-width:6;fill:rgba(253,230,138,.35)}}
.mcb-terr-clic{cursor:pointer}
.mcb-terr-clic:hover .mcb-terr-halo,.mcb-terr-clic:focus .mcb-terr-halo{stroke:#fff;fill:rgba(255,255,255,.2)}
.mcb-terr-clic:focus{outline:none}
.mcb-douane-anneau{fill:none;stroke:#f97316;stroke-width:3;stroke-dasharray:6 5;animation:mcb-tourne 6s linear infinite;transform-box:fill-box;transform-origin:center}
.mcb-terr-faux .mcb-terr-halo{stroke:#ef4444;fill:rgba(239,68,68,.3)}
@keyframes mcb-tourne{to{transform:rotate(360deg)}}
.mcb-drapeau line{stroke:#3f2a14;stroke-width:3}
.mcb-drapeau-ico{font-size:16px}
.mcb-drapeau{transform-box:fill-box;transform-origin:bottom}
.mcb-neuf{animation:mcb-plante 1.1s cubic-bezier(.3,1.6,.5,1) both}
@keyframes mcb-plante{0%{transform:translateY(-60px) scale(.3);opacity:0}60%{opacity:1}100%{transform:none}}
.mcb-chantier{animation:mcb-clig 1.8s ease-in-out infinite}
@keyframes mcb-clig{50%{opacity:.55}}
.mcb-drapeau-rival line{stroke:#1f2937}
.mcb-rival-pt{font-size:15px}
.mcb-pion-maison circle{fill:var(--mcb-rose);stroke:#fff;stroke-width:2}
.mcb-pion-maison text{font-size:12px}
.mcb-route path{fill:none;stroke:#fde68a;stroke-width:2.5;opacity:.85}
.mcb-route-alliance path{stroke:#93c5fd;stroke-width:3.5;stroke-dasharray:14 8;animation:mcb-fil 1.6s linear infinite}
.mcb-route-franchise path{stroke:#fcd34d;stroke-dasharray:2 8;stroke-linecap:round;stroke-width:4}
.mcb-route-distrib path{stroke:#67e8f9;stroke-dasharray:10 7}
.mcb-route-direct path{stroke:#c4b5fd;stroke-dasharray:4 5}
.mcb-route-externe path{stroke:#fda4af;stroke-width:3}
.mcb-route-interne path,.mcb-route-filiale path{stroke:#86efac;stroke-width:3}
.mcb-route-neuve path{stroke-dasharray:900;stroke-dashoffset:900;animation:mcb-trace 1.4s ease-out forwards}
@keyframes mcb-trace{to{stroke-dashoffset:0}}
@keyframes mcb-fil{to{stroke-dashoffset:-44}}
.mcb-navire{filter:drop-shadow(0 2px 2px rgba(0,0,0,.4))}
.mcb-legende{position:absolute;left:8px;bottom:8px;display:flex;gap:10px;background:rgba(11,63,99,.75);color:#fff;font-size:12px;padding:4px 10px;border-radius:99px}
.mcb-legende span{display:flex;align-items:center;gap:4px}
.mcb-legende i{width:10px;height:10px;border-radius:2px;display:inline-block}

/* ---------------- les jetons ---------------- */
.mcb-jetons{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.mcb-jeton{display:grid;grid-template-columns:auto auto;align-items:center;column-gap:6px;background:linear-gradient(180deg,#fff7e6,#f5deb3);
  border:2px solid #c08a4a;border-radius:14px;padding:4px 10px;min-width:104px;box-shadow:0 3px 0 #8b5a2b;position:relative}
.mcb-jeton-ico{grid-row:span 2;font-size:22px}
.mcb-jeton b{font-size:16px;color:#3f2a14}
.mcb-jeton small{font-size:11px;color:#7c4a1e}
.mcb-jeton.rouge b{color:#dc2626}
.mcb-jeton em{position:absolute;top:-12px;right:-6px;font-style:normal;font-weight:800;font-size:12px;border-radius:99px;padding:1px 7px;color:#fff;animation:mcb-saute .8s ease both}
.mcb-jeton em.plus{background:#16a34a}.mcb-jeton em.moins{background:#dc2626}
@keyframes mcb-saute{0%{transform:translateY(10px);opacity:0}100%{transform:none;opacity:1}}

/* ---------------- les cartes de mode ---------------- */
.mcb-cmode{width:200px;height:270px;perspective:900px;border:0;background:none;padding:0;cursor:pointer;font:inherit}
.mcb-cmode-in{position:relative;display:block;width:100%;height:100%;transition:transform .7s cubic-bezier(.3,1.3,.5,1);transform-style:preserve-3d}
.mcb-cmode.retournee .mcb-cmode-in{transform:rotateY(180deg)}
.mcb-cmode-dos,.mcb-cmode-face{position:absolute;inset:0;backface-visibility:hidden;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px;gap:6px}
.mcb-cmode-dos{background:repeating-linear-gradient(45deg,#7c2d12 0 10px,#9a3412 10px 20px);border:4px solid #fde68a;color:#fde68a;box-shadow:0 8px 20px rgba(0,0,0,.35)}
.mcb-cmode-dos b{font-size:46px}.mcb-cmode-dos i{font-family:Fraunces,Georgia,serif;font-size:18px}
.mcb-cmode-face{transform:rotateY(180deg);background:var(--mcb-papier);border:4px solid var(--c);color:#1a1430;text-align:left;justify-content:flex-start;box-shadow:0 8px 20px rgba(0,0,0,.35)}
.mcb-cmode-ico{font-size:34px}
.mcb-cmode-face b{font-size:15px;color:var(--c);text-align:center}
.mcb-cmode-def{font-size:12.5px;line-height:1.35}
.mcb-cmode-plus{font-size:12px;color:#166534;line-height:1.3}
.mcb-cmode-moins{font-size:12px;color:#991b1b;line-height:1.3}
.mcb-cmode.petite{width:112px;height:96px}
.mcb-cmode.petite .mcb-cmode-face{justify-content:center;text-align:center;padding:6px}
.mcb-cmode.petite .mcb-cmode-ico{font-size:24px}.mcb-cmode.petite .mcb-cmode-face b{font-size:11.5px}
.mcb-cmode.petite:hover .mcb-cmode-face{transform:rotateY(180deg) translateY(-4px)}
.mcb-donne-cartes{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;margin:12px 0}
.mcb-donne-slot{animation:mcb-distribue .6s cubic-bezier(.3,1.4,.5,1) both}
@keyframes mcb-distribue{from{transform:translateY(-80px) rotate(-12deg);opacity:0}to{transform:none;opacity:1}}

/* ---------------- le parchemin ---------------- */
.mcb-parchemin-boite{display:flex;justify-content:center;width:100%}
.mcb-parchemin{border:0;background:none;cursor:pointer;display:flex;flex-direction:column;align-items:center;font:inherit;animation:mcb-flotte 3s ease-in-out infinite}
@keyframes mcb-flotte{50%{transform:translateY(-6px)}}
.mcb-parchemin-rouleau{width:300px;max-width:80vw;height:22px;border-radius:12px;background:linear-gradient(180deg,#a16207,#713f12);box-shadow:0 4px 8px rgba(0,0,0,.4)}
.mcb-parchemin-txt{width:270px;max-width:72vw;background:linear-gradient(180deg,#fdf6e3,#f3e2b8);padding:22px 16px;display:flex;flex-direction:column;align-items:center;gap:6px;color:#3f2a14}
.mcb-parchemin-txt small{letter-spacing:.15em;text-transform:uppercase;font-size:11px;color:#92400e}
.mcb-parchemin-txt b{font-family:Fraunces,Georgia,serif;font-size:20px;text-align:center}
.mcb-parchemin-txt i{font-size:13px;color:#92400e}
.mcb-parchemin-ouvert{animation:mcb-deroule .7s ease both;transform-origin:top}
@keyframes mcb-deroule{from{transform:scaleY(.1);opacity:0}to{transform:none;opacity:1}}

/* ---------------- la séquence d'un tour ---------------- */
.mcb-sequence{width:100%;display:flex;flex-direction:column;align-items:center;gap:12px}
.mcb-etapes-fil{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.mcb-etapes-fil span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-size:14px;background:rgba(255,255,255,.18);transition:all .3s}
.mcb-etapes-fil span.fait{background:#16a34a}
.mcb-etapes-fil span.ici{background:#fde68a;transform:scale(1.2);box-shadow:0 0 0 3px rgba(253,230,138,.35)}
.mcb-etape{width:100%;display:flex;flex-direction:column;align-items:center;gap:12px;animation:pdl-entree .5s ease}
.mcb-dialogue{width:100%;max-width:820px}

/* ---------------- calculs ---------------- */
.mcb-rappel{background:#ecfeff;border:2px dashed #0891b2;border-radius:12px;padding:8px 12px;font-size:14.5px;margin:8px 0}
.mcb-calcul-ligne{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.mcb-calcul-champ{font:inherit;font-size:20px;font-weight:700;padding:8px 12px;border-radius:10px;border:2px solid #cbd5e1;width:180px;max-width:100%}
.mcb-calcul-champ:focus{outline:none;border-color:#f59e0b}
.mcb-calcul-unite{font-weight:700;font-size:18px}

/* ---------------- tour 1 : la course ---------------- */
.mcb-tableau{width:100%;border-collapse:collapse;font-size:13.5px;margin:6px 0;background:#fff}
.mcb-tableau caption{text-align:left;font-weight:800;padding:6px 0;color:#3f2a14}
.mcb-tableau th,.mcb-tableau td{border:1px solid #e2d3b5;padding:5px 7px;text-align:left;vertical-align:top}
.mcb-tableau thead th{background:#fef3c7}
.mcb-tableau tbody th{background:#fdf6e3;white-space:nowrap}
.mcb-course{overflow-x:auto}
.mcb-pari{background:linear-gradient(135deg,#1e3a5f,#0b3f63);color:#fff;border-radius:14px;padding:12px;margin:10px 0}
.mcb-pari-n{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#fde68a;font-weight:800}
.mcb-pari-q{font-size:17px;font-weight:700;margin:6px 0 10px}
.mcb-pari-pions{display:flex;gap:8px;flex-wrap:wrap}
.mcb-pari-pion{flex:1 1 150px;font:inherit;font-weight:700;border:3px solid var(--c);background:#fff;color:#1a1430;border-radius:999px;padding:8px 12px;cursor:pointer;display:flex;align-items:center;gap:8px;justify-content:center;transition:transform .15s}
.mcb-pari-pion:hover{transform:translateY(-3px) scale(1.03)}
.mcb-pari-pion span{font-size:22px}
.mcb-piste{background:#14532d;border-radius:14px;padding:10px;margin-top:8px;color:#fff}
.mcb-piste-annees{display:grid;grid-template-columns:130px repeat(4,1fr) 90px;font-size:12px;font-weight:800;color:rgba(255,255,255,.5)}
.mcb-piste-annees span:first-child{grid-column:2}
.mcb-piste-annees span.on{color:#fde68a}
.mcb-couloir{display:grid;grid-template-columns:130px 1fr 90px;align-items:center;gap:6px;padding:6px 0;border-bottom:1px dashed rgba(255,255,255,.25)}
.mcb-couloir-nom{font-size:13px;font-weight:700}
.mcb-couloir-piste{position:relative;height:40px;background:repeating-linear-gradient(90deg,rgba(255,255,255,.08) 0 24%,rgba(255,255,255,.14) 24% 25%);border-radius:8px}
.mcb-couloir-pion{position:absolute;top:2px;width:36px;height:36px;border-radius:50%;background:var(--c);display:grid;place-items:center;font-size:20px;
  box-shadow:0 4px 0 rgba(0,0,0,.35);transition:left 1s cubic-bezier(.3,1.3,.5,1)}
.mcb-couloir-ligne{position:absolute;right:-6px;top:6px;font-size:20px}
.mcb-couloir-cout{font-size:12px;text-align:right}
.mcb-couloir.arrive .mcb-couloir-pion{animation:mcb-saut .6s ease 2}
@keyframes mcb-saut{50%{transform:translateY(-10px)}}
.mcb-paris-res{display:flex;flex-direction:column;gap:6px;margin:10px 0}
.mcb-pari-res{border-radius:10px;padding:8px 10px;font-size:14px;line-height:1.4}
.mcb-pari-res.bon{background:#dcfce7}.mcb-pari-res.faux{background:#fee2e2}

/* ---------------- tour 1 : les étiquettes ---------------- */
.mcb-etiq-pile{display:flex;justify-content:center;margin:10px 0;min-height:90px}
.mcb-etiquette{background:#fffbeb;border:2px solid #f59e0b;border-radius:10px 10px 10px 0;padding:12px 16px;max-width:520px;font-weight:700;font-size:16px;
  box-shadow:0 6px 0 #d97706;animation:mcb-distribue .5s ease both;display:flex;flex-direction:column;gap:4px;text-align:center}
.mcb-etiquette small{font-weight:600;color:#92400e;font-size:11px;text-transform:uppercase;letter-spacing:.1em}
.mcb-etiq-pions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.mcb-gros-pion{font:inherit;border:0;background:#fff;border-top:8px solid var(--c);border-radius:14px;padding:10px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;
  box-shadow:0 6px 16px rgba(0,0,0,.15);transition:transform .15s;min-height:150px}
.mcb-gros-pion:hover{transform:translateY(-4px)}
.mcb-gros-pion-tete{width:52px;height:52px;border-radius:50%;background:var(--c);display:grid;place-items:center;font-size:28px;box-shadow:0 4px 0 rgba(0,0,0,.3)}
.mcb-gros-pion b{color:var(--c);font-size:14px;text-align:center}
.mcb-gros-pion-etiq{display:flex;flex-direction:column;gap:4px;width:100%}
.mcb-gros-pion-etiq i{font-style:normal;font-size:11.5px;background:#fffbeb;border-left:3px solid var(--c);padding:3px 6px;border-radius:4px;animation:mcb-colle .4s ease both;text-align:left}
@keyframes mcb-colle{from{transform:scale(1.4) rotate(-6deg);opacity:0}to{transform:none;opacity:1}}
.mcb-secoue{animation:mcb-secoue .45s ease}
@keyframes mcb-secoue{20%,60%{transform:translateX(-8px)}40%,80%{transform:translateX(8px)}}

/* ---------------- tour 2 : l'inventaire ---------------- */
.mcb-caisses{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0}
.mcb-caisse{font:inherit;position:relative;min-height:110px;border:0;border-radius:10px;cursor:pointer;padding:10px;text-align:left;
  background:repeating-linear-gradient(0deg,#c08a4a 0 18px,#a0703a 18px 20px);color:#3f2a14;box-shadow:0 5px 0 #6b4423;display:flex;flex-direction:column;gap:4px;transition:transform .2s}
.mcb-caisse:hover:not(:disabled){transform:translateY(-3px)}
.mcb-caisse:disabled{cursor:default}
.mcb-caisse-couvercle{font-size:26px;transition:transform .4s}
.mcb-caisse-num{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:#fff7e6}
.mcb-caisse.ouverte{background:#fffbeb;outline:3px solid #f59e0b}
.mcb-caisse.ouverte .mcb-caisse-couvercle{transform:translateY(-8px) rotate(-18deg)}
.mcb-caisse.faite{background:#fff;border:3px solid var(--c)}
.mcb-caisse.faite .mcb-caisse-num{color:#94a3b8}
.mcb-caisse-txt{font-size:13px;font-weight:600;line-height:1.3}
.mcb-caisse-tampon{font-size:11px;font-weight:800;color:var(--c);border:2px solid var(--c);border-radius:6px;padding:2px 6px;transform:rotate(-4deg);align-self:flex-start;animation:mcb-tampon .35s ease both}
@keyframes mcb-tampon{from{transform:scale(2) rotate(-12deg);opacity:0}to{transform:rotate(-4deg);opacity:1}}
.mcb-tampons{background:#1e293b;color:#fff;border-radius:14px;padding:10px 12px;margin:8px 0}
.mcb-tampons p{margin:0 0 8px}
.mcb-tampons>div{display:flex;gap:8px;flex-wrap:wrap}
.mcb-tampons .pdl-aide{color:#cbd5e1}
.mcb-tampon{flex:1 1 180px;font:inherit;font-weight:700;border:3px solid var(--c);background:#fff;color:var(--c);border-radius:12px;padding:8px;cursor:pointer;display:flex;align-items:center;gap:6px}
.mcb-tampon span{font-size:20px}

/* ---------------- tour 3 : le pacte ---------------- */
.mcb-pacte{position:relative}
.mcb-fils{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;overflow:visible}
.mcb-fil{fill:none;stroke:#60a5fa;stroke-width:4;stroke-linecap:round;filter:drop-shadow(0 0 6px #93c5fd);stroke-dasharray:12 6;animation:mcb-fil 1.2s linear infinite}
.mcb-fil.bon{stroke:#22c55e;filter:drop-shadow(0 0 8px #86efac)}
.mcb-fil.faux{stroke:#ef4444;filter:drop-shadow(0 0 6px #fca5a5)}
.mcb-pacte-cols{display:grid;grid-template-columns:1fr 1fr;gap:60px;margin:10px 0}
.mcb-pacte-col{display:flex;flex-direction:column;gap:8px}
.mcb-pacte-col h4{margin:0;font-size:14px}
.mcb-danger,.mcb-clause{font:inherit;font-size:13.5px;text-align:left;border-radius:10px;padding:9px 10px;cursor:pointer;border:2px solid #e2e8f0;background:#fff;transition:all .2s;position:relative;z-index:1}
.mcb-danger{border-left:6px solid #f97316}
.mcb-danger.sel{border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.25)}
.mcb-danger.lie,.mcb-clause.lie{background:#eff6ff;border-color:#93c5fd}
.mcb-danger.faux{background:#fee2e2;border-color:#ef4444}
.mcb-clause{border-left:6px solid #2563eb;background:var(--mcb-papier)}
.mcb-clause.cible:hover{border-color:#2563eb;transform:translateX(-3px)}
.mcb-signer-liste{display:flex;flex-direction:column;gap:8px;margin:10px 0}
.mcb-clause-sig{font:inherit;text-align:left;font-size:14.5px;padding:10px 12px;border-radius:10px;border:2px dashed #94a3b8;background:var(--mcb-papier);cursor:pointer}
.mcb-clause-sig.on{border-style:solid;border-color:#16a34a;background:#dcfce7;font-weight:700}

/* ---------------- tour 4 : la douane ---------------- */
.mcb-douane{width:100%;display:flex;justify-content:center}
.mcb-douane-liste{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}
.mcb-douane-t{font:inherit;font-weight:700;border:2px solid #cbd5e1;background:#fff;border-radius:10px;padding:8px;cursor:pointer;display:flex;flex-direction:column;gap:4px;text-align:left}
.mcb-douane-t.on{border-color:#f97316;background:#fff7ed}
.mcb-douane-t.bon{border-color:#16a34a}.mcb-douane-t.faux{border-color:#ef4444;background:#fee2e2}
.mcb-douane-t small{font-weight:500;font-size:12px;line-height:1.3}

/* ---------------- tour 4 : le compas ---------------- */
.mcb-compas-fiche{border-left:8px solid var(--c);background:var(--mcb-papier);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:4px;margin:8px 0}
.mcb-cadrans{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.mcb-cadran{background:#0b3f63;color:#fff;border-radius:14px;padding:10px;display:flex;flex-direction:column;align-items:center;gap:6px;border:3px solid transparent}
.mcb-cadran.bon{border-color:#22c55e}.mcb-cadran.faux{border-color:#ef4444}
.mcb-cadran-t{font-weight:800;font-size:13px;text-align:center}
.mcb-cadran-face{position:relative;width:150px;height:84px;border-radius:150px 150px 0 0;background:radial-gradient(circle at 50% 100%,#fdf6e3 0 30%,#f3e2b8 31% 100%);overflow:hidden;border:3px solid #d6a86b;border-bottom:0}
.mcb-aiguille{position:absolute;left:calc(50% - 3px);bottom:0;width:6px;height:70px;background:linear-gradient(#dc2626,#7f1d1d);border-radius:4px;transform-origin:50% 100%;transition:transform .5s cubic-bezier(.3,1.6,.5,1)}
.mcb-cran{position:absolute;font-size:10px;font-weight:800;color:#7c4a1e;opacity:.6}
.mcb-cran.on{opacity:1;color:#b91c1c}
.mcb-cran-0{left:4px;bottom:6px}.mcb-cran-1{left:50%;top:4px;transform:translateX(-50%)}.mcb-cran-2{right:4px;bottom:6px}
.mcb-cadran-btns{display:flex;align-items:center;gap:8px}
.mcb-cadran-btns button{width:34px;height:34px;border-radius:50%;border:0;background:#fde68a;font-size:14px;cursor:pointer}
.mcb-cadran-btns button:disabled{opacity:.35;cursor:default}
.mcb-cadran-btns b{min-width:90px;text-align:center;font-size:13px}
.mcb-cadran small{color:#fde68a}
.mcb-risques{display:flex;flex-direction:column;gap:6px;margin:10px 0}
.mcb-risque{font:inherit;text-align:left;border:2px solid #e2e8f0;background:#fff;border-radius:10px;padding:8px 10px;cursor:pointer}
.mcb-risque.on{border-color:#f97316;background:#fff7ed}
.mcb-risque.bon{border-color:#16a34a;background:#dcfce7}.mcb-risque.faux{border-color:#ef4444;background:#fee2e2}

/* ---------------- tour 5 : la valise ---------------- */
.mcb-fiche-marche{background:#fffbeb;border:1px solid #fcd34d;border-radius:10px;padding:8px 12px;margin:8px 0;font-size:14px;transform:rotate(-.6deg)}
.mcb-fiche-marche ul{margin:4px 0 0;padding-left:18px}
.mcb-valise-boite{position:relative;background:linear-gradient(180deg,#9a3412,#7c2d12);border-radius:18px;padding:22px 12px 12px;display:flex;flex-direction:column;gap:8px;
  box-shadow:0 10px 0 #431407,inset 0 0 0 4px #c2410c;margin-top:22px;transition:transform .5s}
.mcb-valise-boite.fermee{transform:rotate(-1deg) scale(.99)}
.mcb-valise-poignee{position:absolute;top:-20px;left:calc(50% - 50px);width:100px;height:26px;border:6px solid #431407;border-bottom:0;border-radius:14px 14px 0 0}
.mcb-objet{background:var(--mcb-papier);border-radius:10px;padding:8px 10px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:space-between}
.mcb-objet-txt{font-weight:700;font-size:14px;flex:1 1 200px}
.mcb-objet-btns{display:flex;gap:6px}
.mcb-objet-btns button{font:inherit;font-size:13px;font-weight:700;border:2px solid #cbd5e1;background:#fff;border-radius:99px;padding:5px 10px;cursor:pointer}
.mcb-objet-btns button.on{border-color:#7c2d12;background:#7c2d12;color:#fff}
.mcb-objet.bon{outline:3px solid #22c55e}.mcb-objet.faux{outline:3px solid #ef4444}
.mcb-objet small{flex-basis:100%;font-size:12.5px;line-height:1.35}
.mcb-clientes{display:flex;align-items:center;gap:8px;justify-content:center;margin:10px 0;font-size:34px}
.mcb-clientes span{animation:mcb-saut .8s ease both}
.mcb-clientes b{font-size:15px}

/* ---------------- tour 5 : la roue ---------------- */
.mcb-roue-zone{position:relative;display:flex;flex-direction:column;align-items:center;margin:14px 0}
.mcb-roue-fleche{font-size:28px;color:#dc2626;z-index:2;margin-bottom:-12px}
.mcb-roue{position:relative;width:250px;height:250px;border-radius:50%;
  background:conic-gradient(#0891b2 0 45deg,#0e7490 45deg 90deg,#0891b2 90deg 135deg,#0e7490 135deg 180deg,#0891b2 180deg 225deg,#0e7490 225deg 270deg,#0891b2 270deg 315deg,#0e7490 315deg 360deg);
  border:8px solid #d6a86b;box-shadow:0 10px 24px rgba(0,0,0,.35);transition:transform 3s cubic-bezier(.15,.8,.25,1)}
.mcb-roue.tourne{transform:rotate(1395deg)}
.mcb-roue-s{position:absolute;left:50%;top:50%;margin:-11px 0 0 -46px;width:92px;text-align:center;font-size:12px;font-weight:800;color:#fff}
.mcb-roue-centre{position:absolute;left:50%;top:50%;width:54px;height:54px;margin:-27px;border-radius:50%;background:#fde68a;display:grid;place-items:center;font-size:26px}

/* ---------------- tour 5 : la tempête ---------------- */
.mcb-ciel{min-height:110px;display:flex;justify-content:center;align-items:flex-start;background:linear-gradient(180deg,#334155,#64748b);border-radius:14px;padding:12px;overflow:hidden}
.mcb-nouvelle{background:#fff;border-radius:10px;padding:10px 14px;font-weight:700;max-width:480px;display:flex;flex-direction:column;gap:4px;animation:mcb-tombe .8s cubic-bezier(.3,1.4,.5,1) both;box-shadow:0 8px 20px rgba(0,0,0,.35)}
.mcb-nouvelle small{color:#ca8a04;font-size:11px;text-transform:uppercase;letter-spacing:.1em}
@keyframes mcb-tombe{from{transform:translateY(-120px) rotate(8deg);opacity:0}to{transform:rotate(-1deg);opacity:1}}
.mcb-familles{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:10px}
.mcb-famille{font:inherit;border:0;border-bottom:8px solid var(--c);background:#fff;border-radius:14px;padding:10px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;min-height:120px;box-shadow:0 6px 16px rgba(0,0,0,.15)}
.mcb-famille-ico{font-size:30px}
.mcb-famille b{color:var(--c)}
.mcb-famille i{font-style:normal;font-size:11.5px;background:#f8fafc;border-radius:6px;padding:3px 6px;width:100%;animation:mcb-colle .4s ease both}

/* ---------------- tour 6 : les traces ---------------- */
.mcb-traces-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px;margin:10px 0}
.mcb-trace{font:inherit;text-align:left;border:3px solid var(--c);border-radius:12px;padding:10px;background:#fff;cursor:pointer;display:flex;flex-direction:column;gap:6px;transition:transform .2s}
.mcb-trace:hover:not(:disabled){transform:translateY(-3px)}
.mcb-trace.sel{box-shadow:0 0 0 5px rgba(253,230,138,.9)}
.mcb-trace.trouve{background:#f0fdf4;cursor:default}
.mcb-trace-qui{font-weight:800;font-size:13px;color:var(--c)}
.mcb-trace-indices{display:flex;flex-direction:column;gap:4px}
.mcb-trace-indices i{font-style:normal;font-size:12.5px;background:#f1f5f9;border-radius:6px;padding:3px 6px}
.mcb-trace-mode{font-size:12.5px;color:#166534}
.mcb-main-modes{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;background:#1e293b;border-radius:14px;padding:10px;position:sticky;bottom:6px;z-index:3}

/* ---------------- tour 6 : le conseil ---------------- */
.mcb-horloge{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center;margin:8px 0 12px}
.mcb-horloge-cadran{font-size:38px;animation:mcb-balancier 2s ease-in-out infinite;transform-origin:50% 0}
@keyframes mcb-balancier{25%{transform:rotate(8deg)}75%{transform:rotate(-8deg)}}
.mcb-contrainte{background:#0b3f63;color:#fff;border-radius:99px;padding:6px 12px;font-weight:700;font-size:13.5px;animation:mcb-distribue .5s ease both}

/* ---------------- le coup ---------------- */
.mcb-coup{display:flex;flex-direction:column;gap:12px}
.mcb-coup-tete{display:flex;flex-direction:column;align-items:center;gap:6px;background:#fdf6e3;border-radius:14px;padding:10px}
.mcb-coup-tete small{font-size:12px;color:#7c4a1e;text-align:center}
.mcb-coup-terr h4{margin:0 0 4px;font-size:17px}
.mcb-coup-q{margin:0 0 8px;font-weight:600}
.mcb-coup-opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.mcb-coup-opt{font:inherit;text-align:left;border:3px solid #e2e8f0;border-top:10px solid var(--c);background:#fff;border-radius:14px;padding:10px;cursor:pointer;display:flex;flex-direction:column;gap:5px;transition:transform .15s,box-shadow .15s}
.mcb-coup-opt:hover:not(:disabled){transform:translateY(-4px) rotate(-.5deg);box-shadow:0 10px 20px rgba(0,0,0,.15)}
.mcb-coup-opt.on{border-color:var(--c);box-shadow:0 0 0 4px rgba(253,230,138,.9);transform:translateY(-4px)}
.mcb-coup-opt.impossible{opacity:.55;cursor:not-allowed}
.mcb-coup-mode{font-size:12px;font-weight:800;color:var(--c);text-transform:uppercase;letter-spacing:.05em}
.mcb-coup-opt b{font-size:15px}
.mcb-coup-txt{font-size:13px;line-height:1.35;color:#334155}
.mcb-coup-cout{display:flex;flex-wrap:wrap;gap:4px}
.mcb-coup-cout i{font-style:normal;font-size:12px;font-weight:700;background:#fef3c7;border-radius:99px;padding:2px 8px}
.mcb-coup-cout i.gain{background:#dcfce7}.mcb-coup-cout i.alerte{background:#ffedd5;color:#9a3412}
.mcb-coup-manque{font-size:12px;font-weight:700;color:#dc2626}

/* ---------------- la table des cartes ---------------- */
.mcb-decor-table .pdl-decor-contenu{max-width:1100px}
.mcb-table{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:14px;width:100%;align-items:start}
.mcb-table-cote{display:flex;flex-direction:column;gap:10px;background:rgba(253,246,227,.96);border-radius:16px;padding:12px;box-shadow:0 10px 26px rgba(0,0,0,.35)}
.mcb-annee{font-family:Fraunces,Georgia,serif;font-size:26px;font-weight:800;text-align:center;color:#3f2a14}
.mcb-tours{display:flex;flex-direction:column;gap:6px}
.mcb-tour{font:inherit;display:flex;align-items:center;gap:8px;text-align:left;border:2px solid #e2d3b5;background:#fff;border-radius:12px;padding:6px 8px;cursor:pointer}
.mcb-tour:disabled{opacity:.45;cursor:not-allowed}
.mcb-tour span:nth-child(2){display:flex;flex-direction:column;flex:1;min-width:0}
.mcb-tour b{font-size:13px}.mcb-tour i{font-size:11.5px;color:#64748b;font-style:normal}
.mcb-tour em{font-style:normal;color:#ca8a04;font-size:13px}
.mcb-tour-n{width:30px;height:30px;border-radius:50%;background:#0b3f63;color:#fff;display:grid;place-items:center;font-weight:800;flex:none}
.mcb-tour.fait .mcb-tour-n{background:#16a34a}
.mcb-tour.brille{border-color:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.25);animation:mcb-brille 1.8s ease-in-out infinite}
@keyframes mcb-brille{50%{box-shadow:0 0 0 8px rgba(245,158,11,.12)}}
.mcb-main small,.mcb-journal small{font-weight:800;font-size:12px;color:#7c4a1e}
.mcb-main>div{display:flex;gap:6px;flex-wrap:wrap;margin-top:4px}
.mcb-main-carte{width:34px;height:46px;border-radius:6px;background:#fff;border:2px solid var(--c);display:grid;place-items:center;font-size:18px;box-shadow:0 2px 0 var(--c)}
.mcb-journal{display:flex;flex-direction:column;gap:3px}
.mcb-journal i{font-style:normal;font-size:12px;line-height:1.3;border-left:3px solid #d6a86b;padding-left:6px}

/* ---------------- le bilan d'un tour ---------------- */
.mcb-bilan-tour{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.mcb-bilan-tour h2{margin:0;font-family:Fraunces,Georgia,serif}
.mcb-bilan-pct{font-size:22px}
.mcb-recette{margin:0;font-weight:700;color:#166534}
.mcb-journal-lignes{display:flex;flex-direction:column;gap:4px;text-align:left;width:100%}
.mcb-journal-lignes i{font-style:normal;font-size:13.5px;background:#f8fafc;border-left:4px solid #0b3f63;padding:5px 8px;border-radius:4px;animation:mcb-saute .5s ease both}
.mcb-evt{width:100%;max-width:560px;height:170px;perspective:1000px;border:0;background:none;padding:0;cursor:pointer;font:inherit}
.mcb-evt-in{position:relative;display:block;width:100%;height:100%;transition:transform .8s cubic-bezier(.3,1.3,.5,1);transform-style:preserve-3d}
.mcb-evt.retourne .mcb-evt-in{transform:rotateX(180deg)}
.mcb-evt-dos,.mcb-evt-face{position:absolute;inset:0;backface-visibility:hidden;border-radius:16px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:12px}
.mcb-evt-dos{background:repeating-linear-gradient(-45deg,#1e3a5f 0 12px,#0b3f63 12px 24px);color:#fde68a;border:4px solid #fde68a;animation:mcb-flotte 2.4s ease-in-out infinite}
.mcb-evt-dos b{font-size:40px}.mcb-evt-dos i{font-size:13px}
.mcb-evt-face{transform:rotateX(180deg);background:var(--mcb-papier);border:4px solid #d6a86b;overflow:auto}
.mcb-evt-face b{font-size:15px}.mcb-evt-face span{font-size:13px;line-height:1.4}

/* ---------------- documents ---------------- */
.mcb-doc{background:#fff;color:#1a1430;font-size:14.5px;line-height:1.5;padding:4px 2px}
.mcb-doc p{margin:6px 0}
.mcb-doc-tete{display:flex;align-items:center;gap:10px;border-bottom:3px solid var(--mcb-rose,#db2777);padding-bottom:8px;margin-bottom:8px;flex-wrap:wrap}
.mcb-doc-logo{width:42px;height:42px;border-radius:50%;background:#fce7f3;display:grid;place-items:center;font-size:24px}
.mcb-doc-tete>span:nth-child(2){display:flex;flex-direction:column}
.mcb-doc-tete b{font-family:Fraunces,Georgia,serif;font-size:20px;color:#9d174d}
.mcb-doc-tete i{font-size:12px;color:#64748b}
.mcb-doc-tete em{margin-left:auto;font-style:normal;font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#9d174d}
.mcb-doc-date{text-align:right;color:#64748b;font-size:13px}
.mcb-doc-sign{font-family:"Segoe Script","Brush Script MT",cursive;font-size:22px;text-align:right;color:#1e3a8a;display:flex;flex-direction:column;align-items:flex-end}
.mcb-doc-sign small{font-family:Outfit,system-ui,sans-serif;font-size:12px;color:#64748b}
.mcb-doc-badge{display:flex;align-items:center;gap:10px;background:#fdf2f8;border-radius:12px;padding:8px;margin-top:8px}
.mcb-doc-badge img{width:54px;height:54px;border-radius:50%;object-fit:cover;border:3px solid #db2777}
.mcb-doc-badge span{display:flex;flex-direction:column}
.mcb-doc-badge i{font-size:12px;color:#9d174d}
.mcb-contrat{border:2px solid #e2d3b5;border-radius:10px;padding:8px 10px;margin:8px 0;background:var(--mcb-papier)}
.mcb-contrat ol{margin:6px 0;padding-left:20px}
.mcb-alerte{color:#b91c1c;font-weight:700}
.mcb-tampon-doc{display:inline-block}
.mcb-fiche-liste{padding-left:18px}
.mcb-fiche-liste i{color:#b45309}
.mcb-journal h3{font-family:Fraunces,Georgia,serif}
.mcb-arrivee-doc .pdl-feuille{max-width:560px}

/* ---------------- accueil, fin ---------------- */
.mcb-accueil h1 span{display:block;font-size:.5em;opacity:.85}
.mcb-accueil-pions{display:flex;gap:10px;font-size:30px;margin-bottom:6px}
.mcb-accueil-pions span{animation:mcb-saut 1.6s ease-in-out infinite;animation-delay:calc(var(--i) * .2s)}
.mcb-tm p{font-size:16px;opacity:.9;margin:0 0 18px}
.mcb-fin-carte{display:flex;flex-direction:column;align-items:center;gap:10px}
.mcb-fin-titre{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;background:#fdf6e3;border:3px solid #d6a86b;border-radius:14px;padding:10px 14px;animation:mcb-distribue .8s ease both}
.mcb-fin-titre b{font-family:Fraunces,Georgia,serif;font-size:22px}
.mcb-autres-fins p{font-size:13px}

/* ---------------- téléphone ---------------- */
@media (max-width:760px){
  .mcb-table{grid-template-columns:1fr}
  .mcb-etiq-pions,.mcb-familles,.mcb-cadrans{grid-template-columns:1fr}
  .mcb-caisses{grid-template-columns:repeat(2,1fr)}
  .mcb-douane-liste{grid-template-columns:repeat(2,1fr)}
  .mcb-pacte-cols{grid-template-columns:1fr 1fr;gap:26px}
  .mcb-danger,.mcb-clause{font-size:12px;padding:7px}
  .mcb-cmode{width:150px;height:250px}
  .mcb-cmode-def{font-size:11.5px}
  .mcb-piste-annees{grid-template-columns:84px repeat(4,1fr) 64px}
  .mcb-couloir{grid-template-columns:84px 1fr 64px}
  .mcb-couloir-nom{font-size:11px}.mcb-couloir-cout{font-size:10.5px}
  .mcb-terr-nom{font-size:30px;stroke-width:6px}
  .mcb-drapeau{transform:scale(1.5)}
  .mcb-medaillon-t{font-size:18px}
  .mcb-legende{font-size:10px;gap:6px}
  .mcb-gros-pion{min-height:auto;flex-direction:row;flex-wrap:wrap;justify-content:center}
  .mcb-tableau{font-size:12px}
  .mcb-roue{width:220px;height:220px}
  .mcb-roue-s{font-size:11px}
}
/* ==== mcb : fin des styles ==== */
/* ==== mca : debut des styles ====
   « Mèb Gilyom — la table des contrats » : bois de tamarin, papier du
   carnet, encre bleue des contrats. Préfixe mca- (piège N : chaque
   modificateur porte le nom de son bloc). */
.mca{--mca-bois:#8a4b1f;--mca-bois-clair:#c98a4b;--mca-bois-fonce:#4a2410;--mca-papier:#fbf6ea;--mca-encre:#1e3a8a;--mca-vert:#15803d;--mca-rouge:#b91c1c}

/* --- l'accueil --- */
.mca-accueil h1 span{color:var(--mca-bois-clair)}
.mca-accueil-chaine{display:flex;justify-content:center;gap:6px;font-size:30px;margin-bottom:6px}
.mca-accueil-chaine span{display:inline-block;animation:mca-flotte 3s ease-in-out infinite;animation-delay:calc(var(--i) * .25s)}
.mca-accueil-chaine span:not(:last-child)::after{content:"→";font-size:16px;opacity:.6;margin-left:6px;vertical-align:middle}
@keyframes mca-flotte{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}

/* --- le carnet de Papi Lucien --- */
.mca-carnet-ferme{display:flex;justify-content:center;padding:16px 0}
.mca-carnet{position:relative;width:min(300px,86vw);aspect-ratio:3/4;border:0;border-radius:6px 14px 14px 6px;cursor:pointer;color:#fde7c4;
  background:linear-gradient(90deg,#3b1d0b 0 14px,#6b3416 14px),repeating-linear-gradient(0deg,rgba(0,0,0,.05) 0 2px,transparent 2px 5px);
  box-shadow:0 18px 40px rgba(0,0,0,.45),inset -6px 0 12px rgba(0,0,0,.3);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:24px;
  font:inherit;text-align:center;transform:rotate(-3deg);transition:transform .35s;animation:mca-pose .6s ease}
.mca-carnet:hover{transform:rotate(0) scale(1.03)}
.mca-carnet b{font-family:Fraunces,Georgia,serif;font-size:22px}
.mca-carnet-titre{font-size:17px;background:rgba(0,0,0,.25);padding:6px 10px;border-radius:6px}
.mca-carnet i{font-size:13px;opacity:.85}
.mca-carnet-elas{position:absolute;right:30px;top:0;bottom:0;width:8px;background:#1f2937;opacity:.8}
@keyframes mca-pose{from{opacity:0;transform:translateY(-30px) rotate(-12deg)}to{opacity:1;transform:rotate(-3deg)}}
.mca-carnet-ouvert{position:relative;width:100%;max-width:820px}
.mca-carnet-ouvert .pdl-lecon{background:var(--mca-papier);background-image:repeating-linear-gradient(transparent 0 27px,#e8dcc2 27px 28px);border-left:6px solid var(--mca-bois)}
.mca-copeau{position:absolute;top:-14px;right:18px;width:90px;height:34px;border-radius:50%;z-index:2;pointer-events:none;
  background:radial-gradient(ellipse at 30% 50%,#f3d3a3 0 30%,#d9a066 31% 45%,#f3d3a3 46% 60%,transparent 61%);transform-origin:left center;animation:mca-copeau 1.2s ease-out both}
@keyframes mca-copeau{from{transform:scaleX(.1) rotate(-20deg);opacity:0}to{transform:scaleX(1) rotate(4deg);opacity:1}}

/* --- le visage et les jauges --- */
.mca-table{display:grid;grid-template-columns:230px 1fr;gap:16px;align-items:start;width:100%}
.mca-table-haut{min-width:0}
.mca-visage{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:10px;border-radius:14px;background:#fff7ed;border:2px solid #fed7aa;transition:background .4s,border-color .4s}
.mca-visage-cadre{position:relative;width:150px;height:150px}
.mca-visage-cadre img{width:150px;height:150px;border-radius:50%;object-fit:cover;object-position:center 22%;border:5px solid #fff;box-shadow:0 6px 18px rgba(0,0,0,.25);transition:filter .4s,transform .4s}
.mca-visage-emoji{position:absolute;right:-4px;bottom:2px;font-size:38px;background:#fff;border-radius:50%;width:54px;height:54px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px rgba(0,0,0,.2);animation:mca-pop .45s ease}
.mca-visage-tel{display:flex;width:150px;height:150px;border-radius:50%;align-items:center;justify-content:center;font-size:64px;background:#e0f2fe;border:5px solid #fff;animation:mca-sonne 1.2s ease-in-out 2}
@keyframes mca-sonne{0%,100%{transform:rotate(0)}10%,30%,50%{transform:rotate(-8deg)}20%,40%{transform:rotate(8deg)}}
@keyframes mca-pop{0%{transform:scale(.3)}70%{transform:scale(1.15)}100%{transform:scale(1)}}
.mca-visage-nom b{display:block;font-size:16px}
.mca-visage-nom i{display:block;font-size:12px;color:#64748b;font-style:normal}
.mca-visage-etat{font-size:13px;font-weight:700;color:#7c2d12}
.mca-hum-bien{background:#ecfdf5;border-color:#86efac}
.mca-hum-bien .mca-visage-cadre img{filter:saturate(1.15) brightness(1.05)}
.mca-hum-mefiant{background:#fefce8;border-color:#fde047}
.mca-hum-mefiant .mca-visage-cadre img{filter:saturate(.8)}
.mca-hum-braque{background:#fef2f2;border-color:#fca5a5}
.mca-hum-braque .mca-visage-cadre img{filter:grayscale(.45) contrast(1.1) sepia(.2) hue-rotate(-15deg)}
.mca-hum-parti .mca-visage-cadre img{filter:grayscale(1);opacity:.4;transform:translateX(30px)}
.mca-choc-descend .mca-visage-cadre{animation:mca-secoue .45s ease}
.mca-choc-monte .mca-visage-cadre img{animation:mca-lueur .8s ease}
@keyframes mca-secoue{0%,100%{transform:translateX(0)}20%{transform:translateX(-7px) rotate(-2deg)}40%{transform:translateX(6px) rotate(2deg)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}
@keyframes mca-lueur{0%{box-shadow:0 0 0 0 rgba(34,197,94,.7)}100%{box-shadow:0 0 0 22px rgba(34,197,94,0)}}
.mca-jauges{width:100%;display:flex;flex-direction:column;gap:6px}
.mca-jauge{display:grid;grid-template-columns:auto 1fr 30px;align-items:center;gap:6px;font-size:12px;font-weight:600}
.mca-jauge-barre{height:10px;border-radius:6px;background:#e5e7eb;overflow:hidden}
.mca-jauge-barre i{display:block;height:100%;border-radius:6px;transition:width .7s cubic-bezier(.3,1.4,.5,1)}
.mca-jauge-conf .mca-jauge-barre i{background:linear-gradient(90deg,#16a34a,#4ade80)}
.mca-jauge-pat .mca-jauge-barre i{background:linear-gradient(90deg,#d97706,#fbbf24)}
.mca-jauge.mca-bas .mca-jauge-barre i{background:#dc2626;animation:mca-clignote 1s infinite}
.mca-jauge b{text-align:right}
@keyframes mca-clignote{50%{opacity:.45}}

/* --- le plateau de la table --- */
.mca-plateau{display:flex;flex-direction:column;gap:12px;min-width:0;padding:14px;border-radius:14px;
  background:linear-gradient(135deg,#a0622d,#7a4218);background-image:repeating-linear-gradient(95deg,rgba(255,255,255,.04) 0 3px,transparent 3px 11px),linear-gradient(135deg,#a0622d,#7a4218);
  box-shadow:inset 0 2px 0 rgba(255,255,255,.15),0 10px 26px rgba(0,0,0,.25)}
.mca-plateau-titre{font-size:12.5px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#fde68a}
.mca-calcul .mca-plateau-titre,.mca-courrier .mca-plateau-titre{color:#92400e}
.mca-parole{display:flex;gap:10px;align-items:flex-start;background:#fffdf7;border-radius:12px;padding:10px 12px;box-shadow:0 3px 10px rgba(0,0,0,.18)}
.mca-parole img{width:46px;height:46px;border-radius:50%;object-fit:cover;flex-shrink:0}
.mca-parole-ico{font-size:30px;flex-shrink:0}
.mca-parole p{margin:0;font-size:16px;line-height:1.45}
.mca-cartes{display:flex;flex-direction:column;gap:8px}
.mca-carte-rep{font:inherit;font-size:15px;text-align:left;display:flex;gap:10px;align-items:flex-start;border:0;border-radius:10px;padding:11px 12px;cursor:pointer;
  background:var(--mca-papier);color:#1f2937;box-shadow:0 3px 0 #d6c7a6,0 6px 14px rgba(0,0,0,.18);transform:rotate(var(--r,0deg));transition:transform .2s,box-shadow .2s,opacity .3s;animation:mca-distribue .45s ease both}
.mca-carte-rep:nth-child(2){animation-delay:.08s}.mca-carte-rep:nth-child(3){animation-delay:.16s}
@keyframes mca-distribue{from{opacity:0;transform:translateY(24px) rotate(6deg)}to{opacity:1}}
.mca-carte-rep:hover:not(:disabled){transform:translateY(-3px) rotate(0);box-shadow:0 5px 0 #d6c7a6,0 12px 22px rgba(0,0,0,.24)}
.mca-carte-l{flex-shrink:0;width:26px;height:26px;border-radius:50%;background:var(--mca-bois);color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:13px}
.mca-carte-rep.mca-porte .mca-carte-l{background:#334155}
.mca-carte-rep.mca-bon{background:#dcfce7;box-shadow:0 3px 0 #86efac}
.mca-carte-rep.mca-faux{background:#fee2e2;box-shadow:0 3px 0 #fca5a5;animation:mca-secoue .4s ease}
.mca-carte-rep.mca-eteint{opacity:.45}
.mca-reaction{display:flex;flex-direction:column;gap:8px;animation:pdl-entree .4s ease}
.mca-rep-dit{margin:0;background:#fff;border-radius:10px;padding:8px 12px;font-size:15px;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.mca-entete .mca-plateau{background:linear-gradient(135deg,#475569,#1e293b)}
.mca-parti{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:12px;background:#f1f5f9;border-radius:14px}
.mca-parti span{font-size:48px;animation:mca-pop .5s ease}
.mca-parti p{margin:0;font-size:14px}

/* --- la fiche caractère --- */
.mca-fiche{display:flex;gap:16px;align-items:stretch;flex-wrap:wrap}
.mca-fiche-photo{flex:0 0 190px;max-width:100%}
.mca-fiche-photo img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:12px;box-shadow:0 8px 20px rgba(0,0,0,.25);transform:rotate(-2deg)}
.mca-fiche-corps{flex:1 1 260px;min-width:0;background:#fffdf5;border:1px dashed #d6c7a6;border-radius:10px;padding:12px 14px}
.mca-fiche-corps small{font-weight:700;color:#92400e}
.mca-fiche-corps h3{margin:4px 0 2px;font-family:Fraunces,Georgia,serif;font-size:22px}
.mca-fiche-role{margin:0 0 8px;color:#64748b;font-size:14px}
.mca-fiche-corps p{margin:6px 0;font-size:15px}
.mca-fiche-tic{background:#fef3c7;border-radius:8px;padding:6px 8px}

/* --- l'offre --- */
.mca-prix{display:flex;gap:12px;flex-wrap:wrap}
.mca-prix>div{flex:1 1 160px;background:#fffdf7;border-radius:12px;padding:10px;text-align:center;box-shadow:0 3px 10px rgba(0,0,0,.15)}
.mca-prix small{display:block;font-size:12px;font-weight:700;color:#92400e;text-transform:uppercase}
.mca-prix-sien b{font-size:24px;color:#7c2d12}
.mca-prix-reglage{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:4px}
.mca-prix-reglage b{font-size:22px;color:var(--mca-encre);min-width:120px}
.mca-prix-reglage button{font:inherit;font-size:22px;font-weight:800;width:42px;height:42px;border-radius:50%;border:0;background:var(--mca-encre);color:#fff;cursor:pointer}
.mca-offre-btns{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.mca-plateau .pdl-aide{color:#fde7c4}
.mca-porte{background:#334155 !important;color:#fff !important}

/* --- les clauses --- */
.mca-clauses{display:flex;flex-direction:column;gap:10px}
.mca-clauses-liste{display:flex;flex-direction:column;gap:8px}
.mca-clause{font:inherit;font-size:15px;text-align:left;display:flex;flex-wrap:wrap;gap:8px;align-items:center;border:2px solid #e7dcc5;border-radius:10px;padding:10px 12px;background:var(--mca-papier);cursor:pointer;transition:border-color .2s,transform .2s}
.mca-clause:hover:not(:disabled){transform:translateX(4px)}
.mca-clause.mca-on{border-color:var(--mca-encre);background:#eff6ff}
.mca-clause.mca-bon{border-color:#22c55e;background:#f0fdf4}
.mca-clause.mca-faux{border-color:#ef4444;background:#fef2f2}
.mca-clause-case{font-size:18px}
.mca-clause span:nth-child(2){flex:1 1 200px}
.mca-clause em{flex-basis:100%;font-size:13px;color:#475569}

/* --- la signature --- */
.mca-signer{display:flex;flex-direction:column;gap:12px;align-items:center}
.mca-contrat-apercu{max-width:520px;width:100%}
.mca-sig-zone{display:block;width:100%;max-width:360px;height:110px;margin:6px auto 0;background:#fff;border:2px dashed #93c5fd;border-radius:10px;touch-action:none;cursor:crosshair}
.mca-bandeau{background:linear-gradient(90deg,var(--mca-bois-fonce),var(--mca-bois)) !important}
.mca-bandeau-rouge{background:linear-gradient(90deg,#7f1d1d,#b91c1c) !important}
.mca-contrat ol{margin:4px 0;padding-left:20px}
.mca-sig-bloc{display:flex;gap:14px;flex-wrap:wrap;margin-top:10px}
.mca-sig-bloc>div{flex:1 1 160px;border-top:1px solid #cbd5e1;padding-top:4px}
.mca-sig-bloc small{display:block;font-size:11px;color:#64748b}
.mca-sig-bloc img{max-width:180px;height:60px;object-fit:contain}
.mca-sig-texte{font-family:"Brush Script MT","Segoe Script",cursive;font-size:24px;color:var(--mca-encre)}
.mca-sig-texte.mca-autre{color:#334155}
.mca-tampon{color:#b91c1c;border-color:#b91c1c}

/* --- la pente de la filière --- */
.mca-pente-jeu{display:flex;flex-direction:column;gap:10px}
.mca-banc{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;min-height:20px}
.mca-bloc{font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;width:130px;padding:8px;border:0;border-radius:8px;cursor:pointer;color:#fff7ed;
  background:linear-gradient(160deg,#b7773d,#7a4218);box-shadow:0 4px 0 #4a2410,0 6px 12px rgba(0,0,0,.25);transition:transform .2s}
.mca-bloc span{font-size:24px}.mca-bloc b{font-size:14px}.mca-bloc i{font-size:11.5px;opacity:.9;text-align:center}
.mca-bloc.mca-sel{transform:translateY(-6px) scale(1.05);outline:3px solid #fde047}
.mca-pente{position:relative;display:flex;flex-direction:column;gap:6px;padding:10px;border-radius:14px;background:linear-gradient(180deg,#bbf7d0 0%,#86efac 35%,#fde68a 75%,#7dd3fc 100%)}
.mca-pente-ciel,.mca-pente-mer{font-size:13px;font-weight:800;color:#14532d;text-align:left}
.mca-pente-mer{color:#0c4a6e;text-align:right}
.mca-marche{font:inherit;display:flex;align-items:center;gap:10px;min-height:46px;border:2px dashed rgba(0,0,0,.25);border-radius:10px;background:rgba(255,255,255,.6);cursor:pointer;
  margin-left:calc(var(--i) * 4.5%);width:calc(100% - 27%);padding:6px 10px;text-align:left;transition:background .2s}
.mca-marche small{font-weight:800;color:#64748b;width:18px}
.mca-marche.mca-pleine{border-style:solid;background:#fff7ed}
.mca-marche.mca-fixe{border-style:solid;background:#78350f;color:#fff}
.mca-marche.mca-fixe small{color:#fde68a}
.mca-marche em{margin-left:auto;font-size:11px;font-weight:800;font-style:normal;color:#fde68a}
.mca-marche.mca-cible{background:rgba(254,243,199,.9);animation:mca-clignote 1.2s infinite}
.mca-marche.mca-faux{background:#fee2e2;border-color:#ef4444}
.mca-marche.mca-bon{border-color:#16a34a}
.mca-vide{color:#94a3b8}
.mca-pente-sens{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:13px;font-weight:700}
.mca-pente-sens span{background:#f1f5f9;border-radius:8px;padding:6px 10px}

/* --- l'interrogatoire du devis --- */
.mca-interro{display:flex;flex-direction:column;gap:14px;width:100%}
.mca-questions{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.mca-question{font:inherit;font-size:14px;text-align:left;border:0;border-radius:10px;padding:9px 10px;background:var(--mca-papier);cursor:pointer;box-shadow:0 2px 0 #d6c7a6;transition:transform .2s}
.mca-question:hover:not(:disabled){transform:translateY(-2px)}
.mca-question.mca-faite{opacity:.5}
.mca-question.mca-trouve{opacity:1;background:#fef3c7;box-shadow:0 2px 0 #f59e0b}
.mca-devis{position:relative;background:#fff;border-radius:6px;padding:14px 16px;box-shadow:0 2px 0 #e5e7eb,0 10px 24px rgba(0,0,0,.18);font-size:14px;transform:rotate(-.5deg)}
.mca-devis-tete{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;border-bottom:3px solid var(--mca-encre);padding-bottom:6px;margin-bottom:6px}
.mca-devis-tete b{color:var(--mca-encre);letter-spacing:.04em}
.mca-devis table{width:100%;border-collapse:collapse}
.mca-devis td{border-bottom:1px solid #e5e7eb;padding:5px 4px}
.mca-devis td:last-child{text-align:right;font-weight:700}
.mca-cache{margin-top:8px;padding:8px 10px;border:2px solid #dc2626;border-radius:8px;background:#fef2f2;color:#7f1d1d;transform:rotate(var(--r));animation:mca-tampon .5s cubic-bezier(.3,1.6,.5,1) both}
.mca-cache b{display:block;font-size:12.5px;text-transform:uppercase}
@keyframes mca-tampon{from{opacity:0;transform:scale(1.6) rotate(-8deg)}to{opacity:1}}

/* --- le test à l'aveugle --- */
.mca-toucher{display:flex;flex-direction:column;gap:12px}
.mca-plateaux{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mca-plateau-bois{font:inherit;min-height:130px;border:0;border-radius:12px;cursor:pointer;padding:14px;display:flex;flex-direction:column;gap:8px;justify-content:center;text-align:center;color:#fff;transition:transform .3s}
.mca-plateau-bois b{font-size:18px}
.mca-plateau-bois span,.mca-plateau-bois i{font-size:14px;background:rgba(0,0,0,.35);border-radius:8px;padding:6px}
.mca-plateau-bois:hover{transform:perspective(500px) rotateX(10deg)}
.mca-cire{background:repeating-linear-gradient(88deg,#8a4b1f 0 6px,#9c5a28 6px 9px,#7a4218 9px 17px,#a86532 17px 20px);box-shadow:inset 0 0 30px rgba(0,0,0,.35)}
.mca-laque{background:linear-gradient(120deg,rgba(255,255,255,.55) 0 18%,transparent 19% 60%,rgba(255,255,255,.35) 61% 64%,transparent 65%),repeating-linear-gradient(88deg,#b45309 0 8px,#c2410c 8px 16px);box-shadow:inset 0 0 0 3px rgba(255,255,255,.4)}
.mca-plateau-bois.mca-touche{transform:scale(.98)}
.mca-verdict-plateau{margin:0;font-weight:700;background:#fff7ed;border-radius:10px;padding:8px 12px}
.mca-avis-liste{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.mca-avis{background:#fff;border-radius:10px;padding:10px 12px;box-shadow:0 4px 12px rgba(0,0,0,.15);transform:rotate(var(--r));animation:mca-tampon .5s ease both}
.mca-avis span{color:#f59e0b;font-size:13px}
.mca-avis p{margin:4px 0;font-size:14px}
.mca-avis i{font-size:12px;color:#64748b}

/* --- les calculs --- */
.mca-calcul{display:flex;flex-direction:column;gap:10px}
.mca-rappel{background:#eff6ff;border-left:4px solid var(--mca-encre);border-radius:8px;padding:8px 12px;font-size:14px;line-height:1.5}
.mca-calcul-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.mca-calcul-saisie input{font:inherit;font-size:20px;width:170px;padding:8px 10px;border:2px solid #cbd5e1;border-radius:10px}

/* --- le courrier --- */
.mca-courrier{display:flex;flex-direction:column;gap:10px}
.mca-lettre-tombe{position:relative;background:var(--mca-papier);border-radius:4px;padding:14px 16px 18px;box-shadow:0 10px 24px rgba(0,0,0,.2);animation:mca-tombe .7s cubic-bezier(.2,1.3,.4,1) both;transform-origin:top center}
@keyframes mca-tombe{from{opacity:0;transform:translateY(-60px) rotate(-10deg)}to{opacity:1;transform:rotate(-.8deg)}}
.mca-lettre-de{font-size:13px;font-weight:800;color:#92400e;text-transform:uppercase;letter-spacing:.03em}
.mca-lettre-tombe p{margin:6px 0 0;font-size:16px;line-height:1.5}
.mca-etiquette-collee{position:absolute;right:10px;bottom:-12px;padding:5px 10px;border-radius:6px;font-size:13px;font-weight:800;transform:rotate(-3deg);animation:mca-tampon .45s ease both}
.mca-etiquette-collee.mca-bon{background:#dcfce7;color:#14532d}
.mca-etiquette-collee.mca-faux{background:#fee2e2;color:#7f1d1d}
.mca-etiquettes{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px}
.mca-etiquette{font:inherit;font-size:14px;text-align:left;border:2px solid #e2e8f0;border-radius:8px;padding:8px 10px;background:#fff;cursor:pointer}
.mca-etiquette.mca-bon{border-color:#22c55e;background:#f0fdf4}
.mca-etiquette.mca-faux{border-color:#ef4444;background:#fef2f2}
.mca-etiquette.mca-eteint{opacity:.45}

/* --- le schéma de la filière --- */
.mca-filiere{width:100%;max-width:100%;color:#1f2937;background:rgba(255,255,255,.96);border-radius:14px;padding:12px;box-shadow:0 8px 22px rgba(0,0,0,.2);min-width:0}
.mca-filiere-titre{font-weight:800;font-size:14px;margin-bottom:8px}
.mca-filiere-chaine{display:flex;gap:16px;overflow-x:auto;padding:4px 2px 10px}
.mca-maillon{position:relative;flex:1 0 82px;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;padding:8px 4px;border-radius:10px;
  border:3px solid var(--c);background:color-mix(in srgb,var(--c) 14%,#fff);animation:pdl-entree .5s ease both;animation-delay:calc(var(--i) * .06s);transition:background .6s,border-color .6s}
.mca-maillon-ico{font-size:24px}
.mca-maillon b{font-size:12.5px;line-height:1.2}
.mca-maillon i{font-size:10.5px;font-style:normal;font-weight:700;color:var(--c)}
.mca-maillon.mca-coeur{box-shadow:0 0 0 3px #fde68a}
.mca-m-confie{border-style:dashed}
.mca-fil{font-size:10px;color:#1e40af;font-weight:700}
.mca-fil.mca-integre{color:#7c2d12}
.mca-fissure{font-size:10px;font-style:normal;color:#b91c1c;font-weight:800}
.mca-fleche{position:absolute;right:-15px;top:40%;font-size:13px;color:#94a3b8}
.mca-filiere-soutien{margin-top:4px;font-size:12.5px;font-weight:700;padding:6px 10px;border-radius:8px;border:2px solid var(--c);background:color-mix(in srgb,var(--c) 10%,#fff)}
.mca-legende{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px;font-size:11.5px}
.mca-legende span::before{content:"";display:inline-block;width:10px;height:10px;border-radius:3px;background:var(--c);margin-right:4px;vertical-align:-1px}
.mca-filiere.mca-petit{padding:8px}
.mca-filiere.mca-petit .mca-maillon{flex-basis:66px}
.mca-filiere.mca-petit .mca-maillon-ico{font-size:18px}

/* --- le hub : la table des rendez-vous --- */
.mca-decor-hub .pdl-decor-contenu{max-width:1060px}
.mca-hub{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:16px;width:100%;align-items:start}
.mca-hub-carnet{background:var(--mca-papier);background-image:repeating-linear-gradient(transparent 0 31px,#eadfc6 31px 32px);border-left:10px solid var(--mca-bois);border-radius:6px 14px 14px 6px;padding:12px;box-shadow:0 14px 30px rgba(0,0,0,.35);display:flex;flex-direction:column;gap:8px;transform:rotate(-.6deg)}
.mca-hub-carnet-tete{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
.mca-hub-carnet-tete b{font-family:Fraunces,Georgia,serif;font-size:19px}
.mca-hub-carnet-tete i{font-size:12px;color:#92400e}
.mca-hub-aide{margin:0;font-size:13px;color:#7c2d12;font-weight:600}
.mca-rdv{font:inherit;display:grid;grid-template-columns:76px 40px 1fr auto;gap:8px;align-items:center;text-align:left;border:0;background:rgba(255,255,255,.75);border-radius:10px;padding:6px 8px;cursor:pointer;transition:transform .2s,background .2s}
.mca-rdv:disabled{cursor:not-allowed;opacity:.5}
.mca-rdv:hover:not(:disabled){transform:translateX(4px);background:#fff}
.mca-rdv img{width:40px;height:40px;border-radius:50%;object-fit:cover}
.mca-rdv-quand{font-size:11px;font-weight:800;color:#92400e;line-height:1.2}
.mca-rdv-txt{min-width:0}
.mca-rdv-txt b{display:block;font-size:14.5px}
.mca-rdv-txt i{display:block;font-size:11.5px;color:#64748b;font-style:normal}
.mca-rdv.mca-prochain{box-shadow:0 0 0 3px #f59e0b;animation:mca-respire 2s ease-in-out infinite}
@keyframes mca-respire{50%{box-shadow:0 0 0 6px rgba(245,158,11,.35)}}
.mca-rdv.mca-fait .mca-rdv-txt b{text-decoration:line-through;text-decoration-color:rgba(124,45,18,.5)}
.mca-rdv-tampon{font-style:normal;font-size:11px;font-weight:800;color:#15803d;border:2px solid #15803d;border-radius:6px;padding:2px 5px;transform:rotate(-6deg);white-space:nowrap}
.mca-rdv-clos{font-style:normal}
.mca-hub-droite{display:flex;flex-direction:column;gap:12px;min-width:0}
.mca-indic{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
.mca-indic span{background:rgba(15,23,42,.85);color:#fff;border-radius:10px;padding:8px 10px;font-size:12.5px;display:flex;flex-direction:column;gap:2px}
.mca-indic b{font-size:16px;letter-spacing:.05em}
.mca-indic .mca-alerte{background:#991b1b}
.mca-memoire{background:rgba(255,255,255,.92);border-radius:12px;padding:8px 10px;font-size:13px}
.mca-memoire>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.mca-memo{display:inline-flex;align-items:center;gap:2px;border-radius:30px;padding:2px 6px 2px 2px;background:#f1f5f9;font-size:16px}
.mca-memo img{width:30px;height:30px;border-radius:50%;object-fit:cover}
.mca-hub-journal{background:rgba(255,255,255,.92);border-radius:12px;padding:8px 12px;font-size:13px}
.mca-hub-journal ul{margin:4px 0 0;padding-left:18px}

/* --- l'entrée d'une étape, le bravo, la fin --- */
.mca-tm-photo{width:110px;height:110px;border-radius:50%;object-fit:cover;border:4px solid #fde68a;box-shadow:0 8px 20px rgba(0,0,0,.4);animation:mca-pop .6s ease}
.mca-bravo{width:100%;max-width:760px;min-width:0}
.mca-bravo>*{max-width:100%;min-width:0}
.mca-bravo-pct{font-size:28px;color:#fde68a}
.mca-change{width:100%;display:flex;flex-direction:column;gap:4px;background:rgba(255,255,255,.12);border-radius:12px;padding:10px 14px;font-size:14px;text-align:left}
.mca-change i{opacity:.9}
.mca-fin-carte{max-width:760px;width:100%;min-width:0;background:rgba(255,255,255,.96);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:10px;align-items:center;text-align:center;animation:mca-pose .7s ease}
.mca-fin-carte small{font-weight:800;color:#92400e;text-transform:uppercase}
.mca-fin-carte h2{margin:0;font-family:Fraunces,Georgia,serif}
.mca-manuscrit p{font-size:16px}
.mca-table-doc{width:100%;border-collapse:collapse;font-size:14px}
.mca-table-doc td{border-bottom:1px solid #e5e7eb;padding:5px 4px}
.mca-table-doc td:last-child{text-align:right;font-weight:700}
.mca-table-doc tr.mca-total td{font-weight:800;background:#fef3c7}
.mca-journal-doc{font-size:13px;padding-left:18px}

/* --- téléphone --- */
@media (max-width:760px){
  .mca-table{grid-template-columns:1fr}
  .mca-visage{flex-direction:row;flex-wrap:wrap;justify-content:center;text-align:left}
  .mca-visage-cadre,.mca-visage-cadre img,.mca-visage-tel{width:92px;height:92px}
  .mca-visage-emoji{width:40px;height:40px;font-size:26px}
  .mca-visage .mca-jauges{flex:1 1 180px}
  .mca-hub{grid-template-columns:1fr}
  .mca-plateaux{grid-template-columns:1fr}
  .mca-rdv{grid-template-columns:62px 34px 1fr auto}
  .mca-rdv img{width:34px;height:34px}
  .mca-marche{width:calc(100% - 10%);margin-left:calc(var(--i) * 1.6%)}
  .mca-filiere-chaine{gap:12px}
  .mca-maillon{flex-basis:70px}
}
/* ==== mca : fin des styles ==== */
/* ==== mc9 : debut des styles ====
   « Kout Sizo ! » — préfixe mc9-. Hérite des styles pdl- de Péi Délices (le
   conteneur porte les deux classes : .pdl.mc9). Couleurs : le bleu canard
   de la vitrine de Tonton, le rouge des flamboyants, le laiton du Velours.
   Tous les états portent le préfixe (piège N) : mc9-opt-on, mc9-garde… */
.mc9 .pdl-cta{background:linear-gradient(135deg,#14b8a6,#0e7490)}
.mc9 .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(14,116,144,.45)}
.mc9 .pdl-cta.alt{background:#fff;color:#0f172a}
.mc9-hud-jour{margin:0 auto;font-size:13px;font-weight:700;color:#99f6e4;text-align:center;line-height:1.2}
.mc9-etape{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%;max-width:900px;margin:0 auto}
.mc9-large{max-width:1100px;padding:12px 10px;background:linear-gradient(180deg,#0f172a,#134e4a);min-height:min(80vh,780px);box-sizing:border-box}
.mc9-large>*{width:100%}
.mc9-large .pdl-cta:not(.petit){align-self:center;width:auto}
.mc9-petit{font-size:12.5px;opacity:.8;margin:4px 0}
.mc9-lien{background:none;border:0;color:#0e7490;text-decoration:underline;cursor:pointer;font:inherit;font-size:13px;margin-left:8px}

/* --- les fiches de leçon, sous six formes --- */
.mc9-fiche-pliee{display:flex;flex-direction:column;gap:4px;align-items:flex-start;text-align:left;font:inherit;border:0;cursor:pointer;
  border-radius:14px;padding:18px 20px;max-width:560px;width:100%;box-shadow:0 14px 34px rgba(0,0,0,.35);transform:rotate(-1.2deg);transition:transform .2s;background:#fff;color:#0f172a}
.mc9-fiche-pliee:hover{transform:rotate(0) scale(1.02)}
.mc9-fiche-pliee b{font-size:18px}.mc9-fiche-pliee span{font-size:13.5px;color:#475569}
.mc9-fiche-pliee em{font-style:normal;font-size:13px;color:#0e7490;font-weight:700;animation:pdl-clig 1.6s ease-in-out infinite}
.mc9-fiche{background:#fff;color:#0f172a;border-radius:14px;padding:18px 20px;max-width:820px;width:100%;box-sizing:border-box;box-shadow:0 14px 34px rgba(0,0,0,.35);
  animation:mc9-deplie .6s cubic-bezier(.2,.8,.2,1);transform-origin:top center}
@keyframes mc9-deplie{from{transform:perspective(900px) rotateX(-75deg);opacity:0}to{transform:none;opacity:1}}
.mc9-fiche-tete{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.04em}
.mc9-fiche h3{margin:8px 0 6px;font-size:20px}
.mc9-fiche ul{margin:0 0 12px;padding-left:20px;display:flex;flex-direction:column;gap:7px}
.mc9-fiche li{font-size:15px;line-height:1.5;animation:pdl-entree .5s ease both}
.mc9-forme-carnet{background:#fdf6e3;background-image:repeating-linear-gradient(180deg,transparent 0 27px,#c7d7e8 27px 28px);border-left:10px solid #9a3412}
.mc9-forme-carnet li{font-family:"Segoe Print","Comic Sans MS",cursive,inherit;color:#1e3a8a}
.mc9-forme-journal{background:#f5f5f4;border-top:6px double #1c1917}
.mc9-forme-journal h3{font-family:Georgia,serif;font-size:22px}
.mc9-forme-journal li{font-family:Georgia,serif}
.mc9-forme-carte{background:#1c1917;color:#fde68a;border:2px solid #b45309}
.mc9-forme-carte h3,.mc9-forme-carte li,.mc9-forme-carte b{color:#fde68a}
.mc9-forme-carte .mc9-fiche-tete,.mc9-forme-carte.mc9-fiche-pliee span{color:#d6a95b}
.mc9-forme-carte li{font-family:Georgia,serif}
.mc9-forme-miroir{background:linear-gradient(135deg,#cbd5e1,#f1f5f9 40%,#cbd5e1);border:8px solid #78350f}
.mc9-forme-miroir li{font-family:"Segoe Print","Comic Sans MS",cursive,inherit;color:#0f172a}
.mc9-forme-lettre{background:#fffdf7;border:1px solid #e7e5e4}
.mc9-forme-lettre li{font-family:Georgia,serif}
.mc9-forme-ardoise{background:#1f2937;color:#f8fafc;border:10px solid #92400e}
.mc9-forme-ardoise h3,.mc9-forme-ardoise li,.mc9-forme-ardoise b,.mc9-forme-ardoise.mc9-fiche-pliee span{color:#f8fafc}
.mc9-forme-ardoise li{font-family:"Segoe Print","Comic Sans MS",cursive,inherit}
.mc9-forme-ardoise .mc9-fiche-tete{color:#cbd5e1}

/* ==================================================================
   LA RUE — 2D en CSS, vue de côté.
   ================================================================== */
.mc9-tycoon{display:flex;flex-direction:column;gap:8px;color:#fff}
.mc9-barre{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;background:rgba(2,6,23,.75);border-radius:12px;padding:8px 10px}
.mc9-horloge{display:flex;flex-direction:column;gap:3px;min-width:92px}
.mc9-horloge b{font-size:17px;font-variant-numeric:tabular-nums}
.mc9-jauge-jour{display:block;height:5px;border-radius:3px;background:rgba(255,255,255,.18);overflow:hidden}
.mc9-jauge-jour i{display:block;height:100%;background:linear-gradient(90deg,#fbbf24,#f97316)}
.mc9-kpi{display:flex;flex-direction:column;line-height:1.15;background:rgba(255,255,255,.07);border-radius:9px;padding:4px 9px}
.mc9-kpi span{font-size:11px;opacity:.75}.mc9-kpi b{font-size:15px;font-variant-numeric:tabular-nums}
.mc9-kpi-bon b,b.mc9-kpi-bon,.mc9-kpi-bon{color:#4ade80}
.mc9-kpi-mal b,b.mc9-kpi-mal,.mc9-kpi-mal{color:#f87171}
.mc9-vitesses{display:flex;gap:4px;margin-left:auto}
.mc9-prix-rapide>div{display:flex;align-items:center;gap:6px}
.mc9-prix-rapide .mc9-pm{width:28px;height:28px;font-size:16px;background:rgba(255,255,255,.95)}
.mc9-prix-rapide b{min-width:40px;text-align:center}
.mc9-v{min-width:36px;height:34px;border-radius:9px;border:0;background:rgba(255,255,255,.12);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.mc9-v-on{background:#14b8a6}

.mc9-rue{position:relative;height:300px;border-radius:14px;overflow:hidden;background:#7dd3fc;user-select:none}
.mc9-ciel{position:absolute;inset:0;background:linear-gradient(180deg,#38bdf8 0%,#bae6fd 55%,#fde68a 100%)}
.mc9-montagne{position:absolute;left:-5%;right:-5%;top:22px;height:90px;background:#5b8a72;opacity:.55;
  clip-path:polygon(0 100%,8% 55%,18% 70%,30% 18%,40% 50%,52% 30%,63% 62%,75% 12%,86% 48%,100% 35%,100% 100%)}
.mc9-flamboyant{position:absolute;bottom:58px;width:80px;height:120px;z-index:1}
.mc9-flamboyant::before{content:"";position:absolute;left:36px;bottom:0;width:9px;height:60px;background:#6b4423;border-radius:4px}
.mc9-flamboyant::after{content:"";position:absolute;left:0;top:0;width:80px;height:66px;border-radius:50%;
  background:radial-gradient(circle at 30% 40%,#ef4444 0 18%,transparent 19%),radial-gradient(circle at 65% 35%,#f97316 0 16%,transparent 17%),radial-gradient(circle at 50% 60%,#dc2626 0 22%,transparent 23%),#15803d;
  animation:mc9-vent 5s ease-in-out infinite alternate;transform-origin:bottom center}
@keyframes mc9-vent{to{transform:rotate(2.5deg) scale(1.02)}}
.mc9-fl-1{left:-22px}.mc9-fl-2{right:-26px}
.mc9-trottoir{position:absolute;left:0;right:0;bottom:36px;height:26px;background:linear-gradient(180deg,#d6d3d1,#a8a29e);z-index:2}
.mc9-chaussee{position:absolute;left:0;right:0;bottom:0;height:36px;background:#3f3f46;z-index:6;overflow:hidden}
.mc9-vehicule{position:absolute;top:2px;font-size:26px;line-height:1;animation:mc9-roule 9s linear infinite;left:-12%}
.mc9-veh-1{animation-duration:7s}
.mc9-veh-2{animation-duration:11s;animation-delay:-4s;top:6px;font-size:22px}
.mc9-veh-3{animation-name:mc9-roule-inv;animation-duration:16s;animation-delay:-9s;font-size:30px;top:-2px}
.mc9-veh-4{animation-name:mc9-roule-inv;animation-duration:9s;animation-delay:-2s;font-size:22px;top:8px}
@keyframes mc9-roule{from{left:-12%;transform:scaleX(-1)}to{left:108%;transform:scaleX(-1)}}
@keyframes mc9-roule-inv{from{left:108%}to{left:-12%}}
.mc9-chaussee i{position:absolute;left:0;right:0;top:16px;height:3px;background:repeating-linear-gradient(90deg,#fafaf9 0 26px,transparent 26px 52px)}

.mc9-facade{position:absolute;bottom:62px;width:28%;height:172px;background:#f8fafc;border-radius:6px 6px 0 0;z-index:3;
  box-shadow:inset 0 -6px 0 rgba(0,0,0,.08),0 4px 10px rgba(0,0,0,.15);color:#0f172a}
.mc9-facade-flash{background:#fff1f2}
.mc9-facade-velours{background:#3b2414}
.mc9-facade-moi{background:#ecfeff}
.mc9-decor-0{background:#e2e8f0}
.mc9-decor-1{background:#fef3c7}
.mc9-decor-2{background:#292524}
.mc9-store{position:absolute;left:-4%;right:-4%;top:30px;height:22px;border-radius:0 0 10px 10px;
  background:repeating-linear-gradient(90deg,var(--c) 0 14px,#fff 14px 28px);box-shadow:0 4px 6px rgba(0,0,0,.2)}
.mc9-enseigne{position:absolute;left:6%;right:6%;top:4px;height:22px;border-radius:5px;background:var(--c);color:#fff;font-weight:800;
  font-size:13px;letter-spacing:.06em;display:grid;place-items:center;text-transform:uppercase;white-space:nowrap;overflow:hidden}
.mc9-facade-velours .mc9-enseigne{background:#b45309;font-family:Georgia,serif;font-style:italic;text-transform:none;letter-spacing:.02em}
.mc9-vitre{position:absolute;left:6%;width:58%;top:58px;bottom:8px;border-radius:4px;background:linear-gradient(160deg,rgba(186,230,253,.9),rgba(224,242,254,.55));
  border:3px solid rgba(15,23,42,.35);overflow:hidden;display:flex;flex-direction:column;justify-content:space-between}
.mc9-decor-2 .mc9-vitre,.mc9-facade-velours .mc9-vitre{background:linear-gradient(160deg,rgba(251,191,36,.55),rgba(120,53,15,.65));border-color:#b45309}
.mc9-decor-1 .mc9-vitre{background:linear-gradient(160deg,rgba(254,243,199,.95),rgba(187,247,208,.7))}
.mc9-chaises{display:flex;flex-wrap:wrap;gap:1px;padding:3px;font-size:16px;line-height:1}
.mc9-chaises i{font-style:normal;transition:transform .3s}
.mc9-chaise-occ{animation:mc9-coupe .7s ease-in-out infinite alternate}
@keyframes mc9-coupe{to{transform:translateY(-2px) rotate(-6deg)}}
.mc9-slogan{font-size:10.5px;font-weight:700;background:rgba(255,255,255,.85);color:#0f172a;padding:2px 4px;line-height:1.2}
.mc9-slogan b{color:#9a3412}
.mc9-porte{position:absolute;right:8%;width:22%;top:64px;bottom:0;border-radius:4px 4px 0 0;background:#78350f;border:3px solid rgba(0,0,0,.25);border-bottom:0}
.mc9-facade-flash .mc9-porte{background:#be123c}
.mc9-facade-moi .mc9-porte{background:#0e7490}
.mc9-etiquette{position:absolute;right:2%;top:56px;background:#facc15;color:#0f172a;font-weight:900;font-size:15px;padding:3px 7px;border-radius:6px;
  transform:rotate(8deg);box-shadow:0 3px 6px rgba(0,0,0,.25);z-index:2}
.mc9-ferme{background:#cbd5e1}
.mc9-ferme .mc9-enseigne{background:#64748b}
.mc9-ferme .mc9-store{background:repeating-linear-gradient(90deg,#94a3b8 0 14px,#e2e8f0 14px 28px)}
.mc9-rideau{position:absolute;left:6%;right:6%;top:58px;bottom:0;background:repeating-linear-gradient(180deg,#9ca3af 0 7px,#6b7280 7px 9px)}
.mc9-piece{position:absolute;left:40%;top:40px;font-weight:900;color:#16a34a;font-size:15px;text-shadow:0 1px 0 #fff;animation:mc9-monte 1.4s ease-out forwards;z-index:4;pointer-events:none}
@keyframes mc9-monte{from{transform:translateY(0);opacity:1}to{transform:translateY(-46px);opacity:0}}

/* --- les passants : une silhouette en trois morceaux --- */
.mc9-pass{position:absolute;bottom:44px;width:20px;height:58px;margin-left:-10px;z-index:5;transition:left .1s linear;transform:scale(1.25);transform-origin:bottom center}
.mc9-pass>i{position:absolute;left:50%;transform:translateX(-50%);display:block}
.mc9-pass-tete{top:8px;width:13px;height:13px;border-radius:50%;background:#8d5a3b;box-shadow:0 -3px 0 1px #1c1917}
.mc9-pass-corps{top:21px;width:18px;height:20px;border-radius:7px 7px 3px 3px;background:var(--c)}
.mc9-pass-jambes{top:40px;width:12px;height:17px;background:linear-gradient(90deg,#1e293b 0 45%,transparent 45% 55%,#1e293b 55%)}
.mc9-look-1 .mc9-pass-tete{background:#c08457}
.mc9-look-2 .mc9-pass-tete{background:#5c3a24}
.mc9-look-3 .mc9-pass-tete{background:#e0ac83}
.mc9-look-2 .mc9-pass-corps{border-radius:4px}
.mc9-seg-b .mc9-pass-tete{box-shadow:0 -3px 0 4px #1c1917}
.mc9-seg-e .mc9-pass-corps{background:linear-gradient(90deg,var(--c) 0 40%,#fff 40% 60%,var(--c) 60%)}
.mc9-seg-p.mc9-look-1 .mc9-pass-tete{box-shadow:0 -4px 0 0 #dc2626}
.mc9-pass-marche,.mc9-pass-part,.mc9-pass-sortie,.mc9-pass-colere{animation:mc9-pas .38s ease-in-out infinite alternate}
@keyframes mc9-pas{from{transform:scale(1.25)}to{transform:scale(1.25) translateY(-2px)}}
.mc9-pass-marche .mc9-pass-jambes,.mc9-pass-part .mc9-pass-jambes,.mc9-pass-sortie .mc9-pass-jambes,.mc9-pass-colere .mc9-pass-jambes{animation:mc9-jambes .38s steps(2) infinite}
@keyframes mc9-jambes{50%{background:linear-gradient(90deg,#1e293b 0 35%,transparent 35% 65%,#1e293b 65%)}}
.mc9-pass-file{bottom:46px;transform:scale(1.15)}
.mc9-pass-hesite .mc9-pass-tete{animation:mc9-hesite .6s ease-in-out infinite alternate}
@keyframes mc9-hesite{from{transform:translateX(-60%)}to{transform:translateX(-40%)}}
.mc9-pass-bulle{position:absolute;bottom:62px;left:50%;transform:translateX(-50%);background:#fff;color:#0f172a;border-radius:12px;padding:2px 6px;
  font-size:15px;line-height:1.1;white-space:nowrap;box-shadow:0 3px 8px rgba(0,0,0,.25);display:flex;align-items:center;gap:3px;animation:mc9-pop .3s ease}
.mc9-pass-bulle small{font-size:10px;font-weight:700}
.mc9-pass-bulle::after{content:"";position:absolute;left:50%;bottom:-5px;margin-left:-5px;border:5px solid transparent;border-top-color:#fff;border-bottom:0}
@keyframes mc9-pop{from{transform:translateX(-50%) scale(.3);opacity:0}}
.mc9-tampon-milieu{position:absolute;left:50%;top:10px;transform:translateX(-50%) rotate(-6deg);z-index:8;border:3px solid #dc2626;color:#dc2626;background:rgba(255,255,255,.88);
  font-weight:900;font-size:17px;padding:4px 12px;border-radius:8px;letter-spacing:.05em;text-transform:uppercase;animation:mc9-tamp .4s ease}
@keyframes mc9-tamp{from{transform:translateX(-50%) rotate(-6deg) scale(2.2);opacity:0}}
.mc9-voile{position:absolute;inset:0;z-index:10;background:rgba(2,6,23,.62);display:grid;place-items:center;padding:10px;overflow:auto}
.mc9-depart{background:#fff;color:#0f172a;border-radius:14px;padding:14px 16px;max-width:620px;width:100%;box-sizing:border-box;box-shadow:0 18px 40px rgba(0,0,0,.4);animation:pdl-entree .4s ease}
.mc9-depart h3{margin:0 0 6px;font-size:18px}
.mc9-depart p{margin:4px 0;font-size:14px;line-height:1.45}
.mc9-alerte{border:3px solid #dc2626}
.mc9-legende{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:8px 0}
.mc9-legende span{display:flex;flex-direction:column;gap:2px;background:#f1f5f9;border-radius:9px;padding:6px;border-left:5px solid var(--c);font-size:13px}
.mc9-legende small{font-size:11.5px;color:#475569;line-height:1.3}
.mc9-legende i{display:none}
.mc9-pause{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:9}

.mc9-sous-rue{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:8px}
.mc9-fil{background:rgba(2,6,23,.6);border-radius:12px;padding:8px 10px;min-height:120px}
.mc9-fil>b{font-size:13px;color:#99f6e4}
.mc9-fil p{margin:4px 0;font-size:13px;line-height:1.35;animation:pdl-entree .35s ease}
.mc9-fil p i{font-style:normal;font-weight:700}
.mc9-tiroir{background:#f8fafc;color:#0f172a;border-radius:12px;padding:6px 10px}
.mc9-tiroir summary{cursor:pointer;font-weight:800;font-size:14px;padding:4px 0}

/* --- les réglages --- */
.mc9-reglages{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px;padding:6px 0}
.mc9-reg{display:flex;flex-direction:column;gap:5px;min-width:0}
.mc9-reg>label{font-size:13px;font-weight:800;color:#0f172a}
.mc9-reg>label i{font-style:normal;font-weight:600;color:#64748b;font-size:12px}
.mc9-reg-prix{grid-column:1/-1}
.mc9-prix-ligne{display:flex;align-items:center;gap:8px}
.mc9-prix-ligne input{flex:1;min-width:0;accent-color:#0e7490;height:28px}
.mc9-pm{width:36px;height:36px;border-radius:50%;border:2px solid #0e7490;background:#fff;color:#0e7490;font-size:20px;font-weight:900;cursor:pointer;line-height:1}
.mc9-pm:disabled{opacity:.35;cursor:not-allowed}
.mc9-prix-val{font-size:24px;min-width:62px;text-align:right;color:#0e7490;font-variant-numeric:tabular-nums}
.mc9-riposte .mc9-prix-val,.mc9-tycoon .mc9-riposte .mc9-prix-val{color:#5eead4}
.mc9-opts{display:flex;flex-wrap:wrap;gap:5px}
.mc9-opts-col{flex-direction:column}
.mc9-opt{flex:1 1 120px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:1px;text-align:left;font:inherit;font-size:12.5px;
  border:2px solid #cbd5e1;background:#fff;color:#0f172a;border-radius:10px;padding:6px 8px;cursor:pointer;transition:border-color .15s,background .15s}
.mc9-opt small{font-size:11px;color:#64748b;line-height:1.25}
.mc9-opt:hover:not(:disabled){border-color:#14b8a6}
.mc9-opt-on{border-color:#0e7490;background:#ccfbf1;box-shadow:0 0 0 2px rgba(14,116,144,.25)}
.mc9-opt:disabled{opacity:.45;cursor:not-allowed}

/* --- la carte de positionnement --- */
.mc9-carto{background:#fff;color:#0f172a;border-radius:12px;padding:8px;display:flex;flex-direction:column;gap:4px}
.mc9-carto-plan{position:relative;height:170px;border-radius:8px;overflow:hidden;
  background:linear-gradient(45deg,rgba(217,119,6,.18) 0 30%,rgba(220,38,38,.14) 30% 68%,rgba(124,58,237,.18) 68%)}
.mc9-carto-petit .mc9-carto-plan{height:130px}
.mc9-carto-z{position:absolute;font-size:11px;font-weight:800;opacity:.75}
.mc9-z-couts{left:6px;bottom:4px;color:#b45309}
.mc9-z-diff{right:6px;top:4px;color:#6d28d9}
.mc9-z-milieu{left:50%;top:50%;transform:translate(-50%,-50%);color:#b91c1c}
.mc9-carto-pt{position:absolute;width:22px;height:22px;margin:0 0 -11px -11px;border-radius:50%;color:#fff;font-style:normal;font-weight:800;font-size:11px;
  display:grid;place-items:center;border:2px solid #fff;box-shadow:0 2px 5px rgba(0,0,0,.3);transition:left .4s,bottom .4s}
.mc9-carto-moi{background:#0e7490;width:28px;height:28px;margin:0 0 -14px -14px;font-size:14px;z-index:2}
.mc9-carto-alerte{animation:mc9-alerte 0.9s ease-in-out infinite}
@keyframes mc9-alerte{50%{box-shadow:0 0 0 7px rgba(220,38,38,.35)}}
.mc9-carto-focal{position:absolute;left:6px;top:4px;font-size:11px;font-weight:800;color:#0f766e;background:rgba(255,255,255,.85);border-radius:6px;padding:1px 5px}
.mc9-carto-axes{display:flex;justify-content:space-between;font-size:11px;color:#64748b}
.mc9-carto-zone{font-size:13px;font-weight:800;color:var(--c)}

/* --- le ticket de caisse --- */
.mc9-ticket{background:#fff;color:#1c1917;font-family:"Courier New",ui-monospace,monospace;font-size:13px;padding:14px 14px 18px;max-width:420px;width:100%;box-sizing:border-box;
  margin:0 auto;box-shadow:0 12px 26px rgba(0,0,0,.3);
  -webkit-mask:linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat,radial-gradient(circle 6px at 8px 100%,transparent 98%,#000) bottom/16px 8px repeat-x;
  mask:linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat,radial-gradient(circle 6px at 8px 100%,transparent 98%,#000) bottom/16px 8px repeat-x}
.mc9-ticket-anim{animation:mc9-imprime 1.1s cubic-bezier(.2,.8,.2,1);width:100%}
@keyframes mc9-imprime{from{clip-path:inset(0 0 100% 0);transform:translateY(-20px)}to{clip-path:inset(0 0 0 0)}}
.mc9-ticket-tete{display:flex;flex-direction:column;align-items:center;gap:1px;text-align:center;border-bottom:1px dashed #a8a29e;padding-bottom:6px;margin-bottom:6px}
.mc9-ticket-tete b{font-size:16px;letter-spacing:.08em}.mc9-ticket-tete span{font-size:11.5px}
.mc9-ticket table{width:100%;border-collapse:collapse}
.mc9-ticket td{padding:2px 0;vertical-align:top}
.mc9-ticket td:last-child{text-align:right;white-space:nowrap;padding-left:8px}
.mc9-ticket-sous td{font-size:11.5px;color:#57534e}
.mc9-ticket-trait td{border-top:1px dashed #a8a29e;padding-top:5px}
.mc9-ticket-total td{border-top:2px solid #1c1917;font-weight:900;font-size:15px;padding-top:5px}
.mc9-ticket-pos td{color:#15803d}.mc9-ticket-neg td{color:#b91c1c}
.mc9-ticket-zone{margin-top:8px;text-align:center;font-weight:800;color:var(--c);border:2px solid var(--c);border-radius:6px;padding:3px}
.mc9-ticket-pied{text-align:center;font-size:11px;color:#78716c;margin:8px 0 0}

/* --- lundi : le test de la copie --- */
.mc9-copie{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%}
.mc9-copie .pdl-consigne{background:rgba(255,255,255,.92);color:#0f172a;border-radius:10px;padding:8px 12px}
.mc9-copie-grille{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;width:100%}
.mc9-carte-atout{position:relative;display:flex;gap:8px;align-items:flex-start;text-align:left;font:inherit;font-size:13.5px;line-height:1.35;background:#fff;color:#0f172a;
  border:2px solid #e2e8f0;border-radius:12px;padding:10px;cursor:pointer;min-height:84px;transition:transform .15s,border-color .15s;overflow:hidden}
.mc9-carte-atout:hover:not(:disabled){transform:translateY(-2px)}
.mc9-bouclier{font-size:20px;flex:none}
.mc9-garde{border-color:#0e7490;background:#ecfeff}
.mc9-tamp{position:absolute;right:6px;bottom:6px;font-style:normal;font-weight:900;font-size:10.5px;padding:2px 6px;border-radius:5px;border:2px solid currentColor;
  transform:rotate(-5deg);animation:mc9-tamp2 .35s ease;background:rgba(255,255,255,.9)}
@keyframes mc9-tamp2{from{transform:rotate(-5deg) scale(2.4);opacity:0}}
.mc9-incopiable .mc9-tamp{color:#15803d}.mc9-copiee .mc9-tamp{color:#b91c1c}
.mc9-copiee{filter:grayscale(.5)}
.mc9-verdict{position:absolute;right:8px;top:6px;font-style:normal;font-weight:900;font-size:16px}

/* --- les calculs --- */
.mc9-calcul{display:flex;flex-direction:column;gap:8px;width:100%;max-width:720px;background:#fff;color:#0f172a;border-radius:14px;padding:12px 14px;box-sizing:border-box}
.mc9-rappel{background:#fef9c3;border-left:5px solid #ca8a04;border-radius:8px;padding:7px 10px;font-size:14px}
.mc9-calcul-ligne{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mc9-calcul-ligne input{font:inherit;font-size:18px;width:140px;max-width:100%;padding:8px 10px;border-radius:10px;border:2px solid #94a3b8}
.mc9-riposte{background:rgba(2,6,23,.75);color:#fff;border-radius:14px;padding:12px 14px;width:100%;max-width:640px;box-sizing:border-box;display:flex;flex-direction:column;gap:8px}
.mc9-riposte .pdl-aide{color:#e2e8f0}
.mc9-courbe{width:100%;height:auto;background:rgba(255,255,255,.06);border-radius:10px}
.mc9-zero{stroke:#94a3b8;stroke-dasharray:4 4}
.mc9-ligne{fill:none;stroke:#fbbf24;stroke-width:3}
.mc9-point{fill:#14b8a6;stroke:#fff;stroke-width:2}
.mc9-axe{fill:#cbd5e1;font-size:11px}
.mc9-riposte-res{font-size:16px;margin:0}

/* --- mercredi : la balance du client --- */
.mc9-balance{display:flex;flex-direction:column;gap:10px;width:100%;align-items:center}
.mc9-balance .pdl-consigne{background:rgba(255,255,255,.93);color:#0f172a;border-radius:10px;padding:8px 12px}
.mc9-balance-jeu{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:10px;width:100%}
.mc9-balance-opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:6px}
.mc9-bopt{display:flex;flex-direction:column;gap:2px;text-align:left;font:inherit;font-size:13px;background:#fff;color:#0f172a;border:2px solid #e2e8f0;border-radius:10px;padding:7px 9px;cursor:pointer}
.mc9-bopt small{color:#64748b;font-size:11.5px}
.mc9-bopt-base{background:#f1f5f9;cursor:default}
.mc9-bopt-on{border-color:#0e7490;background:#ccfbf1}
.mc9-bopt em{font-style:normal;font-weight:800;font-size:12px;animation:mc9-pop2 .4s ease}
@keyframes mc9-pop2{from{transform:scale(.4);opacity:0}}
.mc9-reac-bon{color:#15803d}.mc9-reac-mal{color:#b91c1c}
.mc9-plateau{background:rgba(255,255,255,.95);color:#0f172a;border-radius:12px;padding:12px;display:flex;flex-direction:column;align-items:center;gap:6px}
.mc9-fleau{display:flex;justify-content:space-between;width:100%;max-width:280px;border-top:5px solid #78350f;padding-top:8px;transition:transform .8s cubic-bezier(.3,1.6,.5,1)}
.mc9-plat{display:flex;flex-direction:column;align-items:center;background:#fde68a;border-radius:0 0 40px 40px;padding:6px 12px 10px;min-width:96px}
.mc9-plat small{font-size:11px}.mc9-plat b{font-size:19px}
.mc9-plat-d{background:#bbf7d0}
.mc9-pied{width:10px;height:44px;background:#78350f;border-radius:3px}
.mc9-marge{font-size:15px;margin:0}

/* --- jeudi : la carte de la rue --- */
.mc9-cartejeu{display:flex;flex-direction:column;gap:10px;align-items:center}
.mc9-cartejeu .pdl-consigne{color:#fff}
.mc9-jetons{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}
.mc9-jeton{display:flex;flex-direction:column;text-align:left;font:inherit;font-size:13px;max-width:240px;background:#fff;color:#0f172a;border:2px solid #e2e8f0;border-radius:10px;padding:7px 9px;cursor:pointer;
  animation:pdl-entree .4s ease both}
.mc9-jeton small{color:#475569;font-size:11.5px;line-height:1.3}
.mc9-jeton-sel{border-color:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.4);transform:translateY(-3px)}
.mc9-zones{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:100%}
.mc9-zone{background:rgba(255,255,255,.93);color:#0f172a;border-radius:12px;border-top:6px solid var(--c);min-height:130px;padding:8px;display:flex;flex-direction:column;gap:5px;cursor:pointer}
.mc9-zone-cible{outline:3px dashed var(--c);outline-offset:-3px}
.mc9-zone-t{font-weight:800;font-size:13px;color:var(--c)}
.mc9-pose{font-size:12.5px;background:#f1f5f9;border-radius:7px;padding:4px 6px;animation:pdl-entree .3s ease}
.mc9-pose-faux{background:#fee2e2;color:#b91c1c;animation:mc9-secoue .5s ease 2}
.mc9-pose-bon{background:#dcfce7}
@keyframes mc9-secoue{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}

/* --- vendredi : le plan --- */
.mc9-plan{display:flex;flex-direction:column;gap:10px;align-items:center;width:100%}
.mc9-plan .pdl-consigne{color:#fff}
.mc9-strats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%}
.mc9-strat{display:flex;flex-direction:column;gap:5px;text-align:left;font:inherit;background:#fff;color:#0f172a;border:0;border-radius:14px;padding:12px;cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,.3);transition:transform .2s}
.mc9-strat:hover{transform:translateY(-4px) rotate(-.5deg)}
.mc9-strat-ico{font-size:34px}
.mc9-strat em{font-style:normal;color:#0e7490;font-weight:700;font-size:13px}
.mc9-strat p{margin:0;font-size:13px;line-height:1.4}
.mc9-plan-grille{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:10px;width:100%;align-items:start}
.mc9-plan-grille>div{background:#f8fafc;color:#0f172a;border-radius:12px;padding:10px;min-width:0}
.mc9-strat-choisie{font-size:15px;margin-bottom:6px}
.mc9-verdict-liste{list-style:none;padding:0;margin:8px 0 0;display:flex;flex-direction:column;gap:4px;font-size:13px}
.mc9-verdict-liste li{border-radius:8px;padding:5px 7px;animation:pdl-entree .3s ease both}
.mc9-v-ok{background:#dcfce7}.mc9-v-ko{background:#fee2e2}
.mc9-verdict-samedi{background:#fff;color:#0f172a;border-radius:14px;padding:14px 16px;max-width:640px;width:100%;box-sizing:border-box}
.mc9-verdict-samedi h3{margin:0 0 6px}
.mc9-verdict-samedi p{margin:5px 0;font-size:14.5px}

/* --- dimanche --- */
.mc9-sixmois{background:#fff;color:#0f172a;border-radius:14px;padding:14px;width:100%;max-width:680px;box-sizing:border-box;display:flex;flex-direction:column;gap:10px;align-items:center}
.mc9-barres{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;width:100%;height:200px}
.mc9-barre-m{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0}
.mc9-barre-zone{flex:1;width:70%;display:flex;align-items:flex-end}
.mc9-barre-zone i{display:block;width:100%;border-radius:6px 6px 0 0;transition:height .6s cubic-bezier(.3,1.4,.5,1)}
.mc9-b-pos{background:linear-gradient(180deg,#2dd4bf,#0e7490)}.mc9-b-neg{background:linear-gradient(180deg,#fca5a5,#dc2626)}
.mc9-barre-m b{font-size:11.5px;white-space:nowrap}.mc9-barre-m span{font-size:11px;color:#64748b}
.mc9-sixmois-total{font-size:16px;margin:0}
.mc9-assemble{display:flex;flex-direction:column;gap:10px;width:100%;max-width:820px}
.mc9-assemble>.pdl-consigne{background:rgba(255,255,255,.92);color:#0f172a;border-radius:10px;padding:8px 12px}
.mc9-copie-finale{background:#fdf6e3;color:#1e3a8a;border-left:10px solid #9a3412;border-radius:10px;padding:10px 14px;font-family:"Segoe Print","Comic Sans MS",cursive,inherit}
.mc9-copie-finale p{margin:5px 0;animation:pdl-entree .4s ease}

/* --- le hub : la rue au repos --- */
.mc9-hub{display:flex;flex-direction:column;gap:10px;padding:10px;background:linear-gradient(180deg,#0f172a,#134e4a);min-height:min(80vh,760px);box-sizing:border-box}
.mc9-hub .mc9-rue{height:280px}
.mc9-hub-titre{position:absolute;left:50%;top:4px;transform:translateX(-50%);z-index:6;display:flex;align-items:baseline;gap:8px;
  background:rgba(2,6,23,.7);color:#fff;border-radius:8px;padding:2px 10px;white-space:nowrap;line-height:1.3}
.mc9-hub-titre b{font-size:13px}.mc9-hub-titre span{font-size:11px;opacity:.8}
.mc9-hub .mc9-facade{height:160px}
.mc9-hub-bas{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:10px}
.mc9-hub-caisse{display:flex;flex-direction:column;gap:3px;background:#fff;color:#0f172a;border-radius:14px;padding:12px}
.mc9-hub-caisse b{font-size:28px;font-variant-numeric:tabular-nums}
.mc9-hub-caisse em{font-style:normal;font-weight:700;color:#0e7490}
.mc9-hub-go{display:flex;flex-direction:column;align-items:flex-start;gap:3px;font:inherit;text-align:left;border:0;border-radius:14px;padding:12px 16px;cursor:pointer;
  background:linear-gradient(135deg,#f97316,#dc2626);color:#fff;box-shadow:0 12px 26px rgba(220,38,38,.35);animation:mc9-respire 2.2s ease-in-out infinite}
@keyframes mc9-respire{50%{transform:scale(1.015)}}
.mc9-hub-go span{font-size:28px}.mc9-hub-go b{font-size:18px}.mc9-hub-go i{font-style:normal;font-size:13px;opacity:.9}
.mc9-semaine{grid-column:1/-1;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.mc9-jour{display:flex;flex-direction:column;align-items:center;gap:1px;font:inherit;border:0;border-radius:10px;padding:7px 3px;background:rgba(255,255,255,.1);color:#fff;cursor:pointer;min-width:0}
.mc9-jour span{font-size:20px}.mc9-jour b{font-size:12.5px}.mc9-jour small{font-size:10.5px;opacity:.8;text-align:center}
.mc9-jour:disabled{opacity:.45;cursor:not-allowed}
.mc9-jour-fait{background:rgba(20,184,166,.35)}
.mc9-jour-ici{background:#f97316}
.mc9-issue{font-size:17px;font-weight:800;color:#0e7490}

/* --- les documents --- */
.mc9-doc{background:#fff;color:#1c1917;font-size:14.5px;line-height:1.5;max-width:640px}
.mc9-doc-tete{border-bottom:3px solid #0e7490;margin-bottom:10px;padding-bottom:6px}
.mc9-doc-logo{display:flex;flex-direction:column}
.mc9-doc-logo b{color:#0e7490;letter-spacing:.08em}.mc9-doc-logo span{font-size:11.5px;color:#64748b}
.mc9-doc-tete h3{margin:6px 0 0;font-size:19px}
.mc9-doc-sous{margin:2px 0 0;font-size:13px;color:#57534e}
.mc9-doc-note{background:#f0fdfa;border-left:4px solid #14b8a6;padding:6px 10px;border-radius:6px;font-size:13.5px}
.mc9-doc li.mc9-ok{color:#15803d}.mc9-doc li.mc9-mal{color:#78716c}
.mc9-acte{position:relative;background:#fffbeb;border:1px solid #fcd34d;padding:6px 10px 18px}
.mc9-acte-nom{font-family:"Segoe Print","Comic Sans MS",cursive,inherit;font-size:26px;text-align:center;color:#1e3a8a;margin:6px 0}
.mc9-signatures{display:flex;justify-content:space-around;margin-top:14px;font-family:"Segoe Print","Comic Sans MS",cursive,inherit;color:#1e3a8a}
.mc9-tampon{position:absolute;right:16px;bottom:18px;border:3px solid #b91c1c;color:#b91c1c;font-weight:900;padding:3px 10px;border-radius:6px;transform:rotate(-12deg);opacity:.85;letter-spacing:.1em}
.mc9-piece-doc>div{position:relative;height:30px;border-radius:15px;overflow:hidden;background:#14b8a6;display:flex;align-items:center;font-size:12px;font-weight:800;color:#fff}
.mc9-piece-doc>div::before{content:"";position:absolute;left:0;top:0;bottom:0;width:var(--p);background:#f97316}
.mc9-piece-doc span{position:relative;padding-left:8px;width:var(--p);white-space:nowrap}
.mc9-piece-doc b{position:relative;margin-left:auto;padding-right:10px}
.mc9-lettre{font-family:Georgia,serif}
.mc9-signature{text-align:right;font-style:italic}
.mc9-carnet-papier{background:#fdf6e3;background-image:repeating-linear-gradient(180deg,transparent 0 27px,#c7d7e8 27px 28px);padding:8px 12px}
.mc9-banque-tete{display:flex;flex-direction:column;border-bottom:2px solid #1e3a8a;margin-bottom:8px;padding-bottom:4px}
.mc9-banque-tete b{color:#1e3a8a}.mc9-banque-tete span{font-size:12px;color:#64748b}
.mc9-journal{font-family:Georgia,serif}
.mc9-journal-tete{display:flex;flex-direction:column;align-items:center;border-bottom:4px double #1c1917;padding-bottom:4px}
.mc9-journal-tete b{font-size:24px;font-style:italic}.mc9-journal-tete span{font-size:11px;color:#57534e}
.mc9-journal h3{font-size:21px;margin:8px 0}
.mc9-journal img{width:100%;border-radius:4px;max-height:280px;object-fit:cover}
.mc9-affiche{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;padding:22px 16px;border-radius:10px;max-width:420px;margin:0 auto;
  background:linear-gradient(180deg,#0e7490,#134e4a);color:#fff;box-shadow:inset 0 0 0 6px rgba(255,255,255,.25)}
.mc9-affiche-couts{background:linear-gradient(180deg,#facc15,#f97316);color:#1c1917}
.mc9-affiche-differenciation{background:linear-gradient(180deg,#292524,#0c0a09);color:#fde68a;font-family:Georgia,serif}
.mc9-affiche-focalisation{background:linear-gradient(180deg,#0d9488,#7c3aed)}
.mc9-affiche-nom{font-size:30px;letter-spacing:.1em}
.mc9-affiche-par{font-size:14px;opacity:.85}
.mc9-affiche-slogan{font-size:19px;font-weight:800;margin:4px 0}
.mc9-affiche-prix{display:flex;flex-direction:column;align-items:center;background:rgba(255,255,255,.18);border-radius:50%;width:120px;height:120px;justify-content:center}
.mc9-affiche-prix b{font-size:38px}.mc9-affiche-prix small{font-size:12px}
.mc9-affiche-adr{font-size:12px;opacity:.85}

/* --- téléphone --- */
@media (max-width:720px){
  .mc9-rue{height:250px}
  .mc9-facade{height:150px;width:30%}
  .mc9-facade.mc9-facade-flash{left:1%!important}.mc9-facade.mc9-facade-velours{left:69%!important}
  .mc9-enseigne{font-size:9.5px;letter-spacing:0}
  .mc9-slogan{font-size:8.5px}
  .mc9-chaises{font-size:12px}
  .mc9-etiquette{font-size:12px;padding:2px 4px}
  .mc9-pass{transform:scale(1);transform-origin:bottom center}
  .mc9-pass-marche,.mc9-pass-part,.mc9-pass-sortie,.mc9-pass-colere{animation:none}
  .mc9-vehicule{font-size:20px}
  .mc9-pass-bulle{font-size:13px}.mc9-pass-bulle small{display:none}
  .mc9-flamboyant{display:none}
  .mc9-kpi{padding:3px 6px}.mc9-kpi b{font-size:13px}
  .mc9-vitesses{margin-left:0;width:100%;justify-content:space-between}
  .mc9-v{flex:1}
  .mc9-sous-rue,.mc9-balance-jeu,.mc9-plan-grille,.mc9-hub-bas{grid-template-columns:1fr}
  .mc9-legende,.mc9-strats{grid-template-columns:1fr}
  .mc9-zones{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mc9-semaine{grid-template-columns:repeat(4,minmax(0,1fr))}
  .mc9-tampon-milieu{font-size:13px}
}
/* ==== mc9 : fin des styles ==== */
/* ==== mt6 : debut des styles ====
   « Alé-Viré ! » — préfixe mt6-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.mt6). Couleurs : le turquoise
   des bus de la régie et l'orange des gilets du dépôt. */
.mt6 .pdl-cta{background:linear-gradient(135deg,#0d9488,#0e7490);box-shadow:0 6px 18px rgba(14,116,144,.32)}
.mt6 .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(14,116,144,.42)}
.mt6 .pdl-cta.alt{background:#fff;color:#0f172a}
.pdl-doc-bandeau.mt6-bandeau{background:linear-gradient(90deg,#0f766e,#f97316)}
.mt6-badge .pdl-badge-logo{color:#0f766e}
.mt6-tampon{position:relative;right:auto;bottom:auto;display:inline-block;margin:6px 0 0 auto;color:#0f766e;border-color:#0f766e}
.mt6-hud-date{flex:1;min-width:0;text-align:center;font-weight:800;font-size:13px;color:#fde68a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mt6-exo{display:flex;flex-direction:column;gap:12px;min-width:0}
.mt6-msg{margin:8px 0 0;padding:9px 12px;border-radius:10px;background:#f1f5f9;font-size:14px;line-height:1.45;animation:mt6-glisse .3s ease}
.mt6-msg.bon{background:#dcfce7;color:#14532d}
.mt6-msg.faux{background:#fee2e2;color:#7f1d1d}
@keyframes mt6-glisse{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

/* --- deux colonnes : le bâtiment à gauche, les commandes à droite --- */
.mt6-jeu2col{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:16px;align-items:start}
.mt6-panneau-cmd{display:flex;flex-direction:column;gap:10px;min-width:0}
@media (max-width:760px){.mt6-jeu2col{grid-template-columns:minmax(0,1fr)}}

/* --- le bâtiment isométrique --- */
.mt6-iso{position:relative;width:100%;min-width:0;border-radius:16px;background:radial-gradient(ellipse at 50% 30%,#e0f2fe,#bae6fd 55%,#7dd3fc);
  box-shadow:inset 0 -30px 40px rgba(14,116,144,.18);overflow:hidden}
.mt6-iso svg{display:block;width:100%;height:auto;max-height:520px}
.mt6-iso.petit{max-width:360px;margin:6px auto;background:rgba(255,255,255,.18)}
.mt6-iso.petit svg{max-height:220px}
.mt6-iso-titre{position:absolute;left:10px;top:8px;right:10px;font-size:12px;font-weight:800;color:#0f172a;background:rgba(255,255,255,.75);
  padding:4px 10px;border-radius:99px;width:max-content;max-width:calc(100% - 20px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;z-index:1}
.mt6-iso-sol{fill:#d6d3d1;stroke:#a8a29e;stroke-width:1}
.mt6-iso-route{fill:#475569}
.mt6-iso-bus{animation:mt6-bus 9s linear infinite}
@keyframes mt6-bus{from{transform:translate(-120px,-70px)}to{transform:translate(260px,150px)}}
.mt6-iso-poteau{stroke:#94a3b8;stroke-width:2}
.mt6-iso-poteau.devant{stroke:#64748b}
.mt6-iso-etage{animation:mt6-pose .55s cubic-bezier(.2,1.4,.4,1) both;transform-box:fill-box}
@keyframes mt6-pose{from{opacity:0;transform:translateY(-30px)}to{opacity:1;transform:none}}
.mt6-iso-etage.cliquable{cursor:pointer}
.mt6-iso-etage.cliquable:hover .mt6-iso-dalle{filter:brightness(1.08);stroke:#f97316;stroke-width:2}
.mt6-iso-dalle,.mt6-iso-face,.mt6-iso-mur{stroke:rgba(15,23,42,.35);stroke-width:.8;stroke-linejoin:round}
.mt6-iso-etage.vide .mt6-iso-dalle,.mt6-iso-etage.vide .mt6-iso-face{stroke:#64748b;stroke-dasharray:5 4;stroke-width:1.4}
.mt6-iso-etage.chantier .mt6-iso-mur{opacity:.55}
.mt6-iso-echafaud{stroke:#f59e0b;stroke-width:2;stroke-dasharray:3 3}
.mt6-iso-etage.alerte .mt6-iso-dalle{animation:mt6-alerte .8s steps(2) infinite}
@keyframes mt6-alerte{0%{fill:#fecaca;stroke:#dc2626;stroke-width:2.5}100%{stroke:#dc2626;stroke-width:2.5}}
.mt6-iso-etage.flash-bon .mt6-iso-dalle{animation:mt6-flash-bon .7s ease}
.mt6-iso-etage.flash-faux{animation:mt6-tremble .4s}
.mt6-iso-etage.flash-faux .mt6-iso-dalle{fill:#fecaca;stroke:#dc2626;stroke-width:2.5}
.mt6-iso-etage.flash-diverge .mt6-iso-dalle{animation:mt6-diverge 1.6s ease-in-out infinite alternate}
@keyframes mt6-flash-bon{0%{fill:#bbf7d0;stroke:#16a34a;stroke-width:3}}
@keyframes mt6-tremble{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
@keyframes mt6-diverge{to{transform:translateX(6px) rotate(1.5deg)}}
.mt6-iso-ico{font-size:15px}
.mt6-iso-plus{font-size:11px;font-weight:800;fill:#0f172a}
.mt6-iso-etiq line{stroke:#334155;stroke-width:1}
.mt6-iso-nom{font-size:12px;font-weight:800;fill:#0f172a;font-family:system-ui,sans-serif}
.mt6-iso-sous{font-size:10px;fill:#475569;font-family:system-ui,sans-serif}
.mt6-agent{animation:mt6-agent .5s ease both}
@keyframes mt6-agent{from{opacity:0;transform:translateY(-12px)}}
.mt6-iso-cable{stroke-width:2.2;stroke:#0f172a}
.mt6-iso-cable.f{stroke:#0f766e;stroke-dasharray:4 3}
.mt6-iso-cable-pt{fill:#0f172a}
.mt6-iso-cable-pt.f{fill:#0f766e}
.mt6-iso-cable-g{animation:mt6-glisse .5s ease both}
.mt6-iso-passerelle{fill:rgba(245,158,11,.55);stroke:#b45309;stroke-width:1.5;animation:mt6-glisse .6s ease both}
.mt6-iso-annexe{animation:mt6-pose .6s ease both}
/* Les jetons : une demande qui monte dans la cage d'ascenseur. */
.mt6-jeton .mt6-jeton-in{animation:mt6-monte 1.6s ease-out forwards;animation-delay:inherit}
.mt6-jeton{animation-delay:inherit}
.mt6-jeton circle{fill:#14b8a6;stroke:#fff;stroke-width:1.5}
.mt6-jeton text{font-size:8px;fill:#fff;font-weight:800}
.mt6-jeton.ok .mt6-jeton-in{animation:mt6-monte 1.6s ease-out forwards,mt6-repart .6s ease-in 2.2s forwards}
.mt6-jeton.bloque circle{fill:#dc2626}
.mt6-jeton.bloque .mt6-jeton-in{animation:mt6-monte 1.6s ease-out forwards,mt6-clignote .5s steps(2) 1.6s infinite}
.mt6-jeton.diverge circle{fill:#f59e0b}
.mt6-jeton.diverge .mt6-jeton-in{animation:mt6-monte 1.6s ease-out forwards,mt6-derive 1.2s ease-in-out 1.6s infinite alternate}
@keyframes mt6-monte{from{transform:translateY(0);opacity:0}15%{opacity:1}to{transform:translateY(var(--dy,0px));opacity:1}}
@keyframes mt6-repart{from{transform:translateY(var(--dy,0px));opacity:1}to{transform:translateY(var(--dy,0px)) translateX(40px);opacity:0}}
@keyframes mt6-clignote{0%{transform:translateY(var(--dy,0px));opacity:1}100%{transform:translateY(var(--dy,0px));opacity:.25}}
@keyframes mt6-derive{0%{transform:translateY(var(--dy,0px)) translateX(0)}100%{transform:translateY(var(--dy,0px)) translateX(-22px)}}

/* --- phase 1 : les tâches et les étages --- */
.mt6-taches{display:flex;flex-wrap:wrap;gap:6px}
.mt6-tache{border:2px solid #e2e8f0;background:#fff;border-radius:10px;padding:7px 10px;font-size:13px;text-align:left;cursor:pointer;
  box-shadow:0 2px 0 #e2e8f0;transition:transform .15s,border-color .15s;max-width:100%}
.mt6-tache.sel{border-color:#f97316;background:#fff7ed;transform:translateY(-2px);box-shadow:0 6px 14px rgba(249,115,22,.25)}
.mt6-tache.rate{border-style:dashed}
.mt6-boutons-etages{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:6px}
.mt6-bt-etage{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:6px;border:0;border-left:6px solid var(--c);background:#f8fafc;
  border-radius:10px;padding:8px 10px;text-align:left;cursor:pointer;font-size:13px}
.mt6-bt-etage:disabled{opacity:.5;cursor:default}
.mt6-bt-etage:hover:not(:disabled){background:#fff7ed}
.mt6-bt-etage i{font-style:normal;font-size:11px;color:#64748b}

/* --- phase 2 : le standard --- */
.mt6-ticket{border-radius:12px;background:#fffbeb;border:2px solid #fcd34d;padding:10px 12px;animation:mt6-tombe .45s cubic-bezier(.2,1.3,.4,1)}
.mt6-ticket.bon{background:#f0fdf4;border-color:#86efac}
.mt6-ticket.faux{animation:mt6-tremble .4s;border-color:#fca5a5}
.mt6-ticket p{margin:4px 0 0;font-size:15px;line-height:1.45}
.mt6-ticket-t{font-size:12px;font-weight:800;color:#92400e;text-transform:uppercase;letter-spacing:.03em}
@keyframes mt6-tombe{from{opacity:0;transform:translateY(-20px) rotate(-2deg)}to{opacity:1;transform:none}}
.mt6-outils{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:6px}
.mt6-outil{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:8px;text-align:left;border:2px solid #e2e8f0;
  background:#fff;border-radius:12px;padding:8px 10px;cursor:pointer;transition:transform .15s}
.mt6-outil:hover:not(:disabled){transform:translateY(-2px);border-color:#0d9488}
.mt6-outil-ico{grid-row:span 2;font-size:24px;align-self:center}
.mt6-outil b{font-size:13px}
.mt6-outil i{font-style:normal;font-size:12px;color:#475569;line-height:1.35}
.mt6-outil.bon{border-color:#16a34a;background:#dcfce7}
.mt6-outil.faux{border-color:#dc2626;background:#fee2e2;animation:mt6-tremble .4s}
.mt6-bouchon{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-top:8px;padding:8px 10px;border-radius:12px;background:#1e293b;color:#fff;font-size:13px}
.mt6-bouchon i{font-style:normal;font-size:18px;animation:mt6-glisse .3s ease both}

/* --- phase 3 : le câblage --- */
.mt6-cablage{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:14px;align-items:start}
@media (max-width:860px){.mt6-cablage{grid-template-columns:minmax(0,1fr)}}
.mt6-org-cadre{border-radius:14px;background:#0b1e3f;background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);
  background-size:24px 24px;padding:6px;min-width:0}
.mt6-org{display:block;width:100%;height:auto}
@media (max-width:700px){.mt6-org-cadre{overflow-x:auto;-webkit-overflow-scrolling:touch}.mt6-org-cadre .mt6-org{min-width:680px}.mt6-org-cadre::after{content:"↔ fais glisser le plan";display:block;text-align:center;color:#93c5fd;font-size:11px;padding-top:2px}}
.mt6-org-noeud{cursor:pointer}
.mt6-org-noeud rect{stroke:rgba(255,255,255,.4);stroke-width:2;transition:stroke .15s}
.mt6-org-noeud:hover rect{stroke:#fbbf24}
.mt6-org-noeud.on rect{stroke:#f97316;stroke-width:5}
.mt6-org-noeud.cible rect{stroke-dasharray:6 4}
.mt6-org-nom.petit{font-size:12.5px}
.mt6-org-nom{font-size:14px;font-weight:800;fill:#fff;font-family:system-ui,sans-serif}
.mt6-org-sous{font-size:12px;fill:rgba(255,255,255,.85);font-family:system-ui,sans-serif}
.mt6-org-fil{fill:none;stroke:#e2e8f0;stroke-width:3.5}
.mt6-org-fil.f{stroke:#5eead4;stroke-dasharray:10 7}
.mt6-org-fil.neuf{stroke-dasharray:1400;stroke-dashoffset:1400;animation:mt6-trace .9s ease forwards}
.mt6-org-fil.f.neuf{stroke-dasharray:10 7;animation:mt6-glisse .6s ease}
.mt6-org-fil.rouge{stroke:#ef4444;stroke-width:5;animation:mt6-clignote2 .35s steps(2) 4}
@keyframes mt6-trace{to{stroke-dashoffset:0}}
@keyframes mt6-clignote2{50%{opacity:.2}}
.mt6-org-doc{background:#0b1e3f;border-radius:10px;margin:8px 0}
.mt6-cahier{background:#eff6ff;border:2px dashed #93c5fd;border-radius:12px;padding:10px 12px;font-size:13px}
.mt6-cahier ul{margin:6px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}
.mt6-cahier li{line-height:1.4}
.mt6-cahier li.ok{color:#166534}
.mt6-compteur{margin:0;font-size:14px}
.mt6-choix-fil{display:flex;flex-direction:column;gap:6px;background:#fff7ed;border-radius:12px;padding:10px;border:2px solid #fdba74;animation:mt6-tombe .3s ease}
.mt6-choix-fil p{margin:0;font-size:14px}
.mt6-fil-bt{display:flex;align-items:center;gap:10px;border:2px solid #e2e8f0;border-radius:10px;background:#fff;padding:8px 10px;cursor:pointer;font-weight:700;font-size:14px;text-align:left}
.mt6-fil-bt:hover{border-color:#0d9488}
.mt6-fil-bt span{display:inline-block;width:44px;height:0;border-top:4px solid #0f172a;flex:none}
.mt6-fil-bt.f span{border-top:4px dashed #0f766e}
.mt6-fil-annul{border:0;background:none;color:#64748b;text-decoration:underline;cursor:pointer;align-self:flex-start}

/* --- phase 4 : les maquettes --- */
.mt6-maquettes{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:6px}
.mt6-maquette{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;border:2px solid #e2e8f0;background:#fff;border-radius:12px;
  padding:8px 6px;cursor:pointer;font-size:12px;transition:transform .15s}
.mt6-maquette span{font-size:24px}
.mt6-maquette:hover:not(:disabled){transform:translateY(-2px)}
.mt6-maquette.on{border-color:#f97316;background:#fff7ed}
.mt6-maquette.vu i{position:absolute;right:6px;top:4px;font-style:normal;color:#16a34a;font-weight:800}
.mt6-maquette:disabled{opacity:.6;cursor:default}
.mt6-maquette-def{background:#f8fafc;border-radius:12px;padding:10px 12px;animation:mt6-tombe .35s ease}
.mt6-maquette-def h4{margin:0 0 6px;font-size:15px}
.mt6-maquette-def p{margin:4px 0;font-size:14px;line-height:1.45}
.mt6-maquette-def .plus{color:#166534}
.mt6-maquette-def .moins{color:#9a3412}

/* --- phase 5 : les robinets de décision --- */
.mt6-decisions{display:flex;flex-direction:column;gap:6px}
.mt6-decision{border:2px solid #e2e8f0;border-radius:12px;padding:8px 10px;background:#fff;transition:border-color .2s}
.mt6-decision>p{margin:0 0 6px;font-weight:700;font-size:14px}
.mt6-decision.bon{border-color:#86efac;background:#f0fdf4}
.mt6-decision.haut,.mt6-decision.retard{border-color:#fca5a5;background:#fef2f2}
.mt6-decision.bas{border-color:#fcd34d;background:#fffbeb}
.mt6-niveaux{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;background:#e2e8f0;border-radius:9px;padding:3px}
.mt6-niveaux button{border:0;background:transparent;border-radius:7px;padding:6px 2px;font-size:12px;font-weight:700;cursor:pointer;color:#334155}
.mt6-niveaux button.on{background:#0f766e;color:#fff;box-shadow:0 2px 6px rgba(15,118,110,.35)}
.mt6-niveaux button:disabled{cursor:default}
.mt6-verdict{margin:6px 0 0;font-size:13px;line-height:1.4}
.mt6-indics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:8px}
.mt6-indics>div{border-radius:12px;padding:8px;background:#f1f5f9;text-align:center;display:flex;flex-direction:column;animation:mt6-tombe .4s ease}
.mt6-indics b{font-size:20px}
.mt6-indics span{font-size:11px;color:#475569}
.mt6-indics .vert{background:#dcfce7}.mt6-indics .vert b{color:#15803d}
.mt6-indics .orange{background:#ffedd5}.mt6-indics .orange b{color:#c2410c}
.mt6-indics .rouge{background:#fee2e2}.mt6-indics .rouge b{color:#b91c1c;animation:mt6-clignote2 1s steps(2) infinite}
.mt6-indics.col{grid-template-columns:repeat(2,minmax(0,1fr));margin:0}
.mt6-indics.col>div{background:rgba(255,255,255,.92)}
.mt6-fiche-deleg{border:2px dashed #0f766e;border-radius:12px;padding:10px 12px;background:#f0fdfa;animation:mt6-tombe .4s ease}
.mt6-fiche-deleg.signe{border-style:solid}
.mt6-fiche-deleg>p{margin:4px 0 8px;font-weight:700}
.mt6-fiche-deleg .pdl-opt{margin-bottom:5px}
.mt6-fiche-deleg-t{font-size:12px;font-weight:800;color:#0f766e;text-transform:uppercase}

/* --- phase 6 : le tableau de bord --- */
.mt6-tdb{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}
@media (max-width:760px){.mt6-tdb{grid-template-columns:minmax(0,1fr)}}
.mt6-tdb-ecran{background:linear-gradient(180deg,#0f172a,#1e293b);border-radius:16px;padding:12px;box-shadow:inset 0 0 0 3px #334155}
.mt6-tdb-titre{color:#5eead4;font-family:"Courier New",monospace;font-weight:800;font-size:12px;margin-bottom:8px;text-align:center}
.mt6-cadrans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.mt6-cadran{display:flex;flex-direction:column;align-items:center;color:#cbd5e1;text-align:center;font-size:11px;border-radius:12px;padding:6px 2px;background:rgba(255,255,255,.04)}
.mt6-cadran svg{width:100%;max-width:120px}
.mt6-cadran b{font-size:12px;color:#fff}
.mt6-cadran span{font-size:18px;font-weight:800;color:#64748b}
.mt6-cadran i{font-style:normal;color:#94a3b8}
.mt6-cadran-fond{fill:none;stroke:#334155;stroke-width:10;stroke-linecap:round}
.mt6-cadran-cible{stroke:#fbbf24;stroke-width:2;stroke-dasharray:3 2}
.mt6-cadran-aiguille{stroke:#64748b;stroke-width:3;stroke-linecap:round;transition:transform 1.2s cubic-bezier(.2,1.3,.4,1)}
.mt6-cadran-axe{fill:#64748b}
.mt6-cadran.vert span{color:#4ade80}.mt6-cadran.vert .mt6-cadran-aiguille{stroke:#4ade80}.mt6-cadran.vert .mt6-cadran-fond{stroke:#14532d}
.mt6-cadran.orange span{color:#fb923c}.mt6-cadran.orange .mt6-cadran-aiguille{stroke:#fb923c}.mt6-cadran.orange .mt6-cadran-fond{stroke:#7c2d12}
.mt6-cadran.rouge span{color:#f87171;animation:mt6-clignote2 .9s steps(2) infinite}.mt6-cadran.rouge .mt6-cadran-aiguille{stroke:#f87171}.mt6-cadran.rouge .mt6-cadran-fond{stroke:#7f1d1d}
.mt6-calcul{display:flex;flex-direction:column;gap:8px;min-width:0}
.mt6-calcul-q{margin:0;font-size:15px;line-height:1.5}
.mt6-formule-bt{align-self:flex-start;border:2px dashed #f59e0b;background:#fffbeb;border-radius:10px;padding:6px 10px;cursor:pointer;font-weight:700}
.mt6-formule{margin:0;padding:8px 10px;border-radius:10px;background:#fffbeb;border-left:4px solid #f59e0b;font-family:"Courier New",monospace;font-size:14px}
.mt6-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mt6-saisie input{width:130px;font-size:20px;padding:8px 10px;border-radius:10px;border:2px solid #cbd5e1;font-weight:800}
.mt6-saisie input:focus{outline:none;border-color:#0d9488}

/* --- phase 7 : la grande réorganisation --- */
.mt6-jetons-chantier{display:flex;gap:6px;font-size:24px}
.mt6-jetons-chantier span{opacity:.2;transition:opacity .2s,transform .2s}
.mt6-jetons-chantier span.plein{opacity:1;transform:scale(1.1)}
.mt6-leviers{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:6px}
.mt6-levier{display:grid;grid-template-columns:auto 1fr;column-gap:8px;text-align:left;border:2px solid #e2e8f0;background:#fff;border-radius:12px;padding:8px 10px;cursor:pointer;transition:transform .15s}
.mt6-levier span{font-size:24px;grid-row:span 2}
.mt6-levier p{margin:0;font-size:13px;line-height:1.4}
.mt6-levier i{grid-column:2;font-style:normal;font-size:12px;margin-top:4px;line-height:1.35}
.mt6-levier:hover:not(:disabled){transform:translateY(-2px)}
.mt6-levier.pris{border-color:#f97316;background:#fff7ed}
.mt6-levier.bon{border-color:#16a34a;background:#f0fdf4}
.mt6-levier.faux{border-color:#dc2626;background:#fef2f2}
.mt6-levier:disabled{cursor:default}

/* --- les leçons, sous quatre habits --- */
.mt6-fiche{border-radius:16px;padding:16px 18px;background:#fff;position:relative}
.mt6-fiche-tete{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#0f766e}
.mt6-fiche h3{margin:6px 0 10px;font-family:Fraunces,Georgia,serif;font-size:clamp(20px,3vw,26px)}
.mt6-fiche ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:8px}
.mt6-fiche-pt{font-size:15px;line-height:1.5;animation:mt6-glisse .45s ease both}
.mt6-plusloin{display:flex;flex-direction:column;gap:2px;margin:8px 0 10px;padding:8px 12px;border-radius:10px;border:2px dashed #6d28d9;background:#f5f3ff;color:#3b0764;font-size:13px;line-height:1.4}
.mt6-plusloin b{font-weight:800;color:#6d28d9}
.mt6-fiche-pt.plusloin{border-left:3px dashed #6d28d9;padding-left:8px;margin-left:-11px}
.mt6-plusloin-pastille{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;background:#ede9fe;color:#6d28d9;font-size:11px;font-weight:800;white-space:normal}
.mt6-fiche-plus{margin-top:12px;border:2px dashed currentColor;background:transparent;color:#0f766e;border-radius:10px;padding:8px 12px;font-weight:800;cursor:pointer}
.mt6-fiche-signe{font-style:italic;text-align:right;margin:10px 0 0}
.mt6-fiche .pdl-cta{margin-top:12px}
.mt6-fiche-panneau{background:repeating-linear-gradient(135deg,#fde68a 0 18px,#fcd34d 18px 36px);padding:8px}
.mt6-fiche-panneau>*{position:relative}
.mt6-fiche-panneau::before{content:"";position:absolute;inset:8px;background:#fffdf5;border-radius:10px}
.mt6-fiche-panneau .mt6-fiche-tete,.mt6-fiche-panneau h3,.mt6-fiche-panneau ol,.mt6-fiche-panneau button,.mt6-fiche-panneau p{margin-left:12px;margin-right:12px}
.mt6-fiche-panneau .mt6-fiche-tete{padding-top:10px}
.mt6-fiche-panneau .pdl-cta{margin-bottom:12px}
.mt6-fiche-plan{background:#1e3a8a;background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
  background-size:20px 20px;color:#e0e7ff}
.mt6-fiche-plan .mt6-fiche-tete,.mt6-fiche-plan .mt6-fiche-plus{color:#93c5fd}
.mt6-fiche-plan h3{color:#fff;font-family:"Courier New",monospace}
.mt6-fiche-carnet{background:#fffef5;background-image:repeating-linear-gradient(#fffef5 0 27px,#bfdbfe 27px 28px);border-left:6px double #f87171;font-family:"Segoe Print","Comic Sans MS",cursive}
.mt6-fiche-carnet .mt6-fiche-pt{line-height:28px}
.mt6-fiche-note{background:#f8fafc;border-top:6px solid #0f766e}

/* --- le chantier (l'écran principal) --- */
.mt6-chantier{width:100%;color:#fff}
.mt6-chantier-tete{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.mt6-chantier-tete h2{font-family:Fraunces,Georgia,serif;font-size:clamp(22px,3.4vw,32px);margin:0;text-shadow:0 4px 20px rgba(0,0,0,.5)}
.mt6-date{background:#f97316;color:#fff;font-weight:900;border-radius:10px;padding:6px 14px;font-size:20px;box-shadow:0 6px 16px rgba(0,0,0,.35);font-family:"Courier New",monospace}
.mt6-chantier-corps{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:14px;align-items:start}
@media (max-width:760px){.mt6-chantier-corps{grid-template-columns:minmax(0,1fr)}}
.mt6-chantier-cote{display:flex;flex-direction:column;gap:10px;min-width:0;color:#0f172a}
.mt6-appel{background:#fff;border-radius:16px;padding:12px 14px;box-shadow:0 12px 30px rgba(0,0,0,.3);animation:mt6-tombe .6s cubic-bezier(.2,1.3,.4,1)}
.mt6-appel-t{font-size:12px;font-weight:800;text-transform:uppercase;color:#c2410c}
.mt6-appel-corps{display:flex;gap:10px;align-items:flex-start;margin:8px 0}
.mt6-appel-corps img{width:56px;height:56px;border-radius:50%;object-fit:cover;flex:none;border:3px solid #fed7aa}
.mt6-appel-corps p{margin:4px 0 0;font-size:14px;line-height:1.45}
.mt6-appel-notion{margin:0 0 8px;font-size:13px;color:#0f766e;font-weight:700}
.mt6-acces-prof{display:flex;flex-wrap:wrap;gap:4px;align-items:center;font-size:12px;background:rgba(255,255,255,.85);border-radius:10px;padding:6px 8px}
.mt6-acces-prof button{border:1px solid #cbd5e1;background:#fff;border-radius:6px;padding:2px 6px;cursor:pointer;font-size:12px}
.mt6-tm-date{display:inline-block;background:#f97316;color:#fff;font-weight:900;font-size:28px;border-radius:12px;padding:6px 18px;font-family:"Courier New",monospace;
  box-shadow:0 8px 20px rgba(0,0,0,.4);animation:mt6-tombe .6s cubic-bezier(.2,1.3,.4,1)}
.mt6-fin-badge{display:flex;flex-direction:column;align-items:center;gap:2px;border-radius:16px;padding:10px 14px;background:#f1f5f9;margin-bottom:8px}
.mt6-fin-badge span{font-size:40px}
.mt6-fin-badge b{font-size:18px}
.mt6-fin-badge i{font-size:12px;color:#475569}
.mt6-fin-badge.roule{background:#dcfce7}
.mt6-fin-badge.embouteillee,.mt6-fin-badge.deux,.mt6-fin-badge.reunions{background:#ffedd5}
.mt6-table{width:100%;border-collapse:collapse;font-size:13px;margin:8px 0}
.mt6-table th,.mt6-table td{border:1px solid #cbd5e1;padding:5px 7px;text-align:left;vertical-align:top}
.mt6-table th{background:#f0fdfa}

/* --- l'encart « 💡 Aide » --- */
.mt6-aide{border:2px solid #fde68a;border-radius:12px;background:#fffbeb;overflow:hidden}
.mt6-aide-t{width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px;border:0;background:transparent;padding:8px 12px;font-weight:800;cursor:pointer;font-size:14px}
.mt6-aide-t span{font-weight:600;font-size:12px;color:#92400e}
.mt6-aide-corps{padding:0 12px 10px}
.mt6-aide-corps p{margin:4px 0 8px;font-size:14px;line-height:1.45}
.mt6-aide-o{display:flex;flex-direction:column;gap:5px}
.mt6-aide-opt{border:2px solid #e2e8f0;background:#fff;border-radius:9px;padding:6px 10px;text-align:left;cursor:pointer;font-size:13px}
.mt6-aide-opt.bon{border-color:#16a34a;background:#dcfce7}
.mt6-aide-opt.faux{border-color:#dc2626;background:#fee2e2}
.mt6-aide-corr{background:#fff;border-radius:9px;padding:6px 10px}
.mt6-aide-re{border:0;background:none;color:#92400e;text-decoration:underline;cursor:pointer;padding:0}
@media (prefers-reduced-motion:reduce){.mt6 *{animation-duration:.01s !important;animation-iteration-count:1 !important}}
/* ==== mt6 : fin des styles ==== */
/* ==== mt5 : debut des styles ====
   « Larout Vétivèr » — préfixe mt5-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.mt5). Couleurs : le vert du
   vétiver, le bleu lagon, l'orange de la navette. */
.mt5 .pdl-cta{background:linear-gradient(135deg,#0f766e,#14532d);box-shadow:0 6px 18px rgba(20,83,45,.35)}
.mt5 .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(20,83,45,.45)}
.mt5 .pdl-cta.alt{background:#fff;color:#14532d}
.pdl-doc-bandeau.mt5-bandeau{background:linear-gradient(90deg,#14532d,#0f766e 60%,#0e7490)}
.mt5-badge .pdl-badge-logo{color:#14532d}
.mt5-prog{font-size:13px;font-weight:700;color:#64748b;margin-bottom:8px}
.mt5-alerte{background:#fff7ed;border:1px solid #fdba74;color:#9a3412;border-radius:10px;padding:8px 10px;font-size:14px;margin:6px 0}
.mt5-compteur{font-size:14px;color:#334155;margin:8px 0}
@keyframes mt5-pop{from{transform:scale(.85);opacity:0}to{transform:none;opacity:1}}

/* --- le tableau de bord, dans l'en-tête --- */
.mt5-hud{flex-wrap:wrap}
.mt5-tdb{display:flex;flex-wrap:wrap;gap:6px;margin:0 auto;justify-content:center}
.mt5-ind{position:relative;display:flex;align-items:center;gap:4px;background:rgba(255,255,255,.1);border-radius:10px;padding:4px 8px;font-size:13px;white-space:nowrap}
.mt5-ind b{font-size:13.5px}
.mt5-ind em{position:absolute;top:-14px;right:-4px;font-style:normal;font-weight:800;font-size:12px;padding:1px 6px;border-radius:99px;animation:mt5-flash 2.6s ease forwards}
.mt5-ind em.plus{background:#22c55e;color:#052e16}
.mt5-ind em.moins{background:#f97316;color:#431407}
@keyframes mt5-flash{0%{transform:translateY(8px) scale(.6);opacity:0}15%{transform:none;opacity:1}80%{opacity:1}100%{transform:translateY(-6px);opacity:0}}
.mt5-bat{display:inline-block;width:34px;height:12px;border:2px solid #e2e8f0;border-radius:3px;position:relative;overflow:hidden}
.mt5-bat i{position:absolute;left:0;top:0;bottom:0;background:#22c55e;transition:width .8s}
.mt5-ind-bat.faible .mt5-bat i{background:#ef4444;animation:mt5-clignote 1s infinite}
.mt5-ind-jour b{font-weight:600}
@keyframes mt5-clignote{50%{opacity:.35}}

/* --- le hub : la carte et son panneau --- */
.mt5-hub{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:14px;padding:14px;background:radial-gradient(circle at 30% 20%,#134e4a,#0f172a 70%);min-height:min(80vh,780px)}
.mt5-hub-carte{min-width:0}
.mt5-willy{display:flex;gap:12px;align-items:center;background:rgba(255,255,255,.95);border-radius:16px;padding:10px 14px;margin-top:12px;box-shadow:0 8px 20px rgba(0,0,0,.3);animation:mt5-pop .4s}
.mt5-willy img{width:58px;height:58px;border-radius:50%;object-fit:cover;border:3px solid #f97316;flex:none}
.mt5-willy p{margin:0;font-size:14.5px;line-height:1.4}
.mt5-willy b{color:#c2410c}
.mt5-legende{color:#cbd5e1;font-size:12px;text-align:center;margin-top:6px}
.mt5-hub-panneau{background:rgba(255,255,255,.97);border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:10px;min-width:0;box-shadow:0 12px 34px rgba(0,0,0,.3)}
.mt5-hub-tete h2{margin:0;font-size:20px;color:#14532d}
.mt5-hub-tete p{margin:2px 0 0;color:#475569;font-size:13.5px}
.mt5-ville-fiche{background:#f0fdfa;border:1px solid #99f6e4;border-radius:14px;padding:10px 12px}
.mt5-ville-fiche h3{margin:0 0 4px;font-size:17px;color:#0f766e}
.mt5-ville-fiche h3 small{font-weight:600;color:#64748b;font-size:12px}
.mt5-ville-fiche p{margin:4px 0;font-size:14px}
.mt5-site-ligne{display:flex;gap:10px;align-items:center;padding:8px 0;border-top:1px dashed #a7f3d0}
.mt5-site-ligne .mt5-site-ico{font-size:24px}
.mt5-site-ligne>div{flex:1;min-width:0;display:flex;flex-direction:column}
.mt5-site-ligne small{color:#475569;font-size:12.5px}
.mt5-site-ligne.fait b{color:#15803d}
.mt5-hub-liste{display:flex;flex-direction:column;gap:4px;max-height:250px;overflow:auto}
.mt5-mini{font:inherit;font-size:12.5px;text-align:left;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:5px 8px;cursor:pointer;display:flex;gap:6px;align-items:center}
.mt5-mini.fait{color:#15803d;background:#f0fdf4}
.mt5-mini.sel{border-color:#0f766e;box-shadow:0 0 0 2px rgba(15,118,110,.2)}

/* --- la carte de l'île (SVG) --- */
.mt5-carte{position:relative;width:100%;border-radius:16px;overflow:hidden;box-shadow:inset 0 0 40px rgba(0,0,0,.35),0 10px 30px rgba(0,0,0,.35);perspective:900px}
.mt5-carte svg{display:block;width:100%;height:auto}
.mt5-deco{font-size:30px;pointer-events:none}
.mt5-bateau{animation:mt5-derive 9s ease-in-out infinite alternate}
.mt5-baleine{font-size:34px;animation:mt5-plonge 7s ease-in-out infinite}
@keyframes mt5-derive{to{transform:translate(26px,6px)}}
@keyframes mt5-plonge{0%,60%,100%{opacity:.9;transform:none}75%{opacity:0;transform:translateY(14px)}}
.mt5-lave{animation:mt5-lave 2.4s ease-in-out infinite}
@keyframes mt5-lave{50%{fill:#fbbf24}}
.mt5-ville{cursor:pointer;outline:none}
.mt5-ville-pin{fill:#fff;stroke:#0f766e;stroke-width:3;transition:transform .2s}
.mt5-ville-halo{fill:#fbbf24;opacity:0}
.mt5-ville.a-voir .mt5-ville-halo{animation:mt5-halo 2s ease-out infinite}
@keyframes mt5-halo{0%{opacity:.6;transform:scale(.6)}100%{opacity:0;transform:scale(1.5)}}
.mt5-ville.fait .mt5-ville-pin{fill:#dcfce7;stroke:#16a34a}
.mt5-ville.choisie .mt5-ville-pin{stroke:#f97316;stroke-width:5}
.mt5-ville:hover .mt5-ville-pin,.mt5-ville:focus .mt5-ville-pin{transform:scale(1.15)}
.mt5-ville-ico{font-size:16px;pointer-events:none}
.mt5-ville-borne{font-size:13px;pointer-events:none}
.mt5-ville-nom{font-size:17px;font-weight:800;fill:#fff;paint-order:stroke;stroke:#0f172a;stroke-width:4px;pointer-events:none}
.mt5-van-ico{font-size:30px}
.mt5-van.roule .mt5-van-ico{animation:mt5-cahot .25s infinite alternate}
@keyframes mt5-cahot{to{transform:translateY(-2px)}}
.mt5-van.roule .mt5-van-ico{transform-box:fill-box}
.mt5-itineraire{stroke-dasharray:14 8;animation:mt5-defile 1s linear infinite}
.mt5-itineraire-prevu{animation:mt5-defile 1.4s linear infinite}
@keyframes mt5-defile{to{stroke-dashoffset:-44}}
/* la chasse aux données */
.mt5-carte-chasse{max-width:720px;margin:6px auto}
.mt5-carte-chasse .mt5-ville.fouille .mt5-ville-pin{fill:#fef3c7;stroke:#d97706}
.mt5-carte-chasse .mt5-ville.trouve .mt5-ville-pin{fill:#dcfce7;stroke:#16a34a;stroke-width:5}
.mt5-carte-chasse .mt5-ville.vide .mt5-ville-pin{fill:#e2e8f0;stroke:#94a3b8}
.mt5-carte-chasse .mt5-ville.oublie .mt5-ville-pin{fill:#fee2e2;stroke:#dc2626;stroke-width:5}

/* --- la carte événement --- */
.mt5-ev-fond{z-index:60;perspective:1200px}
.mt5-ev{position:relative;width:min(460px,92vw);min-height:300px;transform-style:preserve-3d;transition:transform .8s cubic-bezier(.3,1.4,.5,1);transform:rotateY(180deg) translateY(-30px);animation:mt5-tombe .5s ease}
.mt5-ev.retourne{transform:none}
@keyframes mt5-tombe{from{opacity:0;transform:rotateY(180deg) translateY(-160px) rotateZ(-8deg)}}
.mt5-ev-dos,.mt5-ev-face{backface-visibility:hidden;border-radius:20px;box-shadow:0 24px 60px rgba(0,0,0,.45)}
.mt5-ev-dos{position:absolute;inset:0;transform:rotateY(180deg);background:repeating-linear-gradient(45deg,#f97316 0 14px,#ea580c 14px 28px);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;gap:6px}
.mt5-ev-dos b{font-size:64px}
.mt5-ev-dos span{font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.mt5-ev-face{background:#fffaf0;border:4px solid #f97316;padding:18px;position:relative}
.mt5-ev-ico{font-size:44px;text-align:center}
.mt5-ev-face h3{margin:4px 0 8px;text-align:center;color:#9a3412}
.mt5-ev-face p{font-size:15px;line-height:1.5;margin:6px 0}
.mt5-ev-choix{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.mt5-ev-res{animation:mt5-pop .35s ease}
.mt5-ev-lien{background:#ecfeff;border-radius:10px;padding:8px 10px;font-size:13.5px !important;color:#155e75}
.mt5-ev-fx{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0;justify-content:center}
.mt5-ev-fx span{font-weight:800;font-size:13.5px;padding:3px 9px;border-radius:99px}
.mt5-ev-fx span.plus{background:#dcfce7;color:#14532d}
.mt5-ev-fx span.moins{background:#ffedd5;color:#9a3412}

/* --- la leçon : le carnet qui s'ouvre, et l'encart « 💡 Aide » --- */
.mt5-lecon-boite{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%}
.mt5-carnet{position:relative;width:100%;perspective:1400px}
.mt5-carnet-couv{position:absolute;inset:0;z-index:2;background:linear-gradient(135deg,#14532d,#0f766e);border-radius:14px;color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;
  transform-origin:left center;transition:transform 1s ease,opacity 1s;box-shadow:0 8px 20px rgba(0,0,0,.25)}
.mt5-carnet-couv b{font-size:22px}
.mt5-carnet.ouvert .mt5-carnet-couv{transform:rotateY(-110deg);opacity:0;pointer-events:none}
.mt5-carnet-page{background:repeating-linear-gradient(#fffef8 0 27px,#e0f2fe 27px 28px);border-radius:14px;border-left:6px solid #0f766e}
.mt5-carnet-page .pdl-lecon{background:transparent}
.mt5-aide{width:100%;background:#fffbeb;border:2px dashed #f59e0b;border-radius:14px;overflow:hidden}
.mt5-aide-t{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;font:inherit;font-weight:800;color:#92400e;background:none;border:0;padding:10px 14px;cursor:pointer}
.mt5-aide-t span{font-weight:600;font-size:13px;color:#a16207}
.mt5-aide-corps{padding:0 14px 12px;color:#422006}
.mt5-aide-corps p{margin:6px 0}
.mt5-aide-o{display:flex;flex-wrap:wrap;gap:8px}
.mt5-aide-opt{font:inherit;font-size:14px;padding:8px 12px;border-radius:10px;border:2px solid #fcd34d;background:#fff;cursor:pointer;text-align:left}
.mt5-aide-opt.bon{border-color:#16a34a;background:#dcfce7}
.mt5-aide-opt.faux{border-color:#dc2626;background:#fee2e2}
.mt5-aide-corr{font-size:14px}
.mt5-aide-re{font:inherit;font-size:13px;background:none;border:0;color:#a16207;cursor:pointer;text-decoration:underline}

/* --- le calcul --- */
.mt5-formule{margin:8px 0}
.mt5-rappel{background:#fef3c7;border:1px solid #fcd34d;border-left:5px solid #f59e0b;border-radius:10px;padding:10px 14px;margin:6px 0 10px;font-size:15px;line-height:1.5;color:#422006}
.mt5-rappel b:first-child{color:#92400e}
.mt5-formule-btn{font:inherit;font-size:14px;background:#fef9c3;border:1px solid #fde047;border-radius:10px;padding:6px 12px;cursor:pointer}
.mt5-formule p{background:#fefce8;border-radius:10px;padding:8px 10px;margin:0}
.mt5-saisie{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0}
.mt5-saisie input{font:inherit;font-size:18px;width:160px;max-width:100%;padding:10px 12px;border:2px solid #94a3b8;border-radius:10px}
.mt5-saisie input:focus{border-color:#0f766e;outline:none}

/* --- l'avant / après --- */
.mt5-aa-scene{position:relative;height:260px;border-radius:14px;overflow:hidden;margin:10px 0;background:#0f172a}
.mt5-aa-couche{position:absolute;inset:0;background-size:cover;background-position:center}
.mt5-aa-avant{filter:sepia(.75) saturate(.6) brightness(.9)}
.mt5-aa-apres{filter:saturate(1.15) brightness(1.05)}
.mt5-aa-objets{position:absolute;inset:0;display:flex;flex-wrap:wrap;align-content:center;justify-content:center;gap:16px;padding:20px 30%}
.mt5-aa-objets span{font-size:42px;filter:drop-shadow(0 4px 6px rgba(0,0,0,.5));transition:opacity .3s;animation:mt5-flotte 3s ease-in-out infinite;animation-delay:calc(var(--i) * .3s)}
@keyframes mt5-flotte{50%{transform:translateY(-6px) rotate(-3deg)}}
.mt5-aa-etiq{position:absolute;top:10px;background:rgba(15,23,42,.8);color:#fff;font-weight:800;border-radius:10px;padding:5px 10px;display:flex;flex-direction:column;max-width:45%}
.mt5-aa-etiq small{font-weight:500;font-size:11.5px;opacity:.85}
.mt5-aa-etiq.g{left:10px}.mt5-aa-etiq.d{right:10px;background:rgba(15,118,110,.9)}
.mt5-aa-trait{position:absolute;top:0;bottom:0;width:4px;margin-left:-2px;background:#fff;box-shadow:0 0 12px rgba(0,0,0,.6)}
.mt5-aa-perso{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);width:84px;height:84px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 6px 16px rgba(0,0,0,.4);transition:filter .5s}
.mt5-aa-curseur{width:100%;accent-color:#0f766e;height:28px}
.mt5-aa-bornes{display:flex;justify-content:space-between;font-size:12.5px;color:#475569;font-weight:600}
.mt5-aa-axes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0}
.mt5-aa-axe{display:flex;flex-direction:column;gap:6px;background:#f8fafc;border-radius:12px;padding:10px;animation:mt5-pop .4s ease both}
.mt5-aa-b{font:inherit;font-size:13.5px;text-align:left;border-radius:10px;padding:8px 10px;cursor:pointer;line-height:1.35}
.mt5-aa-b.g{background:#f0fdf4;border:2px dashed #86efac}
.mt5-aa-b.l{background:#fff7ed;border:2px dashed #fdba74}
.mt5-aa-b.vu{border-style:solid;cursor:default}

/* --- 1. le tampon à trois têtes --- */
.mt5-tampon-bureau{display:flex;gap:16px;align-items:center;justify-content:center;flex-wrap:wrap;padding:14px;background:linear-gradient(#c49a6c,#a47148);border-radius:14px;margin:8px 0}
.mt5-fiche{position:relative;width:min(360px,100%);min-height:150px;background:#fffdf5;border-radius:6px;padding:14px;box-shadow:0 8px 18px rgba(0,0,0,.3);transform:rotate(-1.5deg);animation:mt5-glisse .45s ease}
@keyframes mt5-glisse{from{transform:translateX(-60px) rotate(-8deg);opacity:0}}
.mt5-fiche small{color:#64748b;font-size:11px;letter-spacing:.04em}
.mt5-fiche p{font-size:15px;line-height:1.45;margin:8px 0 0}
.mt5-empreinte{position:absolute;right:14px;bottom:12px;border:3px solid #0f766e;color:#0f766e;font-weight:900;letter-spacing:.06em;padding:4px 10px;border-radius:6px;transform:rotate(-12deg);font-size:15px;animation:mt5-frappe .3s ease;opacity:.9;background:rgba(255,255,255,.6)}
.mt5-empreinte.mt5-empreinte-faux{border-color:#dc2626;color:#dc2626}
@keyframes mt5-frappe{from{transform:scale(1.8) rotate(-12deg);opacity:0}}
.mt5-tampon-outil{display:flex;flex-direction:column;align-items:center;gap:8px}
.mt5-tampon-outil small{color:#fff !important;text-align:center;max-width:180px}
.mt5-molette{width:52px;height:52px;border-radius:50%;border:3px solid #fff;background:#1e293b;color:#fff;font-size:26px;cursor:pointer}
.mt5-molette span{display:inline-block;transition:transform .35s}
.mt5-tampon-tete{position:relative;border:0;cursor:pointer;background:none;display:flex;flex-direction:column;align-items:center;transition:transform .2s}
.mt5-tampon-manche{width:30px;height:46px;background:linear-gradient(90deg,#7c2d12,#b45309,#7c2d12);border-radius:12px 12px 4px 4px}
.mt5-tampon-tete b{display:block;min-width:150px;padding:10px 8px;border-radius:8px;color:#fff;font-size:14px;letter-spacing:.05em;box-shadow:0 6px 0 rgba(0,0,0,.25)}
.mt5-t0 b{background:#0e7490}.mt5-t1 b{background:#7c3aed}.mt5-t2 b{background:#b45309}
.mt5-tampon-tete.bas{transform:translateY(10px) scale(.96)}
.mt5-tampon-tete:not(:disabled):hover{transform:translateY(-3px)}

/* --- 2. le diagramme des flux --- */
.mt5-horloge{display:inline-block;background:#0f172a;color:#fde68a;font-weight:800;font-variant-numeric:tabular-nums;border-radius:10px;padding:6px 12px;margin:6px 0}
.mt5-horloge.tourne{animation:mt5-clignote 1s infinite}
.mt5-diagramme{display:flex;flex-direction:column;align-items:center;gap:2px;margin:8px 0}
.mt5-etape{position:relative;font:inherit;font-size:14px;display:flex;gap:8px;align-items:center;justify-content:center;width:min(440px,100%);padding:8px 12px;border-radius:10px;border:2px solid #0f766e;background:#f0fdfa;color:#134e4a;animation:mt5-pop .3s ease}
.mt5-etape:disabled{opacity:1;cursor:default}
.mt5-etape.cliquable{cursor:pointer}
.mt5-etape.cliquable:not(:disabled):hover{background:#ccfbf1}
.mt5-etape-decision{border-style:dashed;border-color:#7c3aed;background:#f5f3ff;color:#4c1d95}
.mt5-etape.vide{border-style:dashed;color:#94a3b8;background:#fff}
.mt5-etape.tube{box-shadow:0 0 0 4px rgba(249,115,22,.35);border-color:#f97316}
.mt5-etape.bon{background:#dcfce7;border-color:#16a34a}
.mt5-etape.faux{background:#fee2e2;border-color:#dc2626}
.mt5-tube{position:absolute;right:-30px;font-size:22px;font-style:normal;animation:mt5-cahot .3s infinite alternate}
.mt5-fleche{color:#94a3b8;font-weight:900;line-height:1}
.mt5-fleche.passe{color:#f97316}
.mt5-tas{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:8px}
.mt5-carte-etape{font:inherit;font-size:13.5px;display:flex;gap:6px;align-items:center;max-width:260px;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:10px;padding:7px 10px;cursor:pointer;box-shadow:0 3px 8px rgba(0,0,0,.08)}
.mt5-carte-etape:hover{border-color:#0f766e;transform:translateY(-2px)}
.mt5-carte-etape.faux{animation:mt5-secoue .4s;border-color:#dc2626}
@keyframes mt5-secoue{25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}

/* --- 3. le PGI --- */
.mt5-fenetres{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:10px 0}
.mt5-fenetre{font:inherit;text-align:left;background:#fff;border:2px solid #cbd5e1;border-radius:10px;overflow:hidden;display:flex;flex-direction:column;gap:4px;padding:0 0 8px;font-size:13px}
.mt5-fenetre:disabled{opacity:1;cursor:default}
.mt5-fenetre:not(:disabled){cursor:pointer}
.mt5-fenetre:not(:disabled):hover{border-color:#0f766e}
.mt5-fen-barre{background:#334155;color:#fff;font-size:11.5px;padding:4px 8px;font-weight:700}
.mt5-fenetre small,.mt5-fenetre b{padding:0 8px}
.mt5-fenetre.pleine b{color:#0f766e;animation:mt5-pop .3s}
.mt5-fenetre.bon{border-color:#16a34a;background:#f0fdf4}
.mt5-fenetre.faux{border-color:#dc2626;background:#fef2f2}
.mt5-fenetre.mt5-fen-diverge b{color:#dc2626}
.mt5-pgi-etoile{position:relative;height:320px;max-width:520px;margin:10px auto}
.mt5-pgi-base{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:96px;height:96px;border-radius:50%;background:#0f766e;color:#fff;font-size:34px;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 0 0 10px rgba(15,118,110,.15)}
.mt5-pgi-base small{font-size:11px;font-weight:700}
.mt5-pgi-base.pulse{animation:mt5-pulse 1s ease 3}
@keyframes mt5-pulse{50%{box-shadow:0 0 0 22px rgba(15,118,110,.05)}}
.mt5-module{position:absolute;transform:translate(-50%,-50%);font:inherit;font-size:13px;font-weight:700;width:118px;min-height:62px;background:#fff;border:2px solid #cbd5e1;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px;transition:all .3s}
.mt5-module:disabled{opacity:1;cursor:default}
.mt5-module:not(:disabled){cursor:pointer}
.mt5-module span{font-size:20px}
.mt5-module small{font-weight:600;font-size:11px}
.mt5-module.allume{border-color:#16a34a;background:#f0fdf4;box-shadow:0 0 14px rgba(22,163,74,.35)}
.mt5-module.mt5-module-rouge{border-color:#dc2626;background:#fef2f2;box-shadow:0 0 14px rgba(220,38,38,.3)}
.mt5-module.bon{outline:4px solid #16a34a}
.mt5-module.faux{outline:4px solid #f59e0b}

/* --- 4. la glacière --- */
.mt5-reglages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:8px 0}
.mt5-reglages label{display:flex;flex-direction:column;gap:4px;background:#f0f9ff;border-radius:10px;padding:8px 10px;font-size:14px}
.mt5-reglages input{accent-color:#0e7490}
.mt5-courbe{width:100%;height:auto;background:#0f172a;border-radius:12px;margin:6px 0}
.mt5-grille{stroke:#334155;stroke-width:1}
.mt5-limite{stroke:#ef4444;stroke-width:2;stroke-dasharray:6 4}
.mt5-seuil{stroke:#fbbf24;stroke-width:2.5}
.mt5-trace{fill:none;stroke:#38bdf8;stroke-width:2.5;stroke-linejoin:round}
.mt5-trace.pale{opacity:.35}
.mt5-zone-blanche{fill:#64748b;opacity:.25}
.mt5-petit{fill:#cbd5e1;font-size:11px}
.mt5-cloche{font-size:15px;animation:mt5-pop .3s}

/* --- 5. la météo des tubes --- */
.mt5-barres{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;align-items:end;margin:10px 0}
.mt5-sem{display:flex;flex-direction:column;align-items:center;gap:4px}
.mt5-sem-zone{position:relative;width:100%;height:170px;background:#f1f5f9;border-radius:8px;overflow:visible}
.mt5-sem.ici .mt5-sem-zone{background:#e0f2fe;box-shadow:0 0 0 2px #0ea5e9}
.mt5-sem-reel{position:absolute;left:18%;right:18%;bottom:0;background:linear-gradient(#0f766e,#14b8a6);border-radius:6px 6px 0 0;animation:mt5-monte .8s ease;display:flex;justify-content:center}
.mt5-sem-reel.mt5-sem-pic{background:linear-gradient(#dc2626,#f97316)}
.mt5-sem-reel small{color:#fff;font-weight:700;font-size:11px;margin-top:2px}
@keyframes mt5-monte{from{transform:scaleY(0);transform-origin:bottom}}
.mt5-sem-prevu{position:absolute;left:4%;right:4%;border-top:3px dashed #7c3aed;z-index:1}
.mt5-sem-prevu small{position:absolute;top:-17px;left:0;right:0;text-align:center;font-size:10.5px;color:#5b21b6;font-weight:700;white-space:nowrap}
.mt5-info{background:#f8fafc;border-left:4px solid #94a3b8;border-radius:8px;padding:8px 10px;font-size:14.5px;margin:6px 0}
.mt5-info.alerte{border-color:#dc2626;background:#fef2f2;animation:mt5-pop .4s}
.mt5-choix3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mt5-choix3 .pdl-opt{justify-content:center;text-align:center}

/* --- 6. le croisement --- */
.mt5-sources{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;margin:8px 0}
.mt5-source{font:inherit;font-size:13.5px;text-align:left;display:flex;flex-direction:column;gap:4px;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:10px;cursor:pointer;transition:transform .2s}
.mt5-source span{font-size:24px}
.mt5-source em{font-style:normal;font-size:11px;font-weight:800;color:#0e7490;background:#cffafe;border-radius:99px;padding:1px 8px;align-self:flex-start}
.mt5-source.sel{border-color:#7c3aed;background:#f5f3ff;transform:translateY(-4px) rotate(-1deg);box-shadow:0 8px 16px rgba(124,58,237,.2)}
.mt5-loupe{display:flex;align-items:center;justify-content:center;gap:12px;min-height:70px;border:2px dashed #cbd5e1;border-radius:14px;margin:8px 0;color:#64748b}
.mt5-loupe.prete{border-color:#7c3aed;background:#faf5ff}
.mt5-loupe-ico{font-size:34px;animation:mt5-flotte 2.5s infinite}
.mt5-resultat{border-radius:12px;padding:10px 12px;font-size:14.5px;animation:mt5-pop .35s}
.mt5-resultat.utile{background:#f0fdf4;border:2px solid #86efac}
.mt5-resultat.rien{background:#f8fafc;border:2px solid #e2e8f0;color:#475569}

/* --- 7. le déménagement --- */
.mt5-cartons{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:8px 0}
.mt5-carton{font:inherit;font-size:13.5px;display:flex;gap:6px;align-items:center;max-width:270px;text-align:left;background:#fef3c7;border:2px solid #d97706;border-radius:6px;padding:8px 10px;cursor:pointer;box-shadow:0 4px 0 #b45309}
.mt5-carton.sel{transform:translateY(-4px);box-shadow:0 8px 0 #92400e;background:#fde68a}
.mt5-zones{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:8px 0}
.mt5-zone{border-radius:14px;padding:8px;min-height:130px;display:flex;flex-direction:column;gap:6px;transition:all .3s}
.mt5-zone.cible{cursor:pointer;box-shadow:0 0 0 3px rgba(15,118,110,.35)}
.mt5-zone-nuage{background:linear-gradient(#e0f2fe,#f0f9ff)}
.mt5-zone-local{background:linear-gradient(#e2e8f0,#f8fafc)}
.mt5-zone-deux{background:linear-gradient(#ede9fe,#f5f3ff)}
.mt5-zone-t{font-weight:800;text-align:center;font-size:14.5px}
.mt5-appli{font-size:12.5px;background:#fff;border:2px solid #e2e8f0;border-radius:8px;padding:5px 7px;display:flex;flex-wrap:wrap;gap:4px;transition:all .5s}
.mt5-appli small{flex-basis:100%;color:#475569;font-size:11.5px}
.mt5-appli.bon{border-color:#86efac}
.mt5-appli.faux{border-color:#dc2626;background:#fef2f2}
.mt5-appli.vit{box-shadow:0 0 10px rgba(22,163,74,.5)}
.mt5-appli.eteint{opacity:.35;filter:grayscale(1)}
.mt5-test-coupure .mt5-zone-nuage{filter:grayscale(.8);opacity:.7}
.mt5-test-cyclone .mt5-zone-local{background:linear-gradient(#bfdbfe,#93c5fd);animation:mt5-secoue .6s 2}

/* --- 8. la chaîne --- */
.mt5-tapis{height:46px;border-radius:10px;background:repeating-linear-gradient(90deg,#334155 0 18px,#475569 18px 36px);overflow:hidden;position:relative;margin:8px 0}
.mt5-tapis-tubes{position:absolute;inset:0;display:flex;align-items:center}
.mt5-tapis-tubes span{position:absolute;font-size:24px;left:-30px;opacity:0}
.mt5-tapis.tourne{animation:mt5-tapis .4s linear infinite;background-size:36px 100%}
@keyframes mt5-tapis{to{background-position:36px 0}}
.mt5-tapis.tourne .mt5-tapis-tubes span{animation:mt5-tube-file 3s linear infinite;opacity:1}
@keyframes mt5-tube-file{from{left:-30px}to{left:100%}}
.mt5-postes{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}
.mt5-poste{font:inherit;font-size:13.5px;text-align:left;display:flex;flex-direction:column;gap:4px;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:10px;cursor:pointer}
.mt5-poste-ico{font-size:24px}
.mt5-poste b{font-size:13px;color:#64748b}
.mt5-poste.robot{border-color:#0e7490;background:#ecfeff}
.mt5-poste.robot b{color:#0e7490}
.mt5-poste.humain{border-color:#b45309;background:#fffbeb}
.mt5-poste.humain b{color:#b45309}
.mt5-poste.faux{outline:3px solid #dc2626}
.mt5-poste.bon{outline:3px solid #16a34a}
.mt5-jauges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0}

/* --- 9. le registre des risques --- */
.mt5-registre-cols{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:12px}
.mt5-registre-cols>div{display:flex;flex-direction:column;gap:8px}
.mt5-fait,.mt5-risque{font:inherit;font-size:14px;text-align:left;border-radius:12px;padding:10px;cursor:pointer;background:#fff;border:2px solid #cbd5e1}
.mt5-fait.sel{border-color:#7c3aed;background:#f5f3ff}
.mt5-fait.lie{border-color:#16a34a;background:#f0fdf4;cursor:default}
.mt5-fait em{display:block;font-style:normal;font-weight:800;color:#15803d;font-size:12.5px;margin-top:4px}
.mt5-risque{font-weight:800;background:#fff7ed;border-color:#fdba74}
.mt5-risque.cible{box-shadow:0 0 0 3px rgba(249,115,22,.25)}
.mt5-risque.faux{animation:mt5-secoue .4s;border-color:#dc2626}

/* --- la décision --- */
.mt5-decision-tete{display:flex;gap:12px;align-items:center}
.mt5-decision-tete>span{font-size:40px}
.mt5-decision-tete small{color:#0f766e;font-weight:800;text-transform:uppercase;letter-spacing:.06em;font-size:12px}
.mt5-decision-tete h3{margin:0;font-size:19px}
.mt5-decision-choix{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:8px}
.mt5-dec{font:inherit;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;text-align:center;min-height:110px;padding:12px;border-radius:14px;border:2px solid #99f6e4;background:linear-gradient(#fff,#f0fdfa);cursor:pointer;transition:transform .2s}
.mt5-dec:not(:disabled):hover{transform:translateY(-4px);box-shadow:0 10px 20px rgba(15,118,110,.2)}
.mt5-dec span{font-weight:800;color:#0f766e;font-size:18px}
.mt5-dec em{font-style:normal;color:#b91c1c;font-size:12px;font-weight:700}
.mt5-dec:disabled{opacity:.5;cursor:not-allowed}
.mt5-dec.pris{opacity:1;border-color:#0f766e;background:#ccfbf1;animation:mt5-frappe .4s}

/* --- les documents, la fin --- */
.mt5-doc-titre{margin:8px 0;color:#14532d}
.mt5-table{width:100%;border-collapse:collapse;font-size:13px;margin:8px 0}
.mt5-table th,.mt5-table td{border:1px solid #cbd5e1;padding:5px 7px;text-align:left;vertical-align:top}
.mt5-table th{background:#f0fdfa}
.mt5-tampon-doc{position:relative;right:auto;bottom:auto;display:block;width:max-content;max-width:90%;margin:26px 12px 10px auto}
.mt5-log{font-size:13px;line-height:1.5;padding-left:20px}
.mt5-fictif{font-size:11px;color:#94a3b8;font-style:italic}
.mt5-article img{width:100%;border-radius:8px;margin:6px 0}
.mt5-tm-ico{font-size:48px;animation:mt5-pop .5s}
.mt5-bravo-dec{max-width:640px}
.mt5-verdict{text-align:center;color:#fff}
.mt5-verdict-ico{font-size:60px;animation:mt5-pop .6s}
.mt5-verdict small{text-transform:uppercase;letter-spacing:.1em;font-weight:800;opacity:.85}
.mt5-verdict h2{margin:2px 0;font-size:30px}
.mt5-verdict>p{max-width:600px;margin:0 auto 10px}
.mt5-autres-fins{background:#f5f3ff;border-radius:10px;padding:8px 12px;color:#5b21b6;font-weight:600}

@media(max-width:820px){
  .mt5-hub{grid-template-columns:1fr;padding:8px}
  .mt5-aa-axes,.mt5-decision-choix,.mt5-zones,.mt5-registre-cols,.mt5-reglages{grid-template-columns:1fr}
  .mt5-fenetres{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mt5-choix3{grid-template-columns:1fr}
  .mt5-aa-objets{padding:20px 18%}
  .mt5-aa-objets span{font-size:32px}
  .mt5-pgi-etoile{height:300px}
  .mt5-module{width:96px;font-size:12px}
  .mt5-tube{right:-4px;top:-14px}
  .mt5-ind{font-size:12px;padding:3px 6px}
  .mt5-ind-jour{display:none}
}
@media(max-width:600px){
  .mt5-ville-corps{transform:scale(1.6)}
  .mt5-van-ico{font-size:44px}
  .mt5-deco{font-size:44px}
  .mt5-barres{gap:5px}
  .mt5-sem-prevu small{font-size:9px}
}
@media(prefers-reduced-motion:reduce){
  .mt5-bateau,.mt5-baleine,.mt5-lave,.mt5-ville.a-voir .mt5-ville-halo,.mt5-itineraire,.mt5-aa-objets span,.mt5-loupe-ico{animation:none}
}
/* Étape 3 : la saisie à la main (27/10/2026) */
.mt5-carte-mut{background:#fffdf5;border:2px dashed #b45309;border-radius:12px;padding:10px 14px;margin:8px 0;font-size:16px;line-height:1.6}
.mt5-carte-mut small{display:block;color:#92400e;font-weight:700;font-size:12px}
.mt5-form{background:#f8fafc;border:2px solid #0f766e;border-radius:12px;padding:12px;margin:10px 0;display:grid;gap:8px}
.mt5-form-t{font-weight:800;color:#0f766e}
.mt5-form-l{display:grid;grid-template-columns:minmax(120px,170px) 1fr;gap:8px;align-items:center;font-size:15px}
.mt5-form-l input{font:inherit;font-size:17px;padding:8px 10px;border:2px solid #94a3b8;border-radius:8px;min-width:0}
.mt5-form-l input:focus{border-color:#0f766e;outline:none}
.mt5-form-l.faux input{border-color:#dc2626;background:#fef2f2}
.mt5-form-err{color:#b91c1c;font-weight:600;margin:0}
.mt5-fenetre.encours{outline:3px solid #0f766e;outline-offset:2px}
.mt5-fenetre small{display:block}
.mt5-conseq{background:#fff7ed;border-left:5px solid #ea580c;border-radius:10px;padding:10px 14px;margin:10px 0;display:grid;gap:6px}
.mt5-conseq-l{display:grid;grid-template-columns:70px 1fr;gap:8px;font-size:15px}
.mt5-conseq-l span{font-weight:800;color:#c2410c}
.mt5-conseq p{margin:4px 0}
@media (max-width:560px){.mt5-form-l{grid-template-columns:1fr}}
/* La carte « La pièce jointe » : le faux courriel (27/10/2026) */
.mt5-ev.mt5-ev-large{width:min(660px,95vw)}
.mt5-ev-large .mt5-ev-face{max-height:88vh;overflow:auto}
.mt5-mail{background:#fff;border:1px solid #cbd5e1;border-radius:12px;margin:8px 0;text-align:left;font-size:14px;overflow:hidden;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.mt5-mail-barre{background:#1e293b;color:#e2e8f0;font-size:12.5px;font-weight:700;padding:6px 10px}
.mt5-mail-tete{padding:8px 12px;border-bottom:1px solid #e2e8f0;background:#f8fafc;display:grid;gap:3px}
.mt5-mail-ligne{position:relative;overflow-wrap:anywhere;padding-right:26px}
.mt5-mail-ligne span:first-child{display:inline-block;min-width:52px;color:#64748b}
.mt5-mail-objet b{color:#b91c1c}
.mt5-mail-corps{position:relative;padding:8px 12px 4px}
.mt5-mail-corps p{margin:4px 0 !important;font-size:14px !important}
.mt5-mail-pj{position:relative;margin:4px 12px 10px;padding:8px 30px 8px 10px;background:#f1f5f9;border:1px dashed #94a3b8;border-radius:8px;overflow-wrap:anywhere}
.mt5-mail .suspect{background:#fef2f2;outline:2px solid #fca5a5;outline-offset:-2px}
.mt5-mail-pastille{position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:50%;background:#dc2626;color:#fff;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center}
.mt5-mail-indices{margin:0;padding:8px 12px 10px 30px;background:#fff7ed;border-top:1px solid #fed7aa;font-size:13.5px;line-height:1.45}
.mt5-mail-indices li{margin:3px 0}
/* ==== mt5 : fin des styles ==== */
/* ==== ms8 : debut des styles ====
   « Kourèr Nord — flux tendu ! » — préfixe ms8-. Hérite des styles pdl- de
   Péi Délices (le conteneur porte les deux classes : .pdl.ms8). Couleurs :
   l'orange des gilets et des scooters, le bleu nuit du dispatch, le carton.
   Tous les états portent le préfixe (piège N) : ms8-on, ms8-sel, ms8-faux… */
.ms8 .pdl-cta{background:linear-gradient(135deg,#fb923c,#ea580c)}
.ms8-hud-sem{margin:0 auto;font-size:13px;font-weight:700;color:#fed7aa;text-align:center;line-height:1.2}
.ms8-etape{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%;max-width:880px}
.ms8-large{max-width:1100px;margin:0 auto;padding:16px 12px;background:linear-gradient(180deg,#1e293b,#0f172a);min-height:min(80vh,780px)}
.ms8-large>*{width:100%}
.ms8-large .pdl-cta:not(.petit){align-self:center;width:auto}

/* --- les pastilles d'information --- */
.ms8-puce{display:inline-flex;align-items:center;gap:3px;font-size:11.5px;font-weight:600;border-radius:99px;padding:1px 7px 1px 4px;
  background:color-mix(in srgb,var(--c) 14%,#fff);color:color-mix(in srgb,var(--c) 75%,#0f172a);border:1px solid color-mix(in srgb,var(--c) 40%,#fff);max-width:100%;min-width:0;line-height:1.25;text-align:left}
.ms8-puce i{overflow-wrap:anywhere}
.ms8-puce i{font-style:normal}
.ms8-puce-phys{border-style:dashed}
.ms8-puce-manque{background:#fee2e2;color:#b91c1c;border-color:#f87171;animation:ms8-secoue .5s ease 2}
@keyframes ms8-secoue{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}

/* --- les fiches de leçon, sous six formes --- */
.ms8-fiche-pliee{display:flex;flex-direction:column;gap:4px;align-items:flex-start;text-align:left;font:inherit;border:0;cursor:pointer;
  border-radius:14px;padding:18px 20px;max-width:560px;width:100%;box-shadow:0 14px 34px rgba(0,0,0,.35);transform:rotate(-1.2deg);transition:transform .2s;background:#fff}
.ms8-fiche-pliee:hover{transform:rotate(0) scale(1.02)}
.ms8-fiche-pliee b{font-size:18px}.ms8-fiche-pliee span{font-size:13.5px;color:#475569}
.ms8-fiche-pliee em{font-style:normal;font-size:13px;color:#ea580c;font-weight:700;animation:pdl-clig 1.6s ease-in-out infinite}
.ms8-fiche{background:#fff;border-radius:14px;padding:18px 20px;max-width:820px;width:100%;box-shadow:0 14px 34px rgba(0,0,0,.35);
  animation:ms8-deplie .6s cubic-bezier(.2,.8,.2,1);transform-origin:top center}
@keyframes ms8-deplie{from{transform:perspective(900px) rotateX(-75deg);opacity:0}to{transform:none;opacity:1}}
.ms8-fiche-tete{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.04em}
.ms8-fiche h3{margin:8px 0 6px;font-size:20px;color:#0f172a}
.ms8-fiche ul{margin:0 0 12px;padding-left:20px;display:flex;flex-direction:column;gap:7px}
.ms8-fiche li{font-size:15px;line-height:1.5;animation:pdl-entree .5s ease both}
.ms8-forme-carton{background:#d6b17a;background-image:repeating-linear-gradient(90deg,rgba(0,0,0,.035) 0 2px,transparent 2px 9px)}
.ms8-forme-carton h3,.ms8-forme-carton li{color:#3b1d06}
.ms8-forme-carton li{font-family:"Segoe Print","Comic Sans MS",cursive,inherit}
.ms8-forme-carton li::marker{color:#dc2626}
.ms8-forme-plan{background:#1e3a8a;background-image:linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px);background-size:22px 22px}
.ms8-forme-plan h3,.ms8-forme-plan li,.ms8-forme-plan b,.ms8-forme-plan.ms8-fiche-pliee span{color:#e0f2fe}
.ms8-forme-plan .ms8-fiche-tete{color:#93c5fd}
.ms8-forme-memo{border-left:8px solid #0f766e}
.ms8-forme-classeur{border-left:14px solid #2563eb;background-image:radial-gradient(circle at 7px 30px,#cbd5e1 4px,transparent 5px),radial-gradient(circle at 7px 90px,#cbd5e1 4px,transparent 5px)}
.ms8-forme-aide{border-top:6px solid #0891b2;background:#f0f9ff}
.ms8-forme-postit{background:#fef08a;transform:rotate(-.8deg);box-shadow:0 18px 30px rgba(0,0,0,.35)}
.ms8-forme-postit li{font-family:"Segoe Print","Comic Sans MS",cursive,inherit}
.ms8-forme-lettre{background:#fffdf7;border:1px solid #e7e5e4}
.ms8-forme-lettre li{font-family:Georgia,serif}

/* --- le tapis --- */
.ms8-tapis-zone{display:flex;align-items:stretch;gap:8px;width:100%;margin:6px 0}
.ms8-vert{flex-direction:column}
.ms8-bout{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:rgba(255,255,255,.1);color:#fff;border-radius:12px;padding:8px;min-width:78px;text-align:center}
.ms8-bout span{font-size:24px}.ms8-bout b{font-size:12px}.ms8-bout em{font-style:normal;font-size:11.5px;color:#fed7aa}
.ms8-vert .ms8-bout{flex-direction:row;min-width:0;padding:6px 10px;gap:8px}
.ms8-tapis{position:relative;flex:1;min-width:0;display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:8px;padding:10px 6px 30px;
  background:rgba(15,23,42,.55);border-radius:14px}
.ms8-vert .ms8-tapis{grid-template-columns:1fr;padding:6px 40px 6px 6px}
.ms8-courroie{position:absolute;left:6px;right:6px;bottom:8px;height:14px;border-radius:7px;
  background:repeating-linear-gradient(90deg,#334155 0 10px,#475569 10px 20px);animation:ms8-tourne 1.2s linear infinite}
.ms8-vert .ms8-courroie{left:auto;right:10px;top:6px;bottom:6px;width:14px;height:auto;background:repeating-linear-gradient(180deg,#334155 0 10px,#475569 10px 20px);animation-name:ms8-tourne-v}
@keyframes ms8-tourne{to{background-position:20px 0}}
@keyframes ms8-tourne-v{to{background-position:0 20px}}
.ms8-poste{position:relative;z-index:1;background:#fff;border-radius:12px;padding:8px 7px 7px;min-width:0;display:flex;flex-direction:column;gap:5px;align-items:center;text-align:center;
  box-shadow:0 4px 0 #cbd5e1,0 8px 16px rgba(0,0,0,.25);transition:transform .2s,box-shadow .2s;cursor:default}
.ms8-poste[data-poste]{cursor:pointer}
.ms8-vert .ms8-poste{flex-direction:row;flex-wrap:wrap;text-align:left;justify-content:flex-start;padding:8px 10px}
.ms8-poste-num{position:absolute;top:-8px;left:-6px;background:#ea580c;color:#fff;font-size:11px;font-weight:800;border-radius:99px;width:20px;height:20px;display:grid;place-items:center}
.ms8-poste-ico{font-size:24px;line-height:1}
.ms8-poste-nom{font-size:12.5px;line-height:1.2;color:#0f172a;overflow-wrap:anywhere}
.ms8-poste-flux{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px}
.ms8-vert .ms8-poste-flux{flex-direction:row;flex-wrap:wrap;width:100%}
.ms8-entre,.ms8-sort{display:flex;flex-wrap:wrap;gap:3px;justify-content:center}
.ms8-entre>i,.ms8-sort>i{font-size:11px;color:#64748b}
.ms8-rien{color:#dc2626 !important}
.ms8-fleche{color:#94a3b8;font-size:12px;transform:rotate(90deg)}
.ms8-vert .ms8-fleche{transform:none}
.ms8-poste-acteur{font-size:11.5px;font-weight:700;background:#f1f5f9;border-radius:8px;padding:2px 6px;color:#334155}
.ms8-poste-acteur em{font-style:normal;color:#b45309}
.ms8-pas-metier{background:#fef3c7}
.ms8-sans{background:#fee2e2;color:#b91c1c}
.ms8-poste-mag{font-size:10.5px;font-weight:700;color:#fff;background:var(--c);border-radius:6px;padding:2px 5px}
.ms8-vide{background:rgba(255,255,255,.08);border:2px dashed rgba(255,255,255,.35);box-shadow:none;color:#e2e8f0;justify-content:center;min-height:90px;cursor:pointer}
.ms8-vide em{font-style:normal;font-size:12px}
.ms8-cible{animation:ms8-appelle 1.2s ease-in-out infinite;cursor:pointer}
@keyframes ms8-appelle{50%{box-shadow:0 0 0 3px #fbbf24,0 8px 16px rgba(0,0,0,.25)}}
.ms8-leurre{background:#fafaf9}
.ms8-actif{transform:translateY(-3px);box-shadow:0 4px 0 #fb923c,0 10px 20px rgba(234,88,12,.35)}
.ms8-bloque{box-shadow:0 4px 0 #f87171,0 0 0 3px #ef4444,0 8px 16px rgba(0,0,0,.25)}
.ms8-goulot{box-shadow:0 4px 0 #f59e0b,0 0 0 3px #f59e0b,0 8px 16px rgba(0,0,0,.25)}
.ms8-goulot::after{content:"🐌 bouchon";position:absolute;top:-10px;right:-4px;font-size:10.5px;font-weight:800;background:#f59e0b;color:#1a1430;border-radius:99px;padding:1px 6px}
.ms8-file{display:flex;flex-wrap:wrap;gap:3px;justify-content:center;align-items:center;min-height:20px}
.ms8-attente{display:flex;flex-wrap:wrap;gap:1px;align-items:center}
.ms8-attente b{font-size:11px;color:#b45309}
.ms8-colis{font-size:15px;line-height:1;display:inline-block}
.ms8-colis-att{opacity:.65;font-style:normal;font-size:13px}
.ms8-colis-enc{animation:ms8-boite .5s ease-in-out infinite alternate}
@keyframes ms8-boite{to{transform:translateY(-3px) rotate(6deg)}}
.ms8-colis-blq{display:flex;flex-direction:column;align-items:center;gap:1px;background:#fee2e2;border-radius:8px;padding:2px 5px}
.ms8-colis-blq b{font-size:11px;color:#b91c1c}
.ms8-colis-blq em{font-style:normal;font-size:10.5px;color:#b91c1c;font-weight:700;max-width:120px}
.ms8-colis-roule{position:absolute;z-index:2;left:var(--pos);bottom:4px;translate:-50% 0;font-size:18px;filter:drop-shadow(0 2px 2px rgba(0,0,0,.5))}
.ms8-vert .ms8-colis-roule{left:auto;right:4px;bottom:auto;top:var(--pos);translate:0 -50%}
.ms8-colis-rouge{filter:drop-shadow(0 0 4px #ef4444)}
.ms8-compact .ms8-poste{padding:6px 5px;gap:3px}
.ms8-compact .ms8-poste-ico{font-size:19px}
.ms8-compact .ms8-poste-nom{font-size:11.5px}

/* l'interrupteur 👤 / ⚙️ */
.ms8-interrupteur{display:flex;align-items:center;gap:4px;border:0;background:#e2e8f0;border-radius:99px;padding:3px 6px;cursor:pointer;font-size:12px}
.ms8-interrupteur i{width:28px;height:14px;border-radius:99px;background:#94a3b8;position:relative;transition:background .2s}
.ms8-interrupteur i::after{content:"";position:absolute;top:2px;left:2px;width:10px;height:10px;border-radius:50%;background:#fff;transition:left .2s}
.ms8-interrupteur.ms8-on i{background:#0f766e}
.ms8-interrupteur.ms8-on i::after{left:16px}

/* --- la simulation --- */
.ms8-simu{display:flex;flex-direction:column;gap:10px;color:#fff}
.ms8-simu-titre{font-weight:800;font-size:17px;text-align:center;color:#fed7aa}
.ms8-compteurs{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;align-items:center}
.ms8-compteurs>div{background:rgba(255,255,255,.1);border-radius:10px;padding:6px 10px;font-size:14px}
.ms8-horloge b{font-variant-numeric:tabular-nums;font-size:17px}
.ms8-horloge i{font-style:normal;font-size:11.5px;opacity:.75;margin-left:6px}
.ms8-tard{background:#b91c1c !important;animation:pdl-clig 1s infinite}
.ms8-rouge{background:rgba(185,28,28,.6) !important}
.ms8-vite{font:inherit;font-weight:700;border:0;border-radius:10px;padding:7px 12px;background:#fff;color:#0f172a;cursor:pointer}
.ms8-bilan-vague{background:#fff;color:#0f172a;border-radius:14px;padding:14px 16px;animation:pdl-entree .5s ease;border-top:6px solid #f59e0b}
.ms8-reussi{border-top-color:#16a34a}
.ms8-bilan-note{display:flex;align-items:baseline;gap:10px}
.ms8-bilan-note b{font-size:30px}.ms8-bilan-note span{font-weight:700;color:#475569}
.ms8-bilan-vague ul{margin:8px 0;padding-left:20px;display:flex;flex-direction:column;gap:4px;font-size:14.5px}
.ms8-mal{color:#b91c1c}.ms8-bien{color:#15803d}
.ms8-rappel-bilan{background:#fff7ed;color:#9a3412;border-radius:10px;padding:8px 12px;font-size:14px;border:1px solid #fed7aa}

/* --- la construction --- */
.ms8-construire{display:flex;flex-direction:column;gap:10px}
.ms8-palette{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.ms8-bloc{font:inherit;display:flex;flex-direction:column;align-items:center;gap:4px;background:#fff;border:2px solid transparent;border-radius:12px;padding:8px 10px;cursor:grab;max-width:180px;
  box-shadow:0 4px 0 #cbd5e1;transition:transform .15s}
.ms8-bloc:hover{transform:translateY(-2px)}
.ms8-bloc b{font-size:13px;color:#0f172a}
.ms8-bloc-ico{font-size:22px}
.ms8-bloc-flux{display:flex;flex-wrap:wrap;gap:3px;justify-content:center;align-items:center;font-size:11px;color:#64748b}
.ms8-sel{border-color:#f59e0b !important;transform:translateY(-3px) scale(1.03);box-shadow:0 0 0 3px rgba(245,158,11,.4),0 4px 0 #f59e0b !important}
.ms8-acteur{font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border:2px solid transparent;border-radius:12px;padding:8px 12px;cursor:pointer;box-shadow:0 4px 0 #cbd5e1}
.ms8-acteur span{font-size:24px}.ms8-acteur b{font-size:13px}.ms8-acteur i{font-size:11px;color:#64748b;font-style:normal}
.ms8-lancer{align-self:center;font-size:17px;padding:13px 26px}

/* --- semaine 2 : débrancher, puis les prises --- */
.ms8-debranche,.ms8-prises,.ms8-fils,.ms8-regles,.ms8-trace,.ms8-chrono,.ms8-messagerie,.ms8-mode{display:flex;flex-direction:column;gap:12px}
.ms8-prises-btn{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.ms8-prise{font:inherit;font-weight:700;display:flex;align-items:center;gap:6px;border:2px solid #475569;background:#1e293b;color:#fff;border-radius:12px;padding:9px 14px;cursor:pointer}
.ms8-prise.ms8-vu{border-color:#16a34a}
.ms8-prise.ms8-debr{background:#7f1d1d;border-color:#ef4444}
.ms8-entrepot{background:#fff;border-radius:14px;padding:14px;display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center}
.ms8-ent-sem{grid-column:1/-1;font-weight:800;color:#0f172a}
.ms8-ent-tapis{position:relative;height:46px;width:180px;border-radius:10px;overflow:hidden;background:repeating-linear-gradient(90deg,#334155 0 10px,#475569 10px 20px)}
.ms8-ent-tapis span{position:absolute;top:10px;left:-30px;font-size:22px;animation:ms8-glisse var(--v) linear infinite}
.ms8-arret .ms8-ent-tapis span{animation-play-state:paused}
@keyframes ms8-glisse{to{left:200px}}
.ms8-ent-jauges{display:flex;flex-direction:column;gap:6px;min-width:0}
.ms8-constat{background:#fff7ed;color:#7c2d12;border-radius:12px;padding:10px 14px;font-size:15px;margin:0;border-left:5px solid #ea580c}
.ms8-pioche{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.ms8-carte-proc{font:inherit;font-size:13.5px;background:#fff;border:2px solid transparent;border-radius:10px;padding:8px 10px;box-shadow:0 3px 0 #cbd5e1;cursor:pointer;max-width:240px;text-align:left}
.ms8-coupe{display:flex;flex-direction:column;gap:6px}
.ms8-zone{border-radius:14px;padding:10px;min-height:76px;cursor:pointer;background:color-mix(in srgb,var(--c) 22%,#0f172a);border:2px solid var(--c);color:#fff}
.ms8-zone-t{font-weight:800;margin-bottom:6px}
.ms8-zone-cartes{display:flex;flex-wrap:wrap;gap:6px}
.ms8-zone .ms8-carte-proc{cursor:default;color:#0f172a}
.ms8-zone-pil{border-radius:40px 40px 14px 14px}
.ms8-zone-pil .ms8-zone-t::after{content:" ↑ fixe le cap";font-weight:400;opacity:.7;font-size:12px}
.ms8-zone-op{background-image:repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 10px,transparent 10px 20px)}
.ms8-zone-sup{border-style:dashed}
.ms8-zone-sup .ms8-zone-t::after{content:" ↓ donne les moyens";font-weight:400;opacity:.7;font-size:12px}
.ms8-faux{border-color:#ef4444 !important;background:#fee2e2 !important;animation:ms8-secoue .5s ease 2}
.ms8-juste{border-color:#16a34a !important;background:#f0fdf4 !important}

/* --- semaine 3 : les fils --- */
.ms8-fils-zone{position:relative;display:flex;flex-direction:column;gap:46px;padding:10px;background:rgba(15,23,42,.6);border-radius:14px}
.ms8-cables{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.ms8-cables path{fill:none;stroke:#fbbf24;stroke-width:3;stroke-dasharray:8 6;animation:ms8-courant 1s linear infinite}
.ms8-cables path.ms8-cable-faux{stroke:#ef4444}
@keyframes ms8-courant{to{stroke-dashoffset:-14}}
.ms8-fils-postes,.ms8-fils-modules{position:relative;display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.ms8-fil-poste{font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border:2px solid transparent;border-radius:10px;padding:6px 8px;cursor:pointer;font-size:20px;max-width:120px}
.ms8-fil-poste b{font-size:11.5px}
.ms8-module{font:inherit;font-weight:700;display:flex;align-items:center;gap:6px;background:#ccfbf1;border:2px solid #0f766e;border-radius:12px;padding:9px 14px;cursor:pointer;color:#134e4a}
.ms8-module span{font-size:20px}
.ms8-base{text-align:center;background:linear-gradient(90deg,#0f766e,#115e59);color:#fff;font-weight:800;border-radius:12px;padding:10px;font-size:13.5px;margin-top:-26px}
.ms8-calcul{background:#fff;border-radius:14px;padding:14px;max-width:820px;width:100%;display:flex;flex-direction:column;gap:10px}
.ms8-calcul .pdl-consigne{box-shadow:none;padding:0}
.ms8-calcul-ligne{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ms8-calcul-ligne input{font:inherit;font-size:18px;width:140px;padding:8px 10px;border:2px solid #cbd5e1;border-radius:10px}

/* --- semaine 4 : la règle --- */
.ms8-regle{background:#fff;border-radius:14px;padding:12px 14px;display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:15px}
.ms8-regle small{flex-basis:100%;color:#64748b;font-size:12.5px}
.ms8-regle-mot{background:#0f172a;color:#fbbf24;font-weight:800;border-radius:6px;padding:2px 8px;font-family:ui-monospace,monospace}
.ms8-regle-choix{display:inline-flex;gap:4px}
.ms8-regle-choix button,.ms8-preuve{font:inherit;border:2px solid #cbd5e1;background:#f8fafc;border-radius:10px;padding:6px 10px;cursor:pointer}
.ms8-regle-choix button.ms8-on,.ms8-preuve.ms8-on{border-color:#ea580c;background:#fff7ed;font-weight:700}
.ms8-preuves{background:#fff;border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:6px}
.ms8-preuve{display:flex;align-items:center;gap:8px;text-align:left}
.ms8-preuve span{font-size:20px}
.ms8-record{background:#fff;border-radius:12px;padding:10px 14px;font-size:15px}

/* --- semaine 5 : la trace, les droits --- */
.ms8-trace-carte{background:#fff;border-radius:14px;padding:16px 14px 10px}
.ms8-trace-route{position:relative;height:54px;margin-bottom:6px;background:linear-gradient(transparent 24px,#e2e8f0 24px,#e2e8f0 30px,transparent 30px)}
.ms8-trace-pt{position:absolute;top:8px;translate:-50% 0;font-size:22px;opacity:.25;filter:grayscale(1);transition:all .3s}
.ms8-trace-pt.ms8-passe{opacity:1;filter:none}
.ms8-trace-pt.ms8-alerte.ms8-passe{filter:drop-shadow(0 0 6px #ef4444)}
.ms8-trace-pt.ms8-ici{scale:1.35}
.ms8-trace-carte input[type=range]{width:100%;accent-color:#ea580c}
.ms8-trace-heure{text-align:center;font-weight:800;font-size:18px}
.ms8-trace-journal{background:#0f172a;color:#d1fae5;font-family:ui-monospace,monospace;font-size:13px;border-radius:12px;padding:12px 12px 12px 32px;margin:0;display:flex;flex-direction:column;gap:4px}
.ms8-trace-journal li{animation:pdl-entree .4s ease}
.ms8-trace-journal li.ms8-mal{color:#fca5a5}
.ms8-trace-journal i{opacity:.7;font-style:normal}
.ms8-droits{display:flex;flex-direction:column;gap:12px;align-items:center;width:100%}
.ms8-droits-grille{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.ms8-droit{font:inherit;display:flex;flex-direction:column;align-items:center;gap:4px;width:200px;background:#fff;border:3px solid #cbd5e1;border-radius:14px;padding:12px;cursor:pointer}
.ms8-droit span{font-size:28px}.ms8-droit em{font-style:normal;font-size:13px;color:#64748b}
.ms8-droit.ms8-on{border-color:#16a34a;background:#f0fdf4}
.ms8-droits .pdl-aide{background:#fff;border-radius:10px;padding:8px 12px}

/* --- semaines 6 et 8 : le chrono --- */
.ms8-mode{align-items:center}
.ms8-chrono-tete{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#fff}
.ms8-chrono-cpt{font-size:22px;background:#ea580c;border-radius:12px;padding:6px 14px;font-variant-numeric:tabular-nums}
.ms8-urgent{background:#b91c1c;animation:pdl-clig .8s infinite}
.ms8-zen{background:#0f766e}
.ms8-chrono-lev{font-size:15px}
.ms8-imprevus{display:flex;flex-wrap:wrap;gap:8px}
.ms8-imprevu{background:#7f1d1d;color:#fff;border-radius:10px;padding:6px 10px;font-weight:700;font-size:14px;animation:ms8-secoue .5s ease 3}
.ms8-tdb-direct{background:#022c22;color:#a7f3d0;border-radius:10px;padding:8px 12px;font-size:14px;font-family:ui-monospace,monospace}
.ms8-leviers{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.ms8-levier{font:inherit;display:flex;align-items:center;gap:8px;text-align:left;background:#fff;border:3px solid transparent;border-radius:12px;padding:10px;cursor:pointer;font-size:14px}
.ms8-levier span{font-size:22px}
.ms8-levier.ms8-on{border-color:#16a34a;background:#f0fdf4;transform:scale(1.02)}
.ms8-levier:disabled:not(.ms8-on){opacity:.45;cursor:not-allowed}
.ms8-leviers-bilan{background:#fff;border-radius:12px;padding:10px 14px 10px 30px;margin:0;font-size:14px;display:flex;flex-direction:column;gap:4px;width:100%}

/* --- semaine 7 : la messagerie --- */
.ms8-jauges{background:#fff;border-radius:14px;padding:10px 14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ms8-tel{background:#f1f5f9;border-radius:24px;padding:14px;border:6px solid #0f172a;max-width:640px;width:100%;margin:0 auto;display:flex;flex-direction:column;gap:10px;animation:pdl-entree .5s ease}
.ms8-tel-tete{font-size:13px;color:#475569}
.ms8-msg{display:flex;gap:10px;align-items:flex-start;background:#fff;border-radius:16px 16px 16px 4px;padding:10px;box-shadow:0 2px 6px rgba(0,0,0,.08)}
.ms8-msg img{width:46px;height:46px;border-radius:50%;object-fit:cover;flex:none}
.ms8-msg p{margin:2px 0 0;font-size:15px;line-height:1.45}
.ms8-souvenir{background:#fef3c7;border-radius:10px;padding:8px 10px;font-size:13.5px;margin:0;color:#78350f}
.ms8-rep{display:flex;flex-direction:column;gap:6px}
.ms8-assemble{display:flex;flex-direction:column;gap:12px;background:#fff;border-radius:14px;padding:14px;max-width:820px;width:100%}
.ms8-assemble .pdl-consigne{box-shadow:none;padding:0}
.ms8-phrase{font-size:17px;line-height:1.6;background:#f8fafc;border-radius:10px;padding:10px 12px;min-height:50px}
.ms8-morceau{background:#dcfce7;border-radius:6px;padding:1px 4px;animation:pdl-entree .4s ease}
.ms8-trou{color:#94a3b8;font-style:italic;border-bottom:2px dashed #94a3b8}

/* --- le dispatch --- */
.ms8-dispatch-decor .pdl-decor-contenu{max-width:1080px}
.ms8-dispatch{display:flex;flex-direction:column;gap:12px;width:100%}
.ms8-dispatch-tete{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;color:#fff}
.ms8-dispatch-tete h2{margin:0;font-size:24px}
.ms8-semaine{background:#ea580c;border-radius:99px;padding:4px 12px;font-weight:800;font-size:14px}
.ms8-tdb{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.ms8-tdb>div{background:rgba(255,255,255,.95);border-radius:12px;padding:8px;display:flex;flex-direction:column;align-items:center;text-align:center}
.ms8-tdb span{font-size:20px}.ms8-tdb b{font-size:20px;color:#0f172a}.ms8-tdb i{font-size:11.5px;color:#64748b;font-style:normal}
.ms8-mon-tableau{color:#fff;font-size:14px}
.ms8-tableau-vide{color:#e2e8f0;background:rgba(15,23,42,.5);border-radius:12px;padding:14px;margin:0;text-align:center}
.ms8-appel{font:inherit;display:flex;align-items:center;gap:12px;background:#fff;border:0;border-radius:16px;padding:12px 16px;cursor:pointer;text-align:left;
  box-shadow:0 0 0 4px rgba(234,88,12,.5),0 14px 30px rgba(0,0,0,.35);animation:ms8-sonne 2.4s ease-in-out infinite}
.ms8-appel-ico{font-size:30px;animation:ms8-vibre .4s ease-in-out infinite alternate}
.ms8-appel span:nth-child(2){display:flex;flex-direction:column;flex:1;min-width:0}
.ms8-appel b{font-size:17px}.ms8-appel i{font-style:normal;color:#64748b;font-size:13.5px}
.ms8-appel em{font-style:normal;font-weight:800;color:#ea580c;white-space:nowrap}
@keyframes ms8-sonne{50%{box-shadow:0 0 0 9px rgba(234,88,12,.15),0 14px 30px rgba(0,0,0,.35)}}
@keyframes ms8-vibre{from{rotate:-12deg}to{rotate:12deg}}
.ms8-rejouer{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.ms8-rejouer-btn{font:inherit;background:rgba(255,255,255,.15);color:#fff;border:0;border-radius:10px;padding:7px 12px;cursor:pointer}
.ms8-rejouer-liste{display:flex;flex-wrap:wrap;gap:6px}
.ms8-rejouer-liste button{font:inherit;font-size:13.5px;background:#fff;border:0;border-radius:10px;padding:7px 10px;cursor:pointer}

/* --- les documents --- */
.ms8-doc{font-size:14.5px;line-height:1.5;color:#1e293b;position:relative}
.ms8-doc-tete{border-bottom:3px solid #ea580c;margin-bottom:10px;padding-bottom:8px}
.ms8-doc-logo{display:flex;flex-direction:column}
.ms8-doc-logo b{color:#ea580c;font-size:16px;letter-spacing:.05em}
.ms8-doc-logo span{font-size:11.5px;color:#64748b}
.ms8-doc-tete h3{margin:8px 0 0;font-size:19px}
.ms8-doc-sous{margin:2px 0 0;color:#64748b;font-size:13px}
.ms8-doc-chaine{padding-left:22px;display:flex;flex-direction:column;gap:6px}
.ms8-doc-chaine li{display:flex;flex-direction:column}
.ms8-doc-chaine em{font-style:normal;font-size:12.5px;color:#64748b}
.ms8-doc-note{background:#fff7ed;border-radius:8px;padding:8px 10px;font-size:13.5px}
.ms8-doc-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ms8-doc-cols>div{border-top:4px solid var(--c);background:#f8fafc;border-radius:8px;padding:8px}
.ms8-doc-cols ul{padding-left:16px;margin:4px 0 0;font-size:13px}
.ms8-tampon{position:absolute;right:10px;bottom:10px;border:3px solid #dc2626;color:#dc2626;font-weight:900;padding:2px 10px;rotate:-12deg;border-radius:6px;opacity:.85;letter-spacing:.1em}
.ms8-signature{font-family:"Segoe Print","Comic Sans MS",cursive;font-size:17px;color:#1e3a8a;text-align:right}
.ms8-journal-tete{display:flex;flex-direction:column;border-bottom:3px double #0f172a;padding-bottom:6px;margin-bottom:8px}
.ms8-journal-tete b{font-family:Georgia,serif;font-size:24px}
.ms8-journal-tete span{font-size:12px;color:#64748b}
.ms8-journal h3{font-family:Georgia,serif;font-size:21px;margin:4px 0 8px}
.ms8-journal img{width:100%;border-radius:6px;margin-bottom:6px}
.ms8-journal p{font-family:Georgia,serif}
.ms8-issue{background:#fff7ed;border-radius:10px;padding:8px 12px;font-weight:700;color:#7c2d12}
.ms8-badge{font:inherit;border:0;background:none;padding:0;cursor:pointer;width:240px;height:340px;perspective:900px;position:relative;margin:0 auto;display:block}
.ms8-badge-face{position:absolute;inset:0;background:#fff;border-radius:16px;box-shadow:0 12px 28px rgba(0,0,0,.3);display:flex;flex-direction:column;align-items:center;gap:6px;
  padding-bottom:14px;overflow:hidden;backface-visibility:hidden;transition:transform .7s}
.ms8-badge-verso{transform:rotateY(180deg);justify-content:center;background:#0f172a;color:#fff}
.ms8-dos .ms8-badge-face{transform:rotateY(180deg)}
.ms8-dos .ms8-badge-verso{transform:rotateY(360deg)}
.ms8-badge-bande{width:100%;background:linear-gradient(90deg,#ea580c,#f59e0b);color:#fff;font-weight:900;padding:10px;letter-spacing:.08em}
.ms8-badge img{width:120px;height:150px;object-fit:cover;border-radius:10px}
.ms8-badge-face b{font-size:20px}.ms8-badge-face span{font-size:13px;color:#475569;padding:0 10px;text-align:center}
.ms8-badge-face i{font-size:12px;color:#94a3b8;font-style:normal}
.ms8-badge-verso span{color:#cbd5e1}
.ms8-codebarre{font-size:30px;letter-spacing:-2px;background:#fff;color:#0f172a;padding:4px 10px;border-radius:4px}

@media (max-width:640px){
  .ms8-tdb{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ms8-jauges{grid-template-columns:1fr}
  .ms8-entrepot{grid-template-columns:1fr}
  .ms8-ent-tapis{width:100%}
  .ms8-doc-cols{grid-template-columns:1fr}
  .ms8-large{padding:12px 8px}
  .ms8-hud-sem{font-size:11.5px}
  .ms8-appel{flex-wrap:wrap}
  .ms8-leviers{grid-template-columns:1fr}
  .ms8-droit{width:100%}
}
/* ==== ms8 : fin des styles ==== */
/* ==== ms7 : debut des styles ==== « Studio Tizon » — préfixe ms7- */
.ms7 .pdl-panneau{color:#1a1430}
.ms7-lecon-ecran{display:flex;flex-direction:column;gap:12px}
.ms7-lecon-ecran>.pdl-cta{align-self:center}
/* La leçon et ses habits */
.ms7-lecon{border-radius:16px;padding:16px 18px;background:#fff;color:#1a1430;box-shadow:0 6px 20px rgba(0,0,0,.12);position:relative}
.ms7-lecon h3{margin:6px 0 8px;font-size:19px}
.ms7-lecon ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:7px}
.ms7-lecon li{line-height:1.45;font-size:15px;animation:ms7-monte .45s ease both}
.ms7-lecon-sur{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12.5px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.03em}
.ms7-lecon-par{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:13px}
.ms7-lecon-par img{width:30px;height:30px;border-radius:50%;object-fit:cover}
.ms7-lecon-par i{font-style:normal;color:#64748b}
.ms7-lecon-epingle{border-left:6px solid #f97316;background:#fff7ed}
.ms7-lecon-fiche{border-top:6px solid #0ea5e9;background:linear-gradient(#fff,#f0f9ff)}
.ms7-lecon-postit{background:#fef9c3;transform:rotate(-.6deg);box-shadow:4px 8px 18px rgba(0,0,0,.22)}
.ms7-lecon-visio{background:#0f172a;color:#e2e8f0;border:3px solid #16a34a}
.ms7-lecon-visio h3{color:#fff}.ms7-lecon-visio .ms7-lecon-sur,.ms7-lecon-visio .ms7-lecon-par i{color:#86efac}
.ms7-lecon-wiki{border:2px solid #cbd5e1;background:#f8fafc;font-family:Georgia,serif}
.ms7-lecon-notice{border:2px dashed #0e7490;background:#ecfeff}
.ms7-lecon-plus{font:inherit;margin-top:10px;background:#e2e8f0;border:0;border-radius:10px;padding:8px 14px;cursor:pointer;font-weight:700;color:#1a1430}
/* L'aide */
.ms7-aide{border:2px dashed #facc15;border-radius:14px;background:#fefce8;overflow:hidden;color:#1a1430}
.ms7-aide-tete{font:inherit;width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;background:none;border:0;padding:10px 14px;cursor:pointer;text-align:left;color:#1a1430}
.ms7-aide-tete span{font-weight:800;color:#854d0e}.ms7-aide-tete i{font-style:normal;font-size:12.5px;color:#a16207}
.ms7-aide-corps{padding:0 14px 12px;font-size:14.5px;line-height:1.45}
.ms7-aide-o{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0}
.ms7-aide-b{font:inherit;font-size:14px;border:2px solid #e2e8f0;background:#fff;border-radius:10px;padding:6px 12px;cursor:pointer;color:#1a1430}
.ms7-aide-bon{border-color:#16a34a;background:#f0fdf4}.ms7-aide-faux{border-color:#dc2626;background:#fef2f2}
/* Maillon */
.ms7-maillon{border-radius:14px;overflow:hidden;border:1px solid #cbd5e1;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.18);color:#1a1430}
.ms7-maillon-barre{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#1e1b4b;color:#fff;font-size:14px}
.ms7-maillon-pts{display:flex;gap:5px}.ms7-maillon-pts i{width:10px;height:10px;border-radius:50%;background:#f87171}
.ms7-maillon-pts i:nth-child(2){background:#fbbf24}.ms7-maillon-pts i:nth-child(3){background:#34d399}
.ms7-maillon-studio{opacity:.7;font-size:12.5px}
.ms7-maillon-moi{margin-left:auto;display:flex;align-items:center;gap:6px;font-weight:700;font-size:13px}
.ms7-maillon-moi img{width:26px;height:26px;border-radius:50%;object-fit:cover;border:2px solid #a5b4fc}
.ms7-maillon-corps{display:flex;min-height:300px}
.ms7-maillon-nav{width:150px;flex:0 0 150px;background:#312e81;padding:10px 6px;display:flex;flex-direction:column;gap:3px}
.ms7-canal{color:#c7d2fe;font-size:13px;padding:5px 8px;border-radius:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms7-canal-actif{background:#6366f1;color:#fff;font-weight:700}
.ms7-maillon-main{flex:1;min-width:0;padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.ms7-maillon-titre{font-weight:800;font-size:14.5px;color:#312e81;border-bottom:1px solid #e2e8f0;padding-bottom:6px}
.ms7-maillon-nuit{background:#0f172a;border-color:#1e293b}
.ms7-maillon-nuit .ms7-maillon-main{background:#111827;color:#e5e7eb}
.ms7-maillon-nuit .ms7-maillon-titre{color:#a5b4fc;border-color:#334155}
.ms7-maillon-nuit .ms7-msg-corps p{color:#e5e7eb}
.ms7-maillon-nuit .pdl-consigne{background:#1e293b;color:#e5e7eb}
/* Le fil */
.ms7-fil{display:flex;flex-direction:column;gap:10px;max-height:420px;overflow-y:auto;cursor:pointer}
.ms7-msg{display:flex;gap:10px;align-items:flex-start;animation:ms7-monte .35s ease both}
.ms7-msg-photo{width:38px;height:38px;border-radius:10px;object-fit:cover;flex:0 0 38px}
.ms7-msg-ico{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#e2e8f0;font-size:20px;flex:0 0 38px}
.ms7-msg-corps{min-width:0}
.ms7-msg-nom{font-weight:800;font-size:14px}.ms7-msg-nom i{font-style:normal;font-weight:400;color:#94a3b8;font-size:12px;margin-left:8px}
.ms7-msg-corps p{margin:2px 0 0;line-height:1.45;font-size:15px}
.ms7-msg-moi .ms7-msg-corps{background:#fef9c3;border-radius:10px;padding:4px 10px}
.ms7-msg-ecrit{font-size:13px;color:#94a3b8;font-style:italic;display:flex;align-items:center;gap:6px}
.ms7-msg-ecrit span{display:inline-flex;gap:3px}.ms7-msg-ecrit span i{width:6px;height:6px;border-radius:50%;background:#94a3b8;animation:ms7-point 1s infinite}
.ms7-msg-ecrit span i:nth-child(2){animation-delay:.15s}.ms7-msg-ecrit span i:nth-child(3){animation-delay:.3s}
.ms7-msg-entre{background:#f8fafc;border:2px solid #c7d2fe;border-radius:12px;padding:10px;animation:ms7-tombe .45s cubic-bezier(.2,1.4,.4,1) both}
/* Le choix */
.ms7-choix-tete{font-size:12.5px;font-weight:800;color:#7c3aed;text-transform:uppercase;letter-spacing:.04em}
.ms7-choix-q{font-size:16.5px;font-weight:700;line-height:1.4;margin:8px 0 12px}
.ms7-choix-o{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ms7-choix-b{font:inherit;text-align:left;border:2px solid #ddd6fe;background:#faf5ff;border-radius:14px;padding:14px;cursor:pointer;line-height:1.4;color:#1a1430;transition:transform .2s,opacity .3s}
.ms7-choix-b:hover:not(:disabled){transform:translateY(-3px);border-color:#7c3aed}
.ms7-choix-pris{border-color:#7c3aed;background:#ede9fe;transform:scale(1.02)}
.ms7-choix-eteint{opacity:.35}
.ms7-choix-effet{margin-top:12px;background:#f5f3ff;border-radius:12px;padding:10px 12px;animation:ms7-monte .4s ease both}
.ms7-choix-effet p{margin:0;line-height:1.4}
/* Le standard */
.ms7-std{display:flex;flex-direction:column;gap:10px}
.ms7-std-horloge{display:flex;align-items:center;gap:8px;font-weight:800;font-size:18px;color:#312e81}
.ms7-std-horloge span{margin-left:auto;font-size:13px;color:#64748b;font-weight:600}
.ms7-std-cons{margin:0;font-weight:700;font-size:14px;color:#475569}
.ms7-std-outils{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ms7-outil{font:inherit;display:flex;flex-direction:column;align-items:center;gap:3px;padding:10px 6px;border:2px solid #e2e8f0;border-radius:12px;background:#fff;cursor:pointer;color:#1a1430;transition:transform .15s}
.ms7-outil:hover:not(:disabled){transform:translateY(-2px);border-color:#6366f1}
.ms7-outil-ico{font-size:24px}.ms7-outil b{font-size:13.5px;text-align:center}
.ms7-outil-mode{font-style:normal;font-size:11px;font-weight:800;border-radius:99px;padding:1px 8px;animation:ms7-monte .3s ease both}
.ms7-mode-s{background:#fee2e2;color:#b91c1c}.ms7-mode-a{background:#dbeafe;color:#1d4ed8}
.ms7-outil-bon{border-color:#16a34a;background:#f0fdf4}.ms7-outil-faux{border-color:#dc2626;background:#fef2f2}
.ms7-outil-demi{border-color:#f59e0b;background:#fffbeb}.ms7-outil-eteint{opacity:.55}
/* La tresse */
.ms7-tresse-scene{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:10px;align-items:stretch}
.ms7-tresse-cote{font:inherit;border:3px solid #cbd5e1;border-radius:16px;background:#f8fafc;padding:12px 8px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;color:#1a1430;min-height:150px}
.ms7-tresse-cote:hover:not(:disabled){border-color:#7c3aed;transform:translateY(-2px)}
.ms7-tresse-cote i{font-style:normal;font-size:12.5px;color:#64748b}
.ms7-tresse-chaine{border-color:#94a3b8}.ms7-tresse-fils{border-color:#c084fc}
.ms7-tresse-carte{align-self:center;background:#fff;border-radius:14px;padding:14px;box-shadow:0 8px 22px rgba(0,0,0,.15);font-weight:600;line-height:1.4;animation:ms7-tombe .45s cubic-bezier(.2,1.4,.4,1) both}
.ms7-maillons{display:flex;flex-wrap:wrap;justify-content:center;gap:0;margin-top:6px}
.ms7-maillons span{width:26px;height:16px;border:4px solid #64748b;border-radius:10px;margin:0 -3px;animation:ms7-monte .4s ease both}
.ms7-maillons span:nth-child(even){border-color:#94a3b8;transform:translateY(3px)}
.ms7-brins{position:relative;width:60px;height:70px;margin-top:6px}
.ms7-brins span{position:absolute;left:50%;top:0;width:6px;height:100%;margin-left:-3px;border-radius:3px;background:linear-gradient(#c084fc,#7c3aed);animation:ms7-ondule 2.4s ease-in-out infinite;animation-delay:var(--d)}
.ms7-brins span:nth-child(2){background:linear-gradient(#f472b6,#db2777)}.ms7-brins span:nth-child(3){background:linear-gradient(#38bdf8,#0284c7)}
/* Les fichiers */
.ms7-fichiers-grille{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ms7-fichier{background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:10px;box-shadow:2px 4px 12px rgba(0,0,0,.12);transform:rotate(var(--r));display:flex;flex-direction:column;gap:5px}
.ms7-fichier-nom{font-size:12.5px;font-weight:800;color:#334155;display:flex;justify-content:space-between;gap:6px;word-break:break-all}
.ms7-fichier-nom i{font-style:normal;font-weight:600;color:#64748b}
.ms7-fichier-l{font:inherit;font-size:13.5px;text-align:left;border:1px solid transparent;background:#f8fafc;border-radius:6px;padding:4px 6px;cursor:pointer;color:#1a1430}
.ms7-fichier-sel{border-color:#7c3aed;background:#ede9fe}
.ms7-fichier-conflit{border-color:#dc2626;background:#fee2e2;font-weight:700}
/* Le document vivant */
.ms7-doc{background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:16px 20px;font-family:Georgia,serif;min-height:180px}
.ms7-doc h4{margin:0 0 10px;font-size:18px}
.ms7-doc-l{margin:6px 0;line-height:1.5;position:relative}
.ms7-curseur{display:inline-block;width:2px;height:1.2em;background:var(--c);vertical-align:text-bottom;position:relative;animation:ms7-clin 1s steps(2) infinite}
.ms7-curseur i{position:absolute;bottom:100%;left:0;background:var(--c);color:#fff;font:700 10.5px system-ui,sans-serif;font-style:normal;padding:1px 5px;border-radius:4px 4px 4px 0;white-space:nowrap}
.ms7-versions{display:flex;flex-direction:column;gap:10px}
.ms7-versions-curseur{width:100%;accent-color:#6366f1}
.ms7-versions-frise{display:flex;justify-content:space-between;gap:4px}
.ms7-versions-pt{font:inherit;font-size:11.5px;border:1px solid #cbd5e1;background:#f8fafc;border-radius:8px;padding:3px 6px;cursor:pointer;color:#1a1430}
.ms7-versions-ici{background:#6366f1;color:#fff;border-color:#6366f1}
.ms7-versions-carte{display:flex;gap:12px;align-items:flex-start;background:#eef2ff;border-radius:12px;padding:12px;animation:ms7-monte .3s ease both}
.ms7-versions-carte img{width:46px;height:46px;border-radius:50%;object-fit:cover}
.ms7-versions-carte p{margin:4px 0}
.ms7-versions-saut{font-size:14px;background:#fff;border-radius:8px;padding:2px 8px;display:inline-block}
/* Les droits */
.ms7-droit{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px;border-radius:10px;border:2px solid transparent;margin-bottom:6px;background:#f8fafc}
.ms7-droit-qui{flex:1 1 220px;font-weight:600}
.ms7-droit-niv{display:flex;gap:4px}
.ms7-droit-niv button{font:inherit;font-size:13px;border:2px solid #cbd5e1;background:#fff;border-radius:99px;padding:4px 10px;cursor:pointer;color:#1a1430}
.ms7-droit-niv .ms7-niv-on{background:#312e81;color:#fff;border-color:#312e81}
.ms7-droit-bon{border-color:#16a34a}.ms7-droit-faux{border-color:#dc2626}
.ms7-droit-why{flex-basis:100%;font-style:normal;font-size:13px;color:#475569}
/* Le tableau de tâches */
.ms7-kanban-zone{display:flex;flex-direction:column;gap:10px}
.ms7-kanban{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.ms7-kcol{background:#1e293b;border-radius:10px;padding:8px;min-height:140px;display:flex;flex-direction:column;gap:6px;transition:box-shadow .2s}
.ms7-kcol-cible{box-shadow:0 0 0 3px #fbbf24;cursor:pointer}
.ms7-kcol-t{color:#cbd5e1;font-weight:800;font-size:12.5px;text-transform:uppercase}
.ms7-kcarte{font:inherit;font-size:13px;display:flex;align-items:center;justify-content:space-between;gap:6px;text-align:left;background:#fff;border:2px solid transparent;border-radius:8px;padding:7px;cursor:pointer;color:#1a1430;animation:ms7-monte .3s ease both}
.ms7-kcarte img{width:24px;height:24px;border-radius:50%;object-fit:cover;flex:0 0 24px}
.ms7-kcarte-sel{border-color:#fbbf24;transform:scale(1.04)}
.ms7-kcarte-vue{background:#fefce8}
.ms7-kcarte-bon{border-color:#16a34a}.ms7-kcarte-faux{border-color:#dc2626;animation:ms7-secoue .4s}
.ms7-indice{background:#fef3c7;color:#1a1430;border-radius:10px;padding:8px 12px;font-size:14px;animation:ms7-monte .3s ease both}
/* La réunion */
.ms7-formats{display:flex;flex-direction:column;gap:8px}
.ms7-format{font:inherit;display:flex;gap:10px;align-items:center;text-align:left;border:2px solid #e2e8f0;background:#fff;border-radius:12px;padding:12px;cursor:pointer;color:#1a1430;line-height:1.35}
.ms7-format:hover{border-color:#f97316}.ms7-format span{font-size:24px}
.ms7-visio{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:10px 0}
.ms7-visio-tuile{position:relative;background:#0f172a;border-radius:12px;padding:8px;display:flex;flex-direction:column;align-items:center;gap:4px;color:#fff;animation:ms7-monte .4s ease both;min-height:150px}
.ms7-visio-tuile img{width:64px;height:64px;border-radius:50%;object-fit:cover;border:3px solid #334155}
.ms7-visio-tuile b{font-size:12.5px;text-align:center}
.ms7-visio-moi img{border-color:#f97316}
.ms7-visio-loin{outline:2px dashed #16a34a}
.ms7-bulle-avis{background:#fff;color:#1a1430;border-radius:10px;padding:5px 7px;font-size:12px;text-align:center;animation:ms7-tombe .4s ease both}
.ms7-bulle-tue{background:#475569;color:#cbd5e1;font-style:italic}
.ms7-bulle-chef{background:#f97316;color:#fff;font-weight:700}
/* Les quatre mémoires */
.ms7-mem-tetes{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.ms7-mem{background:#f8fafc;border:2px solid #e2e8f0;border-radius:12px;padding:8px;display:flex;flex-direction:column;align-items:center;gap:5px;position:relative}
.ms7-mem img{width:56px;height:56px;border-radius:50%;object-fit:cover}
.ms7-mem-ok{border-color:#16a34a;background:#f0fdf4}
.ms7-mem-q{display:flex;flex-direction:column;gap:5px;width:100%}
.ms7-mem-q button{font:inherit;font-size:12.5px;line-height:1.3;border:1px solid #cbd5e1;background:#fff;border-radius:8px;padding:5px 6px;cursor:pointer;text-align:left;color:#1a1430}
.ms7-mem-q button:hover:not(:disabled){border-color:#f97316}
.ms7-mem-pastille{font-size:26px;animation:ms7-tombe .4s ease both}
.ms7-mem-reps{background:#fff7ed;border-radius:10px;padding:8px 12px;margin:8px 0}
.ms7-mem-reps p{margin:3px 0;font-size:14px;opacity:.6}
.ms7-mem-reps .ms7-mem-neuf{opacity:1;animation:ms7-monte .3s ease both}
.ms7-puzzle{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:8px 0;perspective:600px}
.ms7-piece{min-height:58px;display:grid;place-items:center;text-align:center;padding:8px;font-size:13.5px;font-weight:700;background:#e2e8f0;color:#94a3b8;border-radius:6px;transition:transform .6s,background .4s}
.ms7-piece-posee{background:#fde68a;color:#1a1430;animation:ms7-retourne .6s ease both}
.ms7-piece-0.ms7-piece-posee{background:#bae6fd}.ms7-piece-1.ms7-piece-posee{background:#e9d5ff}.ms7-piece-2.ms7-piece-posee{background:#bbf7d0}
.ms7-sol{display:flex;flex-direction:column;gap:8px}
/* Multi */
.ms7-multi-o{display:flex;flex-direction:column;gap:6px}
.ms7-multi-b{font:inherit;text-align:left;border:2px solid #e2e8f0;background:#fff;border-radius:10px;padding:9px 12px;cursor:pointer;color:#1a1430}
.ms7-multi-sel{border-color:#6366f1;background:#eef2ff}
.ms7-multi-bon{border-color:#16a34a;background:#f0fdf4}.ms7-multi-faux{border-color:#dc2626;background:#fef2f2}
/* La journée de Nora */
.ms7-journee-h{font-weight:800;color:#15803d;font-size:17px}
.ms7-journee-txt{font-size:16px;line-height:1.45}
.ms7-journee-o{display:flex;flex-direction:column;gap:8px}
/* Le wiki */
.ms7-vocal{display:flex;gap:10px;align-items:center;background:#0f172a;color:#fff;border-radius:14px;padding:10px 14px}
.ms7-vocal-ico{font-size:28px}.ms7-vocal b{font-size:13px}
.ms7-onde{display:flex;align-items:center;gap:3px;height:34px;margin-top:4px}
.ms7-onde i{width:4px;height:var(--h);background:#22c55e;border-radius:2px;animation:ms7-onde 1.2s ease-in-out infinite}
.ms7-wiki-morceau{background:#fff;border-left:5px solid #16a34a;border-radius:10px;padding:12px 14px;margin:10px 0;font-size:16px;font-style:italic;box-shadow:0 6px 16px rgba(0,0,0,.1);animation:ms7-tombe .4s ease both}
.ms7-wiki-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ms7-wiki-b{font:inherit;font-weight:700;border:2px solid;border-radius:12px;padding:12px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px;color:#1a1430}
.ms7-wiki-b i{font-style:normal;font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.05em}
.ms7-wiki-ecrire{border-color:#0284c7;background:#f0f9ff}.ms7-wiki-montrer{border-color:#c2410c;background:#fff7ed}
.ms7-wiki-duo{display:grid;grid-template-columns:1.4fr 1fr;gap:10px;margin-top:10px}
.ms7-wiki-page{background:#f8fafc;border:1px solid #cbd5e1;border-radius:8px;padding:10px 12px;font-size:14px;font-family:Georgia,serif}
.ms7-wiki-page li{animation:ms7-monte .4s ease both;margin:3px 0}
.ms7-wiki-tacite{background:#fff7ed;border-color:#fdba74}
/* La marée */
.ms7-maree-duo{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
.ms7-regles{display:flex;flex-direction:column;gap:6px}
.ms7-regle{display:flex;align-items:center;gap:8px;background:#f8fafc;border:2px solid #e2e8f0;border-radius:10px;padding:8px 10px;cursor:pointer;font-size:14px;line-height:1.3}
.ms7-regle input{position:absolute;opacity:0;pointer-events:none}
.ms7-interrupteur{flex:0 0 36px;width:36px;height:20px;border-radius:99px;background:#cbd5e1;position:relative;transition:background .2s}
.ms7-interrupteur::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:left .2s}
.ms7-regle-on{border-color:#0e7490;background:#ecfeff}
.ms7-regle-on .ms7-interrupteur{background:#0e7490}.ms7-regle-on .ms7-interrupteur::after{left:18px}
.ms7-regle:focus-within{outline:3px solid #fbbf24}
.ms7-tel{background:#0f172a;border-radius:26px;padding:10px;border:3px solid #334155;box-shadow:0 12px 30px rgba(0,0,0,.35)}
.ms7-tel-haut{display:flex;justify-content:space-between;color:#e2e8f0;font-size:13px;font-weight:700;padding:2px 8px 8px}
.ms7-tel-ecran{background:linear-gradient(#1e1b4b,#0f172a);border-radius:16px;height:300px;overflow-y:auto;padding:8px;display:flex;flex-direction:column;gap:6px}
.ms7-notif{background:rgba(255,255,255,.95);border-radius:10px;padding:6px 9px;font-size:12.5px;color:#1a1430;animation:ms7-tombe .35s ease both;display:grid;grid-template-columns:1fr auto;gap:0 6px}
.ms7-notif b{font-size:12px}.ms7-notif span{font-size:11px;color:#64748b}
.ms7-notif p{grid-column:1/-1;margin:2px 0 0}
.ms7-notif-muette{background:rgba(255,255,255,.25);color:#cbd5e1}
.ms7-notif-muette span{color:#94a3b8}
.ms7-notif-imp{border-left:4px solid #f59e0b}
.ms7-notif-ratee{border-left:4px solid #ef4444;box-shadow:0 0 0 2px #ef4444}
/* Le calcul */
.ms7-calcul-q{font-size:16px;line-height:1.45;font-weight:600}
.ms7-formule-b{font:inherit;font-size:14px;background:#fef9c3;border:1px dashed #ca8a04;border-radius:10px;padding:6px 12px;cursor:pointer;color:#713f12}
.ms7-formule{background:#fef9c3;border-radius:10px;padding:8px 12px;font-weight:700;animation:ms7-monte .3s ease both}
.ms7-calcul-saisie{display:flex;align-items:center;gap:8px;margin-top:10px;flex-wrap:wrap}
.ms7-calcul-saisie input{font:inherit;font-size:18px;width:130px;padding:8px 10px;border:2px solid #cbd5e1;border-radius:10px}
/* Le relais */
.ms7-relais-q{display:flex;gap:12px;align-items:center;background:#f1f5f9;border-radius:14px;padding:10px 12px;animation:ms7-tombe .4s ease both}
.ms7-relais-q img{width:58px;height:58px;border-radius:50%;object-fit:cover;flex:0 0 58px}
.ms7-relais-q p{margin:3px 0 0;font-size:16px;font-weight:600}
.ms7-relais-equipe{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
.ms7-relais-p{font:inherit;display:flex;flex-direction:column;align-items:center;gap:2px;border:2px solid #e2e8f0;background:#fff;border-radius:12px;padding:8px 4px;cursor:pointer;color:#1a1430}
.ms7-relais-p img{width:52px;height:52px;border-radius:50%;object-fit:cover}
.ms7-relais-p i{font-style:normal;font-size:11px;color:#64748b;text-align:center}
.ms7-relais-p:hover:not(:disabled){transform:translateY(-3px);border-color:#6366f1}
.ms7-relais-bon{border-color:#16a34a;background:#f0fdf4}.ms7-relais-faux{border-color:#dc2626;background:#fef2f2}.ms7-relais-eteint{opacity:.45}
.ms7-relais-rep{margin-top:12px;display:grid;grid-template-columns:auto 1fr;gap:6px 12px;align-items:center;background:#0f172a;color:#fff;border-radius:14px;padding:12px;animation:ms7-zoom .5s ease both}
.ms7-relais-pov{grid-column:1/-1;font-size:12px;font-weight:800;color:#fbbf24;text-transform:uppercase;letter-spacing:.05em}
.ms7-relais-rep img{width:72px;height:72px;border-radius:14px;object-fit:cover}
.ms7-relais-rep p{margin:0;font-size:16px;font-style:italic}
.ms7-relais-rep>i{grid-column:1/-1;font-style:normal;font-size:13.5px;color:#cbd5e1}
/* Le changement de regard */
.ms7-bascule{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;color:#fff;max-width:640px}
.ms7-bascule-jour{background:#fbbf24;color:#1a1430;font-weight:800;border-radius:99px;padding:4px 14px;font-size:14px}
.ms7-bascule-carte{display:flex;align-items:center;gap:14px;background:rgba(255,255,255,.12);backdrop-filter:blur(6px);border-radius:18px;padding:12px 18px;animation:ms7-flip .8s cubic-bezier(.2,1.2,.4,1) both;text-align:left}
.ms7-bascule-carte img{width:92px;height:92px;border-radius:50%;object-fit:cover;border:3px solid #fbbf24}
.ms7-bascule-carte span{font-size:13px;opacity:.85}.ms7-bascule-carte h2{margin:2px 0;font-size:24px}.ms7-bascule-carte i{font-style:normal;font-size:13px;opacity:.85}
.ms7-bascule h3{margin:0;font-size:22px}
.ms7-bascule-tous{display:flex;justify-content:center}
.ms7-bascule-tous img{width:70px;height:70px;border-radius:50%;object-fit:cover;border:3px solid #fff;margin:0 -8px;animation:ms7-tombe .5s ease both}
.ms7-secret{background:rgba(15,23,42,.75);border:1px solid rgba(251,191,36,.6);border-radius:14px;padding:10px 14px;line-height:1.45;font-size:15px;text-align:left}
.ms7-secret b{display:block;color:#fbbf24;margin-bottom:3px}
.ms7-rappels{background:rgba(124,58,237,.75);border-radius:12px;padding:6px 12px;font-size:14px;text-align:left}
.ms7-rappels p{margin:4px 0}
/* La semaine */
.ms7-semaine h3{margin:0 0 10px}
.ms7-sem-l{font:inherit;width:100%;display:grid;grid-template-columns:90px 40px 1fr auto;align-items:center;gap:10px;text-align:left;border:2px solid #e2e8f0;background:#fff;border-radius:12px;padding:8px;margin-bottom:6px;cursor:pointer;color:#1a1430}
.ms7-sem-l:disabled{opacity:.5;cursor:not-allowed}
.ms7-sem-l img{width:40px;height:40px;border-radius:50%;object-fit:cover}
.ms7-sem-jour{font-weight:800;display:flex;flex-direction:column}.ms7-sem-jour i{font-style:normal;font-weight:500;font-size:12px;color:#64748b}
.ms7-sem-t{display:flex;flex-direction:column}.ms7-sem-t i{font-style:normal;font-size:12.5px;color:#64748b}
.ms7-sem-tous{font-size:28px;text-align:center}
.ms7-sem-fait{border-color:#16a34a}.ms7-sem-ici{border-color:#fbbf24;box-shadow:0 0 0 3px rgba(251,191,36,.3)}
/* L'arrivée */
.ms7-narration{background:rgba(15,23,42,.85);color:#fff;border-radius:18px;padding:16px 20px;max-width:760px;line-height:1.5;font-size:16px}
.ms7-equipe{display:flex;flex-direction:column;align-items:center;gap:12px}
.ms7-equipe-g{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;width:100%}
.ms7-equipe-p{background:rgba(255,255,255,.95);border-top:5px solid var(--c);border-radius:12px;padding:8px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:3px;animation:ms7-tombe .5s ease both;color:#1a1430}
.ms7-equipe-p img{width:64px;height:64px;border-radius:50%;object-fit:cover}
.ms7-equipe-p b{font-size:13px}.ms7-equipe-p i{font-style:normal;font-size:11.5px;color:#64748b}
/* La démo et les fins */
.ms7-zwazo-titre{display:flex;flex-direction:column;align-items:center;gap:10px;color:#fff;text-shadow:0 4px 20px rgba(0,0,0,.6)}
.ms7-zwazo-titre b{font-size:clamp(54px,12vw,110px);letter-spacing:.12em;animation:ms7-vol 3s ease-in-out infinite;font-family:"Trebuchet MS",system-ui,sans-serif}
.ms7-zwazo-titre span{font-size:18px;font-weight:700}
.ms7-fin{text-align:center}
.ms7-fin-ico{font-size:64px;animation:ms7-vol 2.4s ease-in-out infinite}
.ms7-fin h2{margin:4px 0 8px;font-size:28px}
.ms7-fin-vole{border:4px solid #16a34a}.ms7-fin-tient{border:4px solid #f59e0b}.ms7-fin-crash{border:4px solid #dc2626;animation:ms7-secoue .5s}
.ms7-croises{text-align:left;background:#f8fafc;border-radius:12px;padding:10px 14px;margin:10px 0}
.ms7-croises p{margin:5px 0;font-size:14.5px}
.ms7-croise-ok{color:#166534}.ms7-croise-ko{color:#991b1b}
/* Les documents */
.ms7-bandeau{background:linear-gradient(90deg,#312e81,#7c3aed)}
.ms7-badge .pdl-badge-face{background:linear-gradient(160deg,#fff,#ede9fe)}
.ms7-table{width:100%;border-collapse:collapse;font-size:13.5px;margin:8px 0}
.ms7-table th,.ms7-table td{border:1px solid #e2e8f0;padding:5px 7px;text-align:left;vertical-align:top}
.ms7-table th{background:#eef2ff}
.ms7-tr-barre td{text-decoration:line-through;color:#991b1b}
.ms7-doc-kanban{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;font-size:12.5px}
.ms7-doc-kanban>div{background:#f1f5f9;border-radius:8px;padding:6px;display:flex;flex-direction:column;gap:4px}
.ms7-doc-kanban span{background:#fff;border-radius:6px;padding:4px}
/* Animations */
@keyframes ms7-monte{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes ms7-tombe{from{opacity:0;transform:translateY(-16px) scale(.96)}to{opacity:1;transform:none}}
@keyframes ms7-point{0%,80%,100%{opacity:.25}40%{opacity:1}}
@keyframes ms7-clin{to{opacity:0}}
@keyframes ms7-ondule{0%,100%{transform:rotate(-12deg)}50%{transform:rotate(12deg)}}
@keyframes ms7-onde{0%,100%{transform:scaleY(.4)}50%{transform:scaleY(1)}}
@keyframes ms7-secoue{0%,100%{transform:none}25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
@keyframes ms7-retourne{from{transform:rotateY(90deg)}to{transform:none}}
@keyframes ms7-flip{from{opacity:0;transform:rotateY(80deg)}to{opacity:1;transform:none}}
@keyframes ms7-zoom{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:none}}
@keyframes ms7-vol{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-12px) rotate(2deg)}}
@media(max-width:700px){
  .ms7-maillon-corps{flex-direction:column}
  .ms7-maillon-nav{width:auto;flex:0 0 auto;flex-direction:row;overflow-x:auto;padding:6px}
  .ms7-canal{flex:0 0 auto}
  .ms7-maillon-studio{display:none}
  .ms7-std-outils{grid-template-columns:repeat(2,1fr)}
  .ms7-choix-o,.ms7-fichiers-grille,.ms7-maree-duo,.ms7-wiki-duo,.ms7-wiki-btns{grid-template-columns:1fr}
  .ms7-tresse-scene{grid-template-columns:1fr 1fr}
  .ms7-tresse-carte{grid-column:1/-1;grid-row:1}
  .ms7-kanban{grid-template-columns:1fr 1fr}
  .ms7-visio{grid-template-columns:repeat(3,1fr)}
  .ms7-mem-tetes{grid-template-columns:1fr 1fr}
  .ms7-relais-equipe{grid-template-columns:repeat(3,1fr)}
  .ms7-equipe-g{grid-template-columns:repeat(3,1fr)}
  .ms7-puzzle{grid-template-columns:1fr}
  .ms7-sem-l{grid-template-columns:70px 34px 1fr auto;gap:6px}
  .ms7-doc-kanban{grid-template-columns:1fr 1fr}
  .ms7-tel-ecran{height:240px}
}
@media(prefers-reduced-motion:reduce){.ms7 *{animation:none!important}}
/* ==== ms7 : fin des styles ==== */
/* ==== ms6 : debut des styles ====
   « Allô Koudpous ! » — le téléphone de permanence (SDGN 1re, chapitre 6).
   Tout est préfixé ms6- ; les briques pdl- de Péi Délices servent telles quelles. */
.ms6 .ms6-decor{min-height:min(92vh,900px);align-items:flex-start}
.ms6 .ms6-decor .pdl-decor-contenu{max-width:1060px;padding:16px 12px}
.ms6-scene{display:flex;gap:22px;align-items:flex-start;justify-content:center;width:100%}
.ms6-scene-fin{flex-direction:column;align-items:center}

/* --- le téléphone --- */
.ms6-tel{flex:0 0 auto;width:392px;max-width:100%;height:min(84vh,800px);min-height:560px;border-radius:46px;padding:11px;
  background:linear-gradient(145deg,#1f2937,#0b1220 55%,#334155);box-shadow:0 0 0 2px #475569,0 30px 60px rgba(0,0,0,.55),inset 0 0 0 1px rgba(255,255,255,.08);
  position:relative;animation:ms6-pose .6s cubic-bezier(.2,.9,.3,1.2);transform-style:preserve-3d}
@keyframes ms6-pose{from{opacity:0;transform:translateY(40px) rotateX(18deg) scale(.94)}to{opacity:1;transform:none}}
.ms6-tel::before{content:"";position:absolute;right:-3px;top:130px;width:4px;height:64px;border-radius:3px;background:#475569}
.ms6-tel::after{content:"";position:absolute;left:-3px;top:110px;width:4px;height:38px;border-radius:3px;background:#475569;box-shadow:0 56px 0 #475569}
.ms6-vibre{animation:ms6-vibre .09s linear 7}
@keyframes ms6-vibre{0%{transform:translate(0,0) rotate(0)}25%{transform:translate(-3px,1px) rotate(-1deg)}50%{transform:translate(3px,-1px) rotate(1deg)}75%{transform:translate(-2px,0) rotate(-.5deg)}100%{transform:none}}
.ms6-tel-ecran{position:relative;height:100%;border-radius:36px;overflow:hidden;background:#efeae2;display:flex;flex-direction:column;
  background-image:radial-gradient(rgba(14,116,144,.06) 1px,transparent 1px);background-size:16px 16px}
.ms6-fond-accueil{background:linear-gradient(160deg,#0e7490 0%,#155e75 40%,#7c3aed 100%);color:#fff}
.ms6-fond-liege{background:#b08155;background-image:radial-gradient(rgba(0,0,0,.12) 1px,transparent 1.5px);background-size:7px 7px}
.ms6-etat{display:flex;align-items:center;justify-content:space-between;padding:9px 22px 5px;font-size:13px;font-weight:700;color:#0f172a;position:relative;z-index:3;flex:0 0 auto}
.ms6-fond-accueil .ms6-etat,.ms6-fond-liege .ms6-etat{color:#fff}
.ms6-encoche{position:absolute;left:50%;top:7px;transform:translateX(-50%);width:96px;height:24px;border-radius:14px;background:#0b1220}
.ms6-etat-d{font-size:11.5px;display:flex;align-items:center;gap:4px}
.ms6-batt{display:inline-block;width:22px;height:11px;border:1.5px solid currentColor;border-radius:3px;position:relative}
.ms6-batt::after{content:"";position:absolute;left:1.5px;top:1.5px;bottom:1.5px;width:62%;background:currentColor;border-radius:1px}
.ms6-app-tete{display:flex;align-items:center;gap:9px;padding:7px 12px 8px;background:#075e54;color:#fff;flex:0 0 auto;box-shadow:0 2px 6px rgba(0,0,0,.15);z-index:2}
.ms6-app-titre{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.ms6-app-titre b{font-size:15.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms6-app-titre span{font-size:11.5px;opacity:.82;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms6-retour{background:none;border:0;color:#fff;font-size:26px;line-height:1;cursor:pointer;padding:0 4px}
.ms6-corps{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:10px 10px 14px;overscroll-behavior:contain;scrollbar-width:thin}
.ms6-pied{flex:0 0 auto;max-height:58%;overflow-y:auto;padding:8px 10px 6px;background:#f0f2f5;border-top:1px solid #e2e8f0}
.ms6-fond-accueil .ms6-pied{background:rgba(255,255,255,.12);border:0}
.ms6-barre-geste{flex:0 0 auto;width:120px;height:5px;border-radius:3px;background:rgba(15,23,42,.35);margin:6px auto 7px}
.ms6-fond-accueil .ms6-barre-geste{background:rgba(255,255,255,.6)}
.ms6-av{width:34px;height:34px;border-radius:50%;object-fit:cover;object-position:center 20%;flex:0 0 auto;background:#cbd5e1;display:inline-block}
.ms6-av-ini{display:inline-grid;place-items:center;color:#fff;font-weight:800;font-size:12px}

/* --- la notification qui tombe --- */
.ms6-notif{position:absolute;left:8px;right:8px;top:36px;z-index:6;display:flex;gap:10px;align-items:center;text-align:left;font:inherit;
  background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border:0;border-radius:18px;padding:10px 12px;box-shadow:0 10px 30px rgba(0,0,0,.28);
  cursor:pointer;animation:ms6-tombe .45s cubic-bezier(.2,.9,.3,1.3);color:#0f172a}
@keyframes ms6-tombe{from{transform:translateY(-120%);opacity:0}to{transform:none;opacity:1}}
.ms6-notif span{display:flex;flex-direction:column;font-size:13px;line-height:1.3;min-width:0}
.ms6-notif b{display:flex;justify-content:space-between;gap:8px;font-size:13px}
.ms6-notif b i{font-weight:400;color:#64748b;font-style:normal;font-size:11px}

/* --- la conversation --- */
.ms6-conv{display:flex;flex-direction:column;gap:3px}
.ms6-conv-bas{height:2px}
.ms6-sys{align-self:center;background:#fff7d6;color:#7c5a00;font-size:12px;padding:4px 10px;border-radius:8px;margin:6px 0;text-align:center;box-shadow:0 1px 1px rgba(0,0,0,.06);animation:ms6-msg .3s}
.ms6-msg{display:flex;gap:6px;align-items:flex-end;margin-top:6px;animation:ms6-msg .32s ease}
.ms6-msg.suite{margin-top:1px}
.ms6-msg.moi{justify-content:flex-end}
@keyframes ms6-msg{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
.ms6-msg-av{width:28px;flex:0 0 28px}
.ms6-msg-av .ms6-av{width:28px;height:28px}
.ms6-bulle{position:relative;max-width:82%;background:#fff;border-radius:4px 14px 14px 14px;padding:6px 9px 14px;font-size:14.5px;line-height:1.38;color:#111b21;
  box-shadow:0 1px 1.5px rgba(0,0,0,.13);display:flex;flex-direction:column;gap:4px;text-align:left;min-width:62px}
.ms6-msg.moi .ms6-bulle{background:#d9fdd3;border-radius:14px 4px 14px 14px}
.ms6-bulle-nom{font-size:12.5px;color:#0e7490}
.ms6-lu{position:absolute;right:7px;bottom:2px;font-size:10px;color:#53bdeb}
.ms6-bulle.bon{box-shadow:0 0 0 2px #22c55e}
.ms6-bulle.faux{box-shadow:0 0 0 2px #f59e0b}
.ms6-ecrit .ms6-bulle{flex-direction:row;align-items:center;gap:8px;padding:8px 10px}
.ms6-ecrit em{font-size:11.5px;color:#64748b}
.ms6-points{display:inline-flex;gap:3px}
.ms6-points i{width:7px;height:7px;border-radius:50%;background:#94a3b8;animation:ms6-point 1.1s infinite}
.ms6-points i:nth-child(2){animation-delay:.18s}.ms6-points i:nth-child(3){animation-delay:.36s}
@keyframes ms6-point{0%,60%,100%{transform:none;opacity:.5}30%{transform:translateY(-4px);opacity:1}}
.ms6-pj{display:flex;gap:9px;align-items:center;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:10px;padding:7px 9px;cursor:pointer;font:inherit;text-align:left}
.ms6-pj i{font-size:26px;font-style:normal}
.ms6-pj span{display:flex;flex-direction:column;font-weight:700;font-size:13px}
.ms6-pj em{font-weight:400;font-size:11px;color:#64748b;font-style:normal}
.ms6-pj:hover{background:#e0f2fe}
.ms6-vocal{display:flex;align-items:center;gap:8px;background:none;border:0;cursor:pointer;font:inherit;padding:2px 0}
.ms6-vocal i{width:30px;height:30px;border-radius:50%;background:#0e7490;color:#fff;display:grid;place-items:center;font-style:normal;font-size:12px}
.ms6-onde{display:flex;align-items:center;gap:2px;height:24px}
.ms6-onde u{display:block;width:3px;border-radius:2px;background:#64748b}
.ms6-vocal em{font-size:11px;color:#64748b;font-style:normal}

/* --- saisie, réponses, boutons du pied --- */
.ms6-saisie{background:#fff;border-radius:22px;padding:9px 14px;font-size:14px;color:#111b21;min-height:40px;box-shadow:inset 0 0 0 1px #e2e8f0;margin:6px 0;line-height:1.4}
.ms6-saisie.vide{color:#94a3b8}
.ms6-saisie i{color:#94a3b8}
.ms6-pied-duo{display:flex;gap:6px;align-items:center}
.ms6-pied-duo .ms6-saisie{flex:1}
.ms6-vite{width:40px;height:40px;border-radius:50%;border:0;background:#075e54;color:#fff;font-size:15px;cursor:pointer;flex:0 0 auto}
.ms6-pied-btn{display:block;width:100%;font:inherit;font-weight:800;font-size:14.5px;border:0;border-radius:22px;padding:11px 14px;cursor:pointer;
  background:linear-gradient(135deg,#0e7490,#7c3aed);color:#fff;box-shadow:0 6px 16px rgba(14,116,144,.35)}
.ms6-reponses{display:flex;flex-direction:column;gap:6px}
.ms6-reponses-t{font-size:13px;font-weight:700;color:#334155;line-height:1.35}
.ms6-rep{display:flex;gap:8px;align-items:flex-start;text-align:left;font:inherit;font-size:14px;line-height:1.35;background:#fff;border:1.5px solid #cbd5e1;border-radius:14px;
  padding:8px 11px;cursor:pointer;animation:ms6-msg .3s both;color:#0f172a}
.ms6-rep:hover{border-color:#0e7490;background:#f0fdfa}
.ms6-rep-l{flex:0 0 22px;height:22px;border-radius:50%;background:#e2e8f0;display:grid;place-items:center;font-size:12px;font-weight:800}
.ms6 .pdl-why{font-size:14px}
.ms6-cta{display:block;margin:10px auto 4px;font-size:15px}
.ms6-consigne{font-size:13.5px;line-height:1.4;background:#fff;border-left:4px solid #0e7490;border-radius:8px;padding:8px 10px;margin:4px 0 10px;color:#0f172a}
.ms6-consigne i{color:#64748b;font-size:12px}
.ms6-aide{font-size:12.5px;color:#475569;margin:6px 2px;line-height:1.4}
.ms6-compte{position:sticky;top:-10px;z-index:2;text-align:center;font-size:12.5px;font-weight:800;color:#0e7490;background:#ecfeff;border:1px solid #a5f3fc;border-radius:10px;padding:5px 8px;margin:0 0 8px}
.ms6-compte.urgent{color:#b91c1c;background:#fef2f2;border-color:#fecaca;animation:pdl-clig 1s infinite}

/* --- la leçon, sous ses différentes formes --- */
.ms6-fiche{background:#fff;border-radius:14px;padding:12px 14px 14px;box-shadow:0 6px 20px rgba(0,0,0,.14);animation:ms6-fiche .5s cubic-bezier(.2,.9,.3,1.2);color:#0f172a}
@keyframes ms6-fiche{from{opacity:0;transform:translateY(16px) rotate(-1.5deg)}to{opacity:1;transform:none}}
.ms6-fiche-tete{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:800;color:#0e7490;text-transform:uppercase;letter-spacing:.04em}
.ms6-fiche-tete i{font-style:normal;font-weight:600;text-transform:none;color:#64748b;letter-spacing:0}
.ms6-fiche-sur{font-size:11px;font-weight:800;color:#7c3aed;margin-top:8px;letter-spacing:.06em;text-transform:uppercase}
.ms6-fiche h3{font-family:Fraunces,Georgia,serif;font-size:21px;margin:2px 0 8px;line-height:1.2}
.ms6-fiche ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:7px}
.ms6-fiche li{font-size:14.5px;line-height:1.45;padding:7px 9px 7px 30px;background:#f0f9ff;border-radius:9px;position:relative;animation:ms6-msg .45s both}
.ms6-fiche li::before{content:"💡";position:absolute;left:7px;top:6px;font-size:14px}
.ms6-fiche p{font-size:14.5px;line-height:1.5}
.ms6-fiche-epingle{border-top:6px solid #f59e0b}
.ms6-fiche-epingle .ms6-fiche-tete{color:#b45309}
.ms6-fiche-pdf{border-radius:4px;box-shadow:0 0 0 1px #e2e8f0,0 10px 24px rgba(0,0,0,.18)}
.ms6-fiche-pdf .ms6-fiche-tete{background:#475569;color:#fff;margin:-12px -14px 8px;padding:8px 12px;border-radius:4px 4px 0 0}
.ms6-fiche-pdf .ms6-fiche-tete i{color:#cbd5e1}
.ms6-fiche-sms li{background:#d9fdd3;border-radius:14px 4px 14px 14px}
.ms6-fiche-photo{background:#fffef5;border:10px solid #fff;box-shadow:0 0 0 1px #e2e8f0,0 12px 26px rgba(0,0,0,.22);transform:rotate(-.8deg)}
.ms6-fiche-photo li{background:rgba(14,116,144,.07)}
.ms6-fiche-postit{background:#fef08a;border-radius:2px;transform:rotate(1.2deg);box-shadow:0 14px 22px rgba(0,0,0,.3);font-family:"Comic Sans MS","Segoe Print",cursive,system-ui}
.ms6-fiche-postit h3{font-family:inherit}
.ms6-fiche-postit li{background:rgba(255,255,255,.4)}
.ms6-fiche-article{border-top:5px double #0f172a;border-radius:2px}
.ms6-fiche-article h3{font-size:23px;border-bottom:1px solid #cbd5e1;padding-bottom:6px}
.ms6-fiche-article li{background:none;border-left:3px solid #0f172a;border-radius:0;padding-left:30px}
.ms6-fiche-vocal{background:#ecfeff}
.ms6-fiche-onde{display:flex;align-items:center;justify-content:center;gap:3px;height:40px;margin:6px 0}
.ms6-fiche-onde u{display:block;width:4px;border-radius:3px;background:#0e7490;animation:ms6-onde 1.2s ease-in-out infinite alternate}
@keyframes ms6-onde{from{transform:scaleY(.35)}to{transform:scaleY(1)}}

/* --- les réactions --- */
.ms6-rx-msg{flex-wrap:wrap;position:relative}
.ms6-rx-bulle{cursor:pointer;font:inherit;border:0;transition:transform .15s,box-shadow .15s}
.ms6-rx-bulle:hover:not(:disabled){transform:scale(1.02)}
.ms6-rx-bulle.on{box-shadow:0 0 0 2px #0e7490}
.ms6-rx-bulle.bon{box-shadow:0 0 0 2px #22c55e}
.ms6-rx-bulle.faux{box-shadow:0 0 0 2px #ef4444;animation:ms6-non .4s}
@keyframes ms6-non{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.ms6-rx-pastille{position:absolute;right:-6px;bottom:-12px;background:#fff;border-radius:12px;padding:1px 5px;font-size:17px;box-shadow:0 1px 4px rgba(0,0,0,.2);animation:ms6-pop .35s cubic-bezier(.2,.9,.3,1.6)}
@keyframes ms6-pop{from{transform:scale(0)}to{transform:scale(1)}}
.ms6-rx-choix{flex-basis:100%;display:flex;gap:6px;margin:6px 0 4px 34px;background:#fff;border-radius:24px;padding:5px 8px;box-shadow:0 6px 18px rgba(0,0,0,.2);width:max-content;max-width:calc(100% - 34px);animation:ms6-pop .25s}
.ms6-rx-choix button{display:flex;flex-direction:column;align-items:center;background:none;border:0;cursor:pointer;font:inherit;padding:2px 6px;border-radius:12px}
.ms6-rx-choix button:hover{background:#f1f5f9}
.ms6-rx-choix span{font-size:24px;transition:transform .15s}
.ms6-rx-choix button:hover span{transform:scale(1.3) translateY(-3px)}
.ms6-rx-choix i{font-size:10.5px;font-style:normal;color:#475569}
.ms6-rx-why{flex-basis:100%;font-size:12.5px;color:#92400e;background:#fffbeb;border-radius:8px;padding:5px 8px;margin:6px 0 0 34px}

/* --- la sélection de morceaux --- */
.ms6-sel-puces{display:flex;flex-wrap:wrap;gap:6px}
.ms6-puce{font:inherit;font-size:13.5px;background:#fff;border:1.5px dashed #94a3b8;border-radius:16px;padding:6px 11px;cursor:pointer;color:#0f172a;transition:transform .12s}
.ms6-puce:hover{transform:translateY(-2px)}
.ms6-puce.on{background:#0e7490;border:1.5px solid #0e7490;color:#fff}
.ms6-puce.faux{border:2px solid #ef4444;animation:ms6-non .4s}
.ms6-puce.bon{background:#16a34a;border-color:#16a34a}
.ms6-puce i{font-style:normal;opacity:.75;font-size:11.5px}

/* --- le tableur et le clavier --- */
.ms6-xls{background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.12);margin-bottom:8px}
.ms6-xls-tete{background:#107c41;color:#fff;font-size:12.5px;font-weight:700;padding:6px 10px}
.ms6-xls table{border-collapse:collapse;width:100%;font-size:12.5px}
.ms6-xls th{background:#f1f5f9;font-weight:600;color:#475569;font-size:10.5px;padding:4px;border:1px solid #e2e8f0}
.ms6-xls td{border:1px solid #e2e8f0;padding:5px 6px;text-align:right}
.ms6-xls td:nth-child(2){text-align:left}
.ms6-xls-n{background:#f1f5f9;color:#94a3b8;text-align:center!important;width:22px}
.ms6-xls-vide td{background:#fefce8;font-weight:800;color:#a16207}
.ms6-xls .ms6-aide{padding:0 8px 6px}
.ms6-clavier-ecran{display:flex;justify-content:space-between;align-items:baseline;background:#0f172a;color:#e2e8f0;border-radius:12px;padding:10px 14px;font-size:26px;font-weight:800;font-variant-numeric:tabular-nums;min-height:52px}
.ms6-clavier-ecran i{color:#475569}
.ms6-clavier-ecran span{font-size:14px;color:#94a3b8}
.ms6-clavier-ecran.bon{background:#14532d}
.ms6-touches{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:8px}
.ms6-touches button{font:inherit;font-size:21px;font-weight:600;height:46px;border-radius:12px;border:0;background:#fff;box-shadow:0 2px 0 #cbd5e1;cursor:pointer;color:#0f172a}
.ms6-touches button:active{transform:translateY(2px);box-shadow:none}

/* --- la fusion --- */
.ms6-fusion-prog{font-size:11.5px;font-weight:800;color:#7c3aed;text-transform:uppercase;letter-spacing:.05em}
.ms6-fusion-nom{font-weight:800;font-size:16px;margin:2px 0 6px}
.ms6-fusion-nom span{font-weight:600;color:#0e7490}
.ms6-fusion-duo{display:grid;grid-template-columns:1fr 1fr;gap:8px;animation:ms6-msg .35s}
.ms6-fiche-b{position:relative;overflow:hidden;display:flex;flex-direction:column;gap:6px;text-align:left;font:inherit;background:#fff;border:2px solid #e2e8f0;border-radius:12px;padding:10px;cursor:pointer;min-height:96px;transition:transform .2s,opacity .3s}
.ms6-fiche-b:hover:not(:disabled){border-color:#0e7490;transform:translateY(-2px)}
.ms6-fiche-b b{font-size:14px;line-height:1.35}
.ms6-fiche-b-src{font-size:11px;color:#64748b;font-weight:700}
.ms6-fiche-b.garde{border-color:#16a34a;background:#f0fdf4}
.ms6-fiche-b.faux{border-color:#ef4444;animation:ms6-non .4s}
.ms6-fiche-b.ecarte{opacity:.8;background:#f8fafc}
.ms6-tampon{position:absolute;right:6px;bottom:8px;transform:rotate(-14deg);border:3px solid #dc2626;color:#dc2626;font-weight:900;font-size:13px;padding:2px 6px;border-radius:6px;letter-spacing:.06em;animation:ms6-tampon .35s cubic-bezier(.2,.9,.3,1.5);background:rgba(255,255,255,.75)}
@keyframes ms6-tampon{from{transform:rotate(-14deg) scale(2.4);opacity:0}to{transform:rotate(-14deg) scale(1);opacity:1}}
.ms6-tampons{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px}
.ms6-tampon-btn{font:inherit;font-size:12.5px;font-weight:700;line-height:1.3;border:2px solid #fca5a5;color:#991b1b;background:#fff;border-radius:10px;padding:8px;cursor:pointer;text-align:left}
.ms6-tampon-btn:hover:not(:disabled){background:#fef2f2}
.ms6-tampon-btn.bon{background:#dc2626;color:#fff;border-color:#dc2626}
.ms6-tampon-btn.faux{opacity:.45;animation:ms6-non .4s}

/* --- l'appel --- */
.ms6-tel-appel .ms6-tel-ecran{background:linear-gradient(180deg,#0f172a,#134e4a);color:#fff}
.ms6-tel-appel .ms6-etat{color:#fff}
.ms6-appel{display:flex;flex-direction:column;align-items:center;gap:6px;padding-top:22px;min-height:100%}
.ms6-appel-photo{position:relative}
.ms6-appel-photo .ms6-av{width:108px;height:108px;border:3px solid rgba(255,255,255,.7)}
.ms6-ondes{position:absolute;inset:-12px;border-radius:50%;border:3px solid rgba(94,234,212,.7);animation:ms6-ondes 1.4s ease-out infinite}
@keyframes ms6-ondes{from{transform:scale(.85);opacity:1}to{transform:scale(1.5);opacity:0}}
.ms6-appel-nom{font-size:22px;margin-top:8px}
.ms6-appel-etat{font-size:13px;opacity:.8;font-variant-numeric:tabular-nums}
.ms6-appel-btns{display:flex;gap:70px;margin-top:auto;padding-bottom:30px}
.ms6-appel-btns button{width:66px;height:66px;border-radius:50%;border:0;font-size:28px;color:#fff;cursor:pointer}
.ms6-raccrocher{background:#ef4444;transform:rotate(135deg);opacity:.5;cursor:not-allowed!important}
.ms6-decrocher{background:#22c55e;animation:ms6-sonne .8s ease-in-out infinite}
@keyframes ms6-sonne{0%,100%{transform:rotate(0)}20%{transform:rotate(-18deg)}40%{transform:rotate(18deg)}60%{transform:rotate(-10deg)}}
.ms6-sous-titre{background:rgba(255,255,255,.12);border-radius:14px;padding:12px 14px;font-size:15.5px;line-height:1.45;margin-top:14px;width:100%;display:flex;flex-direction:column;gap:8px}
.ms6-appel .ms6-reponses,.ms6-appel .pdl-why{width:100%;margin-top:10px}
.ms6-appel .ms6-reponses-t{color:#e2e8f0}
.ms6-appel .pdl-why{color:#0f172a}
.ms6-raccrocher-g{margin-top:14px;font:inherit;font-weight:800;border:0;border-radius:24px;background:#ef4444;color:#fff;padding:10px 22px;cursor:pointer}

/* --- ranger (le métro des fonctions, le cahier) --- */
.ms6-cartes{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
.ms6-carte{font:inherit;font-size:13.5px;line-height:1.35;text-align:left;background:#fff;border:1.5px solid #cbd5e1;border-radius:10px;padding:8px 10px;cursor:pointer;box-shadow:0 2px 0 #e2e8f0;color:#0f172a}
.ms6-carte.sel{border-color:#7c3aed;background:#f5f3ff;transform:scale(1.02);box-shadow:0 6px 14px rgba(124,58,237,.25)}
.ms6-places{display:flex;flex-direction:column;gap:8px}
.ms6-place{border:2px dashed #94a3b8;border-radius:12px;padding:8px;min-height:48px;background:rgba(255,255,255,.6);cursor:pointer;transition:background .2s}
.ms6-place.cible{border-color:#7c3aed;background:#f5f3ff}
.ms6-place-t{font-weight:800;font-size:13px;display:flex;align-items:center;gap:7px;color:#0f172a}
.ms6-pose{font-size:12.5px;line-height:1.35;background:#fff;border-radius:8px;padding:6px 8px;margin-top:6px;box-shadow:0 1px 3px rgba(0,0,0,.1);animation:ms6-pop .25s;position:relative}
.ms6-pose.faux{background:#fee2e2;animation:ms6-non .4s}
.ms6-pose.bon{background:#dcfce7}
.ms6-pose.casse{background:#fef3c7;box-shadow:0 0 0 2px #f59e0b}
.ms6-casse{position:absolute;right:6px;top:-8px;font-size:18px;animation:pdl-clig 1s infinite}
.ms6-ranger-metro .ms6-places{position:relative;padding-left:16px}
.ms6-ranger-metro .ms6-places::before{content:"";position:absolute;left:24px;top:14px;bottom:14px;width:6px;border-radius:3px;background:linear-gradient(#0e7490,#7c3aed)}
.ms6-ranger-metro .ms6-place{border-style:solid;border-color:#e2e8f0;background:#fff;margin-left:20px}
.ms6-station{width:24px;height:24px;border-radius:50%;background:#0e7490;color:#fff;display:grid;place-items:center;font-size:12px;margin-left:-36px;border:3px solid #fff;box-shadow:0 0 0 2px #0e7490;position:relative;z-index:1}
.ms6-ranger-cahier .ms6-place{border-style:solid;border-color:#e2e8f0;background:#fffdf5;border-left:8px solid #f59e0b}
.ms6-metro-mini{display:flex;justify-content:space-between;background:#fff;border-radius:12px;padding:8px;margin-bottom:10px;font-size:11.5px;font-weight:700}
.ms6-metro-mini span{display:flex;flex-direction:column;align-items:center;gap:3px}
.ms6-metro-mini b{width:22px;height:22px;border-radius:50%;background:#0e7490;color:#fff;display:grid;place-items:center}
.ms6-metro-mini span:nth-child(2) b{background:#f59e0b;animation:pdl-clig 1s infinite}

/* --- l'aiguillage --- */
.ms6-aig-prog{display:flex;gap:5px;justify-content:center;margin-bottom:8px}
.ms6-aig-prog span{width:22px;height:6px;border-radius:3px;background:#cbd5e1}
.ms6-aig-prog span.ici{background:#0e7490;animation:pdl-clig 1s infinite}
.ms6-aig-prog span.bon{background:#22c55e}.ms6-aig-prog span.moyen{background:#f59e0b}.ms6-aig-prog span.faux{background:#ef4444}
.ms6-aig-info{background:#fff;border-radius:14px;padding:10px 12px;box-shadow:0 8px 20px rgba(0,0,0,.15);animation:ms6-tombe .45s cubic-bezier(.2,.9,.3,1.3)}
.ms6-aig-tag{font-size:11px;font-weight:800;color:#7c3aed;text-transform:uppercase}
.ms6-aig-info p{margin:4px 0 8px;font-size:15px;font-weight:700;line-height:1.35}
.ms6-aig-chrono{position:relative;height:20px;background:#e2e8f0;border-radius:10px;overflow:hidden}
.ms6-aig-chrono span{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,#22c55e,#0e7490);transition:width 1s linear}
.ms6-aig-chrono.urgent span{background:#ef4444}
.ms6-aig-chrono b{position:relative;display:block;text-align:center;font-size:12px;line-height:20px;color:#0f172a}
.ms6-aig-zone{margin-top:10px}
.ms6-aig-t{font-size:12.5px;font-weight:800;color:#334155;margin:8px 0 5px}
.ms6-aig-dests{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}
.ms6-aig-dest{display:flex;flex-direction:column;align-items:center;gap:3px;font:inherit;background:#fff;border:2px solid transparent;border-radius:12px;padding:6px 2px;cursor:pointer}
.ms6-aig-dest .ms6-av{width:40px;height:40px}
.ms6-aig-dest i{font-size:10.5px;font-style:normal;line-height:1.15;text-align:center}
.ms6-aig-dest.on{border-color:#0e7490;background:#ecfeff}
.ms6-aig-formes{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.ms6-aig-forme{font:inherit;font-size:12.5px;font-weight:700;background:#fff;border:2px solid #e2e8f0;border-radius:10px;padding:9px 4px;cursor:pointer}
.ms6-aig-forme.on{border-color:#0e7490;background:#ecfeff}
.ms6-aig-forme:disabled{opacity:.4;cursor:not-allowed}

/* --- le caviardage --- */
.ms6-cav-photo{background:#fffef8;border-radius:3px;padding:12px 10px;box-shadow:0 10px 24px rgba(0,0,0,.25);transform:rotate(-1.2deg);font-family:"Segoe Print","Comic Sans MS",cursive,system-ui;
  background-image:repeating-linear-gradient(#fffef8 0 25px,#dbeafe 25px 26px)}
.ms6-cav-photo.statique{transform:none;margin:8px 0}
.ms6-cav-ligne{display:flex;flex-wrap:wrap;gap:5px;padding:4px 0;border-bottom:1px dotted #cbd5e1}
.ms6-cav-ligne.titre{font-weight:800}
.ms6-cav-mot{font:inherit;font-size:13px;background:none;border:0;border-radius:3px;padding:2px 4px;cursor:pointer;color:#1e3a8a;position:relative;transition:background .25s,color .25s}
button.ms6-cav-mot:hover{background:rgba(14,116,144,.1)}
.ms6-cav-mot.noir{background:#0f172a;color:transparent;animation:ms6-noir .3s}
@keyframes ms6-noir{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
.ms6-cav-mot.faux{outline:2px solid #ef4444;outline-offset:1px}

/* --- la fiche à décocher --- */
.ms6-formulaire{background:#fff;border-radius:12px;padding:10px;box-shadow:0 4px 12px rgba(0,0,0,.1)}
.ms6-formulaire-t{font-weight:800;font-size:13.5px;margin-bottom:6px}
.ms6-coche{display:flex;gap:9px;align-items:center;font-size:14px;padding:7px 4px;border-bottom:1px solid #f1f5f9;cursor:pointer}
.ms6-coche input{width:20px;height:20px;accent-color:#0e7490}
.ms6-coche.faux{background:#fef2f2;border-radius:6px}

/* --- les fichiers --- */
.ms6-fichiers{display:flex;flex-direction:column;gap:6px}
.ms6-fichier{display:flex;gap:10px;align-items:center;text-align:left;font:inherit;background:#fff;border:0;border-radius:12px;padding:9px 10px;cursor:pointer;box-shadow:0 1px 3px rgba(0,0,0,.1);color:#0f172a}
.ms6-fichier:hover:not(:disabled){background:#ecfeff}
.ms6-fichier i{font-size:26px;font-style:normal}
.ms6-fichier span{display:flex;flex-direction:column;font-size:13.5px}
.ms6-fichier em{font-style:normal;font-size:11.5px;color:#64748b}
.ms6-fichier.muet{opacity:.55}
.ms6-apercu{background:#fff;border-radius:14px;padding:12px;box-shadow:0 6px 18px rgba(0,0,0,.15);animation:ms6-fiche .4s}
.ms6-apercu-t{font-weight:800;font-size:15px}
.ms6-apercu dl{display:grid;grid-template-columns:auto 1fr;gap:5px 10px;font-size:13.5px;margin:10px 0}
.ms6-apercu dt{font-weight:800;color:#64748b}
.ms6-apercu dd{margin:0}
.ms6-apercu-btns{display:flex;gap:8px;flex-wrap:wrap}
.ms6-apercu-btns .pdl-cta{font-size:14px;padding:9px 14px}

/* --- le vote --- */
.ms6-vote-sieges{display:grid;grid-template-columns:repeat(9,1fr);gap:4px;margin-bottom:6px}
.ms6-vote-sieges span{aspect-ratio:1;border-radius:50%;display:grid;place-items:center;font-size:15px;transition:background .5s,transform .5s}
.ms6-vote-sieges .ms6-pour{background:#bbf7d0;transform:scale(1.08)}
.ms6-vote-sieges .ms6-contre{background:#e2e8f0}
.ms6-vote-t{font-size:12.5px;text-align:center;margin-bottom:10px;color:#334155}

/* --- les écrans calmes --- */
.ms6-pret{text-align:center;padding:30px 10px;color:#0f172a}
.ms6-pret-ico{font-size:58px;animation:ms6-pop .5s}
.ms6-pret h3{font-family:Fraunces,Georgia,serif;font-size:24px;margin:8px 0}
.ms6-pret p{font-size:14.5px;line-height:1.5}

/* --- le téléphone au repos (le hub) --- */
.ms6-repos{display:flex;flex-direction:column;align-items:center;min-height:100%;color:#fff;padding-top:14px}
.ms6-repos-h{font-size:66px;font-weight:200;letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:1}
.ms6-repos-j{font-size:14px;opacity:.85;margin-top:4px}
.ms6-repos-calme{margin-top:40px;font-size:24px;opacity:.5;animation:pdl-clig 1.4s infinite}
.ms6-notif-repos{margin-top:26px;width:100%;display:flex;gap:10px;align-items:center;text-align:left;font:inherit;background:rgba(255,255,255,.94);color:#0f172a;border:0;border-radius:18px;padding:11px 12px;cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,.3);animation:ms6-tombe .5s cubic-bezier(.2,.9,.3,1.3)}
.ms6-notif-repos span{display:flex;flex-direction:column;font-size:13.5px;line-height:1.35}
.ms6-notif-repos em{font-style:normal;font-size:11px;color:#0e7490;font-weight:700;margin-top:3px}
.ms6-notif-repos .ms6-av{width:40px;height:40px}
.ms6-notif-repos.fin{animation:ms6-tombe .5s, pdl-clig 2s 1s infinite}
.ms6-applis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;width:100%;margin-top:auto;padding:18px 4px 4px}
.ms6-appli{display:flex;flex-direction:column;align-items:center;gap:5px;background:none;border:0;cursor:pointer;font:inherit;color:#fff}
.ms6-appli span{position:relative;width:56px;height:56px;border-radius:15px;background:rgba(255,255,255,.22);backdrop-filter:blur(8px);display:grid;place-items:center;font-size:27px;box-shadow:0 4px 12px rgba(0,0,0,.2);transition:transform .15s}
.ms6-appli:hover span{transform:scale(1.08)}
.ms6-appli sup{position:absolute;top:-5px;right:-5px;background:#ef4444;color:#fff;border-radius:10px;font-size:11px;padding:1px 6px;font-weight:800}
.ms6-appli i{font-style:normal;font-size:11.5px}
.ms6-bilan-ep{position:relative;text-align:center;color:#fff;padding:22px 6px;display:flex;flex-direction:column;align-items:center;gap:6px}
.ms6-bilan-sur{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:#a7f3d0;font-weight:800}
.ms6-bilan-ep h2{font-family:Fraunces,Georgia,serif;font-size:26px;margin:0}
.ms6-bilan-ep .ms6-aide{color:#e0f2fe}
.ms6-bilan-jauges{display:flex;flex-direction:column;gap:5px;width:100%;margin-top:6px}
.ms6-bilan-jauges span{background:rgba(255,255,255,.14);border-radius:10px;padding:6px 10px;font-size:13.5px;display:flex;justify-content:space-between;gap:6px}
.ms6-bilan-jauges span.plus b{color:#86efac}
.ms6-bilan-jauges span.moins b{color:#fca5a5}

/* --- le carnet de bord --- */
.ms6-carnet{flex:0 1 300px;min-width:0;display:flex;flex-direction:column;gap:10px;background:rgba(255,255,255,.94);border-radius:18px;padding:14px;box-shadow:0 14px 34px rgba(0,0,0,.3);align-self:flex-start;animation:ms6-msg .6s;color:#0f172a}
.ms6-carnet-moi{display:flex;gap:10px;align-items:center}
.ms6-carnet-moi img{width:48px;height:48px;border-radius:50%;object-fit:cover;object-position:center 20%}
.ms6-carnet-moi span{display:flex;flex-direction:column;font-size:12px;color:#64748b}
.ms6-carnet-moi b{font-size:16px;color:#0f172a}
.ms6-carnet-moi i{font-style:normal}
.ms6-carnet-jauges{display:flex;flex-direction:column;gap:6px}
.ms6-carnet-mem{font-size:12.5px;line-height:1.4}
.ms6-carnet-mem ul{margin:5px 0 0;padding-left:16px;display:flex;flex-direction:column;gap:4px}
.ms6-carnet-mem li{animation:ms6-msg .4s}
.ms6-carnet-outils{display:flex;gap:8px}
.ms6-carnet-outils button{position:relative;flex:1;height:40px;border-radius:12px;border:0;background:#f1f5f9;font-size:18px;cursor:pointer}
.ms6-carnet-outils sup{position:absolute;top:2px;right:8px;font-size:10px;font-weight:800;color:#0e7490}

/* --- les applis du téléphone au repos --- */
.ms6-agenda{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px}
.ms6-agenda li{display:grid;grid-template-columns:110px 1fr auto;gap:2px 10px;align-items:center;background:#f8fafc;border-radius:10px;padding:8px 10px}
.ms6-agenda li span{grid-row:span 2;font-size:12px;font-weight:800;color:#0e7490}
.ms6-agenda li i{font-style:normal;font-size:12px;color:#64748b;grid-column:2}
.ms6-agenda li .pdl-cta{grid-row:1 / span 2;grid-column:3;margin:0}
.ms6-agenda li.fait{background:#f0fdf4}
.ms6-notes{display:flex;flex-direction:column;gap:6px;padding-left:18px;font-size:14.5px;line-height:1.45}

/* --- les documents --- */
.ms6-doc{font-size:14.5px;line-height:1.5;color:#0f172a}
.ms6-doc-tete{display:flex;flex-direction:column;border-bottom:3px solid #0e7490;padding-bottom:8px;margin-bottom:10px}
.ms6-doc-tete b{font-size:18px;color:#0e7490}
.ms6-doc-tete span{font-family:Fraunces,Georgia,serif;font-size:19px;font-weight:700}
.ms6-doc-tete i{font-size:12.5px;color:#64748b}
.ms6-doc-t{border-collapse:collapse;width:100%;font-size:13.5px}
.ms6-doc-t th,.ms6-doc-t td{border:1px solid #e2e8f0;padding:6px 8px;text-align:left;vertical-align:top}
.ms6-doc-t th{background:#f1f5f9;width:34%}
.ms6-doc-chiffres th{width:auto}
.ms6-doc-chiffres td:not(:first-child){text-align:right}
.ms6-doc-chiffres .total td{font-weight:800;background:#ecfeff}
.ms6-doc-photo{float:right;width:96px;height:120px;object-fit:cover;object-position:center 20%;border-radius:10px;margin:0 0 8px 10px;box-shadow:0 4px 12px rgba(0,0,0,.2)}
.ms6-doc-note{clear:both;background:#fefce8;border-left:4px solid #eab308;padding:8px 10px;border-radius:6px;font-size:13.5px}
.ms6-doc-bloc{margin-bottom:8px}
.ms6-doc-bloc ul{margin:4px 0 0;padding-left:20px}
.ms6-doc-si{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ms6-doc-si-f{background:#ecfeff;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:3px}
.ms6-doc-si-f span{font-size:24px}
.ms6-doc-si-f i{font-size:12.5px;font-style:normal;color:#334155}
.ms6-doc-tampon{display:inline-block;border:4px solid #16a34a;color:#16a34a;font-weight:900;letter-spacing:.12em;padding:4px 12px;border-radius:8px;transform:rotate(-8deg);margin:6px 0 0 auto}
.ms6-carte-sc{max-width:420px;margin:0 auto;border-radius:16px;overflow:hidden;box-shadow:0 10px 28px rgba(0,0,0,.25);background:#fff}
.ms6-carte-tete{background:linear-gradient(135deg,#0e7490,#7c3aed);color:#fff;padding:10px 14px;font-weight:900;letter-spacing:.08em;display:flex;flex-direction:column}
.ms6-carte-tete span{font-weight:500;letter-spacing:0;font-size:12px;opacity:.9}
.ms6-carte-corps{display:flex;gap:12px;padding:14px;align-items:center}
.ms6-carte-corps img{width:92px;height:112px;object-fit:cover;object-position:center 20%;border-radius:10px}
.ms6-carte-corps div{display:flex;flex-direction:column;gap:3px;font-size:13px}
.ms6-carte-corps b{font-size:22px;font-family:Fraunces,Georgia,serif}
.ms6-carte-corps em{font-style:normal;color:#0e7490;font-weight:700;font-size:12px}
.ms6-carte-pied{font-size:11px;color:#64748b;background:#f8fafc;padding:7px 14px}
.ms6-carte-pose{animation:ms6-pose .7s cubic-bezier(.2,.9,.3,1.2);width:100%;max-width:420px}
.ms6-lettre .ms6-doc-tete{border-color:#7c3aed}
.ms6-lettre .ms6-doc-tete b{color:#7c3aed}
.ms6-signe{text-align:right;font-family:"Segoe Script","Brush Script MT",cursive;font-size:18px}
.ms6-journal-titre{font-family:Fraunces,Georgia,serif;font-size:34px;font-weight:900;letter-spacing:.06em;border-bottom:4px double #0f172a;display:flex;flex-direction:column}
.ms6-journal-titre span{font-family:Outfit,system-ui,sans-serif;font-size:11px;font-weight:600;letter-spacing:.02em;color:#64748b}
.ms6-journal h3{font-family:Fraunces,Georgia,serif;font-size:23px;margin:10px 0}
.ms6-journal img{width:100%;border-radius:6px;margin-bottom:8px}

/* --- la fin --- */
.ms6-fin{width:100%;display:flex;justify-content:center}
.ms6-fin .pdl-bilan,.ms6-fin .pdl-fin-doc{max-width:760px;width:100%}
.ms6-fin-titre{font-size:13px;text-transform:uppercase;letter-spacing:.12em;color:#7c3aed;font-weight:800}
.ms6-fin-titre b{display:block;font-family:Fraunces,Georgia,serif;font-size:22px;letter-spacing:0;text-transform:none;color:#0f172a}
.ms6-fin-jauges{max-width:420px;margin:0 auto 12px}

/* --- sur téléphone : le jeu devient le téléphone --- */
@media (max-width:760px){
  .ms6-scene{flex-direction:column;align-items:center;gap:10px}
  .ms6-carnet{order:-1;width:100%;flex:none;padding:8px 10px;gap:6px;border-radius:14px}
  .ms6-carnet-moi,.ms6-carnet-mem{display:none}
  .ms6-carnet-jauges{flex-direction:row;gap:6px}
  .ms6-carnet-jauges .pdl-jauge{flex:1;min-width:0}
  .ms6-carnet-jauges .pdl-jauge-t{font-size:11px}
  .ms6-carnet-outils button{height:32px;font-size:15px}
  .ms6-carnet{flex-direction:row;flex-wrap:wrap;align-items:center}
  .ms6-carnet-jauges{flex:1 1 200px}
  .ms6-carnet-outils{flex:0 0 auto}
}
@media (max-width:520px){
  .ms6 .ms6-decor .pdl-decor-contenu{padding:8px 4px}
  .ms6-tel{width:100%;height:calc(100vh - 110px);min-height:540px;border-radius:30px;padding:6px}
  .ms6-tel-ecran{border-radius:25px}
  .ms6-tel::before,.ms6-tel::after{display:none}
  .ms6-agenda li{grid-template-columns:1fr auto}
  .ms6-agenda li span{grid-row:auto}
  .ms6-agenda li i{grid-column:1}
  .ms6-aig-dest .ms6-av{width:34px;height:34px}
}
/* ==== ms6 : fin des styles ==== */
/* ==== mc8 : debut des styles ====
   « Gran Limyè » — préfixe mc8-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.mc8). Un jeu de cartes : tapis
   de feutre vert, cartes crème qui se retournent en 3D, or du soleil des
   Hauts et bleu des panneaux. */
.mc8 .pdl-cta{background:linear-gradient(135deg,#f59e0b,#ea580c);box-shadow:0 6px 18px rgba(234,88,12,.32)}
.mc8 .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(234,88,12,.42)}
.mc8 .pdl-cta.alt{background:#fff;color:#1a1430}
.mc8-clair{color:#64748b;text-align:center;font-size:14px}
.mc8-decor-table .pdl-decor-contenu,.mc8 .pdl-decor-contenu:has(> .mc8-tapis-jeu){max-width:1060px}
.pdl-doc-bandeau.mc8-bandeau{background:linear-gradient(90deg,#166534,#f59e0b)}
.pdl-doc-bandeau.mc8-bandeau-rouge{background:linear-gradient(90deg,#b91c1c,#f59e0b)}
.mc8-visite .pdl-badge-logo{color:#166534}
.mc8-tampon{position:relative;right:auto;bottom:auto;display:inline-block;margin:6px 0 0 auto}
.mc8-pl-prog{font-size:13px;font-weight:700;color:#64748b;margin-bottom:6px;display:block}
.mc8-alerte{background:#fef2f2;border-left:4px solid #dc2626;color:#7f1d1d;padding:10px 12px;border-radius:8px;margin:0;font-size:14.5px;animation:mc8-secoue .45s}
@keyframes mc8-secoue{20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}
.mc8-table{width:100%;border-collapse:collapse;font-size:14px;margin:8px 0}
.mc8-table th,.mc8-table td{border:1px solid #e2e8f0;padding:6px 8px;text-align:left;vertical-align:top}
.mc8-table th{background:#f0fdf4;color:#14532d}
.mc8-doc-2col{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mc8-doc-2col>div{background:#f8fafc;border-radius:10px;padding:10px 12px;min-width:0}
.mc8-doc-2col ul{margin:6px 0 0;padding-left:18px;font-size:14px}
@media (max-width:560px){.mc8-doc-2col{grid-template-columns:1fr}}

/* --- la carte retournable (3D) --- */
.mc8-carte{position:relative;font:inherit;border:0;padding:0;background:none;cursor:pointer;perspective:900px;
  width:150px;height:210px;display:inline-block;color:#1a1430;flex-shrink:0}
.mc8-carte:disabled{cursor:default}
.mc8-carte-in{position:absolute;inset:0;display:block;transform-style:preserve-3d;transition:transform .7s cubic-bezier(.2,.8,.2,1)}
.mc8-carte.retournee .mc8-carte-in{transform:rotateY(180deg)}
.mc8-face{position:absolute;inset:0;border-radius:14px;backface-visibility:hidden;-webkit-backface-visibility:hidden;display:flex;flex-direction:column;
  align-items:center;justify-content:center;text-align:center;padding:12px;overflow:hidden}
.mc8-recto{background:linear-gradient(160deg,#fffdf5,#fef3c7);border:2px solid #fde68a;box-shadow:0 8px 22px rgba(0,0,0,.28),inset 0 0 0 5px #fff}
.mc8-verso{transform:rotateY(180deg);background:#14532d;border:2px solid #fde68a;box-shadow:0 8px 22px rgba(0,0,0,.35);
  background-image:repeating-linear-gradient(45deg,rgba(253,230,138,.16) 0 6px,transparent 6px 14px),repeating-linear-gradient(-45deg,rgba(253,230,138,.16) 0 6px,transparent 6px 14px)}
.mc8-dos-motif{display:flex;flex-direction:column;align-items:center;gap:6px;color:#fde68a}
.mc8-dos-motif b{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;font-size:30px;background:radial-gradient(circle,#f59e0b,#b45309);
  color:#fff;box-shadow:0 0 0 4px rgba(253,230,138,.5),0 0 22px rgba(245,158,11,.6)}
.mc8-dos-motif i{font-style:normal;font-weight:700;font-size:13px;letter-spacing:.04em}
.mc8-carte:hover:not(:disabled) .mc8-carte-in{box-shadow:none}
.mc8-carte:not(:disabled):hover{transform:translateY(-4px);transition:transform .2s}

/* --- le livret des règles --- */
.mc8-livret-ferme{display:flex;justify-content:center;perspective:900px}
.mc8-livret-carte{font:inherit;border:2px solid #fde68a;border-radius:18px;cursor:pointer;width:min(320px,86vw);min-height:220px;padding:22px 18px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;color:#fde68a;background:#14532d;
  background-image:repeating-linear-gradient(45deg,rgba(253,230,138,.14) 0 6px,transparent 6px 14px);box-shadow:0 18px 40px rgba(0,0,0,.45);
  animation:mc8-tombe .8s cubic-bezier(.2,.8,.2,1) both}
.mc8-livret-carte:hover{transform:translateY(-4px) rotate(-1deg)}
.mc8-livret-ico{font-size:40px}
.mc8-livret-carte b{font-family:Fraunces,Georgia,serif;font-size:22px;color:#fff}
.mc8-livret-carte span{font-weight:600}
.mc8-livret-carte i{font-size:13px;opacity:.8}
.mc8-livret{width:100%;max-width:820px;animation:mc8-retourne .7s cubic-bezier(.2,.8,.2,1) both;transform-origin:center}
.mc8-livret .pdl-lecon{border-top:6px solid #166534}
@keyframes mc8-tombe{from{opacity:0;transform:translateY(-80px) rotateX(60deg) rotateZ(-6deg)}to{opacity:1;transform:none}}
@keyframes mc8-retourne{from{opacity:0;transform:perspective(900px) rotateY(-90deg)}to{opacity:1;transform:none}}

/* --- donne 1 : empiler --- */
.mc8-piles{display:flex;flex-direction:column;gap:12px}
.mc8-main{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.mc8-act{font:inherit;text-align:left;cursor:pointer;width:178px;border:2px solid #fde68a;border-radius:12px;padding:9px 10px;background:linear-gradient(160deg,#fffdf5,#fef3c7);
  box-shadow:0 4px 12px rgba(0,0,0,.14);display:flex;flex-direction:column;gap:6px;transform:rotate(var(--r,0deg));animation:mc8-donne .45s ease both;transition:transform .15s,box-shadow .15s}
.mc8-act b{font-size:14px;line-height:1.25}
.mc8-act.sel{transform:translateY(-8px) rotate(0);box-shadow:0 0 0 3px #f59e0b,0 12px 24px rgba(0,0,0,.2)}
.mc8-act.mini{width:100%;transform:none;animation:none;padding:6px 8px;margin-top:calc(var(--j,0) * -2px)}
.mc8-act.mini b{font-size:12.5px}
.mc8-act.faux{border-color:#dc2626;background:#fee2e2;animation:mc8-secoue .45s}
@keyframes mc8-donne{from{opacity:0;transform:translateY(-30px) rotate(-12deg)}to{opacity:1}}
.mc8-trio{display:flex;flex-direction:column;gap:2px;border-top:1px dashed #e7d7a1;padding-top:5px}
.mc8-trio i{font-style:normal;font-size:12px;color:#57534e;line-height:1.25}
.mc8-tas-zone{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px;padding:12px;border-radius:14px;
  background:radial-gradient(ellipse at center,#15803d,#14532d);box-shadow:inset 0 2px 14px rgba(0,0,0,.45)}
.mc8-tas{font:inherit;border:2px dashed rgba(253,230,138,.55);border-radius:12px;padding:8px;min-height:90px;display:flex;flex-direction:column;gap:5px;
  background:rgba(0,0,0,.14);color:#fef3c7;cursor:pointer;min-width:0}
.mc8-tas.cible{border-color:#fde68a;background:rgba(253,230,138,.12);animation:mc8-pulse 1.4s infinite}
.mc8-tas.ok{border-style:solid;border-color:#86efac;background:rgba(134,239,172,.14)}
.mc8-tas.neuve{align-items:center;justify-content:center;font-weight:700;font-size:15px}
.mc8-tas.neuve:disabled{opacity:.45;cursor:default;animation:none}
.mc8-tas-t{font-size:12.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:#fde68a}
@keyframes mc8-pulse{50%{box-shadow:0 0 0 4px rgba(253,230,138,.25)}}

/* --- donne 1 : les deux étages --- */
.mc8-etages{display:flex;flex-direction:column;gap:12px}
.mc8-etages-jeu{display:grid;grid-template-columns:190px 1fr;gap:16px;align-items:center}
.mc8-pioche-d{display:flex;flex-direction:column;align-items:center;gap:6px}
.mc8-carte-decision{width:180px;height:230px;animation:mc8-tombe .6s cubic-bezier(.2,.8,.2,1) both}
.mc8-dec-txt{font-size:15px;font-weight:600;line-height:1.35}
.mc8-immeuble{display:flex;flex-direction:column;gap:8px;min-width:0}
.mc8-etage{font:inherit;text-align:left;cursor:pointer;border:0;border-radius:12px;padding:12px 14px;color:#fff;display:flex;flex-direction:column;gap:3px;
  box-shadow:0 6px 16px rgba(0,0,0,.18);transition:transform .15s}
.mc8-etage.e0{background:linear-gradient(135deg,#1e3a8a,#2563eb)}
.mc8-etage.e1{background:linear-gradient(135deg,#166534,#16a34a)}
.mc8-etage:hover:not(:disabled){transform:translateX(4px)}
.mc8-etage span{font-size:14px;opacity:.95}
.mc8-etage i{font-size:12.5px;opacity:.8}
.mc8-etage.ok{box-shadow:0 0 0 4px #86efac}
.mc8-etage.ko{box-shadow:0 0 0 4px #fca5a5;animation:mc8-secoue .45s}
.mc8-etage-tas{display:flex;gap:2px;min-height:18px}
.mc8-etage-tas em{font-style:normal;font-size:18px;line-height:1}
@media (max-width:640px){.mc8-etages-jeu{grid-template-columns:1fr}.mc8-carte-decision{height:170px;width:220px}}

/* --- donne 2 : les jetons --- */
.mc8-jetons{display:flex;flex-direction:column;gap:12px}
.mc8-jetons-reserve{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;min-height:56px}
.mc8-jeton{font:inherit;cursor:pointer;border:3px solid #fde68a;border-radius:999px;padding:6px 14px 6px 8px;background:radial-gradient(circle at 30% 30%,#fff,#fde68a);
  display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:13.5px;box-shadow:0 4px 0 #b45309,0 6px 14px rgba(0,0,0,.2);transition:transform .15s}
.mc8-jeton span{font-size:20px}
.mc8-jeton.sel{transform:translateY(-6px) scale(1.06);border-color:#ea580c}
.mc8-jeton.mini{padding:2px 6px;font-size:16px;box-shadow:0 2px 0 #b45309}
.mc8-projets{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.mc8-projet{border:2px solid #e2e8f0;border-radius:14px;padding:10px;background:#fff;display:flex;flex-direction:column;gap:6px;cursor:pointer;min-height:118px;transition:border-color .15s,transform .15s}
.mc8-projet.cible:hover{border-color:#f59e0b;transform:translateY(-2px)}
.mc8-projet.brille{border-color:#16a34a;background:#f0fdf4;box-shadow:0 0 0 3px rgba(22,163,74,.25),0 0 26px rgba(245,158,11,.35)}
.mc8-projet-ico{font-size:24px}
.mc8-projet b{font-size:14px;line-height:1.3}
.mc8-projet-jetons{display:flex;flex-wrap:wrap;gap:4px;margin-top:auto}
.mc8-gains{display:flex;flex-direction:column;gap:6px}
.mc8-gain{background:linear-gradient(90deg,#fef3c7,#fff);border-left:4px solid #f59e0b;border-radius:8px;padding:8px 12px;font-size:14.5px;animation:mc8-gain .6s ease both}
@keyframes mc8-gain{from{opacity:0;transform:scale(.9)}to{opacity:1;transform:none}}

/* --- donne 2 : le mémo --- */
.mc8-memo{display:flex;flex-direction:column;gap:12px}
.mc8-memo-grille{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;justify-items:center;padding:14px;border-radius:14px;
  background:radial-gradient(ellipse at center,#15803d,#14532d);box-shadow:inset 0 2px 14px rgba(0,0,0,.45)}
.mc8-carte-memo{width:100%;max-width:180px;height:200px}
.mc8-carte-memo.risque .mc8-recto{background:linear-gradient(160deg,#fff,#fee2e2);border-color:#fca5a5}
.mc8-carte-memo.trouvee .mc8-recto{box-shadow:0 0 0 3px #86efac,0 8px 22px rgba(0,0,0,.28)}
.mc8-memo-face{display:flex;flex-direction:column;gap:8px}
.mc8-memo-face small{font-size:11px;font-weight:800;letter-spacing:.06em;color:#9a3412}
.mc8-memo-face b{font-size:13.5px;line-height:1.3;font-weight:600}
@media (max-width:560px){.mc8-memo-grille{grid-template-columns:repeat(2,minmax(0,1fr));padding:8px;gap:8px}.mc8-carte-memo{height:190px}.mc8-memo-face b{font-size:12.5px}}

/* --- donne 3 : le duel --- */
.mc8-duel{display:flex;flex-direction:column;gap:12px}
.mc8-duel-pdm{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;font-weight:700;font-size:14px}
.mc8-duel-pdm small{grid-column:1/-1;text-align:center;color:#64748b;font-weight:600}
.mc8-barre{height:16px;border-radius:99px;background:linear-gradient(90deg,#2563eb,#1d4ed8);overflow:hidden;box-shadow:inset 0 1px 4px rgba(0,0,0,.3)}
.mc8-barre i{display:block;height:100%;background:linear-gradient(90deg,#f59e0b,#ea580c);transition:width 1s cubic-bezier(.2,.8,.2,1)}
.mc8-duel-attaque{display:flex;align-items:center;justify-content:center;gap:14px}
.mc8-duel-attaque img{width:74px;height:74px;border-radius:50%;object-fit:cover;border:3px solid #2563eb}
.mc8-carte-attaque{width:min(300px,70vw);height:120px;animation:mc8-tombe .6s cubic-bezier(.2,.8,.2,1) both}
.mc8-carte-attaque .mc8-recto{background:linear-gradient(160deg,#eff6ff,#dbeafe);border-color:#93c5fd}
.mc8-carte-attaque .mc8-recto>span{display:flex;flex-direction:column;gap:6px}
.mc8-carte-attaque small{font-size:11.5px;font-weight:800;color:#1d4ed8;text-transform:uppercase;letter-spacing:.05em}
.mc8-carte-attaque b{font-size:15px}
.mc8-duel-table{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:10px;border-radius:12px;background:radial-gradient(ellipse at center,#15803d,#14532d);color:#fff;min-height:54px}
.mc8-duel-table .mc8-clair{color:#bbf7d0}
.mc8-posee{background:#fffdf5;color:#1a1430;border-radius:10px;padding:6px 10px;font-size:13px;max-width:260px;box-shadow:0 4px 10px rgba(0,0,0,.3);animation:mc8-gain .5s ease both}
.mc8-posee.dure{border:2px solid #86efac}
.mc8-posee em{display:block;font-style:normal;font-weight:800;color:#166534;font-size:12px}
.mc8-posee.brule{animation:mc8-brule 1.2s ease forwards}
@keyframes mc8-brule{40%{filter:sepia(1) saturate(4) hue-rotate(-20deg);transform:scale(1.04)}100%{opacity:0;transform:scale(.6) rotate(8deg);filter:grayscale(1) blur(3px)}}
.mc8-eventail{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;padding:10px 0}
.mc8-atout{font:inherit;cursor:pointer;width:150px;min-height:150px;border:2px solid #fde68a;border-radius:14px;padding:10px;text-align:left;
  background:linear-gradient(160deg,#fffdf5,#fef3c7);box-shadow:0 6px 16px rgba(0,0,0,.18);transform:rotate(calc(var(--k,0) * 2.5deg)) translateY(calc(var(--k,0) * var(--k,0) * 2px));
  transition:transform .18s;animation:mc8-donne .45s ease both}
.mc8-atout:hover{transform:translateY(-14px) rotate(0);z-index:2;box-shadow:0 0 0 3px #f59e0b,0 14px 26px rgba(0,0,0,.25)}
.mc8-atout b{font-size:13.5px;font-weight:600;line-height:1.3}
.mc8-chips{display:flex;flex-wrap:wrap;gap:8px}
.mc8-chip{font:inherit;cursor:pointer;border:2px solid #cbd5e1;background:#fff;border-radius:999px;padding:8px 14px;font-weight:600;font-size:14px}
.mc8-chip:hover:not(:disabled){border-color:#f59e0b}
.mc8-chip.ko{border-color:#dc2626;background:#fee2e2;animation:mc8-secoue .45s}
.mc8-chip.ok{border-color:#16a34a;background:#dcfce7}
.mc8-copie{display:flex;flex-direction:column;gap:10px}
.mc8-copie-grille{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}
.mc8-copie-c{border-radius:10px;padding:8px 10px;font-size:13.5px;display:flex;flex-direction:column;gap:4px;animation:mc8-gain .5s ease both}
.mc8-copie-c.resiste{background:#f0fdf4;border:2px solid #86efac}
.mc8-copie-c.copiee{background:#f1f5f9;border:2px dashed #94a3b8;color:#64748b}
.mc8-copie-c span{font-weight:700;font-size:12.5px}
@media (max-width:560px){.mc8-atout{width:46%;min-height:120px;transform:none}.mc8-duel-attaque img{width:52px;height:52px}}

/* --- donne 4 : la filière --- */
.mc8-filiere{display:flex;flex-direction:column;gap:12px}
.mc8-carte-filiere{display:flex;flex-direction:column;gap:10px;padding:12px;border-radius:14px;background:radial-gradient(ellipse at center,#15803d,#14532d);box-shadow:inset 0 2px 14px rgba(0,0,0,.45)}
.mc8-chaine{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:stretch}
.mc8-maillon{background:#fffdf5;border-radius:12px;padding:10px;display:flex;flex-direction:column;justify-content:center;text-align:center;font-size:13.5px;min-width:0}
.mc8-maillon.moi{background:linear-gradient(160deg,#fef3c7,#fde68a);box-shadow:0 0 0 3px #f59e0b}
.mc8-fleche{color:#fde68a;font-size:22px;align-self:center}
.mc8-sous-chaine{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mc8-zone{font:inherit;cursor:pointer;border:2px dashed var(--c);border-radius:12px;padding:10px;text-align:left;background:rgba(255,255,255,.92);
  display:flex;flex-direction:column;gap:3px;min-width:0;transition:transform .15s}
.mc8-zone b{color:var(--c);font-size:15px}
.mc8-zone span{font-size:12.5px;color:#475569}
.mc8-zone:hover:not(:disabled){transform:translateY(-3px);border-style:solid}
.mc8-zone.ok{border-style:solid;box-shadow:0 0 0 4px #86efac}
.mc8-zone.ko{box-shadow:0 0 0 4px #fca5a5;animation:mc8-secoue .45s}
.mc8-zone.juste{box-shadow:0 0 0 4px #86efac}
.mc8-zone-tas{display:flex;gap:2px;min-height:18px}
.mc8-zone-tas em{font-style:normal;font-size:16px}
@media (max-width:640px){.mc8-chaine{grid-template-columns:1fr 1fr}.mc8-chaine .mc8-zone{grid-column:1/-1}.mc8-fleche{display:none}.mc8-sous-chaine{grid-template-columns:1fr}}

/* --- donne 4 : le vrai choix --- */
.mc8-choix{display:flex;flex-direction:column;gap:12px;align-items:center}
.mc8-choix-main{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;padding:8px 0}
.mc8-carte-choix{width:200px;height:290px;transform:rotate(calc(var(--k,0) * 3deg));transition:transform .4s,opacity .4s}
.mc8-carte-choix.jouee{transform:translateY(-14px) scale(1.06);z-index:2}
.mc8-carte-choix.rangee{opacity:.35;transform:scale(.92)}
.mc8-choix-face{display:flex;flex-direction:column;gap:6px;height:100%}
.mc8-choix-face img{width:100%;height:110px;object-fit:cover;border-radius:10px}
.mc8-choix-face b{font-size:15px}
.mc8-choix-face span{font-size:12.5px;line-height:1.3}
.mc8-choix-face small{margin-top:auto;font-weight:700;color:#9a3412;font-size:12px}
@media (max-width:560px){.mc8-carte-choix{width:46%;height:270px;transform:none}}

/* --- les cartes métier (sur la table, et à payer) --- */
.mc8-das-carte{font:inherit;color:#1a1430;position:relative;width:150px;border:2px solid #fde68a;border-radius:14px;padding:8px;background:linear-gradient(160deg,#fffdf5,#fef3c7);
  display:flex;flex-direction:column;gap:4px;text-align:center;box-shadow:0 6px 16px rgba(0,0,0,.3);animation:mc8-tombe .6s cubic-bezier(.2,.8,.2,1) both;min-width:0}
.mc8-das-carte img{width:100%;height:84px;object-fit:cover;border-radius:9px}
.mc8-das-carte b{font-size:13.5px;line-height:1.25}
.mc8-das-carte em{font-style:normal;font-weight:800;color:#166534;font-size:13px}
.mc8-das-carte span{font-size:12px;color:#57534e}
.mc8-das-ico{font-size:30px;display:block;padding:6px 0;color:inherit !important}
.mc8-das-carte.petit{width:118px;padding:6px}
.mc8-das-carte.petit img{height:60px}
.mc8-das-carte.petit b{font-size:12px}
.mc8-das-carte.adv{background:linear-gradient(160deg,#eff6ff,#dbeafe);border-color:#93c5fd}
.mc8-das-carte.forte{box-shadow:0 0 0 3px #86efac,0 0 22px rgba(245,158,11,.4)}
.mc8-das-carte.fragile{filter:saturate(.6);box-shadow:0 0 0 3px #fca5a5,0 6px 16px rgba(0,0,0,.3)}
.mc8-das-carte.grande{width:220px}
.mc8-das-carte.grande img{height:120px}
.mc8-sol{display:flex;justify-content:center;gap:3px}
.mc8-sol i{width:10px;height:10px;border-radius:50%;background:#e7e5e4;box-shadow:inset 0 1px 2px rgba(0,0,0,.2)}
.mc8-sol i.on{background:radial-gradient(circle at 35% 35%,#fde68a,#f59e0b)}
.mc8-prix{font-style:normal;background:#fff7ed;border-radius:8px;padding:4px;color:#9a3412 !important}
.mc8-paye{position:absolute;top:40%;left:50%;transform:translate(-50%,-50%) rotate(-14deg);border:4px solid #16a34a;color:#16a34a !important;font-weight:900;font-size:28px !important;
  padding:2px 12px;border-radius:8px;background:rgba(255,255,255,.85);animation:mc8-tampon .4s cubic-bezier(.2,1.6,.4,1) both}
@keyframes mc8-tampon{from{transform:translate(-50%,-50%) rotate(-14deg) scale(2.4);opacity:0}to{opacity:1}}

/* --- donne 5 : payer --- */
.mc8-payer{display:flex;flex-direction:column;gap:12px}
.mc8-payer-cible{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:center}
.mc8-eventail.plat{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.mc8-ressource{font:inherit;cursor:pointer;border:2px solid #e2e8f0;border-radius:12px;padding:8px;background:#fff;display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;
  transition:transform .15s;animation:mc8-donne .45s ease both;min-height:104px}
.mc8-ressource span{font-size:24px}
.mc8-ressource b{font-size:13px;line-height:1.25}
.mc8-ressource i{font-style:normal;font-size:12px;color:#64748b}
.mc8-ressource.argent{border-color:#fde68a;background:#fffbeb}
.mc8-ressource.comp{border-color:#bfdbfe;background:#eff6ff}
.mc8-ressource.sel{transform:translateY(-8px);box-shadow:0 0 0 3px #f59e0b,0 10px 20px rgba(0,0,0,.15)}
@media (max-width:560px){.mc8-payer-cible{grid-template-columns:1fr;justify-items:center}}

/* --- donne 5 : le pari --- */
.mc8-pari{display:flex;flex-direction:column;gap:12px}
.mc8-pari-table{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;align-items:center;padding:14px;border-radius:14px;background:radial-gradient(ellipse at center,#15803d,#14532d);box-shadow:inset 0 2px 14px rgba(0,0,0,.45)}
.mc8-pari-table .mc8-das-carte{cursor:pointer;animation:none}
.mc8-das-carte.parie{box-shadow:0 0 0 4px #f59e0b,0 6px 16px rgba(0,0,0,.3);transform:translateY(-6px)}
.mc8-das-carte.touchee{animation:mc8-touche .7s ease both;filter:saturate(.5) brightness(.92);box-shadow:0 0 0 4px #dc2626}
.mc8-das-carte.touchee em{color:#b91c1c}
.mc8-das-carte.tient{box-shadow:0 0 0 4px #86efac,0 0 24px rgba(134,239,172,.5)}
@keyframes mc8-touche{15%{transform:translateX(-8px) rotate(-3deg)}30%{transform:translateX(8px) rotate(3deg)}45%{transform:translateX(-5px)}60%{transform:translateX(4px)}100%{transform:none}}
.mc8-carte-evenement{width:220px;height:200px}
.mc8-carte-evenement .mc8-recto{background:linear-gradient(160deg,#fff,#fef9c3)}
.mc8-pari-res{font-weight:800;margin:0}
.mc8-pari-res.ok{color:#166534}.mc8-pari-res.ko{color:#b91c1c}

/* --- le calcul --- */
.mc8-calcul{display:flex;flex-direction:column;gap:10px}
.mc8-calcul-saisie{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.mc8-calcul-saisie input{font:inherit;font-size:20px;font-weight:700;width:180px;max-width:100%;padding:8px 12px;border-radius:10px;border:2px solid #cbd5e1}

/* --- donne 6 : le conseil --- */
.mc8-conseil{display:flex;flex-direction:column;gap:12px}
.mc8-grande-carte{font:inherit;cursor:pointer;width:200px;min-height:220px;border:2px solid #fde68a;border-radius:16px;padding:14px;background:linear-gradient(160deg,#fffdf5,#fef3c7);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;box-shadow:0 8px 22px rgba(0,0,0,.25);
  transform:rotate(calc(var(--k,0) * 4deg));transition:transform .2s;animation:mc8-donne .5s ease both}
.mc8-grande-carte:hover{transform:translateY(-12px) rotate(0);box-shadow:0 0 0 3px #f59e0b,0 16px 30px rgba(0,0,0,.3)}
.mc8-grande-ico{font-size:44px}
.mc8-grande-carte b{font-size:16px;line-height:1.3}
.mc8-tapis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px;border-radius:14px;background:radial-gradient(ellipse at center,#15803d,#14532d);box-shadow:inset 0 2px 14px rgba(0,0,0,.45)}
.mc8-slot{font:inherit;text-align:left;cursor:pointer;border:2px dashed rgba(253,230,138,.6);border-radius:12px;padding:8px;min-height:120px;background:rgba(0,0,0,.15);color:#fef3c7;
  display:flex;flex-direction:column;gap:4px;min-width:0}
.mc8-slot small{font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#fde68a}
.mc8-slot b{font-size:13px;font-weight:600;line-height:1.3}
.mc8-slot.plein{background:#fffdf5;color:#1a1430;border-style:solid;border-color:#fde68a;animation:mc8-gain .4s ease both}
.mc8-slot.plein small{color:#9a3412}
.mc8-slot.ok{box-shadow:0 0 0 3px #86efac}
.mc8-slot.ko{box-shadow:0 0 0 3px #fca5a5}
.mc8-slot em{font-style:normal;font-size:12px;color:#b91c1c;font-weight:700}
.mc8-paquets{display:grid;grid-template-columns:2fr 1fr;gap:12px}
.mc8-paquets>div{min-width:0}
.mc8-paquet-t{display:block;font-size:13px;margin-bottom:6px;color:#334155}
.mc8-paquet{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px}
.mc8-argcarte{font:inherit;cursor:pointer;text-align:left;font-size:12.5px;line-height:1.3;border:2px solid #fde68a;border-radius:10px;padding:7px 8px;background:#fffdf5;transition:transform .15s}
.mc8-argcarte:hover{transform:translateY(-3px);border-color:#f59e0b}
.mc8-argcarte.reserve{border-color:#fecaca;background:#fff5f5}
.mc8-argcarte.prise{opacity:.4}
@media (max-width:640px){.mc8-tapis{grid-template-columns:1fr 1fr}.mc8-paquets{grid-template-columns:1fr}.mc8-grande-carte{width:100%;min-height:120px;transform:none}}

/* --- la table (le hub) --- */
.mc8-tapis-jeu{width:100%;display:grid;grid-template-columns:1fr;gap:12px;padding:14px;border-radius:22px;color:#fff;
  background:radial-gradient(ellipse at 50% 40%,#16a34a 0%,#15803d 35%,#14532d 100%);box-shadow:inset 0 0 0 10px #78350f,inset 0 0 0 13px #a16207,inset 0 4px 40px rgba(0,0,0,.5),0 20px 50px rgba(0,0,0,.45)}
.mc8-camp{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:10px 14px;border-radius:14px;background:rgba(0,0,0,.18);min-width:0}
.mc8-camp.adverse{border:1px solid rgba(147,197,253,.4)}
.mc8-camp.moi{border:1px solid rgba(253,230,138,.5)}
.mc8-joueur{display:flex;align-items:center;gap:8px}
.mc8-joueur img{width:54px;height:54px;border-radius:50%;object-fit:cover;border:3px solid #fde68a}
.mc8-camp.adverse .mc8-joueur img{border-color:#93c5fd}
.mc8-joueur span{display:flex;flex-direction:column}
.mc8-joueur b{font-size:15px}.mc8-joueur i{font-size:12px;opacity:.8}
.mc8-camp-cartes{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;min-width:0}
.mc8-camp-stat{display:flex;flex-direction:column;align-items:center}
.mc8-camp-stat span{font-size:11.5px;opacity:.8}.mc8-camp-stat b{font-size:24px}
.mc8-indic{display:grid;grid-template-columns:1fr 1fr;gap:6px;min-width:150px}
.mc8-indic span{display:flex;flex-direction:column;background:rgba(0,0,0,.25);border-radius:8px;padding:4px 8px;font-size:11.5px}
.mc8-indic b{font-size:14px;color:#fde68a}
.mc8-indic span.alerte b{color:#fca5a5}
.mc8-centre{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:center}
.mc8-pioche{position:relative;width:90px;height:120px;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:0}
.mc8-pioche-c{position:absolute;inset:0;border-radius:10px;background:#14532d;border:2px solid #fde68a;transform:translate(calc(var(--i) * 2px),calc(var(--i) * -2px));z-index:-1;
  background-image:repeating-linear-gradient(45deg,rgba(253,230,138,.16) 0 5px,transparent 5px 11px);box-shadow:0 2px 6px rgba(0,0,0,.4)}
.mc8-pioche b{font-size:28px;color:#fde68a}.mc8-pioche i{font-size:12px;font-style:normal}
.mc8-journal{background:rgba(255,253,245,.94);color:#1a1430;border-radius:12px;padding:8px 12px;font-size:13.5px;min-width:0}
.mc8-journal ul{margin:4px 0 0;padding-left:18px}
.mc8-journal p{margin:4px 0 0}
.mc8-donnes{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;justify-items:center}
.mc8-carte-donne{width:100%;max-width:150px;height:170px}
.mc8-carte-donne.prochaine .mc8-verso{box-shadow:0 0 0 3px #f59e0b,0 0 26px rgba(245,158,11,.7);animation:mc8-pulse 1.4s infinite}
.mc8-carte-donne.faite .mc8-recto{background:linear-gradient(160deg,#f0fdf4,#dcfce7);border-color:#86efac}
.mc8-carte-donne:disabled .mc8-verso{filter:grayscale(.6) brightness(.8)}
.mc8-donne-face{display:flex;flex-direction:column;gap:6px}
.mc8-donne-face small{font-size:11px;font-weight:800;color:#9a3412;text-transform:uppercase;letter-spacing:.04em}
.mc8-donne-face b{font-size:14px;line-height:1.25}
.mc8-donne-face i{font-size:11.5px;color:#57534e}
.mc8-donne-face em{font-style:normal;font-weight:800;color:#166534;font-size:12.5px}
.mc8-tapis-jeu .mc8-clair{color:#fef3c7}
@media (max-width:760px){
  .mc8-donnes{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mc8-camp{grid-template-columns:1fr;justify-items:center;text-align:center}
  .mc8-indic{width:100%;grid-template-columns:1fr 1fr}
  .mc8-centre{grid-template-columns:1fr;justify-items:center}
  .mc8-tapis-jeu{padding:10px;box-shadow:inset 0 0 0 6px #78350f,inset 0 4px 30px rgba(0,0,0,.5)}
  .mc8-das-carte{width:132px}
  .mc8-das-carte.petit{width:104px}
}

/* --- entrées, bravo, accueil, fin --- */
.mc8-entree{display:flex;flex-direction:column;align-items:center;gap:16px}
.mc8-carte-titre{width:min(300px,80vw);height:340px}
.mc8-carte-titre .mc8-donne-face b{font-family:Fraunces,Georgia,serif;font-size:24px}
.mc8-carte-titre .mc8-donne-face i{font-size:14px}
.mc8-carte-fin{height:400px}
.mc8-carte-fin .mc8-donne-face i{font-size:13.5px;line-height:1.4;color:#334155}
.mc8-bravo{text-align:center}
.mc8-bravo-pct{display:block;font-size:30px;color:#fde68a}
.mc8-change{display:flex;flex-direction:column;gap:4px;background:rgba(255,253,245,.95);color:#1a1430;border-radius:14px;padding:12px 16px;margin:10px auto;max-width:520px;text-align:left;font-size:14px}
.mc8-change i{font-size:13px;color:#166534}
.mc8-accueil-cartes{display:flex;justify-content:center;height:84px;margin-bottom:6px}
.mc8-accueil-cartes span{width:58px;height:80px;margin:0 -6px;border-radius:9px;background:linear-gradient(160deg,#fffdf5,#fef3c7);border:2px solid #fde68a;display:grid;place-items:center;
  font-size:28px;box-shadow:0 6px 14px rgba(0,0,0,.35);transform:rotate(calc(var(--i) * 12deg)) translateY(calc(var(--i) * var(--i) * 4px));animation:mc8-donne .6s ease both}
.mc8-autres-fins p{font-size:13.5px;margin:6px 0 0}
/* ==== mc8 : fin des styles ==== */
/* ==== mc7 : debut des styles ====
   « Gran Rempar » — préfixe mc7-. Un tableau de bord de salle de contrôle :
   tuiles sombres qui s'allument, voyants qui pulsent, calendrier dont la
   page tombe, courbes SVG. Les briques pdl- de Péi Délices restent telles
   quelles ; tous les états propres au jeu portent le préfixe (piège N). */
.mc7{--mc7-fond:#0b1220;--mc7-tuile:#111c30;--mc7-bord:#22314d;--mc7-vert:#22c55e;--mc7-orange:#f59e0b;--mc7-rouge:#ef4444;--mc7-acc:#14b8a6}

/* --- la saison : l'écran principal --- */
.mc7-saison{position:relative;min-height:min(84vh,820px);padding:16px 14px 22px;display:flex;flex-direction:column;gap:14px;overflow:hidden;color:#e2e8f0}
.mc7-saison-fond{position:absolute;inset:-4%;background-size:cover;background-position:center;filter:blur(3px) brightness(.32) saturate(1.1);animation:pdl-kb 40s ease-in-out infinite alternate;z-index:0}
.mc7-saison>*:not(.mc7-saison-fond){position:relative;z-index:1}
.mc7-saison-haut{display:flex;gap:14px;align-items:stretch;flex-wrap:wrap}
.mc7-releve{flex:1;min-width:200px;display:flex;flex-direction:column;justify-content:center;background:rgba(15,23,42,.55);border:1px solid var(--mc7-bord);border-radius:14px;padding:10px 14px}
.mc7-releve small{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#5eead4;font-weight:800}
.mc7-releve b{font-family:Fraunces,Georgia,serif;font-size:22px;color:#fff}

/* --- le calendrier : la page tombe --- */
.mc7-cal{flex:1;min-width:250px;perspective:900px;display:flex;flex-direction:column;gap:8px}
.mc7-cal-page{background:linear-gradient(180deg,#fff 0%,#f1f5f9 100%);color:#0f172a;border-radius:12px;padding:10px 16px 12px;position:relative;
  box-shadow:0 10px 26px rgba(0,0,0,.4);transform-origin:top center;animation:mc7-page .8s cubic-bezier(.2,.8,.2,1)}
.mc7-cal-page::before{content:"";position:absolute;top:0;left:0;right:0;height:10px;border-radius:12px 12px 0 0;background:repeating-linear-gradient(90deg,#dc2626 0 14px,#b91c1c 14px 28px)}
@keyframes mc7-page{from{transform:rotateX(-80deg);opacity:0}60%{transform:rotateX(8deg);opacity:1}to{transform:none}}
.mc7-cal-page small{display:block;margin-top:6px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#64748b;font-weight:700}
.mc7-cal-page b{font-family:Fraunces,Georgia,serif;font-size:clamp(26px,4vw,36px);line-height:1.05}
.mc7-cal-frise{display:grid;grid-template-columns:repeat(13,1fr);gap:3px}
.mc7-cal-frise span{font-size:10px;text-align:center;padding:4px 0;border-radius:6px;background:rgba(255,255,255,.08);color:rgba(255,255,255,.55);font-weight:700;min-width:0;overflow:hidden}
.mc7-cal-frise span.mc7-passe{background:rgba(20,184,166,.35);color:#fff}
.mc7-cal-frise span.mc7-ici{background:#fbbf24;color:#0f172a;transform:scale(1.12)}

/* --- le tableau de bord --- */
.mc7-tableau{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
.mc7-tuile{background:linear-gradient(160deg,var(--mc7-tuile,#111c30),#0b1427);border:1px solid var(--mc7-bord,#22314d);border-radius:14px;padding:10px 12px;color:#e2e8f0;
  display:flex;flex-direction:column;gap:4px;min-width:0;position:relative;overflow:hidden;box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 8px 20px rgba(0,0,0,.3);animation:mc7-allume .6s ease both}
.mc7-tuile:nth-child(2){animation-delay:.08s}.mc7-tuile:nth-child(3){animation-delay:.16s}.mc7-tuile:nth-child(4){animation-delay:.24s}.mc7-tuile:nth-child(5){animation-delay:.32s}.mc7-tuile:nth-child(6){animation-delay:.4s}
@keyframes mc7-allume{from{opacity:0;transform:translateY(8px);filter:brightness(2)}to{opacity:1;transform:none;filter:none}}
.mc7-tuile::after{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#475569}
.mc7-tuile-vert::after{background:var(--mc7-vert,#22c55e)}.mc7-tuile-orange::after{background:var(--mc7-orange,#f59e0b)}.mc7-tuile-rouge::after{background:var(--mc7-rouge,#ef4444)}
.mc7-tuile-t{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:13px;font-weight:700;color:#cbd5e1}
.mc7-tuile-t span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mc7-voyant{width:14px;height:14px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;font-size:10px;font-style:normal;font-weight:900;color:#0f172a;background:#64748b}
.mc7-v-vert{background:var(--mc7-vert,#22c55e);box-shadow:0 0 10px var(--mc7-vert,#22c55e)}
.mc7-v-orange{background:var(--mc7-orange,#f59e0b);box-shadow:0 0 10px var(--mc7-orange,#f59e0b)}
.mc7-v-rouge{background:var(--mc7-rouge,#ef4444);box-shadow:0 0 12px var(--mc7-rouge,#ef4444);animation:mc7-pulse 1.1s ease-in-out infinite}
.mc7-v-gris{background:#94a3b8}.mc7-v-neutre{background:#38bdf8;box-shadow:0 0 8px #38bdf8}
@keyframes mc7-pulse{50%{opacity:.35}}
.mc7-tuile-v{display:flex;align-items:baseline;gap:4px}
.mc7-val{font-family:"JetBrains Mono",ui-monospace,monospace;font-size:30px;color:#fff;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.mc7-tuile-v small{font-size:13px;color:#94a3b8}
.mc7-tuile-cible{font-size:12px;color:#94a3b8;line-height:1.3}
.mc7-tuile-origine{font-size:11.5px;font-weight:800;color:#fde68a;background:rgba(253,230,138,.12);border-radius:6px;padding:2px 6px;align-self:flex-start}
.mc7-courbe{width:100%;height:46px;display:block;margin-top:2px}
.mc7-c-ligne{fill:none;stroke:#5eead4;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.mc7-c-cible{stroke:#fde68a;stroke-width:1;stroke-dasharray:4 3;opacity:.7}
.mc7-c-ideal{stroke:#e2e8f0;stroke-width:1;stroke-dasharray:1 3;opacity:.5}
.mc7-c-pt{stroke:#0b1220;stroke-width:1.5}
.mc7-c-pt.mc7-v-vert{fill:#22c55e}.mc7-c-pt.mc7-v-orange{fill:#f59e0b}.mc7-c-pt.mc7-v-rouge{fill:#ef4444}.mc7-c-pt.mc7-v-gris{fill:#94a3b8}.mc7-c-pt.mc7-v-neutre{fill:#38bdf8}
.mc7-flou .mc7-tuile-v,.mc7-flou .mc7-courbe{filter:blur(2.5px);opacity:.75}
.mc7-flou{background:repeating-linear-gradient(135deg,#1e293b 0 10px,#172033 10px 20px)}
.mc7-brouille .mc7-tuile-v{animation:mc7-brouille 1.4s ease-in-out infinite alternate}
@keyframes mc7-brouille{from{filter:blur(1px)}to{filter:blur(4px)}}
.mc7-tuile-neuve{animation:mc7-neuve 1.2s cubic-bezier(.2,.8,.2,1) both;border-color:#fde68a}
@keyframes mc7-neuve{0%{transform:scale(.4) rotate(-6deg);opacity:0}60%{transform:scale(1.06)}100%{transform:none;opacity:1}}

/* --- le fil des nouvelles --- */
.mc7-fil{display:flex;flex-direction:column;gap:6px}
.mc7-fil-l{display:flex;gap:10px;align-items:flex-start;background:rgba(255,255,255,.95);color:#0f172a;border-radius:12px;padding:9px 12px;font-size:14.5px;line-height:1.4;
  box-shadow:0 6px 16px rgba(0,0,0,.25);animation:mc7-tombe .55s cubic-bezier(.2,.8,.2,1) both;border-left:5px solid #64748b}
@keyframes mc7-tombe{from{opacity:0;transform:translateY(-14px) rotate(-1deg)}to{opacity:1;transform:none}}
.mc7-fil-bon{border-left-color:#16a34a}.mc7-fil-mauvais{border-left-color:#dc2626}.mc7-fil-bilan{border-left-color:#0ea5e9}.mc7-fil-retard{border-left-color:#a855f7}

/* --- le dossier du mois, la décision, le bouton du mois suivant --- */
.mc7-dossier-btn{font:inherit;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:14px;align-items:center;text-align:left;cursor:pointer;
  background:linear-gradient(135deg,#fef3c7,#fde68a);color:#0f172a;border:0;border-radius:16px;padding:14px 18px;box-shadow:0 0 0 0 rgba(251,191,36,.6);animation:mc7-appel 1.8s ease-in-out infinite}
.mc7-dossier-btn>span{grid-row:1/3;font-size:38px}
.mc7-dossier-btn b{font-size:18px}.mc7-dossier-btn small{font-size:13px;color:#57534e}
@keyframes mc7-appel{50%{box-shadow:0 0 0 12px rgba(251,191,36,0)}}
.mc7-decision{background:rgba(255,255,255,.96);color:#0f172a;border-radius:16px;padding:14px;box-shadow:0 10px 28px rgba(0,0,0,.3)}
.mc7-decision-t{display:flex;gap:12px;align-items:center;margin-bottom:10px}
.mc7-decision-t img{width:52px;height:52px;border-radius:50%;object-fit:cover;border:3px solid #5eead4;flex-shrink:0}
.mc7-decision-t span{display:flex;flex-direction:column;font-family:Fraunces,Georgia,serif;font-size:20px;font-weight:700;line-height:1.2}
.mc7-decision-t small{font-family:Outfit,system-ui,sans-serif;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#0f766e;font-weight:800}
.mc7-cartes{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;perspective:900px}
.mc7-carte-dec{font:inherit;text-align:left;display:flex;flex-direction:column;gap:4px;background:#fff;border:2px solid #e2e8f0;border-radius:14px;padding:12px;cursor:pointer;
  transition:transform .25s,box-shadow .25s,border-color .25s,opacity .3s;min-width:0}
.mc7-carte-dec:hover:not(:disabled){transform:translateY(-4px) rotateX(6deg);border-color:#14b8a6;box-shadow:0 12px 24px rgba(15,118,110,.25)}
.mc7-carte-ico{font-size:28px}
.mc7-carte-dec b{font-size:15.5px;line-height:1.25}
.mc7-carte-dec small{font-size:13px;color:#64748b;line-height:1.35}
.mc7-carte-dec.mc7-on{border-color:#0f766e;background:#f0fdfa;transform:scale(1.03);box-shadow:0 0 0 4px rgba(20,184,166,.25)}
.mc7-carte-dec.mc7-eteinte{opacity:.4;transform:scale(.97)}
.mc7-decision-ok{margin:10px 0 0;font-size:14px;color:#0f766e;font-weight:700}
.mc7-avancer{align-self:center;font-size:18px;padding:14px 28px;background:linear-gradient(135deg,#14b8a6,#0f766e);box-shadow:0 8px 22px rgba(20,184,166,.4)}
.mc7-prof{font-size:12.5px;background:rgba(15,23,42,.75);border:1px dashed #64748b;border-radius:10px;padding:8px 10px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.mc7-prof button{font:inherit;font-size:12px;border:0;border-radius:6px;padding:3px 8px;cursor:pointer;background:#334155;color:#fff}

/* --- la fiche de voie (la leçon) --- */
.mc7-topo{background:#fffbeb;border-radius:16px;max-width:820px;width:100%;box-shadow:0 12px 34px rgba(0,0,0,.3);overflow:hidden;border:2px solid #fde68a;
  background-image:repeating-linear-gradient(0deg,transparent 0 27px,rgba(14,116,144,.08) 27px 28px);animation:pdl-bulle .45s ease}
.mc7-topo-tete{font:inherit;width:100%;display:flex;align-items:center;gap:12px;background:none;border:0;padding:12px 14px;cursor:pointer;text-align:left;color:#0f172a}
.mc7-topo-cot{flex-shrink:0;width:52px;height:52px;border-radius:50%;display:grid;place-items:center;font-weight:900;font-size:19px;color:#fff;
  background:var(--prise,#22c55e);box-shadow:inset -4px -6px 0 rgba(0,0,0,.18),0 4px 10px rgba(0,0,0,.2)}
.mc7-topo-titre{flex:1;display:flex;flex-direction:column;font-family:Fraunces,Georgia,serif;font-size:21px;font-weight:700;line-height:1.2}
.mc7-topo-titre small{font-family:Outfit,system-ui,sans-serif;font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:#92400e;font-weight:800}
.mc7-topo-chev{color:#92400e}
.mc7-topo-corps{padding:0 16px 16px;display:flex;flex-direction:column;gap:10px}
.mc7-topo-voix{align-self:flex-end}
.mc7-topo-voie{list-style:none;margin:0;padding:0 0 0 18px;border-left:3px dashed #94a3b8;display:flex;flex-direction:column;gap:9px}
.mc7-topo-voie li{position:relative;font-size:15.5px;line-height:1.5;color:#1e293b;background:rgba(255,255,255,.75);border-radius:10px;padding:8px 10px;animation:mc7-prise-in .5s ease both}
@keyframes mc7-prise-in{from{opacity:0;transform:translateX(-12px)}to{opacity:1;transform:none}}
.mc7-prise{position:absolute;left:-29px;top:10px;width:18px;height:14px;border-radius:50% 60% 40% 55%;background:var(--prise,#22c55e);box-shadow:inset -2px -3px 0 rgba(0,0,0,.2)}
.mc7-carnet .mc7-topo{margin-bottom:10px;box-shadow:none}

/* --- le cadenas à molettes --- */
.mc7-forge{display:flex;flex-direction:column;gap:12px}
.mc7-forge-tuiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mc7-mini-tuile{border-radius:10px;padding:8px 10px;font-size:13px;display:flex;flex-direction:column;gap:2px;color:#e2e8f0;background:#1e293b;transition:all .5s;min-width:0}
.mc7-mini-tuile b{overflow:hidden;text-overflow:ellipsis}
.mc7-mini-tuile span{font-size:11.5px;opacity:.8}
.mc7-mini-tuile.mc7-flou{background:repeating-linear-gradient(135deg,#334155 0 8px,#1e293b 8px 16px);filter:saturate(.4)}
.mc7-mini-tuile.mc7-net{background:linear-gradient(135deg,#0f766e,#115e59);box-shadow:0 0 14px rgba(20,184,166,.5)}
.mc7-mini-tuile.mc7-ici{outline:2px solid #fbbf24}
.mc7-forge-grille{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:14px;align-items:start}
.mc7-diag{background:#f8fafc;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:6px;border:1px solid #e2e8f0}
.mc7-diag-t{font-weight:800;font-size:13.5px;color:#0f172a}
.mc7-diag-l{font-size:13.5px;line-height:1.4;border-left:4px solid var(--c);padding:4px 8px;background:#fff;border-radius:6px}
.mc7-diag-l b{display:block;color:var(--c);font-size:12px;text-transform:uppercase;letter-spacing:.05em}
.mc7-cadenas{position:relative;padding-top:46px}
.mc7-anse{position:absolute;top:0;left:50%;width:130px;height:70px;margin-left:-65px;border:14px solid #94a3b8;border-bottom:0;border-radius:70px 70px 0 0;transition:transform .6s cubic-bezier(.3,1.5,.5,1)}
.mc7-cadenas-ouvert .mc7-anse{transform:translateY(-22px) rotate(-14deg) translateX(-14px);border-color:#22c55e}
.mc7-cadenas-corps{position:relative;background:linear-gradient(160deg,#334155,#1e293b);border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:8px;color:#fff;box-shadow:0 14px 30px rgba(0,0,0,.35)}
.mc7-cadenas-ouvert .mc7-cadenas-corps{background:linear-gradient(160deg,#0f766e,#134e4a)}
.mc7-secoue{animation:pdl-secoue .45s ease}
.mc7-intention{font-family:Fraunces,Georgia,serif;font-size:21px;text-align:center}
.mc7-intention small{display:block;font-family:Outfit,system-ui,sans-serif;font-size:12px;color:#94a3b8;letter-spacing:.05em}
.mc7-molette{display:grid;grid-template-columns:150px 1fr;gap:8px;align-items:center}
.mc7-molette-nom{font-size:12.5px;font-weight:800;color:#cbd5e1}
.mc7-molette-roue{display:grid;grid-template-columns:34px 1fr 34px;align-items:center;background:#0b1220;border-radius:10px;border:1px solid #475569;overflow:hidden}
.mc7-molette-roue button{font:inherit;height:100%;min-height:42px;border:0;background:#1e293b;color:#fde68a;cursor:pointer;font-size:13px}
.mc7-molette-roue button:hover:not(:disabled){background:#334155}
.mc7-molette-val{padding:6px 8px;font-size:14px;text-align:center;line-height:1.3;animation:mc7-roule .25s ease}
@keyframes mc7-roule{from{transform:translateY(-60%);opacity:0}to{transform:none;opacity:1}}
.mc7-cadenas .pdl-why{color:#0f172a}

/* --- la trieuse et ses habillages --- */
.mc7-trieuse{display:flex;flex-direction:column;gap:12px;align-items:stretch}
.mc7-trieuse-prog{font-size:12.5px;font-weight:800;color:#0e7490;letter-spacing:.06em;text-transform:uppercase}
.mc7-carte-a-trier{position:relative;align-self:center;max-width:560px;width:100%;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:18px 18px;font-size:17px;line-height:1.45;
  text-align:center;box-shadow:0 10px 24px rgba(0,0,0,.15);animation:mc7-arrive .5s cubic-bezier(.2,.8,.2,1)}
@keyframes mc7-arrive{from{transform:translateX(60px) rotate(4deg);opacity:0}to{transform:none;opacity:1}}
.mc7-carte-a-trier.mc7-juste{border-color:#16a34a}
.mc7-carte-a-trier.mc7-rate{border-color:#f59e0b;animation:pdl-secoue .4s ease}
.mc7-cibles{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:8px}
.mc7-cible{font:inherit;font-weight:800;font-size:14px;cursor:pointer;border-radius:12px;padding:12px 8px;border:2px solid var(--c);color:var(--c);background:#fff;
  display:flex;flex-direction:column;align-items:center;gap:2px;transition:transform .15s;min-width:0}
.mc7-cible:hover:not(:disabled){transform:translateY(-3px)}
.mc7-cible small{font-weight:600;font-size:11px;color:#64748b}
.mc7-cible.mc7-cible-bonne{background:var(--c);color:#fff}
.mc7-cible.mc7-cible-fausse{opacity:.55;text-decoration:line-through}
/* la tamponneuse */
.mc7-skin-tampon .mc7-carte-a-trier{background:#fffdf5;font-family:"Courier New",monospace;border-style:dashed}
.mc7-skin-tampon .mc7-cible{border-radius:50% 50% 12px 12px;border-width:3px;padding-top:16px}
.mc7-coup-tampon{position:absolute;right:10px;bottom:-14px;border:3px solid #15803d;color:#15803d;background:rgba(255,255,255,.85);border-radius:8px;padding:2px 10px;font-weight:900;font-size:13px;
  letter-spacing:.06em;transform:rotate(-10deg);animation:mc7-coup .35s cubic-bezier(.3,1.6,.5,1)}
.mc7-coup-tampon.mc7-coup-faux{border-color:#b45309;color:#b45309}
@keyframes mc7-coup{from{transform:rotate(-10deg) scale(2.6);opacity:0}to{transform:rotate(-10deg) scale(1);opacity:1}}
/* le classeur à tiroirs */
.mc7-skin-tiroir .mc7-cibles{background:linear-gradient(180deg,#78716c,#57534e);padding:10px;border-radius:12px}
.mc7-skin-tiroir .mc7-cible{background:linear-gradient(180deg,#fafaf9,#e7e5e4);border:0;border-bottom:6px solid var(--c);color:#292524;position:relative}
.mc7-skin-tiroir .mc7-cible::before{content:"";width:34px;height:6px;border-radius:4px;background:#a8a29e;margin-bottom:6px}
.mc7-skin-tiroir .mc7-cible.mc7-cible-bonne{transform:translateY(8px);background:var(--c);color:#fff}
/* le thermomètre de l'accord */
.mc7-skin-thermo .mc7-cibles{background:linear-gradient(90deg,#fecaca,#fde68a,#bbf7d0);padding:10px;border-radius:40px}
.mc7-skin-thermo .mc7-cible{border-radius:30px;background:rgba(255,255,255,.85)}
/* l'étiqueteuse */
.mc7-skin-etiquette .mc7-cible{clip-path:polygon(0 0,88% 0,100% 50%,88% 100%,0 100%);border-radius:6px 0 0 6px}
.mc7-skin-etiquette .mc7-carte-a-trier{border-left:10px solid #0ea5e9}

/* --- les sceaux --- */
.mc7-sceaux{display:flex;flex-direction:column;gap:12px}
.mc7-sceaux-grille{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mc7-signataire{background:#fff;border:2px solid #e2e8f0;border-top:6px solid var(--c);border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:8px;align-items:stretch;min-width:0}
.mc7-signataire-t{display:flex;flex-direction:column;align-items:center;text-align:center}
.mc7-signataire-t span{font-size:28px}.mc7-signataire-t small{color:#64748b;font-size:12px}
.mc7-cire{align-self:center;width:58px;height:58px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f87171,#991b1b);color:#fff;display:grid;place-items:center;font-weight:900;font-size:22px;
  box-shadow:0 4px 10px rgba(127,29,29,.4);transition:transform .4s}
.mc7-scelle .mc7-cire{animation:mc7-sceau .6s cubic-bezier(.3,1.6,.5,1)}
@keyframes mc7-sceau{from{transform:scale(2.2) rotate(-40deg);opacity:0}to{transform:none;opacity:1}}
.mc7-casse .mc7-cire{animation:pdl-secoue .45s;background:radial-gradient(circle at 35% 30%,#94a3b8,#475569)}
.mc7-fin-choix{display:flex;flex-direction:column;gap:5px}
.mc7-fin-choix button,.mc7-segments button{font:inherit;font-size:13px;border:2px solid #e2e8f0;background:#f8fafc;border-radius:8px;padding:6px 8px;cursor:pointer;text-align:center}
.mc7-fin-choix button.mc7-on,.mc7-segments button.mc7-on{border-color:#0f766e;background:#ccfbf1;font-weight:800}

/* --- le plan du hangar --- */
.mc7-hangar{display:flex;flex-direction:column;gap:12px}
.mc7-jetons{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.mc7-jeton{font:inherit;font-size:13px;font-weight:700;display:inline-flex;align-items:center;gap:6px;background:#fff;border:2px solid #cbd5e1;border-radius:99px;padding:6px 12px;cursor:pointer;
  box-shadow:0 3px 8px rgba(0,0,0,.12);transition:transform .15s}
.mc7-jeton span{font-size:18px}
.mc7-jeton.mc7-sel{border-color:#f59e0b;transform:translateY(-3px) scale(1.04);box-shadow:0 0 0 4px rgba(245,158,11,.25)}
.mc7-jeton.mc7-jeton-faux{border-color:#dc2626;animation:pdl-secoue .4s}
.mc7-jeton.mc7-jeton-bon{border-color:#16a34a}
.mc7-plan{position:relative;border-radius:16px;padding:34px 14px 14px;min-height:300px;cursor:pointer;
  background:radial-gradient(circle at 15% 85%,#86efac 0 6%,transparent 7%),radial-gradient(circle at 88% 20%,#86efac 0 5%,transparent 6%),linear-gradient(135deg,#bbf7d0,#a7f3d0 40%,#d9f99d)}
.mc7-plan-actif{outline:3px dashed #f59e0b}
.mc7-plan-etiq{position:absolute;top:8px;left:12px;font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#14532d}
.mc7-plan-dehors{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px;min-height:20px}
.mc7-plan-hangar{position:relative;margin:0 auto;max-width:520px;min-height:150px;border-radius:10px;padding:30px 12px 12px;display:flex;flex-wrap:wrap;gap:6px;align-content:flex-start;
  background:repeating-linear-gradient(90deg,#b45309 0 16px,#92400e 16px 32px);box-shadow:inset 0 0 0 6px #78350f,0 10px 20px rgba(0,0,0,.25)}
.mc7-plan-hangar .mc7-plan-etiq{color:#fff}
.mc7-plan-mur{position:absolute;right:12px;top:10px;width:46px;height:20px;border-radius:4px;background:repeating-linear-gradient(90deg,#f43f5e 0 6px,#22d3ee 6px 12px,#facc15 12px 18px)}

/* --- la corde des leviers --- */
.mc7-leviers{display:flex;flex-direction:column;gap:12px}
.mc7-corde-scene{display:grid;grid-template-columns:minmax(0,1fr) 1.2fr minmax(0,1fr);align-items:center;gap:8px}
.mc7-corde-pp,.mc7-corde-gr{background:#f8fafc;border:2px solid #e2e8f0;border-radius:12px;padding:10px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
.mc7-corde-pp span,.mc7-corde-gr{font-size:28px}
.mc7-corde-pp b,.mc7-corde-gr b{font-size:13.5px}
.mc7-corde-pp small{font-size:11.5px;color:#64748b;text-transform:uppercase;font-weight:800}
.mc7-corde{height:12px;border-radius:6px;background:repeating-linear-gradient(60deg,#f97316 0 6px,#fdba74 6px 12px);transform:translateY(10px) rotate(4deg);transition:transform .6s cubic-bezier(.3,1.6,.5,1)}
.mc7-corde-tendue{transform:none}
.mc7-corde-molle{transform:translateY(22px) rotate(10deg);filter:grayscale(.6)}

/* --- la négociation --- */
.mc7-nego{display:flex;flex-direction:column;gap:12px}
.mc7-nego-jauges{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mc7-adhesion{background:#0f172a;color:#fff;border-radius:12px;padding:10px 12px}
.mc7-adhesion-t{display:flex;justify-content:space-between;font-size:13.5px;margin-bottom:6px}
.mc7-adhesion-t b{font-family:"JetBrains Mono",ui-monospace,monospace;font-size:18px}
.mc7-adhesion-barre{position:relative;height:14px;background:#334155;border-radius:8px;overflow:visible}
.mc7-adhesion-barre span{display:block;height:100%;border-radius:8px;background:linear-gradient(90deg,#ef4444,#f59e0b);transition:width .6s cubic-bezier(.2,.8,.2,1)}
.mc7-adh-ok .mc7-adhesion-barre span{background:linear-gradient(90deg,#16a34a,#22c55e)}
.mc7-adhesion-barre i{position:absolute;top:-4px;bottom:-4px;width:3px;background:#fde68a;border-radius:2px}
.mc7-nego-leviers{display:flex;flex-direction:column;gap:8px}
.mc7-nego-l{display:grid;grid-template-columns:200px 1fr;gap:8px;align-items:center}
.mc7-nego-l>span{font-weight:800;font-size:14px}
.mc7-segments{display:flex;flex-wrap:wrap;gap:6px}
.mc7-segments button{flex:1;min-width:110px}
.mc7-nego-gain{font-size:14px;background:#ecfeff;border-radius:10px;padding:8px 12px}
.mc7-note-ludo{background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:14px 16px;font-family:"Courier New",monospace;transform:rotate(-1.2deg);box-shadow:0 8px 18px rgba(0,0,0,.18);
  max-width:620px;margin:0 auto 10px;animation:pdl-tombe .8s cubic-bezier(.2,.8,.2,1)}
.mc7-note-ludo p{margin:8px 0}
.mc7-avis p{margin:6px 0;font-size:14.5px;background:#f8fafc;border-radius:10px;padding:8px 10px}

/* --- le mur des capteurs --- */
.mc7-capteurs{display:flex;flex-direction:column;gap:12px}
.mc7-mur-cases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;background:#0b1220;padding:10px;border-radius:14px}
.mc7-mur-case{min-height:62px;border-radius:10px;border:2px dashed #334155;color:#94a3b8;display:grid;place-items:center;text-align:center;font-size:13px;padding:6px;min-width:0}
.mc7-mur-case.mc7-pleine{border-style:solid;border-color:#14b8a6;color:#fff;background:#0f2a2a;animation:mc7-allume .4s}
.mc7-mur-case.mc7-case-ok{border-color:#22c55e}.mc7-mur-case.mc7-case-ko{border-color:#ef4444;background:#3b0d0d}
.mc7-budget{grid-column:1/-1;position:relative;color:#fff;font-weight:800;font-size:13px;background:#1e293b;border-radius:8px;padding:6px 10px;overflow:hidden}
.mc7-budget span{position:absolute;left:0;top:0;bottom:0;background:rgba(20,184,166,.35);z-index:0;transition:width .4s}
.mc7-budget-plein span{background:rgba(239,68,68,.45)}
.mc7-catalogue{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.mc7-capteur{font:inherit;text-align:left;cursor:pointer;background:#fff;border:2px solid #e2e8f0;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:3px;transition:all .15s;min-width:0}
.mc7-capteur b{font-size:14px;line-height:1.25}.mc7-capteur small{font-size:12px;color:#64748b}.mc7-capteur em{font-style:normal;font-size:12px;font-weight:800;color:#0e7490}
.mc7-capteur.mc7-on{border-color:#0f766e;background:#f0fdfa;box-shadow:0 0 0 3px rgba(20,184,166,.25)}
.mc7-verdict-capteurs{display:flex;flex-direction:column;gap:6px}
.mc7-v{border-radius:10px;padding:8px 12px;font-size:14px;line-height:1.4;display:flex;flex-direction:column;gap:2px}
.mc7-v-bon{background:#f0fdf4;border:1px solid #bbf7d0}.mc7-v-faux{background:#fef2f2;border:1px solid #fecaca}.mc7-v-oubli{background:#fffbeb;border:1px solid #fde68a}
.mc7-v i{color:#475569}

/* --- la ligne du chemin --- */
.mc7-chemin{display:flex;flex-direction:column;gap:10px}
.mc7-chemin-svg{width:100%;max-width:620px;align-self:center;background:#0b1220;border-radius:12px}
.mc7-l-cible{stroke:#fde68a;stroke-dasharray:6 4;stroke-width:1.5}
.mc7-l-ideal{stroke:#94a3b8;stroke-dasharray:2 4;stroke-width:1.5}
.mc7-l-reel{fill:none;stroke:#5eead4;stroke-width:3;stroke-linejoin:round}
.mc7-l-etalon{stroke:#f472b6;stroke-width:4;stroke-dasharray:5 3}
.mc7-l-etalon.mc7-pose{stroke:#22c55e}
.mc7-pt{fill:#5eead4;stroke:#0b1220;stroke-width:2}
.mc7-t{fill:#cbd5e1;font-size:11px;font-family:Outfit,system-ui,sans-serif}
.mc7-t-fort{fill:#fff;font-weight:800;font-size:12px}
.mc7-chemin-reglage{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:center}
.mc7-chemin-reglage input[type=range]{flex:1;min-width:200px;accent-color:#f472b6}
.mc7-calculs{display:flex;flex-direction:column;gap:8px}
.mc7-calc-l{display:flex;flex-direction:column;gap:4px;font-size:14px;font-weight:700}
.mc7-calc-l input{font:inherit;font-size:18px;padding:8px 12px;border:2px solid #e2e8f0;border-radius:10px;max-width:180px}

/* --- l'enquête --- */
.mc7-enquete{display:flex;flex-direction:column;gap:12px}
.mc7-fiches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;perspective:1000px}
.mc7-fiche{font:inherit;position:relative;height:170px;border:0;background:none;cursor:pointer;transform-style:preserve-3d;transition:transform .7s cubic-bezier(.2,.8,.2,1);padding:0}
.mc7-fiche.mc7-retournee{transform:rotateY(180deg);cursor:default}
.mc7-fiche-dos,.mc7-fiche-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:6px;padding:10px;text-align:center;box-shadow:0 8px 18px rgba(0,0,0,.2)}
.mc7-fiche-dos{background:linear-gradient(160deg,#0f766e,#134e4a);color:#fff;font-size:34px}
.mc7-fiche-dos b{font-size:14px}.mc7-fiche-dos small{font-size:11.5px;opacity:.8}
.mc7-fiche-face{transform:rotateY(180deg);background:#fff;color:#0f172a;font-size:14px;line-height:1.4;border:2px solid #14b8a6}
.mc7-fiche-face b{color:#0f766e;font-size:13px;text-transform:uppercase;letter-spacing:.04em}
.mc7-encart{max-width:none;box-shadow:none;border:1px solid #e2e8f0}
.mc7-pistes{display:flex;flex-direction:column;gap:8px}
.mc7-piste{font:inherit;font-size:15px;text-align:left;display:flex;gap:10px;align-items:center;background:#fff;border:2px solid #e2e8f0;border-radius:12px;padding:10px 12px;cursor:pointer}
.mc7-piste.mc7-on{border-color:#0f766e;background:#f0fdfa}
.mc7-piste.mc7-eteinte{opacity:.5}

/* --- le bilan --- */
.mc7-objectifs-fin{display:flex;flex-direction:column;gap:6px;text-align:left;margin:8px 0}
.mc7-obj-fin{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;background:#fff;border-radius:12px;padding:8px 12px;border:2px solid #e2e8f0;animation:mc7-tombe .5s both}
.mc7-obj-fin small{grid-column:2;color:#64748b;font-size:12.5px}
.mc7-oui-non{grid-row:1/3;font-weight:900;font-size:17px;border-radius:8px;padding:6px 10px;color:#fff}
.mc7-oui .mc7-oui-non{background:#16a34a}.mc7-non .mc7-oui-non{background:#dc2626}
.mc7-oui{border-color:#bbf7d0}.mc7-non{border-color:#fecaca}
.mc7-fin-titre{display:inline-block;font-size:13px;letter-spacing:.12em;text-transform:uppercase;font-weight:900;color:#0f766e;background:#ccfbf1;border-radius:99px;padding:4px 14px;margin-bottom:6px}

/* --- les documents --- */
.mc7-bandeau{background:linear-gradient(90deg,#0f766e,#0e7490)}
.mc7-bandeau-rouge{background:linear-gradient(90deg,#b91c1c,#9a3412)}
.mc7-logo{color:#0f766e}
.mc7-badge-dos{background:linear-gradient(160deg,#0f766e,#134e4a)}
.mc7-table{width:100%;border-collapse:collapse;font-size:13.5px;margin:8px 0 12px}
.mc7-table th,.mc7-table td{border:1px solid #e2e8f0;padding:6px 8px;text-align:left;vertical-align:top}
.mc7-table th{background:#f0fdfa;color:#134e4a}
.mc7-sceaux-doc{display:flex;gap:14px;justify-content:center;margin:6px 0}
.mc7-sceaux-doc span{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;font-size:22px;background:radial-gradient(circle at 35% 30%,#f87171,#991b1b);box-shadow:0 0 0 3px var(--c)}
.mc7-tampon{border-color:#0f766e;color:#0f766e}

/* --- petits écrans --- */
@media (max-width:720px){
  .mc7-saison{padding:12px 10px 18px}
  .mc7-val{font-size:24px}
  .mc7-tableau{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .mc7-tuile{padding:8px 9px}
  .mc7-tuile-t{font-size:12px}
  .mc7-forge-grille{grid-template-columns:1fr}
  .mc7-forge-tuiles{grid-template-columns:1fr}
  .mc7-molette{grid-template-columns:1fr}
  .mc7-sceaux-grille{grid-template-columns:1fr}
  .mc7-cibles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mc7-nego-jauges{grid-template-columns:1fr}
  .mc7-nego-l{grid-template-columns:1fr}
  .mc7-mur-cases{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mc7-fiches{grid-template-columns:1fr}
  .mc7-fiche{height:130px}
  .mc7-corde-scene{grid-template-columns:1fr;justify-items:stretch}
  .mc7-corde{height:40px;width:12px;justify-self:center;transform:none}
  .mc7-corde-molle{transform:rotate(12deg)}
  .mc7-cal-frise span{font-size:8.5px}
  .mc7-decision-t span{font-size:17px}
}
/* ==== mc7 : fin des styles ==== */
/* ==== mc6 : debut des styles ====
   « Brouyar — l'enquête de Cilaos » — préfixe mc6-. Hérite des styles pdl-
   de Péi Délices (le conteneur porte les deux classes : .pdl.mc6).
   Couleurs : le vert des fanjans, le brun du liège, le rouge du fil. */
.mc6 .pdl-cta{background:linear-gradient(135deg,#0f766e,#15803d);box-shadow:0 6px 18px rgba(21,128,61,.32)}
.mc6 .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(21,128,61,.42)}
.mc6 .pdl-cta.alt{background:#fff;color:#1a1430;box-shadow:0 4px 14px rgba(0,0,0,.15)}
.mc6 .pdl-cta.mc6-inline{display:inline-block;margin:4px 6px 0 0}
.mc6 .pdl-hud-prog span{font-size:13px}
.pdl-doc-bandeau.mc6-bandeau{background:linear-gradient(90deg,#14532d,#0f766e)}
.mc6-tampon-doc{position:relative;right:auto;bottom:auto;display:inline-block;margin:6px 0 0 auto;border-color:#b91c1c;color:#b91c1c}
.mc6-rouge{color:#b91c1c !important}
.mc6-mini{margin:8px 0 0;padding-left:18px;font-size:14px}
.mc6-mini li{margin-bottom:4px}
.mc6-barre{color:#94a3b8;text-decoration:line-through}
@keyframes mc6-secoue{20%,60%{transform:translateX(-7px) rotate(-1deg)}40%,80%{transform:translateX(7px) rotate(1deg)}}
.mc6-secoue{animation:mc6-secoue .45s}
@keyframes mc6-tombe{from{opacity:0;transform:translateY(-26px) rotate(calc(var(--r,0deg) - 8deg)) scale(1.08)}to{opacity:1;transform:rotate(var(--r,0deg))}}
.mc6-manuscrit{font-family:"Caveat","Segoe Print","Bradley Hand",cursive;font-size:19px}
.mc6-manuscrit .pdl-aide{font-size:16px}
.mc6-voix-doc{font-family:Outfit,system-ui,sans-serif;display:flex;justify-content:flex-end}

/* --- l'accueil et la narration --- */
.mc6-accueil h1 span{color:#86efac}
.mc6-narration{max-width:640px;background:rgba(15,23,42,.72);color:#f8fafc;border-radius:16px;padding:20px 22px;font-size:18px;line-height:1.6;
  box-shadow:0 14px 40px rgba(0,0,0,.4);display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.mc6-narration p{margin:0}
.mc6-hyps{display:flex;flex-direction:column;gap:10px;margin:12px 0}
.mc6-hyp-choix .mc6-carte{font-size:15px;text-align:left;padding:12px 14px;max-width:none;width:100%}

/* --- la fiche (la leçon) : une page qui se déplie --- */
.mc6-fiche{position:relative;max-width:760px;width:100%;background:#fffdf5;color:#1f2937;border-radius:6px 16px 16px 6px;padding:20px 22px 18px 34px;
  box-shadow:0 18px 44px rgba(0,0,0,.35);transform-origin:top center;animation:mc6-deplie .7s cubic-bezier(.2,.9,.3,1.1);
  background-image:repeating-linear-gradient(180deg,transparent 0 29px,rgba(37,99,235,.12) 29px 30px)}
.mc6-fiche::before{content:"";position:absolute;left:18px;top:0;bottom:0;width:2px;background:rgba(220,38,38,.35)}
@keyframes mc6-deplie{from{opacity:0;transform:perspective(900px) rotateX(-75deg)}to{opacity:1;transform:none}}
.mc6-fiche-source{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;font-weight:700;color:#0f766e;letter-spacing:.02em}
.mc6-fiche h3{font-family:Fraunces,Georgia,serif;font-size:clamp(20px,2.6vw,25px);margin:8px 0 10px;color:#14532d}
.mc6-fiche ul{margin:0 0 14px;padding-left:20px}
.mc6-fiche li{font-size:16px;line-height:1.55;margin-bottom:8px;opacity:0;animation:mc6-ligne .5s ease forwards}
@keyframes mc6-ligne{from{opacity:0;transform:translateX(-8px)}to{opacity:1;transform:none}}
.mc6-fiche-appel{border-radius:16px;background-color:#f0fdfa;border:2px solid #5eead4;padding-left:22px}
.mc6-fiche-appel::before{display:none}
.mc6-fiche-note{background-color:#fef9c3;transform:rotate(-.6deg);border-radius:4px}
.mc6-fiche-note::before{left:50%;top:-12px;width:90px;height:24px;margin-left:-45px;background:rgba(255,255,255,.6);border:1px solid rgba(0,0,0,.06);transform:rotate(-3deg)}

/* --- le tableau de liège (le hub) --- */
.mc6-hub .pdl-decor-contenu{max-width:1080px;padding:14px 12px}
.mc6-tableau-tete{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;color:#fff;width:100%}
.mc6-tableau-tete h2{font-family:Fraunces,Georgia,serif;font-size:clamp(22px,3.2vw,32px);margin:0;text-shadow:0 4px 18px rgba(0,0,0,.5)}
.mc6-jour{background:rgba(255,255,255,.14);border-radius:99px;padding:4px 12px;font-size:14px;font-weight:700}
.mc6-brume-jauge{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:700}
.mc6-brume-jauge i{display:inline-block;width:110px;height:10px;border-radius:99px;background:rgba(255,255,255,.2);overflow:hidden}
.mc6-brume-jauge b{display:block;height:100%;background:linear-gradient(90deg,#e2e8f0,#fde68a);transition:width 1s}
.mc6-tableau{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:14px;width:100%;align-items:start}
.mc6-liege{position:relative;border-radius:10px;padding:14px;min-height:420px;overflow:hidden;
  background:#b98a54 radial-gradient(circle at 20% 30%,rgba(255,255,255,.08) 0 2px,transparent 3px) 0 0/14px 14px;
  background-image:radial-gradient(rgba(90,55,20,.35) 1px,transparent 1.6px),radial-gradient(rgba(255,240,210,.18) 1px,transparent 1.8px),linear-gradient(135deg,#c79a63,#a8743f);
  background-size:9px 9px,13px 13px,100% 100%;background-position:0 0,4px 6px,0 0;
  border:12px solid #6b4423;box-shadow:inset 0 0 30px rgba(0,0,0,.35),0 18px 40px rgba(0,0,0,.45)}
.mc6-hypothese{position:relative;margin:0 auto 12px;max-width:520px;background:#fff;border-radius:3px;padding:10px 14px;text-align:center;
  box-shadow:0 6px 14px rgba(0,0,0,.3);transform:rotate(-1deg);animation:mc6-tombe .6s ease}
.mc6-hypothese::before{content:"";position:absolute;top:-7px;left:50%;width:16px;height:16px;margin-left:-8px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fca5a5,#b91c1c);box-shadow:0 2px 3px rgba(0,0,0,.4)}
.mc6-hypothese small{display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#64748b;font-weight:800}
.mc6-hypothese b{font-size:14px}
.mc6-hyp-tampon{position:absolute;right:-6px;top:-10px;border:3px solid #b91c1c;color:#b91c1c;font-weight:900;font-size:13px;padding:2px 8px;border-radius:6px;transform:rotate(9deg);background:rgba(255,255,255,.85);animation:mc6-tampon .4s ease}
@keyframes mc6-tampon{from{transform:rotate(9deg) scale(2.2);opacity:0}to{transform:rotate(9deg) scale(1);opacity:1}}
.mc6-moities-liege{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mc6-cote{border:2px dashed rgba(255,255,255,.45);border-radius:10px;padding:8px;min-width:0}
.mc6-cote-t{font-weight:900;font-size:12px;letter-spacing:.12em;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.5);margin-bottom:6px;text-align:center}
.mc6-zone{background:rgba(120,80,40,.25);border-radius:8px;padding:6px 6px 8px;margin-bottom:8px;min-width:0}
.mc6-zone-t{font-size:12px;font-weight:800;color:#fff8e7;text-shadow:0 1px 2px rgba(0,0,0,.5);margin-bottom:4px}
.mc6-zone-vide{margin:0;font-size:12px;color:rgba(255,255,255,.75);font-style:italic}
.mc6-zone-pins{display:flex;flex-wrap:wrap;gap:6px}
.mc6-pin{position:relative;background:#fffef6;border-top:4px solid var(--c,#64748b);color:#1f2937;font-size:11.5px;line-height:1.25;padding:6px 7px 5px;border-radius:2px;
  max-width:160px;box-shadow:0 3px 7px rgba(0,0,0,.28);transform:rotate(var(--r,0deg));animation:mc6-tombe .5s ease both}
.mc6-pin::before{content:"";position:absolute;top:-8px;left:50%;width:10px;height:10px;margin-left:-5px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#fff,var(--c,#64748b));box-shadow:0 1px 2px rgba(0,0,0,.4)}
.mc6-pin-star{background:#f5f3ff;font-weight:800}
.mc6-pin-photo{display:flex;flex-direction:column;align-items:center;width:84px;padding:4px 4px 6px;border-top:0;text-align:center}
.mc6-pin-photo img{width:74px;height:74px;object-fit:cover;object-position:top;margin-bottom:3px}
.mc6-pin-photo b{font-size:11px}.mc6-pin-photo i{font-size:10px;font-style:normal;color:#64748b}
.mc6-pin-photo span{position:absolute;top:30px;left:-4px;right:-4px;transform:rotate(-14deg);border:2px solid #b91c1c;color:#b91c1c;font-weight:900;font-size:11px;background:rgba(255,255,255,.85)}
.mc6-pin-ferme img{filter:grayscale(1)}
.mc6-zone-matrice,.mc6-zone-fcs{margin-top:8px}
.mc6-fils-mini .mc6-grille{font-size:11px}
.mc6-fils-mini .mc6-epingle{font-size:10.5px;padding:4px 6px}
.mc6-brume{position:absolute;inset:0;pointer-events:none;transition:opacity 1.6s ease;overflow:hidden;z-index:1}
/* Le brouillard voile le liège et les zones vides ; les épingles trouvées passent devant
   (même contexte d'empilement : celui de .pdl-decor-contenu). */
.mc6-hypothese,.mc6-pin,.mc6-zone-t,.mc6-cote-t,.mc6-zone-matrice,.mc6-zone-fcs{position:relative;z-index:2}
.mc6-brume i{position:absolute;width:90%;height:70%;border-radius:50%;background:radial-gradient(closest-side,rgba(241,245,249,.95),rgba(241,245,249,0));filter:blur(8px)}
.mc6-brume i:nth-child(1){left:-20%;top:-10%;animation:mc6-brume1 18s ease-in-out infinite alternate}
.mc6-brume i:nth-child(2){right:-25%;top:25%;animation:mc6-brume2 22s ease-in-out infinite alternate}
.mc6-brume i:nth-child(3){left:10%;bottom:-25%;animation:mc6-brume1 26s ease-in-out infinite alternate-reverse}
@keyframes mc6-brume1{from{transform:translateX(-6%) scale(1)}to{transform:translateX(14%) scale(1.15)}}
@keyframes mc6-brume2{from{transform:translateX(8%) scale(1.1)}to{transform:translateX(-12%) scale(.95)}}
.mc6-pistes{display:flex;flex-direction:column;gap:8px}
.mc6-pistes-t{color:#fff;font-weight:800;font-size:15px;text-shadow:0 2px 8px rgba(0,0,0,.5)}
.mc6-bristol{position:relative;text-align:left;font:inherit;border:0;cursor:pointer;background:#fdfdf8;border-radius:3px;padding:9px 10px 8px 38px;
  box-shadow:0 5px 12px rgba(0,0,0,.35);transform:rotate(var(--r,0deg));animation:mc6-tombe .5s ease both;transition:transform .2s,box-shadow .2s;
  background-image:linear-gradient(180deg,transparent 0 22px,#fca5a5 22px 23px,transparent 23px),repeating-linear-gradient(180deg,transparent 0 17px,rgba(37,99,235,.14) 17px 18px)}
.mc6-bristol:hover:not(:disabled){transform:rotate(0deg) scale(1.03);box-shadow:0 10px 22px rgba(0,0,0,.45)}
.mc6-bristol b{display:block;font-size:14px;color:#1f2937}
.mc6-bristol i{display:block;font-size:11.5px;font-style:normal;color:#64748b;margin-top:2px}
.mc6-bristol-ico{position:absolute;left:9px;top:9px;font-size:18px}
.mc6-bristol-ferme{opacity:.68;cursor:not-allowed;filter:grayscale(.6)}
.mc6-bristol-ouverte{outline:3px solid #fde047;outline-offset:2px;animation:mc6-tombe .5s ease both,mc6-appel 2.2s ease-in-out infinite 1s}
@keyframes mc6-appel{50%{outline-color:rgba(253,224,71,.25)}}
.mc6-bristol-fait{background-color:#ecfdf5}

/* --- le carton de titre et le bravo --- */
.mc6-tm .pdl-tm-n{font-size:22px}
.mc6-bravo{background:radial-gradient(circle at 50% 30%,#14532d,#0f172a 70%)}
.mc6-punaises{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.mc6-punaises i{position:absolute;top:-20px;width:14px;height:14px;border-radius:50%;background:hsl(var(--h),80%,58%);box-shadow:0 2px 3px rgba(0,0,0,.4);animation:mc6-pluie-punaise 2.4s ease-in forwards}
@keyframes mc6-pluie-punaise{to{transform:translateY(70vh) rotate(260deg);opacity:.2}}

/* --- 1. la lampe torche --- */
.mc6-lampe{display:flex;flex-direction:column;gap:10px}
.mc6-lampe-scene{position:relative;width:100%;aspect-ratio:16/9;background-size:cover;background-position:center;border-radius:12px;overflow:hidden;cursor:crosshair;touch-action:none;user-select:none}
.mc6-lampe-nuit{position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(circle at var(--x) var(--y),rgba(0,0,0,0) 0,rgba(0,0,0,0) 70px,rgba(4,6,12,.94) 150px)}
.mc6-lampe-uv .mc6-lampe-nuit{background:radial-gradient(circle at var(--x) var(--y),rgba(91,33,182,.25) 0,rgba(91,33,182,.3) 70px,rgba(8,4,20,.95) 150px)}
.mc6-lampe-uv{filter:hue-rotate(-30deg) saturate(.7)}
.mc6-lampe-flash .mc6-lampe-nuit{background:rgba(0,0,0,.25);transition:background .2s}
.mc6-objet{position:absolute;transform:translate(-50%,-50%);border:0;background:none;cursor:pointer;padding:0;display:flex;flex-direction:column;align-items:center;gap:2px;
  opacity:0;pointer-events:none;transition:opacity .25s;z-index:2;max-width:150px}
.mc6-objet-vu{opacity:1;pointer-events:auto}
/* Au bord du décor, l'étiquette se replie vers l'intérieur. */
.mc6-objet-d{transform:translate(-80%,-50%);align-items:flex-end}
.mc6-objet-g{transform:translate(-20%,-50%);align-items:flex-start}
.mc6-objet-ico{font-size:28px;filter:drop-shadow(0 0 8px rgba(255,255,255,.8));animation:mc6-luit 1.4s ease-in-out infinite}
.mc6-objet-uv .mc6-objet-ico{filter:drop-shadow(0 0 10px #c084fc) drop-shadow(0 0 4px #e9d5ff)}
@keyframes mc6-luit{50%{transform:scale(1.15)}}
.mc6-objet-txt{background:rgba(255,255,255,.95);color:#1f2937;font-size:11.5px;font-weight:700;border-radius:6px;padding:3px 6px;box-shadow:0 3px 8px rgba(0,0,0,.4);text-align:center;line-height:1.2}
.mc6-objet-uv .mc6-objet-txt{background:#f5f3ff;color:#5b21b6}
.mc6-objet-pris{opacity:.55}
.mc6-objet-pris .mc6-objet-ico{animation:none}
.mc6-lampe-barre{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-weight:700;font-size:14px;color:#334155}
.mc6-tampons{background:#f8fafc;border-radius:12px;padding:10px 12px;border:1px solid #e2e8f0;animation:pdl-bulle .3s ease}
.mc6-tampons p{margin:0 0 8px}
.mc6-tampons-rang{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.mc6-tampon{font:inherit;font-weight:800;font-size:13px;border:3px solid var(--c);color:var(--c);background:#fff;border-radius:10px;padding:8px 4px;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;gap:2px;transition:transform .12s}
.mc6-tampon:hover{transform:rotate(-3deg) scale(1.05)}
.mc6-tampon span{font-size:22px}
.mc6-tampon-faux{animation:mc6-secoue .45s;background:#fee2e2}
.mc6-sms{display:flex;gap:10px;align-items:flex-start;background:#ecfeff;border:1px solid #a5f3fc;border-radius:14px;padding:10px 12px;animation:pdl-bulle .4s ease;flex-wrap:wrap}
.mc6-sms img{width:44px;height:44px;border-radius:50%;object-fit:cover}
.mc6-sms p{flex:1 1 220px;margin:0;font-size:14.5px;line-height:1.45}

/* --- 2. la descente --- */
.mc6-descente{display:grid;grid-template-columns:110px minmax(0,1fr);gap:14px;align-items:stretch}
.mc6-falaise{position:relative;border-radius:12px;min-height:360px;overflow:hidden;
  background:linear-gradient(180deg,rgba(15,23,42,.1),rgba(15,23,42,.45)),url(img/brouyar/canyon.webp) center/cover}
.mc6-corde{position:absolute;left:50%;top:0;bottom:0;width:4px;margin-left:-2px;background:repeating-linear-gradient(180deg,#f97316 0 8px,#fde68a 8px 12px);box-shadow:0 0 6px rgba(0,0,0,.4)}
.mc6-palier{position:absolute;left:12px;font-size:16px;opacity:.6}
.mc6-palier-fait{opacity:1}
.mc6-grimpeur{position:absolute;left:50%;transform:translate(-50%,-10%);transition:top 1.1s cubic-bezier(.3,.9,.3,1)}
.mc6-grimpeur img{width:46px;height:46px;border-radius:50%;object-fit:cover;object-position:top;border:3px solid #f97316;box-shadow:0 4px 10px rgba(0,0,0,.5)}
.mc6-cascade{display:flex;flex-direction:column;gap:10px;min-width:0}
.mc6-cascade-n{font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#0f766e}
.mc6-cascade-txt{font-size:16.5px;line-height:1.5;margin:0;background:#f0fdfa;border-left:4px solid #14b8a6;border-radius:8px;padding:10px 12px}
.mc6-mousquetons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mc6-mq{font:inherit;border:2px solid #cbd5e1;background:#fff;border-radius:14px;padding:10px 6px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;transition:all .2s}
.mc6-mq b{font-size:13.5px;text-align:center}
.mc6-mq i{font-size:12px;font-style:normal;color:#64748b}
.mc6-mq-anneau{font-size:26px;transition:transform .25s}
.mc6-mq-ferme{border-color:#16a34a;background:#f0fdf4}
.mc6-mq-ferme .mc6-mq-anneau{transform:rotate(-12deg) scale(1.1)}
.mc6-mq-faux{border-color:#dc2626;background:#fef2f2;animation:mc6-secoue .45s}
.mc6-mq-fige{cursor:default}
.mc6-verdict{text-align:center;font-weight:900;font-size:20px;letter-spacing:.06em;border-radius:10px;padding:8px;animation:mc6-tampon-v .45s ease}
@keyframes mc6-tampon-v{from{transform:scale(1.8);opacity:0}to{transform:none;opacity:1}}
.mc6-verdict-oui{background:linear-gradient(90deg,#7c3aed,#0f766e);color:#fff}
.mc6-verdict-non{border:3px solid #94a3b8;color:#475569}

/* --- 3. le surligneur et les ciseaux --- */
.mc6-feutres{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.mc6-feutre{font:inherit;font-weight:700;font-size:14px;border:2px solid #e2e8f0;background:#fff;border-radius:99px;padding:6px 14px 6px 8px;cursor:pointer;display:inline-flex;align-items:center;gap:8px}
.mc6-feutre span{width:30px;height:14px;border-radius:3px 10px 10px 3px;background:var(--c);box-shadow:inset 0 -3px 0 rgba(0,0,0,.15)}
.mc6-feutre-on{border-color:var(--c);box-shadow:0 0 0 3px color-mix(in srgb,var(--c) 30%,transparent);transform:translateY(-2px)}
.mc6-avis{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.mc6-papier{background:#fff;border-radius:6px;padding:12px 14px;box-shadow:0 4px 14px rgba(0,0,0,.14);border:1px solid #e5e7eb}
.mc6-papier-main{background:#fffbeb;font-family:"Caveat","Segoe Print","Bradley Hand",cursive;font-size:19px}
.mc6-papier-main .mc6-papier-t{font-family:Outfit,system-ui,sans-serif}
.mc6-papier-t{display:flex;flex-direction:column;margin-bottom:6px;font-size:13px}
.mc6-papier-t i{color:#64748b;font-size:12px}
.mc6-papier p{margin:0;line-height:1.7}
.mc6-papier-main p{line-height:1.45}
.mc6-papier-doc{margin-bottom:10px}
.mc6-morceau{cursor:pointer;border-radius:3px;padding:1px 0;transition:background .2s;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.mc6-morceau:hover{background:rgba(148,163,184,.18)}
.mc6-marque{background:linear-gradient(transparent 12%,color-mix(in srgb,var(--c) 55%,transparent) 12%,color-mix(in srgb,var(--c) 55%,transparent) 88%,transparent 88%)}
.mc6-marque:hover{background:linear-gradient(transparent 12%,color-mix(in srgb,var(--c) 70%,transparent) 12%,color-mix(in srgb,var(--c) 70%,transparent) 88%,transparent 88%)}
.mc6-ko{text-decoration:underline wavy #dc2626 2px;text-underline-offset:4px}
.mc6-cis-n{font-size:13px;font-weight:800;color:#64748b;margin:6px 0}
.mc6-phrase{display:flex;flex-wrap:wrap;align-items:center;gap:4px 2px;font-size:19px;background:#fff;border:2px dashed #94a3b8;border-radius:10px;padding:14px 12px;margin:10px 0;line-height:1.6}
.mc6-mot{padding:0 2px}
.mc6-coupe{font-size:18px;border:0;background:#fef3c7;color:#92400e;border-radius:6px;padding:0 6px;cursor:pointer;transform:rotate(90deg);transition:transform .2s,background .2s}
.mc6-coupe:hover{background:#fde68a;transform:rotate(90deg) scale(1.25)}
.mc6-coupe-faux{background:#fecaca;animation:mc6-secoue .45s}
.mc6-moities{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.mc6-moitie{background:#fff;border-radius:10px;padding:10px 12px;box-shadow:0 6px 16px rgba(0,0,0,.12);animation:mc6-ecarte .5s ease both}
@keyframes mc6-ecarte{from{opacity:0;transform:translateX(-30px) rotate(-2deg)}to{opacity:1;transform:none}}
.mc6-moitie p{margin:0 0 8px;font-size:16px;font-weight:600}
.mc6-moitie-choix,.mc6-acteurs,.mc6-om,.mc6-preuves{display:flex;flex-wrap:wrap;gap:6px}
.mc6-puce{font:inherit;font-size:14px;font-weight:700;border:2px solid #cbd5e1;background:#fff;border-radius:99px;padding:6px 12px;cursor:pointer;transition:all .15s}
.mc6-puce:hover:not(:disabled){border-color:#0f766e}
.mc6-puce-on{background:#0f766e;border-color:#0f766e;color:#fff}
.mc6-puce-faux{background:#fee2e2;border-color:#dc2626;color:#991b1b;animation:mc6-secoue .45s}

/* --- 4. la radio --- */
.mc6-poste{background:linear-gradient(180deg,#5b3a1e,#3b2412);border-radius:18px;padding:14px;box-shadow:inset 0 2px 0 rgba(255,255,255,.15),0 12px 26px rgba(0,0,0,.35);margin:10px 0}
.mc6-bande{position:relative;height:64px;border-radius:10px;background:linear-gradient(180deg,#fef3c7,#fde68a);box-shadow:inset 0 2px 8px rgba(0,0,0,.35);overflow:hidden}
.mc6-graduations span{position:absolute;bottom:4px;transform:translateX(-50%);font-size:10px;font-weight:700;color:#78350f;font-family:"Courier New",monospace}
.mc6-graduations span::before{content:"";position:absolute;left:50%;bottom:14px;width:1px;height:12px;background:#92400e}
.mc6-station{position:absolute;top:10px;width:10px;height:10px;margin-left:-5px;border-radius:50%;background:#facc15;box-shadow:0 0 0 2px #a16207}
.mc6-station-faite{background:#16a34a;box-shadow:0 0 0 2px #14532d}
.mc6-aiguille{position:absolute;top:0;bottom:0;width:3px;margin-left:-1px;background:#dc2626;box-shadow:0 0 6px rgba(220,38,38,.7);transition:left .08s}
.mc6-poste-bas{display:flex;align-items:center;gap:12px;margin-top:10px;flex-wrap:wrap}
.mc6-freq{font-family:"Courier New",monospace;font-weight:900;font-size:20px;color:#fde68a;background:#1c1917;border-radius:8px;padding:4px 10px;min-width:130px;text-align:center}
.mc6-freq-cale{color:#86efac;text-shadow:0 0 8px rgba(134,239,172,.7)}
.mc6-bouton-radio{flex:1 1 200px;accent-color:#f59e0b;height:30px;cursor:grab}
.mc6-compte{color:#fef3c7;font-weight:800}
.mc6-friture{text-align:center;color:#94a3b8;font-style:italic;letter-spacing:.1em;animation:pdl-clig 1.4s ease-in-out infinite}
.mc6-flash{background:#0f172a;color:#f8fafc;border-radius:14px;padding:12px 14px;animation:pdl-bulle .35s ease}
.mc6-flash-nom{font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#fbbf24}
.mc6-flash>p{font-size:17px;line-height:1.5}
.mc6-flash .pdl-why{color:#1f2937}
.mc6-lettres{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:8px 0}
.mc6-lettre{font:inherit;border:0;border-radius:10px;background:#1e293b;color:#fff;padding:8px 2px;cursor:pointer;display:flex;flex-direction:column;align-items:center;box-shadow:inset 0 -3px 0 rgba(0,0,0,.4);transition:transform .12s}
.mc6-lettre b{font-size:24px;line-height:1}
.mc6-lettre small{font-size:9.5px;opacity:.8;margin-top:2px}
.mc6-lettre:hover:not(:disabled){transform:translateY(-2px);background:#334155}
.mc6-lettre-on{background:#16a34a}
.mc6-deux-fait{background:#fff7ed;border-radius:10px;padding:10px 12px;font-weight:700;margin:10px 0}
.mc6-deux-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.mc6-deux-col{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:8px}
.mc6-deux-col div{display:flex;gap:6px;flex-wrap:wrap}

/* --- 5. les témoins --- */
.mc6-temoins-grille{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px;margin:12px 0}
.mc6-polaroid{position:relative;font:inherit;border:0;background:#fff;padding:8px 8px 10px;cursor:pointer;box-shadow:0 8px 18px rgba(0,0,0,.22);transform:rotate(var(--r,0deg));
  display:flex;flex-direction:column;align-items:center;gap:2px;transition:transform .2s;animation:mc6-tombe .5s ease both}
.mc6-polaroid:hover:not(:disabled){transform:rotate(0) scale(1.05)}
.mc6-polaroid img{width:100%;aspect-ratio:1;object-fit:cover;object-position:top}
.mc6-polaroid b{font-size:14px;margin-top:4px}
.mc6-polaroid i{font-size:12px;font-style:normal;color:#64748b}
.mc6-polaroid-fait{cursor:default}
.mc6-polaroid-fait img{filter:saturate(.6)}
.mc6-polaroid-etat{position:absolute;top:38%;left:4px;right:4px;background:rgba(15,118,110,.92);color:#fff;font-weight:900;font-size:13px;padding:4px;transform:rotate(-8deg);letter-spacing:.06em}
.mc6-polaroid-etat.mc6-polaroid-ferme{background:rgba(185,28,28,.92)}
.mc6-ferme{color:#b91c1c;font-weight:900}
.mc6-questions{display:flex;flex-direction:column;gap:8px;max-width:760px;width:100%}
.mc6-questions-t{margin:0;color:#334155;font-weight:800}
.mc6-question{font:inherit;text-align:left;font-size:15.5px;border:0;border-radius:14px;padding:12px 14px;background:rgba(255,255,255,.96);cursor:pointer;box-shadow:0 6px 16px rgba(0,0,0,.25);transition:transform .15s}
.mc6-question:hover{transform:translateX(4px)}
.mc6-carnet-temoin{position:relative;background:#fffdf5;border-radius:10px;padding:12px 14px;max-width:760px;width:100%;box-shadow:0 10px 26px rgba(0,0,0,.3)}
.mc6-carnet-temoin ul{margin:6px 0;padding-left:20px}
.mc6-ferme-tampon{position:absolute;right:12px;top:-12px;border:3px solid #b91c1c;color:#b91c1c;font-weight:900;padding:2px 10px;border-radius:6px;transform:rotate(8deg);background:#fff;animation:mc6-tampon .4s ease}
.mc6-nadia-resume{background:#ecfeff;border-radius:8px;padding:8px 10px;font-size:14px}
.mc6-acteur{background:rgba(255,255,255,.97);border-radius:16px;padding:14px;max-width:760px;width:100%;display:flex;flex-direction:column;gap:10px;box-shadow:0 12px 30px rgba(0,0,0,.3)}
.mc6-acteur>img{width:84px;height:84px;border-radius:50%;object-fit:cover;object-position:top;align-self:center}
.mc6-acteur>p{margin:0;text-align:center}

/* --- 6. la matrice et les fils --- */
.mc6-pile{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0;padding:10px;background:#c79a63;border-radius:10px;box-shadow:inset 0 0 14px rgba(0,0,0,.3)}
.mc6-carte{font:inherit;font-size:13.5px;text-align:left;border:0;background:#fffef6;border-radius:2px;padding:8px 10px;cursor:pointer;max-width:240px;box-shadow:0 4px 9px rgba(0,0,0,.28);
  transform:rotate(var(--r,0deg));animation:mc6-tombe .45s ease both;transition:transform .15s,box-shadow .15s}
.mc6-carte:hover{transform:rotate(0) translateY(-2px)}
.mc6-carte-sel{outline:3px solid #dc2626;transform:rotate(0) scale(1.06);box-shadow:0 10px 20px rgba(0,0,0,.35)}
.mc6-grille{display:grid;grid-template-columns:minmax(64px,.35fr) 1fr 1fr;gap:6px;margin:8px 0}
.mc6-grille-coin{display:block}
.mc6-grille-col{text-align:center;font-weight:800;font-size:13px;color:#334155;background:#f1f5f9;border-radius:8px;padding:4px}
.mc6-grille-lig{display:flex;align-items:center;font-weight:800;font-size:12px;color:#334155;background:#f1f5f9;border-radius:8px;padding:6px;line-height:1.25}
.mc6-case{border:3px solid var(--c);border-radius:10px;padding:6px;min-height:90px;background:color-mix(in srgb,var(--c) 7%,#fff);display:flex;flex-direction:column;gap:5px;min-width:0}
.mc6-case-cible{cursor:pointer;animation:mc6-cible 1.2s ease-in-out infinite}
@keyframes mc6-cible{50%{box-shadow:0 0 0 4px color-mix(in srgb,var(--c) 35%,transparent)}}
.mc6-case-t{font-size:13px;color:var(--c)}
.mc6-epingle{position:relative;font:inherit;font-size:12.5px;line-height:1.3;text-align:left;background:#fff;border:1px solid #e2e8f0;border-radius:6px;padding:5px 7px;box-shadow:0 2px 5px rgba(0,0,0,.08);animation:mc6-tombe .4s ease both}
.mc6-epingle-rattrape{border-style:dashed}
.mc6-epingle-btn{cursor:pointer}
.mc6-epingle-btn:hover{border-color:#dc2626}
.mc6-epingle-sel{outline:3px solid #dc2626;background:#fef2f2}
.mc6-epingle-relie{border-left:5px solid #dc2626}
.mc6-fils-cadre{position:relative}
.mc6-fils-svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.mc6-fil{fill:none;stroke:#dc2626;stroke-width:3;stroke-linecap:round;filter:drop-shadow(0 2px 2px rgba(0,0,0,.35));stroke-dasharray:1200;stroke-dashoffset:1200;animation:mc6-tend .9s ease forwards}
@keyframes mc6-tend{to{stroke-dashoffset:0}}
.mc6-fil-punaise{fill:#dc2626;stroke:#fff;stroke-width:1.5}
.mc6-details{margin-top:8px;font-size:14px}
.mc6-details summary{cursor:pointer;font-weight:700;color:#0f766e}
.mc6-bravo .pdl-aide{color:#d1fae5}
.mc6-fil-msg{background:#fff;border-radius:10px;padding:8px 12px;font-size:14.5px;margin:6px 0;border:1px solid #e2e8f0}
.mc6-fil-bon{color:#14532d}

/* --- 7. les calques, la preuve, le chrono --- */
.mc6-calque{background:rgba(224,242,254,.75);border:2px solid #0284c7;border-radius:12px;padding:12px 14px;margin-bottom:10px;backdrop-filter:blur(2px);animation:mc6-glisse .6s cubic-bezier(.2,.9,.3,1)}
@keyframes mc6-glisse{from{opacity:0;transform:translateX(60px) rotate(2deg)}to{opacity:1;transform:none}}
.mc6-calque small{display:block;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#0369a1;font-weight:800}
.mc6-calque b{font-size:17px}
.mc6-preuves{margin:6px 0 10px}
.mc6-preuves .mc6-epingle{font-size:13px}
.mc6-preuves .mc6-puce-on{background:#ecfdf5;border-color:#16a34a;color:#14532d}
.mc6-chrono{height:8px;border-radius:99px;background:#e2e8f0;overflow:hidden;margin-bottom:6px}
.mc6-chrono span{display:block;height:100%;background:linear-gradient(90deg,#dc2626,#f59e0b,#16a34a);transition:width 1s linear}

/* --- 8. le cadenas --- */
.mc6-cadenas{position:relative;margin:26px auto 10px;width:min(100%,520px);display:flex;flex-direction:column;align-items:center}
.mc6-anse{width:46%;height:90px;border:16px solid #9ca3af;border-bottom:0;border-radius:120px 120px 0 0;margin-bottom:-6px;
  background:transparent;box-shadow:inset 0 4px 6px rgba(0,0,0,.25);transition:transform .6s cubic-bezier(.3,1.6,.5,1)}
.mc6-cadenas-ouvert .mc6-anse{transform:translateY(-34px) rotate(-14deg) translateX(-18px)}
.mc6-corps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:100%;padding:16px 12px;border-radius:18px;
  background:linear-gradient(160deg,#d4a017,#a16207 55%,#713f12);box-shadow:inset 0 3px 0 rgba(255,255,255,.35),inset 0 -6px 12px rgba(0,0,0,.35),0 16px 34px rgba(0,0,0,.4)}
.mc6-roue{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;border-radius:12px;padding:4px 2px;transition:box-shadow .3s}
.mc6-roue-bonne{box-shadow:0 0 0 3px #22c55e}
.mc6-roue-btn{border:0;background:rgba(0,0,0,.25);color:#fef3c7;border-radius:8px;width:100%;padding:6px 0;cursor:pointer;font-size:14px}
.mc6-roue-btn:hover{background:rgba(0,0,0,.4)}
.mc6-roue-fen{width:100%;height:64px;border-radius:10px;background:linear-gradient(180deg,#1c1917,#44403c 20%,#57534e 50%,#44403c 80%,#1c1917);display:grid;place-items:center;overflow:hidden;box-shadow:inset 0 3px 8px rgba(0,0,0,.6)}
.mc6-roue-sym{font-size:34px;animation:mc6-roule .28s ease}
@keyframes mc6-roule{from{transform:translateY(-70%) rotateX(70deg);opacity:0}to{transform:none;opacity:1}}
.mc6-roue-txt{font-size:10.5px;color:#fff8e7;text-align:center;line-height:1.15;min-height:24px;text-shadow:0 1px 2px rgba(0,0,0,.5)}
.mc6-enigmes{margin:8px 0;padding-left:22px;font-size:15px;line-height:1.5}
.mc6-enigmes em{color:#0f766e;font-style:normal;font-weight:700}
.mc6-essais{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0;font-size:14px}
.mc6-essais span{background:#f1f5f9;border-radius:8px;padding:3px 8px;font-weight:700}

/* --- documents et fin --- */
.mc6-table{width:100%;border-collapse:collapse;font-size:13.5px;margin:8px 0}
.mc6-table th,.mc6-table td{border:1px solid #e2e8f0;padding:5px 7px;text-align:left;vertical-align:top}
.mc6-table th{background:#f0fdf4}
.mc6-doc-cases{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}
.mc6-doc-cases>div{border:2px solid var(--c);border-radius:8px;padding:6px 8px}
.mc6-doc-cases ul{margin:4px 0 0;padding-left:18px;font-size:13.5px}
.mc6-pv{display:flex;gap:10px;align-items:flex-start;border-bottom:1px dashed #cbd5e1;padding:8px 0}
.mc6-pv img{width:52px;height:52px;border-radius:50%;object-fit:cover;object-position:top;flex:0 0 auto}
.mc6-pv ul{margin:4px 0 0;padding-left:18px;font-size:13.5px}
.mc6-ordre{position:relative}
.mc6-fin-titre{display:inline-block;font-weight:900;font-size:15px;letter-spacing:.06em;padding:6px 14px;border-radius:99px;background:#e0f2fe;color:#075985;margin-bottom:6px}
.mc6-fin-leve{background:linear-gradient(90deg,#fde68a,#bbf7d0);color:#14532d}
.mc6-souvenirs{background:#f8fafc;border-radius:12px;padding:8px 12px;margin:10px 0;text-align:left}
.mc6-souvenirs p{margin:4px 0;font-size:14.5px}

/* --- téléphone --- */
@media(max-width:820px){
  .mc6-tableau{grid-template-columns:1fr}
  .mc6-pistes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .mc6-pistes-t{grid-column:1/-1}
}
@media(max-width:640px){
  .mc6-moities-liege{grid-template-columns:1fr}
  .mc6-liege{padding:10px;border-width:8px}
  .mc6-pin{max-width:130px;font-size:11px}
  .mc6-descente{grid-template-columns:1fr}
  .mc6-falaise{min-height:120px;order:2}
  .mc6-mousquetons{grid-template-columns:1fr}
  .mc6-mq{flex-direction:row;justify-content:space-between;padding:8px 12px}
  .mc6-tampons-rang{grid-template-columns:1fr 1fr}
  .mc6-lettres{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mc6-deux-cols{grid-template-columns:1fr}
  .mc6-grille{grid-template-columns:1fr 1fr}
  .mc6-grille-coin,.mc6-grille-lig{display:none}
  .mc6-doc-cases{grid-template-columns:1fr}
  .mc6-objet-txt{font-size:10px;max-width:110px}
  .mc6-objet-ico{font-size:22px}
  .mc6-corps{gap:4px;padding:12px 6px}
  .mc6-roue-sym{font-size:28px}
  .mc6-phrase{font-size:17px}
  .mc6-fiche{padding:16px 14px 14px 26px}
  .mc6-fiche::before{left:12px}
}
@media(prefers-reduced-motion:reduce){
  .mc6-brume i,.mc6-objet-ico,.mc6-bristol-ouverte,.mc6-case-cible{animation:none}
  .mc6-fiche li{opacity:1;animation:none}
  .mc6-fil{stroke-dashoffset:0;animation:none}
}
/* ==== mc6 : fin des styles ==== */
/* ==== mt4 : debut des styles ====
   « Konbien i koûte ? » — préfixe mt4-. Hérite des styles pdl- de Péi
   Délices (le conteneur porte les deux classes : .pdl.mt4). Couleurs : le
   brun cacao, l'or du papier d'emballage, le rouge piment. */
.mt4 .pdl-cta{background:linear-gradient(135deg,#b45309,#6b2d0e);box-shadow:0 6px 18px rgba(107,45,14,.35)}
.mt4 .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(107,45,14,.45)}
.mt4 .pdl-cta.alt{background:#fff;color:#3b1d0b}
.mt4-clair{color:#475569 !important;text-align:center}
.pdl-doc-bandeau.mt4-bandeau{background:linear-gradient(90deg,#3b1d0b,#b45309 60%,#d4a017)}
.mt4-badge .pdl-badge-logo{color:#6b2d0e}
.mt4-tampon{position:relative;right:auto;bottom:auto;display:inline-block;margin:8px 0 0 auto}
.mt4-prog{font-size:13px;font-weight:700;color:#64748b;margin-bottom:8px}
.mt4-alerte{color:#b91c1c !important;font-weight:600}
.mt4 .mt4-rouge{color:#b91c1c}
.mt4 .mt4-vert{color:#15803d}
@keyframes mt4-pop{from{transform:scale(.85);opacity:0}to{transform:none;opacity:1}}
@keyframes mt4-tombe{from{transform:translateY(-40px) rotateX(35deg);opacity:0}to{transform:none;opacity:1}}

/* --- la leçon et l'encart « 💡 Aide » --- */
.mt4-lecon-boite{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;max-width:820px}
.mt4-lecon-boite .pdl-lecon{width:100%}
.mt4-aide{width:100%;background:#fffbeb;border:2px dashed #f59e0b;border-radius:14px;overflow:hidden}
.mt4-aide-t{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;font:inherit;font-weight:800;color:#92400e;background:none;border:0;padding:10px 14px;cursor:pointer}
.mt4-aide-t span{font-weight:600;font-size:13px;color:#a16207}
.mt4-aide-corps{padding:0 14px 12px;color:#422006}
.mt4-aide-corps p{margin:6px 0}
.mt4-aide-o{display:flex;flex-wrap:wrap;gap:8px}
.mt4-aide-opt{font:inherit;font-size:14px;padding:8px 12px;border-radius:10px;border:2px solid #fcd34d;background:#fff;cursor:pointer;text-align:left}
.mt4-aide-opt.bon{border-color:#16a34a;background:#dcfce7}
.mt4-aide-opt.faux{border-color:#dc2626;background:#fee2e2}
.mt4-aide-corr{font-weight:600}
.mt4-aide-re{font:inherit;font-size:13px;background:none;border:0;color:#92400e;text-decoration:underline;cursor:pointer;padding:0}

/* --- le calcul --- */
.mt4-calcul .pdl-qcm-q{font-weight:600}
.mt4-rappel{background:#fef3c7;border:1px solid #fcd34d;border-left:5px solid #f59e0b;border-radius:10px;padding:10px 14px;margin:6px 0 10px;font-size:15px;line-height:1.5;color:#422006}
.mt4-rappel b:first-child{color:#92400e}
.mt4-formule{margin:6px 0 10px}
.mt4-formule-btn{font:inherit;font-size:14px;font-weight:700;color:#92400e;background:#fef3c7;border:1px solid #fcd34d;border-radius:99px;padding:6px 14px;cursor:pointer}
.mt4-formule p{margin:0;padding:8px 12px;background:#fef3c7;border-radius:10px;color:#422006;animation:mt4-pop .3s}
.mt4-saisie{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.mt4-saisie input{font:inherit;font-size:20px;font-weight:700;width:180px;max-width:60vw;padding:10px 12px;border-radius:12px;border:2px solid #d6d3d1;text-align:right}
.mt4-saisie input:focus{outline:none;border-color:#b45309;box-shadow:0 0 0 3px rgba(180,83,9,.2)}
.mt4-saisie span{font-weight:800;color:#57534e}

/* --- les tableaux --- */
.mt4-table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:6px 0 10px}
.mt4-table{width:100%;border-collapse:collapse;font-size:14px;background:#fff}
.mt4-table th{background:#3b1d0b;color:#fde68a;font-weight:700;padding:7px 8px;text-align:left;font-size:12.5px}
.mt4-table td{padding:7px 8px;border-bottom:1px solid #e7e5e4;white-space:nowrap}
.mt4-table td:first-child{white-space:normal;min-width:110px}
.mt4-table tr.total td{font-weight:800;background:#fef3c7}
.mt4-table td.mt4-rouge{color:#b91c1c;font-weight:800}
.mt4-table td.mt4-vert{color:#15803d;font-weight:800}
.mt4-fiche h3{font-family:Fraunces,Georgia,serif;margin:10px 0 6px}
.mt4-deux{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mt4-deux ul{margin:4px 0;padding-left:18px}
.mt4-vie-liste{padding-left:20px}
.mt4-vie-liste li{margin:4px 0}

/* --- le curseur --- */
.mt4-curseur{display:flex;flex-direction:column;gap:6px;width:100%;margin:10px 0}
.mt4-curseur span{font-size:15px}
.mt4-curseur em{font-style:normal;font-weight:700;margin-left:6px}
.mt4-curseur input[type=range]{width:100%;accent-color:#b45309;height:28px}

/* --- 1. la caisse --- */
.mt4-caisse-scene{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:center;margin:8px 0}
.mt4-tiroir{min-width:200px;padding:14px 16px;border-radius:16px;background:linear-gradient(180deg,#44403c,#1c1917);color:#e7e5e4;text-align:center;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.15),0 10px 22px rgba(0,0,0,.3);display:flex;flex-direction:column;gap:4px;transition:box-shadow .3s}
.mt4-tiroir small{font-size:12px;opacity:.8}
.mt4-tiroir-n{font-family:"Courier New",monospace;font-size:28px;color:#fde68a;animation:mt4-pop .35s}
.mt4-tiroir-rouge .mt4-tiroir-n{color:#fca5a5}
.mt4-tiroir-rouge{box-shadow:0 0 0 3px #dc2626,0 10px 22px rgba(220,38,38,.35)}
.mt4-tiroir-vert .mt4-tiroir-n{color:#86efac}
.mt4-tiroir-vert{box-shadow:0 0 0 3px #16a34a,0 10px 22px rgba(22,163,74,.35)}
.mt4-ballotins{display:flex;flex-wrap:wrap;gap:6px;font-size:32px}
.mt4-ballotin{transition:transform .6s,opacity .6s;filter:drop-shadow(0 4px 4px rgba(0,0,0,.25))}
.mt4-ballotin.parti{transform:translate(-60px,20px) scale(.4);opacity:.15}
.mt4-caisse-cmd{display:flex;gap:10px;flex-wrap:wrap}

/* --- 2. la disparition --- */
.mt4-disp-scene{display:grid;grid-template-columns:1fr 1.3fr;gap:16px;align-items:center;margin:6px 0 10px;perspective:700px}
.mt4-socle{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px;border-radius:16px;background:radial-gradient(circle at 50% 80%,#fef3c7,#fff 70%)}
.mt4-socle small{font-weight:700;color:#78350f}
.mt4-tablette3d{display:grid;grid-template-columns:repeat(4,34px);gap:4px;padding:6px;border-radius:8px;background:#3b1d0b;transform:rotateX(35deg) rotateZ(-8deg);
  box-shadow:0 18px 20px rgba(59,29,11,.35);transition:transform .9s cubic-bezier(.5,-.4,.6,1.4),opacity .9s,filter .9s}
.mt4-tablette3d i{display:block;height:30px;border-radius:4px;background:linear-gradient(145deg,#7c3f17,#4a230c);box-shadow:inset 2px 2px 2px rgba(255,255,255,.18),inset -2px -2px 3px rgba(0,0,0,.4)}
.mt4-tablette3d.pouf{transform:rotateX(35deg) rotateZ(25deg) scale(.2) translateY(-60px);opacity:0;filter:blur(6px)}
.mt4-charge-carte{padding:14px 16px;border-radius:14px;background:#fff;border:2px solid #e7e5e4;box-shadow:0 8px 18px rgba(0,0,0,.12);animation:mt4-tombe .45s both;display:flex;flex-direction:column;gap:4px;
  transition:opacity .9s .2s,transform .9s .2s,filter .9s .2s}
.mt4-charge-carte small{font-size:12px;color:#78716c;font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.mt4-charge-carte b{font-size:17px;color:#1c1917}
.mt4-charge-carte.part{opacity:0;transform:translateX(40px) scale(.6);filter:blur(4px)}
.mt4-charge-carte.reste{border-color:#475569;box-shadow:0 0 0 4px rgba(71,85,105,.25),0 8px 18px rgba(0,0,0,.12)}
.mt4-disp-rappel{margin:0 0 8px;text-align:center;color:#44403c}
.mt4-duo{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* --- 3. les cuves --- */
.mt4-goutte-carte{margin:0 auto 10px;max-width:560px;padding:12px 16px;border-radius:14px;background:#fff;border:2px solid #bae6fd;font-weight:700;text-align:center;animation:mt4-tombe .45s both;box-shadow:0 8px 18px rgba(0,0,0,.1)}
.mt4-cuves-rang{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:8px 0}
.mt4-cuve-col{display:flex;flex-direction:column;gap:8px;min-width:0}
.mt4-cuve{position:relative;height:150px;border-radius:14px 14px 40px 40px;border:3px solid var(--c);background:linear-gradient(90deg,#f5f5f4,#fff 40%,#e7e5e4);overflow:hidden;cursor:pointer;font:inherit;
  box-shadow:inset 0 -10px 18px rgba(0,0,0,.08),0 8px 16px rgba(0,0,0,.12);transition:transform .2s}
.mt4-cuve:hover:not(:disabled){transform:translateY(-3px)}
.mt4-cuve:disabled{cursor:default}
.mt4-cuve-liquide{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(180deg,color-mix(in srgb,var(--c) 70%,#fff),var(--c));transition:height .8s cubic-bezier(.3,1.4,.5,1);opacity:.85}
.mt4-cuve-liquide::before{content:"";position:absolute;left:-10%;right:-10%;top:-6px;height:12px;border-radius:50%;background:inherit;animation:mt4-vague 2.4s ease-in-out infinite alternate}
@keyframes mt4-vague{to{transform:translateX(6%)}}
.mt4-cuve-t{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:12px;font-size:26px}
.mt4-cuve-t b{font-size:13px;color:#1c1917;background:rgba(255,255,255,.85);padding:2px 8px;border-radius:99px}
.mt4-cuve-total{position:absolute;z-index:1;left:0;right:0;bottom:10px;font-weight:800;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.6);font-size:14px}
.mt4-cuve.ok{box-shadow:0 0 0 4px rgba(22,163,74,.4)}
.mt4-cuve.ko{box-shadow:0 0 0 4px rgba(220,38,38,.45)}
.mt4-cuve.juste{animation:mt4-clign .5s 3}
@keyframes mt4-clign{50%{box-shadow:0 0 0 6px rgba(22,163,74,.6)}}
.mt4-uo{display:flex;flex-direction:column;gap:5px;padding:8px;border-radius:12px;background:#fafaf9;border:2px solid #e7e5e4}
.mt4-uo small{font-weight:700;color:#57534e}
.mt4-uo.ko{border-color:#dc2626;background:#fef2f2}
.mt4-uo.ok{border-color:#16a34a;background:#f0fdf4}
.mt4-uo-b{font:inherit;font-size:13px;padding:6px 8px;border-radius:9px;border:1px solid #d6d3d1;background:#fff;cursor:pointer;text-align:left}
.mt4-uo-b.on{border-color:#b45309;background:#fef3c7;font-weight:700}

/* --- 4. la tour et l'étiquette --- */
.mt4-tour-scene{display:grid;grid-template-columns:1.2fr 1fr;gap:16px;align-items:end}
.mt4-tour-blocs{display:flex;flex-direction:column;gap:8px}
.mt4-bloc-b{display:flex;justify-content:space-between;gap:10px;font:inherit;font-size:14px;padding:10px 12px;border-radius:10px;border:2px solid #d6d3d1;background:#fff;cursor:pointer;text-align:left;transition:transform .2s,opacity .3s}
.mt4-bloc-b:hover:not(:disabled){transform:translateX(4px);border-color:#b45309}
.mt4-bloc-b.pose{opacity:.35;text-decoration:line-through}
.mt4-bloc-b.rejet{border-color:#dc2626;background:#fee2e2;animation:mt4-secoue .45s}
@keyframes mt4-secoue{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.mt4-tour-pile{display:flex;flex-direction:column;align-items:stretch;min-height:260px;justify-content:flex-end}
.mt4-tour-total{text-align:center;font-weight:800;padding:6px;border-radius:10px;background:#f5f5f4;margin-bottom:6px}
.mt4-tour-total.fini{background:#fef3c7;color:#78350f;animation:mt4-pop .4s}
.mt4-tour-colonne{display:flex;flex-direction:column;gap:3px}
.mt4-etage{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:4px 10px;border-radius:6px;color:#fef3c7;font-size:12.5px;
  background:linear-gradient(145deg,#7c3f17,#4a230c);box-shadow:inset 2px 2px 3px rgba(255,255,255,.18),inset -2px -3px 4px rgba(0,0,0,.4);animation:mt4-tombe .5s cubic-bezier(.3,1.5,.5,1) both}
.mt4-etage-direct{background:linear-gradient(145deg,#5b2a0e,#2f1606)}
.mt4-tour-sol{height:10px;border-radius:0 0 8px 8px;background:#a8a29e}
.mt4-etiq-scene{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;margin-bottom:10px;perspective:800px}
.mt4-etiq{position:relative;width:230px;height:120px;border:0;background:none;padding:0;cursor:pointer;transform-style:preserve-3d;transition:transform .8s cubic-bezier(.3,1.3,.5,1);font:inherit}
.mt4-etiq.dos{transform:rotateY(180deg)}
.mt4-etiq-face,.mt4-etiq-dos{position:absolute;inset:0;backface-visibility:hidden;border-radius:12px 40px 40px 12px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;
  background:linear-gradient(135deg,#fde68a,#d4a017);border:2px solid #92400e;box-shadow:0 10px 20px rgba(0,0,0,.2)}
.mt4-etiq-face b,.mt4-etiq-dos b{font-size:30px;color:#3b1d0b}
.mt4-etiq-face small,.mt4-etiq-dos small,.mt4-etiq-face em,.mt4-etiq-dos em{font-size:12px;font-style:normal;color:#422006}
.mt4-etiq-dos{transform:rotateY(180deg);background:linear-gradient(135deg,#fff7ed,#fed7aa)}
.mt4-tva-vole{position:absolute;top:10px;right:6%;font-weight:800;color:#1d4ed8;background:#dbeafe;padding:4px 10px;border-radius:99px;animation:mt4-envol 1.6s ease-out both}
@keyframes mt4-envol{from{transform:translate(-80px,40px) scale(.6);opacity:0}to{transform:none;opacity:1}}

/* --- 5. atelier fermé --- */
.mt4-levier-rang{display:flex;align-items:center;gap:16px;margin-bottom:10px}
.mt4-levier{position:relative;flex:0 0 auto;width:110px;height:120px;border-radius:14px;border:2px solid #57534e;background:linear-gradient(180deg,#e7e5e4,#a8a29e);cursor:pointer;font:inherit;display:flex;align-items:flex-end;justify-content:center;padding-bottom:6px}
.mt4-levier i{position:absolute;left:50%;width:10px;height:62px;margin-left:-5px;top:12px;border-radius:5px;background:#44403c;transform-origin:50% 100%;transition:transform .5s cubic-bezier(.4,1.6,.5,1)}
.mt4-levier i::before{content:"";position:absolute;top:-12px;left:-9px;width:28px;height:28px;border-radius:50%;background:radial-gradient(circle at 35% 35%,#f87171,#991b1b)}
.mt4-levier.bas i{transform:rotate(150deg)}
.mt4-levier span{position:relative;z-index:1;font-size:11px;font-weight:800;color:#1c1917;line-height:1.1;background:rgba(255,255,255,.88);border-radius:6px;padding:2px 4px}
.mt4-lundi .mt4-levier-rang .pdl-consigne{margin:0}
.mt4-tuiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;transition:filter .6s}
.mt4-lundi.ferme .mt4-tuiles{filter:saturate(.9)}
.mt4-tuile{font:inherit;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;padding:10px 8px;border-radius:12px;border:2px solid #e7e5e4;background:#fff;cursor:pointer;transition:all .3s;min-width:0}
.mt4-tuile:disabled{cursor:default}
.mt4-tuile-ico{font-size:26px}
.mt4-tuile b{font-size:13px;line-height:1.2}
.mt4-tuile em{font-style:normal;font-weight:800;color:#78350f;font-family:"Courier New",monospace}
.mt4-tuile small{font-size:11.5px;line-height:1.25;color:#44403c}
.mt4-tuile.on{border-color:#b45309;background:#fef3c7;transform:translateY(-3px);box-shadow:0 8px 14px rgba(180,83,9,.2)}
.mt4-tuile.juste{border-color:#16a34a}
.mt4-tuile.faux{border-color:#dc2626;background:#fef2f2}
.mt4-tuile.eteinte{opacity:.6}
.mt4-tuile.eteinte em{color:#a8a29e;text-decoration:line-through}
.mt4-effet{margin-bottom:12px}
.mt4-courbe{width:100%;max-width:420px;height:auto;display:block;margin:0 auto;background:#fafaf9;border-radius:12px}
.mt4-courbe polyline{fill:none;stroke:#b45309;stroke-width:3}
.mt4-courbe circle{fill:#3b1d0b;stroke:#fde68a;stroke-width:3;transition:cx .3s,cy .3s}
.mt4-piles{display:flex;flex-wrap:wrap;gap:2px;font-size:18px;min-height:24px}

/* --- 6. la ligne d'eau et le calendrier --- */
.mt4-eau-scene{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:center}
.mt4-eau-cuve{position:relative;width:150px;height:240px;border:4px solid #57534e;border-top:0;border-radius:0 0 22px 22px;background:linear-gradient(90deg,#f5f5f4,#fff 45%,#e7e5e4);overflow:hidden}
.mt4-eau-liquide{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(180deg,#a16207,#713f12);transition:height .7s cubic-bezier(.3,1.3,.5,1)}
.mt4-eau-vert{background:linear-gradient(180deg,#22c55e,#15803d)}
.mt4-eau-liquide::before{content:"";position:absolute;left:-10%;right:-10%;top:-5px;height:10px;border-radius:50%;background:inherit;animation:mt4-vague 2s ease-in-out infinite alternate}
.mt4-eau-ligne{position:absolute;left:0;right:0;border-top:3px dashed #dc2626;z-index:1}
.mt4-eau-ligne em{position:absolute;right:4px;top:-20px;font-size:10.5px;font-style:normal;font-weight:800;color:#b91c1c;background:rgba(255,255,255,.85);padding:0 4px;border-radius:4px}
.mt4-eau-chiffres{display:flex;flex-direction:column;gap:8px}
.mt4-eau-chiffres div{padding:8px 12px;border-radius:10px;background:#fafaf9;display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.mt4-eau-chiffres small{color:#57534e}
.mt4-eau-chiffres b{font-family:"Courier New",monospace;font-size:18px}
.mt4-eau-chiffres .mt4-rouge b{color:#b91c1c}
.mt4-eau-chiffres .mt4-vert b{color:#15803d}
.mt4-cal-grille{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.mt4-mois{position:relative;overflow:hidden;font:inherit;padding:14px 4px;border-radius:10px;border:2px solid #e7e5e4;background:#fff;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px}
.mt4-mois b{position:relative;z-index:1;font-size:14px}
.mt4-mois em{position:relative;z-index:1;font-size:11px;font-style:normal;font-weight:800;color:#7c2d12}
.mt4-mois-fond{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,#fdba74,#fb923c);transition:width .5s}
.mt4-mois.bon{border-color:#16a34a}
.mt4-mois.faux{border-color:#dc2626;animation:mt4-secoue .45s}
.mt4-mois.benef{background:#dcfce7;border-color:#86efac}

/* --- 7. la vitrine --- */
.mt4-onglets{display:flex;gap:6px;flex-wrap:wrap}
.mt4-onglets button{font:inherit;font-size:13px;font-weight:700;padding:7px 12px;border-radius:10px 10px 0 0;border:2px solid #e7e5e4;border-bottom:0;background:#f5f5f4;cursor:pointer}
.mt4-onglets button.on{background:#3b1d0b;color:#fde68a;border-color:#3b1d0b}
.mt4-vitrines{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:8px 0}
.mt4-vit{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}
.mt4-vit-verre{width:100%;padding:14px 8px;border-radius:14px;text-align:center;background:#1c1917;color:#a8a29e;display:flex;flex-direction:column;gap:6px;transition:all .5s;
  box-shadow:inset 0 0 0 3px #44403c}
.mt4-vit-verre span{font-size:24px;letter-spacing:4px;filter:grayscale(1) brightness(.5);transition:filter .5s}
.mt4-vit-verre b{font-size:13px}
.mt4-vit.on .mt4-vit-verre{background:radial-gradient(circle at 50% 0%,#fef9c3,#fde68a 60%,#f59e0b);color:#3b1d0b;box-shadow:inset 0 0 0 3px #d4a017,0 0 26px rgba(250,204,21,.55)}
.mt4-vit.on .mt4-vit-verre span{filter:none}
.mt4-inter{display:flex;align-items:center;gap:8px;font:inherit;font-size:13px;font-weight:700;padding:6px 12px 6px 6px;border-radius:99px;border:2px solid #a8a29e;background:#f5f5f4;cursor:pointer}
.mt4-inter i{position:relative;width:38px;height:22px;border-radius:99px;background:#a8a29e;transition:background .3s}
.mt4-inter i::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;transition:left .3s}
.mt4-inter.on i{background:#16a34a}
.mt4-inter.on i::after{left:19px}
.mt4-resultat{margin:6px auto;max-width:360px;padding:10px 16px;border-radius:14px;background:#1c1917;text-align:center;display:flex;flex-direction:column}
.mt4-resultat small{color:#d6d3d1;font-size:12px}
.mt4-resultat b{font-family:"Courier New",monospace;font-size:28px;animation:mt4-pop .35s}
.mt4-resultat-rouge b{color:#fca5a5}
.mt4-resultat-vert b{color:#86efac}

/* --- 8. le tapis, le paradoxe, l'aiguillage --- */
.mt4-tapis-bande{position:relative;padding:14px 10px 22px;border-radius:12px;background:#57534e;overflow:hidden;margin-bottom:12px}
.mt4-tapis-bande::after{content:"";position:absolute;left:0;right:0;bottom:6px;height:8px;background:repeating-linear-gradient(90deg,#292524 0 14px,#78716c 14px 28px);background-size:28px 8px;animation:mt4-tapis 1s linear infinite}
@keyframes mt4-tapis{to{background-position:28px 0}}
.mt4-tapis-carte{position:relative;z-index:1;margin:0 auto;max-width:520px;padding:12px 14px;border-radius:12px;background:#fff7ed;border:2px solid #fdba74;font-weight:700;text-align:center;animation:mt4-glisse .7s cubic-bezier(.2,.9,.3,1) both}
@keyframes mt4-glisse{from{transform:translateX(-120%)}to{transform:none}}
.mt4-stations{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.mt4-station{position:relative;font:inherit;display:flex;flex-direction:column;align-items:center;gap:3px;padding:12px 4px 8px;border-radius:12px;border:2px solid #e7e5e4;background:#fff;cursor:pointer;min-width:0}
.mt4-station:hover:not(:disabled){border-color:#b45309;transform:translateY(-2px)}
.mt4-station-n{position:absolute;top:-10px;left:50%;translate:-50% 0;width:22px;height:22px;border-radius:50%;background:#3b1d0b;color:#fde68a;font-size:12px;font-weight:800;display:grid;place-items:center}
.mt4-station-ico{font-size:24px}
.mt4-station b{font-size:12.5px;line-height:1.15;overflow-wrap:anywhere}
.mt4-station i{font-style:normal;color:#b45309;font-size:10px;letter-spacing:1px;min-height:12px}
.mt4-station.ok{border-color:#16a34a;background:#f0fdf4}
.mt4-station.ko{border-color:#dc2626;background:#fef2f2}
.mt4-station.juste{animation:mt4-clign .5s 3}
.mt4-barres-vie{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;align-items:end}
.mt4-bv{font:inherit;display:flex;flex-direction:column;align-items:stretch;gap:6px;background:#fff;border:2px solid #e7e5e4;border-radius:12px;padding:8px 6px;cursor:pointer;min-width:0}
.mt4-bv b{font-size:12px;line-height:1.15;overflow-wrap:anywhere}
.mt4-bv .mt4-court{display:none}
.mt4-bv.bon{border-color:#16a34a;background:#f0fdf4}
.mt4-bv.faux{border-color:#dc2626;animation:mt4-secoue .45s}
.mt4-bv-zone{position:relative;height:150px;display:flex;align-items:flex-end;justify-content:center;gap:6px}
.mt4-bv-dep,.mt4-bv-eng{position:relative;width:38%;border-radius:6px 6px 0 0;transition:height 1.2s cubic-bezier(.3,1.2,.5,1)}
.mt4-bv-dep{background:linear-gradient(180deg,#a16207,#713f12)}
.mt4-bv-eng{background:linear-gradient(180deg,#a78bfa,#6d28d9)}
.mt4-bv-dep em,.mt4-bv-eng em{position:absolute;top:-17px;left:50%;translate:-50% 0;font-size:10.5px;font-style:normal;font-weight:800;white-space:nowrap}
.mt4-legende{display:flex;gap:16px;justify-content:center;font-size:13px;margin:6px 0}
.mt4-legende span::before{content:"";display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.mt4-legende .dep::before{background:#a16207}
.mt4-legende .eng::before{background:#6d28d9}
.mt4-wagon{display:flex;align-items:center;gap:10px;margin:0 auto 12px;max-width:600px;padding:12px 14px;border-radius:14px;background:#fff;border:2px solid #d6d3d1;box-shadow:0 8px 16px rgba(0,0,0,.1);animation:mt4-tombe .45s both;transition:transform .8s cubic-bezier(.5,-.3,.6,1),opacity .8s}
.mt4-wagon span{font-size:30px}
.mt4-wagon b{font-size:15.5px}
.mt4-wagon.parti-complets{transform:translate(-30%,30px) scale(.8);opacity:.5}
.mt4-wagon.parti-specifiques{transform:translateY(34px) scale(.8);opacity:.5}
.mt4-wagon.parti-seuil{transform:translate(30%,30px) scale(.8);opacity:.5}
.mt4-rails{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mt4-rail{position:relative;font:inherit;display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px 6px 22px;border-radius:12px;border:3px solid var(--c);background:#fff;cursor:pointer;min-width:0}
.mt4-rail::after{content:"";position:absolute;left:12%;right:12%;bottom:7px;height:7px;background:repeating-linear-gradient(90deg,var(--c) 0 4px,transparent 4px 12px);border-top:2px solid var(--c);border-bottom:2px solid var(--c)}
.mt4-rail span{font-size:24px}
.mt4-rail b{font-size:13.5px}
.mt4-rail.ok{background:#f0fdf4;box-shadow:0 0 0 4px rgba(22,163,74,.35)}
.mt4-rail.ko{background:#fef2f2;box-shadow:0 0 0 4px rgba(220,38,38,.35)}
.mt4-rail.juste{animation:mt4-clign .5s 3}

/* --- le hub : la tablette --- */
.mt4-hub{width:100%;color:#fff;text-align:center}
.mt4-hub-tete h2{font-family:Fraunces,Georgia,serif;font-size:clamp(24px,3.6vw,34px);margin:0;text-shadow:0 4px 20px rgba(0,0,0,.5)}
.mt4-hub-tete p{margin:4px 0 14px;opacity:.9}
.mt4-tablette{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:12px;border-radius:16px;background:linear-gradient(145deg,#4a230c,#2a1205);
  box-shadow:0 22px 40px rgba(0,0,0,.5),inset 0 2px 0 rgba(255,255,255,.12);transform:perspective(1100px) rotateX(10deg);transform-origin:50% 100%}
.mt4-carre{position:relative;overflow:hidden;font:inherit;color:#fef3c7;min-height:150px;border-radius:10px;border:0;padding:14px 8px 10px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;
  background:linear-gradient(145deg,#8a4a1f,#5b2a0e);box-shadow:inset 4px 4px 6px rgba(255,255,255,.2),inset -5px -6px 8px rgba(0,0,0,.45),0 3px 0 #2a1205;
  transition:transform .2s,filter .2s;animation:mt4-pop .45s both}
.mt4-carre:hover:not(:disabled){transform:translateY(-4px) scale(1.02)}
.mt4-carre.prochain{box-shadow:inset 4px 4px 6px rgba(255,255,255,.2),inset -5px -6px 8px rgba(0,0,0,.45),0 0 0 3px #fbbf24,0 0 24px rgba(251,191,36,.55);animation:mt4-pop .45s both,mt4-luit 1.6s 0.5s ease-in-out infinite alternate}
@keyframes mt4-luit{to{filter:brightness(1.18)}}
.mt4-carre.fait{background:linear-gradient(145deg,#6b3412,#3b1d0b)}
.mt4-carre.fait::after{content:"";position:absolute;right:-14px;top:-14px;width:44px;height:44px;border-radius:50%;background:#2a1205;box-shadow:-14px 10px 0 -6px #2a1205}
.mt4-carre.ferme{cursor:not-allowed}
.mt4-alu{position:absolute;inset:0;z-index:2;border-radius:10px;background:linear-gradient(135deg,#fef3c7 0%,#d4a017 25%,#fde68a 45%,#a16207 70%,#fde68a 100%);opacity:.92;
  background-size:200% 200%;animation:mt4-brille 4s ease-in-out infinite alternate}
@keyframes mt4-brille{to{background-position:100% 100%}}
.mt4-carre-n{position:relative;z-index:3;font-family:Fraunces,Georgia,serif;font-weight:800;font-size:13px;opacity:.75}
.mt4-carre-ico{position:relative;z-index:3;font-size:28px}
.mt4-carre b{position:relative;z-index:3;font-size:13.5px;line-height:1.2}
.mt4-carre i{position:relative;z-index:3;font-size:11px;font-style:normal;opacity:.85;line-height:1.25}
.mt4-carre.ferme b,.mt4-carre.ferme i,.mt4-carre.ferme .mt4-carre-n{color:#422006}
.mt4-hub-fin{font-size:18px;font-weight:700;margin-top:16px;text-shadow:0 2px 10px rgba(0,0,0,.6)}
.mt4-tm-carre{width:72px;height:72px;margin:0 auto 10px;border-radius:12px;display:grid;place-items:center;font-size:36px;background:linear-gradient(145deg,#8a4a1f,#5b2a0e);
  box-shadow:inset 4px 4px 6px rgba(255,255,255,.2),inset -5px -6px 8px rgba(0,0,0,.45),0 10px 20px rgba(0,0,0,.4);animation:mt4-pop .5s}
.mt4-formules{margin-top:10px}

@media (max-width:640px){
  .mt4-tablette{grid-template-columns:repeat(2,minmax(0,1fr));transform:none}
  .mt4-carre{min-height:128px}
  .mt4-caisse-scene,.mt4-disp-scene,.mt4-tour-scene,.mt4-eau-scene,.mt4-deux{grid-template-columns:1fr}
  .mt4-disp-rappel{margin:0 0 8px;text-align:center;color:#44403c}
.mt4-duo{grid-template-columns:1fr}
  .mt4-tiroir{min-width:0}
  .mt4-cuves-rang{grid-template-columns:1fr}
  .mt4-cuve{height:132px}
  .mt4-cuve-t{font-size:20px;margin-top:8px}
  .mt4-cuve-total{bottom:6px}
  .mt4-tuiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mt4-cal-grille{grid-template-columns:repeat(4,minmax(0,1fr))}
  .mt4-vitrines{grid-template-columns:1fr}
  .mt4-stations{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mt4-barres-vie{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
  .mt4-bv{padding:6px 2px}
  .mt4-bv b{font-size:9.5px}
  .mt4-bv .mt4-long{display:none}
  .mt4-bv .mt4-court{display:inline}
  .mt4-rails{grid-template-columns:1fr}
  .mt4-eau-cuve{margin:0 auto}
  .mt4-levier-rang{flex-direction:column}
  .mt4-tour-pile{min-height:0}
}
/* ==== mt4 : fin des styles ==== */
/* ==== mt3 : debut des styles ====
   « La saison du letchi au Ti Pressoir » — préfixe mt3-. Hérite des styles
   pdl- de Péi Délices (le conteneur porte les deux classes : .pdl.mt3).
   Couleurs : le rouge letchi et le vert des feuilles, l'inox de la ligne. */
.mt3 .pdl-cta{background:linear-gradient(135deg,#e11d48,#be123c 55%,#15803d);box-shadow:0 6px 18px rgba(190,18,60,.3)}
.mt3 .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(190,18,60,.42)}
.mt3 .pdl-cta.alt{background:#fff;color:#1a1430}
.mt3 .pdl-opt.choisi{border-color:#e11d48;background:#fff1f2}
.mt3-badge .pdl-badge-logo{color:#be123c}
.mt3-prog{font-size:13px;font-weight:700;color:#64748b;margin-bottom:8px}
.mt3-pupitre-fiche{background:#fffbeb;border-left:5px solid #e11d48;border-radius:10px;padding:12px 14px;font-size:16px;line-height:1.45;margin:8px 0 12px;
  animation:mt3-tombe .45s cubic-bezier(.2,.9,.3,1.2)}
@keyframes mt3-tombe{from{transform:translateY(-24px) rotate(-2deg);opacity:0}to{transform:none;opacity:1}}
.mt3-pupitre-l{display:block;font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#64748b;margin-bottom:6px}
.mt3-choix2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mt3-choix3{display:grid;gap:8px}

/* --- 1. le pressoir à idées --- */
.mt3-press-scene{perspective:900px;display:flex;justify-content:center;margin:4px 0 14px}
.mt3-press{position:relative;width:min(100%,520px);height:230px;border-radius:16px;
  background:linear-gradient(180deg,#e2e8f0,#cbd5e1);box-shadow:inset 0 -10px 30px rgba(0,0,0,.15),0 14px 30px rgba(15,23,42,.25);
  transform:rotateX(8deg);transform-style:preserve-3d;overflow:hidden}
.mt3-press-vis{position:absolute;left:50%;top:0;width:18px;height:46px;margin-left:-9px;background:repeating-linear-gradient(180deg,#64748b 0 4px,#94a3b8 4px 8px);border-radius:4px}
.mt3-press-plateau{position:absolute;left:12%;right:12%;top:40px;height:16px;border-radius:6px;background:linear-gradient(180deg,#94a3b8,#475569);
  box-shadow:0 6px 10px rgba(0,0,0,.25);transition:transform .45s cubic-bezier(.5,0,.3,1.4)}
.mt3-press.presse .mt3-press-plateau{transform:translateY(64px)}
.mt3-idee{position:absolute;left:14%;right:14%;top:66px;min-height:78px;background:#fff;border-radius:12px;padding:10px 12px 10px 40px;font-size:15px;line-height:1.35;
  box-shadow:0 8px 18px rgba(0,0,0,.18);animation:mt3-tombe .5s cubic-bezier(.2,.9,.3,1.2);transition:transform .45s ease,opacity .45s}
.mt3-idee span{position:absolute;left:10px;top:10px;font-size:20px}
.mt3-idee.ecrasee{transform:translateY(36px) scaleY(.82);opacity:.82}
.mt3-press-cuve{position:absolute;left:30%;right:30%;bottom:8px;height:30px;border-radius:0 0 18px 18px;border:3px solid #64748b;border-top:0;
  background:rgba(255,255,255,.5);overflow:hidden;display:flex;align-items:flex-end}
.mt3-press-cuve i{display:block;width:100%;transition:height .8s ease,background .4s}
.mt3-leviers{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:10px}
.mt3-levier{font:inherit;border:2px solid var(--c);background:#fff;border-radius:14px;padding:10px 8px 12px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:8px;
  color:#1a1430;transition:transform .2s,box-shadow .2s}
.mt3-levier:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 18px rgba(0,0,0,.12)}
.mt3-levier b{font-size:14px;text-align:center}
.mt3-levier-manche{width:56px;height:44px;position:relative}
.mt3-levier-manche::before{content:"";position:absolute;left:8px;right:8px;bottom:0;height:10px;border-radius:5px;background:#475569}
.mt3-levier-manche i{position:absolute;left:50%;bottom:6px;width:8px;height:38px;margin-left:-4px;border-radius:4px;background:linear-gradient(180deg,var(--c),#334155);
  transform-origin:50% 100%;transform:rotate(-28deg);transition:transform .35s cubic-bezier(.5,0,.3,1.6)}
.mt3-levier-manche i::after{content:"";position:absolute;left:-6px;top:-10px;width:20px;height:20px;border-radius:50%;background:var(--c);box-shadow:inset -3px -3px 0 rgba(0,0,0,.2)}
.mt3-levier.tire .mt3-levier-manche i{transform:rotate(28deg)}
.mt3-levier.bon{background:#f0fdf4;border-color:#16a34a}
.mt3-levier.faux{background:#fef2f2;border-color:#dc2626;animation:pdl-secoue .4s ease}
.mt3-levier.eteint{opacity:.45}
.mt3-levier:disabled,.mt3-main:disabled,.mt3-portique:disabled,.mt3-levier2 button:disabled{color:#1a1430}

/* --- 2. le pupitre à deux interrupteurs --- */
.mt3-tapis{position:relative;height:96px;border-radius:14px;background:linear-gradient(180deg,#f1f5f9,#cbd5e1);overflow:hidden;margin-bottom:12px;
  box-shadow:inset 0 -6px 14px rgba(0,0,0,.12)}
.mt3-tapis-bande{position:absolute;left:0;right:0;bottom:12px;height:16px;background:repeating-linear-gradient(90deg,#334155 0 18px,#475569 18px 36px)}
.mt3-tapis.continu .mt3-tapis-bande{animation:mt3-bande .6s linear infinite}
.mt3-tapis.discontinu .mt3-tapis-bande{animation:mt3-bande-pause 5.4s linear infinite}
@keyframes mt3-bande{to{background-position:36px 0}}
@keyframes mt3-bande-pause{0%{background-position:0 0}45%{background-position:180px 0}70%{background-position:180px 0}100%{background-position:396px 0}}
.mt3-tapis-objets{position:absolute;left:0;right:0;bottom:26px;height:40px}
.mt3-tapis-objets span{position:absolute;bottom:0;left:-10%;font-size:28px}
.mt3-tapis.continu .mt3-tapis-objets span{animation:mt3-roule 2.7s linear infinite}
.mt3-tapis.discontinu .mt3-tapis-objets span{animation:mt3-roule-pause 5.4s linear infinite}
.mt3-tapis-objets span.mt3-unique{left:44%;font-size:38px;animation:mt3-brille 1.6s ease-in-out infinite !important}
@keyframes mt3-roule{from{left:-10%}to{left:105%}}
@keyframes mt3-roule-pause{0%{left:-10%}45%{left:50%}70%{left:50%}100%{left:105%}}
@keyframes mt3-brille{50%{transform:scale(1.15) rotate(-6deg);filter:drop-shadow(0 0 10px #fbbf24)}}
.mt3-tapis-ciel{position:absolute;top:8px;right:12px;font-size:13px;font-weight:700;color:#334155}
.mt3-pupitre-panneau{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:linear-gradient(180deg,#1e293b,#0f172a);border-radius:16px;padding:14px;margin-bottom:12px;
  box-shadow:inset 0 2px 8px rgba(0,0,0,.5)}
.mt3-pupitre-panneau .mt3-pupitre-l{color:#94a3b8}
.mt3-inter{position:relative;display:grid;grid-template-columns:1fr 1fr;background:#020617;border-radius:12px;padding:4px;gap:4px;border:2px solid #334155}
.mt3-inter.bon{border-color:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.35)}
.mt3-inter.faux{border-color:#dc2626;box-shadow:0 0 0 3px rgba(220,38,38,.35);animation:pdl-secoue .4s ease}
.mt3-inter-pos{position:relative;z-index:1;font:inherit;font-size:14px;font-weight:700;background:none;border:0;color:#cbd5e1;padding:10px 4px;border-radius:9px;cursor:pointer}
.mt3-inter-pos.on{color:#0f172a}
.mt3-inter-bille{position:absolute;top:4px;bottom:4px;width:calc(50% - 4px);margin-left:4px;border-radius:9px;background:linear-gradient(180deg,#fde68a,#f59e0b);
  transition:left .3s cubic-bezier(.5,0,.3,1.4);box-shadow:0 0 14px rgba(245,158,11,.6)}
.mt3-inter:not(:has(.on)) .mt3-inter-bille{opacity:0}

/* --- 3. l'atelier avant / après, la calculatrice, la courbe --- */
.mt3-onglets{display:flex;gap:8px;justify-content:center;margin-bottom:10px}
.mt3-onglets button{font:inherit;font-weight:700;border:2px solid #e2e8f0;background:#fff;border-radius:99px;padding:8px 16px;cursor:pointer}
.mt3-onglets button.on{background:#0f172a;color:#fff;border-color:#0f172a}
.mt3-plan-atelier{width:100%;max-height:300px;display:block;animation:mt3-tombe .5s ease}
.mt3-sol{fill:#f8fafc;stroke:#cbd5e1;stroke-width:2}
.mt3-ilot{fill:#ecfeff;stroke:#67e8f9;stroke-width:2;stroke-dasharray:6 5}
.mt3-ilot.actif{fill:#cffafe}
.mt3-chemin{fill:none;stroke:#e11d48;stroke-width:3;stroke-dasharray:8 6;animation:mt3-pointilles 1s linear infinite;opacity:.7}
@keyframes mt3-pointilles{to{stroke-dashoffset:-28}}
.mt3-bouteille-pt{fill:#f59e0b;stroke:#fff;stroke-width:3}
.mt3-plan-lib{font-size:11px;fill:#64748b;font-weight:700}
.mt3-parcours-txt{text-align:center;font-weight:600;margin:6px 0 10px}
.mt3-compteurs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}
.mt3-compteurs div{background:#0f172a;color:#fff;border-radius:12px;padding:10px 6px;text-align:center;display:flex;flex-direction:column;gap:2px}
.mt3-compteurs b{font-size:22px;color:#fbbf24;font-family:"Courier New",monospace}
.mt3-compteurs span{font-size:11.5px;opacity:.8}
.mt3-calcul-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:10px 0}
.mt3-calcul-saisie input{font:inherit;font-size:20px;font-weight:700;width:170px;padding:10px 12px;border:2px solid #cbd5e1;border-radius:12px}
.mt3-calcul-saisie input:focus{border-color:#e11d48;outline:none}
.mt3-rappel{background:#fef3c7;border:1px solid #fcd34d;border-left:5px solid #f59e0b;border-radius:10px;padding:10px 14px;margin:6px 0 10px;font-size:15px;line-height:1.5;color:#422006}
.mt3-rappel b:first-child{color:#92400e}
.mt3-courbe-svg{width:100%;display:block;max-height:240px}
.mt3-barre{fill:#fda4af;transition:fill .4s}
.mt3-barre.manque{fill:#e11d48}
.mt3-cap{fill:none;stroke:#0e7490;stroke-width:4;stroke-linejoin:round;transition:all .6s}
.mt3-cap.quali{stroke:#16a34a;stroke-dasharray:14 6;animation:mt3-pointilles .8s linear infinite}
.mt3-dort{fill:rgba(100,116,139,.25);animation:mt3-apparait .6s ease}
@keyframes mt3-apparait{from{opacity:0}}
.mt3-courbe-note{text-align:center;color:#15803d;font-weight:700;margin:4px 0}

/* --- 4. le comptoir --- */
.mt3-comptoir-bar{background:linear-gradient(180deg,#92400e,#78350f);border-radius:16px;padding:16px 14px 12px;margin-bottom:12px;
  box-shadow:inset 0 -8px 0 rgba(0,0,0,.2),0 10px 24px rgba(0,0,0,.2)}
.mt3-ticket{background:#fff;border-radius:6px;padding:12px 14px;font-size:16px;line-height:1.45;max-width:560px;margin:0 auto;position:relative;
  box-shadow:0 6px 14px rgba(0,0,0,.25);animation:mt3-ticket .5s cubic-bezier(.2,.9,.3,1.2);
  -webkit-mask:linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat,radial-gradient(circle 6px at 8px 100%,#0000 98%,#000) bottom/16px 8px repeat-x;
  mask:linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat,radial-gradient(circle 6px at 8px 100%,#0000 98%,#000) bottom/16px 8px repeat-x}
.mt3-ticket span{display:block;font-family:"Courier New",monospace;font-size:12px;color:#94a3b8;letter-spacing:.1em;margin-bottom:4px}
@keyframes mt3-ticket{from{transform:translateY(-30px);opacity:0}}
.mt3-comptoir-compte{text-align:center;color:#fde68a;font-size:13px;margin-top:10px}
.mt3-mains{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.mt3-main{font:inherit;background:#fff;border:2px solid #e2e8f0;border-radius:16px;padding:14px 10px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;
  transition:transform .25s}
.mt3-main span{font-size:38px;transition:transform .35s cubic-bezier(.5,0,.3,1.6)}
.mt3-main b{font-size:14.5px;text-align:center}.mt3-main i{font-size:12.5px;color:#64748b;font-style:normal}
.mt3-main:hover:not(:disabled){transform:translateY(-3px)}
.mt3-main.posee span{transform:translateY(-8px) rotate(-12deg) scale(1.15)}
.mt3-main.bon{border-color:#16a34a;background:#f0fdf4}
.mt3-main.faux{border-color:#dc2626;background:#fef2f2;animation:pdl-secoue .4s ease}
.mt3-main.eteint{opacity:.45}

/* --- 5. la carte des flux --- */
.mt3-carte-svg{width:100%;display:block;background:linear-gradient(180deg,#f0fdf4,#ecfeff);border-radius:14px;margin-bottom:6px}
.mt3-maillon circle{fill:#fff;stroke:#94a3b8;stroke-width:2;transition:all .3s}
.mt3-maillon.allume circle{stroke:#e11d48;stroke-width:4}
.mt3-maillon-nom{font-size:10.5px;font-weight:700;fill:#334155}
.mt3-fl{stroke-width:3.5;animation:mt3-trace .9s ease forwards;stroke-dasharray:400;stroke-dashoffset:400}
.mt3-fl.phys{stroke:#0e7490}
.mt3-fl.info{stroke:#c2410c;stroke-dasharray:7 6;animation:mt3-apparait .9s ease;stroke-dashoffset:0}
.mt3-fl.rate{opacity:.55}
@keyframes mt3-trace{to{stroke-dashoffset:0}}
.mt3-fl-objet{filter:drop-shadow(0 2px 3px rgba(0,0,0,.3))}
.mt3-carte-choix{display:grid;gap:10px;margin-bottom:10px}
.mt3-legende{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;margin:6px 0}
.mt3-leg{display:inline-block;width:32px;height:0;border-top:4px solid #0e7490;vertical-align:middle;margin-right:6px}
.mt3-leg.info{border-top:4px dashed #c2410c}

/* --- 6. l'entrepôt --- */
.mt3-rayons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0}
.mt3-rayon{background:#fff;border:2px solid #e2e8f0;border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;gap:6px;transition:all .3s}
.mt3-rayon.bon{border-color:#16a34a;background:#f0fdf4}
.mt3-rayon.faux{border-color:#f59e0b;background:#fffbeb}
.mt3-rayon-tete{display:flex;gap:8px;align-items:center}.mt3-rayon-tete span{font-size:24px}
.mt3-rayon p{margin:0;font-size:14px;line-height:1.4;color:#334155}
.mt3-stock{min-height:30px;display:flex;flex-wrap:wrap;gap:2px;background:repeating-linear-gradient(0deg,#e2e8f0 0 2px,transparent 2px 30px);padding:2px 4px;border-radius:6px}
.mt3-stock i{font-style:normal;font-size:20px;animation:mt3-tombe .35s ease both}
.mt3-levier2{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.mt3-levier2 button{font:inherit;font-size:13px;font-weight:700;border:2px solid #e2e8f0;background:#f8fafc;border-radius:10px;padding:8px 4px;cursor:pointer}
.mt3-levier2 button.on{background:#0f172a;color:#fff;border-color:#0f172a}
.mt3-rayon-why{font-size:13px !important}
.mt3-coups{display:grid;gap:10px}
.mt3-coup{background:#fff7ed;border-left:5px solid #c2410c;border-radius:10px;padding:10px 12px;animation:mt3-tombe .5s ease}
.mt3-coup p{margin:6px 0 0}
.mt3-coup-qui{font-weight:700;color:#9a3412}

/* --- 7. les portiques --- */
.mt3-ligne{position:relative;height:170px;margin:4px 0 12px;border-radius:14px;background:linear-gradient(180deg,#f8fafc,#e2e8f0)}
.mt3-ligne-bande{position:absolute;left:2%;right:2%;bottom:20px;height:14px;border-radius:7px;background:repeating-linear-gradient(90deg,#334155 0 16px,#475569 16px 32px);
  animation:mt3-bande .7s linear infinite}
.mt3-ligne-objet{position:absolute;bottom:32px;left:0;font-size:30px;animation:mt3-va 1s cubic-bezier(.3,.8,.3,1) forwards}
@keyframes mt3-va{to{left:var(--x)}}
.mt3-portique{position:absolute;bottom:10px;width:30%;height:150px;font:inherit;background:none;border:0;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:2px;padding:6px 4px;border-radius:12px}
.mt3-portique-arche{font-size:24px;width:64px;height:44px;display:grid;place-items:center;border:4px solid #64748b;border-bottom:0;border-radius:32px 32px 0 0;background:rgba(255,255,255,.7)}
.mt3-portique b{font-size:13px;text-align:center;line-height:1.2}
.mt3-portique i{font-size:11.5px;color:#64748b;font-style:normal}
.mt3-portique:hover:not(:disabled){background:rgba(225,29,72,.06)}
.mt3-portique.bon{background:rgba(22,163,74,.12)}.mt3-portique.bon .mt3-portique-arche{border-color:#16a34a}
.mt3-portique.faux{background:rgba(220,38,38,.1);animation:pdl-secoue .4s ease}.mt3-portique.faux .mt3-portique-arche{border-color:#dc2626}
.mt3-portique.eteint{opacity:.5}

/* --- 8. le cercle qualité --- */
.mt3-cercle-haut{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.mt3-cercle-jauge{min-width:220px;flex:1;max-width:320px}
.mt3-table{position:relative;width:250px;height:190px;margin:6px auto 4px}
.mt3-table-plateau{position:absolute;left:50%;top:50%;width:120px;height:120px;margin:-60px 0 0 -60px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#d6a26b,#92400e);box-shadow:0 12px 26px rgba(0,0,0,.3),inset 0 -6px 0 rgba(0,0,0,.15);display:grid;place-items:center;font-size:28px}
.mt3-siege{position:absolute;left:50%;top:50%;width:60px;margin:-34px 0 0 -30px;display:flex;flex-direction:column;align-items:center;
  transform:rotate(var(--a)) translateY(-86px) rotate(calc(-1 * var(--a)));transition:transform .4s}
.mt3-siege img{width:50px;height:50px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 4px 10px rgba(0,0,0,.25);transition:all .3s}
.mt3-siege span{font-size:11px;font-weight:700;background:#fff;border-radius:99px;padding:0 6px;margin-top:-6px}
.mt3-siege.parle img{border-color:#e11d48;transform:scale(1.18);box-shadow:0 0 0 5px rgba(225,29,72,.25),0 6px 14px rgba(0,0,0,.3)}
.mt3-probleme{background:#fff1f2;border-radius:12px;padding:10px 14px;font-size:16px;margin:6px 0}
.mt3-cercle-msg{background:#fef3c7;border-radius:10px;padding:8px 12px;font-weight:600;animation:mt3-tombe .35s ease}

/* --- le plan de l'usine (hub) --- */
.mt3-hub{width:100%;color:#fff}
.mt3-hub-tete{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.mt3-hub-tete h2{font-family:Fraunces,Georgia,serif;font-size:clamp(22px,3.4vw,32px);margin:0;text-shadow:0 4px 20px rgba(0,0,0,.5)}
.mt3-semaines{display:flex;gap:4px;flex-wrap:wrap}
.mt3-semaines span{font-size:12px;font-weight:800;padding:4px 8px;border-radius:8px;background:rgba(255,255,255,.12)}
.mt3-semaines span.fait{background:#16a34a}.mt3-semaines span.ici{background:#fbbf24;color:#1a1430}
.mt3-contrat{background:rgba(15,23,42,.72);border:1px solid rgba(255,255,255,.18);border-radius:14px;padding:10px 14px;margin:12px 0;display:grid;grid-template-columns:auto 1fr 1fr;gap:6px 16px;align-items:center}
.mt3-contrat .pdl-jauge-t{color:#fff}
.mt3-carte-plan{perspective:1100px;margin:6px 0 14px}
.mt3-carte-plan-sol{position:relative;width:100%;aspect-ratio:16/9;background-size:cover;background-position:center;border-radius:18px;
  transform:rotateX(22deg);transform-origin:50% 100%;box-shadow:0 30px 50px rgba(0,0,0,.45);border:4px solid rgba(255,255,255,.75)}
.mt3-epingle{position:absolute;transform:translate(-50%,-100%) rotateX(-22deg);font:inherit;border:0;background:none;cursor:pointer;display:flex;flex-direction:column;align-items:center;
  animation:mt3-pique .6s cubic-bezier(.2,.9,.3,1.4) both}
.mt3-epingle span{width:46px;height:46px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:#fff;display:grid;place-items:center;font-size:22px;
  box-shadow:0 6px 14px rgba(0,0,0,.4);border:3px solid #e11d48}
.mt3-epingle b{margin-top:4px;background:#0f172a;color:#fff;font-size:11px;border-radius:99px;padding:1px 7px}
.mt3-epingle.fait span{border-color:#16a34a}
.mt3-epingle.prochain span{animation:mt3-saute 1.2s ease-in-out infinite;border-color:#fbbf24;box-shadow:0 0 0 6px rgba(251,191,36,.35),0 6px 14px rgba(0,0,0,.4)}
.mt3-epingle.ferme{opacity:.6;cursor:not-allowed}
@keyframes mt3-pique{from{opacity:0;margin-top:-40px}}
@keyframes mt3-saute{50%{transform:rotate(-45deg) translate(4px,-4px) scale(1.08)}}
.mt3-liste{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mt3-ligne-etape{font:inherit;text-align:left;display:grid;grid-template-columns:auto 1fr;gap:0 10px;align-items:center;background:rgba(255,255,255,.94);color:#1a1430;
  border:2px solid transparent;border-radius:12px;padding:8px 12px;cursor:pointer}
.mt3-ligne-etape b{font-size:14.5px}.mt3-ligne-etape i{grid-column:2;font-size:12px;color:#64748b;font-style:normal}
.mt3-ligne-n{grid-row:span 2;font-size:11px;font-weight:800;background:#0f172a;color:#fff;border-radius:8px;padding:4px 6px}
.mt3-ligne-etape.fait .mt3-ligne-n{background:#16a34a}
.mt3-ligne-etape.prochain{border-color:#fbbf24;box-shadow:0 0 0 4px rgba(251,191,36,.3)}
.mt3-ligne-etape:disabled{opacity:.55;cursor:not-allowed}
.mt3-hub-fin{text-align:center;font-weight:800;font-size:18px;margin-top:12px}

/* --- les documents --- */
.mt3-mail-tete{background:#f1f5f9;border-radius:10px;padding:10px 12px;margin-bottom:12px;font-size:14px;display:grid;gap:2px;position:relative}
.mt3-doc{font-size:14.5px;line-height:1.5;color:#1a1430;position:relative}
.mt3-doc-tete{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;border-bottom:3px solid #be123c;padding-bottom:8px;margin-bottom:12px}
.mt3-doc-tete b{display:block;color:#be123c;font-size:16px}.mt3-doc-tete span{font-size:12px;color:#64748b}
.mt3-doc-tete h4{margin:0;font-size:16px;text-align:right}
.mt3-doc-bloc{border-left:5px solid var(--c);background:#f8fafc;border-radius:8px;padding:8px 12px;margin-bottom:10px}
.mt3-doc-bloc ul{margin:6px 0 0;padding-left:18px}.mt3-doc-bloc p{margin:4px 0}
.mt3-doc-note{background:#fef3c7;border-radius:8px;padding:8px 12px;font-weight:600;margin-top:10px}
.mt3-doc-liste{padding-left:20px;font-size:13.5px}
.mt3-table-doc{width:100%;border-collapse:collapse;font-size:13.5px}
.mt3-table-doc th{background:#0f172a;color:#fff;text-align:left;padding:6px 8px}
.mt3-table-doc td{border-bottom:1px solid #e2e8f0;padding:6px 8px;vertical-align:top}
.mt3-kpi{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.mt3-kpi div{background:#fef2f2;border-radius:12px;padding:10px;text-align:center}
.mt3-kpi div.vert{background:#f0fdf4}
.mt3-kpi b{display:block;font-size:28px;font-family:"Courier New",monospace}
.mt3-kpi span{font-size:12px;color:#475569}
.mt3-tampon{position:relative;right:auto;bottom:auto;display:inline-block;margin:6px 0 0 auto}
.mt3-affiche{background:linear-gradient(180deg,#fff7ed,#fff);border:3px dashed #e11d48;border-radius:16px;padding:16px}
.mt3-affiche h4{margin:0 0 8px;font-size:18px;color:#be123c}

@media (max-width:640px){
  .mt3-leviers{grid-template-columns:1fr}
  .mt3-levier{flex-direction:row;justify-content:flex-start;padding:8px 10px}
  .mt3-levier-manche{width:44px;height:38px;flex-shrink:0}
  .mt3-pupitre-panneau{grid-template-columns:1fr}
  .mt3-compteurs{grid-template-columns:repeat(2,1fr)}
  .mt3-choix2,.mt3-mains,.mt3-rayons,.mt3-liste,.mt3-kpi{grid-template-columns:1fr}
  .mt3-contrat{grid-template-columns:1fr}
  .mt3-press{height:250px}
  .mt3-idee{left:6%;right:6%;font-size:14px}
  .mt3-portique b{font-size:11.5px}.mt3-portique i{display:none}
  .mt3-portique-arche{width:48px;height:36px;font-size:18px}
  .mt3-epingle span{width:34px;height:34px;font-size:16px}
  .mt3-carte-plan-sol{transform:rotateX(14deg)}
  .mt3-epingle{transform:translate(-50%,-100%) rotateX(-14deg)}
  .mt3-doc-tete h4{text-align:left}
}
/* ==== mt3 : fin des styles ==== */
/* ==== mt2 : debut des styles ====
   « Gou Lontan » — préfixe mt2-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.mt2). Couleurs : le rouge
   letchi, l'orange mangue et le vert combava de la conserverie. */
.mt2 .pdl-cta{background:linear-gradient(135deg,#f59e0b,#be123c);box-shadow:0 6px 18px rgba(190,18,60,.3)}
.mt2 .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(190,18,60,.4)}
.mt2 .pdl-cta.alt{background:#fff;color:#1a1430}
.pdl-doc-bandeau.mt2-bandeau{background:linear-gradient(90deg,#be123c,#f59e0b)}
.pdl-doc-bandeau.mt2-bandeau-vert{background:linear-gradient(90deg,#15803d,#65a30d)}
.mt2-badge .pdl-badge-logo{color:#be123c}
.mt2-tampon{position:relative;right:auto;bottom:auto;display:inline-block;margin:6px 0 0 auto}
.mt2-pl-prog{font-size:13px;font-weight:700;color:#64748b;margin-bottom:8px}
.mt2-lien{background:none;border:0;color:#0e7490;font:inherit;font-size:13px;font-weight:700;text-decoration:underline;cursor:pointer;margin-left:10px}
@keyframes mt2-secoue{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.mt2-secoue{animation:mt2-secoue .45s}
@keyframes mt2-tombe{from{opacity:0;transform:translateY(-14px) rotate(-2deg)}to{opacity:1;transform:none}}
.mt2-retour{margin:10px 0 0;padding:10px 12px;border-radius:12px;font-size:14px;line-height:1.45;animation:mt2-tombe .3s ease both}
.mt2-retour.bon{background:#ecfdf5;border:1px solid #86efac;color:#14532d}
.mt2-retour.faux{background:#fff1f2;border:1px solid #fda4af;color:#881337}
.mt2-pastille{font:inherit;font-size:14px;font-weight:700;padding:9px 13px;border-radius:999px;border:2px solid var(--c,#cbd5e1);background:#fff;color:#1e293b;cursor:pointer;
  transition:transform .15s,background .15s;min-height:42px}
.mt2-pastille:hover:not(:disabled){transform:translateY(-2px);background:#fff7ed}
.mt2-pastille.rate,.mt2-pastille:disabled.rate{background:#fee2e2;border-color:#f87171;color:#991b1b;cursor:not-allowed}
.mt2-pastille.choisi{background:#fee2e2;border-color:#f87171}
.mt2-pastille.juste{background:#dcfce7;border-color:#22c55e;color:#14532d}
.mt2-table{width:100%;border-collapse:collapse;font-size:13.5px;margin:8px 0}
.mt2-table th,.mt2-table td{border:1px solid #e2e8f0;padding:6px 8px;text-align:left;vertical-align:top}
.mt2-table th{background:#fff7ed}

/* --- le hub : l'étagère des bocaux --- */
.mt2-hub{width:100%;color:#fff;text-align:center}
.mt2-hub-tete h2{font-family:Fraunces,Georgia,serif;font-size:clamp(24px,3.6vw,34px);margin:0;text-shadow:0 4px 20px rgba(0,0,0,.5)}
.mt2-hub-tete p{margin:6px 0 18px;font-weight:700;color:#fde68a;text-shadow:0 2px 8px rgba(0,0,0,.6)}
.mt2-planche-hub{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;align-items:end;padding:0 6px;position:relative;z-index:1}
.mt2-planche-bois{height:18px;margin:-4px 0 0;border-radius:4px;background:linear-gradient(180deg,#a16207,#713f12);box-shadow:0 10px 18px rgba(0,0,0,.45),inset 0 2px 0 rgba(255,255,255,.25)}
.mt2-pot{font:inherit;color:#fff;background:none;border:0;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;padding:0;
  animation:pdl-postit .5s ease both;transition:transform .2s}
.mt2-pot:hover:not(:disabled){transform:translateY(-6px)}
.mt2-pot-couvercle{width:62%;height:14px;border-radius:6px 6px 2px 2px;background:repeating-linear-gradient(90deg,#be123c 0 8px,#fff 8px 16px);box-shadow:0 2px 4px rgba(0,0,0,.4)}
.mt2-pot-verre{position:relative;width:100%;height:150px;border-radius:12px 12px 18px 18px;overflow:hidden;
  background:linear-gradient(90deg,rgba(255,255,255,.28),rgba(255,255,255,.08) 40%,rgba(255,255,255,.2));border:2px solid rgba(255,255,255,.55);
  box-shadow:inset 0 0 18px rgba(255,255,255,.15),0 8px 18px rgba(0,0,0,.35);backdrop-filter:blur(2px)}
.mt2-pot-jus{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(180deg,color-mix(in srgb,var(--c) 75%,#fff),var(--c));transition:height 1.4s cubic-bezier(.2,.8,.2,1)}
.mt2-pot-jus::before{content:"";position:absolute;left:0;right:0;top:-5px;height:10px;border-radius:50%;background:color-mix(in srgb,var(--c) 60%,#fff)}
.mt2-pot-etiq{position:absolute;left:7%;right:7%;top:36%;padding:6px 4px;border-radius:6px;background:#fffbeb;color:#422006;box-shadow:0 2px 6px rgba(0,0,0,.25);display:flex;flex-direction:column;gap:2px}
.mt2-pot-etiq small{font-size:10.5px;font-weight:800;color:#b45309;text-transform:uppercase;letter-spacing:.04em}
.mt2-pot-etiq b{font-size:12px;line-height:1.15}
.mt2-pot>i{font-size:11px;font-style:normal;line-height:1.25;text-shadow:0 1px 4px rgba(0,0,0,.7);min-height:28px}
.mt2-pot.prochain .mt2-pot-verre{border-color:#fde68a;box-shadow:0 0 0 3px rgba(253,230,138,.5),0 0 26px rgba(253,230,138,.55)}
.mt2-pot.prochain{animation:pdl-postit .5s ease both,mt2-flotte 2.4s 1s ease-in-out infinite}
@keyframes mt2-flotte{50%{transform:translateY(-6px)}}
.mt2-pot.ferme{filter:grayscale(.85) brightness(.7);cursor:not-allowed}
.mt2-hub-fin{font-size:18px;font-weight:700;margin-top:14px;text-shadow:0 2px 10px rgba(0,0,0,.6)}
.mt2-tm-pot{font-size:46px;filter:drop-shadow(0 0 16px var(--c))}
.mt2-bravo-pot{width:70px;height:86px;margin:0 auto 6px;border-radius:12px 12px 18px 18px;border:3px solid #cbd5e1;overflow:hidden;position:relative;background:#f8fafc}
.mt2-bravo-pot span{position:absolute;left:0;right:0;bottom:0;height:0;background:var(--c);animation:mt2-remplit 1.4s .2s cubic-bezier(.2,.8,.2,1) forwards}
@keyframes mt2-remplit{to{height:90%}}
@media (max-width:760px){
  .mt2-planche-hub{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:16px}
  .mt2-pot-verre{height:120px}
}

/* --- 1. la lampe torche --- */
.mt2-torche-compte{font-weight:800;color:#334155;margin:4px 0 8px}
.mt2-torche{--lx:50%;--ly:50%;position:relative;width:100%;aspect-ratio:16/10;border-radius:16px;overflow:hidden;background-size:cover;background-position:center;
  touch-action:none;box-shadow:0 10px 24px rgba(0,0,0,.3);cursor:crosshair}
.mt2-nuit{position:absolute;inset:0;pointer-events:none;transition:opacity 1.2s;
  background:radial-gradient(circle at var(--lx) var(--ly),rgba(0,0,0,0) 0,rgba(0,0,0,.05) 60px,rgba(3,7,18,.94) 120px)}
.mt2-torche.large .mt2-nuit{background:radial-gradient(circle at var(--lx) var(--ly),rgba(0,0,0,0) 0,rgba(0,0,0,.05) 120px,rgba(3,7,18,.9) 210px)}
.mt2-torche.allume .mt2-nuit{opacity:0}
.mt2-objet{position:absolute;transform:translate(-50%,-50%);max-width:30%;font:inherit;font-size:12px;font-weight:700;line-height:1.2;color:#1e293b;cursor:pointer;
  background:rgba(255,251,235,.95);border:2px solid #f59e0b;border-radius:10px;padding:5px 7px;display:flex;flex-direction:column;align-items:center;gap:2px;
  box-shadow:0 4px 10px rgba(0,0,0,.4)}
.mt2-objet-ico{font-size:20px}
.mt2-objet.sel{outline:3px solid #fde68a;outline-offset:2px;z-index:2}
.mt2-objet.mt2-trouve{background:#dcfce7;border-color:#22c55e;cursor:default}
.mt2-objet em{font-style:normal;font-size:10.5px;color:#15803d}
.mt2-choix-famille{margin-top:10px;padding:10px 12px;border-radius:12px;background:#fff7ed;border:1px solid #fed7aa;animation:mt2-tombe .3s ease both}
.mt2-choix-famille p{margin:0 0 8px}
.mt2-choix-famille div{display:flex;flex-wrap:wrap;gap:8px}
@media (max-width:640px){.mt2-objet{font-size:9.5px;padding:3px 4px;max-width:31%}.mt2-objet-ico{font-size:15px}.mt2-torche{aspect-ratio:9/15}}

/* --- 2a. le comptoir du concurrent --- */
.mt2-rival{display:flex;gap:12px;align-items:center;background:#0f172a;color:#e2e8f0;border-radius:14px;padding:10px 14px;margin-bottom:10px}
.mt2-rival>span{font-size:34px}
.mt2-rival p{margin:0;font-size:14px;line-height:1.45}
.mt2-carte-scene{max-width:440px;margin:6px auto 12px;perspective:900px;animation:mt2-tombe .4s ease both}
.mt2-carte3d{position:relative;height:190px;transform-style:preserve-3d;transition:transform .7s cubic-bezier(.2,.8,.2,1)}
.mt2-carte3d.mt2-retourne{transform:rotateY(180deg)}
.mt2-carte-face,.mt2-carte-dos{position:absolute;inset:0;border-radius:16px;backface-visibility:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:16px;text-align:center;box-shadow:0 12px 26px rgba(0,0,0,.25)}
.mt2-carte-face{background:linear-gradient(160deg,#fffbeb,#fde68a);border:2px solid #f59e0b}
.mt2-carte-face p{font-size:17px;font-weight:700;color:#422006;margin:8px 0 0}
.mt2-carte-etiq{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;background:#be123c;color:#fff;padding:3px 10px;border-radius:99px}
.mt2-carte-dos{transform:rotateY(180deg);color:#fff}
.mt2-carte-dos.mt2-dos-achat{background:linear-gradient(160deg,#0e7490,#155e75)}
.mt2-carte-dos.mt2-dos-garde{background:linear-gradient(160deg,#9d174d,#4c0519)}
.mt2-carte-dos p{margin:10px 0 2px;font-weight:700}
.mt2-tampon-rond{border:4px double #fff;border-radius:12px;padding:6px 16px;font-weight:900;letter-spacing:.12em;font-size:22px;transform:rotate(-8deg)}
.mt2-deux-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mt2-gros-btn{font:inherit;font-weight:800;font-size:15px;border:0;border-radius:14px;padding:14px 10px;cursor:pointer;color:#fff;transition:transform .15s}
.mt2-gros-btn:hover{transform:translateY(-2px)}
.mt2-gros-btn.mt2-btn-achat{background:#0e7490}
.mt2-gros-btn.mt2-btn-garde{background:#9d174d}
@media (max-width:520px){.mt2-deux-btns{grid-template-columns:1fr}}

/* --- 2b. les quatre bocaux --- */
.mt2-etiquettes{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 14px}
.mt2-etiquette{font:inherit;font-size:13px;font-weight:600;background:#fffbeb;border:1.5px dashed #b45309;border-radius:8px;padding:8px 10px;cursor:pointer;
  animation:mt2-tombe .35s ease both;max-width:100%;text-align:left}
.mt2-etiquette.sel{background:#fde68a;border-style:solid;box-shadow:0 0 0 3px rgba(245,158,11,.35)}
.mt2-etagere-bocaux{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.mt2-bocal{font:inherit;background:none;border:0;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;padding:4px;border-radius:14px;transition:transform .15s}
.mt2-bocal.cible{background:rgba(245,158,11,.12);outline:2px dashed #f59e0b}
.mt2-bocal:hover{transform:translateY(-3px)}
.mt2-bocal-couvercle{width:60%;height:12px;border-radius:5px 5px 2px 2px;background:var(--c)}
.mt2-bocal-verre{position:relative;width:86%;height:110px;border:3px solid #cbd5e1;border-top:0;border-radius:6px 6px 18px 18px;overflow:hidden;background:#f8fafc}
.mt2-bocal-jus{position:absolute;left:0;right:0;bottom:0;background:var(--c);opacity:.85;transition:height .8s cubic-bezier(.2,.8,.2,1)}
.mt2-bocal b{font-size:13.5px;color:#1e293b}
.mt2-bocal i{font-size:12px;color:#64748b;font-style:normal}
@media (max-width:560px){.mt2-etagere-bocaux{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* --- 3a. les trois horloges --- */
.mt2-pile{display:flex;flex-direction:column;align-items:center;margin:6px 0 14px}
.mt2-carton{font:inherit;font-size:16px;font-weight:700;color:#422006;background:linear-gradient(160deg,#fde68a,#f59e0b);border:0;border-radius:10px;padding:14px 18px;max-width:420px;
  cursor:pointer;box-shadow:0 6px 0 #b45309,0 12px 20px rgba(0,0,0,.2);display:flex;flex-direction:column;gap:4px;animation:mt2-tombe .35s ease both}
.mt2-carton small{font-size:11px;text-transform:uppercase;letter-spacing:.06em;opacity:.75}
.mt2-carton.sel{box-shadow:0 6px 0 #b45309,0 0 0 4px rgba(190,18,60,.45)}
.mt2-horloges{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.mt2-horloge{font:inherit;background:#fff;border:2px solid #e2e8f0;border-radius:16px;padding:12px 8px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;
  transition:transform .15s,border-color .15s}
.mt2-horloge.cible{border-color:var(--c);box-shadow:0 0 0 3px color-mix(in srgb,var(--c) 30%,transparent)}
.mt2-horloge.tic{transform:scale(1.05)}
.mt2-cadran{position:relative;width:86px;height:86px;border-radius:50%;background:radial-gradient(circle,#fff 55%,#f1f5f9);border:5px solid var(--c);box-shadow:0 6px 14px rgba(0,0,0,.18)}
.mt2-aiguille-h{position:absolute;left:50%;bottom:50%;width:4px;height:36px;margin-left:-2px;border-radius:2px;background:var(--c);transform-origin:50% 100%;animation:mt2-tour var(--v) linear infinite}
.mt2-horloge.tic .mt2-aiguille-h{animation-duration:.4s}
@keyframes mt2-tour{to{transform:rotate(360deg)}}
.mt2-axe{position:absolute;left:50%;top:50%;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:#1e293b}
.mt2-cadran-ico{position:absolute;left:0;right:0;bottom:8px;text-align:center;font-size:16px}
.mt2-horloge b{font-size:15px;color:#1e293b}
.mt2-horloge small{font-size:12px;color:#64748b}
.mt2-horloge ul{margin:6px 0 0;padding:0;list-style:none;font-size:12px;text-align:left;width:100%}
.mt2-horloge li{background:color-mix(in srgb,var(--c) 14%,#fff);border-radius:6px;padding:4px 6px;margin-top:4px;animation:mt2-tombe .3s ease both}
@media (max-width:560px){.mt2-horloges{grid-template-columns:1fr}.mt2-horloge{flex-direction:row;flex-wrap:wrap;justify-content:center}}

/* --- 3b. le pont des durées --- */
.mt2-pont{display:grid;grid-template-columns:1fr 1.2fr 1fr;align-items:stretch;min-height:150px;border-radius:16px;overflow:hidden;box-shadow:0 8px 20px rgba(0,0,0,.2);margin-bottom:12px}
.mt2-rive{background:linear-gradient(180deg,#84cc16,#3f6212);color:#fff;padding:12px;display:flex;flex-direction:column;gap:4px;justify-content:center}
.mt2-rive small{font-size:11px;text-transform:uppercase;letter-spacing:.06em;opacity:.85}
.mt2-rive b{font-size:14px;line-height:1.3}
.mt2-rive.d{text-align:right;align-items:flex-end}
.mt2-duree{align-self:flex-start;background:#fff;color:#3f6212;font-weight:800;font-size:13px;padding:3px 10px;border-radius:99px}
.mt2-riviere{position:relative;background:linear-gradient(180deg,#38bdf8,#0369a1);background-size:100% 100%;overflow:hidden}
.mt2-riviere::before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(100deg,transparent 0 18px,rgba(255,255,255,.25) 18px 22px);animation:mt2-eau 3s linear infinite}
@keyframes mt2-eau{to{background-position:60px 0}}
.mt2-planche{position:absolute;left:-4px;right:-4px;top:50%;transform:translateY(-50%);background:linear-gradient(180deg,#b45309,#78350f);color:#fff;font-weight:800;font-size:13px;
  text-align:center;padding:10px 6px;border-radius:4px;box-shadow:0 6px 10px rgba(0,0,0,.35)}
.mt2-planche.tient{animation:mt2-pose .5s cubic-bezier(.2,.8,.2,1) both}
@keyframes mt2-pose{from{transform:translateY(-200%)}to{transform:translateY(-50%)}}
.mt2-planche.casse{animation:mt2-casse 1.1s ease-in forwards}
@keyframes mt2-casse{0%{transform:translateY(-200%)}35%{transform:translateY(-50%)}55%{transform:translateY(-50%) rotate(8deg)}100%{transform:translateY(160%) rotate(30deg);opacity:0}}
.mt2-camion{position:absolute;top:18%;left:-20%;font-size:30px;animation:mt2-traverse 2s .5s ease-in-out forwards;transform:scaleX(-1)}
@keyframes mt2-traverse{to{left:110%}}
.mt2-planches{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
@media (max-width:560px){.mt2-pont{grid-template-columns:1fr;min-height:0}.mt2-riviere{min-height:80px}.mt2-rive.d{display:none}}

/* --- 4a. le coffre à trois tiroirs --- */
.mt2-pieces{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 14px;justify-content:center}
.mt2-piece{font:inherit;font-size:13px;font-weight:700;color:#422006;display:flex;align-items:center;gap:8px;padding:8px 14px 8px 8px;border-radius:999px;cursor:pointer;
  background:linear-gradient(160deg,#fde68a,#fbbf24);border:2px solid #b45309;box-shadow:0 4px 0 #92400e;animation:mt2-tombe .35s ease both}
.mt2-piece span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#b45309;color:#fde68a;font-weight:900}
.mt2-piece.sel{transform:translateY(-3px);box-shadow:0 4px 0 #92400e,0 0 0 4px rgba(190,18,60,.4)}
.mt2-coffre{display:grid;gap:8px;padding:12px;border-radius:16px;background:linear-gradient(180deg,#475569,#1e293b);box-shadow:inset 0 2px 0 rgba(255,255,255,.15),0 12px 24px rgba(0,0,0,.3)}
.mt2-tiroir{font:inherit;position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;text-align:left;padding:10px 12px 10px 44px;border-radius:10px;cursor:pointer;
  background:linear-gradient(180deg,#cbd5e1,#94a3b8);border:0;color:#0f172a;transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.mt2-tiroir.cible{outline:3px dashed #fde68a}
.mt2-tiroir.ouvert{transform:translateX(16px)}
.mt2-tiroir-poignee{position:absolute;left:12px;top:50%;width:20px;height:8px;margin-top:-4px;border-radius:4px;background:#334155}
.mt2-tiroir b{font-size:14px}
.mt2-tiroir-contenu{display:flex;flex-wrap:wrap;gap:6px}
.mt2-tiroir-contenu i{font-style:normal;font-size:12px;background:#fde68a;border-radius:99px;padding:3px 9px;animation:mt2-tombe .3s ease both}

/* --- 4b. le tour de table --- */
.mt2-jauge-projet{display:flex;align-items:center;gap:10px;margin:6px 0 12px}
.mt2-jauge-barre{flex:1;height:18px;border-radius:99px;background:#e2e8f0;overflow:hidden;box-shadow:inset 0 2px 4px rgba(0,0,0,.15)}
.mt2-jauge-barre span{display:block;height:100%;background:linear-gradient(90deg,#f59e0b,#16a34a);transition:width .6s cubic-bezier(.2,.8,.2,1)}
.mt2-jauge-projet b{font-size:14px;white-space:nowrap}
.mt2-offres{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px;margin-bottom:12px}
.mt2-offre{font:inherit;text-align:left;display:flex;flex-direction:column;gap:3px;padding:10px 12px;border-radius:14px;border:2px solid #e2e8f0;background:#fff;cursor:pointer;
  transition:transform .15s,border-color .15s,background .15s}
.mt2-offre>span{font-size:22px}
.mt2-offre b{font-size:14px;color:#1e293b}
.mt2-offre em{font-style:normal;font-weight:800;color:#be123c}
.mt2-offre small{font-size:12px;color:#475569;line-height:1.35}
.mt2-offre.pris{border-color:#16a34a;background:#f0fdf4;transform:translateY(-3px)}
.mt2-offre.fixe{background:#fffbeb;border-style:dashed;cursor:default}
.mt2-cede-ligne{padding:10px 12px;border-radius:12px;border:1px solid #e2e8f0;margin-top:10px;background:#fff}
.mt2-cede-ligne>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.mt2-cede-ligne p{margin:8px 0 0;font-size:13.5px}
.mt2-cede-ligne.bon{border-color:#86efac;background:#f0fdf4}
.mt2-cede-ligne.faux{border-color:#fda4af;background:#fff1f2}

/* --- 5a. la kaz du bilan --- */
.mt2-masses{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 14px}
.mt2-masse{font:inherit;text-align:left;display:flex;flex-direction:column;gap:2px;padding:8px 12px;border-radius:10px;border:2px solid #0e7490;background:#ecfeff;cursor:pointer;
  animation:mt2-tombe .35s ease both;max-width:100%}
.mt2-masse b{font-size:14px;color:#164e63}
.mt2-masse small{font-size:12px;color:#475569}
.mt2-masse.sel{background:#a5f3fc;box-shadow:0 0 0 3px rgba(14,116,144,.35)}
.mt2-kaz{max-width:620px;margin:0 auto}
.mt2-kaz-toit{position:relative;background:linear-gradient(180deg,#be123c,#881337);color:#fff;font-weight:800;font-size:12px;text-align:center;padding:40px 10px 8px;
  clip-path:polygon(0 100%,50% 0,100% 100%)}
.mt2-kaz-murs{display:grid;grid-template-columns:auto 1fr 1fr;gap:6px;background:#fef3c7;border:3px solid #92400e;border-top:0;padding:8px;border-radius:0 0 10px 10px}
.mt2-kaz-etiq{display:grid;grid-template-rows:auto 1fr 1fr 1fr;gap:6px}
.mt2-kaz-etiq::before{content:"";height:24px}
.mt2-kaz-etiq span{writing-mode:vertical-rl;transform:rotate(180deg);font-size:11px;font-weight:800;color:#92400e;text-align:center;align-self:center}
.mt2-kaz-col{display:grid;grid-template-rows:auto 1fr 1fr 1fr;gap:6px}
.mt2-kaz-col-t{text-align:center;font-weight:900;letter-spacing:.1em;color:#7c2d12;height:24px}
.mt2-piece-kaz{font:inherit;min-height:56px;border:2px dashed #d6a35c;border-radius:8px;background:rgba(255,255,255,.6);cursor:pointer;display:flex;flex-direction:column;justify-content:flex-end;gap:3px;padding:4px}
.mt2-piece-kaz.cible{border-color:#be123c;background:#fff1f2}
.mt2-vide{color:#d6a35c;font-weight:800;text-align:center;margin:auto}
.mt2-bloc{display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:6px;color:#fff;padding:2px 4px;animation:mt2-empile .5s cubic-bezier(.2,.8,.2,1) both;text-align:center}
@keyframes mt2-empile{from{transform:translateY(-40px);opacity:0}to{transform:none;opacity:1}}
.mt2-piece-kaz.stable .mt2-bloc{background:linear-gradient(180deg,#0e7490,#155e75)}
.mt2-piece-kaz.exploitation .mt2-bloc{background:linear-gradient(180deg,#f59e0b,#b45309)}
.mt2-piece-kaz.tresorerie .mt2-bloc{background:linear-gradient(180deg,#16a34a,#166534)}
.mt2-bloc b{font-size:12px;line-height:1.1}
.mt2-bloc em{font-style:normal;font-size:12px;font-weight:800}

/* --- 5b. les calculs --- */
.mt2-rappel-bilan{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.mt2-rappel-bilan span{font-size:12px;background:#f1f5f9;border-radius:6px;padding:3px 8px;color:#334155}
.mt2-calcul-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mt2-calcul-saisie input{font:inherit;font-size:20px;font-weight:700;width:150px;padding:8px 10px;border-radius:10px;border:2px solid #cbd5e1}
.mt2-calcul-saisie span{font-weight:700;color:#475569}

/* --- 6. le pupitre des trois aiguilles --- */
.mt2-evenement{background:#0f172a;color:#e2e8f0;border-radius:14px;padding:12px 14px;margin-bottom:12px;animation:mt2-tombe .35s ease both;border-left:6px solid #f59e0b}
.mt2-evenement b{color:#fde68a}
.mt2-evenement p{margin:4px 0 0;line-height:1.45}
.mt2-pupitre{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px;border-radius:16px;background:linear-gradient(180deg,#334155,#0f172a);margin-bottom:12px}
.mt2-pupitre-col{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 4px;border-radius:12px;transition:background .3s}
.mt2-pupitre-col.bon{background:rgba(34,197,94,.18)}
.mt2-pupitre-col.faux{background:rgba(244,63,94,.18)}
.mt2-cadran-jauge{display:flex;flex-direction:column;align-items:center;color:#fff;gap:2px}
.mt2-demi{position:relative;width:120px;height:62px;overflow:hidden}
.mt2-demi::before{content:"";position:absolute;left:0;top:0;width:120px;height:120px;border-radius:50%;
  background:conic-gradient(from 270deg,#f43f5e 0 72deg,#fbbf24 72deg 108deg,#22c55e 108deg 180deg,transparent 180deg);
  -webkit-mask:radial-gradient(circle,transparent 40px,#000 41px);mask:radial-gradient(circle,transparent 40px,#000 41px)}
.mt2-zero{position:absolute;left:59px;bottom:0;width:2px;height:60px;background:rgba(255,255,255,.7);transform-origin:50% 100%}
.mt2-aiguille{position:absolute;left:58px;bottom:0;width:4px;height:54px;border-radius:2px;background:#fff;transform-origin:50% 100%;transition:transform 1.4s cubic-bezier(.3,1.4,.4,1);box-shadow:0 0 6px rgba(0,0,0,.6)}
.mt2-axe2{position:absolute;left:52px;bottom:-8px;width:16px;height:16px;border-radius:50%;background:#e2e8f0}
.mt2-cadran-jauge b{font-size:13px;color:var(--c);filter:brightness(1.4)}
.mt2-cadran-jauge em{font-style:normal;font-weight:900;font-size:16px}
.mt2-cadran-jauge em.mt2-neg{color:#fda4af}
.mt2-cadran-jauge small{font-size:12px;color:#fde68a;font-weight:700}
.mt2-sens{display:flex;gap:6px}
.mt2-sens-btn{font:inherit;width:42px;height:42px;border-radius:10px;border:2px solid #64748b;background:#1e293b;color:#fff;font-size:18px;font-weight:900;cursor:pointer}
.mt2-sens-btn.mt2-sens-on{background:#f59e0b;border-color:#fde68a;color:#1e293b}
.mt2-sens-btn.juste{box-shadow:0 0 0 3px #22c55e}
.mt2-sens-rep{color:#e2e8f0;font-size:12px;text-align:center}
@media (max-width:560px){.mt2-pupitre{grid-template-columns:1fr}.mt2-pupitre-col{flex-direction:row;flex-wrap:wrap;justify-content:center}}

/* --- 7a. l'escalier de la GPEC --- */
.mt2-marches-libres{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:8px 0 14px}
.mt2-escalier{display:flex;align-items:flex-end;gap:6px;min-height:200px}
.mt2-marche{flex:1;min-width:0;min-height:calc(90px + var(--n) * 50px);border-radius:10px 10px 0 0;border:2px dashed #cbd5e1;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;
  padding:8px;text-align:center;color:#94a3b8;font-weight:900}
.mt2-marche.posee{border:0;background:linear-gradient(180deg,#16a34a,#14532d);color:#fff;animation:mt2-empile .5s cubic-bezier(.2,.8,.2,1) both}
.mt2-marche b{font-size:14px}
.mt2-marche small{font-size:12px;font-weight:500;margin-top:4px;line-height:1.3;overflow-wrap:anywhere}
@media (max-width:520px){.mt2-marche{padding:6px 4px}.mt2-marche b{font-size:12.5px}.mt2-marche small{font-size:11px}}

/* --- 7b. le mur des postes --- */
.mt2-mur{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px}
.mt2-poste{border-radius:14px;padding:10px 12px;background:#fff1f2;border:2px solid #fda4af;transition:background .4s,border-color .4s}
.mt2-poste.pourvu{background:#f0fdf4;border-color:#86efac}
.mt2-poste-tete{display:flex;gap:8px;align-items:center}
.mt2-poste-tete span{font-size:26px}
.mt2-poste-tete b{font-size:14.5px;color:#1e293b}
.mt2-poste p{margin:6px 0 8px;font-size:13.5px;line-height:1.4;color:#334155}
.mt2-poste-btns{display:flex;flex-wrap:wrap;gap:6px}
.mt2-poste-btns .mt2-pastille{font-size:13px;padding:7px 10px;min-height:38px}
.mt2-poste-indice{display:block;margin-top:6px;color:#9f1239;font-size:12.5px}
.mt2-poste-rep{display:block;font-size:12.5px;color:#14532d;line-height:1.4}
.mt2-pieges{border-color:#fda4af}
@media (max-width:520px){.mt2-masse small{display:none}.mt2-masse{padding:6px 10px}}
/* ==== mt2 : fin des styles ==== */
/* ==== mt1 : debut des styles ====
   « Bokal Péi » — préfixe mt1-. Hérite des styles pdl- de Péi Délices (le
   conteneur porte les deux classes : .pdl.mt1). Couleurs : le curcuma, le
   piment et les brèdes. */
.mt1 .pdl-cta{background:linear-gradient(135deg,#eab308,#dc2626);box-shadow:0 6px 18px rgba(220,38,38,.3)}
.mt1 .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(220,38,38,.4)}
.mt1 .pdl-cta.alt{background:#fff;color:#1a1430}
.pdl-doc-bandeau.mt1-bandeau{background:linear-gradient(90deg,#15803d,#eab308)}
.pdl-doc-bandeau.mt1-bandeau-rouge{background:linear-gradient(90deg,#b91c1c,#eab308)}
.mt1-badge .pdl-badge-logo{color:#15803d}
.mt1-tampon{position:relative;right:auto;bottom:auto;display:inline-block;margin:6px 0 0 auto}
.mt1-prog{font-size:13px;font-weight:700;color:#64748b;margin-bottom:8px}
.mt1-petit-why{font-size:13px;color:#b91c1c;margin:4px 0}
.mt1-antibi{font-size:13px;color:#475569;text-align:center;margin:-4px 0 10px}
@keyframes mt1-secoue{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.mt1-secoue{animation:mt1-secoue .45s}
@keyframes mt1-tombe{from{opacity:0;transform:translateY(-26px) rotate(-3deg)}to{opacity:1;transform:none}}
.mt1-tombe{animation:mt1-tombe .45s cubic-bezier(.2,.9,.3,1.3)}
@keyframes mt1-vers-g{to{opacity:0;transform:translateX(-160px) rotate(-14deg) scale(.6)}}
@keyframes mt1-vers-d{to{opacity:0;transform:translateX(160px) rotate(14deg) scale(.6)}}

/* --- l'étagère des bocaux (le hub) --- */
.mt1-hub{width:100%;color:#fff;text-align:center}
.mt1-hub-tete h2{font-family:Fraunces,Georgia,serif;font-size:clamp(24px,3.6vw,34px);margin:0;text-shadow:0 4px 20px rgba(0,0,0,.6)}
.mt1-hub-tete p{margin:4px 0 14px;opacity:.9;text-shadow:0 2px 8px rgba(0,0,0,.6)}
.mt1-planche{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(8px,2vw,22px);padding:6px clamp(6px,2vw,24px) 0;margin-bottom:26px;
  position:relative;perspective:700px}
.mt1-planche::after{content:"";position:absolute;left:0;right:0;bottom:-14px;height:16px;border-radius:4px;
  background:linear-gradient(180deg,#a16207,#713f12);box-shadow:0 10px 18px rgba(0,0,0,.45),inset 0 2px 0 rgba(255,255,255,.25)}
.mt1-bocal{font:inherit;color:inherit;background:none;border:0;cursor:pointer;display:flex;flex-direction:column;align-items:center;padding:0;
  animation:mt1-tombe .5s both;transition:transform .25s;min-width:0}
.mt1-bocal:hover:not(:disabled){transform:translateY(-6px) rotateX(6deg)}
.mt1-bocal:disabled{cursor:not-allowed}
.mt1-bocal-couvercle{width:56%;height:14px;border-radius:6px 6px 3px 3px;background:linear-gradient(180deg,#e5e7eb,#9ca3af 60%,#6b7280);
  box-shadow:0 2px 4px rgba(0,0,0,.4);position:relative;z-index:2}
.mt1-bocal.fait .mt1-bocal-couvercle{background:linear-gradient(180deg,#fde68a,#d97706 60%,#92400e)}
.mt1-bocal-verre{position:relative;width:min(100%,120px);height:clamp(84px,14vw,120px);margin-top:-3px;border-radius:14px 14px 18px 18px;overflow:hidden;
  background:linear-gradient(90deg,rgba(255,255,255,.18),rgba(255,255,255,.06) 40%,rgba(255,255,255,.2));border:2px solid rgba(255,255,255,.55);
  box-shadow:inset 0 -8px 16px rgba(0,0,0,.25),0 8px 18px rgba(0,0,0,.35);backdrop-filter:blur(2px)}
.mt1-bocal-plein{position:absolute;left:0;right:0;bottom:0;height:var(--h);background:linear-gradient(180deg,color-mix(in srgb,var(--c) 75%,#fff),var(--c));
  transition:height 1.4s cubic-bezier(.2,.9,.25,1)}
.mt1-vague{position:absolute;left:-50%;top:-8px;width:200%;height:16px;border-radius:45%;background:color-mix(in srgb,var(--c) 60%,#fff);opacity:.75;
  animation:mt1-vague 3s linear infinite}
@keyframes mt1-vague{to{transform:translateX(25%)}}
.mt1-bocal-ico{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:clamp(26px,4vw,38px);filter:drop-shadow(0 2px 4px rgba(0,0,0,.5))}
.mt1-bocal-reflet{position:absolute;left:12%;top:10%;width:12%;height:70%;border-radius:10px;background:linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,0))}
.mt1-bocal-etiq{margin-top:6px;background:#fffbeb;color:#1a1430;border-radius:8px;padding:5px 8px;box-shadow:0 4px 10px rgba(0,0,0,.3);max-width:100%;
  display:flex;flex-direction:column;gap:1px;transform:rotate(-1.5deg)}
.mt1-bocal-etiq b{font-size:clamp(11px,1.5vw,14px);line-height:1.2}
.mt1-bocal-etiq i{font-size:11px;color:#64748b;font-style:normal}
.mt1-bocal.prochain .mt1-bocal-verre{border-color:#fde047;animation:mt1-lueur 1.6s infinite}
@keyframes mt1-lueur{50%{box-shadow:0 0 0 6px rgba(253,224,71,.35),0 8px 18px rgba(0,0,0,.35)}}
.mt1-bocal.ferme{opacity:.55}
.mt1-hub-fin{font-weight:800;font-size:18px;text-shadow:0 2px 10px rgba(0,0,0,.7)}
.mt1-tm-bocal{width:74px;height:74px;margin:0 auto 6px;border-radius:16px 16px 22px 22px;display:flex;align-items:center;justify-content:center;font-size:36px;
  background:linear-gradient(180deg,rgba(255,255,255,.25),color-mix(in srgb,var(--c) 70%,transparent));border:2px solid rgba(255,255,255,.7);box-shadow:0 10px 26px rgba(0,0,0,.4)}
.mt1-bravo-bocal{width:86px;height:96px;margin:0 auto 8px;border-radius:16px 16px 24px 24px;border:3px solid rgba(255,255,255,.8);position:relative;overflow:hidden;
  background:linear-gradient(180deg,rgba(255,255,255,.2),rgba(255,255,255,.05))}
.mt1-bravo-bocal::before{content:"";position:absolute;left:0;right:0;bottom:0;height:0;background:var(--c);animation:mt1-remplir 1.4s .2s forwards}
@keyframes mt1-remplir{to{height:88%}}
.mt1-bravo-bocal span{position:relative;z-index:1;display:flex;height:100%;align-items:center;justify-content:center;font-size:40px}

/* --- 1. l'appareil photo --- */
.mt1-viseur{position:relative;margin:0 auto 12px;max-width:520px;padding:22px 26px;border-radius:14px;background:linear-gradient(180deg,#0f172a,#1e293b);overflow:hidden}
.mt1-coin{position:absolute;width:22px;height:22px;border:3px solid #fde047}
.mt1-coin-hg{left:8px;top:8px;border-right:0;border-bottom:0}.mt1-coin-hd{right:8px;top:8px;border-left:0;border-bottom:0}
.mt1-coin-bg{left:8px;bottom:8px;border-right:0;border-top:0}.mt1-coin-bd{right:8px;bottom:8px;border-left:0;border-top:0}
.mt1-flash{position:absolute;inset:0;background:#fff;pointer-events:none;animation:mt1-flash .45s forwards;z-index:3}
@keyframes mt1-flash{from{opacity:.95}to{opacity:0}}
.mt1-polaroid{background:#fff;padding:10px 10px 14px;border-radius:4px;box-shadow:0 10px 24px rgba(0,0,0,.45);transform:rotate(-2deg);animation:mt1-devel 1.1s ease both}
@keyframes mt1-devel{from{filter:blur(6px) sepia(1) brightness(1.4);opacity:.4}to{filter:none;opacity:1}}
.mt1-polaroid-img{height:56px;border-radius:2px;background:linear-gradient(135deg,#f59e0b,#16a34a 55%,#0ea5e9);display:flex;align-items:flex-end;padding:6px}
.mt1-polaroid-img span{font-size:11px;font-weight:700;color:#fff;background:rgba(0,0,0,.35);padding:2px 6px;border-radius:4px}
.mt1-polaroid p{margin:10px 2px 0;font-size:16px;font-weight:600;line-height:1.35;color:#1a1430}
.mt1-polaroid.ok{box-shadow:0 0 0 4px #22c55e,0 10px 24px rgba(0,0,0,.45)}
.mt1-polaroid.ko{box-shadow:0 0 0 4px #ef4444,0 10px 24px rgba(0,0,0,.45);animation:mt1-secoue .45s}
.mt1-pellicule{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px;border-radius:10px;background:#111827;
  background-image:repeating-linear-gradient(90deg,#111827 0 10px,transparent 10px 22px),repeating-linear-gradient(90deg,#111827 0 10px,transparent 10px 22px);
  background-size:100% 6px;background-repeat:no-repeat;background-position:0 2px,0 calc(100% - 2px)}
.mt1-cadre{font:inherit;border:3px solid var(--c);background:#fff;border-radius:8px;padding:8px 6px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px;
  min-width:0;transition:transform .15s}
.mt1-cadre:hover:not(:disabled){transform:translateY(-3px)}
.mt1-cadre-ico{font-size:22px}
.mt1-cadre b{color:var(--c);font-size:14px}
.mt1-cadre i{font-size:11px;color:#64748b;font-style:normal;text-align:center;line-height:1.2}
.mt1-cadre-n{display:flex;gap:3px;min-height:10px}
.mt1-cadre-n em{width:10px;height:10px;border-radius:2px;background:var(--c)}
.mt1-cadre.bon{background:color-mix(in srgb,var(--c) 15%,#fff);box-shadow:0 0 0 3px #22c55e}
.mt1-cadre.faux{box-shadow:0 0 0 3px #ef4444}
.mt1-cadre.eteint{opacity:.45}

/* --- 2. l'oreille et l'œil --- */
.mt1-oo-scene{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) minmax(0,1fr);gap:10px;align-items:stretch}
.mt1-oo-cote{font:inherit;border:0;border-radius:14px;cursor:pointer;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:12px 6px;
  transition:transform .15s,box-shadow .15s;min-width:0}
.mt1-oo-cote.mt1-g{background:linear-gradient(160deg,#0284c7,#1e40af)}
.mt1-oo-cote.mt1-d{background:linear-gradient(160deg,#7c3aed,#4c1d95)}
.mt1-oo-cote:hover:not(:disabled){transform:scale(1.04)}
.mt1-oo-cote:disabled{opacity:.6;cursor:default}
.mt1-oo-cote.bon{opacity:1;box-shadow:0 0 0 4px #22c55e}
.mt1-oo-ico{font-size:36px}
.mt1-oo-cote b{font-size:15px;text-align:center}
.mt1-oo-cote i{font-size:12px;font-style:normal;opacity:.85;text-align:center}
.mt1-oo-carte{background:#fffbeb;border-radius:14px;padding:14px;box-shadow:0 8px 20px rgba(0,0,0,.18);display:flex;flex-direction:column;align-items:center;gap:6px;
  animation:mt1-tombe .45s}
.mt1-oo-carte.vers-g{animation:mt1-vers-g .6s .5s forwards}
.mt1-oo-carte.vers-d{animation:mt1-vers-d .6s .5s forwards}
.mt1-oo-qui{font-size:40px}
.mt1-oo-carte p{margin:0;font-size:16px;font-weight:600;text-align:center;line-height:1.4}
.mt1-enquete{border:2px solid #0e7490;border-radius:12px;overflow:hidden;margin-bottom:12px}
.mt1-enquete-tete{background:#0e7490;color:#fff;font-weight:700;padding:8px 12px;font-size:14px}
.mt1-enquete table,.mt1-table{width:100%;border-collapse:collapse;font-size:14px}
.mt1-enquete th,.mt1-enquete td,.mt1-table th,.mt1-table td{padding:7px 10px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top}
.mt1-enquete th,.mt1-table th{background:#f1f5f9}
.mt1-num{text-align:right !important;white-space:nowrap}

/* --- 3. la veille --- */
.mt1-direct{background:#0f172a;color:#e2e8f0;border-radius:12px;padding:10px 12px;margin-bottom:10px}
.mt1-direct-tete{font-size:12px;font-weight:800;letter-spacing:.08em;display:flex;align-items:center;gap:8px;color:#fca5a5}
.mt1-rec{width:10px;height:10px;border-radius:50%;background:#ef4444;animation:pdl-clig 1s infinite}
.mt1-direct-grille{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:8px}
.mt1-direct-grille div{background:#1e293b;border-radius:8px;padding:6px;text-align:center;min-width:0}
.mt1-direct-grille b{display:block;font-family:"Courier New",monospace;font-size:20px;color:#5eead4}
.mt1-direct-grille span{font-size:11px;opacity:.75}
.mt1-fil{display:flex;align-items:center;gap:6px;margin:6px 0 10px}
.mt1-fil-etape{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;padding:6px 10px;border-radius:10px;background:#f1f5f9;color:#64748b;min-width:0}
.mt1-fil-etape span{width:24px;height:24px;border-radius:50%;background:#cbd5e1;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:13px}
.mt1-fil-etape b{font-size:13px}.mt1-fil-etape i{font-size:11px;font-style:normal}
.mt1-fil-etape.fait span{background:#16a34a}.mt1-fil-etape.fait{color:#166534}
.mt1-fil-etape.ici{background:#e0f2fe;color:#075985;box-shadow:0 0 0 2px #0ea5e9}.mt1-fil-etape.ici span{background:#0ea5e9}
.mt1-fil-tuyau{flex:1;height:10px;border-radius:6px;background:#e2e8f0;position:relative;overflow:hidden;min-width:16px}
.mt1-fil-tuyau.coule::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,#0ea5e9 0 14px,#7dd3fc 14px 28px);animation:mt1-coule 1s linear infinite}
@keyframes mt1-coule{from{background-position:0 0}to{background-position:28px 0}}
.mt1-notif{display:flex;gap:10px;align-items:center;background:#fff;border-left:5px solid #0ea5e9;border-radius:10px;padding:10px 12px;box-shadow:0 6px 16px rgba(0,0,0,.12);
  animation:mt1-notif .5s cubic-bezier(.2,.9,.3,1.3)}
@keyframes mt1-notif{from{opacity:0;transform:translateY(-18px) scale(.95)}to{opacity:1;transform:none}}
.mt1-notif span{font-size:26px}.mt1-notif p{margin:0;font-weight:700;font-family:"Courier New",monospace;font-size:15px}
.mt1-info-retenue{margin-top:8px;background:#ecfeff;border-radius:8px;padding:8px 10px;font-weight:600;color:#155e75}

/* --- 4. l'aiguillage --- */
.mt1-aig-carte{display:flex;gap:10px;align-items:center;background:#fffbeb;border-radius:12px;padding:10px 12px;box-shadow:0 4px 12px rgba(0,0,0,.1)}
.mt1-aig-carte span{font-size:30px}.mt1-aig-carte p{margin:0;font-weight:600;line-height:1.4}
.mt1-aig-voie{margin-top:12px;display:flex;flex-direction:column;gap:8px;position:relative;padding-left:16px;border-left:6px dashed #c4b5fd}
.mt1-porte{border-radius:12px;padding:8px 12px;background:#f8fafc;border:2px solid #e2e8f0;transition:all .3s;opacity:.55}
.mt1-porte.ici{opacity:1;border-color:#8b5cf6;background:#f5f3ff;box-shadow:0 6px 16px rgba(139,92,246,.2)}
.mt1-porte.passee{opacity:.8;border-color:#a7f3d0;background:#f0fdf4}
.mt1-porte-q{font-weight:600}.mt1-porte-q b{color:#7c3aed}
.mt1-porte-btns{display:flex;gap:8px;margin:8px 0 4px;flex-wrap:wrap;align-items:center}
.mt1-oui,.mt1-non{font:inherit;font-weight:800;border:0;border-radius:10px;padding:8px 22px;cursor:pointer;color:#fff}
.mt1-oui{background:#16a34a}.mt1-non{background:#dc2626}
.mt1-alerte{background:#fef2f2;color:#991b1b;border-radius:8px;padding:6px 10px;font-weight:600;width:100%}
.mt1-porte-sortie{font-size:12px;color:#64748b}
.mt1-paniers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:4px}
.mt1-panier{border:3px solid var(--c);border-radius:0 0 18px 18px;border-top-width:6px;padding:6px 4px;text-align:center;background:#fff;min-width:0;transition:all .3s}
.mt1-panier span{font-size:20px;display:block}.mt1-panier b{font-size:13px;color:var(--c)}
.mt1-panier.plein{background:color-mix(in srgb,var(--c) 16%,#fff);transform:scale(1.06)}
.mt1-panier-bocal{display:block;font-style:normal;font-size:24px;animation:mt1-tombe .5s}

/* --- 5. la marmite et le comité --- */
.mt1-marmite-zone{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:center}
.mt1-ingredients{display:flex;flex-direction:column;gap:8px}
.mt1-ingr{font:inherit;display:flex;gap:8px;align-items:center;border:2px solid #16a34a;background:#f0fdf4;border-radius:12px;padding:10px;cursor:pointer;text-align:left}
.mt1-ingr span{font-size:24px}.mt1-ingr b{font-size:15px}
.mt1-ingr.pris{opacity:.3}
.mt1-marmite{position:relative;padding-top:30px}
.mt1-vapeur{position:absolute;top:0;left:0;right:0;display:flex;justify-content:center;gap:20px}
.mt1-vapeur i{width:14px;height:30px;border-radius:50%;background:rgba(148,163,184,.5);filter:blur(3px);animation:mt1-vapeur 2.4s infinite}
.mt1-vapeur i:nth-child(2){animation-delay:.8s}.mt1-vapeur i:nth-child(3){animation-delay:1.6s}
@keyframes mt1-vapeur{0%{opacity:0;transform:translateY(10px) scale(.6)}50%{opacity:1}100%{opacity:0;transform:translateY(-20px) scale(1.3)}}
.mt1-marmite-corps{min-height:170px;border-radius:12px 12px 60px 60px;background:linear-gradient(180deg,#374151,#111827);border-top:10px solid #6b7280;padding:12px 18px;
  box-shadow:inset 0 -10px 20px rgba(0,0,0,.5),0 10px 24px rgba(0,0,0,.3)}
.mt1-marmite-corps ol{margin:0;padding-left:22px;color:#fde68a;font-weight:700}
.mt1-marmite-corps li{margin:6px 0}
.mt1-role{display:flex;gap:10px;align-items:center;background:linear-gradient(90deg,#f0fdf4,#fff);border-radius:12px;padding:8px 12px;margin-bottom:10px;border:2px solid #bbf7d0}
.mt1-role span{font-size:28px}.mt1-role b{white-space:nowrap}.mt1-role i{font-style:normal;color:#475569;font-size:14px}
.mt1-besoins{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mt1-besoin{font:inherit;border:2px solid #eab308;background:#fffbeb;border-radius:14px;padding:14px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;
  transition:transform .15s}
.mt1-besoin:hover{transform:translateY(-3px)}
.mt1-besoin span{font-size:34px}.mt1-besoin b{text-align:center}.mt1-besoin i{font-size:12px;color:#92400e}
.mt1-besoin-rappel{background:#fffbeb;border-radius:10px;padding:8px 12px;margin-bottom:10px}
.mt1-offres{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mt1-offre{font:inherit;text-align:left;border:2px solid #e2e8f0;background:#fff;border-radius:14px;padding:10px;cursor:pointer;display:flex;flex-direction:column;gap:4px;min-width:0;
  transition:transform .15s}
.mt1-offre:hover:not(:disabled){transform:translateY(-3px);border-color:#16a34a}
.mt1-offre img{width:44px;height:44px;border-radius:50%;object-fit:cover;object-position:top}
.mt1-offre-qui{font-size:12px;color:#64748b}
.mt1-offre b{font-size:16px}.mt1-offre p{margin:0;font-size:14px;line-height:1.35}
.mt1-offre em{font-size:12px;color:#991b1b;font-style:normal}
.mt1-offre.bon{border-color:#22c55e;background:#f0fdf4}.mt1-offre.faux{border-color:#fca5a5;background:#fef2f2;opacity:.85}
.mt1-approches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.mt1-approche{font:inherit;font-weight:800;border:3px solid var(--c);background:#fff;color:var(--c);border-radius:12px;padding:10px 4px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
.mt1-approche span{font-size:24px}
.mt1-approche.bon{background:color-mix(in srgb,var(--c) 15%,#fff);box-shadow:0 0 0 3px #22c55e}
.mt1-approche.faux{opacity:.4}

/* --- 6. le tapis --- */
.mt1-tapis{position:relative;height:150px;margin-bottom:10px;display:flex;align-items:center;justify-content:center}
.mt1-tapis-bande{position:absolute;left:0;right:0;bottom:12px;height:26px;border-radius:14px;background:repeating-linear-gradient(90deg,#334155 0 18px,#475569 18px 36px);
  box-shadow:inset 0 3px 6px rgba(0,0,0,.4),0 6px 0 #1e293b}
.mt1-tapis-bande.roule{animation:mt1-coule .6s linear infinite}
.mt1-colis{position:relative;z-index:1;margin-bottom:30px;background:linear-gradient(180deg,#fef3c7,#fde68a);border:2px solid #d97706;border-radius:10px;padding:10px 14px;max-width:min(90%,380px);
  display:flex;flex-direction:column;align-items:center;gap:2px;box-shadow:0 8px 16px rgba(0,0,0,.25);animation:mt1-arrive .7s cubic-bezier(.2,.9,.3,1.1)}
@keyframes mt1-arrive{from{transform:translateX(-120%)}to{transform:none}}
.mt1-colis span{font-size:30px}.mt1-colis b{text-align:center;line-height:1.3}.mt1-colis em{font-style:normal;font-weight:800;color:#92400e}
.mt1-colis.vers-g{animation:mt1-vers-g .6s .4s forwards}.mt1-colis.vers-d{animation:mt1-vers-d .6s .4s forwards}
.mt1-bacs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mt1-bac{font:inherit;border:0;border-radius:14px;padding:12px 8px;cursor:pointer;color:#fff;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;transition:transform .15s}
.mt1-bac.mt1-g{background:linear-gradient(160deg,#d97706,#92400e)}.mt1-bac.mt1-d{background:linear-gradient(160deg,#15803d,#14532d)}
.mt1-bac:hover:not(:disabled){transform:scale(1.03)}.mt1-bac:disabled{opacity:.7;cursor:default}
.mt1-bac.bon{opacity:1;box-shadow:0 0 0 4px #fde047}
.mt1-bac span{font-size:30px}.mt1-bac b{text-align:center}.mt1-bac i{font-size:12px;font-style:normal;opacity:.85;text-align:center}
.mt1-bac em{font-style:normal;font-family:"Courier New",monospace;font-weight:800;background:rgba(0,0,0,.25);border-radius:6px;padding:2px 8px;margin-top:4px}
.mt1-formule{background:#fef3c7;border:2px dashed #d97706;border-radius:10px;padding:8px 12px;font-weight:800;text-align:center;color:#92400e;margin-bottom:8px}
.mt1-rappel{background:#fef3c7;border:1px solid #fcd34d;border-left:5px solid #f59e0b;border-radius:10px;padding:10px 14px;margin:6px 0 10px;font-size:15px;line-height:1.5;color:#422006}
.mt1-rappel b:first-child{color:#92400e}
.mt1-saisie{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.mt1-saisie input{font:inherit;font-size:20px;font-weight:700;padding:8px 12px;border:2px solid #cbd5e1;border-radius:10px;width:min(220px,60vw)}
.mt1-saisie span{font-weight:800;font-size:18px}

/* --- 7. la preuve en trois temps --- */
.mt1-preuve-intro{background:#fdf2f8;border-radius:10px;padding:8px 12px;margin:0 0 10px;line-height:1.4}
.mt1-bocaux3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:10px}
.mt1-bocal3{display:flex;flex-direction:column;align-items:center;min-width:0}
.mt1-bocal3-cou{width:60%;height:12px;border-radius:5px;background:linear-gradient(180deg,#e5e7eb,#9ca3af)}
.mt1-bocal3-corps{width:100%;min-height:120px;border:2px solid #f9a8d4;border-radius:12px 12px 20px 20px;padding:8px;background:linear-gradient(90deg,#fff,#fdf2f8);font-size:14px}
.mt1-bocal3-corps b{display:block;color:#9d174d;font-size:13px;margin-bottom:4px}
.mt1-bocal3-corps p{margin:0;line-height:1.35}
.mt1-bocal3.ici .mt1-bocal3-corps{border-color:#db2777;box-shadow:0 0 0 3px rgba(219,39,119,.25)}
.mt1-bocal3.plein .mt1-bocal3-corps{background:linear-gradient(180deg,#fff 0%,#fce7f3 100%);border-color:#22c55e}
.mt1-cartes{display:flex;flex-direction:column;gap:6px}
.mt1-carte{font:inherit;text-align:left;border:2px solid #e2e8f0;background:#fff;border-radius:10px;padding:9px 12px;cursor:pointer;transition:border-color .15s}
.mt1-carte:hover:not(:disabled){border-color:#db2777}
.mt1-carte.faux{border-color:#fca5a5;background:#fef2f2;opacity:.6}

/* --- relier --- */
.mt1-relier-grille{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mt1-relier-grille>div{display:flex;flex-direction:column;gap:8px}
.mt1-rg,.mt1-rd{font:inherit;text-align:left;border:2px solid #e2e8f0;background:#fff;border-radius:10px;padding:10px;cursor:pointer;line-height:1.3}
.mt1-rg.sel{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 3px rgba(37,99,235,.2)}
.mt1-rg.fait,.mt1-rd.fait{border-color:#86efac;background:#f0fdf4;cursor:default}
.mt1-rg em{display:block;font-style:normal;font-size:12px;color:#166534;margin-top:4px}
.mt1-rd.fait{opacity:.55}
.mt1-rd.faux{border-color:#ef4444;background:#fef2f2}

/* --- 8. la vitrine et le tiroir --- */
.mt1-vit-scene{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr);gap:10px;align-items:stretch}
.mt1-vitrine,.mt1-tiroir{border-radius:12px;padding:8px;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;text-align:center}
.mt1-vitrine{background:linear-gradient(160deg,rgba(204,251,241,.9),rgba(255,255,255,.7));border:3px solid #5eead4;box-shadow:inset 0 0 20px rgba(255,255,255,.8)}
.mt1-vitrine i,.mt1-tiroir i{font-size:12px;font-style:normal;color:#475569}
.mt1-etageres{display:flex;flex-wrap:wrap;gap:4px;justify-content:center;margin-top:6px;padding-bottom:4px;border-bottom:4px solid #a16207;min-height:38px;width:100%}
.mt1-objet{width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--c) 18%,#fff);
  border:2px solid var(--c);animation:mt1-tombe .5s}
.mt1-tiroir{background:linear-gradient(180deg,#78350f,#451a03);color:#fde68a;border:3px solid #92400e}
.mt1-tiroir i{color:#fcd34d}
.mt1-tiroir-face{margin-top:auto;width:90%;background:#a16207;border-radius:6px;padding:8px 4px;font-weight:700;box-shadow:0 4px 0 #451a03;transition:transform .4s}
.mt1-tiroir.ouvert .mt1-tiroir-face{transform:translateY(8px) scale(1.05)}
.mt1-idee{background:#fefce8;border-radius:12px;padding:12px;box-shadow:0 8px 18px rgba(0,0,0,.15);display:flex;flex-direction:column;align-items:center;gap:4px;
  background-image:repeating-linear-gradient(180deg,transparent 0 23px,#e0e7ff 23px 24px);animation:mt1-tombe .45s}
.mt1-idee span{font-size:26px}.mt1-idee p{margin:0;font-weight:600;line-height:1.4;text-align:center}
.mt1-idee.vers-g{animation:mt1-vers-g .7s .8s forwards}.mt1-idee.vers-d{animation:mt1-vers-d .7s .8s forwards}
.mt1-vit-btns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
.mt1-vit-b{font:inherit;font-weight:800;font-size:16px;border:0;border-radius:12px;padding:12px 8px;cursor:pointer;color:#fff;display:flex;flex-direction:column;align-items:center;gap:2px}
.mt1-vit-b.mt1-g{background:linear-gradient(160deg,#0d9488,#115e59)}.mt1-vit-b.mt1-d{background:linear-gradient(160deg,#92400e,#451a03)}
.mt1-vit-b i{font-size:12px;font-weight:400;font-style:normal;opacity:.85}
.mt1-types{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.mt1-type{font:inherit;border:3px solid var(--c);background:#fff;border-radius:12px;padding:8px 4px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
.mt1-type span{font-size:24px}.mt1-type b{color:var(--c);font-size:13px;word-break:break-word;text-align:center}.mt1-type i{font-size:11px;color:#64748b;font-style:normal;text-align:center}

/* --- 9. le canevas --- */
.mt1-canevas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px;padding:10px;border-radius:12px;background:#fff;
  border:2px solid #cbd5e1;box-shadow:0 6px 16px rgba(0,0,0,.1);background-image:radial-gradient(#e2e8f0 1px,transparent 1px);background-size:14px 14px}
.mt1-zone{min-height:110px;border:2px dashed var(--c);border-radius:10px;padding:8px;background:rgba(255,255,255,.85);cursor:pointer;min-width:0}
.mt1-zone.cible{animation:pdl-clig 1.4s infinite;background:color-mix(in srgb,var(--c) 7%,#fff)}
.mt1-zone-t{font-weight:800;color:var(--c);margin-bottom:6px}
.mt1-zone-note{background:#fef9c3;border-radius:6px;padding:6px 8px;margin-top:5px;font-size:13px;box-shadow:0 2px 4px rgba(0,0,0,.1)}
.mt1-fissures{display:flex;flex-direction:column;align-items:center;gap:10px}
.mt1-page{position:relative;width:min(100%,420px);background:#fff;border-radius:8px;padding:14px;box-shadow:0 10px 24px rgba(0,0,0,.2);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow:hidden}
.mt1-page b{grid-column:1/-1;text-align:center}
.mt1-page span{border:2px solid var(--c);border-radius:6px;padding:8px 4px;font-size:12px;font-weight:700;color:var(--c);text-align:center}
.mt1-fente{position:absolute;width:4px;background:#1a1430;opacity:0;transform-origin:top;clip-path:polygon(0 0,100% 10%,40% 30%,100% 55%,30% 75%,100% 100%,0 90%)}
.mt1-fente.a{left:58%;top:0;height:60%}.mt1-fente.b{left:30%;top:30%;height:70%}
.mt1-page.mt1-f1 .mt1-fente.a{animation:mt1-fend .5s forwards}.mt1-page.mt1-f2 .mt1-fente.b{animation:mt1-fend .5s forwards}
.mt1-page.mt1-f1{animation:mt1-secoue .45s}
@keyframes mt1-fend{from{opacity:0;transform:scaleY(0)}to{opacity:.85;transform:scaleY(1)}}
.mt1-coupdur{width:min(100%,520px);display:grid;grid-template-columns:auto 1fr;gap:2px 10px;background:#fef2f2;border-left:5px solid #dc2626;border-radius:10px;padding:10px 12px;animation:mt1-notif .5s}
.mt1-coupdur span{grid-row:span 2;font-size:28px}.mt1-coupdur b{color:#991b1b}.mt1-coupdur p{margin:0;font-size:14px}
.mt1-routes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mt1-route{font:inherit;text-align:left;border:2px solid #e2e8f0;background:#fff;border-radius:12px;padding:10px;cursor:pointer;display:flex;flex-direction:column;gap:4px;min-width:0}
.mt1-route span{font-size:26px}.mt1-route i{font-size:13px;font-style:normal;color:#475569}
.mt1-route.on{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 3px rgba(37,99,235,.2)}

/* --- les documents --- */
.mt1-doc-grille{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
.mt1-doc-grille>div{border:2px solid var(--c);border-radius:8px;padding:6px 8px;min-width:0}
.mt1-doc-grille b{color:var(--c)}
.mt1-doc-grille ul{margin:4px 0 0;padding-left:18px;font-size:13px}
.mt1-doc-2col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mt1-doc-2col ul{padding-left:18px;font-size:13px}
.mt1-carnet{background:#fffef5;background-image:repeating-linear-gradient(180deg,transparent 0 25px,#dbeafe 25px 26px)}
.mt1-manuscrit p{font-family:"Segoe Script","Bradley Hand","Comic Sans MS",cursive;font-size:17px}

/* --- un bouton désactivé garde sa couleur (Chromium le grise sinon) --- */
.mt1-offre:disabled,.mt1-rg:disabled,.mt1-rd:disabled,.mt1-carte:disabled,.mt1-cadre:disabled,.mt1-ingr:disabled,.mt1-route:disabled{color:#1a1430}
.mt1-oo-cote:disabled,.mt1-bac:disabled{color:#fff}
.mt1-approche:disabled{color:var(--c)}
.mt1-offre.bon:disabled{opacity:1}

/* --- téléphone --- */
@media (max-width:640px){
  .mt1-oo-scene,.mt1-vit-scene{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .mt1-oo-carte,.mt1-idee{grid-column:1/-1;grid-row:1}
  .mt1-pellicule,.mt1-approches,.mt1-types,.mt1-paniers,.mt1-direct-grille{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mt1-offres,.mt1-routes,.mt1-besoins,.mt1-bocaux3,.mt1-marmite-zone,.mt1-doc-grille,.mt1-doc-2col{grid-template-columns:minmax(0,1fr)}
  .mt1-canevas,.mt1-relier-grille{grid-template-columns:minmax(0,1fr)}
  .mt1-bocal3-corps{min-height:0}
  .mt1-fil-etape i{display:none}
  .mt1-role{flex-wrap:wrap}
  .mt1-viseur{padding:16px}
}
/* ==== mt1 : fin des styles ==== */
/* ==== ms5 : debut des styles ====
   « Lo pri lo travay » — préfixe ms5-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.ms5). Couleurs : le curcuma et
   le piment du cari, l'inox de la cuisine. */
.ms5 .pdl-cta{background:linear-gradient(135deg,#f59e0b,#c2410c);box-shadow:0 6px 18px rgba(194,65,12,.32)}
.ms5 .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(194,65,12,.42)}
.ms5 .pdl-cta.alt{background:#fff;color:#1a1430;border:2px solid #f59e0b;box-shadow:0 4px 12px rgba(0,0,0,.12)}
.pdl-doc-bandeau.ms5-bandeau{background:linear-gradient(90deg,#c2410c,#f59e0b)}
.pdl-doc-bandeau.ms5-bandeau-rouge{background:linear-gradient(90deg,#7f1d1d,#c2410c)}
.ms5-badge .pdl-badge-logo{color:#c2410c}
.ms5-tampon{position:relative;right:auto;bottom:auto;display:inline-block;margin:6px 0 0 auto}
.ms5-prog{font-size:13px;font-weight:700;color:#64748b;margin-bottom:8px}
.ms5-ok{color:#15803d;font-weight:700;margin:6px 0 0}
@keyframes ms5-secoue{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.ms5-secoue{animation:ms5-secoue .45s}
.ms5-rappel{background:#fef3c7;border:1px solid #fcd34d;border-left:5px solid #f59e0b;border-radius:10px;padding:10px 14px;margin:6px 0 10px;font-size:15px;line-height:1.5;color:#422006}
.ms5-rappel b:first-child{color:#92400e}
.ms5-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}
.ms5-saisie input{font:inherit;font-size:20px;font-weight:700;width:150px;max-width:100%;padding:8px 12px;border-radius:10px;border:2px solid #cbd5e1;text-align:right}
.ms5-saisie input:focus{outline:none;border-color:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.25)}
.ms5-saisie span{font-weight:700;color:#475569}
.ms5-saisie .pdl-cta{margin:0}
.ms5-table{width:100%;border-collapse:collapse;font-size:13.5px;margin:8px 0}
.ms5-table th,.ms5-table td{border:1px solid #e2e8f0;padding:6px 8px;text-align:left;vertical-align:top}
.ms5-table th{background:#fff7ed;color:#9a3412}

/* --- le rail des bons (le hub) --- */
.ms5-hub{width:100%;color:#fff;text-align:center}
.ms5-hub h2{font-family:Fraunces,Georgia,serif;font-size:clamp(24px,3.6vw,34px);margin:0;text-shadow:0 4px 20px rgba(0,0,0,.55)}
.ms5-hub-sous{margin:6px 0 4px;font-weight:600;text-shadow:0 2px 10px rgba(0,0,0,.6)}
.ms5-rail{position:relative;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;padding:30px 4px 10px}
.ms5-barre-rail{position:absolute;left:0;right:0;top:14px;height:12px;border-radius:6px;
  background:linear-gradient(180deg,#f8fafc,#94a3b8 45%,#475569 55%,#cbd5e1);box-shadow:0 4px 10px rgba(0,0,0,.45)}
.ms5-bon{position:relative;font:inherit;color:#1f2937;border:none;border-radius:3px 3px 6px 6px;min-height:178px;padding:22px 8px 12px;cursor:pointer;
  background:linear-gradient(180deg,#fffdf7,#fef9e7);display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;
  box-shadow:0 10px 22px rgba(0,0,0,.4);transform:rotate(var(--r,0deg));transform-origin:50% 0;
  animation:ms5-tombe .55s cubic-bezier(.2,.9,.3,1.3) both;transition:transform .25s}
.ms5-bon::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:8px;
  background:linear-gradient(-45deg,transparent 4px,#fef9e7 0) 0 0/10px 8px repeat-x,linear-gradient(45deg,transparent 4px,#fef9e7 0) 0 0/10px 8px repeat-x}
@keyframes ms5-tombe{from{opacity:0;transform:translateY(-40px) rotate(-12deg)}}
@keyframes ms5-balance{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}
.ms5-bon.prochain{animation:ms5-tombe .55s both,ms5-balance 2.2s .6s ease-in-out infinite;box-shadow:0 0 0 3px #f59e0b,0 14px 30px rgba(0,0,0,.45)}
.ms5-bon:hover:not(:disabled){transform:rotate(0) translateY(4px)}
.ms5-bon.ferme{filter:grayscale(.9) brightness(.65);cursor:not-allowed}
.ms5-pince{position:absolute;top:-12px;left:50%;translate:-50% 0;width:26px;height:16px;border-radius:4px;background:linear-gradient(180deg,#e2e8f0,#64748b);box-shadow:0 2px 4px rgba(0,0,0,.4)}
.ms5-bon-n{font-family:"Courier New",monospace;font-size:11px;font-weight:800;letter-spacing:.08em;color:#9a3412;border-bottom:1px dashed #d6d3d1;padding-bottom:4px;width:100%}
.ms5-bon-ico{font-size:28px}
.ms5-bon b{font-size:13.5px;line-height:1.2}
.ms5-bon i{font-size:11px;font-style:normal;color:#57534e;line-height:1.25}
.ms5-servi{position:absolute;bottom:26px;left:50%;translate:-50% 0;rotate:-14deg;border:3px solid #b91c1c;color:#b91c1c;font-weight:900;letter-spacing:.12em;
  padding:2px 8px;border-radius:6px;font-size:15px;opacity:.85;animation:ms5-tampon .4s cubic-bezier(.3,1.6,.5,1) both;background:rgba(255,255,255,.6)}
@keyframes ms5-tampon{from{transform:scale(2.4);opacity:0}}
.ms5-hub-fin{font-size:18px;font-weight:700;margin-top:14px;text-shadow:0 2px 10px rgba(0,0,0,.6)}
.ms5-bon-grand{min-height:0;width:150px;margin:0 auto 10px;padding:12px;animation:ms5-tombe .6s both}

/* --- 1a. le podium --- */
.ms5-podium{display:flex;align-items:flex-end;justify-content:center;gap:10px;margin:14px 0 6px;min-width:0}
.ms5-marche{flex:1 1 0;min-width:0;max-width:240px;display:flex;flex-direction:column;align-items:stretch;transition:all .8s cubic-bezier(.2,.9,.25,1)}
.ms5-cuisto{background:#fff;border:2px solid #fde68a;border-radius:14px;padding:10px;text-align:center;box-shadow:0 6px 14px rgba(0,0,0,.08);display:flex;flex-direction:column;gap:4px}
.ms5-cuisto b{font-size:17px}
.ms5-barq{font-size:15px;font-weight:700;color:#c2410c}
.ms5-heures{font-size:12px;color:#64748b}
.ms5-socle{margin-top:6px;border-radius:8px 8px 0 0;color:#fff;font-weight:900;font-size:26px;display:grid;place-items:center;background:linear-gradient(180deg,#f59e0b,#b45309);transition:height .8s}
.ms5-rang1 .ms5-socle{height:96px}
.ms5-rang2 .ms5-socle{height:66px;background:linear-gradient(180deg,#94a3b8,#475569)}
.ms5-rang3 .ms5-socle{height:44px;background:linear-gradient(180deg,#d6a77a,#92400e)}
.ms5-podium.retourne .ms5-marche{animation:ms5-saute .7s cubic-bezier(.3,1.5,.5,1)}
@keyframes ms5-saute{40%{transform:translateY(-26px) rotate(-4deg)}}
.ms5-podium-leg{text-align:center;font-weight:700;color:#9a3412;margin:2px 0 10px}
.ms5-mini-saisie{display:flex;align-items:center;justify-content:center;gap:4px;margin-top:4px}
.ms5-mini-saisie input{font:inherit;font-weight:700;width:70px;padding:5px 6px;border-radius:8px;border:2px solid #cbd5e1;text-align:right}
.ms5-mini-saisie span{font-size:12px;color:#475569}
.ms5-mini-saisie.bon input{border-color:#16a34a;background:#f0fdf4}
.ms5-mini-saisie.faux input{border-color:#dc2626;background:#fef2f2}
.ms5-corr{color:#b91c1c;font-weight:700}

/* --- 1b. la cuisinière à cinq feux --- */
.ms5-ticket{background:#fffdf7;border-left:6px solid #f59e0b;border-radius:6px;padding:12px 14px;font-size:16px;font-weight:600;box-shadow:0 4px 12px rgba(0,0,0,.1);animation:ms5-tombe .5s both}
.ms5-four{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0;padding:12px;border-radius:14px;
  background:linear-gradient(180deg,#e5e7eb,#9ca3af);box-shadow:inset 0 2px 0 #f9fafb,0 8px 18px rgba(0,0,0,.18)}
.ms5-feu{font:inherit;border:none;background:#1f2937;color:#f9fafb;border-radius:10px;padding:10px 4px 8px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
.ms5-feu b{font-size:11.5px;line-height:1.2}
.ms5-bruleur{position:relative;width:46px;height:46px;border-radius:50%;background:radial-gradient(circle,#111 30%,#374151 32%,#111 60%);display:block}
.ms5-bruleur i{position:absolute;left:50%;bottom:50%;width:12px;height:22px;margin-left:-6px;border-radius:50% 50% 40% 40%;background:radial-gradient(circle at 50% 80%,#fde68a,#3b82f6 60%,transparent 70%);
  opacity:0;transform-origin:50% 100%;transition:opacity .3s}
.ms5-bruleur i:nth-child(2){transform:rotate(-35deg)}
.ms5-bruleur i:nth-child(3){transform:rotate(35deg)}
.ms5-feu.on .ms5-bruleur i{opacity:1;animation:ms5-flamme .25s ease-in-out infinite alternate}
.ms5-feu.on{box-shadow:0 0 0 3px #3b82f6,0 0 22px rgba(59,130,246,.6)}
@keyframes ms5-flamme{to{height:26px}}
.ms5-bouton{width:30px;height:30px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f9fafb,#9ca3af);display:grid;place-items:center;font-size:15px;transition:transform .4s}
.ms5-feu.on .ms5-bouton{transform:rotate(120deg)}

/* --- 2a. la chaîne du kari --- */
.ms5-chaine{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:40px 8px 12px;border-radius:14px;background:linear-gradient(180deg,#f1f5f9,#e2e8f0);margin-bottom:12px;overflow:hidden}
.ms5-tapis{position:absolute;left:0;right:0;top:10px;height:22px;background:repeating-linear-gradient(90deg,#475569 0 18px,#64748b 18px 36px);background-size:36px 22px;animation:ms5-tapis 1s linear infinite}
.ms5-chaine.arret .ms5-tapis{animation:none;filter:grayscale(1)}
@keyframes ms5-tapis{to{background-position:36px 0}}
.ms5-tapis i{position:absolute;top:-4px;left:-30px;font-style:normal;font-size:20px;animation:ms5-glisse 4.5s linear infinite}
@keyframes ms5-glisse{to{left:105%}}
.ms5-poste{background:#fff;border-radius:10px;padding:10px 4px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:4px;box-shadow:0 4px 10px rgba(0,0,0,.08);min-width:0;transition:all .4s}
.ms5-poste span{font-size:26px}
.ms5-poste b{font-size:12px}
.ms5-poste small{font-size:13px;line-height:1;word-break:break-all}
.ms5-poste.vide{background:#fee2e2;outline:2px dashed #dc2626}
.ms5-poste.bloque{filter:grayscale(.9);opacity:.6}
.ms5-horloge{position:absolute;right:10px;top:8px;background:#111827;color:#fde68a;font-family:"Courier New",monospace;font-weight:800;padding:2px 8px;border-radius:6px;font-size:14px;z-index:1}

/* --- 2b. la carte des trois cuisines --- */
.ms5-carte{position:relative;width:min(100%,520px);aspect-ratio:1.15;margin:8px auto 12px}
.ms5-ile{position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(0 10px 14px rgba(0,0,0,.25))}
.ms5-ile path{fill:#4d7c0f;stroke:#fde68a;stroke-width:1.2}
.ms5-ile .ms5-relief{fill:#3f6212;stroke:none;opacity:.7}
.ms5-epingle{position:absolute;translate:-50% -100%;font:inherit;border:none;background:#fff;border-radius:10px;padding:5px 8px;cursor:pointer;box-shadow:0 6px 14px rgba(0,0,0,.3);
  display:flex;flex-direction:column;align-items:center;gap:2px;font-size:12px;white-space:nowrap;transition:transform .2s}
.ms5-epingle:hover,.ms5-epingle.sel{transform:scale(1.08);box-shadow:0 0 0 3px #f59e0b,0 8px 18px rgba(0,0,0,.35)}
.ms5-epingle.fait{background:#ecfdf5}
.ms5-epingle i{font-style:normal;color:#15803d;font-weight:700}
.ms5-barre{display:block;width:18px;border-radius:4px 4px 0 0;background:linear-gradient(180deg,#f59e0b,#c2410c);transition:height 1s cubic-bezier(.2,.9,.3,1.2)}
.ms5-fiche-site{background:#fff7ed;border:2px solid #fed7aa;border-radius:12px;padding:10px 14px;margin:8px 0}
.ms5-fiche-site p{margin:4px 0}

/* --- 3a. le tableau lumineux --- */
.ms5-leg{display:inline-block;margin:4px 6px 0 0;padding:2px 8px;border-radius:99px;font-size:12px;font-weight:600;color:#fff;background:var(--c)}
.ms5-tdb{background:linear-gradient(180deg,#0f172a,#1e293b);border-radius:14px;padding:10px;color:#e2e8f0;box-shadow:inset 0 0 0 2px #334155,0 10px 24px rgba(0,0,0,.25);overflow:hidden}
.ms5-tdb-tete,.ms5-tdb-ligne{display:grid;grid-template-columns:18px minmax(0,1fr) 64px 64px 120px;gap:8px;align-items:center}
.ms5-tdb-tete{grid-template-columns:minmax(0,1fr) 64px 64px 120px;padding:0 0 6px 26px;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#94a3b8}
.ms5-tdb-ligne{padding:8px 6px;border-top:1px solid #334155;border-left:4px solid var(--c,transparent);transition:border-color .3s}
.ms5-tdb-ligne.faux{background:rgba(220,38,38,.25)}
.ms5-tdb-ligne.bon{background:rgba(22,163,74,.12)}
.ms5-tdb-ind{font-size:13.5px;line-height:1.25}
.ms5-tdb-val{font-family:"Courier New",monospace;font-weight:800;color:#fde68a;text-align:right;font-size:14px}
.ms5-tdb-btns{display:flex;gap:4px;justify-content:flex-end}
.ms5-tdb-btns button{width:34px;height:34px;border-radius:8px;border:2px solid #475569;background:#0f172a;cursor:pointer;font-size:16px}
.ms5-tdb-btns button.on{background:var(--c);border-color:#fff}
.ms5-lampe{width:14px;height:14px;border-radius:50%;background:#334155;box-shadow:inset 0 1px 3px rgba(0,0,0,.6);display:inline-block;flex:none}
.ms5-lampe.on{background:var(--c,#fde68a);box-shadow:0 0 10px var(--c,#fde68a),0 0 2px #fff}

/* --- 4. le face-à-face --- */
.ms5-face-tete{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.ms5-face-jauge{flex:1 1 220px;max-width:320px}
.ms5-face .pdl-bulle{margin:8px 0}
.ms5-carnet{margin-top:12px;background:#fefce8;border:1px solid #fde68a;border-radius:10px;padding:8px 12px;font-family:"Segoe Print","Comic Sans MS",cursive;font-size:13px;
  background-image:repeating-linear-gradient(180deg,transparent 0 21px,#fde68a 21px 22px)}
.ms5-carnet ul{margin:4px 0 0;padding-left:18px}
.ms5-carnet li{animation:pdl-postit .4s both}

/* --- 5a. les trois enveloppes --- */
.ms5-etiquettes{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:8px 0}
.ms5-etiq{font:inherit;font-weight:700;border:2px dashed #c2410c;background:#fff7ed;color:#9a3412;border-radius:8px;padding:8px 12px;cursor:pointer}
.ms5-etiq.sel{background:#c2410c;color:#fff;border-style:solid}
.ms5-etiq:disabled{opacity:.35;cursor:default}
.ms5-enveloppes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0;perspective:800px}
.ms5-env{position:relative;font:inherit;border:none;cursor:pointer;min-height:150px;border-radius:8px;padding:56px 10px 12px;display:flex;flex-direction:column;align-items:center;gap:6px;
  background:linear-gradient(160deg,#fef3c7,#fde68a);box-shadow:0 8px 18px rgba(0,0,0,.18);min-width:0}
.ms5-env.cible{outline:3px dashed #f59e0b}
.ms5-env.faux{animation:ms5-secoue .45s;outline:3px solid #dc2626}
.ms5-env-rabat{position:absolute;left:0;right:0;top:0;height:50px;clip-path:polygon(0 0,100% 0,50% 100%);background:linear-gradient(180deg,#fcd34d,#f59e0b);transform-origin:50% 0;transition:transform .7s}
.ms5-env.ouvert .ms5-env-rabat{transform:rotateX(180deg)}
.ms5-env-montant{font-size:22px;font-weight:900;color:#1f2937;font-family:"Courier New",monospace}
.ms5-env-etiq{font-weight:700;color:#9a3412;background:#fff;border-radius:6px;padding:2px 8px;font-size:13px}
.ms5-env small{font-size:12px;color:#57534e;animation:pdl-postit .4s both}

/* --- 5b. la tour du coût --- */
.ms5-tour-scene{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:end}
.ms5-plateau{display:flex;flex-direction:column;gap:8px}
.ms5-bloc-choix{font:inherit;text-align:left;border:2px solid #e2e8f0;background:#fff;border-radius:10px;padding:9px 12px;cursor:pointer;font-weight:600;font-size:14px}
.ms5-bloc-choix:hover:not(:disabled){border-color:#f59e0b}
.ms5-bloc-choix.pris{opacity:.3;text-decoration:line-through}
.ms5-bloc-choix.faux{border-color:#dc2626;background:#fef2f2}
.ms5-tour{display:flex;flex-direction:column;align-items:stretch;min-height:240px;justify-content:flex-end}
.ms5-tour-total{text-align:center;font-family:"Courier New",monospace;font-size:26px;font-weight:900;color:#c2410c;margin-bottom:6px}
.ms5-etage{color:#fff;border-radius:6px;padding:4px 10px;display:flex;flex-direction:column;justify-content:center;margin-top:3px;animation:ms5-pose .5s cubic-bezier(.3,1.4,.5,1) both;min-height:34px;overflow:hidden}
.ms5-etage b{font-size:12.5px;line-height:1.15}
.ms5-etage span{font-size:11px;opacity:.9}
@keyframes ms5-pose{from{transform:translateY(-120px);opacity:0}}
.ms5-etage-brut{background:linear-gradient(90deg,#0369a1,#0284c7)}
.ms5-etage-charges{background:linear-gradient(90deg,#b45309,#d97706)}
.ms5-etage-avantage{background:linear-gradient(90deg,#15803d,#16a34a)}
.ms5-etage-indirects{background:repeating-linear-gradient(45deg,#6b21a8 0 10px,#7e22ce 10px 20px)}
.ms5-tour-sol{height:8px;border-radius:4px;background:#475569;margin-top:3px}

/* --- 6a. la balance --- */
.ms5-carte-retrib{margin:6px auto;max-width:420px;text-align:center;background:#fff;border:2px solid #f59e0b;border-radius:12px;padding:12px;font-weight:700;font-size:16px;box-shadow:0 6px 16px rgba(0,0,0,.12);animation:ms5-tombe .45s both}
.ms5-balance-btns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:8px 0}
.ms5-balance{position:relative;height:250px;margin:10px auto 0;max-width:620px}
.ms5-fleau{position:absolute;left:6%;right:6%;top:30px;height:8px;border-radius:4px;background:linear-gradient(180deg,#e5e7eb,#6b7280);transition:transform .7s cubic-bezier(.3,1.4,.5,1);transform-origin:50% 50%}
.ms5-plat{position:absolute;top:8px;width:44%;min-height:60px;background:rgba(255,255,255,.96);border:2px solid #cbd5e1;border-radius:0 0 40px 40px;padding:6px 8px;transition:transform .7s;font-size:11.5px}
.ms5-plat-g{left:-4%}
.ms5-plat-d{right:-4%}
.ms5-plat b{display:block;text-align:center;font-size:13px}
.ms5-plat ul{margin:4px 0 0;padding-left:14px}
.ms5-plat li{animation:pdl-postit .35s both}
.ms5-pied{position:absolute;left:50%;top:22px;bottom:0;width:10px;translate:-50% 0;background:linear-gradient(90deg,#9ca3af,#4b5563);border-radius:4px}
.ms5-pied::after{content:"";position:absolute;bottom:0;left:50%;translate:-50% 0;width:110px;height:14px;border-radius:8px;background:#4b5563}

/* --- 6b. l'atelier des primes --- */
.ms5-formules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:8px 0}
.ms5-formule{font:inherit;text-align:left;border:2px solid #e2e8f0;border-radius:12px;background:#fff;padding:10px;cursor:pointer;font-size:13.5px;display:flex;flex-direction:column;gap:4px;min-width:0}
.ms5-formule span{font-weight:800;color:#c2410c;font-size:12px;text-transform:uppercase;letter-spacing:.06em}
.ms5-formule.on{border-color:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.3)}
.ms5-formule.teste{background:#fffbeb}
.ms5-formule:disabled{opacity:.6;cursor:wait}
.ms5-simu{background:#f8fafc;border-radius:12px;padding:10px 14px;margin:8px 0;border:1px solid #e2e8f0}
.ms5-simu-mois{font-family:"Courier New",monospace;font-weight:800;color:#9a3412;margin-bottom:6px}
.ms5-simu .pdl-jauge-barre span{transition:width .8s ease}
.ms5-recit{font-style:italic;color:#334155;margin:8px 0 0;animation:pdl-postit .4s both}

/* --- 7. le juge des faits --- */
.ms5-dossier{position:relative;background:#fffdf7;border:1px solid #e7e5e4;border-left:8px solid #78716c;border-radius:6px;padding:12px 14px 14px;box-shadow:0 6px 16px rgba(0,0,0,.12);animation:ms5-tombe .45s both}
.ms5-dossier b{font-size:17px}
.ms5-dossier p{margin:6px 0 0}
.ms5-tampon-juge{position:absolute;right:10px;top:-14px;rotate:-10deg;border:3px solid;font-weight:900;letter-spacing:.1em;padding:2px 8px;border-radius:6px;font-size:14px;background:rgba(255,255,255,.75);
  animation:ms5-tampon .4s cubic-bezier(.3,1.6,.5,1) both}
.ms5-tampon-juge.rouge{color:#b91c1c;border-color:#b91c1c}
.ms5-tampon-juge.vert{color:#15803d;border-color:#15803d}
.ms5-indices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0}
.ms5-indice{font:inherit;font-weight:600;font-size:13.5px;border:2px solid #e2e8f0;background:#fff;border-radius:10px;padding:10px;cursor:pointer;display:flex;align-items:center;gap:8px;text-align:left;--c:#f59e0b;min-width:0}
.ms5-indice.on{border-color:#f59e0b;background:#fffbeb}
.ms5-verdicts{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:8px}

/* --- le bulletin de paie --- */
.ms5-bulletin .ms5-table td:nth-child(n+2){text-align:right;white-space:nowrap}
.ms5-bul-tete{display:grid;grid-template-columns:1fr 1fr;gap:10px;font-size:13.5px;margin:6px 0}
.ms5-bul-tete>div{border:1px solid #e2e8f0;border-radius:8px;padding:6px 10px}
.ms5-bul-total td{background:#eff6ff;font-weight:800}
.ms5-bul-net td{background:#ecfdf5;font-weight:900;font-size:15px}
.ms5-bul-employeur{margin-top:10px;border:2px dashed #c2410c;border-radius:10px;padding:8px 12px;background:#fff7ed;font-size:13.5px}
.ms5-bul-employeur ul{margin:4px 0 0;padding-left:18px}

/* --- téléphone --- */
@media (max-width:760px){
  .ms5-rail{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}
  .ms5-barre-rail{display:none}
  .ms5-bon{min-height:150px}
  .ms5-four{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ms5-chaine{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:40px 4px 10px}
  .ms5-poste b{font-size:10px}
  .ms5-poste span{font-size:20px}
  .ms5-tdb-tete{display:none}
  .ms5-tdb-ligne{grid-template-columns:14px minmax(0,1fr) auto;grid-template-areas:"l i i" "l v o" "l b b"}
  .ms5-tdb-ligne .ms5-lampe{grid-area:l}
  .ms5-tdb-ind{grid-area:i}
  .ms5-tdb-ligne .ms5-tdb-val:nth-of-type(3){grid-area:v;text-align:left}
  .ms5-tdb-ligne .ms5-tdb-val:nth-of-type(4){grid-area:o}
  .ms5-tdb-btns{grid-area:b;justify-content:flex-start}
  .ms5-enveloppes{grid-template-columns:1fr}
  .ms5-env{min-height:110px}
  .ms5-tour-scene{grid-template-columns:1fr}
  .ms5-formules{grid-template-columns:1fr}
  .ms5-indices{grid-template-columns:1fr}
  .ms5-podium{gap:5px}
  .ms5-cuisto{padding:6px}
  .ms5-cuisto b{font-size:14px}
  .ms5-barq{font-size:12px}
  .ms5-mini-saisie{flex-direction:column}
  .ms5-mini-saisie input{width:58px}
  .ms5-plat{font-size:10.5px}
  .ms5-balance{height:300px}
  .ms5-bul-tete{grid-template-columns:1fr}
  .ms5-epingle{font-size:11px;padding:4px 6px}
}
/* ==== ms5 : fin des styles ==== */
/* ==== ms4 : debut des styles ====
   « Ti Liann » — préfixe ms4-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.ms4). Couleurs : le vert de
   la liane et le brun brillant de la gousse préparée. */
.ms4 .pdl-cta{background:linear-gradient(135deg,#65a30d,#78350f);box-shadow:0 6px 18px rgba(120,53,15,.32)}
.ms4 .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(120,53,15,.42)}
.ms4 .pdl-cta.alt{background:#fff;color:#1a1430}
.ms4 .pdl-opt:hover:not(:disabled){border-color:#65a30d}
.ms4-clair{color:#475569 !important;text-align:center}
.ms4-prog{font-size:13px;font-weight:700;color:#64748b;margin-bottom:8px}
.ms4-petit{font-size:12.5px;color:#64748b}
.pdl-doc-bandeau.ms4-bandeau{background:linear-gradient(90deg,#3f6212,#78350f)}
.pdl-doc-bandeau.ms4-bandeau-rouge{background:linear-gradient(90deg,#b91c1c,#78350f)}
.ms4-badge .pdl-badge-logo{color:#3f6212}
.ms4-tampon{position:relative;right:auto;bottom:auto;display:inline-block;margin:6px 0 0 auto}
@keyframes ms4-secoue{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.ms4-secoue{animation:ms4-secoue .45s}
@keyframes ms4-tombe{from{opacity:0;transform:translateY(-30px) rotateX(40deg) rotate(-3deg)}to{opacity:1;transform:none}}
@keyframes ms4-pouls{0%,100%{box-shadow:0 0 0 0 rgba(250,204,21,.65)}50%{box-shadow:0 0 0 12px rgba(250,204,21,0)}}
/* Un bouton désactivé prend le gris du navigateur si sa couleur n'est pas posée : on la pose. */
.ms4-cran,.ms4-aide-b,.ms4-cote,.ms4-ligne,.ms4-ent-q,.ms4-porte,.ms4-aide-tete{color:#1a1430}
.ms4-table{width:100%;border-collapse:collapse;font-size:13.5px;margin:8px 0}
.ms4-table th,.ms4-table td{border:1px solid #e2e8f0;padding:6px 8px;text-align:left;vertical-align:top}
.ms4-table th{background:#f7fee7}

/* --- l'encart Aide (règle ①) --- */
.ms4-lecon-ecran{display:flex;flex-direction:column;gap:12px;align-items:stretch}
.ms4-lecon-ecran>.pdl-cta{align-self:center}
.ms4-aide{border:2px dashed #facc15;border-radius:14px;background:#fefce8;overflow:hidden}
.ms4-aide-tete{font:inherit;width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;background:none;border:0;padding:10px 14px;cursor:pointer;text-align:left}
.ms4-aide-tete span{font-weight:800;color:#854d0e}
.ms4-aide-tete i{font-style:normal;font-size:12.5px;color:#a16207}
.ms4-aide-corps{padding:0 14px 12px;font-size:14.5px;line-height:1.45;animation:pdl-bulle .3s ease}
.ms4-aide-o{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0}
.ms4-aide-b{font:inherit;font-size:14px;border:2px solid #e2e8f0;background:#fff;border-radius:10px;padding:6px 12px;cursor:pointer}
.ms4-aide-b.bon{border-color:#16a34a;background:#f0fdf4}
.ms4-aide-b.faux{border-color:#dc2626;background:#fef2f2}
.ms4-aide-rep{margin:6px 0 0;color:#3f3f46}

/* --- la liane (le hub) --- */
.ms4-liane-boite{width:100%;color:#fff;text-align:center}
.ms4-liane-titre{font-family:Fraunces,Georgia,serif;font-size:clamp(24px,3.6vw,34px);margin:0;text-shadow:0 4px 20px rgba(0,0,0,.55)}
.ms4-liane-sous{margin:4px 0 10px;opacity:.9;text-shadow:0 2px 8px rgba(0,0,0,.6)}
.ms4-liane{position:relative;display:flex;flex-direction:column-reverse;gap:6px;max-width:720px;margin:0 auto;padding:10px 0}
.ms4-tige{position:absolute;left:50%;top:0;bottom:0;width:12px;margin-left:-6px;border-radius:8px;
  background:linear-gradient(90deg,#365314,#84cc16 45%,#3f6212);box-shadow:0 0 12px rgba(0,0,0,.4);
  -webkit-mask:repeating-linear-gradient(180deg,#000 0 46px,rgba(0,0,0,.75) 46px 50px);mask:repeating-linear-gradient(180deg,#000 0 46px,rgba(0,0,0,.75) 46px 50px)}
.ms4-noeud{position:relative;display:flex;width:50%;animation:pdl-postit .5s ease both}
.ms4-noeud.g{align-self:flex-start;justify-content:flex-end;padding-right:22px}
.ms4-noeud.d{align-self:flex-end;justify-content:flex-start;padding-left:22px}
.ms4-feuille{position:absolute;top:50%;width:46px;height:24px;margin-top:-12px;border-radius:0 100% 0 100%;
  background:linear-gradient(135deg,#a3e635,#3f6212);box-shadow:inset 0 0 0 1px rgba(0,0,0,.15);animation:ms4-vent 4s ease-in-out infinite;transform-origin:0 50%}
.ms4-noeud.g .ms4-feuille{right:-30px;transform:scaleX(-1)}
.ms4-noeud.d .ms4-feuille{left:-30px}
@keyframes ms4-vent{50%{rotate:-7deg}}
.ms4-etape-b{font:inherit;color:#fff;display:flex;align-items:center;gap:10px;text-align:left;cursor:pointer;width:100%;max-width:320px;
  border:2px solid rgba(255,255,255,.22);border-radius:16px;padding:8px 12px;background:linear-gradient(180deg,rgba(20,30,10,.62),rgba(20,30,10,.9));
  backdrop-filter:blur(3px);transition:transform .2s,border-color .2s}
.ms4-noeud.g .ms4-etape-b{flex-direction:row-reverse;text-align:right}
.ms4-etape-b:hover:not(:disabled){transform:translateY(-3px)}
.ms4-etape-b.prochain{border-color:#facc15;animation:ms4-pouls 2s infinite}
.ms4-etape-b.fait{border-color:#a3e635}
.ms4-etape-b.ferme{filter:grayscale(.7) brightness(.92);opacity:.82;cursor:not-allowed}
.ms4-etape-t{display:flex;flex-direction:column;gap:1px;min-width:0}
.ms4-etape-t small{font-size:10.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#d9f99d}
.ms4-etape-t b{font-size:14.5px;line-height:1.2}
.ms4-etape-t i{font-size:11.5px;font-style:normal;opacity:.85;line-height:1.25}
.ms4-fruit{flex-shrink:0;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-size:22px;background:rgba(255,255,255,.95);
  box-shadow:0 4px 12px rgba(0,0,0,.35)}
.ms4-fruit.fleur{background:radial-gradient(circle,#fef9c3,#fde047);animation:ms4-eclot 1.6s ease-in-out infinite alternate}
@keyframes ms4-eclot{to{transform:scale(1.12) rotate(8deg)}}
.ms4-fruit.gousse{background:none;box-shadow:none;position:relative}
.ms4-fruit.gousse::before{content:"";position:absolute;left:50%;top:2px;width:12px;height:42px;margin-left:-6px;border-radius:8px 8px 10px 10px;
  background:linear-gradient(90deg,#1c0a03,#5b2a0c 40%,#2a1205);box-shadow:0 0 0 2px rgba(255,255,255,.12),0 3px 8px rgba(0,0,0,.5);rotate:18deg}
.ms4-fruit.gousse::after{content:"";position:absolute;left:50%;top:8px;width:3px;height:26px;margin-left:-2px;border-radius:3px;background:rgba(255,255,255,.35);rotate:18deg}
.ms4-liane-fin{font-size:18px;font-weight:700;margin-top:10px;text-shadow:0 2px 10px rgba(0,0,0,.6)}
.ms4-tm-ico{font-size:46px;animation:ms4-eclot 1.6s ease-in-out infinite alternate}
.ms4-bravo-gousse{width:16px;height:90px;margin:0 auto 6px;border-radius:9px;background:linear-gradient(90deg,#1c0a03,#6b3410 45%,#2a1205);
  box-shadow:0 0 0 3px #fde68a,0 0 26px rgba(253,230,138,.7);rotate:20deg;animation:pdl-pop .8s ease}

/* --- 1. le curseur main ↔ tête --- */
.ms4-tache{font-size:17px;line-height:1.4;font-weight:600;background:#f7fee7;border-left:6px solid #65a30d;border-radius:12px;padding:14px 16px;
  animation:ms4-tombe .45s ease both;position:relative}
.ms4-tache span{font-family:Georgia,serif;font-size:34px;color:#84cc16;line-height:0;vertical-align:-12px;margin-right:4px}
.ms4-rail{position:relative;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:22px 0 8px;padding-top:34px}
.ms4-rail-fond{position:absolute;left:16.6%;right:16.6%;top:12px;height:10px;border-radius:8px;background:linear-gradient(90deg,#b45309,#a3a3a3,#0e7490)}
.ms4-gousse-pion{position:absolute;top:2px;width:14px;height:32px;margin-left:-7px;border-radius:8px;transition:left .6s cubic-bezier(.3,1.4,.5,1);
  background:linear-gradient(90deg,#1c0a03,#6b3410 45%,#2a1205);box-shadow:0 4px 10px rgba(0,0,0,.4);rotate:90deg;
  transform-origin:center;translate:0 0}
.ms4-rail.pose .ms4-gousse-pion{animation:pdl-pop .4s ease .5s}
.ms4-cran{font:inherit;display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 6px;border:2px solid #e2e8f0;border-radius:12px;background:#fff;cursor:pointer;
  transition:transform .15s,border-color .15s}
.ms4-cran:hover:not(:disabled){transform:translateY(-3px);border-color:#65a30d}
.ms4-cran-ico{font-size:26px}
.ms4-cran b{font-size:13.5px}
.ms4-cran.juste{border-color:#16a34a;background:#f0fdf4;animation:pdl-pop .35s}
.ms4-cran.faux{border-color:#dc2626;background:#fef2f2;animation:pdl-secoue .4s}
.ms4-cran.eteint{opacity:.45}

/* --- deux tas (l'appli ou l'œil · le classeur ou l'établi · ici ou ailleurs) --- */
.ms4-deux-scene{display:grid;grid-template-columns:1fr 1.25fr 1fr;gap:12px;align-items:stretch;margin-top:8px;perspective:900px}
.ms4-carte-vol{align-self:center;background:#fffbeb;border-radius:14px;padding:16px;font-size:16px;line-height:1.4;font-weight:600;text-align:center;
  box-shadow:0 10px 24px rgba(0,0,0,.18),inset 0 0 0 2px #fde68a;animation:ms4-tombe .45s ease both;transition:transform .6s ease,opacity .6s ease}
.ms4-carte-vol small{display:block;font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:#a16207;margin-bottom:4px}
.ms4-carte-vol.part-0{transform:translateX(-36%) rotate(-6deg) scale(.88);opacity:.55}
.ms4-carte-vol.part-1{transform:translateX(36%) rotate(6deg) scale(.88);opacity:.55}
.ms4-cote{font:inherit;display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px 8px;border-radius:16px;cursor:pointer;min-height:170px;
  border:3px solid var(--c);background:linear-gradient(180deg,#fff,color-mix(in srgb,var(--c) 10%,#fff));transition:transform .15s}
.ms4-cote:hover:not(:disabled){transform:translateY(-3px)}
.ms4-cote-ico{font-size:40px;transition:transform .3s}
.ms4-cote b{font-size:15px;color:var(--c)}
.ms4-cote small{font-size:12px;color:#64748b}
.ms4-cote-tas{display:flex;flex-wrap:wrap;gap:3px;justify-content:center;margin-top:auto}
.ms4-cote-tas i{width:16px;height:20px;border-radius:3px;background:var(--c);opacity:.8;animation:pdl-pop .3s}
.ms4-cote.ok{box-shadow:0 0 0 4px rgba(22,163,74,.35)}
.ms4-cote.ok .ms4-cote-ico{transform:scale(1.25) rotate(-8deg)}
.ms4-cote.ko{animation:pdl-secoue .4s;box-shadow:0 0 0 4px rgba(220,38,38,.3)}
.ms4-cote.juste{box-shadow:0 0 0 4px rgba(22,163,74,.45)}
.ms4-deux-formation .ms4-cote-1.ok .ms4-cote-ico{animation:ms4-bus 1s ease forwards}
@keyframes ms4-bus{50%{transform:translateX(18px)}to{transform:translateX(0) scale(1.2)}}
.ms4-deux-classeur .ms4-cote-0 .ms4-cote-tas i{border-radius:2px 6px 2px 2px;background:#fff;border:2px solid var(--c)}
.ms4-deux-appli .ms4-cote-0 .ms4-cote-tas i{border-radius:5px}

/* --- 2. le crayon rouge --- */
.ms4-offre{background:#fffdf7;border-radius:6px;padding:16px 18px 10px;box-shadow:0 10px 26px rgba(0,0,0,.15),inset 0 0 0 1px #e7e5e4;
  background-image:repeating-linear-gradient(180deg,transparent 0 31px,#e0f2fe 31px 32px);animation:ms4-tombe .5s ease both;margin-top:10px}
.ms4-offre-tete{display:flex;flex-direction:column;border-bottom:2px solid #78350f;padding-bottom:6px;margin-bottom:6px}
.ms4-offre-tete b{letter-spacing:.06em;color:#78350f}
.ms4-offre-tete span{font-size:13px;color:#57534e}
.ms4-offre ul{list-style:none;margin:0;padding:0}
.ms4-ligne{font:inherit;position:relative;width:100%;text-align:left;background:none;border:0;padding:6px 4px;cursor:pointer;font-size:15px;line-height:1.35;border-radius:6px}
.ms4-ligne:hover:not(:disabled){background:#fef2f2}
.ms4-trait{position:absolute;left:0;top:50%;height:3px;width:0;background:#dc2626;border-radius:3px;transition:width .35s ease;rotate:-.6deg}
.ms4-ligne.barre .ms4-trait{width:100%}
.ms4-ligne.barre .ms4-ligne-t{color:#991b1b;opacity:.7}
.ms4-ligne.juste{background:#f0fdf4}
.ms4-ligne.faux{background:#fef2f2;box-shadow:inset 3px 0 0 #dc2626}
.ms4-ligne-why{font-size:13px;margin:0 0 6px 10px;color:#166534}
.ms4-ligne-why.ko{color:#b91c1c;font-weight:600}
.ms4-offre-pied{text-align:right;font-family:"Segoe Script","Brush Script MT",cursive;color:#991b1b;font-size:15px;margin-top:6px}
.ms4-annonce h3{margin:6px 0}

/* --- 2 bis. les quatre portes --- */
.ms4-couloir{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:10px 0}
.ms4-palier{background:#f1f5f9;border-radius:12px;padding:8px;position:relative;min-height:110px;transition:background .3s}
.ms4-palier.ouvert{background:#ecfccb;animation:pdl-pop .4s}
.ms4-palier-n{position:absolute;top:-8px;left:-6px;width:24px;height:24px;border-radius:50%;background:#78350f;color:#fff;font-weight:800;font-size:13px;display:grid;place-items:center}
.ms4-palier-t b{font-size:14px;display:block;margin-bottom:3px}
.ms4-palier-t p{margin:0;font-size:12.5px;line-height:1.35;color:#3f3f46}
.ms4-palier-t.vide{display:grid;place-items:center;height:100%;color:#94a3b8;font-size:22px}
.ms4-portes{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;perspective:700px}
.ms4-porte{font:inherit;display:flex;flex-direction:column;align-items:center;gap:6px;background:none;border:0;cursor:pointer;padding:0}
.ms4-porte-battant{display:block;width:70px;height:100px;border-radius:6px 6px 0 0;position:relative;transform-origin:left center;transition:transform .6s ease;
  background:linear-gradient(90deg,#92400e,#b45309 50%,#78350f);box-shadow:inset 0 0 0 4px #78350f,inset 0 0 0 7px #d97706,0 6px 14px rgba(0,0,0,.3)}
.ms4-poignee{position:absolute;right:9px;top:50%;width:8px;height:8px;border-radius:50%;background:#fde68a}
.ms4-porte:hover:not(:disabled) .ms4-porte-battant{transform:rotateY(-18deg)}
.ms4-porte.ouverte .ms4-porte-battant{transform:rotateY(-75deg);opacity:.4}
.ms4-porte b{font-size:13px}

/* --- 2 ter. l'entretien --- */
.ms4-ent-tete{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.ms4-ent-perso{display:flex;align-items:center;gap:8px}
.ms4-ent-perso img{width:58px;height:58px;border-radius:50%;object-fit:cover;object-position:top;box-shadow:0 0 0 3px #fde68a}
.ms4-ent-perso small{color:#64748b}
.ms4-ent-score{display:flex;flex-direction:column;font-size:13.5px;text-align:right}
.ms4-ent-score .rouge{color:#dc2626}
.ms4-ent-rep{background:#f0f9ff;border-radius:14px;padding:10px 14px;margin:6px 0;font-size:15px;animation:pdl-bulle .3s}
.ms4-ent-stop{background:#fef2f2;border:1px solid #fecaca;border-radius:14px;padding:10px 14px;margin:6px 0;font-size:14.5px;animation:pdl-secoue .4s}
.ms4-ent-cartes{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:8px}
.ms4-ent-q{font:inherit;font-size:14px;text-align:left;border:2px solid #e2e8f0;background:#fff;border-radius:12px;padding:10px;cursor:pointer;transition:transform .15s}
.ms4-ent-q:hover:not(:disabled){transform:translateY(-2px);border-color:#65a30d}
.ms4-ent-q.ok{border-color:#16a34a;background:#f0fdf4}
.ms4-ent-q.ko{border-color:#dc2626;background:#fef2f2;text-decoration:line-through;text-decoration-color:#dc2626}

/* --- 3. les trois sceaux --- */
.ms4-clause{font-size:16.5px;font-weight:600;line-height:1.4;background:#fffbeb;border-radius:10px;padding:12px 14px;border:2px dashed #d97706;animation:ms4-tombe .45s both}
.ms4-parchemin{margin-top:12px;border-radius:8px;padding:14px 12px;background:linear-gradient(180deg,#fef3c7,#fde68a 12%,#fef3c7 88%,#fcd34d);
  box-shadow:0 10px 26px rgba(0,0,0,.2),inset 0 0 30px rgba(146,64,14,.18)}
.ms4-parchemin-t{text-align:center;font-family:Georgia,serif;font-weight:700;letter-spacing:.08em;color:#78350f;font-size:13.5px;margin-bottom:10px}
.ms4-sceaux-ligne{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.ms4-sceau-col{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px}
.ms4-sceau-col b{font-size:13px;color:#57534e}
.ms4-sceau-col ul{margin:0;padding:0;list-style:none;font-size:12px;line-height:1.3;color:#44403c;font-family:Georgia,serif;font-style:italic}
.ms4-sceau-col li{animation:pdl-li .4s both;margin-top:3px}
.ms4-sceau{font:inherit;width:70px;height:70px;border-radius:50%;border:0;cursor:pointer;font-size:28px;display:grid;place-items:center;
  background:radial-gradient(circle at 35% 30%,color-mix(in srgb,var(--c) 55%,#fff),var(--c) 70%);color:#fff;
  box-shadow:0 4px 0 color-mix(in srgb,var(--c) 70%,#000),0 8px 16px rgba(0,0,0,.25);transition:transform .15s;opacity:.55}
.ms4-sceau.cire{opacity:1}
.ms4-sceau:hover:not(:disabled){transform:scale(1.08);opacity:1}
.ms4-sceau.ok{opacity:1;animation:ms4-frappe .5s ease}
.ms4-sceau.ko{opacity:1;animation:pdl-secoue .4s;filter:grayscale(.6)}
.ms4-sceau.juste{opacity:1;box-shadow:0 0 0 4px #16a34a,0 8px 16px rgba(0,0,0,.25)}
@keyframes ms4-frappe{0%{transform:translateY(-30px) scale(1.3)}60%{transform:translateY(0) scale(.92)}to{transform:none}}

/* --- 3 bis. le fil --- */
.ms4-fil-scene{display:grid;grid-template-columns:130px 1fr 1.6fr;align-items:center;gap:6px;margin:8px 0}
.ms4-fil-maison{display:flex;flex-direction:column;align-items:center;text-align:center;background:#ecfccb;border-radius:14px;padding:10px 6px}
.ms4-fil-maison span{font-size:34px}
.ms4-fil-maison small{font-size:11px;color:#57534e}
.ms4-fil-svg{width:100%;height:60px;overflow:visible}
.ms4-fil-svg path{fill:none;stroke:#a8a29e;stroke-width:3;stroke-dasharray:6 5;transition:all .6s ease}
.ms4-fil-svg.relie path{stroke:#7c3aed;stroke-dasharray:none;stroke-width:4}
.ms4-fil-svg.coupe .ms4-fil-a{transform:translate(-6px,10px) rotate(4deg);stroke:#dc2626;stroke-dasharray:none;opacity:.6}
.ms4-fil-svg.coupe .ms4-fil-b{transform:translate(6px,14px) rotate(-4deg);stroke:#dc2626;stroke-dasharray:none;opacity:.6}
.ms4-fil-carte{background:#fff;border-radius:14px;padding:12px 14px;box-shadow:0 8px 20px rgba(0,0,0,.14),inset 0 0 0 2px #e9d5ff;animation:ms4-tombe .45s both}
.ms4-fil-carte b{font-size:16px;color:#6d28d9}
.ms4-fil-carte p{margin:4px 0 0;font-size:14.5px;line-height:1.4}
.ms4-fil-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ms4-fil-btns .pdl-opt{justify-content:center;font-weight:700}

/* --- le calcul --- */
.ms4-calcul-saisie{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0}
.ms4-calcul-saisie input{font:inherit;font-size:20px;font-weight:700;width:170px;padding:8px 12px;border:2px solid #cbd5e1;border-radius:12px}
.ms4-calcul-saisie input:focus{outline:none;border-color:#65a30d}
.ms4-rappel{background:#fef3c7;border:1px solid #fcd34d;border-left:5px solid #f59e0b;border-radius:10px;padding:10px 14px;margin:6px 0 10px;font-size:15px;line-height:1.5;color:#422006}
.ms4-rappel b:first-child{color:#92400e}
.ms4-formule-b{font:inherit;font-size:13.5px;border:2px dashed #facc15;background:#fefce8;color:#854d0e;border-radius:10px;padding:5px 10px;cursor:pointer}
.ms4-formule{background:#fefce8;border-radius:10px;padding:8px 12px;font-family:"Courier New",monospace;font-weight:700;color:#713f12;animation:pdl-bulle .3s}

/* --- 5. les trajectoires --- */
.ms4-trajets{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:10px 0}
.ms4-trajet{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;background:#f5f3ff;border-radius:14px;padding:12px;animation:ms4-tombe .5s both}
.ms4-trajet b{font-size:17px}
.ms4-trajet-avant{background:#fff;border-radius:10px;padding:6px 10px;font-size:14px}
.ms4-trajet-fleche{font-size:12px;color:#7c3aed;font-weight:700}
.ms4-trajet-apres{background:#ecfccb;border-radius:10px;padding:6px 10px;font-size:14px;font-weight:700}

/* --- 6. l'inspection --- */
.ms4-insp-scene{position:relative;border-radius:14px;overflow:hidden;margin-top:8px;box-shadow:0 8px 22px rgba(0,0,0,.25);aspect-ratio:16/9;background:#292524}
.ms4-insp-scene img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(1.05) contrast(1.05)}
.ms4-point{position:absolute;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;border:3px solid #fff;cursor:pointer;font-size:20px;
  display:grid;place-items:center;background:rgba(250,204,21,.92);animation:ms4-pouls 1.8s infinite;box-shadow:0 4px 12px rgba(0,0,0,.5)}
.ms4-point.on{transform:scale(1.15);background:#fde047}
.ms4-point.ok{background:#16a34a;color:#fff;animation:none}
.ms4-point.ko{background:#dc2626;color:#fff;animation:none}
.ms4-insp-compte{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:8px 0}
.ms4-insp-compte span{font-size:12.5px;font-weight:700;border-radius:99px;padding:3px 10px;background:color-mix(in srgb,var(--c) 14%,#fff);color:var(--c)}
.ms4-insp-fiche{background:#fff7ed;border-radius:14px;padding:12px 14px;border-left:6px solid #ea580c;animation:ms4-tombe .4s both}
.ms4-insp-fiche p{margin:6px 0;font-size:15.5px;line-height:1.4}
.ms4-insp-dims{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.ms4-dim{justify-content:center;font-weight:700;border-color:var(--c) !important;color:var(--c)}
.ms4-insp-why.ok{color:#166534;font-weight:600}
.ms4-insp-why.ko{color:#b45309;font-weight:600}
.ms4-mesures{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0;padding:12px;border-radius:14px;
  background:#d6b38a;background-image:radial-gradient(#b08454 1px,transparent 1.5px);background-size:9px 9px}
.ms4-mesure{background:#fff;border-radius:6px;padding:10px;box-shadow:0 6px 12px rgba(0,0,0,.2);border-top:6px solid var(--c);rotate:-1deg;animation:ms4-tombe .5s both}
.ms4-mesure:nth-child(2){rotate:1.2deg}
.ms4-mesure b{color:var(--c);font-size:14px}
.ms4-mesure p{margin:6px 0 0;font-size:13.5px;line-height:1.35}
.ms4-thermo-boite{display:flex;align-items:flex-end;justify-content:center;gap:26px;margin:0 0 10px;flex-wrap:wrap}
.ms4-thermo{display:flex;flex-direction:column;align-items:center;gap:2px;position:relative}
.ms4-thermo-tube{width:22px;height:120px;border-radius:12px 12px 0 0;background:#f1f5f9;box-shadow:inset 0 0 0 2px #cbd5e1;position:relative;overflow:hidden}
.ms4-thermo-tube i{position:absolute;left:4px;right:4px;bottom:0;border-radius:8px 8px 0 0;transform-origin:bottom;animation:ms4-monte 1.4s ease both}
.ms4-thermo-tube i.avant,.ms4-thermo-boule.avant{background:#dc2626}
.ms4-thermo-tube i.apres,.ms4-thermo-boule.apres{background:#16a34a}
@keyframes ms4-monte{from{transform:scaleY(0)}to{transform:scaleY(1)}}
.ms4-thermo-boule{width:36px;height:36px;border-radius:50%;margin-top:-8px;box-shadow:inset 0 0 0 3px rgba(0,0,0,.12)}
.ms4-thermo b{font-size:17px}
.ms4-thermo small{font-size:11.5px;color:#64748b}
.ms4-thermo-leg{display:flex;flex-direction:column;font-size:13px;color:#475569;max-width:200px}

/* --- 7. le memory --- */
.ms4-memory{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:8px;margin-top:10px}
.ms4-mcarte{font:inherit;border:0;background:none;padding:0;cursor:pointer;height:110px;perspective:600px}
.ms4-mcarte-in{display:block;position:relative;width:100%;height:100%;transition:transform .5s;transform-style:preserve-3d}
.ms4-mcarte.vue .ms4-mcarte-in{transform:rotateY(180deg)}
.ms4-mcarte-dos,.ms4-mcarte-face{position:absolute;inset:0;border-radius:12px;display:grid;place-items:center;backface-visibility:hidden;-webkit-backface-visibility:hidden;padding:8px}
.ms4-mcarte-dos{font-size:30px;background:linear-gradient(135deg,#3f6212,#65a30d);box-shadow:0 4px 10px rgba(0,0,0,.25),inset 0 0 0 3px rgba(255,255,255,.25)}
.ms4-mcarte-face{transform:rotateY(180deg);background:#fff;box-shadow:0 4px 10px rgba(0,0,0,.18),inset 0 0 0 2px #d6d3d1;font-size:12.5px;line-height:1.3;text-align:center}
.ms4-mcarte-face.mot{font-size:15px;font-weight:800;color:#78350f;background:#fef3c7}
.ms4-mcarte.trouvee .ms4-mcarte-face{box-shadow:0 0 0 3px #16a34a;background:#f0fdf4}

/* --- 7 bis. la boîte de vanille --- */
.ms4-boite{margin:0 auto 10px;max-width:520px;border-radius:10px;overflow:hidden;box-shadow:0 10px 24px rgba(0,0,0,.25)}
.ms4-boite-couv{background:linear-gradient(90deg,#78350f,#a16207,#78350f);color:#fef3c7;text-align:center;font-family:Georgia,serif;letter-spacing:.2em;font-size:12px;padding:6px}
.ms4-boite-fond{display:flex;justify-content:center;gap:12px;padding:12px;min-height:94px;
  background:repeating-linear-gradient(90deg,#d6b38a 0 14px,#c9a16e 14px 16px)}
.ms4-gousse{width:12px;height:70px;border-radius:7px;background:rgba(255,255,255,.35);box-shadow:inset 0 0 0 2px rgba(120,53,15,.25);rotate:8deg}
.ms4-gousse.bonne{background:linear-gradient(90deg,#1c0a03,#6b3410 45%,#2a1205);box-shadow:0 3px 6px rgba(0,0,0,.4);animation:ms4-frappe .5s ease}
.ms4-gousse.verte{background:linear-gradient(90deg,#3f6212,#84cc16);animation:ms4-frappe .5s ease}
.ms4-grade{text-align:center}
.ms4-grade-ico{font-size:64px;animation:pdl-pop .7s ease}
.ms4-grade h3{font-family:Fraunces,Georgia,serif;font-size:24px;margin:6px 0}

/* --- les documents --- */
.ms4-art{margin:8px 0}
.ms4-art ul{margin:4px 0 0 18px;padding:0}
.ms4-signatures{display:flex;justify-content:space-around;font-family:"Segoe Script","Brush Script MT",cursive;font-size:17px;color:#1e3a8a;margin-top:12px}
.ms4-profil{margin:10px 0}
.ms4-profil-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ms4-profil-2 i{font-style:normal;font-weight:700;font-size:13px}
.ms4-profil-2 ul{margin:4px 0 0 16px;padding:0;font-size:13.5px}

/* --- téléphone --- */
@media (max-width:700px){
  .ms4-noeud{width:100%;padding:0 0 0 34px !important;justify-content:flex-start !important;align-self:stretch !important}
  .ms4-tige{left:18px;margin-left:0}
  .ms4-noeud .ms4-feuille{left:6px !important;right:auto !important;transform:none !important;width:30px;height:16px;margin-top:-8px}
  .ms4-noeud.g .ms4-etape-b{flex-direction:row;text-align:left}
  .ms4-etape-b{max-width:none}
  .ms4-deux-scene{grid-template-columns:1fr 1fr}
  .ms4-carte-vol{grid-column:1/-1;grid-row:1}
  .ms4-cote{min-height:120px}
  .ms4-carte-vol.part-0,.ms4-carte-vol.part-1{transform:scale(.95);opacity:.7}
  .ms4-couloir,.ms4-portes{grid-template-columns:repeat(2,1fr)}
  .ms4-ent-cartes{grid-template-columns:1fr}
  .ms4-sceau{width:54px;height:54px;font-size:22px}
  .ms4-sceaux-ligne{gap:6px}
  .ms4-sceau-col b{font-size:11.5px}
  .ms4-fil-scene{grid-template-columns:90px 1fr;grid-template-rows:auto auto}
  .ms4-fil-carte{grid-column:1/-1}
  .ms4-insp-dims,.ms4-mesures,.ms4-trajets{grid-template-columns:1fr}
  .ms4-point{width:36px;height:36px;margin:-18px 0 0 -18px;font-size:16px}
  .ms4-memory{grid-template-columns:repeat(2,1fr)}
  .ms4-profil-2{grid-template-columns:1fr}
  .ms4-rail{gap:4px}
  .ms4-cran b{font-size:12px}
}
/* ==== ms4 : fin des styles ==== */
/* ==== ms3 : debut des styles ====
   « Fèt Lanmèr ! » — préfixe ms3-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.ms3). Couleurs : le turquoise
   du t-shirt de l'équipe, le violet et l'orange des lumières de scène. */
.ms3 .pdl-cta{background:linear-gradient(135deg,#0d9488,#7c3aed);box-shadow:0 6px 18px rgba(124,58,237,.3)}
.ms3 .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(124,58,237,.42)}
.ms3 .pdl-cta.alt{background:#fff;color:#1a1430}
.pdl-doc-bandeau.ms3-bandeau{background:linear-gradient(90deg,#0d9488,#7c3aed 60%,#f97316)}
.ms3-badge .pdl-badge-logo{color:#0d9488}
.ms3-tampon{position:relative;right:auto;bottom:auto;display:inline-block;margin:6px 0 0 auto}

/* --- la progression d'un exercice --- */
.ms3-prog{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700;color:#64748b;margin-bottom:10px}
.ms3-prog-barre{flex:1;height:6px;border-radius:99px;background:#e2e8f0;overflow:hidden}
.ms3-prog-barre i{display:block;height:100%;background:linear-gradient(90deg,#0d9488,#7c3aed);transition:width .5s}

/* --- le compte à rebours --- */
.ms3-compte{display:inline-flex;align-items:center;gap:4px;padding:6px 10px;border-radius:14px;background:linear-gradient(180deg,#1e1b4b,#0f172a);
  border:2px solid #2dd4bf;box-shadow:0 0 22px rgba(45,212,191,.35),inset 0 2px 6px rgba(0,0,0,.6);font-family:"Courier New",monospace}
.ms3-compte-j,.ms3-compte-moins{color:#5eead4;font-weight:800;font-size:26px}
.ms3-compte-chiffre{display:inline-block;width:30px;height:42px;line-height:42px;text-align:center;border-radius:6px;background:linear-gradient(180deg,#312e81,#4c1d95 50%,#312e81);
  color:#fff;font-weight:900;font-size:28px;animation:ms3-flip .6s cubic-bezier(.2,.9,.3,1.2) both;box-shadow:inset 0 -2px 0 rgba(0,0,0,.4)}
.ms3-compte.ms3-petit .ms3-compte-chiffre{width:22px;height:30px;line-height:30px;font-size:20px}
@keyframes ms3-flip{from{transform:rotateX(90deg);opacity:0}to{transform:none;opacity:1}}

/* --- le plan du festival (hub) --- */
.ms3-hub{width:100%;color:#fff;display:flex;flex-direction:column;gap:14px;align-items:center}
.ms3-hub-tete{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}
.ms3-hub-tete h2{font-family:Fraunces,Georgia,serif;font-size:clamp(24px,3.6vw,34px);margin:0;text-shadow:0 4px 20px rgba(0,0,0,.5)}
.ms3-hub-tete p{margin:0;font-weight:600;text-shadow:0 2px 10px rgba(0,0,0,.6)}
.ms3-carte{position:relative;width:100%;max-width:760px;aspect-ratio:16/8;border-radius:18px;overflow:hidden;
  background:url(img/lanbi/site.webp) center/cover;box-shadow:0 18px 40px rgba(0,0,0,.45);border:3px solid rgba(255,255,255,.85);
  transform:perspective(900px) rotateX(14deg);transform-origin:center bottom}
.ms3-carte-svg{position:absolute;inset:0;width:100%;height:100%}
.ms3-carte-chemin{fill:none;stroke:#fde68a;stroke-width:.8;stroke-dasharray:2 1.6;vector-effect:non-scaling-stroke;stroke-width:3;animation:ms3-pointilles 1.6s linear infinite;
  filter:drop-shadow(0 0 3px rgba(0,0,0,.6))}
@keyframes ms3-pointilles{to{stroke-dashoffset:-7.2}}
.ms3-epingle{position:absolute;transform:translate(-50%,-50%);width:46px;height:46px;border-radius:50% 50% 50% 4px;rotate:-45deg;border:3px solid #fff;
  background:#7c3aed;cursor:pointer;display:grid;place-items:center;box-shadow:0 6px 14px rgba(0,0,0,.45);transition:transform .2s;padding:0;font:inherit}
.ms3-epingle span{rotate:45deg;font-size:20px}
.ms3-epingle.fait{background:#0d9488}
.ms3-epingle.ferme{background:#475569;cursor:not-allowed;opacity:.85}
.ms3-epingle.prochain{background:#f97316;animation:ms3-pulse 1.4s ease-in-out infinite}
.ms3-epingle:hover:not(:disabled){transform:translate(-50%,-60%)}
@keyframes ms3-pulse{0%,100%{box-shadow:0 0 0 0 rgba(249,115,22,.7),0 6px 14px rgba(0,0,0,.45)}50%{box-shadow:0 0 0 14px rgba(249,115,22,0),0 6px 14px rgba(0,0,0,.45)}}
.ms3-hub-liste{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;width:100%}
.ms3-borne{position:relative;font:inherit;color:#fff;border:2px solid rgba(255,255,255,.22);border-radius:14px;min-height:150px;padding:10px 6px;cursor:pointer;
  background:linear-gradient(180deg,rgba(30,27,75,.65),rgba(15,23,42,.9));display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;
  transition:transform .2s,border-color .2s;animation:pdl-postit .5s ease both;backdrop-filter:blur(3px);min-width:0}
.ms3-borne:hover:not(:disabled){transform:translateY(-4px)}
.ms3-borne.prochain{border-color:#f97316;box-shadow:0 0 0 3px rgba(249,115,22,.35),0 12px 30px rgba(0,0,0,.4)}
.ms3-borne.fait{border-color:#2dd4bf}
.ms3-borne.ferme{opacity:.55;cursor:not-allowed}
.ms3-borne-j{font-family:"Courier New",monospace;font-weight:900;color:#5eead4;font-size:15px}
.ms3-borne-ico{font-size:26px}
.ms3-borne b{font-size:13.5px;line-height:1.25}
.ms3-borne i{font-size:11.5px;opacity:.85;line-height:1.25}
.ms3-tm .ms3-compte{margin-bottom:6px}

/* --- 1a. les faux pas --- */
.ms3-fp-scene{position:relative;border-radius:14px;padding:14px 16px 46px;background:linear-gradient(135deg,#ecfeff,#f5f3ff);border:2px solid #c4b5fd;
  font-size:15.5px;line-height:1.5;transition:background .5s,filter .5s;overflow:hidden}
.ms3-fp-scene p{margin:6px 0 0}
.ms3-fp-quand{font-weight:800;color:#6d28d9;font-size:14px}
.ms3-fp-salle{position:absolute;left:12px;right:12px;bottom:8px;display:flex;justify-content:space-around;font-size:24px}
.ms3-fp-salle span{transition:transform .4s,filter .4s}
.ms3-fp-scene.ms3-silence{background:linear-gradient(135deg,#e2e8f0,#cbd5e1);border-color:#94a3b8}
.ms3-fp-scene.ms3-silence .ms3-fp-salle span{transform:translateY(-4px) rotate(-8deg);filter:grayscale(.8)}
.ms3-fp-scene.ms3-silence::after{content:"… silence …";position:absolute;right:14px;top:12px;font-style:italic;color:#475569;font-weight:700;animation:pdl-bulle .4s ease}
.ms3-fp-scene.ms3-chaleur{background:linear-gradient(135deg,#ccfbf1,#fef3c7);border-color:#2dd4bf}
.ms3-fp-scene.ms3-chaleur .ms3-fp-salle span{animation:ms3-saute .6s ease both}
@keyframes ms3-saute{40%{transform:translateY(-10px)}}
.ms3-fp-reac{margin-top:10px;padding:10px 12px;border-radius:12px;background:#f8fafc;border-left:4px solid #7c3aed;font-size:15px;animation:pdl-bulle .35s ease}
.ms3-regle{margin-top:10px;padding:10px 12px;border-radius:4px;background:#fefce8;border:1px dashed #ca8a04;font-family:"Comic Sans MS","Segoe Print",cursive;font-size:15px;
  transform:rotate(-.6deg);animation:pdl-bulle .45s ease;display:flex;flex-wrap:wrap;gap:6px;align-items:baseline}
.ms3-regle-type{font-family:inherit;font-weight:800;font-size:12px;padding:2px 8px;border-radius:99px;color:#fff;font-style:normal}
.ms3-type-norme{background:#2563eb;--ms3c:#2563eb}
.ms3-type-code{background:#db2777;--ms3c:#db2777}
.ms3-type-rituel{background:#ea580c;--ms3c:#ea580c}

/* --- 1b. le tamis --- */
.ms3-tamis-haut{height:110px;display:grid;place-items:center;position:relative}
.ms3-tamis-carte{max-width:520px;padding:14px 18px;background:#fff;border-radius:12px;border:2px solid #c4b5fd;box-shadow:0 10px 24px rgba(0,0,0,.15);
  font-weight:600;font-size:15.5px;text-align:center;animation:ms3-descend .5s cubic-bezier(.2,.9,.3,1.2) both;transition:transform .45s ease-in,opacity .45s ease-in}
@keyframes ms3-descend{from{transform:translateY(-60px) rotate(-4deg);opacity:0}to{transform:none;opacity:1}}
.ms3-tamis-carte.ms3-tombe-0{animation:ms3-tombe-0 .5s ease-in forwards}
.ms3-tamis-carte.ms3-tombe-1{animation:ms3-tombe-1 .5s ease-in forwards}
.ms3-tamis-carte.ms3-tombe-2{animation:ms3-tombe-2 .5s ease-in forwards}
@keyframes ms3-tombe-0{to{transform:translate(-60%,130px) scale(.4) rotate(-14deg);opacity:0}}
@keyframes ms3-tombe-1{to{transform:translate(0,130px) scale(.4);opacity:0}}
@keyframes ms3-tombe-2{to{transform:translate(60%,130px) scale(.4) rotate(14deg);opacity:0}}
.ms3-tamis-trous{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:10px}
.ms3-trou{font:inherit;border:0;border-radius:50% 50% 18px 18px/30% 30% 18px 18px;padding:18px 8px 12px;color:#fff;cursor:pointer;display:flex;flex-direction:column;
  align-items:center;gap:4px;text-align:center;box-shadow:inset 0 14px 22px rgba(0,0,0,.35),0 6px 16px rgba(0,0,0,.15);transition:transform .2s;min-width:0}
.ms3-trou:hover:not(:disabled){transform:translateY(-3px)}
.ms3-trou b{font-size:18px}
.ms3-trou i{font-size:12px;opacity:.95;line-height:1.25}
.ms3-trou.bon{outline:4px solid #22c55e;outline-offset:2px}
.ms3-trou.faux{animation:pdl-secoue .4s ease}
.ms3-trou-pile{display:flex;flex-wrap:wrap;gap:3px;justify-content:center;min-height:10px}
.ms3-trou-pile em{width:12px;height:8px;border-radius:2px;background:rgba(255,255,255,.85)}

/* --- les gros boutons à deux choix --- */
.ms3-duo{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.ms3-gros-bouton{font:inherit;font-weight:800;font-size:17px;color:#fff;border:0;border-radius:14px;padding:14px 10px;cursor:pointer;display:flex;flex-direction:column;
  gap:4px;align-items:center;text-align:center;box-shadow:0 6px 0 rgba(0,0,0,.2),0 10px 20px rgba(0,0,0,.12);transition:transform .12s,box-shadow .12s;min-width:0}
.ms3-gros-bouton i{font-weight:500;font-size:12.5px;opacity:.95}
.ms3-gros-bouton:active{transform:translateY(4px);box-shadow:0 2px 0 rgba(0,0,0,.2)}
.ms3-gros-bouton.ms3-rouge{background:linear-gradient(180deg,#ef4444,#b91c1c)}
.ms3-gros-bouton.ms3-vert{background:linear-gradient(180deg,#22c55e,#15803d)}
.ms3-gros-bouton.ms3-violet{background:linear-gradient(180deg,#8b5cf6,#6d28d9)}
.ms3-gros-bouton.ms3-bleu{background:linear-gradient(180deg,#0ea5e9,#0369a1)}
.ms3-gros-bouton.ms3-orange{background:linear-gradient(180deg,#fb923c,#c2410c)}
.ms3-gros-bouton.ms3-or{background:linear-gradient(180deg,#facc15,#b45309)}

/* --- 2a. le détecteur --- */
.ms3-detect-ecran{position:relative;border-radius:16px;padding:16px 18px 20px;background:#0b1020;color:#e2e8f0;border:3px solid #334155;overflow:hidden;min-height:150px;
  box-shadow:inset 0 0 30px rgba(45,212,191,.12)}
.ms3-detect-oreille{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#5eead4;font-weight:700}
.ms3-detect-phrase{font-size:19px;line-height:1.45;font-weight:600;margin:10px 0 0;animation:pdl-bulle .4s ease}
.ms3-detect-laser{position:absolute;left:0;right:0;height:3px;top:0;background:linear-gradient(90deg,transparent,#2dd4bf,transparent);box-shadow:0 0 14px #2dd4bf;opacity:0}
.ms3-detect-ecran.ms3-scan .ms3-detect-laser{opacity:1;animation:ms3-laser 2.2s ease-in-out infinite}
@keyframes ms3-laser{0%,100%{top:6%}50%{top:92%}}
.ms3-detect-ecran.ms3-alarme{border-color:#ef4444;animation:ms3-alarme .5s ease 3}
@keyframes ms3-alarme{50%{box-shadow:inset 0 0 40px rgba(239,68,68,.55)}}
.ms3-detect-ecran.ms3-calme{border-color:#22c55e;box-shadow:inset 0 0 30px rgba(34,197,94,.25)}
.ms3-gen{background:#ef4444;color:#fff;border-radius:4px;padding:0 3px;animation:ms3-surligne .6s ease both}
@keyframes ms3-surligne{from{background:transparent;color:inherit}}
.ms3-detect-tampon{position:absolute;right:12px;bottom:8px;border:3px solid currentColor;border-radius:8px;padding:2px 10px;font-weight:900;font-size:13px;transform:rotate(-6deg);
  animation:pdl-tampon .4s ease both;background:rgba(0,0,0,.4)}
.ms3-detect-ecran.ms3-alarme .ms3-detect-tampon{color:#fca5a5}
.ms3-detect-ecran.ms3-calme .ms3-detect-tampon{color:#86efac}

/* --- 2b. la balance --- */
.ms3-bal-citation{display:flex;gap:12px;align-items:flex-start;background:#faf5ff;border-radius:14px;padding:12px;border:1px solid #e9d5ff}
.ms3-bal-citation img{width:56px;height:56px;border-radius:50%;object-fit:cover;flex-shrink:0;border:3px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.ms3-bal-citation p{margin:4px 0 0;font-size:16px;font-style:italic}
.ms3-bal-scene{position:relative;height:150px;margin:14px auto 0;max-width:460px}
.ms3-bal-pied{position:absolute;left:50%;bottom:0;width:14px;height:120px;transform:translateX(-50%);background:linear-gradient(90deg,#78350f,#b45309,#78350f);border-radius:6px 6px 0 0}
.ms3-bal-pied::after{content:"";position:absolute;bottom:0;left:-40px;width:94px;height:12px;border-radius:8px;background:#78350f}
.ms3-bal-fleau{position:absolute;left:6%;right:6%;top:24px;height:8px;border-radius:99px;background:linear-gradient(180deg,#d97706,#92400e);transition:transform .8s cubic-bezier(.3,1.6,.5,1)}
.ms3-bal-plateau{position:absolute;top:8px;width:42%;min-height:66px;transform-origin:top center;transition:transform .8s cubic-bezier(.3,1.6,.5,1);display:flex;flex-direction:column;align-items:center;justify-content:flex-end;
  border-bottom:6px solid #92400e;border-radius:0 0 50% 50%/0 0 40% 40%;background:rgba(253,230,138,.35);padding:6px 4px 4px}
.ms3-bal-plateau.ms3-g{left:-8%}
.ms3-bal-plateau.ms3-d{right:-8%}
.ms3-bal-plateau span{display:flex;flex-wrap:wrap;gap:2px;justify-content:center}
.ms3-bal-plateau img{width:26px;height:26px;border-radius:50%;object-fit:cover;border:2px solid #fff;animation:ms3-descend .4s ease both}
.ms3-bal-plateau b{font-size:12px;color:#78350f;white-space:nowrap}

/* --- 3a. les casquettes --- */
.ms3-casq-tables{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ms3-casq-table{border-radius:14px;padding:10px;background:#f8fafc;border:2px solid #e2e8f0;font-size:13px;transition:transform .3s,border-color .3s,box-shadow .3s;min-width:0}
.ms3-casq-table.ms3-ici{border-color:#7c3aed;box-shadow:0 0 0 4px rgba(124,58,237,.15);transform:translateY(-4px)}
.ms3-casq-ico{font-size:22px}
.ms3-casq-table b{display:block;font-size:13.5px;line-height:1.25}
.ms3-casq-table i{color:#64748b;font-size:12px}
.ms3-casq-table p{margin:6px 0 0;line-height:1.35}
.ms3-casq-poses{display:flex;flex-direction:column;gap:4px;margin-top:6px}
.ms3-casq-poses span,.ms3-etiq{font-size:12px;border-radius:8px;padding:3px 6px;animation:pdl-bulle .3s ease}
.ms3-casq-poses .ms3-st,.ms3-etiq.ms3-st{background:#dbeafe;color:#1e3a8a}
.ms3-casq-poses .ms3-id,.ms3-etiq.ms3-id{background:#ffedd5;color:#9a3412}
.ms3-etiq{display:inline-block;margin:2px 4px 2px 0}
.ms3-casq-etiq{display:flex;align-items:center;gap:10px;justify-content:center;margin-top:12px;font-weight:700;font-size:17px;padding:10px 14px;border-radius:99px;
  background:#fff;border:2px dashed #7c3aed;animation:ms3-descend .45s ease both}
.ms3-casq-etiq img{width:44px;height:44px;border-radius:50%;object-fit:cover}

/* --- 3b. le miroir --- */
.ms3-miroir-txt{font-size:15.5px;line-height:1.5;background:#f8fafc;border-radius:12px;padding:10px 12px;margin:0 0 6px}
.ms3-miroir-cadres{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ms3-cadre{position:relative;font:inherit;font-weight:700;font-size:15.5px;min-height:110px;border-radius:50% 50% 14px 14px/38% 38% 14px 14px;border:6px solid #b45309;
  background:linear-gradient(135deg,#e0f2fe,#f8fafc 45%,#cffafe);cursor:pointer;overflow:hidden;padding:20px 12px;box-shadow:inset 0 0 20px rgba(14,116,144,.25),0 6px 16px rgba(0,0,0,.15)}
.ms3-cadre-reflet{position:absolute;top:-40%;left:-60%;width:40%;height:180%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.85),transparent);transform:rotate(20deg);
  animation:ms3-reflet 3s ease-in-out infinite}
@keyframes ms3-reflet{0%{left:-60%}60%,100%{left:130%}}
.ms3-cadre.bon{border-color:#16a34a;background:linear-gradient(135deg,#dcfce7,#f0fdf4)}
.ms3-cadre.faux{border-color:#dc2626;animation:pdl-secoue .4s ease}
.ms3-cadre.eteint{opacity:.5}

/* --- 4a. le talkie --- */
.ms3-schema{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-bottom:10px}
.ms3-schema-case{font-size:12.5px;font-weight:700;padding:4px 10px;border-radius:99px;background:#f1f5f9;color:#94a3b8;border:1px dashed #cbd5e1;transition:all .3s}
.ms3-schema-case.on{background:#ccfbf1;color:#115e59;border:1px solid #2dd4bf;animation:pdl-pop .35s ease}
.ms3-radio{display:flex;flex-direction:column;align-items:center;margin:4px auto 8px;max-width:440px}
.ms3-radio-antenne{width:12px;height:34px;border-radius:6px 6px 0 0;background:#1f2937;margin-left:60%}
.ms3-radio-corps{width:100%;border-radius:22px;padding:14px;background:linear-gradient(180deg,#334155,#0f172a);box-shadow:0 12px 26px rgba(0,0,0,.35),inset 0 2px 0 rgba(255,255,255,.12)}
.ms3-radio-ecran{border-radius:10px;padding:10px 12px;background:linear-gradient(180deg,#bef264,#84cc16);color:#1a2e05;font-family:"Courier New",monospace;font-weight:700;font-size:15px;
  min-height:70px;box-shadow:inset 0 2px 6px rgba(0,0,0,.35);animation:ms3-gresil .5s steps(4) 1}
@keyframes ms3-gresil{0%{filter:brightness(1.6) contrast(.6)}100%{filter:none}}
.ms3-radio-ecran p{margin:4px 0 0}
.ms3-radio-led{display:inline-block;width:10px;height:10px;border-radius:50%;background:#ef4444;box-shadow:0 0 8px #ef4444;animation:ms3-led 1s steps(2) infinite}
@keyframes ms3-led{50%{opacity:.2}}
.ms3-radio-grille{height:34px;margin-top:10px;border-radius:8px;background:repeating-linear-gradient(90deg,#111827 0 4px,#374151 4px 8px)}
.ms3-roles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ms3-role{font:inherit;font-weight:700;font-size:14.5px;border-radius:12px;border:2px solid #e2e8f0;background:#fff;padding:10px 6px;cursor:pointer;display:flex;gap:6px;align-items:center;justify-content:center}
.ms3-role:hover:not(:disabled){border-color:#7c3aed}
.ms3-role.bon{border-color:#16a34a;background:#f0fdf4}
.ms3-role.faux{border-color:#dc2626;background:#fef2f2;animation:pdl-secoue .4s ease}
.ms3-role.eteint{opacity:.45}

/* --- 4b. la table de mixage --- */
.ms3-mix-signal{font-size:17px;font-weight:700;text-align:center;padding:12px;border-radius:12px;background:#faf5ff;border:2px solid #e9d5ff;animation:ms3-descend .4s ease both}
.ms3-mix-table{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px;padding:14px;border-radius:16px;
  background:linear-gradient(180deg,#27272a,#09090b);box-shadow:inset 0 2px 0 rgba(255,255,255,.08),0 12px 26px rgba(0,0,0,.3)}
.ms3-piste{font:inherit;color:#e4e4e7;background:transparent;border:2px solid #3f3f46;border-radius:12px;padding:10px 6px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0}
.ms3-piste:hover:not(:disabled){border-color:#a78bfa}
.ms3-piste.bon{border-color:#22c55e;box-shadow:0 0 16px rgba(34,197,94,.4)}
.ms3-piste.faux{border-color:#ef4444;animation:pdl-secoue .4s ease}
.ms3-piste b{font-size:14px}
.ms3-piste i{font-size:12px;color:#a1a1aa}
.ms3-vu{display:flex;flex-direction:column-reverse;gap:2px}
.ms3-vu i{width:26px;height:5px;border-radius:2px;background:#27272a}
.ms3-vu i.on{background:#22c55e;box-shadow:0 0 6px #22c55e}
.ms3-vu i.on.ms3-jaune{background:#facc15;box-shadow:0 0 6px #facc15}
.ms3-vu i.on.ms3-rouge{background:#ef4444;box-shadow:0 0 6px #ef4444}
.ms3-rail{position:relative;width:8px;height:110px;border-radius:4px;background:#000;box-shadow:inset 0 0 4px rgba(255,255,255,.2)}
.ms3-curseur{position:absolute;left:50%;width:36px;height:18px;transform:translate(-50%,50%);border-radius:4px;background:linear-gradient(180deg,#e4e4e7,#71717a);
  box-shadow:0 3px 6px rgba(0,0,0,.6);transition:bottom .55s cubic-bezier(.3,1.4,.5,1)}
.ms3-curseur::after{content:"";position:absolute;left:4px;right:4px;top:8px;height:2px;background:#18181b}

/* --- 5a. les deux réseaux --- */
.ms3-res-carte{border-radius:14px;background:linear-gradient(135deg,#f0f9ff,#fff7ed);border:2px solid #e2e8f0;padding:6px}
.ms3-res-svg{width:100%;height:auto;display:block;max-height:220px}
.ms3-res-f{fill:none;stroke:#0369a1;stroke-width:5;stroke-linejoin:round;opacity:.55}
.ms3-res-i{fill:none;stroke:#ea580c;stroke-width:5;stroke-dasharray:3 7;stroke-linecap:round;opacity:.55}
.ms3-res-f.ms3-actif,.ms3-res-i.ms3-actif{opacity:1;stroke-width:7;filter:drop-shadow(0 0 4px rgba(0,0,0,.25))}
.ms3-res-noeud{fill:#fff;stroke:#334155;stroke-width:3}
.ms3-res-emo{font-size:15px}
.ms3-res-leg{font-size:9.5px;font-weight:700}
.ms3-res-leg.ms3-f{fill:#0369a1}
.ms3-res-leg.ms3-i{fill:#c2410c}
.ms3-res-situation{margin-top:10px;padding:12px 14px;border-radius:12px;background:#fff;border:2px solid #c4b5fd;font-size:16px;font-weight:600;animation:ms3-descend .4s ease both}

/* --- les calculs --- */
.ms3-calcul-saisie{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.ms3-calcul-saisie input{font:inherit;font-size:20px;font-weight:700;width:150px;padding:10px 12px;border-radius:12px;border:2px solid #c4b5fd;text-align:right}
.ms3-calcul-saisie span{font-weight:700;font-size:18px}

/* --- 6a. les fils invisibles --- */
.ms3-fils-plan{position:relative;height:260px;border-radius:14px;background:radial-gradient(circle at 50% 30%,#f5f3ff,#e0e7ff);border:2px solid #e2e8f0;margin-bottom:6px}
.ms3-fils-svg{position:absolute;inset:0;width:100%;height:100%}
.ms3-fil-a{stroke:#1e293b;stroke-width:3;vector-effect:non-scaling-stroke;stroke-dasharray:200;stroke-dashoffset:200;animation:ms3-trace .8s ease forwards}
.ms3-fil-l{stroke:#f59e0b;stroke-width:4;vector-effect:non-scaling-stroke;stroke-dasharray:6 6;filter:drop-shadow(0 0 4px #fbbf24);animation:ms3-brille 1.6s ease-in-out infinite}
@keyframes ms3-trace{to{stroke-dashoffset:0}}
@keyframes ms3-brille{50%{opacity:.55}}
.ms3-fils-noeud{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:2px;transition:transform .3s}
.ms3-fils-noeud img,.ms3-fils-noeud>span{width:52px;height:52px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 4px 10px rgba(0,0,0,.25);background:#fff;display:grid;place-items:center;font-size:24px}
.ms3-fils-noeud b{font-size:12px;background:rgba(255,255,255,.9);padding:1px 6px;border-radius:99px;white-space:nowrap}
.ms3-fils-noeud.ms3-actif{transform:translate(-50%,-50%) scale(1.15)}
.ms3-fils-noeud.ms3-actif img,.ms3-fils-noeud.ms3-actif>span{border-color:#7c3aed;box-shadow:0 0 0 4px rgba(124,58,237,.3)}
.ms3-fils-leg{display:flex;gap:16px;justify-content:center;font-size:13px;font-weight:700}
.ms3-fils-leg .ms3-a{color:#1e293b}
.ms3-fils-leg .ms3-l{color:#d97706}

/* --- 6b. les trois outils --- */
.ms3-sit{border-radius:14px;padding:12px 14px;background:#f8fafc;border:2px solid #e2e8f0;animation:ms3-descend .4s ease both}
.ms3-sit p{margin:8px 0;font-size:15.5px;line-height:1.5}
.ms3-sit-tete{display:flex;gap:10px;align-items:center}
.ms3-sit-tete img{width:46px;height:46px;border-radius:50%;object-fit:cover}
.ms3-sit-tete b{display:block;font-size:16.5px}
.ms3-sit-tete i{font-size:13px;color:#64748b}
.ms3-sit-jauges{display:flex;flex-wrap:wrap;gap:14px;font-size:13.5px;font-weight:700}
.ms3-points{display:inline-flex;gap:3px;vertical-align:middle;margin-left:4px}
.ms3-points i{width:12px;height:12px;border-radius:50%;background:#e2e8f0}
.ms3-outils{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ms3-outil{font:inherit;border-radius:14px;border:2px solid #e2e8f0;background:#fff;padding:12px 8px;cursor:pointer;display:flex;flex-direction:column;gap:4px;align-items:center;text-align:center;
  transition:transform .2s,border-color .2s;min-width:0}
.ms3-outil:hover:not(:disabled){transform:translateY(-3px);border-color:#7c3aed}
.ms3-outil-ico{font-size:34px}
.ms3-outil-txt{display:flex;flex-direction:column;gap:3px;min-width:0}
.ms3-outil b{font-size:15px}
.ms3-outil i{font-size:12.5px;color:#475569}
.ms3-outil em{font-size:11px;color:#7c3aed;font-style:normal;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.ms3-outil.bon{border-color:#16a34a;background:#f0fdf4}
.ms3-outil.ms3-moyen{border-color:#eab308;background:#fefce8}
.ms3-outil.faux{border-color:#dc2626;background:#fef2f2;animation:pdl-secoue .4s ease}
.ms3-outil.eteint{opacity:.5}

/* --- 7. le conflit qui mûrit --- */
.ms3-conf-tete{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.ms3-conf-jour{font-weight:800;color:#6d28d9;font-size:15px}
.ms3-thermo{display:flex;align-items:center;gap:8px;font-weight:700;font-size:13.5px}
.ms3-thermo-tube{position:relative;width:16px;height:60px;border-radius:99px;background:#e2e8f0;overflow:hidden;border:2px solid #cbd5e1}
.ms3-thermo-tube i{position:absolute;left:0;right:0;bottom:0;transition:height .8s ease,background .8s}
.ms3-conf-sujet{margin:10px 0;padding:10px 14px;border-radius:12px;background:#fff7ed;border:2px solid #fdba74;display:flex;flex-direction:column;gap:2px}
.ms3-conf-sujet span{font-size:12px;color:#9a3412;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.ms3-conf-sujet b{font-size:16.5px}
.ms3-conf-sujet.ms3-change{animation:ms3-morph .7s ease both;background:#fef2f2;border-color:#f87171}
@keyframes ms3-morph{0%{transform:rotateX(90deg);opacity:0}100%{transform:none;opacity:1}}
.ms3-conf-duel{display:flex;justify-content:center;align-items:center;gap:14px;margin:4px 0 8px}
.ms3-conf-duel img{width:58px;height:58px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 4px 12px rgba(0,0,0,.25)}
.ms3-conf-eclair{font-size:26px;transition:transform .3s}
.ms3-conf-eclair.ms3-fort{animation:ms3-eclair .5s ease-in-out infinite}
@keyframes ms3-eclair{50%{transform:scale(1.5) rotate(10deg)}}
.ms3-conflit-fin{display:flex;flex-direction:column;gap:12px;align-items:center}
.ms3-note-regle h4{margin:8px 0}

/* --- les documents --- */
.ms3-manuscrit{margin-top:12px;padding:10px 12px;background:#fefce8;border-left:4px solid #ca8a04;font-family:"Comic Sans MS","Segoe Print",cursive;transform:rotate(-.4deg)}
.ms3-manuscrit ul{margin:6px 0 0;padding-left:18px}
.ms3-table{width:100%;border-collapse:collapse;font-size:14.5px;margin:6px 0}
.ms3-table td{border-bottom:1px solid #e2e8f0;padding:6px 8px;vertical-align:top}
.ms3-citation{font-style:italic;background:#f5f3ff;border-left:4px solid #7c3aed;padding:8px 12px;border-radius:0 8px 8px 0}
.ms3-doc-groupe{margin:8px 0;padding-bottom:6px;border-bottom:1px dashed #e2e8f0}
.ms3-doc-groupe p{margin:4px 0}
.ms3-classe{margin:10px 0 0;text-align:right;font-size:12.5px;color:#64748b;font-style:italic}
.ms3-plan h4{margin:12px 0 4px;color:#6d28d9}
.ms3-pieges{border-color:#fdba74;background:#fff7ed}

/* les boutons désactivés gardent un texte lisible (le navigateur les grise) */
.ms3-cadre,.ms3-cadre:disabled,.ms3-role,.ms3-role:disabled,.ms3-outil,.ms3-outil:disabled,.ms3-trou:disabled{color:#0f172a}
.ms3-trou,.ms3-trou:disabled{color:#fff}
.ms3-piste:disabled{color:#e4e4e7}
.ms3-cadre{color:#0f172a;z-index:0}
.ms3-cadre-reflet{z-index:-1}

/* --- téléphone --- */
@media (max-width:760px){
  .ms3-hub-liste{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ms3-borne{min-height:0}
  .ms3-carte{transform:none;aspect-ratio:16/10}
  .ms3-epingle{width:34px;height:34px}
  .ms3-epingle span{font-size:15px}
  .ms3-casq-tables{grid-template-columns:1fr}
  .ms3-casq-table p{display:none}
  .ms3-roles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ms3-outils{grid-template-columns:1fr}
  .ms3-outil{flex-direction:row;text-align:left;gap:10px}
  .ms3-outil-ico{font-size:28px}
  .ms3-trou b{font-size:15px}
  .ms3-trou i{font-size:11px}
  .ms3-gros-bouton{font-size:15px}
  .ms3-detect-phrase{font-size:17px}
  .ms3-fils-plan{height:240px}
  .ms3-fils-noeud img,.ms3-fils-noeud>span{width:40px;height:40px;font-size:18px}
  .ms3-fils-noeud b{font-size:10.5px}
  .ms3-miroir-cadres{grid-template-columns:1fr}
  .ms3-cadre{min-height:80px}
  .ms3-bal-plateau b{font-size:10.5px}
}
/* ==== ms3 : fin des styles ==== */
/* ==== mc5 : debut des styles ====
   « Kap 2032 » — préfixe mc5-. Hérite des styles pdl- de Péi Délices
   (le conteneur porte les deux classes : .pdl.mc5). Couleurs : le bleu
   lagon et le jaune mangue de Maison Lataniers. */
.mc5 .pdl-cta{background:linear-gradient(135deg,#f59e0b,#e11d48);box-shadow:0 6px 18px rgba(225,29,72,.3)}
.mc5 .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(225,29,72,.4)}
.mc5 .pdl-cta.alt{background:#fff;color:#1a1430}
.mc5-clair{color:#475569 !important;text-align:center}
.pdl-doc-bandeau.mc5-bandeau{background:linear-gradient(90deg,#0891b2,#f59e0b)}
.pdl-doc-bandeau.mc5-bandeau-rouge{background:linear-gradient(90deg,#b91c1c,#f59e0b)}
.mc5-badge .pdl-badge-logo{color:#e11d48}
.mc5-tampon{position:relative;right:auto;bottom:auto;display:inline-block;margin:6px 0 0 auto}
.mc5-pl-prog{font-size:13px;font-weight:700;color:#64748b;margin-bottom:8px}
.mc5-question{margin-top:14px}
@keyframes mc5-secoue{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.mc5-secoue{animation:mc5-secoue .45s}

/* --- le compteur des années --- */
.mc5-compteur{display:inline-flex;gap:4px;padding:6px 8px;border-radius:12px;background:linear-gradient(180deg,#111827,#1f2937);
  box-shadow:inset 0 2px 6px rgba(0,0,0,.6),0 6px 18px rgba(0,0,0,.35);border:2px solid #f59e0b}
.mc5-chiffre{display:block;width:30px;height:44px;overflow:hidden;border-radius:6px;background:linear-gradient(180deg,#fef3c7,#fff 45%,#fde68a);
  box-shadow:inset 0 -6px 8px rgba(0,0,0,.12),inset 0 6px 8px rgba(0,0,0,.12);position:relative}
.mc5-chiffre::after{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:rgba(0,0,0,.18)}
.mc5-bande{display:flex;flex-direction:column;transition:transform 1.4s cubic-bezier(.2,.9,.25,1)}
.mc5-bande i{display:block;height:44px;line-height:44px;text-align:center;font-style:normal;font-weight:800;font-size:28px;color:#111827;font-family:"Courier New",monospace}

/* --- la route (le hub) --- */
.mc5-route{width:100%;color:#fff;text-align:center}
.mc5-route-tete{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}
.mc5-route-tete h2{font-family:Fraunces,Georgia,serif;font-size:clamp(24px,3.6vw,34px);margin:0;text-shadow:0 4px 20px rgba(0,0,0,.5)}
.mc5-chemin{position:relative;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;padding:34px 4px 6px}
.mc5-asphalte{position:absolute;left:0;right:0;top:12px;height:14px;border-radius:99px;background:#334155;
  background-image:repeating-linear-gradient(90deg,#fde68a 0 22px,transparent 22px 44px);background-size:44px 3px;background-repeat:repeat-x;background-position:0 50%;
  box-shadow:0 4px 10px rgba(0,0,0,.35);animation:mc5-route 2.4s linear infinite}
@keyframes mc5-route{to{background-position:44px 50%}}
.mc5-borne{position:relative;font:inherit;color:#fff;border:2px solid rgba(255,255,255,.22);border-radius:14px;min-height:170px;padding:22px 8px 10px;cursor:pointer;
  background:linear-gradient(180deg,rgba(15,23,42,.55),rgba(15,23,42,.88));display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;
  transition:transform .2s,border-color .2s;animation:pdl-postit .5s ease both;backdrop-filter:blur(3px)}
.mc5-borne:hover:not(:disabled){transform:translateY(-4px)}
.mc5-borne.prochain{border-color:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.35),0 12px 30px rgba(0,0,0,.4)}
.mc5-borne.fait{border-color:#16a34a}
.mc5-borne.ferme{filter:grayscale(.85) brightness(.7);cursor:not-allowed}
.mc5-borne-pastille{position:absolute;top:-22px;left:50%;translate:-50% 0;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-size:20px;
  background:#fff;box-shadow:0 4px 12px rgba(0,0,0,.35);border:3px solid #f59e0b}
.mc5-borne.fait .mc5-borne-pastille{border-color:#16a34a}
.mc5-borne-quand{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#fde68a;margin-top:4px}
.mc5-borne b{font-size:13.5px;line-height:1.2}
.mc5-borne i{font-size:11px;font-style:normal;opacity:.85;line-height:1.25}
.mc5-camion{position:absolute;top:-60px;left:50%;font-size:30px;transform:translateX(-50%) scaleX(-1);animation:mc5-arrive 1.6s cubic-bezier(.2,.8,.2,1) both,mc5-cahot .5s 1.6s ease-in-out infinite alternate;
  filter:drop-shadow(0 4px 6px rgba(0,0,0,.5))}
@keyframes mc5-arrive{from{left:-120%;opacity:0}to{left:50%;opacity:1}}
@keyframes mc5-cahot{to{margin-top:-3px}}
.mc5-route-fin{font-size:18px;font-weight:700;margin-top:14px;text-shadow:0 2px 10px rgba(0,0,0,.6)}
.mc5-tm .mc5-compteur{margin-bottom:10px}

/* --- 1. la pierre et la liste --- */
.mc5-pl-scene{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:14px;align-items:start}
.mc5-pierre{min-height:260px;border-radius:18px 18px 8px 8px;padding:14px 12px;color:#e5e7eb;
  background:radial-gradient(circle at 30% 20%,#57534e,#292524 70%);box-shadow:inset 0 0 0 3px #44403c,inset 0 -18px 30px rgba(0,0,0,.45),0 10px 22px rgba(0,0,0,.3)}
.mc5-pierre-t,.mc5-liste-t{font-weight:800;font-size:14px;margin-bottom:8px;text-align:center}
.mc5-pierre-t small,.mc5-liste-t small{display:block;font-weight:500;font-size:11.5px;opacity:.75}
.mc5-grave{font-family:Georgia,serif;font-size:13px;line-height:1.35;margin:0 0 8px;color:#d6d3d1;text-shadow:0 1px 0 rgba(255,255,255,.18),0 -1px 0 rgba(0,0,0,.8);letter-spacing:.01em}
.mc5-grave.neuf{animation:mc5-grave 1s ease both}
@keyframes mc5-grave{from{opacity:0;filter:blur(3px);letter-spacing:.2em}to{opacity:1;filter:none}}
.mc5-liste{min-height:260px;border-radius:10px;padding:14px 12px;background:#fffbea;
  background-image:repeating-linear-gradient(180deg,transparent 0 25px,#bfdbfe 25px 26px);box-shadow:0 10px 22px rgba(0,0,0,.18),inset 4px 0 0 #fca5a5}
.mc5-coche{font-size:13px;line-height:1.35;margin:0 0 8px;display:flex;gap:6px}
.mc5-coche b{color:#16a34a}
.mc5-coche.neuf{animation:pdl-postit .5s ease both}
.mc5-pl-centre{display:flex;flex-direction:column;align-items:stretch;gap:10px}
.mc5-pl-carte{position:relative;background:#fff;border-radius:14px;padding:20px 18px 18px 38px;font-size:17px;font-weight:600;line-height:1.4;
  box-shadow:0 12px 26px rgba(15,23,42,.18);border:2px solid #e2e8f0;animation:mc5-tombe .6s cubic-bezier(.2,.9,.3,1.2) both}
.mc5-pl-carte.ok{border-color:#16a34a}.mc5-pl-carte.ko{border-color:#ea580c;animation:mc5-secoue .45s}
.mc5-pl-guill{position:absolute;left:10px;top:2px;font-size:42px;color:#f59e0b;font-family:Georgia,serif}
@keyframes mc5-tombe{from{opacity:0;transform:translateY(-40px) rotate(-4deg)}to{opacity:1;transform:none}}
.mc5-pl-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mc5-pl-btns .pdl-opt{justify-content:center;font-weight:700}
.mc5-btn-pierre{background:#f5f5f4 !important}
.mc5-btn-liste{background:#fffbea !important}

/* --- 2. la maison et son jardin --- */
.mc5-fiche-tombe{background:#fff;border-radius:12px;padding:12px 16px;font-size:16px;font-weight:600;line-height:1.4;border-left:6px solid #f59e0b;
  box-shadow:0 12px 26px rgba(15,23,42,.18);margin-bottom:12px;animation:mc5-tombe .6s cubic-bezier(.2,.9,.3,1.2) both}
.mc5-fiche-tombe.posee{opacity:.75}
.mc5-paysage{display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:10px;align-items:end;padding:12px;border-radius:16px;
  background:linear-gradient(180deg,#bae6fd 0%,#e0f2fe 55%,#86efac 55%,#4ade80 100%)}
.mc5-kaz{display:flex;flex-direction:column;min-width:0}
.mc5-paysage>*,.mc5-murs>*{min-width:0}
.mc5-toit{height:70px;background:linear-gradient(135deg,#be123c,#e11d48);clip-path:polygon(50% 0,100% 100%,0 100%);display:flex;align-items:flex-end;justify-content:center;padding-bottom:8px}
.mc5-toit span{color:#fff;font-weight:900;font-size:11px;letter-spacing:.14em}
.mc5-murs{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#fef3c7;padding:8px;border:4px solid #92400e;border-top:0;border-radius:0 0 8px 8px}
.mc5-zone{font:inherit;cursor:pointer;border:3px dashed var(--c);border-radius:12px;background:rgba(255,255,255,.88);min-height:150px;padding:8px;
  display:flex;flex-direction:column;gap:6px;text-align:left;transition:transform .2s,box-shadow .2s;color:#1a1430;min-width:0;width:100%;overflow:hidden}
.mc5-zone:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 8px 18px rgba(0,0,0,.18)}
.mc5-zone:disabled{cursor:default}
.mc5-zone.ok{border-style:solid;box-shadow:0 0 0 4px rgba(22,163,74,.35)}
.mc5-zone.ko{border-style:solid;animation:mc5-secoue .45s}
.mc5-zone.juste{box-shadow:0 0 0 4px rgba(22,163,74,.45)}
.mc5-zone-t{font-weight:800;font-size:14px;color:var(--c);display:flex;align-items:center;gap:4px}
.mc5-zone-t i{margin-left:auto;font-style:normal;background:var(--c);color:#fff;border-radius:99px;font-size:11px;padding:1px 7px}
.mc5-zone-tas{display:flex;flex-direction:column;gap:3px;min-width:0}
.mc5-zone-tas em{font-style:normal;font-size:11px;line-height:1.25;background:#fff;border-left:3px solid var(--c);border-radius:4px;padding:2px 5px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;animation:pdl-postit .4s ease both}
.mc5-dehors-g .mc5-zone{background:rgba(255,251,235,.9)}
.mc5-dehors-d .mc5-zone{background:rgba(237,233,254,.9)}

/* --- 3. le scanner --- */
.mc5-scan-machine{display:grid;grid-template-columns:1.3fr 1fr;gap:14px;align-items:stretch;padding:14px;border-radius:18px;
  background:linear-gradient(160deg,#1e293b,#0f172a);box-shadow:inset 0 0 0 2px #334155,0 14px 30px rgba(0,0,0,.35)}
.mc5-scan-carte{position:relative;overflow:hidden;background:#fff;border-radius:12px;padding:18px;font-size:16.5px;font-weight:600;line-height:1.45;min-height:150px;
  display:flex;align-items:center;animation:mc5-glisse .5s ease both}
.mc5-scan-carte p{margin:0}
@keyframes mc5-glisse{from{opacity:0;transform:translateX(-40px)}to{opacity:1;transform:none}}
.mc5-laser{position:absolute;left:0;right:0;height:4px;top:0;background:#ef4444;box-shadow:0 0 18px 6px rgba(239,68,68,.55);animation:mc5-laser 1.3s ease-in-out}
@keyframes mc5-laser{0%{top:0}50%{top:calc(100% - 4px)}100%{top:0}}
.mc5-scan-tampon{position:absolute;right:10px;bottom:8px;border:4px solid;border-radius:10px;padding:2px 12px;font-weight:900;font-size:20px;letter-spacing:.1em;
  transform:rotate(-10deg);animation:pdl-tampon .45s both cubic-bezier(.3,1.6,.5,1);background:rgba(255,255,255,.85)}
.mc5-scan-tampon.strat{color:#7c3aed;border-color:#7c3aed}
.mc5-scan-tampon.ord{color:#64748b;border-color:#64748b}
.mc5-voyants{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mc5-voyant{font:inherit;color:#e2e8f0;background:#1e293b;border:2px solid #475569;border-radius:12px;padding:8px 6px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px;
  transition:all .25s}
.mc5-voyant b{font-size:12.5px;line-height:1.15}
.mc5-voyant small{font-size:11px;font-weight:700}
.mc5-ampoule{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;font-size:20px;background:#334155;transition:all .25s;filter:grayscale(1) brightness(.8)}
.mc5-voyant.on .mc5-ampoule{background:radial-gradient(circle,#fef08a,#f59e0b);box-shadow:0 0 18px 4px rgba(245,158,11,.6);filter:none}
.mc5-voyant.on{border-color:#f59e0b;color:#fff}
.mc5-voyant.juste{border-color:#16a34a}.mc5-voyant.juste small{color:#4ade80}
.mc5-voyant.faux{border-color:#ef4444}.mc5-voyant.faux small{color:#fca5a5}
.mc5-voyant:disabled{cursor:default}
.mc5-scan-machine.scan .mc5-voyant .mc5-ampoule{animation:pdl-clig .3s infinite}
.mc5-scanner>.pdl-cta{display:block;margin:12px auto 0}

/* --- 3 bis. le bouton annuler --- */
.mc5-retour-ans{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.mc5-an{font:inherit;font-weight:800;font-size:17px;border:2px solid #cbd5e1;background:#fff;border-radius:12px;padding:8px 16px;cursor:pointer;font-family:"Courier New",monospace}
.mc5-an.on{background:#0f172a;color:#fde68a;border-color:#0f172a;transform:scale(1.08)}
.mc5-an-rep{flex:1 1 140px;justify-content:center}
.mc5-retour-corps{display:grid;grid-template-columns:1fr 1.2fr;gap:14px;margin-top:12px}
.mc5-engage{background:#f8fafc;border-radius:12px;padding:10px}
.mc5-jetons{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.mc5-jeton{background:#fee2e2;color:#991b1b;border-radius:99px;padding:3px 10px;font-size:12px;font-weight:700;animation:mc5-tombe .45s both}
.mc5-barres{display:flex;flex-direction:column;gap:10px;justify-content:center}
.mc5-barre span{font-size:13px;font-weight:700;color:#475569}
.mc5-barre b{font-size:15px}
.mc5-barre-fond{height:18px;border-radius:99px;background:#e2e8f0;overflow:hidden;margin:3px 0}
.mc5-barre-fond i{display:block;height:100%;border-radius:99px;transition:width .9s cubic-bezier(.2,.9,.25,1)}
.mc5-barre-fond i.rouge{background:linear-gradient(90deg,#f87171,#dc2626)}
.mc5-barre-fond i.vert{background:linear-gradient(90deg,#4ade80,#16a34a)}

/* --- 4. les câbles --- */
.mc5-cables-boite{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:56px;margin-top:12px}
.mc5-cables-svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.mc5-cables-svg path{fill:none;stroke:#16a34a;stroke-width:4;stroke-linecap:round;stroke-dasharray:600;stroke-dashoffset:600;animation:mc5-cable .8s ease forwards;
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.25))}
@keyframes mc5-cable{to{stroke-dashoffset:0}}
.mc5-cables-col{display:flex;flex-direction:column;gap:8px}
.mc5-prise{position:relative;font:inherit;font-size:13.5px;line-height:1.3;text-align:left;cursor:pointer;background:#fff;border:2px solid #cbd5e1;border-radius:12px;padding:10px 12px;
  transition:all .2s;color:#1a1430;min-height:58px;display:flex;align-items:center}
.mc5-prise i{position:absolute;top:50%;width:14px;height:14px;border-radius:50%;background:#94a3b8;border:3px solid #fff;box-shadow:0 0 0 2px #94a3b8;translate:0 -50%}
.mc5-prise.g i{right:-9px}.mc5-prise.d i{left:-9px}
.mc5-prise.d{padding-left:18px}
.mc5-prise.sel{border-color:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.35)}
.mc5-prise.sel i{background:#f59e0b;box-shadow:0 0 0 2px #f59e0b}
.mc5-prise.cible:not(:disabled):hover{border-color:#0891b2;transform:translateX(-3px)}
.mc5-prise.ok{border-color:#16a34a;background:#f0fdf4;cursor:default}
.mc5-prise.ok i{background:#16a34a;box-shadow:0 0 0 2px #16a34a}
.mc5-prise.ko{border-color:#ef4444;background:#fef2f2;animation:mc5-secoue .45s}
.mc5-prise:disabled:not(.ok){opacity:.85;cursor:default}

/* --- 4 bis. le calcul --- */
.mc5-calcul-saisie{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0}
.mc5-calcul-saisie input{font:inherit;font-size:20px;font-weight:700;width:180px;padding:10px 12px;border:2px solid #cbd5e1;border-radius:10px}
.mc5-calcul-saisie input:focus{outline:none;border-color:#f59e0b}
.mc5-calcul-saisie span{font-weight:700;color:#475569}

/* --- 5. le planning --- */
.mc5-plan-aides{display:grid;grid-template-columns:1fr 1.4fr;gap:12px;margin-bottom:12px}
.mc5-plan-regles{background:#fffbea;border-radius:12px;padding:10px 12px;border:1px solid #fde68a}
.mc5-plan-regles ul{margin:6px 0 0;padding-left:18px;font-size:13.5px;line-height:1.45}
.mc5-plan-qui{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.mc5-plan-perso{display:flex;gap:8px;align-items:center;background:#f8fafc;border-radius:10px;padding:6px 8px;font-size:12.5px;line-height:1.3}
.mc5-plan-perso img{width:38px;height:38px;border-radius:50%;object-fit:cover;flex:none}
.mc5-plan-pioche{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-bottom:6px}
.mc5-plan-carte{max-width:230px}
.mc5-frise{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:8px;position:relative}
.mc5-frise::before{content:"";position:absolute;left:0;right:0;top:17px;height:4px;background:linear-gradient(90deg,#0891b2,#f59e0b);border-radius:99px}
.mc5-cren{position:relative;display:flex;flex-direction:column;gap:6px;min-height:200px;border-radius:12px;transition:all .2s}
.mc5-cren.cible{cursor:pointer}
.mc5-cren.cible .mc5-cren-vide{border-color:#f59e0b;background:#fffbeb;color:#b45309}
.mc5-cren-an{position:relative;z-index:1;align-self:center;background:#0f172a;color:#fde68a;font-weight:800;font-family:"Courier New",monospace;border-radius:99px;padding:6px 12px;font-size:14px}
.mc5-cren-vide{flex:1;border:2px dashed #cbd5e1;border-radius:12px;display:grid;place-items:center;color:#94a3b8;font-weight:700;font-size:13px}
.mc5-cren-etape{position:relative;flex:1;background:#fff;border:2px solid #e2e8f0;border-radius:12px;padding:8px;display:flex;flex-direction:column;gap:6px;animation:mc5-tombe .4s both}
.mc5-cren-etape p{margin:0;font-size:13px;font-weight:700;line-height:1.3;padding-right:16px}
.mc5-cren.ko .mc5-cren-etape{border-color:#ef4444;animation:mc5-secoue .45s}
.mc5-cren.ok .mc5-cren-etape{border-color:#16a34a;background:#f0fdf4}
.mc5-cren-x{position:absolute;top:4px;right:4px;border:0;background:#f1f5f9;border-radius:50%;width:22px;height:22px;cursor:pointer;font-size:11px}
.mc5-cren-qui small{font-size:11px;color:#64748b;font-weight:700}
.mc5-cren-qui div{display:flex;gap:4px;flex-wrap:wrap}
.mc5-cren-qui.ko{background:#fef2f2;border-radius:8px}
.mc5-avatar{border:2px solid transparent;border-radius:50%;padding:0;width:34px;height:34px;cursor:pointer;background:#e2e8f0;overflow:hidden;opacity:.55;transition:all .2s}
.mc5-avatar{position:relative}
.mc5-avatar span{position:absolute;inset:0;display:grid;place-items:center;font-weight:800;font-size:13px;color:#334155}
.mc5-avatar img{position:relative;width:100%;height:100%;object-fit:cover;display:block}
.mc5-avatar.on{border-color:#f59e0b;opacity:1;transform:scale(1.12)}
.mc5-cren-budget{font-size:12px;color:#475569;margin-top:auto}
.mc5-plan>.pdl-cta{display:block;margin:12px auto 0}

/* --- 6. le flash info et la boussole --- */
.mc5-tele{position:relative;background:#0b1220;color:#fff;border-radius:16px;padding:14px 16px 40px;overflow:hidden;border:6px solid #1f2937;
  box-shadow:0 14px 30px rgba(0,0,0,.4),inset 0 0 40px rgba(56,189,248,.08);animation:mc5-allume .5s ease both}
@keyframes mc5-allume{from{filter:brightness(3) contrast(.5);transform:scaleY(.02)}60%{transform:scaleY(1)}to{filter:none}}
.mc5-tele-bandeau{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}
.mc5-tele-bandeau b{background:#dc2626;padding:4px 12px;border-radius:6px;letter-spacing:.08em;animation:pdl-clig 1s infinite}
.mc5-tele-bandeau span{font-size:12px;opacity:.8}
.mc5-tele h3{font-family:Fraunces,Georgia,serif;font-size:22px;margin:10px 0 6px}
.mc5-tele p{margin:0;font-size:15.5px;line-height:1.5;min-height:48px}
.mc5-tele-defile{position:absolute;left:0;right:0;bottom:0;background:#f59e0b;color:#111827;font-weight:700;font-size:13px;white-space:nowrap;overflow:hidden;padding:5px 0}
.mc5-tele-defile span{display:inline-block;padding-left:100%;animation:mc5-defile 16s linear infinite}
@keyframes mc5-defile{to{transform:translateX(-100%)}}
.mc5-flash-bas{display:grid;grid-template-columns:130px 1fr;gap:14px;align-items:center;margin-top:12px}
.mc5-flash-ops{display:flex;flex-direction:column;gap:8px}
.mc5-flash-ops .pdl-aide{margin:0;text-align:left !important}
.mc5-boussole{position:relative;width:120px;height:120px;border-radius:50%;margin:auto;
  background:radial-gradient(circle,#fff 0 52%,#e2e8f0 53% 60%,#0891b2 61% 100%);box-shadow:0 10px 22px rgba(0,0,0,.25),inset 0 0 0 4px #0e7490}
.mc5-b-n{position:absolute;top:13px;left:50%;translate:-50% 0;font-size:9.5px;font-weight:900;color:#e11d48;letter-spacing:.04em}
.mc5-b-aiguille{position:absolute;left:50%;top:50%;width:10px;height:78px;margin:-39px 0 0 -5px;transition:transform 1.2s cubic-bezier(.3,1.5,.5,1);
  background:linear-gradient(180deg,#e11d48 0 50%,#334155 50% 100%);clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
.mc5-boussole.attente .mc5-b-aiguille{animation:mc5-hesite 2.4s ease-in-out infinite}
@keyframes mc5-hesite{25%{transform:rotate(-18deg)}75%{transform:rotate(18deg)}}
.mc5-boussole.ajuster{box-shadow:0 0 0 6px rgba(22,163,74,.4),0 10px 22px rgba(0,0,0,.25),inset 0 0 0 4px #0e7490}
.mc5-boussole.ajuster .mc5-b-aiguille{transform:rotate(0deg)}
.mc5-boussole.renoncer .mc5-b-aiguille{transform:rotate(150deg)}
.mc5-boussole.ignorer .mc5-b-aiguille{animation:mc5-folle .7s linear infinite}
@keyframes mc5-folle{to{transform:rotate(360deg)}}
.mc5-b-centre{position:absolute;left:50%;top:50%;width:14px;height:14px;margin:-7px;border-radius:50%;background:#0f172a;border:2px solid #fff}

/* --- 7. le tableau de bord et la roue --- */
.mc5-tdb-grille{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}
.mc5-cadran{background:linear-gradient(160deg,#0f172a,#1e293b);color:#fff;border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:6px;
  border:2px solid #334155;animation:mc5-tombe .5s both}
.mc5-cadran>b{font-size:14px;line-height:1.3}
.mc5-cadran-l{display:flex;justify-content:space-between;gap:8px;font-size:13px;border-bottom:1px dashed #334155;padding-bottom:4px}
.mc5-cadran-l em{font-style:normal;font-weight:800;font-family:"Courier New",monospace;color:#fde68a}
.mc5-res{animation:mc5-compte 1.2s steps(6) both}
@keyframes mc5-compte{from{opacity:0;filter:blur(4px)}to{opacity:1;filter:none}}
.mc5-cadran-btns{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:4px}
.mc5-cadran-btns .pdl-opt{justify-content:center;font-size:13px;padding:8px}
.mc5-cadran.ok{border-color:#16a34a}.mc5-cadran.ko{border-color:#f59e0b}
.mc5-cadran-why{margin:4px 0 0;font-size:12.5px;line-height:1.4;color:#e2e8f0}
.mc5-tdb>.pdl-cta{display:block;margin:0 auto}
.mc5-roue{position:relative;width:300px;height:300px;margin:14px auto}
.mc5-roue-cercle{position:absolute;inset:40px;border-radius:50%;border:6px dashed #cbd5e1}
.mc5-roue.tourne .mc5-roue-cercle{border-color:#16a34a;animation:mc5-tourne 6s linear infinite}
@keyframes mc5-tourne{to{transform:rotate(360deg)}}
.mc5-roue-case{position:absolute;width:128px;padding:8px;border-radius:12px;background:#f1f5f9;border:2px dashed #94a3b8;text-align:center;font-weight:800;font-size:13px;color:#94a3b8}
.mc5-roue-case.pleine{background:#fff;border:2px solid #0891b2;color:#0e7490;animation:pdl-postit .4s both;box-shadow:0 6px 14px rgba(0,0,0,.12)}
.mc5-roue-case.c0{top:0;left:50%;translate:-50% 0}
.mc5-roue-case.c1{right:0;top:50%;translate:30% -50%}
.mc5-roue-case.c2{bottom:0;left:50%;translate:-50% 0}
.mc5-roue-case.c3{left:0;top:50%;translate:-30% -50%}
.mc5-roue-coeur{position:absolute;left:50%;top:50%;translate:-50% -50%;font-size:44px}
.mc5-roue.tourne .mc5-roue-coeur{animation:mc5-tourne 3s linear infinite}
.mc5-roue-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.mc5-roue-btns .pdl-opt{justify-content:center;font-weight:700}

/* --- les documents --- */
.mc5-manuscrit{font-family:"Segoe Script","Bradley Hand","Comic Sans MS",cursive;background:#fffdf5;
  background-image:repeating-linear-gradient(180deg,transparent 0 27px,#e0e7ff 27px 28px);padding:6px 10px;border-radius:6px}
.mc5-doc-ffom{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}
.mc5-doc-ffom>div{border-top:5px solid var(--c);background:#f8fafc;border-radius:8px;padding:8px 10px;font-size:13px}
.mc5-doc-ffom ul{margin:4px 0 0;padding-left:16px;line-height:1.4}
.mc5-table{width:100%;border-collapse:collapse;font-size:13px;margin:8px 0}
.mc5-table th{background:#0f172a;color:#fff;text-align:left;padding:6px 8px}
.mc5-table td{border-bottom:1px solid #e2e8f0;padding:6px 8px;vertical-align:top}
.mc5-table tr:nth-child(even) td{background:#f8fafc}
.mc5-suite{border-left-color:#0891b2 !important}

/* --- 3 (clé 8). Les pots de couleur : la segmentation --- */
.mc5-pots-rangee{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:6px}
.mc5-pot{font:inherit;cursor:pointer;border:2px solid #e2e8f0;border-radius:14px;background:#fff;padding:8px 4px;display:flex;flex-direction:column;align-items:center;gap:2px;
  transition:transform .15s,box-shadow .15s,border-color .15s}
.mc5-pot:hover{transform:translateY(-2px)}
.mc5-pot.on{border-color:var(--c);box-shadow:0 0 0 4px color-mix(in srgb,var(--c) 30%,transparent);transform:translateY(-3px)}
.mc5-pot b{font-size:13px;color:#1e293b}.mc5-pot small{font-size:11px;color:#64748b}
.mc5-pot-bac{position:relative;width:46px;height:34px;border-radius:4px 4px 12px 12px;background:linear-gradient(180deg,#e5e7eb,#9ca3af);overflow:hidden;
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.15)}
.mc5-pot-bac i{position:absolute;left:3px;right:3px;top:5px;bottom:3px;border-radius:50% 50% 10px 10px / 30% 30% 10px 10px;background:var(--c);
  box-shadow:inset 0 4px 6px rgba(255,255,255,.35)}
.mc5-pot.on .mc5-pot-bac i{animation:mc5-remue 1.6s ease-in-out infinite}
@keyframes mc5-remue{50%{border-radius:40% 60% 10px 10px / 40% 25% 10px 10px;transform:translateY(-1px)}}
.mc5-pots-cartes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 12px}
.mc5-act{--c:#cbd5e1;position:relative;border:3px solid var(--c);border-radius:14px;background:#fff;min-width:0;display:flex;flex-direction:column;
  transition:border-color .25s,background .25s,transform .2s;animation:mc5-apparait .4s backwards}
.mc5-act.mc5-act-peinte{background:color-mix(in srgb,var(--c) 12%,#fff);transform:rotate(-.6deg)}
.mc5-act:nth-child(even).mc5-act-peinte{transform:rotate(.6deg)}
.mc5-act-corps{font:inherit;text-align:left;cursor:pointer;border:0;background:none;padding:10px 10px 4px;display:flex;gap:8px;align-items:flex-start;color:#1e293b}
.mc5-act-ico{font-size:24px;line-height:1}
.mc5-act-txt{font-size:13.5px;font-weight:600;line-height:1.3;flex:1;min-width:0}
.mc5-act-pastille{position:absolute;top:-10px;right:8px;background:var(--c);color:#fff;font-size:10.5px;font-weight:800;border-radius:99px;padding:2px 8px;
  animation:mc5-gicle .35s both}
@keyframes mc5-apparait{from{opacity:0;transform:translateY(8px)}}
@keyframes mc5-gicle{0%{transform:scale(0)}70%{transform:scale(1.2)}100%{transform:scale(1)}}
.mc5-act-loupe{font:inherit;font-size:12px;cursor:pointer;align-self:flex-start;margin:0 10px 8px;border:1px solid #cbd5e1;background:#f8fafc;border-radius:99px;padding:2px 10px;color:#334155}
.mc5-act-loupe.on{background:#0f172a;color:#fff;border-color:#0f172a}
.mc5-act-fiche{margin:0 8px 8px;padding:6px 8px;border-radius:8px;background:#f1f5f9;font-size:12px;line-height:1.35;animation:mc5-apparait .25s both}
.mc5-act-fiche p{margin:2px 0}
.mc5-decoupe{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin:8px 0 12px}
.mc5-part{border-radius:14px;border:3px solid var(--c);background:color-mix(in srgb,var(--c) 8%,#fff);padding:10px;min-width:0;animation:mc5-separe .55s both}
@keyframes mc5-separe{0%{opacity:0;transform:scale(.6) rotate(-4deg)}60%{transform:scale(1.04) rotate(1deg)}100%{opacity:1;transform:none}}
.mc5-part.mc5-part-ko{border-style:dashed}
.mc5-part-t{font-weight:800;color:var(--c);margin-bottom:6px;font-size:14px}
.mc5-part ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px}
.mc5-part li{background:#fff;border-left:4px solid var(--c);border-radius:6px;padding:4px 7px;font-size:12.5px;line-height:1.3}
.mc5-part-avis{margin:8px 0 0;font-size:12.5px;line-height:1.35;color:#334155}
.mc5-part-fiche{margin-top:8px;font-size:12.5px;line-height:1.35;background:#fff;border-radius:8px;padding:6px 8px}
.mc5-part-fiche p{margin:3px 0}

/* --- 3 bis (clé 8). L'immeuble à deux étages --- */
.mc5-asc-note{display:flex;gap:10px;align-items:flex-start;background:#fffbeb;border:2px solid #fbbf24;border-radius:12px;padding:10px 12px;font-weight:600;
  color:#1e293b;line-height:1.35;animation:mc5-glisse .45s both;box-shadow:0 6px 16px rgba(0,0,0,.12)}
.mc5-asc-note span{font-size:22px}
@keyframes mc5-glisse{0%{opacity:0;transform:translateY(-14px) rotate(-2deg)}100%{opacity:1;transform:none}}
.mc5-immeuble{display:grid;grid-template-columns:54px minmax(0,1fr);gap:8px;margin:12px 0;background:linear-gradient(180deg,#e0f2fe,#f8fafc);
  border-radius:14px;padding:8px;border:2px solid #cbd5e1}
.mc5-gaine{position:relative;border-radius:10px;background:repeating-linear-gradient(180deg,#94a3b8 0 2px,#cbd5e1 2px 22px);min-height:220px;overflow:hidden}
.mc5-cabine{position:absolute;left:5px;right:5px;height:56px;top:calc(50% - 28px);border-radius:8px;background:linear-gradient(180deg,#f59e0b,#d97706);
  display:grid;place-items:center;font-size:22px;box-shadow:0 4px 10px rgba(0,0,0,.3);transition:top .6s cubic-bezier(.5,0,.3,1.3)}
.mc5-cabine.mc5-cabine-haut{top:8px}.mc5-cabine.mc5-cabine-bas{top:calc(100% - 64px)}
.mc5-etages{display:flex;flex-direction:column;gap:8px;min-width:0}
.mc5-etage{border-radius:10px;padding:6px;background:rgba(255,255,255,.7);min-width:0}
.mc5-etage>i{display:block;font-size:11px;font-style:normal;font-weight:700;color:#64748b;margin:0 0 4px 2px}
.mc5-etage-haut{border-bottom:5px solid #475569}
.mc5-bureaux{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.mc5-bureau{font:inherit;cursor:pointer;width:100%;border:2px solid #cbd5e1;border-radius:10px;background:#fff;padding:8px 6px;display:flex;flex-direction:column;
  align-items:center;gap:2px;text-align:center;transition:transform .15s,box-shadow .15s,opacity .2s;min-width:0}
.mc5-bureau:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 14px rgba(0,0,0,.15)}
.mc5-bureau:disabled{cursor:default}
.mc5-bureau-ico{font-size:22px}.mc5-bureau b{font-size:13px;color:#1e293b;line-height:1.2}.mc5-bureau small{font-size:11px;color:#64748b;line-height:1.2}
.mc5-bureau-glo{background:linear-gradient(135deg,#f8fafc,#e2e8f0);border-color:#475569}
.mc5-bureau.mc5-bureau-juste{border-color:#16a34a;box-shadow:0 0 0 4px rgba(22,163,74,.3);background:#f0fdf4}
.mc5-bureau.mc5-bureau-faux{border-color:#dc2626;background:#fef2f2;animation:mc5-secoue .45s}
.mc5-bureau.mc5-bureau-eteint{opacity:.45}

/* --- téléphone --- */
@media (max-width:760px){
  .mc5-chemin{grid-template-columns:1fr;padding:6px 0 6px 34px;gap:8px}
  .mc5-asphalte{left:12px;right:auto;top:0;bottom:0;width:14px;height:auto;background-image:repeating-linear-gradient(180deg,#fde68a 0 22px,transparent 22px 44px);
    background-size:3px 44px;background-repeat:repeat-y;background-position:50% 0;animation:none}
  .mc5-borne{min-height:0;padding:10px 12px 10px 30px;align-items:flex-start;text-align:left}
  .mc5-borne-pastille{top:50%;left:-22px;translate:0 -50%;width:34px;height:34px;font-size:16px}
  .mc5-camion{top:50%;left:auto !important;right:8px;transform:translateY(-50%) scaleX(-1);animation:none}
  .mc5-pl-scene{grid-template-columns:1fr}
  .mc5-pl-centre{order:-1}
  .mc5-pierre,.mc5-liste{min-height:0}
  .mc5-paysage{grid-template-columns:1fr 1fr;align-items:stretch}
  .mc5-kaz{grid-column:1 / -1;order:-1}
  .mc5-zone{min-height:110px}
  .mc5-scan-machine{grid-template-columns:1fr}
  .mc5-retour-corps{grid-template-columns:1fr}
  .mc5-cables-boite{gap:22px}
  .mc5-prise{font-size:12px;padding:8px}
  .mc5-plan-aides{grid-template-columns:1fr}
  .mc5-plan-qui{grid-template-columns:1fr}
  .mc5-frise{grid-template-columns:1fr 1fr}
  .mc5-frise::before{display:none}
  .mc5-flash-bas{grid-template-columns:1fr}
  .mc5-tdb-grille{grid-template-columns:1fr}
  .mc5-roue{width:260px;height:260px}
  .mc5-roue-case{width:104px;font-size:12px}
  .mc5-roue-case.c1{translate:10% -50%}.mc5-roue-case.c3{translate:-10% -50%}
  .mc5-doc-ffom{grid-template-columns:1fr}
  .mc5-pots-rangee{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mc5-pots-cartes{grid-template-columns:1fr}
  .mc5-bureaux{grid-template-columns:1fr}
  .mc5-immeuble{grid-template-columns:40px minmax(0,1fr)}
  .mc5-chiffre{width:24px;height:36px}.mc5-bande i{height:36px;line-height:36px;font-size:22px}
}
/* ==== mc5 : fin des styles ==== */
/* ==== lakour : debut des styles ====
   « Le van i tourne ! » — préfixe mc4-. Hérite des styles pdl- de Péi
   Délices (le conteneur porte les deux classes : .pdl.mc4). Tous les
   modificateurs portent le préfixe de leur bloc (piège N). */
.mc4 .pdl-cta{background:linear-gradient(135deg,#ea580c,#f59e0b);box-shadow:0 6px 18px rgba(234,88,12,.35)}
.mc4 .pdl-cta:hover:not(:disabled){box-shadow:0 10px 24px rgba(234,88,12,.45)}
.mc4 .pdl-cta.alt{background:#fff;color:#1a1430}
.mc4-badge .pdl-badge-logo{color:#ea580c}
.pdl-doc-bandeau.mc4-bleu{background:linear-gradient(90deg,#0369a1,#0e7490)}
.pdl-doc-bandeau.mc4-violet{background:linear-gradient(90deg,#7c3aed,#db2777)}
.pdl-doc-bandeau.mc4-orange{background:linear-gradient(90deg,#c2410c,#f59e0b)}
.pdl-doc-bandeau.mc4-vert{background:linear-gradient(90deg,#15803d,#0e7490)}
.mc4-a-retenir{background:#fff7ed;border-left:4px solid #ea580c;padding:8px 12px;border-radius:6px;font-weight:600}
.mc4-a-revoir{color:#b45309;font-size:.9em}
.mc4-liste-why{font-size:13.5px;line-height:1.45;margin:10px 0 0;padding-left:18px;color:#334155}
.mc4-liste-why li{margin:4px 0}

/* --- la barre de progression d'un exercice --- */
.mc4-prog{display:flex;align-items:center;gap:14px;font-size:12.5px;font-weight:700;color:#c2410c;text-transform:uppercase;letter-spacing:.04em;margin-bottom:10px;flex-wrap:wrap}
.mc4-prog-barre{flex:1;min-width:80px;height:6px;border-radius:99px;background:#fde7d2;overflow:hidden}
.mc4-prog-barre i{display:block;height:100%;background:linear-gradient(90deg,#ea580c,#f59e0b);transition:width .5s ease}
.mc4-boutons{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.mc4-boutons .pdl-opt{flex:1;min-width:140px;justify-content:center}

/* --- le radar du garage (l'écran central) --- */
.mc4-hub{width:100%;color:#fff}
.mc4-hub-q{text-align:center;margin:0 auto 14px;max-width:720px}
.mc4-hub-q span{display:block;font-size:11.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#fbbf24}
.mc4-hub-q b{display:block;font-family:Fraunces,Georgia,serif;font-size:clamp(19px,2.8vw,27px);line-height:1.2;text-shadow:0 4px 18px rgba(0,0,0,.55)}
.mc4-hub-corps{display:grid;grid-template-columns:minmax(260px,420px) 1fr;gap:18px;align-items:center}
.mc4-grand-radar,.mc4-ecran-radar{position:relative;aspect-ratio:1;border-radius:50%;overflow:hidden;
  background:radial-gradient(circle,rgba(16,185,129,.22) 0%,rgba(6,78,59,.75) 60%,rgba(2,44,34,.92) 100%);
  border:2px solid rgba(52,211,153,.55);box-shadow:0 0 40px rgba(16,185,129,.25),inset 0 0 40px rgba(0,0,0,.5)}
.mc4-grand-radar{width:100%;max-width:420px;margin:0 auto}
.mc4-balayage{position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 0deg,rgba(52,211,153,.55),rgba(52,211,153,0) 70deg,transparent 360deg);
  animation:mc4-tourne 4s linear infinite;pointer-events:none}
@keyframes mc4-tourne{to{transform:rotate(360deg)}}
.mc4-anneau{position:absolute;border:1px dashed rgba(167,243,208,.45);border-radius:50%;pointer-events:none}
.mc4-anneau-1{inset:33%}.mc4-anneau-2{inset:16%}.mc4-anneau-3{inset:2%}
.mc4-grand-radar::before,.mc4-grand-radar::after,.mc4-ecran-radar::before,.mc4-ecran-radar::after{content:"";position:absolute;background:rgba(167,243,208,.25);pointer-events:none}
.mc4-grand-radar::before,.mc4-ecran-radar::before{left:50%;top:0;bottom:0;width:1px}
.mc4-grand-radar::after,.mc4-ecran-radar::after{top:50%;left:0;right:0;height:1px}
.mc4-hub-centre{position:absolute;left:50%;top:50%;translate:-50% -50%;font-size:30px;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;
  background:#ea580c;box-shadow:0 0 0 6px rgba(234,88,12,.3),0 0 30px rgba(234,88,12,.6)}
.mc4-signal{position:absolute;translate:-50% -50%;width:46px;height:46px;border-radius:50%;border:2px solid #a7f3d0;background:rgba(6,78,59,.85);color:#fff;
  font-size:20px;cursor:pointer;display:grid;place-items:center;transition:transform .2s;z-index:2}
.mc4-signal:hover:not(:disabled){transform:scale(1.15)}
.mc4-signal-fait{background:#15803d;border-color:#bbf7d0}
.mc4-signal-prochain{border-color:#fbbf24;background:#b45309;animation:mc4-bip 1.6s ease-in-out infinite}
@keyframes mc4-bip{0%,100%{box-shadow:0 0 0 0 rgba(251,191,36,.7)}60%{box-shadow:0 0 0 16px rgba(251,191,36,0)}}
.mc4-signal-ferme{opacity:.45;cursor:not-allowed;filter:grayscale(.7)}
.mc4-hub-liste{display:flex;flex-direction:column;gap:7px}
.mc4-hub-ligne{display:flex;align-items:center;gap:10px;text-align:left;font:inherit;color:#fff;background:rgba(15,23,42,.72);border:1px solid rgba(255,255,255,.18);
  border-radius:12px;padding:7px 10px;cursor:pointer;animation:pdl-postit .45s ease both;transition:background .2s,transform .2s}
.mc4-hub-ligne:hover:not(:disabled){background:rgba(15,23,42,.9);transform:translateX(3px)}
.mc4-hub-ligne:disabled{opacity:.5;cursor:not-allowed}
.mc4-hub-prochain{border-color:#fbbf24;box-shadow:0 0 0 2px rgba(251,191,36,.35)}
.mc4-hub-fait{border-color:rgba(74,222,128,.6)}
.mc4-hub-n{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.14);font-weight:800;font-size:13px}
.mc4-hub-txt{display:flex;flex-direction:column;line-height:1.2}
.mc4-hub-txt b{font-size:14px}.mc4-hub-txt i{font-size:11.5px;font-style:normal;opacity:.8}
.mc4-hub-fin{text-align:center;font-weight:700;font-size:17px;margin-top:14px;text-shadow:0 2px 10px rgba(0,0,0,.6)}
.mc4-tm .mc4-tm-signal{width:96px;height:96px;margin:0 auto 14px;border-radius:50%;display:grid;place-items:center;font-size:44px;
  background:radial-gradient(circle,#065f46,#022c22);border:2px solid #34d399;animation:mc4-bip 1.6s ease-in-out infinite}

/* --- mission 1 : la cible --- */
.mc4-cible-corps{display:grid;grid-template-columns:minmax(240px,1fr) 1fr;gap:18px;align-items:start}
.mc4-cible-zone{position:relative;aspect-ratio:1;width:100%;max-width:400px;margin:0 auto;perspective:900px}
.mc4-cible-macro,.mc4-cible-micro{position:absolute;border-radius:50%;display:block;cursor:pointer;transition:filter .2s,box-shadow .2s}
.mc4-cible-macro{inset:0;background:radial-gradient(circle,#dbeafe 0%,#bfdbfe 55%,#93c5fd 100%);border:3px solid #3b82f6;transform:rotateX(14deg)}
.mc4-cible-micro{inset:22%;background:radial-gradient(circle,#ffedd5 0%,#fed7aa 70%,#fdba74 100%);border:3px solid #ea580c;box-shadow:0 10px 24px rgba(0,0,0,.18)}
.mc4-cible-actif:hover{filter:brightness(1.05)}
.mc4-cible-actif .mc4-cible-micro:hover{box-shadow:0 0 0 6px rgba(234,88,12,.35)}
.mc4-cible-lib{position:absolute;left:50%;top:6%;translate:-50% 0;font-size:12px;font-weight:800;color:#9a3412;white-space:nowrap;background:rgba(255,255,255,.75);border-radius:99px;padding:2px 9px}
.mc4-cible-lib-macro{top:2%;color:#1e3a8a}
.mc4-cible-centre{position:absolute;left:50%;top:50%;translate:-50% -50%;display:flex;flex-direction:column;align-items:center;font-size:30px;
  background:#fff;border-radius:50%;width:38%;aspect-ratio:1;justify-content:center;box-shadow:0 6px 16px rgba(0,0,0,.2)}
.mc4-cible-centre b{font-size:11px;color:#1a1430}
.mc4-jeton{position:absolute;translate:-50% -50%;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800;color:#fff;
  box-shadow:0 3px 8px rgba(0,0,0,.3);animation:mc4-pose .5s cubic-bezier(.2,1.4,.4,1) both;pointer-events:none;z-index:2}
.mc4-jeton-ok{background:#16a34a}.mc4-jeton-ko{background:#dc2626}
@keyframes mc4-pose{from{transform:scale(0) translateY(-40px);opacity:0}to{transform:none;opacity:1}}
.mc4-cible-cote{display:flex;flex-direction:column;gap:10px}
.mc4-carte-fait,.mc4-projet{background:#fff;border-radius:14px;padding:12px 14px;box-shadow:0 10px 24px rgba(15,23,42,.14);border-top:5px solid #ea580c;
  animation:mc4-tombe .5s cubic-bezier(.2,.9,.3,1.2)}
.mc4-carte-fait span,.mc4-projet span{font-size:11.5px;font-weight:800;color:#c2410c;text-transform:uppercase;letter-spacing:.06em}
.mc4-carte-fait p,.mc4-projet p{margin:6px 0 0;font-size:16.5px;font-weight:600;line-height:1.35}
@keyframes mc4-tombe{from{transform:translateY(-30px) rotate(-3deg);opacity:0}to{transform:none;opacity:1}}

/* --- mission 2 : la rose des vents --- */
.mc4-rose-corps{display:grid;grid-template-columns:minmax(250px,1fr) 1fr;gap:18px;align-items:center}
.mc4-rose{position:relative;aspect-ratio:1;width:100%;max-width:380px;margin:0 auto}
.mc4-rose-fond{position:absolute;inset:14%;border-radius:50%;background:repeating-conic-gradient(from 30deg,#fef3c7 0 30deg,#fde68a 30deg 60deg);
  border:3px solid #b45309;box-shadow:inset 0 0 0 10px rgba(255,255,255,.4),0 10px 30px rgba(0,0,0,.18)}
.mc4-branche{--a:0deg;position:absolute;left:50%;top:50%;width:84px;height:84px;margin:-42px 0 0 -42px;border-radius:50%;border:3px solid var(--c);background:#fff;
  transform:rotate(var(--a)) translateY(-150%) rotate(calc(-1 * var(--a)));cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;
  font:inherit;color:#1a1430;transition:box-shadow .2s,background .2s;z-index:2}
.mc4-branche b{font-family:Fraunces,Georgia,serif;font-size:24px;color:var(--c);line-height:1}
.mc4-branche span{font-size:10px;font-weight:700}
.mc4-branche i{position:absolute;top:-6px;right:-6px;background:var(--c);color:#fff;font-style:normal;font-size:11px;font-weight:800;border-radius:99px;padding:1px 6px}
.mc4-branche:hover:not(:disabled){box-shadow:0 0 0 5px color-mix(in srgb,var(--c) 30%,transparent)}
.mc4-branche-ok{background:#dcfce7}
.mc4-branche-ko{background:#fee2e2;animation:mc4-secoue .4s}
.mc4-branche-attendue{box-shadow:0 0 0 5px rgba(22,163,74,.45)}
@keyframes mc4-secoue{25%{translate:-5px 0}75%{translate:5px 0}}
.mc4-aiguille{position:absolute;left:50%;top:50%;width:10px;height:30%;transform-origin:50% 100%;
  background:linear-gradient(180deg,#dc2626 0 70%,#1a1430 70%);clip-path:polygon(50% 0,100% 100%,0 100%);transition:transform .7s cubic-bezier(.3,1.5,.5,1);z-index:1}
.mc4-rose-centre{position:absolute;left:50%;top:50%;translate:-50% -50%;width:36px;height:36px;border-radius:50%;background:#1a1430;color:#fff;display:grid;place-items:center;font-size:18px;z-index:3}
.mc4-coupure{background:#fffdf5;border:1px solid #e7e0c9;border-radius:4px;padding:12px 14px;box-shadow:0 12px 26px rgba(0,0,0,.16);transform:rotate(-1.2deg);
  font-family:Georgia,serif;animation:mc4-tombe .5s cubic-bezier(.2,.9,.3,1.2)}
.mc4-coupure-tete{display:flex;justify-content:space-between;gap:8px;font-size:11px;font-weight:800;letter-spacing:.12em;border-bottom:2px solid #1a1430;padding-bottom:4px;flex-wrap:wrap}
.mc4-coupure-tete span{letter-spacing:0;font-weight:600;color:#64748b}
.mc4-coupure p{margin:8px 0 0;font-size:17px;line-height:1.35;font-weight:700}
.mc4-rose-cote{display:flex;flex-direction:column;gap:10px}

/* --- mission 3 : les tampons et la balance --- */
.mc4-file{display:flex;align-items:center;gap:6px;margin-bottom:10px;min-height:40px}
.mc4-file-tete{width:36px;height:36px;border-radius:50%;overflow:hidden;background:#e2e8f0;display:grid;place-items:center;font-size:18px;opacity:calc(1 - var(--x) * .25)}
.mc4-file-tete img{width:100%;height:100%;object-fit:cover}
.mc4-file i{font-size:12px;color:#64748b;font-style:normal;margin-left:4px}
.mc4-visiteur{position:relative;display:flex;gap:14px;align-items:center;background:#fff;border-radius:16px;padding:14px;box-shadow:0 12px 26px rgba(15,23,42,.14);
  animation:mc4-entre .5s ease both;overflow:hidden}
@keyframes mc4-entre{from{transform:translateX(60px);opacity:0}to{transform:none;opacity:1}}
.mc4-visiteur-photo{flex:none;width:82px;height:100px;border-radius:12px;overflow:hidden;background:#f1f5f9;display:grid;place-items:center;font-size:38px}
.mc4-visiteur-photo img{width:100%;height:100%;object-fit:cover}
.mc4-visiteur-txt span{font-size:11.5px;font-weight:800;color:#c2410c;text-transform:uppercase;letter-spacing:.06em}
.mc4-visiteur-txt b{display:block;font-size:17px;line-height:1.3;margin-top:4px}
.mc4-empreinte{position:absolute;right:14px;top:50%;translate:0 -50%;font-weight:900;font-size:22px;letter-spacing:.1em;border:4px solid currentColor;border-radius:8px;
  padding:4px 10px;transform:rotate(-12deg);opacity:.85;animation:mc4-coup .35s cubic-bezier(.2,1.6,.4,1) both;background:rgba(255,255,255,.7)}
.mc4-empreinte-int{color:#7c3aed}.mc4-empreinte-ext{color:#0369a1}
@keyframes mc4-coup{from{transform:rotate(-12deg) scale(2.2);opacity:0}to{transform:rotate(-12deg) scale(1);opacity:.85}}
.mc4-tampons-btns{display:flex;gap:12px;justify-content:center;margin-top:14px;flex-wrap:wrap}
.mc4-tampon{font:inherit;font-weight:900;font-size:17px;letter-spacing:.06em;padding:14px 22px;border-radius:14px;border:3px solid currentColor;background:#fff;cursor:pointer;
  box-shadow:0 6px 0 currentColor;transition:transform .1s,box-shadow .1s}
.mc4-tampon:active{transform:translateY(5px);box-shadow:0 1px 0 currentColor}
.mc4-tampon-int{color:#7c3aed}.mc4-tampon-ext{color:#0369a1}
.mc4-fleau-zone{position:relative;height:56px;margin:14px auto 0;max-width:560px}
.mc4-pied{position:absolute;left:50%;bottom:0;width:0;height:0;translate:-50% 0;border-left:22px solid transparent;border-right:22px solid transparent;border-bottom:40px solid #475569}
.mc4-fleau{position:absolute;left:6%;right:6%;top:10px;height:8px;transition:transform .6s cubic-bezier(.3,1.5,.5,1)}
.mc4-fleau-barre{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#94a3b8,#475569,#94a3b8)}
.mc4-plateaux{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mc4-plateau{min-height:120px;border-radius:0 0 50% 50% / 0 0 22px 22px;background:#f8fafc;border:2px solid #94a3b8;border-top:6px solid #475569;padding:10px;transition:box-shadow .2s;cursor:pointer}
.mc4-plateau-cible{box-shadow:0 0 0 4px rgba(234,88,12,.35);background:#fff7ed}
.mc4-plateau-t{font-weight:800;font-size:13px;margin-bottom:6px;color:#334155}

/* --- mission 4 : la pièce --- */
.mc4-piece-scene{perspective:1100px;margin:6px auto 14px;max-width:520px}
.mc4-piece{position:relative;min-height:230px;transform-style:preserve-3d;transition:transform .9s cubic-bezier(.3,1.3,.5,1);animation:mc4-lance .7s ease}
.mc4-piece-retournee{transform:rotateY(180deg)}
@keyframes mc4-lance{0%{transform:translateY(-40px) rotateX(70deg);opacity:0}100%{transform:none;opacity:1}}
.mc4-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:22px;padding:18px;display:flex;flex-direction:column;gap:10px;
  justify-content:center;text-align:center;box-shadow:0 16px 34px rgba(15,23,42,.22)}
.mc4-face-a{background:linear-gradient(145deg,#fff7ed,#fed7aa);border:4px solid #ea580c}
.mc4-face-b{background:linear-gradient(145deg,#ecfeff,#a5f3fc);border:4px solid #0e7490;transform:rotateY(180deg)}
.mc4-face-org{display:flex;flex-direction:column;align-items:center;gap:2px}
.mc4-face-org span{font-size:30px}.mc4-face-org b{font-size:17px}.mc4-face-org i{font-size:12px;font-style:normal;color:#475569}
.mc4-face p{margin:0;font-size:17px;font-weight:700;line-height:1.35}
.mc4-face-verdict{align-self:center;font-weight:900;letter-spacing:.06em;border-radius:99px;padding:4px 14px;animation:mc4-pop .35s ease both}
@keyframes mc4-pop{from{transform:scale(1.8);opacity:0}to{transform:none;opacity:1}}
.mc4-v-o{background:#fef9c3;color:#a16207}.mc4-v-m{background:#e0e7ff;color:#3730a3}
.mc4-ombre-q{text-align:center;font-size:15px;margin-bottom:8px}
.mc4-opt-o:hover:not(:disabled){border-color:#eab308}.mc4-opt-m:hover:not(:disabled){border-color:#6366f1}

/* --- mission 5 : le radar de veille --- */
.mc4-veille{display:grid;grid-template-columns:minmax(220px,320px) 1fr;gap:18px;align-items:start}
.mc4-ecran-radar{width:100%;max-width:320px;margin:0 auto}
.mc4-blip{position:absolute;translate:-50% -50%;width:34px;height:34px;border-radius:50%;border:2px solid #a7f3d0;background:rgba(2,44,34,.9);color:#a7f3d0;font:inherit;
  font-weight:800;cursor:pointer;z-index:2;animation:mc4-bip 2s ease-in-out infinite}
.mc4-blip-ok{background:#16a34a;color:#fff;animation:none}
.mc4-blip-actif{border-color:#fbbf24;color:#fbbf24;transform:scale(1.2)}
.mc4-blip-ok.mc4-blip-actif{color:#fff}
.mc4-fiche-veille{background:#fff;border-radius:14px;box-shadow:0 12px 28px rgba(15,23,42,.15);padding:14px;display:flex;flex-direction:column;gap:10px;animation:mc4-tombe .4s ease}
.mc4-fiche-tete{display:flex;justify-content:space-between;font-size:12px;font-weight:800;letter-spacing:.08em;color:#065f46;border-bottom:2px dashed #a7f3d0;padding-bottom:6px}
.mc4-fiche-tete span{color:#16a34a}
.mc4-fiche-sujet{margin:0;font-size:16px;font-weight:700}
.mc4-fiche-sujet small{display:block;font-size:11px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.06em}
.mc4-reglage{border-radius:10px;padding:8px;background:#f8fafc;transition:background .2s}
.mc4-reglage-ko{background:#fee2e2;animation:mc4-secoue .4s}
.mc4-reglage-t{display:block;font-size:12px;font-weight:800;color:#334155;margin-bottom:6px}
.mc4-reglage-opts{display:flex;flex-wrap:wrap;gap:6px}
.mc4-molette{font:inherit;font-size:13px;border:2px solid #cbd5e1;background:#fff;border-radius:99px;padding:5px 11px;cursor:pointer;transition:all .15s}
.mc4-molette:hover:not(:disabled){border-color:#ea580c}
.mc4-molette-on{background:#065f46;border-color:#065f46;color:#fff}
.mc4-molette:disabled{cursor:default}

/* --- le calcul sur document --- */
.mc4-doc{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:10px 12px;margin-bottom:12px;box-shadow:0 6px 16px rgba(15,23,42,.08);overflow-x:auto}
.mc4-doc-titre{font-weight:800;font-size:14px;margin-bottom:8px}
.mc4-doc table,.mc4-doc-table{border-collapse:collapse;width:100%;font-size:14px}
.mc4-doc td,.mc4-doc th,.mc4-doc-table td,.mc4-doc-table th{border:1px solid #e2e8f0;padding:6px 8px;text-align:left;vertical-align:top}
.mc4-doc-entete th,.mc4-doc-table th{background:#fff7ed;color:#9a3412}
.mc4-saisie{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mc4-saisie input{font:inherit;font-size:18px;padding:9px 12px;border:2px solid #cbd5e1;border-radius:10px;width:160px}
.mc4-saisie input:focus{outline:none;border-color:#ea580c}

/* --- mission 6 : le couloir des portes --- */
.mc4-couloir{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:16px 0 10px;perspective:900px;
  background:linear-gradient(180deg,#e2e8f0 0%,#cbd5e1 70%,#94a3b8 100%);border-radius:14px;padding:16px 12px 0}
.mc4-porte{--c:#0369a1;position:relative;height:200px;border:0;padding:0;background:#fef3c7;border-radius:10px 10px 0 0;cursor:pointer;font:inherit;
  box-shadow:inset 0 0 30px rgba(251,191,36,.6);overflow:visible}
.mc4-porte-lumiere{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:8px 8px 8px 22px;text-align:center}
.mc4-porte-lumiere b{font-size:34px}
.mc4-porte-lumiere em{font-style:normal;font-weight:800;font-size:12.5px;line-height:1.2;color:#78350f}
.mc4-porte-battant{position:absolute;inset:0;border-radius:10px 10px 0 0;background:linear-gradient(90deg,color-mix(in srgb,var(--c) 85%,#000),var(--c));color:#fff;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:8px;transform-origin:left center;transition:transform .8s cubic-bezier(.3,1.1,.5,1);
  border:3px solid rgba(255,255,255,.25);box-shadow:0 8px 18px rgba(0,0,0,.25)}
.mc4-porte-battant b{font-size:30px}
.mc4-porte-battant em{font-style:normal;font-weight:800;font-size:13px;line-height:1.2;text-align:center}
.mc4-poignee{position:absolute;right:10px;top:50%;width:8px;height:22px;border-radius:4px;background:#fbbf24}
.mc4-porte:hover:not(:disabled) .mc4-porte-battant{transform:rotateY(-12deg)}
.mc4-porte-ouverte .mc4-porte-battant{transform:rotateY(-78deg)}
.mc4-porte-ok{box-shadow:inset 0 0 40px rgba(34,197,94,.8)}
.mc4-porte-ko{animation:mc4-secoue .4s;box-shadow:inset 0 0 40px rgba(220,38,38,.6)}
.mc4-porte-attendue{outline:4px solid #16a34a;outline-offset:2px}
.mc4-porte:disabled{cursor:default}

/* --- mission 7 : la machine à café et la frise --- */
.mc4-comptoir{display:flex;align-items:flex-end;gap:16px;background:linear-gradient(180deg,#fef3c7,#fde68a);border-radius:14px;padding:12px;margin-bottom:12px;flex-wrap:wrap}
.mc4-machine{position:relative;width:70px;height:86px;border-radius:12px 12px 6px 6px;background:linear-gradient(180deg,#334155,#0f172a);display:grid;place-items:center;font-size:30px;flex:none}
.mc4-vapeur{position:absolute;left:46%;top:-18px;width:8px;height:22px;border-radius:99px;background:rgba(255,255,255,.75);filter:blur(3px);animation:mc4-fume 2.2s ease-in infinite}
.mc4-vapeur-2{left:58%;animation-delay:1.1s}
@keyframes mc4-fume{from{transform:translateY(10px) scale(.6);opacity:0}50%{opacity:.8}to{transform:translateY(-22px) scale(1.4);opacity:0}}
.mc4-collegues{display:flex;gap:10px;flex-wrap:wrap}
.mc4-collegue{display:flex;flex-direction:column;align-items:center;gap:2px;opacity:.55;transition:opacity .3s,transform .3s}
.mc4-collegue img{width:52px;height:52px;border-radius:50%;object-fit:cover;border:3px solid #fff;background:#e2e8f0}
.mc4-collegue i{font-size:11px;font-style:normal;font-weight:700}
.mc4-collegue-parle{opacity:1;transform:translateY(-6px) scale(1.08)}
.mc4-collegue-parle img{border-color:#ea580c}
.mc4-phrase{position:relative;background:#fff;border-radius:18px;padding:12px 16px;box-shadow:0 10px 24px rgba(15,23,42,.14);animation:mc4-tombe .4s ease}
.mc4-phrase::before{content:"";position:absolute;left:28px;top:-10px;border:10px solid transparent;border-top:0;border-bottom-color:#fff}
.mc4-phrase b{font-size:13px;color:#c2410c}
.mc4-phrase p{margin:4px 0 0;font-size:17px;font-style:italic;line-height:1.4}
.mc4-etiquettes{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.mc4-etiq-ico{font-size:20px;margin-right:6px}
.mc4-frise{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:stretch;margin:14px 0 10px}
.mc4-frise-cote{font:inherit;min-height:150px;border-radius:14px;border:2px dashed #94a3b8;background:#f8fafc;padding:10px;cursor:pointer;display:flex;flex-direction:column;gap:6px;
  align-items:stretch;text-align:left;transition:box-shadow .2s}
.mc4-frise-cote:hover:not(:disabled){box-shadow:0 0 0 4px rgba(234,88,12,.3)}
.mc4-frise-avant{border-color:#16a34a;background:#f0fdf4}.mc4-frise-apres{border-color:#dc2626;background:#fef2f2}
.mc4-frise-cote:disabled{cursor:default}
.mc4-frise-t{font-weight:800;font-size:13px}
.mc4-frise-geste{font-size:12.5px;background:#fff;border-radius:8px;padding:5px 8px;box-shadow:0 2px 6px rgba(0,0,0,.08);animation:mc4-pose .4s ease both}
.mc4-jourj{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:92px;background:#1a1430;color:#fff;border-radius:14px;padding:8px;text-align:center}
.mc4-jourj b{font-family:Fraunces,Georgia,serif;font-size:20px;color:#fbbf24}
.mc4-jourj i{font-size:11px;font-style:normal}

/* --- mission 8 : le dialogue --- */
.mc4-dialogue-tdb{display:flex;align-items:center;gap:14px;margin-bottom:10px;flex-wrap:wrap}
.mc4-dialogue-tdb .pdl-jauge{flex:1;min-width:220px}
.mc4-dialogue-n{font-size:12.5px;font-weight:800;color:#c2410c;text-transform:uppercase}
.pdl-opt.mc4-moyen{border-color:#f59e0b;background:#fffbeb}
.mc4-delta{display:inline-block;font-weight:800;border-radius:99px;padding:1px 8px;font-size:12.5px;animation:mc4-pop .35s ease both}
.mc4-delta-plus{background:#dcfce7;color:#15803d}.mc4-delta-moins{background:#fee2e2;color:#b91c1c}

/* --- les documents --- */
.mc4-table-zone{overflow-x:auto;margin:8px 0}
.mc4-mail-tete{font-size:13.5px;background:#f8fafc;border-radius:8px;padding:8px 10px;margin-bottom:10px;display:flex;flex-direction:column;gap:2px}
.mc4-doc-cercles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mc4-doc-cercles>div{border-radius:12px;padding:10px;background:#fff7ed;border:2px solid #fdba74}
.mc4-doc-cercles>div+div{background:#eff6ff;border-color:#93c5fd}
.mc4-doc-cercles b{display:block}.mc4-doc-cercles i{font-size:12px;color:#64748b}
.mc4-doc-cercles ul{margin:6px 0 0;padding-left:18px;font-size:13.5px}
.mc4-doc-pestel{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.mc4-doc-pestel>div{border-top:4px solid var(--c);background:#f8fafc;border-radius:8px;padding:8px}
.mc4-doc-pestel b{color:var(--c);font-size:13.5px}
.mc4-doc-pestel ul{margin:4px 0 0;padding-left:16px;font-size:12.5px}
.mc4-tampon-lettre{color:#c2410c;border-color:#c2410c}
.mc4-journal h3{font-family:Fraunces,Georgia,serif}

/* --- téléphone --- */
@media (max-width:760px){
  .mc4-hub-corps,.mc4-cible-corps,.mc4-rose-corps,.mc4-veille{grid-template-columns:1fr}
  .mc4-grand-radar{max-width:300px}
  .mc4-couloir{grid-template-columns:repeat(2,1fr)}
  .mc4-porte{height:150px}
  .mc4-doc-pestel{grid-template-columns:1fr 1fr}
  .mc4-doc-cercles{grid-template-columns:1fr}
  .mc4-frise{grid-template-columns:1fr}
  .mc4-jourj{width:auto;flex-direction:row}
  .mc4-branche{width:66px;height:66px;margin:-33px 0 0 -33px}
  .mc4-branche b{font-size:19px}.mc4-branche span{font-size:8.5px}
  .mc4-plateaux{grid-template-columns:1fr}
  .mc4-visiteur{flex-direction:column;text-align:center}
  .mc4-empreinte{position:static;translate:none;display:inline-block;margin-top:6px}
}
/* ==== lakour : fin des styles ==== */
/* ==== taf-transmis : styles debut ==== */
/* L'encart de fin de parcours. Préfixe `mmtr-` cherché libre avant d'être
   employé : une classe nue déjà déclarée ailleurs aurait habillé cet
   encart sans que rien ne le signale (piège N, §7.58). */
.mmtr{margin:20px 0 4px;padding:16px 18px;border-radius:14px;text-align:left;
  border:1px solid #e5e2ee;background:#faf9fd}
.mmtr-tete{display:flex;align-items:flex-start;gap:10px;font-size:15.5px;line-height:1.45}
.mmtr-ico{font-size:21px;line-height:1.1;flex:0 0 auto}
.mmtr-ok{border-color:#86efac;background:#f0fdf4}
.mmtr-ok .mmtr-tete b{color:#166534}
.mmtr-ko{border-left:4px solid #f87171;border-color:#fca5a5;background:#fef2f2}
.mmtr-ko .mmtr-tete b{color:#b91c1c}
.mmtr-encours{border-color:#c7d2fe;background:#eef2ff}
.mmtr-encours .mmtr-tete b{color:#3730a3}
.mmtr-apercu{border-color:#fcd34d;background:#fffbeb}
.mmtr-apercu b{color:#92400e;display:block;margin-bottom:4px}
.mmtr-apercu p{margin:0;font-size:13.5px;color:#713f12;line-height:1.5}
.mmtr-quoi{margin:9px 0 0;font-size:13.5px;line-height:1.55;color:#7f1d1d}
.mmtr-renvoi{margin-top:11px;padding:10px 16px;border:0;border-radius:10px;
  background:#b91c1c;color:#fff;font-weight:700;font-size:14.5px;cursor:pointer}
.mmtr-renvoi:disabled{opacity:.6;cursor:default}

/* Le rappel de l'identité : ce que le professeur lit dans son tableau. */
.mmtr-id{margin-top:14px;padding-top:13px;border-top:1px dashed #d8d4e6}
.mmtr-id-t{font-size:12.5px;font-weight:700;letter-spacing:.3px;
  text-transform:uppercase;color:#6b6485;margin-bottom:7px}
.mmtr-id ul{margin:0;padding-left:18px;font-size:14px;line-height:1.75;color:#2d2a3d}
.mmtr-id ul b{color:#1a1430}
.mmtr-manque i{color:#92400e;font-style:normal;background:#fef3c7;
  padding:1px 7px;border-radius:6px;font-size:13px}
.mmtr-ajout{margin-top:11px}
.mmtr-lien{border:0;background:none;padding:0;color:#4f46e5;font-weight:700;
  font-size:14px;cursor:pointer;text-decoration:underline;text-align:left}
.mmtr-note{margin:0 0 9px;font-size:13px;line-height:1.55;color:#5b5570}
/* ⚠️ `min-width:0` et une base de 150 px : sans la base, les deux champs
   restent sur une ligne en se comprimant jusqu'à l'illisible en 375 px —
   une base de 0 se comprime à l'infini (§7.119). */
.mmtr-champs{display:flex;flex-wrap:wrap;gap:9px}
.mmtr-champs input{flex:1 1 150px;min-width:0;padding:11px 13px;font-size:15px;
  border:1px solid #cfc9e0;border-radius:10px;background:#fff;color:#1a1430}
.mmtr-okbtn{margin-top:10px;padding:10px 18px;border:0;border-radius:10px;
  background:#4f46e5;color:#fff;font-weight:700;font-size:14.5px;cursor:pointer}
.mmtr-okbtn:disabled{opacity:.5;cursor:default}
.mmtr-echec{margin:9px 0 0;font-size:13.5px;color:#b91c1c;line-height:1.5}
.mmtr-okid{margin:10px 0 0;font-size:14px;font-weight:700;color:#166534;line-height:1.5}
@media(max-width:640px){
  .mmtr{padding:14px;margin:16px 0 2px}
  .mmtr-tete{font-size:15px}
  .mmtr-id ul{padding-left:16px;font-size:13.5px}
}
/* Le rappel seul, sur l'ecran de fin d'une evaluation : pas de bandeau
   d'etat au-dessus, donc pas de bordure de verdict. */
.mmtr-seul{background:#faf9fd;border-color:#e5e2ee;text-align:left}
.mmtr-seul .mmtr-id{margin-top:0;padding-top:0;border-top:0}
.mmtr-annul{margin:10px 0 0 8px;padding:10px 14px;border:1px solid #cfc9e0;
  border-radius:10px;background:#fff;color:#5b5570;font-weight:600;
  font-size:14px;cursor:pointer}
/* ==== taf-transmis : styles fin ==== */
/* ==== comptes-ecran-blanc ==== */
.mmge h3{margin:0 0 10px;color:#b91c1c;font-size:17px}
.mmge p{margin:0 0 10px;font-size:14.5px;line-height:1.55;color:#2d2a3d}
.mmge-tech{font-family:ui-monospace,monospace;font-size:13px;color:#7f1d1d;
  background:#fef2f2;border:1px solid #fca5a5;border-radius:8px;padding:9px 12px}
/* ==== codered : styles ==== */
/* CODE RED — thème cyber sombre, néons sobres, lisible au projecteur.
   Animations : transform / opacity seulement ; toutes coupées par
   prefers-reduced-motion (en bas). Préfixe .cdr- partout. */
.cdr-plateau,.cdr-tel{--cdr-fond:#070b14;--cdr-carte:#0f1626;--cdr-bord:#22304a;--cdr-txt:#e6edf7;--cdr-pale:#94a3b8;
  --cdr-rouge:#ff3b5c;--cdr-vert:#2ee59d;--cdr-cyan:#38d9ff;--cdr-ambre:#ffb020;--cdr-eq:#38d9ff;
  color:var(--cdr-txt);font-family:'Outfit',system-ui,sans-serif}
.cdr-plateau{background:radial-gradient(1200px 600px at 20% -10%,#1a0d1f 0,transparent 60%),
  radial-gradient(900px 500px at 110% 120%,#071a2a 0,transparent 60%),var(--cdr-fond);
  border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:10px;min-height:640px;position:relative;overflow:hidden}
.cdr-plateau::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.07;
  background:repeating-linear-gradient(0deg,#fff 0 1px,transparent 1px 3px)}
.cdr-plateau q,.cdr-tel q{quotes:"“" "”"}
.cdr-plein{position:fixed;inset:0;z-index:9000;border-radius:0;min-height:100vh;overflow:auto}
.cdr-plateau button{font-family:inherit;cursor:pointer}
/* --- barre du haut --- */
.cdr-barre{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cdr-titre{display:flex;align-items:center;gap:10px}
.cdr-titre b{display:block;font-size:22px;letter-spacing:3px;color:var(--cdr-rouge);text-shadow:0 0 12px rgba(255,59,92,.55)}
.cdr-titre span{font-size:13px;color:var(--cdr-pale)}
.cdr-logo-pouls{stroke-dasharray:60;animation:cdr-pouls 2.4s linear infinite}
@keyframes cdr-pouls{from{stroke-dashoffset:120}to{stroke-dashoffset:0}}
.cdr-phases{display:flex;gap:4px;flex-wrap:wrap;flex:1;justify-content:center}
.cdr-phases button{background:#0c1322;border:1px solid var(--cdr-bord);color:var(--cdr-pale);border-radius:999px;padding:5px 11px;font-size:13px}
.cdr-phases button.cdr-on{background:var(--cdr-rouge);border-color:var(--cdr-rouge);color:#fff;box-shadow:0 0 14px rgba(255,59,92,.5)}
.cdr-phases button.cdr-phase-ok{border-color:var(--cdr-vert);color:var(--cdr-vert)}
.cdr-phases button.cdr-phase-ok.cdr-on{color:#fff}
.cdr-chrono{font:700 28px/1 ui-monospace,Menlo,monospace;background:#0c1322;border:1px solid var(--cdr-bord);border-radius:10px;padding:6px 12px;display:flex;gap:8px;align-items:center}
.cdr-chrono span{font-size:18px}
.cdr-chrono-run{border-color:var(--cdr-cyan);color:var(--cdr-cyan)}
.cdr-chrono-fin{color:var(--cdr-rouge);border-color:var(--cdr-rouge);animation:cdr-clign 1s steps(2) infinite}
@keyframes cdr-clign{50%{opacity:.45}}
.cdr-jauge{display:flex;align-items:center;gap:8px;background:#0c1322;border:1px solid var(--cdr-bord);border-radius:10px;padding:6px 10px;font-size:13px}
.cdr-jauge span{color:var(--cdr-pale);text-transform:uppercase;letter-spacing:1px;font-size:11px}
.cdr-jauge b{font-size:20px;min-width:52px;text-align:right}
.cdr-jauge-rail{width:150px;height:12px;border-radius:6px;background:#1b2436;overflow:hidden}
.cdr-jauge-rail i{display:block;height:100%;transform-origin:left;transition:transform .9s cubic-bezier(.2,.8,.2,1);
  background:linear-gradient(90deg,var(--cdr-ambre),var(--cdr-rouge))}
.cdr-jauge-rouge b{color:var(--cdr-rouge)}.cdr-jauge-orange b{color:var(--cdr-ambre)}.cdr-jauge-verte b{color:var(--cdr-vert)}
.cdr-jauge-verte .cdr-jauge-rail i{background:var(--cdr-vert)}
.cdr-jauge-rouge .cdr-jauge-rail{animation:cdr-alarme 1.6s ease-in-out infinite}
@keyframes cdr-alarme{50%{box-shadow:0 0 12px rgba(255,59,92,.8)}}
/* --- la scène --- */
.cdr-scene{flex:1;animation:cdr-entre .45s ease-out both}
@keyframes cdr-entre{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.cdr-btn{background:var(--cdr-cyan);color:#04121c;border:0;border-radius:10px;padding:10px 16px;font-weight:700;font-size:15px}
.cdr-btn:disabled{opacity:.4;cursor:default}
.cdr-btn-gros{font-size:20px;padding:12px 26px}
.cdr-btn-mini{background:transparent;color:var(--cdr-pale);border:1px solid var(--cdr-bord);border-radius:8px;padding:6px 10px;font-size:13px}
.cdr-lien{display:block;margin-top:8px}
.cdr-err{color:#ff8fa3;font-weight:600;margin:8px 0}
.cdr-aide-p{color:var(--cdr-pale);font-size:14px;margin:6px 0}
.cdr-pastille{background:#0c1322;border:2px solid var(--cdr-eq);color:var(--cdr-txt);border-radius:999px;padding:7px 14px;font-weight:700;font-size:15px}
.cdr-pastille.cdr-on{background:var(--cdr-eq);color:#071018}
/* briefing */
.cdr-briefing{display:grid;grid-template-columns:1.1fr 1fr;gap:16px;align-items:start}
.cdr-histoire{position:relative;background:var(--cdr-carte);border:1px solid var(--cdr-bord);border-radius:14px;padding:22px 24px;overflow:hidden;min-height:420px}
.cdr-histoire p{font-size:23px;line-height:1.45;margin:0 0 12px;opacity:0;animation:cdr-entre .6s ease-out forwards}
.cdr-histoire p:first-of-type{color:var(--cdr-rouge);font-weight:700}
.cdr-sirene{position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 100% 0,rgba(255,59,92,.25),transparent 45%);animation:cdr-sirene 2.2s ease-in-out infinite}
@keyframes cdr-sirene{50%{opacity:.25}}
.cdr-regles{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;opacity:0;animation:cdr-entre .6s ease-out forwards}
.cdr-regles b{width:100%;color:var(--cdr-ambre)}
.cdr-regles span{background:#0a1120;border:1px solid var(--cdr-bord);border-radius:8px;padding:4px 9px;font-size:15px}
.cdr-qrs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.cdr-qr{background:var(--cdr-carte);border:2px solid var(--cdr-eq);border-radius:12px;padding:8px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:2px}
.cdr-qr b{color:var(--cdr-eq);font-size:18px}.cdr-qr span{font-size:13px;color:var(--cdr-pale)}
.cdr-qr .kk-qr{border-radius:6px;margin:4px 0}
.cdr-qr-code{font:800 26px/1 ui-monospace,monospace;letter-spacing:4px}
.cdr-qrs-aide{grid-column:1/-1;color:var(--cdr-pale);font-size:14px;margin:0}
/* le plan */
.cdr-enquete{display:grid;grid-template-columns:1fr 330px;gap:14px}
.cdr-carte{width:100%;height:auto;display:block}
.cdr-carte-sol{fill:#0a1120;stroke:var(--cdr-bord);stroke-width:2}
.cdr-couloir{fill:#0d1628;stroke:#1a2740}
.cdr-couloir-t{fill:#3b4b68;font:700 14px ui-monospace,monospace;letter-spacing:6px}
.cdr-cable{fill:none;stroke:var(--cdr-rouge);stroke-width:3;stroke-dasharray:10 8;opacity:.75;animation:cdr-flux 1.2s linear infinite}
.cdr-cable-ok{stroke:var(--cdr-vert);animation-duration:3s;opacity:.6}
@keyframes cdr-flux{to{stroke-dashoffset:-36}}
.cdr-piece{cursor:pointer}
.cdr-piece-fond{fill:#101a2e;stroke:var(--cdr-eq);stroke-width:2.5}
.cdr-piece-halo{fill:rgba(255,59,92,.16);stroke:var(--cdr-rouge);stroke-width:3;opacity:0}
.cdr-piece-al .cdr-piece-halo{animation:cdr-halo 1.6s ease-in-out infinite}
@keyframes cdr-halo{50%{opacity:1}}
.cdr-piece-ok .cdr-piece-fond{fill:#0c2121;stroke:var(--cdr-vert)}
.cdr-piece-actif .cdr-piece-fond{stroke-width:6}
.cdr-piece-ic{font-size:34px}
.cdr-piece-t{fill:var(--cdr-eq);font:800 22px 'Outfit',sans-serif}
.cdr-piece-z{fill:#cbd5e1;font:500 17px 'Outfit',sans-serif}
.cdr-piece-a{fill:var(--cdr-rouge);font:800 20px ui-monospace,monospace;letter-spacing:2px}
.cdr-piece-r{fill:var(--cdr-vert);font:800 20px 'Outfit',sans-serif}
.cdr-piece-score{fill:#fff;font:700 18px ui-monospace,monospace}
.cdr-piece-txt{color:#cbd5e1;font-size:16px;line-height:1.25}
.cdr-consigne{display:flex;flex-direction:column;gap:4px;background:var(--cdr-carte);border:1px solid var(--cdr-bord);border-radius:12px;padding:10px 14px;margin-top:10px;font-size:18px}
.cdr-consigne b{color:var(--cdr-ambre)}
.cdr-equipes{display:flex;flex-direction:column;gap:8px}
.cdr-eq-ligne{display:grid;grid-template-columns:1fr auto;gap:4px 8px;background:var(--cdr-carte);border:1px solid var(--cdr-bord);border-left:5px solid var(--cdr-eq);border-radius:10px;padding:8px 10px}
.cdr-eq-nom b{color:var(--cdr-eq);display:block;font-size:17px}.cdr-eq-nom span{font-size:13px;color:var(--cdr-pale)}
.cdr-eq-score{font:800 26px ui-monospace,monospace;align-self:center}
.cdr-eq-indice{grid-column:1/-1;background:#0a1120;border:1px dashed var(--cdr-ambre);color:var(--cdr-ambre);border-radius:8px;padding:5px;font-size:13px}
.cdr-eq-indice:disabled{opacity:.4}
.cdr-eq-codes{grid-column:1/-1;font-size:13px;color:var(--cdr-pale)}
.cdr-eq-codes code{background:var(--cdr-ambre);color:#1a1000;border-radius:5px;padding:1px 7px;margin-left:5px;font:800 17px ui-monospace,monospace}
/* le tour d'une équipe */
.cdr-tour{display:flex;flex-direction:column;gap:12px}
.cdr-tour-tete{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:var(--cdr-carte);border:1px solid var(--cdr-bord);border-top:4px solid var(--cdr-eq);border-radius:12px;padding:10px 14px}
.cdr-tour-id{display:flex;align-items:center;gap:10px;flex:1;min-width:240px}
.cdr-tour-id>span{font-size:38px}
.cdr-tour-id b{display:block;font-size:22px;color:var(--cdr-eq)}.cdr-tour-id em{font-style:normal;color:var(--cdr-pale)}
.cdr-etapes{display:flex;gap:6px;flex-wrap:wrap}
.cdr-etapes button{background:#0a1120;border:1px solid var(--cdr-bord);color:var(--cdr-pale);border-radius:9px;padding:7px 12px;font-size:15px}
.cdr-etapes button.cdr-on{border-color:var(--cdr-eq);color:#fff;background:#13203a}
.cdr-tour-score{font:800 34px ui-monospace,monospace}
.cdr-tour-score small{font-size:15px;color:var(--cdr-pale)}
.cdr-tour-corps{animation:cdr-entre .4s ease-out both}
.cdr-suivant{align-self:flex-end;background:transparent;border:1px solid var(--cdr-eq);color:var(--cdr-eq);border-radius:10px;padding:8px 16px;font-size:16px;font-weight:700}
.cdr-unlock h3{font-size:22px;margin:4px 0 8px}
.cdr-tuiles{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}
.cdr-tuiles-indices{grid-template-columns:repeat(2,1fr)}
.cdr-tuile{background:var(--cdr-carte);border:2px solid var(--cdr-bord);color:var(--cdr-txt);border-radius:12px;padding:12px;font-size:19px;text-align:left;display:flex;gap:10px;align-items:center;transition:transform .15s,border-color .15s}
.cdr-tuile:hover{transform:translateY(-2px)}
.cdr-tuile span{font-size:24px;min-width:28px;text-align:center;color:var(--cdr-cyan);font-weight:800}
.cdr-tuile.cdr-on{border-color:var(--cdr-cyan);background:#0c2133;box-shadow:0 0 16px rgba(56,217,255,.35)}
.cdr-unlock-bas{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.cdr-secoue{animation:cdr-secoue .45s}
@keyframes cdr-secoue{20%{transform:translateX(-8px)}40%{transform:translateX(8px)}60%{transform:translateX(-5px)}80%{transform:translateX(5px)}}
.cdr-unlock-ok{text-align:center;padding:20px;background:linear-gradient(180deg,#0b2420,var(--cdr-carte));border:1px solid var(--cdr-vert);border-radius:14px}
.cdr-unlock-ok h2{font-size:38px;color:var(--cdr-vert);margin:6px 0}
.cdr-unlock-ok p{font-size:21px}
.cdr-unlock-sceau{font-size:56px}
/* le déverrouillage spectaculaire */
.cdr-flash{position:fixed;inset:0;z-index:9500;background:rgba(3,8,14,.86);display:flex;align-items:center;justify-content:center;overflow:hidden;animation:cdr-fondu 2.6s ease forwards}
@keyframes cdr-fondu{0%{opacity:0}8%{opacity:1}85%{opacity:1}100%{opacity:0}}
.cdr-flash-scan{position:absolute;left:0;right:0;height:120px;top:-120px;background:linear-gradient(180deg,transparent,rgba(46,229,157,.35),transparent);animation:cdr-scan 1.1s ease-in-out 2}
@keyframes cdr-scan{to{transform:translateY(calc(100vh + 240px))}}
.cdr-flash-boite{position:relative;text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center;padding:30px 40px;border:2px solid var(--cdr-vert);border-radius:18px;background:#06120f;box-shadow:0 0 40px rgba(46,229,157,.35);animation:cdr-zoom .5s cubic-bezier(.2,1.4,.4,1) both}
@keyframes cdr-zoom{from{transform:scale(.6);opacity:0}to{transform:none;opacity:1}}
.cdr-flash-glitch{position:relative;font:800 46px/1 ui-monospace,monospace;letter-spacing:6px;color:var(--cdr-vert)}
.cdr-flash-glitch::before,.cdr-flash-glitch::after{content:attr(data-t);position:absolute;inset:0;opacity:.8}
.cdr-flash-glitch::before{color:var(--cdr-rouge);animation:cdr-glitch .4s steps(2) 3;clip-path:inset(0 0 55% 0)}
.cdr-flash-glitch::after{color:var(--cdr-cyan);animation:cdr-glitch .4s steps(2) reverse 3;clip-path:inset(55% 0 0 0)}
@keyframes cdr-glitch{0%{transform:translate(-4px,0)}50%{transform:translate(4px,-2px)}100%{transform:none;opacity:0}}
.cdr-flash-boite b{font-size:34px;color:#fff}
.cdr-flash-boite span{color:var(--cdr-pale);font-size:18px}
.cdr-flash-boite em{color:var(--cdr-ambre);font:800 26px 'Outfit',sans-serif;font-style:normal}
.cdr-flash-barre{width:320px;height:10px;border-radius:5px;background:#132a24;overflow:hidden}
.cdr-flash-barre i{display:block;height:100%;background:var(--cdr-vert);transform-origin:left;animation:cdr-barre 1.8s ease-out forwards}
@keyframes cdr-barre{from{transform:scaleX(0)}to{transform:scaleX(1)}}
/* présenter */
.cdr-present{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.cdr-present h3{font-size:21px;margin:0 0 8px}
.cdr-present-g,.cdr-present-d{background:var(--cdr-carte);border:1px solid var(--cdr-bord);border-radius:12px;padding:12px 16px}
.cdr-amorces-gros{margin:0;padding-left:20px;font-size:19px;line-height:1.55}
.cdr-cles{display:flex;flex-wrap:wrap;gap:8px}
.cdr-cle{background:#0a1120;border:2px solid var(--cdr-bord);color:var(--cdr-txt);border-radius:12px;padding:10px 14px;font-size:21px;font-weight:700;display:flex;gap:8px;align-items:center;transition:all .25s}
.cdr-cle.cdr-on{border-color:var(--cdr-vert);background:#0b2a22;color:var(--cdr-vert);box-shadow:0 0 14px rgba(46,229,157,.4)}
.cdr-cle b{font-size:14px;background:var(--cdr-vert);color:#04140d;border-radius:6px;padding:1px 6px;animation:cdr-zoom .3s both}
.cdr-phrase{display:flex;align-items:center;gap:8px;margin-top:12px;flex-wrap:wrap}
.cdr-modele{margin-top:10px;border-left:4px solid var(--cdr-ambre);padding:6px 12px;background:#141a10;font-size:17px}
.cdr-modele p{margin:4px 0}
/* défi */
.cdr-defi{background:var(--cdr-carte);border:1px solid var(--cdr-bord);border-radius:12px;padding:16px 20px}
.cdr-defi h2{margin:0;color:var(--cdr-ambre)}
.cdr-defi-q{font-size:30px;font-weight:700;margin:8px 0 12px}
.cdr-defi-q small{font-size:16px;color:var(--cdr-pale)}
.cdr-defi-o{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.cdr-defi-opt{display:flex;gap:12px;align-items:center;font-size:23px;padding:10px 14px;border:2px solid var(--cdr-bord);border-radius:12px;transition:all .4s}
.cdr-defi-opt b{color:var(--cdr-cyan);font-size:24px}
.cdr-defi-bon{border-color:var(--cdr-vert);background:#0b2a22}
.cdr-defi-non{opacity:.4}
.cdr-defi-qui{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:16px}
/* leçon */
.cdr-lecon{background:#f8fafc;color:#0f172a;border-radius:14px;padding:18px 24px;border-top:8px solid var(--cdr-eq)}
.cdr-lecon-tete{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cdr-lecon-tete span{font-size:40px}.cdr-lecon-tete h2{margin:0;font-size:34px;flex:1}
.cdr-lecon-tete em{font-style:normal;background:#0f172a;color:#fff;border-radius:8px;padding:4px 10px;font-size:15px}
.cdr-lecon-def{font-size:25px;font-weight:600;margin:12px 0 6px}
.cdr-lecon-var{font-size:19px;color:#334155;margin:0 0 10px}
.cdr-lecon-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.cdr-lecon-col h4{margin:0 0 4px;font-size:20px}.cdr-lecon-col ul{margin:0;padding-left:22px;font-size:20px;line-height:1.5}
/* panneaux : mur, oral, QR */
.cdr-panneau{position:absolute;right:12px;top:70px;bottom:70px;width:min(760px,calc(100% - 24px));z-index:20;background:#0b1220fc;border:1px solid var(--cdr-cyan);border-radius:14px;padding:12px 16px;overflow:auto;box-shadow:0 10px 40px rgba(0,0,0,.6);animation:cdr-glisse .3s ease-out both}
.cdr-panneau-large{width:min(1100px,calc(100% - 24px))}
@keyframes cdr-glisse{from{transform:translateX(40px);opacity:0}to{transform:none;opacity:1}}
.cdr-panneau-tete{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.cdr-panneau-tete h3{margin:0;flex:1;font-size:20px}
.cdr-panneau-tete>button{background:transparent;border:1px solid var(--cdr-bord);color:var(--cdr-txt);border-radius:8px;padding:4px 10px;font-size:16px}
.cdr-mur-qui{display:flex;gap:4px;align-items:center;flex-wrap:wrap;font-size:13px;color:var(--cdr-pale)}
.cdr-mur-qui .cdr-pastille{padding:3px 9px;font-size:13px}
.cdr-mur{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.cdr-mur-fam h4{margin:0 0 6px;color:var(--cdr-ambre);font-size:16px}
.cdr-mur-fam>div{display:flex;flex-wrap:wrap;gap:5px}
.cdr-mur-mot{background:#0a1120;border:1px solid var(--cdr-bord);color:#7c8aa3;border-radius:8px;padding:5px 9px;font-size:15px;transition:all .35s}
.cdr-mur-mot.cdr-on{color:#06101a;background:var(--cdr-eq);border-color:var(--cdr-eq);box-shadow:0 0 14px var(--cdr-eq);font-weight:700}
.cdr-oral{width:100%;border-collapse:collapse;font-size:15px}
.cdr-oral th,.cdr-oral td{border-bottom:1px solid var(--cdr-bord);padding:7px;text-align:left}
.cdr-oral td:first-child{border-left:4px solid var(--cdr-eq)}
.cdr-note-btn{background:#0a1120;border:1px solid var(--cdr-bord);color:var(--cdr-pale);border-radius:6px;width:30px;height:30px;margin-right:3px;font-weight:700}
.cdr-note-btn.cdr-on{background:var(--cdr-cyan);color:#04121c;border-color:var(--cdr-cyan)}
/* conseil */
.cdr-conseil{display:grid;grid-template-columns:1fr 1.1fr;gap:16px}
.cdr-conseil-g,.cdr-conseil-d{background:var(--cdr-carte);border:1px solid var(--cdr-bord);border-radius:12px;padding:14px 18px}
.cdr-conseil h2{margin:0 0 6px}
.cdr-conseil-amorce{font-size:26px;font-weight:700;color:var(--cdr-ambre);margin:6px 0}
.cdr-votes{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.cdr-vote{display:grid;grid-template-columns:1fr 34px 40px 34px;align-items:center;gap:6px;border-left:5px solid var(--cdr-eq);background:#0a1120;border-radius:8px;padding:6px 10px;font-size:18px;transition:all .3s}
.cdr-vote button{background:#13203a;border:1px solid var(--cdr-bord);color:#fff;border-radius:7px;height:30px;font-size:18px}
.cdr-vote b{text-align:center;font:800 22px ui-monospace,monospace}
.cdr-vote-top{box-shadow:0 0 0 2px var(--cdr-ambre),0 0 18px rgba(255,176,32,.35)}
.cdr-puces{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.cdr-puce{background:#0a1120;border:2px solid var(--cdr-eq);color:var(--cdr-txt);border-radius:999px;padding:5px 11px;font-size:14px}
.cdr-puce.cdr-on{background:var(--cdr-eq);color:#071018;font-weight:700}
.cdr-matrice{display:grid;grid-template-columns:28px 1fr;grid-template-rows:1fr 24px;gap:4px}
.cdr-mat-axe-y{writing-mode:vertical-rl;transform:rotate(180deg);text-align:center;color:var(--cdr-pale);font-size:12px;letter-spacing:2px}
.cdr-mat-axe-x{grid-column:2;text-align:center;color:var(--cdr-pale);font-size:12px;letter-spacing:2px}
.cdr-mat-grille{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
.cdr-case{min-height:92px;border:1px solid var(--cdr-bord);border-radius:8px;color:#fff;display:flex;flex-wrap:wrap;align-content:flex-start;gap:4px;padding:5px;text-align:left}
.cdr-case small{width:100%;font-size:11px;color:#cbd5e1;opacity:.8}
.cdr-case-0{background:#0d2a20}.cdr-case-1{background:#1f2d14}.cdr-case-2{background:#3a2a0c}.cdr-case-3{background:#40180f}.cdr-case-4{background:#4d0f1d}
.cdr-case-puce{font-size:26px;background:#0b1220;border:2px solid var(--cdr-eq);border-radius:10px;padding:0 4px;animation:cdr-zoom .35s both}
/* fin */
.cdr-fin{text-align:center;background:var(--cdr-carte);border:1px solid var(--cdr-bord);border-radius:14px;padding:18px}
.cdr-fin h2{font-size:34px;margin:0}.cdr-fin>p{color:var(--cdr-pale);font-size:18px}
.cdr-podium{list-style:none;padding:0;margin:12px auto 0;max-width:760px;display:flex;flex-direction:column;gap:8px}
.cdr-podium li{display:grid;grid-template-columns:44px 1fr auto auto;gap:12px;align-items:center;background:#0a1120;border-left:6px solid var(--cdr-eq);border-radius:10px;padding:10px 14px;font-size:19px;text-align:left;opacity:0;animation:cdr-entre .5s ease-out forwards}
.cdr-podium li span{font:800 26px ui-monospace,monospace;color:var(--cdr-eq)}
.cdr-podium li em{color:var(--cdr-pale);font-style:normal}
.cdr-podium li strong{font:800 24px ui-monospace,monospace}
/* fil des points, barre prof */
.cdr-fil{display:flex;gap:8px;flex-wrap:wrap;overflow:hidden}
.cdr-fil span{border:1px solid var(--cdr-eq);color:var(--cdr-eq);border-radius:999px;padding:2px 10px;font-size:13px;animation:cdr-entre .4s both}
.cdr-prof{display:flex;gap:6px;flex-wrap:wrap;align-items:center;border-top:1px dashed var(--cdr-bord);padding-top:8px}
.cdr-prof-lab{font-size:11px;text-transform:uppercase;letter-spacing:2px;color:#56657f}
.cdr-prof button{background:#0c1322;border:1px solid var(--cdr-bord);color:#b6c2d6;border-radius:8px;padding:6px 10px;font-size:13px}
.cdr-prof button:disabled{opacity:.35}
.cdr-prof .cdr-prof-danger{margin-left:auto;color:#ff8fa3}
/* accueil prof */
.cdr-accueil{background:#0b1220;color:#e6edf7;border-radius:16px;padding:20px}
.cdr-accueil-tete{display:flex;gap:16px;align-items:flex-start}
.cdr-accueil-tete h3{margin:0 0 6px;color:#ff3b5c;font-size:24px}
.cdr-accueil-tete p{margin:0;line-height:1.5}
.cdr-accueil-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 8px}
.cdr-accueil-note{color:#94a3b8;font-size:14px;margin:0}
@media (max-width:1000px){
  .cdr-briefing,.cdr-enquete,.cdr-present,.cdr-conseil{grid-template-columns:1fr}
  .cdr-tuiles{grid-template-columns:repeat(2,1fr)}.cdr-tuiles-indices{grid-template-columns:1fr}
  .cdr-mur{grid-template-columns:1fr 1fr}
}

/* ============ LE TÉLÉPHONE ============ */
.cdr-tel{min-height:100vh;background:linear-gradient(180deg,#0b0f1c,#070b14 240px);padding:0 0 40px;font-size:16px}
.cdr-tel button{font-family:inherit;cursor:pointer}
.cdr-tel-tete{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:10px;padding:10px 14px;background:#0b1220ee;border-bottom:2px solid var(--cdr-eq);backdrop-filter:blur(6px)}
.cdr-tel-id{flex:1;min-width:0}
.cdr-tel-id b{display:block;color:var(--cdr-eq);font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cdr-tel-id span{font-size:12px;color:var(--cdr-pale)}
.cdr-joueur{background:var(--cdr-eq);color:#071018;border:0;border-radius:999px;padding:6px 11px;font-weight:800}
.cdr-tel-entree{max-width:420px;margin:0 auto;padding:40px 18px;text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center}
.cdr-tel-entree h1{margin:0;letter-spacing:6px;color:var(--cdr-rouge);text-shadow:0 0 14px rgba(255,59,92,.6)}
.cdr-tel-entree p{margin:0;color:var(--cdr-pale)}
.cdr-code{font:800 28px ui-monospace,monospace;letter-spacing:6px;text-align:center;width:170px;padding:10px;border-radius:12px;border:2px solid var(--cdr-cyan);background:#0a1120;color:#fff;text-transform:uppercase}
.cdr-tel-choix{padding:18px 16px}
.cdr-tel-choix h2{font-size:20px;margin:14px 0 4px}
.cdr-aide{color:var(--cdr-pale);font-size:14px;margin:0 0 10px}
.cdr-choix-n{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cdr-pastille-j{padding:14px}
.cdr-partage{margin:10px 12px 0;padding:9px 12px;border-radius:12px;background:#1a1530;border:1px solid #6d5bd0;font-size:13px;color:#cfc8ff;line-height:1.4;animation:cdr-entre .5s both}
.cdr-partage b{display:block;font-size:15px;color:#fff}
.cdr-onglets{display:flex;gap:4px;margin:10px 12px 0;background:#0a1120;border-radius:12px;padding:4px}
.cdr-onglets button{flex:1;background:transparent;border:0;color:var(--cdr-pale);border-radius:9px;padding:7px 2px;font-size:12px;display:flex;flex-direction:column;align-items:center;gap:1px}
.cdr-onglets button span{font-size:18px}
.cdr-onglets button.cdr-on{background:#16233c;color:#fff}
.cdr-docs,.cdr-bloc{padding:10px 12px;display:flex;flex-direction:column;gap:12px}
.cdr-bloc h3{margin:6px 0 0;font-size:17px;color:var(--cdr-eq)}
.cdr-mission{margin:0;font-size:14px;color:#cbd5e1;line-height:1.45}
.cdr-doc-entree{opacity:0;animation:cdr-arrive .55s cubic-bezier(.2,.9,.3,1.2) forwards}
@keyframes cdr-arrive{from{opacity:0;transform:translateY(24px) scale(.97)}to{opacity:1;transform:none}}
.cdr-doc{border-radius:14px;overflow:hidden;background:var(--cdr-carte);border:1px solid var(--cdr-bord)}
.cdr-doc-num{display:flex;gap:8px;align-items:baseline;padding:7px 12px;background:#0a1120;font-size:12px;color:var(--cdr-eq);font-weight:800;text-transform:uppercase;letter-spacing:1px}
.cdr-doc-num span{color:var(--cdr-pale);text-transform:none;letter-spacing:0;font-weight:500}
.cdr-mot{background:none;border:0;padding:0 1px;color:#38bdf8;font:inherit;font-weight:700;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px;cursor:pointer}
.cdr-mot-ex{cursor:default}
.cdr-ligne{display:inline}
/* mail */
.cdr-mail{background:#f8fafc;color:#0f172a}
.cdr-mail-barre{display:flex;justify-content:space-between;padding:7px 12px;background:#e2e8f0;font-size:13px;font-weight:700}
.cdr-mail-barre i{font-weight:500;color:#475569}
.cdr-mail-champs{padding:8px 12px;border-bottom:1px solid #e2e8f0;font-size:13.5px;display:flex;flex-direction:column;gap:3px}
.cdr-mail-champs div{display:flex;gap:6px;word-break:break-all}
.cdr-mail-champs em{font-style:normal;color:#64748b;min-width:54px}
.cdr-mail-objet b{color:#b91c1c}
.cdr-mail-corps{padding:10px 12px;font-size:15px;line-height:1.55}
.cdr-mail .cdr-mot{color:#0369a1}
.cdr-mail-pj{display:flex;gap:10px;align-items:center;margin:0 12px 12px;padding:8px 10px;border:1px solid #cbd5e1;border-radius:10px;background:#fff}
.cdr-pj-ic{font-size:24px}.cdr-mail-pj b{display:block;font-size:14px;word-break:break-all}.cdr-mail-pj em{font-size:12px;color:#64748b;font-style:normal}
/* log */
.cdr-log{background:#03060b;font:13px/1.5 ui-monospace,Menlo,Consolas,monospace;padding-bottom:8px}
.cdr-log-barre{display:flex;align-items:center;gap:5px;padding:6px 10px;background:#111827;color:#6b7280;font-size:12px}
.cdr-log-barre i{width:9px;height:9px;border-radius:50%;background:#374151}
.cdr-log-barre i:first-child{background:#ef4444}
.cdr-log-barre span{margin-left:6px}
.cdr-log-l{display:grid;grid-template-columns:96px 1fr;gap:8px;padding:3px 10px;color:#86efac;opacity:0;animation:cdr-ligne .35s ease-out forwards}
@keyframes cdr-ligne{from{opacity:0;transform:translateX(-8px)}to{opacity:1;transform:none}}
.cdr-log-h{color:#64748b}
.cdr-log-al{color:#fda4af;background:rgba(255,59,92,.08)}
.cdr-log .cdr-mot{color:#7dd3fc}
/* chat */
.cdr-chat{background:#0d1a17;padding:0 0 10px;display:flex;flex-direction:column;gap:6px}
.cdr-chat-barre{padding:8px 12px;background:#12332b;color:#d1fae5;font-size:13px;font-weight:700}
.cdr-bulle{max-width:84%;margin:0 10px;padding:7px 10px;border-radius:14px 14px 14px 4px;background:#1f2c34;font-size:14.5px;line-height:1.4;opacity:0;animation:cdr-bulle .4s cubic-bezier(.2,1.3,.4,1) forwards;transform-origin:left bottom}
.cdr-bulle b{display:block;font-size:11.5px;color:#7dd3c0}
.cdr-bulle-moi{align-self:flex-end;background:#065f46;border-radius:14px 14px 4px 14px;transform-origin:right bottom}
.cdr-bulle-moi b{color:#a7f3d0}
@keyframes cdr-bulle{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}
/* note, table, rançon */
.cdr-note{display:flex;gap:10px;padding:14px;background:#fef3c7;color:#422006;font-size:15px;line-height:1.5;transform:rotate(-.6deg);margin:10px;border-radius:4px;box-shadow:0 4px 0 #d6b85a}
.cdr-note-ic{font-size:24px}
.cdr-note .cdr-mot{color:#9a3412}
.cdr-tab{background:#f8fafc;color:#0f172a;padding:10px}
.cdr-tab-ic{font-weight:800;margin-bottom:6px;font-size:14px}
.cdr-tab table{width:100%;border-collapse:collapse;font-size:13.5px}
.cdr-tab th{background:#1e293b;color:#fff;text-align:left;padding:5px 6px}
.cdr-tab td{border-bottom:1px solid #e2e8f0;padding:5px 6px}
.cdr-rancon{background:#1a0505;color:#fecaca;text-align:center;padding:16px;font:700 15px/1.5 ui-monospace,monospace;display:flex;flex-direction:column;align-items:center;gap:6px}
.cdr-rancon svg{animation:cdr-clign 1.4s steps(2) infinite}
.cdr-rancon-t .cdr-ligne:first-child{color:#ef4444;font-size:18px;letter-spacing:1px}
.cdr-rancon .cdr-mot{color:#fca5a5}
/* reporter, questions, indices, mots */
.cdr-reporter{text-align:center;background:var(--cdr-carte);border:1px dashed var(--cdr-eq);border-radius:14px;padding:18px}
.cdr-reporter-e{font-size:44px}.cdr-reporter h3{margin:4px 0;color:var(--cdr-eq)}
.cdr-questions{margin:0;padding-left:22px;line-height:1.55}
.cdr-amorces{margin:0;padding-left:20px;font-size:14px;line-height:1.5;color:#cbd5e1}
.cdr-code-ligne{display:flex;gap:8px;align-items:center}
.cdr-code-ligne .cdr-code{width:120px;font-size:22px}
.cdr-indice{background:var(--cdr-carte);border:1px solid var(--cdr-bord);border-radius:10px;padding:9px 12px;display:flex;flex-direction:column;gap:3px;color:var(--cdr-pale)}
.cdr-indice b{color:var(--cdr-ambre)}
.cdr-indice-ok{color:var(--cdr-txt);border-color:var(--cdr-ambre);animation:cdr-arrive .4s both}
.cdr-mots-liste{display:flex;flex-wrap:wrap;gap:6px}
.cdr-mot-carte{background:#0a1120;border:1px solid var(--cdr-bord);color:var(--cdr-txt);border-radius:10px;padding:6px 10px;font-size:14px;display:flex;gap:6px;align-items:center}
.cdr-famille h4{margin:6px 0;color:var(--cdr-ambre);font-size:14px}
/* carte d'un mot */
.cdr-feuille-fond{position:fixed;inset:0;z-index:50;background:rgba(0,0,0,.55);display:flex;align-items:flex-end;justify-content:center;animation:cdr-fondu-in .2s both}
@keyframes cdr-fondu-in{from{opacity:0}to{opacity:1}}
.cdr-feuille{width:100%;max-width:480px;background:#0f1626;border-top:3px solid var(--cdr-eq);border-radius:20px 20px 0 0;padding:16px 18px 24px;display:flex;flex-direction:column;gap:8px;animation:cdr-monte .3s cubic-bezier(.2,.9,.3,1) both}
@keyframes cdr-monte{from{transform:translateY(100%)}to{transform:none}}
.cdr-feuille-e{font-size:46px;text-align:center}
.cdr-feuille-mot{display:flex;justify-content:center;align-items:center;gap:10px}
.cdr-feuille-mot b{font-size:26px;color:var(--cdr-eq)}
.cdr-feuille-d{margin:0;font-size:17px;line-height:1.45}
.cdr-feuille-x{margin:0;font-size:15px;color:#cbd5e1}
.cdr-feuille-x em{color:var(--cdr-ambre);font-style:normal;font-weight:700}
/* --- illustrations (img/codered/) : voile sombre + lent « ken burns » --- */
.cdr-img-kb{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform-origin:60% 40%;animation:cdr-kb 26s ease-in-out infinite alternate}
@keyframes cdr-kb{from{transform:scale(1.02) translate(0,0)}to{transform:scale(1.14) translate(-2%,-2%)}}
.cdr-img-voile{position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,11,20,.35) 0%,rgba(7,11,20,.72) 55%,rgba(7,11,20,.94) 100%)}
.cdr-histoire .cdr-img-voile{background:linear-gradient(90deg,rgba(7,11,20,.93) 0%,rgba(7,11,20,.78) 55%,rgba(7,11,20,.55) 100%)}
.cdr-histoire-t{position:relative;z-index:1}
.cdr-regles-roles span{border-color:#2b4466}
.cdr-bandeau{position:relative;height:150px;overflow:hidden;border-bottom:2px solid var(--cdr-eq)}
.cdr-bandeau.cdr-img-sans{height:auto;background:linear-gradient(135deg,#1a0d1f,#0b1220)}
.cdr-bandeau-t{position:relative;z-index:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;padding:10px 14px;gap:2px}
.cdr-bandeau-t span{font-size:12px;color:var(--cdr-eq);font-weight:800;text-transform:uppercase;letter-spacing:1px}
.cdr-bandeau-t b{font-size:16px;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.8)}
/* --- les rôles (téléphone) --- */
.cdr-roles{display:flex;flex-direction:column;gap:10px}
.cdr-role{position:relative;text-align:left;background:linear-gradient(135deg,#101a2e,#0b1220);border:2px solid var(--cdr-role);color:var(--cdr-txt);border-radius:16px;padding:12px 14px;display:flex;flex-direction:column;gap:6px;opacity:0;animation:cdr-arrive .5s cubic-bezier(.2,.9,.3,1.2) forwards;box-shadow:0 0 18px color-mix(in srgb,var(--cdr-role) 25%,transparent)}
.cdr-role:active{transform:scale(.98)}
.cdr-role-ic{display:flex;gap:6px;font-size:30px}
.cdr-role-ic span{animation:cdr-flotte 3s ease-in-out infinite}
.cdr-role-ic span:nth-child(2){animation-delay:.5s}
@keyframes cdr-flotte{50%{transform:translateY(-3px)}}
.cdr-role>b{font-size:18px;color:var(--cdr-role)}
.cdr-role-l{display:flex;flex-direction:column;gap:2px;font-size:14px;color:#cbd5e1}
.cdr-role-l q,.cdr-moi q,.cdr-part q{font-style:italic;color:#fff}
.cdr-role-l q{font-size:13.5px;background:#0a1120;border-radius:8px;padding:4px 8px}
.cdr-role em{align-self:flex-end;font-style:normal;font-weight:800;color:var(--cdr-role);font-size:14px}
.cdr-moi{display:flex;gap:10px;align-items:flex-start;margin:10px 12px 0;padding:10px 12px;border-radius:12px;background:#0f1a2b;border:1px solid var(--cdr-bord)}
.cdr-moi-ic{font-size:28px}
.cdr-moi b{display:block;color:var(--cdr-eq)}
.cdr-moi span{display:block;font-size:12px;color:var(--cdr-pale);margin:2px 0}
.cdr-moi q{display:block;font-size:14px;line-height:1.4}
.cdr-doc-copie{margin-left:auto;font-style:normal;background:#2b2140;color:#cfc8ff;border-radius:6px;padding:0 6px;text-transform:none;letter-spacing:0}
/* --- les parties de l'oral (tableau) --- */
.cdr-parts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.cdr-part{display:grid;grid-template-columns:44px 1fr 46px;gap:10px;align-items:center;background:#0a1120;border:2px solid var(--cdr-bord);border-left:6px solid var(--cdr-role);border-radius:12px;padding:8px 10px;opacity:0;animation:cdr-entre .4s ease-out forwards;transition:background .3s,border-color .3s}
.cdr-part-ic{font-size:30px;text-align:center}
.cdr-part b{display:block;font-size:18px;color:var(--cdr-role)}
.cdr-part q{display:block;font-size:20px;line-height:1.35}
.cdr-part-ok{width:42px;height:42px;border-radius:50%;border:2px solid var(--cdr-role);background:transparent;color:var(--cdr-role);font-size:20px;font-weight:800}
.cdr-part.cdr-on{background:#0b2a22;border-color:var(--cdr-vert)}
.cdr-part.cdr-on .cdr-part-ok{background:var(--cdr-vert);border-color:var(--cdr-vert);color:#04140d}
.cdr-pale{opacity:.25}
/* --- le panneau « Teams & roles » --- */
.cdr-eqt{width:100%;border-collapse:collapse;font-size:14px}
.cdr-eqt th,.cdr-eqt td{border-bottom:1px solid var(--cdr-bord);padding:6px;text-align:left;vertical-align:middle}
.cdr-eqt tr td:first-child{border-left:4px solid var(--cdr-eq)}
.cdr-eqt code{color:var(--cdr-pale)}
.cdr-eqt select,.cdr-eqt-nom{background:#0a1120;color:var(--cdr-txt);border:1px solid var(--cdr-bord);border-radius:7px;padding:5px 6px;font:inherit;max-width:230px}
.cdr-eqt-nom{width:120px}
.cdr-eqt td .cdr-btn-mini{margin:2px}
.cdr-eqt-off td{opacity:.45}
.cdr-qrs-roles{grid-template-columns:repeat(4,1fr)}
.cdr-piece-off .cdr-piece-fond{fill:#0b0f18;stroke:#334155;stroke-dasharray:8 6}
.cdr-phases button:disabled{opacity:.3;cursor:default}
@media (prefers-reduced-motion:reduce){
  .cdr-plateau *,.cdr-tel *,.cdr-flash,.cdr-flash *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important}
  .cdr-histoire p,.cdr-regles,.cdr-doc-entree,.cdr-log-l,.cdr-bulle,.cdr-podium li,.cdr-role,.cdr-part{opacity:1!important}
  .cdr-img-kb{animation:none!important;transform:none!important}
}
/* ==== codered : fin des styles ==== */

/* >>> SIM-80 a SIM-82 styles — debut */
/* SIM-80 à SIM-82 : la page autonome dans son cadre, sous la barre du
   hub. Le cadre prend toute la hauteur qui reste (`.smu-ecran` est déjà
   une colonne flex en plein écran, piège M). */
.smu-eco .smu-eco-cadre{
  flex:1 1 auto; display:block; width:100%; min-height:0;
  border:0; background:#fff;
}
.smu-eco .smu-haut{ padding:.35em .9em; }
/* <<< SIM-80 a SIM-82 styles — fin */
