/* ══════════════════════════════════════════════
   TRADING GOLD ACADEMY — Global Stylesheet
   Thème: Blanc/Bleu Royal + Or/Gold Premium
   ══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=DM+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  /* ── Palette Principale ── */
  --gold-light:    #F5C842;
  --gold:          #D4A017;
  --gold-deep:     #B8860B;
  --gold-shine:    #FFE082;

  --blue-sky:      #E8F4FD;
  --blue-light:    #BFDFFF;
  --blue:          #1565C0;
  --blue-mid:      #1A3F8F;
  --blue-deep:     #0D2257;
  --blue-navy:     #071540;

  --white:         #FFFFFF;
  --off-white:     #F8FBFF;
  --glass:         #FFFFFF;
  --glass-border:  rgba(255,255,255,0.5);

  --text-dark:     #0D1B3E;
  --text-mid:      #2B4A8A;
  --text-light:    #5B7FBA;
  --text-gold:     #9A6F00;

  --shadow-blue:   0 8px 40px rgba(21,101,192,0.18);
  --shadow-gold:   0 8px 40px rgba(212,160,23,0.25);
  --shadow-card:   0 4px 24px rgba(13,27,62,0.10);

  /* ── Typography ── */
  --font-display:  'Playfair Display', serif;
  --font-body:     'DM Sans', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  /* ── Surface tokens (Light) ── */
  --surface-bg:        #FFFFFF;
  --surface-body:      linear-gradient(160deg, #FFFFFF 0%, #EEF6FF 35%, #F5FAFF 55%, #E8F4FD 80%, #F0F8FF 100%);
  --surface-nav:       rgba(255,255,255,0.97);
  --surface-nav-border:rgba(21,101,192,0.12);
  --surface-sidebar:   rgba(255,255,255,0.98);
  --surface-card:      #FFFFFF;
  --surface-card-border:rgba(21,101,192,0.10);
  --surface-input:     #FFFFFF;
  --surface-hover:     rgba(21,101,192,0.06);
  --surface-toast:     rgba(255,255,255,0.92);
  --text-primary:      #0D1B3E;
  --text-secondary:    #2B4A8A;
  --text-muted:        #5B7FBA;
  --border-subtle:     rgba(21,101,192,0.10);
}

/* ══════════════════════════════════════════════
   THÈME SOMBRE — Application sur html/body
   ══════════════════════════════════════════════ */
/* html[data-theme="dark"] a spécificité (0,1,1) = 11 vs :root (0,1,0) = 10
   → gagne sur les :root inline des pages courses/dashboard */
html[data-theme="dark"],
html[data-theme="dark"] :root {
  --surface-bg:         #0B0F1A;
  --surface-nav:        rgba(11,15,26,0.92);
  --surface-nav-border: rgba(212,160,23,0.18);
  --surface-sidebar:    rgba(10,14,25,0.97);
  --surface-card:       rgba(255,255,255,0.04);
  --surface-card-border:rgba(255,255,255,0.08);
  --surface-input:      rgba(255,255,255,0.06);
  --surface-hover:      rgba(212,160,23,0.09);
  --surface-toast:      rgba(13,18,32,0.96);
  --text-primary:       #E8F0FF;
  --text-secondary:     #A8BFE8;
  --text-muted:         #6B85B5;
  --border-subtle:      rgba(255,255,255,0.08);

  --blue-sky:           #0D1830;
  --blue-light:         #1A2F5A;
  --off-white:          #0E1525;
  --white:              #E8F0FF;
  --text-dark:          #E8F0FF;
  --text-mid:           #A8BFE8;
  --text-light:         #6B85B5;
  --text-gold:          #D4A017;
  --glass:              rgba(255,255,255,0.06);
  --glass-border:       rgba(255,255,255,0.10);
  --shadow-blue:        0 8px 40px rgba(0,0,0,0.4);
  --shadow-gold:        0 8px 40px rgba(212,160,23,0.20);
  --shadow-card:        0 4px 24px rgba(0,0,0,0.35);
}

/* ── Background principal dark ── */
[data-theme="dark"] html,
[data-theme="dark"] body {
  background-color: #0B0F1A;
}
[data-theme="dark"] body::before {
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(21,101,192,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(212,160,23,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 70% 40% at 50% 80%, rgba(21,101,192,0.08) 0%, transparent 60%),
    linear-gradient(160deg, #0B0F1A 0%, #0E1525 35%, #111A2E 55%, #0D1830 80%, #0B1220 100%);
}
[data-theme="dark"] body::after {
  background:
    radial-gradient(ellipse 50% 35% at 75% 15%, rgba(212,160,23,0.07) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 15% 70%, rgba(21,101,192,0.10) 0%, transparent 50%),
    radial-gradient(ellipse 45% 25% at 90% 80%, rgba(100,181,246,0.05) 0%, transparent 50%);
}

/* ═══════════════════════════════════════════════
   PILL SWITCH — Toggle Thème
   ═══════════════════════════════════════════════ */
.theme-toggle {
  position: relative;
  width: 56px;
  height: 28px;
  border-radius: 100px;
  background: rgba(21,101,192,0.12);
  border: 1.5px solid rgba(21,101,192,0.20);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  outline: none;
  padding: 0;
}
.theme-toggle:hover {
  box-shadow: 0 0 0 3px rgba(212,160,23,0.18);
  border-color: var(--gold);
}
/* Curseur glissant */
.theme-toggle::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  box-shadow: 0 2px 8px rgba(21,101,192,0.40);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), background 0.35s ease, box-shadow 0.35s ease;
  z-index: 1;
}
/* Icônes intégrées */
.theme-toggle .tt-moon,
.theme-toggle .tt-sun {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 0;
}
.theme-toggle .tt-moon {
  left: 6px;
  color: rgba(255,255,255,0.55);
  opacity: 1;
}
.theme-toggle .tt-sun {
  right: 5px;
  color: rgba(212,160,23,0.70);
  opacity: 1;
}

/* ── État LIGHT (par défaut) : curseur à gauche → on voit la lune à gauche (ce qu'on est) ──
   Convention : icône côté curseur = mode actuel ── */

/* ── État DARK : curseur glisse à droite ── */
[data-theme="dark"] .theme-toggle {
  background: rgba(212,160,23,0.15);
  border-color: rgba(212,160,23,0.30);
}
[data-theme="dark"] .theme-toggle::before {
  transform: translateX(28px);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: 0 2px 10px rgba(212,160,23,0.50);
}
[data-theme="dark"] .theme-toggle:hover {
  box-shadow: 0 0 0 3px rgba(212,160,23,0.22);
  border-color: var(--gold-light);
}

*, *::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-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: color 0.3s, background 0.3s;
}

/* ══════════════════════════════════════════════
   ANIMATED BACKGROUND — Dégradé Bleu Animé
   ══════════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--surface-body);
  animation: bgShift 12s ease-in-out infinite alternate;
  transition: background 0.5s;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 35% at 75% 15%, rgba(212,160,23,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 15% 70%, rgba(21,101,192,0.07) 0%, transparent 50%),
    radial-gradient(ellipse 45% 25% at 90% 80%, rgba(100,181,246,0.09) 0%, transparent 50%);
  animation: bgShift2 16s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0%   { opacity: 1; transform: scale(1) translate(0,0); }
  33%  { opacity: 0.9; transform: scale(1.03) translate(-1%,1%); }
  66%  { opacity: 1; transform: scale(0.98) translate(1%,-0.5%); }
  100% { opacity: 0.95; transform: scale(1.02) translate(-0.5%,0.5%); }
}
@keyframes bgShift2 {
  0%   { transform: translate(0,0) rotate(0deg); opacity: 0.8; }
  50%  { transform: translate(2%,-1%) rotate(1deg); opacity: 1; }
  100% { transform: translate(-1%,2%) rotate(-0.5deg); opacity: 0.85; }
}

/* Orbs flottants */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
  animation: floatOrb linear infinite;
}
.orb-1 { width:500px; height:500px; background:rgba(21,101,192,0.07); top:-100px; left:-150px; animation-duration:20s; }
.orb-2 { width:350px; height:350px; background:rgba(212,160,23,0.08); top:30%; right:-80px; animation-duration:25s; animation-delay:-8s; }
.orb-3 { width:400px; height:400px; background:rgba(100,181,246,0.09); bottom:-80px; left:30%; animation-duration:18s; animation-delay:-5s; }
.orb-4 { width:250px; height:250px; background:rgba(212,160,23,0.06); bottom:20%; right:20%; animation-duration:22s; animation-delay:-12s; }

@keyframes floatOrb {
  0%   { transform: translate(0,0) scale(1); }
  25%  { transform: translate(30px,-20px) scale(1.05); }
  50%  { transform: translate(-20px,30px) scale(0.97); }
  75%  { transform: translate(15px,15px) scale(1.03); }
  100% { transform: translate(0,0) scale(1); }
}

/* ══════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: var(--surface-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-nav-border);
  box-shadow: 0 2px 20px rgba(21,101,192,0.08);
  animation: navSlide 0.6s ease forwards;
  transition: background 0.3s, border-color 0.3s;
}
@keyframes navSlide { from{transform:translateY(-100%);opacity:0} to{transform:translateY(0);opacity:1} }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
/* Logo image principal dans la navbar */
.nav-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  /* Le logo a un fond transparent — fonctionne sur thème clair et sombre */
}
/* Dark mode : légère inversion pour que le logo bleu marine reste lisible */
[data-theme="dark"] .nav-logo-img {
  filter: brightness(1.15);
}
/* Ancienne règle conservée pour compatibilité */
.nav-logo img { height: 40px; width: auto; object-fit: contain; }
.nav-brand {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}
.nav-brand span { color: var(--gold); display:block; font-size:11px; font-weight:600; letter-spacing:0.12em; text-transform:uppercase; font-family:var(--font-body); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  list-style: none;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  width: 0; height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--blue); background: rgba(21,101,192,0.06); }
.nav-links a:hover::after, .nav-links a.active::after { width: 60%; }
.nav-links a.active { color: var(--blue); background: rgba(21,101,192,0.07); }

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn-nav-login {
  padding: 9px 20px;
  border-radius: 10px;
  border: 1.5px solid rgba(21,101,192,0.25);
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font-body);
  text-decoration: none;
}
.btn-nav-login:hover { background: rgba(21,101,192,0.07); border-color: var(--blue); }

.btn-nav-start {
  padding: 9px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: white;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-body);
  text-decoration: none;
  box-shadow: 0 3px 16px rgba(212,160,23,0.35);
  position: relative;
  overflow: hidden;
}
.btn-nav-start::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-nav-start:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(212,160,23,0.45); }
.btn-nav-start:hover::before { opacity: 1; }

/* ══════════════════════════════════════════════
   BOUTONS GLOBAUX
   ══════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: white;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 28px rgba(21,101,192,0.3);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-primary::after { content:''; position:absolute; inset:0; background:linear-gradient(135deg,rgba(255,255,255,0.15),transparent); opacity:0; transition:opacity 0.3s; }
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 10px 36px rgba(21,101,192,0.4); }
.btn-primary:hover::after { opacity:1; }

.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-deep));
  color: white;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 6px 28px rgba(212,160,23,0.35);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-gold::before { content:''; position:absolute; top:0; left:-100%; width:100%; height:100%; background:linear-gradient(90deg,transparent,rgba(255,255,255,0.3),transparent); transition:left 0.5s; }
.btn-gold:hover::before { left:100%; }
.btn-gold:hover { transform:translateY(-2px); box-shadow:0 10px 40px rgba(212,160,23,0.5); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px;
  border-radius: 14px;
  background: transparent;
  color: var(--blue);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border: 2px solid rgba(21,101,192,0.3);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-outline:hover { background:rgba(21,101,192,0.06); border-color:var(--blue); }

/* ══════════════════════════════════════════════
   CARDS GLASSMORPHISM
   ══════════════════════════════════════════════ */
.card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(21,101,192,0.14);
  border-color: rgba(21,101,192,0.2);
}

.card-gold {
  background: linear-gradient(145deg, rgba(255,248,220,0.85), rgba(255,255,255,0.75));
  border: 1px solid rgba(212,160,23,0.25);
}
.card-gold:hover { box-shadow: 0 20px 60px rgba(212,160,23,0.18); border-color:rgba(212,160,23,0.4); }

/* ══════════════════════════════════════════════
   ICÔNES SVG ANIMÉES (inline icons)
   ══════════════════════════════════════════════ */
.icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.icon-blue { background: linear-gradient(135deg, rgba(21,101,192,0.12), rgba(21,101,192,0.06)); }
.icon-gold { background: linear-gradient(135deg, rgba(212,160,23,0.15), rgba(245,200,66,0.08)); }
.icon-wrapper svg { width:26px; height:26px; transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1); }
.card:hover .icon-wrapper svg { transform: scale(1.2) rotate(-5deg); }

/* Pulse ring sur icon */
.icon-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(21,101,192,0.15);
  animation: iconPulse 3s ease-in-out infinite;
}
.icon-gold::after { box-shadow: inset 0 0 0 1px rgba(212,160,23,0.2); }
@keyframes iconPulse { 0%,100%{opacity:0.5;transform:scale(1)} 50%{opacity:1;transform:scale(1.04)} }

/* ══════════════════════════════════════════════
   PROGRESS BAR
   ══════════════════════════════════════════════ */
.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(21,101,192,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  animation: progressAnimate 1.2s ease forwards;
  transform-origin: left;
}
@keyframes progressAnimate { from{transform:scaleX(0)} to{transform:scaleX(1)} }

/* ══════════════════════════════════════════════
   BADGE / CHIP
   ══════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-blue { background:rgba(21,101,192,0.1); color:var(--blue); border:1px solid rgba(21,101,192,0.2); }
.badge-gold { background:rgba(212,160,23,0.12); color:var(--gold-deep); border:1px solid rgba(212,160,23,0.25); }
.badge-green { background:rgba(16,185,129,0.1); color:#059669; border:1px solid rgba(16,185,129,0.2); }
.badge-free { background:linear-gradient(135deg,rgba(16,185,129,0.1),rgba(16,185,129,0.05)); color:#059669; border:1px solid rgba(16,185,129,0.25); }

/* ══════════════════════════════════════════════
   SECTION LABEL
   ══════════════════════════════════════════════ */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(212,160,23,0.12), rgba(245,200,66,0.06));
  border: 1px solid rgba(212,160,23,0.25);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.section-eyebrow svg { width:14px; height:14px; animation: spinSlow 8s linear infinite; }
@keyframes spinSlow { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: var(--blue-deep);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-title .highlight {
  position: relative;
  color: var(--blue);
}
.section-title .highlight::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  animation: underlineGrow 0.8s 0.3s ease both;
  transform-origin: left;
}
@keyframes underlineGrow { from{transform:scaleX(0)} to{transform:scaleX(1)} }
.section-title .gold { color: var(--gold); }

/* ══════════════════════════════════════════════
   SIDEBAR APP (pages internes)
   ══════════════════════════════════════════════ */
.app-wrapper {
  display: flex;
  min-height: 100vh;
  padding-top: 68px;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--surface-sidebar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-subtle);
  position: fixed;
  top: 68px; bottom: 0; left: 0;
  overflow-y: auto;
  padding: 20px 12px;
  display: flex; flex-direction: column;
  animation: sideSlide 0.5s ease forwards;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
}
@keyframes sideSlide { from{transform:translateX(-100%)} to{transform:translateX(0)} }

.sidebar-logo-mini {
  display: flex; align-items: center; justify-content: center;
  padding: 4px 10px 20px;
  border-bottom: 1px solid rgba(21,101,192,0.1);
  margin-bottom: 16px;
}
/* Logo réel dans les sidebars desktop (courses, dashboard) */
.sidebar-logo-mini-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}
/* Ancienne règle générique */
.sidebar-logo-mini img { height: 36px; width: auto; object-fit: contain; }
/* Masquer le texte "Trading Gold Academy" — le logo fait office de branding */
.sidebar-brand-mini { display: none; }

.nav-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 12px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s;
  text-decoration: none;
  position: relative;
  margin-bottom: 2px;
}
.nav-item:hover { background: var(--surface-hover); color: var(--gold); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(21,101,192,0.12), rgba(21,101,192,0.06));
  color: var(--blue);
  font-weight: 700;
  border: 1px solid rgba(21,101,192,0.15);
}
[data-theme="dark"] .nav-item.active {
  background: linear-gradient(135deg, rgba(212,160,23,0.15), rgba(212,160,23,0.07));
  color: var(--gold);
  border-color: rgba(212,160,23,0.20);
}
.nav-item .nav-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}
.nav-item .nav-icon svg { width: 18px; height: 18px; }
.nav-item:hover .nav-icon, .nav-item.active .nav-icon { transform: scale(1.12); }
.nav-item.active .nav-icon { background: linear-gradient(135deg, rgba(21,101,192,0.2), rgba(21,101,192,0.1)); }

.nav-item .nav-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: white;
  font-size: 11px;
  font-weight: 700;
  animation: badgePop 0.4s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes badgePop { from{transform:scale(0)} to{transform:scale(1)} }

.sidebar-user {
  margin-top: auto;
  padding: 14px 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s;
}
.sidebar-user:hover { background: var(--surface-hover); }
.user-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  border: 2px solid rgba(212,160,23,0.4);
  animation: avatarGlow 3s ease-in-out infinite alternate;
}
@keyframes avatarGlow { 0%{box-shadow:0 0 0 0 rgba(212,160,23,0)} 100%{box-shadow:0 0 0 4px rgba(212,160,23,0.15)} }
.user-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.user-plan { font-size: 11px; color: var(--gold-deep); font-weight: 600; }

/* Main content offset */
.page-content {
  margin-left: 260px;
  padding: 28px 32px;
  flex: 1;
  min-height: calc(100vh - 68px);
}

/* ══════════════════════════════════════════════
   TABLE
   ══════════════════════════════════════════════ */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: 12px 16px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}
.data-table td {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s;
}
.data-table tr:hover td { background: var(--surface-hover); }

/* ══════════════════════════════════════════════
   TOAST NOTIFICATION
   ══════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  padding: 14px 20px;
  background: var(--surface-toast);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: 14px;
  font-size: 14px; font-weight: 600;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 10px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(21,101,192,0.15);
  transform: translateY(20px); opacity: 0;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.toast svg { width: 20px; height: 20px; }

/* ══════════════════════════════════════════════
   ANIMATIONS ENTRÉE
   ══════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s ease forwards;
}
@keyframes fadeUp { to{opacity:1;transform:translateY(0)} }

.fade-up:nth-child(1) { animation-delay: 0.05s; }
.fade-up:nth-child(2) { animation-delay: 0.12s; }
.fade-up:nth-child(3) { animation-delay: 0.19s; }
.fade-up:nth-child(4) { animation-delay: 0.26s; }
.fade-up:nth-child(5) { animation-delay: 0.33s; }
.fade-up:nth-child(6) { animation-delay: 0.40s; }

.scale-in {
  opacity: 0;
  transform: scale(0.92);
  animation: scaleIn 0.6s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes scaleIn { to{opacity:1;transform:scale(1)} }

/* ══════════════════════════════════════════════
   GOLD SEPARATOR
   ══════════════════════════════════════════════ */
.gold-line {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 12px 0 20px;
  animation: lineGrow 0.8s ease forwards;
  transform-origin: left;
}
@keyframes lineGrow { from{transform:scaleX(0)} to{transform:scaleX(1)} }

/* ══════════════════════════════════════════════
   COUNTER NUMBERS
   ══════════════════════════════════════════════ */
.kpi-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--blue-deep);
  letter-spacing: -0.03em;
  line-height: 1;
}
.kpi-value.gold { color: var(--gold-deep); }
.kpi-label { font-size: 12px; color: var(--text-light); font-weight: 500; margin-top: 4px; }
.kpi-change {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 700;
  padding: 3px 9px; border-radius: 100px; margin-top: 8px;
}
.kpi-up { background:rgba(16,185,129,0.1); color:#059669; }
.kpi-down { background:rgba(239,68,68,0.1); color:#DC2626; }

/* ══════════════════════════════════════════════
   MOBILE / RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0) !important; }
  .page-content { margin-left: 0; padding: 20px 16px; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .navbar { padding: 0 16px; }
  .btn-nav-login { display: none; }
}

/* ══════════════════════════════════════════════
   DARK MODE — Navbar & éléments globaux (toutes pages)
   ══════════════════════════════════════════════ */
[data-theme="dark"] .navbar {
  background: rgba(11,15,26,0.93) !important;
  border-bottom-color: rgba(212,160,23,0.18) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.35) !important;
}
[data-theme="dark"] .nav-brand { color: var(--text-primary) !important; }
[data-theme="dark"] .nav-links a { color: var(--text-secondary) !important; }
[data-theme="dark"] .nav-links a:hover {
  color: var(--gold) !important;
  background: rgba(212,160,23,0.09) !important;
}
[data-theme="dark"] .nav-links a.active {
  color: var(--gold) !important;
  background: rgba(212,160,23,0.10) !important;
}
[data-theme="dark"] .btn-nav-login {
  color: var(--gold-light) !important;
  border-color: rgba(212,160,23,0.28) !important;
}
[data-theme="dark"] .btn-nav-login:hover {
  background: rgba(212,160,23,0.08) !important;
  border-color: var(--gold) !important;
}
[data-theme="dark"] .hamburger {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.10) !important;
}
[data-theme="dark"] .hamburger span { background: var(--text-primary) !important; }
[data-theme="dark"] .hamburger:hover { background: rgba(212,160,23,0.10) !important; }

/* Sidebar mobile dark */
[data-theme="dark"] .mob-sidebar {
  background: #0D1220 !important;
  box-shadow: 8px 0 48px rgba(0,0,0,0.6) !important;
}
[data-theme="dark"] .mob-sidebar-header {
  background: linear-gradient(135deg, #060c18, #0D1830) !important;
  border-bottom-color: rgba(212,160,23,0.15) !important;
}
[data-theme="dark"] .mob-nav-item { color: var(--text-secondary) !important; }
[data-theme="dark"] .mob-nav-item:hover,
[data-theme="dark"] .mob-nav-item.active {
  background: rgba(212,160,23,0.09) !important;
  color: var(--gold) !important;
}
[data-theme="dark"] .mob-nav-subitem { color: var(--text-muted) !important; }
[data-theme="dark"] .mob-nav-subitem:hover {
  background: rgba(212,160,23,0.07) !important;
  color: var(--gold) !important;
}
[data-theme="dark"] .mob-sidebar-auth { border-top-color: rgba(255,255,255,0.07) !important; }
[data-theme="dark"] .mob-sidebar-info {
  border-top-color: rgba(255,255,255,0.06) !important;
  color: var(--text-muted) !important;
}
[data-theme="dark"] .mob-social-btn {
  background: rgba(255,255,255,0.06) !important;
  color: var(--text-secondary) !important;
  border-color: rgba(255,255,255,0.09) !important;
}

/* Glassmorphism card générique */
[data-theme="dark"] .card {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.09) !important;
}
/* Sidebar interne (dashboard) */
[data-theme="dark"] .sidebar {
  background: rgba(10,14,25,0.97) !important;
  border-right-color: rgba(212,160,23,0.12) !important;
}
/* Toast notification */
[data-theme="dark"] .toast {
  background: rgba(13,18,32,0.96) !important;
  border-color: rgba(212,160,23,0.25) !important;
  color: var(--text-primary) !important;
}
/* Modal global */
[data-theme="dark"] .tga-modal {
  background: #111827 !important;
  border-color: rgba(255,255,255,0.10) !important;
  color: var(--text-primary) !important;
}
[data-theme="dark"] .kpi-value { color: var(--text-primary) !important; }
[data-theme="dark"] .kpi-value.gold { color: var(--gold) !important; }

/* ══════════════════════════════════════════════
   TOPBAR DARK MODE
   ══════════════════════════════════════════════ */
[data-theme="dark"] .topbar {
  background: #060B18 !important;
  border-bottom: 1px solid rgba(212,160,23,0.12) !important;
  color: rgba(168,191,232,0.75) !important;
}
[data-theme="dark"] .topbar-center,
[data-theme="dark"] .topbar-right { color: rgba(168,191,232,0.6) !important; }
[data-theme="dark"] .topbar-social {
  background: rgba(255,255,255,0.06) !important;
  color: rgba(168,191,232,0.65) !important;
}
[data-theme="dark"] .topbar-social:hover {
  background: rgba(212,160,23,0.12) !important;
  color: var(--gold-light, #F5C842) !important;
}
[data-theme="dark"] .topbar-sep { color: rgba(255,255,255,0.12) !important; }
[data-theme="dark"] .topbar-login {
  background: rgba(212,160,23,0.15) !important;
  color: var(--gold-light, #F5C842) !important;
  border: 1px solid rgba(212,160,23,0.30) !important;
}
[data-theme="dark"] .topbar-login:hover {
  background: rgba(212,160,23,0.25) !important;
}
[data-theme="dark"] .topbar-register {
  background: rgba(212,160,23,0.10) !important;
  color: var(--gold-light, #F5C842) !important;
  border-color: rgba(212,160,23,0.25) !important;
}
[data-theme="dark"] .topbar-auth-btn { color: rgba(168,191,232,0.7) !important; }

/* Nav dropdown menu */
[data-theme="dark"] .nav-dropdown-menu {
  background: #0E1525 !important;
  border-color: rgba(255,255,255,0.10) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5) !important;
}
[data-theme="dark"] .nav-dropdown-item {
  color: var(--text-secondary, #A8BFE8) !important;
}
[data-theme="dark"] .nav-dropdown-item:hover {
  background: rgba(212,160,23,0.10) !important;
  color: var(--gold, #D4A017) !important;
}


/* ══════════════════════════════════════════════════════════
   HAMBURGER — bouton menu mobile (visible sur toutes les pages)
══════════════════════════════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(21,101,192,0.07);
  border: 1.5px solid rgba(21,101,192,0.15);
  cursor: pointer;
  transition: background 0.22s, transform 0.22s, border-color 0.22s;
  margin-right: 8px;
  flex-shrink: 0;
  padding: 0;
  outline: none;
}
.hamburger:hover {
  background: rgba(21,101,192,0.14);
  border-color: rgba(21,101,192,0.28);
  transform: scale(1.06);
}
.hamburger span {
  display: block;
  width: 19px; height: 2px;
  background: var(--blue-deep, #0D2257);
  border-radius: 2px;
  transition: transform 0.36s cubic-bezier(0.68,-0.55,0.27,1.55), opacity 0.24s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

[data-theme="dark"] .hamburger {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
[data-theme="dark"] .hamburger:hover {
  background: rgba(212,160,23,0.12);
  border-color: rgba(212,160,23,0.25);
}
[data-theme="dark"] .hamburger span { background: #e2e8f0; }

/* ══════════════════════════════════════════════════════════
   OVERLAY SIDEBAR — fond sombre derrière le menu mobile
══════════════════════════════════════════════════════════ */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(13,27,62,0.52);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9800;
  cursor: pointer;
}
.sidebar-overlay.active {
  display: block;
  animation: overlayFadeIn 0.28s ease;
}
@keyframes overlayFadeIn { from{opacity:0} to{opacity:1} }

/* ══════════════════════════════════════════════════════════
   SIDEBAR MOBILE — panneau latéral hamburger
══════════════════════════════════════════════════════════ */
.mob-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 300px;
  background: #fff;
  z-index: 9900;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 8px 0 48px rgba(13,27,62,0.18);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
[data-theme="dark"] .mob-sidebar { background: #0f172a; }

.mob-sidebar.open { transform: translateX(0); }

/* Header */
.mob-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(21,101,192,0.12);
  background: linear-gradient(135deg, #0D2257 0%, #1565C0 100%);
  flex-shrink: 0;
}
.mob-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-display,'Playfair Display',serif);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}
.mob-sidebar-brand strong { color: #D4A017; }
/* Image réelle de l'icône TGA dans la sidebar */
.mob-sidebar-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  /* Fond transparent — visible sur fond sombre de la sidebar */
  filter: brightness(1.1);
}
/* Ancienne règle conservée si jamais l'image ne charge pas */
.mob-sidebar-logo {
  width: 38px; height: 38px;
  background: linear-gradient(135deg,#1565C0,#D4A017);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: #fff;
  border: 2px solid rgba(255,255,255,0.18);
  flex-shrink: 0;
}
.mob-sidebar-close {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff;
  transition: background 0.2s;
  flex-shrink: 0;
}
.mob-sidebar-close:hover { background: rgba(255,255,255,0.22); }

/* Navigation */
.mob-sidebar-nav {
  padding: 14px 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mob-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-mid,#475569);
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  text-align: left;
  line-height: 1.3;
}
.mob-nav-item:hover { background: rgba(21,101,192,0.07); color: var(--blue,#1565C0); }
.mob-nav-item.active {
  background: rgba(21,101,192,0.10);
  color: var(--blue,#1565C0);
  font-weight: 700;
}
.mob-nav-item svg { flex-shrink: 0; opacity: 0.75; }
.mob-nav-item.active svg { opacity: 1; }

[data-theme="dark"] .mob-nav-item { color: #94a3b8; }
[data-theme="dark"] .mob-nav-item:hover,
[data-theme="dark"] .mob-nav-item.active { background: rgba(212,160,23,0.10); color: #D4A017; }

/* Sous-menu accordéon */
.mob-chevron {
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.3s;
  opacity: 0.5;
}
.mob-nav-group.open > .mob-nav-group-trigger .mob-chevron { transform: rotate(180deg); }
.mob-nav-submenu {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 0 0 44px;
  transition: max-height 0.34s cubic-bezier(0.4,0,0.2,1), opacity 0.26s ease, padding 0.28s;
}
.mob-nav-group.open .mob-nav-submenu {
  max-height: 400px;
  opacity: 1;
  padding: 4px 0 6px 44px;
}
.mob-nav-subitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mid,#475569);
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.mob-nav-subitem:hover { background: rgba(21,101,192,0.06); color: var(--blue,#1565C0); }
.mob-sub-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #D4A017;
  flex-shrink: 0;
}
[data-theme="dark"] .mob-nav-subitem { color: #94a3b8; }
[data-theme="dark"] .mob-nav-subitem:hover { color: #D4A017; background: rgba(212,160,23,0.08); }

/* Séparateur décoratif */
.mob-nav-sep {
  height: 1px;
  background: rgba(21,101,192,0.07);
  margin: 6px 14px;
}
[data-theme="dark"] .mob-nav-sep { background: rgba(255,255,255,0.06); }

/* Boutons auth en bas */
.mob-sidebar-auth {
  padding: 14px;
  border-top: 1px solid rgba(21,101,192,0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
[data-theme="dark"] .mob-sidebar-auth { border-top-color: rgba(255,255,255,0.07); }

.mob-auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.22s, box-shadow 0.22s, background 0.22s;
  width: 100%;
}
.mob-auth-login {
  background: rgba(21,101,192,0.07);
  color: var(--blue,#1565C0);
  border: 1.5px solid rgba(21,101,192,0.20);
}
.mob-auth-login:hover { background: rgba(21,101,192,0.14); }
.mob-auth-register {
  background: linear-gradient(135deg,#1565C0 0%,#0D2257 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(21,101,192,0.28);
}
.mob-auth-register:hover { transform: scale(1.02); box-shadow: 0 6px 22px rgba(21,101,192,0.40); }

[data-theme="dark"] .mob-auth-login {
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
  border-color: rgba(255,255,255,0.10);
}

/* User connecté dans la sidebar */
.mob-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(21,101,192,0.05);
  border-radius: 12px;
  border: 1px solid rgba(21,101,192,0.10);
  margin-bottom: 2px;
}
[data-theme="dark"] .mob-user-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.07);
}
.mob-user-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg,#1565C0,#D4A017);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 15px;
  flex-shrink: 0;
}
.mob-user-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark,#0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
[data-theme="dark"] .mob-user-name { color: #f1f5f9; }
.mob-user-plan {
  font-size: 12px;
  color: #D4A017;
  font-weight: 600;
}

/* Pied info + réseaux */
.mob-sidebar-info {
  padding: 12px 16px 18px;
  border-top: 1px solid rgba(21,101,192,0.06);
  background: rgba(21,101,192,0.015);
  flex-shrink: 0;
}
[data-theme="dark"] .mob-sidebar-info {
  background: rgba(255,255,255,0.02);
  border-top-color: rgba(255,255,255,0.05);
}
.mob-info-email {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-light,#94a3b8);
  margin-bottom: 12px;
}
.mob-sidebar-socials { display: flex; gap: 8px; }
.mob-social-btn {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(21,101,192,0.07);
  border: 1px solid rgba(21,101,192,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-mid,#1565C0);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.mob-social-btn:hover { background: rgba(21,101,192,0.14); color: var(--blue,#1565C0); }
[data-theme="dark"] .mob-social-btn {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  color: #94a3b8;
}
[data-theme="dark"] .mob-social-btn:hover { background: rgba(212,160,23,0.12); color: #D4A017; }

/* ══ RESPONSIVE — afficher hamburger + cacher nav desktop ══ */
@media (max-width: 900px) {
  .hamburger { display: flex !important; }
  .nav-links  { display: none !important; }
  .nav-desktop-only { display: none !important; }
}

/* ════════════════════════════════════════════════════
   SCROLLBAR PERSONNALISÉE TGAclass — globale
   ════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track {
  background: rgba(21,101,192,0.04);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1565C0 0%, #D4A017 100%);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #1A3F8F 0%, #B8860B 100%);
  background-clip: padding-box;
}
::-webkit-scrollbar-corner { background: transparent; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); }
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1A3F8F 0%, #B8860B 100%);
  background-clip: padding-box;
}


/* Défense spécifique du logo du footer */
.footer-rich .footer-logo-wrap {
  display: flex;
  align-items: center;
  min-height: 48px;
}
.footer-rich .footer-logo-img {
  height: 48px;
  max-height: 48px;
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
