@font-face {
    font-family: 'Figtree';
    font-style: normal;
    font-weight: 300 900;
    src: url(./font/figtree.woff2) format('woff2');
}
@font-face {
    font-family: 'Figtree';
    font-style: italic;
    font-weight: 300 900;
    src: url(./font/figtree-italic.woff2) format('woff2');
}

:root {
    --primary-color: #0E0E0C;
    --secondary-color: #4facfe;
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, #481700 100%);
    --secondary-gradient: linear-gradient(90deg, rgba(255, 189, 27, 0.00) 0%, #FFBD1B 100%), #F7931D;
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --active-gradient: linear-gradient(180deg, rgba(229, 229, 225, 0.00) 0%, #E5E5E1 100%), #F4F4F1;
    --text-dark: var(--primary-color);
    --text-medium: #67645A;
    --text-light: #6c757d;
    --border-color: #908d7f;
    --error-color: #e74c3c;
    --icon-color: #ba0d61;
    --font-family-system-sans-serif:
        'Figtree',
        system-ui,
        -apple-system,
        'Segoe UI',
        roboto,
        'Helvetica Neue',
        'Noto Sans',
        'Liberation Sans',
        arial,
        sans-serif,
        'Apple Color Emoji',
        'Segoe UI Emoji',
        'Segoe UI Symbol',
        'Noto Color Emoji';
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-system-sans-serif, 'sans-serif');
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
    line-height: 1.6;
}

.form-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 900px;
    width: 100%;
}

h1 {
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    font-weight: 700;
}

/* Progress Steps */
.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;
}

/* Form Steps */
.form-step {
    display: none;
    min-height: 350px;
}

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

.question-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 16px;
}

.required {
    color: var(--error-color);
    font-weight: 700;
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6em;
    transition: all 0.3s ease;
    background-color: #fff;
    font-family: inherit;
}

select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6em;
    transition: all 0.3s ease;
    background-color: #fff;
    font-family: inherit;
}

.form-input:focus, select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.1);
}

/* Radio Buttons */
.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);
}

/* Two-step Sector Selection */
.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);
}

/* Info pour les secteurs uniques */
.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;
}

/* Email and Phone Grid */
.email-phone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

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

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

/* Navigation Buttons */
.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;
}

/* Privacy Notice */
.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;
}

/* Error Messages */
.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 8px;
    display: none;
    font-weight: 500;
}

.error-message.show {
    display: block;
}

/* Consent Checkbox */
.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;
}

/* Responsive */
@media (max-width: 768px) {
    .form-container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 26px;
    }

    .question-title {
        font-size: 22px;
    }

    .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%;
    }
}

/* Result Styles */
.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;
}

/* Services Section */
.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;
}

/* CTA Section */
.cta-section {
    margin-top: 60px;
    margin-bottom: 40px;
}

.cta-box {
    background: var(--primary-gradient);
    color: white;
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    text-align: center;
}

.cta-box h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: white;
}

.cta-box p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    padding: 18px 40px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.cta-button.primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

/* Loading */
.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); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    padding: 40px;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.5em;
}

.disclaimer {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.disclaimer h3 {
    color: #856404;
    margin-bottom: 10px;
}

.disclaimer p {
    color: #856404;
    font-size: 0.95em;
}

.level-indicator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.level-indicator h2 {
    margin-bottom: 10px;
}

.questions-progress {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-text {
    font-size: 1.1em;
    font-weight: 600;
    color: #495057;
}

.ignore-count {
    color: #ff6b6b;
    font-weight: 600;
}

.function-section {
    margin-bottom: 40px;
}

.function-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.function-icon {
    font-size: 1.4em;
}

.question-block {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.question-block.basique {
    border-left-color: #28a745;
}

.question-block.important {
    border-left-color: #ffc107;
}

.question-block.essentiel {
    border-left-color: #dc3545;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.question-title {
    font-weight: 600;
    font-size: 1.1em;
    color: #333;
    flex: 1;
}

.badges-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.level-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.level-badge.basique {
    background: #d4edda;
    color: #155724;
}

.level-badge.important {
    background: #fff3cd;
    color: #856404;
}

.level-badge.essentiel {
    background: #f8d7da;
    color: #721c24;
}

.reference-badge {
    background: #e9ecef;
    color: #495057;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.question-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.response-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.response-option {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.response-option:hover {
    background: #f0f4ff;
    border-color: #667eea;
}

.response-option.selected {
    background: #f0f4ff;
    border-color: #667eea;
}

.response-option.ignore-option {
    background: #fff5f5;
    border: 2px dashed #ff6b6b;
}

.response-option.ignore-option:hover {
    background: #ffe0e0;
    border-color: #ff6b6b;
}

.response-option input[type="radio"] {
    margin-right: 15px;
}

.response-label {
    flex: 1;
    color: #333;
}

.check-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
    margin: 40px auto;
}

.check-button:hover {
    transform: translateY(-2px);
}

.score-display {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-top: 30px;
}

.score-value {
    font-size: 72px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.score-bar {
    width: 100%;
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 30px;
}

.score-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 1s ease;
}

.ignore-info {
    background: #fff5f5;
    border: 2px solid #ff6b6b;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.ignore-info h4 {
    color: #c53030;
    margin-bottom: 10px;
}

.ignore-info p {
    color: #742a2a;
}

.results-details {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.result-category {
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-score {
    font-size: 24px;
    font-weight: bold;
}

.chart-container {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
}

.chart-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
}

.bar-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 250px;
    padding: 20px;
    border-bottom: 2px solid #dee2e6;
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 120px;
}

.bar {
    width: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px 5px 0 0;
    transition: height 1s ease;
    position: relative;
}

.bar-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    color: #333;
}

.bar-label {
    margin-top: 10px;
    text-align: center;
    font-size: 0.9em;
    color: #666;
    line-height: 1.3;
}

.interpretation {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
}

.interpretation-level {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.interpretation-message {
    color: #666;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .question-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .badges-container {
        flex-wrap: wrap;
    }
    
    .bar-chart {
        flex-direction: column;
        height: auto;
        align-items: center;
    }
    
    .bar-group {
        width: 100%;
        max-width: none;
        margin-bottom: 20px;
    }
    
    .bar {
        height: 40px !important;
        width: 100%;
    }
    
    .bar-value {
        top: 50%;
        transform: translate(-50%, -50%);
        color: white;
    }
}
