/* ----------------------------------------------------------------------------- Vrai-Prix — estimation immobilière transparente (Québec) Auteur : Simon-Pierre Boucher — contact@spboucher.ai Système de design « éditorial sharp » — identité ROUGE distincte de Lou-Ka : · Typo display Space Grotesk / texte Inter / micro-étiquettes JetBrains Mono · Signature : bordures encre + ombres décalées (néo-brutalisme raffiné) · Accent rouge vif #ff5148 + bordeaux #9e2a25 sur encre ----------------------------------------------------------------------------- */ @import "tailwindcss"; :root { --paper: #f5f3ee; --surface: #ffffff; --surface-2: #faf9f5; --ink: #141814; --ink-2: #4d5551; --ink-3: #8b928c; --line: rgba(20, 24, 20, 0.14); --line-strong: rgba(20, 24, 20, 0.85); --green: #9e2a25; --green-deep: #771f1b; --lime: #ff5148; --lime-soft: #ffe3e0; --amber: #e8a33d; --amber-soft: #fdf3e2; --danger: #b3423a; --danger-soft: #fbe9e7; --r-card: 10px; --r-ctl: 6px; --shadow-flat: 0 1px 2px rgba(20, 24, 20, 0.05); --shadow-off: 6px 6px 0 var(--ink); --shadow-off-soft: 8px 8px 0 rgba(20, 24, 20, 0.08); } @theme inline { --color-paper: var(--paper); --color-surface: var(--surface); --color-surface-2: var(--surface-2); --color-ink: var(--ink); --color-ink-2: var(--ink-2); --color-ink-3: var(--ink-3); --color-green: var(--green); --color-green-deep: var(--green-deep); --color-lime: var(--lime); --color-lime-soft: var(--lime-soft); --color-amber: var(--amber); --color-amber-soft: var(--amber-soft); --color-danger: var(--danger); --font-display: var(--font-space-grotesk), system-ui, sans-serif; --font-body: var(--font-inter), system-ui, sans-serif; --font-mono: var(--font-jetbrains), ui-monospace, monospace; } html { scroll-behavior: smooth; } body { background: var(--paper); color: var(--ink); font-family: var(--font-inter), system-ui, sans-serif; font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; padding-bottom: env(safe-area-inset-bottom); } /* grain subtil — texture signature */ body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.35; 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"); } /* au-dessus du grain (::before positionné, premier dans l'ordre de peinture) ; surtout PAS de z-index ici : une règle hors @layer écraserait les utilitaires Tailwind (z-[1100] du header, z-[3000] du menu) */ body > * { position: relative; } h1, h2, h3, h4 { font-family: var(--font-space-grotesk), system-ui, sans-serif; letter-spacing: -0.03em; } ::selection { background: var(--lime); color: var(--ink); } /* ---------- primitives signature ---------- */ .vp-display { font-family: var(--font-space-grotesk), system-ui, sans-serif; } .vp-mono { font-family: var(--font-jetbrains), ui-monospace, monospace; } .kicker { font-family: var(--font-jetbrains), ui-monospace, monospace; font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--green); display: inline-flex; align-items: center; gap: 8px; } .kicker::before { content: ""; width: 22px; height: 2px; background: var(--green); } .klabel { font-family: var(--font-jetbrains), ui-monospace, monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); font-weight: 700; } .vp-card { background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-off-soft); } .vp-card-hover { transition: transform 0.16s ease, box-shadow 0.16s ease; } .vp-card-hover:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-off); } .vp-input { border: 1.5px solid var(--line); background: var(--surface-2); border-radius: var(--r-ctl); padding: 11px 12px; font-size: 15px; color: var(--ink); outline: none; font-family: inherit; width: 100%; transition: border-color 0.15s ease, box-shadow 0.15s ease; min-height: 44px; appearance: none; -webkit-appearance: none; } .vp-input:focus { border-color: var(--ink); box-shadow: 3px 3px 0 var(--lime); } select.vp-input { 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; padding-right: 30px; } @media (max-width: 900px) { .vp-input { font-size: 16px; } } /* anti-zoom iOS */ .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-space-grotesk), system-ui, sans-serif; letter-spacing: 0.01em; display: inline-flex; align-items: center; justify-content: center; gap: 8px; } .btn:active { transform: translate(2px, 2px); box-shadow: none !important; } .btn-primary { background: var(--ink); color: var(--lime); box-shadow: 4px 4px 0 rgba(20,24,20,0.25); } .btn-primary:hover { background: var(--green-deep); } .btn-ghost { background: transparent; color: var(--ink); } .btn-ghost:hover { background: var(--lime); box-shadow: 4px 4px 0 rgba(20,24,20,0.2); } .stat-chip { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 16px; font-family: var(--font-jetbrains), ui-monospace, monospace; font-size: 12px; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; box-shadow: 3px 3px 0 rgba(20, 24, 20, 0.12); white-space: nowrap; } .stat-chip b { color: var(--ink); font-weight: 700; } .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; } @keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 81, 72, 0.4); } } .hl { background: var(--lime); padding: 0 10px; border-radius: 8px; display: inline-block; transform: rotate(-1deg); } .outline-txt { color: transparent; -webkit-text-stroke: 2px var(--ink); } /* ticker */ .ticker { background: var(--ink); color: var(--lime); overflow: hidden; font-family: var(--font-jetbrains), ui-monospace, monospace; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 7px 0; white-space: nowrap; border-bottom: 1px solid rgba(255, 81, 72, 0.25); } .ticker-track { display: inline-flex; animation: ticker 44s linear infinite; will-change: transform; } .ticker span { padding: 0 26px; position: relative; } .ticker span::after { content: "◆"; position: absolute; right: -6px; opacity: 0.5; font-size: 8px; top: 3px; } @keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } } @media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } * { transition-duration: 0.01ms !important; } } /* kv cells (fiche) */ .kv-cell { background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--r-ctl); padding: 10px 13px; } .kv-cell .k { font-family: var(--font-jetbrains), ui-monospace, monospace; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); font-weight: 700; } .kv-cell .v { font-weight: 700; font-size: 14.5px; margin-top: 2px; font-family: var(--font-space-grotesk), system-ui, sans-serif; } /* pills */ .pill { display: inline-block; border-radius: 4px; padding: 3px 10px; font-family: var(--font-jetbrains), ui-monospace, monospace; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; } .pill-conf-A { background: var(--lime); color: var(--ink); border: 1px solid var(--ink); } .pill-conf-B { background: var(--lime-soft); color: var(--green-deep); border: 1px solid var(--green); } .pill-conf-C { background: var(--amber-soft); color: #8a5a12; border: 1px solid var(--amber); } .pill-conf-D { background: var(--danger-soft); color: var(--danger); border: 1px solid var(--danger); } /* tableau éditorial */ .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); } .src-table { width: 100%; border-collapse: separate; border-spacing: 0; } .src-table th { text-align: left; font-family: var(--font-jetbrains), ui-monospace, monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); padding: 12px 14px; border-bottom: 1.5px solid var(--ink); background: var(--surface-2); white-space: nowrap; } .src-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: top; } .src-table tr:last-child td { border-bottom: none; } .src-table tr:hover td { background: var(--surface-2); } /* animations de révélation */ @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } } .rise { animation: rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; } @keyframes growX { from { transform: scaleX(0); } } .grow-x { transform-origin: left; animation: growX 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; } @keyframes winPop { from { opacity: 0; } } .vv-win { animation: winPop 0.4s ease both; } @media (prefers-reduced-motion: reduce) { .rise, .grow-x, .vv-win { animation: none; } } /* barres horizontales (historique) */ .hbar-track { background: var(--surface-2); border-radius: 0 4px 4px 0; height: 18px; overflow: hidden; } .hbar-fill { display: block; height: 100%; background: var(--green); border-radius: 0 4px 4px 0; min-width: 2px; transition: background 0.12s ease; } .hbar-row:hover .hbar-fill { background: var(--ink); box-shadow: inset 0 0 0 2px var(--lime); } /* recherche par carte — popup Leaflet au style éditorial */ .vp-map-popup .leaflet-popup-content-wrapper { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 14px; box-shadow: 5px 5px 0 rgba(20, 24, 20, 0.25); } .vp-map-popup .leaflet-popup-content { margin: 14px 16px; } .vp-map-popup .leaflet-popup-tip { background: var(--surface); border: 1.5px solid var(--ink); } .vp-map-popup .leaflet-popup-close-button { font-size: 18px; color: var(--ink); padding: 6px 8px 0 0; }