/* Cokitec : thème de Noël, version 2 (Nova, décembre 2026). Voir assets/js/noel.js. */

/* Cristaux de neige : par-dessus la page, sans jamais gêner les clics */
.noel-neige { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9990; }

/* Fil de LED blanc chaud sous l'en-tête */
.noel-led {
  position: relative; display: flex; justify-content: space-between; align-items: flex-start;
  height: 14px; padding: 0 14px; overflow: hidden; pointer-events: none;
}
.noel-led::before {
  content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,214,140,.25) 8%, rgba(255,214,140,.25) 92%, transparent);
}
.noel-led i {
  position: relative; width: 4px; height: 4px; margin-top: var(--y, 4px); border-radius: 50%;
  background: #fff3d6; box-shadow: 0 0 4px 1px rgba(255,200,110,.85), 0 0 10px 3px rgba(255,190,90,.35);
  animation: noel-scintille var(--d, 2.4s) ease-in-out var(--r, 0s) infinite alternate;
}
@keyframes noel-scintille {
  from { opacity: .35; transform: scale(.8); }
  to { opacity: 1; transform: scale(1.1); }
}

/* Bonnet en velours posé sur le logo */
.entete__logo { position: relative; }
.noel-bonnet { position: absolute; left: -13px; top: -15px; width: 34px; height: auto; transform: rotate(-16deg); pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }

/* Émoticônes */
.noel-emo { margin-right: .3em; font-style: normal; }
.noel-emo.apres { margin: 0 0 0 .35em; }

/* Traîneau doré : traverse le haut de l'écran une fois */
.noel-traineau {
  position: fixed; top: 200px; left: 0; width: 360px; z-index: 9991; pointer-events: none;
  animation: noel-vol 10s cubic-bezier(.45,.05,.55,.95) forwards;
  filter: drop-shadow(0 3px 6px rgba(120,80,0,.25));
}
.noel-traineau img { display: block; width: 100%; height: auto; }
@keyframes noel-vol {
  0% { transform: translate(-380px, 40px); opacity: 0; }
  6% { opacity: 1; }
  50% { transform: translate(45vw, 0); }
  94% { opacity: 1; }
  100% { transform: translate(calc(100vw + 40px), -40px); opacity: 0; }
}

/* Fiche produit */
.noel-cadeau {
  display: inline-flex; align-items: center; gap: .4em; margin: 0 0 .55em; padding: .32em .9em .32em .75em;
  border-radius: 999px; font-weight: 600; font-size: .82rem; letter-spacing: .02em; color: #8a1520;
  background: linear-gradient(135deg, #fff5f3, #ffe7e3); border: 1px solid #f3c2bb;
}
.noel-grande { position: relative; }
.noel-noeud {
  position: absolute; top: 12px; right: 12px; width: 82px; aspect-ratio: 240 / 226; z-index: 2; pointer-events: none;
  background: url("../img/noel/noel-noeud.png?v=2") center / contain no-repeat; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25));
}
.noel-info { display: flex; align-items: center; gap: .45em; margin: .5em 0 0; font-size: .9rem; font-weight: 500; color: #6b5a2e; }
.noel-info::before { content: "✦"; color: #c9a227; font-size: 1rem; }
@media (max-width: 767px) { .noel-noeud { width: 60px; } .noel-bonnet { width: 28px; left: -10px; top: -12px; } }

/* « Réduire les animations » : décor fixe */
@media (prefers-reduced-motion: reduce) {
  .noel-led i { animation: none; opacity: .9; }
}
