.quiz-list {
    margin-top: 40px;
}

.quiz-item {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 18px;
    transition: background .2s ease, border .2s ease;
}

.quiz-item:hover {
    background: #fff;
    border-color: #ddd;
}

.quiz-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.quiz-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.quiz-start-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #5a38e9;
    color: #fff;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s ease;
}

.quiz-start-btn:hover {
    background: #472dc2;

}
.quiz-container{
    margin-top: 20px;
}
.quiz-question {
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    max-width: 600px;
}

/* Cache l'input radio natif */
.quiz-answers input[type="radio"] {
    display: none;
}

/* Le label = bouton cliquable */
.quiz-answers label {
    background-color: #f2f2f2;
    border: 2px solid #ccc;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #333;
    text-align: center;
}

/* Hover */
.quiz-answers label:hover {
    background-color: #e0f7f8;
    border-color: #39C6CD;
}

/* Quand le bouton est sélectionné */
.quiz-answers input[type="radio"]:checked + label {
    background-color: #39C6CD;
    color: white;
    border-color: #39C6CD;
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(57,198,205,0.3);
}
.quiz-submit {
    margin-top: 30px;
    margin-bottom: 50px;
    text-align: center;
}

.quiz-submit button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(57,198,205,0.25);
}

.quiz-submit button:hover {
    background-color: #2ea8ae;
    transform: scale(1.03);
}

.quiz-submit button:active {
    transform: scale(0.98);
}
.question-error {
    border: 2px solid #d9534f;
    padding: 10px;
    border-radius: 8px;
    background-color: #fff5f5;
}

.error-msg {
    color: #d9534f;
    font-size: 14px;
    margin-top: 5px;
}
