/* =====================================================================
   Simulateur Greenta V4 — charte 2026
   Couleurs et typographie : variables ci-dessous, rien d'autre à changer.
   Mise en page V4 : trois blocs — marque 1/5, illustration 2/5,
   formulaire 2/5 — sans carte flottante ni ombre portée (aligné sur greenta.fr).
   ===================================================================== */
:root{
  /* Valeurs relevées sur greenta.fr (styles calculés du site, 30/09/2026). */
  --navy:#101238;            /* titres, aplats institutionnels */
  --vert:#92c02b;            /* accent : boutons, filets, pastilles */
  --texte:#4f5473;           /* texte courant */
  --clair:#c4cbe0;           /* texte sur fond foncé */
  --line:#eaeaee;            /* filets et bordures */
  --bg:#f2f2f2;              /* fonds de respiration */
  --page:#f2f2f2;            /* fond de la zone de contenu (gris du site) ;
                                l'en-tête, le fil d'étapes et le pied restent blancs */
  --surface:#ffffff;
  --r-carte:20px; --r-champ:10px; --r-pilule:50px;   /* rayons du site */
  --tint-g:rgba(146,192,43,.16);
  --tint-n:rgba(16,18,56,.06);
  /* Aucune autre teinte. Les couleurs A→G de l'étiquette énergie sont
     les couleurs officielles du DPE, pas celles de la marque. */
  --dpe-a:#009c6d; --dpe-b:#52b153; --dpe-c:#a5cc74; --dpe-d:#e9d80c;
  --dpe-e:#f0b50f; --dpe-f:#eb8235; --dpe-g:#d7221f; --dpe-d-encre:#5a5000;
  --font:'Inter',-apple-system,Segoe UI,Arial,sans-serif;
  --max:1240px;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:var(--font);color:var(--texte);background:var(--page);line-height:1.75;-webkit-font-smoothing:antialiased;font-size:16px;min-height:100vh;display:flex;flex-direction:column}
h1,h2,h3{color:var(--navy);font-weight:700;letter-spacing:-.03em;line-height:1.25}
h3{font-weight:600}
button,input,select,textarea{font-family:inherit}
a{color:inherit}
.wrap{max-width:var(--max);margin:0 auto;padding:0 24px}

/* ---------------- ossature : trois blocs ----------------
   > 1280 px : marque 1/5 · illustration 2/5 · formulaire 2/5
   980–1280 : la marque se replie en barre haute, illustration + formulaire
   < 980 px : une colonne ; l'illustration devient une bande de 230 px et
              le récapitulatif textuel revient au-dessus de la question.   */
.shell{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,1.4fr) minmax(0,2.6fr);min-height:100vh;flex:1}   /* zone du bâtiment réduite (Fred, 17/10) */

/* bloc 1 : la colonne de marque, reprise de la V1 */
.brand{background:var(--navy);color:#fff;padding:34px 26px 30px;display:flex;flex-direction:column;gap:26px;
  position:sticky;top:0;height:100vh;overflow-y:auto}
.br-logo{display:inline-flex}
.br-logo img{height:50px;display:block;max-width:100%}
.br-logo .mot{font-size:24px;font-weight:800;color:#fff;letter-spacing:-.03em}
.br-accroche{color:#fff;font-size:22px;font-weight:700;line-height:1.25;letter-spacing:-.03em}
.br-sous{color:var(--clair);font-size:14.5px;line-height:1.55;margin-top:12px}
.br-filet{width:56px;height:4px;background:var(--vert);border-radius:2px;margin-top:16px}
.br-steps{list-style:none;display:flex;flex-direction:column;gap:14px}
.br-step{display:flex;align-items:center;gap:12px;color:var(--clair);font-size:15px;font-weight:500}
.br-step b{width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;display:grid;place-items:center;
  font-size:13px;font-weight:700;flex:0 0 auto}
.br-step.on{color:#fff;font-weight:600} .br-step.on b{background:var(--vert);color:#fff}
.br-step.done b{background:#fff;color:var(--navy)}
.br-prog{height:3px;background:rgba(255,255,255,.14);border-radius:2px;overflow:hidden}
.br-prog i{display:block;height:100%;width:0;background:var(--vert);transition:width .5s cubic-bezier(.4,0,.2,1)}
.br-ctc b{color:#fff;font-size:15px;font-weight:600;display:block;margin-bottom:12px}
.br-ctc{border-top:1px solid rgba(255,255,255,.12);padding-top:20px}
.br-ctc a{display:flex;align-items:center;gap:9px;color:#fff;text-decoration:none;font-weight:600;font-size:15px;margin-bottom:8px;word-break:break-all}
.br-ctc a:hover{color:var(--vert)}
.br-ctc svg{width:16px;height:16px;stroke:var(--vert);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.br-liens{margin-top:auto;padding-top:22px;display:flex;flex-direction:column;gap:9px}
.br-liens a{display:flex;align-items:center;justify-content:space-between;color:var(--clair);font-size:13px;text-decoration:none;opacity:.85}
.br-liens a:hover{opacity:1;color:#fff}
.br-liens svg{width:13px;height:13px;stroke:currentColor;stroke-width:2.4;fill:none}

/* bloc 2 : le bandeau de l'illustration */
.scene{background:var(--surface);border-left:1px solid var(--line);border-right:1px solid var(--line);display:flex;flex-direction:column;
  position:sticky;top:0;height:100vh;min-width:0}
.sctitre{padding:26px 28px 0}
.sctitre .sur{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--texte);font-weight:600}
.sctitre h2{font-size:19px;margin-top:7px}
.sctitre p{font-size:14px;margin-top:5px;line-height:1.55}
.vue{flex:1;min-height:0;position:relative}
.vue svg{width:100%;height:100%;display:block}
.lecture{padding:14px 28px 24px;border-top:1px solid var(--line);max-height:42%;overflow-y:auto}
.vue.vide{display:none}
.vue.vide+.lecture{max-height:none;flex:1;border-top:none;margin-top:12px}

/* récapitulatif des réponses (bandeau, et formulaire sous 980 px) */
.recap-bloc h3{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--texte);font-weight:700;margin-bottom:4px}
.recap{list-style:none;display:flex;flex-direction:column;gap:0}
.recap li{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:8px 0;font-size:13.5px;line-height:1.45;border-top:1px solid var(--line)}
.recap li:first-child{border-top:none}
.recap .lab{flex:0 0 42%;color:var(--texte)}
.recap button{background:none;border:none;padding:0;text-align:right;font-weight:600;font-size:13.5px;cursor:pointer;flex:1;color:var(--navy);
  text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line)}
.recap button:hover,.recap button:focus-visible{text-decoration-color:var(--vert)}
.svide{font-size:13.5px;opacity:.85}
.recap-mobile{display:none}
.recap-mobile .recap-bloc{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px 18px;margin-bottom:24px}

/* bloc 3 : le formulaire */
.content{display:flex;flex-direction:column;min-width:0}

/* barre de titre */
.topbar{background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30}
.tb-in{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 28px}
.tb-nom{color:var(--navy);font-size:18px;font-weight:700;letter-spacing:-.03em}
.tb-right{display:flex;align-items:center;gap:14px}
.tb-tel{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:var(--navy);font-weight:600;font-size:15px;white-space:nowrap}
.tb-tel svg{width:17px;height:17px;stroke:var(--vert);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.tb-cta{display:inline-flex;align-items:center;text-decoration:none;background:var(--vert);color:#fff;font-weight:500;font-size:16px;
  padding:12px 24px;border-radius:var(--r-pilule);white-space:nowrap}
.tb-cta:hover{filter:brightness(.94)}
.tb-burger{width:44px;height:44px;border-radius:var(--r-pilule);border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;cursor:pointer;flex:0 0 auto}
.tb-burger:hover{border-color:var(--vert)}
.tb-burger svg{width:20px;height:20px;stroke:var(--navy);stroke-width:2;fill:none;stroke-linecap:round}
.tb-menu{border-top:1px solid var(--line);background:var(--surface)}
.tb-menu-in{padding:6px 28px 18px;display:grid;grid-template-columns:1fr 1fr;gap:4px 28px}
.tb-menu a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;color:var(--navy);font-weight:600;font-size:15px;text-decoration:none;border-bottom:1px solid var(--line)}
.tb-menu a:hover{color:var(--texte)}
.tb-menu a svg{width:15px;height:15px;stroke:var(--vert);stroke-width:2.4;fill:none;flex:0 0 auto}

/* zone de contenu */
.page{background:var(--page);flex:1;padding:44px 40px 80px}
.main{max-width:640px;margin:0 auto;min-width:0}

/* ---------------- échelle de rupture ---------------- */
@media (max-width:1600px){ .tb-tel span{display:none} }
@media (max-width:1280px){
  .shell{grid-template-columns:minmax(0,.8fr) minmax(0,1.5fr)}
  .brand{grid-column:1/-1;position:static;height:auto;flex-direction:row;flex-wrap:wrap;align-items:center;gap:14px 28px;padding:16px 26px}
  .br-haut,.br-ctc,.br-liens{display:none}
  .br-logo img{height:40px}
  .br-steps{flex-direction:row;gap:18px;flex:1;min-width:220px}
  .br-step span{display:none}
  .br-step.on span{display:inline}
  .br-prog{width:100%;order:3}
  .page{padding:34px 30px 60px}
  .sctitre{padding:20px 22px 0}
  .lecture{padding:12px 22px 20px}
}
@media (max-width:980px){
  .shell{grid-template-columns:minmax(0,1fr)}
  .scene{position:static;height:auto;border:none;border-bottom:1px solid var(--line)}
  .sctitre{padding:14px 20px 0}
  .sctitre p,.sctitre .sur{display:none}
  .vue{height:230px;flex:none}
  .scene.sans-dessin{display:none}
  .lecture,.vue.vide+.lecture{display:none}
  .recap-mobile{display:block}
  .tb-in{padding:14px 20px} .tb-nom{font-size:17px}
  .tb-menu-in{grid-template-columns:1fr;padding:6px 20px 14px}
  .page{padding:26px 20px 56px}
}
@media (max-width:560px){ .tb-cta{padding:10px 18px;font-size:15px} .br-step.on span{display:none} }
@media print{.shell{display:block}.page{padding:0;background:#fff}.main{max-width:none}.scene{display:none!important}}

/* ---------------- accueil ---------------- */
.hero{text-align:center;padding:0 0 40px;max-width:760px;margin:0 auto}
.hero h1{font-size:32px;text-transform:uppercase;margin-bottom:22px}
.hero h1 .hl{color:var(--vert)}   /* mot-clé du grand titre : seul texte vert admis par le brand book */
.hero .filet{width:64px;height:4px;background:var(--vert);border-radius:2px;margin:0 auto 22px}
.hero p{font-size:17px;max-width:640px;margin:0 auto}
.pick{display:grid;grid-template-columns:1fr;gap:16px}
.pcard{display:flex;flex-direction:column;align-items:flex-start;gap:16px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-carte);padding:26px 28px;cursor:pointer;transition:.16s}
.pcard:hover,.pcard:focus-visible{border-color:var(--vert);background:var(--surface);outline:none}
.pcard .ico{width:60px;height:60px;border-radius:16px;background:var(--bg);display:grid;place-items:center}
.pcard .ico svg{width:26px;height:26px;stroke:var(--navy);stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
.pcard strong{display:block;color:var(--navy);font-size:21px;font-weight:700;letter-spacing:-.03em;margin-bottom:6px}
.pcard span{font-size:14px;display:block}
.pcard .go{margin-top:auto;display:inline-flex;align-items:center;gap:7px;color:var(--navy);font-weight:700;font-size:14px}
.pcard .go svg{width:15px;height:15px;stroke:currentColor;stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round}
.trust{display:flex;flex-wrap:wrap;justify-content:center;gap:14px 40px;margin-top:40px;padding-top:32px;border-top:1px solid var(--line);font-size:13.5px;font-weight:600}
.trust span{display:inline-flex;align-items:center;gap:8px}
.trust svg{width:16px;height:16px;stroke:var(--vert);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:700px){ .hero h1{font-size:27px} }

/* ---------------- question ---------------- */
.qmeta{display:flex;align-items:center;gap:12px;margin-bottom:14px;font-size:13px;font-weight:600}
.qmeta .n{color:var(--texte)}
.qmeta .cat{color:var(--vert);font-size:14px;font-weight:600;letter-spacing:-.03em}
.q-title{font-size:30px;color:var(--navy);font-weight:700;line-height:1.25;margin-bottom:10px;max-width:660px}
.q-sub{font-size:16px;margin-bottom:0;max-width:640px}
.opts{display:flex;flex-direction:column;gap:12px;max-width:680px;margin-top:30px}
.opt{display:flex;align-items:center;gap:18px;width:100%;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px 22px;cursor:pointer;transition:.15s}
.opt:hover{border-color:var(--vert);background:#fff}
.opt:focus-visible{outline:2px solid var(--vert);outline-offset:2px}
.opt .tile{width:48px;height:48px;border-radius:12px;background:var(--bg);display:grid;place-items:center;flex:0 0 auto;transition:.15s}
.opt .tile svg{width:22px;height:22px;stroke:var(--navy);stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;transition:.15s}
.opt .txt{flex:1;min-width:0}
.opt .txt b{display:block;color:var(--navy);font-weight:600;font-size:16.5px;letter-spacing:-.02em}
.opt .txt span{font-size:14px}
.opt .rad{width:22px;height:22px;border-radius:50%;border:2px solid var(--clair);flex:0 0 auto;display:grid;place-items:center;transition:.15s}
.opt .rad svg{width:12px;height:12px;stroke:var(--navy);stroke-width:3;fill:none;opacity:0;transition:.15s}
.opt.sel{border-color:var(--vert);box-shadow:inset 0 0 0 1px var(--vert);background:#fff}
.opt.sel .tile{background:var(--vert)}
.opt.sel .rad{background:var(--vert);border-color:var(--vert)}
.opt.sel .rad svg{opacity:1}
.opts.multi .opt .rad{border-radius:6px}
.qnav{display:flex;align-items:center;gap:22px;margin-top:34px;max-width:680px}
.back{background:none;border:none;color:var(--texte);font-weight:600;font-size:14px;cursor:pointer;display:inline-flex;align-items:center;gap:7px}
.back:hover{color:var(--navy)}
.back svg{width:15px;height:15px;stroke:currentColor;stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.info{position:relative;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:var(--bg);color:var(--texte);font-size:11px;font-weight:700;margin-left:8px;cursor:help;vertical-align:middle}
.info .tip{position:absolute;bottom:150%;left:50%;transform:translateX(-50%) translateY(6px);background:var(--navy);color:#fff;font-weight:400;font-size:13px;line-height:1.45;padding:11px 13px;border-radius:8px;width:250px;opacity:0;visibility:hidden;transition:.2s;z-index:40;pointer-events:none}
.info .tip::after{content:"";position:absolute;top:100%;left:50%;transform:translateX(-50%);border:5px solid transparent;border-top-color:var(--navy)}
.info:hover .tip,.info:focus .tip{opacity:1;visibility:visible;transform:translateX(-50%) translateY(0)}

/* ---------------- boutons ---------------- */
.btn{font-weight:500;font-size:16px;border:none;border-radius:var(--r-pilule);padding:15px 32px;cursor:pointer;transition:.15s}
.btn-primary{background:var(--vert);color:#fff}
.btn-primary:hover{filter:brightness(.94)}
.btn-primary[disabled]{opacity:.6;cursor:wait}
.btn.suite{opacity:.45;pointer-events:none}
.btn.suite.on{opacity:1;pointer-events:auto}
.btn-block{width:100%}

/* ---------------- compte rendu ---------------- */
.res-h{margin-bottom:20px}
.res-h h1{font-size:34px;text-transform:uppercase;margin-bottom:10px}
.res-h p{font-size:16px}
.summary{background:var(--navy);border-radius:var(--r-carte);padding:36px;color:#fff;margin-bottom:28px}
.summary .top{display:flex;align-items:center;gap:26px}
.summary .ring{position:relative;width:70px;height:70px;flex:0 0 auto}
.summary .ring svg{transform:rotate(-90deg)}
#rp{stroke:var(--vert)}
.summary .ring .v{position:absolute;inset:0;display:grid;place-items:center;font-size:24px;font-weight:700}
.summary .lab{font-size:11.5px;letter-spacing:.07em;text-transform:uppercase;color:var(--clair);font-weight:600}
.summary .prof{font-size:24px;font-weight:700;margin-top:4px;line-height:1.2;letter-spacing:-.03em}
.summary .sub{color:var(--clair);font-size:14px;margin-top:3px}
.counts{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:28px}
.counts div{background:rgba(255,255,255,.08);border-radius:14px;padding:15px 18px;display:flex;align-items:center;gap:11px}
.counts i{width:8px;height:8px;border-radius:50%;flex:0 0 auto}
.counts b{font-size:19px;line-height:1;color:#fff}
.counts span{font-size:12px;color:var(--clair);line-height:1.2}
.c-o i{background:#fff} .c-a i{background:var(--clair)} .c-g i{background:var(--vert)}

.vcard{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-carte);padding:30px;margin-bottom:24px}
.vcard h3{font-size:17px;margin-bottom:20px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.vcard h3 small{font-weight:500;font-size:12px;color:var(--texte);white-space:nowrap}
.traj{display:flex;align-items:flex-end;gap:14px;height:130px;padding-top:6px}
.traj .col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:7px}
.traj .bar{width:100%;border-radius:8px 8px 3px 3px;background:var(--bg);height:0;transition:height .9s cubic-bezier(.3,.9,.3,1)}
.traj .col:not(:first-child) .bar{background:var(--vert)}
.traj .pct{font-weight:700;font-size:13.5px;color:var(--navy)}
.traj .yr{font-size:12px;font-weight:600}
.dpe{display:flex;flex-direction:column;gap:5px}
.dpe .r{display:flex;align-items:center;gap:10px}
.dpe .l{height:24px;border-radius:4px 12px 12px 4px;color:#fff;font-weight:700;font-size:12.5px;display:flex;align-items:center;padding-left:10px;opacity:.3;transition:.3s}
.dpe .r.on .l{opacity:1}
.dpe-A{background:var(--dpe-a)}.dpe-B{background:var(--dpe-b)}.dpe-C{background:var(--dpe-c)}.dpe-D{background:var(--dpe-d);color:var(--dpe-d-encre)!important}
.dpe-E{background:var(--dpe-e)}.dpe-F{background:var(--dpe-f)}.dpe-G{background:var(--dpe-g)}
.dpe .you{white-space:nowrap;font-size:12.5px;font-weight:700;color:var(--navy);display:none}
.dpe .r.first .you{display:inline}
.frise{position:relative;padding-left:24px}
.frise::before{content:"";position:absolute;left:6px;top:6px;bottom:6px;width:2px;background:var(--line)}
.ev{position:relative;padding-bottom:15px}
.ev:last-child{padding-bottom:0}
.ev::before{content:"";position:absolute;left:-23px;top:4px;width:12px;height:12px;border-radius:50%;background:#fff;border:2.5px solid var(--vert)}
.ev.passe::before{background:var(--navy);border-color:var(--navy)}
.ev.recurrent::before{border-color:var(--navy)}
.ev .w{font-weight:700;font-size:13.5px;color:var(--navy)}
.ev .w em{font-style:normal;font-size:10.5px;font-weight:700;border-radius:99px;padding:2px 8px;margin-left:7px;vertical-align:1px}
.ev.passe .w em{background:var(--navy);color:#fff}
.ev.recurrent .w em{background:var(--tint-n);color:var(--navy)}
.ev.futur .w em{background:var(--tint-g);color:var(--navy)}
.ev .q{font-size:13.5px}

.rgroup{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-carte);padding:30px;margin-bottom:24px}
.grp-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.grp-h h3{font-size:19px}
.grp-h .cnt{font-size:12.5px;font-weight:700;color:var(--texte);background:var(--bg);border-radius:99px;padding:3px 10px}
.ritem{display:flex;align-items:flex-start;gap:18px;padding:22px 0;border-top:1px solid var(--line)}
.ritem:nth-of-type(1){border-top:none}
.rtile{width:46px;height:46px;border-radius:12px;flex:0 0 auto;display:grid;place-items:center}
.rtile svg{width:20px;height:20px;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.t-oblig{background:var(--navy)} .t-oblig svg{stroke:#fff}
.t-audit{background:var(--tint-n)} .t-audit svg{stroke:var(--navy)}
.t-aide{background:var(--tint-g)} .t-aide svg{stroke:var(--navy)}
.rtext{flex:1;min-width:0}
.rtext .th{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rtext b{color:var(--navy);font-size:16.5px;font-weight:600;letter-spacing:-.02em}
.rtext .d{font-size:15px;margin-top:6px}
.rtext .s{color:var(--texte);opacity:.75;font-size:13px;margin-top:8px}
.tag{font-size:11.5px;font-weight:600;padding:4px 12px;border-radius:var(--r-pilule);white-space:nowrap}
.tag.oblig{background:var(--navy);color:#fff}
.tag.reco{background:var(--bg);color:var(--navy)}
.tag.eli{background:var(--vert);color:var(--navy)}
.tag.val{background:transparent;color:var(--texte);border:1px dashed var(--clair)}
.empty{font-size:14px;padding:8px 0 2px}

.experts{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-carte);padding:30px;margin-bottom:24px}
.experts .eh{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}
.experts h3{font-size:15px}
.experts .eh span{font-size:13px;font-weight:600}
.ag{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;border-radius:14px;background:var(--bg);margin-top:10px;border:1.5px solid transparent;transition:.25s}
.ag .rtile{width:34px;height:34px;border-radius:8px;background:var(--tint-n)}
.ag .rtile svg{width:17px;height:17px;stroke:var(--navy)}
.ag b{display:block;color:var(--navy);font-size:14px;font-weight:600}
.ag span{font-size:13px}
.ag.on{border-color:var(--vert);background:var(--surface)}
.ag.on .rtile{background:var(--vert)}
.ag .yours{display:none;font-size:10.5px;font-weight:700;color:var(--navy);background:var(--vert);border-radius:99px;padding:2px 8px;margin-left:7px;vertical-align:1px}
.ag.on .yours{display:inline}
.telbtn{margin-top:16px;display:flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;background:var(--navy);color:#fff;border-radius:var(--r-pilule);padding:15px;font-weight:600;font-size:16px}
.telbtn svg{width:17px;height:17px;stroke:#fff;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}

.disclaimer{display:flex;gap:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-carte);padding:22px 26px;font-size:14.5px;margin-bottom:24px}
.disclaimer svg{flex:0 0 auto;width:17px;height:17px;stroke:var(--navy);stroke-width:2;fill:none;opacity:.55;margin-top:2px}

/* ---------------- formulaire ---------------- */
.lead{background:var(--surface);border:1px solid var(--vert);border-radius:var(--r-carte);padding:36px;margin-bottom:24px}
.lead h3{font-size:22px;margin-bottom:8px}
.lead-form>p{font-size:16px;margin-bottom:22px}
.want{display:flex;flex-direction:column;gap:12px;margin-bottom:22px}
.want .opt{padding:11px 14px}
.want .opt .tile{width:38px;height:38px}
.want .opt .tile svg{width:19px;height:19px}
.want .opt .rad{border-radius:6px}
.fld{display:block;margin-bottom:16px}
.fld>span{display:block;font-size:14px;font-weight:600;color:var(--navy);margin-bottom:7px}
.fld input,.fld select,.fld textarea{width:100%;font-size:16px;padding:14px 18px;border-radius:var(--r-champ);border:1px solid var(--line);color:var(--navy);background:#fff}
.fld textarea{min-height:80px;resize:vertical}
.fld input:focus,.fld select:focus,.fld textarea:focus{outline:none;border-color:var(--vert)}
.fld.err input{border-color:var(--navy);border-width:2px;background:var(--bg)}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:480px){.row2{grid-template-columns:1fr}}
.more{background:none;border:none;color:var(--navy);font-weight:700;font-size:14px;cursor:pointer;display:inline-flex;align-items:center;gap:7px;margin:2px 0 14px}
.more svg{width:15px;height:15px;stroke:currentColor;stroke-width:2.4;fill:none;transition:.2s}
.more.open svg{transform:rotate(45deg)}
.extra{display:none}
.extra.on{display:block;animation:fade .3s}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.consent{display:flex;gap:10px;align-items:flex-start;margin:14px 0;font-size:12.5px}
.consent input{margin-top:2px;width:16px;height:16px;flex:0 0 auto;accent-color:var(--vert)}
.consent a{color:var(--navy);text-decoration:underline}
.consent.err{color:var(--navy);font-weight:600}
.msg-err{display:none;margin-top:12px;font-size:13.5px;color:#fff;background:var(--navy);border-radius:8px;padding:11px 14px}
.msg-err.on{display:block}
.lead-done{display:none;text-align:center;padding:10px 0}
.lead-done.on{display:block;animation:fade .35s}
.lead-done .ok{width:54px;height:54px;border-radius:50%;background:var(--tint-g);display:grid;place-items:center;margin:0 auto 12px}
.lead-done .ok svg{width:26px;height:26px;stroke:var(--vert);stroke-width:2.6;fill:none}
.lead-done b{display:block;color:var(--navy);font-size:18px;font-weight:700;margin-bottom:5px}
.lead-done p{font-size:14px}

/* ---------------- contact ---------------- */
.ctc{display:flex;gap:22px;align-items:flex-start;background:var(--navy);color:#fff;border-radius:var(--r-carte);padding:32px;margin-bottom:24px}
.ctc-av{width:78px;height:78px;border-radius:16px;flex:0 0 auto;overflow:hidden;background:rgba(255,255,255,.1);display:grid;place-items:center}
.ctc-av img{width:100%;height:100%;object-fit:cover;display:block}
.ctc-av svg{width:34px;height:34px;stroke:#fff;stroke-width:1.6;fill:none;opacity:.85}
.ctc-txt{flex:1;min-width:0}
.ctc-txt b{display:block;font-size:19px;font-weight:700;letter-spacing:-.03em}
.ctc-role{display:block;font-size:13px;color:var(--clair);margin-top:1px}
.ctc-txt p{font-size:14px;color:var(--clair);margin:8px 0 12px}
.ctc-liens{display:flex;flex-wrap:wrap;gap:10px 22px}
.ctc-liens a{display:inline-flex;align-items:center;gap:9px;color:#fff;text-decoration:none;font-weight:700;font-size:15px;word-break:break-all}
.ctc-liens a:hover{color:var(--vert)}
.ctc-liens svg{width:17px;height:17px;stroke:var(--vert);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}

.actions{display:flex;gap:32px;padding:10px 0 20px}
.actions button{background:none;border:none;color:var(--texte);font-size:14px;cursor:pointer;font-weight:600;display:inline-flex;align-items:center;gap:8px}
.actions button svg{width:16px;height:16px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.actions button:hover{color:var(--navy)}

/* ---------------- pied de page ---------------- */
.ft{background:var(--surface);border-top:1px solid var(--line);padding:34px 0}
.ft-in{max-width:var(--max);margin:0 auto;padding:0 32px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px}
.ft nav{display:flex;flex-wrap:wrap;gap:8px 22px}
.ft nav a{color:var(--texte);font-size:13.5px;font-weight:600;text-decoration:none}
.ft nav a:hover{color:var(--navy);text-decoration:underline}
.ft p{font-size:12.5px;color:var(--texte);opacity:.8}

/* ---------------- mode intégré (iframe) ---------------- */
body.embed{background:transparent}
body.embed .topbar .tb-cta,body.embed .ft{display:none}
body.embed .page{padding-top:28px}
body.embed .brand{position:static;height:auto}

/* ---------------- impression ---------------- */
@media print{
  @page{margin:14mm}
  body{background:#fff}
  .topbar,.ft,.brand,.lead,.actions,.info{display:none!important}
  .page{display:block;padding:0;max-width:none}
  .print-head{display:flex!important;justify-content:space-between;align-items:flex-end;border-bottom:2px solid var(--vert);padding-bottom:10px;margin-bottom:16px}
  .print-head b{color:var(--navy);font-size:20px;font-weight:700}
  .print-head span{font-size:12px}
  .summary,.counts div,.tag,.rtile,.traj .bar,.dpe .l,.ev::before,.ag.on .rtile,.ctc{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .ritem,.vcard,.experts,.summary,.rgroup,.ctc{break-inside:avoid}
}
.print-head{display:none}

/* contact compact dans la colonne latérale */
.ctc.mini .ctc-av{width:48px;height:48px;border-radius:10px}
.ctc.mini .ctc-av svg{width:24px;height:24px}
.ctc.mini .ctc-txt b{font-size:15px}
.ctc.mini .ctc-liens{flex-direction:column;gap:8px;margin-top:10px}
.ctc.mini .ctc-liens a{font-size:14px}

/* ---------- menu du site (bouton ☰) ---------- */

/* ---------- en-tête du compte rendu avec reprise ---------- */
.res-h{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-bottom:32px}
.res-h .back{margin-top:6px}

/* =====================================================================
   ANIMATIONS
   Tout est désactivé si le visiteur a demandé à réduire les animations
   (réglage système), et à l'impression.
   ===================================================================== */
@keyframes gt-in{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes gt-next{from{opacity:0;transform:translateX(26px)}to{opacity:1;transform:none}}
@keyframes gt-prev{from{opacity:0;transform:translateX(-26px)}to{opacity:1;transform:none}}
@keyframes gt-pop{0%{transform:scale(.8);opacity:0}60%{transform:scale(1.06)}100%{transform:scale(1);opacity:1}}
@keyframes gt-trace{to{stroke-dashoffset:0}}

/* transition d'écran, dans le sens de la navigation */
.main.go{animation:gt-next .42s cubic-bezier(.22,.7,.3,1) both}
.main[data-dir="prev"].go{animation-name:gt-prev}
body[data-screen="accueil"] .main.go,body[data-screen="resultat"] .main.go{animation-name:gt-in}

/* accueil : titre, filet, texte, cartes en cascade */
.hero h1{animation:gt-in .5s .05s both}
.hero .filet{animation:gt-in .5s .14s both}
.hero p{animation:gt-in .5s .2s both}
.pcard{animation:gt-in .5s both;animation-delay:calc(.26s + var(--i,0)*.09s)}
.trust{animation:gt-in .5s .5s both}

/* question : énoncé puis réponses en cascade */
.qmeta{animation:gt-in .4s .04s both}
.q-title{animation:gt-in .45s .08s both}
.q-sub{animation:gt-in .45s .14s both}
.opts .opt{animation:gt-in .42s both;animation-delay:calc(.16s + var(--i,0)*.06s)}
.qnav{animation:gt-in .45s .4s both}
.opt:active{transform:scale(.99)}
.opt.sel .rad svg{animation:gt-pop .3s both}
.opt.sel .tile{animation:gt-pop .32s both}

/* fil d'étapes : la pastille active apparaît */
.br-step.on b,.br-step.done b{animation:gt-pop .4s both}

/* colonne latérale : les réponses arrivent une à une */
.recap li{animation:gt-in .35s both}
.br-accroche,.br-filet{animation:gt-in .5s .1s both}
.br-step{animation:gt-in .4s both}
.br-step:nth-child(2){animation-delay:.07s}
.br-step:nth-child(3){animation-delay:.14s}
.recap li:nth-child(2){animation-delay:.04s}
.recap li:nth-child(3){animation-delay:.08s}
.recap li:nth-child(4){animation-delay:.12s}
.recap li:nth-child(5){animation-delay:.16s}
.recap li:nth-child(6){animation-delay:.2s}

/* compte rendu : bloc par bloc */
.main .bloc{animation:gt-in .5s both;animation-delay:calc(var(--i,0)*.07s)}
.ev{animation:gt-in .4s both;animation-delay:calc(.35s + var(--i,0)*.07s)}
.counts div{animation:gt-pop .45s both}
.counts div:nth-child(2){animation-delay:.1s}
.counts div:nth-child(3){animation-delay:.2s}
.ritem{animation:gt-in .4s both;animation-delay:calc(.1s + var(--i-row,0)*.05s)}

/* étiquette énergie : les barres se déploient */
.dpe .l{width:0;animation:gt-bar .7s cubic-bezier(.22,.7,.3,1) both;animation-delay:calc(.35s + var(--i,0)*.06s)}
@keyframes gt-bar{to{width:var(--w)}}
.dpe .you{animation:gt-in .4s .9s both}

/* confirmation : la coche se trace */
.lead-done .ok{animation:gt-pop .45s both}
.trace{width:26px;height:26px;stroke:var(--navy);stroke-width:2.6;fill:none;stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:26;stroke-dashoffset:26;animation:gt-trace .5s .25s cubic-bezier(.65,0,.35,1) forwards}

/* bouton : petit retrait au clic */
.btn:active{transform:scale(.985)}
.tb-cta:active,.telbtn:active{transform:scale(.985)}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-delay:0s!important;animation-iteration-count:1!important;
    transition-duration:.01ms!important;transition-delay:0s!important}
  .dpe .l{width:var(--w)}
}
@media print{
  *{animation:none!important;animation-delay:0s!important;opacity:1!important;transform:none!important}
  .dpe .l{width:var(--w)}
}

/* =====================================================================
   ILLUSTRATION (illustration.js)
   Reprise du bloc de styles de la maquette validée. Toutes les nuances
   sont des variations de luminosité du navy ou du vert de la charte ;
   seule l'étiquette énergie reprend l'échelle officielle du DPE.
   ===================================================================== */
#dessin .s-ht0{stop-color:#565c96}#dessin .s-ht1{stop-color:#3f4476}
#dessin .s-hg0{stop-color:#343a6d}#dessin .s-hg1{stop-color:#222651}
#dessin .s-hd0{stop-color:#1d2046}#dessin .s-hd1{stop-color:#101230}
#dessin .hach{stroke:#fff;stroke-width:2.6;stroke-opacity:.55}
#dessin .ft{fill:#454a7e}#dessin .fg{fill:#2b2f5a}#dessin .fd{fill:#191c3c}
#dessin .hero.ft{fill:url(#gi-ht)}#dessin .hero.fg{fill:url(#gi-hg)}#dessin .hero.fd{fill:url(#gi-hd)}
#dessin .f-ancienne.ft{fill:#4b4f82}#dessin .f-ancienne.fg{fill:#2f3360}#dessin .f-ancienne.fd{fill:#16193a}
#dessin .f-recente.ft{fill:#3b4070}#dessin .f-recente.fg{fill:#252953}#dessin .f-recente.fd{fill:#0f1230}
#dessin .parcelle{fill:#ececed}#dessin .rue{fill:#e2e2e8}
#dessin .ombre{fill:var(--navy);opacity:.10}
#dessin .acr.ft{fill:#4d5287}#dessin .acr.fg{fill:#30345f}#dessin .acr.fd{fill:#181b3d}
#dessin .toit.fg{fill:#3a3f72}#dessin .toit.fd{fill:#1c1f44}
#dessin .balc.ft{fill:#565b92}#dessin .balc.fg{fill:#3a3e70}#dessin .balc.fd{fill:#20234a}
#dessin .gc{fill:#8d93bd;opacity:.5}
#dessin .fen{fill:var(--vert);opacity:.34}#dessin .fen.vive{opacity:.82}
#dessin .porte{fill:var(--vert);opacity:.55}
#dessin .auvent.ft{fill:#6f75a8}#dessin .auvent.fg,#dessin .auvent.fd{fill:#4a4f84}
#dessin .edic.ft{fill:#4a4f84}#dessin .edic.fg{fill:#2f3360}#dessin .edic.fd{fill:#1a1d41}
#dessin .volets polygon{fill:#dfe3ef;opacity:.9}
#dessin .chaud polygon{fill:url(#gi-hach)}
#dessin .annexe .ft{fill:var(--vert)}#dessin .annexe .fg{fill:#7aa322}#dessin .annexe .fd{fill:#5e7d1c}
#dessin .cheminee{stroke:#b9bfd6;stroke-width:3;stroke-linecap:round}
#dessin .doc .ft{fill:#fff}#dessin .doc .fg{fill:#d7dae4}#dessin .doc .fd{fill:#bfc3d2}
#dessin .vitrine polygon{fill:var(--vert);opacity:.5}
#dessin .clim.ft{fill:#dfe3ef}#dessin .clim.fg{fill:#b9bfd6}#dessin .clim.fd{fill:#8d93bd}
#dessin .echaf line{stroke:#b9bfd6;stroke-width:1.6}
#dessin .tronc{stroke:#6f75a8;stroke-linecap:round}   /* maquette : brun, hors charte → navy éclairci */
#dessin .feuil{fill:#6d8e1e}#dessin .feuil2{fill:#8ab027}#dessin .feuil3{fill:#a9d148}
#dessin .etiq text{font:700 19px var(--font);fill:#fff}
#dessin .etiq.dpe-A rect{fill:var(--dpe-a)}#dessin .etiq.dpe-B rect{fill:var(--dpe-b)}#dessin .etiq.dpe-C rect{fill:var(--dpe-c)}
#dessin .etiq.dpe-D rect{fill:var(--dpe-d)}#dessin .etiq.dpe-D text{fill:var(--dpe-d-encre)}
#dessin .etiq.dpe-E rect{fill:var(--dpe-e)}#dessin .etiq.dpe-F rect{fill:var(--dpe-f)}#dessin .etiq.dpe-G rect{fill:var(--dpe-g)}
#dessin g,#dessin polygon{transition:opacity .45s}
#dessin .plan-facade>g,#dessin .plan-toit>g,#dessin .plan-avant>g{animation:gt-in .45s both}
@media (prefers-reduced-motion:reduce){ #dessin *{animation:none!important;transition:none!important} }

/* ---------- V4 : confort d'été et nouvelles étiquettes ----------
   Pas de couleur d'alerte : le signal se dit en navy plein, l'incertitude
   en pointillé, l'invitation à confirmer en fond clair. */
.t-ete{background:var(--navy)} .t-ete svg{stroke:#fff}
.tag.signal{background:var(--navy);color:#fff}
.tag.indetermine{background:transparent;color:var(--navy);border:1.5px dashed var(--navy)}
.tag.confirmer{background:var(--bg);color:var(--navy);border:1px solid var(--navy)}
.tag.info{background:var(--bg);color:var(--navy)}
.tag.non{background:var(--bg);color:var(--texte)}

/* ---------- V4 : gestes et bloc « Ce qui demande une étude » ---------- */
.t-geste{background:var(--tint-g)} .t-geste svg{stroke:var(--navy)}
.tag.saison{background:var(--tint-g);color:var(--navy)}
.g-intro{font-size:15px;margin:0 0 6px}
.g-mention{font-size:13.5px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line);font-weight:600;color:var(--navy)}
.g-etude{border:1.5px solid var(--navy)}
/* des marques, pas des numéros : ce sont des questions ouvertes, pas un ordre de travaux */
.manques{list-style:none;margin:14px 0 0;display:flex;flex-direction:column}
.manques li{position:relative;padding:14px 0 14px 26px;border-top:1px solid var(--line);font-size:15px}
.manques li::before{content:"";position:absolute;left:0;top:23px;width:10px;height:10px;background:var(--navy)}
.manques b{display:block;color:var(--navy);font-weight:600;font-size:16px;letter-spacing:-.02em}
.manques span{display:block;margin-top:4px}
.g-conclusion{margin-top:6px;padding:16px 18px;background:var(--bg);border-radius:12px;font-size:15px;color:var(--navy);font-weight:500}
.g-sous{font-size:15px;color:var(--navy);margin:22px 0 0;padding-top:18px;border-top:1px solid var(--line)}
.g-sous+.ritem{border-top:none}

/* =====================================================================
   V4 : BOUTON « BESOIN D'AIDE » ET PANNEAU LATÉRAL DES QUESTIONS
   Contenu écrit dans le HTML ; le panneau glisse depuis la droite.
   ===================================================================== */
.aide-btn{position:fixed;right:24px;bottom:24px;z-index:40;display:inline-flex;align-items:center;gap:8px;
  background:var(--navy);color:#fff;border:none;border-radius:var(--r-pilule);padding:13px 22px;font-weight:600;font-size:15px;cursor:pointer;
  box-shadow:0 8px 24px -10px rgba(16,18,56,.6)}
.aide-btn::before{content:"?";width:22px;height:22px;border-radius:50%;background:var(--vert);color:var(--navy);display:grid;place-items:center;font-weight:800;font-size:13px}
.aide-btn:hover{filter:brightness(1.15)}
.aide-btn:focus-visible{outline:2px solid var(--vert);outline-offset:3px}
.tiroir{margin:0 0 0 auto;height:100%;max-height:none;width:min(460px,100vw);max-width:100vw;border:none;padding:0;
  background:var(--surface);color:var(--texte);overflow-y:auto;box-shadow:-20px 0 50px -30px rgba(16,18,56,.6)}
.tiroir[open]{animation:tiroir-in .32s cubic-bezier(.22,.7,.3,1) both}
@keyframes tiroir-in{from{transform:translateX(100%)}to{transform:none}}
.tiroir::backdrop{background:rgba(16,18,56,.45)}
.tiroir-tete{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;
  background:var(--navy);color:#fff;padding:22px 26px}
.tiroir-tete h2{color:#fff;font-size:20px}
.tiroir-fermer{width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:none;color:#fff;font-size:22px;line-height:1;cursor:pointer}
.tiroir-fermer:hover,.tiroir-fermer:focus-visible{border-color:var(--vert);outline:none}
.tiroir-intro{font-size:14.5px;padding:18px 26px 6px}
.faq-liste{padding:0 26px 30px}
.faq{border-bottom:1px solid var(--line)}
.faq summary{list-style:none;cursor:pointer;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px 0}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";flex:0 0 auto;width:24px;height:24px;border-radius:50%;background:var(--bg);color:var(--navy);display:grid;place-items:center;font-weight:700;transition:transform .2s}
.faq[open] summary::after{transform:rotate(45deg);background:var(--vert)}
.faq summary:focus-visible{outline:2px solid var(--vert);outline-offset:2px}
.faq h3{font-size:16px;line-height:1.4;letter-spacing:-.02em}
.faq-r{padding:0 0 18px}
.faq-r p{font-size:15px}
.faq-source{font-size:13px;opacity:.8;margin-top:8px}
@media (max-width:980px){ .page{padding-bottom:96px} .aide-btn{right:16px;bottom:16px;padding:11px 18px} }
@media (prefers-reduced-motion:reduce){ .tiroir[open]{animation:none} }
@media print{ .aide-btn,.tiroir{display:none!important} }

/* ---------- V4 correctif : phrase de liaison entre le 1er et le 2e bloc du résultat ---------- */
.liaison{margin:6px 0 22px;padding:0 4px 0 18px;border-left:4px solid var(--vert);color:var(--navy);font-size:17px;font-weight:600;line-height:1.5;letter-spacing:-.01em}

/* =====================================================================
   V4 correctif : écrans de plusieurs questions, compléments après le résultat
   ===================================================================== */
.ecran-titre{font-size:28px;margin:0 0 6px}
.qlist{display:flex;flex-direction:column;gap:26px;margin-top:22px}
.qbloc{border:none;padding:0;margin:0;min-width:0}
.qbloc .q-title{font-size:19px;line-height:1.35;margin:0 0 4px;padding:0;max-width:none;display:block}
.qbloc .q-title .cat{display:block;color:var(--vert);font-size:13px;font-weight:600;letter-spacing:-.01em;margin-bottom:2px}
.qbloc .q-sub{font-size:14.5px;line-height:1.55;margin-bottom:0}
.qbloc .opts{margin-top:12px;gap:8px;max-width:none}
.qbloc .opt{padding:11px 16px;gap:14px;border-radius:12px}
.qbloc .opt .tile{width:36px;height:36px;border-radius:9px}
.qbloc .opt .tile svg{width:18px;height:18px}
.qbloc .opt .txt b{font-size:15.5px}
.qnav .suite{margin-left:auto}
.complement{margin:-8px 0 24px;padding:18px 22px;border:1.5px dashed var(--navy);border-radius:var(--r-carte);background:var(--surface)}
.complement .cmp-invite{color:var(--navy);font-weight:600;font-size:15.5px}
.cmp-ouvrir{margin-top:10px;display:inline-flex;align-items:center;gap:8px;background:var(--navy);color:#fff;border:none;border-radius:var(--r-pilule);padding:10px 20px;font-weight:600;font-size:14.5px;cursor:pointer}
.cmp-ouvrir svg{width:15px;height:15px;stroke:var(--vert);stroke-width:2.6;fill:none}
.cmp-ouvrir:focus-visible{outline:2px solid var(--vert);outline-offset:2px}
.complement.ouvert{border-style:solid}
.complement .qlist{margin-top:14px;gap:20px}
.complement .suite{margin-top:18px}
.main.calme *,.main.calme{animation:none!important}
.empty.attente{color:var(--navy);font-weight:600}
.recap-mobile .recap-bloc.vide{display:none}   /* sur téléphone, pas de carte vide avant la première question */

/* ---------- V4 correctif lot C : valeur pré-chargée, à confirmer ou corriger ----------
   Une proposition n'est pas une réponse : elle se distingue par un trait pointillé. */
.qbloc.propose .opt.sel{border-style:dashed;box-shadow:none;background:var(--surface)}
.qbloc.propose .opt.sel .rad{background:var(--surface);border-color:var(--vert)}
.qbloc.propose .opt.sel .rad svg{stroke:var(--vert)}
.qbloc.propose .opt.sel .tile{background:var(--tint-g)}
.precharge{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:10px;padding:10px 14px;border-radius:10px;
  background:var(--tint-g);color:var(--navy);font-size:14.5px;font-weight:600;line-height:1.45}
.pre-ok{background:var(--navy);color:#fff;border:none;border-radius:var(--r-pilule);padding:7px 16px;font-weight:600;font-size:13.5px;cursor:pointer}
.pre-ok:focus-visible{outline:2px solid var(--vert);outline-offset:2px}

/* ---------- qualification professionnelle (OPQIBI), affichée seulement si renseignée ---------- */
.qualif{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:600;color:var(--navy)}
.qualif img{height:58px;width:auto;display:block;border-radius:8px}   /* logo sur fond gris clair, celui de la charte */
.q-experts{margin:4px 0 6px}
.q-marque{color:#fff;margin-top:auto}
.q-marque+.br-liens{margin-top:0}

/* =====================================================================
   V4 · relecture Fred 17/10 — colonne de marque sur fond blanc
   ===================================================================== */
.brand{background:var(--surface);color:var(--navy);border-right:1px solid var(--line)}
.br-logo img{height:64px}
.br-accroche{color:var(--navy)}
.br-sous{color:var(--texte)}
.br-step{color:var(--texte)}
.br-step b{background:var(--bg);color:var(--navy)}
.br-step.on{color:var(--navy)} .br-step.on b{background:var(--vert);color:#fff}
.br-step.done b{background:var(--navy);color:#fff}
.br-prog{background:var(--bg)}
.br-ctc{border-top-color:var(--line)}
.br-ctc b,.br-ctc a{color:var(--navy)}
.br-ctc a:hover{color:var(--texte)}
.br-liens a{color:var(--texte);opacity:1}
.br-liens a:hover{color:var(--navy)}
.q-marque{color:var(--navy)}
@media (max-width:1280px){ .brand{border-right:none;border-bottom:1px solid var(--line)} .br-logo img{height:44px} }

/* ---------- masquer / afficher l'illustration ---------- */
.sctitre{position:relative;padding-right:96px}
.sc-masquer{position:absolute;top:22px;right:22px;display:inline-flex;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r-pilule);padding:6px 12px;font-size:13px;font-weight:600;color:var(--navy);cursor:pointer}
.sc-masquer svg{width:12px;height:12px;stroke:currentColor;stroke-width:2.6;fill:none}
.sc-masquer:hover,.sc-masquer:focus-visible{border-color:var(--vert);outline:none}
.sc-afficher{display:inline-flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-pilule);
  padding:9px 16px;font-size:14px;font-weight:600;color:var(--navy);cursor:pointer;white-space:nowrap}
.sc-afficher[hidden]{display:none}
.sc-afficher svg{width:16px;height:16px;stroke:var(--navy);stroke-width:1.8;fill:none}
.sc-afficher:hover,.sc-afficher:focus-visible{border-color:var(--vert);outline:none}
body.sans-scene .scene{display:none!important}
body.sans-scene .shell{grid-template-columns:minmax(220px,1fr) minmax(0,4fr)}
body.sans-scene .recap-mobile{display:block}
@media (max-width:1280px){ body.sans-scene .shell{grid-template-columns:minmax(0,1fr)} .sc-afficher span{display:none} }
@media (max-width:980px){ .sctitre{padding-right:90px} .sc-masquer{top:12px;right:16px} }

/* ---------- résultat : volets repliables et sommaire ---------- */
.sommaire{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-carte);padding:14px 18px;margin-bottom:24px}
.som-t{font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--texte);margin-right:4px}
.sommaire ul{list-style:none;display:flex;flex-wrap:wrap;gap:6px;flex:1}
.sommaire a{display:inline-block;padding:5px 12px;border-radius:var(--r-pilule);background:var(--bg);color:var(--navy);font-size:13.5px;font-weight:600;text-decoration:none}
.sommaire a:hover,.sommaire a:focus-visible{background:var(--tint-g);outline:none}
.som-tout{background:none;border:none;color:var(--navy);font-size:13.5px;font-weight:700;cursor:pointer;text-decoration:underline;text-decoration-color:var(--vert);text-underline-offset:4px}
.volet{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-carte);margin-bottom:16px;scroll-margin-top:90px}
.volet-t{margin:0;font-size:inherit}
.volet-t button{width:100%;display:flex;align-items:center;gap:12px;background:none;border:none;padding:20px 26px;cursor:pointer;text-align:left;color:var(--navy);font-family:inherit}
.volet-t button:focus-visible{outline:2px solid var(--vert);outline-offset:-2px;border-radius:var(--r-carte)}
.volet-nom{flex:1;font-size:19px;font-weight:700;letter-spacing:-.03em}
.volet-t .cnt{font-size:12.5px;font-weight:700;color:var(--texte);background:var(--bg);border-radius:99px;padding:3px 10px}
.volet-t .cnt.attente{background:transparent;border:1px dashed var(--navy);color:var(--navy)}
.volet-chev svg{width:18px;height:18px;stroke:var(--navy);stroke-width:2.4;fill:none;transform:rotate(90deg);transition:transform .2s;display:block}
.volet.ouvert .volet-chev svg{transform:rotate(-90deg)}
.volet-corps{padding:0 0 8px}
.volet-corps>.rgroup,.volet-corps>.vcard{border:none;border-radius:0;margin:0;padding:0 26px 18px}
.volet .grp-h,.volet .v-frise>h3{display:none}
.volet .ritem:first-of-type{border-top:1px solid var(--line)}
.volet-corps>.complement{margin:4px 26px 18px}
.g-etude.rgroup{border:none}
.volet[data-bloc="etude"]{border:1.5px solid var(--navy)}
.liaison{margin:2px 0 18px}
@media (max-width:560px){ .volet-t button{padding:16px 18px} .volet-corps>.rgroup,.volet-corps>.vcard{padding:0 18px 14px} .volet-nom{font-size:17px} }
@media print{ .volet-corps[hidden]{display:block!important} .sommaire,.volet-chev,.sc-afficher{display:none!important} .volet{break-inside:auto} }
/* barre haute (moins de 1280 px) : pas de qualification dans la colonne, elle reste dans « Vos experts Greenta » */
@media (max-width:1280px){ .q-marque{display:none} }
/* compteurs du résumé : jamais plus larges que l'écran (« points réglementaires » est long) */
.counts{grid-template-columns:repeat(3,minmax(0,1fr))}
.counts span{overflow-wrap:anywhere}
@media (max-width:480px){ .counts{grid-template-columns:minmax(0,1fr);gap:8px} }
/* sommaire sur téléphone : une seule ligne qui défile, libellés sur une ligne */
@media (max-width:560px){
  .sommaire{flex-direction:column;align-items:stretch;padding:12px 14px}
  .sommaire ul{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
  .sommaire a{white-space:nowrap}
  .som-tout{align-self:flex-start}
}
.sommaire{min-width:0;max-width:100%}
@media (max-width:560px){ .sommaire{display:grid;grid-template-columns:minmax(0,1fr)} .sommaire ul{min-width:0;width:100%} }
/* bulle « i » : retirée de la mise en page quand elle est cachée (elle élargissait la page),
   et calée à droite pour ne jamais dépasser du bord */
.info .tip{display:none;left:auto;right:-12px;transform:none;width:min(250px,70vw)}
.info .tip::after{left:auto;right:16px;transform:none}
.info:hover .tip,.info:focus .tip{display:block;transform:none}

/* =====================================================================
   V5 — MISE EN PAGE (18/10/2026)
   En-tête : logo · OPQIBI · menu burger (toujours replié).
   Deux colonnes 50/50 : titre de la porte + bâtiment | étapes + formulaire.
   Les sections plus haut qui parlent de colonne de marque (.brand, .br-*)
   et de barre de titre (.tb-in, .tb-nom) ne servent plus en V5.
   ===================================================================== */
body{display:block;background:var(--surface)}

/* en-tête */
.entete{position:sticky;top:0;z-index:40;background:var(--surface);border-bottom:1px solid var(--line)}
.en-in{display:flex;align-items:center;gap:20px;padding:12px 40px;min-height:76px}
.en-logo img{height:52px;display:block}
.en-actions{margin-left:auto;display:flex;align-items:center;gap:14px}
.en-qualif{height:46px;display:block;border-radius:6px}
.tb-menu{position:absolute;left:0;right:0;top:100%;border-top:1px solid var(--line);border-bottom:1px solid var(--line);box-shadow:0 18px 30px -24px rgba(16,18,56,.5)}
.tb-menu-in{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:8px 48px;padding:18px 40px 26px;max-width:1240px;margin-left:auto}
.tb-liens{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 32px}
.tb-contact{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding-top:12px}
.tb-contact .tb-tel span{display:inline}
.tb-contact .tb-cta{margin-top:6px}

/* deux colonnes */
.cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:calc(100vh - 77px)}
.gauche.scene{position:sticky;top:77px;align-self:start;height:calc(100vh - 77px);display:flex;flex-direction:column;
  background:var(--bg);border:none;padding:40px 48px 22px;min-width:0}
.gauche .sctitre{padding:0 110px 0 0;position:relative}
.gauche .sur{font-size:12px;letter-spacing:.16em;text-transform:uppercase;font-weight:700;color:var(--vert);min-height:18px}
.gauche h1{font-size:38px;line-height:1.15;margin:8px 0 12px;letter-spacing:-.03em}
.gauche .accroche{font-size:17px;max-width:540px}
.gauche .sc-masquer{top:0;right:0}
.gauche .vue{flex:1;min-height:200px;margin-top:8px}
.gauche .legende{font-size:13px;text-align:center;opacity:.85;margin:4px 0 6px}
.gauche .lecture{flex:none;max-height:30%;padding:10px 4px 0;border-top:1px solid var(--line);overflow-y:auto}
.gauche .vue.vide+.legende+.lecture{flex:1;max-height:none}
.droite.content{background:var(--surface);border-left:1px solid var(--line);min-width:0}
.droite .page{background:var(--surface);padding:22px 56px 80px}
.droite .main{max-width:620px;margin:0}

/* étapes : barre au-dessus du formulaire */
.etapes{padding:30px 56px 0}
.et-liste{list-style:none;display:flex;gap:8px;max-width:620px}
.et-liste li{flex:1;display:flex;flex-direction:column;gap:7px;font-size:12.5px;font-weight:600;color:var(--texte);min-width:0}
.et-liste i{height:4px;border-radius:2px;background:var(--line)}
.et-liste li.fait i,.et-liste li.on i{background:var(--vert)}
.et-liste li.on{color:var(--navy)}
.et-liste span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* titres des écrans : h2 depuis la V5 (un seul h1 par page, celui de la porte) */
.hero-t{display:none}              /* la colonne de gauche porte déjà le titre de la porte */
.hero{text-align:left;padding-bottom:28px}
.hero .filet{margin:0 0 18px}
.hero p{margin:0}
.res-t{font-size:30px;text-transform:uppercase;margin-bottom:8px}

/* illustration masquée : le formulaire prend toute la largeur */
body.sans-scene .cols{grid-template-columns:minmax(0,1fr)}
body.sans-scene .droite.content{border-left:none}
body.sans-scene .etapes,body.sans-scene .droite .page{padding-left:max(56px,calc(50% - 310px));padding-right:56px}

/* moins de 1100 px : une colonne ; le bâtiment devient une bande courte */
@media (max-width:1100px){
  .en-in{padding:10px 20px;min-height:64px}
  .en-logo img{height:42px}
  .en-qualif{height:38px}
  .tb-menu-in{grid-template-columns:minmax(0,1fr);padding:10px 20px 18px}
  .tb-liens{grid-template-columns:minmax(0,1fr)}
  .cols{grid-template-columns:minmax(0,1fr);min-height:0}
  .gauche.scene{position:static;height:auto;padding:20px 20px 6px;display:flex!important}
  .gauche .sctitre{padding-right:96px}
  .gauche h1{font-size:26px;margin:6px 0 6px}
  .gauche .accroche{font-size:15px}
  .gauche .vue{height:160px;flex:none;min-height:0}
  .gauche .legende,.gauche .lecture{display:none}
  .recap-mobile{display:block}
  .droite.content{border-left:none}
  .etapes{padding:18px 20px 0}
  .droite .page{padding:16px 20px 60px}
  body.sans-scene .etapes,body.sans-scene .droite .page{padding-left:20px;padding-right:20px}
}
@media (max-width:560px){ .en-qualif{height:32px} .en-logo img{height:36px} .sc-afficher{padding:8px 10px} }
@media print{ .entete,.etapes,.gauche{display:none!important} .cols{display:block} }
@media (max-width:1100px){ .gauche .sctitre p.accroche,.gauche .sctitre .sur{display:block} }
/* téléphone : la première question remonte (relecture du 18/10) */
@media (max-width:1100px){
  .gauche .sctitre .sur{display:none}
  .gauche .sctitre{padding-right:92px}
  .gauche h1{font-size:24px;margin-top:0}
  .gauche .accroche{font-size:14.5px;line-height:1.5}
  .gauche .vue{height:130px}
  .etapes{padding-top:14px}
}
