/* =====================================================
   NeoTraderUniversity — Design System
   ===================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Raleway:wght@600;700;800;900&display=swap');

/* =====================================================
   CSS Custom Properties
   ===================================================== */
:root {
  /* Palette principale — cahier des charges */
  --bg-primary:    #0c1e22;
  --bg-secondary:  #122d34;
  --bg-card:       #122d34;
  --bg-card-deep:  #0c1e22;
  --bg-card-hover: #1a3840;
  --accent:        #657b88;
  --accent-dark:   #2c4951;
  --accent-mid:    #4a6070;
  --accent-light:  #a8abb2;
  --border:        #2c4951;
  --border-mid:    #3a5460;
  --border-light:  #3a5460;
  --text-white:    #ffffff;
  --text-primary:  #dce4e8;
  --text-muted:    #a8abb2;
  --text-soft:     #657b88;
  --text-bright:   #e2e8ea;
  /* Accents bleus — touches de couleur */
  --blue-deep:   #0A1931;
  --blue-dark:   #1A3D63;
  --blue-mid:    #4A7FA7;
  --blue-light:  #B3CFE5;
  /* États fonctionnels (formulaires, alertes) */
  --danger:  #c87070;
  --success: #6ab87a;
  --warning: #c8a46a;
  /* Typographie */
  --font-heading: 'Raleway', sans-serif;
  --font-body:    'Inter', sans-serif;
  /* Géométrie */
  --radius:    6px;
  --radius-md: 10px;
  --radius-lg: 12px;
  /* Ombres */
  --shadow:    0 2px 12px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.55);
  --transition: all 0.2s ease;
  --navbar-height: 68px;
}

/* =====================================================
   Reset & Base
   ===================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  line-height: 1.2;
  font-weight: 700;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-light); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); }

::selection { background: var(--accent); color: white; }

/* =====================================================
   Layout
   ===================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-white);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.7;
  max-width: 600px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }

/* =====================================================
   Navbar
   ===================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(18, 45, 52, 0.95);
  height: var(--navbar-height);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition);
}

.navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.5px;
  background: linear-gradient(180deg, #c8d8e4 0%, #8fa4b2 40%, #516070 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
}
.logo span {
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--text-white);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-white); background: rgba(255,255,255,0.05); }

.nav-dropdown { position: relative; }

.dropdown-trigger { display: flex; align-items: center; gap: 4px; }

.dropdown-arrow { font-size: 0.75rem; transition: transform 0.2s; }

.nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 200px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  /* Délai de fermeture pour laisser le temps de déplacer la souris */
  transition: opacity 0.18s ease 0.18s, transform 0.18s ease 0.18s;
}

/* Pont invisible qui comble le gap entre le trigger et le menu */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
  /* Pas de délai à l'ouverture */
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--text-muted);
  border-radius: 6px;
  font-size: 0.9rem;
}
.dropdown-menu a:hover { color: var(--text-white); background: rgba(255,255,255,0.05); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-spacer { height: var(--navbar-height); }

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.22s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  position: relative;
}

/* CTA principal */
.btn-primary {
  background: var(--blue-mid);
  color: #ffffff;
  border-color: var(--blue-mid);
}
.btn-primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  color: var(--blue-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(74,127,167,0.35);
}
.btn-primary:active { transform: scale(0.98); box-shadow: none; background: var(--blue-dark); border-color: var(--blue-dark); }

/* Flèche animée sur CTA */
.btn-primary .btn-arrow,
.btn-lg .btn-arrow {
  display: inline-block;
  transition: transform 0.22s ease;
}
.btn-primary:hover .btn-arrow,
.btn-lg:hover .btn-arrow { transform: translateX(4px); }

/* Secondaire */
.btn-secondary {
  background: transparent;
  border-color: var(--border-mid);
  color: var(--text-muted);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text-white);
  background: rgba(101,123,136,0.07);
}

/* Ghost — liens nav, actions légères */
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover {
  color: var(--text-white);
  background: rgba(255,255,255,0.05);
}

/* Danger — déconnexion, suppression */
.btn-danger {
  background: rgba(200,112,112,0.08);
  color: var(--danger);
  border-color: rgba(200,112,112,0.3);
}
.btn-danger:hover {
  background: rgba(200,112,112,0.15);
  border-color: var(--danger);
}

/* Succès */
.btn-success {
  background: rgba(106,184,122,0.1);
  color: var(--success);
  border-color: rgba(106,184,122,0.3);
}

/* Tailles */
.btn-lg { padding: 14px 32px; font-size: 0.95rem; border-radius: var(--radius-md); }
.btn-sm { padding: 7px 16px; font-size: 0.8rem; border-radius: var(--radius); }
.btn-xs { padding: 4px 10px; font-size: 0.75rem; border-radius: 4px; }

/* Désactivé */
.btn:disabled,
.btn[disabled] {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

/* =====================================================
   Cards
   ===================================================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Barre d'accentuation top au hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card:hover::before { opacity: 1; }
.card:hover {
  border-color: var(--border-mid);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* Carte service — accent top statique */
.card-service {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  transition: all 0.25s ease;
}
.card-service:hover {
  border-color: var(--accent);
  border-top-color: var(--accent-light);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--bg-card-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  color: var(--accent);
}

/* Séparateur sous titre de card */
.card-divider {
  width: 28px;
  height: 1px;
  background: var(--accent);
  margin: 10px 0 14px;
  opacity: 0.6;
}

.card-title { font-size: 1.1rem; font-weight: 700; color: var(--text-white); margin-bottom: 4px; }
.card-text { color: var(--text-muted); line-height: 1.75; font-size: 0.92rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 20px;
  transition: var(--transition);
}
.card-link:hover { gap: 9px; color: var(--accent-light); }

/* Toute la carte est cliquable — le ::after couvre la carte parente (position:relative) */
.card-service .card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}

/* =====================================================
   Hero
   ===================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
  padding-top: var(--navbar-height);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 600px at 15% 55%, rgba(44,73,81,0.35), transparent),
    radial-gradient(ellipse 500px 350px at 85% 15%, rgba(18,45,52,0.8), transparent),
    radial-gradient(ellipse 700px 500px at 70% 80%, rgba(12,30,34,0.5), transparent);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 620px; margin-right: auto; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.78rem;
  margin-bottom: 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: rgba(44,73,81,0.5);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2.5s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-title strong {
  background: linear-gradient(135deg, #c8d8e4 0%, #8fa4b2 50%, #657b88 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.75;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }

.hero-stats {
  display: flex;
  gap: 0;
  margin-top: 60px;
  flex-wrap: wrap;
  background: rgba(18,45,52,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero-stat {
  flex: 1;
  min-width: 110px;
  padding: 18px 20px;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }

.hero-stat-value {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--text-white);
  font-family: var(--font-heading);
  display: block;
  line-height: 1;
  letter-spacing: -0.5px;
}

.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-top: 5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* =====================================================
   Page Hero (non-landing pages)
   ===================================================== */
.page-hero {
  background: var(--bg-secondary);
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--border);
  margin-top: var(--navbar-height);
  position: relative;
  overflow: hidden;
}

/* Hero avec asset en background côté gauche + texte à droite */
.page-hero-asset {
  position: absolute;
  top: 0; left: 0;
  width: 48%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center left;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.85) 55%, transparent 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0.85) 55%, transparent 100%);
  opacity: 0.75;
  pointer-events: none;
}

.page-hero-right {
  max-width: 520px;
  margin-left: auto;
  position: relative;
  z-index: 1;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 350px at 50% 100%, rgba(44,73,81,0.3), transparent);
  pointer-events: none;
}

/* =====================================================
   Badges & Tags
   ===================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.badge-accent {
  background: rgba(44,73,81,0.7);
  color: var(--accent-light);
  border: 1px solid var(--border);
}
.badge-success {
  background: rgba(12,30,34,0.8);
  color: var(--success);
  border: 1px solid rgba(106,184,122,0.25);
}
.badge-warning {
  background: rgba(12,30,34,0.8);
  color: var(--warning);
  border: 1px solid rgba(200,164,106,0.25);
}
.badge-danger {
  background: rgba(12,30,34,0.8);
  color: var(--danger);
  border: 1px solid rgba(200,112,112,0.25);
}
.badge-muted {
  background: rgba(44,73,81,0.4);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Badge LIVE avec pulse */
.badge-live {
  background: rgba(12,30,34,0.9);
  color: var(--success);
  border: 1px solid rgba(106,184,122,0.3);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge-live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-card-deep);
  color: var(--text-soft);
  border: 1px solid var(--border);
}

/* =====================================================
   AMF Badge
   ===================================================== */
.amf-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(44,73,81,0.4);
  border: 1px solid var(--border-mid);
  padding: 7px 16px;
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =====================================================
   Forms
   ===================================================== */
.form-group { margin-bottom: 20px; }

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: var(--transition);
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-soft); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,127,167,0.15);
  background: var(--bg-card-deep);
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23657b88' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-select option { background: var(--bg-card); color: var(--text-primary); }

.form-textarea { resize: vertical; min-height: 100px; line-height: 1.5; }

.form-error { color: var(--danger); font-size: 0.82rem; margin-top: 5px; }
.form-hint { color: var(--text-muted); font-size: 0.82rem; margin-top: 5px; }

/* =====================================================
   Alerts
   ===================================================== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  border-left: 3px solid;
  font-size: 0.9rem;
  line-height: 1.6;
}

.alert-info    { background: rgba(26,61,99,0.25);      border-color: var(--accent);   color: var(--text-primary); }
.alert-success { background: rgba(106,184,122,0.08);   border-color: var(--success);  color: var(--text-primary); }
.alert-warning { background: rgba(200,164,106,0.08);   border-color: var(--warning);  color: var(--text-primary); }
.alert-danger  { background: rgba(200,112,112,0.08);   border-color: var(--danger);   color: var(--text-primary); }

/* =====================================================
   Tables
   ===================================================== */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card-deep);
  font-size: 0.875rem;
}

.table thead th {
  background: var(--bg-card);
  padding: 11px 16px;
  text-align: left;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.table tbody td {
  padding: 11px 16px;
  border-top: 1px solid rgba(44,73,81,0.4);
  color: var(--text-primary);
  vertical-align: middle;
}

.table tbody tr:nth-child(even) { background: rgba(18,45,52,0.4); }
.table tbody tr:hover { background: rgba(44,73,81,0.35); }

/* États win/loss */
.table .positive { color: var(--success); font-weight: 600; }
.table .negative { color: var(--danger); font-weight: 600; }
.table .neutral   { color: var(--text-muted); }

.table .row-win td { background: rgba(106,184,122,0.04) !important; }
.table .row-loss td { background: rgba(200,112,112,0.04) !important; }

/* =====================================================
   Testimonials
   ===================================================== */
.testimonial {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  position: relative;
  transition: all 0.25s ease;
}
.testimonial:hover {
  border-left-color: var(--accent-light);
  box-shadow: var(--shadow);
}

/* Guillemet décoratif */
.testimonial::before {
  content: '\201C';
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 3.5rem;
  color: var(--accent-dark);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
  opacity: 0.5;
}

.testimonial-text {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 22px;
  font-size: 0.92rem;
  position: relative;
}

/* Séparateur entre texte et auteur */
.testimonial-sep {
  width: 24px;
  height: 1px;
  background: var(--border-mid);
  margin: 0 0 16px;
}

.testimonial-author { display: flex; align-items: center; gap: 12px; }

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-light);
  font-size: 0.85rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
  font-family: var(--font-heading);
}

.testimonial-name { font-weight: 700; color: var(--text-white); font-size: 0.875rem; }
.testimonial-role { font-size: 0.78rem; color: var(--text-soft); margin-top: 1px; }

/* =====================================================
   Stat Cards
   ===================================================== */
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-white);
  font-family: var(--font-heading);
  display: block;
  line-height: 1;
  margin-bottom: 7px;
  letter-spacing: -0.5px;
}

.stat-label {
  color: var(--text-soft);
  font-size: 0.72rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Bande de stats horizontale (hero / sections) */
.stats-strip {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stats-strip-item {
  flex: 1;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stats-strip-item:last-child { border-right: none; }
.stats-strip-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-white);
  font-family: var(--font-heading);
  display: block;
  line-height: 1;
  margin-bottom: 5px;
}
.stats-strip-label {
  font-size: 0.72rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* =====================================================
   Tabs
   ===================================================== */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: 2px;
  margin-bottom: 32px;
  overflow-x: auto;
}

.tab-btn {
  padding: 10px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  white-space: nowrap;
  margin-bottom: -1px;
}

.tab-btn:hover { color: var(--text-white); }
.tab-btn.active { color: var(--text-white); border-bottom-color: var(--accent); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* =====================================================
   Progress
   ===================================================== */
.progress {
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(.4,0,.2,1);
}

/* =====================================================
   Modal
   ===================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 520px;
  width: 100%;
  border: 1px solid var(--border);
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px;
  transition: var(--transition);
}
.modal-close:hover { color: var(--text-white); }

/* =====================================================
   Footer
   ===================================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand .logo { display: block; margin-bottom: 14px; font-size: 1.3rem; }
.footer-brand p { color: var(--text-muted); line-height: 1.7; max-width: 260px; margin-bottom: 20px; font-size: 0.9rem; }

.footer-links h4 { color: var(--text-white); font-weight: 700; margin-bottom: 16px; font-size: 0.9rem; letter-spacing: 0.5px; text-transform: uppercase; }
.footer-links a { display: block; color: var(--text-muted); margin-bottom: 10px; font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--text-muted); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.risk-warning {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
  padding: 14px 16px;
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius);
  border-left: 3px solid var(--warning);
}

.footer-bottom > p:last-child {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
}

.social-links { display: flex; gap: 10px; }

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--text-white);
  border-color: var(--border-mid);
  background: var(--bg-card-hover);
}

/* =====================================================
   Cookie Banner
   ===================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: none;
}

.cookie-banner.visible { display: block; animation: slideUp 0.3s ease; }

@keyframes slideUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* =====================================================
   Auth Pages
   ===================================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: calc(var(--navbar-height) + 24px);
  background: var(--bg-primary);
}

.auth-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 460px;
  width: 100%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-title { font-size: 1.7rem; font-weight: 800; text-align: center; margin-bottom: 8px; }
.auth-subtitle { color: var(--text-muted); text-align: center; margin-bottom: 32px; font-size: 0.95rem; }

/* =====================================================
   Admin Layout
   ===================================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--navbar-height);
}

.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--navbar-height);
  height: calc(100vh - var(--navbar-height));
  overflow-y: auto;
}

.admin-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  min-width: 0;
}

.sidebar-nav { padding: 12px 0; flex: 1; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  color: var(--text-muted);
  border-right: 3px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--text-white);
  background: rgba(255,255,255,0.04);
  border-right-color: var(--accent);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }

/* =====================================================
   Member Space
   ===================================================== */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* =====================================================
   Highlight Box
   ===================================================== */
.highlight-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.9rem;
}

/* =====================================================
   Utilities
   ===================================================== */
.divider { height: 1px; background: var(--border); margin: 32px 0; }

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--accent-dark);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.btn-google:hover { background: var(--bg-card-hover); border-color: var(--accent); }
.btn-google:disabled { opacity: 0.6; cursor: not-allowed; }

.divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.divider-or::before,
.divider-or::after { content: ''; flex: 1; height: 1px; background: var(--accent-dark); }

.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-white { color: var(--text-white); }

.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; } .mt-5 { margin-top: 40px; } .mt-6 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; } .mb-5 { margin-bottom: 40px; } .mb-6 { margin-bottom: 48px; }

.feature-list { list-style: none; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(90,99,106,0.2);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* Module cards */
.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
}

.module-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: var(--transition);
}

.module-card summary::-webkit-details-marker { display: none; }
.module-card summary:hover { background: rgba(255,255,255,0.02); }

.module-card[open] summary { border-bottom: 1px solid var(--border); }

.module-card-body { padding: 20px 24px; }

.module-number { color: var(--accent); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.5px; }
.module-title { color: var(--text-white); font-weight: 600; font-size: 0.95rem; }
.module-meta { color: var(--text-muted); font-size: 0.82rem; }
.module-arrow { color: var(--text-muted); transition: transform 0.2s; font-size: 0.75rem; }
.module-card[open] .module-arrow { transform: rotate(90deg); }

.lesson-list { list-style: none; }
.lesson-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(90,99,106,0.2);
  color: var(--text-muted);
  font-size: 0.88rem;
}
.lesson-item:last-child { border-bottom: none; }
.lesson-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* FAQ / Accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--text-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-body { padding: 0 0 18px; color: var(--text-muted); line-height: 1.7; font-size: 0.95rem; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
}
.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card-deep);
  border: 1px solid var(--accent);
  color: var(--accent-light);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-heading);
}
.step-icon { font-size: 2rem; margin-bottom: 12px; }
.step-title { font-weight: 700; color: var(--text-white); margin-bottom: 8px; font-size: 0.95rem; }
.step-text { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }

/* Section with bg-secondary */
.section-alt { background: var(--bg-secondary); }

/* =====================================================
   Section Label — petit identifiant de section
   ===================================================== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--accent);
}

/* Ligne d'accentuation courte sous les titres */
.title-accent {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 10px 0 20px;
}
.text-center .title-accent {
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   Navbar — état scrolled amélioré
   ===================================================== */
.navbar.scrolled {
  background: rgba(12,30,34,0.98);
  box-shadow: 0 1px 0 var(--border);
}

/* =====================================================
   Carte de résultat de paiement (prop firm)
   ===================================================== */
.payout-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}
.payout-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}
.payout-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.payout-firm {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.payout-amount {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-white);
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.payout-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Carte total payout */
.payout-total {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-deep));
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.payout-total-amount {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-white);
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

/* =====================================================
   Sidebar membre — états actifs
   ===================================================== */
.member-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-soft);
  border-left: 3px solid transparent;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}
.member-sidebar-link:hover {
  color: var(--text-white);
  background: rgba(44,73,81,0.3);
  border-left-color: var(--border-mid);
}
.member-sidebar-link.active {
  color: var(--text-white);
  background: rgba(44,73,81,0.4);
  border-left-color: var(--accent);
}

/* =====================================================
   Décoration graphique hero — candelabres stylisés
   ===================================================== */
.hero-chart-decoration {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  height: 300px;
  opacity: 0.07;
  pointer-events: none;
  overflow: hidden;
}
.hero-chart-decoration svg {
  width: 100%;
  height: 100%;
}

/* =====================================================
   Navbar améliorée
   ===================================================== */
.navbar {
  border-bottom: 1px solid rgba(44,73,81,0.6);
}
.navbar.scrolled {
  border-bottom-color: var(--border);
}

/* Price card */
.price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--text-white);
  font-family: var(--font-heading);
}
.price-amount { font-size: 2.4rem; font-weight: 900; }
.price-period { font-size: 0.9rem; color: var(--text-muted); }

/* Bloc CTA calculateur — grille 2 colonnes > 1 colonne sur mobile */
.cta-grid {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
@media (max-width: 768px) {
  .cta-grid {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 24px;
    text-align: center;
  }
  .cta-grid .btn { width: 100%; justify-content: center; }
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { display: none; }

  /* Mobile nav */
  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    min-height: calc(100vh - var(--navbar-height));
    background: var(--bg-secondary);
    padding: 24px;
    padding-bottom: 100px;
    gap: 4px;
    overflow-y: auto;
    z-index: 999;
  }

  body.nav-open .nav-actions {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    z-index: 1000;
  }

  body.nav-open .nav-actions .btn { width: 100%; justify-content: center; }

  .nav-open .nav-links a { padding: 14px 16px; font-size: 1rem; }

  .nav-open .dropdown-menu {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
    margin-top: 4px;
  }

  body.nav-open .hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
  body.nav-open .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

@media (max-width: 768px) {
  /* Évite le zoom automatique sur iOS quand un input est focusé */
  .form-input,
  .form-select,
  .form-textarea { font-size: 1rem; }
  .section { padding: 56px 0; }
  .hero-title { font-size: 2rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 24px; }
  .modal { padding: 28px 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 22px 20px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .stats-strip { flex-wrap: wrap; }
  .stats-strip-item { min-width: 50%; border-bottom: 1px solid var(--border); }
  .hero-chart-decoration { display: none; }
  /* Tableaux : scroll horizontal sur mobile */
  .table-container { -webkit-overflow-scrolling: touch; }
  /* Admin : empile les infos */
  .admin-content { padding: 16px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section-title { font-size: 1.7rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .hero-stat:nth-child(2n) { border-right: none; }
  /* Petits mobiles : réduit les paddings de section */
  .section { padding: 44px 0; }
  .card { padding: 18px 16px; }
  .hero-cta .btn { font-size: 0.95rem; padding: 12px 20px; }
  /* Cookie banner : pleine largeur sur mobile */
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 18px; }
  /* Logo navbar : réduit sur petits écrans */
  .logo { font-size: 1.35rem; }
}

/* ===================================================
   Écrans larges — TV & grands moniteurs (≥ 1600px)
   =================================================== */
@media (min-width: 1600px) {
  .container { max-width: 1400px; }
  body { font-size: 17px; }
}

@media (min-width: 1920px) {
  .container { max-width: 1600px; }
  :root { --navbar-height: 76px; }
  .section { padding: 100px 0; }
  body { font-size: 18px; }
}

/* =====================================================
   Touches de couleur bleue — accents ciblés
   ===================================================== */

/* Section label — trait bleu */
.section-label::before { background: var(--blue-mid); }

/* Barre de progression — dégradé bleu */
.progress-bar {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-mid));
}

/* Stat card — barre bas bleue */
.stat-card::after {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-mid));
}

/* Card — barre top bleue au hover */
.card::before {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-mid));
}
.card-service { border-top-color: var(--blue-mid); }
.card-service:hover {
  border-color: var(--blue-mid);
  border-top-color: var(--blue-light);
}

/* Testimonial — border-left bleue */
.testimonial { border-left-color: var(--blue-mid); }
.testimonial:hover { border-left-color: var(--blue-light); }

/* Payout card — barre top bleue */
.payout-card::before {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-mid));
}
.payout-total { border-color: var(--blue-mid); }

/* Nav active — indicator bleu */
.nav-links a.active {
  color: var(--blue-light);
  background: rgba(74,127,167,0.08);
}
.sidebar-nav a.active,
.sidebar-nav a:hover {
  border-right-color: var(--blue-mid);
}

/* Badge accent — bleu */
.badge-accent {
  background: rgba(44,73,81,0.5);
  color: var(--blue-light);
  border-color: var(--blue-dark);
}

/* Badge live — dot bleu */
.badge-live { color: var(--blue-light); border-color: rgba(74,127,167,0.35); }
.badge-live::before { background: var(--blue-mid); animation: pulse 2s infinite; }

/* AMF badge — teinte bleue */
.amf-badge {
  background: rgba(26,61,99,0.25);
  border-color: var(--blue-dark);
  color: var(--blue-light);
}

/* Feature list — checkmark bleu */
.feature-list li::before { color: var(--blue-mid); }

/* Tabs — active bleu */
.tab-btn.active { border-bottom-color: var(--blue-mid); color: var(--blue-light); }

/* Input focus — halo bleu */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(74,127,167,0.15);
}

/* Scroll selection — bleu */
::selection { background: var(--blue-dark); color: var(--blue-light); }

/* Hero title strong — dégradé avec pointe bleue */
.hero-title strong {
  background: linear-gradient(135deg, #c8d8e4 0%, #8fa4b2 45%, var(--blue-mid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero stat value — teinte bleue subtile sur le dernier stat */
.hero-stat:last-child .hero-stat-value { color: var(--blue-light); }

/* Module number — bleu */
.module-number { color: var(--blue-light); }
.lesson-num { color: var(--blue-mid); }

/* Step number — cercle bleu */
.step-number { border-color: var(--blue-mid); color: var(--blue-light); }


/* =====================================================
   ANIMATIONS — Scroll Reveal
   ===================================================== */

.will-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.will-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   ANIMATIONS — Button Shimmer
   ===================================================== */

@keyframes btn-shimmer {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(220%) skewX(-15deg); }
}

.btn-primary {
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-100%) skewX(-15deg);
  pointer-events: none;
}

.btn-primary:hover::after {
  animation: btn-shimmer 0.65s ease forwards;
}

/* =====================================================
   ANIMATIONS — Enhanced Card Hover
   ===================================================== */

.card:hover {
  box-shadow: 0 12px 40px rgba(74, 127, 167, 0.15), 0 4px 16px rgba(0,0,0,0.3);
  transform: translateY(-3px);
}

.card-service:hover {
  box-shadow: 0 12px 40px rgba(74, 127, 167, 0.18), 0 4px 16px rgba(0,0,0,0.3);
  transform: translateY(-4px);
}

.testimonial:hover {
  box-shadow: 0 8px 28px rgba(74, 127, 167, 0.12);
  transform: translateY(-2px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(74, 127, 167, 0.14);
}

.payout-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.payout-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 127, 167, 0.12);
  border-color: var(--border-mid);
}

/* =====================================================
   ANIMATIONS — Social Icons SVG + Brand Hover Colors
   ===================================================== */

.social-links a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

.social-links a {
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
}

.social-links a[aria-label="Discord"]:hover {
  color: #5865F2;
  border-color: rgba(88, 101, 242, 0.4);
  background: rgba(88, 101, 242, 0.1);
}

.social-links a[aria-label="Instagram"]:hover {
  color: #E1306C;
  border-color: rgba(225, 48, 108, 0.4);
  background: rgba(225, 48, 108, 0.1);
}

.social-links a[aria-label="TikTok"]:hover {
  color: #ff0050;
  border-color: rgba(255, 0, 80, 0.4);
  background: rgba(255, 0, 80, 0.1);
}

.social-links a[aria-label="YouTube"]:hover {
  color: #FF0000;
  border-color: rgba(255, 0, 0, 0.4);
  background: rgba(255, 0, 0, 0.1);
}

/* =====================================================
   ANIMATIONS — Navbar Glassmorphism on scroll
   ===================================================== */

.navbar.scrolled {
  background: rgba(10, 19, 22, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* =====================================================
   ANIMATIONS — Keyframes
   ===================================================== */

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes sway {
  0%, 100% { transform: rotate(-1deg); }
  50%       { transform: rotate(1deg); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,127,167,.55); }
  50%       { box-shadow: 0 0 0 8px rgba(74,127,167,0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   ANIMATIONS — Hero stagger entrance
   ===================================================== */

.hero-eyebrow { animation: fadeUp 0.9s cubic-bezier(.16,1,.3,1) 0.05s both; }
.hero-title   { animation: fadeUp 0.9s cubic-bezier(.16,1,.3,1) 0.2s both; }
.hero-subtitle{ animation: fadeUp 0.9s cubic-bezier(.16,1,.3,1) 0.35s both; }
.hero-cta     { animation: fadeUp 0.9s cubic-bezier(.16,1,.3,1) 0.5s both; }
.hero-stats   { animation: fadeUp 0.9s cubic-bezier(.16,1,.3,1) 0.65s both; }
.hero-art     { animation: fadeUp 0.9s cubic-bezier(.16,1,.3,1) 0.3s both; }

/* =====================================================
   ANIMATIONS — Boutons hover lift + glow
   ===================================================== */

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -10px rgba(74,127,167,.6);
}
.btn-secondary:hover {
  transform: translateY(-2px);
}
.btn-ghost:hover {
  transform: translateY(-1px);
}

/* =====================================================
   ANIMATIONS — Float sur les visuals de pages
   ===================================================== */

.hero-visual-float {
  animation: float 6s ease-in-out infinite, sway 10s ease-in-out infinite;
  will-change: transform;
  filter: drop-shadow(0 24px 40px rgba(74,127,167,.3));
}

.hero-visual-img {
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 60px -20px rgba(74,127,167,.35);
  max-width: 100%;
  height: auto;
}

/* =====================================================
   Card icon — sprite asset-icons.png
   ===================================================== */

.service-icon {
  width: 96px;
  height: 96px;
  display: block;
  margin-bottom: 20px;
  flex-shrink: 0;
  background-image: url('../images/asset-icons.png');
  background-size: 300% auto;
  background-repeat: no-repeat;
  background-position: 0% center;
}
.service-icon-mid   { background-position: 50% center; }
.service-icon-right { background-position: 100% center; }

