/* === Effet fantômes Halloween (météo globale) === */
.halloween-fall {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;
}

.halloween-fall span {
  position: absolute;
  top: -15vh;
  width: var(--size, 50px);
  height: var(--size, 50px);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  filter: drop-shadow(0 0 12px rgba(180, 210, 255, 0.8));
  animation-duration: var(--duration, 15s);
  animation-delay: var(--delay, 0s);
  animation-iteration-count: infinite;
  animation-fill-mode: both;
  animation-name: halloween-fall-float;
  animation-timing-function: ease-in-out;
}

.halloween-fall span img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
  pointer-events: none;
  user-select: none;
}

@keyframes halloween-fall-float {
  0%   { transform: translate3d(0, -15vh, 0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: var(--opacity, 0.9); }
  50%  { transform: translate3d(0, 50vh, 0) translateX(var(--sway, 60px)) scale(1.05); }
  90%  { opacity: var(--opacity, 0.9); }
  100% { transform: translate3d(0, 115vh, 0) translateX(0) scale(1); opacity: 0; }
}

/* Bande gauche (~2–18 %) + droite (~82–96 %) — centre de carte libre */
.halloween-fall span:nth-child(1)  { left: 2%;  --size: 60px; --duration: 14s; --delay: -2s;  --sway: 28px; }
.halloween-fall span:nth-child(2)  { left: 84%; --size: 45px; --duration: 18s; --delay: -7s;  --sway: -32px; }
.halloween-fall span:nth-child(3)  { left: 7%;  --size: 75px; --duration: 12s; --delay: -4s;  --sway: -24px; }
.halloween-fall span:nth-child(4)  { left: 90%; --size: 50px; --duration: 16s; --delay: -9s;  --sway: 30px; }
.halloween-fall span:nth-child(5)  { left: 12%; --size: 65px; --duration: 15s; --delay: -1s;  --sway: 36px; }
.halloween-fall span:nth-child(6)  { left: 96%; --size: 40px; --duration: 20s; --delay: -12s; --sway: -28px; }
.halloween-fall span:nth-child(7)  { left: 4%;  --size: 80px; --duration: 13s; --delay: -6s;  --sway: -20px; }
.halloween-fall span:nth-child(8)  { left: 87%; --size: 55px; --duration: 17s; --delay: -3s;  --sway: 34px; }
.halloween-fall span:nth-child(9)  { left: 16%; --size: 70px; --duration: 11s; --delay: -8s;  --sway: -30px; }
.halloween-fall span:nth-child(10) { left: 93%; --size: 48px; --duration: 19s; --delay: -5s;  --sway: -36px; }
.halloween-fall span:nth-child(11) { left: 9%;  --size: 55px; --duration: 16s; --delay: -10s; --sway: 22px; }
.halloween-fall span:nth-child(12) { left: 82%; --size: 42px; --duration: 14s; --delay: -13s; --sway: 26px; }
.halloween-fall span:nth-child(13) { left: 1%;  --size: 68px; --duration: 18s; --delay: -4s;  --sway: 32px; }
.halloween-fall span:nth-child(14) { left: 95%; --size: 58px; --duration: 12s; --delay: -11s; --sway: -22px; }
.halloween-fall span:nth-child(15) { left: 14%; --size: 52px; --duration: 15s; --delay: -1s;  --sway: -34px; }
.halloween-fall span:nth-child(16) { left: 88%; --size: 62px; --duration: 13s; --delay: -8s;  --sway: 20px; }
.halloween-fall span:nth-child(17) { left: 6%;  --size: 47px; --duration: 17s; --delay: -6s;  --sway: 18px; }
.halloween-fall span:nth-child(18) { left: 91%; --size: 72px; --duration: 11s; --delay: -14s; --sway: -26px; }
.halloween-fall span:nth-child(19) { left: 18%; --size: 44px; --duration: 19s; --delay: -2s;  --sway: -16px; }
.halloween-fall span:nth-child(20) { left: 85%; --size: 65px; --duration: 16s; --delay: -9s;  --sway: 24px; }
.halloween-fall span:nth-child(21) { left: 3%;  --size: 70px; --duration: 13s; --delay: -5s;  --sway: -28px; }
.halloween-fall span:nth-child(22) { left: 94%; --size: 54px; --duration: 18s; --delay: -12s; --sway: 30px; }
.halloween-fall span:nth-child(23) { left: 11%; --size: 64px; --duration: 15s; --delay: -3s;  --sway: 26px; }
.halloween-fall span:nth-child(24) { left: 89%; --size: 46px; --duration: 17s; --delay: -8s;  --sway: -18px; }

@media (prefers-reduced-motion: reduce) {
  .halloween-fall { display: none; }
}
