import type { Metadata } from "next";
import "./globals.css";
import Header from "../components/layout/Header";
import Footer from "../components/layout/Footer";
import { FloatingButtons } from "../components/features/FloatingButtons";
import { CookieConsent } from "../components/features/CookieConsent";

export const metadata: Metadata = {
  title: "PRIOLEAUD 2026",
  description:
    "Jonathan PRIOLEAUD, candidat aux élections municipales de 2026 à Bergerac",
  robots: {
    index: false,
    follow: false,
    googleBot: {
      index: false,
      follow: false,
    },
  },
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="fr">
      <head>
        <link
          rel="stylesheet"
          href="https://use.typekit.net/cnf5dus.css"
        ></link>
      </head>
      <body>
        <Header />
        <FloatingButtons />
        <CookieConsent />
        <div className="flex min-h-screen flex-col items-center justify-center bg-zinc-50">
          <main className="flex w-full max-w-7xl flex-col items-center justify-between pt-20 pb-16 md:py-32 px-4 sm:px-6 md:px-8 lg:px-12 xl:px-16 bg-white sm:items-start flex-1">
            {children}
          </main>
          <Footer />
        </div>
      </body>
    </html>
  );
}
