/* ============================================================
   EPOXY MASTER — MAIN STYLESHEET
   Design: Luxury Artisan "Liquid Gold on Obsidian"
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── CSS Variables ── */
:root {
  --black:       #080808;
  --deep:        #0f0f0f;
  --surface:     #161616;
  --surface2:    #1e1e1e;
  --surface3:    #262626;
  --border:      rgba(212, 175, 55, 0.18);
  --border-light:rgba(255,255,255,0.08);

  --gold:        #D4AF37;
  --gold-light:  #F0D060;
  --gold-dark:   #9A7C1A;
  --amber:       #C8820C;
  --cream:       #F5F0E8;
  --white:       #FFFFFF;

  --text-primary:   #F5F0E8;
  --text-secondary: rgba(245,240,232,0.65);
  --text-muted:     rgba(245,240,232,0.35);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   32px;

  --shadow-gold: 0 0 40px rgba(212,175,55,0.15), 0 4px 24px rgba(0,0,0,0.6);
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.4);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.7);

  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --glass-bg:    rgba(22,22,22,0.75);
  --glass-border: rgba(212,175,55,0.15);
}

/* ══════════════════════════════════════════════════════
   THÈME CLAIR — html.light-mode
   Redéfinit toutes les variables de couleur.
   Le JS dans main.js ajoute/retire .light-mode sur <html>
   via localStorage('epoxy_theme').
   ══════════════════════════════════════════════════════ */
html.light-mode {
  /* Fonds : blanc chaud → crème léger */
  --black:        #F7F4EE;
  --deep:         #EDE9E0;
  --surface:      #FFFFFF;
  --surface2:     #F5F2EC;
  --surface3:     #EBE7DC;

  /* Bordures */
  --border:        rgba(154,124,26,0.22);
  --border-light:  rgba(0,0,0,0.09);

  /* Or : légèrement assombri pour contraste sur blanc */
  --gold:          #9A7C1A;
  --gold-light:    #C8A020;
  --gold-dark:     #6B550E;
  --amber:         #B5700A;

  /* Textes : inversés pour lisibilité sur fond clair */
  --cream:         #1C1412;
  --white:         #1C1412;
  --text-primary:  #1C1412;
  --text-secondary:rgba(28,20,18,0.72);
  --text-muted:    rgba(28,20,18,0.42);

  /* Ombres adoucies sur fond clair */
  --shadow-gold:  0 0 28px rgba(154,124,26,0.12), 0 4px 16px rgba(0,0,0,0.12);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.15);

  /* Glassmorphism clair */
  --glass-bg:     rgba(255,255,255,0.85);
  --glass-border: rgba(154,124,26,0.18);
}

/* ── Overrides spécifiques thème clair ──────────────── */

/* Body */
html.light-mode body {
  background-color: var(--black);
  color: var(--text-primary);
}

/* Navbar */
html.light-mode .navbar.scrolled {
  background: rgba(247,244,238,0.94);
  border-bottom-color: var(--border);
}

/* Cards */
html.light-mode .card {
  background: var(--surface);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}
html.light-mode .card:hover {
  box-shadow: var(--shadow-gold);
}

/* Hero blobs : teinte chaude atténuée sur fond clair */
html.light-mode .hero-blob {
  opacity: 0.06;
}

/* Sections alternées */
html.light-mode .about-section,
html.light-mode .modules-section,
html.light-mode .pricing-section {
  background: var(--deep);
}
html.light-mode .benefits-section,
html.light-mode .testimonials-section,
html.light-mode .faq-section {
  background: var(--black);
}

/* Module cards */
html.light-mode .module-card {
  background: var(--surface);
  border-color: var(--border-light);
}
html.light-mode .module-card:hover {
  border-color: var(--border);
  background: var(--surface2);
}

/* Benefit cards */
html.light-mode .benefit-card {
  background: var(--surface);
  border-color: var(--border-light);
}
html.light-mode .benefit-card h3 { color: var(--cream); }

/* Testimonials */
html.light-mode .testimonial-card {
  background: var(--surface);
  border-color: var(--border-light);
}

/* Pricing */
html.light-mode .pricing-card {
  background: var(--surface);
  border-color: var(--border-light);
}
html.light-mode .pricing-card.featured {
  background: linear-gradient(160deg, rgba(154,124,26,0.07) 0%, var(--surface) 50%);
  border-color: rgba(154,124,26,0.35);
  box-shadow: 0 0 48px rgba(154,124,26,0.1);
}

/* FAQ */
html.light-mode .faq-item {
  background: var(--surface);
  border-color: var(--border-light);
}
html.light-mode .faq-question { color: var(--cream); }

/* Footer */
html.light-mode footer {
  background: var(--deep);
  border-top-color: var(--border-light);
}

/* Forms */
html.light-mode .form-input {
  background: var(--surface2);
  border-color: var(--border-light);
  color: var(--cream);
}
html.light-mode .form-input:focus {
  border-color: rgba(154,124,26,0.5);
  box-shadow: 0 0 0 3px rgba(154,124,26,0.09);
}

/* Auth page */
html.light-mode .auth-form-container { background: var(--black); }
html.light-mode .auth-visual {
  background: linear-gradient(160deg, #f0e8d0 0%, #e8dfc8 50%, #f5ecd8 100%);
}
html.light-mode .auth-visual-logo { color: var(--gold-dark); }
html.light-mode .auth-visual-quote { color: rgba(28,20,18,0.65); }

/* Buttons outline : adapter au fond clair */
html.light-mode .btn-ghost {
  color: rgba(28,20,18,0.55);
  border-color: rgba(0,0,0,0.12);
}
html.light-mode .btn-ghost:hover {
  color: var(--cream);
  border-color: rgba(0,0,0,0.22);
  background: rgba(0,0,0,0.05);
}

/* Scrollbar clair */
html.light-mode ::-webkit-scrollbar-track { background: var(--deep); }
html.light-mode ::-webkit-scrollbar-thumb { background: var(--gold-dark); }

/* Section tag */
html.light-mode .section-tag {
  background: rgba(154,124,26,0.08);
  border-color: rgba(154,124,26,0.2);
}

/* Notifications */
html.light-mode .notification.info {
  background: rgba(240,236,228,0.95);
  border-color: rgba(154,124,26,0.3);
  color: var(--gold-dark);
}
html.light-mode .notification.success {
  background: rgba(230,245,235,0.95);
  border-color: rgba(52,211,153,0.3);
}
html.light-mode .notification.error {
  background: rgba(245,230,230,0.95);
  border-color: rgba(248,113,113,0.3);
}

/* Toggle button itself (indicator visuel) */
html.light-mode .theme-toggle {
  background: rgba(154,124,26,0.15);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--black);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: default;
  /* Anti-select global */
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

body.allow-select { user-select: text; }

::selection { background: rgba(212,175,55,0.3); color: var(--cream); }

img { max-width: 100%; height: auto; display: block; pointer-events: none; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 600; }

p { color: var(--text-secondary); line-height: 1.8; }

.text-gold { color: var(--gold); }
.text-cream { color: var(--cream); }
.text-muted { color: var(--text-muted); }
.italic { font-style: italic; }

/* ── Loader ── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }

.loader-logo {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  animation: pulse 1.8s ease infinite;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: var(--surface3);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 2px;
  animation: loading 1.8s ease-in-out forwards;
}
@keyframes loading { from { width: 0; } to { width: 100%; } }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition);
}
.navbar.scrolled {
  background: rgba(8,8,8,0.92);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(10,10,10,0.97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px 5% 32px;
  z-index: 999;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.mobile-menu.active { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.mobile-menu a { color: var(--text-secondary); font-size: 1.1rem; display: block; padding: 8px 0; border-bottom: 1px solid var(--border-light); transition: color var(--transition); }
.mobile-menu a:hover { color: var(--gold); }

/* Bouton X de fermeture dans le menu mobile */
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.mobile-menu-close:hover { color: var(--gold); background: rgba(212,175,55,0.08); }

/* Overrides du menu mobile en thème clair */
html.light-mode .mobile-menu {
  background: rgba(247, 244, 238, 0.98);
  border-bottom-color: var(--border);
}
html.light-mode .mobile-menu a {
  color: var(--text-primary);
  border-bottom-color: var(--border-light);
}
html.light-mode .mobile-menu-close {
  color: var(--text-muted);
}

/* Overlay derrière le menu mobile (clic pour fermer) */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: rgba(0,0,0,0.6);
  z-index: 998;
  cursor: pointer;
}
.mobile-overlay.active { display: block; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}
.btn:hover::before { transform: translateX(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--black);
  box-shadow: 0 4px 20px rgba(212,175,55,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212,175,55,0.45);
  color: var(--black);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.5);
}
.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(212,175,55,0.08);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover {
  color: var(--cream);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

.btn-lg { padding: 16px 40px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-icon { padding: 12px; border-radius: var(--radius-sm); }

/* ── Section Styles ── */
section { position: relative; padding: 100px 5%; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  background: rgba(212,175,55,0.05);
}
.section-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: blink 2s ease infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 20px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 56px;
}
.section-header { text-align: center; }
.section-header .section-subtitle { margin: 0 auto 56px; }

/* ── Grid Layouts ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover { border-color: var(--border); transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.card:hover::before { opacity: 1; }

.card-glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;              /* ← crée un stacking context dédié */
  -webkit-transform: translateZ(0);/* ← contient les layers enfants sur iOS */
  transform: translateZ(0);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: drift 12s ease-in-out infinite;
  will-change: transform;          /* ← isole sur son propre layer GPU */
  transform: translateZ(0);        /* ← force le layer sans attendre l'animation */
  -webkit-transform: translateZ(0);
}
.hero-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--gold), var(--amber));
  top: -200px; right: -100px;
  animation-delay: 0s;
}
.hero-blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--gold-dark), var(--amber));
  bottom: -100px; left: 5%;
  animation-delay: 4s;
}
.hero-blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #8B5A2B, var(--gold));
  top: 40%; left: 50%;
  animation-delay: 8s;
  opacity: 0.08;
}
@keyframes drift {
  0%,100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Noise texture overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 900px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  animation: fadeInDown 0.8s ease 0.2s both;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: blink 2s ease infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
  animation: fadeInUp 0.8s ease 1.0s both;
}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ── Animations ── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── About Section ── */
.about-section { background: var(--deep); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.about-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--gold-dark), transparent, var(--gold));
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.4;
}
.about-visual {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, #1a1a0a 0%, #0a0a0a 40%, #1a0e00 70%, #0d0800 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(212,175,55,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 20%, rgba(200,130,12,0.1) 0%, transparent 50%);
}

.about-features { display: flex; flex-direction: column; gap: 24px; margin-top: 36px; }
.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.about-feature:hover { border-color: var(--border); background: var(--surface2); }
.about-feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.about-feature h4 { font-size: 1rem; color: var(--cream); margin-bottom: 4px; }
.about-feature p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* ── Benefits Section ── */
.benefits-section {
  background: linear-gradient(180deg, var(--black) 0%, var(--deep) 100%);
}
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.benefit-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.benefit-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-gold); border-color: var(--border); }
.benefit-card:hover::before { opacity: 1; }

.benefit-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(212,175,55,0.12), rgba(212,175,55,0.04));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
  transition: all var(--transition);
}
.benefit-card:hover .benefit-icon {
  background: linear-gradient(135deg, rgba(212,175,55,0.2), rgba(212,175,55,0.08));
  box-shadow: 0 0 24px rgba(212,175,55,0.2);
}
.benefit-card h3 { font-size: 1.3rem; color: var(--cream); margin-bottom: 12px; }
.benefit-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.benefit-number {
  position: absolute;
  top: 16px; right: 20px;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(212,175,55,0.06);
  line-height: 1;
}

/* ── Modules Section ── */
.modules-section { background: var(--deep); }
.modules-grid { display: flex; flex-direction: column; gap: 16px; max-width: 880px; margin: 0 auto; }

.module-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.module-card:hover { border-color: var(--border); }
.module-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  cursor: pointer;
}
.module-card-left { display: flex; align-items: center; gap: 18px; }
.module-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-dark);
  width: 48px;
  text-align: center;
  opacity: 0.6;
}
.module-info h4 { color: var(--cream); font-size: 1.05rem; margin-bottom: 4px; }
.module-info span { font-size: 0.82rem; color: var(--text-muted); }

.module-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.module-badge {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.badge-free { background: rgba(52,211,153,0.1); color: #34D399; border: 1px solid rgba(52,211,153,0.2); }
.badge-premium { background: rgba(212,175,55,0.1); color: var(--gold); border: 1px solid var(--border); }
.badge-locked { background: rgba(255,255,255,0.04); color: var(--text-muted); border: 1px solid var(--border-light); }

.module-toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.module-card.open .module-toggle { transform: rotate(180deg); border-color: var(--border); color: var(--gold); }

.module-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  border-top: 0px solid transparent;
}
.module-card.open .module-body {
  max-height: 500px;
  border-top: 1px solid var(--border-light);
}
.module-lessons { padding: 8px 0; }
.module-lesson {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 28px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
}
.module-lesson:hover { background: rgba(212,175,55,0.04); color: var(--cream); }
.lesson-icon { font-size: 0.85rem; width: 20px; text-align: center; color: var(--text-muted); }
.lesson-duration { margin-left: auto; font-size: 0.78rem; color: var(--text-muted); }

/* ── Testimonials ── */
.testimonials-section { background: var(--black); }
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all var(--transition);
}
.testimonial-card:hover { border-color: var(--border); transform: translateY(-4px); }
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px; right: 24px;
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(212,175,55,0.08);
  line-height: 1;
  font-weight: 700;
}
.testimonial-stars { display: flex; gap: 4px; margin-bottom: 16px; }
.testimonial-stars span { color: var(--gold); font-size: 0.85rem; }
.testimonial-text { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--amber));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--cream); }
.testimonial-role { font-size: 0.78rem; color: var(--text-muted); }

/* ── Pricing Section ── */
.pricing-section { background: var(--deep); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.pricing-card.featured {
  border-color: rgba(212,175,55,0.4);
  background: linear-gradient(160deg, rgba(212,175,55,0.06) 0%, var(--surface) 50%);
  box-shadow: 0 0 60px rgba(212,175,55,0.1);
}
.pricing-card.featured::before {
  content: 'Recommandé';
  position: absolute;
  top: 20px; right: -28px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 40px;
  transform: rotate(40deg);
  transform-origin: center;
}
.pricing-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 12px; }
.pricing-name { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; color: var(--cream); margin-bottom: 8px; }
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 24px 0;
}
.pricing-currency { font-size: 1.2rem; color: var(--gold); font-weight: 600; margin-top: 8px; }
.pricing-amount { font-family: var(--font-display); font-size: 3.5rem; font-weight: 700; color: var(--cream); line-height: 1; }
.pricing-period { font-size: 0.85rem; color: var(--text-muted); }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 28px 0 36px; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.pricing-features li::before {
  content: '✓';
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(52,211,153,0.1);
  border: 1px solid rgba(52,211,153,0.2);
  color: #34D399;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.pricing-features li.locked { color: var(--text-muted); }
.pricing-features li.locked::before { content: '✕'; background: rgba(255,255,255,0.04); border-color: var(--border-light); color: var(--text-muted); }

/* ── FAQ ── */
.faq-section { background: var(--black); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item.open { border-color: var(--border); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 500;
  color: var(--cream);
  font-size: 0.95rem;
}
.faq-question:hover { color: var(--gold); }
.faq-icon { color: var(--gold); font-size: 1.2rem; transition: transform var(--transition); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer-inner { padding: 0 24px 20px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; }
.faq-item.open .faq-answer { max-height: 300px; }

/* ── Footer ── */
footer {
  background: var(--deep);
  border-top: 1px solid var(--border-light);
  padding: 72px 5% 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.8; margin-top: 16px; max-width: 280px; }
.footer-socials { display: flex; gap: 12px; margin-top: 24px; }
.footer-social {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition);
  text-decoration: none;
}
.footer-social:hover { background: rgba(212,175,55,0.1); border-color: var(--border); color: var(--gold); }

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}
.form-input:focus { border-color: rgba(212,175,55,0.5); box-shadow: 0 0 0 3px rgba(212,175,55,0.08); }
.form-input::placeholder { color: var(--text-muted); }
.form-error { font-size: 0.8rem; color: #f87171; margin-top: 6px; display: none; }
.form-error.show { display: block; }

/* ── Auth Pages ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  background: var(--black);
}
.auth-visual {
  width: 45%;
  background: linear-gradient(160deg, #100d00 0%, #080500 40%, #1a0e00 70%, #0a0600 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.auth-visual-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
}
.auth-visual-blob-1 { width: 300px; height: 300px; background: var(--gold); top: -50px; right: -50px; }
.auth-visual-blob-2 { width: 200px; height: 200px; background: var(--amber); bottom: 50px; left: 0; opacity: 0.1; }

.auth-visual-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 400px;
}
.auth-visual-logo {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 24px;
}
.auth-visual-quote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: rgba(245,240,232,0.7);
  line-height: 1.6;
  margin-bottom: 32px;
}
.auth-stats { display: flex; gap: 32px; justify-content: center; }
.auth-stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--gold); }
.auth-stat-label { font-size: 0.78rem; color: var(--text-muted); }

.auth-form-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
}
.auth-form-box { width: 100%; max-width: 440px; }
.auth-form-title { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; margin-bottom: 8px; }
.auth-form-subtitle { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 40px; }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }
.auth-divider span { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.auth-switch { text-align: center; margin-top: 28px; font-size: 0.88rem; color: var(--text-muted); }

/* ── Notifications ── */
.notification-container { position: fixed; top: 88px; right: 24px; z-index: 5000; display: flex; flex-direction: column; gap: 10px; }
.notification {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid;
  animation: notifIn 0.4s ease both;
  cursor: pointer;
}
.notification.success { background: rgba(16,30,16,0.9); border-color: rgba(52,211,153,0.3); color: #34D399; }
.notification.error { background: rgba(30,16,16,0.9); border-color: rgba(248,113,113,0.3); color: #f87171; }
.notification.info { background: rgba(10,10,20,0.9); border-color: var(--border); color: var(--gold); }
@keyframes notifIn { from { opacity:0; transform: translateX(40px); } to { opacity:1; transform: translateX(0); } }
@keyframes notifOut { from { opacity:1; transform: translateX(0); } to { opacity:0; transform: translateX(40px); } }
.notification.out { animation: notifOut 0.3s ease both; }

/* ── Progress Bar ── */
.progress-bar-wrapper { height: 6px; background: var(--surface3); border-radius: 3px; overflow: hidden; margin: 8px 0; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); border-radius: 3px; transition: width 0.6s ease; }

/* ── Dark mode toggle ── */
.theme-toggle {
  width: 40px; height: 22px;
  border-radius: 11px;
  background: var(--surface3);
  border: 1px solid var(--border-light);
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  transition: transform var(--transition);
}
.theme-toggle.light { background: rgba(212,175,55,0.2); }
.theme-toggle.light::after { transform: translateX(18px); }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image-wrapper { max-width: 500px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  section { padding: 72px 5%; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-track { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .hero-stats { gap: 28px; }
  .auth-visual { display: none; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .benefits-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
