/* FBKConseils — DESIGN01 — habillage uniquement.
 * Aucune formule, aucun paramètre fiscal, aucune donnée moteur.
 * Les images FBK fournies sont servies dans leurs octets d'origine :
 * uniquement positionnement / dimensionnement CSS.
 */
:root{
  --fbk-font:"FBK Century","Century Gothic","CenturyGothic","URW Gothic",Arial,sans-serif;
}

/* Century Gothic partout, y compris composants injectés et textes SVG. */
html,body,body *,button,input,select,textarea,option,summary,table,caption,th,td,
h1,h2,h3,h4,h5,h6,label,small,b,strong,a,span,p,div,svg text{
  font-family:var(--fbk-font)!important;
}

/* Éléments de recette conservés dans le DOM mais retirés de l'interface client. */
.v24-internal-only,.demo-badge[hidden],#validationNote[hidden],.cmp-disclaimer[hidden],.v23-editorial-link[hidden]{display:none!important}

/* Vrai logo fourni par FBK, sans reconstruction CSS. */
.brand{display:flex!important;align-items:center;min-width:0}
.brand-logo-original{display:block;width:218px;max-width:32vw;height:auto;object-fit:contain}
body.compare-open .brand-logo-original{width:205px}

/* Hero plus client-friendly. */
.hero{align-items:center}
.hero-subtitle{margin:0!important}
.hero-guide{font-size:14px!important;line-height:1.75!important;color:#566164!important;max-width:760px!important;margin:20px 0 0!important}
.hero-guide strong{color:var(--ink)}
.mode-switch{width:max-content;max-width:100%}
/* L’image source de Noé reste intacte. On masque uniquement, côté CSS, le petit trait jaune
   présent dans son coin supérieur gauche, sans rogner la tasse située plus bas. */
.hero-art img{mix-blend-mode:normal!important;object-fit:contain}
.hero-art img[data-design01="input"]{clip-path:polygon(22% 0,100% 0,100% 100%,0 100%,0 41%,22% 41%)!important}
.hero-art img[data-design01="result"]{clip-path:none!important;max-width:430px!important;max-height:365px!important}

/* Étapes rapides : images originales à la place du numéro. */
.stage-count.design01-image{width:82px!important;height:82px!important;min-height:82px!important;padding:7px!important;background:#fff!important;overflow:hidden;border-color:#DCEDEF!important}
.stage-count.design01-image img{width:100%;height:100%;display:block;object-fit:contain}

/* Résultats : mascotte originale et valeurs lisibles. */
.result-side-mascot{clip-path:none!important;mix-blend-mode:normal!important;width:150px!important;max-height:150px!important;object-fit:contain!important;align-self:flex-end;margin-top:14px}
.result-total,.metric-row strong,.tax-cell b,.compare-year strong,.delta-value,.donut-center span{font-variant-numeric:tabular-nums}
.tax-cell b{white-space:nowrap;overflow-wrap:normal;word-break:normal}
.donut-wrap>div:first-child{margin-inline:auto}

/* Courbe : retirer les deux mentions demandées sans toucher au calcul. */
.fp-profile small{display:none!important}
.fp-zoom{display:none!important}

/* Bouton de comparaison : icône fournie, non redessinée. */
#startCompareBtn{display:inline-flex;align-items:center;justify-content:center;gap:13px}
.compare-action-icon{width:31px;height:31px;object-fit:contain;flex:none}

/* Comparaison 2025/2026 : alignement plus net. */
.compare-year{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.compare-year small,.compare-year strong,.compare-year span{text-align:center}
.compare-delta{text-align:center}

/* Réglages tablette / mobile demandés dans le PowerPoint. */
@media(max-width:780px){
  .topbar-inner{padding-left:20px;padding-right:20px;gap:14px}
  .brand-logo-original{width:178px;max-width:48vw}
  body.compare-open .brand-logo-original{width:168px}
  .top-edit-action{padding:10px 15px;font-size:11px;min-height:42px}
  main{padding-left:20px;padding-right:20px}
  .hero-guide{font-size:13px!important;line-height:1.7!important;margin-top:15px!important}
  .stage-count.design01-image{width:66px!important;height:66px!important;min-height:66px!important;padding:5px!important}
  .compare-strip{grid-template-columns:1fr!important}
  .compare-year{padding:28px 18px!important}
  .compare-year strong{font-size:clamp(28px,8vw,38px)!important;line-height:1.15!important;white-space:nowrap}
  .compare-year span{max-width:100%}
  .compare-delta{padding:28px 18px!important}
  .delta-value{font-size:clamp(27px,7.6vw,36px)!important;line-height:1.15!important;white-space:nowrap}
  #startCompareBtn{width:100%;justify-content:center}
  .compare-action-icon{width:29px;height:29px}
  /* Les deux montants restent sur une seule ligne sur iPhone. */
  .breakdown{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .tax-cell{min-width:0;padding:20px 14px!important;text-align:center}
  .tax-cell small{display:block;min-height:2.8em;text-align:center}
  .tax-cell b{display:block;font-size:clamp(18px,5.1vw,25px)!important;line-height:1.15!important;letter-spacing:-.35px!important;text-align:center}
  .donut-wrap{grid-template-columns:1fr!important;justify-items:center}
  .donut-wrap>div:first-child{margin-inline:auto!important}
}

@media(max-width:520px){
  .topbar-inner{padding:12px 16px;min-height:72px}
  .brand-logo-original{width:154px;max-width:50vw}
  body.compare-open .brand-logo-original{width:148px}
  .top-edit-action{max-width:46vw;padding:9px 12px;gap:7px;font-size:10px}
  .top-edit-action svg{width:15px;height:15px}
  main{padding-left:16px;padding-right:16px}
  h1{font-size:clamp(37px,11vw,50px)!important}
  .hero-subtitle{font-size:14px!important}
  .hero-guide{font-size:12px!important;line-height:1.68!important}
  .mode-switch{width:100%;display:grid!important;grid-template-columns:1fr 1fr}
  .mode-switch button{padding:11px 8px!important;font-size:11px!important;white-space:nowrap}
  .stage-head{gap:12px}
  .stage-count.design01-image{width:58px!important;height:58px!important;min-height:58px!important}
  .result-main,.result-side{padding:22px 20px!important}
  .result-side-mascot{width:104px!important;max-height:104px!important}
  .metric-row{grid-template-columns:minmax(0,1fr) auto!important}
  .metric-row strong{white-space:nowrap;font-size:18px!important}
  .result-year-caption{align-items:flex-start!important}
  .breakdown{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .tax-cell{padding:18px 9px!important}
  .tax-cell small{font-size:9.5px!important;line-height:1.35!important}
  .tax-cell b{font-size:clamp(16px,4.75vw,21px)!important}
  .compare-year{padding:25px 12px!important}
  .compare-year strong{font-size:clamp(26px,8.4vw,34px)!important}
  .delta-value{font-size:clamp(25px,8vw,33px)!important}
}
body.has-fbk-results .hero-guide{display:none!important}
