/* =====================================================================
   NEXORA — Mode sombre global (vitrine + tableau de bord).
   Activé par la classe .dark sur <html> (voir partials/pwa.blade.php).
   Aucune règle ne s'applique tant que <html> n'a pas la classe .dark,
   donc le thème clair reste 100% intact par défaut.
   ===================================================================== */

html.dark {
    --nx-bg: #0f1115;          /* fond de page          */
    --nx-surface: #1a1d24;     /* cartes, barres        */
    --nx-surface-2: #232730;   /* survols, champs       */
    --nx-border: #2c313c;      /* bordures              */
    --nx-text: #e6e8eb;        /* texte principal       */
    --nx-muted: #9aa2ad;       /* texte secondaire      */
    --nx-green: #10b981;
    --nx-orange: #f97316;
    color-scheme: dark;
}

/* ---------- Base ---------- */
html.dark,
html.dark body {
    background: var(--nx-bg) !important;
    color: var(--nx-text);
}

html.dark p,
html.dark span,
html.dark li,
html.dark td,
html.dark th,
html.dark label,
html.dark h1, html.dark h2, html.dark h3,
html.dark h4, html.dark h5, html.dark h6 {
    color: var(--nx-text);
}

html.dark small,
html.dark .text-muted,
html.dark .text-secondary {
    color: var(--nx-muted) !important;
}

html.dark a {
    color: #7dd3fc;
}
html.dark a:hover { color: #bae6fd; }

/* Le vert/orange de marque restent lisibles */
html.dark a.seller-link,
html.dark .nav-link.active,
html.dark .text-success { color: var(--nx-green) !important; }

/* ---------- Surfaces génériques ---------- */
html.dark .card,
html.dark .modal-content,
html.dark .dropdown-menu,
html.dark .list-group-item,
html.dark .offcanvas,
html.dark .accordion-item,
html.dark .accordion-button,
html.dark .toast,
html.dark .search-results,
html.dark .search-result-item {
    background-color: var(--nx-surface) !important;
    color: var(--nx-text) !important;
    border-color: var(--nx-border) !important;
}

html.dark .card-header,
html.dark .card-footer,
html.dark .modal-header,
html.dark .modal-footer {
    background-color: var(--nx-surface-2) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}

/* Utilitaires Bootstrap clairs → sombres */
html.dark .bg-white,
html.dark .bg-light,
html.dark .bg-body,
html.dark .bg-body-tertiary {
    background-color: var(--nx-surface) !important;
    color: var(--nx-text) !important;
}
html.dark .text-dark,
html.dark .text-black,
html.dark .text-body { color: var(--nx-text) !important; }

html.dark hr,
html.dark .dropdown-divider { border-color: var(--nx-border) !important; }

/* ---------- Champs de formulaire ---------- */
html.dark .form-control,
html.dark .form-select,
html.dark .search-input,
html.dark input[type="text"],
html.dark input[type="email"],
html.dark input[type="password"],
html.dark input[type="search"],
html.dark input[type="number"],
html.dark input[type="tel"],
html.dark textarea,
html.dark select {
    background-color: var(--nx-surface-2) !important;
    color: var(--nx-text) !important;
    border-color: var(--nx-border) !important;
}
html.dark .form-control::placeholder,
html.dark input::placeholder,
html.dark textarea::placeholder { color: var(--nx-muted) !important; }

html.dark .form-control:focus,
html.dark .form-select:focus {
    border-color: var(--nx-green) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

html.dark .input-group-text {
    background-color: var(--nx-surface) !important;
    color: var(--nx-muted) !important;
    border-color: var(--nx-border) !important;
}

/* ---------- Tableaux ---------- */
html.dark .table { color: var(--nx-text); }
html.dark .table > :not(caption) > * > * {
    background-color: var(--nx-surface) !important;
    color: var(--nx-text) !important;
    border-color: var(--nx-border) !important;
}
html.dark .table-hover > tbody > tr:hover > * {
    background-color: var(--nx-surface-2) !important;
}
html.dark .table thead th {
    background-color: var(--nx-surface-2) !important;
    color: var(--nx-text) !important;
}

/* ---------- Dropdowns / items ---------- */
html.dark .dropdown-item { color: var(--nx-text) !important; }
html.dark .dropdown-item:hover,
html.dark .dropdown-item:focus,
html.dark .search-result-item:hover {
    background: var(--nx-surface-2) !important;
    color: #fff !important;
}
html.dark .dropdown-header { color: var(--nx-muted) !important; }

/* =====================================================================
   VITRINE (thème goemart)
   ===================================================================== */
html.dark .preloader { background: var(--nx-bg) !important; }

html.dark .header,
html.dark .header-top,
html.dark .header-middle,
html.dark .main-navigation,
html.dark .navbar {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
}
html.dark .header-top { background: #12151b !important; }
html.dark .header-top a,
html.dark .header-top span { color: var(--nx-muted) !important; }

html.dark .nav-link { color: var(--nx-text) !important; }
html.dark .nav-link:hover { color: var(--nx-green) !important; }

/* Boutons ronds clairs du header → sombres (styles inline) */
html.dark .header-actions .btn-light {
    background: var(--nx-surface-2) !important;
    border-color: var(--nx-border) !important;
}

/* Cartes produit / sections claires */
html.dark .product-card,
html.dark .product-card-clickable,
html.dark .section,
html.dark .bg-section,
html.dark .widget,
html.dark .blog-card,
html.dark .category-card {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}

/* Pied de page : souvent déjà sombre, on l'harmonise */
html.dark .footer { background: #0c0e12 !important; }
html.dark .footer,
html.dark .footer a,
html.dark .footer p { color: #cbd2da !important; }
html.dark .footer-widget-title h3 { color: #fff !important; }

/* Zones à fond blanc explicite via inline style (repli large) */
html.dark [style*="background: #fff"],
html.dark [style*="background:#fff"],
html.dark [style*="background: white"],
html.dark [style*="background-color: #fff"],
html.dark [style*="background-color:#fff"] {
    background-color: var(--nx-surface) !important;
}

/* =====================================================================
   TABLEAU DE BORD (admin / vendeur / client / livreur)
   ===================================================================== */
html.dark .admin-navbar {
    background: var(--nx-surface) !important;
    border-bottom-color: var(--nx-border) !important;
}
html.dark .profile-btn {
    background: var(--nx-surface-2) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}
html.dark .profile-btn:hover { background: #2a2f3a !important; }

html.dark .search-btn {
    background: var(--nx-surface-2) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}
html.dark .search-icon-absolute { color: var(--nx-muted) !important; }

/* Sidebars fréquentes */
html.dark .sidebar,
html.dark .admin-sidebar,
html.dark .dashboard-sidebar,
html.dark aside {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}

/* Cartes de statistiques génériques */
html.dark .stat-card,
html.dark .stats-card,
html.dark .info-card,
html.dark .dashboard-card {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}

/* Badges neutres (on garde les colorés) */
html.dark .badge.bg-light,
html.dark .badge.bg-white { color: #111 !important; }

/* Barre d'onglets flottante en sombre */
html.dark .nexora-tabbar-inner {
    background: rgba(18, 20, 26, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.6) !important;
}
html.dark .nexora-tabbar a { color: #aab1bd; }
html.dark .nexora-tab-badge { box-shadow: 0 0 0 2px #12141a !important; }

/* En-tête vitrine fixé (mobile) en sombre : fond net + ombre douce */
html.dark .header-middle {
    background: var(--nx-surface) !important;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.5) !important;
}

/* =====================================================================
   PAGE D'ACCUEIL (hero + sections) et styles INLINE clairs
   La page d'accueil définit ses fonds/couleurs en variables et en
   styles inline (style="..."). Les règles de classe ne suffisent pas :
   on neutralise les variables claires et on rattrape les inline.
   Une règle !important d'une feuille de style bat un style inline
   NON !important, ce qui permet de corriger les couleurs codées en dur.
   ===================================================================== */

/* 1) Variables de fond clair de l'accueil → tons sombres.
      Le dégradé du hero et les zones qui s'appuient dessus suivent. */
html.dark {
    --nexora-bg-light: #12151b;
    --nexora-bg-warm: #171a21;
}

/* 2) Hero et ses éléments clairs codés en dur (white, #666...) */
html.dark .hero-modern {
    background: linear-gradient(135deg, #12151b 0%, #171a21 100%) !important;
}
html.dark .hero-description { color: var(--nx-muted) !important; }
html.dark .hero-badge,
html.dark .feature-mini-item,
html.dark .stat-card,
html.dark .btn-white {
    background: var(--nx-surface) !important;
    border: 1px solid var(--nx-border) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35) !important;
}
html.dark .feature-mini-item span { color: var(--nx-text) !important; }

/* 3) Rattrapage des FONDS clairs posés en style inline */
html.dark [style*="background: white"],
html.dark [style*="background:white"],
html.dark [style*="background: #ffffff"],
html.dark [style*="background:#ffffff"],
html.dark [style*="background-color: #ffffff"],
html.dark [style*="background-color:#ffffff"],
html.dark [style*="background: #f8fafc"],
html.dark [style*="background: #f9fafb"],
html.dark [style*="background: #f8f9fa"],
html.dark [style*="background:#f8f9fa"],
html.dark [style*="background: #f8f9fc"],
html.dark [style*="background: #f1f3f5"],
html.dark [style*="background: #e9ecef"],
html.dark [style*="background: #f3f4f6"],
html.dark [style*="background: #f5f5f5"],
html.dark [style*="background: #e5e7eb"],
html.dark [style*="background: #dee2e6"],
html.dark [style*="background: #eee"],
html.dark [style*="background: #fafafa"],
html.dark [style*="background-color: #f9fafb"],
html.dark [style*="background-color:#f9fafb"],
html.dark [style*="background-color: #f8f9fa"],
html.dark [style*="background-color:#f8f9fa"],
html.dark [style*="background-color: #f8fafc"],
html.dark [style*="background-color: #f3f4f6"],
html.dark [style*="background-color: #f1f5f9"],
html.dark [style*="background-color: #e5e7eb"] {
    background: var(--nx-surface-2) !important;
}

/* Badge "live terminé" (fond clair en classe) */
html.dark .ls-badge-ended {
    background: var(--nx-surface-2) !important;
    color: var(--nx-muted) !important;
}
/* Icônes de placeholder "pas d'image" (gris clair codé en inline) */
html.dark [style*="color: #dee2e6"],
html.dark [style*="color:#dee2e6"],
html.dark [style*="color: #cbd5e1"],
html.dark [style*="color: #d1d5db"] {
    color: var(--nx-muted) !important;
}

/* Dégradés clairs (rgba très transparents) posés en inline → fondus sombres */
html.dark section[style*="linear-gradient"][style*="0.05"],
html.dark section[style*="linear-gradient"][style*="0.03"] {
    background: var(--nx-bg) !important;
}

/* 4) Rattrapage des TEXTES foncés posés en style inline.
      On garde les couleurs de marque (vert/orange/bleu) intactes. */
html.dark [style*="color: #1f2937"],
html.dark [style*="color:#1f2937"],
html.dark [style*="color: #111827"],
html.dark [style*="color: #374151"],
html.dark [style*="color: #333"],
html.dark [style*="color:#333"],
html.dark [style*="color: #222"],
html.dark [style*="color: #000"],
html.dark [style*="color:#000"],
html.dark [style*="color: #1a1a1a"],
html.dark [style*="color: #212529"] {
    color: var(--nx-text) !important;
}

html.dark [style*="color: #6b7280"],
html.dark [style*="color:#6b7280"],
html.dark [style*="color: #64748b"],
html.dark [style*="color: #94a3b8"],
html.dark [style*="color: #9ca3af"],
html.dark [style*="color: #6c757d"],
html.dark [style*="color: #666"],
html.dark [style*="color:#666"],
html.dark [style*="color: #999"],
html.dark [style*="color:#999"],
html.dark [style*="color: #777"],
html.dark [style*="color: #555"] {
    color: var(--nx-muted) !important;
}

/* 5) Cartes/sections claires supplémentaires de l'accueil */
html.dark .featured-slider-section,
html.dark .categories-section,
html.dark .cta-section,
html.dark .stat-card-wrapper {
    background: transparent !important;
}
html.dark .promo-card,
html.dark .info-box,
html.dark .value-card,
html.dark .live-card {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}

/* =====================================================================
   PAGES D'AUTHENTIFICATION (connexion / inscription)
   Pages autonomes avec classes .login-* / .register-* codées en clair.
   Le panneau visuel vert (.login-visual-section) reste inchangé.
   ===================================================================== */
html.dark .login-container,
html.dark .register-container,
html.dark .auth-container {
    background: var(--nx-surface) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
}

html.dark .login-form-section,
html.dark .register-form-section {
    background: var(--nx-surface) !important;
}

html.dark .logo-container h1,
html.dark .form-group label,
html.dark .visual-content h2 { color: var(--nx-text) !important; }

html.dark .logo-container p,
html.dark .signup-link,
html.dark .back-home a,
html.dark .divider,
html.dark .password-toggle { color: var(--nx-muted) !important; }

/* Champs de saisie de l'auth */
html.dark .login-form-section .form-control,
html.dark .register-form-section .form-control {
    background: var(--nx-surface-2) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}
html.dark .login-form-section .form-control:focus,
html.dark .register-form-section .form-control:focus {
    background: var(--nx-surface-2) !important;
    border-color: var(--nx-green) !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15) !important;
}
html.dark .login-form-section .form-control::placeholder,
html.dark .register-form-section .form-control::placeholder { color: var(--nx-muted) !important; }

/* Boutons sociaux et séparateur */
html.dark .btn-social {
    background: var(--nx-surface-2) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}
html.dark .btn-social:hover {
    background: #12261d !important;
    border-color: var(--nx-green) !important;
}
html.dark .divider::before,
html.dark .divider::after { background: var(--nx-border) !important; }

/* Cases à cocher « se souvenir de moi » */
html.dark .remember-me input[type="checkbox"] { border-color: var(--nx-border) !important; }

/* Les couleurs de marque (liens verts, bouton dégradé) restent intactes */
html.dark .forgot-password,
html.dark .signup-link a { color: var(--nx-green) !important; }

/* =====================================================================
   BOUTIQUE (/ecommerce) — carrousel vedette, produits, catégories
   Classes codées en clair dans le <style> local de la page.
   ===================================================================== */

/* Section hero + grande carte "Article en vedette" */
html.dark .hero-section {
    background: linear-gradient(135deg, #12151b 0%, var(--nx-bg) 40%, #171a21 100%) !important;
}
html.dark .hero-single {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55) !important;
}
html.dark .hero-title,
html.dark .site-heading-inline h2,
html.dark .site-title,
html.dark .product-title a,
html.dark .shop-card-title { color: var(--nx-text) !important; }
html.dark .hero-content p { color: var(--nx-muted) !important; }

/* Zones/sections à fond clair codé en dur */
html.dark .product-area,
html.dark .category-area { background: var(--nx-bg) !important; }

/* Cartes produit / catégorie / boutique claires → surfaces sombres */
html.dark .product-item,
html.dark .category-item,
html.dark .banner-item,
html.dark .shop-card {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}
html.dark .category-item::before { display: none !important; }

/* Zones image / placeholders clairs */
html.dark .product-link img,
html.dark .no-image-placeholder {
    background: var(--nx-surface-2) !important;
}
html.dark .no-image-placeholder i { color: var(--nx-muted) !important; }

/* Logo de boutique (fond var clair déjà géré, on force le contraste) */
html.dark .shop-card-logo { background: var(--nx-surface-2) !important; }

/* =====================================================================
   ACCUEIL — Hero + sections
   ===================================================================== */
html.dark .hero-modern {
    background: linear-gradient(135deg, #10131a 0%, #171310 100%) !important;
}
html.dark .hero-title,
html.dark .cta-title { color: var(--nx-text) !important; }
html.dark .hero-description,
html.dark .section-subtitle { color: var(--nx-muted) !important; }
html.dark .hero-badge,
html.dark .feature-mini-item {
    background: var(--nx-surface-2) !important;
    box-shadow: none !important;
}
html.dark .stat-card {
    background: var(--nx-surface) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}
html.dark .stat-number { color: var(--nx-text) !important; }
html.dark .stat-label { color: var(--nx-muted) !important; }
html.dark .hero-shape { opacity: .25 !important; }

/* Sections pleine largeur à fond clair inline → fond page sombre */
html.dark section[style*="background: #fff"],
html.dark section[style*="background:#fff"],
html.dark section[style*="background: #ffffff"],
html.dark section[style*="background: linear-gradient(135deg, rgba(239"] {
    background: var(--nx-bg) !important;
}

/* =====================================================================
   Repli global : textes en couleur sombre posés en INLINE (le thème
   goemart en abuse). Sans ça, titres/paragraphes deviennent invisibles
   sur fond sombre. On les repasse en clair.
   ===================================================================== */
html.dark [style*="color: #1f2937"],
html.dark [style*="color:#1f2937"],
html.dark [style*="color: #111827"],
html.dark [style*="color:#111827"],
html.dark [style*="color: #1a202c"],
html.dark [style*="color: #333"],
html.dark [style*="color:#333"],
html.dark [style*="color: #212529"] {
    color: var(--nx-text) !important;
}
html.dark [style*="color: #6b7280"],
html.dark [style*="color:#6b7280"],
html.dark [style*="color: #6c757d"],
html.dark [style*="color: #666"],
html.dark [style*="color:#666"],
html.dark [style*="color: #374151"],
html.dark [style*="color: #4b5563"],
html.dark [style*="color: #9ca3af"] {
    color: var(--nx-muted) !important;
}

/* =====================================================================
   PAGES VITRINE — classes communes (recherche, contact, listes…)
   Fonds clairs et textes foncés codés en dur dans les <style> locaux.
   ===================================================================== */

/* --- Recherche : panneau de filtres blanc --- */
html.dark .filter-sidebar,
html.dark .filter-card,
html.dark .sidebar-widget,
html.dark .search-sidebar {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.45) !important;
}
html.dark .filter-group { border-bottom-color: var(--nx-border) !important; }
html.dark .filter-title,
html.dark .filter-group label { color: var(--nx-text) !important; }

/* --- Fil d'ariane (breadcrumb) clair --- */
html.dark .breadcrumb-area,
html.dark .breadcrumb-wrap,
html.dark .page-header {
    background: var(--nx-surface) !important;
}
html.dark .breadcrumb-title,
html.dark .breadcrumb-list li,
html.dark .breadcrumb-list li.active { color: var(--nx-text) !important; }
html.dark .breadcrumb-list a { color: var(--nx-muted) !important; }
html.dark .breadcrumb-list a:hover { color: var(--nx-green) !important; }

/* --- Contact : formulaire + carte info --- */
html.dark .contact-form,
html.dark .contact-form-wrap,
html.dark .contact-info,
html.dark .contact-info-header,
html.dark .contact-info-content,
html.dark .contact-info-item,
html.dark .contact-info-social,
html.dark .contact-card,
html.dark .contact-box {
    background: var(--nx-surface) !important;
    background-color: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}
html.dark .contact-form-title,
html.dark .contact-info-title,
html.dark .form-label { color: var(--nx-text) !important; }
html.dark .contact-form-text,
html.dark .contact-info-text { color: var(--nx-muted) !important; }

/* --- Repli : autres textes sombres codés en inline --- */
html.dark [style*="color: #000000"],
html.dark [style*="color:#000000"],
html.dark [style*="color: #000"],
html.dark [style*="color:#000"],
html.dark [style*="color: #1e3a5f"],
html.dark [style*="color: #1e293b"],
html.dark [style*="color: #0f172a"],
html.dark [style*="color: #222"],
html.dark [style*="color: #555"] {
    color: var(--nx-text) !important;
}
html.dark [style*="color: #666666"],
html.dark [style*="color:#666666"],
html.dark [style*="color: #777"],
html.dark [style*="color: #888"],
html.dark [style*="color: #999"],
html.dark [style*="color:#999"],
html.dark [style*="color: #475569"],
html.dark [style*="color: #64748b"],
html.dark [style*="color: #94a3b8"] {
    color: var(--nx-muted) !important;
}

/* =====================================================================
   RECHERCHE — carte de filtres + suggestions
   ===================================================================== */
html.dark .filter-sidebar {
    background: var(--nx-surface) !important;
    border: 1px solid var(--nx-border) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}
html.dark .filter-title { color: var(--nx-text) !important; }
html.dark .filter-group { border-color: var(--nx-border) !important; }
html.dark .filter-input {
    background: var(--nx-surface-2) !important;
    color: var(--nx-text) !important;
    border-color: var(--nx-border) !important;
}
html.dark .filter-input::placeholder { color: var(--nx-muted) !important; }
html.dark .search-suggestions {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}

/* =====================================================================
   Repli générique : cartes blanches définies en CLASSE (pas inline).
   Le thème goemart nomme beaucoup de conteneurs *-sidebar / *-card /
   *-box / *-panel / *-wrapper avec background:white. On les harmonise.
   ===================================================================== */
html.dark [class$="-sidebar"],
html.dark [class$="-card"],
html.dark [class*="-card "],
html.dark [class$="-box"],
html.dark [class$="-panel"],
html.dark .content-box,
html.dark .white-box,
html.dark .info-box {
    background-color: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
}

/* Corps/intérieur de cartes (sous-parties blanches), SANS toucher aux
   bannières/en-têtes en dégradé (card-banner, card-header, card-media…). */
html.dark [class*="card-body"],
html.dark [class*="card-item"],
html.dark [class*="card-inner"],
html.dark [class*="card-content"] {
    background-color: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
}

/* =====================================================================
   BOUTIQUES (page /ecommerce) — cartes boutique
   ===================================================================== */
html.dark .shop-card-item,
html.dark .shop-card-body {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
}
html.dark .shop-card-title { color: var(--nx-text) !important; }
html.dark .shop-card-description { color: var(--nx-muted) !important; }
html.dark .shop-card-footer { border-top-color: var(--nx-border) !important; }

/* --- Zones image des cartes produit (fond gris clair codé en dur) --- */
html.dark .product-image,
html.dark .product-thumb,
html.dark .product-media,
html.dark .card-img-wrap,
html.dark .article-image {
    background-color: var(--nx-surface-2) !important;
}
html.dark .product-image .default-image { opacity: .4 !important; }

/* --- Recherche : état vide "Aucun résultat" + entête résultats --- */
html.dark .empty-state,
html.dark .no-results-card {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.45) !important;
}
html.dark .empty-icon { color: var(--nx-muted) !important; opacity: .5; }
html.dark .empty-title { color: var(--nx-text) !important; }
html.dark .empty-text { color: var(--nx-muted) !important; }
html.dark .search-results-header { border-bottom-color: var(--nx-border) !important; }
html.dark .clear-filters {
    background: var(--nx-surface-2) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}
html.dark .clear-filters:hover { background: var(--nx-border) !important; color: #fff !important; }

/* --- Recherche : bandeau héro (dégradé vert-orange trop vif en sombre) --- */
html.dark .search-hero {
    background: linear-gradient(135deg, #0e241c 0%, #14181f 50%, #241811 100%) !important;
    border-bottom: 1px solid var(--nx-border) !important;
}
html.dark .search-hero::before { opacity: .15 !important; }
html.dark .search-hero .search-hero-content h1,
html.dark .search-hero .search-hero-content h2 { color: var(--nx-text) !important; }

/* =====================================================================
   BANDEAUX HÉRO DE MARQUE (dégradé vert-orange vif) — version sombre
   S'applique à tous les grands en-têtes de page. Boutons, icônes,
   badges et .cta-* NE sont PAS visés (ils gardent le dégradé vif).
   ===================================================================== */
html.dark .search-hero,
html.dark .cart-hero,
html.dark .category-hero,
html.dark .faq-hero,
html.dark .services-hero,
html.dark .about-hero,
html.dark .blog-hero,
html.dark .page-hero,
html.dark .hero-area,
html.dark .page-title-area,
html.dark header.bg-gradient-to-r {
    background: linear-gradient(135deg, #0e241c 0%, #14181f 50%, #241811 100%) !important;
    border-bottom: 1px solid var(--nx-border) !important;
}
html.dark .search-hero::before,
html.dark .cart-hero::before,
html.dark .category-hero::before,
html.dark .faq-hero::before,
html.dark .services-hero::before,
html.dark .page-hero::before { opacity: .15 !important; }

/* Textes des héros restent clairs */
html.dark .cart-hero *,
html.dark .category-hero *,
html.dark .faq-hero *,
html.dark .services-hero *,
html.dark .blog-hero *,
html.dark .page-hero *,
html.dark header.bg-gradient-to-r * { color: var(--nx-text) !important; }

/* =====================================================================
   SURFACES & CHAMPS COMMUNS SUPPLÉMENTAIRES (toutes pages vitrine)
   Cartes/panneaux de contenu à fond clair. On NE vise PAS les boutons,
   .cta-*, .theme-btn, badges et liens sociaux (accents de marque gardés).
   ===================================================================== */
html.dark .sidebar-card,
html.dark .testimonial-item,
html.dark .team-item,
html.dark .team-bio,
html.dark .results-header,
html.dark .product-info,
html.dark .product-grid-modern,
html.dark .breadcrumb-modern,
html.dark .sort-dropdown,
html.dark .info-card,
html.dark .detail-card,
html.dark .review-item,
html.dark .comment-item,
html.dark .article-card,
html.dark .related-card,
html.dark .price-box,
html.dark .summary-card,
html.dark .order-card {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}

/* Zones image "modernes" claires */
html.dark .product-image-modern,
html.dark .article-image,
html.dark .thumb,
html.dark .media-box {
    background-color: var(--nx-surface-2) !important;
}

/* Selects/inputs personnalisés non couverts par les règles génériques */
html.dark .filter-select,
html.dark .sort-select,
html.dark .price-range,
html.dark .textarea-with-icon,
html.dark .input-with-icon {
    background-color: var(--nx-surface-2) !important;
    color: var(--nx-text) !important;
    border-color: var(--nx-border) !important;
}

/* =====================================================================
   REPLI LARGE : dégradés CLAIRS posés en inline (sections pleine largeur)
   Ex: background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%).
   Les dégradés de marque (vert #10b981 / orange #f97316) NE contiennent
   pas ces teintes claires → ils ne sont pas touchés.
   ===================================================================== */
html.dark [style*="linear-gradient"][style*="#f8fafc"],
html.dark [style*="linear-gradient"][style*="#ffffff"],
html.dark [style*="linear-gradient"][style*="#f9fafb"],
html.dark [style*="linear-gradient"][style*="#f8f9fa"],
html.dark [style*="linear-gradient"][style*="#f5f5f5"],
html.dark [style*="linear-gradient"][style*="#f0f9ff"],
html.dark [style*="linear-gradient"][style*="#e0f2fe"],
html.dark [style*="linear-gradient"][style*="#dbeafe"],
html.dark [style*="linear-gradient"][style*="#eff6ff"] {
    background: var(--nx-bg) !important;
}

/* Sections/aires "à propos" & similaires (classes) */
html.dark .about-area,
html.dark .about-section,
html.dark .about-content-area,
html.dark .content-area,
html.dark .page-content {
    background: var(--nx-bg) !important;
}
html.dark .about-feature,
html.dark .about-card { background: var(--nx-surface) !important; border-color: var(--nx-border) !important; }

/* =====================================================================
   AUDIT FINAL — teintes inline restantes (toutes vues vitrine)
   ===================================================================== */
/* Fonds clairs teintés (verts/oranges/gris très pâles) → surface sombre */
html.dark [style*="background: #f0fdf4"],
html.dark [style*="background:#f0fdf4"],
html.dark [style*="background-color: #f0fdf4"],
html.dark [style*="background: #ecfdf5"],
html.dark [style*="background: #fff7ed"],
html.dark [style*="background: #f0f0f0"],
html.dark [style*="background: #f0f2f5"],
html.dark [style*="background: #f9f9f9"],
html.dark [style*="background: #eef2ff"],
html.dark [style*="background: #fef2f2"],
html.dark [style*="background: #fefce8"] {
    background-color: var(--nx-surface-2) !important;
}
/* Textes très sombres restants → clair */
html.dark [style*="color: #050505"],
html.dark [style*="color:#050505"],
html.dark [style*="color: #334155"],
html.dark [style*="color: #2d3748"],
html.dark [style*="color: #18181b"],
html.dark [style*="color: #1a1a1a"] {
    color: var(--nx-text) !important;
}
/* Gris moyens restants → atténué */
html.dark [style*="color: #65676b"],
html.dark [style*="color: #6c757d"],
html.dark [style*="color: #718096"],
html.dark [style*="color: #4a5568"],
html.dark [style*="color: #d1d5db"],
html.dark [style*="color: #cbd5e1"] {
    color: var(--nx-muted) !important;
}

/* =====================================================================
   BANDES PLEINE LARGEUR "compteurs / CTA / stats" au dégradé de marque
   (ex: .counter-area "NEXORA en chiffres"). Container assombri ;
   les icônes rondes, boutons et badges à l'intérieur gardent leur
   dégradé vif (éléments distincts, non ciblés).
   ===================================================================== */
html.dark .counter-area,
html.dark .counter-section,
html.dark .stats-area,
html.dark .stat-area,
html.dark .statistics-area,
html.dark .cta-area {
    background: linear-gradient(135deg, #0e241c 0%, #14181f 50%, #241811 100%) !important;
    border-top: 1px solid var(--nx-border) !important;
    border-bottom: 1px solid var(--nx-border) !important;
}
/* Cartes de stats translucides à l'intérieur → légère surface sombre */
html.dark .counter-area .counter-item,
html.dark .counter-area .stat-item,
html.dark .stats-area .stat-item,
html.dark .counter-box {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--nx-border) !important;
}

/* --- Page Boutiques/Articles (shops) : en-tête + carte filtres --- */
html.dark .articles-page-header {
    background: linear-gradient(135deg, #14181f 0%, #0f1115 100%) !important;
    border-bottom: 1px solid var(--nx-border) !important;
}
html.dark .articles-page-title { color: var(--nx-text) !important; }
html.dark .articles-page-subtitle { color: var(--nx-muted) !important; }
html.dark .articles-filters {
    background: var(--nx-surface) !important;
    border: 1px solid var(--nx-border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
}
html.dark .articles-filters .form-label { color: var(--nx-text) !important; }

/* --- Cartes d'articles : titres/descriptions/prix + état vide --- */
html.dark .article-title,
html.dark .article-title a { color: var(--nx-text) !important; }
html.dark .article-description,
html.dark .article-original-price,
html.dark .article-meta,
html.dark .article-shop { color: var(--nx-muted) !important; }
html.dark .no-articles,
html.dark .no-results,
html.dark .empty-articles {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}
html.dark .no-articles h3,
html.dark .no-results h3 { color: var(--nx-text) !important; }

/* =====================================================================
   DÉTAIL ARTICLE (ecommerce.article-detail) + classes réutilisées
   ===================================================================== */
/* Sections pleine largeur (bandes) → fond page */
html.dark .product-detail-modern,
html.dark .related-products { background: var(--nx-bg) !important; }

/* Panneaux / cartes → surface */
html.dark .product-gallery,
html.dark .product-info,
html.dark .product-details,
html.dark .tabs-modern,
html.dark .tab-content,
html.dark .product-card-modern,
html.dark .spec-item,
html.dark .specifications-grid,
html.dark .review-card,
html.dark .comment-box,
html.dark .comment-item {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
}

/* Zones image → surface plus sombre */
html.dark .main-image-container,
html.dark .product-image-modern,
html.dark .thumbnail-item,
html.dark .gallery-thumb { background-color: var(--nx-surface-2) !important; }

/* Textes principaux → clair */
html.dark .product-title,
html.dark .detail-label,
html.dark .detail-value,
html.dark .spec-value,
html.dark .product-title-modern a,
html.dark .section-title h2,
html.dark .description-content,
html.dark .description-content h5 { color: var(--nx-text) !important; }

/* Textes secondaires → atténué */
html.dark .spec-label,
html.dark .section-title p,
html.dark .review-date,
html.dark .comment-date { color: var(--nx-muted) !important; }

/* Alertes claires (avertissement / info) → sombre, texte lisible */
html.dark .alert-warning,
html.dark [style*="background: #fffbeb"],
html.dark [style*="background:#fffbeb"],
html.dark [style*="background: #fef3c7"],
html.dark [style*="background: #fef9c3"] {
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
}
html.dark [style*="color: #92400e"],
html.dark [style*="color:#92400e"],
html.dark [style*="color: #9a3412"],
html.dark [style*="color: #78350f"] { color: #fbbf24 !important; }

/* Bordures claires de champs (textarea commentaires…) */
html.dark [style*="border: 1px solid #e0e0e0"],
html.dark [style*="border:1px solid #e0e0e0"],
html.dark [style*="1px solid #e0e0e0"] { border-color: var(--nx-border) !important; }

/* =====================================================================
   DÉTAIL ARTICLE — finition esthétique (mode sombre)
   ===================================================================== */
/* Bandeau fil d'ariane : vert plein → dégradé sombre avec liseré vert */
html.dark .article-hero {
    background: linear-gradient(135deg, #10231b 0%, #0f1115 100%) !important;
    border-bottom: 1px solid var(--nx-border) !important;
    border-top: 2px solid var(--nx-green) !important;
}
/* Le wrapper du fil d'ariane redevient transparent (pas de pilule sombre) */
html.dark .breadcrumb-modern { background: transparent !important; border: none !important; box-shadow: none !important; }
html.dark .breadcrumb-modern .breadcrumb-list li,
html.dark .breadcrumb-modern .breadcrumb-list li::after { color: var(--nx-muted) !important; }
html.dark .breadcrumb-modern .breadcrumb-list a { color: #cbd5e1 !important; }
html.dark .breadcrumb-modern .breadcrumb-list a:hover { color: var(--nx-green) !important; }
html.dark .breadcrumb-modern .breadcrumb-list li:last-child { color: var(--nx-text) !important; }

/* Cartes principales : bordure + ombre soignées, coins arrondis cohérents */
html.dark .product-gallery,
html.dark .product-info {
    border: 1px solid var(--nx-border) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
    border-radius: 18px !important;
}
/* Liseré d'accent discret en haut de la fiche produit */
html.dark .product-info { border-top: 2px solid var(--nx-green) !important; }

/* Badge catégorie (ex: "AUTRES", gris #6c757d) → surface + accent vert */
html.dark .product-category,
html.dark .product-category-modern {
    background: var(--nx-surface-2) !important;
    color: #6ee7b7 !important;
    border: 1px solid var(--nx-border) !important;
}

/* Onglets (Description / Specs / Avis) */
html.dark .tabs-modern .nav-link,
html.dark .tab-btn { color: var(--nx-muted) !important; }
html.dark .tabs-modern .nav-link.active,
html.dark .tab-btn.active {
    color: var(--nx-green) !important;
    border-bottom-color: var(--nx-green) !important;
    background: transparent !important;
}

/* =====================================================================
   DASHBOARD PARTAGÉ (admin/vendeur/livreur — admin-unified.css + layout)
   ===================================================================== */
/* En-tête de page */
html.dark .admin-header {
    background: var(--nx-surface) !important;
    border-bottom-color: var(--nx-border) !important;
}
html.dark .admin-header h1 { color: var(--nx-text) !important; }
html.dark .admin-header p { color: var(--nx-muted) !important; }

/* Cartes de stats, filtres, tableaux, cartes génériques dashboard */
html.dark .stat-card,
html.dark .admin-filters,
html.dark .admin-table,
html.dark .admin-card,
html.dark .dashboard-card,
html.dark .content-card,
html.dark .data-card,
html.dark .panel,
html.dark .box {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}
html.dark .stat-card:hover { border-color: var(--nx-green) !important; }

/* Pagination dashboard */
html.dark .pagination .page-link {
    background: var(--nx-surface-2) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-muted) !important;
}
html.dark .pagination .page-link:hover:not(.disabled) {
    background: var(--nx-surface) !important;
    border-color: var(--nx-green) !important;
    color: var(--nx-green) !important;
}
html.dark .pagination .page-item.active .page-link {
    background: var(--nx-green) !important;
    border-color: var(--nx-green) !important;
    color: #fff !important;
}
html.dark .pagination .page-item.disabled .page-link {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
    color: #5b616b !important;
}

/* Barre de recherche du dashboard (résultats) */
html.dark .search-result-category { background: var(--nx-surface-2) !important; color: var(--nx-muted) !important; }
html.dark .search-result-item a { color: var(--nx-text) !important; }

/* Bouton bascule thème dans la navbar admin */
html.dark .nx-theme-navbar { background: var(--nx-surface-2) !important; border-color: var(--nx-border) !important; color: var(--nx-text) !important; }

/* =====================================================================
   ESPACE VENDEUR (33 pages sous layouts.admin) — classes spécifiques
   ===================================================================== */
/* Cartes / panneaux / sections à fond clair → surface */
html.dark .info-box,
html.dark .info-card,
html.dark .summary-card,
html.dark .form-card,
html.dark .form-section,
html.dark .history-card,
html.dark .subscription-card,
html.dark .status-card,
html.dark .promo-section,
html.dark .conversation-item,
html.dark .payment-option,
html.dark .upload-area,
html.dark .rank-badge,
html.dark .image-count-badge,
html.dark .stat-content,
html.dark .ls-card,
html.dark .ls-table-card,
html.dark .ls-stat-item,
html.dark .ls-empty {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}
html.dark .info-card-header,
html.dark .form-section-header {
    background: var(--nx-surface-2) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}

/* Bulles de messagerie */
html.dark .message.received .message-bubble { background: var(--nx-surface-2) !important; color: var(--nx-text) !important; }
html.dark .conversation-item:hover { background: var(--nx-surface-2) !important; }

/* Zones image / galerie → surface plus sombre */
html.dark .gallery-image,
html.dark .image-preview,
html.dark .thumbnail-preview { background-color: var(--nx-surface-2) !important; }

/* Textes sombres des cartes vendeur → clair/atténué */
html.dark .stat-content,
html.dark .stat-content *,
html.dark .section-title,
html.dark .ls-session-name,
html.dark .ls-stat-item-value,
html.dark .ls-empty h3 { color: var(--nx-text) !important; }
html.dark .ls-date,
html.dark .stat-label,
html.dark .info-label { color: var(--nx-muted) !important; }

/* Tables liveshop */
html.dark .ls-table tbody td,
html.dark .ls-table thead th {
    background: var(--nx-surface) !important;
    color: var(--nx-text) !important;
    border-color: var(--nx-border) !important;
}
html.dark .ls-row:hover td { background: var(--nx-surface-2) !important; }

/* Boutons de navigation clairs (retour, etc.) */
html.dark .ls-btn-back {
    background: var(--nx-surface-2) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}

/* =====================================================================
   ESPACE CLIENT (dashboard, commandes, messages, profil)
   ===================================================================== */
html.dark .profile-card,
html.dark .info-section,
html.dark .order-item,
html.dark .order-detail-card,
html.dark .delete-menu,
html.dark .conversation-preview,
html.dark .address-card,
html.dark .client-card {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}
html.dark .order-item:hover,
html.dark .profile-card:hover { background: var(--nx-surface-2) !important; }

html.dark .conversation-name,
html.dark .order-number,
html.dark .info-value { color: var(--nx-text) !important; }
html.dark .conversation-preview,
html.dark .delete-menu-item,
html.dark .order-date,
html.dark .info-label { color: var(--nx-muted) !important; }

/* Teintes claires inline restantes (client + divers) */
html.dark [style*="background: #f4fdf8"],
html.dark [style*="background: #f1f1f1"],
html.dark [style*="background:#f1f1f1"],
html.dark [style*="background: #f1f5f9"],
html.dark [style*="background: #edf2f7"] {
    background-color: var(--nx-surface-2) !important;
}

/* =====================================================================
   ESPACE ADMIN (88 pages sous layouts.admin) — classes spécifiques
   ===================================================================== */
/* Cartes / sections / conteneurs → surface */
html.dark .form-card,
html.dark .filter-section,
html.dark .table-container,
html.dark .user-card,
html.dark .stat-box,
html.dark .testimonial-card,
html.dark .service-card,
html.dark .contact-card,
html.dark .action-box,
html.dark .feature-input-group,
html.dark .upload-area,
html.dark .image-upload-area,
html.dark .timeline-marker,
html.dark .char-counter,
html.dark .section-header,
html.dark .post-card {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}

/* Zones image / avatars / aperçus → surface plus sombre */
html.dark .avatar,
html.dark .member-avatar,
html.dark .banner-preview,
html.dark .image-preview,
html.dark .shop-banner-display,
html.dark .gallery-overlay,
html.dark .article-image-wrapper { background-color: var(--nx-surface-2) !important; }

/* Badges "doux" clairs (fond pâle + texte foncé) → surface sombre */
html.dark .badge-modern,
html.dark .badge-soft,
html.dark .stats-badge,
html.dark .badge-inactive {
    background: var(--nx-surface-2) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}

/* Icônes rondes d'en-tête de carte/formulaire (fond pâle) */
html.dark .page-icon,
html.dark .form-icon,
html.dark .info-card-header i,
html.dark .form-section-header i { background: var(--nx-surface-2) !important; }

/* Textes de contenu admin → clair/atténué */
html.dark .testimonial-text,
html.dark .testimonial-text-large,
html.dark .bio-text,
html.dark .info-value,
html.dark .feature-item { color: var(--nx-text) !important; }
html.dark .post-excerpt,
html.dark .service-meta,
html.dark .member-role,
html.dark .card-subtitle { color: var(--nx-muted) !important; }

/* Lignes de tableau au survol */
html.dark .table tbody tr:hover > * { background: var(--nx-surface-2) !important; }

/* =====================================================================
   COMPLÉMENT GLOBAL VITRINE — toutes pages restantes
   (pricing, sellers, wishlist, favoris, faq, services, team, prose…)
   ===================================================================== */
/* Cartes / panneaux / sections → surface */
html.dark .pricing-item,
html.dark .pricing-card,
html.dark .filters-sidebar,
html.dark .sellers-filters,
html.dark .seller-card,
html.dark .service-item,
html.dark .service-card,
html.dark .wishlist-item-card,
html.dark .favorite-item-card,
html.dark .static-faq-card,
html.dark .search-suggestions,
html.dark .suggestion-item,
html.dark .register-card,
html.dark .timeline-item-compact,
html.dark .feature-item,
html.dark .feature-card,
html.dark .nx-feat-card,
html.dark .card-hover,
html.dark .widget.contact-info {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}
html.dark .card-hover:hover,
html.dark .suggestion-item:hover { background: var(--nx-surface-2) !important; }

/* Zones image → surface plus sombre */
html.dark .article-image-container,
html.dark .order-item img,
html.dark .wishlist-item-img,
html.dark .empty-cart-decoration { background-color: var(--nx-surface-2) !important; }

/* Badges catégorie clairs → surface sombre */
html.dark .article-category-badge,
html.dark .article-category,
html.dark .pricing-badge {
    background: var(--nx-surface-2) !important;
    color: #6ee7b7 !important;
    border: 1px solid var(--nx-border) !important;
}

/* Champs / sélecteurs / boutons de nav clairs */
html.dark .comment-input,
html.dark .reply-input,
html.dark .filter-input {
    background: var(--nx-surface-2) !important;
    color: var(--nx-text) !important;
    border-color: var(--nx-border) !important;
}
html.dark .slider-prev,
html.dark .slider-next,
html.dark .action-btn-modern {
    background: var(--nx-surface-2) !important;
    border-color: var(--nx-border) !important;
    color: var(--nx-text) !important;
}

/* Titres / textes de contenu → clair */
html.dark .empty-title,
html.dark .empty-title-modern,
html.dark .filter-title,
html.dark .team-name,
html.dark .summary-value,
html.dark .pricing-title,
html.dark .feature-title,
html.dark .faq-category-title,
html.dark .author-name,
html.dark .section-heading h2,
html.dark .product-title-modern,
html.dark .product-title-modern a,
html.dark .service-title,
html.dark .sellers-page-title,
html.dark .results-section-title,
html.dark .static-faq-question,
html.dark .suggestion-title,
html.dark .wishlist-item-title,
html.dark .wishlist-item-title a,
html.dark .nx-feat-title,
html.dark .feature-content h4,
html.dark .timeline h4,
html.dark .sidebar-card h3,
html.dark .faq-area .site-title { color: var(--nx-text) !important; }

/* Textes secondaires → atténué */
html.dark .static-faq-answer,
html.dark .wishlist-item-shop,
html.dark .pricing-period,
html.dark .feature-desc,
html.dark .team-role { color: var(--nx-muted) !important; }

/* Contenu "prose" (articles / markdown) */
html.dark .prose { color: var(--nx-text) !important; }
html.dark .prose h1, html.dark .prose h2, html.dark .prose h3,
html.dark .prose h4, html.dark .prose strong { color: var(--nx-text) !important; }
html.dark .prose pre,
html.dark .prose code {
    background: var(--nx-surface-2) !important;
    color: #e6e8eb !important;
    border: 1px solid var(--nx-border) !important;
}
html.dark .prose a { color: var(--nx-green) !important; }

/* =====================================================================
   FIX : zones image avec DÉGRADÉ clair (background shorthand)
   background-color ne recouvre pas un linear-gradient (couche image) :
   il faut la forme raccourcie `background:` pour repartir en sombre.
   ===================================================================== */
html.dark .product-image-modern,
html.dark .product-image,
html.dark .article-image,
html.dark .main-image-container,
html.dark .no-image-placeholder,
html.dark .category-image,
html.dark .gallery-image {
    background: var(--nx-surface-2) !important;
}
html.dark .product-image-modern::before,
html.dark .category-item::before { opacity: 0 !important; }

/* --- Catégorie : options de filtre (État / Disponibilité) --- */
html.dark .filter-checkbox {
    background: var(--nx-surface-2) !important;
    border-color: var(--nx-border) !important;
}
html.dark .filter-checkbox label { color: var(--nx-text) !important; }
html.dark .filter-checkbox:hover {
    background: var(--nx-green) !important;
    border-color: var(--nx-green) !important;
}
html.dark .filter-checkbox:hover label { color: #fff !important; }

/* En-tête de résultats (dégradé clair en classe → shorthand sombre) */
html.dark .results-header {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.45) !important;
}
html.dark .results-header::before { opacity: 0 !important; }
html.dark .results-text { color: var(--nx-muted) !important; }

/* =====================================================================
   FILET SYSTÉMATIQUE — toutes les classes à fond clair-neutre / texte
   sombre extraites des <style> de TOUTES les vues (généré automatiquement).
   background: en raccourci pour recouvrir aussi les dégradés clairs.
   Exclus : panneaux verts, alertes, badges de statut, héros déjà stylés.
   ===================================================================== */
html.dark .accordion-body,
html.dark .accordion-item,
html.dark .article-card,
html.dark .article-image-container,
html.dark .article-image-wrapper,
html.dark .articles-filters,
html.dark .bg-purple-50,
html.dark .card-header,
html.dark .cart-item,
html.dark .cart-summary,
html.dark .categories-grid,
html.dark .category-card,
html.dark .category-content,
html.dark .category-hero-actions,
html.dark .category-item,
html.dark .category-item-inner,
html.dark .chat-input-area,
html.dark .chat-messages,
html.dark .chatbot-message-bot,
html.dark .chatbot-message-user,
html.dark .checkout-card,
html.dark .clear-filters,
html.dark .comparison-table,
html.dark .contact-card,
html.dark .contact-info,
html.dark .contact-info-content,
html.dark .contact-info-header,
html.dark .contact-info-item,
html.dark .conversation-item,
html.dark .delete-menu,
html.dark .delete-menu-item,
html.dark .delivery-type-card,
html.dark .detail-card,
html.dark .divider,
html.dark .dropdown-item,
html.dark .empty-cart,
html.dark .empty-state,
html.dark .empty-state-modern,
html.dark .faq-body,
html.dark .faq-card,
html.dark .faq-category-title,
html.dark .faq-header,
html.dark .faq-info,
html.dark .feature-card,
html.dark .feature-item,
html.dark .feature-mini-item,
html.dark .featured-card,
html.dark .featured-slider,
html.dark .featured-slider-section,
html.dark .filter-checkbox,
html.dark .filter-input,
html.dark .filter-section,
html.dark .filter-select,
html.dark .filter-sidebar,
html.dark .filters-sidebar,
html.dark .form-card,
html.dark .form-control,
html.dark .form-icon,
html.dark .form-section,
html.dark .form-section-header,
html.dark .gallery-image-card,
html.dark .header-middle,
html.dark .history-card,
html.dark .image-upload-area,
html.dark .info-box,
html.dark .info-card,
html.dark .info-card-header,
html.dark .info-section,
html.dark .login-container,
html.dark .ls-card,
html.dark .ls-details-row,
html.dark .ls-duration,
html.dark .ls-pagination-links,
html.dark .ls-row,
html.dark .ls-stat-item,
html.dark .main-image-container,
html.dark .message-content,
html.dark .message-input-container,
html.dark .message.received,
html.dark .messages-container,
html.dark .metric-pill,
html.dark .navbar-nav,
html.dark .nexora-onb,
html.dark .nexora-onb-panel,
html.dark .nexora-onb-visual.v2,
html.dark .nexora-onb-visual.v3,
html.dark .nexora-tabbar,
html.dark .no-articles,
html.dark .no-image-placeholder,
html.dark .nx-feat,
html.dark .nx-feat-media,
html.dark .nx-feat-price,
html.dark .nx-prod-media,
html.dark .nx-prod-price,
html.dark .offer-card,
html.dark .order-item,
html.dark .page-card,
html.dark .pagination,
html.dark .payment-icon,
html.dark .payment-option,
html.dark .plan-card,
html.dark .post-card,
html.dark .price-box,
html.dark .price-display,
html.dark .price-section,
html.dark .product-area,
html.dark .product-card,
html.dark .product-card-modern,
html.dark .product-detail-modern,
html.dark .product-details,
html.dark .product-gallery,
html.dark .product-image,
html.dark .product-image-modern,
html.dark .product-info,
html.dark .product-item,
html.dark .product-link,
html.dark .profile-card,
html.dark .profile-header,
html.dark .progress,
html.dark .promo-section,
html.dark .prose,
html.dark .register-card,
html.dark .register-container,
html.dark .related-products,
html.dark .reply-input-preview,
html.dark .results-header,
html.dark .search-result,
html.dark .search-result-item,
html.dark .search-results,
html.dark .section-header,
html.dark .seller-card,
html.dark .sellers-filters,
html.dark .service-card,
html.dark .shop-banner-placeholder,
html.dark .shop-card,
html.dark .shop-card-item,
html.dark .shop-card-logo,
html.dark .sidebar-card.light,
html.dark .slider-next,
html.dark .slider-prev,
html.dark .sort-select,
html.dark .spec-item,
html.dark .stat-box,
html.dark .stat-card,
html.dark .static-faq-answer,
html.dark .static-faq-card,
html.dark .status-card.inactive,
html.dark .subscription-card,
html.dark .subscription-card.active,
html.dark .suggestion-count,
html.dark .suggestion-item,
html.dark .summary-card,
html.dark .summary-section,
html.dark .table,
html.dark .table-container,
html.dark .tabs-modern,
html.dark .testimonial-card,
html.dark .timeline-marker,
html.dark .upload-area,
html.dark .upload-zone,
html.dark .user-card,
html.dark .wishlist-item-card {
    background: var(--nx-surface) !important;
    border-color: var(--nx-border) !important;
}

html.dark .about-title,
html.dark .accordion-body,
html.dark .accordion-item,
html.dark .accordion-item.active,
html.dark .article-title,
html.dark .articles-page-title,
html.dark .author-name,
html.dark .back-home,
html.dark .bio-text,
html.dark .breadcrumb-list,
html.dark .breadcrumb-title,
html.dark .cart-item,
html.dark .cart-summary,
html.dark .category-hero-actions,
html.dark .category-name,
html.dark .chatbot-message-bot,
html.dark .clear-filters,
html.dark .comparison-table,
html.dark .contact-form-title,
html.dark .contact-info-details,
html.dark .contact-info-title,
html.dark .conversation-name,
html.dark .delete-menu-item,
html.dark .description-content,
html.dark .detail-label,
html.dark .dropdown-header,
html.dark .empty-title,
html.dark .empty-title-modern,
html.dark .faq-answer,
html.dark .faq-area,
html.dark .faq-category-title,
html.dark .faq-question,
html.dark .feature-content,
html.dark .feature-title,
html.dark .filter-checkbox,
html.dark .filter-select,
html.dark .filter-title,
html.dark .form-group,
html.dark .form-label,
html.dark .form-section-header,
html.dark .info-card-header,
html.dark .info-value,
html.dark .logo-container,
html.dark .ls-date,
html.dark .ls-details-toggle,
html.dark .ls-empty,
html.dark .ls-pagination-links,
html.dark .ls-session-name,
html.dark .ls-stat-item-value,
html.dark .ls-table,
html.dark .navbar-nav,
html.dark .nx-feat-title,
html.dark .nx-prod-title,
html.dark .password-toggle,
html.dark .post-title,
html.dark .price-amount,
html.dark .pricing-title,
html.dark .product-price,
html.dark .product-price-modern,
html.dark .product-title,
html.dark .product-title-modern,
html.dark .prose,
html.dark .results-section-title,
html.dark .search-result-item,
html.dark .section-header,
html.dark .section-heading,
html.dark .section-title,
html.dark .sellers-page-title,
html.dark .service-features,
html.dark .service-title,
html.dark .shop-card-title,
html.dark .sidebar-card,
html.dark .site-heading-inline,
html.dark .site-title,
html.dark .spec-value,
html.dark .stat-number,
html.dark .static-faq-question,
html.dark .subscription-features,
html.dark .suggestion-title,
html.dark .summary-feature,
html.dark .summary-value,
html.dark .team-name,
html.dark .testimonial-text,
html.dark .testimonial-text-large,
html.dark .text-blue-600,
html.dark .text-blue-700,
html.dark .text-blue-800,
html.dark .timeline,
html.dark .timeline-item-compact,
html.dark .user-name,
html.dark .wishlist-item-title {
    color: var(--nx-text) !important;
}

/* --- Catégories : boutons blancs du héro (btn-light / btn-outline-light) --- */
html.dark .category-hero-actions .btn {
    background: var(--nx-surface-2) !important;
    color: var(--nx-text) !important;
    border: 1px solid var(--nx-border) !important;
}
html.dark .category-hero-actions .btn:hover {
    background: var(--nx-green) !important;
    border-color: var(--nx-green) !important;
    color: #fff !important;
}
/* btn-light / btn-outline-light génériques (autres pages) */
html.dark .btn-light {
    background: var(--nx-surface-2) !important;
    color: var(--nx-text) !important;
    border-color: var(--nx-border) !important;
}
html.dark .btn-outline-light {
    background: transparent !important;
    color: var(--nx-text) !important;
    border-color: var(--nx-border) !important;
}
html.dark .btn-outline-light:hover,
html.dark .btn-light:hover { background: var(--nx-green) !important; border-color: var(--nx-green) !important; color: #fff !important; }
