/* ==========================================================================
   Thème Black Friday (promo datée du site, SitePromo / config/promo.php)
   Chargé par blocks/header.php seulement pendant la promo, après
   promo-base.css. Aucune règle ne touche aux prix ni aux formulaires.

   Le site devient un cadeau, comme dans la vidéo de la campagne : le header
   rouge est la boîte, un ruban de satin blanc le descend et finit en nœud sur
   la jonction avec le bandeau noir (le seul vrai noir du thème : le logo est
   sur fond rouge, la marque reste rouge). Bouton « Offrir une carte-cadeau »
   à côté de « Réserver » dans les héros, étiquettes
   -20 % et prix barrés sur les cartes-cadeaux. Le ruban et le nœud ne sortent
   qu'avec le bandeau (body.promo-bar-on) : rien de tout ça sur les checkouts.
   ========================================================================== */

.promo-blackfriday {
  --bf-black: #0a0a0c;
  --bf-ink: #1c1c22;
  --bf-red: #ed1b24;
  --bf-satin: #f6f6f6;
  /* Abscisse du ruban : entre le bord et le premier lien du header */
  --bf-x: 58px;
}

/* ---------- Bandeau de la promo, sous le header ---------- */

.promo-bar--blackfriday {
  background: linear-gradient(90deg, var(--bf-black) 0%, var(--bf-ink) 50%, var(--bf-black) 100%);
  color: #fff;
}

.promo-bar--blackfriday .promo-bar__title {
  color: #fff;
  letter-spacing: 0.08em;
}

.promo-bar--blackfriday .promo-bar__when {
  color: rgba(255, 255, 255, 0.72);
}

/* Le compte à rebours (à partir du 27) : une pastille rouge, chiffres à chasse fixe */
.promo-bar--blackfriday .promo-bar__countdown {
  padding: 1px 9px;
  border-radius: 4px;
  background: var(--bf-red);
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Bouton blanc sur noir, le rouge est déjà pris par la pastille */
.promo-bar--blackfriday .promo-bar__cta {
  background: #fff;
  color: var(--bf-black);
}

.promo-bar--blackfriday .promo-bar__cta:hover,
.promo-bar--blackfriday .promo-bar__cta:focus {
  background: var(--bf-satin);
  color: var(--bf-red);
}

/* ---------- Header : ruban de satin blanc et nœud sur la jonction ---------- */

/* Les en-têtes sans position (téléphone) : ruban et nœud se placent sur eux. Pas de
   z-index ici : il ferait passer l'en-tête par-dessus le hamburger (nav-mobile.php) */
.promo-bar-on .hdr-drip {
  position: relative;
}

.promo-bar-on .hdr-nav::before,
.promo-bar-on .hdr-drip::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--bf-x);
  width: 14px;
  background: linear-gradient(90deg, #d4d4d4 0%, #ffffff 30%, #f1f1f1 62%, #cbcbcb 100%);
  box-shadow: 1px 0 2px rgba(0, 0, 0, 0.18), -1px 0 2px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.promo-bar-on .hdr-nav::after,
.promo-bar-on .hdr-drip::after {
  content: '';
  position: absolute;
  /* Le nœud (au tiers haut de l'image) tombe sur le bas du header */
  top: calc(100% - 27px);
  left: calc(var(--bf-x) + 7px);
  width: 92px;
  height: 58px;
  margin-left: -46px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 76'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.55' stop-color='%23f3f3f3'/%3E%3Cstop offset='1' stop-color='%23cfcfcf'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M55 38L39 72l8-3 4 7 11-36z' fill='%23e4e4e4'/%3E%3Cpath d='M65 38l16 34-8-3-4 7-11-36z' fill='%23d6d6d6'/%3E%3Cpath d='M60 35C45 9 13 6 11 24c-2 17 27 21 49 12z' fill='url(%23s)' stroke='%23c4c4c4' stroke-width='1.2'/%3E%3Cpath d='M60 35C75 9 107 6 109 24c2 17-27 21-49 12z' fill='url(%23s)' stroke='%23c4c4c4' stroke-width='1.2'/%3E%3Cpath d='M58 34C47 20 26 17 21 25c9-1 23 2 37 9z' fill='%23cdcdcd' opacity='.75'/%3E%3Cpath d='M62 34c11-14 32-17 37-9-9-1-23 2-37 9z' fill='%23cdcdcd' opacity='.75'/%3E%3Crect x='52.5' y='27.5' width='15' height='14' rx='4.5' fill='%23fff' stroke='%23c4c4c4' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.35));
  pointer-events: none;
  /* Au-dessus du bandeau (z-index 150) */
  z-index: 160;
}

/* Place pour les pans du nœud à gauche du bandeau : sur grand écran le texte,
   centré, en reste loin ; plus étroit, il remplit la ligne et passerait dessous */
.promo-bar-on .promo-bar--blackfriday .promo-bar__inner {
  padding-left: 72px;
}

@media (max-width: 991px) {
  .promo-bar-on .promo-bar--blackfriday .promo-bar__inner {
    padding-left: 116px;
  }
}

@media (max-width: 575px) {
  .promo-blackfriday {
    --bf-x: 6px;
  }

  .promo-bar-on .hdr-drip::before {
    width: 10px;
  }

  .promo-bar-on .hdr-drip::after {
    top: calc(100% - 19px);
    left: calc(var(--bf-x) + 5px);
    width: 64px;
    height: 40px;
    margin-left: -32px;
  }

  .promo-bar-on .promo-bar--blackfriday .promo-bar__inner {
    padding-left: 44px;
  }

  /* Le texte rétrécit au lieu de pousser le bouton hors de l'écran ; le compte à
     rebours garde la durée seule (« 2 j 12 h 00 min ») */
  .promo-bar--blackfriday .promo-bar__text {
    min-width: 0;
  }

  .promo-bar--blackfriday .promo-bar__countdown-label {
    display: none;
  }
}

/* Pas de neige sur les héros (retirée le 16 nov. 2026, choix de Ben) : il ne
   neige pas encore dans nos villes, et sur un jeu en extérieur des flocons
   disent « il fait froid dehors ». Les héros gardent leur voile habituel. */

/* ---------- Deuxième bouton des héros (blocks/partials/promo-hero-gift.php) ---------- */

.btn-hero-gift {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 50px;
  background: #fff;
  color: var(--bf-black);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, color 0.2s ease;
}

.btn-hero-gift svg {
  color: var(--bf-red);
  flex-shrink: 0;
}

.btn-hero-gift:hover,
.btn-hero-gift:focus {
  transform: translateY(-2px);
  color: var(--bf-red);
  text-decoration: none;
}

.dispatch-hero-content .btn-hero-gift {
  margin-top: 16px;
}

/* ---------- Page des cartes-cadeaux (gift-cards.php) ---------- */

.promo-blackfriday .gc-promo-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 12px 5px;
  border-radius: 4px;
  background: var(--bf-black);
  color: #fff;
  font-family: 'Anton', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  line-height: 1;
  transform: rotate(-4deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.promo-blackfriday .gc-price-was {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #9ca3af;
}

.promo-blackfriday .gc-product-price .amount {
  color: var(--bf-red);
}
