/* ============================================
   FIDUCIA — Calculateur Frontalier Suisse
   Accord franco-suisse 1983
   ============================================ */

/* ── Badge accord ──────────────────────────── */
.front-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0.01em;
    margin-top: 0.5rem;
}

.front-badge--ok {
    background: rgba(76, 175, 136, 0.12);
    color: #3a8a62;
    border: 1px solid rgba(76, 175, 136, 0.3);
}

.front-badge--warn {
    background: rgba(224, 112, 112, 0.1);
    color: #c05050;
    border: 1px solid rgba(224, 112, 112, 0.25);
}

/* ── Select canton ─────────────────────────── */
.front-canton-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B6B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    cursor: pointer;
    padding-right: 2.5rem;
}

.front-canton-select:focus {
    outline: none;
    border-color: var(--or);
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.15);
}

/* ── Cotisations suisses (groupe dans la carte) */
.front-cot-group {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(14, 14, 14, 0.08);
}

.front-cot-header {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gris-mid);
    margin-bottom: 0.75rem;
}

.front-cot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(14, 14, 14, 0.04);
}

.front-cot-row:last-of-type {
    border-bottom: none;
}

.front-cot-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.front-cot-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--noir);
}

.front-cot-rate {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: var(--gris-mid);
    background: rgba(14, 14, 14, 0.05);
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    white-space: nowrap;
}

.front-cot-amount {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--noir);
    text-align: right;
    min-width: 90px;
}

/* ── Note IS suisse ────────────────────────── */
.front-is-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1.25rem;
    padding: 0.875rem 1rem;
    background: rgba(201, 168, 76, 0.07);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--noir);
    line-height: 1.55;
}

.front-is-note svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--or-dark);
}

/* ── Collapse autres revenus ───────────────── */
.front-collapse-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.front-collapse-header:hover {
    background: rgba(14, 14, 14, 0.02);
}

.front-collapse-icon {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    color: var(--gris-mid);
    line-height: 1;
    flex-shrink: 0;
}

/* ── Sim panel additions ───────────────────── */
.sim-row--bold .sim-row-label,
.sim-row--bold .sim-row-value {
    font-weight: 500;
}

.sim-disclaimer {
    padding: 0.75rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--gris-mid);
    line-height: 1.5;
    border-top: 1px solid rgba(14, 14, 14, 0.06);
    background: rgba(14, 14, 14, 0.015);
}

/* ── CERFA note ────────────────────────────── */
.cerfa-note {
    margin: 1rem 1.5rem 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(201, 168, 76, 0.06);
    border-left: 2px solid var(--or);
    border-radius: 0 6px 6px 0;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--noir);
    line-height: 1.55;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 900px) {
    .front-cot-amount {
        min-width: 70px;
    }
}

