/* Styles pour les effets visuels */
.visual-effects-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Animation de points de score */
@keyframes floatUp {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px);
        opacity: 0;
    }
}

.score-popup {
    position: absolute;
    color: #fff;
    font-weight: bold;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
    z-index: 10000;
}

/* Effet de flash d'écran */
.screen-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-out;
    z-index: 9998;
}

.screen-flash.active {
    opacity: 1;
}

/* Effet de particules pour les boutons */
.button-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}

/* Animation de succès */
@keyframes successPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.success-effect {
    animation: successPulse 1s;
}

/* Animation d'erreur */
@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.error-effect {
    animation: errorShake 0.4s ease-in-out;
}

/* Effet de transition entre les écrans */
.screen-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a2e;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

.screen-transition.active {
    opacity: 1;
    pointer-events: all;
}

/* Effet de lueur pour les éléments importants */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 0 15px 5px rgba(0, 209, 178, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.glow-effect.active::after {
    opacity: 1;
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 15px 5px rgba(0, 209, 178, 0.5);
    }
    50% {
        box-shadow: 0 0 25px 10px rgba(0, 209, 178, 0.8);
    }
    100% {
        box-shadow: 0 0 15px 5px rgba(0, 209, 178, 0.5);
    }
}
