Vrai-Prix — l'évaluation du vrai prix des propriétés résidentielles au Québec.
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";10/* ka-ui (Groupe KA) — tokens + composants communs (.gk-badge, .ka-footer, .card…).11 Importé dans layer(base) AVANT le corps de ce fichier : il bat le preflight12 Tailwind mais reste sous les utilitaires (layered) et sous nos règles locales13 (non-layered). Un import brut dans layout.tsx écraserait les text-[…]/leading-[…]14 des titres (règles éléments non-layered > utilitaires layered). */15@import "../ka/tokens.css" layer(base);1617:root {18 /* ---- Accent Vrai-Prix (tokens canoniques ka-ui) — identité rouge ---- */19 --accent: #ff5148;20 --accent-soft: #ffe3e0;21 --accent-deep: #9e2a25;22 --on-accent: #ffffff;2324 --paper: #f5f3ee;25 --surface: #ffffff;26 --surface-2: #faf9f5;27 --ink: #141814;28 --ink-2: #4d5551;29 --ink-3: #8b928c;30 --line: rgba(20, 24, 20, 0.14);31 --line-strong: rgba(20, 24, 20, 0.85);32 --green: #9e2a25;33 --green-deep: #771f1b;34 --lime: var(--accent); /* alias historiques → l'accent est le token canonique */35 --lime-soft: var(--accent-soft);36 --amber: #e8a33d;37 --amber-soft: #fdf3e2;38 --danger: #b3423a;39 --danger-soft: #fbe9e7;40 --r-card: 10px;41 --r-ctl: 6px;42 --shadow-flat: 0 1px 2px rgba(20, 24, 20, 0.05);43 --shadow-off: 6px 6px 0 var(--ink);44 --shadow-off-soft: 8px 8px 0 rgba(20, 24, 20, 0.08);45}4647@theme inline {48 --color-paper: var(--paper);49 --color-surface: var(--surface);50 --color-surface-2: var(--surface-2);51 --color-ink: var(--ink);52 --color-ink-2: var(--ink-2);53 --color-ink-3: var(--ink-3);54 --color-green: var(--green);55 --color-green-deep: var(--green-deep);56 --color-lime: var(--lime);57 --color-lime-soft: var(--lime-soft);58 --color-amber: var(--amber);59 --color-amber-soft: var(--amber-soft);60 --color-danger: var(--danger);61 --font-display: var(--font-space-grotesk), system-ui, sans-serif;62 --font-body: var(--font-inter), system-ui, sans-serif;63 --font-mono: var(--font-jetbrains), ui-monospace, monospace;64}6566/* compat ka-ui : tokens.css impose marges + tailles fluides aux titres ; le67 design local dimensionne les siens via utilitaires → on rétablit le68 comportement preflight (même layer, source postérieure = prioritaire). */69@layer base {70 h1, h2, h3, h4 { margin: 0; font-size: inherit; line-height: inherit; }71}7273html { scroll-behavior: smooth; }74body {75 background: var(--paper);76 color: var(--ink);77 font-family: var(--font-inter), system-ui, sans-serif;78 font-size: 15px;79 line-height: 1.55;80 -webkit-font-smoothing: antialiased;81 padding-bottom: env(safe-area-inset-bottom);82}83/* grain subtil — texture signature */84body::before {85 content: "";86 position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.35;87 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");88}89/* au-dessus du grain (::before positionné, premier dans l'ordre de peinture) ;90 surtout PAS de z-index ici : une règle hors @layer écraserait les utilitaires91 Tailwind (z-[1100] du header, z-[3000] du menu) */92body > * { position: relative; }9394h1, h2, h3, h4 {95 font-family: var(--font-space-grotesk), system-ui, sans-serif;96 letter-spacing: -0.03em;97}98::selection { background: var(--lime); color: var(--ink); }99100/* ---------- primitives signature ---------- */101.vp-display { font-family: var(--font-space-grotesk), system-ui, sans-serif; }102.vp-mono { font-family: var(--font-jetbrains), ui-monospace, monospace; }103104.kicker {105 font-family: var(--font-jetbrains), ui-monospace, monospace;106 font-size: 11.5px; font-weight: 500; text-transform: uppercase;107 letter-spacing: 0.14em; color: var(--green);108 display: inline-flex; align-items: center; gap: 8px;109}110.kicker::before { content: ""; width: 22px; height: 2px; background: var(--green); }111112.klabel {113 font-family: var(--font-jetbrains), ui-monospace, monospace;114 font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;115 color: var(--ink-3); font-weight: 700;116}117118.vp-card {119 background: var(--surface);120 border: 1.5px solid var(--ink);121 border-radius: var(--r-card);122 box-shadow: var(--shadow-off-soft);123}124.vp-card-hover { transition: transform 0.16s ease, box-shadow 0.16s ease; }125.vp-card-hover:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-off); }126127.vp-input {128 border: 1.5px solid var(--line); background: var(--surface-2);129 border-radius: var(--r-ctl); padding: 11px 12px; font-size: 15px;130 color: var(--ink); outline: none; font-family: inherit; width: 100%;131 transition: border-color 0.15s ease, box-shadow 0.15s ease; min-height: 44px;132 appearance: none; -webkit-appearance: none;133}134.vp-input:focus { border-color: var(--ink); box-shadow: 3px 3px 0 var(--lime); }135select.vp-input {136 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");137 background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px;138}139@media (max-width: 900px) { .vp-input { font-size: 16px; } } /* anti-zoom iOS */140141.btn {142 border: 1.5px solid var(--ink); border-radius: var(--r-ctl); padding: 11px 20px;143 font-weight: 700; font-size: 14px; cursor: pointer; min-height: 44px;144 transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;145 font-family: var(--font-space-grotesk), system-ui, sans-serif; letter-spacing: 0.01em;146 display: inline-flex; align-items: center; justify-content: center; gap: 8px;147}148.btn:active { transform: translate(2px, 2px); box-shadow: none !important; }149.btn-primary { background: var(--ink); color: var(--lime); box-shadow: 4px 4px 0 rgba(20,24,20,0.25); }150.btn-primary:hover { background: var(--green-deep); }151.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }152.btn-ghost:hover { background: var(--lime); box-shadow: 4px 4px 0 rgba(20,24,20,0.2); }153154.stat-chip {155 background: var(--surface); border: 1.5px solid var(--ink); border-radius: 999px;156 padding: 8px 16px; font-family: var(--font-jetbrains), ui-monospace, monospace;157 font-size: 12px; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center;158 box-shadow: 3px 3px 0 rgba(20, 24, 20, 0.12); white-space: nowrap;159}160.stat-chip b { color: var(--ink); font-weight: 700; }161.stat-chip .pulse {162 width: 8px; height: 8px; border-radius: 50%; background: var(--green);163 box-shadow: 0 0 0 4px var(--lime-soft); animation: pulse 2.4s ease infinite;164}165@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 81, 72, 0.4); } }166167.hl {168 background: var(--lime); padding: 0 10px; border-radius: 8px; display: inline-block;169 transform: rotate(-1deg);170}171.outline-txt { color: transparent; -webkit-text-stroke: 2px var(--ink); }172173/* ticker */174.ticker {175 background: var(--ink); color: var(--lime); overflow: hidden;176 font-family: var(--font-jetbrains), ui-monospace, monospace;177 font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;178 padding: 7px 0; white-space: nowrap;179 border-bottom: 1px solid rgba(255, 81, 72, 0.25);180}181.ticker-track { display: inline-flex; animation: ticker 44s linear infinite; will-change: transform; }182.ticker span { padding: 0 26px; position: relative; }183.ticker span::after { content: "◆"; position: absolute; right: -6px; opacity: 0.5; font-size: 8px; top: 3px; }184@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }185@media (prefers-reduced-motion: reduce) {186 .ticker-track { animation: none; }187 * { transition-duration: 0.01ms !important; }188}189190/* kv cells (fiche) */191.kv-cell {192 background: var(--surface-2); border: 1.5px solid var(--line);193 border-radius: var(--r-ctl); padding: 10px 13px;194}195.kv-cell .k {196 font-family: var(--font-jetbrains), ui-monospace, monospace;197 font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em;198 color: var(--ink-3); font-weight: 700;199}200.kv-cell .v {201 font-weight: 700; font-size: 14.5px; margin-top: 2px;202 font-family: var(--font-space-grotesk), system-ui, sans-serif;203}204205/* pills */206.pill {207 display: inline-block; border-radius: 4px; padding: 3px 10px;208 font-family: var(--font-jetbrains), ui-monospace, monospace;209 font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;210}211.pill-conf-A { background: var(--lime); color: var(--ink); border: 1px solid var(--ink); }212.pill-conf-B { background: var(--lime-soft); color: var(--green-deep); border: 1px solid var(--green); }213.pill-conf-C { background: var(--amber-soft); color: #8a5a12; border: 1px solid var(--amber); }214.pill-conf-D { background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger); }215216/* tableau éditorial */217.src-wrap {218 overflow-x: auto; border: 1.5px solid var(--ink); border-radius: var(--r-card);219 box-shadow: var(--shadow-off-soft); background: var(--surface);220}221.src-table { width: 100%; border-collapse: separate; border-spacing: 0; }222.src-table th {223 text-align: left; font-family: var(--font-jetbrains), ui-monospace, monospace;224 font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3);225 padding: 12px 14px; border-bottom: 1.5px solid var(--ink); background: var(--surface-2);226 white-space: nowrap;227}228.src-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: top; }229.src-table tr:last-child td { border-bottom: none; }230.src-table tr:hover td { background: var(--surface-2); }231232/* animations de révélation */233@keyframes rise {234 from { opacity: 0; transform: translateY(12px); }235 to { opacity: 1; transform: none; }236}237.rise { animation: rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }238@keyframes growX { from { transform: scaleX(0); } }239.grow-x { transform-origin: left; animation: growX 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }240@keyframes winPop { from { opacity: 0; } }241.vv-win { animation: winPop 0.4s ease both; }242@media (prefers-reduced-motion: reduce) {243 .rise, .grow-x, .vv-win { animation: none; }244}245246/* barres horizontales (historique) */247.hbar-track { background: var(--surface-2); border-radius: 0 4px 4px 0; height: 18px; overflow: hidden; }248.hbar-fill {249 display: block; height: 100%; background: var(--green); border-radius: 0 4px 4px 0;250 min-width: 2px; transition: background 0.12s ease;251}252.hbar-row:hover .hbar-fill { background: var(--ink); box-shadow: inset 0 0 0 2px var(--lime); }253254255/* Vrai-Prix Maps (framework Ka Maps par Groupe Ka) — recherche par carte */256.vpm-wrap {257 position: relative;258 height: 62vh;259 min-height: 420px;260 width: 100%;261 border: 1.5px solid var(--ink);262 border-radius: 16px;263 overflow: hidden;264 box-shadow: 6px 6px 0 rgba(20, 24, 20, 0.22);265 z-index: 0;266}267.vpm-wrap .ka-map {268 --ka-accent: var(--lime);269 --ka-on-accent: #ffffff;270 --ka-surface: var(--surface);271 --ka-ink: var(--ink);272 --ka-line: var(--ink);273 --ka-radius: 10px;274 --ka-shadow: 4px 4px 0 rgba(20, 24, 20, 0.2);275 --ka-font: var(--font-inter), system-ui, sans-serif;276 position: absolute;277 inset: 0;278}279.vpm-chip {280 position: absolute;281 bottom: 12px;282 left: 12px;283 z-index: 9;284 background: var(--surface);285 color: var(--ink);286 border: 1.5px solid var(--ink);287 border-radius: 999px;288 padding: 6px 12px;289 font-family: var(--font-jetbrains), monospace;290 font-size: 10.5px;291 text-transform: uppercase;292 letter-spacing: 0.06em;293}294.vpm-pop { padding: 16px 16px 14px; min-width: 230px; }295.vpm-pop-value {296 font-family: var(--font-space-grotesk), sans-serif;297 font-weight: 700;298 font-size: 22px;299 letter-spacing: -0.02em;300 margin-top: 2px;301}302.vpm-pop-addr { font-size: 13.5px; color: var(--ink); margin-top: 6px; }303.vpm-pop-meta { font-size: 12px; color: var(--ink-2); margin-top: 2px; }304.vpm-pop-cta {305 display: inline-block;306 margin-top: 12px;307 padding: 9px 14px;308 background: var(--ink);309 color: var(--lime);310 border: 1.5px solid var(--ink);311 border-radius: 999px;312 font-size: 12.5px;313 font-weight: 600;314 cursor: pointer;315}316.vpm-pop-cta:active { transform: translate(2px, 2px); }317