/* ═══════════════════════════════════════
   Thèmes saisonniers (vitrine + dashboard)
   Activés par <html data-theme="noel"> (voir season.js)
   ═══════════════════════════════════════ */
.noel-only { display: none !important; }
[data-theme="noel"] .noel-only { display: revert !important; }
[data-theme="noel"] img.noel-only { display: block !important; }
[data-theme="noel"] .classic-only { display: none !important; }

/* Neige et guirlande */
#raw-snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }
#raw-garland { position: absolute; top: 0; left: 0; right: 0; height: 44px; pointer-events: none; z-index: 95; overflow: hidden; }
#raw-garland svg { display: block; }
#raw-garland .bulb { animation: twinkle 2.6s ease-in-out infinite; filter: drop-shadow(0 0 6px var(--c)); }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; filter: drop-shadow(0 0 1px var(--c)); } }
@media (prefers-reduced-motion: reduce) { #raw-garland .bulb { animation: none; } }

/* ───── Ambiance de Noël ───── */
[data-theme="noel"] { --noel-red: #ff4d5e; }
[data-theme="noel"] .glow span:nth-child(3),
[data-theme="noel"] .bg-glow span:nth-child(3) { background: #ff4d5e; opacity: .09; }

/* Petits tas de neige sur le haut des cartes */
[data-theme="noel"] .tile::after,
[data-theme="noel"] .step::after,
[data-theme="noel"] .chat::after,
[data-theme="noel"] .final::after,
[data-theme="noel"] .faq details::after,
[data-theme="noel"] .ov-hero::after,
[data-theme="noel"] .module::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 12px; pointer-events: none; z-index: 2;
  border-top-left-radius: inherit; border-top-right-radius: inherit;
  background:
    linear-gradient(#f1f8fb, #e4f0f5) top / 100% 4px no-repeat,
    radial-gradient(circle at 50% 0, #eaf4f8 5.5px, transparent 6px) 0 0 / 38px 12px repeat-x,
    radial-gradient(circle at 50% 0, #eaf4f8 3.5px, transparent 4px) 19px 0 / 38px 9px repeat-x;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.3));
  opacity: .9;}
[data-theme="noel"] .step,
[data-theme="noel"] .faq details,
[data-theme="noel"] .module { position: relative; }
/* La guirlande ne doit pas cacher le menu */
.has-garland .nav-in { padding-top: 20px; }
.has-garland .topbar { padding-top: 16px; }

/* Vitrine : bannière de Noël dans l'accroche */
.noel-banner {
  width: 100%; max-width: 560px; height: auto; border-radius: 18px; margin-bottom: 22px;
  border: 1px solid rgba(59, 238, 174, .28);
  box-shadow: 0 24px 60px -28px rgba(59, 238, 174, .55), 0 0 0 1px rgba(255, 77, 94, .08);
}
[data-theme="noel"] .pill { background: rgba(255, 77, 94, .1); border-color: rgba(255, 77, 94, .32); color: #ffd0d5; }
[data-theme="noel"] .pill .dot { background: #ff4d5e; animation-name: ping-red; }
@keyframes ping-red { 70% { box-shadow: 0 0 0 8px rgba(255, 77, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, 0); } }
[data-theme="noel"] .final { background: radial-gradient(600px 300px at 50% 0%, rgba(255, 77, 94, .16), transparent 70%), radial-gradient(500px 260px at 50% 100%, rgba(59, 238, 174, .14), transparent 70%), linear-gradient(180deg, rgba(20, 26, 29, .9), rgba(12, 16, 18, .9)); }
.final .noel-logo { height: 150px; width: 150px; border-radius: 28px; object-fit: cover; margin: 0 auto 26px; box-shadow: 0 20px 50px -20px rgba(59, 238, 174, .6); }

/* Sol enneigé en bas de la vitrine */
[data-theme="noel"] .footer { position: relative; }
[data-theme="noel"] .footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: -38px; height: 40px; pointer-events: none;
  background: radial-gradient(60% 100% at 20% 100%, rgba(240, 248, 252, .08), transparent 70%), radial-gradient(50% 100% at 75% 100%, rgba(240, 248, 252, .07), transparent 70%);
}

/* ───── Bonnet de Père Noël sur les logos ───── */
.hat-wrap { position: relative; display: inline-block; line-height: 0; }
.hat-wrap > img { display: block; }
.santa-hat { position: absolute; left: -24%; top: -40%; width: 46%; max-width: 38px; min-width: 18px; height: auto; transform: rotate(-22deg); transform-origin: 30% 90%; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); }
.motion-ok .santa-hat { animation: hat-swing 3.2s ease-in-out infinite; }
@keyframes hat-swing { 0%, 100% { transform: rotate(-22deg); } 50% { transform: rotate(-12deg); } }
.land-logo-noel { height: clamp(120px, 18vw, 170px) !important; border-radius: 28px; box-shadow: 0 24px 60px -24px rgba(59,238,174,.6); }

/* ───── Étoiles ───── */
#raw-stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
#raw-stars i { position: absolute; width: calc(3px * var(--s)); height: calc(3px * var(--s)); border-radius: 50%; background: #fff; box-shadow: 0 0 calc(6px * var(--s)) rgba(255,255,255,.9); opacity: .55; }
.motion-ok #raw-stars i { animation: star-twinkle 3s ease-in-out infinite; }
@keyframes star-twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: .9; transform: scale(1.15); } }

/* ───── Traîneau du Père Noël (traverse le ciel toutes les 28 s) ───── */
#raw-sleigh { position: fixed; top: 96px; left: 0; z-index: 91; pointer-events: none; display: flex; align-items: flex-end; gap: 2px; font-size: 26px; line-height: 1; white-space: nowrap; transform: translateX(110vw); animation: sleigh-fly 28s linear infinite 3s; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
#raw-sleigh span { display: inline-block; animation: sleigh-bob 1.2s ease-in-out infinite; }
#raw-sleigh span:nth-child(2) { animation-delay: -.3s; }
#raw-sleigh .sl { font-size: 30px; margin-left: 6px; animation-delay: -.6s; }
#raw-sleigh .santa { font-size: 22px; margin-left: -26px; margin-bottom: 12px; animation-delay: -.6s; }
#raw-sleigh::after { content: ''; position: absolute; left: 100%; bottom: 8px; width: 160px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, rgba(255,209,102,.9), rgba(255,209,102,0)); box-shadow: 0 0 10px rgba(255,209,102,.8); }
@keyframes sleigh-fly { 0% { transform: translate(110vw, 20px); } 35% { transform: translate(-30vw, -30px); } 100% { transform: translate(-30vw, -30px); } }
@keyframes sleigh-bob { 50% { transform: translateY(-5px); } }
@media (max-width: 640px) { #raw-sleigh { top: 70px; font-size: 20px; } #raw-sleigh .sl { font-size: 23px; } }

/* ───── Reflets et mouvements doux ───── */
.noel-banner-wrap { position: relative; max-width: 560px; margin-bottom: 22px; border-radius: 18px; overflow: hidden; }
.noel-banner-wrap .noel-banner { margin: 0; display: block; }
.motion-ok .noel-banner-wrap { animation: noel-float 6s ease-in-out infinite; }
.motion-ok .noel-banner-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%); transform: translateX(-120%); animation: shine 5s ease-in-out infinite 1s; pointer-events: none; }
@keyframes shine { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
@keyframes noel-float { 50% { transform: translateY(-6px); } }
.motion-ok[data-theme="noel"] .final .noel-logo { animation: noel-float 5s ease-in-out infinite; }
.motion-ok[data-theme="noel"] .btn.primary { position: relative; overflow: hidden; }
.motion-ok[data-theme="noel"] .btn.primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-130%); animation: shine 4s ease-in-out infinite; pointer-events: none; }
.motion-ok[data-theme="noel"] .module:hover .m-icon,
.motion-ok[data-theme="noel"] .tile:hover .t-ico { animation: jingle .6s ease-in-out; }
@keyframes jingle { 25% { transform: rotate(-12deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg); } }