/* Simulateur d'impot : arbitrage versement liberatoire / bareme progressif */

/* ── Fil d'Ariane ─────────────────────────────────────────── */
.breadcrumb {
    padding: 16px 0 0;
    background: var(--bg);
}
.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--text-light);
}
.breadcrumb-list li + li::before {
    content: "›";
    margin-right: 8px;
    color: var(--text-lighter);
}
.breadcrumb-list a { color: var(--text-light); text-decoration: none; }
.breadcrumb-list a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumb-list [aria-current] { color: var(--text); font-weight: 600; }

/* ── Hero ─────────────────────────────────────────────────── */
.arb-hero {
    padding: 24px 0 32px;
    background: var(--bg);
}
.arb-title {
    font-size: 34px;
    line-height: 1.2;
    margin: 0 0 12px;
    color: var(--text);
}
.arb-subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-light);
    max-width: 780px;
    margin: 0 0 16px;
}
.arb-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 20px;
}
.arb-badge {
    display: inline-block;
    background: var(--primary-100);
    color: var(--primary-800);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    font-weight: 600;
}
.arb-tldr {
    background: var(--bg-white);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 16px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    max-width: 860px;
    box-shadow: var(--shadow-sm);
    margin: 0;
}

/* ── Verdict ──────────────────────────────────────────────── */
.arb-verdict {
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 16px;
    color: var(--text-white);
    background: var(--primary-700);
    box-shadow: var(--shadow-md);
}
.arb-verdict.is-vl { background: linear-gradient(135deg, #047857, #10b981); }
.arb-verdict.is-bareme { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.arb-verdict.is-equivalent { background: linear-gradient(135deg, #b45309, #f59e0b); }
.arb-verdict-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
    margin-bottom: 6px;
}
.arb-verdict-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}
.arb-verdict-gain {
    font-size: 15px;
    margin-top: 6px;
    opacity: 0.95;
}
.arb-verdict-note {
    font-size: 13px;
    line-height: 1.6;
    margin: 12px 0 0;
    opacity: 0.9;
}

/* ── Duel des scenarios ───────────────────────────────────── */
.arb-versus {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}
.arb-scenario {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.arb-scenario.is-winner {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.arb-scenario-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}
.arb-scenario-head h3 {
    font-size: 15px;
    margin: 0;
    color: var(--text);
}
.arb-tag:not(:empty) {
    background: var(--primary-100);
    color: var(--primary-800);
    border-radius: var(--radius-full);
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.arb-scenario-net {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-700);
    line-height: 1.2;
    margin-bottom: 12px;
}
.arb-scenario-net small {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
}
.arb-scenario-lines {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
}
.arb-scenario-lines li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 7px 0;
    border-top: 1px solid var(--border-light);
}
.arb-scenario-lines li span { color: var(--text-light); }
.arb-scenario-lines li strong { color: var(--text); white-space: nowrap; }

.arb-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-light);
    font-size: 10px;
    font-weight: 700;
    cursor: help;
}

/* ── Jauge de bascule ─────────────────────────────────────── */
.arb-bascule p { font-size: 14px; line-height: 1.6; color: var(--text); margin: 0 0 14px; }
.arb-gauge-track {
    position: relative;
    height: 10px;
    background: var(--border-light);
    border-radius: var(--radius-full);
    overflow: visible;
}
.arb-gauge-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
    transition: width var(--transition);
}
.arb-gauge-marker {
    position: absolute;
    top: -5px;
    width: 3px;
    height: 20px;
    background: var(--color-ir);
    border-radius: 2px;
    transition: left var(--transition);
}
.arb-gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 8px;
}

.arb-chip {
    display: inline-block;
    background: var(--warning-bg);
    color: #92400e;
    border-radius: var(--radius-full);
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}

.arb-alert {
    background: var(--warning-bg);
    border-left: 4px solid var(--warning);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #78350f;
    margin-bottom: 16px;
}
.arb-disclaimer {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-lighter);
    margin: 0;
}

.form-hint {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-light);
    margin: 6px 0 0;
}
.form-hint a { color: var(--primary); }
.form-optional { color: var(--text-lighter); font-weight: 400; }
.is-hidden { display: none !important; }

/* ── Contenu editorial ────────────────────────────────────── */
.arb-content { padding: 48px 0 64px; background: var(--bg-white); }
.arb-change {
    background: var(--bg-section);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    margin: 20px 0;
}
.arb-change h3 { margin-top: 0; }
.arb-persona {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    margin: 20px 0;
}
.arb-persona h3 { margin-top: 0; font-size: 17px; }
.arb-persona-detail { font-size: 13px; color: var(--text-light); margin-top: -6px; }
.arb-persona table { margin-bottom: 0; }
.arb-persona-verdict td {
    background: var(--primary-50);
    font-weight: 700;
    color: var(--primary-800);
}
.arb-links { line-height: 2; }

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .arb-title { font-size: 26px; }
    .arb-subtitle { font-size: 15px; }
    .arb-versus { grid-template-columns: 1fr; }
    .arb-scenario-net { font-size: 22px; }
    .arb-verdict-title { font-size: 18px; }
    .arb-content { padding: 32px 0 48px; }
    .arb-persona, .arb-change { padding: 16px; }
    /* Les tableaux de baremes doivent defiler dans leur conteneur, pas la page */
    .guide-content table { display: block; overflow-x: auto; white-space: nowrap; }
}
