/* Black · styles communs
   Code couleur : jaune = revenus / ce qui rentre · rouge = dépenses / ce qui sort · vert = épargne
   Tout le reste en noir et blanc. */
:root{
  --ink:#0B0B0C; --soft:#3A3A3E; --muted:#66666B; --line:#EFEFEC; --line2:#E7E7E4; --surface:#F4F4F2; --field:#8E8E8A;
  --rev:#F7C948; --rev-fg:#0B0B0C; --rev-sub:#3A3A3E;
  --dep:#C62828; --dep-fg:#FFFFFF; --dep-sub:#FFE3E0;
  --inv:#1E6B47; --inv-fg:#FFFFFF; --inv-sub:#DDF3E4;
  --neg:#B42318; --neg-bg:#FDECEA; --pos:#17663F; --pos-bg:#E6F2EA;
}
*{box-sizing:border-box}
html,body{margin:0;background:#fff;color:var(--ink);font-family:Manrope,system-ui,-apple-system,sans-serif;font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}
body.blurred #app{filter:blur(18px)}
#app{max-width:480px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
h1{margin:0;font-size:28px;line-height:34px;font-weight:800;letter-spacing:-.02em}
h2{margin:0;font-size:18px;line-height:24px;font-weight:800}
.muted{color:var(--muted)} .small{font-size:12.5px;line-height:18px} .neg{color:var(--neg)} .pos{color:var(--pos)}
.nowrap{white-space:nowrap}

/* Page */
.pg{flex:1;padding:16px 20px 120px}
.pg.sub{padding-bottom:40px}
.hd{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px}
.hd-l{display:flex;align-items:center;gap:8px;min-width:0}
.back{width:44px;height:44px;margin-left:-12px;flex:none;border:0;border-radius:22px;background:transparent;display:flex;align-items:center;justify-content:center}
.lead{margin:6px 0 0;font-size:14px;line-height:20px;color:var(--soft)}
.hello{margin-top:18px;font-size:26px;line-height:32px}
.sec{margin-top:26px}
.sec-h{display:flex;align-items:center;justify-content:space-between;gap:8px}
.sec-h b{font-size:15px;font-weight:800;white-space:nowrap}
.grp{margin:26px 0 4px;font-size:12px;line-height:16px;font-weight:800;letter-spacing:.1em;color:var(--muted)}
.note{margin:10px 0 0;font-size:12.5px;line-height:18px;color:var(--muted)}
.logo{font-weight:800;letter-spacing:.16em;line-height:1;white-space:nowrap;display:inline-flex;align-items:baseline}
.avatar{width:44px;height:44px;border-radius:22px;border:0;background:var(--surface);font-size:13px;font-weight:800}

/* Carte métal */
.metal{border-radius:22px;padding:18px 20px 20px;background:linear-gradient(135deg,#2B2B2E 0%,#121214 48%,#1E1E21 100%);color:#fff;box-shadow:0 12px 28px rgba(11,11,12,.18)}
.metal .k{font-size:12px;line-height:16px;font-weight:700;letter-spacing:.06em;color:#B5B5BA}
.metal .v{margin-top:2px;font-size:34px;line-height:42px;font-weight:800;letter-spacing:-.02em;white-space:nowrap}
.metal .s{font-size:13px;line-height:18px;color:#B5B5BA}
.metal .lines{margin-top:14px;border-top:1px solid rgba(255,255,255,.14)}
.metal .ln{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.1);font-size:13.5px;line-height:18px}
.metal .ln:last-child{border-bottom:0;padding-bottom:0}
.metal .ln span:first-child{color:#D5D5D9} .metal .ln b{white-space:nowrap}
.fc-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}
.chip{position:relative;width:44px;height:33px;border-radius:7px;background:linear-gradient(135deg,#EBD08A 0%,#C9A24B 52%,#9C7A2E 100%);overflow:hidden;flex:none}
.chip i{position:absolute;background:rgba(90,66,20,.45)}
.cur{display:flex;border:1px solid rgba(255,255,255,.24);border-radius:23px}
.cur button{min-width:48px;height:44px;padding:0 14px;border:0;border-radius:22px;background:transparent;color:#D5D5D9;font-size:13px;font-weight:800}
.cur button[aria-pressed=true]{background:#fff;color:var(--ink)}
.link-w{display:inline-block;margin-top:2px;padding:0;border:0;background:none;font-size:13px;line-height:18px;color:#D5D5D9;text-decoration:underline;text-underline-offset:3px}

/* Blocs de couleur */
.rev{background:var(--rev);color:var(--rev-fg)} .rev .sub{color:var(--rev-sub)}
.dep{background:var(--dep);color:var(--dep-fg)} .dep .sub{color:var(--dep-sub)}
.inv{background:var(--inv);color:var(--inv-fg)} .inv .sub{color:var(--inv-sub)}
.blk{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:118px;padding:18px 18px 18px 22px;border:0;border-radius:22px;text-align:left}
.blk .t{font-size:14px;line-height:18px;font-weight:800}
.blk .v{display:block;font-size:32px;line-height:40px;font-weight:800;letter-spacing:-.02em;white-space:nowrap}
.blk .sub{font-size:12.5px;line-height:17px;font-weight:700}
.blk .ico{width:44px;height:44px;flex:none;border-radius:22px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.2)}
.blk.rev .ico{background:rgba(11,11,12,.12)}
.stack{display:flex;flex-direction:column;gap:12px}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mini{min-height:92px;padding:12px 10px;border:0;border-radius:18px;text-align:left;display:flex;flex-direction:column;justify-content:space-between;gap:6px}
.mini .t{font-size:12.5px;line-height:16px;font-weight:800}
.mini .v{font-size:16px;line-height:22px;font-weight:800;white-space:nowrap}
.tab-blk{min-height:116px;padding:14px 16px;border:0;border-radius:20px;text-align:left;display:flex;flex-direction:column;justify-content:space-between}
.tab-blk[aria-pressed=true]{outline:3px solid var(--ink);outline-offset:2px}
.tab-blk .v{font-size:24px;line-height:30px;font-weight:800;letter-spacing:-.02em;white-space:nowrap}
.rest{padding:4px 12px;border-radius:14px;font-size:13px;line-height:18px;font-weight:800;white-space:nowrap}
.rest.neg{background:var(--neg-bg);color:var(--neg)} .rest.pos{background:var(--pos-bg);color:var(--pos)}

/* Cartes et listes */
.card{border:1px solid var(--line2);border-radius:20px;padding:18px}
.soft{background:var(--surface);border-radius:20px;padding:16px}
.row{display:flex;align-items:center;gap:6px;min-height:58px;border-bottom:1px solid var(--line)}
.line{display:flex;align-items:center;gap:12px;min-height:58px;border-bottom:1px solid var(--line)}
.line .t{flex:1;min-width:0} .line .t b{display:block;font-size:15px;line-height:20px} .line .t span{display:block;font-size:12.5px;line-height:17px;color:var(--muted)}
.line .v{font-size:15px;font-weight:800;white-space:nowrap}
.name{flex:1;min-width:0;height:40px;margin-left:-8px;padding:0 8px;border:1px solid transparent;border-radius:10px;background:transparent;font-size:15px;font-weight:700}
.name:focus{border-color:var(--field)}
.amt{display:flex;align-items:center;gap:2px;height:40px;padding:0 10px;border-radius:10px;background:var(--surface);flex:none}
.amt input{width:70px;border:0;background:transparent;text-align:right;font-size:15px;font-weight:800;padding:0}
.amt input.pct{width:36px}
.amt span{font-size:13px;font-weight:700}
.pv{width:84px;text-align:right;font-size:14px;font-weight:800;white-space:nowrap;flex:none}
.swd{width:10px;height:10px;border-radius:5px;flex:none}
.sel{height:40px;border:0;border-radius:10px;background:var(--surface);padding:0 8px;font-size:13px;font-weight:700;flex:none;max-width:118px}
.check{width:44px;height:44px;flex:none;border:0;padding:0;background:transparent;display:flex;align-items:center;justify-content:center}
.check span{width:28px;height:28px;border-radius:14px;border:1.5px solid var(--field);display:flex;align-items:center;justify-content:center;color:#C8C8C3;background:#fff}
.check.on span{background:var(--pos);border-color:var(--pos);color:#fff}
.icon-btn{width:38px;height:44px;flex:none;border:0;border-radius:19px;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center}
.add{margin-top:6px;min-height:44px;padding:0;border:0;background:transparent;font-size:14px;font-weight:800;display:flex;align-items:center;gap:6px}
.auto{font-size:11px;font-weight:800;padding:0 7px;border-radius:9px;background:var(--surface);color:var(--soft);line-height:18px}
.menu{display:flex;align-items:center;gap:14px;width:100%;min-height:66px;padding:0;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left}
.menu .i{width:40px;height:40px;flex:none;border-radius:20px;background:var(--surface);display:flex;align-items:center;justify-content:center}
.menu .i.dark{background:var(--ink);color:#fff}
.menu .t{flex:1;min-width:0} .menu .t b{display:flex;align-items:center;gap:8px;font-size:15px;line-height:20px} .menu .t span{display:block;font-size:12.5px;line-height:17px;color:var(--muted)}
.menu.danger{color:var(--neg);border-bottom:0} .menu.danger .i{background:var(--neg-bg)}
.badge{padding:0 8px;border-radius:10px;background:var(--rev);color:var(--ink);font-size:11px;line-height:18px;font-weight:800}

/* Boutons et champs */
.btn{min-height:52px;width:100%;border-radius:26px;border:0;background:var(--ink);color:#fff;font-size:16px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 18px}
.btn.ghost{background:#fff;color:var(--ink);border:1px solid var(--ink)}
.btn.danger{background:#fff;color:var(--neg);border:1px solid var(--neg)}
.btn.sm{min-height:44px;width:auto;font-size:13.5px;border-radius:22px;padding:0 16px}
.btn[disabled]{opacity:.5}
.lnk{border:0;background:none;padding:0 4px;min-height:44px;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.pills{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px}
.pills button{flex:1 0 auto;min-height:44px;padding:0 14px;border-radius:22px;border:1px solid #CFCFCB;background:#fff;font-size:13.5px;font-weight:800;white-space:nowrap}
.pills button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}
.field{width:100%;height:52px;padding:0 14px;border-radius:14px;border:1px solid var(--field);background:#fff;font-size:16px}
.lbl{display:block;margin:16px 0 8px;font-size:13.5px;line-height:20px;font-weight:700}
.pin{letter-spacing:.5em;font-size:22px;font-weight:800;text-align:center}
.form2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.form2 label{display:flex;flex-direction:column;gap:6px;font-size:13px;line-height:18px;font-weight:700}
.form2 .full{grid-column:span 2}
.form2 input{height:48px;padding:0 12px;border-radius:12px;border:1px solid var(--field);font-size:15px;font-weight:800;width:100%}
.sw{width:52px;height:44px;flex:none;border:0;padding:0;background:transparent;display:flex;align-items:center;justify-content:center}
.sw span{position:relative;display:block;width:44px;height:26px;border-radius:13px;background:var(--field)}
.sw span i{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:10px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:left .15s}
.sw[aria-checked=true] span{background:var(--ink)} .sw[aria-checked=true] span i{left:21px}

/* Graphiques */
.donut{position:relative;width:180px;height:180px;margin:0 auto}
.donut .c{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.donut .c span{font-size:12px;line-height:16px;font-weight:700;color:var(--muted)}
.donut .c b{font-size:22px;line-height:28px;font-weight:800;letter-spacing:-.02em;white-space:nowrap}
.bar{flex:1;display:flex;height:10px;border-radius:5px;background:var(--rev);overflow:hidden}
.bar i{display:block;height:10px}
.prog{height:8px;border-radius:4px;background:var(--line);overflow:hidden}
.prog i{display:block;height:8px;border-radius:4px;background:var(--inv)}
.mrow{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:0;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left}
.mrow .n{width:92px;flex:none;font-size:15px;font-weight:600} .mrow[aria-pressed=true] .n{font-weight:800}
.mrow .r{width:96px;flex:none;text-align:right;font-size:15px;font-weight:800;white-space:nowrap}

/* Navigation */
nav.tabs{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;display:flex;border-top:1px solid var(--line2);background:#fff;padding:6px 6px calc(14px + env(safe-area-inset-bottom));z-index:5}
nav.tabs button{flex:1;min-height:52px;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:11px;font-weight:600;color:var(--muted)}
nav.tabs button[aria-current=page]{color:var(--ink);font-weight:800}

/* Bulle du conseiller */
.fab{position:fixed;right:max(16px,calc(50% - 224px));bottom:calc(92px + env(safe-area-inset-bottom));z-index:6;display:flex;align-items:center;gap:8px;border:0;background:transparent;padding:0}
.fab .tip{max-width:190px;padding:10px 14px;border-radius:18px 18px 4px 18px;background:#fff;box-shadow:0 6px 20px rgba(11,11,12,.18);font-size:13px;line-height:18px;font-weight:700;text-align:left}
.fab .b{width:56px;height:56px;border-radius:28px;background:var(--ink);display:flex;align-items:center;justify-content:center;box-shadow:0 8px 22px rgba(11,11,12,.3)}

/* Fenêtre (sheet) */
.sheet-bg{position:fixed;inset:0;z-index:30;border:0;padding:0;background:rgba(11,11,12,.5);width:100%}
.sheet{position:fixed;left:50%;transform:translateX(-50%);bottom:0;z-index:31;width:100%;max-width:480px;max-height:88vh;display:flex;flex-direction:column;background:#fff;border-radius:26px 26px 0 0;box-shadow:0 -12px 32px rgba(11,11,12,.22);overflow:hidden}
.sheet-hd{padding:18px 20px 16px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.sheet-hd.plain{border-bottom:1px solid var(--line)}
.sheet-hd .t{font-size:13px;line-height:18px;font-weight:800}
.sheet-hd .v{font-size:30px;line-height:38px;font-weight:800;letter-spacing:-.02em;white-space:nowrap}
.sheet-hd .x{width:44px;height:44px;flex:none;border:0;border-radius:22px;background:rgba(255,255,255,.2);color:inherit;display:flex;align-items:center;justify-content:center}
.sheet-hd.rev .x,.sheet-hd.plain .x{background:rgba(11,11,12,.08)}
.sheet-bd{flex:1;overflow-y:auto;padding:4px 20px 8px}
.sheet-ft{padding:12px 20px calc(20px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}

/* Messages */
.toast{position:fixed;top:12px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:10px 16px;border-radius:20px;font-size:13px;font-weight:700;z-index:50;max-width:90vw}
.utoast{top:auto;bottom:calc(88px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:14px;padding:6px 6px 6px 16px;border-radius:24px;box-shadow:0 8px 24px rgba(11,11,12,.25);width:max-content}
.utoast button{min-height:40px;padding:0 16px;border:0;border-radius:20px;background:#fff;color:var(--ink);font-size:13.5px;font-weight:800}
.empty{padding:22px 18px;border-radius:20px;background:var(--surface);text-align:center}
.empty b{display:block;font-size:16px;line-height:22px}
.empty p{margin:4px 0 12px;font-size:13.5px;line-height:20px;color:var(--soft)}

/* Conseiller */
.chat{display:flex;flex-direction:column;gap:12px;padding:16px 0}
.msg{max-width:86%;padding:12px 14px;border-radius:18px;font-size:14.5px;line-height:21px;white-space:pre-line}
.msg.bot{align-self:flex-start;background:var(--surface);border-bottom-left-radius:4px}
.msg.me{align-self:flex-end;background:var(--ink);color:#fff;border-bottom-right-radius:4px}
.chips{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.chips button{min-height:44px;padding:0 16px;border-radius:22px;border:1px solid #CFCFCB;background:#fff;font-size:13.5px;font-weight:700;text-align:left}
.ask{position:sticky;bottom:0;display:flex;gap:8px;padding:12px 0 calc(16px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line)}
.ask input{flex:1;min-width:0;height:48px;padding:0 16px;border-radius:24px;border:1px solid var(--field);font-size:15px}
.ask button{width:48px;height:48px;flex:none;border:0;border-radius:24px;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center}

/* Connexion */
.auth{display:flex;flex-direction:column;min-height:100vh;padding:16px 20px 28px}
.auth .stackb{margin-top:auto;display:flex;flex-direction:column;gap:10px;padding-top:32px}
.fine{margin:16px 0 0;font-size:12.5px;line-height:18px;color:var(--muted);text-align:center}
.deco{margin:40px auto 0;width:100%;max-width:310px;height:194px;display:flex;flex-direction:column;justify-content:space-between}
.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}
.keypad button{height:58px;border:0;border-radius:16px;background:var(--surface);font-size:24px;font-weight:700}
.keypad .kx{background:transparent;display:flex;align-items:center;justify-content:center}
.dots{display:flex;justify-content:center;gap:14px;margin-top:12px}
.dots i{width:14px;height:14px;border-radius:7px;border:2px solid var(--field)}
.dots i.on{background:var(--ink);border-color:var(--ink)}
.err{color:var(--neg);font-size:13.5px;line-height:20px;font-weight:700;margin-top:10px;min-height:20px}
.code{font-size:26px;font-weight:800;letter-spacing:.12em;text-align:center;padding:18px;border-radius:16px;background:var(--surface)}
@media(min-width:760px){#app,nav.tabs,.sheet{max-width:560px}}

/* Mode discret (œil de l'Accueil) : montants floutés */
.blur-amt{filter:blur(7px);-webkit-user-select:none;user-select:none}
input.blur-amt{filter:blur(5px)}
.hd-r{display:flex;align-items:center;gap:4px}
.eye{width:44px;height:44px;border:0;border-radius:22px;background:transparent;display:flex;align-items:center;justify-content:center;color:var(--ink)}
.eye[aria-pressed=true]{background:var(--surface)}

/* Sources de l'objectif (fenêtre) */
.src{padding-bottom:12px;border-bottom:1px solid var(--line)}
.src .row{border-bottom:0}
.src .pills button{min-height:44px;padding:0 12px;font-size:12.5px}
.src-k{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;font-size:12.5px;line-height:17px;color:var(--muted)}
.src-k label{display:flex;align-items:center;gap:6px;flex:none;font-weight:700;color:var(--soft)}
.src-k input{height:44px;border:1px solid var(--line2);border-radius:10px;padding:0 8px;font-size:13px;font-weight:700;background:#fff}

/* Écran d'ouverture : logo + phrase, 5 secondes */
#splash{position:fixed;inset:0;z-index:100;background:#0B0B0C;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px;text-align:center;transition:opacity .5s ease;cursor:pointer}
#splash.out{opacity:0;pointer-events:none}
#splash .sp-logo{font-size:40px;line-height:40px;font-weight:800;letter-spacing:.16em;white-space:nowrap;animation:sp-in .9s ease both}
#splash .sp-logo svg{display:inline-block;width:.72em;height:.72em;margin-right:.16em}
#splash .sp-tag{margin:34px 0 0;max-width:320px;font-size:19px;line-height:29px;font-weight:500;color:#B5B5BA;animation:sp-in .9s .7s ease both}
#splash .sp-tag b{color:#fff;font-weight:800}
#splash .sp-tag em{font-style:italic;font-weight:800;color:#F7C948}
#splash .sp-dots{position:absolute;left:0;right:0;bottom:calc(52px + env(safe-area-inset-bottom));display:flex;justify-content:center;gap:10px}
#splash .sp-dots i{width:8px;height:8px;border-radius:4px;background:#fff;opacity:.25;animation:sp-dot 1.2s ease-in-out infinite}
#splash .sp-dots i:nth-child(2){animation-delay:.2s}
#splash .sp-dots i:nth-child(3){animation-delay:.4s}
@keyframes sp-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes sp-dot{0%,80%,100%{opacity:.25;transform:scale(.8)}40%{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){#splash .sp-logo,#splash .sp-tag,#splash .sp-dots i{animation:none}#splash .sp-dots i{opacity:.6}}

/* Carte Fortune nette avec photo (pages/card.js) */
.pcard{position:relative;height:224px;margin-top:16px;border-radius:20px;overflow:hidden;color:#fff;background:#1D1D1F;box-shadow:0 24px 40px -22px rgba(0,0,0,.55)}
.pcard>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.pcard .shade{position:absolute;inset:0;border-radius:20px;background:linear-gradient(180deg,rgba(0,0,0,.32) 0%,rgba(0,0,0,0) 36%,rgba(0,0,0,.06) 52%,rgba(0,0,0,.66) 100%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.pcard .in{position:relative;height:100%;padding:18px 20px;display:flex;flex-direction:column;justify-content:space-between}
.pcard .pc-top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}
.pcard .pc-bot{display:flex;flex-direction:column;gap:6px;text-shadow:0 1px 14px rgba(0,0,0,.3)}
.pcard .k{font-size:11px;line-height:14px;font-weight:700;letter-spacing:.14em;color:rgba(255,255,255,.86)}
.pcard .v{display:flex;align-items:baseline;gap:6px}
.pcard .v b{font-size:42px;line-height:1;font-weight:800;letter-spacing:-.03em;white-space:nowrap}
.pcard .v span{font-size:20px;line-height:1;font-weight:600;color:rgba(255,255,255,.86)}
.pcard .link-w{align-self:flex-start;margin-top:4px;color:rgba(255,255,255,.92)}
.pcard.tall{height:auto}
.pcard.tall .shade{background:linear-gradient(180deg,rgba(0,0,0,.36) 0%,rgba(0,0,0,.5) 45%,rgba(0,0,0,.76) 100%)}
.pcard.tall .pc-bot{margin-top:14px}
.pcard .lines{margin-top:14px;border-top:1px solid rgba(255,255,255,.18)}
.pcard .ln{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.12);font-size:13.5px;line-height:18px}
.pcard .ln:last-child{border-bottom:0;padding-bottom:0}
.pcard .ln span:first-child{color:#E4E4E7} .pcard .ln b{white-space:nowrap}
.glass{display:flex;gap:2px;padding:4px;height:44px;border-radius:999px;background:rgba(255,255,255,.16);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
.glass button{min-width:48px;height:36px;padding:0 14px;border:0;border-radius:999px;background:transparent;color:rgba(255,255,255,.92);font-size:13px;font-weight:800}
.glass button[aria-pressed=true]{background:#fff;color:var(--ink)}
.fonds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
.fonds button{height:72px;padding:0;border:0;border-radius:12px;overflow:hidden;background:var(--surface);box-shadow:0 0 0 1px rgba(0,0,0,.06)}
.fonds button[aria-pressed=true]{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--ink)}
.fonds img{width:100%;height:100%;object-fit:cover;display:block}
.metal.deco{background:linear-gradient(180deg,rgba(0,0,0,.3) 0%,rgba(0,0,0,0) 40%,rgba(0,0,0,.58) 100%),url(fonds/nuit.webp?v=1) center/cover;border-radius:20px;justify-content:flex-end}
.metal.deco .chip{display:none}

/* Projets (pages/projects.js) */
.proj{display:block;width:100%;margin-top:12px;border:0;text-align:left}
.proj>span{display:block}
.proj .pj-h{display:flex !important;align-items:center;justify-content:space-between;gap:12px;font-size:20px;line-height:26px}
.proj .tag{padding:2px 10px;border-radius:12px;border:1px solid rgba(255,255,255,.28);font-size:12px;line-height:18px;font-weight:700;color:#E4E4E7}
.proj .k{margin-top:14px}
.proj .v{font-size:32px;line-height:40px}
.proj .pj-bar{display:flex !important;gap:3px;height:10px;margin-top:16px}
.proj .pj-bar i{display:block;border-radius:5px}
.proj .pj-st{display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;font-size:12px;line-height:16px;font-weight:700;color:#B5B5BA}
.proj .pj-st em{display:inline-block;width:8px;height:8px;border-radius:4px;margin-right:6px}
.proj .pj-st b{display:block;margin-top:2px;font-size:16px;line-height:22px;font-weight:800;color:#fff}

/* Objectif : devise et phrase */
.motto{display:block;width:100%;height:28px;padding:0;border:0;background:transparent;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--inv)}
.motto::placeholder{color:var(--inv)}
.quote{margin:16px 0 0;padding:14px 16px;border-radius:14px;background:var(--surface)}
.quote textarea{display:block;width:100%;padding:0;border:0;background:transparent;resize:none;font-size:14px;line-height:21px;font-style:italic;font-weight:500;color:#2A2A2D}
.quote input{display:block;width:100%;height:28px;margin-top:4px;padding:0;border:0;background:transparent;font-size:12px;font-weight:700;color:var(--muted)}

/* Lignes : liste déroulante, rond à maintenir, actions (js/ui.js rows) */
.rows.has-held .rw:not(:has(.held)){opacity:.4;transition:opacity .2s}
.row.std{min-height:62px}
.nm{position:relative;flex:1;min-width:0;display:flex;flex-direction:column;padding:8px 0;cursor:pointer}
.nm-t{display:flex;align-items:center;gap:4px;min-width:0;font-size:15px;line-height:20px;font-weight:700}
.nm-t>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nm-t svg{flex:none;color:var(--muted)}
.nm-c{font-size:11.5px;line-height:16px;font-weight:600;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nm>select{position:absolute;inset:0;width:100%;height:100%;opacity:0;border:0;font-size:16px;cursor:pointer}
.nm-acc{display:flex;align-items:center;gap:6px;overflow:visible}
.nm-acc .sel{height:32px;max-width:150px;font-size:12px}
.hold{position:relative;width:44px;height:44px;flex:none;margin-right:-6px;border:0;padding:0;background:transparent;display:flex;align-items:center;justify-content:center;color:var(--muted);touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.hold .ring{position:absolute;top:6px;left:6px;transform:rotate(-90deg)}
.hold .rb{fill:#fff;stroke:var(--line2);stroke-width:1.5}
.hold .rf{fill:none;stroke:var(--dep);stroke-width:2.5;stroke-linecap:round;stroke-dasharray:88;stroke-dashoffset:88;transition:stroke-dashoffset .15s ease-out}
.hold .d6{position:relative}
.hold.pressing .rf{stroke-dashoffset:0;transition:stroke-dashoffset .5s linear}
.hold.on .rb{fill:var(--ink);stroke:var(--ink)} .hold.on{color:#fff}
.row.held{margin:0 -10px;padding:0 10px;border-radius:16px;background:var(--surface);border-bottom-color:transparent;box-shadow:0 10px 24px rgba(11,11,12,.12)}
.acts{padding:8px 0 14px;border-bottom:1px solid var(--line)}
.acts-h{display:flex;align-items:center;justify-content:space-between;font-size:11.5px;line-height:16px;font-weight:800;letter-spacing:.08em;color:var(--muted)}
.acts-h .lnk{letter-spacing:0;color:var(--ink);font-size:13px}
.acts-b{display:flex;flex-wrap:wrap;gap:8px}
.mv{min-height:44px;padding:0 14px 0 12px;border-radius:22px;border:1px solid var(--line2);background:#fff;font-size:13.5px;font-weight:800;display:flex;align-items:center;gap:7px}
.mv i{width:10px;height:10px;border-radius:5px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.mv.danger{margin-left:auto;border:0;background:var(--neg-bg);color:var(--neg)}
.custom{display:flex;flex-direction:column;gap:10px;padding:6px 0 14px;border-bottom:1px solid var(--line)}
.custom label{display:flex;flex-direction:column;gap:6px;font-size:12.5px;font-weight:700;color:var(--soft)}
.custom .field{height:48px;font-weight:700;font-size:15px}
.custom-k{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12.5px;font-weight:700;color:var(--soft)}
.custom-k button{min-height:44px;padding:0 16px;border-radius:22px;border:1px solid #CFCFCB;background:#fff;font-size:13.5px;font-weight:800}
.custom-k button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}
.sheet-hd{position:relative}
.sheet-hd .grab{position:absolute;top:7px;left:50%;width:40px;height:5px;margin-left:-20px;border-radius:3px;background:currentColor;opacity:.3}

/* Budget : ta méthode */
.mcta,.mstrip{display:flex;width:100%;margin-top:12px;border:0;border-radius:20px;background:var(--surface);text-align:left}
.mcta{align-items:center;gap:12px;padding:14px 16px}
.mcta .i{width:40px;height:40px;flex:none;border-radius:20px;background:#fff;display:flex;align-items:center;justify-content:center}
.mcta .t{flex:1;min-width:0} .mcta b{display:block;font-size:15px;line-height:20px} .mcta .t span{font-size:12.5px;line-height:17px;color:var(--muted)}
.mstrip{flex-direction:column;gap:8px;padding:14px 16px}
.ms-h{display:flex;justify-content:space-between;gap:8px;font-size:13.5px} .ms-h span{font-size:12.5px;font-weight:700;color:var(--muted)}
.ms-r{display:grid;grid-template-columns:86px 1fr 72px;align-items:center;gap:10px;font-size:12.5px;font-weight:700}
.ms-l{color:var(--soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms-b{position:relative;height:6px;border-radius:3px;background:#E3E3DF}
.ms-b i{position:absolute;left:0;top:0;bottom:0;border-radius:3px}
.ms-b em{position:absolute;top:-3px;width:2px;height:12px;margin-left:-1px;border-radius:1px;background:var(--ink)}
.ms-v{text-align:right;font-weight:800;white-space:nowrap} .ms-v small{font-weight:600;color:var(--muted)}

/* Ta méthode : test et résultat (pages/methode.js) */
.eyebrow{margin:0;font-size:12px;line-height:16px;font-weight:800;letter-spacing:.14em;color:var(--inv)}
.mprog{flex:1;display:flex;gap:4px} .mprog i{flex:1;height:4px;border-radius:2px;background:var(--line2)} .mprog i.on{background:var(--ink)} .mprog i.cur{background:var(--field)}
.mq-q{margin-top:10px}
.mq-o{margin-top:22px;display:flex;flex-direction:column;gap:10px}
.mq-o button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:68px;padding:12px 16px 12px 18px;border-radius:18px;border:1.5px solid var(--line2);background:#fff;text-align:left}
.mq-o b{display:block;font-size:17px;line-height:22px} .mq-o button span span{display:block;font-size:13px;line-height:18px;font-weight:600;color:var(--muted)}
.mq-o i{width:26px;height:26px;flex:none;border-radius:13px;border:1.5px solid #CFCFCB;display:flex;align-items:center;justify-content:center;color:transparent}
.mq-o button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff} .mq-o button[aria-pressed=true] span span{color:#D5D5D9} .mq-o button[aria-pressed=true] i{background:#fff;border-color:#fff;color:var(--ink)}
.mq-p{margin-top:24px;padding:16px 18px;border-radius:20px;background:var(--surface)}
.mq-p .sec-h span{font-size:12.5px;font-weight:700;color:var(--muted)}
.mq-t{margin:2px 0 10px;font-size:26px;line-height:32px;font-weight:800;letter-spacing:-.02em}
.mq-p p{margin:8px 0 0;font-size:13px;line-height:19px;color:var(--soft)}
.mbar{display:flex;gap:3px} .mbar i{border-radius:5px}
.mleg{display:flex;flex-wrap:wrap;gap:4px 12px;margin-top:8px;font-size:12px;line-height:16px;font-weight:700;color:var(--soft)}
.mleg span{display:flex;align-items:center;gap:5px} .mleg i{width:8px;height:8px;border-radius:4px}
.mtitle{margin-top:6px;font-size:44px;line-height:50px;letter-spacing:-.03em;white-space:nowrap}
.mchips{margin:12px 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:6px}
.mchips li{padding:6px 12px;border-radius:16px;background:var(--surface);font-size:12.5px;line-height:18px;font-weight:700;color:var(--soft)}
.mr{padding:12px 0;border-bottom:1px solid var(--line)} .mr:last-child{border-bottom:0;padding-bottom:0}
.mr-a{display:flex;align-items:center;gap:8px;font-size:15px;line-height:20px} .mr-a i{width:10px;height:10px;flex:none;border-radius:5px} .mr-a b:first-of-type{flex:1;min-width:0} .mr-t{white-space:nowrap}
.mr-b{margin:2px 0 0 18px;display:flex;justify-content:space-between;gap:10px;font-size:12.5px;line-height:17px;color:var(--muted)} .mr-b b{white-space:nowrap}
.mtips{margin:10px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.mtips li{display:flex;gap:12px;align-items:flex-start} .mtips span{width:26px;height:26px;flex:none;border-radius:13px;background:var(--ink);color:#fff;font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:center} .mtips p{margin:2px 0 0;font-size:14px;line-height:21px}
.ok-strip{display:flex;align-items:center;gap:12px;padding:6px 8px 6px 14px;border-radius:18px;background:var(--pos-bg);color:var(--pos);font-size:13.5px;line-height:19px;font-weight:700} .ok-strip span{flex:1}
.mlist{margin-top:12px} .mlist button{display:flex;flex-direction:column;gap:8px;width:100%;padding:14px 0;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left}
.ml-h{display:flex;align-items:center;justify-content:space-between;gap:8px} .ml-h b{font-size:17px;line-height:22px}
.ml-w{font-size:13px;line-height:18px;color:var(--soft)}
.tag-ok{padding:2px 10px;border-radius:12px;background:var(--pos-bg);color:var(--pos);font-size:12px;line-height:18px;font-weight:800}
.mrep{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;margin-top:10px;font-size:12.5px;line-height:17px;color:var(--soft)} .mrep b{display:block;font-size:16px;color:var(--ink)}

/* Objectif : le patrimoine, à part */
.patri{margin-top:30px;padding:16px 18px;border-radius:20px;border:1px dashed #CFCFCB}

/* Conseiller : il écrit… */
.msg.wait{display:flex;gap:5px;align-items:center;padding:16px}
.msg.wait i{width:7px;height:7px;border-radius:4px;background:var(--muted);animation:sp-dot 1.2s ease-in-out infinite}
.msg.wait i:nth-child(2){animation-delay:.2s} .msg.wait i:nth-child(3){animation-delay:.4s}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ============================================================
   v11 · design du canvas « New Black App »
   ============================================================ */
/* Ouverture : le A d'abord, puis BLACK se forme, puis la phrase */
#splash .sp-svg{display:block;overflow:visible;color:#fff}
#splash .sp-a{transform-box:fill-box;transform-origin:center;animation:sp-apop .5s cubic-bezier(.2,.9,.3,1.3) .05s both}
#splash .sp-l{animation:sp-lft .55s cubic-bezier(.2,.8,.2,1) .55s both}
#splash .sp-r{animation:sp-rgt .55s cubic-bezier(.2,.8,.2,1) .55s both}
#splash .sp-tag{animation:sp-in .5s ease 1.15s both;font-style:italic;color:#E6E6E3}
#splash .sp-dots{animation:sp-in .4s ease 1.5s both}
@keyframes sp-apop{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}
@keyframes sp-lft{from{opacity:0;transform:translateX(420px)}}
@keyframes sp-rgt{from{opacity:0;transform:translateX(-420px)}}

/* Accueil */
.home .hd{min-height:48px}
.home .hello{margin:0;font-size:27px;line-height:34px;font-style:italic;font-weight:800;letter-spacing:-.01em}
.abtn{width:44px;height:44px;flex:none;border:0;border-radius:22px;background:var(--ink);display:flex;align-items:center;justify-content:center}
.eye{transition:background .25s}
.eyeic .lid{transition:d .3s cubic-bezier(.4,0,.2,1)}
.eyeic .iris{transform-origin:12px 12px;transition:transform .28s cubic-bezier(.4,0,.2,1)}
.eyeic .low{transition:opacity .2s}
.eyeic .lash{opacity:0;transition:opacity .2s .12s}
.eyeic.shut .lid{d:path('M2.5 12C6 16.6 18 16.6 21.5 12')}
.eyeic.shut .iris{transform:scaleY(0)}
.eyeic.shut .low{opacity:0}
.eyeic.shut .lash{opacity:1}
.pcard{height:296px;border-radius:26px}
.pcard .shade{border-radius:26px}
.pcard .sheen{position:absolute;top:-30%;left:0;width:90px;height:160%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.16),transparent);pointer-events:none;transform:translateX(-140%) rotate(18deg);animation:sheen 4.5s ease-in-out 1s infinite}
@keyframes sheen{0%{transform:translateX(-140%) rotate(18deg)}35%,100%{transform:translateX(560%) rotate(18deg)}}
.pcard .v{font-size:56px;line-height:64px;font-weight:800;letter-spacing:-.03em;white-space:nowrap;display:block}
.pcard.xaf .v{font-size:36px;line-height:48px}
.pcard .rise{animation:rise .9s cubic-bezier(.2,.8,.2,1) both}
@keyframes rise{from{transform:translateY(14px);opacity:0}to{transform:none;opacity:1}}
.pcard.tall{height:auto}
.curbtn{position:relative;width:44px;height:44px;flex:none;padding:0;border:1px solid rgba(255,255,255,.35);border-radius:22px;background:rgba(255,255,255,.16);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:#fff;font-size:18px;font-weight:800;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;transition:transform .2s}
.curbtn span{position:relative}.curbtn span.x{font-size:11.5px;letter-spacing:-.01em}
.curbtn .ring{position:absolute;inset:-1px;transform:rotate(-90deg)}
.curbtn .ring circle{fill:none;stroke:#F7C948;stroke-width:2.5;stroke-dasharray:0 129;transition:stroke-dasharray 0s}
.curbtn.pressing{transform:scale(.92)}
.curbtn.pressing .ring circle{stroke-dasharray:129 129;transition:stroke-dasharray .5s linear}
.pc-pills{display:flex;align-items:center;gap:6px;margin-top:8px}
.gpill{min-height:32px;padding:0 10px;border-radius:16px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.14);color:#fff;font-size:12.5px;font-weight:700;white-space:nowrap}
.pcard.xaf .gpill{font-size:10.5px;padding:0 8px}
.gnext{margin-left:auto;width:40px;height:40px;flex:none;border:0;border-radius:20px;background:#fff;color:var(--ink);display:flex;align-items:center;justify-content:center}
.mcard{display:flex;flex-direction:column;gap:16px;width:100%;margin-top:20px;padding:18px 18px 20px;border:1px solid var(--line2);border-radius:20px;background:#fff;text-align:left;box-shadow:0 6px 16px -12px rgba(11,11,12,.25)}
.mcard .mh{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.mcard .mh>span:first-child{display:flex;flex-direction:column}.mcard .mh b{font-size:19px;line-height:26px;font-weight:800}
.mtag{margin-top:6px;padding:7px 11px;border-radius:16px;font-size:14px;font-weight:800;white-space:nowrap}
.mtag.neg{background:#FBE4E2;color:#B42318}.mtag.pos{background:var(--pos-bg);color:var(--pos)}
.mcard .mg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mcard .mval{display:flex;flex-direction:column;gap:2px;min-width:0}
.mcard .mk{font-size:12.5px;color:#55555A;display:flex;align-items:center;gap:6px}
.mcard .mk i{width:8px;height:8px;border-radius:4px}.mk i.rev{background:var(--rev)}.mk i.dep{background:var(--dep)}.mk i.inv{background:var(--inv)}
.mcard .mval b{font-size:16px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dues{margin-top:6px}
.due{display:flex;align-items:center;gap:14px;width:100%;height:58px;padding:0;border:0;border-bottom:1px solid var(--line);background:#fff;text-align:left;overflow:hidden;transition:height .35s ease,opacity .35s ease}
.due .ck{width:26px;height:26px;flex:none;border-radius:13px;border:2px solid #8E8E8A;display:flex;align-items:center;justify-content:center;color:transparent;transition:background .18s,border-color .18s}
.due .nm{flex:1;min-width:0;font-size:16px}.due b{font-size:15px;font-weight:800;white-space:nowrap}
.due.paying .ck{background:var(--pos);border-color:var(--pos);color:#fff}
.due.paying .nm,.due.paying b{color:#A3A39E;text-decoration:line-through}
.due.gone{height:0;opacity:0;border-bottom-width:0}
.allpaid{margin:10px 0 0;padding:16px;border-radius:16px;background:var(--pos-bg);color:#14492F;text-align:center;font-size:15px;font-weight:700}

/* Fenêtres : la zone grise du haut ferme */
.sheet-bg{background:rgba(70,70,64,.72)}

/* Budget */
.seg{display:grid;margin-top:16px;padding:4px;border-radius:14px;background:#F1F0EC;gap:2px}
.seg button{min-height:44px;padding:0 10px;border:0;border-radius:11px;background:transparent;color:#55555A;font-size:15px;font-weight:700;white-space:nowrap;transition:background .18s}
.seg button[aria-selected=true]{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(11,11,12,.08)}
.seg.scroll{display:flex;overflow-x:auto}.seg.scroll button{flex:1 0 auto;font-size:13.5px}
.seg.mini{margin:0;display:flex;padding:3px;border-radius:12px}.seg.mini button{min-height:32px;padding:0 12px;font-size:13px;border-radius:9px}
.bal{margin-top:16px;min-height:72px;padding:0 18px;border:1px solid var(--line2);border-radius:18px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.bal span{font-size:15px;color:var(--soft)}.bal b{font-size:27px;font-weight:800;letter-spacing:-.01em;white-space:nowrap}
.blk{min-height:116px;border-radius:20px;padding:0 22px 0 20px;color:var(--ink)}
.blk.rev{background:var(--rev);color:var(--rev-fg)}.blk.dep{background:var(--dep);color:#fff}.blk.inv{background:var(--inv);color:#fff}
.blk .t{font-size:15px}.blk .v{font-size:32px;line-height:40px}
.blk .sub{font-weight:500;font-size:13px}.blk.dep .sub{color:#FFE3E0}.blk.inv .sub{color:#DDF3E4}
.blk .chev{flex:none;display:flex}
.nextm{margin-top:16px;padding:16px 16px 16px 18px;border:1.5px dashed #BDBDB8;border-radius:20px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.nextm>span{display:flex;flex-direction:column;min-width:0}.nextm b{font-size:16px}.nextm>span>span{font-size:13px;color:#55555A}
.mcirc{display:block;width:100%;margin-top:16px;padding:16px 14px 18px;border:0;border-radius:20px;background:#F1F0EC;text-align:left}
.mc-h{display:flex;align-items:baseline;justify-content:space-between;padding:0 4px}.mc-h b{font-size:15px;font-weight:800}.mc-h span{font-size:12px;color:#55555A}
.mc-g{display:grid;margin-top:14px}
.mc-i{display:flex;flex-direction:column;align-items:center;gap:4px}
.mc-r{position:relative;width:80px;height:80px}.mc-r>b{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:800}
.mc-n{font-size:13px}.mc-t{font-size:12px;color:#55555A}.mc-t.neg{color:var(--neg);font-weight:700}
.draw{animation:draw 1.1s cubic-bezier(.2,.8,.2,1) both}
@keyframes draw{from{stroke-dasharray:0 999}}
.why{display:flex;align-items:center;gap:12px;width:100%;margin-top:14px;padding:14px 16px;border:1.5px solid #DCDCD8;border-radius:18px;background:#fff;text-align:left}
.why .a{width:36px;height:36px;flex:none;border-radius:18px;background:var(--ink);display:flex;align-items:center;justify-content:center}.why b{flex:1;font-size:15px}

/* Objectif */
.goalpg .gh{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.goalpg .gt{flex:1;min-width:0}
.gtitle{width:100%;padding:0;border:0;outline:none;background:transparent;font-size:31px;line-height:38px;font-weight:800;letter-spacing:-.01em;color:var(--inv)}
.goalpg .gt p{margin:2px 0 0;font-size:14px;color:var(--soft)}
.nib{width:46px;height:46px;flex:none;border:0;border-radius:23px;background:var(--ink);color:#F7C948;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 16px -8px rgba(11,11,12,.6)}
.gq{margin:18px 0 0;padding:12px 16px;border-radius:16px;background:#F1F0EC;font-size:14px;line-height:20px;font-style:italic;color:var(--soft)}
.gprog{margin-top:18px;border-radius:22px;padding:22px 18px 18px;box-shadow:0 6px 16px -12px rgba(11,11,12,.2)}
.gp-h{display:flex;align-items:center;gap:22px}
.gring{position:relative;width:112px;height:112px;flex:none}.gring>div{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.gring b{font-size:27px;line-height:30px;font-weight:800}.gring span{font-size:12px;color:#55555A}
.gp-t{display:flex;flex-direction:column;min-width:0}.gp-t span{font-size:13px;color:#55555A}.gp-t b{font-size:28px;line-height:36px;font-weight:800;letter-spacing:-.01em;white-space:nowrap}
.gp-g{margin-top:20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.gp-g>div{padding:14px 14px 16px;border-radius:14px;background:#F1F0EC;display:flex;flex-direction:column}.gp-g>div.ok{background:var(--pos-bg)}
.gp-g span{font-size:14px;color:var(--soft)}.gp-g b{font-size:18px;font-weight:800}.gp-g .ok b{color:var(--inv)}
.gpay{margin-top:18px;padding:18px 16px 18px 18px;border:1.5px dashed #BDBDB8;border-radius:20px;display:flex;align-items:center;justify-content:space-between;gap:10px;transition:background .2s}
.gpay.on{border:1.5px solid var(--inv);background:#F2F8F4}
.gpay>div{display:flex;flex-direction:column}.gpay span{font-size:14px;color:var(--soft)}.gpay b{font-size:21px;font-weight:800}
.gpay button{min-height:46px;padding:0 18px;border:0;border-radius:23px;background:var(--ink);color:#fff;font-size:15px;font-weight:700;transition:background .2s}
.gpay.on button{background:var(--inv)}
.gh2{margin:28px 0 0;font-size:19px}
.gprimes{margin-top:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.gprimes>div{padding:16px 14px;border:1px solid var(--line2);border-radius:16px;display:flex;flex-direction:column;gap:2px}
.gprimes span{font-size:13px;color:var(--soft)}.gprimes b{font-size:18px;font-weight:800}
.gsrc{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:18px;padding:18px 16px 18px 20px;border:0;border-radius:20px;background:var(--inv);color:#fff;text-align:left}
.gsrc>span{display:flex;flex-direction:column}.gsrc b{font-size:16px;font-weight:800}.gsrc>span>span{font-size:13px;color:#DDF3E4}
.gsrc i{width:40px;height:40px;border-radius:20px;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center}
.gwh{margin-top:24px;display:flex;align-items:center;justify-content:space-between;gap:10px}.gwh h2{font-size:19px}
.ldonut{position:relative;width:346px;max-width:100%;height:224px;margin:22px auto 6px}
.ldonut svg{display:block;overflow:visible}.ldonut g{cursor:pointer;transition:opacity .2s}.ldonut path{transition:stroke-width .2s}
.ldonut .dl{position:absolute;display:flex;flex-direction:column;padding:0;border:0;background:transparent;color:var(--ink);transition:opacity .2s}
.ldonut .dl b{font-size:13px;font-weight:800}.ldonut .dl span{font-size:11.5px;font-weight:600;color:#55555A;white-space:nowrap}
.ldonut .dc{position:absolute;left:50%;top:84px;width:140px;margin-left:-70px;display:flex;flex-direction:column;align-items:center;pointer-events:none;text-align:center}
.ldonut .dc b{font-size:16px;font-weight:800;white-space:nowrap}.ldonut .dc span{font-size:11px;font-weight:600;color:#55555A}

/* Connexion et inscription */
.auth h1{font-size:30px;line-height:36px;letter-spacing:-.02em}
.auth .ctr{text-align:center}
.auth .stackb{gap:11px}
.welcome .wcard{position:relative;margin:110px 0 0 4px;height:204px;border-radius:20px;overflow:hidden;transform:rotate(-4deg);box-shadow:0 30px 40px -18px rgba(11,11,12,.45);background:#1D2430}
.welcome .wcard img{width:100%;height:100%;object-fit:cover;display:block}
.welcome .wcard .logo{position:absolute;left:30px;bottom:22px}
.welcome h1{margin-top:34px;font-size:34px;line-height:38px}
.welcome .lead{font-size:15px;line-height:22px}
.lav{margin:34px auto 0;width:64px;height:64px;border-radius:32px;background:var(--ink);color:#fff;font-size:19px;font-weight:800;display:flex;align-items:center;justify-content:center}
.auth .lav+h1{margin-top:14px;font-size:25px;line-height:32px}
.auth .dots{margin-top:30px;gap:20px}
.auth .keypad{margin-top:16px;margin-bottom:22px}
.auth .keypad button{height:60px;border-radius:14px;background:#F1F0EC;font-weight:600}
.auth .keypad .kx{background:transparent}
.auth .err{text-align:center;margin-top:12px}
.suform{display:flex;flex-direction:column;flex:1}
.pbox{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.pbox input{height:68px;width:100%;border:1.5px solid #DCDCD8;border-radius:14px;background:#fff;text-align:center;font-size:26px;font-weight:800}
.pbox input.on{border-color:var(--ink)}
.pmsg{margin:12px 0 0;min-height:20px;font-size:14px;font-weight:700;color:#A61B1B}.pmsg.ok{color:var(--inv)}
.ldonut .dl{max-width:98px}.ldonut .dl span{white-space:normal;line-height:14px}
.auth .btn[disabled]{background:#E4E3DE;color:#8E8E8A;opacity:1}
.seg.mini{grid-auto-flow:column;flex-direction:row}
.xaf .mcard .mval b{font-size:13px}.xaf .mtag{font-size:12.5px}
.xaf .gp-t b{font-size:21px;line-height:28px}.xaf .gp-g b,.xaf .gprimes b{font-size:15px}.xaf .gpay b{font-size:17px}
.xaf .pv{font-size:11.5px}.xaf .bal b{font-size:20px}.xaf .blk .v{font-size:25px}
.xaf .pcard .gpill{font-size:10px;padding:0 7px}.xaf .gnext{width:34px;height:34px}
.xaf .due b,.xaf .sec-h b{font-size:13.5px}
.seg.mini button{height:34px;min-height:0;line-height:34px}.seg.mini{height:auto;align-self:center}

/* ---------- Visite guidée et bulles « Nouveau » (js/visite.js) ---------- */
.vt{position:fixed;inset:0;z-index:60;opacity:0;transition:opacity .2s ease;font-family:'Manrope',system-ui,sans-serif}
.vt.on{opacity:1}
.vt-block{position:absolute;inset:0}
.vt-hole{position:fixed;pointer-events:none;box-shadow:0 0 0 3px #fff,0 0 0 200vmax rgba(11,11,12,.62);transition:left .25s ease,top .25s ease,width .25s ease,height .25s ease}
.vt-bub{position:fixed;left:max(16px,calc(50% - 224px));right:max(16px,calc(50% - 224px));box-sizing:border-box;padding:18px 18px 16px;border-radius:22px;background:#fff;color:#0B0B0C;box-shadow:0 18px 40px -12px rgba(0,0,0,.45)}
.vt-arr{position:absolute;width:14px;height:14px;background:#fff;transform:rotate(45deg);border-radius:2px}
.vt-in{position:relative}
.vt-h{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#66666B}
.vt-p{width:72px;height:4px;flex:none;border-radius:2px;background:#E7E7E4;overflow:hidden}.vt-p i{display:block;height:100%;border-radius:2px;background:#0B0B0C}
.vt-new{padding:4px 9px;border-radius:10px;background:#F7C948;color:#0B0B0C;font-size:11px;font-weight:800;letter-spacing:.08em}
.vt-t{margin:10px 0 0;font-size:19px;line-height:25px;font-weight:800;letter-spacing:0;text-transform:none;color:#0B0B0C}
.vt-x{margin:6px 0 0;font-size:15px;line-height:21px;color:#3A3A3E}.vt-x2{font-weight:700;color:#0B0B0C}
.vt-b{margin-top:16px;display:flex;align-items:center;justify-content:space-between;gap:8px}.vt-b>span{display:flex;gap:8px}
.vt-b button{min-height:44px;font-family:inherit;cursor:pointer}
.vt-skip{padding:0 6px 0 0;border:0;background:transparent;color:#66666B;font-size:14.5px;font-weight:700}
.vt-prev{padding:0 16px;border:1.5px solid #DCDCD8;border-radius:22px;background:#fff;color:#0B0B0C;font-size:14.5px;font-weight:700}
.vt-next{padding:0 20px;border:0;border-radius:22px;background:#0B0B0C;color:#fff;font-size:14.5px;font-weight:800}
@media (prefers-reduced-motion:reduce){.vt,.vt-hole{transition:none}}
