/* ===== RepèresTDAH — Appli v0 (Comprendre+) ===== */
/* Même socle visuel que le site (style.css du Site socle v0). */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --accent:#E8612A; --accent-dark:#C94F1E; --accent-text:#B5471C; --btn:#BF4A1B; --btn-dark:#A84219;
  --bg:#FFFAF7; --white:#FFFFFF; --shell:#E7E1DB; --shell-bd:#D8CFC6;
  --text:#1C1C1E; --soft:#6B6B6B; --border:#E5E0DB; --teal:#166E7A; --teal-dark:#0F5560; --soft-bg:#FDF3EC;
  --teal-bg:#EAF3F2; --teal-bd:#CFE5E2;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;background:var(--shell);color:var(--text);line-height:1.6;-webkit-font-smoothing:antialiased}
/* Coque d'appli : panneau encadré sur fond neutre — l'écran « fait appli », pas site.
   Sur mobile, .app remplit la largeur (effet plein écran) ; sur desktop, panneau centré. */
.app{max-width:480px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column;padding:0 20px;background:var(--bg);border-left:1px solid var(--shell-bd);border-right:1px solid var(--shell-bd);box-shadow:0 0 44px rgba(40,28,18,.10)}
a{color:var(--accent-text)}
a:focus-visible,button:focus-visible{outline:3px solid var(--btn-dark);outline-offset:2px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* Marque « RepèresTDAH » (collée, 2 couleurs) */
.brand{color:var(--accent-text);white-space:nowrap}
.brand i{font-style:normal;color:var(--text)}

/* En-tête */
.top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 -20px;padding:14px 20px 11px;position:sticky;top:0;background:rgba(255,250,247,.96);border-bottom:1px solid var(--border);z-index:5;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.logo{font-weight:800;font-size:18px;letter-spacing:-.02em;text-decoration:none}
.top-actions{display:flex;gap:8px;align-items:center}
.pillbtn{font-size:13px;font-weight:500;color:var(--soft);text-decoration:none;border:1px solid var(--border);padding:6px 13px;border-radius:100px;background:var(--white);cursor:pointer;font-family:inherit}
.pillbtn:hover{color:var(--accent-text);border-color:var(--accent)}

/* Badges */
.badge{display:inline-block;background:var(--soft-bg);color:var(--accent-text);font-size:12.5px;font-weight:600;padding:6px 16px;border-radius:100px;margin-bottom:18px}
.badge-free{display:inline-block;background:#EAF3F2;color:var(--teal-dark);border:1px solid #CFE5E2;font-size:12px;font-weight:700;padding:4px 12px;border-radius:100px}

/* Titres et textes */
h1{font-size:clamp(25px,6.5vw,32px);font-weight:800;line-height:1.16;letter-spacing:-.02em;margin-bottom:14px}
h1 em{font-style:normal;color:var(--accent)}
h2.title{font-size:22px;font-weight:800;line-height:1.2;letter-spacing:-.01em;margin-bottom:8px}
.lead{font-size:16.5px;color:var(--soft);margin-bottom:22px}
.intro{font-size:15.5px;color:var(--soft);margin-bottom:20px}
p.para{font-size:15.5px;margin-bottom:14px}
.muted{color:var(--soft)}

/* Vues */
.view{display:none;animation:fade .3s ease;padding-bottom:26px}
.view.active{display:block}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* Encadrés (mêmes patterns que le site) */
.promise{background:var(--white);border:1px solid var(--border);border-left:5px solid var(--accent);border-radius:14px;padding:16px 18px;margin-bottom:20px}
.promise p{font-size:14.5px;color:#3a3a3c}
.promise b{color:var(--text)}
.callout{background:#EAF3F2;border:1px solid #CFE5E2;border-left:5px solid var(--teal);border-radius:14px;padding:15px 17px;margin:6px 0 20px}
.callout b{color:var(--teal-dark)}
.callout p{font-size:14px;color:#33514f;margin-bottom:6px}
.callout p:last-child{margin-bottom:0}
.proquote{font-size:13.5px;color:#3a3a3c;background:var(--white);border:1px solid var(--border);border-radius:12px;padding:13px 15px;margin-bottom:20px}
.persoline{display:flex;gap:9px;align-items:flex-start;background:var(--soft-bg);border:1px solid var(--border);border-radius:12px;padding:11px 14px;margin:0 0 16px;font-size:14px;color:#5a4636}
.persoline .pp{flex:none;font-weight:800;color:var(--accent-text)}

/* Listes (idées numérotées + puces) */
.ideas{list-style:none;margin:6px 0 20px}
.ideas li{display:flex;gap:13px;align-items:flex-start;padding:13px 0;border-bottom:1px solid var(--border)}
.ideas li:last-child{border-bottom:none}
.inum{flex:0 0 28px;height:28px;border-radius:50%;background:var(--soft-bg);color:var(--accent-text);font-weight:700;font-size:14px;display:flex;align-items:center;justify-content:center;margin-top:2px}
.ideas li span.txt{font-size:15px}
.things{list-style:none;margin:6px 0 18px}
.things li{display:flex;gap:12px;align-items:flex-start;padding:9px 0}
.things .tk{flex:0 0 22px;color:var(--accent);font-weight:800;font-size:18px;line-height:1.3}
.things li span.txt{font-size:15px}

/* Quiz (pattern du site, feedback double D-60) */
.quiz{background:var(--white);border:1px solid var(--border);border-radius:16px;padding:18px;margin-bottom:20px}
.quizlead{font-size:14px;color:var(--soft);margin-bottom:14px}
.qblock + .qblock{margin-top:18px;padding-top:18px;border-top:1px solid var(--border)}
.qq{font-size:15.5px;font-weight:600;margin-bottom:12px}
.opts{display:flex;gap:10px}
.opt{flex:1;padding:12px;border-radius:12px;border:1.5px solid var(--border);background:#fff;cursor:pointer;font-family:inherit;font-weight:600;font-size:15px;transition:.12s;color:var(--text)}
.opt:hover{border-color:var(--accent)}
.opt.picked{border-color:var(--teal);background:#fff}
.answer{display:none;margin-top:14px;border-radius:12px;padding:14px;font-size:14.5px}
.answer.show{display:block;animation:fade .25s ease}
.answer .verdict{font-weight:700;margin-bottom:4px}
.answer.ok{background:#EAF3F2;border:1px solid #CFE5E2}
.answer.ok .verdict{color:var(--teal-dark)}
.answer.rectify{background:var(--soft-bg);border:1px solid var(--border)}
.answer.rectify .verdict{color:var(--accent-text)}

/* Chips (questions à feedback / embranchement) */
.q{margin-bottom:22px}
.qlabel{font-size:15.5px;font-weight:600;margin-bottom:10px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{font-size:14px;font-weight:500;padding:9px 15px;border-radius:100px;border:1.5px solid var(--border);background:#fff;cursor:pointer;font-family:inherit;color:var(--text);transition:.12s}
.chip:hover{border-color:var(--accent)}
.chip.sel{background:var(--accent-text);border-color:var(--accent-text);color:#fff}
/* R-1 (a11y) : marqueur non-couleur sur la chip sélectionnée — l'état « choisi »
   ne repose plus sur la seule couleur (WCAG 1.4.1) ; complète aria-pressed (JS). */
.chip.sel::after{content:" ✓";font-weight:800}
.scale{display:flex;gap:8px}
.scale .chip{flex:1;text-align:center;font-weight:600}
.scalehint{font-size:12.5px;color:var(--soft);margin-top:8px}
.qfb{display:none;margin-top:11px;background:#EAF3F2;border:1px solid #CFE5E2;border-radius:12px;padding:12px 14px;font-size:14px;color:#33514f}
.qfb.show{display:block;animation:fade .25s ease}
.reassure{font-size:13.5px;color:var(--soft);background:var(--soft-bg);border-radius:12px;padding:12px 14px;margin:14px 0 4px}

/* Boutons */
.cta{display:block;width:100%;text-align:center;background:var(--btn);color:#fff;font-size:16px;font-weight:600;padding:15px 24px;border-radius:12px;text-decoration:none;border:none;cursor:pointer;transition:.15s;font-family:inherit}
.cta:hover{background:var(--btn-dark);transform:translateY(-1px)}
.cta:active{transform:none}
.cta[disabled]{opacity:.5;cursor:not-allowed;transform:none}
.cta.ghost{background:transparent;color:var(--accent-text);border:1.5px solid var(--border)}
.cta.ghost:hover{border-color:var(--accent);background:transparent}
.back{display:inline-block;margin-top:14px;font-size:14px;color:var(--soft);background:none;border:none;cursor:pointer;font-family:inherit;text-decoration:underline;text-underline-offset:3px}
.back:hover{color:var(--accent-text)}
.foot{margin-top:18px}

/* Accueil : progression globale + cartes sessions */
.hero-app{padding:10px 0 6px}
.hero-app .lead{margin-bottom:14px}
.progress-wrap{margin:14px 0 20px}
.progress-label{display:flex;justify-content:space-between;font-size:13px;color:var(--soft);font-weight:500;margin-bottom:6px}
.progress-bar{height:8px;border-radius:100px;background:var(--border);overflow:hidden}
.progress-fill{height:100%;border-radius:100px;background:var(--accent);transition:width .3s ease;width:0}
.banner{display:flex;gap:10px;align-items:flex-start;background:#EAF3F2;border:1px solid #CFE5E2;border-radius:14px;padding:14px 16px;margin-bottom:16px;font-size:14px;color:#33514f}
.banner b{color:var(--teal-dark)}
.banner .bicon{flex:none;font-size:17px;line-height:1.3}
.sess-list{display:flex;flex-direction:column;gap:12px;margin:4px 0 20px}
.sess-card{display:flex;gap:14px;align-items:flex-start;background:var(--white);border:1px solid var(--border);border-radius:16px;padding:16px;cursor:pointer;font-family:inherit;text-align:left;width:100%;transition:.15s;color:var(--text)}
.sess-card:hover{border-color:var(--teal);transform:translateY(-1px)}
.sess-num{flex:0 0 34px;height:34px;border-radius:50%;background:var(--soft-bg);color:var(--accent-text);font-weight:800;font-size:15px;display:flex;align-items:center;justify-content:center;margin-top:2px}
.sess-card.done .sess-num{background:#EAF3F2;color:var(--teal-dark)}
.sess-body{flex:1;min-width:0}
.sess-body h3{font-size:15.5px;font-weight:700;margin-bottom:3px}
.sess-meta{font-size:13px;color:var(--soft)}
.sess-state{font-size:12.5px;font-weight:600;margin-top:5px}
.sess-state.encours{color:var(--accent-text)}
.sess-state.fini{color:var(--teal-dark)}
.sess-tag{display:inline-block;font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:8px;background:var(--soft-bg);color:var(--accent-text);margin-left:6px;vertical-align:1px}

/* Session : en-tête de progression */
.sess-top{padding:4px 0 2px}
.sess-info{font-size:12px;color:var(--soft);font-weight:500;margin-bottom:6px}
.stepbar{height:6px;border-radius:100px;background:var(--border);overflow:hidden;margin-bottom:18px}
.stepbar-fill{height:100%;border-radius:100px;background:var(--accent);transition:width .25s ease;width:0}

/* Fin de session */
.end{text-align:center;padding:18px 0 6px}
.endmark{font-size:46px;line-height:1;color:var(--accent);font-weight:800;margin-bottom:10px}

/* Onboarding / réglages */
.choice-cards{display:flex;flex-direction:column;gap:10px;margin:8px 0 18px}
.choice{display:block;width:100%;text-align:left;background:var(--white);border:1.5px solid var(--border);border-radius:14px;padding:15px 16px;cursor:pointer;font-family:inherit;font-size:15px;color:var(--text);transition:.12s}
.choice:hover{border-color:var(--accent)}
.choice.sel{border-color:var(--accent);background:var(--soft-bg)}
.choice b{display:block;margin-bottom:2px}
.choice span{font-size:13.5px;color:var(--soft)}
.switchrow{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--white);border:1px solid var(--border);border-radius:14px;padding:14px 16px;margin-bottom:12px}
.switchrow .sw-label{font-size:15px;font-weight:600}
.switchrow .sw-sub{font-size:13px;color:var(--soft);font-weight:400;margin-top:2px}
.switch{position:relative;flex:none;width:48px;height:28px;border-radius:100px;background:var(--border);border:none;cursor:pointer;transition:.15s;padding:0}
.switch::after{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:.15s;box-shadow:0 1px 3px rgba(0,0,0,.18)}
.switch.on{background:var(--teal)}
.switch.on::after{left:23px}
.freq{display:flex;gap:8px;margin:-2px 0 14px}
.freq .chip{flex:1;text-align:center}
.settings-block{margin-bottom:22px}
.settings-block h3{font-size:16px;font-weight:700;margin-bottom:10px}
.danger{color:#8d2f12}

/* Protocole vivant (S2) : carte d'accueil */
.proto-card{display:flex;gap:14px;align-items:flex-start;background:var(--white);border:1.5px solid var(--border);border-left:5px solid var(--teal);border-radius:16px;padding:16px;cursor:pointer;font-family:inherit;text-align:left;width:100%;transition:.15s;color:var(--text);margin:4px 0 18px}
.proto-card:hover{border-color:var(--teal);transform:translateY(-1px)}
.proto-card .ppic{flex:0 0 38px;color:var(--teal-dark)}
.proto-card .ppic svg{width:34px;height:34px}
.proto-card h3{font-size:15.5px;font-weight:700;margin-bottom:3px}
.proto-card .sess-meta{margin-bottom:5px}

/* Protocole vivant : réglage des étapes */
.heure-input{font-family:inherit;font-size:17px;font-weight:700;color:var(--text);background:var(--white);border:1.5px solid var(--border);border-radius:12px;padding:10px 14px;margin:2px 0 8px;min-width:130px}
.heure-input:focus-visible{outline:3px solid var(--btn-dark);outline-offset:2px}
.steppick{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:4px 0 8px}
.spc{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;background:var(--white);border:1.5px solid var(--border);border-radius:14px;padding:12px 6px 10px;cursor:pointer;font-family:inherit;color:var(--text);transition:.12s;min-height:74px}
.spc:hover{border-color:var(--accent)}
.spc.sel{border-color:var(--teal);background:#EAF3F2}
.spc .spi{color:var(--accent-text)}
.spc.sel .spi{color:var(--teal-dark)}
.spc .spi svg{width:26px;height:26px;display:block}
.spc .spl{font-size:12px;font-weight:600;text-align:center;line-height:1.25}
.spc .spn{position:absolute;top:6px;right:7px;min-width:19px;height:19px;border-radius:50%;background:var(--teal);color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
.spc .spn:empty{display:none}

/* Protocole vivant : « ce soir » */
.soir-steps{display:flex;flex-direction:column;gap:8px;margin:4px 0 8px}
.soir-step{display:flex;align-items:center;gap:12px;background:var(--white);border:1px solid var(--border);border-radius:12px;padding:10px 13px}
.soir-step .ssn{flex:0 0 24px;height:24px;border-radius:50%;background:var(--soft-bg);color:var(--accent-text);font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center}
.soir-step .ssi{color:var(--teal-dark)}
.soir-step .ssi svg{width:24px;height:24px;display:block}
.soir-step .ssl{font-size:15px;font-weight:600}
.geste{padding:10px 0;border-bottom:1px solid var(--border)}
.geste:last-of-type{border-bottom:none}
.geste b{display:block;font-size:14.5px;margin-bottom:3px}
.geste .gp{display:block;font-size:13px;color:var(--soft)}
.morelink2{display:block;margin:10px 0 2px;font-size:13.5px;font-weight:600;color:var(--accent-text);background:none;border:none;cursor:pointer;font-family:inherit;text-decoration:underline;text-underline-offset:3px;padding:0}
.morelink2:hover{color:var(--accent-dark)}

/* Technique E2 (S3) : carte d'entrée — accent orange, pas d'étiquette */
.proto-card.tech{border-left-color:var(--accent)}
.proto-card.tech:hover{border-color:var(--accent)}
.proto-card.tech .ppic{color:var(--accent-text)}

/* US-503 : drapeaux rouges / ressources */
.urgence{background:var(--white);border:1px solid var(--border);border-left:5px solid var(--accent);border-radius:12px;padding:12px 14px;margin-bottom:10px}
.urgence .ut{font-size:14px;margin-bottom:4px}
.urgence .ur{font-size:13.5px;font-weight:600;color:var(--teal-dark)}

/* Pied de page (garde-fous) */
.sitefoot{border-top:1px solid var(--border);margin-top:auto;padding:18px 0 26px;font-size:12px;line-height:1.7;color:var(--soft);text-align:center}
.sitefoot a{color:var(--soft)}

/* ===== US-102b — types multimodaux (D-81→D-84 + D-89) ===== */

/* Option C (D-88) : détail « Pourquoi » dépliable sous le feedback court */
.fb-detail{margin-top:9px}
.fb-detail summary{display:inline-block;font-size:13px;font-weight:600;color:var(--accent-text);cursor:pointer;text-decoration:underline;text-underline-offset:3px;list-style:none}
.fb-detail summary::-webkit-details-marker{display:none}
.fb-detail summary::after{content:' ›'}
.fb-detail[open] summary::after{content:' ‹'}
.fb-detail p{margin-top:7px;font-size:14px}

/* « revele » : bouchées + points + picto-repère */
.picto-step{margin:0 0 10px;color:var(--accent-text)}
.picto-step svg{width:46px;height:46px;display:block}
.bite{opacity:0;transform:translateY(8px);max-height:0;overflow:hidden}
.bite.in{opacity:1;transform:none;max-height:600px;margin-bottom:12px;transition:opacity .3s ease,transform .3s ease,max-height .35s ease}
.bite p.para:last-child{margin-bottom:0}
.bitedots{display:flex;gap:5px;justify-content:center;margin:2px 0 12px}
.bitedots i{width:7px;height:7px;border-radius:50%;background:var(--border);transition:.2s}
.bitedots i.on{background:var(--accent)}
.morelink{display:block;margin:2px auto 12px;font-size:13.5px;font-weight:600;color:var(--accent-text);background:var(--soft-bg);border:1.5px solid var(--border);border-radius:100px;padding:9px 18px;cursor:pointer;font-family:inherit;transition:.12s}
.morelink:hover{border-color:var(--accent)}

/* « tri » : carte + zones + fin */
.tri-help{font-size:12.5px;color:var(--soft);background:var(--soft-bg);border-radius:10px;padding:8px 12px;margin-bottom:12px;text-align:center}
.tri-stage{position:relative;margin-bottom:12px;min-height:64px}
.tcard{position:relative;background:var(--white);border:1.5px solid var(--border);border-radius:14px;padding:12px 14px 13px;font-size:14px;font-weight:600;line-height:1.45;text-align:center;box-shadow:0 2px 8px rgba(28,28,30,.07);touch-action:none;cursor:grab;user-select:none;transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease;max-width:200px;margin:0 auto}
.tcard.drag{cursor:grabbing;box-shadow:0 10px 26px rgba(28,28,30,.16);transition:none;z-index:4}
.tcard.gone{opacity:0;transform:scale(.9) translateY(-6px)}
.tcard .tnum{display:block;font-size:11px;font-weight:700;color:var(--accent-text);letter-spacing:.04em;margin-bottom:5px;text-transform:uppercase}
.zones{display:flex;gap:10px;margin-bottom:4px}
.zone{flex:1;border:2px dashed var(--border);border-radius:14px;background:var(--white);padding:18px 10px 16px;text-align:center;font-size:14.5px;font-weight:700;color:var(--text);transition:.15s;min-height:84px;cursor:pointer;font-family:inherit}
.zone small{display:block;font-size:11px;font-weight:600;color:var(--soft);margin-top:4px}
/* Identité des zones : picto + teinte HORS palette feedback (D-100, remplace D-98 —
   l'orange/teal des zones se confondait avec rectify/ok ; une couleur = un seul sens). */
.zone .zico{display:block;width:22px;height:22px;margin:0 auto 5px}
.zone .zico svg{width:100%;height:100%;display:block}
.zone.z-mythe{border-color:#C5B4E3;background:#F4EFFB;color:#4A3A78}
.zone.z-realite{border-color:#AFC2DC;background:#EDF2F9;color:#2E4A6E}
.zone.z-mythe small{color:#6E5A9E}
.zone.z-realite small{color:#52719A}
.zone.hot{border-style:solid;transform:translateY(-2px)}
.zone.z-mythe.hot{border-color:#8E76C4;background:#EBE2F7}
.zone.z-realite.hot{border-color:#6E8DB3;background:#E2EAF5}
/* Tri E2 « Efficace / Sans effet » (D-102) — mêmes familles : ardoise = ce qui tient, violet = ce qui ne tient pas */
.zone.z-porte{border-color:#AFC2DC;background:#EDF2F9;color:#2E4A6E}
.zone.z-glisse{border-color:#C5B4E3;background:#F4EFFB;color:#4A3A78}
.zone.z-porte small{color:#52719A}
.zone.z-glisse small{color:#6E5A9E}
.zone.z-porte.hot{border-color:#6E8DB3;background:#E2EAF5}
.zone.z-glisse.hot{border-color:#8E76C4;background:#EBE2F7}
.zone:hover{filter:brightness(.97)}
.zone[disabled]{opacity:.55;cursor:not-allowed}
.tri-foot{margin-top:12px}
.tri-end{text-align:center;padding:12px 0 4px}
.tri-end h3{font-size:17px;font-weight:800;margin:8px 0 4px}
.tri-end p{font-size:13.5px;color:var(--soft);margin-bottom:10px}
.endstar{width:54px;height:54px;display:block;margin:4px auto 0}
.endstar path{stroke:var(--accent);stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:240;stroke-dashoffset:240}
.tri-end.played .endstar path{animation:draw .7s ease forwards .15s}
@keyframes draw{to{stroke-dashoffset:0}}

/* « ordre » : items à placer */
.ordre-chosen{list-style:none;margin:4px 0 10px;display:flex;flex-direction:column;gap:8px}
.ordre-pool{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}
.ordre-item{display:flex;align-items:center;gap:12px;background:var(--white);border:1.5px solid var(--border);border-radius:12px;padding:11px 13px;font-family:inherit;font-size:14.5px;text-align:left;color:var(--text)}
.ordre-item .onum{flex:0 0 24px;height:24px;border-radius:50%;background:var(--soft-bg);color:var(--accent-text);font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center}
.ordre-item.pick{cursor:pointer;transition:.12s}
.ordre-item.pick:hover{border-color:var(--accent)}
.ordre-item.placed{border-color:#CFE5E2;background:#F4FAF9}
.ordre-item.placed .onum{background:#EAF3F2;color:var(--teal-dark)}

/* « anim » : séquence sous-titrée (D-84) */
.animbox{background:var(--white);border:1px solid var(--border);border-radius:16px;padding:14px 12px 12px;margin-bottom:12px}
.scene{display:none}
.scene.on{display:block}
.scene svg{width:100%;height:auto;display:block}
.subt{min-height:58px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:13.5px;font-weight:600;color:#33514f;background:#EAF3F2;border:1px solid #CFE5E2;border-radius:10px;padding:9px 12px;margin-top:10px}
.animprog{height:4px;border-radius:100px;background:var(--border);overflow:hidden;margin-top:10px}
.animprog div{height:100%;background:var(--teal);width:0%}
.playing .animprog div{transition-property:width;transition-timing-function:linear;width:100%}
.anim-play{margin-bottom:6px}
.tr{stroke:var(--text);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.tro{stroke:var(--accent);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.trt{stroke:var(--teal);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.fillo{fill:var(--accent);stroke:none}
.fillt{fill:var(--teal);stroke:none}
.lab{font-size:10px;font-weight:600;fill:var(--soft);font-family:inherit}
.scene .pop{opacity:0;transform-origin:center;transform-box:fill-box}
.scene.on .pop{animation:pop .5s ease forwards}
.scene.on .pop.p2{animation-delay:.9s}
.scene.on .pop.p3{animation-delay:1.8s}
.scene.on .pop.p4{animation-delay:2.7s}
@keyframes pop{0%{opacity:0;transform:scale(.4)}70%{opacity:1;transform:scale(1.15)}100%{opacity:1;transform:scale(1)}}
.scene.on .grow{transform-origin:bottom;transform-box:fill-box;animation:grow 1.6s ease forwards .4s;transform:scaleY(0)}
.scene.on .grow.g2{animation-delay:1.4s}
@keyframes grow{to{transform:scaleY(1)}}
.scene.on .dashmove{stroke-dasharray:5 6;animation:dash 2.2s linear infinite}
@keyframes dash{to{stroke-dashoffset:-44}}
.storyboard .scene{display:block;margin-bottom:10px}
.storyboard .subt{min-height:0;margin-top:4px;margin-bottom:8px}

/* « trous » : phrase à compléter */
.trous-phrase{font-size:15.5px;font-weight:600;margin-bottom:12px;line-height:1.7}
.trou{display:inline-block;min-width:86px;text-align:center;border-bottom:2px dashed var(--border);padding:0 8px;color:var(--soft);font-weight:700}
.trou.rempli{border-bottom-style:solid}
.trou.juste{color:var(--teal-dark);border-bottom-color:var(--teal)}
.trou.faux{color:var(--accent-text);border-bottom-color:var(--accent)}
.trous-mots{margin-bottom:4px}

/* ===== Accueil clarifié (proposition Cycle 15) : sections nommées ===== */
.home-section{font-size:13px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--soft);margin:22px 0 10px;display:flex;align-items:center;gap:10px}
.home-section::after{content:'';flex:1;height:1px;background:var(--border)}
.module-card .sess-meta .badge-free{vertical-align:1px}
.progress-mini{height:6px;border-radius:100px;background:var(--border);overflow:hidden;margin-top:8px}
.progress-mini div{height:100%;border-radius:100px;background:var(--accent)}

/* ===== Diversité v2 (D-92) : « dialogue » — scène de réplique ===== */
.dlg-ctx{font-size:13.5px;color:var(--soft);margin-bottom:8px}
.dlg-bulle{position:relative;background:var(--soft-bg);border:1px solid var(--border);border-radius:16px 16px 16px 4px;padding:12px 16px;font-size:15.5px;font-weight:600;margin-bottom:12px;max-width:88%}
.dlg-prompt{font-size:11.5px;font-weight:700;color:var(--soft);text-transform:uppercase;letter-spacing:.05em;margin-bottom:8px}
.repliques{display:flex;flex-direction:column;gap:8px;margin-bottom:4px}
.replique{display:block;width:100%;max-width:92%;margin-left:auto;text-align:left;background:var(--white);border:1.5px solid var(--border);border-radius:14px 14px 4px 14px;padding:12px 14px;cursor:pointer;font-family:inherit;font-size:14.5px;color:var(--text);transition:.12s}
.replique:hover{border-color:var(--accent)}
.replique.picked{border-color:var(--teal)}

/* ===== Diversité v2 (D-92) : « flip » — cartes à retourner ===== */
.flipcards{display:flex;flex-direction:column;gap:10px;margin:4px 0 10px}
.flipcard{display:block;width:100%;text-align:left;background:var(--white);border:1.5px solid var(--border);border-radius:14px;padding:14px 16px;cursor:pointer;font-family:inherit;font-size:14.5px;color:var(--text);transition:border-color .15s,background .25s}
.flipcard:hover{border-color:var(--accent)}
.flipcard .fc-recto b{display:block;margin-bottom:3px}
.flipcard .fc-hint{display:inline-block;margin-top:9px;font-size:13px;font-weight:600;color:var(--accent-text);text-decoration:underline;text-underline-offset:3px}
.flipcard.flipped{border-color:#CFE5E2;background:#F4FAF9;cursor:default;animation:fade .25s ease}
.flipcard.flipped:hover{border-color:#CFE5E2}
.flipcard .fc-recto-mini{display:block;font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--soft);margin-bottom:6px}
.flipcard .fc-verso{font-size:14.5px}
.flipcard .fc-tick{color:var(--teal-dark);font-weight:800}
.flip-count{font-size:12.5px;color:var(--soft);text-align:center;margin-bottom:12px}

/* ===== Accueil v2 (D-93) : sections = icône + 1-2 mots, sans texte ===== */
.home-section .hs-ico{flex:none;display:flex;color:var(--soft)}
.home-section .hs-ico svg{width:17px;height:17px;display:block}

/* ===== Avertissements (D-87) : bloc prudence réduit, en fin d'écran ===== */
.prudence{margin:18px 0 6px;border-top:1px solid var(--border);padding-top:14px}
.prudence .ptitle{font-size:13.5px;font-weight:700;color:var(--soft);margin-bottom:4px}
.prudence .urgence{margin-top:8px;padding:9px 12px;border-left-width:3px}
.prudence .ut{font-size:13px;margin-bottom:2px}
.prudence .ur{font-size:12.5px}
.prudence .pnote{font-size:12.5px;color:var(--soft);margin-top:8px}

/* Mouvement réduit (accessibilité) */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{transition:none!important;animation:none!important}
  .cta:hover,.sess-card:hover{transform:none}
  .bite{max-height:none;overflow:visible}
  .scene .pop,.scene.on .grow{opacity:1;transform:none}
  .tcard.gone{opacity:1;transform:none}
  .btn-primary:hover{transform:none}
}

/* ============================================================
   R-2 — Écran d'arrivée restylé (transposé de Maquette_Appli_restylee_v1.html)
   Registre/icônes du trait à 1,7 ; mêmes tokens crème/orange/teal.
   ============================================================ */
.title-xl{font-size:clamp(26px,7vw,30px);font-weight:800;line-height:1.12;letter-spacing:-.02em;margin:14px 0 8px}
.title-xl em{font-style:normal;color:var(--accent)}
.sub{font-size:15px;color:var(--soft);margin-bottom:20px}
.badge-free svg{width:13px;height:13px;vertical-align:-2px;margin-right:3px}

/* Pastilles d'icônes */
.ichip{flex:none;display:inline-grid;place-items:center;width:42px;height:42px;border-radius:13px;vertical-align:middle}
.ichip svg{width:60%;height:60%}
.ichip-sm{width:34px;height:34px;border-radius:10px}
.ichip-teal{background:var(--teal-bg);color:var(--teal)}
.ichip-warm{background:var(--soft-bg);color:var(--accent-text)}

/* Chemin « parcours » 3 repères + drapeau d'arrivée */
.path{position:relative;display:flex;justify-content:space-between;gap:6px;background:var(--white);border:1px solid var(--border);border-radius:18px;padding:18px 14px 16px;margin-bottom:20px}
.path::before{content:"";position:absolute;top:39px;left:20%;right:12%;border-top:2px dotted var(--teal-bd);z-index:0}
.pstep{position:relative;z-index:1;flex:1;text-align:center;display:flex;flex-direction:column;align-items:center;gap:7px}
.pstep .ichip{box-shadow:0 0 0 5px var(--white)}
.pnum{position:absolute;top:-5px;right:-5px;width:18px;height:18px;border-radius:50%;background:#fff;color:var(--accent-text);border:1.5px solid var(--accent-text);font-size:11px;font-weight:800;display:grid;place-items:center}
.pstep b{font-size:13.5px;font-weight:700}
.pstep span{font-size:11.5px;color:var(--soft);line-height:1.3}
.goalflag{display:grid;place-items:center;width:34px;height:34px;color:var(--accent)}
.goalflag svg{width:27px;height:27px}

/* Garanties (3 pictos + sous-phrases) */
.gtee{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0}
.gtee .g{display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center}
.gtee .g small{font-size:12px;color:#4a423b;font-weight:700;line-height:1.2}
.gtee .g em{font-style:normal;font-size:11px;color:var(--soft);font-weight:400;line-height:1.25;margin-top:1px}

/* Boutons pleine largeur (arrivée) */
.btn{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;font-family:inherit;font-size:16px;font-weight:700;padding:15px 20px;border-radius:14px;border:none;cursor:pointer;transition:.14s}
.btn svg{width:18px;height:18px}
.btn-primary{background:var(--btn);color:#fff;box-shadow:0 7px 18px rgba(191,74,27,.26)}
.btn-primary:hover{background:var(--btn-dark);transform:translateY(-1px)}
.btn-row{display:flex;flex-direction:column;gap:10px;margin:6px 0 4px}

/* Carte douce « pas de jugement » */
.softcard{display:flex;gap:12px;align-items:flex-start;border-radius:16px;padding:14px 16px;margin:18px 0 14px}
.softcard.warm{background:var(--soft-bg);border:1px solid #efe0d3}
.softcard b{font-size:14px}
.softcard p{font-size:13px;color:#5a4a3c;margin-top:2px}

/* Ligne de prudence discrète (distincte du bloc .prudence des protocoles) */
.prudence-line{display:flex;gap:9px;align-items:flex-start;font-size:11.5px;color:var(--soft);border-top:1px dotted var(--border);padding-top:13px;margin-top:18px}
.prudence-line svg{flex:none;width:15px;height:15px;margin-top:1px;color:#9a8f84}

/* ============================================================
   R-3 — Accueil restylé (Lot D, transposé de la maquette validée)
   Héros « Ta prochaine étape », sections colorées en rangées légères.
   (.hero ≠ .hero-app conservé pour la vue module.)
   ============================================================ */
.title-sm{font-size:21px;font-weight:800;letter-spacing:-.01em;margin-bottom:6px}
.ichip-lg{width:56px;height:56px;border-radius:16px}
.seclabel{display:flex;align-items:center;gap:7px;font-size:11.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--teal-dark);margin:26px 0 10px}
.seclabel svg{width:16px;height:16px;flex:none}
.seclabel span{letter-spacing:.1em}

/* Héros */
.hero{background:var(--white);border:1px solid var(--border);border-radius:20px;padding:18px 18px 16px;box-shadow:0 9px 26px rgba(28,28,30,.07);margin-bottom:8px}
.hero-lab{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px;gap:8px}
.hero-lab .l{font-size:11.5px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--teal-dark)}
.hero-lab .adapt{font-size:11px;color:var(--soft);background:var(--teal-bg);border:1px solid var(--teal-bd);padding:3px 9px;border-radius:100px;font-weight:600;white-space:nowrap}
.hero-main{display:flex;gap:14px;align-items:center;margin-bottom:14px}
.hero-main h3{font-size:20px;font-weight:800;letter-spacing:-.01em}
.hero-main p{font-size:13.5px;color:var(--soft);margin-top:3px}
.hprow{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:4px;margin:6px 0 16px;padding:0 2px}
.hprow::before{content:"";position:absolute;top:39px;left:13%;right:11%;border-top:2px dotted var(--teal-bd);z-index:0}
.hp{position:relative;z-index:1;flex:1;display:flex;flex-direction:column;align-items:center;gap:5px}
.hpn{width:17px;height:17px;border-radius:50%;background:var(--teal);color:#fff;font-size:10.5px;font-weight:700;display:grid;place-items:center}
.hp .ichip{box-shadow:0 0 0 4px var(--white)}
.hp b{font-size:11px;font-weight:600;color:var(--text);text-align:center}
.hp-goal{flex:0 0 auto}
.cont{display:flex;align-items:center;gap:10px;margin-top:14px;font-size:12.5px;color:var(--soft)}
.cont svg{width:15px;height:15px;flex:none}
.cbar{flex:1;height:7px;border-radius:100px;background:var(--border);overflow:hidden}
.cbar i{display:block;height:100%;background:var(--accent);border-radius:100px}

/* Rangées légères (secondaire) */
.rows{margin-top:2px}
.row{display:flex;gap:13px;align-items:center;padding:13px 2px;border-bottom:1px solid var(--border);cursor:pointer;background:none;border:none;border-bottom:1px solid var(--border);width:100%;font-family:inherit;text-align:left;transition:.12s}
.row:last-child{border-bottom:none}
.row:hover{background:var(--white);border-radius:12px;padding-left:10px;padding-right:10px}
.row .rb{flex:1;min-width:0;display:flex;flex-direction:column}
.row .rt{font-size:15px;font-weight:700;color:var(--text)}
.row .rs{font-size:12.5px;color:var(--soft);margin-top:2px}
.row .rs.free{color:var(--teal-dark);font-weight:600}
.row .chev{flex:none;color:#8a8178}
.row .chev svg{width:18px;height:18px}
.row .mini{display:flex;align-items:center;gap:8px;margin-top:6px}
.row .mini .cbar{height:6px}
.row .mini small{font-size:11px;color:var(--soft);font-weight:600}

/* Bas de page : garanties */
.footnote{display:flex;gap:16px;justify-content:center;margin-top:24px;padding-top:16px;border-top:1px dotted var(--border)}
.footnote span{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--soft)}
.footnote svg{width:14px;height:14px;color:#9a8f84}

/* R-4 — Comprendre+ au nouveau gabarit (écrans profonds) */
.btn-ghost{background:var(--white);color:var(--accent-text);border:1.5px solid var(--border);box-shadow:none}
.btn-ghost:hover{border-color:var(--accent)}
.snum{font-weight:800;font-size:15px}
.cont small{flex:none;font-weight:600;color:var(--soft)}

/* ============================================================
   US-307 — Routine reprise du site (routine-reprise.js, affichage seul)
   ============================================================ */
.routine-import{background:var(--white);border:1px solid var(--border);border-radius:18px;padding:16px 16px 14px;box-shadow:0 8px 22px rgba(28,28,30,.06);margin:8px 0 18px}
.ri-title{font-size:17px;font-weight:800;letter-spacing:-.01em;color:var(--text);margin-bottom:2px}
.ri-sub{font-size:12.5px;color:var(--soft);margin-bottom:12px}
.ri-steps{list-style:none;margin:0;padding:0}
.ri-step{display:flex;align-items:center;gap:13px;padding:9px 0;border-bottom:1px solid var(--border)}
.ri-step:last-child{border-bottom:none}
.ri-pic{position:relative;flex:none;width:40px;height:40px;border-radius:12px;background:var(--soft-bg);display:grid;place-items:center}
.ri-ic{width:26px;height:26px}
.ri-lv{position:absolute;right:-4px;bottom:-4px;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;box-shadow:0 0 0 2px var(--white)}
.ri-lv svg{width:12px;height:12px}
.ri-lv.h0{background:var(--teal)}
.ri-lv.h1{background:var(--accent-text)}
.ri-lv.h2{background:#2E8B6E}
.ri-lbl{font-size:15px;font-weight:600;color:var(--text)}
.ri-legend{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.ri-legend span{font-size:11px;font-weight:600;color:var(--soft);display:inline-flex;align-items:center;gap:5px}
.ri-legend span::before{content:"";width:9px;height:9px;border-radius:50%;flex:none}
.ri-legend .h0::before{background:var(--teal)}
.ri-legend .h1::before{background:var(--accent-text)}
.ri-legend .h2::before{background:#2E8B6E}
.ri-reward{font-size:13px;color:#3a3a3c;background:var(--soft-bg);border:1px solid var(--border);border-radius:11px;padding:9px 12px;margin-top:12px}
.ri-reward b{color:var(--accent-text)}
/* Champ « coller un code de reprise » (Réglages) */
.code-input{width:100%;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;color:var(--text);background:var(--white);border:1.5px solid var(--border);border-radius:11px;padding:10px 12px;margin:4px 0 8px;resize:vertical;line-height:1.5}
.code-input:focus-visible{outline:none;border-color:var(--accent)}
.code-msg{font-size:13px;line-height:1.5;margin:2px 0 10px;min-height:0}
.code-msg.err{color:#A8321E}
.code-msg.ok{color:var(--teal-dark)}

/* ============================================================
   Timeline E3 (S5) : la semaine de pratique J1->J7 — miroir privé
   ============================================================ */
.timeline{display:flex;gap:6px;justify-content:space-between;margin:16px 0 10px}
.tl-day{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px}
.tl-dot{width:34px;height:34px;border-radius:11px;border:1.8px solid var(--border);background:var(--white);display:flex;align-items:center;justify-content:center;color:transparent}
.tl-dot svg{width:20px;height:20px}
.tl-day.on .tl-dot{border-color:var(--teal);background:var(--teal-bg);color:var(--teal-dark)}
.tl-lab{font-size:11px;font-weight:600;color:var(--soft)}
.tl-day.on .tl-lab{color:var(--teal-dark)}
.tl-count{font-size:14.5px;color:var(--text);margin:2px 0 4px}
.tl-count b{font-weight:700}
@media (max-width:380px){.tl-dot{width:30px;height:30px;border-radius:9px}.tl-dot svg{width:18px;height:18px}}

/* ============================================================
   Composant « associer / relier » (E4, S3 — assoc.js)
   2 colonnes, tap 2 temps, ligne SVG de liaison, états repos/sel/ok/err
   ============================================================ */
.assoc{position:relative;display:flex;gap:30px;margin:14px 0 8px}
.assoc-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0;overflow:visible}
.assoc-line{stroke:var(--teal);stroke-width:2.5;stroke-linecap:round;transition:x2 .35s ease, y2 .35s ease}
.assoc-col{flex:1;display:flex;flex-direction:column;gap:10px;position:relative;z-index:1}
.assoc-item{text-align:left;font-family:inherit;font-size:13.5px;line-height:1.4;color:var(--text);background:var(--white);border:1.5px solid var(--border);border-radius:13px;padding:11px 12px;cursor:pointer;transition:border-color .15s, background .15s, box-shadow .15s}
.assoc-item:hover{border-color:var(--accent)}
.assoc-item.sel{border-color:var(--accent);background:var(--soft-bg);box-shadow:0 0 0 3px rgba(232,97,42,.14)}
.assoc-item.ok{border-color:var(--teal);background:var(--teal-bg);color:var(--teal-dark);cursor:default}
.assoc-item.err{border-color:#A8321E;background:#FBEAE6;animation:assocShake .35s}
.assoc-item:disabled{opacity:1}
@keyframes assocShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
.assoc-ok{color:var(--teal-dark);font-weight:700}
@media (max-width:380px){.assoc{gap:16px}.assoc-item{font-size:12.5px;padding:9px 10px}}

/* ===== Exercices interactifs neufs (atelier charge de lecture, 13 juin) =====
   Style partagé : banc d'essai (E3-s1), radar (E3-s3), 10 secondes (E4-s1),
   transformer (E4-s2), le bon moment (E1-s3). Réutilise les tokens existants. */
.exo-btn{display:block;width:100%;text-align:left;padding:11px 13px;font-size:14px;font-family:inherit;color:var(--text);background:#fff;border:1px solid var(--border);border-radius:11px;cursor:pointer;transition:.12s;margin:0}
.exo-btn:hover{border-color:var(--accent);background:var(--soft-bg)}
.exo-btn:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px}
.exo-btn:disabled{cursor:default}
.exo-btn.exo-good{background:var(--teal-bg);border-color:var(--teal);color:var(--teal-dark)}
.exo-btn.exo-bad{opacity:.5}

/* Banc d'essai du message (E3-s1) */
.bc-board{margin-bottom:12px}
.bc-svg{display:block;background:#F3EADD;border-radius:14px;border:1px solid var(--border)}
.bc-opts{display:flex;flex-direction:column;gap:8px;margin-bottom:4px}
.bc-fb{min-height:46px}
.bc-synth{margin-top:12px}
.bc-synth[hidden]{display:none}
.bc-synth-in{background:var(--soft-bg);border:1px solid #E6C7B2;border-left:5px solid var(--accent);border-radius:12px;padding:12px 14px;font-size:13.5px;line-height:1.55;color:#7a3d22}
.bc-synth-in b{color:var(--accent-text)}

/* Radar à consignes empilées (E3-s3) */
.radar-phrase{font-size:15.5px;line-height:1.9;color:var(--text);background:#fff;border:1px solid var(--border);border-radius:12px;padding:12px 13px}
.radar-seg{padding:1px 2px;border-radius:4px;transition:background .25s ease}
.radar-seg.hi{background:#FBE0C4}
.radar-badge{font-size:10px;font-weight:700;color:#fff;background:var(--accent-text);border-radius:50%;padding:0 5px;margin-left:2px;vertical-align:super}
.radar-count{text-align:center;margin-top:10px}
.radar-count[hidden],.radar-mem[hidden]{display:none}
.radar-count-n{font-size:26px;font-weight:700;color:var(--accent-text)}
.radar-count-l{font-size:13px;color:#7a6c5c}
.radar-mem{margin-top:12px;padding:11px 12px;background:var(--soft-bg);border:1px solid var(--border);border-radius:12px}
.radar-mem-h{display:flex;align-items:center;gap:7px;font-size:12.5px;color:#7a6c5c;margin-bottom:8px}
.radar-chips{display:flex;flex-wrap:wrap;gap:6px}
.radar-chip{font-size:12.5px;padding:4px 9px;border-radius:8px;border:1px solid}
.radar-chip.radar-in{background:var(--teal-bg);border-color:var(--teal);color:var(--teal-dark)}
.radar-chip.radar-out{background:#F3E6DD;border-color:#E0B79B;color:#9c6b3f;opacity:.7}
.radar-chip.radar-queue{background:#F1ECE4;border-color:#ddd2c2;color:#9b8f7e}
@media (prefers-reduced-motion: reduce){.radar-seg{transition:none}}

/* Dans les 10 secondes (E4-s1) */
.rap-sit{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--border);border-radius:12px;padding:12px 13px}
.rap-sit-ic{font-size:28px;line-height:1;flex:none}
.rap-sit-t{font-size:14.5px;line-height:1.5;color:var(--text)}
.rap-tog{display:flex;align-items:center;gap:7px;font-size:12.5px;color:#7a6c5c;margin:10px 0;cursor:pointer}
.rap-tog input{width:auto;margin:0}
.rap-go,.rap-retry{text-align:center}
.rap-b[hidden]{display:none}
.rap-retry[hidden]{display:none}
.rap-chrono{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.rap-num{font-size:22px;font-weight:700;color:var(--accent-text);min-width:28px;text-align:center}
.rap-barwrap{flex:1;height:6px;background:#EEE2D3;border-radius:100px;overflow:hidden}
.rap-bar{display:block;height:100%;width:100%;background:var(--accent)}
.rap-bar-ok{background:var(--teal)}
.rap-bar-late{background:#c9a18a}

/* Transformer l'éloge (E4-s2) */
.tf-act{display:flex;align-items:center;gap:10px;background:var(--teal-bg);border:1px solid var(--teal-bd);border-radius:12px;padding:11px 12px}
.tf-act-ic{font-size:26px;line-height:1;flex:none}
.tf-lab{font-size:11.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--teal-dark)}
.tf-ctx{font-size:14px;color:var(--text)}
.tf-arrow{text-align:center;color:#c7b8a6;margin:4px 0}
.tf-rea{background:var(--soft-bg);border:1px solid #E9CBB4;border-radius:12px;padding:11px 12px}
.tf-rea-head{display:flex;align-items:center;gap:7px;margin-bottom:8px}
.tf-lab-rea{color:var(--accent-text)}
.tf-vague-wrap{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.tf-vague{font-size:15px;font-weight:600;color:#9c6b3f;background:#fff;border:1px solid #E9CBB4;border-radius:8px;padding:5px 10px}
.tf-vague-hint{font-size:12px;color:#b08a6a}
.tf-after[hidden]{display:none}
.tf-after{margin-top:8px;padding:9px 11px;background:var(--teal-bg);border:1px solid #9FD9C5;border-radius:8px;font-size:14px;color:var(--teal-dark)}
.tf-next[hidden]{display:none}
.tf-next{text-align:center;margin-top:8px}

/* Le bon moment (E1-s3) */
.mom-sit{display:flex;align-items:center;gap:11px;background:#fff;border:1px solid var(--border);border-radius:12px;padding:11px 12px;margin-bottom:10px}
.mom-sit-ic{font-size:24px;line-height:1;flex:none}
.mom-sit-t{font-size:14px;line-height:1.5;color:var(--text)}
.mom-next[hidden]{display:none}
.mom-next{text-align:center;margin-top:8px}

/* Pourquoi le jeu accroche (E1-s1) */
.rc-viz{background:#F3EADD;border-radius:12px;padding:14px 13px;min-height:96px}
.rc-title{font-size:12.5px;font-weight:500;color:#7a6c5c;margin-bottom:8px;text-align:center}
.rc-svg{display:block}
.rc-cap{font-size:12.5px;color:#5d544c;line-height:1.5;margin-top:9px;text-align:center}
.rc-cap-idle{color:#9c8f80;text-align:center;padding:14px 0;margin:0}
.rc-opts{display:flex;gap:8px;margin-top:10px}
.rc-opts .rc-pick{flex:1;text-align:center}
.rc-pick.rc-sel{background:var(--soft-bg);border-color:var(--accent)}
.rc-fb{min-height:44px}
.rc-decoupe[hidden]{display:none}
.rc-decoupe{text-align:center;margin-top:6px;border-color:#D8814E}

/* Écran d'entrée aéré : pastilles + infographie « ton parcours » (E2-E5, 13 juin) */
.intro-meta{display:flex;gap:8px;margin:14px 0 14px}
.intro-chip{flex:1;text-align:center;background:var(--teal-bg);border:1px solid var(--teal-bd);border-radius:9px;padding:7px 4px;font-size:12px;color:var(--teal-dark);line-height:1.4}
.intro-chip b{font-weight:600}
.intro-parcours{margin:0 0 16px}
.intro-parcours-lab{font-size:11.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--soft);margin:0 0 8px}
ol.parcours{list-style:none;margin:0;padding:0}
ol.parcours li{display:flex;align-items:center;gap:11px;padding:7px 0}
ol.parcours .st{flex:none;width:26px;height:26px;border-radius:50%;background:#fff;border:1.5px solid #C9743F;color:var(--accent-text);font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center;position:relative}
ol.parcours li:not(:last-child) .st::after{content:'';position:absolute;top:25px;left:50%;transform:translateX(-50%);width:1.5px;height:14px;background:var(--border)}
.parcours-t{font-size:14px;color:var(--text)}
.intro-picto{color:var(--accent-text);margin:0 0 8px}
.intro-picto svg{width:44px;height:44px;display:block}

/* ===== E5 — encadré sécurité à l'entrée (module sensible, §6 du brief) ===== */
.securite-entree{background:#FCEEE8;border:1px solid #E8C4B6;border-left:5px solid var(--accent-text);border-radius:14px;padding:14px 16px;margin:4px 0 18px}
.securite-entree b{color:var(--accent-text)}
.securite-entree p{font-size:14px;color:#5a3a30;line-height:1.55;margin:6px 0 0}

/* ===== E5 — composant « scène à toucher » (scene.js, S2) — disposition SPATIALE =====
   Direction validée (14 juin) : vraie scène dessinée, les 8 gestes placés DESSUS
   en cibles tactiles ≥ 44 px. Les positions (x/y dans sessions-e5.js) entremêlent
   apaisants et pièges pour que la place ne souffle pas la réponse. Colonne droite
   ancrée à x:53% + largeur 44% → plus de débordement à droite ; stage assez haut →
   plus de coupe en bas. Jauge de tension conservée (indice abstrait, jamais un
   score). A8 : silhouettes neutres, pas de visage d'enfant en détresse.
   ⚠ Tous les sélecteurs sont scopés par :has(.scene-stage) pour NE PAS entrer en
   collision avec l'ancien composant « anim » qui porte aussi la classe .scene. */
.scene:has(.scene-stage){display:flex;gap:12px;align-items:stretch;margin:14px 0 6px}
.scene-gauge{flex:0 0 32px;display:flex;flex-direction:column;align-items:center;gap:6px}
.scene-gauge-lab{font-size:11px;color:var(--soft)}
.scene-gauge-track{flex:1;width:12px;min-height:160px;background:#EFE7E0;border-radius:8px;position:relative;overflow:hidden;display:flex;align-items:flex-end}
.scene-gauge-fill{display:block;width:100%;height:100%;background:linear-gradient(#F0A77F,#E8612A);border-radius:8px;transition:height .35s ease, background .35s ease}
.scene-gauge-fill.hot{background:linear-gradient(#E8612A,#C94F1E)}
.scene-stage{flex:1;min-width:0;position:relative;min-height:312px;border-radius:14px;background:#FBF4EE;border:1px solid var(--border);overflow:hidden}
.scene-deco{position:absolute;inset:0;z-index:0;opacity:.45}
.scene-deco svg{width:100%;height:100%;display:block}
.scene-hotspots{position:absolute;inset:0;z-index:1}
.scene-hot{position:absolute;width:auto;max-width:34%;box-sizing:border-box;min-height:44px;display:flex;align-items:center;text-align:left;font-family:inherit;font-size:12.5px;line-height:1.25;color:var(--text);background:rgba(255,255,255,.94);border:1.5px solid var(--border);border-radius:11px;padding:7px 9px;cursor:pointer;box-shadow:0 1px 4px rgba(40,28,18,.12);transition:border-color .15s, background .15s, box-shadow .15s}
.scene-hot:hover{border-color:var(--accent)}
.scene-hot:focus-visible{outline:3px solid var(--teal);outline-offset:2px;z-index:2}
.scene-hot.apaise-actif{border-color:var(--teal);background:var(--teal-bg);color:var(--teal-dark);box-shadow:0 0 0 3px rgba(22,110,122,.16);cursor:default;z-index:2}
.scene-hot.piege{border-color:#A8321E;background:#FBEAE6;animation:assocShake .35s}
.scene-hot:disabled{opacity:1}
.scene-note{font-size:12px;color:var(--soft);text-align:center;margin:4px 0 6px;font-style:italic}
@media (max-width:380px){.scene-hot{font-size:12px;padding:6px 8px}.scene-stage{min-height:300px}.scene-gauge-track{min-height:150px}}

/* ===== E5 — porte « aide maintenant » (bandeau fixe + overlay, §6) ===== */
.aide-bar{position:fixed;left:0;right:0;bottom:0;z-index:50;display:flex;justify-content:center;padding:8px 14px;padding-bottom:calc(8px + env(safe-area-inset-bottom));pointer-events:none}
.aide-bar[hidden]{display:none}
.aide-bar__btn{pointer-events:auto;display:flex;align-items:center;gap:9px;width:100%;max-width:452px;background:#7A1F12;color:#fff;border:none;border-radius:13px;padding:11px 15px;font-family:inherit;font-size:13.5px;line-height:1.35;text-align:left;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.28)}
.aide-bar__btn b{font-weight:800}
.aide-bar__btn:hover{background:#681A0F}
.aide-bar__ic{flex:none;font-size:18px}
.aide-overlay{position:fixed;inset:0;background:rgba(28,28,30,.55);display:flex;align-items:center;justify-content:center;padding:20px;z-index:70}
.aide-overlay[hidden]{display:none}
.aide-overlay__card{background:#fff;border-radius:18px;padding:22px 20px;max-width:360px;width:100%;box-shadow:0 20px 50px rgba(0,0,0,.3);max-height:88vh;overflow:auto}
.aide-overlay__card h3{margin:0 0 12px;font-size:19px;color:var(--text)}
.aide-block{border-radius:12px;padding:12px 14px;margin-bottom:10px;background:var(--soft-bg);border:1px solid var(--border)}
.aide-block b{display:block;color:var(--text);margin-bottom:3px;font-size:14.5px}
.aide-block p{font-size:13.5px;color:#4a4a4c;margin:0;line-height:1.5}
.aide-block--urgence{background:#FCEEE8;border-color:#E8C4B6}
.aide-block--urgence b{color:var(--accent-text)}
.aide-block--parent{background:var(--teal-bg);border-color:var(--teal-bd)}
.aide-block--parent b{color:var(--teal-dark)}

/* ===== E8 — jauge / curseur d'estompage (S2) ===== */
.jauge{margin:6px 0 10px}
.jauge-stage{display:flex;gap:16px;align-items:stretch}
.jauge-scalewrap{display:flex;flex-direction:column;align-items:center;flex:none;width:96px}
.jauge-cap{font-size:11px;color:#6b6661;text-align:center;line-height:1.3}
.jauge-cap-top{margin-bottom:5px}
.jauge-cap-bot{margin-top:5px}
.jauge-scale{display:flex;flex-direction:column;gap:6px;width:100%}
.jauge-mark{display:flex;align-items:center;justify-content:center;min-height:44px;border:2px solid var(--border);border-radius:11px;background:#fff;transition:background .15s,border-color .15s,opacity .15s}
.jauge-mark-n{font-weight:800;font-size:16px;color:#8a8178}
.jauge-mark.on{background:#B5471C;border-color:#B5471C}
.jauge-mark.on .jauge-mark-n{color:#fff}
.jauge-mark.passed{opacity:.45}
.jauge-right{flex:1;display:flex;flex-direction:column;justify-content:center;gap:12px}
.jauge-aide{font-size:14.5px;line-height:1.5;color:var(--text)}
.jauge-aide b{color:#B5471C}
.jauge-routine{display:flex;gap:8px}
.jauge-jalon{width:22px;height:22px;border-radius:6px;background:#E6B8A6;border:1px solid #d89f88;transition:background .2s,border-color .2s}
.jauge-jalon.relais{background:#166E7A;border-color:#125a64}
.jauge-defait .jauge-routine{opacity:.6}
.jauge-wobble{animation:jwob .5s ease}
@keyframes jwob{0%,100%{transform:translateX(0)}20%{transform:translateX(-4px)}40%{transform:translateX(4px)}60%{transform:translateX(-3px)}80%{transform:translateX(2px)}}
.jauge-btns{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 2px}
.jauge-btn{min-height:44px;flex:1 1 auto;background:#BF4A1B;color:#fff;border:none;border-radius:11px;padding:11px 14px;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer}
.jauge-btn:hover{background:#A84219}
.jauge-btn:disabled{opacity:.4;cursor:default}
.jauge-btn-ghost{background:#fff;color:#166E7A;border:2px solid var(--teal-bd)}
.jauge-btn-ghost:hover{background:var(--teal-bg)}
.jauge-btn:focus-visible{outline:3px solid #166E7A;outline-offset:2px}

@media (max-width:380px){.jauge-scalewrap{width:80px}}
@media (prefers-reduced-motion:reduce){.jauge-wobble{animation:none}}
.aide-overlay__close{display:block;width:100%;margin-top:6px;background:var(--btn);color:#fff;border:none;border-radius:11px;padding:12px;font-family:inherit;font-weight:700;font-size:14.5px;cursor:pointer}
.aide-overlay__close:hover{background:var(--btn-dark)}
body.has-aide-bar #contenu{padding-bottom:78px}
@media (prefers-reduced-motion: reduce){.scene-gauge-fill{transition:none}.scene-hot.piege{animation:none}}

/* ===== E6 — scénario à embranchements (S2) ===== */
.branche-intro{font-size:13.5px;color:#4a4a4c;line-height:1.5;margin:0 0 10px}
.branche{margin:2px 0 4px}
.branche-step{margin-bottom:10px}
.branche-num{display:inline-block;font-size:11.5px;font-weight:700;color:#8a8178;text-transform:uppercase;letter-spacing:.02em;margin-bottom:4px}
.branche-situation{font-size:15px;font-weight:700;color:var(--text);margin:0 0 4px;line-height:1.45}
.branche-choix{display:flex;flex-direction:column;gap:8px}
.branche-btn{min-height:44px;text-align:left;background:#fff;color:var(--text);border:2px solid var(--border);border-radius:12px;padding:11px 13px;font-family:inherit;font-size:14px;line-height:1.4;cursor:pointer;transition:border-color .15s,background .15s}
.branche-btn:hover{border-color:var(--accent)}
.branche-btn:disabled{cursor:default;opacity:.85}
.branche-btn.sel-ok{border-color:#166E7A;background:var(--teal-bg)}
.branche-btn.sel-ko{border-color:#A8321E;background:#FCEEE8}
.branche-btn:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.branche-nav{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.branche-go{min-height:44px;background:#BF4A1B;color:#fff;border:none;border-radius:11px;padding:11px 16px;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer}
.branche-go:hover{background:#A84219}
.branche-go:focus-visible{outline:3px solid #166E7A;outline-offset:2px}
.branche-retry{min-height:44px;background:#fff;color:#166E7A;border:2px solid var(--teal-bd);border-radius:11px;padding:10px 14px;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer}
.branche-retry:hover{background:var(--teal-bg)}
.branche-retry:focus-visible{outline:3px solid #166E7A;outline-offset:2px}
.branche-synthese{font-size:14.5px;line-height:1.55;color:var(--text);background:var(--teal-bg);border:1px solid var(--teal-bd);border-radius:12px;padding:12px 14px}
.branche-synthese .assoc-ok{color:#166E7A;font-weight:800;margin-right:4px}
/* Scénario v2 (D-205) : jauge de tension, choix retenu, cartes d'issue */
.branche-jauge{margin:0 0 12px}
.branche-jauge-lab{display:block;font-size:12px;font-weight:700;color:#8a8178;margin-bottom:4px}
.branche-jauge-bar{display:flex;gap:4px}
.branche-jauge-seg{flex:1;height:7px;border-radius:4px;background:#E7E2D8;transition:background .25s ease}
.branche-jauge-seg.on{background:#D98A4F}
.branche-btn.branche-pick{border-color:#166E7A;background:var(--teal-bg)}
.branche-fin{border-radius:12px;padding:13px 15px;margin:4px 0 2px;border:1px solid var(--border)}
.branche-fin-titre{font-weight:800;font-size:15.5px;margin-bottom:4px;color:var(--text)}
.branche-fin-txt{font-size:14px;line-height:1.55;color:var(--text);margin:0}
.branche-fin-calme{background:var(--teal-bg);border-color:var(--teal-bd)}
.branche-fin-calme .branche-fin-titre{color:#166E7A}
.branche-fin-tendu{background:#FBF3E8;border-color:#E8D3B0}
.branche-fin-tendu .branche-fin-titre{color:#B5731C}
.branche-fin-crise{background:#FCEEE8;border-color:#E8C4B6}
.branche-fin-crise .branche-fin-titre{color:#A8321E}
.branche-synthese-note{font-size:13px;line-height:1.5;color:#5a544c;margin:10px 0 2px;font-style:italic}

/* ===== E6 — le regard des autres (S4, bascule attentionnelle) ===== */
/* Silhouettes neutres (placeholder mécanique, D-203). Aucun visage. */
.toggle-scene{position:relative;background:var(--soft-bg);border:1px solid var(--border);border-radius:14px;padding:8px;margin:6px 0 10px;overflow:hidden}
.toggle-art{display:block;width:100%;height:auto}
.toggle-art .t-distract{transition:opacity .35s ease,transform .35s ease;transform-origin:240px 150px}
.toggle-art .t-family{transition:opacity .35s ease,transform .35s ease;transform-origin:240px 245px}
.toggle-art .t-parent{transition:transform .4s ease;transform-origin:296px 216px}
.toggle-scene.is-A .t-distract{transform:scale(1.07)}
.toggle-scene.is-A .t-family{opacity:.3}
.toggle-scene.is-B .t-distract{opacity:.22}
.toggle-scene.is-B .t-family{opacity:1;transform:scale(1.03)}
.toggle-scene.is-B .t-parent{transform:translate(-80px,38px) rotate(-12deg)}
.toggle-scene.no-anim .t-distract,.toggle-scene.no-anim .t-family,.toggle-scene.no-anim .t-parent{transition:none}
.toggle-statut{font-size:13.5px;line-height:1.5;color:var(--text);min-height:40px;margin:0 0 8px;font-weight:600}
.toggle-btns{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:2px}
.toggle-btn{min-height:44px;flex:1 1 auto;background:#fff;color:var(--text);border:2px solid var(--border);border-radius:11px;padding:11px 13px;font-family:inherit;font-size:14px;font-weight:700;cursor:pointer;transition:border-color .15s,background .15s}
.toggle-btn:hover{border-color:var(--accent)}
.toggle-btn.on{border-color:#A8321E;background:#FCEEE8}
.toggle-btn-ok.on{border-color:#166E7A;background:var(--teal-bg)}
.toggle-btn:focus-visible{outline:3px solid #166E7A;outline-offset:2px}
.toggle-ancre{font-size:14px;font-weight:700;color:#166E7A;background:var(--teal-bg);border:1px solid var(--teal-bd);border-radius:11px;padding:10px 12px;margin:8px 0 2px;line-height:1.45}
