/* FBKConseils • V15 • source de l'habillage final.
 * Visuel uniquement : aucune donnée ni règle fiscale.
 * Références : pages publiques FBK (accueil, fiscalité, simulateurs, équipe),
 * illustrations et captures fournies. Couleurs non certifiées par un brandbook.
 * Century Gothic : aucun fichier de police redistribué. Résolution locale
 * explicite des graisses normale et grasse. Pour la production, raccorder
 * les URL webfont autorisées de l'agence (voir CHARTE_ET_POLICE.md).
 */
@font-face {
  font-family:"FBK Century";
  src:local("Century Gothic"),local("CenturyGothic"),local("Century Gothic Regular"),local("CenturyGothic-Regular");
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face {
  font-family:"FBK Century";
  src:local("Century Gothic Bold"),local("CenturyGothic-Bold");
  font-weight:700;font-style:normal;font-display:swap;
}
@font-face {
  font-family:"FBK Century";
  src:local("Century Gothic Italic"),local("CenturyGothic-Italic");
  font-weight:400;font-style:italic;font-display:swap;
}
@font-face {
  font-family:"FBK Century";
  src:local("Century Gothic Bold Italic"),local("CenturyGothic-BoldItalic");
  font-weight:700;font-style:italic;font-display:swap;
}
:root {
  --fbk-font:"FBK Century","Century Gothic","CenturyGothic","URW Gothic",Arial,sans-serif;
  --ink:#484848;--muted:#707777;--line:#DCE9EA;
  --ice:#C2E3E6;--ice-strong:#AAD5D9;--sun:#FFD34C;
  --paper:#FFFFFF;--white:#FFFFFF;--fbk-pale:#F3FAFA;
  --fbk-teal:#39767C;--fbk-border:#C3DDE0;--fbk-yellow-pale:#FFF9E6;
  --brand-page:1360px;--brand-nav-height:82px;
  --brand-ease:cubic-bezier(.22,1,.36,1);
}
/* Même famille dans les libellés, formulaires, tableaux et SVG. */
html,body,button,input,select,textarea,option,summary,table,caption,th,td,
h1,h2,h3,h4,h5,h6,.eyebrow,.section-label,.pd-toggle-chevron,
.fp-axis-text,.fp-client-label text {font-family:var(--fbk-font)}
body{font-weight:400;background:#fff;color:var(--ink);line-height:1.6}
h1,h2,h3,h4,h5,h6,b,strong{font-weight:700}
button,.btn,.mode-btn,.segment button,.field input,.field select,.key-term,
.person-title,.result-total,.result-label,.donut-center,.detail-line b,
.cmp-score-value,.cmp-total-row td,.cmp-name,.cmp-group>summary,
.pd-personal-table b,.salary-head h3,.salary-input input{font-weight:700}
#stageTitle:focus{outline:none}
/* Les petites mentions reprennent une casse naturelle, sans tracking agressif. */
.eyebrow,.section-label,.input-section-kicker,.salary-overline,.result-label,
.foreign-overline,.cmp-score-label,.cmp-colhead-top,.compare-year small,
.fp-client-label .fp-label-kicker{letter-spacing:.02em;text-transform:none}
.eyebrow{font-size:14px;line-height:1.6;font-weight:400;margin:0 0 20px;color:var(--fbk-teal)}
.input-section-kicker,.salary-overline,.section-label{font-size:12px;font-weight:700;line-height:1.55}
.eyebrow,.field-note,.hint,.pd-context{overflow-wrap:break-word}
h1{font-size:clamp(40px,4.55vw,64px);letter-spacing:-1.1px;line-height:1.15}
h2{letter-spacing:-.65px;line-height:1.22}
h3,h4{letter-spacing:-.3px}
/* Navigation : repère de marque, puis une action utile au résultat. */
.topbar{border-bottom:1px solid var(--line);background:rgba(255,255,255,.97)}
.topbar-inner{max-width:var(--brand-page);padding:16px 38px;min-height:82px;gap:28px}
.brand-name{font-size:24px;letter-spacing:-.55px}
.brand-name span{font-size:12px}
.demo-badge{font-size:11px;line-height:1.45;padding:7px 12px}
.progress-wrap{margin-left:14px;max-width:560px;margin-right:0;flex:1}
.progress-dot{transition:background .2s,border-color .2s}
.top-edit-action{margin-left:auto;white-space:nowrap;background:var(--ice);border-color:var(--ice);min-height:46px;padding:11px 21px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:13px;flex:none}
.top-edit-action svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s}
.top-edit-action:hover{background:#B5DBE0!important;border-color:#A9D3DA!important}
.top-edit-action:hover svg{transform:translateX(-3px)}
.top-edit-action[hidden]{display:none!important}
body.has-fbk-results .progress-wrap,body.has-fbk-results .cmp-top-status{display:none!important}
main{max-width:var(--brand-page);padding:52px 38px 88px}
.hero{gap:48px;margin-bottom:52px;grid-template-columns:minmax(0,1.7fr) minmax(220px,.72fr);align-items:center}
.hero p{font-size:17px;line-height:1.85;max-width:720px}
.hero-art{justify-content:center;min-height:295px}
.hero-art img{max-height:340px;max-width:285px}
.mode-switch{margin-top:28px;padding:5px;box-shadow:none}
.mode-switch button{font-size:14px;padding:12px 23px}
.stage-shell{border-top:1px solid var(--fbk-border);padding-top:28px;scroll-margin-top:calc(var(--brand-nav-height) + 20px)}
.stage-count{background:var(--fbk-pale);border:1px solid var(--fbk-border);font-size:28px;color:var(--fbk-teal);width:58px;min-height:58px}
.stage-head{margin-bottom:32px}
.field label{font-size:13px;line-height:1.6}
.field input,.field select{border-color:var(--fbk-border);border-radius:11px}
.field input:focus,.field select:focus{box-shadow:0 0 0 3px #C2E3E659;border-color:#6A9EA5}
.btn{border-radius:999px;font-weight:700}
.btn:active,.pd-toggle:active,.cmp-preset:active{transform:translateY(1px)}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--fbk-teal);outline-offset:4px}
#foreignFields{box-shadow:none}
#foreignFields>summary{padding:24px 26px}
/* Résultat : aucune grande surface noire. */
.results{scroll-margin-top:calc(var(--brand-nav-height) + 20px)}
.result-hero{gap:26px}
.result-main{border:1px solid #EDD99D;border-radius:20px;background:#FFFBEF;color:var(--ink);padding:34px 32px;min-height:290px;box-shadow:none}
.result-main:after{display:none}
.result-label{color:var(--ink);font-size:16px;letter-spacing:0;line-height:1.5}
.result-total{font-size:clamp(37px,4.15vw,59px);line-height:1.2;letter-spacing:-1.25px;margin:22px 0 22px;color:var(--ink);overflow-wrap:anywhere}
.result-sub{font-size:13px;line-height:1.85;color:#6B7070;max-width:480px}
.result-side{border:1px solid var(--fbk-border);border-radius:20px;padding:23px 28px;box-shadow:none}
.result-side .metric-row{padding:14px 0;gap:18px;align-items:baseline;border-color:var(--line)}
.metric-row span{font-size:13px;line-height:1.6}
.metric-row strong{font-size:21px;line-height:1.35;letter-spacing:-.35px}
.breakdown{border-color:var(--line);margin-top:34px}
.tax-cell{border-color:var(--line)}
.tax-cell b{font-size:25px;font-weight:700;letter-spacing:-.4px}
.detail-line{font-size:13px;line-height:1.65}
.detail-card h3{font-weight:700}
.fp-card,.cmp-entry{box-shadow:none}
.fp-title p{font-size:13px;line-height:1.8}
.fp-client-label .fp-label-kicker{font-weight:700}
/* Deux blocs frères : mêmes limites haute / basse, même ligne de titre. */
.pd-panel{padding:24px;border-radius:20px;border-color:var(--line);box-shadow:none}
.pd-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(282px, .42fr);align-items:stretch;gap:24px}
.pd-personal,.pd-household{border:1px solid var(--fbk-border);border-radius:15px;padding:22px 20px 18px;display:flex;flex-direction:column;min-width:0;margin:0;align-self:stretch}
.pd-personal{background:#FFF}
.pd-household{background:var(--fbk-pale)}
.pd-block-head,.pd-household .pd-block-head{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:6px;min-height:64px;margin:0 0 12px;flex-wrap:nowrap}
.pd-block-head h4,.pd-household .pd-block-head h4{font-size:18px;font-weight:700;line-height:1.4;letter-spacing:-.25px;margin:0}
.pd-block-head>span{font-size:11px;padding:0;line-height:1.6}
.pd-household .pd-common-badge{font-size:10px;padding:2px 9px;line-height:1.6;background:white;font-weight:400;min-height:23px}
.pd-table-slot{min-width:0;flex:1}
.pd-personal-table th,.pd-personal-table td{font-size:12px;line-height:1.55;padding-left:10px;padding-right:10px}
.pd-personal-table thead th{font-size:10px;vertical-align:middle;height:58px;padding-top:9px;padding-bottom:13px;border-bottom:1px solid var(--fbk-border);font-weight:400}
.pd-personal-table thead th:first-child{font-size:11px}
.pd-personal-table th:first-child{width:38%}
.pd-person-label{flex-wrap:nowrap;gap:5px;font-size:10px;letter-spacing:-.05px}
.pd-person-label i{width:23px;height:23px;font-size:11px}
.pd-house-note{min-height:58px;display:flex;align-items:center;line-height:1.7;font-size:11px;margin:0;padding:9px 0 13px;border-bottom:1px solid var(--fbk-border)}
.pd-house-list{margin-top:9px;flex:1}
.pd-house-row{gap:12px;padding:13px 0;font-size:12px;line-height:1.6}
.pd-house-row dd{font-weight:700}
.pd-house-row:last-child{border-bottom:1px solid var(--line)}
.pd-zero-toggle{margin-top:20px;border-top:1px solid var(--fbk-border);padding-top:16px;min-height:48px;line-height:1.6;font-size:11px;flex:none;align-self:stretch}
.pd-row-total th,.pd-row-total td{padding-top:20px;padding-bottom:3px;font-size:13px;line-height:1.6}
.pd-row-total td[data-cell=total] .pd-money:after{background:var(--sun);opacity:.52;height:6px;bottom:1px}
.pd-row-part th,.pd-row-part td{font-size:11px}
.pd-personal-table .pd-row-part>th{padding-left:25px}
.pd-overview-head{margin-bottom:23px}
.pd-overview-head h3{font-size:28px;line-height:1.3}
.pd-view-toolbar{margin-bottom:24px}
.pd-context{font-size:12px;color:var(--fbk-teal)}
.pd-panel .pd-regimes button,.pd-panel .pd-scenarios button{font-weight:700;min-height:40px}
/* Comparateur : remplacer la VRAIE classe .cmp-total-row, pas .cmp-total. */
.cmp-result-area{scroll-margin-top:calc(var(--brand-nav-height) + var(--brand-score-height, 150px) + 30px)}
.cmp-result-title{align-items:center;gap:22px}
.cmp-result-title h3{font-size:28px;letter-spacing:-.5px}
.cmp-result-title span{font-size:11px;line-height:1.7}
.cmp-result-table th{background:var(--fbk-pale);border-top-color:var(--line);font-weight:400;color:#54676A;padding-top:14px;padding-bottom:14px}
.cmp-result-table th:nth-child(3){background:#E7F4F5}
.cmp-result-table th:first-child,.cmp-result-table td:first-child{padding-left:16px}
.cmp-result-table td:nth-child(3){background:#F5FBFB}
.cmp-result-table td{padding-top:17px;padding-bottom:17px;font-size:13px;line-height:1.6}
.cmp-result-table .cmp-total-row td{border-top:2px solid var(--ice-strong);border-bottom:1px solid var(--fbk-border);background:#EDF7F8;color:var(--ink)!important;font-weight:700;font-size:15px;padding-top:22px;padding-bottom:22px}
.cmp-result-table .cmp-total-row td:nth-child(3){background:#DEEFF1}
.cmp-result-table .cmp-total-row td:last-child{background:#FFF4CC;color:var(--ink)!important;box-shadow:inset 0 -3px 0 var(--sun)}
.cmp-result-table .cmp-total-row td:first-child{padding-left:16px}
.cmp-score{top:calc(var(--brand-nav-height) + 10px);box-shadow:0 4px 18px #39767C08;border-color:var(--fbk-border)}
.cmp-score-value{font-weight:700;letter-spacing:-.5px}
.cmp-score-label{text-transform:none;letter-spacing:0;font-size:12px}
.cmp-colhead-top{font-size:12px}
.cmp-group>summary{font-weight:700}
.cmp-mark{background:var(--fbk-yellow-pale);color:#735B22}
.cmp-preset{border-color:var(--fbk-border);font-weight:400}
.cmp-preset:hover{background:var(--fbk-pale)}
.cmp-reading{background:var(--fbk-pale);border-color:var(--fbk-border)}
.cmp-alert{border-radius:10px}
.pd-compare .pd-panel{padding:20px}
/* Une micro-animation d'apparition, pas d'animation permanente de Noé. */
@media(prefers-reduced-motion:no-preference){
 .pd-panel:not([hidden]){animation:brandReveal .24s var(--brand-ease) both}
 @keyframes brandReveal{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
}
@media(max-width:1199px){
 .pd-columns{grid-template-columns:1fr;gap:22px}
 .pd-house-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;flex:none}
 .pd-block-head,.pd-household .pd-block-head{min-height:0}
 .pd-house-note{min-height:0;padding:0 0 16px}
 .pd-personal-table th,.pd-personal-table td{font-size:13px}
 .pd-person-label{font-size:11px}
}
@media(max-width:900px){
 :root{--brand-nav-height:78px}
 .topbar-inner{padding:14px 26px;min-height:78px;gap:20px}
 main{padding:38px 26px 76px}
 .hero{grid-template-columns:1fr;gap:0;margin-bottom:38px}
 .hero-art{display:none}
 .hero p{max-width:720px}
 .result-hero{grid-template-columns:1fr;gap:20px}
 .result-main{min-height:0;padding:30px}
 .result-total{font-size:52px}
 .result-side{padding:22px 28px}
 .cmp-score-value{font-size:25px}
 .cmp-result-table .cmp-total-row td{font-size:13px}
}
@media(max-width:700px){
 .pd-panel,.pd-compare .pd-panel{padding:15px 12px;border-radius:16px}
 .pd-personal,.pd-household{padding:18px 15px 16px;border-radius:13px}
 .pd-block-head,.pd-household .pd-block-head{min-height:0;margin-bottom:14px;gap:5px}
 .pd-block-head h4,.pd-household .pd-block-head h4{font-size:19px}
 .pd-personal-table thead th{height:auto}
 .pd-personal-table .pd-row-part>th{font-size:12px;padding-left:0}
 .pd-personal-table .pd-row>td{font-size:13px}
 .pd-personal-table .pd-row-total{border-top:2px solid var(--ice);padding-top:16px}
 .pd-house-list{display:block}
 .pd-house-note{font-size:11px;line-height:1.7;padding:0 0 12px}
 .pd-house-row{font-size:12px;padding:13px 0}
 .pd-zero-toggle{margin-top:15px}
}
@media(max-width:660px){
 :root{--brand-nav-height:74px}
 .topbar-inner{min-height:74px;padding:12px 18px;gap:12px;flex-wrap:wrap;justify-content:space-between}
 .brand-name{font-size:21px;letter-spacing:-.5px;padding-bottom:8px}
 .brand-name:after{height:4px;width:50px}
 .brand-name span{display:none}
 .demo-badge{font-size:10px;padding:6px 10px}
 body.has-fbk-results .demo-badge{display:none}
 .top-edit-action{font-size:11px;min-height:44px;padding:10px 12px;gap:6px;white-space:normal;max-width:55%;text-align:left}
 .top-edit-action svg{width:16px;height:16px;flex:none}
 .top-edit-action span{line-height:1.45}
 .progress-wrap{display:none}
 main{padding:29px 18px 65px}
 .eyebrow,.cmp-intro .eyebrow{font-size:12px;letter-spacing:0;line-height:1.7;margin-bottom:16px;font-weight:400}
 h1{font-size:clamp(34px,9.1vw,46px);letter-spacing:-.8px;line-height:1.2;margin-bottom:20px;text-wrap:balance}
 .hero p{font-size:14px;line-height:1.9}
 .hero{margin-bottom:32px}
 .mode-switch{display:flex;width:100%;padding:4px;margin-top:23px;gap:2px}
 .mode-switch button{flex:1;font-size:12px;padding:11px 10px;line-height:1.5;min-height:44px}
 .stage-shell{padding-top:25px}
 .stage-head{gap:15px;margin-bottom:25px;align-items:center}
 h2{font-size:32px;line-height:1.24;letter-spacing:-.65px}
 .stage-count{font-size:22px;width:47px;min-height:47px}
 .stage-kicker{font-size:11px}
 .field label{font-size:12px}
 .field input{font-size:19px}
 .salary-card{padding:20px 16px}
 #foreignFields>summary{padding:20px 18px}
 .result-main{padding:25px 22px;border-radius:16px}
 .result-label{font-size:15px}
 .result-total{font-size:clamp(32px,9vw,45px);letter-spacing:-1px;margin:18px 0;line-height:1.2}
 .result-sub{font-size:12px;line-height:1.8}
 .result-side{padding:15px 21px;border-radius:16px}
 .result-side .metric-row{gap:13px;padding:13px 0}
 .metric-row span{font-size:11px}
 .metric-row strong{font-size:18px;letter-spacing:-.25px}
 .pd-overview-head h3{font-size:26px}
 .pd-context{font-size:11px}
 .pd-overview-head{align-items:flex-start}
 .pd-columns{gap:18px}
 .pd-compare-head h4{font-size:21px}
 .cmp-score{top:calc(var(--brand-nav-height) + 5px)}
 .cmp-score-label{font-size:10px!important;letter-spacing:0}
 .cmp-score-value{font-size:21px}
 .cmp-result-title h3{font-size:26px}
 .cmp-result-table th{font-size:10px;line-height:1.7;padding:12px 4px}
 .cmp-result-table th:first-child{width:29%;padding-left:6px}
 .cmp-result-table td{font-size:11px;padding:14px 4px;line-height:1.7;letter-spacing:0}
 .cmp-result-table td:first-child{padding-left:6px}
 .cmp-result-table .cmp-total-row td{font-size:11px;padding:16px 4px;line-height:1.7}
 .cmp-result-table .cmp-total-row td:first-child{padding-left:6px}
 .cmp-result-table .cmp-total-row td:last-child{box-shadow:inset 0 -2px 0 var(--sun)}
 body.compare-open main{padding:22px 18px 65px}
}
@media(max-width:359px){
 .topbar-inner{padding-left:14px;padding-right:14px;gap:8px}
 .brand-name{font-size:18px}
 .top-edit-action{font-size:10px;padding:9px 10px;max-width:56%}
 main{padding-left:14px;padding-right:14px}
 h1{font-size:32px}
 .mode-switch button{font-size:11px;padding:10px 7px}
 .pd-personal,.pd-household{padding-left:12px;padding-right:12px}
 .pd-personal-table .pd-row>td{font-size:12px}
 .cmp-result-table td,.cmp-result-table .cmp-total-row td{font-size:10px}
 .cmp-score-value{font-size:19px}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 .panel,.results,.pd-panel,.progress-fill,.progress-dot,.top-edit-action svg{animation:none!important;transition:none!important}
}
@media print{
 .top-edit-action{display:none!important}
 .pd-columns{grid-template-columns:minmax(0,1fr) minmax(230px,.42fr);align-items:stretch}
 .pd-household,.pd-personal{break-inside:avoid}
 .cmp-score{position:static}
 .cmp-result-table .cmp-total-row td{color:var(--ink)!important;background:#EDF7F8!important}
 .cmp-result-table .cmp-total-row td:last-child{background:#FFF4CC!important}
}
