/* ==========================================================================
   CHILD_BLACKFRIDAY — Couche visuelle « Black Friday » (v1.4.0)
   --------------------------------------------------------------------------
   Chargée APRÈS theme.css (hummingbird) et custom.css (identique à
   child_hummingbird). Supprimer ce fichier = rendu de child_hummingbird.

   Direction artistique « grande enseigne » :
   - noir profond + jaune électrique = l'événement (bandeaux, hero, pastilles) ;
   - rouge = le prix uniquement (déjà géré par custom.css) ;
   - catalogue sur fond clair : photos produit nettes, logo jamais sur du noir ;
   - une seule police d'affichage (Anton) pour les titres événement ;
   - iconographie SVG au trait, aucun émoji ;
   - animations limitées au hero, coupées si prefers-reduced-motion.

   Rappel @layer : hummingbird déclare ses styles dans des couches. Une
   règle HORS couche gagne sur une règle EN couche (sans !important). Les
   !important posés DANS les couches du thème sont imbattables : on passe
   alors par background-image (cf. custom.css section 3).
   ========================================================================== */

:root {
    --bf-black: #0b0b0d;
    --bf-ink: #141418;
    --bf-ink-2: #1f1f25;
    --bf-line: rgba(255, 255, 255, 0.12);
    --bf-yellow: #ffd60a;
    --bf-yellow-2: #ffe14d;
    --bf-red: #e3001b;
    --bf-white: #ffffff;
    --bf-mute: #a1a1aa;
    --bf-radius: 14px;
    --bf-display: "Anton", "Impact", "Arial Narrow Bold", "Helvetica Neue", Arial, sans-serif;

    /* Bootstrap / hummingbird : la couleur de marque passe du bleu au noir */
    --bs-primary: #0b0b0d;
    --bs-primary-rgb: 11, 11, 13;
    --bs-link-hover-color: #e3001b;
    --bs-link-hover-color-rgb: 227, 0, 27;

    /* v1.3.0 — custom.css (commun avec child_hummingbird) colore les prix
       remisés avec --abi-sale : on lui donne le rouge de l'événement. */
    --abi-sale: #e3001b;
}

::selection {
    background: var(--bf-yellow);
    color: var(--bf-black);
}

.bf-icon {
    width: 1.25em;
    height: 1.25em;
    flex: 0 0 auto;
    vertical-align: -0.2em;
}

/* ==========================================================================
   1. COMPTE À REBOURS (commun)
   ========================================================================== */
.bf-countdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-variant-numeric: tabular-nums;
}

.bf-countdown[hidden] {
    display: none !important;
}

.bf-countdown--mini .bf-countdown__unit {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    min-width: 2.6em;
    justify-content: center;
    padding: 3px 6px;
    border-radius: 5px;
    background: var(--bf-ink-2);
    border: 1px solid var(--bf-line);
}

.bf-countdown--mini b {
    color: var(--bf-white);
    font-weight: 700;
    font-size: 0.85rem;
}

.bf-countdown--mini small {
    color: var(--bf-yellow);
    font-size: 0.68rem;
    font-weight: 600;
}

/* ==========================================================================
   2. BANDEAU HAUT
   ========================================================================== */
.bf-topbar {
    background: var(--bf-black);
    color: var(--bf-white);
    font-size: 0.85rem;
    line-height: 1.2;
}

.bf-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.5rem;
    min-height: 44px;
    padding-block: 6px;
}

.bf-topbar__tag {
    font-family: var(--bf-display);
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--bf-black) !important;
    text-decoration: none !important;
    background: var(--bf-yellow);
    padding: 4px 10px 3px;
    border-radius: 4px;
    white-space: nowrap;
}

.bf-topbar__msg {
    font-weight: 500;
    color: #e4e4e7;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.bf-topbar__timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.bf-topbar__label {
    color: var(--bf-mute);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bf-topbar__cta {
    color: var(--bf-yellow) !important;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.bf-topbar__cta:hover,
.bf-topbar__cta:focus-visible {
    color: var(--bf-white) !important;
}

@media (max-width: 1199.98px) {
    .bf-topbar__msg { display: none; }
}

@media (max-width: 575.98px) {
    .bf-topbar__inner { gap: 10px; min-height: 40px; }
    .bf-topbar__label,
    .bf-topbar__cta { display: none; }
    .bf-topbar__tag { font-size: 0.95rem; }
    .bf-countdown--mini .bf-countdown__unit { min-width: 2.3em; padding: 3px 4px; }
}

/* ==========================================================================
   3. HERO (page d'accueil)
   ========================================================================== */
.bf-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    max-width: 1320px;
    margin: 1.25rem auto 0;
    border-radius: 20px;
    background: var(--bf-black);
    color: var(--bf-white);
}

.bf-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(55% 75% at 100% 0%, rgba(255, 214, 10, 0.16), transparent 60%),
        radial-gradient(50% 70% at 0% 100%, rgba(227, 0, 27, 0.18), transparent 60%),
        linear-gradient(180deg, #111115 0%, var(--bf-black) 100%);
}

.bf-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(70% 90% at 75% 30%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(70% 90% at 75% 30%, #000 0%, transparent 75%);
}

.bf-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    padding: clamp(2rem, 4.5vw, 3.75rem) clamp(1.25rem, 4.5vw, 3.75rem) clamp(1.5rem, 3vw, 2.5rem);
}

.bf-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 1rem;
    padding: 6px 14px 6px 10px;
    border: 1px solid var(--bf-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e4e4e7;
}

.bf-hero__sep {
    color: var(--bf-yellow);
    margin: 0 8px 0 2px;
}

.bf-hero__live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bf-yellow);
    box-shadow: 0 0 0 0 rgba(255, 214, 10, 0.6);
    animation: bf-ping 2s infinite;
}

.bf-hero__title {
    margin: 0;
    font-family: var(--bf-display);
    font-weight: 400;
    font-size: clamp(3.4rem, 8.6vw, 7.4rem);
    line-height: 0.9;
    letter-spacing: 0.005em;
    text-transform: uppercase;
    color: var(--bf-white);
}

.bf-hero__word {
    display: inline-block;
}

.bf-hero__word--outline {
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.92);
    margin-right: 0.12em;
}

.bf-hero__promo {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.85rem;
    margin: 1.1rem 0 0.75rem;
}

.bf-hero__promo-value {
    font-family: var(--bf-display);
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    line-height: 1;
    text-transform: uppercase;
    color: var(--bf-yellow);
}

.bf-hero__promo-note {
    font-size: 0.9rem;
    color: var(--bf-mute);
}

.bf-hero__text {
    max-width: 36rem;
    margin: 0 0 1.75rem;
    font-size: 1.02rem;
    line-height: 1.55;
    color: #d4d4d8;
}

.bf-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 1.6rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-decoration: none !important;
    transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}

.bf-btn--yellow {
    background: var(--bf-yellow);
    color: var(--bf-black) !important;
}

.bf-btn--yellow:hover,
.bf-btn--yellow:focus-visible {
    background: var(--bf-yellow-2);
    transform: translateY(-1px);
}

.bf-btn--yellow .bf-icon {
    transition: transform .15s ease;
}

.bf-btn--yellow:hover .bf-icon {
    transform: translateX(3px);
}

.bf-btn--ghost {
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--bf-white) !important;
}

.bf-btn--ghost:hover,
.bf-btn--ghost:focus-visible {
    border-color: var(--bf-white);
    background: rgba(255, 255, 255, 0.06);
}

/* Panneau compte à rebours */
.bf-hero__panel {
    padding: 1.5rem;
    border: 1px solid var(--bf-line);
    border-radius: var(--bf-radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.bf-hero__panel-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bf-mute);
}

.bf-hero__panel-label .bf-icon {
    color: var(--bf-yellow);
}

.bf-countdown--big {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.bf-countdown--big .bf-countdown__unit {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 4px 10px;
    border-radius: 10px;
    background: var(--bf-ink-2);
    border: 1px solid var(--bf-line);
}

.bf-countdown--big .bf-countdown__unit::after {
    /* ligne de pliure façon afficheur à palettes */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(0, 0, 0, 0.45);
}

.bf-countdown--big b {
    font-family: var(--bf-display);
    font-weight: 400;
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    line-height: 1;
    color: var(--bf-white);
}

.bf-countdown--big small {
    margin-top: 8px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bf-yellow);
}

.bf-hero__panel-foot {
    margin: 1rem 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--bf-mute);
}

/* --- Univers --- */
.bf-univers {
    padding: 0 clamp(1.25rem, 4.5vw, 3.75rem) clamp(1.5rem, 3.5vw, 2.75rem);
}

.bf-univers__list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 1.5rem 0 0;
    list-style: none;
    border-top: 1px solid var(--bf-line);
}

.bf-univers__tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--bf-line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--bf-white) !important;
    text-decoration: none !important;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.bf-univers__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    border-radius: 10px;
    background: rgba(255, 214, 10, 0.12);
    color: var(--bf-yellow);
    font-size: 1.2rem;
}

.bf-univers__label {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.25;
}

.bf-univers__more {
    margin-top: auto;
    font-size: 0.78rem;
    color: var(--bf-mute);
}

.bf-univers__tile:hover,
.bf-univers__tile:focus-visible {
    border-color: var(--bf-yellow);
    background: rgba(255, 214, 10, 0.06);
    transform: translateY(-2px);
}

.bf-univers__tile:hover .bf-univers__more {
    color: var(--bf-yellow);
}

/* --- Réassurance --- */
.bf-trust {
    max-width: 1320px;
    margin: 12px auto 2.5rem;
}

.bf-trust__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bf-trust__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--bf-white);
    border: 1px solid #e7e7ea;
}

.bf-trust__icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bf-black);
    color: var(--bf-yellow);
    font-size: 1.15rem;
}

.bf-trust__item strong {
    display: block;
    font-size: 0.92rem;
    color: #18181b;
}

.bf-trust__item small {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
}

@media (max-width: 1199.98px) {
    .bf-univers__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .bf-trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .bf-hero__inner { grid-template-columns: 1fr; }
}

@media (max-width: 1359.98px) {
    .bf-hero,
    .bf-trust { margin-inline: 12px; }
}

@media (max-width: 575.98px) {
    .bf-hero { border-radius: 16px; margin-top: 12px; }
    .bf-hero__word--outline { -webkit-text-stroke-width: 1.5px; }
    .bf-hero__period { display: none; }
    .bf-hero__text { font-size: 0.95rem; }
    .bf-hero__actions .bf-btn { flex: 1 1 100%; }
    .bf-hero__panel { padding: 1rem; }
    .bf-univers__list { gap: 8px; padding-top: 1.1rem; }
    .bf-univers__tile { padding: 12px 8px; align-items: center; text-align: center; }
    .bf-univers__more { display: none; }
    .bf-univers__label { font-size: 0.8rem; }
    .bf-univers__icon { width: 38px; height: 38px; }
    .bf-trust__list { grid-template-columns: 1fr 1fr; gap: 8px; }
    .bf-trust__item { flex-direction: column; text-align: center; gap: 8px; padding: 14px 10px; }
}

/* Titres de section des modules d'accueil */
.page-content--home .section-title,
.page-content--home .products-section-title {
    font-family: var(--bf-display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   4. RAPPEL SUR LES LISTINGS (catégorie, recherche, promotions…)
   ========================================================================== */
.bf-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 0 0 1.25rem;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--bf-black);
    color: #e4e4e7;
    font-size: 0.88rem;
}

.bf-strip__tag {
    font-family: var(--bf-display);
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--bf-black);
    background: var(--bf-yellow);
    padding: 3px 9px 2px;
    border-radius: 4px;
}

.bf-strip__timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.bf-strip__label {
    color: var(--bf-mute);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bf-strip__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bf-yellow) !important;
    font-weight: 700;
    text-decoration: none !important;
}

.bf-strip__link:hover {
    color: var(--bf-white) !important;
}

@media (max-width: 767.98px) {
    .bf-strip__text,
    .bf-strip__label { display: none; }
    .bf-strip__timer { margin-left: 0; }
}

/* Page Promotions : en-tête événement */
#prices-drop #js-product-list-header .page-title-section,
#prices-drop .page-header {
    background: var(--bf-black);
    color: var(--bf-white);
    border-radius: 12px;
    padding: 1.1rem 1.5rem;
    margin-bottom: 12px;
}

#prices-drop #js-product-list-header h1 {
    margin: 0;
    color: var(--bf-white);
    font-family: var(--bf-display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

#prices-drop #js-product-list-header h1::before {
    content: "Black Friday · ";
    color: var(--bf-yellow);
}

/* ==========================================================================
   5. BOUTONS
   ========================================================================== */
.btn-primary {
    --bs-btn-bg: var(--bf-black);
    --bs-btn-border-color: var(--bf-black);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #26262d;
    --bs-btn-hover-border-color: #26262d;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #000;
    --bs-btn-active-border-color: #000;
    --bs-btn-focus-shadow-rgb: 255, 214, 10;
}

.btn-outline-primary {
    --bs-btn-color: var(--bf-black);
    --bs-btn-border-color: var(--bf-black);
    --bs-btn-hover-bg: var(--bf-black);
    --bs-btn-hover-border-color: var(--bf-black);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #000;
}

/* « Ajouter au panier » : noir premium, icône jaune ; jaune au survol */
.product-miniature__add.btn,
.product__add-to-cart-button.btn {
    background-color: var(--bf-black) !important;
    background-image: linear-gradient(var(--bf-black), var(--bf-black)) !important;
    border-color: var(--bf-black) !important;
    color: var(--bf-white) !important;
    font-weight: 700 !important;
    transition: background-color .15s ease, color .15s ease;
}

.product-miniature__add.btn .material-icons,
.product__add-to-cart-button.btn .material-icons {
    color: var(--bf-yellow);
}

.product-miniature__add.btn:hover,
.product-miniature__add.btn:focus-visible,
.product__add-to-cart-button.btn:hover,
.product__add-to-cart-button.btn:focus-visible {
    background-color: var(--bf-yellow) !important;
    background-image: linear-gradient(var(--bf-yellow), var(--bf-yellow)) !important;
    border-color: var(--bf-yellow) !important;
    color: var(--bf-black) !important;
}

.product-miniature__add.btn:hover .material-icons,
.product__add-to-cart-button.btn:hover .material-icons {
    color: var(--bf-black);
}

.product-miniature__add.btn:disabled,
.product__add-to-cart-button.btn:disabled {
    background-image: linear-gradient(#d4d4d8, #d4d4d8) !important;
    border-color: #d4d4d8 !important;
    color: #52525b !important;
}

/* ==========================================================================
   6. ÉTIQUETTE DE REMISE : bloc empilé « BLACK FRIDAY » / « -40% »
   (background-image obligatoire, cf. note @layer en tête de fichier)
   ========================================================================== */
ul.product-flags li.badge.discount-percent,
ul.product-flags li.badge.on-sale,
ul.product-flags li.badge.discount {
    background-color: var(--bf-yellow) !important;
    background-image: linear-gradient(var(--bf-yellow), var(--bf-yellow)) !important;
    color: var(--bf-black) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
}

ul.product-flags li.badge.discount-percent {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    overflow: hidden !important;
    padding: 0 0 5px !important;
    min-width: 76px;
    text-align: center !important;
    font-family: var(--bf-display) !important;
    font-weight: 400 !important;
    font-size: 1.35rem !important;
    line-height: 1 !important;
    letter-spacing: 0.01em !important;
    border-radius: 6px !important;
}

ul.product-flags li.badge.discount-percent::before {
    content: "Black Friday";
    display: block;
    margin-bottom: 5px;
    padding: 4px 6px 3px;
    background: var(--bf-black);
    color: var(--bf-white);
    font-family: var(--bf-display);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

/* ==========================================================================
   7. CARTES PRODUIT
   ========================================================================== */
.products .product-miniature--retail {
    transition: box-shadow .18s ease, border-color .18s ease;
}

.products .product-miniature--retail:hover {
    border-color: #18181b !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12) !important;
}

/* Économie réalisée « soit -24,00 € » : pastille noire chiffre jaune */
.product-miniature__saving {
    background: var(--bf-black) !important;
    color: var(--bf-yellow) !important;
    font-weight: 700 !important;
    border-radius: 4px;
    padding: 2px 6px;
}

/* ==========================================================================
   8. FICHE PRODUIT
   ========================================================================== */
.product__prices .product__discount-percentage.text-primary-emphasis,
.product__prices .product__discount-amount.text-primary-emphasis,
.product__discount-percentage,
.product__discount-amount {
    display: inline-block;
    background: var(--bf-black) !important;
    color: var(--bf-yellow) !important;
    -webkit-text-fill-color: var(--bf-yellow);
    font-weight: 700;
    border-radius: 4px;
    padding: 2px 8px;
}

.bf-offer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--bf-black);
    color: #d4d4d8;
    font-size: 0.82rem;
}

.bf-offer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.bf-offer__tag {
    font-family: var(--bf-display);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--bf-black);
    background: var(--bf-yellow);
    padding: 3px 8px 2px;
    border-radius: 4px;
}

.bf-offer__timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bf-offer__label {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bf-mute);
}

.bf-offer__text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bf-offer__text .bf-icon {
    color: var(--bf-yellow);
}

/* ==========================================================================
   9. FILTRES
   ========================================================================== */
#search_filters_wrapper input[type="checkbox"],
#search_filters_wrapper input[type="radio"] {
    accent-color: var(--bf-black);
}

/* ==========================================================================
   10. PIED DE PAGE : bande newsletter jaune, pied noir
   ========================================================================== */
#footer .footer__before {
    background: var(--bf-yellow) !important;
    color: var(--bf-black) !important;
}

#footer .footer__before h2,
#footer .footer__before h3,
#footer .footer__before p,
#footer .footer__before label,
#footer .footer__before .h3,
#footer .footer__before [class*="title"] {
    color: var(--bf-black) !important;
}

#footer .footer__before .btn,
#footer .footer__before button,
#footer .footer__before input[type="submit"] {
    background: var(--bf-black) !important;
    background-image: linear-gradient(var(--bf-black), var(--bf-black)) !important;
    border-color: var(--bf-black) !important;
    color: var(--bf-white) !important;
}

#footer .footer__before input[type="email"],
#footer .footer__before input[type="text"] {
    border-color: var(--bf-black) !important;
}

#footer .footer__main {
    background: var(--bf-black) !important;
}

#footer .footer__main a:hover,
#footer .footer__main a:focus-visible {
    color: var(--bf-yellow) !important;
}

/* ==========================================================================
   11. ANIMATIONS
   ========================================================================== */
@keyframes bf-ping {
    0% { box-shadow: 0 0 0 0 rgba(255, 214, 10, 0.6); }
    70% { box-shadow: 0 0 0 9px rgba(255, 214, 10, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 214, 10, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .bf-hero__live { animation: none !important; }
    .bf-btn,
    .bf-btn .bf-icon,
    .bf-univers__tile,
    .products .product-miniature--retail,
    .product-miniature__add.btn,
    .product__add-to-cart-button.btn { transition: none !important; }
}

/* ==========================================================================
   12. VOLET RÉPARATION (v1.2.0)
   - accueil : section .bf-repair (fond clair, encadré noir à droite) ;
   - pages réparation (CMS + module abirepair) : bandeau .bf-rstrip.
   Réglages : section « VOLET RÉPARATION » de blackfriday-config.tpl.
   ========================================================================== */
.bf-repair {
    max-width: 1320px;
    margin: 0 auto 2.5rem;
    border-radius: 20px;
    border: 1px solid #e7e7ea;
    background:
        radial-gradient(60% 90% at 0% 0%, rgba(255, 214, 10, 0.22), transparent 60%),
        #fafafa;
    color: #18181b;
    overflow: hidden;
}

.bf-repair__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 3.5vw, 3rem);
    padding: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.bf-repair__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 .75rem;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bf-black);
    color: var(--bf-yellow);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bf-repair__title {
    margin: 0 0 .75rem;
    font-family: var(--bf-display);
    font-weight: 400;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .01em;
    color: var(--bf-black);
}

.bf-repair__text {
    max-width: 38rem;
    margin: 0 0 1.25rem;
    font-size: 1rem;
    line-height: 1.55;
    color: #3f3f46;
}

.bf-repair__offers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.bf-repair__offer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--bf-white);
    border: 1px solid #e7e7ea;
    border-left: 4px solid var(--bf-yellow);
}

.bf-repair__offer-value {
    font-family: var(--bf-display);
    font-size: 1.45rem;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--bf-black);
}

.bf-repair__offer-note {
    font-size: .82rem;
    line-height: 1.35;
    color: #6b7280;
}

.bf-repair__code {
    margin: 0 0 1rem;
    font-size: .9rem;
}

.bf-repair__code strong {
    padding: 2px 8px;
    border: 1px dashed var(--bf-black);
    border-radius: 6px;
    background: var(--bf-yellow);
    letter-spacing: .06em;
}

.bf-repair__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bf-btn--outline {
    border: 1px solid var(--bf-black);
    color: var(--bf-black) !important;
    background: transparent;
}

.bf-btn--outline:hover,
.bf-btn--outline:focus-visible {
    background: var(--bf-black);
    color: var(--bf-white) !important;
}

.bf-repair .bf-btn--yellow {
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.bf-repair__legal {
    margin: .9rem 0 0;
    font-size: .75rem;
    color: #71717a;
}

/* Encadré noir : tarifs + étapes */
.bf-repair__side {
    padding: clamp(1.1rem, 2.5vw, 1.6rem);
    border-radius: 16px;
    background: var(--bf-black);
    color: var(--bf-white);
}

.bf-repair__side-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    margin: 0 0 .75rem;
    font-weight: 700;
    font-size: 1rem;
}

.bf-repair__side-title small {
    font-weight: 400;
    font-size: .75rem;
    color: var(--bf-mute);
}

.bf-repair__services {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bf-repair__service {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bf-line);
}

.bf-repair__service-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 214, 10, .12);
    color: var(--bf-yellow);
}

.bf-repair__service-label {
    flex: 1 1 auto;
    font-size: .92rem;
}

.bf-repair__service-price {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.bf-repair__service-price small {
    font-weight: 400;
    color: var(--bf-mute);
}

.bf-repair__service-price--quote {
    font-weight: 400;
    color: var(--bf-mute);
}

.bf-repair__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 1rem 0;
    padding: 0;
    list-style: none;
}

.bf-repair__steps li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: 10px;
    border: 1px solid var(--bf-line);
    font-size: .8rem;
    text-align: center;
    color: #d4d4d8;
}

.bf-repair__steps .bf-icon {
    color: var(--bf-yellow);
}

.bf-repair__steps strong {
    color: var(--bf-white);
}

.bf-repair__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: .9rem;
    color: var(--bf-yellow) !important;
    text-decoration: none !important;
}

.bf-repair__more:hover .bf-icon {
    transform: translateX(3px);
}

.bf-repair__more .bf-icon {
    transition: transform .15s ease;
}

/* Bandeau des pages réparation */
.bf-rstrip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin: 0 0 1.25rem;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--bf-black);
    color: var(--bf-white);
}

.bf-rstrip__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 6px;
    background: var(--bf-yellow);
    color: var(--bf-black);
    font-family: var(--bf-display);
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.bf-rstrip__offer {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    flex: 1 1 auto;
    font-size: .95rem;
}

.bf-rstrip__offer strong {
    color: var(--bf-yellow);
}

.bf-rstrip__plus {
    color: var(--bf-mute);
}

.bf-rstrip__offer small {
    font-size: .8rem;
    color: var(--bf-mute);
}

.bf-rstrip__timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bf-rstrip__label {
    font-size: .78rem;
    color: var(--bf-mute);
}

.bf-rstrip__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid var(--bf-yellow);
    color: var(--bf-yellow) !important;
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none !important;
    transition: background-color .15s ease, color .15s ease;
}

.bf-rstrip__cta:hover,
.bf-rstrip__cta:focus-visible {
    background: var(--bf-yellow);
    color: var(--bf-black) !important;
}

@media (max-width: 1359.98px) {
    .bf-repair { margin-inline: 12px; }
}

@media (max-width: 991.98px) {
    .bf-repair__inner { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .bf-repair { border-radius: 16px; }
    .bf-repair__offers { grid-template-columns: 1fr; }
    .bf-repair__actions .bf-btn { flex: 1 1 100%; }
    .bf-repair__steps li { font-size: .74rem; padding: 8px 4px; }
    .bf-rstrip { padding: 12px; }
    .bf-rstrip__timer,
    .bf-rstrip__cta { flex: 1 1 100%; justify-content: center; }
}

/* Pages réparation (contenu CMS « abi-rep-* », style intégré à la page) :
   on passe le hero bleu en noir et les boutons principaux en jaune.
   « body » augmente la spécificité pour passer devant le <style> de la page. */
body .abi-rep-hero-overlay {
    background: linear-gradient(115deg, rgba(11, 11, 13, .94) 0%, rgba(11, 11, 13, .82) 45%, rgba(11, 11, 13, .4) 100%);
}

body .abi-rep-hero h1 span {
    color: var(--bf-yellow);
}

body .abi-rep-btn-primary {
    background: var(--bf-yellow);
    color: var(--bf-black);
    box-shadow: 0 4px 14px rgba(255, 214, 10, .3);
}

body .abi-rep-btn-primary:hover,
body .abi-rep-btn-primary:focus-visible {
    background: var(--bf-yellow-2);
    color: var(--bf-black);
}

@media (max-width: 575.98px) {
    .bf-rstrip__plus { display: none; }
    .bf-rstrip__offer { flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
    .bf-repair__more .bf-icon,
    .bf-rstrip__cta { transition: none !important; }
}

/* ==========================================================================
   13. PHASES DE L'ÉVÉNEMENT (v1.4.0)
   blackfriday.js pose <html data-bf-phase="pre | live | last | after">.
   Sans attribut (JS pas encore passé) : rendu « live ».
   ========================================================================== */
.bf-countdown__unit[hidden] {
    display: none !important;
}

/* Le grand compteur garde des cases égales même sans la case « jours » */
.bf-countdown--big {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
}

/* --- Avant le début : les promotions en cours ne sont pas encore « Black Friday » --- */
html[data-bf-phase="pre"] ul.product-flags li.badge.discount-percent::before,
html[data-bf-phase="after"] ul.product-flags li.badge.discount-percent::before {
    display: none;
}

html[data-bf-phase="pre"] ul.product-flags li.badge.discount-percent,
html[data-bf-phase="after"] ul.product-flags li.badge.discount-percent {
    padding: 6px 8px 5px !important;
    min-width: 0;
}

html[data-bf-phase="pre"] .bf-offer,
html[data-bf-phase="pre"] #prices-drop #js-product-list-header h1::before {
    display: none;
}

/* --- Dernières 24 heures : le rouge de l'urgence, sur les compteurs seulement --- */
html[data-bf-phase="last"] .bf-countdown__unit {
    background: var(--bf-red);
    border-color: transparent;
}

html[data-bf-phase="last"] .bf-countdown small {
    color: var(--bf-white);
}

html[data-bf-phase="last"] .bf-countdown--big .bf-countdown__unit::after {
    background: rgba(0, 0, 0, 0.25);
}

html[data-bf-phase="last"] .bf-topbar__label,
html[data-bf-phase="last"] .bf-strip__label,
html[data-bf-phase="last"] .bf-offer__label,
html[data-bf-phase="last"] .bf-rstrip__label,
html[data-bf-phase="last"] .bf-hero__panel-label {
    color: var(--bf-white);
    font-weight: 700;
}

/* --- Après la fin : plus aucune promesse datée à l'écran --- */
html[data-bf-phase="after"] .bf-topbar,
html[data-bf-phase="after"] .bf-hero,
html[data-bf-phase="after"] .bf-top,
html[data-bf-phase="after"] .bf-repair,
html[data-bf-phase="after"] .bf-strip,
html[data-bf-phase="after"] .bf-rstrip,
html[data-bf-phase="after"] .bf-offer,
html[data-bf-phase="after"] #prices-drop #js-product-list-header h1::before {
    display: none;
}

/* ==========================================================================
   14. RAIL « MEILLEURES OFFRES » (v1.4.0) — accueil, sous le hero
   Rempli par blackfriday.js avec les produits de la page Promotions.
   ========================================================================== */
.bf-top {
    max-width: 1320px;
    margin: 12px auto 0;
    padding: clamp(1rem, 2.2vw, 1.5rem);
    border-radius: 20px;
    border: 1px solid #e7e7ea;
    background: var(--bf-white);
}

.bf-top[hidden] {
    display: none;
}

.bf-top__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 1rem;
}

.bf-top__title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0;
    font-family: var(--bf-display);
    font-weight: 400;
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--bf-black);
}

.bf-top__tag {
    padding: 5px 10px 4px;
    border-radius: 4px;
    background: var(--bf-black);
    color: var(--bf-yellow);
    font-size: 0.72em;
    letter-spacing: 0.05em;
}

.bf-top__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bf-top__filters[hidden] {
    display: none;
}

.bf-chip {
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid #d4d4d8;
    border-radius: 999px;
    background: var(--bf-white);
    color: #27272a;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.bf-chip:hover {
    border-color: var(--bf-black);
}

.bf-chip[aria-pressed="true"] {
    border-color: var(--bf-black);
    background: var(--bf-black);
    color: var(--bf-white);
}

.bf-chip:focus-visible,
.bf-top__nav:focus-visible,
.bf-card:focus-visible {
    outline: 2px solid var(--bf-black);
    outline-offset: 2px;
}

.bf-top__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--bf-black) !important;
    text-decoration: underline !important;
    text-decoration-color: var(--bf-yellow) !important;
    text-decoration-thickness: 3px !important;
    text-underline-offset: 5px;
    white-space: nowrap;
}

.bf-top__all .bf-icon {
    transition: transform .15s ease;
}

.bf-top__all:hover .bf-icon {
    transform: translateX(3px);
}

.bf-top__viewport {
    position: relative;
}

.bf-top__list {
    --bf-cols: 6;
    --bf-gap: 12px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--bf-cols) - 1) * var(--bf-gap)) / var(--bf-cols));
    gap: var(--bf-gap);
    margin: 0;
    padding: 2px;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    scrollbar-width: none;
}

.bf-top__list::-webkit-scrollbar {
    display: none;
}

.bf-top__item,
.bf-top__skel {
    scroll-snap-align: start;
    min-width: 0;
}

/* Emplacements réservés pendant le chargement (pas d'animation) */
.bf-top__skel {
    min-height: 318px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f4f4f5 0 58%, #fafafa 58% 100%);
}

.bf-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    padding: 10px 10px 12px;
    border: 1px solid #e7e7ea;
    border-radius: 12px;
    background: var(--bf-white);
    color: #18181b !important;
    text-decoration: none !important;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.bf-card:hover {
    border-color: #18181b;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.bf-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    margin-bottom: 6px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bf-white);
}

.bf-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bf-card__badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 5px 8px 4px;
    border-radius: 6px;
    background: var(--bf-yellow);
    color: var(--bf-black);
    font-family: var(--bf-display);
    font-size: 1.15rem;
    line-height: 1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
}

.bf-card__brand {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #71717a;
}

.bf-card__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: 2.6em;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
}

.bf-card__prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px 8px;
    margin-top: auto;
    padding-top: 6px;
    font-variant-numeric: tabular-nums;
}

.bf-card__price {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--bf-red);
    white-space: nowrap;
}

.bf-card__old {
    font-size: 0.82rem;
    color: #71717a;
    white-space: nowrap;
}

.bf-card__save {
    align-self: flex-start;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bf-black);
    color: var(--bf-yellow);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.bf-top__nav {
    position: absolute;
    top: 38%;
    z-index: 2;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e7e7ea;
    border-radius: 50%;
    background: var(--bf-white);
    color: var(--bf-black);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}

.bf-top__nav[hidden] {
    display: none;
}

.bf-top__nav--prev {
    left: -14px;
    transform: scaleX(-1);
}

.bf-top__nav--next {
    right: -14px;
}

.bf-top__nav:hover {
    background: var(--bf-black);
    color: var(--bf-yellow);
}

.bf-top__nav:disabled {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 1359.98px) {
    .bf-top { margin-inline: 12px; }
}

@media (max-width: 1199.98px) {
    .bf-top__list { --bf-cols: 4; }
}

@media (max-width: 991.98px) {
    .bf-top__list { --bf-cols: 3.3; }
    .bf-top__nav { display: none; }
}

@media (max-width: 575.98px) {
    .bf-top { border-radius: 16px; padding: 14px 12px; }
    .bf-top__list { --bf-cols: 2.15; --bf-gap: 8px; }
    .bf-top__skel { min-height: 262px; }
    .bf-top__all { margin-left: 0; }
    .bf-card { padding: 8px 8px 10px; }
    .bf-card__price { font-size: 1.15rem; }
    .bf-card__name { font-size: 0.82rem; }

    /* Hero plus court sur téléphone : l'essentiel (titre, remise, bouton, compteur) */
    .bf-hero__text,
    .bf-hero__panel-foot { display: none; }
    .bf-hero__promo { margin-bottom: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .bf-chip,
    .bf-card,
    .bf-top__nav,
    .bf-top__all .bf-icon { transition: none !important; }
}
