/* 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; }
/* Cinq entrées dont « Modifications » / « Abonnement » : le libellé tient dans sa colonne dès 360 px. */
.tabbar { padding-inline: 2px; }
.app .tabbar a, .app .tabbar button { font-size: min(.6875rem, 2.8vw); letter-spacing: -.01em; white-space: nowrap; }
/* Champ ou bouton atteint au clavier (Tab, « Suivant » du téléphone) : jamais
   caché sous le bandeau du haut ni sous la barre du bas. */
@media (max-width: 1023px) {
  html:has(body[data-layout="app"]) { scroll-padding: 64px 0 calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)); }
}
/* Téléphone, clavier ouvert : la barre du bas flotterait au-dessus du clavier,
   sur le bouton d'envoi ; elle s'efface le temps de la saisie. */
@media (max-width: 1023px) and (pointer: coarse) {
  body:has(.main :is(textarea, select, input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [type="submit"], [type="button"])):focus) .tabbar { display: none; }
}

@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); }
  /* Contenu centré dans la zone à droite du menu, 1232 px de contenu au plus (Google Admin, Stripe). */
  .main { width: 100%; margin: 0 auto; padding: 40px 48px 64px; max-width: 1328px; }
}

/* 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; }
.f2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; }
/* Un champ de date garde sinon sa largeur propre (188 px dans Chrome) et déborde sur la colonne voisine à 390 px. */
.f2 > .field, input[type="date"].in { min-width: 0; }
/* Date en demi-largeur : illisible sous 600 px (« 26 oct. 2026 » tronqué), une seule colonne. */
@media (max-width: 599px) { .f2:has(input[type="date"]) { grid-template-columns: minmax(0, 1fr); } }
.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); }
/* Menus déroulants (select.in) : une seule implémentation, dans makeset-tokens.css. */
/* Champs de date : même champ que les autres, icône calendrier maison à
   droite ; le calendrier ouvert reprend la couleur d'accent (accent-color). */
input[type="date"].in { position: relative; display: flex; align-items: center; padding-right: 48px; cursor: text;
  font-variant-numeric: tabular-nums; accent-color: var(--brand); color-scheme: light; }
input[type="date"].in::-webkit-datetime-edit { padding: 0; }
input[type="date"].in::-webkit-datetime-edit-fields-wrapper { padding: 0; }
input[type="date"].in::-webkit-datetime-edit-text { color: var(--muted); padding: 0 1px; }
input[type="date"].in::-webkit-datetime-edit-day-field:focus,
input[type="date"].in::-webkit-datetime-edit-month-field:focus,
input[type="date"].in::-webkit-datetime-edit-year-field:focus { background: var(--desk-d, var(--tile)); color: var(--ink); border-radius: 4px; }
input[type="date"].in::-webkit-calendar-picker-indicator { position: absolute; right: 10px; top: 50%; translate: 0 -50%;
  width: 16px; height: 16px; margin: 0; padding: 6px;
  cursor: pointer; opacity: 1; border-radius: 6px; color: transparent;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6779' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='3'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") center / 16px 16px no-repeat; }
input[type="date"].in::-webkit-calendar-picker-indicator:hover { background-color: var(--desk-d, var(--tile)); }
.in:focus-visible { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
.in[aria-invalid="true"] { border-color: var(--bad); }
.in[aria-invalid="true"]:focus-visible { outline-color: var(--bad); }
.in-wrap { position: relative; display: flex; }
.in-wrap .in { padding-right: 48px; }
/* Bouton dans le champ (afficher le mot de passe) : carré discret, centré,
   anneau de focus au clavier seulement, jamais de grand cercle bleu au clic. */
.in-wrap .btn.icon { position: absolute; right: 4px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; min-height: 36px;
  border-radius: 8px; box-shadow: none; }
.in-wrap .btn.icon .ic { width: 18px; height: 18px; }
.in-wrap .btn.icon:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.in-wrap .btn.icon:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; box-shadow: none; }
.in-wrap .btn.icon[aria-pressed="true"] { color: var(--ink); }
.pay-pending { margin-bottom: 16px; }
.form { display: grid; gap: 18px; }
.err { color: var(--bad); font-size: .8125rem; font-weight: 500; }
.note { padding: 12px 14px; border-radius: var(--r-s); background: var(--tile); font-size: .9063rem; line-height: 1.5; }
.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; }
.sw-row label small.warn { color: var(--warn); }
.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 .late { visibility: hidden; animation: late-show 0s 4s forwards; }
@keyframes late-show { to { visibility: visible; } }
.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 h1 .badge { margin-left: 10px; vertical-align: middle; letter-spacing: 0; }
.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; }
.drop.over { border-color: var(--brand); background: color-mix(in oklab, var(--brand-soft) 45%, white); }
.drop:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.field > label.drop { font-weight: 400; font-size: 1rem; }
.drop-row { grid-template-columns: auto 1fr; justify-items: start; align-items: center; column-gap: 12px; row-gap: 2px; padding: 14px 16px; text-align: left; position: relative; }
.drop-row .ic { grid-row: span 2; width: 22px; height: 22px; }
.field .file-ok + .err, .field .drop + .err { margin-top: 6px; }
.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; } }
.toast[popover] { top: auto; right: auto; margin: 0; border: 0; overflow: visible; }

@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; } }
.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; white-space: normal; }
.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; }
/* La bulle s'ouvre sous son « ? », centrée sur lui (ancre implicite de
   popovertarget), au-dessus s'il manque la place, jamais hors de l'écran.
   Navigateur sans positionnement d'ancre : centrée dans la fenêtre, comme avant. */
@supports (position-area: block-end) {
  .tip { inset: auto; margin: 6px 16px; position-area: block-end span-all; justify-self: anchor-center; position-try-fallbacks: flip-block; }
}
.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; }
/* Sous 400 px, un libellé long (« Nouveau prospect ») passe sur deux lignes au lieu d'élargir la carte. */
@media (max-width: 399px) { .seg { min-width: 0; } .seg label { white-space: normal; } }
.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 0 0; }
.hero form.consent .btn.wide { width: 100%; margin-top: 20px; }
.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; }
.narrow { max-width: 560px; }
.err-box { display: grid; gap: 12px; }
.tipcard { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: center; margin-bottom: 12px;
  padding: 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-1), 0 0 0 1px var(--hairline); }
.tipcard .r-ic { background: var(--brand-soft); color: var(--brand); }
.tipcard .r-t { display: grid; gap: 2px; }
.tipcard .r-t small { color: var(--muted); font-size: .8438rem; line-height: 1.4; }
.tipcard .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 480px) { .tipcard { grid-template-columns: auto minmax(0, 1fr) auto; } .tipcard .btn { grid-column: auto; } }
form:has(input[name="customer_type"][value="individual"]:checked) [data-vat] { display: none; }
.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; }
.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; }

/* ---------- Modules (maquette docs/design/modules/, 19/10) ---------- */
.mod-area { margin-top: 32px; }
.mods { display: grid; gap: 12px; }
@media (min-width: 640px) { .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .mods { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.mod { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; gap: 4px 12px; padding: 16px 16px 0;
  background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-1), 0 0 0 1px var(--hairline); }
.mod h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; align-self: baseline; }
.mod .pr { display: grid; justify-items: end; align-self: baseline; text-align: right; font-variant-numeric: tabular-nums; line-height: 1.35; }
.mod .pr b { font-weight: 600; white-space: nowrap; }
.mod .pr small { color: var(--muted); font-size: .8125rem; white-space: nowrap; }
.mod .pr s, .r-v s { color: var(--muted); font-weight: 400; margin-right: 6px; text-decoration-thickness: 1px; }
.mod > p { grid-column: 1 / -1; color: var(--muted); font-size: .875rem; line-height: 1.45; max-width: 46ch; }
.mod .tag { justify-self: start; grid-column: 1 / -1; margin-top: 6px; }
.mod-f { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; margin-top: 12px; border-top: 1px solid var(--hairline); }
.mod-f .mst { font-size: .9063rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.mod.on .mod-f .mst { color: var(--ink); }
.mod-f .mst.end { color: var(--ink); font-weight: 500; cursor: default; }
.mod-f .btn { min-height: 38px; padding: 0 14px; font-size: .875rem; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--tile); color: var(--ink); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.big-p { padding: 4px 4px 0; display: grid; gap: 4px; }
.big-p b { font-size: 2rem; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.big-p b small { font-size: .9375rem; font-weight: 600; letter-spacing: 0; margin-left: 6px; }
.big-p > span { color: var(--muted); font-size: .9375rem; }
.big-p > .tag { justify-self: start; color: var(--ink); font-size: .78rem; margin-top: 4px; }
.inc-l .row { min-height: 48px; }
.ic.ok-ic { width: 20px; height: 20px; color: var(--brand-press); stroke-width: 2.25; }
.sub-h { margin: 16px 4px 10px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.sub-h span { font-weight: 500; margin-left: 6px; }
.gh.svc-h { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; row-gap: 2px; margin-bottom: 4px; }
.svc-h h2 { grid-column: 1; }
.svc-h .gh-m { grid-column: 1; grid-row: 2; }
.svc-h .help { grid-column: 2; grid-row: 1 / span 2; margin: 0 -10px 0 0; }
.others { margin-top: 16px; }
.others summary { list-style: none; cursor: pointer; }
.others summary::-webkit-details-marker { display: none; }
.others summary .ic { transition: rotate .15s; }
.others[open] summary .ic { rotate: 90deg; }
.others summary:hover { background: var(--canvas); }
.others summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.other { padding: 14px 16px 12px; display: grid; gap: 6px; }
.other-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.other-h b { font-weight: 700; }
.other-h span { color: var(--muted); font-weight: 600; font-size: .9375rem; white-space: nowrap; }
.other p { color: var(--muted); font-size: .875rem; line-height: 1.45; max-width: 60ch; }
.other-f { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
.other-f small { color: var(--muted); font-size: .8125rem; }
.other-f .btn { min-height: 38px; padding: 0 14px; font-size: .875rem; }
/* Gestion : catalogue des modules, offrir un module. */
.cat { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 4px 14px; width: 100%; min-height: 64px; padding: 10px 12px 10px 16px; text-align: left; background: var(--surface); color: var(--ink); }
.cat + .cat { border-top: 1px solid var(--hairline); }
.cat:hover { background: var(--canvas); }
.cat:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.cat .d { display: grid; gap: 1px; min-width: 0; }
.cat .d b { font-weight: 600; }
.cat .d small { color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.cat .c-m, .cat .c-y, .cat .c-n { display: none; }
.cat .badge { justify-self: end; }
.cat.off .d b { color: var(--muted); }
.cat-head { display: none; }
@media (min-width: 900px) {
  .cat, .cat-head { grid-template-columns: minmax(0, 1fr) 7rem 7rem 5.5rem 6.5rem 18px; gap: 16px; padding-right: 16px; }
  .cat { min-height: 60px; }
  .cat .d small { display: none; }
  .cat .c-m, .cat .c-y, .cat .c-n { display: block; text-align: right; font-variant-numeric: tabular-nums; }
  .cat .c-y, .cat .c-n { color: var(--muted); }
  .cat .badge { justify-self: start; }
  .cat-head { display: grid; padding: 10px 16px; font-size: .8125rem; font-weight: 600; color: var(--muted); background: var(--canvas); }
  .cat-head .r { text-align: right; }
}
.muted-b { color: var(--muted); font-weight: 500 !important; }
.pick.dis { cursor: not-allowed; }
.pick.dis .r-t b, .pick.dis .price { color: #8792a2; }
.sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; }
.sum span { color: var(--muted); font-size: .9375rem; }
.sum b { font-weight: 700; font-size: 1.0625rem; font-variant-numeric: tabular-nums; text-align: right; }
.sum .sum-then { display: block; font-weight: 500; color: var(--muted); font-size: .8125rem; }
.seg-w { display: grid; gap: 8px; }
.seg-w > .lbl { font-weight: 600; font-size: .9063rem; padding: 0 2px; }
/* Surveillance : pastille d'état (vert, orange, rouge), seule couleur hors accent. */
.st { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: inline-block; }
.st.ok { background: var(--ok); }
.st.warn { background: #d97706; }
.st.bad { background: var(--bad); }
.row .st { margin: 0 4px 0 2px; }
.st-t { color: var(--muted); font-size: .8125rem; white-space: nowrap; text-align: right; display: grid; }
.st-t small { font-size: .8125rem; }
.mon-sum { font-size: 1.0625rem; }
.mon-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mon-act .seg-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* Disponibilité : barre de 30 jours (un segment par jour) et chiffres 24 h, 7 j, 30 j. */
.ub { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 2px; width: 100%; }
.ub-d { height: 20px; border-radius: 2px; background: var(--tile); }
.ub-d.ok { background: var(--ok); }
.ub-d.warn { background: #d97706; }
.ub-d.bad { background: var(--bad); }
.ub-w { display: none; flex: none; width: 150px; }
.ub-w .ub-d { height: 16px; }
@media (min-width: 640px) { .ub-w { display: block; } }
.up-v { color: var(--ink); font-weight: 600; font-size: .875rem; }
.up-card { padding: 16px; display: grid; gap: 14px; }
.up-card > * + * { border-top: 0; }
.up-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.up-nums small { display: block; color: var(--muted); font-size: .8125rem; }
.up-nums b { font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; }
.mon-row { gap: 10px; }
.mon-row .r-t { min-width: 0; flex: 1; overflow-wrap: anywhere; }
@media (min-width: 640px) { .mon-row .st-t { min-width: 4.5em; } }
/* Détail d'une sonde : graphe heure par heure (48 h) ou jour par jour (7 j, 30 j). */
.seg-a { max-width: 320px; margin-bottom: 16px; }
.seg-a a { display: grid; place-items: center; min-height: 36px; padding: 0 10px; border-radius: 9px; font-weight: 600; font-size: .875rem; color: var(--muted); text-decoration: none; }
.seg-a a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(12 29 51 / .14); }
.seg-a a:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.hg-w { position: relative; }
.hg { display: grid; grid-template-columns: repeat(48, minmax(0, 1fr)); gap: 2px; height: 36px; }
.hg.n7 { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.hg.n30 { grid-template-columns: repeat(30, minmax(0, 1fr)); }
@media (max-width: 479px) { .hg.n48 { gap: 1px; } }
.hg-b { border-radius: 2px; background: var(--tile); cursor: default; outline: none; }
.hg-b.ok { background: var(--ok); }
.hg-b.warn { background: #d97706; }
.hg-b.bad { background: var(--bad); }
.hg-b:hover, .hg-b:focus { box-shadow: inset 0 0 0 40px rgb(255 255 255 / .35); }
.hg-t { display: none; position: absolute; left: 0; right: 0; top: 36px; z-index: 1; padding-top: 6px; background: var(--surface); color: var(--ink); font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; }
.hg-b:hover .hg-t, .hg-b:focus .hg-t { display: block; }
.hg-cap { display: flex; justify-content: space-between; padding-top: 6px; color: var(--muted); font-size: .8125rem; }
/* Aperçu « Voir comme le client » : bandeau fixe, contenu non cliquable. */
.pv-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 6px 16px; background: var(--ink); color: #fff; font-size: .875rem; font-weight: 600; }
.pv-t { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.pv-t .ic { flex: none; }
.pv-x { flex: none; color: #fff; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }
.pv-bar form { display: contents; }
button.pv-x { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.pv-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
/* Actions désactivées : boutons atténués ; lignes et liens lisibles (contraste AA), seul le chevron l'est. */
[data-preview] [data-pv-off] { cursor: not-allowed; }
/* Lien-bouton désactivé par l'aperçu (« Payer »…) : il reçoit le clic pour montrer la mention. */
[data-preview] a.btn[data-pv-off] { pointer-events: auto; }
[data-preview] :is(.btn, .nav-btn, .pv-btn)[data-pv-off] { opacity: .45; }
[data-preview] [data-pv-off]:not(.btn, .nav-btn) > .ic:last-child { opacity: .35; }
/* Bandeau sur une ligne : le nom long se coupe avec des points de suspension. */
.pv-bar { flex-wrap: nowrap; box-shadow: inset 0 -1px rgb(255 255 255 / .14); }
.pv-l { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* Téléphone : la mention s'affiche sous l'en-tête (bandeau 44 + barre 56), sur le fond clair, jamais sur le bouton touché. */
@media (max-width: 1023px) {
  [data-preview] .toast[popover] { top: 108px; bottom: auto; width: max-content; white-space: nowrap; }
}
.pv-refused { display: grid; justify-items: center; gap: 10px; max-width: 420px; margin: 12vh auto 0; text-align: center; }
.pv-refused .ic { width: 28px; height: 28px; color: var(--muted); }
.pv-refused h1 { margin: 0; color: var(--ink); font-size: 1.25rem; text-wrap: balance; }
.pv-refused .btn { margin-top: 8px; }
@media (min-width: 1024px) { .pv .side { top: 44px; height: calc(100dvh - 44px); } }
/* Liste à cocher (coche à droite), catégories de clients. */
.ck { cursor: pointer; }
.ck input { position: absolute; opacity: 0; pointer-events: none; }
.ck .ck-m { flex: none; color: var(--brand); visibility: hidden; }
.ck:has(input:checked) .ck-m { visibility: visible; }
.ck:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: -2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pv .mtop { top: 44px; }
.ph-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-acts .pill { margin-left: 2px; }
.cat-f { max-width: 320px; }
@media (min-width: 768px) { .tools .cat-f { grid-column: 1; } }
.r-link { color: inherit; text-decoration: none; }
.r-link:hover b { text-decoration: underline; text-underline-offset: 3px; }
.ghint .ic { width: 16px; height: 16px; vertical-align: -3px; }
.inbox-alert { display: flex; gap: 6px; align-items: flex-start; }
.inbox-alert .ic { flex: none; margin-top: 1px; vertical-align: 0; color: var(--warn); }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; padding: 14px 16px; margin: 0; font: inherit; }
.pv-x .ic { display: none; }
@media (max-width: 479px) {
  .pv-bar { font-size: .8125rem; }
  .pv-x { min-width: 44px; justify-content: flex-end; }
  .pv-x .ic { display: block; }
  .pv-xl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* Aperçu d'une facture : plein écran sur téléphone, grand dialogue au-delà. */
dialog.ds.pdfv { height: 100dvh; max-height: 100dvh; border-radius: 0; }
.pdfv .ds-h { padding-top: calc(6px + env(safe-area-inset-top)); }
.pdfv-f { flex: 1 1 auto; min-height: 0; width: 100%; border: 0; border-top: 1px solid var(--hairline); background: var(--tile); }
.pdfv .ds-f .acts { display: flex; gap: 10px; }
@media (min-width: 768px) {
  dialog.ds.pdfv { width: min(1040px, calc(100vw - 48px)); height: calc(100dvh - 48px); max-height: calc(100dvh - 48px); border-radius: 18px; }
  .pdfv .ds-h { padding-top: 12px; }
}

/* ---------- Formules en cartes (Changer de formule, souscription, Gestion) ---------- */
/* Colonnes selon la place réelle de la section (requête de conteneur), pas la
   largeur de l'écran : la section peut être étroite à côté du menu. */
:has(> .pcards) { container-type: inline-size; }
.pcards { display: grid; gap: 12px; }
@container (min-width: 520px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (min-width: 960px) { .pcards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pcard { min-width: 0; overflow-wrap: break-word; }
.pcard > .btn { white-space: normal; }
/* Sans abonnement : formules sur toute la largeur, données de facturation au-dessus. */
.plans-page > .stack:last-child { order: -1; }
/* Sous-grille : badges, nom, prix, lignes et bouton alignés d'une carte à l'autre. */
.pcard { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 10px; padding: 18px 18px 18px; background: var(--surface); border-radius: var(--r);
  box-shadow: var(--shadow-1), 0 0 0 1px var(--hairline); min-width: 0; }
.pcard.rec { box-shadow: var(--shadow-1), 0 0 0 2px var(--brand); }
.pc-badges { display: flex; gap: 6px; flex-wrap: wrap; min-height: 24px; }
.pcard h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.015em; }
.pc-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.pc-price b { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.pc-price small { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.pc-f { list-style: none; margin: 4px 0 0; padding: 14px 0 4px; border-top: 1px solid var(--hairline); display: grid; gap: 10px; align-content: start; }
.pc-f li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; font-size: .9375rem; line-height: 1.4; }
.pc-f .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--brand); stroke-width: 2.25; }
.pc-f .pf-no { color: var(--faint); }  /* contraste AA (4,5:1), #8792a2 donnait 3,15 */
.pf-d { display: block; width: 10px; height: 2px; margin: 9px 0 0 4px; border-radius: 1px; background: var(--border); }
.pcard > .btn { width: 100%; align-self: end; }
.pc-f:not(:has(li)) { border-top: 0; padding: 0; margin: 0; }
/* Feuille large (data-wide) : le comparatif tient sur une ligne au-delà de 1100 px. */
@media (min-width: 768px) { dialog.ds.wide { width: min(1120px, calc(100vw - 48px)); } }
@media (min-width: 1100px) { dialog.ds.wide .pcard { padding: 18px 16px 16px; } dialog.ds.wide .pc-price b { font-size: 1.75rem; } }

/* Gestion, Réglages > Formules : lignes du comparatif. */
.pf-row { display: grid; grid-template-columns: minmax(0, 1fr) 18px; align-items: center; gap: 4px 14px; width: 100%; min-height: 60px; padding: 10px 12px 10px 16px; text-align: left; background: var(--surface); color: var(--ink); }
.pf-row .d { display: grid; gap: 1px; min-width: 0; }
.pf-row .d b { font-weight: 600; }
.pf-row .d small { color: var(--muted); font-size: .8125rem; }
.pf-row .pf-c { display: none; }
.pf-row:hover { background: var(--canvas); }
.pf-head { display: none; }
@media (min-width: 768px) {
  .pf-row, .pf-head { grid-template-columns: minmax(0, 1fr) repeat(4, 6.5rem) 18px; }
  .pf-row .d small.m-only { display: none; }
  .pf-row .pf-c { display: grid; place-items: center; }
  .pf-row .pf-c .ic { width: 18px; height: 18px; color: var(--brand); stroke-width: 2.25; }
  .pf-row .pf-d { margin: 0; }
  .pf-head { display: grid; gap: 14px; padding: 10px 12px 10px 16px; color: var(--muted); font-size: .8125rem; font-weight: 600; }
  .pf-head > span:not(:first-child) { text-align: center; }
}
/* Téléphone : une carte sous l'autre, seulement ce qui est inclus (le tiret n'aide qu'à comparer côte à côte). */
@media (max-width: 639px) {
  .pcard { display: flex; flex-direction: column; gap: 10px; }
  .pc-badges:empty { display: none; }
  .pc-f .pf-no { display: none; }
  .pcard > .btn { margin-top: 4px; }
}
/* Souscription : bouton radio de la carte (« Choisir », puis « Choisie »). */
.pc-pick { position: relative; cursor: pointer; }
.pc-pick input { position: absolute; opacity: 0; pointer-events: none; }
.pc-pick .pc-on { display: none; align-items: center; gap: 6px; }
.pc-pick:has(input:checked) { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.pc-pick:has(input:checked) .pc-on { display: inline-flex; }
.pc-pick:has(input:checked) .pc-off { display: none; }
.pc-pick:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.pcard:has(.pc-pick input:checked) { box-shadow: var(--shadow-1), 0 0 0 2px var(--brand); }
section[aria-labelledby="h-plans"] .pcard.rec:not(:has(input:checked)) { box-shadow: var(--shadow-1), 0 0 0 1px var(--hairline); }
/* Mensuel / Annuel : une seule ligne de prix et un seul bouton visibles par carte. */
.pc-wrap { display: grid; gap: 14px; }
.pc-iv { justify-self: center; width: min(100%, 320px); margin-block: 16px 8px; }
.pc-wrap:not(:has(.pc-iv input[value="year"]:checked)) .iv-y { display: none; }
.pc-wrap:has(.pc-iv input[value="year"]:checked) .iv-m { display: none; }
/* Proposition d'une formule standard : même bascule, dans le bloc de la proposition. */
.offer-iv:not(:has(.pc-iv input[value="year"]:checked)) .iv-y { display: none; }
.offer-iv:has(.pc-iv input[value="year"]:checked) .iv-m { display: none; }
.offer-iv .pc-iv { width: min(100% - 32px, 320px); margin: 16px auto 4px; }
.pc-gift { flex-basis: 100%; color: var(--brand-press); font-size: .8125rem; font-weight: 600; }
.gh .more-f { margin-left: auto; }
.gh button.more { background: none; border: 0; color: var(--link); cursor: pointer; font: inherit; font-size: .875rem; font-weight: 600; }
.pc-badges { gap: 4px; } .pc-badges .badge { padding: 0 7px; font-size: .72rem; }

/* ---------- Navigation fluide (audit UX v0.5, 1.5) ----------
   Transition entre documents, CSS seul : la coque (menu, barres) reste en
   place, seul le contenu se fond. L'opt-in des transitions (et son arrêt si
   l'utilisateur réduit les animations) est en ligne dans espace/base.html :
   ici, il arrivait parfois trop tard (apps.espace.middleware.VT_STYLE). */
.side { view-transition-name: side; }
.mtop { view-transition-name: mtop; }
.tabbar { view-transition-name: tabbar; }
::view-transition-group(*) { animation-duration: .18s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(root) { animation: .12s ease-out both vt-out; }
::view-transition-new(root) { animation: .18s cubic-bezier(.2, .8, .2, 1) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; translate: 0 6px; } }
/* Retour pendant l'attente : léger état pressé sur les lignes. */
a.row:active, button.row:active, a.inv:active { background: var(--tile); }

/* =====================================================================
   v0.5, variante C (audit UX v0.5, 2.3 ; PRINCIPES.md règles 4, 6, 12)
   Fonds neutres, aucune tuile d'icône, lignes séparées par des filets,
   couleur réservée aux actions (bleu) et aux états (point + mot).
   La Gestion prend la même coque que l'espace client.
   ===================================================================== */
:root {
  /* Jetons de la variante C. Passer à une autre variante (D, « le bureau et la
     feuille ») = changer ces jetons, pas les règles : voir [data-shell="sheet"]. */
  /* Couleurs */
  --ink-2: #3a475b; --faint: #687284; --icon: #8a94a3;
  --hover: #f2f4f7; --active: #e6ebf2; --hairline: #e7eaef; --line-2: #d5dbe3;
  --dot-ok: #18915a; --dot-warn: #c97a0a; --dot-bad: #c4234a;
  /* Police et texte */
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --word: .09em;
  --h1: 1.5rem; --h1-lg: 1.75rem; --h1-w: 650; --sh: .8125rem;
  /* Espacements */
  --page-x: 56px; --page-top: 44px; --page-max: 1240px; --section: 40px; --col-gap: 56px; --row-h: 52px;
  /* Coque : barre latérale et zone de contenu */
  --side-w: 240px;
  --side: #f7f8fa;                       /* coque C retenue par Arnaud (19/10) */
  --side-edge: var(--hairline);          /* filet à droite du menu */
  --nav-on: var(--active); --nav-on-shadow: none;
  --desk: var(--surface);                /* fond derrière le contenu */
  --sheet: var(--surface); --sheet-gap: 0px; --sheet-r: 0px; --sheet-shadow: none;
}
/* Coque D (maquette *-d.html) : menu sur le « bureau » gris bleuté, contenu sur
   une feuille blanche posée dessus, élément actif du menu en morceau de feuille. */
:root[data-shell="sheet"] {
  --side: #eef0f4; --desk: #eef0f4; --side-edge: #eef0f4;
  --nav-on: var(--surface); --nav-on-shadow: 0 0 0 1px rgb(14 27 45 / .07), 0 1px 2px rgb(14 27 45 / .05);
  --sheet-gap: 8px; --sheet-r: 12px; --sheet-shadow: 0 0 0 1px rgb(14 27 45 / .07), 0 1px 2px rgb(14 27 45 / .05);
  --hover: rgb(14 27 45 / .045); --active: rgb(14 27 45 / .08);
}
body { word-spacing: var(--word); }
body[data-layout="app"] { background: var(--sheet); }
.ic { stroke-width: 1.5; }
.ic.lu { stroke-width: 1.5; }

/* ---------- Coque ---------- */
.mtop, .crm .mtop { background: rgb(255 255 255 / .94); border-bottom: 1px solid var(--hairline); }
.crm .mtop .logo small, .mtop .logo small { color: var(--muted); }
.avatar span, .mtop .avatar span { background: var(--active); color: var(--ink-2); font-weight: 650; }
.tabbar { background: rgb(255 255 255 / .96); }
.tabbar a, .tabbar button { color: var(--faint); font-weight: 550; }
.tabbar a[aria-current="page"], .tabbar button[aria-current="page"] { color: var(--brand-press); }
.tabbar a[aria-current="page"]::before, .tabbar button[aria-current="page"]::before { display: none; }
.tabbar .ic { width: 22px; height: 22px; }
.tabbar .cnt { background: none; color: var(--muted); left: calc(50% + 10px); top: 7px; min-width: 0; padding: 0; font-weight: 650; }
@media (min-width: 1024px) {
  /* Le fond du menu court sur toute la hauteur, même quand la page défile. */
  body[data-layout="app"] { background: linear-gradient(to right, var(--side) calc(var(--side-w) - 1px),
    var(--side-edge) calc(var(--side-w) - 1px) var(--side-w), var(--desk) var(--side-w)) no-repeat, var(--desk); }
  body[data-layout="app"] .app { grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .side, .crm .side { gap: 20px; padding: 20px 10px 14px; background: none; border-right: 0; }
  body:not(.crm) .side .logo small { display: none; }
  .side .logo { flex-direction: row; align-items: center; gap: 10px; padding: 0 10px; min-height: 36px; }
  .side .logo .lg-full { height: 26px; }
  .side .logo small, .crm .side .logo small { border: 0; padding: 0; color: var(--faint); font-size: .8125rem; font-weight: 550; }
  .nav, .crm .nav { gap: 1px; }
  .nav a, .crm .nav a { min-height: 34px; gap: 10px; padding: 0 10px; border-radius: 7px; color: var(--ink-2); font-size: .875rem; font-weight: 500; }
  .nav a .ic, .crm .nav a .ic { width: 16px; height: 16px; color: var(--icon); }
  .nav a:hover, .crm .nav a:hover { background: var(--hover); }
  .nav a[aria-current="page"], .crm .nav a[aria-current="page"], .side-foot .nav a[aria-current="page"] {
    background: var(--nav-on); color: var(--brand-press); font-weight: 600; box-shadow: var(--nav-on-shadow); }
  .nav a[aria-current="page"] .ic, .crm .nav a[aria-current="page"] .ic { color: var(--brand); }
  .nav .cnt, .crm .nav .cnt { background: none; color: var(--muted); min-width: 0; padding: 0; font-size: .75rem; font-weight: 600; }
  .nav-label { margin: 6px 10px -14px; font-size: .75rem; font-weight: 550; color: var(--faint); }
  .side-foot, .crm .side-foot { border-top: 1px solid var(--hairline); padding-top: 10px; gap: 0; }
  .who span:first-child, .crm .who span:first-child { width: 28px; height: 28px; background: var(--active); color: var(--ink-2); font-size: .75rem; font-weight: 650; }
  .who b, .crm .who b { color: var(--ink); font-size: .8125rem; }
  .who small, .crm .who small { color: var(--muted); font-size: .75rem; }
  .nav-btn, .crm .nav-btn { min-height: 34px; gap: 10px; padding: 0 10px; border-radius: 7px; font-size: .8125rem; color: var(--muted); }
  .nav-btn .ic { width: 16px; height: 16px; color: var(--icon); }
  .nav-btn:hover, .crm .nav-btn:hover { background: var(--hover); }
  .crm .side :focus-visible, .crm .mtop :focus-visible { outline-color: var(--brand); }
  /* La zone de contenu : la « feuille » (sans marge ni ombre en C). */
  .main, .main.wide { max-width: none; width: auto; margin: var(--sheet-gap) var(--sheet-gap) var(--sheet-gap) 0;
    min-height: calc(100dvh - 2 * var(--sheet-gap)); padding: var(--page-top) var(--page-x) 64px;
    background: var(--sheet); border-radius: var(--sheet-r); box-shadow: var(--sheet-shadow); }
  .main > .screen { max-width: var(--page-max); }
}

/* ---------- Titres ---------- */
.ph { margin: 0 0 28px; gap: 4px; }
.ph h1 { font-size: var(--h1); font-weight: var(--h1-w); letter-spacing: -.018em; line-height: 1.2; }
.ph p { color: var(--muted); font-size: .9375rem; }
@media (min-width: 1024px) { .ph h1 { font-size: var(--h1-lg); } .ph { margin-bottom: 36px; } }
.stack, .cols, .cols > div { gap: var(--section); }
@media (min-width: 1280px) {
  .cols { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--col-gap); }
}
.gh { margin: 0; padding: 0 0 8px; border-bottom: 1px solid var(--hairline); gap: 6px; min-height: 30px; align-items: center; }
.gh h2 { font-size: var(--sh); font-weight: 600; color: var(--ink-2); letter-spacing: .005em; }
.gh h2.bad-t { color: var(--ink-2); }
.gh .gh-m { font-size: .8125rem; }
.gh .more, .gh button.more { font-size: .8125rem; font-weight: 550; min-height: 30px; margin-block: -6px; }
.gh .more:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
.pill, .gh .pill { min-width: 0; height: auto; padding: 0; background: none; color: var(--faint); font-size: .8125rem; font-weight: 500; }
.ghint { padding: 8px 0 0; }
.sub-h { margin: 16px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--hairline); font-size: .8125rem; color: var(--ink-2); }

/* ---------- Lignes posées sur le fond, séparées par des filets ---------- */
.grp { background: none; border-radius: 0; box-shadow: none; overflow: visible; }
.grp > * + * { border-top: 0; }
.grp > * { border-bottom: 1px solid var(--hairline); }
.row, .inv, .cat, .pf-row { background: transparent; padding-left: 0; padding-right: 0; min-height: var(--row-h); gap: 16px; }
a.row:hover, button.row:hover, a.inv:hover, .inv:hover, .cat:hover, .pf-row:hover, .others summary:hover {
  background: var(--hover); box-shadow: -8px 0 0 var(--hover), 8px 0 0 var(--hover); }
a.row:active, button.row:active, a.inv:active { background: var(--active); box-shadow: -8px 0 0 var(--active), 8px 0 0 var(--active); }
a.row:focus-visible, button.row:focus-visible, .inv:focus-visible, .cat:focus-visible { outline-offset: 2px; border-radius: 4px; }
body[data-layout="app"] .r-ic:not(.u-mono) { display: none; }
.u-mono.r-ic { width: 28px; height: 28px; border-radius: 50%; background: var(--active); color: var(--ink-2); font-size: .75rem; }
.r-t b { font-weight: 550; font-size: .9375rem; }
.r-t small { font-size: .8125rem; }
.r-v { font-size: .875rem; color: var(--ink-2); }
.r-v b { font-weight: 600; }
.chev { width: 16px; height: 16px; color: var(--icon); stroke-width: 1.5; }
.row.add { color: var(--link); font-weight: 550; min-height: 48px; }
.kv { padding: 12px 0; min-height: 48px; }
.kv dt { font-size: .9375rem; }
.kv dd { font-weight: 550; }
.sw-row, .pick, .sum { padding-left: 0; padding-right: 0; }
.inv-head, .cat-head, .pf-head { background: none; padding-left: 0; padding-right: 0; color: var(--faint); font-size: .78rem; font-weight: 550; }
.hist li, .note-it, .other, .msg-body { padding-left: 0; padding-right: 0; }
.codes li { padding-left: 0; }
.cat, .cat-head { padding-right: 0; }
.others summary { padding-left: 0; padding-right: 0; }

/* Feuilles : fond blanc, groupes discrets. */
.ds-b { background: var(--surface); }
.ds-b .grp { border-top: 1px solid var(--hairline); }
.ds-b .gtitle { color: var(--ink-2); font-size: .8125rem; margin-left: 0; }

/* ---------- États : un point et un mot ---------- */
.state, .badge, .badge.ok, .badge.warn, .badge.bad, .badge.blue {
  display: inline-flex; align-items: center; gap: 7px; height: auto; padding: 0; border-radius: 0; background: none;
  color: var(--ink-2); font-size: .8125rem; font-weight: 550; white-space: nowrap; line-height: 1.3; }
.state::before, .badge::before { content: ""; display: block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #a3acb9; }
.state.ok::before, .badge.ok::before { background: var(--dot-ok); }
.state.warn::before, .badge.warn::before { background: var(--dot-warn); }
.state.bad, .badge.bad { color: var(--bad); }
.state.bad::before, .badge.bad::before { background: var(--dot-bad); }
.badge.plain, .badge.blue.plain { color: var(--muted); font-weight: 550; }
.badge.plain::before { display: none; }
.badge.blue.plain { color: var(--brand-press); }
.inv > .badge, .inv > .state { min-width: 0; justify-content: flex-start; }
.tag { background: none; padding: 0; height: auto; color: var(--brand-press); font-weight: 600; font-size: .8125rem; }
.st { width: 7px; height: 7px; background: #a3acb9; }
.st.ok { background: var(--dot-ok); }
.st.warn { background: var(--dot-warn); }
.st.bad { background: var(--dot-bad); }
.ub-d.warn, .hg-b.warn { background: var(--dot-warn); }
.bad-t, .badge.bad { font-weight: 550; }

/* ---------- Boutons ---------- */
.btn { border-radius: 8px; font-size: .875rem; font-weight: 600; padding: 0 16px; }
@media (min-width: 1024px) { .btn { min-height: 38px; } .btn.lg { min-height: 44px; } }
.btn.sec { box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.sec:hover { background: var(--hover); }
.btn .ic { width: 16px; height: 16px; }
.btn.text { padding: 0 6px; font-weight: 550; }
.btn.text:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
.link, .lnk { color: var(--link); font-weight: 550; text-decoration: none; }
.lnk:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Blocs aplatis (plus de cartes sur fond gris) ---------- */
.hero { background: none; border-radius: 0; box-shadow: none; overflow: visible; }
.hero-top, a.hero-top { padding: 0 0 20px; background: none; color: var(--ink); }
a.hero-top:hover { background: none; }
a.hero-top:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.hero-top .lbl { color: var(--muted); font-weight: 550; }
.hero-top .amt { font-size: 2.75rem; font-weight: 650; letter-spacing: -.03em; }
.hero-top .amt small { color: var(--muted); font-weight: 500; }
@media (min-width: 1024px) { .hero-top .amt { font-size: 3.5rem; } }
.hero-top .sub { color: var(--muted); }
.hero-top .chev { color: var(--icon); }
.hero > dl { border-top: 1px solid var(--hairline); }
.hero > dl > .kv { border-bottom: 1px solid var(--hairline); }
.cl-head { padding: 0 0 4px; background: none; box-shadow: none; border-radius: 0; }
.mono { background: var(--active); color: var(--ink-2); border-radius: 50%; }
.facts { border-color: var(--hairline); }
.mod, .pcard, .tipcard, .file-ok, .opt { box-shadow: 0 0 0 1px var(--hairline); }
.pcard.rec, .pcard:has(.pc-pick input:checked) { box-shadow: 0 0 0 2px var(--brand); }
section[aria-labelledby="h-plans"] .pcard.rec:not(:has(input:checked)) { box-shadow: 0 0 0 1px var(--hairline); }
.tipcard .r-ic { display: none; }
.tipcard { grid-template-columns: minmax(0, 1fr) auto; }
.seg { background: var(--hover); border-radius: 9px; }
.seg label { border-radius: 7px; }
.chip { box-shadow: inset 0 0 0 1px var(--line-2); }
.search .in, .in { border-color: var(--line-2); }

/* ---------- États vides : un titre, une action ---------- */
.void { display: grid; gap: 4px; justify-items: start; padding: 28px 0 32px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.gh + .void { border-top: 0; }
.void h2, .void b { font-size: 1.0625rem; font-weight: 650; letter-spacing: -.01em; }
.void p { color: var(--muted); font-size: .9375rem; }
.void .acts { margin-top: 14px; }
.empty { padding: 16px 0; }

/* ---------- Accueil client : carte « Votre site » (v0.5, style D) ---------- */
.site { display: grid; gap: 20px; margin-bottom: 48px; }
.site + .site { padding-top: 40px; border-top: 1px solid var(--hairline); }
@media (min-width: 1024px) {
  .site.has-shot { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--col-gap); align-items: start; margin-bottom: 64px; }
  .site:not(.has-shot) .site-facts { max-width: 560px; }
}
.site-shot { display: block; margin: 0; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--desk-d);
  box-shadow: 0 0 0 1px rgb(14 27 45 / .08), 0 2px 4px rgb(14 27 45 / .04), 0 16px 40px -16px rgb(14 27 45 / .28); }
.site-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.site-facts h2 { font-size: 20px; line-height: 26px; font-weight: 620; font-stretch: 104%; letter-spacing: -.01em; overflow-wrap: anywhere; }
.site-sub { margin-top: 2px; color: var(--muted); }
.uptime { margin-top: 20px; }
.up-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.up-top > span:last-child:not(.state) { font-size: 13px; color: var(--muted); }
.bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 2px; height: 22px; margin-top: 10px; }
.bars i { border-radius: 1.5px; background: #cdd4de; }
.bars i.none { background: #eceff3; }
.bars i.warn { background: var(--dot-warn); }
.bars i.bad { background: var(--dot-bad); }
.uptime .scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; line-height: 16px; color: var(--muted); }
.site-btns { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.site-btns .btn { flex: 1 1 0; }
.site-btns .btn .ic { width: 15px; height: 15px; }
.short { margin-top: 28px; }
.short > p { font-size: 12px; line-height: 16px; font-weight: 540; color: var(--muted); margin-bottom: 4px; }
.main .short .row { min-height: 44px; }
.nosite { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 48px; }
.nosite .acts { margin-top: 0; }
@media (max-width: 599px) { .site-btns .btn, .void .acts .btn { flex: 1 1 140px; } }
.r-v s { color: var(--muted); margin-right: 6px; font-weight: 420; }
.home .row > .state, .home .inv > .state { min-width: 4.5rem; }
.ask { color: var(--muted); }
.main .home .inv { grid-template-columns: minmax(0, 1fr) auto auto; }
.site-shot.sm { margin: 0 0 4px; border-radius: 8px; box-shadow: 0 0 0 1px var(--hairline); }

/* =====================================================================
   v0.5, contenu en style D (choix d'Arnaud, 19/10) : la coque reste C, la
   zone de contenu prend la typographie (Mona Sans, titres élargis), le
   rythme et les composants de la maquette *-d.html.
   ===================================================================== */
@font-face { font-family: "Mona Sans"; font-style: normal; font-weight: 400 700; font-stretch: 100% 112%; font-display: swap;
  src: url("../fonts/mona-sans-latin-subset.676329e6f469.woff2") format("woff2-variations"); }
:root {
  --font-content: "Mona Sans", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --ink: #0e1b2d; --ink-2: #364254; --muted: #5d6879; --faint: #5d6879; --icon: #7a8495;
  --hairline: #e7eaef; --line-2: #d4d9e1; --desk-d: #eef0f4; --link: #005cc9;
  --hover-c: rgb(14 27 45 / .045); --press-c: rgb(14 27 45 / .08);
  --ok-text: #0f7a43; --bad: #b11a42; --dot-ok: #17905a; --dot-warn: #c27406;
  --e1: 0 0 0 1px rgb(14 27 45 / .07), 0 1px 2px rgb(14 27 45 / .05);
  --e2: 0 4px 12px rgb(14 27 45 / .06), 0 12px 32px rgb(14 27 45 / .10);
  --r-m: 8px; --r-l: 12px; --ease: cubic-bezier(.2, 0, 0, 1);
  /* Échelle D : 12 / 13 / 14 / 16 / 20 / 26 / 32 / 44 / 56 */
  --h1: 26px; --h1-lg: 32px; --h1-w: 620; --sh: 14px; --row-h: 56px; --section: 40px; --col-gap: 48px;
}
.main, .ds, .tip, .toast { font-family: var(--font-content); word-spacing: normal; }
.main { font-size: 14px; line-height: 20px; font-weight: 420; }
.main .num, .main .r-v, .main .inv .m, .main .kv dd { font-variant-numeric: proportional-nums; }

/* Titres : Mona Sans élargie, la seule fantaisie. */
.ph h1 { font-size: var(--h1); line-height: 32px; font-weight: var(--h1-w); font-stretch: 108%; letter-spacing: -.015em; }
@media (min-width: 1024px) { .ph h1 { font-size: var(--h1-lg); line-height: 38px; } }
.ph p { font-size: 14px; }
.gh { padding-bottom: 10px; min-height: 0; }
.gh h2, .gh h2.bad-t { font-size: var(--sh); line-height: 20px; font-weight: 620; color: var(--ink); letter-spacing: 0; }
.gh .pill { color: var(--muted); font-size: 14px; font-weight: 500; }
.gh .more, .gh button.more { font-size: 13px; font-weight: 560; color: var(--link); }

/* Lignes : 56 px, survol arrondi qui déborde de 10 px, filets en retrait. */
.main .grp > *, .ds .grp > * { border-bottom: 0; box-shadow: inset 0 -1px 0 var(--hairline); }
.main .row, .main .inv, .main .cat { min-height: var(--row-h); gap: 14px; }
.main a.row, .main button.row, .main a.inv, .main button.inv, .main .cat, .main .pf-row {
  margin-inline: -10px; padding-inline: 10px; width: calc(100% + 20px); border-radius: var(--r-m);
  box-shadow: inset 10px 0 0 transparent, inset -10px 0 0 transparent; position: relative; }
.main a.row::after, .main button.row::after, .main a.inv::after, .main button.inv::after, .main .cat::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 1px; background: var(--hairline); }
.main .grp > a.row, .main .grp > button.row, .main .grp > a.inv, .main .grp > button.inv { box-shadow: none; }
.main a.row:hover, .main button.row:hover, .main a.inv:hover, .main button.inv:hover, .main .cat:hover {
  background: var(--hover-c); box-shadow: none; }
.main a.row:active, .main button.row:active, .main a.inv:active { background: var(--press-c); box-shadow: none; }
.main .r-t b { font-weight: 560; font-size: 14px; line-height: 20px; }
.main .r-t small, .main .inv .d small { font-size: 13px; line-height: 18px; color: var(--muted); }
.main .r-v { font-size: 14px; color: var(--ink-2); }
.main .kv { padding: 11px 0; min-height: 0; }
.main .kv dt { font-size: 14px; color: var(--muted); }
.main .kv dd { font-weight: 560; }
.main .inv .d b, .main .inv .m b { font-weight: 560; font-variant-numeric: proportional-nums; }

/* État : point + mot ; une vraie panne a un halo. */
.state, .badge { font-size: 13px; font-weight: 560; }
.state.bad::before, .badge.bad::before { box-shadow: 0 0 0 3px rgb(196 35 74 / .14); }

/* Boutons D : 36 px, léger relief. */
.btn { min-height: 36px; height: auto; padding: 0 14px; border-radius: var(--r-m); font-size: 14px; font-weight: 600;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 0 0 1px var(--brand-press), 0 1px 2px rgb(0 58 128 / .25);
  transition: background-color 120ms var(--ease), box-shadow 120ms var(--ease); }
.btn:active { box-shadow: inset 0 1px 2px rgb(0 0 0 / .2), 0 0 0 1px var(--brand-press); }
.btn.sec { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgb(14 27 45 / .06); }
.btn.sec .ic { color: var(--icon); }
.btn.sec:hover { background: #f7f8fa; }
.btn.text { box-shadow: none; color: var(--link); }
.btn.sm, .main .row .btn.text { min-height: 30px; padding: 0 10px; font-size: 13px; font-weight: 560; color: var(--ink-2);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.main .row .btn.text:hover { background: var(--hover-c); text-decoration: none; }
.btn.solid-bad, .btn.danger { box-shadow: none; }
.btn:disabled, .btn[aria-disabled="true"] { box-shadow: none; }
@media (max-width: 1023px) { .btn { min-height: 44px; } .btn.sm, .main .row .btn.text { min-height: 36px; } }
.lnk, .link { color: var(--link); font-weight: 560; }

/* Champs et filtres */
.main .in { border-color: var(--line-2); border-radius: var(--r-m); min-height: 36px; font-size: 14px; }
@media (max-width: 1023px) { .main .in { min-height: 44px; font-size: 16px; } }
.main .search .ic { width: 16px; height: 16px; color: var(--icon); left: 10px; }
.main .search .in { padding-left: 34px; }
.main .seg:not(.pc-iv, .form .seg) { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--desk-d); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.main .seg:not(.pc-iv, .form .seg) label { min-height: 28px; padding: 0 10px; border-radius: 7px; font-size: 13px; font-weight: 540; color: var(--ink-2); white-space: nowrap; }
.main .seg:not(.pc-iv, .form .seg) label:has(input:checked) { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--e1); }
.main .seg:not(.pc-iv, .form .seg) label span { color: var(--muted); font-weight: 500; }
/* Filtres (pas le choix Mensuel / Annuel ni les champs de formulaire) : défilent jusqu'au bord sur téléphone, en pastilles. */
@media (max-width: 767px) {
  .main .seg:not(.pc-iv, .form .seg) { display: flex; margin-inline: -16px; padding: 0 16px 2px; gap: 6px; background: none; border-radius: 0; max-width: none; width: auto; }
  .main .seg:not(.pc-iv, .form .seg) label { min-height: 36px; padding: 0 12px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line-2); flex: none; }
  .main .seg:not(.pc-iv, .form .seg) label:has(input:checked) { background: var(--ink); color: #fff; box-shadow: none; }
  .main .seg:not(.pc-iv, .form .seg) label:has(input:checked) span { color: rgb(255 255 255 / .72); }
}
.switch { width: 40px; height: 24px; }
.switch i { border-radius: 12px; background: #c9d0da; }
.switch i::after { top: 2px; left: 2px; width: 20px; height: 20px; box-shadow: 0 1px 2px rgb(14 27 45 / .25), 0 0 0 .5px rgb(14 27 45 / .06); }
.switch input:checked + i::after { translate: 16px 0; }
.void h2, .void b { font-size: 20px; line-height: 26px; font-weight: 620; font-stretch: 104%; }
.void p { font-size: 14px; }
.hero-top .amt { font-weight: 600; font-stretch: 110%; letter-spacing: -.03em; }
.cl-id h1 { font-size: 26px; line-height: 32px; font-weight: 620; font-stretch: 108%; letter-spacing: -.015em; }
@media (min-width: 1024px) { .cl-id h1 { font-size: 32px; line-height: 38px; } }
.ds-h h2 { font-family: var(--font-content); font-weight: 620; font-stretch: 106%; }
.home .r-v { display: block; white-space: nowrap; }
.shot-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.shot-f .ghint { padding: 0; }

/* ---------- Abonnement client (style D) : détail comme une facture ---------- */
@media (max-width: 1023px) { .desk { display: none !important; } }
@media (min-width: 1024px) { .mob { display: none !important; } }
.plan-name { display: flex; align-items: center; gap: 12px; font-weight: 600; flex-wrap: wrap; }
.plan .price { margin-top: 10px; font-size: 44px; line-height: 48px; font-weight: 600; font-stretch: 110%; letter-spacing: -.03em; font-variant-numeric: proportional-nums; }
.plan .price small { font-size: 15px; font-stretch: 100%; font-weight: 480; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
@media (min-width: 1024px) { .plan .price { font-size: 56px; line-height: 60px; } }
.plan-sub { margin-top: 8px; color: var(--muted); }
.plan .plan-sub.desk { margin-top: 16px; }
.bill { margin-top: 28px; }
.bill .line { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; }
.bill .line span:first-child { color: var(--ink-2); }
.bill .line span:last-child { white-space: nowrap; }
.bill .line s { color: var(--muted); margin-right: 8px; font-weight: 420; }
.bill .line.tot { margin-top: 6px; padding-top: 13px; box-shadow: 0 -1px 0 var(--ink); font-weight: 620; }
.bill .line.tot span:first-child { color: var(--ink); }
.bill .line.sub span { color: var(--muted); }
.next { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 14px 16px; border-radius: var(--r-l); background: var(--desk-d); }
.next b { display: block; font-weight: 600; }
.next small { display: block; font-size: 13px; color: var(--muted); }
.next .days { font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
details.more { box-shadow: 0 1px 0 var(--hairline); margin-top: 8px; }
details.more summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; cursor: pointer; list-style: none; font-weight: 560; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary .ic { width: 16px; height: 16px; color: var(--icon); transition: transform 160ms var(--ease); }
details.more[open] summary .ic { transform: rotate(180deg); }
details.more .bill { margin: 0 0 14px; }
.sub-page .mod-area { margin-top: 48px; }
.card-mark { flex: none; width: 38px; height: 26px; display: block; }
.mods-l .mod-row { min-height: 56px; }
.mods-l .others summary { min-height: 52px; }
.gh .gh-m { color: var(--muted); font-size: 13px; }
.gh .help { margin-left: auto; }
/* Feuille « Changer de formule » sur téléphone : choix en lignes, coche à droite. */
.opts { border: 0; margin: 0; padding: 0; min-width: 0; }
.popt { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 0; box-shadow: 0 1px 0 var(--hairline); cursor: pointer; position: relative; }
.popt input { position: absolute; opacity: 0; pointer-events: none; }
.popt .r-t { flex: 1; }
.popt .r-t b { font-weight: 600; }
.popt .p { font-weight: 600; white-space: nowrap; }
.popt .ck { width: 22px; height: 22px; flex: none; display: grid; place-items: center; color: var(--brand); visibility: hidden; }
.popt .ck .ic { width: 20px; height: 20px; stroke-width: 2; }
.popt:has(input:checked) .ck { visibility: visible; }
.popt:has(input:disabled) { cursor: default; color: var(--muted); }
.popt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.opts .btn.wide { width: 100%; margin-top: 16px; }
.opts .ghint { margin-top: 10px; }
.ds-b .opts .popt { padding-inline: 2px; }

/* ---------- Gestion : tableau de bord (style D) ---------- */
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 44px; box-shadow: 0 1px 0 var(--hairline), 0 -1px 0 var(--hairline); }
.fig { display: grid; align-content: start; gap: 4px; padding: 16px 0 18px; color: var(--ink); text-decoration: none; min-width: 0; }
.fig:nth-child(even) { padding-left: 16px; box-shadow: -1px 0 0 var(--hairline); }
.fig:nth-child(n+3) { border-top: 1px solid var(--hairline); }
.fig .l { font-size: 13px; color: var(--muted); }
.fig .val { font-size: 26px; line-height: 32px; font-weight: 620; font-stretch: 108%; letter-spacing: -.02em; white-space: nowrap; }
.fig .val small { font-size: 13px; font-stretch: 100%; color: var(--muted); font-weight: 480; letter-spacing: 0; margin-left: 4px; }
.fig .d { font-size: 12.5px; line-height: 16px; color: var(--muted); }
.fig .d b { color: var(--ok-text); font-weight: 600; }
.fig.bad .val { color: var(--bad); }
.fig:hover .l { color: var(--ink); }
.fig:focus-visible { outline-offset: -2px; }
@media (min-width: 1024px) {
  .figs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fig, .fig:nth-child(even) { padding: 20px 24px 22px; box-shadow: -1px 0 0 var(--hairline); }
  .fig:first-child { padding-left: 0; box-shadow: none; }
  .fig:nth-child(n+3) { border-top: 0; }
  .fig .val { font-size: 32px; line-height: 38px; }
}
.health { display: flex; gap: 20px; padding: 12px 0; box-shadow: 0 1px 0 var(--hairline); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.health b { font-weight: 640; color: var(--ink); }
.health .h-k { min-width: 56px; font-weight: 600; color: var(--ink); }
.when { color: var(--muted); font-size: 13px; white-space: nowrap; }
details.falco > summary { list-style: none; cursor: pointer; }
details.falco > summary::-webkit-details-marker { display: none; }
details.falco > summary .chev { transition: rotate .15s; }
details.falco[open] > summary .chev { rotate: 90deg; }
.main .cols > div > section + section, .main .cols > div > div + section { margin-top: 0; }

/* ---------- Gestion : liste Clients (style D) ---------- */
.cl-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.cl-tools .search { flex: 1 1 260px; }
.cl-tools .cat-f { flex: 0 1 240px; max-width: none; }
.cl-tools .seg { flex-basis: 100%; margin-top: 8px; }
@media (min-width: 768px) { .cl-tools .seg { flex-basis: auto; } }
@media (max-width: 767px) { .cl-tools .search { flex-basis: 100%; } .cl-tools .cat-f { flex: 1 1 100%; } .cl-tools .seg { order: 3; } }
.tbl { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.tbl th { text-align: left; font-size: 12.5px; line-height: 16px; font-weight: 540; color: var(--muted); padding: 10px 16px 10px 0; box-shadow: inset 0 -1px 0 var(--hairline); white-space: nowrap; }
.tbl td { padding: 12px 16px 12px 0; box-shadow: inset 0 -1px 0 var(--hairline); vertical-align: middle; }
.tbl tbody tr { position: relative; }
.tbl tbody tr:hover td { background: #f8f9fb; }
.tbl .r { text-align: right; }
.tbl b { font-weight: 560; display: block; }
.tbl small { display: block; color: var(--muted); font-size: 13px; line-height: 18px; }
.tbl td small + small { display: inline; }
.tbl td:last-child { padding-right: 0; width: 20px; }
.tbl tfoot td { box-shadow: none; padding-top: 14px; color: var(--muted); font-size: 13px; }
.tbl tfoot b { display: inline; color: var(--ink); font-weight: 620; font-size: 14px; }
.tbl .muted, .muted { color: var(--muted); }
.cell-link { color: inherit; text-decoration: none; }
.cell-link::after { content: ""; position: absolute; inset: 0; }
.cell-link:focus-visible { outline: none; }
.cell-link:focus-visible::after { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 6px; }
.dom-st { display: inline-flex; align-items: center; gap: 8px; font-weight: 520; }
.dom-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a3acb9; flex: none; }
.dom-st.ok::before { background: var(--dot-ok); } .dom-st.warn::before { background: var(--dot-warn); } .dom-st.bad::before { background: var(--dot-bad); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #a3acb9; margin-right: 8px; vertical-align: 2px; }
.dot.ok { background: var(--dot-ok); } .dot.warn { background: var(--dot-warn); } .dot.bad { background: var(--dot-bad); }
.mlist { margin-top: 8px; }
.main .seg label { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.main .seg label span { margin-left: 0; }
.tbl .chev { display: block; }
.mlist .r-t small, .mlist .r-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* D : chiffres proportionnels partout (les tabulaires de Mona Sans ont un zéro barré). */
.main *, .ds * { font-variant-numeric: proportional-nums !important; }

/* =====================================================================
   v0.5.1 : recherche rapide (Ctrl K / Cmd K) et « Annuler » après
   « Marquer traité » / « Vu » (static/espace/gestion.js).
   ===================================================================== */
.cmdk-btn { display: none; }
@media (min-width: 1024px) {
  .cmdk-btn:not([hidden]) { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; margin-top: -4px; padding: 0 8px 0 10px;
    border-radius: 7px; background: var(--surface); box-shadow: 0 0 0 1px var(--line-2); color: var(--muted); font-size: .8125rem; font-weight: 500; text-align: left; }
  .cmdk-btn:hover { box-shadow: 0 0 0 1px var(--field-line); color: var(--ink-2); }
  .cmdk-btn .ic { width: 15px; height: 15px; color: var(--icon); }
  .cmdk-btn span { flex: 1; }
}
kbd { font: 500 .6875rem/1 var(--font); color: var(--muted); padding: 3px 5px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.mtop-r { display: flex; align-items: center; gap: 2px; }
.cmdk-ic { color: var(--ink-2); }
.cmdk-ic .ic { width: 20px; height: 20px; }

dialog.cmdk { width: min(640px, calc(100vw - 32px)); max-width: none; max-height: min(560px, 76dvh); margin: 12vh auto auto; padding: 0; border: 0;
  border-radius: 12px; background: var(--surface); color: var(--ink); font-family: var(--font-content); overflow: hidden;
  box-shadow: 0 0 0 1px rgb(14 27 45 / .08), 0 24px 64px -12px rgb(14 27 45 / .32);
  transition: opacity 140ms var(--ease), translate 140ms var(--ease); }
dialog.cmdk[open] { display: flex; flex-direction: column; }
@starting-style { dialog.cmdk[open] { opacity: 0; translate: 0 -6px; } }
dialog.cmdk::backdrop { background: rgb(12 29 51 / .42); }  /* même voile que les feuilles */
.cmdk-f { flex: none; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 10px 0 16px; box-shadow: inset 0 -1px 0 var(--hairline); }
.cmdk-f:focus-within { box-shadow: inset 0 -2px 0 var(--brand); }
.cmdk-f .ic { width: 18px; height: 18px; color: var(--icon); }
.cmdk-f input { flex: 1; min-width: 0; height: 52px; border: 0; background: none; font-size: 16px; color: var(--ink); outline: none; }
.cmdk-f input::placeholder { color: var(--muted); }
.cmdk-x { flex: none; min-height: 32px; padding: 0 10px; border-radius: 7px; color: var(--muted); font-size: 13px; font-weight: 550; }
.cmdk-x:hover { background: var(--hover-c); color: var(--ink); }
.cmdk-l { overflow-y: auto; overscroll-behavior: contain; padding: 6px 0 8px; }
.cmdk-l:empty { display: none; }
.cmdk-h { padding: 12px 16px 4px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.cmdk-o { display: flex; align-items: baseline; gap: 12px; min-height: 44px; margin: 0 6px; padding: 12px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.cmdk-o b { flex: 0 1 auto; min-width: 0; font-size: 14px; line-height: 20px; font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-o small { flex: 0 1 auto; min-width: 0; margin-left: auto; font-size: 13px; line-height: 18px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-o[aria-selected="true"] { background: var(--hover-c); box-shadow: inset 2px 0 0 var(--brand); }
.cmdk-o[aria-selected="true"] b { color: var(--brand-press); }
.cmdk-e { padding: 20px 16px 24px; color: var(--muted); font-size: 14px; }
.cmdk-e:empty { display: none; }
@media (max-width: 767px) {
  dialog.cmdk { width: 100%; max-height: 100dvh; margin: 0 0 auto; border-radius: 0 0 14px 14px; }
  @starting-style { dialog.cmdk[open] { opacity: 0; translate: 0 -12px; } }
  .cmdk-o { flex-direction: column; gap: 0; padding: 8px 10px; }
  .cmdk-o small { margin-left: 0; }
}

/* « Marqué traité » + Annuler : popover manuel, au-dessus de tout. */
.undo { position: fixed; inset: auto 0 calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)) 0; margin: 0 auto; translate: 0 8px; opacity: 0;
  display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 32px); padding: 6px 6px 6px 16px; border: 0; border-radius: 10px;
  background: var(--ink); color: #fff; font: 500 14px/20px var(--font-content); box-shadow: 0 8px 24px rgb(14 27 45 / .24);
  transition: opacity 180ms var(--ease), translate 180ms var(--ease); pointer-events: none; overflow: visible; }
.undo:not(:popover-open) { display: none; }
.undo.on { opacity: 1; translate: 0 0; pointer-events: auto; }
.undo-b { min-height: 36px; padding: 0 12px; border-radius: 7px; color: #9cc8ff; font-weight: 600; }
.undo-b:hover { background: rgb(255 255 255 / .1); }
.undo-b:focus-visible { outline: 2px solid #9cc8ff; outline-offset: 0; }
#undo-t { padding: 8px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.undo:has(.undo-b[hidden]) { padding-right: 16px; }
@media (min-width: 1024px) { .undo { bottom: 24px; left: var(--side-w); } }
.leaving { overflow: hidden; }
section.is-empty { display: none; }
@media (prefers-reduced-motion: reduce) {
  dialog.cmdk, .undo { transition: opacity 1ms; }
  .undo, .undo.on { translate: none; }
}

/* ---------- Nos solutions (client sans formules d'hébergement) : une carte à lignes, le détail en feuille ---------- */
.sol-st { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; line-height: 18px; font-weight: 560; color: var(--ink-2); }
.sol-st .ic { width: 16px; height: 16px; color: var(--link); stroke-width: 2; }

/* ---------- Disponibilité verrouillée (Essentiel, Standard) : exemple fictif estompé ---------- */
.up-locked .bars { opacity: .45; filter: blur(1.5px) grayscale(1); }
.up-pro { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 560; color: var(--link); text-decoration: none; }
.up-pro .ic { width: 14px; height: 14px; stroke-width: 1.75; }
.up-pro:hover { text-decoration: underline; }
.up-hint { margin-top: 8px; font-size: 13px; line-height: 18px; color: var(--muted); }

/* ---------- Sur mesure : exemples concrets (carte de formule, « Nos solutions ») ---------- */
.pc-f .pf-ex { display: block; font-size: 13px; line-height: 18px; color: var(--muted); }
.pc-f li:not(.pf-ex) + .pf-ex { margin-top: 4px; }
.ex-l { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); font-size: .9375rem; line-height: 1.4; }
.up-lbl { font-size: 13px; font-weight: 560; color: var(--muted); }

/* ---------- MakeTrust (espace client) : score, courbe, actions ---------- */
.mt-body { display: grid; gap: 14px; padding: 14px 0 18px; border-bottom: 1px solid var(--hairline); }
@media (min-width: 900px) {
  .mt-body { grid-template-columns: minmax(170px, auto) minmax(0, 1fr) auto; align-items: center; gap: 36px; }
  .mt-body > .mt-acts { grid-column: 3; justify-content: flex-end; }  /* sans courbe, les actions restent à droite */
}
.mt-n { display: flex; align-items: baseline; gap: 4px; }
.mt-n b { font-size: 2.5rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.05; }
.mt-n span { color: var(--muted); font-size: .9375rem; }
.mt-n.mt-none { color: var(--muted); font-size: .9375rem; }
.mt-sub { margin-top: 6px; color: var(--muted); font-size: .8125rem; }
.mt-gain { color: var(--ink-2); font-weight: 600; }
.mt-chart { display: block; width: 100%; max-width: 420px; height: auto; overflow: visible; }
.mt-chart polyline { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mt-chart circle { fill: var(--surface); stroke: var(--brand); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.mt-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mt-acts form { display: contents; }
.mt-acts .pill { margin-left: 2px; }

/* ---------- Gestion : MakeTrust, tous les scans (style D) ---------- */
.mt-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.mt-tools .search { flex: 1 1 100%; }
.mt-tools select.in { flex: 1 1 140px; min-width: 0; }
@media (min-width: 768px) { .mt-tools .search { flex: 1 1 240px; } .mt-tools select.in { flex: 0 1 200px; } }
.mt-tbl .when { width: 1%; }
.mt-tbl a:not(.cell-link) { position: relative; z-index: 1; }
.mt-tbl .mt-mail { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-rep, .mt-co { color: var(--link); font-weight: 550; text-decoration: none; white-space: nowrap; }
.mt-rep:hover, .mt-co:hover { text-decoration: underline; }
.mt-tbl td:last-child { width: auto; text-align: right; }
.mt-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; font-size: 13px; }
.mt-figs { margin-bottom: 28px; }
.main .mt-body { margin-bottom: 32px; }
.mt-cat + .mt-cat { margin-top: 28px; }
details.mt-f > summary { list-style: none; cursor: pointer; }
details.mt-f > summary::-webkit-details-marker { display: none; }
details.mt-f > summary .chev { transition: rotate .15s; }
details.mt-f[open] > summary .chev { rotate: 90deg; }
.mt-f-b { display: grid; gap: 8px; padding: 0 0 16px; color: var(--ink-2); font-size: 14px; line-height: 20px; max-width: 72ch; }
.mt-f-b pre { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--desk-d); font: 13px/18px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Demande de modification (espace client) : formulaire à largeur de lecture. */
.chg-form { max-width: 640px; }
.chg-form [data-file-list] { margin-top: 8px; }
.chg-form [data-file-list] .r-t b { overflow-wrap: anywhere; }
.btn.text.danger { color: var(--bad); justify-self: start; margin-top: 8px; }
.btn.text.danger:hover { background: color-mix(in srgb, var(--bad) 8%, transparent); }

/* =====================================================================
   v0.6 : mélange des directions C (Makeset) et A (Workspace), choix
   d'Arnaud du 20/10 (maquettes ~/dev/design-v06).
   C : barre latérale marine du bleu du logo, capture du site sur aplat
   marine en ouverture, bande de chiffres clés marine (Gestion), chiffres
   clés en bleu. A : canevas gris clair, cartes blanches surélevées, titres
   de section en bleu, pastilles bleu pâle pleines, listes déroulantes A.
   Polices inchangées (Plus Jakarta Sans pour la coque, Mona Sans pour le
   contenu et les chiffres). Jetons d'abord, règles ensuite.
   ===================================================================== */
:root {
  /* Valeurs dans makeset-tokens.css (jetons --mk-*, autonomes) ; ici, les noms de ce fichier. */
  --navy: var(--mk-navy); --navy-2: var(--mk-navy-2); --navy-3: var(--mk-navy-3);
  --navy-ink: var(--mk-navy-ink); --navy-muted: var(--mk-navy-muted); --navy-icon: var(--mk-navy-icon); --navy-line: var(--mk-navy-line);
  --navy-accent: var(--mk-navy-accent); --navy-focus: var(--mk-navy-focus); --navy-ok: var(--mk-navy-ok); --navy-bad: var(--mk-navy-bad);
  --canvas: var(--mk-canvas); --card: var(--mk-surface); --card-r: var(--mk-r-lg); --card-x: var(--mk-card-x);
  --card-shadow: var(--mk-e-card); --line: var(--mk-line);
  --title: var(--mk-brand-press); --num: var(--mk-brand-press);
  --pill-bg: var(--mk-pill-bg); --pill-ink: var(--mk-pill-ink);
  --ctl-h: var(--mk-ctl-h); --ctl-h-sm: 32px; --ctl-r: var(--mk-r-sm); --ctl-line: var(--mk-ctl-line); --ctl-dis: var(--mk-canvas);
  --focus-ring: rgb(0 108 237 / .22);
  --side: var(--navy); --side-edge: var(--navy); --desk: var(--canvas); --sheet: var(--canvas);
  --sheet-gap: 0px; --sheet-r: 0px; --sheet-shadow: none;
  --section: var(--mk-gap); --col-gap: var(--mk-gap);
}

/* ---------- Coque marine ---------- */
@media (max-width: 1023px) { body[data-layout="app"] { background: var(--canvas); } }
.mtop, .crm .mtop { background: var(--navy); border-bottom: 0; }
.mtop .logo small, .crm .mtop .logo small { color: var(--navy-muted); border-color: var(--navy-line); }
.mtop .avatar span, .crm .mtop .avatar span { background: var(--brand); color: #fff; }
.mtop .cmdk-ic { color: var(--navy-ink); }
.mtop .btn.icon:hover { background: var(--navy-2); color: #fff; }
.mtop :focus-visible, .side :focus-visible, .tabbar :focus-visible { outline-color: var(--navy-focus); }
.tabbar { background: var(--navy); border-top: 0; }
.tabbar a, .tabbar button { color: var(--navy-muted); }
.tabbar a[aria-current="page"], .tabbar button[aria-current="page"] { color: #fff; }
.tabbar a[aria-current="page"] .ic, .tabbar button[aria-current="page"] .ic { color: var(--navy-accent); }
.tabbar .cnt { color: var(--navy-ink); }
@media (min-width: 1024px) {
  .side, .crm .side { background: var(--navy); }
  .side .logo small, .crm .side .logo small { color: var(--navy-muted); }
  .nav a, .crm .nav a { position: relative; min-height: 38px; color: var(--navy-ink); font-weight: 500; }
  .nav a .ic, .crm .nav a .ic { width: 18px; height: 18px; color: var(--navy-icon); }
  .nav a:hover, .crm .nav a:hover, .nav-btn:hover, .crm .nav-btn:hover { background: var(--navy-2); color: #fff; }
  .nav a[aria-current="page"], .crm .nav a[aria-current="page"], .side-foot .nav a[aria-current="page"] {
    background: var(--navy-3); color: #fff; font-weight: 600; box-shadow: none; }
  .nav a[aria-current="page"] .ic, .crm .nav a[aria-current="page"] .ic { color: var(--navy-accent); }
  .nav a[aria-current="page"]::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--navy-accent); }
  .nav .cnt, .crm .nav .cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--navy-3); color: var(--navy-ink); line-height: 20px; text-align: center; }
  .nav a[aria-current="page"] .cnt { background: var(--brand); color: #fff; }
  .nav-label { color: var(--navy-muted); }
  .side-foot, .crm .side-foot { border-top-color: var(--navy-line); }
  .who span:first-child, .crm .who span:first-child { background: var(--brand); color: #fff; }
  .who b, .crm .who b { color: #fff; }
  .who small, .crm .who small { color: var(--navy-muted); }
  .nav-btn, .crm .nav-btn { color: var(--navy-muted); }
  .nav-btn .ic { color: var(--navy-icon); }
  .crm .side :focus-visible { outline-color: var(--navy-focus); }
  .cmdk-btn:not([hidden]) { background: var(--navy-2); box-shadow: inset 0 0 0 1px var(--navy-line); color: var(--navy-muted); }
  .cmdk-btn:hover { box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28); color: #fff; }
  .cmdk-btn .ic { color: var(--navy-icon); }
  .cmdk-btn kbd { color: var(--navy-muted); box-shadow: inset 0 0 0 1px var(--navy-line); }
  .main, .main.wide { background: var(--canvas); }
}

/* ---------- Cartes : chaque section à en-tête devient une carte blanche ---------- */
.main section:not(.screen):has(> .gh), .main .card {
  background: var(--card); border-radius: var(--card-r); box-shadow: var(--card-shadow); padding: 0 var(--card-x) 8px; min-width: 0; }
.main section:not(.screen):has(> .gh) > .gh {
  margin: 0 calc(-1 * var(--card-x)); padding: 16px var(--card-x); border-bottom: 1px solid var(--line); min-height: 0; }
.main section:not(.screen):has(> .gh) section:has(> .gh) { background: none; border-radius: 0; box-shadow: none; padding: 0; }
.main section:not(.screen):has(> .gh) section:has(> .gh) > .gh { margin: 0; padding-inline: 0; }
.main .grp > :last-child, .main .grp > :last-child.row, .main details.grp:not([open]) > summary { box-shadow: none; }
.main .grp > a.row:last-child::after, .main .grp > button.row:last-child::after, .main .grp > a.inv:last-child::after { display: none; }
.main section:not(.screen):has(> .gh) > .ghint:last-child, .main section:not(.screen):has(> .gh) > p:last-child { padding-bottom: 16px; }
.main section:not(.screen):has(> .gh) > .form, .main section:not(.screen):has(> .gh) > form { padding-block: 16px; }
/* Carte de conseil juste sous le titre : même respiration que sous le filet d'un en-tête. */
.main section:not(.screen):has(> .gh) > .gh + .tipcard { margin-top: 16px; }
/* Titres de section en bleu, compteur en pastille bleu pâle, une seule action. */
.gh h2, .gh h2.bad-t { font-size: 16px; line-height: 22px; font-weight: 620; font-stretch: 104%; color: var(--title); }
.gh .pill, .pill { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--pill-bg); color: var(--pill-ink);
  font-size: 12.5px; line-height: 22px; font-weight: 600; text-align: center; }
.gh .gh-m { color: var(--muted); }
.gh .more, .gh button.more { color: var(--link); font-size: 14px; font-weight: 600; }
/* Sans en-tête : vide, une ligne, carte quand même. */
.main .void { background: var(--card); border: 0; border-radius: var(--card-r); box-shadow: var(--card-shadow); padding: 24px var(--card-x); }
.main section:not(.screen):has(> .gh) .void, .main .gh + .void { background: none; box-shadow: none; border-radius: 0; padding-inline: 0; }
.main .figs + .cols, .main .stack { gap: var(--section); }

/* ---------- Pastilles bleu pâle pour l'élément choisi ---------- */
.main .seg:not(.pc-iv, .form .seg) { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.main .seg:not(.pc-iv, .form .seg) label:has(input:checked) { background: var(--pill-bg); color: var(--pill-ink); box-shadow: none; }
.main .seg:not(.pc-iv, .form .seg) label:has(input:checked) span { color: var(--pill-ink); }
@media (max-width: 767px) {
  .main .seg:not(.pc-iv, .form .seg) { background: none; box-shadow: none; }
  .main .seg:not(.pc-iv, .form .seg) label { background: var(--card); }
  .main .seg:not(.pc-iv, .form .seg) label:has(input:checked) { background: var(--pill-bg); color: var(--pill-ink); box-shadow: inset 0 0 0 1px var(--pill-bg); }
  .main .seg:not(.pc-iv, .form .seg) label:has(input:checked) span { color: var(--pill-ink); }
}
.subnav { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.subnav a[aria-current="page"] { background: var(--pill-bg); color: var(--pill-ink); box-shadow: none; }

/* ---------- Champs (A) : même hauteur, bordure et focus que les listes déroulantes ---------- */
.in, .main .in, .search .in { min-height: var(--ctl-h); border: 1px solid var(--ctl-line); border-radius: var(--ctl-r); background-color: var(--surface); font-size: 15px; }
@media (max-width: 1023px) { .in, .main .in { font-size: 16px; } }
.in:hover, .main .in:hover { border-color: var(--ink); }
.in:focus-visible, .main .in:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus-ring); }
.in[aria-invalid="true"], .main .in[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.in:disabled { background-color: var(--ctl-dis); border-color: var(--line); color: var(--muted); cursor: not-allowed; opacity: 1; }
/* Champ à suffixe (« € HTVA », « € excl. VAT », « % ») : le cadre est porté par
   le conteneur et le suffixe occupe sa propre place, il ne recouvre jamais la
   saisie quelle que soit sa longueur (EN à 390 px, 25/10). */
.in-suffix { display: flex; align-items: center; gap: 8px; min-height: var(--ctl-h); padding-right: 14px;
  border: 1px solid var(--ctl-line); border-radius: var(--ctl-r); background-color: var(--surface); }
.in-suffix:hover { border-color: var(--ink); }
.in-suffix:has(.in:focus-visible) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus-ring); }
.in-suffix:has(.in[aria-invalid="true"]) { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.in-suffix:has(.in:disabled) { background-color: var(--ctl-dis); border-color: var(--line); }
.in-suffix .in, .main .in-suffix .in { flex: 1; min-width: 0; min-height: calc(var(--ctl-h) - 2px); padding-right: 0;
  border: 0; box-shadow: none; outline: none; background-color: transparent;
  text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.in-suffix span { flex: none; white-space: nowrap; color: var(--muted); font-size: .9375rem; }
/* Listes déroulantes : règles dans makeset-tokens.css (chargé après ce fichier). */
.search .in { padding-left: 40px; }
.main .search .ic { left: 14px; width: 18px; height: 18px; }
.main .search .in { padding-left: 42px; }

/* ---------- Chiffres clés en bleu (Mona Sans) ---------- */
.mt-n b, .up-nums b, .big-p b, .key-n { color: var(--num); }
/* Abonnement : le montant en noir gras, comme avant (retour d'Arnaud). */
.main .plan .price { color: var(--ink); font-weight: 700; }
.key-n { font-family: var(--font-content); font-size: 30px; line-height: 36px; font-weight: 620; font-stretch: 108%; letter-spacing: -.02em; overflow-wrap: anywhere; }

/* ---------- Gestion : bande de chiffres clés marine (C) ---------- */
.figs { background: var(--navy); border-radius: var(--card-r); box-shadow: none; margin-bottom: var(--section); overflow: hidden; }
.fig, .fig:nth-child(even) { padding: 18px 20px; box-shadow: none; color: #fff; }
.fig:nth-child(even) { box-shadow: -1px 0 0 var(--navy-line); }
.fig:nth-child(n+3) { border-top: 1px solid var(--navy-line); }
.fig .l, .fig .d, .fig .val small { color: #b7c6db; }
.fig .val { color: #fff; }
.fig .d b { color: var(--navy-ok); }
.fig.bad .val { color: var(--navy-bad); }
.fig:hover { background: var(--navy-2); }
.fig:hover .l { color: #fff; }
.fig:focus-visible { outline: 2px solid var(--navy-focus); outline-offset: -4px; border-radius: 12px; }
@media (min-width: 1024px) {
  .fig, .fig:nth-child(even), .fig:first-child { padding: 22px 26px 24px; box-shadow: -1px 0 0 var(--navy-line); }
  .fig:first-child { box-shadow: none; }
  .fig:nth-child(n+3) { border-top: 0; }
}

/* ---------- Surveillance (bloc santé) dans une carte ---------- */
.health { box-shadow: inset 0 -1px 0 var(--line); }
section:has(> .gh) > .health:last-child { box-shadow: none; }

/* ---------- Accueil client : le site sur aplat marine (C) ---------- */
.mtop .logo .lg-full { height: 24px; width: auto; }
.site { display: grid; gap: 24px; margin: 0 0 var(--section); padding: 24px 20px 0; border-radius: 20px; background: var(--navy); color: #fff; overflow: hidden; }
.site + .site { padding-top: 24px; border-top: 0; }
.site:not(.has-shot) { padding-bottom: 24px; }
.site-facts { display: grid; align-content: start; justify-items: start; gap: 0; min-width: 0; }
.site-st { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; color: #b7c6db; }
.site .state { color: var(--navy-ink); }
.site .state.ok { color: var(--navy-ok); }
.site .state.ok::before { background: #3ddc84; }
.site .state.warn::before { background: #f6b24a; }
.site .state.bad { color: var(--navy-bad); }
.site .state.bad::before { background: var(--navy-bad); box-shadow: 0 0 0 3px rgb(255 154 168 / .2); }
.site-facts h2 { font-size: 30px; line-height: 36px; font-weight: 640; font-stretch: 108%; letter-spacing: -.02em; color: #fff; overflow-wrap: anywhere; max-width: 100%; }
.site-sub { margin-top: 6px; color: #b7c6db; font-size: 15px; line-height: 22px; }
.site .uptime { margin-top: 18px; width: 100%; max-width: 420px; }
.site .bars i { background: rgb(255 255 255 / .55); }
.site .bars i.none { background: rgb(255 255 255 / .14); }
.site .bars i.warn { background: #f6b24a; }
.site .bars i.bad { background: var(--navy-bad); }
.site .uptime .scale { color: #b7c6db; }
.site-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; width: 100%; }
.site-btns .btn { flex: 0 0 auto; min-height: 44px; padding: 0 18px; font-size: 15px; }
.site-btns .btn.sec { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .4); }
.site-btns .btn.sec .ic { color: #fff; }
.site-btns .btn.sec:hover { background: rgb(255 255 255 / .08); }
.site :focus-visible { outline-color: var(--navy-focus); }
.site-ask { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 8px; color: #9cccff; font-weight: 600; font-size: 15px; text-decoration: none; }
.site-ask .ic { width: 18px; height: 18px; }
.site-ask:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site .short { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 18px; width: 100%; border-top: 1px solid var(--navy-line); }
.site .short a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 8px; background: rgb(255 255 255 / .1); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; }
.site .short a:hover { background: rgb(255 255 255 / .18); }
.site .up-locked { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--navy-line); max-width: none; }
.site .up-locked .bars { opacity: .5; filter: blur(1.5px); }
.site .up-locked .bars i { background: rgb(255 255 255 / .7); }
.site .up-lbl { color: #b7c6db; }
.site .up-pro { color: #9cccff; }
/* La capture, dans un cadre de navigateur, centrée dans l'aplat : même marge
   en haut, à droite et en bas que la marge gauche du texte (retour d'Arnaud). */
.site.has-shot { padding-bottom: 20px; }
.site-shot, .site .site-shot { display: block; margin: 0; aspect-ratio: auto; border-radius: 10px; overflow: hidden; background: var(--navy-3);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 24px 48px -20px rgb(0 0 0 / .55); align-self: center; min-width: 0; }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--navy-3); }
.shot-bar i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #4b6a93; }
.shot-bar span { margin-left: 10px; padding: 2px 10px; border-radius: 6px; background: var(--navy-2); color: #d5e0ee; font-size: 12px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.site-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
@media (min-width: 768px) {
  .site, .site.has-shot { padding: 32px; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; margin-bottom: var(--section); }
}
@media (min-width: 1280px) {
  .site, .site.has-shot { padding: 40px; gap: 40px; margin-bottom: var(--section); }
  .site.has-shot { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; }
  .site-facts h2 { font-size: 38px; line-height: 44px; }
}
/* Abonnement à l'accueil : la formule et l'échéance, sans montant. */
.sub-key { padding: 18px 0 8px; }
.sub-iv { margin-top: 2px; color: var(--muted); font-size: 14px; }
.main .home .kv { padding: 13px 0; }
details.svc-more { box-shadow: none; margin-top: 0; border-top: 1px solid var(--line); }
details.svc-more summary { justify-content: flex-start; gap: 6px; color: var(--link); font-weight: 600; min-height: 50px; }
details.svc-more summary .ic { color: var(--link); }
details.svc-more summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.svc-more .grp { border-top: 1px solid var(--line); }
.main .home .inv { grid-template-columns: minmax(0, 1fr) auto auto; }
.main .home .inv > .chev { display: block; }
.ask { padding: 4px 2px; }

/* ---------- Gestion : fiche client en onglets ---------- */
.cl-head { display: grid; gap: 16px; padding: 0; margin: 8px 0 20px; }
.cl-head .mono { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 18px; font-weight: 650; }
.cl-id h1 { color: var(--ink); }
@media (min-width: 1024px) { .cl-head { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } .cl-acts { flex-wrap: nowrap; } }
.facts-card { padding: 16px var(--card-x); margin-bottom: 20px; }
.facts-card .facts { padding-top: 0; border-top: 0; }
.tabs { display: flex; gap: 4px; margin: 0 0 var(--section); border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.tabs a { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; color: var(--ink-2); font-size: 15px; font-weight: 560; text-decoration: none; white-space: nowrap; border-radius: 8px 8px 0 0; }
.tabs a:hover { color: var(--ink); background: rgb(14 27 45 / .04); }
.tabs a[aria-current="page"] { color: var(--title); font-weight: 620; }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.tabs a:focus-visible { outline-offset: -3px; }
.tabs .pill { min-width: 20px; height: 20px; line-height: 20px; font-size: 12px; padding: 0 6px; }
@media (max-width: 767px) { .tabs { margin-inline: -16px; padding-inline: 8px; } .tabs a { padding: 0 10px; } }
.tabp[hidden] { display: none !important; }
.tabp > div:empty { display: none; }
.mt-key { padding: 18px 0 16px; }
.mt-key .mt-n b { font-size: 46px; line-height: 50px; font-weight: 650; font-stretch: 108%; }
.mt-key .mt-gain { margin-left: 8px; color: var(--ok-text); font-weight: 600; font-size: 15px; }
details.feat-more { box-shadow: none; margin: 0; }
details.feat-more summary { justify-content: flex-start; gap: 6px; color: var(--link); font-weight: 600; min-height: 52px; }
details.feat-more summary .ic { color: var(--link); }
details.feat-more summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
details.feat-more .grp { border-top: 1px solid var(--line); }

/* ---------- Listes et tableaux posés sur le canevas : en carte ---------- */
.main .screen > .grp, .main .screen > form > .grp:only-child { background: var(--card); border-radius: var(--card-r); box-shadow: var(--card-shadow); padding: 4px var(--card-x); }
.main .screen > .grp .inv-head { padding-top: 12px; }
.main .tbl { background: var(--card); border-radius: var(--card-r); box-shadow: var(--card-shadow); border-collapse: separate; border-spacing: 0; overflow: hidden; margin-top: 16px; }
.main .tbl th:first-child, .main .tbl td:first-child { padding-left: var(--card-x); }
.main .tbl th:last-child, .main .tbl td:last-child { padding-right: 16px; }
.main .tbl th { padding-top: 14px; }
.main .tbl tbody tr:last-child td { box-shadow: none; }
.main .tbl tfoot td { box-shadow: inset 0 1px 0 var(--line); padding-bottom: 14px; }
.main .tbl tbody tr:hover td { background: #f6f8fb; }
.tools .seg { justify-self: end; }
@media (min-width: 768px) { .main .tools .seg:not(.pc-iv, .form .seg) { width: auto; } }
.mtop .btn.icon, .mtop .btn.icon:active { box-shadow: none; background: transparent; }
/* Abonnement client : la formule, carte clé avec le montant en bleu (seule page avec montants, et Factures). */
.main .plan { background: var(--card); border-radius: var(--card-r); box-shadow: var(--card-shadow); padding: 22px var(--card-x) 18px; }
.main .plan + .plan { margin-top: var(--section); }
.main .plan .bill { margin-top: 20px; }
.main section.mt .mt-body { border-bottom: 0; margin-bottom: 0; padding-bottom: 12px; }
.main .grp > .row-form .row.danger-t { box-shadow: none; }
.sub-page .mod-area, .main .mod-area { margin-top: var(--section); }
.main .plan > details.more:last-child { box-shadow: none; }
.main .chg-form { background: var(--card); border-radius: var(--card-r); box-shadow: var(--card-shadow); padding: 22px var(--card-x); }
.tabs a[aria-current="page"]:hover { background: none; }
.main .sol, .main .mod { border-radius: var(--card-r); box-shadow: var(--card-shadow); }
/* Feuille « Changer de formule » : toute la hauteur utile, en-tête fixe, corps qui
   défile, marge basse égale aux côtés ; listes plus serrées pour tenir sans défiler à 900 px. */
@media (min-width: 768px) {
  dialog.ds.wide { max-height: calc(100dvh - 32px); }
  dialog.ds.wide .ds-b { padding: 20px 24px 24px; scroll-padding-bottom: 24px; }
  dialog.ds.wide .ds-b > :last-child { margin-bottom: 0; }
  dialog.ds.wide .pc-iv { margin-block: 0 4px; }
  dialog.ds.wide .pcard { row-gap: 8px; padding: 16px; }
  dialog.ds.wide .pc-f { gap: 6px; padding-top: 12px; }
  dialog.ds.wide .pc-f li { font-size: 14px; line-height: 20px; }
}
dialog.ds.wide .pc-wrap { padding-bottom: 2px; }

/* =====================================================================
   v0.6.1 : corrections de la QA visuelle du 20/10 (docs/reviews/2026-10-20-qa-gestion.md).
   Règles : grille de 8 px (4 px pour les petits écarts), une seule hauteur
   de contrôle (--ctl-h : champs, listes, filtres, boutons), une hauteur
   compacte pour les boutons dans une ligne (--ctl-h-sm), jamais de carte
   dans une carte. Le conteneur de page (section.screen) n'est jamais une carte.
   ===================================================================== */
@media (pointer: coarse) { :root { --ctl-h-sm: 40px; } }

/* ---------- Jamais de carte dans une carte ---------- */
.main .screen > form > .grp, .main .screen > .stack > .grp, .main .screen > .stack > form > .grp {
  background: var(--card); border-radius: var(--card-r); box-shadow: var(--card-shadow); padding: 0 var(--card-x); }
.main :is(section:not(.screen):has(> .gh), .card, .plan, .chg-form) :is(.grp, .tbl, .void) {
  background: none; border-radius: 0; box-shadow: none; padding-inline: 0; }
.main .grp > .form.pad { padding: 24px 0; }
.main .grp > .form.pad .sw-row { min-height: var(--ctl-h); }
/* Tableau dans une carte : bords alignés sur ceux de la carte, pas d'ombre propre. */
.main :is(section:not(.screen):has(> .gh), .card) .tbl { margin-top: 0; overflow: visible; }
.main :is(section:not(.screen):has(> .gh), .card) .tbl :is(th, td):first-child { padding-left: 0; }
.main :is(section:not(.screen):has(> .gh), .card) .tbl :is(th, td):last-child { padding-right: 0; }

/* ---------- Une seule hauteur de contrôle ---------- */
.btn, .btn.lg { min-height: var(--ctl-h); padding: 0 16px; }
.btn.icon { width: var(--ctl-h); padding: 0; }
.btn.sm, .main .row .btn.text, .main .row .btn.sm, .main .row .btn.sec { min-height: var(--ctl-h-sm); padding: 0 12px; font-size: 13px; }
@media (max-width: 1023px) { .btn, .btn.lg { min-height: var(--ctl-h); } .btn.sm, .main .row .btn.text { min-height: var(--ctl-h-sm); } }
.btn.danger { box-shadow: 0 0 0 1px color-mix(in oklab, var(--bad) 40%, white); }
.mod-f .btn, .other-f .btn { min-height: var(--ctl-h-sm); padding: 0 12px; }
.acts { gap: 8px; }

/* Contrôle segmenté : un seul style (A), même hauteur que les champs. */
.seg, .main .seg:not(.pc-iv, .form .seg) { gap: 4px; padding: 4px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); min-height: var(--ctl-h); }
.seg label, .main .seg:not(.pc-iv, .form .seg) label { min-height: calc(var(--ctl-h) - 8px); padding: 0 12px; border-radius: 6px; color: var(--ink-2); font-weight: 560; }
.seg label:has(input:checked), .main .seg:not(.pc-iv, .form .seg) label:has(input:checked) { background: var(--pill-bg); color: var(--pill-ink); font-weight: 600; box-shadow: none; }
.seg-a a { min-height: calc(var(--ctl-h) - 8px); border-radius: 6px; color: var(--ink-2); }
.seg-a a[aria-current] { background: var(--pill-bg); color: var(--pill-ink); box-shadow: none; }
.main .seg.seg-a { display: inline-flex; width: auto; max-width: 100%; }
.main .seg-a a { padding: 0 16px; }

/* ---------- Barre de recherche et de filtres ---------- */
.tools, .cl-tools, .mt-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; grid-template-columns: none; }
.tools .search { flex: 1 1 280px; max-width: 440px; }
.tools .seg { justify-self: auto; }
.tools > .search ~ .seg { margin-left: auto; }
.cl-tools .search { max-width: none; }
.cl-tools .seg { margin-top: 0; }
.main .seg:not(.pc-iv, .form .seg) { width: auto; }
@media (max-width: 767px) {
  .tools .search, .cl-tools .search, .tools .cat-f, .cl-tools .cat-f { flex: 1 1 100%; max-width: none; }
  .tools > .search ~ .seg { margin-left: -16px; }
  .main .tools .seg:not(.pc-iv, .form .seg), .main .cl-tools .seg:not(.pc-iv, .form .seg) {
    flex: 0 0 calc(100% + 32px); width: calc(100% + 32px); max-width: none; margin-inline: -16px; padding: 0 16px; justify-content: flex-start; min-height: 0; box-shadow: none; }
  .main .seg:not(.pc-iv, .form .seg) label { min-height: 40px; padding: 0 16px; border-radius: 20px; }
}

/* ---------- Pagination : un seul composant, à droite ---------- */
.pager, .mt-pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 13px; }
.pager .pg-n { margin-right: 8px; }

/* ---------- Fiches (client, prospect, campagne) : un seul en-tête ---------- */
.cl-head { margin: 8px 0 24px; }
@media (min-width: 1024px) { .cl-head { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1280px) { .cl-head { grid-template-columns: minmax(0, 1fr) auto; } }
.cl-acts { gap: 8px; }
.cl-acts form { display: contents; }
.main .card.facts-card { padding: 16px var(--card-x); margin-bottom: 24px; }
.facts { gap: 16px 24px; padding-top: 0; border-top: 0; }
.facts .big { font-size: 22px; line-height: 28px; font-weight: 620; font-stretch: 108%; color: var(--num); }
.facts .big small { color: var(--muted); font-stretch: 100%; }

/* Onglets : le texte du 1er onglet sur le bord du contenu. */
.tabs { gap: 24px; }
.tabs a { padding: 0; border-radius: 0; }
.tabs a:hover { background: none; color: var(--ink); }
.tabs a[aria-current="page"]:hover { color: var(--title); }
.tabs a[aria-current="page"]::after { left: 0; right: 0; }
@media (max-width: 767px) { .tabs { margin-inline: -16px; padding-inline: 16px; } .tabs a { padding: 0; } }


/* ---------- Champ fichier ---------- */
.file { position: relative; display: flex; align-items: center; gap: 12px; min-height: var(--ctl-h); padding: 0 6px 0 14px;
  border: 1px solid var(--ctl-line); border-radius: var(--ctl-r); background: var(--surface); cursor: pointer; }
.file:hover { border-color: var(--ink); }
.file:has(input:focus-visible) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus-ring); }
.file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file .file-n { flex: 1; min-width: 0; color: var(--muted); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file.has .file-n { color: var(--ink); }
.file .file-b { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: var(--ctl-h-sm); padding: 0 12px; border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font-size: 13px; font-weight: 600; pointer-events: none; }
.file .file-b .ic { width: 16px; height: 16px; color: var(--icon); }

/* ---------- Feuilles : un seul filet sous l'en-tête, pas de filet orphelin ---------- */
.ds-b .grp { border-top: 0; }
.ds .grp > :last-child, .ds .grp > :last-child.row { box-shadow: none; }
.ds-b .field { padding: 0; }
.ds-b > * + * { margin-top: 24px; }
.ds-b .form { gap: 16px; }

/* ---------- Espacements sur la grille ---------- */
.form { gap: 16px; }
.screen > section + section, .screen > .grp + section { margin-top: var(--section); }
.main .row, .main .inv, .main .cat { gap: 16px; }
.main a.row, .main button.row, .main a.inv, .main button.inv, .main .cat, .main .pf-row { margin-inline: -8px; padding-inline: 8px; width: calc(100% + 16px); }
.main a.row::after, .main button.row::after, .main a.inv::after, .main button.inv::after, .main .cat::after { left: 8px; right: 8px; }
.gh .pill, .pill { padding: 0 8px; }
.subnav { padding: 4px; gap: 4px; }
.subnav a { min-height: calc(var(--ctl-h) - 8px); border-radius: 6px; }
.ghint + .ghint { padding-top: 4px; }

/* ---------- À traiter : chiffres 2 x 2 tant que la place manque, une colonne sous 1280 px ---------- */
@media (min-width: 1024px) and (max-width: 1279px) {
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig:nth-child(odd) { box-shadow: none; }
  .fig:nth-child(n+3) { border-top: 1px solid var(--navy-line); }
}
.fig, .fig:nth-child(even) { padding: 16px 24px; }
@media (min-width: 1024px) { .fig, .fig:nth-child(even), .fig:first-child { padding: 24px; } }
@media (max-width: 767px) { .fig, .fig:nth-child(even) { padding: 16px; } }
.main .row { padding-block: 8px; }
@media (max-width: 599px) {
  .main .row:has(> .when) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; }
  .main .row:has(> .when) > .r-t { grid-column: 1 / 3; }
  .main .row:has(> .when) > .when { grid-row: 2; grid-column: 1; }
  .main .row:has(> .when) > .state { grid-row: 2; grid-column: 2; }
  .main .row:has(> .when) > :last-child { grid-row: 1 / 3; grid-column: 3; }
}
.main .screen > .ghint, .main .pager + .ghint { padding-top: 16px; }

/* ---------- Listes posées seules dans une colonne : en carte ---------- */
.main .cols > div > .grp { background: var(--card); border-radius: var(--card-r); box-shadow: var(--card-shadow); padding: 0 var(--card-x); }
.main .cols > div > .grp + .grp, .main .cols > div > .grp + .acts { margin-top: 0; }
.grp > .mail, .grp > details.mail { background: none; padding: 16px 0; font-size: 14px; line-height: 20px; }
.main .grp > .mail.out p { color: var(--muted); }
/* Espace client : « Se déconnecter » est déjà dans le menu au-delà de 1024 px. */
@media (min-width: 1024px) { .main .grp.logout-m { display: none; } }
.main .grp.logout-m .row.danger-t { justify-content: center; }

/* ---------- Éditeur de campagne : une étape après l'autre, même retrait ---------- */
.main [data-steps].stack { gap: 0; }
.main [data-steps] > .grp + .grp { box-shadow: inset 0 1px 0 var(--line); }
.form .gh { border-bottom: 0; padding: 0; min-height: 0; }
.main details.adv > summary .r-ic { display: none; }
.main .cols > div > .seg-a { justify-self: start; margin-bottom: 0; }
.acts > .btn.text { padding-inline: 0; }
.acts > .btn.text:not(:first-child) { padding-inline: 8px; }
.drop { border-radius: var(--ctl-r); }
.main .grp.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 24px; align-items: stretch; padding: 0; min-height: 0; }
/* À traiter sur une colonne : Falco et Surveillance avant les réponses et relances de prospection. */
@media (max-width: 1279px) {
  .home-cols > div { display: contents; }
  .home-cols > div > * { order: 0; }
  .home-cols section[aria-labelledby="h-falco"], .home-cols section[aria-labelledby="h-mon"] { order: 1; }
  .home-cols section[aria-labelledby="h-rep"], .home-cols section[aria-labelledby="h-fu"] { order: 2; }
}
@media (max-width: 767px) {
  .main .seg:not(.pc-iv, .form .seg) { background: none; box-shadow: none; }
  .main .seg:not(.pc-iv, .form .seg) label, .main .seg.seg-a a { background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 20px; min-height: 40px; }
  .main .seg:not(.pc-iv, .form .seg) label:has(input:checked), .main .seg.seg-a a[aria-current] { background: var(--pill-bg); color: var(--pill-ink); box-shadow: inset 0 0 0 1px var(--pill-bg); }
}
@media (max-width: 767px) { .main .seg:not(.pc-iv, .form .seg) { padding: 0 16px 2px; } }
/* Lignes avec date et état : la date et l'état passent sous le texte quand la carte est étroite. */
.home-cols section { container-type: inline-size; }
@container (max-width: 620px) {
  .main .row:has(> .when) { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; }
  .main .row:has(> .when) > .r-t { grid-column: 1 / 3; }
  .main .row:has(> .when) > .when { grid-row: 2; grid-column: 1; }
  .main .row:has(> .when) > .state { grid-row: 2; grid-column: 2; }
  .main .row:has(> .when) > :last-child { grid-row: 1 / 3; grid-column: 3; }
}

/* ---------- Fil d'une demande de modification (espace client et Gestion) ----------
   Mes messages à droite sur fond gris clair, ceux de l'autre côté à gauche, filet fin. */
.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.thread > .msg { justify-self: start; max-width: min(88%, 34rem); display: grid; gap: 6px; padding: 10px 14px 12px; border-radius: 14px 14px 14px 4px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.thread > .msg.me { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--tile); box-shadow: none; }
.msg-h { display: flex; align-items: baseline; gap: 8px; font-size: .78rem; color: var(--faint); }
.msg-h b { color: var(--ink-2); font-weight: 600; }
.msg-t { font-size: .9375rem; line-height: 1.5; overflow-wrap: anywhere; }
.msg-f { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 2px; color: var(--link); font-size: .875rem; font-weight: 550; text-decoration: none; }
.msg-f:hover span { text-decoration: underline; text-underline-offset: 3px; }
.msg-f .ic { flex: none; width: 16px; height: 16px; color: var(--icon); }
.msg-f span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-f small { flex: none; color: var(--faint); font-weight: 500; font-size: .78rem; }
.msg-zip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--link); font-size: .875rem; font-weight: 550; text-decoration: none; }
.msg-zip .ic { width: 16px; height: 16px; }
.ds-b > .thread + .msg-zip { margin-top: 8px; }
.chg-reply { gap: 14px; }
.chg-reply textarea { min-height: 88px; }
/* « Nouveau » : réponse de Makeset pas encore ouverte. */
.chg-new { flex: none; color: var(--brand-press); font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.chg-dot { flex: none; width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: var(--brand); }
.tabbar .chg-dot { position: absolute; top: 10px; left: calc(50% + 8px); margin: 0; box-shadow: 0 0 0 2px var(--surface); }
.chg-home { margin-bottom: 24px; }
/* Titre de feuille sur une ligne (data-one-line : titre d'une demande de modification). */
.ds-h h2.one { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }

/* ---------- Gestion niveau Google (21/10) : tri, pied de Factures, Payer, raccourcis ---------- */
/* Tri par en-tête : texte de l'en-tête, flèche discrète sur la colonne triée seulement. */
.sort { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; border-radius: 4px; }
.sort:hover, .sort.on { color: var(--ink); }
.sort:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.sort .sort-ar { width: 13px; height: 13px; stroke-width: 2; }
.inv-head .r .sort, .tbl th.r .sort { justify-content: flex-end; }
/* Pied de Factures : nombre de lignes filtrées, totaux HTVA et TVAC sous leurs colonnes. */
.inv-foot { display: flex; align-items: baseline; gap: 16px; margin: 0; padding: 14px 0 4px; box-shadow: inset 0 1px 0 var(--line); color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.inv-foot > span:first-child { flex: 1; }
.inv-foot b { color: var(--ink); font-weight: 620; font-size: 14px; }
.inv-foot small { margin-left: 4px; font-size: 12px; }
.inv-foot .ht { display: none; }
@media (min-width: 900px) {
  .inv-foot { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 7.5rem 7.5rem 8.5rem 24px; gap: 16px; }
  .inv-foot > span:first-child { grid-column: 1 / 3; }
  .inv-foot .ht { display: block; }
  .inv-foot .r { text-align: right; }
  .inv-foot small { display: none; }
}
/* « Payer » : petit bouton bleu dans la ligne d'une facture due (toute la ligne ouvre la feuille). */
.pay-b { flex: none; justify-self: end; display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: var(--mk-r-sm, 8px);
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
button.inv.due:hover .pay-b { background: var(--brand-press); }
@media (min-width: 900px) { .inv:not(.sm) > .pay-b { justify-self: start; } }
.due-home { margin-bottom: 24px; }
.due-home .row { gap: 12px; }
/* Feuille de paiement : le montant domine, puis les coordonnées du virement. */
.pay-key { padding: 4px 0 16px; }
.pay-key .sub-iv { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.kv dd.pay-v { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.kv dd.pay-v .btn.icon { flex: none; width: 32px; height: 32px; min-height: 32px; margin-block: -6px; }  /* la ligne garde sa hauteur */
.kv dd.pay-v .btn.icon .ic { width: 16px; height: 16px; }
/* Liste des raccourcis clavier (?) : même boîte que la recherche rapide. */
dialog.keys { max-width: 440px; }
dialog.keys .keys-h { min-height: 56px; box-shadow: inset 0 -1px 0 var(--hairline); }
.keys-l { margin: 0; padding: 8px 0 12px; overflow-y: auto; }
.keys-l > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding: 0 16px; }
.keys-l dt { font-size: 14px; color: var(--ink); }
.keys-l dd { display: flex; gap: 4px; margin: 0; }
.keys-l kbd { min-width: 22px; text-align: center; font-size: 12px; padding: 4px 6px; }
dialog.keys h2:focus { outline: none; }
/* Tri sur téléphone : liste déroulante des filtres ; sur ordinateur, les en-têtes suffisent. */
.sort-f select { width: 100%; }
@media (min-width: 900px) { .sort-f { display: none; } }

/* ---------- Audit visuel du 21/10 ---------- */
/* Feuille d'accès (fiche client) : l'essai et l'interrupteur forment une seule liste. */
.ds-b > .grp + .form:has(> div.grp:first-of-type) { margin-top: 0; }  /* seulement si le formulaire commence par une liste */
.ds-b > .grp + .form > div.grp:first-of-type { border-top: 1px solid var(--hairline); border-top-left-radius: 0; border-top-right-radius: 0; }
/* Abonnement client : le montant est le chiffre clé, en bleu. */
.sub-page .plan .price { color: var(--mk-brand-press, #0058c4); }
.sub-page > div > .mod-area { margin-top: 0; }  /* la grille donne déjà l'écart */
/* En-tête de page sur téléphone : actions pleine largeur, 16 px sous le sous-titre. */
@media (max-width: 767px) {
  .ph-row { row-gap: 16px; }
  .ph-row > .ph-acts { flex: 1 1 100%; flex-wrap: nowrap; }
  .ph-row > .ph-acts > .btn { flex: 1 1 0; min-width: 0; }
  /* Filtres : la recherche d'abord, puis le tri, pleine largeur comme les autres champs. */
  .tools > .search { order: -1; }
  .tools > .sort-f { flex: 1 1 100%; }
}
/* Tablette : les filtres d'état passés à la ligne restent alignés à gauche. */
@media (min-width: 768px) and (max-width: 1199px) { .tools > .search ~ .seg { margin-left: 0; } }
/* Accueil client : boutons du site de même largeur au téléphone, capture à côté dès la tablette. */
@media (max-width: 479px) { .site-btns .btn { flex: 1 1 100%; } }
@media (min-width: 768px) and (max-width: 1279px) {
  .site.has-shot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
}
/* Liens dans une valeur ou un titre de ligne : bleu sans soulignement, souligné au survol. */
.kv dd a { color: var(--link); text-decoration: none; }
.row .r-t > a { color: inherit; text-decoration: none; }
.kv dd a:hover, .row .r-t > a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Feuilles : texte aligné sur les lignes (16 px), pas de vide sous un formulaire sans champ visible. */
.ds-b .lead { padding: 0; }
.ds-b .gtitle { margin-inline: 0; }
.ds-b > form:not(:has(> :not(input[type="hidden"]))) { display: none; }  /* le bouton du pied l'envoie via form= */
.ds-b .msg-body { padding-top: 0; }
/* Titre de feuille long : deux lignes avant les points de suspension. */
.ds-h h2.one { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
/* Ligne sans action : même retrait que le chevron, les valeurs restent alignées. */
.chev-sp { flex: none; width: 16px; }
/* Feuille : sous-titre de groupe collé à sa liste. */
.ds-b > .gh + .grp { margin-top: 0; }
/* Accueil client, tablette : les deux boutons du site côte à côte, à largeur égale. */
@media (min-width: 768px) and (max-width: 1279px) {
  .site-btns { flex-wrap: nowrap; }
  .site-btns .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; font-size: 14px; }
}
/* Liste de choix en <fieldset> : sans le cadre ni le retrait du navigateur, comme une liste. */
fieldset.grp { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
/* QR de virement (EPC069-12) sous les coordonnées bancaires : modules noirs sur blanc, lisible au téléphone. */
.pay-qr { margin: 16px 0 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pay-qr svg { display: block; width: 176px; height: 176px; border-radius: 8px; border: 1px solid var(--hairline); }
.pay-qr figcaption { color: var(--muted); font-size: 13px; }

/* ---------- Documents internes (Gestion) : les 5 filtres passent à la ligne à 390 px ---------- */
@media (max-width: 767px) {
  .main .doc-tools .seg:not(.form .seg) { flex: 1 1 100%; width: 100%; margin-inline: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .main .doc-tools .seg:not(.form .seg) label { padding: 0 16px; }
}
/* ---------- Documents internes : aperçu (pages rendues en images par le serveur) ---------- */
.doc-v { display: grid; gap: 20px; }
.doc-pv { display: grid; gap: 12px; }
.doc-pg { position: relative; display: block; border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--hairline); }
a.doc-pg { cursor: zoom-in; text-decoration: none; }
.doc-pg img { display: block; width: 100%; height: auto; }
/* Pages chargées par espace.js (data-pv-src) : sans JavaScript, le repli <noscript>. */
.doc-pg img[data-pv-src]:not([src]), .doc-pg.err img { display: none; }
/* En attente ou en échec : cadre à la proportion A4 (image : 4/3), message centré. */
.js .doc-pg.wait, .doc-pg.err { aspect-ratio: 4 / 3; background: var(--tile); box-shadow: none; }
.js .doc-pg.a4.wait, .doc-pg.a4.err { aspect-ratio: 1240 / 1754; }
.doc-pg[data-msg] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px; text-align: center; }
.doc-pg[data-msg]::before { content: attr(data-msg); font-weight: 600; color: var(--ink); }
.doc-pg[data-hint]::after { content: attr(data-hint); color: var(--muted); font-size: .8125rem; }
.doc-pv .ghint { padding-top: 0; }
.doc-big { max-width: 960px; gap: 16px; }
.doc-nopv { display: grid; justify-items: center; gap: 4px; padding: 32px 16px; border-radius: var(--r); background: var(--surface); box-shadow: 0 0 0 1px var(--hairline); text-align: center; }
.doc-nopv .ic { width: 28px; height: 28px; color: var(--muted); margin-bottom: 4px; }
.doc-nopv b { font-weight: 600; }
.doc-nopv small { color: var(--muted); font-size: .8125rem; }
.doc-side { display: grid; gap: 20px; align-content: start; }
/* Libellé et valeur sur la même ligne de base (tailles différentes) ; la note,
   texte libre, passe sous son libellé, alignée à gauche, en graisse normale. */
.doc-side .kv { align-items: baseline; }
.doc-side .kv-note { display: block; }
.doc-side .kv-note dd { display: block; margin-top: 4px; text-align: left; font-weight: 400; line-height: 1.45; }
/* Infos et Modifier avant les pages dans le DOM (ordre au clavier = ordre au
   téléphone) ; à partir de 900 px, pages à gauche, infos à droite. */
@media (min-width: 900px) {
  .doc-v:has(.doc-pv) { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
  .doc-v:has(.doc-pv) .doc-pv { grid-column: 1; grid-row: 1; }
  .doc-v:has(.doc-pv) .doc-side { grid-column: 2; grid-row: 1; position: sticky; top: 0; }
}
/* En grand : en-tête collant (retour, nom, Télécharger), sous la barre du téléphone. */
.doc-vbar { position: sticky; top: 56px; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
  column-gap: 12px; max-width: 960px; margin: 0 0 16px; padding: 10px 0 12px; background: var(--canvas); border-bottom: 1px solid var(--hairline); }
.doc-vbar .crumb { grid-column: 1 / -1; margin: 0 0 4px; }
.doc-vt { min-width: 0; }
.doc-vt h1 { font-size: 1.25rem; line-height: 1.3; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-vt p { color: var(--muted); font-size: .8125rem; }
.doc-big .doc-pg { scroll-margin-top: 190px; }
@media (max-width: 599px) { .doc-vbar .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .doc-vbar .btn { padding-inline: 12px; } }
@media (min-width: 1024px) {
  .doc-vbar { top: 0; padding: 12px 0 14px; background: var(--sheet, var(--canvas)); }
  .doc-big .doc-pg { scroll-margin-top: 140px; }
}

/* =====================================================================
   « Mon site » (/account/site/, maquettes docs/design/mon-site de
   makeset-engine). Réutilise : .ph, .seg, .figs/.fig (bande marine), cartes
   à en-tête .gh, .void, .btn, .help, select.in, dialog.ds. Préfixe ms-.
   Barres en SVG (largeur en attribut) : la CSP refuse les style="" en ligne.
   ===================================================================== */

/* En-tête : retour (téléphone), titre + domaine, période à droite. */
.ms-back { display: inline-flex; margin-bottom: 4px; color: var(--link); }
@media (min-width: 1024px) { .ms-back { display: none; } }
.ms-ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.ms-id { display: grid; gap: 2px; min-width: 0; }
.ms-dom { color: var(--muted); font-size: 14px; }
.ms-per { border: 0; margin: 0; padding: 0; min-width: 0; }
.ms-per[disabled] .seg { opacity: .5; }
.ms-per[disabled] label { cursor: not-allowed; }
/* Contrôle segmenté : 3 choix égaux et compacts, même à 390 (pas de défilement de pastilles). */
.main .ms-per .seg:not(.pc-iv) { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.main .ms-per .seg:not(.pc-iv) label { min-width: 72px; }
@media (max-width: 767px) {
  .ms-per { width: 100%; }
  .main .ms-per .seg:not(.pc-iv) { display: grid; width: 100%; margin: 0; padding: 3px; gap: 2px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: 10px; }
  .main .ms-per .seg:not(.pc-iv) label { min-height: 38px; border-radius: 7px; box-shadow: none; background: none; }
  .main .ms-per .seg:not(.pc-iv) label:has(input:checked) { background: var(--pill-bg); box-shadow: none; }
}
.ms-site { width: auto; min-width: 240px; max-width: 100%; margin-top: 6px; font-weight: 560; }
@media (max-width: 767px) { .ms-site { width: 100%; min-width: 0; } .ms-id { flex: 1 1 100%; } }

/* Phrase de synthèse : le fait du jour, en clair, sans conseil. */
.ms-sum { font-family: var(--font-content); font-size: 17px; line-height: 24px; font-weight: 480; color: var(--ink); max-width: 62ch; margin: 0 0 20px; text-wrap: pretty; }
@media (min-width: 1024px) { .ms-sum { font-size: 19px; line-height: 27px; margin-bottom: 24px; } }

/* Bande marine : non cliquable ici, évolution grise, hausse en vert marine, forte baisse en rouge marine. */
.ms-figs .fig:hover { background: none; }
.ms-figs .fig:hover .l { color: #b7c6db; }
.ms-figs .fig .val { font-variant-numeric: tabular-nums; }
.ms-figs .fig .d { display: block; margin-top: 2px; }
.ms-figs .fig .d b { color: var(--navy-ink); font-weight: 600; }
.ms-figs .fig .d b.up { color: var(--navy-ok); }
.ms-figs .fig .d b.bad { color: var(--navy-bad); }
@media (min-width: 1024px) { .ms-figs2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 50%; } }

/* Grille asymétrique : courbe et pages à gauche (large), le reste à droite. */
.ms-grid { display: grid; gap: var(--section); align-items: start; }
.ms-a, .ms-b { display: grid; gap: var(--section); min-width: 0; }
@media (min-width: 1100px) { .ms-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
/* Gestion > Site : blog, contact et MakeTrust sous les statistiques, mêmes colonnes. */
.ws-more { margin-top: calc(var(--section) + 16px); }
@media (min-width: 1100px) { .crm .ms-figs2 { max-width: calc((100% - var(--section)) * 1.55 / 2.55); } }
@media (min-width: 1100px) { .main .ws-more { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--section); } }

/* En-tête de carte : unité à droite ; légende sous la courbe. */
.ms-unit { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 500; }
.ms-legend { display: flex; gap: 6px 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; font-weight: 500; padding: 0 0 14px; }
.ms-legend .lg { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ms-legend .lg::before { content: ""; width: 14px; height: 0; border-top: 2px solid var(--mk-brand); }
.ms-legend .lg.prev::before { border-top: 2px dashed #9aa5b5; }

/* Courbe */
.ms-plot { position: relative; margin: 18px 0 6px; min-height: 188px; }
@media (min-width: 560px) { .ms-plot { min-height: 232px; } }
.ms-svg { display: block; max-width: 100%; overflow: visible; touch-action: pan-y; }
.ms-svg:focus { outline: none; }
.ms-svg:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 6px; }
.ms-svg .g line { stroke: var(--hairline); stroke-width: 1; }
.ms-svg .t text { fill: var(--muted); font: 500 12px/1 var(--font-content); font-variant-numeric: tabular-nums; }
.ms-svg .cur { fill: none; stroke: var(--mk-brand); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.ms-svg .prev { fill: none; stroke: #9aa5b5; stroke-width: 1.5; stroke-dasharray: 4 4; stroke-linejoin: round; }
.ms-svg .area { fill: rgb(0 108 237 / .07); stroke: none; }
.ms-svg .hl { stroke: var(--ink); stroke-opacity: .25; stroke-width: 1; }
.ms-svg .hov circle { fill: var(--mk-brand); stroke: #fff; stroke-width: 2; }
.ms-svg .since { stroke: var(--line-2); stroke-dasharray: 2 3; }
.ms-svg .since-t { fill: var(--muted); font: 500 12px/1 var(--font-content); }
.ms-tip { position: absolute; top: 0; pointer-events: none; display: grid; gap: 1px; padding: 8px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; line-height: 18px; white-space: nowrap; box-shadow: var(--mk-e-pop); }
.ms-tip b { font-weight: 600; }
.ms-tip span { color: #c9d3e1; }

/* Listes courtes : barre de proportion très pâle derrière la ligne (lecture d'un coup d'œil). */
.ms-rows { margin: 8px 0 0; }
.ms-rows + .ms-more, .ms-list > .ms-rows:last-child { margin-bottom: 0; }
.ms-r { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 0 12px; }
.ms-r + .ms-r { margin-top: 0; }
/* Barre de proportion fine sous la ligne : lecture d'un coup d'œil, sans aplat. */
.ms-bar { position: absolute; left: 0; bottom: 6px; display: block; width: 100%; height: 3px; overflow: visible; }
.ms-bar rect { fill: rgb(0 108 237 / .45); }
.ms-n { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; font-weight: 540; overflow: hidden; }
.ms-n small { color: var(--muted); font-size: 13px; font-weight: 420; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ms-v { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.ms-cc { flex: none; width: 26px; height: 20px; display: grid; place-items: center; border-radius: 4px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 11px; font-weight: 640; letter-spacing: .02em; color: var(--ink-2); }
.ms-cc:empty { visibility: hidden; }
/* Afficher plus */
.ms-more { margin: 4px 0 8px; }
.ms-more summary { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px; margin-left: -8px; border-radius: 8px; color: var(--link); font-weight: 600; cursor: pointer; list-style: none; }
.ms-more summary::-webkit-details-marker { display: none; }
.ms-more summary:hover { background: var(--hover-c); }
.ms-more summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 0; }
.ms-more summary .ic { width: 16px; height: 16px; transition: transform 160ms var(--ease); }
.ms-more[open] summary .ic { transform: rotate(180deg); }
.ms-more .m-c, .ms-more[open] .m-o { display: none; }
.ms-more[open] .m-c { display: inline; }
.ms-more[open] summary { order: 2; }
.ms-more[open] { display: flex; flex-direction: column; }
.ms-more > .ms-rows { margin-top: 0; }
.ms-list { padding-bottom: 8px; }
.ms-list:not(:has(.ms-more)) { padding-bottom: 14px; }

/* Appareil (une ligne repliée) et « Plus de données » : lignes iOS dans une carte. */
.ms-rows-card { background: var(--card); border-radius: var(--card-r); box-shadow: var(--card-shadow); padding: 0 var(--card-x); }
.ms-rows-card > details + details { box-shadow: inset 0 1px 0 var(--line); }
.ms-dev summary, .ms-plus summary { display: flex; align-items: center; gap: 12px; min-height: 56px; cursor: pointer; list-style: none; font-weight: 560; }
.ms-dev summary::-webkit-details-marker, .ms-plus summary::-webkit-details-marker { display: none; }
.ms-dev summary:focus-visible, .ms-plus summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 8px; }
.ms-dev summary .ic, .ms-plus summary .ic { width: 16px; height: 16px; color: var(--icon); transition: transform 160ms var(--ease); flex: none; }
.ms-dev[open] summary .ic, .ms-plus[open] summary .ic { transform: rotate(180deg); }
.ms-dev-l { flex: 1; }
.ms-dev-v { color: var(--ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.ms-dev-b { padding: 0 0 16px; }
.ms-split { display: block; width: 100%; height: 8px; border-radius: 4px; overflow: hidden; }
.ms-split rect { fill: var(--mk-brand); }
.ms-split .s1 { fill: #7fb3f5; }
.ms-split .s2 { fill: #c9dcf7; }
.ms-dev-l3 { display: grid; gap: 0; margin-top: 10px; }
.ms-dev-l3 div { display: flex; justify-content: space-between; padding: 6px 0; }
.ms-dev-l3 dt { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.ms-dev-l3 dd { font-weight: 560; font-variant-numeric: tabular-nums; }
.sw { width: 10px; height: 10px; border-radius: 3px; background: var(--mk-brand); }
.sw.s1 { background: #7fb3f5; } .sw.s2 { background: #c9dcf7; box-shadow: inset 0 0 0 1px #a9c4ec; }
.ms-plus summary { justify-content: space-between; color: var(--ink); }
.ms-plus-b { padding-bottom: 8px; }
.ms-plus-r { display: flex; align-items: center; gap: 12px; min-height: 56px; box-shadow: inset 0 1px 0 var(--line); }
.ms-plus-r .r-t b { font-weight: 540; }
.ms-soon { color: var(--muted); font-size: 13px; }

/* Pied : mention de confidentialité + « ? » */
.ms-foot { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; padding: 0 4px; }
.ms-foot .help { margin: -12px 0 -12px 0; }

/* Vide et erreur */
.ms-void { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.ms-void > div:first-child { display: grid; gap: 4px; max-width: 56ch; }
.ms-void p { color: var(--muted); }
.ms-void .btn .ic { width: 16px; height: 16px; }
.ms-at { font-size: 13px; }
@media (max-width: 767px) { .ms-void .acts, .ms-void .acts .btn { width: 100%; } }
/* Feuille d'explication */
.ms-help { display: grid; }
.ms-help div { padding: 12px 0; box-shadow: inset 0 -1px 0 var(--line); }
.ms-help div:last-child { box-shadow: none; }
.ms-help dt { font-weight: 600; }
.ms-help dd { color: var(--muted); margin-top: 2px; }

@media (prefers-reduced-motion: reduce) { .ms-more summary .ic, .ms-dev summary .ic, .ms-plus summary .ic { transition: none; } }
.ms-svg [hidden] { display: none; }
.ms-ph noscript .btn { align-self: flex-end; }
/* Sans JS, « Afficher » reste collé au contrôle de période (et non isolé au bord droit). */
.ms-per { margin-left: auto; }
@media (min-width: 768px) { .ms-ph noscript .btn { margin-left: -12px; } }
.ms-void form { display: contents; }

/* Accueil : chiffre de « Mon site » dans la carte marine du site (accès sur téléphone). */
.site-stats { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 8px 0 -6px -8px; padding: 0 8px; border-radius: 8px; color: #fff; font-weight: 560; text-decoration: none; font-variant-numeric: tabular-nums; }
.site-stats:hover { background: rgb(255 255 255 / .08); }
.site-stats:focus-visible { outline: 2px solid #fff; outline-offset: 0; }
.site-stats .ic { width: 18px; height: 18px; color: #b7c6db; flex: none; }
.site-stats b { font-weight: 600; color: var(--navy-ink); }
.site-stats b.up { color: var(--navy-ok); }
.site-stats b.bad { color: var(--navy-bad); }
/* Sans JavaScript : la table des valeurs remplace la courbe. */
.ms-nojs table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ms-nojs caption { text-align: left; color: var(--muted); font-size: 13px; padding-bottom: 6px; }
.ms-nojs th, .ms-nojs td { text-align: right; padding: 6px 0 6px 12px; box-shadow: inset 0 -1px 0 var(--line); }
.ms-nojs th:first-child, .ms-nojs td:first-child { text-align: left; padding-left: 0; }
.ms-nojs th { color: var(--muted); font-weight: 500; }
.ms-nojs td:first-child { white-space: nowrap; }
.ms-svg .one-v { fill: var(--ink); font: 600 13px/1 var(--font-content); font-variant-numeric: tabular-nums; }
.ms-svg .one-d { fill: var(--mk-brand); stroke: #fff; stroke-width: 2; }

/* Fiche client, feuille Membres : état de chaque personne et bouton d'invitation. */
.mem-row .r-t { overflow-wrap: anywhere; }
.mem-row > form { flex: none; }
.mem-row .btn.text { white-space: nowrap; }
.mem-row .mem-mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }

/* Liste Clients, téléphone : les 4 filtres de statut tiennent dans l'écran (2 par ligne à 360 px, 4 dès 600 px). */
@media (max-width: 767px) {
  .main .tools.cl-tools > .seg:not(.pc-iv, .form .seg) {
    display: grid; grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); gap: 8px;
    flex: 1 1 100%; width: 100%; margin-inline: 0; padding: 0; overflow: visible; }
  .main .tools.cl-tools > .seg:not(.pc-iv, .form .seg) label { padding: 0 12px; }
}

/* Accueil de la Gestion : la tuile « Revenus mensuels » mène aux Finances (chevron discret). */
.fig .l .ic.lu { width: 14px; height: 14px; vertical-align: -2px; margin-left: 4px; opacity: .8; }
/* Ctrl K : montant cherché mis en évidence ; touches rappelées en bas (ordinateur). */
.cmdk-o mark { background: var(--pill-bg); color: var(--pill-ink); border-radius: 3px; padding: 0 2px; }
.cmdk-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 12.5px; }
.cmdk-foot kbd { font: 600 11.5px/1 var(--font-content); padding: 3px 5px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); margin-right: 4px; }
@media (max-width: 767px) { .cmdk-foot { display: none; } }
/* Documents : champs d'une facture d'achat (catégorie Achats), même rythme que le formulaire. */
.buy-f { display: grid; gap: 16px; }
.buy-f[hidden] { display: none; }
.buy-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* ===== Visibilité (/account/visibility/, maquettes docs/design/visibilite de
   makeset-engine, validées le 23/10). Reprise de visibilite.css de la maquette. */
/* En-tête : mois (liste style D) et accès au rapport, à droite. */
.vb-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vb-tools .vb-month { width: 210px; min-width: 0; font-weight: 560; }
@media (min-width: 768px) { .vb-tools { flex-wrap: nowrap; } }
.vb-tools .btn .ic, .vb-back .ic { width: 18px; height: 18px; }
@media (max-width: 767px) {
  .vb-tools { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .vb-tools .vb-month { width: 100%; }
  .vb-rep span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .vb-rep { width: var(--tap); padding: 0; }
  .vb-ph .vb-pdf { width: 100%; }
  .vb-ph .ms-id { flex: 1 1 100%; }
}
.vb-back { display: inline-flex; margin-bottom: 4px; color: var(--link); }

/* Bandeau marine : un seul gros chiffre (les demandes), le détail en barre fine. */
.vb-hero { display: grid; gap: 20px 48px; align-items: end; margin: 0 0 var(--section); padding: 22px 24px 24px;
  background: var(--navy); color: var(--navy-ink); border-radius: var(--card-r); }
@media (min-width: 768px) { .vb-hero { grid-template-columns: auto minmax(260px, 420px); justify-content: space-between; padding: 28px 32px 30px; } }
.vb-hero .vb-l { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--navy-muted); }
.vb-big { font-family: var(--font-content); font-size: 64px; line-height: 1; font-weight: 640; font-stretch: 110%; letter-spacing: -.035em;
  margin: 10px 0 8px; font-variant-numeric: tabular-nums; color: #fff; }
@media (min-width: 1024px) { .vb-big { font-size: 80px; } }
.vb-hero .vb-d { font-size: 14px; color: var(--navy-muted); }
.vb-hero .vb-d b { color: #fff; font-weight: 600; }  /* baisse ou stable : blanc ; hausse : vert clair (.up) */
.vb-split { display: grid; gap: 12px; min-width: 0; }
.vb-bar2 { display: block; border-radius: 4px; }
.vb-bar2 .s0 { fill: var(--navy-accent); }
.vb-bar2 .s1 { fill: #3d6698; }
.vb-split dl { display: grid; gap: 4px; }
.vb-split dl div { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; line-height: 22px; }
.vb-split dt { display: flex; align-items: center; gap: 8px; color: var(--navy-muted); }
.vb-split dd { font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.vb-sw { width: 10px; height: 10px; border-radius: 3px; background: var(--navy-accent); }
.vb-sw.s1 { background: #3d6698; }

/* Grille asymétrique : Google (et IA) à gauche, large ; fiche et travail à droite. */
.vb-grid { align-items: start; }

/* Trois chiffres Google : une ligne, sans cadre, séparés par un filet. */
.vb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 calc(-1 * var(--card-x)); border-bottom: 1px solid var(--line); }
.vb-stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vb-st { display: grid; gap: 2px; align-content: start; padding: 16px var(--card-x) 18px; min-width: 0; }
.vb-st + .vb-st { box-shadow: -1px 0 0 var(--line); }
.vb-st dt { font-size: 13px; color: var(--muted); }
.vb-st dd { display: grid; gap: 2px; }
.vb-v { font-family: var(--font-content); font-size: 26px; line-height: 32px; font-weight: 620; font-stretch: 108%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.vb-d { font-size: 13px; line-height: 17px; font-weight: 500; color: var(--muted); }
.vb-d b.up, .vb-kv b.up { color: var(--ok-text, #137333); font-weight: 600; }
/* Sur le bandeau marine, le vert clair (QA du 23/10 : contraste axe), écrit après la règle générique. */
.vb-hero .vb-d b.up { color: var(--navy-ok); }
/* Téléphone : « Position » seul, pour aligner les trois chiffres. */
.vb-sm { display: none; }
@media (max-width: 559px) {
  .vb-stats:not(.two) .vb-lg { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .vb-stats:not(.two) .vb-sm { display: inline; }
  .vb-st { padding: 14px 12px 16px; }
  .vb-st:first-child { padding-left: var(--card-x); }
  .vb-v { font-size: 22px; line-height: 28px; }
  .vb-st dt { font-size: 12.5px; }
}

/* Sous-titre dans une carte (Recherches, Fait, Prévu) */
.vb-sub { display: flex; align-items: center; gap: 8px; padding: 18px 0 0; }
.vb-sub h3 { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink-2); }
.vb-sub > span:not(.pill) { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 500; }
.vb-g .ms-rows { margin-top: 4px; }
.vb-bar { position: absolute; left: 0; bottom: 6px; display: block; overflow: visible; }
.vb-bar rect { fill: rgb(0 108 237 / .45); }

/* Travail : liste à cocher, coche à droite (fait), cercle vide (prévu). */
.vb-wl { margin: 4px 0 6px; }
.vb-w { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 0; color: var(--ink); line-height: 1.4; }
.vb-w + .vb-w { box-shadow: inset 0 1px 0 var(--line); }
.vb-w > span:first-child { flex: 1; min-width: 0; }
.vb-ck { flex: none; width: 18px; height: 18px; color: var(--brand); stroke-width: 2.4; }
.vb-todo { flex: none; width: 16px; height: 16px; margin-right: 1px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.vb-work .vb-wl:last-child { margin-bottom: 8px; }

/* Fiche Google : lignes façon Réglages, valeur et écart à droite. */
.vb-kv { margin: 0 0 8px; }
.vb-kv > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.vb-kv > div + div { box-shadow: inset 0 1px 0 var(--line); }
.vb-kv dt { color: var(--ink-2); min-width: 0; }
.vb-kv dd { display: flex; align-items: baseline; gap: 10px; }
.vb-kv .vb-v { font-size: 17px; line-height: 24px; font-weight: 600; font-stretch: 100%; letter-spacing: 0; }
.vb-kv b.up { font-size: 13px; min-width: 52px; text-align: right; }
.vb-kv dd:not(:has(b)) { padding-right: 62px; }

/* Assistants IA : cité / pas cité par assistant, « indicatif » dans l'en-tête. */
.vb-tag { align-self: center; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--tile, #eef2f7); color: var(--muted); font-size: 12.5px; font-weight: 500; line-height: 22px; }
.vb-ql { margin: 0; }
.vb-qh, .vb-q { display: grid; grid-template-columns: minmax(0, 1fr) 112px 112px; gap: 4px 16px; align-items: center; }
.vb-qh { padding: 14px 0 6px; color: var(--muted); font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--line); }
.vb-q { min-height: 56px; padding: 12px 0; }
.vb-q + .vb-q, .ms-more .vb-ql .vb-q:first-child { box-shadow: inset 0 1px 0 var(--line); }
.vb-qt { line-height: 1.4; color: var(--ink); }
.vb-c { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.vb-c.yes { color: var(--brand-press); font-weight: 600; }
.vb-c .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.vb-s { display: inline-flex; align-items: center; gap: 6px; }
.vb-who { display: none; }
.vb-when { color: var(--muted); font-size: 13px; padding: 4px 0 14px; }
.vb-ai .ms-more { margin-bottom: 0; }
@media (max-width: 639px) {
  .vb-qh { display: none; }
  .vb-q { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vb-c { display: grid; gap: 0; align-content: start; }
  .vb-qt { grid-column: 1 / -1; }
  .vb-who { display: inline; color: var(--muted); font-weight: 500; }
  .vb-c.yes .vb-who { color: var(--muted); }
}

/* ---------- Rapport mensuel : une feuille, lisible imprimée ---------- */
.vb-doc { max-width: 880px; background: var(--card); border-radius: var(--card-r); box-shadow: var(--card-shadow); padding: 28px var(--card-x) 8px; }
@media (min-width: 768px) { .vb-doc { padding: 48px 56px 12px; } }
.vb-doc-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px; padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.vb-doc-n { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.vb-doc-big { font-family: var(--font-content); font-size: 72px; line-height: .95; font-weight: 640; font-stretch: 110%; letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .vb-doc-big { font-size: 96px; } }
.vb-doc-l { font-family: var(--font-content); font-size: 22px; font-weight: 560; color: var(--ink); }
.vb-doc-d { display: grid; gap: 2px; color: var(--muted); font-size: 14px; text-align: right; }
.vb-doc-d b { color: var(--ok-text, #137333); font-weight: 600; }
.vb-doc-d p + p { color: var(--ink-2); }
.vb-report { max-width: 880px; position: relative; }
@media (max-width: 559px) { .vb-doc-d { text-align: left; } }
.vb-doc-s { padding: 28px 0 24px; }
.vb-doc-s + .vb-doc-s { border-top: 1px solid var(--line); }
.vb-doc-s > h2 { font-size: 16px; line-height: 22px; font-weight: 620; font-stretch: 104%; color: var(--title); margin-bottom: 14px; }
.vb-doc-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.vb-doc-3.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vb-doc-3 > div { display: grid; gap: 2px; align-content: start; }
.vb-doc-3 dt { font-size: 13px; color: var(--muted); }
.vb-doc-3 dd { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.vb-doc-3 dd b { color: var(--ok-text, #137333); font-size: 13px; font-weight: 600; }
.vb-doc-3 dd small { color: var(--muted); font-size: 13px; font-weight: 500; }
@media (max-width: 639px) { .vb-doc-3, .vb-doc-3.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vb-doc .vb-sub { padding-top: 22px; }
.vb-doc .ms-rows { margin-top: 4px; }
.vb-doc-note { margin-top: 16px; color: var(--ink-2); font-size: 14px; }
.vb-doc-w { display: grid; gap: 8px 48px; }
@media (min-width: 768px) { .vb-doc-w { grid-template-columns: 1fr 1fr; } }
.vb-doc-w h3 { font-size: 16px; line-height: 22px; font-weight: 620; font-stretch: 104%; color: var(--title); margin-bottom: 4px; }
.vb-doc-f { border-top: 1px solid var(--line); padding: 16px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.5; }
@media print {
  .side, .mtop, .tabbar, .vb-back, .vb-tools, .skip { display: none !important; }
  .vb-doc { box-shadow: none; padding: 0; max-width: none; }
}

/* États vides d'une carte (Google pas relié, déconnecté, fiche, IA). */
.vb-none { display: grid; gap: 2px; padding: 18px 0 20px; }
.vb-none b { font-weight: 600; color: var(--ink); }
.vb-none p { color: var(--muted); font-size: 14px; }
.vb-report .muted { color: var(--muted); }
/* « Mon site » : accès à la visibilité (ligne façon Réglages). */
.ms-vis { display: flex; align-items: center; gap: 12px; min-height: 60px; color: var(--ink); text-decoration: none; }
.ms-vis .r-t { flex: 1; display: grid; gap: 1px; }
.ms-vis .r-t b { font-weight: 600; }
.ms-vis .r-t small { color: var(--muted); font-size: 13px; }
.ms-vis .ic { width: 18px; height: 18px; color: var(--muted); }
.ms-vis:hover .r-t small { color: var(--link); }
.void + .ms-vis { margin-top: var(--section); }
/* Gestion : travail du mois, case à cocher ronde à gauche, corbeille à droite. */
.vis-w { display: flex; align-items: center; gap: 12px; }
.vis-w .r-t { flex: 1; min-width: 0; }
.vis-w form { display: contents; }
.vis-ck { flex: none; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: none; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--brand); cursor: pointer; }
.vis-ck.on { box-shadow: inset 0 0 0 1.5px var(--brand); }
.vis-ck .ic { width: 16px; height: 16px; stroke-width: 2.4; }
/* ===== Protection (/account/protection/, cadrage protection-makeset, lot 1).
   Même grammaire que Visibilité : bandeau marine, un gros chiffre, barres par
   jour à droite (SVG, la CSP refuse les style=""), listes ms-rows dessous. */
.site-prot { display: flex; width: fit-content; margin-top: 2px; }
.site-prot.offer span { color: #b7c6db; }
.pt-hero { align-items: stretch; }
.pt-hero .vb-hero-n { display: flex; flex-direction: column; justify-content: flex-end; }
.pt-hero .vb-d b { color: #fff; font-weight: 600; }
.pt-inc { margin-top: 6px; font-size: 13px; color: var(--navy-muted); }
.pt-inc::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--navy-muted); }
.pt-chart { display: grid; gap: 8px; align-content: end; min-width: 0; margin: 0; }
.pt-bars { display: block; width: 100%; height: 96px; overflow: visible; }
@media (min-width: 768px) { .pt-bars { height: 120px; } }
.pt-bars .base { stroke: var(--navy-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pt-bars rect { fill: var(--navy-accent); transition: opacity 120ms var(--ease); }
.pt-bars rect.zero { fill: var(--navy-muted); opacity: .45; }
.pt-bars rect.nd { fill: none; stroke: var(--navy-line); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.pt-bars:hover rect.on { opacity: .55; }
.pt-bars rect.on:hover { opacity: 1; }
.pt-scale { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--navy-muted); font-variant-numeric: tabular-nums; }
.pt-std { display: grid; gap: 16px; max-width: 560px; }
.pt-pro .ic { width: 18px; height: 18px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .pt-bars rect { transition: none; } }
/* Gestion, feuille Protection : un bloc par site. */
.prot-site + .prot-site { margin-top: 20px; }
.prot-site h3 { font-size: 15px; font-weight: 620; margin: 0 0 6px; overflow-wrap: anywhere; }
/* ===== Rapports (design-rapports, 24/10) : gros chiffres, clics par mois, rapport téléphone. */
/* Espace fine des milliers d'un gros chiffre (filtre |big) : largeur fixe, l'approche serrée ne la mange plus. */
.th { display: inline-block; width: .18em; overflow: hidden; letter-spacing: 0; }
/* Clics par mois : colonnes sobres, le mois affiché en bleu, valeurs sous chaque mois. */
.vb-tr { margin: 0; padding-bottom: 6px; }
.vb-tr .vb-sub { padding-bottom: 14px; }
.vb-tr-svg { display: block; width: 100%; height: 88px; overflow: visible; }
@media (min-width: 768px) { .vb-tr-svg { height: 104px; } }
.vb-tr-svg .base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.vb-tr-svg rect { fill: rgb(0 108 237 / .22); }
.vb-tr-svg rect.cur { fill: var(--mk-brand); }
.vb-tr-svg rect.part { fill: rgb(0 108 237 / .1); stroke: var(--mk-brand); stroke-width: 1.25; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; }
.vb-tr-l { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: 8px; text-align: center; }
.vb-tr-l li { display: grid; gap: 0; min-width: 0; }
.vb-tr-l span { color: var(--muted); font-size: 12.5px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vb-tr-l b { font-size: 13px; line-height: 18px; font-weight: 560; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.vb-tr-l .cur span { color: var(--ink); font-weight: 560; }
.vb-tr-l .cur b { color: var(--ink); font-weight: 650; }
.vb-g .vb-tr { padding-top: 4px; border-bottom: 1px solid var(--line); margin: 0 calc(-1 * var(--card-x)); padding-inline: var(--card-x); padding-bottom: 16px; }
.vb-doc .vb-tr { padding-top: 6px; }
/* Rapport, téléphone : les trois chiffres Google sur une ligne, l'écart passe dessous. */
@media (max-width: 639px) {
  .vb-doc-3:not(.four) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .vb-doc-3 .vb-v { font-size: 22px; line-height: 28px; }
  .vb-doc-3 dd { display: grid; gap: 0; }
  .vb-doc-3 .vb-lg { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .vb-doc-3 .vb-sm { display: inline; }
}
/* Écart en forte baisse (≤ -25 %, site_stats.delta) : rouge en texte, comme décidé le 22/10 ; sur le marine, le rouge clair. */
.vb-d b.bad, .vb-doc-3 dd b.bad, .vb-doc-d b.bad { color: var(--bad); font-weight: 600; }
.vb-hero .vb-d b.bad { color: var(--navy-bad); }
/* Protection, ordinateur : les barres du mois prennent la place libre du bandeau (moins de vide au centre). */
@media (min-width: 1024px) { .pt-hero { grid-template-columns: auto minmax(0, 600px); gap: 20px 64px; } }

/* Accès à l'admin (25/10) : bannière de retard de paiement, discrète (pas d'alerte), et cadenas des raccourcis. */
.pay-late { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 20px; padding: 10px 14px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--hairline); font-size: 14px; color: var(--ink); }
.pay-late .pl-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.pay-late .pl-t { flex: 1 1 auto; min-width: 0; }
.pay-late .link { font-weight: 600; white-space: nowrap; }
.site .short a .ic, .site-btns .btn .ic.lu:first-child { width: 14px; height: 14px; margin-right: 6px; }
.tok-box { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--hairline); }
.tok-box code { flex: 1; min-width: 0; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; word-break: break-all; }
.tok-box .btn.icon { flex: none; }
.adm-acc { margin-top: 32px; }

/* ---------- Profil de la Gestion (comme l'admin du moteur) ----------
   La ligne du menu et l'avatar de la barre du haut ouvrent la feuille
   « Profil » (langue, réglages, déconnexion). */
.who.me { width: 100%; border: 0; border-radius: 8px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.who.me > div { flex: 1; min-width: 0; }
.who.me b, .who.me small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who.me .me-c { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--navy-icon, var(--icon)); }
.who.me:hover { background: var(--navy-2); }
.mtop button.avatar { border: 0; padding: 0; background: none; cursor: pointer; }
body .prof .r-ic.prof-av { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8125rem; font-weight: 700; }
.seg-b button { display: grid; place-items: center; min-height: var(--tap); padding: 0 10px; border: 0; border-radius: 9px; background: none;
  font: inherit; font-weight: 600; font-size: .9063rem; color: var(--muted); cursor: pointer; }
.seg-b button:hover { color: var(--ink); }
.seg-b button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(12 29 51 / .14); }
.seg-b button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

/* ---------- Modules plus clairs (26/10) ----------
   Ligne d'un module : nom, phrase du bénéfice, prix (et son équivalent mensuel
   en annuel), puis « Ce qui est inclus » replié. L'interrupteur reste en haut. */
.mods-l .mod-row { align-items: flex-start; padding-top: 14px; padding-bottom: 12px; }
.mods-l .mod-row > .switch, .mods-l .mod-row > form { margin-top: 2px; }
.mod-row .r-t { gap: 2px; }
.mod-row .mod-why { color: var(--ink-2, var(--ink)); font-size: 14px; line-height: 20px; max-width: 52ch; }
.mod-row .mod-p { color: var(--muted); font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; }
.mod-row .mod-p .pm { white-space: nowrap; }
.mod-inc { margin-top: 4px; }
.mod-inc summary { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; list-style: none; cursor: pointer;
  color: var(--link); font-size: 13px; font-weight: 600; border-radius: 6px; }
.mod-inc summary::-webkit-details-marker { display: none; }
.mod-inc summary .ic { width: 14px; height: 14px; transition: transform 160ms var(--ease, ease); }
.mod-inc[open] summary .ic { transform: rotate(180deg); }
.mod-inc summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.mod-inc summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.mod-inc ul { list-style: none; margin: 4px 0 2px; padding: 0; display: grid; gap: 6px; }
.mod-inc li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 20px; color: var(--ink); }
.mod-inc li .ic.ok-ic { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.plan .price-m { margin-top: 2px; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
/* Catalogue des modules (Gestion) : la phrase et le nombre de points restent visibles sur ordinateur, les prix passent en colonnes. */
.cat .d small.c-why { color: var(--ink-2, var(--ink)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 900px) {
  .cat .d small { display: block; }
  .cat .d .c-pm { display: none; }
  .cat { padding-block: 10px; }
}
.perks-s { margin-top: 32px; }

/* ===== Offre Visibilité (cadrage du 29/10, direction A « Google » validée le
   30/10) : un bouton pilule tonal sur la carte du site, une bannière avec la
   fiche Google illustrée sur Mon site, un tableau comparatif façon Google One.
   Une seule couleur d'accent, pas de dégradé. */
.vis-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.vis-cta form { display: flex; }
.vis-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px 0 10px; border-radius: var(--mk-r-pill);
  background: var(--mk-pill-bg); color: var(--mk-pill-ink); font-size: 15px; line-height: 20px; font-weight: 640; text-decoration: none;
  transition: background-color .15s cubic-bezier(.2, 0, 0, 1); }
.vis-btn:hover { background: #c2d7fb; }
.vis-dot { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--mk-brand); }
.vis-dot .ic { width: 18px; height: 18px; stroke-width: 1.9; }
.vis-later { min-height: 44px; padding: 0 8px; border: 0; border-radius: var(--mk-r-sm); background: none; font: inherit; font-size: 14px;
  font-weight: 540; cursor: pointer; color: var(--muted); }
.vis-later:hover { color: var(--ink); }
.site .vis-later { color: var(--navy-muted); }
.site .vis-later:hover { color: #fff; }
.vis-later:disabled, .vis-btn[aria-disabled="true"], .btn[aria-disabled="true"] { cursor: default; opacity: .6; }
.vis-later:disabled:hover { color: var(--navy-muted); }
@media (prefers-reduced-motion: reduce) { .vis-btn { transition: none; } }

.vis-ban { display: grid; margin: 0 0 var(--section); overflow: hidden; background: var(--surface); border-radius: var(--mk-r-lg);
  box-shadow: var(--mk-e-card); }
.ms-figs + .vis-ban { margin-top: calc(16px - var(--section)); }
.vis-ban-t { display: grid; gap: 4px; align-content: center; min-width: 0; padding: 22px 20px; }
.vis-ban h2 { font-size: 20px; line-height: 26px; font-weight: 640; font-stretch: 106%; letter-spacing: -.01em; }
.vis-ban p { color: var(--muted); font-size: 14px; line-height: 20px; }
.vis-ban-a { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 14px; }
.vis-ban-a form { display: contents; }
.vis-art { display: flex; align-items: flex-end; justify-content: center; min-height: 150px; padding: 18px 20px 0; background: #eef4fe; }
.vis-fiche { width: 240px; overflow: hidden; background: #fff; border-radius: 12px 12px 0 0; color: var(--mk-ink);
  box-shadow: 0 -1px 0 rgb(14 27 45 / .04), 0 8px 24px rgb(14 27 45 / .12); }
.vis-cover { display: block; width: 100%; height: 64px; }
.vis-fb { display: block; padding: 12px 14px 14px; }
.vis-fb b { display: block; font-size: 16px; line-height: 20px; font-weight: 640; font-stretch: 104%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vis-fb i { display: block; width: 62%; height: 7px; margin-top: 8px; border-radius: 4px; background: #e9ecf0; }
.vis-chips { display: flex; gap: 6px; margin-top: 12px; }
.vis-chips span { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: var(--mk-r-pill);
  box-shadow: inset 0 0 0 1px var(--mk-line-2); font-size: 11.5px; font-weight: 560; color: var(--mk-link); white-space: nowrap; }
.vis-chips .ic { width: 13px; height: 13px; stroke-width: 1.9; }
@media (min-width: 760px) {
  .vis-ban { grid-template-columns: minmax(0, 1fr) 300px; }
  .vis-ban-t { padding: 28px 32px; }
}

.ms-plus-l { color: inherit; text-decoration: none; }
.ms-plus-l .r-t { flex: 1 1 auto; }
.ms-plus-go { display: inline-flex; align-items: center; gap: 2px; color: var(--link, var(--brand)); font-size: 14px; font-weight: 560; }
.ms-plus-go .ic { width: 16px; height: 16px; }
.ms-plus-l:hover .ms-plus-go { text-decoration: underline; text-underline-offset: 3px; }

/* Page des formules : une grille (rôles de tableau explicites, car display: contents
   sur les lignes), la colonne recommandée sur un aplat bleu pâle. */
.vo { container-type: inline-size; margin-top: 8px; }
.vo-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.vo-chips label { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--mk-r-sm);
  box-shadow: inset 0 0 0 1px var(--mk-ctl-line); background: var(--surface); font-size: 14px; font-weight: 560; cursor: pointer; }
.vo-chips input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.vo-chips .ic { display: none; width: 14px; height: 14px; stroke-width: 2.4; margin-left: -2px; }
.vo-chips label:has(input:checked) { background: var(--mk-pill-bg); box-shadow: none; color: var(--mk-pill-ink); }
.vo-chips label:has(input:checked) .ic { display: block; }
.vo-chips label:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.vo-t { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0 4px 8px; background: var(--surface);
  border-radius: var(--mk-r-lg); box-shadow: var(--mk-e-card); font-variant-numeric: tabular-nums; }
.vo-r { display: contents; }
.vo-t [role="cell"], .vo-t [role="rowheader"] { min-width: 0; padding: 14px 12px; border-bottom: 1px solid var(--mk-line); font-size: 14px; line-height: 20px; }
.vo-r.end > * { border-bottom: 0; }
.vo-lab { color: var(--mk-ink-2); }
.vo-v { font-weight: 560; }
.vo-v.std { background: #eef4fe; }
.vo-r.end .vo-v.std { border-radius: 0 0 12px 12px; }
.vo-ck { display: block; width: 20px; height: 20px; color: var(--mk-brand); stroke-width: 2.2; }
.vo-hd { position: relative; display: grid; align-content: start; gap: 2px; min-width: 0; padding: 44px 12px 20px; border-bottom: 1px solid var(--mk-line); }
.vo-hd.std { margin-top: 10px; padding-top: 34px; background: #eef4fe; border-radius: 12px 12px 0 0; }
.vo-rec { position: absolute; left: 12px; top: 10px; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px;
  background: var(--mk-brand); color: #fff; font-size: 11.5px; font-weight: 620; }
.vo-hd h2 { font-size: 15px; line-height: 20px; font-weight: 640; letter-spacing: 0; }
.vo-pr { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; margin-top: 6px; white-space: nowrap; }
.vo-pr b { font-size: 34px; line-height: 40px; font-weight: 620; font-stretch: 108%; letter-spacing: -.01em; }
.vo-pr small { font-size: 13px; font-weight: 450; color: var(--muted); }
.vo-mp { color: var(--muted); font-size: 13px; line-height: 18px; }
.vo-ask { margin-top: 14px; }
.vo-ask .btn { width: 100%; min-height: 40px; height: auto; padding: 8px 14px; font-size: 13.5px; line-height: 18px; white-space: normal; }
.vo-ask .btn.out { background: #fff; color: var(--mk-link); box-shadow: inset 0 0 0 1px var(--mk-ctl-line); }
.vo-ask .btn.out:hover { background: #eef4fe; }
.vo-ask .btn:disabled { cursor: default; opacity: .6; }
.vo-sent { display: flex; align-items: center; min-height: 40px; margin-top: 14px; }
.vo-corner { display: grid; align-content: end; padding: 0 12px 20px; border-bottom: 1px solid var(--mk-line); color: var(--muted); font-size: 13px; line-height: 18px; }
.vo-foot { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 18px; }
@container (min-width: 640px) {
  .vo-chips { display: none; }
  .vo-t { grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr)); padding: 0 12px 12px; }
}
/* Colonnes étroites (tablette) : l'unité passe sous le prix dans les 3 formules, pour garder les lignes alignées. */
@container (min-width: 640px) and (max-width: 899.98px) {
  .vo-t { grid-template-columns: minmax(0, 1fr) repeat(3, minmax(0, 1fr)); }
  .vo-pr { flex-direction: column; align-items: start; }
  .vo-pr b { font-size: 30px; line-height: 36px; }
  .vo-ask .btn { padding-inline: 8px; }
}
@container (max-width: 639.98px) {
  .vo-corner { display: none; }
  .vo-hd { grid-column: 1 / -1; padding-top: 20px; }
  .vo-hd.std { margin-top: 4px; padding-top: 44px; }
  .vo:has(#vo-pick-essential:checked) [data-p]:not([data-p="essential"]),
  .vo:has(#vo-pick-standard:checked) [data-p]:not([data-p="standard"]),
  .vo:has(#vo-pick-advanced:checked) [data-p]:not([data-p="advanced"]) { display: none; }
}

/* Abonnement, section Visibilité : la pastille épingle de l'accueil, sur aplat bleu pâle. */
.vis-sub .vis-dot { width: 36px; height: 36px; background: var(--mk-pill-bg); }
.vis-sub .vis-dot .ic { width: 20px; height: 20px; }
.vis-sub .r-v { color: var(--mk-link); font-weight: 560; }
