SPB Git forge

spb/home-ka

Public
10commits 1branches 0releases
793.0 KBsize
maindefault branch
20 days agolast push
Python 49.6% TypeScript 25.5% CSS 24.1%

Theme: white ticker band + white buttons with blue text/border (was black); red status badge on cards

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Simon-Pierre Boucher committed 27 days ago (Aug 28, 2026) parent 1e56b86

1 changed file +24 −24

modified frontend/src/styles.css +24 −24
@@ -65,10 +65,10 @@ button { font-family: inherit; }
65 65 .nav { margin-left: auto; display: flex; gap: 4px; }
66 66 .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; }
67 67 .nav a:hover { border-color: var(--ink); color: var(--ink); }
68 −.nav a.active { background: var(--ink); color: var(--lime); }
68 +.nav a.active { background: #ffffff; color: var(--accent); border-color: var(--accent); }
69 69
70 70 /* ================= Ticker ================= */
71 −.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(30, 79, 216, 0.25); }
71 +.ticker { background: #ffffff; color: var(--accent); border-color: var(--accent); 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(30, 79, 216, 0.25); }
72 72 .ticker-track { display: inline-flex; gap: 0; animation: ticker 48s linear infinite; will-change: transform; }
73 73 .ticker span { padding: 0 26px; position: relative; }
74 74 .ticker span::after { content: "◆"; position: absolute; right: -6px; opacity: 0.5; font-size: 8px; top: 3px; }
@@ -115,7 +115,7 @@ button { font-family: inherit; }
115 115 .f-search input { border: none; background: none; outline: none; flex: 1; min-width: 0; font-size: 15px; color: var(--ink); font-family: inherit; }
116 116 .f-search input::placeholder { color: var(--ink-3); }
117 117 .f-clear { border: none; background: var(--line); color: var(--ink-2); border-radius: 50%; width: 22px; height: 22px; font-size: 10px; cursor: pointer; flex: none; display: grid; place-items: center; transition: background 0.12s ease, color 0.12s ease; }
118 −.f-clear:hover { background: var(--ink); color: #fff; }
118 +.f-clear:hover { background: var(--accent-soft); color: var(--accent-deep); }
119 119 .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, background 0.15s ease; }
120 120 @media (hover: hover) { .f-ctl:hover { background: var(--surface-2); } }
121 121 .f-ctl:focus-within { box-shadow: 3px 3px 0 var(--lime); background: var(--surface); }
@@ -127,7 +127,7 @@ button { font-family: inherit; }
127 127 .f-more { flex: none; align-self: stretch; display: inline-flex; align-items: center; gap: 8px; 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: transform 0.13s ease, box-shadow 0.13s ease, background 0.13s ease, color 0.13s ease; }
128 128 .f-more:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-off-mid); background: var(--surface); }
129 129 .f-more:active { transform: none; box-shadow: none; }
130 −.f-more.on { background: var(--ink); border-color: var(--ink); color: var(--lime); box-shadow: 3px 3px 0 var(--lime); }
130 +.f-more.on { background: #ffffff; border-color: var(--accent); color: var(--accent); box-shadow: 3px 3px 0 var(--lime); }
131 131 .f-more.on:hover { transform: none; }
132 132 .f-more-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--lime); color: var(--on-accent); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
133 133 .f-chev { width: 8px; height: 8px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; transition: transform 0.18s ease, margin 0.18s ease; }
@@ -145,7 +145,7 @@ button { font-family: inherit; }
145 145 .seg button:first-child { border-radius: 8px 0 0 8px; margin-left: 0; }
146 146 .seg button:last-child { border-radius: 0 8px 8px 0; }
147 147 .seg button:hover { background: var(--lime-soft); color: var(--ink); }
148 −.seg button.on { background: var(--ink); color: var(--lime); position: relative; z-index: 1; box-shadow: inset 0 -2.5px 0 var(--lime); }
148 +.seg button.on { background: #ffffff; color: var(--accent); border-color: var(--accent); position: relative; z-index: 1; box-shadow: inset 0 -2.5px 0 var(--lime); }
149 149
150 150 /* pastilles de filtres actifs — survol = intention de retrait (danger) */
151 151 .pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 2px; }
@@ -162,7 +162,7 @@ button { font-family: inherit; }
162 162 .btn:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-off-mid); }
163 163 .btn:active { transform: translate(2px, 2px); box-shadow: none !important; }
164 164 .btn:disabled { opacity: 0.45; pointer-events: none; }
165 −.btn-primary { background: var(--ink); color: var(--lime); box-shadow: 4px 4px 0 rgba(26, 18, 20,0.25); }
165 +.btn-primary { background: #ffffff; color: var(--accent); border-color: var(--accent); box-shadow: 4px 4px 0 rgba(26, 18, 20,0.25); }
166 166 .btn-primary:hover { background: var(--green-deep); box-shadow: 4px 4px 0 rgba(26, 18, 20,0.25); }
167 167 .btn-ghost { background: transparent; color: var(--ink); }
168 168 .btn-ghost:hover { background: var(--lime); color: #fff; box-shadow: 4px 4px 0 rgba(26, 18, 20,0.2); }
@@ -173,7 +173,7 @@ button { font-family: inherit; }
173 173 .chip { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 9px 18px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: var(--font-display); white-space: nowrap; min-height: 42px; transition: transform 0.13s ease, box-shadow 0.13s ease, background 0.13s ease, color 0.13s ease; }
174 174 .chip:hover { transform: translate(-1px, -1px); box-shadow: var(--shadow-off-mid); }
175 175 .chip:active { transform: none; box-shadow: none; }
176 −.chip.on { background: var(--ink); color: var(--lime); box-shadow: 3px 3px 0 var(--lime); }
176 +.chip.on { background: #ffffff; color: var(--accent); border-color: var(--accent); box-shadow: 3px 3px 0 var(--lime); }
177 177
178 178 /* ================= Results ================= */
179 179 .results-head { display: flex; align-items: baseline; gap: 14px; margin: 28px 0 18px; flex-wrap: wrap; }
@@ -187,7 +187,7 @@ button { font-family: inherit; }
187 187 .view-toggle button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 8px 14px; min-height: 36px; cursor: pointer; font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--ink-2); transition: background 0.12s ease, color 0.12s ease; }
188 188 .view-toggle button:hover { background: var(--surface-2); color: var(--ink); }
189 189 .view-toggle button + button { border-left: 1.5px solid var(--ink); }
190 −.view-toggle button.on { background: var(--ink); color: var(--lime); box-shadow: inset 0 -2.5px 0 var(--lime); }
190 +.view-toggle button.on { background: #ffffff; color: var(--accent); border-color: var(--accent); box-shadow: inset 0 -2.5px 0 var(--lime); }
191 191
192 192 .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; padding-bottom: 20px; }
193 193 @media (max-width: 640px) { .grid { grid-template-columns: 1fr; gap: 16px; } }
@@ -201,7 +201,7 @@ button { font-family: inherit; }
201 201 .card:hover .card-img img { transform: scale(1.05); }
202 202 .card-img .noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--ink-3); font-size: 34px; }
203 203 .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); }
204 −.badge.type { background: var(--ink); color: var(--lime); border-color: var(--ink); }
204 +.badge.type { background: #ffffff; color: var(--accent); border-color: var(--accent); }
205 205 .badge.right { left: auto; right: 12px; background: rgba(255,255,255,0.92); border-color: transparent; }
206 206 .card-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
207 207 .card-price { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
@@ -305,7 +305,7 @@ button { font-family: inherit; }
305 305 .broker-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; margin-top: 3px; }
306 306 .broker-tel { display: inline-block; margin-top: 6px; color: var(--green-deep); font-weight: 600; border-bottom: 1.5px solid var(--lime); }
307 307
308 −.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; }
308 +.cta { display: block; text-align: center; background: #ffffff; color: var(--accent); font-weight: 700; font-family: var(--font-display); border-radius: var(--r-ctl); padding: 15px; border: 1.5px solid var(--accent); min-height: 48px; box-shadow: 4px 4px 0 rgba(26, 18, 20,0.25); transition: all 0.14s ease; margin-top: 6px; }
309 309 .cta:hover { background: var(--lime); color: #fff; }
310 310 .cta:active { transform: translate(2px, 2px); box-shadow: none; }
311 311 .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; }
@@ -375,7 +375,7 @@ table.rooms tr:nth-child(even) td { background: var(--surface-2); }
375 375 .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); }
376 376 .tile-v { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.03em; line-height: 1.05; }
377 377 .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; }
378 −.hero-tile { background: var(--ink); color: var(--lime); border-color: var(--ink); }
378 +.hero-tile { background: #ffffff; color: var(--accent); border-color: var(--accent); }
379 379 .hero-tile .tile-k { color: rgba(30, 79, 216, 0.7); }
380 380 .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; min-width: 0; max-width: 100%; overflow-x: auto; }
381 381 /* mobile : une table large ne doit JAMAIS déborder la page (grid blowout) —
@@ -530,7 +530,7 @@ table.rooms tr:nth-child(even) td { background: var(--surface-2); }
530 530 .mv-pop-title { font-size: 13px; color: var(--ink-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
531 531 .mv-pop-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); margin-top: 6px; }
532 532 .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; }
533 −.mv-pop-cta { display: block; margin-top: 10px; padding: 8px 10px; text-align: center; background: var(--ink); color: #fff; border-radius: var(--r-ctl); font-weight: 600; font-size: 13px; }
533 +.mv-pop-cta { display: block; margin-top: 10px; padding: 8px 10px; text-align: center; background: #ffffff; color: var(--accent); border: 1.5px solid var(--accent); border-radius: var(--r-ctl); font-weight: 600; font-size: 13px; }
534 534 .mv-pop-cta:hover { background: var(--green-deep); }
535 535 .mv-pop-deal { display: inline-block; margin-left: 6px; padding: 2px 8px; vertical-align: 3px; background: var(--lime); color: #fff; border-radius: 999px; font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.05em; }
536 536 .maplibregl-ctrl-attrib { font-size: 10px; }
@@ -604,7 +604,7 @@ html:has(.mobile-menu.open) { overflow: hidden; }
604 604 .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; }
605 605 .filterbar.open .sheet-apply { display: flex; width: 100%; min-height: 50px; position: sticky; bottom: 0; z-index: 1; box-shadow: 0 -14px 18px -12px rgba(16, 18, 16, 0.4), 5px 5px 0 var(--lime); }
606 606 .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(16, 18, 16, 0.45); backdrop-filter: blur(2px); }
607 − .fab { display: flex; align-items: center; gap: 8px; 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(30, 79, 216, 0.55); }
607 + .fab { display: flex; align-items: center; gap: 8px; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 80; background: #ffffff; color: var(--accent); border: 1.5px solid var(--accent); 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(30, 79, 216, 0.55); }
608 608 .fab:active { transform: translateX(-50%) scale(0.97); }
609 609 .results-head { margin-top: 20px; }
610 610 .chips { margin-right: -16px; padding-right: 16px; }
@@ -625,8 +625,8 @@ html:has(.mobile-menu.open) { overflow: hidden; }
625 625 .fh-name { flex: 1; }
626 626 .fh-sub { font-size: 12px; font-weight: 500; color: var(--ink-3); font-family: var(--font-mono); }
627 627 .fh-count {
628 − font-family: var(--font-mono); font-weight: 700; background: var(--ink);
629 − color: var(--lime); padding: 3px 10px; min-width: 64px; text-align: right;
628 + font-family: var(--font-mono); font-weight: 700; background: #ffffff;
629 + color: var(--accent); border: 1.5px solid var(--accent); padding: 3px 10px; min-width: 64px; text-align: right;
630 630 }
631 631 .subagency-list { list-style: none; margin: 0; padding: 0 16px 10px 40px; border-top: 1px solid var(--line); }
632 632 .subagency-list li {
@@ -647,7 +647,7 @@ html:has(.mobile-menu.open) { overflow: hidden; }
647 647 }
648 648 .pager-btn:hover:not(:disabled):not(.on) { background: var(--lime-soft); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(26, 18, 20, 0.2); }
649 649 .pager-btn:active:not(:disabled) { transform: none; box-shadow: none; }
650 −.pager-btn.on { background: var(--ink); color: var(--lime); font-weight: 700; box-shadow: 3px 3px 0 var(--lime); }
650 +.pager-btn.on { background: #ffffff; color: var(--accent); border-color: var(--accent); font-weight: 700; box-shadow: 3px 3px 0 var(--lime); }
651 651 .pager-btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
652 652 .pager-gap { padding: 0 4px; color: var(--ink-3); }
653 653 .pager-info { width: 100%; text-align: center; margin-top: 8px; font-size: 12px;
@@ -1154,7 +1154,7 @@ table.rooms tbody tr:hover td { background: var(--accent-soft); }
1154 1154 box-shadow: 4px 4px 0 rgba(26, 18, 20, 0.12);
1155 1155 margin-top: 10px;
1156 1156 }
1157 −.cta-pdf:hover { background: var(--ink); color: var(--paper); }
1157 +.cta-pdf:hover { background: var(--accent-soft); color: var(--accent-deep); }
1158 1158
1159 1159 /* ================= Financement (fiche) + page Taux hypothécaires ========= */
1160 1160 .f-mtg .mtg-intro { color: var(--ink-2); font-size: 14px; margin: 4px 0 14px; }
@@ -1277,8 +1277,8 @@ table.rooms tbody tr:hover td { background: var(--accent-soft); }
1277 1277 .taux-best td { background: var(--lime-soft); }
1278 1278 .taux-badge {
1279 1279 font-family: var(--font-mono); font-size: 9px; font-weight: 700;
1280 − text-transform: uppercase; letter-spacing: 0.1em; background: var(--ink);
1281 − color: var(--lime); border-radius: 999px; padding: 2px 8px; margin-left: 8px;
1280 + text-transform: uppercase; letter-spacing: 0.1em; background: #ffffff;
1281 + color: var(--accent); border: 1.5px solid var(--accent); border-radius: 999px; padding: 2px 8px; margin-left: 8px;
1282 1282 }
1283 1283 .taux-sante { display: flex; flex-wrap: wrap; gap: 8px; }
1284 1284 .taux-src {
@@ -1433,7 +1433,7 @@ table.rooms tbody tr:hover td { background: var(--accent-soft); }
1433 1433 .search-zone .seg button:first-child { border-radius: var(--r-1) 0 0 var(--r-1); }
1434 1434 .search-zone .seg button:last-child { border-radius: 0 var(--r-1) var(--r-1) 0; }
1435 1435 .search-zone .seg button:hover { background: var(--lime-soft); color: var(--accent-deep); }
1436 −.search-zone .seg button.on { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: none; }
1436 +.search-zone .seg button.on { background: #ffffff; border-color: var(--accent); color: var(--accent); box-shadow: none; }
1437 1437 .search-zone .f-native { border: 1px solid var(--hairline-strong); background: transparent; }
1438 1438
1439 1439 /* résumé mobile des critères — remplace le FAB (voir media 640 plus bas) */
@@ -1495,7 +1495,7 @@ table.rooms tbody tr:hover td { background: var(--accent-soft); }
1495 1495 min-height: 38px; padding: 7px 15px; font-size: 12.5px; box-shadow: none;
1496 1496 }
1497 1497 .chip:hover { transform: none; box-shadow: none; background: var(--lime-soft); color: var(--accent-deep); }
1498 −.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); box-shadow: none; }
1498 +.chip.on { background: #ffffff; border-color: var(--accent); color: var(--accent); box-shadow: none; }
1499 1499 .chips { margin: 20px 0 0; }
1500 1500
1501 1501 /* ---- Pastilles actives : discrètes, survol = retrait ---- */
@@ -1741,7 +1741,7 @@ body:has(.cta-sticky) .tabbar { display: none; }
1741 1741 font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
1742 1742 padding: 8px 13px; cursor: pointer; min-height: 38px; white-space: nowrap;
1743 1743 }
1744 −.ka-top-btn:hover { background: var(--ink); color: #fff; }
1744 +.ka-top-btn:hover { background: var(--accent-soft); color: var(--accent-deep); }
1745 1745 .ka-top-badge {
1746 1746 min-width: 17px; height: 17px; border-radius: 999px;
1747 1747 background: var(--accent); color: var(--on-accent, #fff);
@@ -1814,7 +1814,7 @@ body.ka-map-mode .kaa-btn, body.ka-map-mode .kaa-hello { display: none !importan
1814 1814 /* status badge on result cards */
1815 1815 .card-img .badge.status {
1816 1816 left: auto; right: 10px; bottom: 10px; top: auto;
1817 − background: var(--ink); color: var(--paper);
1817 + background: var(--accent-red); color: #ffffff;
1818 1818 }
1819 1819
1820 1820 .broker-agency { font-size: 13.5px; color: var(--ink-2); }
@@ -1847,7 +1847,7 @@ body.ka-map-mode .kaa-btn, body.ka-map-mode .kaa-hello { display: none !importan
1847 1847 border-radius: 10px 10px 0 0;
1848 1848 }
1849 1849 .adm-tabs a:hover { color: var(--ink); border-color: var(--ink-3); }
1850 −.adm-tabs a.on { background: var(--ink); color: var(--lime); border-color: var(--ink); }
1850 +.adm-tabs a.on { background: #ffffff; color: var(--accent); border-color: var(--accent); }
1851 1851
1852 1852 .adm-badge {
1853 1853 display: inline-flex; align-items: center; gap: 5px;
1854 1854