/* Compact estimation layout. The illustration caption stays in normal flow. */
html:root body #estimation-page{padding:0!important}
html:root body #estimation-page>.wrap{padding-top:16px!important;padding-bottom:24px!important}
html:root body #estimation-page .estimate-grid{align-items:start!important;gap:20px!important}
html:root body #estimation-page .estimate-form-panel{padding:24px!important;min-width:0}
html:root body #estimation-page .estimate-form-panel h1{font-size:30px!important;line-height:1.2!important;text-align:left!important;margin:6px 0 10px!important}
html:root body #estimation-page .estimate-form-panel>p{font-size:14px!important;line-height:1.5!important;margin:0 0 16px!important}
html:root body #estimation-page .estimate-form{margin-top:16px!important}
html:root body #estimation-page .estimate-form fieldset{margin:0 0 20px!important;padding:0!important;min-width:0}
html:root body #estimation-page .estimate-form legend{font-size:17px!important;line-height:1.35!important;margin-bottom:12px!important;max-width:100%}
html:root body #estimation-page .estimate-fields{gap:14px!important;align-items:start!important}
html:root body #estimation-page .estimate-fields>*{min-width:0!important}
html:root body #estimation-page .estimate-form label{display:block;font-size:13px!important;line-height:1.4!important;font-weight:600}
html:root body #estimation-page .estimate-form :is(input:not([type=checkbox]),select,textarea){box-sizing:border-box!important;width:100%!important;min-width:0!important;margin:5px 0 0!important;padding:10px 12px!important;min-height:46px!important;font-size:16px!important;line-height:1.3!important}
html:root body #estimation-page .estimate-form .estimate-check{display:flex!important;align-items:flex-start!important;gap:8px!important;margin-top:10px!important}
html:root body #estimation-page .estimate-check input[type=checkbox]{flex:0 0 18px!important;width:18px!important;height:18px!important;min-height:18px!important;margin:1px 0 0!important}
html:root body #estimation-page .estimate-contact{padding:16px!important}
html:root body #estimation-page .estimate-form :is(p,.note,.estimate-privacy){font-size:12px!important;line-height:1.5!important;margin:8px 0 12px!important}
html:root body #estimation-page .estimate-aside{position:static!important;min-height:0!important;height:auto!important;align-self:start!important;background:#edf6fa!important;color:#123b55!important;border:1px solid #c9dfe9;border-radius:14px!important;overflow:hidden}
html:root body #estimation-page .estimate-aside::after{display:none!important}
html:root body #estimation-page .estimate-aside img{position:static!important;display:block!important;width:100%!important;height:220px!important;object-fit:cover!important;object-position:center 65%!important}
html:root body #estimation-page .estimate-aside>div{position:static!important;inset:auto!important;padding:18px!important;background:#edf6fa!important;color:#123b55!important}
html:root body #estimation-page .estimate-aside strong{display:block;font-size:20px!important;line-height:1.3!important;color:#123b55!important}
html:root body #estimation-page .estimate-aside p{font-size:14px!important;line-height:1.5!important;margin:8px 0 0!important;color:#34556a!important}
html:root body:has(#estimation-page) .mobile-cta{display:none!important}
@media(max-width:760px){
 html:root body #estimation-page>.wrap{width:100%!important;padding:10px 12px 20px!important}
 html:root body #estimation-page .estimate-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
 html:root body #estimation-page .estimate-form-panel{padding:16px!important;border-radius:14px!important}
 html:root body #estimation-page .estimate-form-panel h1{font-size:24px!important}
 html:root body #estimation-page .estimate-form-panel .kicker{display:none!important}
 html:root body #estimation-page .estimate-fields{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 html:root body #estimation-page .estimate-aside img{height:150px!important}
 html:root body #estimation-page .estimate-aside>div{padding:14px!important}
 html:root body #estimation-page .estimate-aside strong{font-size:18px!important}
}

/* Keep the multiline legend outside the coloured contact card. */
html:root body #estimation-page .estimate-form fieldset.estimate-contact{background:transparent!important;padding:0!important;border:0!important;min-width:0}
html:root body #estimation-page .estimate-contact>legend{float:left!important;display:block!important;width:100%!important;box-sizing:border-box;white-space:normal!important;margin:0 0 12px!important;padding:0!important;line-height:1.4!important}
html:root body #estimation-page .estimate-contact-body{clear:both;display:flow-root;background:#f0f6f9;border-radius:12px;padding:16px;min-width:0}
html:root body #estimation-page .estimate-contact-body>p:first-child{margin-top:0!important}
html:root body #formulaire-estimation>button[type="submit"]{display:block!important;width:fit-content!important;max-width:100%!important;margin:16px auto 0!important;float:none!important;text-align:center!important}

/* Lighter field content; required information stays in the labels. */
html:root body #formulaire-estimation :is(input:not([type=checkbox]),select,textarea){font-weight:400!important;color:#254357!important;background:#fff!important;box-shadow:none!important}
html:root body #formulaire-estimation :is(input,textarea)::placeholder{font-weight:400!important;color:#738492!important;opacity:1!important}
html:root body #formulaire-estimation select:has(option[value=""]:checked){color:#738492!important}

html:root body #estimation-page .estimate-launch-heading{margin:0 0 12px!important;font-size:18px!important;text-align:center!important}
html:root body #estimate-launch{display:flex!important;align-items:center;justify-content:center;gap:12px;width:100%;min-height:48px;padding:12px 16px!important;border:1px solid #00a0d3!important;border-radius:14px!important;background:#00a0d3!important;color:#082b40!important;-webkit-text-fill-color:#082b40!important;font:650 18px/1.3 Manrope,Arial,sans-serif;box-shadow:none!important;cursor:pointer}
html:root body #estimate-launch :is(span,svg,path){color:#082b40!important;-webkit-text-fill-color:#082b40!important}
html:root body #estimate-launch svg{flex:0 0 18px;transition:transform .2s}
html:root body #estimate-launch[aria-expanded="true"] svg{transform:rotate(180deg)}
html:root body #estimate-launch:focus-visible{outline:3px solid #082b40;outline-offset:3px}
html:root body #estimation-page #estimate-content[hidden]{display:none!important}
@media(max-width:760px){html:root body #estimate-launch{font-size:16px!important}}
@media(prefers-reduced-motion:reduce){html:root body #estimate-launch svg{transition:none}}

html:root body #estimation-page .estimate-grid:has(>#estimate-content[hidden]){grid-template-columns:minmax(0,1fr)!important}
html:root body #estimation-page .estimate-grid:has(>#estimate-content[hidden]) .estimate-aside{width:100%;box-sizing:border-box}

/* Match the illustration and useful links in one compact visual rhythm. */
html:root body #estimation-page>.wrap{padding-bottom:12px!important}
html:root body #estimation-resources{padding:12px 20px 24px!important;background:#f3f7fa!important}
html:root body #estimation-resources>.wrap{max-width:1240px;margin:auto;padding:18px!important;background:#fff;border:1px solid #d4e3eb;border-radius:14px}
html:root body #estimation-resources h2{font-size:20px!important;line-height:1.3!important;font-weight:700!important;text-align:left!important;margin:0 0 14px!important}
html:root body #estimation-resources ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;list-style:none;margin:0!important;padding:0!important}
html:root body #estimation-resources li{margin:0!important;padding:0!important;font-size:14px!important;line-height:1.4!important;min-width:0}
html:root body #estimation-resources a{display:flex;align-items:center;justify-content:space-between;gap:10px;box-sizing:border-box;min-height:44px;padding:10px 12px;border:1px solid #cce1eb;border-radius:9px;background:#f2f8fb;color:#174963;text-decoration:none;font-size:14px!important;font-weight:600}
html:root body #estimation-resources a::after{content:'→';flex:none;color:#0875aa}
html:root body #estimation-resources a:focus-visible{outline:3px solid #0875aa;outline-offset:2px}
html:root body #estimation-page .estimate-aside{border-radius:14px!important}
html:root body #estimation-page .estimate-aside>div{padding:14px 16px!important}
html:root body #estimation-page .estimate-aside strong{font-size:19px!important;font-weight:700!important}
html:root body #estimation-page .estimate-aside p{font-size:13px!important;line-height:1.5!important;margin-top:6px!important}
html:root body:has(#estimation-page) section.banner{padding:22px 16px!important}
html:root body:has(#estimation-page) section.banner>.wrap{padding-top:0!important;padding-bottom:0!important}
@media(max-width:760px){
 html:root body #estimation-resources{padding:0 12px 16px!important}
 html:root body #estimation-resources>.wrap{width:100%!important;padding:14px!important}
 html:root body #estimation-resources h2{font-size:18px!important;margin-bottom:10px!important}
 html:root body #estimation-resources ul{grid-template-columns:minmax(0,1fr)!important;gap:7px}
 html:root body #estimation-resources a{font-size:13px!important;padding:10px 12px}
 html:root body #estimation-page .estimate-aside img{height:170px!important}
 html:root body #estimation-page .estimate-aside strong{font-size:18px!important}
}
/* Smaller hints in empty fields, while typed text keeps its readable size. */
html:root body #formulaire-estimation :is(input,textarea)::placeholder{font-size:14px!important;font-weight:400!important}
html:root body #formulaire-estimation select:has(option[value=""]:checked){font-size:14px!important;font-weight:400!important}

@media (min-width: 768px) {
 html:root body #estimation-page .estimate-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
 }
 html:root body #estimation-page .estimate-form :is(input:not([type=checkbox]), select) {
  height: 48px !important;
 }
 html:root body #estimation-page .estimate-fields label > :is(input:not([type=checkbox]), select) {
  display: block;
 }
}

/* Give native controls and Safari autofill the same background. */
html:root body #estimation-page #formulaire-estimation select {
 appearance: none;
 -webkit-appearance: none;
 background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23254357' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center !important;
 padding-right: 34px !important;
}
html:root body #estimation-page #formulaire-estimation :is(input, textarea):-webkit-autofill {
 -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
 -webkit-text-fill-color: #254357 !important;
}
