
<!DOCTYPE html>
<html lang="fr">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-BY6G1493J8"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-BY6G1493J8');
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Linkin Park France</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
<link href="https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap" rel="stylesheet">
<link rel="alternate icon" type="image/png" href="linkin-park-logo-2024-white.png">
<style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            height: 100vh;
            background-image: url('from-zero.jpg');
            background-size: cover;
            background-attachment: fixed;
            background-position: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-family: 'Roboto', sans-serif;
        }

        .container {
            width: 75%;
            height: 75%;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 10px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 20px;
        }

        h1 {
            font-size: 96px;
            color: #fff;
            margin-bottom: 20px;
            font-weight: 900;
            text-transform: uppercase;
        }

        .countdown {
            font-size: 72px;
            color: #fff;
            font-weight: 900;
            letter-spacing: 8px;
            margin-bottom: 30px;
        }

        .footer {
            font-size: 12px;
            color: #fff;
        }

        /* Style pour les dernières 60 secondes */
        .countdown-large {
            font-size: 300px; /* Très grand pour les dernières secondes */
            font-weight: 900;
            color: #fff;
            letter-spacing: 10px;
        }

	a { color: white; }

	.tifo {
	  margin: 30px 0;
	}

	.noto-color-emoji-regular {
	  font-family: "Noto Color Emoji", sans-serif;
	  font-weight: 400;
	  font-style: normal;
	}

        /* Media query pour les écrans plus petits (mobile) */
        @media (max-width: 768px) {
            h1 {
                font-size: 48px;
            }

            .countdown {
                font-size: 36px;
                letter-spacing: 4px;
            }

            .footer {
                font-size: 10px;
            }

            .container {
                width: 90%;
                height: 80%;
            }
            .countdown-large {
                font-size: 275px;
            }
        }

	.social-icons {
            display: flex;
            justify-content: center;
            gap: 15px;
            /*margin-top: 20px;*/
            padding: 10px;
            backdrop-filter: invert(1);
	    border-radius: 10px;
        }

        .social-icons a {
            text-decoration: none;
            /*color: #000;*/
            font-size: 2rem;
            transition: color 0.3s;
        }

	.facebook { color: #1778f2; }
	.x { color: #000; }
	.instagram { color: #f00075; }
	.threads { color: #000; }
	.youtube { color: red; }

        .hidden {
            display: none;
        }
    </style>
</head>
<body>
  <div class="container">
    <h1>Nouveau site</h1>
    <div class="countdown">&nbsp;</div>
    <div class="footer">Promis, ce compte à rebours ne deviendra pas un compteur</div>
    <div class="tifo"><a href="https://tifo.linkinpark.fr" target="_blank">Si vous assistez au concert de Linkin Park le 3 novembre, n'hésitez pas à consulter notre projet de tifo lumineux géant <span class="noto-color-emoji-regular">🇫🇷</span></a></div>
    <div class="social-icons">
        <a href="https://www.facebook.com/LinkinPark.fr" target="_blank" class="facebook"><i class="fab fa-facebook"></i></a>
        <a href="https://x.com/linkinparkfr" target="_blank" class="x"><i class="fab fa-x-twitter"></i></a>
        <a href="https://www.instagram.com/linkinparkfr/" target="_blank" class="instagram"><i class="fab fa-instagram"></i></a>
        <a href="https://www.threads.net/linkinparkfr" target="_blank" class="threads"><i class="fab fa-threads"></i></a>
        <a href="https://www.youtube.com/user/linkinparkfrancefr" target="_blank" class="youtube"><i class="fab fa-youtube"></i></a>
    </div>
  </div>
  <script>
        // Compte à rebours JavaScript
        const countdownElement = document.querySelector('.countdown');
        const h1Element = document.querySelector('h1');
        const footerElement = document.querySelector('.footer');
        const endDate = new Date("Oct 26, 2024 20:00:00").getTime(); // Définis la date de fin
        let images = [];
        let preloaded = false;

        // Fonction pour précharger les 34 images
        function preloadImages() {
            for (let i = 34; i >= 0; i--) {
                let img = new Image();
                img.src = `background/countdown${i}.jpg`;  // Les images doivent être nommées countdown34.jpg, countdown33.jpg, etc., dans le dossier "background"
                images.push(img);
            }
            preloaded = true;
        }

        // Précharger les images au début
        preloadImages();

        function updateCountdown() {
            const now = new Date().getTime();
            const distance = endDate - now;
            const days = Math.floor(distance / (1000 * 60 * 60 * 24));
            const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
            const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
            const seconds = Math.floor((distance % (1000 * 60)) / 1000);

            if (distance > 60000) {
                countdownElement.innerHTML = `${days.toString().padStart(2, '0')}:${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`;
            } else if (distance <= 60000 && distance > 35000) {
                // Cacher le h1 et le footer
                h1Element.classList.add('hidden');
                footerElement.classList.add('hidden');

                // Afficher uniquement les secondes (et inclure "60" pour le départ des secondes)
                countdownElement.innerHTML = `${seconds}`;
                countdownElement.classList.add('countdown-large');  // Augmente la taille des secondes
            } else if (distance <= 35000 && distance > 0) {
                // Commence le changement de fond à chaque seconde
                const imageIndex = 35 - Math.floor((distance + 1000) / 1000);  // Inclure la 34ème image
                document.body.style.backgroundImage = `url('${images[imageIndex].src}')`;

                // Cacher le h1 et le footer
                h1Element.classList.add('hidden');
                footerElement.classList.add('hidden');

                countdownElement.innerHTML = `${seconds}`;
                countdownElement.classList.add('countdown-large');
            } else if (distance < 0) {
                clearInterval(countdownInterval);
                countdownElement.innerHTML = "0";
		            document.location.href = "https://www.linkinpark.fr?no-redirect=true";
            }
        }

        const countdownInterval = setInterval(updateCountdown, 1000);
    </script>
</body>
</html>
