/* ==========================================================================
   Saisons LMDB · Fêtes « La Nuit Magique » — composants
   Bandeau, village de Noël (traîneau, rennes, boule à neige), calendrier de l'Avent,
   cadeaux par budget, bannières du slider, jeu « La Hotte du Père Noël ».
   Chargé par le module pendant les Fêtes ; l'habillage du thème est dans skin-<thème>-fetes.css.
   ========================================================================== */

:root {
  --ft-night: #07102A;
  --ft-night-2: #0E1A3A;
  --ft-surface: #101C3E;
  --ft-surface-2: #16264E;
  --ft-line: #26386A;
  --ft-text: #EEF2FF;
  --ft-mute: #AEBBDD;
  --ft-red: #D42A3C;
  --ft-red-deep: #A3162A;
  --ft-gold: #E9C46A;
  --ft-gold-deep: #C9A043;
  --ft-green: #17573F;
  --ft-snow: #FFFFFF;
  --ft-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ft-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --ft-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ft-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ft-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Neige sur tout le site (posée par le script) */
.ft-snowfall {
  position: fixed;
  inset: 0;
  z-index: 1200;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 1 · Bandeau défilant ------------------------------------------------------ */
.ft-ticker {
  position: relative;
  overflow: hidden;
  background: var(--ft-red);
  color: #FFFFFF;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.25);
}
.ft-ticker::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 8px;
  background: radial-gradient(circle at 8px 0, #FFFFFF 6px, transparent 6.5px) 0 0 / 16px 8px repeat-x;
  opacity: 0.95;
}
.ft-ticker__track {
  display: flex;
  width: max-content;
  padding: 12px 0 16px;
  animation: ft-marquee 50s linear infinite;
}
.ft-ticker__item { padding-inline: 22px; font: 700 0.78rem/1 var(--ft-sans); letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.ft-ticker__sep { color: var(--ft-gold); }
.ft-ticker:hover .ft-ticker__track { animation-play-state: paused; }

/* 2 · Village de Noël --------------------------------------------------------- */
.ft-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(560px, 82vh, 860px);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 78% 18%, rgba(110, 140, 255, 0.28), transparent 70%),
    linear-gradient(180deg, #050B1F 0%, #0B1838 55%, #15275A 100%);
  color: var(--ft-text);
  font-family: var(--ft-sans);
  perspective: 1200px;
}
.ft-hero__sky { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.ft-hero__aurora {
  position: absolute;
  inset: -20% -10% auto;
  z-index: 0;
  height: 70%;
  background:
    radial-gradient(40% 50% at 30% 50%, rgba(80, 220, 180, 0.22), transparent 70%),
    radial-gradient(35% 45% at 65% 40%, rgba(140, 120, 255, 0.2), transparent 70%);
  filter: blur(30px);
  animation: ft-aurora 18s ease-in-out infinite alternate;
}
.ft-hero__moon {
  position: absolute;
  top: 7%;
  inset-inline-start: 46%;
  z-index: 1;
  width: clamp(90px, 12vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #FFFDF2, #F4E7C2 55%, #D8C38F 100%);
  box-shadow: 0 0 60px 20px rgba(255, 240, 200, 0.25), 0 0 160px 60px rgba(255, 240, 200, 0.12);
  transform: translate3d(calc(var(--px, 0) * 20px), calc(var(--py, 0) * 12px), 0);
}
.ft-hero__layer {
  position: absolute;
  inset-inline: -4%;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  transform: translate3d(calc(var(--px, 0) * var(--d, 0) * 60px), calc(var(--py, 0) * var(--d, 0) * 20px), 0);
  transition: transform 0.4s var(--ft-ease);
}
.ft-hero__layer svg { display: block; width: 100%; height: 100%; }
.ft-hero__layer--hills { height: 42%; --d: 0.3; }
.ft-hero__layer--village { height: 46%; z-index: 3; --d: 0.6; }
.ft-hero__layer--trees { height: 36%; z-index: 5; --d: 1; }
.ft-win { animation: ft-twinkle 3.4s ease-in-out infinite; animation-delay: var(--d, 0s); }

/* Traîneau et rennes */
.ft-flight {
  position: absolute;
  top: 12%;
  left: 0;
  z-index: 2;
  width: clamp(300px, 40vw, 560px);
  pointer-events: auto;
  cursor: pointer;
  animation: ft-fly 22s linear infinite;
  will-change: transform;
}
.ft-flight__bob { animation: ft-bob 2.4s ease-in-out infinite; }
.ft-team { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 14px rgba(233, 196, 106, 0.45)); }
.ft-deer { animation: ft-gallop-body 0.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ft-deer--2 { animation-delay: -0.2s; }
.ft-deer--3 { animation-delay: -0.4s; }
.ft-deer__leg { transform-box: fill-box; transform-origin: top center; animation: ft-leg 0.6s ease-in-out infinite; }
.ft-deer__leg--f2,
.ft-deer__leg--b1 { animation-delay: -0.3s; }
.ft-deer__nose { filter: drop-shadow(0 0 6px #FF3B4E); animation: ft-nose 1.4s ease-in-out infinite; }
.ft-flight.is-ho .ft-flight__bob::after {
  content: "Ho ho ho !";
  position: absolute;
  top: -34px;
  inset-inline-start: 10%;
  padding: 6px 12px;
  border-radius: 16px;
  background: #FFFFFF;
  color: var(--ft-red);
  font: italic 700 1rem/1 var(--ft-display);
  white-space: nowrap;
}

/* Texte du village */
.ft-hero__grid {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) max(20px, 4vw) clamp(160px, 22vh, 240px);
}
.ft-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(7, 16, 42, 0.5);
  backdrop-filter: blur(6px);
  font: 700 0.74rem/1 var(--ft-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ft-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ft-red); box-shadow: 0 0 10px var(--ft-red); }
.ft-title {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.22em;
  margin: 0;
  color: #FFFFFF;
  font: italic 800 clamp(3.4rem, 9.5vw, 9.5rem)/0.9 var(--ft-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.ft-title__word { display: inline-flex; }
.ft-title__word--gold .ft-ch {
  background: linear-gradient(180deg, #FFF3CF 0%, var(--ft-gold) 45%, var(--ft-gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ft-ch {
  position: relative;
  display: inline-block;
  animation: ft-drop 1.1s var(--ft-bounce) both;
  animation-delay: calc(var(--i) * 70ms + 200ms);
  transition: transform 0.4s var(--ft-bounce);
}
.ft-title.is-live .ft-ch { animation: none; }
.ft-ch.is-jump { transform: translateY(-0.18em) rotate(-6deg); }
.ft-hero__lead { max-width: 36em; margin: 22px 0 0; color: var(--ft-mute); font: 400 clamp(1rem, 1.25vw, 1.2rem)/1.55 var(--ft-sans); }
.ft-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

.ft-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--ft-red);
  border-radius: 999px;
  background: var(--ft-red);
  color: #FFFFFF !important;
  font: 700 0.8rem/1 var(--ft-sans);
  letter-spacing: 0.12em;
  text-decoration: none !important;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(212, 42, 60, 0.7);
  transition: transform 0.3s var(--ft-bounce), background-color 0.2s ease, box-shadow 0.3s ease;
}
.ft-btn:hover { background: #E8394C; transform: translateY(-2px) scale(1.02); }
.ft-btn--ghost { border-color: rgba(255, 255, 255, 0.6); background: rgba(7, 16, 42, 0.4); box-shadow: none; backdrop-filter: blur(6px); }
.ft-btn--ghost:hover { border-color: #FFFFFF; background: #FFFFFF; color: var(--ft-night) !important; }
.ft-btn:focus-visible { outline: 2px solid var(--ft-gold); outline-offset: 3px; }

/* Boule à neige */
.ft-globe {
  position: relative;
  display: grid;
  justify-items: center;
  transform: rotateY(calc(var(--px, 0) * -10deg)) rotateX(calc(var(--py, 0) * 6deg));
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ft-ease);
}
.ft-globe__glass {
  position: relative;
  z-index: 2;
  width: clamp(220px, 24vw, 340px);
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.2), transparent 60%),
    radial-gradient(circle at 50% 40%, rgba(70, 100, 190, 0.55), rgba(10, 20, 60, 0.85));
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.35),
    inset -20px -30px 60px rgba(0, 0, 0, 0.45),
    0 30px 80px -20px rgba(0, 0, 0, 0.8),
    0 0 80px rgba(160, 190, 255, 0.25);
  cursor: grab;
}
.ft-globe__glass:active { cursor: grabbing; }
.ft-globe__glass.is-shaking { animation: ft-shake 0.7s var(--ft-ease); }
.ft-globe__scene { position: absolute; inset: 12% 8% 0; }
.ft-globe__scene svg { width: 100%; height: 100%; }
.ft-globe__snow { position: absolute; inset: 0; width: 100%; height: 100%; }
.ft-globe__shine {
  position: absolute;
  top: 9%;
  left: 18%;
  width: 34%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.55), transparent 70%);
  transform: rotate(-28deg);
  pointer-events: none;
}
.ft-globe__glass:focus-visible { outline: 3px solid var(--ft-gold); outline-offset: 6px; }
.ft-globe__base {
  position: relative;
  z-index: 1;
  width: 82%;
  margin-top: -9%;
  padding: 22% 6% 14px;
  clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #7A1020, var(--ft-red-deep) 40%, #5E0A16);
  box-shadow: inset 0 3px 0 var(--ft-gold);
  text-align: center;
}
.ft-globe__count { display: grid; justify-items: center; margin: 0; color: #FFFFFF; }
.ft-globe__lead,
.ft-globe__unit { font: 700 0.68rem/1.2 var(--ft-sans); letter-spacing: 0.18em; text-transform: uppercase; color: #FFE7B0; }
.ft-globe__count b { font: italic 800 clamp(2.4rem, 4vw, 3.6rem)/1 var(--ft-display); color: #FFFFFF; unicode-bidi: isolate; }
.ft-globe__now { font-size: 1.6rem !important; }
.ft-globe__hint { margin: 12px 0 0; color: var(--ft-mute); font: 600 0.72rem/1 var(--ft-sans); letter-spacing: 0.14em; text-transform: uppercase; }

/* 3 · Titres de section ----------------------------------------------------- */
.ft-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 32px;
  margin-bottom: 28px;
}
.ft-head__title {
  margin: 0;
  color: #FFFFFF;
  font: italic 700 clamp(2rem, 4.6vw, 4rem)/1 var(--ft-display);
  font-variation-settings: "SOFT" 100;
}
.ft-head__title::after { content: " ✦"; color: var(--ft-gold); font-size: 0.5em; vertical-align: 0.6em; }
.ft-head__sub { max-width: 30em; margin: 0; color: var(--ft-mute); font: 400 1rem/1.5 var(--ft-sans); }

/* 4 · Calendrier de l'Avent -------------------------------------------------- */
.ft-advent,
.ft-gifts {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) max(16px, 4vw) clamp(24px, 3vw, 40px);
  background: var(--ft-night);
  box-shadow: 0 0 0 100vmax var(--ft-night);
  clip-path: inset(0 -100vmax);
  color: var(--ft-text);
  font-family: var(--ft-sans);
}
.ft-advent__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(8px, 1.2vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
  perspective: 1400px;
}
.ft-door {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  background: #050B1F;
  box-shadow: inset 0 0 0 1px var(--ft-line), inset 0 10px 30px rgba(0, 0, 0, 0.6);
}
.ft-door:nth-child(7n + 3) { grid-row: span 2; aspect-ratio: auto; }
.ft-door:nth-child(11n + 5) { grid-column: span 2; aspect-ratio: auto; }
.ft-door__inside {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 38%, #1B2E66, #070F2B 72%);
  color: #FFFFFF !important;
  text-decoration: none !important;
}
/* la photo, centrée, sur une carte blanche qui laisse la place au nom et au prix */
.ft-door__img {
  position: absolute !important;
  inset: 8px 8px 44px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 6px;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
.ft-door__img img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: auto !important;
  object-fit: contain;
}
.ft-door__name,
.ft-door__price {
  position: absolute;
  inset-inline: 8px;
  overflow: hidden;
  color: #FFFFFF !important;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.ft-door__name { bottom: 22px; font: 600 0.74rem/1.2 var(--ft-sans); }
.ft-door__price { bottom: 6px; color: #FFD98A !important; font: 800 0.8rem/1 var(--ft-sans); unicode-bidi: isolate; }
.ft-door__inside--locked { display: grid; place-items: center; padding: 14px; color: #C9D3F2 !important; font: italic 500 0.82rem/1.35 var(--ft-display); text-align: center; }

/* Ouverture magique : halo doré, étincelles, puis le cadeau sort de la boîte */
.ft-door.is-magic .ft-door__inside::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: 0;
  background: conic-gradient(from 0deg, transparent 0 8%, rgba(255, 217, 138, 0.55) 10% 12%, transparent 14% 22%, rgba(255, 255, 255, 0.5) 24% 25%, transparent 27% 40%, rgba(255, 217, 138, 0.5) 42% 44%, transparent 46% 60%, rgba(255, 255, 255, 0.45) 62% 63%, transparent 65% 80%, rgba(255, 217, 138, 0.5) 82% 84%, transparent 86%);
  animation: ft-rays 1.6s ease-out both;
}
.ft-door.is-magic .ft-door__inside::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(circle at 20% 30%, #FFF 0 2px, transparent 3px),
    radial-gradient(circle at 78% 22%, #FFD98A 0 2.5px, transparent 3.5px),
    radial-gradient(circle at 62% 70%, #FFF 0 2px, transparent 3px),
    radial-gradient(circle at 32% 76%, #FFD98A 0 2px, transparent 3px),
    radial-gradient(circle at 86% 58%, #FFF 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 50% 50%, rgba(255, 230, 170, 0.7), transparent 55%);
  pointer-events: none;
  animation: ft-sparkle 1.6s ease-out both;
}
.ft-door.is-magic .ft-door__img { z-index: 2; animation: ft-rise 1.1s 0.35s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.ft-door.is-magic .ft-door__name,
.ft-door.is-magic .ft-door__price { animation: ft-fade-up 0.6s 1s ease both; }
@keyframes ft-rays {
  from { opacity: 0; transform: scale(0.4) rotate(0); }
  35% { opacity: 1; }
  to { opacity: 0; transform: scale(1.2) rotate(90deg); }
}
@keyframes ft-sparkle {
  from { opacity: 0; transform: scale(0.6); }
  30% { opacity: 1; }
  to { opacity: 0; transform: scale(1.35) translateY(-18%); }
}
@keyframes ft-rise {
  from { opacity: 0; transform: translateY(55%) scale(0.2) rotate(-8deg); filter: brightness(2.2); }
  55% { opacity: 1; transform: translateY(-14%) scale(1.12) rotate(3deg); filter: brightness(1.4); }
  to { transform: none; filter: none; }
}
@keyframes ft-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.ft-door__leaf {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: #FFFFFF;
  cursor: pointer;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 1s var(--ft-ease), box-shadow 0.4s ease;
  backface-visibility: hidden;
}
.ft-door--0 .ft-door__leaf { background: radial-gradient(circle at 30% 20%, #E2475A, var(--ft-red-deep)); }
.ft-door--1 .ft-door__leaf { background: radial-gradient(circle at 30% 20%, #2A7A59, var(--ft-green)); }
.ft-door--2 .ft-door__leaf { background: radial-gradient(circle at 30% 20%, #F2D58C, var(--ft-gold-deep)); color: #3B2A06; }
.ft-door--3 .ft-door__leaf { background: radial-gradient(circle at 30% 20%, #2B4A9A, #15275A); }
.ft-door--4 .ft-door__leaf { background: radial-gradient(circle at 30% 20%, #FFFFFF, #DCE4F7); color: var(--ft-red); }
.ft-door__leaf::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(255, 255, 255, 0.45);
  border-radius: 10px;
}
.ft-door__num { position: relative; font: italic 800 clamp(1.6rem, 3.6vw, 3.2rem)/1 var(--ft-display); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.18); }
.ft-door__ribbon {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #FFFFFF 15%, var(--ft-gold) 18% 60%, transparent 62%);
}
.ft-door.is-today .ft-door__leaf { box-shadow: 0 0 0 3px var(--ft-gold), 0 0 30px 6px rgba(233, 196, 106, 0.55); animation: ft-pulse 1.8s ease-in-out infinite; }
.ft-door.is-ready:not(.is-open) .ft-door__leaf:hover { transform: rotateY(-22deg); box-shadow: 12px 0 30px rgba(0, 0, 0, 0.5); }
.ft-door.is-open .ft-door__leaf { transform: rotateY(-108deg); box-shadow: 20px 0 40px rgba(0, 0, 0, 0.6); pointer-events: none; }
.ft-door.is-denied .ft-door__leaf { animation: ft-nope 0.5s ease; }
/* Sans script : les cases du jour et des jours passés restent visibles */
html:not(.ft-js) .ft-door.is-ready .ft-door__leaf { display: none; }

/* 5 · Cadeaux par budget ----------------------------------------------------- */
.ft-gifts__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.ft-tab {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ft-line);
  border-radius: 999px;
  background: var(--ft-surface);
  color: var(--ft-text);
  font: 700 0.85rem/1 var(--ft-sans);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.3s var(--ft-bounce);
}
.ft-tab:hover { transform: translateY(-2px); }
.ft-tab[aria-selected="true"] { border-color: var(--ft-gold); background: var(--ft-gold); color: #2A1E04; }
.ft-tab:focus-visible { outline: 2px solid var(--ft-gold); outline-offset: 3px; }
.ft-gifts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.ft-gift__link { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; color: var(--ft-text) !important; text-decoration: none !important; }
.ft-gift__box {
  position: relative;
  display: block;
  justify-self: center;
  width: 84%;
  max-width: 250px;
  aspect-ratio: 1 / 0.92;
  margin-top: 26%;
  perspective: 600px;
}
.ft-gift__item {
  position: absolute;
  inset: 6% 14% 26%;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  transform: translateY(16%) scale(0.8);
  transition: transform 0.7s var(--ft-bounce);
}
.ft-gift__item img { width: 100%; height: 100%; object-fit: contain; }
.ft-gift__body,
.ft-gift__lid { position: absolute; inset-inline: 0; z-index: 2; border-radius: 6px; background: var(--g-paper); box-shadow: inset 0 -12px 20px rgba(0, 0, 0, 0.18); }
.ft-gift__body { bottom: 0; height: 64%; }
.ft-gift__body::before,
.ft-gift__lid::before { content: ""; position: absolute; inset: 0 auto 0 calc(50% - 9px); width: 18px; background: var(--g-ribbon); }
.ft-gift__lid {
  bottom: 60%;
  inset-inline: -4%;
  z-index: 3;
  height: 16%;
  transform-origin: 10% 100%;
  transition: transform 0.6s var(--ft-bounce);
}
.ft-gift__bow {
  position: absolute;
  bottom: 88%;
  left: 50%;
  width: 46px;
  height: 26px;
  transform: translateX(-50%);
}
.ft-gift__bow::before,
.ft-gift__bow::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 24px;
  height: 22px;
  border: 6px solid var(--g-ribbon);
  border-radius: 50% 50% 4px 50%;
}
.ft-gift__bow::before { left: 0; transform: rotate(-20deg); }
.ft-gift__bow::after { right: 0; border-radius: 50% 50% 50% 4px; transform: rotate(20deg); }
.ft-gift--0 { --g-paper: repeating-linear-gradient(45deg, #C8102E 0 14px, #B00D27 14px 28px); --g-ribbon: var(--ft-gold); }
.ft-gift--1 { --g-paper: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.25) 3px, transparent 4px) 0 0 / 18px 18px, #17573F; --g-ribbon: #E2475A; }
.ft-gift--2 { --g-paper: repeating-linear-gradient(-45deg, #F2D58C 0 10px, #E9C46A 10px 20px); --g-ribbon: #C8102E; }
.ft-gift--3 { --g-paper: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.35) 2px, transparent 3px) 0 0 / 14px 14px, #2B4A9A; --g-ribbon: #FFFFFF; }
.ft-gift__link:hover .ft-gift__lid,
.ft-gift__link:focus-visible .ft-gift__lid { transform: translate(-6%, -120%) rotate(-24deg); }
.ft-gift__link:hover .ft-gift__item,
.ft-gift__link:focus-visible .ft-gift__item { transform: translateY(-38%) scale(1); }
.ft-gift__link:focus-visible { outline: 2px solid var(--ft-gold); outline-offset: 6px; border-radius: 8px; }
.ft-gift__name { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font: 600 0.92rem/1.3 var(--ft-sans); }
.ft-gift__price { color: var(--ft-gold); font: 700 0.95rem/1 var(--ft-sans); unicode-bidi: isolate; }
.ft-gift__price s { margin-inline-start: 6px; color: var(--ft-mute); font-weight: 400; font-size: 0.8em; }
.ft-js .ft-gifts__panel[hidden] { display: none; }

/* 6 · Bannière du slider d'accueil ------------------------------------------- */
.ft-slide {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(12px, 3vw, 40px);
  aspect-ratio: 3 / 1;
  padding: clamp(16px, 3.4vw, 56px) clamp(18px, 4.6vw, 80px);
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.9) 1px, transparent 1.5px) 0 0 / 46px 46px,
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.6) 1px, transparent 1.5px) 0 0 / 70px 70px,
    radial-gradient(60% 100% at 80% 0%, rgba(233, 196, 106, 0.22), transparent 70%),
    linear-gradient(160deg, #0B1838, #15275A);
  color: #FFFFFF;
  font-family: var(--ft-sans);
  text-align: start;
}
.ft-slide::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 14%;
  background: radial-gradient(60% 120% at 30% 100%, #FFFFFF 60%, transparent 61%), radial-gradient(50% 120% at 85% 100%, #EAF0FF 60%, transparent 61%);
}
.ft-slide__copy { position: relative; z-index: 2; display: grid; gap: clamp(4px, 0.8vw, 12px); justify-items: start; }
.ft-slide__kicker { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; color: var(--ft-mute); font: 700 clamp(0.6rem, 0.9vw, 0.8rem)/1.2 var(--ft-sans); letter-spacing: 0.18em; text-transform: uppercase; }
.ft-slide__kicker span:first-child { color: var(--ft-gold); }
.ft-slide__name { margin: 0; font: italic 700 clamp(1.4rem, 3.6vw, 3.8rem)/1 var(--ft-display); }
.ft-slide__from { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0; }
.ft-slide__from small { color: var(--ft-mute); font: 600 clamp(0.7rem, 1vw, 0.95rem)/1 var(--ft-sans); letter-spacing: 0.1em; text-transform: uppercase; }
.ft-slide__from b { color: var(--ft-gold); font: 800 clamp(1.4rem, 3vw, 3rem)/1 var(--ft-display); unicode-bidi: isolate; }
.ft-slide__cta { display: inline-flex; gap: 10px; margin-top: 6px; padding: clamp(8px, 0.9vw, 14px) clamp(14px, 1.6vw, 24px); border-radius: 999px; background: var(--ft-red); color: #FFFFFF; font: 700 clamp(0.62rem, 0.85vw, 0.8rem)/1 var(--ft-sans); letter-spacing: 0.14em; text-transform: uppercase; }
.ft-slide__garland { position: relative; z-index: 1; align-self: stretch; }
.ft-slide__string { position: absolute; inset: 4% 0 auto; width: 100%; height: 26%; }
.ft-slide__photo {
  position: absolute;
  top: calc(14% + (var(--j) - 1) * (var(--j) - 1) * -6% + 8%);
  inset-inline-start: calc(4% + var(--j) * 32%);
  width: 28%;
  aspect-ratio: 0.82;
  padding: 6% 2% 12%;
  background: #FFFFFF;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9);
  transform: rotate(calc((var(--j) - 1) * 7deg));
  transform-origin: 50% -10%;
  animation: ft-swing 4s ease-in-out infinite;
  animation-delay: calc(var(--j) * -1.3s);
}
.ft-slide__photo::before { content: ""; position: absolute; top: -10px; left: calc(50% - 5px); width: 10px; height: 22px; border-radius: 2px; background: var(--ft-red); }
.ft-slide__photo img { width: 100%; height: 100%; object-fit: contain; }
.ft-slide__num { position: absolute; inset-inline-end: 2%; bottom: 10%; z-index: 0; color: transparent; font: italic 800 clamp(4rem, 12vw, 12rem)/1 var(--ft-display); -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16); }
@media (max-width: 640px) {
  .ft-slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; aspect-ratio: 4 / 5; align-items: start; }
  .ft-slide__garland { min-height: 55%; }
}

/* 7 · Jeu « La Hotte du Père Noël » ----------------------------------------- */
.ft-game {
  width: min(420px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 0;
  border: 2px solid var(--ft-gold);
  border-radius: 20px;
  background: var(--ft-night);
  color: #FFFFFF;
  font-family: var(--ft-sans);
}
.ft-game::backdrop { background: rgba(4, 9, 26, 0.82); backdrop-filter: blur(4px); }
.ft-game__frame { display: grid; }
.ft-game__bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--ft-line); }
.ft-game__title { margin: 0; font: italic 700 1.3rem/1 var(--ft-display); color: #FFFFFF; }
.ft-game__close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #FFFFFF; font-size: 1.2rem; cursor: pointer; }
.ft-game__close:hover { background: rgba(255, 255, 255, 0.1); }
.ft-game__stage { position: relative; }
.ft-game__canvas { display: block; width: 100%; height: auto; touch-action: none; }
.ft-game__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  overflow: auto;
  background: rgba(7, 16, 42, 0.88);
  text-align: center;
}
.ft-game__overlay[hidden] { display: none; }
.ft-game__overlay h3 { margin: 0; color: #FFFFFF; font: italic 700 1.7rem/1.1 var(--ft-display); }
.ft-game__overlay p { margin: 0; color: var(--ft-mute); font-size: 0.92rem; line-height: 1.5; }
.ft-game__big { color: var(--ft-gold) !important; font: italic 800 3.4rem/1 var(--ft-display) !important; }
.ft-game__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ft-game__bag { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ft-game__bag a { display: block; width: 60px; height: 60px; padding: 4px; border-radius: 10px; background: #FFFFFF; }
.ft-game__bag img { width: 100%; height: 100%; object-fit: contain; }
.ft-game__code { padding: 10px 18px; border: 2px dashed var(--ft-gold); border-radius: 10px; color: #FFFFFF !important; font: 800 1.4rem/1 var(--ft-sans) !important; letter-spacing: 0.12em; }

/* Animations ----------------------------------------------------------------- */
@keyframes ft-marquee { to { transform: translateX(-50%); } }
@keyframes ft-aurora { from { transform: translateX(-4%) skewX(-6deg); opacity: 0.7; } to { transform: translateX(4%) skewX(6deg); opacity: 1; } }
@keyframes ft-twinkle { 0%, 100% { opacity: 1; } 45% { opacity: 0.55; } 50% { opacity: 1; } 70% { opacity: 0.8; } }
@keyframes ft-fly {
  0% { transform: translate(-60vw, 30px) rotate(-4deg); }
  55% { transform: translate(55vw, -20px) rotate(-2deg); }
  100% { transform: translate(130vw, -60px) rotate(-6deg); }
}
@keyframes ft-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes ft-gallop-body { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-5px) rotate(-3deg); } }
@keyframes ft-leg { 0%, 100% { transform: rotate(22deg); } 50% { transform: rotate(-26deg); } }
@keyframes ft-nose { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes ft-drop {
  0% { opacity: 0; transform: translateY(-120%) rotate(-12deg) scaleY(1.1); }
  60% { opacity: 1; transform: translateY(6%) rotate(2deg) scaleY(0.88); }
  100% { opacity: 1; transform: none; }
}
@keyframes ft-shake {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-12deg) translateX(-8px); }
  40% { transform: rotate(10deg) translateX(8px); }
  60% { transform: rotate(-7deg); }
  80% { transform: rotate(4deg); }
}
@keyframes ft-pulse { 0%, 100% { box-shadow: 0 0 0 3px var(--ft-gold), 0 0 24px 4px rgba(233, 196, 106, 0.45); } 50% { box-shadow: 0 0 0 3px var(--ft-gold), 0 0 44px 12px rgba(233, 196, 106, 0.7); } }
@keyframes ft-nope { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes ft-swing { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 991px) {
  .ft-hero__moon { inset-inline-start: auto; inset-inline-end: 6%; top: 3%; width: 80px; }
  .ft-hero__grid { grid-template-columns: 1fr; padding-top: 90px; text-align: start; }
  .ft-globe { justify-self: center; margin-top: 10px; }
  .ft-advent__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ft-door:nth-child(11n + 5) { grid-column: auto; aspect-ratio: 1; }
  .ft-gifts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-flight { width: 300px; }
}
@media (max-width: 480px) {
  .ft-advent__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft-door:nth-child(7n + 3) { grid-row: auto; aspect-ratio: 1; }
}

/* Mouvement réduit, mode calme ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ft-ticker__track,
  .ft-hero__aurora,
  .ft-win,
  .ft-flight,
  .ft-flight__bob,
  .ft-deer,
  .ft-deer__leg,
  .ft-deer__nose,
  .ft-door.is-magic .ft-door__inside::before,
  .ft-door.is-magic .ft-door__inside::after,
  .ft-door.is-magic .ft-door__img,
  .ft-door.is-magic .ft-door__name,
  .ft-door.is-magic .ft-door__price,
  .ft-garland i,
  .ft-forest__light,
  .ft-door.is-today .ft-door__leaf,
  .ft-slide__photo { animation: none !important; }
  .ft-ch { animation: none !important; opacity: 1; }
  .ft-flight { left: 10%; }
  .ft-door__leaf,
  .ft-gift__lid,
  .ft-gift__item { transition: none; }
}
html.lmdb-calm .ft-flight,
html.lmdb-calm .ft-flight__bob,
html.lmdb-calm .ft-deer,
html.lmdb-calm .ft-deer__leg { animation-play-state: paused; }

@media (forced-colors: active) {
  .ft-btn,
  .ft-tab,
  .ft-door__leaf { border: 1px solid ButtonText; }
}

/* Arabe : pas d'espacement de lettres, sens de lecture */
.lang-rtl .ft-ticker__item,
.lang-rtl .ft-hero__kicker,
.lang-rtl .ft-btn,
.lang-rtl .ft-slide__kicker,
.lang-rtl .ft-slide__cta,
.lang-rtl .ft-globe__lead,
.lang-rtl .ft-globe__unit { letter-spacing: 0; }
.lang-rtl .ft-ticker__track { animation-direction: reverse; }
.lang-rtl .ft-door__leaf { transform-origin: right center; }
.lang-rtl .ft-door.is-open .ft-door__leaf { transform: rotateY(108deg); }

/* 9 · Magie de Noël sur tout le site ---------------------------------------- */
/* Guirlande lumineuse sous l'en-tête */
.ft-garland {
  position: absolute;
  inset-inline: 0;
  bottom: -14px;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  height: 22px;
  padding: 0 12px;
  overflow: hidden;
  pointer-events: none;
}
.ft-garland::before {
  content: "";
  position: absolute;
  inset: -8px 0 auto;
  height: 16px;
  border-bottom: 2px solid #1E3B2E;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.ft-garland i {
  position: relative;
  top: 6px;
  width: 8px;
  height: 12px;
  border-radius: 50% 50% 45% 45%;
  background: var(--c, #FF3B4E);
  box-shadow: 0 0 8px 2px var(--c, #FF3B4E);
  animation: ft-bulb 1.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.ft-garland i::before { content: ""; position: absolute; top: -4px; left: 2px; width: 4px; height: 4px; border-radius: 1px; background: #2C3A33; }
@keyframes ft-bulb {
  0%, 100% { opacity: 1; filter: brightness(1.15); }
  50% { opacity: 0.35; filter: brightness(0.7); box-shadow: none; }
}
/* Forêt de sapins enneigés au-dessus du pied de page */
.ft-forest { position: relative; z-index: 1; height: clamp(90px, 12vw, 170px); margin-top: 24px; overflow: hidden; pointer-events: none; }
.ft-forest svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ft-forest__light { animation: ft-bulb 2.2s ease-in-out infinite; }
.ft-forest__star { transform-box: fill-box; transform-origin: center; animation: ft-star 3s ease-in-out infinite; }
@keyframes ft-star {
  0%, 100% { transform: scale(1) rotate(0); filter: drop-shadow(0 0 4px #FFD98A); }
  50% { transform: scale(1.25) rotate(18deg); filter: drop-shadow(0 0 12px #FFD98A); }
}
@media (prefers-reduced-motion: reduce) {
  .ft-forest__star { animation: none; }
}
