/* ============================================================
   BANQUE D'ESCOMPTE — Global Stylesheet
   Fintech Premium UI — v1.0
   ============================================================ */

/* ── Custom Properties ── */
:root {
  --navy:        #0A1F44;
  --navy-mid:    #0D2454;
  --navy-light:  #122b5e;
  --gold:        #C9A227;
  --gold-light:  #e0b93d;
  --gold-pale:   #f5e8c0;
  --white:       #FFFFFF;
  --off-white:   #F8F9FC;
  --gray-50:     #F4F6FA;
  --gray-100:    #E8ECF4;
  --gray-300:    #B8C4D8;
  --gray-500:    #6B7A99;
  --gray-700:    #3A4560;
  --text-main:   #1A2840;
  --text-muted:  #5A6A85;
  --success:     #1CB87E;
  --danger:      #E84545;
  --shadow-sm:   0 2px 12px rgba(10,31,68,.08);
  --shadow-md:   0 8px 32px rgba(10,31,68,.14);
  --shadow-lg:   0 20px 60px rgba(10,31,68,.18);
  --shadow-gold: 0 8px 32px rgba(201,162,39,.25);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --transition:  all .3s cubic-bezier(.4,0,.2,1);
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'DM Sans', 'Segoe UI', sans-serif;
  --font-mono:   'JetBrains Mono', 'Courier New', monospace;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Google Fonts Import ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=DM+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-bd {
  background: rgba(10,31,68,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,162,39,.15);
  padding: .9rem 0;
  transition: var(--transition);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-bd.scrolled {
  padding: .6rem 0;
  box-shadow: var(--shadow-lg);
}
.navbar-brand-bd {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.navbar-brand-bd .brand-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--navy);
  font-weight: 700;
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}
.navbar-brand-bd .brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.navbar-brand-bd .brand-name {
  font-family: var(--font-head);
  font-size: 1.05rem; font-weight: 700;
  color: var(--white); letter-spacing: .02em;
}
.navbar-brand-bd .brand-sub {
  font-size: .65rem; color: var(--gold);
  letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
}
.navbar-bd .nav-link {
  color: rgba(255,255,255,.82) !important;
  font-weight: 500; font-size: .88rem;
  letter-spacing: .02em;
  padding: .5rem .85rem !important;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}
.navbar-bd .nav-link::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; right: 50%;
  height: 2px; background: var(--gold);
  transition: var(--transition); border-radius: 2px;
}
.navbar-bd .nav-link:hover,
.navbar-bd .nav-link.active {
  color: var(--gold) !important;
  background: rgba(201,162,39,.08);
}
.navbar-bd .nav-link:hover::after,
.navbar-bd .nav-link.active::after { left: 10%; right: 10%; }
.navbar-bd .btn-nav-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy) !important;
  font-weight: 700; font-size: .85rem;
  padding: .5rem 1.25rem !important;
  border-radius: 8px;
  border: none;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
}
.navbar-bd .btn-nav-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(201,162,39,.4);
}
.navbar-bd .btn-nav-primary::after { display: none; }
.navbar-toggler { border: 1px solid rgba(201,162,39,.3); padding: .4rem .6rem; }
.navbar-toggler-icon { filter: invert(1); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-bd-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-weight: 700;
  font-size: .9rem;
  padding: .75rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; gap: .5rem;
  letter-spacing: .02em;
}
.btn-bd-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(201,162,39,.45);
  color: var(--navy);
}
.btn-bd-outline {
  background: transparent;
  color: var(--gold);
  font-weight: 600;
  font-size: .9rem;
  padding: .72rem 1.9rem;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-bd-outline:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn-bd-white {
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: .9rem;
  padding: .75rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
  box-shadow: var(--shadow-md);
}
.btn-bd-white:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}

/* ============================================================
   SECTIONS & LAYOUT
   ============================================================ */
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 64px 0; }

.section-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(201,162,39,.1);
  color: var(--gold);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(201,162,39,.2);
  margin-bottom: 1.25rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
.section-title span { color: var(--gold); }
.section-title-white { color: var(--white) !important; }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-subtitle-white { color: rgba(255,255,255,.75) !important; }
.divider-gold {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 1.25rem auto;
}
.divider-gold.left { margin-left: 0; }

/* ── Navy BG sections ── */
.bg-navy { background: var(--navy); }
.bg-navy-mid { background: var(--navy-mid); }
.bg-gray { background: var(--gray-50); }
.bg-gradient-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}

/* ============================================================
   CARDS
   ============================================================ */
.card-bd {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
}
.card-bd:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201,162,39,.25);
}
.card-bd .card-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, rgba(10,31,68,.06), rgba(10,31,68,.12));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--navy);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}
.card-bd:hover .card-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}
.card-bd-dark {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.card-bd-dark:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(201,162,39,.3);
  transform: translateY(-4px);
}
.card-bd-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: var(--radius-lg);
  color: var(--navy);
}
.card-featured {
  border: 2px solid var(--gold);
  position: relative;
}
.card-featured::before {
  content: 'Populaire';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  font-size: .72rem; font-weight: 700;
  padding: .25rem .9rem;
  border-radius: 50px;
  letter-spacing: .08em; text-transform: uppercase;
}

/* ============================================================
   HERO STYLES
   ============================================================ */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, #0d2754 50%, #0a1f44 100%);
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(201,162,39,.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(201,162,39,.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-section-mini {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-section-mini::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(201,162,39,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-section-mini::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stat-item { text-align: center; padding: .5rem 1rem; }
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800; color: var(--gold);
  line-height: 1;
}
.stat-label { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: .25rem; letter-spacing: .04em; }
.stat-divider { width: 1px; background: rgba(255,255,255,.1); align-self: stretch; margin: .5rem 0; }

/* ============================================================
   STEPS
   ============================================================ */
.step-item { position: relative; padding-left: 5rem; margin-bottom: 2.5rem; }
.step-number {
  position: absolute; left: 0; top: 0;
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 800; color: var(--navy);
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}
.step-item:not(:last-child) .step-number::after {
  content: '';
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: 2px; height: calc(100% + 1rem);
  background: linear-gradient(var(--gold-pale), transparent);
  margin-top: .5rem;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.table-compare {
  border-collapse: separate; border-spacing: 0;
  width: 100%;
}
.table-compare th {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.25rem;
  font-weight: 600; font-size: .9rem;
  border: none;
}
.table-compare th.col-premium {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
}
.table-compare td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  font-size: .88rem;
}
.table-compare tbody tr:hover td { background: var(--gray-50); }
.table-compare .check { color: var(--success); font-size: 1.1rem; }
.table-compare .cross { color: var(--gray-300); font-size: 1.1rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form-bd .form-label {
  font-weight: 600; font-size: .85rem;
  color: var(--gray-700); margin-bottom: .4rem;
  letter-spacing: .02em;
}
.form-bd .form-control,
.form-bd .form-select {
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .9rem;
  background: var(--white);
  color: var(--text-main);
  transition: var(--transition);
}
.form-bd .form-control:focus,
.form-bd .form-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,.12);
}
.form-bd-dark .form-control,
.form-bd-dark .form-select {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
  color: var(--white);
}
.form-bd-dark .form-control:focus,
.form-bd-dark .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,.15);
}
.form-bd-dark .form-control::placeholder { color: rgba(255,255,255,.35); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(201,162,39,.2);
}
.testimonial-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-pale);
}
.star-rating { color: var(--gold); font-size: .9rem; }
.quote-icon { color: var(--gold); font-size: 2rem; opacity: .25; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-bd {
  background: linear-gradient(to bottom, #081935, #050f22);
  border-top: 1px solid rgba(201,162,39,.12);
  padding: 80px 0 0;
  color: rgba(255,255,255,.7);
  font-size: .875rem;
}
.footer-brand { margin-bottom: 1.5rem; }
.footer-desc { color: rgba(255,255,255,.55); font-size: .85rem; line-height: 1.8; }
.footer-heading {
  color: var(--white);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .65rem; }
.footer-links a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .85rem;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: .4rem;
}
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}
.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}
.footer-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(201,162,39,.1);
  color: var(--gold);
  font-size: .7rem; font-weight: 600;
  padding: .3rem .8rem;
  border-radius: 50px;
  border: 1px solid rgba(201,162,39,.2);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,.4); }
  50%       { box-shadow: 0 0 0 12px rgba(201,162,39,0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.animate-fade-up      { opacity: 0; animation: fadeInUp .7s ease forwards; }
.animate-fade-left    { opacity: 0; animation: fadeInLeft .7s ease forwards; }
.animate-fade-right   { opacity: 0; animation: fadeInRight .7s ease forwards; }
.animate-scale        { opacity: 0; animation: scaleIn .6s ease forwards; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }
.delay-6 { animation-delay: .6s; }
.delay-7 { animation-delay: .7s; }
.delay-8 { animation-delay: .8s; }

/* Intersection observer animatable */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: opacity .7s ease, transform .7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── Floating card animation ── */
.float-anim { animation: float 4s ease-in-out infinite; }

/* ── Shimmer text effect ── */
.text-shimmer {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-light) 40%, #fff8d4 50%, var(--gold-light) 60%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ── Pulse dot ── */
.pulse-dot {
  display: inline-block; width: 8px; height: 8px;
  background: var(--success); border-radius: 50%;
  animation: pulse-gold 2s infinite;
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.text-gold  { color: var(--gold) !important; }
.text-navy  { color: var(--navy) !important; }
.text-muted-bd { color: var(--text-muted) !important; }
.bg-gold    { background: var(--gold) !important; }
.border-gold { border-color: var(--gold) !important; }
.rounded-xl  { border-radius: var(--radius-xl) !important; }
.rounded-lg  { border-radius: var(--radius-lg) !important; }
.shadow-gold { box-shadow: var(--shadow-gold) !important; }
.fw-semibold { font-weight: 600; }
.font-head   { font-family: var(--font-head); }
.scrollable  { overflow-x: auto; }

/* ── Icon badge ── */
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.icon-badge-navy { background: rgba(10,31,68,.08); color: var(--navy); }
.icon-badge-gold { background: rgba(201,162,39,.12); color: var(--gold); }
.icon-badge-white { background: rgba(255,255,255,.1); color: var(--white); }

/* ── Risk bar ── */
.risk-bar { height: 6px; border-radius: 3px; background: var(--gray-100); overflow: hidden; }
.risk-bar-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }

/* ── Process line ── */
.process-line {
  display: flex; align-items: center; justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
}
.process-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  flex: 1; position: relative;
}
.process-step:not(:last-child)::after {
  content: '';
  position: absolute; top: 28px; left: calc(50% + 28px);
  width: calc(100% - 56px);
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(201,162,39,.2));
}
.process-icon {
  width: 56px; height: 56px;
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--gray-300);
  transition: var(--transition);
  position: relative; z-index: 1;
}
.process-step.active .process-icon,
.process-step:hover .process-icon {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-color: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}

/* ── FAQ accordion ── */
.accordion-bd .accordion-button {
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  font-size: .9rem;
  border: none;
  box-shadow: none;
  padding: 1.25rem 1.5rem;
}
.accordion-bd .accordion-button:not(.collapsed) {
  color: var(--gold);
  background: rgba(201,162,39,.04);
}
.accordion-bd .accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23C9A227' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}
.accordion-bd .accordion-item {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm) !important;
  margin-bottom: .75rem;
  overflow: hidden;
}
.accordion-bd .accordion-body {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.8;
  padding: .75rem 1.5rem 1.25rem;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--gray-50); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--navy); }

/* ── Selection ── */
::selection { background: rgba(201,162,39,.3); color: var(--navy); }

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .section-pad { padding: 70px 0; }
  .process-step:not(:last-child)::after { display: none; }
}
@media (max-width: 767.98px) {
  .section-pad { padding: 54px 0; }
  .stat-divider { display: none; }
  .hero-section { min-height: auto; padding: 110px 0 60px; }
}
@media (max-width: 575.98px) {
  .section-pad { padding: 44px 0; }
  .section-title { font-size: 1.65rem; }
  .btn-bd-primary, .btn-bd-outline, .btn-bd-white { padding: .65rem 1.4rem; font-size: .85rem; }
}

/* ============================================================
   BANQUE D'ESCOMPTE — Styles Globaux
   ============================================================ */

:root {
  --bd-primary:    #0a2447;
  --bd-secondary:  #1a4a8a;
  --bd-accent:     #d4a843;
  --bd-gold:       #c9963a;
  --bd-light:      #f0f4fa;
  --bd-card-bg:    #ffffff;
  --bd-sidebar-w:  260px;
  --bd-text:       #1e293b;
  --bd-muted:      #64748b;
  --bd-success:    #059669;
  --bd-danger:     #dc2626;
  --bd-shadow:     0 4px 24px rgba(10,36,71,.10);
  --bd-radius:     12px;
  --bd-transition: all .25s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bd-light);
  color: var(--bd-text);
  margin: 0; padding: 0;
  min-height: 100vh;
}

/* ── AUTH PAGES ──────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  background: linear-gradient(135deg, var(--bd-primary) 0%, var(--bd-secondary) 60%, #2d6cba 100%);
}

.auth-left {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem;
  color: white;
}

.auth-logo { width: 80px; height: 80px; margin-bottom: 1.5rem; }

.auth-right {
  width: 520px; min-height: 100vh;
  background: white;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 3rem;
  box-shadow: -10px 0 40px rgba(0,0,0,.15);
}

.auth-tagline {
  font-size: 1.1rem;
  opacity: .8;
  line-height: 1.7;
  max-width: 380px;
  text-align: center;
  margin-top: 1rem;
}

.brand-name {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.auth-form-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bd-primary);
  margin-bottom: .5rem;
}

/* ── FORM CONTROLS ─────────────────────────────────── */
.form-control, .form-select {
  border: 1.5px solid #d1d9e6;
  border-radius: 8px;
  padding: .65rem 1rem;
  transition: var(--bd-transition);
  font-size: .92rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--bd-secondary);
  box-shadow: 0 0 0 3px rgba(26,74,138,.12);
}

.input-group-text {
  background: #f8f9fc;
  border: 1.5px solid #d1d9e6;
  border-radius: 8px 0 0 8px;
  color: var(--bd-muted);
}

/* ── BOUTONS ──────────────────────────────────────── */
.btn-primary-bd {
  background: linear-gradient(90deg, var(--bd-primary), var(--bd-secondary));
  color: white; border: none;
  padding: .7rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: var(--bd-transition);
  box-shadow: 0 4px 12px rgba(10,36,71,.25);
}
.btn-primary-bd:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10,36,71,.35);
  color: white;
}

.btn-gold {
  background: linear-gradient(90deg, var(--bd-gold), var(--bd-accent));
  color: white; border: none;
  padding: .7rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--bd-transition);
  box-shadow: 0 4px 12px rgba(212,168,67,.3);
}
.btn-gold:hover { transform: translateY(-1px); color: white; }

/* ── SIDEBAR ──────────────────────────────────────── */
.sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--bd-sidebar-w);
  height: 100vh;
  background: linear-gradient(160deg, var(--bd-primary) 0%, #0e2f5e 100%);
  display: flex; flex-direction: column;
  z-index: 1000;
  transition: var(--bd-transition);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  padding: 1.5rem 1.5rem 1rem;
  display: flex; align-items: center; gap: .8rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar-brand img { width: 38px; height: 38px; }

.sidebar-brand-text { color: white; font-weight: 700; font-size: 1rem; line-height: 1.2; }
.sidebar-brand-sub  { color: var(--bd-accent); font-size: .7rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

.sidebar-user {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.sidebar-user-name  { color: white; font-weight: 600; font-size: .9rem; }
.sidebar-user-email { color: rgba(255,255,255,.5); font-size: .75rem; }

.sidebar-section-title {
  color: rgba(255,255,255,.35);
  font-size: .65rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 1.2rem 1.5rem .4rem;
}

.sidebar-nav { padding: 0 .75rem; flex: 1; }

.sidebar-nav .nav-link {
  color: rgba(255,255,255,.7);
  padding: .65rem .9rem;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  display: flex; align-items: center; gap: .75rem;
  transition: var(--bd-transition);
  margin-bottom: .15rem;
  text-decoration: none;
}

.sidebar-nav .nav-link:hover {
  color: white;
  background: rgba(255,255,255,.08);
}

.sidebar-nav .nav-link.active {
  color: white;
  background: rgba(212,168,67,.2);
  border-left: 3px solid var(--bd-accent);
}

.sidebar-nav .nav-link i {
  width: 20px; text-align: center;
  font-size: .95rem;
  color: var(--bd-accent);
}

.sidebar-balance {
  margin: 1rem .75rem;
  background: rgba(255,255,255,.06);
  border-radius: var(--bd-radius);
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.08);
}

.sidebar-balance-label { color: rgba(255,255,255,.5); font-size: .72rem; letter-spacing: .5px; }
.sidebar-balance-amount { color: var(--bd-accent); font-size: 1.4rem; font-weight: 800; }

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ── MAIN CONTENT ─────────────────────────────────── */
.main-content {
  margin-left: var(--bd-sidebar-w);
  min-height: 100vh;
  padding: 0;
}

.topbar {
  background: white;
  border-bottom: 1px solid #e8edf5;
  padding: .8rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 900;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.topbar-title { font-size: 1.1rem; font-weight: 700; color: var(--bd-primary); }
.topbar-actions { display: flex; align-items: center; gap: 1rem; }

.page-content { padding: 2rem; }

/* ── CARDS ────────────────────────────────────────── */
.bd-card {
  background: white;
  border-radius: var(--bd-radius);
  box-shadow: var(--bd-shadow);
  border: 1px solid rgba(0,0,0,.04);
  overflow: hidden;
}

.bd-card-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex; align-items: center; justify-content: space-between;
}

.bd-card-title {
  font-weight: 700; font-size: 1rem;
  color: var(--bd-primary); margin: 0;
  display: flex; align-items: center; gap: .5rem;
}

.bd-card-body { padding: 1.5rem; }

/* ── STAT CARDS ───────────────────────────────────── */
.stat-card {
  background: white;
  border-radius: var(--bd-radius);
  padding: 1.5rem;
  box-shadow: var(--bd-shadow);
  border: 1px solid rgba(0,0,0,.04);
  transition: var(--bd-transition);
  position: relative; overflow: hidden;
}

.stat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(10,36,71,.12); }

.stat-card::after {
  content: ''; position: absolute;
  top: 0; right: 0; width: 80px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212,168,67,.05));
}

.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1rem;
}

.stat-icon.primary { background: rgba(10,36,71,.08); color: var(--bd-primary); }
.stat-icon.success { background: rgba(5,150,105,.1);  color: var(--bd-success); }
.stat-icon.warning { background: rgba(212,168,67,.1); color: var(--bd-gold); }
.stat-icon.danger  { background: rgba(220,38,38,.08); color: var(--bd-danger); }
.stat-icon.info    { background: rgba(26,74,138,.08); color: var(--bd-secondary); }

.stat-value {
  font-size: 1.6rem; font-weight: 800;
  color: var(--bd-text); margin-bottom: .2rem;
}

.stat-label { font-size: .8rem; color: var(--bd-muted); font-weight: 500; }

.stat-change {
  font-size: .75rem; font-weight: 600;
  margin-top: .5rem;
  display: flex; align-items: center; gap: .3rem;
}
.stat-change.up   { color: var(--bd-success); }
.stat-change.down { color: var(--bd-danger); }

/* ── VIRTUAL CARD ─────────────────────────────────── */
.virtual-card {
  background: linear-gradient(135deg, var(--bd-primary) 0%, var(--bd-secondary) 60%, #2d6cba 100%);
  border-radius: 16px;
  padding: 2rem;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(10,36,71,.35);
  max-width: 380px;
}

.virtual-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

.virtual-card::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -20px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(212,168,67,.08);
}

.card-chip {
  width: 45px; height: 34px;
  background: linear-gradient(135deg, var(--bd-accent), var(--bd-gold));
  border-radius: 6px; margin-bottom: 1.5rem;
  position: relative; z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.card-number {
  font-size: 1.05rem; letter-spacing: 3px;
  font-family: 'Courier New', monospace;
  position: relative; z-index: 1;
  margin-bottom: 1.5rem; opacity: .9;
}

.card-holder { font-weight: 700; font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; }
.card-expiry { opacity: .7; font-size: .8rem; }
.card-network { position: absolute; bottom: 1.5rem; right: 1.5rem; z-index: 1; }
.card-network-circles span {
  width: 32px; height: 32px;
  border-radius: 50%; display: inline-block;
}
.card-network-circles span:first-child  { background: #eb001b; margin-right: -8px; }
.card-network-circles span:last-child   { background: #f79e1b; opacity: .85; }

/* ── TABLES ───────────────────────────────────────── */
.bd-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: .875rem;
}

.bd-table thead th {
  background: #f8fafc;
  color: var(--bd-muted); font-weight: 600;
  padding: .9rem 1rem; font-size: .78rem;
  letter-spacing: .5px; text-transform: uppercase;
  border-bottom: 1px solid #e8edf5;
}

.bd-table tbody tr { transition: var(--bd-transition); }
.bd-table tbody tr:hover { background: #f8fafc; }

.bd-table tbody td {
  padding: .85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: var(--bd-text);
}

/* ── PROGRESS STEPS ───────────────────────────────── */
.step-tracker { display: flex; align-items: flex-start; gap: 0; }
.step-item { flex: 1; text-align: center; position: relative; }

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px; left: 60%; right: -40%;
  height: 2px;
  background: #e2e8f0;
}

.step-item.done:not(:last-child)::after { background: var(--bd-success); }
.step-item.active:not(:last-child)::after { background: var(--bd-accent); }

.step-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
  margin: 0 auto .5rem;
  border: 2px solid #e2e8f0;
  background: white; color: var(--bd-muted);
  position: relative; z-index: 1;
}

.step-item.done   .step-circle { background: var(--bd-success); border-color: var(--bd-success); color: white; }
.step-item.active .step-circle { background: var(--bd-accent);  border-color: var(--bd-accent);  color: white; box-shadow: 0 0 0 4px rgba(212,168,67,.2); }

.step-label { font-size: .72rem; color: var(--bd-muted); font-weight: 500; }
.step-item.active .step-label { color: var(--bd-accent); font-weight: 700; }
.step-item.done   .step-label { color: var(--bd-success); }

/* ── UPLOAD ZONE ──────────────────────────────────── */
.upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--bd-radius);
  padding: 2.5rem;
  text-align: center;
  transition: var(--bd-transition);
  cursor: pointer;
  background: #f8fafc;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--bd-secondary);
  background: rgba(26,74,138,.03);
}

.upload-zone i { font-size: 2.5rem; color: #94a3b8; margin-bottom: .75rem; display: block; }
.upload-zone h6 { font-weight: 600; color: var(--bd-text); }
.upload-zone p  { font-size: .8rem; color: var(--bd-muted); margin: 0; }
.upload-zone .btn { margin-top: .75rem; }

/* ── ANIMATIONS ───────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fadeInUp .4s ease both; }
.fade-in-up-2 { animation: fadeInUp .4s .1s ease both; }
.fade-in-up-3 { animation: fadeInUp .4s .2s ease both; }
.fade-in-up-4 { animation: fadeInUp .4s .3s ease both; }

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,168,67,.4); }
  50%       { box-shadow: 0 0 0 8px rgba(212,168,67,0); }
}
.pulse-gold { animation: pulse-gold 2s infinite; }

/* ── BADGES ───────────────────────────────────────── */
.badge { font-size: .72rem; font-weight: 600; padding: .3em .7em; border-radius: 6px; }

/* ── NOTIFICATIONS DOT ────────────────────────────── */
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bd-danger); position: absolute;
  top: 0; right: 0;
}

/* ── QUICK ACTION BUTTONS ─────────────────────────── */
.quick-action {
  display: flex; flex-direction: column; align-items: center;
  gap: .5rem; padding: 1.2rem;
  background: white; border-radius: var(--bd-radius);
  border: 1.5px solid #e8edf5;
  cursor: pointer; text-decoration: none;
  color: var(--bd-text); transition: var(--bd-transition);
  box-shadow: var(--bd-shadow);
}

.quick-action:hover {
  border-color: var(--bd-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,36,71,.12);
  color: var(--bd-text);
}

.quick-action-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.quick-action-label { font-size: .78rem; font-weight: 600; text-align: center; }

/* ── KYC PROGRESS ─────────────────────────────────── */
.kyc-status-banner {
  background: linear-gradient(90deg, rgba(212,168,67,.1), rgba(212,168,67,.02));
  border: 1px solid rgba(212,168,67,.3);
  border-radius: var(--bd-radius);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}

.kyc-status-icon { font-size: 2rem; }

/* ── ADMIN TOPBAR ─────────────────────────────────── */
.admin-topbar {
  background: var(--bd-primary);
  color: white; padding: .5rem 1.5rem;
  font-size: .8rem;
  display: flex; align-items: center; justify-content: space-between;
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
  .auth-left { display: none; }
  .auth-right { width: 100%; min-height: 100vh; }
}

@media (max-width: 576px) {
  .page-content { padding: 1rem; }
  .stat-card { padding: 1rem; }
  .stat-value { font-size: 1.3rem; }
  .virtual-card { max-width: 100%; }
}

/* ── SCROLLBAR ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── PRINT ────────────────────────────────────────── */
@media print {
  .sidebar, .topbar, .btn { display: none !important; }
  .main-content { margin-left: 0; }
}
/* ============================================================
   RESPONSIVE MOBILE — PUBLIC PAGES (fix complet)
   ============================================================ */

/* ── NAVBAR MOBILE ─────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .navbar-bd { padding: .6rem 0; }
  #navMenu {
    background: rgba(10,31,68,.98);
    padding: 1rem;
    border-radius: 0 0 16px 16px;
    border-top: 1px solid rgba(201,162,39,.15);
    margin-top: .4rem;
  }
  .navbar-bd .nav-link {
    padding: .65rem 1rem !important;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .navbar-bd .nav-link::after { display: none; }
  .navbar-bd .dropdown-menu {
    background: rgba(10,31,68,.95);
    border: 1px solid rgba(201,162,39,.2) !important;
    border-radius: 10px;
    margin-top: .25rem;
  }
  .navbar-bd .dropdown-item { color: rgba(255,255,255,.82); padding: .6rem 1rem; }
  .navbar-bd .dropdown-item:hover { background: rgba(201,162,39,.1); color: #d4a843; }
  .d-flex.align-items-center.gap-2 { flex-wrap: wrap; gap: .5rem !important; }
  .btn-nav-outline, .btn-nav-primary { width: 100%; text-align: center; justify-content: center; }
}

/* ── HERO MOBILE ────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .hero-section { padding: 90px 0 50px; min-height: auto; }
  .hero-section-mini { padding: 80px 0 40px; }
  .hero-section h1 { font-size: clamp(1.6rem, 6vw, 2.2rem) !important; }
  .hero-section p.lead { font-size: .95rem; }
  .hero-section-mini h1 { font-size: clamp(1.5rem, 6vw, 2rem) !important; }
  .hero-btns { flex-direction: column; gap: .75rem; }
  .hero-btns .btn-bd-primary,
  .hero-btns .btn-bd-outline { width: 100%; text-align: center; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
  .hero-stat-value { font-size: 1.5rem; }
}

/* ── CARDS & SECTIONS MOBILE ────────────────────────────────── */
@media (max-width: 767.98px) {
  .section-pad { padding: 50px 0; }
  .section-title { font-size: 1.6rem; text-align: center; }
  .section-badge { font-size: .72rem; }

  /* Pricing / feature cards */
  .card-bd { margin-bottom: 1.25rem; }
  .card-bd-header { padding: 1.5rem 1.25rem; }
  .card-price { font-size: 2.2rem; }

  /* Process steps */
  .process-step { flex-direction: column; text-align: center; }
  .process-icon { margin: 0 auto .75rem; }

  /* Stats section */
  .stats-card { padding: 1.25rem; }
  .stats-number { font-size: 1.8rem; }

  /* Tables responsive */
  .table-responsive { font-size: .82rem; }

  /* Feature icons */
  .feature-icon { width: 52px !important; height: 52px !important; font-size: 1.3rem !important; }
}

/* ── MOBILE XS ──────────────────────────────────────────────── */
@media (max-width: 575.98px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .section-pad { padding: 36px 0; }
  .section-title { font-size: 1.4rem; }
  .btn-bd-primary, .btn-bd-outline, .btn-bd-white {
    padding: .6rem 1.2rem; font-size: .82rem; width: 100%;
    display: flex; align-items: center; justify-content: center;
  }
  .card-bd { border-radius: 12px; }
  .card-bd-body { padding: 1.25rem; }
  .testimonial-card { padding: 1.25rem; }
  .partner-logo { padding: 1rem; }
  .contact-card { padding: 1.25rem; }

  /* Footer mobile */
  .footer-section { text-align: center; }
  .footer-section h5::after { left: 50%; transform: translateX(-50%); }
  .social-links { justify-content: center; }

  /* Accordion mobile */
  .accordion-button { font-size: .88rem; padding: 1rem; }
  .accordion-body { font-size: .85rem; padding: .75rem 1rem; }

  /* Table font size */
  .table th, .table td { font-size: .78rem; padding: .5rem .4rem; }

  /* Hero buttons full width */
  .hero-section .d-flex { flex-direction: column; }
}

/* ── NAV MOBILE BTN OUTLINE ─────────────────────────────────── */
.btn-nav-outline {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(201,162,39,.35);
  border-radius: 8px;
  padding: .5rem 1.1rem;
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition, all .25s ease);
}
.btn-nav-outline:hover {
  color: #d4a843;
  border-color: rgba(201,162,39,.7);
  background: rgba(201,162,39,.08);
}


/* ============================================================
   CORRECTIONS GLOBALES — v2.0
   ============================================================ */

/* Fix: @import must be at top of CSS — redéclaration Google Fonts inline */
/* (les fonts sont chargées via <link> dans le HTML) */

/* Fix: Slider témoignages — conteneur avec position relative */
.testimonials-slider {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}
.testimonial-slide {
  transition: opacity .5s ease, transform .5s ease;
  top: 0; left: 0; right: 0;
}

/* Fix: Boutons Bootstrap écrasés — uniformisation */
.btn-bd-primary,
.btn-bd-outline,
.btn-bd-white {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

/* Fix: Formulaire d'inscription — champ téléphone invalide */
.form-control.is-invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(232,69,69,.12) !important;
}
.form-control.is-valid {
  border-color: var(--success) !important;
  box-shadow: 0 0 0 3px rgba(28,184,126,.12) !important;
}

/* Fix: Sections bg-gradient-navy — visibilité simulateur */
.bg-gradient-navy .form-range {
  display: block;
  width: 100%;
}
.bg-gradient-navy .form-control,
.bg-gradient-navy .form-select {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  color: #fff;
}

/* Fix: Section comptes — la dernière section bg-navy */
.bg-navy .section-title-white,
.bg-navy h2 {
  color: var(--white) !important;
}
.bg-navy .section-badge {
  background: rgba(201,162,39,.12);
  border-color: rgba(201,162,39,.25);
  color: var(--gold);
}

/* Fix: Témoignages — overlap texte/avatar */
.testimonial-card .d-flex.align-items-center {
  flex-wrap: nowrap;
}
.testimonial-avatar,
.testimonial-card [style*="border-radius:50%"] {
  flex-shrink: 0 !important;
}

/* Fix: Slider dots responsive */
.slider-dot { outline: none; }
.slider-dot:focus-visible { outline: 2px solid var(--gold); }

/* Fix: Process line — responsive mobile */
@media (max-width: 767.98px) {
  .process-line { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .process-step { width: 100%; flex-direction: row; gap: 1rem; text-align: left; }
  .process-step:not(:last-child)::after { display: none; }
  .process-icon { width: 48px; height: 48px; flex-shrink: 0; }
}

/* Fix: Accordéon FAQ — texte noir sur fond blanc */
.accordion-bd .accordion-body { color: var(--text-muted); }
.accordion-bd .accordion-button:focus { box-shadow: none; }

/* Fix: Contact form — bouton submit visible */
#contactForm button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .85rem;
  font-size: .95rem;
}

/* Fix: Sidebar overlay mobile */
#sidebarOverlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 299;
  display: none;
}
#sidebarOverlay.show { display: block; }

/* Fix: Form was-validated styling */
.was-validated .form-control:invalid,
.was-validated .form-select:invalid { border-color: var(--danger); }
.was-validated .form-control:valid,
.was-validated .form-select:valid   { border-color: var(--success); }
.was-validated .invalid-feedback    { display: block; color: var(--danger); font-size: .8rem; margin-top: .25rem; }

/* ============================================================
   CORRECTIONS COMPLÈTES v3.0 — Audit professionnel
   ============================================================ */

/* ── Fix 1: btn-nav-primary GLOBAL (pas seulement dans navbar) ── */
.btn-nav-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .4rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  font-size: .88rem;
  padding: .55rem 1.35rem !important;
  border-radius: 8px !important;
  border: none !important;
  box-shadow: var(--shadow-gold) !important;
  transition: var(--transition) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn-nav-primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 36px rgba(201,162,39,.4) !important;
  color: var(--navy) !important;
}

/* ── Fix 2: btn-bd-primary — forcer display/couleur même si Bootstrap override ── */
.btn-bd-primary,
a.btn-bd-primary {
  display: inline-flex !important;
  align-items: center !important;
  gap: .5rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  border: none !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
.btn-bd-primary:hover,
a.btn-bd-primary:hover {
  color: var(--navy) !important;
  transform: translateY(-2px) !important;
}

/* ── Fix 3: Témoignages — no overlap ── */
.testimonial-card .d-flex.align-items-center {
  flex-wrap: nowrap !important;
  gap: 1rem;
}
.testimonial-card .d-flex.align-items-start {
  flex-wrap: nowrap !important;
  gap: .75rem;
}
.testimonial-card .testimonial-avatar,
.testimonial-card [style*="border-radius: 50%"],
.testimonial-card [style*="border-radius:50%"] {
  flex-shrink: 0 !important;
  min-width: 46px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.testimonial-card > p,
.testimonial-card > div > p {
  flex: 1;
}

/* ── Fix 4: Navbar mobile — responsive propre ── */
@media (max-width: 991.98px) {
  .navbar-bd .navbar-collapse {
    background: rgba(10,31,68,.98);
    border-radius: 0 0 16px 16px;
    padding: .75rem 1rem 1rem;
    border-top: 1px solid rgba(201,162,39,.15);
    margin-top: .25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
  }
  .navbar-bd .nav-link::after { display: none !important; }
  .navbar-bd .navbar-nav { gap: 0 !important; }
  .navbar-bd .d-flex.align-items-center.gap-2 {
    flex-direction: column;
    align-items: stretch !important;
    gap: .5rem !important;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(255,255,255,.06);
  }
  .btn-nav-outline,
  .btn-nav-primary {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: .65rem 1rem !important;
  }
  .navbar-bd .dropdown-menu {
    background: rgba(255,255,255,.05) !important;
    border: 1px solid rgba(201,162,39,.15) !important;
    border-radius: 8px !important;
    padding: .5rem;
  }
  .navbar-bd .dropdown-item {
    color: rgba(255,255,255,.75) !important;
    border-radius: 6px !important;
    padding: .5rem .75rem !important;
    font-size: .85rem;
  }
  .navbar-bd .dropdown-item:hover {
    background: rgba(201,162,39,.1) !important;
    color: var(--gold) !important;
  }
}

/* ── Fix 5: Simulateur prêt — lisibilité forcée ── */
#simulateur .form-range { width: 100%; display: block; }
#simulateur .form-control,
#simulateur .form-select {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  color: #fff !important;
}
.bg-gradient-navy h2,
.bg-gradient-navy h3,
.bg-gradient-navy label,
.bg-gradient-navy span,
.bg-gradient-navy p {
  color: inherit;
}

/* ── Fix 6: Section témoignages grille responsive ── */
@media (max-width: 767.98px) {
  .testimonial-card {
    padding: 1.25rem !important;
  }
  .testimonial-card .d-flex.align-items-start {
    flex-wrap: wrap !important;
  }
  .testimonials-slider { min-height: auto !important; }
}

/* ── Fix 7: Pages dons ── */
.don-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
}
.don-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201,162,39,.25);
}
.don-progress-bar {
  height: 6px;
  background: var(--gray-100);
  border-radius: 3px;
  overflow: hidden;
}
.don-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 3px;
  transition: width 1s ease;
}

/* ── Fix 8: Page Qui sommes nous ── */
.about-value-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}
.about-value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201,162,39,.2);
}
.about-value-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, rgba(201,162,39,.1), rgba(201,162,39,.2));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--gold);
  margin: 0 auto 1.25rem;
}

/* ── Fix 9: KYC menu client / confirmation ── */
.kyc-confirm-banner {
  background: linear-gradient(135deg, rgba(28,184,126,.08), rgba(28,184,126,.03));
  border: 1px solid rgba(28,184,126,.2);
  border-radius: var(--bd-radius);
  padding: 1.5rem;
  text-align: center;
}
.kyc-confirm-icon {
  font-size: 3rem;
  color: var(--bd-success);
  display: block;
  margin-bottom: .75rem;
}

/* ── Fix 10: Bouton "Voir tous les moyens de recharge" ── */
.btn-bd-outline,
a.btn-bd-outline {
  display: inline-flex !important;
  align-items: center !important;
  gap: .5rem;
  background: transparent !important;
  color: var(--gold) !important;
  border: 1.5px solid var(--gold) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
.btn-bd-outline:hover,
a.btn-bd-outline:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
  transform: translateY(-2px) !important;
}

/* ── Fix 11: Sections dark bg — btn-bd-white ── */
.btn-bd-white,
a.btn-bd-white {
  display: inline-flex !important;
  align-items: center !important;
  gap: .5rem;
  background: var(--white) !important;
  color: var(--navy) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
.btn-bd-white:hover,
a.btn-bd-white:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
  transform: translateY(-2px) !important;
}

/* ── Fix 12: Admin KYC buttons ── */
.kyc-action-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.kyc-btn-valider {
  background: rgba(5,150,105,.1);
  color: #059669;
  border: 1px solid rgba(5,150,105,.2);
}
.kyc-btn-valider:hover { background: #059669; color: white; }
.kyc-btn-refuser {
  background: rgba(220,38,38,.08);
  color: #dc2626;
  border: 1px solid rgba(220,38,38,.15);
}
.kyc-btn-refuser:hover { background: #dc2626; color: white; }
