/* Vallière Immobilier : accueil « photo d'abord » (feuille de style propre à index.html et index-en.html, reprise par les pages intérieures).
   Une grande photo de maison à l'heure bleue, la recherche posée dessus ; plus bas, la façade dessinée à 3 heures.
   Palette : Nuit, Crépuscule, Plâtre, Lueur (seulement sur fond sombre) ; la carte reprend des teintes de Plâtre et de vert sauge. Une seule famille de caractères : Work Sans.
   Coins droits, aucune ombre (sauf le panneau de recherche posé sur la photo), le seul dégradé est le voile de lisibilité du texte sur la photo. */

:root {
  --nuit: #1D1A2B;
  --nuit-profonde: #12101D;
  --crepuscule: #4A4268;
  --platre: #F3F1F5;
  --platre-2: #E6E2EC;
  --lueur: #F4D58D;
  --sable: #C9AC93;
  --romarin: #56664F;
  /* noms historiques repris par pages-n.css : tout le site suit en changeant ici */
  --pierre: #F3F1F5;
  --encre: #1D1A2B;
  --doux: #4A4268;
  --cypres: #1D1A2B;
  --cypres-fonce: #12101D;
  --tuile: #4A4268;
  --tuile-texte: #4A4268;
  --bande: #E6E2EC;
  --ciel: #BCD1D3;
  --blanc: #FFFFFF;
  --papier: #FFFFFF;
  --trait: rgba(29, 26, 43, .5);
  --trait-doux: rgba(29, 26, 43, .2);
  --focus: #4A4268;
  --serif: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* nom gardé pour que pages-n.css suive sans retouche */
  --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --g: clamp(20px, 5vw, 60px);
  --m: clamp(20px, 4.4vw, 64px);
  --mx: max(var(--g), calc((100% - var(--max)) / 2)); /* marge du haut de page : même alignement que le logo, sur les très grands écrans aussi */
  --max: 1320px;
  --entete: 60px;
  --bas: 62px; /* le bas de l'écran est réservé à la pastille de démonstration ; 12 px dans l'aperçu intégré (voir l'en-tête de la page) */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-h1: clamp(2.6rem, .7rem + 5.3vw, 5rem); /* 80 px à 1 440 px : 4,7 fois le texte de 17 px */
  --t-h2: clamp(1.9rem, 1.1rem + 2.5vw, 3.4rem);
  --bloc: clamp(56px, 6.5vw, 96px);
}
@media (min-width: 960px) { :root { --entete: 68px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--entete) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--nuit-profonde); color: var(--encre);
  font: 400 1.0625rem/1.62 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-kerning: normal;
  overflow-x: clip;
}
main { display: block; background: var(--pierre); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button, input, select { font: inherit; color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
/* zones sombres : l'anneau de focus passe en Lueur */
.hero, .entete, .facade, .pied, .barre-fixe { --focus: var(--lueur); }
.cartouche { --focus: var(--crepuscule); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.evitement { position: absolute; left: 12px; top: -90px; z-index: 100; padding: .8rem 1.1rem; background: var(--nuit); color: #fff; font-weight: 500; text-decoration: none; transition: top .2s; --focus: var(--lueur); }
.evitement:focus { top: 12px; }
.conteneur { width: min(100% - 2 * var(--g), var(--max)); margin-inline: auto; }
.petit { font-size: .9375rem; line-height: 1.5; color: var(--doux); max-width: 62ch; }
/* le filet coté : un trait de 1 px à 2 repères, qui sépare les sections sur le Plâtre (comme les légendes des photos) */
.cote { display: block; width: min(100% - 2 * var(--g), var(--max)); height: 9px; margin: 0 auto; padding: 0; border: 0; border-left: 1px solid rgba(74, 66, 104, .5); border-right: 1px solid rgba(74, 66, 104, .5); background: linear-gradient(rgba(74, 66, 104, .5), rgba(74, 66, 104, .5)) center / 100% 1px no-repeat; }
/* lien vers une page en français depuis une page anglaise */
.en-fr { margin-left: .3em; font-weight: 400; white-space: nowrap; }

/* ---------- boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px;
  background: var(--nuit); color: #fff; border: 1px solid var(--nuit); border-radius: 0;
  font: 500 1rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover { background: var(--nuit-profonde); border-color: var(--nuit-profonde); }
@media (max-width: 380px) { .btn { padding: 0 16px; font-size: .9375rem; } }
.btn-secondaire { background: transparent; color: var(--encre); border-color: var(--trait); }
.btn-secondaire:hover { background: var(--bande); border-color: var(--encre); color: var(--encre); }
.btn-clair { background: transparent; color: #fff; border-color: #fff; }
.btn-clair:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.lien { display: inline-flex; align-items: center; min-height: 44px; font: 500 1rem/1.3 var(--sans); text-decoration: none; }
.lien span { text-decoration: underline; text-decoration-color: var(--crepuscule); text-decoration-thickness: 1.5px; text-underline-offset: .32em; transition: text-decoration-thickness .25s var(--ease); }
.lien:hover span { text-decoration-thickness: 3px; }

/* ---------- titres ---------- */
.titre-cote { font: 300 var(--t-h2)/1.12 var(--sans); letter-spacing: -.015em; text-wrap: balance; max-width: 22ch; }
.petit-titre { font: 500 1rem/1.3 var(--sans); margin-bottom: 20px; }
.petit-titre + * { margin-top: 0; }

/* ---------- en-tête ---------- */
.entete { position: relative; z-index: 50; height: var(--entete); background: var(--nuit); color: #fff; border-bottom: 1px solid transparent; }
.entete.defile { border-bottom-color: rgba(255, 255, 255, .18); }
.entete-in { width: min(100% - 2 * var(--g), var(--max)); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; flex-direction: column; gap: 4px; justify-content: center; min-height: 44px; color: inherit; text-decoration: none; }
.logo-nom { position: relative; align-self: flex-start; padding-bottom: 7px; font: 400 1.65rem/1 var(--sans); letter-spacing: .01em; }
/* la cote sous le nom (décision 8) : un trait de 1 px de la largeur du mot, avec ses 2 repères, comme l’icône d’onglet */
.logo-nom::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; border-left: 1px solid currentColor; border-right: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; opacity: .8; }
.logo-sous { font: 400 .875rem/1 var(--sans); letter-spacing: .01em; }
.nav { display: flex; align-items: center; gap: 36px; margin-left: auto; }
.nav-liste { display: flex; gap: 28px; }
.nav a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; font: 500 .9375rem/1 var(--sans); text-decoration: none; }
.nav-liste a { justify-content: center; position: relative; }
.nav-liste a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; border-bottom: 2px solid var(--lueur); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.nav-liste a:hover::after, .nav-liste a:focus-visible::after { transform: scaleX(1); }
.nav-aux { display: flex; align-items: center; gap: 22px; }
.fav-lien { gap: 8px; }
.fav-lien .badge { min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; display: none; align-items: center; justify-content: center; background: #fff; color: var(--nuit); font: 600 .75rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.fav-lien .badge:not(:empty) { display: inline-flex; }
.tel { font-weight: 400 !important; font-variant-numeric: tabular-nums; }
.langues { display: flex; align-items: center; margin: 0; font: 500 .875rem/1 var(--sans); }
.langues a { min-height: 44px; padding: 0 12px; justify-content: center; font-weight: 500; }
.langues span { display: none; } /* la virgule du balisage n'est pas affichée : les 2 liens se suffisent */
.langues a[aria-current] { text-decoration: underline; text-decoration-color: var(--lueur); text-decoration-thickness: 2px; text-underline-offset: .45em; }
.menu-bouton { display: none; }
/* l'accueil : l'en-tête est posé, transparent, sur la photo */
.accueil .entete { position: absolute; inset: 0 0 auto 0; background: transparent; }
.accueil .entete.defile { border-bottom-color: transparent; }

/* ---------- haut de page : la photo ---------- */
.hero { position: relative; min-height: clamp(640px, 100svh, 980px); display: grid; grid-template-rows: 1fr auto; overflow: clip; background: var(--nuit); color: #fff; }
/* « verre dépoli » (autre fondu que Maison Marée, qui fond la photo dans le noir) : la photo se dissout dans le plâtre clair de la page, un flou progressif remplace le bord, une lueur chaude reste aux baies ; le texte est sombre sur le clair, il n'y a pas de fond sombre */
.hero { background: var(--platre); color: var(--nuit); }
.accueil .entete { color: var(--nuit); }
.menu-ouvert .entete { color: #fff; }
.menu-ouvert .menu-bouton { text-decoration-color: var(--lueur); }
.hero-photo { position: absolute; inset: 0 0 0 auto; width: 76%; z-index: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .5) 14%, #000 46%), linear-gradient(to bottom, transparent 0, #000 20%, #000 62%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .5) 14%, #000 46%), linear-gradient(to bottom, transparent 0, #000 20%, #000 62%, transparent 100%);
  mask-composite: intersect; }
.hero-photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 50%; filter: brightness(1.06) saturate(.95); }
.hero-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(to right, #000 0, rgba(0, 0, 0, .6) 22%, transparent 52%); mask-image: linear-gradient(to right, #000 0, rgba(0, 0, 0, .6) 22%, transparent 52%); }
.hero-voile { position: absolute; inset: 0; background: radial-gradient(ellipse 34% 40% at 74% 46%, rgba(244, 213, 141, .28) 0, rgba(244, 213, 141, 0) 100%); }
.hero-corps { position: relative; z-index: 2; align-self: start; padding: 120px var(--mx) 0; }
.hero h1 { font: 300 var(--t-h1)/1.04 var(--sans); letter-spacing: -.022em; max-width: 11.5em; }
.hero h1 .l { display: block; }
.hero-liens { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin-top: 22px; }
.hero-liens a { display: inline-flex; align-items: center; min-height: 44px; font: 500 1rem/1.3 var(--sans); text-decoration: underline; text-decoration-color: var(--nuit); text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-thickness .25s var(--ease); }
.hero-liens a:hover { text-decoration-thickness: 4px; }
.hero-liens-a { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.hero-liens-a a:first-child { min-height: 52px; padding: 0 28px; background: var(--nuit); color: #fff; text-decoration: none; transition: background-color .3s var(--ease); }
.hero-liens-a a:first-child:hover { background: var(--crepuscule); }
.hero-liens-a a:first-child:focus-visible { outline-color: var(--crepuscule); }
.hero-liens-b { display: none; }
.hero-bas { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; padding: 0 var(--mx) calc(var(--bas) + 64px); }
.hero-legende { margin: 0 0 0 auto; max-width: 24em; font-size: .875rem; line-height: 1.4; text-align: right; color: var(--nuit); }
/* au-dessus de 860 px, la photo est derrière le texte : le voile (rien de plus) donne 4,5:1 au titre, au lien et à la légende, sans cartouche posé sur la photo */
@media (min-width: 861px) {
}

/* le panneau de recherche */
.cartouche { position: relative; width: min(1000px, 100%); background: var(--platre); color: var(--nuit); box-shadow: 0 18px 50px rgba(20, 16, 36, .38); }
.cartouche-grille { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr auto; gap: 2px; background: var(--platre-2); }
.cel { display: grid; gap: 6px; align-content: start; min-width: 0; padding: 16px 20px; background: var(--platre); }
.cel > label, .cel > .etiq { font: 500 .875rem/1.3 var(--sans); color: var(--crepuscule); }
.cel select {
  width: 100%; min-height: 44px; padding: 6px 28px 6px 0; border: 0; border-bottom: 1.5px solid var(--nuit); border-radius: 0; background-color: transparent; cursor: pointer;
  font: 400 1rem/1.2 var(--sans); -webkit-appearance: none; appearance: none; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%231D1A2B' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
.cel-envoi { display: flex; padding: 0; }
.cel-envoi .btn { width: 100%; min-height: 76px; padding: 0 34px; }

/* segments : Acheter / Louer (recherche) et heure de la façade */
.segment { position: relative; display: inline-grid; grid-auto-flow: column; }
.segment label { position: relative; display: block; }
.segment input { position: absolute; inset: 0; opacity: 0; margin: 0; pointer-events: none; }
.segment span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-bottom: 1.5px solid var(--nuit); font: 500 .9375rem/1 var(--sans); cursor: pointer; white-space: nowrap; }
.segment small { font-size: inherit; font-weight: 400; }
.segment input:checked + span { background: var(--nuit); color: #fff; }
.segment input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.cel .segment { display: grid; grid-template-columns: 1fr 1fr; }

/* ---------- le bandeau de la façade dessinée ---------- */
.facade { --W: 960px; background: var(--nuit); color: #fff; padding: var(--bloc) 0; }
.facade-grille { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px clamp(32px, 4.5vw, 72px); align-items: start; }
.facade-texte p { margin-top: 24px; max-width: 34rem; color: rgba(255, 255, 255, .85); }
.facade-figure { width: 100%; max-width: var(--W); }
.facade-planche { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ciel); }
.facade-planche svg { position: absolute; inset: 0; display: block; width: 100%; max-width: none; height: 100%; --d: 0s; }
.facade-note { margin-top: 12px; font-size: .875rem; line-height: 1.5; color: rgba(255, 255, 255, .75); }
.heures { display: none; margin: 32px 0 0; padding: 0; border: 0; min-width: 0; }
.js .heures { display: block; }
.heures legend { padding: 0; margin-bottom: 12px; font: 500 .875rem/1.2 var(--sans); color: rgba(255, 255, 255, .85); }
.heures .segment { display: grid; grid-auto-flow: row; gap: 8px; }
.heures .segment span { min-height: 52px; padding: 0 16px; border: 1px solid #fff; justify-content: flex-start; color: #fff; }
.heures .segment input:checked + span { background: var(--lueur); border-color: var(--lueur); color: var(--nuit); }
.hero-cote { font: 500 13px var(--sans); fill: #1D1A2B; letter-spacing: .02em; }
.hero-cote-pt { font: 500 11px var(--sans); fill: #1D1A2B; }
.trait, .main { stroke-dasharray: 1; stroke-dashoffset: 0; }
/* le dessin se trace une seule fois par visite, quand la section entre à l'écran */
.anim .facade:not(.trace) .dessin { visibility: hidden; }
.facade.trace .main { animation: main var(--t, .5s) cubic-bezier(.5, .1, .35, 1) backwards; animation-delay: var(--d, 0s); }
.facade.trace .trait { animation: trace 1s var(--ease) backwards; animation-delay: var(--d, 1.4s); }
.facade.trace .lavis { animation: lavis 1.2s ease backwards; animation-delay: calc(var(--d, 1s) * 1.1 + .55s); }
.facade.trace .note { animation: lavis 1s ease backwards; animation-delay: calc(var(--d, 1.6s) - .5s); }
@keyframes main { 0% { stroke-dashoffset: 1; opacity: 0; } 2% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes lavis { from { opacity: 0; } to { opacity: 1; } }
/* lumière : matin, midi, soir (la façade à trois heures) */
.ciel-c, .lum-c, .om-c, .soleil { transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.ciel-c, .lum-c, .om-c, .fen-lum { opacity: 0; }
.fen-lum { transition: opacity 1s var(--ease) .1s; }
.facade[data-heure="matin"] .ciel-matin, .facade[data-heure="midi"] .ciel-midi, .facade[data-heure="soir"] .ciel-soir { opacity: 1; }
.facade[data-heure="matin"] .lum-matin, .facade[data-heure="midi"] .lum-midi, .facade[data-heure="soir"] .lum-soir { opacity: 1; }
.facade[data-heure="matin"] .om-matin, .facade[data-heure="midi"] .om-midi, .facade[data-heure="soir"] .om-soir { opacity: 1; }
.facade[data-heure="soir"] .fen-lum { opacity: 1; }
.facade[data-heure="matin"] .soleil { transform: translate(300px, 80px); }
.facade[data-heure="midi"] .soleil { transform: translate(0, 0); }
.facade[data-heure="soir"] .soleil { transform: translate(-470px, 130px); }
.lum-c { mix-blend-mode: soft-light; }
/* déjà vu pendant cette visite, ou sans JavaScript : le dessin fini est posé d'emblée */
.deja .main, .deja .trait, .deja .lavis, .deja .facade .note, html:not(.js) .main, html:not(.js) .trait, html:not(.js) .lavis, html:not(.js) .facade .note { animation: none !important; }
.deja .facade .dessin { visibility: visible !important; }

/* ---------- photos : sans cadre, légende cotée ---------- */
.planche { margin: 0; }
.planche img, .planche picture { display: block; width: 100%; }
.planche img { height: auto; }
.legende { display: flex; align-items: center; gap: 12px; margin-top: 10px; font: 400 .875rem/1.3 var(--sans); color: var(--doux); }
.legende .rep { position: relative; flex: 1; height: 0; border-top: 1px solid rgba(74, 66, 104, .5); }
.legende .rep:first-child::before, .legende .rep:last-child::after { content: ""; position: absolute; top: -5px; height: 9px; border-left: 1px solid rgba(74, 66, 104, .5); }
.legende .rep:first-child::before { left: 0; }
.legende .rep:last-child::after { right: 0; }
.legende .mention { flex: none; }

/* ---------- biens à la une ---------- */
.biens { padding: var(--bloc) 0; }
.tete-section { display: grid; gap: 24px 48px; margin-bottom: clamp(40px, 5vw, 56px); }
.tete-section p { max-width: 40rem; }
@media (min-width: 960px) { .tete-section { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end; } .tete-section p { justify-self: end; } }
.biens-liste { display: grid; gap: 56px 40px; }
.biens-liste > li { min-width: 0; }
.bien { position: relative; display: flex; flex-direction: column; gap: 22px; height: 100%; }
.bien-corps { display: flex; flex-direction: column; flex: 1; }
.bien-lieu { font: 500 .875rem/1.3 var(--sans); color: var(--crepuscule); }
.bien h3 { margin-top: 6px; font: 400 1.375rem/1.25 var(--sans); letter-spacing: -.008em; text-wrap: balance; }
.bien h3 a { text-decoration: none; }
.bien h3 a::after { content: ""; position: absolute; inset: 0; }
.bien:hover h3 a { text-decoration: underline; text-decoration-color: var(--crepuscule); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.bien:focus-within { outline: 3px solid var(--focus); outline-offset: 6px; }
.bien:focus-within h3 a:focus-visible { outline: 0; }
.cotes { display: flex; flex-wrap: wrap; margin-top: auto; padding-top: 20px; }
.cotes > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 14px 20px 12px; border-top: 1px solid var(--trait); border-bottom: 1px solid var(--trait-doux); }
.cotes > div + div { border-left: 1px solid var(--trait-doux); }
.cotes > div:first-child { padding-left: 0; padding-right: 20px; }
.cotes dt { display: flex; align-items: center; gap: 6px; font: 500 .875rem/1.2 var(--sans); color: var(--doux); }
.cotes dt svg { flex: none; color: var(--encre); }
.cotes dd { margin: 0; font: 400 1.25rem/1 var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cotes .cote-prix dd { font-size: 1.5rem; color: var(--crepuscule); }
/* téléphone : le prix reste sur la même ligne que la surface et les pièces */
@media (max-width: 599px) { .cotes { flex-wrap: nowrap; } .cotes > div { padding-inline: 12px; } .cotes > div:first-child { padding-left: 0; } .cotes dd { font-size: 1.125rem; } .cotes .cote-prix dd { font-size: 1.25rem; } }
@media (max-width: 380px) { .cotes > div { padding-inline: 9px; } .cotes dt span { font-size: .875rem; } .cotes .cote-prix dd { font-size: 1.125rem; } .cotes dd { font-size: 1rem; } }
.biens-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: clamp(40px, 5vw, 64px); }

/* la mosaïque de l'accueil : 1 grand bien, 2 petits ; la photo prend la hauteur restante */
.mosaique .planche { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mosaique .cadre { position: relative; flex: 1; min-height: 200px; }
.mosaique .cadre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mosaique .bien-corps { flex: none; }
.mosaique > li:first-child .cadre img { object-position: 62% 50%; } /* la façade côté jardin reste dans le cadre serré de l’ordinateur, le tronc de gauche sort */

/* ---------- estimation en 3 étapes ---------- */
.estimation { background: var(--platre); padding: var(--bloc) 0; }
.estim-grille { display: grid; gap: 48px; }
.chapo-section { margin-top: 24px; max-width: 40rem; font-size: 1.125rem; line-height: 1.6; }
.chaine { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 56px; }
.chaine li { display: flex; flex-direction: column; gap: 12px; }
.etape-tete { display: flex; flex-direction: column; gap: 8px; }
.num { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--encre); background: var(--platre); font: 500 1rem/1 var(--sans); }
.chaine .num { display: block; width: auto; height: auto; border: 0; background: none; font: 300 4rem/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--encre); }
.chaine h3 { font: 400 1.25rem/1.2 var(--sans); }
.chaine li p { font-size: 1.0625rem; line-height: 1.55; max-width: 20rem; }
.cote-h { display: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; margin-top: 48px; }
.recap { padding: 28px 28px 24px; background: #fff; border: 1px solid rgba(29, 26, 43, .2); }
.recap h3 { font: 400 1.5rem/1.2 var(--sans); }
.recap dl { margin-top: 20px; }
.recap dl > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--trait-doux); }
.recap dt { font-weight: 500; }
.recap dd { margin: 0; color: var(--doux); text-align: right; }
.recap .petit { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--trait-doux); }

/* ---------- l'agence ---------- */
.agence { padding: var(--bloc) 0; }
.agence-grille { display: grid; gap: 64px 24px; }
.planche--agence { align-self: start; }
.agence-texte p { margin-top: 24px; max-width: 36rem; }
.agence-texte .petit-titre { margin-top: 40px; margin-bottom: 20px; }
.equipe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.equipe li { display: flex; align-items: center; gap: 14px; }
.mono { flex: none; display: grid; place-items: center; width: 52px; height: 52px; background: var(--platre-2); color: var(--nuit); font: 500 1.0625rem/1 var(--sans); letter-spacing: .02em; }
.role { font-size: 1rem; line-height: 1.35; }
.agence-texte .petit { margin-top: 16px; }
.agence-lien { margin-top: 12px !important; }
.niveaux li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); padding-bottom: 20px; }
.niveaux li:last-child { padding-bottom: 0; }
.niveau-cote { font: 400 1.5rem/1.2 var(--sans); font-variant-numeric: tabular-nums; color: var(--crepuscule); }
.niveau-axe { display: none; }
.niveaux h4 { font: 400 1.125rem/1.3 var(--sans); padding-top: .15rem; }
.niveaux p { margin-top: 4px; max-width: 30rem; font-size: 1.0625rem; line-height: 1.55; }
.bareme { width: 100%; border-collapse: collapse; }
.bareme th, .bareme td { padding: 15px 0; border-top: 1px solid var(--trait-doux); text-align: left; font-weight: 400; vertical-align: baseline; }
.bareme tr:last-child th, .bareme tr:last-child td { border-bottom: 1px solid var(--trait-doux); }
.bareme td { padding-left: 16px; text-align: right; white-space: nowrap; font: 500 1rem/1.4 var(--sans); font-variant-numeric: tabular-nums; color: var(--crepuscule); }
.note-bande { margin-top: 24px; padding: 14px 18px; background: var(--platre-2); font-size: .9375rem; line-height: 1.5; max-width: 62ch; }

/* ---------- le secteur ---------- */
.secteur { background: var(--platre); padding: var(--bloc) 0; }
.secteur-grille { display: grid; gap: 48px 24px; }
.secteur-intro p { margin-top: 24px; max-width: 34rem; }
.villes { align-self: start; }
@media (min-width: 960px) { .villes { align-self: stretch; display: flex; flex-direction: column; } .villes li { flex: 1; display: flex; } .villes li a { flex: 1; align-items: center; } .villes .nom { font-size: 1.5rem; } }
.villes a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-height: 52px; padding: 11px 0; border-bottom: 1px solid var(--trait-doux); text-decoration: none; }
.villes li:first-child a { border-top: 1px solid var(--trait); }
.villes .nom { font: 400 1.25rem/1.3 var(--sans); }
.villes .compte { font-size: .9375rem; color: var(--doux); font-variant-numeric: tabular-nums; white-space: nowrap; }
.villes a:hover .nom, .villes a.actif .nom { text-decoration: underline; text-decoration-color: var(--crepuscule); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.carte { align-self: start; }
.carte-svg { display: block; width: 100%; height: auto; border: 1px solid var(--trait); background: #F3F1F5; }
.carte .petit { margin-top: 12px; }
.carte-lib { font: 500 15px var(--sans); letter-spacing: .02em; }
.carte-ville { font: 500 16px var(--sans); fill: #1D1A2B; paint-order: stroke; stroke: #F3F1F5; stroke-width: 4px; stroke-linejoin: round; }
.carte-ville.mer { stroke: #B9CCDE; }
.carte-echelle { font: 500 12px var(--sans); letter-spacing: .04em; }
.pin .nb { font: 600 11.5px var(--sans); }
.pin { transition: transform .35s var(--ease); transform-box: fill-box; transform-origin: center bottom; }
.pin circle.c1 { transition: stroke-width .3s; }
.pin.actif { transform: scale(1.3); }
.pin.actif circle.c1 { stroke: var(--crepuscule); stroke-width: 3px; }
.planche--secteur { align-self: start; }
@media (max-width: 700px) { .carte-ville { font-size: 23px; stroke-width: 6px; } .carte-lib { font-size: 21px; } .pin .nb { font-size: 15px; } .carte-echelle { font-size: 22px; } .pin .c1, .pin .nb { transform: scale(1.4); transform-box: fill-box; transform-origin: center; } }

/* ---------- pied de page compact ---------- */
.pied { padding: 56px 0 32px; background: var(--nuit-profonde); color: var(--platre); font-size: .9375rem; }
.pied-grille { display: grid; gap: 32px; }
.pied-marque p { margin: 16px 0 20px; max-width: 24rem; line-height: 1.55; }
.pied h2 { margin-bottom: 8px; font: 500 .875rem/1.3 var(--sans); color: rgba(243, 241, 245, .82); }
.pied-liens a, .pied address a { display: inline-flex; align-items: center; min-height: 40px; }
.pied address, .pied-horaires { line-height: 1.6; }
.pied-horaires { margin-top: 8px; color: rgba(243, 241, 245, .9); }
.pied a { text-underline-offset: .25em; }
.pied a.btn { text-decoration: none; }
.pied-fin { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(243, 241, 245, .28); max-width: 68ch; font-size: .875rem; line-height: 1.55; color: rgba(243, 241, 245, .86); }
@media (max-width: 719px) { .pied-liens { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; } .pied-liens a { min-height: 44px; } .pied-grille { gap: 24px; } .pied { padding-top: 44px; } }

/* ---------- la barre fixe mince du téléphone ---------- */
.barre-fixe { display: none; }

/* ---------- ordinateur ---------- */
@media (min-width: 960px) {
  .agence-grille, .secteur-grille { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .agence-texte { grid-column: 1 / 7; grid-row: 1 / 3; }
  .methode { grid-column: 7 / 13; grid-row: 1; }
  .honoraires { grid-column: 7 / 13; grid-row: 2; }
  .secteur-intro, .villes { grid-column: 1 / 6; }
  .planche--secteur, .carte { grid-column: 6 / 13; }
  .pied-grille { grid-template-columns: 1.3fr 1fr 1.2fr; gap: 48px; }
  .pied-grille--court { grid-template-columns: 1.3fr 2.2fr; }
  .biens-liste { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .biens-liste.mosaique { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 48px 32px; }
  .mosaique > li:nth-child(1) { grid-column: 1 / 8; grid-row: 1 / 3; }
  .mosaique > li:nth-child(2), .mosaique > li:nth-child(3) { grid-column: 8 / 13; }
  .mosaique > li:nth-child(1) .planche { max-width: 780px; }
  .mosaique > li:not(:first-child) .cadre { min-height: clamp(230px, 19.5vw, 300px); }
}
@media (min-width: 1100px) {
  .methode, .honoraires { grid-column: 8 / 13; }
}
@media (max-width: 959px) {
  .facade-grille { display: flex; flex-direction: column; gap: 28px; }
  .facade-figure { max-width: none; }
  .heures { margin-top: 24px; }
  .heures .segment { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .heures .segment span { flex-direction: column; justify-content: center; gap: 2px; padding: 6px; text-align: center; line-height: 1.2; white-space: normal; }
}

/* ---------- tablette ---------- */
@media (max-width: 1180px) {
  .hero-photo { width: 84%; }
  .cartouche { width: min(720px, 100%); }
  .cartouche-grille { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cel-projet, .cel-envoi { grid-column: 1 / -1; }
  .cel-envoi .btn { min-height: 56px; }
}

/* ---------- menu et téléphone ---------- */
@media (max-width: 959px) {
  body { padding-bottom: 72px; }
  html { scroll-padding-bottom: calc(var(--bas) + 44px + 16px) !important; } /* !important : le script partagé de la pastille écrit 80px en ligne ; la barre fixe et la pastille en prennent 106 */
  .menu-bouton { display: inline-flex; align-items: center; margin-left: auto; min-height: 44px; padding: 0 4px; background: none; border: 0; border-radius: 0; color: inherit; font: 500 1rem/1 var(--sans); cursor: pointer; text-decoration: underline; text-decoration-color: var(--nuit); text-decoration-thickness: 2px; text-underline-offset: .45em; }
  .nav { position: fixed; z-index: 55; left: 0; right: 0; top: var(--entete); bottom: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px var(--g) 40px; overflow-y: auto; background: var(--nuit); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility 0s linear .25s; }
  .nav[data-ouvert="true"] { opacity: 1; visibility: visible; transition: opacity .25s var(--ease); }
  .nav-liste { flex-direction: column; gap: 0; }
  .nav-liste a { width: 100%; min-height: 68px; border-bottom: 1px solid rgba(255, 255, 255, .22); font: 300 2.125rem/1.2 var(--sans); letter-spacing: -.01em; }
  .nav-liste a::after { display: none; }
  .nav-liste a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--lueur); text-decoration-thickness: 2px; text-underline-offset: .22em; }
  .nav-aux { flex-direction: column; align-items: flex-start; gap: 0; margin-top: 12px; }
  .nav-aux a { min-height: 56px; font-size: 1.0625rem; }
  .langues { margin-top: 8px; margin-left: -12px; }
  .menu-ouvert .entete { background: var(--nuit); }
  .biens-pied { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .biens-liste { gap: 48px; }
  .biens-liste:not(.mosaique) .bien { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; height: auto; }
  .biens-liste:not(.mosaique) .bien-corps { height: 100%; }
  .mosaique .cadre { min-height: 260px; }
  .mosaique > li:nth-child(1) .cadre { min-height: 360px; }
}
@media (max-width: 599px) {
  .mosaique .planche { flex: none; }
  .mosaique .cadre { flex: none; min-height: 0; aspect-ratio: 3 / 2; }
}
@media (max-width: 959px) {
  .biens-liste.mosaique { gap: 48px; }
}

/* téléphone : le titre sur fond Nuit, la photo entière et nette en dessous, puis la légende et la recherche, sans chevauchement */
@media (max-width: 860px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-corps { order: 0; position: relative; padding: 84px var(--m) 28px; }
  .hero-photo { order: 1; position: relative; inset: auto; width: auto; height: auto; margin-top: -64px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .6) 14%, #000 34%, #000 66%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .6) 14%, #000 34%, #000 66%, transparent 100%); -webkit-mask-composite: initial; mask-composite: initial; }
  .hero-photo img { height: clamp(360px, 54svh, 470px); object-fit: cover; object-position: 74% 50%; }
  .hero-photo::after { display: none; }
  .hero-voile { background: radial-gradient(ellipse 60% 34% at 74% 56%, rgba(244, 213, 141, .26) 0, rgba(244, 213, 141, 0) 100%); }
  .hero h1 { font-size: clamp(32px, 10.4vw, 44px); font-weight: 350; line-height: 1.06; }
  .hero h1 .l { display: inline; }
  .hero-liens-a { margin-top: 22px; gap: 0 24px; } /* le bouton et le lien passent au-dessus de la photo : titre, action et photo tiennent dans le premier écran, la recherche vient juste dessous */
  .hero-bas { order: 2; display: flex; flex-direction: column; align-items: stretch; padding: 0 var(--m) 40px; background: transparent; margin-top: -40px; }
  .cartouche { width: 100%; background: #fff; box-shadow: 0 12px 36px rgba(29, 26, 43, .16); }
  .cartouche-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; background: none; padding: 16px 16px 4px; }
  .cel-envoi .btn { min-height: 54px; }
  .cel { padding: 0 0 14px; background: none; }
  .cel-projet, .cel-budget, .cel-envoi { grid-column: 1 / -1; }
  .cel-envoi { padding: 6px 0 0; }
  .hero-liens-b { display: none; }
  .hero-legende { order: -1; margin: 0 0 18px; max-width: none; text-align: left; }
  .barre-fixe { position: fixed; z-index: 60; left: 0; right: 0; bottom: calc(var(--bas) + env(safe-area-inset-bottom, 0px)); height: 44px; background: var(--nuit); border-top: 1px solid rgba(255, 255, 255, .25); }
  .barre-fixe.visible { display: flex; }
  .barre-fixe a { flex: 1; display: flex; align-items: center; justify-content: center; color: #fff; font: 500 .9375rem/1 var(--sans); text-decoration: none; }
  .barre-fixe a + a { border-left: 1px solid rgba(255, 255, 255, .25); }
  .barre-fixe a:focus-visible { outline-offset: -3px; }
}
@media (max-width: 359px) {
  .cartouche-grille { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719px) {
  .chaine { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .chaine li { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; align-items: start; }
  .etape-tete { display: contents; }
  .chaine .num { grid-row: 1 / 3; font-size: 3rem; }
  .chaine li p { max-width: none; grid-column: 2; }
  .chaine h3 { grid-column: 2; padding-top: .35rem; }
  .equipe { gap: 14px 16px; }
  .equipe li { gap: 10px; }
  .mono { width: 44px; height: 44px; font-size: 1rem; }
  .villes .compte { font-size: .875rem; }
}
@media (min-width: 720px) and (max-width: 959px) {
  .chaine { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .heures .segment span { min-height: 52px; }
}

/* ---------- au clavier et sans JavaScript ---------- */
html:not(.js) .menu-bouton { display: none; }
@media (max-width: 959px) {
  html:not(.js) .entete { height: auto; }
  html:not(.js) .entete-in { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .nav { position: static; opacity: 1; visibility: visible; padding: 0; background: none; width: 100%; flex-direction: row; flex-wrap: wrap; gap: 0 20px; overflow: visible; }
  html:not(.js) .nav-liste { flex-direction: row; flex-wrap: wrap; gap: 0 20px; }
  html:not(.js) .nav-liste a, html:not(.js) .nav-aux a { min-height: 44px; border: 0; font: 500 1rem/1 var(--sans); width: auto; }
  html:not(.js) .nav-aux { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
  html:not(.js) .langues { margin: 0; }
  html:not(.js) .accueil .entete { position: relative; background: var(--nuit); }
}

html.menu-ouvert { overflow: hidden; }
.menu-ouvert .barre-fixe { display: none !important; }

/* ---------- mouvement réduit : tout est posé, rien ne bouge ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .anim .facade:not(.trace) .dessin { visibility: visible; }
}

/* ---------- façade sur téléphone : les cotes principales restent lisibles (13 px rendus), les secondaires s’effacent ---------- */
@media (max-width: 699px) {
  .facade .cote-sec { display: none; }
  .facade .hero-cote { font-size: calc(13px * var(--uf, 3.4)); }
}
/* téléphone tenu à l’horizontale : la pastille de démonstration ne couvre pas les liens de l’ouverture */
@media (max-width: 860px) and (max-height: 500px) { .hero-bas { padding-bottom: calc(var(--bas) + 20px); } }
/* l’accueil : l’estimation tient sur une colonne, sans récapitulatif ; la méthode en 3 lignes */
.estim-grille .chaine { max-width: 64rem; }

/* téléphone : l’accueil resserré (les 2 biens secondaires en ligne, les communes sur 2 colonnes, le barème plus serré) */
@media (max-width: 599px) {
  .biens-liste.mosaique { gap: 36px; }
  .mosaique > li:not(:first-child) .bien { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); column-gap: 14px; align-items: start; }
  .mosaique > li:not(:first-child) .legende { display: none; }
  .mosaique > li:not(:first-child) .bien h3 { font-size: 1.125rem; }
  .mosaique > li:not(:first-child) .cotes { flex-wrap: wrap; padding-top: 10px; }
  .mosaique > li:not(:first-child) .cotes .cote-prix { flex-basis: 100%; padding: 8px 0; border-bottom: 0; }
  .mosaique > li:not(:first-child) .cotes .cote-prix + div { padding-left: 0; border-left: 0; }
  .mosaique > li:not(:first-child) .cotes > div:not(.cote-prix) { padding-block: 8px; }
  .villes { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .villes li:nth-child(2) a { border-top: 1px solid var(--trait); }
  .villes a { flex-direction: column; gap: 2px; min-height: 0; padding: 10px 0; }
  .bareme th, .bareme td { padding-block: 10px; }
}

@media (max-width: 359px) { .equipe { grid-template-columns: 1fr; } }
.equipe li { min-width: 0; }
