/**
 * Styles pour le module d'aide au choix statutaire
 */

.statut-aide-module {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
    font-family: 'Poppins', 'Montserrat', sans-serif;
}

/* Wizard */
.statut-aide-wizard {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wizard-header {
    margin-bottom: 32px;
}

.wizard-header h2 {
    margin: 0 0 16px 0;
    color: #1f2937;
    font-size: 1.75rem;
}

.wizard-progress {
    margin-top: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5b6fff 0%, #3942c1 100%);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.wizard-section h3 {
    margin: 0 0 24px 0;
    color: #111827;
    font-size: 1.5rem;
}

.wizard-questions {
    margin-bottom: 32px;
}

.question {
    margin-bottom: 32px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.question.hidden {
    display: none !important;
}

.question-label {
    display: block;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    font-size: 1rem;
}

.question-label .required {
    color: #ef4444;
    margin-left: 4px;
}

.question-help {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 12px;
    font-style: italic;
}

.question-options {
    margin-top: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    border-color: #5b6fff;
    background: #f0f4ff;
}

.radio-option input[type="radio"] {
    margin-right: 12px;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: #5b6fff;
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: #5b6fff;
    background: #f0f4ff;
}

.question-options select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.question-options select:focus {
    outline: none;
    border-color: #5b6fff;
}

.wizard-navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #e5e7eb;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

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

.btn-prev {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.btn-prev:hover:not(:disabled) {
    background: #edf2f7;
    color: #2d3748;
}

.btn-next,
.btn-primary {
    background: linear-gradient(135deg, #5b6fff 0%, #3942c1 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(91, 111, 255, 0.25);
}

.btn-next:hover,
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(91, 111, 255, 0.35);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Résultats */
.statut-aide-results {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.results-header {
    margin-bottom: 32px;
    text-align: center;
}

.results-header h2 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 1.75rem;
}

.results-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

.results-top3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.result-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
}

.result-card:hover {
    border-color: #5b6fff;
    box-shadow: 0 4px 12px rgba(91, 111, 255, 0.15);
}

.result-card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.result-rank {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 8px;
}

.badge-gold {
    background: #fef3c7;
    color: #92400e;
}

.badge-silver {
    background: #e5e7eb;
    color: #374151;
}

.badge-bronze {
    background: #fde68a;
    color: #78350f;
}

.result-card-header h3 {
    margin: 8px 0;
    color: #111827;
    font-size: 1.25rem;
}

.result-score {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 600;
}

.result-card-body {
    font-size: 0.9375rem;
}

.result-description {
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

.result-advantages,
.result-disadvantages {
    margin-bottom: 20px;
}

.result-advantages h4,
.result-disadvantages h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #111827;
}

.result-advantages ul,
.result-disadvantages ul {
    margin: 0;
    padding-left: 20px;
    color: #4b5563;
}

.result-advantages li {
    color: #059669;
}

.result-disadvantages li {
    color: #dc2626;
}

.result-simulation {
    margin: 20px 0;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.result-simulation h4 {
    margin: 0 0 12px 0;
    font-size: 0.9375rem;
    color: #111827;
}

.simulation-table {
    width: 100%;
    border-collapse: collapse;
}

.simulation-table td {
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.simulation-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.btn-choose {
    width: 100%;
    margin-top: 16px;
}

.results-actions {
    text-align: center;
    margin: 32px 0;
    padding-top: 24px;
    border-top: 2px solid #e5e7eb;
}

.results-assumptions {
    margin-top: 32px;
    padding: 20px;
    background: #fef3c7;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.results-assumptions h4 {
    margin: 0 0 12px 0;
    color: #92400e;
    font-size: 1rem;
}

.results-assumptions ul {
    margin: 0 0 12px 0;
    padding-left: 20px;
    color: #78350f;
}

.disclaimer {
    margin: 12px 0 0 0;
    font-size: 0.875rem;
    color: #92400e;
    font-style: italic;
}

/* Encart choix */
.statut-aide-choice {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.choice-card {
    text-align: center;
}

.choice-card h3 {
    margin: 0 0 20px 0;
    color: #111827;
    font-size: 1.5rem;
}

.choice-content {
    padding: 24px;
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 8px;
}

.choice-content p {
    margin: 8px 0;
    color: #166534;
    font-size: 1rem;
}

.choice-content p strong {
    font-size: 1.125rem;
    color: #065f46;
}

/* Mode debug */
.statut-aide-module.debug-mode {
    background: #fef2f2;
    border: 2px solid #ef4444;
    padding: 24px;
}

.debug-panel {
    margin-top: 32px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 2px solid #ef4444;
}

.debug-panel h3 {
    margin: 0 0 16px 0;
    color: #dc2626;
}

.debug-section {
    margin-bottom: 24px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 6px;
}

.debug-section h4 {
    margin: 0 0 12px 0;
    color: #111827;
    font-size: 1rem;
}

.debug-section pre {
    margin: 0;
    padding: 12px;
    background: #1f2937;
    color: #f9fafb;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .statut-aide-module {
        padding: 16px;
    }

    .statut-aide-wizard,
    .statut-aide-results,
    .statut-aide-choice {
        padding: 20px;
    }

    .results-top3 {
        grid-template-columns: 1fr;
    }

    .wizard-navigation {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Erreurs */
.error {
    color: #dc2626;
    padding: 16px;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

/* Alertes de risque financier */
.result-warnings {
    margin-bottom: 24px;
    padding: 16px;
    background: #fef8f3;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.result-warnings h4 {
    margin: 0 0 12px 0;
    color: #92400e;
    font-size: 1rem;
    font-weight: 600;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.alert:last-child {
    margin-bottom: 0;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}
