Vrai-Prix — l'évaluation du vrai prix des propriétés résidentielles au Québec.
TypeScript 90.2%
JavaScript 3.5%
Python 3.4%
CSS 1.9%
HTML 0.6%
1// Auteur : Simon-Pierre Boucher — contact@spboucher.ai2/** Bandeau /stats → /stats/marche : la validation externe de la mesure. */3"use client";4import Link from "next/link";5import { useLang } from "./LangContext";67export default function MarcheTeaser({8 n,9 mdape,10 ratio,11}: {12 n: number;13 mdape: number;14 ratio: number;15}) {16 const { lang } = useLang();17 const fr = lang === "fr";18 const loc = fr ? "fr-CA" : "en-CA";19 return (20 <section className="mx-auto mt-12 max-w-5xl px-4">21 <Link22 href="/stats/marche"23 className="vp-card vp-card-hover block border-l-4 border-l-[var(--accent)] p-5"24 >25 <span className="kicker">{fr ? "Nouveau — validation externe" : "New — external validation"}</span>26 <h2 className="vp-display mt-2 text-[20px] font-bold uppercase tracking-[-0.02em]">27 {fr ? "La mesure à l'épreuve du marché" : "The measure vs. the market"}28 </h2>29 <p className="mt-2 max-w-3xl text-[13.5px] leading-relaxed text-ink-2">30 {fr31 ? `Le moteur confronté à ${n.toLocaleString(loc)} annonces réellement à vendre (base Immo-Ka) : ratio médian estimation / prix demandé ${ratio.toLocaleString(loc, { minimumFractionDigits: 3 })}, MdAPE ${(mdape * 100).toLocaleString(loc, { maximumFractionDigits: 1 })} %, et la calibration A-D vérifiée sur le terrain →`32 : `The engine tested on ${n.toLocaleString(loc)} properties actually for sale (Immo-Ka data): median estimate/asking ratio ${ratio.toLocaleString(loc, { minimumFractionDigits: 3 })}, ${(mdape * 100).toLocaleString(loc, { maximumFractionDigits: 1 })}% MdAPE, and the A-D calibration verified in the field →`}33 </p>34 </Link>35 </section>36 );37}38