import type { Metadata } from "next"; import "./globals.css"; import { GeistSans } from "geist/font/sans"; import { cn } from "@/lib/utils"; import { ThemeProvider } from "@/context/theme-provider"; import { NavBar } from "@/components/navbar"; import { KleapScripts } from "@/components/kleap-scripts"; import { DevToolsGuard } from "./devtools-guard"; import { TailwindCDNClient } from "@/components/tailwind-cdn-client"; export const metadata: Metadata = { title: { default: "SARL S.T.H. - Dépannage Chauffage & Plomberie d'Urgence", template: "%s | SARL S.T.H.", }, description: "Service de dépannage d'urgence pour chauffage et plomberie. Intervention rapide par des techniciens qualifiés.", keywords: ["Dépannage", "Chauffage", "Plomberie", "Urgence", "Réparation"], authors: [{ name: "SARL S.T.H." }], creator: "SARL S.T.H.", publisher: "SARL S.T.H.", icons: { icon: "/favicon.ico", shortcut: "/favicon.ico", apple: "/favicon.ico", }, robots: { index: true, follow: true, googleBot: { index: true, follow: true, "max-video-preview": -1, "max-image-preview": "large", "max-snippet": -1, }, }, openGraph: { type: "website", locale: "en_US", url: process.env.NEXT_PUBLIC_URL || "https://kleap.co", siteName: "SARL S.T.H.", title: "SARL S.T.H. - Dépannage Chauffage & Plomberie d'Urgence", description: "Service de dépannage d'urgence pour chauffage et plomberie. Intervention rapide par des techniciens qualifiés.", images: [ { url: "/og-image.png", width: 1200, height: 630, alt: "Dépannage Chauffage & Plomberie", }, ], }, twitter: { card: "summary_large_image", title: "Dépannage Chauffage & Plomberie d'Urgence - Solution Rapide", description: "Service de dépannage d'urgence pour chauffage et plomberie. Intervention rapide par des techniciens qualifiés.", images: ["/og-image.png"], creator: "@yourtwitter", }, metadataBase: new URL(process.env.NEXT_PUBLIC_URL || "https://kleap.co"), alternates: { canonical: "/", }, }; export default function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { return ( {/* CRITICAL: Base styles to prevent FOUC and hydration errors ⚠️ DO NOT REMOVE OR MODIFY WITHOUT CAREFUL TESTING ⚠️ React 19 requires href and precedence attributes on style tags */}
{children}
); }