/* Eminence Cursor
   Point 8px en dégradé (suit la souris) + anneau 40px (le rejoint en douceur).
   Survol d'un lien / bouton : anneau 60px rose. Sur fond foncé : anneau clair.
   Couleurs : #120060 (principale) et #ff0086 (secondaire). */
.emcur {
    display: none;
}

@media (any-hover: hover) and (any-pointer: fine) and (prefers-reduced-motion: no-preference) {
    .emcur {
        --emcur-grad: linear-gradient(90deg, #120060 0%, #ff0086 100%);
        --emcur-ring: rgba(18, 0, 96, .5);
        --emcur-ring-hover: rgba(255, 0, 134, .7);
        --emcur-ring-hover-bg: rgba(255, 0, 134, .06);

        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 2147483647;
        pointer-events: none;
        opacity: 0;
        transition: opacity .2s ease;
    }

    .emcur.is-visible {
        opacity: 1;
    }

    /* Sur un fond foncé (ex. bleu #120060) : anneau clair pour rester visible */
    .emcur.is-on-dark {
        --emcur-grad: linear-gradient(90deg, #ffffff 0%, #ff0086 100%);
        --emcur-ring: rgba(255, 255, 255, .55);
        --emcur-ring-hover-bg: rgba(255, 0, 134, .12);
    }

    .emcur__dot,
    .emcur__ring {
        position: absolute;
        top: 0;
        left: 0;
        border-radius: 50%;
        will-change: transform;
    }

    .emcur__dot {
        width: 8px;
        height: 8px;
        margin: -4px 0 0 -4px;
        background: var(--emcur-grad);
        transition: scale .15s ease;
    }

    .emcur__ring {
        width: 40px;
        height: 40px;
        margin: -20px 0 0 -20px;
        box-sizing: border-box;
        border: 1.5px solid var(--emcur-ring);
        background-color: transparent;
        transition: width .3s ease, height .3s ease, margin .3s ease, border-color .3s ease, background-color .3s ease;
    }

    /* Survol d'un lien / bouton */
    .emcur.is-hover .emcur__ring {
        width: 60px;
        height: 60px;
        margin: -30px 0 0 -30px;
        border-color: var(--emcur-ring-hover);
        background-color: var(--emcur-ring-hover-bg);
    }

    /* Clic */
    .emcur.is-down .emcur__dot {
        scale: .6; /* « scale » séparé : le JS utilise « transform » pour la position */
    }
}
