/* ============================================================
   STYLE A · CLINIQUE — feuille de référence pour les développeurs
   Outil de pilotage du plan d'amélioration · CH de Douai
   ============================================================ */
:root{
  /* Couleurs du logo, affermies */
  --rouge:#DA1F1B; --rouge-txt:#B3171A; --rouge-50:#FDECEA;
  --orange:#EC7B0C; --orange-txt:#9A4A06; --orange-50:#FEF1E2;
  --vert:#96CC12; --vert-txt:#3F6A06; --vert-50:#F0F8DC;
  --bleu:#1FB7CC; --bleu-txt:#0B6E7C; --bleu-50:#E3F5F8;
  --ardoise:#3A4847; --ardoise-900:#263130;
  /* Neutres */
  --bg:#F3F5F5; --surface:#FFFFFF; --surface-2:#FAFBFB; --surface-3:#F1F4F3;
  --line:#E3E8E7; --line-strong:#CDD5D4;
  --text:#1E2827; --text-2:#3C4A49; --text-3:#5E6B6A; --text-4:#8A9594;
  /* Action */
  --primary:#0B6E7C; --primary-hover:#095E6A; --primary-press:#074F59; --primary-50:#E3F5F8;
  --focus:0 0 0 2px #fff,0 0 0 5px rgba(31,183,204,.45);
  /* Rayons */
  --r-xs:4px; --r-sm:6px; --r-md:8px; --r-lg:12px; --r-xl:16px;
  /* Ombres */
  --e1:0 0 0 1px rgba(30,40,39,.07),0 1px 2px rgba(30,40,39,.06);
  --e2:0 0 0 1px rgba(30,40,39,.06),0 1px 2px rgba(30,40,39,.05),0 4px 12px -2px rgba(30,40,39,.07);
  --e3:0 0 0 1px rgba(30,40,39,.08),0 4px 8px -2px rgba(30,40,39,.08),0 12px 28px -6px rgba(30,40,39,.16);
  --e4:0 0 0 1px rgba(30,40,39,.08),0 8px 16px -4px rgba(30,40,39,.10),0 28px 64px -12px rgba(30,40,39,.28);
  --inset:inset 0 1px 2px rgba(30,40,39,.06);
}
*{box-sizing:border-box}
.app{font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:14px;line-height:20px;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;min-height:100%;font-feature-settings:"tnum" 0}
.num,.kpi-v,td.num,th.num{font-variant-numeric:tabular-nums;text-align:right}
.mono{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:12px}
p{margin:0}
h1,h2,h3,h4{margin:0}
.t-display{font-size:36px;line-height:40px;font-weight:600;letter-spacing:-.02em}
.t1{font-size:26px;line-height:32px;font-weight:600;letter-spacing:-.012em}
.t2{font-size:18px;line-height:26px;font-weight:600;letter-spacing:-.005em}
.t3{font-size:15px;line-height:22px;font-weight:600}
.cap{font-size:11.5px;line-height:16px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--text-3)}
.muted{color:var(--text-3)}
.small{font-size:13px;line-height:18px}
.xs{font-size:12px;line-height:16px}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}

/* ---------- Coque applicative ---------- */
.topbar{height:60px;background:var(--surface);box-shadow:0 1px 0 var(--line);display:flex;align-items:center;gap:28px;padding:0 24px;position:relative;z-index:2}
.brand{display:flex;align-items:center;gap:12px;flex:none}
.brand img{height:34px;width:auto;display:block}
.brand-sep{width:1px;height:26px;background:var(--line)}
.brand-name{font-weight:600;font-size:14px;line-height:16px}
.brand-name span{display:block;font-weight:400;font-size:12px;color:var(--text-3)}
.nav{display:flex;align-items:stretch;gap:2px;height:60px;flex:1;min-width:0;overflow-x:auto}
.nav a{display:flex;align-items:center;gap:8px;padding:0 12px;color:var(--text-2);font-weight:500;font-size:13.5px;position:relative;white-space:nowrap}
.nav a:hover{color:var(--text);text-decoration:none;background:var(--surface-2)}
.nav a.is-active{color:var(--text)}
.nav a.is-active::after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:2px;border-radius:2px 2px 0 0;background:var(--primary)}
.nav .count{font-size:11px;line-height:16px;padding:0 6px;border-radius:999px;background:var(--rouge-50);color:var(--rouge-txt);font-weight:600}
.top-tools{display:flex;align-items:center;gap:8px;flex:none}
.search{display:flex;align-items:center;gap:8px;height:36px;width:280px;padding:0 10px;border-radius:var(--r-md);background:var(--surface-3);color:var(--text-3);font-size:13px;box-shadow:inset 0 0 0 1px transparent}
.search kbd{margin-left:auto;font-family:inherit;font-size:11px;padding:1px 6px;border-radius:4px;background:#fff;box-shadow:var(--e1);color:var(--text-3)}
.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:600;color:var(--ardoise-900);background:var(--surface-3);box-shadow:inset 0 0 0 1px var(--line);flex:none}
.avatar.sm{width:24px;height:24px;font-size:10.5px}
.subbar{background:var(--surface);box-shadow:0 1px 0 var(--line);padding:10px 24px;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-3);flex-wrap:wrap}
.crumbs{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.crumbs a{color:var(--text-3)}
.crumbs b{color:var(--text);font-weight:500}
.page{max-width:1360px;margin:0 auto;padding:24px 24px 56px;display:flex;flex-direction:column;gap:20px}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}

/* ---------- Encadrés ---------- */
.card{background:var(--surface);border-radius:var(--r-lg);box-shadow:var(--e2);min-width:0}
.card.flat{box-shadow:var(--e1)}
.card-h{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line);min-height:52px}
.card-h .t3{display:flex;align-items:center;gap:8px}
.card-b{padding:18px}
.card-f{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid var(--line);background:var(--surface-2);border-radius:0 0 var(--r-lg) var(--r-lg)}
.well{background:var(--surface-2);border-radius:var(--r-md);box-shadow:inset 0 0 0 1px var(--line);padding:14px 16px}
.callout{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:var(--r-md);font-size:13px;line-height:19px}
.callout svg{flex:none;margin-top:1px}
.callout.info{background:var(--bleu-50);color:#0A4F59}
.callout.warn{background:var(--orange-50);color:#7A3A04}
.callout.alert{background:var(--rouge-50);color:#8E1215}
.callout.ok{background:var(--vert-50);color:#2F5004}
.callout b{font-weight:600}
.divider{height:1px;background:var(--line);border:0;margin:0}

/* ---------- Boutons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:36px;padding:0 14px;border-radius:var(--r-md);border:0;font:inherit;font-size:13.5px;font-weight:500;cursor:pointer;white-space:nowrap;transition:background .12s,box-shadow .12s,color .12s;text-decoration:none}
.btn:hover{text-decoration:none}
.btn:focus-visible,.btn.is-focus{outline:none;box-shadow:var(--focus)}
.btn-primary{background:var(--primary);color:#fff;box-shadow:0 1px 2px rgba(7,79,89,.25),inset 0 1px 0 rgba(255,255,255,.12)}
.btn-primary:hover,.btn-primary.is-hover{background:var(--primary-hover)}
.btn-primary.is-active{background:var(--primary-press);box-shadow:inset 0 1px 2px rgba(0,0,0,.2)}
.btn-secondary{background:#fff;color:var(--text);box-shadow:0 0 0 1px var(--line-strong),0 1px 2px rgba(30,40,39,.06)}
.btn-secondary:hover,.btn-secondary.is-hover{background:var(--surface-2);box-shadow:0 0 0 1px #B5BFBE,0 1px 2px rgba(30,40,39,.08)}
.btn-secondary.is-active{background:var(--surface-3);box-shadow:0 0 0 1px #B5BFBE,var(--inset)}
.btn-ghost{background:transparent;color:var(--text-2)}
.btn-ghost:hover,.btn-ghost.is-hover{background:var(--surface-3);color:var(--text)}
.btn-danger{background:#fff;color:var(--rouge-txt);box-shadow:0 0 0 1px #F1B9B6,0 1px 2px rgba(30,40,39,.05)}
.btn-danger:hover,.btn-danger.is-hover{background:var(--rouge-50)}
.btn[disabled],.btn.is-disabled{background:var(--surface-3);color:var(--text-4);box-shadow:none;cursor:not-allowed}
.btn-sm{height:30px;padding:0 10px;font-size:13px;border-radius:var(--r-sm);gap:6px}
.btn-lg{height:44px;padding:0 20px;font-size:14.5px}
.btn-icon{width:36px;padding:0}
.btn-sm.btn-icon{width:30px}
.btn-group{display:inline-flex;gap:8px;flex-wrap:wrap;align-items:center}

/* ---------- Champs de saisie ---------- */
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.label{font-size:13px;line-height:18px;font-weight:500;color:var(--text);display:flex;align-items:center;gap:6px}
.label .req{color:var(--rouge-txt)}
.label .opt{color:var(--text-3);font-weight:400}
.hint{font-size:12px;line-height:16px;color:var(--text-3)}
.err-msg{font-size:12px;line-height:16px;color:var(--rouge-txt);display:flex;gap:6px;align-items:center;font-weight:500}
.ok-msg{font-size:12px;line-height:16px;color:var(--vert-txt);display:flex;gap:6px;align-items:center;font-weight:500}
.input{display:flex;align-items:center;gap:8px;height:38px;padding:0 12px;border-radius:var(--r-md);background:#fff;box-shadow:inset 0 0 0 1px var(--line-strong),0 1px 1px rgba(30,40,39,.03);font:inherit;font-size:14px;color:var(--text);border:0;width:100%;min-width:0}
.input input,.input select{all:unset;flex:1;min-width:0;font:inherit;color:inherit}
.input .ph{color:var(--text-4)}
.input .affix{color:var(--text-3);font-size:13px;flex:none}
.input .affix.boxed{margin-right:-12px;align-self:stretch;display:flex;align-items:center;padding:0 12px;background:var(--surface-3);border-radius:0 var(--r-md) var(--r-md) 0;box-shadow:inset 1px 0 0 var(--line-strong)}
.input:hover,.input.is-hover{box-shadow:inset 0 0 0 1px #A9B4B3,0 1px 1px rgba(30,40,39,.04)}
.input.is-focus{box-shadow:inset 0 0 0 1px var(--primary),0 0 0 3px rgba(31,183,204,.28)}
.input.is-error{box-shadow:inset 0 0 0 1px var(--rouge-txt),0 0 0 3px rgba(218,31,27,.14)}
.input.is-valid{box-shadow:inset 0 0 0 1px #8DB34A}
.input.is-disabled{background:var(--surface-3);color:var(--text-4);box-shadow:inset 0 0 0 1px var(--line)}
.input.is-readonly{background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line);color:var(--text-2)}
.input.num-in{justify-content:flex-end;font-variant-numeric:tabular-nums}
.input.num-in .v{flex:1;text-align:right}
.textarea{height:auto;min-height:84px;align-items:flex-start;padding:10px 12px;line-height:20px}
.select .chev{margin-left:auto;color:var(--text-3)}
.counter{font-size:12px;color:var(--text-3);margin-left:auto}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}
.form-grid .span2{grid-column:1/-1}

/* Cases, boutons radio, interrupteurs */
.check{display:flex;align-items:flex-start;gap:10px;min-height:28px;cursor:pointer;font-size:14px}
.box{width:18px;height:18px;border-radius:var(--r-xs);background:#fff;box-shadow:inset 0 0 0 1.5px #A9B4B3;flex:none;display:grid;place-items:center;margin-top:1px}
.box.on{background:var(--primary);box-shadow:none}
.box.mixed{background:var(--primary);box-shadow:none}
.box.dis{background:var(--surface-3);box-shadow:inset 0 0 0 1.5px var(--line)}
.radio-dot{width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 1.5px #A9B4B3;flex:none;margin-top:1px;display:grid;place-items:center}
.radio-dot.on{box-shadow:inset 0 0 0 5.5px var(--primary)}
.switch{width:34px;height:20px;border-radius:999px;background:#C4CCCB;position:relative;flex:none;margin-top:0}
.switch::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25)}
.switch.on{background:var(--primary)}
.switch.on::after{left:16px}
.seg{display:inline-flex;padding:3px;border-radius:var(--r-md);background:var(--surface-3);box-shadow:inset 0 0 0 1px var(--line);gap:2px}
.seg button{all:unset;height:30px;padding:0 12px;border-radius:6px;font-size:13px;font-weight:500;color:var(--text-2);cursor:pointer;display:flex;align-items:center;gap:6px}
.seg button.on{background:#fff;color:var(--text);box-shadow:var(--e1)}
.choice-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.choice{display:flex;gap:12px;padding:14px 16px;border-radius:var(--r-lg);background:#fff;box-shadow:inset 0 0 0 1px var(--line-strong);cursor:pointer}
.choice.on{box-shadow:inset 0 0 0 2px var(--primary);background:#F7FCFD}
.choice b{display:block;font-weight:600;font-size:14px}
.choice p{font-size:13px;color:var(--text-3);margin-top:2px}

/* ---------- Badges et états ---------- */
.badge{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 8px;border-radius:var(--r-sm);font-size:12px;font-weight:600;white-space:nowrap;line-height:1}
.badge .dot{width:6px;height:6px;border-radius:50%;background:currentColor}
.badge.ok{background:var(--vert-50);color:var(--vert-txt)}
.badge.info{background:var(--bleu-50);color:var(--bleu-txt)}
.badge.warn{background:var(--orange-50);color:var(--orange-txt)}
.badge.alert{background:var(--rouge-50);color:var(--rouge-txt)}
.badge.neutral{background:var(--surface-3);color:var(--text-2)}
.badge.outline{background:#fff;box-shadow:inset 0 0 0 1px var(--line-strong);color:var(--text-2)}
.tag{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:999px;font-size:12px;background:var(--surface-3);color:var(--text-2);font-weight:500}
.lock{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--text-3);font-weight:500}

/* ---------- Onglets ---------- */
.tabs{display:flex;gap:4px;box-shadow:inset 0 -1px 0 var(--line);overflow-x:auto}
.tab{all:unset;display:flex;align-items:center;gap:8px;height:42px;padding:0 12px;font-size:13.5px;font-weight:500;color:var(--text-3);cursor:pointer;position:relative;white-space:nowrap}
.tab:hover{color:var(--text)}
.tab.on{color:var(--text)}
.tab.on::after{content:"";position:absolute;left:8px;right:8px;bottom:0;height:2px;border-radius:2px;background:var(--primary)}
.tab .n{font-size:11.5px;padding:1px 6px;border-radius:999px;background:var(--surface-3);color:var(--text-3);font-weight:600}

/* ---------- Accordéons ---------- */
.acc{display:flex;flex-direction:column;border-radius:var(--r-lg);background:#fff;box-shadow:var(--e2);overflow:hidden}
.acc-item+.acc-item{border-top:1px solid var(--line)}
.acc-h{all:unset;box-sizing:border-box;width:100%;display:flex;align-items:center;gap:12px;min-height:52px;padding:10px 16px;cursor:pointer}
.acc-h:hover{background:var(--surface-2)}
.acc-h:focus-visible{box-shadow:inset 0 0 0 2px rgba(31,183,204,.6)}
.acc-chev{width:20px;height:20px;display:grid;place-items:center;color:var(--text-3);transition:transform .16s;flex:none}
.acc-item.open .acc-chev{transform:rotate(90deg)}
.acc-title{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.acc-title b{font-weight:600;font-size:14px}
.acc-title span{font-size:12.5px;color:var(--text-3)}
.acc-meta{display:flex;align-items:center;gap:12px;flex:none}
.acc-b{padding:4px 16px 18px 48px;background:#fff}
.acc-item.open{background:#fff}
.acc-item.open .acc-h{background:var(--surface-2)}

/* ---------- Tableaux ---------- */
.tbl-wrap{overflow-x:auto}
.tbl{width:100%;border-collapse:separate;border-spacing:0;font-size:13.5px}
.tbl th{position:sticky;top:0;background:var(--surface-2);text-align:left;font-size:12px;font-weight:600;color:var(--text-3);padding:0 12px;height:38px;border-bottom:1px solid var(--line);white-space:nowrap}
.tbl td{padding:0 12px;height:44px;border-bottom:1px solid var(--line);white-space:nowrap}
.tbl tr:hover td{background:#F8FAFA}
.tbl tr.sel td{background:#F1FAFB}
.tbl tr.total td{font-weight:600;background:var(--surface-2);border-bottom:0}
.tbl .cell-in{display:flex;justify-content:flex-end;align-items:center;height:30px;padding:0 8px;border-radius:6px;box-shadow:inset 0 0 0 1px var(--line);background:#fff;font-variant-numeric:tabular-nums}
.tbl .cell-in.focus{box-shadow:inset 0 0 0 1px var(--primary),0 0 0 3px rgba(31,183,204,.25)}
.tbl .cell-in.locked{background:var(--surface-2);color:var(--text-2);box-shadow:none}
.tbl .cell-in.err{box-shadow:inset 0 0 0 1px var(--rouge-txt);background:#FFF8F7}

/* ---------- Indicateurs ---------- */
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.kpi{padding:16px 18px;display:flex;flex-direction:column;gap:6px}
.kpi-l{font-size:12.5px;color:var(--text-3);font-weight:500;display:flex;align-items:center;justify-content:space-between;gap:8px}
.kpi-v{font-size:28px;line-height:34px;font-weight:600;letter-spacing:-.015em;text-align:left}
.kpi-v small{font-size:15px;font-weight:500;color:var(--text-3);margin-left:4px}
.kpi-d{font-size:12.5px;color:var(--text-3);display:flex;gap:6px;align-items:center}
.up{color:var(--vert-txt);font-weight:600}.down{color:var(--rouge-txt);font-weight:600}
.bar{height:6px;border-radius:999px;background:var(--surface-3);overflow:hidden;display:flex}
.bar i{display:block;height:100%}
.bar.lg{height:10px}
.meter{display:flex;flex-direction:column;gap:6px}

/* ---------- Phases (stepper) ---------- */
.phases{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.phase{display:flex;flex-direction:column;gap:6px}
.phase .rail{height:4px;border-radius:999px;background:var(--line)}
.phase.done .rail{background:var(--ardoise)}
.phase.now .rail{background:linear-gradient(90deg,var(--primary) 55%,var(--line) 55%)}
.phase b{font-size:12.5px;font-weight:600}
.phase span{font-size:12px;color:var(--text-3)}
.steps{display:flex;flex-direction:column;gap:2px}
.step{display:flex;gap:12px;align-items:center;padding:10px 12px;border-radius:var(--r-md);font-size:13.5px;color:var(--text-2)}
.step .n{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:600;box-shadow:inset 0 0 0 1.5px var(--line-strong);color:var(--text-3);flex:none}
.step.done .n{background:var(--ardoise);box-shadow:none;color:#fff}
.step.now{background:var(--primary-50);color:var(--text);font-weight:600}
.step.now .n{background:var(--primary);color:#fff;box-shadow:none}

/* ---------- Surfaces flottantes ---------- */
.tooltip{display:inline-block;background:var(--ardoise-900);color:#fff;font-size:12px;line-height:16px;padding:6px 9px;border-radius:var(--r-sm);box-shadow:0 4px 12px rgba(30,40,39,.25);position:relative;max-width:240px}
.tooltip::after{content:"";position:absolute;left:16px;bottom:-4px;width:8px;height:8px;background:var(--ardoise-900);transform:rotate(45deg);border-radius:1px}
.popover{background:#fff;border-radius:var(--r-lg);box-shadow:var(--e3);padding:6px;min-width:220px}
.menu-i{display:flex;align-items:center;gap:10px;height:34px;padding:0 10px;border-radius:6px;font-size:13.5px;color:var(--text)}
.menu-i.hl{background:var(--surface-3)}
.menu-i .k{margin-left:auto;color:var(--text-4);font-size:12px}
.toast{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:var(--r-lg);background:#fff;box-shadow:var(--e3);width:360px;font-size:13.5px}
.modal{background:#fff;border-radius:var(--r-xl);box-shadow:var(--e4);overflow:hidden;width:100%;max-width:520px}
.modal-h{padding:20px 22px 0;display:flex;justify-content:space-between;gap:12px}
.modal-b{padding:14px 22px 20px;display:flex;flex-direction:column;gap:14px}
.modal-f{padding:14px 22px;background:var(--surface-2);border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}
.scrim{background:rgba(30,40,39,.38);border-radius:var(--r-lg);padding:36px;display:grid;place-items:center}
.drawer{background:#fff;box-shadow:var(--e4);border-radius:var(--r-xl) 0 0 var(--r-xl);display:flex;flex-direction:column}

/* ---------- Charte (documentation) ---------- */
.spec{display:grid;grid-template-columns:200px minmax(0,1fr);gap:28px;padding:28px 0;border-top:1px solid var(--line)}
.spec:first-child{border-top:0}
.spec-l .t2{margin-bottom:6px}
.token{display:flex;flex-direction:column;gap:4px;font-size:12.5px}
.token .sample{height:56px;border-radius:var(--r-md);box-shadow:inset 0 0 0 1px rgba(30,40,39,.08)}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.grid-6{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.state-l{font-size:11.5px;color:var(--text-3);margin-bottom:6px;font-weight:500}
.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.stack{display:flex;flex-direction:column;gap:12px}
.sp{display:flex;align-items:center;gap:12px;font-size:12.5px}
.sp i{display:block;height:12px;background:var(--bleu);border-radius:2px;opacity:.55}

@media (max-width:960px){
  .kpis,.grid-4,.grid-6{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-2,.grid-3,.form-grid,.choice-cards{grid-template-columns:1fr}
  .spec{grid-template-columns:1fr;gap:12px}
  .search{display:none}
  .page{padding:16px 16px 40px}
  .topbar{padding:0 16px;gap:16px}
}

/* Correctifs */
.tbl th.num{text-align:right}
.err-msg,.ok-msg{align-items:flex-start}
.err-msg svg,.ok-msg svg{flex:none;margin-top:1px}
.seg button{padding:0 10px}
.layout-2{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start}
.list{display:flex;flex-direction:column}
.li{display:flex;gap:12px;align-items:flex-start;padding:12px 18px;border-top:1px solid var(--line)}
.li:first-child{border-top:0}
.li-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.li-main b{font-weight:500;font-size:13.5px}
.ico{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;flex:none;background:var(--surface-3);color:var(--text-2)}
.ico.info{background:var(--bleu-50);color:var(--bleu-txt)}
.ico.warn{background:var(--orange-50);color:var(--orange-txt)}
.ico.alert{background:var(--rouge-50);color:var(--rouge-txt)}
.ico.ok{background:var(--vert-50);color:var(--vert-txt)}
.fiche-id{font-family:"IBM Plex Mono",monospace;font-size:12px;color:var(--text-3);font-weight:500}
.mini-phase{display:flex;gap:3px;align-items:center}
.mini-phase i{width:18px;height:4px;border-radius:2px;background:var(--line)}
.mini-phase i.d{background:var(--ardoise)}
.mini-phase i.n{background:var(--primary)}
.chart{display:flex;align-items:flex-end;gap:10px;height:180px;padding:0 4px}
.chart .col{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;justify-content:flex-end}
.chart .bars{display:flex;gap:3px;align-items:flex-end;height:100%;width:100%;justify-content:center}
.chart .bars i{display:block;width:40%;max-width:26px;border-radius:4px 4px 0 0}
.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12.5px;color:var(--text-2)}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{width:10px;height:10px;border-radius:3px;display:inline-block}
@media (max-width:960px){.layout-2{grid-template-columns:1fr}}
.nav{scrollbar-width:none}
.nav::-webkit-scrollbar{display:none}
.brand img{width:66px;height:34px;object-fit:contain}
.search{width:240px}
/* Assistant */
.wizard{display:grid;grid-template-columns:240px minmax(0,1fr) 320px;min-height:640px}
.wizard-side{background:var(--surface-2);box-shadow:inset -1px 0 0 var(--line);padding:20px 14px;display:flex;flex-direction:column;gap:16px}
.wizard-main{padding:24px 28px;display:flex;flex-direction:column;gap:20px;min-width:0}
.wizard-aside{background:var(--surface-2);box-shadow:inset 1px 0 0 var(--line);padding:20px;display:flex;flex-direction:column;gap:16px}
.ai-box{background:#fff;border-radius:var(--r-lg);box-shadow:var(--e1);padding:14px;display:flex;flex-direction:column;gap:10px}
.ai-mark{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--bleu-txt)}
@media (max-width:1100px){.wizard{grid-template-columns:1fr}.wizard-side,.wizard-aside{box-shadow:none}}
.brand img{width:85px;height:44px}
.search{width:290px;white-space:nowrap}
.search kbd{white-space:nowrap}

/* ==========================================================================
   RÈGLE DE STYLE (Malka, 29/11/2026) : un style innovant, différent et professionnel.
   INTERDIT dans toute interface, maquette ou document de l'outil :
   - les encadrés marqués d'une bande de couleur sur un côté (gauche ou droit) ;
   - les icônes ou émoticônes décoratives (pastilles d'icône dans les listes,
     icônes dans les encarts, dans les boutons à texte, dans les messages,
     dans les états vides) et les points de couleur dans les étiquettes.
   AUTORISÉ : les seules icônes fonctionnelles, dans un bouton sans texte ou un
   champ (fermer, menu, flèches de navigation, recherche, liste déroulante,
   cloche, poignée de glisser-déposer, case cochée, cadenas d'un élément figé).
   POUR SIGNALER : la typographie (libellé en petites capitales), un filet
   horizontal, un fond plein neutre ou un chiffre.
   ========================================================================== */
.btn:not(.btn-icon) svg{display:none}
.ico{display:none}
.badge .dot{display:none}
.menu-i svg,.well > svg,.ai-mark svg,.ok-msg svg,.err-msg svg{display:none}
.ok-msg,.err-msg{gap:0}
/* Encart : libellé en petites capitales, filet supérieur de la couleur du message, aucun fond, aucune icône */
.callout{display:block;background:none;border-radius:0;padding:9px 0 10px;border-top:1.5px solid currentColor;border-bottom:1px solid var(--line);color:var(--text);font-size:13px;line-height:19px}
.callout svg{display:none}
.callout::before{display:block;font-size:10.5px;line-height:14px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;margin-bottom:3px}
.callout.info{color:var(--text);border-top-color:var(--bleu-txt)}.callout.info::before{content:"À noter";color:var(--bleu-txt)}
.callout.warn{color:var(--text);border-top-color:var(--orange-txt)}.callout.warn::before{content:"Attention";color:var(--orange-txt)}
.callout.alert{color:var(--text);border-top-color:var(--rouge-txt)}.callout.alert::before{content:"Important";color:var(--rouge-txt)}
.callout.ok{color:var(--text);border-top-color:var(--vert-txt)}.callout.ok::before{content:"C'est fait";color:var(--vert-txt)}
.callout.info,.callout.warn,.callout.alert,.callout.ok{background:none}
.callout > div{display:block}
/* Liste d'éléments : pas de pastille d'icône, l'état se lit dans le texte */
.li{padding:11px 18px;gap:14px}
/* Aide de l'étape : libellé typographique */
.ai-mark{font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--text-2)}
