/* Calculateur de Taux d'Endettement */
.det-calculator {
    max-width: 560px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-sans);
}

.det-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.det-field {
    display: flex;
    flex-direction: column;
}

.det-field label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.det-field label em {
    font-weight: 400;
    font-style: italic;
    color: var(--color-text-muted);
}

.det-field input {
    padding: 0.6rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1rem;
}

.det-submit {
    grid-column: 1 / -1;
    padding: 0.75rem;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.det-submit:hover {
    background: rgba(var(--color-accent-rgb), 0.85);
}

.det-results {
    margin-top: 1.5rem;
}

.det-results h3 {
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
}

.det-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-card-bg);
    border-radius: 4px;
    overflow: hidden;
}

.det-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.det-table tr.det-total td {
    font-weight: 700;
    font-size: 1.05rem;
    border-bottom: none;
    background: var(--color-category-badge-bg);
}

.det-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
}

.det-good {
    background: #e6f6ec;
    color: #0a7d2f;
    border: 1px solid #b7e4c7;
}

.det-warn {
    background: #fff7e0;
    color: #9a6b00;
    border: 1px solid #f0db9e;
}

.det-bad {
    background: #fdecec;
    color: #c0392b;
    border: 1px solid #f2c1bc;
}

.det-note {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.det-error {
    color: #c00;
    font-weight: 500;
}

@media (max-width: 480px) {
    .det-form { grid-template-columns: 1fr; }
}
