/* Empêche l'affichage du template brut avant le chargement de Vue */
[v-cloak] {
    display: none;
}

* {box-sizing: border-box;}

body {
    font-family: Arial, sans-serif;

    height: 100vh;
    background-color: #f4f4f4;
    margin: 0;
}

#quiz-container {
    width: 800px;
    max-width: 100%;
    background: white;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#question {
    font-size: 20px;
    margin-bottom: 20px;
}

.btn-container {
    display: flex;
    flex-direction: column;
}

.btn {
    height: 50px;
    background: #007BFF;
    color: white;
    border: none;
    padding: 10px;
    margin: 5px 0;
    cursor: pointer;
    border-radius: 5px;
}

.btn:hover {
    background: #0056b3;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

/* Classes de feedback pour les réponses */
.btn.correct {
    background-color: #28a745 !important;
    color: white;
}

.btn.wrong {
    background-color: #dc3545 !important;
    color: white;
}

.explanation-box {
    margin-top: 20px;
    padding: 15px;
    background-color: #e9ecef;
    border-left: 5px solid #007BFF;
    border-radius: 4px;
    text-align: left;
    font-size: 0.95em;
    color: #495057;
}

.picto {
    margin-left: 10px;
    font-weight: bold;
    font-size: 1.2em;
}

/* Mise en forme des écrans de sélection et de résultat */
.quiz-selection, .results {
    margin-top: 20px;
    line-height: 1.6;
}

#next-btn {
    margin-top: 20px;
    width: 100%;
    background-color: #28a745;
}

/* Styles pour l'écran de résultats détaillé */
.score-summary {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.improvement-box {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: left;
}

.recap-container {
    text-align: left;
    margin-bottom: 30px;
}

.recap-item {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 8px solid;
}

.recap-correct { background-color: #d4edda; border-color: #28a745; }
.recap-wrong { background-color: #f8d7da; border-color: #dc3545; }

.recap-explanation {
    margin-top: 10px;
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
}

/* Barre de progression */
.progress-wrapper {
    margin-bottom: 25px;
}

.progress-container {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-bar {
    height: 100%;
    background-color: #28a745;
    transition: width 0.4s ease-out;
}