---
export interface Props {
    title: string;
    description?: string;
    ogImage?: string;
    canonical?: string;
}

const {
    title,
    description = 'REBOUR Studio crée du mobilier d\'art contemporain inspiré du Space Age et du mouvement Memphis. Pièces uniques fabriquées à Paris. Collection 001 en cours.',
    ogImage = 'https://rebours.studio/assets/lamp-violet.jpg',
    canonical = 'https://rebours.studio/',
} = Astro.props;

const cssVersion = Date.now();
---

<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <!-- SEO Primary -->
    <title>{title}</title>
    <meta name="description" content={description}>
    <meta name="keywords" content="mobilier art, design contemporain, space age, memphis design, lampe béton, Paris, pièce unique">
    <meta name="author" content="REBOURS Studio">
    <meta name="robots" content="index, follow">
    <link rel="canonical" href={canonical}>

    <!-- Open Graph -->
    <meta property="og:type" content="website">
    <meta property="og:url" content={canonical}>
    <meta property="og:title" content={title}>
    <meta property="og:description" content={description}>
    <meta property="og:image" content={ogImage}>
    <meta property="og:locale" content="fr_FR">
    <meta property="og:site_name" content="REBOURS Studio">

    <!-- Twitter Card -->
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:title" content={title}>
    <meta name="twitter:description" content={description}>
    <meta name="twitter:image" content={ogImage}>

    <!-- Favicon -->
    <link rel="icon" type="image/x-icon" href="/favicon.ico">
    <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
    <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">

    <!-- Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">

    <slot name="head" />

    <link rel="stylesheet" href={`/style.css?v=${cssVersion}`}>
</head>
<body>
    <slot />
    <script>import '../scripts/main.js';</script>
</body>
</html>
