/* ==========================================================================
   Thème « Black Friday » — un bandeau d'annonce, rien d'autre
   --------------------------------------------------------------------------
   Barre noire fixée en haut des pages vitrine ; tout le bandeau est un lien
   vers l'accueil AVEC le code de l'offre (./?from=BF40). Seul le visiteur qui
   clique a la remise, et il la voit dès le choix du véhicule : c'est voulu
   (décision de Godefroy, 25/11/2026). Le taux, les dates et l'interrupteur de
   l'offre vivent dans la table des remises (admin Apporteurs → Remises), pas
   ici : ce thème n'est que l'affiche.

   Le site n'est pas rhabillé : seuls le haut du <body> et le menu collant
   sont décalés de la hauteur du bandeau (--bf-h, mesurée par bandeau.js).
   ========================================================================== */

.bf-bandeau { display: none; }

html.theme-blackfriday { --bf-h: 46px; }
html.theme-blackfriday body { padding-top: var(--bf-h); }
/* Menu collant des écrans larges (sur téléphone il n'est pas collant). */
html.theme-blackfriday .menu { top: var(--bf-h); }
/* Logo du haut de page sur téléphone : posé en absolu tout en haut, il
   resterait caché derrière le bandeau. */
html.theme-blackfriday .logomobile { top: var(--bf-h); }

html.theme-blackfriday .bf-bandeau {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;                       /* au-dessus du menu (1000) */
    box-sizing: border-box;
    min-height: 46px;
    padding: 7px max(16px, env(safe-area-inset-right)) 7px max(16px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #0b0b0c;
    border-bottom: 2px solid #c40018;
    color: #fff;
    font-size: 15px;
    line-height: 1.3;
    text-decoration: none;
}
html.theme-blackfriday .bf-bandeau:hover,
html.theme-blackfriday .bf-bandeau:focus { color: #fff; text-decoration: none; }
html.theme-blackfriday .bf-bandeau:focus-visible { outline: 3px solid #ffe066; outline-offset: -3px; }

html.theme-blackfriday .bf-texte {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0 10px;
    min-width: 0;
}
html.theme-blackfriday .bf-titre {
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}
html.theme-blackfriday .bf-offre {
    font-weight: 700;
    color: #ffe066;
    white-space: nowrap;
}
html.theme-blackfriday .bf-condition { color: rgba(255, 255, 255, .82); font-size: .92em; }

html.theme-blackfriday .bf-bouton {
    flex: none;
    padding: 6px 14px;
    border-radius: 999px;
    background: #c40018;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color .15s ease;
}
html.theme-blackfriday .bf-bandeau:hover .bf-bouton { background: #e00202; }

/* Téléphone : texte à gauche sur deux lignes, bouton à droite. */
@media (max-width: 45rem) {
    html.theme-blackfriday { --bf-h: 58px; }
    html.theme-blackfriday .bf-bandeau {
        justify-content: space-between;
        gap: 10px;
        font-size: 13px;
        padding-top: 6px;
        padding-bottom: 6px;
    }
    html.theme-blackfriday .bf-texte { justify-content: flex-start; gap: 0 7px; }
    html.theme-blackfriday .bf-bouton { padding: 7px 12px; }
    /* La date de fin de l'offre ne tient pas sur un téléphone sans passer
       le bandeau à quatre lignes : elle reste réservée aux écrans larges. */
    html.theme-blackfriday .bf-fin { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html.theme-blackfriday .bf-bouton { transition: none; }
}
