/* ==========================================================================
   J'immo — feuille de style du site public
   Palette tirée du logo : bleu #6096D6, pierre #D4D0BE, encre #545247.
   ========================================================================== */

@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/figtree-400.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/figtree-500.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/figtree-600.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/figtree-700.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/bodoni-moda-500.woff2") format("woff2"); }
@font-face { font-family: "Bodoni Moda"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/bodoni-moda-600.woff2") format("woff2"); }

:root {
  --blue: #6096d6;          /* bleu du logo : bandeau, grands aplats */
  --blue-deep: #275587;     /* boutons, liens */
  --blue-deeper: #1d4370;   /* survol */
  --blue-tint: #e3ecf7;
  --stone: #d4d0be;         /* beige du logo : fond du site */
  --stone-soft: #e2dfd1;
  --stone-deep: #c4bfa9;
  --paper: #ffffff;
  --ink: #4a483e;           /* texte courant */
  --ink-strong: #34322b;    /* titres */
  --ink-logo: #545247;      /* gris du logo : textes secondaires */
  --ink-on-blue: #1e1d19;
  --line: rgba(52, 50, 43, 0.16);
  --line-strong: rgba(52, 50, 43, 0.28);
  --ochre: #8a5a0b;
  --danger: #a3261b;
  --success: #2f6b33;

  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-card: 0 1px 2px rgba(52, 50, 43, 0.08), 0 8px 24px -16px rgba(52, 50, 43, 0.35);
  --shadow-float: 0 24px 48px -20px rgba(29, 38, 52, 0.45), 0 2px 6px rgba(29, 38, 52, 0.08);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { color: var(--ink-strong); margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
h3, h4 { font-family: var(--font-sans); font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-deeper); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink-strong); padding: 10px 16px; border-radius: var(--radius-s);
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Boutons ---------- */

.btn {
  --btn-bg: var(--blue-deep); --btn-fg: #fff; --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.4em;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-border);
  border-radius: 999px; font: 600 1rem/1.1 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s var(--ease), box-shadow .18s;
}
.btn:hover { --btn-bg: var(--blue-deeper); color: var(--btn-fg); text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(29, 67, 112, .7); }
.btn:active { transform: translateY(0); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--blue-deep); }
.btn--light:hover { --btn-bg: var(--blue-tint); --btn-fg: var(--blue-deeper); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink-strong); --btn-border: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--paper); --btn-fg: var(--ink-strong); --btn-border: var(--ink-strong); box-shadow: none; }
.btn--block { width: 100%; }
.btn--small { min-height: 40px; padding: 0 1.1em; font-size: .95rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.link-arrow .icon { transition: transform .18s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- En-tête (bandeau bleu du logo) ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--blue);
  color: var(--ink-on-blue);
}
.site-header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.site-header__logo { display: block; flex: none; margin-right: auto; }
.site-header__logo img { height: 58px; width: auto; }

.site-nav { display: none; gap: 4px; }
.site-nav a {
  position: relative; padding: 10px 12px; border-radius: 999px;
  color: var(--ink-on-blue); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .18s;
}
.site-nav a:hover { background: rgba(255, 255, 255, .28); color: var(--ink-on-blue); }
.site-nav a[aria-current="page"] { background: rgba(255, 255, 255, .42); }

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.header-phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 44px; height: 44px; border-radius: 999px;
  color: var(--ink-on-blue); font-weight: 600; text-decoration: none; transition: background-color .18s;
}
.header-phone:hover { background: rgba(255, 255, 255, .28); color: var(--ink-on-blue); }
.header-phone span { display: none; }
.header-cta { display: none; }

/* Menu burger : s'ouvre au survol (souris) ou au clic (tactile, clavier).
   Le panneau remonte jusqu'au bouton : le curseur est déjà dessus quand il s'ouvre. */
.menu { position: relative; flex: none; }
.menu__toggle {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 14px 0 10px; margin-left: -10px;
  background: transparent; border: 0; border-radius: 999px;
  color: var(--ink-on-blue); font: 600 1rem var(--font-sans); cursor: pointer;
  transition: background-color .18s, color .18s;
}
.menu__toggle:hover { background: rgba(255, 255, 255, .28); }
.menu__label { display: none; }
.menu__bars { position: relative; width: 26px; height: 18px; }
.menu__bars span {
  position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor;
  transition: transform .22s var(--ease), opacity .18s, top .22s var(--ease);
}
.menu__bars span:nth-child(1) { top: 0; }
.menu__bars span:nth-child(2) { top: 7.75px; }
.menu__bars span:nth-child(3) { top: 15.5px; }

.menu__panel {
  position: absolute; z-index: 1; top: -12px; left: -22px;
  width: min(360px, calc(100vw - 16px));
  padding: 74px 14px 16px;
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-float);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: 30px 30px;
  transition: opacity .18s, transform .22s var(--ease), visibility 0s linear .22s;
}
.menu.is-open .menu__panel {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .18s, transform .22s var(--ease), visibility 0s;
}
.menu.is-open .menu__toggle { color: var(--ink-strong); background: transparent; }
.menu.is-open .menu__bars span:nth-child(1) { top: 7.75px; transform: rotate(45deg); }
.menu.is-open .menu__bars span:nth-child(2) { opacity: 0; }
.menu.is-open .menu__bars span:nth-child(3) { top: 7.75px; transform: rotate(-45deg); }

@media (hover: hover) and (pointer: fine) {
  .menu:not(.is-suppressed):hover .menu__panel {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .18s, transform .22s var(--ease), visibility 0s;
  }
  .menu:not(.is-suppressed):hover .menu__toggle { color: var(--ink-strong); background: transparent; }
  .menu:not(.is-suppressed):hover .menu__bars span:nth-child(1) { top: 7.75px; transform: rotate(45deg); }
  .menu:not(.is-suppressed):hover .menu__bars span:nth-child(2) { opacity: 0; }
  .menu:not(.is-suppressed):hover .menu__bars span:nth-child(3) { top: 7.75px; transform: rotate(-45deg); }
}

.menu__nav { display: grid; gap: 2px; }
.menu__nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-radius: var(--radius-s);
  color: var(--ink-strong); font-size: 1.125rem; font-weight: 500; text-decoration: none;
  transition: background-color .15s, color .15s, padding-left .2s var(--ease);
}
.menu__nav a .icon { opacity: 0; transform: translateX(-6px); transition: opacity .15s, transform .2s var(--ease); color: var(--blue-deep); }
.menu__nav a:hover, .menu__nav a:focus-visible { background: var(--blue-tint); color: var(--blue-deeper); padding-left: 18px; }
.menu__nav a:hover .icon, .menu__nav a:focus-visible .icon { opacity: 1; transform: none; }
.menu__nav a[aria-current="page"] { color: var(--blue-deep); font-weight: 600; }
.menu__nav .menu__cta { margin-top: 6px; background: var(--stone-soft); }

.menu__contact {
  display: grid; gap: 4px; margin-top: 12px; padding: 14px 14px 4px;
  border-top: 1px solid var(--line); font-size: .95rem;
}
.menu__contact a, .menu__contact p {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 6px 0;
  color: var(--ink); text-decoration: none;
}
.menu__contact a:hover { color: var(--blue-deep); }
.menu__contact .icon { color: var(--blue-deep); }

@media (min-width: 640px) {
  .menu__label { display: inline; }
  .header-cta { display: inline-flex; }
}

@media (min-width: 1120px) {
  .site-header__inner { gap: 20px; }
  .site-header__logo { margin-right: 0; }
  .site-nav { display: flex; margin-left: auto; }
}

/* Le numéro complet ne s'affiche que s'il tient sur une ligne ; sinon, icône seule. */
.header-phone, .header-cta, .site-nav a { white-space: nowrap; }
@media (min-width: 1340px) {
  .header-phone { width: auto; height: 44px; padding: 0 12px; }
  .header-phone span { display: inline; }
}

@media (max-width: 420px) {
  .site-header__logo img { height: 50px; }
}

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

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--soft { background: var(--stone-soft); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.section-title { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.section-intro { max-width: 60ch; margin-top: 10px; font-size: 1.125rem; }

/* ---------- Accueil : photo + moteur de recherche ---------- */

.hero {
  position: relative; isolation: isolate;
  min-height: clamp(460px, 74vh, 700px);
  display: flex; align-items: flex-end;
  color: #fff; background: var(--blue-deeper);
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; overflow: hidden; }
.hero__media img { object-fit: cover; object-position: 50% 45%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 26, 36, .62) 0%, rgba(18, 26, 36, .25) 48%, rgba(18, 26, 36, 0) 75%),
    linear-gradient(0deg, rgba(18, 26, 36, .55) 0%, rgba(18, 26, 36, 0) 45%);
}
.hero--plain { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); }
.hero--plain::after { display: none; }

.hero__inner { padding-bottom: clamp(150px, 19vw, 190px); padding-top: 64px; }
.hero__title {
  max-width: 13ch;
  color: #fff; font-weight: 500;
  font-size: clamp(2.75rem, 7vw, 5.25rem); line-height: 1.02; letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.hero__lead {
  max-width: 44ch; margin-top: 18px;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 500; color: rgba(255, 255, 255, .94);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
}

.finder-wrap { position: relative; z-index: 5; margin-top: clamp(-130px, -14vw, -112px); }
.finder {
  display: grid; gap: 0;
  border-radius: var(--radius-l); overflow: hidden;
  box-shadow: var(--shadow-float);
  animation: finder-in .7s var(--ease) .1s both;
}
@keyframes finder-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.search { background: var(--paper); padding: clamp(20px, 2.6vw, 30px); }
.search__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.search__title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; color: var(--ink-strong); }

.toggle { display: inline-flex; padding: 4px; background: var(--stone-soft); border-radius: 999px; border: 0; margin: 0; }
.toggle legend { padding: 0; }
.toggle label { position: relative; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span {
  display: block; padding: 9px 18px; border-radius: 999px;
  font-weight: 600; color: var(--ink); transition: background-color .18s, color .18s, box-shadow .18s;
}
.toggle label:hover span { color: var(--ink-strong); background: rgba(255, 255, 255, .6); }
.toggle input:checked + span { background: var(--paper); color: var(--blue-deep); box-shadow: 0 1px 3px rgba(52, 50, 43, .18); }
.toggle input:focus-visible + span { outline: 3px solid var(--blue-deep); outline-offset: 2px; }

.search__fields { display: grid; gap: 12px; }
.search__fields .btn { min-height: 54px; }

.estimate {
  position: relative; display: grid; align-content: center; gap: 6px;
  padding: clamp(22px, 2.6vw, 30px) clamp(22px, 2.6vw, 32px);
  background: var(--blue-deep); color: #fff; text-decoration: none;
  transition: background-color .2s;
}
.estimate:hover { background: var(--blue-deeper); color: #fff; text-decoration: none; }
/* Étiquette de clé : le petit œillet rappelle la clé du logo. */
.estimate::before {
  content: ""; position: absolute; top: 18px; right: 20px; width: 14px; height: 14px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); background: var(--blue-deeper);
}
.estimate__title { font-family: var(--font-display); font-size: 1.65rem; line-height: 1.1; padding-right: 30px; }
.estimate__text { color: rgba(255, 255, 255, .88); font-size: 1rem; }
.estimate__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 700; }
.estimate__cta .icon { transition: transform .18s var(--ease); }
.estimate:hover .estimate__cta .icon { transform: translateX(4px); }

@media (min-width: 720px) {
  .search__fields { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1040px) {
  .finder { grid-template-columns: minmax(0, 1fr) 300px; }
  .search__fields { grid-template-columns: 1.1fr 1.1fr 1fr auto; align-items: end; }
}

/* ---------- Champs de formulaire ---------- */

.field { display: grid; gap: 6px; min-width: 0; }
.field__label { font-size: .95rem; font-weight: 600; color: var(--ink-strong); }
.field__label .req { color: var(--danger); margin-left: 2px; }
.field__hint { font-size: .875rem; color: var(--ink-logo); margin: 0; }
.field__error { margin: 0; font-size: .9rem; font-weight: 600; color: var(--danger); }

.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--paper); color: var(--ink-strong);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-s);
  font: 400 1rem/1.4 var(--font-sans);
  transition: border-color .15s, box-shadow .15s;
}
.select {
  appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334322b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-logo); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-deep); box-shadow: 0 0 0 3px rgba(39, 85, 135, .22); }
[aria-invalid="true"] { border-color: var(--danger) !important; }

.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--blue-deep); margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips legend { margin-bottom: 8px; padding: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px;
  border: 1.5px solid currentColor; border-radius: 999px; font-weight: 600;
  transition: background-color .15s, color .15s;
}
.chip:hover span { background: rgba(255, 255, 255, .18); }
.chip input:checked + span { background: #fff; color: var(--blue-deeper); border-color: #fff; }
.chip input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }

.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
  .form-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .form-grid .span-all { grid-column: 1 / -1; }
}
.form-note { font-size: .875rem; color: var(--ink-logo); }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 18px; border-radius: var(--radius-m); margin-bottom: 20px;
  font-weight: 500;
}
.notice .icon { margin-top: 2px; }
.notice--success { background: #e3efe1; color: #1f4d22; }
.notice--error { background: #f6e1de; color: #7d1d14; }
.notice--info { background: var(--blue-tint); color: var(--blue-deeper); }

/* ---------- Carrousel des derniers biens ---------- */

.rail { position: relative; }
.rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 82%);
  gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 24px; margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail__nav { display: none; gap: 8px; }
.rail__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--paper); color: var(--ink-strong); border: 1.5px solid var(--line-strong);
  cursor: pointer; transition: background-color .18s, color .18s, border-color .18s, opacity .18s;
}
.rail__btn:hover:not(:disabled) { background: var(--ink-strong); color: #fff; border-color: var(--ink-strong); }
.rail__btn:disabled { opacity: .35; cursor: default; }

@media (min-width: 640px) { .rail__track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (min-width: 980px) {
  .rail__track { grid-auto-columns: calc((100% - 40px) / 3); padding-inline: 0; margin-inline: 0; scroll-padding-inline: 0; }
  .rail__nav { display: flex; }
}
@media (min-width: 1240px) { .rail__track { grid-auto-columns: calc((100% - 60px) / 4); } }

/* ---------- Carte d'un bien ---------- */

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border-radius: var(--radius-m); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(52, 50, 43, .08), 0 22px 40px -22px rgba(52, 50, 43, .55); }
.card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__photos {
  position: absolute; right: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px;
  background: rgba(22, 24, 28, .62); color: #fff; border-radius: 999px; font-size: .8rem; font-weight: 600;
}
.card__photos .icon { width: 15px; height: 15px; }
.card__body { display: grid; gap: 6px; padding: 16px 18px 18px; flex: 1; align-content: start; }
.card__price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink-strong); line-height: 1.15; }
.card__title { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.card__title a { color: var(--ink-strong); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__title a:hover { color: var(--blue-deep); }
.card__place { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ink-logo); font-size: .95rem; }
.card__place .icon { width: 17px; height: 17px; }
.card__facts {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; padding: 12px 0 0; list-style: none;
  border-top: 1px solid var(--line); color: var(--ink); font-size: .92rem;
}
.card__facts li { display: inline-flex; align-items: center; gap: 6px; }
.card__facts .icon { width: 17px; height: 17px; color: var(--blue-deep); }
.card--sold .card__media img { filter: saturate(.75); }

.badge {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
  font-size: .85rem; font-weight: 700; letter-spacing: .01em;
  background: var(--paper); color: var(--ink-strong); box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.badge--vendu, .badge--loue { background: var(--blue-deep); color: #fff; }
.badge--option { background: var(--ochre); color: #fff; }
.badge--new { background: var(--paper); color: var(--blue-deep); }
.badge--static { position: static; box-shadow: none; }

.grid-cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }

/* ---------- Accueil : services ---------- */

.services-grid { display: grid; gap: 18px; }
.service {
  display: grid; align-content: start; gap: 12px;
  padding: 26px 24px; background: var(--paper); border-radius: var(--radius-m);
  border: 1px solid var(--line);
}
.service__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--blue-tint); color: var(--blue-deep);
}
.service__icon .icon { width: 24px; height: 24px; }
.service h3 { font-size: 1.25rem; }
.service p { margin: 0; }

.quote {
  margin: clamp(28px, 4vw, 44px) 0 0; padding: 0 0 0 22px; border-left: 3px solid var(--blue);
  max-width: 62ch;
}
.quote p { font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.35; color: var(--ink-strong); }

@media (min-width: 860px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Bandeau « Me tenir informé » ---------- */

.alerts { background: var(--blue); color: var(--ink-on-blue); }
.alerts__inner { display: grid; gap: 28px; align-items: start; }
.alerts h2 { color: var(--ink-on-blue); font-size: clamp(2rem, 3.4vw, 2.75rem); }
.alerts__intro { margin-top: 12px; max-width: 46ch; font-size: 1.125rem; }
.alerts-form { display: grid; gap: 16px; }
.alerts-form .chips { color: var(--ink-on-blue); }
.alerts-form .chip input:checked + span { background: var(--ink-on-blue); color: #fff; border-color: var(--ink-on-blue); }
.alerts-form .chip:hover span { background: rgba(255, 255, 255, .3); }
.alerts-form .chip input:focus-visible + span { outline-color: var(--ink-on-blue); }
.alerts-form__row { display: grid; gap: 10px; }
.alerts-form .input, .alerts-form .select { border-color: transparent; }
.alerts-form .btn { --btn-bg: var(--ink-on-blue); }
.alerts-form .btn:hover { --btn-bg: #000; }
.alerts-form .field__error { color: #5a0d06; }
.alerts .notice--success { background: rgba(255, 255, 255, .85); }
.alerts-form .form-note { color: var(--ink-on-blue); }
.alerts-form .form-note a { color: var(--ink-on-blue); }

@media (min-width: 640px) { .alerts-form__row { grid-template-columns: 1fr auto auto; } }
@media (min-width: 980px) { .alerts__inner { grid-template-columns: 1fr 1.15fr; gap: 56px; } }

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

.site-footer { background: var(--stone); border-top: 1px solid var(--line); color: var(--ink-logo); }
.site-footer__main { display: grid; gap: 32px; padding-block: 48px 40px; }
.footer-brand { display: grid; gap: 14px; font-size: 1.05rem; }
.footer-brand__name { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; color: var(--ink-logo); text-decoration: none; font-size: 1.5rem; font-weight: 700; }
.footer-brand__name img { width: 72px; height: 72px; border-radius: 4px; }
.footer-brand a:not(.footer-brand__name), .footer-brand p { display: inline-flex; align-items: center; gap: 12px; margin: 0; color: var(--ink-logo); text-decoration: none; }
.footer-brand a:not(.footer-brand__name):hover { color: var(--blue-deep); text-decoration: underline; }
.footer-brand .icon { color: var(--blue-deep); }
.footer-nav { display: grid; gap: 4px; align-content: start; }
.footer-nav h2 { font-family: var(--font-sans); font-size: .95rem; font-weight: 700; color: var(--ink-strong); margin-bottom: 6px; }
.footer-nav a { color: var(--ink-logo); text-decoration: none; padding: 3px 0; width: fit-content; }
.footer-nav a:hover { color: var(--blue-deep); text-decoration: underline; }

.site-footer__legal { border-top: 1px solid var(--line); padding-block: 18px 28px; font-size: .8125rem; line-height: 1.55; color: #5b584c; }
.site-footer__legal p { margin: 0 0 4px; }
.site-footer__legal a { color: inherit; }
.site-footer__legal a:hover { color: var(--blue-deep); }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px !important; }
.legal-links a, .legal-links span { display: inline-flex; align-items: center; gap: 6px; }
.legal-links .icon { width: 15px; height: 15px; }

@media (min-width: 760px) {
  .site-footer__main { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ---------- Pages intérieures ---------- */

.page-head { padding-block: clamp(32px, 5vw, 56px) clamp(20px, 3vw, 28px); }
.page-head h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
.page-head__lead { max-width: 62ch; margin-top: 12px; font-size: 1.125rem; }
.page-head__count { margin-top: 8px; color: var(--ink-logo); font-weight: 500; }

.breadcrumb { margin-bottom: 14px; font-size: .92rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--ink-logo); }
.breadcrumb a { color: var(--ink-logo); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue-deep); text-decoration: underline; }

/* Filtres de la liste */
.filters {
  display: grid; gap: 14px; padding: 18px; margin-bottom: 28px;
  background: var(--paper); border-radius: var(--radius-m); box-shadow: var(--shadow-card);
}
.filters__fields { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.filters__fields .field--wide { grid-column: 1 / -1; }
.filters__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; justify-content: space-between; }
.filters__reset { font-weight: 600; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.results-bar p { margin: 0; font-weight: 600; color: var(--ink-strong); }
.results-bar .select { width: auto; min-height: 42px; padding-block: 8px; }

@media (min-width: 980px) {
  .filters { grid-template-columns: 1fr auto; align-items: end; }
  .filters__fields { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .filters__fields .field--wide { grid-column: auto; }
}

.empty {
  display: grid; justify-items: start; gap: 14px; padding: clamp(28px, 5vw, 48px);
  background: var(--paper); border-radius: var(--radius-m);
}
.empty h2 { font-size: 1.75rem; }
.empty__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px;
  border-radius: 999px; background: var(--paper); color: var(--ink-strong); font-weight: 600; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.pagination a:hover { background: var(--ink-strong); color: #fff; }
.pagination [aria-current="page"] { background: var(--blue-deep); color: #fff; }

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

.preview-bar { background: var(--ochre); color: #fff; font-weight: 600; padding: 10px 0; }
.preview-bar a { color: #fff; }

.property-head { padding-block: clamp(24px, 4vw, 40px) 20px; }
.property-head__top { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 10px; }
.property-head h1 { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 26ch; }
.property-head__place { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 1.125rem; color: var(--ink-logo); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--stone-soft); color: var(--ink-strong); font-size: .9rem; font-weight: 600; }

.gallery { display: grid; gap: 10px; }
.gallery__stage {
  position: relative; overflow: hidden; border-radius: var(--radius-l); background: #2a2925;
  aspect-ratio: 3 / 2; max-height: 72vh; width: 100%;
}
.gallery__slides { display: flex; height: 100%; transition: transform .45s var(--ease); }
.gallery__slide { flex: 0 0 100%; height: 100%; margin: 0; }
.gallery__slide button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink-strong); border: 0; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2); transition: background-color .15s, transform .15s;
}
.gallery__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.gallery__arrow--prev { left: 14px; }
.gallery__arrow--next { right: 14px; }
.gallery__count {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(22, 24, 28, .66); color: #fff; font-size: .9rem; font-weight: 600; border: 0; cursor: pointer;
}
.gallery__count:hover { background: rgba(22, 24, 28, .85); }
.gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gallery__thumb {
  flex: 0 0 auto; width: 96px; aspect-ratio: 3 / 2; padding: 0; border: 2px solid transparent; border-radius: var(--radius-s);
  overflow: hidden; background: var(--stone-soft); cursor: pointer; opacity: .72; transition: opacity .15s, border-color .15s;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb[aria-current="true"] { opacity: 1; border-color: var(--blue-deep); }
.gallery--empty .gallery__stage { display: grid; place-items: center; color: #fff; }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14, 15, 17, .96); color: #fff; }
.lightbox::backdrop { background: rgba(14, 15, 17, .96); }
.lightbox__figure { position: absolute; inset: 64px 72px; margin: 0; display: grid; place-items: center; }
.lightbox__figure img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox__close, .lightbox__arrow {
  position: absolute; display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; transition: background-color .15s;
}
.lightbox__close:hover, .lightbox__arrow:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__arrow { top: 50%; transform: translateY(-50%); }
.lightbox__arrow--prev { left: 12px; }
.lightbox__arrow--next { right: 12px; }
.lightbox__count { position: absolute; top: 24px; left: 24px; font-weight: 600; }
@media (max-width: 640px) {
  .lightbox__figure { inset: 64px 8px 80px; }
  .lightbox__arrow { top: auto; bottom: 14px; transform: none; }
  .lightbox__arrow--prev { left: calc(50% - 64px); }
  .lightbox__arrow--next { right: calc(50% - 64px); }
}

.property-layout { display: grid; gap: clamp(28px, 4vw, 48px); padding-block: 28px clamp(56px, 8vw, 96px); }
.property-main { display: grid; gap: clamp(32px, 4vw, 44px); min-width: 0; }
.property-aside { min-width: 0; }

.summary {
  display: grid; gap: 16px; padding: 24px; background: var(--paper);
  border-radius: var(--radius-l); box-shadow: var(--shadow-card);
}
.summary__price { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.4rem); font-weight: 600; color: var(--ink-strong); line-height: 1.1; }
.summary__sub { margin-top: 4px; color: var(--ink-logo); font-size: .95rem; }
.summary__actions { display: grid; gap: 10px; }
.summary__share { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .95rem; }
.summary__share a, .summary__share button {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 0;
  background: none; border: 0; color: var(--blue-deep); font: 600 .95rem var(--font-sans); cursor: pointer; text-decoration: none;
}
.summary__share a:hover, .summary__share button:hover { color: var(--blue-deeper); text-decoration: underline; }
.summary__ref { font-size: .875rem; color: var(--ink-logo); margin: 0; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.facts li { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--paper); border-radius: var(--radius-m); }
.facts .icon { width: 26px; height: 26px; color: var(--blue-deep); }
.facts strong { display: block; color: var(--ink-strong); font-size: 1.05rem; line-height: 1.2; }
.facts span { display: block; font-size: .85rem; color: var(--ink-logo); }

.block h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: 16px; }
.prose { max-width: 70ch; font-size: 1.0625rem; }
.prose p { margin-bottom: 1em; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-l); overflow: hidden; background: #1c1c1a; }
.video video, .video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video__facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #1c1c1a; }
.video__facade img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s; }
.video__facade:hover img { opacity: .95; }
.video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: var(--ink-strong); font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}
.video__play .icon { color: var(--blue-deep); fill: var(--blue-deep); }
.video-note { margin-top: 8px; font-size: .875rem; color: var(--ink-logo); }

.specs { display: grid; gap: 0; margin: 0; background: var(--paper); border-radius: var(--radius-m); overflow: hidden; }
.specs div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.specs div:last-child { border-bottom: 0; }
.specs dt { display: flex; align-items: center; gap: 10px; color: var(--ink-logo); font-weight: 500; }
.specs dt .icon { width: 19px; height: 19px; color: var(--blue-deep); }
.specs dd { margin: 0; color: var(--ink-strong); font-weight: 600; }

.peb { display: grid; gap: 14px; padding: 20px; background: var(--paper); border-radius: var(--radius-m); }
.peb__scale { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; margin: 0; padding: 0; list-style: none; }
.peb__scale li {
  position: relative; display: grid; place-items: center; height: 38px;
  color: #fff; font-weight: 700; font-size: .85rem; opacity: .38;
}
.peb__scale li:first-child { border-radius: 8px 0 0 8px; }
.peb__scale li:last-child { border-radius: 0 8px 8px 0; }
.peb__scale li.is-current { opacity: 1; transform: scaleY(1.22); border-radius: 6px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); z-index: 1; }
.peb__values { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0; }
.peb__values div { display: flex; gap: 6px; }
.peb__values dt { color: var(--ink-logo); }
.peb__values dd { margin: 0; font-weight: 600; color: var(--ink-strong); }
.peb-a\+\+ { background: #15803d; } .peb-a\+ { background: #2c9a45; } .peb-a { background: #58ad3f; }
.peb-b { background: #94bf38; } .peb-c { background: #c9c21b; color: #2b2a1e !important; } .peb-d { background: #eab308; color: #2b2a1e !important; }
.peb-e { background: #ea8a1a; } .peb-f { background: #df5b26; } .peb-g { background: #c9302c; }

.contact-card {
  padding: clamp(24px, 4vw, 40px);
  background: var(--paper); border-radius: var(--radius-l); box-shadow: var(--shadow-card);
}
.contact-card h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.contact-card__intro { margin: 8px 0 24px; color: var(--ink-logo); }
.contact-card .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 6px; }
.contact-card .form-actions .btn { min-width: 220px; }

@media (min-width: 1040px) {
  .property-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .property-aside { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* ---------- Services, estimation, contact ---------- */

.offer { display: grid; gap: clamp(20px, 3vw, 36px); padding-block: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); }
.offer:first-of-type { border-top: 0; }
.offer__head { display: flex; align-items: center; gap: 16px; }
.offer__head h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); }
.offer__lead { font-size: 1.2rem; color: var(--ink-strong); max-width: 50ch; }
.ticks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .icon { margin-top: 3px; color: var(--blue-deep); }
.offer__note { padding: 18px 20px; background: var(--paper); border-radius: var(--radius-m); color: var(--ink-strong); }
.offer__note .icon { display: inline-block; vertical-align: -4px; margin-right: 8px; color: var(--blue-deep); }
@media (min-width: 900px) { .offer { grid-template-columns: 1fr 1.1fr; } }

.split { display: grid; gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(56px, 8vw, 96px); }
@media (min-width: 980px) { .split { grid-template-columns: .85fr 1.15fr; align-items: start; } }

.coords { display: grid; gap: 18px; }
.coords a, .coords p { display: flex; gap: 14px; align-items: flex-start; margin: 0; color: var(--ink-strong); text-decoration: none; font-size: 1.1rem; }
.coords a:hover { color: var(--blue-deep); text-decoration: underline; }
.coords .icon { margin-top: 3px; width: 24px; height: 24px; color: var(--blue-deep); }
.coords small { display: block; color: var(--ink-logo); font-size: .9rem; }

.legal-page .prose h2 { font-family: var(--font-sans); font-size: 1.25rem; font-weight: 700; margin: 1.8em 0 .5em; }
.legal-page .prose ul { padding-left: 1.2em; }

/* ---------- Divers ---------- */

.error-page { padding-block: clamp(56px, 10vw, 120px); }
.error-page h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 14px; }
.error-page p { font-size: 1.15rem; max-width: 52ch; }
.error-page .empty__actions { margin-top: 24px; }

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

@media print {
  .site-header, .site-footer, .gallery__arrow, .gallery__thumbs, .contact-card, .summary__actions, .summary__share, .alerts { display: none !important; }
  body { background: #fff; }
}

/* ---------- Barre d'administration (visible seulement quand l'admin est connectée) ---------- */

.admin-bar { background: var(--ink-strong); color: #f4f2ea; font-size: .9rem; }
.admin-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-height: 44px; padding-block: 6px; }
.admin-bar__who { display: inline-flex; align-items: center; gap: 6px; color: #cfcab6; font-weight: 500; }
.admin-bar__links { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.admin-bar a, .admin-bar button {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 0; border-radius: 999px;
  background: transparent; color: #f4f2ea; font: 600 .9rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
}
.admin-bar a:hover, .admin-bar button:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.admin-bar .admin-bar__main { background: var(--blue); color: var(--ink-on-blue); }
.admin-bar .admin-bar__main:hover { background: #fff; color: var(--blue-deeper); }
.admin-bar .icon { width: 1.05em; height: 1.05em; }
.admin-bar__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--blue); color: var(--ink-on-blue); font-size: .75rem; }
.admin-bar__logout { margin: 0; }
@media (max-width: 719px) {
  .admin-bar__who, .admin-bar__logout span { display: none; }
  .admin-bar__links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .admin-bar__links a { white-space: nowrap; }
}
