/* Layout : barre d'outils collante, vues en grille fluide, fiche dossier en tiroir latéral (plein écran sur mobile). */
:root {
  --bg: #F3F5F8; --surface: #FFFFFF; --surface-2: #EBEEF3; --line: #D9DEE6; --line-2: #C6CDD8;
  --fg: #121826; --fg-2: #445063; --muted: #6A7487;
  --ink: #0B1C6B; --ink-fg: #FFFFFF; --ink-soft: #E2E7F6; --brand: #0B1C6B; --logo-tile: transparent;
  --st-creation: #4B57D1; --st-secretariat: #C27A12; --st-assurance: #00908A; --st-souscrit: #7A3FB0; --st-abandonne: #7D8594;
  --crit: #B4232A; --crit-bg: #FBE9E9; --warn: #9A5B00; --warn-bg: #FCF1DD; --info: #2F5E9E; --info-bg: #E5EEF9; --ok: #2D7A3E; --ok-bg: #E3F2E6;
  --shadow: 0 1px 2px rgba(18,24,38,.06), 0 8px 24px rgba(18,24,38,.08);
  --f-display: "Schibsted Grotesk", "Inter", system-ui, sans-serif;
  --f-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 10px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0F131A; --surface: #161B24; --surface-2: #1D2430; --line: #29313F; --line-2: #384254;
  --fg: #E8ECF2; --fg-2: #B2BBC9; --muted: #8791A2;
  --ink: #C9D5F2; --ink-fg: #0F1626; --ink-soft: #222C40; --brand: #DCE4FA; --logo-tile: #F3F5FB;
  --st-creation: #7680E6; --st-secretariat: #C4862A; --st-assurance: #1FA5A3; --st-souscrit: #A27AD9; --st-abandonne: #7F8899;
  --crit: #F2777A; --crit-bg: #3A1C20; --warn: #E9B25C; --warn-bg: #362A15; --info: #8DB4EC; --info-bg: #1B2A40; --ok: #79C98A; --ok-bg: #18301F;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0F131A; --surface: #161B24; --surface-2: #1D2430; --line: #29313F; --line-2: #384254;
  --fg: #E8ECF2; --fg-2: #B2BBC9; --muted: #8791A2;
  --ink: #C9D5F2; --ink-fg: #0F1626; --ink-soft: #222C40; --brand: #DCE4FA; --logo-tile: #F3F5FB;
  --st-creation: #7680E6; --st-secretariat: #C4862A; --st-assurance: #1FA5A3; --st-souscrit: #A27AD9; --st-abandonne: #7F8899;
  --crit: #F2777A; --crit-bg: #3A1C20; --warn: #E9B25C; --warn-bg: #362A15; --info: #8DB4EC; --info-bg: #1B2A40; --ok: #79C98A; --ok-bg: #18301F;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font: 400 14px/1.5 var(--f-text); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: .95rem; font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--st-creation); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--f-mono); font-size: .86em; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Barre du haut */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand-mark { flex: none; height: 36px; width: auto; background: var(--logo-tile); border-radius: 7px; padding: 2px 4px; }
.logo-full { width: min(420px, 100%); height: auto; background: var(--logo-tile); border-radius: 12px; padding: 10px 14px; }
.brand b { font: 800 1.3rem/1 var(--f-display); letter-spacing: .02em; text-transform: uppercase; color: var(--brand); }
.brand small { display: block; font: 500 .68rem/1.2 var(--f-text); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.nav { display: flex; gap: 2px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: none; }
.nav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--fg-2); font-weight: 500; white-space: nowrap; }
.nav a:hover { background: var(--surface-2); color: var(--fg); }
.nav a[aria-current="page"] { background: var(--ink-soft); color: var(--fg); font-weight: 600; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--crit); color: var(--surface); font: 600 .72rem/20px var(--f-text); text-align: center; }
.top-actions { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 760px) { .nav { order: 3; flex-basis: 100%; } }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 500; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.btn.primary:hover { filter: brightness(1.12); }
.btn.sm { padding: 5px 10px; font-size: .84rem; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--crit); border-color: color-mix(in srgb, var(--crit) 40%, var(--line)); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.next-btn { width: 100%; justify-content: space-between; }

/* Bandeau */
.banner { border-bottom: 1px solid var(--line); }
.banner .wrap { display: flex; align-items: center; gap: 12px; padding-block: 9px; flex-wrap: wrap; font-size: .88rem; }
.banner.demo { background: var(--warn-bg); color: var(--fg); }
.banner.local, .banner.wait { background: var(--info-bg); }
.banner.err { background: var(--crit-bg); }

main.wrap { padding-block: 24px 64px; display: grid; gap: 22px; }
main.wrap > * { min-width: 0; }
.nw { white-space: nowrap; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.view-head h1 { font-size: 1.65rem; font-weight: 800; }
.view-head p { margin: 4px 0 0; color: var(--fg-2); max-width: 65ch; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.panel-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel-b { padding: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 22px; align-items: start; }
.grid2 > * { min-width: 0; }

/* Indicateurs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 4px; }
.kpi .lbl { font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.kpi .val { font: 700 1.75rem/1.15 var(--f-display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.kpi .sub { font-size: .84rem; color: var(--fg-2); }
.kpi .sub.crit { color: var(--crit); font-weight: 500; }

/* Chaîne de passation */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.flow a { position: relative; display: grid; gap: 2px; padding: 16px 18px 16px 22px; text-decoration: none; color: var(--fg); border-right: 1px solid var(--line); }
.flow a:last-child { border-right: 0; }
.flow a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.flow a:hover { background: var(--surface-2); }
.flow .n { font: 800 2rem/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.flow .t { font-weight: 600; }
.flow .s { font-size: .82rem; color: var(--muted); }
.flow .s.late { color: var(--crit); }
.flow .arrow { position: absolute; right: -11px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; z-index: 1; color: var(--muted); }
@media (max-width: 760px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flow a:nth-child(2) { border-right: 0; } .flow a:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .flow .arrow { display: none; } }

/* Pastilles d'étape */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 99px; background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--fg); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.c-creation { --c: var(--st-creation); } .c-secretariat { --c: var(--st-secretariat); } .c-assurance { --c: var(--st-assurance); } .c-souscrit { --c: var(--st-souscrit); } .c-abandonne { --c: var(--st-abandonne); }

/* Alertes */
.sev { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.sev svg { width: 13px; height: 13px; }
.sev-crit { background: var(--crit-bg); color: var(--crit); } .sev-warn { background: var(--warn-bg); color: var(--warn); } .sev-info { background: var(--info-bg); color: var(--info); }
.alist { list-style: none; margin: 0; padding: 0; }
.arow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); position: relative; }
.arow:last-child { border-bottom: 0; }
.arow::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--sc); }
.arow.crit { --sc: var(--crit); } .arow.warn { --sc: var(--warn); } .arow.info { --sc: var(--info); }
.arow .what { min-width: 0; }
.arow .what b { font-weight: 600; }
.arow .what .meta { font-size: .82rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.arow .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .arow { grid-template-columns: minmax(0,1fr); } .arow .acts { justify-content: flex-start; } }
.cat { font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-2); }

/* Filtres */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: .85rem; font-weight: 500; color: var(--fg-2); display: inline-flex; gap: 6px; align-items: center; }
.chip:hover { color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.chip .ct { font-variant-numeric: tabular-nums; opacity: .75; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search { flex: 1 1 240px; max-width: 360px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); }

/* Pipeline */
.board { display: grid; grid-template-columns: repeat(4, minmax(260px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.col { background: var(--surface-2); border-radius: var(--r); display: flex; flex-direction: column; min-width: 0; }
.col-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px 10px; border-top: 3px solid var(--c); border-radius: var(--r) var(--r) 0 0; }
.col-h h3 { flex: 1; }
.col-h .ct { font: 600 .85rem var(--f-text); color: var(--muted); font-variant-numeric: tabular-nums; }
.col-b { padding: 0 10px 12px; display: grid; gap: 10px; align-content: start; }
.col-sub { padding: 0 14px 8px; font-size: .78rem; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 12px; display: grid; gap: 8px; cursor: pointer; text-align: left; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.card .row1 { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.card .ent { font-weight: 600; font-size: .98rem; line-height: 1.3; }
.card .sub { font-size: .82rem; color: var(--muted); }
.meter { height: 5px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 3px; background: var(--c, var(--st-creation)); }
.meter.warn > span { background: var(--warn); } .meter.crit > span { background: var(--crit); }
.card .facts { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--fg-2); flex-wrap: wrap; }
.prio { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.prio.haute { color: var(--warn); } .prio.urgente { color: var(--crit); }
.empty-col { font-size: .84rem; color: var(--muted); padding: 14px; text-align: center; border: 1px dashed var(--line-2); border-radius: 9px; }

/* Tableaux */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; } tbody tr.click:hover td { background: var(--surface-2); }
td.r, th.r { text-align: right; }
.paybar { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.paybar .meter { flex: 1; } .paybar .meter > span { background: var(--ok); }
.status-paid { color: var(--ok); font-weight: 600; } .status-late { color: var(--crit); font-weight: 600; }

/* État vide */
.empty { padding: 36px 24px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.empty p { margin: 0; color: var(--fg-2); max-width: 52ch; }
.empty .acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* Tiroir */
.backdrop { position: fixed; inset: 0; background: rgba(10,14,22,.42); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(820px, 100%); background: var(--bg); z-index: 41; display: flex; flex-direction: column; box-shadow: var(--shadow); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px); }
.d-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 18px; display: flex; gap: 12px; align-items: flex-start; }
.d-head .t { flex: 1; min-width: 0; }
.d-head h2 { font-size: 1.3rem; font-weight: 800; overflow-wrap: anywhere; }
.d-head .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; font-size: .84rem; color: var(--muted); }
.d-body { overflow-y: auto; padding: 18px; display: grid; gap: 16px; align-content: start; flex: 1; }
.sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.sec > h3 { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sec > .in { padding: 14px 16px; display: grid; gap: 12px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.fgrid > * { min-width: 0; }
.fld { display: grid; gap: 4px; }
.fld > span { font-size: .76rem; font-weight: 600; color: var(--fg-2); }
.fld input, .fld select, .fld textarea { width: 100%; padding: 8px 10px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface); min-width: 0; }
.fld textarea { resize: vertical; min-height: 64px; }
.fld input:disabled, .fld select:disabled, .fld textarea:disabled { background: var(--surface-2); }
.wide { grid-column: 1 / -1; }

.stepper { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; }
.step { display: grid; gap: 4px; font-size: .78rem; color: var(--muted); }
.step .bar { height: 6px; border-radius: 3px; background: var(--surface-2); }
.step.done .bar, .step.cur .bar { background: var(--c); }
.step.cur { color: var(--fg); font-weight: 600; }
.step b { font-weight: 600; color: var(--fg-2); }
.step.cur b { color: var(--fg); }

.handoff { border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line)); background: color-mix(in srgb, var(--c) 7%, var(--surface)); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 10px; }
.handoff .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.handoff textarea { width: 100%; min-height: 56px; padding: 8px 10px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface); resize: vertical; }

.checks { display: grid; gap: 4px; }
.check { display: flex; gap: 10px; align-items: center; padding: 6px 4px; border-radius: 6px; cursor: pointer; }
.check:hover { background: var(--surface-2); }
.check input { width: 17px; height: 17px; accent-color: var(--c); }
.check.on span { color: var(--muted); text-decoration: line-through; }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg button { padding: 7px 14px; border: 0; border-right: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 600; font-variant-numeric: tabular-nums; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--ink-fg); }
.ech { display: grid; grid-template-columns: 34px minmax(0,1fr) minmax(0,1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ech:last-of-type { border-bottom: 0; }
.ech .k { font: 600 .82rem var(--f-mono); color: var(--muted); }
.ech input { width: 100%; padding: 6px 8px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface); min-width: 0; }
.ech label { display: inline-flex; gap: 6px; align-items: center; font-size: .84rem; white-space: nowrap; cursor: pointer; }
.ech label input { width: 16px; height: 16px; accent-color: var(--ok); }
@media (max-width: 520px) { .ech { grid-template-columns: 30px minmax(0,1fr); } .ech > :nth-child(n+3) { grid-column: 2; } }
.warnline { font-size: .84rem; color: var(--warn); }
.prods { display: flex; flex-wrap: wrap; gap: 6px; }

.rlist { display: grid; gap: 6px; }
.ritem { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.ritem .tx { flex: 1; min-width: 0; }
.ritem.fait .tx { color: var(--muted); text-decoration: line-through; }
.radd { display: grid; grid-template-columns: 150px 170px minmax(0,1fr) auto; gap: 8px; }
.radd input, .radd select { padding: 7px 9px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface); min-width: 0; width: 100%; }
@media (max-width: 620px) { .radd { grid-template-columns: 1fr 1fr; } .radd > :nth-child(3) { grid-column: 1 / -1; } }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 14px minmax(0,1fr); gap: 12px; padding-bottom: 14px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--c, var(--line-2)); background: var(--surface); margin-top: 3px; }
.timeline .tx { min-width: 0; }
.timeline .when { font-size: .78rem; color: var(--muted); }
.timeline .note { margin-top: 4px; padding: 6px 10px; background: var(--surface-2); border-radius: 6px; font-size: .86rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.d-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 10px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); max-width: calc(100% - 32px); font-size: .9rem; }
.toast button { background: transparent; border: 0; color: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }
.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; align-items: end; }
.small { font-size: .84rem; }
/* Assistant de création */
.wiz { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.wsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); }
.wsteps button { width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0 10px; text-align: left; padding: 10px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; }
.wsteps button:hover { background: var(--surface-2); }
.wsteps .n { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 .82rem var(--f-mono); border: 1.5px solid var(--line-2); color: var(--muted); background: var(--surface); }
.wsteps .tt { font-weight: 600; }
.wsteps .dd { font-size: .8rem; color: var(--muted); }
.wsteps .done .n { background: var(--st-creation); border-color: var(--st-creation); color: var(--surface); }
.wsteps .cur button { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.wsteps .cur .n { border-color: var(--st-creation); color: var(--st-creation); }
.wform .panel-b { display: grid; gap: 16px; }
.wfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-top: 1px solid var(--line); }
.wfoot > div { display: flex; gap: 8px; flex-wrap: wrap; }
.hint { padding: 10px 14px; border-radius: 8px; background: color-mix(in srgb, var(--st-creation) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--st-creation) 28%, var(--line)); font-size: .88rem; color: var(--fg-2); }
.errline { color: var(--crit); font-weight: 500; font-size: .9rem; }
.subh { font: 700 .92rem var(--f-display); margin: 0; }
.assoc { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, .8fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.dl { display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: .9rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.recap { display: grid; gap: 12px; }
.recap section { border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; display: grid; gap: 8px; }
.recap header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.preview { display: grid; gap: 4px; font-size: .88rem; }
@media (max-width: 860px) { .wiz { grid-template-columns: minmax(0, 1fr); } .wsteps { position: static; grid-auto-flow: column; grid-auto-columns: minmax(140px, 1fr); overflow-x: auto; } .wsteps .dd { display: none; } }
@media (max-width: 520px) { .assoc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .assoc > :first-child { grid-column: 1 / -1; } }
/* Pôles et parcours */
.pillar-bar { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; margin-bottom: -8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 800 .8rem/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--fg); }
.eyebrow i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.eyebrow span { font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--muted); font-family: var(--f-text); font-size: .86rem; }
.subnav { display: flex; gap: 4px; flex-wrap: wrap; padding: 3px; background: var(--surface-2); border-radius: 10px; }
.subnav a { padding: 6px 12px; border-radius: 8px; color: var(--fg-2); text-decoration: none; font-size: .86rem; font-weight: 500; }
.subnav a:hover { color: var(--fg); }
.subnav a[aria-current="page"] { background: var(--surface); color: var(--fg); font-weight: 600; box-shadow: 0 1px 2px rgba(18,24,38,.08); }
.univers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.univ { display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); text-decoration: none; color: var(--fg); }
.univ:hover { box-shadow: var(--shadow); }
.univ .u-t { font: 800 1.05rem/1.2 var(--f-display); letter-spacing: .1em; text-transform: uppercase; }
.univ .u-s { font-size: .82rem; color: var(--muted); }
.univ .u-l { display: grid; gap: 2px; margin-top: 10px; font-size: .88rem; color: var(--fg-2); }
@media (max-width: 900px) { .univers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .univers { grid-template-columns: minmax(0, 1fr); } }
.sect-t { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: -10px; }
.hero-brand { display: grid; justify-items: center; gap: 6px; }
.hero-brand .sign { margin: 4px 0 0; font: 800 1rem/1 var(--f-display); letter-spacing: .28em; text-transform: uppercase; color: var(--brand); display: flex; align-items: center; gap: 14px; }
.hero-brand .sign i { width: 6px; height: 6px; border-radius: 50%; background: #D7141A; }
.hero-brand .promise { margin: 0; color: var(--fg-2); font-size: .95rem; }
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.journey li { display: grid; gap: 3px; align-content: start; padding: 10px; border-radius: 9px; background: var(--surface-2); font-size: .78rem; color: var(--muted); position: relative; }
.journey .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 .78rem var(--f-mono); border: 1.5px solid var(--line-2); background: var(--surface); color: var(--muted); }
.journey b { font-size: .84rem; color: var(--fg-2); line-height: 1.25; overflow-wrap: anywhere; }
td.mono { white-space: nowrap; }
.journey li.done .n { background: var(--st-assurance); border-color: var(--st-assurance); color: var(--surface); }
.journey li.done b { color: var(--fg); }
.journey li.cur { background: color-mix(in srgb, var(--st-creation) 10%, var(--surface)); box-shadow: inset 0 0 0 1.5px var(--st-creation); }
.journey li.cur .n { border-color: var(--st-creation); color: var(--st-creation); }
@media (max-width: 700px) { .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots i { width: 8px; height: 8px; border-radius: 2px; background: var(--line-2); }
.dots i.on { background: var(--st-assurance); }
.tabs { display: flex; gap: 2px; overflow-x: auto; background: var(--surface); border-bottom: 1px solid var(--line); padding: 0 12px; flex: none; scrollbar-width: thin; }
.tabs button { flex: none; padding: 11px 12px 9px; border: 0; border-bottom: 2.5px solid transparent; background: transparent; cursor: pointer; color: var(--fg-2); font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"] { color: var(--fg); font-weight: 600; border-bottom-color: var(--ink); }
.tabs .ct { min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--surface-2); font-size: .72rem; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.svc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.svc button { display: grid; gap: 1px; text-align: left; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); border-left: 4px solid var(--c); background: var(--surface); cursor: pointer; }
.svc button:hover { background: var(--surface-2); }
.svc b { font: 700 1.2rem/1.2 var(--f-display); }
.svc span { font-size: .82rem; color: var(--fg-2); }
.svc small { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
@media (max-width: 620px) { .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contrat { border: 1px solid var(--line); border-radius: 9px; padding: 12px; display: grid; gap: 10px; }
.contrat-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.contrat-h .sp { flex: 1; }
.row-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.docadd { display: grid; grid-template-columns: 150px auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.docadd select, .docadd input:not([type=file]), select.mini { padding: 6px 8px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface); min-width: 0; }
@media (max-width: 620px) { .docadd { grid-template-columns: 1fr 1fr; } }
.filebtn { position: relative; overflow: hidden; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; align-items: start; }
.stack { display: grid; gap: 12px; min-width: 0; }
@media (max-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr); } }
.badge.warnb { background: var(--warn); margin-left: 6px; }
textarea.point { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-2); font: 400 .88rem/1.5 var(--f-text); resize: vertical; }
.sel { user-select: all; font-family: var(--f-mono); }
.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.agenda button { width: 100%; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.agenda button:hover { background: var(--surface-2); }
.agenda .when { font: 600 .8rem/1.3 var(--f-mono); color: var(--st-secretariat); }
.agenda b { display: block; }
@media (prefers-reduced-motion: no-preference) { .drawer { animation: slide .18s ease-out; } @keyframes slide { from { transform: translateX(24px); opacity: .6; } } }
