/* rfblackfriday : mode noir & rouge (RFDEV). Chargé UNIQUEMENT pendant la période active.
 * Base : le mode sombre Bootstrap 5.3 du thème Hummingbird (data-bs-theme="dark" posé sur <html>),
 * puis surcharges de la palette et des composants. Tout est préfixé html.rfbf. */
html.rfbf {
  --rfbf-red: #e31d27;
  --rfbf-red-light: #ff4a52;
  --rfbf-black: #000;
  --rfbf-surface: #141414;
  --rfbf-line: #2b2b2b;
  --bs-body-bg: #0a0a0a;
  --bs-body-bg-rgb: 10, 10, 10;
  --bs-body-color: #f2f2f2;
  --bs-body-color-rgb: 242, 242, 242;
  --bs-secondary-bg: var(--rfbf-surface);
  --bs-tertiary-bg: #101010;
  --bs-border-color: var(--rfbf-line);
  --bs-link-color: var(--rfbf-red-light);
  --bs-link-hover-color: #fff;
  --bs-primary: var(--rfbf-red);
  --bs-primary-rgb: 227, 29, 39;
}
html.rfbf body { background: #0a0a0a; color: #f2f2f2; }

/* Boutons : le thème a des boutons noirs (illisibles sur noir) → rouge */
html.rfbf .btn-primary {
  --bs-btn-color: #fff; --bs-btn-bg: var(--rfbf-red); --bs-btn-border-color: var(--rfbf-red);
  --bs-btn-hover-color: #000; --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff;
  --bs-btn-active-color: #000; --bs-btn-active-bg: #fff; --bs-btn-active-border-color: #fff;
  --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #5a0f13; --bs-btn-disabled-border-color: #5a0f13;
}
html.rfbf .btn-outline-primary {
  --bs-btn-color: #fff; --bs-btn-border-color: var(--rfbf-red);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--rfbf-red); --bs-btn-hover-border-color: var(--rfbf-red);
  --bs-btn-active-bg: var(--rfbf-red); --bs-btn-active-border-color: var(--rfbf-red);
}
html.rfbf .btn-secondary, html.rfbf .btn-outline-secondary { --bs-btn-color: #fff; --bs-btn-border-color: #555; }

/* En-tête et pied de page */
html.rfbf .header, html.rfbf .header-top, html.rfbf .header-bottom, html.rfbf .header-block { background-color: #000 !important; }
html.rfbf .header-bottom { border-bottom: 2px solid var(--rfbf-red); }
html.rfbf .header a, html.rfbf .header .nav-link, html.rfbf .header .material-icons { color: #fff; }
html.rfbf .header a:hover { color: var(--rfbf-red-light); }
/* Le logo est prévu pour un fond clair : pastille noire */
html.rfbf .header-bottom .logo img, html.rfbf .header .navbar-brand img { background: #000; padding: 4px 10px; border-radius: 6px; }
html.rfbf .footer, html.rfbf footer { background: #000 !important; border-top: 3px solid var(--rfbf-red); color: #e8e8e8; }
html.rfbf .footer a { color: #e8e8e8; }
html.rfbf .footer a:hover { color: var(--rfbf-red-light); }

/* Cartes, listes, fiches, panier */
html.rfbf .card, html.rfbf .list-group-item, html.rfbf .modal-content, html.rfbf .offcanvas, html.rfbf .dropdown-menu,
html.rfbf .accordion-item, html.rfbf .accordion-button { background-color: var(--rfbf-surface); color: #f2f2f2; border-color: var(--rfbf-line); }
html.rfbf .product-miniature .card { border-color: var(--rfbf-line); }
html.rfbf .product-miniature .card:hover { border-color: var(--rfbf-red); }
html.rfbf .bg-white, html.rfbf .bg-light, html.rfbf .bg-body { background-color: var(--rfbf-surface) !important; }
html.rfbf .text-dark, html.rfbf .text-body { color: #f2f2f2 !important; }
html.rfbf .text-muted, html.rfbf .text-secondary { color: #a8a8a8 !important; }
/* Photos produits détourées sur fond blanc : on garde un fond clair derrière l'image */
html.rfbf .product-miniature__image img, html.rfbf .product-cover img, html.rfbf .product-thumbs img { background: #fff; }

/* Prix et promos en rouge vif */
html.rfbf .product-miniature__price, html.rfbf .current-price, html.rfbf .price, html.rfbf .product-price,
html.rfbf .discount-percentage, html.rfbf .product-flag.discount { color: var(--rfbf-red-light); }
html.rfbf .product-flag, html.rfbf .badge.bg-primary { background: var(--rfbf-red) !important; color: #fff !important; }
html.rfbf .product-miniature__regular-price, html.rfbf .regular-price { color: #9a9a9a; }

/* Formulaires, tableaux, fil d'Ariane */
html.rfbf .form-control, html.rfbf .form-select, html.rfbf .input-group-text { background-color: #111; color: #f2f2f2; border-color: #3a3a3a; }
html.rfbf .form-control:focus, html.rfbf .form-select:focus { border-color: var(--rfbf-red); box-shadow: 0 0 0 .2rem rgba(227, 29, 39, .25); }
html.rfbf .table { --bs-table-bg: transparent; --bs-table-color: #f2f2f2; --bs-table-border-color: var(--rfbf-line); }
html.rfbf .breadcrumb a { color: #cfcfcf; }
html.rfbf .page-link { background: #111; color: #f2f2f2; border-color: var(--rfbf-line); }
html.rfbf .page-item.active .page-link { background: var(--rfbf-red); border-color: var(--rfbf-red); }
html.rfbf hr { border-color: var(--rfbf-line); opacity: 1; }
html.rfbf ::selection { background: var(--rfbf-red); color: #fff; }
