/* ============================================
   FIDUCIA — Hypothèses & Paramètres fiscaux
   ============================================ */

/* ── Wrapper ──────────────────────────────── */
.hyp-body-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 0 5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ── Légende ──────────────────────────────── */
.hyp-legend {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
    padding: 0 0 1.5rem;
}
.hyp-legend-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-sans);
    font-size: 0.77rem;
    color: var(--gris-mid);
}

/* ── Dot status ───────────────────────────── */
.hyp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}
.hyp-dot--auto { background: #4CAF88; }
.hyp-dot--db   { background: var(--or); }
.hyp-dot--loi  { background: var(--gris-mid); }

/* ── Section card ─────────────────────────── */
.hyp-section {
    background: var(--blanc-pur);
    border: 1.5px solid rgba(14, 14, 14, 0.1);
    margin-top: 1.5rem;
}
.hyp-section:first-of-type { margin-top: 0; }

.hyp-section-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(14, 14, 14, 0.07);
    background: rgba(14, 14, 14, 0.015);
}
.hyp-section-head .hyp-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}
.hyp-section-label {
    font-family: var(--font-sans);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gris-mid);
    margin-bottom: 0.2rem;
}
.hyp-section-title {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--noir);
    font-weight: 400;
}
.hyp-warn-inline {
    font-size: 0.73rem;
    color: #c05050;
    margin-left: 0.75rem;
}

/* ── Sub-section ──────────────────────────── */
.hyp-subsection {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(14, 14, 14, 0.05);
}
.hyp-subsection:first-of-type {
    border-top: none;
}
.hyp-sub-title {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--or-dark);
    margin-bottom: 1rem;
    font-weight: 500;
}

/* ── Barème IR ────────────────────────────── */
.hyp-bareme {
    margin-bottom: 0.25rem;
}
.hyp-bareme-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(14, 14, 14, 0.04);
    gap: 1.5rem;
}
.hyp-bareme-row:last-child { border-bottom: none; }
.hyp-bareme-tranche {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--noir);
    flex: 1;
}
.hyp-bareme-row--zero .hyp-bareme-tranche { color: var(--gris-mid); }
.hyp-bareme-taux {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--noir);
    min-width: 55px;
    text-align: right;
}
.hyp-bareme-row--zero .hyp-bareme-taux { color: var(--gris-mid); }

/* ── Rows de paramètres ───────────────────── */
.hyp-param-row {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(14, 14, 14, 0.04);
}
.hyp-param-row:last-child { border-bottom: none; }

.hyp-param-row--sub {
    margin-top: 0.75rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(14, 14, 14, 0.07);
}

.hyp-param-row--total {
    background: rgba(201, 168, 76, 0.06);
    padding: 0.6rem 0.75rem;
    margin: 0.25rem -0.75rem;
    border-bottom: none;
}
.hyp-param-row--total .hyp-param-name { font-weight: 500; }

.hyp-param-name {
    flex: 1;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--noir);
}
.hyp-param-val {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--noir);
    white-space: nowrap;
    min-width: 130px;
    text-align: right;
}
.hyp-param-modules {
    font-family: var(--font-sans);
    font-size: 0.68rem;
    color: var(--gris-mid);
    letter-spacing: 0.04em;
    white-space: nowrap;
    min-width: 100px;
    text-align: right;
}

/* ── Note auto ────────────────────────────── */
.hyp-auto-block {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}
.hyp-auto-meta {
    flex: 1;
}
.hyp-auto-name {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--noir);
    margin-bottom: 0.35rem;
}
.hyp-auto-desc {
    font-family: var(--font-sans);
    font-size: 0.77rem;
    color: var(--gris-mid);
    line-height: 1.55;
}
.hyp-auto-desc code {
    font-size: 0.82em;
    background: rgba(14, 14, 14, 0.06);
    padding: 0.1em 0.4em;
    border-radius: 3px;
}
.hyp-auto-val {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--noir);
    white-space: nowrap;
}

/* ── Badges de statut (sous la valeur auto) ─ */
.hyp-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    margin-top: 0.75rem;
}
.hyp-source-badge--ok {
    background: rgba(76, 175, 136, 0.1);
    color: #3a8a62;
    border: 1px solid rgba(76, 175, 136, 0.25);
}
.hyp-source-badge--warn {
    background: rgba(224, 112, 112, 0.08);
    color: #c05050;
    border: 1px solid rgba(224, 112, 112, 0.2);
}

/* ── Note d'information ───────────────────── */
.hyp-info-note {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--gris-mid);
    line-height: 1.6;
    padding: 0.75rem 1rem;
    background: rgba(201, 168, 76, 0.05);
    border-left: 2px solid rgba(201, 168, 76, 0.3);
    margin-top: 0.75rem;
}

/* ── Note de bas de page ──────────────────── */
.hyp-footer-note {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: var(--blanc-pur);
    border: 1.5px solid rgba(14, 14, 14, 0.08);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--gris-mid);
    line-height: 1.7;
    margin-top: 1.5rem;
}
.hyp-footer-note svg {
    flex-shrink: 0;
    margin-top: 0.1rem;
    opacity: 0.45;
}
.hyp-footer-note strong { color: var(--noir); }

/* ── Responsive ───────────────────────────── */
@media (max-width: 960px) {
    .hyp-body-inner {
        padding: 2rem 1.25rem 3rem;
    }
    .hyp-section-head,
    .hyp-subsection {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
@media (max-width: 640px) {
    .hyp-param-modules { display: none; }
    .hyp-param-val { min-width: 90px; font-size: 0.9rem; }
    .hyp-auto-val { font-size: 1.25rem; }
    .hyp-legend { gap: 1rem; }
}
