@font-face{font-family:Montserrat;font-style:normal;font-weight:400;font-display:swap;src:url('/assets/tva/montserrat-84f3d3275dfb159d.ttf') format('truetype')}
@font-face{font-family:Montserrat;font-style:normal;font-weight:600;font-display:swap;src:url('/assets/tva/montserrat-c535bb158e8cfc3c.ttf') format('truetype')}
@font-face{font-family:Montserrat;font-style:normal;font-weight:700;font-display:swap;src:url('/assets/tva/montserrat-247f052d2f5b84a5.ttf') format('truetype')}
:root {
  /* Repris de simulateurs.fbk-conseils.ch : fond clair, cartes blanches, accents sarcelle et jaune. Saisie puis résultat. */
  --ink: #203e43;
  --muted: #4b686e;
  --teal: #307e88;
  --line: #c6e2e6;
  --pale: #edfafb;
  --yellow: #ffd447;
  --warm: #fff5cf;
  --paper: #fff;
  --back: #f5f9f9;
  --loss: #a8472f;
  --font: Montserrat, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--back); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.5; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 34px; font-weight: 700; line-height: 1.2; text-wrap: balance; }
h2 { font-size: 21px; font-weight: 700; line-height: 1.25; text-wrap: balance; }
h3 { font-size: 15px; font-weight: 700; }
mark { background: linear-gradient(to top, var(--yellow) 0, var(--yellow) .13em, transparent .13em); color: inherit; padding-bottom: .11em; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
a { color: var(--ink); }

.page { max-width: 1136px; margin: 0 auto; padding: 32px 24px 48px; display: grid; gap: 22px; }
.hero { display: grid; gap: 10px; }
.lead { font-size: 15px; color: var(--muted); max-width: 780px; }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: #fcfefe; border: 1px solid #dce9ea; border-radius: 16px; padding: 16px 24px; }
.step { display: flex; align-items: center; gap: 9px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); background: transparent; border: 0; border-radius: 8px; padding: 10px 12px; cursor: pointer; text-align: left; }
.step .n { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; font-size: 12px; background: var(--paper); border: 1px solid var(--line); flex: none; }
.step.active { background: var(--warm); }
.step.active .n { background: var(--yellow); border-color: var(--yellow); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 24px; align-items: start; }
.stack { display: grid; gap: 18px; min-width: 0; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 25px 27px; display: grid; gap: 18px; min-width: 0; }
.head { display: flex; align-items: center; gap: 11px; }
.head .n { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--yellow); font-weight: 700; flex: none; }

.field { display: grid; gap: 7px; align-content: start; }
.field > label, .field > .lab { font-size: 13px; font-weight: 600; }
.hint { font-size: 12px; color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input[type=number], input[type=text], input[type=date], select { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid #afd1d7; border-radius: 8px; padding: 9px 12px; }
input[type=number] { font-variant-numeric: tabular-nums; }
input:focus-visible, select:focus-visible, button:focus-visible, summary:focus-visible, a:focus-visible, .choice input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.money { position: relative; }
.money input { padding-left: 46px; }
.money::before { content: "CHF"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--muted); }
input[type=range] { width: 100%; accent-color: var(--teal); }

.seg { display: flex; flex-wrap: wrap; gap: 7px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: block; font-size: 13px; font-weight: 600; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.choice input:checked + span { background: var(--pale); border-color: var(--teal); box-shadow: inset 0 0 0 .4px var(--teal); }
.choice.big { flex: 1 1 220px; }
.choice.big span { padding: 13px 15px; height: 100%; }
.choice.big small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 2px; }
.check { display: flex; gap: 9px; align-items: center; font-size: 13px; font-weight: 600; }
.check input { width: 17px; height: 17px; accent-color: var(--teal); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 13px; font-weight: 700; border-radius: 9px; padding: 11px 17px; cursor: pointer; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid #70a8af; }
.btn.primary { background: var(--yellow); border-color: #f5c637; }
.btn.text { border: 0; background: transparent; text-decoration: underline; padding: 11px 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; }

.summary { background: var(--pale); position: sticky; top: 18px; gap: 6px; }
.rows { display: grid; }
.rowl { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.rowl span { color: var(--muted); }
.rowl strong { text-align: right; font-variant-numeric: tabular-nums; }
.rows .rowl:last-child { border-bottom: 0; }
.summary .btn { margin-top: 10px; width: 100%; }

details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
details.wide { border-radius: 16px; }
summary { font-weight: 700; padding: 17px 20px; cursor: pointer; }
summary small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.body { padding: 4px 20px 22px; display: grid; gap: 22px; }
.pgrid { display: grid; grid-template-columns: 1fr; gap: 26px; }

.result { background: var(--pale); gap: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; display: grid; gap: 1px; align-content: start; }
.stat .k, .stat .s { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 19px; font-weight: 700; }
.stat.loss .v { color: var(--loss); }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: end; justify-content: space-between; }
.toolbar .field { flex: 1 1 280px; }

.bar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; gap: 2px; background: var(--paper); }
.bar div { min-width: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend strong { color: var(--ink); }
.legend i { width: 11px; height: 11px; border-radius: 3px; border: 1px solid var(--line); flex: none; }
/* Bleus : ce qui revient à la personne. Jaunes : les cotisations. Couleurs de la charte FBKConseils. */
.c-net { background: #90cbd2; }
.c-lpp { background: #c4e3e6; }
.c-sal { background: #ffe9a3; }
.c-emp { background: #ffd24c; }
svg text { font-family: var(--font); fill: var(--muted); font-size: 11px; }
.chart { width: 100%; height: auto; display: block; }

.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 8px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; white-space: normal; min-width: 170px; padding-left: 0; }
thead th { font-size: 12px; font-weight: 600; color: var(--muted); }
tr.total td { font-weight: 700; }
tr.grand td { font-weight: 700; background: var(--warm); border-bottom: 0; }
tr.grand td:first-child { padding-left: 8px; }
td .t { color: var(--muted); font-size: 12px; margin-right: 8px; }
table.params input { width: 84px; padding: 6px 8px; text-align: right; }
input:disabled { background: var(--back); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.tag.lock { background: var(--pale); border: 1px solid var(--line); }
.alert { font-size: 12.5px; background: var(--warm); border: 1px solid #f5c637; border-radius: 8px; padding: 9px 12px; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 20px; margin-left: 6px; background: var(--warm); }
ul.plain { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--muted); font-size: 13px; max-width: 86ch; }
footer { border-top: 1px solid var(--line); padding-top: 19px; font-size: 11px; color: var(--muted); }

@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  h1 { font-size: 27px; }
}
@media (max-width: 520px) {
  .page { padding: 22px 16px 40px; }

  .card { padding: 20px 18px; }
  .two { grid-template-columns: 1fr; }
  .steps { padding: 10px; }
}


:root {--content:1136px}
.fbk-header {background:#fff;border-bottom:1px solid #c4e3e6}
.fbk-nav,.fbk-footer {width:min(calc(100% - 64px),var(--content));margin-inline:auto}
.fbk-nav {min-height:72px;display:flex;align-items:center;gap:24px;padding:12px 0}
.fbk-logo {width:150px;height:auto;display:block}
.simulators-link {display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border:1px solid #c4e3e6;border-radius:32px;background:#edfbfc;color:#203e43;text-decoration:none;font-size:12px;font-weight:700;line-height:1.25}
.simulators-link img {width:29px;height:29px;object-fit:contain}
.language-link {display:inline-grid;place-items:center;flex:0 0 auto;margin-left:auto;width:44px;height:44px;border:1px solid rgba(31,41,55,.16);border-radius:50%;background:#fff;color:#484848;font-weight:700;font-size:15px;line-height:1;text-decoration:none}
.language-link:hover,.btn:hover,.simulators-link:hover {background:var(--yellow);border-color:var(--teal)}
.fbk-footer {border-top:1px solid var(--line);padding:19px 0 27px;font-size:11px;color:var(--muted)}
.skip:not(:focus) {position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.skip:focus {position:fixed;top:8px;left:10px;padding:10px 16px;background:#fff;z-index:2}
.summary h3 {font-size:17px}
.steps .step[aria-current="step"] {background:var(--warm)}
.form-heading {display:flex;align-items:center;gap:10px;font-weight:700}
.tax-set {padding:0;border:0;margin:0;min-width:0}
.tax-set input:invalid:not(:placeholder-shown),input[aria-invalid="true"] {border-color:var(--loss)}
.tax-set .hint,.page-pair .hint {max-width:75ch}
caption {font-weight:600;text-align:left;margin-bottom:8px}
.outcome {background:var(--warm);border-radius:8px;padding:12px 14px}
.empty {color:var(--muted)}
.sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.legend .income-line {background:#307e88}.legend .cost-line {background:#ffd447}.legend .min-line {border-top:2px dashed #203e43;height:0;width:16px;background:none}.legend .gain-zone {background:#c6e2e6}.legend .loss-zone {background:#fff5cf}.legend .break-even {border:2px solid #203e43;border-radius:50%;background:white}
.split-bar {display:block;width:100%;height:30px}
.compact-stack {display:grid;gap:10px}.range-caption {color:var(--muted)}
#period-table th:first-child,#tax-table th:first-child {min-width:110px}
#tax-card .rowl strong {white-space:nowrap}
label.choice {isolation:isolate}.choice input {cursor:pointer;width:100%;height:100%;margin:0}
.field,.two>* {min-width:0}
@media(max-width:700px){.fbk-nav,.fbk-footer{width:calc(100% - 32px)}.fbk-nav{gap:10px;min-height:58px;padding-block:10px}.fbk-logo{width:110px}.language-link{width:40px;height:40px;font-size:13px}.simulators-link{gap:5px;padding:5px 8px;font-size:10px}.simulators-link img{width:19px;height:19px}.choice.big{flex-basis:145px}}
@media(max-width:370px){.fbk-logo{width:90px}.fbk-nav{gap:6px}.card{padding:16px}.page{padding-inline:12px}}
