/* ══════════════════════════════════════════════════════════════
   Thème « Noël » — guirlande lumineuse sous le menu (élément
   « guirlande.css » du manifeste : une case dans admin/themes.php).

   ::before = le fil et ses quatre ampoules (rouge, or, vert, bleu), un
   motif de 144 px répété ; ::after = les halos, sur une ampoule sur deux,
   qui sautent d'une ampoule à la suivante : la guirlande clignote sans
   script. Sur ordinateur elle pend sous .menu (collant) ; sur téléphone
   sous .logomobile (.menu y est la liste déroulante).
   ══════════════════════════════════════════════════════════════ */

html.theme-noel .logomobile::before,
html.theme-noel .logomobile::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 100%;
    height: 22px;
    pointer-events: none;
    background-repeat: repeat-x;
    background-size: 144px 22px;
}
html.theme-noel .logomobile::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='22' viewBox='0 0 144 22'%3E %3Cpath d='M0 1Q36 13 72 1q36 12 72 0' fill='none' stroke='%231a6b47' stroke-width='1.6'/%3E %3Cg fill='%2306241a'%3E%3Crect x='16.4' y='5' width='3.2' height='3.4' rx='.8'/%3E%3Crect x='52.4' y='5' width='3.2' height='3.4' rx='.8'/%3E%3Crect x='88.4' y='5' width='3.2' height='3.4' rx='.8'/%3E%3Crect x='124.4' y='5' width='3.2' height='3.4' rx='.8'/%3E%3C/g%3E %3Cellipse cx='18' cy='12.6' rx='3.7' ry='4.8' fill='%23ff3b4e'/%3E%3Cellipse cx='54' cy='12.6' rx='3.7' ry='4.8' fill='%23ffd23f'/%3E %3Cellipse cx='90' cy='12.6' rx='3.7' ry='4.8' fill='%233ddc84'/%3E%3Cellipse cx='126' cy='12.6' rx='3.7' ry='4.8' fill='%235ec8ff'/%3E %3C/svg%3E"); }
html.theme-noel .logomobile::after {
    background-image:
        radial-gradient(circle at 18px 12.6px, rgba(255,255,255,.95) 0, rgba(255,255,255,.55) 2px, rgba(255,236,170,.4) 5px, transparent 9.5px),
        radial-gradient(circle at 90px 12.6px, rgba(255,255,255,.95) 0, rgba(255,255,255,.55) 2px, rgba(255,236,170,.4) 5px, transparent 9.5px);
    animation: nl-clignote 1.8s steps(1, end) infinite;
}
@media (min-width: 45.0625rem) {
    html.theme-noel .menu::before,
    html.theme-noel .menu::after {
        content: "";
        position: absolute;
        z-index: -1;            /* sous les sous-menus, au-dessus de la page */
        left: 0; right: 0; top: 100%;
        height: 22px;
        pointer-events: none;
        background-repeat: repeat-x;
        background-size: 144px 22px;
    }
    html.theme-noel .menu::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='22' viewBox='0 0 144 22'%3E %3Cpath d='M0 1Q36 13 72 1q36 12 72 0' fill='none' stroke='%231a6b47' stroke-width='1.6'/%3E %3Cg fill='%2306241a'%3E%3Crect x='16.4' y='5' width='3.2' height='3.4' rx='.8'/%3E%3Crect x='52.4' y='5' width='3.2' height='3.4' rx='.8'/%3E%3Crect x='88.4' y='5' width='3.2' height='3.4' rx='.8'/%3E%3Crect x='124.4' y='5' width='3.2' height='3.4' rx='.8'/%3E%3C/g%3E %3Cellipse cx='18' cy='12.6' rx='3.7' ry='4.8' fill='%23ff3b4e'/%3E%3Cellipse cx='54' cy='12.6' rx='3.7' ry='4.8' fill='%23ffd23f'/%3E %3Cellipse cx='90' cy='12.6' rx='3.7' ry='4.8' fill='%233ddc84'/%3E%3Cellipse cx='126' cy='12.6' rx='3.7' ry='4.8' fill='%235ec8ff'/%3E %3C/svg%3E"); }
    html.theme-noel .menu::after {
        background-image:
            radial-gradient(circle at 18px 12.6px, rgba(255,255,255,.95) 0, rgba(255,255,255,.55) 2px, rgba(255,236,170,.4) 5px, transparent 9.5px),
            radial-gradient(circle at 90px 12.6px, rgba(255,255,255,.95) 0, rgba(255,255,255,.55) 2px, rgba(255,236,170,.4) 5px, transparent 9.5px);
        animation: nl-clignote 1.8s steps(1, end) infinite;
    }
}
/* Le bouton de bascule (socle commun) passe sous la guirlande */
html.theme-noel .theme-bascule { top: 104px; }
@media (max-width: 767px) {
    html.theme-noel .theme-bascule { top: 98px; }
}
@keyframes nl-clignote { 50% { background-position-x: 36px; } }

@media (prefers-reduced-motion: reduce) {
    html.theme-noel .menu::after,
    html.theme-noel .logomobile::after { animation: none; }
}
