/* Charte BARNES 2024 : noir, blanc, greige ; rouge réservé aux boutons ; Raleway ; aucun gris.
   Mobile d'abord : les styles de base visent le téléphone, les @media élargissent. */

@font-face { font-family: Raleway; src: url(/fonts/raleway-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Raleway; src: url(/fonts/raleway-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Raleway; src: url(/fonts/raleway-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Raleway; src: url(/fonts/raleway-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Raleway; src: url(/fonts/raleway-latin-700-italic.woff2) format("woff2"); font-weight: 600 700; font-style: italic; font-display: swap; }

:root {
  --black: #000000;
  --white: #FFFFFF;
  --greige: #EAE6DD;
  --red: #C70A33;
  --font: Raleway, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: 20px;
  --max: 1280px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--white); color: var(--black); font-family: var(--font); font-size: 17px; line-height: 1.6; letter-spacing: 0; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.black :focus-visible, .footer :focus-visible, .carousel :focus-visible { outline-color: var(--white); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

.skip { position: absolute; left: -9999px; top: 0; background: var(--black); color: var(--white); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Mise en page */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.narrow-wrap { max-width: 920px; }
.narrow { max-width: 720px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.section { padding-block: 64px; }
.section-sm { padding-block: 40px; }
.greige { background: var(--greige); }
.black { background: var(--black); color: var(--white); }
.black a:hover { color: var(--white); text-decoration: underline; }
.split { display: flex; flex-direction: column; gap: 40px; }
.split > * { min-width: 0; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 40px 28px; }

/* Typographie */
.eyebrow, .meta { font-weight: 600; font-size: 15px; }
.h1 { font-size: clamp(32px, 8vw, 60px); line-height: 1.1; font-weight: 700; }
.h1-article { font-size: clamp(30px, 6.5vw, 50px); }
.h2 { font-size: clamp(28px, 6vw, 42px); line-height: 1.15; font-weight: 700; }
.h3 { font-size: clamp(22px, 4.6vw, 28px); line-height: 1.25; font-weight: 700; }
.h4 { font-size: 20px; line-height: 1.3; font-weight: 700; }
.lead { font-size: clamp(18px, 3.8vw, 20px); }
.link { font-weight: 700; border-bottom: 2px solid currentColor; padding-bottom: 3px; align-self: start; }
.link-white { color: var(--white); }
.todo { font-style: normal; font-weight: 600; }

/* Boutons : cibles tactiles d'au moins 48 px */
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 24px; font: inherit; font-weight: 600; border: 0; cursor: pointer; text-align: center; }
.btn-red { background: var(--red); color: var(--white); }
.btn-black { background: var(--black); color: var(--white); }
.btn-white { background: var(--white); color: var(--black); }
.btn-red:hover, .btn-black:hover { color: var(--white); text-decoration: underline; }
.btn-white:hover { color: var(--black); text-decoration: underline; }

/* Bandeau supérieur (masqué sur téléphone) */
.topbar { display: none; background: var(--black); color: var(--white); font-size: 14px; }
.topbar-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 9px; }
.topbar-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* En-tête + menu mobile */
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--white); border-bottom: 1px solid var(--black); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; padding-block: 10px; }
/* Marque : nom (Bauer Bodoni, en tracés SVG) à gauche du logo BARNES ; empilés sur téléphone */
.menu-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 4px 0 12px; background: none; border: 0; font: inherit; font-weight: 600; color: var(--black); cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 2px; background: var(--black); transition: transform .2s; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -7px; } .menu-icon::after { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--black); flex-direction: column; padding: 8px var(--gutter) 24px; max-height: calc(100dvh - 68px); overflow-y: auto; }
.nav.open { display: flex; }
.nav a { display: flex; align-items: center; min-height: 52px; font-size: 19px; font-weight: 600; border-bottom: 1px solid var(--black); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { margin-top: 16px; border-bottom: 0; justify-content: center; }

/* Héros */
.hero { position: relative; background: var(--black); }
.hero-img { width: 100%; height: 56vw; min-height: 260px; max-height: 640px; object-fit: cover; }
.hero-plain .hero-img { height: 62vw; max-height: 620px; }
.hero-in { padding-inline: 0; }
.hero-box { background: var(--black); color: var(--white); padding: 32px var(--gutter) 40px; display: flex; flex-direction: column; gap: 18px; }
.hero-box .actions .btn { flex: 1 1 220px; }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding-block: 20px; border-top: 1px solid var(--black); font-size: 15px; }
.stat-v { font-size: clamp(30px, 8vw, 54px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }

/* Inscriptions */
.listing { background: var(--white); display: flex; flex-direction: column; }
.listing-ph { aspect-ratio: 4 / 3; background: var(--black); color: var(--white); display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-size: 15px; }
.listing-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.listing .h3 { font-size: 22px; }
.price { font-size: 24px; font-weight: 700; padding-top: 6px; font-variant-numeric: tabular-nums; }

/* Mandats signature */
.duo-lg { display: grid; grid-template-columns: 1fr; gap: 40px; }
.sig { display: flex; flex-direction: column; gap: 12px; color: var(--white); }
.sig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sig-title { font-size: 24px; font-weight: 700; }

/* Services */
.img-wide { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-top: 8px; }
.services { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--black); }
.service { padding-block: 22px; border-bottom: 1px solid var(--black); display: flex; flex-direction: column; gap: 6px; }

/* Bande photo + texte */
.band { display: flex; flex-direction: column; }
.band-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.band-text { padding: 48px var(--gutter); max-width: 720px; }

/* Portrait */
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.center { align-items: center; }

/* FAQ */
.faq { border-top: 1px solid var(--black); }
.faq details { border-bottom: 1px solid var(--black); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding-block: 16px; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: 0 0 18px; height: 18px; }
.plus::before, .plus::after { content: ""; position: absolute; background: currentColor; left: 0; top: 8px; width: 18px; height: 2px; transition: transform .2s; }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0deg); }
.faq details p { padding-bottom: 20px; max-width: 720px; }

/* Formulaires : 16 px minimum pour éviter le zoom automatique sur iPhone */
.form { display: grid; grid-template-columns: 1fr; gap: 16px; align-content: start; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
input[type="text"], input[type="tel"], input[type="email"] { font: inherit; font-size: 17px; min-height: 52px; padding: 12px 14px; border: 1px solid var(--black); border-radius: 0; background: var(--white); color: var(--black); width: 100%; -webkit-appearance: none; appearance: none; }
.form .btn { width: 100%; }
.news { display: flex; flex-direction: column; gap: 12px; }
.news input { background: var(--black); color: var(--white); border-color: var(--white); }
.news input::placeholder { color: var(--white); }

/* Pied de page */

/* Barre d'appel fixe (téléphone seulement) */

/* Guide : en-têtes de page, fil d'Ariane, filtres */
.page-head { padding-block: 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 15px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.crumbs { align-items: center; }
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 44px; padding: 0 18px; font: inherit; font-size: 15px; font-weight: 600; background: var(--greige); color: var(--black); border: 1px solid var(--black); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--black); color: var(--white); }

/* Cartes d'articles */
.card { display: flex; flex-direction: column; gap: 12px; }
.card-img { display: block; overflow: hidden; }
.card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-title { font-size: 21px; line-height: 1.3; font-weight: 700; }
.card-title a:hover { text-decoration: underline; color: var(--black); }
.card-text { font-size: 16px; }
[data-cat][hidden] { display: none; }

.feature { display: flex; flex-direction: column; background: var(--black); color: var(--white); }
.feature-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feature-text { padding: 28px var(--gutter) 36px; }
.feature .h2 a:hover { color: var(--white); text-decoration: underline; }

/* Article */
.article-head { padding-block: 32px 40px; }
.article-wrap { max-width: 860px; }
.byline { display: flex; align-items: center; gap: 14px; font-size: 15px; line-height: 1.4; }
.byline img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.byline div { display: flex; flex-direction: column; }
.article-img { width: calc(100% + var(--gutter) * 2); max-width: none; margin-inline: calc(var(--gutter) * -1); aspect-ratio: 3 / 2; object-fit: cover; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 20px; }
.share-label { font-weight: 700; margin-right: 4px; width: 100%; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; font: inherit; font-size: 15px; font-weight: 600; border: 1px solid var(--black); background: var(--white); color: var(--black); cursor: pointer; }
.share-native { background: var(--black); color: var(--white); }
.share-btn:hover { text-decoration: underline; color: var(--black); }
.share-native:hover { color: var(--white); }
.summary { background: var(--black); color: var(--white); padding: 24px var(--gutter); margin-inline: calc(var(--gutter) * -1); display: flex; flex-direction: column; gap: 12px; }
.summary ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose { font-size: 18px; line-height: 1.75; padding-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.prose h2 { font-size: clamp(24px, 5vw, 32px); line-height: 1.2; padding-top: 16px; }
.prose h3 { font-size: 20px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; border-top: 1px solid var(--black); }
.steps li { counter-increment: s; position: relative; padding: 22px 0 22px 48px; border-bottom: 1px solid var(--black); display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 18px; font-size: 28px; font-weight: 700; }
.note { background: var(--greige); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.note-title { font-weight: 700; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--black); }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--black); }
td:first-child { font-weight: 600; }
.glossary { margin: 0; border-top: 1px solid var(--black); }
.glossary div { padding-block: 16px; border-bottom: 1px solid var(--black); display: flex; flex-direction: column; gap: 4px; }
.glossary dt { font-weight: 700; }
.glossary dd { margin: 0; }
.duo { display: grid; grid-template-columns: 1fr; gap: 20px; }
.duo a, .duo div { display: flex; flex-direction: column; gap: 8px; font-weight: 700; text-decoration: none; }
.duo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.author { background: var(--greige); margin-top: 48px; }
.author-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.author-text { padding: 24px; }
.toc { border-top: 3px solid var(--black); padding-top: 18px; margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.toc ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.toc a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.pillar-sec { padding-top: 48px; }
.pillar-sec ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

/* Réalisation */
.facts { margin: 0; background: var(--greige); padding: 8px 22px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--black); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; text-align: right; }
.gallery { display: grid; grid-template-columns: 1fr; gap: 12px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Tablette ---------- */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
      .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form .full { grid-column: 1 / -1; }
  .form .btn { width: auto; grid-column: 1 / -1; justify-self: start; }
  .news { flex-direction: row; }
  .news input { flex: 1 1 auto; }
  .share-label { width: auto; }
  .duo, .duo-lg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery .wide { grid-column: 1 / -1; }
  .glossary div { flex-direction: row; gap: 24px; }
  .glossary dt { flex: 0 0 210px; }
      .article-img, .summary { width: 100%; margin-inline: 0; }
  .summary { padding: 28px 32px; }
}

/* ---------- Ordinateur ---------- */
@media (min-width: 960px) {
    .topbar { display: block; }
  .section { padding-block: 96px; }
  .header-in { min-height: 84px; }
      .menu-btn { display: none; }
  .nav, .nav.open { display: flex; position: static; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 26px; padding: 0; border: 0; max-height: none; overflow: visible; background: none; }
  .nav a { min-height: 44px; font-size: 16px; border: 0; }
  .nav .btn { margin: 0; min-height: 48px; padding: 0 20px; }
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { flex-direction: row; gap: 64px; }
  .split-a { flex: 1 1 0; }
  .split-b { flex: 1.15 1 0; }
  .hero-img { height: 640px; }
  .hero-in { padding-inline: var(--gutter); margin-top: -220px; position: relative; }
  .hero-box { max-width: 760px; padding: 48px; }
  .hero-box .actions .btn { flex: 0 0 auto; }
  .band { flex-direction: row; }
  .band-img { flex: 1.2 1 0; min-width: 0; aspect-ratio: auto; height: 600px; }
  .band-text { flex: 1 1 0; min-width: 0; padding: 72px 56px; justify-content: center; }
  .feature { flex-direction: row; }
  .feature-img { flex: 1.4 1 0; min-width: 0; }
  .feature-img img { height: 100%; aspect-ratio: auto; min-height: 440px; }
  .feature-text { flex: 1 1 0; min-width: 0; padding: 48px; justify-content: center; }
    .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .gallery .wide { grid-column: span 2; }
  .gallery img { height: 380px; aspect-ratio: auto; }
  .author { display: grid; grid-template-columns: 1fr 1fr; }
  .author-img { height: 100%; aspect-ratio: auto; }
  .author-text { padding: 32px; justify-content: center; }
}

@media (min-width: 960px) {
  .gallery-main { grid-template-columns: 2fr 1fr; }
  .gm-main { height: 560px; aspect-ratio: auto; }
  .gm-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gm-side img { height: 276px; aspect-ratio: auto; }
  .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .visit { padding: 28px; }
}

/* ---------- Marque (en-tête) ----------
   Téléphone : nom en Bauer Bodoni + ligne « Courtier immobilier · BARNES Québec ».
   Ordinateur : nom | logo BARNES, alignés sur la même hauteur visuelle. */
.brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand-lockup { display: flex; flex-direction: column; gap: 6px; }
.brand .brand-name { height: 15px; width: auto; display: block; }
.brand-sub { font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
.brand-sep, .brand .brand-barnes { display: none; }
.menu-label { font-size: 16px; }
.nav-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; }
.nav-foot img { height: 28px; width: auto; }
.nav .nav-foot a { min-height: 44px; border: 0; font-size: 17px; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 600px) {
  .brand .brand-name { height: 17px; }
}
@media (min-width: 960px) {
  .nav-foot { display: none; }
  .brand { gap: 22px; }
  .brand .brand-name { height: 18px; }
  .brand-sub { display: none; }
  .brand-sep { display: block; width: 1px; height: 32px; background: var(--black); }
  .brand .brand-barnes { display: block; height: 30px; width: auto; }
}

/* ---------- Pied de page ---------- */
.footer { background: var(--black); color: var(--white); padding-block: 64px 0; }
.footer a { color: var(--white); }
.footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-brand .brand-name { height: 18px; width: auto; }
.footer-brand p { font-size: 15px; }
.footer-brand .brand-barnes { height: 30px; width: auto; margin-top: 10px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 16px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-col address { font-style: normal; line-height: 1.5; padding-top: 8px; }
.footer-title { font-size: 14px; font-weight: 700; padding-bottom: 6px; }
.footer-bottom { border-top: 1px solid var(--white); padding-block: 20px; font-size: 14px; }
@media (min-width: 600px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
}

/* ---------- Barre d'action mobile ----------
   Apparaît après le haut de page, se cache sur le formulaire d'évaluation. */
.action-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px; padding: 6px; background: var(--black);
  transform: translateY(160%); transition: transform .3s ease; }
.action-bar.show { transform: none; }
.action-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-weight: 700; font-size: 16px; }
.ab-call { color: var(--white); border: 1px solid var(--white); }
.ab-eval { background: var(--red); color: var(--white); }
.action-bar a:hover { color: var(--white); }
@media (max-width: 959px) { .footer-bottom { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }
@media (min-width: 960px) { .action-bar { display: none; } }

/* ---------- Formulaire d'évaluation ---------- */
.checks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 14px; height: 8px; border-left: 2px solid var(--black); border-bottom: 2px solid var(--black); transform: rotate(-45deg); }
.eval { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.eval fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.eval legend { padding: 0 0 6px; }
.eval .field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; min-width: 0; position: relative; }
.flabel { font-weight: 600; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
select { font: inherit; font-size: 17px; min-height: 52px; padding: 0 14px; border: 1px solid var(--black); border-radius: 0; background: var(--white); color: var(--black); width: 100%; -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--black); font-weight: 600; font-size: 15px; cursor: pointer; background: var(--white); }
.pill input:checked + span { background: var(--black); color: var(--white); }
.pill input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 2px; }
.eval-progress { display: none; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; }
.eval-bar { flex: 1; height: 2px; background: var(--greige); position: relative; }
.eval-bar span { position: absolute; left: 0; top: 0; bottom: 0; width: 33.3%; background: var(--black); transition: width .3s; }
.eval-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.eval-nav .btn { flex: 1 1 160px; }
.btn-ghost { background: var(--white); color: var(--black); border: 1px solid var(--black); }
.btn-ghost:hover { color: var(--black); text-decoration: underline; }
.eval-error { font-weight: 700; }
.eval input[aria-invalid="true"] { border-width: 3px; }
/* Étapes : actives seulement quand le script est chargé (sinon tout le formulaire reste visible) */
.eval.js .eval-progress { display: flex; }
.eval.js .eval-step { display: none; }
.eval.js .eval-step.active { display: flex; }
/* Suggestions d'adresse */
.suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; margin: 0; padding: 0; list-style: none; background: var(--white); border: 1px solid var(--black); border-top: 0; max-height: 280px; overflow-y: auto; }
.suggest li { padding: 12px 14px; font-weight: 400; cursor: pointer; border-top: 1px solid var(--greige); line-height: 1.35; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--greige); }
.suggest .s-main { font-weight: 600; display: block; }
.suggest .s-sub { font-size: 14px; }
.suggest .s-credit { font-size: 12px; padding: 8px 14px; cursor: default; background: var(--white); }
.eval-section .eval-intro { align-self: start; }

/* ---------- Champs communs ---------- */
textarea { font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--black); border-radius: 0; background: var(--white); color: var(--black); width: 100%; resize: vertical; -webkit-appearance: none; appearance: none; }
input[type="number"] { font: inherit; font-size: 17px; min-height: 52px; padding: 12px 14px; border: 1px solid var(--black); border-radius: 0; background: var(--white); color: var(--black); width: 100%; -webkit-appearance: none; appearance: none; -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.small { font-size: 14px; }
.small a, .prose-p a { text-decoration: underline; text-underline-offset: 3px; }
.muted { font-weight: 400; }

/* ---------- Cartes de propriétés ---------- */
.listing-img { position: relative; display: block; overflow: hidden; background: var(--black); }
.listing-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.listing:hover .listing-img img { transform: scale(1.03); }
.badge { position: absolute; left: 0; top: 0; background: var(--black); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; }
.badge-red { background: var(--white); color: var(--black); }
.listing-body { padding: 20px 0 0; display: flex; flex-direction: column; gap: 6px; }
.greige .listing, .grid-dark .listing { background: transparent; }
.grid-dark .listing { color: var(--white); }
.grid-dark .listing .h3 a:hover { color: var(--white); }
.facts-line { font-size: 15px; }
.listing .h3 a:hover { color: var(--black); text-decoration: underline; text-underline-offset: 4px; }
[data-status][hidden] { display: none; }
.empty { padding-block: 24px; font-weight: 600; }
.prose-p { font-size: 18px; line-height: 1.75; max-width: 68ch; }
.steps-grid { display: grid; grid-template-columns: 1fr; border-top: 0; gap: 0 32px; }
.steps-grid li { border-top: 1px solid var(--black); border-bottom: 0; }
.plain-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.services-dark, .services-dark .service { border-color: var(--white); }
.crumbs-white a, .crumbs-white span { color: var(--white); }
@media (min-width: 600px) { .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Fiche propriété : carrousel ---------- */
.carousel { position: relative; background: var(--black); color: var(--white); }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline-offset: -3px; }
.car-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.car-slide img { width: 100%; height: 72vw; max-height: 78vh; min-height: 240px; object-fit: cover; background: var(--black); }
.car-ui { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px var(--gutter); }
.car-cap { display: flex; align-items: baseline; gap: 14px; font-size: 15px; min-width: 0; }
.car-count { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.car-label { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.car-btns { display: none; }
.car-btn { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: var(--white); color: var(--black); border: 0; cursor: pointer; }
.car-btn:hover { background: var(--greige); }
.car-btn:disabled { cursor: default; background: var(--black); color: var(--white); border: 1px solid var(--white); }
.car-all { font: inherit; font-size: 15px; font-weight: 600; min-height: 44px; padding: 0 16px; background: var(--black); color: var(--white); border: 1px solid var(--white); cursor: pointer; }
.car-all:hover { text-decoration: underline; }
.car-thumbs-wrap { display: none; }
.car-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-block: 12px; scrollbar-width: thin; }
.car-thumb { flex: 0 0 112px; padding: 0; border: 0; background: none; cursor: pointer; outline-offset: 2px; position: relative; }
.car-thumb img { width: 112px; height: 76px; object-fit: cover; }
.car-thumb[aria-current="true"]::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--black); }
.car-grid { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--white); color: var(--black); }
.car-grid::backdrop { background: var(--black); }
.car-grid-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter); background: var(--white); border-bottom: 1px solid var(--black); }
.car-grid-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 8px var(--gutter) 40px; }
.car-grid-in button { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--black); }
.car-grid-in img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 960px) {
  .car-slide img { height: 74vh; min-height: 520px; max-height: 820px; }
  .car-ui { position: absolute; left: 0; right: 0; bottom: 0; padding: 0; align-items: flex-end; pointer-events: none; }
  .car-ui > * { pointer-events: auto; }
  .car-cap { background: var(--black); padding: 14px 20px; }
  .car-btns { display: flex; order: 3; }
  .car-all { order: 2; margin-left: auto; min-height: 52px; background: var(--white); color: var(--black); border: 0; margin-right: 1px; }
  .car-thumbs-wrap { display: block; }
  .car-grid-in { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: var(--max); margin: 0 auto; }
}

/* ---------- Fiche propriété : contenu ---------- */
.listing-detail { padding-top: 32px; }
.ld-head { display: flex; flex-direction: column; gap: 16px; }
.ld-price { font-size: clamp(28px, 7vw, 44px); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.keyfacts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--black); }
.keyfacts li { display: flex; flex-direction: column; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--black); }
.keyfacts strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.keyfacts span { font-size: 14px; }
.accs { border-top: 1px solid var(--black); }
.acc { border-bottom: 1px solid var(--black); }
.acc summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding-block: 14px; font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.acc-body { padding-bottom: 24px; display: flex; flex-direction: column; gap: 14px; }
.kv { margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--greige); }
.kv div:last-child { border-bottom: 0; }
.kv dt { font-weight: 600; }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.rooms { min-width: 480px; font-size: 15px; }
.rooms th { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.map { position: relative; aspect-ratio: 16 / 10; background: var(--greige); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.agent-card { border: 1px solid var(--black); padding: 22px; gap: 18px; }
.agent-card .btn { width: 100%; }
.form-visit { grid-template-columns: 1fr !important; }
.form-visit .pills { display: flex; }
.form-visit .btn { width: 100% !important; justify-self: stretch !important; }
@media (min-width: 600px) { .keyfacts { grid-template-columns: repeat(4, minmax(0, 1fr)); } .keyfacts li { padding-right: 16px; } }
@media (min-width: 960px) {
  .ld-head { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 40px; }
  .ld-split { align-items: flex-start; }
  .ld-split .split-a { position: sticky; top: 108px; flex: 0 0 380px; }
  .agent-card { padding: 28px; }
}

/* ---------- Calculateurs ---------- */
.calc { display: flex; flex-direction: column; gap: 20px; }
.calc-fields { display: grid; grid-template-columns: 1fr; gap: 14px; }
.calc-fields label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.calc-out { font-size: 17px; }
.calc-out strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.calc-res { margin: 0; background: var(--black); color: var(--white); padding: 20px 22px; display: grid; grid-template-columns: 1fr; gap: 0; }
.calc-res div { display: flex; justify-content: space-between; gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--white); }
.calc-res div:last-child { border-bottom: 0; }
.calc-res dt { font-weight: 400; }
.calc-res dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.calc-res .big dd { font-size: 26px; }
.calc-warn { font-weight: 600; border-left: 3px solid var(--black); padding-left: 12px; }
.tool { padding-block: 56px; border-top: 1px solid var(--black); scroll-margin-top: 80px; }
.tool:first-of-type { border-top: 0; }
.tool-nav { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--black); border: 1px solid var(--black); }
.tool-nav a { background: var(--white); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.tool-nav a:hover { background: var(--greige); color: var(--black); }
.tool-nav strong { font-size: 18px; }
.tool-nav span { font-size: 15px; }
@media (min-width: 600px) {
  .calc-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-inline .calc-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .tool-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tool .split-b { position: sticky; top: 108px; }
}

/* ---------- À propos ---------- */
.letter { font-size: 19px; line-height: 1.8; display: flex; flex-direction: column; gap: 22px; max-width: 64ch; }
.letter .sign { height: 20px; width: auto; margin-top: 8px; }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--white); }
.values li { padding: 24px 0; border-bottom: 1px solid var(--white); display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 960px) { .values { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; } }

/* ---------- Raffinements typographiques ---------- */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.h1, .h2 { font-weight: 600; letter-spacing: -0.01em; }
.stat span:last-child { font-size: 14px; }
.btn { letter-spacing: .02em; }
@media (min-width: 960px) { .tool .calc.split { flex-direction: row; } .tool .calc .split-a { flex: 0 0 420px; } }
.letter .sign { align-self: flex-start; }
@media (min-width: 960px) { .hero:not(.hero-plain) .hero-img { height: min(82vh, 860px); min-height: 600px; max-height: none; } }

/* ---------- Outils : sections dépliantes ---------- */
.tools-list { padding-block: 40px 72px; }
.tool-acc { border-bottom: 1px solid var(--black); scroll-margin-top: 90px; }
.tool-acc:first-child { border-top: 1px solid var(--black); }
.tool-acc summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 96px; padding-block: 24px; cursor: pointer; list-style: none; }
.tool-acc summary::-webkit-details-marker { display: none; }
.tool-sum { display: flex; flex-direction: column; gap: 4px; }
.tool-sum span:last-child { font-size: 15px; }
.tool-acc summary:hover .h3 { text-decoration: underline; text-underline-offset: 5px; }
.tool-acc .plus { flex-basis: 22px; height: 22px; }
.tool-acc .plus::before, .tool-acc .plus::after { width: 22px; top: 10px; }
.tool-acc > .calc { padding-bottom: 48px; }
@media (min-width: 960px) {
  .tool-acc summary { min-height: 120px; }
  .tool-acc .calc.split { flex-direction: row; }
  .tool-acc .calc .split-a { flex: 0 0 420px; position: sticky; top: 108px; }
}

/* ---------- Vidéo (YouTube au clic) ---------- */
.video { position: relative; background: var(--black); aspect-ratio: 16 / 9; overflow: hidden; }
.video > img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; padding: 0 0 0 4px; background: var(--white); color: var(--black); border: 0; border-radius: 50%; cursor: pointer; }
.video:hover .video-play { background: var(--greige); }
.video { cursor: pointer; }
.video + p, .split-a > .video { margin-top: 8px; }
.video.playing .video-play, .video.playing > img { display: none; }
.video-hero .video { aspect-ratio: auto; height: 62vw; max-height: 82vh; min-height: 260px; }
.car-video { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--black); color: var(--white); }
.car-video::backdrop { background: var(--black); }
.car-video .car-grid-head { background: var(--black); border-color: var(--white); }
.car-video-in { padding: 16px var(--gutter); max-width: 1280px; margin: 0 auto; }
@media (min-width: 960px) { .video-hero .video { height: 78vh; } .car-video-in { padding-top: 6vh; } }

/* =====================================================================
   Adoucissement (oct. 2026) : charte BARNES appliquée plus fidèlement —
   Raleway Regular pour les grands titres, aucun espacement de lettres,
   pas de phrases en majuscules, lignes greige au lieu de noires, plus d'air.
   ===================================================================== */
:root { --line: var(--greige); }
.section { padding-block: 72px; }
.h1 { font-size: clamp(30px, 5.4vw, 48px); line-height: 1.15; font-weight: 400; letter-spacing: 0; }
.h1-article { font-size: clamp(28px, 4.6vw, 40px); }
.h2 { font-size: clamp(25px, 4vw, 34px); line-height: 1.2; font-weight: 400; letter-spacing: 0; }
.h3 { font-size: clamp(20px, 3vw, 23px); font-weight: 600; }
.h4 { font-size: 18px; font-weight: 600; }
.lead { font-size: clamp(17px, 2.4vw, 19px); }
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.btn { letter-spacing: 0; font-weight: 600; }
.badge { letter-spacing: 0; text-transform: none; font-size: 13px; font-weight: 600; }
.rooms th { letter-spacing: 0; text-transform: none; font-size: 14px; }
.price, .ld-price { font-weight: 600; }
.ld-price { font-size: clamp(26px, 4.6vw, 34px); }
.listing .h3 { font-size: 20px; font-weight: 600; }
.card-title { font-size: 19px; font-weight: 600; }
.sig-title { font-size: 21px; font-weight: 600; }
.stat-v { font-weight: 400; }
.prose { font-size: 17px; }
.prose-p { font-size: 17px; }
.letter { font-size: 17px; line-height: 1.75; gap: 18px; }

/* Liens : pas de soulignement permanent (charte) */
.link { border-bottom: 0; padding-bottom: 0; font-weight: 600; }
.link::after { content: " →"; }
.crumbs a { text-decoration: none; }
.crumbs { font-size: 14px; }
.nav a[aria-current="page"] { text-decoration: none; font-weight: 700; }
.prose a, .small a, .prose-p a { text-decoration: none; font-weight: 600; }
.footer a:hover, .black a:hover { text-decoration: underline; }

/* Lignes : greige sur fond blanc, blanc sur fond greige */
.header { border-bottom-color: var(--line); }
.stat, .services, .service, .faq, .faq details, .steps, .steps li, .steps-grid li, .accs, .acc, .keyfacts, .keyfacts li,
.tool-acc, .tool-acc:first-child, .toc, .glossary, .glossary div, th, td, .table-wrap, .facts div { border-color: var(--line); }
.greige .stat, .greige .services, .greige .service, .greige .faq, .greige .faq details, .greige .steps li,
.greige .facts div, .greige .acc, .greige .accs { border-color: var(--white); }
.services-dark, .services-dark .service, .values, .values li { border-color: var(--white); }
.facts { background: var(--white); }
.greige .facts { background: var(--white); }
.agent-card { border-color: var(--line); }
.chip { background: var(--white); border-color: var(--black); }
.chip[aria-pressed="false"] { border-color: var(--white); }
.greige .chip[aria-pressed="false"] { background: var(--white); border-color: var(--white); }
.tool-nav { background: var(--line); border-color: var(--line); }

/* En-tête : nom + ligne « Courtier immobilier · BARNES Québec » partout, sans logo */
.brand-sub { display: block !important; }
@media (min-width: 960px) {
  .section { padding-block: 112px; }
  .header-in { min-height: 88px; }
  .brand .brand-name { height: 19px; }
  .brand-lockup { gap: 8px; }
  .brand-sub { font-size: 13px; }
}
.nav-foot { justify-content: flex-start; gap: 24px; flex-wrap: wrap; }
.nav .nav-foot a { text-decoration: none; font-weight: 600; }
/* Encadré du héros en blanc (plus doux que le bloc noir) */
.hero { background: var(--white); }
.hero-box { background: var(--white); color: var(--black); }
.hero-box .btn-white { background: var(--white); color: var(--black); border: 1px solid var(--black); }
.hero-box .crumbs-white a, .hero-box .crumbs-white span { color: var(--black); }
.sig-section .sig { color: var(--black); }
.sig-section .sig:hover .sig-title { text-decoration: underline; text-underline-offset: 5px; }
.values-section .values, .values-section .values li { border-color: var(--line); }

/* ---------- Témoignages, portfolio, services, réseau ---------- */
.quotes { display: grid; grid-template-columns: 1fr; gap: 20px; }
.quote { margin: 0; background: var(--greige); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.greige .quote { background: var(--white); }
.quote blockquote { margin: 0; font-style: italic; font-size: 16px; line-height: 1.7; }
.quote figcaption { font-weight: 600; font-size: 15px; }
.g-rating { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.g-score { font-size: 34px; line-height: 1; }
.g-stars { letter-spacing: 0; font-size: 18px; }
.portfolio table { min-width: 0; }
.portfolio td:last-child, .portfolio th:last-child { text-align: right; white-space: nowrap; }
.black .portfolio th, .black .portfolio td { border-color: var(--white); }
.acc-count { font-weight: 400; font-size: 14px; margin-left: 8px; }
.svc { margin: 0; display: grid; gap: 0; }
.svc div { padding-block: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.greige .svc div { border-color: var(--white); }
.svc dt { font-weight: 600; }
.svc dd { margin: 0; font-size: 16px; }
.netstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; border-top: 1px solid var(--line); padding-top: 28px; }
.netstats div { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.netstats .stat-v { font-size: clamp(30px, 5vw, 44px); line-height: 1; }
.greige .netstats { border-color: var(--white); }
.netstats-sm .stat-v { font-size: 30px; }
.values-4 { border-color: var(--line); }
@media (min-width: 720px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .netstats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .netstats-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .values-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =====================================================================
   Raffinement (12 oct. 2026) : titres à empattements (Bodoni Moda, proche du
   Bauer Bodoni de BARNES), sections noires de retour, ton sur ton greige/blanc,
   séparation nette entre les sections, cartes de propriétés retravaillées.
   ===================================================================== */
@font-face { font-family: "Bodoni Moda"; src: url(/fonts/bodoni-moda-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url(/fonts/bodoni-moda-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url(/fonts/bodoni-moda-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
:root { --serif: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif; }

/* Titres */
.h1, .h2, .listing-title, .sig-title, .ld-price, .listing-price, .stat-v, .g-score, .tool-sum .h3, .card-title, .quote blockquote, .keyfacts strong {
  font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
.h1 { font-size: clamp(34px, 5.8vw, 58px); line-height: 1.08; }
.h1-article { font-size: clamp(30px, 4.8vw, 46px); }
.h2 { font-size: clamp(29px, 4.4vw, 44px); line-height: 1.12; }
.tool-sum .h3 { font-size: clamp(22px, 3vw, 28px); }
.card-title { font-size: 22px; line-height: 1.25; }
.quote blockquote { font-size: 19px; line-height: 1.55; font-style: italic; }
.eyebrow { font-size: 13px; font-weight: 600; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 12px; }

/* Séparation des sections : alternance des fonds, filet greige entre deux sections blanches */
.section { padding-block: 80px; }
.section:not(.greige):not(.black) + .section:not(.greige):not(.black),
.section:not(.greige):not(.black) + .section-sm:not(.greige):not(.black) { border-top: 1px solid var(--line); }
@media (min-width: 960px) { .section { padding-block: 128px; } }

/* Sections noires, raffinées */
.black { --line: var(--white); }
.black .eyebrow, .black p, .black .h2, .black .h3, .black .h4 { color: var(--white); }
.black .btn-black { background: var(--white); color: var(--black); }
.black .btn-black:hover { color: var(--black); }
.black .btn-white { background: var(--black); color: var(--white); border: 1px solid var(--white); }
.black .btn-white:hover { color: var(--white); }
.black .link { color: var(--white); }
.black .service, .black .services, .black .values, .black .values li, .black .netstats, .black .portfolio th, .black .portfolio td, .black .faq, .black .faq details { border-color: var(--white); }
.black .sig { color: var(--white); }
.black .sig-title { font-size: 26px; }
.black .listing-body { background: var(--black); color: var(--white); border-color: var(--white); }
.black .listing-title a, .black .listing-meta, .black .listing-facts, .black .listing-price { color: var(--white); }
.black .plain-list li, .black .plain-list strong { color: var(--white); }
.band.black .band-text { color: var(--white); }
.values-section.black .values, .values-section.black .values li { border-color: var(--white); }

/* Ton sur ton : greige ↔ blanc */
.greige .quote, .greige .agent-card, .greige .tool-acc { background: var(--white); }
.quote { background: var(--greige); border: 0; }
.greige .quote { background: var(--white); }

/* Cartes de propriétés : panneau d'information ton sur ton */
.listing { background: transparent; }
.listing-body { background: var(--greige); padding: 22px 22px 24px; gap: 0; display: flex; flex-direction: column; flex: 1; }
.greige .listing-body { background: var(--white); }
.listing-meta { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.listing-title { font-size: 25px; line-height: 1.15; margin: 0 0 14px; }
.listing-title a:hover { text-decoration: underline; text-underline-offset: 5px; }
.listing-facts { list-style: none; margin: 0 0 16px; padding: 12px 0 0; border-top: 1px solid var(--white); display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.greige .listing-facts { border-color: var(--greige); }
.listing-facts strong { font-weight: 600; }
.listing-price { font-size: 26px; line-height: 1; margin-top: auto; padding-top: 4px; }
.listing { display: flex; flex-direction: column; }
.grid-3 .listing { height: 100%; }
.badge { font-size: 12px; padding: 7px 12px; }
.badge-red { background: var(--white); color: var(--black); }

/* Fiche propriété : prix et faits en serif */
.ld-price { font-size: clamp(30px, 5vw, 42px); }
.keyfacts strong { font-size: 26px; }
.stat-v { font-weight: 400; }

/* ---------- Témoignages en sections dépliantes ---------- */
.temo-list { border-top: 1px solid var(--line); }
.greige .temo-list, .greige .temo { border-color: var(--white); }
.temo { border-bottom: 1px solid var(--line); }
.temo summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 12px; padding: 26px 0; }
.temo summary::-webkit-details-marker { display: none; }
.temo-quote { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.6vw, 26px); line-height: 1.3; }

.temo-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; }
.temo-name { font-weight: 600; }
.temo-more { font-weight: 600; white-space: nowrap; }
.temo-more::after { content: " +"; }
.temo[open] .temo-more::after { content: " −"; }
.temo summary:hover .temo-more { text-decoration: underline; text-underline-offset: 4px; }
.temo-full { margin: 0 0 26px; font-size: 16px; line-height: 1.7; }
.g-rating { margin-top: 4px; }

/* ---------- Chiffres du réseau BARNES ---------- */
.netband { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.netband div { padding: 26px 16px 26px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.netband div:nth-child(odd) { border-right: 1px solid var(--line); }
.netband div:nth-child(even) { padding-left: 20px; }
.netband dt { font-family: var(--serif); font-size: clamp(36px, 6vw, 56px); line-height: 1; }
.netband dd { margin: 0; font-size: 14px; line-height: 1.4; }
.black .netband, .black .netband div { border-color: var(--white); }
@media (min-width: 960px) {
  .netband { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .netband div { border-bottom: 0; border-right: 1px solid var(--line); padding: 34px 24px; }
  .netband div:first-child { padding-left: 0; }
  .netband div:last-child { border-right: 0; }
  .netband div:nth-child(even) { padding-left: 24px; }
}

/* ---------- Section film ---------- */
.film-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 960px) { .film-grid { grid-template-columns: 5fr 7fr; gap: 64px; } }

/* =====================================================================
   Retour à l'esprit du premier design (12 oct. 2026) : Raleway Bold, titres
   plus petits et affirmés, encadré noir sur la photo d'accueil, sections
   séparées par le fond seulement. Le Bodoni n'est plus utilisé.
   ===================================================================== */
.h1, .h2, .listing-title, .sig-title, .ld-price, .listing-price, .stat-v, .g-score, .tool-sum .h3, .card-title, .keyfacts strong, .netband dt, .temo-quote {
  font-family: var(--font); letter-spacing: 0; }
.h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; font-weight: 700; }
.h1-article { font-size: clamp(28px, 4vw, 40px); }
.h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.15; font-weight: 700; }
.h3 { font-size: clamp(19px, 2.4vw, 22px); font-weight: 700; }
.tool-sum .h3 { font-size: clamp(19px, 2.4vw, 22px); font-weight: 700; }
.card-title { font-size: 19px; font-weight: 700; }
.listing-title { font-size: 20px; font-weight: 700; line-height: 1.25; }
.listing-price { font-size: 22px; font-weight: 700; }
.sig-title, .black .sig-title { font-size: 20px; font-weight: 700; }
.ld-price { font-size: clamp(26px, 4vw, 36px); font-weight: 700; }
.keyfacts strong { font-size: 22px; font-weight: 700; }
.netband dt { font-size: clamp(30px, 4.4vw, 42px); font-weight: 700; }
.g-score { font-size: 30px; font-weight: 700; }
.temo-quote { font-style: normal; font-weight: 700; font-size: clamp(18px, 2vw, 21px); line-height: 1.35; }
.quote blockquote { font-family: var(--font); }
.eyebrow { font-size: 13px; font-weight: 700; }
.eyebrow::before { content: none; }
.lead { font-size: clamp(16px, 2vw, 18px); }

/* Sections : le fond seul sépare, sans filet, rythme plus serré */
.section:not(.greige):not(.black) + .section:not(.greige):not(.black),
.section:not(.greige):not(.black) + .section-sm:not(.greige):not(.black) { border-top: 0; }
.section { padding-block: 64px; }
@media (min-width: 960px) { .section { padding-block: 96px; } }

/* Héros : encadré noir, texte blanc */
.hero { background: var(--black); }
.hero-box { background: var(--black); color: var(--white); }
.hero-box .btn-white { background: var(--white); color: var(--black); border: 0; }
.hero-box .crumbs-white a, .hero-box .crumbs-white span { color: var(--white); }
@media (min-width: 960px) { .hero-box { max-width: 680px; padding: 44px 48px; } }

/* ---------- Cartes de propriétés, esprit du premier design ---------- */
.sec-intro { font-size: 15px; max-width: 560px; }
.listing-body { background: var(--white); padding: 20px 20px 22px; }
.greige .listing-body { background: var(--white); }
.listing-meta { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.listing-title { font-size: 19px; font-weight: 700; margin: 0 0 10px; }
.listing-facts { border-top: 0; padding-top: 0; margin-bottom: 8px; font-size: 14px; gap: 2px 14px; }
.listing-facts li + li::before { content: "·"; margin-right: 14px; }
.listing-facts { gap: 2px 0; }
.listing-facts li + li::before { margin: 0 8px; }
.listing-desc { font-size: 14px; line-height: 1.55; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.listing-price { font-size: 20px; font-weight: 700; }
.listing-sold .listing-desc { display: none; }
.black .listing-body { background: var(--black); }
/* Cartes sur fond blanc : blanches, fin contour greige (pas de remplissage beige) */
.listing-body { background: var(--white); }
.section:not(.greige):not(.black) .listing, .section-sm:not(.greige):not(.black) .listing { border: 1px solid var(--greige); }
.listing-facts { border-top: 0; }

/* ---------- Fiche propriété : en-tête et faits clés ---------- */
.ld-head { display: flex; flex-direction: column; gap: 20px; padding-bottom: 4px; }
.ld-id { display: flex; flex-direction: column; gap: 10px; }
.ld-place { font-size: 17px; }
.ld-buy { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ld-price-label { font-size: 13px; font-weight: 700; }
.ld-price { font-size: clamp(28px, 4vw, 38px); font-weight: 700; line-height: 1.1; margin-bottom: 10px; white-space: nowrap; }
.keyfacts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--black); border-top: 0; border-left: 0; }
.keyfacts div { padding: 16px 18px; border-top: 1px solid var(--black); border-left: 1px solid var(--black); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.keyfacts dt { font-size: 13px; font-weight: 600; }
.keyfacts dd { margin: 0; font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
@media (min-width: 720px) { .keyfacts { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; } }
@media (min-width: 960px) {
  .ld-head { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; }
  .ld-buy { align-items: flex-end; text-align: right; }
}
.agent-card { border-color: var(--black); scroll-margin-top: 110px; }
/* Tag « Vendu » en rouge */
.badge-red, .listing-sold .badge { background: var(--red); color: var(--white); }

/* ---------- Fiche propriété : bande de faits clés ---------- */
.facts-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--black); border-bottom: 1px solid var(--black); }
.facts-strip li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px 12px 20px 0; min-width: 0; }
.facts-strip li + li { border-left: 1px solid var(--greige); padding-left: 16px; }
.facts-strip strong { font-size: 20px; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.facts-strip span { font-size: 13px; line-height: 1.3; }
.ld-ref { font-size: 13px; margin-top: -16px; }
@media (min-width: 720px) {
  .facts-strip li { flex-direction: row; align-items: center; gap: 14px; padding: 24px 20px 24px 0; flex-wrap: wrap; }
  .facts-strip li + li { padding-left: 28px; }
  .facts-strip strong { font-size: 24px; }
  .facts-strip span { width: 100%; margin-left: 40px; margin-top: -10px; }
}
.facts-strip { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.facts-strip strong { overflow-wrap: normal; word-break: normal; hyphens: manual; }
@media (max-width: 719px) { .facts-strip strong { font-size: 17px; } .facts-strip li + li { padding-left: 12px; } }

/* Deux films côte à côte (Vendre) */
.film-head { max-width: 680px; margin-bottom: 40px; }
.film-pair { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) { .film-pair { grid-template-columns: 1fr 1fr; gap: 24px; } }
.film-pair figure { margin: 0; }
.film-pair figcaption { margin-top: 14px; font-size: 14px; letter-spacing: .04em; }
.film-pair figcaption strong { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; margin-bottom: 2px; }
.video-type { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; padding: 24px 28px; background: var(--black); color: var(--white); text-align: left; }
.video-type strong { font-size: clamp(22px, 3vw, 32px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.video-type span { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.video-type span:first-child { position: absolute; top: 24px; left: 28px; }
.video.playing .video-type { display: none; }

/* Mobile : menu plus léger, boutons plus compacts */
@media (max-width: 959px) {
  .nav { border-bottom: 1px solid var(--greige); }
  .nav a { min-height: 50px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--greige); }
  .nav a[aria-current="page"] { font-weight: 700; }
  .nav .btn { min-height: 44px; font-size: 15px; font-weight: 600; }
  .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }
  .hero-box .actions { gap: 10px; }
  .hero-box .actions .btn { flex: 1 1 100%; }
  .action-bar { padding: 5px; gap: 5px; }
  .action-bar a { min-height: 40px; font-size: 14px; font-weight: 600; }
  .action-bar svg { width: 16px; height: 16px; }
}

/* Pied de page : colonne Quartiers ; figures et sources des articles */
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr 1fr; gap: 40px; } }
.footer-quartiers a { font-size: 14px; }
.prose .article-fig { margin: 2.5rem 0; }
.prose .article-fig img { width: 100%; height: auto; display: block; }
.prose .article-fig figcaption { margin-top: 10px; font-size: 14px; font-style: italic; }
.sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--greige); }
.sources ol { margin: 12px 0 0; padding-left: 1.2em; font-size: 14px; line-height: 1.6; }
.sources li + li { margin-top: 6px; }
.sources a { word-break: break-word; }
.quartiers-nav { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--black); }
@media (min-width: 700px) { .quartiers-nav { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
@media (min-width: 1100px) { .quartiers-nav { grid-template-columns: repeat(3, 1fr); } }
.quartiers-nav a { display: flex; justify-content: space-between; align-items: center; min-height: 56px; border-bottom: 1px solid var(--black); font-weight: 600; font-size: 17px; }
.quartiers-nav a span { font-weight: 400; font-size: 14px; }

/* Italique (Raleway Italic, charte BARNES) : un mot d'accent dans les titres, les citations, les légendes */
.h1 em, .h2 em, .h3 em { font-style: italic; font-weight: inherit; }
.temo-quote { font-style: italic; }
.note p:not(.note-title) { font-style: italic; }
.letter-close { font-style: italic; }
.lead-italic, .article-head .lead { font-style: italic; }

/* Bandes photo + texte : la photo suit la hauteur du texte sur desktop ; chiffres BARNES sur une ligne en mobile */
@media (min-width: 960px) {
  .band { align-items: stretch; }
  .band-img { height: auto; min-height: 560px; align-self: stretch; }
}
.netstats-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; }
@media (max-width: 599px) { .netstats-sm .stat-v { font-size: 26px; } .netstats-sm div { font-size: 13px; } }

/* Signature de la lettre : assez grande pour se lire comme une signature (demandé le 16 octobre 2026) */
.letter .sign { height: 26px; max-width: 100%; margin-top: 6px; }
@media (max-width: 599px) { .letter .sign { height: 20px; } }

/* Crédit photo (images sous licence libre) */
.img-credit { margin: 8px 0 0; font-size: 12px; font-style: italic; }
.img-credit a, .article-fig figcaption a { text-decoration: underline; }

/* Rapports de marché */
.mkt-table { font-size: 14px; min-width: 720px; }
.mkt-table th[scope="row"] { font-weight: 600; text-align: left; white-space: normal; min-width: 150px; }
.mkt-table td { white-space: nowrap; vertical-align: top; }
.mkt-table .tn { display: block; font-size: 12px; font-style: italic; margin-top: 2px; }
.source-note { font-size: 13px; font-style: italic; margin-top: 10px; }
.mkt-table td{white-space:nowrap}.mkt-table th[scope=row]{white-space:normal}

/* ---------- Demande de visite : date et heure ---------- */
.form-visit fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-visit legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.date-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.date-strip .pill { flex: 0 0 auto; scroll-snap-align: start; }
.date-strip .pill span { flex-direction: column; justify-content: center; min-height: 64px; width: 64px; padding: 0; gap: 2px; line-height: 1.1; }
.date-strip .pill small { font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; }
.date-strip .pill b { font-size: 20px; font-weight: 600; }
.date-strip .pill input:disabled + span { opacity: .35; cursor: not-allowed; }
.time-pills .pill span { min-width: 64px; justify-content: center; padding: 0 10px; }
.form-hint { font-size: 14px; color: var(--grey, #6b6b6b); margin: 8px 0 0; }
.form-visit .req { color: var(--red, #c8102e); font-weight: 600; }
.form-visit .form-hint.full { margin: 0; }

/* ---------- Brouillon d'article ---------- */
.draft-banner { margin: 0; padding: 10px 16px; background: var(--red, #C70A33); color: #fff; font-weight: 600; font-size: 14px; text-align: center; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.legal h2 { margin-top: 12px; }

/* ---------- Formulaire de visite par étapes ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-visit .vstep { border-top: 1px solid var(--black); padding-top: 14px; display: grid; gap: 12px; }
.form-visit .vstep[hidden] { display: none; }
.vstep-h { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; font-size: 16px; }
.vstep-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--black); font-size: 13px; flex: 0 0 auto; }
.vstep-val { font-weight: 400; margin-left: auto; text-align: right; }
.vstep-edit { display: none; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; color: var(--black); }
.vstep-b { display: grid; gap: 12px; }
.js-steps .vstep.is-open .vstep-n { background: var(--black); color: var(--white); }
.js-steps .vstep.is-done .vstep-b { display: none; }
.js-steps .vstep.is-done .vstep-edit { display: inline; }
.js-steps .vstep.is-done .vstep-n { background: var(--black); color: var(--white); }
.js-steps .vstep:not(.is-open):not(.is-done) .vstep-b { display: none; }
.vstep-next { justify-self: start; }
.form-visit textarea[aria-invalid="true"] { outline: 2px solid var(--red, #c8102e); }
/* Le numéro de l'étape « coordonnées » dépend du chemin choisi. */
.form-visit .when-info-i { display: none; }
.form-visit:has(input[name="type"][value="information"]:checked) .when-info-i { display: inline; }
.form-visit:has(input[name="type"][value="information"]:checked) .when-visit-i,
.form-visit:has(input[name="type"][value="information"]:checked) label.when-visit { display: none; }
/* Sans JavaScript : tout visible, la branche « question » aussi. */
.form-visit:not(.js-steps) .vstep-edit, .form-visit:not(.js-steps) .vstep-next { display: none; }

/* ---------- Carte des transactions ---------- */
.map-section { padding: clamp(56px, 8vw, 104px) 0; background: var(--white); }
.map-head { display: grid; gap: 28px; align-items: end; margin-bottom: 32px; }
@media (min-width: 900px) { .map-head { grid-template-columns: minmax(0, 46rem); } }
.map-head-txt .h2 { max-width: 18ch; }
.map-lead { margin: 0; max-width: 46ch; font-size: 17px; line-height: 1.55; }
.map-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--black); }
.map-chiffres div { padding: 14px 0 0; }
.map-chiffres dt { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1; }
.map-chiffres dd { margin: 6px 0 0; font-size: 14px; }
.map-full { position: relative; width: 100%; }
.map-tx { height: min(72vh, 680px); min-height: 440px; background: #EAE6DD; position: relative; z-index: 0; border-top: 1px solid var(--black); border-bottom: 1px solid var(--black); }
.map-tx .leaflet-tile-pane { filter: grayscale(1) contrast(1.05) brightness(1.04); }
.map-tx-attente { margin: 0; padding: 24px; }
.map-panneau { position: absolute; z-index: 500; top: 16px; right: 16px; background: var(--white); border: 1px solid var(--black); padding: 12px; display: grid; gap: 10px; }
.map-tx-filtres { display: flex; gap: 6px; }
.map-tx-filtres .chip { min-height: 36px; padding: 0 12px; }
.map-tx-legende { display: flex; gap: 16px; margin: 0; font-size: 13px; }
.map-tx-legende > span { display: inline-flex; align-items: center; gap: 6px; }
.map-tx-legende .pt { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--black); }
.pt-map { border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--red); }
.pt-map.pt-vente, .map-tx-legende .pt-vente { background: var(--red); }
.pt-map.pt-loc, .map-tx-legende .pt-loc { background: var(--red, #C70A33); }
.grappe { background: var(--red); color: var(--white); border-radius: 50%; display: flex !important; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--red); transition: transform .15s; }
.grappe:hover { transform: scale(1.08); }
.map-tx .leaflet-popup-content-wrapper { border-radius: 0; border: 1px solid var(--black); box-shadow: none; }
.map-tx .leaflet-popup-content { font-family: inherit; font-size: 14px; line-height: 1.45; margin: 12px 14px; }
.map-tx .leaflet-popup-tip { border: 1px solid var(--black); box-shadow: none; }
.map-tx .leaflet-bar a { border-radius: 0 !important; color: var(--black); }
.map-tx .leaflet-bar { border-radius: 0; border: 1px solid var(--black) !important; box-shadow: none; }
.map-tx-secteurs { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; }
.map-tx-secteurs li { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid #EAE6DD; }
.map-tx-secteurs strong { font-size: 20px; min-width: 2ch; }
.map-note { margin: 18px 0 0; font-size: 13px; }
@media (max-width: 640px) {
  .map-chiffres { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .map-tx { height: 64vh; min-height: 380px; }
  .map-panneau { position: static; border: 0; border-bottom: 1px solid var(--black); padding: 12px 16px; }
  .map-full { display: flex; flex-direction: column-reverse; }
  .map-tx-secteurs { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .map-tx-secteurs li { font-size: 14px; gap: 8px; }
  .map-tx-secteurs strong { font-size: 17px; }
}

/* ---------- Témoins ---------- */
.temoins { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; display: flex; justify-content: center; pointer-events: none; }
.temoins[hidden] { display: none; }
.temoins-in { pointer-events: auto; background: var(--white); color: var(--black); border: 1px solid var(--black); max-width: 560px; width: 100%; padding: 20px; display: grid; gap: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.temoins-in p { margin: 0; font-size: 15px; line-height: 1.5; }
.temoins-titre { font-weight: 700; font-size: 17px !important; }
.temoins-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.temoins-btns .btn { flex: 1 1 auto; min-height: 44px; }
.temoins-choix { display: grid; gap: 10px; }
.temoins-choix[hidden] { display: none; }
.temoins-opt { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.temoins-opt input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; }
.temoins-opt strong { display: block; }
@media (max-width: 640px) { .temoins { bottom: 72px; left: 8px; right: 8px; } }
.lien-temoins { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; margin-left: 16px; }
.map-clic { display: flex; align-items: center; justify-content: center; min-height: 160px; background: #EAE6DD; }

.pop-statut { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; }
.pop-statut.loc { color: var(--red, #C70A33); }

.map-chiffres-2 { grid-template-columns: repeat(2, 1fr) !important; }

/* Animations (site.js) : seulement quand le JavaScript a posé .anim */
.anim .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.anim .rv.in { opacity: 1; transform: none; }
.px-cadre { overflow: hidden; }
.px { will-change: transform; }
.band-img.px { transform: scale(1.2); clip-path: inset(8.33%); }
@media (prefers-reduced-motion: reduce) { .anim .rv { opacity: 1; transform: none; } .px { transform: none !important; } }

/* Vérification Cloudflare Turnstile : n'apparaît que si le visiteur doit cliquer. */
.turnstile:empty { display: none; }
.turnstile { margin: 0 0 16px; }

/* Sélecteur de langue (FR / EN) : discret, à côté du menu. */
.nav .lang-switch { font-size: 14px; letter-spacing: .14em; font-weight: 600; }
@media (min-width: 960px) {
  .nav .lang-switch { min-height: 32px; padding: 0 10px; border: 1px solid currentColor; font-size: 12px; }
}
