/* Madame : couche « Noël » (fêtes d'hiver). Chargée APRÈS styles.css et vie.css.
   Rien ne s'applique sans la classe « noel » sur <html> (posée par le petit script de l'en-tête de index.html :
   du 1er décembre au 6 janvier à l'heure de Paris, ou ?noel=1, ou data-noel="force" ; ?noel=0 la retire).
   Les éléments de décor sont ajoutés par js/noel.js (tous aria-hidden, classe .noel-d).
   L'idée : la devanture de « Poussez la porte. » un soir de neige, vitrines allumées. Le reste est discret. */

html.noel {
  --noel-nuit: #3B1B2C;          /* nuit aubergine (jamais de noir) */
  --noel-sapin: #24463B;         /* vert sapin profond */
  --noel-sapin-clair: #3F7560;
  --noel-or: #D9B15F;
  --noel-or-clair: #F6DCA4;
  --noel-neige: #FFFDF8;
  --noel-neige-ombre: #E7DAD3;
  --noel-baie: #A3262E;
  /* une congère vue de face : dessus bosselé, pied à plat. Motif répété en largeur. */
  --noel-amas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 14' preserveAspectRatio='none'%3E%3Cpath fill='%23FFFDF8' d='M0 14V7C8 5 12 2 20 4S34 8 44 5 60 1 70 4 88 9 96 7V14Z'/%3E%3Cpath fill='%23E7DAD3' fill-opacity='.75' d='M0 14v-2.4C9 12.8 15 10.8 24 11.6S40 13 50 12.2 68 10.6 76 11.6 90 12.6 96 11.6V14Z'/%3E%3C/svg%3E");
}

/* ---------- Le décor ajouté ne gêne jamais ---------- */
.noel-d { pointer-events: none; -webkit-user-select: none; user-select: none; }
.noel-d svg { display: block; overflow: visible; max-width: none; }

/* ---------- La neige qui tombe (canvas fixe, js/noel.js) ---------- */
.noel-chute { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 45; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
.noel-chute.noel-pret { opacity: 1; }
.fige .noel-chute { transition: none; }

/* ---------- La neige posée sur un rebord ---------- */
.noel-neige {
  position: absolute; z-index: 2; left: -3px; right: -3px; bottom: calc(100% - 3px); height: var(--n, 12px); pointer-events: none;
  background: var(--noel-amas) 0 0 / var(--pas, 6rem) 100%; background-repeat: round no-repeat;
  border-radius: calc(var(--n, 12px) * .7) calc(var(--n, 12px) * .7) 3px 3px / calc(var(--n, 12px) * .85) calc(var(--n, 12px) * .85) 3px 3px;
  transform-origin: 50% 100%;
}
/* elle s'épaissit doucement pendant la visite */
.js .noel-neige { animation: noel-amasse 36s cubic-bezier(.2, .6, .3, 1) 1.5s both; }
@keyframes noel-amasse { from { transform: scaleY(.7); } to { transform: scaleY(1); } }
/* sur une arche : un croissant bosselé, épais au sommet, dessiné par js/noel.js (demi-cercle de rayon 100) */
.noel-arc { position: absolute; z-index: 2; left: -4%; top: 0; width: 108%; aspect-ratio: 216 / 118; transform: translateY(-11.86%); pointer-events: none; }
.noel-arc svg { width: 100%; height: 100%; }

/* ---------- Le bandeau des fêtes (seulement des horaires vrais, lus dans js/horaires.js) ---------- */
.noel-bandeau {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: .5rem 1rem; padding: .6rem var(--marge);
  color: #F8EFDD; font-size: .92rem; line-height: 1.45; text-align: center;
  background:
    radial-gradient(circle at 1px 1px, rgba(246, 220, 164, .16) 1px, transparent 1.6px) 0 0 / 14px 14px,
    linear-gradient(90deg, #1E3B32, var(--noel-sapin) 30%, #2B5245 50%, var(--noel-sapin) 70%, #1E3B32);
  box-shadow: inset 0 -1px 0 rgba(246, 220, 164, .35);
}
.noel-bandeau p { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .15rem 1.1rem; margin: 0; }
.noel-bandeau strong { font: italic 400 1.22rem/1.2 var(--titre); letter-spacing: -.01em; color: var(--noel-or-clair); white-space: nowrap; }
.noel-fait { position: relative; }
.noel-fait + .noel-fait::before { content: ""; position: absolute; left: -.62rem; top: .62em; width: .26rem; height: .26rem; border-radius: 50%; background: var(--noel-or); }
.noel-bandeau a { color: var(--noel-or-clair); font-weight: 600; text-underline-offset: .22em; text-decoration-thickness: 1px; white-space: nowrap; }
.noel-bandeau a:hover { color: #FFF6E2; }
.noel-bandeau a:focus-visible { outline: 2px solid var(--noel-or-clair); outline-offset: 3px; }
.noel-brin { flex: none; width: 2.5rem; height: auto; }
.noel-bandeau .noel-brin + p + .noel-brin { transform: scaleX(-1); }
@media (max-width: 60rem) {
  .noel-bandeau { font-size: .86rem; }
  .noel-bandeau .noel-brin + p + .noel-brin { display: none; }
}
@media (max-width: 46rem) {
  .noel-bandeau { padding-block: .55rem .6rem; font-size: .8rem; gap: .6rem; }
  .noel-bandeau p { flex-direction: column; align-items: center; gap: .05rem; }
  .noel-bandeau strong { font-size: 1.1rem; }
  .noel-fait + .noel-fait::before { display: none; }
  .noel-brin { width: 2rem; }
}

/* ---------- Accueil : la neige sur l'arche de la grande photo ---------- */
.noel-arche-accueil { position: absolute; z-index: 1; left: 0; top: 0; width: 100%; aspect-ratio: 3 / 4.1; transition: opacity .9s ease .9s; }
.js .accueil-grande:not(.vu) + .noel-arche-accueil { opacity: 0; }
.fige .noel-arche-accueil { transition: none; }
.noel-arche-accueil .noel-arc { filter: drop-shadow(0 -1px 1.5px rgba(122, 74, 46, .26)); }

/* ============================================================
   L'idée forte : la devanture un soir de neige
   ============================================================ */
html.noel .boutique { --fond: var(--noel-nuit); --soie-fond: #3B1B2C; --soie-ombre: #2C1423; --soie-reflet: #5E2D45; }

/* le ciel : des étoiles dorées qui scintillent, un croissant de lune */
.noel-ciel { position: absolute; z-index: 1; inset: 0; overflow: hidden; }
.noel-etoiles { position: absolute; left: 0; right: 0; top: 0; height: min(40rem, 52%); animation: noel-scintille 4.2s ease-in-out infinite; }
.noel-etoiles i { position: absolute; width: var(--t, 2px); height: var(--t, 2px); border-radius: 50%; background: #FFEBC2; box-shadow: 0 0 5px 1px rgba(255, 220, 160, .5); }
.noel-etoiles i.noel-eclat { border-radius: 0; box-shadow: none; background: var(--noel-or-clair); clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); }
.noel-etoiles + .noel-etoiles { animation-duration: 5.6s; animation-delay: -2.3s; }
.noel-lune { position: absolute; right: max(4vw, calc(50% - 36rem)); top: clamp(3.2rem, 7vw, 6.5rem); width: clamp(2.6rem, 5vw, 4.4rem); height: auto; }
@media (max-width: 46rem) { .noel-lune { right: 6vw; top: 2.6rem; } }
@keyframes noel-scintille { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* le mur, la nuit : la pierre s'assombrit, les fenêtres l'éclairent */
html.noel .facade {
  background-color: #9B8276;
  background-image:
    linear-gradient(180deg, rgba(59, 27, 44, .12), rgba(59, 27, 44, .2) 45%, rgba(59, 27, 44, .5)),
    repeating-linear-gradient(0deg, rgba(58, 34, 24, .17) 0 1px, transparent 1px 2.4rem);
  box-shadow: 0 46px 70px -42px rgba(40, 16, 30, .9);
}
/* le trottoir sous la neige */
html.noel .facade::after {
  background:
    radial-gradient(60% 120% at 50% 0, rgba(255, 214, 150, .5), transparent 70%),
    linear-gradient(180deg, var(--noel-neige), #F1E6DF 50%, #D6C3C4);
}
/* l'enseigne, éclairée */
html.noel .enseigne { color: #FFF5DE; text-shadow: 0 0 .45em rgba(255, 205, 130, .65), 0 0 1.4em rgba(255, 190, 110, .35); box-shadow: inset 0 0 0 3px var(--chocolat), inset 0 0 0 5px rgba(246, 220, 164, .6), 0 18px 26px -16px rgba(40, 16, 30, .85), 0 0 46px 2px rgba(255, 200, 120, .22); }
html.noel .enseigne > .noel-neige { left: 5px; right: 5px; --n: 13px; }
/* le store, dans l'ombre du soir */
html.noel .store { background: linear-gradient(rgba(59, 27, 44, .5), rgba(59, 27, 44, .14)), linear-gradient(90deg, var(--bordeaux) 50%, #EFE3D6 50%) 0 0 / calc(2 * var(--raie)) 100% round; }
html.noel .store::after { background: linear-gradient(rgba(59, 27, 44, .16), rgba(59, 27, 44, .22)), linear-gradient(90deg, var(--bordeaux) 50%, #EFE3D6 50%) 0 0 / calc(2 * var(--raie)) 100% round; }
html.noel .store > .noel-neige { left: 0; right: 0; --n: 13px; border-radius: 3px; }
/* la neige sur la corniche */
.noel-neige--corniche { left: calc(-.6rem - 4px); right: calc(-.6rem - 4px); top: -13px; bottom: auto; --n: 17px; --pas: 8rem; }

/* les vitrines : une lumière chaude derrière le verre, un halo sur le mur, une flaque de lumière au pied */
html.noel .vitrine-cadre { box-shadow: 0 16px 24px -16px rgba(40, 16, 30, .8), 0 0 60px 4px rgba(255, 196, 120, .38); }
html.noel .vitrine-cadre::before { content: ""; position: absolute; left: -14%; right: -14%; top: 97%; height: 6.5rem; pointer-events: none; background: radial-gradient(56% 100% at 50% 0, rgba(255, 205, 130, .42), transparent 72%); }
html.noel .vitrine-verre {
  background: radial-gradient(120% 70% at 50% 100%, #FFEFC6, transparent 70%), linear-gradient(180deg, #FFF6DF, #FBE3B4);
  box-shadow: inset 0 0 0 1px rgba(58, 34, 24, .35), inset 0 10px 16px -10px rgba(122, 74, 46, .45), inset 0 0 26px rgba(255, 190, 110, .5);
}
html.noel .vitrine-verre::before { opacity: .85; }
html.noel .vitrine:hover .vitrine-verre::before, html.noel .vitrine:focus-visible .vitrine-verre::before { opacity: 1; }
html.noel .vitrine-verre::after { border-color: #E9B36A; filter: drop-shadow(0 0 3px rgba(255, 214, 150, .95)); }
.vitrine-cadre > .noel-neige--appui { left: -.2rem; right: -.2rem; bottom: .05rem; --n: 8px; --pas: 4.5rem; }

/* la porte : imposte allumée, neige sur l'arche et sur la marche, couronne */
html.noel .porte { --noel-porte: 100%; }
html.noel .porte-imposte::before { opacity: 1; }
html.noel .porte-bois { box-shadow: inset 0 0 0 .45rem var(--chocolat), 0 16px 24px -16px rgba(40, 16, 30, .8), 0 0 40px 0 rgba(255, 196, 120, .2); }
.porte > .noel-arc { left: 50%; width: calc(var(--noel-porte) * 1.08); margin-left: calc(var(--noel-porte) * -.54); }
.porte > .noel-neige--marche { left: 50%; right: auto; bottom: auto; top: calc(var(--h) - 6px); width: calc(var(--noel-porte) + .9rem); margin-left: calc((var(--noel-porte) + .9rem) / -2); --n: 8px; --pas: 4rem; }
html.noel .porte .vitrine-lien { color: #FFF5E4; text-shadow: 0 1px 6px rgba(59, 27, 44, .55); }
html.noel .porte:focus-visible, html.noel .vitrine:focus-visible { outline-color: var(--noel-or-clair); }
.noel-couronne {
  position: absolute; z-index: 2; left: 50%; top: calc(var(--h) * .55); width: calc(var(--noel-porte) * .6); aspect-ratio: 1; margin-left: calc(var(--noel-porte) * -.3);
  transform-origin: 50% 4%; animation: noel-balance 5.2s ease-in-out infinite alternate;
  filter: drop-shadow(0 5px 4px rgba(40, 16, 30, .5));
}
 (max-width: 46rem) { html.noel .porte { --noel-porte: min(100%, calc(var(--h) * .55)); } }
.noel-couronne svg { width: 100%; height: 100%; }
@keyframes noel-balance { from { transform: rotate(-2.4deg); } to { transform: rotate(2.4deg); } }

/* la guirlande lumineuse, tendue sous la corniche (elle passe derrière l'enseigne) */
.noel-guirlande { position: absolute; left: -.6rem; right: -.6rem; top: .7rem; height: 3.6rem; }
.noel-guirlande svg { position: absolute; left: 0; top: 0; }
.noel-fil { fill: none; stroke: #4A2A22; stroke-width: 1.3; }
.noel-culot { fill: #4A2A22; }
.noel-amp { animation: noel-scintille 2.9s ease-in-out infinite; }
.noel-amp--b { animation-duration: 3.7s; animation-delay: -1.3s; }
.noel-amp--c { animation-duration: 4.6s; animation-delay: -2.8s; }

/* les jardinières : petits sapins et boule de houx sous la neige ; une congère au pied du mur */
html.noel .facade-pied {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 48' preserveAspectRatio='none'%3E%3Cg fill='%2324463B'%3E%3Cpath d='M30 3 38 16H34L41 31H19L26 16H22Z'/%3E%3Cpath d='M60 10 67 21H63.5L69 31H51L56.5 21H53Z'/%3E%3Cpath d='M92 1 101 15H96.5L104 31H80L87.5 15H83Z'/%3E%3Cpath d='M119 11 125.5 21H122L127.5 31H110.500L116 21H112.500Z'/%3E%3C/g%3E%3Cg fill='%233F7560'%3E%3Cpath d='M30 3 38 16H34L41 31H30Z'/%3E%3Cpath d='M60 10 67 21H63.5L69 31H60Z'/%3E%3Cpath d='M92 1 101 15H96.5L104 31H92Z'/%3E%3Cpath d='M119 11 125.5 21H122L127.5 31H119Z'/%3E%3C/g%3E%3Cg fill='%23FFFDF8'%3E%3Cpath d='M30 3 34 9.500Q32 8 30 10 28 8 26 9.500Z'/%3E%3Cpath d='M60 10 63 14.800Q61.500 13.800 60 15.300 58.500 13.800 57 14.800Z'/%3E%3Cpath d='M92 1 96.300 7.800Q94 6.300 92 8.300 90 6.300 87.700 7.800Z'/%3E%3Cpath d='M119 11 122 15.600Q120.500 14.600 119 16 117.500 14.600 116 15.600Z'/%3E%3Cpath d='M22 16Q24 13.500 26.500 15.500L26 16ZM38 16Q36 13.500 33.500 15.500L34 16ZM83 15Q85.500 12.300 88 14.300L87.500 15ZM101 15Q98.500 12.300 96 14.300L96.500 15Z'/%3E%3C/g%3E%3Cpath fill='%237A4A2E' d='M9 33h126v15H9z'/%3E%3Cpath fill='%233A2218' d='M6 30h132v5H6z'/%3E%3Cpath fill='%23FFFDF8' d='M5 32Q5 27 11 27.500 18 25.500 26 27.500 36 26 46 28 58 25.500 70 27.500 82 26 94 28 106 25.800 118 27.500 128 26 134 27.800 139 27.500 139 32Z'/%3E%3Ccircle cx='181' cy='15' r='11.500' fill='%2324463B'/%3E%3Cpath fill='%233F7560' d='M181 3.500A11.500 11.500 0 0 1 181 26.500 5 11.500 0 0 0 181 3.500Z'/%3E%3Cg fill='%23A3262E'%3E%3Ccircle cx='175' cy='16' r='1.900'/%3E%3Ccircle cx='183' cy='21' r='1.900'/%3E%3Ccircle cx='187' cy='13' r='1.900'/%3E%3Ccircle cx='178' cy='22.500' r='1.600'/%3E%3C/g%3E%3Cpath fill='%23A94B26' d='M163 31h36l-4 17h-28z'/%3E%3Cpath fill='%237A4A2E' d='M160 28h42v5h-42z'/%3E%3Cpath fill='%23FFFDF8' d='M171 10Q173 3 181 3T191 10Q188 8 185.500 9.800 183 7.800 180.500 9.800 178 8 175.500 10 173 8.500 171 10ZM159 30Q159 26 165 26.300 173 24.800 181 26.300 190 25 197 26.300 203 26 203 30Z'/%3E%3C/svg%3E");
}
.noel-neige--congere { left: -.6rem; right: -.6rem; bottom: 1.3rem; --n: clamp(8px, 1vw, 12px); --pas: 9rem; border-radius: 0; z-index: 1; }

/* ---------- Les arrivages : un peu de neige sur la tringle, trois suspensions entre les cintres ---------- */
html.noel .portant ul { --noel-ecart: clamp(1rem, 2.6vw, 2.6rem); }
.cintre > .noel-neige { z-index: 0; left: calc(var(--noel-ecart) / -2 - 1px); right: calc(var(--noel-ecart) / -2 - 1px); top: 0; bottom: auto; --n: 8px; --pas: 5rem; border-radius: 0; }
.cintre:first-child > .noel-neige { left: -100vw; }
.cintre:last-child > .noel-neige { right: -100vw; }
.noel-boule { --t: 1.5rem; position: absolute; z-index: 0; left: calc(var(--noel-ecart) / -2); top: 11px; width: 0; height: var(--fil, 2.2rem); transform-origin: 50% 0; animation: noel-balance 4.4s ease-in-out var(--r, 0s) infinite alternate; }
.noel-boule::before { content: ""; position: absolute; left: -.5px; top: 0; width: 1px; height: 100%; background: var(--marron); }
.noel-boule::after {
  content: ""; position: absolute; left: calc(var(--t, 1.25rem) / -2); top: calc(100% - 1px); width: var(--t, 1.25rem); height: var(--t, 1.25rem); border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgba(255, 250, 235, .75), transparent 34%), radial-gradient(circle at 60% 70%, rgba(58, 34, 24, .28), transparent 60%), var(--c, var(--bordeaux));
  box-shadow: 0 -3px 0 -1px var(--noel-or), 0 7px 9px -5px rgba(58, 34, 24, .6);
}
.noel-boule--etoile { --t: 1.7rem; filter: drop-shadow(0 3px 3px rgba(58, 34, 24, .35)); }
.noel-boule--etoile::after { border-radius: 0; background: linear-gradient(135deg, #F3D48E, #C99A45); box-shadow: none; clip-path: polygon(50% 0, 62% 35%, 98% 35%, 68% 57%, 79% 92%, 50% 70%, 21% 92%, 32% 57%, 2% 35%, 38% 35%); }
.cintre:first-child > .noel-boule { display: none; }
@media (max-width: 60rem) {
  html.noel .portant ul { --noel-ecart: 1rem; }
  .noel-boule { --fil: 1.3rem !important; --t: .95rem; }
}
@media (max-width: 46rem) {
  /* deux cintres par rangée : la neige de chaque tringle va d'un bord de l'écran à l'autre */
  .cintre:nth-child(odd) > .noel-neige { left: -100vw; }
  .cintre:nth-child(even) > .noel-neige { right: -100vw; }
  .cintre:nth-child(odd) > .noel-boule { display: none; }
}

/* ---------- Les rayons : neige sur l'écrin et sur les livres, éclats dorés ---------- */
html.noel .rayon--ecrin { position: relative; }
.rayon--ecrin > .noel-neige { left: 1.1rem; right: 1.1rem; --n: 14px; --pas: 7rem; filter: drop-shadow(0 -1.5px 1px rgba(122, 74, 46, .24)); }   /* un liseré d'ombre : la neige reste lisible sur le fond clair */
html.noel .ecrin .eclat { background: var(--noel-or-clair); }
.dos > .noel-neige { left: -1px; right: -1px; bottom: calc(100% - 2px); --n: 7px; background: var(--noel-neige); border-radius: 5px 5px 2px 2px / 6px 6px 2px 2px; box-shadow: inset 0 -2px 0 var(--noel-neige-ombre), 0 -1px 2px rgba(122, 74, 46, .22); }
html.noel .etagere-planche { position: relative; }
.etagere-planche > .noel-neige { left: auto; right: 3%; width: 21%; bottom: calc(100% - 1px); --n: 9px; background: var(--noel-neige); border-radius: 60% 40% 0 0 / 100% 100% 0 0; box-shadow: inset 0 -2px 0 var(--noel-neige-ombre); }

/* ---------- La carte cadeau : un ruban doré et son nœud ---------- */
.noel-ruban { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.noel-ruban::before {
  content: ""; position: absolute; right: -32%; top: 17%; width: 90%; height: clamp(1.1rem, 2.2vw, 1.6rem); transform: rotate(38deg);
  background: linear-gradient(180deg, #F8E3B0, var(--noel-or) 28%, #C99A45 62%, #E7C57A);
  box-shadow: 0 0 0 1px rgba(122, 74, 46, .25), 0 6px 10px -4px rgba(58, 34, 24, .5);
}
.noel-noeud { position: absolute; z-index: 1; right: 6.5%; top: 2%; width: 30%; height: auto; filter: drop-shadow(0 5px 4px rgba(58, 34, 24, .4)); }

/* ---------- Horaires : le bloc « Pendant les fêtes » est mis en avant ---------- */
html.noel #horaires-fetes { position: relative; scroll-margin-top: 7rem; padding: 1.1rem 1.25rem 1.2rem; border-radius: 8px; border: 1.5px dashed var(--noel-or); background: rgba(58, 34, 24, .28); }
html.noel #horaires-fetes h3 { color: var(--noel-or-clair); padding-right: 3rem; }
#horaires-fetes > .noel-brin { position: absolute; right: .7rem; top: -.95rem; width: 3.1rem; }

/* ---------- Pied de page : un talus de neige et quelques sapins ---------- */
.noel-talus { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(100% - 7px); height: clamp(16px, 2.4vw, 30px); background: var(--noel-amas) 0 0 / clamp(12rem, 26vw, 24rem) 100%; background-repeat: round no-repeat; }
.noel-sapins { position: absolute; z-index: 1; bottom: calc(100% + 4px); display: flex; align-items: flex-end; gap: clamp(.2rem, .8vw, .7rem); }
.noel-sapins--d { right: max(var(--marge), calc(50% - 39rem)); }
.noel-sapins--g { left: max(var(--marge), calc(50% - 39rem)); }
.noel-sapins svg { width: calc(var(--s, 1) * clamp(1.7rem, 3.2vw, 2.9rem)); height: auto; }
@media (max-width: 46rem) { .noel-sapins--g { display: none; } }

/* ---------- Tout s'arrête : hors écran, mouvement réduit, captures figées, impression ---------- */
.noel-pause, .noel-pause * , .noel-pause *::before, .noel-pause *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .noel-d, .noel-d *, .noel-d::before, .noel-d::after, .noel-neige { animation: none !important; transition: none !important; }
}
.fige .noel-d, .fige .noel-d *, .fige .noel-d::before, .fige .noel-d::after, .fige .noel-neige { animation: none !important; transition: none !important; }
@media print { .noel-chute, .noel-ciel, .noel-guirlande { display: none !important; } }

/* ---------- Accueil : la façade décorée pour Noël (photo d'Arthur) ---------- */
html.noel .tissu > img.accueil-noel { display: block; object-position: 22% 50%; }   /* garde le petit sapin, à gauche */
html.noel .tissu > img.accueil-jour { display: none; }

/* ---------- Accueil : un bonnet sur le M de « Madame » (noel.js, nomDeNoel) ---------- */
html.noel .accueil-texte h1 { position: relative; }
.noel-bonnet {
  position: absolute; z-index: 2; pointer-events: none;
  font: italic 300 clamp(5.6rem, 19vw, 16rem)/.82 var(--titre);   /* même taille que le nom : le bonnet se règle en em */
  left: .17em; top: -.31em; width: .6em;
  transform: rotate(-14deg); transform-origin: 30% 90%;
  filter: drop-shadow(0 .025em .03em rgba(58, 34, 24, .35));
  animation: noel-bonnet-pose .9s cubic-bezier(.3, 1.45, .5, 1) 1.5s backwards;
}
@media (max-width: 46rem) { .noel-bonnet { font-size: clamp(5.6rem, 29vw, 13.5rem); } }
.noel-bonnet svg { display: block; width: 100%; height: auto; overflow: visible; }
.noel-bonnet-tissu { fill: var(--noel-baie); }
.noel-bonnet-ombre { fill: #7A1A22; opacity: .55; }
.noel-bonnet-fourrure, .noel-bonnet-pompon { fill: var(--noel-neige); stroke: var(--noel-neige-ombre); stroke-width: 2; }
@keyframes noel-bonnet-pose { from { opacity: 0; transform: translateY(-.45em) rotate(-32deg); } to { opacity: 1; transform: rotate(-14deg); } }

/* ---------- Accueil : le fil cousu sous le nom devient une guirlande d'ampoules ---------- */
html.noel .fil path { stroke: var(--noel-sapin); stroke-width: 2.2; }
.noel-guirlande-fil { position: absolute; z-index: 1; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.noel-ampoule {
  position: absolute; width: .62rem; height: .82rem; margin: .06rem 0 0 -.31rem;
  transform: rotate(var(--penche, 0deg)); transform-origin: 50% -.12rem;
  border-radius: 50% 50% 48% 48% / 42% 42% 58% 58%;
  background: radial-gradient(circle at 50% 40%, #FFFDF5 0 14%, var(--c) 55%, color-mix(in srgb, var(--c) 68%, #3A2218) 100%);
  box-shadow: 0 0 .35rem .1rem color-mix(in srgb, var(--c) 80%, transparent), 0 0 1.2rem .4rem color-mix(in srgb, var(--c) 42%, transparent);
  animation: noel-ampoule-allume .6s ease calc(3.1s + var(--i, 0) * .09s) backwards, noel-ampoule-brille 2.6s ease-in-out calc(var(--i, 0) * -.7s) infinite alternate;
}
.noel-ampoule::before { content: ""; position: absolute; left: 50%; top: -.22rem; width: .3rem; height: .28rem; margin-left: -.15rem; border-radius: .08rem; background: var(--noel-sapin); }
@keyframes noel-ampoule-allume { from { opacity: 0; filter: brightness(.3); } }
@keyframes noel-ampoule-brille { from { filter: brightness(1.05); } to { filter: brightness(.7); } }
.fige .noel-bonnet, .fige .noel-ampoule { animation: none; }
@media (prefers-reduced-motion: reduce) { .noel-bonnet, .noel-ampoule { animation: none; } }
