/* ==========================================================================
   THÈME DE NOËL — toutes les règles sont préfixées par html.xmas
   (la classe est ajoutée / retirée par christmas.js selon theme-config.js)
   ========================================================================== */



/* --------------------------------------------------------------------------
   2. FLOCONS (canvas créé par christmas.js)
   -------------------------------------------------------------------------- */
.xmas-snow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 150; /* au-dessus du header (100), sous le menu latéral (200+) */
}

/* --------------------------------------------------------------------------
   3. GUIRLANDE LUMINEUSE (accrochée sous le header, SVG créé par christmas.js)
   -------------------------------------------------------------------------- */
.xmas-garland {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 34px;
  pointer-events: none;
  z-index: 1;
}

.xmas-garland svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.xmas-garland .wire {
  fill: none;
  stroke: #2c332f;
  stroke-width: 1.3;
  stroke-linecap: round;
  opacity: 0.7;
}

.xmas-garland .socket {
  fill: #2c332f;
  opacity: 0.85;
}

.xmas-garland .xb {
  animation: xmas-twinkle 2.6s ease-in-out infinite;
}

.xmas-garland .xb1 { animation-duration: 3.2s; }
.xmas-garland .xb2 { animation-duration: 2.2s; }
.xmas-garland .xb3 { animation-duration: 3.7s; }

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

@media (prefers-reduced-motion: reduce) {
  .xmas-garland .xb { animation: none; }
}

@media (max-width: 600px) {
  .xmas-garland { height: 30px; }
}
