.quiz-comparison-container {
    margin: 15px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.quiz-comparison-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #ff8c00;
    font-weight: 600;
}

.quiz-comparison-chart-wrapper {
    position: relative;
    min-height: 300px;
    margin-bottom: 10px;
}

/* Si la hauteur est auto (par défaut) */
.quiz-comparison-chart-wrapper:not([style*="height"]) {
    height: 350px;
}

.quiz-comparison-chart {
    width: 100%;
    height: 100%;
}

.quiz-comparison-questions-legend {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.9em;
}

.quiz-comparison-questions-legend h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333;
}

.quiz-comparison-questions-legend ul {
    list-style-type: none;
    padding-left: 10px;
    margin: 0;
}

.quiz-comparison-questions-legend li {
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Styles spécifiques pour les différents types de graphiques */
[data-chart-type="radar"] .quiz-comparison-chart-wrapper {
    margin-bottom: 15px;
}

[data-chart-type="stacked"] .quiz-comparison-chart-wrapper {
    margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quiz-comparison-chart-wrapper {
        height: 350px;
    }
    
    .quiz-comparison-title {
        font-size: 1.3em;
    }
    
    .quiz-comparison-questions-legend {
        padding: 10px;
    }
    
    .quiz-comparison-questions-legend h4 {
        font-size: 1em;
    }
    
    .quiz-comparison-questions-legend ul {
        padding-left: 5px;
    }
    
    .quiz-comparison-questions-legend li {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .quiz-comparison-chart-wrapper {
        height: 300px;
    }
    
    .quiz-comparison-title {
        font-size: 1.1em;
    }
    
    .quiz-comparison-container {
        padding: 15px;
    }
    
    .quiz-comparison-questions-legend {
        padding: 8px;
    }
    
    .quiz-comparison-questions-legend h4 {
        font-size: 0.9em;
    }
    
    .quiz-comparison-questions-legend li {
        font-size: 0.8em;
        margin-bottom: 3px;
    }
}

/* Couleurs pour les différentes valeurs */
.level-1 {
    color: #d32f2f;
}

.level-2 {
    color: #ff9800;
}

.level-3 {
    color: #ffc107;
}

.level-4 {
    color: #8bc34a;
}

.level-5 {
    color: #4caf50;
}

/* Styles pour l'affichage des améliorations */
.quiz-improvement-detail {
    margin-top: 20px;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quiz-improvement-detail h4 {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.quiz-improvement-detail table {
    width: 100%;
    border-collapse: collapse;
}

.quiz-improvement-detail th, 
.quiz-improvement-detail td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.quiz-improvement-detail th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.positive-change {
    color: #4caf50;
    font-weight: bold;
}

.negative-change {
    color: #f44336;
    font-weight: bold;
}

.no-change {
    color: #757575;
}

/* Styles pour le barème de compréhension centralisé */
.quiz-scale-container {
    margin: 20px 0;
    padding: 15px;
    background-color: #f0f0f0;
    border-radius: 8px;
}

.quiz-scale-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333;
    font-weight: 600;
}

.quiz-scale-content ul {
    list-style-type: none;
    padding-left: 10px;
    margin: 0;
}

.quiz-scale-content li {
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Améliorer l'espacement entre les blocs */
.progress-analysis > div {
    margin-bottom: 20px;
}