/* =====================================================================
   Patate Leveling — l'habillage de NOËL de la vitrine (/)

   Un habillage de saison, posé PAR-DESSUS accueil.css sans rien y toucher,
   comme celui d'Halloween (css/halloween.css, gardé pour l'an prochain) :
   il ne vit que sous la classe `noel` du <body> et dans les blocs marqués
   « NOËL » d'index.html (le bandeau, le décor du héros, les dessins en tête
   de page, les quatre tenues de la galerie). Pour revenir à la page de
   toujours : ôter le <link> de cette feuille, la classe et ces blocs.

   Le parti pris : une nuit d'hiver tombe sur l'illustration (un voile bleu
   froid), une guirlande d'ampoules court en haut du héros, la neige tombe
   doucement et s'amasse en bas, deux sapins et des cadeaux au pied du
   château. L'or remplace le jaune des accents, le rouge prend les boutons.
   Ce qui bouge reste lent et léger : une vitrine qui grouille fatigue
   avant d'avoir convaincu.
   ===================================================================== */

.noel{
  --jaune:#ffcf5a;
  --rougeNoel:#d92b2f;
  background:
    radial-gradient(1100px 520px at 88% 0%,rgba(90,150,255,.13),transparent 62%),
    radial-gradient(900px 600px at 0% 55%,rgba(217,43,47,.07),transparent 60%),
    var(--fond);
}
.noel .btnJaune{background:linear-gradient(180deg,#ff5a52,#c81e25);color:#fff;
  box-shadow:0 6px 22px rgba(217,43,47,.35)}
.noel .btnJaune:hover{background:linear-gradient(180deg,#ff6e66,#d8262d);
  box-shadow:0 10px 28px rgba(217,43,47,.45)}

/* ---------------- Le bandeau de l'événement ---------------- */
.nBandeau{display:block;position:relative;z-index:1;
  background:linear-gradient(90deg,#5c0e14,#9b1c22 50%,#5c0e14);
  border-bottom:1px solid rgba(255,207,90,.4);color:#fff4e6;
  font-size:14px;line-height:1.35;transition:background .2s}
.nBandeau:hover{background:linear-gradient(90deg,#6a1118,#b0222a 50%,#6a1118)}
.nBandeauIn{display:flex;align-items:center;justify-content:center;gap:10px;
  padding-top:9px;padding-bottom:9px;text-align:center}
.nBandeau b{color:#ffd77a}
.nBandeauSapin{display:inline-block;font-size:17px;
  animation:nBalance 2.8s ease-in-out infinite}
.nBandeauFleche{color:#ffd77a;font-weight:800;transition:transform .2s}
.nBandeau:hover .nBandeauFleche{transform:translateX(4px)}
@keyframes nBalance{0%,100%{transform:rotate(-7deg)}50%{transform:rotate(7deg)}}

/* ---------------- Le héros, une nuit d'hiver ----------------
   Le voile est DANS le fond (son ::after), sous les deux voiles d'accueil.css
   qui couchent le texte sur du sombre : la nuit tombe sur l'image, pas sur
   le titre. `multiply` assombrit en gardant les formes du château. */
.noel .herosFond::after{content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(22,44,98,.62) 0%,rgba(40,70,130,.36) 55%,rgba(150,180,230,.22) 100%);
  mix-blend-mode:multiply}
.noel .heros h1 em{text-shadow:0 0 26px rgba(255,207,90,.5),0 3px 20px rgba(0,0,0,.5)}
.nSaison{display:inline-block;padding:4px 9px;border-radius:7px;
  background:rgba(217,43,47,.2);border:1px solid rgba(255,120,110,.55);color:#ffb3ab;
  letter-spacing:.16em}

/* Le décor : entre l'image (z −2) et le texte. Rien ne s'y clique. */
.nDecor{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}

/* La GUIRLANDE : un fil qui pend en deux festons sous le haut du héros, et
   ses ampoules qui s'allument chacune à son rythme (leur lueur est un
   `drop-shadow` de leur propre couleur). */
/* Le FIL s'étire sur toute la largeur (un SVG sans proportions), mais
   pas les AMPOULES : dans le SVG, elles s'aplatissaient en galettes sur un
   écran large. Elles sont donc posées par-dessus, chacune à sa place le
   long du fil (`--x` en % de la largeur, `--y` sur 70 de haut : les cotes
   du viewBox), à une taille fixe, avec leur douille. */
.nGuirlande{position:absolute;left:0;top:-6px;width:100%;height:70px}
.nGuirlande svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.nGuirlande .fil{fill:none;stroke:#173b22;stroke-width:3;stroke-linecap:round;vector-effect:non-scaling-stroke}
.nGuirlande .amp{position:absolute;left:calc(var(--x) * 1%);top:calc(var(--y) / 70 * 100%);
  width:10px;height:14px;margin:-5px 0 0 -5px;border-radius:50% 50% 50% 50% / 42% 42% 58% 58%;
  background:currentColor}
.nGuirlande .amp::before{content:'';position:absolute;left:2px;top:-4px;width:6px;height:5px;
  border-radius:1.5px;background:#173b22}
.nGuirlande .amp{animation:nBrille 2.4s ease-in-out infinite}
.nGuirlande .amp:nth-of-type(3n){animation-duration:3.1s;animation-delay:-1.2s}
.nGuirlande .amp:nth-of-type(3n+1){animation-duration:2.7s;animation-delay:-.5s}
.nGuirlande .amp:nth-of-type(4n){animation-delay:-2s}
.nA1{fill:#ff4b4b;color:#ff4b4b}.nA2{fill:#ffd23f;color:#ffd23f}
.nA3{fill:#3fa7ff;color:#3fa7ff}.nA4{fill:#46e07a;color:#46e07a}
@keyframes nBrille{
  0%,100%{opacity:1;filter:drop-shadow(0 0 5px currentColor)}
  50%{opacity:.5;filter:drop-shadow(0 0 1px currentColor)}
}

/* La NEIGE : trois couches de flocons dessinés en dégradés, qui tombent à
   des vitesses différentes (les plus gros, devant, tombent plus vite).
   Une couche entière ne fait qu'un élément : rien à animer flocon par
   flocon. */
.nNeige{position:absolute;inset:-10% 0 0 0;
  background-repeat:repeat;animation-timing-function:linear;animation-iteration-count:infinite}
.nN1{background-image:
    radial-gradient(2px 2px at 20px 30px,#fff 60%,transparent 70%),
    radial-gradient(2px 2px at 90px 120px,#fff 60%,transparent 70%),
    radial-gradient(1.5px 1.5px at 160px 60px,#fff 60%,transparent 70%),
    radial-gradient(2px 2px at 200px 170px,#fff 60%,transparent 70%);
  background-size:230px 200px;opacity:.55;animation-duration:22s}
.nN2{background-image:
    radial-gradient(3px 3px at 50px 80px,#fff 55%,transparent 70%),
    radial-gradient(2.5px 2.5px at 180px 20px,#fff 55%,transparent 70%),
    radial-gradient(3px 3px at 260px 190px,#fff 55%,transparent 70%);
  background-size:320px 260px;opacity:.7;animation-duration:16s;animation-delay:-5s}
.nN3{background-image:
    radial-gradient(4px 4px at 70px 40px,#fff 50%,transparent 70%),
    radial-gradient(5px 5px at 330px 230px,#fff 50%,transparent 70%);
  background-size:420px 340px;opacity:.8;animation-duration:11s;animation-delay:-3s;
  filter:blur(.4px)}
.nN1{animation-name:nTombe1}.nN2{animation-name:nTombe2}.nN3{animation-name:nTombe3}
@keyframes nTombe1{from{background-position:0 0}to{background-position:46px 200px}}
@keyframes nTombe2{from{background-position:0 0}to{background-position:-64px 260px}}
@keyframes nTombe3{from{background-position:0 0}to{background-position:40px 340px}}

/* La neige amassée, au bas du héros : deux bourrelets clairs. */
.nCongere{position:absolute;left:-2%;right:-2%;bottom:-2px;height:86px;
  color:#eaf2ff;filter:drop-shadow(0 -4px 14px rgba(190,215,255,.35))}

/* Deux sapins et trois cadeaux, posés sur la neige, à droite, sous le
   château (à la place des citrouilles d'Halloween). */
.nPied{position:absolute;right:5%;bottom:30px;display:flex;align-items:flex-end;gap:2px}
.nSapin{filter:drop-shadow(0 0 12px rgba(255,214,120,.45)) drop-shadow(0 6px 10px rgba(0,0,0,.35))}
.nS1{width:70px;height:96px}
.nS2{width:52px;height:72px}
.nCadeau{filter:drop-shadow(0 4px 8px rgba(0,0,0,.35))}
.nC1{width:36px;height:34px}.nC2{width:28px;height:28px}.nC3{width:32px;height:30px}
.nEtoile{transform-box:fill-box;transform-origin:center;animation:nEtoile 3s ease-in-out infinite}
@keyframes nEtoile{
  0%,100%{filter:drop-shadow(0 0 4px #ffd23f);scale:1}
  50%{filter:drop-shadow(0 0 10px #ffe58a);scale:1.12}
}

/* ---------------- Ailleurs sur la page ---------------- */
/* Un peu de neige posée sur le haut de chaque tenue de la boutique. */
.noel .look::before{content:"";position:absolute;top:-1px;left:-1px;right:-1px;z-index:1;
  height:16px;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 16' preserveAspectRatio='none'%3E%3Cpath d='M0 0h100v6q-5 6-10 2t-11 4-10-3-12 5-9-4-11 3-10-5-12 4-8-2-7 3V0z' fill='%23eef4ff'/%3E%3C/svg%3E") no-repeat top/100% 100%;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.25))}

.noel .piliers{border-color:rgba(255,207,90,.18)}
.noel .appel{background:linear-gradient(105deg,#7a0f16,#b3202a 50%,#1d6b3a);
  box-shadow:0 26px 70px rgba(150,20,30,.35)}

/* ---------------- Adaptations ---------------- */
@media (max-width:900px){
  .nPied{right:3%;bottom:18px;transform:scale(.75);transform-origin:right bottom}
  .nCongere{height:60px}
}
@media (max-width:640px){
  .nBandeau{font-size:13px}
  .nBandeauIn{gap:8px}
  .noel .heros .surtitre{flex-wrap:wrap;row-gap:9px}
  .nSaison{white-space:nowrap}
  .nGuirlande{height:46px}
  /* Vingt-deux ampoules sur 375 pixels : plus petites, pour garder du fil
     entre elles. */
  .nGuirlande .amp{width:7px;height:10px;margin:-3px 0 0 -3.5px}
  .nGuirlande .amp::before{left:1.5px;top:-3px;width:4px;height:4px}
  /* Sur un téléphone, le texte descend jusqu'en bas du héros : les sapins
     passeraient sous ses dernières lignes. */
  .nPied{display:none}
}

/* Moins de mouvement demandé : la scène reste, elle ne bouge plus — et la
   neige qui tombe, qui n'existe qu'en mouvement, s'en va. */
@media (prefers-reduced-motion:reduce){
  .nBandeauSapin,.nGuirlande .amp,.nEtoile{animation:none}
  .nNeige{display:none}
}
