/* ============================================
   L'Agence du Quartier — Design système "Local chic"
   Crème dominant · rappels moutarde & bordeaux
   ============================================ */

/* Polices hébergées sur le site (fonts/, licence SIL OFL) : aucune requête
   vers Google, qui recevrait sinon l'adresse IP de chaque visiteur.
   Sous-ensemble « latin » : il couvre le français (accents, œ, €, espaces
   fines). Mêmes graisses que l'ancien lien Google Fonts. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/fraunces-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/fraunces-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 600; font-display: swap; src: url("../fonts/fraunces-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/karla-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/karla-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Karla"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/karla-latin-700-normal.woff2") format("woff2"); }

:root {
  --creme: #f6f1e7;
  --papier: #fdfbf6;
  --encre: #000000; /* textes en noir, demande de l'agence */
  --encre-douce: #2b2b2b;
  --fond-sombre: #241f18; /* fonds sombres (pied de page, bandeaux) : l'ancienne encre, plus chaude que le noir */
  --moutarde: #fdb402; /* jaune du logo ; en texte sur fond clair, --moutarde-fonce */
  --moutarde-fonce: #8c5f00; /* sur crème 5,0:1, blanc dessus 5,6:1 */
  --moutarde-pale: #f3d27a; /* sur le bordeaux : 6,7:1 */
  --bordeaux: #8a0b13; /* palette D, choisie par l'agence ; blanc dessus 9,8:1 */
  --bordeaux-fonce: #6b0810;
  --ligne: #e4dcc9;
  --ombre: 0 10px 30px rgba(36, 31, 24, .08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Karla", "Segoe UI", sans-serif;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--encre);
  background: var(--creme);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--bordeaux); }

.container {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(253, 251, 246, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne);
  transition: box-shadow .25s ease, background .25s ease;
}

.site-header.scrolled {
  background: rgba(253, 251, 246, .97);
  box-shadow: 0 6px 22px rgba(36, 31, 24, .10);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 15px;
  transition: padding-block .25s ease;
}

.site-header.scrolled .container { padding-block: 9px; }

.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--encre);
  text-decoration: none;
  line-height: 1.1;
  transition: font-size .25s ease;
}

/* Logo image de l'en-tête (bannière "L'Agence du Quartier" fournie par
   l'agence) : le pied de page garde le logo texte, inchangé ci-dessus. */
.logo--image {
  display: block;
  line-height: 0;
  /* Sans ça, un item flex ne rétrécit jamais sous la largeur de son contenu :
     le logo déborderait de l'en-tête sur les petits écrans. */
  min-width: 0;
}

/* Le logo garde ses proportions (808 x 75) : sa largeur n'est jamais réduite par le menu à côté de lui, sinon
   l'image, à hauteur fixe, se retrouvait étirée vers le haut. */
.logo--image { flex-shrink: 0; }

.logo--image img {
  display: block;
  height: 34px;
  width: auto;
  max-width: none;
  transition: height .25s ease;
}

.site-header.scrolled .logo--image img { height: 30px; }

/* Barre estimation morphing (home) */
.header-estim {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.header-estim-input {
  width: 0;
  padding: 0;
  opacity: 0;
  border: 1.5px solid var(--ligne);
  border-radius: 999px;
  background: var(--creme);
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--encre);
  overflow: hidden;
  transition: width .32s ease, opacity .28s ease, padding .32s ease;
}

.site-header.scrolled .header-estim-input {
  width: 180px;
  padding: 9px 16px;
  opacity: 1;
}

/* Sous 1500 px, la barre « votre adresse » du menu n'apparaît pas au défilement : elle serrait le logo. */
@media (max-width: 1500px) {
  .header-estim { display: none; }
}

.header-estim-input:focus { outline: 2px solid var(--moutarde); outline-offset: 1px; border-color: var(--moutarde); }

.logo em {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bordeaux);
}

.main-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.main-nav a {
  color: var(--encre);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--bordeaux);
  border-bottom-color: var(--moutarde);
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 999px;
  padding: 13px 28px;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--ombre); }

.btn-bordeaux { background: var(--bordeaux); color: #fff; }
.btn-bordeaux:hover { background: var(--bordeaux-fonce); }

.btn-moutarde { background: var(--moutarde); color: var(--encre); }
.btn-moutarde:hover { background: var(--moutarde-fonce); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--encre);
  border: 2px solid var(--encre);
}
.btn-ghost:hover { background: var(--fond-sombre); color: var(--papier); }

.header-cta { margin-left: 8px; padding: 10px 22px; font-size: .92rem; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 72px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 420px at 85% 15%, rgba(253, 180, 2, .13), transparent 65%),
    radial-gradient(ellipse 520px 400px at 8% 90%, rgba(138, 11, 19, .09), transparent 60%);
  pointer-events: none;
}

/* Hero avec photo de Boulogne en fond, fondue de gauche (crème) à droite (photo) */
.hero-photo::before {
  background:
    linear-gradient(to right,
      var(--creme) 0%,
      var(--creme) 38%,
      rgba(246, 241, 231, .88) 52%,
      rgba(246, 241, 231, .45) 70%,
      rgba(246, 241, 231, .12) 100%),
    url("../assets/hero-boulogne.webp") right center / cover no-repeat;
}

.hero-photo::after {
  /* léger voile chaud pour accorder la photo à la palette */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 45%, rgba(138, 11, 19, .10) 100%);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-photo::before {
    background:
      linear-gradient(to right,
        var(--creme) 0%,
        rgba(246, 241, 231, .93) 55%,
        rgba(246, 241, 231, .62) 100%),
      url("../assets/hero-boulogne-mobile.webp") right center / cover no-repeat;
  }
}

.hero .container { position: relative; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 20px;
}

.hero-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--moutarde);
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  max-width: 15ch;
}

h1 .accent {
  font-style: italic;
  color: var(--bordeaux);
}

.hero-sub {
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--encre-douce);
  max-width: 52ch;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-proof {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.proof-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--encre);
  line-height: 1.15;
}

.proof-item span { font-size: .9rem; color: var(--encre-douce); }

/* Renvoi de la mention « 1ère agence indépendante », sous le chiffre (demande de l'agence) : petit, comme tout
   renvoi d'astérisque. */
.proof-note {
  display: block;
  margin-top: 6px;
  max-width: 34ch;
  font-size: .72rem;
  line-height: 1.4;
  color: var(--encre-douce);
}

.proof-note a { color: inherit; text-decoration: underline; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }

.section-head { max-width: 640px; margin-bottom: 44px; }

.section-kicker {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--moutarde-fonce);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.18;
  margin-top: 10px;
}

.section-head p { margin-top: 14px; color: var(--encre-douce); }

/* ---------- Parcours cards ---------- */
.parcours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.parcours-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--encre);
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  transition: transform .2s, box-shadow .25s, border-color .2s;
  overflow: hidden;
}

.parcours-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ombre);
  border-color: transparent;
}

.parcours-card.featured { background: var(--bordeaux); color: #fff; border-color: var(--bordeaux); }
.parcours-card.featured .parcours-desc { color: rgba(255, 255, 255, .82); }
.parcours-card.featured .parcours-go { color: var(--moutarde); }

.parcours-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--moutarde);
}

.parcours-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 10px 0 10px;
}

.parcours-desc { font-size: .98rem; color: var(--encre-douce); }

.parcours-go {
  display: inline-block;
  margin-top: 22px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--bordeaux);
}

/* ---------- Biens du moment ---------- */
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.biens-voir-tout { flex-shrink: 0; padding: 11px 24px; font-size: .92rem; }

.biens-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

/* Accueil : la même grille, mais défilable horizontalement (accueil
   uniquement — le catalogue acheter.html/louer.html garde la grille qui
   passe à la ligne). */
.biens-carousel {
  display: flex;
  align-items: center;
  gap: 14px;
}

.biens-carousel .biens-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 2px; /* évite que le focus-ring des cartes soit rogné */
}

.biens-carousel .biens-grid::-webkit-scrollbar { display: none; }

.biens-carousel .bien-card {
  flex: 0 0 calc((100% - 2 * 26px) / 3);
  scroll-snap-align: start;
}

.biens-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ligne);
  background: var(--papier);
  color: var(--encre);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
}

.biens-arrow:hover:not(:disabled) { background: var(--creme); box-shadow: var(--ombre); }
.biens-arrow:disabled { opacity: .3; cursor: default; }

.bien-card {
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .25s;
}

.bien-card:hover { transform: translateY(-5px); box-shadow: var(--ombre); }

.bien-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.bien-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.bien-card:hover .bien-media img { transform: scale(1.05); }

.bien-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.badge-nouveau { background: var(--moutarde); color: var(--encre); }
.badge-exclu { background: var(--bordeaux); color: #fff; }
.badge-coeur { background: #fff; color: var(--bordeaux); }
.badge-baisse { background: var(--encre); color: #fff; }

/* Plusieurs mises en avant : côte à côte à la place d'un badge seul (même coin de la photo). */
.bien-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bien-badges .bien-badge { position: static; }
.fiche-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fiche-badges .fiche-badge-inline { margin-bottom: 0; }

.bien-body { padding: 22px 22px 24px; }

.bien-loc {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--moutarde-fonce);
  /* 2px de chaque côté : une cible de 24px au moins, pour le doigt. */
  padding-block: 2px;
  margin-bottom: 6px;
  text-decoration: none;
}

a.bien-loc:hover { text-decoration: underline; }

.bien-titre {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.25;
}

.bien-titre a { color: var(--encre); text-decoration: none; }
.bien-titre a:hover { color: var(--bordeaux); }

.bien-prix {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bordeaux);
  margin: 12px 0 14px;
}

.bien-specs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--ligne);
}

.bien-specs li {
  font-size: .85rem;
  color: var(--encre-douce);
  background: var(--creme);
  border-radius: 6px;
  padding: 4px 11px;
}

/* Classe énergie sur la carte : couleurs de l'étiquette officielle. */
.bien-specs li.bien-dpe { font-weight: 700; color: #fff; }
.bien-specs li.bien-dpe--a { background: #00a06d; color: var(--encre); }
.bien-specs li.bien-dpe--b { background: #52b153; color: var(--encre); }
.bien-specs li.bien-dpe--c { background: #a5cc74; color: var(--encre); }
.bien-specs li.bien-dpe--d { background: #f4e70f; color: var(--encre); }
.bien-specs li.bien-dpe--e { background: #f0b50f; color: var(--encre); }
.bien-specs li.bien-dpe--f { background: #eb8235; color: var(--encre); }
.bien-specs li.bien-dpe--g { background: #d7221f; }

/* ---------- Carte teaser ---------- */
.carte-teaser { background: var(--fond-sombre); color: var(--papier); }

.carte-teaser .section-kicker { color: var(--moutarde); }
.carte-teaser h2 { color: var(--papier); }
.carte-teaser .section-head p { color: rgba(253, 251, 246, .72); }

.carte-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(253, 251, 246, .16);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

#map-teaser, #map-estimation, #map-vendus, #map-quartier { height: 460px; width: 100%; background: #dcd6c8; }

.carte-actions { margin-top: 28px; text-align: center; }

/* ---------- Quartiers ---------- */
.quartiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quartier-chip {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: 10px;
  padding: 18px 22px;
  text-decoration: none;
  color: var(--encre);
  font-weight: 700;
  transition: border-color .2s, transform .15s;
}

.quartier-chip small { font-weight: 400; color: var(--encre-douce); }

.quartier-chip:hover { border-color: var(--moutarde); transform: translateY(-2px); }

/* ---------- Avis ---------- */
.avis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.avis-card {
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  padding: 28px;
}

.avis-stars { color: var(--moutarde); letter-spacing: 3px; font-size: 1.05rem; }

.avis-card blockquote {
  margin: 14px 0 18px;
  font-size: .98rem;
  color: var(--encre-douce);
}

.avis-card figcaption { font-weight: 700; font-size: .92rem; }
.avis-card figcaption span { display: block; font-weight: 400; color: var(--encre-douce); font-size: .85rem; }

/* ---------- Bandeau CTA ---------- */
.cta-bandeau {
  background: linear-gradient(120deg, var(--bordeaux), var(--bordeaux-fonce));
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-bandeau h2 { color: #fff; max-width: 22ch; }
.cta-bandeau p { color: rgba(255, 255, 255, .8); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--fond-sombre);
  color: rgba(253, 251, 246, .75);
  padding: 56px 0 32px;
  font-size: .93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer .logo { color: var(--papier); }

.site-footer h4 {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--moutarde);
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(253, 251, 246, .75); text-decoration: none; }
.site-footer a:hover { color: var(--moutarde); }

.footer-legal {
  border-top: 1px solid rgba(253, 251, 246, .14);
  padding-top: 22px;
  font-size: .82rem;
  color: rgba(253, 251, 246, .5);
}

/* ---------- Widget estimation flottant ---------- */
.widget-estimation {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 3000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--moutarde);
  color: var(--encre);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 22px;
  box-shadow: 0 8px 24px rgba(36, 31, 24, .28);
  transition: transform .15s, background .2s, opacity .3s, visibility .3s;
}

/* Masqué tant que le héros est à l'écran (js/main.js) ; la pastille ne bat qu'une fois le bouton apparu. */
.widget-estimation.cache { opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; }
.widget-estimation.cache .dot { animation: none; }

.widget-estimation:hover { transform: translateY(-3px) scale(1.02); background: var(--moutarde-fonce); color: #fff; }

.widget-estimation .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bordeaux);
  animation: pulse 2s 3;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(138, 11, 19, .5); }
  50% { box-shadow: 0 0 0 7px rgba(138, 11, 19, 0); }
}

/* ---------- Page estimation ---------- */
.estimation-hero { padding: 64px 0 56px; }

.estimation-layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: start;
}

.form-card {
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  padding: 36px 34px;
  box-shadow: var(--ombre);
}

.form-card h2 { font-size: 1.55rem; margin-top: 0; }
.form-card > p { color: var(--encre-douce); font-size: .95rem; margin: 8px 0 24px; }

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-weight: 700;
  font-size: .92rem;
  margin-bottom: 7px;
}

.form-field input,
.form-field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--encre);
  background: var(--creme);
  border: 1.5px solid var(--ligne);
  border-radius: 10px;
  padding: 13px 15px;
  transition: border-color .2s;
}

.form-field input:focus,
.form-field select:focus {
  outline: 2px solid var(--moutarde);
  outline-offset: 1px;
  border-color: var(--moutarde);
}

.form-note { font-size: .82rem; color: var(--encre-douce); margin-top: 14px; }

.form-field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--encre);
  background: var(--creme);
  border: 1.5px solid var(--ligne);
  border-radius: 10px;
  padding: 13px 15px;
  resize: vertical;
  transition: border-color .2s;
}

.form-field textarea:focus {
  outline: 2px solid var(--moutarde);
  outline-offset: 1px;
  border-color: var(--moutarde);
}

/* Autocomplétion d'adresse */
.form-field--adresse { position: relative; }

.adresse-suggestions {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  list-style: none;
  background: var(--papier);
  border: 1.5px solid var(--ligne);
  border-radius: 10px;
  box-shadow: var(--ombre);
  overflow: hidden;
}

.adresse-suggestions__item {
  padding: 11px 15px;
  font-size: .92rem;
  cursor: pointer;
}

.adresse-suggestions__item + .adresse-suggestions__item { border-top: 1px solid var(--ligne); }

.adresse-suggestions__item:hover,
.adresse-suggestions__item:focus {
  background: var(--creme);
  outline: none;
}

.form-aide {
  font-size: .8rem;
  color: #40632f;
  margin-top: 6px;
}

.form-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Piège à robots : invisible mais pas display:none, que les robots ignorent
   moins facilement. Retiré du flux et du parcours clavier. */
.form-piege {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-erreur {
  background: #f9e9e7;
  border: 1px solid #e4b8b2;
  color: #8a2b22;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: .88rem;
  margin-bottom: 14px;
}

/* Confirmation après envoi */
.form-succes { text-align: center; padding: 12px 4px; }

.form-succes__pictogramme {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #e6efe2;
  color: #40632f;
  font-size: 1.6rem;
  line-height: 52px;
  font-weight: 700;
}

.form-succes h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.form-succes p { color: var(--encre-douce); }

.estimation-args { list-style: none; margin-top: 26px; }

.estimation-args li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 16px;
  color: var(--encre-douce);
}

.estimation-args li strong { color: var(--encre); }

.estimation-args li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--papier);
  background: var(--bordeaux);
  border-radius: 50%;
}

/* Filtres carte & catalogue */
.map-filtres, .filtres-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.map-filtres label, .filtres-bar label { font-size: .88rem; font-weight: 700; }

.map-champ { display: flex; align-items: center; gap: 8px; }
.map-champ--rue { flex: 1 1 280px; max-width: 420px; }

.map-recherche { position: relative; flex: 1; min-width: 0; }

.map-recherche input[type="search"] {
  width: 100%;
  font-family: var(--sans);
  font-size: .95rem;
  padding: 9px 13px;
  border-radius: 8px;
  border: 1.5px solid var(--ligne);
  background: var(--papier);
  color: var(--encre);
}

.map-recherche input[type="search"]:focus-visible { outline: 3px solid var(--moutarde); outline-offset: 1px; }

/* Les suggestions de rues : au-dessus de la carte (Leaflet monte jusqu'à 1000). */
.rues-suggestions {
  position: absolute;
  z-index: 1100;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  list-style: none;
  padding: 0;
  background: var(--papier);
  border: 1.5px solid var(--ligne);
  border-radius: 10px;
  box-shadow: var(--ombre);
  overflow: hidden;
}

.rues-suggestions li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  color: var(--encre);
  font-size: .92rem;
  cursor: pointer;
}

.rues-suggestions li + li { border-top: 1px solid var(--ligne); }
.rues-suggestions li small { color: var(--encre-douce); font-size: .78rem; white-space: nowrap; }
.rues-suggestions li:hover,
.rues-suggestions li[aria-selected="true"] { background: var(--creme); }

@media (max-width: 720px) {
  /* Sur téléphone, la recherche reste tout près de la carte : étiquette et champ sur une ligne, peu de marge dessous. */
  .map-filtres { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 10px; }
  .map-champ { flex-direction: column; align-items: stretch; gap: 4px; }
  /* flex: 0 0 auto : sans cela, le « flex-basis: 280px » du bureau devenait une HAUTEUR de 280 px dans cette colonne — c'est ce qui éloignait la recherche de la carte. */
  .map-champ--rue { flex: 0 0 auto; max-width: none; flex-direction: row; align-items: center; gap: 10px; }
  .map-count { margin-left: 0; }
}

.map-filtres select, .filtres-bar select {
  font-family: var(--sans);
  font-size: .9rem;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--ligne);
  background: var(--papier);
  color: var(--encre);
}

.map-count, .filtres-count { margin-left: auto; font-size: .88rem; color: var(--encre-douce); }
/* Le message « aucune vente trouvée » : invisible, sans place, quand il n'y a rien à dire. */
.map-count:empty { display: none; }
/* Sur le fond sombre de la carte, le gris du texte courant ne se lit plus. */
.carte-teaser .map-count { color: rgba(253, 251, 246, .8); }

/* Catalogue (acheter / louer) */
.catalogue-vide {
  display: none;
  text-align: center;
  padding: 48px 24px;
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  color: var(--encre-douce);
}

.catalogue-vide.visible { display: block; }

/* Étapes */
.etapes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.etape {
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  padding: 30px 28px;
}

.etape-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--moutarde);
  line-height: 1;
}

.etape h3 { font-family: var(--serif); font-size: 1.25rem; margin: 12px 0 8px; }
.etape p { font-size: .95rem; color: var(--encre-douce); }

/* Popup Leaflet */
.leaflet-popup-content-wrapper { border-radius: 12px; font-family: var(--sans); overflow: hidden; }
/* Bulle d'une vente (js/carte.js, BULLE) : largeur fixe, sans la marge propre à Leaflet ; la photo occupe tout le haut,
   au format des photos d'annonce, et le texte a sa propre marge. */
.popup-vente .leaflet-popup-content-wrapper { padding: 0; }
.popup-vente .leaflet-popup-content { margin: 0; line-height: 1.4; }
.popup-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--creme); }
.popup-corps { padding: 12px 16px 14px; }
/* Sans photo, le texte est en haut : il laisse la place à la croix. */
.popup-corps:first-child { padding-right: 44px; }
/* La croix de fermeture, lisible sur la photo. */
.popup-vente a.leaflet-popup-close-button {
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(253, 251, 246, .94);
  color: var(--encre);
  font: 400 22px/1 var(--sans);
  box-shadow: 0 1px 4px rgba(36, 31, 24, .3);
}
.popup-vente a.leaflet-popup-close-button:hover { background: var(--papier); color: var(--bordeaux); }
.popup-type {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 4px;
  margin-bottom: 7px;
  background: #f3ead2;
  color: var(--moutarde-fonce);
}
.popup-address { font-weight: 700; font-size: .95rem; margin-bottom: 5px; }
.popup-prix { font-family: var(--serif); font-weight: 700; font-size: 1rem; color: var(--bordeaux); margin-bottom: 4px; }
.popup-details { font-size: .82rem; color: var(--encre-douce); }
.popup-atouts { font-size: .78rem; color: var(--bordeaux); margin-top: 3px; }

/* ---------- Page quartier ---------- */
.fil-ariane {
  font-size: .85rem;
  color: var(--encre-douce);
  margin-bottom: 22px;
}

.fil-ariane a { color: var(--encre-douce); text-decoration: none; }
.fil-ariane a:hover { color: var(--bordeaux); }
.fil-ariane span[aria-current] { color: var(--encre); font-weight: 700; }

.quartier-hero { padding-bottom: 56px; }
.quartier-hero h1 { max-width: 20ch; }

.quartier-note {
  margin-top: 18px;
  font-size: .85rem;
  color: var(--encre-douce);
  max-width: 52ch;
}

.atouts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.atout {
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.atout h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.atout p { font-size: .92rem; color: var(--encre-douce); }

.rues-liste {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ligne);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  overflow: hidden;
}

.rues-liste li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  background: var(--papier);
  padding: 14px 18px;
}

.rue-nom { font-weight: 700; font-size: .94rem; }
a.rue-nom { color: var(--encre); text-decoration: none; }
a.rue-nom:hover { color: var(--bordeaux); text-decoration: underline; }
.rue-n { font-size: .8rem; color: var(--encre-douce); white-space: nowrap; }

@media (max-width: 900px) {
  .atouts-grid { grid-template-columns: 1fr 1fr; }
  .rues-liste { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .atouts-grid { grid-template-columns: 1fr; }
  .rues-liste { grid-template-columns: 1fr; }
}

/* ---------- Fiche détail d'un bien ---------- */
.fiche-intro { padding-top: 40px; }

.fiche-layout {
  display: grid;
  /* Les trois quarts à la description et aux photos, un quart au prix et aux boutons. */
  grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr);
  gap: 40px;
  align-items: start;
}

/* Sans min-width: 0, la bande de vignettes (flex, non rétractable) élargit
   la colonne au lieu de défiler : la page déborde sur téléphone. */
.fiche-layout > *,
.fiche-col-principale > * { min-width: 0; }

.fiche-galerie { margin-bottom: 32px; }

.fiche-galerie-principale {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ligne);
}

.fiche-galerie-principale img { width: 100%; height: 100%; object-fit: cover; }

.fiche-galerie-vignettes {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.fiche-vignette {
  width: 84px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: .68;
  transition: opacity .15s, border-color .15s;
  flex-shrink: 0;
}

.fiche-vignette img { width: 100%; height: 100%; object-fit: cover; display: block; }

.fiche-vignette:hover { opacity: .9; }
.fiche-vignette.active { opacity: 1; border-color: var(--moutarde); }

/* Jusqu'à 30 photos : la bande de vignettes défile, la photo se parcourt aux flèches. */
.fiche-galerie-vignettes { overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; }
.fiche-vignette { scroll-snap-align: start; }

.fiche-galerie-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 4px;
  border: 0;
  border-radius: 50%;
  background: rgba(253, 251, 246, .92);
  color: var(--encre);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--ombre);
  opacity: .88;
  transition: opacity .15s;
}

.fiche-galerie-nav:hover,
.fiche-galerie-nav:focus-visible { opacity: 1; }
.fiche-galerie-nav--prec { left: 14px; }
.fiche-galerie-nav--suiv { right: 14px; }

.fiche-galerie-compteur {
  position: absolute;
  right: 14px;
  bottom: 14px;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(36, 31, 24, .72);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
}

/* Description saisie par l'agence (texte riche du CMS). */
.fiche-description .fiche-texte p,
.fiche-description .fiche-texte li { color: var(--encre-douce); }
.fiche-description .fiche-texte p,
.fiche-description .fiche-texte ul,
.fiche-description .fiche-texte ol { margin-bottom: 12px; }
.fiche-description .fiche-texte ul,
.fiche-description .fiche-texte ol { padding-left: 1.2em; }
.fiche-description .fiche-texte h2,
.fiche-description .fiche-texte h3 { font-size: 1.1rem; margin: 18px 0 8px; }

.fiche-col-principale .quartier-callout { margin-bottom: 32px; }

.fiche-entete { margin-bottom: 36px; }
.fiche-entete h1 { max-width: 22ch; margin-bottom: 14px; }

.fiche-badge-inline {
  display: block;
  width: fit-content;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.fiche-specs.hero-proof { margin-top: 26px; gap: 32px; }

.fiche-description { margin-bottom: 32px; }
.fiche-description h2 { font-size: 1.4rem; margin-bottom: 12px; }
.fiche-description p { color: var(--encre-douce); }

.quartier-callout {
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  padding: 28px 30px;
}

.quartier-callout h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }
.quartier-callout p { color: var(--encre-douce); font-size: .95rem; margin-bottom: 12px; }
.quartier-callout-stat { font-weight: 700; color: var(--bordeaux); }

.fiche-col-contact { position: sticky; top: 96px; }

/* Panneau du prix : compact, pour laisser la place aux photos et à la description. */
.fiche-col-contact .form-card { padding: 22px 20px; }
.fiche-col-contact .fiche-cta { gap: 8px; margin-top: 16px; }
.fiche-col-contact .fiche-cta .btn { padding: 11px 14px; font-size: .88rem; }
.fiche-col-contact .form-note { font-size: .8rem; margin-top: 12px; }

/* « .fiche-prix-panel > » : sans lui, la règle « .form-card > p », plus
   précise, ramenait prix et statut à la taille du texte courant. */
.fiche-prix-panel > .fiche-prix-montant {
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--bordeaux);
  margin: 0 0 6px;
}

.fiche-prix-panel > .fiche-prix-note { font-size: .78rem; color: var(--encre-douce); margin-bottom: 4px; }

/* Visite 3D et vidéo, sous les photos. */
/* Visite 3D et vidéo : centrées sous les photos (demande de l'agence). */
.fiche-liens-media { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: -14px 0 32px; }

/* La visite 3D, dans une fenêtre sur la page (js/fiche.js). */
.visite-3d {
  width: min(1200px, 94vw);
  height: min(800px, 86vh);
  /* Centrée : la remise à zéro « * { margin: 0 } » annule le margin: auto natif de <dialog>. */
  inset: 0;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--fond-sombre);
  overflow: hidden;
}
.visite-3d[open] { display: flex; flex-direction: column; }
.visite-3d::backdrop { background: rgba(0, 0, 0, .72); }
.visite-3d__barre { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 18px; }
.visite-3d__titre { margin: 0; color: var(--papier); font-family: var(--serif); font-size: 1.1rem; }
.visite-3d__fermer {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: var(--papier);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.visite-3d__fermer:hover { background: var(--bordeaux); }
.visite-3d__fermer:focus-visible { outline: 3px solid var(--moutarde); outline-offset: 2px; }
.visite-3d__cadre { flex: 1; width: 100%; border: 0; background: #000; }
@media (max-width: 640px) {
  .visite-3d { width: 100vw; height: 100dvh; max-width: none; max-height: none; border-radius: 0; }
}

.fiche-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.fiche-cta .btn { width: 100%; }

.fiche-prix-montant small { display: block; margin-top: 2px; font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--encre-douce); }
.fiche-prix-panel > .fiche-prix-hh { font-size: .8rem; font-weight: 700; margin: 10px 0 4px; }

/* Bien vendu ou loué : la fiche reste en ligne, en référence. */
.badge-vendu { background: var(--fond-sombre); color: var(--papier); }
.fiche-prix-panel > .fiche-conclu-statut { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--encre); margin: 0 0 6px; }
.bien-prix--vendu { font-size: 1.05rem; color: var(--encre-douce); }
.popup-lien { display: inline-block; margin-top: 6px; font-weight: 700; }

/* Mentions obligatoires et simulateur de mensualités */
.fiche-mentions,
.simulateur {
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 32px;
}

.fiche-mentions h2,
.simulateur h2 { font-size: 1.4rem; margin-bottom: 18px; }
.fiche-mentions p { color: var(--encre-douce); font-size: .95rem; margin-bottom: 12px; }
/* Mention obligatoire en F et G : lisible, sans être criée. */
.fiche-mentions .fiche-mentions__alerte { color: var(--encre); font-weight: 600; }
.fiche-mentions .fiche-mentions__petit,
.simulateur .fiche-mentions__petit { font-size: .82rem; color: var(--encre-douce); margin-bottom: 0; }

.etiquettes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 22px; }

.etiquette h3 {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--encre-douce);
  margin-bottom: 10px;
}

.etiquette__echelle { display: flex; flex-direction: column; gap: 3px; }

.etiquette__ligne { display: flex; align-items: center; gap: 10px; opacity: .4; }
.etiquette__ligne--active { opacity: 1; }

.etiquette__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  height: 20px;
  padding: 0 8px;
  border-radius: 0 4px 4px 0;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  white-space: nowrap;
}

.etiquette__ligne--active .etiquette__barre { height: 30px; font-size: .82rem; box-shadow: 0 0 0 2px var(--encre); }
.etiquette__lettre { font-size: 1.1em; }
.etiquette__valeur { font-weight: 700; font-size: .92rem; white-space: nowrap; }
.etiquette__valeur small { font-weight: 400; color: var(--encre-douce); font-size: .78rem; }

.etiquette__ligne:nth-child(1) .etiquette__barre { width: 38%; }
.etiquette__ligne:nth-child(2) .etiquette__barre { width: 46%; }
.etiquette__ligne:nth-child(3) .etiquette__barre { width: 54%; }
.etiquette__ligne:nth-child(4) .etiquette__barre { width: 62%; }
.etiquette__ligne:nth-child(5) .etiquette__barre { width: 70%; }
.etiquette__ligne:nth-child(6) .etiquette__barre { width: 78%; }
.etiquette__ligne:nth-child(7) .etiquette__barre { width: 86%; }
.etiquette__ligne--active .etiquette__barre { flex-shrink: 0; }

/* Couleurs des étiquettes officielles : vert → rouge (énergie), clair → sombre (climat). */
.etiquette--dpe .etiquette__barre--a { background: #00a06d; }
.etiquette--dpe .etiquette__barre--b { background: #52b153; }
.etiquette--dpe .etiquette__barre--c { background: #a5cc74; color: var(--encre); }
.etiquette--dpe .etiquette__barre--d { background: #f4e70f; color: var(--encre); }
.etiquette--dpe .etiquette__barre--e { background: #f0b50f; color: var(--encre); }
.etiquette--dpe .etiquette__barre--f { background: #eb8235; }
.etiquette--dpe .etiquette__barre--g { background: #d7221f; }
.etiquette--ges .etiquette__barre--a { background: #a4dbf8; color: var(--encre); }
.etiquette--ges .etiquette__barre--b { background: #8cb4d3; color: var(--encre); }
.etiquette--ges .etiquette__barre--c { background: #7792b1; }
.etiquette--ges .etiquette__barre--d { background: #5f6f8f; }
.etiquette--ges .etiquette__barre--e { background: #4a4d6e; }
.etiquette--ges .etiquette__barre--f { background: #342e50; }
.etiquette--ges .etiquette__barre--g { background: #211730; }

.fiche-mentions__infos { margin: 4px 0 16px; border-top: 1px solid var(--ligne); }

.fiche-mentions__infos div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ligne);
  font-size: .92rem;
}

.fiche-mentions__infos dt { color: var(--encre-douce); }
.fiche-mentions__infos dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }

/* Caractéristiques détaillées (étage, chauffage…), sous la description : deux colonnes de lignes. */
.fiche-caracteristiques { margin-bottom: 32px; }
.fiche-caracteristiques h2 { font-size: 1.4rem; margin-bottom: 14px; }
.fiche-caracteristiques__liste {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
  margin: 0;
}
.fiche-caracteristiques__liste div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ligne);
  font-size: .92rem;
}
.fiche-caracteristiques__liste dt { color: var(--encre-douce); }
.fiche-caracteristiques__liste dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 640px) {
  .fiche-caracteristiques__liste { grid-template-columns: 1fr; }
}

/* Performance énergétique, en dernier dans l'encadré. */
.fiche-mentions__energie { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--ligne); }

.simulateur__champs { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; align-items: end; }
.simulateur__champs .form-field { margin-bottom: 0; }
.simulateur__resultat { color: var(--encre-douce); margin: 22px 0 4px; }
.simulateur__resultat strong { font-family: var(--serif); font-size: 2rem; color: var(--bordeaux); margin-right: 4px; }
.simulateur__detail { font-size: .9rem; color: var(--encre-douce); margin-bottom: 14px; min-height: 1.4em; }

/* Sur mobile, une seule colonne : sans réordonner, le prix et le bouton de
   contact tomberaient tout en bas, sous le DPE. On déplie la colonne
   principale (display: contents) pour glisser le bloc prix juste après le
   titre : photos, titre, prix, puis le reste. */
@media (max-width: 900px) {
  .fiche-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fiche-col-principale { display: contents; }
  .fiche-col-principale > * { order: 3; }
  .fiche-col-principale > .fiche-galerie { order: 1; }
  .fiche-col-principale > .fiche-entete,
  .fiche-col-contact { order: 2; }
  .fiche-col-contact { position: static; margin-bottom: 32px; }
}

@media (max-width: 720px) {
  .etiquettes,
  .simulateur__champs { grid-template-columns: 1fr; }
  /* Échelle resserrée et unité sous la valeur : sinon « 366 kWh/m²/an »
     sort de l'écran à côté des barres les plus longues. */
  .etiquette__valeur small { display: block; line-height: 1.1; }
  .etiquette__ligne:nth-child(1) .etiquette__barre { width: 30%; }
  .etiquette__ligne:nth-child(2) .etiquette__barre { width: 36%; }
  .etiquette__ligne:nth-child(3) .etiquette__barre { width: 42%; }
  .etiquette__ligne:nth-child(4) .etiquette__barre { width: 48%; }
  .etiquette__ligne:nth-child(5) .etiquette__barre { width: 54%; }
  .etiquette__ligne:nth-child(6) .etiquette__barre { width: 60%; }
  .etiquette__ligne:nth-child(7) .etiquette__barre { width: 66%; }
  .fiche-mentions,
  .simulateur { padding: 22px 20px; }
}

/* ---------- Questions fréquentes (accordéons <details>) ---------- */
.faq-liste { max-width: 820px; border-top: 1px solid var(--ligne); }
.faq-item { border-bottom: 1px solid var(--ligne); }

.faq-item summary {
  position: relative;
  padding: 18px 40px 18px 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 1.5rem;
  color: var(--bordeaux);
}

.faq-item[open] summary::after { content: "–"; }
.faq-item summary:focus-visible { outline: 2px solid var(--moutarde); outline-offset: 3px; }
.faq-item p { color: var(--encre-douce); margin: 0 0 18px; max-width: 70ch; }

.maj-chiffres { font-size: .85rem; opacity: .75; margin-top: 8px; }

/* ---------- Article (page conseil) ---------- */.article-page { max-width: 720px; margin: 0 auto; }
.article-page h1 { max-width: none; margin-bottom: 24px; }

.article-figure {
  margin: 0 0 28px;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-figure img { width: 100%; display: block; }

.article-figure--hero { aspect-ratio: 16 / 9; }
.article-figure--hero img { height: 100%; object-fit: cover; }

.article-corps { font-size: 1.05rem; line-height: 1.75; color: var(--encre); }

.article-corps p { margin-bottom: 20px; }

.article-corps h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 40px 0 16px;
}

.article-corps h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 14px;
}

.article-corps ul,
.article-corps ol {
  margin: 0 0 20px;
  padding-left: 1.3em;
}

.article-corps li { margin-bottom: 8px; }

.article-corps a { color: var(--bordeaux); text-decoration: underline; text-underline-offset: 2px; }
.article-corps a:hover { color: var(--bordeaux-fonce); }

.article-corps blockquote {
  margin: 0 0 20px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--moutarde);
  color: var(--encre-douce);
  font-style: italic;
}

.article-corps hr {
  border: none;
  border-top: 1px solid var(--ligne);
  margin: 32px 0;
}

.article-corps .article-figure { margin: 28px 0; }

/* Mise en forme choisie dans l’éditeur du CMS, pour les articles
   (.article-corps) comme pour la description d’un bien (.fiche-texte). */
.article-corps, .fiche-texte { display: flow-root; } /* contient les images flottantes */
.article-corps h2 { clear: both; }

.article-corps .article-figure,
.fiche-texte .article-figure { overflow: visible; border-radius: 0; }
.article-corps .article-figure img,
.fiche-texte .article-figure img { border-radius: var(--radius); }
.article-figure figcaption { font-size: .85rem; line-height: 1.4; color: var(--encre-douce); padding: 8px 2px 0; }

/* Position : à gauche ou à droite, le texte entoure l’image puis passe dessous.
   La largeur (en % de la page) est écrite sur la figure elle-même, réglée en
   glissant l’image dans l’éditeur du CMS. S’applique aussi aux vidéos. */
.article-corps .article-figure--centre, .fiche-texte .article-figure--centre { margin: 28px auto; }
.article-corps .article-figure--gauche, .fiche-texte .article-figure--gauche { float: left; margin: 6px 28px 16px 0; }
.article-corps .article-figure--droite, .fiche-texte .article-figure--droite { float: right; margin: 6px 0 16px 28px; }

/* Taille du texte (menu « Aa » de l’éditeur) */
.texte-petit { font-size: .85em; }
.texte-grand { font-size: 1.3em; line-height: 1.3; }
.texte-tres-grand { font-size: 1.7em; line-height: 1.2; }

/* Vidéo : le lecteur n’est chargé qu’au clic (js/main.js). */
.article-video { margin: 28px 0; }
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #231d19;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed__lecture {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.video-embed__lecture:focus-visible { outline: 3px solid var(--moutarde); outline-offset: -6px; }
.video-embed__icone {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--moutarde);
  color: var(--encre);
  font-size: 1.5rem;
  padding-left: 4px;
  transition: transform .2s;
}
.video-embed__lecture:hover .video-embed__icone { transform: scale(1.08); }
.video-embed { container-type: inline-size; }
.video-embed__texte { font-weight: 700; font-size: 1.05rem; }
@container (max-width: 300px) {
  .video-embed__icone { width: 44px; height: 44px; font-size: 1.1rem; }
  .video-embed__texte { font-size: .85rem; }
}
.video-embed__note { display: block; margin-top: 4px; font-size: .78rem; opacity: .75; line-height: 1.4; }
.article-video figcaption { font-size: .85rem; color: var(--encre-douce); padding-top: 8px; }
.article-video figcaption a { color: var(--bordeaux); }

@media (max-width: 720px) {
  /* Sur téléphone, plus de texte autour : une image ou une vidéo par ligne, en pleine largeur. */
  .article-corps .article-figure--gauche, .fiche-texte .article-figure--gauche,
  .article-corps .article-figure--droite, .fiche-texte .article-figure--droite,
  .article-corps .article-figure--centre, .fiche-texte .article-figure--centre {
    float: none;
    width: 100% !important;
    margin: 22px 0;
  }
}

@media (max-width: 720px) {
  .article-corps { font-size: 1rem; }
}

@media (max-width: 720px) {
  .fiche-galerie-principale { aspect-ratio: 4 / 3; }
  .fiche-vignette { width: 72px; height: 52px; }
}

/* Reveal au scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .widget-estimation .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .parcours-grid, .avis-grid, .etapes-grid { grid-template-columns: 1fr; }
  .biens-grid { grid-template-columns: 1fr 1fr; }
  .biens-carousel .bien-card { flex-basis: calc((100% - 26px) / 2); }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .quartiers-grid { grid-template-columns: 1fr 1fr; }
  .estimation-layout { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-bandeau { padding: 40px 28px; }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--papier);
    border-bottom: 1px solid var(--ligne);
    padding: 10px 20px 18px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; font-size: 1.05rem; }

  .logo--image img { height: 26px; }

  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: -10px;
    background: none;
    border: none;
    border-radius: 10px;
    color: var(--encre);
    cursor: pointer;
  }

  .header-cta { display: none; }
  .header-estim { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero-proof { gap: 24px; }
  .quartiers-grid { grid-template-columns: 1fr; }
  .biens-grid { grid-template-columns: 1fr; }
  .biens-carousel .bien-card { flex-basis: 84%; }
  .biens-arrow { width: 36px; height: 36px; font-size: 1.25rem; }
  section { padding: 52px 0; }
  #map-teaser, #map-estimation, #map-quartier { height: 380px; }
}

/* ==========================================================================
   Page Contact (contact.html, générée par build-pages.mjs)
   ========================================================================== */

.contact-infos {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.contact-infos li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  color: var(--encre-douce);
}

.contact-infos strong { color: var(--encre); }
.contact-infos a { color: var(--bordeaux); }

.contact-bien {
  background: var(--creme);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: .92rem;
  color: var(--encre-douce);
}

.contact-bien strong { color: var(--encre); }

.form-field label span { font-weight: 400; color: var(--encre-douce); }

#map-agence { height: 380px; }

/* ==========================================================================
   Pages légales (mentions, confidentialité, honoraires)
   ========================================================================== */

.page-provisoire {
  background: #f3ead2;
  color: var(--moutarde-fonce);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin: 0 0 24px;
  font-size: .88rem;
}

.bareme-cadre { overflow-x: auto; margin: 8px 0 24px; }

.bareme {
  width: 100%;
  border-collapse: collapse;
  font-size: .98rem;
}

.bareme th,
.bareme td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ligne);
}

.bareme th {
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

.bareme td:last-child { font-weight: 700; }

/* ==========================================================================
   Menus déroulants de l'en-tête (Quartiers, L'agence)
   ========================================================================== */

.main-nav { align-items: center; }

.nav-groupe { position: relative; }

.nav-groupe__bouton {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 2px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--encre);
  cursor: pointer;
}

.nav-groupe__bouton::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s;
}

.nav-groupe__bouton[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }

.nav-groupe__bouton:hover,
.nav-groupe--actif > .nav-groupe__bouton {
  color: var(--bordeaux);
  border-bottom-color: var(--moutarde);
}

.nav-groupe__menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: -14px;
  min-width: 240px;
  width: max-content;
  max-width: 340px;
  padding: 8px;
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(36, 31, 24, .12);
  z-index: 10;
}

/* Pont invisible : le menu reste ouvert quand la souris descend vers lui. */
.nav-groupe__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.nav-groupe:hover > .nav-groupe__menu,
.nav-groupe:focus-within > .nav-groupe__menu,
.nav-groupe__bouton[aria-expanded="true"] + .nav-groupe__menu { display: block; }

.main-nav .nav-groupe__menu a {
  display: block;
  padding: 9px 12px;
  border-bottom: 0;
  border-radius: 8px;
  font-size: .92rem;
}

.main-nav .nav-groupe__menu a:hover { background: var(--creme); }

@media (max-width: 1080px) {
  .main-nav { gap: 14px; }
  .main-nav a, .nav-groupe__bouton { font-size: .9rem; }
}

@media (max-width: 720px) {
  .main-nav { align-items: stretch; }
  .nav-groupe__bouton { width: 100%; justify-content: space-between; padding: 12px 0; font-size: 1.05rem; }
  .nav-groupe__menu {
    position: static;
    min-width: 0;
    padding: 0 0 6px 14px;
    background: none;
    border: 0;
    box-shadow: none;
  }
  /* Au toucher, seul le bouton ouvre le sous-menu. */
  .nav-groupe:hover > .nav-groupe__menu,
  .nav-groupe:focus-within > .nav-groupe__menu { display: none; }
  .nav-groupe__bouton[aria-expanded="true"] + .nav-groupe__menu { display: block; }
}

/* ==========================================================================
   Équipe (qui-sommes-nous.html) et avis (avis.html)
   ========================================================================== */

.equipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.equipe-carte {
  padding: 26px 24px;
  background: var(--papier);
  border: 1px solid var(--ligne);
  border-radius: var(--radius);
}

.equipe-photo {
  display: block;
  width: 84px;
  height: 84px;
  margin-bottom: 16px;
  border-radius: 50%;
  object-fit: cover;
}

.equipe-photo--initiales {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--creme);
  border: 1px solid var(--ligne);
  color: var(--bordeaux);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
}

.equipe-carte h3 { font-size: 1.15rem; margin-bottom: 2px; }
.equipe-role { margin-bottom: 12px; font-size: .85rem; font-weight: 700; color: var(--moutarde-fonce); }
.equipe-texte { font-size: .92rem; color: var(--encre-douce); }
.equipe-contact { margin-top: 12px; font-size: .88rem; }
.equipe-contact a { color: var(--bordeaux); }

.avis-mention { margin-top: 24px; font-size: .85rem; color: var(--encre-douce); }

/* ==========================================================================
   Rubriques des actualités (conseils.html), réseaux sociaux (pied de page)
   ========================================================================== */

.rubriques { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }

.rubrique-chip {
  padding: 8px 16px;
  background: var(--papier);
  border: 1.5px solid var(--ligne);
  border-radius: 999px;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--encre);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}

.rubrique-chip:hover { border-color: var(--moutarde); }

.rubrique-chip[aria-pressed="true"],
.rubrique-chip[aria-current="page"] {
  background: var(--fond-sombre);
  border-color: var(--encre);
  color: var(--papier);
}

.footer-reseaux { margin-top: 12px; font-size: .9rem; }

/* Barre de filtres du catalogue : chaque étiquette passe à la ligne avec son menu. */
.filtre { display: inline-flex; align-items: center; gap: 8px; }

.rubrique-chip { text-decoration: none; }

/* Page « Nos + » : une rubrique par bloc, illustration facultative à côté du texte. */
.nosplus-item { display: grid; gap: 24px; align-items: center; padding: 36px 0; border-top: 1px solid var(--ligne); }
.nosplus-item:first-of-type { border-top: 0; }
.nosplus-image { width: 100%; max-height: 280px; object-fit: cover; border-radius: var(--rayon, 12px); }
.nosplus-texte h2 { font-size: 1.35rem; margin-bottom: 12px; }
.nosplus-texte p { color: var(--encre-douce); margin-bottom: 10px; }
@media (min-width: 820px) {
  .nosplus-item:has(.nosplus-image) { grid-template-columns: 5fr 7fr; gap: 40px; }
  .nosplus-item:has(.nosplus-image):nth-of-type(even) .nosplus-image { order: 2; }
}

/* Menu replié (burger) entre 721 et 1180 px : le libellé « Découvrir l'Agence du Quartier » ne tient
   pas sur une ligne dans la barre à cette largeur. En dessous de 721 px, les règles plus haut s'appliquent. */
@media (min-width: 721px) and (max-width: 1180px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--papier);
    border-bottom: 1px solid var(--ligne);
    padding: 10px 28px 18px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; font-size: 1.05rem; }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: -10px;
    background: none;
    border: none;
    border-radius: 10px;
    color: var(--encre);
    cursor: pointer;
  }
  .nav-groupe__bouton { width: 100%; justify-content: space-between; padding: 12px 0; font-size: 1.05rem; }
  .nav-groupe__menu { position: static; min-width: 0; padding: 0 0 6px 14px; background: none; border: 0; box-shadow: none; }
  .nav-groupe:hover > .nav-groupe__menu,
  .nav-groupe:focus-within > .nav-groupe__menu { display: none; }
  .nav-groupe__bouton[aria-expanded="true"] + .nav-groupe__menu { display: block; }
}
@media (min-width: 1181px) {
  .nav-groupe__bouton { white-space: nowrap; }
}

/* biens-vendus.html : les références de vente, rue par rue. */
.ventes-rues { columns: 2 340px; column-gap: 28px; }
.ventes-rue { break-inside: avoid; border-bottom: 1px solid var(--ligne); padding: 10px 0; }
.ventes-rue summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.ventes-rue summary::-webkit-details-marker { display: none; }
.ventes-rue summary small, .ventes-rue li small { color: var(--encre-douce); font-weight: 400; }
.ventes-rue ul { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; gap: 6px; }
.ventes-rue a { color: var(--bordeaux); }

/* ---------- Accueil : carrousel « Nos biens du moment » ----------
   La photo d'abord, en grand, avec le prix posé dessus ; le titre et les détails passent au second plan.
   Deux cartes en largeur sur ordinateur, une (la suivante qui dépasse) sur téléphone. */
.biens-carousel .bien-card--carrousel { flex: 0 0 calc((100% - 26px) / 2); }
.bien-card--carrousel .bien-visuel { position: relative; }
.bien-card--carrousel .bien-media { aspect-ratio: 3 / 2; }
.bien-card--carrousel .bien-prix {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  padding: 6px 16px 7px;
  border-radius: 10px;
  background: var(--bordeaux);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1.1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}
.bien-card--carrousel .bien-body { padding: 14px 20px 16px; }
.bien-card--carrousel .bien-titre { font-size: 1.02rem; line-height: 1.3; margin-bottom: 4px; }
.bien-card--carrousel .bien-meta { font-size: .8rem; color: var(--encre-douce); }
.bien-card--carrousel .bien-meta .bien-loc { font-size: .72rem; margin-bottom: 0; }
@media (max-width: 720px) {
  /* Sur téléphone, on fait glisser le doigt : sans flèches, les cartes prennent toute la largeur. */
  .biens-arrow { display: none; }
  .biens-carousel .bien-card--carrousel { flex-basis: 88%; }
  .bien-card--carrousel .bien-prix { font-size: 1.4rem; left: 10px; bottom: 10px; }
}

/* ---------- Accueil sur téléphone : le héros occupe les trois quarts de l'écran ----------
   Les biens du moment se devinent juste dessous. Les chiffres (déjà donnés plus bas) passent. */
@media (max-width: 720px) {
  .hero-photo { display: flex; align-items: center; min-height: calc(75svh - 56px); padding: 22px 0 18px; }
  .hero-photo .hero-kicker { margin-bottom: 12px; font-size: .7rem; letter-spacing: .12em; }
  .hero-photo h1 { font-size: 1.85rem; max-width: none; }
  .hero-photo .hero-sub { margin-top: 12px; font-size: .95rem; line-height: 1.5; }
  .hero-photo .hero-proof { display: none; }
  .hero-photo .hero-actions { margin-top: 18px; gap: 10px; }
}

/* ---------- Accueil : les avis en carrousel (même mécanique que les biens) ---------- */
.avis-carousel .avis-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.avis-carousel .avis-grid::-webkit-scrollbar { display: none; }
.avis-carousel .avis-card { flex: 0 0 calc((100% - 2 * 22px) / 3); scroll-snap-align: start; }
@media (max-width: 900px) {
  .avis-carousel .avis-card { flex-basis: calc((100% - 22px) / 2); }
}
@media (max-width: 720px) {
  .avis-carousel .avis-card { flex-basis: 88%; }
}

/* ---------- Guide des rues ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rue-sommaire { margin-top: 28px; }
.rue-section { padding: 36px 0; }
.rue-section .section-head { margin-bottom: 18px; }
.rue-texte { max-width: 68ch; }
.rue-texte h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.rue-texte h4 { font-size: 1rem; margin: 18px 0 6px; color: var(--bordeaux); }
.rue-texte p { margin-bottom: 12px; }

.rue-liste { list-style: none; padding: 0; display: grid; gap: 8px; max-width: 80ch; }
.rue-liste li { padding: 10px 14px; background: var(--papier); border: 1px solid var(--ligne); border-radius: 10px; display: grid; gap: 2px; }
.rue-liste li span { color: var(--encre-douce); font-size: .9rem; }
.rue-liste li small { color: var(--encre-douce); font-size: .8rem; }
.rue-liste--ventes { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); max-width: none; margin-bottom: 18px; }
.rue-liste--ventes a { font-weight: 600; }
.rue-source { margin-top: 18px; font-size: .78rem; color: var(--encre-douce); }
.rue-photo { max-width: 760px; margin: 0; border-radius: var(--radius); overflow: hidden; }
.rue-photo img { width: 100%; height: auto; display: block; }
#rue-carte { height: 380px; width: 100%; background: #dcd6c8; }
.rue-carte-section { padding: 10px 0 30px; }
.rue-carte-section .carte-frame { border-color: var(--ligne); box-shadow: var(--ombre); }
.rue-retour { margin-top: 18px; }
.rue-retour a { color: var(--bordeaux); }

.rue-recherche { margin-top: 26px; max-width: 460px; }
.rue-recherche input { width: 100%; font: inherit; padding: 13px 18px; border: 1.5px solid var(--ligne); border-radius: 999px; background: var(--papier); }
.rue-recherche input:focus-visible { outline: 3px solid var(--moutarde); outline-offset: 1px; }
.guide-quartier { background: var(--papier); border: 1px solid var(--ligne); border-radius: var(--radius); padding: 14px 20px; margin-bottom: 12px; }
.guide-quartier summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 12px; list-style: none; }
.guide-quartier summary::-webkit-details-marker { display: none; }
.guide-quartier summary small, .guide-liste small { color: var(--encre-douce); font-weight: 400; font-size: .8rem; margin-left: 6px; }
.guide-quartier > p { margin: 12px 0 6px; }
.guide-quartier a { color: var(--bordeaux); }
.guide-liste { list-style: none; padding: 0; margin: 10px 0 4px; columns: 3 220px; column-gap: 28px; }
.guide-liste li { break-inside: avoid; padding: 4px 0; }
.guide-liste a { color: var(--encre); text-decoration: none; }
.guide-liste a:hover { color: var(--bordeaux); text-decoration: underline; }
.guide-lettre { margin-top: 22px; }
.guide-lettre h3 { font-size: 1.5rem; color: var(--bordeaux); border-bottom: 1px solid var(--ligne); padding-bottom: 4px; }


/* ---------- Accueil : retouches du client (11 octobre) ---------- */
.parcours-card--rouge { background: var(--bordeaux); color: #fff; border-color: var(--bordeaux); }
.parcours-card--rouge h3 { color: #fff; }
.parcours-card--rouge .parcours-desc { color: rgba(255, 255, 255, .85); }
.parcours-card--rouge .parcours-go { color: var(--moutarde-pale); }
.section-head--centre { text-align: center; margin-inline: auto; }
.cta-bandeau--centre { flex-direction: column; justify-content: center; text-align: center; }
.cta-bandeau--centre h2 { max-width: 34ch; margin-inline: auto; }
a.proof-item { color: inherit; text-decoration: none; }
a.proof-item:hover strong { color: var(--bordeaux); }

/* Textes longs justifiés (demande du client) ; les photos de « Nos + » et des actualités ne sont plus rognées. */
/* Textes longs justifiés par défaut (demande du client) : articles, pages, fiches des biens et des ventes, guides des rues
   et des quartiers, réponses des FAQ. Un alignement choisi dans le CMS (gauche, centre…) l'emporte : il est écrit sur le paragraphe. */
.article-corps p, .article-corps li,
.nosplus-texte p,
.rue-texte p,
.fiche-texte p, .fiche-texte li, .fiche-description > p,
.equipe-texte p,
.faq-item p { text-align: justify; hyphens: auto; }
.nosplus-image { object-fit: contain; background: var(--papier); max-height: 320px; }
.biens-grid .bien-media--actu { background: var(--papier); }
.biens-grid .bien-media--actu img { object-fit: contain; }

/* ---------- Contact : critères du projet ; Nous trouver : façade ; pages de rue ---------- */
.criteres { border: 1px solid var(--ligne); border-radius: var(--radius); padding: 16px 18px 6px; margin: 0 0 18px; background: var(--papier); }
.criteres[hidden] { display: none; }
.criteres legend { font-weight: 700; padding: 0 8px; color: var(--bordeaux); }
.criteres legend span { font-weight: 400; color: var(--encre-douce); font-size: .88rem; }
.criteres-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.critere-large { grid-column: 1 / -1; }
@media (max-width: 640px) { .criteres-grille { grid-template-columns: 1fr; } }

.agence-facade { max-width: 760px; margin: 0 auto 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--ombre); }
.agence-facade img { width: 100%; height: auto; display: block; }

.rue-centre { text-align: center; }
.rue-ventes-cartes { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.rue-ventes-cartes li { background: #fff; border: 1px solid var(--ligne); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.rue-ventes-cartes li:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.rue-ventes-cartes a { display: block; color: inherit; text-decoration: none; }
.rue-ventes-cartes img, .rue-ventes-sans-photo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--papier); }
.rue-ventes-texte { display: grid; gap: 3px; padding: 12px 14px 14px; }
.rue-ventes-texte strong { font-size: .94rem; line-height: 1.3; }
.rue-ventes-texte small { color: var(--encre-douce); font-size: .82rem; }

.marqueur-agence span { position: absolute; transform: translate(-50%, -100%); white-space: nowrap; background: var(--bordeaux); color: #fff; font: 700 .78rem/1 var(--sans); padding: 7px 10px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.marqueur-agence span::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--bordeaux); }

/* En-tête sur écran d'ordinateur portable : le logo garde ses proportions, donc le menu se resserre (et le bouton, redoublé
   par la pastille « Estimation gratuite », s'efface) plutôt que de déborder de la page. */
@media (min-width: 1081px) and (max-width: 1480px) {
  .header-cta { display: none; }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: .97rem; }
}

/* « Nos biens actuellement à la vente » : bandeau qui défile en continu. Pas de fondu à l'apparition ; la carte survolée
   (le défilement s'y arrête) est mise en avant, les autres sont grisées. */
.biens-carousel--defile .biens-grid { scroll-snap-type: none; }
.biens-carousel--defile .bien-card { scroll-snap-align: none; transition: transform .25s, box-shadow .25s, opacity .3s, filter .3s; }
.biens-carousel--defile .biens-grid:has(.bien-card:hover, .bien-card:focus-within) .bien-card:not(:hover, :focus-within) {
  opacity: .45;
  filter: grayscale(.8);
}
.biens-carousel--defile .bien-card:hover,
.biens-carousel--defile .bien-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 0 0 2px var(--moutarde), 0 18px 40px rgba(60, 20, 25, .22);
  filter: brightness(1.04) saturate(1.08);
  position: relative;
  z-index: 1;
}

/* ---------- Audit d'accessibilité (octobre) ---------- */
/* Pied de page : « Boulogne-Billancourt » sous le nom, en jaune sur le fond sombre (5,7:1 ; le bordeaux y faisait 1,8:1). */
.site-footer .logo em { color: var(--moutarde); }
/* Numéros des cartes rouges « Quel est votre projet ? » : jaune pâle sur le bordeaux. */
.parcours-card--rouge .parcours-num,
.parcours-card.featured .parcours-num { color: var(--moutarde-pale); }
/* Textes d'exemple des champs : lisibles (le gris par défaut du navigateur était sous 4,5:1). */
::placeholder { color: var(--encre-douce); opacity: .85; }
/* Bouton du menu au clavier. */
.nav-toggle:focus-visible { outline: 3px solid var(--moutarde); outline-offset: 2px; }
/* Lien d'évitement : invisible jusqu'à ce que le clavier l'atteigne. */
.lien-evitement {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 2100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--fond-sombre);
  color: var(--papier);
  font-weight: 700;
  text-decoration: none;
  transition: top .15s;
}
.lien-evitement:focus { top: 12px; outline: 3px solid var(--moutarde); outline-offset: 2px; }
/* Numéros des étapes (Estimation) : le jaune foncé, lisible sur le fond clair (4,9:1). */
.etape-num { color: var(--moutarde-fonce); }

/* Carte : plusieurs ventes à la même adresse, une à la fois dans la bulle (js/carte.js, makePlusieurs). */
.popup-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.popup-nav__rang { font-size: .78rem; font-weight: 700; color: var(--encre-douce); text-align: center; font-variant-numeric: tabular-nums; }
.popup-nav__btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--ligne);
  border-radius: 50%;
  background: var(--papier);
  color: var(--bordeaux);
  cursor: pointer;
}
.popup-nav__btn:hover { background: var(--bordeaux); border-color: var(--bordeaux); color: #fff; }
.popup-nav__btn:focus-visible { outline: 3px solid var(--moutarde); outline-offset: 1px; }
.popup-nav__btn--suivant svg { transform: scaleX(-1); }

/* Plusieurs ventes à la même adresse (js/carte.js, repereEnPile) : une pile de trois points, sans fond ni cadre. */
.repere-pile { background: none; border: 0; cursor: pointer; }
.repere-pile svg { display: block; overflow: visible; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.repere-pile:focus-visible { outline: 3px solid var(--moutarde); outline-offset: 2px; border-radius: 50%; }

/* ---------- Titres en italique (validé par le client) ----------
   Les titres en Fraunces seulement : la police des paragraphes (Karla) n'a pas de vraie italique. */
h1,
h2,
.bien-titre,
.parcours-card h3,
.atout h3,
.etape h3,
.quartier-callout h3,
.form-succes h3,
.article-corps h3 { font-style: italic; }

/* Accueil : le titre des avis est un lien vers les avis Google de l'agence (scripts/build-pages.mjs, titreAvisAccueil). */
.avis-titre-lien { color: inherit; text-decoration: none; }
h2 .avis-titre-lien:hover { color: var(--bordeaux); }
p > .avis-titre-lien { font-weight: 700; color: var(--bordeaux); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Accueil : l'agence dans les médias (scripts/build-pages.mjs, sectionMedias) ----------
   Une ligne de logos en gris (sur téléphone aussi, demande du client), en couleur au survol ou au clavier. */
.medias { padding-top: 24px; }
.medias-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: center;
  gap: 28px 24px;
}
.medias-logos li { display: flex; justify-content: center; }
.media-logo { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 6px; border-radius: 8px; }
.media-logo img { display: block; width: auto; max-width: 100%; filter: grayscale(1); opacity: .55; transition: filter .25s, opacity .25s, transform .25s; }
.media-logo:hover img,
.media-logo:focus-visible img { filter: none; opacity: 1; transform: translateY(-2px); }
.media-logo:focus-visible { outline: 3px solid var(--moutarde); outline-offset: 2px; }
@media (max-width: 960px) { .medias-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .medias-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; } }
@media (prefers-reduced-motion: reduce) { .media-logo img { transition: none; } .media-logo:hover img { transform: none; } }

/* Retours du client du 25 octobre 2026 : centrages. */
.section-head--large { max-width: none; }
.hero-proof--centre { justify-content: center; text-align: center; }
.hero-proof--centre .proof-item span { display: block; }
.hero--centre .container { text-align: center; }
.hero--centre .hero-sub { margin-inline: auto; }
.hero--centre .rue-recherche { margin-inline: auto; }
.hero--centre .fil-ariane { justify-content: center; }
.hero--centre h1 { margin-inline: auto; max-width: none; }
