:root{--navy:#1f3a68;--navy-d:#152a4d;--gold:#d4a72c;--gold-l:#f6ecd0;--bg:#f4f6fa;--text:#1e293b;--muted:#64748b;--line:#e2e8f0;--side-top:7rem;--side-bottom-gap:1.25rem;--chrome-bg:#152a4d;--chrome-fg:#e8eef8;--chrome-muted:#c5d0ee}
*{box-sizing:border-box;margin:0}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:var(--bg);color:var(--text);min-height:100vh;display:flex;flex-direction:column;align-items:center;padding:4rem 1.25rem 0}
body:has(.topbar){padding-top:7rem}
header{text-align:center;margin-bottom:2.5rem}
h1{font-size:clamp(1.8rem,4.5vw,2.6rem);font-weight:700;color:var(--navy)}
h1 .accent{color:var(--gold)}
header p{color:var(--muted);margin-top:.5rem;font-size:1.05rem}
.logo-card{display:inline-block;background:#fff;border-radius:1.25rem;padding:1.25rem 1.75rem;box-shadow:0 8px 24px rgba(31,58,104,.1);margin-bottom:1.5rem}
.logo-card img{display:block;width:220px;max-width:60vw;height:auto}
.topbar{position:fixed;top:0;left:0;right:0;z-index:10;display:flex;gap:1.25rem;align-items:center;padding:.6rem 1.5rem;background:#fff;border-bottom:3px solid var(--gold);box-shadow:0 2px 12px rgba(31,58,104,.08);font-size:.95rem;flex-wrap:wrap}
.topbar a,.topbar .link{color:var(--navy);text-decoration:none;background:none;border:0;font:inherit;font-weight:500;cursor:pointer;padding:0}
.topbar a:hover,.topbar .link:hover{color:var(--gold)}
.topbar .brand{display:flex;align-items:center;gap:.75rem;margin-right:auto;font-weight:700}
.topbar .brand img{height:42px;width:auto}
.topbar .who{color:var(--muted)}
.inline{display:inline}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;width:100%;max-width:none}
.card{display:block;text-decoration:none;color:inherit;background:#fff;border:1px solid var(--line);border-top:4px solid var(--navy);border-radius:1.25rem;padding:2rem;transition:.2s;box-shadow:0 4px 14px rgba(31,58,104,.06)}
.card:hover{transform:translateY(-4px);border-top-color:var(--gold);box-shadow:0 14px 30px rgba(31,58,104,.14)}
.icon{font-size:2.5rem;margin-bottom:1rem}
.card h2{font-size:1.35rem;color:var(--navy);margin-bottom:.5rem}
.card p{color:var(--muted);line-height:1.5}
.go{display:inline-block;margin-top:1.25rem;color:var(--gold);font-weight:700}
.box{max-width:560px;text-align:center;background:#fff;border-radius:1.25rem;padding:2.5rem;box-shadow:0 4px 14px rgba(31,58,104,.06)}
.box p{color:var(--muted);font-size:1.1rem}
.back,.btn{display:inline-block;padding:.8rem 1.5rem;border:0;border-radius:999px;background:var(--navy);color:#fff;text-decoration:none;font:inherit;font-weight:600;cursor:pointer;transition:.15s}
.back{margin-top:1.75rem}
.back:hover,.btn:hover{background:var(--gold);color:var(--navy-d)}
.panel{width:100%;max-width:420px;background:#fff;border:1px solid var(--line);border-radius:1.25rem;padding:2rem;box-shadow:0 8px 24px rgba(31,58,104,.08)}
.panel.full{max-width:none;margin-bottom:1.5rem}
.panel h2{color:var(--navy);font-size:1.15rem;margin-bottom:1rem}
.form{display:flex;flex-direction:column;gap:1rem}
.form.row{flex-direction:row;flex-wrap:wrap;align-items:flex-end}
.form.row label{flex:1;min-width:200px}
label{display:flex;flex-direction:column;gap:.4rem;color:var(--navy);font-weight:500;font-size:.95rem}
small{color:var(--muted);font-weight:400}
input,select{padding:.75rem 1rem;border-radius:.75rem;border:1px solid #cbd5e1;background:#fff;color:var(--text);font:inherit}
input:focus,select:focus{outline:2px solid var(--gold);border-color:transparent}
.alert,.notice,.secret{width:100%;max-width:none;padding:.9rem 1.2rem;border-radius:.75rem;margin-bottom:1.25rem}
.panel .alert{max-width:none}
.alert{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}
.notice{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534}
.secret{background:var(--gold-l);border:1px solid var(--gold);color:#5c4708}
.secret code{font-size:1.1rem;background:#fff;padding:.15rem .5rem;border-radius:.4rem}
.wide{width:100%;max-width:none}/* was 1100px ; 09/11 layout wide */
.tablewrap{overflow-x:auto;border-radius:1rem;border:1px solid var(--line);background:#fff}
table{width:100%;border-collapse:collapse;font-size:.92rem}
th,td{padding:.75rem 1rem;text-align:left;border-bottom:1px solid var(--line)}
th{color:#fff;font-weight:600;background:var(--navy)}
.actions{white-space:nowrap}
.small{padding:.35rem .8rem;border-radius:999px;border:1px solid #cbd5e1;background:#fff;color:var(--navy);font:inherit;font-size:.85rem;cursor:pointer}
.small:hover{border-color:var(--gold);color:var(--gold)}
.small.danger:hover{border-color:#dc2626;color:#dc2626}
.tag{display:inline-block;padding:.15rem .6rem;border-radius:999px;font-size:.8rem;background:#eef2f7;color:var(--navy)}
.tag.ok{background:#dcfce7;color:#166534}.tag.off{background:#fee2e2;color:#991b1b}
footer{margin-top:auto;padding:3rem 0 1.5rem;color:var(--muted);font-size:.85rem}
.cards.two{max-width:none;margin-bottom:2rem}
.cards.two .panel{margin:0}
.hint{color:var(--muted);font-size:.9rem;line-height:1.5;margin-bottom:1rem}
.hint code,.panel code{background:#eef2f7;padding:.1rem .4rem;border-radius:.3rem;font-size:.82rem;word-break:break-all}
input[type=file]{padding:.6rem;background:#f8fafc}
.dl{display:inline-block;margin-top:1rem;color:var(--navy);font-weight:600;text-decoration:none}
.dl:hover{color:var(--gold)}
h2.sub{color:var(--navy);font-size:1.25rem;margin:0 0 1rem}
.bar{height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden;min-width:120px;margin-bottom:.3rem}
.bar span{display:block;height:100%;background:linear-gradient(90deg,var(--navy),var(--gold));transition:width .4s}
.upbar{margin-top:1rem}
tr.hl td{background:var(--gold-l)}
td a{color:var(--navy);font-weight:600}
.cat{width:100%;max-width:1200px}
.cat-head{margin-bottom:1.35rem;padding:0 0 1rem;border-bottom:1px solid var(--line)}
.cat-head .crumb{display:inline-flex;align-items:center;gap:.35rem;color:var(--gold);font-weight:700;text-decoration:none;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em}
.cat-head .crumb:hover{color:var(--navy)}
.cat-head h1{text-align:left;margin-top:.4rem;font-size:clamp(1.35rem,2.8vw,1.85rem);line-height:1.25;letter-spacing:-.01em}
.cat-head p,.cat-head .cat-sub{color:#475569;margin-top:.45rem;font-size:12px;line-height:1.5;max-width:56rem}
.cat-head p a,.cat-head .cat-sub a{color:var(--navy);font-weight:600;text-decoration:none}
/* 05/11/2026 (Julien t1958u) : bouton retour + barre d'actions sous le titre */
.cat-back{display:inline-flex;align-items:center;gap:.35rem;font-size:.85rem;font-weight:600;color:var(--navy);background:#fff;border:1px solid #c7d2e3;border-radius:8px;padding:.32rem .85rem;text-decoration:none;vertical-align:middle;margin-right:.55rem;transition:background .15s,border-color .15s,color .15s}
.cat-back:hover{background:#eef2ff;border-color:var(--navy);color:var(--navy)}
.cat-toolbar{display:flex;align-items:flex-start;gap:.85rem;flex-wrap:wrap;margin:0 0 1rem}
.cat-toolbar .cat-help{flex:1;min-width:16rem;margin:0;color:#475569;font-size:12px;line-height:1.5}
.cat-toolbar .cat-help a{color:var(--navy);font-weight:600;text-decoration:none}
.cat-toolbar .cat-help a:hover{color:var(--gold)}
.tabs{display:flex;gap:.35rem;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:999px;padding:.35rem;margin-bottom:1.75rem;box-shadow:0 4px 14px rgba(31,58,104,.06);width:fit-content;max-width:100%}
.tabs a{display:flex;align-items:center;gap:.45rem;padding:.6rem 1.1rem;border-radius:999px;color:var(--navy);text-decoration:none;font-weight:600;font-size:.95rem;transition:.15s}
.tabs a:hover{background:#eef2f7}
.tabs a.on{background:var(--navy);color:#fff}
.tabs a.on span{filter:grayscale(.2)}
.filters{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap;margin-bottom:1.25rem}
.filters input[type=search],.filters input[name=label]{flex:1;min-width:240px}
.filters.big input{font-size:1.1rem;padding:1rem 1.25rem}
.filters .count{color:var(--muted);margin-left:auto;font-size:.9rem}
.chip{background:var(--gold-l);color:#5c4708;border-radius:999px;padding:.4rem .8rem;font-size:.9rem}
.chip a{color:#5c4708;text-decoration:none;font-weight:700;margin-left:.3rem}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}
.tile{background:#fff;border:1px solid var(--line);border-radius:1.1rem;padding:1.4rem;text-decoration:none;color:var(--muted);display:flex;flex-direction:column;gap:.3rem;transition:.2s;box-shadow:0 4px 14px rgba(31,58,104,.06)}
.tile:hover{transform:translateY(-3px);border-color:var(--gold)}
.tile .ic{font-size:1.6rem}
.tile b{font-size:1.7rem;color:var(--navy)}
table.rows tbody tr[data-href]{cursor:pointer;transition:background .1s}
table.rows tbody tr[data-href]:hover,table.rows tbody tr[data-href]:focus{background:#f8f4e6;outline:none}
table.rows td a{color:var(--navy);text-decoration:none;font-weight:600}
td.empty{text-align:center;color:var(--muted);padding:2rem}
.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.thumb{display:block;width:44px;height:44px;border-radius:.5rem;object-fit:contain;background:#fff;border:1px solid var(--line)}
.thumb svg{width:100%;height:100%}
.pager{display:flex;justify-content:space-between;align-items:center;margin-top:1rem;color:var(--muted)}
.pager a{color:var(--navy);font-weight:600;text-decoration:none}
.fiche{display:grid;grid-template-columns:minmax(260px,380px) 1fr;gap:1.75rem;align-items:start}
@media (max-width:800px){.fiche{grid-template-columns:1fr}}
.photo{background:#fff;border:1px solid var(--line);border-radius:1.25rem;padding:1.25rem;aspect-ratio:1;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(31,58,104,.08)}
.photo img{max-width:100%;max-height:100%;object-fit:contain}
.photo .ph{width:70%}
.imgedit{margin-top:1rem;background:#fff;border:1px solid var(--line);border-radius:1rem;padding:1rem}
.imgedit summary{cursor:pointer;color:var(--navy);font-weight:600}
.imgedit form{margin-top:1rem}
.info-col{display:flex;flex-direction:column;gap:1.25rem}
.sec{background:#fff;border:1px solid var(--line);border-radius:1.25rem;padding:1.5rem;box-shadow:0 4px 14px rgba(31,58,104,.06)}
.sec h2{color:var(--navy);font-size:1.05rem;margin-bottom:1rem;padding-bottom:.6rem;border-bottom:2px solid var(--gold-l)}
.sec dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem 1.5rem}
.sec dt{color:var(--muted);font-size:.82rem;text-transform:uppercase;letter-spacing:.04em}
.sec dd{margin:.2rem 0 0;color:var(--text);font-weight:600;font-size:1.02rem}
.sec dd a{color:var(--navy)}
.desc{color:var(--text);line-height:1.6}
/* 09/11/2026 (Julien) : zone centrale quasi pleine largeur (mutualisable futur serveur commandes) ; sidebar inchangée */.cat-layout{width:100%;max-width:none;display:grid;grid-template-columns:250px minmax(0,1fr);gap:1.25rem;align-items:start}
.cat{max-width:none;min-width:0}
.side{position:sticky;top:6.5rem;background:#fff;border:1px solid var(--line);border-radius:1.25rem;padding:1rem .75rem;box-shadow:0 4px 14px rgba(31,58,104,.06)}
/* 17/11/2026 (Julien t3350u) : la carte du menu occupe toute la hauteur sous l'en-tête, et reste collée au défilement. Décalage = --soft-top (mesuré) ou --side-top. Bureau seulement : le tiroir ≤900 px (position:fixed ; top/bottom:0) reste inchangé. */
@media (min-width:901px){
  /* 17/11/2026 (Julien t3352u) : le bandeau de titre et le menu partagent le même bord haut
     (le décalage --soft-top − 7rem s'applique à tout le .cat-layout, plus seulement au menu). */
  .cat-layout{margin-top:calc(var(--soft-top,var(--side-top)) - 7rem)}
  .side{
    top:var(--soft-top,var(--side-top));
    height:calc(100vh - var(--soft-top,var(--side-top)) - var(--side-bottom-gap));
    height:calc(100dvh - var(--soft-top,var(--side-top)) - var(--side-bottom-gap));
    max-height:calc(100vh - var(--soft-top,var(--side-top)) - var(--side-bottom-gap));
    max-height:calc(100dvh - var(--soft-top,var(--side-top)) - var(--side-bottom-gap));
    overflow-y:auto;overscroll-behavior:contain;align-self:start;scrollbar-width:thin
  }
}
.side-title{font-size:.78rem;font-weight:700;color:var(--gold);text-transform:uppercase;letter-spacing:.06em;padding:.25rem .75rem .75rem}
.side ul{list-style:none;padding:0;margin:0}
.side ul.lvl1{margin:.2rem 0 .4rem 1.1rem;padding-left:.6rem;border-left:2px solid var(--gold-l)}
.side a,.side summary{display:flex;align-items:center;gap:.6rem;padding:.6rem .75rem;border-radius:.7rem;color:var(--navy);text-decoration:none;font-weight:600;font-size:.95rem;cursor:pointer;transition:.15s;list-style:none}
.side summary::-webkit-details-marker{display:none}
.side .lvl1 a{font-weight:500;font-size:.92rem;padding:.45rem .7rem}
.side a:hover,.side summary:hover{background:#eef2f7}
.side a.on{background:var(--navy);color:#fff}
.side summary.parent-on{color:var(--navy);background:var(--gold-l)}
.side .ic{width:1.3rem;text-align:center}
.side .chev{margin-left:auto;font-size:.8rem;transition:transform .2s;color:var(--muted)}
.side details:not([open]) .chev{transform:rotate(-90deg)}
.side-toggle{display:none;margin-bottom:1rem;padding:.6rem 1rem;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--navy);font:inherit;font-weight:600;cursor:pointer}
@media (max-width:900px){
 .cat-layout{grid-template-columns:1fr}
 .side-toggle{display:inline-block}
 .side{display:none;position:static}
 .side.show{display:block;margin-bottom:1rem}
}
.cbadge{display:inline-block;padding:.2rem .65rem;border-radius:999px;font-size:.8rem;font-weight:700;white-space:nowrap}
.cbadge.ok{background:#dcfce7;color:#166534}
.cbadge.mid{background:#fef3c7;color:#92400e}
.cbadge.low{background:#fee2e2;color:#991b1b}
ul.missing{list-style:none;padding:0;margin:.8rem 0 0;display:flex;flex-wrap:wrap;gap:.4rem}
ul.missing li,.mtag{background:#fff1f2;border:1px solid #fecdd3;color:#9f1239;border-radius:999px;padding:.15rem .6rem;font-size:.8rem;font-weight:600}
.misscell{display:flex;flex-wrap:wrap;gap:.3rem}
.sec.cmp .bar{margin-top:1rem;height:10px}
.sec.cmp.is-ok{border-left:5px solid #22c55e}.sec.cmp.is-inc{border-left:5px solid var(--gold)}
.seg{display:inline-flex;background:#fff;border:1px solid var(--line);border-radius:999px;padding:.3rem;margin-bottom:1.25rem}
.seg a{padding:.5rem 1.1rem;border-radius:999px;color:var(--navy);text-decoration:none;font-weight:600;font-size:.92rem}
.seg a.on{background:var(--navy);color:#fff}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.8rem;margin-bottom:1.25rem}
.kpi{background:#fff;border:1px solid var(--line);border-radius:1rem;padding:1rem;text-decoration:none;display:flex;flex-direction:column;gap:.15rem;transition:.15s;box-shadow:0 4px 14px rgba(31,58,104,.05)}
.kpi b{font-size:1.5rem;color:var(--navy)}.kpi span{color:var(--text);font-weight:600;font-size:.9rem}.kpi small{color:var(--muted)}
.kpi:hover{border-color:var(--gold)}
.kpi.on{background:var(--navy);border-color:var(--navy)}.kpi.on b,.kpi.on span,.kpi.on small{color:#fff}
.split{display:grid;grid-template-columns:1fr 290px;gap:1.5rem;align-items:start}
.split-main{min-width:0}
@media (max-width:1150px){.split{grid-template-columns:1fr}.panel-side{order:-1}}
.panel-side{background:#fff;border:1px solid var(--line);border-radius:1.25rem;padding:1.25rem;box-shadow:0 4px 14px rgba(31,58,104,.06)}
.panel-side h2{color:var(--navy);font-size:1rem;margin-bottom:.8rem;padding-bottom:.5rem;border-bottom:2px solid var(--gold-l)}
.rlist{list-style:none;padding:0;margin:0}
.rlist a,.rlist .norsn{display:flex;justify-content:space-between;gap:.5rem;padding:.5rem .7rem;border-radius:.6rem;text-decoration:none;color:var(--navy);font-size:.92rem}
.rlist a:hover{background:#eef2f7}.rlist a.on{background:var(--navy);color:#fff}
.rlist a.inactive span{opacity:.6}.rlist .norsn{color:var(--muted)}
.rlist b{font-variant-numeric:tabular-nums}
.manage{margin-top:1rem;border-top:1px solid var(--line);padding-top:.8rem}
.manage summary{cursor:pointer;color:var(--navy);font-weight:600}
.manage .form{margin:.8rem 0}
.rman{display:flex;gap:.4rem;align-items:center;margin-bottom:.4rem}
.rrow{display:flex;gap:.3rem;flex:1}.rrow input{flex:1;min-width:0;padding:.4rem .6rem;font-size:.85rem}
.sbadge{display:inline-block;padding:.2rem .65rem;border-radius:999px;font-size:.8rem;font-weight:700}
.sbadge.on{background:#dcfce7;color:#166534}.sbadge.off{background:#fee2e2;color:#991b1b}.sbadge.est{background:#fef3c7;color:#92400e}
.sreason{display:block;margin-top:.25rem;font-size:.78rem;color:#991b1b}
.stcell{min-width:120px}
.chint{color:var(--muted);font-size:.75rem}.chint.ok{color:#166534}
.kpi.static{cursor:default}.kpi.st-ok b{color:#166534}.kpi.st-mid b{color:#92400e}.kpi.st-low b{color:#991b1b}.kpi.on b{color:#fff}
h2.sub small{font-weight:400}
.wide-btn{display:block;text-align:center;margin-top:1rem}
.grid4{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem}
textarea{padding:.75rem 1rem;border-radius:.75rem;border:1px solid #cbd5e1;font:inherit;resize:vertical}
input:disabled{background:#f1f5f9;color:var(--muted)}
.actionsbar{display:flex;gap:.8rem;flex-wrap:wrap;align-items:center;position:sticky;bottom:0;background:linear-gradient(transparent,var(--bg) 30%);padding:1rem 0}
.btn.ghost{background:#fff;color:var(--navy);border:2px solid var(--navy)}
.rid{display:inline-block;font:600 .72rem/1.4 monospace;background:#eef1f6;color:#334;border-radius:4px;padding:0 .35rem;margin-right:.3rem}
.sdate{display:block;color:#64748b;font-size:.75rem}.drange{display:inline-flex;gap:.3rem;align-items:center;font-size:.85rem}
.rbadges{display:flex;flex-wrap:wrap;gap:.25rem;margin-top:.2rem}.rbadge{font-size:.68rem;padding:0 .4rem;border-radius:9px;background:#eef1f6;color:#334}.rbadge.perm{background:#fde2e2;color:#9b1c1c}.rbadge.auto{background:#dcfce7;color:#166534}.rcfg{display:block;font-size:.75rem;padding:.1rem .6rem .4rem}.stform{display:inline-flex;gap:.4rem;margin-left:.6rem;align-items:center}[hidden]{display:none!important}
.cstate{display:inline-block;font-size:.72rem;font-weight:600;padding:.05rem .5rem;border-radius:9px}.cstate.on{background:#dcfce7;color:#166534}.cstate.off{background:#fde2e2;color:#9b1c1c}tr.cat-off td{color:#64748b}

/* Gestion des états v2: full-width reasons table */
.rsec{background:#fff;border:1px solid var(--line);border-radius:1rem;box-shadow:0 4px 14px rgba(31,58,104,.06);margin-bottom:1.25rem;padding:.4rem .9rem .9rem}
.rsec>summary{cursor:pointer;list-style:none;display:flex;align-items:baseline;gap:.6rem;flex-wrap:wrap;padding:.5rem 0;color:var(--navy);font-weight:700}
.rsec>summary::-webkit-details-marker{display:none}
.rsec>summary::before{content:'▸';color:var(--gold);transition:transform .15s;display:inline-block}
.rsec[open]>summary::before{transform:rotate(90deg)}
.rsec>summary small{color:var(--muted);font-weight:400;font-size:.82rem}
.rsec .rclear{margin-left:auto;font-size:.8rem;font-weight:600;color:var(--navy);text-decoration:none;border:1px solid #cbd5e1;border-radius:999px;padding:.1rem .6rem}
.rsec .rclear:hover{border-color:var(--gold);color:var(--gold)}
.rtable{max-height:24rem;overflow:auto;border-radius:.6rem}
.rtab{font-size:.86rem;min-width:640px}
.rtab th,.rtab td{padding:.32rem .7rem;white-space:nowrap;vertical-align:middle}
.rtab thead th{position:sticky;top:0;z-index:1;font-size:.78rem;letter-spacing:.02em}
.rtab th[data-k]{cursor:pointer;user-select:none}.rtab th[data-k]:hover{color:var(--gold-l)}
.rtab th[data-k]::after{content:' ↕';opacity:.35;font-size:.7rem}
.rtab th[aria-sort=ascending]::after{content:' ▲';opacity:.9}.rtab th[aria-sort=descending]::after{content:' ▼';opacity:.9}
.rtab .num{text-align:right;font-variant-numeric:tabular-nums}
.rtab td a{color:var(--navy);text-decoration:none}
.rtab td.rname{width:100%;max-width:32rem;overflow:hidden;text-overflow:ellipsis}
.rtab td.rname a{font-weight:600}
.rtab tbody tr[data-go]{cursor:pointer}
.rtab tbody tr[data-go]:hover{background:#f8f4e6}
.rtab tbody tr.on{background:var(--navy)!important}
.rtab tbody tr.on td,.rtab tbody tr.on td a{color:#fff}
.rtab tbody tr.on .rid{background:rgba(255,255,255,.18);color:#fff}
.rtab tbody.rtop tr{background:#f8fafc}
.rtab tr.roff td{opacity:.6}
.rtab tr.rnone td{color:var(--muted);font-style:italic}
.rtab .rid{margin:0}
.rtab .rbadge{font-size:.72rem;padding:.05rem .45rem;white-space:nowrap}
.rtab .rno{color:var(--muted);font-size:.8rem}
.rtab td.act{width:1%;text-align:center;padding:.2rem .4rem}
.rcog{display:inline-flex;align-items:center;justify-content:center;width:1.7rem;height:1.7rem;border-radius:999px;border:1px solid #cbd5e1;background:#fff;color:var(--navy)!important;font-size:.95rem;line-height:1}
.rcog:hover{border-color:var(--gold);color:var(--gold)!important}
.rsec .manage{margin-top:.8rem}
.rmgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:.2rem 1rem}
.rmgrid .rrow input{min-width:0;flex:1}
.fullmain{width:100%;min-width:0}
@media (max-width:640px){.rsec{padding:.3rem .5rem .6rem}.rtable{max-height:20rem}.rmgrid{grid-template-columns:1fr}}

/* reason deletion */
.btn.danger{background:#b91c1c}.btn.danger:hover{background:#7f1d1d;color:#fff}
.dangerzone{margin-top:1.5rem;text-align:left;border:1px solid #fecaca}
.dangerzone h2{color:#991b1b;font-size:1.05rem;margin-bottom:.6rem}
a.small.rdel{text-decoration:none;padding:.3rem .55rem;line-height:1}

/* ===== Documentation (/documentation/) ===== */
.doc-body{background:#fff;border:1px solid var(--line);border-radius:1.25rem;padding:1.5rem 2rem 2rem;box-shadow:0 4px 14px rgba(31,58,104,.06);line-height:1.6;min-width:0}
.doc-body .lead{font-size:1.02rem;margin-bottom:1rem}
.doc-body h2{color:var(--navy);font-size:1.3rem;margin:2rem 0 .75rem;padding-bottom:.35rem;border-bottom:2px solid var(--gold-l);scroll-margin-top:7.5rem;text-align:left}
.doc-body h2 small{color:var(--muted);font-weight:500;font-size:.85rem;margin-left:.5rem}
.doc-body h3{color:var(--navy);font-size:1.02rem;margin:1.25rem 0 .5rem}
.doc-body p,.doc-body ul,.doc-body ol{margin:0 0 .85rem}
.doc-body ul,.doc-body ol{padding-left:1.4rem}
.doc-body li{margin:.25rem 0}
.doc-body a{color:var(--navy);font-weight:600}
.doc-body code{background:#eef2f7;padding:.08rem .38rem;border-radius:.3rem;font-size:.85em;color:#0f2647;word-break:break-word}
.doc-body table.dt{margin:.5rem 0 1.25rem;border:1px solid var(--line);border-radius:.6rem;overflow:hidden;display:block;overflow-x:auto}
.doc-body table.dt th{background:var(--navy);color:#fff;text-align:left;padding:.55rem .75rem;font-size:.85rem;font-weight:600;white-space:nowrap}
.doc-body table.dt td{padding:.5rem .75rem;border-top:1px solid var(--line);vertical-align:top;font-size:.9rem}
.doc-body table.dt tr:nth-child(even) td{background:#f8fafc}
.doc-body table.dt .num{text-align:right;white-space:nowrap}
.doc-body table.cols td:first-child,.doc-body table.cols td:nth-child(2){white-space:nowrap}
.doc-body .todo{color:#b45309;font-style:italic}
.doc-body .warn{color:#b91c1c;font-weight:600}
.doc-body details summary{cursor:pointer;color:var(--muted);font-size:.8rem}
.doc-body code.gen{display:block;white-space:pre-wrap;font-size:.75rem;margin-top:.25rem;max-width:28rem}
.doc-toc{display:flex;flex-wrap:wrap;gap:.35rem .5rem;align-items:center;background:var(--gold-l);border-radius:.8rem;padding:.65rem .9rem;margin-bottom:1.25rem;font-size:.88rem}
.doc-toc b{color:var(--navy);margin-right:.25rem}
.doc-toc a{background:#fff;border-radius:999px;padding:.15rem .65rem;text-decoration:none;font-weight:500}
.doc-toc a:hover{background:var(--navy);color:#fff}
.doc-body .tree pre{background:#0f1f3a;color:#e2e8f0;padding:1rem 1.25rem;border-radius:.8rem;overflow-x:auto;font-size:.82rem;line-height:1.5}
.doc-body .tree b{color:var(--gold)}
.doc-diagram{border:1px solid var(--line);border-radius:.8rem;background:#fbfcfe;padding:.5rem;margin-bottom:.5rem;overflow-x:auto}
.doc-diagram svg{width:100%;min-width:640px;height:auto;display:block}
.doc-diagram .tb{fill:#fff;stroke:var(--navy);stroke-width:1.5}
.doc-diagram .tb.main{fill:var(--gold-l);stroke:var(--gold);stroke-width:2.5}
.doc-diagram .tb.lone{stroke-dasharray:5 4;stroke:#94a3b8}
.doc-diagram a:hover .tb{fill:#eef2f7}
.doc-diagram .tn{font:700 14px system-ui,sans-serif;fill:var(--navy);text-anchor:middle}
.doc-diagram .tr{font:12px system-ui,sans-serif;fill:#64748b;text-anchor:middle}
.doc-diagram .fk{fill:none;stroke:#c8102e;stroke-width:1.5;opacity:.75}
.doc-diagram .fkl{font:11px ui-monospace,monospace;fill:#7f1d1d;text-anchor:middle;paint-order:stroke;stroke:#fbfcfe;stroke-width:4px}
.dtable{border-top:1px dashed var(--line);margin-top:1.5rem}
.clog .cday{font-size:1.1rem}
.centry{border-left:4px solid var(--gold);background:#fbfcfe;border-radius:0 .8rem .8rem 0;padding:.75rem 1rem .25rem;margin:0 0 1rem}
.chead{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-bottom:.4rem;color:var(--navy)}
.ctime{background:var(--navy);color:#fff;border-radius:.4rem;padding:.05rem .45rem;font-size:.8rem;font-weight:600}
.ctag{background:#eef2f7;color:var(--muted);border-radius:999px;padding:.05rem .55rem;font-size:.75rem}
@media (max-width:700px){.doc-body{padding:1rem}}
.doc-body table.dt>tbody{display:table;width:100%}
.tbadge{display:inline-block;margin-left:.3rem;padding:.12rem .55rem;border-radius:999px;font-size:.72rem;font-weight:700;vertical-align:middle}
.tbadge.temp{background:#fef3c7;color:#92400e}.tbadge.perm{background:#1f2937;color:#fff}
.stform select[name=dtype]{max-width:12rem}
/* sous-entrées de menu (ex. Catégories > Catégorisation automatique) */
.side ul.lvl2{margin:.1rem 0 .3rem .9rem;padding-left:.55rem;border-left:2px solid var(--gold-l)}
.side .lvl2 a{font-size:.88rem;padding:.38rem .65rem;font-weight:500}
.side a.parent-on{background:var(--gold-l);color:var(--navy)}

/* Fournisseurs */
.slogo{object-fit:contain;background:#fff}
.slogo.none{display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:.8rem;color:var(--navy);background:#eef2f7;border-radius:8px}
.slogo-big img{object-fit:contain;background:#fff;padding:1rem}
.secretf{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin:.2rem 0 .6rem}
.secretf .lbl{font-weight:600;width:100%}
.secretf details{width:100%}
.secretf input[type=password]{width:100%;margin:.4rem 0}
pre.jsonp{white-space:pre-wrap;word-break:break-word;margin:0;font-size:.82rem;background:#f6f8fb;padding:.5rem;border-radius:6px}
tr.hl td{background:#fff8e1}
.mlogo{margin:.2rem 0 1rem}
.mlogo-img{max-width:220px;max-height:90px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:10px;padding:.5rem}
.sgroups{display:flex;flex-direction:column;gap:.7rem}
.sgroup{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.sgroup>summary{list-style:none;display:flex;align-items:center;gap:.8rem;padding:.7rem 1rem;cursor:pointer;flex-wrap:wrap}
.sgroup>summary::-webkit-details-marker{display:none}
.sgroup>summary:hover{background:#f6f8fb}
.sgroup .chev{display:inline-block;transition:transform .15s;color:var(--navy);font-size:1.1rem;width:1rem}
.sgroup[open] .chev{transform:rotate(90deg)}
.sgroup .sgname{font-weight:700;color:var(--navy);font-size:1.05rem;min-width:12rem}
.sgroup .sgname a{color:inherit;text-decoration:none}
.sgroup .sgname a:hover{text-decoration:underline}
.sgroup .sgcount{color:var(--muted);margin-left:auto}
.sgroup.orphan .sgname{color:var(--muted)}
.sgbody{padding:0 1rem 1rem;border-top:1px solid var(--line)}
.sgbody table.subt{width:100%;margin-top:.6rem}
.sgbody .dl{display:inline-block;margin-top:.6rem}
.sempty{margin:.8rem 0 0}
.tile .ic .thumb{width:44px;height:44px}
.stype{display:inline-block;padding:.1rem .55rem;border-radius:999px;font-size:.78rem;font-weight:700;letter-spacing:.02em}
.stype.dropship{background:#e8eefb;color:var(--navy)}
.stype.transit{background:#fdf3d8;color:#8a6510}
/* 17/11/2026 (Julien t3298u) : icônes Transit (entrepôt) et Dropship (camion) dans les pastilles */
svg.stico{width:1.05em;height:1.05em;display:inline-block;vertical-align:-.18em;margin-right:.28em;flex:none}
.form h3.subh{margin:.4rem 0 0;font-size:.82rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted,#6b7280)}
.itag{display:inline-block;padding:.1rem .55rem;border-radius:999px;font-size:.75rem;font-weight:700;margin-right:.25rem;white-space:nowrap}
.itag.api{background:#e6f4ea;color:#1e6b35}
.itag.stock{background:#efe8fb;color:#5b3a9a}
.radios{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;align-items:center}
.radios .lbl{font-weight:600;width:100%}

/* 2026-10-23 – Catalogue fournisseur / SFTP : barres de liens en boutons, liens de texte stylés */
.btn.sm{padding:.5rem 1.05rem;font-size:.9rem}
.btn:disabled,.btn[disabled]{opacity:.45;cursor:not-allowed}
.btn:disabled:hover{background:var(--navy);color:#fff}
.btn.ghost:disabled:hover{background:#fff;color:var(--navy)}
.linkbar{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;margin:0 0 1.25rem}
.sec .linkbar:last-child{margin-bottom:0}
.notice .btn,.alert .btn{margin-left:.4rem}
a.small{text-decoration:none;display:inline-block}
.sec h2 a{color:var(--navy);text-decoration:none}.sec h2 a:hover{color:var(--gold)}
.sec p a:not(.btn):not(.small),.hint a:not(.btn):not(.small),.notice a:not(.btn):not(.small),.alert a:not(.btn):not(.small),.sec li a:not(.btn){color:var(--navy);font-weight:600}

/* 2026-10-23 – résumé lecture seule de la connexion SFTP */
dl.sftpsum{display:grid;gap:.35rem;margin:.6rem 0 .9rem}
dl.sftpsum div{display:flex;justify-content:space-between;gap:.6rem;align-items:baseline;flex-wrap:wrap}
dl.sftpsum dt{color:var(--muted);font-size:.85rem}
dl.sftpsum dd{margin:0;font-size:.88rem;text-align:right}

/* 2026-10-23 – logos du Récapitulatif Catalogue fournisseur */
.cfname{display:inline-flex;align-items:center;gap:.5rem}
.cfname .cflogo{height:22px;width:auto;max-width:88px;object-fit:contain;flex:none}
table.rows .cfname .cflogo{height:18px;max-width:70px}
table.rows .cfname{white-space:nowrap}

/* Liste des produits : bouton Exporter en CSV */
.exportbar{display:flex;justify-content:flex-end;align-items:center;gap:.75rem;margin:0 0 .6rem}

/* Boutons dans les tableaux : texte visible (table.rows td a / .rtab td a imposaient la couleur des liens) */
table.rows td a.btn,.rtab td a.btn{color:#fff;text-decoration:none}
table.rows td a.btn:hover,.rtab td a.btn:hover{color:var(--navy-d)}
table.rows td a.btn.ghost,.rtab td a.btn.ghost{color:var(--navy)}
table.rows td a.btn.danger:hover{color:#fff}
/* Récapitulatif Catalogue fournisseur : nom + logo cliquables */
a.cflink{color:inherit;text-decoration:none}
a.cflink:hover,tr[data-href]:hover a.cflink{color:var(--gold)}
h2 a.cflink:hover{text-decoration:underline}
/* Test de connexion SFTP : section pleine largeur, tableau sans défilement horizontal */
.sftpres .notice,.sftpres .alert{overflow-wrap:anywhere}
table.sftplist{table-layout:fixed;width:100%}
table.sftplist col.c-size{width:7.5em}table.sftplist col.c-date{width:11em}table.sftplist col.c-pick{width:8em}
table.rows.sftplist td{white-space:normal}
table.sftplist td.fname{overflow-wrap:anywhere;word-break:break-word}
table.sftplist td.num{white-space:nowrap}
@media (max-width:640px){table.sftplist col.c-size{width:5.5em}table.sftplist col.c-date{width:7em}table.sftplist col.c-pick{width:5.5em}}
table.sftplist td:nth-child(3){white-space:nowrap}

/* 23/10/2026 — Espacement vertical homogène entre les blocs (cartes, sections, panneaux, grilles de compteurs,
   tableaux) des pages du Catalogue : chaque bloc de premier niveau est séparé de ce qui le précède et de ce qui le suit
   d'au moins 18 px (les marges existantes plus grandes sont conservées : marges fusionnées). Les notes .hint restent
   collées au bloc qu'elles commentent. Spécificité nulle (:where) : toute règle propre à une page reste prioritaire.
   Sauvegarde de l'ancienne feuille : /root/bak-cat/20261023-231852-espacement-cartes/. */
:root{--gap-v:1.125rem}
:where(.cat-body, .cat-body > form) > :where(:not(style,script,link,template,input)) + :where(.sec,section,.panel,.rsec,details,.tiles,.kpis,.tablewrap,.cards,.split,.dangerzone,.panel-side),
:where(.cat-body, .cat-body > form) > :where(.sec,section,.panel,.rsec,details,.tiles,.kpis,.tablewrap,.cards,.split,.dangerzone,.panel-side) + :where(:not(style,script,link,template,input,.hint,small)){margin-top:var(--gap-v)}
/* Ligne « ↻ Recalculer maintenant » : séparée du bloc suivant */
:where(.cat-body) > p.hint:has(a[href*="refresh=1"]){margin-bottom:calc(var(--gap-v) + .35rem)}
.tag.err{background:#fee2e2;color:#991b1b}.tag.wait{background:#fef3c7;color:#92400e}.tag.z{color:#9ca3af} /* 25/10/2026 : rouge = erreur, jaune = en cours */

/* 26/10/2026 (Julien) : Indisponibles en rouge clair bien visible, distinct des Erreurs (rouge franc) ; à 0 la cellule reste grise (.z). */
.cell-indispo,td.cell-indispo,.mj-band>div.cell-indispo,.tag.cell-indispo{background:#fff1f1!important;color:#b42318!important;font-weight:600}
.mj-band>div.cell-indispo b{color:#b42318}

/* 26/10/2026 (Julien) : lignes bien distinctes dans les tableaux fournisseurs / marketplaces (classe commune rows-z) */
/* 06/11/2026 (Julien t2129) : gris #f3f5f8 ; cases colorées (g/y/r/indispo) non écrasées */
/* 10/11/2026 (Julien t2506u) : table.mj.rows-z (#mjs Disponibilités fournisseurs, #mjt marketplaces) exclus du :nth-child — les lignes cachées (détail, sous-fournisseurs) décalaient l'alternance. Zébrage par classe .mj-zb. */
table.rows-z>tbody>tr:not(.cf-det)>td{border-bottom:1px solid #d9e0ea;padding-top:.7rem;padding-bottom:.7rem}
table.rows-z:not(.cfsum):not(.mj)>tbody>tr:nth-child(even)>td:not(.g):not(.y):not(.r):not(.cell-indispo):not(.c-g):not(.c-y):not(.c-r):not(.mj-nostock),
table.cfsum>tbody>tr.cf-row:nth-of-type(4n+3)>td:not(.g):not(.y):not(.r):not(.c-g):not(.c-y):not(.c-r){background-color:#f3f5f8}
table.rows-z>tbody>tr:hover>td:not(.g):not(.y):not(.r):not(.cell-indispo):not(.c-g):not(.c-y):not(.c-r):not(.mj-nostock){background-color:#e9effa}
table.rows-z>tbody>tr>td img{height:26px!important;max-width:84px!important;width:auto!important;object-fit:contain;vertical-align:middle;margin-right:.45em}
table.rows-z>tbody>tr>td:first-child{font-weight:600;color:var(--navy,#1d2b4f)}

/* 27/10/2026 (Julien) : tableau des sous-fournisseurs compact, tient dans sa carte à 1366 px ; aperçus de fichier fournisseur compacts */
.sgbody table.subt{table-layout:auto;font-size:.75rem;color:#374151}
.sgbody table.subt th,.sgbody table.subt td{padding:.35rem .45rem}
.sgbody table.subt td:nth-child(3){max-width:11rem}
.sgbody table.subt td:nth-child(6) a{display:inline-block;max-width:9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
.sgbody table.subt .fpc{flex-wrap:nowrap;white-space:nowrap;gap:.2rem}
.sgbody table.subt .fpc>span{font-size:.68rem;padding:.05rem .3rem}
.sgbody table.subt .slogo,.sgbody table.subt .thumb{transform:scale(.85)}
button.icob{border:1px solid #d9e0ea;background:#fff;border-radius:8px;padding:.15rem .4rem;font-size:.8rem;cursor:pointer;line-height:1.2}
button.icob:hover{background:#f1f5f9}
table.fcprev{font-size:.7rem;color:#374151;table-layout:fixed;width:100%}
table.fcprev th,table.fcprev td{padding:.25rem .3rem;white-space:normal;overflow-wrap:anywhere;word-break:break-word;vertical-align:top}
/* 27/10/2026 : même tableau compact dans la fiche fournisseur principal (carte étroite) */
table.subc{font-size:.72rem;color:#374151;width:100%}
table.subc th,table.subc td{padding:.3rem .35rem}
table.subc td:nth-child(1),table.subc th:nth-child(1),table.subc td:nth-child(6),table.subc th:nth-child(6){display:none}
table.subc .fpc{display:flex;flex-direction:column;gap:.1rem;white-space:nowrap}
table.subc .fpc>span{font-size:.66rem;padding:.02rem .3rem}

/* 29/10/2026 : boutons et icônes lisibles (icônes SVG de la couleur du texte ; « Supprimer » en contour rouge) */
.btn .ico,.ibtn .ico,a.rdel .ico{width:1.05em;height:1.05em;vertical-align:-.17em;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.btn .ico{margin-right:.3em}.btn.ico-only .ico,.ibtn .ico{margin-right:0}
.btn.danger,.btn.danger:visited{color:#fff}
.btn.ghost.danger,.btn.danger.ghost,a.rdel{background:#fff;color:#b42318;border:2px solid #b42318}
.btn.ghost.danger:hover,.btn.danger.ghost:hover,a.rdel:hover{background:#b42318;color:#fff}
.btn.ico-only{padding-left:.5rem;padding-right:.5rem}
.btn.act{padding:.3rem .55rem;font-size:12px;line-height:1.2;white-space:nowrap}

/* 01/11/2026 (Julien t1493) : liens des en-têtes repliables (ex. « 592 091 temporaires · 0 permanents ») au style de l'app, plus de bleu/violet du navigateur */
.rsec>summary small a,.rsec>summary small a:visited{color:var(--navy);font-weight:600;text-decoration:none}
.rsec>summary small a:hover{color:var(--gold);text-decoration:underline}

/* ========== 06/11/2026 (Julien t2129u) : une ligne sur 2 en gris dans TOUS les tableaux ==========
   Gris clair #f3f5f8 ; survol #e9effa. Cases colorées (pastilles / g·y·r / indispo) gardent la priorité.
   Lignes de détail / état / sous-lignes exclues du comptage (of :not(...)) pour un zébrage stable.
   #mjs / table.mj.rows-z : zébrage par classe .mj-zb uniquement (pas de :nth-child). .cfsum garde son motif 4n+3. */
table.mj.rows-z > tbody > tr.mj-zb:not(.f-notoday):not(.f-old12) > td:not(.g):not(.y):not(.r):not(.cell-indispo):not(.c-g):not(.c-y):not(.c-r):not(.mj-nostock) {
  background-color: #f3f6fa;
}

table.rows:not(#mjs):not(.cfsum) > tbody > tr:nth-child(even of :not(.cf-det):not(.al-cd):not(.al-etr):not(.mj-det):not(.mj-sub):not([hidden])) > td:not(.g):not(.y):not(.r):not(.cell-indispo):not(.c-g):not(.c-y):not(.c-r):not(.mj-nostock),
table.rct > tbody > tr:nth-child(even of :not(.sub):not(.tot):not([hidden])) > td,
table.al-h > tbody > tr:nth-child(even) > td,
table.rtab > tbody > tr:nth-child(even of :not(.on):not([hidden])):not(.on) > td,
table.hist-t > tbody > tr:nth-child(even) > td,
table.gpv-st > tbody > tr:nth-child(even of :not(.tot):not([hidden])) > td {
  background-color: #f3f5f8;
}
table.rows:not(#mjs):not(.cfsum) > tbody > tr:not(.cf-det):not(.al-cd):not(.al-etr):not(.mj-det):not(.mj-sub):not([hidden]):hover > td:not(.g):not(.y):not(.r):not(.cell-indispo):not(.c-g):not(.c-y):not(.c-r):not(.mj-nostock),
table.rct > tbody > tr:not(.tot):not([hidden]):hover > td,
table.al-h > tbody > tr:hover > td,
table.rtab > tbody > tr:not(.on):not([hidden]):hover > td,
table.hist-t > tbody > tr:hover > td,
table.gpv-st > tbody > tr:not(.tot):not([hidden]):hover > td {
  background-color: #e9effa;
}
/* Lignes de détail / état : fond neutre distinct, hors zébrage */
table.rows > tbody > tr.cf-det > td,
table.rows > tbody > tr.al-cd > td,
table.rows > tbody > tr.mj-det > td {
  background-color: #f7f9fc;
}

/* ==========================================================================================
   09/11/2026 (Julien t2461u) : administration utilisable sur téléphone (≈ 360–430 px) et tablette.
   Bloc COMMUN et réutilisable (futur serveur de commandes) : tout est dans les media queries, le bureau (> 900 px) est inchangé.
   - ≤ 900 px : menu de gauche = tiroir (bouton ☰ dans la barre du haut, fond assombri, fermeture au clic sur un lien),
                grilles empilées, tableaux dans un conteneur à défilement horizontal, popovers en bandeau bas.
   - ≤ 600 px : paddings réduits, champs ≥ 16 px (pas de zoom iOS), cibles tactiles ≥ 40 px.
   Le comportement dynamique (tiroir, enveloppes de tableaux, grilles, filet anti-débordement) est dans /assets/mobile.js.
   Sauvegarde de l'ancienne feuille : /root/bak-cat/20261109-mobile-HHMMSS/ */
.nav-burger,.nav-close,.nav-backdrop,.side-acct{display:none}
@media (max-width:900px){
  html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
  body{padding:1.5rem .75rem 0}
  body:has(.topbar){padding-top:calc(var(--topbar-h,3.8rem) + 1rem)}   /* --topbar-h mesurée par mobile.js (la barre peut passer sur 2 lignes sans menu tiroir) */
  header{margin-bottom:1.5rem}
  footer{padding:2rem 0 1.25rem;text-align:center}

  /* --- Barre du haut : une seule ligne, défilante si besoin --- */
  .topbar{flex-wrap:nowrap;gap:.35rem .9rem;padding:.4rem .75rem;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch;font-size:.9rem}
  .topbar::-webkit-scrollbar{display:none}
  body:not(.js-nav) .topbar{flex-wrap:wrap;overflow:visible;white-space:normal;row-gap:0}
  body:not(.js-nav) .topbar .brand{margin-right:auto}
  .topbar>*{flex:none}
  .topbar .brand img{height:34px}
  .topbar .brand{min-height:40px}
  .topbar .who{display:none}
  .topbar a:not(.brand),.topbar .link{display:inline-flex;align-items:center;min-height:40px;padding:0 .2rem}
  .topbar .ro-pill{font-size:.75rem}
  body.js-nav .topbar>a:not(.brand),body.js-nav .topbar>form.inline{display:none}
  body.js-nav .nav-burger{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0 .1rem 0 -.3rem;padding:0;border:1px solid var(--line);border-radius:.75rem;background:#fff;color:var(--navy);font-size:1.45rem;line-height:1;cursor:pointer}
  body.js-nav .nav-burger:active{background:var(--gold-l)}

  /* --- Menu de gauche = tiroir --- */
  body.js-nav .cat-layout{grid-template-columns:minmax(0,1fr);gap:0}
  body.js-nav .side-toggle{display:none}
  body.js-nav .side{display:block;position:fixed;top:0;left:0;bottom:0;width:min(88vw,330px);max-width:none;margin:0;z-index:70;border-radius:0 1.25rem 1.25rem 0;border-left:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:.6rem .6rem 2.5rem;transform:translateX(-105%);visibility:hidden;transition:transform .22s ease,visibility 0s linear .22s;box-shadow:none}
  body.nav-open .side{transform:none;visibility:visible;transition:transform .22s ease;box-shadow:0 0 40px rgba(15,31,58,.35)}
  body.js-nav .nav-backdrop{display:block;position:fixed;inset:0;z-index:65;background:rgba(15,31,58,.5);opacity:0;visibility:hidden;transition:opacity .2s ease,visibility 0s linear .2s}
  body.nav-open .nav-backdrop{opacity:1;visibility:visible;transition:opacity .2s ease}
  body.nav-open{overflow:hidden}
  body.js-nav .nav-close{display:flex;align-items:center;justify-content:center;position:static;width:40px;height:40px;margin:0 0 .25rem auto;border:1px solid var(--line);border-radius:.7rem;background:#fff;color:var(--navy);font-size:1.2rem;cursor:pointer;padding:0}   /* dans le flux, à droite, au-dessus du titre : ne peut plus le recouvrir */
  .side a,.side summary{min-height:44px}
  .side .lvl1 a,.side .lvl2 a{min-height:40px}
  body.js-nav .side-acct{display:block;margin-top:1rem;padding-top:.6rem;border-top:1px solid var(--line)}
  .side-acct .side-title{padding-bottom:.35rem}
  .side-acct .who{display:block;padding:0 .75rem .4rem;color:var(--muted);font-size:.85rem;overflow-wrap:anywhere}
  .side-acct form.inline{display:block}
  .side-acct button.link{display:flex;width:100%;align-items:center;min-height:44px;padding:.6rem .75rem;border-radius:.7rem;color:var(--navy);font:inherit;font-weight:600;font-size:.95rem;text-align:left;background:none;border:0;cursor:pointer}

  /* --- Zone centrale pleine largeur --- */
  .cat-head{margin-bottom:1rem;padding-bottom:.75rem}
  .cat-head h1{font-size:1.35rem}
  .cat-head .crumb{min-height:40px;padding:.4rem 0}
  .cat-head p,.cat-head .cat-sub,.cat-toolbar .cat-help{max-width:none}
  .cat-toolbar .cat-help{min-width:0;flex:1 1 100%}
  .sec,.panel-side{padding:1rem}
  .panel{max-width:none;padding:1.25rem}
  .box{max-width:none;padding:1.5rem 1.25rem}
  .sec,.panel,.notice,.alert,.hint,.secret{overflow-wrap:break-word}
  .sec dl{grid-template-columns:minmax(0,1fr)}
  .cards{grid-template-columns:minmax(0,1fr);gap:1rem}
  .card{padding:1.25rem}
  .tiles{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))}
  .kpis{grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr))}
  .grid4{grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr))}
  .rmgrid{grid-template-columns:minmax(0,1fr)}
  .sgroup .sgname,.stcell{min-width:0}
  .tabs{width:100%;border-radius:1.1rem}
  .tabs a{flex:1 1 auto;justify-content:center;min-height:40px;padding:.5rem .8rem}
  .seg{max-width:100%;overflow-x:auto}
  .seg a{display:inline-flex;align-items:center;min-height:40px}
  .pager{flex-wrap:wrap;gap:.5rem}
  .filters,.linkbar,.actionsbar,.exportbar,.cat-toolbar{gap:.5rem}
  .exportbar{flex-wrap:wrap;justify-content:flex-start}
  .filters input[type=search],.filters input[name=label]{min-width:0;flex:1 1 100%}
  .filters select{flex:1 1 40%;min-width:0}
  .filters .count{margin-left:0;flex:1 1 100%}
  .form.row label{min-width:0;flex:1 1 100%}
  .cat pre,.panel pre,.sec pre{max-width:100%;overflow-x:auto}

  /* --- Tableaux : conteneur à défilement horizontal (créé par mobile.js autour des tableaux sans conteneur) --- */
  .tbl-scroll{overflow-x:auto;overflow-y:hidden;max-width:100%;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  .tablewrap,.rtable{-webkit-overflow-scrolling:touch}
  .m-fixed{min-width:max(100%,min(calc(var(--mcols,6)*5.2rem),80rem))}
  th,td{padding:.55rem .65rem}
  .m-xs{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}

  /* --- Grilles de pages : empilées (classes posées par mobile.js d'après la largeur réelle des colonnes) --- */
  .m-g1{grid-template-columns:minmax(0,1fr)!important}
  .m-g1>*{grid-column:auto!important}
  .m-g2{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .m-g2>*{grid-column:auto!important}

  /* --- Formulaires, boutons : cibles tactiles et pas de zoom iOS --- */
  input,select,textarea{font-size:16px!important;max-width:100%}
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=file]),select{min-height:40px}
  textarea{min-height:5rem}
  .form input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.form select,.form textarea,.panel .form input:not([type=checkbox]):not([type=radio]),.imgedit input[type=file]{width:100%}
  .btn,.back,.cat-back,a.small,button.small,.linkbar a,.actionsbar .btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px}
  .btn.sm{min-height:40px}
  table .btn,table .small,table button.icob,table a.small,table .btn.act{min-height:36px}
  .rcog{width:2.2rem;height:2.2rem}
  summary{min-height:36px}

  /* --- Popovers / menus déroulants / fenêtres : tiennent dans l'écran (bandeau en bas, jamais rognés par un tableau défilant) --- */
  .al-send form,.av-c form:not(.av-sd),.env-det-pop,.mc-pop{position:fixed!important;left:.5rem!important;right:.5rem!important;top:auto!important;bottom:.5rem!important;width:auto!important;min-width:0!important;max-width:none!important;max-height:70vh;overflow:auto;z-index:60;white-space:normal}
  .mpdd ul{max-width:calc(100vw - 1.5rem)}
  .mpdd summary{min-width:0}
  dialog{max-width:calc(100vw - 1.5rem)!important;max-height:calc(100vh - 1.5rem);overflow:auto}
  .mupb{flex-wrap:wrap}

  /* --- Fiche produit : barre « Mise à jour » (fixe en bas sur bureau) = bloc dans le flux sur téléphone ; onglets de la fiche à la ligne --- */
  .mupb{position:static!important;left:auto;right:auto;bottom:auto;z-index:auto;flex-wrap:wrap;margin:1rem 0;border:1px solid var(--line,#e3e7ef);border-radius:.8rem;box-shadow:none!important;padding:.6rem .75rem!important;gap:.4rem}
  .mupb form{margin-left:0}
  body:has(.mupb){padding-bottom:1rem!important}
  .fnav{position:static!important;overflow:visible!important}
  .fnav .fg{flex-wrap:wrap}
}
@media (max-width:600px){
  body{padding-left:.5rem;padding-right:.5rem}
  .topbar .brand span{display:none}
  .cat-head h1{font-size:1.25rem}
  .sec,.panel-side,.panel{border-radius:1rem}
  .sec{padding:.9rem}
  .rsec{padding:.3rem .5rem .6rem}
  .tile{padding:1rem}
  .tile b,.kpi b{font-size:1.3rem}
  .btn,.back{padding:.7rem 1.1rem}
  .tabs a{font-size:.9rem;padding:.5rem .65rem}
  th,td{padding:.5rem .55rem}
  .pager{justify-content:center;text-align:center}
  dl.sftpsum dd{text-align:left}
}

/* 17/11/2026 (Julien t3319u–t3327u, t3330u) : sélecteur marketplace / fournisseur (même composant que Produits par marketplace) */
/* 20/11/2026 (Julien t3745u) : pastilles compactes (logo 16 px de haut, largeur auto max 48 px, nom 11 px) pour tenir ~13 marketplaces sur 1–2 lignes à 1280 px. */
.hist-sel{display:flex;flex-wrap:wrap;gap:.22rem;align-items:center;margin:0 0 .85rem;font-size:11px;color:#4b5563}
.hist-sel-l{font-weight:600;font-size:11px}
.hist-sel a,.hist-sel button.hist-sel-chip{padding:.12rem .4rem;border:1px solid #e5e7eb;border-radius:999px;background:#fff;text-decoration:none;color:#4b5563;font:inherit;font-size:11px;cursor:pointer;display:inline-flex;align-items:center;gap:.22em;line-height:1.2;white-space:nowrap;height:auto}
.hist-sel a.on,.hist-sel button.hist-sel-chip.on{border:2px solid #e87511;background:#ffe8d1;color:#9a3412;font-weight:700;padding:calc(.12rem - 1px) calc(.4rem - 1px)}
.hist-sel a:hover,.hist-sel button.hist-sel-chip:hover{border-color:#e87511}
.hist-sel img{height:16px;width:auto;max-width:48px;object-fit:contain;vertical-align:middle;background:#fff}
.hist-sel .mpb-logo img{height:auto!important;width:auto!important;max-width:100%!important;max-height:100%!important;margin:0!important}

/* 18/11/2026 (Julien) : logo mkp en boîte fixe + nom 13 px semi-gras, alignés partout via mp_badge. */
.mpb{display:inline-flex;align-items:center;gap:.4em;vertical-align:middle;white-space:nowrap;line-height:1.2;min-width:0}
.mpb-logo{flex:none;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:90px;height:28px;background:#fff;border:1px solid #e5e7eb;border-radius:4px;overflow:hidden}
.mpb-xs .mpb-logo{width:72px;height:22px}
.mpb-sm .mpb-logo,.mpb-md .mpb-logo{width:90px;height:28px}
.mpb-lg .mpb-logo{width:120px;height:36px}
.mpb-logo img,.mp-logo img{width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;margin:0!important;vertical-align:middle;background:#fff;border-radius:0}
.mpb-ini{font-size:10px;font-weight:700;color:#64748b;letter-spacing:.02em;line-height:1}
.mpb-xs .mpb-ini{font-size:9px}
.mpb-n{font-size:13px!important;font-weight:600!important;line-height:1.2;min-width:0}
/* 21/11/2026 (Julien t3910u / t3911u) : pastille état de projet (couleurs saturées, distinctes de Stratégie en cours #fef3c7). */
.mp-proj{display:inline-flex;align-items:center;justify-content:center;text-align:center;font-size:12px;padding:.1rem .45rem;border-radius:999px;font-weight:700;white-space:nowrap;line-height:1.25;letter-spacing:.01em;vertical-align:middle;box-sizing:border-box}
.mpb-xs .mp-proj,.mp-proj-xs{font-size:10px;padding:.05rem .32rem}
.mp-proj-edit{display:inline-flex;align-items:center;gap:.4rem;flex-wrap:wrap;margin:0;vertical-align:middle}
.mp-proj-edit label{font-size:13px;font-weight:600;color:#374151}
.mp-proj-edit select{font-size:13px;padding:.15rem .4rem;border-radius:8px;border:1px solid #cbd5e1}
/* 21/11/2026 14:31 (Julien) : liste Marketplaces — nom | drapeau+#id (largeur fixe 5,5 em, alignée à gauche, suffisante pour #99) | pastille projet | pastille stratégie, même x sur toutes les lignes. */
.mpb-with-proj{display:inline-flex;align-items:center;gap:.4em;vertical-align:middle;white-space:nowrap;min-width:0;overflow:visible}
.mpb-with-proj .mp-id{display:flex;align-items:center;gap:.35rem;flex:0 0 auto;min-width:0;width:auto;max-width:none;overflow:visible}
.mpb-with-proj .mpb-n{flex:0 0 13.5rem;min-width:13.5rem;max-width:13.5rem;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis}
.mpb-with-proj .mp-id .hint,.mpb-with-proj .mp-id small{flex:0 0 5.5em;min-width:5.5em;width:5.5em;max-width:5.5em;box-sizing:border-box;white-space:nowrap;text-align:left;overflow:visible}
.mpb-with-proj .mp-proj-col{display:inline-flex;align-items:center;gap:.3em;flex:none;flex-shrink:0}
.mpb-with-proj .mp-proj{flex:none;flex-shrink:0;min-width:7.2em;justify-content:center;text-align:center;font-size:11px;padding:.08rem .38rem;position:relative;z-index:0}
.mpb-with-proj .mkal-strat-pill{flex:none;flex-shrink:0;min-width:10.4em;justify-content:center;text-align:center}
/* 20/11/2026 (Julien t3745u) : zone logo étroite dans les sélecteurs seulement (les tableaux gardent 90×28 / 13 px). */
.hist-sel .mpb{gap:.2em}
.hist-sel .mpb-logo,
.hist-sel .mpb-xs .mpb-logo,
.hist-sel .mpb-sm .mpb-logo,
.hist-sel .mpb-md .mpb-logo,
.hist-sel .mpb-lg .mpb-logo{width:auto;min-width:16px;max-width:48px;height:16px;padding:0 3px;box-sizing:border-box;border-radius:2px}
.hist-sel .mpb-n{font-size:11px!important;font-weight:600!important}
.hist-sel .mpb-ini{font-size:8px}
table.rows-z>tbody>tr>td .mpb-logo img,
table.rows-z>tbody>tr>td .mp-logo img{height:auto!important;max-width:100%!important;width:auto!important;margin:0!important}
.hist-sel-q{max-width:220px;min-width:10rem;padding:.25rem .65rem;border:1px solid #e5e7eb;border-radius:999px;font-size:12px}
table#mjs tr.fourn-hide,table.rows tr.mkp-hide,[data-mid].mkp-hide{display:none!important}
/* Pied « Lecture seule · calculé en X ms » / « Page chargée en X ms » : plus petit, partout */
.mj-foot,p.hint.mj-foot{font-size:11px!important;color:#6b7280!important;line-height:1.3;font-weight:400}

/* 17/11/2026 (Julien t3350u) : en mode clair, en-tête et menu latéral foncés (texte clair, item actif bien visible). Le contenu reste clair. Sombre inchangé. */
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .topbar{background:#152a4d;border-bottom-color:var(--gold);box-shadow:0 2px 12px rgba(0,0,0,.25)}
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .topbar a,
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .topbar .link,
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .topbar .brand,
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .topbar .brand span{color:#e8eef8}
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .topbar a:hover,
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .topbar .link:hover{color:var(--gold)}
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .topbar .who{color:#c5d0ee}
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .mode-sw{background:#1f3a68;border-color:#2c4a7a;color:#e8eef8}
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .mode-sw:hover{border-color:var(--gold);color:var(--gold)}
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .topbar .theme-sw{color:var(--gold);font-weight:700}
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .side{background:#152a4d;border-color:transparent;color:#e8eef8;scrollbar-color:#ffffff44 transparent}
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .side-title{color:var(--gold)}
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .side a,
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .side summary{color:#e8eef8}
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .side a:hover,
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .side summary:hover{background:#1f3a68;color:#fff}
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .side a.on{background:var(--gold);color:#152a4d}
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .side summary.parent-on,
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .side a.parent-on{background:#1f3a68;color:#f6ecd0}
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .side .chev,
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .side .ic.has-svg{color:#c5d0ee}
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .side a.on .ic.has-svg,
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .side a.on .chev{color:#152a4d}
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .side ul.lvl1,
body:not(.theme-soft):not(.theme-bsinx):not(.theme-dark) .side ul.lvl2{border-left-color:#2c4a7a}

/* 18/11/2026 (Julien t3503u) : drapeaux pays SVG (16×12) et pastille logo + drapeau */
svg.cflag{display:inline-block;width:16px;height:12px;vertical-align:-1px;border-radius:1px;box-shadow:0 0 0 1px rgba(15,23,42,.18);flex:none;overflow:hidden;background:#fff}
.sflag{display:inline-flex;align-items:center;gap:.35em;vertical-align:middle;line-height:1.2;max-width:100%}
.sflag-col{flex-direction:column;align-items:flex-start;gap:.1em}
.cfname .cflag,.sflag .cflag{margin-right:.05em}
.tile .ic .cflag{width:28px;height:21px}
