/* Cursor Trail Effect */
.cursor-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.8) 0%, rgba(162, 155, 254, 0.4) 50%, transparent 100%);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    animation: trailPulse 1s ease-in-out infinite;
}

.cursor-trail::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    filter: blur(8px);
    opacity: 0.6;
}

.cursor-dot {
    display: none;
}

@keyframes trailPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Particules de trainée */
.trail-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    border-radius: 50%;
    animation: particleFade 1s ease-out forwards;
}

@keyframes particleFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
}

/* Désactive l'effet sur mobile */
@media (max-width: 767px) {
    .cursor-trail,
    .cursor-dot,
    .trail-particle {
        display: none;
    }
}
