/* ============================================================
   WEBONESS — SYSTÈME DE THÈMES
   Thème sombre = défaut (:root dans variables.css)
   Thème clair  = [data-theme="light"]
   ============================================================ */

/* ── Bouton de bascule ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--color-slate);
  cursor: none;
  flex-shrink: 0;
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}
.theme-toggle:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.28);
  background-color: rgba(255, 255, 255, 0.06);
}

/* ============================================================
   THÈME CLAIR — [data-theme="light"]
   ============================================================ */

/* ── 1. Variables CSS ── */
[data-theme="light"] {
  /* Fonds */
  --color-night:      #ECF1F6;
  --color-night2:     #DDE5EE;

  /* Texte — blanc devient sombre */
  --color-white:      #0F172A;
  --color-slate:      #64748B;
  --color-slate2:     #94A3B8;

  /* Couleurs de marque — assombries pour lisibilité sur blanc */
  --color-green:      #00956D;
  --color-purple:     #7C3AED;

  /* Sémantiques */
  --color-bg:         #ECF1F6;
  --color-bg-card:    #F4F7FA;
  --color-text:       #0F172A;
  --color-text-muted: #64748B;
  --color-accent:     #00956D;

  /* Ombres allégées */
  --shadow-sm:     0 1px 3px rgba(0, 0, 0, 0.07);
  --shadow-md:     0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg:     0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-green:  0 0 20px rgba(0, 149, 109, 0.2);
  --shadow-green2: 0 0 40px rgba(0, 149, 109, 0.1);
  --shadow-purple: 0 0 20px rgba(124, 58, 237, 0.15);
}

/* ── 2. Gradient text (vert → blanc devient vert → sombre) ── */
[data-theme="light"] .gradient-text {
  background: linear-gradient(90deg, #00956D 0%, #0F172A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 3. Logo (bouton power) ──
   Le logo s'adapte automatiquement au thème via les variables :
   .logo-web = var(--color-white), .logo-ness = var(--color-green),
   et le symbole power (stroke) = var(--color-night).
   En mode clair, on assombrit légèrement le disque vert pour la lisibilité. */
[data-theme="light"] .logo-power circle {
  fill: #00B884;
}

/* ── 4. Dot grid ── */
[data-theme="light"] .bg-dots {
  background-image: radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px);
}

/* ── 5. Glow effects ── */
[data-theme="light"] .glow-green::before {
  background: radial-gradient(ellipse at 70% 20%, rgba(0, 149, 109, 0.07) 0%, transparent 60%);
}
[data-theme="light"] .glow-purple::before {
  background: radial-gradient(ellipse at 30% 80%, rgba(124, 58, 237, 0.05) 0%, transparent 60%);
}

/* ── 6. Halos ── */
[data-theme="light"] .halo--green {
  background: radial-gradient(ellipse, rgba(0, 149, 109, 0.12) 0%, transparent 70%);
}
[data-theme="light"] .halo--purple {
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
}

/* ── 7. Dividers ── */
[data-theme="light"] .divider,
[data-theme="light"] .footer-divider {
  background: linear-gradient(90deg, transparent, rgba(0,149,109,.4), rgba(124,58,237,.4), transparent);
}

/* ── 8. Navbar ── */
[data-theme="light"] .navbar.scrolled {
  background-color: rgba(236, 241, 246, 0.95);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .nav-link { color: #64748B; }
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active { color: #0F172A; }
[data-theme="light"] .nav-hamburger span { background-color: #0F172A; }

/* Toggle bouton sur thème clair */
[data-theme="light"] .theme-toggle { border-color: rgba(0, 0, 0, 0.12); }
[data-theme="light"] .theme-toggle:hover {
  color: #0F172A;
  border-color: rgba(0, 0, 0, 0.28);
  background-color: rgba(0, 0, 0, 0.05);
}

/* ── 9. Mobile drawer ── */
[data-theme="light"] .nav-drawer {
  background-color: #ECF1F6;
  border-left-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .nav-drawer-link { color: #64748B; }
[data-theme="light"] .nav-drawer-link:hover,
[data-theme="light"] .nav-drawer-link.active {
  color: #0F172A;
  background-color: rgba(0, 0, 0, 0.04);
}

/* ── 10. Cards ── */
[data-theme="light"] .card {
  background-color: #F4F7FA;
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .card:hover {
  border-color: rgba(0, 149, 109, 0.3);
}
[data-theme="light"] .card--featured {
  background: linear-gradient(135deg, rgba(0,149,109,.04) 0%, #FFFFFF 40%);
  border-color: rgba(0, 149, 109, 0.35);
}
[data-theme="light"] .card--purple:hover {
  border-color: rgba(124, 58, 237, 0.3);
}

/* ── 11. Buttons ── */
[data-theme="light"] .btn--primary {
  /* La couleur "night" devient claire en light mode — on force le texte blanc */
  color: #FFFFFF;
}
[data-theme="light"] .btn--ghost {
  background-color: rgba(0, 0, 0, 0.04);
  color: #64748B;
  border-color: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] .btn--ghost:hover {
  background-color: rgba(0, 0, 0, 0.08);
  color: #0F172A;
}
[data-theme="light"] .btn--outline {
  border-color: #00956D;
  color: #00956D;
}

/* ── 12. Badges ── */
[data-theme="light"] .badge--green-outline {
  background-color: rgba(0, 149, 109, 0.08);
  color: #00956D;
  border-color: rgba(0, 149, 109, 0.25);
}

/* ── 13. Formulaires ── */
[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea,
[data-theme="light"] .form-select {
  background-color: #F4F7FA;
  border-color: rgba(0, 0, 0, 0.15);
  color: #0F172A;
}

[data-theme="light"] .form-select option {
  background-color: #F4F7FA;
  color: #0F172A;
}
[data-theme="light"] .form-input::placeholder,
[data-theme="light"] .form-textarea::placeholder { color: #94A3B8; }
[data-theme="light"] .form-checkbox { border-color: rgba(0, 0, 0, 0.2); }

/* ── 14. Tabs ── */
[data-theme="light"] .tabs { border-bottom-color: rgba(0, 0, 0, 0.1); }
[data-theme="light"] .tab-btn { color: #64748B; }
[data-theme="light"] .tab-btn:hover { color: #0F172A; }
[data-theme="light"] .tab-btn.active {
  color: #00956D;
  border-bottom-color: #00956D;
}

/* ── 15. Accordéon (FAQ) ── */
[data-theme="light"] .accordion-item { border-bottom-color: rgba(0, 0, 0, 0.08); }
[data-theme="light"] .accordion-trigger { color: #0F172A; }

/* ── 16. Steps (configurateur) ── */
[data-theme="light"] .step-dot {
  border-color: rgba(0, 0, 0, 0.15);
  color: #64748B;
  background-color: #F4F7FA;
}
[data-theme="light"] .step-line { background-color: rgba(0, 0, 0, 0.1); }

/* ── 17. Footer ── */
[data-theme="light"] .footer {
  background-color: #DDE5EE;
  border-top-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .footer-link { color: #64748B; }
[data-theme="light"] .footer-link:hover { color: #00956D; }
[data-theme="light"] .footer-bottom p,
[data-theme="light"] .footer-bottom a { color: #94A3B8; }
[data-theme="light"] .footer-social-link {
  border-color: rgba(0, 0, 0, 0.12);
  color: #64748B;
}
[data-theme="light"] .footer-social-link:hover {
  color: #00956D;
  border-color: rgba(0, 149, 109, 0.3);
  background-color: rgba(0, 149, 109, 0.05);
}

/* ── 18. Hero showcase — dégradés de bords ── */
[data-theme="light"] .hero-showcase::before {
  background: linear-gradient(to right, var(--color-bg) 0%, transparent 100%);
}
[data-theme="light"] .hero-showcase::after {
  background: linear-gradient(to left, var(--color-bg) 0%, transparent 100%);
}

/* ── 19. Curseur ── */
[data-theme="light"] .cursor-dot { background-color: #0F172A; }
[data-theme="light"] .cursor-ring { border-color: rgba(0, 149, 109, 0.6); }

/* ── 20. Sélection ── */
[data-theme="light"] ::selection {
  background-color: rgba(0, 149, 109, 0.15);
  color: #0F172A;
}

/* ── 21. Focus visible ── */
[data-theme="light"] :focus-visible { outline-color: #00956D; }

/* ── 22. Testimonials placeholder ── */
[data-theme="light"] .testimonials-placeholder { border-color: rgba(0, 0, 0, 0.1); }

/* ── 23. Services / Packs — éléments page-spécifiques ── */
[data-theme="light"] .services-cta-banner,
[data-theme="light"] .packs-comparison-banner {
  background: rgba(0, 149, 109, 0.07);
  border-color: rgba(0, 149, 109, 0.2);
  color: #0F172A;
}
[data-theme="light"] .phase-note {
  background: rgba(0, 149, 109, 0.06);
  border-color: rgba(0, 149, 109, 0.18);
  color: #0F172A;
}
[data-theme="light"] .phase-note--purple {
  background: rgba(124, 58, 237, 0.05);
  border-color: rgba(124, 58, 237, 0.18);
}
[data-theme="light"] .packs-bottom-cta {
  border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .why-item-icon {
  background-color: rgba(0, 149, 109, 0.08);
  border-color: rgba(0, 149, 109, 0.18);
}
[data-theme="light"] .service-card .service-price { color: #00956D; }
