/**
 * Thème noir du Black Friday, sur tout le site pendant les dates.
 *
 * Le thème DolceVitaDog repose sur des variables (--dvd-paper, --dvd-ink…) :
 * on les inverse ici, l'or prend la place du bleu nuit, et quelques fonds
 * blancs écrits en dur sont repris. Le thème lui-même n'est pas modifié.
 * Le panier et le tunnel de commande gardent une feuille claire au centre ;
 * l'administration ne reçoit pas ce fichier.
 */

html.dvd-bf-noir {
  color-scheme: dark;
  --dvd-ink:        #f4eee3;
  --dvd-ink-2:      #e2dacb;
  --dvd-paper:      #0c0b0a;
  --dvd-paper-2:    #161412;
  --dvd-paper-3:    #201d1a;
  --dvd-sage:       #d9b26a;
  --dvd-sage-d:     #f0cf8a;
  --dvd-sage-l:     #e6c48b;
  --dvd-sage-wash:  #1b1814;
  --dvd-amber:      #d9b26a;
  --dvd-amber-d:    #f0cf8a;
  --dvd-amber-l:    #f0cf8a;
  --dvd-muted:      #a39b8f;
  --dvd-line:       rgba(244, 238, 227, .12);
  --dvd-line-2:     rgba(244, 238, 227, .2);
  --dvd-border:     rgba(244, 238, 227, .2);
  --dvd-shadow-sm:  0 2px 8px rgba(0, 0, 0, .35);
  --dvd-shadow:     0 8px 24px rgba(0, 0, 0, .4);
  --dvd-shadow-lg:  0 20px 60px rgba(0, 0, 0, .5);
  --bs-body-color:  #f4eee3;
  --bs-body-bg:     #0c0b0a;
  --bs-primary:     #d9b26a;
  --bs-primary-rgb: 217, 178, 106;
  --bs-link-color:  #f0cf8a;
  --bs-link-hover-color: #ffffff;
  --bs-border-color: rgba(244, 238, 227, .2);
  --bs-secondary-color: #a39b8f;
  --bs-tertiary-bg: #161412;
  --bs-secondary-bg: #161412;
}
html.dvd-bf-noir body { background: #0c0b0a; color: #f4eee3; }

/* Boutons principaux : or, texte noir. */
html.dvd-bf-noir .btn-primary,
html.dvd-bf-noir .btn-dark,
html.dvd-bf-noir .button--primary {
  --bs-btn-bg: #d9b26a; --bs-btn-border-color: #d9b26a; --bs-btn-color: #0c0b0a;
  --bs-btn-hover-bg: #f0cf8a; --bs-btn-hover-border-color: #f0cf8a; --bs-btn-hover-color: #0c0b0a;
  --bs-btn-active-bg: #f0cf8a; --bs-btn-active-color: #0c0b0a;
  background-color: #d9b26a; border-color: #d9b26a; color: #0c0b0a;
}
html.dvd-bf-noir .btn-outline-primary,
html.dvd-bf-noir .btn-outline-dark {
  --bs-btn-color: #f4eee3; --bs-btn-border-color: rgba(244, 238, 227, .4);
  --bs-btn-hover-bg: #f4eee3; --bs-btn-hover-color: #0c0b0a;
}

/* Champs de saisie hors tunnel (recherche, newsletter, connexion). */
html.dvd-bf-noir .form-control,
html.dvd-bf-noir .form-select,
html.dvd-bf-noir input[type="search"],
html.dvd-bf-noir input[type="email"],
html.dvd-bf-noir input[type="text"],
html.dvd-bf-noir textarea {
  background-color: #161412; color: #f4eee3; border-color: rgba(244, 238, 227, .2);
}
html.dvd-bf-noir ::placeholder { color: #8b847a; }

/* Fonds blancs écrits en dur dans le thème. */
html.dvd-bf-noir .dvd-formation-card,
html.dvd-bf-noir .dropdown-menu,
html.dvd-bf-noir .card,
html.dvd-bf-noir .modal-content,
html.dvd-bf-noir .list-group-item { background-color: #161412; color: #f4eee3; }

/* Les photos produits restent sur leur fond clair, encadrées. */
html.dvd-bf-noir img { color-scheme: normal; }

/* Logo blanc sur noir : version au trait blanc de l'aquarelle (images/logo-blanc.png). */
html.dvd-bf-noir .dvd-brand { background: url(../images/logo-blanc.png) center / contain no-repeat; }
html.dvd-bf-noir .dvd-brand__logo { opacity: 0; }

/* Pas de décor de Noël pendant le Black Friday : guirlande, boules et houx
   de Noël léger (qui se met de toute façon en pause ces jours-là). */
html.dvd-bf-noir .dvd-header::after,
html.dvd-bf-noir .dvd-header .dvd-brand::after { display: none !important; content: none !important; }
html.dvd-bf-noir .dvd-noel-leger__bandeau { display: none !important; }

/* Le Menu de Noël en or. */
.dvd-bf-menu {
  display: block; padding: .55rem 1rem; text-align: center;
  background: linear-gradient(90deg, #a97f34, #d9b26a 50%, #a97f34);
  color: #0c0b0a !important; text-decoration: none !important;
  font: 600 .85rem/1.3 var(--dvd-sans, 'Inter', sans-serif); letter-spacing: .02em;
}
.dvd-bf-menu:hover { background: #f0cf8a; }
html.dvd-bf-noir .dvd-menu-bande {
  --mb-sapin: #0c0b0a; --mb-sapin-c: #201d1a; --mb-sapin-f: #0c0b0a; --mb-or: #d9b26a; --mb-creme: #f4eee3;
  border-block: 1px solid rgba(217, 178, 106, .35);
}
html.dvd-bf-noir .dvd-menu-bande::before { opacity: .25; }

/* Bandeau du Black Friday, en haut de chaque page. */
.dvd-bf-bandeau {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .45rem .7rem;
  padding: .6rem 1rem; background: #0c0b0a; border-bottom: 1px solid rgba(217, 178, 106, .35);
  font: 500 .74rem/1.3 var(--dvd-sans, 'Inter', sans-serif); letter-spacing: .16em; text-transform: uppercase;
  color: #e2dacb !important; text-decoration: none !important; text-align: center;
}
.dvd-bf-bandeau b { color: #f0cf8a; font-weight: 700; }
.dvd-bf-bandeau__sep { color: #a97f34; }
.dvd-bf-bandeau__lien { color: #0c0b0a; background: #d9b26a; padding: .3rem .65rem; border-radius: 999px; letter-spacing: .12em; font-weight: 700; }
.dvd-bf-bandeau:hover .dvd-bf-bandeau__lien { background: #f0cf8a; }
@media (max-width: 640px) {
  .dvd-bf-bandeau { font-size: .66rem; letter-spacing: .1em; }
  .dvd-bf-bandeau__sep:first-of-type + span, .dvd-bf-bandeau__sep:first-of-type { display: none; }
}

/* Bande de réassurance (bleu nuit dans le thème) : noir profond, filet doré. */
html.dvd-bf-noir .dvd-iconbox { background: #161412; border-block: 1px solid rgba(217, 178, 106, .25); }
html.dvd-bf-noir .dvd-iconbox__title { color: #f4eee3; }
html.dvd-bf-noir .dvd-iconbox__desc { color: #a39b8f; }

/* Pied de page (encre dans le thème) : reste noir. */
html.dvd-bf-noir .dvd-footer { background: #070605; color: #e2dacb; border-top: 1px solid rgba(217, 178, 106, .25); }
html.dvd-bf-noir .dvd-footer a, html.dvd-bf-noir .dvd-footer .block a { color: #e2dacb; }
html.dvd-bf-noir .dvd-footer a:hover, html.dvd-bf-noir .dvd-footer .block a:hover { color: #f0cf8a; }

/* Pastille du panier : or sur noir. */
html.dvd-bf-noir .dvd-cart-count, html.dvd-bf-noir .dvd-icon-btn .badge { background: #d9b26a; color: #0c0b0a; }

/* Messages (statut, avertissement, erreur) : fond sombre, texte clair. */
html.dvd-bf-noir .messages--status  { --dvd-msg-bg: #161412; --dvd-msg-line: rgba(217, 178, 106, .45); }
html.dvd-bf-noir .messages--warning { --dvd-msg-bg: #1f1a10; --dvd-msg-line: rgba(240, 207, 138, .55); }
html.dvd-bf-noir .messages--error   { --dvd-msg-bg: #2a1410; --dvd-msg-line: rgba(224, 120, 90, .6); --dvd-msg-accent: #d06a48; }
html.dvd-bf-noir .messages .messages__content.alert { color: #f4eee3 !important; border-color: var(--dvd-msg-line) !important; }
html.dvd-bf-noir .messages .messages__content.alert::before { color: #0c0b0a; }
html.dvd-bf-noir .messages .btn-close,
html.dvd-bf-noir .toast .btn-close,
html.dvd-bf-noir .alert .btn-close { filter: invert(1) grayscale(1) brightness(1.6); }
html.dvd-bf-noir .alert:not(.messages__content) { background-color: #161412; color: #f4eee3; border-color: rgba(244, 238, 227, .2); }
html.dvd-bf-noir .toast, html.dvd-bf-noir .toast-header, html.dvd-bf-noir .toast-body { background-color: #161412; color: #f4eee3; border-color: rgba(217, 178, 106, .35); }
html.dvd-bf-noir .form-item--error-message, html.dvd-bf-noir .invalid-feedback { color: #f0a58a; }

/* Panier et tunnel de commande : page noire, contenu sur une feuille claire.
   Les variables d'origine du thème sont remises à l'intérieur de la feuille :
   formulaires, carte des points relais, paiement gardent leurs couleurs. */
html.dvd-bf-noir .dvd-checkout-header,
html.dvd-bf-noir .dvd-checkout-footer { background: #0c0b0a; color: #e2dacb; border-color: rgba(217, 178, 106, .25); }
html.dvd-bf-noir main.dvd-checkout { background: #0c0b0a; }
html.dvd-bf-noir .dvd-checkout__inner,
html.dvd-bf-noir .cart.cart-form {
  color-scheme: light;
  --dvd-ink: #1f1a17; --dvd-ink-2: #2d2823;
  --dvd-paper: #faf6ee; --dvd-paper-2: #f2ecdd; --dvd-paper-3: #e8dfc8;
  --dvd-sage: #1f1a17; --dvd-sage-d: #0c0b0a; --dvd-sage-l: #5b5246; --dvd-sage-wash: #efe6d4;
  --dvd-amber: #a97f34; --dvd-amber-d: #8a6526; --dvd-amber-l: #c89b4c;
  --dvd-muted: #6d665e;
  --dvd-line: rgba(31, 26, 23, .1); --dvd-line-2: rgba(31, 26, 23, .18); --dvd-border: rgba(31, 26, 23, .18);
  --bs-body-color: #1f1a17; --bs-body-bg: #faf6ee; --bs-border-color: rgba(31, 26, 23, .18);
  --bs-link-color: #1f1a17; --bs-secondary-color: #6d665e; --bs-tertiary-bg: #f2ecdd; --bs-secondary-bg: #f2ecdd;
  background: #faf6ee; color: #1f1a17;
  border-radius: 18px; border: 1px solid rgba(217, 178, 106, .55);
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
}
html.dvd-bf-noir .dvd-checkout__inner .form-control,
html.dvd-bf-noir .dvd-checkout__inner .form-select,
html.dvd-bf-noir .dvd-checkout__inner input[type="text"],
html.dvd-bf-noir .dvd-checkout__inner input[type="email"],
html.dvd-bf-noir .dvd-checkout__inner input[type="search"],
html.dvd-bf-noir .dvd-checkout__inner textarea,
html.dvd-bf-noir .cart.cart-form .form-control,
html.dvd-bf-noir .cart.cart-form input[type="text"],
html.dvd-bf-noir .cart.cart-form input[type="number"] {
  background-color: #fff; color: #1f1a17; border-color: rgba(31, 26, 23, .18);
}
html.dvd-bf-noir .dvd-checkout__inner ::placeholder,
html.dvd-bf-noir .cart.cart-form ::placeholder { color: #8b847a; }
html.dvd-bf-noir .dvd-checkout__inner a,
html.dvd-bf-noir .cart.cart-form a { color: #1f1a17; }
html.dvd-bf-noir .dvd-checkout__inner .btn-close,
html.dvd-bf-noir .cart.cart-form .btn-close { filter: none; }

/* Bloc « La lettre DolceVitaDog » (bleu nuit dans le thème) : noir, filet doré. */
html.dvd-bf-noir .dvd-newsletter { background: #161412; color: #f4eee3; border: 1px solid rgba(217, 178, 106, .35); }
html.dvd-bf-noir .dvd-newsletter__title,
html.dvd-bf-noir .dvd-newsletter__lede,
html.dvd-bf-noir .dvd-newsletter__lede p { color: #f4eee3; }

/* Encarts à fond blanc écrit en dur (achat des formations, option LED du
   harnais sur mesure, encart Alma) : ils gardent les couleurs claires. */
html.dvd-bf-noir .fp-buy,
html.dvd-bf-noir .fp-mobilebar,
html.dvd-bf-noir .fp-week__h,
html.dvd-bf-noir .hq-led,
html.dvd-bf-noir .alma-payment-wrapper {
  color-scheme: light;
  --dvd-ink: #1f1a17; --dvd-ink-2: #2d2823;
  --dvd-paper: #faf6ee; --dvd-paper-2: #f2ecdd; --dvd-paper-3: #e8dfc8;
  --dvd-sage: #1f1a17; --dvd-sage-d: #0c0b0a; --dvd-sage-l: #5b5246; --dvd-sage-wash: #efe6d4;
  --dvd-amber: #a97f34; --dvd-amber-d: #8a6526; --dvd-amber-l: #c89b4c;
  --dvd-muted: #6d665e;
  --dvd-line: rgba(31, 26, 23, .1); --dvd-line-2: rgba(31, 26, 23, .18); --dvd-border: rgba(31, 26, 23, .18);
  --bs-body-color: #1f1a17; --bs-link-color: #1f1a17; --bs-secondary-color: #6d665e;
  color: #1f1a17;
}
html.dvd-bf-noir .fp-buy .form-control,
html.dvd-bf-noir .fp-buy .form-select,
html.dvd-bf-noir .fp-buy input[type="text"] { background-color: #fff; color: #1f1a17; border-color: rgba(31, 26, 23, .18); }

/* Pastilles dorées : texte noir. */
html.dvd-bf-noir .dvd-404-cta,
html.dvd-bf-noir .field--name-field-badge,
html.dvd-bf-noir .dvd-icon-btn__count,
html.dvd-bf-noir .hq-num,
html.dvd-bf-noir .dvd-menu-bande__bouton,
html.dvd-bf-noir .dvd-menu-bande__bouton:hover,
html.dvd-bf-noir .dvd-menu-bande__bouton:focus { color: #0c0b0a; }

/* Titres posés sur les photos des deux cartes de l'accueil. */
html.dvd-bf-noir .dvd-banner-card__title { color: #f4eee3; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }

/* Loupe de la recherche : pastille dorée, loupe noire. */
html.dvd-bf-noir #block-dolcevitadog-exposedformproduct-catalogproduct-catalog-search [type="submit"],
html.dvd-bf-noir #block-dolcevitadog-exposedformproduct-catalogproduct-catalog-search .form-actions .btn {
  background-color: #d9b26a !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230c0b0a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
}

/* Lettre : champ visible, petite ligne lisible. */
html.dvd-bf-noir .dvd-newsletter input[type="email"] { background-color: #0c0b0a; border-color: rgba(217, 178, 106, .45); }
html.dvd-bf-noir .dvd-newsletter__fineprint { color: #a39b8f; opacity: 1; }

/* Page du Menu de Noël : ses champs restent sur fond blanc. */
html.dvd-bf-noir .mn-form input:not([type="checkbox"]):not([type="radio"]) { background-color: #fff; }
