/* Weebot Factory Link · maquettes : composants communs (téléphone d'abord). Les thèmes posent les variables. */
:root{--bg:#f0f3f8;--surface:#fff;--surface-2:#f0f3f8;--text:#222;--muted:#5d6577;--line:#e3e6ee;--line-2:#cfd5e2;--c1:#1f2a4a;--c2:#5b98ab;--hot:#c33b51;--ok:#3ddc84;--okt:#1d7a4c;--r:14px;--rs:10px;--sh:0 1px 2px rgba(31,42,74,.06),0 8px 24px rgba(31,42,74,.06);--f:"Montserrat",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;--fn:"Barlow","Montserrat",system-ui,sans-serif;--fd:"Bebas Neue",Impact,"Arial Narrow",sans-serif;--wm:rgba(31,42,74,.075);--pad:16px}
html[data-lang=zh]{--f:"PingFang SC","Microsoft YaHei","Noto Sans SC","Montserrat",system-ui,sans-serif}
html[data-lang=ta]{--f:"Nirmala UI","Tamil Sangam MN","Noto Sans Tamil","Latha","Montserrat",system-ui,sans-serif}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font:400 15px/1.5 var(--f);overflow-x:hidden;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
input,textarea,select{-webkit-user-select:text;user-select:text;font:inherit;color:inherit}
img{max-width:100%;display:block;-webkit-user-drag:none}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0}
h1,h2,h3{margin:0;line-height:1.2;font-weight:700}
p{margin:0}
.i{width:1.15em;height:1.15em;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;vertical-align:-.2em}
:focus-visible{outline:2px solid var(--c2);outline-offset:2px;border-radius:6px}
.page{padding:var(--pad) var(--pad) 120px;max-width:1280px;margin:0 auto;min-width:0}
.eyebrow{font-weight:700;text-transform:uppercase;letter-spacing:.12em;font-size:.7rem;color:var(--c2);display:flex;align-items:center;gap:6px;margin-bottom:6px}
html[data-lang=zh] .eyebrow,html[data-lang=ta] .eyebrow{letter-spacing:.04em;text-transform:none;font-size:.78rem}
.muted{color:var(--muted);font-size:.86rem}
.muted .i{margin-right:4px}
.big{font-size:1.05rem}
.big b{font:800 1.9rem/1 var(--fn);margin-right:4px}
.mono{font-family:"Cascadia Mono",Consolas,ui-monospace,monospace;letter-spacing:.02em}
.note{display:flex;gap:10px;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--c2);border-radius:var(--rs);padding:12px 14px;margin:0 0 16px;font-size:.9rem}
.note .i{color:var(--c2);margin-top:2px}

/* En-tête de page */
.ph{margin:4px 0 18px}
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:.78rem;color:var(--muted);margin-bottom:10px}
.crumbs a:hover{color:var(--text)}
.crumbs .i{width:.9em;height:.9em;opacity:.5}
.ph-row{display:flex;flex-direction:column;gap:12px}
.ph h1{font-size:1.55rem;color:var(--c1);letter-spacing:-.01em;overflow-wrap:anywhere}
.ph-sub{color:var(--muted);margin-top:6px;max-width:72ch;font-size:.93rem}
.ph-sub a{color:var(--c2);font-weight:600}
.ph-act{display:flex;flex-wrap:wrap;gap:8px}
.subnav{display:flex;gap:8px;overflow-x:auto;margin:16px calc(var(--pad)*-1) 0;padding:2px var(--pad) 6px;scrollbar-width:none}
.subnav::-webkit-scrollbar{display:none}
@media(min-width:900px){.ph-row{flex-direction:row;align-items:flex-end;justify-content:space-between}.ph h1{font-size:2rem}.subnav{flex-wrap:wrap;overflow:visible;margin:16px 0 0;padding:0}}

/* Boutons, pastilles, puces */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border-radius:var(--rs);background:var(--btn,var(--c1));color:var(--btn-t,#fff);font-weight:700;font-size:.9rem;line-height:1.2;text-align:center;transition:transform .15s,box-shadow .2s,background .2s}
.btn:hover{box-shadow:0 6px 18px rgba(31,42,74,.18)}
.btn:active{transform:scale(.98)}
.btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.btn.ghost{background:var(--surface);color:var(--c1);border:1px solid var(--line-2)}
.btn.sm{min-height:36px;padding:7px 12px;font-size:.82rem}
.btn.big{width:100%;min-height:52px;font-size:1rem;margin-top:14px}
.btn.follow.on{background:var(--btn,var(--c1));color:var(--btn-t,#fff);border-color:var(--btn,var(--c1))}
.btn.follow.on .i{fill:currentColor}
.icon{display:inline-grid;place-items:center;width:44px;height:44px;border-radius:12px;position:relative;color:inherit}
.icon.sm{width:34px;height:34px;border-radius:9px}
.icon:hover{background:rgba(127,127,127,.12)}
.bd{position:absolute;top:4px;right:3px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--hot);color:#fff;font:800 11px/18px var(--fn);text-align:center}
.chip{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:38px;padding:7px 13px;border-radius:999px;border:1px solid var(--line-2);background:var(--surface);font-size:.84rem;font-weight:600;white-space:nowrap;color:var(--text)}
.chip.on{background:var(--btn,var(--c1));border-color:var(--btn,var(--c1));color:var(--btn-t,#fff)}
.chip.ghost{border-style:dashed;color:var(--muted)}
.chip .i{width:1em;height:1em}
.pill{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;font-size:.72rem;font-weight:700;background:var(--surface-2);color:var(--muted);max-width:100%;vertical-align:middle;line-height:1.3}
.pill.ok{background:rgba(61,220,132,.16);color:var(--okt)}
.pill.warn{background:rgba(195,59,81,.1);color:var(--hot)}
.pill.hot,.pill.g3{background:var(--hot);color:#fff}
.pill.g2{background:rgba(31,42,74,.1);color:var(--c1)}
.pill.gar{background:rgba(91,152,171,.16);color:#2f6f82}
.pill.st-att{background:rgba(195,59,81,.12);color:var(--hot)}
.pill.st-prete{background:rgba(61,220,132,.16);color:var(--okt)}
.pill.cl-attente{background:var(--hot);color:#fff}
.pill.cl-acceptee{background:rgba(61,220,132,.16);color:var(--okt)}
.pill.cl-refusee{background:rgba(127,127,127,.15)}
.seg{display:inline-flex;background:var(--surface-2);border-radius:12px;padding:3px;gap:2px;max-width:100%;overflow-x:auto;scrollbar-width:none}
.seg::-webkit-scrollbar{display:none}
.seg button{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:6px 12px;border-radius:9px;font-size:.84rem;font-weight:600;white-space:nowrap;color:var(--muted)}
.seg button.on{background:var(--surface);color:var(--c1);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.seg.sm button{min-height:30px;padding:4px 9px}
.more{display:inline-flex;align-items:center;gap:4px;font-size:.84rem;font-weight:700;color:var(--c2);white-space:nowrap}

/* Cartes et grilles */
.grid{display:grid;gap:16px;margin-bottom:16px;min-width:0}
.grid>*{min-width:0;margin-bottom:0}
@media(min-width:900px){.grid.g2{grid-template-columns:1fr 1fr}}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh);margin-bottom:16px;min-width:0}
.card.flat{box-shadow:none}
.card-h{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px 0}
.card-h h2{font-size:1rem;color:var(--c1);display:flex;align-items:center;gap:8px}
.card-h h2 .i{color:var(--c2)}
.card-b{padding:14px 16px 16px;min-width:0}
.kpis{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
.kpis.k3 .kpi:first-child{grid-column:span 2}
@media(min-width:720px){.kpis{grid-template-columns:repeat(4,1fr)}.kpis.k3{grid-template-columns:repeat(3,1fr)}.kpis.k3 .kpi:first-child{grid-column:auto}.kpis.k5{grid-template-columns:repeat(5,1fr)}.kpis.k6{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1100px){.kpis.k6{grid-template-columns:repeat(6,1fr)}}
.kpi{display:flex;flex-direction:column;gap:6px;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh);min-width:0;transition:transform .2s,border-color .2s}
a.kpi:hover{transform:translateY(-2px);border-color:var(--c2)}
.kpi-l{display:flex;gap:6px;align-items:flex-start;font-size:.78rem;font-weight:600;color:var(--muted);line-height:1.3}
.kpi-l .i{color:var(--c2)}
.kpi-v{font:800 2rem/1 var(--fn);color:var(--c1);letter-spacing:-.01em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.kpi-v small{font-size:.9rem;margin-left:3px;font-weight:700}
.kpi-f{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:.76rem;color:var(--muted);min-height:1em}
.kpi.warn .kpi-v{color:var(--hot)}
.kpi.hot{border-color:rgba(195,59,81,.45)}
.kpi.hot .kpi-v{color:var(--hot)}
.dl{display:inline-flex;align-items:center;gap:2px;font:700 .78rem/1 var(--fn);padding:3px 6px;border-radius:6px;white-space:nowrap}
.dl .i{width:.95em;height:.95em}
.dl.bad{color:var(--hot);background:rgba(195,59,81,.1)}
.dl.good{color:var(--okt);background:rgba(61,220,132,.14)}
.dl.flat{color:var(--muted);background:var(--surface-2)}

/* Lignes de liste */
.rows{display:flex;flex-direction:column;gap:8px}
.row{display:flex;align-items:center;gap:12px;width:100%;padding:12px;border-radius:12px;background:var(--surface);border:1px solid var(--line);text-align:left;min-width:0;transition:border-color .2s,transform .2s}
a.row:hover,button.row:hover{border-color:var(--c2);transform:translateX(2px)}
.row>.i:last-child{color:var(--muted);flex:none}
.row-ico{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:11px;background:var(--surface-2);color:var(--c1)}
.row-b{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.row-b b{font-size:.92rem;line-height:1.3;overflow-wrap:anywhere}
.row-b small{color:var(--muted);font-size:.8rem;line-height:1.35;overflow-wrap:anywhere}
.al-securite .row-ico,.al-hausse .row-ico{background:rgba(195,59,81,.12);color:var(--hot)}
.al-colis .row-ico,.al-garantie .row-ico{background:rgba(91,152,171,.16);color:#2f6f82}
.row.unread .row-b b::after{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--hot);margin-left:6px}
.row.on{border-color:var(--c1)}
.row.ec{opacity:.85}
.mini{list-style:none;margin:6px 0 14px;padding:0}
.mini li{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px dashed var(--line);font-size:.88rem}
.mini a{color:var(--c2);font-weight:600}
.mini b{font-family:var(--fn)}
.empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:30px 10px;color:var(--muted);text-align:center}
.empty .i{width:28px;height:28px;opacity:.5}

/* Graphiques */
.hb{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.hb li{display:grid;grid-template-columns:1fr auto;grid-template-areas:"l v" "t t";gap:4px 12px;align-items:center;cursor:default}
.hb li[data-go]{cursor:pointer}
.hb li[data-go]:hover .hb-l span{color:var(--c2)}
.hb-l{grid-area:l;display:flex;align-items:center;gap:6px;min-width:0;font-size:.88rem;font-weight:600}
.hb-l span{overflow-wrap:anywhere}
.hb-l small{color:var(--muted);font-weight:400;font-size:.76rem;margin-left:4px}
.hb-t{grid-area:t;position:relative;height:10px;border-radius:6px;background:var(--surface-2);overflow:hidden}
.hb-a,.hb-b{position:absolute;left:0;height:100%;border-radius:6px;width:var(--w);animation:grow 1s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i,0)*45ms)}
.hb-a{top:0;background:var(--data,var(--c1));z-index:1;height:6px;top:0}
.hb-b{bottom:0;top:auto;background:var(--c2);opacity:.45;height:4px}
.hb-v{grid-area:v;display:flex;align-items:center;gap:6px;font:800 .95rem/1 var(--fn)}
.hotico{color:var(--hot)}
@keyframes grow{from{width:0}}
@media(min-width:720px){.hb li{grid-template-columns:minmax(0,36%) 1fr auto;grid-template-areas:"l t v"}}
.bars{width:100%;height:120px;display:block}
.bars .b{fill:var(--line-2);transform-box:fill-box;transform-origin:bottom;animation:rise .8s cubic-bezier(.2,.7,.2,1) both;animation-delay:var(--d)}
.bars .b.a{fill:var(--data,var(--c1))}
.bars .b.bb{fill:var(--c2)}
.bars .gh{fill:var(--c2);opacity:.2}
@keyframes rise{from{transform:scaleY(0)}}
.wk-ax{display:flex;justify-content:space-between;font-size:.72rem;color:var(--muted);margin-top:4px}
.legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;font-size:.78rem;color:var(--muted);margin-top:8px}
.legend i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:-8px}
.lg-a{background:var(--data,var(--c1))}.lg-b{background:var(--c2)}
.spark{width:100%;height:34px;display:block;margin-top:8px}
.sp-l{fill:none;stroke:var(--c2);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:400;stroke-dashoffset:400;animation:draw 1.4s ease forwards}
.sp-a{fill:var(--c2);opacity:.12}
.spark circle{fill:var(--c2)}
@keyframes draw{to{stroke-dashoffset:0}}
.donut{display:flex;flex-wrap:wrap;align-items:center;gap:18px}
.donut svg{width:140px;height:140px;flex:none;transform:rotate(-90deg)}
.donut svg text{transform:rotate(90deg);transform-origin:21px 21px;font:800 7px var(--fn);fill:var(--c1)}
.dn{fill:none;stroke-width:6;animation:dash 1.1s ease both}
@keyframes dash{from{stroke-dasharray:0 100}}
.dn0{stroke:var(--data,var(--c1));background:var(--data,var(--c1))}.dn1{stroke:var(--hot);background:var(--hot)}.dn2{stroke:var(--c2);background:var(--c2)}.dn3{stroke:#496cac;background:#496cac}.dn4{stroke:#2e3957;background:#2e3957}.dn5{stroke:var(--line-2);background:var(--line-2)}
.donut ul{list-style:none;margin:0;padding:0;flex:1;min-width:180px;display:flex;flex-direction:column;gap:6px}
.donut li{display:flex;align-items:center;gap:8px;font-size:.86rem}
.donut li[data-go]{cursor:pointer}
.donut li i{width:10px;height:10px;border-radius:3px;flex:none}
.donut li b{margin-left:auto;font-family:var(--fn)}
.gauge{margin-bottom:12px}
.g-h{display:flex;justify-content:space-between;gap:10px;font-size:.84rem;margin-bottom:5px}
.g-h b{font-family:var(--fn)}
.g-t{height:10px;border-radius:6px;background:var(--surface-2);overflow:hidden}
.g-t i{display:block;height:100%;width:var(--w);background:var(--c2);border-radius:6px;animation:grow 1s cubic-bezier(.2,.7,.2,1) both}
.gauge.hot .g-t i{background:var(--hot)}
.ring{position:relative;display:inline-grid;place-items:center;width:52px;height:52px;flex:none}
.ring svg{position:absolute;inset:0;transform:rotate(-90deg)}
.ring circle{fill:none;stroke:var(--surface-2);stroke-width:3.4}
.ring .rg{stroke:var(--hot);stroke-linecap:round;animation:dash 1.2s ease both}
.ring b{font:800 1rem var(--fn);color:var(--c1)}

/* Période */
.perbar{display:flex;flex-direction:column;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:12px;margin-bottom:16px;box-shadow:var(--sh)}
.per-step{display:flex;align-items:center;gap:6px}
.per-step b{font-weight:700;min-width:0;text-align:center;flex:1}
.per-perso{display:none;flex-wrap:wrap;gap:10px;align-items:flex-end}
.per-perso.open{display:flex}
.per-lab{display:flex;gap:8px;align-items:flex-start;font-size:.84rem;color:var(--muted)}
.per-lab em{font-style:normal;color:var(--c2)}
.perpill{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:.84rem;color:var(--muted);margin-bottom:14px}
.perpill a{color:var(--c2);font-weight:700}
@media(min-width:1024px){.perbar{flex-direction:row;flex-wrap:wrap;align-items:center}.per-lab{flex-basis:100%}}

/* Champs */
.fsel{display:flex;flex-direction:column;gap:4px;font-size:.78rem;font-weight:600;color:var(--muted);min-width:0}
.fsel.full{width:100%;margin-bottom:12px}
.fsel select,.fsel input,.fsel textarea{min-height:44px;padding:9px 12px;border:1px solid var(--line-2);border-radius:var(--rs);background:var(--surface);color:var(--text);font-size:16px;font-weight:500;width:100%}
.fsel input[type=file]{padding:9px;font-size:14px}
.check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:.9rem}
.check input{width:20px;height:20px;accent-color:var(--c1)}
.form{display:grid;gap:12px}
@media(min-width:720px){.form{grid-template-columns:1fr 1fr}.form .check,.form .btn.big{grid-column:1/-1}}

/* Listes avec filtres */
.lst{margin-bottom:16px}
.lst-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin-bottom:10px}
.lst-q{flex:1 1 220px;display:flex;align-items:center;gap:8px;min-height:46px;padding:0 12px;background:var(--surface);border:1px solid var(--line-2);border-radius:12px;min-width:0}
.lst-q.big{min-height:52px}
.lst-q:focus-within{border-color:var(--c2);box-shadow:0 0 0 3px rgba(91,152,171,.18)}
.lst-q .i{color:var(--muted)}
.lst-q input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:16px;padding:10px 0}
.lst-fb b{background:var(--hot);color:#fff;border-radius:9px;padding:0 6px;font:800 11px/18px var(--fn)}
.lst-fb.on{border-color:var(--c1)}
.lst-bar .fsel.sort{flex:0 1 210px}
.lst-f{display:none;position:fixed;left:0;right:0;bottom:0;z-index:950;max-height:82vh;overflow:auto;background:var(--surface);border-radius:20px 20px 0 0;padding:16px;box-shadow:0 -10px 40px rgba(0,0,0,.25);gap:12px;flex-direction:column;animation:sheet .3s cubic-bezier(.2,.7,.2,1)}
.lst-f.open{display:flex}
@keyframes sheet{from{transform:translateY(100%)}}
.lst-fh{display:flex;justify-content:space-between;align-items:center;font-size:1.05rem}
.lst-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.lst-chips:empty{display:none}
.lst-count{font-size:.8rem;color:var(--muted);margin:4px 0 10px}
.views{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:10px;font-size:.8rem;color:var(--muted)}
.views>span{font-weight:700;margin-right:4px}
.pager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;font-size:.84rem;color:var(--muted)}
@media(min-width:1024px){
  .lst-fb{display:none}
  .lst-f{display:flex;position:static;flex-direction:row;flex-wrap:wrap;max-height:none;overflow:visible;background:none;box-shadow:none;padding:0;margin-bottom:10px;animation:none;border-radius:0}
  .lst-f .fsel{flex:0 1 180px}
  .lst-fh,.lst-f>.btn{display:none}
}
.cards{display:grid;gap:10px}
@media(min-width:720px){.cards{grid-template-columns:1fr 1fr}}
@media(min-width:1180px){.cards{grid-template-columns:1fr 1fr 1fr}}
.tbl-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface);-webkit-overflow-scrolling:touch}
.tbl{width:100%;border-collapse:collapse;font-size:.85rem;min-width:560px}
.tbl th{text-align:left;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap;background:var(--surface-2)}
.tbl td{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:middle}
.tbl tr[data-go]{cursor:pointer}
.tbl tr[data-go]:hover td{background:rgba(91,152,171,.07)}
.tbl.cmp img{width:90px;height:60px;object-fit:contain;margin-bottom:6px}
.ean-c .ean{width:120px}

/* Dossiers */
.rec{display:flex;gap:12px;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);transition:border-color .2s,transform .2s;min-width:0}
.rec:hover{border-color:var(--c2);transform:translateY(-2px)}
.rec img{width:70px;height:70px;object-fit:contain;border-radius:10px;background:#fff;flex:none}
.rec-b{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.rec-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 8px;align-items:center;font-family:var(--fn);letter-spacing:.03em}
.rec-m{font-weight:700;font-size:.92rem;color:var(--c1)}
.rec-f{font-size:.84rem;overflow-wrap:anywhere}
.rec-meta{font-size:.76rem;color:var(--muted);overflow-wrap:anywhere}
.rec-warn{display:flex;gap:5px;align-items:center;font-size:.78rem;font-weight:700;color:var(--hot)}
.rec-ev{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:.76rem;color:var(--muted);margin-top:2px}
.rec-ev .i{width:.95em;height:.95em;margin-left:2px}
.dos{display:flex;flex-direction:column;gap:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px;margin-bottom:16px;box-shadow:var(--sh)}
.dos img{width:100%;max-width:260px;height:180px;object-fit:contain;align-self:center}
.dos p{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
@media(min-width:900px){.dos{flex-direction:row;align-items:center}.dos>div{flex:1}}
.kv{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;margin:0;font-size:.88rem}
.kv dt{color:var(--muted)}
.kv dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.kv dd a{color:var(--c2)}
@media(min-width:1100px){.dos .kv{grid-template-columns:auto 1fr auto 1fr}}
.sum{font-size:1rem;line-height:1.6;margin-bottom:10px}
.tl{list-style:none;margin:0;padding:0 0 0 18px;border-left:2px solid var(--line)}
.tl li{position:relative;padding:0 0 14px 12px;display:flex;flex-direction:column}
.tl li::before{content:"";position:absolute;left:-26px;top:3px;width:12px;height:12px;border-radius:50%;background:var(--surface);border:3px solid var(--c2)}
.tl li.cur::before{background:var(--hot);border-color:var(--hot);box-shadow:0 0 0 5px rgba(195,59,81,.18)}
.tl small{color:var(--muted)}
.evs,.strip{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
@media(min-width:720px){.evs,.strip{grid-template-columns:repeat(4,1fr)}}
.ev{display:flex;flex-direction:column;gap:4px;text-align:left;font-size:.78rem;color:var(--muted)}
.thumb{position:relative;display:block;border-radius:12px;overflow:hidden;aspect-ratio:16/10;width:100%;color:var(--c1);background:#111}
.thumb svg{width:100%;height:100%;display:block}
.th-batt{color:#1f2a4a}.th-ctrl{color:#2e3957}.th-guidon{color:#5b98ab}.th-frein{color:#c33b51}.th-moteur{color:#496cac}.th-potence{color:#3f7d91}.th-eclair{color:#496cac}.th-pneu{color:#2e3957}.th-eau{color:#5b98ab}
.th-play,.th-cam{position:absolute;inset:0;display:grid;place-items:center;color:#fff}
.th-play .i{width:38px;height:38px;padding:10px;border-radius:50%;background:rgba(0,0,0,.35);fill:#fff;stroke:none;backdrop-filter:blur(4px)}
.th-cam .i{width:26px;height:26px;opacity:.75}
.thumb em{position:absolute;right:8px;bottom:6px;font:700 .72rem var(--fn);color:#fff;font-style:normal;background:rgba(0,0,0,.45);padding:1px 6px;border-radius:6px}
.thumb::after{content:"";position:absolute;inset:0;background:var(--wmbg-t,none)}

/* Modèles */
.mgrid{display:grid;gap:14px}
@media(min-width:720px){.mgrid{grid-template-columns:1fr 1fr}}
@media(min-width:1180px){.mgrid{grid-template-columns:repeat(3,1fr)}}
.mcard{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;box-shadow:var(--sh);transition:transform .25s,border-color .25s}
.mcard:hover{transform:translateY(-3px);border-color:var(--c2)}
.mcard.sel{border-color:var(--c1);box-shadow:0 0 0 2px var(--c1)}
.mc-img{display:block;background:linear-gradient(160deg,#fff,var(--surface-2));padding:12px}
.mc-img img{height:150px;width:100%;object-fit:contain;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.mcard:hover .mc-img img{transform:scale(1.05) rotate(-1deg)}
.mc-b{padding:14px;display:flex;flex-direction:column;gap:8px;flex:1}
.mc-b h3{font-size:1.05rem;color:var(--c1)}
.mc-row{display:flex;align-items:center;gap:12px}
.mc-row>span{display:flex;flex-direction:column;gap:2px;font-size:.88rem}
.mc-row small{color:var(--muted);font-size:.74rem}
.mc-f{font-size:.84rem}
.mc-f a{color:var(--c2);font-weight:700}
.mc-act{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto;padding-top:6px}
.cmpbar{position:sticky;bottom:86px;z-index:40;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:10px 12px 10px 16px;border-radius:16px;background:var(--pc,#1f2a4a);color:#fff;box-shadow:0 12px 30px rgba(0,0,0,.25)}
.cmpbar .btn{background:#fff;color:#1f2a4a}
.mhero{display:flex;flex-direction:column;gap:14px;margin-bottom:16px}
.mhero img{width:100%;max-height:220px;object-fit:contain;background:var(--surface);border-radius:var(--r);border:1px solid var(--line);padding:12px}
.mhero .kpis{margin:0}
@media(min-width:1024px){.mhero{flex-direction:row;align-items:stretch}.mhero img{width:300px;max-height:none}.mhero .kpis{flex:1;grid-template-columns:1fr 1fr}}
.prow{display:grid;grid-template-columns:1fr auto;grid-template-areas:"l v" "t t" "m m";gap:6px 12px;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:12px;transition:border-color .2s}
.prow:hover{border-color:var(--c2)}
.pr-l{grid-area:l;display:flex;flex-direction:column;min-width:0}
.pr-l small{color:var(--muted);font-size:.76rem;overflow-wrap:anywhere}
.pr-t{grid-area:t;height:8px;background:var(--surface-2);border-radius:5px;overflow:hidden}
.pr-t i{display:block;height:100%;width:var(--w);background:var(--data,var(--c1));border-radius:5px;animation:grow 1s cubic-bezier(.2,.7,.2,1) both}
.pr-v{grid-area:v;display:flex;align-items:center;gap:6px;font:800 1.1rem var(--fn)}
.pr-m{grid-area:m;display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:.76rem;color:var(--muted)}
@media(min-width:900px){.prow{grid-template-columns:minmax(0,30%) 1fr auto minmax(0,26%);grid-template-areas:"l t v m";align-items:center}}
.pid{display:flex;flex-direction:column;gap:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px;margin-bottom:16px}
.pid-ean{background:#fff;border-radius:10px;padding:10px;max-width:260px}
@media(min-width:900px){.pid{flex-direction:row;align-items:center}.pid .kv{flex:1;grid-template-columns:auto 1fr auto 1fr}}
.ean{width:100%;height:auto;display:block}
.ean rect{fill:#111}
.ean text{font:600 7.5px Consolas,monospace;fill:#111}
.checks{display:grid;gap:4px;margin:12px 0}
.checks label{display:flex;gap:10px;align-items:center;min-height:40px;font-size:.92rem}
.checks input{width:20px;height:20px;accent-color:var(--c1)}

/* Accueil : flux, carte trottinette, colis */
.pipe{display:grid;gap:8px}
.pp-st{position:relative;display:grid;grid-template-columns:52px 1fr;grid-template-areas:"n l" "n b";align-items:center;gap:2px 12px;padding:10px 12px;border-radius:12px;background:var(--surface-2);transition:transform .2s;animation:pop .5s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i)*70ms)}
.pp-st:hover{transform:translateY(-2px)}
.pp-n{grid-area:n;font:800 1.9rem/1 var(--fn);color:var(--c1);text-align:center}
.pp-l{grid-area:l;font-size:.86rem;font-weight:700}
.pp-bar{grid-area:b;display:block;height:5px;border-radius:3px;background:rgba(127,127,127,.15);overflow:hidden}
.pp-bar i{display:block;height:100%;width:var(--w);background:var(--c2);animation:grow 1s cubic-bezier(.2,.7,.2,1) both}
.pp-att{background:rgba(195,59,81,.09)}
.pp-att .pp-n{color:var(--hot)}
.pp-att .pp-bar i{background:var(--hot)}
.pp-st.bump{animation:bump .9s ease}
@keyframes bump{30%{transform:scale(1.06);box-shadow:0 0 0 4px rgba(91,152,171,.35)}}
@keyframes pop{from{opacity:0;transform:translateY(10px) scale(.97)}}
.pp-flow{display:none}
@media(min-width:1024px){
  .pipe{grid-template-columns:repeat(7,1fr);gap:14px}
  .pp-st{grid-template-columns:1fr;grid-template-areas:"n" "l" "b";text-align:center;padding:16px 8px}
  .pp-flow{display:block;position:absolute;right:-14px;top:38%;width:14px;height:6px;overflow:hidden}
  .pp-flow b{position:absolute;top:1px;width:4px;height:4px;border-radius:50%;background:var(--c2);animation:flow 1.6s linear infinite}
  .pp-flow b:nth-child(2){animation-delay:.53s}.pp-flow b:nth-child(3){animation-delay:1.06s}
}
@keyframes flow{from{left:-4px;opacity:0}30%{opacity:1}to{left:14px;opacity:0}}
.heat{display:flex;flex-direction:column;gap:14px}
.heat-svg{position:relative;min-width:0}
.heat-hint{display:flex;gap:6px;align-items:center;font-size:.76rem;color:var(--muted);margin-top:6px}
.heat-side{min-width:0}
.heat-side h3{font-size:1.15rem;color:var(--c1);margin-bottom:6px}
@media(min-width:900px){.heat{flex-direction:row;align-items:center}.heat-svg{flex:1 1 62%}.heat-side{flex:1 1 38%}}
.scooter{width:100%;height:auto;display:block;color:var(--c1);overflow:visible}
.sc-grid{stroke:var(--line);stroke-width:.6}
.sc-ground{stroke:var(--line-2);stroke-width:2;stroke-dasharray:6 6}
.sc-body *{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.sc-tire{stroke-width:9!important;opacity:.85}
.sc-rim{opacity:.5}
.sc-sp line{stroke-width:1.2!important;opacity:.45;transform-origin:center;transform-box:fill-box}
.sc-hub{fill:var(--surface)!important}
.sc-disc{stroke-dasharray:3 3;opacity:.6}
.sc-arm,.sc-stem{stroke-width:9!important}
.sc-stem{stroke-width:11!important}
.sc-deck{fill:var(--surface)!important;stroke-width:2.6!important}
.sc-cell{fill:var(--c2)!important;stroke:none!important;opacity:.18;animation:cell 2.4s ease-in-out infinite;animation-delay:var(--d)}
@keyframes cell{50%{opacity:.55}}
.sc-ctrl{fill:var(--surface-2)!important}
.sc-hinge{fill:var(--surface)!important}
.sc-bar{stroke-width:7!important}
.sc-beam{stroke:none!important;color:var(--c2)}
.sc-line.thin{stroke-width:1.2!important}
.sc-scan{fill:url(#beam);color:var(--c2);opacity:.0;animation:scan 5.5s ease-in-out infinite}
@keyframes scan{0%{transform:translateX(-80px);opacity:0}10%{opacity:.35}90%{opacity:.35}100%{transform:translateX(660px);opacity:0}}
.hot{cursor:pointer}
.hot .h-dot{fill:var(--hot);opacity:.88;transition:opacity .2s}
.hot .h-ring{fill:none;stroke:var(--hot);stroke-width:1.5;opacity:0;transform-box:fill-box;transform-origin:center;animation:ring 2.4s ease-out infinite}
.hot.zero .h-dot{fill:var(--line-2)}
.hot.zero .h-ring{display:none}
.hot text{font:800 10px var(--fn);fill:#fff;pointer-events:none}
.hot.sel .h-dot{opacity:1;stroke:var(--surface);stroke-width:3}
.hot:hover .h-dot{opacity:1}
@keyframes ring{0%{opacity:.7;transform:scale(.6)}100%{opacity:0;transform:scale(1.6)}}
.pcard{display:flex;flex-direction:column;gap:10px;padding:18px;border-radius:var(--r);background:var(--pc,#1f2a4a);color:#fff;box-shadow:0 14px 34px rgba(31,42,74,.28);position:relative;overflow:hidden;margin-bottom:16px;min-width:0}
.pcard::before{content:"";position:absolute;right:-60px;top:-60px;width:200px;height:200px;border-radius:50%;background:radial-gradient(circle,rgba(91,152,171,.45),transparent 70%);animation:float 7s ease-in-out infinite}
@keyframes float{50%{transform:translate(-20px,20px)}}
.pcard .eyebrow{color:#9cc6d3}
.pcard h3{font:800 1.15rem var(--fn);letter-spacing:.04em;overflow-wrap:anywhere}
.pc-cd{display:flex;flex-direction:column;gap:2px}
.pc-cd span{font-size:.78rem;opacity:.75}
.pc-cd b{font:800 1.7rem/1.1 var(--fn);font-variant-numeric:tabular-nums}
.pc-tz{display:flex;flex-direction:column;gap:2px;font-size:.8rem;opacity:.85}
.pc-prog{display:block;height:6px;border-radius:4px;background:rgba(255,255,255,.18);overflow:hidden}
.pc-prog i{display:block;height:100%;width:var(--w);background:var(--ok);animation:grow 1.2s ease both}
.pc-f{font-size:.8rem;opacity:.85}
.todo{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.todo a{display:flex;align-items:center;gap:12px;padding:12px;border-radius:12px;background:var(--surface-2);transition:transform .2s}
.todo a:hover{transform:translateX(3px)}
.todo a.hot .row-ico{background:var(--hot);color:#fff}
.todo span{display:flex;flex-direction:column;flex:1;min-width:0}
.todo b{font-size:.9rem;overflow-wrap:anywhere}
.todo small{color:var(--muted);font-size:.78rem}
.feed{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.feed a{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 10px;border-radius:10px;background:var(--surface-2);font-size:.82rem}
.feed b{font-family:var(--fn);letter-spacing:.03em}
.feed small{margin-left:auto;color:var(--muted)}
.feed .lf-new{animation:pop .6s cubic-bezier(.2,.7,.2,1)}
.feed .lf-new a{box-shadow:inset 3px 0 0 var(--c2)}
.follows{margin-bottom:16px}
.fl-row{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:4px}
.fl{display:flex;align-items:center;gap:8px;flex:none;padding:8px 12px;border-radius:12px;background:var(--surface);border:1px solid var(--line);font-size:.84rem;font-weight:600}
.fl b{font:800 1.1rem var(--fn);color:var(--c1)}
.livedot{display:inline-flex;align-items:center;gap:8px;font-size:.78rem;font-weight:600;color:var(--muted)}
.livedot i{width:9px;height:9px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 0 rgba(61,220,132,.6);animation:pulse 1.8s infinite}
@keyframes pulse{70%{box-shadow:0 0 0 9px rgba(61,220,132,0)}100%{box-shadow:0 0 0 0 rgba(61,220,132,0)}}
.narr{background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--hot);border-radius:var(--r);padding:16px 18px;margin-bottom:16px;box-shadow:var(--sh)}
.narr-t{font-size:1.05rem;line-height:1.65}
.narr-t a{color:var(--c2);font-weight:700}
.narr-t b{font-family:var(--fn);font-size:1.15em;color:var(--c1)}
@media(min-width:900px){.narr-t{font-size:1.2rem}}

/* Signaux, garanties, actions */
.conf{position:relative;display:flex;flex-direction:column;align-items:flex-end;gap:3px;width:64px;flex:none}
.conf i{display:block;width:100%;height:5px;border-radius:3px;background:linear-gradient(90deg,var(--c2) var(--w),var(--surface-2) var(--w))}
.conf b{font:800 .82rem var(--fn)}
.tabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--line);margin-bottom:14px}
.tabs a{display:flex;align-items:center;gap:6px;min-height:44px;padding:10px 14px;font-weight:700;font-size:.88rem;color:var(--muted);border-bottom:3px solid transparent;white-space:nowrap}
.tabs a.on{color:var(--c1);border-color:var(--hot)}
.tabs b{font:800 .75rem var(--fn);background:var(--surface-2);padding:1px 7px;border-radius:8px}
.claim{display:grid;gap:12px;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r)}
.claim .ev{max-width:100%}
.claim-b p:first-child{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px;font-size:.88rem}
.claim-b p b{font-family:var(--fn);letter-spacing:.03em}
@media(min-width:900px){.claim{grid-template-columns:220px 1fr auto;align-items:start}}
.row-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.d8{display:flex;flex-wrap:wrap;gap:3px;margin-top:6px}
.d8 i{font:800 .62rem/18px var(--fn);font-style:normal;padding:0 5px;border-radius:5px;background:var(--surface-2);color:var(--muted)}
.d8 i.d8-2{background:var(--btn,var(--c1));color:var(--btn-t,#fff)}
.d8 i.d8-1{background:var(--c2);color:#fff}
.act-p{font:800 1.1rem var(--fn);color:var(--c1)}
.d8l{list-style:none;margin:14px 0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:6px}
@media(min-width:720px){.d8l{grid-template-columns:repeat(4,1fr)}}
.d8l li{display:flex;flex-direction:column;padding:8px 10px;border-radius:10px;background:var(--surface-2);font-size:.8rem}
.d8l b{font-family:var(--fn)}
.d8l em{font-style:normal;font-size:.72rem;color:var(--muted)}
.d8l li.d8-2{background:rgba(31,42,74,.08)}
.d8l li.d8-2 em{color:var(--okt)}
.d8l li.d8-1 em{color:var(--c2);font-weight:700}

/* Colis avion */
.stepper{list-style:none;margin:0 0 16px;padding:0;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.stepper li{flex:1 0 auto;display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:12px;background:var(--surface);border:1px solid var(--line);font-size:.8rem;font-weight:600;color:var(--muted);white-space:nowrap}
.stepper i{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--surface-2);font:800 .75rem var(--fn);font-style:normal}
.stepper li.ok{color:var(--text)}
.stepper li.ok i{background:var(--ok);color:#0b3d24}
.stepper li.cur{border-color:var(--c1);color:var(--c1)}
.stepper li.cur i{background:var(--btn,var(--c1));color:var(--btn-t,#fff);animation:pulseb 1.8s infinite}
@keyframes pulseb{70%{box-shadow:0 0 0 7px rgba(31,42,74,0)}0%{box-shadow:0 0 0 0 rgba(31,42,74,.35)}}
.deadline{background:var(--pc,#1f2a4a);color:#fff;border:0}
.deadline .eyebrow{color:#9cc6d3}
.cd-big{font:800 2.1rem/1.1 var(--fn);margin:6px 0 10px;font-variant-numeric:tabular-nums}
.deadline .pc-tz{margin-bottom:10px}
.deadline .muted{color:rgba(255,255,255,.75)}
.pl-prog{display:flex;flex-direction:column;gap:6px;margin:0 0 16px;font-size:.84rem;font-weight:700}
.pl-prog i{display:block;height:8px;border-radius:5px;background:var(--surface);border:1px solid var(--line);overflow:hidden}
.pl-prog b{display:block;height:100%;width:var(--w);background:var(--ok);transition:width .6s}
.pgroup{margin-bottom:18px}
.pg-h{display:flex;align-items:center;gap:8px;font-size:1rem;color:var(--c1);margin-bottom:10px}
.pg-h b{font:800 .78rem var(--fn);background:var(--btn,var(--c1));color:var(--btn-t,#fff);border-radius:8px;padding:1px 8px}
.pls{display:grid;gap:10px}
@media(min-width:900px){.pls{grid-template-columns:1fr 1fr}}
.pl{display:flex;flex-direction:column;gap:8px;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);transition:border-color .3s,background .3s;min-width:0}
.pl.done{border-color:rgba(61,220,132,.55);background:linear-gradient(0deg,rgba(61,220,132,.05),rgba(61,220,132,.05)),var(--surface)}
.pl-urgent{border-left:4px solid var(--hot)}
.pl-h{display:flex;align-items:flex-start;gap:10px}
.pl-h>div{flex:1;min-width:0}
.pl-h h3{font-size:.98rem;color:var(--c1)}
.pl-ico{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--surface-2);color:var(--c1);flex:none}
.pl-urgent .pl-ico{background:var(--hot);color:#fff}
.pcard h3,.deadline h3{color:#fff}
.pl-codes{font-size:.74rem;color:var(--muted);font-family:Consolas,monospace;overflow-wrap:anywhere}
.pl-q{font:800 1.4rem var(--fn);color:var(--c1)}
.pl-why{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:.84rem}
.pill.ty-urgent{background:var(--hot);color:#fff}
.pl-dos{display:flex;flex-wrap:wrap;gap:6px}
.pl-dos a{font:700 .74rem var(--fn);color:var(--c2);letter-spacing:.03em}
.pl-meta{font-size:.76rem;color:var(--muted)}
.pl-a{display:flex;flex-direction:column;gap:10px;padding-top:4px;border-top:1px dashed var(--line)}
.pl-a .seg{align-self:flex-start}
.pl-a .seg button.on{color:var(--c1)}
.qty{display:flex;align-items:center;gap:10px}
.qty b{font:800 1.3rem var(--fn);min-width:28px;text-align:center}
.qty .icon{background:var(--surface-2);font-size:1.2rem;font-weight:800}
.qty small{color:var(--muted)}
.addr{font-style:normal;font-weight:600;line-height:1.6;margin-bottom:10px}
.okbig{display:grid;place-items:center;width:72px;height:72px;margin:6px auto 12px;border-radius:50%;background:var(--ok);color:#0b3d24;animation:pop .5s cubic-bezier(.2,.7,.2,1)}
.okbig .i{width:36px;height:36px;stroke-width:2.6}
.hist-p{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-end;max-width:50%}
.carton{border:2px dashed var(--line-2);border-radius:var(--r);padding:18px;background:#fff;color:#111;margin-bottom:16px;display:flex;flex-direction:column;gap:6px;max-width:520px}
.carton img{width:120px}
.carton .eyebrow{color:#2f6f82}
.ct-name{font:800 1.6rem var(--fn);letter-spacing:.04em;overflow-wrap:anywhere}
.ct-n{font-weight:700}
.carton address{font-style:normal;font-size:.84rem}
.labels{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
@media(min-width:720px){.labels{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1100px){.labels{grid-template-columns:repeat(4,1fr)}}
.lab{display:flex;flex-direction:column;gap:3px;padding:10px;background:#fff;color:#111;border:1px solid #d9dde6;border-radius:8px;font-size:.78rem;min-width:0}
.lab b{font-size:.8rem;line-height:1.25;overflow-wrap:anywhere}
.lab small{color:#555}
.cycle{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.cycle li{display:flex;flex-direction:column;padding:12px 14px;border-radius:12px;background:var(--surface-2);border-left:4px solid var(--c2)}
.cycle li:nth-child(4){border-left-color:var(--hot)}
.cycle b{font-size:.84rem;color:var(--c1)}
@media(min-width:1024px){.cycle{grid-template-columns:repeat(5,1fr)}}

/* Échanges */
.chat{display:flex;flex-direction:column;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:14px;box-shadow:var(--sh)}
.chat-log{display:flex;flex-direction:column;gap:10px;max-height:56vh;overflow-y:auto;padding:4px}
.bub{display:flex;gap:8px;align-items:flex-end;max-width:92%}
.bub p{padding:10px 13px;border-radius:16px;font-size:.92rem;line-height:1.5;background:var(--surface-2)}
.bub p a{color:var(--c2);font-weight:700}
.bub p small{display:block;color:var(--muted);font-size:.72rem;margin-bottom:3px}
.bub.moi{align-self:flex-end}
.bub.moi p{background:var(--btn,var(--c1));color:var(--btn-t,#fff);border-bottom-right-radius:5px}
.bub.moi p small{color:rgba(255,255,255,.7)}
.bub.bot p{border-bottom-left-radius:5px}
.bub-ico{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--c2);color:#fff;flex:none}
.bub .tr{display:flex;align-items:center;gap:4px;font-style:normal;font-size:.7rem;opacity:.7;margin-top:4px}
.typing p{display:flex;gap:4px}
.typing p b{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:typ 1s infinite}
.typing p b:nth-child(2){animation-delay:.15s}.typing p b:nth-child(3){animation-delay:.3s}
@keyframes typ{50%{transform:translateY(-4px);opacity:.4}}
.chat-sug{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.chat-in{display:flex;gap:8px}
.chat-in input{flex:1;min-width:0;min-height:48px;padding:10px 14px;border-radius:14px;border:1px solid var(--line-2);background:var(--surface);font-size:16px}
.chat-in .btn span{display:none}
@media(min-width:720px){.chat-in .btn span{display:inline}}
.chat-note{display:flex;gap:6px;align-items:flex-start;font-size:.76rem;color:var(--muted)}
.msgs{display:grid;gap:14px}
.th-list{display:flex;flex-direction:column;gap:8px}
.th-view{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px;display:flex;flex-direction:column;gap:12px;min-width:0}
.th-view h2{font-size:1.1rem;color:var(--c1)}
.th-view>p a{color:var(--c2);font-weight:700;font-size:.86rem}
.msgs.has-cur .th-list{display:none}
.msgs:not(.has-cur) .empty-v{display:none}
.th-back{align-self:flex-start}
@media(min-width:1024px){.msgs{grid-template-columns:minmax(0,38%) 1fr}.msgs.has-cur .th-list{display:flex}.msgs:not(.has-cur) .empty-v{display:flex}.th-back{display:none}}
.docprev{display:flex;flex-direction:column;gap:9px;padding:18px;margin:14px 0;border-radius:10px;background:var(--surface-2);min-height:220px}
.docprev i{display:block;height:9px;width:var(--w);border-radius:5px;background:var(--line-2)}
.reqs{display:grid;gap:12px}
@media(min-width:900px){.reqs{grid-template-columns:1fr 1fr}}
.req{display:flex;flex-direction:column;gap:8px;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r)}
.req-h{display:flex;justify-content:space-between;gap:10px}
.req-h span{font:800 1.1rem var(--fn);color:var(--c1)}
.req-t{display:block;height:8px;border-radius:5px;background:var(--surface-2);overflow:hidden}
.req-t i{display:block;height:100%;width:var(--w);background:var(--c2);animation:grow 1.1s ease both}
.req .btn{align-self:flex-start}
.cgu{list-style:none;margin:14px 0;padding:0;display:flex;flex-direction:column;gap:10px}
.cgu li{display:flex;gap:10px;align-items:flex-start;font-size:.92rem}
.cgu .i{color:var(--c2);margin-top:2px}
.kbl{list-style:none;padding:0;margin:14px 0 0;display:flex;flex-direction:column;gap:10px}
.kbl li{display:flex;align-items:center;gap:8px}
.kbl span{margin-left:8px}
kbd{display:inline-block;min-width:26px;padding:2px 7px;border-radius:6px;border:1px solid var(--line-2);border-bottom-width:2px;background:var(--surface);font:700 .74rem var(--fn);text-align:center;color:var(--muted)}

/* Fenêtres */
.mdl{position:fixed;inset:0;z-index:1000;display:flex;align-items:flex-end;justify-content:center}
.mdl-bg{position:absolute;inset:0;background:rgba(15,20,35,.55);backdrop-filter:blur(3px);opacity:0;transition:opacity .25s}
.mdl.in .mdl-bg{opacity:1}
.mdl-box{position:relative;width:100%;max-height:92vh;overflow:auto;background:var(--surface);color:var(--text);border-radius:22px 22px 0 0;padding:22px 18px 26px;transform:translateY(40px);opacity:0;transition:transform .35s cubic-bezier(.2,.7,.2,1),opacity .25s}
.mdl.in .mdl-box{transform:none;opacity:1}
.mdl-box h2{font-size:1.2rem;color:var(--c1);display:flex;align-items:center;gap:8px;margin:0 36px 8px 0}
.mdl-box h3{font-size:1rem;color:var(--c1);margin:14px 0 8px}
.mdl-x{position:absolute;top:10px;right:10px;z-index:2}
.mdl-box.wm-in::after{content:"";position:absolute;inset:0;pointer-events:none;background:var(--wmbg);z-index:3}
@media(min-width:720px){.mdl{align-items:center;padding:24px}.mdl-box{max-width:560px;border-radius:22px}.mdl.wide .mdl-box{max-width:860px}.mdl.lbm .mdl-box{max-width:980px}.mdl.top{align-items:flex-start;padding-top:9vh}}
.srch-in{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 4px 0 12px;border:2px solid var(--c2);border-radius:14px;margin-right:40px}
.srch-in input{flex:1;min-width:0;border:0;outline:0;background:none;font-size:17px}
.srch-res{margin-top:12px;max-height:60vh;overflow:auto}
.srch-g{font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin:12px 4px 6px}
.srch-it{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border-radius:10px;text-align:left}
.srch-it span{font-weight:700;font-size:.92rem}
.srch-it small{flex:1;color:var(--muted);font-size:.78rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.srch-it .i:last-child{color:var(--muted)}
.srch-it.sel,.srch-it:hover{background:var(--surface-2)}
.srch-hint{color:var(--muted);font-size:.88rem;padding:14px 4px}
.srch-foot{display:flex;gap:6px;align-items:center;font-size:.74rem;color:var(--muted);margin-top:12px}
.lb{display:flex;flex-direction:column;gap:8px}
.lb .thumb{aspect-ratio:16/9}
.lb-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.lb-prog{flex:1;min-width:80px;height:6px;border-radius:3px;background:var(--surface-2);overflow:hidden}
.lb-prog i{display:block;height:100%;width:0;background:var(--c2)}
.lb.playing .lb-prog i{animation:play 14s linear forwards}
.lb.playing .th-play{opacity:0}
.lb.step .thumb{filter:brightness(1.25)}
@keyframes play{to{width:100%}}
.lb-info{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.lb-info .btn{align-self:flex-start}
#toasts{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);z-index:1100;display:flex;flex-direction:column;gap:8px;width:min(92vw,420px);pointer-events:none}
.toast{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:14px;background:#222;color:#fff;font-size:.88rem;box-shadow:0 10px 30px rgba(0,0,0,.3);animation:pop .3s ease}
.toast.ok .i{color:var(--ok)}
.toast.out{opacity:0;transform:translateY(10px);transition:all .4s}

/* Protection : filigrane, impression, sélection */
#wb-wm{position:fixed;inset:0;z-index:900;pointer-events:none;background-repeat:repeat}
body.present{--pad:28px}
body.present .page{max-width:1500px;font-size:17px}
@media print{
  body:not(.print-ok)>*{display:none!important}
  body:not(.print-ok)::before{content:attr(data-print-msg);display:block;padding:60px 40px;font:18px Arial,sans-serif}
  body.print-ok *{visibility:hidden}
  body.print-ok .print-area,body.print-ok .print-area *{visibility:visible}
  body.print-ok .print-area{position:absolute;left:0;top:0;width:100%}
  body.print-ok .lab{break-inside:avoid;border-color:#000}
  #wb-wm{display:none!important}
}

/* Apparitions */
.rv{opacity:0;transform:translateY(14px);transition:opacity .6s ease,transform .6s cubic-bezier(.2,.7,.2,1);transition-delay:calc(var(--i,0)*45ms)}
.rv.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}.rv{opacity:1;transform:none}}
