/* ==========================================================================
   ACCUEIL - EDITION HALLOWEEN
   Chargee seulement quand le theme saisonnier "halloween" est actif (index.php).
   Regles de perf : decor fixe en degrades/SVG, animations transform/opacity
   uniquement, aucune animation hors ecran ([data-anim-zone] mis en pause).
   Pas d'animation sans fin sur un element qui peut etre hors ecran en dehors
   d'une zone [data-anim-zone] : Chrome la ferait tourner sur le thread principal
   et relancerait le rendu de toute la page a chaque image (lag mobile).
   ========================================================================== */
@media screen {

.theme-halloween .home3d {
  --grad-text: linear-gradient(95deg, #ffd166 0%, #ff7a1a 34%, #ff4d6d 64%, #b06bff 100%);
  --led: #ff7a1a;
  --led-soft: rgba(255, 122, 26, 0.45);
  --cyan: #c084fc;
  --box-border: rgba(255, 170, 110, 0.1);
  --box-bg: linear-gradient(160deg, rgba(255, 150, 80, 0.06), rgba(255, 255, 255, 0.012) 55%), rgba(21, 14, 30, 0.84);
  --font-spooky: "Creepster", var(--font-hero);
}

/* ---------- Boites 3D : liseré citrouille -> sorciere ---------- */
.theme-halloween .home3d .box3d {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 2px 0 rgba(0, 0, 0, 0.35),
    0 28px 60px -30px rgba(0, 0, 0, 0.85),
    0 20px 50px -30px rgba(255, 122, 26, 0.35);
}
.theme-halloween .home3d .box3d::before {
  background: linear-gradient(140deg, rgba(255, 160, 70, 0.85), rgba(168, 85, 247, 0.25) 35%, transparent 60%, rgba(168, 85, 247, 0.55));
}
.theme-halloween .home3d .box3d:hover {
  border-color: rgba(255, 170, 110, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 2px 0 rgba(0, 0, 0, 0.35),
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 30px 70px -28px rgba(255, 122, 26, 0.5);
}
.theme-halloween .home3d .section-eyebrow { color: #ffb347; }
.theme-halloween .home3d .section-head-link:hover { border-color: #ff7a1a; background: rgba(255, 122, 26, 0.08); }
.theme-halloween .home3d a.statement-stat:hover strong,
.theme-halloween .home3d .concours-teaser:hover .concours-teaser-cta,
.theme-halloween .home3d .faq-item[open] .faq-item-num,
.theme-halloween .home3d .faq-item-a a,
.theme-halloween .home3d .trust-showcase-link { color: #ffb347; }

/* ---------- Bandeau code promo ---------- */
.theme-halloween .promo-bar--halloween {
  background:
    linear-gradient(90deg, rgba(255, 122, 26, 0.18), rgba(168, 85, 247, 0.16) 50%, rgba(255, 122, 26, 0.18)),
    #0d0812;
}
.theme-halloween .promo-bar--halloween::after {
  background: linear-gradient(90deg, transparent, rgba(255, 122, 26, 0.9) 25%, rgba(168, 85, 247, 0.9) 75%, transparent);
}
.theme-halloween .promo-bar--halloween .promo-bar-live {
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 8c-2-3 0-6 3-6-2 1-2 3-1 5z' fill='%237dff6a'/%3E%3Cellipse cx='9.5' cy='18' rx='7.5' ry='10' fill='%23d4560a'/%3E%3Cellipse cx='22.5' cy='18' rx='7.5' ry='10' fill='%23d4560a'/%3E%3Cellipse cx='16' cy='18' rx='8' ry='11' fill='%23ff7a1a'/%3E%3Cpath d='M9 15l3.5-3 1.5 4zM23 15l-3.5-3-1.5 4zM9 21c3 3 11 3 14 0l-2 3-2-1.5-1.5 2-1.5-2-1.5 2-1.5-2-2 1.5z' fill='%23ffd166'/%3E%3C/svg%3E") center / contain no-repeat;
}
.theme-halloween .promo-bar--halloween .promo-bar-live::after {
  content: "";
  position: absolute;
  inset: -4px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.7), transparent 70%);
}
.theme-halloween .promo-bar--halloween .promo-bar-tag { color: #ffb347; }
.theme-halloween .home3d .promo-bar-code { border-color: rgba(255, 179, 71, 0.55); }
.theme-halloween .home3d .promo-bar-code:hover { border-color: #ff7a1a; background: rgba(255, 122, 26, 0.1); }
.theme-halloween .home3d .promo-bar-code:focus-visible { outline-color: #ff7a1a; }

/* ==========================================================================
   HERO : nuit d'Halloween (lune, chauves-souris, brume, cimetiere)
   ========================================================================== */
.theme-halloween .home3d .hero3d-bg { background: radial-gradient(ellipse 120% 80% at 70% 0%, #1d1030 0%, #0e0918 45%, var(--bg) 85%); }
.theme-halloween .home3d .hero3d-glow-1 { background: radial-gradient(circle, rgba(140, 60, 220, 0.32), transparent 62%); }
.theme-halloween .home3d .hero3d-glow-2 { background: radial-gradient(circle, rgba(255, 110, 30, 0.2), transparent 62%); }
.theme-halloween .home3d .hero3d-floor {
  background-image:
    linear-gradient(rgba(255, 122, 26, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.22) 1px, transparent 1px);
  opacity: 0.32;
}
.theme-halloween .home3d .hero3d-spot {
  background:
    radial-gradient(ellipse 42% 48% at 54% 44%, rgba(255, 122, 26, 0.2), transparent 70%),
    radial-gradient(ellipse 34% 16% at 54% 90%, rgba(168, 85, 247, 0.22), transparent 70%);
}
.theme-halloween .home3d .pc3d-shadow::after {
  border-color: rgba(255, 122, 26, 0.5);
  box-shadow: 0 0 24px rgba(255, 122, 26, 0.35), inset 0 0 24px rgba(168, 85, 247, 0.25);
}

/* Ciel etoile (fixe, scintillement global tres lent) */
.hw-stars {
  position: absolute;
  inset: 0 0 35%;
  background-image:
    radial-gradient(1.4px 1.4px at 22px 34px, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 120px 80px, rgba(255, 230, 200, 0.75), transparent),
    radial-gradient(1.2px 1.2px at 200px 20px, rgba(220, 200, 255, 0.8), transparent),
    radial-gradient(1px 1px at 60px 150px, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.6px 1.6px at 260px 120px, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 170px 190px, rgba(255, 210, 160, 0.6), transparent);
  background-size: 300px 220px;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
  opacity: 0.7;
}

/* Lune de la recolte derriere le PC */
.hw-moon {
  position: absolute;
  z-index: 1;
  top: 7%;
  left: 66%;
  width: clamp(240px, 27vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.55), transparent 32%),
    radial-gradient(circle at 62% 38%, rgba(190, 90, 20, 0.28) 0 7%, transparent 8%),
    radial-gradient(circle at 40% 66%, rgba(190, 90, 20, 0.22) 0 9%, transparent 10%),
    radial-gradient(circle at 70% 70%, rgba(190, 90, 20, 0.2) 0 5%, transparent 6%),
    radial-gradient(circle at 26% 48%, rgba(190, 90, 20, 0.16) 0 4%, transparent 5%),
    radial-gradient(circle at 42% 40%, #fff1cf 0%, #ffd48a 38%, #ff9b3d 72%, #d9561a 100%);
  box-shadow: 0 0 80px 10px rgba(255, 140, 50, 0.35), 0 0 220px 60px rgba(255, 110, 30, 0.18);
  transform: translate3d(-50%, calc(var(--p, 0) * 90px), 0);
  opacity: 0.92;
}
.hw-moon i {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 150, 60, 0.28), transparent 62%);
}

/* Chauves-souris : vol (translate) + battement d'ailes (scaleY) -> compositeur seulement */
.hw-bats { position: absolute; inset: 0; z-index: 2; overflow: hidden; }
.hw-bat {
  position: absolute;
  left: 0;
  width: 44px;
  transform: translate3d(-12vw, 0, 0);
}
.hw-bat svg {
  display: block;
  width: 100%;
  fill: #10081a;
  stroke: rgba(255, 150, 80, 0.4);
  stroke-width: 0.8;
}
.hw-bat-1 { top: 13%; width: 46px; }
.hw-bat-2 { top: 27%; width: 30px; }
.hw-bat-3 { top: 6%; width: 22px; }
.hw-bat-4 { top: 36%; width: 34px; }

/* Brume : bande deux fois plus large qui glisse en boucle (motif repete a 50%) */
.hw-fog {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 46%;
  background-image:
    radial-gradient(ellipse 18% 38% at 12% 74%, rgba(200, 170, 255, 0.11), transparent 70%),
    radial-gradient(ellipse 24% 44% at 38% 84%, rgba(255, 170, 120, 0.07), transparent 70%),
    radial-gradient(ellipse 20% 36% at 66% 78%, rgba(200, 170, 255, 0.09), transparent 70%),
    radial-gradient(ellipse 22% 40% at 90% 88%, rgba(255, 190, 150, 0.06), transparent 70%);
  background-size: 50% 100%;
  background-repeat: repeat-x;
  pointer-events: none;
}
.hw-fog-2 { bottom: -6%; height: 34%; opacity: 0.7; }

/* Cimetiere en silhouette, au premier plan du decor */
.hw-graveyard {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 0;
  width: 100%;
  height: clamp(110px, 15vw, 220px);
  transform: translate3d(0, calc(var(--p, 0) * 40px), 0);
}

/* ---------- Texte du hero ---------- */
.theme-halloween .home3d .hw-pill { border-color: rgba(255, 140, 60, 0.4); color: #ffd7a8; background: rgba(255, 122, 26, 0.08); }
.theme-halloween .home3d .hw-pill .hero3d-pill-dot,
.theme-halloween .home3d .hw-pill .hero3d-pill-dot::after { background: #ff7a1a; }
.theme-halloween .home3d .hw-title-spooky {
  padding-bottom: 0.3em;
  margin-bottom: -0.22em;
}
.theme-halloween .home3d .hw-title-spooky > span {
  font-family: var(--font-spooky);
  font-weight: 400;
  font-size: 1.16em;
  letter-spacing: 0.03em;
  line-height: 1;
  background: linear-gradient(180deg, #ffe08a 0%, #ff8a1f 52%, #c2410c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 122, 26, 0.5));
}
.theme-halloween .home3d .hero3d-lead strong { color: #ffd7a8; }
.theme-halloween .home3d .hero3d-cta { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 14px 34px -10px rgba(255, 122, 26, 0.7); }
:root.theme-halloween .home3d .hero3d-cta-ghost { border-color: rgba(168, 85, 247, 0.4); background: rgba(168, 85, 247, 0.08); color: var(--text); }
:root.theme-halloween .home3d .hero3d-cta-ghost:hover { border-color: #ff7a1a; background: rgba(255, 122, 26, 0.1); color: #fff; }
.theme-halloween .home3d .hero3d-stats dd small { color: #ffb347; }
.theme-halloween .home3d .hero3d-copy { position: relative; }
.theme-halloween .home3d .hero3d-chip { border-color: rgba(168, 85, 247, 0.3); }
.theme-halloween .home3d .hero3d-chip-icon { color: #ffb347; background: rgba(255, 122, 26, 0.12); }
.theme-halloween .home3d .hero3d-price {
  border-color: rgba(255, 122, 26, 0.5);
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.22), rgba(16, 10, 22, 0.94) 62%);
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.85), 0 14px 40px -14px rgba(255, 122, 26, 0.55);
}

/* ---------- Bandeau defilant ---------- */
.theme-halloween .home3d .assurance-marquee { background: linear-gradient(90deg, rgba(255, 122, 26, 0.08), rgba(168, 85, 247, 0.08), rgba(255, 122, 26, 0.06)); }
.theme-halloween .home3d .marquee-item svg { color: #ff7a1a; }
.theme-halloween .home3d .marquee-item:first-child { color: #ffb347; }

/* ==========================================================================
   OFFRES D'HALLOWEEN
   ========================================================================== */
.hw-offres { position: relative; padding-top: clamp(3rem, 6vw, 5rem); }
.hw-offres::before {
  content: "";
  position: absolute;
  inset: 0 0 30%;
  z-index: -1;
  background: radial-gradient(ellipse 60% 70% at 20% 30%, rgba(255, 122, 26, 0.1), transparent 70%);
  pointer-events: none;
}
.hw-spooky-word {
  font-family: var(--font-spooky);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #ff8a1f;
}
.hw-offres-layout { display: grid; gap: clamp(20px, 3vw, 32px); }

/* Grimoire : grande carte "sortilege" (code promo + compte a rebours + chasse) */
.hw-grimoire {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-areas:
    "pumpkin tag cd"
    "pumpkin value cd"
    "pumpkin text hunt"
    "pumpkin code hunt";
  align-items: center;
  column-gap: clamp(20px, 3vw, 48px);
  row-gap: 6px;
  padding: clamp(22px, 3vw, 40px);
  border-radius: 28px;
  border: 1px solid rgba(255, 140, 60, 0.28);
  background:
    radial-gradient(ellipse 40% 90% at 10% 50%, rgba(255, 122, 26, 0.24), transparent 70%),
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(168, 85, 247, 0.24), transparent 70%),
    linear-gradient(140deg, #1c1228, #0f0a16);
  box-shadow: 0 30px 80px -40px rgba(255, 122, 26, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.hw-grimoire-glow {
  position: absolute;
  z-index: -1;
  left: -60px;
  top: 50%;
  width: 380px;
  height: 380px;
  margin-top: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 140, 40, 0.42), transparent 64%);
  pointer-events: none;
}
.hw-grimoire-web {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 150px;
  color: rgba(255, 255, 255, 0.13);
  pointer-events: none;
}
.hw-grimoire-pumpkin { grid-area: pumpkin; width: clamp(120px, 14vw, 200px); }
.hw-grimoire-pumpkin svg { display: block; width: 100%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5)); }
.hw-grimoire-tag {
  grid-area: tag;
  align-self: end;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c084fc;
}
.hw-grimoire-value {
  grid-area: value;
  font-family: var(--font-hero);
  font-size: clamp(3rem, 1.6rem + 4vw, 5.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hw-grimoire-value-text { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }
.hw-grimoire-text { grid-area: text; margin: 0; color: var(--text-muted); }
:root.theme-halloween .home3d .hw-grimoire-code {
  grid-area: code;
  justify-self: start;
  margin-top: 8px;
  border-color: rgba(255, 179, 71, 0.7);
  font-size: 1.05rem;
}
.theme-halloween .home3d .hw-grimoire-code .promo-bar-code-value { padding: 0.75rem 1.2rem; font-size: 1.15rem; color: #ffd166; }

.hw-grimoire-countdown {
  grid-area: cd;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.hw-grimoire-countdown-label {
  grid-column: 1 / -1;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffb347;
}
.hw-cd {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 4px 10px;
  border-radius: 14px;
  background: rgba(8, 5, 13, 0.62);
  border: 1px solid rgba(168, 85, 247, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.hw-cd b {
  font-family: var(--font-hero);
  font-size: clamp(1.5rem, 1rem + 1.4vw, 2.3rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hw-cd i {
  font-style: normal;
  font-family: var(--font-mono, monospace);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* Chasse aux citrouilles (carte dans le grimoire) */
.hw-chasse {
  grid-area: hunt;
  align-self: start;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 179, 71, 0.4);
  background: rgba(255, 122, 26, 0.06);
}
.hw-chasse strong {
  display: block;
  font-family: var(--font-spooky);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #ffb347;
}
.hw-chasse p { margin: 2px 0 10px; font-size: 0.86rem; line-height: 1.5; color: var(--text-muted); }
.hw-chasse-jauge { height: 6px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, 0.08); }
.hw-chasse-jauge span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff7a1a, #a855f7);
  transform: scaleX(var(--hw-progress, 0));
  transform-origin: left center;
  transition: transform 0.6s var(--ease-out);
}
.hw-chasse small { display: block; margin-top: 6px; font-family: var(--font-mono, monospace); font-size: 0.72rem; color: var(--text-faint); }
.hw-chasse small b { color: #ffb347; }
.hw-chasse.is-complete { border-style: solid; border-color: rgba(125, 255, 106, 0.55); background: rgba(125, 255, 106, 0.06); }

.hw-offres-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }

/* ---------- Citrouilles cachees ---------- */
.hw-citrouille {
  position: relative;
  z-index: 5;
  display: inline-block;
  width: 38px;
  height: 38px;
  padding: 3px;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  opacity: 0.85;
  transition: transform 0.35s var(--ease-bounce), opacity 0.3s ease;
}
.hw-citrouille svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 8px rgba(255, 122, 26, 0.55)); }
.hw-citrouille:hover { opacity: 1; transform: rotate(-12deg) scale(1.22); }
.hw-citrouille:focus-visible { outline: 2px solid #ffb347; outline-offset: 2px; }
.hw-citrouille.is-found { pointer-events: none; animation: hw-pop 0.65s var(--ease-out) forwards; }
@keyframes hw-pop {
  35% { transform: scale(1.7) rotate(14deg); opacity: 1; }
  100% { transform: scale(0) rotate(50deg); opacity: 0; }
}
.hw-citrouille-1 { position: absolute; right: 4%; bottom: 0; }
.theme-halloween #categories .container { position: relative; }
.hw-citrouille-2 { position: absolute; top: -6px; right: var(--space-5); }
.hw-citrouille-3 { margin-top: 18px; width: 30px; height: 30px; }
.hw-citrouille-4 { align-self: center; }
.hw-citrouille-5 { position: absolute; top: 18px; right: 22px; }

/* ==========================================================================
   SECTIONS EXISTANTES : retouches Halloween
   ========================================================================== */
.theme-halloween .home3d .statement::before { background: radial-gradient(ellipse 50% 60% at 30% 50%, rgba(255, 122, 26, 0.1), transparent 70%); }
.theme-halloween .home3d .hs::before { background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(168, 85, 247, 0.12), transparent 70%); }
.theme-halloween .home3d .hs-end {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255, 122, 26, 0.42), transparent 70%),
    radial-gradient(ellipse 70% 60% at 100% 100%, rgba(168, 85, 247, 0.34), transparent 70%),
    var(--box-bg);
}
.theme-halloween .home3d .hs-progress span { background: linear-gradient(90deg, #ff7a1a, #a855f7); }
.theme-halloween .home3d .hs-assurances svg { color: #ffb347; }

/* Anatomie : "autopsie" sous lumiere orange */
.theme-halloween .home3d .anatomy-bg {
  background:
    radial-gradient(ellipse 45% 55% at 68% 50%, rgba(255, 122, 26, 0.15), transparent 70%),
    radial-gradient(ellipse 35% 40% at 80% 72%, rgba(168, 85, 247, 0.16), transparent 70%);
}
.theme-halloween .home3d .anatomy-bg::after {
  background-image:
    linear-gradient(rgba(255, 122, 26, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.2) 1px, transparent 1px);
}
.theme-halloween .home3d .anatomy-tag { border-color: rgba(255, 140, 60, 0.22); background: rgba(18, 11, 26, 0.94); }
.theme-halloween .home3d .anatomy-tag i { background: #ff7a1a; box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.2), 0 0 12px #ff7a1a; }
.theme-halloween .home3d .anatomy-step-num { background: linear-gradient(135deg, #ff7a1a, #a855f7); color: #fff; }
.theme-halloween .home3d .anatomy-rail span { background: linear-gradient(90deg, #ff7a1a, #a855f7); }
.theme-halloween .home3d .anatomy-stamp { border-color: rgba(125, 255, 106, 0.5); }

/* Visuels des categories (bannieres bleues ElecStore) : passes en teinte citrouille */
.theme-halloween .home3d .bento-tile img { filter: hue-rotate(165deg) saturate(1.2) brightness(0.96); }

/* Typo geante */
.theme-halloween .home3d .bigtype-row .is-outline { color: var(--bg); -webkit-text-stroke-color: rgba(255, 150, 70, 0.4); }
.theme-halloween .home3d .bigtype-dot { color: #ff7a1a; }

/* Univers / avis / FAQ */
.theme-halloween .home3d .univers-tile::after,
.theme-halloween .home3d .trust-showcase-score::after { background: radial-gradient(ellipse at center, rgba(255, 122, 26, 0.12), transparent 70%); }

/* Appel final : lune geante qui se leve derriere le texte */
.theme-halloween .home3d .final-cta {
  background:
    radial-gradient(circle at 50% 118%, rgba(255, 200, 120, 0.5) 0 9%, rgba(255, 140, 50, 0.26) 16%, transparent 40%),
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(168, 85, 247, 0.3), transparent 70%),
    var(--box-bg);
}
.theme-halloween .home3d .final-cta-floor {
  background-image:
    linear-gradient(rgba(255, 122, 26, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.26) 1px, transparent 1px);
}

/* ==========================================================================
   MODALE "chasse terminee" (creee par halloween.js)
   ========================================================================== */
.hw-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(6, 3, 10, 0.82);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.hw-modal.is-open { opacity: 1; }
.hw-modal-card {
  position: relative;
  width: min(440px, 100%);
  padding: 34px 26px 26px;
  border-radius: 26px;
  text-align: center;
  border: 1px solid rgba(255, 140, 60, 0.4);
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 122, 26, 0.3), transparent 70%),
    linear-gradient(160deg, #1d1229, #100a17);
  box-shadow: 0 40px 100px -30px rgba(255, 122, 26, 0.55);
  transform: translate3d(0, 24px, 0) scale(0.94);
  transition: transform 0.5s var(--ease-bounce, ease);
}
.hw-modal.is-open .hw-modal-card { transform: none; }
.hw-modal-card svg.hw-modal-pumpkin { width: 92px; height: 92px; margin: -78px auto 8px; display: block; filter: drop-shadow(0 12px 24px rgba(255, 122, 26, 0.55)); }
.hw-modal-card h3 { margin: 0 0 6px; font-family: var(--font-spooky, cursive); font-weight: 400; font-size: 2rem; letter-spacing: 0.04em; color: #ffb347; }
.hw-modal-card p { margin: 0 0 18px; color: var(--text-muted); }
.hw-modal-code {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 18px;
  border: 1px dashed rgba(255, 179, 71, 0.7);
  border-radius: 14px;
  background: rgba(255, 122, 26, 0.1);
  color: #ffd166;
  font-family: var(--font-mono, monospace);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  cursor: pointer;
}
.hw-modal-code small { font-family: var(--font-base); font-size: 0.75rem; letter-spacing: 0; color: var(--text-muted); }
.hw-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.hw-modal-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
/* Bonbons qui tombent a la victoire (12 petits elements, transform/opacity) */
.hw-confetti { position: fixed; inset: 0; z-index: 2001; pointer-events: none; overflow: hidden; }
.hw-confetti i {
  position: absolute;
  top: -40px;
  width: 22px;
  height: 22px;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  animation: hw-tombe 2.6s cubic-bezier(0.3, 0.6, 0.6, 1) forwards;
}
@keyframes hw-tombe {
  to { transform: translate3d(var(--dx, 0), 110vh, 0) rotate(var(--rot, 360deg)); opacity: 0.2; }
}

/* ==========================================================================
   ANIMATIONS (desactivees si "reduire les animations")
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hw-stars { animation: hw-scintille 5s ease-in-out infinite alternate; }
  .hw-moon i { animation: hw-halo 6s ease-in-out infinite alternate; }
  .hw-bat { animation: hw-vol 19s linear infinite; }
  .hw-bat svg { animation: hw-ailes 0.22s ease-in-out infinite alternate; transform-origin: 50% 45%; }
  .hw-bat-1 { animation-duration: 17s; animation-delay: -3s; }
  .hw-bat-2 { animation-name: hw-vol-retour; animation-duration: 23s; animation-delay: -11s; }
  .hw-bat-2 svg { animation-duration: 0.18s; }
  .hw-bat-3 { animation-duration: 29s; animation-delay: -19s; }
  .hw-bat-4 { animation-name: hw-vol-retour; animation-duration: 21s; animation-delay: -6s; }
  .hw-fog-1 { animation: hw-brume 70s linear infinite; }
  .hw-fog-2 { animation: hw-brume 46s linear infinite reverse; }
  .theme-halloween .home3d .hw-title-spooky > span { animation: line-up 1.1s 0.2s var(--ease-out) backwards, hw-vacille 7s 1.6s steps(1, end) infinite; }
  .hw-grimoire-glow { animation: hw-bougie 3.2s ease-in-out infinite; }
  .hw-grimoire-pumpkin { animation: hw-flotte 5s ease-in-out infinite; }
}
@keyframes hw-scintille { from { opacity: 0.45; } to { opacity: 0.85; } }
@keyframes hw-halo { from { opacity: 0.55; transform: scale(0.96); } to { opacity: 1; transform: scale(1.05); } }
@keyframes hw-vol {
  0% { transform: translate3d(-12vw, 0, 0); }
  25% { transform: translate3d(22vw, -26px, 0); }
  50% { transform: translate3d(50vw, 18px, 0); }
  75% { transform: translate3d(80vw, -20px, 0); }
  100% { transform: translate3d(112vw, 6px, 0); }
}
@keyframes hw-vol-retour {
  0% { transform: translate3d(112vw, 0, 0) scaleX(-1); }
  30% { transform: translate3d(74vw, 22px, 0) scaleX(-1); }
  60% { transform: translate3d(38vw, -18px, 0) scaleX(-1); }
  100% { transform: translate3d(-12vw, 10px, 0) scaleX(-1); }
}
@keyframes hw-ailes { from { transform: scaleY(1); } to { transform: scaleY(0.35); } }
@keyframes hw-brume { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes hw-vacille {
  0%, 100% { opacity: 1; }
  86% { opacity: 1; }
  87% { opacity: 0.55; }
  88% { opacity: 1; }
  90% { opacity: 0.7; }
  91% { opacity: 1; }
}
@keyframes hw-bougie {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  30% { opacity: 1; transform: scale(1.05); }
  55% { opacity: 0.82; transform: scale(0.98); }
  80% { opacity: 0.95; transform: scale(1.03); }
}
@keyframes hw-flotte { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); } 50% { transform: translate3d(0, -10px, 0) rotate(2deg); } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .hw-offres-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hw-moon { top: 2%; left: 50%; width: clamp(220px, 62vw, 340px); }
  .hw-bat-4 { display: none; }
  .hw-fog-2 { display: none; }
  .hw-grimoire {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "pumpkin" "tag" "value" "text" "code" "cd" "hunt";
    justify-items: center;
    text-align: center;
  }
  :root.theme-halloween .home3d .hw-grimoire-code { justify-self: center; }
  .hw-grimoire-countdown { width: 100%; max-width: 440px; margin-top: 18px; }
  .hw-chasse { width: 100%; max-width: 440px; }
  .hw-grimoire-glow { left: 50%; top: 0; margin: 0 0 0 -190px; }
}
@media (max-width: 640px) {
  .hw-bat-3 { display: none; }
  .hw-graveyard { height: 96px; }
  /* Offres en carrousel horizontal (4 cartes empilees = 4 ecrans de haut) */
  .hw-offres-grid {
    display: flex;
    gap: 14px;
    margin: 0 calc(var(--space-4) * -1);
    padding: 4px var(--space-4) 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .hw-offres-grid::-webkit-scrollbar { display: none; }
  .hw-offres-grid > * { flex: 0 0 82%; scroll-snap-align: center; }
  .hw-citrouille-2 { right: var(--space-3); }
  .hw-cd { padding: 10px 2px 8px; }
}

} /* fin @media screen */
