/* ============================================================
   ORBYA · NOËL — couche saisonnière légère et non intrusive.
   ============================================================ */

:root {
  --christmas-ice: #dff8ff;
  --christmas-blue: #75d8ff;
  --christmas-red: #d74b5b;
  --christmas-gold: #ffd890;
}

body.christmas-season {
  --gold: var(--christmas-gold);
}

body.christmas-season .topbar.solid,
body.christmas-season .devis-topbar,
body.christmas-season .legal-topbar {
  border-bottom-color: rgba(117, 216, 255, .38);
  box-shadow: 0 8px 28px rgba(39, 95, 150, .09);
}

body.christmas-season .brand .mk,
body.christmas-season .devis-brand-mark,
body.christmas-season .legal-brand-mark {
  box-shadow: 0 0 18px rgba(124, 219, 255, .55);
}

.christmas-decor {
  position: fixed;
  inset: 0;
  z-index: 45;
  overflow: hidden;
  pointer-events: none;
}

.christmas-decor canvas {
  position: absolute;
  inset: 0;
  display: block;
}

.snow-cap-target {
  position: relative;
  isolation: isolate;
}

.christmas-snowcap {
  position: absolute;
  z-index: 4;
  top: -8px;
  left: 4%;
  width: 92%;
  height: 15px;
  pointer-events: none;
  opacity: .94;
  background:
    radial-gradient(ellipse at 8% 100%, transparent 0 32%, var(--christmas-ice) 34% 72%, transparent 74%),
    radial-gradient(ellipse at 30% 100%, transparent 0 26%, #fff 29% 72%, transparent 75%),
    radial-gradient(ellipse at 56% 100%, transparent 0 30%, #f9feff 33% 74%, transparent 77%),
    radial-gradient(ellipse at 82% 100%, transparent 0 29%, #d9f5ff 32% 72%, transparent 75%),
    linear-gradient(#fff, #d8f3ff);
  border-radius: 60% 60% 42% 42% / 75% 75% 42% 42%;
  filter: drop-shadow(0 3px 2px rgba(67, 137, 175, .18));
  transform-origin: 50% 0;
  transition: opacity .35s ease, transform .35s ease;
}

.btn .christmas-snowcap,
.ebook-buy .christmas-snowcap {
  top: -6px;
  height: 11px;
  left: 8%;
  width: 84%;
}

.snow-shaken .christmas-snowcap {
  animation: snow-cap-shake .78s cubic-bezier(.21,.72,.34,1);
}

body.snow-is-moving .snow-cap-target:nth-child(odd) .christmas-snowcap {
  transform: translate3d(-2px, 2px, 0) rotate(-.8deg);
}

body.snow-is-moving .snow-cap-target:nth-child(even) .christmas-snowcap {
  transform: translate3d(2px, 2px, 0) rotate(.8deg);
}

.christmas-snowfall {
  position: absolute;
  z-index: 5;
  inset: -4px 0 auto;
  height: 70px;
  overflow: visible;
  pointer-events: none;
}

.christmas-snowfall i {
  position: absolute;
  top: 3px;
  left: calc(var(--flake, 1) * 14%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #effcff;
  box-shadow: 0 0 5px #fff;
  animation: snow-drop .75s ease-in forwards;
}

.christmas-snowfall i:nth-child(1) { --flake: 1; animation-delay: .02s; }
.christmas-snowfall i:nth-child(2) { --flake: 2.2; animation-delay: .08s; }
.christmas-snowfall i:nth-child(3) { --flake: 3.4; animation-delay: .01s; }
.christmas-snowfall i:nth-child(4) { --flake: 4.6; animation-delay: .12s; }
.christmas-snowfall i:nth-child(5) { --flake: 5.4; animation-delay: .04s; }
.christmas-snowfall i:nth-child(6) { --flake: 6.1; animation-delay: .1s; }

@keyframes snow-cap-shake {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
  26% { transform: translate3d(-3px, 1px, 0) rotate(-1.2deg); }
  54% { transform: translate3d(4px, 2px, 0) rotate(1.4deg); }
  78% { transform: translate3d(-2px, 2px, 0) rotate(-.6deg); }
}

@keyframes snow-drop {
  0% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(7px, 64px, 0) scale(.55); }
}

@media (max-width: 640px) {
  .christmas-snowcap { height: 11px; top: -6px; }
}

@media (prefers-reduced-motion: reduce) {
  .snow-shaken .christmas-snowcap,
  .christmas-snowfall i { animation: none; }
  body.snow-is-moving .christmas-snowcap { transform: none; }
}
