/* Tout Fruit Tout Frais · décorations des fêtes (chargé seulement en décembre).
   Tout est sous .fetes-on : la classe n'est ajoutée que sur les appareils assez puissants. */

/* ---------- Guirlande « stalactites » : fil cuivré et micro-LED blanc chaud ---------- */
.fetes-on .guirlande { position: absolute; left: 0; right: 0; top: 100%; margin-top: -2px; pointer-events: none; overflow: hidden; }
.fetes-on .guirlande svg { display: block; overflow: visible; }
.fetes-on .guirlande .fil { fill: none; stroke: #b07a3c; stroke-width: 1; stroke-linecap: round; }
.fetes-on .guirlande .pendants { fill: none; stroke: #b07a3c; stroke-width: .6; opacity: .55; }
.fetes-on .guirlande .halo { fill: url(#g-halo); }
.fetes-on .guirlande .coeur { fill: #fff7dc; stroke: #d39b45; stroke-width: .5; }
.fetes-on .led { opacity: .62; }
/* La lumière descend le long de chaque pendant, comme un flocon qui glisse. */
.fetes-on .led.chute { animation: ttf-chute var(--t) linear var(--d) infinite; }
.fetes-on .led.doux { animation: ttf-doux var(--t) ease-in-out var(--d) infinite alternate; }
@keyframes ttf-chute { 0%, 100% { opacity: .62; } 2% { opacity: 1; } 7% { opacity: .62; } }
@keyframes ttf-doux { from { opacity: .45; } to { opacity: 1; } }

/* ---------- Bonnet ajusté sur le logo ---------- */
/* Le dessin est calé sur la taille du logo : 100 unités = la largeur du logo. */
.fetes-on .top .brand { position: relative; }
.fetes-on .bonnet { position: absolute; left: 0; max-width: none; top: -10.6px; width: 52.8px; height: auto; pointer-events: none; filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / .2)); }

/* ---------- Neige ---------- */
.fetes-on .neige { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fetes-on .reseaux { position: relative; overflow: hidden; }
.fetes-on .reseaux-in { position: relative; }

/* ---------- Boules suspendues sur l'accueil ---------- */
.fetes-on .boules { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fetes-on .boule { position: absolute; top: 0; width: var(--taille); margin-left: calc(var(--taille) / -2); transform-origin: 50% 0;
  animation: ttf-balance var(--t) ease-in-out var(--d) infinite alternate; }
.fetes-on .boule i { display: block; width: 1px; height: var(--fil); margin: 0 auto; background: linear-gradient(#e7c77d, #b88b3a); opacity: .9; }
.fetes-on .boule svg { display: block; width: 100%; height: auto; margin-top: -2px; filter: drop-shadow(0 8px 10px rgb(0 0 0 / .35)); }
@keyframes ttf-balance { from { transform: rotate(-3.5deg); } to { transform: rotate(3.5deg); } }

/* ---------- Neige au sol et corniche de neige ---------- */
.fetes-on .congere { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 26px; pointer-events: none; }
.fetes-on .congere path { fill: var(--papier); filter: drop-shadow(0 -3px 4px rgb(0 0 0 / .18)); }
.fetes-on .corniche { position: absolute; left: 0; right: 0; top: -1px; width: 100%; height: 30px; pointer-events: none; z-index: 1; }
.fetes-on .corniche path { fill: var(--papier); filter: drop-shadow(0 3px 3px rgb(0 0 0 / .18)); }

/* ---------- Étoiles qui scintillent dans le bandeau vert ---------- */
.fetes-on .etoiles { position: absolute; inset: 0; pointer-events: none; }
.fetes-on .etoiles span { position: absolute; width: var(--s); height: var(--s); animation: ttf-etoile var(--t) ease-in-out var(--d) infinite alternate; }
.fetes-on .etoiles svg { display: block; width: 100%; height: 100%; }
@keyframes ttf-etoile { from { opacity: .15; transform: scale(.6) rotate(0); } to { opacity: .9; transform: scale(1) rotate(20deg); } }

/* ---------- Houx à côté des titres, nœud sur le téléphone, vœux ---------- */
.fetes-on .houx { display: inline-block; width: .9em; height: auto; margin-left: .2em; vertical-align: -.02em; }
.fetes-on .telephone { position: relative; }
.fetes-on .noeud { position: absolute; top: -26px; right: -22px; width: 82px; height: auto; transform: rotate(14deg); filter: drop-shadow(0 6px 8px rgb(0 0 0 / .25)); }
.fetes-on .pied .voeux { flex-basis: 100%; display: flex; align-items: center; gap: 8px; color: var(--vert); font: italic 600 17px var(--titre); }
.fetes-on .pied .voeux .houx { width: 30px; margin: 0; }

/* ---------- Clémentine, la mascotte ---------- */
.mascotte { position: fixed; right: 18px; bottom: 26px; z-index: 45; display: flex; align-items: flex-end; gap: 6px;
  transform: translateY(150%); transition: transform .7s cubic-bezier(.2, .8, .2, 1.15); pointer-events: none; }
.mascotte.visible { transform: none; pointer-events: auto; }
.mascotte .perso { all: unset; position: relative; width: 104px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mascotte .perso:focus-visible { outline: 3px solid var(--jaune); outline-offset: 4px; border-radius: 50%; }
.mascotte .perso svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 10px 12px rgb(60 30 0 / .25)); }
.mascotte.visible .perso svg { animation: ttf-flotte 3.2s ease-in-out infinite; }
.mascotte .nom { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%); padding: 1px 8px; border-radius: 99px; background: var(--rouge);
  color: #fff; font: 700 10.5px/1.6 var(--texte); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.mascotte .bras-d { transform-box: view-box; transform-origin: 95px 92px; }
.mascotte.parle .bras-d { animation: ttf-coucou .5s ease-in-out 4 alternate; }
.mascotte .yeux { transform-box: view-box; transform-origin: 61px 88px; animation: ttf-cligne 4.5s infinite; }
.mascotte .bulle { position: relative; margin-bottom: 70px; max-width: 250px; padding: 13px 36px 13px 15px; border-radius: 16px 16px 4px 16px; background: #fff;
  color: var(--encre); border: 1px solid var(--trait); box-shadow: 0 14px 30px -14px rgb(40 30 10 / .4); font-size: 15px; line-height: 1.45;
  opacity: 0; transform: translateY(8px) scale(.96); transform-origin: right bottom; transition: opacity .3s, transform .3s; pointer-events: none; }
.mascotte.parle .bulle { opacity: 1; transform: none; pointer-events: auto; }
.mascotte .bulle p { margin: 0; }
.mascotte .bulle-lien[hidden] { display: none; }
.mascotte .bulle-lien { display: inline-block; margin-top: 6px; color: var(--rouge); font-weight: 700; font-size: 14px; }
.mascotte .bulle-fermer { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent;
  color: var(--doux); font-size: 20px; line-height: 1; cursor: pointer; }
.mascotte .bulle-fermer:hover { background: var(--creme); color: var(--encre); }
@keyframes ttf-flotte { 50% { transform: translateY(-5px) rotate(-2deg); } }
@keyframes ttf-coucou { from { transform: rotate(0); } to { transform: rotate(-22deg); } }
@keyframes ttf-cligne { 0%, 94%, 100% { transform: none; } 96% { transform: scaleY(.1); } }

@media (max-width: 600px) {
  .fetes-on .congere { height: 16px; }
  .fetes-on .corniche { height: 20px; }
  .fetes-on .noeud { width: 64px; top: -20px; right: -16px; }
  .fetes-on .bonnet { top: -9.7px; width: 48.4px; }
  .mascotte { right: 10px; bottom: 22px; }
  .mascotte .perso { width: 84px; }
  .mascotte .bulle { max-width: calc(100vw - 120px); margin-bottom: 58px; font-size: 14.5px; }
}
@media (max-width: 360px) { .fetes-on .bonnet { top: -8.8px; width: 44px; } }
@media print { .guirlande, .neige, .mascotte, .bonnet, .boules, .congere, .corniche, .etoiles, .houx, .noeud, .voeux { display: none !important; } }
