:root {
  --white: #ffffff;
  --off: #f9fafb;
  --light: #f3f4f6;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --faint: #9ca3af;
  --olive: #d4546f;
  --olive-bg: #fef2f5;
  --olive-border: #fcd5de;
  --red: #dc2626;
  --green: #16a34a;

  --font: 'Inter', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --white: #18181b;
  --off: #1f1f23;
  --light: #27272a;
  --border: #3f3f46;
  --text: #f4f4f5;
  --text-inv: #111827;
  --muted: #a1a1aa;
  --faint: #71717a;
  --olive: #e8728a;
  --olive-bg: #2d1a1f;
  --olive-border: #5c2d3a;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .btn-dark {
  background: #f4f4f5 !important;
  color: #111827 !important;
  box-shadow: none;
}

[data-theme="dark"] .btn-dark:hover {
  background: #e4e4e7 !important;
  opacity: 1;
}

[data-theme="dark"] .app-tab.on {
  background: #f4f4f5;
  color: #111827;
}

[data-theme="dark"] .plan.featured,
[data-theme="dark"] .cta-final {
  background: #f4f4f5;
  color: #111827;
}

[data-theme="dark"] .plan.featured .plan-name,
[data-theme="dark"] .plan.featured .plan-price,
[data-theme="dark"] .plan.featured .plan-period,
[data-theme="dark"] .plan.featured .plan-desc,
[data-theme="dark"] .plan.featured .plan-features li {
  color: #111827;
}

[data-theme="dark"] .plan.featured .plan-features li::before {
  color: var(--olive);
}

[data-theme="dark"] .plan-btn-white {
  background: #111827;
  color: #f4f4f5;
}

[data-theme="dark"] .cta-final h2 {
  color: #111827;
}

[data-theme="dark"] .cta-final p {
  color: rgba(17, 24, 39, 0.6);
}

/* Bouton du CTA final : section claire en dark mode → bouton foncé */
[data-theme="dark"] .btn-white {
  background: #111827;
  color: #f4f4f5;
}

[data-theme="dark"] .nav {
  background: rgba(24, 24, 27, 0.92);
}

[data-theme="dark"] .demo-bar {
  background: #27272a;
}

[data-theme="dark"] .demo-btn-pub {
  background: #f4f4f5;
  color: #111827;
}
