/* Page Estimer : bandeau bleu (deux formules), module La Loupe Immo,
   formulaire « avec un conseiller » en 5 étapes, déroulé en trois étapes. */

/* Comme dans la maquette : en-tête collant, pas de barre mobile Appeler / Estimer sur cette page */
.page-estimer .hdr--plein{position:sticky;top:0;z-index:50}
.page-estimer .mbar{display:none}
/* Les composants à display explicite (.btn, .field, .estimer__loupe…) doivent quand même respecter [hidden] */
.estimer-hero [hidden]{display:none!important}

/* ---------- Bandeau bleu ---------- */
.estimer-hero{padding:12px var(--gutter-lg) 0}
.estimer-hero__panel{position:relative;overflow:hidden;max-width:1420px;margin:0 auto;border-radius:clamp(24px,3vw,36px);background:var(--bleu);color:#fff}
.estimer-hero__wm{position:absolute;left:-8%;bottom:-34%;height:130%;aspect-ratio:.832;background:#fff;opacity:.06;-webkit-mask:url(../../logos/mark-c-lg.png) center/contain no-repeat;mask:url(../../logos/mark-c-lg.png) center/contain no-repeat;pointer-events:none}
.estimer-hero__grid{position:relative;max-width:1320px;margin:0 auto;padding:clamp(20px,4.4vw,64px) clamp(10px,4vw,56px);display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(24px,3vw,40px) clamp(32px,5vw,80px);align-items:start}
.estimer-hero__intro{grid-column:1;grid-row:1;display:flex;flex-direction:column;gap:18px;padding:10px 10px 0}
.estimer__card{grid-column:1;grid-row:2;align-self:center;min-width:0;background:#fff;color:var(--encre);border-radius:clamp(22px,2.4vw,30px);padding:clamp(10px,1.4vw,18px);box-shadow:var(--shadow-card);scroll-margin-top:100px}
.estimer-hero__extras{grid-column:1;grid-row:3;display:flex;flex-direction:column;gap:22px;padding:0 10px 10px}
/* Point de rupture de la maquette (state.w >= 980) : carte à droite sur deux rangées */
@media (min-width:980px){
  .estimer-hero__grid{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}
  .estimer__card{grid-column:2;grid-row:1 / span 2}
  .estimer-hero__extras{grid-row:2}
}
.estimer-hero__crumb{display:flex;gap:10px;align-items:center;font:400 13.5px/1 var(--sans);color:#fff}
.estimer-hero__crumb a{color:#fff;opacity:.8;transition:opacity .2s}
.estimer-hero__crumb a:hover{opacity:1;color:#fff}
.estimer-hero__crumb-dot{width:4px;height:4px;border-radius:50%;background:var(--sable)}
.estimer-hero__h1{font:400 clamp(40px,5.4vw,78px)/.98 var(--serif);letter-spacing:-.015em;color:#fff;text-wrap:balance}
.estimer-hero__h1 span{color:var(--sable)}
.estimer-hero__lead{max-width:470px;font:400 16.5px/1.6 var(--sans);color:#fff;opacity:.9;text-wrap:pretty}

/* Arguments + équipe */
.estimer-hero__list{display:flex;flex-direction:column;gap:14px}
.estimer-hero__list li{display:flex;gap:14px;align-items:center;font:400 15.5px/1.4 var(--sans);color:#fff}
.estimer-hero__list b{font-weight:500}
.estimer-hero__ok{flex:none;width:30px;height:30px;border-radius:50%;background:var(--sable);color:var(--encre);display:flex;align-items:center;justify-content:center}
.estimer-hero__talk{display:flex;align-items:center;gap:16px;padding-top:22px;border-top:1px solid rgba(255,255,255,.2)}
.estimer-hero__avatars{flex:none;display:flex;padding-left:12px}
.estimer-hero__avatar{flex:none;width:44px;height:44px;margin-left:-12px;border-radius:50%;border:3px solid var(--bleu);background:var(--lin) 50% 20%/cover no-repeat}
.estimer-hero__talk-txt{display:flex;flex-direction:column;gap:7px}
.estimer-hero__talk-txt > span{font:400 14px/1.3 var(--sans);color:#fff;opacity:.86}
.estimer-hero__talk-txt a{font:500 19px/1 var(--sans);color:#fff}
.estimer-hero__talk-txt a:hover{color:var(--sable)}

/* ---------- Carte blanche : onglets ---------- */
.estimer__tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.estimer__tab{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:0;padding:clamp(12px,1.4vw,16px);border-radius:20px;border:1px solid var(--lin);background:#fff;color:var(--encre);text-align:left;cursor:pointer;transition:border-color .2s,background .2s}
.estimer__tab:hover{border-color:var(--encre)}
.estimer__tab[aria-selected="true"]{border-color:var(--encre);background:var(--creme)}
.estimer__tab-head{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}
.estimer__tab-ic{flex:none;width:36px;height:36px;border-radius:50%;background:var(--creme);color:var(--bleu);display:flex;align-items:center;justify-content:center}
.estimer__tab[aria-selected="true"] .estimer__tab-ic{background:#fff}
.estimer__tab-kicker{font:500 11px/1.2 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--bleu);text-align:right}
.estimer__tab-t{font:500 15.5px/1.25 var(--sans);color:var(--encre)}
.estimer__tab-d{font:400 13px/1.45 var(--sans);color:rgba(27,43,63,.76)}
.estimer__h2{font:400 clamp(24px,2.4vw,32px)/1.12 var(--serif);color:var(--encre)}

/* ---------- Formule 1 : module La Loupe Immo ---------- */
.estimer__loupe{display:flex;flex-direction:column;gap:14px;margin-top:12px}
/* Aide au-dessus du module : l’adresse doit être choisie dans la liste, sinon le module refuse de démarrer */
.estimer__loupe-aide{display:flex;align-items:flex-start;gap:10px;margin:0;padding:11px 14px;border-radius:14px;background:var(--creme);font:400 13.5px/1.45 var(--sans);color:var(--encre-86)}
.estimer__loupe-aide svg{flex:none;margin-top:1px;color:var(--bleu)}
.estimer__loupe-aide b{font-weight:500;color:var(--encre)}
.estimer__loupe-wrap{width:100%;min-height:0}
.estimer__loupe-wrap--wait{min-height:420px}
/* #loupe-estimation, puis l'iframe qui le remplace : aucune hauteur fixe, le module règle la sienne */
.estimer__loupe-wrap > *{display:block;width:100%;height:100%;border:0}
.estimer__loupe-note{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 20px;padding:14px 8px 4px;border-top:1px solid var(--creme)}
.estimer__loupe-note > span{flex:1 1 260px;font:400 13.5px/1.5 var(--sans);color:rgba(27,43,63,.8)}
.estimer__loupe-note a{color:var(--bleu);text-decoration:underline;text-underline-offset:3px}
.estimer__loupe-link{display:inline-flex;align-items:center;gap:8px;padding:0 0 5px;border:0;border-bottom:1px solid var(--sable);background:transparent;font:500 14px/1 var(--sans);color:var(--bleu);cursor:pointer;transition:color .2s}
.estimer__loupe-link:hover{color:var(--encre)}
.estimer__loupe-wait{display:flex;align-items:center;gap:12px;font:400 14.5px/1.4 var(--sans);color:var(--encre-78)}
.estimer__loupe-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--sable)}
.estimer__loupe-fail{display:flex;flex-direction:column;gap:16px}
.estimer__loupe-fail p{font:400 15px/1.6 var(--sans);color:rgba(27,43,63,.84)}
.estimer__btn-cta{padding-left:22px}
.estimer__btn-tel{padding:0 22px}

/* ---------- Formule 2 : formulaire en 5 étapes ---------- */
.estimer__conseiller{padding:clamp(18px,2vw,26px) clamp(8px,1.2vw,18px) clamp(8px,1.2vw,18px)}
.estimer__form{display:flex;flex-direction:column;gap:24px}
.estimer__prog{display:flex;flex-direction:column;gap:12px}
.estimer__prog-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
.estimer__prog-step{color:var(--bleu)}
.estimer__prog-label{font:400 14px/1 var(--sans);color:var(--encre-74)}
.estimer__prog-bar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.estimer__prog-bar span{display:block;height:5px;border-radius:999px;background:var(--lin)}
.estimer__prog-bar span.is-on{background:var(--bleu)}
.estimer__step{display:flex;flex-direction:column;gap:18px}
.estimer__step--3{gap:20px}
.estimer__step--4{gap:22px}
.estimer__step--5{gap:16px}
.estimer__step-head{display:flex;flex-direction:column;gap:8px}
.estimer__step-p{font:400 14.5px/1.55 var(--sans);color:rgba(27,43,63,.8)}

/* Type de bien */
.estimer__tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,140px),1fr));gap:10px}
.estimer__tile{display:flex;flex-direction:column;align-items:flex-start;gap:18px;min-height:112px;padding:16px;border-radius:20px;border:1px solid var(--lin);background:#fff;color:var(--encre);cursor:pointer;text-align:left;transition:border-color .2s}
.estimer__tile:hover{border-color:var(--encre)}
.estimer__tile[aria-pressed="true"]{border-color:var(--encre);background:var(--creme)}
.estimer__tile span{margin-top:auto;font:500 15px/1.2 var(--sans)}

/* Champs (sur la base de .field / .input de site.css, aux valeurs de la maquette) */
.estimer__lbl{font:500 13.5px/1.2 var(--sans);color:var(--encre)}
.estimer__lbl--row{display:flex;gap:5px}
.estimer__opt{font-weight:400;color:rgba(27,43,63,.7)}
/* 16 px : en dessous, l'iPhone zoome sur le champ pendant la saisie */
.estimer__input{height:56px;font-size:16px}
select.estimer__input{padding-right:44px;background-position:right 18px center}
textarea.estimer__input{height:auto;min-height:0;padding:16px 18px;line-height:1.5}
.estimer__fgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:12px}
.estimer__fgrid--200{grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))}
.estimer__group{display:flex;flex-direction:column;gap:10px}
.estimer__chips{display:flex;flex-wrap:wrap;gap:8px}
.estimer__chip{height:44px;padding:0 18px;border-radius:999px;border:1px solid var(--lin);background:#fff;color:var(--encre);font:400 14.5px/1 var(--sans);cursor:pointer;transition:border-color .2s}
.estimer__chip:hover{border-color:var(--sable)}
.estimer__chip[aria-pressed="true"]{border-color:var(--encre);background:var(--encre);color:#fff;font-weight:500}
.estimer__chip[aria-pressed="true"]:hover{border-color:var(--encre)}
.estimer__chip--n{min-width:52px;padding:0 16px}
.estimer__err{display:flex;align-items:center;gap:10px;font:400 14px/1.4 var(--sans);color:var(--encre)}
.estimer__err-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--terracotta)}

/* Coordonnées et consentements */
.estimer__consent{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:16px;background:var(--creme)}
.estimer__consent-t{font:500 13.5px/1.3 var(--sans);color:var(--encre)}
.estimer__check{display:flex;gap:12px;align-items:flex-start;cursor:pointer}
.estimer__check input{flex:none;width:20px;height:20px;margin:0;accent-color:var(--terracotta)}
.estimer__check span{font:400 13.5px/1.5 var(--sans);color:var(--encre-86)}
.estimer__consent-note{font:400 12.5px/1.5 var(--sans);color:rgba(27,43,63,.72)}
.estimer__legal{font:400 13px/1.55 var(--sans);color:var(--encre-78);text-wrap:pretty}
.estimer__legal a{color:var(--bleu);text-decoration:underline;text-underline-offset:3px}

/* Pied du formulaire */
.estimer__foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:20px;border-top:1px solid var(--creme)}
.estimer__back{display:inline-flex;align-items:center;gap:8px;height:52px;padding:0 14px 0 6px;border:0;background:transparent;color:var(--encre);font:500 15px/1 var(--sans);cursor:pointer;transition:color .2s}
.estimer__back:hover{color:var(--bleu)}
.estimer__free{font:400 13.5px/1.4 var(--sans);color:var(--encre-74)}
.estimer__next,.estimer__send{margin-left:auto}
.estimer__send{padding-left:22px}

/* Confirmation */
.estimer__done{display:flex;flex-direction:column;gap:20px}
.estimer__done-ic{width:60px;height:60px;border-radius:50%;background:var(--lin);color:var(--bleu);display:flex;align-items:center;justify-content:center}
.estimer__done-h2{font:400 clamp(28px,3vw,40px)/1.08 var(--serif);color:var(--encre)}
.estimer__done-p{font:400 15.5px/1.6 var(--sans);color:rgba(27,43,63,.84)}
.estimer__recap{display:flex;flex-wrap:wrap;gap:8px}
.estimer__recap span{display:inline-flex;align-items:center;height:36px;padding:0 14px;border-radius:999px;background:var(--creme);font:400 14px/1 var(--sans);color:var(--encre)}
.estimer__loc{display:flex;gap:14px;align-items:center;padding:16px 18px;border-radius:20px;background:var(--creme);color:var(--encre);transition:background .2s}
.estimer__loc:hover{background:var(--lin);color:var(--encre)}
.estimer__loc > span{flex:1;display:flex;flex-direction:column;gap:4px}
.estimer__loc-t{font:500 14.5px/1.3 var(--sans)}
.estimer__loc-d{font:400 13.5px/1.4 var(--sans);color:rgba(27,43,63,.8)}
.estimer__loc svg{flex:none}
.estimer__done-btns{display:flex;flex-wrap:wrap;gap:10px;padding-top:6px}
.estimer__done-btns .btn{height:52px}
.estimer__done-btns .btn--dark{padding-left:22px}
.estimer__done-btns .btn__circle{width:40px;height:40px}

/* ---------- Déroulé en trois étapes ---------- */
.estimer-steps{max-width:1320px;margin:0 auto;padding:clamp(48px,7vw,104px) clamp(20px,4vw,56px)}
.estimer-steps__head{display:flex;flex-wrap:wrap;gap:20px 48px;align-items:flex-end;justify-content:space-between}
.estimer-steps__h2{max-width:640px;font-size:clamp(28px,3.6vw,52px);line-height:1.05;letter-spacing:-.01em}
.estimer-steps__link{font-size:15px;padding-bottom:6px}
/* 3 colonnes, puis 1 seule quand le conteneur passe sous 780 px (expression de la maquette) */
.estimer-steps__list{display:grid;grid-template-columns:repeat(auto-fill,minmax(clamp(33.33% - 9px,(780px - 100%) * 999,100%),1fr));gap:12px;margin-top:clamp(24px,3.4vw,44px)}
.estimer-steps__item{display:flex;flex-direction:column;gap:12px;padding:clamp(20px,2.4vw,30px);border-radius:24px;background:var(--creme)}
.estimer-steps__n{font:400 44px/1 var(--serif);color:var(--bleu)}
.estimer-steps__t{font:500 16.5px/1.3 var(--sans);color:var(--encre)}
.estimer-steps__d{font:400 14.5px/1.55 var(--sans);color:rgba(27,43,63,.8)}

/* Saisie assistée de l'adresse (suggestions de la Base adresse nationale) */
.adr{position:relative}
.adr__aide{font:400 13px/1.4 var(--sans);color:var(--encre-74,#4a5563)}
.adr__list{position:absolute;left:0;right:0;z-index:30;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid var(--lin);border-radius:18px;box-shadow:0 24px 48px -20px rgba(27,43,63,.35);max-height:320px;overflow:auto}
.adr__opt{display:flex;flex-direction:column;gap:3px;padding:11px 14px;border-radius:12px;cursor:pointer}
.adr__opt:hover,.adr__opt.is-on{background:var(--creme)}
.adr__rue{font:500 15px/1.3 var(--sans);color:var(--encre)}
.adr__ville{font:400 13px/1.3 var(--sans);color:var(--encre-74,#4a5563)}
