/* =====================================================
   ALTEZIA - Dark Mode Stylesheet
   Fichier partagé pour toutes les pages
   Créé le 22/01/2026
   ===================================================== */

/* ===========================================
   BASE: Variables et body
   =========================================== */
html[data-theme="dark"],
html.dark {
    --bg-primary: #0f0f12;
    --bg-secondary: #13131a;
    --bg-tertiary: #1a1a24;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.04);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] body,
html.dark body {
    background-color: #0f0f12 !important;
    color: #ffffff !important;
}

/* ===========================================
   TYPOGRAPHY
   =========================================== */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6 {
    color: #ffffff !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] li,
html.dark p,
html.dark li {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ===========================================
   HEADER / NAVIGATION
   =========================================== */
html[data-theme="dark"] header,
html[data-theme="dark"] .header,
html[data-theme="dark"] nav,
html[data-theme="dark"] .navbar,
html.dark header,
html.dark .header,
html.dark nav,
html.dark .navbar {
    background-color: rgba(15, 15, 18, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .nav-link,
html.dark .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
}

html[data-theme="dark"] .nav-link:hover,
html.dark .nav-link:hover {
    color: #ffffff !important;
}

html[data-theme="dark"] .logo,
html.dark .logo {
    color: #ffffff !important;
}

/* ===========================================
   SECTIONS
   =========================================== */
html[data-theme="dark"] section,
html[data-theme="dark"] .section,
html[data-theme="dark"] main,
html.dark section,
html.dark .section,
html.dark main {
    background-color: #0f0f12 !important;
}

html[data-theme="dark"] .section-alt,
html.dark .section-alt {
    background-color: #13131a !important;
}

/* ===========================================
   HERO
   =========================================== */
html[data-theme="dark"] .hero,
html[data-theme="dark"] section.hero,
html.dark .hero,
html.dark section.hero {
    background-color: #0f0f12 !important;
}

html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .hero-content h1,
html.dark .hero h1,
html.dark .hero-content h1 {
    color: #ffffff !important;
}

html[data-theme="dark"] .hero p,
html[data-theme="dark"] .hero-content p,
html.dark .hero p,
html.dark .hero-content p {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ===========================================
   CARDS - ALL TYPES
   =========================================== */
html[data-theme="dark"] .card,
html[data-theme="dark"] .faq-card,
html[data-theme="dark"] .step-card,
html[data-theme="dark"] .testimonial-card,
html[data-theme="dark"] .audience-card,
html[data-theme="dark"] .solution-card,
html[data-theme="dark"] .demo-card,
html.dark .card,
html.dark .faq-card,
html.dark .step-card,
html.dark .testimonial-card,
html.dark .audience-card,
html.dark .solution-card,
html.dark .demo-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .card:hover,
html[data-theme="dark"] .faq-card:hover,
html[data-theme="dark"] .demo-card:hover,
html.dark .card:hover,
html.dark .faq-card:hover,
html.dark .demo-card:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

html[data-theme="dark"] .card h3,
html[data-theme="dark"] .card h4,
html[data-theme="dark"] .demo-card h3,
html.dark .card h3,
html.dark .card h4,
html.dark .demo-card h3 {
    color: #ffffff !important;
}

html[data-theme="dark"] .card p,
html[data-theme="dark"] .demo-card p,
html.dark .card p,
html.dark .demo-card p {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ===========================================
   FAQ SECTION
   =========================================== */
html[data-theme="dark"] .faq-section,
html.dark .faq-section {
    background-color: #0f0f12 !important;
}

html[data-theme="dark"] .faq-card,
html.dark .faq-card {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .faq-question,
html[data-theme="dark"] .faq-card .faq-question,
html.dark .faq-question,
html.dark .faq-card .faq-question {
    color: #ffffff !important;
}

html[data-theme="dark"] .faq-answer,
html[data-theme="dark"] .faq-answer p,
html.dark .faq-answer,
html.dark .faq-answer p {
    color: rgba(255, 255, 255, 0.7) !important;
}

html[data-theme="dark"] .faq-icon,
html.dark .faq-icon {
    background: rgba(139, 92, 246, 0.1) !important;
    border-color: rgba(139, 92, 246, 0.2) !important;
}

html[data-theme="dark"] .faq-chevron,
html.dark .faq-chevron {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ===========================================
   TESTIMONIALS
   =========================================== */
html[data-theme="dark"] .testimonials-section,
html.dark .testimonials-section {
    background: linear-gradient(180deg, #0a0a0b 0%, #0f0f12 100%) !important;
}

html[data-theme="dark"] .testimonial-card,
html.dark .testimonial-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .testimonial-text,
html.dark .testimonial-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

html[data-theme="dark"] .testimonial-author,
html.dark .testimonial-author {
    color: #ffffff !important;
}

html[data-theme="dark"] .testimonial-role,
html.dark .testimonial-role {
    color: rgba(255, 255, 255, 0.6) !important;
}

html[data-theme="dark"] .testimonial-stars,
html.dark .testimonial-stars {
    color: #fbbf24 !important;
}

/* ===========================================
   DEMO SECTION (Pour les partenaires IT)
   =========================================== */
html[data-theme="dark"] .demo-section,
html.dark .demo-section {
    background: linear-gradient(180deg, #0f0f14 0%, #13131a 100%) !important;
}

html[data-theme="dark"] .demo-section .demo-card,
html.dark .demo-section .demo-card {
    background: rgba(30, 30, 45, 0.95) !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .demo-section .demo-card:hover,
html.dark .demo-section .demo-card:hover {
    background: rgba(35, 35, 55, 0.98) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
}

/* ===========================================
   MOCKUP INTERFACE
   =========================================== */
html[data-theme="dark"] .hero-mockup,
html[data-theme="dark"] .mockup-container,
html[data-theme="dark"] .mockup-frame,
html.dark .hero-mockup,
html.dark .mockup-container,
html.dark .mockup-frame {
    background: #0f0f14 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .mockup-header,
html.dark .mockup-header {
    background: #1a1a24 !important;
}

html[data-theme="dark"] .mockup-content,
html.dark .mockup-content {
    background: #13131a !important;
}

html[data-theme="dark"] .mockup-panel,
html.dark .mockup-panel {
    background: rgba(30, 30, 45, 0.8) !important;
}

html[data-theme="dark"] .mockup-result-item,
html.dark .mockup-result-item {
    background: rgba(40, 40, 60, 0.9) !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
}

/* ===========================================
   LABELS & TAGS
   =========================================== */
html[data-theme="dark"] .label,
html.dark .label {
    color: #a78bfa !important;
    background: rgba(139, 92, 246, 0.15) !important;
}

html[data-theme="dark"] .tag,
html.dark .tag {
    background: rgba(139, 92, 246, 0.1) !important;
    color: #a78bfa !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

/* ===========================================
   BUTTONS
   =========================================== */
html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .btn-outline,
html.dark .btn-secondary,
html.dark .btn-outline {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .btn-secondary:hover,
html[data-theme="dark"] .btn-outline:hover,
html.dark .btn-secondary:hover,
html.dark .btn-outline:hover {
    border-color: rgba(139, 92, 246, 0.5) !important;
    background: rgba(139, 92, 246, 0.1) !important;
}

/* ===========================================
   FOOTER
   =========================================== */
html[data-theme="dark"] footer,
html[data-theme="dark"] .footer,
html.dark footer,
html.dark .footer {
    background-color: #0a0a0c !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] footer a,
html[data-theme="dark"] .footer a,
html.dark footer a,
html.dark .footer a {
    color: rgba(255, 255, 255, 0.7) !important;
}

html[data-theme="dark"] footer a:hover,
html[data-theme="dark"] .footer a:hover,
html.dark footer a:hover,
html.dark .footer a:hover {
    color: #ffffff !important;
}

/* ===========================================
   FORMS
   =========================================== */
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html.dark input,
html.dark textarea,
html.dark select {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html.dark input::placeholder,
html.dark textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* ===========================================
   TABLES
   =========================================== */
html[data-theme="dark"] table,
html[data-theme="dark"] .comparison-table,
html.dark table,
html.dark .comparison-table {
    background: rgba(255, 255, 255, 0.02) !important;
}

html[data-theme="dark"] th,
html.dark th {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] td,
html.dark td {
    color: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ===========================================
   TOGGLE THEME
   =========================================== */
html[data-theme="dark"] .theme-toggle,
html.dark .theme-toggle {
    border-color: rgba(139, 92, 246, 0.3) !important;
}

html[data-theme="dark"] .theme-toggle:hover,
html.dark .theme-toggle:hover {
    border-color: rgba(139, 92, 246, 0.6) !important;
    background: rgba(139, 92, 246, 0.1) !important;
}

}

/* ===========================================
   MOBILE MENU
   =========================================== */
html[data-theme="dark"] .mobile-menu,
html.dark .mobile-menu {
    background: #0f0f12 !important;
}

html[data-theme="dark"] .mobile-menu a,
html.dark .mobile-menu a {
    color: #ffffff !important;
}

/* ===========================================
   PROCESS SECTION
   =========================================== */
html[data-theme="dark"] .process,
html.dark .process {
    background-color: #13131a !important;
}

/* ===========================================
   HERO GLOWS (keep subtle in dark)
   =========================================== */
html[data-theme="dark"] .hero-glow,
html[data-theme="dark"] .hero-glow-1,
html[data-theme="dark"] .hero-glow-2,
html.dark .hero-glow,
html.dark .hero-glow-1,
html.dark .hero-glow-2 {
    opacity: 0.3 !important;
}

/* ===========================================
   TEXT GRADIENT (keep gradient visible)
   =========================================== */
html[data-theme="dark"] .text-gradient,
html[data-theme="dark"] .gradient-word,
html.dark .text-gradient,
html.dark .gradient-word {
    background: linear-gradient(90deg, #8B5CF6, #06B6D4) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ===========================================
   LOGO ITEMS
   =========================================== */
html[data-theme="dark"] .logo-item,
html.dark .logo-item {
    filter: brightness(0) invert(1) !important;
    opacity: 0.6 !important;
}

/* ===========================================
.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

/* ===========================================
   STATS VALUES - Dark Mode
   =========================================== */
html[data-theme="dark"] .stat-value,
html.dark .stat-value {
    background: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

html[data-theme="dark"] .stat-number,
html.dark .stat-number {
    background: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}
/* ===========================================
   TOGGLE ICONS FIX - Override style.css
   =========================================== */
html[data-theme="dark"] .theme-toggle .sun-icon,
html.dark .theme-toggle .sun-icon {
    display: block !important;
    stroke: #fbbf24 !important;
    fill: none !important;
}

html[data-theme="dark"] .theme-toggle .moon-icon,
html.dark .theme-toggle .moon-icon {
    display: none !important;
}

html[data-theme="light"] .theme-toggle .sun-icon,
html:not([data-theme="dark"]):not(.dark) .theme-toggle .sun-icon {
    display: none !important;
}

html[data-theme="light"] .theme-toggle .moon-icon,
html:not([data-theme="dark"]):not(.dark) .theme-toggle .moon-icon {
    display: block !important;
    stroke: #1a1a2e !important;
    fill: none !important;
}

/* ===========================================
}
/* ===========================================
/* ===========================================
   CARDS - Dark Mode - Premium Design
   =========================================== */
html[data-theme="dark"] .definition-card,
html[data-theme="dark"] .pillar-card,
html[data-theme="dark"] .value-card,
html.dark .definition-card,
html.dark .pillar-card,
html.dark .value-card {
    background: linear-gradient(145deg, rgba(25, 25, 40, 0.95) 0%, rgba(15, 15, 25, 0.98) 100%) !important;
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
    border-radius: 16px !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px) !important;
    transition: all 0.3s ease !important;
}

html[data-theme="dark"] .definition-card:hover,
html[data-theme="dark"] .pillar-card:hover,
html[data-theme="dark"] .value-card:hover,
html.dark .definition-card:hover,
html.dark .pillar-card:hover,
html.dark .value-card:hover {
    border-color: rgba(139, 92, 246, 0.4) !important;
    box-shadow: 
        0 12px 40px rgba(139, 92, 246, 0.15),
        0 0 0 1px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-2px) !important;
}

html[data-theme="dark"] .definition-card h3,
html[data-theme="dark"] .pillar-card h3,
html[data-theme="dark"] .value-card h3,
html.dark .definition-card h3,
html.dark .pillar-card h3,
html.dark .value-card h3 {
    color: #ffffff !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
}

html[data-theme="dark"] .definition-card p,
html[data-theme="dark"] .definition-card li,
html[data-theme="dark"] .pillar-card p,
html[data-theme="dark"] .value-card p,
html.dark .definition-card p,
html.dark .definition-card li,
html.dark .pillar-card p,
html.dark .value-card p {
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.7 !important;
}

html[data-theme="dark"] .definition-card strong,
html[data-theme="dark"] .pillar-card strong,
html[data-theme="dark"] .value-card strong,
html.dark .definition-card strong,
html.dark .pillar-card strong,
html.dark .value-card strong {
    background: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 600 !important;
}

html[data-theme="dark"] .definition-card ul,
html.dark .definition-card ul {
    padding-left: 1.2rem !important;
}

html[data-theme="dark"] .definition-card li,
html.dark .definition-card li {
    margin-bottom: 0.8rem !important;
    position: relative !important;
}

html[data-theme="dark"] .definition-card li::marker,
html.dark .definition-card li::marker {
    color: #8B5CF6 !important;
}

/* ===========================================
   CSS VARIABLES - Dark Mode
   =========================================== */
html[data-theme="dark"],
html.dark {
    --surface-elevated: rgba(25, 25, 40, 0.95) !important;
    --border-default: rgba(139, 92, 246, 0.2) !important;
    --primary: #8B5CF6 !important;
    --secondary: #06B6D4 !important;
    --text-secondary: rgba(255, 255, 255, 0.8) !important;
    --text-primary: #ffffff !important;
}

/* Definition cards SVG icons */
html[data-theme="dark"] .definition-card svg,
html.dark .definition-card svg {
    stroke: #8B5CF6 !important;
}

html[data-theme="dark"] .definition-card:last-child svg,
html.dark .definition-card:last-child svg {
    stroke: #06B6D4 !important;
}

/* Definition cards title icons */
html[data-theme="dark"] .definition-card h3 svg,
html.dark .definition-card h3 svg {
    stroke: #8B5CF6 !important;
}

html[data-theme="dark"] .definition-card:last-child h3 svg,
html.dark .definition-card:last-child h3 svg {
    stroke: #06B6D4 !important;
}

/* Definition cards text */
html[data-theme="dark"] .definition-card span,
html[data-theme="dark"] .definition-card p,
html.dark .definition-card span,
html.dark .definition-card p {
    color: rgba(255, 255, 255, 0.85) !important;
}

html[data-theme="dark"] .definition-card strong,
html.dark .definition-card strong {
    color: #06B6D4 !important;
    -webkit-text-fill-color: #06B6D4 !important;
}

html[data-theme="dark"] .definition-card:first-child strong,
html.dark .definition-card:first-child strong {
    color: #8B5CF6 !important;
    -webkit-text-fill-color: #8B5CF6 !important;
}

/* ===========================================
   TOGGLE ICONS - CSS PURE (PAS DE SVG)
   =========================================== */

/* Reset des icônes toggle */
.theme-toggle .toggle-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* SOLEIL - Icône CSS */
.theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.theme-toggle .sun-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #fbbf24;
    border-radius: 50%;
    box-shadow: 
        0 -8px 0 2px #fbbf24,
        8px 0 0 2px #fbbf24,
        0 8px 0 2px #fbbf24,
        -8px 0 0 2px #fbbf24,
        5.5px -5.5px 0 2px #fbbf24,
        5.5px 5.5px 0 2px #fbbf24,
        -5.5px 5.5px 0 2px #fbbf24,
        -5.5px -5.5px 0 2px #fbbf24;
}

/* LUNE - Icône CSS */
.theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.theme-toggle .moon-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: transparent;
    border-radius: 50%;
    box-shadow: 6px -6px 0 0 #6366f1;
}

/* DARK MODE - Afficher le soleil */
html[data-theme="dark"] .theme-toggle .sun-icon,
html.dark .theme-toggle .sun-icon {
    opacity: 1 !important;
    transform: rotate(0) scale(1) !important;
}

html[data-theme="dark"] .theme-toggle .moon-icon,
html.dark .theme-toggle .moon-icon {
    opacity: 0 !important;
    transform: rotate(90deg) scale(0) !important;
}

/* LIGHT MODE - Afficher la lune */
html:not([data-theme="dark"]):not(.dark) .theme-toggle .sun-icon {
    opacity: 0 !important;
    transform: rotate(-90deg) scale(0) !important;
}

html:not([data-theme="dark"]):not(.dark) .theme-toggle .moon-icon {
    opacity: 1 !important;
    transform: rotate(0) scale(1) !important;
}

/* Style du bouton toggle */
.theme-toggle {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    overflow: visible !important;
}

/* ===========================================
   GRID PATTERN - Visible en Dark Mode
   =========================================== */
html[data-theme="dark"] .grid-pattern,
html.dark .grid-pattern {
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.15) 1px, transparent 1px) !important;
    opacity: 0.8 !important;
}

/* ===========================================
   FOOTER SOCIAL ICONS - Dark Mode Fix
   =========================================== */
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.footer-social svg {
    fill: #a78bfa !important;
    width: 20px;
    height: 20px;
}

.footer-social a:hover svg {
    fill: #c4b5fd !important;
}

html[data-theme="dark"] .footer-social svg,
[data-theme="dark"] .footer-social svg {
    fill: #a78bfa !important;
}

/* ===========================================
   BLOG PAGE - Dark Mode Complete
   =========================================== */

/* Page background */
html[data-theme="dark"] .blog-page,
html[data-theme="dark"] body,
[data-theme="dark"] body {
    background-color: #0a0a0f !important;
}

/* Blog header section */
html[data-theme="dark"] .blog-header,
[data-theme="dark"] .blog-header {
    background: linear-gradient(180deg, #0a0a0f 0%, #13131a 100%) !important;
}

html[data-theme="dark"] .blog-header h1,
html[data-theme="dark"] .blog-header .page-title,
[data-theme="dark"] .blog-header h1 {
    color: #ffffff !important;
}

html[data-theme="dark"] .blog-header p,
html[data-theme="dark"] .blog-header .page-subtitle,
[data-theme="dark"] .blog-header p {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Blog cards */
html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .article-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .article-card {
    background: linear-gradient(145deg, rgba(25, 25, 40, 0.95) 0%, rgba(15, 15, 25, 0.98) 100%) !important;
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
    border-radius: 16px !important;
}

html[data-theme="dark"] .blog-card:hover,
html[data-theme="dark"] .article-card:hover,
[data-theme="dark"] .blog-card:hover {
    border-color: rgba(139, 92, 246, 0.3) !important;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1) !important;
}

/* Blog card titles */
html[data-theme="dark"] .blog-card h3,
html[data-theme="dark"] .blog-card h2,
html[data-theme="dark"] .article-card h3,
[data-theme="dark"] .blog-card h3,
[data-theme="dark"] .blog-card h2 {
    color: #ffffff !important;
}

/* Blog card descriptions */
html[data-theme="dark"] .blog-card p,
html[data-theme="dark"] .article-card p,
html[data-theme="dark"] .blog-excerpt,
[data-theme="dark"] .blog-card p {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Blog tags/categories */
html[data-theme="dark"] .blog-tag,
html[data-theme="dark"] .blog-category,
html[data-theme="dark"] .article-tag,
html[data-theme="dark"] .tag,
[data-theme="dark"] .blog-tag,
[data-theme="dark"] .tag {
    background: rgba(139, 92, 246, 0.15) !important;
    color: #a78bfa !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
}

/* Blog grid section */
html[data-theme="dark"] .blog-grid,
html[data-theme="dark"] .articles-grid,
html[data-theme="dark"] section,
[data-theme="dark"] .blog-grid {
    background-color: #0a0a0f !important;
}

/* Any white backgrounds */
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] [class*="bg-light"],
[data-theme="dark"] .bg-white {
    background-color: #0a0a0f !important;
}

/* ===========================================
   FAQ PAGE - Dark Mode Override
   =========================================== */

/* Force dark background on FAQ */
html[data-theme="dark"] body,
html[data-theme="dark"] .faq-page,
html[data-theme="dark"] main,
[data-theme="dark"] body {
    background: #0a0a0f !important;
    background-color: #0a0a0f !important;
}

/* FAQ Hero */
html[data-theme="dark"] .hero,
[data-theme="dark"] .hero {
    background: linear-gradient(180deg, #0a0a0f 0%, #13131a 100%) !important;
}

html[data-theme="dark"] .hero::before,
[data-theme="dark"] .hero::before {
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.2) 0%, transparent 70%) !important;
}

/* FAQ titles and text */
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .hero-title,
html[data-theme="dark"] .page-title,
[data-theme="dark"] .hero h1 {
    color: #ffffff !important;
}

html[data-theme="dark"] .hero p,
html[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .hero p {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* FAQ badge */
html[data-theme="dark"] .badge,
html[data-theme="dark"] .hero-badge,
[data-theme="dark"] .badge {
    background: rgba(139, 92, 246, 0.15) !important;
    color: #a78bfa !important;
    border: 1px solid rgba(139, 92, 246, 0.2) !important;
}

/* FAQ sections */
html[data-theme="dark"] section,
html[data-theme="dark"] .faq-section,
html[data-theme="dark"] .faq-category,
[data-theme="dark"] section {
    background: #0a0a0f !important;
}

/* FAQ section headers */
html[data-theme="dark"] .section-header,
html[data-theme="dark"] .section-header h2,
[data-theme="dark"] .section-header h2 {
    color: #ffffff !important;
}

/* FAQ items */
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .accordion-item,
[data-theme="dark"] .faq-item {
    background: linear-gradient(145deg, rgba(25, 25, 40, 0.95) 0%, rgba(15, 15, 25, 0.98) 100%) !important;
    border: 1px solid rgba(139, 92, 246, 0.15) !important;
    border-radius: 12px !important;
}

html[data-theme="dark"] .faq-item:hover,
[data-theme="dark"] .faq-item:hover {
    border-color: rgba(139, 92, 246, 0.3) !important;
}

/* FAQ questions */
html[data-theme="dark"] .faq-question,
html[data-theme="dark"] .accordion-header,
[data-theme="dark"] .faq-question {
    color: #ffffff !important;
}

/* FAQ answers */
html[data-theme="dark"] .faq-answer,
html[data-theme="dark"] .accordion-body,
html[data-theme="dark"] .faq-answer p,
[data-theme="dark"] .faq-answer {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Contact section */
html[data-theme="dark"] .contact-section,
html[data-theme="dark"] .cta-section,
[data-theme="dark"] .contact-section {
    background: linear-gradient(145deg, rgba(25, 25, 40, 0.95) 0%, rgba(15, 15, 25, 0.98) 100%) !important;
}

/* Override any white/light backgrounds */
html[data-theme="dark"] [style*="background: white"],
html[data-theme="dark"] [style*="background-color: white"],
html[data-theme="dark"] [style*="background: #fff"],
html[data-theme="dark"] [style*="background-color: #fff"],
[data-theme="dark"] .bg-white {
    background: #0a0a0f !important;
    background-color: #0a0a0f !important;
}

/* ===========================================
   NAVBAR - UNIVERSAL DARK MODE
   =========================================== */
html[data-theme="dark"] .navbar,
[data-theme="dark"] .navbar {
    background: rgba(10, 10, 15, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15) !important;
}

html[data-theme="dark"] .nav-menu a,
[data-theme="dark"] .nav-menu a {
    color: rgba(255, 255, 255, 0.7) !important;
}

html[data-theme="dark"] .nav-menu a:hover,
html[data-theme="dark"] .nav-menu a.active,
[data-theme="dark"] .nav-menu a:hover {
    color: #ffffff !important;
    background: rgba(139, 92, 246, 0.1) !important;
}

html[data-theme="dark"] .logo-img,
[data-theme="dark"] .logo-img {
    filter: brightness(1.1) !important;
}

/* Light mode navbar */
html[data-theme="light"] .navbar,
html:not([data-theme="dark"]) .navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] .nav-menu a,
html:not([data-theme="dark"]) .nav-menu a {
    color: rgba(0, 0, 0, 0.7) !important;
}

/* ===========================================
   NAVBAR - FIX TEXT WRAPPING
   =========================================== */
.nav-menu a,
.nav-menu li a,
.navbar .nav-menu a {
    white-space: nowrap !important;
}

.btn-primary,
.nav-actions .btn-primary,
.navbar .btn-primary {
    white-space: nowrap !important;
}

.nav-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
}

.nav-menu {
    display: flex !important;
    gap: 0.5rem !important;
    white-space: nowrap !important;
}

.nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    white-space: nowrap !important;
}

/* ===========================================
   NAVBAR - SPACING FIX
   =========================================== */
.nav-menu {
    gap: 1.5rem !important;
}

.nav-menu li {
    margin: 0 !important;
}

.nav-actions {
    gap: 1rem !important;
    margin-left: 1.5rem !important;
}

.theme-toggle {
    margin-right: 0.5rem !important;
}

/* ===========================================
   GRID PATTERN - VISIBLE EN DARK MODE
   =========================================== */
.grid-pattern {
    position: absolute !important;
    inset: 0 !important;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.15) 1px, transparent 1px) !important;
    background-size: 60px 60px !important;
    opacity: 1 !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

.hero-bg {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
}

.hero {
    position: relative !important;
}

.hero .container,
.hero-content {
    position: relative !important;
    z-index: 2 !important;
}

/* ===========================================
   RESPONSIVE FIXES - MOBILE
   =========================================== */

@media (max-width: 768px) {
    /* HEADER - Hide nav menu, show hamburger */
    .nav-menu {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .nav-actions {
        display: none !important;
    }
    
    .nav-container {
        padding: 0 16px !important;
    }
    
    /* CARDS - Stack vertically */
    .cards-grid,
    .features-grid,
    .benefits-grid,
    .audience-cards,
    .solutions-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .card,
    .feature-card,
    .benefit-card,
    .audience-card,
    .solution-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    /* CTA Cards horizontal scroll fix */
    .cta-cards,
    .demo-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        overflow-x: visible !important;
    }
    
    .cta-card {
        width: 100% !important;
        min-width: 100% !important;
        flex-shrink: 0 !important;
    }
    
    /* Comparison table scroll */
    .comparison-table-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Container padding */
    .container {
        padding: 0 16px !important;
    }
    
    /* Hero text */
    .hero h1,
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .hero p {
        font-size: 1rem !important;
    }
    
    /* Section padding */
    section {
        padding: 3rem 0 !important;
    }
}

@media (max-width: 480px) {
    .hero h1,
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .btn {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* ===========================================
   COMPARISON TABLE - RESPONSIVE
   =========================================== */

@media (max-width: 768px) {
    /* Table wrapper with horizontal scroll */
    .comparison-section,
    .comparison-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 0 !important;
        margin: 0 -16px !important;
        width: calc(100% + 32px) !important;
    }
    
    .comparison-table,
    table {
        min-width: 500px !important;
        font-size: 0.85rem !important;
        margin: 0 16px !important;
    }
    
    .comparison-table th,
    .comparison-table td,
    table th,
    table td {
        padding: 12px 8px !important;
        white-space: nowrap !important;
    }
    
    .comparison-table th:first-child,
    .comparison-table td:first-child,
    table th:first-child,
    table td:first-child {
        position: sticky !important;
        left: 0 !important;
        background: #0f0f12 !important;
        z-index: 1 !important;
        white-space: normal !important;
        min-width: 100px !important;
    }
    
    /* Hint for scroll */
    .comparison-section::after {
        content: 'Glissez pour voir plus →' !important;
        display: block !important;
        text-align: center !important;
        font-size: 0.75rem !important;
        color: rgba(255,255,255,0.5) !important;
        padding: 8px !important;
        margin-top: -8px !important;
    }
}

/* ===========================================
   FIX HORIZONTAL SCROLL - GLOBAL
   =========================================== */

html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

@media (max-width: 768px) {
    /* Container strict */
    .container {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Table must be contained */
    .comparison-section,
    .comparison-wrapper,
    section:has(table),
    section:has(.comparison-table) {
        overflow-x: auto !important;
        overflow-y: visible !important;
        max-width: 100vw !important;
    }
    
    .comparison-table,
    table {
        min-width: auto !important;
        width: 100% !important;
        table-layout: fixed !important;
        font-size: 0.75rem !important;
    }
    
    .comparison-table th,
    .comparison-table td,
    table th,
    table td {
        padding: 8px 6px !important;
        word-wrap: break-word !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }
    
    /* First column smaller */
    .comparison-table th:first-child,
    .comparison-table td:first-child,
    table th:first-child,
    table td:first-child {
        width: 30% !important;
        min-width: 80px !important;
        max-width: 100px !important;
    }
    
    /* Other columns */
    .comparison-table th:not(:first-child),
    .comparison-table td:not(:first-child),
    table th:not(:first-child),
    table td:not(:first-child) {
        width: 35% !important;
    }
    
    /* Remove scroll hint */
    .comparison-section::after {
        display: none !important;
    }
}
