/* Charte Ax&compétences : crème, vert forêt, sauge, sable ; Bricolage Grotesque (titres) + Outfit (texte).
   Écrans d'interface sur crème ; mises en situation (body.dark) sur vert profond, comme le pied de page du site. */
@font-face{font-family:Outfit;src:url(fonts/outfit.woff2) format("woff2");font-weight:300 700;font-display:swap}
@font-face{font-family:Bricolage;src:url(fonts/bricolage.woff2) format("woff2");font-weight:600 800;font-display:swap}
:root{--cream:#f4f1ea;--paper:#fbf7f2;--ink:#23312a;--head:#23362c;--forest:#2f463a;--deep:#24362d;--sage:#8aa997;--sageD:#6e9a82;--sand:#c8aa8c;--brown:#4e3826;--mut:#5b6a61;--soft:#e2eae5;--line:#d9dfd9;--bad:#b3261e}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;min-height:100%;font:20px/1.45 Outfit,system-ui,sans-serif;color:var(--ink);-webkit-user-select:none;user-select:none;touch-action:manipulation}
body{background:var(--cream);transition:background .3s}
body.light{background:radial-gradient(520px 420px at 105% 92%,#8aa99744,transparent 70%),radial-gradient(420px 360px at -10% 70%,#c8aa8c33,transparent 70%),var(--cream)}
body.dark{background:radial-gradient(900px 640px at 50% -6%,#3f5c4d 0%,transparent 70%),var(--deep);color:#eef3ef}
button{font:inherit;color:inherit;cursor:pointer}
h1,h2,h3{font-family:Bricolage,Outfit,sans-serif;color:var(--head);margin:0}
body.dark h1,body.dark h2{color:#fff}
h1{font-size:44px;line-height:1.08;font-weight:600;letter-spacing:-.015em}h2{font-size:30px;line-height:1.15;font-weight:600;margin:1em 0 .45em}
.acc{color:var(--sageD)}p{margin:.5em 0}.mut{color:var(--mut)}body.dark .mut{color:#b9c6be}

/* Barre */
#bar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:12px;padding:10px 16px;background:#f4f1eaee;backdrop-filter:blur(10px)}
body.dark #bar{background:#24362dee}
#logo{width:50px;height:50px;border-radius:15px;background:#fff;display:grid;place-items:center;box-shadow:0 2px 10px #23312a1f}
#logo img{width:32px;height:32px;object-fit:contain}
.tag{flex:1;font-weight:600;font-size:16px;color:var(--brown)}
.tag span{display:inline-block;padding:7px 14px;border-radius:20px;background:#c8aa8c55}
body.dark .tag span{background:#c8aa8c33;color:#e9d7c3}
#quit{min-height:46px;padding:0 20px;border:1.5px solid var(--line);border-radius:23px;background:#fff;font-weight:600;font-size:17px;color:var(--head)}
body.dark #quit{background:transparent;border-color:#ffffff44;color:#fff}
#app{max-width:780px;margin:0 auto;padding:18px 18px 56px}
body.dark #app{padding-bottom:0}

/* Boutons */
.btn{display:flex;align-items:center;gap:14px;width:100%;min-height:68px;margin:12px 0;padding:14px 22px;border:1.5px solid var(--line);border-radius:22px;background:#fff;text-align:left;font-weight:500;font-size:21px;line-height:1.3;transition:transform .12s,background .12s}
.btn:active{transform:scale(.985);background:var(--soft)}
.btn.main{justify-content:center;background:var(--forest);border-color:var(--forest);color:#fff;border-radius:34px;font-weight:600;font-size:23px;min-height:74px}
.btn.main:active{background:#25392f}
.btn.ghost{width:auto;min-height:52px;display:inline-flex;font-size:17px;color:var(--mut);background:transparent;border-color:transparent;margin:6px 0}

/* Accueil */
.hero{padding:30px 6px 10px}
.hero p.lead{font-size:23px;color:var(--mut);max-width:30em}
.reflex{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 26px}.reflex span{padding:10px 18px;border-radius:24px;background:#fff;border:1px solid var(--line);font-weight:600;font-size:18px;color:var(--forest)}

/* Cartes de situations (comme le site) */
.sec{margin:26px 0 10px;font:600 17px Outfit,sans-serif;color:var(--mut)}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media(max-width:560px){.grid{grid-template-columns:1fr}}
.tile{display:flex;flex-direction:column;gap:14px;padding:20px;border:0;border-radius:26px;background:#fff;text-align:left;box-shadow:0 2px 14px #23312a14;transition:transform .12s}
.tile:active{transform:scale(.975)}
.sq{flex:none;width:58px;height:58px;border-radius:18px;display:grid;place-items:center;color:#fff}.sq svg{width:30px;height:30px}
.q0{background:var(--forest)}.q1{background:var(--sage)}.q2{background:var(--sand);color:var(--brown)}.q3{background:var(--brown)}
.tile b{display:block;font:600 22px/1.2 Bricolage,sans-serif;color:var(--head)}.tile small{color:var(--mut);font-size:16px}
.tile .go{margin-top:auto;color:var(--forest);font-size:24px}
.badge{width:96px;height:96px;border-radius:30px;display:grid;place-items:center;margin:8px 0 14px}.badge svg{width:48px;height:48px}
.recap{padding:22px 26px;border-radius:26px;background:#fff;box-shadow:0 2px 14px #23312a14;margin:16px 0}.recap h2{margin-top:0}.recap li{margin:10px 0}

/* Scène (mises en situation) */
.scene{min-height:calc(100vh - 72px);display:flex;flex-direction:column}
.progress{display:flex;gap:8px;margin:2px 0 10px}.progress i{flex:1;height:6px;border-radius:3px;background:#ffffff2a}.progress i.on{background:var(--sage)}
.ctx{color:#e1cfb9;font-weight:500;font-size:19px;margin:4px 2px 14px;text-align:center}

/* Écran verrouillé */
.lock{display:flex;flex-direction:column;align-items:center;padding:26px 8px 34px;text-align:center;flex:1}
.lt{font:300 104px/1 Outfit,sans-serif;letter-spacing:-.02em;color:#fff}.ld{opacity:.8;margin:6px 0 30px;font-size:20px}
.note{display:block;width:100%;max-width:520px;text-align:left;padding:16px 18px;border:1px solid #ffffff30;border-radius:26px;background:#ffffff1f;backdrop-filter:blur(14px);color:#fff;animation:slide .6s .5s cubic-bezier(.2,.9,.3,1) both,buzz .5s 1.1s}
.nh{display:flex;align-items:center;gap:10px;font-size:15px;opacity:.85;margin-bottom:6px}.nh .ni{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:var(--sage);color:var(--deep)}.nh .ni svg{width:16px;height:16px}.nh em{margin-left:auto;font-style:normal}
.note b{display:block;font-size:20px}.note p{margin:3px 0 0;font-size:18px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hint{margin-top:auto;padding:12px 22px;border-radius:24px;background:#c8aa8c33;color:#f0dfca;font-weight:500;font-size:18px;animation:glow 2s 1.6s infinite}

/* Téléphone */
.dev{position:relative;width:min(100%,440px);margin:6px auto 0;padding:12px;border-radius:54px;background:linear-gradient(160deg,#4a5a51,#141a17);box-shadow:0 0 0 2px #0008,0 28px 60px #0009}
.dev:before{content:"";position:absolute;top:24px;left:50%;width:96px;height:26px;margin-left:-48px;border-radius:14px;background:#0b0b0b;z-index:6}
.scr{position:relative;min-height:520px;border-radius:44px;overflow:hidden;background:#fff;color:#1b1b1d;display:flex;flex-direction:column;font-size:19px;animation:rise .5s both}
.sbar{display:flex;justify-content:space-between;align-items:center;padding:14px 26px 6px;font-size:15px;font-weight:600;z-index:5}.sbar .r{display:flex;gap:7px;align-items:center}
.sig{display:flex;gap:2px;align-items:flex-end;height:12px}.sig i{width:3px;background:currentColor;border-radius:1px}.sig i:nth-child(1){height:4px}.sig i:nth-child(2){height:7px}.sig i:nth-child(3){height:9px}.sig i:nth-child(4){height:12px}
.bat{width:24px;height:12px;border:1.5px solid currentColor;border-radius:4px;padding:1.5px}.bat i{display:block;width:72%;height:100%;background:currentColor;border-radius:1.5px}
.av{flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:19px;color:#fff}.avl{width:112px;height:112px;font-size:46px}
.chev{color:#0a7aff;font-size:28px;font-weight:300}
.sms{background:#f2f2f7}.sms .head{display:flex;align-items:center;gap:12px;padding:8px 16px 12px;background:#f9f9fb;border-bottom:1px solid #d8d8de}
.head .t{flex:1;line-height:1.2}.head b{display:block;font-size:18px}.head small{color:#6e6e76;font-size:14px}
.thread{flex:1;padding:16px 14px;display:flex;flex-direction:column;gap:8px}.day{align-self:center;font-size:13px;color:#8a8a92;font-weight:600}
.bub{max-width:86%;padding:11px 15px;border-radius:22px 22px 22px 6px;background:#e5e5ea;font-size:19px;line-height:1.38;animation:pop .45s both}
.bub .url{display:block;margin-top:8px;color:#0a6cdc;text-decoration:underline;word-break:break-all}
.chip{display:flex;align-items:center;gap:10px;margin-top:10px;padding:10px 12px;border-radius:14px;background:#fff;border:1px solid #d6d6dc;font-size:16px;font-weight:500;color:#3a3a40}.chip svg{width:20px;height:20px;flex:none}
.time{align-self:flex-start;margin:-2px 8px 0;font-size:12px;color:#8a8a92}
.comp{display:flex;padding:10px 14px 24px}.comp div{flex:1;padding:10px 16px;border-radius:22px;border:1px solid #cfcfd6;background:#fff;color:#a3a3ab;font-size:17px}
.chat{background:#e9e3d8}.chat .sbar,.chat .head{background:#2f463a;color:#fff}.chat .head{display:flex;align-items:center;gap:12px;padding:8px 14px 12px}.chat .head small{color:#cfe0d6}
.chat .thread{background:radial-gradient(circle at 12px 12px,#0000000a 2px,transparent 3px) 0 0/26px 26px,#e9e3d8}
.chat .bub{background:#fff;border-radius:6px 20px 20px 20px;box-shadow:0 1px 1px #0002;animation-delay:1.2s}.chat .time{animation:pop .4s 1.2s both;color:#7c7468}
.typing{align-self:flex-start;display:flex;gap:5px;padding:14px 16px;border-radius:6px 20px 20px 20px;background:#fff;animation:gone 0s 1.2s both}
.typing i{width:8px;height:8px;border-radius:50%;background:#9a948b;animation:blink 1s infinite}.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}
.mail{background:#fff}.mail .mh{display:flex;align-items:center;gap:6px;padding:8px 16px 10px;border-bottom:1px solid #e3e3e8;font-weight:600}
.mail .mb{flex:1;padding:16px 18px;display:flex;flex-direction:column;gap:12px}
.mail .subj{font-size:22px;font-weight:700;line-height:1.25}.mail .fr{display:flex;gap:12px;align-items:center}.mail .fr small{display:block;color:#6e6e76;font-size:14px;word-break:break-all}.mail .fr b{font-size:17px}.mail .fr time{margin-left:auto;color:#8a8a92;font-size:13px}
.mail .tx{font-size:19px;line-height:1.45;color:#2a2a2e}.mbtn{align-self:flex-start;padding:14px 22px;border-radius:10px;background:#1a73e8;color:#fff;font-weight:600;font-size:19px}
.mail .hl{font-size:14px;color:#6e6e76;background:#f2f3f5;padding:8px 12px;border-radius:10px;word-break:break-all}
.call{background:linear-gradient(180deg,#2b3347,#12151f);color:#fff;align-items:center}.call .sbar{align-self:stretch}
.call .mid{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:34px 24px 0;text-align:center}
.call .av{position:relative;background:#566178;margin-bottom:12px}.call .av:after{content:"";position:absolute;inset:-10px;border-radius:50%;border:2px solid #ffffff66;animation:ring 1.6s infinite}
.call h3{margin:0;font-size:28px;color:#fff;font-family:Bricolage,sans-serif}.call small{opacity:.7;font-size:17px}
.say{margin:22px 0 0;padding:14px 18px;border-radius:18px;background:#ffffff14;font-style:italic;font-size:19px;line-height:1.4;text-wrap:pretty}
.btns{display:flex;justify-content:space-around;width:100%;padding:18px 40px 34px}.rnd{width:68px;height:68px;border-radius:50%;display:grid;place-items:center}.rnd svg{width:30px;height:30px}.rnd.no{background:#e5483d}.rnd.yes{background:#2fb35c}
.web{background:#fff}.chrome{display:flex;padding:8px 14px 10px;background:#f1f3f4;border-bottom:1px solid #dadce0}
.addr{flex:1;display:flex;align-items:center;gap:8px;padding:9px 14px;border-radius:22px;background:#fff;border:1px solid #dadce0;font-size:15px;color:#3c4043;overflow:hidden;white-space:nowrap}.addr svg{width:16px;height:16px;flex:none}
.page{flex:1;padding:26px 22px;display:flex;flex-direction:column;gap:14px}.page h3{margin:0;font-size:26px;color:#1b1b1d}.page p{margin:0;color:#444}
.field{padding:14px 16px;border-radius:10px;border:1.5px solid #c9ccd1;background:#fafafa;color:#9aa0a6;font-size:17px}.fbtn{margin-top:4px;padding:15px;border-radius:10px;background:#1a73e8;color:#fff;text-align:center;font-weight:700;font-size:19px}
.alertp{background:#b3261e;color:#fff;animation:flash 1s steps(2) infinite}.alertp .page{align-items:center;text-align:center;justify-content:center}.alertp h3{font-size:29px;line-height:1.15;color:#fff}.alertp p{color:#ffe6e3;font-size:21px}
.warn{width:84px;height:84px;animation:shake .5s infinite}.abtn{padding:17px 28px;border-radius:12px;background:#fff;color:#b3261e;font-weight:800;font-size:21px;box-shadow:0 6px 0 #0004}
.bar2{height:5px;background:#ffffff40}.bar2 i{display:block;height:100%;width:60%;background:#fff;animation:shrink 6s linear infinite}
.face{background:linear-gradient(180deg,#e8efe9,#f6f1e8);align-items:center}.face .sbar{align-self:stretch}
.face .place{margin:10px 0 0;padding:7px 16px;border-radius:20px;background:#2f463a;color:#fff;font-weight:500;font-size:15px}
.face .who{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:12px 22px 28px;text-align:center}
.face .man{width:132px;height:132px;border-radius:50%;background:#cfdad3;display:grid;place-items:center;color:#2f463a}.face .man svg{width:78px;height:78px}
.face b{font:600 22px Bricolage,sans-serif;color:var(--head)}
.speech{position:relative;padding:16px 18px;border-radius:22px;background:#fff;box-shadow:0 6px 24px #23312a1f;font-size:20px;line-height:1.4;color:#23312a}
.speech:before{content:"";position:absolute;top:-9px;left:50%;margin-left:-9px;border:9px solid transparent;border-top:0;border-bottom-color:#fff}
.plainw{display:flex;gap:14px;align-items:flex-end;margin:16px 0}.plainw .av{width:58px;height:58px;background:var(--sageD)}
.plainw .say{margin:0;background:#fff;color:var(--ink);font-style:normal;border-radius:24px 24px 24px 6px;font-size:21px;box-shadow:0 8px 28px #0004;animation:pop .45s both}

/* Choix : feuille du bas, comme la maquette C */
.dock{margin:22px -18px 0;padding:14px 18px 34px;border-radius:30px 30px 0 0;background:var(--cream);color:var(--ink);flex:none;margin-top:auto;animation:up .45s both}
.dock:before{content:"";display:block;width:46px;height:5px;border-radius:3px;background:#c9cfc9;margin:0 auto 6px}
body.dark .dock h2{margin:.5em 0 .3em;color:var(--head)}
.dock .btn{background:#fff;color:var(--ink);border-color:var(--line)}.dock .btn:active{background:var(--soft);border-color:var(--sage)}
.dot{flex:none;width:16px;height:16px;border-radius:50%;border:2.5px solid var(--sageD)}

/* Retour pédagogique */
.veil{position:fixed;inset:0;z-index:30;background:#14201ab0;display:flex;align-items:flex-end;justify-content:center;animation:fade .25s both}
.sheet{width:min(100%,780px);max-height:90vh;overflow:auto;border-radius:32px 32px 0 0;background:var(--paper);color:var(--ink);padding:0 0 22px;animation:up .35s cubic-bezier(.2,.9,.3,1) both}
.sh{display:flex;align-items:center;gap:16px;padding:24px 26px 18px;background:#c8aa8c44}.sheet.ok .sh{background:#8aa99744}
.sh .ic{flex:none;width:58px;height:58px;border-radius:18px;display:grid;place-items:center;background:#fff;color:var(--brown)}.sheet.ok .ic{color:var(--forest)}.sh .ic svg{width:32px;height:32px}
.sh h3{font-size:25px;line-height:1.2}
.sb{padding:6px 26px 4px}.sb p{margin:.5em 0;font-size:21px}
.blk{margin:16px 0 0;padding:14px 18px;border-radius:20px;background:#fff;border:1px solid var(--line)}.blk h4{margin:0 0 6px;font:600 17px Outfit,sans-serif;color:var(--mut)}
.blk ul{margin:0;padding-left:1.2em}.blk li{margin:4px 0;font-size:20px}.blk p{margin:0;font-size:20px}
.blk.best{background:#e5eee8;border-color:#bdd2c5}.blk.after{background:#f7eddf;border-color:#e6d2b6}
.sheet .btn.main{width:calc(100% - 52px);margin:20px 26px 0}

@keyframes pop{from{opacity:0;transform:translateY(10px) scale(.94)}to{opacity:1;transform:none}}
@keyframes rise{from{opacity:0;transform:translateY(24px)}}@keyframes slide{from{opacity:0;transform:translateY(-30px) scale(.96)}}
@keyframes buzz{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}@keyframes glow{50%{background:#c8aa8c55}}
@keyframes gone{to{opacity:0;height:0;padding:0;margin:0;overflow:hidden}}@keyframes blink{50%{opacity:.3}}
@keyframes ring{from{transform:scale(.9);opacity:1}to{transform:scale(1.35);opacity:0}}
@keyframes flash{50%{background:#8f1d17}}@keyframes shake{25%{transform:rotate(-6deg)}75%{transform:rotate(6deg)}}
@keyframes shrink{to{width:0}}@keyframes fade{from{opacity:0}}@keyframes up{from{transform:translateY(60px);opacity:0}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.typing{display:none}}
.chips{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 6px}
.chipb{padding:13px 18px;border-radius:24px;border:1.5px solid var(--line);background:#fff;font-weight:500;font-size:19px;text-align:left;line-height:1.3}
.chipb.on{background:var(--forest);border-color:var(--forest);color:#fff}
.res{margin:10px 0;padding:14px 18px;border-radius:20px;background:#fff;border:1px solid var(--line)}
.res b{display:inline-block;margin-right:8px;padding:3px 12px;border-radius:14px;font-size:15px}
.res span{font-weight:600}.res p{margin:6px 0 0;color:var(--mut);font-size:18px}
.res.ok b{background:#8aa99755;color:var(--forest)}.res.miss b{background:#c8aa8c66;color:var(--brown)}.res.alarm b,.res.calm b{background:#e2eae5;color:var(--mut)}
body.dark .dock .mut{color:var(--mut)}
.dock .btn.main{background:var(--forest);border-color:var(--forest);color:#fff}

/* Scène lumineuse : fond sauge clair vers crème, écran verrouillé clair, notification blanche */
body.dark{background:radial-gradient(900px 560px at 50% -8%,#ffffff99 0%,transparent 65%),linear-gradient(180deg,#a9c4b4 0%,#d6e5db 42%,#f1eee6 100%) fixed;color:var(--ink)}
body.dark h1,body.dark h2{color:var(--head)}body.dark .mut{color:var(--mut)}
body.dark #bar{background:#f4f1eaee}body.dark .tag span{background:#c8aa8c55;color:var(--brown)}
body.dark #quit{background:#fff;border-color:var(--line);color:var(--head)}
.progress i{background:#23362c22}.progress i.on{background:var(--forest)}
.ctx{color:var(--brown)}
.lt{color:var(--head)}.ld{color:var(--forest);opacity:.85}
.note{background:#ffffffe6;color:var(--ink);border-color:#ffffff;box-shadow:0 10px 34px #23362c26}
.nh{opacity:1;color:var(--mut)}.nh .ni{background:var(--forest);color:#fff}
.hint{background:#2f463a;color:#fff;animation:none}
.dev{box-shadow:0 0 0 2px #0003,0 26px 50px #23362c40}
.call{background:linear-gradient(180deg,#5b7fa8,#2f4a73)}
.dock{background:#fffdf9;box-shadow:0 -14px 34px #23362c24}
.veil{background:#23362c88}

/* Réglages, écoute, aide, contraste renforcé */
#gear{width:46px;height:46px;border:1.5px solid var(--line);border-radius:50%;background:#fff;display:grid;place-items:center;color:var(--head)}#gear svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.listen{display:flex;align-items:center;gap:8px;margin:0 auto 10px;padding:9px 18px;border:1.5px solid #23362c33;border-radius:22px;background:#ffffffb0;font-weight:600;font-size:17px;color:var(--head)}.listen svg{width:22px;height:22px}
.steps{padding-left:1.3em}.steps li{margin:14px 0;font-size:21px}.steps b{color:var(--head)}
.sheet .btn{width:calc(100% - 52px);margin:12px 26px}.sheet .btn.main{margin:20px 26px 0}
.recap.talk{background:#e5eee8}
body.hc{color:#10201a}body.hc .mut,body.hc .tile small,body.hc .res p{color:#23312a}
body.hc .btn,body.hc .chipb,body.hc .tile,body.hc .res,body.hc .blk{border:2.5px solid #23362c}
body.hc .dock{box-shadow:0 -4px 0 #23362c}body.hc .ctx{color:#23160c}body.hc .lt{color:#10201a}
.sb .btn{width:100%;margin:12px 0}

/* Appel : boutons Décrocher / Refuser / Raccrocher */
.btns{align-items:flex-start}
.cbtn{display:flex;flex-direction:column;align-items:center;gap:10px;background:none;border:0;color:#fff;font:600 18px Outfit,sans-serif;padding:0}
.cbtn .rnd{width:76px;height:76px}.cbtn:active .rnd{transform:scale(.92)}
.rnd.pulse{animation:pulse 1.1s infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 #2fb35c99}100%{box-shadow:0 0 0 22px #2fb35c00}}

/* Actions sur le téléphone : détails, clavier d'appel, solde, tri rapide, compte à rebours */
[data-act=peek]{cursor:pointer}.url[data-act=peek]{padding:2px 0;border-bottom:2px dotted #0a6cdc}
.peekmain{font:600 22px Bricolage,sans-serif;word-break:break-all;color:var(--head)}
.dialer{background:#f6f7f9;align-items:center}.dialer .sbar{align-self:stretch}
.dialer .dn{min-height:54px;margin-top:26px;font:600 34px Outfit,sans-serif;letter-spacing:.04em;color:#1b1b1d}
.dialer .dcap{color:#6e6e76;font-size:16px;margin-bottom:12px}
.pad{display:grid;grid-template-columns:repeat(3,78px);gap:12px;margin:8px 0 16px}
.pad span{height:64px;border-radius:50%;background:#fff;display:grid;place-items:center;font:500 28px Outfit,sans-serif;box-shadow:0 1px 3px #0002;color:#1b1b1d}
.dcall{padding-bottom:26px}
.loss{background:#fff4e6;border-color:#e6d2b6}
.bal{display:flex;justify-content:space-between;font-size:21px;margin:4px 0}.bal b.neg{color:var(--bad)}.loss p{margin-top:8px;color:var(--mut);font-size:18px}
.sortcard{padding:20px 22px;border-radius:24px;background:#fff;box-shadow:0 4px 20px #23312a1a;margin:12px 0 18px;font-size:21px}
.sortcard b{font:600 22px Bricolage,sans-serif;color:var(--head)}.sortcard p{margin:8px 0}.sortcard .url{color:#0a6cdc;text-decoration:underline;word-break:break-all}
.votes{display:grid;grid-template-columns:1fr 1fr;gap:14px}.votes .btn{justify-content:center;font-weight:700;font-size:24px;min-height:84px}
.count{height:8px;border-radius:4px;background:#23362c1f;margin:6px 0 4px;overflow:hidden}.count i{display:block;height:100%;width:100%;background:var(--sage);transition:width 1s linear}

/* Mode visual novel : décor plein écran, personnage, boîte de dialogue, menu de choix */
.vn{position:relative;height:calc(100vh - 120px);min-height:640px;margin:0 -18px;overflow:hidden}
.vn .bg{position:absolute;inset:0;width:100%;height:100%}
.spr{position:absolute;left:50%;bottom:22%;height:62%;transform:translateX(-50%);filter:drop-shadow(0 12px 18px #0004);animation:enter .5s both,breathe 4s ease-in-out infinite}
.spr.far{height:30%;bottom:35%;animation:farin 2.6s ease-out both}
.spr .eyes{transform-box:fill-box;transform-origin:center;animation:blink 4.5s infinite}
.spr .mouth{transform-box:fill-box;transform-origin:center;animation:talk .28s infinite alternate}
.dbox{position:absolute;left:3%;right:3%;bottom:2.5%;min-height:21%;padding:36px 30px 24px;border-radius:26px;background:#243a30ee;color:#fff;border:3px solid #ffffff59;box-shadow:0 14px 40px #0006;font-size:24px;line-height:1.45;cursor:pointer;z-index:3}
.dtag{position:absolute;left:26px;top:-26px;padding:7px 22px;border-radius:16px;background:var(--sage);color:#17231c;font:700 21px Bricolage,sans-serif}
.dbox p{margin:0;min-height:3.8em}
.dnext{position:absolute;right:26px;bottom:14px;opacity:0;font-style:normal;color:#e1cfb9;animation:bob 1s infinite}.dnext.on{opacity:1}
.vnmenu{position:absolute;left:8%;right:8%;top:34%;display:flex;flex-direction:column;gap:16px;z-index:3}
.vnmenu .btn{justify-content:center;background:#fffffff2;font-weight:600;box-shadow:0 8px 26px #23362c44;margin:0}.vnmenu .btn.main{background:var(--forest);color:#fff}
.vnmenu.low{top:auto;bottom:28%}
.vnlisten{position:absolute;right:14px;top:14px;width:50px;height:50px;border-radius:50%;border:0;background:#ffffffd9;display:grid;place-items:center;color:var(--head);z-index:4}.vnlisten svg{width:24px;height:24px}
.peepover{position:absolute;inset:0;display:grid;place-items:center;background:#000a;z-index:2}
.lens2{width:620px;max-width:84%;aspect-ratio:1;border-radius:50%;overflow:hidden;position:relative;background:radial-gradient(circle at 50% 40%,#eef2ee,#aebbb3 62%,#2e3b34);box-shadow:inset 0 0 90px #000c,0 0 0 14px #d8c28f,0 0 0 20px #5a3c27;display:grid;place-items:end center}
.lens2 .spr{position:relative;left:auto;bottom:-8%;height:92%;transform:none;filter:blur(1px);animation:none}
.vn .dock{position:absolute;left:0;right:0;bottom:0;margin:0;max-height:78%;overflow:auto;border-radius:28px 28px 0 0;z-index:5}
@keyframes enter{from{opacity:0;transform:translateX(-50%) translateY(30px)}}
@keyframes farin{from{opacity:0;transform:translateX(-50%) scale(.6)}to{opacity:.85;transform:translateX(-50%)}}
@keyframes breathe{50%{transform:translateX(-50%) translateY(-6px)}}
@keyframes blink{0%,94%,100%{transform:scaleY(1)}97%{transform:scaleY(.1)}}
@keyframes talk{to{transform:scaleY(.35)}}
@keyframes bob{50%{transform:translateY(4px)}}
.vnmenu.up{top:6%}
.vnmenu.mid{top:54%}

/* Téléphone tenu dans la scène (messages, pages, appels) */
.vn .propwrap{position:absolute;left:50%;top:6%;transform:translateX(-50%);width:min(88%,440px);z-index:1;transition:top .4s,transform .4s}
.vn .propwrap.small{top:1.2%;transform:translateX(-50%) scale(.8);transform-origin:top center}
.propwrap .dev{width:100%;margin:0}
.vn.withphone .dock{max-height:58%}
.scr.lockscr{background:linear-gradient(180deg,#a9c4b4,#e6eee6);color:var(--head);min-height:560px;animation:none}
.lockscr .lock{flex:1;padding:18px 14px 20px}.lockscr .lt{font-size:78px;color:var(--head)}.lockscr .note{max-width:none}.lockscr .hint{font-size:15px;padding:9px 16px}
.call2{background:linear-gradient(180deg,#4a6a8f,#233a5c);color:#fff;align-items:center;min-height:560px;animation:none}.call2 .sbar{align-self:stretch}
.call2 .mid{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:20px;text-align:center}
.call2 h3{color:#fff;font:600 26px Bricolage,sans-serif}.call2 small{opacity:.8;font-size:16px}
.callav{width:210px;height:210px;border-radius:50%;overflow:hidden;background:#6a82a6;display:grid;place-items:start center;box-shadow:0 0 0 8px #ffffff22;margin-bottom:8px}
.callav svg{width:125%;height:auto;margin-top:-20%;animation:none;position:static;transform:none;filter:none}.callav>svg:not(.spr){width:90px;margin-top:60px;color:#fff}
.wave{display:flex;gap:6px;align-items:center;height:46px;margin-top:12px}.wave i{width:7px;height:10px;border-radius:4px;background:#ffffffaa}
.wave.on i{animation:wv .8s infinite ease-in-out}.wave i:nth-child(odd){animation-delay:.2s}.wave i:nth-child(3n){animation-delay:.4s}
@keyframes wv{50%{height:44px}}

/* Accueil sobre */
.vn.title{background:linear-gradient(180deg,#f4f1ea 0%,#e4ece6 55%,#cfdcd2 100%)}
.title .halo{position:absolute;left:50%;top:56%;width:640px;max-width:96%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,#ffffffcc 0%,#8aa99733 60%,transparent 72%)}
.homeart{position:absolute;inset:0;pointer-events:none}
.bigshield{position:absolute;left:50%;top:56%;width:300px;transform:translate(-50%,-50%);filter:drop-shadow(0 18px 24px #2f463a44);animation:enter .7s both}
.ftile{position:absolute;display:grid;place-items:center;gap:6px;width:150px;padding:18px 10px 14px;border-radius:26px;background:#fff;color:var(--forest);box-shadow:0 12px 30px #23362c26;animation:floaty 5s ease-in-out infinite}
.ftile svg{width:46px;height:46px}.ftile small{font:600 17px Outfit,sans-serif;color:var(--head)}
.ftile.t1{left:7%;top:44%}.ftile.t2{right:7%;top:42%;animation-delay:-1.2s}.ftile.t3{left:10%;top:62%;animation-delay:-2.4s}.ftile.t4{right:10%;top:60%;animation-delay:-3.2s}.ftile.t5{left:50%;margin-left:-75px;top:69%;animation-delay:-4s}
@keyframes floaty{50%{transform:translateY(-10px)}}
.vnmenu.title{top:auto;bottom:3%;left:6%;right:6%;z-index:5}
.vnmenu.title .btn.main{min-height:82px;font-size:27px}.row2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.row2 .btn{min-height:62px;font-size:19px}
.vnmenu.title .btn:not(.main){background:#fff}
.vnmenu.title .btn:not(.main){background:#fff}
.titlebox{position:absolute;top:3.5%;left:5%;right:5%;padding:24px 28px 20px;border-radius:30px;background:#fffdf9f2;box-shadow:0 18px 44px #23362c33;z-index:2}
.titlebox h1{font-size:46px;margin:.1em 0 .25em}.titlebox p{margin:0 0 6px;color:var(--mut);font-size:21px}.kick{font:600 17px Outfit,sans-serif;color:var(--brown)}
.titlebox .reflex{margin:12px 0 0}.titlebox .reflex span{font-size:16px;padding:8px 14px}

/* Paysage : deux colonnes (téléphone ou personnage à gauche, questions à droite), accueil en deux parties, liste sur trois colonnes */
@media (orientation:landscape) and (min-width:900px){
  #app{max-width:1200px}
  .grid{grid-template-columns:repeat(3,1fr)}
  #bar{padding-top:8px;padding-bottom:8px}
  .vn{height:calc(100vh - 96px);min-height:0}
  .spr{height:70%;bottom:20%}
  .vn.ready .spr{left:27%}
  .vn .propwrap{top:3%;width:min(34%,420px);max-height:94%}
  .vn .propwrap.small{left:27%;transform:translateX(-50%)}
  .vn .dock,.vn.withphone .dock{left:auto;right:2%;top:3%;bottom:3%;width:46%;max-height:none;border-radius:28px}
  .vn .vnmenu{left:26%;right:26%;top:28%}.vn .vnmenu.low{top:auto;bottom:28%}.vnmenu.up{top:6%}
  .lens2{width:auto;height:78%;max-width:none}
  .titlebox{top:6%;left:3%;right:auto;width:48%}
  .vnmenu.title{left:3%;right:auto;width:48%;bottom:4%;top:auto}
  .title .halo,.bigshield{left:76%;top:50%}
  .ftile.t1{left:56%;top:10%}.ftile.t2{right:3%;top:8%}.ftile.t3{left:57%;top:62%}.ftile.t4{right:4%;top:60%}.ftile.t5{left:76%;margin-left:-75px;top:79%}
}
@media (orientation:landscape) and (min-width:900px){
  .vn .propwrap,.vn .propwrap.small{left:30%;top:1.5%;width:min(34%,420px);transform:translateX(-50%) scale(.86);transform-origin:top center}
  .spr,.vn.ready .spr{left:30%}
  .vn .vnmenu,.vn .vnmenu.low,.vn .vnmenu.up{left:auto;right:3%;width:38%;top:30%;bottom:auto}
  .vn .dock,.vn.withphone .dock{width:44%}
}
@media (orientation:landscape) and (min-width:900px){
  .vn .vnmenu.title{left:3%;right:auto;width:48%;top:auto;bottom:4%}
}

#padlock{width:46px;height:46px;border:1.5px solid var(--line);border-radius:50%;background:#fff;display:grid;place-items:center;color:var(--head)}#padlock svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.locked #padlock{background:var(--forest);color:#fff;border-color:var(--forest)}
.vnmenu.title>.btn:not(.main){min-height:56px;font-size:17px;margin-top:10px}
body.locked #gear,body.locked [data-act=settings],body.locked [data-act=trainer],body.locked [data-act=exit]{display:none}
body.locked .row2{grid-template-columns:1fr}

/* Téléphones virtuels plus grands : cadre élargi, contenu agrandi de 25 % */
.vn .propwrap{width:min(96%,620px)}
.vn .propwrap .dev{width:80%;margin:0 auto;transform:scale(1.25);transform-origin:top center}
@media (orientation:landscape) and (min-width:900px){
  .vn .propwrap,.vn .propwrap.small{width:min(40%,560px)}
}

/* Ordinateur : écran large avec pied, à la place du téléphone */
.dev.pc{width:min(100%,600px);padding:14px 14px 22px;border-radius:20px;margin-bottom:46px}
.dev.pc:before{display:none}
.dev.pc:after{content:"";position:absolute;left:50%;bottom:-40px;width:34%;height:40px;margin-left:-17%;background:linear-gradient(#59675f,#2a332e);clip-path:polygon(18% 0,82% 0,100% 100%,0 100%)}
.dev.pc .scr{min-height:330px;border-radius:8px}.dev.pc .sbar{display:none}
.dev.pc .alertp .page{padding:10px 24px}.dev.pc .alertp h3{font-size:26px}
.vn .propwrap .dev.pc{width:100%;transform:none}
@media(orientation:landscape){.vn .propwrap .dev.pc{width:100%}}
.qr{display:block;width:150px;height:150px;margin:6px auto 12px;border:6px solid #fff;border-radius:10px;box-shadow:0 2px 10px #0003}

.vnitem{position:absolute;z-index:4;left:3%;top:3%;width:min(46%,240px);pointer-events:none}
.vnitem.paper{background:#fffdf7;color:#1b1b1d;border-radius:6px;padding:12px 14px;box-shadow:0 10px 26px #0006;transform:rotate(-2.5deg);font-size:15px}
.vnitem.paper h4{margin:0 0 6px;font-size:16px;border-bottom:2px solid #c8aa8c;padding-bottom:4px}.vnitem.paper p{margin:3px 0}
.vnitem.paper.big{left:50%;top:5%;width:min(88%,430px);transform:translateX(-50%) rotate(-1.2deg);font-size:19px;padding:20px 22px}.vnitem.paper.big h4{font-size:21px}
.vnitem.badge2{width:min(34%,170px)}
.vnitem .lan{display:block;width:12px;height:46px;margin:0 auto;background:#2f463a;border-radius:3px}
.vnitem .bd{background:#fff;color:#1b1b1d;border-radius:12px;padding:8px 10px;text-align:center;box-shadow:0 8px 20px #0006;border-top:8px solid #c4492e;font-size:13px;line-height:1.25}
.vnitem .bd b{display:block;font-size:14px}.vnitem .bd .ph{display:block;width:44px;height:44px;margin:6px auto;border-radius:50%;background:#cfd8d2}.vnitem .bd small{display:block;color:#777}


.vnitem.obj{width:min(30%,150px);text-align:center;background:#fffdf7;border-radius:14px;padding:10px;box-shadow:0 10px 26px #0006;font-size:14px;color:#1b1b1d}.vnitem.obj svg{display:block;width:80px;height:80px;margin:0 auto 4px}
.vnitem.notif{background:#fff;color:#1b1b1d;border-radius:18px;padding:12px 16px;box-shadow:0 10px 26px #0006;width:min(80%,360px);left:50%;transform:translateX(-50%);top:5%;font-size:18px}.vnitem.notif small{color:#667;font-size:14px}.vnitem.notif p{margin:4px 0}
.vnitem.sticker{background:#2f463a;color:#fff;border-radius:16px;padding:12px;width:min(44%,230px);text-align:center;box-shadow:0 10px 26px #0006;font-size:14px}.vnitem.sticker .stk{background:#fff;color:#111;border-radius:8px;padding:8px;margin:8px 0}.vnitem.sticker .stk p{margin:4px 0 0;font-weight:700}.vnitem.sticker .qr{width:120px;height:120px;border:0;margin:0 auto;box-shadow:none}.vnitem.sticker i{display:block;background:#17251d;border-radius:6px;padding:6px;font-style:normal}
.vnitem.sticker.big{left:50%;transform:translateX(-50%);top:4%;width:min(60%,300px);font-size:16px}
.shotimg{background:#f1f6f2;border-radius:14px;padding:14px;margin:6px auto 12px;max-width:280px;text-align:center;box-shadow:0 2px 10px #0003}.shotimg b{display:block;font-size:30px;color:#1d7a46}.shotimg small,.shotimg span{color:#667}

/* Paysage : le panneau de choix occupe la moitié droite, les objets restent à gauche */
@media(orientation:landscape){.vnitem{left:3%}.vnitem.paper.big,.vnitem.notif,.vnitem.sticker.big{left:28%}}
.vn .propwrap.long .dev{transform:scale(1)}.vn .propwrap.long .scr{font-size:17px}
.sec .cnt{font-weight:500;opacity:.7;margin-left:6px}.tile.isdone{opacity:.72}.tile.isdone .go{font-size:15px;font-weight:600;color:#2f6f4a}
.csub{display:block;margin-top:6px;font-size:16px;opacity:.95}
