/* Décorations de Noël du hero (injectées par noel.js, du 1er décembre au 6 janvier).
   Pour désactiver : retirer les inclusions de noel.css et noel.js. */

.noel-layer {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3;
}

/* Décale le titre et la carte actualité sous les ampoules (padding haut du hero : 14 px -> 56 px) */
#accueil.noel-on { padding-top: 56px; }

.noel-garland {
  position: absolute; top: 0; left: 0; right: 0; height: 30px;
}
.noel-garland svg {
  position: absolute; top: 0; left: 0; width: 100%; height: 30px; display: block; overflow: visible;
}
.noel-garland path {
  fill: none; stroke: #2e2a22; stroke-width: 2; vector-effect: non-scaling-stroke;
}

/* Ampoule : culot 5x5 + bulbe ovale 10x15, suspendue au fil */
.noel-bulb {
  position: absolute; width: 10px; height: 20px; margin-left: -5px;
  animation: noel-twinkle 3.2s ease-in-out infinite;
}
.noel-bulb::before {
  content: ""; position: absolute; top: 0; left: 2.5px; width: 5px; height: 5px;
  background: #2e2a22; border-radius: 1px;
}
.noel-bulb::after {
  content: ""; position: absolute; top: 5px; left: 0; width: 10px; height: 15px;
  background: var(--c); border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  box-shadow: 0 0 8px 2px var(--c), 0 0 22px 6px color-mix(in srgb, var(--c) 40%, transparent);
}

@keyframes noel-twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Flocon doré après le titre */
.noel-flake {
  flex-shrink: 0; width: 34px; height: 34px; display: block;
  filter: drop-shadow(0 0 6px rgba(255, 200, 90, .7));
}
.noel-flake line {
  stroke: #e6b43a; stroke-width: 2.4; stroke-linecap: round;
}

@media (prefers-reduced-motion: reduce) {
  .noel-bulb { animation: none; opacity: 1; }
}
