/* Calculateur de Rendement & CAGR */
.roi-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);
}

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

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

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

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

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

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

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

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

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

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

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

.roi-positive {
    color: #0a7d2f;
    font-weight: 600;
}

.roi-negative {
    color: #c0392b;
    font-weight: 600;
}

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

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

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