:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#1d2140;background:#f7f8fc}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}.wrap{max-width:1180px;margin:auto;padding-left:26px;padding-right:26px}.top{background:#fff;border-bottom:1px solid #e9e8f1}.top-inner{display:flex;align-items:center;justify-content:space-between;min-height:82px;gap:22px}.brand img{width:150px;max-height:58px;object-fit:contain}.top nav{display:flex;align-items:center;gap:28px;font-size:14px;font-weight:600}.top nav a:hover{text-decoration:underline}.top-call{color:#6438c6}.hero{background:radial-gradient(circle at 85% 20%,#403781 0,transparent 40%),linear-gradient(120deg,#141733,#272052);color:#fff;padding:70px 0 125px}.eyebrow,.overline{font-size:11px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.eyebrow{color:#cfc6ff}.hero h1{font-size:clamp(36px,4.2vw,60px);line-height:1.12;letter-spacing:-.045em;max-width:820px;margin:18px 0}.hero h1 em{font-style:normal;color:#b7a3ff}.hero p{font-size:18px;line-height:1.65;color:#e0dff2;max-width:690px}.hero-tags{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.hero-tags span{padding:9px 14px;border:1px solid #6d638e;border-radius:30px;font-size:12px;color:#ebe6ff}.layout{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:24px;margin-top:-75px;position:relative}.panel{border:1px solid #e7e5f0;background:white;border-radius:20px;padding:30px;box-shadow:0 22px 65px rgba(28,24,65,.09)}.panel-head{display:flex;align-items:center;gap:15px;margin-bottom:28px}.step{width:38px;height:38px;display:grid;place-items:center;background:#eee9fb;color:#6335bf;border-radius:12px;font-weight:800;font-size:13px}.overline{color:#7556ac}.panel h2{font-size:23px;margin:6px 0 0;letter-spacing:-.03em}.field{margin:0 0 24px}.field>label{display:block;font-size:13px;font-weight:700;margin-bottom:10px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.choice{display:flex;gap:8px;flex-wrap:wrap}.choice label{flex:1;min-width:90px}.choice input{position:absolute;opacity:0;width:1px;height:1px}.choice span{display:block;text-align:center;border:1px solid #dedce8;border-radius:10px;padding:13px 10px;font-size:13px;font-weight:650;cursor:pointer}.choice input:checked+span{background:#f1ecff;border-color:#7144d1;color:#5c30b7}.choice input:focus-visible+span{outline:3px solid #a38bf4;outline-offset:2px}.input-unit{display:flex;align-items:center;border:1px solid #dedce8;border-radius:10px;overflow:hidden}.input-unit:focus-within{border-color:#7043cc;box-shadow:0 0 0 3px #eee8ff}.input-unit input{width:100%;min-width:0;padding:14px 10px 14px 14px;border:none;outline:none;font:inherit;font-weight:700;color:#262447}.input-unit span{padding:0 12px;color:#77788e;font-size:12px}select{width:100%;border:1px solid #dedce8;background:#fff;border-radius:10px;padding:14px;font:inherit;color:#262447}.recalc,.cta{border:0;display:flex;align-items:center;justify-content:space-between;width:100%;border-radius:11px;background:#6439c8;color:white;font-weight:750;padding:16px 18px;cursor:pointer;font-size:14px}.recalc:hover,.cta:hover{background:#4f29ac}.privacy{font-size:12px;color:#85869a;line-height:1.5;margin:14px 0 0}.main-metric{background:linear-gradient(120deg,#f3efff,#faf9ff);border:1px solid #ebe4ff;padding:23px;border-radius:13px;display:flex;flex-direction:column;gap:8px}.main-metric span{font-size:13px;color:#5a5680}.main-metric strong{font-size:clamp(30px,3vw,42px);letter-spacing:-.05em;color:#32245e}.main-metric small{font-size:12px;color:#6b6885}.scenario-title{font-size:13px;font-weight:800;margin:28px 0 15px}.info{color:#8b82ac}.scenario-row{display:grid;grid-template-columns:130px 1fr auto;align-items:center;gap:12px;margin:17px 0;font-size:12px}.scenario-row span{font-weight:750}.scenario-row small{display:block;font-weight:450;color:#87859b;margin-top:3px}.scenario-row b{font-size:14px}.track{background:#ecebf3;height:9px;border-radius:12px;overflow:hidden}.track i{display:block;height:100%;background:#bca8ed;border-radius:12px}.selected .track i{background:#653aca}.net-result{margin-top:28px;background:#26204a;color:white;padding:21px;border-radius:12px;display:flex;flex-direction:column;gap:10px}.net-result div{display:flex;flex-direction:column;gap:6px}.net-result small{color:#cfc5ed;font-size:11px}.net-result span{font-size:13px}.net-result strong{font-size:34px;letter-spacing:-.04em}.details{padding:17px 0 8px}.details>div{display:flex;justify-content:space-between;gap:14px;padding:10px 0;font-size:12px;border-bottom:1px solid #eeeeF4}.details span{color:#77748c}.details b{white-space:nowrap}.disclaimer{font-size:11px;color:#7f7e90;line-height:1.6;margin:15px 0 24px}.phone{display:block;margin-top:14px;text-align:center;color:#6338b8;font-size:12px;font-weight:650}.below{padding-top:70px;padding-bottom:80px;display:flex;align-items:center;justify-content:space-between;gap:35px}.below>div{max-width:700px}.below h2{font-size:31px;letter-spacing:-.035em}.below p{color:#77788e;line-height:1.7}.below>a{background:#eae4fa;color:#5c35b3;border-radius:11px;padding:17px 24px;font-weight:750;white-space:nowrap}footer{background:#171830;color:#e7e5f1}.foot-inner{padding-top:25px;padding-bottom:25px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;font-size:12px}footer .foot-inner div{display:flex;gap:17px}@media(max-width:850px){.layout{grid-template-columns:1fr}.hero{padding:55px 0 110px}.top nav a:not(.top-call){display:none}.below{flex-direction:column;align-items:flex-start}}@media(max-width:520px){.wrap{padding-left:16px;padding-right:16px}.panel{padding:22px}.field-grid{grid-template-columns:1fr}.scenario-row{grid-template-columns:110px 1fr auto;gap:8px}.top-inner{min-height:70px}.brand img{width:120px}.hero p{font-size:16px}.below h2{font-size:26px}}


/* V5 : le simulateur retrouve l'en-tête du site RECOVIA.
   Les styles propres au calculateur restent indépendants. */
.header{position:sticky;top:0;z-index:200;background:#fff;border-bottom:1px solid #e5e9f0}
.header .topbar{max-width:1180px;margin:auto;padding:12px 24px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.header .logo img{width:auto;height:56px;max-width:220px;object-fit:contain}
.header .nav{display:flex;align-items:center;gap:19px;font-size:14px;font-weight:700}
.header .nav a{white-space:nowrap}
.header .btn-header{background:#cf3d32;color:#fff;border-radius:8px;padding:13px 16px}
.header .btn-secondary{border:1px solid #7d92c2;border-radius:8px;padding:12px 15px}
.header .recovia-resources-group{position:relative;display:flex;align-items:center;gap:4px}
.header .recovia-resources-toggle{border:0;background:transparent;cursor:pointer;padding:8px 4px;color:inherit}
.header .recovia-resources-dropdown{display:none;position:absolute;top:100%;right:0;min-width:220px;padding:9px;background:#fff;box-shadow:0 12px 30px #172d4a22;border:1px solid #e5e9f0;border-radius:10px;z-index:250}
.header .recovia-resources-group:hover .recovia-resources-dropdown,.header .recovia-resources-group:focus-within .recovia-resources-dropdown,.header .recovia-resources-group.is-open .recovia-resources-dropdown{display:grid;gap:2px}
.header .recovia-resources-dropdown a{padding:10px 12px;border-radius:6px}
.header .recovia-resources-dropdown a:hover{background:#f3f0fb}
.header .menu-toggle{display:none}
.panel:not(.light){background:white;color:#1d2140}
.panel:not(.light) h2{color:#1d2140}
@media(max-width:1120px){
 .header .menu-toggle{display:block;border:1px solid #dde3ec;background:#fff;border-radius:8px;padding:10px 14px;cursor:pointer}
 .header .nav{display:none;position:absolute;top:100%;left:0;right:0;background:white;box-shadow:0 12px 20px #172d4a18;padding:18px 24px;flex-direction:column;align-items:stretch;gap:12px;max-height:calc(100vh - 80px);overflow-y:auto}
 .header .nav.is-open{display:flex}
 .header .recovia-resources-group{display:flex;flex-wrap:wrap;justify-content:space-between}
 .header .recovia-resources-dropdown{position:static;flex-basis:100%;box-shadow:none}
 .header .btn-header,.header .btn-secondary{width:fit-content}
}


/* V6 : isolation visuelle du simulateur pour éviter les conflits avec les styles globaux du site */
body.simulateur-page{background:#f7f8fc;color:#1d2140}
body.simulateur-page main{display:block}
body.simulateur-page .hero h1{color:#fff}
body.simulateur-page .hero h1 em{color:#b7a3ff}
body.simulateur-page .hero p{color:#e0dff2}
body.simulateur-page .layout{position:relative;z-index:2}
body.simulateur-page .panel{overflow:hidden}
body.simulateur-page .choice,
body.simulateur-page .field,
body.simulateur-page .field-grid,
body.simulateur-page .main-metric,
body.simulateur-page .details,
body.simulateur-page .scenario-row,
body.simulateur-page .net-result{position:relative;z-index:2}
body.simulateur-page .choice::before,
body.simulateur-page .choice::after,
body.simulateur-page .choice label::before,
body.simulateur-page .choice label::after,
body.simulateur-page .field::before,
body.simulateur-page .field::after,
body.simulateur-page .panel::before,
body.simulateur-page .panel::after{content:none !important;display:none !important}
body.simulateur-page .choice label{position:relative;display:block;flex:1 1 0;min-width:90px;background:transparent}
body.simulateur-page .choice span{position:relative;z-index:3;background:#fff;min-height:50px;display:flex;align-items:center;justify-content:center}
body.simulateur-page select,
body.simulateur-page .input-unit,
body.simulateur-page .choice span{box-shadow:none}
body.simulateur-page .details>div{align-items:flex-start}
body.simulateur-page .details b{max-width:52%;text-align:right;white-space:normal;line-height:1.5}
body.simulateur-page .disclaimer{display:block;background:#faf9fc;border:1px solid #e9e5f2;border-radius:12px;padding:14px 16px;font-size:12px;line-height:1.7;color:#66657a;white-space:normal;overflow-wrap:anywhere;word-break:normal}
body.simulateur-page .phone{padding-bottom:2px}
@media(max-width:980px){
  body.simulateur-page .details b{max-width:50%}
}
@media(max-width:640px){
  body.simulateur-page .details>div{flex-direction:column;gap:6px}
  body.simulateur-page .details b{max-width:100%;text-align:left}
  body.simulateur-page .choice{flex-direction:column}
  body.simulateur-page .choice label{width:100%}
}


/* V7: results appear on submit; stabilize cards and controls */
body.simulateur-page .results-content[hidden],
body.simulateur-page .pending-message[hidden]{display:none!important}
body.simulateur-page .pending-message{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:330px;gap:13px;padding:12px}
body.simulateur-page .pending-message h2{font-size:25px;line-height:1.2;margin:0;color:#25204b}
body.simulateur-page .pending-message p{color:#77758d;font-size:14px;line-height:1.65;max-width:330px}
body.simulateur-page .pending-symbol{font-size:33px;color:#7951d2}
body.simulateur-page .layout .panel,
body.simulateur-page .layout .panel:hover,
body.simulateur-page .layout .choice,
body.simulateur-page .layout .choice:hover,
body.simulateur-page .layout .choice label,
body.simulateur-page .layout .choice label:hover,
body.simulateur-page .layout .main-metric,
body.simulateur-page .layout .main-metric:hover{transform:none!important;transition:none!important;animation:none!important}
body.simulateur-page .choice label{overflow:visible!important}
body.simulateur-page .choice label span{transform:none!important;transition:background-color .12s,border-color .12s!important}
body.simulateur-page .results-content{min-width:0}

/* V8: fix the information heading and spacing in the result panel */
body.simulateur-page .scenario-title{display:flex;align-items:center;gap:8px;min-height:0;margin:20px 0 12px!important;padding:0!important;background:none!important;color:#292448!important;line-height:1.45!important;font-size:13px!important;text-align:left!important;max-width:100%;white-space:normal!important;overflow-wrap:break-word}
body.simulateur-page .scenario-title .info{display:inline-flex;align-items:center;flex:0 0 auto;font-size:14px;line-height:1;color:#7864b0}
body.simulateur-page .results-content .main-metric{margin:0!important}
body.simulateur-page .results-content .scenario-title + .main-metric{margin-top:0!important}
body.simulateur-page .results-content .details>div{min-width:0}
body.simulateur-page .results-content .details>div:last-child b{overflow-wrap:anywhere}
body.simulateur-page .results-content .disclaimer{margin-top:17px!important;margin-bottom:22px!important}

/* V9 : guidance while estimating live */
.simulateur-page .live-hint{font-size:12px;line-height:1.5;color:#706e8a;background:#f6f3ff;border-radius:9px;padding:13px 15px;margin:7px 0 0;}
.simulateur-page input::placeholder{color:#a5a4b3;font-weight:400;}
