body {
    font-family: 'Calibri', Arial, sans-serif;
    max-width: 950px;
    margin: 0 auto;
    padding: 5px;
    background-color: #f5f5f5;
}

.quiz-container {
    background-color: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 5px;
}

.header-banner {
    background-color: #5B7C3D;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 6px;
    margin-bottom: 5px;
}

.header-banner h1 {
    margin: 2px 0;
    font-size: 24px;
    font-weight: bold;
}

.header-banner h2 {
    margin: 3px 0 2px 0;
    font-size: 20px;
    font-weight: bold;
}

.subtitle-banner {
    background-color: #D3D3D3;
    padding: 6px 10px;
    margin-bottom: 5px;
    border-radius: 4px;
}

.subtitle-banner h3 {
    margin: 0;
    font-size: 15px;
    font-weight: bold;
    color: #333;
}

.progress-container {
    background-color: #ecf0f1;
    border-radius: 4px;
    padding: 6px;
    margin-bottom: 5px;
    text-align: center;
}

.progress-bar {
    background-color: #e0e0e0;
    border-radius: 8px;
    height: 14px;
    margin: 4px 0;
    overflow: hidden;
}

.progress-text {
    font-weight: bold;
    color: #2c3e50;
    margin-top: 2px;
    font-size: 14px;
}

.progress-fill {
    background-color: #5B7C3D;
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.question-container {
    display: none;
}

.question-container.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.question {
    margin-bottom: 5px;
    padding: 10px;
    border-left: 4px solid #5B7C3D;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.question h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.4;
}

.options {
    margin-top: 8px;
}

.option {
    margin: 5px 0;
    display: flex;
    align-items: flex-start;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

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

.option input[type="checkbox"] {
    margin-top: 2px;
    margin-right: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

.option label {
    cursor: pointer;
    color: #0066CC;
    flex: 1;
    font-size: 15px;
    line-height: 1.4;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.btn {
    background-color: #5B7C3D;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s;
    font-weight: bold;
}

.btn:hover {
    background-color: #4A6632;
}

.btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-success {
    background-color: #27ae60;
}

.btn-success:hover {
    background-color: #229954;
}

.btn-hint {
    background-color: #f39c12;
    color: white;
    font-size: 14px;
    padding: 7px 14px;
    margin-top: 8px;
    display: inline-block;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-hint:hover {
    background-color: #e67e22;
}

.btn-hint:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.hint-container {
    margin-top: 8px;
    padding: 10px;
    background-color: #fff3cd;
    border-left: 3px solid #f39c12;
    border-radius: 4px;
    display: none;
    font-size: 14px;
    line-height: 1.5;
}

.hint-container.visible {
    display: block;
}

.hint-container strong {
    color: #856404;
}

#results {
    display: none;
    text-align: center;
    padding: 20px;
    background-color: #ecf0f1;
    border-radius: 10px;
    margin-top: 15px;
}

#results h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
}

.score-display {
    font-size: 44px;
    font-weight: bold;
    color: #5B7C3D;
    margin: 15px 0;
}

.score-on-20 {
    font-size: 32px;
    color: #2c3e50;
    margin-top: 10px;
    font-weight: bold;
}

.hint-usage-summary {
    background-color: #fff3cd;
    padding: 10px;
    margin: 15px 0;
    border-radius: 5px;
    border-left: 4px solid #f39c12;
}

.hint-usage-summary p {
    margin: 5px 0;
    font-size: 15px;
    color: #856404;
}

.correct {
    color: #27ae60;
    font-weight: bold;
}

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

.warning {
    color: #e67e22;
    font-size: 16px;
}

.danger {
    color: #c0392b;
    font-size: 16px;
}

.hidden {
    display: none !important;
}

.feedback {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 15px;
}

.feedback.correct-feedback {
    background-color: #d5f5e3;
    border-left: 4px solid #27ae60;
}

.feedback.incorrect-feedback {
    background-color: #fadbd8;
    border-left: 4px solid #e74c3c;
}

.attempts-counter {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 17px;
    color: #2c3e50;
}

.correct-answer {
    background-color: #d5f5e3;
    border-left: 3px solid #27ae60;
    padding: 12px;
    margin-top: 10px;
    border-radius: 5px;
}

.summary {
    margin-top: 20px;
    border-top: 2px solid #bdc3c7;
    padding-top: 15px;
}

.summary h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 15px;
}

#correct-answers-summary {
    text-align: left;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
    border: 2px solid #5B7C3D;
}

.consignes {
    background-color: #fff8dc;
    padding: 10px;
    margin-bottom: 12px;
    border-left: 4px solid #5B7C3D;
    border-radius: 5px;
}

.consignes p {
    margin: 0;
    font-style: italic;
    color: #333;
    font-size: 15px;
}

.btn-print {
    background-color: #3498db;
    margin-top: 10px;
}

.btn-print:hover {
    background-color: #2980b9;
}

/* Styles pour l'impression PDF */
@media print {
    body {
        background-color: white;
        max-width: 100%;
        padding: 10px;
    }
    
    .quiz-container {
        box-shadow: none;
        padding: 5px;
    }
    
    .navigation-buttons,
    .btn,
    .btn-hint,
    .progress-container,
    .attempts-counter {
        display: none !important;
    }
    
    .question-container {
        display: block !important;
        page-break-inside: avoid;
        margin-bottom: 10px;
    }
    
    .question {
        padding: 5px;
        margin-bottom: 8px;
    }
    
    .question h3 {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .option {
        margin: 2px 0;
        padding: 2px;
    }
    
    .option label {
        font-size: 11px;
    }
    
    .hint-container {
        display: none !important;
    }
    
    .feedback {
        font-size: 11px;
        padding: 5px;
        margin-top: 5px;
    }
    
    #results {
        page-break-before: avoid;
        padding: 10px;
    }
    
    #results h2 {
        font-size: 16px;
    }
    
    .score-display {
        font-size: 24px;
    }
    
    .score-on-20 {
        font-size: 18px;
    }
    
    .header-banner h1 {
        font-size: 16px;
    }
    
    .header-banner h2 {
        font-size: 14px;
    }
    
    .subtitle-banner h3 {
        font-size: 12px;
    }
    
    .consignes p {
        font-size: 11px;
    }
    
    #correct-answers-summary {
        display: none !important;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .quiz-container {
        padding: 15px;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .header-banner h1 {
        font-size: 22px;
    }
    
    .header-banner h2 {
        font-size: 18px;
    }
}

/* Pied de page */
footer {
    background-color: #f0f0f0;
    text-align: center;
    padding: 10px;
    color: #666;
    font-size: 12px;
    width: 100%;
}