/* actif seulement si <html data-season="noel"> */

.noel-only { display: none; }
[data-season="noel"] .noel-only { display: block; }

/* bonnet */
[data-season="noel"] .hat {
  position: absolute;
  z-index: 2;
  top: -34%;
  left: -20%;
  width: 92%;
  height: auto;
  transform: rotate(-24deg);
  transform-origin: 30% 85%;
  filter: drop-shadow(0 3px 3px rgba(10, 20, 45, 0.3));
  pointer-events: none;
}

[data-season="noel"] .brand:hover .hat { animation: hat-wiggle 0.7s var(--ease-out); }

[data-season="noel"].js .is-loaded .hero__logo .hat { animation: hat-drop 1.1s var(--ease-bounce) 0.5s both; }

@keyframes hat-drop {
  0% { opacity: 0; transform: translate(-30%, -160%) rotate(-70deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: rotate(-24deg); }
}

@keyframes hat-wiggle {
  0%, 100% { transform: rotate(-24deg); }
  30% { transform: rotate(-32deg); }
  60% { transform: rotate(-18deg); }
}

/* guirlande */
.garland {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 26px;
  overflow: visible;
  pointer-events: none;
}

.garland__wire { fill: none; stroke: #23361f; stroke-width: 1.6; }
.page-home .site-header:not(.is-solid) .garland__wire { stroke: rgba(255, 255, 255, 0.35); }

.garland__bulb { animation: bulb 2.4s ease-in-out infinite; }
.garland__bulb:nth-of-type(2n) { animation-delay: -1.2s; }
.garland__bulb:nth-of-type(3n) { animation-delay: -0.6s; animation-duration: 3.1s; }

@keyframes bulb {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* neige */
.snow-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero .snow-canvas { z-index: -1; }

.snow-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  transition: background-color 0.2s;
}

[data-season="noel"] .snow-toggle { display: inline-flex; }
.snow-toggle:hover { background: rgba(255, 255, 255, 0.12); }
.is-solid .snow-toggle:hover { background: var(--c-snow); }
.snow-toggle[aria-pressed="false"] { opacity: 0.5; }

/* village */
.village__window { fill: #ffd76a; }
.village__window--flicker { animation: window-light 7s ease-in-out infinite; }
.village__window--flicker:nth-of-type(2n) { animation-delay: -3s; animation-duration: 9s; }

@keyframes window-light {
  0%, 70%, 100% { opacity: 1; }
  78%, 90% { opacity: 0.25; }
}

.village__snow,
.village__tree { display: none; }
[data-season="noel"] .village__snow,
[data-season="noel"] .village__tree { display: inline; }

.village__tree-light { animation: bulb 1.8s ease-in-out infinite; }
.village__tree-light:nth-of-type(2n) { animation-delay: -0.9s; }

.village__tree-star { fill: var(--c-gold); filter: drop-shadow(0 0 4px #ffe066); animation: twinkle 2.4s ease-in-out infinite; }

.shooting-star {
  position: absolute;
  top: 16%;
  left: 8%;
  z-index: -1;
  width: 140px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff);
  opacity: 0;
  transform: rotate(14deg);
}

[data-season="noel"].js .is-loaded .shooting-star { animation: shoot 1.6s ease-in 1.6s 1 both; }

@keyframes shoot {
  0% { opacity: 0; transform: translate(0, 0) rotate(14deg) scaleX(0.2); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(55vw, 14vw) rotate(14deg) scaleX(1); }
}

/* sections */
.holly {
  position: absolute;
  top: -28px;
  right: -12px;
  width: 96px;
  height: 66px;
}

[data-season="noel"] .event__poster { transform: rotate(-2deg); transition: transform 0.5s var(--ease-out); }
[data-season="noel"] .event__poster:hover { transform: rotate(0); }

[data-season="noel"] .directory__tools { top: calc(var(--header-h-small) + 20px); }

[data-season="noel"] .event__countdown { background: var(--c-holly); color: var(--c-white); }

.poster-bow {
  position: absolute;
  top: -26px;
  left: 50%;
  z-index: 1;
  width: 110px;
  height: 64px;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 4px rgba(10, 20, 45, 0.25));
}

[data-season="noel"] .gift__card { border-top: 14px solid var(--c-holly); }

.gift-bow {
  position: absolute;
  top: -48px;
  left: 50%;
  width: 130px;
  height: 76px;
  transform: translateX(-50%);
  filter: drop-shadow(0 6px 6px rgba(5, 14, 32, 0.35));
}

[data-season="noel"] .gift .snow-canvas { z-index: -1; }

.join__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.join__star {
  position: absolute;
  height: auto;
  aspect-ratio: 1;
  color: var(--c-white);
  opacity: 0.9;
  animation: twinkle 3s ease-in-out infinite;
}

.join__star:nth-child(2n) { color: var(--c-night); opacity: 0.25; animation-delay: -1.5s; }
.join__star:nth-child(3n) { animation-duration: 4.2s; }

.join__star:nth-child(1) { left: 56%; top: 18%; width: 14px; }
.join__star:nth-child(2) { left: 61%; top: 64%; width: 22px; }
.join__star:nth-child(3) { left: 66%; top: 34%; width: 10px; }
.join__star:nth-child(4) { left: 71%; top: 80%; width: 12px; }
.join__star:nth-child(5) { left: 74%; top: 12%; width: 18px; }
.join__star:nth-child(6) { left: 79%; top: 52%; width: 12px; }
.join__star:nth-child(7) { left: 83%; top: 26%; width: 22px; }
.join__star:nth-child(8) { left: 87%; top: 74%; width: 14px; }
.join__star:nth-child(9) { left: 90%; top: 42%; width: 10px; }
.join__star:nth-child(10) { left: 93%; top: 14%; width: 12px; }
.join__star:nth-child(11) { left: 96%; top: 60%; width: 18px; }
.join__star:nth-child(12) { left: 58%; top: 88%; width: 10px; }
.join .container { position: relative; }

.snowdrift {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  width: 100%;
  height: clamp(28px, 4vw, 56px);
  fill: var(--c-night);
}

[data-season="noel"] .snowdrift .snowdrift__snow { fill: #fff; }
.snowdrift__snow { fill: var(--c-night); }

@media (prefers-reduced-motion: reduce) {
  .snow-canvas,
  .shooting-star { display: none; }
}

@media (max-width: 600px) {
  .join__star { display: none; }
  .join__star:nth-child(5),
  .join__star:nth-child(10) { display: block; }
}
