/* ============================================ */
/* DIAGNOSTIQUEUR INTELLIGENT                   */
/* ============================================ */

.diagnostic-section {
    padding: 120px 0 60px;
    background: var(--bg-primary);
    min-height: 100vh;
    transition: background 0.3s ease;
}

.diagnostic-card {
    max-width: 860px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 40px 36px;
    box-shadow: var(--shadow-sm);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.step {
    display: none;
    animation: fadeStep 0.4s ease;
}

.step.active {
    display: block;
}

@keyframes fadeStep {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.step h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.step h4 i {
    color: var(--primary-blue);
    margin-right: 12px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.option-btn {
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 14px 10px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    text-align: center;
}

.option-btn i {
    font-size: 1.4rem;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

.option-btn:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.05);
}

.option-btn.selected {
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.04);
    color: var(--text-primary);
}

.option-btn.selected i {
    color: var(--primary-blue);
}

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

.step-nav .btn-primary {
    background: var(--gradient-main);
    border: none;
    padding: 10px 32px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.step-nav .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}

.step-nav .btn-secondary {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 10px 32px;
    font-weight: 500;
}

.step-nav .btn-secondary:hover {
    background: var(--bg-card-hover);
}

/* Résultats */
.diagnostic-result {
    max-width: 860px;
    margin: 40px auto 0;
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.diagnostic-result h3 {
    margin-bottom: 24px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.result-card {
    background: var(--bg-secondary);
    padding: 20px 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.result-card i {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.result-card h5 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.result-card p {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
}

.result-card small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.chart-container {
    max-width: 500px;
    margin: 0 auto;
}

/* Mode clair */
body[data-theme="light"] .diagnostic-card,
body[data-theme="light"] .diagnostic-result {
    background: #ffffff;
}

body[data-theme="light"] .option-btn {
    background: #f8fafc;
}

body[data-theme="light"] .option-btn.selected {
    background: #eff6ff;
}

body[data-theme="light"] .result-card {
    background: #f8fafc;
}

/* Responsive */
@media (max-width: 576px) {
    .diagnostic-card {
        padding: 24px 16px;
    }
    .options-grid {
        grid-template-columns: 1fr 1fr;
    }
    .result-grid {
        grid-template-columns: 1fr 1fr;
    }
    .step-nav .btn-primary,
    .step-nav .btn-secondary {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}