/* Auto-évaluation PME IT - Styles */
#auto-eval-pme-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Barre de progression */
.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007cba 0%, #0073aa 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 25%;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Questions - IMPORTANT : Une seule question visible à la fois */
.question-step {
    display: none !important;
    animation: fadeIn 0.3s ease-in;
}

.question-step.active {
    display: block !important;
}

.question-step h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 28px;
}

.question-step p {
    color: #666;
    margin-bottom: 25px;
    font-size: 16px;
}

/* Options radio personnalisées */
.radio-group {
    margin-bottom: 30px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.radio-option:hover {
    border-color: #007cba;
    background: #f8f9fa;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    background: #007cba;
    border-color: #007cba;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    opacity: 1;
}

.radio-option input[type="radio"]:checked ~ .option-content strong {
    color: #007cba;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 15px;
    margin-top: 2px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.option-content strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    color: #2c3e50;
}

.option-content small {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Formulaire de coordonnées */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #007cba;
}

/* Boutons */
.button-group {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.btn-next, .btn-prev, .btn-submit {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-next, .btn-submit {
    background: #007cba;
    color: white;
    margin-left: auto;
}

.btn-next:hover, .btn-submit:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.btn-prev {
    background: #6c757d;
    color: white;
}

.btn-prev:hover {
    background: #545b62;
}

/* Page de résultats */
#resultsPage {
    text-align: center;
    padding: 40px 20px;
}

.results-header {
    margin-bottom: 30px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    font-weight: bold;
    color: white !important;
    background: #007cba !important; /* Couleur par défaut */
    border: 3px solid #005a87;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

/* Couleurs selon le niveau - avec !important pour forcer l'application */
.score-circle.score-a-risque { 
    background: #dc3545 !important; 
    border-color: #c82333 !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3) !important;
}

.score-circle.score-a-ameliorer { 
    background: #ffc107 !important; 
    border-color: #e0a800 !important;
    color: #212529 !important; 
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3) !important;
}

.score-circle.score-correct { 
    background: #28a745 !important; 
    border-color: #1e7e34 !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
}

.results-details {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: left;
}

.question-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
}

.question-detail:last-child {
    border-bottom: none;
}

.question-score {
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 20px;
    color: white;
    min-width: 60px;
    text-align: center;
}

.score-0 { background: #dc3545; }
.score-1 { background: #ffc107; color: #212529; }
.score-2 { background: #28a745; }

.print-button {
    background: #17a2b8;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

.print-button:hover {
    background: #138496;
}

/* Responsive */
@media (max-width: 768px) {
    #auto-eval-pme-container {
        padding: 15px;
    }
    
    .radio-option {
        padding: 12px;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .btn-next, .btn-prev, .btn-submit {
        width: 100%;
        margin: 0;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Styles pour l'impression */
@media print {
    .print-button, .btn-next, .btn-prev, .btn-submit {
        display: none !important;
    }
    
    #auto-eval-pme-container {
        max-width: none;
        padding: 0;
    }
    
    .results-header h1 {
        color: #000 !important;
    }
}

/* Page de résultats - STYLES MANQUANTS */
#resultsPage {
    text-align: center;
    padding: 40px 20px;
    background: white;
    color: #333;
}

.results-header {
    margin-bottom: 30px;
}

.results-header h1 {
    color: #2c3e50 !important;
    font-size: 36px;
    margin-bottom: 20px;
}

.results-header h2 {
    color: #2c3e50 !important;
    font-size: 24px;
    margin: 20px 0;
}

.results-header p {
    color: #666 !important;
    font-size: 18px;
    margin: 10px 0;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    font-weight: bold;
    color: white !important;
    background: #007cba;
    border: 3px solid #005a87;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

/* Couleurs selon le niveau */
.score-a-risque { 
    background: #dc3545 !important; 
    border-color: #c82333 !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3) !important;
}

.score-a-ameliorer { 
    background: #ffc107 !important; 
    border-color: #e0a800 !important;
    color: #212529 !important; 
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3) !important;
}

.score-correct { 
    background: #28a745 !important; 
    border-color: #1e7e34 !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
}

.results-details {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: left;
    border: 1px solid #dee2e6;
}

.results-details h3 {
    color: #2c3e50 !important;
    margin-bottom: 20px;
    font-size: 22px;
}

.question-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #dee2e6;
    color: #333 !important;
}

.question-detail:last-child {
    border-bottom: none;
}

.question-detail span:first-child {
    color: #2c3e50 !important;
    font-weight: 500;
}

.question-score {
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 20px;
    color: white !important;
    min-width: 60px;
    text-align: center;
}

.score-0 { 
    background: #dc3545 !important; 
}

.score-1 { 
    background: #ffc107 !important; 
    color: #212529 !important; 
}

.score-2 { 
    background: #28a745 !important; 
}

.recommendations {
    margin: 30px 0;
    text-align: left;
}

.recommendations h3 {
    color: #2c3e50 !important;
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
}

.recommendations h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.recommendations p {
    color: #333 !important;
    line-height: 1.6;
    margin-bottom: 15px;
}

.recommendations ul {
    color: #333 !important;
    padding-left: 20px;
    margin-bottom: 15px;
}

.recommendations li {
    color: #333 !important;
    margin-bottom: 8px;
    line-height: 1.5;
}

.print-button {
    background: #17a2b8 !important;
    color: white !important;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(23, 162, 184, 0.3);
}

.print-button