SPB Git

spb/vrai-prix Public

Vrai-Prix — l'évaluation du vrai prix des propriétés résidentielles au Québec.

TypeScript 96.7% CSS 3.2%
10.4 KB · 253 lines css
Raw Blame History
1/* -----------------------------------------------------------------------------2  Vrai-Prix — estimation immobilière transparente (Québec)3  Auteur : Simon-Pierre Boucher — contact@spboucher.ai4  Système de design « éditorial sharp » — identité ROUGE distincte de Lou-Ka :5    · Typo display Space Grotesk / texte Inter / micro-étiquettes JetBrains Mono6    · Signature : bordures encre + ombres décalées (néo-brutalisme raffiné)7    · Accent rouge vif #ff5148 + bordeaux #9e2a25 sur encre8----------------------------------------------------------------------------- */9@import "tailwindcss";1011:root {12  --paper: #f5f3ee;13  --surface: #ffffff;14  --surface-2: #faf9f5;15  --ink: #141814;16  --ink-2: #4d5551;17  --ink-3: #8b928c;18  --line: rgba(20, 24, 20, 0.14);19  --line-strong: rgba(20, 24, 20, 0.85);20  --green: #9e2a25;21  --green-deep: #771f1b;22  --lime: #ff5148;23  --lime-soft: #ffe3e0;24  --amber: #e8a33d;25  --amber-soft: #fdf3e2;26  --danger: #b3423a;27  --danger-soft: #fbe9e7;28  --r-card: 10px;29  --r-ctl: 6px;30  --shadow-flat: 0 1px 2px rgba(20, 24, 20, 0.05);31  --shadow-off: 6px 6px 0 var(--ink);32  --shadow-off-soft: 8px 8px 0 rgba(20, 24, 20, 0.08);33}3435@theme inline {36  --color-paper: var(--paper);37  --color-surface: var(--surface);38  --color-surface-2: var(--surface-2);39  --color-ink: var(--ink);40  --color-ink-2: var(--ink-2);41  --color-ink-3: var(--ink-3);42  --color-green: var(--green);43  --color-green-deep: var(--green-deep);44  --color-lime: var(--lime);45  --color-lime-soft: var(--lime-soft);46  --color-amber: var(--amber);47  --color-amber-soft: var(--amber-soft);48  --color-danger: var(--danger);49  --font-display: var(--font-space-grotesk), system-ui, sans-serif;50  --font-body: var(--font-inter), system-ui, sans-serif;51  --font-mono: var(--font-jetbrains), ui-monospace, monospace;52}5354html { scroll-behavior: smooth; }55body {56  background: var(--paper);57  color: var(--ink);58  font-family: var(--font-inter), system-ui, sans-serif;59  font-size: 15px;60  line-height: 1.55;61  -webkit-font-smoothing: antialiased;62  padding-bottom: env(safe-area-inset-bottom);63}64/* grain subtil — texture signature */65body::before {66  content: "";67  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.35;68  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");69}70/* au-dessus du grain (::before positionné, premier dans l'ordre de peinture) ;71   surtout PAS de z-index ici : une règle hors @layer écraserait les utilitaires72   Tailwind (z-[1100] du header, z-[3000] du menu) */73body > * { position: relative; }7475h1, h2, h3, h4 {76  font-family: var(--font-space-grotesk), system-ui, sans-serif;77  letter-spacing: -0.03em;78}79::selection { background: var(--lime); color: var(--ink); }8081/* ---------- primitives signature ---------- */82.vp-display { font-family: var(--font-space-grotesk), system-ui, sans-serif; }83.vp-mono { font-family: var(--font-jetbrains), ui-monospace, monospace; }8485.kicker {86  font-family: var(--font-jetbrains), ui-monospace, monospace;87  font-size: 11.5px; font-weight: 500; text-transform: uppercase;88  letter-spacing: 0.14em; color: var(--green);89  display: inline-flex; align-items: center; gap: 8px;90}91.kicker::before { content: ""; width: 22px; height: 2px; background: var(--green); }9293.klabel {94  font-family: var(--font-jetbrains), ui-monospace, monospace;95  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;96  color: var(--ink-3); font-weight: 700;97}9899.vp-card {100  background: var(--surface);101  border: 1.5px solid var(--ink);102  border-radius: var(--r-card);103  box-shadow: var(--shadow-off-soft);104}105.vp-card-hover { transition: transform 0.16s ease, box-shadow 0.16s ease; }106.vp-card-hover:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-off); }107108.vp-input {109  border: 1.5px solid var(--line); background: var(--surface-2);110  border-radius: var(--r-ctl); padding: 11px 12px; font-size: 15px;111  color: var(--ink); outline: none; font-family: inherit; width: 100%;112  transition: border-color 0.15s ease, box-shadow 0.15s ease; min-height: 44px;113  appearance: none; -webkit-appearance: none;114}115.vp-input:focus { border-color: var(--ink); box-shadow: 3px 3px 0 var(--lime); }116select.vp-input {117  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");118  background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px;119}120@media (max-width: 900px) { .vp-input { font-size: 16px; } } /* anti-zoom iOS */121122.btn {123  border: 1.5px solid var(--ink); border-radius: var(--r-ctl); padding: 11px 20px;124  font-weight: 700; font-size: 14px; cursor: pointer; min-height: 44px;125  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;126  font-family: var(--font-space-grotesk), system-ui, sans-serif; letter-spacing: 0.01em;127  display: inline-flex; align-items: center; justify-content: center; gap: 8px;128}129.btn:active { transform: translate(2px, 2px); box-shadow: none !important; }130.btn-primary { background: var(--ink); color: var(--lime); box-shadow: 4px 4px 0 rgba(20,24,20,0.25); }131.btn-primary:hover { background: var(--green-deep); }132.btn-ghost { background: transparent; color: var(--ink); }133.btn-ghost:hover { background: var(--lime); box-shadow: 4px 4px 0 rgba(20,24,20,0.2); }134135.stat-chip {136  background: var(--surface); border: 1.5px solid var(--ink); border-radius: 999px;137  padding: 8px 16px; font-family: var(--font-jetbrains), ui-monospace, monospace;138  font-size: 12px; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center;139  box-shadow: 3px 3px 0 rgba(20, 24, 20, 0.12); white-space: nowrap;140}141.stat-chip b { color: var(--ink); font-weight: 700; }142.stat-chip .pulse {143  width: 8px; height: 8px; border-radius: 50%; background: var(--green);144  box-shadow: 0 0 0 4px var(--lime-soft); animation: pulse 2.4s ease infinite;145}146@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 81, 72, 0.4); } }147148.hl {149  background: var(--lime); padding: 0 10px; border-radius: 8px; display: inline-block;150  transform: rotate(-1deg);151}152.outline-txt { color: transparent; -webkit-text-stroke: 2px var(--ink); }153154/* ticker */155.ticker {156  background: var(--ink); color: var(--lime); overflow: hidden;157  font-family: var(--font-jetbrains), ui-monospace, monospace;158  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;159  padding: 7px 0; white-space: nowrap;160  border-bottom: 1px solid rgba(255, 81, 72, 0.25);161}162.ticker-track { display: inline-flex; animation: ticker 44s linear infinite; will-change: transform; }163.ticker span { padding: 0 26px; position: relative; }164.ticker span::after { content: "◆"; position: absolute; right: -6px; opacity: 0.5; font-size: 8px; top: 3px; }165@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }166@media (prefers-reduced-motion: reduce) {167  .ticker-track { animation: none; }168  * { transition-duration: 0.01ms !important; }169}170171/* kv cells (fiche) */172.kv-cell {173  background: var(--surface-2); border: 1.5px solid var(--line);174  border-radius: var(--r-ctl); padding: 10px 13px;175}176.kv-cell .k {177  font-family: var(--font-jetbrains), ui-monospace, monospace;178  font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em;179  color: var(--ink-3); font-weight: 700;180}181.kv-cell .v {182  font-weight: 700; font-size: 14.5px; margin-top: 2px;183  font-family: var(--font-space-grotesk), system-ui, sans-serif;184}185186/* pills */187.pill {188  display: inline-block; border-radius: 4px; padding: 3px 10px;189  font-family: var(--font-jetbrains), ui-monospace, monospace;190  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;191}192.pill-conf-A { background: var(--lime); color: var(--ink); border: 1px solid var(--ink); }193.pill-conf-B { background: var(--lime-soft); color: var(--green-deep); border: 1px solid var(--green); }194.pill-conf-C { background: var(--amber-soft); color: #8a5a12; border: 1px solid var(--amber); }195.pill-conf-D { background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger); }196197/* tableau éditorial */198.src-wrap {199  overflow-x: auto; border: 1.5px solid var(--ink); border-radius: var(--r-card);200  box-shadow: var(--shadow-off-soft); background: var(--surface);201}202.src-table { width: 100%; border-collapse: separate; border-spacing: 0; }203.src-table th {204  text-align: left; font-family: var(--font-jetbrains), ui-monospace, monospace;205  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3);206  padding: 12px 14px; border-bottom: 1.5px solid var(--ink); background: var(--surface-2);207  white-space: nowrap;208}209.src-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: top; }210.src-table tr:last-child td { border-bottom: none; }211.src-table tr:hover td { background: var(--surface-2); }212213/* animations de révélation */214@keyframes rise {215  from { opacity: 0; transform: translateY(12px); }216  to { opacity: 1; transform: none; }217}218.rise { animation: rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }219@keyframes growX { from { transform: scaleX(0); } }220.grow-x { transform-origin: left; animation: growX 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }221@keyframes winPop { from { opacity: 0; } }222.vv-win { animation: winPop 0.4s ease both; }223@media (prefers-reduced-motion: reduce) {224  .rise, .grow-x, .vv-win { animation: none; }225}226227/* barres horizontales (historique) */228.hbar-track { background: var(--surface-2); border-radius: 0 4px 4px 0; height: 18px; overflow: hidden; }229.hbar-fill {230  display: block; height: 100%; background: var(--green); border-radius: 0 4px 4px 0;231  min-width: 2px; transition: background 0.12s ease;232}233.hbar-row:hover .hbar-fill { background: var(--ink); box-shadow: inset 0 0 0 2px var(--lime); }234235236/* recherche par carte — popup Leaflet au style éditorial */237.vp-map-popup .leaflet-popup-content-wrapper {238  background: var(--surface);239  border: 1.5px solid var(--ink);240  border-radius: 14px;241  box-shadow: 5px 5px 0 rgba(20, 24, 20, 0.25);242}243.vp-map-popup .leaflet-popup-content { margin: 14px 16px; }244.vp-map-popup .leaflet-popup-tip {245  background: var(--surface);246  border: 1.5px solid var(--ink);247}248.vp-map-popup .leaflet-popup-close-button {249  font-size: 18px;250  color: var(--ink);251  padding: 6px 8px 0 0;252}253