/* ================================
   🎃 THEME HALLOWEEN GLOBAL
   ================================ */

/* Palette & fond discrets */
body.halloween {
    --h-acc: #ff6a00;   /* orange */
    --h-acc-2: #6b21a8; /* violet */
    --h-text: #f8fafc;
    background:
      radial-gradient(1200px 600px at 10% -10%, rgba(255,106,0,.06), transparent 60%),
      radial-gradient(1200px 600px at 90% -10%, rgba(107,33,168,.06), transparent 60%),
      var(--bulma-body-background, #fff);
  }
  
  /* ================================
     1) Ruban “HALLOWEEN”
     ================================ */
  body.halloween .h-ribbon { position: relative; overflow: hidden; }
  body.halloween .h-ribbon::after {
    content: "🎃 HALLOWEEN";
    position: absolute; top: 12px; left: -36px;
    transform: rotate(-12deg);
    background: linear-gradient(90deg, var(--h-acc), var(--h-acc-2));
    color: #fff; font-weight: 700; letter-spacing: .04em;
    padding: 4px 12px; border-radius: 6px;
    box-shadow: 0 6px 18px rgba(107,33,168,.25);
  }
  
  /* ================================
     2) Séparateur thématique
     ================================ */
  body.halloween .h-divider {
    height: 2px; border: 0; margin: 2rem 0;
    background: linear-gradient(90deg, transparent, var(--h-acc), transparent);
    opacity: .75;
  }
  
  /* ================================
     3) Toile d’araignée coin
     ================================ */
  body.halloween .h-spider-corner { position: relative; }
  body.halloween .h-spider-corner::before {
    content: "";
    position: absolute; top: 8px; right: 8px; width: 50px; height: 50px; opacity: .99;
    background: no-repeat center/contain
      url("/images_2/spider-web-svgrepo-com.svg");
  }
  
  /* ================================
     4) Bouton Glow
     ================================ */
  @keyframes h-glow {
    0%,100% { box-shadow: 0 0 6px rgba(255,106,0,.28); }
    50%     { box-shadow: 0 0 20px rgba(255,106,0,.6); }
  }
  body.halloween .h-glow {
    background: linear-gradient(135deg, #111 0%, #1a1a1f 60%, var(--h-acc) 160%);
    border: 1px solid rgba(255,255,255,.08);
    color: #fff !important;
    animation: h-glow 2.2s ease-in-out infinite;
  }
  @media (prefers-reduced-motion: reduce) {
    body.halloween .h-glow { animation: none; }
  }
  
  /* ================================
     5) Chauves-souris animées
     ================================ */
  body.halloween .h-bats { position: relative; overflow: visible; }
  body.halloween .h-bats .bat {
    position: absolute; top: -8px; left: -10%;
    font-size: 20px; opacity: 0; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3));
    animation: h-bat-fly 6s ease-in-out 1 forwards;
  }
  body.halloween .h-bats .bat:nth-child(2) { animation-delay: .6s; top: 12px; }
  body.halloween .h-bats .bat:nth-child(3) { animation-delay: 1.2s; top: 30px; }
  @keyframes h-bat-fly {
    0%   { transform: translateX(0) translateY(0) rotate(0deg) scale(1); opacity: 0; }
    10%  { opacity: 1; }
    50%  { transform: translateX(60vw) translateY(-10px) rotate(-10deg) scale(1.05); }
    100% { transform: translateX(110vw) translateY(0) rotate(0deg) scale(1); opacity: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    body.halloween .h-bats .bat { animation: none; opacity: .7; }
  }
  
  /* ================================
     6) Lucioles décoratives
     ================================ */
  @keyframes h-float {
    0% { transform: translateY(0) translateX(0); opacity: .3; }
    50% { transform: translateY(-6px) translateX(2px); opacity: .6; }
    100% { transform: translateY(0) translateX(0); opacity: .3; }
  }
  body.halloween .h-firefly {
    position: absolute; width: 6px; height: 6px; border-radius: 999px; pointer-events: none;
    background: radial-gradient(circle at 30% 30%, #ffd9a6, #ff6a00 60%, transparent 70%);
    animation: h-float 3.6s ease-in-out infinite;
    opacity: .5;
  }
  @media (prefers-reduced-motion: reduce) {
    body.halloween .h-firefly { animation: none; }
  }
  
  /* ================================
     7) Tooltip “Boo!”
     ================================ */
  body.halloween .h-boo { position: relative; }
  body.halloween .h-boo::after {
    content: attr(data-boo);
    position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -6px);
    background: #111; color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px;
    white-space: nowrap; opacity: 0; pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.2); transition: opacity .2s ease, transform .2s ease;
  }
  body.halloween .h-boo:hover::after,
  body.halloween .h-boo:focus::after {
    opacity: 1; transform: translate(-50%, -10px);
  }
  
  /* ================================
     8) Curseur citrouille (desktop)
     ================================ */
  @media (pointer: fine) {
    body.halloween { cursor: url('/images_2/halloween/jackOlantern.cur') 8 8, auto; }
  }
  @supports not (cursor: url('/images_2/halloween/jackOlantern.cur'), auto) {
    body.halloween { cursor: url('/images_2/halloween/jackOlantern.png') 8 8, auto; }
  }
  
  /* ================================
     9) Gradient de section
     ================================ */
     /* body.halloween .h-gradient {
        background: 
          radial-gradient(600px at top left, rgba(255,106,0,0.08), transparent 70%),
          radial-gradient(600px at bottom right, rgba(107,33,168,0.08), transparent 70%),
          var(--bulma-body, #fff); 
        color: var(--h-text, #111);
        background-repeat: no-repeat;
        background-size: cover;
      } */

      body.halloween .h-gradient {
        background:
          linear-gradient(to bottom, rgba(255,106,0,0.06), transparent 20%),
          linear-gradient(to top, rgba(107,33,168,0.06), transparent 20%),
          var(--bulma-body, #fff);
        color: var(--h-text, #111);
      }
      
      
  
  /* ================================
     10) Countdown skinné
     ================================ */
  body.halloween .h-countdown .cd__text {
    background: #111; color: var(--h-text);
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 6px 18px rgba(255,106,0,.18);
  }
  
  /* Conteneur de section qui recevra la toile (pose .h-web-wrap sur ta section) */
body.halloween .h-web-wrap { position: relative; overflow: hidden; }

/* Calque canvas derrière le contenu, non cliquable */
body.halloween .h-web {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
body.halloween .h-web canvas {
  width: 100%; height: 100%; display: block;
}

/* Le contenu de la section passe devant */
body.halloween .h-web-wrap > .h-web-content { position: relative; z-index: 1; }

/* Tâche de sang en bas à gauche */
body.halloween .h-blood-corner { position: relative; }
body.halloween .h-blood-corner::after {
  content: "";
  position: absolute;
  bottom: 8px; 
  left: 8px;
  width: 80px;      /* ajuste la taille selon ton image */
  height: 80px;
  opacity: 0.95;
  background: no-repeat center/contain url("/images_2/blood8.svg");
  pointer-events: none; /* pour éviter que ça bloque les clics */
}

/* Coin haut gauche : citrouille */
body.halloween .h-pumpkin-corner { position: relative; }
body.halloween .h-pumpkin-corner::before {
  content: "";
  position: absolute;
  top: 8px; left: 8px;
  width: 70px; height: 70px;
  opacity: 0.95;
  background: no-repeat center/contain url("/images_2/pumpkin.png");
  pointer-events: none;
}

/* Coin bas droit : chauve-souris */
body.halloween .h-bat-corner { position: relative; }
body.halloween .h-bat-corner::after {
  content: "";
  position: absolute;
  bottom: 8px; right: 8px;
  width: 80px; height: 80px;
  opacity: 0.95;
  background: no-repeat center/contain url("/images_2/bat.png");
  pointer-events: none;
}

/* Coin bas droit : citrouille neon */
body.halloween .h-pumpkin-corner-alt { position: relative; }
body.halloween .h-pumpkin-corner-alt::after {
  content: "";
  position: absolute;
  bottom: 8px; right: 8px;
  width: 80px; height: 80px;
  opacity: 0.95;
  background: no-repeat center/contain url("/images_2/pumpkin-neon.png");
  pointer-events: none;
}


/* Décor en bas d'une section */
body.halloween .h-bottom-decor {
  position: relative;
  overflow: hidden; /* évite que l'image dépasse */
}

body.halloween .h-bottom-decor::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 100px; /* hauteur ajustable */
  background: url("/images_2/halloween_bottom.svg") no-repeat bottom center;
  background-size: cover; /* ou contain selon l’image */
  pointer-events: none;
  z-index: 1;
}

/* Variante 2 plus marquée : halo orange/violet haut et bas */
/* Variante 3 : ambiance claire avec nuances d’oranges */
body.halloween .h-gradient-orange {
  background:
    radial-gradient(700px at top center, rgba(189, 168, 142, 0.25), transparent 70%),
    radial-gradient(700px at bottom center, rgba(251, 110, 2, 0.18), transparent 70%),
    #fdf6f0; /* ton de base clair, légèrement chaud */
  color: #1a1a1a; /* texte sombre pour lisibilité */
  background-repeat: no-repeat;
  background-size: cover;
}

/* Fond noir avec halo orange en haut */
body.halloween .h-top-orange {
  position: relative;
  background: #000; /* fond noir de base */
  color: #fff; /* texte blanc */
  overflow: hidden;
}

body.halloween .h-top-orange::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px; /* zone affectée (ajuste à volonté) */
  pointer-events: none;
  background: radial-gradient(
    circle at top center,
    rgba(255, 140, 0, 0.6) 0%,   /* orange vif */
    rgba(255, 100, 0, 0.3) 40%, /* dégradé doux */
    transparent 80%
  );
  z-index: 0;
}

/* Assure que le contenu passe au-dessus */
body.halloween .h-top-orange > * {
  position: relative;
  z-index: 1;
}


