/* ============================================
   JOEGOL ACADEMY - Design System
   Couleurs: Orange #E8440A, Blanc #FFFFFF
   ============================================ */

:root {
  --orange: #E8440A;
  --orange-dark: #C4380A;
  --orange-light: #FF6B35;
  --orange-pale: #FFF3EE;
  --white: #FFFFFF;
  --black: #0F0F0F;
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-500: #6C757D;
  --gray-700: #495057;
  --gray-900: #212529;
  --success: #28A745;
  --font: 'Inter', -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
  --transition: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Protection anti-sélection sur les zones vidéo */
}

/* Protection anti-copie */
#watermark-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9999; opacity: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, button, textarea, select { font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange); color: var(--white); border-color: var(--orange);
}
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,68,10,.35); }
.btn-outline {
  background: transparent; color: var(--orange); border-color: var(--orange);
}
.btn-outline:hover { background: var(--orange); color: var(--white); }
.btn-white {
  background: var(--white); color: var(--orange); border-color: var(--white);
}
.btn-white:hover { background: var(--orange-pale); }
.btn-lg { padding: 16px 32px; font-size: 17px; border-radius: var(--radius); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.navbar .container {
  display: flex; align-items: center; gap: 24px;
  padding-top: 14px; padding-bottom: 14px;
}
.navbar-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { height: 40px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-joegol { font-size: 20px; font-weight: 900; color: var(--orange); }
.logo-academy { font-size: 11px; font-weight: 600; color: var(--gray-500); letter-spacing: 2px; text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: 8px; flex: 1; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links > li { position: relative; }
.nav-links a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--gray-700); font-size: 14px; font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links .active a { color: var(--orange); background: var(--orange-pale); }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200);
  min-width: 200px; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: var(--transition); z-index: 100;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a { padding: 10px 16px; border-radius: 0; display: block; }
.dropdown li:first-child a { border-radius: var(--radius) var(--radius) 0 0; }
.dropdown li:last-child a { border-radius: 0 0 var(--radius) var(--radius); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.user-menu { position: relative; }
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  font-weight: 700; font-size: 15px; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200);
  min-width: 220px; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: var(--transition); z-index: 100;
}
.user-menu:hover .user-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.user-info { padding: 14px 16px; border-bottom: 1px solid var(--gray-200); }
.user-info strong { display: block; font-size: 14px; }
.user-info span { font-size: 12px; color: var(--gray-500); }
.user-dropdown a {
  display: block; padding: 10px 16px; font-size: 14px;
  color: var(--gray-700); transition: var(--transition);
}
.user-dropdown a:hover { background: var(--orange-pale); color: var(--orange); }
.user-dropdown .logout { color: #DC3545; }
.user-dropdown .logout:hover { background: #FFF5F5; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--gray-700);
  border-radius: 2px; transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--black) 0%, #1A0A00 60%, #2D1200 100%);
  color: var(--white); padding: 80px 0 100px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,68,10,.3) 0%, transparent 70%);
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: 10%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,68,10,.15) 0%, transparent 70%);
}
.hero-content {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,68,10,.15); color: var(--orange-light);
  border: 1px solid rgba(232,68,10,.3); border-radius: 100px;
  padding: 6px 16px; font-size: 13px; font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px); font-weight: 900; line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--orange); }
.hero p { font-size: 18px; color: rgba(255,255,255,.75); margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 48px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.stat-item { text-align: center; }
.stat-number { font-size: 28px; font-weight: 800; color: var(--orange); }
.stat-label { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 2px; }
.hero-img {
  border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.hero-img-placeholder {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  height: 400px; display: flex; align-items: center; justify-content: center;
  font-size: 80px; border-radius: var(--radius);
}
.hero-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.3); transition: var(--transition);
}
.hero-play-btn:hover { background: var(--white); transform: translate(-50%, -50%) scale(1.08); }
.hero-play-btn svg { color: var(--orange); margin-left: 4px; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-gray { background: var(--gray-100); }
.section-dark { background: var(--black); color: var(--white); }
.section-orange { background: var(--orange); color: var(--white); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header .label {
  display: inline-block; background: var(--orange-pale); color: var(--orange);
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; line-height: 1.25; margin-bottom: 14px; }
.section-header p { font-size: 17px; color: var(--gray-500); max-width: 600px; margin: 0 auto; }

/* ===== CARDS FORMATION ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.formation-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: var(--transition);
  display: flex; flex-direction: column; border: 1px solid var(--gray-200);
}
.formation-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-thumb {
  position: relative; overflow: hidden; background: var(--gray-200);
  aspect-ratio: 16/9;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: .4s ease; }
.formation-card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb-placeholder {
  width: 100%; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, var(--orange-pale) 0%, #FFD9CC 100%);
}
.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--orange); color: var(--white);
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px;
}
.card-badge.promo {
  background: #28A745;
}
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-category { font-size: 12px; color: var(--orange); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.card-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.card-desc { font-size: 14px; color: var(--gray-500); margin-bottom: 16px; flex: 1; }
.card-meta { display: flex; gap: 14px; font-size: 12px; color: var(--gray-500); margin-bottom: 16px; flex-wrap: wrap; }
.card-meta span { display: flex; align-items: center; gap: 4px; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--gray-200);
}
.card-price { display: flex; align-items: baseline; gap: 8px; }
.price-main { font-size: 22px; font-weight: 800; color: var(--orange); }
.price-old { font-size: 15px; color: var(--gray-500); text-decoration: line-through; }
.price-discount { font-size: 13px; font-weight: 700; color: #28A745; background: #E8F5E9; padding: 2px 8px; border-radius: 100px; }

/* ===== AVANTAGES / FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 32px; }
.feature-card {
  text-align: center; padding: 36px 24px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon {
  width: 72px; height: 72px; margin: 0 auto 20px;
  background: var(--orange-pale); border-radius: 20px;
  display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* ===== COMMENT ÇA MARCHE ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px; }
.step { text-align: center; padding: 32px 20px; }
.step-num {
  width: 56px; height: 56px; margin: 0 auto 20px;
  background: var(--orange); color: var(--white); border-radius: 50%;
  font-size: 22px; font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 14px; color: var(--gray-500); }

/* ===== TEMOIGNAGES ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); border: 1px solid var(--gray-200);
}
.testimonial-stars { color: #FFC107; font-size: 18px; margin-bottom: 14px; }
.testimonial-text { font-size: 15px; line-height: 1.7; color: var(--gray-700); margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--orange);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 15px; }
.testimonial-course { font-size: 12px; color: var(--gray-500); }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white); padding: 80px 0; text-align: center;
}
.cta-section h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; margin-bottom: 16px; }
.cta-section p { font-size: 18px; opacity: .85; margin-bottom: 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== PAYMENT METHODS ===== */
.payment-methods { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.payment-method {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200); cursor: pointer;
  transition: var(--transition); background: var(--white); font-size: 14px;
}
.payment-method:hover, .payment-method.selected {
  border-color: var(--orange); background: var(--orange-pale);
}
.payment-method .pm-icon { font-size: 22px; }
.payment-method .pm-name { font-weight: 600; }
.payment-method .pm-desc { font-size: 11px; color: var(--gray-500); }
.payment-method.selected { border-color: var(--orange); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--gray-700); }
.form-control {
  width: 100%; padding: 12px 16px; border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm); font-size: 15px; transition: var(--transition);
  background: var(--white); color: var(--gray-900);
}
.form-control:focus { outline: none; border-color: var(--orange); }
.form-control::placeholder { color: var(--gray-300); }
.form-error { color: #DC3545; font-size: 13px; margin-top: 4px; display: block; }
.form-hint { color: var(--gray-500); font-size: 13px; margin-top: 4px; display: block; }

.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  margin-bottom: 20px; font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
}
.alert-success { background: #D4EDDA; color: #155724; border-color: #C3E6CB; }
.alert-error { background: #F8D7DA; color: #721C24; border-color: #F5C6CB; }
.alert-info { background: var(--orange-pale); color: var(--orange-dark); border-color: rgba(232,68,10,.2); }
.alert-warning { background: #FFF3CD; color: #856404; border-color: #FFECB5; }

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #0F0F0F 0%, #1A0A00 100%);
  padding: 40px 20px;
}
.auth-box {
  background: var(--white); border-radius: var(--radius);
  padding: 48px; max-width: 460px; width: 100%; margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo img { height: 52px; margin: 0 auto 12px; }
.auth-logo h2 { font-size: 22px; font-weight: 800; }
.auth-logo p { font-size: 14px; color: var(--gray-500); }
.auth-divider {
  text-align: center; position: relative; margin: 24px 0;
  color: var(--gray-500); font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%; width: 42%;
  height: 1px; background: var(--gray-200);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

/* ===== ESPACE MEMBRE ===== */
.membre-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 40px 0; min-height: 80vh; }
.membre-sidebar {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); height: fit-content; position: sticky; top: 90px;
}
.membre-sidebar h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-200); }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--radius-sm); color: var(--gray-700); font-size: 14px;
  font-weight: 500; transition: var(--transition); margin-bottom: 4px;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--orange-pale); color: var(--orange); }
.sidebar-nav a svg { flex-shrink: 0; }

.mes-formations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.mes-formations-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-200); overflow: hidden; transition: var(--transition);
}
.mes-formations-card:hover { box-shadow: var(--shadow); }
.formation-progress { padding: 16px; }
.progress-bar-wrap { height: 6px; background: var(--gray-200); border-radius: 3px; margin: 8px 0; }
.progress-bar-fill { height: 100%; background: var(--orange); border-radius: 3px; transition: width .5s ease; }
.progress-text { font-size: 12px; color: var(--gray-500); }

/* ===== VIDEO PLAYER ===== */
.video-page { background: var(--black); min-height: 100vh; }
.video-layout { display: grid; grid-template-columns: 1fr 360px; min-height: calc(100vh - 60px); }
.video-main { position: relative; }
.video-container {
  position: relative; background: var(--black);
  user-select: none; -webkit-user-select: none;
}
.video-container::after {
  content: 'JOEGOL ACADEMY'; position: absolute; top: 16px; right: 16px;
  color: rgba(255,255,255,.15); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; pointer-events: none; z-index: 10;
}
.video-player {
  width: 100%; display: block;
  /* Désactiver contrôles natifs de téléchargement */
  -webkit-media-controls-fullscreen-button: none;
}
.video-player::-webkit-media-controls-download-button { display: none !important; }
.video-player::-webkit-media-controls { overflow: hidden !important; }

.video-sidebar {
  background: #161616; color: var(--white);
  overflow-y: auto; max-height: calc(100vh - 60px);
}
.sidebar-course-title { padding: 20px; border-bottom: 1px solid #2A2A2A; font-size: 14px; font-weight: 700; }
.course-module { border-bottom: 1px solid #2A2A2A; }
.module-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--white); transition: var(--transition);
}
.module-header:hover { background: #1F1F1F; }
.module-lessons { display: none; }
.module-lessons.open { display: block; }
.lesson-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; font-size: 13px; color: #AAA; cursor: pointer;
  transition: var(--transition);
}
.lesson-item:hover, .lesson-item.active {
  background: #1F1F1F; color: var(--white);
}
.lesson-item.active { border-left: 3px solid var(--orange); }
.lesson-item.done .lesson-check { color: #28A745; }
.lesson-check { width: 18px; flex-shrink: 0; }
.lesson-title { flex: 1; }
.lesson-duration { font-size: 11px; color: #666; }

/* ===== PAGE PAIEMENT ===== */
.paiement-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 60px 0; align-items: start; }
.paiement-form-card {
  background: var(--white); border-radius: var(--radius); padding: 40px;
  box-shadow: var(--shadow); border: 1px solid var(--gray-200);
}
.paiement-recap {
  background: var(--white); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); border: 1px solid var(--gray-200); position: sticky; top: 90px;
}
.recap-formation-thumb { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 16px; }
.recap-formation-thumb img, .recap-thumb-placeholder {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 40px;
  background: linear-gradient(135deg, var(--orange-pale), #FFD9CC);
}
.recap-price { font-size: 28px; font-weight: 900; color: var(--orange); margin: 16px 0; }
.recap-old-price { font-size: 16px; color: var(--gray-500); text-decoration: line-through; margin-bottom: 4px; }
.recap-features { margin: 20px 0; }
.recap-feature { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 10px; }
.recap-feature svg { color: var(--orange); flex-shrink: 0; }
.secure-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.secure-badge {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--gray-500); background: var(--gray-100);
  padding: 4px 10px; border-radius: 100px;
}

/* ===== ADMIN ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 250px; background: #1A1A1A; color: var(--white);
  flex-shrink: 0; padding: 24px 0;
}
.admin-brand { padding: 0 24px 24px; border-bottom: 1px solid #333; margin-bottom: 24px; }
.admin-brand span { font-size: 16px; font-weight: 800; color: var(--orange); }
.admin-nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px 24px;
  font-size: 14px; color: #AAA; transition: var(--transition);
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(232,68,10,.15); color: var(--orange); }
.admin-main { flex: 1; padding: 32px; background: var(--gray-100); }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.admin-header h1 { font-size: 24px; font-weight: 800; }
.stats-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); border-left: 4px solid var(--orange);
}
.stat-card-value { font-size: 32px; font-weight: 900; color: var(--orange); }
.stat-card-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

/* ===== TABLE ===== */
.table-container { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
thead th { background: var(--gray-100); padding: 14px 18px; text-align: left; font-size: 13px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 1px; }
tbody td { padding: 14px 18px; font-size: 14px; border-bottom: 1px solid var(--gray-100); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--orange-pale); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.badge-success { background: #D4EDDA; color: #155724; }
.badge-warning { background: #FFF3CD; color: #856404; }
.badge-danger { background: #F8D7DA; color: #721C24; }
.badge-info { background: var(--orange-pale); color: var(--orange-dark); }

/* ===== PAGE DETAIL FORMATION ===== */
.formation-hero { background: linear-gradient(135deg, #0F0F0F 0%, #1A0A00 100%); color: var(--white); padding: 60px 0; }
.formation-hero-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: center; }
.formation-meta-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.meta-tag {
  display: flex; align-items: center; gap: 6px; font-size: 13px;
  background: rgba(255,255,255,.1); padding: 5px 12px; border-radius: 100px;
}
.formation-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.stars { color: #FFC107; letter-spacing: 2px; }
.formation-hero h1 { font-size: clamp(24px, 3vw, 38px); font-weight: 900; margin-bottom: 16px; line-height: 1.2; }
.formation-hero .lead { font-size: 16px; color: rgba(255,255,255,.75); margin-bottom: 24px; line-height: 1.7; }
.formation-hero-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  color: var(--black); box-shadow: 0 20px 60px rgba(0,0,0,.4); position: sticky; top: 90px;
}
.hero-card-thumb { aspect-ratio: 16/9; overflow: hidden; position: relative; background: var(--gray-200); }
.hero-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 60px; background: linear-gradient(135deg, var(--orange-pale), #FFD9CC); }
.hero-card-body { padding: 24px; }
.hero-card-price { font-size: 32px; font-weight: 900; color: var(--orange); margin-bottom: 4px; }
.hero-card-old-price { font-size: 16px; color: var(--gray-500); text-decoration: line-through; margin-bottom: 20px; }
.hero-card-features { margin-bottom: 20px; }
.hero-card-feature { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 10px; }
.hero-card-feature svg { color: var(--orange); }

/* ===== PROGRAMME ===== */
.programme { padding: 60px 0; }
.programme-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; }
.accordeon-module {
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  overflow: hidden; margin-bottom: 12px;
}
.accordeon-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: var(--gray-100); cursor: pointer;
  font-weight: 700; font-size: 15px; transition: var(--transition);
}
.accordeon-header:hover { background: var(--orange-pale); }
.accordeon-count { font-size: 12px; color: var(--gray-500); font-weight: 400; }
.accordeon-body { display: none; }
.accordeon-body.open { display: block; }
.accordeon-lecon {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  border-top: 1px solid var(--gray-200); font-size: 14px; transition: var(--transition);
}
.accordeon-lecon:hover { background: var(--orange-pale); }
.lecon-icon { color: var(--orange); flex-shrink: 0; }
.lecon-name { flex: 1; }
.lecon-dur { font-size: 12px; color: var(--gray-500); }
.lecon-gratuit { font-size: 11px; background: #D4EDDA; color: #155724; padding: 2px 8px; border-radius: 100px; }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--gray-500); margin-bottom: 20px; }
.breadcrumb a { color: var(--orange); }
.breadcrumb span { color: var(--gray-400); }

/* ===== FOOTER ===== */
.footer { background: #0F0F0F; color: rgba(255,255,255,.75); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid #2A2A2A; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.5); margin-top: 16px; margin-bottom: 24px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { height: 36px; }
.footer-logo span { font-size: 18px; font-weight: 800; color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 15px; font-weight: 700; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,.55); transition: var(--transition); }
.footer-col ul a:hover { color: var(--orange); }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; transition: var(--transition);
}
.social-btn.whatsapp { background: #25D366; color: var(--white); }
.social-btn.facebook { background: #1877F2; color: var(--white); }
.social-btn.tiktok { background: #000; color: var(--white); border: 1px solid #333; }
.social-btn:hover { transform: translateY(-2px); opacity: .85; }
.payment-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.badge-pay {
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 6px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.1);
}
.badge-pay.wave-badge { background: rgba(30,215,96,.15); color: #1ED760; border-color: rgba(30,215,96,.2); }
.badge-pay.ipay-badge { background: rgba(232,68,10,.15); color: var(--orange-light); border-color: rgba(232,68,10,.2); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-size: 13px; color: rgba(255,255,255,.35); flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--orange); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-img { display: none; }
  .formation-hero-layout, .paiement-layout, .programme-layout { grid-template-columns: 1fr; }
  .formation-hero-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .membre-layout { grid-template-columns: 1fr; }
  .membre-sidebar { position: static; }
  .video-layout { grid-template-columns: 1fr; }
  .video-sidebar { max-height: 400px; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 20px; flex-direction: column; align-items: flex-start; gap: 16px; box-shadow: var(--shadow); }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; width: 100%; }
  .nav-links a { width: 100%; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 16px; background: var(--gray-100); }
  .nav-actions { flex-direction: row; }
  .nav-toggle { display: flex; }
  .hero { padding: 60px 0; }
  .hero-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; }
  .auth-box { padding: 32px 24px; }
  .paiement-form-card { padding: 24px; }
}

/* ===== UTILITAIRES ===== */
.text-orange { color: var(--orange); }
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; } .align-center { align-items: center; } .gap-2 { gap: 16px; }
.hidden { display: none !important; }

/* ===== LOADER ===== */
.loader { display: none; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.3); border-top-color: var(--white); border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading .loader { display: inline-block; }
.loading .btn-text { display: none; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.page-btn {
  width: 40px; height: 40px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--transition); color: var(--gray-700); background: var(--white);
}
.page-btn:hover, .page-btn.active { background: var(--orange); color: var(--white); border-color: var(--orange); }

/* ══════════════════════════════════════════════════════
   NOUVELLE REFONTE – SIDEBAR + HERO + DARK THEME
   ══════════════════════════════════════════════════════ */

/* ── Variables supplémentaires ── */
:root {
  --sidebar-w: 262px;
  --topbar-h: 60px;
  --dark-bg: #0a0a0f;
  --dark-card: #0d1117;
  --dark-border: rgba(255,255,255,.07);
  --dark-text: rgba(255,255,255,.65);
}

/* ── Réinitialisation body ── */
body {
  background: var(--dark-bg);
}

/* ══════════════ PAGE TRANSITION ══════════════ */
#pt-overlay {
  position: fixed; inset: 0; z-index: 100000;
  pointer-events: none; overflow: hidden;
}
.pt-strip {
  position: absolute; top: 0; left: 0; height: 100%; width: 100%;
  background: linear-gradient(135deg, #E8440A 0%, #1a0a00 100%);
  transform: translateX(-105%) skewX(-6deg);
  transition: transform .52s cubic-bezier(.77,0,.175,1);
  transition-delay: var(--d,0ms);
}
#pt-overlay.active .pt-strip { transform: translateX(0) skewX(0deg); }
#pt-overlay.exit .pt-strip   { transform: translateX(105%) skewX(6deg); }

#pt-vortex {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s;
}
#pt-overlay.active #pt-vortex { opacity: 1; }
.pt-ring {
  position: absolute;
  width: calc(80px * var(--s));
  height: calc(80px * var(--s));
  border: 2px solid rgba(232,68,10,.4);
  border-radius: 50%;
  animation: vortex-spin calc(.8s + var(--i) * .2s) linear infinite;
  animation-delay: calc(var(--i) * .1s);
  opacity: calc(1 - var(--i) * .2);
}
@keyframes vortex-spin {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ══════════════ LAYOUT SIDEBAR ══════════════ */
#sidebar-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.65); z-index: 998;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
#sidebar-backdrop.show { display: block; }

#app-sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-w); height: 100vh;
  background: var(--dark-card);
  border-right: 1px solid var(--dark-border);
  z-index: 999; display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.1) transparent;
}
#app-sidebar::-webkit-scrollbar { width: 4px; }
#app-sidebar::-webkit-scrollbar-track { background: transparent; }
#app-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

#app-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  background: var(--dark-bg);
  transition: margin .32s ease;
}

@media (max-width: 1023px) {
  #app-sidebar { transform: translateX(-100%); }
  #app-sidebar.open { transform: translateX(0); }
  #app-main { margin-left: 0; }
}

/* ── Sidebar intérieur ── */
.sidebar-brand {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 16px 16px; border-bottom: 1px solid var(--dark-border);
  flex-shrink: 0;
}
.sidebar-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.sidebar-logo img { height: 36px; width: auto; object-fit: contain; }
.sidebar-close {
  display: none; background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.4); padding: 4px; border-radius: 6px; transition: all .2s;
}
.sidebar-close:hover { color: #fff; background: rgba(255,255,255,.08); }
@media (max-width: 1023px) { .sidebar-close { display: flex; align-items: center; } }

.sidebar-nav { padding: 12px 8px; flex: 1; }

.sidebar-section-label {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  color: rgba(255,255,255,.22); text-transform: uppercase;
  padding: 8px 12px 4px;
}

.sidebar-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 8px; margin: 1px 0;
  color: rgba(255,255,255,.58); font-size: 13.5px; font-weight: 500;
  text-decoration: none; transition: all .18s ease; cursor: pointer;
  white-space: nowrap; width: 100%;
}
.sidebar-link:hover  { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-link.active { color: #E8440A; background: rgba(232,68,10,.12); }
.sidebar-link.active svg { opacity: 1; }
.sidebar-link svg { flex-shrink: 0; opacity: .6; }
.sidebar-link-btn { background: none; border: none; text-align: left; width: 100%; }
.sidebar-link-btn:hover { color: #fff; background: rgba(255,255,255,.06); }

.sidebar-arrow { margin-left: auto; transition: transform .25s ease; opacity: .5; }
.sidebar-arrow.open { transform: rotate(180deg); }

.sidebar-submenu {
  display: none; padding: 4px 0 4px 22px;
  border-left: 2px solid rgba(232,68,10,.25); margin: 2px 0 2px 19px;
}
.sidebar-submenu.open { display: block; }
.sidebar-submenu a {
  display: block; padding: 7px 10px; font-size: 12.5px;
  color: rgba(255,255,255,.45); border-radius: 6px; transition: all .15s;
}
.sidebar-submenu a:hover { color: #E8440A; background: rgba(232,68,10,.08); }

.sidebar-badge {
  margin-left: auto; font-size: 9px; font-weight: 700; letter-spacing: .5px;
  background: rgba(232,68,10,.2); color: #E8440A; border: 1px solid rgba(232,68,10,.3);
  padding: 2px 7px; border-radius: 100px; text-transform: uppercase;
}

/* Sidebar footer */
.sidebar-footer { border-top: 1px solid var(--dark-border); flex-shrink: 0; }
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 0;
}
.sidebar-user-avatar {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(135deg, #E8440A, #FF6B35);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: #fff;
}
.sidebar-user-info { overflow: hidden; }
.sidebar-user-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: rgba(255,255,255,.4); }
.sidebar-logout {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px 14px; font-size: 12.5px; color: rgba(255,100,100,.7);
  text-decoration: none; transition: color .18s;
}
.sidebar-logout:hover { color: #ff6b6b; }

.sidebar-auth-btn {
  display: block; text-align: center; padding: 10px 16px;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: all .18s;
}
.sidebar-auth-outline {
  border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.7);
}
.sidebar-auth-outline:hover { border-color: rgba(255,255,255,.3); color: #fff; }
.sidebar-auth-primary {
  background: linear-gradient(135deg, #E8440A, #C4380A); color: #fff;
  box-shadow: 0 4px 16px rgba(232,68,10,.3);
}
.sidebar-auth-primary:hover { box-shadow: 0 6px 24px rgba(232,68,10,.45); transform: translateY(-1px); }

/* ══════════════ MOBILE TOPBAR ══════════════ */
#mobile-topbar {
  display: none; align-items: center; justify-content: space-between;
  height: var(--topbar-h); padding: 0 16px;
  background: var(--dark-card); border-bottom: 1px solid var(--dark-border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
@media (max-width: 1023px) { #mobile-topbar { display: flex; } }

.ham-btn {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  border-radius: 6px; transition: background .2s;
}
.ham-btn:hover { background: rgba(255,255,255,.08); }
.ham-btn span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }

.mobile-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.mobile-cta {
  font-size: 12px; font-weight: 600; padding: 7px 14px;
  background: rgba(232,68,10,.15); color: #E8440A;
  border: 1px solid rgba(232,68,10,.3); border-radius: 6px;
  text-decoration: none; transition: all .18s;
}
.mobile-cta:hover { background: rgba(232,68,10,.25); }

/* ══════════════ HERO SLIDER ══════════════ */
.hero-section { position: relative; }
.hero-swiper { width: 100%; height: 88vh; min-height: 520px; position: relative; }
.hero-swiper .swiper-slide {
  position: relative; display: flex;
  align-items: center; overflow: hidden;
}
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.08); transition: transform 7s ease;
}
.swiper-slide-active .slide-bg { transform: scale(1); }
.slide-bg-1 { background: linear-gradient(130deg, #0a0a0f 0%, #1a0600 40%, #2d1000 100%); }
.slide-bg-2 { background: linear-gradient(130deg, #05051a 0%, #0a0a2e 50%, #1a1a3e 100%); }
.slide-bg-3 { background: linear-gradient(130deg, #020f08 0%, #052010 50%, #0a3020 100%); }
.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.35) 60%, transparent 100%);
}
.slide-content {
  position: relative; z-index: 2; padding: 0 20px;
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease .3s, transform .7s ease .3s;
}
.swiper-slide-active .slide-content, .slide-content.slide-in {
  opacity: 1; transform: translateY(0);
}
.slide-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(232,68,10,.15); border: 1px solid rgba(232,68,10,.35);
  color: #FF6B35; padding: 6px 14px; border-radius: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: .3px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); margin-bottom: 22px;
}
.slide-title {
  font-size: clamp(28px, 5vw, 62px); font-weight: 900;
  color: #fff; line-height: 1.1; margin-bottom: 18px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.slide-title span { color: #E8440A; }
.slide-desc {
  font-size: clamp(14px, 2vw, 17px); color: rgba(255,255,255,.72);
  line-height: 1.7; margin-bottom: 30px; max-width: 520px;
}
.slide-stats {
  display: flex; gap: 36px; margin-bottom: 36px;
  padding: 20px 24px; background: rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; width: fit-content;
}
.slide-stat-num { font-size: 26px; font-weight: 900; color: #E8440A; line-height: 1; }
.slide-stat-lbl { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 3px; }
.slide-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Swiper nav */
.hero-prev, .hero-next {
  color: #fff !important;
  background: rgba(255,255,255,.08) !important;
  -webkit-backdrop-filter: blur(10px) !important; backdrop-filter: blur(10px) !important;
  width: 48px !important; height: 48px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  transition: all .2s !important;
}
.hero-prev:hover, .hero-next:hover {
  background: rgba(232,68,10,.25) !important;
  border-color: rgba(232,68,10,.4) !important;
  transform: scale(1.05) !important;
}
.hero-prev::after, .hero-next::after { font-size: 14px !important; font-weight: 700 !important; }
.hero-swiper-pagination.swiper-pagination { bottom: 28px !important; }
.hero-swiper-pagination .swiper-pagination-bullet { background: rgba(255,255,255,.35) !important; opacity:1 !important; width:8px !important; height:8px !important; }
.hero-swiper-pagination .swiper-pagination-bullet-active { background: #E8440A !important; width: 26px !important; border-radius: 4px !important; }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute; bottom: 32px; right: 48px; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.4); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase;
}
@media (max-width: 768px) { .hero-scroll-hint { display: none; } }
.hero-scroll-line {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4));
  animation: line-pulse 2s ease-in-out infinite;
}
@keyframes line-pulse {
  0%, 100% { opacity: .4; } 50% { opacity: 1; }
}

/* ══════════════ COUNTER SECTION ══════════════ */
.counter-section { background: linear-gradient(135deg, #0d1117, #111827); padding: 64px 0; }
.counter-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
@media (max-width: 768px) { .counter-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .counter-grid { grid-template-columns: 1fr 1fr; } }

.counter-card {
  text-align: center; padding: 32px 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; transition: all .3s ease; cursor: default;
}
.counter-card:hover {
  background: rgba(232,68,10,.06);
  border-color: rgba(232,68,10,.25);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(232,68,10,.1);
}
.counter-icon { font-size: 28px; margin-bottom: 12px; }
.counter-value { font-size: 44px; font-weight: 900; color: #E8440A; line-height: 1; display: inline; }
.counter-suffix { font-size: 28px; font-weight: 900; color: #E8440A; display: inline; }
.counter-label { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 8px; font-weight: 500; }

/* ══════════════ DARK SECTIONS ══════════════ */
.dark-section { background: var(--dark-bg); padding: 88px 0; }
.section-eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: #E8440A;
  background: rgba(232,68,10,.1); border: 1px solid rgba(232,68,10,.2);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 14px;
}
.section-title-dark {
  font-size: clamp(26px, 4vw, 40px); font-weight: 800;
  color: #fff; line-height: 1.2; margin-bottom: 14px;
}
.section-subtitle-dark {
  font-size: 16px; color: rgba(255,255,255,.5);
  max-width: 560px; margin: 0 auto; line-height: 1.7;
}
.section-header { text-align: center; margin-bottom: 60px; }

/* ══════════════ FEATURE CARDS DARK ══════════════ */
.features-grid-dark {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;
}
.feature-dark-card {
  padding: 32px 28px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; transition: all .3s ease;
}
.feature-dark-card:hover {
  background: rgba(232,68,10,.05);
  border-color: rgba(232,68,10,.22);
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(0,0,0,.3);
}
.feature-dark-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(232,68,10,.1); border: 1px solid rgba(232,68,10,.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: all .3s;
}
.feature-dark-card:hover .feature-dark-icon { background: rgba(232,68,10,.18); transform: scale(1.08); }
.feature-dark-card h3 { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.feature-dark-card p  { font-size: 14px; color: rgba(255,255,255,.52); line-height: 1.65; }

/* ══════════════ COURSE CARDS DARK ══════════════ */
.formations-grid-dark {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px;
}
.dark-course-card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; overflow: hidden; text-decoration: none;
  color: inherit; transition: all .3s ease;
}
.dark-course-card:hover {
  border-color: rgba(232,68,10,.35);
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 0 1px rgba(232,68,10,.15);
}
.dark-course-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: rgba(255,255,255,.04);
}
.dark-course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: .5s ease; }
.dark-course-card:hover .dark-course-thumb img { transform: scale(1.06); }
.dark-course-thumb-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(232,68,10,.08), rgba(232,68,10,.03));
}
.dark-course-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: #28A745; color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
}
.dark-course-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.dark-course-card:hover .dark-course-overlay { opacity: 1; }
.dark-course-play {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(232,68,10,.9); display: flex;
  align-items: center; justify-content: center;
  transform: scale(.8); transition: transform .3s;
  box-shadow: 0 4px 20px rgba(232,68,10,.4);
}
.dark-course-card:hover .dark-course-play { transform: scale(1); }
.dark-course-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.dark-course-cat {
  font-size: 11px; font-weight: 600; color: #E8440A;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.dark-course-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; line-height: 1.35; }
.dark-course-desc { font-size: 13px; color: rgba(255,255,255,.45); flex: 1; line-height: 1.6; margin-bottom: 14px; }
.dark-course-meta {
  display: flex; gap: 14px; font-size: 12px; color: rgba(255,255,255,.4);
  margin-bottom: 16px; flex-wrap: wrap;
}
.dark-course-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07);
}
.dark-price-main { font-size: 20px; font-weight: 800; color: #E8440A; }
.dark-price-old  { font-size: 13px; color: rgba(255,255,255,.3); text-decoration: line-through; margin-left: 6px; }
.dark-course-btn {
  font-size: 12px; font-weight: 700; color: #E8440A;
  background: rgba(232,68,10,.1); border: 1px solid rgba(232,68,10,.25);
  padding: 6px 14px; border-radius: 8px; transition: all .2s;
}
.dark-course-card:hover .dark-course-btn { background: rgba(232,68,10,.2); }

/* ══════════════ STEPS ══════════════ */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 20px;
}
.step-card {
  position: relative; padding: 32px 24px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; text-align: center; transition: all .3s;
}
.step-card:hover {
  border-color: rgba(232,68,10,.25); background: rgba(232,68,10,.04);
  transform: translateY(-4px);
}
.step-num-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin: 0 auto 18px;
  background: linear-gradient(135deg, #E8440A, #C4380A);
  border-radius: 50%; font-size: 18px; font-weight: 900; color: #fff;
  box-shadow: 0 8px 24px rgba(232,68,10,.3);
}
.step-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.step-card p  { font-size: 13.5px; color: rgba(255,255,255,.48); line-height: 1.6; }
.step-connector {
  position: absolute; top: 50%; right: -10px; width: 20px; height: 2px;
  background: linear-gradient(90deg, rgba(232,68,10,.5), transparent);
}
@media (max-width: 768px) { .step-connector { display: none; } }

/* ══════════════ TESTIMONIALS ══════════════ */
.testi-swiper { padding-bottom: 44px !important; }
.testi-swiper .swiper-wrapper { align-items: stretch; }
.testi-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; padding: 26px; height: 100%;
  display: flex; flex-direction: column; transition: all .3s;
}
.testi-card:hover {
  border-color: rgba(232,68,10,.25); background: rgba(232,68,10,.04);
  transform: translateY(-4px);
}
.testi-stars { color: #F59E0B; font-size: 15px; margin-bottom: 12px; }
.testi-text { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.7; margin-bottom: 20px; font-style: italic; flex: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,#E8440A,#FF6B35);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 15px;
}
.testi-name { font-size: 14px; font-weight: 700; color: #fff; }
.testi-role { font-size: 12px; color: rgba(255,255,255,.4); }
.testi-swiper-pagination.swiper-pagination { bottom: 0 !important; }
.testi-swiper-pagination .swiper-pagination-bullet { background: rgba(255,255,255,.25) !important; }
.testi-swiper-pagination .swiper-pagination-bullet-active { background: #E8440A !important; }

/* ══════════════ PAYMENT LOGOS ══════════════ */
.payment-logos {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
}
.payment-logo-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 24px; min-width: 110px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; transition: all .25s;
}
.payment-logo-card:hover {
  border-color: rgba(232,68,10,.3); background: rgba(232,68,10,.06);
  transform: translateY(-3px);
}
.payment-logo-card img { height: 38px; width: auto; object-fit: contain; filter: brightness(0.9) saturate(0.9); transition: .3s; }
.payment-logo-card:hover img { filter: brightness(1) saturate(1); }
.payment-logo-card span { font-size: 11px; color: rgba(255,255,255,.4); font-weight: 500; }

/* ══════════════ CTA DARK ══════════════ */
.cta-dark-section {
  position: relative; overflow: hidden;
  padding: 100px 0; background: #0a0a0f;
  border-top: 1px solid rgba(255,255,255,.06);
}
.cta-dark-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(232,68,10,.2) 0%, transparent 70%);
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.05); }
}
.cta-icon { font-size: 52px; margin-bottom: 16px; }
.cta-dark-title { font-size: clamp(26px,4vw,44px); font-weight: 900; color: #fff; margin-bottom: 14px; }
.cta-dark-sub { font-size: 17px; color: rgba(255,255,255,.5); margin-bottom: 36px; }
.cta-dark-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ══════════════ BOUTONS SUPPLÉMENTAIRES ══════════════ */
.btn-glass {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15); color: #fff;
  font-weight: 600; font-size: 15px; cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: all .2s ease;
}
.btn-glass:hover {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3);
  transform: translateY(-1px);
}
.btn-outline-light {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  background: transparent; border: 2px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8); font-weight: 600; font-size: 17px;
  cursor: pointer; transition: all .2s ease;
}
.btn-outline-light:hover {
  border-color: #E8440A; color: #E8440A;
  background: rgba(232,68,10,.08);
}

/* ══════════════ FOOTER NOUVEAU ══════════════ */
.site-footer {
  background: #080c10; color: rgba(255,255,255,.55); position: relative;
}
.footer-wave { position: relative; margin-bottom: -2px; line-height: 0; }
.footer-wave svg { width: 100%; height: 60px; }
.footer-inner { padding: 64px 0 0; max-width: 1200px; margin: 0 auto; padding: 64px 20px 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px)  { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 16px; }
.footer-logo-txt { font-size: 17px; font-weight: 800; color: #fff; }
.footer-tagline { font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.4); margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.social-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; text-decoration: none;
}
.social-wa { background: #25D366; color: #fff; }
.social-fb { background: #1877F2; color: #fff; }
.social-tt { background: #111; color: #fff; border: 1px solid #333; }
.social-icon:hover { transform: translateY(-2px); filter: brightness(1.1); }

.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 13px; color: rgba(255,255,255,.42); text-decoration: none; transition: color .18s; }
.footer-col ul a:hover { color: #E8440A; }
.footer-contact-link { display: flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255,255,255,.42); text-decoration: none; transition: color .18s; }
.footer-contact-link:hover { color: #E8440A; }
.footer-location { font-size: 13px; color: rgba(255,255,255,.3); }
.footer-payment-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pay-badge {
  font-size: 10.5px; font-weight: 600; padding: 3px 9px;
  border-radius: 6px; background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.08);
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-size: 12.5px;
  color: rgba(255,255,255,.25); flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.35); text-decoration: none; transition: color .18s; }
.footer-bottom a:hover { color: #E8440A; }

/* ══════════════ AOS OVERRIDES (dark theme) ══════════════ */
[data-aos] { will-change: transform, opacity; }

/* ══════════════ RESPONSIVE GLOBAL ══════════════ */
@media (max-width: 768px) {
  .hero-swiper { height: 100svh; }
  .slide-stats { display: none; }
  .dark-section { padding: 64px 0; }
  .features-grid-dark { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

