/* Styles généraux */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f3fff3;
    line-height: 1.6;
    color: #333;
    padding: 20px;
}

.quiz-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 127, 14, 0.1);
}

h1 {
    text-align: center;
    color: #007f0e;
    margin-bottom: 25px;
    font-size: 28px;
    border-bottom: 2px solid #e6e6e6;
    padding-bottom: 15px;
}

h2 {
    color: #007f0e;
    margin: 20px 0;
    font-size: 24px;
}

h3 {
    color: #007f0e;
    margin: 15px 0;
    font-size: 18px;
    font-weight: 600;
}

h4 {
    color: #007f0e;
    margin: 10px 0;
    font-size: 16px;
}

/* Styles pour les questions */
.question {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #007f0e;
}

.options {
    margin-left: 20px;
}

/* Réduction de l'espacement entre les options */
.option {
    margin: 5px 0;
    padding: 3px;
    transition: background-color 0.2s;
}

.option:hover {
    background-color: #f3fff3;
}

.option label {
    display: inline-block;
    padding-left: 10px;
    cursor: pointer;
}

input[type="checkbox"] {
    cursor: pointer;
}

/* Styles pour les boutons */
.btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    padding: 12px;
    background-color: #007f0e;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #006b0b;
}

.btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Compteur de tentatives */
.attempts-counter {
    text-align: right;
    margin-bottom: 20px;
    font-weight: 600;
    color: #007f0e;
}

/* Styles pour les résultats */
#results {
    display: none;
    padding: 20px;
    background-color: #f3fff3;
    border-radius: 8px;
    margin-top: 30px;
    border: 1px solid #e0e0e0;
}

#results h2 {
    border-bottom: 2px solid #e6e6e6;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Styles pour les feedback */
.feedback {
    margin-top: 8px;
    padding: 8px;
    border-radius: 5px;
}

.correct {
    color: #007f0e;
    font-weight: 600;
}

.incorrect {
    color: #e74c3c;
    font-weight: 600;
}

.warning {
    color: #f39c12;
    font-weight: 600;
}

.danger {
    color: #c0392b;
    font-weight: 600;
}

.hidden {
    display: none;
}

.disabled-option {
    opacity: 0.7;
}

.result-indicator {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border-radius: 50%;
    vertical-align: middle;
}

.result-correct {
    background-color: #007f0e;
}

.result-incorrect {
    background-color: #e74c3c;
}

/* Récapitulatif des bonnes réponses */
#correct-answers-summary {
    display: none;
    margin-top: 30px;
    padding: 20px;
    background-color: #f3fff3;
    border-radius: 8px;
    border-left: 5px solid #007f0e;
}

.summary {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.summary:last-child {
    border-bottom: none;
}

.correct-answer {
    margin-left: 20px;
    color: #007f0e;
}

/* Réduction de l'espacement entre les réponses dans le récapitulatif */
.correct-answer p {
    margin: 3px 0;
}

/* Adaptations pour mobiles */
@media screen and (max-width: 768px) {
    .quiz-container {
        padding: 15px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    h3 {
        font-size: 16px;
    }
    
    .option label {
        font-size: 14px;
    }
    
    .btn {
        max-width: 100%;
    }
}