/* ===================== Espace investisseur (tableau de bord « cartes ») ===================== */
.inv-layout { background: #f1f3f6; }
.inv-sidebar { background: var(--white); color: var(--navy-900); border-right: 1px solid var(--gray-200); padding: 24px 16px; display: flex; flex-direction: column; gap: 6px; }
.inv-profile { display: flex; align-items: center; gap: 12px; padding: 4px 8px 6px; }
.inv-profile strong { display: block; font-size: .95rem; color: var(--navy-900); line-height: 1.25; }
.inv-profile .mono { color: var(--gray-600); }
.inv-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: var(--gold-light); font-weight: 700; font-family: var(--font-num); letter-spacing: .02em; }
.inv-avatar.sm { width: 36px; height: 36px; font-size: .85rem; }
.inv-kyc { padding: 0 8px 12px; margin: 0; color: var(--gray-600); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--gray-100); }
.inv-sidebar nav { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.inv-sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; color: #3a4558; border-radius: 12px; font-size: .92rem; font-weight: 500; border: 1px solid transparent; margin: 0; }
.inv-sidebar nav a svg { width: 20px; height: 20px; flex: none; color: var(--gray-600); }
.inv-sidebar nav a:hover { background: var(--gray-50); color: var(--navy-900); }
.inv-sidebar nav a.active { background: var(--white); border-color: var(--gray-200); box-shadow: 0 4px 14px rgba(10, 26, 51, .06); color: var(--navy-900); font-weight: 600; }
.inv-sidebar nav a.active svg { color: var(--gold-dark); }
.inv-arrow { margin-left: auto; color: var(--navy-900); }
.inv-sidebar .count { margin-left: auto; }
.inv-sep { height: 1px; background: var(--gray-100); margin: 8px 10px; }
.inv-promo { margin-top: auto; background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: var(--gold-light); border-radius: 20px; padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.inv-promo-art { width: 100%; max-width: 170px; height: auto; color: var(--gold); }
.inv-promo strong { color: var(--white); font-family: var(--font-head); font-size: 1.1rem; line-height: 1.3; }
.inv-promo .btn { align-self: flex-start; background: var(--white); color: var(--navy-900); border-radius: 999px; padding: 7px 18px; }
.inv-promo .btn:hover { background: var(--gold-light); color: var(--navy-900); }
@media (min-width: 961px) { .inv-sidebar { position: sticky; top: 72px; height: calc(100vh - 72px); overflow-y: auto; } }

.dash-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-chips { display: flex; gap: 12px; flex-wrap: wrap; }
.dash-chip { display: inline-flex; align-items: center; gap: 12px; background: var(--white); border-radius: 999px; padding: 6px 20px 6px 6px; box-shadow: 0 2px 10px rgba(10, 26, 51, .04); }
.dash-chip > span:last-child { display: flex; flex-direction: column; }
.dash-chip strong { font-size: .9rem; color: var(--navy-900); line-height: 1.2; }
.dash-chip-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gray-100); color: var(--navy-900); }
.dash-tools { display: flex; gap: 10px; }
.dash-round { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--white); display: grid; place-items: center; color: var(--navy-900); box-shadow: 0 2px 10px rgba(10, 26, 51, .05); }
.dash-round svg { width: 20px; height: 20px; }
.dash-dot { position: absolute; top: 9px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--white); }

.dash-card { background: var(--white); border-radius: 22px; padding: 22px 24px; box-shadow: 0 2px 12px rgba(10, 26, 51, .04); min-width: 0; }
.dash-card .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dash-card .panel-head h2 { font-size: 1.1rem; margin: 0; }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(280px, 1.05fr); gap: 16px; margin-bottom: 16px; }
.dash-kpi { display: flex; align-items: center; gap: 16px; }
.dash-kpi > div { display: flex; flex-direction: column; min-width: 0; }
.dash-kpi-icon { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.dash-kpi-icon svg { width: 22px; height: 22px; }
.dash-kpi-icon.dark { background: var(--navy-900); color: var(--gold-light); }
.dash-kpi-icon.gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy-900); }
.dash-kpi-icon.outline { background: var(--navy-800); color: var(--white); }
.dash-kpi-label { font-size: .8rem; font-weight: 600; color: var(--navy-900); }
.dash-kpi-value { font-family: var(--font-num); font-size: 1.45rem; color: var(--navy-900); line-height: 1.25; word-break: break-word; }
.dash-kpi-value.pos { color: #1c7c4a; }
.dash-kpi-value.neg { color: #b3261e; }
.dash-wallet { grid-column: 4; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 12px; }
.dash-wallet .panel-head { margin-bottom: 0; }
.wallet-hero { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--navy-900), var(--navy-700)); border-radius: 18px; padding: 22px; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; color: #aebbd0; }
.wallet-hero strong { color: var(--white); font-family: var(--font-num); font-size: 1.7rem; line-height: 1.2; position: relative; }
.wallet-hero span { position: relative; }
.wallet-art { position: absolute; right: -6px; top: 8px; width: 60%; max-width: 190px; color: var(--gold); opacity: .9; }
.wallet-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wallet-rows li { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--gray-100); border-radius: 14px; padding: 12px 14px; font-size: .88rem; }
.wallet-rows li span { display: flex; align-items: center; gap: 10px; color: var(--navy-900); font-weight: 500; }
.wallet-rows strong { font-family: var(--font-num); color: var(--navy-900); white-space: nowrap; }
.wallet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.wallet-actions .btn { border-radius: 999px; justify-content: center; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gray-400); vertical-align: middle; flex: none; }
.dot.ok { background: #2e9e62; }
.dot.wait { background: var(--gold); }
.dot.ko { background: #c24b43; }
.dot.navy { background: var(--navy-900); }
.dot.light { background: var(--gray-200); }
.dash-chart { grid-column: 1 / span 2; }
.dash-donut { grid-column: 3; display: flex; flex-direction: column; }
.donut { width: 100%; max-width: 190px; margin: 4px auto 10px; display: block; }
.donut-total { font-family: var(--font-num); font-size: 28px; font-weight: 700; fill: var(--navy-900); }
.donut-sub { font-size: 11px; fill: var(--gray-600); }
.donut-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .82rem; }
.donut-legend li { display: flex; align-items: center; gap: 8px; }
.donut-legend i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.donut-legend span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--navy-900); }
.dash-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--gold-dark); padding: 14px 0; }
.dash-empty > svg:not(.donut) { width: 100%; max-width: 320px; }
.dash-bottom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dash-table thead th { background: none; font-size: .78rem; color: var(--gray-400); font-weight: 500; text-transform: none; letter-spacing: 0; }
.dash-table tbody tr:nth-child(odd) td { background: var(--gray-50); }
.dash-table tbody td:first-child { border-radius: 10px 0 0 10px; }
.dash-table tbody td:last-child { border-radius: 0 10px 10px 0; }
.dash-table td { border-bottom: 0; }
.donut-body { flex: 1; display: flex; flex-direction: column; }
/* Écrans d'ordinateur portable : chiffres clés en haut, portefeuille à droite, courbe et répartition à gauche. */
@media (max-width: 1480px) and (min-width: 961px) {
  .dash-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-wallet { grid-column: 3; grid-row: 2 / span 2; }
  .dash-chart { grid-column: 1 / span 2; grid-row: 2; }
  .dash-donut { grid-column: 1 / span 2; grid-row: 3; }
  .dash-donut .donut-body { flex-direction: row; align-items: center; gap: 28px; }
  .dash-donut .donut { margin: 0; max-width: 170px; }
  .dash-donut .donut-legend { flex: 1; }
  .dash-bottom { grid-template-columns: minmax(0, 1fr); }
}
.dash-table td.num, .dash-table th.num { white-space: nowrap; }
@media (max-width: 960px) {
  .inv-sidebar { padding: 12px; gap: 0; border-right: 0; border-bottom: 1px solid var(--gray-200); }
  .inv-profile, .inv-kyc, .inv-promo, .inv-sep { display: none; }
  .inv-sidebar nav { flex-direction: row; overflow-x: auto; margin: 0; -webkit-overflow-scrolling: touch; }
  .inv-sidebar nav a { white-space: nowrap; padding: 9px 12px; }
  .inv-arrow { display: none; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-chart, .dash-donut, .dash-wallet { grid-column: auto; grid-row: auto; }
  .dash-bottom { grid-template-columns: minmax(0, 1fr); }
}

/* ===================== Création de compte (deux panneaux) ===================== */
.auth-split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); width: 100%; max-width: 1080px; background: var(--white); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); }
.auth-side { position: relative; background: linear-gradient(160deg, var(--navy-950), var(--navy-700)); color: #b9c6da; padding: 40px 36px; display: flex; flex-direction: column; gap: 22px; overflow: hidden; }
.auth-side h2 { color: var(--white); font-size: 1.6rem; margin: 0; }
.auth-side .eyebrow { margin-bottom: 0; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 14px; align-items: flex-start; font-size: .92rem; }
.auth-points i { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(201, 169, 97, .15); color: var(--gold-light); font-style: normal; }
.auth-points i svg { width: 18px; height: 18px; }
.auth-points strong { display: block; color: var(--white); font-weight: 600; }
.auth-art { width: 100%; max-width: 300px; color: var(--gold); margin-top: auto; align-self: center; }
.auth-form { padding: 40px 40px 34px; }
.auth-form h1 { font-size: 1.7rem; }
.auth-steps { display: flex; gap: 8px; margin: 4px 0 20px; flex-wrap: wrap; }
.auth-steps span { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--gray-600); background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 999px; padding: 5px 12px 5px 5px; }
.auth-steps b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gray-200); color: var(--navy-900); font-size: .72rem; }
.auth-steps .on { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.auth-steps .on b { background: var(--gold); color: var(--navy-950); }
@media (max-width: 860px) {
  .auth-split { grid-template-columns: minmax(0, 1fr); }
  .auth-side { padding: 28px 24px; }
  .auth-art { display: none; }
  .auth-form { padding: 28px 22px; }
}
