/**
 * Sit-vif — thème dark unifié (aligné landing principale)
 * Charger APRÈS site.css sur les pages annexes.
 */
:root,
[data-theme="light"],
[data-theme="dark"],
html {
  --bg: #020617 !important;
  --surface: #0b1120 !important;
  --text: #f8fafc !important;
  --muted: #94a3b8 !important;
  --line: #1e293b !important;
  --accent: #10b981 !important;
  --accent-dark: #34d399 !important;
  --accent-soft: rgba(16, 185, 129, 0.14) !important;
  --bolt: #fbbf24 !important;
  --mint: #34d399 !important;
  --radius: 12px !important;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5) !important;
  --header-bg: rgba(11, 17, 32, 0.75) !important;
  --preview-chrome: #1e293b !important;
  --phone-bg: #1e293b !important;
  --bar-dull: #334155 !important;
  --bar-faint: #1e293b !important;
  color-scheme: dark;
}

html {
  background: #020617;
}

body {
  background: #020617 !important;
  color: var(--text) !important;
  min-height: 100vh;
}

/* Ambient glow (pages annexes) */
body.theme-premium::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 40% at 50% -10%, rgba(16, 185, 129, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 40%, rgba(16, 185, 129, 0.06), transparent 50%),
    #020617;
}

/* —— Header flottant glass (cohérent landing) —— */
body.theme-premium .site-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  margin: 0 16px 8px;
  padding: 0;
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
}

body.theme-premium .site-header .wrap.header-shell,
body.theme-premium .site-header .header-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  border-radius: 16px;
  border: 1px solid rgba(30, 41, 59, 0.9);
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.06), 0 16px 40px -12px rgba(0, 0, 0, 0.5);
}

body.theme-premium .site-header.is-scrolled .header-shell {
  background: rgba(11, 17, 32, 0.85) !important;
}

body.theme-premium .logo-wordmark {
  /* Prefer light wordmark if dark logo not swapped */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

body.theme-premium .main-nav a,
body.theme-premium .nav-dropdown-btn {
  color: #94a3b8 !important;
}

body.theme-premium .main-nav a:hover,
body.theme-premium .nav-dropdown-btn:hover {
  color: #fff !important;
}

body.theme-premium .nav-dropdown-menu {
  background: #0b1120 !important;
  border-color: #1e293b !important;
  box-shadow: var(--shadow-lg);
}

body.theme-premium .nav-dropdown-menu a {
  color: #cbd5e1 !important;
}

body.theme-premium .nav-dropdown-menu a:hover {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981 !important;
}

body.theme-premium .btn.primary,
body.theme-premium .header-cta-btn {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #020617 !important;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.3), 0 8px 24px rgba(16, 185, 129, 0.25);
  font-weight: 600;
}

body.theme-premium .btn.primary:hover {
  background: #34d399 !important;
  border-color: #34d399 !important;
  color: #020617 !important;
}

body.theme-premium .btn.ghost {
  border-color: #334155 !important;
  color: #e2e8f0 !important;
  background: transparent !important;
}

body.theme-premium .btn.ghost:hover {
  border-color: #64748b !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

/* Hide theme toggle on premium annexes (always dark) */
body.theme-premium .theme-toggle {
  display: none !important;
}

body.theme-premium .lang-switch {
  border: 1px solid #1e293b;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

body.theme-premium .lang-btn {
  color: #64748b !important;
  background: transparent !important;
}

body.theme-premium .lang-btn.active {
  color: #10b981 !important;
  background: rgba(16, 185, 129, 0.12) !important;
}

body.theme-premium .nav-toggle span {
  background: #e2e8f0 !important;
}

body.theme-premium .faq-page-main,
body.theme-premium .page-calculateur-main {
  padding-top: 24px;
  padding-bottom: 48px;
}

body.theme-premium .faq-page-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  align-items: center;
}

body.theme-premium .mobile-nav {
  background: #0b1120 !important;
  border-color: #1e293b !important;
}

body.theme-premium .mobile-nav a {
  color: #cbd5e1 !important;
}

/* —— Sections & typo —— */
body.theme-premium .section-label {
  color: #10b981 !important;
  letter-spacing: 0.14em;
}

body.theme-premium .section-title,
body.theme-premium h1,
body.theme-premium .legal-content h1 {
  color: #fff !important;
  letter-spacing: -0.03em;
}

body.theme-premium .section-lead,
body.theme-premium .legal-updated,
body.theme-premium .legal-content p,
body.theme-premium .legal-content li {
  color: #94a3b8 !important;
}

body.theme-premium .section-alt {
  background: transparent !important;
  border-color: #1e293b !important;
}

body.theme-premium .legal-content a,
body.theme-premium main a:not(.btn) {
  color: #10b981;
}

body.theme-premium .legal-content a:hover {
  color: #34d399;
}

/* Cards / FAQ / ROI */
body.theme-premium .faq details,
body.theme-premium .faq-item,
body.theme-premium .pillar,
body.theme-premium .agent-card,
body.theme-premium .roi-card,
body.theme-premium .roi-brussels,
body.theme-premium .audit-card,
body.theme-premium .quiz-card,
body.theme-premium .maintenance-card,
body.theme-premium .compare-wrap,
body.theme-premium .contact-form,
body.theme-premium .contact-aside {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid #1e293b !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  color: #e2e8f0;
}

body.theme-premium .faq-tabs button,
body.theme-premium .faq-tab {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid #1e293b !important;
  color: #94a3b8 !important;
  border-radius: 999px;
}

body.theme-premium .faq-tab.active,
body.theme-premium .faq-tabs button.active {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #10b981 !important;
}

body.theme-premium .roi-prime-banner,
body.theme-premium .roi-prime-banner-inner {
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid rgba(16, 185, 129, 0.25) !important;
  border-radius: 16px;
  color: #e2e8f0;
}

body.theme-premium .roi-prime-pill,
body.theme-premium .roi-brussels-badge {
  background: rgba(16, 185, 129, 0.2) !important;
  color: #10b981 !important;
}

body.theme-premium input,
body.theme-premium textarea,
body.theme-premium select {
  background: #020617 !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
  border-radius: 12px !important;
}

body.theme-premium input:focus,
body.theme-premium textarea:focus,
body.theme-premium select:focus {
  border-color: rgba(16, 185, 129, 0.5) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

body.theme-premium label {
  color: #94a3b8 !important;
}

/* Footer */
body.theme-premium footer {
  background: #020617 !important;
  border-top: 1px solid #1e293b !important;
  color: #64748b !important;
  margin-top: 48px;
  padding: 40px 0 48px;
}

body.theme-premium footer a {
  color: #94a3b8 !important;
}

body.theme-premium footer a:hover {
  color: #10b981 !important;
}

body.theme-premium .footer-meta,
body.theme-premium .footer-tagline {
  color: #64748b !important;
}

/* Legal page spacing */
body.theme-premium .legal-content {
  padding-top: 48px;
  padding-bottom: 64px;
  max-width: 720px;
}

body.theme-premium .legal-content h2 {
  color: #fff !important;
  margin-top: 2rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

body.theme-premium .merci-content {
  text-align: center;
  padding: 80px 24px;
}

body.theme-premium .merci-icon {
  color: #10b981;
}

/* Cookie banner if present */
body.theme-premium .cookie-banner {
  background: #0b1120 !important;
  border-color: #1e293b !important;
  color: #e2e8f0 !important;
}

/* Tables */
body.theme-premium table {
  border-color: #1e293b !important;
}

body.theme-premium th,
body.theme-premium td {
  border-color: #1e293b !important;
  color: #cbd5e1;
}

body.theme-premium th {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #fff !important;
}

/* Local preview strip on annexes */
body.theme-premium .premium-local-banner {
  display: none;
}
html.local-preview body.theme-premium .premium-local-banner {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}
