.quiz-container {
    max-width: 800px;
    margin: 20px auto;
    position: relative;
    padding-top: 40px;
}

.sticky-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.progress-container {
    width: 80%;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.progress {
    width: 0%;
    height: 100%;
    background-color: #27ae60;
    border-radius: 4px;
    transition: width 0.5s ease-in-out;
}

.lives {
    display: flex;
    align-items: center;
    gap: 5px;
}

.heart-icon {
    width: 24px;
    height: 24px;
}

.lives-count {
    font-size: 18px;
    font-weight: bold;
}

.completion-message {
    display: none;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin: 40px 0;
    color: #27ae60;
}

/* Styles des questions */
.quiz-question {
    background: white;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.quiz-question h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #000000;
}

.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-answer {
    display: block;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.quiz-answer:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quiz-answer.correct {
    border-color: #27ae60;
    background-color: rgba(36, 199, 137, 0.1);
    pointer-events: none;
}

.quiz-answer.incorrect {
    border-color: #e74c3c;
    background-color: rgba(220, 53, 69, 0.1);
    pointer-events: none;
}

/* Animation pour les rÃ©ponses qui disparaissent */
.quiz-answer.hiding {
    transition: all 0.5s ease;
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}


.quiz-answers.image-grid {
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin: 0 auto;
}

.image-answer {
    width: 200px;
    flex-shrink: 0;
    cursor: pointer;
    padding: 5px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.image-answer img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.image-answer:hover {
    border-color: #4E9DD8;
}

.image-answer.correct {
    border-color: #27ae60;
}

.image-answer.incorrect {
    border-color: #e74c3c;
}