/* ==========================================================================
   BFF — Landing « Black Friday {année} » (template page-bf-annuel.php)
   Habillage CSS uniquement : contenu, titres et liens inchangés, rien n'est masqué.
   ========================================================================== */

body.page-template-page-bf-annuel-php {
  --bffl-ink: #0b0f19;
  --bffl-ink-2: #111827;
  --bffl-gold: #facc15;
  --bffl-gold-2: #fde047;
  --bffl-red: #ef4444;
  --bffl-text: #374151;
  background: #f4f5f7;
}

/* ---------- Hero ---------- */
body.page-template-page-bf-annuel-php #content > .page-header {
  margin: 0;
  padding: 64px 0 40px;
  border: 0;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(250, 204, 21, .18), transparent 60%),
    radial-gradient(40% 80% at 90% 100%, rgba(239, 68, 68, .14), transparent 60%),
    linear-gradient(180deg, #111827 0%, var(--bffl-ink) 100%);
}
body.page-template-page-bf-annuel-php .page-header h1.entry-title {
  max-width: 980px;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  transform: none !important;
  color: #fff !important;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .5) !important;
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4.6vw, 50px) !important;
  line-height: 1.15;
  letter-spacing: .01em;
  text-align: center;
}
body.page-template-page-bf-annuel-php .page-header h1.entry-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 18px auto 0;
  border-radius: 4px;
  background: var(--bffl-gold);
}

/* Visuel principal */
body.page-template-page-bf-annuel-php #main > a > img.wp-post-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 24px 0 0;
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(17, 24, 39, .18);
}

/* ---------- Bloc « Meilleures offres » : CTA principal ---------- */
body.page-template-page-bf-annuel-php .bff-bestoffers {
  border: 1px solid rgba(250, 204, 21, .45);
  border-radius: 20px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(250, 204, 21, .16), transparent 55%),
    linear-gradient(135deg, var(--bffl-ink-2) 0%, var(--bffl-ink) 100%);
  box-shadow: 0 16px 40px rgba(17, 24, 39, .22);
}
body.page-template-page-bf-annuel-php .bff-bestoffers .bff-bestoffers-label { color: var(--bffl-gold); }
body.page-template-page-bf-annuel-php .bff-bestoffers strong { font-family: "Raleway", Helvetica, Arial, sans-serif; font-weight: 800; font-size: 21px; }
body.page-template-page-bf-annuel-php .bff-bestoffers .bff-bestoffers-btn {
  padding: 15px 22px;
  background: linear-gradient(180deg, var(--bffl-gold-2), var(--bffl-gold));
  color: var(--bffl-ink) !important;
  box-shadow: 0 10px 26px rgba(250, 204, 21, .3);
}
body.page-template-page-bf-annuel-php .bff-bestoffers .bff-bestoffers-btn:hover { background: var(--bffl-gold-2); }

/* ---------- Contenu éditorial ---------- */
body.page-template-page-bf-annuel-php #main article .entry-content {
  color: var(--bffl-text);
  font-size: 17px;
  line-height: 1.75;
}
body.page-template-page-bf-annuel-php #main article .entry-content > p.intro {
  margin: 8px 0 24px;
  padding: 20px 22px;
  border-radius: 16px;
  background: #fff;
  border-left: 5px solid var(--bffl-gold);
  box-shadow: 0 8px 22px rgba(17, 24, 39, .06);
  font-size: 18px;
  color: var(--bffl-ink-2);
}
body.page-template-page-bf-annuel-php #main article .entry-content h2 {
  position: relative;
  margin: 46px 0 16px;
  padding: 0 0 0 18px;
  background: none;
  color: var(--bffl-ink-2);
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.25;
  text-align: left;
}
body.page-template-page-bf-annuel-php #main article .entry-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .18em;
  bottom: .18em;
  width: 5px;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--bffl-gold), #f59e0b);
}
body.page-template-page-bf-annuel-php #main article .entry-content h3 {
  margin: 28px 0 10px;
  background: none;
  color: var(--bffl-ink-2);
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 19px;
  text-align: left;
}
body.page-template-page-bf-annuel-php #main article .entry-content a:not(.bigbouton):not([class*="bff-"]) {
  color: #b45309;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(180, 83, 9, .35);
  text-underline-offset: 3px;
}
body.page-template-page-bf-annuel-php #main article .entry-content ul:not([class]) { padding-left: 0; list-style: none; }
body.page-template-page-bf-annuel-php #main article .entry-content ul:not([class]) > li { position: relative; padding-left: 26px; margin: 6px 0; }
body.page-template-page-bf-annuel-php #main article .entry-content ul:not([class]) > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bffl-gold);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, .2);
}
body.page-template-page-bf-annuel-php #main article .entry-content img { border-radius: 16px; }

/* Encadré « À retenir » (styles inline neutralisés pour la version premium) */
body.page-template-page-bf-annuel-php .highlightpunchy {
  margin: 26px 0 !important;
  padding: 20px 22px 20px 58px !important;
  border: 1px solid rgba(250, 204, 21, .5) !important;
  border-left: 1px solid rgba(250, 204, 21, .5) !important;
  border-radius: 16px;
  background: linear-gradient(135deg, #fffbea 0%, #fff4c2 100%) !important;
  box-shadow: 0 10px 24px rgba(250, 204, 21, .14);
  color: var(--bffl-ink-2);
}
body.page-template-page-bf-annuel-php .highlightpunchy::before {
  content: "★";
  top: 20px;
  left: 18px;
  right: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bffl-ink);
  color: var(--bffl-gold);
  font-size: 15px;
  filter: none;
}

/* Calendrier */
body.page-template-page-bf-annuel-php .bff-date-timeline {
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, .06), 0 14px 34px rgba(17, 24, 39, .08);
}
body.page-template-page-bf-annuel-php .bff-blackweek-band { background: linear-gradient(135deg, var(--bffl-ink-2), var(--bffl-ink)); }
body.page-template-page-bf-annuel-php .bff-blackweek-band span { background: var(--bffl-gold); color: var(--bffl-ink); }
body.page-template-page-bf-annuel-php .bff-date-track::before { background: linear-gradient(90deg, #e5e7eb, var(--bffl-gold), #e5e7eb); }
body.page-template-page-bf-annuel-php .bff-date-dot { background: var(--bffl-ink-2); }
body.page-template-page-bf-annuel-php .bff-date-step.is-main .bff-date-dot {
  background: linear-gradient(145deg, var(--bffl-gold-2), #f59e0b);
  color: var(--bffl-ink);
  box-shadow: 0 0 0 1px var(--bffl-gold), 0 8px 20px rgba(250, 204, 21, .35);
}

/* Encadré de vérification éditoriale */
body.page-template-page-bf-annuel-php .bff-editorial-check {
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, .06), 0 8px 22px rgba(17, 24, 39, .06);
}

/* Grille des catégories ([inc_bw_menu]) : même ambiance que la home */
body.page-template-page-bf-annuel-php .hp_cat_card { border-radius: 16px; box-shadow: 0 8px 24px rgba(17, 24, 39, .10); }
body.page-template-page-bf-annuel-php .hp_cat_card::before { opacity: 1; background: linear-gradient(180deg, rgba(11, 15, 25, .05) 35%, rgba(11, 15, 25, .82) 100%); }
body.page-template-page-bf-annuel-php .hp_cat_title { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; font-family: "Raleway", Helvetica, Arial, sans-serif; font-weight: 800; }
body.page-template-page-bf-annuel-php .hp_cat_title::after { color: var(--bffl-gold); }

/* CTA final */
body.page-template-page-bf-annuel-php a.bigbouton.bigmondaycta {
  display: block;
  margin: 34px 0 20px;
  padding: 18px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--bffl-gold-2), var(--bffl-gold));
  color: var(--bffl-ink) !important;
  box-shadow: 0 14px 34px rgba(250, 204, 21, .3);
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 18px;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
body.page-template-page-bf-annuel-php a.bigbouton.bigmondaycta:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(250, 204, 21, .4); }

/* ======================= Niveau 2 : vraie landing ======================= */

/* Repères du hero (dates calculées + compte à rebours) */
body.page-template-page-bf-annuel-php .bffl-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px auto 0;
  max-width: 900px;
}
body.page-template-page-bf-annuel-php .bffl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
body.page-template-page-bf-annuel-php .bffl-chip--main {
  background: linear-gradient(180deg, var(--bffl-gold-2), var(--bffl-gold));
  border-color: transparent;
  color: var(--bffl-ink);
  font-weight: 800;
  text-transform: capitalize;
}
body.page-template-page-bf-annuel-php .bffl-chip--countdown {
  border-color: rgba(239, 68, 68, .55);
  background: rgba(239, 68, 68, .14);
  color: #fecaca;
  font-weight: 800;
  animation: bffl-pulse 2.6s ease-in-out infinite;
}
body.page-template-page-bf-annuel-php .bffl-chip--countdown:empty { display: none; }
@keyframes bffl-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .35); }
  50%      { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
}

/* Hero plus profond : le visuel principal vient le chevaucher */
body.page-template-page-bf-annuel-php #content > .page-header { padding-bottom: 110px; }
body.page-template-page-bf-annuel-php #main > a > img.wp-post-image {
  position: relative;
  z-index: 2;
  margin-top: -84px;
  border: 6px solid #fff;
  box-shadow: 0 26px 60px rgba(17, 24, 39, .28);
}

/* Apparition des sections au défilement (classes posées par le JS du template) */
html.bffl-reveal-ready .bffl-reveal {
  opacity: 0;
  transform: translateY(28px) scale(.985);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
html.bffl-reveal-ready .bffl-reveal.is-in { opacity: 1; transform: none; }

/* Hero vivant : halos qui respirent lentement */
body.page-template-page-bf-annuel-php #content > .page-header {
  background-size: 140% 140%, 140% 140%, 100% 100%;
  animation: bffl-hero 14s ease-in-out infinite alternate;
}
@keyframes bffl-hero {
  from { background-position: 0% 0%, 100% 100%, 0 0; }
  to   { background-position: 100% 20%, 0% 80%, 0 0; }
}

/* Bloc offres : liseré or animé */
body.page-template-page-bf-annuel-php .bff-bestoffers { isolation: isolate; }
body.page-template-page-bf-annuel-php .bff-bestoffers::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(110deg, transparent 20%, rgba(250, 204, 21, .9) 40%, transparent 60%) 0 0 / 250% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: bffl-shine 4.5s linear infinite;
  pointer-events: none;
}
@keyframes bffl-shine { to { background-position: -250% 0; } }

/* Cartes éditoriales qui réagissent au survol */
body.page-template-page-bf-annuel-php .bff-date-timeline,
body.page-template-page-bf-annuel-php .bff-editorial-check,
body.page-template-page-bf-annuel-php .highlightpunchy { transition: transform .3s ease, box-shadow .3s ease; }
body.page-template-page-bf-annuel-php .bff-date-timeline:hover,
body.page-template-page-bf-annuel-php .bff-editorial-check:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(250, 204, 21, .35), 0 18px 40px rgba(17, 24, 39, .12); }

/* Chapitres numérotés (H2) */
body.page-template-page-bf-annuel-php #main article .entry-content { counter-reset: bfflch; }
body.page-template-page-bf-annuel-php #main article .entry-content h2 {
  counter-increment: bfflch;
  margin-top: 64px;
  padding: 26px 0 0 0;
  border-top: 1px solid rgba(17, 24, 39, .08);
}
body.page-template-page-bf-annuel-php #main article .entry-content h2::before {
  content: counter(bfflch, decimal-leading-zero);
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 6px;
  border-radius: 0;
  background: none;
  color: var(--bffl-gold);
  -webkit-text-stroke: 0;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .2em;
}

/* Sous-parties (produits, FAQ) : repère or devant chaque H3 */
body.page-template-page-bf-annuel-php #main article .entry-content h3 {
  position: relative;
  padding-left: 22px;
}
body.page-template-page-bf-annuel-php #main article .entry-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--bffl-gold);
  transform: rotate(45deg);
}

/* Visuels éditoriaux */
body.page-template-page-bf-annuel-php #main article .entry-content img.aligncenter {
  box-shadow: 0 14px 34px rgba(17, 24, 39, .12);
}

@media (max-width: 767px) {
  body.page-template-page-bf-annuel-php #content > .page-header { padding: 40px 0 76px; }
  body.page-template-page-bf-annuel-php #main > a > img.wp-post-image { margin-top: -56px; border-width: 4px; }
  body.page-template-page-bf-annuel-php .bffl-chip { font-size: 12.5px; padding: 7px 12px; }
  body.page-template-page-bf-annuel-php #main article .entry-content h2 { margin-top: 44px; }
  body.page-template-page-bf-annuel-php #main article .entry-content { font-size: 16px; }
  body.page-template-page-bf-annuel-php .bff-bestoffers-inner { flex-direction: column; align-items: stretch; }
  body.page-template-page-bf-annuel-php .bff-bestoffers .bff-bestoffers-btn { white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  body.page-template-page-bf-annuel-php #content > .page-header,
  body.page-template-page-bf-annuel-php .bff-bestoffers::before { animation: none; }
  html.bffl-reveal-ready .bffl-reveal { opacity: 1; transform: none; transition: none; }
  body.page-template-page-bf-annuel-php .bffl-chip--countdown { animation: none; }
  body.page-template-page-bf-annuel-php a.bigbouton.bigmondaycta { transition: none; }
}
