/* ==================================
   STYLES POUR LA MODAL DE VICTOIRE
   Thème : Cyber / Tech (coordonné avec style.css)
   ================================== */

.modal-victoire {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Fond très sombre */
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.contenu-victoire {
    background: linear-gradient(135deg, #161625 0%, #2a2a40 100%); /* Même gradient que le header */
    padding: 50px 60px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3); /* Glow cyan */
    animation: slideDown 0.5s ease-out;
    max-width: 90%;
    border: 3px solid #00d4ff; /* Bordure cyan néon */
    position: relative;
}

/* Effet de lueur pulsante sur les bords */
.contenu-victoire::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00d4ff, #ff0055, #00d4ff);
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.5; }
}

@keyframes slideDown {
    from {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.contenu-victoire h2 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8); /* Glow cyan intense */
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: textGlow 1.5s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.5),
                     0 0 20px rgba(0, 212, 255, 0.3);
    }
    to {
        text-shadow: 0 0 20px rgba(0, 212, 255, 1),
                     0 0 30px rgba(0, 212, 255, 0.7),
                     0 0 40px rgba(0, 212, 255, 0.5);
    }
}

.btn-rejouer {
    background: transparent;
    color: #00d4ff; /* Cyan néon */
    border: 2px solid #00d4ff;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

/* Effet de remplissage au survol */
.btn-rejouer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #00d4ff;
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-rejouer:hover::before {
    left: 0;
}

.btn-rejouer:hover {
    color: #161625; /* Texte sombre sur fond cyan */
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

.btn-rejouer:active {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Responsive */
@media (max-width: 600px) {
    .contenu-victoire {
        padding: 30px 20px;
    }
    
    .contenu-victoire h2 {
        font-size: 2rem;
    }
    
    .btn-rejouer {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
