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 { Montserrat } from "next/font/google";



export const metadata: Metadata = {
  title: 'Kaltech Chauffagiste Sorigny | Dépannage 24h/24',
  description: 'Besoin d\'un chauffagiste à Sorigny (37) ? Kaltech intervient 24h/24 pour le dépannage, l\'entretien et l\'installation de votre chauffage. Qualité et rapidité garanties.',
  openGraph: {
    "title": "Kaltech | Chauffage Sorigny",
    "description": "Expert chauffagiste local à Sorigny (37). Urgence 24h/24.",
    "siteName": "Kaltech"
  },
};

const montserrat = Montserrat({
  variable: "--font-montserrat",
  subsets: ["latin"],
});

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