/* MAQUETTE 07/10/2026 — Synthèse de l'espace client sur le modèle « agrégateur de patrimoine »
   demandé par Pascal. Données fictives, aucun appel serveur. Palette reprise de public/espace/. */
:root{--bg:#F5F6F8;--card:#fff;--line:#E6E8EE;--ink:#0F1E3D;--muted:#6B7280;--soft:#9AA3B2;--gold:#C9A24B;--gold-d:#A8822F;--gold-t:#FBF5E6;--navy:#0F1E3D;--navy-t:#EEF1F8;--up:#1F7A4D;--up-t:#E8F4EE;--down:#B4472A;--r:16px}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:'Plus Jakarta Sans',system-ui,Arial,sans-serif;font-size:14.5px;line-height:1.5}
button{font-family:inherit}
.demo{position:fixed;top:0;left:0;right:0;height:28px;background:#111827;color:#E5E7EB;font-size:11px;letter-spacing:.1em;text-transform:uppercase;display:flex;align-items:center;justify-content:center;z-index:60}
.shell{display:flex;min-height:100vh;padding-top:28px}
/* menu */
.side{width:248px;flex:none;background:var(--bg);padding:22px 14px 16px;position:sticky;top:28px;height:calc(100vh - 28px);display:flex;flex-direction:column;overflow-y:auto}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:18px;padding:0 10px 26px}
.logo i{width:30px;height:30px;border-radius:9px;background:var(--navy);position:relative;flex:none}
.logo i:after{content:"";position:absolute;inset:9px;border:2px solid #E3C489;transform:rotate(45deg)}
.nav{display:flex;flex-direction:column;gap:3px}
.nav a{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:12px;font-weight:600;color:#374151;text-decoration:none;cursor:pointer;font-size:14.5px}
.nav a svg{width:19px;height:19px;flex:none;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.nav a:hover{background:#ECEEF2}
.nav a.on{background:#E4E7EE;color:var(--navy);font-weight:700}
.nav a.off{color:var(--soft);cursor:default}.nav a.off:hover{background:none}
.pill{margin-left:auto;font-size:10.5px;font-weight:700;padding:2px 8px;border-radius:999px;background:var(--gold-t);color:var(--gold-d);white-space:nowrap}
.pill.grey{background:#ECEEF2;color:var(--soft)}
.sub{display:none;flex-direction:column;padding:2px 0 6px 45px}
.sub.open{display:flex}
.sub a{padding:6px 8px;font-size:13px;font-weight:500;color:#4B5563}
.chev{margin-left:auto;transition:transform .15s}.open-chev .chev{transform:rotate(90deg)}
.conseiller{margin-top:auto;background:var(--navy);color:#fff;border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:10px}
.conseiller .top{display:flex;gap:10px;align-items:center}
.conseiller .ph{width:38px;height:38px;border-radius:50%;background:#2A3A5E;display:grid;place-items:center;font-weight:800;font-size:13px;color:#E3C489;flex:none}
.conseiller b{font-size:13.5px;display:block}.conseiller small{color:#AEB8CC;font-size:12px}
.conseiller button{background:var(--gold);color:var(--navy);border:0;border-radius:10px;padding:9px 12px;font-weight:800;font-size:13px;cursor:pointer}
.me{display:flex;align-items:center;gap:10px;padding:14px 10px 0;font-weight:700;font-size:14px}
.me .av{width:34px;height:34px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-size:12px;font-weight:800}
/* haut */
.main{flex:1;min-width:0;padding:18px 26px 40px}
.topbar{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-bottom:18px;flex-wrap:wrap}
.ico{width:38px;height:38px;border-radius:50%;border:0;background:transparent;display:grid;place-items:center;cursor:pointer;color:var(--ink)}
.ico:hover{background:#ECEEF2}
.ico svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.btn{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:9px 16px;font-weight:700;font-size:13.5px;border:0;cursor:pointer;white-space:nowrap}
.btn svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
.btn.ghost{background:#E9EBF0;color:var(--soft);cursor:not-allowed}
.btn.ghost .pill{margin-left:2px}
.btn.gold{background:var(--gold);color:var(--navy)}
.btn.gold:hover{background:#D4B062}
.btn.navy{background:var(--navy);color:#fff}
.row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.select{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--card);border-radius:999px;padding:8px 14px;font-weight:600;font-size:13.5px}
.periods{display:flex;gap:2px}
.periods button{border:0;background:transparent;padding:7px 11px;border-radius:999px;font-weight:600;font-size:13px;color:#4B5563;cursor:pointer}
.periods button.on{background:var(--gold-t);color:var(--gold-d)}
/* grille */
.grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:16px}
.card{background:var(--card);border-radius:var(--r);padding:22px 24px;min-width:0}
.date{color:var(--muted);font-size:13px}
.total{font-family:'Fraunces',serif;font-weight:600;font-size:44px;letter-spacing:-.01em;line-height:1.1;margin:2px 0 6px}
.var{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;white-space:nowrap;font-weight:700;font-size:14px;color:var(--up)}
.tag{font-size:12px;font-weight:700;padding:2px 8px;border-radius:999px;background:var(--up-t);color:var(--up)}
.var small{color:var(--muted);font-weight:500;font-size:12.5px}
.chart{margin-top:14px;width:100%;height:250px;display:block}
.chart text{font-size:11px;fill:var(--soft);font-family:inherit}
.ctitle{font-weight:700;font-size:16px;margin:0 0 12px;display:flex;justify-content:space-between;align-items:center}
.ctitle a{font-size:13px;color:var(--gold-d);font-weight:700;text-decoration:none;cursor:pointer}
.donut{display:flex;gap:20px;align-items:center}
.donut svg{width:160px;height:160px;flex:none}
.legend{flex:1;display:flex;flex-direction:column;gap:9px;min-width:0}
.legend div{display:grid;grid-template-columns:10px 1fr auto;gap:9px;align-items:center;font-size:13.5px}
.legend i{width:10px;height:10px;border-radius:3px}
.legend b{font-weight:700}
.legend span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.revenus{margin-top:18px;padding-top:16px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:12px}
.revenus small{color:var(--muted);font-size:12.5px;display:block}
.revenus b{font-size:20px;font-weight:800}
/* connexion banques (teasing) */
.teaser{margin-top:16px;background:linear-gradient(120deg,#0F1E3D 0%,#1B2E57 100%);color:#fff;border-radius:var(--r);padding:22px 24px;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;align-items:center}
.teaser h3{font-family:'Fraunces',serif;font-weight:600;font-size:22px;margin:6px 0 6px}
.teaser p{color:#C5CDDD;margin:0 0 14px;font-size:14px}
.teaser .pill{background:rgba(201,162,75,.18);color:#E3C489}
.banques{display:flex;gap:8px;flex-wrap:wrap}
.banques span{background:rgba(255,255,255,.08);border:1px dashed rgba(255,255,255,.25);border-radius:10px;padding:8px 12px;font-size:12.5px;color:#AEB8CC}
.q{background:#fff;color:var(--ink);border-radius:14px;padding:18px}
.q b{display:block;font-size:14.5px;margin-bottom:12px}
.choix{display:flex;gap:8px;flex-wrap:wrap}
.choix button{flex:1;min-width:80px;border:1.5px solid var(--line);background:#fff;border-radius:10px;padding:10px;font-weight:700;font-size:14px;cursor:pointer;color:var(--ink)}
.choix button:hover{border-color:var(--navy)}
.choix button.on{border-color:var(--navy);background:var(--navy);color:#fff}
.q .suite{margin-top:12px;display:none}
.q .suite.on{display:block}
.q input{width:100%;border:1.5px solid var(--line);border-radius:10px;padding:10px 12px;font-family:inherit;font-size:14px}
.q .merci{margin-top:10px;font-size:13px;color:var(--up);font-weight:700;display:none}
.q .merci.on{display:block}
/* placements */
h2{font-size:19px;font-weight:700;margin:28px 0 12px;display:flex;justify-content:space-between;align-items:center}
.cards{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(240px,1fr);gap:14px;overflow-x:auto;padding-bottom:6px;scrollbar-width:thin}
.pc{background:var(--card);border-radius:14px;padding:16px 18px;min-width:0}
.pc .h{display:flex;gap:10px;align-items:center;margin-bottom:12px}
.pc .lg{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;font-weight:800;font-size:12px;flex:none}
.pc .h b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc .h small{color:var(--muted);font-size:12px}
.pc .b{display:flex;justify-content:space-between;align-items:flex-end}
.pc .v{font-size:19px;font-weight:800}
.pc .g{font-size:12px;font-weight:700;color:var(--up);margin-top:2px}
.pc .g.manu{color:var(--soft);font-weight:600}
.pc svg{width:96px;height:38px}
.add{border:1.5px dashed #CBD1DC;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--muted);font-weight:700;cursor:pointer;border-radius:14px;min-height:118px}
.add svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
/* analyse */
.an{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.an .card{display:flex;flex-direction:column;gap:6px}
.an .card small{color:var(--muted);font-size:12.5px}
.an .card .k{font-size:20px;font-weight:800;display:flex;align-items:center;gap:8px}
.an .card .k .tag.warn{background:#FFF1EA;color:#C2540A}
.an .card a{margin-top:auto;padding-top:10px;color:var(--gold-d);font-weight:700;font-size:13px;text-decoration:none;cursor:pointer}
.amf{margin-top:26px;font-size:12px;color:var(--soft);line-height:1.6}
.blur .m{filter:blur(7px)}
/* mobile */
.tabbar{display:none}
@media (max-width:1100px){.grid{grid-template-columns:1fr}.teaser{grid-template-columns:1fr}.an{grid-template-columns:1fr}}
@media (max-width:820px){
  .side{display:none}
  .main{padding:14px 16px 90px}
  .total{font-size:36px}
  .topbar .btn.ghost .lbl{display:none}
  .donut{flex-direction:column;align-items:stretch}.donut svg{align-self:center}
  .tabbar{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);justify-content:space-around;padding:8px 4px 12px;z-index:40}
  .tabbar a{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11px;font-weight:600;color:var(--muted);text-decoration:none}
  .tabbar a.on{color:var(--navy)}
  .tabbar svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .periods button{padding:6px 8px}
}
.btn{text-decoration:none}
