/* ==========================================================================
   Deluxe Immo — feuille de style
   Noir, blanc, or. Forme signature : le pignon (coins supérieurs coupés).
   ========================================================================== */

@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold.woff") format("woff"); font-weight: 600 700; font-display: swap; }

:root {
  --onyx: #15130F;          /* noir principal (chaud, s'accorde avec l'or) */
  --onyx-2: #221F1A;        /* noir des surfaces secondaires */
  --gold: #B08D4A;          /* or : icônes, filets, grands textes sur blanc */
  --gold-text: #8B6B2E;     /* or lisible pour petits textes sur blanc */
  --gold-light: #D4B26E;    /* or sur fond noir */
  --white: #FFFFFF;
  --paper: #F4F4F2;         /* fond de section clair, neutre */
  --line: #E2E1DC;
  --line-dark: rgba(255,255,255,.14);
  --ink: #1B1914;           /* texte principal */
  --muted: #66625A;         /* texte secondaire */
  --success: #2E7D57;
  --danger: #B3362D;
  --wa: #1FA855;

  --display: "Inter Display", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gable: 22px;            /* taille de la coupe des coins (pignon) */
  --radius: 2px;
  --shadow: 0 1px 2px rgba(21,19,15,.06), 0 12px 32px -14px rgba(21,19,15,.28);
  --container: 1240px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--body); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 1.2em; height: 1.2em; flex: none; display: inline-block; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--gold-light); color: var(--onyx); padding: .6rem 1rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.75rem; }
.muted { color: var(--muted); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Forme signature : pignon */
.gable { clip-path: polygon(var(--gable) 0, calc(100% - var(--gable)) 0, 100% var(--gable), 100% 100%, 0 100%, 0 var(--gable)); }

/* --------------------------------------------------------------------------
   Boutons et liens
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.5rem; border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 500; font-size: .95rem; letter-spacing: .01em; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn .ic { width: 18px; height: 18px; }
.btn-gold { background: var(--gold-light); color: var(--onyx); }
.btn-gold:hover { background: #E2C68C; }
.btn-dark { background: var(--onyx); color: var(--white); }
.btn-dark:hover { background: #2E2A23; }
.btn-outline { border-color: var(--onyx); color: var(--onyx); background: transparent; }
.btn-outline:hover { background: var(--onyx); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: #188E47; }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(179,54,45,.35); }
.btn-danger:hover { background: var(--danger); color: var(--white); }
.btn-light { background: var(--paper); color: var(--onyx); border-color: var(--line); }
.btn-light:hover { border-color: var(--onyx); }
.btn-link { background: none; text-decoration: underline; text-underline-offset: 3px; min-height: 0; padding: .5rem; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: .4rem .8rem; font-size: .84rem; }
.link-arrow { font-weight: 500; text-decoration: none; padding-bottom: .2rem; border-bottom: 1px solid var(--gold); white-space: nowrap; }
.link-arrow:hover { color: var(--gold-text); }

/* --------------------------------------------------------------------------
   En-tête
   -------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); transition: background-color .3s, border-color .3s; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 84px; }
.logo { display: inline-flex; flex: none; }
.logo img { height: 46px; width: auto; }
.logo .logo-light { display: none; }
.main-nav { display: flex; align-items: center; gap: .2rem; margin-left: auto; }
.main-nav a { position: relative; padding: .5rem .8rem; text-decoration: none; font-size: .95rem; font-weight: 500; }
.main-nav a::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .15rem; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-phone { display: none !important; }
.header-cta { white-space: nowrap; min-height: 44px; }
.nav-toggle { display: none; margin-left: auto; padding: .5rem; background: none; border: 0; color: inherit; cursor: pointer; }
.nav-toggle .ic { width: 28px; height: 28px; }

/* Accueil : en-tête transparent sur la grande image */
.page-home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; color: var(--white); backdrop-filter: none; }
.page-home .site-header .logo-dark { display: none; }
.page-home .site-header .logo-light { display: block; }
.page-home .site-header.is-solid { background: rgba(21,19,15,.95); backdrop-filter: blur(10px); }

/* --------------------------------------------------------------------------
   Hero (accueil)
   -------------------------------------------------------------------------- */
.hero { position: relative; min-height: min(100vh, 900px); display: flex; align-items: flex-end; color: var(--white); background: var(--onyx); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,19,15,.94) 0%, rgba(21,19,15,.78) 45%, rgba(21,19,15,.3) 100%), linear-gradient(0deg, rgba(21,19,15,.85) 0%, transparent 45%); }
.hero-inner { position: relative; padding-top: 150px; padding-bottom: 3.5rem; width: 100%; }
.hero-text { max-width: 680px; }
.hero-title { font-family: var(--display); font-weight: 300; font-size: clamp(2.75rem, 6.4vw, 5.6rem); line-height: 1.02; letter-spacing: -.03em; }
.hero-lead { color: rgba(255,255,255,.78); font-size: 1.1rem; max-width: 52ch; margin: 1.6rem 0 2.2rem; }
.hero-actions { display: flex; gap: 0; border-top: 1px solid var(--line-dark); margin-bottom: 2.4rem; max-width: 560px; }
.hero-actions a { flex: 1; display: flex; flex-direction: column; gap: .1rem; padding: 1rem 1.2rem 0 0; text-decoration: none; position: relative; }
.hero-actions a::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: var(--gold-light); transition: width .4s var(--ease); }
.hero-actions a:hover::before, .hero-actions a:focus-visible::before { width: calc(100% - 1.2rem); }
.hero-actions span { font-family: var(--display); font-size: 1.5rem; font-weight: 400; }
.hero-actions small { color: rgba(255,255,255,.6); font-size: .85rem; }
.hero-actions a:hover span { color: var(--gold-light); }

@media (prefers-reduced-motion: no-preference) {
  .hero-bg { animation: heroZoom 2.4s var(--ease) both; }
  .hero-title, .hero-lead, .hero-actions, .hero-search { animation: rise .9s var(--ease) both; }
  .hero-lead { animation-delay: .12s; }
  .hero-actions { animation-delay: .22s; }
  .hero-search { animation-delay: .34s; }
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Recherche
   -------------------------------------------------------------------------- */
.search { display: flex; flex-direction: column; gap: 1rem; }
.search-mode { display: inline-flex; gap: .25rem; border: 0; margin: 0; padding: 0; }
.search-mode input { position: absolute; opacity: 0; pointer-events: none; }
.search-mode label { position: relative; cursor: pointer; }
.search-mode span { display: block; padding: .45rem 1.1rem; font-size: .9rem; font-weight: 500; border: 1px solid var(--line); color: var(--muted); transition: background-color .2s, color .2s, border-color .2s; }
.search-mode input:checked + span { background: var(--onyx); border-color: var(--onyx); color: var(--white); }
.search-mode input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.search-fields { display: grid; gap: .9rem; align-items: end; }
.search-hero { background: var(--white); color: var(--ink); padding: 1.4rem 1.6rem 1.6rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.search-hero .search-fields { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
.search-bar .search-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.search-bar .field-q { grid-column: span 2; }
.search-bar .search-submit { grid-column: span 2; }
.search-submit { min-height: 52px; padding-inline: 1.8rem; }

/* Champs */
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.field-label { font-size: .8rem; font-weight: 500; color: var(--muted); }
.field-label small { font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field select, .sort select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2366625A' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.2rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,74,.18); }
.form { display: flex; flex-direction: column; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; }
.field-full { grid-column: 1 / -1; }
.field-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: .7rem; }
.form-note { font-size: .86rem; color: var(--muted); margin: 0; }
.form-subtitle { font-family: var(--display); font-size: 1.35rem; margin-top: .6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.seg { display: flex; gap: .4rem; }
.seg label { position: relative; flex: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; min-height: 50px; padding: 0 .8rem; text-align: center; border: 1px solid var(--line); font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.seg input:checked + span { background: var(--onyx); color: var(--white); border-color: var(--onyx); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Messages */
.flash-wrap { padding-top: 1.2rem; }
.flash { padding: .85rem 1.1rem; margin: 0 0 .6rem; border-left: 3px solid; font-weight: 500; }
.flash-success { background: #EAF4EE; color: var(--success); border-color: var(--success); }
.flash-error { background: #FBECEA; color: var(--danger); border-color: var(--danger); }
.flash-info { background: var(--paper); color: var(--ink); border-color: var(--gold); }
.page-home .flash-wrap { position: absolute; top: 96px; left: 0; right: 0; z-index: 5; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 6rem 0; }
.section-tight { padding-top: 0; }
.section-tight-top { padding-top: 5rem; }
.section-soft { background: var(--paper); }
.section-dark { background: var(--onyx); color: var(--white); }
.section-head { margin-bottom: 2.8rem; max-width: 640px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; max-width: none; }
.section-title { font-family: var(--display); font-weight: 300; font-size: clamp(2rem, 3.8vw, 3.1rem); letter-spacing: -.02em; }
.section-title-sm { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 1.4rem; }
.section-intro { color: var(--muted); font-size: 1.05rem; margin: .8rem 0 0; }
.section-dark .section-intro { color: rgba(255,255,255,.65); }

/* Cartes de biens */
.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem 1.8rem; }
.card { position: relative; display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); clip-path: polygon(var(--gable) 0, calc(100% - var(--gable)) 0, 100% var(--gable), 100% 100%, 0 100%, 0 var(--gable)); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-noimg { display: grid; place-items: center; height: 100%; color: var(--gold); }
.card-noimg .ic { width: 56px; height: 56px; }
.card-count { position: absolute; right: .8rem; bottom: .8rem; display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; background: rgba(21,19,15,.75); color: var(--white); font-size: .8rem; }
.card-count .ic { width: 15px; height: 15px; }
.card-body { padding-top: 1.1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card-type { margin: 0; font-size: .82rem; font-weight: 500; color: var(--gold-text); }
.card-title { font-family: var(--display); font-weight: 400; font-size: 1.3rem; line-height: 1.25; letter-spacing: -.01em; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-loc { display: flex; align-items: center; gap: .35rem; margin: 0; color: var(--muted); font-size: .9rem; }
.card-loc .ic { width: 15px; height: 15px; color: var(--gold); }
.card-price { margin: .5rem 0 0; font-family: var(--display); font-size: 1.45rem; font-weight: 400; }
.card-specs { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.card-specs:empty { display: none; }
.card-specs li { display: inline-flex; align-items: center; gap: .35rem; }
.card-specs .ic { width: 16px; height: 16px; color: var(--onyx); }
.section-dark .card-specs { border-color: var(--line-dark); }

.tag { position: absolute; top: .9rem; left: calc(var(--gable) + .3rem); padding: .3rem .7rem; font-size: .76rem; font-weight: 600; letter-spacing: .02em; }
.tag-vente { background: var(--onyx); color: var(--white); }
.tag-location { background: var(--gold-light); color: var(--onyx); }
.tag-done { left: auto; right: calc(var(--gable) + .3rem); background: var(--danger); color: var(--white); }
.tag-type { background: var(--paper); color: var(--onyx); border: 1px solid var(--line); }

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] > .reveal-pending { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  [data-reveal] > .reveal-pending.is-visible { opacity: 1; transform: none; }
}

/* Catégories */
.types { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.type-tile { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: 2rem 1.4rem 1.6rem; text-decoration: none; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); transition: background-color .3s; }
.type-tile .ic { width: 38px; height: 38px; color: var(--gold-light); margin-bottom: 1.6rem; }
.type-name { font-family: var(--display); font-size: 1.3rem; }
.type-count { font-size: .85rem; color: rgba(255,255,255,.55); }
.type-tile:hover { background: var(--onyx-2); }
.type-tile:hover .type-name { color: var(--gold-light); }
.types-light { border-color: var(--line); }
.types-light .type-tile { border-color: var(--line); }
.types-light .type-count { color: var(--muted); }
.types-light .type-tile .ic { color: var(--gold); }
.types-light .type-tile:hover { background: var(--paper); }

/* Bloc services */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5.5rem; align-items: center; }
.split-reverse { grid-template-columns: 1.1fr .9fr; }
.split-media { max-width: 460px; }
.split-reverse .split-media { justify-self: end; }
.frame { position: relative; isolation: isolate; }
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; clip-path: polygon(var(--gable) 0, calc(100% - var(--gable)) 0, 100% var(--gable), 100% 100%, 0 100%, 0 var(--gable)); }
.frame::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); z-index: -1; }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.2rem; margin: 2.4rem 0 2.6rem; }
.services li { display: flex; gap: 1rem; }
.services .ic { width: 24px; height: 24px; color: var(--gold); margin-top: .15rem; }
.services h3 { font-size: 1rem; font-weight: 600; margin-bottom: .3rem; }
.services p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Bandeau vendre */
.sell-band { background: var(--onyx); color: var(--white); padding: 4.5rem 0; position: relative; }
.sell-band::before { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(212,178,110,.35); pointer-events: none; clip-path: none; }
.sell-inner { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; }
.sell-title { font-family: var(--display); font-weight: 300; font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.02em; margin-bottom: .7rem; }
.sell-band p { color: rgba(255,255,255,.72); margin: 0; max-width: 60ch; }
.sell-actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* Villes */
.cities { display: flex; flex-wrap: wrap; gap: .6rem; }
.cities a { display: inline-block; padding: .6rem 1.3rem; border: 1px solid var(--line); text-decoration: none; font-weight: 500; transition: border-color .2s, color .2s; }
.cities a:hover { border-color: var(--gold); color: var(--gold-text); }

/* --------------------------------------------------------------------------
   Pages intérieures
   -------------------------------------------------------------------------- */
.page-hero { background: var(--onyx); color: var(--white); padding: 4rem 0 6.5rem; }
.page-title { font-family: var(--display); font-weight: 300; font-size: clamp(2.3rem, 5vw, 3.8rem); letter-spacing: -.025em; }
.page-sub { color: rgba(255,255,255,.7); font-size: 1.05rem; margin: .8rem 0 0; max-width: 62ch; }
.tabs-mode { display: inline-flex; gap: 1.6rem; margin-bottom: 1.6rem; }
.tabs-mode a { text-decoration: none; color: rgba(255,255,255,.6); padding-bottom: .35rem; border-bottom: 1px solid transparent; font-weight: 500; }
.tabs-mode a:hover { color: var(--white); }
.tabs-mode a[aria-current] { color: var(--gold-light); border-color: var(--gold-light); }
.search-panel { background: var(--white); padding: 1.6rem; margin-top: -4rem; position: relative; box-shadow: var(--shadow); border-top: 2px solid var(--gold-light); margin-bottom: 2rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1rem; border: 1px solid var(--line); text-decoration: none; font-size: .9rem; font-weight: 500; transition: border-color .2s, background-color .2s, color .2s; }
.chip .ic { width: 18px; height: 18px; color: var(--gold); }
.chip:hover { border-color: var(--onyx); }
.chip.is-active { background: var(--onyx); border-color: var(--onyx); color: var(--white); }
.chip.is-active .ic { color: var(--gold-light); }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.result-count { margin: 0; color: var(--muted); }
.result-count strong { color: var(--ink); font-family: var(--display); font-size: 1.3rem; font-weight: 400; }
.sort { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--muted); }
.sort select { min-height: 42px; padding: .5rem 2.2rem .5rem .8rem; border: 1px solid var(--line); background-color: var(--white); background-repeat: no-repeat; background-position: right .8rem center; color: var(--ink); }

.pagination { display: flex; justify-content: center; gap: .4rem; flex-wrap: wrap; margin-top: 3.5rem; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 .6rem; border: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.pagination a:hover { border-color: var(--onyx); }
.pagination [aria-current] { background: var(--onyx); color: var(--white); border-color: var(--onyx); }
.pagination .dots { border: 0; }

.empty-state { text-align: center; padding: 4rem 1.5rem; max-width: 580px; margin: 0 auto; }
.empty-state > .ic { width: 44px; height: 44px; color: var(--gold); margin-bottom: 1rem; }
.empty-state h2, .empty-state h3 { font-family: var(--display); font-weight: 300; font-size: 2rem; margin-bottom: .7rem; }
.empty-state p { color: var(--muted); }
.empty-actions { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.empty-actions-left { justify-content: flex-start; }

/* --------------------------------------------------------------------------
   Fiche d'un bien
   -------------------------------------------------------------------------- */
.detail-top { padding-top: 1.8rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .86rem; color: var(--muted); margin-bottom: 1.6rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-text); }
.breadcrumb [aria-current] { color: var(--ink); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.detail-tags { display: flex; gap: .5rem; margin-bottom: 1rem; }
.detail-tags .tag { position: static; }
.detail-title { font-family: var(--display); font-weight: 300; font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.025em; max-width: 22ch; }
.detail-loc { display: flex; align-items: center; gap: .4rem; color: var(--muted); margin: .7rem 0 0; }
.detail-loc .ic { color: var(--gold); }
.detail-price-wrap { text-align: right; }
.detail-price { font-family: var(--display); font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 300; margin: 0; white-space: nowrap; }
.detail-ref { color: var(--muted); font-size: .86rem; margin: .2rem 0 0; }

.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: .6rem; height: min(580px, 60vw); }
.gallery button { all: unset; position: relative; display: block; overflow: hidden; cursor: zoom-in; background: var(--paper); }
.gallery button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.gallery-main { clip-path: polygon(var(--gable) 0, 100% 0, 100% 100%, 0 100%, 0 var(--gable)); }
.gallery-side { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: .6rem; }
.gallery-side button:first-child:nth-last-child(1) { grid-column: 1 / -1; grid-row: span 2; }
.gallery-side button:nth-child(2) { clip-path: polygon(0 0, calc(100% - var(--gable)) 0, 100% var(--gable), 100% 100%, 0 100%); }
.gallery-single { grid-template-columns: 1fr; }
.gallery-single .gallery-main { clip-path: polygon(var(--gable) 0, calc(100% - var(--gable)) 0, 100% var(--gable), 100% 100%, 0 100%, 0 var(--gable)); }
.gallery-all { position: absolute; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; background: var(--white); color: var(--onyx); font-weight: 500; font-size: .86rem; }
.gallery-all .ic { width: 17px; height: 17px; }
.gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(21,19,15,.6); color: var(--white); font-family: var(--display); font-size: 1.6rem; }
.gallery-empty { height: 280px; display: grid; place-items: center; align-content: center; gap: .6rem; background: var(--paper); color: var(--muted); }
.gallery-empty .ic { width: 42px; height: 42px; color: var(--gold); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 4rem; padding-top: 2.8rem; padding-bottom: 5.5rem; align-items: start; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); border-top: 1px solid var(--onyx); border-bottom: 1px solid var(--line); }
.facts li { display: flex; flex-direction: column; gap: .15rem; padding: 1.3rem 1.2rem 1.3rem 0; }
.facts .ic { width: 24px; height: 24px; color: var(--gold); margin-bottom: .4rem; }
.facts span { font-family: var(--display); font-size: 1.35rem; }
.facts small { color: var(--muted); font-size: .82rem; }
.detail-block { margin-top: 3rem; }
.detail-block h2 { font-family: var(--display); font-weight: 300; font-size: 1.9rem; letter-spacing: -.015em; margin-bottom: 1.1rem; }
.prose { max-width: 70ch; }
.prose p { color: #34312A; line-height: 1.8; }
.prose-lg p { font-size: 1.06rem; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.6rem; }
.features li { display: flex; align-items: center; gap: .6rem; }
.features .ic { width: 18px; height: 18px; color: var(--gold); }
.map { aspect-ratio: 16 / 8; background: var(--paper); overflow: hidden; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.35); }

.detail-aside { position: sticky; top: 110px; }
.contact-card { display: flex; flex-direction: column; gap: .7rem; padding: 1.8rem; background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--gold-light); box-shadow: var(--shadow); }
.contact-card-price { font-family: var(--display); font-size: 2rem; font-weight: 300; margin: 0 0 .4rem; }
.contact-card-title { display: flex; align-items: center; gap: .5rem; font-family: var(--display); font-size: 1.4rem; margin-top: .8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.contact-card-title .ic { color: var(--gold); }
.contact-card .flash { margin: 0; }
.contact-card .field input, .contact-card .field select, .contact-card .field textarea { min-height: 46px; }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 4rem 5rem; background: rgba(12,11,9,.96); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .8rem; max-height: 100%; }
.lightbox img { max-height: calc(100vh - 9rem); max-width: 100%; object-fit: contain; }
.lightbox figcaption { color: rgba(255,255,255,.7); font-size: .9rem; }
.lb-close, .lb-nav { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: var(--white); cursor: pointer; transition: border-color .2s, color .2s; }
.lb-close:hover, .lb-nav:hover { border-color: var(--gold-light); color: var(--gold-light); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
@media (prefers-reduced-motion: no-preference) {
  .lightbox:not([hidden]) { animation: fade .25s ease both; }
  .lightbox img { animation: zoomIn .35s var(--ease) both; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.97); } }

/* --------------------------------------------------------------------------
   Vendre, À propos, Contact
   -------------------------------------------------------------------------- */
.panel-raised { position: relative; background: var(--white); padding: 2.2rem; margin-top: -4rem; box-shadow: var(--shadow); border-top: 2px solid var(--gold-light); }
.sell-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.sell-aside { padding-top: 1.4rem; }
.timeline { display: flex; flex-direction: column; gap: 1.5rem; }
.timeline li { position: relative; display: flex; gap: 1rem; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: -1.5rem; width: 1px; background: var(--line); }
.step-n { flex: none; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--gold); color: var(--gold-text); font-family: var(--display); font-size: 1.05rem; background: var(--white); }
.timeline h3 { font-size: 1rem; font-weight: 600; margin: .4rem 0 .25rem; }
.timeline p { color: var(--muted); font-size: .94rem; margin: 0; }
.aside-contact { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 2.2rem; padding: 1.4rem; background: var(--paper); }
.aside-contact p { width: 100%; margin: 0 0 .2rem; font-weight: 600; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-grid li { background: var(--white); padding: 2rem; }
.service-grid .ic { width: 30px; height: 30px; color: var(--gold); margin-bottom: 1.2rem; }
.service-grid h3 { font-family: var(--display); font-size: 1.4rem; margin-bottom: .5rem; }
.service-grid p { color: var(--muted); margin: 0; }
.commitments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.commitments li { padding-top: 1.2rem; border-top: 1px solid var(--onyx); }
.commitments h3 { font-family: var(--display); font-size: 1.45rem; margin-bottom: .5rem; }
.commitments p { color: var(--muted); margin: 0; }

.contact-grid { display: grid; grid-template-columns: 370px minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; margin-top: 2.2rem; border-top: 1px solid var(--onyx); }
.contact-line { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
a.contact-line:hover strong { color: var(--gold-text); }
.contact-line > .ic { width: 42px; height: 42px; padding: 11px; border: 1px solid var(--line); color: var(--gold); flex: none; }
.contact-line span { display: flex; flex-direction: column; min-width: 0; }
.contact-line small { color: var(--muted); font-size: .8rem; }
.contact-line strong { font-weight: 500; overflow-wrap: anywhere; transition: color .2s; }
.contact-line-wa > .ic { background: var(--wa); border-color: var(--wa); color: var(--white); }
.map-section { height: 440px; background: var(--paper); }
.map-section iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.35); }

.error-page { padding: 7rem 0; text-align: center; }
.error-code { font-family: var(--display); font-weight: 300; font-size: 6rem; line-height: 1; color: var(--gold); margin-bottom: .5rem; }
.error-page .page-title { margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   Pied de page
   -------------------------------------------------------------------------- */
.site-footer { background: var(--onyx); color: rgba(255,255,255,.7); border-top: 1px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 3rem; padding-top: 4.5rem; padding-bottom: 3rem; }
.footer-logo img { height: 50px; width: auto; }
.footer-brand p { margin-top: 1.4rem; font-size: .94rem; max-width: 36ch; }
.footer-title { font-family: var(--display); color: var(--white); font-size: 1.15rem; margin-bottom: 1.1rem; }
.footer-links li, .footer-contact li { margin-bottom: .6rem; font-size: .94rem; }
.footer-links a, .footer-contact a { text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-light); }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .ic { width: 17px; height: 17px; margin-top: .25rem; color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.4rem; padding-bottom: 1.6rem; border-top: 1px solid var(--line-dark); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.45); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-light); }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-dark); color: var(--gold-light); transition: background-color .2s, color .2s, border-color .2s; }
.socials a:hover { background: var(--gold-light); color: var(--onyx); border-color: var(--gold-light); }
.socials .ic { width: 18px; height: 18px; }
.socials-light { margin-top: .5rem; }
.socials-light a { border-color: var(--line); color: var(--onyx); }
.socials-light a:hover { background: var(--onyx); color: var(--white); border-color: var(--onyx); }

/* WhatsApp flottant */
.wa-float { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 60; display: inline-flex; align-items: center; gap: .6rem; padding: .85rem; border-radius: 999px; background: var(--wa); color: var(--white); text-decoration: none; font-weight: 600; box-shadow: 0 10px 30px -8px rgba(31,168,85,.6); transition: transform .25s var(--ease), padding .25s; }
.wa-float .ic { width: 28px; height: 28px; }
.wa-float-label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .35s var(--ease); }
.wa-float:hover, .wa-float:focus-visible { transform: translateY(-2px); padding-right: 1.3rem; }
.wa-float:hover .wa-float-label, .wa-float:focus-visible .wa-float-label { max-width: 120px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: 84px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 1rem 1.75rem 1.8rem; background: var(--onyx); color: var(--white); max-height: calc(100vh - 84px); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .main-nav a { padding: 1rem 0; font-size: 1.1rem; border-bottom: 1px solid var(--line-dark); }
  .main-nav a::after { display: none; }
  .main-nav a[aria-current="page"] { color: var(--gold-light); }
  .nav-phone { display: flex !important; align-items: center; gap: .6rem; color: var(--gold-light); border-bottom: 0 !important; }
  .site-header:has(.main-nav.is-open) { background: var(--onyx); color: var(--white); border-color: var(--onyx); }
  .site-header:has(.main-nav.is-open) .logo-dark { display: none; }
  .site-header:has(.main-nav.is-open) .logo-light { display: block; }
  .types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .commitments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-hero .search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-hero .search-submit { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split-reverse { grid-template-columns: 1fr; gap: 3.5rem; }
  .split-media, .split-reverse .split-media { justify-self: center; max-width: 380px; }
  .split-reverse .split-media { order: -1; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .sell-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-info { margin-top: 0; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sell-inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .search-bar .search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --gable: 16px; }
  .container { padding: 0 1.15rem; }
  .header-inner { height: 70px; }
  .main-nav { top: 70px; max-height: calc(100vh - 70px); }
  .logo img { height: 38px; }
  .hero { min-height: auto; }
  .hero-inner { padding-top: 116px; padding-bottom: 1.5rem; }
  .hero-lead { font-size: 1rem; }
  .hero-actions span { font-size: 1.2rem; }
  .hero-actions small { font-size: .78rem; }
  .search-hero { padding: 1.2rem 1rem; }
  .search-hero .search-fields, .search-bar .search-fields { grid-template-columns: 1fr; }
  .search-bar .field-q, .search-bar .search-submit { grid-column: auto; }
  .search-panel { padding: 1.2rem 1rem; }
  .section { padding: 4rem 0; }
  .section-tight, .section-tight-top { padding-top: 5rem; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .grid-cards { grid-template-columns: 1fr; gap: 2.2rem; }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-tile { padding: 1.4rem 1rem 1.2rem; }
  .type-tile .ic { margin-bottom: 1rem; }
  .services, .features { grid-template-columns: 1fr; }
  .frame::after { inset: 12px -10px -10px 12px; }
  .sell-band::before { inset: 10px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -1.15rem; padding: 0 1.15rem .3rem; scrollbar-width: none; }
  .chip { white-space: nowrap; }
  .list-toolbar { flex-direction: column; align-items: stretch; }
  .gallery { grid-template-columns: 1fr; height: auto; }
  .gallery-main { aspect-ratio: 4 / 3; }
  .gallery-side { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 64px; }
  .gallery-side button:first-child:nth-last-child(1) { grid-column: auto; grid-row: auto; }
  .gallery-side button:nth-child(2) { clip-path: none; }
  .detail-price-wrap { text-align: left; }
  .detail-price { white-space: normal; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .map { aspect-ratio: 4 / 3; }
  .form-grid, .field-row { grid-template-columns: 1fr; }
  .panel-raised { padding: 1.4rem 1.1rem; }
  .service-grid, .commitments { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer-bottom { flex-direction: column; }
  .lightbox { padding: 3.5rem .5rem; }
  .lb-nav { top: auto; bottom: 1rem; transform: none; }
  .map-section { height: 320px; }
  .wa-float { right: 1rem; bottom: 1rem; }
}

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