/* illicocash festive mockup layer. Everything here sits on top of the mirrored homepage.
   Positions and sizes live here; all motion lives in xmas.js (GSAP + ScrollTrigger). */

/* --- Logo: festive mascot replaces the mascot in the logo, wordmark stays --- */
.xmas-logo { position: relative; overflow: visible; }
.xmas-logo__word {
  /* hide the old mascot, keep the wordmark and the exact original layout */
  clip-path: inset(0 0 0 24.2%);
}
.xmas-logo__mascot {
  position: absolute;
  width: auto !important;
  max-width: none !important;
  pointer-events: none;
  transform-origin: 50% 92%;
}

/* --- Decorations ---
   Three nested boxes per decoration so the three motions never fight over one transform:
   .xmas-item (scroll-driven glide in and out) > .xmas-in (arrival on page load) > img (idle float) */
.xmas-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  overflow: hidden;
}
.xmas-item { position: absolute; width: clamp(56px, 6.2vw, 120px); visibility: hidden; will-change: transform; }
.xmas-in { display: block; will-change: transform; }
.xmas-item img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 18px rgba(40, 30, 10, 0.18));
}

/* Scene 1, top of the page: gifts on both sides, tree bottom right on a diagonal */
.xmas-h-l1 { left: clamp(-46px, -2.4vw, -20px); top: 15%; }
.xmas-h-l2 { left: clamp(-22px, -1vw, -8px); bottom: -20px; width: clamp(64px, 7vw, 132px); }
.xmas-h-r1 { right: clamp(-46px, -2.4vw, -20px); top: 17%; }
.xmas-h-tree {
  width: clamp(150px, 19vw, 330px);
  right: clamp(-70px, -3.4vw, -30px);
  bottom: clamp(-95px, -5vw, -40px);
}
.xmas-h-r2 { right: clamp(118px, 15.5vw, 270px); bottom: -18px; width: clamp(56px, 6.6vw, 114px); }

/* Scene 2, "Nouvelles fonctionnalités": one gift peeks in from each side */
.xmas-f-l { left: clamp(-40px, -2.1vw, -18px); top: 38%; width: clamp(50px, 5.6vw, 108px); }
.xmas-f-r { right: clamp(-40px, -2.1vw, -18px); top: 56%; width: clamp(50px, 5.6vw, 108px); }

/* Scene 3, newsletter to the end of the page: the tree comes back, smaller, with gifts opposite */
.xmas-e-tree {
  width: clamp(120px, 14vw, 250px);
  right: clamp(-54px, -2.6vw, -24px);
  bottom: clamp(-70px, -3.8vw, -30px);
}
.xmas-e-l { left: clamp(-22px, -1vw, -8px); bottom: -18px; width: clamp(60px, 6.6vw, 124px); }
/* second gift sits beside the first on the left, so the footer links on the right stay clear */
.xmas-e-r { left: clamp(58px, 6.4vw, 122px); bottom: -16px; width: clamp(50px, 5.4vw, 96px); }

/* Phones: there is no side margin to sit in, so nothing is allowed next to the text.
   Only a few small pieces show, at the top and near the end, and xmas.js hides any piece
   the moment it would cover text or a control. */
@media (max-width: 767px) {
  .xmas-h-l1, .xmas-h-r1, .xmas-h-r2, .xmas-f-l, .xmas-f-r, .xmas-e-r { display: none; }
  .xmas-e-tree { width: 92px; right: -26px; bottom: -34px; }
  .xmas-e-l { width: 52px; left: -10px; bottom: -14px; }
  /* top of the page: the tree leans in over the photo, the gift sits in the gap under the logo */
  .xmas-h-tree { width: 118px; right: -36px; bottom: 11%; }
  .xmas-h-l2 { width: 58px; left: -12px; bottom: auto; top: 112px; }
}

/* ?original in the URL shows the page without the festive layer, for before/after */
html.xmas-off .xmas-layer, html.xmas-off .xmas-logo__mascot { display: none; }
html.xmas-off .xmas-logo__word { clip-path: none; }
