Repository Public
1/**2 * =============================================================================3 * SP BOUCHER | SOFTWARE & RESEARCH4 * ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project : Vrai-Prix8 * File : src/app/layout.tsx9 * Module : app10 * Repository : https://git.spboucher.ai/vrai-prix11 * Created : 2026-08-0812 * Last Modified : 2026-08-2513 *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 */4142import type { Metadata, Viewport } from "next";43import { Inter, JetBrains_Mono, Space_Grotesk } from "next/font/google";44import "./globals.css";45import "../styles/tabbar.css";46import { LangProvider, LangToggle } from "@/components/LangContext";47import CookieConsent from "@/components/CookieConsent";48import FooterNav from "@/components/FooterNav";49import MobileTabBar from "@/components/MobileTabBar";50import HeaderNav from "@/components/HeaderNav";51import Link from "next/link";52import { CONTACT_EMAIL, PREPROD, SITE_URL } from "@/lib/seo";5354const inter = Inter({ subsets: ["latin"], variable: "--font-inter" });55const spaceGrotesk = Space_Grotesk({56 subsets: ["latin"],57 variable: "--font-space-grotesk",58});59const jetbrains = JetBrains_Mono({60 subsets: ["latin"],61 variable: "--font-jetbrains",62});6364export const metadata: Metadata = {65 metadataBase: new URL(SITE_URL),66 title: {67 default: "Vrai-Prix — estimation immobilière au Québec",68 template: "%s | Vrai-Prix",69 },70 description:71 "Estimation immobilière transparente pour le Québec : modèle hédonique + comparables réels, fourchette honnête et indice de confiance. 3,7 millions de propriétés, 1 100 municipalités.",72 applicationName: "Vrai-Prix",73 icons: { icon: "/favicon.svg", apple: "/apple-touch-icon.png" },74 openGraph: {75 type: "website",76 siteName: "Vrai-Prix",77 locale: "fr_CA",78 url: SITE_URL,79 title: "Vrai-Prix — estimation immobilière au Québec",80 description:81 "Estimation immobilière transparente pour le Québec : modèle hédonique + comparables réels, fourchette honnête et indice de confiance.",82 images: [83 { url: "/og.png", width: 1200, height: 630 },84 ],85 },86 twitter: {87 card: "summary_large_image",88 images: [89 { url: "/og.png", width: 1200, height: 630 },90 ],91 title: "Vrai-Prix — estimation immobilière au Québec",92 description:93 "Estimation immobilière transparente pour le Québec : 3,7 millions de propriétés estimées, calcul montré en entier.",94 },95 formatDetection: { telephone: false },96 // préproduction : jamais indexée (voir aussi robots.ts et l'en-tête X-Robots-Tag)97 ...(PREPROD ? { robots: { index: false, follow: false } } : {}),98};99100/** Viewport mobile : viewport-fit=cover pour les encoches iOS (safe-area). */101export const viewport: Viewport = {102 width: "device-width",103 initialScale: 1,104 viewportFit: "cover",105};106107/** JSON-LD global : l'organisation et le site (entités schema.org). */108const ORG_JSONLD = {109 "@context": "https://schema.org",110 "@graph": [111 {112 "@type": "Organization",113 "@id": `${SITE_URL}/#org`,114 name: "Vrai-Prix",115 url: SITE_URL,116 email: CONTACT_EMAIL,117 founder: { "@type": "Person", name: "Simon-Pierre Boucher" },118 areaServed: { "@type": "AdministrativeArea", name: "Québec, Canada" },119 },120 {121 "@type": "WebSite",122 "@id": `${SITE_URL}/#site`,123 name: "Vrai-Prix",124 url: SITE_URL,125 inLanguage: "fr-CA",126 publisher: { "@id": `${SITE_URL}/#org` },127 description:128 "Estimation immobilière transparente pour le Québec : modèle hédonique + comparables réels, fourchette honnête et indice de confiance.",129 },130 ],131};132133const TICKER = [134 "3 747 008 unités d'évaluation",135 "745 119 ventes réelles 2021-2026",136 "22 M d'estimations calculées",137 "Fourchette honnête P10-P90",138 "Indice de confiance A-D",139 "Zéro boîte noire — le calcul est montré",140 "1 100 municipalités couvertes",141 "Erreur médiane 11 %",142];143144export default function RootLayout({ children }: LayoutProps<"/">) {145 return (146 <html lang="fr-CA">147 <body148 className={`${inter.variable} ${spaceGrotesk.variable} ${jetbrains.variable}`}149 >150 <script151 type="application/ld+json"152 dangerouslySetInnerHTML={{ __html: JSON.stringify(ORG_JSONLD) }}153 />154 <LangProvider>155 {/* header opaque compact */}156 <header className="sticky top-0 z-[var(--z-header,500)] border-b border-[var(--line-strong)] bg-paper">157 <div className="relative mx-auto flex h-14 max-w-6xl items-center gap-6 px-4 sm:px-6">158 <Link159 href="/"160 className="vp-display relative flex items-baseline gap-1.5 text-[19px] font-bold leading-none tracking-[-0.04em] after:absolute after:-inset-2 after:content-['']"161 >162 Vrai Prix163 <span164 aria-hidden="true"165 className="inline-block h-[7px] w-[7px] bg-accent"166 />167 </Link>168 <div className="ml-auto flex items-center gap-3 sm:gap-4">169 <HeaderNav />170 <span171 aria-hidden="true"172 className="hidden h-4 w-px bg-[var(--line)] lg:inline-block"173 />174 <LangToggle />175 </div>176 </div>177 </header>178 <div className="ticker" aria-hidden="true">179 <div className="ticker-track">180 {[...TICKER, ...TICKER].map((s, i) => (181 <span key={i}>{s}</span>182 ))}183 </div>184 </div>185 <main className="mx-auto max-w-6xl px-4 pb-16 sm:px-6">{children}</main>186 {/* pied de page : marque, sources, navigation, contact */}187 <div className="mx-auto max-w-6xl px-4 sm:px-6">188 <div className="border-t-2 border-ink pt-7 text-[13px] text-ink-2">189 <p className="vp-display mb-3 flex items-baseline gap-2 text-[24px] font-bold tracking-[-0.04em] text-ink">190 Vrai Prix191 <span192 aria-hidden="true"193 className="inline-block h-[8px] w-[8px] bg-accent"194 />195 </p>196 <p className="max-w-2xl">197 Estimations bâties sur les rôles d'évaluation foncière du198 Québec (MAMH, données ouvertes) et 745 119 transactions réelles.199 Modèle hédonique + comparables ajustés, calcul montré en entier.200 Estimation statistique à titre indicatif.201 </p>202 <FooterNav />203 <p className="vp-mono mt-6 pb-8 text-[11px] text-ink-3">204 © {new Date().getFullYear()} Simon-Pierre Boucher ·{" "}205 <a href={`mailto:${CONTACT_EMAIL}`} className="underline">206 {CONTACT_EMAIL}207 </a>208 </p>209 </div>210 </div>211 <MobileTabBar />212 <CookieConsent />213 </LangProvider>214 </body>215 </html>216 );217}218