/* ==================================== */
/* 1. PROGRESS STEPS (INDEX UNIQUEMENT) */
/* ==================================== */
.progress-container {
    margin-bottom: 60px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-line {
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: rgba(0,0,0,0.08);
    z-index: 0;
}

.progress-line-fill {
    height: 100%;
    background: var(--secondary-gradient);
    transition: width 0.5s ease;
    border-radius: 2px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-icon.completed {
    background: var(--success-gradient);
    color: white;
    box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
}

.step-icon.active {
    background: var(--active-gradient);
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transform: scale(1.15);
}

.step-icon.inactive {
    background-color: #f8f9fa;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.step-label {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
}

.step-item.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step-item.completed .step-label {
    color: #11998e;
    font-weight: 600;
}

/* ==================================== */
/* 2. FORM STEPS (INDEX UNIQUEMENT)     */
/* ==================================== */
.form-step {
    display: none;
    min-height: 350px;
}

.form-step.active {
    display: block;
}

/* ==================================== */
/* 3. RADIO BUTTONS (INDEX UNIQUEMENT)  */
/* ==================================== */
.modern-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.modern-radio-group input[type="radio"] {
    display: none;
}

.radio-label {
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 15px;
    background-color: #fff;
    color: var(--text-dark);
    text-align: center;
    display: block;
}

.radio-label:hover {
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.2);
}

.modern-radio-group input[type="radio"]:checked + .radio-label {
    background: var(--secondary-gradient);
    border-color: transparent;
    color: var(--text-dark);
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}

/* Style pour les secteurs uniques pré-sélectionnés */
.modern-radio-group input[type="radio"]:checked + .radio-label[style*="pointer-events: none"] {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    cursor: default;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

/* ==================================== */
/* 4. SECTEUR SELECTION (INDEX UNIQUE)  */
/* ==================================== */
.main-sectors {
    margin-bottom: 30px;
}

.main-sectors .modern-radio-group {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.main-sector-label {
    font-size: 14px;
    padding: 16px 20px;
    font-weight: 600;
}

.subsector-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px;
    margin-top: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: none;
}

.subsector-container.show {
    display: block;
}

.subsector-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
}

.single-sector-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f4f8 100%);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-medium);
    border: 1px solid #b3d4fc;
}

.subsector-group {
    display: none;
}

.subsector-group.show {
    display: block;
}

/* ==================================== */
/* 5. FORM LAYOUT (INDEX UNIQUE)        */
/* ==================================== */
.email-phone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.other-input {
    margin-top: 20px;
    display: none;
}

.other-input.show {
    display: block;
}

/* ==================================== */
/* 6. NAVIGATION BUTTONS (INDEX UNIQUE) */
/* ==================================== */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    gap: 20px;
}

.navigation-buttons-center {
    justify-content: center;
}

.nav-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 48px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-align {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.btn-icon {
    color: var(--icon-color);
    width: 1.5em;
    height: 1.5em;
}

.btn-prev {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.btn-prev .btn-icon {
    color: white;
}

.btn-prev:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

.btn-next, .btn-submit {
    background: var(--secondary-gradient);
    color: var(--text-dark);
}

.btn-next:hover, .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
}

.btn-prev:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==================================== */
/* 7. PRIVACY NOTICE (INDEX UNIQUE)     */
/* ==================================== */
.privacy-notice {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3f4f6 100%);
    border-left: 5px solid #2196f3;
    padding: 25px;
    margin: 30px 0;
    font-size: 15px;
    color: var(--text-medium);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.1);
}

.privacy-notice h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1976d2;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
}

.privacy-notice p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.privacy-notice p:last-child {
    margin-bottom: 0;
}

.intro-text {
    margin: 0 auto 40px auto;
    padding: 25px 30px;
    
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid #eee;
    
    color: var(--text-medium);
    font-size: 1.1em;
    line-height: 1.6;
    text-align: center;
    
    position: relative;
    overflow: hidden;  
    padding-top: 40px; 
}

.intro-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--secondary-gradient);
}

.intro-text p + p {
    margin-top: 15px;
}

.intro-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ==================================== */
/* 8. CONSENT CHECKBOX (INDEX UNIQUE)   */
/* ==================================== */
.consent-checkbox {
    display: flex;
    align-items: flex-start;
    margin-top: 30px;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.consent-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: var(--secondary-color);
    cursor: pointer;
}

.consent-checkbox label {
    cursor: pointer;
    line-height: 1.5;
}

/* ==================================== */
/* 9. LOADING (INDEX UNIQUE)            */
/* ==================================== */
.loading {
    display: none;
    text-align: center;
    padding: 40px;
}

.loading-spinner {
    border: 4px solid rgba(0,0,0,0.1);
    border-left-color: var(--secondary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================================== */
/* 10. RESULT STYLES (INDEX UNIQUE)     */
/* ==================================== */
.result-container {
    text-align: center;
    padding: 40px 20px;
}

.result-container h2 {
    color: var(--text-dark);
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 700;
}

.result-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 16px;
    text-align: left;
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.result-item p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.result-item strong {
    color: var(--text-dark);
}

.critical {
    color: #dc3545;
    font-weight: 700;
}

.important {
    color: #fd7e14;
    font-weight: 700;
}

.info {
    color: #17a2b8;
    font-weight: 700;
}

/* ==================================== */
/* 11. SERVICES SECTION (INDEX UNIQUE)  */
/* ==================================== */
.services-section {
    margin: 50px 0;
}

.services-section h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.service-card.urgent {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    text-align: center;
}

.service-card h4 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-card ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-medium);
}

.service-card li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.service-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    margin-top: 15px;
}

/* ==================================== */
/* 12. RESPONSIVE INDEX                 */
/* ==================================== */
@media (max-width: 768px) {
    .email-phone-grid {
        grid-template-columns: 1fr;
    }

    .modern-radio-group {
        grid-template-columns: 1fr;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .nav-btn {
        width: 100%;
    }
}

@media (max-width: 500px) {
    
    .step-label {
        display: none;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .progress-line {
        top: 20px;
    }
}

/* ==================================== */
/* À VÉRIFIER - DOUBLONS DÉTECTÉS       */
/* ==================================== */
/*
ATTENTION: Les éléments ci-dessous sont DUPLIQUÉS dans nis2-riskform.css
Il faut décider s'ils doivent être :
1) Déplacés vers common.css (si utilisés dans les 2 pages)
2) Supprimés d'ici (si spécifiques aux questions)
3) Gardés ici (si spécifiques à index.html)

DOUBLONS MAJEURS À VÉRIFIER :

1. DISCLAIMER - ligne 620-636 (défini aussi dans common.css !)
.disclaimer {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

2. LEVEL INDICATOR - ligne 638-648 (semble spécifique aux questions)
.level-indicator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

3. QUESTIONS PROGRESS - ligne 651-669 (semble spécifique aux questions)
.questions-progress {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

4. FUNCTION SECTION - ligne 672-691 (semble spécifique aux questions)
.function-section {
    margin-bottom: 40px;
}
.function-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    ...
}

5. QUESTION BLOCK - ligne 693-711 (semble spécifique aux questions)
.question-block {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

6. RESPONSE OPTIONS - ligne 771-815 (semble spécifique aux questions)
.response-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.response-option {
    ...
}

7. CHECK BUTTON - ligne 817-832 (semble spécifique aux questions)
.check-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    ...
}

8. SCORE DISPLAY - ligne 834-864 (semble spécifique aux questions)
.score-display {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-top: 30px;
}

9. IGNORE INFO - ligne 866-881 (semble spécifique aux questions)
.ignore-info {
    background: #fff5f5;
    border: 2px solid #ff6b6b;
    ...
}

10. RESULTS DETAILS - ligne 883-910 (semble spécifique aux questions)
.results-details {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

11. CHART STYLES - ligne 912-966 (définis aussi dans common.css !)
.chart-container, .bar-chart, .bar-group, .bar, .bar-value, .bar-label

12. INTERPRETATION - ligne 968-985 (semble spécifique aux questions)
.interpretation {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
}

DECISION REQUISE :
- Supprimer tous ces doublons d'ici
- Les déplacer vers nis2-riskform.css s'ils sont spécifiques aux questions
- Les garder dans common.css s'ils sont partagés
*/