/* ── Variables sombres ── */
[data-theme="dark"] {
  --bg:     #060a12;
  --card:   rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --red:    #e94560;
  --accent: #e94560;
  --orange: #f97316;
  --text:   #f0f4ff;
  --muted:  rgba(240,244,255,0.5);
}

/* ── Variables claires ── */
[data-theme="light"] {
  --bg:     #ffffff;
  --card:   #ffffff;
  --border: #e2e8f0;
  --red:    #e94560;
  --accent: #e94560;
  --orange: #f97316;
  --text:   #0f172a;
  --muted:  #475569;
}

body {
  background-color: var(--bg);
  color: var(--text);
}

/* Particules : visibles uniquement en sombre */
#bg-canvas { display: none; }
[data-theme="dark"] #bg-canvas { display: block; }

/* Orbes : masqués en clair */
.orb { display: block; }
[data-theme="light"] .orb { display: none; }

/* Grille de fond : masquée en clair */
.grid-floor { display: block; }
[data-theme="light"] .grid-floor { display: none !important; }

/* Toggle bouton */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 9px; cursor: pointer; flex-shrink: 0;
  color: rgba(240,244,255,0.7);
  transition: border-color .2s, color .2s, background .2s;
}
.theme-toggle:hover {
  border-color: rgba(233,69,96,.45);
  color: #e94560;
}

[data-theme="light"] .theme-toggle {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.14);
  color: rgba(13,17,23,0.65);
}
[data-theme="light"] .theme-toggle:hover {
  border-color: rgba(233,69,96,.5);
  color: #e94560;
}

/* Icônes lune / soleil */
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: none;  }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none;  }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none;  }

/* Surfaces claires (hors overlay) */
[data-theme="light"] .nav {
  background: rgba(255,255,255,0.93);
  border-bottom-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .feat-card,
[data-theme="light"] .price-card,
[data-theme="light"] .comp-card,
[data-theme="light"] .faq-wrap,
[data-theme="light"] .hero-box,
[data-theme="light"] .feat-item,
[data-theme="light"] .stat-card,
[data-theme="light"] .mission,
[data-theme="light"] .value-card,
[data-theme="light"] .team-card,
[data-theme="light"] .contact-card,
[data-theme="light"] .step,
[data-theme="light"] .toc,
[data-theme="light"] .article-card,
[data-theme="light"] .compare-cta,
[data-theme="light"] .article-intro,
[data-theme="light"] .highlight-card {
  background: #ffffff;
  border-color: var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

/* Navigation en mode clair */
[data-theme="light"] .nav-links a {
  color: var(--muted) !important;
}
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
  color: #e94560 !important;
}

/* Textes lisibles en mode clair */
[data-theme="light"] .feat-desc,
[data-theme="light"] .plan-desc,
[data-theme="light"] .hero-sub,
[data-theme="light"] .section-sub,
[data-theme="light"] .feat-text,
[data-theme="light"] .article-excerpt,
[data-theme="light"] .faq-body,
[data-theme="light"] .article-body p,
[data-theme="light"] .article-body li,
[data-theme="light"] .story-text p,
[data-theme="light"] .value-desc,
[data-theme="light"] .team-bio,
[data-theme="light"] .contact-info p,
[data-theme="light"] .contact-info a,
[data-theme="light"] .page-intro,
[data-theme="light"] .cta-text,
[data-theme="light"] .cta-final p,
[data-theme="light"] .cta-inline p,
[data-theme="light"] .stat-label,
[data-theme="light"] .scanner-note,
[data-theme="light"] .max-feature,
[data-theme="light"] .btn-ghost,
[data-theme="light"] .btn-outline {
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MENU HAMBURGER OVERLAY – PREMIUM DESIGN
   ═══════════════════════════════════════════════════════════════════════════ */
.nav-overlay {
  position: fixed; inset: 0; z-index: 290;
  background: rgba(6,10,18,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 100px 32px 48px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-check-input:checked ~ .nav-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-overlay a {
  font-family: 'Orbitron', monospace;
  font-size: 1.15em;
  font-weight: 700;
  color: rgba(240,244,255,0.75);
  text-decoration: none;
  letter-spacing: 2px;
  padding: 18px 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s, background 0.2s, transform 0.2s;
  position: relative;
}
.nav-overlay a:last-child {
  border-bottom: none;
}
.nav-overlay a:hover {
  color: #e94560;
  background: rgba(233,69,96,0.08);
  transform: scale(1.03);
}

/* Bouton CTA dans l'overlay */
.nav-overlay-cta {
  margin-top: 28px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 14px 36px !important;
  background: linear-gradient(90deg,#e94560,#f97316) !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-size: 0.78em !important;
  letter-spacing: 1.5px !important;
  border-bottom: none !important;
  width: auto !important;
  box-shadow: 0 6px 24px rgba(233,69,96,.35);
}
.nav-overlay-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 32px rgba(233,69,96,0.5) !important;
}

/* ── Mode clair pour l'overlay ── */
[data-theme="light"] .nav-overlay {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

[data-theme="light"] .nav-overlay a {
  color: var(--text);
  border-bottom-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .nav-overlay a:hover {
  color: #e94560;
  background: rgba(233,69,96,0.06);
}

/* Position mobile */
@media (max-width: 1024px) {
  .theme-toggle {
    margin-left: auto;
  }
}