/* Brique & Clé : feuille de style.
   Matières : la craie de Lezennes (fond), la brique rouge lilloise (action),
   la brique sang-de-bœuf de l'enseigne (bandes sombres), le mortier (filets),
   l'encre des plans. Titres en Bricolage Grotesque étroite (enseigne peinte),
   texte en Radio Canada. Angles de 3 px au plus. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-condensed-latin.woff2") format("woff2");
  font-weight: 700;
  font-stretch: 75%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Radio Canada";
  src: url("fonts/radio-canada-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --chaux: #F3F1EB;
  --mortier: #E9E4DA;
  --pierre: #FBFAF7;
  --encre: #2B1E19;
  --encre-douce: #5E4C44;
  --trait: #7D6D64;
  --joint: #D8D0C3;
  --brique: #A53A22;
  --brique-fonce: #852C18;
  --sang: #5A1A17;
  --sang-clair: #74271F;
  --clair: #FBF7F2;
  --eau: #3E4D55;
  --focus: #2B1E19;

  /* Prix au m² sur la carte : six teintes de brique, de la chaux à la brique cuite. */
  --n1: #F1E0D5;
  --n2: #E6C2AF;
  --n3: #D9A089;
  --n4: #C67C60;
  --n5: #AD5A3E;
  --n6: #873723;

  /* Étiquettes réglementaires du DPE (modèle officiel, 1er septembre 2025). */
  --dpe-a: #009C6D;
  --dpe-b: #52B153;
  --dpe-c: #A5CB74;
  --dpe-d: #F4E70F;
  --dpe-e: #F0B50F;
  --dpe-f: #EB8235;
  --dpe-g: #D7221F;
  --ges-a: #A4DBF8;
  --ges-b: #8CB4D3;
  --ges-c: #7792B1;
  --ges-d: #606F8F;
  --ges-e: #4D5271;
  --ges-f: #393551;
  --ges-g: #281B35;

  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --texte: "Radio Canada", "Segoe UI", Arial, sans-serif;

  --t-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --t-1: clamp(1.15rem, 1.05rem + 0.45vw, 1.35rem);
  --t-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem);
  --t-3: clamp(1.95rem, 1.45rem + 2.2vw, 3.25rem);
  --t-4: clamp(2.4rem, 1.55rem + 3.6vw, 4.5rem);
  --t-5: clamp(2.7rem, 1.6rem + 4.7vw, 5.6rem);

  --rayon: 3px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --entete-h: 72px;
  --gouttiere: 16px;
}

@media (min-width: 760px) {
  :root { --gouttiere: 32px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--brnsg-barre, 0px) + var(--entete-h) + 12px);
  scrollbar-color: var(--brique) var(--mortier);
}

body {
  margin: 0;
  background: var(--chaux);
  color: var(--encre);
  font-family: var(--texte);
  font-size: var(--t-0);
  line-height: 1.6;
  font-feature-settings: "kern";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--brique); color: var(--clair); }

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }

a { color: var(--brique); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--brique-fonce); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

button, input, select, textarea { font: inherit; color: inherit; }

.visuellement-cache {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lien-evitement {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10000;
  padding: 0.6rem 1rem;
  background: var(--encre);
  color: var(--chaux);
  border-radius: var(--rayon);
}
.lien-evitement:focus { top: calc(var(--brnsg-barre, 0px) + 8px); color: var(--chaux); }

.colonne {
  width: min(100% - var(--gouttiere) * 2, 1320px);
  margin-inline: auto;
}

/* ------------------------------------------------------------------ */
/* Typographie                                                          */
/* ------------------------------------------------------------------ */

.hero-titre, .page-titre, .titre-section, .fiche-titre, .prix-montant, .bien-prix,
.logo-nom, .avis-chiffre, .exemple-prix, .resultat-prix, .chiffres dt, .code-erreur,
.quartier-nom, .panneau-zone, .panneau-prix, .etape-duree {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 75%;
  letter-spacing: -0.005em;
}

.titre-section {
  font-size: var(--t-3);
  line-height: 1;
  text-wrap: balance;
}

.sous-titre {
  font-size: var(--t-1);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.chapo {
  font-size: var(--t-1);
  line-height: 1.5;
  color: var(--encre-douce);
  max-width: 62ch;
  text-wrap: pretty;
}

.note, .source {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--encre-douce);
}

.source a { display: inline; }
.icone {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icone-source { display: inline-block; width: 0.9em; height: 0.9em; margin-left: 0.2em; vertical-align: -0.08em; }

p + p { margin-top: 0.9rem; }
.titre-section + p, .titre-section + ul, .titre-section + dl { margin-top: 18px; }
.prix-bloc p + p, .carte-panneau p + p, .bien-corps p + p, .resultat-sortie p + p, .exemple-fourchette p + p, .avis-carte p + p, .equipe-mini p + p { margin-top: 0; }

/* ------------------------------------------------------------------ */
/* Boutons et liens                                                     */
/* ------------------------------------------------------------------ */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.3rem;
  border: 2px solid var(--brique);
  border-radius: var(--rayon);
  background: var(--brique);
  color: var(--clair);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.bouton:hover { background: var(--brique-fonce); border-color: var(--brique-fonce); color: var(--clair); text-decoration: none; }
.bouton:active { transform: translateY(1px); }
.bouton .icone-fleche { transition: transform 0.25s var(--ease); }
.bouton:hover .icone-fleche { transform: translateX(3px); }
.bouton--petit { min-height: 40px; padding: 0.5rem 0.95rem; font-size: 0.95rem; }
.bouton--large { width: 100%; }
.bouton--clair { background: var(--chaux); border-color: var(--chaux); color: var(--sang); }
.bouton--clair:hover { background: var(--clair); border-color: var(--clair); color: var(--sang); }
.bouton[aria-busy="true"] { opacity: 0.75; cursor: progress; }

.bouton-secondaire {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--encre);
  border-radius: var(--rayon);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}
.bouton-secondaire:hover { background: var(--encre); color: var(--chaux); }

.bouton-lien {
  padding: 0.25rem 0;
  border: 0;
  background: none;
  color: var(--brique);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.bouton-lien:hover { color: var(--brique-fonce); }

.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.lien-fleche .icone-fleche { transition: transform 0.25s var(--ease); }
.lien-fleche:hover { text-decoration: none; }
.lien-fleche:hover .icone-fleche { transform: translateX(4px); }
.lien-fleche--discret { margin-top: 1rem; font-size: 0.95rem; }

.lien-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--encre);
  font-weight: 700;
  text-decoration: none;
}
.lien-tel:hover { color: var(--brique); }
.lien-tel--grand { font-family: var(--display); font-stretch: 75%; font-size: var(--t-2); }

/* ------------------------------------------------------------------ */
/* En-tête                                                              */
/* ------------------------------------------------------------------ */

.entete {
  position: sticky;
  top: var(--brnsg-barre, 0px);
  z-index: 900;
  background: var(--chaux);
  border-bottom: 1px solid var(--joint);
  transition: transform 0.35s var(--ease);
}
.entete--cachee { transform: translateY(-110%); }

.entete-grille {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--entete-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--encre);
  text-decoration: none;
  flex: none;
}
.logo:hover { color: var(--encre); }
.logo-brique { width: 44px; height: auto; fill: var(--brique); transition: transform 0.4s var(--ease); }
.logo:hover .logo-brique { transform: rotate(-4deg); }
.logo-nom {
  font-size: 1.95rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo-et { color: var(--brique); }

.nav { margin-left: auto; }
.nav-liste { display: flex; gap: 4px; }
.nav-liste a {
  display: block;
  padding: 0.5rem 0.7rem;
  color: var(--encre);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--rayon);
  position: relative;
}
.nav-liste a::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--brique);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-liste a:hover::after,
.nav-liste a[aria-current="page"]::after { transform: scaleX(1); }
.nav-mobile { display: none; }

.entete-actions { display: flex; align-items: center; gap: 16px; }
.entete-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--encre);
  text-decoration: none;
}
.entete-tel:hover { color: var(--brique); }
.entete-tel-texte { display: grid; line-height: 1.15; }
.entete-tel-numero { font-weight: 700; white-space: nowrap; }
.entete-statut { font-size: 0.78rem; color: var(--encre-douce); white-space: nowrap; }
.entete-statut[data-etat="ouvert"]::before,
[data-brnsg-horaires][data-etat="ouvert"]::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  vertical-align: 0.08em;
  background: #2E7D4F;
  border-radius: 1px;
}

.menu-bouton {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0.4rem 0.6rem;
  border: 1.5px solid var(--encre);
  border-radius: var(--rayon);
  background: none;
  cursor: pointer;
  font-weight: 700;
}
.menu-bouton-traits, .menu-bouton-traits::before, .menu-bouton-traits::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.menu-bouton-traits { position: relative; }
.menu-bouton-traits::before, .menu-bouton-traits::after { content: ""; position: absolute; left: 0; }
.menu-bouton-traits::before { top: -6px; }
.menu-bouton-traits::after { top: 6px; }
.menu-bouton[aria-expanded="true"] .menu-bouton-traits { background: transparent; }
.menu-bouton[aria-expanded="true"] .menu-bouton-traits::before { transform: translateY(6px) rotate(45deg); }
.menu-bouton[aria-expanded="true"] .menu-bouton-traits::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .entete-estimer { display: none; }
}

@media (max-width: 960px) {
  :root { --entete-h: 64px; }
  .entete-grille { gap: 12px; }
  .logo-nom { font-size: 1.6rem; }
  .logo-brique { width: 36px; }
  .menu-bouton { display: inline-flex; }
  .nav {
    position: fixed;
    inset: calc(var(--brnsg-barre, 0px) + var(--entete-h)) 0 0 0;
    z-index: 899;
    display: none;
    flex-direction: column;
    gap: 24px;
    padding: 24px var(--gouttiere) 40px;
    background: var(--chaux);
    overflow-y: auto;
  }
  .nav.nav--ouverte { display: flex; }
  .nav-liste { flex-direction: column; gap: 0; }
  .nav-liste a { padding: 0.9rem 0; font-family: var(--display); font-stretch: 75%; font-size: 2rem; line-height: 1.1; border-bottom: 1px solid var(--joint); border-radius: 0; }
  .nav-liste a::after { display: none; }
  .nav-liste a[aria-current="page"] { color: var(--brique); }
  .nav-mobile { display: grid; gap: 12px; }
  .nav-mobile-adresse, .nav-mobile-statut { font-size: 0.95rem; color: var(--encre-douce); }
  body.menu-ouvert { overflow: hidden; }
}

@media (max-width: 560px) {
  .entete-tel .icone { display: none; }
  .entete-statut { display: none; }
  .entete-tel-numero { font-size: 0.95rem; }
  .logo-nom { font-size: 1.32rem; }
  .logo-brique { width: 30px; }
  .menu-bouton-texte { display: none; }
  .entete-grille { gap: 10px; }
  .entete-actions { gap: 10px; }
}

@media (max-width: 360px) {
  .logo-nom { font-size: 1.12rem; }
  .entete-tel-numero { font-size: 0.86rem; }
}

/* ------------------------------------------------------------------ */
/* Sections                                                             */
/* ------------------------------------------------------------------ */

.section { padding-block: clamp(52px, 3rem + 2.6vw, 96px); }
.section--serre { padding-block: clamp(40px, 2.5rem + 2vw, 72px); }
.section--mortier { background: var(--mortier); }
.section--sombre {
  --focus: #F3F1EB;
  background: var(--sang);
  color: var(--chaux);
}
.section--sombre a:not(.bouton) { color: var(--clair); }
.section--sombre .note, .section--sombre .source { color: #E3D3CB; }
.section--sombre .chapo { color: #EADDD6; }

.section-tete { display: grid; gap: 14px; margin-bottom: clamp(28px, 1.5rem + 1.5vw, 48px); max-width: 860px; }
.section-tete--ligne {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
}
.section-tete--ligne > div { display: grid; gap: 14px; }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 2rem + 3vw, 96px); align-items: start; }
@media (max-width: 900px) {
  .duo { grid-template-columns: 1fr; }
  .section-tete--ligne { grid-template-columns: 1fr; align-items: start; }
}

.page-tete { padding-block: clamp(32px, 1.5rem + 2.5vw, 72px) clamp(24px, 1rem + 2vw, 48px); }
.page-titre { font-size: var(--t-4); line-height: 0.98; text-wrap: balance; max-width: 18ch; }
.page-chapo { margin-top: 18px; font-size: var(--t-1); color: var(--encre-douce); max-width: 60ch; text-wrap: pretty; }

.fil ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; margin-bottom: 18px; font-size: 0.875rem; color: var(--encre-douce); }
.fil li + li::before { content: "/"; margin: 0 0.5em; color: var(--trait); }
.fil a { color: var(--encre-douce); }
.fil a:hover { color: var(--brique); }

/* ------------------------------------------------------------------ */
/* Accueil : hero                                                       */
/* ------------------------------------------------------------------ */

.hero { padding-block: clamp(28px, 1rem + 3vw, 64px) clamp(24px, 1rem + 2vw, 48px); }
.hero-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 1.5rem + 3vw, 80px);
  align-items: center;
}
.hero-titre { font-size: var(--t-5); line-height: 0.94; text-wrap: balance; }
.hero-chapo { margin-top: 22px; max-width: 54ch; font-size: var(--t-1); color: var(--encre-douce); text-wrap: pretty; }

.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: calc(100svh - var(--brnsg-barre, 0px) - var(--entete-h) - 48px);
  min-height: 420px;
  margin-left: auto;
  width: 100%;
  overflow: hidden;
  border-radius: var(--rayon);
  background: var(--mortier);
}
.hero-photo picture, .hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-assises { display: none; }
.js-motion .hero-assises {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(9, 1fr);
  pointer-events: none;
}
.js-motion .hero-assises span { background: var(--chaux); transform-origin: left center; }
.js-motion .hero-assises span:nth-child(even) { transform-origin: right center; }

.recherche {
  margin-top: 32px;
  padding: 18px;
  background: var(--pierre);
  border: 1px solid var(--joint);
  border-left: 6px solid var(--brique);
  border-radius: var(--rayon);
}
.recherche-titre { font-weight: 700; margin-bottom: 10px; }
.recherche-champs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.recherche-bouton { min-height: 46px; }

.hero-preuves {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 8px 32px;
  margin-top: 28px;
}
.hero-preuves dt { font-family: var(--display); font-stretch: 75%; font-size: 1.7rem; line-height: 1; }
.hero-preuves dd { margin: 4px 0 0; font-size: 0.875rem; color: var(--encre-douce); max-width: 18ch; line-height: 1.35; }

@media (max-width: 900px) {
  .hero-grille { grid-template-columns: 1fr; gap: 0; }
  .hero-texte { display: contents; }
  .hero-titre { order: 1; }
  .hero-photo { order: 2; aspect-ratio: 16 / 10; min-height: 0; max-height: none; margin-top: 22px; }
  .hero-photo img { object-position: 50% 58%; }
  .hero-chapo { order: 3; }
  .recherche { order: 4; }
  .hero-preuves { order: 5; }
}
@media (max-width: 560px) {
  .recherche-champs { grid-template-columns: 1fr; }
  .hero-preuves { grid-template-columns: 1fr; gap: 14px; }
  .hero-preuves div { display: flex; align-items: baseline; gap: 10px; }
  .hero-preuves dd { margin: 0; max-width: none; }
}

/* ------------------------------------------------------------------ */
/* Champs                                                               */
/* ------------------------------------------------------------------ */

.champ { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.champ label, .champ legend { font-weight: 700; font-size: 0.95rem; line-height: 1.3; padding: 0; }
.champ--compact label { font-size: 0.82rem; color: var(--encre-douce); }
.champ--ligne { display: flex; align-items: center; gap: 10px; }
.champ-optionnel { font-weight: 400; color: var(--encre-douce); }
.champ-aide { font-size: 0.85rem; color: var(--encre-douce); line-height: 1.4; }
.champ-erreur { font-size: 0.9rem; color: #A3241A; font-weight: 600; }
.champ-rangee { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .champ-rangee { grid-template-columns: 1fr; } }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--trait);
  border-radius: var(--rayon);
  background: var(--pierre);
  color: var(--encre);
  line-height: 1.35;
}
textarea { min-height: 120px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--encre); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brique); outline-offset: 0; border-color: var(--encre); }
[aria-invalid="true"] { border-color: #A3241A; background: #FCF1EE; }

.select-enveloppe { position: relative; }
.select-enveloppe select { appearance: none; -webkit-appearance: none; padding-right: 2.2rem; cursor: pointer; text-overflow: ellipsis; }
.select-enveloppe::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--encre);
  border-bottom: 2px solid var(--encre);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.champ-unite { position: relative; }
.champ-unite input { padding-right: 3rem; }
.champ-unite span { position: absolute; right: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--encre-douce); font-weight: 700; }

.champ-cases { display: grid; gap: 8px; }
.champ .case, .champ .puce, .case, .consentement, .puce { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-weight: 400; }
.case input, .consentement input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brique); }
.consentement { font-size: 0.9rem; line-height: 1.45; color: var(--encre-douce); }

.champ-piege { position: absolute; width: 0; height: 0; overflow: hidden; opacity: 0; pointer-events: none; }

/* Segments (type, cadrage) */
.segment {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  margin: 0;
  border: 1.5px solid var(--encre);
  border-radius: var(--rayon);
  background: var(--pierre);
}
.segment legend { padding: 0; }
.segment-option { position: relative; cursor: pointer; }
.segment-option input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.segment-option span, .segment-bouton {
  display: block;
  padding: 0.42rem 0.85rem;
  border: 0;
  border-radius: 2px;
  background: none;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.segment-option input:checked + span,
.segment-bouton[aria-pressed="true"] { background: var(--encre); color: var(--chaux); }
.segment-option:hover input:not(:checked) + span, .segment-bouton:hover:not([aria-pressed="true"]) { background: var(--mortier); }
.segment-option input:focus-visible + span { outline: 3px solid var(--brique); outline-offset: 1px; }
.segment--large { display: flex; }
.segment--large .segment-option { flex: 1; text-align: center; }

/* Tuiles de l'estimation */
.tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tuile { position: relative; display: block; cursor: pointer; font-weight: 400; }
.tuile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tuile-corps {
  display: grid;
  gap: 2px;
  height: 100%;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--joint);
  border-radius: var(--rayon);
  background: var(--pierre);
  transition: border-color 0.2s, background-color 0.2s;
}
.tuile-libelle { font-weight: 700; }
.tuile-aide { font-size: 0.8rem; font-weight: 400; color: var(--encre-douce); line-height: 1.35; }
.tuile:hover .tuile-corps { border-color: var(--encre); }
.tuile input:checked + .tuile-corps { border-color: var(--brique); background: #F7E9E3; box-shadow: inset 4px 0 0 var(--brique); }
.tuile input:focus-visible + .tuile-corps { outline: 3px solid var(--brique); outline-offset: 2px; }
.tuiles--exterieur { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .tuiles--exterieur { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ */
/* Carte des quartiers                                                  */
/* ------------------------------------------------------------------ */

.carte { display: grid; gap: 16px; }
.carte-outils { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; }
.carte-liste { min-width: 240px; flex: 1 1 260px; max-width: 360px; }
.carte-corps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 24px; align-items: start; }
.carte-corps--seule { grid-template-columns: minmax(0, 1fr); }
.carte-cadre {
  position: relative;
  aspect-ratio: 1000 / 709;
  overflow: hidden;
  background: #EDE9E1;
  border: 1px solid var(--joint);
  border-radius: var(--rayon);
}
.carte-svg { width: 100%; height: 100%; }
.c-fond { fill: #EDE9E1; }
.c-contexte path { fill: #E2DCD0; stroke: #F6F4EF; stroke-width: 1.1; }
.c-zone {
  stroke: #FBFAF7;
  stroke-width: 1.2;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill 0.45s var(--ease), opacity 0.35s var(--ease);
}
.c-zone.n1 { fill: var(--n1); }
.c-zone.n2 { fill: var(--n2); }
.c-zone.n3 { fill: var(--n3); }
.c-zone.n4 { fill: var(--n4); }
.c-zone.n5 { fill: var(--n5); }
.c-zone.n6 { fill: var(--n6); }
.c-zone:hover { stroke: var(--encre); stroke-width: 1.8; }
.carte[data-mode="catalogue"] .c-zone.sans-bien { opacity: 0.32; }
.carte-intro .c-zone, .carte-intro .c-bien rect { transition: none; }
.carte--mini .c-zone { cursor: default; }
.c-eau path { fill: none; stroke: var(--eau); stroke-opacity: 0.55; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.c-eau .c-eau-deule { stroke-width: 2.1; }
.c-lille { fill: none; stroke: var(--encre); stroke-width: 1.4; stroke-opacity: 0.75; pointer-events: none; }
.c-briques { pointer-events: none; }
.c-contour { fill: none; stroke: var(--encre); stroke-width: 2.4; stroke-linejoin: round; pointer-events: none; }
/* --u : unités de la carte par pixel d'écran, tenu à jour par script.js pendant
   les cadrages ; étiquettes et repères gardent ainsi la même taille à l'écran. */
.carte-svg { --u: 1.4; }
.c-etiquette {
  font-family: var(--texte);
  font-weight: 700;
  font-size: calc(var(--u) * 12.5px);
  fill: var(--encre);
  paint-order: stroke;
  stroke: #FBFAF7;
  stroke-width: calc(var(--u) * 3.2px);
  stroke-linejoin: round;
  text-anchor: middle;
  pointer-events: none;
}
.c-etiquette--lille { font-size: calc(var(--u) * 15px); letter-spacing: 0.04em; text-transform: uppercase; }
.c-etiquette.est-efface { visibility: hidden; }
.c-etiquette--contexte { font-weight: 400; font-size: calc(var(--u) * 10px); fill: #6B5D55; stroke-width: calc(var(--u) * 2.6px); }
.c-etiquette--quartier { display: none; font-size: calc(var(--u) * 11.5px); }
.carte[data-vue="lille"] .c-etiquette--quartier { display: inline; }
.carte[data-vue="lille"] .c-etiquette--lille { display: none; }
.carte[data-vue="lille"] .c-etiquette--commune { font-size: calc(var(--u) * 11.5px); }
.c-bien rect {
  fill: var(--encre);
  stroke: #FBFAF7;
  stroke-width: 1.4;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(calc(var(--u) * 0.85));
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), fill 0.2s;
}
.c-bien { cursor: pointer; }
.c-bien.est-masque rect { opacity: 0; transform: scale(0.2); }
.c-bien.est-actif rect { fill: var(--brique); transform: scale(calc(var(--u) * 1.5)); }
.c-agence rect, .c-agence path { transform-box: fill-box; transform-origin: center; }
.c-agence rect { fill: var(--brique); stroke: #FBFAF7; stroke-width: 1.5; }
.c-agence path { fill: #FBFAF7; }
.c-agence-texte { display: none; font-family: var(--texte); font-size: calc(var(--u) * 11px); font-weight: 700; fill: var(--encre); paint-order: stroke; stroke: #FBFAF7; stroke-width: calc(var(--u) * 3px); }
.carte[data-vue="lille"] .c-agence-texte, .carte--mini .c-agence-texte { display: inline; }
.c-plaque-fond { fill: var(--encre); }
.c-plaque-texte { font-family: var(--display); font-stretch: 75%; font-weight: 700; fill: #F3F1EB; }

.carte-panneau {
  padding: 20px;
  background: var(--pierre);
  border: 1px solid var(--joint);
  border-top: 6px solid var(--brique);
  border-radius: var(--rayon);
  min-height: 100%;
}
.carte-panneau-vide { color: var(--encre-douce); }
.panneau-statut { font-size: 0.85rem; color: var(--encre-douce); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.panneau-zone { font-size: 2.2rem; line-height: 1; margin-top: 4px; }
.panneau-type { margin-top: 16px; font-size: 0.9rem; font-weight: 700; }
.panneau-prix { font-size: 2.6rem; line-height: 1; color: var(--brique); }
.panneau-prix small { font-family: var(--texte); font-stretch: 100%; font-size: 0.95rem; color: var(--encre); font-weight: 700; margin-left: 4px; }
.panneau-detail { font-size: 0.9rem; color: var(--encre-douce); margin-top: 6px; line-height: 1.45; }
.panneau-autre { margin-top: 10px; font-size: 0.95rem; }
.panneau-texte { margin-top: 14px; font-size: 0.95rem; }
.panneau-liens { display: grid; gap: 10px; margin-top: 18px; justify-items: start; }

.carte-pied { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; align-items: end; }
.legende-titre { font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; }
.legende-briques { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.8rem; color: var(--encre-douce); }
.legende-briques li { display: flex; align-items: center; gap: 6px; }
.legende-brique { width: 22px; height: 11px; border-radius: 1px; }
.legende-brique.n1 { background: var(--n1); box-shadow: inset 0 0 0 1px #D9C7BB; }
.legende-brique.n2 { background: var(--n2); }
.legende-brique.n3 { background: var(--n3); }
.legende-brique.n4 { background: var(--n4); }
.legende-brique.n5 { background: var(--n5); }
.legende-brique.n6 { background: var(--n6); }
.carte-source { font-size: 0.78rem; color: var(--encre-douce); max-width: 70ch; line-height: 1.45; }

.details-tableau { margin-top: 24px; border-top: 1px solid var(--joint); }
.details-tableau summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 10px; }
.details-tableau summary::-webkit-details-marker { display: none; }
.details-tableau summary::before { content: "+"; display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid var(--encre); border-radius: 2px; font-weight: 700; }
.details-tableau[open] summary::before { content: "\2212"; }

@media (max-width: 1000px) {
  .carte-corps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .c-etiquette--contexte { display: none; }
  .carte[data-vue="lille"] .c-etiquette--commune,
  .carte[data-vue="lille"] .c-agence-texte { display: none; }
  .carte[data-vue="lille"] .c-etiquette--quartier { font-size: calc(var(--u) * 10.5px); }
}

/* ------------------------------------------------------------------ */
/* Tableaux                                                             */
/* ------------------------------------------------------------------ */

.tableau-enveloppe { overflow-x: auto; border: 1px solid var(--joint); border-radius: var(--rayon); background: var(--pierre); }
.tableau { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tableau th, .tableau td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--joint); vertical-align: top; }
.tableau thead th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--encre-douce); background: var(--mortier); }
.tableau tbody tr:last-child th, .tableau tbody tr:last-child td { border-bottom: 0; }
.tableau tbody th { font-weight: 700; }
.tableau td { font-variant-numeric: tabular-nums; }
.tableau--grand td { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 1.35rem; color: var(--brique); }

/* ------------------------------------------------------------------ */
/* Biens                                                                */
/* ------------------------------------------------------------------ */

.bien {
  position: relative;
  background: var(--pierre);
  border: 1px solid var(--joint);
  border-radius: var(--rayon);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.bien:hover, .bien.est-actif, .bien:focus-within { border-color: var(--brique); box-shadow: 0 10px 28px -18px rgb(43 30 25 / 0.55); }
.bien-lien { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.bien-lien:hover { color: inherit; text-decoration: none; }
.bien-photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mortier); }
.bien-photo picture, .bien-photo img { width: 100%; height: 100%; object-fit: cover; }
.bien-photo img { transition: transform 0.7s var(--ease); }
.bien:hover .bien-photo img { transform: scale(1.045); }
.bien-ref {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 0.3rem 0.5rem;
  background: var(--encre);
  color: var(--chaux);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  border-radius: 2px;
  font-variant-numeric: tabular-nums;
}
.bien-exclu {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 0.3rem 0.5rem;
  background: var(--chaux);
  color: var(--sang);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  border-radius: 2px;
}
.bien-corps { display: grid; gap: 4px; padding: 14px 16px 16px; flex: 1; align-content: start; }
.bien-titre { font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.bien-lieu { font-size: 0.9rem; color: var(--encre-douce); }
.bien-prix { font-size: 2rem; line-height: 1; margin-top: 8px; }
.bien-honoraires { font-size: 0.75rem; line-height: 1.4; color: var(--encre-douce); }
.bien-faits { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--joint); font-size: 0.85rem; }
.pastilles-dpe { display: inline-flex; gap: 4px; margin-left: auto; }
.pastille {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  color: var(--encre);
}
.pastille--energie.pastille--a { background: var(--dpe-a); }
.pastille--energie.pastille--b { background: var(--dpe-b); }
.pastille--energie.pastille--c { background: var(--dpe-c); }
.pastille--energie.pastille--d { background: var(--dpe-d); }
.pastille--energie.pastille--e { background: var(--dpe-e); }
.pastille--energie.pastille--f { background: var(--dpe-f); }
.pastille--energie.pastille--g { background: var(--dpe-g); color: #FFFFFF; }
.pastille--climat.pastille--a { background: var(--ges-a); }
.pastille--climat.pastille--b { background: var(--ges-b); }
.pastille--climat.pastille--c { background: var(--ges-c); }
.pastille--climat.pastille--d { background: var(--ges-d); color: #FFFFFF; }
.pastille--climat.pastille--e { background: var(--ges-e); color: #FFFFFF; }
.pastille--climat.pastille--f { background: var(--ges-f); color: #FFFFFF; }
.pastille--climat.pastille--g { background: var(--ges-g); color: #FFFFFF; }

.bien--grand .bien-photo { aspect-ratio: 16 / 10; }
.bien--grand .bien-corps { padding: 20px 22px 22px; }
.bien--grand .bien-titre { font-size: 1.3rem; }
.bien--grand .bien-prix { font-size: 2.8rem; }

.bien--ligne .bien-lien { display: grid; grid-template-columns: minmax(120px, 42%) minmax(0, 1fr); }
.bien--ligne .bien-photo { aspect-ratio: auto; height: 100%; min-height: 150px; }
.bien--ligne .bien-corps { padding: 12px 14px; }
.bien--ligne .bien-titre { font-size: 0.98rem; }
.bien--ligne .bien-prix { font-size: 1.6rem; margin-top: 4px; }
.bien--ligne .bien-honoraires { display: none; }
.bien--ligne .bien-faits { margin-top: 4px; padding-top: 8px; }

.biens-une { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; }
.biens-une-suite { display: grid; gap: 16px; align-content: start; }
@media (max-width: 900px) {
  .biens-une { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .bien--ligne .bien-lien { grid-template-columns: 1fr; }
  .bien--ligne .bien-photo { aspect-ratio: 3 / 2; min-height: 0; }
  .bien--ligne .bien-honoraires { display: block; }
}

/* ------------------------------------------------------------------ */
/* Catalogue                                                            */
/* ------------------------------------------------------------------ */

.section--catalogue { padding-top: 0; }
.filtres {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--pierre);
  border: 1px solid var(--joint);
  border-radius: var(--rayon);
}
.filtres-champs { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 16px; }
.filtres-bouton { display: none; justify-self: start; }
@media (max-width: 760px) {
  .js .filtres-titre { display: none; }
  .js .filtres-bouton { display: inline-flex; }
  .js .filtres-champs { display: none; }
  .js .filtres.est-ouvert .filtres-champs { display: flex; }
  .filtres { padding: 12px; }
}
@media (max-width: 440px) {
  .filtres .champ--compact { flex-basis: 100%; }
}
.filtres .champ--compact { flex: 1 1 150px; }
.filtres-zone { flex-basis: 220px !important; }
.filtres-titre { flex-basis: 100%; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.filtres-types { display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; }
.filtres-types legend { flex-basis: 100%; font-size: 0.82rem; color: var(--encre-douce); margin-bottom: 6px; }
.puce { position: relative; }
.puce input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.puce span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.42rem 0.8rem;
  border: 1.5px solid var(--trait);
  border-radius: var(--rayon);
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--chaux);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.puce:hover span { border-color: var(--encre); }
.puce input:checked + span { background: var(--encre); border-color: var(--encre); color: var(--chaux); }
.puce input:focus-visible + span { outline: 3px solid var(--brique); outline-offset: 2px; }
.filtres-effacer { margin-left: auto; align-self: center; }

.catalogue {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 42%);
  gap: 32px;
  margin-top: 24px;
  align-items: start;
}
.catalogue-entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.catalogue-compte { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 1.6rem; line-height: 1; }
.catalogue-carte-bouton { display: none; }
.biens-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.catalogue-carte {
  position: sticky;
  top: calc(var(--brnsg-barre, 0px) + var(--entete-h) + 16px);
}
.catalogue-carte .carte-pied { flex-direction: column; align-items: start; }
.catalogue-carte .carte-liste { display: none; }
.catalogue-vide { padding: 24px; background: var(--pierre); border: 1px solid var(--joint); border-top: 6px solid var(--brique); border-radius: var(--rayon); }
.catalogue-vide-titre { font-family: var(--display); font-stretch: 75%; font-size: var(--t-2); line-height: 1.05; margin-bottom: 10px; }
.suggestions-titre { margin-top: 18px; font-weight: 700; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.suggestions button { padding: 0.45rem 0.8rem; border: 1.5px solid var(--brique); border-radius: var(--rayon); background: none; color: var(--brique); font-weight: 700; cursor: pointer; }
.suggestions button:hover { background: var(--brique); color: var(--clair); }
.recherche-confiee { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--joint); }
.recherche-confiee > p { margin-bottom: 16px; }

@media (max-width: 1100px) {
  .catalogue { grid-template-columns: 1fr; }
  .catalogue-carte { position: static; order: -1; display: none; }
  .catalogue-carte.est-ouverte { display: block; }
  .catalogue-carte-bouton { display: inline-flex; }
}

/* ------------------------------------------------------------------ */
/* Fiche d'un bien                                                      */
/* ------------------------------------------------------------------ */

.fiche-tete { padding-block: clamp(24px, 1rem + 2vw, 48px) 24px; }
.fiche-tete-grille { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.fiche-ref { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--encre-douce); margin-bottom: 10px; }
.fiche-ref span:first-child { font-weight: 700; color: var(--encre); letter-spacing: 0.04em; }
.fiche-exclu { color: var(--brique); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.fiche-titre { font-size: var(--t-4); line-height: 0.98; text-wrap: balance; }
.fiche-lieu { margin-top: 10px; font-size: var(--t-1); color: var(--encre-douce); }

.prix-bloc { display: grid; gap: 4px; justify-items: start; }
.fiche-tete .prix-bloc { justify-items: end; text-align: right; max-width: 34ch; }
.prix-libelle { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--encre-douce); }
.prix-montant { font-size: clamp(2.6rem, 1.6rem + 3vw, 4rem); line-height: 0.95; color: var(--encre); }
.prix-honoraires { font-size: 0.9rem; line-height: 1.4; }
.prix-net { font-size: 0.82rem; color: var(--encre-douce); }
.prix-bareme { font-size: 0.82rem; }
@media (max-width: 900px) {
  .fiche-tete-grille { grid-template-columns: 1fr; }
  .fiche-tete .prix-bloc { justify-items: start; text-align: left; }
}

.galerie {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: clamp(320px, 52vw, 640px);
}
.galerie-item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--mortier);
  cursor: zoom-in;
}
.galerie-item picture, .galerie-item img { width: 100%; height: 100%; object-fit: cover; }
.galerie-item img { transition: transform 0.7s var(--ease); }
.galerie-item:hover img { transform: scale(1.03); }
.galerie-item--principale { grid-row: 1 / 3; }
.galerie--1 .galerie-plan { grid-row: 1 / 3; }
.galerie-agrandir {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: rgb(43 30 25 / 0.82);
  color: var(--chaux);
  border-radius: 2px;
}
.galerie-plan {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  padding: 12px;
  background: var(--pierre);
  border: 1px solid var(--joint);
  border-radius: var(--rayon);
  color: var(--encre);
  text-decoration: none;
}
.galerie-plan:hover { border-color: var(--brique); color: var(--brique); }
.galerie-plan-dessin { display: grid; place-items: center; min-height: 0; }
.galerie-plan-dessin .plan-niveau { height: 100%; display: grid; }
.galerie-plan-dessin .plan-svg { height: 100%; width: auto; max-height: 100%; margin-inline: auto; }
.galerie-plan-dessin .plan-legende { display: none; }
.galerie-plan-texte { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-top: 8px; }
@media (max-width: 760px) {
  .galerie { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .galerie-item--principale { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 2; }
  .galerie-item--secondaire, .galerie-plan { aspect-ratio: 1; }
  .galerie--1 .galerie-plan { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
}

.fiche-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  gap: clamp(32px, 2rem + 3vw, 80px);
  padding-block: clamp(40px, 2rem + 3vw, 80px);
  align-items: start;
}
.fiche-principal { display: grid; gap: clamp(40px, 2rem + 2vw, 64px); min-width: 0; }
.fiche-section .titre-section { font-size: var(--t-2); margin-bottom: 18px; }
.fiche-accroche { font-size: var(--t-1); font-weight: 600; line-height: 1.45; margin-bottom: 14px; }
.fiche-cote { position: sticky; top: calc(var(--brnsg-barre, 0px) + var(--entete-h) + 16px); display: grid; gap: 20px; }
.visite { padding: 22px; background: var(--pierre); border: 1px solid var(--joint); border-top: 6px solid var(--brique); border-radius: var(--rayon); }
.visite .titre-section { font-size: var(--t-2); margin-bottom: 8px; }
.visite > p { font-size: 0.95rem; color: var(--encre-douce); margin-bottom: 16px; }
@media (max-width: 1000px) {
  .fiche-grille { grid-template-columns: 1fr; }
  .fiche-cote { position: static; }
}

.faits { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; border-top: 1px solid var(--joint); }
.faits > div { padding: 12px 0; border-bottom: 1px solid var(--joint); padding-right: 16px; }
.faits dt { font-size: 0.82rem; color: var(--encre-douce); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.faits dd { margin: 2px 0 0; font-weight: 600; }
.copro-statut { font-weight: 700; margin-bottom: 12px; }
.copro-procedure { margin-top: 14px; font-size: 0.95rem; }

/* Étiquettes DPE */
.dpe-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 560px) { .dpe-duo { grid-template-columns: 1fr; } }
.dpe { padding: 16px; background: var(--pierre); border: 1px solid var(--joint); border-radius: var(--rayon); }
.dpe figcaption { display: grid; gap: 2px; margin-bottom: 12px; }
.dpe-titre { font-weight: 700; }
.dpe-classe { font-family: var(--display); font-stretch: 75%; font-size: 1.6rem; margin-left: 4px; }
.dpe-mesure { font-size: 0.9rem; color: var(--encre-douce); }
.dpe-echelle { display: grid; gap: 3px; }
.dpe-barre {
  position: relative;
  display: flex;
  align-items: center;
  height: 22px;
  width: calc(34% + var(--i) * 8%);
  padding-left: 8px;
  border-radius: 0 2px 2px 0;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--encre);
}
.dpe-barre.est-active { height: 30px; font-size: 1rem; box-shadow: 0 0 0 2px var(--pierre), 0 0 0 4px var(--encre); }
.dpe-barre.est-active::after {
  content: "";
  position: absolute;
  left: calc(100% + 6px);
  top: 50%;
  border: 8px solid transparent;
  border-right-color: var(--encre);
  border-left-width: 0;
  transform: translateY(-50%);
}
.dpe-barre--energie-a { background: var(--dpe-a); }
.dpe-barre--energie-b { background: var(--dpe-b); }
.dpe-barre--energie-c { background: var(--dpe-c); }
.dpe-barre--energie-d { background: var(--dpe-d); }
.dpe-barre--energie-e { background: var(--dpe-e); }
.dpe-barre--energie-f { background: var(--dpe-f); }
.dpe-barre--energie-g { background: var(--dpe-g); color: #FFFFFF; }
.dpe-barre--climat-a { background: var(--ges-a); }
.dpe-barre--climat-b { background: var(--ges-b); }
.dpe-barre--climat-c { background: var(--ges-c); }
.dpe-barre--climat-d { background: var(--ges-d); color: #FFFFFF; }
.dpe-barre--climat-e { background: var(--ges-e); color: #FFFFFF; }
.dpe-barre--climat-f { background: var(--ges-f); color: #FFFFFF; }
.dpe-barre--climat-g { background: var(--ges-g); color: #FFFFFF; }
.dpe-depenses { margin-top: 18px; }
.dpe-excessive { margin-top: 16px; padding: 10px 14px; border-left: 4px solid var(--dpe-f); background: #FBEBDD; font-weight: 700; }

/* Plans */
.plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; align-items: end; }
.plan[data-niveaux="1"] { grid-template-columns: minmax(0, 560px); }
.plan-niveau { display: grid; gap: 8px; }
.plan-svg { width: 100%; height: auto; max-height: 460px; }
.p-piece rect { fill: #FBFAF7; stroke: var(--encre); stroke-width: 2.4; }
.p-mur { fill: none; stroke: var(--encre); stroke-width: 7; }
.p-nom { font-family: var(--texte); font-weight: 700; fill: var(--encre); text-anchor: middle; }
.p-surface { font-family: var(--texte); font-size: 10px; fill: #5E4C44; text-anchor: middle; }
.p-echelle path { fill: none; stroke: var(--encre); stroke-width: 2; }
.p-echelle text { font-family: var(--texte); font-size: 11px; font-weight: 700; fill: var(--encre); }
.plan-legende { font-weight: 700; font-size: 0.92rem; }

/* Quartier du bien */
.quartier-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.carte--mini { aspect-ratio: 3 / 2; overflow: hidden; border: 1px solid var(--joint); border-radius: var(--rayon); background: #EDE9E1; }
.carte--mini .carte-svg { width: 100%; height: 100%; }
.carte--mini .c-etiquette--quartier { display: inline; }
.quartier-nom { font-size: 1.9rem; line-height: 1; margin-bottom: 8px; }
.quartier-nom span { display: block; font-family: var(--texte); font-stretch: 100%; font-size: 0.85rem; color: var(--encre-douce); margin-top: 6px; }
.comparaison { margin-block: 14px; padding: 12px 14px; background: var(--mortier); border-left: 4px solid var(--brique); font-weight: 600; font-size: 0.95rem; }
@media (max-width: 760px) { .quartier-grille { grid-template-columns: 1fr; } }

.agent { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px; background: var(--pierre); border: 1px solid var(--joint); border-radius: var(--rayon); }
.agent-photo { width: 72px; height: 72px; overflow: hidden; border-radius: 2px; background: var(--mortier); }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; }
.agent-titre { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--encre-douce); }
.agent-nom { font-weight: 700; }
.agent-role { font-size: 0.9rem; color: var(--encre-douce); margin: 0 0 4px; }
.agent p + p { margin-top: 0; }
.agent--intro { margin-top: 24px; max-width: 420px; }

.similaires { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
@media (max-width: 1000px) { .similaires { grid-template-columns: 1fr; } }

.barre-fiche { display: none; }
@media (max-width: 1000px) {
  .barre-fiche {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px var(--gouttiere) calc(10px + env(safe-area-inset-bottom));
    padding-right: max(var(--gouttiere), 96px);
    background: var(--encre);
    color: var(--chaux);
    transform: translateY(110%);
    transition: transform 0.35s var(--ease);
  }
  .barre-fiche.est-visible { transform: none; }
  html.brnsg-barre-repliee .barre-fiche { bottom: var(--brnsg-onglet, 0px); }
  .barre-fiche-prix { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 1.6rem; line-height: 1; display: grid; }
  .barre-fiche-prix span { font-family: var(--texte); font-stretch: 100%; font-size: 0.72rem; font-weight: 400; color: #E3D3CB; margin-top: 3px; }
  .page-bien .pied { padding-bottom: 80px; }
}

/* Visionneuse */
.visionneuse {
  width: min(100vw - 24px, 1400px);
  max-width: none;
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.visionneuse::backdrop { background: rgb(28 18 14 / 0.92); }
.visionneuse-cadre { display: grid; gap: 10px; justify-items: center; }
.visionneuse-cadre img { max-height: calc(100vh - 120px); width: auto; border-radius: 2px; }
.visionneuse-cadre figcaption { color: var(--chaux); font-size: 0.9rem; text-align: center; max-width: 80ch; }
.visionneuse-bouton {
  position: fixed;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid #F3F1EB;
  border-radius: 2px;
  background: rgb(43 30 25 / 0.75);
  color: #F3F1EB;
  cursor: pointer;
}
.visionneuse-bouton:hover { background: var(--brique); border-color: var(--brique); }
.visionneuse-bouton:focus-visible { outline-color: #F3F1EB; }
.visionneuse-fermer { top: 16px; right: 16px; }
.visionneuse-precedente { left: 16px; top: 50%; transform: translateY(-50%); }
.visionneuse-suivante { right: 16px; top: 50%; transform: translateY(-50%); }

/* ------------------------------------------------------------------ */
/* Accueil : estimation, agence, avis                                   */
/* ------------------------------------------------------------------ */

.estimation-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 2rem + 3vw, 96px); align-items: center; }
.estimation-photo { border-radius: var(--rayon); overflow: hidden; aspect-ratio: 4 / 3; }
.estimation-photo picture, .estimation-photo img { width: 100%; height: 100%; object-fit: cover; }
.estimation-texte { display: grid; gap: 22px; justify-items: start; }
.estimation-texte > p { font-size: var(--t-1); line-height: 1.5; color: #F1E6E0; max-width: 52ch; }
.exemple-fourchette { width: 100%; padding: 18px 20px; border: 1px solid rgb(243 241 235 / 0.35); border-radius: var(--rayon); background: var(--sang-clair); }
.exemple-libelle { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: #E3D3CB; }
.exemple-bien { margin-top: 6px; }
.exemple-prix { margin-top: 8px; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; }
.exemple-prix span { font-family: var(--texte); font-stretch: 100%; font-size: 1.15rem; font-weight: 400; margin: 0 0.15em; vertical-align: 0.3em; }
@media (max-width: 900px) { .estimation-grille { grid-template-columns: 1fr; } }

.agence-grille { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 2rem + 3vw, 88px); align-items: center; }
.agence-vitrine { border-radius: var(--rayon); overflow: hidden; aspect-ratio: 3 / 2; }
.agence-vitrine picture, .agence-vitrine img { width: 100%; height: 100%; object-fit: cover; }
.agence-texte { display: grid; gap: 18px; justify-items: start; }
.agence-texte p + p { margin-top: 0; }
.equipe-mini { display: grid; gap: 10px; width: 100%; }
.equipe-mini li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; }
.equipe-mini-photo { width: 56px; height: 56px; overflow: hidden; border-radius: 2px; background: var(--mortier); }
.equipe-mini-photo img { width: 100%; height: 100%; object-fit: cover; }
.equipe-mini p { display: grid; line-height: 1.3; }
.equipe-mini-nom { font-weight: 700; }
.equipe-mini-role { font-size: 0.9rem; color: var(--encre-douce); }
@media (max-width: 900px) { .agence-grille { grid-template-columns: 1fr; } }

.avis-entete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; margin-bottom: 32px; }
.avis-synthese { display: flex; align-items: center; gap: 14px; }
.avis-chiffre { font-size: 4rem; line-height: 0.9; color: var(--brique); }
.avis-libelle { font-size: 0.95rem; line-height: 1.35; color: var(--encre-douce); }
.avis-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.avis-carte { display: grid; gap: 12px; align-content: start; padding: 20px; background: var(--pierre); border: 1px solid var(--joint); border-radius: var(--rayon); }
.avis-note-carte { font-weight: 700; color: var(--brique); }
.avis-texte { font-size: 1rem; line-height: 1.55; }
.avis-auteur { display: grid; font-size: 0.88rem; color: var(--encre-douce); line-height: 1.4; }
.avis-nom { font-weight: 700; color: var(--encre); }

.honoraires-court { display: grid; gap: 18px; justify-items: start; }
.honoraires-court .tableau-enveloppe { width: 100%; }

.acces { display: grid; gap: 22px; }
.acces-texte { display: grid; gap: 14px; }
.acces-adresse { font-style: normal; font-size: var(--t-1); font-weight: 700; line-height: 1.35; }
.acces-statut { font-weight: 700; }
.horaires { display: grid; gap: 2px; max-width: 420px; }
.horaires li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed var(--joint); }
.acces-liste { display: grid; gap: 12px; }
.acces-liste dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--encre-douce); }
.acces-liste dd { margin: 2px 0 0; }
.acces-actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }

/* ------------------------------------------------------------------ */
/* Vendre : estimation                                                  */
/* ------------------------------------------------------------------ */

.section--estimer .titre-section { margin-bottom: 28px; font-size: var(--t-2); }
.estimateur-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 1.5rem + 2.5vw, 64px); align-items: start; }
.estimateur { display: grid; gap: 24px; }
.estimateur-form { display: grid; gap: 22px; }
.estimateur-carte { position: sticky; top: calc(var(--brnsg-barre, 0px) + var(--entete-h) + 16px); }
.estimateur-carte .carte-pied { flex-direction: column; align-items: start; }
.resultat {
  padding: 22px;
  border-radius: var(--rayon);
  background: var(--sang);
  color: var(--chaux);
  --focus: #F3F1EB;
}
.resultat-attente { color: #EADDD6; }
.resultat-sortie { display: grid; gap: 8px; }
.resultat-titre { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: #E3D3CB; }
.resultat-prix { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem); line-height: 1; }
.resultat-m2 { font-weight: 700; }
.resultat-detail { display: grid; gap: 8px; margin-top: 10px; padding-top: 14px; border-top: 1px solid rgb(243 241 235 / 0.3); font-size: 0.9rem; line-height: 1.45; color: #F1E6E0; }
.resultat-detail li { padding-left: 16px; position: relative; }
.resultat-detail li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 4px; background: #E6C2AF; }
.resultat-detail .est-alerte { color: #FFFFFF; font-weight: 700; }
.resultat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 14px; }
.resultat .bouton { background: var(--chaux); border-color: var(--chaux); color: var(--sang); }
.resultat .bouton:hover { background: var(--clair); border-color: var(--clair); }
.resultat .bouton-lien { color: var(--clair); }
@media (max-width: 1000px) {
  .estimateur-grille { grid-template-columns: 1fr; }
  .estimateur-carte { position: static; }
}

.formulaire-grille { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 1.5rem + 3vw, 88px); align-items: start; }
.formulaire-intro { display: grid; gap: 16px; }
.formulaire-carte { padding: clamp(20px, 1rem + 1.5vw, 32px); background: var(--pierre); border: 1px solid var(--joint); border-radius: var(--rayon); }
@media (max-width: 900px) { .formulaire-grille { grid-template-columns: 1fr; } }

.formulaire { display: grid; gap: 16px; }
.formulaire-erreur:empty { display: none; }
.formulaire-note { font-size: 0.85rem; color: var(--encre-douce); }
.formulaire-succes { display: grid; gap: 12px; justify-items: start; padding: 22px; border-left: 6px solid #2E7D4F; background: #EEF4EF; }
.formulaire-succes-titre { font-weight: 700; font-size: 1.1rem; }
.estimation-jointe { padding: 12px 14px; border: 1.5px dashed var(--trait); border-radius: var(--rayon); background: var(--chaux); }
.estimation-jointe.est-remplie { border-style: solid; border-color: var(--brique); background: #F7E9E3; }
.estimation-jointe-titre { font-weight: 700; font-size: 0.92rem; }
.estimation-jointe-texte { font-size: 0.9rem; margin-top: 4px; }

.duo--methode p + p { margin-top: 1em; }
.duo--methode .source { margin-top: 16px; }
.duo--methode .tableau-enveloppe { margin-bottom: 32px; }
.liste-traits { display: grid; gap: 10px; }
.liste-traits li { position: relative; padding-left: 22px; }
.liste-traits li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 12px; height: 5px; background: var(--brique); }

.etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 36px; border-top: 1px solid rgb(243 241 235 / 0.3); }
.etape { padding: 22px 22px 26px 0; border-bottom: 1px solid rgb(243 241 235 / 0.3); display: grid; gap: 8px; align-content: start; }
.etape:not(:nth-child(3n + 1)) { padding-left: 22px; border-left: 1px solid rgb(243 241 235 / 0.3); }
.etape-duree { font-size: 2rem; line-height: 1; color: #E6C2AF; }
.etape-titre { font-size: 1.1rem; font-weight: 700; }
.etape p:last-child { color: #F1E6E0; font-size: 0.95rem; }
.section--sombre .note { margin-top: 18px; }
@media (max-width: 900px) {
  .etapes { grid-template-columns: 1fr 1fr; }
  .etape:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .etape:nth-child(even) { padding-left: 18px; border-left: 1px solid rgb(243 241 235 / 0.3); }
}
@media (max-width: 560px) {
  .etapes { grid-template-columns: 1fr; }
  .etape:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ------------------------------------------------------------------ */
/* Honoraires                                                           */
/* ------------------------------------------------------------------ */

.duo--bareme .tableau-enveloppe { margin-block: 18px; }
.mention-forte { font-weight: 700; padding: 12px 14px; border-left: 4px solid var(--brique); background: var(--pierre); margin-bottom: 14px; }
.encadre { padding: clamp(20px, 1rem + 1.5vw, 32px); background: var(--pierre); border: 1px solid var(--joint); border-radius: var(--rayon); }
.encadre .sous-titre:not(:first-child) { margin-top: 26px; }
.encadre--alerte { margin-top: 36px; border-left: 6px solid var(--dpe-e); max-width: 860px; }
.exemples { display: grid; gap: 8px; }
.exemples li { padding: 8px 0; border-bottom: 1px dashed var(--joint); font-variant-numeric: tabular-nums; }

.citation { margin-top: 20px; padding: 18px 20px; border-left: 4px solid var(--encre); background: var(--mortier); }
.citation blockquote { margin: 0; font-size: 0.98rem; line-height: 1.55; }
.citation figcaption { margin-top: 10px; font-size: 0.85rem; font-weight: 700; }
.citation--large { margin-top: 36px; max-width: 900px; }

.annonce-lue { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 1.5rem + 2vw, 64px); align-items: start; }
.annonce-exemple { display: grid; gap: 14px; justify-items: start; padding: 22px; background: var(--pierre); border: 1px solid var(--joint); border-top: 6px solid var(--brique); border-radius: var(--rayon); position: sticky; top: calc(var(--brnsg-barre, 0px) + var(--entete-h) + 16px); }
.annonce-exemple-titre { font-weight: 700; }
.annonce-exemple-dpe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.9rem; }
.annonce-exemple-dpe .pastilles-dpe { margin-left: 0; }
.annonce-exemple-copro { font-size: 0.9rem; }
.annonce-mentions { display: grid; gap: 0; counter-reset: mention; }
.annonce-mention { padding: 18px 0; border-bottom: 1px solid var(--joint); display: grid; gap: 8px; }
.annonce-mention:first-child { padding-top: 0; }
.annonce-mention-titre { font-size: var(--t-1); font-weight: 700; }
@media (max-width: 900px) {
  .annonce-lue { grid-template-columns: 1fr; }
  .annonce-exemple { position: static; }
}

.garanties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--joint); }
.garantie { display: grid; gap: 10px; align-content: start; padding: 24px 28px 26px 0; border-bottom: 1px solid var(--joint); }
.garantie:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--joint); }
.garantie-titre { font-size: var(--t-1); font-weight: 700; }
.garantie-lien { font-size: 0.9rem; }
@media (max-width: 800px) {
  .garanties { grid-template-columns: 1fr; }
  .garantie:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ------------------------------------------------------------------ */
/* Agence                                                               */
/* ------------------------------------------------------------------ */

.photo-pleine-cadre { aspect-ratio: 21 / 9; overflow: hidden; background: var(--mortier); }
.photo-pleine-cadre picture, .photo-pleine-cadre img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
@media (max-width: 760px) { .photo-pleine-cadre { aspect-ratio: 4 / 3; } }

.chiffres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--joint); }
.chiffres > div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--joint); }
.chiffres > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--joint); }
.chiffres dt { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; color: var(--brique); }
.chiffres dd { margin: 6px 0 0; font-size: 0.95rem; color: var(--encre-douce); line-height: 1.4; }

.portraits { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.portrait { display: grid; gap: 14px; }
.portrait-image { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--rayon); background: var(--mortier); }
.portrait-image picture, .portrait-image img { width: 100%; height: 100%; object-fit: cover; }
.portrait-texte { display: grid; gap: 4px; }
.portrait-texte p + p { margin-top: 0; }
.portrait-nom { font-family: var(--display); font-stretch: 75%; font-size: 1.9rem; line-height: 1; }
.portrait-role { font-weight: 700; }
.portrait-secteur { font-size: 0.9rem; color: var(--encre-douce); margin-bottom: 6px; }
.portrait--grand .portrait-nom { font-size: 2.4rem; }
@media (max-width: 900px) {
  .portraits { grid-template-columns: 1fr 1fr; }
  .portrait--grand { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
}
@media (max-width: 560px) {
  .portraits { grid-template-columns: 1fr; }
  .portrait--grand { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ */
/* Contact et plan d'accès                                              */
/* ------------------------------------------------------------------ */

.contact-grille { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(28px, 1.5rem + 3vw, 88px); align-items: start; }
.contact-formulaire .titre-section { font-size: var(--t-2); margin-bottom: 20px; }
.contact-infos { display: grid; gap: 28px; }
.contact-bloc { display: grid; gap: 10px; padding-top: 16px; border-top: 4px solid var(--encre); }
.contact-bloc-titre { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.contact-tel a { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: var(--t-2); color: var(--encre); text-decoration: none; }
.contact-tel a:hover { color: var(--brique); }
.contact-bloc address { font-style: normal; }
@media (max-width: 900px) { .contact-grille { grid-template-columns: 1fr; } }

.plan-grille { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(28px, 1.5rem + 3vw, 72px); align-items: start; }
.plan-texte { display: grid; gap: 18px; justify-items: start; }
.plan-adresse { font-weight: 700; }
.plan-figure { display: grid; gap: 8px; }
.plan-acces { width: 100%; height: auto; border: 1px solid var(--joint); border-radius: var(--rayon); background: #EEEAE2; }
.pa-fond { fill: #EEEAE2; }
.pa-eau { fill: #A9B7BD; }
.pa-bords path { fill: none; stroke: #D3CABC; stroke-linecap: round; stroke-linejoin: round; }
.pa-voies path { fill: none; stroke: #FBFAF7; stroke-linecap: round; stroke-linejoin: round; }
.pa-noms text { font-family: var(--texte); font-size: 13px; font-weight: 700; fill: #5E4C44; dominant-baseline: middle; }
.pa-metro circle { fill: var(--encre); }
.pa-m { font-family: var(--texte); font-size: 12px; font-weight: 700; fill: #F3F1EB; text-anchor: middle; }
.pa-metro-nom { font-family: var(--texte); font-size: 15px; font-weight: 700; fill: var(--encre); paint-order: stroke; stroke: #EEEAE2; stroke-width: 4px; }
.pa-fleche { fill: var(--encre); }
.pa-agence rect { fill: var(--brique); stroke: #FBFAF7; stroke-width: 2; }
.pa-agence path { fill: #FBFAF7; }
.pa-agence text { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 26px; fill: var(--encre); paint-order: stroke; stroke: #EEEAE2; stroke-width: 5px; }
.pa-agence .pa-agence-adresse { font-family: var(--texte); font-stretch: 100%; font-size: 15px; font-weight: 700; }
@media (max-width: 900px) { .plan-grille { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ */
/* Pages légales, 404                                                   */
/* ------------------------------------------------------------------ */

.texte-legal { max-width: 78ch; }
.texte-legal h2 { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: var(--t-2); line-height: 1.05; margin: 36px 0 12px; }
.texte-legal h2:first-child { margin-top: 0; }
.texte-legal ul { padding-left: 1.2rem; display: grid; gap: 6px; margin: 0.5em 0; }

.page-tete--404 { padding-block: clamp(48px, 3rem + 4vw, 120px); }
.page-404-grille { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.code-erreur { font-size: 1.2rem; color: var(--brique); letter-spacing: 0.04em; margin-bottom: 8px; }
.actions-404 { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.appel-404 { margin-top: 20px; }
.mur-404 { display: grid; gap: 6px; }
.mur-rang { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.mur-rang--decale { transform: translateX(-8.5%); }
.mur-brique { aspect-ratio: 2.1 / 1; background: var(--brique); border-radius: 1px; }
.mur-rang:nth-child(odd) .mur-brique:nth-child(3n) { background: var(--brique-fonce); }
.mur-rang:nth-child(even) .mur-brique:nth-child(2n) { background: #B9573A; }
.mur-brique--absente { background: transparent !important; box-shadow: inset 0 0 0 2px var(--encre); }
@media (max-width: 760px) { .page-404-grille { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ */
/* Pied de page                                                         */
/* ------------------------------------------------------------------ */

.pied {
  --focus: #F3F1EB;
  padding-block: 64px 32px;
  background: var(--encre);
  color: #E9E1DA;
  font-size: 0.95rem;
}
.pied a { color: #F3F1EB; }
.pied a:hover { color: #FFFFFF; }
.pied-grille { display: grid; grid-template-columns: 1.1fr 1fr 0.8fr 1.3fr; gap: 40px; }
.pied-bloc { display: grid; gap: 8px; align-content: start; }
.pied-bloc p + p { margin-top: 0; }
.logo--pied { color: #F3F1EB; margin-bottom: 8px; }
.logo--pied:hover { color: #F3F1EB; }
.logo--pied .logo-brique { fill: #C9573A; }
.pied-adresse { font-style: normal; }
.pied-tel a { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 1.7rem; text-decoration: none; }
.pied-titre { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: #F3F1EB; margin-bottom: 4px; }
.pied-horaires { display: grid; gap: 2px; }
.pied-horaires li { display: grid; gap: 0; padding: 3px 0; }
.pied-horaires li span:first-child { font-weight: 700; color: #F3F1EB; }
.pied-note { font-size: 0.85rem; color: #CDBFB6; }
.pied-liens { display: grid; gap: 6px; }
.pied-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgb(243 241 235 / 0.2); font-size: 0.85rem; color: #CDBFB6; }
.pied-legal p + p { margin-top: 0; }
@media (max-width: 1000px) { .pied-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pied-grille { grid-template-columns: 1fr; } }

/* État d'ouverture (horaires.js) */
[data-brnsg-horaires][data-etat="ferme"] { color: inherit; }

/* ------------------------------------------------------------------ */
/* Mouvement : rien n'est masqué sans js-motion ; mouvement réduit respecté. */
/* ------------------------------------------------------------------ */

/* Entrée du haut de page en CSS (la pile GSAP arrive après l'événement load). */
@keyframes brique-monter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes brique-assise { to { transform: scaleX(0); } }
@keyframes brique-approche { from { transform: scale(1.07); } to { transform: none; } }
.js-motion .hero-titre, .js-motion .page-titre, .js-motion .fiche-titre { animation: brique-monter 0.9s var(--ease) 0.05s both; }
.js-motion .hero-chapo, .js-motion .page-chapo, .js-motion .fiche-lieu { animation: brique-monter 0.9s var(--ease) 0.2s both; }
.js-motion .recherche, .js-motion .fiche-tete .prix-bloc { animation: brique-monter 0.9s var(--ease) 0.32s both; }
.js-motion .hero-preuves { animation: brique-monter 0.9s var(--ease) 0.44s both; }
.js-motion .hero-assises span { animation: brique-assise 0.6s cubic-bezier(0.65, 0, 0.35, 1) both; animation-delay: calc(0.15s + (8 - var(--i)) * 0.075s); }
.js-motion .hero-photo img { animation: brique-approche 2.2s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
