/* ============================================
   PILOTON - Dark Theme Override for Landing Pages
   Appliqué sur body.dark-theme
   Palette: #0f0f1a bg, #667eea/#a855f7 gradients
   ============================================ */

/* ============================================
   VARIABLES OVERRIDE
   ============================================ */
body.dark-theme {
    --gray-50: #1a1a2e;
    --gray-100: #16162a;
    --gray-200: rgba(255, 255, 255, 0.1);
    --gray-300: rgba(255, 255, 255, 0.15);
    --gray-400: #8b8fa3;
    --gray-500: #a0aec0;
    --gray-600: #cbd5e0;
    --gray-700: #e2e8f0;
    --gray-800: #f0f0f5;
    --gray-900: #ffffff;
    --white: #0f0f1a;
    --black: #ffffff;

    background: #0f0f1a;
    color: #e2e8f0;
}

/* ============================================
   NAVBAR DARK
   ============================================ */
body.dark-theme .navbar {
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.dark-theme .navbar.scrolled {
    background: rgba(15, 15, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

body.dark-theme .nav-brand .logo {
    color: #ffffff;
}

body.dark-theme .nav-links a {
    color: #a0aec0;
}

body.dark-theme .nav-links a:hover {
    color: #ffffff;
}

body.dark-theme .nav-links a.audit-link {
    background: linear-gradient(135deg, #667eea 0%, #a855f7 100%);
    color: white;
}

body.dark-theme .mobile-menu-toggle span {
    background: #e2e8f0;
}

body.dark-theme .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-theme .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(102, 126, 234, 0.5);
    color: #ffffff;
}

body.dark-theme .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #a855f7 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

body.dark-theme .btn-primary:hover {
    background: linear-gradient(135deg, #7b93ff 0%, #b76aff 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* ============================================
   HERO DARK
   ============================================ */
body.dark-theme .hero {
    background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
}

body.dark-theme .hero-title {
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .hero-subtitle {
    color: #a0aec0;
}

body.dark-theme .hero-trust {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-theme .stat-value {
    color: #667eea;
}

body.dark-theme .stat-label {
    color: #8b8fa3;
}

body.dark-theme .mockup-browser {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body.dark-theme .browser-header {
    background: #16162a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.dark-theme .browser-dots span {
    background: rgba(255, 255, 255, 0.15);
}

body.dark-theme .browser-dots span:nth-child(1) {
    background: #ef4444;
}

body.dark-theme .browser-dots span:nth-child(2) {
    background: #f59e0b;
}

body.dark-theme .browser-dots span:nth-child(3) {
    background: #10b981;
}

body.dark-theme .browser-url {
    background: rgba(255, 255, 255, 0.05);
    color: #8b8fa3;
}

body.dark-theme .browser-content {
    background: #16162a;
}

/* ============================================
   LOGO BAR / SOCIAL PROOF DARK
   ============================================ */
body.dark-theme .logo-bar {
    background: #0f0f1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.dark-theme .logo-bar-title {
    color: #667eea;
}

/* ============================================
   PROBLEM / SOLUTION DARK
   ============================================ */
body.dark-theme .problem-solution {
    background: #0f0f1a;
}

body.dark-theme .problem-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-theme .problem-card h3 {
    color: #e2e8f0;
}

body.dark-theme .problem-card p {
    color: #a0aec0;
}

body.dark-theme .problem-icon.problem {
    background: rgba(239, 68, 68, 0.15);
}

body.dark-theme .solution-arrow {
    color: #667eea;
}

body.dark-theme .solution-box {
    background: linear-gradient(135deg, #667eea 0%, #a855f7 100%);
}

/* ============================================
   HOW IT WORKS DARK
   ============================================ */
body.dark-theme .how-it-works {
    background: #1a1a2e;
}

body.dark-theme .step {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

body.dark-theme .step:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-theme .step-number {
    background: linear-gradient(135deg, #667eea 0%, #a855f7 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

body.dark-theme .step-content h3 {
    color: #e2e8f0;
}

body.dark-theme .step-content p {
    color: #a0aec0;
}

/* ============================================
   SECTORS DARK (déjà gradient, ajustement subtil)
   ============================================ */
body.dark-theme .sectors-section {
    background: linear-gradient(135deg, #667eea 0%, #a855f7 100%);
}

body.dark-theme .sector-icon {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

body.dark-theme .sector-icon svg {
    stroke: white;
}

/* ============================================
   WHY IT WORKS DARK
   ============================================ */
body.dark-theme .why-it-works {
    background: #0f0f1a;
}

body.dark-theme .why-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

body.dark-theme .why-stat {
    color: #a855f7;
}

body.dark-theme .why-card h3 {
    color: #667eea;
}

body.dark-theme .why-card p {
    color: #a0aec0;
}

body.dark-theme .why-source {
    color: #8b8fa3;
}

body.dark-theme .why-formula {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

body.dark-theme .why-formula h3 {
    color: #667eea;
}

body.dark-theme .formula-icon {
    background: linear-gradient(135deg, #667eea 0%, #a855f7 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

body.dark-theme .formula-item p {
    color: #a0aec0;
}

body.dark-theme .formula-plus {
    color: #a855f7;
}

body.dark-theme .formula-result {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

body.dark-theme .formula-result svg {
    color: #a855f7;
}

body.dark-theme .formula-result p {
    color: #e2e8f0;
}

/* ============================================
   FEATURES DARK
   ============================================ */
body.dark-theme .features {
    background: #1a1a2e;
}

body.dark-theme .feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

body.dark-theme .feature-card:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

body.dark-theme .feature-icon {
    background: linear-gradient(135deg, #667eea 0%, #a855f7 100%);
}

body.dark-theme .feature-card h3 {
    color: #e2e8f0;
}

body.dark-theme .feature-card p {
    color: #a0aec0;
}

/* ============================================
   PRICING DARK
   ============================================ */
body.dark-theme .pricing {
    background: #0f0f1a;
}

body.dark-theme .pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-theme .pricing-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

body.dark-theme .pricing-card.popular {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 8px 40px rgba(102, 126, 234, 0.15);
}

body.dark-theme .pricing-badge {
    background: linear-gradient(135deg, #667eea 0%, #a855f7 100%);
}

body.dark-theme .pricing-name {
    color: #e2e8f0;
}

body.dark-theme .pricing-tagline {
    color: #8b8fa3;
}

body.dark-theme .pricing-price {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-theme .price-amount,
body.dark-theme .price-currency {
    color: #667eea;
}

body.dark-theme .price-period {
    color: #8b8fa3;
}

body.dark-theme .pricing-roi {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
}

body.dark-theme .pricing-features li {
    color: #cbd5e0;
}

body.dark-theme .pricing-features svg {
    color: #a855f7;
}

body.dark-theme .pricing-note {
    color: #8b8fa3;
}

/* ============================================
   FAQ DARK
   ============================================ */
body.dark-theme .faq {
    background: #1a1a2e;
}

body.dark-theme .faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.dark-theme .faq-question {
    color: #e2e8f0;
}

body.dark-theme .faq-question:hover {
    color: #667eea;
}

body.dark-theme .faq-question svg {
    color: #8b8fa3;
}

body.dark-theme .faq-answer p {
    color: #a0aec0;
}

/* ============================================
   CARRIÈRES DARK
   ============================================ */
body.dark-theme .careers-section {
    background: #0f0f1a;
}

body.dark-theme .career-card {
    background: #1a1a2e;
    border-color: #2d2d44;
}

body.dark-theme .career-card:hover {
    border-color: #667eea;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
}

body.dark-theme .career-card h3 {
    color: #f0f0f0;
}

body.dark-theme .career-type {
    background: rgba(102, 126, 234, 0.15);
    color: #8b9cf7;
}

body.dark-theme .career-card p {
    color: #a0aec0;
}

body.dark-theme .career-missions li {
    color: #c0c8d8;
}

body.dark-theme .career-tags span {
    background: #2d2d44;
    color: #a0aec0;
}

body.dark-theme .careers-note {
    color: #718096;
}

/* ============================================
   FINAL CTA DARK
   ============================================ */
body.dark-theme .final-cta {
    background: linear-gradient(135deg, #667eea 0%, #a855f7 100%);
}

body.dark-theme .cta-note {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   FOOTER DARK
   ============================================ */
body.dark-theme .footer {
    background: #0a0a14;
}

body.dark-theme .footer-logo {
    color: #ffffff;
}

body.dark-theme .footer-brand p {
    color: #8b8fa3;
}

body.dark-theme .footer-column h4 {
    color: #e2e8f0;
}

body.dark-theme .footer-column a {
    color: #8b8fa3;
}

body.dark-theme .footer-column a:hover {
    color: #667eea;
}

body.dark-theme .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #8b8fa3;
}

body.dark-theme .footer-social a {
    color: #8b8fa3;
}

body.dark-theme .footer-social a:hover {
    color: #667eea;
}

/* ============================================
   SECTION TITLE DARK
   ============================================ */
body.dark-theme .section-title {
    color: #ffffff;
}

body.dark-theme .section-subtitle {
    color: #a0aec0;
}

/* ============================================
   PRICING GUARANTEE DARK
   ============================================ */
body.dark-theme .pricing-guarantee {
    color: #e2e8f0;
}

body.dark-theme .guarantee-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

body.dark-theme .guarantee-item {
    color: #a0aec0;
}

body.dark-theme .guarantee-item svg {
    color: #667eea;
}

body.dark-theme .guarantee-item p {
    color: #a0aec0;
}

body.dark-theme .guarantee-item strong {
    color: #e2e8f0;
}

/* ============================================
   FORM ELEMENTS DARK
   ============================================ */
body.dark-theme input[type="text"],
body.dark-theme input[type="email"],
body.dark-theme input[type="tel"],
body.dark-theme textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

body.dark-theme input:focus,
body.dark-theme textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
    color: #6b7280;
}

/* ============================================
   MOBILE MENU DARK
   ============================================ */
@media (max-width: 768px) {
    body.dark-theme .nav-links.active {
        background: #1a1a2e;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
}

/* ============================================
   PROMO MODAL DARK
   ============================================ */
body.dark-theme .promo-modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-theme .promo-modal-close {
    background: rgba(255, 255, 255, 0.05);
    color: #8b8fa3;
}

body.dark-theme .promo-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

body.dark-theme .promo-modal-content h3 {
    color: #e2e8f0;
}

body.dark-theme .promo-modal-content p {
    color: #a0aec0;
}

/* ============================================
   SCROLLBAR DARK
   ============================================ */
body.dark-theme::-webkit-scrollbar {
    width: 8px;
}

body.dark-theme::-webkit-scrollbar-track {
    background: #0f0f1a;
}

body.dark-theme::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

body.dark-theme::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   RESPONSIVE — LÉO SECTION & HERO FLOW
   ============================================ */
@media (max-width: 768px) {

    /* Léo section: stack 2-col to 1-col */
    #leo-section [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Hero flow diagram: avoid overflow */
    .hero-text [style*="padding-left"] {
        padding-left: 0 !important;
    }
}
