/* Espace client et CRM Makeset : maquettes statiques.
   Langage visuel de dispo-v04 (groupes façon Réglages, feuilles, divulgation
   progressive) avec l'identité makeset.be : bleu #006ced, Plus Jakarta Sans. */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.7660bd9909fb.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext.341687eeeb6a.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --brand: #006ced; --brand-press: #0058c4; --on-brand: #fff; --brand-soft: #e6f0fd;
  --link: #005fd1;
  --ink: #0c1d33; --muted: #5b6779; --canvas: #f5f7fa; --surface: #fff; --tile: #eef2f7;
  --hairline: #e3e8ef; --border: #cbd4df; --field-line: #7b8799;
  --ok: #0f7a43; --ok-soft: #e4f4ea; --warn: #8a4b00; --warn-soft: #fdf0d9;
  --bad: #b41340; --bad-soft: #fbe9ee; --off: #5b6779; --off-soft: #eceff3;
  --night: #101e33; --night-2: #1b2b44; --night-ink: #c5d0de;
  --r: 14px; --r-s: 10px; --tap: 44px; --tabbar: 64px;
  --shadow-1: 0 1px 2px rgb(12 29 51 / .05);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.5 var(--font); color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }

/* ---------- Marque ---------- */
.logo { display: inline-flex; align-items: center; min-height: var(--tap); gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.02em; font-size: 1.0625rem; }
.logo svg { width: 26px; height: 26px; fill: var(--brand); flex: none; }
.logo small { font-weight: 500; color: var(--muted); letter-spacing: 0; font-size: .875rem; }

/* ---------- Écrans ---------- */
.screen { display: none; }
.screen.on { display: block; }
body[data-layout="auth"] .side, body[data-layout="auth"] .mtop, body[data-layout="auth"] .tabbar { display: none; }

/* ---------- Coque applicative ---------- */
.mtop { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 56px; padding: 0 8px 0 16px; background: color-mix(in oklab, var(--canvas) 94%, transparent); border-bottom: 1px solid var(--hairline); }
.avatar { width: var(--tap); height: var(--tap); border-radius: 50%; display: grid; place-items: center; text-decoration: none; }
.avatar span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-press); font-size: .8125rem; font-weight: 700; }
.side { display: none; }
.main { padding: 20px 16px calc(var(--tabbar) + 32px + env(safe-area-inset-bottom)); max-width: 760px; margin: 0 auto; min-width: 0; }
.tabbar { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  padding: 0 4px env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--hairline); }
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: var(--tabbar); color: var(--muted); text-decoration: none;
  font-size: .6875rem; font-weight: 600; letter-spacing: .005em; position: relative; }
.tabbar a[aria-current="page"] { color: var(--brand-press); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.tabbar .ic { width: 24px; height: 24px; }
.tabbar .cnt { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: .6875rem; line-height: 18px; text-align: center; }

@media (min-width: 1024px) {
  .mtop, .tabbar { display: none; }
  body[data-layout="app"] .app { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100dvh; }
  .side { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100dvh; padding: 24px 14px 18px; background: var(--surface); border-right: 1px solid var(--hairline); }
  .side .logo { padding: 0 10px; }
  .nav { display: grid; gap: 2px; }
  .nav a { display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 0 12px; border-radius: var(--r-s); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9375rem; }
  .nav a:hover { background: var(--tile); }
  .nav a .ic { color: var(--muted); }
  .nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-press); font-weight: 600; }
  .nav a[aria-current="page"] .ic { color: var(--brand); }
  .nav .cnt { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--bad); color: #fff; font-size: .75rem; font-weight: 700; line-height: 22px; text-align: center; }
  .side-foot { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid var(--hairline); padding-top: 14px; }
  .who { display: flex; align-items: center; gap: 10px; padding: 6px 10px; }
  .who span:first-child { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-press); font-size: .8125rem; font-weight: 700; flex: none; }
  .who b { display: block; font-size: .875rem; font-weight: 600; line-height: 1.3; }
  .who small { display: block; font-size: .8125rem; color: var(--muted); line-height: 1.3; }
  .side-foot .nav a { font-size: .875rem; color: var(--muted); }
  .main { margin: 0; padding: 40px 48px 64px; max-width: 880px; }
}
@media (min-width: 1280px) { .main.wide { max-width: 1160px; } }

/* CRM : barre latérale nuit, pour savoir d'un coup d'œil qu'on est côté gestion. */
.crm .side { background: var(--night); border-right: 0; }
.crm .side .logo { color: #fff; }
.crm .side .logo svg { fill: #fff; }
.crm .side .logo small { color: var(--night-ink); }
.crm .nav a { color: var(--night-ink); }
.crm .nav a:hover { background: var(--night-2); }
.crm .nav a .ic { color: var(--night-ink); }
.crm .nav a[aria-current="page"] { background: var(--night-2); color: #fff; box-shadow: inset 3px 0 0 #4d9bff; }
.crm .nav a[aria-current="page"] .ic { color: #fff; }
.crm .side-foot { border-color: var(--night-2); }
.crm .who b { color: #fff; }
.crm .who small { color: var(--night-ink); }
.crm .who span:first-child { background: var(--night-2); color: #fff; }
.crm .side :focus-visible { outline-color: #8cc0ff; }
.crm .mtop { background: var(--night); border-color: var(--night); }
.crm .mtop .logo { color: #fff; }
.crm .mtop .logo svg { fill: #fff; }
.crm .mtop .logo small { color: var(--night-ink); }
.crm .mtop :focus-visible { outline-color: #8cc0ff; }

/* ---------- Titres de page ---------- */
.ph { margin: 4px 0 24px; display: grid; gap: 4px; }
.ph h1 { font-size: 1.75rem; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
.ph h1:focus { outline: none; }
.ph p { color: var(--muted); font-size: .9375rem; }
.ph-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.crumb { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap); margin: -8px 0 0 -8px; padding: 0 8px; font-weight: 600; font-size: .9375rem; text-decoration: none; border-radius: var(--r-s); }
.crumb:hover { background: var(--brand-soft); }
.crumb .ic { width: 18px; height: 18px; }
@media (min-width: 1024px) { .ph h1 { font-size: 2rem; } .ph { margin-bottom: 28px; } }

/* ---------- Sections et groupes de lignes ---------- */
.stack { display: grid; gap: 28px; }
.cols { display: grid; gap: 28px; align-items: start; }
.cols > div { display: grid; gap: 28px; min-width: 0; }
@media (min-width: 1280px) { .cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.gh { display: flex; align-items: baseline; gap: 8px; margin: 0 4px 8px; }
.gh h2 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.012em; }
.gh .gh-m { color: var(--muted); font-size: .875rem; }
.gh .more { margin-left: auto; font-size: .875rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 6px; margin-block: -12px; border-radius: 8px; }
.gh .more:hover { background: var(--brand-soft); }
.grp { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-1), 0 0 0 1px var(--hairline); overflow: hidden; }
.grp > * + * { border-top: 1px solid var(--hairline); }
.ghint { font-size: .8125rem; color: var(--muted); padding: 8px 4px 0; line-height: 1.45; }
.row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 10px 12px 10px 16px; text-align: left; color: var(--ink); text-decoration: none; background: var(--surface); }
a.row, button.row { transition: background-color .12s; cursor: pointer; }
a.row:hover, button.row:hover { background: var(--canvas); }
a.row:focus-visible, button.row:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.chev { flex: none; width: 18px; height: 18px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.r-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--tile); color: var(--ink); }
.r-ic .ic { width: 20px; height: 20px; }
.r-ic.blue { background: var(--brand-soft); color: var(--brand-press); }
.r-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.r-t b { font-weight: 600; font-size: .9688rem; line-height: 1.35; overflow-wrap: anywhere; }
.r-t small { color: var(--muted); font-size: .875rem; line-height: 1.4; }
.r-t .dom { overflow-wrap: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-v { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; font-size: .9375rem; display: grid; gap: 2px; justify-items: end; }
.r-v b { color: var(--ink); font-weight: 600; }
.r-v small { font-size: .8125rem; }
.row.add { color: var(--link); font-weight: 600; min-height: 52px; }
/* Ligne avec action (Falco) sur petit écran : l'icône cède la place, plus de défilement horizontal. */
@media (max-width: 399px) { .row:has(> form) > .r-ic { display: none; } }
.row.add .ic { width: 20px; height: 20px; }
.row.danger-t { color: var(--bad); font-weight: 600; justify-content: center; }
.empty { padding: 20px 16px; color: var(--muted); font-size: .9375rem; }

/* Lignes clé / valeur (lecture seule). */
.kv { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 16px; }
.kv dt { flex: none; color: var(--muted); font-size: .9375rem; }
.kv dd { flex: 1; min-width: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }

/* ---------- Pastilles d'état ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; line-height: 1;
  background: var(--off-soft); color: var(--off); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.blue { background: var(--brand-soft); color: var(--brand-press); }
.badge.plain::before { display: none; }
.badge .ic { width: 14px; height: 14px; stroke-width: 2.25; margin-left: -2px; }
.badge.plain:has(.ic) { padding-left: 8px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 18px; border-radius: 12px; font-weight: 600; font-size: .9375rem;
  text-decoration: none; white-space: nowrap; background: var(--brand); color: var(--on-brand); transition: background-color .12s, box-shadow .12s; }
.btn:hover { background: var(--brand-press); }
.btn .ic { width: 20px; height: 20px; }
.btn.lg { min-height: 50px; font-size: 1rem; border-radius: 14px; }
.btn.full { width: 100%; }
.btn.sec { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border); }
.btn.sec:hover { background: var(--canvas); }
.btn.tint { background: var(--brand-soft); color: var(--brand-press); }
.btn.tint:hover { background: #d6e6fb; }
.btn.danger { background: var(--surface); color: var(--bad); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--bad) 35%, white); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.solid-bad { background: var(--bad); color: #fff; }
.btn.solid-bad:hover { background: #95102f; }
.btn.text { background: transparent; color: var(--link); padding: 0 10px; }
.btn.text:hover { background: var(--brand-soft); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--tile); color: #8792a2; box-shadow: none; cursor: not-allowed; }
.btn.icon { width: var(--tap); padding: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.btn.icon:hover { background: var(--tile); color: var(--ink); }
.acts { display: flex; gap: 10px; flex-wrap: wrap; }
.link { font-weight: 600; color: var(--link); text-decoration: none; display: inline-flex; align-items: center; min-height: var(--tap); border-radius: 6px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Champs ---------- */
.field { display: grid; gap: 6px; }
.field > label, .field > .lbl { font-weight: 600; font-size: .9063rem; }
.field .optl { font-weight: 400; color: var(--muted); }
.field .hint { font-size: .8125rem; color: var(--muted); line-height: 1.45; }
.in { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--field-line); border-radius: var(--r-s); background: var(--surface); font-size: 1rem; }
textarea.in { min-height: 112px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.in:hover { border-color: var(--ink); }
.in:focus-visible { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
.in-wrap { position: relative; display: flex; }
.in-wrap .in { padding-right: 52px; }
.in-wrap .btn.icon { position: absolute; right: 2px; top: 2px; }
.in-suffix { position: relative; }
.in-suffix .in { padding-right: 76px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.in-suffix span { position: absolute; right: 14px; top: 50%; translate: 0 -50%; color: var(--muted); font-size: .9375rem; pointer-events: none; }
.form { display: grid; gap: 18px; }
.err { color: var(--bad); font-size: .8125rem; font-weight: 500; }
.otp { font-size: 1.5rem !important; font-weight: 600; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; min-height: 56px !important; padding-left: calc(14px + .35em) !important; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .9375rem; line-height: 1.45; min-height: var(--tap); padding-top: 10px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }

/* Interrupteur. */
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 6px 16px; }
.sw-row label { flex: 1; font-weight: 500; cursor: pointer; display: grid; gap: 1px; }
.sw-row label small { font-weight: 400; color: var(--muted); font-size: .8125rem; }
.switch { position: relative; flex: none; width: 52px; height: 32px; }
.switch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 16px; background: #c2cad5; transition: background-color .15s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: translate .15s; }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { translate: 20px 0; }
.switch input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Contrôle segmenté. */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 3px; border-radius: 12px; background: var(--tile); }
.seg label { position: relative; display: grid; place-items: center; min-height: var(--tap); padding: 0 10px; border-radius: 9px; font-weight: 600; font-size: .9063rem; color: var(--muted); cursor: pointer; text-align: center; line-height: 1.2; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(12 29 51 / .14); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 1px; }

/* Choix en lignes (radio). */
.pick { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 16px; cursor: pointer; position: relative; }
.pick input { position: absolute; opacity: 0; }
.pick .r-t b { font-size: 1rem; }
.pick .mark { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--field-line); display: grid; place-items: center; }
.pick:has(input:checked) .mark { background: var(--brand); box-shadow: none; }
.pick:has(input:checked) .mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.pick:has(input:checked) { background: color-mix(in oklab, var(--brand-soft) 55%, white); }
.pick:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: -2px; }
.pick .price { flex: none; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; display: grid; justify-items: end; }
.pick .price small { font-weight: 400; color: var(--muted); font-size: .8125rem; }

/* ---------- Écrans d'authentification ---------- */
body[data-layout="auth"] { background: var(--surface); }
.auth { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.auth-art { background: var(--brand); color: var(--on-brand); }
.auth-art-in { padding: 18px 20px 22px; display: grid; gap: 18px; }
.auth-art .logo, .auth-art .logo small { color: #fff; }
.auth-art .logo svg { fill: #fff; }
.auth-art .big { font-size: 1.5rem; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; max-width: 18ch; }
.auth-art ul { display: none; }
.auth-main { padding: 28px 20px 40px; display: grid; align-content: start; }
.auth-box { width: 100%; max-width: 420px; display: grid; gap: 24px; }
.auth-box .ph { margin: 0; }
.auth-foot { font-size: .9375rem; color: var(--muted); display: flex; gap: 4px 6px; flex-wrap: wrap; align-items: center; }
.auth-foot .link { margin: -10px 0; }
@media (min-width: 900px) {
  .auth { grid-template-rows: none; grid-template-columns: minmax(340px, 5fr) 7fr; }
  .auth-art-in { position: sticky; top: 0; height: 100dvh; min-height: 560px; padding: 40px 48px; grid-template-rows: auto 1fr auto; }
  .auth-art .big { align-self: end; font-size: clamp(2.25rem, 3.4vw, 3.25rem); line-height: 1.04; letter-spacing: -.035em; max-width: 12ch; }
  .auth-art ul { display: grid; gap: 0; border-top: 1px solid rgb(255 255 255 / .35); }
  .auth-art li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgb(255 255 255 / .35); font-size: .9375rem; }
  .auth-art li b { font-weight: 700; min-width: 7.5rem; }
  .auth-main { padding: 64px 48px; align-content: center; justify-items: start; }
  .auth-box { margin-left: clamp(0px, 6vw, 120px); }
}

/* Étapes d'un parcours. */
.steps { display: grid; gap: 8px; }
.steps p { font-size: .8125rem; color: var(--muted); font-weight: 600; }
.steps ol { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.steps li { height: 4px; border-radius: 2px; background: var(--hairline); }
.steps li.done { background: var(--brand); }

/* Écran d'attente. */
.wait { display: grid; gap: 18px; }
.wait-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-press); display: grid; place-items: center; }
.wait-ic .ic { width: 28px; height: 28px; }
.timeline { display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding-bottom: 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--hairline); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 2px var(--border); }
.timeline .done .dot { background: var(--ok); box-shadow: none; color: #fff; }
.timeline .now .dot { box-shadow: inset 0 0 0 2px var(--brand); }
.timeline .now .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.timeline .dot .ic { width: 14px; height: 14px; stroke-width: 2.5; }
.timeline b { font-weight: 600; display: block; }
.timeline small { color: var(--muted); font-size: .875rem; }

/* Choix du second facteur. */
.opts { display: grid; gap: 12px; }
.opt { display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; gap: 2px 14px; align-items: center; width: 100%; padding: 16px; border-radius: var(--r); text-align: left;
  background: var(--surface); box-shadow: 0 0 0 1px var(--border); transition: box-shadow .12s, background-color .12s; }
.opt:hover { box-shadow: 0 0 0 1.5px var(--brand); }
.opt .r-ic { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 12px; }
.opt .r-ic .ic { width: 24px; height: 24px; }
.opt b { font-weight: 700; }
.opt small { grid-column: 2; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.opt .chev { grid-column: 3; grid-row: 1 / span 2; }
.opt .tag { font-size: .75rem; font-weight: 700; color: var(--ok); margin-left: 6px; }

/* QR et clé. */
.qr-wrap { display: grid; gap: 16px; justify-items: center; padding: 20px 16px; }
.qr { width: 184px; height: 184px; padding: 10px; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--hairline); }
.qr svg { width: 100%; height: 100%; display: block; }
.secret { display: flex; align-items: center; gap: 4px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9375rem; letter-spacing: .04em; color: var(--ink); flex-wrap: wrap; justify-content: center; text-align: center; }

/* Codes de récupération. */
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 6px 0; }
.codes li { padding: 10px 16px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; display: flex; gap: 10px; align-items: baseline; }
.codes li span { color: var(--muted); font-family: var(--font); font-size: .75rem; letter-spacing: 0; min-width: 1.4em; text-align: right; }
.codes li.used { color: var(--muted); text-decoration: line-through; }
.grp > .codes + * { border-top: 1px solid var(--hairline); }

/* ---------- Bloc héros (aplat de marque) ---------- */
.hero { border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--hairline); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 20px; background: var(--brand); color: var(--on-brand); text-decoration: none; transition: background-color .15s; }
a.hero-top:hover { background: var(--brand-press); }
a.hero-top:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.hero-top .lbl { font-size: .875rem; font-weight: 600; }
.hero-top .amt { grid-column: 1; font-size: 2.25rem; line-height: 1.05; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.hero-top .amt small { font-size: .9375rem; font-weight: 600; letter-spacing: 0; margin-left: 6px; }
.hero-top .sub { grid-column: 1; font-size: .9375rem; }
.hero-top .chev { grid-column: 2; grid-row: 1 / span 3; align-self: center; color: #fff; }
.hero .row { min-height: 52px; }
@media (min-width: 768px) { .hero-top { padding: 24px 24px 22px; } .hero-top .amt { font-size: 2.75rem; } }

/* Bandeau d'alerte. */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--bad-soft); color: #7d0c2b; font-size: .9375rem; line-height: 1.45; }
.alert .ic { color: var(--bad); margin-top: 1px; }
.alert b { display: block; }
.alert.warn { background: var(--warn-soft); color: #5e3300; }
.alert.warn .ic { color: var(--warn); }
.alert.info { background: var(--brand-soft); color: #00347a; }
.alert.info .ic { color: var(--brand-press); }
.alert .acts { margin-top: 10px; }

/* ---------- Listes de factures, colonnes au-delà de 900 px ---------- */
.inv { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 14px; width: 100%; min-height: 64px; padding: 10px 8px 10px 16px; text-align: left; background: var(--surface); }
.inv:hover { background: var(--canvas); }
.inv:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.inv .d { display: grid; gap: 1px; min-width: 0; }
.inv .d b { font-weight: 600; font-variant-numeric: tabular-nums; }
.inv .d small { color: var(--muted); font-size: .8125rem; }
.inv .m { display: grid; justify-items: end; gap: 3px; font-variant-numeric: tabular-nums; }
.inv .m b { font-weight: 600; }
.inv .m small { color: var(--muted); font-size: .8125rem; }
.inv .ht, .inv .st-wide, .inv .num-c { display: none; }
.inv .chev { margin-left: 2px; }
.inv-head { display: none; }
@media (min-width: 900px) {
  .inv:not(.sm), .inv-head { grid-template-columns: 9.5rem minmax(0, 1fr) 7.5rem 7.5rem 8.5rem 24px; gap: 16px; padding-right: 16px; }
  .inv:not(.sm) { min-height: 56px; }
  .inv:not(.sm) .d small, .inv:not(.sm) .m small.st, .inv:not(.sm) .m small.htv { display: none; }
  .inv:not(.sm) .num-c { display: block; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .inv:not(.sm) .ht { display: block; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
  .inv:not(.sm) .st-wide { display: block; }
  .inv:not(.sm) .m { justify-items: end; }
  .inv-head { display: grid; padding: 10px 16px; font-size: .8125rem; font-weight: 600; color: var(--muted); background: var(--canvas); }
  .inv-head .r { text-align: right; }
}

/* Filtres en puces, recherche. */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: .875rem; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.chip span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.chip[aria-pressed="true"] span { color: #c5d0de; }
.search { position: relative; }
.search .ic { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--muted); width: 20px; height: 20px; pointer-events: none; }
.search .in { padding-left: 44px; border-color: var(--border); background: var(--surface); }
.tools { display: grid; gap: 12px; margin-bottom: 16px; }
@media (min-width: 768px) { .tools { grid-template-columns: minmax(0, 340px) 1fr; align-items: center; } .tools .chips { justify-content: flex-end; } }

/* Fiche client : en-tête résumé. */
.cl-head { display: grid; gap: 16px; padding: 20px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--hairline); }
.cl-id { display: flex; gap: 14px; align-items: center; }
.mono { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.125rem; letter-spacing: -.02em; }
.cl-id h1 { font-size: 1.5rem; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.cl-id h1:focus { outline: none; }
.cl-id p { color: var(--muted); font-size: .9375rem; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.facts dt { font-size: .8125rem; color: var(--muted); font-weight: 500; }
.facts dd { font-weight: 600; font-variant-numeric: tabular-nums; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cl-head { padding: 24px; } .cl-id h1 { font-size: 1.75rem; } }
.cl-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.cl-acts .btn { flex: 1 1 auto; }
@media (min-width: 768px) { .cl-acts .btn { flex: 0 0 auto; } }

/* Notes internes, historique. */
.note-it { padding: 14px 16px; display: grid; gap: 4px; }
.note-it p { line-height: 1.5; }
.note-it small { color: var(--muted); font-size: .8125rem; }
.hist li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 12px; padding: 12px 16px; font-size: .9375rem; }
.hist li + li { border-top: 1px solid var(--hairline); }
.hist time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .875rem; }

/* Dépôt de fichier. */
.drop { display: grid; justify-items: center; gap: 8px; padding: 28px 16px; border-radius: var(--r); border: 1.5px dashed var(--field-line); background: var(--surface); text-align: center; cursor: pointer; }
.drop:hover, .drop:focus-within { border-color: var(--brand); background: color-mix(in oklab, var(--brand-soft) 45%, white); }
.drop .ic { width: 28px; height: 28px; color: var(--brand-press); }
.drop b { font-weight: 600; }
.drop small { color: var(--muted); font-size: .8125rem; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-ok { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--hairline); }
.file-ok .r-t b { font-size: .9375rem; }

/* ---------- Feuilles : du bas sur téléphone, dialogue au-delà ---------- */
dialog.ds { border: 0; padding: 0; color: var(--ink); background: var(--surface); flex-direction: column; overflow: hidden; overscroll-behavior: contain;
  margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgb(12 29 51 / .14);
  transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1), display .28s allow-discrete, overlay .28s allow-discrete; }
dialog.ds[open] { display: flex; transform: none; }
@starting-style { dialog.ds[open] { transform: translateY(100%); } }
dialog.ds::backdrop { background: rgb(12 29 51 / 0); overflow: hidden; overscroll-behavior: contain; transition: background-color .28s, display .28s allow-discrete, overlay .28s allow-discrete; }
dialog.ds[open]::backdrop { background: rgb(12 29 51 / .42); }
@starting-style { dialog.ds[open]::backdrop { background: rgb(12 29 51 / 0); } }
.ds .grip { width: 36px; height: 5px; border-radius: 3px; background: var(--border); margin: 8px auto 0; flex: none; }
.ds-h { flex: none; display: grid; grid-template-columns: var(--tap) minmax(0, 1fr) var(--tap); align-items: center; gap: 4px; padding: 6px 8px 8px; }
.ds-h h2 { grid-column: 2; font-size: 1.0625rem; font-weight: 700; letter-spacing: -.012em; text-align: center; line-height: 1.3; overflow-wrap: anywhere; }
.ds-h h2:focus { outline: none; }
.ds-h .x, .ds-h .back { width: var(--tap); height: var(--tap); border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.ds-h .x { grid-column: 3; }
.ds-h .back { grid-column: 1; grid-row: 1; color: var(--link); }
.ds-h .x:hover, .ds-h .back:hover { background: var(--tile); color: var(--ink); }
.ds-h .ic { width: 20px; height: 20px; }
.ds-b { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px 20px; background: var(--canvas); border-top: 1px solid var(--hairline); }
.ds-b > * + * { margin-top: 20px; }
.ds-b > .ghint, .ds-b > .grp + .ghint { margin-top: 0; }
.ds-b .lead { color: var(--muted); font-size: .9375rem; line-height: 1.5; padding: 0 4px; }
.ds-b .gtitle { font-size: .875rem; font-weight: 600; color: var(--muted); margin: 20px 4px 8px; }
.ds-b .gtitle + .grp { margin-top: 0; }
.ds-b .gtitle:first-child { margin-top: 0; }
.ds-b .field { padding: 0 2px; }
.ds-f { flex: none; display: grid; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); background: var(--surface); }
.ds-f:empty { display: none; }
.ds-f .acts { justify-content: flex-end; }
.ds-f .acts .btn { flex: 1 1 auto; }
.ds-f .acts .sp { display: none; }
@media (min-width: 768px) {
  dialog.ds { margin: auto; width: min(560px, calc(100vw - 48px)); max-height: min(800px, calc(100dvh - 48px)); border-radius: 18px;
    box-shadow: 0 0 0 1px var(--hairline), 0 24px 64px rgb(12 29 51 / .22);
    transform: translateY(12px) scale(.98); opacity: 0;
    transition: transform .2s cubic-bezier(.2, .8, .2, 1), opacity .2s, display .2s allow-discrete, overlay .2s allow-discrete; }
  dialog.ds[open] { transform: none; opacity: 1; }
  @starting-style { dialog.ds[open] { transform: translateY(12px) scale(.98); opacity: 0; } }
  .ds .grip { display: none; }
  .ds-h { padding: 12px 12px 10px; }
  .ds-b { padding: 20px 24px 24px; }
  .ds-f { padding: 14px 24px; }
  .ds-f .acts .btn { flex: 0 0 auto; }
  .ds-f .acts .sp { display: block; flex: 1 1 auto; }
}

/* Toast. */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)); transform: translate(-50%, 12px); opacity: 0; z-index: 40;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 500; font-size: .9375rem;
  box-shadow: 0 8px 24px rgb(12 29 51 / .2); transition: opacity .2s, transform .2s; pointer-events: none; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
body[data-layout="auth"] .toast { bottom: 24px; }
@media (min-width: 1024px) { .toast { bottom: 24px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
  dialog.ds, dialog.ds[open] { transform: none; }
}

/* Connexion avec Google ou Microsoft. */
.sso { display: grid; gap: 10px; }
.sso .btn { gap: 12px; font-weight: 600; }
.brand-ic { width: 20px; height: 20px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .875rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
a.btn[aria-disabled="true"] { pointer-events: none; }
.sso-hint { font-size: .8125rem; color: var(--muted); line-height: 1.45; margin-top: -8px; }
body[data-layout="auth"] .app, body[data-layout="app"] .auth { display: none; }
a.opt { color: var(--ink); text-decoration: none; }
@media (max-width: 899px) {
  body:not([data-route="connexion"]):not([data-route="inscription"]) .auth-art .big { display: none; }
}
.codes-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 8px; }
.codes-acts .btn { padding: 0 6px; }
@media (max-width: 479px) { .codes-acts .btn .ic { display: none; } }
.cl-amt { display: none; }
@media (min-width: 768px) { .cl-amt { display: grid; min-width: 9.5rem; } }
.dec { justify-content: flex-end; }
.dec .btn { flex: 1 1 0; }
@media (min-width: 768px) { .dec .btn { flex: 0 0 auto; min-width: 140px; } }
.ds-b select.in { appearance: auto; }
.inv .m b, .r-v b { white-space: nowrap; }
@media (max-width: 899px) { .inv > .chev { display: none; } }
.inv > .badge { min-width: 5.5rem; justify-content: center; }
@media (max-width: 767px) { .tools .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .tools .chip { justify-content: center; } }
.ds-b .gtitle + fieldset.grp { margin-top: 0; }

/* ---------- v2 : sobriété Google / Apple (retour d'Arnaud) ----------
   Blanc et gris neutre, une seule couleur d'accent (bleu Makeset), rouge en
   texte seulement pour un vrai problème, pastilles grises, coches à droite. */
:root { --canvas: #f5f6f8; --tile: #eef0f3; --hairline: #e4e7ec; }
.badge, .badge.ok, .badge.warn, .badge.blue { background: var(--tile); color: var(--muted); font-weight: 500; }
.badge::before { display: none; }
.badge.bad, .bad-t { background: none; color: var(--bad); font-weight: 600; padding: 0; font-size: .8125rem; white-space: nowrap; }
.r-t small.bad-t { font-size: .875rem; font-weight: 500; }
.pill { flex: none; min-width: 24px; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--tile); color: var(--muted); font-size: .8125rem; font-weight: 500; line-height: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.gh .pill { align-self: center; }
.nav .cnt, .tabbar .cnt { background: var(--tile); color: var(--muted); font-weight: 600; }
.crm .nav .cnt { background: var(--night-2); color: var(--night-ink); }
.tabbar .cnt { top: 6px; height: 18px; line-height: 18px; font-size: .6875rem; }
.r-ic, .r-ic.blue { background: var(--tile); color: var(--ink); }
.r-v { font-size: .9375rem; }
.vies { display: inline-grid; place-items: center; color: var(--brand-press); }
.vies .ic { width: 18px; height: 18px; stroke-width: 2.25; }
.badge.plain .ic { color: var(--brand-press); }
.switch input:checked + i { background: var(--brand); }
.alert, .alert.warn, .alert.info { background: none; padding: 0; color: var(--muted); border-radius: 0; }
.alert .ic, .alert.warn .ic { color: var(--muted); }
.timeline .done .dot { background: var(--brand); }
/* Boutons : plus fins, rayon modéré. */
.btn { border-radius: 10px; min-height: var(--tap); font-size: .9375rem; }
.btn.lg { min-height: 48px; border-radius: 12px; font-size: .9688rem; }
.btn.sec { box-shadow: inset 0 0 0 1px var(--border); }
/* Listes à cocher façon Réglages : coche à droite. */
.pick { min-height: 52px; padding: 10px 16px; }
.pick .mark { display: none; }
.pick .r-t b { font-weight: 500; font-size: .9688rem; }
.pick:has(input:checked) { background: none; }
.pick:has(input:checked) .r-t b { color: var(--brand-press); font-weight: 600; }
.pick .price { font-weight: 500; color: var(--muted); }
.pick::after { content: ""; flex: none; width: 18px; height: 18px; background: transparent; }
.pick:has(input:checked)::after { background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.pick:hover { background: var(--canvas); }
/* Aide « ? » : bulle sombre. */
.help { width: var(--tap); height: var(--tap); margin: -12px -10px -12px auto; display: inline-grid; place-items: center; color: var(--muted); border-radius: 50%; flex: none; }
.help span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px currentColor; font-size: .75rem; font-weight: 700; }
.help:hover { color: var(--brand-press); }
.tip { margin: auto; width: min(300px, calc(100vw - 32px)); padding: 12px 14px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font-size: .875rem; line-height: 1.45; box-shadow: 0 12px 32px rgb(12 29 51 / .25); }
.tip::backdrop { background: transparent; }
.lbl-row { display: flex; align-items: center; gap: 8px; }
.lbl-row label { font-weight: 600; font-size: .9063rem; }
.lbl-row .help { margin-left: 0; }
.auth-foot .help { margin: -12px 0; }
/* Pages : plus d'air, titres plus forts ; le texte respire sous le titre. */
.ph { margin-bottom: 28px; gap: 8px; }
.ph h1 { font-size: 2rem; letter-spacing: -.03em; }
@media (min-width: 1024px) { .ph h1 { font-size: 2.375rem; } .ph { margin-bottom: 36px; } .main { padding-top: 48px; } }
.stack, .cols, .cols > div { gap: 32px; }
.gh h2 { font-size: 1.125rem; }
.hero-top .amt { font-size: 2.5rem; }
@media (min-width: 768px) { .hero-top .amt { font-size: 3rem; } }
.auth-box { gap: 28px; }
.auth-art .big { max-width: 14ch; }
@media (max-width: 899px) { .auth-art .big { display: none; } .auth-art-in { padding: 16px 20px; } }
.cl-head { gap: 20px; }
.facts dd { font-weight: 600; }
.seg label { font-size: .875rem; }
.tools { margin-bottom: 20px; }
@media (min-width: 768px) { .tools { grid-template-columns: minmax(0, 320px) minmax(0, 440px); justify-content: space-between; } }
.inv .badge { font-size: .78rem; }
.row.add { font-weight: 600; }
.seg label { white-space: nowrap; padding: 0 6px; }
.inv > .badge { justify-self: end; }
@media (min-width: 900px) { .inv:not(.sm) > .badge { justify-self: start; } }
@media (max-width: 767px) { .facts > div:last-child { grid-column: 1 / -1; } }
.r-t small.bad-t { color: var(--bad); }
.row.danger-t { color: var(--link); }
/* Vrai logo Makeset (assets/). */
.logo img { display: block; flex: none; }
.logo .lg-full { height: 30px; width: auto; }
.logo .lg-mark { height: 30px; width: 30px; }
.logo small { font-size: .8125rem; font-weight: 500; letter-spacing: 0; padding-left: 10px; border-left: 1px solid var(--hairline); line-height: 1.2; }
.auth-art .logo small { border-color: rgb(255 255 255 / .45); }
.crm .logo small { border-color: var(--night-2); }
.side .logo { flex-wrap: wrap; row-gap: 6px; }
@media (min-width: 900px) { .auth-art .lg-full { height: 36px; } }
.side .logo { flex-direction: column; align-items: flex-start; gap: 8px; }
.side .logo small { border: 0; padding-left: 1px; }
.side .logo .lg-full { height: 32px; }

/* ---------- Intégration Django (lot 1A) ----------
   Les actions qui modifient l'état passent en POST : boutons habillés comme
   les liens des maquettes. */
.nav-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: var(--tap); padding: 0 12px; border-radius: var(--r-s); text-align: left; font-weight: 500; font-size: .875rem; color: var(--muted); }
.nav-btn:hover { background: var(--tile); }
.crm .nav-btn { color: var(--night-ink); }
.crm .nav-btn:hover { background: var(--night-2); }
form.row-form { display: block; }
/* Tunnel de commande : cases de consentement et encadré de reconduction tacite (retour du juriste). */
.check a { color: var(--link); }
.hero form.consent .check { padding: 12px 16px 0; }
.hero form.consent .row { margin-top: 12px; border-top: 1px solid var(--hairline); }
.renew { margin: 16px 16px 0; padding: 14px 16px; border-radius: var(--r-s); background: var(--brand-soft); display: grid; gap: 6px; font-size: .875rem; line-height: 1.5; }
.renew h3 { font-size: .9375rem; font-weight: 700; }
.renew-date { padding-top: 2px; }
.mk-turnstile { min-height: 65px; }
.qr svg path { fill: var(--ink); }
.secret { flex-wrap: nowrap; gap: 8px; }
.secret #secret { line-height: 1.6; }
a.inv { color: var(--ink); text-decoration: none; }
/* Utilitaires (CSP stricte : aucun style en ligne). */
.u-forgot { justify-self: start; font-size: .875rem; }
.u-code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; font-size: 1.125rem; }
.u-mono { font-weight: 700; font-size: .8125rem; }
.u-plain { border: 0; padding: 0; margin: 0; }
.u-mt8 { margin-top: 8px; } .u-mt12 { margin-top: 12px; } .u-mt16 { margin-top: 16px; } .u-mt20 { margin-top: 20px; }

/* ---------- Gestion v0.1 (admin.makeset.be), d'après docs/design/centre-de-gestion/admin.css ---------- */
.tabbar button { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: var(--tabbar); color: var(--muted);
  font: inherit; font-size: .6875rem; font-weight: 600; letter-spacing: .005em; position: relative; border: 0; background: transparent; cursor: pointer; }
.tabbar button[aria-current="page"] { color: var(--brand-press); }
.tabbar button[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.tabbar button:focus-visible { outline-offset: -4px; }
.mtop .avatar span { background: var(--night-2); color: #fff; }
.side-foot .nav a[aria-current="page"] { background: var(--night-2); color: #fff; box-shadow: inset 3px 0 0 #4d9bff; }
.side-row { display: flex; align-items: center; gap: 8px; }
.side-row .nav { flex: 1; }
.lang-tg { display: inline-grid; grid-auto-flow: column; gap: 2px; padding: 3px; border-radius: 10px; background: var(--night-2); flex: none; }
.lang-tg button { display: grid; place-items: center; min-width: var(--tap); min-height: var(--tap); border: 0; border-radius: 7px; background: transparent; font: inherit; font-size: .75rem; font-weight: 700; color: var(--night-ink); cursor: pointer; letter-spacing: .02em; }
.lang-tg button[aria-pressed="true"] { background: #fff; color: var(--night); }
.lang-tg button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.up { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.down { color: var(--bad); font-weight: 600; font-size: .875rem; white-space: nowrap; }
.app-host { overflow-wrap: anywhere; }
.role { color: var(--muted); font-size: .875rem; text-align: right; }
/* Factures de tous les clients : client en gras sur téléphone, date en 1re colonne au-delà. */
.inv .w-only { display: none; }
@media (min-width: 900px) { .inv:not(.sm) .w-only { display: block; } .inv:not(.sm) .m-only { display: none; } }
.nw { white-space: nowrap; }
