<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Redirection...</title>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;700&display=swap');
        
        body {
            margin: 0;
            padding: 0;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            background: linear-gradient(135deg, #1f1f1f 0%, #3a1f5d 100%);
            font-family: 'Noto Naskh Arabic', Arial, sans-serif;
            color: #e0e0e0;
            overflow: hidden;
        }

        .container {
            text-align: center;
            padding: 2rem;
            position: relative;
        }

        .geometric-pattern {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            opacity: 0.1;
            pointer-events: none;
            background-image: repeating-linear-gradient(
                45deg,
                #fff 0,
                #fff 2px,
                transparent 0,
                transparent 50%
            );
            background-size: 30px 30px;
            z-index: -1;
        }

        .logo {
            width: 200px;
            height: 200px;
            margin: 0 auto 2rem;
            position: relative;
            animation: float 3s ease-in-out infinite;
        }

        .arabic-symbol {
            position: relative;
            width: 150px;
            height: 150px;
            margin: 0 auto;
            border: 8px solid #c7a45d;
            border-radius: 50%;
            transform: rotate(45deg);
            box-shadow: 0 0 30px rgba(199, 164, 93, 0.3);
        }

        .arabic-symbol::before,
        .arabic-symbol::after {
            content: '';
            position: absolute;
            background: #c7a45d;
        }

        .arabic-symbol::before {
            width: 80%;
            height: 8px;
            top: 45%;
            left: 10%;
        }

        .arabic-symbol::after {
            width: 8px;
            height: 80%;
            left: 45%;
            top: 10%;
        }

        .ornament {
            position: absolute;
            width: 40px;
            height: 40px;
            border: 4px solid #c7a45d;
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        .ornament:nth-child(1) { top: -20px; left: 45%; }
        .ornament:nth-child(2) { bottom: -20px; left: 45%; }
        .ornament:nth-child(3) { left: -20px; top: 45%; }
        .ornament:nth-child(4) { right: -20px; top: 45%; }

        h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            font-weight: bold;
            background: linear-gradient(to right, #c7a45d, #f1e4c3);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 20px rgba(199, 164, 93, 0.3);
        }

        .message {
            font-size: 1.4rem;
            margin-bottom: 2rem;
            line-height: 1.8;
            color: #c7a45d;
        }

        .countdown {
            font-size: 4rem;
            font-weight: bold;
            color: #c7a45d;
            text-shadow: 0 0 20px rgba(199, 164, 93, 0.5);
            margin: 2rem 0;
        }

        .loading {
            width: 300px;
            height: 6px;
            background: rgba(199, 164, 93, 0.2);
            margin: 2rem auto;
            border-radius: 3px;
            overflow: hidden;
            position: relative;
        }

        .loading-bar {
            width: 0%;
            height: 100%;
            background: linear-gradient(90deg, #c7a45d, #f1e4c3);
            animation: loading 3s linear forwards;
            box-shadow: 0 0 10px rgba(199, 164, 93, 0.5);
        }

        .arabic-decoration {
            font-size: 2rem;
            color: #c7a45d;
            margin-top: 2rem;
            opacity: 0.8;
        }

        @keyframes loading {
            0% { width: 0; }
            100% { width: 100%; }
        }

        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 0.5; }
            50% { transform: scale(1.2); opacity: 0.8; }
        }

        @media (max-width: 768px) {
            h1 { font-size: 2rem; }
            .message { font-size: 1.1rem; }
            .countdown { font-size: 3rem; }
            .logo { width: 150px; height: 150px; }
            .loading { width: 80%; }
        }

        .particles {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
        }

        .particle {
            position: absolute;
            background: #c7a45d;
            border-radius: 50%;
            opacity: 0.3;
            animation: particleFloat 10s infinite linear;
        }

    </style>
</head>
<body>
    <div class="particles" id="particles"></div>
    <div class="container">
        <div class="geometric-pattern"></div>
        
        <div class="logo">
            <div class="arabic-symbol">
                <div class="ornament"></div>
                <div class="ornament"></div>
                <div class="ornament"></div>
                <div class="ornament"></div>
            </div>
        </div>
        
        <h1>جاري إعادة التوجيه</h1>
        
        <p class="message">
            نحن ننتقل إلى موقعنا الجديد<br>
            سيتم تحويلك تلقائياً في لحظات
        </p>

        <div class="countdown" id="countdown">5</div>
        
        <div class="loading">
            <div class="loading-bar"></div>
        </div>

        <div class="arabic-decoration">
            ⵣ ⵣ ⵣ
        </div>
    </div>

    <script>
        // Création des particules
        const particlesContainer = document.getElementById('particles');
        for (let i = 0; i < 50; i++) {
            const particle = document.createElement('div');
            particle.className = 'particle';
            particle.style.width = Math.random() * 5 + 'px';
            particle.style.height = particle.style.width;
            particle.style.left = Math.random() * 100 + '%';
            particle.style.top = Math.random() * 100 + '%';
            particle.style.animationDuration = (Math.random() * 10 + 5) + 's';
            particle.style.animationDelay = (Math.random() * 5) + 's';
            particlesContainer.appendChild(particle);
        }

        // URL de redirection
        const newURL = "https://aryarzoto.great-site.net/SilamBoki";
        
        // Compte à rebours
        let count = 5;
        const countdownElement = document.getElementById('countdown');
        
        const countdown = setInterval(() => {
            count--;
            countdownElement.textContent = count;
            
            if (count <= 0) {
                clearInterval(countdown);
                window.location.href = newURL;
            }
        }, 1000);

        // Empêcher le retour arrière
        history.pushState(null, null, location.href);
        window.onpopstate = function () {
            history.go(1);
        };
    
    document.addEventListener("DOMContentLoaded", function() {
        const userLang = navigator.language || navigator.userLanguage;
        const title = document.querySelector("h1");
        const message = document.querySelector(".message");

        if (userLang.startsWith("fr")) {
            title.textContent = "Redirection en cours";
            message.innerHTML = "Nous passons à notre nouveau site<br>Vous serez redirigé automatiquement dans quelques instants.";
        } else {
            title.textContent = "Redirecting...";
            message.innerHTML = "We are moving to our new website<br>You will be redirected automatically in a few moments.";
        }
    });

    </script>
</body>
</html>