/* Curseur personnalisé */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1000001;
    mix-blend-mode: difference;
    will-change: transform;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.cursor-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    margin: -16px 0 0 -16px;
    transition: all 0.3s ease;
}

/* Animation de survol générale */
.cursor-hover .cursor-dot {
    transform: scale(1.5);
}

.cursor-hover .cursor-ring {
    width: 50px;
    height: 50px;
    margin: -21px 0 0 -21px;
    border-color: #fff;
}

/* Animation pour les CTA */
.cursor-cta .cursor-ring {
    width: 60px;
    height: 60px;
    margin: -26px 0 0 -26px;
    border-color: #6600cc;
    background: rgba(102, 0, 204, 0.1);
}

/* Animation pour la zone 3D */
.cursor-explore .cursor-ring {
    width: 80px;
    height: 80px;
    margin: -36px 0 0 -36px;
    border-style: dashed;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animation pour les liens */
.cursor-link .cursor-ring {
    width: 45px;
    height: 45px;
    margin: -18px 0 0 -18px;
    border-radius: 4px;
    transform: rotate(45deg);
}

/* Animation pour les champs de formulaire */
.cursor-input .cursor-ring {
    width: 30px;
    height: 30px;
    margin: -11px 0 0 -11px;
    border-color: var(--btn-yellow, #f2ff73);
    background: rgba(242, 255, 115, 0.05);
}

.cursor-input .cursor-dot {
    background-color: var(--btn-yellow, #f2ff73);
}

/* Animation au clic */
.cursor-click .cursor-dot {
    transform: scale(0.5);
}

.cursor-click .cursor-ring {
    transform: scale(0.9);
    opacity: 0.5;
}

/* Animation d'apparition */
@keyframes cursorAppear {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cursor-dot, .cursor-ring {
    animation: cursorAppear 0.5s ease forwards;
}

/* Désactiver sur mobile */
@media (max-width: 768px) {
    .cursor {
        display: none;
    }
    body {
        cursor: auto !important;
    }
}
