/* =====================================================================
   VAROTRA — feuille de style (Dinamick)
   Mise en page : mobile, barre d'activité en haut, contenu, dock de 4
   onglets autour d'un gros bouton + ; PC, rail à gauche et contenu.
   Le seul élément spectaculaire est le cycle de l'argent (accueil) et
   le bouton + qui en reprend les couleurs ; tout le reste est calme.
   ===================================================================== */
/* polices hébergées avec l'appli (fonctionnent hors ligne) : Bricolage Grotesque et Hanken Grotesk, licence OFL */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(../fonts/bricolage-grotesque-wght.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/hanken-grotesk-400.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-display: swap; font-weight: 500; src: url(../fonts/hanken-grotesk-500.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-display: swap; font-weight: 600; src: url(../fonts/hanken-grotesk-600.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/hanken-grotesk-700.woff2) format('woff2'); }

:root {
  /* papier carnet vert-gris, encre forêt */
  --paper: #EEF1EC;
  --paper-2: #E4E9E2;
  --sheet: #FFFFFF;
  --sheet-2: #F6F8F5;
  --ink: #15201B;
  --ink-2: #435049;
  --ink-3: #66726B;
  --line: #D6DDD5;
  --line-2: #E6EBE5;
  --hover: rgba(21, 32, 27, .05);
  --scrim: rgba(12, 20, 16, .42);
  --shadow: 0 1px 0 rgba(21, 32, 27, .04), 0 10px 30px -18px rgba(21, 32, 27, .35);
  --shadow-lg: 0 30px 80px -30px rgba(12, 20, 16, .55);
  /* étapes du cycle (palette vérifiée pour le daltonisme, toujours accompagnée d'un libellé) */
  --st-cash: #14916A;
  --st-buy: #DD6A1F;
  --st-make: #6650D6;
  --st-stock: #C8417F;
  --st-sell: #2A6FD0;
  /* états */
  --good: #0F7A53;
  --good-bg: #DDF1E7;
  --warn: #8F5B00;
  --warn-bg: #F7EBCF;
  --bad: #B8322A;
  --bad-bg: #F8E1DE;
  --info: #2457A6;
  --info-bg: #E1EAF7;
  --on-ink: #F4F7F3;
  --focus: #2A6FD0;
  /* typographie */
  --f-display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --f-ui: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-sheet: 22px;
  --r-panel: 18px;
  --r-ctl: 12px;
  --dock-h: 74px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1512; --paper-2: #141D19; --sheet: #18211D; --sheet-2: #1E2823;
    --ink: #E7EEE9; --ink-2: #B3C0B8; --ink-3: #8C9A92; --line: #2C3832; --line-2: #24302A;
    --hover: rgba(231, 238, 233, .06); --scrim: rgba(0, 0, 0, .6);
    --shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 12px 30px -18px rgba(0, 0, 0, .7); --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .9);
    --st-cash: #179A70; --st-buy: #DD7524; --st-make: #8577EE; --st-stock: #C9509E; --st-sell: #4689EC;
    --good: #5FD3A2; --good-bg: #133A2B; --warn: #F0C46A; --warn-bg: #3A2F14; --bad: #F08C82; --bad-bg: #44201C; --info: #8DB6F5; --info-bg: #1A2A44;
    --on-ink: #0E1512; --focus: #8DB6F5;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1512; --paper-2: #141D19; --sheet: #18211D; --sheet-2: #1E2823;
  --ink: #E7EEE9; --ink-2: #B3C0B8; --ink-3: #8C9A92; --line: #2C3832; --line-2: #24302A;
  --hover: rgba(231, 238, 233, .06); --scrim: rgba(0, 0, 0, .6);
  --shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 12px 30px -18px rgba(0, 0, 0, .7); --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .9);
  --st-cash: #179A70; --st-buy: #DD7524; --st-make: #8577EE; --st-stock: #C9509E; --st-sell: #4689EC;
  --good: #5FD3A2; --good-bg: #133A2B; --warn: #F0C46A; --warn-bg: #3A2F14; --bad: #F08C82; --bad-bg: #44201C; --info: #8DB6F5; --info-bg: #1A2A44;
  --on-ink: #0E1512; --focus: #8DB6F5;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.5 var(--f-ui); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); letter-spacing: -.02em; text-wrap: balance; line-height: 1.15; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 19px; font-weight: 650; }
h3 { font-size: 16px; font-weight: 650; }
p { margin: 0; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-s { width: 17px; height: 17px; }
.ic-l { width: 24px; height: 24px; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--ink); color: var(--on-ink); font-weight: 650; font-size: 15px; text-decoration: none; transition: transform .15s ease, opacity .15s ease; white-space: nowrap; }
.btn:hover { opacity: .92; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-soft { background: var(--paper-2); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.iconbtn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); flex: none; }
.iconbtn:hover { background: var(--hover); color: var(--ink); }
.link { background: none; border: 0; padding: 4px 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* puces de choix (une seule réponse) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--paper-2); color: var(--ink); font-weight: 550; font-size: 14px; }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--ink); color: var(--on-ink); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.chip small { font-weight: 500; opacity: .7; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper-2); gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: transparent; min-height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

/* pastilles d'état */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.mute { background: var(--paper-2); color: var(--ink-2); }

/* ---------- coque ---------- */
.shell { min-height: 100vh; min-height: 100dvh; }
.main { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 8px calc(var(--dock-h) + 36px + env(safe-area-inset-bottom, 0px)); max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 8px; padding-block: 10px; padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(10px, env(safe-area-inset-right, 0px)); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.actbtn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 4px 12px 4px 5px; border: 0; border-radius: 999px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line); max-width: calc(100vw - 132px); text-align: left; }
.actbtn .av { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.actbtn .av .ic { width: 19px; height: 19px; stroke-width: 2; }
.actbtn b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actbtn small { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actbtn > span { min-width: 0; }
.top .sp { flex: 1; }
.sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 22%, transparent); }
.led.saving { background: var(--info); animation: blink 1s ease-in-out infinite; }
.led.off { background: var(--ink-3); box-shadow: none; }
.led.err { background: var(--bad); }
@keyframes blink { 50% { opacity: .35; } }
.me { width: 42px; height: 42px; border-radius: 999px; border: 0; background: var(--ink); color: var(--on-ink); font-weight: 700; font-family: var(--f-display); font-size: 16px; flex: none; }

/* dock (mobile) */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding-bottom: env(safe-area-inset-bottom, 0px); padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(8px, env(safe-area-inset-right, 0px)); background: color-mix(in srgb, var(--sheet) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line-2); }
.dock nav { display: grid; grid-template-columns: 1fr 1fr 84px 1fr 1fr; align-items: center; height: var(--dock-h); max-width: 560px; margin: 0 auto; }
.dock a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; text-decoration: none; color: var(--ink-3); font-size: 11.5px; font-weight: 650; border-radius: 14px; }
.dock a .ic { width: 23px; height: 23px; }
.dock a[aria-current="page"] { color: var(--ink); }
.dock a[aria-current="page"] .ic { stroke-width: 2.3; }
.dock a[aria-current="page"] span { position: relative; }
.dock a[aria-current="page"] span::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 16px; height: 3px; margin-left: -8px; border-radius: 3px; background: var(--ink); }

/* le bouton + : un anneau des couleurs du cycle autour d'un disque d'encre */
.plus { position: relative; justify-self: center; width: 66px; height: 66px; border-radius: 50%; border: 0; padding: 0; margin-top: -26px; background: conic-gradient(from -90deg, var(--st-cash), var(--st-buy), var(--st-make), var(--st-stock), var(--st-sell), var(--st-cash)); box-shadow: 0 14px 28px -12px rgba(12, 20, 16, .55); transition: transform .2s cubic-bezier(.3, 1.4, .5, 1); }
.plus::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--ink); }
.plus .ic { position: relative; width: 30px; height: 30px; stroke: var(--on-ink); stroke-width: 2.4; transition: transform .25s ease; }
.plus:hover { transform: translateY(-2px); }
.plus[aria-expanded="true"] .ic { transform: rotate(45deg); }

/* rail (PC) */
.rail { display: none; }
@media (min-width: 980px) {
  .shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); }
  .rail { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 18px 14px 18px max(14px, env(safe-area-inset-left, 0px)); border-right: 1px solid var(--line-2); background: var(--paper); overflow-y: auto; }
  .rail .actbtn { max-width: none; width: 100%; }
  .rail nav { display: flex; flex-direction: column; gap: 2px; }
  .rail nav a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
  .rail nav a:hover { background: var(--hover); color: var(--ink); }
  .rail nav a[aria-current="page"] { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
  .rail nav .sep { height: 1px; background: var(--line-2); margin: 8px 6px; }
  .rail .newop { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 12px 0 6px; border-radius: 999px; border: 0; background: var(--ink); color: var(--on-ink); font-weight: 700; font-size: 14.5px; white-space: nowrap; }
  .rail .newop i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(from -90deg, var(--st-cash), var(--st-buy), var(--st-make), var(--st-stock), var(--st-sell), var(--st-cash)); position: relative; }
  .rail .newop i::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); }
  .rail .newop .ic { position: relative; stroke: var(--on-ink); stroke-width: 2.4; }
  .rail .newop kbd { margin-left: auto; font: 600 11.5px var(--f-ui); padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .14); }
  .rail .foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
  .rail .who { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line-2); }
  .rail .who b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rail .who > span { min-width: 0; flex: 1; }
  .dock, .top { display: none; }
  .main { padding-block: 26px 48px; padding-left: 36px; padding-right: max(36px, env(safe-area-inset-right, 0px)); }
}

/* ---------- en-têtes de vue ---------- */
.vhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vhead h1 { font-size: 30px; }
.vhead p { color: var(--ink-2); margin-top: 4px; font-size: 14.5px; }
.vhead .acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* surfaces */
.panel { background: var(--sheet); border-radius: var(--r-panel); box-shadow: inset 0 0 0 1px var(--line-2); padding: 18px; min-width: 0; }
.panel-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel-h p { color: var(--ink-3); font-size: 13.5px; margin-top: 3px; }
.grid2 { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.empty { padding: 26px 12px; text-align: center; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty .ic { width: 34px; height: 34px; color: var(--ink-3); stroke-width: 1.5; }
.empty b { color: var(--ink); font-size: 16px; }

/* listes */
.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-radius: 12px; border: 0; background: transparent; width: 100%; text-align: left; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 52px; right: 6px; height: 1px; background: var(--line-2); }
button.row:hover, a.row:hover { background: var(--hover); }
.row .g { flex: 1; min-width: 0; }
.row .g b { display: block; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .g small { display: block; color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .v { text-align: right; flex: none; }
.row .v b { display: block; font-weight: 650; font-variant-numeric: tabular-nums; }
.row .v small { display: block; color: var(--ink-3); font-size: 12.5px; }
.row .v .pos { color: var(--good); }
.bub { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.bub .ic { width: 19px; height: 19px; stroke-width: 2; }
.bub.soft { background: var(--paper-2); color: var(--ink-2); }
.daycap { font-size: 13px; font-weight: 650; color: var(--ink-3); padding: 14px 6px 4px; }

/* ---------- le cycle (accueil) ---------- */
.pulse { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .pulse { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.cycle-card { position: relative; background: var(--sheet); border-radius: 26px; box-shadow: inset 0 0 0 1px var(--line-2); padding: 14px 14px 18px; overflow: hidden; }
.cycle-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 2px 4px 0; }
.cycle-top h2 { font-size: 17px; }
.cycle-top p { font-size: 13px; color: var(--ink-3); }
.cycle { position: relative; width: 100%; max-width: 460px; margin: 6px auto 0; aspect-ratio: 400 / 335; }
.cycle-cap { text-align: center; font-size: 14px; color: var(--ink-2); max-width: 34em; margin: 4px auto 0; padding: 0 8px; text-wrap: balance; }
.cycle-cap b { color: var(--ink); font-variant-numeric: tabular-nums; }
.cycle > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cycle canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* chaque étape : une bulle posée sur l'anneau, son libellé à l'extérieur */
.node { position: absolute; transform: translate(-50%, -50%); width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--sheet), 0 10px 18px -8px rgba(0, 0, 0, .55); transition: transform .2s ease; }
.node:hover { transform: translate(-50%, -50%) scale(1.07); }
.node .ic { width: 20px; height: 20px; stroke-width: 2; }
.node .lbl { position: absolute; display: flex; flex-direction: column; white-space: nowrap; color: var(--ink); text-align: left; }
.node .lbl small { font-size: 11.5px; color: var(--ink-3); font-weight: 600; line-height: 1.2; }
.node .lbl b { font-size: 14px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.node.r .lbl { left: calc(100% + 9px); top: 50%; transform: translateY(-50%); }
.node.l .lbl { right: calc(100% + 9px); top: 50%; transform: translateY(-50%); text-align: right; align-items: flex-end; }
.node.t .lbl { bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); text-align: center; align-items: center; }
.node.b .lbl { top: calc(100% + 8px); left: 50%; transform: translateX(-50%); text-align: center; align-items: center; }
@media (max-width: 420px) { .node { width: 36px; height: 36px; } .node .ic { width: 17px; height: 17px; } .node .lbl b { font-size: 13px; } .node .lbl small { font-size: 11px; } }
.cycle-center { position: absolute; left: 50%; top: 50.75%; transform: translate(-50%, -50%); width: 30%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; }
.cycle-center .pct { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 8.4vw, 46px); line-height: .95; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.cycle-center .pct small { font-size: .45em; font-weight: 700; margin-left: 2px; letter-spacing: 0; }
.cycle-center .lab { font-size: 12px; color: var(--ink-2); font-weight: 600; line-height: 1.25; }
.cycle-center .sub { font-size: 11.5px; color: var(--ink-3); line-height: 1.3; margin-top: 4px; }
.cycle-center .sub b { color: var(--ink); font-weight: 700; }
@media (min-width: 980px) { .cycle-center .pct { font-size: 48px; } }

/* bandeau des 3 chiffres */
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--sheet); border-radius: var(--r-panel); box-shadow: inset 0 0 0 1px var(--line-2); }
.fig { padding: 14px 12px; border: 0; background: transparent; text-align: left; display: flex; flex-direction: column; gap: 2px; min-width: 0; border-radius: var(--r-panel); }
.fig + .fig { border-left: 1px solid var(--line-2); border-radius: 0; }
.fig:hover { background: var(--hover); }
.fig small { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.fig b { font-family: var(--f-display); font-size: clamp(17px, 4.6vw, 24px); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fig b.neg { color: var(--bad); }
.fig b.pos { color: var(--good); }
.fig span { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* à faire */
.todo { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 0; background: transparent; width: 100%; text-align: left; }
.todo:hover { background: var(--hover); }
.todo + .todo { margin-top: 2px; }
.todo .mk { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.todo .mk.good { background: var(--good-bg); color: var(--good); }
.todo .mk.warn { background: var(--warn-bg); color: var(--warn); }
.todo .mk.bad { background: var(--bad-bg); color: var(--bad); }
.todo .mk.info { background: var(--info-bg); color: var(--info); }
.todo .g { flex: 1; min-width: 0; }
.todo b { display: block; font-size: 14.5px; font-weight: 650; }
.todo small { display: block; font-size: 13px; color: var(--ink-2); }
.todo .go { align-self: center; color: var(--ink-3); }

/* ---------- stock ---------- */
.items { display: flex; flex-direction: column; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 14px 8px; border: 0; background: transparent; text-align: left; border-radius: 12px; position: relative; width: 100%; }
.item + .item::before { content: ""; position: absolute; top: 0; left: 8px; right: 8px; height: 1px; background: var(--line-2); }
.item:hover { background: var(--hover); }
.item .nm { font-weight: 650; font-size: 15px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.item .nm span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.item .q { text-align: right; font-family: var(--f-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.item .q small { font-family: var(--f-ui); font-size: 12.5px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.item .meta { font-size: 13px; color: var(--ink-3); min-width: 0; }
.item .runway { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; margin-top: 4px; }
.item .runway i { display: block; height: 100%; border-radius: 4px; background: var(--c, var(--st-stock)); }
.item .side { text-align: right; font-size: 12.5px; color: var(--ink-3); }

/* cuves / lots */
.lots { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.lot { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; padding: 16px; background: var(--sheet); border-radius: var(--r-panel); box-shadow: inset 0 0 0 1px var(--line-2); text-align: left; border: 0; }
.lot:hover { box-shadow: inset 0 0 0 1.5px var(--line); }
.tank { position: relative; width: 74px; height: 112px; }
.tank svg { width: 100%; height: 100%; display: block; }
.lot h3 { font-size: 16px; margin-bottom: 4px; }
.lot .kv { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--ink-2); }
.lot .kv b { color: var(--ink); font-variant-numeric: tabular-nums; }
.lot .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.days { height: 6px; border-radius: 6px; background: var(--line-2); overflow: hidden; margin: 6px 0 2px; }
.days i { display: block; height: 100%; background: var(--st-make); border-radius: 6px; }

/* ---------- analyse ---------- */
.kgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border-radius: var(--r-panel); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2); }
@media (min-width: 760px) { .kgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.k { background: var(--sheet); padding: 14px 16px; min-width: 0; }
.k small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.k b { display: block; font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k span { display: block; font-size: 12.5px; color: var(--ink-3); }
.k b.neg { color: var(--bad); } .k b.pos { color: var(--good); }
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis { fill: var(--ink-3); font: 500 11px var(--f-ui); font-variant-numeric: tabular-nums; }
.chart .grid { stroke: var(--line-2); stroke-width: 1; }
.chart .base { stroke: var(--line); stroke-width: 1; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.tip { position: absolute; z-index: 5; pointer-events: none; background: var(--ink); color: var(--on-ink); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; line-height: 1.4; box-shadow: var(--shadow-lg); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tip b { font-weight: 700; }
.verdict { font-size: 14.5px; color: var(--ink-2); margin-top: 2px; }
.verdict b { color: var(--ink); }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 14px; }
.bar .lb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.bar .vl { font-variant-numeric: tabular-nums; font-weight: 650; text-align: right; }
.bar .vl small { color: var(--ink-3); font-weight: 500; margin-left: 6px; }
.bar .tr { grid-column: 1 / -1; height: 8px; border-radius: 0 4px 4px 0; background: transparent; }
.bar .tr i { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--c, var(--st-sell)); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12.5px; color: var(--ink-3); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.tbl td.r, .tbl th.r { text-align: right; }
.scrollx { overflow-x: auto; }

/* ---------- caisse ---------- */
.accs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.acc { padding: 16px; border-radius: var(--r-panel); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line-2); display: flex; flex-direction: column; gap: 6px; text-align: left; border: 0; }
.acc small { color: var(--ink-3); font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.acc b { font-family: var(--f-display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.acc b.neg { color: var(--bad); }
.eq { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.eq div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-variant-numeric: tabular-nums; }
.eq div.tot { border-top: 1.5px solid var(--ink); margin-top: 4px; padding-top: 10px; font-weight: 700; font-size: 16px; }

/* ---------- feuilles (saisie) ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: var(--scrim); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; width: 100%; max-width: 620px; max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; background: var(--sheet); border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: var(--shadow-lg); animation: rise .26s cubic-bezier(.2, .9, .3, 1); padding-bottom: env(safe-area-inset-bottom, 0px); }
@keyframes rise { from { transform: translateY(40px); opacity: .6; } }
@media (min-width: 720px) { .scrim { align-items: center; padding: 24px; } .sheet { border-radius: var(--r-sheet); max-height: 88vh; } }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 8px auto 0; flex: none; }
@media (min-width: 720px) { .sheet .grab { display: none; } }
.sh-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px 10px; flex: none; }
.sh-head .bub { width: 40px; height: 40px; }
.sh-head h2 { font-size: 20px; flex: 1; min-width: 0; }
.sh-head p { font-size: 13px; color: var(--ink-3); }
.sh-body { padding: 4px 18px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; overscroll-behavior: contain; }
.sh-foot { flex: none; padding: 12px 18px 14px; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 12px; background: var(--sheet); border-radius: 0 0 var(--r-sheet) var(--r-sheet); }
.sh-foot .tot { flex: 1; min-width: 0; }
.sh-foot .tot small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.sh-foot .tot b { display: block; font-family: var(--f-display); font-size: 24px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .flabel { font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.inp { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: var(--r-ctl); background: var(--sheet-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.inp:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.inp input, .inp select, .inp textarea { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; outline: none; min-height: 46px; font-size: 16px; }
.inp textarea { padding: 12px 0; min-height: 70px; resize: vertical; }
.inp .u { color: var(--ink-3); font-size: 14px; font-weight: 600; white-space: nowrap; }
.inp.big input { font-family: var(--f-display); font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 380px) { .three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 142px), 1fr)); gap: 8px; }
.pick { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; border: 0; background: var(--sheet-2); box-shadow: inset 0 0 0 1.5px var(--line-2); text-align: left; min-width: 0; position: relative; }
.pick:hover { box-shadow: inset 0 0 0 1.5px var(--line); }
.pick b { font-size: 14px; font-weight: 650; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pick small { font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pick[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); background: var(--sheet); }
.pick .cnt { position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; }
.pick.add { align-items: center; justify-content: center; flex-direction: row; gap: 6px; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); background: transparent; border: 0; font-weight: 600; font-size: 14px; min-height: 56px; }
.lines { display: flex; flex-direction: column; gap: 8px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--sheet-2); }
.line .nm { font-weight: 650; font-size: 14.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line .ctl { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; flex-wrap: wrap; }
.line .ctl .inp { min-height: 40px; flex: 1 1 90px; min-width: 0; }
.line .ctl .inp input { min-height: 38px; font-size: 15px; }
.line .lt { font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--line); flex: none; }
.stepper button { width: 38px; height: 38px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.stepper input { width: 52px; border: 0; background: transparent; text-align: center; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; outline: none; }
.note { font-size: 13px; color: var(--ink-3); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 14px; }
.alert .ic { margin-top: 1px; }
.alert.info { background: var(--info-bg); color: var(--info); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.bad { background: var(--bad-bg); color: var(--bad); }
.alert.good { background: var(--good-bg); color: var(--good); }
.alert b { display: block; }
.alert span { color: inherit; }
.switch { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; cursor: pointer; }
.switch + .switch { border-top: 1px solid var(--line-2); }
.switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; flex: none; margin: 2px 0 0; transition: background .2s ease; cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s ease; }
.switch input:checked { background: var(--st-cash); }
.switch input:checked::after { transform: translateX(18px); }
.switch b { display: block; font-size: 15px; }
.switch small { display: block; font-size: 13px; color: var(--ink-3); }
.kvs { display: flex; flex-direction: column; }
.kvs div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.kvs div span:first-child { color: var(--ink-3); }
.kvs div span:last-child { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; }
.btnrow .btn { flex: 1 1 140px; }

/* menu d'actions du bouton + */
.verbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.verb { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; min-height: 104px; border-radius: 18px; border: 0; background: var(--sheet-2); box-shadow: inset 0 0 0 1px var(--line-2); text-align: left; position: relative; overflow: hidden; }
.verb:hover { box-shadow: inset 0 0 0 1.5px var(--c); }
.verb .bub { background: var(--c); }
.verb > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.verb b { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.2; }
.verb small { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.3; }
.verb.lead-verb { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 84px; background: color-mix(in srgb, var(--c) 10%, var(--sheet)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 35%, transparent); }
.verb.lead-verb .bub { width: 50px; height: 50px; border-radius: 16px; }
.verb.lead-verb .bub .ic { width: 24px; height: 24px; }
.verb.lead-verb b { font-size: 18px; }

.minor { display: flex; gap: 8px; flex-wrap: wrap; }
.minor .btn { flex: 1 1 auto; }

/* notifications */
.toasts { position: fixed; left: 50%; bottom: calc(var(--dock-h) + 22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
@media (min-width: 980px) { .toasts { bottom: 28px; } }
.toasts.top { top: calc(env(safe-area-inset-top, 0px) + 14px); bottom: auto; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-lg); font-size: 14.5px; font-weight: 550; animation: rise .25s ease; }
.toast .g { flex: 1; }
.toast.bad { background: var(--bad); color: #fff; }
.toast button { border: 0; background: rgba(255, 255, 255, .16); color: inherit; font-weight: 700; border-radius: 999px; padding: 7px 12px; font-size: 13.5px; }

/* ---------- accueil public ---------- */
.wel { min-height: 100vh; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); padding-block: 0 40px; }
.wel-in { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: 56px; }
.wtop { display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { width: 40px; height: 40px; flex: none; }
.brand b { font-family: var(--f-display); font-size: 22px; font-weight: 800; letter-spacing: -.035em; display: block; line-height: 1; }
.brand small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 600; margin-top: 2px; }
.wtop .sp { flex: 1; }
.hero { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: center; padding-top: 6px; }
@media (min-width: 940px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.hero h1 { font-size: clamp(38px, 7.4vw, 66px); font-weight: 800; line-height: .98; letter-spacing: -.045em; max-width: 11em; }
.hero .lead { font-size: clamp(16px, 2.1vw, 18.5px); line-height: 1.55; color: var(--ink-2); max-width: 34em; margin-top: 18px; }
.hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero .ctas .btn { min-height: 52px; padding: 0 24px; font-size: 16px; }
.hero-visual { position: relative; }
.hero-visual .cycle-card { box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line-2); }
.hero-visual .tag { position: absolute; top: -12px; left: 18px; z-index: 2; }
.wsec h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 750; letter-spacing: -.03em; }
.wsec > p { color: var(--ink-2); margin-top: 8px; font-size: 16px; max-width: 40em; }
.tpls { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin-top: 22px; }
.tpl { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 20px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line-2); text-align: left; border: 0; }
.tpl .hd { display: flex; align-items: center; gap: 12px; }
.tpl .bub { width: 44px; height: 44px; border-radius: 14px; }
.tpl b { font-size: 17px; font-weight: 700; font-family: var(--f-display); letter-spacing: -.01em; }
.tpl p { font-size: 14px; color: var(--ink-2); }
.flowline { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.flowline span { display: inline-flex; align-items: center; gap: 5px; }
.flowline span i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.tpl .ft { margin-top: auto; padding-top: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tpl .ft small { font-size: 12.5px; color: var(--ink-3); }
.steps3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin-top: 22px; counter-reset: s; }
.step3 { padding: 18px; border-radius: 20px; background: var(--paper-2); }
.step3 .n { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-weight: 700; font-family: var(--f-display); margin-bottom: 12px; }
.step3 b { display: block; font-size: 17px; margin-bottom: 4px; }
.step3 p { font-size: 14.5px; color: var(--ink-2); }
.plans { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-top: 20px; }
.plan { padding: 18px; border-radius: 20px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line-2); display: flex; flex-direction: column; gap: 4px; }
.plan.long { box-shadow: inset 0 0 0 2px var(--ink); }
.plan .dur { font-weight: 650; color: var(--ink-2); }
.plan .price { font-family: var(--f-display); font-size: 34px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan .price small { font-size: 15px; font-weight: 700; margin-left: 4px; }
.plan .per { font-size: 13.5px; color: var(--ink-3); }
.wgrid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 940px) { .wgrid { grid-template-columns: minmax(0, 1fr) 400px; } .wgrid .auth-aside { position: sticky; top: 20px; } }
.authcard { background: var(--sheet); border-radius: 24px; padding: 22px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line-2); display: flex; flex-direction: column; gap: 14px; }
.authcard form { display: flex; flex-direction: column; gap: 12px; }
.tabs2 { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: 999px; background: var(--paper-2); }
.tabs2 button { border: 0; background: transparent; min-height: 40px; border-radius: 999px; font-weight: 650; font-size: 14px; color: var(--ink-2); }
.tabs2 button[aria-selected="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.or { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border-radius: 999px; border: 0; background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 650; }
.err-text { color: var(--bad); font-size: 14px; font-weight: 550; }
.wfoot { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13.5px; color: var(--ink-3); padding-top: 22px; border-top: 1px solid var(--line); }
.wfoot a, .wfoot button { color: var(--ink-2); }
.gate { max-width: 560px; margin: 0 auto; padding: 18px max(18px, env(safe-area-inset-right, 0px)) 40px max(18px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 18px; }
.gate .status-ico { width: 60px; height: 60px; border-radius: 20px; background: var(--paper-2); display: grid; place-items: center; }
.gate .status-ico .ic { width: 28px; height: 28px; }
.copyline { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 14px; background: var(--paper-2); font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: .01em; }
.copyline span { flex: 1; }
.splash { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 18px; }
.splash .mark { width: 64px; height: 64px; animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* onboarding : choix du modèle */
.onb { max-width: 920px; margin: 0 auto; padding: 24px max(18px, env(safe-area-inset-right, 0px)) 48px max(18px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 22px; }
.onb h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 800; letter-spacing: -.035em; }
.tpl[aria-pressed="true"] { box-shadow: inset 0 0 0 2.5px var(--ink); }

/* ---------- administration ---------- */
.adm-users { display: flex; flex-direction: column; gap: 10px; }
.urow { padding: 14px; border-radius: 16px; background: var(--sheet-2); display: flex; flex-direction: column; gap: 10px; }
.urow .who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.urow .who b { font-size: 15px; word-break: break-all; }
.urow .meta { font-size: 13px; color: var(--ink-3); }
.urow .ctl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.urow .ctl select, .urow .ctl input { min-height: 40px; border-radius: 10px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--sheet); padding: 0 10px; font-size: 14px; }
.urow .ctl input { width: 150px; }
.plan-edit { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.plan-edit .box { padding: 12px; border-radius: 14px; background: var(--sheet-2); display: flex; flex-direction: column; gap: 8px; }
.plan-edit input, .plan-edit select { min-height: 40px; border-radius: 10px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--sheet); padding: 0 10px; width: 100%; }
.plan-edit .duo { display: grid; grid-template-columns: 70px 1fr; gap: 8px; }

/* bandeau démo */
.demo-band { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: var(--info-bg); color: var(--info); font-size: 13.5px; font-weight: 550; }
.demo-band .g { flex: 1; min-width: 180px; }
.demo-band .btn { min-height: 34px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
