/* =====================================================================
   Animation de la barre principale des icônes (bulles catégories).
   Les animations elles-mêmes sont jouées par icon-bar-fx.js (Web
   Animations API) ; ce fichier ne pose que les éléments du calque.
   Réglage : back-office › Paramètres généraux (« Désactivée » = ni ce
   fichier ni le script ne sont chargés).
   ===================================================================== */

.category-bubble-bar .category-ellipse {
    position: relative;
}

/* Calque superposé à la bulle : ne capte jamais le clic ni le survol. */
.ibfx-layer {
    position: absolute;
    z-index: 3;
    pointer-events: none;
}

.ibfx-ring {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 50%;
}

.ibfx-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0;
}

/* Reflet lumineux qui balaie la bulle. */
.ibfx-sheen {
    position: absolute;
    top: -25%;
    bottom: -25%;
    left: 0;
    width: 38%;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .85) 50%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transform: translateX(-160%) skewX(-18deg);
}

/* Étincelle à 4 branches. */
.ibfx-spark {
    position: absolute;
    width: var(--ibfx-size, 1rem);
    height: var(--ibfx-size, 1rem);
    margin: calc(var(--ibfx-size, 1rem) / -2) 0 0 calc(var(--ibfx-size, 1rem) / -2);
    background: var(--ibfx-color, #ffb13b);
    clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
    filter: drop-shadow(0 0 .3rem rgba(255, 255, 255, .95));
    opacity: 0;
    transform: scale(0);
}

@media (prefers-reduced-motion: reduce) {
    .ibfx-layer {
        display: none;
    }
}
