/* cursor.css */

/* 1. On cache le curseur par défaut partout */
body, html, .zone-container {
    cursor: none !important; /* !important force le masquage */
}

/* 2. Style du curseur Dragon */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 130px; /* Taille du dragon */
    z-index: 9999; /* Toujours au-dessus */
    pointer-events: none; /* Permet de cliquer à travers l'image */
    
    /* Centrage et optimisation */
    transform: translate(-50%, -50%);
    will-change: transform;
    transform-origin: center center; 
    
    display: block; 
}

/* 3. Style de la particule de luciole (Jaune) */
.firefly-particle {
    position: fixed;
    top: 0;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    
    /* COULEUR : Jaune doré intense */
    background-color: #ffdb4d;
    
    pointer-events: none;
    z-index: 9998; /* Juste en dessous du dragon */
    
    /* LUEUR : Jaune chaud */
    box-shadow: 
        0 0 8px #ffdb4d,   /* Cœur */
        0 0 15px #ffffca,  /* Halo clair */
        0 0 25px rgba(255, 219, 77, 0.4); /* Halo diffus */
        
    /* État initial pour l'animation */
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    
    /* Animation du cycle de vie (1.8s) */
    animation: firefly-life-cycle 1.8s ease-out forwards;
}

/* 4. Animation : Apparition progressive (Fade In) -> Disparition lente (Fade Out) */
@keyframes firefly-life-cycle {
    /* DÉBUT : Invisible et petit */
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2);
    }
    /* APPARITION : Rapide jusqu'à 20% du temps */
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    /* FIN : Disparition lente, rétrécissement et dérive vers le haut */
    100% {
        opacity: 0;
        transform: translate(-50%, -150%) scale(0.1); /* Monte légèrement (-150%) */
    }
}