/* ==========================================================================
   Site Ratel — thème sombre (le thème clair reste celui d'origine).
   [24/11/2026] Chargé après style.min.css. Actif seulement quand
   <html data-theme="dark"> (choix du visiteur, ou réglage de son appareil).
   ========================================================================== */

/* ---------- Bouton de choix (les deux thèmes) ---------- */
.header-icon.rt-cycle { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; line-height: 1; }
.header-icon.rt-cycle svg { width: 25px; height: 25px; display: block; }
.header-icon.rt-cycle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
.rt-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding: 14px 0 6px; margin-top: 10px; border-top: 1px solid rgba(255, 255, 255, .25); }
.rt-switch-label { color: #fff; font-size: 1.3rem; margin-right: 6px; opacity: .9; }
.rt-switch button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .55); background: transparent; color: #fff; font-size: 1.3rem; font-weight: 600; cursor: pointer; }
.rt-switch button svg { width: 17px; height: 17px; }
.rt-switch button:hover { background: rgba(255, 255, 255, .15); }
.rt-switch button[aria-pressed="true"] { background: #fff; color: #c8102e; border-color: #fff; }

/* ---------- Thème sombre ---------- */
html[data-theme="dark"] {
    --rt-bg: #0f0f12;
    --rt-bg-2: #141418;
    --rt-surface: #18181d;
    --rt-surface-2: #202027;
    --rt-line: rgba(255, 255, 255, .11);
    --rt-text: #efeae0;
    --rt-text-2: #c2bcb0;
    --rt-muted: #8f897d;
    --rt-gold: #d6b24c;
    --rt-red: #ff3b3b;
    color-scheme: dark;
    background: #0f0f12;
}
html[data-theme="dark"] body { background: var(--rt-bg); color: var(--rt-text-2); }
html[data-theme="dark"] .page-wrapper, html[data-theme="dark"] main, html[data-theme="dark"] .main { background: var(--rt-bg); }

/* textes */
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[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 { color: var(--rt-text); }
html[data-theme="dark"] p, html[data-theme="dark"] li, html[data-theme="dark"] label, html[data-theme="dark"] td, html[data-theme="dark"] th, html[data-theme="dark"] dt, html[data-theme="dark"] dd, html[data-theme="dark"] span, html[data-theme="dark"] small, html[data-theme="dark"] strong, html[data-theme="dark"] b { color: inherit; }
html[data-theme="dark"] main a:not(.btn):not(.mcsbtn):not(.social-icon), html[data-theme="dark"] .header a:not(.btn):not(.social-icon), html[data-theme="dark"] .breadcrumb-nav a { color: var(--rt-text); }
html[data-theme="dark"] main a:not(.btn):not(.mcsbtn):not(.social-icon):hover { color: var(--rt-gold); }
html[data-theme="dark"] .text-dark, html[data-theme="dark"] .text-body, html[data-theme="dark"] .text-black { color: var(--rt-text) !important; }
html[data-theme="dark"] .text-muted, html[data-theme="dark"] .text-secondary { color: var(--rt-muted) !important; }
html[data-theme="dark"] .home-h1 { color: var(--rt-text); }
html[data-theme="dark"] hr, html[data-theme="dark"] .divider { border-color: var(--rt-line); }
html[data-theme="dark"] ::selection { background: rgba(214, 178, 76, .35); color: #fff; }

/* en-tête */
html[data-theme="dark"] .header, html[data-theme="dark"] .header-middle, html[data-theme="dark"] .header-bottom,
html[data-theme="dark"] .sticky-header.fixed, html[data-theme="dark"] .header-middle.fixed, html[data-theme="dark"] .header-bottom.fixed { background: var(--rt-bg-2) !important; color: var(--rt-text); border-color: var(--rt-line) !important; }
html[data-theme="dark"] .sticky-header.fixed { box-shadow: 0 6px 18px rgba(0, 0, 0, .6); }
html[data-theme="dark"] .header-bottom { border-top: 1px solid var(--rt-line); }
html[data-theme="dark"] .header .header-icon, html[data-theme="dark"] .header .search-toggle, html[data-theme="dark"] .mobile-menu-toggler { color: var(--rt-text) !important; }
html[data-theme="dark"] .header-contact h6, html[data-theme="dark"] .header-contact span { color: var(--rt-text-2); }
html[data-theme="dark"] .header .logo img, html[data-theme="dark"] .logo img { background: #fff; border-radius: 10px; padding: 4px 8px; }
html[data-theme="dark"] .header-search .form-control, html[data-theme="dark"] .header-search-wrapper, html[data-theme="dark"] .header-search .btn, html[data-theme="dark"] .header-search select {
    background: var(--rt-surface-2) !important; color: var(--rt-text) !important; border-color: var(--rt-line) !important;
}
html[data-theme="dark"] .main-nav .menu > li > a { color: var(--rt-text); }
html[data-theme="dark"] .main-nav .menu > li:hover > a, html[data-theme="dark"] .main-nav .menu > li.active > a { color: var(--rt-red); }
html[data-theme="dark"] .main-nav .menu ul, html[data-theme="dark"] .main-nav .megamenu, html[data-theme="dark"] .menu .megamenu, html[data-theme="dark"] .header .dropdown-menu, html[data-theme="dark"] .header-menu ul {
    background: var(--rt-surface) !important; border-color: var(--rt-line) !important; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8);
}
html[data-theme="dark"] .main-nav .menu ul a, html[data-theme="dark"] .megamenu a { color: var(--rt-text-2) !important; }
html[data-theme="dark"] .main-nav .menu ul a:hover, html[data-theme="dark"] .megamenu a:hover { color: var(--rt-text) !important; background: var(--rt-surface-2); }
html[data-theme="dark"] .sticky-navbar { background: var(--rt-bg-2) !important; border-top: 1px solid var(--rt-line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .5); }
html[data-theme="dark"] .sticky-navbar a, html[data-theme="dark"] .sticky-navbar span, html[data-theme="dark"] .sticky-navbar i { color: var(--rt-text) !important; }
html[data-theme="dark"] .sticky-navbar .sticky-info { border-color: var(--rt-line); }

/* sections et fonds clairs */
html[data-theme="dark"] .bg-white, html[data-theme="dark"] .bg-light, html[data-theme="dark"] .bg-gray, html[data-theme="dark"] .bg-grey,
html[data-theme="dark"] section, html[data-theme="dark"] .featured-products-section, html[data-theme="dark"] .products-container, html[data-theme="dark"] .dpadding,
html[data-theme="dark"] .page-header, html[data-theme="dark"] .category-banner, html[data-theme="dark"] .info-boxes-container, html[data-theme="dark"] .feature-box, html[data-theme="dark"] .info-box {
    background-color: var(--rt-bg) !important; color: var(--rt-text-2);
}
html[data-theme="dark"] .featured-products-section, html[data-theme="dark"] .dpadding { background-color: var(--rt-bg-2) !important; }
html[data-theme="dark"] .home-slider { background-color: var(--rt-bg-2); }
html[data-theme="dark"] .section-title, html[data-theme="dark"] .heading-border { color: var(--rt-text); border-color: var(--rt-line); }
html[data-theme="dark"] .heading-border:before, html[data-theme="dark"] .heading-border:after { border-color: var(--rt-line); }
html[data-theme="dark"] .breadcrumb-nav, html[data-theme="dark"] .breadcrumb { background: transparent; border-color: var(--rt-line); color: var(--rt-muted); }
html[data-theme="dark"] .breadcrumb-item.active, html[data-theme="dark"] .breadcrumb-item + .breadcrumb-item:before { color: var(--rt-muted); }

/* produits */
html[data-theme="dark"] .product-default, html[data-theme="dark"] .product-widget, html[data-theme="dark"] .product-single { background: transparent; color: var(--rt-text-2); }
html[data-theme="dark"] .product-default figure, html[data-theme="dark"] .product-widget figure, html[data-theme="dark"] .product-single-gallery .product-item,
html[data-theme="dark"] .prod-thumbnail .owl-dot, html[data-theme="dark"] .product-thumbs img, html[data-theme="dark"] .product-image-container, html[data-theme="dark"] .cart-table figure, html[data-theme="dark"] .product-image {
    background: #fff; border-radius: 10px; overflow: hidden;
}
html[data-theme="dark"] .product-default .product-title a, html[data-theme="dark"] .product-title, html[data-theme="dark"] .product-title a, html[data-theme="dark"] .product-single-details .product-title { color: var(--rt-text) !important; }
html[data-theme="dark"] .product-default .category-list a, html[data-theme="dark"] .category-list a, html[data-theme="dark"] .product-cat a { color: var(--rt-muted) !important; }
html[data-theme="dark"] .product-price, html[data-theme="dark"] .new-price, html[data-theme="dark"] .price-box .product-price { color: var(--rt-text) !important; }
html[data-theme="dark"] .old-price, html[data-theme="dark"] .price-box .old-price { color: var(--rt-muted) !important; }
html[data-theme="dark"] .product-default .btn-icon, html[data-theme="dark"] .product-default .btn-add-cart, html[data-theme="dark"] .btn-icon-wish, html[data-theme="dark"] .btn-quickview, html[data-theme="dark"] .product-action a:not(.btn) {
    background: var(--rt-surface-2); color: var(--rt-text) !important; border-color: var(--rt-line);
}
html[data-theme="dark"] .product-default:hover { box-shadow: 0 25px 35px -5px rgba(0, 0, 0, .55); }
html[data-theme="dark"] .product-default:hover figure { box-shadow: none; }
html[data-theme="dark"] .product-desc, html[data-theme="dark"] .product-desc p, html[data-theme="dark"] .product-desc-content, html[data-theme="dark"] .product-desc-content p, html[data-theme="dark"] .product-desc-content li, html[data-theme="dark"] .single-info-list li { color: var(--rt-text-2); }
html[data-theme="dark"] .single-info-list li strong, html[data-theme="dark"] .product-single-details strong { color: var(--rt-text); }
html[data-theme="dark"] .product-single-qty .form-control, html[data-theme="dark"] .bootstrap-touchspin .form-control, html[data-theme="dark"] .bootstrap-touchspin .btn { background: var(--rt-surface-2) !important; color: var(--rt-text) !important; border-color: var(--rt-line) !important; }
html[data-theme="dark"] .product-action, html[data-theme="dark"] .product-single-share, html[data-theme="dark"] .product-single-details .divider, html[data-theme="dark"] .product-filters-container { border-color: var(--rt-line) !important; }
html[data-theme="dark"] .ratings:before { color: rgba(255, 255, 255, .25); }
html[data-theme="dark"] .toolbox, html[data-theme="dark"] .toolbox label, html[data-theme="dark"] .toolbox-item { color: var(--rt-text-2); }
html[data-theme="dark"] .sidebar-shop .widget, html[data-theme="dark"] .widget { border-color: var(--rt-line); }
html[data-theme="dark"] .widget-title, html[data-theme="dark"] .widget-title a { color: var(--rt-text) !important; }
html[data-theme="dark"] .cat-list li a, html[data-theme="dark"] .widget li a { color: var(--rt-text-2); }
html[data-theme="dark"] .toolbox-pagination, html[data-theme="dark"] .pagination { border-color: var(--rt-line); }
html[data-theme="dark"] .page-link { background: var(--rt-surface); color: var(--rt-text) !important; border-color: var(--rt-line); }
html[data-theme="dark"] .page-item.active .page-link, html[data-theme="dark"] .page-link:hover { background: var(--rt-surface-2); border-color: var(--rt-gold); color: var(--rt-gold) !important; }

/* onglets, tableaux, cartes */
html[data-theme="dark"] .nav-tabs { border-color: var(--rt-line); }
html[data-theme="dark"] .nav-tabs .nav-link, html[data-theme="dark"] .nav-tabs .nav-item .nav-link { color: var(--rt-text-2) !important; background: transparent; border-color: transparent; }
html[data-theme="dark"] .nav-tabs .nav-link.active, html[data-theme="dark"] .nav-tabs .nav-link:hover { color: var(--rt-text) !important; background: transparent; }
html[data-theme="dark"] .tab-content, html[data-theme="dark"] .tab-pane { background: transparent; color: var(--rt-text-2); border-color: var(--rt-line); }
html[data-theme="dark"] .table, html[data-theme="dark"] table { color: var(--rt-text-2); background: transparent; }
html[data-theme="dark"] .table td, html[data-theme="dark"] .table th, html[data-theme="dark"] table td, html[data-theme="dark"] table th, html[data-theme="dark"] .table thead th, html[data-theme="dark"] .table tbody + tbody { border-color: var(--rt-line) !important; }
html[data-theme="dark"] .table thead th, html[data-theme="dark"] table thead th { color: var(--rt-text); background: var(--rt-surface); }
html[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) { background: rgba(255, 255, 255, .03); }
html[data-theme="dark"] .table-hover tbody tr:hover { background: rgba(255, 255, 255, .05); color: var(--rt-text); }
html[data-theme="dark"] .card, html[data-theme="dark"] .card-header, html[data-theme="dark"] .card-body, html[data-theme="dark"] .card-footer,
html[data-theme="dark"] .cart-summary, html[data-theme="dark"] .order-summary, html[data-theme="dark"] .checkout-discount, html[data-theme="dark"] .feature-box, html[data-theme="dark"] .login-form-container,
html[data-theme="dark"] .cart-table-container, html[data-theme="dark"] .account-content, html[data-theme="dark"] .dashboard-content, html[data-theme="dark"] .order-table-container, html[data-theme="dark"] .address-box, html[data-theme="dark"] .panel, html[data-theme="dark"] .well {
    background-color: var(--rt-surface) !important; color: var(--rt-text-2); border-color: var(--rt-line) !important;
}
html[data-theme="dark"] .cart-summary h3, html[data-theme="dark"] .order-summary h3, html[data-theme="dark"] .cart-summary h4, html[data-theme="dark"] .order-summary h4 { color: var(--rt-text); border-color: var(--rt-line); }
html[data-theme="dark"] .table-totals, html[data-theme="dark"] .table-totals td, html[data-theme="dark"] .table-totals th, html[data-theme="dark"] .table-mini-cart td, html[data-theme="dark"] .table-mini-cart th { border-color: var(--rt-line) !important; background: transparent !important; color: var(--rt-text-2); }
html[data-theme="dark"] .table-totals tfoot td, html[data-theme="dark"] .table-totals tfoot th, html[data-theme="dark"] .order-total td, html[data-theme="dark"] .order-total th { color: var(--rt-text); }
html[data-theme="dark"] .dashboard-nav, html[data-theme="dark"] .dashboard-nav .nav-link, html[data-theme="dark"] .my-account .nav-tabs .nav-link { border-color: var(--rt-line) !important; }
html[data-theme="dark"] .checkout-steps li, html[data-theme="dark"] .checkout-progress-bar li { color: var(--rt-muted); }
html[data-theme="dark"] .checkout-progress-bar li.active, html[data-theme="dark"] .checkout-progress-bar li.active a { color: var(--rt-text); }

/* formulaires */
html[data-theme="dark"] .form-control, html[data-theme="dark"] input[type="text"], html[data-theme="dark"] input[type="email"], html[data-theme="dark"] input[type="password"], html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="number"], html[data-theme="dark"] input[type="search"], html[data-theme="dark"] input[type="date"], html[data-theme="dark"] textarea, html[data-theme="dark"] select, html[data-theme="dark"] .select-custom select, html[data-theme="dark"] .custom-select {
    background-color: var(--rt-surface-2) !important; color: var(--rt-text) !important; border-color: var(--rt-line) !important;
}
html[data-theme="dark"] .form-control::placeholder, html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: var(--rt-muted) !important; opacity: 1; }
html[data-theme="dark"] .form-control:focus, html[data-theme="dark"] input:focus, html[data-theme="dark"] textarea:focus, html[data-theme="dark"] select:focus { border-color: var(--rt-gold) !important; box-shadow: 0 0 0 3px rgba(214, 178, 76, .18); }
html[data-theme="dark"] .select-custom:after, html[data-theme="dark"] .custom-control-label { color: var(--rt-text-2); }
html[data-theme="dark"] select option { background: var(--rt-surface); color: var(--rt-text); }
html[data-theme="dark"] .form-footer, html[data-theme="dark"] .form-group, html[data-theme="dark"] fieldset { border-color: var(--rt-line); }

/* boutons */
html[data-theme="dark"] .btn-dark { background-color: #f1ece2 !important; border-color: #f1ece2 !important; color: #16130f !important; }
html[data-theme="dark"] .btn-dark:hover { background-color: #dc1620 !important; border-color: #dc1620 !important; color: #fff !important; }
html[data-theme="dark"] .btn-outline-dark, html[data-theme="dark"] .btn-outline-secondary, html[data-theme="dark"] .btn-default, html[data-theme="dark"] .btn-light, html[data-theme="dark"] .btn-secondary {
    background: var(--rt-surface-2) !important; color: var(--rt-text) !important; border-color: var(--rt-line) !important;
}
html[data-theme="dark"] .btn-link { color: var(--rt-gold); }

/* alertes, fenêtres */
html[data-theme="dark"] .alert-warning { background: rgba(240, 169, 59, .14); border-color: rgba(240, 169, 59, .38); color: #ffd08a; }
html[data-theme="dark"] .alert-success { background: rgba(53, 196, 139, .14); border-color: rgba(53, 196, 139, .35); color: #8ff0c6; }
html[data-theme="dark"] .alert-danger { background: rgba(225, 29, 42, .16); border-color: rgba(225, 29, 42, .4); color: #ff9aa1; }
html[data-theme="dark"] .alert-info { background: rgba(106, 169, 255, .14); border-color: rgba(106, 169, 255, .35); color: #b8d5ff; }
html[data-theme="dark"] .alert a { color: inherit; text-decoration: underline; }
html[data-theme="dark"] .modal-content, html[data-theme="dark"] .mcsmodal, html[data-theme="dark"] .mcsmodal-content, html[data-theme="dark"] .wishlist-popup, html[data-theme="dark"] .wishlist-popup .wishlist-popup-msg, html[data-theme="dark"] .mfp-content .product-single-container,
html[data-theme="dark"] .newsletter-popup, html[data-theme="dark"] .dropdown-menu, html[data-theme="dark"] .cart-dropdown .dropdown-menu, html[data-theme="dark"] .popover, html[data-theme="dark"] .minipopup-area .minipopup-box {
    background-color: var(--rt-surface) !important; color: var(--rt-text) !important; border-color: var(--rt-line) !important;
}
html[data-theme="dark"] .mcsmodal p, html[data-theme="dark"] .mcsmodal h2, html[data-theme="dark"] .mcsmodal h3, html[data-theme="dark"] .mcsmodal span, html[data-theme="dark"] .modal-title { color: var(--rt-text); }
html[data-theme="dark"] .close, html[data-theme="dark"] .mfp-close, html[data-theme="dark"] .mcsclose { color: var(--rt-text) !important; text-shadow: none; opacity: .8; }
html[data-theme="dark"] .dropdown-item { color: var(--rt-text-2); }
html[data-theme="dark"] .dropdown-item:hover { background: var(--rt-surface-2); color: var(--rt-text); }

/* avis clients */
html[data-theme="dark"] .rtl-review, html[data-theme="dark"] .rtl-reviews, html[data-theme="dark"] .rtl-review-item { border-color: var(--rt-line) !important; color: var(--rt-text-2); }

/* défilement */
html[data-theme="dark"] ::-webkit-scrollbar { width: 11px; height: 11px; }
html[data-theme="dark"] ::-webkit-scrollbar-track { background: #0f0f12; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #2c2c35; border-radius: 10px; border: 2px solid #0f0f12; }
html[data-theme="dark"] #scroll-top { background: var(--rt-surface-2); color: var(--rt-text); }
html[data-theme="dark"] .loading-overlay { background: var(--rt-bg); }

@media print {
    html[data-theme="dark"], html[data-theme="dark"] body { background: #fff !important; color: #000 !important; }
}

/* ajustements après essai */
.footer.bg-red .rt-switch button[aria-pressed="true"], .footer.bg-red .rt-switch button[aria-pressed="true"] span { color: #c8102e !important; }
html[data-theme="dark"] body a:not(.btn):not(.mcsbtn):not(.social-icon):not(.ratel-whatsapp):not(.page-link) { color: var(--rt-text); }
html[data-theme="dark"] body a:not(.btn):not(.mcsbtn):not(.social-icon):not(.ratel-whatsapp):not(.page-link):hover { color: var(--rt-gold); }
html[data-theme="dark"] .header-contact img, html[data-theme="dark"] .info-box img[src$=".png"], html[data-theme="dark"] .sticky-navbar img { filter: invert(1) brightness(1.6); }
html[data-theme="dark"] .minicart-icon, html[data-theme="dark"] .minicart-icon:before { border-color: var(--rt-text) !important; }
html[data-theme="dark"] .cart-count, html[data-theme="dark"] .badge-circle { color: #fff !important; }
html[data-theme="dark"] .dpadding strong, html[data-theme="dark"] .dpadding span, html[data-theme="dark"] .dpadding p, html[data-theme="dark"] .dpadding li, html[data-theme="dark"] .dpadding h1, html[data-theme="dark"] .dpadding h2, html[data-theme="dark"] .dpadding h3 { color: var(--rt-text-2) !important; }
html[data-theme="dark"] .dpadding strong, html[data-theme="dark"] .dpadding h1, html[data-theme="dark"] .dpadding h2, html[data-theme="dark"] .dpadding h3 { color: var(--rt-text) !important; }
html[data-theme="dark"] .product-desc-content [style*="color"], html[data-theme="dark"] .product-desc [style*="color"], html[data-theme="dark"] .tab-pane [style*="color"], html[data-theme="dark"] .dpadding [style*="color"] { color: inherit !important; background-color: transparent !important; }
html[data-theme="dark"] .info-box i, html[data-theme="dark"] .info-box h4, html[data-theme="dark"] .info-box p, html[data-theme="dark"] .feature-box i { color: var(--rt-text); }
html[data-theme="dark"] .info-boxes-container .info-box, html[data-theme="dark"] .info-box { border-color: var(--rt-line) !important; }
