/* =========================================================
   GROUPE FINCK PRESTIGE IMMOBILIER
   Système : toile blanche, photo d'abord, un seul accent corail
   ========================================================= */

:root {
  /* Couleurs */
  --brand: #5a3b23;        /* marron du logo (remplace le rose) */
  --brand-dark: #43291a;
  --brand-deep: #2f1e10;
  --gold: #c9a24a;         /* or du logo */
  --gold-light: #f2dc97;
  --gold-dark: #9c7a1c;
  --hof: #222222;
  --foggy: #6a6a6a;
  --grey-500: #c1c1c1;
  --bebe: #ebebeb;
  --deco: #dddddd;
  --faint: #f7f7f7;
  --white: #ffffff;

  /* Ombres */
  --shadow-subtle: 0 0 0 1px rgba(0,0,0,.02), 0 2px 6px rgba(0,0,0,.04), 0 4px 8px rgba(0,0,0,.10);
  --shadow-overlay: 0 8px 28px rgba(0,0,0,.28);
  --shadow-drop: 0 6px 20px rgba(0,0,0,.2);
  --shadow-tip: 0 2px 4px rgba(0,0,0,.18);

  /* Formes */
  --r-card: 12px;
  --r-block: 14px;
  --r-input: 8px;

  /* Mouvement */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  /* Layout */
  --pad: 40px;
  --nav: 80px;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --font: 'DM Sans', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.43;
  color: var(--hof);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: "salt" on;
}
img { display: block; max-width: 100%; user-select: none; -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--hof); color: #fff; }
:focus-visible { outline: 2px solid var(--hof); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }

.kicker {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--foggy); margin-bottom: 12px;
}
.kicker.light { color: rgba(255,255,255,.7); }
.h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background .3s, color .3s, transform .5s var(--out);
}
.btn svg { width: 15px; height: 15px; transition: transform .45s var(--out); }
.btn:hover svg { transform: translateX(4px); }
.btn-white { background: #fff; color: var(--hof); }
.btn-white:hover { background: var(--faint); }
.btn-brand { background: var(--brand); color: #fff; border-radius: var(--r-input); justify-content: center; height: 52px; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-brand:active { transform: scale(.98); }

/* ---------- Barre de progression ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 210;
  background: var(--brand); transform-origin: 0 50%; transform: scaleX(0);
}

/* =========================================================
   CURSEUR
   ========================================================= */
.cursor { position: fixed; left: 0; top: 0; z-index: 900; pointer-events: none; width: 0; height: 0; }
.cursor-ball {
  position: absolute; left: -44px; top: -44px; width: 88px; height: 88px; border-radius: 50%;
  background: var(--hof); color: #fff; display: grid; place-items: center;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  transform: scale(.11);
  transition: transform .5s var(--out), background .3s, opacity .3s;
}
.cursor-ball span { opacity: 0; transform: scale(.5); transition: opacity .25s, transform .4s var(--out); }
.cursor.is-hover .cursor-ball { transform: scale(.45); background: rgba(34,34,34,.12); }
.cursor.is-label .cursor-ball { transform: scale(1); }
.cursor.is-label span { opacity: 1; transform: none; }
.cursor.is-hidden .cursor-ball { transform: scale(0); }
@media (pointer: coarse) { .cursor { display: none; } }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav);
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s;
}
.nav.scrolled { border-bottom-color: var(--bebe); }
.nav-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 13px; color: var(--brand); justify-self: start; }
.globe-mark { flex: none; width: 57px; height: 57px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(90, 59, 35, .22)); transition: transform .9s var(--spring); }
.logo:hover .globe-mark { transform: rotate(-14deg) scale(1.08); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-family: var(--serif); font-style: italic; font-size: 35px; font-weight: 600; letter-spacing: -.005em; line-height: .9; white-space: nowrap; }
.logo-text small { margin-top: 7px; color: var(--gold-dark); font-size: 11.5px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; white-space: nowrap; }

.nav-center { position: relative; display: grid; place-items: center; }
.tabs { position: relative; display: flex; gap: 4px; transition: opacity .35s, transform .55s var(--out); }
.tab {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  font-size: 16px; font-weight: 500; color: var(--foggy); transition: color .25s;
}
.tab svg { width: 22px; height: 22px; transition: transform .55s var(--spring); }
.tab:hover, .tab.active { color: var(--hof); }
.tab:hover svg { transform: translateY(-3px) rotate(-8deg) scale(1.14); }
.tab-indicator {
  position: absolute; bottom: 2px; left: 0; height: 2px; width: 0; border-radius: 2px;
  background: var(--hof); transition: transform .55s var(--out), width .55s var(--out);
}

.nav-search {
  position: absolute; display: flex; align-items: center;
  height: 48px; padding: 0 8px 0 24px; border-radius: 999px;
  background: #fff; border: 1px solid var(--bebe); box-shadow: var(--shadow-subtle);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  opacity: 0; transform: translateY(24px) scale(.9); pointer-events: none;
  transition: opacity .35s, transform .55s var(--out), box-shadow .3s;
}
.nav-search i { width: 1px; height: 24px; background: var(--bebe); margin: 0 16px; }
.nav-search .muted { color: var(--foggy); font-weight: 400; }
.nav-search b { width: 32px; height: 32px; margin-left: 16px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; transition: transform .4s var(--spring); }
.nav-search b svg { width: 14px; height: 14px; }
.nav-search:hover { box-shadow: 0 6px 20px rgba(0,0,0,.14); }
.nav-search:hover b { transform: scale(1.1) rotate(-8deg); }
.nav.compact .tabs { opacity: 0; transform: translateY(-22px) scale(.95); pointer-events: none; }
.nav.compact .nav-search { opacity: 1; transform: none; pointer-events: auto; }

.nav-right { justify-self: end; position: relative; display: flex; align-items: center; gap: 8px; }
.nav-link { font-weight: 500; padding: 12px 14px; border-radius: 999px; transition: background .25s; }
.nav-link:hover { background: var(--faint); }
.circle-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--faint); display: grid; place-items: center; transition: background .25s; }
.circle-btn:hover { background: var(--bebe); }
.circle-btn svg { width: 17px; height: 17px; }
@keyframes spin { to { transform: rotate(360deg); } }

.menu-btn {
  position: relative; display: flex; align-items: center; gap: 12px;
  height: 44px; padding: 0 5px 0 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--bebe);
  transition: box-shadow .3s;
}
.menu-btn:hover, .menu-btn[aria-expanded="true"] { box-shadow: var(--shadow-subtle); }
.menu-btn .lines { width: 16px; height: 16px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--foggy); color: #fff; display: grid; place-items: center; overflow: hidden; }
.avatar svg { width: 26px; height: 26px; margin-top: 8px; }
.fav-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--brand); color: #fff; border: 2px solid #fff;
  font-size: 11px; font-weight: 700; line-height: 16px; text-align: center;
  transform: scale(0); transition: transform .45s var(--spring);
}
.fav-count.show { transform: scale(1); }
.fav-count.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

.menu-pop {
  position: absolute; top: calc(100% + 12px); right: 0; width: 240px; padding: 8px 0;
  background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-drop);
  opacity: 0; transform: translateY(-8px) scale(.96); transform-origin: top right; pointer-events: none;
  transition: opacity .25s, transform .4s var(--out);
}
.menu-pop.open { opacity: 1; transform: none; pointer-events: auto; }
.menu-pop a { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; transition: background .2s, padding .3s var(--out); }
.menu-pop a:hover { background: var(--faint); padding-left: 20px; }
.menu-pop a.strong { font-weight: 600; }
.menu-pop a span { font-size: 12px; color: var(--foggy); }
.menu-pop hr { border: 0; border-top: 1px solid var(--bebe); margin: 8px 0; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding: calc(var(--nav) + 40px) 0 72px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; align-items: center;
  min-height: calc(100svh - var(--nav) - 112px);
}

.hero-in { animation: heroRise .9s var(--out) both; animation-delay: calc(var(--d, 0) * 60ms); }
@keyframes heroRise { from { transform: translateY(14px); } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--faint); font-size: 12px; font-weight: 600; }
.eyebrow.light { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--gold); animation: ping 1.8s var(--out) infinite; }
@keyframes ping { to { transform: scale(3.2); opacity: 0; } }

.hero-title { font-size: clamp(44px, 5.6vw, 88px); line-height: 1; letter-spacing: -.05em; font-weight: 600; margin: 0 0 22px; }
.w { display: inline-block; vertical-align: top; padding: 0 .03em .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; transform-origin: 0 100%; animation: wordRise .9s var(--out) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes wordRise { from { transform: translateY(.28em) rotate(2deg); } }
.hero-title .hero-kicker { display: block; margin-bottom: 18px; font-size: 13px; letter-spacing: .08em; line-height: 1.2; }
.w.hl { position: relative; padding-bottom: .3em; margin-bottom: -.3em; }
.underline { position: absolute; left: .02em; right: .02em; bottom: .02em; width: calc(100% - .04em); height: .24em; overflow: visible; }
.underline path { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; animation: drawFrom 1.3s var(--out) .6s both; }
@keyframes drawFrom { from { stroke-dashoffset: 100; } }

.hero-lead { font-size: 18px; line-height: 1.55; color: var(--foggy); max-width: 520px; }

.mode { position: relative; display: inline-flex; margin-top: 32px; padding: 4px; border-radius: 999px; background: var(--faint); }
.mode button { position: relative; z-index: 1; padding: 10px 22px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--foggy); transition: color .3s; }
.mode button.active { color: var(--hof); }
.mode-pill { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: #fff; box-shadow: var(--shadow-subtle); transition: transform .6s var(--spring), width .6s var(--spring); }

.search {
  display: flex; align-items: center; max-width: 780px; margin-top: 14px; padding: 6px;
  background: #fff; border: 1px solid var(--bebe); border-radius: 999px; box-shadow: var(--shadow-subtle);
  transition: background .3s, box-shadow .3s;
}
.search:focus-within { background: var(--faint); box-shadow: none; }
.seg { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; padding: 10px 24px; border-radius: 999px; cursor: pointer; transition: background .25s, box-shadow .25s; }
.seg:hover { background: var(--faint); }
.search:focus-within .seg:hover { background: var(--bebe); }
.search .seg:focus-within { background: #fff; box-shadow: var(--shadow-drop); }
.seg + .seg::before { content: ''; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--bebe); transition: opacity .2s; }
.seg:hover::before, .seg:hover + .seg::before, .seg:focus-within::before, .seg:focus-within + .seg::before { opacity: 0; }
.seg-label { font-size: 12px; font-weight: 600; }
.seg input, .seg select {
  width: 100%; padding: 0; border: 0; outline: 0; background: transparent;
  font-size: 14px; color: var(--hof); cursor: pointer;
  appearance: none; -webkit-appearance: none; text-overflow: ellipsis;
}
.seg input::placeholder { color: var(--foggy); }
.seg select { color: var(--foggy); }
.seg select.picked { color: var(--hof); }
.search-btn {
  flex: none; display: flex; align-items: center; justify-content: center;
  height: 52px; min-width: 52px; padding: 0 18px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 600;
  transition: background .3s, transform .3s;
}
.search-btn svg { width: 16px; height: 16px; flex: none; }
.search-btn span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .55s var(--out), margin .55s var(--out); }
.search:focus-within .search-btn span, .search-btn:hover span { max-width: 120px; margin-left: 8px; }
.search-btn:hover { background: var(--brand-dark); }
.search-btn:active { transform: scale(.95); }

/* Galerie flottante */
.hero-gallery { position: relative; height: min(640px, 74vh); min-height: 480px; }
.float { position: absolute; }
.float-inner { width: 100%; height: 100%; }
@media (min-width: 1181px) and (pointer: fine) { .float, .float-inner { will-change: transform; } }
.ph {
  width: 100%; height: 100%; overflow: hidden; border-radius: var(--r-card); background: var(--deco);
}
.ph img { width: 100%; height: 100%; object-fit: cover; animation: phZoom 1.8s var(--out) both; animation-delay: calc(var(--d) * 110ms); transition: transform 1.1s var(--out); }
@keyframes phZoom { from { transform: scale(1.18); } }
.ph:hover img { transform: scale(1.08); }
.g1 { left: 16%; top: 7%; width: 50%; height: 55%; z-index: 2; }
.g2 { right: 0; top: 0; width: 30%; height: 40%; }
.g3 { left: 0; bottom: 3%; width: 36%; height: 33%; z-index: 3; }
.g4 { right: 3%; bottom: 0; width: 46%; height: 36%; }
.f1 { right: 1%; top: 47%; z-index: 4; }
.f2 { left: 1%; top: 22%; z-index: 4; }

.glass {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px;
  background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-drop); white-space: nowrap;
  animation: glassIn .9s var(--spring) both, bob 6s ease-in-out 1s infinite; animation-delay: calc(.8s + var(--d) * 180ms), calc(var(--d) * -2.5s);
}
@keyframes glassIn { from { scale: .7; } }
@keyframes bob { 50% { transform: translateY(-10px); } }
.glass .ico { width: 38px; height: 38px; border-radius: 50%; background: var(--faint); display: grid; place-items: center; }
.glass .ico svg { width: 18px; height: 18px; }
.glass strong { display: block; font-size: 14px; font-weight: 600; }
.glass small { display: block; font-size: 12px; color: var(--foggy); }

.scroll-hint { position: absolute; left: 50%; bottom: 20px; width: 24px; height: 38px; margin-left: -12px; border: 1.6px solid var(--grey-500); border-radius: 999px; transition: border-color .3s; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--hof); animation: wheel 1.8s var(--out) infinite; }
.scroll-hint:hover { border-color: var(--hof); }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* =========================================================
   CATÉGORIES + LISTES
   ========================================================= */
.listings { position: relative; }
.cats-bar {
  position: sticky; top: var(--nav); z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bebe);
}
.cats-inner { display: flex; align-items: center; gap: 24px; }
.cats {
  flex: 1; min-width: 0; display: flex; gap: 36px; padding-top: 14px; overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  position: relative; flex: none; display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding-bottom: 12px; color: var(--foggy); font-size: 12px; font-weight: 500; transition: color .25s;
}
.cat svg { width: 24px; height: 24px; transition: transform .55s var(--spring); }
.cat::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--deco); transform: scaleX(0); transition: transform .45s var(--out), background .2s; }
.cat:hover { color: var(--hof); }
.cat:hover::after { transform: scaleX(1); }
.cat:hover svg { transform: translateY(-3px) scale(1.15); }
.cat.active { color: var(--hof); }
.cat.active::after { transform: scaleX(1); background: var(--hof); }
.reset-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border: 1px solid var(--hof); border-radius: var(--r-input); font-size: 13px; font-weight: 500;
  opacity: 0; transform: translateX(10px); pointer-events: none;
  transition: opacity .3s, transform .45s var(--out), background .2s;
}
.reset-btn svg { width: 12px; height: 12px; }
.reset-btn:hover { background: var(--faint); }
.reset-btn.show { opacity: 1; transform: none; pointer-events: auto; }

.row { padding: 40px 0 4px; }
.row + .row { padding-bottom: 64px; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.row-title { display: inline-flex; align-items: center; gap: 4px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.18; }
.row-title svg { width: 16px; height: 16px; transition: transform .45s var(--out); }
.row-title:hover svg { transform: translateX(6px); }
.row-sub { color: var(--foggy); margin-top: 4px; }
.arrows { display: flex; gap: 8px; }
.arrow-btn {
  width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-subtle);
  display: grid; place-items: center; transition: transform .35s var(--spring), opacity .3s, box-shadow .3s, color .3s;
}
.arrow-btn svg { width: 12px; height: 12px; }
.arrow-btn:hover:not(:disabled) { transform: scale(1.12); box-shadow: var(--shadow-drop); }
.arrow-btn:disabled { color: var(--grey-500); opacity: .5; cursor: default; box-shadow: 0 0 0 1px var(--bebe); }

.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 24px) / 6); gap: 24px;
  padding: 4px 0 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; user-select: none;
}
.track::-webkit-scrollbar { display: none; }
.track.dragging { scroll-snap-type: none; cursor: grabbing; }
.track.dragging .card { pointer-events: none; }

.card { position: relative; min-width: 0; scroll-snap-align: start; cursor: pointer; outline-offset: 4px; }
.js:not(.reveal-off) .track:not(.shown) .card { opacity: 0; }
.track.shown .card { animation: cardIn 1s var(--out) both; animation-delay: calc(var(--i) * 80ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(48px) scale(.97); } to { opacity: 1; transform: none; } }

.card-media { position: relative; aspect-ratio: 20 / 19; border-radius: var(--r-card); overflow: hidden; background: var(--deco); isolation: isolate; }
.slides { display: flex; height: 100%; transition: transform .75s var(--out); }
.slide { flex: 0 0 100%; height: 100%; overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--out); }
.card:hover .slide img { transform: scale(1.08); }
.card-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.14), transparent 28%, transparent 68%, rgba(0,0,0,.22)); opacity: 0; transition: opacity .45s; }
.card:hover .card-media::after { opacity: 1; }

.badge { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-tip); font-size: 12px; font-weight: 600; transition: transform .5s var(--spring); }
.card:hover .badge { transform: translateY(-2px) scale(1.05); }

.heart { position: absolute; top: 2px; right: 2px; z-index: 3; width: 48px; height: 48px; display: grid; place-items: center; }
.heart svg { width: 24px; height: 24px; overflow: visible; fill: rgba(0,0,0,.45); stroke: #fff; stroke-width: 2; transition: transform .35s var(--spring), fill .2s; }
.heart:hover svg { transform: scale(1.15); }
.heart.on svg { fill: var(--brand); animation: heartPop .55s var(--spring); }
@keyframes heartPop { 0% { transform: scale(1); } 30% { transform: scale(.65); } 65% { transform: scale(1.3); } 100% { transform: scale(1); } }
.particle { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--brand); pointer-events: none; animation: particle .7s var(--out) forwards; }
@keyframes particle { from { transform: rotate(var(--a)) translateY(0) scale(1); opacity: 1; } to { transform: rotate(var(--a)) translateY(-30px) scale(0); opacity: 0; } }

.media-nav {
  position: absolute; top: 50%; z-index: 3; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%;
  background: rgba(255,255,255,.94); box-shadow: var(--shadow-tip); display: grid; place-items: center;
  opacity: 0; transition: opacity .3s, transform .45s var(--out);
}
.media-nav svg { width: 12px; height: 12px; }
.media-nav.prev { left: 12px; transform: translateX(-10px); }
.media-nav.next { right: 12px; transform: translateX(10px); }
.card:hover .media-nav { opacity: 1; transform: none; }
.card:hover .media-nav:hover { transform: scale(1.1); }
.card[data-idx="0"] .media-nav.prev, .card.at-end .media-nav.next { opacity: 0 !important; pointer-events: none; }
.dots { position: absolute; left: 50%; bottom: 12px; z-index: 2; display: flex; gap: 5px; transform: translateX(-50%); }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .6; transition: opacity .3s, transform .3s; }
.dots i.on { opacity: 1; transform: scale(1.25); }

.card-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding-top: 12px; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-top h3 { min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.dpe { flex: none; padding: 2px 6px; border-radius: 4px; background: var(--faint); font-size: 11px; font-weight: 600; }
.card-meta { color: var(--foggy); }
.card-price { margin-top: 4px; }
.card-price b { font-weight: 600; background: linear-gradient(var(--hof), var(--hof)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--out); }
.card:hover .card-price b { background-size: 100% 1px; }

.skel { min-width: 0; display: grid; gap: 8px; align-content: start; }
.skel-media { aspect-ratio: 20 / 19; border-radius: var(--r-card); }
.skel i { display: block; height: 12px; border-radius: 6px; width: 85%; }
.skel i:nth-of-type(2) { width: 60%; }
.skel i:nth-of-type(3) { width: 35%; }
.skel-media, .skel i { background: linear-gradient(90deg, var(--faint) 25%, var(--bebe) 50%, var(--faint) 75%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.skel-media { margin-bottom: 4px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.track:has(> .empty) { display: block; }
.empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 48px 32px; border-radius: var(--r-card); background: var(--faint); animation: cardIn .8s var(--out) both; }
.empty strong { display: block; font-size: 16px; font-weight: 600; }
.empty p { color: var(--foggy); }
.empty button { margin-left: auto; height: 40px; padding: 0 16px; border-radius: var(--r-input); background: var(--hof); color: #fff; font-weight: 500; }

/* =========================================================
   MANIFESTE (mots qui s'allument)
   ========================================================= */
.manifesto { max-width: 1240px; padding-top: 150px; padding-bottom: 130px; }
.manifesto-text { font-size: clamp(28px, 3.7vw, 54px); line-height: 1.16; letter-spacing: -.035em; font-weight: 500; }
.manifesto-text span { opacity: .14; transition: opacity .25s linear; }

/* =========================================================
   CTA ESTIMATION
   ========================================================= */
.cta-wrap { padding-top: 130px; padding-bottom: 130px; }
.manifesto + .cta-wrap { padding-top: 0; }
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
  padding: 72px 64px; border-radius: var(--r-block); background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff;
}
.cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(560px circle at var(--mx, 75%) var(--my, 30%), rgba(242,220,151,.24), transparent 60%);
  opacity: .45; transition: opacity .6s;
}
.cta:hover::before { opacity: 1; }
.cta h2 { margin-bottom: 18px; font-size: clamp(38px, 4.6vw, 68px); line-height: 1; letter-spacing: -.05em; font-weight: 600; }
.cta-copy p { max-width: 460px; color: var(--grey-500); font-size: 17px; line-height: 1.55; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.checks li { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.checks svg { width: 18px; height: 18px; }
.cta-form { display: grid; gap: 14px; padding: 28px; border-radius: var(--r-card); background: #fff; color: var(--hof); box-shadow: var(--shadow-overlay); }
.cta-form h2, .cta-form h3 { margin-bottom: 4px; font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; }
.field input, .field select {
  height: 48px; padding: 0 14px; border: 1px solid var(--grey-500); border-radius: var(--r-input);
  background: #fff; font-size: 15px; outline: 0; appearance: none; -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--grey-500); }
.field input:focus, .field select:focus { border-color: var(--hof); box-shadow: 0 0 0 1px var(--hof); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-form .btn { width: 100%; margin-top: 4px; }
.fine { color: var(--foggy); font-size: 12px; text-align: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--faint); border-top: 1px solid var(--bebe); padding-top: 64px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; padding-bottom: 32px; }
.footer h2 { margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.footer ul { display: grid; gap: 12px; }
.footer ul a { color: var(--foggy); transition: color .2s, padding .35s var(--out); }
.footer ul a:hover { color: var(--hof); padding-left: 4px; }
.footer-brand p { max-width: 320px; margin: 16px 0 20px; color: var(--foggy); }
.newsletter { display: flex; max-width: 340px; height: 48px; padding: 4px; border: 1px solid var(--bebe); border-radius: 999px; background: #fff; transition: box-shadow .3s; }
.newsletter:focus-within { box-shadow: var(--shadow-subtle); }
.newsletter input { flex: 1; min-width: 0; padding: 0 14px; border: 0; outline: 0; background: transparent; }
.newsletter button { width: 40px; height: 40px; border-radius: 50%; background: var(--hof); color: #fff; display: grid; place-items: center; transition: transform .4s var(--spring); }
.newsletter button:hover { transform: rotate(-30deg) scale(1.06); }
.newsletter button svg { width: 15px; height: 15px; }

.footer-mark { display: flex; justify-content: center; padding: 8px var(--pad) 0; font-family: var(--serif); font-style: italic; font-size: clamp(80px, 20vw, 300px); font-weight: 600; letter-spacing: -.02em; line-height: .82; color: var(--bebe); user-select: none; overflow: hidden; }
.footer-mark[data-reveal] { opacity: 1; transform: none; }
.footer-mark span { display: inline-block; transform: translateY(100%); transition: transform 1.1s var(--out), color .4s; transition-delay: calc(var(--i) * 55ms); }
.footer-mark.in span { transform: none; }
.footer-mark span:hover { color: var(--gold); transition-delay: 0s; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid var(--bebe); }
.footer-bottom .left { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-bottom .left a:hover { text-decoration: underline; }
.footer-bottom .right { display: flex; align-items: center; gap: 20px; }

/* =========================================================
   MODALE
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; visibility: hidden; transition: visibility 0s .55s; }
.modal.open { visibility: visible; transition-delay: 0s; }
.modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .45s; }
.modal.open .modal-bg { opacity: 1; }
.modal-box {
  position: relative; width: min(1040px, 100%); max-height: calc(100vh - 48px); overflow: auto; overscroll-behavior: contain;
  border-radius: var(--r-block); background: #fff; box-shadow: var(--shadow-overlay);
  opacity: 0; transform: translateY(70px) scale(.96);
  transition: opacity .4s, transform .65s var(--out);
}
.modal.open .modal-box { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 18px; right: 18px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-tip); display: grid; place-items: center; transition: transform .45s var(--spring); }
.modal-close:hover { transform: rotate(90deg) scale(1.08); }
.modal-close svg { width: 14px; height: 14px; }
.m-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: min(440px, 52vh); padding: 8px; }
.m-gallery figure { overflow: hidden; border-radius: var(--r-input); background: var(--deco); }
.m-gallery figure:first-child { grid-row: 1 / 3; border-radius: var(--r-card) var(--r-input) var(--r-input) var(--r-card); }
.m-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--out); }
.m-gallery figure:hover img { transform: scale(1.06); }
.modal.open .m-gallery figure { animation: mIn .9s var(--out) both; }
.modal.open .m-gallery figure:nth-child(2) { animation-delay: .08s; }
.modal.open .m-gallery figure:nth-child(3) { animation-delay: .16s; }
@keyframes mIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.m-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; padding: 24px 32px 36px; }
.m-body .m-title, .m-body h2 { font-size: 28px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.m-loc { margin-top: 4px; color: var(--foggy); font-size: 16px; }
.m-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; padding: 24px 0; border-top: 1px solid var(--bebe); border-bottom: 1px solid var(--bebe); }
.m-ref { margin-top: 6px; color: var(--foggy); font-size: 14px; }
.m-ref b { color: var(--hof); font-weight: 600; }
.m-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--bebe); }
.m-specs:empty { display: none; }
.m-specs .m-feat svg { color: var(--brand); }
.m-specs .m-feat strong { overflow-wrap: anywhere; }
.m-details { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--bebe); }
.m-details .m-sec-t, .m-details h3 { margin-bottom: 12px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.m-details dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.m-details dl > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--bebe); font-size: 14.5px; }
.m-details dt { color: var(--foggy); }
.m-details dd { margin: 0; text-align: right; font-weight: 600; }
.m-copro dl { grid-template-columns: 1fr; }
@media (max-width: 640px) { .m-details dl { grid-template-columns: 1fr; } }
.m-feats.m-energies { margin-top: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.m-feat svg { width: 24px; height: 24px; margin-bottom: 8px; }
.m-feat strong { display: block; font-size: 16px; font-weight: 600; }
.m-feat span { color: var(--foggy); }
.m-desc { font-size: 16px; line-height: 1.6; }
.m-desc.rich { max-width: none; padding-bottom: 0; line-height: 1.65; }
.m-desc.rich > * + * { margin-top: .8em; }
.m-desc.rich h2 { font-size: 22px; } .m-desc.rich h3 { font-size: 19px; } .m-desc.rich h4 { font-size: 17px; }
.m-desc.rich table { display: block; overflow-x: auto; }
.m-funds { margin-top: 14px; color: var(--foggy); font-size: 11.5px; line-height: 1.45; }
.m-risks { margin-top: 10px; color: var(--foggy); font-size: 11.5px; line-height: 1.45; }
.m-risks a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.m-energy-alert { display: inline-block; margin: -8px 0 14px; padding: 6px 12px; border-radius: 8px; background: #fbe9e5; color: #a8321e; font-size: 13px; font-weight: 600; }
.m-energy-cost { margin: -8px 0 20px; color: var(--hof); font-size: 13.5px; line-height: 1.55; }
.m-fees-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--brand); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.m-fees-link svg { width: 14px; height: 14px; transition: transform .35s var(--out); }
.m-fees-link:hover svg { transform: translateX(3px); }
.m-aside { position: sticky; top: 24px; align-self: start; padding: 24px; border: 1px solid var(--bebe); border-radius: var(--r-card); box-shadow: var(--shadow-drop); }
.m-price { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.m-price small { font-size: 15px; font-weight: 400; color: var(--foggy); }
.m-pricebox .m-price { font-size: 30px; line-height: 1.15; }
.m-price-lab { display: block; margin-bottom: 2px; font-size: 13px; color: var(--foggy); }
.m-pm2 { margin-top: 4px; font-size: 13px; color: var(--foggy); }
.m-fin { display: grid; gap: 10px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--bebe); }
.m-fin > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: baseline; font-size: 14px; }
.m-fin dt { color: var(--foggy); }
.m-fin dd { margin: 0; text-align: right; font-weight: 600; white-space: nowrap; }
.m-fin > div > small { grid-column: 1 / -1; margin-top: 2px; font-size: 12px; color: var(--foggy); }
.m-fee-note { margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--foggy); }
.card-price small { font-size: 12px; font-weight: 600; color: var(--foggy); }
.m-agent { display: flex; align-items: center; gap: 12px; margin: 18px 0; padding: 18px 0; border-top: 1px solid var(--bebe); border-bottom: 1px solid var(--bebe); }
.m-agent .av { width: 44px; height: 44px; border-radius: 50%; background: var(--hof); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.m-agent strong { display: block; font-weight: 600; }
.m-agent small { color: var(--foggy); }
.m-actions { display: grid; gap: 10px; }
.m-actions .btn { width: 100%; justify-content: center; border-radius: var(--r-input); }
.btn-ghost { height: 48px; border: 1px solid var(--hof); border-radius: var(--r-input); background: transparent; font-weight: 500; transition: background .25s; }
.btn-ghost:hover { background: var(--faint); }
.m-save { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.m-save svg { width: 16px; height: 16px; fill: none; stroke: var(--hof); stroke-width: 2.4; transition: transform .35s var(--spring); }
.m-save.on svg { fill: var(--brand); stroke: var(--brand); animation: heartPop .55s var(--spring); }

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 600;
  display: flex; align-items: center; gap: 10px; padding: 14px 22px 14px 18px; border-radius: 999px;
  background: var(--hof); color: #fff; font-weight: 500; box-shadow: var(--shadow-drop);
  opacity: 0; transform: translate(-50%, 120px);
  transition: transform .65s var(--spring), opacity .3s;
}
.toast svg { width: 18px; height: 18px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   RÉVÉLATIONS AU SCROLL
   ========================================================= */
.js:not(.reveal-off) [data-reveal]:not(.in) { opacity: 0; transform: translateY(50px); }
[data-reveal] { transition: opacity 1.1s var(--out), transform 1.1s var(--out); transition-delay: calc(var(--d, 0) * 90ms); }
[data-reveal="scale"] { transform: translateY(60px) scale(.94); }
[data-reveal].in { opacity: 1; transform: none; }


/* =========================================================
   ÉTIQUETTES ÉNERGIE (DPE / GES)
   ========================================================= */
.energy { display: inline-flex; align-items: center; gap: 12px; }
.e-arrow {
  display: inline-flex; align-items: center; flex: none; width: var(--w, 48px); height: 30px; padding-left: 10px;
  color: #fff; font-size: 17px; font-weight: 700; line-height: 1;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%);
}
.e-arrow.mini { height: 20px; padding-left: 6px; font-size: 12px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); }
.e-dpe-A { background: #009a44; } .e-dpe-B { background: #52b153; } .e-dpe-C { background: #c3d22b; color: #2b2b0a; }
.e-dpe-D { background: #fde92f; color: #3a3500; } .e-dpe-E { background: #f7b42c; } .e-dpe-F { background: #ec6b23; } .e-dpe-G { background: #e2001a; }
.e-ges-A { background: #f6edfd; color: #4a2366; } .e-ges-B { background: #e4c7f5; color: #4a2366; } .e-ges-C { background: #d4aaee; color: #4a2366; }
.e-ges-D { background: #c08de3; } .e-ges-E { background: #a86dd1; } .e-ges-F { background: #8b4cb8; } .e-ges-G { background: #6a2b94; }
.e-val { display: grid; line-height: 1.15; text-align: left; }
.e-val strong { font-size: 16px; font-weight: 700; }
.e-val small { color: var(--foggy); font-size: 11.5px; white-space: nowrap; }
.m-feats { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.45fr) minmax(0, .8fr) minmax(0, .8fr); }
.e-none { color: var(--foggy); font-size: 14px; }
.card-top .e-arrow.mini { align-self: center; }
.m-energy { display: grid; align-content: start; gap: 10px; }
.m-lab { color: var(--foggy); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.badge.sold, .badge.offer { color: #fff; border-radius: 4px; padding: 6px 12px; letter-spacing: .1em; text-transform: uppercase; }
.badge.sold { background: #2e7d32; box-shadow: 0 3px 10px rgba(46, 125, 50, .35); }
.badge.offer { background: #f5a04a; text-shadow: 0 1px 1px rgba(120, 60, 0, .35); box-shadow: 0 3px 10px rgba(245, 160, 74, .4); }
.sold-txt { color: #2e7d32; font-weight: 600; }
#heroGallery .float[data-id] { cursor: pointer; }
#heroGallery .ph img:not([src]) { visibility: hidden; }

/* ---------- Formulaire de contact d'une annonce ---------- */
.m-aside.has-form { position: static; }
.m-actions .btn { white-space: normal; text-align: center; line-height: 1.25; height: auto; min-height: 52px; padding: 12px 18px; }
.m-form { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--bebe); animation: formIn .5s var(--out) both; }
@keyframes formIn { from { opacity: 0; transform: translateY(12px); } }
.m-form h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.m-form-sub { margin-top: -6px; color: var(--foggy); font-size: 13px; }
.m-form-sub b { color: var(--hof); font-weight: 600; }
.m-form .field textarea { min-height: 120px; padding: 12px 14px; border: 1px solid var(--grey-500); border-radius: var(--r-input); font: inherit; font-size: 15px; line-height: 1.5; resize: vertical; outline: 0; transition: border-color .2s, box-shadow .2s; }
.m-form .field textarea:focus { border-color: var(--hof); box-shadow: 0 0 0 1px var(--hof); }
.m-form .btn { width: 100%; justify-content: center; border-radius: var(--r-input); }
.m-form .btn-ghost { width: 100%; }
.c-consent { display: flex; gap: 10px; align-items: flex-start; color: var(--foggy); font-size: 12.5px; line-height: 1.45; cursor: pointer; }
.c-consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--brand); }
.c-privacy { margin: -4px 0 0 28px; color: var(--foggy); font-size: 11.5px; line-height: 1.5; }
.c-privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { display: none; padding: 10px 12px; border-radius: var(--r-input); background: #fbeeea; color: #a8321e; font-size: 13px; font-weight: 500; }
.form-msg.show { display: block; animation: formIn .3s var(--out); }
.m-sent { display: grid; justify-items: center; gap: 10px; margin-top: 18px; padding: 24px 8px 4px; border-top: 1px solid var(--bebe); text-align: center; animation: formIn .5s var(--out) both; }
.m-sent-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; animation: pop .5s var(--spring) both; }
.m-sent-ico svg { width: 24px; height: 24px; }
@keyframes pop { from { transform: scale(0); } }
.m-sent h3 { font-size: 18px; font-weight: 600; }
.m-sent p { color: var(--foggy); font-size: 14px; }
.m-sent .btn-ghost { width: 100%; margin-top: 8px; }


/* =========================================================
   PHOTOS DE L'ANNONCE : visionneuse + plein écran
   ========================================================= */
.m-viewer { padding: 8px 8px 0; }
.mv-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 58vh; overflow: hidden; border-radius: var(--r-card); background: var(--deco); cursor: zoom-in; touch-action: pan-y; }
.modal.open .mv-stage { animation: mIn .9s var(--out) both; }
.mv-track { display: flex; height: 100%; transition: transform .6s var(--out); will-change: transform; }
.mv-slide { flex: 0 0 100%; height: 100%; }
.mv-slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; }
.mv-nav {
  position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%;
  background: rgba(255, 255, 255, .94); color: var(--hof); box-shadow: var(--shadow-tip); display: grid; place-items: center;
  transition: transform .35s var(--spring), background .2s;
}
.mv-nav svg { width: 16px; height: 16px; }
.mv-nav.prev { left: 14px; }
.mv-nav.next { right: 14px; }
.mv-nav:hover { transform: scale(1.1); background: #fff; }
.mv-count { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .58); color: #fff; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.mv-expand {
  position: absolute; right: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--hof); font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-tip); transition: transform .35s var(--spring);
}
.mv-expand svg { width: 14px; height: 14px; }
.mv-expand:hover { transform: scale(1.05); }
.mv-thumbs { display: flex; gap: 8px; padding: 10px 0 2px; overflow-x: auto; scrollbar-width: thin; }
.mv-thumb { flex: none; width: 86px; height: 62px; border-radius: 8px; overflow: hidden; opacity: .5; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .25s, outline-color .25s; }
.mv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mv-thumb:hover { opacity: .85; }
.mv-thumb.on { opacity: 1; outline-color: var(--brand); }

.lightbox {
  position: fixed; inset: 0; z-index: 700; display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(14, 10, 7, .96); color: #fff; opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility 0s .35s;
}
.lightbox.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lb-top { display: flex; align-items: center; gap: 16px; padding: 14px 18px 10px 24px; }
.lb-title { flex: 1; min-width: 0; font-family: var(--serif); font-style: italic; font-size: 22px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-count { color: rgba(255, 255, 255, .75); font-size: 14px; font-variant-numeric: tabular-nums; }
.lb-close { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; transition: background .2s, transform .35s var(--spring); }
.lb-close:hover { background: rgba(255, 255, 255, .22); transform: rotate(90deg); }
.lb-close svg { width: 18px; height: 18px; }
.lb-stage { position: relative; min-height: 0; padding: 0 84px; touch-action: pan-y; }
.lb-fig { width: 100%; height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); user-select: none; }
.lb-nav {
  position: absolute; top: 50%; z-index: 2; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center;
  transition: background .2s, transform .35s var(--spring);
}
.lb-nav svg { width: 22px; height: 22px; }
.lb-nav:hover { background: rgba(255, 255, 255, .25); transform: scale(1.08); }
.lb-nav.prev { left: 18px; }
.lb-nav.next { right: 18px; }
.lb-thumbs { display: flex; gap: 8px; padding: 12px 20px 18px; overflow-x: auto; scrollbar-width: none; }
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumbs > :first-child { margin-left: auto; }
.lb-thumbs > :last-child { margin-right: auto; }
.lb-thumb { flex: none; width: 74px; height: 54px; border-radius: 6px; overflow: hidden; opacity: .42; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .25s, outline-color .25s; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: .8; }
.lb-thumb.on { opacity: 1; outline-color: var(--gold); }
@media (max-width: 640px) {
  .mv-stage { aspect-ratio: 4 / 3; }
  .mv-nav { width: 38px; height: 38px; margin-top: -19px; }
  .mv-expand span { display: none; }
  .mv-expand { width: 36px; padding: 0; justify-content: center; }
  .lb-top { padding: 10px 10px 8px 16px; }
  .lb-title { font-size: 18px; }
  .lb-stage { padding: 0 6px; }
  .lb-nav { width: 42px; height: 42px; margin-top: -21px; background: rgba(0, 0, 0, .45); }
  .lb-nav.prev { left: 10px; }
  .lb-nav.next { right: 10px; }
  .lb-thumb { width: 58px; height: 42px; }
}

/* =========================================================
   ANTI-ROBOT (« Je ne suis pas un robot »)
   ========================================================= */
.captcha { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border: 1px solid var(--bebe); border-radius: var(--r-input); background: var(--faint); }
.cap-box { position: relative; display: flex; align-items: center; gap: 12px; color: var(--hof); font-size: 14px; font-weight: 500; cursor: pointer; user-select: none; }
.cap-check { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cap-mark { position: relative; flex: none; width: 26px; height: 26px; border: 2px solid var(--grey-500); border-radius: 6px; background: #fff; transition: border-color .2s, background .2s, border-radius .2s; }
.cap-box:hover .cap-mark { border-color: var(--foggy); }
.cap-check:focus-visible + .cap-mark { outline: 2px solid var(--hof); outline-offset: 2px; }
.captcha[data-state="working"] .cap-mark { border-color: var(--gold); border-top-color: transparent; border-radius: 50%; animation: capSpin .8s linear infinite; }
.captcha[data-state="ok"] .cap-mark { border-color: #2f7d45; background: #2f7d45; }
.captcha[data-state="ok"] .cap-mark::after { content: ''; position: absolute; left: 7px; top: 2px; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); animation: capPop .4s var(--spring); }
.captcha[data-state="ok"] .cap-text { color: #2f7d45; }
.captcha[data-state="error"] .cap-text { color: #a8321e; }
.cap-brand { display: flex; align-items: center; gap: 6px; color: var(--foggy); font-size: 10.5px; line-height: 1.2; }
.cap-brand svg { width: 22px; height: 22px; color: var(--brand); }
@keyframes capSpin { to { transform: rotate(360deg); } }
@keyframes capPop { from { transform: rotate(45deg) scale(0); } }
.cta-form .c-consent { color: var(--foggy); }
.cta-form .form-msg { margin: 0; }
.cta-sent { justify-items: center; gap: 10px; padding: 40px 28px; text-align: center; }
.cta-sent h3 { margin: 0; }
.cta-sent p { color: var(--foggy); font-size: 14px; }
.cta-sent .btn-ghost { width: 100%; margin-top: 6px; }

/* ---------- Budget : montant libre ---------- */
.budget-free { display: flex; align-items: center; gap: 6px; }
.budget-free[hidden], .seg-budget select[hidden] { display: none; }
.seg .budget-free input { flex: 1; min-width: 0; }
.bf-unit { color: var(--foggy); font-size: 14px; white-space: nowrap; }
.bf-back { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bebe); color: var(--hof); display: grid; place-items: center; transition: background .2s, transform .3s var(--spring); }
.bf-back:hover { background: var(--deco); transform: rotate(90deg); }
.bf-back svg { width: 10px; height: 10px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1400px) { .track { grid-auto-columns: calc((100% - 4 * 24px) / 5); } }
@media (max-width: 1180px) {
  .track { grid-auto-columns: calc((100% - 3 * 24px) / 4); }
  .nav-link { display: none; }
  .tab { padding: 12px 10px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 48px; }
  .hero-gallery { height: 540px; }
  .scroll-hint { display: none; }
  .cta { grid-template-columns: 1fr; padding: 56px 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --pad: 24px; --nav: 68px; }
  .nav-center { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .track { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; }
  .search { flex-direction: column; align-items: stretch; padding: 8px; border-radius: 18px; }
  .seg { padding: 12px 16px; border-radius: 12px; }
  .seg + .seg::before { left: 16px; right: 16px; top: 0; bottom: auto; width: auto; height: 1px; }
  .search-btn { margin-top: 6px; border-radius: 12px; }
  .search-btn span { max-width: 120px; margin-left: 8px; }
  .m-body { grid-template-columns: 1fr; padding: 20px 20px 28px; }
  .m-gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 300px; }
  .m-gallery figure:not(:first-child) { display: none; }
  .m-gallery figure:first-child { grid-row: auto; }
  .m-feats { grid-template-columns: 1fr 1fr !important; }
  .manifesto { padding-top: 100px; padding-bottom: 90px; }
}
@media (max-width: 640px) {
  .track { grid-auto-columns: 80%; }
  .row-head .arrows { display: none; }
}
@media (max-width: 560px) {
  :root { --pad: 16px; }
  .logo { gap: 10px; }
  .logo-text b { font-size: 28px; }
  .logo-text small { margin-top: 5px; font-size: 9.5px; letter-spacing: .2em; }
  .globe-mark { width: 46px; height: 46px; }
  .hero-gallery { height: 420px; min-height: 0; }
  .glass small { display: none; }
  .glass { padding: 8px 12px 8px 8px; }
  .glass .ico { width: 30px; height: 30px; }
  .cta { padding: 40px 20px; }
  .cta-form { padding: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal { padding: 0; align-items: end; }
  .modal-box { max-height: 92vh; border-radius: var(--r-block) var(--r-block) 0 0; }
}

/* =========================================================
   PAGES CONTACT ET HONORAIRES
   ========================================================= */
.page { padding-top: var(--nav); }
.page-links { display: flex; gap: 4px; }
.page-links a { position: relative; padding: 12px 14px; font-size: 15px; font-weight: 500; color: var(--foggy); transition: color .25s; }
.page-links a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--hof); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--out); }
.page-links a:hover, .page-links a.active { color: var(--hof); }
.page-links a:hover::after, .page-links a.active::after { transform: none; }
.page-hero { padding-top: 72px; padding-bottom: 40px; max-width: 980px; margin-left: 0; }
.page-title { font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -.04em; font-weight: 600; }
.page-lead { max-width: 620px; margin-top: 18px; color: var(--foggy); font-size: 17px; line-height: 1.6; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 96px; }
.contact-form, .contact-sent { box-shadow: var(--shadow-subtle); border: 1px solid var(--bebe); padding: 32px; }
.contact-form .field textarea { min-height: 130px; padding: 12px 14px; border: 1px solid var(--grey-500); border-radius: var(--r-input); font: inherit; font-size: 15px; line-height: 1.5; resize: vertical; outline: 0; transition: border-color .2s, box-shadow .2s; }
.contact-form .field textarea:focus { border-color: var(--hof); box-shadow: 0 0 0 1px var(--hof); }
.field .opt { color: var(--foggy); font-weight: 400; }
.contact-sent { justify-items: center; text-align: center; padding: 48px 32px; }
.contact-sent p { max-width: 380px; color: var(--foggy); }
.contact-sent .btn-ghost { display: inline-flex; align-items: center; padding: 0 22px; }

.agency-card { position: sticky; top: calc(var(--nav) + 24px); overflow: hidden; border: 1px solid var(--bebe); border-radius: var(--r-card); background: #fff; box-shadow: var(--shadow-subtle); }
.agency-map { position: relative; height: 280px; background: var(--faint); }
.agency-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.map-load { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 100%; padding: 24px; border: 0; background: var(--faint); color: var(--hof); font: inherit; text-align: center; cursor: pointer; transition: background .2s; }
.map-load:hover, .map-load:focus-visible { background: #efefef; }
.map-load svg { width: 30px; height: 30px; color: var(--brand); }
.map-load span { font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.map-load small { max-width: 280px; color: var(--foggy); font-size: 12px; line-height: 1.45; }
.agency-body { padding: 26px 28px 28px; }
.agency-body h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.agency-lines { display: grid; gap: 14px; margin-top: 18px; }
.agency-lines li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.agency-lines svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: var(--brand); }
.agency-lines a:hover { text-decoration: underline; }
.agency-route { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 0 20px; }
.agency-route svg { width: 16px; height: 16px; }
.agency-skel { display: grid; gap: 12px; padding: 28px; }
.agency-skel i { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--faint), var(--bebe), var(--faint)) 0 0 / 200% 100%; animation: skel 1.4s linear infinite; }
.agency-skel i:first-child { height: 160px; }
.agency-skel i:nth-child(3) { width: 70%; }
.agency-skel i:nth-child(4) { width: 45%; }
@keyframes skel { to { background-position: -200% 0; } }

/* Texte des honoraires (rédigé dans le back-office) */
.rich { max-width: 920px; padding-bottom: 24px; font-size: 16px; line-height: 1.7; color: var(--hof); }
.rich > * + * { margin-top: 1em; }
.rich h1, .rich h2, .rich h3, .rich h4 { margin-top: 1.6em; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; }
.rich > :first-child { margin-top: 0; }
.rich h1 { font-size: 34px; } .rich h2 { font-size: 28px; } .rich h3 { font-size: 22px; } .rich h4 { font-size: 18px; }
.rich ul, .rich ol { padding-left: 1.4em; }
.rich ul { list-style: disc; } .rich ol { list-style: decimal; }
.rich li + li { margin-top: .35em; }
.rich a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.rich blockquote { padding: 14px 20px; border-left: 3px solid var(--gold); background: var(--faint); border-radius: 0 var(--r-input) var(--r-input) 0; }
.rich hr { border: 0; border-top: 1px solid var(--bebe); margin: 2em 0; }
.rich img { height: auto; border-radius: var(--r-input); }
.rich .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rich table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rich th, .rich td { padding: 12px 14px; border: 1px solid var(--bebe); text-align: left; vertical-align: top; }
.rich th, .rich thead td { background: var(--faint); font-weight: 600; }
.rich-empty { padding: 28px; border: 1px dashed var(--grey-500); border-radius: var(--r-card); color: var(--foggy); }
.page-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; max-width: 920px; margin: 48px 0 96px; padding: 24px 28px; border-radius: var(--r-card); background: var(--faint); }
.page-cta strong { display: block; font-size: 18px; font-weight: 600; }
.page-cta span { color: var(--foggy); }
.page-cta .btn { padding: 0 24px; }

/* Mentions légales, confidentialité */
.rich.legal { padding-bottom: 96px; }
.rich.legal h2 { font-size: 22px; }
.rich.legal ul { padding-left: 1.2em; }
.rich .todo { padding: 1px 6px; border-radius: 4px; background: #fff3cd; color: #8a5a00; font-weight: 600; }
.legal-date { margin-top: 2em; color: var(--foggy); }

/* Plan du site */
.sitemap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; padding-bottom: 96px; }
.sitemap > .agency-skel { grid-column: 1 / -1; }
.sm-block { padding: 26px 28px; border: 1px solid var(--bebe); border-radius: var(--r-card); background: #fff; }
.sm-block h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.sm-block h2 small { color: var(--foggy); font-size: 13px; font-weight: 500; }
.sm-block ul { display: grid; gap: 4px; }
.sm-block a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--hof); font-size: 15px; transition: color .2s, padding .35s var(--out); }
.sm-block a:hover { color: var(--brand); padding-left: 4px; }
.sm-listings { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bebe); }
.sm-listings a { font-size: 14px; }
.sm-listings a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-listings a small { flex: none; color: var(--foggy); font-size: 13px; }
@media (max-width: 1180px) { .sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sitemap { grid-template-columns: 1fr; } .sm-block { padding: 20px; } }

@media (max-width: 1180px) { .page-links a { padding: 12px 10px; } }
@media (max-width: 900px) {
  .page-links { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .agency-card { position: static; }
  .page-hero { padding-top: 48px; padding-bottom: 28px; }
}
@media (max-width: 560px) {
  .contact-form, .contact-sent { padding: 20px; }
  .agency-body { padding: 22px 20px; }
  .rich { font-size: 15px; }
}


/* =========================================================
   RÉFÉRENCEMENT : liens des cartes, fil d'Ariane, pages d'annonces et de liste
   ========================================================= */
.card-link { color: inherit; }
.card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-card); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 2px solid var(--hof); outline-offset: 4px; }
.card .media-nav, .card .dots, .card .badge { z-index: 3; }
.row-h { font: inherit; margin: 0; }
.agence-local { max-width: 720px; margin-top: 40px; font-size: 17px; line-height: 1.6; color: var(--foggy); }
.agence-local a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.footer-addr { margin-top: 16px; color: var(--foggy); font-size: 14px; line-height: 1.5; }
.breadcrumb { padding-top: 28px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: 13px; color: var(--foggy); }
.breadcrumb li + li::before { content: '›'; margin-right: 6px; color: var(--grey-500); }
.breadcrumb a:hover { color: var(--hof); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--hof); }
.fiche { margin-top: 16px; border: 1px solid var(--bebe); border-radius: var(--r-block); overflow: hidden; background: #fff; }
.fiche .m-viewer { padding: 8px 8px 0; }
.fiche .m-aside { top: calc(var(--nav) + 16px); }
.fiche-more, .hub { padding-top: 56px; padding-bottom: 96px; }
.fiche-more h2, .hub-sec h2 { margin-bottom: 20px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.hub-sec h2 small { margin-left: 6px; color: var(--foggy); font-size: 15px; font-weight: 500; }
.hub-sec + .hub-sec { margin-top: 56px; }
.hub { padding-top: 8px; }
.grid-biens { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 24px; }
.fiche-more-all { margin-top: 32px; font-weight: 600; }
.fiche-more-all a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.m-wait-img { width: 100%; height: 100%; object-fit: cover; }
.mv-slide img { height: auto; }
@media (max-width: 900px) { .fiche .m-body { padding: 20px 16px 28px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
