SPB Git forge

spb/immo-ka

Public

Immo-Ka — agrégateur des propriétés à vendre au Québec (73 connecteurs, ~40 000 annonces, React+FastAPI)

112commits 1branches 0releases
125.4 MBsize
maindefault branch
13 days agolast push
Python 47.5% HTML 27.9% TypeScript 15.5% CSS 7.2% JavaScript 2%

Mobile : verrou de scroll du bottom-sheet filtres, cibles tactiles ≥44 px, socle mobile ka-ui

- Home.tsx : verrou du scroll d arriere-plan quand la feuille de filtres est
  ouverte (body overflow hidden + cleanup) et fermeture par Escape.
- styles.css : extensions tactiles ::after pour a.ka-signup (99x17) et
  a.brand (92x27) ; z-index du sheet et de son backdrop bascules sur les
  variables du design system (--z-modal / --z-overlay).
- ka/tokens.css : nouvelle section SOCLE MOBILE OBLIGATOIRE (echelle --z-*,
  --vh100 dvh, .ka-bottombar, verrou ka-scroll-lock, filet anti-zoom iOS 16 px,
  extension tactile du badge).
- public/ka-agent.js : agent KA corrige (safe-area, textarea 16 px, plein
  ecran auto <=640 px + verrou scroll).
- Suppression du fichier orphelin frontend/styles.css (46 Ko, non importe).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Simon-Pierre Boucher committed 1 mo ago (Aug 19, 2026) parent feaefa8

5 changed files +261 −548

modified frontend/public/ka-agent.js +25 −7
@@ -17,18 +17,19 @@
17 17
18 18 /* ---------- styles ---------- */
19 19 var css = `
20 − .kaa-btn{position:fixed;right:18px;bottom:18px;z-index:2147483000;width:58px;height:58px;
20 + .kaa-btn{position:fixed;right:18px;bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:2147483000;width:58px;height:58px;
21 21 border-radius:50%;border:2px solid var(--ink,#141814);background:var(--accent,#d9f26b);
22 22 color:var(--on-accent,#141814);font:700 17px/1 "Space Grotesk",system-ui,sans-serif;
23 23 cursor:pointer;box-shadow:4px 4px 0 rgba(20,24,20,.85);display:flex;align-items:center;
24 − justify-content:center;transition:transform .15s;padding-bottom:env(safe-area-inset-bottom,0)}
24 + justify-content:center;transition:transform .15s}
25 25 .kaa-btn:hover{transform:translate(-2px,-2px)}
26 − .kaa-panel{position:fixed;right:16px;bottom:86px;z-index:2147483001;width:min(392px,calc(100vw - 24px));
27 − height:min(580px,calc(100dvh - 110px));display:none;flex-direction:column;background:var(--paper,#f5f3ee);
26 + .kaa-panel{position:fixed;right:16px;bottom:calc(86px + env(safe-area-inset-bottom,0px));z-index:2147483001;width:min(392px,calc(100vw - 24px));
27 + height:min(580px,calc(100vh - 110px));height:min(580px,calc(100dvh - 110px));display:none;flex-direction:column;background:var(--paper,#f5f3ee);
28 28 border:2px solid var(--ink,#141814);border-radius:14px;box-shadow:8px 8px 0 rgba(20,24,20,.85);
29 29 overflow:hidden;font-family:Inter,system-ui,sans-serif}
30 30 .kaa-panel.kaa-open{display:flex}
31 − .kaa-panel.kaa-full{right:0;bottom:0;width:100vw;height:100dvh;border-radius:0;border:0;box-shadow:none}
31 + .kaa-panel.kaa-full{right:0;bottom:0;width:100vw;height:100vh;height:100dvh;border-radius:0;border:0;box-shadow:none}
32 + html.kaa-lock,html.kaa-lock body{overflow:hidden!important;overscroll-behavior:none}
32 33 .kaa-head{display:flex;align-items:center;gap:9px;padding:11px 14px;background:var(--ink,#141814);
33 34 color:var(--paper,#f5f3ee);flex:none}
34 35 .kaa-head b{font:700 15px "Space Grotesk",system-ui,sans-serif;letter-spacing:-.02em}
@@ -53,7 +54,7 @@
53 54 border-radius:999px;background:var(--surface-2,#faf9f5)}
54 55 .kaa-in{display:flex;gap:8px;padding:11px;border-top:2px solid var(--ink,#141814);background:#fff;flex:none;
55 56 padding-bottom:calc(11px + env(safe-area-inset-bottom,0))}
56 − .kaa-in textarea{flex:1;resize:none;min-height:44px;max-height:110px;padding:11px 12px;font:13.5px/1.4 Inter,system-ui,sans-serif;
57 + .kaa-in textarea{flex:1;resize:none;min-height:44px;max-height:110px;padding:10px 12px;font:16px/1.4 Inter,system-ui,sans-serif;
57 58 border:1.5px solid var(--ink,#141814);border-radius:9px;background:var(--paper,#f5f3ee);outline:none}
58 59 .kaa-in button{min-width:52px;min-height:44px;border:1.5px solid var(--ink,#141814);border-radius:9px;
59 60 background:var(--ink,#141814);color:var(--accent,#d9f26b);font:700 16px "Space Grotesk",system-ui;cursor:pointer}
@@ -142,15 +143,32 @@
142 143 }
143 144
144 145 /* ---------- ouverture / plein écran ---------- */
146 + /* Sur téléphone : panneau plein écran d'office + scroll d'arrière-plan
147 + verrouillé tant qu'il est ouvert (html.kaa-lock). Pas de focus clavier
148 + forcé au tap (le clavier ne s'ouvre que si l'utilisateur touche le champ). */
149 + var mobileMq = window.matchMedia("(max-width: 640px)");
150 + var fineInput = window.matchMedia("(hover: hover) and (pointer: fine)");
151 + function syncLock() {
152 + var open = panel.classList.contains("kaa-open");
153 + if (open && mobileMq.matches) panel.classList.add("kaa-full");
154 + document.documentElement.classList.toggle(
155 + "kaa-lock", open && panel.classList.contains("kaa-full"));
156 + }
145 157 btn.addEventListener("click", function () {
146 158 panel.classList.toggle("kaa-open");
147 − if (panel.classList.contains("kaa-open")) { render(); ta.focus(); }
159 + if (panel.classList.contains("kaa-open")) {
160 + render();
161 + if (fineInput.matches) ta.focus();
162 + }
163 + syncLock();
148 164 });
149 165 panel.querySelector(".kaa-x2").addEventListener("click", function () {
150 166 panel.classList.remove("kaa-open", "kaa-full");
167 + syncLock();
151 168 });
152 169 panel.querySelector(".kaa-x1").addEventListener("click", function () {
153 170 panel.classList.toggle("kaa-full");
171 + syncLock();
154 172 scroll();
155 173 });
156 174
modified frontend/src/ka/tokens.css +87 −0
@@ -69,7 +69,24 @@
69 69
70 70 /* Cible tactile minimale */
71 71 --touch: 44px;
72 +
73 + /* ---- Échelle z-index COMMUNE (obligatoire — aucune valeur arbitraire) ----
74 + grain de film body::before = 9999 (pointer-events:none, toujours au-dessus,
75 + purement visuel). Tout composant interactif se place sous 9999 : */
76 + --z-content: 1; /* contenu positionné ordinaire */
77 + --z-sticky: 300; /* éléments sticky de contenu (sous-nav…) */
78 + --z-header: 500; /* header du site */
79 + --z-bottombar: 600; /* tab bar / barre d'action basse */
80 + --z-dropdown: 700; /* menus déroulants (au-dessus des barres) */
81 + --z-overlay: 800; /* voile sous modale/panneau */
82 + --z-modal: 900; /* modales, panneaux de filtres, galeries */
83 + --z-toast: 950; /* notifications */
84 +
85 + /* ---- Hauteur de viewport DYNAMIQUE (barre du navigateur mobile qui se
86 + replie au scroll) : toujours var(--vh100), JAMAIS 100vh en dur. ---- */
87 + --vh100: 100vh;
72 88 }
89 +@supports (height: 100dvh) { :root { --vh100: 100dvh; } }
73 90
74 91 /* ---- Socle ---- */
75 92 * { box-sizing: border-box; }
@@ -227,3 +244,73 @@ body > * { position: relative; }
227 244 /* ---- Utilitaires responsive ---- */
228 245 .only-mobile { display: initial; } .only-desktop { display: none; }
229 246 @media (min-width: 768px) { .only-mobile { display: none; } .only-desktop { display: initial; } }
247 +
248 +/* =============================================================================
249 + SOCLE MOBILE OBLIGATOIRE (2026-08-19) — règles communes aux 13 sites.
250 + RÈGLES pour tout composant futur :
251 + · TAP, jamais :hover, pour ouvrir un menu (le survol n'existe pas au doigt) ;
252 + le :hover ne sert qu'aux effets décoratifs, sous @media (hover: hover).
253 + · var(--vh100) (dvh) et JAMAIS 100vh pour tout élément calé sur le viewport.
254 + · position:fixed exige qu'AUCUN ancêtre n'ait transform/filter/perspective/
255 + will-change/backdrop-filter — sinon monter l'élément à la racine (body).
256 + · Barre basse fixe = .ka-bottombar + classe has-bottombar sur <body>.
257 + · Menu/panneau ouvert = .ka-scroll-lock sur <html> (scroll arrière-plan gelé).
258 + · z-index : uniquement l'échelle --z-* ci-dessus.
259 + · Zones tactiles ≥ var(--touch) (44 px), champs ≥ 16 px (zoom iOS).
260 + ========================================================================== */
261 +
262 +/* Anti-zoom iOS : au doigt, aucun champ sous 16 px (le focus d'un champ <16 px
263 + déclenche un zoom automatique de page sur Safari iOS). !important assumé :
264 + c'est un filet d'accessibilité, un champ plus petit casse le zoom quoi
265 + qu'il arrive — ne s'applique qu'aux écrans tactiles. */
266 +@media (hover: none) and (pointer: coarse) {
267 + input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
268 + select, textarea { font-size: max(16px, 1em) !important; }
269 +}
270 +
271 +/* Zone tactile du badge Groupe KA étendue à ≥44 px au doigt, sans changer
272 + son rendu (débord de la zone cliquable via pseudo-élément). */
273 +@media (pointer: coarse) {
274 + .gk-badge { position: relative; }
275 + .gk-badge::after { content: ""; position: absolute; inset: -8px; }
276 +}
277 +
278 +/* Hauteurs viewport dynamiques */
279 +.h-viewport { height: 100vh; height: 100dvh; }
280 +.min-h-viewport { min-height: 100vh; min-height: 100dvh; }
281 +
282 +/* Barre fixe basse fiable : safe-area iPhone incluse, immunisée contre les
283 + transforms accidentels, et compensation d'espace via body.has-bottombar. */
284 +.ka-bottombar {
285 + position: fixed; left: 0; right: 0; bottom: 0;
286 + z-index: var(--z-bottombar);
287 + padding-bottom: env(safe-area-inset-bottom, 0px);
288 + background: var(--surface);
289 + border-top: 1.5px solid var(--ink);
290 + transform: none !important; filter: none !important;
291 +}
292 +body.has-bottombar { padding-bottom: calc(var(--bottombar-h, 64px) + env(safe-area-inset-bottom, 0px)); }
293 +
294 +/* Verrou de scroll d'arrière-plan (menu mobile, modale, panneau de filtres
295 + ouverts) : ajouter/retirer .ka-scroll-lock sur <html>. */
296 +html.ka-scroll-lock, html.ka-scroll-lock body { overflow: hidden !important; overscroll-behavior: none; }
297 +
298 +/* Menu déroulant de référence : au-dessus de tout contenu (cartes Mapbox
299 + incluses), défilement interne avec élan, jamais plus haut que l'écran. */
300 +.ka-menu {
301 + position: absolute; z-index: var(--z-dropdown);
302 + min-width: 180px;
303 + max-height: min(60vh, 420px); max-height: min(60dvh, 420px);
304 + overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
305 + background: var(--surface); border: 1.5px solid var(--ink);
306 + border-radius: var(--r-card); box-shadow: var(--shadow-off-mid);
307 +}
308 +.ka-menu a, .ka-menu button, .ka-menu label, .ka-menu [role="menuitem"], .ka-menu [role="option"] {
309 + display: flex; align-items: center; min-height: var(--touch);
310 + padding: 10px 14px; width: 100%; text-decoration: none;
311 +}
312 +/* Voile plein écran sous une modale / un panneau */
313 +.ka-overlay {
314 + position: fixed; inset: 0; z-index: var(--z-overlay);
315 + background: rgba(20, 24, 20, 0.45);
316 +}
modified frontend/src/pages/Home.tsx +43 −2
@@ -57,12 +57,38 @@ export default function Home() {
57 57
58 58 const [sheetOpen, setSheetOpen] = useState(false);
59 59 const [advOpen, setAdvOpen] = useState(false);
60 +
61 + // Bottom-sheet filtres : verrou du scroll d'arrière-plan + fermeture Escape
62 + // (mêmes règles que le menu mobile du header — voir App.tsx).
63 + useEffect(() => {
64 + if (!sheetOpen) return;
65 + document.body.style.overflow = "hidden";
66 + const onKey = (e: KeyboardEvent) => { if (e.key === "Escape") setSheetOpen(false); };
67 + window.addEventListener("keydown", onKey);
68 + return () => {
69 + document.body.style.overflow = "";
70 + window.removeEventListener("keydown", onKey);
71 + };
72 + }, [sheetOpen]);
60 73 const activeFilters = [q, city, sector, ptype, source, priceMin, priceMax, bedsMin, bathsMin, areaMin].filter(Boolean).length;
61 74 const advCount = [bedsMin, bathsMin, areaMin, source, sector].filter(Boolean).length;
62 75
63 76 const [view, setView] = useState<"liste" | "carte">(params.get("view") === "carte" ? "carte" : "liste");
64 77 useEffect(() => { setView(params.get("view") === "carte" ? "carte" : "liste"); }, [params]);
65 78
79 + // synchronisation liste ↔ carte (même mécanique que Lou-Ka Maps) :
80 + // survol d'une carte → pastille en évidence ; clic sur une pastille →
81 + // fiche surlignée et défilée dans la liste latérale.
82 + const [hoveredUid, setHoveredUid] = useState<string | null>(null);
83 + const [selectedUid, setSelectedUid] = useState<string | null>(null);
84 + const onMapSelect = (uid: string | null) => {
85 + setSelectedUid(uid);
86 + if (uid) {
87 + document.getElementById(`mlc-${uid}`)
88 + ?.scrollIntoView({ behavior: "smooth", block: "nearest" });
89 + }
90 + };
91 +
66 92 const filters: ListingFilters = useMemo(() => ({
67 93 q, city, sector, region: "", property_type: ptype, source,
68 94 price_min: priceMin, price_max: priceMax,
@@ -344,10 +370,25 @@ export default function Home() {
344 370 {!error && view === "carte" && (
345 371 <div className="map-split">
346 372 <div className="map-list" aria-label="Résultats en liste">
347 − {(listings ?? []).map((l) => <ListingCard key={l.uid} l={l} />)}
373 + {(listings ?? []).map((l) => (
374 + <div
375 + key={l.uid}
376 + id={`mlc-${l.uid}`}
377 + className={`map-card${selectedUid === l.uid ? " map-card-sel" : ""}`}
378 + onMouseEnter={() => setHoveredUid(l.uid)}
379 + onMouseLeave={() => setHoveredUid(null)}
380 + >
381 + <ListingCard l={l} />
382 + </div>
383 + ))}
348 384 </div>
349 385 <Suspense fallback={<div className="mapview map-loading">Chargement de la carte…</div>}>
350 − <MapView filters={filters} />
386 + <MapView
387 + filters={filters}
388 + hoveredUid={hoveredUid}
389 + selectedUid={selectedUid}
390 + onSelect={onMapSelect}
391 + />
351 392 </Suspense>
352 393 </div>
353 394 )}
modified frontend/src/styles.css +106 −4
@@ -43,7 +43,9 @@ button { font-family: inherit; }
43 43 border-bottom: 2px solid var(--ink);
44 44 }
45 45 .header-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
46 −.brand { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.04em; display: flex; align-items: center; line-height: 1; }
46 +.brand { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.04em; display: flex; align-items: center; line-height: 1; }
47 +/* Cible tactile ≥44 px pour le logo (92×27 au naturel) */
48 +.brand::after { content: ""; position: absolute; inset: -8px; }
47 49 .brand .ka { background: var(--ink); color: var(--lime); padding: 2px 7px 4px; border-radius: 6px; margin-left: 3px; transform: rotate(-2deg); transition: transform 0.2s ease; }
48 50 .brand:hover .ka { transform: rotate(0deg); }
49 51 .brand-tag { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; margin-left: 12px; }
@@ -382,10 +384,53 @@ table.rooms tr:nth-child(even) td { background: var(--surface-2); }
382 384 .vpg-legend i { display: inline-block; width: 14px; height: 9px; border-radius: 999px; margin-right: 5px; vertical-align: -1px; }
383 385 @media (max-width: 780px) { .vpg-row { grid-template-columns: 1fr 64px; } .vpg-track { grid-column: 1 / -1; } .vpg-split { grid-column: 1 / -1; } .vpg-axis { display: none; } }
384 386
387 +/* ================= Carte (Ka Maps — framework partagé Groupe Ka) =========
388 + Jetons du design system appliqués au chrome de la carte, mêmes réglages
389 + que Lou-Ka Maps. */
390 +.mapview .ka-map, .lmap3d .ka-map {
391 + --ka-accent: var(--accent);
392 + --ka-on-accent: var(--on-accent);
393 + --ka-surface: var(--surface);
394 + --ka-ink: var(--ink);
395 + --ka-line: var(--line-strong);
396 + --ka-radius: var(--r-ctl);
397 + --ka-shadow: 0 8px 24px rgba(26, 18, 20, 0.14);
398 + --ka-font: var(--font-body);
399 +}
400 +.mapview { position: relative; overflow: hidden; }
401 +.mapview .ka-map { position: absolute; inset: 0; }
402 +
403 +/* mini-carte 3D de la fiche (Emplacement) — bâtiment de l'annonce en cerise */
404 +.lmap3d {
405 + position: relative; height: 340px; border: 1.5px solid var(--ink);
406 + border-radius: var(--r-card); box-shadow: var(--shadow-off-soft);
407 + overflow: hidden; background: var(--surface-2);
408 +}
409 +.lmap3d-skel {
410 + background: linear-gradient(90deg, #eeece5 25%, #f7f5ef 50%, #eeece5 75%);
411 + background-size: 800px 100%; animation: shimmer 1.4s infinite linear;
412 +}
413 +.lmap3d-legende {
414 + position: absolute; left: 10px; bottom: 10px; z-index: 5;
415 + display: inline-flex; align-items: center; gap: 6px;
416 + padding: 4px 10px; border: 1.5px solid var(--ink);
417 + border-radius: 999px; background: var(--surface);
418 + font-size: 10.5px; font-weight: 500; color: var(--ink-2);
419 + pointer-events: none;
420 +}
421 +.lmap3d-legende i {
422 + width: 10px; height: 10px; border-radius: 3px;
423 + background: var(--accent); border: 1px solid rgba(26, 18, 20, 0.25);
424 +}
425 +@media (max-width: 780px) { .lmap3d { height: 280px; } }
426 +
385 427 /* ================= Carte ================= */
386 428 .map-split { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 18px; height: calc(100dvh - 200px); min-height: 420px; }
387 429 .map-list { overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding-right: 4px; scrollbar-width: thin; }
388 430 .map-list .card { margin: 0; flex: 0 0 auto; }
431 +/* sync liste ↔ carte : fiche sélectionnée depuis une pastille de la carte */
432 +.map-card { border-radius: var(--r-card); }
433 +.map-card-sel .card { border-color: var(--accent); box-shadow: 4px 4px 0 var(--accent-soft), 0 0 0 2px var(--accent); }
389 434 .mapwrap { position: relative; width: 100%; height: 100%; }
390 435 .mapview { width: 100%; height: 100%; border: 1.5px solid var(--line-strong); border-radius: var(--r-card); box-shadow: var(--shadow-off-soft); overflow: hidden; background: var(--surface-2); }
391 436 .mv-brand { position: absolute; top: 10px; left: 10px; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 5px 11px; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 999px; box-shadow: var(--shadow-off-soft); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-2); pointer-events: none; }
@@ -466,12 +511,12 @@ table.rooms tr:nth-child(even) td { background: var(--surface-2); }
466 511 .filterbar.open .f-primary { flex-direction: column; }
467 512 .filterbar.open .f-ctl select { max-width: none; width: 100%; }
468 513 .filterbar.open .f-more { display: none; }
469 − .filterbar.open { display: flex; flex-direction: column; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; margin: 0; border-radius: 20px 20px 0 0; border-width: 2px 0 0 0; max-height: 82dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -16px 48px rgba(16, 18, 16, 0.35); animation: sheet-up 0.22s ease; }
514 + .filterbar.open { display: flex; flex-direction: column; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-modal, 900); margin: 0; border-radius: 20px 20px 0 0; border-width: 2px 0 0 0; max-height: 82dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -16px 48px rgba(16, 18, 16, 0.35); animation: sheet-up 0.22s ease; }
470 515 @keyframes sheet-up { from { transform: translateY(30%); opacity: 0.4; } to { transform: none; opacity: 1; } }
471 516 .filterbar.open .sheet-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 17px; text-transform: uppercase; position: sticky; top: -16px; background: var(--surface); padding: 6px 0 8px; border-bottom: 1.5px solid var(--line); margin-bottom: 2px; z-index: 1; }
472 517 .sheet-close { border: 1.5px solid var(--ink); background: var(--surface); border-radius: 50%; width: 36px; height: 36px; font-size: 15px; cursor: pointer; line-height: 1; }
473 518 .filterbar.open .sheet-apply { display: block; width: 100%; }
474 − .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(16, 18, 16, 0.45); backdrop-filter: blur(2px); }
519 + .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: var(--z-overlay, 800); background: rgba(16, 18, 16, 0.45); backdrop-filter: blur(2px); }
475 520 .fab { display: flex; align-items: center; gap: 6px; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 80; background: var(--ink); color: var(--lime); border: 1.5px solid var(--ink); border-radius: 999px; padding: 13px 24px; font-family: var(--font-display); font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 8px 24px rgba(16, 18, 16, 0.35), 4px 4px 0 rgba(26, 18, 20, 0.25); }
476 521 .fab:active { transform: translateX(-50%) scale(0.97); }
477 522 .results-head { margin-top: 20px; }
@@ -619,7 +664,9 @@ table.rooms tr:nth-child(even) td { background: var(--surface-2); }
619 664 .ka-login:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(20, 24, 20, 0.2); }
620 665 .ka-login:hover b { transform: rotate(0); }
621 666 .ka-login:active { transform: translate(2px, 2px); box-shadow: none; }
622 −.ka-signup { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
667 +.ka-signup { position: relative; font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
668 +/* Cible tactile ≥44 px sans changer le rendu (lien 99×17 au naturel) */
669 +.ka-signup::after { content: ""; position: absolute; inset: -10px; }
623 670 .ka-signup:hover { color: var(--accent-deep); }
624 671 @media (max-width: 1100px) { .header-acct .ka-signup { display: none; } }
625 672 .ka-acct {
@@ -744,3 +791,58 @@ table.rooms tr:nth-child(even) td { background: var(--surface-2); }
744 791 .header-inner { gap: 10px; }
745 792 .ka-login { font-size: 12px; padding: 6px 10px; gap: 4px; min-height: 44px; }
746 793 }
794 +
795 +/* Bulle KA Agent : sur mobile, remontée au-dessus de la barre CTA collante des
796 + fiches (sinon elle chevauche le bouton « Voir chez … »). */
797 +@media (max-width: 899px) {
798 + .kaa-btn {
799 + bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
800 + }
801 +}
802 +
803 +/* Footer commun KA : zones tactiles ≥ 44 px pour les petits liens (Ka2, Ka4…)
804 + — padding compensé par une marge négative : aucun changement visuel. */
805 +.ka-footer .sites a, .ka-footer .legal a, .ka-footer .contacts a {
806 + display: inline-block; padding: 12px 8px; margin: -12px -8px;
807 +}
808 +
809 +/* ================= Qualité des annonces / images ================= */
810 +/* Image de secours par TYPE DE BIEN (jamais d'icône d'image cassée) */
811 +.type-fallback {
812 + display: flex; flex-direction: column; align-items: center; justify-content: center;
813 + gap: 9px; width: 100%; height: 100%; min-height: 120px;
814 + background:
815 + radial-gradient(circle at 78% 18%, rgba(226, 55, 68, 0.14), transparent 52%),
816 + repeating-linear-gradient(45deg, #f3ece9 0 14px, #f7f1ef 14px 28px);
817 + color: var(--accent-deep);
818 +}
819 +.type-fallback .ico { opacity: 0.75; }
820 +.type-fallback span {
821 + font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
822 + text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3);
823 +}
824 +.carousel-empty .type-fallback { aspect-ratio: 16/11; }
825 +
826 +/* légende de photo (étiquette de pièce de la source) */
827 +.carousel-caption {
828 + position: absolute; left: 12px; bottom: 12px; z-index: 2; max-width: 60%;
829 + background: rgba(26, 18, 20, 0.82); color: #f5f3ee;
830 + font-family: var(--font-mono); font-size: 11px; font-weight: 600;
831 + padding: 4px 10px; border-radius: 999px;
832 + overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
833 +}
834 +
835 +/* mention loyer mensuel (transaction = location) */
836 +.per-month { font-size: 0.55em; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
837 +
838 +/* lightbox : l'image zoomable ne doit pas déclencher le scroll de la page */
839 +.lightbox img { user-select: none; -webkit-user-drag: none; }
840 +
841 +/* ---- Stats : qualité des données ---- */
842 +.q-table-wrap { overflow-x: auto; }
843 +.q-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
844 +.q-table th { text-align: left; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); padding: 6px 10px; border-bottom: 1.5px solid var(--ink); }
845 +.q-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); }
846 +.q-table .num { text-align: right; font-family: var(--font-mono); }
847 +.q-meter { display: inline-block; width: 74px; height: 9px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; vertical-align: -1px; margin-right: 7px; }
848 +.q-meter i { display: block; height: 100%; background: var(--green); }
deleted frontend/styles.css +0 −535
@@ -1,535 +0,0 @@
1 −/* -----------------------------------------------------------------------------
2 − Immo-Ka — Agrégateur de propriétés à vendre (province de Québec)
3 − Auteur : Simon-Pierre Boucher — contact@spboucher.ai
4 − styles.css : système de design « éditorial sharp » — thème clair
5 − · Typo display Space Grotesk / texte Inter / micro-étiquettes JetBrains Mono
6 − · Bordures encre + ombres décalées (néo-brutalisme raffiné)
7 − · Accent rouge vif sur encre chocolat · 100 % adaptatif mobile
8 −----------------------------------------------------------------------------- */
9 −:root {
10 − /* Palette ROUGE — distincte de Lou-Ka (lime/vert). Noms de tokens conservés :
11 − `--lime` = accent vif (rouge), `--green` = rouge profond (secondaire). */
12 − --paper: #f7f1ef;
13 − --surface: #ffffff;
14 − --surface-2: #fdf6f5;
15 − --ink: #1a1214; /* encre chocolat/near-black chaud */
16 − --ink-2: #5a4d50;
17 − --ink-3: #9b8b8e;
18 − --line: rgba(26, 18, 20, 0.14);
19 − --line-strong: rgba(26, 18, 20, 0.85);
20 − --green: #b3202b; /* rouge profond (accent secondaire / kicker) */
21 − --green-deep: #7f1620;
22 − --lime: #e23744; /* rouge vif (accent principal) */
23 − --lime-soft: #fbe0e2;
24 − --amber: #e8a33d;
25 − --amber-soft: #fdf3e2;
26 − --danger: #b3202b;
27 − --r-card: 14px;
28 − --r-ctl: 8px;
29 − --shadow-flat: 0 1px 2px rgba(26, 18, 20, 0.06);
30 − --shadow-off: 6px 6px 0 var(--ink);
31 − --shadow-off-soft: 8px 8px 0 rgba(226, 55, 68, 0.14);
32 − --font-display: "Space Grotesk", system-ui, sans-serif;
33 − --font-body: "Inter", system-ui, sans-serif;
34 − --font-mono: "JetBrains Mono", ui-monospace, monospace;
35 −}
36 −
37 −* { box-sizing: border-box; }
38 −html { scroll-behavior: smooth; scroll-padding-top: 76px; }
39 −body {
40 − margin: 0; background: var(--paper); color: var(--ink);
41 − font-family: var(--font-body); font-size: 15px; line-height: 1.55;
42 − -webkit-font-smoothing: antialiased; padding-bottom: env(safe-area-inset-bottom);
43 −}
44 −body::before {
45 − content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.35;
46 − background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.02 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
47 −}
48 −#root { position: relative; z-index: 1; }
49 −
50 −h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.03em; margin: 0; }
51 −a { color: inherit; text-decoration: none; }
52 −button { font-family: inherit; }
53 −img { display: block; }
54 −::selection { background: var(--lime); color: #fff; }
55 −
56 −.mono { font-family: var(--font-mono); }
57 −.kicker {
58 − font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
59 − text-transform: uppercase; letter-spacing: 0.14em; color: var(--green);
60 − display: inline-flex; align-items: center; gap: 8px;
61 −}
62 −.kicker::before { content: ""; width: 22px; height: 2px; background: var(--green); }
63 −
64 −.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
65 −@media (max-width: 640px) { .container { padding: 0 16px; } }
66 −
67 −/* ================= Header ================= */
68 −.header {
69 − position: sticky; top: 0; z-index: 50;
70 − background: rgba(247, 241, 239, 0.88);
71 − backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
72 − border-bottom: 2px solid var(--ink);
73 −}
74 −.header-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
75 −.brand { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.04em; display: flex; align-items: center; line-height: 1; }
76 −.brand .ka { background: var(--ink); color: var(--lime); padding: 2px 7px 4px; border-radius: 6px; margin-left: 3px; transform: rotate(-2deg); transition: transform 0.2s ease; }
77 −.brand:hover .ka { transform: rotate(0deg); }
78 −.brand-tag { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; margin-left: 12px; }
79 −@media (max-width: 860px) { .brand-tag { display: none; } }
80 −.nav { margin-left: auto; display: flex; gap: 4px; }
81 −.nav a { padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); border: 1.5px solid transparent; transition: all 0.15s ease; min-height: 40px; display: inline-flex; align-items: center; }
82 −.nav a:hover { border-color: var(--ink); color: var(--ink); }
83 −.nav a.active { background: var(--ink); color: var(--lime); }
84 −
85 −/* ================= Ticker ================= */
86 −.ticker { background: var(--ink); color: var(--lime); overflow: hidden; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 0; white-space: nowrap; border-bottom: 1px solid rgba(226, 55, 68, 0.25); }
87 −.ticker-track { display: inline-flex; gap: 0; animation: ticker 48s linear infinite; will-change: transform; }
88 −.ticker span { padding: 0 26px; position: relative; }
89 −.ticker span::after { content: "◆"; position: absolute; right: -6px; opacity: 0.5; font-size: 8px; top: 3px; }
90 −@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
91 −@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } * { transition-duration: 0.01ms !important; } }
92 −
93 −/* ================= Hero ================= */
94 −.hero { padding: 58px 0 22px; }
95 −@media (max-width: 640px) { .hero { padding: 34px 0 14px; } }
96 −.hero h1 { font-size: clamp(38px, 6.4vw, 78px); font-weight: 700; line-height: 0.98; text-transform: uppercase; letter-spacing: -0.035em; max-width: 940px; margin-top: 14px; }
97 −.hero h1 .outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }
98 −.hero h1 .hl { background: var(--lime); color: #fff; padding: 0 10px; border-radius: 8px; display: inline-block; transform: rotate(-1deg); }
99 −.hero p.lede { color: var(--ink-2); font-size: 16.5px; max-width: 680px; margin: 20px 0 0; }
100 −.stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
101 −.stat-chip { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 16px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; box-shadow: 3px 3px 0 rgba(26, 18, 20, 0.12); }
102 −.stat-chip b { color: var(--ink); font-weight: 700; }
103 −.stat-chip .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--lime-soft); animation: pulse 2.4s ease infinite; }
104 −@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(226, 55, 68, 0.4); } }
105 −
106 −/* ================= Filter bar ================= */
107 −.filterbar { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-off-soft); padding: 14px; margin: 30px 0 6px; display: flex; flex-direction: column; gap: 0; min-width: 0; }
108 −.f-primary { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; min-width: 0; }
109 −.f-search { flex: 1 1 240px; min-width: 0; display: flex; align-items: center; gap: 9px; border: 1.5px solid var(--ink); border-radius: 9px; background: var(--surface-2); padding: 0 13px; min-height: 52px; color: var(--ink-2); transition: box-shadow 0.15s ease; }
110 −.f-search:focus-within { box-shadow: 3px 3px 0 var(--lime); background: var(--surface); }
111 −.f-search input { border: none; background: none; outline: none; flex: 1; min-width: 0; font-size: 15px; color: var(--ink); font-family: inherit; }
112 −.f-clear { border: none; background: var(--line); color: var(--ink-2); border-radius: 50%; width: 20px; height: 20px; font-size: 10px; cursor: pointer; flex: none; display: grid; place-items: center; }
113 −.f-ctl { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; border: 1.5px solid var(--ink); border-radius: 9px; background: var(--surface); padding: 7px 12px 6px; min-height: 52px; cursor: pointer; transition: box-shadow 0.15s ease; }
114 −.f-ctl:focus-within { box-shadow: 3px 3px 0 var(--lime); }
115 −.f-ctl > span { font-family: var(--font-mono); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); }
116 −.f-ctl select { border: none; background: transparent; outline: none; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--ink); cursor: pointer; appearance: none; -webkit-appearance: none; padding-right: 16px; min-width: 0; max-width: 180px; text-overflow: ellipsis; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='5'%3E%3Cpath d='M0 0l4.5 5L9 0z' fill='%23141814'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; }
117 −.range-pair { display: flex; align-items: center; gap: 4px; }
118 −.range-pair select { max-width: 92px; }
119 −.range-sep { color: var(--ink-3); font-family: var(--font-mono); font-size: 11px; }
120 −.f-more { flex: none; align-self: stretch; border: 1.5px solid var(--ink); border-radius: 9px; background: var(--surface); color: var(--ink); padding: 0 18px; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 14px; min-height: 52px; transition: all 0.13s ease; }
121 −.f-more:hover { background: var(--lime-soft); }
122 −.f-more.on { background: var(--ink); color: var(--lime); box-shadow: 3px 3px 0 rgba(26, 18, 20,0.22); }
123 −.f-adv { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 22px; border-top: 1.5px dashed var(--line); margin-top: 14px; padding-top: 14px; min-width: 0; animation: adv-in 0.18s ease; }
124 −@keyframes adv-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
125 −.f-group { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
126 −.f-group > label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); }
127 −.f-group-end { justify-content: flex-end; }
128 −.f-group .btn:disabled { opacity: 0.4; cursor: default; }
129 −.f-native { border: 1.5px solid var(--line); background: var(--surface-2); border-radius: var(--r-ctl); padding: 10px 30px 10px 12px; font-size: 14px; color: var(--ink); outline: none; font-family: inherit; min-height: 42px; width: 100%; min-width: 0; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23141814'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
130 −.f-native:focus { border-color: var(--ink); box-shadow: 3px 3px 0 var(--lime); }
131 −.seg { display: inline-flex; flex-wrap: wrap; row-gap: 6px; }
132 −.seg button { border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink-2); padding: 8px 13px; font-family: var(--font-display); font-weight: 600; font-size: 13px; cursor: pointer; margin-left: -1.5px; white-space: nowrap; min-height: 38px; transition: all 0.12s ease; }
133 −.seg button:first-child { border-radius: 8px 0 0 8px; margin-left: 0; }
134 −.seg button:last-child { border-radius: 0 8px 8px 0; }
135 −.seg button:hover { background: var(--lime-soft); color: var(--ink); }
136 −.seg button.on { background: var(--ink); color: var(--lime); position: relative; z-index: 1; }
137 −
138 −.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
139 −.pill { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--ink); background: var(--lime-soft); color: var(--ink); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600; font-family: var(--font-mono); cursor: pointer; transition: all 0.13s ease; }
140 −.pill:hover { background: var(--lime); color: #fff; }
141 −.pill-x { font-size: 10px; opacity: 0.65; }
142 −.pill-clear { background: var(--surface); border-color: var(--danger); color: var(--danger); }
143 −.pill-clear:hover { background: var(--danger); color: #fff; }
144 −.link-btn { background: none; border: none; padding: 0; color: var(--green); font: inherit; text-decoration: underline; cursor: pointer; }
145 −
146 −.btn { border: 1.5px solid var(--ink); border-radius: var(--r-ctl); padding: 11px 20px; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 44px; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease; font-family: var(--font-display); letter-spacing: 0.01em; }
147 −.btn:active { transform: translate(2px, 2px); box-shadow: none !important; }
148 −.btn-primary { background: var(--ink); color: var(--lime); box-shadow: 4px 4px 0 rgba(26, 18, 20,0.25); }
149 −.btn-primary:hover { background: var(--green-deep); }
150 −.btn-ghost { background: transparent; color: var(--ink); }
151 −.btn-ghost:hover { background: var(--lime); color: #fff; box-shadow: 4px 4px 0 rgba(26, 18, 20,0.2); }
152 −
153 −/* ================= Chips ================= */
154 −.chips { display: flex; gap: 8px; margin: 16px 0 4px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
155 −.chips::-webkit-scrollbar { display: none; }
156 −.chip { border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: var(--font-display); white-space: nowrap; min-height: 40px; transition: all 0.13s ease; }
157 −.chip:hover { background: var(--lime-soft); transform: translateY(-1px); }
158 −.chip.on { background: var(--ink); color: var(--lime); box-shadow: 3px 3px 0 rgba(26, 18, 20,0.2); }
159 −
160 −/* ================= Results ================= */
161 −.results-head { display: flex; align-items: baseline; gap: 14px; margin: 28px 0 18px; flex-wrap: wrap; }
162 −.results-head h2 { font-size: 22px; text-transform: uppercase; letter-spacing: -0.02em; }
163 −.results-head > span { font-family: var(--font-mono); color: var(--ink-3); font-size: 12px; letter-spacing: 0.06em; }
164 −.results-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
165 −.sort-ctl select { border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: var(--r-ctl); padding: 7px 28px 7px 12px; font-family: var(--font-mono); font-size: 12px; color: var(--ink); cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23141814'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
166 −.view-toggle { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: var(--r-ctl); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-flat); }
167 −.view-toggle button { border: 0; background: transparent; padding: 7px 14px; cursor: pointer; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
168 −.view-toggle button + button { border-left: 1.5px solid var(--line-strong); }
169 −.view-toggle button.on { background: var(--ink); color: var(--lime); }
170 −
171 −.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; padding-bottom: 20px; }
172 −@media (max-width: 640px) { .grid { grid-template-columns: 1fr; gap: 16px; } }
173 −.more-wrap { display: flex; justify-content: center; padding: 8px 0 70px; }
174 −
175 −.card { background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-flat); transition: transform 0.16s ease, box-shadow 0.16s ease; }
176 −.card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-off); }
177 −.card:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
178 −.card-img { position: relative; aspect-ratio: 16/10.5; background: repeating-linear-gradient(45deg, #eceae3 0 12px, #f3f1ea 12px 24px); overflow: hidden; }
179 −.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
180 −.card:hover .card-img img { transform: scale(1.05); }
181 −.card-img .noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--ink-3); font-size: 34px; }
182 −.badge { position: absolute; top: 12px; left: 12px; border-radius: 6px; padding: 4px 10px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; background: rgba(255, 255, 255, 0.95); color: var(--ink); border: 1px solid var(--ink); }
183 −.badge.type { background: var(--ink); color: var(--lime); border-color: var(--ink); }
184 −.badge.right { left: auto; right: 12px; background: rgba(255,255,255,0.92); border-color: transparent; }
185 −.card-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
186 −.card-price { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
187 −.card-title { font-weight: 600; font-size: 14.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
188 −.card-meta { color: var(--ink-3); font-size: 12.5px; display: flex; gap: 7px; flex-wrap: wrap; align-items: center; font-family: var(--font-mono); }
189 −.card-meta .sep { width: 4px; height: 4px; background: var(--lime); border: 1px solid var(--ink); border-radius: 1px; transform: rotate(45deg); }
190 −.card-specs { display: flex; gap: 12px; font-size: 12.5px; color: var(--ink-2); font-family: var(--font-mono); }
191 −.card-foot { margin-top: auto; padding-top: 11px; border-top: 1.5px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
192 −.source-tag { font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-deep); background: var(--lime-soft); border: 1px solid var(--green); border-radius: 4px; padding: 3px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 62%; }
193 −.avail { font-size: 11px; color: var(--ink-3); font-weight: 500; text-align: right; font-family: var(--font-mono); }
194 −
195 −/* ================= Skeletons ================= */
196 −@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
197 −.skel { border-radius: var(--r-card); border: 1.5px solid var(--line); overflow: hidden; background: var(--surface); }
198 −.skel .sk-img, .skel .sk-line { background: linear-gradient(90deg, #eeece5 25%, #f7f5ef 50%, #eeece5 75%); background-size: 800px 100%; animation: shimmer 1.4s infinite linear; }
199 −.skel .sk-img { aspect-ratio: 16/10.5; }
200 −.skel .sk-line { height: 14px; border-radius: 4px; margin: 12px 16px; }
201 −.skel .sk-line.short { width: 45%; }
202 −
203 −/* ================= Empty / error ================= */
204 −.notice { text-align: center; padding: 72px 24px; color: var(--ink-2); }
205 −.notice .big { font-size: 44px; margin-bottom: 10px; }
206 −.notice h2 { text-transform: uppercase; }
207 −
208 −/* ================= Detail page ================= */
209 −.detail { padding: 30px 0 90px; }
210 −.crumbs { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
211 −.crumbs a { border-bottom: 1.5px solid transparent; }
212 −.crumbs a:hover { color: var(--green); border-color: var(--green); }
213 −
214 −.fiche { display: flex; flex-direction: column; gap: 22px; }
215 −.f-col { display: contents; }
216 −.f-galerie { order: 1; } .f-hero { order: 2; }
217 −.f-desc { order: 3; } #caracteristiques { order: 4; } #pieces { order: 5; }
218 −#inclusions { order: 6; } #carte { order: 7; }
219 −@media (min-width: 900px) {
220 − .fiche { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; }
221 − .f-col { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
222 − .f-col:last-child { position: sticky; top: 88px; }
223 −}
224 −.f-bloc { min-width: 0; }
225 −.f-bloc h2 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 12px; border-left: 4px solid var(--lime); padding-left: 10px; }
226 −.f-bloc:empty { display: none; }
227 −
228 −/* galerie */
229 −.carousel { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1.5px solid var(--line-strong); background: var(--surface-2); box-shadow: var(--shadow-off-soft); }
230 −.carousel-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; aspect-ratio: 16/11; }
231 −.carousel-track::-webkit-scrollbar { display: none; }
232 −.carousel-track img { flex: 0 0 100%; width: 100%; object-fit: cover; scroll-snap-align: center; cursor: zoom-in; }
233 −.carousel-empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 16/11; font-size: 48px; }
234 −.carousel-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: rgba(26, 18, 20, 0.82); color: var(--lime); font-family: var(--font-mono); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
235 −.carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: rgba(255, 255, 255, 0.92); font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; }
236 −.carousel-nav.prev { left: 10px; } .carousel-nav.next { right: 10px; }
237 −@media (max-width: 640px) { .carousel-nav { display: none; } }
238 −.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
239 −.thumbs button { border: 2px solid var(--line); border-radius: 8px; overflow: hidden; padding: 0; cursor: pointer; aspect-ratio: 4/3; background: #eceae3; transition: border-color 0.12s ease, transform 0.12s ease; }
240 −.thumbs button:hover { transform: translateY(-2px); }
241 −.thumbs button.on { border-color: var(--ink); box-shadow: 3px 3px 0 var(--lime); }
242 −.thumbs img { width: 100%; height: 100%; object-fit: cover; }
243 −@media (max-width: 640px) { .thumbs { display: flex; overflow-x: auto; scrollbar-width: none; } .thumbs::-webkit-scrollbar { display: none; } .thumbs button { flex: 0 0 84px; } }
244 −
245 −/* lightbox */
246 −.lightbox { position: fixed; inset: 0; background: rgba(16, 18, 16, 0.94); z-index: 100; display: flex; align-items: center; justify-content: center; cursor: zoom-out; padding: max(16px, env(safe-area-inset-top)) 16px; }
247 −.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 6px; border: 2px solid var(--lime); object-fit: contain; }
248 −.lb-close { position: absolute; top: 18px; right: 22px; background: none; border: none; color: #fff; font-size: 30px; cursor: pointer; }
249 −.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--lime); font-size: 52px; cursor: pointer; padding: 0 22px; user-select: none; }
250 −.lb-nav.prev { left: 6px; } .lb-nav.next { right: 6px; }
251 −.lb-count { position: absolute; bottom: 24px; color: #c9ccc2; font-family: var(--font-mono); font-size: 13px; }
252 −
253 −/* hero panneau (colonne droite) */
254 −.f-hero { background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-off-soft); padding: 26px; }
255 −.f-hero .price { font-family: var(--font-display); font-size: clamp(30px, 6vw, 40px); font-weight: 700; letter-spacing: -0.03em; }
256 −.f-hero h1 { font-size: clamp(20px, 4.5vw, 24px); margin-top: 8px; }
257 −.f-hero .loc { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
258 −.deal-badge { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 4px; border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 600; border: 1.5px solid var(--line-strong); }
259 −.deal-ok { background: var(--lime-soft); border-color: var(--green); color: var(--green-deep); }
260 −
261 −.specs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 18px 0; }
262 −.spec { border: 1.5px solid var(--line-strong); border-radius: var(--r-ctl); padding: 9px 11px; background: var(--surface-2); }
263 −.spec b { display: block; font-family: var(--font-display); font-size: 16px; }
264 −.spec span { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
265 −
266 −.broker { margin: 16px 0; padding: 14px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-ctl); background: var(--surface-2); }
267 −.broker-k { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); }
268 −.broker-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-top: 3px; }
269 −.broker-tel { display: inline-block; margin-top: 6px; color: var(--green-deep); font-weight: 600; border-bottom: 1.5px solid var(--lime); }
270 −
271 −.cta { display: block; text-align: center; background: var(--ink); color: var(--lime); font-weight: 700; font-family: var(--font-display); border-radius: var(--r-ctl); padding: 15px; border: 1.5px solid var(--ink); min-height: 48px; box-shadow: 4px 4px 0 rgba(26, 18, 20,0.25); transition: all 0.14s ease; margin-top: 6px; }
272 −.cta:hover { background: var(--lime); color: #fff; }
273 −.cta:active { transform: translate(2px, 2px); box-shadow: none; }
274 −.f-hero .fine { font-size: 11.5px; color: var(--ink-3); margin-top: 14px; text-align: center; font-family: var(--font-mono); letter-spacing: 0.02em; }
275 −
276 −.desc-text { color: var(--ink-2); font-size: 14.5px; white-space: pre-line; line-height: 1.6; margin: 0; }
277 −
278 −/* tableau caractéristiques */
279 −.dtable { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 22px; }
280 −.drow { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
281 −.drow span { color: var(--ink-3); } .drow b { text-align: right; font-family: var(--font-display); }
282 −
283 −/* tableau pièces */
284 −.rooms-wrap { overflow-x: auto; border: 1.5px solid var(--line-strong); border-radius: var(--r-card); }
285 −table.rooms { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 460px; }
286 −table.rooms th { text-align: left; background: var(--ink); color: var(--paper); padding: 9px 12px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
287 −table.rooms td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
288 −table.rooms tr:last-child td { border-bottom: none; }
289 −table.rooms tr:nth-child(even) td { background: var(--surface-2); }
290 −
291 −.amenity-row { display: flex; flex-wrap: wrap; gap: 7px; }
292 −.amenity { background: var(--lime-soft); color: var(--green-deep); font-size: 12px; font-weight: 600; border: 1px solid var(--green); border-radius: 999px; padding: 5px 12px; }
293 −
294 −.prix-histo { margin-top: 14px; padding: 10px 14px; border-radius: var(--r-card); border: 1.5px solid var(--line-strong); font-size: 13.5px; background: var(--surface); }
295 −.prix-histo.down { background: var(--lime-soft); border-color: var(--green); color: var(--green-deep); }
296 −
297 −.mini-map { height: 320px; border: 1.5px solid var(--line-strong); border-radius: var(--r-card); overflow: hidden; }
298 −.mini-map .mapview { border: none; border-radius: 0; box-shadow: none; height: 100%; }
299 −
300 −.cta-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: 12px; background: rgba(247, 241, 239, 0.94); backdrop-filter: blur(12px); border-top: 2px solid var(--ink); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
301 −.cta-sticky .cta { flex: 1; margin: 0; }
302 −.cta-sticky-prix { font-family: var(--font-display); font-weight: 700; font-size: 19px; white-space: nowrap; }
303 −@media (min-width: 900px) { .cta-sticky { display: none; } }
304 −@media (max-width: 899px) { .detail { padding-bottom: 84px; } }
305 −.f-foot { margin-top: 26px; }
306 −.fine { font-size: 12px; color: var(--ink-3); }
307 −
308 −/* ================= Sources / Agences ================= */
309 −.sources { padding: 44px 0 90px; }
310 −.sources h1 { font-size: clamp(28px, 4vw, 40px); text-transform: uppercase; margin: 10px 0 6px; }
311 −.sources .sub { color: var(--ink-2); margin-bottom: 30px; max-width: 720px; }
312 −.src-wrap { overflow-x: auto; border: 1.5px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-off-soft); background: var(--surface); }
313 −.src-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; }
314 −.src-table th { text-align: left; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); padding: 14px 18px; border-bottom: 1.5px solid var(--ink); background: var(--surface-2); }
315 −.src-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
316 −.src-table tr:last-child td { border-bottom: none; }
317 −.src-table tr:hover td { background: var(--surface-2); }
318 −.src-table a { color: var(--green-deep); font-weight: 600; border-bottom: 1.5px solid var(--lime); }
319 −.pill.ok { background: var(--lime); color: #fff; border: 1px solid var(--ink); border-radius: 4px; padding: 3px 10px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; }
320 −.pill.todo { background: var(--amber-soft); color: #8a5a12; border: 1px solid var(--amber); border-radius: 4px; padding: 3px 10px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; }
321 −.count-pill { font-weight: 700; font-family: var(--font-display); font-size: 16px; border-bottom: 1.5px solid var(--lime); }
322 −
323 −/* ================= Stats ================= */
324 −.stats-page { padding: 44px 0 90px; }
325 −.stats-title { font-size: clamp(30px, 4.6vw, 46px); text-transform: uppercase; margin: 10px 0 6px; }
326 −.stats-page .sub { color: var(--ink-2); max-width: 660px; margin-bottom: 30px; }
327 −.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 30px; }
328 −.tile { background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-card); padding: 18px 20px; box-shadow: 3px 3px 0 rgba(26, 18, 20, 0.1); }
329 −.tile-v { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.03em; line-height: 1.05; }
330 −.tile-k { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-top: 6px; }
331 −.hero-tile { background: var(--ink); color: var(--lime); border-color: var(--ink); }
332 −.hero-tile .tile-k { color: rgba(226, 55, 68, 0.7); }
333 −.viz-card { background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-off-soft); padding: 26px 28px 20px; margin-bottom: 22px; }
334 −.viz-card h2 { font-size: 19px; text-transform: uppercase; letter-spacing: -0.01em; }
335 −.viz-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 4px 0 20px; }
336 −.viz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
337 −@media (max-width: 900px) { .viz-grid { grid-template-columns: 1fr; } }
338 −.hbars { display: flex; flex-direction: column; gap: 7px; }
339 −.hbar-row { display: grid; grid-template-columns: minmax(96px, 180px) 1fr auto; gap: 12px; align-items: center; min-height: 26px; }
340 −.hbar-label { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
341 −.hbar-label a { border-bottom: 1.5px solid var(--lime); }
342 −.hbar-label a:hover { color: var(--green-deep); }
343 −.hbar-track { background: var(--surface-2); border-radius: 0 4px 4px 0; height: 18px; overflow: hidden; }
344 −.hbar-fill { display: block; height: 100%; background: var(--green); border-radius: 0 4px 4px 0; min-width: 2px; transition: background 0.12s ease; }
345 −.hbar-row:hover .hbar-fill { background: var(--ink); box-shadow: inset 0 0 0 2px var(--lime); }
346 −.hbar-value { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
347 −.hbar-value em { font-style: normal; font-weight: 500; color: var(--ink-3); }
348 −.viz-table { margin-top: 4px; }
349 −.viz-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
350 −.viz-table th { text-align: left; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); padding: 6px 10px; border-bottom: 1.5px solid var(--ink); }
351 −.viz-table td { padding: 6px 10px; border-bottom: 1px solid var(--line); }
352 −.stats-foot { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; margin-top: 6px; }
353 −
354 −/* ================= Carte ================= */
355 −.map-split { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 18px; height: calc(100dvh - 200px); min-height: 420px; }
356 −.map-list { overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding-right: 4px; scrollbar-width: thin; }
357 −.map-list .card { margin: 0; flex: 0 0 auto; }
358 −.mapview { width: 100%; height: 100%; border: 1.5px solid var(--line-strong); border-radius: var(--r-card); box-shadow: var(--shadow-off-soft); overflow: hidden; background: var(--surface-2); }
359 −.map-loading { display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-family: var(--font-mono); font-size: 13px; }
360 −@media (max-width: 780px) { .map-split { grid-template-columns: 1fr; height: calc(100dvh - 230px); } .map-list { display: none; } .results-tools { width: 100%; justify-content: space-between; } }
361 −.maplibregl-popup-content { padding: 0; border-radius: var(--r-card); overflow: hidden; border: 1.5px solid var(--line-strong); box-shadow: var(--shadow-off); font-family: var(--font-body); }
362 −.maplibregl-popup-close-button { font-size: 18px; padding: 2px 8px; color: var(--paper); z-index: 2; text-shadow: 0 0 4px rgba(26, 18, 20, 0.8); }
363 −.mv-pop img, .mv-noimg { width: 100%; height: 130px; object-fit: cover; }
364 −.mv-noimg { display: flex; align-items: center; justify-content: center; font-size: 34px; background: var(--surface-2); }
365 −.mv-pop-body { padding: 10px 12px 12px; }
366 −.mv-pop-price { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
367 −.mv-pop-title { font-size: 13px; color: var(--ink-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
368 −.mv-pop-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); margin-top: 6px; }
369 −.mv-pop-src { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
370 −.mv-pop-cta { display: block; margin-top: 10px; padding: 8px 10px; text-align: center; background: var(--ink); color: var(--lime); border-radius: var(--r-ctl); font-weight: 600; font-size: 13px; }
371 −.mv-pop-cta:hover { background: var(--green-deep); }
372 −
373 −/* ================= Menu mobile ================= */
374 −.menu-btn { display: none; position: relative; z-index: 60; width: 44px; height: 44px; margin-left: auto; border: 1.5px solid var(--ink); border-radius: var(--r-ctl); background: var(--surface); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; box-shadow: 3px 3px 0 rgba(26, 18, 20, 0.15); transition: box-shadow 0.15s ease, transform 0.15s ease; }
375 −.menu-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(26, 18, 20,0.15); }
376 −.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
377 −.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
378 −.menu-btn.open span:nth-child(2) { opacity: 0; }
379 −.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
380 −.mobile-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 2px solid var(--ink); box-shadow: 0 18px 30px rgba(26, 18, 20, 0.18); padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.3s ease, opacity 0.22s ease; }
381 −.mobile-menu.open { max-height: 480px; opacity: 1; }
382 −.mm-link { display: flex; align-items: center; gap: 12px; padding: 15px 10px; min-height: 52px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; border-bottom: 1.5px dashed var(--line); opacity: 0; transform: translateY(-8px); transition: opacity 0.25s ease, transform 0.25s ease; }
383 −.mobile-menu.open .mm-link { opacity: 1; transform: translateY(0); }
384 −.mm-link.active { color: var(--green); }
385 −.mm-ico { width: 26px; text-align: center; font-size: 17px; }
386 −.mm-arrow { margin-left: auto; opacity: 0.25; }
387 −.mm-link:active { background: var(--lime-soft); border-radius: var(--r-ctl); }
388 −.mm-foot { padding: 12px 10px 4px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.04em; }
389 −.mm-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(26, 18, 20, 0.35); backdrop-filter: blur(2px); }
390 −@media (max-width: 760px) { .menu-btn { display: flex; } .nav { display: none; } .mobile-menu { display: block; } }
391 −
392 −/* ================= Footer ================= */
393 −.footer { background: var(--ink); color: rgba(247, 241, 239, 0.75); margin-top: 20px; padding: 44px 0 max(40px, env(safe-area-inset-bottom)); font-size: 13px; position: relative; z-index: 1; }
394 −.footer .fbrand { font-family: var(--font-display); font-weight: 700; font-size: 34px; color: var(--paper); letter-spacing: -0.04em; margin-bottom: 12px; }
395 −.footer .fbrand .ka { color: var(--lime); }
396 −.footer b { color: var(--paper); }
397 −.footer .frow { display: flex; flex-direction: column; gap: 5px; max-width: 760px; }
398 −.footer .fmono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(247, 241, 239,0.45); margin-top: 18px; }
399 −
400 −/* ================= Mobile : feuille de filtres + FAB ================= */
401 −.sheet-head { display: none; }
402 −.sheet-apply { display: none; }
403 −.sheet-backdrop { display: none; }
404 −.fab { display: none; }
405 −@media (max-width: 640px) {
406 − .header-inner { height: 56px; }
407 − .brand { font-size: 21px; }
408 − .hero h1 { font-size: clamp(30px, 9.4vw, 44px); }
409 − .hero p.lede { font-size: 15px; }
410 − .stat-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; margin-right: -16px; padding-right: 16px; }
411 − .stat-row::-webkit-scrollbar { display: none; }
412 − .stat-chip { flex: 0 0 auto; white-space: nowrap; }
413 − .filterbar { display: none; }
414 − .filterbar.open .f-primary { flex-direction: column; }
415 − .filterbar.open .f-ctl select { max-width: none; width: 100%; }
416 − .filterbar.open .f-more { display: none; }
417 − .filterbar.open { display: flex; flex-direction: column; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; margin: 0; border-radius: 20px 20px 0 0; border-width: 2px 0 0 0; max-height: 82dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -16px 48px rgba(16, 18, 16, 0.35); animation: sheet-up 0.22s ease; }
418 − @keyframes sheet-up { from { transform: translateY(30%); opacity: 0.4; } to { transform: none; opacity: 1; } }
419 − .filterbar.open .sheet-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 17px; text-transform: uppercase; position: sticky; top: -16px; background: var(--surface); padding: 6px 0 8px; border-bottom: 1.5px solid var(--line); margin-bottom: 2px; z-index: 1; }
420 − .sheet-close { border: 1.5px solid var(--ink); background: var(--surface); border-radius: 50%; width: 36px; height: 36px; font-size: 15px; cursor: pointer; line-height: 1; }
421 − .filterbar.open .sheet-apply { display: block; width: 100%; }
422 − .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(16, 18, 16, 0.45); backdrop-filter: blur(2px); }
423 − .fab { display: flex; align-items: center; gap: 6px; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 80; background: var(--ink); color: var(--lime); border: 1.5px solid var(--ink); border-radius: 999px; padding: 13px 24px; font-family: var(--font-display); font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 8px 24px rgba(16, 18, 16, 0.35), 4px 4px 0 rgba(26, 18, 20, 0.25); }
424 − .fab:active { transform: translateX(-50%) scale(0.97); }
425 − .results-head { margin-top: 20px; }
426 − .chips { margin-right: -16px; padding-right: 16px; }
427 − .notice { padding: 48px 16px; }
428 −}
429 −@media (max-width: 900px) { .f-search input, .f-native, .f-ctl select { font-size: 16px; } }
430 −
431 −/* --- Sources : bannières → sous-agences -------------------------------- */
432 −.franchise-list { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
433 −.franchise { border: 2px solid var(--ink); background: var(--surface); box-shadow: var(--shadow-off-soft); }
434 −.franchise-head {
435 − width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px;
436 − background: none; border: 0; cursor: pointer; font-family: var(--font-display);
437 − font-size: 16px; font-weight: 600; color: var(--ink); text-align: left;
438 −}
439 −.franchise-head:hover { background: var(--surface-2); }
440 −.fh-caret { color: var(--green); width: 14px; }
441 −.fh-name { flex: 1; }
442 −.fh-sub { font-size: 12px; font-weight: 500; color: var(--ink-3); font-family: var(--font-mono); }
443 −.fh-count {
444 − font-family: var(--font-mono); font-weight: 700; background: var(--ink);
445 − color: var(--lime); padding: 3px 10px; min-width: 64px; text-align: right;
446 −}
447 −.subagency-list { list-style: none; margin: 0; padding: 0 16px 10px 40px; border-top: 1px solid var(--line); }
448 −.subagency-list li {
449 − display: flex; align-items: center; justify-content: space-between; gap: 12px;
450 − padding: 8px 0; border-bottom: 1px dotted var(--line); font-size: 14px;
451 −}
452 −.subagency-list li:last-child { border-bottom: 0; }
453 −.sa-name { color: var(--ink-2); }
454 −
455 −/* --- Pagination (accueil) ---------------------------------------------- */
456 −.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
457 − gap: 6px; margin: 32px 0 8px; }
458 −.pager-btn {
459 − font-family: var(--font-mono); font-size: 14px; min-width: 40px; padding: 8px 12px;
460 − border: 2px solid var(--ink); background: var(--surface); color: var(--ink);
461 − cursor: pointer; box-shadow: var(--shadow-off-soft);
462 −}
463 −.pager-btn:hover:not(:disabled) { background: var(--lime-soft); }
464 −.pager-btn.on { background: var(--ink); color: var(--lime); font-weight: 700; }
465 −.pager-btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
466 −.pager-gap { padding: 0 4px; color: var(--ink-3); }
467 −.pager-info { width: 100%; text-align: center; margin-top: 8px; font-size: 12px;
468 − color: var(--ink-3); font-family: var(--font-mono); }
469 −
470 −
471 −
472 −/* --- Le quartier (census / proximité / chaleur / crime) — porté de Lou-Ka --- */
473 −/* --- Section « Le quartier » (fiche) --------------------------------------- */
474 −.quartier { margin-top: 34px; }
475 −.quartier h2 { font-size: 24px; letter-spacing: -0.02em; }
476 −.q-sub { color: var(--ink-3); font-size: 13px; margin: 4px 0 16px; }
477 −.q-grid {
478 − display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
479 −}
480 −.q-grid { grid-template-columns: repeat(2, 1fr); }
481 −.q-cell {
482 − background: var(--surface); border: 1.5px solid var(--line-strong);
483 − border-radius: var(--r-card); padding: 12px 14px; box-shadow: var(--shadow-flat);
484 −}
485 −.q-val { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
486 −.q-label { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3);
487 − text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }
488 −.q-prox { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
489 −.q-bar { display: flex; align-items: center; gap: 10px; font-size: 13px; }
490 −.q-bar-label { flex: 0 0 150px; color: var(--ink-2); }
491 −.q-bar-label { flex-basis: 120px; font-size: 12px; }
492 −.q-bar-track {
493 − flex: 1; height: 10px; background: var(--surface-2);
494 − border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden;
495 −}
496 −.q-bar-fill { display: block; height: 100%; background: var(--green); border-radius: 999px; }
497 −.q-bar-num { flex: 0 0 30px; text-align: right; font-family: var(--font-mono);
498 − font-size: 11.5px; font-weight: 700; }
499 −.q-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
500 −.q-badge {
501 − display: inline-flex; align-items: center; gap: 6px;
502 − border: 1.5px solid var(--line-strong); border-radius: 999px;
503 − padding: 7px 13px; font-size: 12.5px; background: var(--surface);
504 −}
505 −.q-badge.cool { background: var(--lime-soft); border-color: var(--green); color: var(--green-deep); }
506 −.q-badge.hot { background: var(--amber-soft); border-color: var(--amber); color: #8a5a12; }
507 −.quartier .fine { margin-top: 10px; }
508 −.q-cell { padding: 9px 11px; }
509 −.q-val { font-size: 16px; }
510 −.q-bar { gap: 8px; font-size: 12px; }
511 −.q-bar-track { height: 8px; }
512 −.q-badge-sub { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 400; margin-left: 4px; }
513 −
514 −/* --- Vrai-Prix : estimation de valeur ---------------------------------- */
515 −.vraiprix { border: 2px solid var(--ink); background: var(--surface-2);
516 − box-shadow: var(--shadow-off-soft); padding: 14px; margin: 14px 0; }
517 −.vp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
518 −.vp-logo { font-family: var(--font-display); font-weight: 700; color: var(--green-deep);
519 − letter-spacing: -.3px; }
520 −.vp-conf { font-family: var(--font-mono); font-size: 11px; padding: 2px 7px; border: 1px solid var(--ink); }
521 −.vp-conf-A { background: var(--lime); color: #fff; } .vp-conf-B { background: var(--lime-soft); }
522 −.vp-conf-C { background: var(--amber-soft); } .vp-conf-D { background: #f0d9d9; }
523 −.vp-k { font-size: 11px; color: var(--ink-3); text-transform: uppercase;
524 − letter-spacing: .5px; margin-top: 8px; }
525 −.vp-value { font-family: var(--font-display); font-size: 26px; font-weight: 700;
526 − letter-spacing: -1px; color: var(--ink); }
527 −.vp-range { font-size: 12px; color: var(--ink-2); font-family: var(--font-mono); }
528 −.vp-delta { font-size: 13px; margin-top: 8px; padding: 6px 8px; border-radius: var(--r-ctl); }
529 −.vp-over { background: #f6e2e2; color: #8a2b2b; }
530 −.vp-under { background: #e2f0e6; color: #1c5c41; }
531 −.vp-fair { background: var(--surface); color: var(--ink-2); }
532 −.vp-link { display: block; text-align: center; margin-top: 10px; font-weight: 700;
533 − font-size: 13px; padding: 8px; background: var(--green-deep); color: #fff;
534 − text-decoration: none; }
535 −.vp-link:hover { background: var(--green); }
536