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 Tag from "@/tag/Tag";
import { getVisualEditScript } from "@/utils/visual-edit-script";
import { Raleway } from "next/font/google";



export const metadata: Metadata = {
  title: 'Horizon Voyages | Explorez des destinations uniques',
  description: 'Votre agence de voyages locale pour des aventures inoubliables. Découvrez nos forfaits personnalisés et nos destinations phares.',
  keywords: ["voyage, agence de voyage, destinations, forfaits, vacances, aventure, découverte, Horizon Voyages"],
  openGraph: {
    "title": "Horizon Voyages | Explorez des destinations uniques",
    "description": "Votre agence de voyages locale pour des aventures inoubliables. Découvrez nos forfaits personnalisés et nos destinations phares.",
    "url": "/",
    "siteName": "Horizon Voyages",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/tropical-beach-sunny-day_58702-16290.jpg",
        "alt": "Plage tropicale ou montagne majestueuse"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Horizon Voyages | Explorez des destinations uniques",
    "description": "Votre agence de voyages locale pour des aventures inoubliables. Découvrez nos forfaits personnalisés et nos destinations phares.",
    "images": [
      "http://img.b2bpic.net/free-photo/tropical-beach-sunny-day_58702-16290.jpg"
    ]
  },
};

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

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