Repository Public
1/**2 * =============================================================================3 * SP BOUCHER | SOFTWARE & RESEARCH4 * ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project : Vrai-Prix8 * File : src/components/MarcheTeaser.tsx9 * Module : components10 * Repository : https://git.spboucher.ai/vrai-prix11 * Created : 2026-09-0812 * Last Modified : 2026-09-0813 *14 * Author : Simon-Pierre Boucher15 * Position : Professor of Finance16 * Institution : Université du Québec en Outaouais (UQO)17 * Organization : SP Boucher18 * Website : https://spboucher.ai19 * Git : https://git.spboucher.ai20 *21 * Preferred Contact: contact@spboucher.ai22 * Development : dev@spboucher.ai23 * Support : support@spboucher.ai24 * Security/Admin : admin@spboucher.ai25 *26 * Copyright (c) 202627 * Simon-Pierre Boucher28 * All rights reserved where applicable. This file is governed by the29 * applicable project license, copyright notices and relevant law.30 * Existing third-party rights and notices remain unaffected.31 *32 * License : None specified (no license file in this repository)33 *34 * Do not embed credentials, private keys, access tokens,35 * certificates or confidential personal information.36 *37 * =============================================================================38 * END OF SP BOUCHER SOURCE HEADER39 * =============================================================================40 */4142/** Bandeau /stats → /stats/marche : la validation externe de la mesure. */43"use client";44import Link from "next/link";45import { useLang } from "./LangContext";4647export default function MarcheTeaser({48 n,49 mdape,50 ratio,51}: {52 n: number;53 mdape: number;54 ratio: number;55}) {56 const { lang } = useLang();57 const fr = lang === "fr";58 const loc = fr ? "fr-CA" : "en-CA";59 return (60 <section className="mx-auto mt-12 max-w-5xl px-4">61 <Link62 href="/stats/marche"63 className="vp-card vp-card-hover block border-l-4 border-l-[var(--accent)] p-5"64 >65 <span className="kicker">{fr ? "Nouveau — validation externe" : "New — external validation"}</span>66 <h2 className="vp-display mt-2 text-[20px] font-bold uppercase tracking-[-0.02em]">67 {fr ? "La mesure à l'épreuve du marché" : "The measure vs. the market"}68 </h2>69 <p className="mt-2 max-w-3xl text-[13.5px] leading-relaxed text-ink-2">70 {fr71 ? `Le moteur confronté à ${n.toLocaleString(loc)} annonces réellement à vendre : 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 →`72 : `The engine tested on ${n.toLocaleString(loc)} properties actually for sale: 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 →`}73 </p>74 </Link>75 </section>76 );77}78