/* App Sitigest v1 (02.12.2026) : couleurs, cartes, étapes et chat repris de la maquette validée (Rendu-du-soir/2026-11-28/04-app-sitigest).
   Aucun style en ligne (politique de sécurité : style-src 'self'). */
:root{
  --bg:#F3F5FA; --card:#FFFFFF; --card2:#F5F7FC; --ink:#0E1526; --muted:#5A6479; --line:#E1E6F0;
  --accent:#2f6bff; --accent-soft:#E6EDFF; --accent-text:#1F4FD8;
  --ok:#147A43; --ok-soft:#DDF3E6; --wait:#8A5A00; --wait-soft:#FBEFD2; --bad:#B42318; --bad-soft:#FDE7E5;
  --hero1:#0B1A4A; --hero2:#2f6bff; --veil:rgba(255,255,255,.86);
  --shadow:0 1px 2px rgba(14,21,38,.05),0 8px 24px rgba(14,21,38,.07);
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#0A0E17; --card:#0F1626; --card2:#131C30; --ink:#E6EAF2; --muted:#8C97AE; --line:#1E2A44;
    --accent:#2f6bff; --accent-soft:#15214A; --accent-text:#8EA9FF;
    --ok:#7FE0A0; --ok-soft:#0D2418; --wait:#FFD27A; --wait-soft:#241C0D; --bad:#FF8A8A; --bad-soft:#2A1010;
    --hero1:#0F1A3A; --hero2:#2f6bff; --veil:rgba(15,22,38,.86);
    --shadow:0 1px 2px rgba(0,0,0,.4),0 10px 28px rgba(0,0,0,.35);
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#0A0E17; --card:#0F1626; --card2:#131C30; --ink:#E6EAF2; --muted:#8C97AE; --line:#1E2A44;
  --accent:#2f6bff; --accent-soft:#15214A; --accent-text:#8EA9FF;
  --ok:#7FE0A0; --ok-soft:#0D2418; --wait:#FFD27A; --wait-soft:#241C0D; --bad:#FF8A8A; --bad-soft:#2A1010;
  --hero1:#0F1A3A; --hero2:#2f6bff; --veil:rgba(15,22,38,.86);
  --shadow:0 1px 2px rgba(0,0,0,.4),0 10px 28px rgba(0,0,0,.35);
  color-scheme:dark;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
html,body{height:100%;margin:0}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;background:var(--bg);color:var(--ink);
  font-size:16px;line-height:1.42;-webkit-font-smoothing:antialiased;overflow:hidden;-webkit-text-size-adjust:100%}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0;text-align:inherit}
button:disabled{opacity:.4;cursor:default}
a{color:var(--accent-text)}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px;border-radius:10px}
h1,h2,h3,p{margin:0}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ic{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ic.fill{fill:currentColor;stroke:none}
.grow{flex:1;min-width:0}
.row{display:flex;align-items:center;gap:10px}
.small{font-size:13.5px}
.muted{color:var(--muted)}
.mt{margin-top:12px}
.c{text-align:center}
.noscript{padding:24px;text-align:center}

/* ---------- cadre ---------- */
.root{position:relative;height:100vh;height:100dvh;max-width:560px;margin:0 auto;display:flex;flex-direction:column;background:var(--bg);overflow:hidden}
@media (min-width:700px){ .root{border-left:1px solid var(--line);border-right:1px solid var(--line);box-shadow:var(--shadow)} }
.boot{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
.spin{width:22px;height:22px;border-radius:50%;border:3px solid var(--accent-soft);border-top-color:var(--accent);animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.logo{width:34px;height:34px;border-radius:9px;background:#2f6bff;color:#fff;display:grid;place-items:center;font-weight:800;font-size:14px;letter-spacing:-.03em;flex:none}
.logo.lg{width:64px;height:64px;border-radius:16px;font-size:26px}

.top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;padding:calc(env(safe-area-inset-top) + 8px) 10px 8px 16px;background:var(--bg)}
.brand{display:flex;align-items:center;gap:9px;min-width:0}
.bt1{font-weight:900;font-size:18px;letter-spacing:-.02em;white-space:nowrap;line-height:1.15}
.bt1 b{color:var(--accent-text);font-weight:900}
.bt1.big{font-size:26px}
.bt2{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.iconbtn{position:relative;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:var(--ink);flex:none}
.iconbtn:active{background:var(--card2)}
.pdot{position:absolute;top:9px;right:10px;width:10px;height:10px;border-radius:50%;background:#E5484D;border:2px solid var(--bg)}
.avatar{width:44px;height:44px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-weight:800;font-size:14.5px;flex:none}
.avatar.soft{background:var(--accent-soft);color:var(--accent-text)}
.avatar.lg{width:60px;height:60px;font-size:20px}

.screens{position:relative;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:6px 16px 28px}
.screens.chatmode{overflow:hidden;padding:0;display:flex;flex-direction:column}
.fade{animation:fade .22s ease both}
@keyframes fade{from{opacity:0;transform:translateY(6px)}}

.h1{font-size:28px;font-weight:800;letter-spacing:-.03em;margin:4px 2px 2px}
.sub{color:var(--muted);font-size:15px;margin:0 2px 14px}
.h2{font-size:12.5px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin:22px 4px 9px}
.card{display:block;width:100%;background:var(--card);border-radius:18px;padding:14px;box-shadow:var(--shadow);border:1px solid var(--line);text-align:left}
.card + .card{margin-top:10px}
.foot{font-size:12.5px;color:var(--muted);margin:14px 4px 0;line-height:1.5}
.note{background:var(--card2);border:1px solid var(--line);border-radius:12px;padding:10px 12px;font-size:13.5px;color:var(--muted);margin:4px 0 14px}
.empty{padding:16px;text-align:center;color:var(--muted);background:var(--card);border:1px dashed var(--line);border-radius:16px;font-size:14px}
.banner{display:flex;gap:10px;align-items:center;background:var(--accent-soft);color:var(--accent-text);border-radius:14px;padding:8px 8px 8px 12px;font-size:13.5px;margin:0 16px 8px;flex:none}
.banner b{display:block;font-size:14px}
.banner .grow{display:flex;flex-direction:column}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 16px;border-radius:14px;font-weight:700;font-size:15.5px;
  background:var(--card2);border:1px solid var(--line);color:var(--ink);transition:transform .12s ease,background .2s,opacity .2s;text-align:center;text-decoration:none}
.btn:active{transform:scale(.97)}
.btn .ic{width:19px;height:19px}
.btn.primary{background:var(--accent);color:#fff;border-color:transparent}
.btn.soft{background:var(--accent-soft);color:var(--accent-text);border-color:transparent}
.btn.white{background:#fff;color:#1F4FD8;border-color:transparent}
.btn.danger{background:var(--bad-soft);color:var(--bad);border-color:transparent}
.btn.block{display:flex;width:100%}
.btn.big{min-height:54px;font-size:16.5px;border-radius:16px}
.btn.sm{min-height:44px;font-size:14px;padding:0 12px;border-radius:12px}
.btns{display:flex;gap:8px;margin-top:12px}
.btns .btn{flex:1;padding:0 8px}
.lnk{color:var(--accent-text);font-weight:700;text-decoration:underline;min-height:44px;display:inline-flex;align-items:center}

.pill{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:700;padding:4px 10px;border-radius:99px;background:var(--accent-soft);color:var(--accent-text);white-space:nowrap;flex:none}
.pill .ic{width:14px;height:14px;stroke-width:2.4}
.pill.ok{background:var(--ok-soft);color:var(--ok)}
.pill.wait{background:var(--wait-soft);color:var(--wait)}
.pill.bad{background:var(--bad-soft);color:var(--bad)}
.pill.mute{background:var(--card2);color:var(--muted);border:1px solid var(--line)}
.pill.idea{background:#F1E6FF;color:#6B21A8}
.badge{position:absolute;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:#E5484D;color:#fff;font-size:11px;font-weight:800;display:grid;place-items:center;line-height:1;border:2px solid var(--card)}
.dot{width:10px;height:10px;border-radius:50%;background:var(--ok);flex:none;box-shadow:0 0 0 4px var(--ok-soft)}
.dot.off{background:var(--muted);box-shadow:0 0 0 4px var(--line)}

/* Mon espace */
.hero{border-radius:24px;padding:18px 16px 16px;color:#fff;background:radial-gradient(240px 160px at 100% 0%,rgba(150,180,255,.45),transparent 70%),linear-gradient(140deg,var(--hero1),var(--hero2));box-shadow:var(--shadow)}
.hero-row{display:flex;justify-content:space-between;align-items:center;gap:8px}
.hchip{font-size:12.5px;font-weight:700;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);padding:4px 10px;border-radius:99px;white-space:nowrap}
.hsite{font-size:12.5px;color:rgba(255,255,255,.85);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prog{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin:14px 0}
.prog i{height:6px;border-radius:3px;background:rgba(255,255,255,.22)}
.prog i.done{background:#fff}
.prog i.cur{background:rgba(255,255,255,.75);animation:pulse 1.8s ease-in-out infinite}
@keyframes pulse{50%{opacity:.45}}
.hlabel{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.82)}
.htext{font-size:17px;font-weight:650;line-height:1.35;margin:4px 0 14px}
.quick{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.qa{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:14px;min-height:104px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:4px;transition:transform .12s;text-align:left}
.qa:active{transform:scale(.97)}
.qi{position:relative;width:38px;height:38px;border-radius:12px;background:var(--accent-soft);color:var(--accent-text);display:grid;place-items:center;margin-bottom:6px}
.qi .badge{top:-6px;right:-8px}
.qt{font-weight:700;font-size:15px;line-height:1.2}
.qs{font-size:12.5px;color:var(--muted)}
.msgprev{display:flex;gap:12px;align-items:center}
.msgprev .grow{display:flex;flex-direction:column}
.mp-t{display:flex;justify-content:space-between;gap:8px;font-size:14px}
.mp-t span{color:var(--muted);font-size:12.5px;flex:none}
.mp-s{display:block;font-size:14px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.udot{width:10px;height:10px;border-radius:50%;background:var(--accent);flex:none}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.chip{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:14px;font-weight:700;padding:0 14px;border-radius:99px;border:1px solid var(--line);background:var(--card2);color:var(--accent-text);text-decoration:none}
.chip .ic{width:16px;height:16px}

/* listes */
.list{background:var(--card);border-radius:18px;border:1px solid var(--line);box-shadow:var(--shadow);overflow:hidden}
.item{display:flex;gap:12px;align-items:center;width:100%;min-height:56px;padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;transition:background .15s;color:var(--ink);text-decoration:none}
.item:last-child{border-bottom:0}
button.item:active,a.item:active{background:var(--card2)}
.item .grow{display:flex;flex-direction:column;gap:2px}
.item .t{display:flex;justify-content:space-between;gap:8px;font-size:15px;font-weight:650}
.item .t span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.item .t span:last-child{color:var(--muted);font-size:12.5px;font-weight:500;flex:none}
.item .p{font-size:13.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.item .p.wrap{white-space:normal}
.item .s{font-size:15px;font-weight:650}
.item.danger .s,.item.danger .iic{color:var(--bad)}
.item.danger .iic{background:var(--bad-soft)}
.item.off{opacity:.6}
.item .chev{color:var(--muted);width:18px;height:18px}
.iic{width:38px;height:38px;border-radius:12px;background:var(--accent-soft);color:var(--accent-text);display:grid;place-items:center;flex:none}
.iic .ic{width:20px;height:20px}
.facts{list-style:none;margin:10px 0 0;padding:0}
.facts li{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}
.facts li b{color:var(--ink);text-align:right;font-weight:650}

/* étapes */
.tlc{padding:4px 0}
.tl-item{display:flex;gap:12px;width:100%;padding:12px 14px;align-items:flex-start;position:relative;text-align:left}
.tl-item:not(:last-child)::after{content:"";position:absolute;left:26px;top:40px;bottom:-12px;width:2px;background:var(--line)}
.tl-item.done:not(:last-child)::after{background:var(--ok)}
.tl-dot{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;flex:none;border:2px solid var(--line);background:var(--card);color:var(--muted);z-index:1;font-size:12px;font-weight:800}
.tl-dot .ic{width:15px;height:15px;stroke-width:2.6}
.tl-item.done .tl-dot{background:var(--ok-soft);border-color:var(--ok);color:var(--ok)}
.tl-item.cur .tl-dot{border-color:var(--accent);background:var(--accent);color:#fff;box-shadow:0 0 0 5px var(--accent-soft)}
.tl-item .grow{display:flex;flex-direction:column}
.tl-t{font-weight:700;font-size:15px}
.tl-d{font-size:13px;color:var(--muted)}
.tl-item.cur .tl-t{color:var(--accent-text)}
.wait-box{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--muted);background:var(--card2);font-size:14px;text-align:center;padding:18px 16px;border-radius:14px;border:1px solid var(--line)}
.bars{display:flex;align-items:flex-end;gap:5px;height:110px;margin:14px 0 6px}
.barw{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;min-width:0;height:100%}
.bar{width:100%;background:var(--accent-soft);border-radius:6px 6px 3px 3px;min-height:4px}
.bar.last{background:var(--accent)}
.barw small{font-size:10px;color:var(--muted)}
.big{font-size:28px;font-weight:800;letter-spacing:-.02em}

/* chat */
.chat-head{display:flex;gap:10px;align-items:center;padding:6px 16px 10px;border-bottom:1px solid var(--line);flex:none}
.chat-head b{font-size:15.5px}
.chat-list{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px;overscroll-behavior:contain}
.b{max-width:82%;padding:9px 12px 6px;border-radius:18px;font-size:15.5px;line-height:1.38;overflow-wrap:anywhere;white-space:pre-wrap}
.b.me{align-self:flex-end;background:var(--accent);color:#fff;border-bottom-right-radius:6px}
.b.them{align-self:flex-start;background:var(--card);border:1px solid var(--line);border-bottom-left-radius:6px}
.bt{display:block;font-size:11px;opacity:.75;margin-top:3px;text-align:right}
.bimg{display:block;max-width:100%;max-height:240px;border-radius:12px;margin:2px 0 4px;background:rgba(255,255,255,.2);min-width:80px;min-height:60px}
.day{align-self:center;font-size:12px;font-weight:700;color:var(--muted);background:var(--card2);border:1px solid var(--line);padding:3px 10px;border-radius:99px;margin:8px 0 4px}
.sysmsg{align-self:center;max-width:90%;text-align:center;font-size:12.5px;color:var(--muted);padding:2px 8px}
.qchips{display:flex;gap:6px;padding:8px 12px 2px;flex:none;overflow-x:auto;scrollbar-width:none}
.qchips::-webkit-scrollbar{display:none}
.qchip{font-size:13.5px;font-weight:650;padding:0 12px;min-height:40px;border-radius:99px;border:1px solid var(--line);background:var(--card);color:var(--ink);white-space:nowrap;flex:none}
.composer{display:flex;align-items:flex-end;gap:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom) * 0);border-top:1px solid var(--line);background:var(--card);flex:none}
.composer textarea{flex:1;min-width:0;resize:none;min-height:44px;max-height:120px;border-radius:22px;border:1px solid var(--line);background:var(--bg);padding:11px 14px;font-size:16px;outline:none;line-height:1.3}
.composer textarea:focus{border-color:var(--accent)}
.sendbtn{width:44px;height:44px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;flex:none}
.sendbtn .ic{width:20px;height:20px}
.attach{position:relative;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:var(--accent-text);background:var(--accent-soft);flex:none;cursor:pointer}
.attach .ic{width:20px;height:20px}
.attach input,.filebtn input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.pending{display:flex;align-items:center;gap:10px;padding:8px 12px 0;flex:none}
.pending img,.prev img{width:56px;height:56px;object-fit:cover;border-radius:12px;border:1px solid var(--line)}

/* options */
.seg{display:flex;background:var(--card2);border:1px solid var(--line);border-radius:12px;padding:3px;gap:3px}
.seg button{flex:1;min-height:42px;border-radius:9px;font-size:14px;font-weight:650;color:var(--muted);padding:0 6px;text-align:center;white-space:nowrap}
.seg button.on{background:var(--accent);color:#fff}
.opc{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:14px;box-shadow:var(--shadow)}
.opc + .opc{margin-top:10px}
.opc.reco{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),var(--shadow)}
.opc-h{display:flex;gap:12px;align-items:center}
.opc-h .grow{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.opc-h b{font-size:15.5px;line-height:1.25}
.opc-p{margin:10px 0 2px;display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px}
.opc-p b{font-size:18px;font-weight:800;color:var(--accent-text);letter-spacing:-.01em}
.opc-p span{font-size:13px;color:var(--muted)}
.opc-d{font-size:13.5px;color:var(--muted);margin-top:6px;line-height:1.45}
.opc-f{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px}
.pktab{width:100%;border-collapse:collapse;margin:10px 0 4px;font-size:13px}
.pktab th{text-align:left;font-size:11.5px;color:var(--muted);font-weight:700;padding:0 4px 6px 0;vertical-align:bottom}
.pktab td{padding:8px 4px 8px 0;border-top:1px solid var(--line);vertical-align:top}
.pktab td:nth-child(2){font-weight:800;color:var(--accent-text)}
.pktab td:nth-child(3){color:var(--ok);font-weight:700}
.locked{position:relative;border-radius:22px;border:1px solid var(--line);background:var(--card);padding:22px 18px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;box-shadow:var(--shadow)}
.lockic{width:52px;height:52px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center}
.locked .dashp{justify-content:center;margin:0}
.locked .opc-f{justify-content:center;margin-top:4px}

/* formulaires */
.field{display:block;margin:0 0 14px;font-size:14px;font-weight:650}
.field input,.field textarea{display:block;width:100%;margin-top:7px;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px 13px;font-size:16px;outline:none;color:var(--ink);font-weight:400;min-height:48px}
.field input:focus,.field textarea:focus{border-color:var(--accent)}
.field textarea{resize:vertical;min-height:120px}
.field input.code{text-align:center;font-size:26px;font-weight:800;letter-spacing:.4em;padding-left:.4em}
.count{display:block;text-align:right;font-size:12px;color:var(--muted);font-weight:500;margin-top:4px}
.filebtn{position:relative;display:inline-flex;align-items:center;gap:8px;color:var(--accent-text);font-weight:700;font-size:14.5px;margin:0 0 12px;cursor:pointer;min-height:44px}
.prev{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.err{color:var(--bad);font-size:14px;min-height:20px;margin:-4px 0 8px}
.okmsg{color:var(--ok);font-size:14px;margin:-4px 0 8px}
.reqtxt{font-size:15px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}

/* connexion */
.login{flex:1;overflow-y:auto;padding:calc(env(safe-area-inset-top) + 24px) 22px 40px;display:flex;flex-direction:column}
.lg-in{margin:auto 0;width:100%}
.lg-logo{display:flex;justify-content:center;margin-bottom:10px}
.lg-in > .lnk{display:flex;justify-content:center;width:100%;margin-top:4px}

/* pages poussées */
.phead{position:sticky;top:-6px;z-index:3;display:flex;align-items:center;gap:6px;margin:-6px -16px 10px;padding:4px 12px 6px 6px;background:var(--bg);border-bottom:1px solid var(--line)}
.back{display:inline-flex;align-items:center;gap:2px;min-height:44px;min-width:44px;padding:0 8px 0 2px;color:var(--accent-text);font-weight:700;font-size:16px;flex:none}
.pt{display:flex;flex-direction:column;min-width:0}
.pt b{font-size:15.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.steps{list-style:none;margin:0;padding:0}
.steps li{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line);font-size:15px}
.steps li:last-child{border-bottom:0}
.steps li small{display:block;font-size:13px;color:var(--muted);margin-top:4px}
.sn{width:28px;height:28px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-weight:800;font-size:14px;flex:none}
.freepill{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:12px;background:var(--ok-soft);color:var(--ok);font-weight:800;font-size:15px;padding:11px 14px;border-radius:14px}

/* barre d'onglets */
.tabbar{display:flex;border-top:1px solid var(--line);background:var(--card);padding:4px 2px calc(6px + env(safe-area-inset-bottom));flex:none}
.tab{flex:1;position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:650;color:var(--muted);min-height:52px;justify-content:flex-start;padding-top:6px;text-align:center;min-width:0}
.tab span{max-width:100%;overflow:hidden;line-height:1.12;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}   /* 02.12 : « Tableau de bord » sur 2 lignes au besoin */
.tab.on{color:var(--accent-text)}
.tab .badge{top:2px;left:calc(50% + 4px)}
.tlock{position:absolute;top:5px;left:calc(50% + 4px);width:17px;height:17px;border-radius:50%;background:var(--card);display:grid;place-items:center;color:var(--muted)}
.tlock .ic{width:12px;height:12px;stroke-width:2.5}

/* feuilles, toast */
.scrim{position:absolute;inset:0;background:rgba(5,8,15,.45);z-index:40;display:flex;align-items:flex-end}
.sheet{position:relative;width:100%;max-height:88%;overflow-y:auto;overflow-x:hidden;background:var(--card);color:var(--ink);border-radius:24px 24px 0 0;padding:10px 18px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -10px 40px rgba(0,0,0,.2);animation:up .28s cubic-bezier(.2,.8,.2,1)}
@keyframes up{from{transform:translateY(40%);opacity:.4}}
.grab{width:40px;height:5px;border-radius:3px;background:var(--line);margin:2px auto 12px}
.sheet-x{position:absolute;top:8px;right:10px;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--card2);color:var(--muted)}
.sh-t{font-size:20px;font-weight:800;letter-spacing:-.02em;margin:0 0 8px;padding-right:46px}
.sheet p{margin:0 0 12px}
.toast{position:absolute;left:50%;bottom:96px;transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:11px 16px;border-radius:14px;font-size:14px;font-weight:600;z-index:80;width:max-content;max-width:calc(100% - 32px);text-align:center;animation:fade .2s ease both;pointer-events:none}   /* 02.12 : un message plus long ne bloque jamais un bouton dessous */
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
