/* ═══════════════════════════════════════════════════════════════════════════
   WALDHOF — V5 « recréation » : pages catalogue (à vendre, locations, toutes, communes), deuxième version.
   Galerie à trois colonnes, capsule de filtres au dessin du moteur de l'accueil (collante), petite carte carrée
   qui suit le bien regardé (colonne latérale ; vignette sur mobile), vue « Index » typographique, vue carte en grand.
   La mécanique reste celle de js/app.js et js/map.js (mêmes identifiants) ; comportements v5 : js/v5.js.
   ═══════════════════════════════════════════════════════════════════════════ */

.v5-cat main { display: block; background: #fff; }
.v5-cat .container { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.v5-cat [hidden] { display: none !important; }
.v5-cat { --view: "View"; --bar-h: 76px; }
html[lang="fr"] .v5-cat { --view: "Voir"; }

/* ── Haut de page : fil d'Ariane, grand titre à gauche, présentation à droite ── */
.ch { padding: calc(var(--hd-h) + clamp(32px, 4.6vw, 76px)) 0 clamp(26px, 3.2vw, 44px); }
.ch__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px clamp(32px, 6vw, 112px); align-items: end; }
.crumbs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--mute); }
.crumbs a { color: var(--ink-2); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.45s var(--e-out); }
.crumbs a:hover { background-size: 100% 1px; }
.crumbs .i { width: 14px; height: 14px; color: var(--line-2); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.ch__h { max-width: 15ch; font-size: clamp(2.3rem, 1.2rem + 3.2vw, 4.4rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.045em; text-wrap: balance; }
.ch__p { max-width: 54ch; padding-bottom: 6px; font-size: clamp(0.95rem, 0.92rem + 0.15vw, 1.03rem); line-height: 1.7; color: var(--ink-2); text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Onglets : vente, saisonnier, longue durée (même contrôle segmenté que la sélection de l'accueil) ── */
.v5-cat .section[data-tabs] { padding-bottom: clamp(72px, 8vw, 128px); }
.v5-cat .tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; margin-bottom: 18px; padding: 4px; border-radius: 14px; background: var(--paper); }
.v5-cat .tab-btn { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 11px; font-size: 0.875rem; font-weight: 600; color: var(--ink-2);
  transition: background-color 0.3s var(--e-out), color 0.3s var(--e-out), box-shadow 0.3s var(--e-out); }
.v5-cat .tab-btn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.6); }
.v5-cat .tab-btn.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(14, 20, 23, 0.06), 0 4px 12px -6px rgba(14, 20, 23, 0.22); }

/* ── Barre collante : la capsule de filtres à gauche, compteur, tri et vues à droite ── */
.v5-cat .fbar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 12px 18px; margin: 0 calc(var(--gut) * -1) clamp(28px, 3vw, 44px); padding: 8px var(--gut);
  border-bottom: 1px solid transparent; transition: top 0.5s var(--e-out), background-color 0.35s var(--e-out), border-color 0.35s var(--e-out), padding 0.35s var(--e-out); }
html:has(.hd:not(.is-hidden)) .v5-cat .fbar { top: calc(var(--hd-h) - 1px); }
.v5-cat .fbar.is-stuck { padding-block: 9px; background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
.v5-cat .cap { display: flex; align-items: stretch; min-width: 0; padding: 6px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--sh-1);
  transition: box-shadow 0.4s var(--e-out), border-color 0.4s var(--e-out); }
.v5-cat .fbar.is-stuck .cap { box-shadow: none; border-color: var(--line-2); }
.v5-cat .fbtn { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 14px; row-gap: 3px; align-content: center; justify-items: start;
  min-width: 150px; min-height: 60px; padding: 8px 18px; border-radius: 14px; text-align: left; transition: background-color 0.3s var(--e-out), min-height 0.35s var(--e-out); }
.v5-cat .fbtn:hover, .v5-cat .fbtn:focus-visible { background: var(--paper); }
.v5-cat .cap .fbtn + .fbtn::before, .v5-cat .cap #dateFilter .fbtn::before { content: ""; position: absolute; left: -1px; top: 26%; width: 1px; height: 48%; background: var(--line); transition: opacity 0.3s; }
.v5-cat .cap .fbtn:hover::before, .v5-cat .cap .fbtn:hover + .fbtn::before, .v5-cat .cap .fbtn:hover + #dateFilter .fbtn::before { opacity: 0; }
.v5-cat .fbtn__k { grid-column: 1; grid-row: 1; display: inline-flex; align-items: center; gap: 7px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute);
  transition: opacity 0.25s var(--e-out); }
.v5-cat .fbtn__v { grid-column: 1; grid-row: 2; max-width: 20ch; overflow: hidden; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; text-overflow: ellipsis; }
.v5-cat .fbtn > .i-chev { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 16px; height: 16px; color: var(--mute); }
.v5-cat .fbtn.is-active .fbtn__k::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sea); }
.v5-cat .fbtn__cnt { display: none !important; }
.v5-cat #dateFilter { display: flex; }
.v5-cat .cap__ai { display: inline-flex; align-items: center; gap: 10px; margin-left: 6px; padding: 0 22px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 0.9375rem; font-weight: 600;
  white-space: nowrap; transition: background-color 0.3s var(--e-out); }
.v5-cat .cap__ai svg { width: 18px; height: 18px; color: #fff; }
.v5-cat .cap__ai:hover { background: var(--navy); }
html:not(.has-ai) .v5-cat .ai-entry { display: none; }
/* collée : la capsule s'affine (valeurs seules) */
.v5-cat .fbar.is-stuck .fbtn { min-height: 46px; }
.v5-cat .fbar.is-stuck .fbtn__k { position: absolute; opacity: 0; pointer-events: none; }
.v5-cat .fbar__spacer { flex: 1 1 8px; }
.v5-cat .toolbar { display: flex; align-items: center; gap: 10px 18px; }
.v5-cat .toolbar__count { font-size: 0.875rem; color: var(--mute); white-space: nowrap; }
.v5-cat .toolbar__count b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.v5-cat .toolbar__right { display: flex; align-items: center; gap: 10px; }
.v5-cat .select { position: relative; }
.v5-cat .select select { appearance: none; -webkit-appearance: none; min-height: 44px; padding: 0 30px 0 12px; border: 0; border-radius: 12px; background: transparent;
  font-size: 0.875rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.v5-cat .select select:hover { background: var(--paper); }
.v5-cat .select::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 1.5px solid var(--mute); border-bottom: 1.5px solid var(--mute);
  transform: rotate(45deg); pointer-events: none; }
.v5-cat .view-toggle { display: inline-flex; gap: 2px; padding: 4px; border-radius: 14px; background: var(--paper); }
.v5-cat .view-toggle button { display: grid; place-items: center; width: 40px; height: 36px; border-radius: 10px; color: var(--mute); transition: background-color 0.3s var(--e-out), color 0.3s var(--e-out), box-shadow 0.3s var(--e-out); }
.v5-cat .view-toggle button:hover { color: var(--ink); }
.v5-cat .view-toggle button.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(14, 20, 23, 0.06), 0 4px 12px -6px rgba(14, 20, 23, 0.22); }
.v5-cat .view-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* panneaux des filtres : sous la barre, au droit de leur segment (js/v5.js) */
.v5-cat .fbar__panels { position: absolute; left: 0; right: 0; top: 100%; height: 0; }
.v5-cat .fb-panel, .v5-cat .df-cal { position: absolute; top: 8px; left: var(--px, var(--gut)); z-index: 2; width: min(380px, calc(100vw - 2 * var(--gut))); max-height: min(68vh, 560px);
  overflow-y: auto; overscroll-behavior: contain; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--sh-2); animation: v5pop 0.35s var(--e-out); }
@keyframes v5pop { from { opacity: 0; transform: translateY(-6px); } }
.v5-cat .fb-panel--beds { width: auto; min-width: 280px; max-width: calc(100vw - 2 * var(--gut)); }
.v5-cat .fb-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 1.35rem; line-height: 1; color: var(--mute); }
.v5-cat .fb-close:hover { background: var(--paper); color: var(--ink); }
.v5-cat .fb-opt { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 10px; border-radius: 10px; font-size: 0.9375rem; cursor: pointer; }
.v5-cat .fb-opt:hover { background: var(--paper); }
.v5-cat .fb-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.v5-cat .fb-opt i { font-style: normal; color: var(--mute); }
.v5-cat .fb-opt--all { font-weight: 600; }
.v5-cat .fb-rule { height: 1px; margin: 8px 10px; background: var(--line); }
.v5-cat .fb-sec__btn { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 42px; padding: 0 10px; border-radius: 10px; font-size: 0.9375rem; font-weight: 600; }
.v5-cat .fb-sec__btn:hover { background: var(--paper); }
.v5-cat .fb-sec__btn svg { width: 16px; height: 16px; fill: none; stroke: var(--mute); stroke-width: 1.8; transition: transform 0.4s var(--e-out); }
.v5-cat .fb-sec__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.v5-cat .fb-sec__body { padding-left: 12px; margin-left: 10px; border-left: 1px solid var(--line); }
.v5-cat .filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-right: 30px; }
.v5-cat #locFilters { display: none; }                       /* source de vérité, pilotée par les panneaux */
.v5-cat .filters__label { width: 100%; margin-bottom: 6px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.v5-cat .chip { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 11px;
  background: #fff; font-size: 0.875rem; font-weight: 600; color: var(--ink); transition: border-color 0.3s var(--e-out), background-color 0.3s var(--e-out), color 0.3s var(--e-out); }
.v5-cat .chip:hover { border-color: var(--ink); }
.v5-cat .chip.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.v5-cat .chip.is-empty { opacity: 0.35; }
.v5-cat #budgetFilters .chip { justify-content: flex-start; width: 100%; }
/* calendrier des disponibilités (locations saisonnières) */
.v5-cat .df-cal { width: min(640px, calc(100vw - 2 * var(--gut))); padding: 18px 20px 20px; }
.v5-cat .df-cal__head { position: absolute; left: 14px; right: 50px; top: 14px; display: flex; justify-content: space-between; pointer-events: none; }
.v5-cat .df-cal__nav { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--ink); pointer-events: auto; }
.v5-cat .df-cal__nav:hover { background: var(--paper); }
.v5-cat .df-cal__nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.v5-cat .df-cal__months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.v5-cat .df-cal__name { margin-bottom: 10px; text-align: center; font-size: 0.875rem; font-weight: 700; text-transform: capitalize; }
.v5-cat .df-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.v5-cat .df-cal__dh { padding: 4px 0; text-align: center; font-size: 0.6875rem; font-weight: 600; color: var(--mute); text-transform: uppercase; }
.v5-cat .df-day { height: 38px; border-radius: 10px; font-size: 0.8125rem; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.v5-cat .df-day:hover { background: var(--paper); }
.v5-cat .df-day--dis { color: var(--line-2); cursor: default; pointer-events: none; }
.v5-cat .df-day--in { background: var(--paper); border-radius: 0; }
.v5-cat .df-day--sel { background: var(--ink); color: #fff; }
.v5-cat .df-cal__clear { margin-top: 14px; font-size: 0.8125rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── Liste et colonne latérale ── */
.v5-cat .catalog { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 31vw, 470px); gap: clamp(28px, 3.2vw, 56px); align-items: start; }
.v5-cat .tab-panel { display: none; }
.v5-cat .tab-panel.is-active { display: block; }
.v5-cat .cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(44px, 4vw, 64px) clamp(20px, 2vw, 32px); }
.v5-cat .cards-empty { padding: 48px 0; text-align: center; color: var(--mute) !important; }
.v5-cat .cards-empty a { color: var(--ink) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* colonne latérale : petite carte carrée (repères discrets, le bien regardé mis en avant), légende, appel confidentiel */
.v5-cat .cat-side { position: sticky; top: calc(var(--bar-h) + 20px); display: grid; gap: 18px; transition: top 0.5s var(--e-out); }
html:has(.hd:not(.is-hidden)) .v5-cat .cat-side { top: calc(var(--hd-h) + var(--bar-h) + 20px); }
.v5-cat .map-wrap { position: relative; }
.v5-cat .prop-map { position: relative; z-index: 0; height: calc(100svh - 76px - 64px); min-height: 480px; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); isolation: isolate; }
.v5-cat .map-wrap.is-mini .prop-map { height: clamp(380px, calc(100svh - var(--bar-h) - 220px), 760px); min-height: 0; aspect-ratio: auto; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 1101px) { html:has(.hd:not(.is-hidden)) .v5-cat .map-wrap.is-mini .prop-map { height: clamp(380px, calc(100svh - var(--hd-h) - var(--bar-h) - 220px), 760px); } }
.v5-cat .map-wrap.is-mini .leaflet-control-zoom, .v5-cat .map-wrap.is-mini .map-note { display: none; }
.v5-cat .map-open { position: absolute; z-index: 500; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--ink);
  box-shadow: 0 1px 2px rgba(14, 20, 23, 0.08), 0 8px 20px -10px rgba(14, 20, 23, 0.4); transition: transform 0.3s var(--e-out), background-color 0.3s var(--e-out); }
.v5-cat .map-open .i { width: 17px; height: 17px; }
.v5-cat .map-open:hover { transform: scale(1.06); }
.v5-cat .map-back { display: none; }
.v5-cat .map-note { margin-top: 10px; font-size: 0.75rem; color: var(--mute); }
.v5-cat .cat-side__cap { display: grid; gap: 5px; min-height: 86px; padding: 0 4px; }
.v5-cat .cat-side__k { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.v5-cat .cat-side__t { font-size: 1rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v5-cat .cat-side__s { font-size: 0.8125rem; line-height: 1.45; color: var(--mute); font-variant-numeric: tabular-nums; }
.v5-cat .cat-side__ct { font-size: 1.0625rem; font-weight: 500; line-height: 1.38; letter-spacing: -0.015em; }
.v5-cat .cat-side__cl { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; font-size: 0.875rem; font-weight: 600; }
.v5-cat .cat-side__cl .i { width: 17px; height: 17px; transition: transform 0.45s var(--e-out); }

/* repères : pastilles discrètes sur la petite carte ; le bien regardé en grand, avec un halo */
.v5-cat .leaflet-control-attribution { font-family: var(--f); color: var(--ink-2); }
.v5-cat .leaflet-control-attribution a { color: var(--ink); }
.v5-cat .wal-pin { display: grid; place-items: center; }
.v5-cat .wal-pin .wal-house { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); border: 2px solid #fff;
  box-shadow: 0 6px 16px -6px rgba(1, 34, 47, 0.6); transition: width 0.3s var(--e-out), height 0.3s var(--e-out), background-color 0.2s var(--e-out), transform 0.2s var(--e-out); }
.v5-cat .wal-pin .wal-house svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v5-cat .wal-pin:hover .wal-house { transform: scale(1.12); background: var(--navy); }
.v5-cat .map-wrap.is-mini .wal-pin .wal-house { width: 13px; height: 13px; border-width: 2px; background: var(--navy); box-shadow: 0 2px 6px -2px rgba(1, 34, 47, 0.55); }
.v5-cat .map-wrap.is-mini .wal-pin .wal-house svg { display: none; }
.v5-cat .wal-pin.is-focus .wal-house, .v5-cat .map-wrap.is-mini .wal-pin.is-focus .wal-house { width: 34px; height: 34px; border-width: 2px; background: var(--ink); box-shadow: 0 10px 24px -8px rgba(1, 34, 47, 0.7); }
.v5-cat .map-wrap.is-mini .wal-pin.is-focus .wal-house svg { display: block; }
.v5-cat .wal-pin.is-focus::before { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid var(--ink);
  animation: walPulse 1.8s var(--e-out) infinite; pointer-events: none; }
@keyframes walPulse { from { transform: scale(0.9); opacity: 0.55; } to { transform: scale(2.1); opacity: 0; } }
.v5-cat .leaflet-popup-content-wrapper { padding: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--sh-2); }
.v5-cat .leaflet-popup-content { margin: 0; font-family: var(--f); }
.v5-cat .wal-pop { width: 250px; }
.v5-cat .wal-pop img { display: block; width: 100%; height: 150px; object-fit: cover; object-position: 50% 50%; }
.v5-cat .wal-pop__body { display: grid; gap: 4px; padding: 12px 14px 14px; }
.v5-cat .wal-pop__body strong { font-size: 0.875rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.v5-cat .wal-pop__price { font-size: 0.875rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.v5-cat .wal-pop__price em { font-style: normal; font-weight: 500; font-size: 0.75rem; color: var(--mute); }
.v5-cat .wal-pop__link { margin-top: 4px; font-size: 0.8125rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* vue carte : la carte en grand (ordinateur), la liste masquée ; retour à la liste en bas */
.v5-cat .catalog.is-mapview { grid-template-columns: minmax(0, 1fr); }
.v5-cat .catalog.is-mapview .catalog__list, .v5-cat .catalog.is-mapview .cat-side__cap, .v5-cat .catalog.is-mapview .map-open { display: none; }
.v5-cat .catalog.is-mapview .cat-side { position: static; }
.v5-cat .catalog.is-mapview .prop-map { height: calc(100svh - var(--hd-h) - var(--bar-h) - 40px); min-height: 460px; }
.v5-cat .catalog.is-mapview .map-back { position: absolute; z-index: 500; left: 50%; bottom: 46px; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.9375rem; font-weight: 600; box-shadow: var(--sh-2); transform: translateX(-50%); transition: background-color 0.3s var(--e-out); }
.v5-cat .catalog.is-mapview .map-back:hover { background: var(--navy); }
.v5-cat .catalog.is-mapview .map-back .i { width: 18px; height: 18px; }

/* ── Cartes de biens : portrait 4:5 cadré à gauche (sceau des photos hors champ), comme à l'accueil ── */
.v5-cat .card { position: relative; display: flex; flex-direction: column; min-width: 0; }
/* pas de contexte d'empilement ici : le cœur et les flèches doivent passer au-dessus du lien qui couvre la carte */
.v5-cat .card__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.v5-cat .card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; transform: scale(1.02); transition: transform 1.4s var(--e-out); }
.v5-cat .card:hover .card__media img { transform: scale(1.06); }
/* (pastille « Voir » au survol retirée le 27-10, demande d'Antoine : la photo défile au survol, rien ne la masque) */
.v5-cat .card__badges { position: absolute; z-index: 2; left: 14px; top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.v5-cat .card__save { position: absolute; z-index: 3; top: 12px; right: 12px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform 0.3s var(--e-out); }
.v5-cat .card__save:hover { transform: scale(1.06); }
.v5-cat .card__save svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.v5-cat .card__save.is-saved svg { fill: var(--ink); }
.v5-cat .card__ph { position: absolute; z-index: 3; bottom: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transform: translateY(6px); transition: opacity 0.3s var(--e-out), transform 0.4s var(--e-out), background-color 0.3s var(--e-out); }
.v5-cat .card__ph:hover { background: #fff; }
.v5-cat .card__ph--prev { right: 54px; }
.v5-cat .card__ph--next { right: 12px; }
.v5-cat .card__ph svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; }
.v5-cat .card:hover .card__ph, .v5-cat .card__ph:focus-visible { opacity: 1; transform: none; }
.v5-cat .card__ph-count { position: absolute; z-index: 3; left: 12px; bottom: 12px; padding: 4px 9px; border-radius: 8px; background: rgba(14, 20, 23, 0.6); color: #fff; font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.v5-cat .card__body { display: grid; gap: 7px; padding: 18px 4px 0; }
.v5-cat .card__loc { display: flex; align-items: center; gap: 6px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.v5-cat .card__loc svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.v5-cat .card__title { min-height: 2.7em; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.018em; color: var(--ink); text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v5-cat .card__specs { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.8125rem; color: var(--mute); }
.v5-cat .card__spec { display: inline-flex; align-items: center; gap: 5px; }
.v5-cat .card__spec + .card__spec::before { content: "·"; margin-right: 7px; color: var(--line-2); }
.v5-cat .card__spec svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.v5-cat .card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.v5-cat .card__price { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.v5-cat .card__price-sub { font-size: 0.75rem; color: var(--mute); }
.v5-cat .card__price-sub:empty { display: none; }
.v5-cat .card__go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink);
  transition: background-color 0.35s var(--e-out), border-color 0.35s var(--e-out), color 0.35s var(--e-out); }
.v5-cat .card__go::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-md); }
.v5-cat .card__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.45s var(--e-out); }
.v5-cat .card:hover .card__go { background: var(--ink); border-color: var(--ink); color: #fff; }
.v5-cat .card:hover .card__go svg { transform: translateX(2px); }
.v5-cat .card__go:focus-visible::after { outline: 2px solid var(--sea); outline-offset: 4px; }
/* survol (souris) : les photos défilent selon la position du curseur, comme à l'accueil ; repères en bas de la photo */
.v5-cat .card__alt { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity 0.45s var(--e-out); }
.v5-cat .card__alt.is-on { opacity: 1; }
.v5-cat .card__alt img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--e-out); }
.v5-cat .card:hover .card__alt img { transform: scale(1.06); }
.v5-cat .card__ticks { position: absolute; z-index: 3; left: 18px; right: 18px; bottom: 16px; display: flex; gap: 5px; opacity: 0; transition: opacity 0.4s var(--e-out); pointer-events: none; }
.v5-cat .card__ticks i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.45); box-shadow: 0 1px 6px rgba(3, 12, 17, 0.28); transition: background-color 0.3s var(--e-out); }
.v5-cat .card__ticks i.is-on { background: #fff; }
.v5-cat .card:hover .card__ticks { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .v5-cat .card__media[data-gal] .card__ph { display: none; }
}
/* bien désigné sur la petite carte */
.v5-cat .card.is-flash .card__media { animation: v5flash 1.4s var(--e-out); }
@keyframes v5flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(44, 106, 138, 0); } 25% { box-shadow: 0 0 0 4px rgba(44, 106, 138, 0.55); } }
/* apparition (une fois) */
html.v5-cat-rv .v5-cat .tab-panel .card:not(.is-in) { opacity: 0; transform: translateY(26px); }
html.v5-cat-rv .v5-cat .tab-panel .card.is-in { transition: opacity 0.8s var(--e-out) var(--d, 0ms), transform 0.9s var(--e-out) var(--d, 0ms); }

/* ── Vue « Index » : un sommaire typographique ; la photo suit le curseur (js/v5.js) ── */
.v5-cat .cards--list { display: block !important; counter-reset: ix; border-top: 1px solid var(--line); }
.v5-cat .cards--list .card { counter-increment: ix; display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(120px, 0.42fr) minmax(130px, 0.4fr) auto; align-items: center; column-gap: 24px;
  padding: 22px 10px; border-bottom: 1px solid var(--line); border-radius: 0; transition: background-color 0.35s var(--e-out); }
.v5-cat .cards--list .card::before { content: counter(ix, decimal-leading-zero); font-size: 0.8125rem; font-weight: 600; color: var(--mute); font-variant-numeric: tabular-nums; }
.v5-cat .cards--list .card:hover { background: var(--paper); }
.v5-cat .cards--list .card__media { display: none; }
.v5-cat .cards--list .card__body { display: contents; }
.v5-cat .cards--list .card__title { grid-column: 2; grid-row: 1; min-height: 0; font-size: clamp(1.15rem, 0.95rem + 0.6vw, 1.55rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.2;
  transition: transform 0.5s var(--e-out); }
.v5-cat .cards--list .card:hover .card__title { transform: translateX(8px); }
.v5-cat .cards--list .card__loc { grid-column: 3; grid-row: 1; }
.v5-cat .cards--list .card__specs { grid-column: 4; grid-row: 1; }
.v5-cat .cards--list .card__foot { grid-column: 5; grid-row: 1; margin: 0; padding: 0; border: 0; gap: 18px; }
.v5-cat .cards--list .card__foot > div { text-align: right; }
.v5-cat .cards--list .card__go::after { border-radius: 0; }
.ix-pv { position: fixed; left: 0; top: 0; z-index: 90; width: 260px; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--paper); box-shadow: var(--sh-2);
  opacity: 0; pointer-events: none; transition: opacity 0.25s var(--e-out); will-change: transform; }
.ix-pv.is-on { opacity: 1; }
.ix-pv img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; }

/* ── « Plus d'espace, même budget » ── */
.v5-cat .larger-props { margin-top: clamp(64px, 7vw, 104px); padding-top: clamp(40px, 4vw, 56px); border-top: 1px solid var(--line); }
.v5-cat .larger-props__head { display: grid; gap: 10px; justify-items: start; margin-bottom: clamp(24px, 3vw, 36px); }
.v5-cat .larger-props__title { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.3rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.035em; color: var(--ink); }
.v5-cat .larger-props__sub { max-width: 60ch; color: var(--ink-2); }
.v5-cat .larger-props .cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ── Présentation et liens par localité : deux colonnes (titre et localités | texte) ── */
.v5-cat .cat-intro { padding-block: 0 clamp(72px, 8vw, 128px); }
.v5-cat .landing-intro { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); grid-auto-flow: dense; column-gap: clamp(40px, 7vw, 128px); row-gap: 16px; align-items: start;
  padding-top: clamp(48px, 5vw, 72px); border-top: 1px solid var(--line); color: var(--ink-2); line-height: 1.75; }
.v5-cat .landing-intro > p:not([class]) { grid-column: 2; max-width: 66ch; }
.v5-cat .landing-intro > .cat-intro__h, .v5-cat .landing-intro > .commune-links, .v5-cat .landing-intro > .cat-also { grid-column: 1; }
.v5-cat .cat-intro__h { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.3rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.035em; color: var(--ink); }
.v5-cat .cat-also { font-size: 0.9375rem; color: var(--ink-2); }
.v5-cat .cat-also a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.v5-cat .cat-also a:hover { text-decoration-color: currentColor; }
.v5-cat .commune-links { display: flex; flex-wrap: wrap; gap: 8px; }
.v5-cat .commune-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 15px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.875rem; font-weight: 600; color: var(--ink);
  transition: border-color 0.3s var(--e-out), background-color 0.3s var(--e-out), color 0.3s var(--e-out); }
.v5-cat .commune-links a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ── Portefeuille confidentiel : photo authentique à gauche, panneau marine à droite (comme le contact de l'accueil) ── */
.v5-cat .section--alt { padding-block: 0 clamp(80px, 8vw, 128px); background: #fff; }
.v5-cat .offmarket { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 12px; align-items: stretch; }
.v5-cat .offmarket__img { position: relative; min-height: 420px; border-radius: var(--r-xl); overflow: hidden; background: var(--paper); }
.v5-cat .offmarket__img picture, .v5-cat .offmarket__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.v5-cat .offmarket__img img { object-fit: cover; }
/* portefeuille confidentiel : sans cadre bleu (demande d'Antoine du 26-10) — panneau clair, mêmes champs et même envoi */
.v5-cat .offmarket__panel { display: grid; gap: clamp(28px, 3vw, 40px); padding: clamp(32px, 5vw, 76px); border-radius: var(--r-xl); background: var(--bg-soft); color: var(--ink); }
.v5-cat .offmarket .eyebrow { margin-bottom: 18px; color: var(--mute); }
.v5-cat .offmarket .eyebrow::before { background: var(--mute); }
.v5-cat .offmarket h2 { font-size: clamp(2rem, 1.15rem + 2.4vw, 3.3rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.04em; color: var(--ink); text-wrap: balance; }
.v5-cat .offmarket__lead { margin-top: 18px; max-width: 52ch; color: var(--ink-2); line-height: 1.65; }
.v5-cat .offmarket__points { display: grid; gap: 10px; margin-top: 24px; }
.v5-cat .offmarket__points li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.v5-cat .offmarket__points svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--sea); stroke-width: 1.8; }
.v5-cat .offmarket__form { padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line-2); color: var(--ink); }
.v5-cat .offmarket__h { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); }
.v5-cat .offmarket__sub { margin-top: 6px; margin-bottom: 22px; font-size: 0.875rem; color: var(--mute); }
.v5-cat .offmarket__form .form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.v5-cat .offmarket__form .field { display: grid; gap: 6px; }
.v5-cat .offmarket__form label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.v5-cat .offmarket__form .req { color: var(--sea); }
.v5-cat .offmarket__form .opt { font-weight: 500; text-transform: none; letter-spacing: 0; }
.v5-cat .offmarket__form input, .v5-cat .offmarket__form select { width: 100%; min-height: 46px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: transparent; color: var(--ink); font-size: 1rem; transition: border-color 0.25s; }
.v5-cat .offmarket__form input::placeholder { color: #7a766e; }
.v5-cat .offmarket__form select option { color: var(--ink); }
.v5-cat .offmarket__form input:hover, .v5-cat .offmarket__form select:hover { border-bottom-color: #a29e95; }
.v5-cat .offmarket__form input:focus, .v5-cat .offmarket__form select:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.v5-cat .offmarket__form .select select { padding-right: 26px; border-radius: 0; font-weight: 500; }
.v5-cat .offmarket__form .select select:hover { background: transparent; }
.v5-cat .offmarket__form .select::after { right: 6px; border-color: var(--mute); }
.v5-cat .offmarket__go { grid-column: 1 / -1; width: 100%; margin-top: 8px; background: var(--ink); color: #fff; }
.v5-cat .offmarket__go:hover { background: var(--navy); }
.v5-cat .offmarket__note { margin-top: 16px; font-size: 0.8125rem; color: var(--mute); }
.v5-cat .offmarket__note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ── Écrans moyens : deux colonnes de biens ── */
@media (max-width: 1359px) {
  .v5-cat .fbtn { min-width: 132px; padding-inline: 16px; }
  .v5-cat .toolbar__count { display: none; }
}
/* ── Tablette et mobile : la petite carte devient une vignette flottante (en bas à gauche) pendant la liste ;
      « Carte » l'ouvre en plein écran ── */
@media (max-width: 1100px) {
  .v5-cat .catalog { grid-template-columns: minmax(0, 1fr); }
  .v5-cat .cat-side { position: static; display: block; height: 0; }
  .v5-cat .cat-side__cap,   .v5-cat .map-wrap.is-mini { position: fixed; z-index: 80; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 124px; height: 124px; border-radius: 22px;
    box-shadow: 0 2px 6px rgba(14, 20, 23, 0.1), 0 22px 44px -18px rgba(14, 20, 23, 0.55); opacity: 0; transform: translateY(14px) scale(0.92); pointer-events: none;
    transition: opacity 0.4s var(--e-out), transform 0.5s var(--e-out); }
  html.v5-pip .v5-cat .map-wrap.is-mini { opacity: 1; transform: none; pointer-events: auto; }
  .v5-cat .map-wrap.is-mini .prop-map { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 22px; box-shadow: inset 0 0 0 1px rgba(14, 20, 23, 0.08); }
  .v5-cat .map-wrap.is-mini .leaflet-container { pointer-events: none; }
  .v5-cat .map-wrap.is-mini .map-open { inset: 0; width: auto; height: auto; place-items: start end; padding: 8px; border-radius: 22px; background: transparent; box-shadow: none; }
  .v5-cat .map-wrap.is-mini .map-open .i { box-sizing: content-box; width: 14px; height: 14px; padding: 6px; border-radius: 9px; background: #fff; box-shadow: 0 2px 8px -2px rgba(14, 20, 23, 0.35); }
  .v5-cat .map-wrap.is-mini .map-open:hover { transform: none; }
  .v5-cat .map-wrap.is-mini .leaflet-control-attribution { margin: 0 !important; padding: 0 5px; font-size: 8px; line-height: 1.6; letter-spacing: -0.01em; white-space: nowrap; border-top-left-radius: 6px; }
  .v5-cat .map-wrap.is-mini .wal-pin .wal-house { width: 9px; height: 9px; border-width: 1.5px; }
  .v5-cat .map-wrap.is-mini .wal-pin.is-focus .wal-house { width: 24px; height: 24px; }
  .v5-cat .map-wrap.is-mini .wal-pin.is-focus .wal-house svg { width: 12px; height: 12px; }
  /* vue carte : plein écran, retour à la liste en bas */
  .v5-cat .catalog.is-mapview .map-wrap { position: fixed; inset: 0; z-index: 170; width: auto; height: auto; padding: 0; background: #fff; opacity: 1; transform: none; }
  .v5-cat .catalog.is-mapview .prop-map { height: 100%; min-height: 0; border-radius: 0; }
  .v5-cat .catalog.is-mapview .map-note { position: absolute; z-index: 500; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top, 0px)); margin: 0; padding: 8px 12px;
    border-radius: 12px; background: rgba(255, 255, 255, 0.94); box-shadow: var(--sh-1); text-align: center; }
  .v5-cat .catalog.is-mapview .map-back { bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .v5-cat .catalog.is-mapview .leaflet-top { top: calc(64px + env(safe-area-inset-top, 0px)); }
  html.v5-maplock, html.v5-maplock body { overflow: hidden; }
}
@media (max-width: 980px) {
  .ch__in { grid-template-columns: 1fr; align-items: start; }
  .v5-cat .offmarket { grid-template-columns: 1fr; }
  .v5-cat .offmarket__img { min-height: 0; aspect-ratio: 16 / 10; }
  .v5-cat .landing-intro { grid-template-columns: 1fr; }
  .v5-cat .landing-intro > p:not([class]), .v5-cat .landing-intro > .cat-intro__h, .v5-cat .landing-intro > .commune-links, .v5-cat .landing-intro > .cat-also { grid-column: 1; }
  .v5-cat .landing-intro > .cat-intro__h { margin-top: 16px; }
  .v5-cat .cards--list .card { grid-template-columns: 44px minmax(0, 1fr) auto; row-gap: 6px; }
  .v5-cat .cards--list .card__loc { grid-column: 2; grid-row: 2; }
  .v5-cat .cards--list .card__specs { display: none; }
  .v5-cat .cards--list .card__foot { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 760px) {
  .ch__h { font-size: clamp(2.05rem, 1.2rem + 4vw, 2.8rem); }
  .ch__p { -webkit-line-clamp: 6; }
  .v5-cat .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .v5-cat .tab-btn { justify-content: center; min-height: 46px; padding: 6px 8px; font-size: 0.8125rem; line-height: 1.2; text-align: center; }
  /* pas de flou d'arrière-plan ici : il ferait des panneaux fixes (volets du bas) des enfants de la barre */
  .v5-cat .fbar { flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .v5-cat .fbar.is-stuck { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .v5-cat .fbar::-webkit-scrollbar { display: none; }
  .v5-cat .fbar > * { flex: none; }
  .v5-cat .fbar__spacer { display: none; }
  .v5-cat .cap { padding: 4px; border-radius: 18px; box-shadow: none; border-color: var(--line-2); }
  .v5-cat .fbtn { min-width: 0; min-height: 52px; padding: 6px 14px; }
  .v5-cat .fbtn__v { max-width: 14ch; font-size: 0.875rem; }
  .v5-cat .cap__ai { padding: 0 16px; font-size: 0.875rem; }
  .v5-cat .toolbar { flex-wrap: nowrap; }
  .v5-cat .fbar__panels { position: fixed; inset: auto 0 0; top: auto; height: auto; z-index: 160; }
  .v5-cat .fb-panel, .v5-cat .df-cal { position: fixed; left: 8px !important; right: 8px; bottom: 8px; top: auto; width: auto; max-height: 76vh; border-radius: 20px; }
  .v5-cat .df-cal__months { grid-template-columns: 1fr; }
  .v5-cat .cards { grid-template-columns: 1fr; row-gap: 44px; }
  .v5-cat .card__media { aspect-ratio: 1 / 1.08; }
  .v5-cat .card__ph { opacity: 1; transform: none; background: rgba(255, 255, 255, 0.86); }
  .v5-cat .cards--list .card { padding: 14px 4px; }
  .v5-cat .cards--list .card__title { font-size: 1rem; font-weight: 600; letter-spacing: -0.015em; }
  .v5-cat .offmarket__form .form { grid-template-columns: 1fr; }
}
/* écrans tactiles : l'index montre une vignette (pas de survol pour faire apparaître la photo) */
@media (hover: none), (max-width: 760px) {
  .v5-cat .cards--list .card { grid-template-columns: 72px minmax(0, 1fr) auto; column-gap: 16px; row-gap: 6px; }
  .v5-cat .cards--list .card::before { display: none; }
  .v5-cat .cards--list .card__media { display: block; grid-column: 1; grid-row: 1 / 3; width: 72px; aspect-ratio: 1; border-radius: 12px; }
  .v5-cat .cards--list .card__media > :not(img) { display: none; }
  .v5-cat .cards--list .card__title { grid-column: 2; grid-row: 1; }
  .v5-cat .cards--list .card__loc { grid-column: 2; grid-row: 2; }
  .v5-cat .cards--list .card__specs { display: none; }
  .v5-cat .cards--list .card__foot { grid-column: 3; grid-row: 1 / 3; }
  .v5-cat .cards--list .card__go { width: 0; height: 0; border: 0; }
  .v5-cat .cards--list .card__go svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .v5-cat .fb-panel, .v5-cat .df-cal { animation: none; }
  .v5-cat .wal-pin.is-focus::before { animation: none; opacity: 0; }
  .v5-cat .card__media img, .v5-cat .cards--list .card__title { transition: none; }
}
