/* =============================================================
   Thème Noël — chargé uniquement quand le thème est actif (CMS > Thème).
   Désactiver le thème retire ce fichier : le site revient à l'identique.
   ============================================================= */

/* ── Neige ── */
.xmas-snow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 40;
    overflow: hidden;
}

/* Position et mouvement pilotés en JS (theme-christmas.js) */
.xmas-flake {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    will-change: transform;
}

/* Flocon rond : blanc avec un léger contour bleuté pour rester visible sur fond clair */
.xmas-dot {
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff 0%, #f8fafc 55%, #cbd5e1 100%);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.3), 0 1px 3px rgba(71, 85, 105, 0.3);
}

/* Cristal de neige ❄ */
.xmas-crystal {
    font-size: var(--size);
    line-height: 1;
    color: #f0f9ff;
    text-shadow: 0 0 1px rgba(37, 99, 235, 0.7), 0 0 4px rgba(96, 165, 250, 0.6);
}

/* ── Guirlande sous le menu ── */
.xmas-garland {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 100px;
    margin-top: -12px;      /* la branche suit la ligne du bas du menu */
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.xmas-garland svg { display: block; overflow: visible; }

/* ── Guirlandes d'angle sur les blocs ── */
.xmas-anchor { position: relative; }

.xmas-corner {
    position: absolute;
    top: -20px;
    z-index: 3;
    pointer-events: none;
    line-height: 0;
}
.xmas-corner--left  { left: -20px; }
.xmas-corner--right { right: -20px; }
/* Bloc à overflow:hidden : la guirlande se loge dans le coin */
.xmas-corner--inside { top: -10px; }
.xmas-corner--inside.xmas-corner--left  { left: -10px; }
.xmas-corner--inside.xmas-corner--right { right: -10px; }

/* ── Houx sur les titres ── */
.xmas-holly {
    position: absolute;
    top: -22px;
    right: -34px;
    line-height: 0;
    pointer-events: none;
    transform: rotate(12deg);
}

/* ── Lumières & boules ── */
.xmas-bulb {
    animation: xmas-twinkle 2.4s ease-in-out infinite alternate;
}
@keyframes xmas-twinkle {
    from { opacity: 1; }
    to   { opacity: 0.4; }
}

.xmas-bauble {
    animation: xmas-swing 3.6s ease-in-out infinite alternate;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25));
}
@keyframes xmas-swing {
    from { transform: rotate(-4deg); }
    to   { transform: rotate(4deg); }
}

/* ── Neige accumulée en haut du footer ── */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 18px;
    background:
        radial-gradient(circle at 50% 0, #fff 0 11px, transparent 12px) 0 4px / 34px 16px repeat-x,
        radial-gradient(circle at 50% 0, #f1f5f9 0 8px, transparent 9px) 17px 4px / 34px 14px repeat-x,
        linear-gradient(#fff, #fff) 0 0 / 100% 5px no-repeat;
    pointer-events: none;
}

@media (max-width: 768px) {
    /* Sur la barre du bas : la guirlande longe son bord supérieur, le bouton central passe devant */
    .xmas-garland--bottom { top: -9px; bottom: auto; height: 44px; margin-top: 0; overflow: visible; }
    .mobile-bottom-nav > .bottom-nav-item { position: relative; z-index: 1; }
    .xmas-holly { top: -20px; right: -14px; transform: rotate(12deg) scale(0.8); }
}
