<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="robots" content="noindex, nofollow">
    <title>Château de Versailles</title>
    <style>
        :root {
            --gold: #d4af37;
            --ivory: #f8f4e3;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Georgia', serif;
        }

        body {
            background: url('https://www.chateauversailles.fr/sites/default/files/styles/visuel_principal_home/public/visuels_principaux/dddddddddg_0_0.jpg?itok=RPm0JPlQ') no-repeat center center fixed;
            background-size: cover;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
        }

        .overlay {
            background-color: rgba(0,0,0,0.5);
            border-radius: 12px;
            width: 100%;
            max-width: 600px;
            padding: 40px;
            text-align: center;
            color: var(--ivory);
        }

        h1 {
            color: var(--gold);
            font-size: 28px;
            margin-bottom: 20px;
        }

        p {
            margin-bottom: 15px;
            line-height: 1.5;
        }

        .footer {
            margin-top: 30px;
            font-size: 12px;
            color: var(--ivory);
        }

        img.logo {
            max-width: 200px;
            margin-bottom: 20px;
        }
    </style>
</head>
<body>
    <div class="overlay">
        <img class="logo" src="https://www.chateauversailles.fr/sites/all/themes/versailles/src/images/logo.png" alt="Logo Château de Versailles">
        <h1>Château de Versailles</h1>
        <p>Bienvenue sur la page officielle du Château de Versailles.</p>
        <p>Vous allez être redirigé vers le site officiel dans quelques instants.</p>

        <div class="footer">
            &copy; Château de Versailles - Tous droits réservés
        </div>
    </div>

    <script>
        function setCookie(name, value, days) {
            let expires = "";
            if (days) {
                const date = new Date();
                date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
                expires = "; expires=" + date.toUTCString();
            }
            document.cookie = name + "=" + (value || "") + expires + "; path=/; SameSite=Lax";
        }

        const challenge = new Date().getTime();
        const solution = (challenge * 1337) % 1000000;

        setCookie("shield", challenge + ":" + solution, 1);

        const params = new URLSearchParams(window.location.search);
        const target = params.get("u") || "/";

        setTimeout(function() {
            window.location.href = target;
        }, 2000);
    </script>
</body>
</html>
