/*
Theme Name: Estime Mon Bien
Theme URI: https://estimationbien.com
Author: Estime Mon Bien
Description: Thème de génération de demandes d'estimation immobilière.
Version: 1.9.0
Text Domain: estime-mon-bien
*/

:root {
  --ink: #102a2a;
  --ink-deep: #092020;
  --muted: #647270;
  --cream: #f6f3ec;
  --paper: #fffdfa;
  --line: #dce2de;
  --mint: #dff3e8;
  --mint-strong: #9bd8b9;
  --coral: #f06449;
  --coral-dark: #d84b31;
  /* Coral décliné pour le texte et les fonds de bouton : le coral d'origine
     plafonne à 3,1:1 sur fond clair, sous le seuil WCAG AA (4,5:1). */
  --coral-ink: #b4381f;
  --coral-cta: #d2452a;
  --muted-strong: #5f6d6a;
  --focus: #1f5f4c;
  --white: #fff;
  --shadow: 0 28px 70px rgba(9, 32, 32, .15);
  --radius: 22px;
  --font: Inter, Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Texte réservé aux lecteurs d'écran (annonce des changements d'étape). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Repère de focus clavier, y compris sur les champs dont l'outline est retiré
   et sur les boutons radio/cases masqués derrière leur étiquette. */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.estimation-form input:not([type="radio"]):not([type="checkbox"]):focus-visible,
.select-field select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.address-suggestions button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.choice-card:has(input:focus-visible),
.feature-box:has(input:focus-visible),
.segmented label:has(input:focus-visible),
.privacy-check:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.check-grid input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Groupe de choix obligatoire laissé vide : la bulle native ne suffit pas quand
   les boutons radio sont invisibles. */
.is-missing { border-radius: 13px; outline: 2px solid var(--coral-ink); outline-offset: 8px; }
html { scroll-behavior: smooth; }
/* Sélecteur volontairement en « html body » (et non « body ») : le Bootstrap du
   plugin BlockStrap redéfinit body{font-family;color;line-height;background} et
   il est chargé après nous. Un élément de plus suffit à reprendre la main. */
html body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; }
/* Le bleu souligné du navigateur (et celui des styles globaux WordPress) ne doit
   jamais réapparaître au survol : chaque état de lien est déclaré ici. Les liens
   sans classe héritent, ceux qui portent une classe gardent leur propre teinte. */
a:not([class]),
a:not([class]):link,
a:not([class]):visited,
a:not([class]):hover,
a:not([class]):focus,
a:not([class]):active { color: inherit; text-decoration-color: var(--coral); text-underline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 850px; }

.site-header { position: sticky; z-index: 50; top: 0; background: rgba(255,253,250,.94); border-bottom: 1px solid rgba(16,42,42,.08); backdrop-filter: blur(16px); }
.header-inner { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font-size: 20px; font-weight: 500; letter-spacing: -.6px; }
/* Le logotype reste encre en toutes circonstances ; le survol se signale par la
   courbe coral du sigle plutôt que par un soulignement. */
.site-header .brand,
.site-header .brand:link,
.site-header .brand:visited,
.site-header .brand:hover,
.site-header .brand:focus,
.site-header .brand:active { color: var(--ink); text-decoration: none; }
.brand-mark .mark-curve { transition: fill .2s; }
.site-header .brand:hover .mark-curve { fill: var(--coral-dark); }
.brand strong { font-weight: 800; }
/* Nom propre + baseline : le nom identifie, la baseline porte la requête cible
   sur chaque page. Empilés, ils tiennent dans les 76 px de l'en-tête. */
.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.brand-baseline { margin-top: 2px; color: #3d625b; font-size: 10.5px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }
.brand-baseline sup { font-size: .7em; }
.site-footer .brand-text, .stage-brand .brand-text { display: inline; }
/* Sigle SVG inline : le toit suit le contexte, la courbe reste coral. */
.brand-mark { width: 35px; height: 32px; flex: none; }
.brand-mark .mark-roof { fill: var(--ink-deep); }
.brand-mark .mark-curve { fill: var(--coral); }
.site-footer .brand-mark .mark-roof { fill: var(--white); }
.stage-brand .brand-mark { width: 30px; height: 27px; }
.header-cta { padding: 10px 18px; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 750; transition: .2s; }
.header-cta, .header-cta:link, .header-cta:visited { color: var(--ink); text-decoration: none; }
.header-cta:hover, .header-cta:focus { color: var(--white); background: var(--ink); border-color: var(--ink); text-decoration: none; }

.hero { position: relative; overflow: hidden; padding: 74px 0 84px; background: var(--cream); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(rgba(16,42,42,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(16,42,42,.045) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to right, #000, transparent 52%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.hero-orb-one { width: 470px; height: 470px; left: -210px; bottom: -270px; background: rgba(155,216,185,.36); }
.hero-orb-two { width: 300px; height: 300px; right: -120px; top: -140px; border: 70px solid rgba(240,100,73,.07); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: 58px; align-items: center; }
.hero-grid > *, .local-grid > *, .estimator-card { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; color: #3d625b; font-size: 12px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; }
.eyebrow span { width: 25px; height: 2px; background: var(--coral); }
.eyebrow.center { justify-content: center; }
.eyebrow.light { color: var(--mint-strong); }
.hero h1 { margin: 0; color: var(--ink-deep); font-size: clamp(46px, 5.3vw, 76px); line-height: 1.02; letter-spacing: -4px; }
h1 em, .section-title em { color: var(--coral); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
/* Sous-titre du H1 : porte la requête cible sans casser la typographie de l'accroche. */
.hero h1 .h1-sub { display: block; margin-top: 16px; color: #3d625b; font-size: 19px; font-weight: 700; letter-spacing: -0.2px; line-height: 1.35; }
.hero h1 .h1-sub sup { font-size: .62em; }
.hero-lead { max-width: 580px; margin: 28px 0; color: #536563; font-size: 18px; line-height: 1.7; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 0; margin: 0; list-style: none; color: #334f4c; font-size: 13px; font-weight: 650; }
.trust-list span { display: inline-grid; width: 20px; height: 20px; margin-right: 5px; place-items: center; color: var(--ink); background: var(--mint); border-radius: 50%; font-size: 11px; }

.estimator-card { padding: 32px; background: var(--white); border: 1px solid rgba(16,42,42,.08); border-radius: 28px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.card-kicker { margin: 0; color: var(--coral-ink); font-size: 11px; font-weight: 850; letter-spacing: 1.5px; text-transform: uppercase; }
.card-head h2 { margin: 2px 0 0; color: var(--ink); font-size: 22px; line-height: 1.25; letter-spacing: -.6px; }
.time-pill { padding: 7px 11px; color: #56706d; background: #edf3ef; border-radius: 999px; font-size: 12px; white-space: nowrap; }
/* Préfixe emb- obligatoire ici : le plugin BlockStrap charge un Bootstrap 5
   complet (ayecode-ui.css) APRÈS cette feuille, et il possède ses propres
   .progress, .progress-bar et .step-number. À spécificité égale, la feuille
   chargée en dernier gagne — le préfixe est la seule parade durable. */
.emb-progress { height: 4px; margin: 22px 0 27px; overflow: hidden; background: #e7ece9; border-radius: 9px; }
.emb-progress-bar { display: block; height: 100%; background: var(--coral); transition: width .35s ease; }
.form-step { display: none; animation: step-in .3s ease; }
.form-step.is-active { display: block; }
@keyframes step-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.estimation-form label, .estimation-form legend { display: block; margin-bottom: 8px; color: var(--ink); font-size: 13px; font-weight: 750; }
.estimation-form label { margin-top: 14px; }
.estimation-form input:not([type="radio"]):not([type="checkbox"]) { width: 100%; min-height: 54px; padding: 0 16px; color: var(--ink); background: #fff; border: 1px solid #cfd8d4; border-radius: 12px; outline: 0; transition: .2s; }
.estimation-form input:focus { border-color: #568d7a; box-shadow: 0 0 0 4px rgba(86,141,122,.12); }
.address-field { position: relative; }
.address-field svg { position: absolute; z-index: 1; top: 16px; left: 16px; width: 22px; fill: var(--coral); }
.address-field input { padding-left: 48px !important; }
.address-autocomplete { position: relative; min-width: 0; }
.address-suggestions { position: absolute; z-index: 20; top: calc(100% + 5px); right: 0; left: 0; overflow: hidden; background: #fff; border: 1px solid #d2dbd7; border-radius: 12px; box-shadow: 0 18px 35px rgba(9,32,32,.16); }
.address-suggestions[hidden] { display: none; }
.address-suggestions button { display: flex; width: 100%; padding: 11px 14px; flex-direction: column; align-items: flex-start; color: var(--ink); background: #fff; border: 0; border-bottom: 1px solid #edf0ee; text-align: left; }
.address-suggestions button:last-child { border-bottom: 0; }
.address-suggestions button:hover, .address-suggestions button:focus { background: #eef7f2; }
/* Proposition armée : c'est elle que la touche Entrée retient. */
.address-suggestions button.is-active { color: var(--white); background: var(--coral-cta); }
.address-suggestions strong { font-size: 12px; }
.address-suggestions span { color: var(--muted); font-size: 11px; }
.address-suggestions button.is-active span { color: var(--white); }
.field-hint { margin: 9px 0 20px; color: var(--muted-strong); font-size: 12px; transition: color .2s; }
.field-hint.is-warn { color: var(--coral-dark); font-weight: 700; }
.field-hint.is-ok { color: #2f7a5f; font-weight: 700; }
a.primary-button, a.primary-button:link, a.primary-button:visited, a.primary-button:hover, a.primary-button:focus { color: var(--white); text-decoration: none; }
.primary-button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 15px; width: 100%; padding: 0 20px; color: var(--white); background: var(--coral-cta); border: 0; border-radius: 12px; box-shadow: 0 10px 22px rgba(240,100,73,.2); font-weight: 800; text-decoration: none; transition: .2s; }
.primary-button:hover { background: var(--coral-ink); transform: translateY(-1px); }
.primary-button[disabled] { background: #667471; box-shadow: none; cursor: progress; transform: none; }
.primary-button span { font-size: 20px; }
.back-button { min-height: 54px; padding: 0 17px; color: #5a6e6b; background: transparent; border: 0; font-weight: 700; }
.step-actions { display: flex; gap: 12px; align-items: center; margin-top: 22px; }
.step-actions .primary-button { flex: 1; }
/* Les titres d'étape sont des <p> et non des <h3> : ils ne doivent pas entrer dans
   le plan du document, qui reste réservé au contenu éditorial indexable. */
.form-step .step-title, .form-step legend { margin: 0 0 13px; color: var(--ink-deep); font-size: 18px; font-weight: 800; }
.form-intro { margin: -7px 0 14px; color: var(--muted); font-size: 13px; }
.field-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.field-row:has(> label:nth-child(3)) { grid-template-columns: repeat(3,1fr); }
fieldset { padding: 0; margin: 8px 0 18px; border: 0; }
.choice-grid { display: grid; gap: 12px; }
.choice-grid-two { grid-template-columns: 1fr 1fr; }
.choice-grid-three { grid-template-columns: repeat(3,1fr); }
.choice-card { position: relative; display: flex !important; min-height: 92px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; margin: 0 !important; border: 1px solid #d6ddda; border-radius: 13px; cursor: pointer; }
.choice-card:has(input:checked) { background: #f0f8f4; border-color: #4a8872; box-shadow: 0 0 0 2px rgba(74,136,114,.12); }
.choice-card input { position: absolute; opacity: 0; }
/* Pictogrammes de l'étape « type de bien » : le SVG porte déjà ses couleurs. */
.choice-icon { display: block; width: 44px; height: 44px; color: var(--coral); font-size: 26px; line-height: 1; }
.choice-icon img { display: block; width: 100%; height: 100%; }
.check-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.check-grid label { position: relative; margin: 0; }
.check-grid input { position: absolute; opacity: 0; }
.check-grid span { display: grid; min-height: 44px; padding: 5px; place-items: center; border: 1px solid #d6ddda; border-radius: 10px; cursor: pointer; font-size: 12px; }
.check-grid input:checked + span { color: var(--ink); background: var(--mint); border-color: #72a991; }
.feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.feature-box { position: relative; display: flex !important; min-height: 49px; align-items: center; gap: 10px; margin: 0 !important; padding: 10px 12px; border: 1px solid #d6ddda; border-radius: 11px; cursor: pointer; }
.feature-box:has(input:checked) { background: var(--mint); border-color: #72a991; }
.feature-box input { width: 17px; height: 17px; margin: 0; accent-color: var(--ink); }
.feature-box span { font-size: 12px; line-height: 1.25; }
.quantity-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin: 13px 0; }
.select-field select { width: 100%; min-height: 54px; padding: 0 38px 0 16px; color: var(--ink); background: #fff; border: 1px solid #cfd8d4; border-radius: 12px; outline: 0; }
.segmented { display: grid; grid-template-columns: repeat(5,1fr); overflow: hidden; border: 1px solid #d6ddda; border-radius: 11px; }
.segmented.three { grid-template-columns: repeat(3,1fr); }
.segmented label { position: relative; display: grid !important; min-height: 48px; margin: 0 !important; padding: 6px 4px; place-items: center; border-right: 1px solid #d6ddda; cursor: pointer; text-align: center; font-size: 10px; line-height: 1.15; }
.segmented label:last-child { border-right: 0; }
.segmented input { position: absolute; opacity: 0; }
.segmented label:has(input:checked) { color: var(--ink); background: var(--mint); box-shadow: inset 0 0 0 1px #72a991; }
.question-block { margin: 18px 0; }
.question-block > p { margin: 0 0 8px; color: var(--ink); font-size: 13px; font-weight: 750; }
.question-note { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.step-caption { margin: -6px 0 17px; color: var(--muted); font-size: 12px; }
.privacy-check { display: flex !important; align-items: flex-start; gap: 10px; margin-top: 18px !important; color: #60716e !important; font-weight: 500 !important; line-height: 1.45; }
.privacy-check input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--ink); }
.privacy-check a { color: var(--ink); }
.card-reassurance { margin: 19px 0 -8px; color: var(--muted-strong); text-align: center; font-size: 11px; }
.form-error { margin: 10px 0 0; color: #b03527; font-size: 13px; }
.success-step { padding: 28px 0; text-align: center; }
.success-icon { display: grid; width: 54px; height: 54px; margin: 0 auto 15px; place-items: center; color: #fff; background: #3f8067; border-radius: 50%; font-size: 25px; }

.proof-strip { color: var(--white); background: var(--ink-deep); }
.proof-grid { display: grid; grid-template-columns: repeat(4,1fr); padding-block: 28px; }
.proof-grid div { display: flex; flex-direction: column; align-items: center; padding: 0 22px; border-right: 1px solid rgba(255,255,255,.13); text-align: center; }
.proof-grid div:last-child { border: 0; }
.proof-grid strong { color: var(--mint-strong); font-size: 19px; }
.proof-grid span { color: rgba(255,255,255,.67); font-size: 11px; }

.section { padding: 105px 0; }
.section-title { max-width: 770px; margin: 0 auto 18px; color: var(--ink-deep); text-align: center; font-size: clamp(35px, 4vw, 54px); line-height: 1.08; letter-spacing: -2.2px; }
.section-title.left { margin-inline: 0; text-align: left; }
.section-lead { max-width: 630px; margin: 0 auto 55px; color: var(--muted); text-align: center; font-size: 17px; }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.steps-grid article { position: relative; min-height: 300px; padding: 35px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
/* Le numéro partage une ligne avec le pictogramme : positionné dans le flux, il
   ne peut plus retomber sur le titre si une règle extérieure neutralise le
   positionnement absolu. */
.step-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.emb-step-number { flex: none; color: #e4e9e6; font-family: Georgia, serif; font-size: 46px; font-style: italic; line-height: 1; }
.step-symbol { display: grid; width: 54px; height: 54px; flex: none; place-items: center; color: var(--coral); background: #fff1ed; border-radius: 15px; font-size: 27px; }
.steps-grid h3 { margin: 0 0 10px; font-size: 20px; }
.steps-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.local-section { background: #edf4ef; }
.local-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 85px; }
.local-grid p:not(.eyebrow) { color: #5f716d; }
.local-card { position: relative; aspect-ratio: 1 / 1; min-height: 460px; overflow: hidden; background: #eef3ee; border-radius: 28px; box-shadow: 0 26px 45px rgba(16,42,42,.13); }
/* La carte est légèrement agrandie pour absorber la marge blanche du visuel : le
   surplus sert aussi de course au déplacement suivant la souris (--map-x/-y,
   écrits par site.js, bornés par la même marge). */
/* <picture> ne doit pas s'interposer entre .local-card et l'image positionnée. */
.local-card picture { display: contents; }
.local-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translate3d(var(--map-x, 0px), var(--map-y, 0px), 0) scale(1.16); transition: transform .55s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.local-card::after { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(16,42,42,.14), transparent 42%); }
.mini-card { position: absolute; z-index: 4; right: 25px; bottom: 25px; display: flex; width: 180px; padding: 16px 18px; flex-direction: column; background: var(--white); border-radius: 15px; box-shadow: 0 15px 30px rgba(16,42,42,.14); }
.mini-card small { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.mini-card strong { font-size: 24px; line-height: 1.3; }
.mini-card span { color: #3c6d55; font-size: 11px; font-weight: 750; }
/* ---- Pages internes : fil d'Ariane, contenu éditorial, liste d'articles ---- */
.breadcrumb { margin-bottom: 26px; color: var(--muted); font-size: 13px; font-weight: 650; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover, .breadcrumb a:focus { color: var(--coral-ink); text-decoration: underline; }

.page-content { color: #4f615e; font-size: 17px; line-height: 1.75; }
.page-content h2 { margin: 46px 0 14px; color: var(--ink-deep); font-size: clamp(25px, 3vw, 32px); letter-spacing: -1px; line-height: 1.2; }
.page-content h3 { margin: 32px 0 10px; color: var(--ink-deep); font-size: 20px; }
.page-content p { margin: 0 0 18px; }
.page-content ul, .page-content ol { margin: 0 0 20px; padding-left: 22px; }
.page-content li { margin-bottom: 9px; }
.page-content a { color: var(--coral-ink); text-underline-offset: 3px; }
.page-content img { max-width: 100%; height: auto; border-radius: 16px; }
/* Les tableaux de prix par rue sont longs et larges : ils doivent défiler dans
   leur propre conteneur, jamais faire déborder la page horizontalement. */
.page-content figure.wp-block-table { max-width: 100%; margin: 0 0 26px; overflow-x: auto; }
.page-content table { width: 100%; margin: 0 0 10px; border-collapse: collapse; font-size: 15px; }
.page-content th, .page-content td { padding: 11px 13px; border-bottom: 1px solid #e3e9e6; text-align: left; white-space: nowrap; }
.page-content td:first-child { white-space: normal; }
.page-content th { position: sticky; top: 0; color: var(--ink-deep); background: var(--paper); font-weight: 800; }
.page-content tbody tr:hover { background: #f4f8f5; }
.page-content figcaption { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.55; }
/* Écart au prix médian du quartier : lecture immédiate du dessus/dessous. */
.page-content td.au-dessus { color: #1f6b4a; font-weight: 750; }
.page-content td.en-dessous { color: var(--coral-ink); font-weight: 750; }
.page-content td.median { color: var(--muted); }
.page-content blockquote { margin: 26px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--coral); color: var(--ink); font-style: italic; }
.entry-meta { color: var(--muted); font-size: 13px; font-weight: 650; }
/* Visible des seuls administrateurs : signale un champ NAP manquant sans jamais
   exposer de texte de remplacement aux moteurs. */
.emb-todo { padding: 2px 7px; background: #ffe9a8; border-radius: 5px; font-size: 13px; font-weight: 750; }

.post-list { display: grid; gap: 26px; margin-top: 38px; }
.post-card { padding: 26px 28px; background: var(--white); border: 1px solid #e3e9e6; border-radius: 20px; }
.post-card h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.6px; }
.post-card h2 a { color: var(--ink-deep); text-decoration: none; }
.post-card h2 a:hover, .post-card h2 a:focus { color: var(--coral-ink); }
.post-card p { margin: 8px 0 0; color: #5f716d; }
.emb-pagination { margin-top: 34px; font-weight: 750; }
.emb-pagination .page-numbers { padding: 6px 11px; color: var(--ink); text-decoration: none; }
.emb-pagination .current { background: var(--mint); border-radius: 9px; }

/* ---- Appel à l'action des pages internes ---- */
/* Reprend la première étape du formulaire seulement : le formulaire complet
   dupliqué page après page produirait autant de quasi-doublons. */
.inline-cta { margin: 60px 0 0; padding: 34px 32px; background: var(--mint); border-radius: 24px; }
.inline-cta-title { margin: 0 0 10px; color: var(--ink-deep); font-size: clamp(23px, 2.8vw, 29px); letter-spacing: -1px; line-height: 1.2; }
.inline-cta-lead { margin: 0 0 22px; color: #4a5f5b; font-size: 16px; line-height: 1.6; }
.inline-cta-form { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.inline-cta-form input { width: 100%; min-height: 54px; padding: 0 16px 0 48px; color: var(--ink); background: #fff; border: 1px solid #cfd8d4; border-radius: 12px; outline: 0; transition: .2s; }
.inline-cta-form input:focus { border-color: #568d7a; box-shadow: 0 0 0 4px rgba(86,141,122,.12); }
.inline-cta-form .primary-button { width: auto; padding-inline: 26px; }
@media (max-width: 620px) {
  .inline-cta { padding: 26px 22px; }
  .inline-cta-form { grid-template-columns: 1fr; }
  .inline-cta-form .primary-button { width: 100%; }
}

/* Maillage interne de la section locale : des pastilles cliquables plutôt qu'une
   liste, pour rester lisible sans alourdir la mise en page. */
.local-links-intro { margin: 22px 0 10px !important; color: var(--ink) !important; font-size: 14px; font-weight: 750; }
.local-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.local-links a { display: inline-block; padding: 7px 14px; color: var(--ink); background: var(--mint); border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; transition: .2s; }
.local-links a:hover, .local-links a:focus { color: var(--white); background: var(--ink); }

.text-link { display: inline-flex; gap: 13px; align-items: center; margin-top: 15px; color: var(--coral-ink); font-weight: 800; text-decoration: none; }
.text-link, .text-link:link, .text-link:visited, .text-link:hover, .text-link:focus { color: var(--coral-ink); text-decoration: none; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translateX(5px); }

.faq-section { background: var(--paper); }
.faq-section .section-title { margin-bottom: 45px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font-weight: 750; }
summary::-webkit-details-marker { display: none; }
summary span { color: var(--coral); font-size: 25px; font-weight: 400; transition: .2s; }
details[open] summary span { transform: rotate(45deg); }
details p { margin: -8px 0 25px; color: var(--muted); }

.final-cta { padding: 85px 0; color: var(--white); background: var(--ink-deep); text-align: center; }
.final-cta h2 { margin: 0; font-size: clamp(38px,5vw,62px); letter-spacing: -2.7px; }
.final-cta p:not(.eyebrow) { color: rgba(255,255,255,.68); }
.inline-button { width: auto; margin-top: 18px; padding-inline: 28px; }

.site-footer { padding: 65px 0 22px; color: #bdc8c5; background: #061818; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 44px; }
.footer-brand { margin-bottom: 16px; color: var(--white); }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-grid p { max-width: 330px; margin: 0; }
.footer-grid strong { margin-bottom: 7px; color: var(--white); }
.footer-plain { max-width: 330px; color: #93a3a0; line-height: 1.6; }
.footer-nap { margin-top: 4px !important; }
.footer-nap a { font-weight: 750; }
.footer-grid a:not(.brand),
.footer-grid a:not(.brand):link,
.footer-grid a:not(.brand):visited { color: inherit; text-decoration: none; }
.footer-grid a:hover, .footer-grid a:focus { color: var(--white); text-decoration: none; }
.site-footer .brand, .site-footer .brand:link, .site-footer .brand:visited, .site-footer .brand:hover { color: var(--white); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.09); font-size: 11px; }

/* ---- Scène d'estimation plein écran ---- */
body.estimation-open { overflow: hidden; }
.estimation-stage { position: fixed; inset: 0; z-index: 130; display: flex; flex-direction: column; background: var(--paper); }
/* Sur mobile, 100vh passe sous la barre d'URL : dvh suit la hauteur réellement visible. */
@supports (height: 100dvh) {
  .estimation-stage { height: 100dvh; }
}
.estimation-stage[hidden] { display: none; }
/* Les animations se déclenchent au passage display:none → flex. */
.estimation-stage:not([hidden]) { animation: stage-fade .5s cubic-bezier(.2,.7,.25,1) both; }
.estimation-stage:not([hidden]) .stage-top { animation: stage-drop .55s .06s cubic-bezier(.2,.7,.25,1) both; }
.estimation-stage:not([hidden]) .stage-body { animation: stage-rise .6s .14s cubic-bezier(.2,.7,.25,1) both; }
.estimation-stage.is-closing { animation: stage-out .28s ease both; }
@keyframes stage-fade { from { opacity: 0; transform: translateY(36px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes stage-drop { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes stage-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes stage-out { to { opacity: 0; transform: translateY(22px) scale(.99); } }

.stage-top { background: rgba(255,253,250,.96); border-bottom: 1px solid rgba(16,42,42,.08); }
.stage-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.stage-brand { font-size: 17px; }
.stage-address-chip { display: inline-flex; min-width: 0; max-width: 46%; align-items: center; gap: 8px; padding: 8px 14px; color: #29544a; background: var(--mint); border-radius: 999px; font-size: 13px; font-weight: 650; }
.stage-address-chip svg { width: 15px; flex: none; fill: currentColor; }
.stage-address-chip span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.stage-address-chip:has(span:empty) { visibility: hidden; }
.stage-close { display: grid; width: 42px; height: 42px; flex: none; place-items: center; color: var(--ink); background: transparent; border: 1px solid rgba(16,42,42,.18); border-radius: 50%; font-size: 22px; line-height: 1; transition: .2s; }
.stage-close:hover { color: var(--white); background: var(--ink); }
.stage-top .emb-progress { height: 4px; margin: 0; border-radius: 0; }

.stage-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 42px 0 80px; -webkit-overflow-scrolling: touch; }
.stage-layout { display: grid; width: min(1120px, calc(100% - 48px)); margin-inline: auto; grid-template-columns: minmax(0, 680px) 320px; justify-content: space-between; gap: 48px; align-items: start; }
.stage-inner { min-width: 0; }

.stage-rail { position: sticky; top: 8px; display: flex; flex-direction: column; gap: 16px; }
.rail-map { position: relative; height: 300px; overflow: hidden; background-color: #e3ede6; background-image: linear-gradient(30deg, transparent 48%, rgba(16,42,42,.08) 49%, rgba(16,42,42,.08) 51%, transparent 52%), linear-gradient(-30deg, transparent 48%, rgba(16,42,42,.06) 49%, rgba(16,42,42,.06) 51%, transparent 52%); background-size: 64px 64px; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 38px rgba(9,32,32,.12); }
.rail-map-fallback { position: absolute; inset: 0; display: grid; place-content: center; color: var(--muted-strong); text-align: center; font-size: 12px; }
.rail-map-fallback span { display: block; color: var(--coral); font-size: 26px; }
.rail-map iframe { position: relative; display: block; width: 100%; height: calc(100% + 46px); border: 0; filter: grayscale(.85) sepia(.28) hue-rotate(96deg) saturate(.7) brightness(1.04) contrast(.95); }
.rail-map iframe[hidden] { display: none; }
/* MapLibre ajoute .maplibregl-map { position: relative } sur ce conteneur et sa
   feuille est injectée après style.css : à spécificité égale elle gagnait, le
   conteneur retombait en flux et s'écrasait à 0 de haut. D'où le scope .rail-map. */
.rail-map .rail-map-canvas { position: absolute; inset: 0; z-index: 1; border-radius: inherit; overflow: hidden; }
.rail-map .rail-map-canvas[hidden] { display: none; }
.rail-map-canvas .maplibregl-canvas { border-radius: inherit; }
.rail-map .maplibregl-ctrl-attrib, .rail-map .maplibregl-ctrl-logo { display: none !important; }
.rail-map-attr { position: absolute; z-index: 2; right: 10px; bottom: 8px; padding: 3px 9px; color: #5d6f6b; background: rgba(255,253,250,.92); border-radius: 999px; font-size: 10px; }
.rail-card { padding: 15px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.rail-card small { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.rail-card strong { display: block; font-size: 14px; line-height: 1.45; }
.rail-points { display: flex; flex-direction: column; gap: 9px; margin: 4px 0 0; padding: 0 4px; list-style: none; color: #4f625f; font-size: 13px; font-weight: 600; }
.rail-points span { display: inline-grid; width: 19px; height: 19px; margin-right: 7px; place-items: center; color: var(--ink); background: var(--mint); border-radius: 50%; font-size: 10px; }
.stage-meta { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 26px; font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.stage-meta [data-step-count] { color: var(--coral-ink); }
.stage-meta [data-step-phase] { color: var(--muted-strong); }

.estimation-stage .form-step .step-title, .estimation-stage .form-step legend { margin: 0 0 10px; color: var(--ink-deep); font-size: clamp(24px, 3.2vw, 31px); letter-spacing: -1.2px; line-height: 1.15; }
.step-head { display: flex; align-items: center; gap: 12px; }
.step-head .step-title { margin: 0; }
.optional-pill { padding: 4px 11px; color: #3d625b; background: var(--mint); border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.estimation-stage .step-caption { margin: 0 0 26px; font-size: 15px; }
.estimation-stage .form-intro { margin: 0 0 20px; font-size: 15px; }
.estimation-stage .question-block { margin: 26px 0; }
.estimation-stage .question-block > p { font-size: 15px; margin-bottom: 10px; }
.estimation-stage .estimation-form label, .estimation-stage label { font-size: 14px; }
.estimation-stage .choice-card { min-height: 112px; background: var(--white); border-radius: 15px; transition: border-color .15s, box-shadow .15s; }
.estimation-stage .choice-card:hover { border-color: #4a8872; }
.estimation-stage .choice-card strong { font-size: 15px; }
.estimation-stage .choice-icon { width: 54px; height: 54px; font-size: 30px; }
.estimation-stage .segmented { background: var(--white); }
.estimation-stage .segmented label { min-height: 56px; padding: 8px 6px; font-size: 13px; }
.estimation-stage .feature-box { min-height: 54px; background: var(--white); }
.estimation-stage .feature-box span { font-size: 14px; }
.estimation-stage .step-actions { margin-top: 32px; }
.estimation-stage .primary-button { min-height: 56px; font-size: 16px; }
.estimation-stage .estimation-form input:not([type="radio"]):not([type="checkbox"]), .estimation-stage .select-field select { min-height: 48px; }

/* Saisie sur une seule colonne : plus lisible que deux champs côte à côte. */
.estimation-stage .field-row,
.estimation-stage .field-row:has(> label:nth-child(3)),
.estimation-stage .quantity-grid { grid-template-columns: 1fr; gap: 0; }
.estimation-stage .stepper { max-width: 210px; }

.field-unit { color: var(--muted); font-weight: 600; }
.stepper { display: flex; align-items: stretch; overflow: hidden; background: var(--white); border: 1px solid #cfd8d4; border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.stepper:focus-within { border-color: #568d7a; box-shadow: 0 0 0 4px rgba(86,141,122,.12); }
.stepper button { display: grid; width: 54px; flex: none; place-items: center; color: var(--ink); background: var(--cream); border: 0; font-size: 22px; font-weight: 700; line-height: 1; transition: .15s; }
.stepper button:hover { color: var(--white); background: var(--coral); }
.stepper button:active { background: var(--coral-dark); }
.stepper input { min-height: 46px !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* La suite de l'étape se déplie : la hauteur est animée par la grille (0fr → 1fr),
   sinon le bloc apparaît d'un coup et pousse le bouton — ça se lit comme un bug.
   Courbe en S : départ lent, puis longue décélération, pour que l'œil suive le
   bouton qui descend au lieu de le voir sauter. Le texte suit en retrait. */
.reveal-group { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .8s cubic-bezier(.4,0,.2,1), opacity .5s ease .2s; }
.reveal-group > .reveal-inner { min-height: 0; overflow: hidden; }
.reveal-group.is-revealed { grid-template-rows: 1fr; opacity: 1; }
.reveal-group.no-transition { transition: none; }
.reveal-group[hidden] { display: none; }

.autofill-note { display: block; margin-top: 6px; color: #2f7a5f; font-size: 12px; font-weight: 650; }
.autofill-note[hidden] { display: none; }

.google-fill { margin: 4px 0 6px; }
.google-fill[hidden] { display: none; }
.google-button-slot { display: flex; min-height: 44px; }
.google-fill-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.fill-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 2px; color: var(--muted-strong); font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.fill-divider::before, .fill-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.google-account { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; padding: 12px 14px; border: 1px solid #cfe5d9; border-radius: 14px; background: #f2f9f5; }
.google-account[hidden] { display: none; }
.google-account-check { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #2f7a5f; color: #fff; font-size: 14px; font-weight: 700; }
.google-account-id { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.google-account-id small { color: #2f7a5f; font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.google-account-id strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.google-account-switch { flex: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted-strong); cursor: pointer; font: inherit; font-size: 12px; font-weight: 650; }
.google-account-switch:hover { border-color: var(--muted-strong); color: var(--ink-deep); }
input.is-locked { background: #f6f7f9; color: var(--muted-strong); cursor: not-allowed; }
.estimation-stage .success-step { padding: 70px 0 40px; }
.estimation-stage .success-icon { width: 66px; height: 66px; margin-bottom: 20px; font-size: 30px; }
.estimation-stage .success-step .step-title { margin-bottom: 8px; font-size: 30px; letter-spacing: -1px; }
.estimation-stage .success-step p { max-width: 460px; margin: 0 auto 28px; color: var(--muted); font-size: 16px; }
.estimation-stage .success-step .primary-button { display: inline-flex; width: auto; padding-inline: 28px; }

@media (min-width: 1001px) {
  .stage-address-chip { display: none; }
}

@media (max-width: 1000px) {
  .stage-layout { display: block; width: min(720px, calc(100% - 40px)); }
  .stage-rail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .form-step, .reveal-group, .estimation-stage.is-closing { animation: none; }
  /* Mouvement réduit, pas supprimé : sans transition, les boutons situés sous le
     bloc sautaient de 372 px en une image — plus désorientant que le dépliage
     lui-même. On garde donc l'ouverture, courte et sans emphase. */
  .reveal-group { transition: grid-template-rows .4s ease, opacity .45s ease; }
  /* Entrée en simple fondu, sans mouvement. */
  .estimation-stage:not([hidden]) { animation: stage-fade-simple .4s ease both; }
  .estimation-stage:not([hidden]) .stage-top, .estimation-stage:not([hidden]) .stage-body { animation: none; }
  .emb-progress-bar { transition: none; }
  .local-map { transform: scale(1.16); transition: none; }
}
@keyframes stage-fade-simple { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .hero { padding-top: 55px; }
  .hero-grid, .local-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .eyebrow:not(.left) { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .trust-list { justify-content: center; }
  .hero h1 { letter-spacing: -3px; }
  .proof-grid { grid-template-columns: repeat(2,1fr); gap: 25px 0; }
  .proof-grid div:nth-child(2) { border-right: 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article { min-height: auto; }
}

@media (max-width: 600px) {
  body.admin-bar .site-header { top: 46px; }
  .shell { width: min(calc(100% - 28px), 1160px); }
  .header-inner { height: 67px; }
  .header-cta { display: none; }
  .hero { padding: 42px 0 55px; }
  .hero h1 { font-size: 40px; letter-spacing: -2.2px; overflow-wrap: anywhere; }
  .hero-lead { font-size: 16px; }
  .trust-list { align-items: flex-start; flex-direction: column; }
  .estimator-card { padding: 23px 18px; border-radius: 21px; }
  .card-head { align-items: flex-start; }
  .field-row, .field-row:has(> label:nth-child(3)) { grid-template-columns: 1fr; gap: 0; }
  .choice-grid-three { grid-template-columns: repeat(2,1fr); }
  .feature-grid, .quantity-grid { grid-template-columns: 1fr; }
  .segmented { grid-template-columns: 1fr; border: 0; gap: 7px; }
  .segmented.three { grid-template-columns: repeat(3,1fr); border: 1px solid #d6ddda; gap: 0; }
  .segmented:not(.three) label { min-height: 40px; border: 1px solid #d6ddda; border-radius: 8px; }
  .check-grid { grid-template-columns: repeat(2,1fr); }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid div { padding-inline: 8px; }
  .section { padding: 74px 0; }
  .section-title { font-size: 38px; letter-spacing: -1.5px; }
  .steps-grid article { padding: 28px; }
  .local-card { min-height: 0; }
  /* Sous 700 px, la baseline ferait déborder l'en-tête : le titre de la page
     et le H1 portent déjà la requête, elle n'est pas nécessaire ici. */
  .brand-baseline { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 33px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .stage-top-inner { height: 58px; }
  .stage-brand { display: none; }
  .stage-address-chip { max-width: 72%; }
  .stage-close { width: 38px; height: 38px; }
  .stage-body { padding: 26px 0 60px; }
  .stage-layout { width: calc(100% - 32px); }
  .stage-meta { margin-bottom: 20px; font-size: 10px; letter-spacing: 1.1px; }
  .estimation-stage .form-step .step-title, .estimation-stage .form-step legend { font-size: 24px; }
  .estimation-stage .choice-card { min-height: 94px; }
  .estimation-stage .step-caption { margin-bottom: 20px; font-size: 14px; }
  .stepper button { width: 48px; }
}
