/* Black Friday — habillage temporaire. Tout est rangé sous html[data-event="black-friday"] :
   sans ce marqueur, ce fichier n'a aucun effet. */

html[data-event="black-friday"] {
  --bf-night: #050308;
  --bf-panel: #0e0913;
  --bf-line: #2a2132;
  --bf-tube: #fff4fa;
  --bf-pink: #ff2e97;
  --bf-tag: #ffd43b;
  --bf-tag-ink: #1a1100;
  --bf-muted: #b9adc6;
  --drive-ink: #070409;
  --drive-panel: #0e0913;
  --drive-line: #2a2132;
  background: var(--bf-night);
}
html[data-event="black-friday"] body { background: var(--bf-night); }

/* La nuit tombe sur la ville : le coucher de soleil passe à minuit, seuls les néons restent */
html[data-event="black-friday"] .site-header { background: rgba(5, 3, 8, .94); }
html[data-event="black-friday"] .tabbar { background: linear-gradient(#0b0710, #050308); }
html[data-event="black-friday"] .home-floor,
html[data-event="black-friday"] .app-main { background-color: transparent; }
html[data-event="black-friday"] .hero .miami-sky { filter: brightness(.28) saturate(.9) hue-rotate(-12deg); }
html[data-event="black-friday"] .hero .miami-sun,
html[data-event="black-friday"] .hero .miami-halo,
html[data-event="black-friday"] .hero .miami-glint { opacity: .12 !important; }
html[data-event="black-friday"] .hero .miami-clouds { opacity: .25; }
html[data-event="black-friday"] .hero .miami-stars { opacity: 1; filter: brightness(1.6); }
html[data-event="black-friday"] .hero .miami-city,
html[data-event="black-friday"] .hero .miami-sea,
html[data-event="black-friday"] .hero .miami-bridge,
html[data-event="black-friday"] .hero .miami-hotel,
html[data-event="black-friday"] .hero .miami-tower,
html[data-event="black-friday"] .hero .miami-beach,
html[data-event="black-friday"] .hero .miami-palm { filter: brightness(.55) saturate(.8); }
html[data-event="black-friday"] .hero:not(.sales-mosaic) .miami::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 3, 8, .55) 0%, rgba(5, 3, 8, .2) 45%, rgba(5, 3, 8, .92) 100%);
}
html[data-event="black-friday"] .sales-mosaic .miami { filter: brightness(.35) saturate(.85); }

/* Accueil : l'écran Black Friday remplace la phrase d'accroche et les deux boutons */
html[data-event="black-friday"] .home-intro:has(.bf-hero) .hero-lead,
html[data-event="black-friday"] .home-intro:has(.bf-hero) .hero-cta { display: none; }
html[data-event="black-friday"] .home-intro:has(.bf-hero) .hero-sign { display: none; }

/* ---------- Bandeau ---------- */
.bf-strip { border-top: 1px solid rgba(255, 212, 59, .22); border-bottom: 1px solid rgba(255, 212, 59, .22); background: #0a0610; }
.bf-strip-link {
  display: flex; align-items: center; gap: 8px; min-height: 36px; max-width: 1180px; margin: 0 auto;
  padding: 0 14px; color: var(--bf-tube); text-decoration: none;
  font-family: var(--app-font-label, "Barlow Condensed", sans-serif); font-size: 14px; letter-spacing: .02em;
}
.bf-strip-link:focus-visible { outline: 2px solid var(--bf-tag); outline-offset: -3px; }
.bf-strip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bf-tag); box-shadow: 0 0 0 3px rgba(255, 212, 59, .18); flex: none; }
.bf-strip-link strong { font-weight: 700; color: var(--bf-tag); font-size: 15px; white-space: nowrap; }
.bf-strip-when { color: var(--bf-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bf-strip-when time { color: var(--bf-tube); font-weight: 700; font-variant-numeric: tabular-nums; }
.bf-strip-go { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; color: var(--bf-tag); font-weight: 700; white-space: nowrap; }
.bf-strip-go svg { width: 15px; height: 15px; }
html[data-bf-phase="last"] .bf-strip-dot { animation: bf-pulse 1.6s ease-in-out infinite; }

/* ---------- Écran d'accueil ---------- */
.bf-hero { position: relative; margin: 0 0 4px; padding-top: 22px; }
.bf-title {
  margin: 0; display: flex; flex-direction: column; line-height: .9; text-transform: uppercase;
  font-family: var(--app-font-display, Anton, Impact, sans-serif); font-weight: 400;
  font-size: clamp(76px, 25vw, 150px); letter-spacing: .005em;
}
.bf-title-black {
  color: #000; -webkit-text-stroke: 2px var(--bf-tube);
  filter: drop-shadow(0 0 2px rgba(255, 244, 250, .9)) drop-shadow(0 0 10px rgba(255, 46, 151, .75)) drop-shadow(0 0 26px rgba(255, 46, 151, .45));
}
.bf-title-friday {
  color: transparent; -webkit-text-stroke: 2px #ff7cc1;
  filter: drop-shadow(0 0 2px rgba(255, 124, 193, .95)) drop-shadow(0 0 12px rgba(255, 46, 151, .85)) drop-shadow(0 0 30px rgba(255, 46, 151, .5));
}
.bf-hero--on .bf-title-black { animation: bf-flicker 1.3s steps(1, end) both; }
.bf-hero--on .bf-title-friday { animation: bf-flicker 1.3s .25s steps(1, end) both; }

.bf-offer {
  margin: 14px 0 0; color: var(--bf-tube); font-family: var(--app-font-sans, Barlow, sans-serif);
  font-weight: 700; font-size: clamp(21px, 6vw, 30px); line-height: 1.15; max-width: 22ch;
}
.bf-when { margin: 6px 0 0; color: var(--bf-muted); font-size: 14px; line-height: 1.4; }

/* Étiquette de prix : le compte à rebours */
.bf-tag {
  position: relative; display: inline-flex; flex-direction: column; gap: 2px; margin-top: 16px;
  padding: 9px 18px 10px 34px; background: var(--bf-tag); color: var(--bf-tag-ink);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
  border-radius: 0 6px 6px 0; transform: rotate(-2deg); transform-origin: left center;
  box-shadow: 0 10px 30px rgba(255, 212, 59, .18);
}
.bf-tag-hole { position: absolute; left: 13px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--bf-night); box-shadow: inset 0 0 0 2px rgba(26, 17, 0, .35); }
.bf-tag-label { font-family: var(--app-font-label, "Barlow Condensed", sans-serif); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.bf-tag-clock { display: flex; align-items: baseline; gap: 3px; font-family: var(--app-font-label, "Barlow Condensed", sans-serif); font-variant-numeric: tabular-nums; }
.bf-tag-clock b { font-size: 30px; font-weight: 700; line-height: 1; }
.bf-tag-clock i { font-style: normal; font-size: 14px; font-weight: 600; margin-right: 7px; }
.bf-tag-clock i:last-child { margin-right: 0; }

.bf-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.bf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 0 22px;
  border-radius: 14px; font-family: var(--app-font-sans, Barlow, sans-serif); font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.bf-btn svg { width: 18px; height: 18px; }
.bf-btn:active { transform: scale(.98); }
.bf-btn:focus-visible { outline: 3px solid var(--bf-tube); outline-offset: 3px; }
.bf-btn--deal { background: var(--bf-tag); color: var(--bf-tag-ink); box-shadow: 0 0 0 1px rgba(255, 212, 59, .5), 0 12px 32px rgba(255, 212, 59, .25); flex: 1 1 180px; }
.bf-btn--ghost { color: var(--bf-tube); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 244, 250, .22); }

/* ---------- Page des packs ---------- */
.bf-packs {
  position: relative; margin: 14px 16px 18px; padding: 16px 16px 18px; border-radius: 18px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 46, 151, .22), transparent 55%), var(--bf-panel);
  border: 1px solid rgba(255, 212, 59, .35);
}
.bf-packs-kicker {
  margin: 0; font-family: var(--app-font-display, Anton, sans-serif); text-transform: uppercase; font-size: 30px; line-height: 1;
  color: #000; -webkit-text-stroke: 1.4px var(--bf-tube); filter: drop-shadow(0 0 8px rgba(255, 46, 151, .7));
}
.bf-packs-text { margin: 8px 0 0; color: var(--bf-tube); font-size: 15px; line-height: 1.4; max-width: 40ch; }
.bf-packs .bf-tag { margin-top: 14px; }
.bf-packs .bf-tag-clock b { font-size: 24px; }

/* Repère discret sur l'onglet Packs */
html[data-event="black-friday"] .tab--packs { position: relative; }
html[data-event="black-friday"] .tab--packs::after {
  content: ""; position: absolute; top: 9px; right: calc(50% - 17px); width: 8px; height: 8px; border-radius: 50%;
  background: var(--bf-tag); box-shadow: 0 0 0 2px #050308;
}

@media (min-width: 900px) {
  .bf-title { flex-direction: row; gap: .22em; font-size: clamp(96px, 9vw, 150px); }
  .bf-packs { margin: 18px auto 22px; max-width: 1148px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
  .bf-packs-text { margin: 0; }
  .bf-packs .bf-tag { margin: 0; }
  .bf-cta { max-width: 520px; }
}

/* ---------- Promotions des packs : bien visibles ---------- */
html[data-event="black-friday"] [data-bfx="card"] {
  position: relative; overflow: visible;
  outline: 2px solid var(--bf-tag); outline-offset: -2px;
  box-shadow: 0 0 0 1px rgba(255, 212, 59, .35), 0 0 34px rgba(255, 212, 59, .22), 0 0 70px rgba(255, 46, 151, .18);
}
html[data-event="black-friday"] [data-bfx="deal"] {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  background: linear-gradient(160deg, #1a1204 0%, #0b0707 55%, #050308 100%);
  border: 2px solid var(--bf-tag); border-radius: 16px; padding: 12px 12px 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 212, 59, .15), 0 10px 30px rgba(255, 212, 59, .18);
}
.bf-deal-kicker {
  order: -2; align-self: stretch; margin: -12px -12px 4px; padding: 5px 12px; border-radius: 13px 13px 0 0;
  background: var(--bf-tag); color: var(--bf-tag-ink);
  font-family: var(--app-font-display, Anton, sans-serif); font-size: 15px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.2;
}
html[data-event="black-friday"] [data-bfx="badge"] {
  order: -1; background: var(--bf-pink) !important; color: #fff !important;
  font-family: var(--app-font-display, Anton, sans-serif) !important; font-weight: 400 !important;
  font-size: 22px !important; line-height: 1 !important; padding: 6px 10px 5px !important; border-radius: 8px !important;
  transform: rotate(-4deg); box-shadow: 0 0 18px rgba(255, 46, 151, .55);
}
html[data-event="black-friday"] [data-bfx="was"] { color: var(--bf-muted) !important; font-size: 14px !important; }
html[data-event="black-friday"] [data-bfx="was"] s { text-decoration-color: var(--bf-pink); text-decoration-thickness: 2.5px; color: #d9cfe3; }
html[data-event="black-friday"] [data-bfx="now"] {
  color: var(--bf-tag) !important; font-family: var(--app-font-display, Anton, sans-serif) !important; font-weight: 400 !important;
  font-size: 44px !important; line-height: .95 !important; letter-spacing: .01em;
  text-shadow: 0 0 22px rgba(255, 212, 59, .45);
}
html[data-event="black-friday"] [data-bfx="now"] small { font-family: var(--app-font-label, "Barlow Condensed", sans-serif); font-size: 15px; letter-spacing: .04em; color: #ffe58a; }
html[data-event="black-friday"] [data-bfx="euro"] { color: var(--bf-tube) !important; font-weight: 700; }
html[data-event="black-friday"] [data-bfx="legal"] { color: var(--bf-muted) !important; font-size: 11.5px !important; line-height: 1.35; }
.bf-deal-save {
  display: inline-block; padding: 3px 9px; border-radius: 999px; background: rgba(255, 46, 151, .16); border: 1px solid rgba(255, 46, 151, .55);
  color: #ffc6e2; font-family: var(--app-font-label, "Barlow Condensed", sans-serif); font-size: 14px; font-weight: 700;
}
.bf-deal-timer { margin-top: 2px; color: var(--bf-tag); font-family: var(--app-font-label, "Barlow Condensed", sans-serif); font-size: 14px; font-weight: 600; }
.bf-deal-timer time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--bf-tube); }

/* Pastille « prix choc » collée sur la carte */
.bf-sticker {
  position: absolute; top: -14px; right: -10px; z-index: 5; width: 96px; height: 96px; display: grid; place-content: center; text-align: center;
  background: var(--bf-tag); color: var(--bf-tag-ink); transform: rotate(12deg);
  clip-path: polygon(50% 0%, 59% 9%, 71% 4%, 75% 16%, 88% 15%, 87% 28%, 98% 34%, 92% 45%, 100% 55%, 90% 62%, 94% 75%, 81% 78%, 79% 91%, 66% 89%, 58% 100%, 50% 92%, 41% 100%, 34% 89%, 21% 91%, 19% 78%, 6% 75%, 10% 62%, 0% 55%, 8% 45%, 2% 34%, 13% 28%, 12% 15%, 25% 16%, 29% 4%, 41% 9%);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5));
  pointer-events: none;
}
.bf-sticker b { font-family: var(--app-font-display, Anton, sans-serif); font-weight: 400; font-size: 27px; line-height: .95; }
.bf-sticker i { font-style: normal; font-family: var(--app-font-label, "Barlow Condensed", sans-serif); font-weight: 700; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.bf-sticker--on { animation: bf-stamp .5s cubic-bezier(.2, 1.6, .4, 1) .3s both, bf-wiggle 7s 2s ease-in-out infinite; }
@keyframes bf-stamp { from { transform: rotate(30deg) scale(1.9); opacity: 0; } to { transform: rotate(12deg) scale(1); opacity: 1; } }
@keyframes bf-wiggle { 0%, 88%, 100% { transform: rotate(12deg); } 91% { transform: rotate(4deg) scale(1.06); } 94% { transform: rotate(16deg); } 97% { transform: rotate(9deg); } }
.bf-sticker--word b { font-size: 17px; letter-spacing: .02em; }
.pack-card .bf-sticker { width: 78px; height: 78px; top: -12px; right: -8px; }
.pack-card .bf-sticker b { font-size: 22px; }

/* ---------- Sélection multiple ---------- */
.bf-lots {
  position: relative; margin: 18px 16px 22px; padding: 18px 16px 16px; border-radius: 20px;
  background: radial-gradient(120% 120% at 0% 0%, rgba(255, 212, 59, .16), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(255, 46, 151, .2), transparent 55%), var(--bf-panel);
  border: 2px solid var(--bf-tag);
}
.section + .bf-lots, .packs + .bf-lots { margin-left: 0; margin-right: 0; }
.bf-lots-kicker { margin: 0; color: var(--bf-tag); font-family: var(--app-font-label, "Barlow Condensed", sans-serif); font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.bf-lots-title { margin: 2px 0 12px; font-family: var(--app-font-display, Anton, sans-serif); font-weight: 400; text-transform: uppercase; font-size: 34px; line-height: 1; color: #000; -webkit-text-stroke: 1.4px var(--bf-tube); filter: drop-shadow(0 0 9px rgba(255, 46, 151, .7)); }
.bf-lots-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; }
.bf-lot {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 10px 10px 24px;
  background: var(--bf-tag); color: var(--bf-tag-ink); clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); border-radius: 0 8px 8px 0;
}
.bf-lot:nth-child(2) { transform: rotate(-1.5deg); } .bf-lot:nth-child(3) { transform: rotate(1.5deg); }
.bf-lot .bf-tag-hole { left: 9px; }
.bf-lot-n { font-family: var(--app-font-label, "Barlow Condensed", sans-serif); font-weight: 700; font-size: 14px; }
.bf-lot-pct { font-family: var(--app-font-display, Anton, sans-serif); font-weight: 400; font-size: 32px; line-height: 1; }
.bf-lot-was { font-family: var(--app-font-label, "Barlow Condensed", sans-serif); font-size: 12.5px; font-weight: 600; }
.bf-lot-was s { text-decoration-color: #c4006a; text-decoration-thickness: 2px; }
.bf-lots-how { margin: 12px 0 0; color: var(--bf-tube); font-size: 14px; line-height: 1.4; }
@media (max-width: 559px) {
  .bf-lots-grid { grid-template-columns: 1fr; gap: 8px; }
  .bf-lot { flex-direction: row; align-items: center; gap: 12px; padding: 8px 14px 8px 26px; }
  .bf-lot:nth-child(2), .bf-lot:nth-child(3) { transform: none; }
  .bf-lot-n { min-width: 64px; }
  .bf-lot-was { margin-left: auto; }
}
@media (min-width: 900px) { .bf-lots { margin: 22px auto 28px; max-width: 1148px; } .bf-lots-grid { grid-template-columns: repeat(3, minmax(0, 220px)); } }

@keyframes bf-flicker {
  0% { opacity: 0; } 8% { opacity: 1; } 12% { opacity: .15; } 20% { opacity: 1; } 26% { opacity: .3; } 34%, 100% { opacity: 1; }
}
@keyframes bf-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(255, 212, 59, .18); } 50% { box-shadow: 0 0 0 7px rgba(255, 212, 59, 0); } }

@media (prefers-reduced-motion: reduce) {
  .bf-hero--on .bf-title-black, .bf-hero--on .bf-title-friday, html[data-bf-phase="last"] .bf-strip-dot, .bf-sticker--on { animation: none; }
  .bf-btn { transition: none; }
}
