import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import "./globals.css";
import "@/lib/gsap-setup";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import { getVisualEditScript } from "@/utils/visual-edit-script";
import { DM_Sans } from "next/font/google";



export const metadata: Metadata = {
  title: 'Plombier Veigné Tours — PST Mergnac Thomas',
  description: 'Plombier expert à Veigné et Tours Sud. Dépannage fuite d\'eau, débouchage, travaux. Professionnel fiable, réactif et 5/5 sur Google. Contactez le 06 61 99 58 19.',
  keywords: ["plombier Veigné, dépannage plomberie 37, fuite d'eau Veigné, plombier Tours sud"],
  openGraph: {
    "title": "Plombier Veigné — PST Thomas Mergnac",
    "description": "Intervention rapide et travail soigné à Veigné (37).",
    "type": "website",
    "siteName": "PST - EI Mergnac Thomas"
  },
};

const dmSans = DM_Sans({
  variable: "--font-dm-sans",
  subsets: ["latin"],
});

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" suppressHydrationWarning>
      <ServiceWrapper>
        <body className={`${dmSans.variable} antialiased`}>
          
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
