/* Assistant de projet MGS : styles limités à cette section. */
#assistant-budget .budget-cost-option{margin:14px 0 0;padding:14px;border:1px solid #e7a8c3;border-radius:8px;background:#fff3f8;color:#191c19}
#assistant-budget .budget-cost-option>b{display:block;font-size:16px;line-height:1.4}
#assistant-budget .budget-cost-option>p{font-size:15px;line-height:1.5;margin:8px 0 0}
#assistant-budget .budget-cost-option .budget-small-button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:48px;margin:12px 0 0;padding:10px 12px;border:0;border-radius:6px;background:#191c19;color:#fff;font-size:15px;line-height:1.4;text-align:center;text-decoration:none}
.budget-section{background:#f8f5f6;padding-block:64px;color:var(--ink,#191c19);border-block:1px solid #eadfe4}
.budget-section [hidden]{display:none!important}
.budget-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:40px;margin-bottom:29px}
.budget-heading .eyebrow{margin-bottom:12px}
.budget-heading h2{font-size:40px;line-height:1.1;letter-spacing:-1.4px}
.budget-intro{max-width:385px;padding-bottom:2px}
.budget-intro>p:first-child{font-size:14px;line-height:1.8}
.budget-intro .budget-note{margin-top:11px}
.budget-layout{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,.97fr);gap:25px;align-items:start}
.budget-form,.budget-result{min-width:0;background:#fff;border:1px solid #e3d9df;border-radius:14px;box-shadow:0 8px 25px #1d101205}
.budget-form{padding:27px}
.budget-form-heading{padding-bottom:24px}
.budget-example{display:inline-flex;align-items:center;gap:7px;background:#fdebf2;color:#a5164d;font-size:11px;font-weight:700;line-height:1.6;border-radius:5px;padding:6px 9px}
.budget-example:before{content:'✦';font-size:13px}
.budget-form-heading>p{font-size:21px;font-weight:700;color:var(--ink,#191c19);line-height:1.4;letter-spacing:-.4px;margin-top:12px}
.budget-fieldset{min-width:0;border:0;padding:0;margin:0 0 25px}
.budget-fieldset legend{width:100%;padding:0;display:flex;align-items:center;gap:10px;font-size:15px;font-weight:700;margin-bottom:13px;color:var(--ink,#191c19)}
.budget-step{display:inline-grid;place-items:center;width:26px;height:26px;flex:0 0 26px;border-radius:50%;background:var(--strong,#191c19);color:#fff;font-size:12px;letter-spacing:0}
.budget-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.budget-choices>label{min-width:0;min-height:66px;display:flex;align-items:center;gap:9px;border:1px solid #ddd6d9;border-radius:7px;background:#fff;padding:12px;cursor:pointer;transition:border-color .15s,background .15s}
.budget-choices>label:has(input:checked){border-color:var(--accent,#d81f64);background:#fff3f7;box-shadow:inset 0 0 0 1px var(--accent,#d81f64)}
.budget-choices input{width:16px;height:16px;min-width:16px;margin:0;accent-color:var(--accent,#d81f64);cursor:pointer}
.budget-choices label>span{font-size:12px;line-height:1.5;font-weight:700;color:var(--ink,#191c19)}
.budget-choices small{display:block;font-size:10px;line-height:1.5;font-weight:400;color:var(--muted,#5e665b);margin-top:3px}
.budget-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.budget-mode-choices{margin-bottom:17px}
.budget-field{display:flex;flex-direction:column;min-width:0;gap:7px;font-size:12px;color:var(--ink,#191c19);font-weight:600}
.budget-field>span:first-child{display:block;line-height:1.5}
.budget-field>span>small{font-weight:400;font-size:10px;color:var(--muted,#5e665b);margin-left:3px}
.budget-section input[type=text],.budget-section select{width:100%;min-width:0;min-height:48px;border:1px solid #cfcbd0;background:#fff;border-radius:6px;color:var(--ink,#191c19);font-family:inherit;font-size:14px;font-weight:400;line-height:1.4;padding:12px}
.budget-section select{cursor:pointer;padding-right:25px}
.budget-input-unit{position:relative;display:block}
.budget-input-unit>input[type=text]{padding-right:43px}
.budget-input-unit>span{position:absolute;right:13px;top:50%;transform:translateY(-50%);font-size:13px;color:var(--muted,#5e665b);pointer-events:none;font-weight:400}
.budget-section input:focus-visible,.budget-section select:focus-visible,.budget-section button:focus-visible,.budget-section summary:focus-visible,.budget-section a:focus-visible{outline:3px solid var(--accent,#d81f64);outline-offset:3px}
.budget-choices label:has(input:focus-visible){outline:3px solid var(--accent,#d81f64);outline-offset:3px}
.budget-help{font-size:11px;line-height:1.7;color:var(--muted,#5e665b);margin-top:9px}
.budget-surface-readout{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #ece7ea;padding:13px 0 16px;margin-top:3px;font-size:12px;color:var(--muted,#5e665b)}
.budget-surface-readout output{font-size:23px;line-height:1.1;font-weight:700;color:var(--ink,#191c19);letter-spacing:-.5px}
.budget-model-field{margin-top:14px}
.budget-support-panel{margin-top:15px}
.budget-refine{border-top:1px solid #e8e0e4;border-bottom:1px solid #e8e0e4;margin-block:1px 22px}
.budget-refine>summary{list-style:none;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;font-size:13px;font-weight:700;color:var(--ink,#191c19)}
.budget-refine>summary::-webkit-details-marker{display:none}
.budget-chevron{width:19px;height:19px;flex-shrink:0;transition:transform .15s}
.budget-refine[open] .budget-chevron{transform:rotate(180deg)}
.budget-refine-fields{padding-bottom:17px}
.budget-submit{width:100%;min-height:52px!important;justify-content:space-between!important;font-size:14px!important;border-radius:6px}
.budget-reset{display:block;min-height:44px;border:0;background:transparent;text-decoration:underline;text-underline-offset:4px;font-size:12px;font-weight:600;color:var(--muted,#5e665b);padding:10px 7px;margin:9px auto -4px}
.budget-error{background:#fff0f5;border:1px solid #efc1d3;border-left:4px solid var(--accent,#d81f64);border-radius:5px;color:#89143f;font-size:13px;line-height:1.65;padding:13px;margin-bottom:17px}
.budget-result{padding:27px;scroll-margin-top:22px}
.budget-result:focus{outline:none}
.budget-result:focus-visible{outline:3px solid var(--accent,#d81f64);outline-offset:4px}
.budget-placeholder{padding:16px 3px 4px}
.budget-placeholder-icon{display:grid;place-items:center;width:76px;height:76px;border-radius:20px;background:var(--strong,#191c19);color:#ff78ac;margin-bottom:29px;transform:rotate(-5deg)}
.budget-placeholder-icon svg{width:52px;height:52px;transform:rotate(5deg)}
.budget-placeholder>.eyebrow{color:var(--accent,#d81f64);font-size:10px;margin-bottom:12px}
.budget-placeholder h3{font-size:33px;line-height:1.13;letter-spacing:-1px;margin-bottom:17px}
.budget-placeholder>p:not(.eyebrow):not(.budget-note){font-size:14px;line-height:1.85;max-width:360px}
.budget-placeholder ul{padding:20px 0 24px;margin:0;list-style:none;display:grid;gap:13px}
.budget-placeholder li{position:relative;padding-left:23px;font-size:13px;line-height:1.7;color:var(--ink,#191c19)}
.budget-placeholder li:before{content:'✓';position:absolute;left:0;color:var(--accent,#d81f64);font-weight:700}
.budget-placeholder>.budget-note{border-top:1px solid #e8e0e4;padding-top:18px}
.budget-result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;border-bottom:1px solid #e8e0e4;padding-bottom:20px;margin-bottom:20px}
.budget-result-head .eyebrow{font-size:10px;color:var(--accent,#d81f64);margin-bottom:8px}
.budget-result-head>p{font-size:12px;line-height:1.7}
.budget-model-name{font-size:27px;font-weight:700;line-height:1.2;letter-spacing:-.8px;color:var(--ink,#191c19)}
.budget-price{font-size:38px;font-weight:700;line-height:1.1;letter-spacing:-1.2px;color:var(--ink,#191c19);white-space:nowrap}
.budget-price small,.budget-price>span{display:block;white-space:normal;font-size:11px;font-weight:400;line-height:1.7;letter-spacing:0;color:var(--muted,#5e665b);margin-top:6px}
.budget-breakdown{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;margin-block:19px}
.budget-breakdown table,table.budget-breakdown{width:100%;border-collapse:collapse;text-align:left;font-size:12px;line-height:1.6}
.budget-breakdown th{font-size:10px;font-weight:600;color:var(--muted,#5e665b);padding:0 5px 10px;text-align:right}
.budget-breakdown th:first-child,.budget-breakdown td:first-child{text-align:left;padding-left:0}
.budget-breakdown td{padding:12px 5px;border-top:1px solid #e8e0e4;vertical-align:top;text-align:right;color:var(--ink,#191c19)}
.budget-breakdown th:last-child,.budget-breakdown td:last-child{padding-right:0;font-weight:700;white-space:nowrap}
.budget-breakdown td:first-child{min-width:110px;width:46%}
.budget-breakdown td a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.budget-breakdown td small{display:block;font-size:10px;font-weight:400;color:var(--muted,#5e665b);line-height:1.7;margin-top:3px}
.budget-plan{background:#f4f6f2;border:1px solid #e2e7de;border-radius:9px;padding:16px;margin-top:20px;min-width:0}
.budget-plan svg{display:block;width:100%;max-width:100%;height:auto;max-height:330px;margin-inline:auto}
.budget-plan svg text{font-family:inherit}
.budget-plan h4,.budget-plan>h3{font-size:15px;font-weight:700;line-height:1.5;letter-spacing:-.2px;margin:0 0 13px}
.budget-plan-meta{display:flex;align-items:center;gap:7px 13px;flex-wrap:wrap;font-size:11px;line-height:1.7;color:var(--muted,#5e665b);margin-block:11px}
.budget-plan-meta>span{display:inline-block}
.budget-note{font-size:12px;line-height:1.75;color:var(--muted,#5e665b)}
.budget-result>.budget-note{margin-block:12px}
.budget-assumptions{background:#f7f5f6;border:1px solid #e7e0e4;border-radius:7px;padding:13px 15px;margin-block:17px;font-size:12px;line-height:1.75;color:var(--muted,#5e665b)}
.budget-assumptions summary{min-height:32px;cursor:pointer;font-weight:700;color:var(--ink,#191c19)}
.budget-assumptions ul,.budget-assumptions ol{padding-left:17px;margin:9px 0 0}
.budget-assumptions li+li{margin-top:7px}
.budget-actions{display:flex;align-items:center;gap:10px 17px;flex-wrap:wrap;margin-top:22px}
.budget-actions>.btn{min-height:48px;font-size:12px;gap:17px}
.budget-actions>a:not(.btn),.budget-actions>button:not(.btn){display:inline-flex;align-items:center;min-height:44px;font-size:12px;font-weight:600;line-height:1.5;text-decoration:underline;text-underline-offset:4px}
.budget-exclusions{font-size:11px;line-height:1.8;color:var(--muted,#5e665b);border-top:1px solid #e8e0e4;padding-top:15px;margin-top:18px}
.budget-exclusions strong{color:var(--ink,#191c19);font-weight:600}
.budget-alt{padding:15px;border:1px solid #edccda;border-radius:7px;background:#fff3f7;margin-top:18px;font-size:12px;line-height:1.8;color:var(--ink,#191c19)}
.budget-alt a{color:var(--accent,#d81f64);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.budget-area-prompt{background:#fff3f7;border:1px dashed #d89bb2;border-radius:9px;padding:17px;margin-block:18px;font-size:14px;line-height:1.8;color:var(--ink,#191c19)}
.budget-area-prompt h3{font-size:20px;line-height:1.3;letter-spacing:-.5px;margin-bottom:9px}
@media(max-width:1100px){.budget-layout{gap:18px}.budget-form,.budget-result{padding:22px}.budget-choices>label{padding:11px 9px;gap:7px}.budget-choices label>span{font-size:11px}.budget-choices small{font-size:10px}.budget-heading h2{font-size:35px}.budget-intro{max-width:330px}.budget-field-grid{gap:10px}.budget-model-name{font-size:24px}.budget-price{font-size:33px}.budget-result-head{gap:16px}}
@media(max-width:800px){.budget-layout{grid-template-columns:1fr;gap:23px}.budget-heading{align-items:flex-start;flex-direction:column;gap:18px}.budget-intro{max-width:600px}.budget-heading h2{font-size:36px}.budget-form,.budget-result{padding:25px}.budget-choices label>span{font-size:14px}.budget-choices small{font-size:12px}.budget-field{font-size:14px}.budget-field>span>small{font-size:12px}.budget-help{font-size:12px}.budget-section input[type=text],.budget-section select{font-size:16px}.budget-placeholder{padding-top:3px}.budget-placeholder h3{font-size:31px}.budget-placeholder>p:not(.eyebrow):not(.budget-note){max-width:100%}.budget-model-name{font-size:27px}.budget-price{font-size:36px}}
@media(max-width:600px){
 .budget-section{padding-block:38px}.budget-heading{margin-bottom:22px;gap:17px}.budget-heading h2{font-size:32px;letter-spacing:-1px}.budget-intro>p:first-child{font-size:14px;line-height:1.8}.budget-intro .budget-note{font-size:12px}
 .budget-form,.budget-result{padding:19px;border-radius:10px}.budget-form-heading{padding-bottom:22px}.budget-example{font-size:11px;padding:6px 8px}.budget-form-heading>p{font-size:20px}
 .budget-fieldset{margin-bottom:24px}.budget-fieldset legend{font-size:15px;gap:9px;margin-bottom:12px}.budget-choices{gap:9px}.budget-choices>label{padding:11px 10px;min-height:74px;align-items:flex-start}.budget-choices input{margin-top:4px}.budget-choices label>span{font-size:12px;line-height:1.55}.budget-choices small{font-size:11px;line-height:1.55}
 .budget-field-grid{gap:12px}.budget-fieldset:nth-of-type(2) .budget-field-grid,.budget-refine-fields .budget-field-grid{grid-template-columns:1fr}.budget-field{font-size:14px}.budget-field>span>small{display:block;margin-left:0;font-size:12px}.budget-section input[type=text],.budget-section select{font-size:16px;min-height:48px}.budget-input-unit>span{font-size:14px}.budget-help{font-size:12px;line-height:1.75}.budget-surface-readout{font-size:14px;padding-block:15px}.budget-surface-readout output{font-size:25px}.budget-model-field{margin-top:15px}
 .budget-refine>summary{font-size:14px;min-height:50px}.budget-submit{min-height:52px!important;font-size:14px!important}.budget-reset{min-height:44px;font-size:12px}.budget-error{font-size:13px}
 .budget-placeholder-icon{width:66px;height:66px;border-radius:17px;margin-bottom:25px}.budget-placeholder h3{font-size:29px}.budget-placeholder li{font-size:14px}.budget-placeholder>.eyebrow{font-size:10px}.budget-note{font-size:12px;line-height:1.8}
 .budget-result-head{padding-bottom:17px;margin-bottom:17px;gap:16px}.budget-model-name{font-size:25px}.budget-price{font-size:35px}.budget-price small,.budget-price>span{font-size:12px}.budget-breakdown{font-size:12px}.budget-breakdown th{font-size:10px}.budget-breakdown td{font-size:12px;padding:12px 4px}.budget-breakdown td small{font-size:11px}.budget-breakdown td:first-child{min-width:105px}
 .budget-breakdown table:has(td[data-label]),table.budget-breakdown:has(td[data-label]){display:block;width:100%}.budget-breakdown table:has(td[data-label]) thead,table.budget-breakdown:has(td[data-label]) thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.budget-breakdown table:has(td[data-label]) tbody,table.budget-breakdown:has(td[data-label]) tbody{display:grid;gap:10px}.budget-breakdown tr:has(td[data-label]){display:block;padding:12px;border:1px solid #e8e0e4;border-radius:7px}.budget-breakdown tr:has(td[data-label]) td{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-width:0;width:100%;text-align:right;padding:5px 0;border:0;white-space:normal}.budget-breakdown tr:has(td[data-label]) td:first-child{display:block;text-align:left;font-size:14px;font-weight:700;padding:0 0 8px}.budget-breakdown tr:has(td[data-label]) td[data-label]:not(:first-child):before{content:attr(data-label);flex:1;text-align:left;color:var(--muted,#5e665b);font-size:12px;font-weight:400}
 .budget-plan{padding:13px;margin-top:18px}.budget-plan svg{max-height:300px}.budget-plan-meta{font-size:12px;gap:6px 11px}.budget-assumptions{font-size:12px;padding:12px}.budget-assumptions summary{min-height:44px;display:flex;align-items:center}.budget-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px}.budget-actions>.btn{width:100%;min-height:50px;justify-content:space-between;font-size:14px}.budget-actions>a:not(.btn),.budget-actions>button:not(.btn){font-size:12px;min-height:44px}.budget-exclusions,.budget-alt{font-size:12px;line-height:1.8}.budget-alt{padding:13px}.budget-alt a{display:inline-flex;align-items:center;min-height:44px}.budget-area-prompt{font-size:14px;padding:15px}
}
@media(max-width:360px){.budget-form,.budget-result{padding:15px}.budget-heading h2{font-size:30px}.budget-choices>label{padding:10px 8px;gap:7px}.budget-choices label>span{font-size:12px}.budget-choices small{font-size:10px}.budget-example{font-size:10px}.budget-price{font-size:31px}.budget-model-name{font-size:23px}}
@media(prefers-reduced-motion:reduce){.budget-choices>label,.budget-chevron{transition:none}}
/* Rendu du récapitulatif chiffré et de ses liens d’action. */
.budget-section{scroll-margin-top:20px}
.budget-result-head{display:block}
.budget-result-head .budget-model-name{margin-bottom:12px}
.budget-result-head .budget-reason{font-size:13px;line-height:1.8;margin-bottom:10px}
.budget-product-link{display:inline-flex;align-items:center;min-height:44px;font-size:12px;font-weight:600;color:var(--accent);border-bottom:1px solid #e4bacb}
.budget-price{padding-block:2px 5px}
.budget-price>strong{display:block;font-size:40px;line-height:1.2;letter-spacing:-1.2px}
.budget-price>span{margin:0 0 7px;font-weight:600;color:var(--ink)}
.budget-price>small{display:block;white-space:normal;font-size:11px;line-height:1.8;letter-spacing:0;font-weight:400;color:var(--muted);margin-top:5px}
.budget-plan-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:17px}
.budget-plan-meta>span{border:1px solid #ead6df;border-radius:5px;padding:9px;font-size:10px;line-height:1.6;background:#fff8fb}
.budget-plan-meta b{display:block;color:var(--ink);font-size:14px}
.budget-plan>p{font-size:12px;line-height:1.8;color:var(--ink);margin-top:7px}
.budget-plan>small{display:block;font-size:10px;line-height:1.7;color:var(--muted);margin-top:9px}
.budget-breakdown caption{text-align:left;font-size:13px;font-weight:700;line-height:1.6;padding-bottom:12px;color:var(--ink)}
.budget-breakdown tbody th{font-size:12px;line-height:1.6;vertical-align:top;text-align:left;font-weight:600;color:var(--ink);width:42%;border-top:1px solid #e8e0e4;padding:12px 5px 12px 0}
.budget-breakdown tbody th a{color:var(--ink);text-decoration:underline;text-underline-offset:3px;display:inline-flex;align-items:center;min-height:44px}
.budget-breakdown tbody th small{display:block;font-weight:400;color:var(--muted);font-size:10px;line-height:1.7;margin-top:5px}
.budget-breakdown tbody td{white-space:normal;font-size:11px}
.budget-breakdown tfoot th,.budget-breakdown tfoot td{border-top:2px solid #dfb2c6;padding-block:16px;font-size:13px;color:var(--ink)}
.budget-small-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #dfc6d0;border-radius:5px;padding:10px 13px;background:white;color:var(--ink);font:inherit;font-size:12px;font-weight:600;line-height:1.5;cursor:pointer;text-align:left}
.budget-small-button:hover{background:#fff2f7;border-color:var(--accent)}
.budget-alt .budget-small-button,.budget-area-prompt .budget-small-button{margin-top:12px}
.budget-assumptions>p{font-size:11px;line-height:1.8;margin-top:12px}
.budget-assumptions a,.budget-note a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.budget-note a{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap}
.budget-section a,.budget-section button,.budget-section input,.budget-section select{scroll-margin-block:100px}
@media(max-width:1050px),(pointer:coarse){
 .budget-section input[type=text],.budget-section select{font-size:16px}
 .budget-assumptions summary{min-height:44px;display:flex;align-items:center}
 .budget-assumptions a{min-height:44px;display:inline-flex;align-items:center}
}
@media(max-width:600px){
 .budget-price>strong{font-size:36px}.budget-product-link{font-size:13px}
 .budget-plan-meta{gap:6px}.budget-plan-meta>span{padding:8px;font-size:10px}.budget-plan-meta b{font-size:13px}
 .budget-breakdown{overflow:visible}.budget-breakdown table,.budget-breakdown tbody,.budget-breakdown tfoot{display:block;width:100%}
 .budget-breakdown caption{display:block;width:100%;max-width:none}
 .budget-breakdown tbody th{display:block;width:100%;border:0;padding:0 0 9px;font-size:14px}
 .budget-breakdown tbody th a{min-height:44px}.budget-breakdown tbody th small{font-size:11px;line-height:1.8}
 .budget-breakdown tfoot tr{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
 .budget-breakdown tfoot th,.budget-breakdown tfoot td{font-size:13px;padding-top:16px;white-space:normal}
 .budget-assumptions>p,.budget-plan>small{font-size:11px}.budget-small-button{font-size:12px}
 .budget-actions .budget-small-button{justify-content:center}
}

/* V11 : résumé visible et détails à la demande, sans étirer les contenus. */
#assistant-budget .budget-layout{align-items:stretch}
.budget-refine-fields{display:grid;gap:16px}
.budget-form-preview{padding:0 0 16px}.budget-form-preview>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.budget-form-preview span{font-size:13px;font-weight:600}.budget-form-preview output{font-size:27px;line-height:1.2;font-weight:700;letter-spacing:-.7px}.budget-form-preview p{font-size:12px;line-height:1.7;margin-top:6px}
.budget-result-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:-5px 0 9px}.budget-result-top>.eyebrow{font-size:9px;letter-spacing:1px;color:var(--accent)}
.budget-edit{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 0;border:0;background:none;font:inherit;font-size:12px;font-weight:600;color:var(--muted);text-decoration:underline;text-underline-offset:3px}.budget-edit span{font-size:17px}
.budget-price{padding:0 0 19px;border-bottom:1px solid #e8e0e4;white-space:normal;font-size:inherit;font-weight:400;letter-spacing:normal}.budget-price>span{display:block;font-size:13px;font-weight:600;line-height:1.5;color:var(--ink);margin:0}.budget-price>strong{font-size:44px;line-height:1.15;letter-spacing:-1.5px;margin:5px 0}.budget-price>small{font-size:12px;line-height:1.7;margin-top:4px}
.budget-result-head{padding:18px 0 0;margin:0;border:0}.budget-result-head .budget-model-name{font-size:25px;line-height:1.25;margin:0}.budget-project-line{font-size:12px;font-weight:600;line-height:1.7;color:var(--ink);margin-top:7px}.budget-result-head .budget-reason{font-size:12px;line-height:1.75;margin:9px 0 0}.budget-product-link{font-size:12px;min-height:44px;margin:0;border:0;text-decoration:underline;text-underline-offset:4px;gap:10px}
.budget-summary-lines{margin:12px 0 0;padding:0;border-top:1px solid #eee7eb}.budget-summary-lines>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:10px 0;border-bottom:1px solid #eee7eb;font-size:12px;line-height:1.6}.budget-summary-lines dt{min-width:0;color:var(--ink)}.budget-summary-lines dd{margin:0;white-space:nowrap;color:var(--ink);font-weight:700}.budget-accessory-hint{font-size:12px;line-height:1.75;margin-top:11px;color:var(--muted)}
.budget-actions{margin-top:17px;gap:7px 15px}.budget-actions>.btn{font-size:13px;min-height:50px}.budget-actions>.budget-small-button{border:0;padding-inline:0;text-decoration:underline;text-underline-offset:3px}.budget-action-note{font-size:12px;line-height:1.7;margin-top:7px;color:var(--muted)}
.budget-exclusions{font-size:12px;line-height:1.75;margin-top:16px;padding:12px;border:0;border-radius:6px;background:#f9f5f7}.budget-exclusions>b{display:block;color:var(--ink);font-size:12px;margin-bottom:4px}.budget-exclusions p{font-size:inherit;line-height:inherit}
.budget-details{margin-top:18px;border-top:1px solid #e8e0e4}.budget-detail,.budget-details .budget-assumptions{margin:0;padding:0;background:none;border:0;border-bottom:1px solid #e8e0e4;border-radius:0;font-size:12px;line-height:1.75}
.budget-detail>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;padding:10px 0;cursor:pointer;font-size:13px;font-weight:700;color:var(--ink);line-height:1.5}.budget-detail>summary::-webkit-details-marker{display:none}.budget-detail>summary small{display:block;font-size:12px;font-weight:400;line-height:1.65;color:var(--muted);margin-top:3px}.budget-detail>summary>.budget-chevron{display:block;width:20px;height:20px;flex:0 0 20px}.budget-detail[open]>summary>.budget-chevron{transform:rotate(180deg)}
.budget-detail-body{padding:1px 0 18px;min-width:0}.budget-detail-body>p{font-size:12px;line-height:1.75}.budget-detail .budget-breakdown{margin:7px 0 0}.budget-detail .budget-plan{margin-top:10px}.budget-detail .budget-plan svg{max-height:250px}.budget-detail .budget-plan-meta{margin-top:7px}.budget-detail .budget-plan>small{font-size:12px}.budget-details .budget-assumptions ul{padding-left:18px;margin:9px 0 15px;font-size:12px;line-height:1.8}.budget-details .budget-assumptions a{display:inline-flex;align-items:center;min-height:44px}
.budget-secondary-actions{display:flex;align-items:center;justify-content:space-between;gap:8px 15px;flex-wrap:wrap;margin-top:17px}.budget-secondary-actions>a{display:inline-flex;align-items:center;gap:9px;min-height:44px;font-size:12px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
@media(max-width:1100px){.budget-actions{align-items:stretch;flex-direction:column}.budget-actions>.btn{justify-content:space-between}.budget-actions>.budget-small-button{align-self:flex-start}.budget-result-head .budget-model-name{font-size:23px}}
@media(max-width:800px){#assistant-budget .budget-layout{align-items:start}.budget-actions{flex-direction:row;align-items:center}.budget-result-head .budget-model-name{font-size:26px}}
@media(max-width:600px){.budget-form-heading{padding-bottom:18px}.budget-fieldset{margin-bottom:21px}.budget-choices small{font-size:12px}.budget-form-preview output{font-size:28px}.budget-price>strong{font-size:40px}.budget-result-head .budget-model-name{font-size:24px}.budget-result-head .budget-reason,.budget-project-line{font-size:13px}.budget-summary-lines>div{font-size:13px;gap:10px}.budget-actions{flex-direction:column;align-items:stretch;gap:4px}.budget-actions>.btn{width:100%;font-size:14px;min-height:52px;justify-content:space-between}.budget-actions>.budget-small-button{align-self:center}.budget-secondary-actions{flex-direction:column;align-items:stretch;gap:3px}.budget-secondary-actions>a{justify-content:center}.budget-detail>summary{font-size:14px}.budget-example{font-size:11px}.budget-result-top>.eyebrow{font-size:9px;letter-spacing:.7px}.budget-breakdown tbody th small{font-size:12px}}
@media(max-width:360px){.budget-price>strong{font-size:36px}.budget-result-head .budget-model-name{font-size:22px}.budget-summary-lines>div{font-size:12px}}
/* Du calcul au panier : une action principale, deux alternatives conservées. */
#assistant-budget .budget-purchase-block{margin:18px 0;padding:18px;background:#fff4f8;border:1px solid #efb8cf;border-radius:10px}
#assistant-budget .budget-purchase-title{font-size:18px;line-height:1.3;font-weight:700;color:#191c19;margin:0 0 7px}
#assistant-budget .budget-purchase-copy{font-size:14px;line-height:1.5;margin:0 0 12px}
#assistant-budget .budget-purchase-block .budget-actions{margin-top:12px;display:flex;align-items:stretch}
#assistant-budget .budget-purchase-block .budget-actions>.btn{width:100%;min-height:54px;justify-content:center;gap:14px;font-size:15px!important;line-height:1.4;padding:13px 16px;text-align:center}
#assistant-budget .budget-purchase-block .budget-actions>.btn>span:first-child{min-width:0;font-size:inherit;line-height:inherit;letter-spacing:0}
#assistant-budget .budget-purchase-block .budget-action-note{font-size:12px;line-height:1.55;margin:10px 0 0}
.budget-purchase-secondary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 18px;margin-top:8px}
.budget-purchase-secondary>a,.budget-purchase-secondary>button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;background:none;padding:5px 0;color:#b3164f;font:700 13px/1.5 Eina,Arial,sans-serif;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.budget-purchase-secondary>a:focus-visible,.budget-purchase-secondary>button:focus-visible{outline:3px solid #d81f64;outline-offset:3px}
.budget-cart-actions>.btn{width:100%;min-height:52px;justify-content:center;gap:12px;text-align:center;white-space:normal;line-height:1.4}
.budget-cart-actions .budget-purchase-secondary{width:100%}
#budget-cart-dialog .budget-purchase-secondary>a{color:#b3164f}
@media(max-width:600px){#assistant-budget .budget-purchase-block{padding:15px;margin:16px 0}#assistant-budget .budget-purchase-title{font-size:17px}#assistant-budget .budget-purchase-block .budget-actions>.btn{font-size:14px;min-height:54px;padding:12px 14px}.budget-purchase-secondary{justify-content:center;gap:0 16px}.budget-purchase-secondary>a,.budget-purchase-secondary>button{font-size:13px}.budget-cart-actions .budget-purchase-secondary{flex-direction:column}}
.budget-plan-adjustment{margin:0 0 16px;padding:12px 14px;border-left:3px solid #d81f64;background:#fff3f8;border-radius:0 8px 8px 0;color:#191c19;font-size:13px;line-height:1.5}
.budget-plan-adjustment b{display:block;margin-bottom:4px;font-size:14px}
.budget-plan-adjustment p{margin:0}
.budget-refine-geo{grid-column:1/-1}
.budget-refine-geo>small{font-weight:400;line-height:1.5}
.budget-water{margin-top:18px}
.budget-drainage-choice{grid-template-columns:minmax(0,1fr)}
.budget-drainage-choice>label{min-height:58px;align-items:flex-start}
.budget-drainage-choice input{margin-top:3px}
.budget-drainage-choice label>span{font-size:13px;line-height:1.5}
.budget-drainage-choice label small{font-size:12px;line-height:1.5}
.budget-drainage-choice:has(input:disabled){opacity:.7}
.budget-drainage-state{margin-top:12px;padding:12px 14px;border-left:3px solid #d81f64;background:#fff3f8;border-radius:0 7px 7px 0;font-size:13px;line-height:1.55}
.budget-drainage-state p{margin:4px 0 0;font-size:inherit;line-height:inherit}
.budget-drainage-state .budget-small-button{margin-top:6px}

/* Le projet reste guidé, le budget détaillé apparaît après validation explicite. */
#assistant-budget .budget-result[hidden],#assistant-budget .budget-form-preview[hidden]{display:none!important}
.budget-locked{display:none;min-width:0;align-self:start;background:#fff;border:1px solid #e3d9df;border-radius:14px;padding:27px;box-shadow:0 8px 25px #1d101205}
.budget-locked>.eyebrow{font-size:10px;color:var(--accent,#d81f64);margin-bottom:12px}
.budget-locked h3{font-size:30px;line-height:1.17;letter-spacing:-.8px;margin:0 0 14px}
.budget-locked-instruction{font-size:14px;line-height:1.7;color:#4b5148;margin:0 0 22px}
.budget-locked-instruction strong{font-weight:700;color:var(--ink,#191c19)}
.budget-locked-total{padding:18px;background:#f7f5f6;border-radius:8px}
.budget-locked-total>span,.budget-locked-total>small{display:block;font-size:12px;line-height:1.6;color:#5e665b}
.budget-locked-total>strong{display:block;font-size:40px;line-height:1.2;letter-spacing:-1px;color:#838782;margin:6px 0}
.budget-locked-lines{margin:18px 0 22px;padding:0}
.budget-locked-lines>div{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid #eee7eb;padding:12px 0;font-size:13px;line-height:1.5}
.budget-locked-lines dt{min-width:0}.budget-locked-lines dd{margin:0;color:#838782;font-weight:700}
.budget-locked-actions>button{width:100%;min-height:54px;border-radius:6px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left}
.budget-locked-actions button:disabled{background:#e9e9e7;color:#646862;border:1px solid #d7d9d5;font:700 13px/1.5 Eina,Arial,sans-serif;cursor:not-allowed;opacity:1}
.budget-locked-actions>div{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.budget-locked-actions>div>button{min-height:44px;padding:8px;border-radius:6px}
.budget-locked-help{display:flex;align-items:center;gap:9px;font-size:12px;line-height:1.6;color:#5e665b;margin:14px 0 0}
.budget-locked-help svg{width:17px;height:17px;flex:0 0 17px;color:var(--accent,#d81f64)}
@media(min-width:801px){#assistant-budget[data-budget-estimate="hidden"] .budget-locked{display:block}}
@media(min-width:801px) and (max-width:1100px){.budget-locked{padding:22px}.budget-locked h3{font-size:26px}.budget-locked-actions>div{grid-template-columns:1fr}}
@media(max-width:800px){#assistant-budget[data-budget-estimate="hidden"] .budget-layout{grid-template-columns:minmax(0,1fr);max-width:760px;margin-inline:auto}}

/* Les mesures réelles restent côte à côte ; les formats vendus sont un repère distinct. */
#assistant-budget .budget-measure-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px}
#assistant-budget .budget-measure-grid .budget-field>span:first-child{min-height:21px}
#assistant-budget .budget-measure-grid .budget-field>span>small{display:inline;margin-left:3px;font-size:11px}
#assistant-budget .budget-measure-format{font-size:11px;font-weight:400;line-height:1.5;color:#5e665b}
@media(max-width:360px){#assistant-budget .budget-measure-grid{gap:10px}#assistant-budget .budget-measure-grid .budget-field>span:first-child{font-size:13px}#assistant-budget .budget-measure-grid .budget-field>span>small{display:block;margin-left:0}#assistant-budget .budget-measure-format{font-size:11px}}
