/* ==========================================================================
   L'Immobilière Normande & Prestige — feuille de style (v2, DA de l'agence)
   ========================================================================== */

@font-face {
  font-family: 'Roboto';
  src: url('/fonts/roboto-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  src: url('/fonts/roboto-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  src: url('/fonts/roboto-latin-wght-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('/fonts/caveat-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-latin-wght-italic.woff2') format('woff2');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- Thèmes ---------- */
:root,
[data-theme='normande'] {
  --brand: #ed1c24;
  --brand-dark: #c21218;
  --brand-ink: #fff;
  --yellow: #fff200;
  --yellow-ink: #1d1d1b;
  --ink: #313131;
  --ink-soft: #494f5c;
  --muted: #697586;
  --bg: #fff;
  --bg-grey: #f3f3f3;
  --bg-card: #fff;
  --line: #e4e7ec;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 6px 20px rgba(16, 24, 40, 0.07);
  --shadow-lg: 0 20px 50px rgba(16, 24, 40, 0.16);
  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-title: var(--font);
  --font-script: 'Caveat', 'Segoe Print', cursive;
  --title-weight: 800;
  --header-h: 84px;
}
[data-theme='prestige'] {
  --brand: #caa13d;
  --brand-dark: #b38a2b;
  --brand-ink: #14110b;
  --yellow: #caa13d;
  --yellow-ink: #14110b;
  --ink: #f2ede3;
  --ink-soft: #d5ccbb;
  --muted: #a59b8a;
  --bg: #0e0d0c;
  --bg-grey: #171513;
  --bg-card: #171513;
  --line: #2e2a24;
  --radius: 2px;
  --radius-sm: 2px;
  --shadow: 0 0 0 1px var(--line);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.6);
  --font-title: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-script: 'Cormorant Garamond', Georgia, serif;
  --title-weight: 500;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--brand);
}
h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: var(--title-weight);
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem);
}
h2 {
  font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.4rem);
}
h3 {
  font-size: 1.15rem;
}
[data-theme='prestige'] h1 {
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.4rem);
  letter-spacing: 0;
}
[data-theme='prestige'] h2 {
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  letter-spacing: 0;
}
[data-theme='prestige'] h3 {
  font-size: 1.45rem;
}
p {
  margin: 0 0 1em;
}
address {
  font-style: normal;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent);
  outline-offset: 2px;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 8px 14px;
  border-radius: 8px;
}
.container {
  width: min(1240px, 100% - 2.5rem);
  margin-inline: auto;
}
.narrow {
  max-width: 860px;
}
.center,
.center-text {
  text-align: center;
}
p.center,
div.center {
  margin-top: 2rem;
}
.lead.center {
  margin-inline: auto;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.lead {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 64ch;
}
.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin: 0 0 0.5rem;
}
.script {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem);
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}
[data-theme='prestige'] .script {
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
}
.script-lg {
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.3rem);
  margin-bottom: 0.75rem;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.65rem 1.3rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
[data-theme='prestige'] .btn {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 2px;
}
.btn:active {
  transform: translateY(1px);
}
.btn-sm {
  min-height: 38px;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: var(--brand-ink);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent);
}
.btn-ghost {
  background: var(--bg-card);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn-dark {
  background: var(--ink);
  color: var(--bg);
}
.btn-gold {
  background: #caa13d;
  color: #14110b;
}
.btn-gold:hover {
  background: #dcb55a;
  color: #14110b;
}
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}
.btn-outline-light:hover {
  background: #fff;
  color: #14110b;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.btn-row.center {
  justify-content: center;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}
.link-arrow svg {
  transition: transform 0.15s;
}
.link-arrow:hover svg {
  transform: translateX(3px);
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--brand);
  text-decoration: underline;
  cursor: pointer;
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-grey);
  cursor: pointer;
}

/* ---------- Signature : titres, pinceau, étiquettes ---------- */
.title-block {
  margin-bottom: 2.25rem;
}
.title-center {
  text-align: center;
}
.title-block h1,
.title-block h2 {
  margin-bottom: 0.15em;
}
.red-bar {
  display: block;
  width: 64px;
  height: 5px;
  border-radius: 5px;
  background: var(--brand);
  margin-top: 0.9rem;
}
.title-center .red-bar {
  margin-inline: auto;
}
.title-light h2,
.title-light .script {
  color: #fff;
}
[data-theme='prestige'] .red-bar {
  height: 1px;
  width: 90px;
}
.label-red {
  display: table;
  background: var(--brand);
  color: #fff;
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.9rem);
  line-height: 1.15;
  padding: 0.1em 0.35em 0.15em;
  margin: 0;
  letter-spacing: 0;
}
.label-red-lg {
  font-weight: 800;
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.4rem);
  padding: 0.08em 0.3em 0.12em;
}
.brush {
  position: relative;
  display: inline-block;
}
.brush-text {
  display: inline-block;
  margin: 0;
  padding: 0.35em 1.4em 0.5em 1.1em;
  background: url('/images/brand/pinceau-jaune.png') center / 100% 100% no-repeat;
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2.1rem);
  line-height: 1;
  color: #111;
  transform: rotate(-3deg);
}
.brush-arrow {
  position: absolute;
  left: -18px;
  top: 62%;
  width: 36px;
  height: auto;
}

/* Étiquette de prix jaune sur les photos (signature) */
.price-tag {
  position: absolute;
  right: 12px;
  bottom: -14px;
  z-index: 2;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-weight: 900;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  letter-spacing: -0.01em;
}
.price-tag small {
  font-size: 0.75rem;
  font-weight: 700;
}
.price-tag-sold {
  font-family: var(--font-script);
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
}
[data-theme='prestige'] .price-tag {
  font-family: var(--font-title);
  font-style: normal;
  font-weight: 600;
  font-size: 1.45rem;
  background: rgba(14, 13, 12, 0.88);
  color: #e3c477;
  border: 1px solid rgba(202, 161, 61, 0.5);
  border-radius: 2px;
  bottom: 12px;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand img {
  height: 52px;
  width: auto;
  transition: height 0.25s;
}
.main-nav {
  margin-left: auto;
}
.nav-list {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list > li {
  position: relative;
}
.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s, color 0.15s;
}
.nav-list > li > a:hover,
.has-sub:hover > a,
.has-sub:focus-within > a {
  background: var(--bg-grey);
  color: var(--ink);
}
.nav-list > li > a[aria-current='page'] {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
}
.nav-caret {
  display: inline-grid;
  transform: rotate(90deg);
  opacity: 0.5;
  transition: transform 0.2s;
}
.has-sub:hover .nav-caret,
.has-sub:focus-within .nav-caret {
  transform: rotate(-90deg);
}
.sub-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  z-index: 70;
  min-width: 330px;
  padding: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.sub-menu::before {
  content: '';
  position: absolute;
  inset: -18px 0 auto;
  height: 18px;
}
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.sub-menu ul {
  display: grid;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sub-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
}
.sub-menu a:hover {
  background: var(--bg-grey);
  color: var(--ink);
}
.sub-menu a:hover .sub-txt strong {
  color: var(--brand);
}
.sub-ico,
.sub-thumb {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--brand) 9%, transparent);
  color: var(--brand);
  overflow: hidden;
}
.sub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sub-txt {
  display: grid;
  line-height: 1.25;
}
.sub-txt strong {
  font-weight: 700;
  font-size: 0.93rem;
  transition: color 0.15s;
}
.sub-txt small {
  color: var(--muted);
  font-size: 0.8rem;
}
.sub-menu-agencies {
  left: auto;
  right: -40px;
  min-width: 520px;
  transform: translateY(8px);
}
.has-sub:hover .sub-menu-agencies,
.has-sub:focus-within .sub-menu-agencies {
  transform: none;
}
.sub-menu-agencies ul {
  grid-template-columns: 1fr 1fr;
}
.sub-prestige .sub-txt strong,
.sub-menu .sub-prestige a:hover .sub-txt strong {
  color: #a5813b;
}
.sub-menu .sub-prestige a:hover {
  background: #faf5ea;
}
.sub-all {
  display: flex !important;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  padding: 0.75rem !important;
  border-top: 1px solid var(--line);
  border-radius: 0 0 12px 12px !important;
  font-weight: 700;
  color: var(--brand) !important;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.round-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.round-btn:hover,
.round-btn[aria-expanded='true'] {
  border-color: var(--ink);
}
.ref-pop {
  position: relative;
}
.ref-pop-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 16px);
  z-index: 70;
  width: 270px;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.16);
}
.ref-pop-panel label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.ref-pop-panel div {
  display: flex;
  gap: 0.4rem;
}
.ref-pop-panel input {
  min-height: 40px;
}
.btn-pill {
  border-radius: 999px;
  min-height: 42px;
  padding: 0.5rem 1.15rem;
  font-size: 0.93rem;
}
/* Bouton doré « Prestige » (aplat sobre) */
.btn-prestige {
  background: #c9a45c;
  color: #1f1707;
  border: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.btn-prestige:hover {
  background: #b8924b;
  color: #1f1707;
  box-shadow: 0 8px 20px rgba(160, 125, 60, 0.3);
}
.nav-other {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.nav-mobile-extra {
  display: none;
}
.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}
.burger {
  display: grid;
  gap: 4px;
  width: 18px;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle[aria-expanded='true'] .burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] .burger span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded='true'] .burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Normande : barre blanche pleine largeur, compacte (le logo a un fond blanc) */
[data-theme='normande'] {
  --hs: 68px;
}
[data-theme='normande'] .site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s, border-color 0.25s;
}
[data-theme='normande'] .site-header.is-scrolled {
  border-bottom-color: transparent;
  box-shadow: 0 6px 24px rgba(16, 24, 40, 0.08);
}
[data-theme='normande'] .header-bar {
  min-height: var(--hs);
}
[data-theme='normande'] .brand img {
  height: 44px;
}

/* Prestige : bandeau sombre pleine largeur */
[data-theme='prestige'] .site-header {
  background: rgba(10, 9, 8, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(202, 161, 61, 0.18);
}
[data-theme='prestige'] .brand img {
  height: 58px;
}
[data-theme='prestige'] .nav-list > li > a {
  border-radius: 0;
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
}
[data-theme='prestige'] .nav-list > li > a:hover,
[data-theme='prestige'] .nav-list > li > a[aria-current='page'] {
  background: none;
  color: var(--brand);
}
[data-theme='prestige'] .nav-toggle {
  background: #1d1a16;
  color: #e3c477;
}

/* ---------- Pied de page ---------- */
.site-footer {
  color: #d9dbe0;
  font-size: 0.93rem;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
}
.social-band {
  background: var(--brand);
  color: #fff;
  padding: 2.2rem 0;
}
[data-theme='prestige'] .social-band {
  background: #171513;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.social-band-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
}
.site-footer .social-band h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
  margin: 0;
  color: inherit;
}
.social-band .script {
  color: inherit;
  opacity: 0.95;
}
.social-big {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.social-big a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  border-radius: 999px;
  background: #fff;
  color: #1d1d1b;
  font-weight: 800;
  transition: transform 0.15s, box-shadow 0.15s;
}
.social-big a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color: #1d1d1b;
}
.social-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
}
.social-facebook .social-ico {
  background: #1877f2;
}
.social-instagram .social-ico {
  background: radial-gradient(circle at 30% 110%, #fdd25b 0 18%, #f77737 35%, #e1306c 60%, #833ab4 90%);
}
.social-tiktok .social-ico {
  background: #111;
}
.social-youtube .social-ico {
  background: #ff0000;
}
[data-theme='prestige'] .social-big a {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.qr-list {
  display: flex;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.qr-list img {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
}
.footer-main {
  position: relative;
  background: #2b2b2b url('/images/brand/lions.webp') right -40px bottom -30px / 300px no-repeat;
  padding: 3.5rem 0 2.5rem;
}
[data-theme='prestige'] .footer-main {
  background: #0a0908 url('/images/brand/lions-or.webp') right -30px bottom -20px / 260px no-repeat;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr 0.9fr;
  gap: 3rem;
}
.footer-brand img {
  width: 220px;
  height: auto;
  margin-bottom: 1rem;
}
[data-theme='normande'] .footer-brand img {
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
}
.magazine {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.1rem;
  padding: 0.9rem 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 10px;
}
.magazine strong {
  color: #fff;
}
.magazine .script {
  color: var(--yellow);
  font-size: 1.4rem;
}
.site-footer .footer-title {
  font-family: var(--font);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #fff;
  font-weight: 800;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--brand);
  display: inline-block;
}
.site-footer .footer-title-gap {
  margin-top: 1.75rem;
}
.footer-main ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.footer-main .footer-agencies {
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
}
.footer-agencies li {
  display: grid;
}
.footer-agencies span {
  opacity: 0.6;
}
.footer-tel {
  font-size: 0.82rem;
  opacity: 0.7;
}
.ref-form {
  display: flex;
  gap: 0.5rem;
}
.ref-form input {
  flex: 1;
  min-width: 0;
  min-height: 38px !important;
  padding: 0.45rem 0.8rem !important;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: #fff;
}
.footer-bottom {
  background: #1f1f1f;
  font-size: 0.85rem;
}
[data-theme='prestige'] .footer-bottom {
  background: #050505;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.1rem 0;
}
.footer-bottom p {
  margin: 0;
  opacity: 0.7;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.credit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.85;
}
.credit:hover {
  opacity: 1;
}
.credit img {
  height: 24px;
  width: auto;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0;
}
.section-tight {
  padding-top: 1.5rem;
}
.section-grey,
.section-soft {
  background: var(--bg-grey);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.section-head .title-block {
  margin-bottom: 0;
}
.page-header {
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 2rem;
  background: var(--bg-grey);
}
.page-header h1 {
  max-width: 24ch;
}
.page-header-image {
  position: relative;
  background: #222 var(--bg) center / cover no-repeat;
  color: #fff;
  padding: clamp(4rem, 3rem + 6vw, 8rem) 0 clamp(2.5rem, 2rem + 3vw, 4rem);
}
.page-header-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.25));
}
.page-header-image .container {
  position: relative;
}
.page-header-image .lead {
  color: #fff;
}
.page-header-image .script {
  color: var(--yellow);
}
[data-theme='prestige'] .page-header {
  text-align: center;
  background: radial-gradient(ellipse at top, #241f18, var(--bg) 70%);
}
[data-theme='prestige'] .page-header-image {
  background: #0b0a09 var(--bg) center / cover no-repeat;
}
[data-theme='prestige'] .page-header h1,
[data-theme='prestige'] .page-header .lead {
  margin-inline: auto;
}

/* ---------- Accueil ---------- */
.hero {
  position: relative;
  padding: clamp(2rem, 1rem + 3.5vw, 4rem) 0 clamp(2.5rem, 1.5rem + 3vw, 4rem);
  background:
    radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 42%),
    linear-gradient(180deg, #fff 0%, var(--bg-grey) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0 0 150px;
  background: #b44 var(--bg) center 30% / cover no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0.3));
}
.hero-inner {
  position: relative;
}
.hero-title {
  margin: 0 0 1.75rem;
}
.hero .brush {
  margin: 0 0 1.9rem 3.5rem;
}
.hero-search {
  position: relative;
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 1.25rem 1.25rem;
  max-width: 1120px;
}
.tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.tabs button {
  background: none;
  border: 0;
  padding: 0.8rem 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.tabs button[aria-selected='true'] {
  color: var(--brand);
  border-color: var(--brand);
}
.quick-search {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.5fr auto;
  gap: 0.85rem;
  align-items: end;
}
.quick-search[hidden] {
  display: none;
}
.quick-search-ref {
  grid-template-columns: 1fr auto;
}
.field {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}
.field-label {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.4rem;
  align-items: center;
}
select,
input:not([type='checkbox']):not([type='radio']),
textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
select {
  appearance: none;
  padding-right: 2.1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23697586' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
}
select:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}

.section-intro {
  padding-bottom: 2rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats-grid p {
  margin: 0;
  padding: 1.4rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.stats-grid p + p {
  border-left: 1px solid var(--line);
}
.stats-grid strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand);
  line-height: 1.2;
}

/* Tuiles photo de l'accueil */
.tiles-photo {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 190px 190px 220px;
  gap: 14px;
}
.ptile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #333;
}
.ptile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.ptile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.65));
}
.ptile:hover img {
  transform: scale(1.05);
}
.ptile:hover {
  color: #fff;
}
.ptile-text {
  position: absolute;
  right: 1.25rem;
  bottom: 1.1rem;
  left: 1.25rem;
  z-index: 1;
  display: grid;
  justify-items: end;
  text-align: right;
}
.ptile-pre {
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.3rem);
  line-height: 1;
}
.ptile-big {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem);
  line-height: 1.05;
  margin-bottom: 0.6rem;
}
.tile-buy,
.tile-rent {
  grid-row: span 2;
}
.tile-sell {
  grid-column: 1 / -1;
}

/* ---------- Cartes annonces ---------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--bg-grey);
  border-radius: var(--radius) var(--radius) 0 0;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.card-noimg {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
}
.badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}
.badge-exclu {
  background: var(--brand);
  color: #fff;
}
.badge-new {
  background: #1d1d1b;
  color: var(--yellow);
}
.badge-outline {
  background: transparent;
  border: 1px solid var(--line);
}
[data-theme='prestige'] .badge {
  border-radius: 2px;
  background: rgba(10, 9, 8, 0.85);
  color: #e3c477;
  border: 1px solid rgba(202, 161, 61, 0.35);
}
.card-count {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}
.card-body {
  padding: 1.35rem 1.2rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.card-ref {
  color: var(--brand);
  white-space: nowrap;
}
.card-title {
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-theme='prestige'] .card-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 600;
}
.card-title a {
  text-decoration: none;
}
.card-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
}
.card-city {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  list-style: none;
  padding: 0.75rem 0 0;
  margin: auto 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.card .specs {
  margin-top: 0.6rem;
}
.specs li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.specs svg {
  color: var(--muted);
}
.card-sold .card-title {
  -webkit-line-clamp: 3;
  font-size: 0.95rem;
  text-transform: uppercase;
}

/* ---------- Agences (accueil) ---------- */
.agency-photos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
.agency-photo {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.agency-photo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}
.agency-photo-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ddd;
}
.agency-photo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.agency-photo-img .agency-photo-logo {
  position: absolute;
  inset: auto 10% 12px;
  width: 80%;
  height: auto;
  object-fit: contain;
}
.agency-photo-body {
  display: grid;
  gap: 0.1rem;
  padding: 0.8rem 0.9rem 0.9rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.agency-photo-body strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}
.agency-photo-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
  color: var(--brand);
  font-weight: 700;
}
.agency-photo-prestige {
  background: #121110;
  border-color: #121110;
}
.agency-photo-prestige strong {
  color: #e3c477;
}

/* Recrutement */
.recruit {
  background: #2b2b2b;
  color: #fff;
  padding: clamp(4rem, 3rem + 3vw, 5.5rem) 0 3.5rem;
}
.recruit-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}
.recruit-media {
  position: relative;
}
.recruit-media .brush {
  position: absolute;
  top: -52px;
  left: 18%;
  z-index: 1;
}
.recruit-media .brush-arrow {
  filter: invert(1);
}
.recruit-media > img {
  border-radius: var(--radius);
}
.recruit-text p {
  font-size: 1.15rem;
  margin: 0;
}
.recruit-text .recruit-big {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0.3rem 0;
}
.recruit-text .btn {
  margin-top: 1.25rem;
}

/* Avis */
.avis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.avis-grid-masonry {
  display: block;
  columns: 3 320px;
  column-gap: 1.25rem;
}
.avis-grid-masonry .avis {
  break-inside: avoid;
  margin-bottom: 1.25rem;
}
.avis {
  margin: 0;
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.avis-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.avis-head > div {
  flex: 1;
}
.avis-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}
.stars {
  display: flex;
  gap: 1px;
  color: #f5b301;
}
.avis blockquote {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.avis blockquote p {
  margin: 0 0 0.5em;
}
.avis figcaption {
  margin-top: auto;
}

/* Bandeau Prestige */
.prestige-banner {
  position: relative;
  background: #0e0d0c var(--bg) center / cover no-repeat;
  color: #f2ede3;
  padding: clamp(3rem, 2rem + 4vw, 5rem) 0;
}
.prestige-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 7, 6, 0.92), rgba(8, 7, 6, 0.55));
}
.prestige-banner-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
}
.prestige-banner img {
  width: 200px;
  height: auto;
}
.prestige-banner h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
  margin: 0 0 0.2rem;
  color: #fff;
  letter-spacing: 0;
}
.prestige-banner p {
  margin: 0;
  color: #cfc6b6;
}

/* ---------- Recherche ---------- */
.search-hero {
  background: var(--bg-grey);
  padding: 2.25rem 0 1.5rem;
}
.search-hero h1 {
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);
  margin-bottom: 0.1rem;
}
.search-hero .script {
  margin-bottom: 1.5rem;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.55rem);
  color: var(--ink-soft);
}
[data-theme='prestige'] .search-hero {
  background: radial-gradient(ellipse at top, #231e17, var(--bg) 70%);
}
[data-theme='prestige'] .search-hero .script {
  color: var(--brand);
}
.filters-mobile-bar {
  display: none;
}
.search-ui {
  position: relative;
}
.sheet-head,
.sheet-foot {
  display: none;
}
.sbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.15fr) minmax(0, 0.9fr) auto auto;
  gap: 0.5rem;
  align-items: stretch;
  padding: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.dd {
  position: relative;
}
.dd > summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 0.1rem 0.5rem;
  height: 100%;
  min-height: 58px;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
}
.dd > summary::-webkit-details-marker {
  display: none;
}
.dd > summary:hover,
.dd[open] > summary {
  background: var(--bg-grey);
}
.dd > summary svg {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  transform: rotate(90deg);
  color: var(--muted);
  transition: transform 0.15s;
}
.dd[open] > summary svg {
  transform: rotate(-90deg);
}
.dd-value {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}
.dd.is-set .dd-value {
  color: var(--ink);
}
.dd-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  left: 0;
  min-width: 270px;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.dd-wide .dd-panel {
  min-width: 370px;
}
.dd-hint {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.check-list {
  display: grid;
  gap: 0.15rem;
}
.check {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.4rem;
  border-radius: 8px;
  cursor: pointer;
}
.check:hover {
  background: var(--bg-grey);
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}
.check-count {
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg-grey);
  border-radius: 999px;
  padding: 0 0.5rem;
}
.loc {
  position: relative;
  display: grid;
  align-content: center;
  gap: 0.15rem;
  padding: 0.5rem 0.85rem;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.loc-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.2rem 0.15rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, var(--bg));
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}
.loc-chip button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.loc-chip button:hover {
  background: color-mix(in srgb, var(--brand) 20%, var(--bg));
}
.sbar .loc input.loc-input {
  flex: 1;
  min-width: 120px;
  border: 0;
  min-height: 28px;
  padding: 0;
  box-shadow: none;
  background: transparent;
  font-weight: 600;
}
.loc-list {
  position: absolute;
  z-index: 35;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  min-width: 280px;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow: auto;
}
.loc-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}
.loc-list li[aria-selected='true'],
.loc-list li:hover {
  background: var(--bg-grey);
}
.loc-list .loc-n {
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
}
.loc-list mark {
  background: none;
  color: var(--brand);
  font-weight: 800;
}
.range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.range-single {
  grid-template-columns: 1fr;
}
.range-inputs label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
}
.presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}
.pill-btn {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.pill-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pill {
  position: relative;
  cursor: pointer;
}
.pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pill:hover span {
  border-color: var(--brand);
}
.pill input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}
.pill input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent);
}
.more > summary {
  list-style: none;
}
.more > summary::-webkit-details-marker {
  display: none;
}
.more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 100%;
  min-height: 58px;
  padding: 0 1rem;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid var(--line);
}
.more[open] .more-btn,
.more-btn:hover {
  background: var(--bg-grey);
}
.count-dot {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-weight: 800;
}
.more-panel {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.more-panel fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.more-panel legend {
  font-weight: 800;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
}
.more-panel .span-all {
  grid-column: 1 / -1;
}
.pills-dpe .pill span {
  min-width: 52px;
}
.sbar-submit {
  min-height: 58px;
  border-radius: 10px;
  padding-inline: 1.4rem;
}

.results-head {
  margin-bottom: 1.75rem;
}
.results-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.results-count {
  margin: 0;
  font-size: 1.15rem;
}
.results-count strong {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--brand);
}
.results-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
}
.sort select {
  min-height: 38px;
  width: auto;
  padding-block: 0.3rem;
  font-weight: 700;
  color: var(--ink);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}
.chip:hover {
  border-color: var(--brand);
}
.chip-clear {
  display: inline-block;
  padding: 0.35rem 0.6rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand);
}
.empty {
  text-align: center;
  padding: 3rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-grey);
  color: var(--brand);
  margin-bottom: 1rem;
}
.empty h2 {
  font-size: 1.4rem;
}
.suggestions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 2.75rem;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 44px;
  height: 44px;
  padding: 0 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  text-decoration: none;
  font-weight: 700;
}
.pagination a[aria-current='page'] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}
.pagination-gap {
  color: var(--muted);
}

/* Modale (alerte) */
.modal {
  width: min(560px, 100vw - 2rem);
  max-height: calc(100vh - 2rem);
  border: 0;
  border-radius: 16px;
  padding: 1.5rem;
  background: var(--bg-card);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.modal::backdrop {
  background: rgba(10, 10, 10, 0.55);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.modal-head h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  margin: 0;
}

/* ---------- Fiche annonce ---------- */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 1rem 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumb li + li::before {
  content: '›';
  margin-right: 0.4rem;
  opacity: 0.6;
}
.breadcrumb a {
  text-decoration: none;
}
.breadcrumb [aria-current] {
  display: inline-block;
  max-width: 38ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.listing-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 1.25rem;
}
.listing-top h1 {
  font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.4rem);
  margin-bottom: 0.3rem;
}
[data-theme='prestige'] .listing-top h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3.1rem);
}
.badges-inline {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.listing-city {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink-soft);
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.listing-top-price {
  text-align: right;
  flex: none;
}
.listing-price {
  display: inline-block;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem);
  line-height: 1;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  margin: 0 0 0.45rem;
}
[data-theme='prestige'] .listing-price {
  background: none;
  color: var(--brand);
  font-family: var(--font-title);
  font-style: normal;
  font-weight: 600;
  padding: 0;
  font-size: clamp(2.2rem, 1.8rem + 1.5vw, 3rem);
}
.listing-price-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.listing-ref {
  margin: 0.25rem 0 0;
  color: var(--brand);
  font-size: 1.05rem;
}
.gallery {
  position: relative;
  display: grid;
  gap: 8px;
  border-radius: var(--radius);
  overflow: hidden;
  height: clamp(300px, 44vw, 560px);
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.gallery-1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.gallery-2 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr;
}
.gallery-3 {
  grid-template-columns: 2fr 1fr;
}
.gallery-item {
  display: block;
  overflow: hidden;
  background: var(--bg-grey);
}
.gallery-item:first-child {
  grid-row: span 2;
}
.gallery-2 .gallery-item:first-child {
  grid-row: auto;
}
.gallery-4 .gallery-item:nth-child(4) {
  grid-column: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s, filter 0.2s;
}
.gallery-item:hover img {
  transform: scale(1.03);
  filter: brightness(0.92);
}
.gallery-more {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 0;
  background: rgba(255, 255, 255, 0.96);
  color: #1d1d1b;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.gallery-empty {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  background: var(--bg-grey);
  color: var(--muted);
}
.key-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.key-info li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.25rem;
}
.key-info li + li {
  border-left: 1px solid var(--line);
}
.key-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
}
.key-info small {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.key-info strong {
  font-size: 1rem;
}
.key-info a {
  text-decoration: none;
  color: var(--brand);
}
.listing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: 1.5rem;
  align-items: start;
}
.listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 1.25rem;
}
.listing-main > section {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.listing-main h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
}
[data-theme='prestige'] .listing-main h2 {
  font-size: 2rem;
}
.listing-desc p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  column-gap: 2rem;
}
.facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.calc-grid label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.calc-result {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  margin: 1.1rem 0 0.4rem;
  font-size: 1.05rem;
}
.calc-result strong {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--brand);
}
.listing-aside {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.contact-card h2 {
  font-size: 1.35rem;
}
.contact-agency {
  display: grid;
  gap: 0.85rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.contact-agency-photo {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.contact-agency-name {
  display: grid;
  margin: 0;
}
.contact-agency-name small {
  color: var(--muted);
}
.contact-agency-name strong {
  font-size: 1.15rem;
}
.contact-buttons {
  display: grid;
  gap: 0.5rem;
}
.contact-buttons .btn-ghost {
  font-weight: 600;
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-card .contact-form-title {
  font-size: 1.2rem;
}
.avatars {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.avatars li img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-card);
  margin-right: -10px;
}
.avatars-names {
  margin-left: 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.section-agency-band {
  background: var(--bg-grey);
}
.agency-band {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.agency-band-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.agency-band-text h2 {
  margin-top: 0.4rem;
}
.agency-band-text address {
  margin-bottom: 1rem;
}

/* DPE */
.energy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.energy-block h3 {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.energy-scale {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 4px;
}
.energy-scale li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: 26px;
  opacity: 0.38;
}
.energy-scale li.is-active {
  opacity: 1;
  height: 36px;
}
.e-letter {
  width: var(--w);
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 0.6rem;
  color: #fff;
  font-weight: 900;
  border-radius: 4px 999px 999px 4px;
  font-size: 0.9rem;
}
.is-active .e-letter {
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}
.e-value {
  font-weight: 800;
  white-space: nowrap;
  font-size: 0.95rem;
}
.e-value small {
  font-weight: 500;
  color: var(--muted);
}
.energy-dpe .e-a .e-letter { background: #00845a; }
.energy-dpe .e-b .e-letter { background: #23a35c; }
.energy-dpe .e-c .e-letter { background: #7fc04a; }
.energy-dpe .e-d .e-letter { background: #f2d12f; color: #3a3000; }
.energy-dpe .e-e .e-letter { background: #f0a92a; }
.energy-dpe .e-f .e-letter { background: #e9692f; }
.energy-dpe .e-g .e-letter { background: #d42a20; }
.energy-ges .e-a .e-letter { background: #a4dbf8; color: #1d2a33; }
.energy-ges .e-b .e-letter { background: #8cb4d3; }
.energy-ges .e-c .e-letter { background: #7792b1; }
.energy-ges .e-d .e-letter { background: #636f93; }
.energy-ges .e-e .e-letter { background: #4f4e76; }
.energy-ges .e-f .e-letter { background: #3a3258; }
.energy-ges .e-g .e-letter { background: #281b3b; }

/* Visionneuse */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 9, 8, 0.97);
  color: #fff;
}
.lightbox[open] {
  display: grid;
  place-items: center;
}
.lightbox img {
  max-width: calc(100vw - 140px);
  max-height: calc(100vh - 100px);
  object-fit: contain;
  border-radius: 6px;
}
.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}
.lightbox button:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lb-close {
  top: 18px;
  right: 18px;
}
.lb-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}
.lb-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}
.lb-count {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ---------- Formulaires ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.form-grid label {
  display: grid;
  gap: 0.3rem;
}
.form-grid label span {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-grid .span-2 {
  grid-column: span 2;
}
.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}
.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 1rem 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.consent input {
  margin-top: 0.15rem;
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  flex: none;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-success {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: #e7f6ec;
  color: #14532d;
  font-weight: 700;
}
.form-error {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: #fdecea;
  color: #8a1c14;
  font-weight: 700;
}
.cf-turnstile {
  margin-bottom: 1rem;
}

/* ---------- Agences ---------- */
.agency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 1.5rem;
}
.agency-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: box-shadow 0.2s, transform 0.2s;
}
.agency-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.agency-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #ddd;
}
.agency-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.agency-card-body {
  display: grid;
  gap: 0.6rem;
  padding: 1.5rem 1.4rem 1.4rem;
}
.agency-card h2 {
  font-size: 1.35rem;
  margin: 0;
}
.agency-card h2 a {
  text-decoration: none;
}
.agency-card p {
  margin: 0;
}
.agency-links {
  display: grid;
  gap: 0.3rem;
}
.agency-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 600;
}
.agency-links-lg a {
  font-size: 1.05rem;
  padding: 0.25rem 0;
}
.agency-card-prestige {
  background: #121110;
  color: #f1ebe0;
  border-color: #121110;
}
.agency-card-prestige .link-arrow {
  color: #caa13d;
}
.agency-hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: end;
  background: #333 var(--bg) center / cover no-repeat;
  color: #fff;
}
.agency-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.6));
}
.agency-hero-inner {
  position: relative;
  padding: 3rem 0 5.5rem;
  text-align: center;
}
.agency-hero .breadcrumb {
  position: absolute;
  top: 0;
  left: 0;
}
.agency-hero .breadcrumb ol {
  color: rgba(255, 255, 255, 0.85);
}
.agency-hero-pre {
  font-weight: 500;
  font-size: 1.05rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.5rem;
}
.agency-hero h1 {
  display: flex;
  justify-content: center;
  margin: 0;
}
.info-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  list-style: none;
  margin: -3rem auto 0;
  padding: 0;
  max-width: 1060px;
  background: var(--bg-card);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.info-bar li + li {
  border-left: 1px solid var(--line);
}
.info-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.3rem 1rem;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.info-ico {
  color: var(--brand);
}
.info-bar .info-phone {
  font-size: 1.4rem;
  font-weight: 900;
}
.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
.team-1 {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}
.team-2 {
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
}
.team-member {
  text-align: center;
}
.team-member img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background: var(--bg-grey);
}
.team-member h3 {
  font-size: 1.35rem;
  font-weight: 900;
  margin: 0;
}
.team-group {
  margin: 2.5rem auto 0;
  max-width: 900px;
}
.team-group img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.town-band {
  background: #2b2b2b;
  color: #e9eaee;
  padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0;
}
.town-band-inner {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 3rem;
}
.town-band h2 {
  color: #fff;
}
.town-band h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 5px;
  border-radius: 5px;
  background: var(--brand);
  margin-top: 0.9rem;
}
.town-text {
  columns: 2 320px;
  column-gap: 2.5rem;
  font-size: 0.95rem;
}
.town-text p {
  break-inside: avoid;
}
.agency-reviews {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split-top {
  align-items: start;
}

/* ---------- Contenus ---------- */
.prose {
  max-width: 74ch;
}
.prose-wide {
  max-width: 1000px;
}
.prose h2 {
  margin-top: 2rem;
}
.prose h2:first-child {
  margin-top: 0;
}
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.75rem;
  font-size: 0.93rem;
}
.table th,
.table td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
.table thead th {
  background: var(--bg-grey);
  font-weight: 800;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2rem;
}
.feature h3 {
  margin: 0.75rem 0 0.35rem;
}
.feature p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 11%, transparent);
  color: var(--brand);
}
[data-theme='prestige'] .feature-icon {
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand) 50%, transparent);
  background: transparent;
}
.note {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #fffbe0;
  border: 1px solid #f2e36a;
}
.note p {
  margin: 0;
}
.steps {
  list-style: none;
  counter-reset: s;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 1.25rem;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding-left: 3.4rem;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: var(--brand);
  color: var(--brand-ink);
}
.steps h3 {
  margin: 0.2rem 0;
  text-transform: uppercase;
  font-size: 1rem;
}
.steps p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Prestige ---------- */
.p-hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: center;
  background: #0b0a09 var(--hero, none) center / cover no-repeat;
  color: #fff;
  margin-top: calc(-1 * var(--header-h) - 1px);
  padding-top: var(--header-h);
}
.p-hero-short {
  min-height: min(70vh, 620px);
}
.p-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.6) 0%, rgba(8, 7, 6, 0.35) 45%, rgba(8, 7, 6, 0.92) 100%);
}
.p-hero-inner {
  position: relative;
  padding: 4rem 0;
  text-align: center;
}
.p-hero h1 {
  font-family: var(--font);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.3rem);
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: #fff;
  max-width: 24ch;
  margin-inline: auto;
}
.p-hero h1 span {
  display: block;
  font-family: var(--font-title);
  text-transform: none;
  font-weight: 400;
  font-style: italic;
  color: #e3c477;
  font-size: 0.85em;
  margin-top: 0.3rem;
}
.p-hero h1 a {
  color: #e3c477;
  text-decoration: none;
}
.chevrons {
  display: inline-block;
  color: #caa13d;
  margin-top: 0.5rem;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(6px);
  }
}
.p-search {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr auto;
  gap: 0.75rem;
  align-items: end;
  max-width: 980px;
  margin: 2.5rem auto 0;
  padding: 1rem;
  background: rgba(10, 9, 8, 0.72);
  border: 1px solid rgba(202, 161, 61, 0.35);
  backdrop-filter: blur(8px);
  text-align: left;
}
.p-search label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #cfc6b6;
}
.p-search input,
.p-search select {
  background-color: rgba(0, 0, 0, 0.5);
  border-color: rgba(202, 161, 61, 0.35);
  color: #fff;
}
.p-title {
  margin-bottom: 1.75rem;
}
.p-title-center {
  text-align: center;
}
.p-sub {
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem);
  color: var(--muted);
  margin: 0;
}
.p-title h2 {
  color: var(--brand);
  margin: 0;
}
.gold-bar {
  display: block;
  width: 90px;
  height: 2px;
  background: var(--brand);
  margin-top: 1rem;
}
.p-title-center .gold-bar {
  margin-inline: auto;
}
.p-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.p-split p {
  color: var(--ink-soft);
}
.p-split-rev {
  grid-template-columns: 1fr 1.1fr;
}
.p-visual {
  width: 100%;
}
.p-team-band {
  position: relative;
  background: #0b0a09 var(--bg) center / cover no-repeat;
  padding: clamp(5rem, 4rem + 6vw, 9rem) 0;
  text-align: center;
  color: #fff;
}
.p-team-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.62);
}
.p-team-inner {
  position: relative;
}
.p-team-inner h2 {
  font-family: var(--font);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 1.3rem + 2vw, 3rem);
  color: #fff;
}
.p-team-inner p {
  max-width: 60ch;
  margin-inline: auto;
  color: #e6dfd2;
}
.p-split-portrait {
  grid-template-columns: 1.3fr 0.7fr;
}
.p-portrait {
  margin: 0;
  justify-self: center;
  text-align: center;
}
.p-portrait img {
  max-height: 640px;
  width: auto;
  margin-inline: auto;
}
.p-portrait figcaption {
  display: grid;
  margin-top: 0.75rem;
}
.p-portrait figcaption strong {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--brand);
}
.p-portrait figcaption span {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--muted);
}
.p-values-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.8rem;
}
.p-values-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.p-values-list svg {
  color: var(--brand);
  flex: none;
}
.p-agencies {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.p-agencies a {
  display: grid;
  padding: 1rem;
  border: 1px solid var(--line);
  text-decoration: none;
}
.p-agencies a:hover {
  border-color: var(--brand);
}
.p-agencies span {
  color: var(--muted);
  font-size: 0.85rem;
}
.p-address {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
}
[data-theme='prestige'] .section-head .p-title {
  margin-bottom: 0;
}
[data-theme='prestige'] select,
[data-theme='prestige'] input:not([type='checkbox']):not([type='radio']),
[data-theme='prestige'] textarea {
  background-color: #0a0908;
}
[data-theme='prestige'] .form-success {
  background: #1d2a1f;
  color: #b9e3c2;
}
[data-theme='prestige'] .sbar,
[data-theme='prestige'] .dd-panel,
[data-theme='prestige'] .more-panel,
[data-theme='prestige'] .loc-list,
[data-theme='prestige'] .pill span,
[data-theme='prestige'] .chip,
[data-theme='prestige'] .pagination a,
[data-theme='prestige'] .key-ico,
[data-theme='prestige'] .info-bar,
[data-theme='prestige'] .modal {
  border-radius: 2px;
}
[data-theme='prestige'] .listing-city {
  text-transform: none;
}
[data-theme='prestige'] .stats-grid strong,
[data-theme='prestige'] .results-count strong {
  font-family: var(--font-title);
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .sbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .loc {
    border: 0;
    grid-column: span 2;
  }
  .agency-photos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .p-agencies {
    grid-template-columns: repeat(3, 1fr);
  }
  .listing-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}
@media (max-width: 980px) {
  :root {
    --header-h: 70px;
  }
  .nav-toggle {
    display: grid;
  }
  .header-actions {
    margin-left: auto;
  }
  .nav-other,
  .hide-md {
    display: none;
  }
  [data-theme='normande'] {
    --hs: 62px;
  }
  [data-theme='normande'] .brand img {
    height: 40px;
  }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    overflow: auto;
    padding: 0.5rem 1.25rem 2rem;
    background: var(--bg);
    border-top: 1px solid var(--line);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s, visibility 0.3s;
  }
  [data-theme='normande'] .main-nav {
    inset: var(--hs) 0 0;
    border-top: 0;
    pointer-events: auto;
  }
  .main-nav.is-open {
    transform: none;
    visibility: visible;
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
  }
  .nav-list > li > a,
  [data-theme='prestige'] .nav-list > li > a {
    padding: 1rem 0.25rem;
    border-radius: 0;
    font-size: 1.15rem;
    font-weight: 700;
    border-bottom: 1px solid var(--line);
  }
  .nav-list > li > a:hover,
  .has-sub:hover > a,
  .has-sub:focus-within > a {
    background: none;
  }
  .nav-caret {
    display: none;
  }
  .sub-menu,
  .sub-menu-agencies,
  .has-sub:hover .sub-menu,
  .has-sub:focus-within .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    padding: 0.5rem 0 0.9rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
  }
  .sub-menu ul,
  .sub-menu-agencies ul {
    grid-template-columns: 1fr 1fr;
  }
  .sub-menu a {
    padding: 0.45rem 0.3rem;
    gap: 0.55rem;
  }
  .sub-txt small {
    display: none;
  }
  .sub-ico,
  .sub-thumb {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .sub-txt strong {
    font-size: 0.88rem;
    font-weight: 600;
  }
  .sub-all {
    border-top: 0;
    justify-content: flex-start;
    padding: 0.4rem 0.3rem !important;
  }
  .nav-mobile-extra {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.25rem;
  }
  .nav-ref {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
  }
  .nav-social {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
  }
  .nav-social a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-grey);
  }
  .nav-open {
    overflow: hidden;
  }
  .quick-search {
    grid-template-columns: 1fr 1fr;
  }
  .quick-search .btn {
    grid-column: span 2;
  }
  .tiles-photo {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 200px);
  }
  .tile-buy,
  .tile-rent {
    grid-row: auto;
  }
  .grid-cards,
  .avis-grid,
  .agency-grid,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .agency-photos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .listing-layout,
  .split,
  .agency-band,
  .recruit-inner,
  .town-band-inner,
  .p-split,
  .p-split-rev,
  .p-split-portrait {
    grid-template-columns: 1fr;
  }
  .listing-aside {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col-wide {
    grid-column: span 2;
    order: 3;
  }
  .social-band-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .social-big {
    flex-wrap: wrap;
  }
  .prestige-banner-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .p-search {
    grid-template-columns: 1fr 1fr;
  }
  .p-search .btn {
    grid-column: span 2;
  }
  .calc-grid {
    grid-template-columns: 1fr 1fr;
  }
  .recruit-media .brush {
    top: -44px;
    left: 8%;
  }

  /* Moteur de recherche en panneau plein écran */
  .filters-mobile-bar {
    display: flex;
    gap: 0.6rem;
  }
  .filters-mobile-bar .btn {
    flex: 1;
  }
  .sort-inline select {
    min-height: 46px;
    font-weight: 700;
  }
  .search-ui {
    display: none;
  }
  .search-ui.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--bg);
  }
  .filters-open {
    overflow: hidden;
  }
  .sheet-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.15rem;
  }
  .sheet-foot {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.6rem;
    padding: 0.9rem 1.25rem;
    border-top: 1px solid var(--line);
    background: var(--bg);
  }
  .sbar {
    flex: 1;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 1.25rem 1.5rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .sbar > .dd,
  .sbar > .loc,
  .sbar > .more {
    flex: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
  }
  .dd > summary {
    height: auto;
    padding: 0;
    min-height: 0;
    pointer-events: none;
  }
  .dd > summary svg,
  .dd-value {
    display: none;
  }
  .dd > summary:hover,
  .dd[open] > summary {
    background: none;
  }
  .dd-panel,
  .more-panel {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: 0;
    padding: 0.6rem 0 0;
  }
  .dd-wide .dd-panel {
    min-width: 0;
  }
  .loc-list {
    position: static;
    min-width: 0;
    box-shadow: none;
    margin-top: 0.5rem;
  }
  .loc-box {
    min-height: 46px;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
  }
  .more-btn {
    display: none;
  }
  .more-panel {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .sbar-submit {
    display: none;
  }
  .results-tools .sort {
    display: none;
  }
}
@media (max-width: 640px) {
  .container {
    width: min(100% - 1.75rem, 1240px);
  }
  .hide-sm {
    display: none !important;
  }
  .hero {
    padding-top: 2rem;
  }
  .hero-bg {
    inset: 0 0 auto;
    height: 300px;
  }
  .hero .brush {
    margin-left: 2.5rem;
  }
  .quick-search,
  .quick-search-ref {
    grid-template-columns: 1fr;
  }
  .quick-search .btn {
    grid-column: auto;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid p:nth-child(3) {
    border-left: 0;
  }
  .stats-grid p:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .tiles-photo {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: 180px;
  }
  .tile-sell {
    grid-column: auto;
  }
  .grid-cards,
  .grid-4,
  .avis-grid,
  .agency-grid,
  .feature-grid,
  .energy-grid,
  .facts,
  .form-grid,
  .team,
  .team-2 {
    grid-template-columns: 1fr;
  }
  .agency-photos {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-col-wide {
    grid-column: auto;
  }
  .footer-main .footer-agencies {
    grid-template-columns: 1fr;
  }
  .form-grid .span-2 {
    grid-column: auto;
  }
  .listing-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .listing-top-price {
    text-align: left;
  }
  .gallery {
    height: 280px;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }
  .gallery-item:not(:first-child) {
    display: none;
  }
  .gallery-item:first-child {
    grid-row: auto;
  }
  .key-info {
    grid-template-columns: 1fr 1fr;
  }
  .key-info li:nth-child(odd) {
    border-left: 0;
  }
  .key-info li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .info-bar {
    grid-template-columns: 1fr;
    margin-top: -2rem;
  }
  .info-bar li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .agency-hero {
    min-height: 340px;
  }
  .p-agencies {
    grid-template-columns: 1fr 1fr;
  }
  .p-search {
    grid-template-columns: 1fr;
  }
  .p-search .btn {
    grid-column: auto;
  }
  .lightbox img {
    max-width: 100vw;
  }
  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 12px;
    transform: none;
  }
  .qr-list {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Impression d'une fiche ---------- */
@media print {
  .site-header,
  .site-footer,
  .breadcrumb,
  .listing-actions,
  .contact-form,
  .contact-form-title,
  .calc,
  .gallery-more,
  .section:not(.section-agency-band),
  .lightbox {
    display: none !important;
  }
  body {
    color: #000;
    background: #fff;
  }
  .listing-layout {
    grid-template-columns: 1fr 260px;
  }
  .gallery {
    height: 320px;
  }
  .listing-aside {
    position: static;
  }
  .card,
  .contact-card {
    box-shadow: none;
  }
}

/* Vignettes : l'image remplit le cadre sans l'agrandir (photos verticales) */
.card-media img,
.agency-photo-img img {
  position: absolute;
  inset: 0;
}
.card-noimg {
  position: absolute;
  inset: 0;
}

/* ---------- Page d’une agence : photo de l’équipe en tête ---------- */
.agency-cover {
  padding-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}
.agency-cover-media {
  position: relative;
  margin: 0;
  background: #2b2b2b;
  overflow: hidden;
}
/* Voile sombre neutre sur toute la hauteur de la photo */
.agency-cover-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 20, 24, 0.58) 0%, rgba(18, 20, 24, 0.46) 45%, rgba(18, 20, 24, 0.66) 100%);
}
.agency-cover-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  max-height: min(66vh, 680px);
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(0.8);
}
.agency-cover-media.is-team img {
  object-position: center 10%;
}
.agency-cover-card {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: clamp(-6rem, -1rem - 4vw, -2rem) auto 0;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1.25rem, 1rem + 2vw, 3rem);
  background: var(--bg-card);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.agency-cover-pre {
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 0.7rem;
}
.agency-cover-card h1 {
  display: flex;
  justify-content: center;
  margin: 0;
}
.agency-cover-team {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  line-height: 1.2;
  color: var(--brand);
  margin: 0.6rem 0 0;
}
.agency-cover-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2rem;
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 1.3rem 0 0;
  border-top: 1px solid var(--line);
}
.agency-cover-info a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.agency-cover-info a:hover {
  color: var(--brand);
}
.agency-cover-info .info-phone {
  font-size: 1.25rem;
  font-weight: 900;
}
.agency-cover-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
@media (max-width: 720px) {
  .agency-cover-media img {
    max-height: none;
  }
  .agency-cover-card {
    margin-top: -1.5rem;
    border-radius: 12px;
  }
  .agency-cover-info {
    flex-direction: column;
    align-items: center;
  }
  .agency-cover-actions .btn {
    flex: 1 1 100%;
  }
}

/* Fiche : liens visite virtuelle / vidéo / barème */
.listing-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.25rem;
  margin: 1.25rem 0 0;
}

/* ---------- Accueil : texte à gauche, 3 dernières annonces à droite, filtres dessous ---------- */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(1.5rem, 3.5vw, 4rem);
  align-items: center;
}
.hero-text .kicker {
  margin: 0 0 1rem;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-text .hero-title {
  margin: 0 0 1.4rem;
}
.hero-text .label-red-lg {
  font-size: clamp(1.9rem, 1rem + 2vw, 2.6rem);
}
.hero-text .brush {
  margin: 0 0 2.6rem 2.5rem;
}
.hero-lead {
  max-width: 38ch;
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.6;
}
.hero-lead strong {
  color: var(--brand);
  font-weight: 900;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-featured-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0 0 0.6rem;
  color: var(--ink);
  font-family: var(--font-script);
  font-size: 1.6rem;
  line-height: 1.1;
}
.hero-featured-title a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
  color: var(--brand);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.hero-featured-title a:hover {
  text-decoration: underline;
}
.hero-mosaic {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  height: clamp(340px, 34vw, 470px);
}
.mosaic-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #2b2b2b;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}
.mosaic-0 {
  grid-row: span 2;
}
.mosaic-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.mosaic-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.75) 100%);
}
.mosaic-card:hover img {
  transform: scale(1.05);
}
.mosaic-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mosaic-info {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  gap: 2px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}
.mosaic-type {
  font-size: 0.9rem;
  font-weight: 700;
}
.mosaic-city {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  opacity: 0.92;
}
.mosaic-price {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-size: 1.02rem;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.mosaic-0 .mosaic-price {
  font-size: 1.3rem;
}
.mosaic-0 .mosaic-type {
  font-size: 1.05rem;
}
/* Petites vignettes : badges en haut, prix en bas à droite. */
.mosaic-1 .mosaic-price,
.mosaic-2 .mosaic-price {
  top: auto;
  bottom: 12px;
}
.mosaic-1 .mosaic-info,
.mosaic-2 .mosaic-info {
  right: 96px;
}

/* Barre de filtres (identique à « Acheter ») sous le bandeau */
.hero-search-full {
  margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  max-width: none;
  padding: 0.4rem 1rem 1rem;
}
.hero-search-full .tabs {
  margin-bottom: 0.75rem;
}
.hero-search-full .search-ui:not(.is-open) .sbar {
  padding: 0;
  border: 0;
  box-shadow: none;
}
.home-mobile-bar {
  display: none;
}
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-mosaic {
    height: 340px;
  }
  .home-mobile-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
  }
  .home-mobile-bar .btn-ghost {
    justify-content: flex-start;
  }
}
@media (max-width: 720px) {
  /* Mobile : texte, puis recherche, puis les 3 annonces en carrousel. */
  .hero > .container {
    display: flex;
    flex-direction: column;
  }
  .hero-grid {
    display: contents;
  }
  .hero-text {
    order: 1;
  }
  .hero-search-full {
    order: 2;
  }
  .hero-featured {
    order: 3;
    margin-top: 1.75rem;
  }
  .hero-ctas {
    display: none;
  }
  .hero-text .brush {
    margin-left: 1.5rem;
  }
  .home-mobile-bar {
    grid-template-columns: 1fr;
  }
  .hero-mosaic {
    display: flex;
    gap: 10px;
    height: 210px;
    margin: 0 -0.875rem;
    padding: 0 0.875rem 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .hero-mosaic::-webkit-scrollbar {
    display: none;
  }
  .mosaic-card {
    flex: 0 0 80%;
    scroll-snap-align: start;
  }
  .mosaic-card .mosaic-price {
    top: 10px;
    bottom: auto;
    font-size: 1.05rem;
  }
  .mosaic-card .mosaic-info {
    right: 12px;
  }
}

/* ---------- Accueil (structure v1) : chiffres, types de biens, équipe ---------- */
.stats-band {
  padding: 0 0 clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--bg-grey);
}
.stats-band .stats-grid {
  margin-top: 0;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}
.type-tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}
.type-tile {
  display: grid;
  justify-items: start;
  gap: 0.35rem;
  padding: 1.35rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.type-tile:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  box-shadow: var(--shadow-lg);
}
.type-tile-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.4rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 9%, transparent);
  color: var(--brand);
}
.type-tile-label {
  font-size: 1.08rem;
  font-weight: 800;
}
.type-tile-n {
  color: var(--muted);
  font-size: 0.9rem;
}
.split-home .split-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.split-home .split-text > p {
  color: var(--ink-soft);
  line-height: 1.65;
}
.split-home .checklist {
  display: grid;
  gap: 0.6rem;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  list-style: none;
}
.split-home .checklist li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 600;
}
.split-home .checklist svg {
  flex: none;
  margin-top: 0.15rem;
  color: var(--brand);
}
@media (max-width: 980px) {
  .type-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .split-home {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .type-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .type-tile:last-child {
    grid-column: span 2;
  }
}
