/* Shared bespoke vector icons: one cacheable sprite, no platform emoji. */
.site-icon{display:inline-block;width:1.5em;height:1.5em;max-width:100%;vertical-align:middle;flex-shrink:0;overflow:visible}
.picto .site-icon{width:1.5em;height:1.5em;max-width:100%;max-height:100%;flex:none}
.case-symbol .site-icon{width:44px;height:44px}
.service-heading .site-icon,.funding-icon .site-icon,.rate-heading .site-icon{width:38px;height:38px}
.debt-glossary .site-icon{width:28px;height:28px;margin-right:6px}
/* Comparison pages use the same paper, ink, accent colours and generous type. */
.history-page{--history-blue:#111}
.history-page .history-shell{padding:28px;background:var(--section-tint,var(--paper))}
.history-modebar{gap:18px;padding:22px 0;border-bottom:1px solid #1113}
.history-modebar .seg{border:1px solid #111;border-radius:12px;padding:5px;gap:4px;background:#f0ede5}
.history-modebar .seg button{font-weight:750;border-radius:8px}
.history-page select{border:1.5px solid #111;background:#fffdf7;font-weight:650}
.history-selection{padding:20px;background:#fffdf7;border:1.5px solid #111;border-radius:14px;gap:24px}
.history-post label,.history-years-label{font-size:15px}
.history-years{gap:8px}.history-chip{border:1.5px solid #111;border-left:8px solid var(--year-color);box-shadow:2px 2px 0 #111;min-height:46px}
.history-chip button{color:#111}.history-chip button:hover:not(:disabled){background:#eee9df}
.history-presets{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.history-presets button{font-size:12px;padding:7px 10px;min-height:36px;border:1px solid #bdb7aa;border-radius:20px;background:transparent;box-shadow:none}
.history-presets button:hover{background:#fff0a8;border-color:#111}
.history-result{border-top:0;margin-top:10px;padding-top:26px}
.history-result-head{align-items:stretch;gap:22px;margin-bottom:24px}
.history-result-head>div{flex:1;min-width:0}
.history-result-head h2{font-family:var(--title-font);font-weight:900;font-size:clamp(25px,3vw,38px);max-width:28ch}
.history-amount{font-size:clamp(38px,5vw,60px);font-weight:900;margin-top:12px}
.history-period{font-weight:700;color:#111}
.history-summary{border:1.5px solid #111;border-radius:14px;box-shadow:3px 3px 0 #111;background:#fff0a8;padding:20px 24px;align-self:stretch;display:flex;flex-direction:column;justify-content:center;gap:10px;max-width:none;min-width:220px}
.history-summary strong{font-size:clamp(30px,3vw,42px);color:#111}
.history-summary span{color:#111}.history-summary>div:last-child{display:grid;gap:5px}
.history-comparison-scroll{overflow-x:auto;padding:12px 4px 8px;scrollbar-width:thin}
.history-bars{display:grid;grid-template-columns:repeat(var(--year-count),minmax(92px,1fr));gap:16px;min-width:calc(var(--year-count)*108px - 16px);padding:24px 14px 16px;border:1.5px solid #111;border-radius:14px;background:#fffdf7}
.history-bar-row{display:flex;flex-direction:column;gap:12px;min-width:0;padding:0;border:0}
.history-bar-year{order:2;font-family:var(--number-font);font-size:22px;line-height:1;background:var(--year-color);border:1.5px solid #111;border-radius:7px;padding:8px 12px;align-self:center}
.history-bar-track{order:1;width:100%;height:270px;position:relative;overflow:visible;border-radius:0;border-bottom:2px solid #111;background:repeating-linear-gradient(to top,transparent 0,transparent 53px,#1111 53px,#1111 54px)}
.history-bar-fill{position:absolute;bottom:0;left:20%;width:60%;height:var(--bar-width);background:var(--year-color);border:1.5px solid #111;border-bottom:0;border-radius:7px 7px 0 0;transition:height .25s ease;min-height:0}
.history-bar-fill[style*="--bar-width:0%;"]{border:0}
.history-bar-fill>span{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);font-family:var(--number-font);font-size:16px;font-weight:900;white-space:nowrap;padding-bottom:6px;color:#111}
.history-bar-value{order:3;text-align:center;min-width:0}
.history-bar-value>strong{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.history-bar-value>small{display:block;font-size:12px;line-height:1.5;color:#444;max-width:18ch;margin:0 auto}
.history-comparison-hint{font-size:12px;color:#555;margin:8px 0 0}
.history-graph-caption{font-size:13px;color:#111;font-weight:600;margin:12px 0}
.history-details{padding-top:20px;margin-top:24px}
.history-details>summary{font-family:var(--title-font);font-size:clamp(22px,2.5vw,30px);line-height:1.3;padding:14px 0;list-style-position:inside}
.history-details>summary small{font-family:var(--body-font);display:block;margin:8px 0 0;font-size:13px}
.history-legend{gap:10px;margin:20px 0}.history-legend>span{border:1px solid #111;border-radius:7px;background:#fffdf7;padding:6px 10px;font-weight:750}
.history-legend i{width:16px;height:16px;border:1px solid #111}
.history-vboard{--plot-height:300px;background:#fffdf7;border:1.5px solid #111;border-radius:14px;padding:24px 12px 12px 0}
.history-vfill{border:1px solid #111;border-bottom:0;border-radius:5px 5px 0 0}
.history-vvalue{color:#111;font-family:var(--number-font);font-size:12px}
.history-vgroup{padding:0 14px}.history-vname{font-family:var(--body-font)}
.history-page .history-vname:hover{background:#fff0a8;border-radius:7px}
.history-vchange{font-weight:800;font-size:14px;color:#111;padding:8px;background:#f2eee5;border-radius:6px;margin:0 3px}
.history-vbar.is-selected .history-vfill{outline:3px solid #111;outline-offset:3px}
.history-bar-readout{border:1.5px solid #111;box-shadow:3px 3px 0 #111;padding:20px;background:#fff0a8;gap:18px}
.history-bar-readout b{font-size:18px}.history-bar-readout strong{font-family:var(--number-font);font-size:22px}.history-bar-readout span{font-size:16px}
.history-chart{background:#fffdf7;border:1.5px solid #111;border-radius:14px;height:330px;margin-bottom:18px;overflow:hidden}
.history-inspect{border:1.5px solid #111;background:#fff0a8;padding:18px;gap:24px}
.history-inspect output strong{font-family:var(--number-font);font-size:25px}.history-inspect input{accent-color:#111}
.history-table thead{background:#fff0a8}.history-table tr.is-chosen{background:#eee6ff}
@media(max-width:760px){
 .history-page .history-shell{padding:18px 12px}.history-selection{padding:16px 12px;gap:20px}
 .history-modebar .seg{width:100%;flex-wrap:nowrap}.history-modebar .seg button{flex:1;font-size:13px;padding:10px 6px}
 .history-result-head{gap:16px}.history-summary{min-width:0;width:100%;flex-direction:row;justify-content:space-between;align-items:center;padding:16px}
 .history-summary>div:last-child{text-align:right}.history-summary strong{font-size:32px}
 .history-bars{gap:12px;padding:28px 10px 14px;grid-template-columns:repeat(var(--year-count),minmax(82px,1fr));min-width:calc(var(--year-count)*94px - 12px)}
 .history-bar-track{height:230px}.history-bar-year{font-size:19px;padding:7px 9px}.history-bar-fill{left:13%;width:74%}.history-bar-fill>span{font-size:13px}
 .history-bar-value>small{font-size:11px}.history-vboard{--plot-height:240px;padding-right:6px}
 .history-amount{font-size:42px}.history-details>summary{font-size:24px}.history-bar-readout{padding:16px;box-shadow:2px 2px 0 #111}
 .history-inspect{gap:14px}.history-chart{height:290px}.history-presets button{min-height:40px}
}
@media(prefers-reduced-motion:reduce){.history-bar-fill{transition:none}}
.mobile-menu-toggle .site-icon{width:20px;height:20px;margin-left:5px}
header #nav .picto .site-icon{width:22px;height:22px}
.budgettabs .picto .site-icon{width:30px;height:30px}
/* Debt: third budget destination, sharing the explorer's outer margins. */
body[data-page="deficit"]{--page-accent:#ffc400;--section-accent:#ffc400;--section-tint:#fffaf0;background-color:#fff9e3}
body[data-page="deficit"] main>.intro{display:none}
body[data-page="deficit"] #nav button[onclick="setPage('explore')"]{background:#ffc400;border-color:#111;box-shadow:2px 2px 0 #111}
.stats .stat[data-budget-card="deficit"]{--card-accent:#ffc400;--card-wash:#fff0a8}
.debt-page{margin-top:24px;background:#fffdf7;overflow-wrap:break-word}
.debt-page .page-heading{margin-bottom:28px}.debt-page h2{font-family:var(--title-font);font-size:clamp(26px,3vw,38px);line-height:1.2;margin:0 0 12px}
.debt-page h3{font-size:18px;line-height:1.35;margin:12px 0}
.debt-page p{font-size:16px;line-height:1.65}.debt-kpis{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:18px}
.debt-kpis article{border:1.5px solid #111;border-radius:14px;padding:24px;display:flex;flex-direction:column;align-items:flex-start;gap:12px;background:#eee6ff;min-width:0}
.debt-kpis .debt-total{background:#fff0a8;box-shadow:4px 4px 0 #111}.debt-kpis article:last-child{background:#dff7ed}
.debt-kpis article>.site-icon{width:44px;height:44px}.debt-kpis article>span{font-weight:700;font-size:14px}
.debt-kpis strong{font-family:var(--number-font);font-size:clamp(30px,3.6vw,50px);line-height:1.15;letter-spacing:-.035em}
.debt-kpis strong small{display:block;font-family:var(--body-font);font-size:16px;letter-spacing:0;margin-top:8px}
.debt-kpis p{font-size:13px;margin:0}
.debt-section{margin-top:38px}.debt-section-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:20px;margin-bottom:18px}
.debt-section-head p{margin-bottom:0}.debt-section .seg{border-color:#111}.debt-chart-card{padding:20px;border:1.5px solid #111;border-radius:14px;background:#fff9e3}
.debt-period{display:flex;gap:12px;align-items:center;font-weight:700}.debt-period select{font:inherit;padding:8px 16px;border:1px solid #111;border-radius:8px;background:white;min-height:44px}
.debt-chart{width:100%;height:auto;display:block;margin:16px 0}.debt-chart text{font:15px var(--body-font);fill:#111}
.debt-slider{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:20px;font-size:14px;font-weight:700}.debt-slider input{width:100%;min-height:40px;accent-color:#111}
.debt-readout{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:18px;padding-top:18px;margin-top:12px;border-top:1px solid #1113}.debt-readout>div{display:grid;gap:8px;align-content:start}
.debt-readout span{font-size:13px}.debt-readout strong{font-family:var(--number-font);font-size:32px}.debt-readout strong small{font:14px var(--body-font)}.debt-readout b{font-family:var(--number-font);font-size:22px}
.debt-page .debt-caption{font-size:12px;color:#555;line-height:1.5;margin:14px 0}
.debt-stack{display:flex;height:46px;overflow:hidden;border:1.5px solid #111;border-radius:8px;margin:20px 0}.debt-stack>span+span{border-left:2px solid #111}
.debt-sectors{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.debt-sectors button{display:grid;gap:10px;text-align:left;padding:18px;border:1.5px solid #111;border-top:7px solid var(--sector-color);background:#fffdf7;min-width:0}
.debt-sectors .site-icon{width:36px;height:36px}.debt-sectors strong{font-family:var(--number-font);font-size:30px}.debt-sectors b{min-height:44px;font-size:16px}.debt-sectors span{font-size:15px}.debt-sectors small{font-weight:700;font-size:12px}
.debt-sectors button.selected{background:var(--sector-color);box-shadow:3px 3px 0 #111}.debt-sectors button:hover{background:#fff0a8}
.debt-sector-detail{position:relative;margin-top:22px;padding:24px;border:1.5px solid #111;border-top:6px solid var(--sector-color);border-radius:12px;background:#fffdf7;animation:debt-reveal .2s ease}
.debt-sector-detail h3{padding-right:44px;font-family:var(--title-font);font-size:28px}.debt-close{position:absolute;right:14px;top:14px;width:40px;height:40px;font-size:24px;background:white;border:1px solid #111}
.debt-eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.06em;font-weight:800}
.debt-examples{display:grid;grid-template-columns:1fr 1fr;gap:16px}.debt-examples article{background:#dff7ed;border:1px solid #111;border-radius:10px;padding:18px}.debt-examples article+article{background:#fff0a8}.debt-examples b{font-size:12px;text-transform:uppercase}.debt-examples p{margin-bottom:0}
.debt-explain-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.debt-explain-grid article{padding:22px;border:1.5px solid #111;border-radius:12px;background:#f3f0e8;min-width:0}.debt-explain-grid .site-icon{width:40px;height:40px}.debt-explain-grid p{font-size:14px;margin-bottom:0}
.debt-interest{margin-top:38px;display:grid;grid-template-columns:1.3fr 1fr;gap:30px;align-items:center;border:1.5px solid #111;border-radius:14px;padding:28px;background:#eee6ff;box-shadow:4px 4px 0 #111}
.debt-interest .site-icon{width:44px;height:44px;margin-bottom:14px}.debt-interest button{min-height:44px;background:#fffdf7;border:1px solid #111;padding:12px;font-weight:700;white-space:normal}
.debt-interest-number{display:grid;gap:12px}.debt-interest-number span{font-size:14px;font-weight:700}.debt-interest-number strong{font-family:var(--number-font);font-size:64px;line-height:1.15}.debt-interest-number small{font-size:24px}.debt-interest-number p{font-size:12px;margin:0}
.debt-medium{font-family:var(--number-font);font-size:28px;line-height:1.25;display:block}
.debt-page details{border-bottom:1px solid #1113;padding:14px 0}.debt-page summary{font-size:17px;font-weight:750;cursor:pointer;min-height:44px;padding:10px 0}.debt-page details p{max-width:85ch}.debt-page li{margin:12px 0;line-height:1.5}.debt-page a{overflow-wrap:anywhere}
@keyframes debt-reveal{from{opacity:0}to{opacity:1}}
@media(max-width:760px){
 .debt-kpis{grid-template-columns:1fr 1fr;gap:12px}.debt-kpis .debt-total{grid-column:1/-1}.debt-kpis article{padding:18px 14px}.debt-kpis .debt-total strong{font-size:50px}.debt-kpis strong{font-size:32px}.debt-kpis .debt-total strong small{display:inline}.debt-kpis article>span{font-size:13px}
 .debt-chart-card{padding:16px 10px}.debt-chart{min-height:200px}.debt-readout{grid-template-columns:1fr 1fr;gap:18px}.debt-readout>div:first-child{grid-column:1/-1}.debt-readout strong{font-size:36px}.debt-slider{grid-template-columns:1fr;gap:0}
 .debt-sectors{grid-template-columns:1fr 1fr;gap:12px}.debt-sectors button{padding:14px 12px}.debt-sectors strong{font-size:28px}.debt-sectors b{font-size:14px}
 .debt-explain-grid,.debt-examples,.debt-interest{grid-template-columns:1fr}.debt-explain-grid{gap:14px}.debt-interest{padding:22px 16px;gap:20px}.debt-interest-number strong{font-size:54px}.debt-sector-detail{padding:20px 14px}
 .debt-section-head .seg{display:flex;width:100%}.debt-section-head .seg button{flex:1;font-size:13px;min-height:44px;white-space:normal}.debt-section{margin-top:30px}.debt-page p{font-size:15px}
 body[data-page="deficit"] main{padding-left:8px;padding-right:8px}.debt-page{padding:18px 12px}
}
@media(prefers-reduced-motion:reduce){.debt-sector-detail{animation:none}}
@media(max-width:600px){body[data-page="deficit"] .stats{gap:10px}body[data-page="deficit"] .stats .stat{padding:14px 10px}body[data-page="deficit"] .stats .statnumber{font-size:clamp(25px,7vw,34px);letter-spacing:-1px}body[data-page="deficit"] .stats .statnumber small{font-size:13px}body[data-page="deficit"] .stats .statlabel{font-size:14px}body[data-page="deficit"] .stats .stat em{font-size:12px}}
.deficit-equation{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:16px;margin:24px 0}.deficit-equation article{border:1.5px solid #111;border-radius:12px;padding:20px;background:#dbe7ff;display:grid;gap:12px;min-width:0}.deficit-equation article:nth-of-type(2){background:#eee6ff}.deficit-equation article:last-child{background:#fff0a8}.deficit-equation strong,.deficit-primary strong{font-family:var(--number-font);font-size:clamp(25px,3vw,38px)}.deficit-equation small,.deficit-primary small{font-size:15px}.deficit-equation span,.deficit-primary span{font-size:14px;font-weight:700}.deficit-equation>b{font-size:28px}.deficit-equation .site-icon{width:32px;height:32px}
.deficit-hundred{border:1.5px solid #111;border-radius:12px;padding:20px;background:#fffdf7}.deficit-hundred>div:last-child{display:flex;justify-content:space-between;gap:20px}.deficit-hundred strong{display:block;font-family:var(--number-font);font-size:32px}.deficit-hundred p{margin:0}
.deficit-sectors{display:grid;gap:12px}.deficit-sectors button{display:grid;grid-template-columns:1fr auto;gap:12px 20px;padding:18px;text-align:left;border:1.5px solid #111;border-left:7px solid var(--sector-color);background:#fffdf7}.deficit-sectors button>span:first-child{display:flex;gap:12px;align-items:center}.deficit-sectors strong{font-family:var(--number-font);font-size:24px}.deficit-sectors strong small{font:13px var(--body-font);display:block;text-align:right}.deficit-sector-track{grid-column:1/-1;display:block;background:#eee9df;height:14px;border-radius:4px;overflow:hidden}.deficit-sector-track i{display:block;height:100%;border-right:1px solid #111;min-width:2px}.deficit-sectors button>small{grid-column:1/-1;font-size:12px}.deficit-sectors button.selected{background:#fff0a8;box-shadow:2px 2px 0 #111}.deficit-sum{background:#fff0a8;padding:18px;border-radius:10px;margin-top:16px;font-size:20px}.deficit-sum small{display:block;font-size:12px;margin-top:8px}
.deficit-primary{display:grid;grid-template-columns:1fr 1fr;gap:18px}.deficit-primary article{display:grid;gap:12px;padding:22px;border:1.5px solid #111;border-radius:12px;background:#fff0a8}.deficit-primary article+article{background:#eee6ff}.deficit-primary p{margin:0;font-size:14px}.deficit-conclusion .debt-interest-number strong{font-size:clamp(32px,4vw,52px)}
@media(max-width:700px){.deficit-equation{grid-template-columns:1fr;gap:8px}.deficit-equation>b{text-align:center;line-height:1}.deficit-equation article{grid-template-columns:1fr auto;gap:8px;padding:16px}.deficit-equation article>.site-icon{display:none}.deficit-equation strong{font-size:25px}.deficit-primary{grid-template-columns:1fr}.deficit-hundred{padding:16px}.deficit-hundred strong{font-size:28px}.deficit-sectors button{padding:16px 12px;gap:12px}.deficit-sectors b{font-size:14px}.deficit-sectors strong{font-size:22px}.deficit-sum{font-size:17px}.deficit-sectors .site-icon{width:28px;height:28px}}

/* Bounded icon dimensions prevent SVG intrinsic size from stretching cards. */
.statlabel>.picto{display:inline-flex;width:64px;height:64px;flex:0 0 64px;align-items:center;justify-content:center}
.statlabel>.picto>.site-icon{width:56px;height:56px}
.maphint{white-space:normal;min-width:0}
.maphint>.picto{display:inline-flex;flex:0 0 24px;width:24px;height:24px}
.maphint>.picto>.site-icon{width:24px;height:24px}
.treemap .tile.icon-room>.picto{display:grid;width:34px;height:34px;margin:0 0 6px;background:none}
.treemap .tile.icon-room>.picto>.site-icon{width:34px;height:34px}
@media(min-width:901px){
.stats .stat{padding:22px;display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-width:0}
.stats .statlabel{display:flex;align-items:center;gap:16px;min-height:64px;margin:0}
.stats .budget-illustration{width:64px;height:64px}
.stats .statnumber{font-size:clamp(30px,3.3vw,48px);margin:0;line-height:1.15}
.stats .stat em{margin:0}.stats .stat-action{margin-top:auto}
.personal-journey{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(0,1.15fr);gap:28px;align-items:start}
.personal-journey>.page-heading,.personal-journey>.profile-method{grid-column:1/-1}
.personal-journey .profile-inputs{grid-column:1;grid-row:2;min-width:0}
.personal-journey #result.profile-results{display:contents}
.personal-journey .profile-contribution{grid-column:2;grid-row:2;padding:24px;align-self:stretch;display:flex;flex-direction:column;justify-content:center}
.personal-journey .profile-journey-section,.personal-journey .profile-purchases,.personal-journey .profile-breakdown,.personal-journey .profile-input-warning{grid-column:1/-1;margin-top:0}
.personal-journey .profile-setup{grid-template-columns:1fr;padding:20px;gap:16px}
.personal-journey .profile-setup label{display:flex;flex-direction:column;gap:8px}
.personal-journey .profile-setup input,.personal-journey .profile-setup select{min-height:54px;height:54px}
.personal-journey .profile-settings{margin-bottom:0}
.personal-journey .profile-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.personal-journey .profile-big-number{font-size:clamp(52px,5.5vw,78px)}
.personal-journey .profile-tax-control label{align-items:stretch;flex-direction:column}
.personal-journey .profile-tax-control select{width:100%}
.personal-journey .profile-method{margin-top:0}
}

/* Inline disclosures remain stationary on desktop and mobile. */
.function-breakdown{overflow-anchor:none}
.treemap .tile[aria-expanded="true"]:not(.tiny):not(.compact)::after{content:"Ouvert en dessous ↓";position:absolute;top:12px;left:12px;max-width:calc(100% - 48px);padding:6px 9px;border-radius:6px;background:#111;color:#fff;font:700 12px/1.3 var(--body-font);pointer-events:none}
.treemap .tile[aria-expanded="true"] .tilearrow{transform:rotate(45deg)}
.function-row[aria-expanded="true"]{box-shadow:inset 4px 0 var(--detail-color);background:color-mix(in srgb,var(--detail-color) 14%,transparent)}
#function-subcategory-slot>section,#function-inline-slot>section{animation:disclosure-appear .22s ease-out}
@keyframes disclosure-appear{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){#function-subcategory-slot>section,#function-inline-slot>section{animation:none}}
