#math-game-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 600px;
    margin: 4px auto;
    padding: 5px;
    background: #98b4b6;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    border: solid 2px #03192c;
}

.hidden { display: none !important; }

/* Écrans */
.game-screen { display: flex; flex-direction: column; gap: 1px; }

/* Boutons & Vignettes */
.btn-main { background: #05730a; color: white; border: none; padding: 10px 20px; border-radius: 8px; font-size: 1.2em; cursor: pointer; }
.btn-style { border: 2px solid #2196f3; background: #2196f3; padding: 10px; border-radius: 5px; cursor: pointer; flex: 1; }
.btn-style.active { background: #084677; color: white; }

.level-card { 
    background: #f4cf52; border: 1px solid #ddd; padding: 10px; 
    border-radius: 8px; cursor: pointer; transition: 0.2s;
}
.level-card:hover { transform: scale(1.02); border-color: #2196f3; }
.level-card.selected { background: #e3f2fd; border: 3px solid #af720f; }

.vignette {
    background: #3b47d1; border: 2px solid #ff9800; border-radius: 12px;
    padding: 10px; font-size: 2em; cursor: pointer; font-weight: bold;
}

/* Clavier */
.keyboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; max-width: 250px; margin: 2px auto; }
.key, .key-special { padding: 2px; font-size: 2em; border-radius: 8px; border: 1px solid #ccc; cursor: pointer; }
.key-special { background: #d84011; }
#key-ok { background: #08a40d; }
#answer-input { font-size: 2em; text-align: center; width: 150px; margin-bottom: 5px; border: 2px solid #333; }

/* Feedbacks */

#feedback-message { 
    font-weight: bold; 
    height: 30px; /* Réserve l'espace même si vide */
    margin-top: 15px;
    font-size: 1.2em;
    transition: opacity 0.3s; /* Optionnel : pour une disparition en douceur */
}

.feedback-visible {
    opacity: 1;
}

.correct { color: green; }
.wrong { color: red; }
.titre{font-size: 2rem;margin: 2px; padding: 2px;}
.soustitre{font-size: 2rem ;margin: 2px; padding: 2px; }
#operation-text{font-size: 2.2rem;font-weight: 700;}
.temps{font-weight: 700;color: red}
.numq{font-weight: 500 ;color: #197c07;}


/* Conteneur principal */
.navigation-jeux {
    border: 1px solid #620505;
    padding: 10px;
    margin: 50px 0;
    background-color: #8bada2;
    border-radius: 15px;
    
}

.navigation-jeux h3 {
    font-size: 1em;
    margin: 0 0 8px 0;
}

.section-langue, .section-jeux {
    margin-bottom: 10px;
}

.section-langue h4, .section-jeux h4 {
    font-size: 0.9em;
    margin: 0 0 5px 0;
    color: darkblue;
}

.navigation-jeux a {
    display: inline-block;
    background: #ed7979;
    padding: 5px 5px;
    margin: 10px 0;
    text-decoration: none;
    color: #000000;
    font-size: 1.2rem;
    border-radius: 10px;
}

.navigation-jeux a:hover {
    background: #3b0432;
    color: white;
}

