@charset "UTF-8";
/* ==========================================================================
   UNE DEMEURE POUR TOIT — feuille de style unique
   Encre sur papier · sérif éditoriale · filets fins · bronze en accent
   ========================================================================== */

/* ------------------------------------------------------------- 1. Polices */
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
/* Jost : Futura libre, en secours de Futura pour le logo. */
@font-face {
  font-family: 'Jost';
  src: url('../fonts/jost-variable.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-variable.woff2') format('woff2-variations'),
       url('../fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* --------------------------------------------------------------- 2. Jetons */
:root {
  --bg:        #fbf9f5;
  --bg-alt:    #f2ede4;
  --bg-deep:   #1a1714;
  --surface:   #ffffff;
  --text:      #1a1714;
  --text-soft: #4c443b;
  --muted:     #756c61;
  --accent:    #8f6229;
  --accent-lit:#b98650;
  --on-accent: #fffdf8;
  --line:      rgba(26, 23, 20, .13);
  --line-2:    rgba(26, 23, 20, .28);
  --shadow:    0 1px 2px rgba(26, 23, 20, .04), 0 18px 40px -18px rgba(26, 23, 20, .22);
  --shadow-lg: 0 2px 4px rgba(26, 23, 20, .05), 0 40px 80px -28px rgba(26, 23, 20, .34);

  --serif: 'Instrument Serif', 'Iowan Old Style', Palatino, Georgia, 'Times New Roman', serif;
  --logo:  Futura, 'Futura PT', 'Jost', 'Century Gothic', sans-serif;
  --sans:  'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Échelle typographique. --text-scale et --title-scale valent 1 ; l'éditeur
     de style du back-office les ajuste (80 à 120 %) sans toucher aux paliers. */
  --s--1: calc(clamp(.76rem, .74rem + .08vw, .82rem) * var(--text-scale, 1));
  --s-0:  calc(clamp(.97rem, .94rem + .14vw, 1.04rem) * var(--text-scale, 1));
  --s-1:  calc(clamp(1.1rem, 1.02rem + .34vw, 1.32rem) * var(--text-scale, 1));
  --s-2:  calc(clamp(1.4rem, 1.2rem + .85vw, 2rem) * var(--title-scale, 1));
  --s-3:  calc(clamp(1.85rem, 1.45rem + 1.7vw, 3.1rem) * var(--title-scale, 1));
  --s-4:  calc(clamp(2.35rem, 1.6rem + 3.1vw, 4.5rem) * var(--title-scale, 1));
  --s-5:  calc(clamp(2.8rem, 1.6rem + 5vw, 6.2rem) * var(--title-scale, 1));

  --gut: 1.25rem;
  --max: 84rem;
  --radius: 0px;
  --radius-lg: 0px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  /* Hauteur totale de l'en-tête fixe : bande des avis comprise. */
  --topbar-h: 2rem;
  --header-h: calc(4.5rem + var(--topbar-h));
  /* Le menu seul : ce qui reste visible une fois la page défilée. */
  --header-bar: calc(var(--header-h) - var(--topbar-h));

  /* Rythme vertical : deux densités, pour que tout ne respire pas pareil. */
  --sp: clamp(2.75rem, 1.4rem + 4.2vw, 5.25rem);
  --sp-tight: clamp(1.75rem, 1.1rem + 2.2vw, 2.75rem);

  --dpe-a: #319834; --dpe-b: #64b449; --dpe-c: #c3d545; --dpe-d: #f4e03a;
  --dpe-e: #f3b72e; --dpe-f: #ef8b34; --dpe-g: #e04c3a;
  --ges-a: #e6dcf3; --ges-b: #d3c0ea; --ges-c: #bda0de; --ges-d: #a480d1;
  --ges-e: #8a5fc2; --ges-f: #6f42ad; --ges-g: #532a89;

  color-scheme: light;
}

@media (min-width: 40rem) { :root { --gut: 2rem; --header-h: calc(5rem + var(--topbar-h)); } }
@media (min-width: 64rem) { :root { --gut: 3rem; } }

/* Thème sombre : automatique, sauf si le visiteur a forcé le thème clair. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #131110;
    --bg-alt:    #1b1917;
    --bg-deep:   #0d0c0b;
    --surface:   #1c1a17;
    --text:      #efe9df;
    --text-soft: #c6bdb1;
    --muted:     #9b9184;
    --accent:    #d5a86c;
    --accent-lit:#d5a86c;
    --on-accent: #17140f;
    --line:      rgba(239, 233, 223, .14);
    --line-2:    rgba(239, 233, 223, .3);
    --shadow:    0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .7);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .45), 0 40px 80px -28px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg:        #131110;
  --bg-alt:    #1b1917;
  --bg-deep:   #0d0c0b;
  --surface:   #1c1a17;
  --text:      #efe9df;
  --text-soft: #c6bdb1;
  --muted:     #9b9184;
  --accent:    #d5a86c;
  --accent-lit:#d5a86c;
  --on-accent: #17140f;
  --line:      rgba(239, 233, 223, .14);
  --line-2:    rgba(239, 233, 223, .3);
  --shadow:    0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .7);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .45), 0 40px 80px -28px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- 3. Socle */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-bar) + 1rem);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--s-0);
  font-weight: 400;
  line-height: var(--lh, 1.6);
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
/* Les règles d'auteur (.btn, .card…) l'emportent sinon sur le `display:none`
   que le navigateur applique à [hidden] : une carte filtrée resterait visible. */
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--accent-lit); color: var(--on-accent); }

.skip {
  position: fixed; top: .5rem; left: .5rem; z-index: 200;
  padding: .7rem 1.1rem; background: var(--text); color: var(--bg);
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip:focus { transform: none; }

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

/* ------------------------------------------------------- 4. Typographie */
.display, h1, h2, h3, .h-xl, .h-lg, .h-md {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.h-xl { font-size: var(--s-5); }
.h-lg { font-size: var(--s-4); }
.h-md { font-size: var(--s-3); }
.h-sm { font-size: var(--s-2); font-family: var(--serif); font-weight: 400; line-height: 1.12; }
em, .em { font-style: italic; }
.accent { color: var(--accent); }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--s--1);
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead {
  font-size: var(--s-1);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 46ch;
  text-wrap: pretty;
}
.prose { max-width: 40rem; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose li { color: var(--text-soft); text-wrap: pretty; }
.prose h2 { font-size: var(--s-2); margin-top: 2.2em; color: var(--text); }
.prose h3 { font-size: var(--s-1); font-family: var(--serif); margin-top: 1.8em; color: var(--text); }
.prose ul, .prose ol { padding-left: 0; }
.prose li { position: relative; padding-left: 1.4em; }
.prose li + li { margin-top: .5em; }
.prose ul > li::before {
  content: ''; position: absolute; left: .2em; top: .72em;
  width: .45em; height: 1px; background: var(--accent);
}
.prose ol { counter-reset: p; }
.prose ol > li { counter-increment: p; }
.prose ol > li::before {
  content: counter(p, decimal-leading-zero);
  position: absolute; left: 0; top: .1em;
  font-family: var(--sans); font-size: .72em; font-variant-numeric: tabular-nums;
  color: var(--accent); letter-spacing: .06em;
}
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote {
  border-left: 1px solid var(--accent); padding-left: 1.4rem;
  font-family: var(--serif); font-size: var(--s-1); color: var(--text);
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

/* ------------------------------------------------------------ 5. Structure */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}
/* Pleine largeur : une image ou un rail peut sortir du cadre de lecture.
   `--sbw` est la largeur de la barre de défilement, mesurée par site.js :
   sans elle, 100vw dépasse la zone visible et crée un débordement. */
:root { --vw: calc(100vw - var(--sbw, 0px)); }
.bleed { width: var(--vw); margin-inline: calc(50% - var(--vw) / 2); }
.bleed-right { margin-right: calc(50% - var(--vw) / 2); }
.bleed-left { margin-left: calc(50% - var(--vw) / 2); }

.section { padding-block: var(--sp); }
.section--tight { padding-block: var(--sp-tight); }
/* Deux sections qui traitent le même sujet se touchent au lieu de s'espacer. */
.section--join-top { padding-top: 0; }
.section--join-bottom { padding-bottom: 0; }
/* Deux respirations qui se suivent en font une de trop : après un en-tête de
   page ou une barre de filtres, la section qui suit resserre son espacement. */
.phead + .section,
.filters + .section,
.bien__head + .section { padding-top: var(--sp-tight); }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); color: #f3ede3; }
.section--deep .eyebrow { color: rgba(243, 237, 227, .5); }
.section--deep .lead,
.section--deep .prose p { color: rgba(243, 237, 227, .78); }
.hr { border: 0; border-top: 1px solid var(--line); }

main { position: relative; }

.grid { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.g-2 { grid-template-columns: 1fr; }
.g-3 { grid-template-columns: 1fr; }
.g-4 { grid-template-columns: 1fr; }
@media (min-width: 38rem) {
  .g-2 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 62rem) {
  .g-3 { grid-template-columns: repeat(3, 1fr); }
  .g-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Intitulé de section : étiquette au-dessus, titre aligné sur le bord du
   contenu qu'il annonce, chapeau dans une colonne à droite. Pas de marge
   vide à gauche : le titre et le bloc qui suit partent du même bord. */
.shead {
  display: grid; gap: .9rem;
  margin-bottom: clamp(1.75rem, 1.2rem + 1.8vw, 3rem);
}
.shead__label {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .85rem;
}
.shead__label i {
  font-style: normal; font-variant-numeric: tabular-nums;
  color: var(--accent); letter-spacing: .1em;
  display: inline-flex; align-items: center; gap: .85rem;
}
.shead__label i:not(:last-child)::after {
  content: ''; width: 1.75rem; height: 1px; background: var(--line-2);
}
.shead__title {
  font-size: var(--s-3); max-width: 22ch; text-wrap: balance;
}
.shead__aside { display: grid; gap: 1rem; align-content: start; }
.shead__aside .lead { max-width: 46ch; }
@media (min-width: 64rem) {
  .shead {
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 25rem);
    gap: 1rem clamp(2.5rem, 1rem + 4vw, 6rem);
    align-items: start;
  }
  .shead__label { grid-column: 1 / -1; }
  .shead__title { grid-column: 1; }
  .shead__aside { grid-column: 2; padding-top: .45rem; }
  /* Chapeau long : il passe sous le titre, en deux colonnes s'il a deux
     paragraphes, plutôt que de s'étirer dans une colonne étroite. */
  .shead--stack { grid-template-columns: minmax(0, 1fr); }
  .shead--stack .shead__aside {
    grid-column: 1; padding-top: .35rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
    gap: 1rem clamp(2rem, 1rem + 3vw, 4.5rem);
  }
  .shead--stack .shead__aside .lead { max-width: 62ch; }
}

/* ------------------------------------------------------------- 6. Boutons */
.btn {
  --btn-bg: var(--text); --btn-fg: var(--bg); --btn-bd: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .92rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--radius);
  font-size: var(--s--1); font-weight: 500; letter-spacing: .11em;
  text-transform: uppercase; cursor: pointer; text-align: center;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: var(--on-accent); --btn-bd: var(--accent); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bd: var(--text); }
.btn--light { --btn-bg: #fffdf8; --btn-fg: #1a1714; --btn-bd: #fffdf8; }
.btn--on-dark { --btn-bg: transparent; --btn-fg: #f6f1e8; --btn-bd: rgba(246, 241, 232, .4); }
.btn--on-dark:hover { --btn-bd: #f6f1e8; }
.btn--sm { padding: .62rem 1.05rem; }
.btn--block { width: 100%; }
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Lien souligné à l'animation lente. */
.link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--s--1); font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text);
  padding-bottom: .3rem;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-size: 0 1px; background-position: 0 100%;
  transition: background-size .4s var(--ease), color .25s var(--ease);
}
.link:hover { background-size: 100% 1px; color: var(--accent); }
.link svg { transition: transform .3s var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* -------------------------------------------------------------- 7. En-tête */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background .35s var(--ease), border-color .35s var(--ease),
              backdrop-filter .35s var(--ease), transform .35s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Au défilement, la bande des avis remonte : le menu reste seul en haut. */
.hdr.is-solid { transform: translateY(calc(var(--topbar-h) * -1)); }
.hdr__in {
  height: var(--header-bar);
  display: flex; align-items: center; gap: 1rem;
}
.hdr.is-solid,
.hdr:not(.hdr--over) {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom-color: var(--line);
}
.hdr--over:not(.is-solid) { color: #fdfaf4; }
.hdr--over:not(.is-solid) .brand__name { color: #fdfaf4; }
.hdr--over:not(.is-solid) .brand__sub { color: rgba(253, 250, 244, .7); }
.hdr--over:not(.is-solid) .nav a { color: rgba(253, 250, 244, .88); }
.hdr--over:not(.is-solid) .nav a:hover,
.hdr--over:not(.is-solid) .nav a[aria-current] { color: #fff; }
.hdr--over:not(.is-solid) .icon-btn { color: #fdfaf4; border-color: rgba(253, 250, 244, .32); }
.hdr--over:not(.is-solid) .hdr__tel { color: #fdfaf4; }
.hdr--over:not(.is-solid) .btn--ghost { --btn-fg: #fdfaf4; --btn-bd: rgba(253, 250, 244, .42); }

/* Bande des avis certifiés (Opinion System), au-dessus du menu. Toujours
   sombre ; le cadre du widget garde un fond transparent tant que son
   color-scheme est celui de sa page (clair), même en thème sombre. */
.topbar {
  height: var(--topbar-h); background: #131110; color: rgba(253, 250, 244, .82);
  border-bottom: 1px solid rgba(253, 250, 244, .08);
}
.topbar__in { height: 100%; display: flex; align-items: center; justify-content: center; gap: .9rem; }
.topbar__label {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  color: inherit; text-decoration: none;
}
.topbar__label:hover { color: #fff; }
.topbar__rating { flex: none; width: 188px; height: 22px; border: 0; overflow: hidden; color-scheme: light; }

/* Logotype : celui de l'agence, en Futura. « UNE DEMEURE » en capitales
   avec un grand D bronze, « POUR TOIT » centré entre deux filets. */
.brand { display: flex; align-items: center; margin-right: auto; min-width: 0; }
.brand__txt {
  display: inline-flex; flex-direction: column; min-width: 0;
  font-family: var(--logo); text-transform: uppercase; line-height: 1;
}
.brand__name {
  font-size: clamp(1.12rem, 1.02rem + .3vw, 1.3rem); font-weight: 400; letter-spacing: .1em; white-space: nowrap;
  margin-right: -.1em; /* l'espace après la dernière lettre ne compte pas */
}
.brand__name em { font-style: normal; font-size: 1.38em; line-height: .7; color: var(--accent-lit); }
.brand__sub {
  display: flex; align-items: center; gap: .55em; margin-top: .34rem;
  font-size: clamp(.56rem, .52rem + .12vw, .64rem); font-weight: 400; letter-spacing: .34em;
  color: var(--muted); white-space: nowrap;
}
/* Filets de part et d'autre ; le premier rattrape l'espace de lettre final. */
.brand__sub::before, .brand__sub::after { content: ''; flex: 1 1 0; height: 1px; background: currentColor; opacity: .75; }
.brand__sub::before { margin-right: .34em; }
.hdr--over:not(.is-solid) .brand__name em { color: var(--accent-lit); }

.nav { display: none; }
.nav ul { display: flex; align-items: center; gap: clamp(.8rem, .1rem + 1vw, 1.6rem); }
.nav a {
  font-size: var(--s--1); letter-spacing: .05em; color: var(--text-soft);
  padding-block: .4rem; position: relative; white-space: nowrap;
  transition: color .22s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav a[aria-current] { color: var(--accent); }
@media (min-width: 62rem) { .nav { display: block; } }

.hdr__side { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; }
.hdr__tel {
  display: none; align-items: center; gap: .45rem; white-space: nowrap;
  font-size: var(--s--1); font-weight: 500; letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.hdr__tel:hover { color: var(--accent); }
@media (min-width: 48rem) { .hdr__tel { display: inline-flex; } }
.hdr__cta { display: none; white-space: nowrap; }
@media (min-width: 82rem) { .hdr__cta { display: inline-flex; } }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; flex: 0 0 auto;
  border: 1px solid var(--line-2); border-radius: 50%;
  background: transparent; cursor: pointer;
  transition: background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.icon-btn:hover { border-color: currentColor; }
.icon-btn svg { width: 1.05rem; height: 1.05rem; }
.theme__moon { display: none; }
:root[data-theme="dark"] .theme__sun { display: none; }
:root[data-theme="dark"] .theme__moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme__sun { display: none; }
  :root:not([data-theme="light"]) .theme__moon { display: block; }
}
.burger { display: inline-flex; }
@media (min-width: 62rem) { .burger { display: none; } }

/* Panneau de navigation mobile */
.drawer {
  position: fixed; inset: 0; z-index: 150;
  background: var(--bg); color: var(--text);
  display: flex; flex-direction: column;
  padding: var(--gut);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.drawer[data-open] { opacity: 1; visibility: visible; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-bar); margin-top: calc(var(--gut) * -1); }
.drawer__nav { margin-top: 2rem; display: flex; flex-direction: column; }
.drawer__nav a {
  font-family: var(--serif); font-size: var(--s-2); line-height: 1;
  padding-block: .85rem; border-bottom: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 1rem;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.drawer[data-open] .drawer__nav a { opacity: 1; transform: none; }
.drawer__nav a span {
  font-family: var(--sans); font-size: .62rem; letter-spacing: .14em;
  color: var(--muted); font-variant-numeric: tabular-nums;
}
.drawer__foot { margin-top: auto; padding-top: 2rem; display: grid; gap: 1rem; }
.drawer__tel { font-family: var(--serif); font-size: var(--s-2); }

/* ---------------------------------------------------------------- 8. Héros */
.hero {
  position: relative; isolation: isolate; color: #fdfaf4;
  /* Cadence du diaporama : une photographie toutes les trois secondes.
     Les pourcentages des images-clés supposent quatre photographies ; en
     ajouter ou en retirer demande de les réajuster, chacune occupant
     100 / nombre de photographies. */
  --slide: 3s;
  --cycle: calc(var(--slide) * 4);
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 12, 10, .62) 0%, rgba(14, 12, 10, .32) 34%, rgba(14, 12, 10, .5) 68%, rgba(14, 12, 10, .86) 100%),
    linear-gradient(90deg, rgba(14, 12, 10, .5) 0%, rgba(14, 12, 10, 0) 62%);
}
.hero__in {
  /* Moitié de l'écran : les biens doivent apparaître presque sans défiler. */
  min-height: min(33rem, 62svh);
  padding-top: calc(var(--header-h) + clamp(2rem, 1.2rem + 3.5vw, 4rem));
  padding-bottom: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: clamp(1.5rem, 1rem + 2.4vw, 2.75rem);
}
.hero__eyebrow { color: rgba(253, 250, 244, .72); }
.hero__eyebrow::before {
  content: ''; display: inline-block; width: 2.2rem; height: 1px;
  background: var(--accent-lit); vertical-align: .32em; margin-right: .85rem;
}
.hero h1 { font-size: var(--s-4); max-width: 16ch; margin-top: .85rem; }
/* La ville d'un seul tenant, en romain : l'italique faisait trop apprêté. */
.hero h1 em { color: var(--accent-lit); font-style: normal; white-space: nowrap; }
.hero__lead {
  color: rgba(253, 250, 244, .86); max-width: 42ch; margin-top: 1.1rem;
  font-size: var(--s-1); line-height: 1.45;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
/* Haut du héros : le titre à gauche ; la légende de la photo à droite, calée
   sur le bas des boutons et sur le bord droit du cadre. */
.hero__top { display: grid; gap: 1.5rem; }
@media (min-width: 75rem) {
  .hero__top { grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem); align-items: end; column-gap: 3rem; }
}
/* Les chiffres de l'agence : une seule ligne, sans cases ni colonnes. */
.factline {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: .5rem clamp(1.25rem, .6rem + 2.4vw, 3rem);
  padding-top: clamp(.9rem, .6rem + 1vw, 1.4rem);
  border-top: 1px solid var(--line-2);
}
.factline li { display: flex; align-items: baseline; gap: .55rem; white-space: nowrap; }
.factline b {
  font-family: var(--serif); font-weight: 400; font-size: var(--s-1);
  line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
.factline span {
  font-size: var(--s--1); letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted);
}
.section--deep .factline { border-top-color: rgba(243, 237, 227, .24); }
.section--deep .factline b { color: #f6f1e8; }
.section--deep .factline span { color: rgba(243, 237, 227, .6); }

/* En-tête de page intérieure : pas de cadre, du grand titre et de l'air. */
.phead {
  padding-top: calc(var(--header-h) + clamp(2.75rem, 1.5rem + 6vw, 7rem));
  padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}
.phead h1 { font-size: var(--s-4); max-width: 17ch; margin-top: 1rem; }
.phead nav + .phead__grid { margin-top: clamp(1.5rem, 1rem + 1.6vw, 2.75rem); }
.phead .lead { margin-top: 0; }
.phead__grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 62rem) {
  .phead__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 1rem + 4vw, 5rem);
  }
  .phead__grid > div:last-child { padding-top: .75rem; }
}
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-size: var(--s--1); color: var(--muted); letter-spacing: .04em;
}
.crumbs a:hover { color: var(--accent); }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: .5rem; opacity: .5; }
.crumbs li { display: flex; align-items: center; }

/* ------------------------------------------------------------ 9. Index des services */
.idx { border-top: 1px solid var(--line); }
.idx__row {
  display: grid; gap: .5rem 1.5rem; align-items: start;
  grid-template-columns: auto 1fr;
  padding: clamp(1.1rem, .8rem + 1.2vw, 1.65rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: color .3s var(--ease);
}
/* Une ligne d'index se signale par un filet qui se colore, pas par un aplat. */
.idx__row::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.idx__row:hover::before { transform: scaleX(1); }
.idx__num {
  font-size: var(--s--1); letter-spacing: .12em; color: var(--muted);
  font-variant-numeric: tabular-nums; padding-top: .55rem;
  transition: color .3s var(--ease);
}
.idx__row:hover .idx__num { color: var(--accent); }
.idx__body { display: grid; gap: .6rem; }
.idx__title {
  font-family: var(--serif); font-size: var(--s-2); line-height: 1.05;
  display: flex; align-items: center; gap: .8rem;
  transition: color .3s var(--ease);
}
.idx__row:hover .idx__title { color: var(--accent); }
.idx__title svg { flex: 0 0 auto; opacity: 0; transform: translateX(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease); color: var(--accent); }
.idx__row:hover .idx__title svg { opacity: 1; transform: none; }
.idx__text { color: var(--text-soft); max-width: 52ch; }
@media (min-width: 62rem) {
  .idx__row { grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; }
  .idx__body { grid-template-columns: subgrid; grid-column: 2 / -1; display: grid; gap: 2.5rem; align-items: center; }
  .idx__text { margin: 0; }
  .idx--plain .idx__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .idx--plain .idx__body { grid-column: 1 / -1; }
}

/* --------------------------------------------------- 10. Cartes de biens */
.cards { display: grid; gap: clamp(1.75rem, 1rem + 2.5vw, 3rem) clamp(1.25rem, .8rem + 1.6vw, 2.25rem); }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.cards--two { grid-template-columns: 1fr; }
@media (min-width: 46rem) { .cards--two { grid-template-columns: repeat(2, 1fr); } }

.card { display: flex; flex-direction: column; min-width: 0; }
.card__media {
  position: relative; display: block; overflow: hidden;
  background: var(--bg-alt); border-radius: var(--radius);
  aspect-ratio: 3 / 2;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .85s var(--ease), filter .5s var(--ease);
}
.card:hover .card__media img { transform: scale(1.045); }
/* La place de la pastille DPE est réservée : sur une carte étroite, les
   étiquettes passent à la ligne au lieu de glisser dessous. */
.card__tags {
  position: absolute; top: .7rem; left: .7rem; right: 4.6rem;
  display: flex; flex-wrap: wrap; gap: .35rem;
}
.card__dpe {
  position: absolute; top: .7rem; right: .7rem;
  padding: .34rem .55rem; border-radius: 1px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  color: var(--muted); font-size: .6rem; letter-spacing: .13em; text-transform: uppercase;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.card__dpe b { color: var(--text); font-weight: 600; margin-left: .18rem; }
.tag {
  display: inline-block; padding: .34rem .62rem;
  font-size: .62rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  color: var(--text); border-radius: 1px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tag--accent { background: var(--accent); color: var(--on-accent); }
.tag--ink { background: rgba(20, 18, 15, .82); color: #f8f3ea; }

/* Pastille « Voir » qui suit le pointeur (bureau uniquement). */
.card__peek {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  width: 4.6rem; height: 4.6rem; border-radius: 50%;
  display: none; place-items: center;
  background: var(--accent); color: var(--on-accent);
  font-size: .6rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card__peek { display: grid; }
  .card__media:hover .card__peek { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.card__body { padding-top: 1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__kicker {
  font-size: var(--s--1); letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); display: flex; flex-wrap: wrap; column-gap: 1rem;
}
.card__title {
  font-family: var(--serif); font-size: var(--s-1); line-height: 1.14;
  text-wrap: pretty;
}
/* Deux lignes réservées : les prix s'alignent d'une carte à l'autre. */
@media (min-width: 40rem) { .card__title { min-height: 2.28em; } }
.card:hover .card__title { color: var(--accent); }
.card__title a { transition: color .25s var(--ease); }
.card__price {
  font-family: var(--serif); font-size: var(--s-2); line-height: 1;
  font-variant-numeric: tabular-nums; margin-top: .15rem;
}
.card__price small { font-size: .48em; font-family: var(--sans); color: var(--muted); letter-spacing: .04em; }
.card__meta {
  display: flex; flex-wrap: wrap; align-items: center;
  margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line);
  font-size: var(--s--1); color: var(--text-soft);
}
.card__meta li { display: flex; align-items: center; gap: .35rem; white-space: nowrap; }
.card__meta li + li { margin-left: .55rem; padding-left: .55rem; border-left: 1px solid var(--line); }
.card__meta b { font-weight: 500; font-variant-numeric: tabular-nums; }
.card__meta .pill { margin-left: auto; }

.pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .45rem; border: 1px solid var(--line-2); border-radius: 1px;
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.pill b { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------- 11. Filtres */
.filters {
  position: sticky; top: var(--header-bar); z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.filters__in { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding-block: .85rem; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.seg button {
  padding: .58rem .9rem; background: transparent; border: 0; cursor: pointer;
  font-size: var(--s--1); letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
  transition: background .22s var(--ease), color .22s var(--ease);
}
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
/* Cantonné à la barre de filtres : le formulaire d'estimation utilise aussi
   la classe `.field`, avec une présentation différente. */
.filters .field { position: relative; display: inline-flex; }
.filters .field select {
  appearance: none; -webkit-appearance: none;
  padding: .58rem 2.1rem .58rem .8rem;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius);
  font-size: var(--s--1); letter-spacing: .05em; cursor: pointer;
  transition: border-color .22s var(--ease);
}
.filters .field select:hover { border-color: var(--text); }
.filters .field::after {
  content: ''; position: absolute; right: .85rem; top: 50%;
  width: .38rem; height: .38rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: translateY(-70%) rotate(45deg); pointer-events: none; opacity: .6;
}
.filters__count { margin-left: auto; font-size: var(--s--1); color: var(--muted); letter-spacing: .06em; }
/* Sur petit écran, deux colonnes et pas de barre collante : elle mangerait l'écran. */
@media (max-width: 40rem) {
  .filters { position: static; }
  .filters__in { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .filters__in .seg { grid-column: 1 / -1; }
  .filters__in .seg button { flex: 1; }
  .filters .field, .filters .field select { width: 100%; }
  .filters__count { grid-column: 1 / -1; margin-left: 0; }
  .filters__reset { grid-column: 1 / -1; text-align: left; }
}
.filters__reset {
  background: none; border: 0; cursor: pointer; padding: .3rem 0;
  font-size: var(--s--1); letter-spacing: .09em; text-transform: uppercase; color: var(--accent);
  text-decoration: underline; text-underline-offset: .25em;
}
.empty { text-align: center; padding: clamp(3rem, 2rem + 4vw, 6rem) 0; }
.empty h3 { font-size: var(--s-2); }
.empty p { color: var(--muted); margin-top: .75rem; }

/* ------------------------------------------------- 12. Fiche d'un bien */
.bien__head { padding-top: calc(var(--header-h) + clamp(1.5rem, 1rem + 2vw, 2.75rem)); }
.bien__title { font-size: var(--s-3); max-width: 30ch; margin-top: .9rem; }
/* Ligne de données : commune à gauche, prix à droite, séparée par un filet. */
.bien__sub {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: .75rem 1.5rem;
  margin-top: clamp(1.25rem, 1rem + 1vw, 2rem);
  padding-top: clamp(1rem, .7rem + 1vw, 1.5rem);
  border-top: 1px solid var(--line);
}
.bien__sub-left { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.bien__loc { font-size: var(--s--1); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: .45rem; }
.bien__price {
  font-family: var(--serif); font-size: var(--s-3); line-height: 1; font-variant-numeric: tabular-nums;
}
.bien__price small { font-family: var(--sans); font-size: .34em; color: var(--muted); letter-spacing: .05em; }

/* Galerie */
.gal { margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); display: grid; gap: .5rem; }
.gal__main {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 16 / 10; background: var(--bg-alt); cursor: zoom-in; border: 0; padding: 0; width: 100%;
}
.gal__main img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gal__main:hover img { transform: scale(1.02); }
.gal__more {
  position: absolute; right: .7rem; bottom: .7rem;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .8rem; border-radius: 1px;
  background: rgba(20, 18, 15, .78); color: #f8f3ea;
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.gal__strip { display: grid; grid-auto-flow: column; grid-auto-columns: 32%; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .25rem; scrollbar-width: thin; }
@media (min-width: 46rem) { .gal__strip { grid-auto-columns: 1fr; grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }
.gal__thumb {
  position: relative; overflow: hidden; border: 0; padding: 0; cursor: zoom-in;
  aspect-ratio: 4 / 3; background: var(--bg-alt); border-radius: var(--radius); scroll-snap-align: start;
}
.gal__thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s var(--ease), transform .6s var(--ease); }
.gal__thumb:hover img { opacity: .82; transform: scale(1.05); }

.bien__cols { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); align-items: start; }
@media (min-width: 64rem) { .bien__cols { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }

.slab { border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.slab > h2 { font-size: var(--s-2); margin-bottom: 1.25rem; }
.slab:first-child { margin-top: 0; }

.specs { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 34rem) { .specs { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; } }
.specs div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .72rem 0; border-bottom: 1px solid var(--line);
}
.specs dt { font-size: var(--s--1); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.specs dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

.feats { display: flex; flex-wrap: wrap; gap: .5rem; }
.feats li {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .42rem .8rem; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: var(--s--1); color: var(--text-soft);
}
.feats svg { color: var(--accent); flex: 0 0 auto; }

/* Étiquettes DPE / GES redessinées */
.diag { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
@media (min-width: 42rem) { .diag { grid-template-columns: repeat(2, 1fr); } }
.scale__cap { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.scale__cap h3 { font-family: var(--sans); font-size: var(--s--1); font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.scale__cap b { font-family: var(--serif); font-weight: 400; font-size: var(--s-1); }
.scale { display: grid; gap: .28rem; }
.scale__row { display: flex; align-items: center; gap: .6rem; }
.scale__bar {
  position: relative; height: 1.5rem; border-radius: 1px;
  display: flex; align-items: center; padding-inline: .5rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .06em; color: rgba(20, 18, 15, .78);
  opacity: .26; transition: opacity .3s var(--ease);
}
.scale__bar::after {
  content: ''; position: absolute; right: -.42rem; top: 0;
  border: .75rem solid transparent; border-left-width: .45rem; border-right-width: 0;
  border-left-color: inherit;
}
.scale__row[data-on] .scale__bar { opacity: 1; }
.scale__row[data-on] .scale__val {
  font-size: var(--s--1); font-weight: 600; color: var(--text); letter-spacing: .05em;
}
.scale__val { font-size: var(--s--1); color: transparent; white-space: nowrap; }
.scale--dpe .scale__row:nth-child(1) .scale__bar { background: var(--dpe-a); border-left-color: var(--dpe-a); width: 42%; }
.scale--dpe .scale__row:nth-child(2) .scale__bar { background: var(--dpe-b); border-left-color: var(--dpe-b); width: 50%; }
.scale--dpe .scale__row:nth-child(3) .scale__bar { background: var(--dpe-c); border-left-color: var(--dpe-c); width: 58%; }
.scale--dpe .scale__row:nth-child(4) .scale__bar { background: var(--dpe-d); border-left-color: var(--dpe-d); width: 66%; }
.scale--dpe .scale__row:nth-child(5) .scale__bar { background: var(--dpe-e); border-left-color: var(--dpe-e); width: 74%; }
.scale--dpe .scale__row:nth-child(6) .scale__bar { background: var(--dpe-f); border-left-color: var(--dpe-f); width: 82%; }
.scale--dpe .scale__row:nth-child(7) .scale__bar { background: var(--dpe-g); border-left-color: var(--dpe-g); width: 90%; }
.scale--ges .scale__row:nth-child(1) .scale__bar { background: var(--ges-a); border-left-color: var(--ges-a); width: 42%; }
.scale--ges .scale__row:nth-child(2) .scale__bar { background: var(--ges-b); border-left-color: var(--ges-b); width: 50%; }
.scale--ges .scale__row:nth-child(3) .scale__bar { background: var(--ges-c); border-left-color: var(--ges-c); width: 58%; }
.scale--ges .scale__row:nth-child(4) .scale__bar { background: var(--ges-d); border-left-color: var(--ges-d); width: 66%; }
.scale--ges .scale__row:nth-child(5) .scale__bar { background: var(--ges-e); border-left-color: var(--ges-e); width: 74%; }
.scale--ges .scale__row:nth-child(6) .scale__bar { background: var(--ges-f); border-left-color: var(--ges-f); width: 82%; }
.scale--ges .scale__row:nth-child(7) .scale__bar { background: var(--ges-g); border-left-color: var(--ges-g); width: 90%; }
.scale--ges .scale__row:nth-child(n+5) .scale__bar { color: rgba(255, 253, 248, .9); }
.scale__na { color: var(--muted); font-size: var(--s--1); }

/* Encart latéral de contact */
.aside { display: grid; gap: 1rem; }
@media (min-width: 64rem) { .aside { position: sticky; top: calc(var(--header-bar) + 1.5rem); } }
.panel {
  border-top: 1px solid var(--text);
  background: var(--bg-alt); padding: clamp(1.4rem, 1rem + 1.2vw, 2rem);
}
.section--alt .panel { background: var(--bg); }
:root[data-theme="dark"] .panel { background: var(--surface); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .panel { background: var(--surface); }
}
.panel > * + * { margin-top: 1rem; }
.panel h2, .panel h3 { font-size: var(--s-1); font-family: var(--serif); }
.panel__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; font-size: var(--s--1); }
.panel__row + .panel__row { margin-top: .55rem; }
.panel__row dt { color: var(--muted); }
.panel__row dd { margin: 0; font-variant-numeric: tabular-nums; }
.panel__note { font-size: var(--s--1); color: var(--muted); line-height: 1.5; }
.panel__ref {
  display: inline-block; font-size: var(--s--1); letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.agentcard { display: flex; gap: .9rem; align-items: center; }
.agentcard img { width: 3.4rem; height: auto; flex: 0 0 auto; }
.agentcard p { font-size: var(--s--1); color: var(--muted); line-height: 1.5; }
.agentcard strong { display: block; color: var(--text); font-size: var(--s-0); font-weight: 500; }

/* Visionneuse */
.lb { border: 0; padding: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; background: rgba(12, 11, 10, .96); color: #f6f1e8; }
.lb::backdrop { background: rgba(12, 11, 10, .9); }
.lb__in { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem var(--gut); }
.lb__count { font-size: var(--s--1); letter-spacing: .12em; font-variant-numeric: tabular-nums; opacity: .8; }
.lb__stage { display: grid; place-items: center; padding: 0 var(--gut); min-height: 0; }
.lb__stage img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; border-radius: var(--radius); }
.lb__foot { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: 1rem var(--gut) 1.5rem; }
.lb .icon-btn { border-color: rgba(246, 241, 232, .3); color: #f6f1e8; }
.lb .icon-btn:hover { background: rgba(246, 241, 232, .12); }
.lb__cap { font-size: var(--s--1); opacity: .7; }

/* ----------------------------------------------------- 13. Avis clients */
.avis { display: grid; gap: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
@media (min-width: 46rem) { .avis { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 70rem) { .avis { grid-template-columns: repeat(3, 1fr); } }
.avis__item {
  border-top: 1px solid var(--line-2); padding-top: 1.25rem;
  display: flex; flex-direction: column; gap: .85rem;
}
.stars { display: flex; gap: .15rem; color: var(--accent-lit); }
.stars svg { width: .8rem; height: .8rem; }
.avis__txt { font-family: var(--serif); font-size: var(--s-1); line-height: 1.32; text-wrap: pretty; }
.avis__by { margin-top: auto; font-size: var(--s--1); color: var(--muted); letter-spacing: .04em; }
.avis__by b { color: var(--text); font-weight: 500; display: block; letter-spacing: 0; }
.rating {
  display: inline-flex; align-items: center; gap: .8rem;
  padding: .6rem .95rem; border: 1px solid var(--line); border-radius: var(--radius);
}
.rating b { font-family: var(--serif); font-size: var(--s-1); font-weight: 400; }
.rating span { font-size: var(--s--1); color: var(--muted); }

/* ---------------------------------------------- 14. Blocs de contenu divers */
.split { display: grid; gap: clamp(1.75rem, 1.2rem + 3vw, 4rem); align-items: start; }
.split--center { align-items: center; }
@media (min-width: 58rem) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--wide-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .split--flip > :first-child { order: 2; }
}
.figure { position: relative; }
.figure img { width: 100%; border-radius: var(--radius); }
/* Image qui occupe toute la hauteur de sa colonne, quand le texte d'en face
   est plus long qu'elle (bloc « Pourquoi nous choisir »). */
@media (min-width: 58rem) {
  .figure--fill { align-self: stretch; }
  .figure--fill img { height: 100%; min-height: 22rem; object-fit: cover; }
}
/* Volontairement sans ornement : l'image se suffit. */
.figcap { margin-top: .75rem; font-size: var(--s--1); color: var(--muted); }

/* Plus de grille encadrée : des colonnes séparées par un simple filet haut. */
.tiles { display: grid; gap: clamp(2rem, 1.2rem + 2.4vw, 3.25rem) clamp(1.75rem, 1rem + 2.4vw, 3.5rem); }
@media (min-width: 40rem) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) {
  .tiles--3 { grid-template-columns: repeat(3, 1fr); }
  /* Deux tuiles seulement : deux colonnes, pas une troisième laissée vide. */
  .tiles--3:has(> .tile:nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
}
.tile {
  display: flex; flex-direction: column; gap: .55rem;
  padding-top: 1.1rem; border-top: 1px solid var(--line-2);
}
.tile__num {
  font-size: var(--s--1); letter-spacing: .12em; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.tile h3 { font-size: clamp(1.2rem, 1.05rem + .45vw, 1.5rem); font-family: var(--serif); line-height: 1.15; }
.tile p { color: var(--text-soft); font-size: var(--s-0); }
.section--deep .tile { border-top-color: rgba(243, 237, 227, .26); }
.section--deep .tile p { color: rgba(243, 237, 227, .74); }

.checks { display: grid; gap: .85rem; }
@media (min-width: 46rem) { .checks--2 { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; } }
.checks li { display: flex; gap: .8rem; align-items: flex-start; color: var(--text-soft); }
.checks svg { flex: 0 0 auto; margin-top: .42em; color: var(--accent); }
.section--deep .checks li { color: rgba(243, 237, 227, .82); }
.section--deep .checks svg { color: var(--accent-lit); }

.steps { counter-reset: st; border-top: 1px solid var(--line); }
.steps li {
  counter-increment: st; position: relative;
  padding: 1.35rem 0 1.35rem 3.5rem; border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(st, decimal-leading-zero);
  position: absolute; left: 0; top: 1.5rem;
  font-size: var(--s--1); letter-spacing: .1em; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-family: var(--serif); font-size: var(--s-1); margin-bottom: .3rem; }
.steps p { color: var(--text-soft); max-width: 60ch; }

/* Bandeau défilant des communes : une respiration, pas une liste de pastilles. */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  padding-block: clamp(.9rem, .6rem + .8vw, 1.4rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex; width: max-content; will-change: transform;
  animation: marquee 68s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: clamp(1.1rem, .8rem + 1.2vw, 2rem);
  padding-right: clamp(1.1rem, .8rem + 1.2vw, 2rem);
  font-family: var(--serif); font-size: clamp(1.1rem, .95rem + .55vw, 1.5rem); line-height: 1.2;
  color: var(--text-soft); white-space: nowrap;
}
.marquee__item::after {
  content: ''; width: .3rem; height: .3rem; flex: 0 0 auto;
  background: var(--accent-lit); transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }
/* Sans animation (réglage du système) : une seule liste, centrée, qui passe
   à la ligne proprement, sans fondu sur les bords ni doublon. */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; padding-inline: var(--gut); }
  .marquee__track {
    animation: none; width: auto; max-width: var(--max); margin-inline: auto;
    flex-wrap: wrap; justify-content: center; row-gap: .55rem;
  }
  .marquee__item--copy { display: none; }
  .marquee__item:has(+ .marquee__item--copy)::after { display: none; }
}

.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li {
  padding: .4rem .75rem; border: 1px solid var(--line);
  font-size: var(--s--1); color: var(--text-soft);
}
.section--deep .chips li { border-color: rgba(243, 237, 227, .22); color: rgba(243, 237, 227, .82); }

.accord { border-top: 1px solid var(--line); }
.accord details { border-bottom: 1px solid var(--line); }
.accord summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: var(--s-1); line-height: 1.2;
}
.accord summary::-webkit-details-marker { display: none; }
.accord summary::after {
  content: ''; flex: 0 0 auto; width: .6rem; height: .6rem;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: rotate(45deg); transition: transform .3s var(--ease); margin-right: .2rem;
}
.accord details[open] summary::after { transform: rotate(-135deg); }
.accord details[open] summary { color: var(--accent); }
.accord__body { padding-bottom: 1.35rem; color: var(--text-soft); max-width: 62ch; }

/* --------------------------------------------------------- 15. Journal */
.posts { display: grid; gap: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
@media (min-width: 44rem) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post { display: flex; flex-direction: column; gap: .85rem; }
.post__media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; background: var(--bg-alt); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post__media img { transform: scale(1.04); }
.post__meta {
  font-size: var(--s--1); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem .6rem;
  align-items: center;
}
.post__meta time { white-space: nowrap; }
.post__cat { color: var(--accent); }
.post__cat::before { content: '·'; margin-right: .6rem; color: var(--muted); }
.post__meta i { font-style: normal; width: 3px; height: 3px; border-radius: 50%; background: var(--accent-lit); }
.post h3 { font-family: var(--serif); font-size: var(--s-1); line-height: 1.16; }
.post:hover h3 { color: var(--accent); }
.post h3 a { transition: color .25s var(--ease); }
.post p { color: var(--text-soft); font-size: var(--s-0); }


/* -------------------------------------------------------- 16. Formulaires */
.form { display: grid; gap: 1rem; }
.form__grid { display: grid; gap: 1rem; }
@media (min-width: 34rem) { .form__grid { grid-template-columns: repeat(2, 1fr); } }
.inp { display: grid; gap: .4rem; }
.inp > span { font-size: var(--s--1); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.inp > span b { color: var(--accent); font-weight: 400; }
.inp input, .inp select, .inp textarea {
  width: 100%; padding: .78rem .9rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.inp textarea { min-height: 8.5rem; resize: vertical; }
.inp input:hover, .inp select:hover, .inp textarea:hover { border-color: var(--text); }
.inp input:focus, .inp select:focus, .inp textarea:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.inp--full { grid-column: 1 / -1; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--s--1); color: var(--muted); line-height: 1.5; }
.consent input { margin-top: .25em; accent-color: var(--accent); width: 1rem; height: 1rem; flex: 0 0 auto; }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.form__status { font-size: var(--s--1); min-height: 1.2em; }
.form__status[data-kind="ok"] { color: var(--accent); }
.form__status[data-kind="err"] { color: #c0392b; }
:root[data-theme="dark"] .form__status[data-kind="err"] { color: #e8806f; }

/* ------------------------------------------------------------ 17. Contact */
.contact__grid { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); align-items: start; }
@media (min-width: 62rem) { .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.infolist { display: grid; gap: 1.4rem; }
.infolist > div { display: grid; gap: .3rem; }
.infolist dt { font-size: var(--s--1); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.infolist dd { margin: 0; font-family: var(--serif); font-size: var(--s-1); line-height: 1.25; }
.infolist dd a:hover { color: var(--accent); }
.infolist dd small { font-family: var(--sans); font-size: var(--s-0); color: var(--text-soft); display: block; }
.hours { display: grid; gap: .5rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--s-0); padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.mapwrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.mapwrap iframe { display: block; width: 100%; height: clamp(16rem, 34vw, 24rem); border: 0; filter: saturate(.75); }
:root[data-theme="dark"] .mapwrap iframe { filter: saturate(.6) invert(.92) hue-rotate(180deg); }

/* ------------------------------------------------------------- 18. Appels */
.cta { position: relative; isolation: isolate; color: #f6f1e8; overflow: hidden; }
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(14, 12, 10, .92) 0%, rgba(14, 12, 10, .72) 55%, rgba(14, 12, 10, .5) 100%); }
.cta__in { padding-block: clamp(3.5rem, 2.5rem + 5vw, 7rem); display: grid; gap: 2rem; align-items: center; }
@media (min-width: 58rem) { .cta__in { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3.5rem; } }
.cta h2 { font-size: var(--s-3); max-width: 24ch; }
.cta p { color: rgba(246, 241, 232, .8); max-width: 46ch; margin-top: 1rem; }
.cta .eyebrow { color: rgba(246, 241, 232, .6); }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 58rem) { .cta__actions { justify-content: flex-end; } }

/* --------------------------------------------------------------- 19. Pied */
.ftr { background: var(--bg-deep); color: rgba(243, 237, 227, .72); padding-block: clamp(3rem, 2rem + 4vw, 5rem) 2rem; }
:root[data-theme="dark"] .ftr, :root:not([data-theme="light"]) .ftr { border-top: 1px solid var(--line); }
.ftr__word {
  font-family: var(--serif); color: #f6f1e8; line-height: .88;
  font-size: clamp(2.1rem, 1rem + 7vw, 6rem); letter-spacing: -.02em;
  padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-bottom: 1px solid rgba(243, 237, 227, .18);
}
.ftr__word span { display: block; }
.ftr__word em { color: var(--accent-lit); }
.ftr__cols { display: grid; gap: 2.25rem; padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
@media (min-width: 40rem) { .ftr__cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .ftr__cols { grid-template-columns: 1.3fr .9fr .9fr 1.5fr; gap: 3rem; } }
.ftr h2 { font-family: var(--sans); font-size: var(--s--1); font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: rgba(243, 237, 227, .5); margin-bottom: 1rem; }
.ftr ul { display: grid; gap: .6rem; }
.ftr a:hover { color: #fff; }
.ftr__addr { font-family: var(--serif); font-size: var(--s-1); color: #f6f1e8; line-height: 1.3; }
.ftr__tel { font-family: var(--serif); font-size: var(--s-2); color: #f6f1e8; display: inline-block; margin-top: .75rem; }
.ftr__hours div {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 1rem;
  font-size: var(--s--1); padding-block: .3rem;
}
.ftr__hours dt { white-space: nowrap; }
.ftr__hours dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.ftr__badges { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.ftr__badges img { height: 3rem; width: auto; opacity: .92; }
/* Adhésion FNAIM, sous la présentation de l'agence : le logo, puis la phrase. */
.fnaim__logo { display: block; height: clamp(3.5rem, 3rem + 1.4vw, 4.5rem); width: auto; }
.prose .fnaim__txt { margin-top: 1rem; font-size: var(--s-1); line-height: 1.4; color: var(--text); }
.ftr__social { display: flex; gap: .5rem; margin-top: 1.25rem; }
.ftr__social a {
  width: 2.3rem; height: 2.3rem; display: grid; place-items: center;
  border: 1px solid rgba(243, 237, 227, .22); border-radius: 50%;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.ftr__social a:hover { background: rgba(243, 237, 227, .12); border-color: rgba(243, 237, 227, .5); }
.ftr__bar {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 237, 227, .18);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center;
  font-size: var(--s--1);
}
.ftr__bar ul { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; margin-left: auto; }
.ftr__legal { max-width: 68ch; font-size: var(--s--1); line-height: 1.55; opacity: .75; }

/* ------------------------------------------------------- 20. Estimation */
.modal {
  border: 0; padding: 0;
  width: min(46rem, calc(100vw - 2rem)); max-width: 100%;
  /* `* { margin: 0 }` annule le centrage par défaut du navigateur : on le rétablit. */
  margin: auto;
  max-height: min(88svh, 52rem); overflow: auto;
  background: var(--bg); color: var(--text);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.modal::backdrop { background: rgba(12, 11, 10, .7); backdrop-filter: blur(3px); }
.modal__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.5rem 0; }
.modal__top h2 { font-size: var(--s-2); }
.modal__top p { font-size: var(--s--1); color: var(--muted); margin-top: .5rem; max-width: 42ch; }
.modal__body { padding: 1.5rem; }
.modal__body iframe { width: 100%; border: 0; min-height: 30rem; }
.est-fallback { text-align: center; padding: 2rem 0; }
.est-fallback p { color: var(--muted); font-size: var(--s--1); margin-bottom: 1rem; }

/* --------------------------------------------------------- 21. Animations */
[data-reveal] { opacity: 0; transform: translateY(14px); }
[data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  [data-reveal].is-in { transition: none; }
  .card__media img, .post__media img, .gal__main img { transition: none; }
  .btn:hover { transform: none; }
}

.noscroll { overflow: hidden; }

/* ------------------------------------------- 23. Estimation en cinq étapes */
.estgrid { display: grid; gap: clamp(2rem, 1.5rem + 3vw, 4rem); align-items: start; }
@media (min-width: 64rem) {
  .estgrid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .estaside { position: sticky; top: calc(var(--header-bar) + 1.5rem); display: grid; gap: 1rem; }
}

.wiz { display: grid; gap: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); }
.wiz__head { display: grid; gap: .7rem; }
.wiz__bar { height: 2px; background: var(--line); overflow: hidden; }
.wiz__bar i {
  display: block; height: 100%; width: 100%; background: var(--accent);
  transform-origin: 0 50%; transform: scaleX(.2);
  transition: transform .6s var(--ease);
}
.wiz__meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem;
  font-size: var(--s--1); letter-spacing: .13em; text-transform: uppercase;
}
.wiz__n { color: var(--muted); }
.wiz__n b { color: var(--accent); font-weight: 600; }
.wiz__t { color: var(--text); margin-left: auto; }

.wiz__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.wiz__step[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .wiz__step:not([hidden]) { animation: wizin .45s var(--ease) both; }
  @keyframes wizin { from { opacity: 0; transform: translateY(14px); } }
}
.wiz__q {
  font-family: var(--serif); font-size: var(--s-2); line-height: 1.1;
  margin-bottom: 1.25rem; text-wrap: balance;
}
.wiz__sub {
  font-size: var(--s--1); letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .8rem;
}
.wiz__sub .opt, .field .opt {
  text-transform: none; letter-spacing: 0; font-size: .92em; opacity: .75;
  margin-left: .4rem;
}
.wiz__note {
  margin-top: 1.25rem; font-size: var(--s--1); color: var(--muted);
  line-height: 1.5; max-width: 54ch;
}
.wiz__err { font-size: var(--s--1); color: #c0392b; min-height: 1.2em; }
:root[data-theme="dark"] .wiz__err { color: #e8806f; }
.wiz__nav { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.wiz__nav .btn { flex: 0 0 auto; }

/* Choix unique, présenté en cartes cliquables */
.picks { display: grid; gap: .6rem; }
@media (min-width: 34rem) { .picks { grid-template-columns: repeat(2, 1fr); } }
.pick { position: relative; display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick__in {
  display: grid; gap: .2rem; padding: 1rem 1.15rem;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .25s var(--ease), background .25s var(--ease),
              transform .25s var(--ease);
}
.pick__t { font-size: var(--s-0); font-weight: 500; }
.pick__s { font-size: var(--s--1); color: var(--muted); }
.pick:hover .pick__in { border-color: var(--text); transform: translateY(-1px); }
.pick input:focus-visible + .pick__in { outline: 2px solid var(--accent); outline-offset: 3px; }
.pick input:checked + .pick__in {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}
.pick input:checked + .pick__in .pick__t { color: var(--accent); }

/* Choix multiples et bascules, en pastilles */
.chipset, .toggles { display: flex; flex-wrap: wrap; gap: .45rem; }
.chipbox { cursor: pointer; }
.chipbox input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chipbox span {
  display: inline-block; padding: .5rem .9rem;
  border: 1px solid var(--line-2); border-radius: 100px;
  font-size: var(--s--1); color: var(--text-soft);
  transition: border-color .22s var(--ease), background .22s var(--ease), color .22s var(--ease);
}
.chipbox:hover span { border-color: var(--text); }
.chipbox input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.chipbox input:checked + span {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}

/* Communes proposées en raccourci */
.townchips { display: flex; flex-wrap: wrap; gap: .4rem; }
.townchip {
  padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 100px;
  background: transparent; font-size: var(--s--1); color: var(--text-soft); cursor: pointer;
  transition: border-color .22s var(--ease), color .22s var(--ease), background .22s var(--ease);
}
.townchip:hover { border-color: var(--text); color: var(--text); }
.townchip[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
}

/* Champs */
.grid2 { display: grid; gap: 1rem; }
@media (min-width: 34rem) { .grid2 { grid-template-columns: repeat(2, 1fr); } }
.field { display: grid; gap: .4rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field > label {
  font-size: var(--s--1); letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
.field > label b { color: var(--accent); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: .78rem .9rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.field input:hover, .field textarea:hover { border-color: var(--text); }
.field input:focus, .field textarea:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field [aria-invalid="true"], .field input[aria-invalid="true"] { border-color: #c0392b; }
.suffixed { position: relative; display: flex; align-items: center; }
.suffixed__u {
  position: absolute; right: .9rem; font-size: var(--s--1); color: var(--muted);
  pointer-events: none;
}
.suffixed input { padding-right: 3rem; -moz-appearance: textfield; appearance: textfield; }
.suffixed input::-webkit-outer-spin-button,
.suffixed input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Compteur moins / plus */
.counter { display: flex; align-items: stretch; }
.counter button {
  width: 2.9rem; flex: 0 0 auto; border: 1px solid var(--line-2); background: transparent;
  font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--text);
  transition: background .22s var(--ease), border-color .22s var(--ease);
}
.counter button:hover { background: var(--bg-alt); border-color: var(--text); }
.counter input {
  width: 100%; min-width: 0; text-align: center; border-inline: 0;
  -moz-appearance: textfield; appearance: textfield;
}
.counter input::-webkit-outer-spin-button,
.counter input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Repère factuel, tiré du portefeuille réel */
.comparables {
  margin-top: 1.5rem; padding: .85rem 1rem;
  border-left: 2px solid var(--accent); background: var(--bg-alt);
  font-size: var(--s--1); color: var(--text-soft); line-height: 1.5;
}
.comparables b { color: var(--text); font-weight: 600; }

/* Récapitulatif avant envoi */
.recap {
  display: grid; gap: .55rem; margin-bottom: 1.75rem; padding: 1.1rem 1.25rem;
  background: var(--bg-alt); border-top: 1px solid var(--accent);
}
.recap div { display: flex; gap: 1rem; justify-content: space-between; font-size: var(--s--1); }
.recap dt { color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.recap dd { margin: 0; text-align: right; color: var(--text); }
.recap__edit {
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--accent);
  font-size: var(--s--1); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: .25em; justify-self: start;
}

.ministeps { display: grid; gap: .8rem; }
.ministeps li {
  display: flex; gap: .7rem; font-size: var(--s--1); color: var(--text-soft); line-height: 1.5;
}
.ministeps b { color: var(--accent); font-weight: 600; flex: 0 0 auto; }

/* Écran de confirmation */
.wiz--done .wiz__step, .wiz--done .wiz__nav, .wiz--done .wiz__head { display: none; }
.wiz__done { display: grid; gap: 1rem; justify-items: start; padding: 1.5rem 0; }
.wiz__done h2 { font-family: var(--serif); font-size: var(--s-2); }
.wiz__done p { color: var(--text-soft); max-width: 48ch; }

/* ------------------------------------ 24. Carrousel cylindre (accueil)
   Le composant est piloté par assets/js/cylinder.js ; seule la mise en
   forme est propre à cette maquette. Sans script, ou sur petit écran,
   `data-flat` le ramène à une bande à défilement horizontal. */
.cyl {
  /* Toutes les fiches d'un cylindre partagent exactement la même taille. */
  --cw: clamp(15rem, 25vw, 22rem);
  --ch: clamp(25rem, 42vw, 31rem);
  /* Le carrousel sort du cadre de lecture et occupe toute la largeur : le
     cylindre gagne en rayon, donc en nombre de fiches visibles. */
  width: var(--vw); margin-inline: calc(50% - var(--vw) / 2);
  position: relative;
  /* La perspective agrandit la fiche de devant : une distance généreuse
     limite la déformation, et la hauteur réservée en tient compte. */
  perspective: 2400px;
  height: calc(var(--ch) * 1.18 + 1rem);
  cursor: grab; touch-action: pan-y;
  /* Le carrousel se prend n'importe où : ni sélection de texte ni glissé
     d'image ne doivent interrompre la rotation en cours. */
  -webkit-user-select: none; user-select: none;
}
.cyl[data-cyl-drag] { cursor: grabbing; }
.cyl img, .cyl a { -webkit-user-drag: none; }
.cyl:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; }
.cyl__stage {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateY(var(--rot, 0deg));
  transition: transform .55s var(--ease);
}
.cyl__item {
  position: absolute; top: 50%; left: 50%;
  width: var(--cw); height: var(--ch);
  margin: calc(var(--ch) / -2) 0 0 calc(var(--cw) / -2);
  transform: rotateY(var(--a)) translateZ(var(--r));
  backface-visibility: hidden;
  transition: opacity .45s var(--ease);
  /* Le geste part de la fiche aussi bien que du fond du cadre. */
  touch-action: pan-y;
}
/* La fiche remplit la place : sur un cylindre, toutes ont la même taille. */
.cyl .card { height: 100%; }
.cyl .card__media { aspect-ratio: auto; height: clamp(12rem, 21vw, 17rem); flex: 0 0 auto; }
/* Le titre tient sur deux lignes : sinon la fiche déborde du cylindre. */
.cyl .card__title {
  min-height: 0; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.cyl .card__meta { padding-top: .7rem; }

.cyl__nav button {
  width: 2.6rem; height: 2.6rem; flex: 0 0 auto;
  border: 1px solid var(--line-2); border-radius: 50%; background: transparent;
  display: grid; place-items: center; cursor: pointer; color: var(--text);
  transition: border-color .25s var(--ease), color .25s var(--ease),
              background .25s var(--ease);
}
.cyl__nav button:hover { border-color: var(--accent); color: var(--accent); }

/* Repli : la bande défilante d'origine */
[data-flat].cyl { perspective: none; height: auto; cursor: auto; }
[data-flat] .cyl__stage {
  position: static; transform: none; transition: none;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(15rem, 20rem);
  gap: clamp(1rem, .6rem + 1.4vw, 1.75rem);
  overflow-x: auto; overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  padding-bottom: 1.25rem; padding-inline: var(--gut);
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
[data-flat] .cyl__stage::-webkit-scrollbar { height: 2px; }
[data-flat] .cyl__stage::-webkit-scrollbar-thumb { background: var(--line-2); }
[data-flat] .cyl__item {
  position: static; width: auto; height: auto; margin: 0;
  transform: none; opacity: 1 !important; scroll-snap-align: start;
}
[data-flat] .cyl .card__media { aspect-ratio: 3 / 2; height: auto; }
[data-flat] ~ .cyl__nav button { display: none; }

/* ------------------------------------- 25. Diaporama d'ouverture
   Quatre photographies de la région et de l'agence, enchaînées sans script :
   chaque calque parcourt le même cycle, décalé d'un quart. */
.hero__media { display: block; }
.hero__slide { position: absolute; inset: 0; opacity: 0; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
@keyframes heroTurn {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  22%  { opacity: 1; }
  26%  { opacity: 0; }
  100% { opacity: 0; }
}
/* L'état sans animation est déjà le bon : la première photographie est
   visible. L'enchaînement n'est posé que si le script tourne, pour qu'un
   échec ne puisse jamais laisser le héros sans image. */
.hero__slide:first-child { opacity: 1; }
.anim .hero__slide {
  /* Sans `fill-mode` : avant que l'animation ne prenne la main, chaque calque
     garde son opacité de feuille de style, et la première photographie est
     donc visible dès le premier rendu. */
  animation: heroTurn var(--cycle) linear infinite;
  animation-delay: calc(var(--i, 0) * var(--slide));
}
/* Léger décalage négatif : la première photographie est déjà installée au
   premier rendu, sans fondu d'entrée. */
.anim .hero__slide:first-child { animation-delay: -.5s; }
.hero__caption { display: grid; text-align: right; }
.hero__caption span {
  grid-area: 1 / 1; opacity: 0; align-self: end;
  font-size: var(--s--1); line-height: 1.5; letter-spacing: .04em;
  color: rgba(253, 250, 244, .72); text-wrap: balance;
}
.hero__caption span:first-child { opacity: 1; }
.anim .hero__caption span {
  animation: heroTurn var(--cycle) linear infinite;
  animation-delay: calc(var(--i, 0) * var(--slide));
}
.anim .hero__caption span:first-child { animation-delay: -.5s; }
.hero__caption span::before {
  content: ''; display: inline-block; width: 1.4rem; height: 1px;
  background: var(--accent-lit); vertical-align: .32em; margin-right: .7rem;
}
/* Trop étroit pour tenir à côté du titre : la légende passerait seule sur
   une ligne, décrochée du reste. */
@media (max-width: 74.99rem) { .hero__caption { display: none; } }
/* Sans mouvement : la première photographie, et elle seule. */
@media (prefers-reduced-motion: reduce) {
  .anim .hero__slide, .anim .hero__caption span { animation: none; }
}

/* ------------------------------------- 26. Relevé des prix au m²
   Une seule série, donc une seule teinte ; valeur en bout de barre, pas de
   légende ni de quadrillage. L'évolution est portée à part, en texte. */
.market { display: grid; gap: 0; }
.market__row {
  display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
  gap: .5rem 1.5rem; align-items: center;
  padding-block: .7rem; border-bottom: 1px solid var(--line);
}
.market__row:first-child { border-top: 1px solid var(--line); }
.market__town { font-size: var(--s-0); line-height: 1.3; }
.market__town i {
  display: block; font-style: normal; font-size: var(--s--1); color: var(--muted);
}
/* Jauge, valeur et évolution occupent des colonnes distinctes : une barre
   longue ne peut pas chasser le chiffre qu'elle illustre. */
/* Colonnes de largeur fixe : toutes les barres partagent la même échelle,
   quelle que soit la longueur du chiffre affiché au bout. */
.market__track {
  display: grid; grid-template-columns: minmax(0, 1fr) 6.5rem 6.5rem;
  align-items: center; gap: .4rem 1.25rem; min-width: 0;
}
.market__gauge { display: block; width: 100%; }
/* Marque de donnée : 14 px, bout arrondi, pied carré sur la ligne de base. */
.market__bar {
  display: block; height: 14px; background: var(--accent); border-radius: 0 3px 3px 0;
  width: calc(var(--v) * 1%);
  transform-origin: 0 50%; transform: scaleX(0);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.market.is-in .market__bar { transform: none; }
@media (prefers-reduced-motion: reduce) { .market__bar { transform: none; transition: none; } }
.market__row:hover .market__bar { background: var(--text); }
.market__val {
  font-family: var(--serif); font-size: var(--s-1); line-height: 1;
  font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right;
}
.market__val small { font-family: var(--sans); font-size: .55em; color: var(--muted); margin-left: .2rem; }
.market__trend {
  display: grid; text-align: right; font-size: var(--s--1);
  font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 6.5rem;
}
.market__trend b { font-weight: 600; }
.market__trend i { font-style: normal; color: var(--muted); font-size: .92em; }
.market__trend[data-way="bas"] b { color: #9a4b32; }
.market__trend[data-way="haut"] b { color: #3f7a4e; }
:root[data-theme="dark"] .market__trend[data-way="bas"] b { color: #e09076; }
:root[data-theme="dark"] .market__trend[data-way="haut"] b { color: #86c095; }
.market__note { margin-top: 1.1rem; font-size: var(--s--1); color: var(--muted); letter-spacing: .02em; }
@media (max-width: 46rem) {
  .market__row { grid-template-columns: 1fr; }
  .market__track { grid-template-columns: minmax(0, 1fr) auto; }
  .market__val { text-align: left; }
  .market__trend { grid-column: 1 / -1; text-align: left; display: flex; gap: .4rem; }
}

/* --------------------------------- 27. Flèches du carrousel, de part et d'autre */
.cyl__nav {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none; margin: 0;
}
.cyl__nav button {
  pointer-events: auto; position: relative; z-index: 4;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.cyl__nav span { display: none; }
@media (min-width: 52rem) {
  .cyl__nav { inset: 0 var(--gut); }
}
[data-flat] .cyl__nav { display: none; }
.cyl__hint {
  margin-top: 1rem; text-align: center;
  font-size: var(--s--1); letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
}

/* ------------------------- 28. « Un prix se démontre » (page estimation)
   Une maison géométrique en volume, et autour d'elle les critères qui font
   monter ou descendre un prix. Le volume est construit en CSS : quatre murs,
   un sol, deux rampants à 52° et deux pignons. Aucune bibliothèque 3D. */
.proof { display: grid; gap: clamp(2.5rem, 1.5rem + 4vw, 5rem); align-items: center; }
@media (min-width: 64rem) {
  .proof { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.stage {
  position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center;
  perspective: 1100px;
}
.stage::after {
  content: ''; position: absolute; left: 50%; top: 70%; translate: -50% 0;
  width: 44%; height: 11%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(26, 23, 20, .14), transparent);
}
.house {
  --s: min(13rem, 34vw);
  width: var(--s); height: var(--s); position: relative;
  transform-style: preserve-3d; transform: rotateX(-18deg) rotateY(-28deg);
  transition: transform .6s var(--ease);
}
@media (prefers-reduced-motion: no-preference) {
  .house--turn { animation: houseTurn 38s linear infinite; }
  @keyframes houseTurn {
    from { transform: rotateX(-18deg) rotateY(0deg); }
    to   { transform: rotateX(-18deg) rotateY(360deg); }
  }
}
.wall {
  position: absolute; inset: 0; border: 1px solid var(--accent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent),
              color-mix(in srgb, var(--accent) 4%, transparent));
}
.w-n { transform: translateZ(calc(var(--s) / 2)); }
.w-s { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.w-e { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.w-o { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.w-b { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); border-color: var(--line-2); }
.roof {
  position: absolute; left: 0; width: 100%;
  top: calc(var(--s) * -.391); height: calc(var(--s) * .391);
  transform-style: preserve-3d;
}
.slope {
  position: absolute; top: 0; left: 0; width: 100%; height: calc(var(--s) * .634);
  border: 1px solid var(--accent); transform-origin: top center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 24%, transparent),
              color-mix(in srgb, var(--accent) 8%, transparent));
}
.slope-a { transform: rotateX(52deg); }
.slope-b { transform: rotateX(-52deg); }
.gable {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.gable-e { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.gable-o { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.door {
  position: absolute; left: 38%; bottom: 0; width: 24%; height: 44%;
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

/* Les pastilles des critères, posées autour du volume */
.pin {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .42rem .7rem; border-radius: 100px;
  border: 1px solid var(--line-2); background: var(--bg);
  font-size: var(--s--1); letter-spacing: .04em; color: var(--muted);
  white-space: nowrap;
  transition: border-color .4s var(--ease), color .4s var(--ease),
              background .4s var(--ease), transform .4s var(--ease);
}
.pin svg { flex: 0 0 auto; }
.pin.on {
  border-color: var(--accent); background: var(--accent); color: var(--on-accent);
  transform: scale(1.06);
}
.pin[data-at="0"] { top: 4%; left: 2%; }
.pin[data-at="1"] { top: 16%; right: 0; }
.pin[data-at="2"] { top: 46%; left: 0; }
.pin[data-at="3"] { bottom: 22%; right: 2%; }
.pin[data-at="4"] { bottom: 4%; left: 8%; }
.pin[data-at="5"] { bottom: 40%; right: 6%; }
@media (max-width: 40rem) {
  .pin { font-size: .62rem; padding: .32rem .55rem; }
  .pin span { display: none; }
}

/* La liste des critères, à droite */
.crits { border-top: 1px solid var(--line); }
.crits button {
  display: grid; gap: .3rem; width: 100%; text-align: left;
  padding: 1rem 0; border: 0; border-bottom: 1px solid var(--line);
  background: none; cursor: pointer; position: relative;
}
.crits button::before {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.crits button[aria-current]::before { transform: scaleX(1); }
.crits b {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--serif); font-weight: 400; font-size: var(--s-1); line-height: 1.15;
  transition: color .35s var(--ease);
}
.crits button[aria-current] b { color: var(--accent); }
.crits b svg { flex: 0 0 auto; color: var(--accent); opacity: .5; transition: opacity .35s var(--ease); }
.crits button[aria-current] b svg { opacity: 1; }
.crits p {
  color: var(--text-soft); font-size: var(--s--1); line-height: 1.6;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .5s var(--ease), opacity .4s var(--ease), margin .4s var(--ease);
}
.crits button[aria-current] p { max-height: 9rem; opacity: 1; margin-top: .35rem; }
@media (prefers-reduced-motion: reduce) {
  .crits p { max-height: none; opacity: 1; margin-top: .35rem; }
}

/* ------------------------------- 29. Estimation de loyer, en deux temps */
.rent { display: grid; gap: 1.1rem; }
.rent__row { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .rent__row { grid-template-columns: repeat(3, 1fr); } }
.rent__more { display: grid; gap: 1rem; }
.rent__more[hidden] { display: none; }
.rent__note { font-size: var(--s--1); color: var(--muted); line-height: 1.6; }
.rent__done { display: grid; gap: .9rem; justify-items: start; }
.rent__done h3 { font-family: var(--serif); font-size: var(--s-2); }
.rent__done p { color: var(--text-soft); max-width: 46ch; }

/* ----------------------------------------- 30. Champ piège des formulaires
   Invisible pour un visiteur, rempli par les robots : l'API ignore alors
   la demande. Hors écran plutôt que display:none, que certains robots
   savent repérer. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* -------------------------------------------- 31. Barème des honoraires */
.rates { width: 100%; border-collapse: collapse; margin-block: 1.25rem; font-size: var(--s--1); }
.rates caption { text-align: left; padding-bottom: .6rem; color: var(--muted); }
.rates th, .rates td {
  padding: .7rem .8rem; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top;
}
.rates thead th {
  font-size: var(--s--1); letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; border-bottom-color: var(--line-2);
}
.rates td, .rates th + th { text-align: right; font-variant-numeric: tabular-nums; }
.rates--wide td, .rates--wide th + th { text-align: left; }
.rates tbody th { font-weight: 500; }
.rates-wrap { overflow-x: auto; }
.bareme h2 { margin-top: 2.5rem; }
.bareme .note { font-size: var(--s--1); color: var(--muted); }

/* ------------------------------------------------------------ 32. Blog
   Liste (rubriques, article à la une, pagination) et page d'un article
   (sommaire, encart, partage, auteur). */
.post__time { color: var(--muted); }
.post__time::before { content: '·'; margin-right: .6rem; }

.blogcats { margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.blogcats ul {
  list-style: none; padding: 0; display: flex; gap: .45rem;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut);
}
.blogcats ul::-webkit-scrollbar { display: none; }
@media (min-width: 48rem) { .blogcats ul { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.blogcats a {
  display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap;
  padding: .55rem .9rem; border: 1px solid var(--line-2);
  font-size: var(--s--1); font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-soft); transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.blogcats a span { font-variant-numeric: tabular-nums; letter-spacing: 0; color: var(--muted); }
.blogcats a:hover { border-color: var(--text); color: var(--text); }
.blogcats a[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.blogcats a[aria-current="page"] span { color: inherit; opacity: .7; }

.feature {
  display: grid; gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); align-items: center;
  padding-bottom: clamp(2rem, 1.5rem + 2.5vw, 3.5rem); margin-bottom: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 60rem) { .feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.feature--plain { grid-template-columns: minmax(0, 1fr); }
.feature__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-alt); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.03); }
.feature__body { display: grid; gap: 1rem; align-content: start; }
.feature__flag { color: var(--text); font-weight: 600; }
.feature__flag::after { content: ''; display: inline-block; width: 1.4rem; height: 1px; background: var(--accent); vertical-align: middle; margin-left: .6rem; }
.feature__title { font-size: var(--s-3); line-height: 1.04; }
.feature__title a { transition: color .25s var(--ease); }
.feature:hover .feature__title a { color: var(--accent); }
.feature__excerpt { color: var(--text-soft); font-size: var(--s-1); line-height: 1.55; max-width: 48ch; text-wrap: pretty; }
.feature__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: .35rem; }
.feature__time, .article__time {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: var(--s--1); color: var(--muted); letter-spacing: .04em;
}

.blog__empty { color: var(--muted); padding-block: 2rem; }

.pager {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.pager ol { list-style: none; padding: 0; display: flex; gap: .3rem; }
.pager li a, .pager li span {
  display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding-inline: .5rem;
  font-variant-numeric: tabular-nums; font-size: var(--s--1); border: 1px solid transparent;
}
.pager li a:hover { border-color: var(--line-2); }
.pager li [aria-current="page"] { border-color: var(--text); background: var(--text); color: var(--bg); }
.pager .pager__gap { display: grid; place-items: center; min-width: 1.5rem; color: var(--muted); }
.pager__step {
  display: inline-flex; align-items: center; gap: .5rem; font-size: var(--s--1);
  font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
}
.pager__step:hover { color: var(--accent); }
.pager > :last-child { justify-self: end; }
@media (max-width: 40rem) { .pager__step span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Page d'un article */
.readbar { position: fixed; inset: 0 0 auto; height: 2px; z-index: 110; pointer-events: none; }
.readbar span {
  display: block; height: 100%; background: var(--accent);
  transform-origin: 0 50%; transform: scaleX(var(--read, 0));
}
.article__head { padding-top: calc(var(--header-h) + clamp(2rem, 1.5rem + 3vw, 4rem)); }
.article__head .wrap { max-width: 64rem; }
/* Sur grand écran, le titre s’aligne sur le sommaire et la colonne de texte. */
@media (min-width: 64rem) { .article__head .wrap { max-width: calc(16rem + clamp(2.5rem, 1rem + 4vw, 5.5rem) + 42rem + var(--gut) * 2); } }
.article__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin-top: clamp(1.25rem, 1rem + 1vw, 2rem); }
.article__cat {
  font-size: var(--s--1); font-weight: 500; letter-spacing: .17em; text-transform: uppercase;
  color: var(--accent); padding-bottom: .15rem; border-bottom: 1px solid currentColor;
}
.article__cat:hover { color: var(--text); }
.article__title { font-size: var(--s-4); max-width: 24ch; margin-top: 1rem; line-height: 1.02; }
.article__dek {
  margin-top: 1.25rem; max-width: 52ch; font-size: var(--s-1); line-height: 1.55;
  color: var(--text-soft); text-wrap: pretty;
}
.article__byline {
  display: flex; align-items: center; gap: .85rem; margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  font-size: var(--s--1); color: var(--muted); line-height: 1.45;
}
.article__byline b { display: block; color: var(--text); font-weight: 600; letter-spacing: .02em; }
.article__seal, .author__seal {
  flex: 0 0 auto; display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border: 1px solid var(--line-2); border-radius: 50%;
}
.article__seal::before, .author__seal::before {
  content: ''; width: .62rem; height: .62rem; background: var(--accent); transform: rotate(45deg); border-radius: 1px;
}
.article__hero { margin-top: clamp(1.75rem, 1.25rem + 2vw, 3rem); max-width: 84rem; }
.article__hero img { width: 100%; aspect-ratio: 16 / 9; max-height: 78vh; object-fit: cover; background: var(--bg-alt); }

.article__layout {
  display: grid; gap: 2rem; justify-content: center;
  margin-top: clamp(2rem, 1.5rem + 2.5vw, 3.75rem); margin-bottom: var(--sp);
}
.article__aside { display: none; }
@media (min-width: 64rem) {
  .article__layout { grid-template-columns: minmax(12rem, 16rem) minmax(0, 42rem); gap: clamp(2.5rem, 1rem + 4vw, 5.5rem); }
  .article__aside { display: block; }
  .article__layout--notoc { grid-template-columns: 4rem minmax(0, 42rem) 4rem; }
  .article__layout--notoc .article__aside .share__title { display: none; }
  .article__layout--notoc .article__aside .share ul { flex-direction: column; }
}
.article__sticky { position: sticky; top: calc(var(--header-bar) + 2rem); display: grid; gap: 2rem; }
.article__main { min-width: 0; }

.toc__title {
  font-size: var(--s--1); font-weight: 500; letter-spacing: .17em; text-transform: uppercase;
  color: var(--muted); padding-bottom: .75rem; border-bottom: 1px solid var(--line);
}
.toc ol { list-style: none; padding: 0; }
.toc li a {
  display: grid; grid-template-columns: 1.75rem 1fr; gap: .25rem; padding: .55rem 0;
  font-size: .9rem; line-height: 1.35; color: var(--text-soft);
  border-bottom: 1px solid var(--line); transition: color .2s var(--ease);
}
.toc li a span { font-size: .72rem; font-variant-numeric: tabular-nums; color: var(--muted); padding-top: .15rem; }
.toc li a:hover, .toc li a.is-active { color: var(--text); }
.toc li a.is-active span { color: var(--accent); }
.toc--aside li a { position: relative; }
.toc--aside li a.is-active::before {
  content: ''; position: absolute; left: -1rem; top: .55rem; bottom: .55rem; width: 2px; background: var(--accent);
}
.toc--inline { border: 1px solid var(--line); margin-bottom: 2rem; }
.toc--inline summary {
  display: flex; align-items: center; gap: .6rem; padding: .9rem 1.1rem; cursor: pointer; list-style: none;
  font-size: var(--s--1); font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.toc--inline summary::-webkit-details-marker { display: none; }
.toc--inline summary::after {
  content: ''; margin-left: auto; width: .5rem; height: .5rem; border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease);
}
.toc--inline[open] summary::after { transform: rotate(-135deg); }
.toc--inline ol { padding: 0 1.1rem .5rem; }
.toc--inline li:last-child a { border-bottom: 0; }
@media (min-width: 64rem) { .toc--inline { display: none; } }

.article__prose { max-width: 42rem; font-size: calc(var(--s-0) * 1.06); line-height: 1.75; }
.article__prose > p:first-child { font-size: 1.08em; color: var(--text); }
.article__prose h2 { scroll-margin-top: calc(var(--header-bar) + 1.5rem); line-height: 1.1; }
.article__prose h3 { line-height: 1.2; }
.article__prose h4 { font-size: var(--s-0); font-weight: 600; margin-top: 1.6em; color: var(--text); }
.article__prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.4em; }
.article__prose blockquote {
  border-left: 2px solid var(--accent); background: var(--bg-alt);
  padding: 1.15rem 1.4rem; font-size: var(--s-1); line-height: 1.5;
}
.article__prose table {
  display: block; width: 100%; overflow-x: auto; border-collapse: collapse;
  font-size: .92em; line-height: 1.45;
}
.article__prose th, .article__prose td { padding: .65rem .85rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article__prose th { font-weight: 600; color: var(--text); border-bottom-color: var(--line-2); white-space: nowrap; }
.article__prose td { color: var(--text-soft); }

.inline-cta {
  margin-block: 2.6em; padding: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  background: var(--bg-alt); border-top: 2px solid var(--accent);
  display: grid; gap: .75rem; justify-items: start;
}
.article__prose .inline-cta > * + * { margin-top: 0; }
.inline-cta__title { font-family: var(--serif); font-size: var(--s-2); line-height: 1.1; color: var(--text); }
.article__prose .inline-cta__text { color: var(--text-soft); font-size: var(--s-0); line-height: 1.6; max-width: 48ch; }
.inline-cta .btn { margin-top: .4rem; text-decoration: none; }
.article__prose .inline-cta a.btn { color: var(--btn-fg); }

.share { display: grid; gap: .75rem; }
.share__title {
  font-size: var(--s--1); font-weight: 500; letter-spacing: .17em; text-transform: uppercase; color: var(--muted);
}
.share ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.share a, .share button {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.share a:hover, .share button:hover { border-color: var(--accent); color: var(--accent); }
.share button.is-done { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.share__status { font-size: var(--s--1); color: var(--accent); min-height: 1.2em; }
.share--end { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); grid-template-columns: auto 1fr; align-items: center; column-gap: 1.25rem; }
.share--end .share__status { grid-column: 1 / -1; }
@media (min-width: 64rem) { .share--end { display: none; } }

.author {
  display: flex; gap: 1.1rem; align-items: flex-start; margin-top: 2.5rem;
  padding: 1.6rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
@media (min-width: 64rem) { .author { margin-top: 3.5rem; } }
.author__seal { width: 3.4rem; height: 3.4rem; }
.author__name { font-family: var(--serif); font-size: var(--s-1); margin-top: .35rem; }
.author__text { color: var(--text-soft); margin-top: .45rem; max-width: 52ch; }
.author__links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 1rem; }

@media print {
  .readbar, .article__aside, .toc--inline, .share, .inline-cta, .author__links { display: none !important; }
}

/* ------------------------------------------------- 33. Ventes et énergie
   Biens vendus gardés en vitrine, étiquettes d'avancement, valeurs et
   mentions du diagnostic énergétique. */
.tag--sold { background: #fdfaf4; color: #1a1714; box-shadow: inset 0 0 0 1px rgba(26, 23, 20, .18); }
.tag--status { background: rgba(253, 250, 244, .92); color: var(--accent); }
.bien__sub .tag--status { background: var(--bg-alt); }
.bien__sub .tag--sold { background: var(--text); color: var(--bg); box-shadow: none; }
.card--sold .card__media img { filter: saturate(.75); }
.card--sold .card__price { font-family: var(--sans); font-size: var(--s--1); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.panel--sold .bien__price { color: var(--accent); }
.panel__title { font-family: var(--serif); font-size: var(--s-1); line-height: 1.2; }
.diag__notes { margin-top: 1.25rem; display: grid; gap: .45rem; font-size: var(--s--1); color: var(--text-soft); line-height: 1.55; max-width: 62ch; }

/* ------------------------------------------------------------ 22. Impression */
@media print {
  .hdr, .ftr, .filters, .cta, .lb, .modal, .drawer, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section, .phead, .bien__head { padding-block: 1rem; }
  a { text-decoration: none; color: #000; }
  .panel { box-shadow: none; }
}
