.wealth-nav{margin-bottom:24px}.wealth-overview{display:grid;grid-template-columns:1.05fr 1fr;gap:40px;padding:32px;border-radius:16px;background:var(--tint)}.wealth-overview h2{font-size:20px;margin:0 0 16px}.wealth-total{font-size:clamp(32px,3.7vw,48px);font-weight:650;line-height:1.2;margin:12px 0 16px;font-variant-numeric:tabular-nums}.wealth-net>.small{max-width:42ch}.wealth-equation{margin:24px 0 0;padding-top:18px;border-top:1px solid var(--line)}.wealth-equation>div,.wealth-breakdown{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0}.wealth-equation dd,.wealth-breakdown dd{margin:0;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}.wealth-allocation{min-width:0}.wealth-allocation dl{margin-bottom:0}.wealth-allocation-bar{display:flex;height:16px;gap:3px;border-radius:5px;overflow:hidden;background:var(--surface);margin:24px 0}.wealth-allocation-bar span{min-width:4px}.wealth-breakdown dt{display:flex;align-items:center;gap:10px}.wealth-breakdown a{color:var(--ink);text-decoration:none}.wealth-breakdown a:hover{text-decoration:underline}.wealth-dot{height:12px;width:12px;flex-shrink:0;border-radius:3px}.wealth-method{padding:16px 0;border-bottom:1px solid var(--line)}.wealth-method summary{cursor:pointer;color:var(--accent);min-height:24px}.wealth-method p{max-width:70ch;margin-bottom:0}.wealth-collection{margin-top:36px}.wealth-placements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.wealth-placement{display:block;padding:24px;border-radius:16px;background:var(--surface);color:var(--ink);text-decoration:none;transition:background .18s ease-out}.wealth-placement:hover{background:var(--green)}.wealth-placement-head{display:flex;align-items:center;gap:14px}.wealth-placement-head>div{min-width:0}.wealth-placement-head h3{margin:0;font-size:19px;overflow-wrap:anywhere}.wealth-placement-head p{margin:4px 0 0}.wealth-placement .amount{margin:24px 0 2px;font-variant-numeric:tabular-nums}.wealth-arrow{margin-left:auto;color:var(--accent)}.wealth-placement-foot{display:flex;justify-content:space-between;gap:12px;padding-top:16px;margin-top:20px;border-top:1px solid var(--line);font-size:14px}.wealth-empty{display:flex;gap:20px;align-items:flex-start;padding:32px;background:var(--surface);border-radius:16px}.wealth-empty h2{font-size:22px;margin-top:0}.wealth-empty p{max-width:60ch}.wealth-empty .primary{margin-top:12px}.wealth-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:8px 0 24px}.wealth-detail-heading h2{font-size:26px;margin:0}.wealth-detail-summary{display:grid;grid-template-columns:1.2fr 1fr 1fr;background:var(--tint);border-radius:16px;padding:26px;gap:24px}.wealth-detail-summary h3{font-size:15px;font-weight:600;margin:0}.wealth-detail-summary .amount{margin:14px 0 8px;font-variant-numeric:tabular-nums}.wealth-detail-summary .small{margin:0}.wealth-actions{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0 28px}.wealth-note{padding:16px 20px;background:var(--green);border-radius:12px;max-width:80ch}.wealth-chart,.wealth-history{background:var(--surface);padding:26px;border-radius:16px;margin-top:24px}.wealth-chart h2,.wealth-history h2{font-size:21px;margin:0 0 18px}.wealth-chart svg{display:block;width:100%;max-height:280px;overflow:visible}.wealth-axis{fill:var(--muted);font-size:12px}.wealth-grid{stroke:var(--line);stroke-width:1}.wealth-value-line{stroke:var(--accent);stroke-width:3;stroke-linejoin:round}.wealth-net-line{stroke:var(--muted);stroke-width:2;stroke-dasharray:6 5}.wealth-point{fill:var(--accent);stroke:var(--surface);stroke-width:2}.wealth-legend{display:flex;gap:24px;flex-wrap:wrap;font-size:14px;margin-top:10px}.wealth-legend span:before{content:'';display:inline-block;width:22px;margin-right:8px;vertical-align:middle;border-top:3px solid var(--accent)}.wealth-legend .wealth-net-key:before{border-top:2px dashed var(--muted)}.wealth-history table{width:100%;border-collapse:collapse;font-size:14px}.wealth-history th{text-align:left;font-weight:600;color:var(--muted)}.wealth-history td,.wealth-history th{padding:14px 8px;border-bottom:1px solid var(--line)}.wealth-history tr:last-child td{border-bottom:0}.wealth-history td:last-child,.wealth-history th:last-child{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.wealth-history td p{margin:4px 0 0}.wealth-line{display:flex;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid var(--line)}.wealth-line p{margin:6px 0 0}.wealth-form-section+.wealth-form-section{margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}.wealth-form-section h3{font-size:18px;margin:0 0 18px}.wealth-form-section .small{margin-bottom:0}.recap-six-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.recap-six-totals .recap-stat{grid-column:auto!important}.wealth-nav [aria-current=page]{background:var(--surface);border:1px solid var(--line)}
@media(min-width:1400px){.wealth-placements{grid-template-columns:repeat(3,minmax(0,1fr))}.recap-six-totals{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1050px){.wealth-overview{gap:28px;padding:26px}.wealth-detail-summary{grid-template-columns:1fr 1fr}.wealth-detail-summary>div:first-child{grid-column:1/-1;border-bottom:1px solid var(--line);padding-bottom:20px}}
@media(max-width:760px){#nav-wealth{display:none}.wealth-overview{grid-template-columns:1fr;gap:28px;padding:24px}.wealth-allocation{border-top:1px solid var(--line);padding-top:24px}.wealth-placements{grid-template-columns:1fr}.wealth-empty{padding:24px;gap:12px}.wealth-empty>.category-mark{display:none}.wealth-detail-heading{align-items:flex-start;gap:12px}.wealth-detail-summary{padding:22px;gap:20px}.wealth-detail-summary .amount{font-size:25px}.wealth-actions{display:grid}.wealth-chart,.wealth-history{padding:20px 14px}.wealth-history td,.wealth-history th{padding:14px 4px;font-size:12px}.wealth-history td:first-child{max-width:70px}.wealth-legend{gap:12px;font-size:12px}.recap-six-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.wealth-placement-head h3{font-size:18px}.wealth-detail-heading h2{font-size:23px}.wealth-line>strong{white-space:nowrap}}

.wealth-placement .amount,.wealth-detail-summary .amount{font-size:30px;font-weight:650;line-height:1.25}.wealth-detail-heading h1{font-size:30px;line-height:1.2;margin:0}.wealth-placement-head .budget-category-icon{width:44px;height:44px}.wealth-chart>.small{max-width:70ch}.wealth-chart svg{min-height:170px}.wealth-overview .small{color:var(--ink)}
@media(max-width:760px){.wealth-placement .amount,.wealth-detail-summary .amount{font-size:24px}.wealth-detail-heading{flex-wrap:wrap}.wealth-detail-heading h1{font-size:26px}.wealth-history td:nth-child(2){overflow-wrap:anywhere}.wealth-chart svg{min-height:0}.wealth-chart .wealth-axis{font-size:18px}}

/* Finition F2/F3 : axes HTML à taille réelle, indépendants du viewBox. */
.wealth-placement>.small{margin:5px 0 0}.wealth-plot{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:14px;row-gap:10px;margin:24px 0 18px}.wealth-y-axis{position:relative;min-width:70px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.wealth-y-axis span{position:absolute;right:0;white-space:nowrap;transform:translateY(-50%)}.wealth-y-axis span:first-child{top:5.455%}.wealth-y-axis span:last-child{top:94.545%}.wealth-plot svg{height:220px;min-height:0;max-height:none}.wealth-x-axis{grid-column:2;display:flex;justify-content:space-between;gap:12px;padding:0 1%;color:var(--muted);font-size:12px}.wealth-x-axis span:last-child{text-align:right}.wealth-plot .wealth-point{stroke:var(--accent);stroke-width:7px;stroke-linecap:round}
@media(max-width:760px){.wealth-plot{column-gap:10px}.wealth-plot svg{height:160px}.wealth-y-axis{min-width:58px}.wealth-x-axis{line-height:1.4}.wealth-chart .wealth-legend{margin-top:16px}}

/* Répartition lisible et historique du patrimoine, dans la palette Atelier. */
.wealth-view{--wealth-cash:#507d9c;--wealth-savings:#53856b;--wealth-investments:#8060bc;--wealth-assets:#ab783e}
[data-theme=dark] .wealth-view{--wealth-cash:#7eacc9;--wealth-savings:#81b299;--wealth-investments:#b49bdf;--wealth-assets:#cda572}
.wealth-color-cash{background:var(--wealth-cash)}.wealth-color-savings{background:var(--wealth-savings)}.wealth-color-investments{background:var(--wealth-investments)}.wealth-color-assets{background:var(--wealth-assets)}
.wealth-allocation-bar{height:18px}.wealth-dot{width:13px;height:13px}.wealth-nav{gap:8px;flex-wrap:wrap}.wealth-nav a{white-space:nowrap}
.wealth-explanations{margin-top:36px;padding-top:8px;border-top:1px solid var(--line)}.wealth-explanations .wealth-method:last-child{border-bottom:0}
.wealth-chart-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}.wealth-chart-heading h2{margin:0 0 6px}.wealth-chart-heading p{margin:0}.wealth-chart-readout{display:flex;flex-direction:column;gap:3px;align-items:flex-end;min-width:150px}.wealth-chart-readout strong{font-size:24px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}.wealth-chart-readout span{white-space:nowrap}
.wealth-total-plot{margin:26px 0 0}.wealth-total-plot .wealth-value-line{stroke-width:3}.wealth-selected-month{stroke:var(--accent);stroke-width:1;stroke-dasharray:3 5;opacity:.4}.wealth-months{grid-column:2;display:flex;justify-content:space-between;gap:0;min-width:0}.wealth-month{border:0;padding:0 3px;min-height:38px;min-width:0;background:transparent;color:var(--muted);font-size:12px;line-height:1.2;cursor:pointer;border-radius:6px}.wealth-month[aria-pressed=true]{color:var(--accent);background:var(--tint);font-weight:700}.wealth-month:hover{color:var(--accent);background:var(--tint)}.wealth-month.is-incomplete{color:var(--muted);text-decoration:underline dotted;text-underline-offset:5px}.wealth-chart-caption{margin:12px 0 0}.wealth-chart-data{margin-top:16px;border-top:1px solid var(--line);padding-top:14px}.wealth-chart-data summary{color:var(--accent);cursor:pointer;font-size:14px}.wealth-chart-data dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 28px;margin:12px 0 0}.wealth-chart-data dl>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}.wealth-chart-data dd{margin:0;white-space:nowrap;font-variant-numeric:tabular-nums}.wealth-debt-summary{padding:28px 32px;background:var(--tint);border-radius:16px}.wealth-debt-summary h2{font-size:20px;margin:0}.wealth-debt-summary .small{margin-bottom:0}.wealth-debt-list{margin-top:32px}.wealth-debt-list>h2{font-size:21px;margin-bottom:16px}.wealth-debt{padding:24px;background:var(--surface);border-radius:16px;margin-bottom:16px}.wealth-debt-heading{display:flex;justify-content:space-between;gap:24px;align-items:center}.wealth-debt h3{margin:0;font-size:19px}.wealth-debt p{margin:6px 0 0}.wealth-debt .amount{font-size:26px;white-space:nowrap;font-variant-numeric:tabular-nums}.wealth-debt dl{display:flex;gap:40px;border-top:1px solid var(--line);padding-top:18px;margin:20px 0 0}.wealth-debt dl:empty{display:none}.wealth-debt dt{font-size:13px;color:var(--muted)}.wealth-debt dd{margin:6px 0 0;font-size:15px;font-variant-numeric:tabular-nums}
@media(max-width:1050px){.wealth-chart-data dl{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.wealth-chart-heading{flex-direction:column;gap:16px}.wealth-chart-readout{align-items:flex-start;flex-direction:row;align-items:baseline;gap:10px}.wealth-chart-readout strong{font-size:23px}.wealth-total-chart{padding:22px 16px}.wealth-total-chart h2{font-size:20px}.wealth-total-plot{column-gap:8px}.wealth-total-plot svg{height:180px}.wealth-month{padding:0 1px;min-height:44px}.wealth-chart-data dl{grid-template-columns:1fr}.wealth-debt-summary{padding:24px}.wealth-debt{padding:22px}.wealth-debt-heading{align-items:flex-start;flex-direction:column;gap:14px}.wealth-debt dl{gap:24px;flex-wrap:wrap}.wealth-nav a{font-size:14px;padding:12px 10px}.wealth-explanations{margin-top:28px}}
.wealth-months{display:block;position:relative;height:44px}.wealth-month{position:absolute;top:0;transform:translateX(-50%)}.wealth-month:first-child{transform:none}.wealth-month:last-child{transform:translateX(-100%)}.wealth-total-chart>.muted{margin:20px 0 12px}.wealth-debt-summary+*{margin-top:24px}
.wealth-month[hidden]{display:none!important}

/* Cartes de crédit compactes : identité et capital, puis repères et accès. */
.wealth-debt-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr));gap:16px;align-items:start}
.wealth-debt-list>h2{grid-column:1/-1;margin:0}
.wealth-debt{margin:0;padding:24px;min-width:0}
.wealth-debt-heading{align-items:flex-start;flex-direction:row;gap:24px}
.wealth-debt-heading>div:first-child{min-width:0}
.wealth-debt h3,.wealth-debt-heading .small{overflow-wrap:anywhere}
.wealth-debt-remaining{display:grid;gap:4px;text-align:right;flex-shrink:0}
.wealth-debt .amount{font-size:24px;line-height:1.25}
.wealth-debt-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.wealth-debt dl{border:0;padding:0;margin:0;gap:12px 24px;flex-wrap:wrap;min-width:0}
.wealth-debt dd{margin-top:4px}
.wealth-debt-foot>.secondary{flex-shrink:0;white-space:nowrap}
@media(max-width:480px){.wealth-debt{padding:20px}.wealth-debt-heading{gap:16px}.wealth-debt h3{font-size:17px}.wealth-debt-remaining .small{font-size:12px}.wealth-debt .amount{font-size:22px}.wealth-debt-foot{gap:16px}.wealth-debt dl{gap:12px}}
@media(max-width:360px){.wealth-debt-heading{flex-wrap:wrap}.wealth-debt-remaining{text-align:left}.wealth-debt-foot{flex-wrap:wrap}}

.wealth-chart-canvas{position:relative;min-width:0}.wealth-chart-tooltip{position:absolute;z-index:2;display:grid;gap:3px;padding:10px 14px;background:var(--ink);color:var(--surface);border-radius:8px;pointer-events:none;white-space:nowrap}.wealth-chart-tooltip[hidden]{display:none}.wealth-chart-tooltip .small{color:inherit;font-size:12px}.wealth-chart-tooltip strong{font-size:16px;font-variant-numeric:tabular-nums}.wealth-plot .wealth-hover-point{stroke:var(--accent);stroke-width:11px;stroke-linecap:round}.wealth-total-plot .wealth-y-axis span{font-size:12px}.wealth-allocation dl,.wealth-equation{display:grid;grid-template-columns:minmax(0,max-content) max-content;column-gap:24px;row-gap:12px;justify-content:start}.wealth-breakdown,.wealth-equation>div{display:contents}.wealth-breakdown dd,.wealth-equation dd{text-align:right}.wealth-equation dt{align-self:center}.wealth-debt-form .wealth-form-section>label{margin-top:18px}.wealth-debt-form .wealth-form-section>.hint:last-child{margin-bottom:0}

.wealth-debt-form .wealth-form-section>.hint{margin:12px 0 20px}.wealth-debt-confirm .wealth-line>div{min-width:0;overflow-wrap:anywhere}.wealth-debt-confirm .wealth-line>strong{white-space:normal;overflow-wrap:anywhere;max-width:55%;text-align:right}
.debt-overview{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:40px;padding:28px;background:var(--tint);border-radius:16px;margin:16px 0 32px}
.debt-overview h2{font-size:20px;margin:0 0 14px}.debt-capital progress{width:100%;height:8px;accent-color:var(--accent)}.debt-capital .small{margin-bottom:0}.debt-capital progress + .small{margin-top:8px}
.debt-next{border-left:1px solid var(--line);padding-left:32px}.debt-next-amount{font-size:28px;font-weight:650;margin:10px 0 4px;font-variant-numeric:tabular-nums}.debt-next-date{margin:0 0 10px}.debt-next .secondary{margin-top:8px}
.debt-section{background:var(--surface);border-radius:16px;padding:24px;margin:24px 0}.debt-section>h2{font-size:22px;margin:0 0 16px}.debt-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.debt-section-heading h2{font-size:22px;margin:0}
.debt-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-top:1px solid var(--line)}.debt-item p{margin:4px 0 0}.debt-item-side{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.debt-item-side>strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.debt-payment{border-top:1px solid var(--line);padding:16px 0}.debt-payment>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;min-height:44px}.debt-payment>summary>span{display:grid;gap:4px}.debt-payment>summary>strong{font-variant-numeric:tabular-nums;white-space:nowrap}.debt-payment .wealth-line{padding:12px 0}.debt-payment[open]>summary{margin-bottom:12px}
.debt-form-total{font-size:20px;font-weight:650;margin:16px 0 8px;font-variant-numeric:tabular-nums}.debt-contract{margin-top:32px}.debt-contract .wealth-line{max-width:700px}
.debt-capital progress{appearance:none;border:0;display:block;border-radius:4px;overflow:hidden;background:var(--surface)}.debt-capital progress::-webkit-progress-bar{background:var(--surface);border-radius:4px}.debt-capital progress::-webkit-progress-value{background:var(--accent);border-radius:4px}.debt-capital progress::-moz-progress-bar{background:var(--accent);border-radius:4px}
.debt-payment-confirm .wealth-line{margin:0;padding:12px 0;align-items:baseline}.debt-payment-confirm .wealth-line>div{min-width:0;overflow-wrap:anywhere}.debt-payment-confirm .wealth-line>strong{white-space:normal;max-width:48%;text-align:right;overflow-wrap:anywhere}.debt-payment-confirm .hint{margin:16px 0}.debt-payment-confirm .actions{margin-top:16px}
.debt-entry-form>.fields{margin-top:20px}.debt-entry-form>.fields:has(#debt-pay-principal){padding-top:20px;border-top:1px solid var(--line);grid-template-columns:repeat(3,minmax(0,1fr))}.debt-entry-form .debt-form-total{margin:18px 0 8px}.debt-entry-form .hint{margin:12px 0}
.debt-payment>summary::after{content:"";width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);flex:none;margin-left:4px}.debt-payment>summary>strong{margin-left:auto}.debt-payment[open]>summary::after{transform:rotate(225deg)}
@media(max-width:680px){.debt-entry-form>.fields:has(#debt-pay-principal){grid-template-columns:1fr}.debt-payment-confirm .wealth-line{gap:14px}}
.debt-budget-row{display:flex;align-items:center;justify-content:space-between;gap:24px;color:var(--ink);text-decoration:none;padding:16px 0;border-top:1px solid var(--line)}.debt-budget-row>span{display:grid;gap:4px;min-width:0}.debt-budget-row>strong{white-space:nowrap;font-variant-numeric:tabular-nums}.debt-budget-row:hover strong{text-decoration:underline;text-underline-offset:3px}
@media(max-width:680px){.debt-overview{grid-template-columns:1fr;gap:24px;padding:22px}.debt-next{padding:22px 0 0;border-left:0;border-top:1px solid var(--line)}.debt-section{padding:20px}.debt-section-heading{align-items:flex-start;flex-direction:column;gap:8px}.debt-item{align-items:flex-start}.debt-item-side{max-width:55%;gap:4px 8px}.debt-item-side>strong{width:100%;text-align:right}.debt-item-side .text-button{padding:10px 4px}.debt-budget-row{gap:14px}.debt-budget-row>span strong{overflow-wrap:anywhere}.debt-payment .wealth-line{gap:10px}.debt-payment .wealth-line>div{min-width:0}}
