/* =====================================================================
   L'IMMO - ACHAT VENTE : couche graphique commune
   Menu complet (barre + menu plein écran), loader de chargement,
   fondu entre les pages et formulaires (+ code de sécurité).
   Mécanique reprise du site Chris à Vélo, charte L'Immo :
   fond blanc, gris #58595B, vert #8DC63F.
   ===================================================================== */

/* Police : Golos Text variable (400 à 900), hébergée sur le site, licence SIL OFL (fonts/golos-text/OFL.txt) */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/golos-text/golos-text-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/golos-text/golos-text-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --gris: #58595B;
  --gris-900: #3F4042;
  --gris-700: #4C4D4F;
  --gris-300: #B9BABB;
  --gris-100: #F2F2F2;
  --gris-50: #F8F8F7;
  --vert: #8DC63F;
  --vert-600: #76AC2C;
  --vert-100: #EEF6E2;
  --blanc: #FFFFFF;
  --erreur: #C4452B;
  --ligne: rgba(88, 89, 91, .14);
  --ligne-claire: rgba(255, 255, 255, .18);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Police du site (tout le texte passe par cette variable) */
  /* Golos Text pour le texte ; les émojis basculent sur une police couleur (Noto Color Emoji auto-hébergée, comme Funly) */
  --police: "Golos Text", "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Emoji", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 3.2vw, 48px);
  --radius: clamp(14px, 1.6vw, 22px);
  --hdr-h: 76px;
}

html.is-loading { overflow: hidden; }
body.body { background: var(--blanc); }
::selection { background: var(--vert); color: var(--blanc); }
/* Le menu est fixe : le contenu commence sous lui */
#wrapper { padding-top: calc(var(--hdr-h) + env(safe-area-inset-top, 0px)); }

/* ---------------------------------------------------------- Boutons */
.btn-pill {
  --bg: var(--vert); --fg: var(--blanc);
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  height: 46px; padding: 0 8px 0 22px;
  border-radius: 99px; border: 0;
  background: var(--bg); color: var(--fg);
  font-family: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  user-select: none; -webkit-user-select: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.btn-pill:hover, .btn-pill:focus { color: var(--fg); }
.btn-pill:active { transform: scale(.97); }
.btn-gris { --bg: var(--gris); --fg: var(--blanc); }
.btn-blanc { --bg: var(--blanc); --fg: var(--gris); }
.btn-plus {
  position: relative; width: 32px; height: 32px; flex: none;
  border-radius: 50%;
  background: var(--fg);
  transition: transform 300ms var(--ease-out);
}
.btn-plus::before, .btn-plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 40%; height: 2px; background: var(--bg); border-radius: 2px;
  transform: translate(-50%, -50%);
}
.btn-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
/* Bouton « Retour à la recherche » (fiche d'un bien) : même pilule verte, flèche dans un rond blanc à gauche */
.l-retour { padding: 0 24px 0 8px; margin-bottom: 28px; }
.btn-fleche {
  width: 32px; height: 32px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--fg); color: var(--bg);
  transition: transform 300ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .l-retour:hover .btn-fleche { transform: translateX(-4px); }
}
@media (max-width: 575px) {
  .l-retour { height: 42px; margin-bottom: 20px; font-size: .72rem; }
}

/* Texte qui défile au survol */
.btn-marquee-txt { position: relative; display: block; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
  .btn-pill:hover .btn-plus { transform: rotate(90deg); }
  .btn-marquee:hover .btn-marquee-txt { color: transparent; }
  .btn-marquee:hover .btn-marquee-txt::after {
    content: attr(data-text) "\00a0\00a0✦\00a0\00a0" attr(data-text) "\00a0\00a0✦\00a0\00a0" attr(data-text) "\00a0\00a0✦\00a0\00a0";
    position: absolute; left: 0; top: 0;
    color: var(--fg);
    white-space: nowrap;
    animation: btn-defile 3.2s linear infinite;
  }
}
@keyframes btn-defile { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }

/* ---------------------------------------------------------- Loader */
.loader {
  position: fixed; inset: 0; z-index: 100000;
  display: grid; place-items: center;
  background: var(--blanc);
  will-change: transform;
}
html:not(.js) .loader { display: none; }
.loader-stage {
  width: min(64vw, 380px);
  transition: transform 500ms var(--ease-out), opacity 300ms ease;
}
.loader-stage svg { display: block; width: 100%; height: auto; overflow: visible; }
.loader-stage .lg-part { transform-box: fill-box; }

/* 1re page de la visite : la maison se construit, puis le nom apparaît */
.loader .lg-b1, .loader .lg-b2 { transform-origin: 50% 100%; animation: lg-monte 700ms var(--ease-out) both; }
.loader .lg-b1 { animation-delay: 150ms; }
.loader .lg-b2 { animation-delay: 320ms; }
.loader .lg-toit { transform-origin: 0 0; animation: lg-toit 800ms var(--ease-out) 520ms both; }
.loader .lg-fen { transform-origin: 50% 50%; animation: lg-fen 420ms var(--ease-out) both; }
.loader .lg-fen:nth-child(1) { animation-delay: 900ms; }
.loader .lg-fen:nth-child(2) { animation-delay: 960ms; }
.loader .lg-fen:nth-child(3) { animation-delay: 1020ms; }
.loader .lg-fen:nth-child(4) { animation-delay: 1080ms; }
.loader .lg-nom { animation: lg-nom 900ms var(--ease-in-out) 1050ms both; }
.loader .lg-sous { animation: lg-nom 900ms var(--ease-in-out) 1300ms both; }
.loader .lg-apo { transform-origin: 50% 100%; animation: lg-apo 600ms var(--ease-out) 1700ms both; }
@keyframes lg-monte { from { transform: translateY(40%) scaleY(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lg-toit { from { transform: translate(-18%, -26%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lg-fen { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lg-nom { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes lg-apo { from { transform: translateY(-60%); opacity: 0; } to { transform: none; opacity: 1; } }

.loader-bar {
  position: absolute; left: 50%; bottom: max(9svh, 40px);
  width: min(220px, 50vw); height: 3px; transform: translateX(-50%);
  background: var(--gris-100); border-radius: 3px; overflow: hidden;
  transition: opacity 300ms ease;
}
.loader-bar span {
  position: absolute; inset: 0; background: var(--vert);
  transform-origin: left; transform: scaleX(0);
  animation: charge 2.4s var(--ease-out) forwards;
}
.loader.is-done .loader-bar span { animation: none; transform: scaleX(1); transition: transform 300ms var(--ease-out); }
@keyframes charge { to { transform: scaleX(.88); } }

/* Sortie (1re page) : le logo s'éloigne, le panneau se lève */
.loader.is-done .loader-stage { transform: translateY(-24px) scale(.98); opacity: 0; transition-delay: 150ms; }
.loader.is-done .loader-bar { opacity: 0; }
.loader.is-done { transform: translateY(-101%); transition: transform 900ms var(--ease-in-out) 450ms; }

/* ---------------------------------------------------------- Passage d'une page à l'autre : fondu simple
   1re page de la visite : le grand loader ci-dessus. Pages suivantes : pas de loader,
   la page quittée s'efface et la nouvelle apparaît en fondu flou (classe deja-vu, voir inc-head.php). */
html.js.deja-vu #wrapper { opacity: 0; transition: opacity 600ms ease; }
html.js.deja-vu.is-ready #wrapper { opacity: 1; }
html.is-leaving #wrapper { opacity: 0 !important; transition: opacity 450ms ease; }
/* Flou pendant le fondu (le menu fixe n'est pas flouté : un filtre le décalerait) */
html.js.deja-vu #pagee > :not(.hdr):not(.mnav) { filter: blur(12px); transition: filter 700ms ease; }
html.js.deja-vu.is-ready #pagee > :not(.hdr):not(.mnav) { filter: none; }
html.is-leaving #pagee > :not(.hdr):not(.mnav) { filter: blur(12px) !important; transition: filter 450ms ease; }
@media (prefers-reduced-motion: reduce) {
  html.js.deja-vu #pagee > :not(.hdr):not(.mnav) { filter: none; transition: none; }
}

/* ---------------------------------------------------------- Header */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 9000;
  height: calc(var(--hdr-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  color: var(--gris);
  font-family: var(--police, "Manrope", sans-serif);
  transition: color 300ms ease, transform 400ms var(--ease-out);
}
.hdr::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--blanc);
  transition: box-shadow 300ms ease;
}
.hdr.is-solid::after { box-shadow: 0 1px 0 var(--ligne), 0 10px 30px -18px rgba(63, 64, 66, .35); }
.hdr.is-hidden { transform: translateY(-100%); }
html.menu-open .hdr { color: var(--blanc); transform: none; }
html.menu-open .hdr::after { background: var(--gris); box-shadow: none; }   /* fond gris : les liens du menu ne passent plus sous le logo en défilant */
html.menu-open .hdr-logo .lg-gris { fill: var(--blanc); }
html.menu-open .hdr-logo .lg-fen { fill: var(--gris-900); }

.hdr a { text-decoration: none; }
.hdr-logo { display: block; width: clamp(150px, 13vw, 200px); justify-self: start; }
.hdr-logo svg { display: block; width: 100%; height: auto; }
.hdr-logo .lg-gris, .hdr-logo .lg-fen { transition: fill 300ms ease; }

.hdr-nav { display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 28px); list-style: none; margin: 0; padding: 0; }
.hdr-item { position: relative; display: flex; align-items: center; gap: 2px; }
.hdr-link {
  position: relative; font-size: .9rem; font-weight: 700; padding: 6px 0; color: inherit;
}
.hdr-link:hover, .hdr-link:focus { color: inherit; }
.hdr-link { white-space: nowrap; }   /* titres du menu toujours sur une ligne (menu hamburger sous 1280 px) */
.hdr-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--vert); transform: scaleX(0); transform-origin: right;
  transition: transform 300ms var(--ease-out);
}
.hdr-link.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .hdr-link:hover::after { transform: scaleX(1); transform-origin: left; }
}
.sub-toggle { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
.sub-toggle svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 200ms var(--ease-out); }
.hdr-item.is-open .sub-toggle svg { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 12px); left: -18px; min-width: 290px;
  list-style: none; margin: 0; padding: 10px;
  background: var(--blanc); color: var(--gris);
  border-radius: 18px; box-shadow: 0 24px 50px -20px rgba(63, 64, 66, .45), 0 0 0 1px var(--ligne);
  transform-origin: 30px 0;
  opacity: 0; transform: scale(.97) translateY(-4px); visibility: hidden;
  transition: opacity 150ms ease, transform 200ms var(--ease-out), visibility 0s linear 200ms;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* pont de survol */
.hdr-item.is-open > .sub { opacity: 1; transform: none; visibility: visible; transition: opacity 150ms ease, transform 200ms var(--ease-out); }
.sub a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; color: var(--gris); transition: background-color 150ms ease, color 150ms ease; }
.sub a img { width: 26px; height: 26px; flex: none; }
.sub a span { font-weight: 700; font-size: .92rem; }
.sub a small { display: block; font-size: .74rem; font-weight: 600; opacity: .65; }
.sub a[aria-current="page"] { background: var(--vert-100); }
.sub .sub-tous { margin-top: 4px; border-top: 1px solid var(--ligne); padding-top: 4px; }
.sub .sub-tous a { color: var(--vert-600); }
@media (hover: hover) and (pointer: fine) { .sub a:hover { background: var(--gris-50); color: var(--gris); } }

.hdr-right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.hdr-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: inherit; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.hdr-icon:hover { color: inherit; background: var(--gris-50); }
.hdr-icon:active { transform: scale(.94); }
.hdr-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html.menu-open .hdr .btn-pill { --bg: var(--blanc); --fg: var(--gris); }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }
.burger span {
  position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 300ms var(--ease-out), opacity 200ms ease;
}
/* 3 barres ; à l'ouverture, celles du haut et du bas forment une croix et celle du milieu s'efface */
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
html.menu-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
html.menu-open .burger span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
html.menu-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Menu plein écran (mobile / tablette) */
.mnav {
  position: fixed; inset: 0; z-index: 8990;
  background: var(--gris); color: var(--blanc);
  font-family: var(--police, "Manrope", sans-serif);
  padding: calc(var(--hdr-h) + env(safe-area-inset-top, 0px) + 24px) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 600ms var(--ease-drawer), visibility 0s linear 600ms;
  overscroll-behavior: contain; overflow-y: auto;
}
html.menu-open .mnav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 600ms var(--ease-drawer); }
.mnav a { color: inherit; text-decoration: none; }
.mnav-links { display: flex; flex-direction: column; gap: 14px; }   /* titres 01, 02, 03… un peu plus espacés (avant : 4px) */
.mnav-group { opacity: 0; transform: translateY(24px); transition: opacity 300ms ease, transform 500ms var(--ease-out); }
html.menu-open .mnav-group { opacity: 1; transform: none; transition-delay: calc(150ms + var(--i) * 60ms); }
.mnav-link {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(1.45rem, 6vw, 2.6rem); font-weight: 700;   /* titres des pages un peu plus petits (avant : 1.8rem → 3.2rem) */ letter-spacing: -.03em; line-height: 1.15;
}
.mnav-link.is-active .mnav-label { color: var(--vert); }
.mnav-num { font-size: .8rem; font-weight: 700; color: var(--vert); letter-spacing: .1em; }
.mnav-sub { list-style: none; margin: 4px 0 12px 34px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.mnav-sub a { font-size: .98rem; font-weight: 600; opacity: .8; }
.mnav-foot {
  display: grid; grid-template-columns: 1fr auto; gap: 22px 18px; align-items: end; margin-top: 36px;
  font-weight: 600;
  opacity: 0; transform: translateY(16px); transition: opacity 300ms ease, transform 500ms var(--ease-out);
}
html.menu-open .mnav-foot { opacity: 1; transform: none; transition-delay: 420ms; }
.mnav-cta { grid-column: 1 / -1; justify-self: start; height: 54px; }
.mnav-contact, .mnav-social { display: flex; flex-direction: column; gap: 4px; }
.mnav-contact .l-label { opacity: .6; margin-bottom: 4px; }
.mnav-contact .mnav-tel { display: inline-flex; align-items: center; gap: 8px; }
.mnav-contact .mnav-tel svg { flex: none; color: var(--vert); }
.mnav-social { align-items: flex-end; }
@media (min-width: 1280px) { .mnav { display: none; } }
/* Flèche « faire défiler » en bas du menu (comme le menu du Groupe Henry) :
   apparaît quand il reste des liens plus bas, disparaît une fois en bas du menu */
.mnav-defil {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2;
  height: calc(76px + env(safe-area-inset-bottom, 0px));
  padding: 0 var(--gutter) env(safe-area-inset-bottom, 0px);
  display: flex; align-items: center; justify-content: flex-end;
  border: 0; cursor: pointer; color: var(--vert);
  background: linear-gradient(180deg, rgba(88, 89, 91, 0) 0%, var(--gris) 62%);
  opacity: 0; pointer-events: none;
  transition: opacity 500ms ease;
}
.mnav-defil.is-visible { opacity: 1; pointer-events: auto; }
.mnav-defil svg { fill: currentColor; animation: mnav-pulse 1s infinite; }
@keyframes mnav-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.6); }
}
@media (prefers-reduced-motion: reduce) { .mnav-defil svg { animation: none; } }

.l-label { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* ---- Responsive header ---- */
@media (min-width: 1280px) {
  :root { --hdr-h: 92px; }
  .hdr-logo { width: clamp(180px, 13vw, 220px); }
  .nav-list { gap: clamp(14px, 1.4vw, 40px); }   /* un peu plus serré : 6 liens dans le menu */
  .hdr-link { font-size: clamp(.98rem, .72rem + .35vw, 1.08rem); padding: 8px 0; }
  .sub-toggle { width: 30px; height: 30px; }
  .sub-toggle svg { width: 12px; height: 12px; }
  .hdr .btn-pill { height: 52px; padding: 0 9px 0 26px; font-size: .84rem; gap: 16px; }
  .hdr .btn-plus { width: 36px; height: 36px; }
}
@media (min-width: 1280px) and (max-width: 1540px) {   /* bouton Contact rond : le menu a 6 liens */
  .hdr .btn-marquee-txt { display: none; }
  .hdr .btn-pill { padding: 0 8px; }
}
@media (max-width: 1279px) {
  .hdr-nav, .hdr-icon { display: none; }
  .burger { display: block; }
  .hdr { grid-template-columns: auto 1fr; }
  .hdr-logo { width: 178px; }   /* logo un peu plus grand en responsive (avant : 150px), même hauteur de bande */
}
@media (max-width: 860px) {
  :root { --hdr-h: 66px; }
  .hdr .btn-pill { height: 40px; padding: 0 6px 0 16px; font-size: .68rem; gap: 10px; }
  .hdr .btn-plus { width: 28px; height: 28px; }
}
@media (max-width: 600px) {
  .hdr { gap: 10px; }
  .hdr .btn-pill .btn-marquee-txt { display: none; }
  .hdr .btn-pill { padding: 0 6px; }
}

/* ---------------------------------------------------------- Formulaires */
.l-form {
  font-family: var(--police, "Manrope", sans-serif); color: var(--gris);
  background: var(--gris-50); border-radius: calc(var(--radius) * 1.2);
  padding: clamp(22px, 3.2vw, 46px); border: 1px solid var(--ligne);
}
.l-form .fs { border: 0; padding: 0; margin: 0 0 clamp(26px, 3.4vw, 40px); min-width: 0; }
.l-form .fs legend { display: flex; align-items: baseline; gap: 12px; padding: 0; margin-bottom: 18px; float: none; width: auto; font-size: clamp(1.2rem, 1rem + .7vw, 1.5rem); font-weight: 800; letter-spacing: -.02em; color: var(--gris); }
.l-form .fs legend span {
  display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: 50%; background: var(--vert); color: var(--blanc); font-size: .95rem;
}
.l-form .fs-help { font-size: .86rem; font-weight: 600; opacity: .75; margin: -8px 0 14px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > label, .field .flabel { font-size: .82rem; font-weight: 700; margin: 0; color: var(--gris); }
.req { color: var(--vert-600); }
.l-form .field input, .l-form .field select, .l-form .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; margin: 0;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--gris);
  background: var(--blanc); border: 1.5px solid rgba(88, 89, 91, .2); border-radius: 14px;
  box-shadow: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  -webkit-appearance: none; appearance: none;
}
.l-form .field select { background: var(--blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2358595B' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 16px center / 12px; padding-right: 40px; }
.l-form .field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.l-form .field input::placeholder, .l-form .field textarea::placeholder { color: rgba(88, 89, 91, .5); font-weight: 500; }
.l-form .field input:focus, .l-form .field select:focus, .l-form .field textarea:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 4px rgba(141, 198, 63, .18); }
.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: var(--erreur) !important; }
.field-err { font-size: .78rem; font-weight: 700; color: var(--erreur); }
.field-err:empty { display: none; }

/* Choix en pastilles (radio) */
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; margin: 0; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 99px;
  border: 1.5px solid rgba(88, 89, 91, .2); background: var(--blanc); font-weight: 700; font-size: .9rem; color: var(--gris);
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
  user-select: none; -webkit-user-select: none;
}
.choice input:checked + span { background: var(--vert); color: var(--blanc); border-color: var(--vert); }
.choice input:focus-visible + span { outline: 2px solid var(--gris); outline-offset: 2px; }
.choice:active span { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .choice:hover input:not(:checked) + span { border-color: var(--vert); } }

/* Code de sécurité */
.captcha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha img { width: 200px; height: 64px; border-radius: 12px; border: 1.5px solid rgba(88, 89, 91, .16); background: var(--blanc); user-select: none; -webkit-user-select: none; }
.captcha button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(88, 89, 91, .22); background: var(--blanc); color: var(--gris); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: transform 300ms var(--ease-out), border-color 200ms ease; }
.captcha button:hover { border-color: var(--vert); }
.captcha button:active { transform: rotate(-90deg) scale(.95); }
.l-form .field .captcha input { flex: 1 1 200px; max-width: 260px; text-transform: lowercase; }
.l-form .field .captcha input:not(:placeholder-shown) { letter-spacing: .3em; }
.l-form .field .captcha input::placeholder { letter-spacing: normal; text-transform: none; }

/* Case à cocher ronde */
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; font-weight: 600; cursor: pointer; margin: 0; color: var(--gris); }
.check a { color: var(--vert-600); text-decoration: underline; }
.l-form .field .check input[type="checkbox"] {
  -webkit-appearance: none; appearance: none;
  flex: none; width: 26px; height: 26px; min-height: 0; margin: -2px 0 0; padding: 0;
  border-radius: 50%; border: 2px solid rgba(88, 89, 91, .4); background: var(--blanc);
  display: grid; place-content: center; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms var(--ease-out);
}
.l-form .field .check input[type="checkbox"]::before {
  content: ""; width: 7px; height: 12px; margin-top: -3px;
  border: solid var(--blanc); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0);
  transition: transform 180ms var(--ease-out);
}
.l-form .field .check input[type="checkbox"]:checked { background: var(--vert); border-color: var(--vert); }
.l-form .field .check input[type="checkbox"]:checked::before { transform: rotate(45deg) scale(1); }
.l-form .field .check input[type="checkbox"]:active { transform: scale(.92); }
.l-form .field .check input[type="checkbox"]:focus-visible { outline: 2px solid var(--gris); outline-offset: 3px; }
.field.is-error .check input[type="checkbox"] { border-color: var(--erreur) !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.form-submit .btn-pill { height: 58px; padding-left: 28px; font-size: .84rem; }
.form-submit .btn-pill[disabled] { opacity: .7; cursor: progress; }
.form-submit .btn-pill.is-loading .btn-plus { animation: tourne .8s linear infinite; }
.form-submit .btn-pill.is-loading .btn-plus::after { opacity: 0; }
@keyframes tourne { to { transform: rotate(360deg); } }
.form-msg { font-weight: 700; font-size: .9rem; margin: 0; }
.form-msg.is-error { color: var(--erreur); }
.form-note { margin: 14px 0 0; font-size: .78rem; opacity: .7; font-weight: 600; }

.merci { display: none; text-align: center; padding: clamp(30px, 5vw, 60px) 10px; font-family: var(--police, "Manrope", sans-serif); color: var(--gris); }
.form-wrap.is-sent .l-form { display: none; }
.form-wrap.is-sent .merci { display: block; animation: monte 600ms var(--ease-out) both; }
@keyframes monte { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.merci h2, .merci .merci-titre { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin: 26px auto 18px !important; color: var(--gris); }
.merci h2 em, .merci .merci-titre em { font-style: normal; color: var(--vert); }
.merci p { max-width: 30em; margin: 0 auto; font-weight: 600; line-height: 1.7; }
.merci-icone { display: block; width: min(40vw, 150px); height: auto; margin: 0 auto; animation: flotte 2.4s var(--ease-in-out) infinite alternate; }
@keyframes flotte { from { transform: translateY(-6px); } to { transform: translateY(6px); } }

/* Version compacte (colonne latérale d'une fiche bien) */
.l-form.is-compact { padding: 22px; background: var(--blanc); }
.l-form.is-compact .f-row { grid-template-columns: 1fr; gap: 0; }
.l-form.is-compact .captcha img { width: 170px; height: 54px; }
.l-form.is-compact .captcha input { flex-basis: 100%; max-width: none; }
.l-form.is-compact .form-submit .btn-pill { width: 100%; justify-content: space-between; }

@media (max-width: 600px) {
  .f-row { grid-template-columns: 1fr; gap: 0; }
  .form-submit .btn-pill { width: 100%; justify-content: space-between; }
}

/* ---------------------------------------------------------- Cartes des biens (accueil, liste des biens)
   Sous la photo : fond vert, textes blancs, icônes gris foncé */
.homelengo-box { border-color: var(--vert); }
.homelengo-box .archive-bottom { background: var(--vert); color: var(--blanc); }
.homelengo-box .archive-bottom h6,
.homelengo-box .archive-bottom .link,
.homelengo-box .archive-bottom .text-variant-1,
.homelengo-box .archive-bottom .fw-6,
.homelengo-box .archive-bottom .price,
.homelengo-box .archive-bottom .content-bottom span { color: var(--blanc); }
.homelengo-box .archive-bottom .link:hover { color: var(--gris-900) !important; }   /* le gabarit passe les liens en vert au survol */
.homelengo-box .content-top .meta-list .item .icon { color: var(--gris-900); }
.homelengo-box .content-top { border-bottom-color: rgba(255, 255, 255, .35); }
/* Petit logo de l'agence : pastille blanche pour que le toit vert reste visible */
.homelengo-box .archive-bottom .avatar { background: var(--blanc); padding: 8px; }
/* Titre : premier mot en majuscule (PHP), toujours 2 lignes réservées et « … » au-delà :
   toutes les cartes ont la même hauteur */
.homelengo-box .archive-bottom .content-top h6 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.4;
  min-height: 2.8em;
}
.homelengo-box .archive-bottom .content-top h6 a { display: inline; }
/* Titre remonté : moins d'espace au-dessus (20 → 14 px), un peu plus en dessous (12 → 18 px) */
.homelengo-box .archive-bottom { padding-top: 14px; }
.homelengo-box .archive-bottom .content-top .meta-list { margin-top: 18px; }   /* le gabarit le met en inline-block : les « … » ne marcheraient pas */
/* Étiquette PEB : en haut à droite de la photo, sur une pastille blanche */
.homelengo-box .images-group .top .l-peb {
  margin-left: auto;
  flex-shrink: 0;
  background: var(--blanc);
  border-radius: 6px;
  padding: 4px 6px;
  line-height: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.homelengo-box .images-group .top .l-peb img { width: 78px; height: auto; }

/* ---------------------------------------------------------- En-tête des pages intérieures (lib/entete.php)
   Sans photo : dégradé très clair, cercles vert pâle qui « respirent » (adaptés de
   codepen.io/brunopereiradonascimento/pen/ZjLNmO) et maison du logo en décor */
.l-entete {
  /* Place de la maison (partagée avec les cercles, centrés sur elle) */
  --deco-w: clamp(220px, 27vw, 430px); --deco-d: clamp(-30px, 3vw, 70px); --deco-b: -14%;
  position: relative; overflow: hidden; isolation: isolate;
  margin: clamp(14px, 1.6vw, 24px) var(--gutter) 0;
  padding: clamp(54px, 7vw, 110px) clamp(24px, 6vw, 96px) clamp(54px, 6.5vw, 100px);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gris-50) 0%, var(--vert-100) 100%);
  font-family: var(--police);
}
.l-entete-contenu { position: relative; z-index: 2; max-width: min(760px, 64%); }

/* Cercles : centrés sur le bord droit, du plus petit (le plus visible) au plus grand */
.l-entete-ondes {
  --base: clamp(150px, 19vw, 300px);
  position: absolute; z-index: 0; width: 0; height: 0;
  /* centre des cercles = centre de la maison (viewBox 155 × 172 : hauteur ≈ 1,11 × largeur) */
  right: calc(var(--deco-d) + var(--deco-w) / 2);
  bottom: calc(var(--deco-b) + var(--deco-w) * .555);
}
.l-entete-ondes span {
  position: absolute; left: 0; top: 0;
  width: calc(var(--base) * var(--n)); height: calc(var(--base) * var(--n));
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--vert);
  opacity: var(--o);
  animation: l-onde 3s cubic-bezier(.6, 0, .4, 1) var(--d) infinite alternate;
}
.l-entete-ondes span:nth-child(1) { --n: 1; --o: .16; --d: 0s; }
.l-entete-ondes span:nth-child(2) { --n: 2; --o: .12; --d: .3s; }
.l-entete-ondes span:nth-child(3) { --n: 3; --o: .09; --d: .6s; }
.l-entete-ondes span:nth-child(4) { --n: 4; --o: .06; --d: .9s; }
.l-entete-ondes span:nth-child(5) { --n: 5; --o: .04; --d: 1.2s; }
@keyframes l-onde { from { scale: 1; } to { scale: 1.1; } }

.l-entete-deco {
  position: absolute; z-index: 1;
  right: var(--deco-d); bottom: var(--deco-b);
  width: var(--deco-w);
  filter: drop-shadow(0 30px 50px rgba(63, 64, 66, .14));
}
.l-entete-deco svg { display: block; width: 100%; height: auto; }
.l-entete-deco .lg-gris { fill: var(--blanc); }
.l-entete-deco .lg-toit { fill: var(--vert); }
.l-entete-deco .lg-fen { fill: var(--vert-100); }
/* Arrivée en douceur une fois le loader parti */
html.js .l-entete-deco { opacity: 0; transform: translateY(40px); transition: opacity .8s ease .15s, transform 1.2s var(--ease-out) .15s; }
html.js.is-ready .l-entete-deco { opacity: 1; transform: none; }

.l-entete-ariane ol {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  margin: 0 0 clamp(26px, 3vw, 40px); padding: 7px 16px; list-style: none;
  border-radius: 99px; background: rgba(255, 255, 255, .75);
  font-size: .84rem; color: var(--gris);
}
.l-entete-ariane li { display: inline-flex; align-items: center; gap: 10px; }
.l-entete-ariane li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--vert); }
.l-entete-ariane a { color: var(--gris); text-decoration: none; }
.l-entete-ariane a:hover { color: var(--vert-600); }
.l-entete-ariane [aria-current] { font-weight: 600; color: var(--gris-900); }
.l-entete-sur {
  display: flex; align-items: center; gap: 14px; margin: 0 0 14px;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--vert-600);
}
.l-entete-sur::before { content: ""; width: 34px; height: 2px; background: var(--vert); flex: none; }
.l-entete-titre {
  margin: 0;
  font-size: clamp(2.8rem, 2rem + 4vw, 5.8rem); font-weight: 600; line-height: 1; letter-spacing: -.035em;
  color: var(--gris-900);
}
.l-entete-titre span { color: var(--vert); }
.l-entete-texte { max-width: 560px; margin: 20px 0 0; font-size: clamp(1rem, .95rem + .25vw, 1.15rem); line-height: 1.65; color: var(--gris); }

@media (max-width: 767px) {
  .l-entete-contenu { max-width: 100%; }
  .l-entete-titre { font-size: clamp(2rem, 9vw, 2.8rem); }
  .l-entete-sur { font-size: .7rem; letter-spacing: .1em; gap: 10px; }
  .l-entete-sur::before { width: 22px; }
  .l-entete-ondes { --base: 110px; }
  .l-entete { --deco-w: 150px; --deco-d: -24px; --deco-b: -26px; }
  .l-entete-deco { opacity: .55; }
  html.js.is-ready .l-entete-deco { opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
  .l-entete-ondes span { animation: none; }
  html.js .l-entete-deco { transition: none; transform: none; }
}

/* ---------------------------------------------------------- Fiche d'un bien : icônes des caractéristiques et superficies dans des ronds verts
   (le gabarit impose des carrés arrondis avec bordure grise) */
.box-icon.boxgreenk { border-radius: 50% !important; border: 0 !important; }
.single-property-overview .info-box .item .box-icon { flex-shrink: 0; }
/* sur mobile : un rond vert (une caractéristique) par ligne */
@media (max-width: 767px) {
  .single-property-overview .info-box { flex-direction: column; row-gap: 18px; }
  .single-property-overview .info-box .item { width: 100%; min-width: 0; }
}

/* ---------------------------------------------------------- FAQ : titres de rubrique en H2, même taille que l'ancien H3 du gabarit */
.tf-faq h2.title { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.25rem); line-height: 1.2; }

/* ---------------------------------------------------------- Page contact : introduction du formulaire */
.l-contact-intro { margin-bottom: clamp(30px, 4vw, 48px); font-family: var(--police); color: var(--gris); }
.l-contact-sur {
  display: flex; align-items: center; gap: 14px; margin: 0 0 14px;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--vert-600);
}
.l-contact-sur::before { content: ""; width: 34px; height: 2px; background: var(--vert); flex: none; }
.l-contact-titre {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); font-weight: 600; line-height: 1.1; letter-spacing: -.02em;
  color: var(--gris-900);
}
.l-contact-texte { margin: 0; font-size: clamp(1rem, .95rem + .2vw, 1.1rem); line-height: 1.7; color: var(--gris); }
.l-contact-atouts {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none;
}
.l-contact-atouts li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 12px; border-radius: 99px;
  background: var(--vert-100); color: var(--gris-900);
  font-size: .9rem; font-weight: 500;
}
.l-contact-atouts li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.l-contact-tel { margin: 18px 0 0; font-size: .98rem; color: var(--gris); }
.l-contact-tel a { font-weight: 700; color: var(--gris-900); text-decoration: none; border-bottom: 2px solid var(--vert); }
.l-contact-tel a:hover { color: var(--vert-600); }

/* ---------------------------------------------------------- Pied de page (footer.php)
   1. présentation sur fond vert · 2. liens sur gris foncé · 3. copyright sur noir
   Écriture fine (graisse 400, la plus légère de Golos Text) et légèrement espacée */
.pied { font-family: var(--police); font-weight: 400; letter-spacing: .02em; }
.pied p, .pied ul { margin: 0; padding: 0; }
.pied ul { list-style: none; }
.pied a { text-decoration: none; transition: color 200ms ease; }
.pied-cadre { max-width: 1579px; margin: 0 auto; padding: 0 var(--gutter); }

/* 1. Présentation */
.pied-intro { position: relative; overflow: hidden; isolation: isolate; background: var(--vert); color: var(--blanc); padding: clamp(44px, 5vw, 70px) 0; }
.pied-intro .pied-cadre { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(28px, 5vw, 80px); }
.pied-logo { position: relative; display: block; width: clamp(96px, 8.5vw, 136px); }   /* la maison seule, en grand */
.pied-logo svg { position: relative; z-index: 1; top: -8px; display: block; width: 100%; height: auto; }   /* remontée de 8 px : la maison paraît bien centrée dans le rond blanc */
.pied-accroche { position: relative; z-index: 1; }
/* Cercles qui « respirent » autour de la maison (même animation que l'en-tête des pages),
   en teintes plus foncées que le vert ; le plus petit est centré sur la maison */
.pied-ondes { --base: clamp(150px, 13vw, 220px); position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 0; pointer-events: none; }
.pied-ondes span {
  position: absolute; left: 0; top: 0;
  width: calc(var(--base) * var(--n)); height: calc(var(--base) * var(--n));
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--gris-900);
  opacity: var(--o);
  animation: l-onde 3s cubic-bezier(.6, 0, .4, 1) var(--d) infinite alternate;
}
.pied-ondes span:nth-child(1) { --n: 1; --o: 1;   --d: 0s; background: var(--blanc); z-index: 1; }   /* rond principal blanc derrière la maison, devant les autres cercles */
.pied-ondes span:nth-child(2) { --n: 2; --o: .12; --d: .3s; }
.pied-ondes span:nth-child(3) { --n: 3; --o: .09; --d: .6s; }
.pied-ondes span:nth-child(4) { --n: 4; --o: .06; --d: .9s; }
.pied-ondes span:nth-child(5) { --n: 5; --o: .04; --d: 1.2s; }
@media (prefers-reduced-motion: reduce) { .pied-ondes span { animation: none; } }
.pied-accroche { font-size: clamp(.95rem, 1.05vw, 1.05rem); line-height: 1.9; letter-spacing: .06em; color: var(--blanc); }
.pied-accroche strong { font-weight: 400; text-transform: uppercase; letter-spacing: .1em; }

/* 2. Liens */
.pied-liens { background: var(--gris); color: rgba(255, 255, 255, .78); padding: clamp(50px, 6vw, 80px) 0 0; }
.pied-titre { font-size: 1rem; color: var(--blanc); letter-spacing: .04em; margin-bottom: clamp(30px, 3.5vw, 44px) !important; }
.pied-colonnes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }   /* 4 colonnes fixes : biens par commune, types de biens, agence & contact, infos légales */
@media (max-width: 991px) { .pied-colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pied-groupe { break-inside: avoid; margin-bottom: 34px; }
.pied-groupe-titre {
  margin-bottom: 14px !important;
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blanc);
}
.pied-groupe li { padding-left: 8px; font-size: .86rem; line-height: 1.5; }
.pied-groupe li + li { margin-top: 7px; }
.pied-groupe a { color: rgba(255, 255, 255, .78); }
.pied-groupe a:hover, .pied-groupe a:focus-visible { color: var(--vert); }
.pied-contact li { color: rgba(255, 255, 255, .78); }
/* Numéros de téléphone : icône verte devant */
.pied-contact .pied-tel { display: inline-flex; align-items: center; gap: 8px; }
.pied-contact .pied-num { white-space: nowrap; }   /* « BE 0841.958.911 » jamais coupé */
.pied-contact .pied-tel svg { flex: none; color: var(--vert); }
.pied-ipi { margin: 16px 0 10px 8px !important; font-size: .82rem; line-height: 1.5; color: var(--blanc); }

.pied-legal {
  display: flex; flex-wrap: wrap; gap: 14px clamp(28px, 5vw, 90px);
  margin-top: 16px !important; padding: 22px 0 26px !important;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.pied-legal a { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: rgba(255, 255, 255, .78); }
.pied-legal a:hover, .pied-legal a:focus-visible { color: var(--vert); }
.pied-legal svg { width: 14px; height: 14px; flex: none; color: var(--vert); }   /* icônes en vert du thème */

/* 3. Copyright */
.pied-bas { background: #111111; color: rgba(255, 255, 255, .6); padding: 18px 0; font-size: .78rem; letter-spacing: .06em; }
.pied-bas .pied-cadre { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.pied-bas a { color: var(--blanc); }
.pied-bas a:hover { color: var(--vert); }

@media (max-width: 767px) {
  .pied-intro .pied-cadre { grid-template-columns: 1fr; gap: 24px; }
  .pied-bas .pied-cadre { flex-direction: column; }
}

/* ---------------------------------------------------------- Mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  .loader .lg-part, .loader-bar span, .merci-icone { animation: none !important; }
  .loader.is-done { transition: opacity 400ms ease; transform: none; opacity: 0; }
  .mnav, .mnav-group, .mnav-foot, .sub, .hdr { transition-duration: 1ms !important; }
}

/* ===== Page estimation : bloc sur fond blanc, cartes vertes et icônes blanches ===== */
.l-estim { margin-top: 40px; background: #fff; }
.l-estim .box-title h2.title { font-size: 36px; line-height: 44px; }
/* photo maison de maître : le panneau « À vendre » reste visible quel que soit le recadrage */
.l-estim .l-estim-photo { object-position: 50% 58%; }
.l-estim .box-title .desc strong { display: block; margin-bottom: 6px; color: var(--gris-900, #2f3032); }
.l-estim-carte { background: var(--vert) !important; color: #fff; padding: 20px !important; gap: 18px !important; }
.l-estim-carte .icon-box .icon { color: #fff !important; width: 48px; height: 48px; }
.l-estim-carte .icon-box svg { display: block; width: 48px; height: 48px; }
.l-estim-carte .content .title { color: #fff; font-size: 20px; line-height: 28px; font-weight: 600; margin: 0; }
.l-estim-carte .content .description { color: rgba(255, 255, 255, .92) !important; margin-top: 8px; }
/* Survol fluide : la carte se soulève doucement (le modèle la grossissait d'un coup, sans transition) */
.l-estim-carte {
    transition: transform 500ms cubic-bezier(.22, 1, .36, 1), box-shadow 500ms cubic-bezier(.22, 1, .36, 1), background-color 400ms ease;
    box-shadow: 0 0 0 rgba(63, 64, 66, 0);
    will-change: transform;
}
.l-estim-carte .icon-box .icon { transition: transform 600ms cubic-bezier(.22, 1, .36, 1) !important; }
@media (hover: hover) {
    .l-estim-carte:hover {
        transform: translateY(-6px);
        background-color: #84BC38 !important;
        box-shadow: 0 18px 36px -14px rgba(63, 64, 66, .35);
    }
    .l-estim-carte:hover .icon-box .icon { transform: scale(1.12) rotate(-6deg); }
}
@media (hover: none) {
    .l-estim-carte:hover { transform: none; }
    .l-estim-carte:hover .icon-box .icon { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .l-estim-carte, .l-estim-carte .icon-box .icon { transition: none !important; }
    .l-estim-carte:hover, .l-estim-carte:hover .icon-box .icon { transform: none; }
}
@media (max-width: 991px) {
    .l-estim .box-title h2.title { font-size: 26px; line-height: 34px; }
}

/* ===== Page estimation : formulaire de demande d'estimation ===== */
.l-estim-form { scroll-margin-top: 90px; }
.l-estim-form-carte { max-width: 860px; margin: 0 auto; }
.l-estim-form .box-title { margin-bottom: clamp(26px, 4vw, 40px); }
.l-estim-form .box-title h2.title { font-size: 36px; line-height: 44px; }
.l-estim-form-intro { max-width: 600px; margin: 12px auto 0; }
.l-form .f-row-adresse { grid-template-columns: 2fr 1fr 1fr; }
.l-form .f-row-ville { grid-template-columns: 1fr 2fr; }
@media (max-width: 991px) {
    .l-estim-form .box-title h2.title { font-size: 26px; line-height: 34px; }
}
@media (max-width: 600px) {
    .l-form .f-row-adresse { grid-template-columns: 1fr 1fr; gap: 0 14px; }
    .l-form .f-row-adresse .field:first-child { grid-column: 1 / -1; }
    .l-form .f-row-ville { grid-template-columns: 1fr; gap: 0; }
}

/* ===== Fiche d'un bien : description complète (HTML de l'éditeur du CMS), mêmes espacements que dans l'éditeur ===== */
.l-description { line-height: 1.65; }
.l-description p { margin: 0 0 1em; }
.l-description > :last-child, .l-description p:last-child { margin-bottom: 0; }
.l-description ul, .l-description ol { margin: 0 0 1em; padding-left: 1.3em; }
.l-description ul { list-style: disc; }
.l-description ol { list-style: decimal; }
.l-description li { margin-bottom: .3em; }
.l-description img { display: inline-block; vertical-align: -3px; max-width: 100%; height: auto; }
.l-description strong, .l-description b { font-weight: 700; color: var(--gris); }

/* ===== Fiche d'un bien : onglets Détails / Superficies / Localisation / Documents
   (contrôle segmenté repris de la fiche La Signature, aux couleurs L'Immo) ===== */
.l-onglets { margin-top: 10px; }
.l-onglets__nav {
  display: flex; gap: 4px; padding: 4px; margin: 0 0 30px;
  background: var(--gris-50); border: 1px solid rgba(88, 89, 91, .1); border-radius: 99px;
}
.l-onglets__nav button {
  flex: 1 1 25%; min-width: 0; height: 46px; padding: 0 6px;
  border: 0; border-radius: 99px; background: transparent;
  /* même allure que les boutons du thème (.btn-pill) : pilule, capitales, gras, lettres espacées */
  font-family: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer;
  transition: background-color 200ms cubic-bezier(.23, 1, .32, 1), color 200ms cubic-bezier(.23, 1, .32, 1),
              box-shadow 200ms cubic-bezier(.23, 1, .32, 1), transform 160ms cubic-bezier(.23, 1, .32, 1);
}
.l-onglets__nav button.selected {
  background: var(--vert); color: var(--blanc);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .10), 0 4px 12px rgba(141, 198, 63, .30);
}
.l-onglets__nav button:active { transform: scale(.97); }
.l-onglets__nav button:focus-visible { outline: 2px solid var(--gris); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .l-onglets__nav button:not(.selected):hover { background: var(--blanc); }
}
.l-onglets__section--cachee { display: none; }
.l-onglets__section:not(.l-onglets__section--cachee) { animation: l-onglet-apparition 220ms cubic-bezier(.23, 1, .32, 1); }
.l-onglets__section:focus-visible { outline: 2px solid var(--vert); outline-offset: 6px; border-radius: 8px; }
@keyframes l-onglet-apparition { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* dans un onglet, les blocs ne se séparent par un filet qu'entre eux */
.l-onglets__section > .single-property-element:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
/* titres redondants avec le nom de l'onglet */
.l-onglets__section[data-section="superficies"] > .single-property-element > .title:first-child,
.l-onglets__section[data-section="localisation"] > .single-property-element > .title:first-child { display: none; }
.l-onglets__section[data-section="localisation"] iframe { border-radius: 16px; }
@media (max-width: 767px) {
  .l-onglets__nav { margin-bottom: 24px; }
  /* sur téléphone, les capitales espacées ne tiennent pas en 4 onglets : même pilule, texte en minuscules lisible */
  .l-onglets__nav button { height: 42px; font-size: 13px; letter-spacing: -.01em; text-transform: none; padding: 0 2px; }
  .l-onglets__section[data-section="localisation"] iframe { height: 340px; }
}
@media (max-width: 380px) {
  .l-onglets__nav button { font-size: 12px; letter-spacing: -.02em; }
}
@media (prefers-reduced-motion: reduce) {
  .l-onglets__section:not(.l-onglets__section--cachee) { animation: none; }
  .l-onglets__nav button { transition: none; }
}

/* ===== Fiche d'un bien : « Pourquoi nous choisir ? » - icône blanche dans un rond vert ===== */
.single-property-whychoose .box-whychoose .item-why { align-items: flex-start; gap: 14px; }
.single-property-whychoose .box-whychoose .item-why:not(:last-child) { margin-bottom: 18px; }
.l-why-icone {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--vert); color: var(--blanc);
}
.single-property-whychoose .box-whychoose .item-why .l-why-icone .icon { font-size: 22px; color: var(--blanc); line-height: 1; }
.l-why-texte { line-height: 1.5; color: var(--gris); }
.l-why-texte strong { display: block; margin-bottom: 2px; font-weight: 700; color: var(--gris-900); }

/* ---------------------------------------------------------- Conditions générales (mentions légales, RGPD, cookies) */
.l-cg [id] { scroll-margin-top: calc(var(--hdr-h) + 24px); }
.l-cg .box-item { padding-bottom: 36px; border-bottom: 1px solid #E6E7E5; }
.l-cg .box-item:last-child { border-bottom: 0; }
.l-cg-titre { font-size: clamp(26px, 3vw, 32px); font-weight: 700; color: var(--gris-900); margin-bottom: 18px; }
.l-cg-titre::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 12px; border-radius: 4px; background: var(--vert); }
.l-cg-sous { font-weight: 700; color: var(--vert-fonce, #6E9F2B); margin-bottom: 20px; }
.l-cg-art { font-size: 18px; font-weight: 700; color: var(--gris-900); margin: 30px 0 12px; }
.l-cg .wrapper-privacy p a, .l-cg .wrapper-privacy li a { color: #6E9F2B; text-decoration: underline; text-underline-offset: 2px; }
.l-cg .wrapper-privacy p a:hover, .l-cg .wrapper-privacy li a:hover { color: var(--gris-900); }
.l-cg-maj { font-size: 14px; font-style: italic; color: var(--gris); }
.l-cg .list-cate-privacy li a { color: inherit; }
.l-cg .contact-box .btn-pill { margin: 24px 0 8px; }   /* même espace que le bouton du thème : plus collé au texte */
@media (min-width: 992px) {
  .l-cg-sommaire { position: sticky; top: calc(var(--hdr-h) + 24px); }
}

/* ---------------------------------------------------------- Formulaire « Encoder mes critères » */
.l-criteres .fs-help { margin: 0 0 4px; }
.l-criteres .fs .field { margin-bottom: 22px; }
.l-criteres .l-options .field { margin-bottom: 0; }
/* Codes postaux : saisie + bouton, puis pastilles */
.l-cp-saisie { display: flex; gap: 10px; align-items: center; }
.l-cp-saisie input { flex: 1 1 auto; }
.l-cp-saisie .btn-pill { flex: none; height: 52px; }
.l-cp-liste { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.l-cp-liste:empty { display: none; }
.l-cp-puce {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 6px 0 16px;
  border-radius: 99px; background: var(--vert); color: var(--blanc); font-weight: 700; font-size: .88rem;
}
.l-cp-puce button {
  display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .25); color: var(--blanc); font-size: 1.1rem; line-height: 1; cursor: pointer;
  transition: background-color 200ms ease;
}
.l-cp-puce button:hover, .l-cp-puce button:focus-visible { background: rgba(255, 255, 255, .45); }
/* Jardin / garage */
.l-options { align-items: start; }
.l-options .field { margin-bottom: 0; }
.l-garage-nb { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.l-garage-nb[hidden] { display: none; }
.choices.is-mini .choice span { min-height: 38px; padding: 0 14px; }
/* Budget : double curseur */
.l-budget { margin-top: 18px !important; }
.l-budget-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.l-budget-mois { font-weight: 600; opacity: .7; }
.l-budget-mois[hidden] { display: none; }
.l-budget-valeur { font-size: 1.05rem; font-weight: 800; color: var(--gris-900); }
.l-slider { position: relative; height: 36px; margin: 4px 0 0; }
.l-slider-piste { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 6px; background: rgba(88, 89, 91, .15); }
.l-slider-plage { position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: 6px; background: var(--vert); }
.l-form .field .l-slider input[type="range"] {
  position: absolute; left: 0; top: 0; width: 100%; height: 36px; min-height: 0; margin: 0; padding: 0;
  background: none; border: 0; border-radius: 0; box-shadow: none; pointer-events: none;
  -webkit-appearance: none; appearance: none;
}
.l-form .field .l-slider input[type="range"]:focus { box-shadow: none; }
.l-slider input[type="range"]::-webkit-slider-runnable-track { height: 36px; background: none; border: 0; }
.l-slider input[type="range"]::-moz-range-track { height: 36px; background: none; border: 0; }
.l-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: grab;
  width: 28px; height: 28px; margin-top: 4px; border-radius: 50%;
  background: var(--blanc); border: 4px solid var(--vert); box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  transition: transform 160ms var(--ease-out);
}
.l-slider input[type="range"]::-moz-range-thumb {
  pointer-events: auto; cursor: grab; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blanc); border: 4px solid var(--vert); box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.l-slider input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.12); }
.l-slider input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--gris); outline-offset: 2px; }
.l-slider input[type="range"]:focus-visible::-moz-range-thumb { outline: 2px solid var(--gris); outline-offset: 2px; }
.l-slider-bornes { position: relative; display: flex; justify-content: space-between; font-size: .78rem; font-weight: 700; opacity: .6; }
.l-slider-borne-milieu { position: absolute; left: 50%; transform: translateX(-50%); }
.l-slider-piste::after { content: ""; position: absolute; left: 50%; top: -4px; width: 2px; height: 14px; margin-left: -1px; border-radius: 2px; background: rgba(88, 89, 91, .25); }   /* repère du milieu */
@media (max-width: 600px) {
  .l-options { grid-template-columns: 1fr; gap: 14px; }
  .l-cp-saisie .btn-pill .btn-plus { display: none; }
  .l-cp-saisie .btn-pill { padding: 0 18px; }
}
/* Accueil : appel vers « Encoder mes critères » sous les biens */
.l-criteres-appel { margin: 22px 0 0; font-weight: 600; color: var(--gris); }
.l-criteres-appel a { color: #6E9F2B; text-decoration: underline; text-underline-offset: 2px; }
.l-criteres-appel a:hover { color: var(--gris-900); }
