:root {
  --red: #e0142a;
  --red-dark: #b01020;
  --orange: #f08a1a;
  --blue: #2f6fb8;
  --slate: #5d6b78;
  --navy: #121826;
  --ink: #1c2430;
  --muted: #5c6775;
  --line: #e6e1d8;
  --paper: #f6f2eb;
  --white: #fff;
  --shadow: 0 18px 50px rgba(18, 24, 38, .12);
  --radius: 18px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --content-inset: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
html.sng-restore-scroll { overflow: hidden; }
html.sng-restore-scroll body { visibility: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.6rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
p { margin: 0 0 1rem; }

.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 8px;
}
.skip-link:focus { left: 8px; background: #fff; padding: 8px 12px; z-index: 20; }

.topbar {
  background: var(--navy);
  color: #d7dde6;
  font-size: .82rem;
}
.topbar__inner, .site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.topbar__inner { min-height: 38px; }
.topbar p {
  margin: 0;
  padding-left: var(--content-inset);
  line-height: 1.2;
}
.topbar__links { display: flex; gap: 18px; align-items: center; }
.topbar a { color: #fff; text-decoration: none; }
.topbar__cta { color: #ffd7a8 !important; font-weight: 600; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { min-height: 72px; padding-block: 6px; }
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 4px 12px 4px var(--content-inset);
  margin-right: 4px;
}
.brand__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 132px;
  height: 48px;
  flex: 0 0 auto;
  padding: 0;
}
.brand__logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 124px;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
}
.brand__logo--footer {
  filter: brightness(0) invert(1);
}
.brand--light {
  display: inline-flex;
  padding: 10px 12px 10px 0;
  margin-bottom: 8px;
}
.brand--light .brand__logo-wrap {
  width: 108px;
  height: 40px;
  padding: 4px 8px;
}
.brand--extensia { padding-right: 8px; }
.brand--extensia .brand__logo-wrap {
  width: 156px;
  height: 48px;
}
.brand--extensia .brand__logo {
  max-width: 148px;
  max-height: 44px;
}

.nav { display: flex; gap: 8px; align-items: center; }
.nav > a, .nav__drop > button {
  text-decoration: none; padding: 10px 12px; border-radius: 999px; background: none; border: 0; cursor: pointer;
}
.nav > a.is-active, .nav > a:hover, .nav__drop > button:hover { background: var(--paper); }
.nav__favorites { display: inline-flex; align-items: center; gap: 4px; }
.nav__fav-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
}
.nav__fav-count[hidden] { display: none; }
.nav__drop { position: relative; }
.nav__drop > div {
  display: none; position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: var(--shadow);
}
.nav__drop:hover > div, .nav__drop:focus-within > div { display: grid; }
.nav__drop a { display: block; padding: 10px 12px; text-decoration: none; border-radius: 10px; }
.nav__drop a:hover { background: var(--paper); }
.nav-toggle { display: none; }
.header-cta { white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; font-weight: 700;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--white { background: #fff; color: var(--navy); }
.btn--ghost { background: transparent; border: 1px solid var(--line); }

.hero { position: relative; color: #fff; min-height: 52vh; display: grid; align-items: end; padding: 32px 0 28px; }
/* L'image est posée en style inline depuis data/photos.php. */
.hero__media {
  position: absolute; inset: 0;
  background: #22303f center/cover no-repeat;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(18, 24, 38, .52);
}
.hero__content { position: relative; z-index: 1; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 700; color: var(--orange); margin: 0 0 8px;
}
.hero .eyebrow { color: #ffd7a8; }
.lede { font-size: 1.15rem; max-width: 46ch; color: inherit; opacity: .92; }

.search-card {
  margin-top: 16px;
  background: #fff;
  color: var(--ink);
  border-radius: 22px;
  padding: 10px 10px 12px;
  box-shadow: var(--shadow);
  overflow: visible;
}
.search-card__tabs { display: flex; gap: 6px; padding: 2px 4px 6px; }
.search-card__tabs a {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .92rem;
}
.search-card__tabs a.is-active { background: var(--navy); color: #fff; }
.search-card__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1.3fr) repeat(3, minmax(120px, 1fr)) auto;
  gap: 6px;
  padding: 4px;
  align-items: stretch;
  overflow: visible;
}
.search-field {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.search-field--types { padding: 0; background: transparent; border: 0; min-height: 0; z-index: 40; }
.search-field__body {
  display: grid;
  gap: 1px;
  flex: 1;
  min-width: 0;
  align-content: center;
}
.search-field__head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.search-field__head .ico {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.search-types__panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 50;
  width: 400px;
  max-width: min(400px, calc(100vw - 48px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.search-types__hint { margin: 0 0 10px; font-size: .82rem; color: var(--muted); line-height: 1.35; }
.search-types__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.search-types__grid--rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.type-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; background: #fff; font-weight: 600; font-size: .88rem;
  min-width: 0;
}
.type-chip span { flex: 1; min-width: 0; line-height: 1.25; }
.search-field__trigger {
  width: 100%;
  display: flex;
  align-items: stretch;
  min-height: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
  text-align: left;
}
.search-field__label {
  font-size: .66rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-field__value {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}
.search-field input, .search-field select {
  width: 100%;
  min-height: 22px;
  border: 0;
  padding: 0;
  background: transparent;
  font-weight: 600;
  font-size: .88rem;
  line-height: 1.35;
}
.search-field input:focus, .search-field select:focus { outline: none; }
.type-chip:has(input:checked) { border-color: var(--red); background: #fff5f6; color: var(--red); }
.type-chip input { width: 16px; height: 16px; accent-color: var(--red); flex: 0 0 16px; }
.search-field--city { z-index: 45; }
.search-field--city.is-open { z-index: 70; }
.autocomplete {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 80;
  list-style: none; margin: 0; padding: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  max-height: 260px; overflow: auto;
}
.autocomplete li {
  padding: 10px 12px; border-radius: 8px; cursor: pointer; font-weight: 600;
}
.autocomplete li.is-active,
.autocomplete li:hover { background: var(--paper); color: var(--red); }
.autocomplete__empty {
  padding: 10px 12px; color: var(--muted); font-size: .88rem; font-weight: 500; cursor: default;
}
.search-card__submit {
  align-self: stretch;
  gap: 8px;
  min-height: 0;
  padding-top: 10px;
  padding-bottom: 10px;
}

.stats { background: var(--navy); color: #fff; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 20px;
  padding: 28px 0;
}
.stat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.stat__icon { flex: 0 0 auto; line-height: 0; padding-top: 4px; }
.stat__icon .ico { display: block; width: 24px; height: 24px; color: #ffd7a8; }
.stat__content { display: grid; gap: 4px; min-width: 0; }
.stat__value {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.1;
  font-weight: 650;
}
.stat__label {
  opacity: .85;
  font-size: .92rem;
  line-height: 1.35;
}
.form label { display: grid; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--paper);
}
.form textarea { padding: 12px; resize: vertical; }

.ico { width: 22px; height: 22px; flex: 0 0 22px; color: var(--red); }
.ico--inline { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; margin-right: 4px; }
.btn .ico, .search-card__tabs .ico { color: currentColor; }
.service span { display: flex; align-items: center; gap: 8px; opacity: .85; font-weight: 700; margin-bottom: 28px; }
.service span .ico { color: #fff; width: 20px; height: 20px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-grid--3 { grid-template-columns: repeat(3, 1fr); }
.feature-grid--4 { grid-template-columns: repeat(4, 1fr); }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px;
}
.feature-card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px;
}
.feature-card__icon .ico { width: 26px; height: 26px; color: #fff; }
.feature-card--red .feature-card__icon { background: var(--red); }
.feature-card--orange .feature-card__icon { background: var(--orange); }
.feature-card--blue .feature-card__icon { background: var(--blue); }
.feature-card--slate .feature-card__icon { background: var(--slate); }
.feature-card h3 { font-family: var(--font); font-size: 1.05rem; margin-bottom: 8px; }

.service-intro .story-block__content { max-width: 70ch; margin-bottom: 28px; }
.story-block h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.story-block h2 .ico { color: var(--red); flex: 0 0 24px; }
.prose-block { max-width: 760px; }
.prose-block h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prose-block h2 .ico { color: var(--red); }
.prose-block__lead { max-width: 68ch; margin: 0 0 24px; font-size: 1.05rem; }
.highlight-panel {
  background: var(--navy); color: #fff; border-radius: 22px; padding: 28px;
  display: grid; gap: 18px; align-content: start;
}
.highlight-panel--syndic { background: var(--navy); }
.highlight-panel--vacances { background: var(--blue); }
.highlight-panel h3 { font-family: var(--font); font-size: 1.1rem; margin: 0 0 8px; color: #fff; }
.highlight-panel__stat { margin: 0; }
.highlight-panel__stat strong {
  display: block; font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1;
}
.highlight-panel__stat span { display: block; color: #d7dde6; margin-top: 4px; }
.highlight-panel__note { margin: 0; color: #ffd7a8; font-weight: 600; }
.highlight-panel .ticks--icons li { color: #fff; }
.highlight-panel .ico--inline { color: #ffd7a8; }
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partner-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  border-top: 4px solid var(--line);
}
.partner-card__name {
  display: block; font-family: var(--display); font-size: 1.35rem; margin-bottom: 10px;
}
.partner-card--seloger { border-top-color: #c62828; }
.partner-card--seloger .partner-card__name { color: #c62828; }
.partner-card--leboncoin { border-top-color: #f56b2a; }
.partner-card--leboncoin .partner-card__name { color: #f56b2a; }
.partner-card--topannonces { border-top-color: var(--blue); }
.partner-card--topannonces .partner-card__name { color: var(--blue); }
.service-contact__lead { max-width: 42ch; }
.service-contact__lead h2 { font-family: var(--display); font-size: clamp(1.5rem, 2.5vw, 2rem); }
.service-contact__phone { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 600; }
.service-contact__phone span { color: var(--muted); font-weight: 500; }
.info-card h3 { font-family: var(--font); font-size: 1rem; margin: 0 0 4px; }

.page-hero--illustrated {
  background: var(--paper);
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--line);
}

.page-hero--illustrated .eyebrow { color: var(--hero-accent, var(--red)); }
.page-hero--gestion { --hero-accent: var(--red); }
.page-hero--syndic { --hero-accent: var(--orange); }
.page-hero--vacances { --hero-accent: var(--blue); }
.page-hero--pro { --hero-accent: var(--blue); }
.page-hero--contact { --hero-accent: var(--red); }
.page-hero--estimation { --hero-accent: var(--orange); }
.page-hero--vendre { --hero-accent: var(--orange); }
.page-hero--financement { --hero-accent: var(--blue); }
.page-hero--patrimoine { --hero-accent: var(--slate); }
.page-hero--honoraires { --hero-accent: var(--slate); }

/* Hero de page avec photo : texte à gauche, photo à droite.
   Pas de voile ni de dégradé, la photo reste lisible telle quelle. */
.page-hero--photo .page-hero__inner > :first-child {
  padding-left: var(--content-inset);
}
.page-hero--photo .page-hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.page-hero--photo .lede {
  max-width: none;
  text-wrap: balance;
}
.page-hero--photo .page-hero__media {
  border-radius: 22px; overflow: hidden; background: #d9d3c8;
}
.page-hero--photo .page-hero__media img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}

/* Photos éditoriales : cadrages réguliers, arrondi commun aux cartes,
   légende courte en capitales espacées. */
.media-figure { margin: 0; display: grid; gap: 10px; align-content: start; }
.media-figure img {
  display: block; width: 100%; object-fit: cover;
  border-radius: var(--radius); background: #d9d3c8;
}
.media-figure--portrait img { aspect-ratio: 4 / 5; }
.media-figure--wide img { aspect-ratio: 3 / 2; }
.media-figure figcaption {
  font-size: .72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted);
}
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-family: var(--font); }
.section-title .ico { color: var(--red); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hero-badges span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hero-actions .btn { gap: 8px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 8px 0 12px; font-weight: 700; text-decoration: none; color: var(--red);
}
.back-link .ico { width: 18px; height: 18px; }
.info-cards { display: grid; gap: 12px; margin-bottom: 16px; }
.info-card {
  display: flex; gap: 14px; align-items: start;
  padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
}
.info-card h2 { font-family: var(--font); font-size: 1rem; margin-bottom: 4px; }
.info-card .ico { margin-top: 2px; }
.ticks--icons { list-style: none; padding: 0; }
.ticks--icons li { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.prose-ticks .ico { color: var(--red); flex: 0 0 20px; }
.extensia-hub { padding-top: 24px; }
.services--compact { grid-template-columns: repeat(4, 1fr); }
.service--current {
  border-top-color: var(--orange);
  box-shadow: var(--shadow);
  pointer-events: none;
}
.service--current h3 { color: var(--orange); }
.sticky-card h2 { display: flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 1.15rem; }
.sticky-card h2 .ico { width: 20px; height: 20px; }

.agency-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 14px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: #fff;
}
.agency-item:hover { border-color: var(--red); box-shadow: var(--shadow); }
.agency-item__icon {
  width: 42px; height: 42px; border-radius: 12px; background: #fff5f6;
  display: grid; place-items: center;
}
.agency-item__body { display: grid; gap: 2px; }
.agency-item__body span { color: var(--muted); font-size: .9rem; }
.agency-item__arrow { color: var(--red); font-weight: 700; }

.section { padding: 72px 0; }
.page-home .section--listings { padding: 40px 0 56px; }
.page-home .hero h1 { font-size: clamp(1.95rem, 3.4vw, 3rem); }
.page-home .hero .lede { font-size: 1.05rem; max-width: 42ch; }
.page-home .stats__grid { padding: 22px 0; }
.section--alt { background: var(--paper); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.center-title { text-align: center; margin-bottom: 28px; }
.link-more { font-weight: 700; color: var(--red); text-decoration: none; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.cards--4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cards--stack { grid-template-columns: 1fr; max-height: 720px; overflow: auto; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; min-height: 100%;
}
.card__media { position: relative; aspect-ratio: 4/3; background: #d9d3c8; display: block; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--slider { overflow: hidden; }
.card__slides {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.card__slides::-webkit-scrollbar { display: none; }
.card__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.card__slide img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.card__photo-status {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(18, 24, 38, .72);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  pointer-events: none;
}
.card__media--slider .badge,
.card__media--slider .fav { z-index: 3; }
.card__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--navy);
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 2px 10px rgba(18, 24, 38, .16);
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity .15s ease, background .15s ease, color .15s ease;
}
.card__nav--prev { left: 10px; }
.card__nav--next { right: 10px; }
.card__nav .nav-chevron { width: 18px; height: 18px; }
.card__nav:hover,
.card__nav:focus-visible { background: #fff; color: var(--red); }
.card__nav[hidden] { display: none !important; }
@media (hover: hover) and (pointer: fine) {
  .card__nav:not([hidden]) { display: inline-flex; }
  .card__media--slider:not(:hover):not(:focus-within) .card__nav {
    opacity: 0;
    pointer-events: none;
  }
  .card__media--slider:hover .card__nav:not([hidden]),
  .card__media--slider:focus-within .card__nav:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
  }
}
.card__placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); }
.card--removed {
  filter: grayscale(1);
  opacity: .88;
}
.card--removed .card__body h3,
.card--removed .card__city { color: var(--muted); }
.card__media--removed {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #ece8e2, #d8d4cc);
  display: grid;
  place-items: center;
  min-height: 180px;
}
.card__removed-copy {
  text-align: center;
  padding: 16px;
}
.card__removed-label {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 650;
  color: #6b7280;
}
.card__removed-ref {
  margin: 6px 0 0;
  font-size: .82rem;
  color: #9ca3af;
}
.card__price--muted { color: var(--muted); font-weight: 600; }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: #fff; color: var(--navy); font-size: .72rem; font-weight: 700;
  padding: 5px 9px; border-radius: 999px;
}
.badge--dark { left: auto; right: 48px; background: var(--navy); color: #fff; }
.fav {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: #fff; cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(18, 24, 38, .12);
  transition: color .15s ease, transform .15s ease;
}
.fav__icon {
  display: block;
  width: 18px;
  height: 18px;
  transform: translateY(-1px);
  flex: 0 0 auto;
}
.fav__icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: fill .15s ease, stroke .15s ease;
}
.fav:hover { transform: scale(1.05); }
.fav.is-on { color: var(--red); }
.fav.is-on .fav__icon path {
  fill: currentColor;
  stroke: none;
}

.nav-chevron {
  display: block;
  flex: 0 0 auto;
}

.favorites__grid { min-height: 120px; }
.favorites__empty { margin: 0 0 16px; }
.favorites__notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff4d6;
  color: var(--ink);
  font-size: .92rem;
}
.favorites__personal-link {
  margin: 0 0 16px;
  font-size: .92rem;
  font-weight: 600;
}
.favorites__personal-link a { text-decoration: none; color: var(--red); }
.favorites__personal-link a:hover { text-decoration: underline; }
.favorites__loading {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}
.favorites__hint {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: .85rem;
  max-width: 52ch;
}
.favorites__share {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.favorites__share-lead {
  margin: 0 0 10px;
  font-size: .92rem;
  color: var(--ink);
}
.favorites__share-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.favorites__share-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: .85rem;
  color: var(--muted);
  background: #f8f9fb;
}
.favorites__share-copy { flex: 0 0 auto; white-space: nowrap; }
.favorites__share-email { flex: 0 0 auto; white-space: nowrap; }
.favorites__share-done {
  margin: 10px 0 0;
  font-size: .85rem;
  font-weight: 600;
  color: #1a7f37;
}
.favorites-email-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(18, 24, 38, .22);
}
.favorites-email-dialog::backdrop { background: rgba(18, 24, 38, .45); }
.favorites-email-form { padding: 22px 22px 20px; }
.favorites-email-form label:not(.check) { margin-bottom: 14px; }
.favorites-email-form label.check { margin-top: 4px; margin-bottom: 14px; }
.favorites-email-dialog__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.favorites-email-dialog__head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
}
.favorites-email-dialog__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f1f3f6;
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.favorites-email-dialog__lede {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}
.favorites-email-dialog__search {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8f9fb;
  color: var(--ink);
  font-size: .85rem;
  line-height: 1.45;
}
.favorites-email-dialog__feedback {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .88rem;
}
.favorites-email-dialog__feedback.is-ok {
  background: #e8f5ec;
  color: #1a7f37;
}
.favorites-email-dialog__feedback.is-error {
  background: #fff4d6;
  color: var(--ink);
}
.favorites-email-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.card__body { padding: 14px 16px 18px; }
.card__price { color: var(--red); font-weight: 800; font-size: 1.05rem; margin: 0 0 4px; }
.card h3 { font-family: var(--font); font-size: 1rem; margin: 0 0 4px; }
.card h3 a { text-decoration: none; }
.card__city { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.specs { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.specs li { background: var(--paper); padding: 4px 8px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.specs--lg { margin: 16px 0 24px; }
.specs--lg li { padding: 8px 12px; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service {
  display: block; text-decoration: none; padding: 22px; border-radius: 22px; min-height: 230px; color: #fff;
  background: var(--navy);
}
.service span { display: block; opacity: .6; font-weight: 700; margin-bottom: 40px; }
.service--red { background: var(--red); }
.service--orange { background: var(--orange); }
.service--blue { background: var(--blue); }
.service--slate { background: var(--slate); }

.cta-band { background: var(--red); color: #fff; }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 48px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.city-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.city-chips a {
  display: block; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: #fff;
}

.page-hero { padding: 48px 0 12px; background: var(--paper); }
.page-hero--compact { background: #fff; padding: 24px 0 0; }
.page-favorites .page-hero--compact { padding: 20px 0 4px; }
.page-favorites .section.favorites { padding-top: 12px; padding-bottom: 56px; }
.page-listings .section.listings { padding-top: 16px; padding-bottom: 72px; }
.page-listings .page-hero--compact .search-card { margin-top: 12px; margin-bottom: 0; }
.listings__toolbar, .listings__actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.view-toggle { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.view-toggle a { padding: 8px 14px; text-decoration: none; }
.view-toggle a.is-active { background: var(--navy); color: #fff; }
.listings__map { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.listings__map--full { grid-template-columns: 1fr; }
.map {
  min-height: 520px; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: var(--paper);
}
.map--listings { min-height: min(68vh, 640px); }
.map--detail { min-height: 320px; margin-top: 12px; }
.map .leaflet-container { font-family: var(--font); background: var(--paper); }
.map .leaflet-tile-pane { filter: saturate(.9) contrast(.98); }
.map .leaflet-control-zoom {
  margin: 12px !important; border: 0; border-radius: 12px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(18, 24, 38, .12);
}
.map .leaflet-control-zoom a {
  width: 36px; height: 36px; line-height: 36px; border: 0;
  background: #fff; color: var(--navy); font-size: 18px;
}
.map .leaflet-control-zoom a + a { border-top: 1px solid var(--line) !important; }
.map .leaflet-control-zoom a:hover { background: var(--paper); color: var(--red); }
.map .leaflet-control-attribution {
  margin: 0 !important; padding: 3px 8px; border-radius: 10px 0 0 0;
  background: rgba(255, 255, 255, .88); color: var(--muted); font-size: 10px;
}
.map .leaflet-control-attribution a { color: var(--muted); }

.sng-marker { background: none; border: 0; }
.sng-marker__dot {
  display: block; width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); border: 3px solid #fff;
  box-shadow: 0 3px 12px rgba(18, 24, 38, .28);
  transition: transform .15s ease;
}
.sng-marker:hover .sng-marker__dot { transform: scale(1.12); }

.sng-cluster-wrap { background: none; border: 0; }
.sng-cluster {
  display: grid; place-items: center; width: 100%; height: 100%;
  border-radius: 50%; background: var(--red); color: #fff;
  font-weight: 700; font-size: .82rem; border: 3px solid #fff;
  box-shadow: 0 4px 16px rgba(18, 24, 38, .22);
}
.sng-cluster--md { font-size: .88rem; }
.sng-cluster--lg { font-size: .95rem; }

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large { background: transparent !important; }
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div { background: transparent !important; }

.leaflet-popup.sng-popup .leaflet-popup-content-wrapper {
  border-radius: 14px; box-shadow: var(--shadow); padding: 0;
}
.leaflet-popup.sng-popup .leaflet-popup-content { margin: 14px 16px; line-height: 1.45; }
.leaflet-popup.sng-popup--rich .leaflet-popup-content { margin: 0; }
.leaflet-popup.sng-popup .leaflet-popup-tip { background: #fff; box-shadow: none; }
.leaflet-popup.sng-popup--rich .leaflet-popup-close-button { display: none; }
.map-popup--rich {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.map-popup--rich:hover .map-popup__title { color: var(--red); }
.map-popup__photo {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #d9d3c8;
}
.map-popup__photo--empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
}
.map-popup__body { display: block; padding: 12px 14px 14px; }
.map-popup__badge {
  display: inline-block;
  margin: 0 0 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--paper);
  font-size: .68rem;
  font-weight: 700;
  color: var(--navy);
}
.map-popup__title {
  display: block; margin: 0 0 4px; font-family: var(--display); font-size: 1rem; line-height: 1.25;
}
.map-popup__price { margin: 0 0 6px; color: var(--red); font-weight: 700; }
.map-popup__city { margin: 0 0 8px; color: var(--muted); font-size: .88rem; }
.map-popup__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.map-popup__specs li {
  background: var(--paper);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
}
.map-popup__cta {
  display: inline-block;
  color: var(--navy);
  font-weight: 700;
  font-size: .88rem;
}
.map-popup__link { color: var(--navy); font-weight: 600; text-decoration: none; }
.map-popup__link:hover { color: var(--red); }
.listings__pager { margin-top: 28px; }
.pagination {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 8px 12px;
}
.pagination__pages { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.pagination__page, .pagination__step, .pagination__gap {
  min-width: 44px; min-height: 44px; flex: 0 0 auto;
  text-decoration: none; border-radius: 12px; font-weight: 600;
}
.pagination__page, .pagination__gap { display: inline-grid; place-items: center; }
.pagination__page, .pagination__step { border: 1px solid var(--line); background: #fff; }
.pagination__step {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 16px; white-space: nowrap;
}
.pagination__page:hover, .pagination__step:hover { border-color: var(--red); color: var(--red); }
.pagination__page.is-active {
  background: var(--red); border-color: var(--red); color: #fff; cursor: default;
}
.pagination__step.is-disabled { color: var(--muted); opacity: .5; border-style: dashed; }
.pagination__step.is-disabled:hover { border-color: var(--line); color: var(--muted); }
.pagination__gap { border: 0; color: var(--muted); min-width: 20px; }
.pagination__status {
  flex-basis: 100%; text-align: center; margin: 4px 0 0;
  font-size: .85rem; color: var(--muted);
}

/* Mobile : « Voir plus » remplace les numéros, le bouton reste un lien
   vers la page suivante si le JS ne prend pas la main. */
.load-more { display: none; justify-items: center; gap: 12px; text-align: center; }
.load-more__status { margin: 0; font-size: .88rem; color: var(--muted); }
.load-more__btn { min-width: 240px; justify-content: center; }
.load-more__btn.is-loading { opacity: .6; pointer-events: none; }

.gallery { display: grid; gap: 10px; margin: 18px 0 28px; }
.gallery__main { margin: 0; border-radius: 22px; overflow: hidden; background: #d9d3c8; min-height: 420px; position: relative; }
.gallery__zoom {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative;
}
.gallery__nav {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .9); color: var(--navy);
  cursor: pointer; box-shadow: 0 6px 20px rgba(18, 24, 38, .16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gallery__nav .nav-chevron { width: 22px; height: 22px; }
.gallery__nav:hover,
.gallery__nav:focus-visible { background: #fff; }
.gallery__nav:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__status {
  position: absolute; right: 14px; bottom: 14px; z-index: 3; margin: 0;
  padding: 6px 12px; border-radius: 999px; background: rgba(18, 24, 38, .72); color: #fff;
  font-size: .82rem; font-weight: 600; pointer-events: none;
}
.gallery__zoom::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18, 24, 38, .28), transparent 40%);
  opacity: 0; transition: opacity .2s ease;
  pointer-events: none;
}
.gallery__zoom:hover::after,
.gallery__zoom:focus-visible::after { opacity: 1; }
.gallery__zoom:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.gallery__main img { width: 100%; height: 480px; object-fit: cover; display: block; }
.gallery__thumbs { display: flex; gap: 8px; overflow: auto; }
.gallery__thumbs button { border: 2px solid transparent; padding: 0; border-radius: 12px; overflow: hidden; width: 92px; height: 68px; cursor: pointer; background: none; }
.gallery__thumbs .is-active { border-color: var(--red); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.page-property .property {
  padding-inline: var(--content-inset);
  padding-bottom: 64px;
}
.page-property .crumbs { margin-top: 18px; }
.page-property .property h2 {
  margin-top: 1.75rem;
  margin-bottom: .65rem;
}
.page-property .section--related { padding-top: 48px; padding-bottom: 72px; }

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(18, 24, 38, .94);
}
.lightbox[hidden] { display: none; }
.lightbox__bar,
.lightbox__tag,
.lightbox__thumbs { display: none; }
.lightbox__figure { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: min(1180px, 100%); }
.lightbox__img {
  display: block; max-width: 100%; max-height: calc(100vh - 140px);
  object-fit: contain; border-radius: 14px; background: #000;
}
.lightbox__status { margin: 0; color: #d7dde6; font-size: .88rem; font-weight: 600; }
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .12); color: #fff;
  border-radius: 999px; transition: background .15s ease;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover,
.lightbox__close:focus-visible,
.lightbox__prev:focus-visible,
.lightbox__next:focus-visible { background: rgba(255, 255, 255, .22); }
.lightbox__close {
  top: 16px; right: 16px; width: 44px; height: 44px; font-size: 1.6rem; line-height: 1;
}
.lightbox__prev,
.lightbox__next {
  top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
}
.lightbox__prev .nav-chevron,
.lightbox__next .nav-chevron { width: 24px; height: 24px; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__prev[hidden],
.lightbox__next[hidden] { display: none; }

.property__grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 32px; }
.property__price { font-family: var(--display); font-size: 2rem; color: var(--red); margin: 8px 0 0; }
.prose :where(p, ul) { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }

.fee-highlight {
  display: grid; gap: 4px; max-width: 420px; margin: 0 0 1rem;
  padding: 18px 20px; border-radius: 16px; background: var(--paper);
  border: 1px solid var(--line);
}
.fee-highlight__amount {
  margin: 0; font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--red);
}
.fee-table {
  display: grid; gap: 0; max-width: min(480px, 100%); margin: 0 0 1.2rem; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper);
}
.fee-table div {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: baseline;
  padding: 10px 14px; border-top: 1px solid var(--line);
}
.fee-table div:first-child { border-top: 0; }
.fee-table dt { margin: 0; font-weight: 600; font-size: .95rem; }
.fee-table dd { margin: 0; text-align: right; font-weight: 700; font-size: .95rem; }
.fee-table__note { display: block; margin-top: 2px; font-size: .75rem; font-weight: 500; color: var(--muted); text-align: right; }

.fee-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) min(320px, 30%); gap: 48px; align-items: start;
}
.fee-layout__aside { position: sticky; top: 92px; }

.listings__note { margin: 0; font-size: .88rem; color: var(--muted); }
.listings__note a { color: var(--ink); font-weight: 600; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts div { background: var(--paper); border-radius: 12px; padding: 12px 14px; }
.facts dt { font-size: .78rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.dpe { display: grid; gap: 14px; margin-bottom: 4px; }
.dpe__summary { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.dpe__charts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.dpe__charts img {
  display: block;
  width: min(200px, 100%);
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
.dpe__letter {
  padding: 8px 12px;
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  font-size: .88rem;
  line-height: 1.25;
  display: grid;
}
.dpe__letter small { font-size: .74rem; font-weight: 500; opacity: .9; }
.dpe--A, .ges--A { background: #319834; } .dpe--B, .ges--B { background: #5fb03a; }
.dpe--C, .ges--C { background: #c5d029; color: #222; } .dpe--D, .ges--D { background: #f2cc0c; color: #222; }
.dpe--E, .ges--E { background: #f0a202; } .dpe--F, .ges--F { background: #e05a00; } .dpe--G, .ges--G { background: #c1121f; }
.legal-note {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 14px 0 0;
  max-width: 68ch;
}
.legal-note + .legal-note { margin-top: 8px; }
.dpe + .legal-note { margin-top: 18px; }
.property .map--detail { margin-top: 12px; }
.sticky-card {
  position: sticky; top: 96px; background: #fff; border: 1px solid var(--line);
  border-radius: 22px; padding: 22px; box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .88rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.45;
}
.form label.check input {
  width: auto;
  min-height: 0;
  margin-top: 3px;
  flex: 0 0 auto;
}
.form label.check span { flex: 1 1 auto; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 12px 14px; border-radius: 12px; margin: 12px 0; }
.notice--ok { background: #e8f6ec; }
.notice--warn { background: #fff4d6; }
.empty { grid-column: 1 / -1; background: var(--paper); padding: 32px; border-radius: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps article { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.ticks { padding-left: 18px; }
.agency-list { display: grid; gap: 10px; max-height: 720px; overflow: auto; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); margin: 18px 0; }
.crumbs a { color: var(--ink); }

.site-footer { background: var(--navy); color: #d7dde6; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-grid h2 { font-family: var(--font); font-size: .86rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.footer-grid a { display: block; text-decoration: none; margin: 6px 0; color: #d7dde6; }
.footer-lead { max-width: 36ch; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #2a3342; margin-top: 32px; padding-top: 16px; font-size: .82rem; }
.footer-legal a { margin-right: 14px; color: #d7dde6; }
.cookie {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 100000;
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  pointer-events: auto;
}
.cookie--hidden { display: none !important; }
.cookie__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cookie__actions .btn { position: relative; z-index: 2; cursor: pointer; }

.quota-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.quota-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.quota-card__status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.quota-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--paper);
  font-size: .82rem;
  font-weight: 600;
}
.quota-pill--ok { background: #e8f6ec; color: #1b6b32; }
.quota-pill--warn { background: #fff4d6; color: #8a5a00; }
.quota-card__value {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 650;
  line-height: 1;
  margin: 0 0 6px;
  letter-spacing: -.03em;
}
.quota-card__value small {
  font-size: .42em;
  color: var(--muted);
  font-weight: 500;
}
.quota-card__caption {
  color: var(--muted);
  margin: 0 0 16px;
}
.quota-meter {
  height: 10px;
  border-radius: 999px;
  background: #ece7de;
  overflow: hidden;
}
.quota-meter span {
  display: block;
  height: 100%;
  background: #2f9e55;
  border-radius: inherit;
}
.quota-card--month { margin-bottom: 8px; }
.quota-card--low .quota-meter span { background: var(--orange); }
.quota-card--empty .quota-meter span { background: var(--red); }
.quota-card--unknown .quota-meter span { background: var(--navy); }
.quota-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}
.quota-facts dt {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.quota-facts dd { margin: 2px 0 0; font-weight: 600; }
.quota-facts small { font-weight: 500; color: var(--muted); }

@media (max-width: 980px) {
  .search-card__grid, .cards, .cards--4, .services, .stats__grid, .split, .property__grid, .listings__map, .footer-grid, .steps, .form__row, .feature-grid, .partner-grid, .photo-strip, .fee-layout, .quota-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-grid--4 { grid-template-columns: 1fr 1fr; }
  .search-types__grid { grid-template-columns: 1fr; }
  .search-types__grid--rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-types__panel { width: 100%; max-width: none; }
  .nav, .header-cta, .topbar p { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; position: absolute; top: 112px; left: 0; right: 0;
    background: #fff; padding: 16px; border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__drop > div { display: grid; position: static; box-shadow: none; border: 0; padding: 0; }
  .nav-toggle { display: inline-flex; min-height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
  .hero { min-height: 56vh; align-items: end; padding: 28px 0 24px; }
  .page-hero--photo .page-hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .page-hero--photo .page-hero__media img { aspect-ratio: 16 / 9; }
}

@media (max-width: 680px) {
  .search-card__grid, .cards, .services, .stats__grid, .split, .property__grid, .listings__map, .footer-grid, .steps, .form__row, .facts, .feature-grid, .partner-grid, .quota-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid--3, .feature-grid--4 { grid-template-columns: 1fr; }
  .page-property .gallery {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    gap: 0;
  }
  .gallery__main {
    min-height: 0;
    border-radius: 0;
    aspect-ratio: 4 / 3;
    background: #ece8e2;
  }
  .gallery__zoom {
    height: 100%;
    cursor: pointer;
  }
  .gallery__zoom::after { display: none; }
  .gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .gallery__thumbs { display: none; }
  .gallery__nav { width: 38px; height: 38px; }
  .gallery__nav .nav-chevron { width: 18px; height: 18px; }
  .gallery__nav--prev { left: 10px; }
  .gallery__nav--next { right: 10px; }
  .gallery__status { right: 10px; bottom: 10px; font-size: .78rem; padding: 5px 10px; }

  .lightbox {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: #fff;
    color: var(--ink);
  }
  .lightbox__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    flex: 0 0 auto;
  }
  .lightbox__back,
  .lightbox__share,
  .lightbox__fav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    flex: 0 0 auto;
  }
  .lightbox__back .nav-chevron { width: 20px; height: 20px; }
  .lightbox__share .ico { width: 20px; height: 20px; }
  .lightbox__fav { position: static; box-shadow: none; background: transparent; }
  .lightbox__actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
  }
  .lightbox__counter {
    margin: 0;
    flex: 1 1 auto;
    text-align: center;
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink);
  }
  .lightbox__tag {
    display: inline-flex;
    align-self: start;
    margin: 10px 16px 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f3f6;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .02em;
  }
  .lightbox__close--desktop,
  .lightbox__nav--desktop,
  .lightbox__status--desktop { display: none !important; }
  .lightbox__figure {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 8px 0;
  }
  .lightbox__img {
    width: 100%;
    max-width: 100%;
    max-height: none;
    height: auto;
    flex: 1 1 auto;
    object-fit: contain;
    border-radius: 0;
    background: #fff;
  }
  .lightbox__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: #fff;
    flex: 0 0 auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .lightbox__thumbs[hidden] { display: none; }
  .lightbox__thumb {
    flex: 0 0 auto;
    width: 72px;
    height: 54px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    scroll-snap-align: center;
  }
  .lightbox__thumb.is-active { border-color: var(--red); }
  .lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

  .photo-strip { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: start; }
  .listings__pager.has-load-more .pagination { display: none; }
  .listings__pager.has-load-more .load-more { display: grid; }
  /* Vue carte : pas de chargement progressif possible, on garde les flèches
     et le compteur sans la rangée de numéros qui casse sur quatre lignes. */
  .listings__pager:not(.has-load-more) .pagination { justify-content: space-between; }
  .listings__pager:not(.has-load-more) .pagination__pages { display: none; }
  .quota-facts { grid-template-columns: 1fr 1fr; }
}
