/* ═══════════════════════════════════════════════════════
   SEEDPAY — Feuille de style globale
   Couleurs : Bleu #2D5FA6 | Vert #3BB64A | Blanc #FFFFFF
═══════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --blue:       #2D5FA6;
  --blue-dark:  #1e4a8c;
  --blue-light: #EEF3FB;
  --blue-mid:   #C8D9F0;
  --green:      #3BB64A;
  --green-dark: #2e9a3c;
  --green-light:#EDFBEF;
  --white:      #FFFFFF;
  --gray-50:    #F9FAFB;
  --gray-100:   #F3F4F6;
  --gray-200:   #E5E7EB;
  --gray-300:   #D1D5DB;
  --gray-500:   #6B7280;
  --gray-700:   #374151;
  --gray-900:   #0F1C35;
  --danger:     #E53E3E;
  --danger-light:#FEF2F2;
  --warning:    #D97706;
  --warning-light:#FFFBEB;
  --success:    #059669;
  --success-light:#ECFDF5;
  --pill:       999px;
  --radius:     12px;
  --radius-lg:  16px;
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(45,95,166,.12);
  --transition: .18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { max-width: 100%; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--gray-100);
  color: var(--gray-900);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── Typography ─────────────────────────────────────── */
h1 { font-size: 2rem;   font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem;   font-weight: 600; }
p  { color: var(--gray-500); }
a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--pill);
  font-size: 13px; font-weight: 700; font-family: 'Poppins', sans-serif;
  cursor: pointer; border: 2px solid transparent;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary   { background: var(--blue);  color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-success   { background: var(--green); color: #fff; border-color: var(--green); }
.btn-success:hover { background: var(--green-dark); }
.btn-outline   { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-light); }
.btn-ghost     { background: transparent; color: var(--gray-700); border-color: var(--gray-200); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-danger    { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm { padding: 6px 14px; font-size: 11px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ── Forms ──────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--gray-700); margin-bottom: 5px; }
.form-control {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--gray-200); border-radius: var(--pill);
  font-size: 13px; font-family: 'Poppins', sans-serif; color: var(--gray-900);
  background: #fff; transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-light); }
.form-control.is-invalid { border-color: var(--danger); }
select.form-control { cursor: pointer; }
textarea.form-control { border-radius: var(--radius); resize: vertical; }

/* ── Cards ──────────────────────────────────────────── */
.card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-200); box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 1.1rem 1.4rem;
  border-bottom: 1.5px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { font-size: 15px; color: var(--gray-900); }
.card-body { padding: 1.4rem; }

/* ── Stat cards ─────────────────────────────────────── */
.stat-card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1.5px solid var(--gray-200); padding: 1.3rem;
  display: flex; align-items: center; gap: 1rem;
}
.stat-icon {
  width: 48px; height: 48px; min-width: 48px;
  border-radius: var(--radius); display: flex;
  align-items: center; justify-content: center;
  font-size: 22px;
}
.stat-icon.blue   { background: var(--blue-light); }
.stat-icon.green  { background: var(--green-light); }
.stat-icon.yellow { background: #FFFBEB; }
.stat-icon.red    { background: var(--danger-light); }
.stat-label { font-size: 11px; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: .5px; }
.stat-value { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); margin-top: 2px; }

/* ── Tables ─────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
table thead th {
  background: var(--gray-50); color: var(--gray-500);
  font-weight: 600; font-size: 11px; text-transform: uppercase;
  letter-spacing: .5px; padding: 10px 14px; text-align: left;
  border-bottom: 1.5px solid var(--gray-200);
}
table tbody td {
  padding: 12px 14px; border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
table tbody tr:last-child td { border-bottom: none; }
table tbody tr:hover td { background: var(--gray-50); }

/* ── Badges ─────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--pill);
  font-size: 11px; font-weight: 600;
}
.badge-success  { background: var(--success-light);  color: var(--success); }
.badge-danger   { background: var(--danger-light);   color: var(--danger); }
.badge-warning  { background: var(--warning-light);  color: var(--warning); }
.badge-info     { background: var(--blue-light);     color: var(--blue); }
.badge-gray     { background: var(--gray-100);       color: var(--gray-500); }

/* ── Alerts / Flash ─────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--radius); font-size: 13px;
  font-weight: 500; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 8px;
}
.alert-success { background: var(--success-light); color: var(--success); border: 1px solid #A7F3D0; }
.alert-danger  { background: var(--danger-light);  color: var(--danger);  border: 1px solid #FECACA; }
.alert-info    { background: var(--blue-light);    color: var(--blue);    border: 1px solid var(--blue-mid); }
.alert-warning { background: var(--warning-light); color: var(--warning); border: 1px solid #FDE68A; }

/* ── Dashboard Layout ───────────────────────────────── */
.dash-wrap { display: flex; min-height: 100vh; }

.sidebar {
  width: 240px; min-width: 240px; background: var(--gray-900);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-logo {
  padding: 1.5rem 1.25rem; display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo-icon {
  width: 36px; height: 36px; background: var(--blue); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-logo-text { font-size: 16px; font-weight: 800; color: #fff; }
.sidebar-logo-text span { color: var(--green); }

.sidebar-nav { padding: 1rem 0; flex: 1; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 1.25rem; color: rgba(255,255,255,.65);
  font-size: 13px; font-weight: 500; text-decoration: none;
  transition: all var(--transition); border-radius: 0;
  margin: 1px 0;
}
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-nav a.active { color: #fff; background: var(--blue); }
.sidebar-nav a svg { width: 17px; height: 17px; min-width: 17px; }
.sidebar-section {
  padding: 8px 1.25rem 4px;
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,.3);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 8px;
}

.sidebar-footer {
  padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
}
.sidebar-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.sidebar-user-name { font-size: 12px; font-weight: 600; color: #fff; }
.sidebar-user-role { font-size: 10px; color: rgba(255,255,255,.45); }

.dash-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.topbar {
  background: #fff; border-bottom: 1.5px solid var(--gray-200);
  padding: .85rem 1.75rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; position: sticky; top: 0; z-index: 9;
}
.topbar-title { font-size: 16px; font-weight: 700; color: var(--gray-900); }
.topbar-actions { display: flex; align-items: center; gap: .75rem; }
/* Déconnexion mobile : caché sur desktop, visible sur mobile */
.topbar-logout { display: none; }
.notif-btn {
  position: relative; width: 36px; height: 36px; border-radius: 50%;
  background: var(--gray-100); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.notif-badge {
  position: absolute; top: -2px; right: -2px;
  width: 16px; height: 16px; background: var(--danger); color: #fff;
  font-size: 9px; font-weight: 700; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.dash-content { padding: 1.75rem; flex: 1; overflow-y: auto; }
.page-title { font-size: 20px; font-weight: 800; color: var(--gray-900); margin-bottom: 1.5rem; }

/* ── Grids ──────────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

/* ── Landing page ───────────────────────────────────── */
.landing-body { background: #fff; overflow-x: hidden; }
.landing-body * { max-width: 100%; }
.landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem; background: #fff;
  border-bottom: 1.5px solid var(--blue-light);
  position: sticky; top: 0; z-index: 50;
}
.landing-nav-links { display: flex; align-items: center; gap: 6px; }
.nav-pill {
  padding: 8px 18px; border-radius: var(--pill); font-size: 12px; font-weight: 700;
  font-family: 'Poppins', sans-serif; cursor: pointer; border: 2px solid transparent;
  background: transparent; color: var(--gray-500); transition: all var(--transition);
}
.nav-pill:hover { color: var(--blue); background: var(--blue-light); }
.nav-pill.active { color: var(--blue); background: var(--blue-light); border-color: var(--blue-mid); }
.nav-pill.cta { background: var(--blue); color: #fff; border-color: var(--blue); }
.nav-pill.cta:hover { background: var(--blue-dark); }

.tab-page { display: none; }
.tab-page.active { display: block; }

/* ── Arc decorations ────────────────────────────────── */
.arc-wrap { position: relative; overflow: hidden; }
.arc-wrap svg.arc { position: absolute; pointer-events: none; }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1fr 200px;
  gap: 2rem; align-items: center;
  padding: 4rem 2rem 3rem; max-width: 960px; margin: 0 auto;
  position: relative; z-index: 2;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-light); color: #1a7a28;
  font-size: 10px; font-weight: 700; padding: 4px 12px;
  border-radius: var(--pill); margin-bottom: .8rem;
  text-transform: uppercase; letter-spacing: .8px;
}
.hero h1 { font-size: 2.2rem; font-weight: 800; color: var(--gray-900); margin-bottom: .75rem; line-height: 1.2; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p { font-size: 14px; margin-bottom: 1.5rem; line-height: 1.8; }
.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Stats strip ────────────────────────────────────── */
.stats-strip {
  display: flex; gap: 0; border-top: 1.5px solid var(--blue-light);
  border-bottom: 1.5px solid var(--blue-light); background: var(--blue-light);
}
.stat-pill { flex: 1; text-align: center; padding: 1.25rem 1rem; }
.stat-pill:not(:last-child) { border-right: 1.5px solid var(--blue-mid); }
.stat-pill .num { font-size: 1.6rem; font-weight: 800; color: var(--blue); }
.stat-pill .lbl { font-size: 11px; font-weight: 600; color: var(--gray-500); margin-top: 2px; }

/* ── Section ────────────────────────────────────────── */
.section { padding: 3rem 2rem; max-width: 960px; margin: 0 auto; }
.sec-tag { font-size: 10px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.sec-title { font-size: 1.6rem; font-weight: 800; color: var(--gray-900); margin-bottom: 6px; }
.sec-sub { font-size: 13px; color: var(--gray-500); margin-bottom: 2rem; line-height: 1.8; }

.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.feat-card {
  border: 1.5px solid var(--blue-mid); border-radius: var(--radius-lg);
  padding: 1.3rem; background: #fff;
}
.feat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: .75rem; }
.feat-title { font-size: 13px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.feat-desc  { font-size: 12px; color: var(--gray-500); line-height: 1.7; }

.step-list { display: flex; flex-direction: column; gap: 1.1rem; }
.step-item { display: flex; gap: .85rem; align-items: flex-start; }
.step-num {
  width: 32px; height: 32px; min-width: 32px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.step-t { font-size: 13px; font-weight: 700; color: var(--gray-900); margin-bottom: 3px; }
.step-d { font-size: 12px; color: var(--gray-500); line-height: 1.7; }

.partners-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.partner-tag {
  padding: 6px 16px; border: 1.5px solid var(--blue-mid);
  border-radius: var(--pill); font-size: 11px; font-weight: 600;
  color: var(--blue); background: var(--blue-light);
}

/* News landing */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.news-card {
  display: flex; gap: 1rem; border: 1.5px solid var(--blue-mid);
  border-radius: var(--radius-lg); padding: 1rem; cursor: pointer;
  transition: background var(--transition);
}
.news-card:hover { background: var(--blue-light); }
.news-thumb {
  width: 56px; height: 56px; min-width: 56px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.news-cat { font-size: 9px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.news-card-title { font-size: 12px; font-weight: 600; color: var(--gray-900); margin-bottom: 3px; line-height: 1.4; }
.news-date { font-size: 10px; color: var(--gray-500); }

/* FAQ landing */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1.5px solid var(--blue-mid); border-radius: var(--radius); overflow: hidden; background: #fff; }
.faq-q {
  padding: .9rem 1.1rem; font-size: 13px; font-weight: 600; color: var(--gray-900);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; background: none; border: none; width: 100%; text-align: left;
  font-family: 'Poppins', sans-serif;
}
.faq-q:hover { background: var(--blue-light); }
.faq-arr { font-size: 10px; color: var(--blue); transition: transform .2s; font-weight: 700; }
.faq-a { padding: 0 1.1rem .9rem; font-size: 12px; color: var(--gray-500); line-height: 1.8; display: none; border-top: 1px solid var(--blue-light); padding-top: .75rem; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-arr { transform: rotate(180deg); }
.faq-item.open .faq-q { color: var(--blue); }

/* CTA Banner */
.cta-banner {
  background: var(--blue); padding: 3rem 2rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner h2 { color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: .5rem; }
.cta-banner p { color: var(--blue-mid); font-size: 13px; margin-bottom: 1.5rem; }

/* Landing footer */
.landing-footer {
  background: var(--gray-900); padding: 1.5rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.landing-footer a { color: rgba(255,255,255,.5); font-size: 11px; font-weight: 500; }
.landing-footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,.35); }

/* ── Login / Register ───────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--blue-light); position: relative; overflow: hidden; padding: 2rem;
}
.auth-card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1.5px solid var(--blue-mid); padding: 2rem;
  width: 100%; max-width: 400px; position: relative; z-index: 2;
  box-shadow: var(--shadow-md);
}
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-title { font-size: 1.3rem; font-weight: 800; color: var(--gray-900); text-align: center; margin-bottom: 4px; }
.auth-sub   { font-size: 12px; color: var(--gray-500); text-align: center; margin-bottom: 1.5rem; }
.auth-footer { text-align: center; margin-top: 1rem; font-size: 12px; color: var(--gray-500); }
.auth-footer a { color: var(--blue); font-weight: 600; }

/* ── Client: Balance card ───────────────────────────── */
.balance-card {
  background: var(--blue); border-radius: var(--radius-lg);
  padding: 1.75rem; margin-bottom: 1.5rem; position: relative; overflow: hidden;
}
.balance-label { font-size: 11px; font-weight: 600; color: var(--blue-mid); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 6px; }
.balance-amount { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
.balance-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.balance-btn {
  padding: 8px 18px; background: rgba(255,255,255,.15); color: #fff;
  border: 1.5px solid rgba(255,255,255,.3); border-radius: var(--pill);
  font-size: 12px; font-weight: 700; cursor: pointer; font-family: 'Poppins', sans-serif;
  transition: background var(--transition); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.balance-btn:hover { background: rgba(255,255,255,.25); color: #fff; }
.balance-btn.accent { background: var(--green); border-color: var(--green); }
.balance-btn.accent:hover { background: var(--green-dark); }

/* ── Quick actions ──────────────────────────────────── */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1.5rem; }
.quick-card {
  background: #fff; border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  padding: 1rem; text-align: center; cursor: pointer; text-decoration: none;
  transition: all var(--transition); display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.quick-card:hover { border-color: var(--blue); background: var(--blue-light); transform: translateY(-2px); }
.quick-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.quick-label { font-size: 11px; font-weight: 600; color: var(--gray-700); }

/* ── Hamburger (desktop : caché) ────────────────────── */
.btn-hamburger {
  display: none;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--gray-100); border: 1.5px solid var(--gray-200);
  cursor: pointer; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background var(--transition);
}
.btn-hamburger:hover { background: var(--gray-200); }

/* ── Overlay sidebar (mobile) ───────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 199;
}
.sidebar-overlay.active { display: block; }

/* ── Responsive 768 px ──────────────────────────────── */
@media (max-width: 768px) {

  /* --- body : pas de scroll horizontal --------------- */
  body, html { overflow-x: hidden; }
  .landing-body, #tab-home, .arc-wrap, .section { overflow-x: hidden; }

  /* --- Sidebar : cachée par défaut, tiroir au clic --- */
  .sidebar {
    position: fixed !important;
    top: 0; left: 0; height: 100vh !important;
    width: 260px !important; min-width: 0 !important;
    transform: translateX(-100%);
    transition: transform .26s cubic-bezier(.4,0,.2,1);
    z-index: 200;
    box-shadow: 4px 0 28px rgba(0,0,0,.22);
  }
  .sidebar.is-open { transform: translateX(0); }

  /* --- Bouton hamburger visible ---------------------- */
  .btn-hamburger { display: flex; }

  /* --- Topbar ---------------------------------------- */
  .topbar { padding: .75rem 1rem; gap: .75rem; }
  .topbar-logout { display: flex; }

  /* --- Contenu dashboard ----------------------------- */
  .dash-content { padding: 1rem; }

  /* --- Grilles dashboard ----------------------------- */
  .grid-4, .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3              { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .feat-grid, .news-grid { grid-template-columns: 1fr; }

  /* --- Landing nav ----------------------------------- */
  .landing-nav { padding: .6rem .75rem; flex-wrap: wrap; gap: .3rem; }
  .landing-nav-links { flex-wrap: wrap; gap: 4px; }
  .nav-pill { padding: 5px 10px; font-size: 11px; }

  /* --- Hero : masquer le fond SVG -------------------- */
  .arc-wrap { overflow: hidden; }
  .hero-bg-svg { display: none !important; }

  /* --- Landing hero ---------------------------------- */
  .hero {
    grid-template-columns: 1fr;
    padding: 2rem 1rem 1.5rem;
    gap: 1.25rem;
  }
  .hero > svg { display: none; }
  .hero h1 { font-size: 1.6rem; line-height: 1.25; }
  .hero p { font-size: 13px; }
  .hero-btns { flex-direction: column; gap: 8px; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  /* --- Stats strip ----------------------------------- */
  .stats-strip { flex-wrap: wrap; }
  .stat-pill { flex: 0 0 50%; border-right: none !important; }
  .stat-pill:nth-child(odd) { border-right: 1.5px solid var(--blue-mid) !important; }
  .stat-pill .num { font-size: 1.3rem; }

  /* --- Sections landing ------------------------------ */
  .section { padding: 2rem 1rem; }
  .sec-title { font-size: 1.3rem; }
  .sec-sub { font-size: 12px; }

  /* --- Section régionale : 1 colonne ----------------- */
  .regional-grid  { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .pays-grid      { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .corridor-stats { grid-template-columns: repeat(2, 1fr) !important; gap: .75rem !important; }

  /* --- Contenu régional : contraindre la largeur ----- */
  .regional-grid > div,
  .pays-grid > div { box-sizing: border-box; min-width: 0; }
  .regional-grid svg { max-width: 100% !important; height: auto; }

  /* --- Blocs inline avec padding fixe ---------------- */
  [style*="padding:18px 20px"] { padding: 14px 14px !important; }
  [style*="padding:12px 14px"] { padding: 10px 12px !important; }

  /* --- Steps grid ------------------------------------ */
  .steps-grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .steps-visual { display: none; }

  /* --- CTA banner ------------------------------------ */
  .cta-banner { padding: 2rem 1rem; }
  .cta-banner h2 { font-size: 1.2rem; }
  .cta-banner p  { font-size: 12px; }

  /* --- Landing footer -------------------------------- */
  .landing-footer {
    flex-direction: column; gap: .75rem;
    padding: 1.25rem 1rem; text-align: center;
  }
  .footer-links { justify-content: center; gap: 1rem; }

  /* --- Auth card ------------------------------------- */
  .auth-card { padding: 1.4rem 1.1rem; }
  .auth-page { padding: 1rem; }

  /* --- Balance card ---------------------------------- */
  .balance-amount { font-size: 1.6rem; }

  /* --- Stat cards ------------------------------------ */
  .stat-card { padding: 1rem; gap: .75rem; }
}

/* ── Responsive 480 px (très petit) ────────────────── */
@media (max-width: 480px) {
  .grid-3, .grid-4, .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .balance-amount { font-size: 1.4rem; }
  .balance-actions { flex-wrap: wrap; gap: .5rem; }
  .balance-btn { flex: 1; justify-content: center; min-width: 100px; }
  .hero h1 { font-size: 1.35rem; }
  .sec-title { font-size: 1.15rem; }
  .pays-grid { grid-template-columns: 1fr !important; }
  .corridor-stats { grid-template-columns: repeat(2, 1fr) !important; }
  .topbar-title { font-size: 14px; }
  .page-title { font-size: 17px; }
  .nav-pill { padding: 5px 8px; font-size: 10px; }
  .landing-nav { gap: .2rem; }
  .hero-btns .btn { font-size: 13px; padding: 11px 20px; }
}
