import type { Metadata } from "next";
import { Geist } from "next/font/google";
import "./globals.css";

const geistSans = Geist({
  variable: "--font-geist-sans",
  subsets: ["latin"],
});

export const metadata: Metadata = {
  title: "SEO Insight — ce que votre site sert vraiment",
  description: "Rendu, indexabilité et hreflang, lus comme Googlebot les lit.",
  // Nothing here is for search engines: it is a dashboard behind a session.
  robots: { index: false, follow: false },
};

/**
 * `dark` on the root is a decision, not an oversight.
 *
 * shadcn drives dark mode off that class rather than off the system
 * preference, so without it every `dark:` in the repo goes quiet and a
 * dashboard that has always been dark turns white. Remove the class to go
 * light; there is no toggle to maintain either way.
 */
export default function RootLayout({ children }: LayoutProps<"/">) {
  return (
    <html lang="fr" className={`dark ${geistSans.variable} h-full antialiased`}>
      <body className="bg-background text-foreground flex min-h-full flex-col font-sans">
        {children}
      </body>
    </html>
  );
}
