/* Opération Black Friday sur le reste du site (lot 326), du 16/11 au 28/11 : étiquette des cartes et des fiches, bouton « Recevoir les prix Black Friday »
   des fiches, héros de l'accueil. Chargé par HorizonBlackFriday::enqueueOp() seulement pendant l'opération (jamais sur la landing, qui a sa feuille).
   Même univers que la landing : aubergine très sombre #170d0f et rose poudré #E0AC9D (PALETTE RETENUE par Francois le 15/11, après essais bleu profond, or et turquoise ; avant : noir et cyan électrique, sauvegardé dans cyan-origine/), lettrage Impact (celui de l'étiquette déchirée), logo officiel du site, texte en Manrope. */

.bf-badge, .bf-cta, .bf-hero, .bf-band {
  --bf-noir: #170d0f;
  --bf-encre: #2a1216;
  --bf-blanc: #faf3f0;
  --bf-gris: #cdb9b6;
  --bf-accent: #E0AC9D;
  --bf-accent-clair: #F2CFC4;
  --bf-out: cubic-bezier(0.16, 1, 0.3, 1);
  --bf-police: Impact, Anton, 'Arial Narrow', sans-serif;
}

/* ------------------------------------------------------------------ Bande d'annonce du haut de toutes les pages (HorizonBlackFriday::bandEntry, avant l'en-tête) */
.bf-band { background: var(--bf-noir); box-shadow: inset 0 -2px 0 var(--bf-accent); font-family: Manrope, 'Helvetica Neue', Arial, sans-serif; }
.bf-band a { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 14px; padding: 9px 16px 10px; color: var(--bf-blanc); font-size: 13.5px; line-height: 1.3; text-decoration: none; }
.bf-band__t { font-family: var(--bf-police); font-weight: 400; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bf-accent-clair); }
.bf-band__d { color: var(--bf-gris); }
.bf-band__go { font-weight: 800; color: var(--bf-blanc); }
.bf-band a:hover .bf-band__go, .bf-band a:focus-visible .bf-band__go { color: var(--bf-accent-clair); text-decoration: underline; text-underline-offset: 3px; }
.bf-band a:focus-visible { outline: 3px solid var(--bf-accent-clair); outline-offset: -3px; }
@media (max-width: 480px) { .bf-band a { gap: 2px 10px; padding: 8px 10px 9px; font-size: 13px; } .bf-band__t { font-size: 16px; } }

/* ------------------------------------------------------------------ Étiquette (cartes du catalogue, fiches) */
/* L'étiquette ne doit jamais gêner le spa (demande de Francois, 14/11) : elle dépasse un peu du spa et passe DERRIÈRE lui. Carte : l'image du spa est
   positionnée avec z-index 1, l'étiquette est à 0. Fiche : le conteneur de la vue de dessus devient son propre empilement (isolation) et l'étiquette passe à -1,
   sous l'image, mais au-dessus de la vidéo de fond. */
.hz-scene__top, .hz-fiche__render { isolation: isolate; }
.bf-badge {
  position: absolute; z-index: 0; left: -4px; top: 10px;
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 7px 13px 6px; background: var(--bf-accent); color: #2a1216;
  font-family: var(--bf-police); font-weight: 400; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase;
  transform: rotate(-5deg); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.6); pointer-events: none;
}
.bf-badge__txt { display: block; font-size: 17px; }
/* Carte du catalogue : les gros spas remplissent toute la vignette ; l'étiquette est donc posée à cheval sur le bord haut de la carte (la moitié dépasse
   au-dessus), derrière l'image du spa, et reste lisible pour tous les modèles. */
.hz-card .bf-badge { left: -8px; top: -12px; padding: 6px 11px 5px; }
.hz-card .bf-badge__txt { font-size: 15px; }
/* Pages « rubrique » (séries, tailles, installation, emplacement : .hz-cat--rubrique) : la carte a overflow:hidden et son visuel touche le bord, l'étiquette posée en
   débord (-8px / -12px) y était rognée (capture de Francois du 14/11). Elle est posée DANS l'angle du visuel, au-dessus du spa (z-index 2) : derrière lui, les
   gros spas qui remplissent la vignette en cachaient la moitié du texte. Elle ne couvre que le coin vide en haut à gauche. */
.hz-cat--rubrique .hz-card .bf-badge { left: 10px; top: 14px; z-index: 2; }
.bf-badge--fiche { z-index: -1; left: auto; right: -34px; top: -24px; padding: 8px 14px 7px; transform: rotate(-4deg); }
.bf-badge--fiche .bf-badge__txt { font-size: 20px; }

/* PRIX BARRÉS PARTOUT pendant l'opération (« il faut le faire de partout », Francois, 14/11), même trait bleu que sur la landing ; le prix Black Friday se reçoit par rappel.
   - fiche et comparateur : classe bf-prix-barre posée par le gabarit ;
   - listes de spas et de spas de nage (corps de page hz-bf-spas) : prix des cartes, « à partir de » des séries, « dès » des onglets, tableau du bas ;
   - toutes les pages (hz-bf-live) : montants du menu (séries) et prix des cartes de l'assistant.
   Les saunas, hors opération, gardent leurs prix (pas de hz-bf-spas sur leurs pages). */
strong.bf-prix-barre,
.hz-bf-spas .hz-card__price2 strong,
.hz-bf-spas .hz-band__from,
.hz-bf-spas .hz-cat__tab-from,
.hz-bf-spas .hz-cat__amount,
.hz-bf-live .hz-menu__serie-amount,
.hz-bf-live .hz-chat__card-price {
  text-decoration: line-through; text-decoration-color: #E0AC9D; text-decoration-thickness: 2px; text-decoration-skip-ink: none;
}
strong.bf-prix-barre, .hz-bf-spas .hz-card__price2 strong { opacity: 0.62; text-decoration-thickness: 3px; }

/* ------------------------------------------------------------------ Bouton des fiches (haut et bas de fiche) */
.bf-cta {
  box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; margin: 18px 0; padding: 16px 20px 16px 24px; border-radius: 16px;
  background: var(--bf-noir); color: var(--bf-blanc); text-decoration: none;
  box-shadow: inset 0 0 0 1.5px var(--bf-accent), 0 14px 34px -16px rgba(224,172,157, 0.6);
  transition: transform 0.35s var(--bf-out), box-shadow 0.35s var(--bf-out);
}
.bf-cta:hover, .bf-cta:focus-visible { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--bf-accent-clair), 0 18px 40px -12px rgba(224,172,157, 0.8); color: var(--bf-blanc); }
.bf-cta:focus-visible { outline: 3px solid var(--bf-accent-clair); outline-offset: 3px; }
.bf-cta__main { min-width: 0; }
.bf-cta__txt { display: block; font-family: var(--bf-police); font-size: 25px; font-weight: 400; line-height: 1.05; letter-spacing: 0.04em; text-transform: uppercase; text-wrap: balance; }
.bf-cta__arrow { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bf-accent); color: #2a1216; font-size: 20px; font-weight: 800; transition: transform 0.35s var(--bf-out); }
.bf-cta:hover .bf-cta__arrow { transform: translateX(4px); }
/* Entrée du grand menu (HorizonBlackFriday::menuEntry) : même carte, plus compacte, avec une ligne d'information sous le titre. */
.bf-cta--menu { margin: 0 0 16px; padding: 14px 16px 14px 20px; }
.bf-cta__sub { display: block; margin-top: 5px; font-family: Manrope, 'Helvetica Neue', Arial, sans-serif; font-size: 14px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--bf-gris); }

/* ------------------------------------------------------------------ Héros de l'accueil (remplace le héros ordinaire pendant l'opération) */
.bf-hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center;
  min-height: clamp(700px, 92vh, 840px); padding-top: 112px; background: var(--bf-noir); color: var(--bf-blanc);
  font-family: Manrope, 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased;
}
.bf-hero__photo, .bf-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bf-hero__photo { z-index: -2; }
.bf-hero__photo img { object-fit: cover; object-position: 50% 50%; animation: bfo-zoom 2.6s var(--bf-out) both; }
/* Voile du haut quasi retiré (14/11, « laisse le halo de lumière derrière ») : le halo et les rayons de la photo, derrière l'étiquette, ne sont plus assombris ;
   le voile du bas (0,86) est gardé pour la lisibilité du bouton et du bandeau. */
.bf-hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(23,13,15, 0.06) 0%, rgba(23,13,15, 0) 30%, rgba(23,13,15, 0) 50%, rgba(23,13,15, 0.86) 100%); }
.bf-hero__sticker { width: clamp(250px, 24vw, 360px); animation: bfo-tampon 0.8s var(--bf-out) 0.35s both; }
.bf-hero__sticker img { display: block; width: 100%; height: auto; aspect-ratio: 676 / 578; animation: bfo-souffle 7s ease-in-out 1.3s infinite; }
.bf-hero__in { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 4px 20px 128px; text-align: center; }
.bf-hero .bf-hero__titre { margin: 0; font-family: var(--bf-police); font-weight: 400; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: 0.05em; text-transform: uppercase; text-wrap: balance; color: var(--bf-blanc); text-shadow: 0 2px 18px rgba(23,13,15, 0.9); }
.bf-hero__txt { display: inline-block; transform: skewX(-8deg); }
.bf-hero .bf-hero__titre .bf-hero__logo { display: inline-block; height: 1.02em; width: auto; vertical-align: -0.14em; margin-left: 0.4em; }
.bf-hero .bf-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 6px; padding: 14px 30px; border-radius: 999px;
  /* Bouton « verre » (demande de Francois, 14/11 : « un CTA transparent pour laisser le visuel libre derrière », téléphone puis ordinateur) : fond presque
     transparent (teinte sombre 22 %, assez pour garder le texte lisible sur la photo), filet blanc, texte blanc. */
  background: rgba(23,13,15, 0.22); color: var(--bf-blanc); font-weight: 800; font-size: 16px; line-height: 1.1; text-decoration: none;
  box-shadow: inset 0 0 0 2px rgba(250,243,240, 0.92); text-shadow: 0 1px 10px rgba(23,13,15, 0.7); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  transition: transform 0.35s var(--bf-out), box-shadow 0.35s var(--bf-out), background-color 0.35s var(--bf-out);
}
.bf-hero .bf-btn:hover, .bf-hero .bf-btn:focus-visible { transform: translateY(-2px); background: rgba(224,172,157, 0.28); box-shadow: inset 0 0 0 2px var(--bf-accent-clair), 0 10px 34px -6px rgba(242,207,196, 0.7); color: var(--bf-blanc); }
.bf-hero .bf-btn:focus-visible { outline: 3px solid var(--bf-accent-clair); outline-offset: 3px; }
.bf-hero .bf-hero__legal { margin: 0; font-size: 12px; line-height: 1.4; color: var(--bf-gris); text-shadow: 0 1px 8px rgba(23,13,15, 0.9); }
.bf-hero__in > * { animation: bfo-monte 0.9s var(--bf-out) both; }
.bf-hero__in > :nth-child(1) { animation-delay: 0.8s; }
.bf-hero__in > :nth-child(2) { animation-delay: 0.95s; }
.bf-hero__in > :nth-child(3) { animation-delay: 1.05s; }

/* Carrousel du héros (14/11) : deux vignettes qui se fondent l'une dans l'autre ; l'étiquette et le bandeau restent en place, la photo et le bouton changent.
   Vignette 1 = le héros d'avant ; vignette 2 = photo « spa de nage » de la landing + bouton qui ouvre le formulaire sur « Un spa de nage ». */
.bf-hero__slides { position: absolute; inset: 0; z-index: -2; }
.bf-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s var(--bf-out); }
.bf-slide.is-on { opacity: 1; }
.bf-slide--nage .bf-hero__photo img { animation: none; }
.bf-hero__ctas { display: grid; justify-items: center; align-items: end; width: 100%; }
.bf-hero__cta { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; opacity: 0; visibility: hidden; transition: opacity 0.6s var(--bf-out), visibility 0s linear 0.6s; }
.bf-hero__cta.is-on { opacity: 1; visibility: visible; transition: opacity 0.6s var(--bf-out); }
.bf-hero__tag { font-family: var(--bf-police); font-size: 18px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 14px rgba(23,13,15, 0.9); }
.bf-hero__nav { position: absolute; z-index: 5; left: 0; right: 0; bottom: 92px; display: flex; justify-content: center; align-items: center; gap: 14px; }
.bf-hero__dot, .bf-hero__pause { position: relative; display: block; padding: 0; background: transparent; border: 1.5px solid rgba(250,243,240, 0.85); border-radius: 50%; color: var(--bf-blanc); cursor: pointer; }
.bf-hero__dot { width: 11px; height: 11px; }
.bf-hero__dot::after, .bf-hero__pause::after { content: ""; position: absolute; inset: -9px; } /* zone de toucher de 28 px */
.bf-hero__dot.is-on { background: var(--bf-accent); border-color: var(--bf-accent); }
.bf-hero__pause { display: grid; place-items: center; width: 24px; height: 24px; margin-right: 4px; }
.bf-hero__pause svg { fill: currentColor; }
.bf-hero__pause .j { display: none; }
.bf-hero__pause[data-paused] .p { display: none; }
.bf-hero__pause[data-paused] .j { display: inline; }
.bf-hero__dot:focus-visible, .bf-hero__pause:focus-visible { outline: 3px solid var(--bf-accent-clair); outline-offset: 4px; }

/* Bandeau défilant (même texte, même logo officiel droit dans un cartouche sombre que la landing) */
.bf-ruban { position: absolute; z-index: 4; left: -3%; right: -3%; bottom: 20px; padding: 13px 0; background: var(--bf-accent); color: #2a1216; transform: rotate(-1.4deg); overflow: hidden; white-space: nowrap; }
.bf-ruban__piste { display: inline-flex; width: max-content; animation: bfo-defile 26s linear infinite; }
.bf-ruban span { flex: none; font-family: var(--bf-police); font-size: 27px; line-height: 1; letter-spacing: 0.03em; text-transform: uppercase; padding-right: 40px; transform: skewX(-8deg); }
.bf-ruban span b { font-weight: 400; color: var(--bf-blanc); background: var(--bf-encre); padding: 2px 12px; margin-right: 40px; }
.bf-ruban span b.bf-ruban__logo { display: inline-block; padding: 6px 15px; vertical-align: middle; }
.bf-ruban__logo img { display: block; height: 22px; width: auto; transform: skewX(8deg); }

@keyframes bfo-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes bfo-tampon { 0% { opacity: 0; transform: rotate(-13deg) scale(1.75); } 55% { opacity: 1; } 100% { opacity: 1; transform: rotate(0deg) scale(1); } }
@keyframes bfo-souffle { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-1.4deg) translateY(-5px); } }
@keyframes bfo-monte { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bfo-defile { to { transform: translateX(-50%); } }

@media (max-width: 820px) {
  .bf-badge__txt { font-size: 15px; }
  .bf-badge--fiche .bf-badge__txt { font-size: 21px; }
  .bf-cta { padding: 14px 16px 14px 18px; }
  .bf-cta__txt { font-size: 22px; }
  /* 14/11 (demande de Francois, téléphone) : étiquette en papier découpé réduite de 20 % (240 -> 192 px) et remontée, texte « Black Friday Sundance Spas » retiré de
     l'image (le bandeau du bas le dit déjà ; le <h1> reste pour les lecteurs d'écran et Google), bouton posé en bas au-dessus du bandeau : le visuel derrière
     (les personnes dans le spa) n'est plus caché. La hauteur du héros est gardée pour que la photo ne soit pas recadrée plus serré. */
  /* 14/11 (« l'étiquette est trop haut », « le même espace entre le haut de la page et l'étiquette, et la tête de la femme ») : l'étiquette est CENTRÉE entre le haut du
     héros et le sommet de la tête de la femme. Le sommet de la tête est à 53,6 % de la hauteur de la photo mobile ; la photo est recadrée en « cover » (object-position 62 %),
     donc la tête est à ~0,892 x la largeur de l'écran sous le haut du héros ; étiquette = 232 px de large x 0,855 = 198 px de haut -> espace = (0,892 x largeur - 198) / 2
     = 44,6vw - 99px (68 px à 375 px de large : 68 au-dessus, 68 en dessous). Plafonné à 72 px pour les grands écrans (tablettes) où le cadrage change. */
  .bf-hero { min-height: clamp(560px, 168vw, 700px); padding-top: clamp(22px, calc(44.6vw - 99px), 72px); }
  .bf-hero__photo img { object-position: 50% 62%; }
  .bf-hero__nav { bottom: 74px; }
  .bf-hero__sticker { width: 232px; } /* 192 + 10 % = 211, puis encore + 10 % = 232 (« c'est encore trop petit », 14/11) */
  .bf-hero__in { flex: 1 1 auto; width: 100%; justify-content: flex-end; gap: 14px; padding-bottom: 108px; }
  .bf-hero .bf-hero__titre { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .bf-hero .bf-btn { width: 100%; max-width: 358px; }
  .bf-ruban { bottom: 16px; padding: 11px 0; }
  .bf-ruban span { font-size: 22px; }
  .bf-ruban__logo img { height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .bf-hero__photo img, .bf-hero__sticker, .bf-hero__sticker img, .bf-hero__in > *, .bf-ruban__piste { animation: none; }
  .bf-slide, .bf-hero__cta, .bf-hero__cta.is-on { transition: none; }
  .bf-cta, .bf-cta__arrow, .bf-hero .bf-btn { transition: none; }
}

/* Configurateur de devis (page /hz_devis_outil/) : pendant l'opération, le prix du modèle et le TOTAL TTC du récapitulatif sont barrés (spas et spas de nage ;
   pas les saunas). L'attribut data-bf-prix est posé / retiré par horizon-black-friday-op.js selon le modèle choisi. Les options, les frais et la ligne « Avantage web »
   restent lisibles. */
.hz-dv__recap[data-bf-prix] .hz-dv__line:first-child strong,
.hz-dv__recap[data-bf-prix] .hz-dv__total strong {
  text-decoration: line-through; text-decoration-color: #E0AC9D; text-decoration-thickness: 3px; text-decoration-skip-ink: none; opacity: 0.62;
}

[data-bf-cta][aria-busy="true"] { opacity: 0.7; cursor: progress; }
