/* Importation des polices */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Open+Sans:wght@400;600;700&family=Poppins:wght@700&display=swap');

/* Configuration de base du corps de page */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #1a1a2e; /* Fond bleu nuit profond */
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #ecf0f1;
}

/* Bouton Audio - Thème Vert Néon */
.btn-audio {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(46, 213, 115, 0.3);
    color: #2ed573; /* Vert néon */
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    
    /* Neutralisation du focus pour éviter le redémarrage audio sur Entrée */
    outline: none;
    user-select: none;
}

.btn-audio:hover:not(:disabled) {
    background: rgba(46, 213, 115, 0.15);
    border-color: #2ed573;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(46, 213, 115, 0.2);
}

/* État désactivé quand l'audio joue */
.btn-audio:disabled {
    opacity: 0.5;
    cursor: default;
    border-color: rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
}

/* On force l'absence de style de focus et on essaie de bloquer l'état actif persistant */
.btn-audio:focus, 
.btn-audio:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Conteneur principal */
.container {
    background-color: #16213e;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    max-width: 700px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(46, 213, 115, 0.1);
    margin: 25px 0;
}

/* Titre principal néon */
.title {
    font-family: 'Poppins', sans-serif;
    color: #2ed573; /* Vert néon */
    font-size: 42px;
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(46, 213, 115, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Bloc d'explications */
.explanation {
    color: #bdc3c7;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #2ed573;
}

.exercise-container {
    text-align: left;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;            
}

/* Texte d'instruction (Entrée) */
.keypress {
    font-size: 16px;
    color: #2ed573;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

/* Touche clavier visuelle */
.key-hint {
    display: inline-block;
    background: #2ed573;
    color: #1a1a2e;
    padding: 2px 12px;
    border-radius: 4px;
    margin: 0 5px;
    box-shadow: 0 2px 0 #26af5f;
}

/* Animation de pulsation */
@keyframes pulse {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
    100% { opacity: 0.6; transform: scale(1); }
}



/* Message d'erreur Noscript */
noscript {
    display: block;
    background-color: #ff4757;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Utilitaires de centrage */
.centerItems {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- BOUTON CONTINUER EN CSS --- */
.btn-continue {
    display: inline-block;
    padding: 6px 40px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    /* Dégradé vert comme sur ton ancienne image */
    background: linear-gradient(to bottom, #44d631 0%, #228b22 100%);
    border-radius: 8px;
    border: 2px solid #1e7b1e;
    box-shadow: 0 4px 0 #155d15, 0 8px 15px rgba(0,0,0,0.3);
    transition: all 0.15s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Effet brillant sur le bouton */
.btn-continue::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.btn-continue:hover::after {
    left: 100%;
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #155d15, 0 12px 20px rgba(46, 213, 115, 0.2);
    filter: brightness(1.1);
}

/* Effet d'enfoncement au clic */
.btn-continue:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #155d15, 0 2px 5px rgba(0,0,0,0.3);
}

.nav-link {
    display: inline-block;
    margin-top: 20px;
    color: #2ed573;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover {
    text-decoration: underline;
    background: rgba(46, 213, 115, 0.1);
    border-radius: 8px;
}

.bigger {
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    display: block;
    width: 100%;
    height: 100%;
}

.smaller {
    font-size: 0.8em;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    display: block;
    width: 100%;
    height: 100%;
}

.tiny {
    font-size: 0.6em;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    display: block;
    width: 100%;
    height: 100%;
}