/* ═══════════════════════════════════════════════════════════════════════════
   Thèmes : nuit, et les deux habillages de saison.

   Chacun ne fait que redéfinir les variables de variables.css. Les sélecteurs
   portent `:root` devant l'attribut pour passer devant le `:root` de base quel
   que soit l'ordre de chargement.

   Résolution du thème :
     data-theme absent          → clair, ou nuit si le système la demande
     data-theme="light"|"dark"  → choix explicite de la personne
     data-season="…"            → habillage de saison, seulement si la personne
                                  n'a rien choisi (:not([data-theme]))
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Nuit ──────────────────────────────────────────────────────────────── */
:root[data-theme="dark"] {
  --bg:        #1a1016;
  --surface:   #241720;
  --surface2:  #2f1f29;
  --border:    rgba(240, 210, 225, 0.14);
  --border-strong: rgba(240, 210, 225, 0.28);

  --accent:    #d9b97c;
  --accent2:   #f0d9a8;
  --accent-bg: rgba(217, 185, 124, 0.12);
  --accent-strong: #e9cd96;
  --on-accent: #241720;

  --rose:      #3a2430;
  --rose-dark: #4a2f3d;

  --text:      #f3e4ec;
  --text-dim:  #c4a6b4;
  --text-muted:#9c8290;

  --danger:    #e8796a;
  --success:   #62bf88;
  --notif:     #f0637a;

  --nav-bg:    rgba(26, 16, 22, 0.88);
  --veil:      rgba(26, 16, 22, 0.82);
  --field:     rgba(255, 255, 255, 0.05);
  --row-hover: rgba(217, 185, 124, 0.07);
  --glow:      rgba(120, 60, 90, 0.35);
  --link-youtube: #ff4d4d;  /* le rouge sombre disparaîtrait sur ce fond */
  color-scheme: dark;
  --shadow-soft: 0 1px 4px rgba(0, 0, 0, 0.4);
  --shadow-pop:  0 18px 40px rgba(0, 0, 0, 0.55);
}

/* Sans choix explicite, on suit le réglage du système. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]):not([data-season]) {
    --bg:        #1a1016;
    --surface:   #241720;
    --surface2:  #2f1f29;
    --border:    rgba(240, 210, 225, 0.14);
    --border-strong: rgba(240, 210, 225, 0.28);
    --accent:    #d9b97c;
    --accent2:   #f0d9a8;
    --accent-bg: rgba(217, 185, 124, 0.12);
    --accent-strong: #e9cd96;
    --on-accent: #241720;
    --rose:      #3a2430;
    --rose-dark: #4a2f3d;
    --text:      #f3e4ec;
    --text-dim:  #c4a6b4;
    --text-muted:#9c8290;
    --danger:    #e8796a;
    --success:   #62bf88;
    --notif:     #f0637a;
    --nav-bg:    rgba(26, 16, 22, 0.88);
    --veil:      rgba(26, 16, 22, 0.82);
    --field:     rgba(255, 255, 255, 0.05);
    --row-hover: rgba(217, 185, 124, 0.07);
    --glow:      rgba(120, 60, 90, 0.35);
    --link-youtube: #ff4d4d;  /* le rouge sombre disparaîtrait sur ce fond */
  color-scheme: dark;
  --shadow-soft: 0 1px 4px rgba(0, 0, 0, 0.4);
    --shadow-pop:  0 18px 40px rgba(0, 0, 0, 0.55);
  }
}

/* ── Halloween ─────────────────────────────────────────────────────────── */
:root[data-season="halloween"]:not([data-theme]) {
  --bg:        #130d18;
  --surface:   #1d1425;
  --surface2:  #281b33;
  --border:    rgba(255, 180, 100, 0.16);
  --border-strong: rgba(255, 180, 100, 0.32);

  --accent:    #ff8c2b;
  --accent2:   #ffb366;
  --accent-bg: rgba(255, 140, 43, 0.12);
  --accent-strong: #ffa552;
  --on-accent: #1a1008;

  --rose:      #2a1b35;
  --rose-dark: #3a2547;

  --text:      #f6ecdf;
  --text-dim:  #c9b49d;
  --text-muted:#9a8873;

  --danger:    #ff7a60;
  --success:   #7ad18f;
  --notif:     #ff5c3d;

  --nav-bg:    rgba(19, 13, 24, 0.9);
  --veil:      rgba(19, 13, 24, 0.84);
  --field:     rgba(255, 255, 255, 0.05);
  --row-hover: rgba(255, 140, 43, 0.07);
  --glow:      rgba(255, 140, 43, 0.22);
  --link-youtube: #ff4d4d;  /* le rouge sombre disparaîtrait sur ce fond */
  color-scheme: dark;
  --shadow-soft: 0 1px 4px rgba(0, 0, 0, 0.5);
  --shadow-pop:  0 18px 40px rgba(0, 0, 0, 0.6);

  --decor:     #6b4a80;  /* silhouettes : chauves-souris, toiles */
}

/* ── Noël ──────────────────────────────────────────────────────────────── */
:root[data-season="christmas"]:not([data-theme]) {
  --bg:        #0d1626;
  --surface:   #152134;
  --surface2:  #1d2b42;
  --border:    rgba(200, 225, 255, 0.16);
  --border-strong: rgba(200, 225, 255, 0.3);

  --accent:    #e8c15c;
  --accent2:   #f5dc96;
  --accent-bg: rgba(232, 193, 92, 0.12);
  --accent-strong: #f2d279;
  --on-accent: #1a1405;

  --rose:      #1b2d45;
  --rose-dark: #243a56;

  --text:      #eef4fb;
  --text-dim:  #b8c8dd;
  --text-muted:#8696ab;

  --danger:    #ff8070;
  --success:   #6ed08c;
  --notif:     #e8415a;

  --nav-bg:    rgba(13, 22, 38, 0.9);
  --veil:      rgba(13, 22, 38, 0.84);
  --field:     rgba(255, 255, 255, 0.05);
  --row-hover: rgba(232, 193, 92, 0.07);
  --glow:      rgba(120, 170, 230, 0.2);
  --link-youtube: #ff4d4d;  /* le rouge sombre disparaîtrait sur ce fond */
  color-scheme: dark;
  --shadow-soft: 0 1px 4px rgba(0, 0, 0, 0.45);
  --shadow-pop:  0 18px 40px rgba(0, 0, 0, 0.55);

  --decor:     #dce9f7;  /* flocons */
}

/* ═══════════════════════════════════════════════════════════════════════════
   Décor animé. La couche est fixe, transparente aux clics, et sous la barre de
   navigation (z-index 100) comme sous les modales : elle ne gêne jamais.
   ═══════════════════════════════════════════════════════════════════════════ */
.season-layer {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  pointer-events: none;
}

/* Partir en thème clair ou nuit éteint le décor… à une exception près : la
   guirlande de la barre du haut reste accrochée, pour que la semaine se voie
   quel que soit le thème choisi. */
:root[data-theme] .season-layer,
:root[data-theme] .season-backdrop,
:root[data-theme] .season-ground,
:root[data-theme] .season-snowbank,
:root[data-theme] .season-candles { display: none; }

/* ── Chauves-souris ────────────────────────────────────────────────────── */
.season-bat {
  position: absolute;
  width: 34px;
  color: var(--decor);
  opacity: 0.75;
  will-change: transform;
  animation: bat-cross linear infinite;
}

.season-bat svg { display: block; width: 100%; height: auto; fill: currentColor; }

/* Les ailes battent sur le groupe intérieur, la trajectoire sur le parent :
   deux animations indépendantes évitent de recalculer un chemin complexe. */
.season-bat-wings {
  transform-origin: 50% 40%;
  animation: bat-flap 0.42s ease-in-out infinite;
}

@keyframes bat-cross {
  from { transform: translate3d(-12vw, 0, 0); }
  to   { transform: translate3d(112vw, 0, 0); }
}

@keyframes bat-flap {
  0%, 100% { transform: scaleY(1)    scaleX(1); }
  50%      { transform: scaleY(0.55) scaleX(1.08); }
}

/* Chaque chauve-souris a sa hauteur, sa taille, sa vitesse et son retard. */
/* Les chauves-souris sont numérotées à partir de la 3e : les deux toiles
   occupent les deux premières places du conteneur. */
.season-bat:nth-child(3)  { top:  8%; animation-duration: 19s; animation-delay:   0s; width: 30px; }
.season-bat:nth-child(4)  { top: 17%; animation-duration: 26s; animation-delay:  -6s; width: 20px; opacity: 0.5; }
.season-bat:nth-child(5)  { top: 31%; animation-duration: 22s; animation-delay: -13s; width: 38px; }
.season-bat:nth-child(6)  { top: 43%; animation-duration: 30s; animation-delay:  -3s; width: 24px; opacity: 0.55; }
.season-bat:nth-child(7)  { top: 55%; animation-duration: 17s; animation-delay: -17s; width: 28px; }
.season-bat:nth-child(8)  { top: 64%; animation-duration: 34s; animation-delay:  -9s; width: 44px; opacity: 0.45; }
.season-bat:nth-child(9)  { top: 73%; animation-duration: 21s; animation-delay: -24s; width: 22px; opacity: 0.6; }
.season-bat:nth-child(10) { top: 84%; animation-duration: 28s; animation-delay: -11s; width: 32px; }
.season-bat:nth-child(11) { top: 92%; animation-duration: 23s; animation-delay: -19s; width: 26px; opacity: 0.5; }

/* Un léger roulis vertical : une trajectoire plate se repère tout de suite. */
.season-bat svg { animation: bat-bob 3.4s ease-in-out infinite; }
.season-bat:nth-child(even) svg { animation-duration: 4.6s; animation-delay: -1.2s; }

@keyframes bat-bob {
  0%, 100% { transform: translateY(-7px); }
  50%      { transform: translateY(7px); }
}

/* ── Toiles d'araignée dans les angles ─────────────────────────────────── */
.season-web {
  position: absolute;
  top: 0;
  width: 128px;
  height: 128px;
  color: var(--decor);
  opacity: 0.5;
}

.season-web svg { display: block; width: 100%; height: 100%; }
.season-web.left { left: 0; }

/* La toile de droite est descendue en bas : la lune occupe l'angle haut-droit. */
.season-web.bottom-right {
  top: auto;
  bottom: 0;
  right: 0;
  transform: scale(-1, -1);
}


/* ── Lune, derrière le contenu de la page ──────────────────────────────── */
.season-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.season-moon {
  position: absolute;
  top: 9vh;
  right: 3.5vw;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #fff3d6 0%, #ffd98f 58%, #e8b35c 100%);
  opacity: 0.55;
  box-shadow: 0 0 60px 18px rgba(255, 190, 100, 0.18);
}

/* Deux cratères, pour que ce ne soit pas un simple disque. */
.season-moon::before,
.season-moon::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(190, 150, 90, 0.28);
}

.season-moon::before { width: 22px; height: 22px; top: 27%; left: 23%; }
.season-moon::after  { width: 14px; height: 14px; top: 57%; left: 58%; }

/* En décembre la lune vire au bleu glacé. */
:root[data-season="christmas"] .season-moon {
  background: radial-gradient(circle at 36% 32%, #ffffff 0%, #dceaff 58%, #a8c6e8 100%);
  box-shadow: 0 0 60px 18px rgba(190, 220, 255, 0.2);
}

:root[data-season="christmas"] .season-moon::before,
:root[data-season="christmas"] .season-moon::after {
  background: rgba(140, 170, 205, 0.3);
}

/* ── Fantômes ──────────────────────────────────────────────────────────── */
.season-ghost {
  position: absolute;
  bottom: -14vh;
  color: #e8dcc8;
  opacity: 0;
  will-change: transform, opacity;
  animation: ghost-rise linear infinite;
}

.season-ghost svg { display: block; width: 100%; height: auto; fill: currentColor; }
.season-ghost-face { fill: var(--bg); }

/* Ils montent, ondulent, et s'effacent avant le haut de l'écran. */
@keyframes ghost-rise {
  0%        { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0; }
  12%       { opacity: 0.5; }
  50%       { transform: translate3d(22px, -58vh, 0) scale(1); opacity: 0.4; }
  88%       { opacity: 0.35; }
  100%      { transform: translate3d(-10px, -118vh, 0) scale(1.05); opacity: 0; }
}

.season-ghost:nth-child(12) { left: 14%; width: 44px; animation-duration: 23s; animation-delay:  -2s; }
.season-ghost:nth-child(13) { left: 58%; width: 34px; animation-duration: 31s; animation-delay: -14s; }
.season-ghost:nth-child(14) { left: 82%; width: 52px; animation-duration: 27s; animation-delay: -21s; }

/* ── La sorcière ───────────────────────────────────────────────────────── */
.season-witch {
  position: absolute;
  top: 24%;
  width: 150px;
  /* Une silhouette presque noire se confondrait avec le ciel : même violet
     que les chauves-souris, un peu plus clair pour qu'elle se détache. */
  color: #7d5a94;
  opacity: 0.9;
  will-change: transform;
  /* Un passage toutes les 48 s : c'est un événement, pas un décor de fond.
     Le retard négatif la fait traverser une première fois peu après l'arrivée
     sur la page, au lieu de se faire attendre tout un cycle. */
  animation: witch-cross 48s linear infinite;
  animation-delay: -39s;
}

.season-witch svg { display: block; width: 100%; height: auto; fill: currentColor; }

.season-witch-body { animation: witch-sway 2.8s ease-in-out infinite; transform-origin: 50% 60%; }

/* Elle regarde vers la droite (manche du balai en avant, brindilles derrière) :
   elle doit donc traverser vers la droite, en prenant de la hauteur. */
@keyframes witch-cross {
  0%   { transform: translate3d(-20vw, 6vh, 0); }
  100% { transform: translate3d(112vw, -9vh, 0); }
}

@keyframes witch-sway {
  0%, 100% { transform: rotate(-2.5deg); }
  50%      { transform: rotate(2.5deg); }
}

/* ── Araignées suspendues (archives) ───────────────────────────────────── */
.season-spider {
  position: absolute;
  top: 0;
  color: var(--decor);
  opacity: 0.8;
  will-change: transform;
  animation: spider-drop ease-in-out infinite alternate;
}

/* Le fil part du haut de l'écran et suit la bestiole. */
.season-spider::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 100vh;
  background: currentColor;
  opacity: 0.45;
}

.season-spider svg { display: block; width: 100%; height: auto; fill: currentColor; }

@keyframes spider-drop {
  from { transform: translate3d(0, 6vh, 0); }
  to   { transform: translate3d(0, 34vh, 0); }
}

/* 16e, 17e et 18e enfants : les toiles, chauves-souris, fantômes et la
   sorcière les précèdent. nth-of-type compterait aussi les toiles. */
.season-spider:nth-child(16) { left: 22%; width: 26px; animation-duration: 9s;  animation-delay: -2s; }
.season-spider:nth-child(17) { left: 67%; width: 34px; animation-duration: 13s; animation-delay: -6s; }
.season-spider:nth-child(18) { left: 88%; width: 22px; animation-duration: 11s; animation-delay: -9s; }

.season-web.bottom-left {
  top: auto;
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
}

/* ── Guirlande de la barre du haut ─────────────────────────────────────────
   Elle n'est pas dans .season-layer : elle reste accrochée même en thème
   clair ou nuit. Ses couleurs sont donc choisies pour tenir sur les trois
   fonds, sans dépendre de la palette d'Halloween. */
.season-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 101;
  pointer-events: none;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
}

.season-navbar::before {
  content: '';
  position: absolute;
  top: 2px;
  left: -2%;
  right: -2%;
  height: 14px;
  border-bottom: 2px solid rgba(210, 102, 26, 0.8);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.season-hang {
  position: relative;
  margin-top: 8px;
  transform-origin: 50% -8px;
  animation: hang-swing 3.6s ease-in-out infinite;
}

/* Chaque pendentif balance à son rythme, sinon l'ensemble fait métronome. */
.season-hang:nth-child(3n+1) { animation-duration: 3.2s; animation-delay: -0.4s; }
.season-hang:nth-child(3n+2) { animation-duration: 4.4s; animation-delay: -1.7s; }
.season-hang:nth-child(3n)   { animation-duration: 3.9s; animation-delay: -2.6s; }

@keyframes hang-swing {
  0%, 100% { transform: rotate(-7deg); }
  50%      { transform: rotate(7deg); }
}

/* Teintes choisies pour tenir à la fois sur le fond clair (#fdf6f9) et sur
   les fonds sombres : un orange trop vif disparaît sur le premier, un orange
   trop pâle sur les seconds. Chacune garde au moins 2,5:1 partout. */
.season-navbar svg { display: block; }
.season-hang-pumpkin { width: 19px; fill: #e07f28; }
.season-hang-bat     { width: 36px; fill: #d2661a; }
.season-hang-ghost   { width: 14px; fill: #d98b4a; }

/* Les yeux sont évidés dans une teinte sombre lisible sur les trois fonds. */
.season-hang-face { fill: #3d1f08; }

/* ── Champ de citrouilles au pied de la page du jour ───────────────────── */
.season-ground {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  z-index: 89;
  pointer-events: none;
}

/* Un emplacement du champ. Ses citrouilles se placent en pixels à l'intérieur,
   pas en pourcentage, pour que le paquet reste groupé à toutes les largeurs.
   La largeur explicite sert d'origine au miroir des paquets retournés. */
.season-patch {
  position: absolute;
  bottom: 0;
  --s: 1;  /* échelle de l'emplacement */
  width: calc(100px * var(--s));
  height: calc(56px * var(--s));
}

/* Toutes posées sur la même ligne de sol : la profondeur vient de la taille
   et du recouvrement, jamais d'un décalage vertical — c'est ce qui faisait
   flotter les unes et sortir les autres de l'écran. */
.season-pumpkin { position: absolute; bottom: 0; }
.season-pumpkin svg { display: block; width: 100%; height: auto; }
.season-pumpkin-body { fill: #e2741c; }
.season-pumpkin-stem { fill: #4e6b2f; }
.season-pumpkin-rib  { stroke: #8f3f0c; }

/* Les quatre places d'un paquet, de la plus grosse au fond à la plus petite
   devant. Un paquet d'une seule citrouille n'utilise que la première. */
.season-patch .season-pumpkin:nth-child(1) { width: calc(62px * var(--s)); left: calc(12px * var(--s)); z-index: 1; }
.season-patch .season-pumpkin:nth-child(2) { width: calc(38px * var(--s)); left: 0;                     z-index: 3; }
.season-patch .season-pumpkin:nth-child(3) { width: calc(46px * var(--s)); left: calc(40px * var(--s)); z-index: 2; }
.season-patch .season-pumpkin:nth-child(4) { width: calc(30px * var(--s)); left: calc(70px * var(--s)); z-index: 4; }

/* Le champ : chaque emplacement commence avant la fin du précédent, pour
   garnir le bas d'un bord à l'autre. Échelles irrégulières et quelques
   paquets retournés, pour qu'aucun ne soit la copie d'un autre. */
.season-patch:nth-child(1 ) { left:   0.0%; --s: 0.90; }
.season-patch:nth-child(2 ) { left:   6.0%; --s: 0.55; }
.season-patch:nth-child(3 ) { left:   9.5%; --s: 1.10; transform: scaleX(-1); }
.season-patch:nth-child(4 ) { left:  17.0%; --s: 0.70; }
.season-patch:nth-child(5 ) { left:  21.5%; --s: 0.50; }
.season-patch:nth-child(6 ) { left:  24.5%; --s: 1.00; }
.season-patch:nth-child(7 ) { left:  31.5%; --s: 0.65; transform: scaleX(-1); }
.season-patch:nth-child(8 ) { left:  35.5%; --s: 1.15; }
.season-patch:nth-child(9 ) { left:  44.0%; --s: 0.60; }
.season-patch:nth-child(10) { left:  47.5%; --s: 0.95; transform: scaleX(-1); }
.season-patch:nth-child(11) { left:  54.0%; --s: 0.75; }
.season-patch:nth-child(12) { left:  59.5%; --s: 1.05; }
.season-patch:nth-child(13) { left:  67.0%; --s: 0.60; transform: scaleX(-1); }
.season-patch:nth-child(14) { left:  71.0%; --s: 1.00; }
.season-patch:nth-child(15) { left:  78.5%; --s: 0.70; }
.season-patch:nth-child(16) { left:  83.0%; --s: 1.10; transform: scaleX(-1); }
.season-patch:nth-child(17) { left:  91.0%; --s: 0.65; }
.season-patch:nth-child(18) { left:  95.0%; --s: 0.50; }

/* La bougie vacille. Seule l'opacité est animée : un filtre recalculé à chaque
   image sur trente-deux citrouilles coûterait cher sur un téléphone. */
.season-pumpkin-face {
  fill: #ffd98a;
  filter: drop-shadow(0 0 3px #ffb347);
  animation: pumpkin-flicker 2.4s ease-in-out infinite;
}

@keyframes pumpkin-flicker {
  0%, 100% { opacity: 0.72; }
  35%      { opacity: 1; }
  62%      { opacity: 0.64; }
}

/* Rythmes décalés : sinon tout le champ clignote d'un seul bloc. */
.season-patch:nth-child(3n+1) .season-pumpkin-face { animation-duration: 3.1s; animation-delay: -0.8s; }
.season-patch:nth-child(3n+2) .season-pumpkin-face { animation-duration: 1.9s; animation-delay: -1.5s; }
.season-patch:nth-child(4n)   .season-pumpkin-face { animation-duration: 2.8s; animation-delay: -2.2s; }
.season-pumpkin:nth-child(2) .season-pumpkin-face { animation-delay: -1.1s; }
.season-pumpkin:nth-child(3) .season-pumpkin-face { animation-delay: -2.6s; }
.season-pumpkin:nth-child(4) .season-pumpkin-face { animation-delay: -0.4s; }

/* Sur petit écran, dix-huit emplacements se chevaucheraient : on en garde
   huit, plus petits, recalés pour garnir la largeur sans déborder. */
@media (max-width: 640px) {
  .season-patch:nth-child(2),
  .season-patch:nth-child(4),
  .season-patch:nth-child(5),
  .season-patch:nth-child(7),
  .season-patch:nth-child(9),
  .season-patch:nth-child(11),
  .season-patch:nth-child(13),
  .season-patch:nth-child(15),
  .season-patch:nth-child(17),
  .season-patch:nth-child(18) { display: none; }

  .season-patch:nth-child(1 ) { left:  0%; --s: 0.50; }
  .season-patch:nth-child(3 ) { left: 10%; --s: 0.55; }
  .season-patch:nth-child(6 ) { left: 23%; --s: 0.50; }
  .season-patch:nth-child(8 ) { left: 34%; --s: 0.55; }
  .season-patch:nth-child(10) { left: 48%; --s: 0.50; }
  .season-patch:nth-child(12) { left: 59%; --s: 0.55; }
  .season-patch:nth-child(14) { left: 73%; --s: 0.50; }
  .season-patch:nth-child(16) { left: 84%; --s: 0.50; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Noël. Chaque famille d'éléments a son conteneur dans le gabarit : les
   nth-child ci-dessous ne comptent que leurs voisins de la même famille.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Aurore boréale ────────────────────────────────────────────────────── */
.season-aurora {
  position: absolute;
  inset: 0 0 auto 0;
  height: 50vh;
}

/* Deux voiles flous qui dérivent lentement. Seuls transform et opacity
   bougent : le flou est calculé une fois, puis simplement déplacé. */
.season-aurora span {
  position: absolute;
  top: -4vh;
  left: -12vw;
  width: 72vw;
  height: 28vh;
  border-radius: 50%;
  background: linear-gradient(100deg, transparent 0%, rgba(90, 230, 170, 0.16) 32%,
                              rgba(110, 160, 255, 0.12) 64%, transparent 100%);
  filter: blur(38px);
  will-change: transform, opacity;
  animation: aurora-drift 22s ease-in-out infinite alternate;
}

.season-aurora span:nth-child(2) {
  top: 3vh;
  left: 40vw;
  width: 64vw;
  height: 22vh;
  background: linear-gradient(80deg, transparent 0%, rgba(170, 120, 255, 0.1) 38%,
                              rgba(80, 220, 190, 0.14) 70%, transparent 100%);
  animation-duration: 29s;
  animation-delay: -11s;
}

@keyframes aurora-drift {
  from { transform: translate3d(-4vw, 0, 0) rotate(-4deg) scaleY(0.85); opacity: 0.55; }
  to   { transform: translate3d(6vw, 3vh, 0) rotate(3deg) scaleY(1.1);  opacity: 1; }
}

/* ── Étoiles ───────────────────────────────────────────────────────────── */
.season-stars { position: absolute; inset: 0; }

.season-star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #eaf2ff;
  box-shadow: 0 0 4px 1px rgba(234, 242, 255, 0.5);
  animation: star-twinkle 4s ease-in-out infinite;
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50%      { opacity: 1;    transform: scale(1.25); }
}

.season-star:nth-child( 1)  { top:  7%; left:  6%; animation-delay: -0.3s; }
.season-star:nth-child( 2)  { top: 14%; left: 17%; animation-delay: -1.7s; width: 3px; height: 3px; }
.season-star:nth-child( 3)  { top:  5%; left: 29%; animation-delay: -2.9s; }
.season-star:nth-child( 4)  { top: 19%; left: 38%; animation-delay: -0.9s; }
.season-star:nth-child( 5)  { top:  9%; left: 47%; animation-delay: -3.4s; width: 3px; height: 3px; }
.season-star:nth-child( 6)  { top: 24%; left: 56%; animation-delay: -1.2s; }
.season-star:nth-child( 7)  { top:  6%; left: 64%; animation-delay: -2.2s; }
.season-star:nth-child( 8)  { top: 17%; left: 73%; animation-delay: -0.6s; }
.season-star:nth-child( 9) { top: 28%; left: 11%; animation-delay: -3.8s; }
.season-star:nth-child(10) { top: 33%; left: 24%; animation-delay: -1.4s; }
.season-star:nth-child(11) { top: 12%; left: 86%; animation-delay: -2.6s; width: 3px; height: 3px; }
.season-star:nth-child(12) { top: 31%; left: 92%; animation-delay: -0.2s; }
.season-star:nth-child(13) { top: 40%; left:  4%; animation-delay: -3.1s; }
.season-star:nth-child(14) { top: 37%; left: 68%; animation-delay: -1.9s; }
.season-star:nth-child(15) { top: 45%; left: 81%; animation-delay: -2.4s; }
.season-star:nth-child(16) { top: 22%; left: 97%; animation-delay: -0.8s; }
.season-star:nth-child(17) { top: 52%; left: 12%; animation-delay: -0.5s; }
.season-star:nth-child(18) { top: 58%; left: 34%; animation-delay: -1.1s; }
.season-star:nth-child(19) { top: 44%; left: 50%; animation-delay: -1.7s; }
.season-star:nth-child(20) { top: 21%; left: 79%; animation-delay: -2.3s; }
.season-star:nth-child(21) { top: 48%; left: 93%; animation-delay: -2.9s; }
.season-star:nth-child(22) { top:  3%; left: 41%; animation-delay: -3.5s; }

/* ── Étoile filante : un trait, une fois toutes les quinze secondes ────── */
.season-shooting {
  position: absolute;
  top: 12vh;
  left: 14vw;
  width: 130px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));
  opacity: 0;
  animation: shooting 15s linear infinite;
  animation-delay: -9s;
}

@keyframes shooting {
  0%   { transform: rotate(16deg) translateX(0);    opacity: 0; }
  1%   { opacity: 1; }
  6%   { transform: rotate(16deg) translateX(46vw); opacity: 0; }
  100% { transform: rotate(16deg) translateX(46vw); opacity: 0; }
}

/* ── Le traîneau en ombre chinoise, devant la lune ─────────────────────────
   Assombri jusqu'au noir : invisible sur le ciel, il ne se découpe que là où
   il croise la lune. */
.season-sleigh-far {
  position: absolute;
  top: calc(9vh + 44px);
  left: 0;
  width: 96px;
  filter: brightness(0);
  opacity: 0.6;
  will-change: transform;
  animation: sleigh-far 64s linear infinite;
  animation-delay: -18s;
}

.season-sleigh-far svg { display: block; width: 100%; height: auto; }

@keyframes sleigh-far {
  from { transform: translate3d(-12vw, 2vh, 0); }
  to   { transform: translate3d(104vw, -3vh, 0); }
}

/* ── Village enneigé au loin ───────────────────────────────────────────── */
.season-village {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(130px, 24vh, 230px);
}

.season-village svg { display: block; width: 100%; height: 100%; }

.season-hill-far  { fill: #17263d; }
.season-hill-near { fill: #22354f; }
.season-pine-far  { fill: #111d30; }
.season-pine-near { fill: #0f1a2b; }

.season-house-wall    { fill: #2c2836; }
.season-house-roof,
.season-house-chimney { fill: #45303a; }
.season-house-snow    { fill: #dce9f7; }
.season-house-door    { fill: #1b1621; }

.season-house-window {
  fill: #ffcf6b;
  animation: window-glow 7s ease-in-out infinite;
}

.season-house-window-1 { animation-delay: -2.4s; }
.season-house-window-2 { animation-delay: -4.8s; }

@keyframes window-glow {
  0%, 100% { opacity: 0.95; }
  50%      { opacity: 0.65; }
}

/* La fumée des cheminées : trois bouffées qui montent et s'effacent. */
.season-smoke circle {
  fill: rgba(205, 220, 240, 0.4);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: smoke-rise 6s ease-out infinite;
}

.season-smoke circle:nth-child(2) { animation-delay: -2s; }
.season-smoke circle:nth-child(3) { animation-delay: -4s; }

@keyframes smoke-rise {
  0%   { transform: translate(0, 0) scale(0.5);       opacity: 0; }
  15%  { opacity: 0.8; }
  100% { transform: translate(14px, -42px) scale(2.3); opacity: 0; }
}

/* ── Stalactites sous la barre du haut ─────────────────────────────────── */
.season-icicles {
  position: absolute;
  /* Sous le bord de la barre du haut : à 0 elles passeraient derrière elle,
     puisque la barre est au-dessus de la couche de décor. */
  top: 82px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 1%;
}

.season-icicle {
  width: 9px;
  background: linear-gradient(to bottom, rgba(220, 238, 255, 0.85), rgba(190, 220, 250, 0.15));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* Hauteurs irrégulières : une frise régulière ferait peigne. */
.season-icicle:nth-child(4n+1) { height: 22px; }
.season-icicle:nth-child(4n+2) { height: 11px; width: 7px; }
.season-icicle:nth-child(4n+3) { height: 31px; width: 11px; }
.season-icicle:nth-child(4n)   { height: 16px; }
.season-icicle:nth-child(5n)   { height: 26px; }
.season-icicle:nth-child(7n)   { height:  9px; width: 6px; }

/* ── Neige ─────────────────────────────────────────────────────────────── */
.season-snow,
.season-powder { position: absolute; inset: 0; }

.season-flake {
  position: absolute;
  top: -6vh;
  color: var(--decor);
  opacity: 0.75;
  will-change: transform;
  animation: flake-fall linear infinite;
}

.season-flake svg { display: block; width: 100%; height: auto; fill: currentColor; }

@keyframes flake-fall {
  from { transform: translate3d(0, -10vh, 0) rotate(0deg); }
  to   { transform: translate3d(var(--drift, 2vw), 108vh, 0) rotate(260deg); }
}

.season-flake:nth-child( 1) { left:  2.0%; width: 13px; animation-duration: 13s; animation-delay: -13s; --drift:  4vw; }
.season-flake:nth-child( 2) { left:  6.6%; width:  8px; animation-duration: 22s; animation-delay:  -4s; --drift: -2vw; }
.season-flake:nth-child( 3) { left: 11.1%; width: 10px; animation-duration: 10s; animation-delay:  -3s; --drift:  2vw; opacity: 0.7; }
.season-flake:nth-child( 4) { left: 15.7%; width:  8px; animation-duration: 15s; animation-delay:  -3s; --drift:  3vw; opacity: 0.7; }
.season-flake:nth-child( 5) { left: 20.3%; width:  7px; animation-duration: 24s; animation-delay:  -4s; --drift: -3vw; }
.season-flake:nth-child( 6) { left: 24.9%; width: 14px; animation-duration: 10s; animation-delay:  -8s; --drift: -4vw; opacity: 0.5; }
.season-flake:nth-child( 7) { left: 29.4%; width: 12px; animation-duration: 19s; animation-delay:  -5s; --drift:  3vw; }
.season-flake:nth-child( 8) { left: 34.0%; width: 12px; animation-duration: 22s; animation-delay:  -6s; --drift: -4vw; opacity: 0.5; }
.season-flake:nth-child( 9) { left: 38.6%; width: 13px; animation-duration: 12s; animation-delay: -18s; --drift:  4vw; }
.season-flake:nth-child(10) { left: 43.1%; width:  7px; animation-duration: 24s; animation-delay:  -7s; --drift:  2vw; opacity: 0.7; }
.season-flake:nth-child(11) { left: 47.7%; width: 13px; animation-duration: 21s; animation-delay: -19s; --drift:  2vw; opacity: 0.6; }
.season-flake:nth-child(12) { left: 52.3%; width: 12px; animation-duration: 15s; animation-delay:  -6s; --drift:  4vw; opacity: 0.5; }
.season-flake:nth-child(13) { left: 56.9%; width:  8px; animation-duration: 24s; animation-delay: -10s; --drift:  3vw; opacity: 0.7; }
.season-flake:nth-child(14) { left: 61.4%; width: 13px; animation-duration: 21s; animation-delay: -10s; --drift:  3vw; }
.season-flake:nth-child(15) { left: 66.0%; width:  8px; animation-duration: 22s; animation-delay: -14s; --drift: -3vw; opacity: 0.6; }
.season-flake:nth-child(16) { left: 70.6%; width:  9px; animation-duration: 21s; animation-delay: -14s; --drift: -4vw; }
.season-flake:nth-child(17) { left: 75.1%; width: 13px; animation-duration: 18s; animation-delay: -12s; --drift:  3vw; opacity: 0.7; }
.season-flake:nth-child(18) { left: 79.7%; width: 16px; animation-duration: 12s; animation-delay:  -3s; --drift: -2vw; opacity: 0.7; }
.season-flake:nth-child(19) { left: 84.3%; width:  8px; animation-duration: 10s; animation-delay: -10s; --drift:  4vw; opacity: 0.7; }
.season-flake:nth-child(20) { left: 88.9%; width: 12px; animation-duration: 19s; animation-delay: -12s; --drift: -4vw; opacity: 0.7; }
.season-flake:nth-child(21) { left: 93.4%; width: 13px; animation-duration: 13s; animation-delay: -20s; --drift: -4vw; opacity: 0.7; }
.season-flake:nth-child(22) { left: 98.0%; width:  7px; animation-duration: 15s; animation-delay: -10s; --drift: -3vw; opacity: 0.5; }

/* La poudreuse : de simples points, plus nombreux, qui tombent plus lentement
   que les flocons et donnent de la profondeur à la chute. */
.season-powder span {
  position: absolute;
  top: -4vh;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #eef6ff;
  opacity: 0.55;
  will-change: transform;
  animation: flake-fall linear infinite;
}

.season-powder span:nth-child( 1) { left:  0.9%; width: 2px; height: 2px; animation-duration: 22s; animation-delay: -9s; --drift:  3vw; opacity: 0.70; }
.season-powder span:nth-child( 2) { left:  3.4%; width: 3px; height: 3px; animation-duration: 17s; animation-delay: -9s; --drift:  2vw; opacity: 0.70; }
.season-powder span:nth-child( 3) { left:  6.9%; width: 2px; height: 2px; animation-duration: 22s; animation-delay: -16s; --drift:  2vw; opacity: 0.55; }
.season-powder span:nth-child( 4) { left: 12.1%; width: 3px; height: 3px; animation-duration: 27s; animation-delay: -16s; --drift:  1vw; opacity: 0.35; }
.season-powder span:nth-child( 5) { left: 15.5%; width: 5px; height: 5px; animation-duration: 19s; animation-delay: -19s; --drift:  2vw; opacity: 0.55; }
.season-powder span:nth-child( 6) { left: 17.7%; width: 3px; height: 3px; animation-duration: 21s; animation-delay: -19s; --drift:  1vw; opacity: 0.35; }
.season-powder span:nth-child( 7) { left: 20.2%; width: 4px; height: 4px; animation-duration: 18s; animation-delay: -16s; --drift:  3vw; opacity: 0.45; }
.season-powder span:nth-child( 8) { left: 25.1%; width: 2px; height: 2px; animation-duration: 21s; animation-delay: -2s; --drift:  2vw; opacity: 0.45; }
.season-powder span:nth-child( 9) { left: 28.6%; width: 4px; height: 4px; animation-duration: 30s; animation-delay: -13s; --drift:  1vw; opacity: 0.70; }
.season-powder span:nth-child(10) { left: 31.1%; width: 4px; height: 4px; animation-duration: 25s; animation-delay: -5s; --drift: -3vw; opacity: 0.70; }
.season-powder span:nth-child(11) { left: 35.4%; width: 4px; height: 4px; animation-duration: 30s; animation-delay: -0s; --drift:  1vw; opacity: 0.45; }
.season-powder span:nth-child(12) { left: 37.7%; width: 4px; height: 4px; animation-duration: 27s; animation-delay: -2s; --drift: -2vw; opacity: 0.35; }
.season-powder span:nth-child(13) { left: 40.2%; width: 5px; height: 5px; animation-duration: 21s; animation-delay: -20s; --drift: -2vw; opacity: 0.45; }
.season-powder span:nth-child(14) { left: 45.6%; width: 3px; height: 3px; animation-duration: 22s; animation-delay: -5s; --drift:  3vw; opacity: 0.70; }
.season-powder span:nth-child(15) { left: 47.5%; width: 3px; height: 3px; animation-duration: 31s; animation-delay: -31s; --drift:  1vw; opacity: 0.70; }
.season-powder span:nth-child(16) { left: 51.7%; width: 4px; height: 4px; animation-duration: 28s; animation-delay: -11s; --drift:  2vw; opacity: 0.35; }
.season-powder span:nth-child(17) { left: 55.5%; width: 3px; height: 3px; animation-duration: 29s; animation-delay: -10s; --drift: -3vw; opacity: 0.45; }
.season-powder span:nth-child(18) { left: 58.0%; width: 3px; height: 3px; animation-duration: 24s; animation-delay: -16s; --drift: -3vw; opacity: 0.55; }
.season-powder span:nth-child(19) { left: 61.4%; width: 2px; height: 2px; animation-duration: 17s; animation-delay: -16s; --drift: -2vw; opacity: 0.35; }
.season-powder span:nth-child(20) { left: 63.9%; width: 3px; height: 3px; animation-duration: 26s; animation-delay: -2s; --drift: -3vw; opacity: 0.70; }
.season-powder span:nth-child(21) { left: 68.3%; width: 4px; height: 4px; animation-duration: 20s; animation-delay: -17s; --drift: -1vw; opacity: 0.45; }
.season-powder span:nth-child(22) { left: 70.6%; width: 2px; height: 2px; animation-duration: 18s; animation-delay: -18s; --drift: -2vw; opacity: 0.45; }
.season-powder span:nth-child(23) { left: 73.4%; width: 4px; height: 4px; animation-duration: 16s; animation-delay: -10s; --drift:  3vw; opacity: 0.45; }
.season-powder span:nth-child(24) { left: 77.8%; width: 3px; height: 3px; animation-duration: 24s; animation-delay: -2s; --drift:  3vw; opacity: 0.35; }
.season-powder span:nth-child(25) { left: 81.6%; width: 3px; height: 3px; animation-duration: 16s; animation-delay: -14s; --drift:  2vw; opacity: 0.55; }
.season-powder span:nth-child(26) { left: 85.2%; width: 3px; height: 3px; animation-duration: 25s; animation-delay: -8s; --drift: -1vw; opacity: 0.35; }
.season-powder span:nth-child(27) { left: 88.7%; width: 3px; height: 3px; animation-duration: 29s; animation-delay: -1s; --drift:  2vw; opacity: 0.55; }
.season-powder span:nth-child(28) { left: 89.9%; width: 3px; height: 3px; animation-duration: 18s; animation-delay: -4s; --drift: -1vw; opacity: 0.70; }
.season-powder span:nth-child(29) { left: 95.6%; width: 3px; height: 3px; animation-duration: 31s; animation-delay: -28s; --drift: -1vw; opacity: 0.35; }
.season-powder span:nth-child(30) { left: 97.3%; width: 3px; height: 3px; animation-duration: 25s; animation-delay: -24s; --drift: -2vw; opacity: 0.55; }

/* ── Le traîneau du père Noël ──────────────────────────────────────────── */
.season-sleigh {
  position: absolute;
  top: 15%;
  width: 340px;
  will-change: transform;
  /* Un passage toutes les 52 s, lancé peu après l'arrivée sur la page. */
  animation: sleigh-cross 52s linear infinite;
  animation-delay: -43s;
}

.season-sleigh svg { display: block; width: 100%; height: auto; }

/* Le tangage de l'attelage, indépendant de sa trajectoire. */
.season-sleigh-body {
  transform-origin: 50% 60%;
  animation: sleigh-sway 3.2s ease-in-out infinite;
}

@keyframes sleigh-cross {
  0%   { transform: translate3d(-34vw, 7vh, 0); }
  100% { transform: translate3d(116vw, -10vh, 0); }
}

@keyframes sleigh-sway {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}

.season-sleigh-wood   { fill: #c8352b; }
.season-sleigh-trim   { stroke: #f0cf72; stroke-width: 1.4; }
.season-sleigh-gold   { fill: #e8c15c; }
.season-sleigh-reins  { stroke: #e8c15c; stroke-width: 0.9; opacity: 0.85; }
.season-sleigh-sack   { fill: #8a5a32; }
.season-sleigh-gift-a { fill: #2e9d5f; }
.season-sleigh-gift-b { fill: #5a92d0; }
.season-sleigh-gift-c { fill: #d0679a; }

.season-santa-coat   { fill: #e0402f; }
.season-santa-fur    { fill: #f8f3ec; }
.season-santa-skin   { fill: #f2c9a5; }
.season-santa-eye    { fill: #2b2420; }
.season-santa-cheek  { fill: #e88f86; }
.season-santa-mitten { fill: #2e7d4f; }

.season-deer-coat     { fill: #a87245; }
.season-deer-legs     { fill: #94623a; }
.season-deer-back .season-deer-coat,
.season-deer-back .season-deer-legs { fill: #7d5434; }
.season-deer-tail     { fill: #f1e7d8; }
.season-deer-antlers  { stroke: #e2cfae; stroke-width: 1.6; }
.season-deer-collar   { stroke: #c8352b; stroke-width: 2.2; }
.season-deer-bell     { fill: #f0cf72; }
.season-deer-eye      { fill: #2a1a10; }
.season-deer-nose     { fill: #ff3b3b; }

/* Le nez de Rudolph, qui éclaire la route. */
.season-deer-glow {
  fill: rgba(255, 80, 80, 0.4);
  transform-box: fill-box;
  transform-origin: center;
  animation: nose-glow 1.4s ease-in-out infinite;
}

@keyframes nose-glow {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.3); }
}

/* Le galop : chaque renne monte et descend, et ses pattes battent autour de
   la hanche ou de l'épaule. Décalés d'un renne à l'autre. */
.season-deer { animation: deer-gallop 0.7s ease-in-out infinite alternate; }

@keyframes deer-gallop {
  from { transform: translateY(-1.6px); }
  to   { transform: translateY(1.6px); }
}

.season-deer-legs {
  transform-box: fill-box;
  animation: deer-legs 0.35s ease-in-out infinite alternate;
}

.season-deer-legs-front { transform-origin: 0 0; }
.season-deer-legs-back  { transform-origin: 100% 0; animation-delay: -0.17s; }

@keyframes deer-legs {
  from { transform: rotate(-12deg); }
  to   { transform: rotate(10deg); }
}

.season-sleigh-body > g:nth-child(3) .season-deer { animation-delay: -0.35s; }
.season-sleigh-body > g:nth-child(4) .season-deer { animation-delay: -0.18s; }
.season-sleigh-body > g:nth-child(5) .season-deer { animation-delay: -0.52s; }
.season-sleigh-body > g:nth-child(6) .season-deer { animation-delay: -0.26s; }

/* La poussière d'étoiles derrière le traîneau. */
.season-sleigh-trail path {
  fill: #fff3c4;
  animation: trail-twinkle 1.2s ease-in-out infinite;
}

.season-sleigh-trail path:nth-child(2n) { animation-delay: -0.4s; }
.season-sleigh-trail path:nth-child(3n) { animation-delay: -0.8s; }

@keyframes trail-twinkle {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 1; }
}

/* ── Décorations suspendues (archives) ─────────────────────────────────── */
.season-ornaments { position: absolute; inset: 0; }

.season-ornament {
  position: absolute;
  top: 0;
  width: 26px;
  will-change: transform;
  transform-origin: 50% -40vh;
  animation: ornament-swing ease-in-out infinite alternate;
}

/* Le fil part du haut de l'écran et suit la décoration. */
.season-ornament::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 100vh;
  background: rgba(220, 235, 255, 0.45);
}

.season-ornament svg { display: block; width: 100%; height: auto; }

@keyframes ornament-swing {
  from { transform: rotate(-2.5deg); }
  to   { transform: rotate(2.5deg); }
}

.season-ornament-cap  { fill: #c8a24a; }
.season-bauble-shine  { fill: rgba(255, 255, 255, 0.55); }
.season-bauble-band   { stroke: rgba(255, 240, 200, 0.75); stroke-width: 1.4; }
.season-bauble-dots   { fill: rgba(255, 240, 200, 0.8); }

.season-ornament-bauble-a .season-bauble-ball { fill: #c0392b; }
.season-ornament-bauble-b .season-bauble-ball { fill: #2e7d4f; }
.season-ornament-bauble-c .season-bauble-ball { fill: #e8c15c; }
.season-ornament-bauble-d .season-bauble-ball { fill: #4a7fb5; }
.season-ornament-bauble-e .season-bauble-ball { fill: #8e5bb5; }
.season-ornament-bauble-c .season-bauble-band,
.season-ornament-bauble-c .season-bauble-dots { stroke: #a8432f; fill: #a8432f; }
.season-ornament-bauble-c .season-bauble-band { fill: none; }

.season-ornament-star {
  fill: #f0cf72;
  filter: drop-shadow(0 0 4px rgba(240, 207, 114, 0.7));
}

.season-bell-body    { fill: #e8c15c; }
.season-bell-shine   { fill: rgba(255, 255, 255, 0.55); }
.season-bell-clapper { fill: #a9812c; }
.season-bell-bow     { fill: #c0392b; }

/* Le sucre d'orge : un trait blanc, puis le même en rouge, en pointillé. */
.season-cane-white { stroke: #f6f1ea; stroke-width: 4.4; }
.season-cane-red   { stroke: #d33a3a; stroke-width: 4.4; stroke-dasharray: 3 3.4; stroke-linecap: butt; }

/* Chacune sa place, sa longueur de fil et son balancement. */
.season-ornament:nth-child(1)  { left:  7%; top: 14vh; width: 28px; animation-duration: 4.2s; animation-delay: -1.0s; }
.season-ornament:nth-child(2)  { left: 16%; top: 24vh; width: 24px; animation-duration: 5.0s; animation-delay: -2.2s; }
.season-ornament:nth-child(3)  { left: 25%; top:  9vh; width: 12px; animation-duration: 3.8s; animation-delay: -0.4s; }
.season-ornament:nth-child(4)  { left: 36%; top: 18vh; width: 30px; animation-duration: 5.1s; animation-delay: -3.0s; }
.season-ornament:nth-child(5)  { left: 47%; top: 11vh; width: 28px; animation-duration: 3.6s; animation-delay: -1.6s; }
.season-ornament:nth-child(6)  { left: 58%; top: 22vh; width: 24px; animation-duration: 4.6s; animation-delay: -2.8s; }
.season-ornament:nth-child(7)  { left: 67%; top:  8vh; width: 22px; animation-duration: 4.0s; animation-delay: -0.8s; }
.season-ornament:nth-child(8)  { left: 76%; top: 17vh; width: 26px; animation-duration: 4.8s; animation-delay: -4.0s; }
.season-ornament:nth-child(9)  { left: 85%; top: 25vh; width: 12px; animation-duration: 3.9s; animation-delay: -1.9s; }
.season-ornament:nth-child(10) { left: 94%; top: 12vh; width: 24px; animation-duration: 4.4s; animation-delay: -3.3s; }

/* ── Talus de neige au pied de la page ─────────────────────────────────── */
.season-snowbank {
  position: fixed;
  left: -2%;
  right: -2%;
  bottom: 0;
  height: 34px;
  z-index: 88;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(226, 240, 255, 0.9), rgba(200, 224, 250, 0.75));
  border-radius: 46% 54% 0 0 / 100% 100% 0 0;
}

/* ── Le champ : sapins, cadeaux, bonshommes de neige et compagnie ──────── */
.season-tree svg,
.season-gift svg,
.season-snowman svg,
.season-cane svg,
.season-lantern svg,
.season-ginger svg { display: block; width: 100%; height: auto; }

.season-tree      { width: calc(58px * var(--s)); z-index: 1; }
.season-snowman   { width: calc(40px * var(--s)); z-index: 2; }
.season-gift      { width: calc(32px * var(--s)); z-index: 3; }
.season-gift-tall { width: calc(22px * var(--s)); }
.season-gift-flat { width: calc(36px * var(--s)); z-index: 4; }
.season-cane      { width: calc(12px * var(--s)); z-index: 3; }
.season-lantern   { width: calc(16px * var(--s)); z-index: 4; filter: drop-shadow(0 0 6px rgba(255, 190, 90, 0.55)); }
.season-ginger    { width: calc(21px * var(--s)); z-index: 4; }

/* Les places d'un emplacement : l'objet haut au fond, les petits devant. */
:root[data-season="christmas"] .season-patch > * { position: absolute; bottom: 0; }
:root[data-season="christmas"] .season-patch > :nth-child(1) { left: calc(10px * var(--s)); }
:root[data-season="christmas"] .season-patch > :nth-child(2) { left: 0; }
:root[data-season="christmas"] .season-patch > :nth-child(3) { left: calc(40px * var(--s)); }
:root[data-season="christmas"] .season-patch > :nth-child(4) { left: calc(66px * var(--s)); }

/* Sapins : guirlande dorée, rouge ou argentée selon l'emplacement. */
.season-tree-body  { fill: #1f5c3a; }
.season-tree-shade { fill: rgba(0, 0, 0, 0.18); }
.season-tree-trunk { fill: #5a3a22; }
.season-tree-snow  { fill: #e6f0fb; }

.season-tree-garland { fill: none; stroke: #e8c15c; stroke-width: 1.3; stroke-linecap: round; }
.season-tree-red    .season-tree-garland { stroke: #e0484f; stroke-dasharray: 2.2 1.4; }
.season-tree-silver .season-tree-garland { stroke: #d5e2f0; }

.season-tree-baubles circle:nth-child(1) { fill: #e0484f; }
.season-tree-baubles circle:nth-child(2) { fill: #5a92d0; }
.season-tree-baubles circle:nth-child(3) { fill: #f0cf72; }
.season-tree-baubles circle:nth-child(4) { fill: #d0679a; }
.season-tree-baubles circle:nth-child(5) { fill: #d5e2f0; }
.season-tree-baubles circle:nth-child(6) { fill: #a06ad0; }
.season-tree-red .season-tree-baubles circle:nth-child(odd)    { fill: #f0cf72; }
.season-tree-silver .season-tree-baubles circle:nth-child(even) { fill: #e0484f; }

.season-tree-star {
  fill: #f0cf72;
  filter: drop-shadow(0 0 3px rgba(255, 215, 110, 0.85));
  animation: tree-star 2.8s ease-in-out infinite;
}

@keyframes tree-star {
  0%, 100% { opacity: 0.8; }
  50%      { opacity: 1; }
}

/* Les guirlandes lumineuses clignotent, chaque ampoule à son tour. */
.season-tree-lights circle { animation: tree-light 3s ease-in-out infinite; }
.season-tree-lights circle:nth-child(1) { fill: #ff5f52; animation-delay: -0.1s; }
.season-tree-lights circle:nth-child(2) { fill: #ffd34e; animation-delay: -0.5s; }
.season-tree-lights circle:nth-child(3) { fill: #5fc8ff; animation-delay: -0.9s; }
.season-tree-lights circle:nth-child(4) { fill: #fff6d6; animation-delay: -1.3s; }
.season-tree-lights circle:nth-child(5) { fill: #ff5f52; animation-delay: -1.7s; }
.season-tree-lights circle:nth-child(6) { fill: #ffd34e; animation-delay: -2.1s; }
.season-tree-lights circle:nth-child(7) { fill: #5fc8ff; animation-delay: -2.5s; }
.season-tree-lights circle:nth-child(8) { fill: #fff6d6; animation-delay: -2.9s; }

@keyframes tree-light {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 1; }
}

.season-patch:nth-child(2n) .season-tree-lights circle { animation-duration: 2.2s; }
.season-patch:nth-child(3n) .season-tree-lights circle { animation-duration: 3.7s; }

/* Bonshommes de neige. */
.season-snow-body    { fill: #eef6ff; }
.season-snow-hat     { fill: #2b3a4d; }
.season-snow-band    { fill: #c0392b; }
.season-snow-scarf   { fill: #c0392b; }
.season-snow-scarf-alt { fill: #4a7fb5; }
.season-snow-nose    { fill: #e8873a; }
.season-snow-coal    { fill: #2b3a4d; }
.season-snow-arm     { color: #6b4a2f; }
.season-snow-beanie  { fill: #2e7d4f; }
.season-snow-cuff,
.season-snow-pompom  { fill: #f6f1ea; }
.season-snow-cheek   { fill: #f2a0a0; }
.season-snow-broom   { color: #8a5a32; }
.season-snow-bristles { fill: #c9a15a; }

/* Sucre d'orge planté dans la neige : un peu plus épais que celui des archives. */
.season-cane .season-cane-white,
.season-cane .season-cane-red { stroke-width: 4; }

/* Lanterne. */
.season-lantern-metal { fill: #2b3a4d; }
.season-lantern-light { fill: rgba(255, 207, 107, 0.8); animation: lantern-flicker 2.2s ease-in-out infinite; }
.season-lantern-flame { fill: #fff2c4; }
.season-lantern-wax   { fill: #f2e6cf; }

@keyframes lantern-flicker {
  0%, 100% { opacity: 0.8; }
  40%      { opacity: 1; }
  70%      { opacity: 0.7; }
}

.season-patch:nth-child(2n) .season-lantern-light { animation-duration: 3.1s; animation-delay: -1s; }

/* Bonhomme en pain d'épice. */
.season-ginger-dough      { color: #b5733a; }
.season-ginger-dough-fill { fill: #b5733a; }
.season-ginger-icing      { stroke: #fff8ee; stroke-width: 0.9; }
.season-ginger-eye        { fill: #3a2210; }
.season-ginger-button-a   { fill: #d33a3a; }
.season-ginger-button-b   { fill: #2e9d5f; }

/* Huit papiers cadeaux, chacun avec son ruban et son motif. */
.season-paper-a .season-gift-box     { fill: #c0392b; }
.season-paper-a .season-gift-lid     { fill: #a93226; }
.season-paper-a .season-gift-ribbon,
.season-paper-a .season-gift-bow     { fill: #f2e3c0; }
.season-paper-a .season-gift-pattern { fill: rgba(255, 255, 255, 0.35); }

.season-paper-b .season-gift-box     { fill: #2e7d4f; }
.season-paper-b .season-gift-lid     { fill: #266a43; }
.season-paper-b .season-gift-ribbon,
.season-paper-b .season-gift-bow     { fill: #e8c15c; }
.season-paper-b .season-gift-pattern { fill: rgba(255, 255, 255, 0.3); }

.season-paper-c .season-gift-box     { fill: #4a7fb5; }
.season-paper-c .season-gift-lid     { fill: #3f6e9e; }
.season-paper-c .season-gift-ribbon,
.season-paper-c .season-gift-bow     { fill: #f2e3c0; }
.season-paper-c .season-gift-pattern { fill: rgba(255, 255, 255, 0.35); }

.season-paper-d .season-gift-box     { fill: #d0679a; }
.season-paper-d .season-gift-lid     { fill: #b85886; }
.season-paper-d .season-gift-ribbon,
.season-paper-d .season-gift-bow     { fill: #f6f1ea; }
.season-paper-d .season-gift-pattern { fill: rgba(255, 255, 255, 0.4); }

.season-paper-e .season-gift-box     { fill: #e8c15c; }
.season-paper-e .season-gift-lid     { fill: #d4aa45; }
.season-paper-e .season-gift-ribbon,
.season-paper-e .season-gift-bow     { fill: #b02f2f; }
.season-paper-e .season-gift-pattern { fill: rgba(176, 47, 47, 0.3); }

.season-paper-f .season-gift-box     { fill: #7b52ab; }
.season-paper-f .season-gift-lid     { fill: #6a4594; }
.season-paper-f .season-gift-ribbon,
.season-paper-f .season-gift-bow     { fill: #e8c15c; }
.season-paper-f .season-gift-pattern { fill: rgba(255, 255, 255, 0.3); }

.season-paper-g .season-gift-box     { fill: #2a9d8f; }
.season-paper-g .season-gift-lid     { fill: #22867a; }
.season-paper-g .season-gift-ribbon,
.season-paper-g .season-gift-bow     { fill: #f6f1ea; }
.season-paper-g .season-gift-pattern { fill: rgba(255, 255, 255, 0.35); }

.season-paper-h .season-gift-box     { fill: #d5dde8; }
.season-paper-h .season-gift-lid     { fill: #bcc7d6; }
.season-paper-h .season-gift-ribbon,
.season-paper-h .season-gift-bow     { fill: #c0392b; }
.season-paper-h .season-gift-pattern { fill: rgba(192, 57, 43, 0.3); }

/* ── Bougies posées sur les cadres ─────────────────────────────────────── */
.season-candles {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 34px;
  pointer-events: none;
  /* Elles arrivent avec le cadre sur lequel elles sont posées : même
     animation d'entrée, sinon le cadre glisse sous des bougies immobiles. */
  animation: fadeUp 0.6s ease 0.1s both;
}

.season-candles:has(+ .table-wrapper) { animation: fadeUp 0.5s ease 0.15s both; }

.season-candle-group {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0 8px;
}

/* Même largeur, hauteurs différentes : le dessin est plus haut que la plus
   haute bougie, et le bas de la cire est rogné. Toutes s'arrêtent ainsi au
   bas de leur boîte, posées sur le bord du cadre. */
.season-candle { width: 16px; overflow: hidden; }
.season-candle svg { display: block; width: 100%; height: auto; }

.season-candle-group:nth-child(1) .season-candle:nth-child(1) { height: 44px; }
.season-candle-group:nth-child(1) .season-candle:nth-child(2) { height: 35px; }
.season-candle-group:nth-child(1) .season-candle:nth-child(3) { height: 27px; }
.season-candle-group:nth-child(2) .season-candle:nth-child(1) { height: 29px; }
.season-candle-group:nth-child(2) .season-candle:nth-child(2) { height: 45px; }
.season-candle-group:nth-child(2) .season-candle:nth-child(3) { height: 36px; }

.season-candle-wick { fill: #4a3a28; }
.season-candle-core { fill: #fff6d6; }

.season-candle-cream .season-candle-wax  { fill: #f2e6cf; }
.season-candle-cream .season-candle-drip { fill: #fffaf0; }
.season-candle-red   .season-candle-wax  { fill: #c0392b; }
.season-candle-red   .season-candle-drip { fill: #dc4e3e; }
.season-candle-gold  .season-candle-wax  { fill: #e0b54e; }
.season-candle-gold  .season-candle-drip { fill: #f2d68a; }

.season-candle-flame {
  fill: #ffcf66;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: candle-flicker 1.6s ease-in-out infinite;
}

.season-candle-halo {
  fill: rgba(255, 200, 90, 0.22);
  animation: candle-halo 2.4s ease-in-out infinite;
}

@keyframes candle-flicker {
  0%, 100% { opacity: 0.85; transform: scaleY(1)    scaleX(1); }
  30%      { opacity: 1;    transform: scaleY(1.12) scaleX(0.94); }
  65%      { opacity: 0.8;  transform: scaleY(0.94) scaleX(1.05); }
}

@keyframes candle-halo {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

.season-candle:nth-child(2) .season-candle-flame { animation-duration: 2.1s; animation-delay: -0.5s; }
.season-candle:nth-child(3) .season-candle-flame { animation-duration: 1.3s; animation-delay: -0.9s; }
.season-candle-group:nth-child(2) .season-candle-flame { animation-delay: -1.2s; }
.season-candle-group:nth-child(2) .season-candle:nth-child(2) .season-candle-flame { animation-delay: -0.2s; }

/* Le brin de houx, posé en travers du pied des bougies. */
.season-holly {
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 54px;
  transform: translateX(-50%);
}

.season-holly-leaf  { fill: #2e7d4f; }
.season-holly-vein  { stroke: #1f5c3a; stroke-width: 0.8; }
.season-holly-berry { fill: #d42f3a; }
.season-holly-shine { fill: rgba(255, 255, 255, 0.6); }

/* ── Guirlande de sapin sous la barre de navigation ────────────────────── */
.season-garland {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  z-index: 101;
  pointer-events: none;
  display: flex;
}

/* Un feston : la corde en sapin, trois ampoules et un nœud à l'attache. */
.season-swag {
  position: relative;
  flex: 1;
  height: 100%;
}

.season-swag-rope {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 26px;
  overflow: visible;
}

/* Les traits ne s'étirent pas avec le feston : non-scaling-stroke. */
.season-swag-fir,
.season-swag-needles { fill: none; vector-effect: non-scaling-stroke; }
.season-swag-fir     { stroke: #2f6b45; stroke-width: 6; }
.season-swag-needles { stroke: #5aa874; stroke-width: 4; stroke-dasharray: 1.5 3; }

/* Les ampoules pendent sous la corde : leur hauteur suit la courbe. */
.season-bulb {
  position: absolute;
  width: 7px;
  height: 10px;
  margin-left: -3.5px;
  border-radius: 50% 50% 55% 55%;
  background: currentColor;
  animation: bulb-twinkle 2.6s ease-in-out infinite;
}

.season-bulb::before {
  content: '';
  position: absolute;
  left: 1.5px;
  top: -2px;
  width: 4px;
  height: 3px;
  border-radius: 1px;
  background: #24402f;
}

.season-bulb:nth-of-type(1) { left: 25%; top: 14px; }
.season-bulb:nth-of-type(2) { left: 50%; top: 18px; }
.season-bulb:nth-of-type(3) { left: 75%; top: 14px; }

/* Quatre couleurs qui se répètent le long du fil. */
.season-bulb-0 { color: #e8415a; animation-delay: 0s; }
.season-bulb-1 { color: #f0c84e; animation-delay: -0.65s; }
.season-bulb-2 { color: #8ce06a; animation-delay: -1.3s; }
.season-bulb-3 { color: #6aa8e0; animation-delay: -1.95s; }

@keyframes bulb-twinkle {
  0%, 100% { opacity: 0.45; box-shadow: 0 0 3px currentColor; }
  50%      { opacity: 1;    box-shadow: 0 0 9px currentColor, 0 0 16px currentColor; }
}

.season-bow {
  position: absolute;
  top: -1px;
  left: -11px;
  width: 22px;
}

.season-bow-loops { fill: #c8352b; }
.season-bow-tails { fill: #a02a20; }
.season-bow-knot  { fill: #e05545; }

/* La barre de navigation descend pour laisser passer la guirlande. Sans le
   :not() : comme pour Halloween, la guirlande survit au changement de thème. */
:root[data-season="christmas"] nav { padding-top: 1.75rem; }
:root[data-season="halloween"] nav { padding-top: 1.75rem; }

/* ── Petits écrans ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .season-icicles { top: 74px; }
  .season-sleigh  { width: 230px; }
  .season-swag:nth-child(n+7) { display: none; }
  .season-candles { padding: 0 14px; }
  .season-ornament:nth-child(even) { display: none; }
  .season-powder span:nth-child(even) { display: none; }
}

/* ── Mouvement réduit : le décor reste, il s'arrête ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .season-bat,
  .season-bat svg,
  .season-bat-wings,
  .season-ghost,
  .season-witch,
  .season-witch-body,
  .season-spider,
  .season-hang,
  .season-pumpkin-face,
  .season-flake,
  .season-bulb,
  .season-star,
  .season-sleigh,
  .season-sleigh-body,
  .season-sleigh-far,
  .season-sleigh-trail path,
  .season-deer,
  .season-deer-legs,
  .season-deer-glow,
  .season-aurora span,
  .season-shooting,
  .season-smoke circle,
  .season-house-window,
  .season-powder span,
  .season-ornament,
  .season-tree-star,
  .season-tree-lights circle,
  .season-lantern-light,
  .season-candle-flame,
  .season-candle-halo {
    animation: none;
  }

  /* Arrêtés, le traîneau et les décorations seraient hors écran ou de
     travers : on les repose. L'étoile filante et la fumée n'ont pas de sens
     immobiles, et l'ombre devant la lune non plus. */
  .season-sleigh { transform: translate3d(52vw, 0, 0); }
  .season-shooting,
  .season-smoke,
  .season-sleigh-far { display: none; }
  .season-aurora span { opacity: 0.8; }
  .season-star { opacity: 0.7; }
  .season-tree-lights circle { opacity: 0.9; }
  .season-candle-flame { opacity: 0.95; }
  .season-powder span { top: 30vh; }
  .season-powder span:nth-child(3n)   { top: 60vh; }
  .season-powder span:nth-child(3n+1) { top: 85vh; }

  /* Arrêtés, fantômes et sorcière seraient hors écran : on les repose. */
  .season-ghost { opacity: 0.4; bottom: 18vh; }
  .season-ghost:nth-child(13) { bottom: 44vh; }
  .season-ghost:nth-child(14) { bottom: 66vh; }
  .season-witch { transform: translate3d(58vw, 0, 0); }
  .season-spider { transform: translate3d(0, 18vh, 0); }
  .season-pumpkin-face { opacity: 0.9; filter: drop-shadow(0 0 3px #ffb347); }

  /* Figées hors écran, les bestioles ne serviraient à rien : on les répartit. */
  .season-bat  { left: 8%; }
  .season-bat:nth-child(2) { left: 32%; }
  .season-bat:nth-child(3) { left: 55%; }
  .season-bat:nth-child(4) { left: 74%; }
  .season-bat:nth-child(5) { left: 90%; }
  .season-flake { top: 10vh; }
  .season-flake:nth-child(even) { top: 45vh; }
  .season-flake:nth-child(3n)   { top: 75vh; }
  .season-bulb { opacity: 0.9; box-shadow: 0 0 6px currentColor; }
}
