/* ===== Thème Noël (temporaire) =====
   Pour le retirer : supprimer les lignes noel.css / noel.js dans index.html
   (et ces deux fichiers). Aucun autre fichier n'en dépend. */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&display=swap');

:root {
    --noel-red: #c8102e;
    --noel-red-dark: #9b0c23;
    --noel-green: #1f7a3a;
    --noel-gold: #f2b705;
}

/* --- Guirlande lumineuse en haut de l'entête --- */
.noel-garland {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    height: 46px;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.noel-garland svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 46px;
}

.noel-bulb {
    position: absolute;
    transform: translateX(-50%);
    width: 11px;
    height: 17px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: var(--c);
    box-shadow: 0 0 10px 2px var(--c);
    animation: noel-twinkle 1.6s ease-in-out infinite;
    animation-delay: var(--d);
}

.noel-bulb::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 2px;
    width: 7px;
    height: 6px;
    border-radius: 2px;
    background: #5b5b5b;
}

@keyframes noel-twinkle {
    0%, 100% { opacity: 1; filter: brightness(1.15); }
    50%      { opacity: 0.45; filter: brightness(0.8); box-shadow: none; }
}

/* --- Bonnet de Père Noël sur le caméléon --- */
.noel-logo-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.noel-hat {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
    pointer-events: none;
}

/* --- Message de fêtes sous le caméléon --- */
.noel-greeting {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    font-size: clamp(1.3rem, 3vw, 2rem);
    color: var(--noel-red);
    margin-top: clamp(12px, 2vw, 24px);
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.8);
}

/* --- Neige qui tombe --- */
.noel-snow {
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    overflow: hidden;
}

.noel-flake {
    position: absolute;
    top: -20px;
    color: #a9c8e8;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.9);
    user-select: none;
    animation: noel-fall linear infinite;
}

@keyframes noel-fall {
    0%   { transform: translate(0, -20px) rotate(0deg); }
    50%  { transform: translate(var(--drift), 50vh) rotate(180deg); }
    100% { transform: translate(0, 105vh) rotate(360deg); }
}

/* --- Petites touches sur le reste du site --- */
.section-title::before,
.section-title::after {
    content: "❄";
    color: var(--noel-red);
    font-size: 0.55em;
    vertical-align: middle;
    margin: 0 0.5em;
    opacity: 0.8;
}

.footer {
    border-top: 6px solid transparent;
    border-image: repeating-linear-gradient(45deg,
        var(--noel-red) 0 14px, white 14px 28px) 6;
}

@media (max-width: 768px) {
    .noel-bulb { width: 8px; height: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .noel-snow { display: none; }
    .noel-bulb { animation: none; }
}
