/* =========================================
   BankyBoard — style.css (global, 2025-08-13)
   Thème clair — condensé (dernières valeurs conservées)
   ========================================= */

/* -----------------------
   Variables (thème clair)
------------------------ */
:root{
  /* Marque */
  --blue:       #063866;   /* Bleu BankyBoard */
  --blue-600:   #052e52;   /* Hover foncé */
  --dark-blue:  #03233d;   /* Très foncé / contrastes */

  /* Accent */
  --accent:       #D67E3C; /* Cuivré/orange foncé */ 
  --accent-hover: #8F3D07;

  /* Surfaces & texte */
  --bg:       #ffffff;
  --bg-soft:  #f6f8fa;
  --surface:  #ffffff;
  --text:     #1f2937;
  --muted:    #6b7280;
  --border:   #e5e7eb;
  --line:     #e5e7eb;

  /* Etats */
  --success-bg:     #ecfdf5;
  --success-border: #10b981;
  --success-text:   #065f46;

  --warn-bg:        #fef9c3;
  --warn-border:    #f59e0b;
  --warn-text:      #92400e;

  --error-bg:       #fee2e2;
  --error-border:   #dc2626;
  --error-text:     #7f1d1d;

  /* Ombres */
  --shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* -----------------------
   Reset & Base
------------------------ */
*,
*::before,
*::after{ box-sizing: border-box; }

html, body{ height:100%; }
html { color-scheme: light; }

body{
  margin:0;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,h2,h3,h4{ margin:0 0 .4rem 0; line-height:1.2; }
p{ margin:.5rem 0; }
a{ color: inherit; text-decoration: none; }
img,svg{ max-width:100%; height:auto; display:block; }

:focus-visible{
  outline: 3px solid rgba(6,56,102,.35);
  outline-offset: 2px;
}

/* -----------------------
   Layout / helpers
------------------------ */
.container{ width:min(1100px,92%); margin:16px auto; padding:0 16px; }

.grid-3{
  display:grid; gap:16px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
@media (max-width:900px){ .grid-3{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width:640px){ .grid-3{ grid-template-columns: 1fr; } }

.card{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow: var(--shadow);
  padding:16px;
}

.pill{
  display:inline-flex; align-items:center; gap:6px;
  background:#f3f4f6; border:1px solid var(--border);
  color:#111827; border-radius:999px; padding:6px 10px; font-size:12px;
}
.muted{ color: var(--muted); }
.text-right{ text-align:right; }
.mb16{ margin-bottom:16px; }
.big{ font-size:2rem; font-weight:700; }

.meta-row{ display:flex; gap:8px; flex-wrap:wrap; margin:8px 0 16px; }
.actions{ display:flex; gap:12px; flex-wrap:wrap; margin:12px 0 18px; }
.cards{ margin-top:12px; }

/* -----------------------
   Topbar (header)
------------------------ */
.topbar{
  position:sticky; top:0; z-index:1000;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 16px; background:var(--surface);
  border-bottom:1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,.03);
}
.brand{ font-weight:800; color:var(--dark-blue); font-size:18px; letter-spacing:.2px; }
.brand-accent{ color:var(--blue); }

/* Nav (desktop) */
.nav{ display:flex; align-items:center; }
@supports (gap:12px){ .nav{ gap:12px; } }
.nav > * + *{ margin-left:10px; }
@supports (gap:12px){ .nav > * + *{ margin-left:0; } }

.nav-item{
  display:inline-block; padding:8px 12px; border-radius:10px;
  color: var(--text); border:1px solid transparent; transition: all .15s ease;
}
.nav-item:hover{ color:#0b3a85; background:#eaf1fb; border-color:#d6e4fb; }
.nav-item.active{ color:#fff; background:var(--blue); border-color:var(--blue); box-shadow: inset 0 -1px 0 rgba(0,0,0,.08); }

/* Visibilité desktop/mobile */
.hide-on-mobile{ display:none; }
.show-on-mobile{ display:inline-flex; }
@media (min-width:900px){
  .hide-on-mobile{ display:flex; }
  .show-on-mobile{ display:none; }
}

/* Burger & Drawer (mobile) */
.burger{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border:1px solid var(--border); border-radius:10px;
  background:var(--surface); cursor:pointer; font-size:18px;
}
.drawer-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.45);
  opacity:0; pointer-events:none; transition:opacity .25s ease; z-index:900;
}
.drawer-backdrop.show{ opacity:1; pointer-events:auto; }
.drawer{
  position:fixed; top:0; right:0; height:100vh; width:82vw; max-width:340px;
  background:var(--surface); border-left:1px solid var(--border);
  transform:translateX(100%); transition:transform .25s ease; z-index:1001;
  display:flex; flex-direction:column; visibility:hidden;
}
.drawer.open{ transform:translateX(0); visibility:visible; }
.drawer-header{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:14px; border-bottom:1px solid var(--border);
}
.drawer-close{ background:transparent; border:none; font-size:20px; cursor:pointer; }
.drawer-nav{ display:flex; flex-direction:column; padding:14px; }
@supports (gap:8px){ .drawer-nav{ gap:8px; } }
.drawer-nav a{
  display:block; padding:12px 14px; border-radius:10px; border:1px solid transparent; color:#1f2937;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.drawer-nav a:hover{ background:#f1f5ff; color:#0b3a85; border-color:#dbe3ff; }
.drawer-nav a.active{ background:var(--blue); color:#fff; }
@media (min-width:900px){ .drawer, .drawer-backdrop{ display:none !important; } }

/* -----------------------
   Boutons
------------------------ */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:42px; padding:0 16px; font-weight:600; border-radius:12px;
  border:1px solid transparent; background:#e9eef7; color:#1d3557;
  text-decoration:none; transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn:active{ transform:translateY(0); }
.btn.block{ display:block; width:100%; text-align:center; }

.btn-ghost{ background:rgba(255,255,255,.15); color:#1d3557; border-color:rgba(0,0,0,.05); }
.btn-ghost:hover{ box-shadow:0 6px 20px rgba(0,0,0,.12); }

.btn-primary, .btn.primary{
  background:#fff; color:var(--dark-blue); border-color:#fff;
  box-shadow:0 6px 20px rgba(3,35,61,.25);
}
.btn-primary:hover, .btn.primary:hover{ box-shadow:0 8px 28px rgba(3,35,61,.35); }

.btn.secondary{ background:var(--blue-600); color:#fff; border-color:var(--blue-600); }
.btn.secondary:hover{ filter:brightness(0.95); }

.btn.danger{ background:#fff; border-color:var(--error-border); color:var(--error-border); }
.btn.danger:hover{ background:#fff5f5; }

.btn.accent{ background:var(--accent); color:#fff; border-color:transparent; }
.btn.accent:hover{ background:var(--accent-hover); }

.btn[disabled], .btn.disabled{ opacity:.6; pointer-events:none; }

/* -----------------------
   Alertes
------------------------ */
.alert{
  border:2px solid var(--border); border-radius:10px;
  padding:14px 16px; background:var(--bg-soft); color:var(--text); margin-bottom:16px;
}
.alert.success{ background:var(--success-bg); border-color:var(--success-border); color:var(--success-text); }
.alert.warn{    background:var(--warn-bg);    border-color:var(--warn-border);    color:var(--warn-text); }
.alert.error{   background:var(--error-bg);   border-color:var(--error-border);   color:var(--error-text); }

/* -----------------------
   Hero / Sections
------------------------ */
.hero{ background:linear-gradient(135deg, var(--blue), var(--dark-blue)); color:#fff; }
.hero-dashboard .hero-inner{ display:grid; grid-template-columns:1fr; gap:16px; padding:28px 0; }
.hero-text h1{ font-size:clamp(22px,3.2vw,30px); margin:0 0 6px; }
.hero-sub{ margin:0; opacity:.9; }
.hero-actions{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
@media (min-width:900px){
  .hero-dashboard .hero-inner{ grid-template-columns:1fr auto; align-items:center; }
}

/* -----------------------
   Forms
------------------------ */
.signup-page{
  max-width:520px; margin:40px auto; padding:24px;
  background:var(--surface); border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow);
  text-align:center;
}
.signup-page h1{ color:var(--blue); margin-bottom:16px; }

.signup-form, .form{ display:flex; flex-direction:column; gap:14px; }
.form-group{ display:flex; flex-direction:column; text-align:left; gap:6px; }
.form-group label{ font-weight:600; color:#111827; }
.form-group input{
  padding:12px; border:1px solid var(--border); border-radius:8px; font-size:1rem;
  background:#fff; color:#111827;
}
.form-group input::placeholder{ color:#9ca3af; }
.form-group input:focus{
  border-color:var(--blue); outline:none; box-shadow:0 0 0 3px rgba(6,56,102,.15);
}
.row{ display:grid; gap:12px; }
@media (min-width:680px){ .row{ grid-template-columns:1fr 1fr; } }
.signup-form .btn{ width:100%; padding:12px; }

/* -----------------------
   Comptes & Transactions (.bb-*)
------------------------ */
.bb-list{ display:grid; gap:10px; }
.bb-item{
  display:flex; align-items:center; gap:12px;
  padding:12px; border:1px solid var(--border); border-radius:12px;
  background:var(--surface); color:inherit; text-decoration:none;
  transition: background .15s ease, box-shadow .15s ease;
}
.bb-item:hover{ background:#f9fafb; box-shadow:0 4px 12px rgba(0,0,0,.04); }

.bb-avatar{
  width:36px; height:36px; border-radius:10px; background:#e9f2ff;
  display:flex; align-items:center; justify-content:center; font-weight:800; color:var(--blue);
}
.bb-name{ font-weight:700; }
.bb-meta{ color:var(--muted); font-size:13px; }
.bb-right{ margin-left:auto; display:flex; align-items:center; gap:12px; }
.bb-money{ font-weight:800; color:#065f46; }
.bb-arrow{ color:#9ca3af; }

.bb-empty{
  padding:14px; border:1px dashed var(--border); border-radius:12px;
  color:var(--muted); text-align:center; background:var(--surface);
}

.bb-controls{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:6px 0 10px; }
.bb-btn{
  padding:8px 10px; border:1px solid var(--border); border-radius:10px;
  background:var(--surface); color:inherit; text-decoration:none; font-weight:600;
}
.bb-btn:hover{ background:var(--bg-soft); }
.bb-btn.active{ background:var(--blue); color:#fff; border-color:transparent; }

.bb-rows{ border:1px solid var(--border); border-radius:14px; overflow:hidden; background:var(--surface); }
.bb-row{
  display:grid; grid-template-columns:110px 1fr 120px;
  gap:10px; padding:10px 12px; border-bottom:1px solid var(--border); align-items:center;
}
.bb-row:last-child{ border-bottom:0; }
.bb-row.head{
  background:#f9fafb; color:var(--muted); font-size:12px; font-weight:700; text-transform:uppercase;
}

.bb-desc{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bb-amt{ text-align:right; font-weight:800; }
.bb-amt.neg{ color:#b42318; }
.bb-amt.pos{ color:#065f46; }

/* -----------------------
   Navbar (compat héritée)
------------------------ */
.navbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px; background:var(--surface);
  border-bottom:1px solid var(--border);
  position:sticky; top:0; z-index:2000;
}
.nav-links{ display:flex; align-items:center; gap:12px; list-style:none; margin:0; padding:0; }
.nav-link{
  display:inline-block; padding:8px 10px; border-radius:8px; color:var(--text);
  transition: background .2s ease, color .2s ease, transform .06s ease;
}
.nav-link:hover{ background:var(--bg-soft); }
.nav-link.active{ background:var(--blue); color:#fff; box-shadow:0 1px 0 rgba(0,0,0,.04) inset; }
.hamburger{ display:none !important; }
.nav-center{ display:none !important; }

/* -----------------------
   Responsive tweaks
------------------------ */
@media (max-width:1024px){ .hero{ padding:40px 16px; } }

/* Fix Safari — ordre de cascade */
.burger{ display:inline-flex; }
.nav.hide-on-mobile{ display:none; }
@media (min-width:900px){
  .burger{ display:none !important; }
  .nav.hide-on-mobile{ display:flex !important; }
}

/* -----------------------
   Dashboard KPIs
------------------------ */
.kpi-grid{ display:grid; gap:18px; margin:18px 0 22px; grid-template-columns:1fr; }
@media (min-width:700px){ .kpi-grid{ grid-template-columns: repeat(2,1fr); } }
@media (min-width:1000px){ .kpi-grid{ grid-template-columns: repeat(3,1fr); } }

.kpi-card{ position:relative; overflow:hidden; }
.kpi-card::after{
  content:""; position:absolute; right:-30px; top:-30px; width:160px; height:160px;
  background: radial-gradient(closest-side, rgba(6,56,102,.12), transparent 70%);
  pointer-events:none;
}
.kpi-head{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.kpi-head h2{ font-size:16px; font-weight:700; color:#072748; margin:0; }
.kpi-icon{
  width:36px; height:36px; border-radius:10px; display:grid; place-items:center;
  background:#f2f6ff; border:1px solid #e6ecfa; font-size:18px;
}
.kpi-value{ font-size:clamp(26px,4.5vw,36px); font-weight:800; color:#0f2242; margin:4px 0; line-height:1.1; }
.kpi-value .unit{ font-size:.6em; opacity:.75; margin-left:6px; }
.kpi-note{ margin:0; font-size:13px; color:#5a6b86; }

.kpi-list{ list-style:none; padding:6px 0 0; margin:0 0 6px; display:grid; gap:8px; }
.kpi-list li{ display:flex; align-items:center; justify-content:space-between; gap:8px; }

/* Quickbar */
.quickbar .quickbar-inner{ display:grid; grid-template-columns:1fr; gap:14px; align-items:center; }
.quickbar .quickbar-text{ display:grid; gap:6px; }
.quickbar .quickbar-text strong{ color:#0f2242; }
.quickbar .quickbar-text span{ color:#51627d; }
.quickbar .quickbar-actions{ display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-start; }
@media (min-width:900px){ .quickbar .quickbar-inner{ grid-template-columns:1fr auto; } }

/* Home hero clair */
.hero--home{
  background: linear-gradient(180deg, #f7f9ff 0%, #ffffff 55%);
  border-bottom:1px solid var(--border);
}
.hero--home .hero-inner{
  padding:46px 0; display:grid; grid-template-columns:1fr; gap:24px;
}
@media (min-width:980px){
  .hero--home .hero-inner{ grid-template-columns:1.1fr .9fr; align-items:center; }
}
.hero--home .hero-text h1{ color:#0f2242; }
.hero--home .hero-sub{ color:#51627d; }
.hero--home .hero-image{ display:flex; justify-content:center; }
.hero--home .hero-photo{
  width:100%; max-width:520px; height:auto; border-radius:20px;
  box-shadow:0 10px 26px rgba(17,30,56,.08);
}

/* Utils */
.section-gap{ margin-top:24px; }
.mt12{ margin-top:12px; }
.actions-center{ justify-content:center; }
.cta-center{ text-align:center; }
.footer-space{ margin-bottom:40px; }

/* =======================================================================
   MENU UTILISATEUR (sidebar fixe à gauche — bleu #063866)
   ======================================================================= */
.u-wrap{ display:flex; min-height:100vh; }
.u-sidebar{
  position:fixed; top:0; bottom:0; left:0; width:260px; flex:0 0 260px;
  background:var(--blue); color:#fff; display:flex; flex-direction:column;
  box-shadow:0 0 0 1px rgba(255,255,255,.06) inset; z-index:100;
}
.u-brand{ padding:18px 20px; border-bottom:1px solid rgba(255,255,255,.15); }
.u-brand-title{ font-weight:800; font-size:18px; line-height:1.2; }
.u-brand-sub{ font-weight:600; font-size:12px; opacity:.9; }
.u-user-mail{ font-size:12px; opacity:.85; margin-top:6px; word-break:break-all; }

.u-nav{ padding:10px 8px 18px; display:flex; flex-direction:column; gap:2px; }
.u-nav a{
  display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none;
  padding:10px 12px; border-radius:10px; transition: background .15s ease;
}
.u-nav a:hover{ background:var(--blue-600); }
.u-nav a.active{ background:#052844; }

.u-bottom{
  margin-top:auto; padding:12px 10px; display:flex; flex-direction:column; gap:2px;
  border-top:1px solid rgba(255,255,255,.15);
}
.u-bottom a{ color:#fff; padding:10px 12px; border-radius:10px; text-decoration:none; }
.u-bottom a:hover{ background:var(--blue-600); }

.u-main{ margin-left:260px; width:100%; padding:22px 24px; max-width:1400px; }

@media (max-width:900px){
  .u-sidebar{ width:240px; }
  .u-main{ margin-left:240px; }
}
@media (max-width:700px){
  .u-sidebar{ position:sticky; width:100%; height:auto; }
  .u-main{ margin-left:0; }
}


/* ====== Auth pages (login/forgot/reset) ====== */
:root{
  --bb-blue:#063866;
  --bb-blue-700:#052a4b;
  --bb-accent:#B45309;
  --bb-muted:#6b7280;
  --bb-border:#d1d5db;
  --bb-bg:#f6f8fb;
  --bb-white:#ffffff;
}

.bb-body{ background: var(--bb-bg); }

.bb-auth-wrap{
  min-height: calc(100vh - 80px); /* laisse la place du menu */
  display:flex; align-items:center; justify-content:center;
  padding: 32px 16px;
}

.bb-auth-card{
  width:100%; max-width: 440px;
  background: var(--bb-white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  border: 1px solid rgba(6,56,102,.06);
}

.bb-auth-title{
  margin: 0 0 14px;
  font-size: 1.6rem; font-weight:700;
  background: linear-gradient(135deg, var(--bb-blue), #0b4f8f);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-align:center;
}

.bb-form{ margin-top: 8px; }

.bb-label{
  display:block; font-size:.95rem; color:#111827; margin: 10px 0 6px;
}

.bb-input{
  display:block; width:100%;
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  background: #fff;
  transition: box-shadow .2s, border-color .2s, transform .02s ease;
}

.bb-input-lg{
  padding: 14px 16px; font-size: 1rem; line-height: 1.25rem;
}

.bb-input:focus{
  outline:none;
  border-color: var(--bb-blue);
  box-shadow: 0 0 0 4px rgba(6,56,102,.15);
}

.bb-btn{
  display:inline-flex; align-items:center; justify-content:center;
  border:0; cursor:pointer; border-radius:12px;
  font-weight:700; transition: transform .02s ease, filter .2s, background .2s;
}

.bb-btn:active{ transform: translateY(1px); }

.bb-btn-lg{ width:100%; padding: 14px 16px; font-size:1rem; }

.bb-btn-primary{
  background: var(--bb-blue); color: #fff;
}
.bb-btn-primary:hover{ filter: brightness(1.05); }
.bb-btn-primary:focus{ box-shadow: 0 0 0 4px rgba(6,56,102,.18); }
.bb-btn-primary:active{ background: var(--bb-blue-700); }

.bb-alert{
  border-radius: 12px; padding: 12px 14px; font-size:.95rem; margin: 10px 0 14px;
}
.bb-alert-success{ background:#d1fae5; color:#065f46; border:1px solid #a7f3d0; }
.bb-alert-error{ background:#fee2e2; color:#b91c1c; border:1px solid #fecaca; }

.bb-auth-links{
  margin-top: 14px; display:flex; gap:10px; flex-wrap:wrap;
  align-items:center; justify-content:center; color: var(--bb-muted);
  font-size:.95rem;
}

.bb-link{ color: var(--bb-blue); text-decoration:none; font-weight:600; }
.bb-link:hover{ text-decoration: underline; }
.bb-sep{ opacity:.5; }


/* --- Bandeau "aucun compte" --- */
.no-accounts-banner{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:14px 16px;
  border:1px dashed var(--accent);
  background: linear-gradient(180deg, rgba(180,83,9,0.07), rgba(180,83,9,0.03));
  color:#361f05;
}
.no-accounts-banner .banner-text{line-height:1.35}
.no-accounts-banner strong{font-weight:800}
.btn-cta{
  display:inline-block;
  padding:10px 14px;
  border-radius:10px;
  background: var(--accent);
  color:#fff; text-decoration:none; font-weight:700;
  box-shadow: 0 2px 10px rgba(180,83,9,.25);
}
.btn-cta:hover{opacity:.92}
@media (max-width:720px){
  .no-accounts-banner{flex-direction:column; align-items:stretch}
  .no-accounts-banner .btn-cta{width:100%; text-align:center}
}

/* ===========================
   BankyBoard — Navigation unifiée
   =========================== */
:root{
  --bb-blue: #063866;         /* primaire */
  --bb-blue-600: #0A4A88;     /* dégradé */
  --bb-blue-700: #0E5AA4;     /* hover */
  --bb-copper: #B45309;       /* accent CTA */
  --bb-text-on-blue: #FFFFFF;
  --bb-text-dim: #e8eef6;
  --bb-border: rgba(255,255,255,0.12);
}

/* Sidebar desktop */
.bb-sidebar{
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  background: linear-gradient(180deg, var(--bb-blue) 0%, var(--bb-blue-600) 100%);
  color: var(--bb-text-on-blue);
  padding: 16px 12px;
  display: none;             /* masquée par défaut, affichée ≥1024px */
  z-index: 900;
}
.bb-sidebar__brand{
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 14px 8px;
  border-bottom: 1px solid var(--bb-border);
  margin-bottom: 10px;
}
.bb-logo{ display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--bb-text-on-blue); }
.bb-logo__mark{
  width: 28px; height: 28px; display:grid; place-items:center;
  background: var(--bb-text-on-blue); color: var(--bb-blue);
  border-radius: 8px; font-weight: 800;
}
.bb-logo__text{ font-weight: 700; letter-spacing: .2px; }

.bb-sidebar__nav{ display:flex; flex-direction:column; gap:6px; padding-top:8px; }
.bb-sidebar__spacer{ flex:1; }

.bb-navlink{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:12px;
  color: var(--bb-text-dim); text-decoration:none;
  transition: background .15s ease, color .15s ease;
}
.bb-navlink:hover, .bb-navlink.is-active{
  background: var(--bb-blue-700);
  color: var(--bb-text-on-blue);
}
.bb-navlink--cta{ background: var(--bb-copper); color:#fff; }
.bb-navlink--danger{ color: #ffd6d6; }

/* Pousse le contenu quand la sidebar est visible */
@media (min-width: 1024px){
  .bb-sidebar{ display:block; }
  .bb-topbar, .bb-drawer{ display:none; }       /* pas de topbar/drawer sur desktop */
  .bb-content{ margin-left: 260px; }
}

/* Topbar mobile */
.bb-topbar{
  position: sticky; top:0; z-index: 950;
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 16px;
  background: var(--bb-blue); color: var(--bb-text-on-blue);
  border-bottom: 1px solid var(--bb-border);
}
.bb-topbar__brand{
  display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none;
}

/* Burger */
.bb-burger{
  width: 42px; height: 42px; display:grid; place-items:center;
  background: transparent; border: none; cursor:pointer;
}
.bb-burger span{ display:block; width:22px; height:2px; margin:3px 0; background:#fff; border-radius:2px; }

/* Drawer mobile */
.bb-drawer{
  position: fixed; inset:0;
  background: rgba(0,0,0,.35);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
  z-index: 1000;
}
.bb-drawer__panel{
  position:absolute; top:0; right:0; bottom:0;
  width: 85%; max-width: 360px;
  background: #fff; color: #0b1f33;
  transform: translateX(100%);
  transition: transform .25s ease;
  box-shadow: -8px 0 24px rgba(0,0,0,.15);
  padding: 20px 16px;
}
.bb-drawer.open{ opacity:1; pointer-events:auto; }
.bb-drawer.open .bb-drawer__panel{ transform: translateX(0); }

.bb-drawer__close{
  position:absolute; right:8px; top:8px;
  background: transparent; border:none; font-size: 28px; line-height: 1; cursor:pointer;
}
.bb-drawer__nav{ display:flex; flex-direction:column; margin-top:18px; }
.bb-drawer__link{
  display:block; padding:14px 12px; border-radius:12px;
  text-decoration:none; color:#0b1f33;
}
.bb-drawer__link:hover{ background:#f1f5f9; }
.bb-drawer__link.is-active{ background:#e9eef5; }
.bb-drawer__link--cta{ background: var(--bb-copper); color:#fff; }
.bb-drawer__link--danger{ color:#b42318; }
.bb-drawer__sep{ border:0; border-top:1px solid #e5e7eb; margin:10px 0; }

/* Empêche le scroll de la page quand le drawer est ouvert */
.bb-noscroll{ overflow: hidden; }

/* ===== Tableau comptes ===== */
.table-wrap { margin-top: 12px; }
.table-actions { display:flex; justify-content:flex-end; margin-bottom:10px; }
.tbl-search {
  width: 320px; max-width:100%;
  padding:10px 12px; border:1px solid #e1e6ef; border-radius:10px; outline:0;
}
.table-scroll{ overflow:auto; border:1px solid #e7e9f1; border-radius:14px; background:#fff; }
.bb-table{ width:100%; border-collapse:separate; border-spacing:0; min-width:860px; }
.bb-table thead th{
  background:#063866; color:#fff; text-align:left; font-weight:700; letter-spacing:.02em;
  padding:12px; position:sticky; top:0; z-index:1;
}
.bb-table tbody td{ padding:12px; border-top:1px solid #eef1f6; vertical-align:middle; }
.bb-table tbody tr:hover{ background:#f8fbff; }
.bb-table .num{ text-align:right; font-variant-numeric: tabular-nums; }

.bank-cell{ display:flex; align-items:center; gap:8px; }
.bank-cell img{ width:28px; height:28px; border-radius:6px; border:1px solid #e7e9f1; object-fit:cover; }
.bank-logo--sm{
  width:28px; height:28px; border-radius:6px; background:#eaf2fb; color:#063866;
  display:flex; align-items:center; justify-content:center; font-weight:800;
}
.acc-cell{ display:flex; flex-direction:column; gap:2px }
.acc-cell .muted{ color:#8a97a5; font-size:.85rem }
.iban{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace }

.btn{ cursor:pointer; border:0; border-radius:10px; padding:8px 12px; font-weight:700 }
.btn-light{ background:#f2f5fb; color:#0f2542; border:1px solid #e0e6f3 }
.btn-light:hover{ background:#e9eef8 }
.btn-accent{ background:#B45309; color:#fff; box-shadow:0 2px 8px rgba(180,83,9,.25) }
.btn-accent:hover{ filter: brightness(1.05) }
.btn-copy{
  background:#fff; color:#063866; border:1px solid #06386633; padding:6px 10px; border-radius:8px; font-size:.85rem;
}
.btn-copy:hover{ background:#0638660d }

/* Header gradient aligné marque */
.bb-page-header--gradient{
  background: linear-gradient(135deg, #063866 0%, #0a4a86 60%, #0f5aa6 100%);
  color:#fff; border-radius:16px; padding:18px 20px; margin:0 0 12px 0;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.bb-page-sub{ opacity:.9 }
