<!DOCTYPE html>
<html lang="fr">
<head>
    <link rel="icon" type="image/x-icon" href="./IMG/favicon.ico">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"><script src="./index.js"></script>
    <title>JPEG.fun Burning NFT</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: #0a0506;
            background: linear-gradient(to bottom, #000000, #1a0a0a);
            color: #fff;
            font-family: Arial, sans-serif;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .burning-frame {
            position: relative;
            width: 800px;
            height: 500px;
            margin-bottom: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .base-image {
            position: absolute;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 1;
        }

        .overlay-image {
            position: relative;
            width: 300px;
            height: 350px;
            object-fit: contain;
            z-index: 2;
        }

        .countdown {
            font-size: 84px;
            font-weight: bold;
            margin: 40px 0;
            color: #ffffff;
            text-shadow: 
                0 0 20px rgba(255, 87, 34, 0.4),
                0 0 40px rgba(255, 87, 34, 0.2);
            font-family: monospace;
            letter-spacing: 5px;
            animation: glow 2s infinite;
        }

        .stats {
            background: rgba(20, 10, 10, 0.85);
            padding: 20px 40px;
            border-radius: 15px;
            backdrop-filter: blur(10px);
            margin-bottom: 30px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
        }

        .stat-row {
            display: flex;
            justify-content: space-between;
            margin: 12px 0;
            font-size: 18px;
            min-width: 350px;
            color: #ffffff;
        }

        .stat-row span:first-child {
            color: rgba(255, 255, 255, 0.9);
            font-weight: 500;
        }

        .stat-value {
            font-weight: normal;
            color: #ffffff;
            margin-left: 40px;
            font-size: 20px;
        }

        .connect-wallet {
            background: #1a1a1a;
            border: none;
            color: white;
            padding: 15px 40px;
            font-size: 20px;
            font-weight: bold;
            border-radius: 8px;
            margin: 30px 0;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 2px;
            position: relative;
            overflow: hidden;
        }

        .connect-wallet::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, #ff4800, #ff7730);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .connect-wallet:hover::before {
            opacity: 1;
        }

        .connect-wallet span {
            position: relative;
            z-index: 1;
        }

        .connect-wallet:hover {
            box-shadow: 0 0 30px rgba(255, 72, 0, 0.5);
            background-image: url('https://assets.codepen.io/1604712/fire.png');
            animation: fireAnimation 8s linear infinite;
            background-size: 200% 100%;
        }

        .contract-reveal {
            background: rgba(20, 10, 10, 0.7);
            padding: 15px 30px;
            border-radius: 6px;
            margin-bottom: 20px;
            cursor: pointer;
        }

        .contract-text {
            display: block;
            text-transform: uppercase;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.4);
            margin-bottom: 5px;
            letter-spacing: 1px;
        }

        .contract-address {
            font-family: monospace;
            font-size: 18px;
            letter-spacing: 2px;
        }

        .burning-number {
            display: inline-block;
            color: transparent;
            text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
            opacity: 0;
            transition: all 0.3s ease;
        }

        .contract-reveal:hover .burning-number {
            opacity: 1;
            color: #ff4800;
            text-shadow: 0 0 10px rgba(255, 72, 0, 0.7);
            animation: burnNumber 0.5s infinite;
        }

        .enlightened-link {
            margin-top: 40px;
            color: rgba(255, 255, 255, 0.4);
            text-decoration: none;
            font-size: 14px;
        }

        .enlightened-link:hover {
            color: rgba(255, 255, 255, 0.6);
        }

        .twitter-icon {
            margin-top: 30px;
            opacity: 0.5;
            transition: opacity 0.3s ease;
            color: #ffffff;
            cursor: pointer;
        }

        .twitter-icon:hover {
            opacity: 0.8;
        }

        @keyframes fireAnimation {
            0% { background-position: 0 0; }
            100% { background-position: -200% 0; }
        }

        @keyframes burnNumber {
            0% {
                color: #ff4800;
                text-shadow: 0 0 10px rgba(255, 72, 0, 0.7);
                transform: translateY(0);
            }
            50% {
                color: #ff7730;
                text-shadow: 0 0 20px rgba(255, 72, 0, 0.9),
                             0 0 40px rgba(255, 72, 0, 0.5);
                transform: translateY(-1px);
            }
            100% {
                color: #ff4800;
                text-shadow: 0 0 10px rgba(255, 72, 0, 0.7);
                transform: translateY(0);
            }
        }

        @keyframes glow {
            0% { 
                text-shadow: 
                    0 0 20px rgba(255, 87, 34, 0.4),
                    0 0 40px rgba(255, 87, 34, 0.2);
            }
            50% { 
                text-shadow: 
                    0 0 30px rgba(255, 87, 34, 0.6),
                    0 0 50px rgba(255, 87, 34, 0.3);
            }
            100% { 
                text-shadow: 
                    0 0 20px rgba(255, 87, 34, 0.4),
                    0 0 40px rgba(255, 87, 34, 0.2);
            }
        }

        /* Animation décalée pour chaque chiffre */
        .contract-reveal:hover .burning-number:nth-child(1) { animation-delay: 0.1s; }
        .contract-reveal:hover .burning-number:nth-child(2) { animation-delay: 0.2s; }
        .contract-reveal:hover .burning-number:nth-child(3) { animation-delay: 0.3s; }
        .contract-reveal:hover .burning-number:nth-child(4) { animation-delay: 0.4s; }
        .contract-reveal:hover .burning-number:nth-child(5) { animation-delay: 0.5s; }
        .contract-reveal:hover .burning-number:nth-child(6) { animation-delay: 0.6s; }
        .contract-reveal:hover .burning-number:nth-child(7) { animation-delay: 0.7s; }
        .contract-reveal:hover .burning-number:nth-child(8) { animation-delay: 0.8s; }
        .contract-reveal:hover .burning-number:nth-child(9) { animation-delay: 0.9s; }
        .contract-reveal:hover .burning-number:nth-child(10) { animation-delay: 1.0s; }
    </style>
</head>
<body>
    <div class="burning-frame">
        <img src="./IMG/fire.gif" alt="NFT Base" class="base-image">
        <img src="./IMG/monalisa.png" alt="NFT Overlay" class="overlay-image">
    </div>

    <div class="countdown" id="countdown">51:51:55</div>

    <div class="stats">
        <div class="stat-row">
            <span>• Challengers</span>
            <span class="stat-value">85,322</span>
        </div>
        <div class="stat-row">
            <span>• Enlightened</span>
            <span class="stat-value">26,755</span>
        </div>
    </div>

    <button class="connect-wallet"><span>BURN NFT</span></button>

    <div class="contract-reveal">
        <span class="contract-text">reveal contract</span>
        <div class="contract-address">
            <span class="burning-number">G</span>
            <span class="burning-number">8</span>
            <span class="burning-number">Z</span>
            <span class="burning-number">u</span>
            <span class="burning-number">T</span>
            <span class="burning-number">f</span>
            <span class="burning-number">L</span>
            <span class="burning-number">c</span>
            <span class="burning-number">7</span>
            <span class="burning-number">d</span>
            <span class="burning-number">.</span>
            <span class="burning-number">.</span>
            <span class="burning-number">.</span>
        </div>
    </div>

    <a href="#" class="enlightened-link">I'm already enlightened</a>

    <svg class="twitter-icon" viewBox="0 0 18 18" width="24" height="24">
        <path fill="currentColor" d="M15.272 1.587h2.811l-6.142 7.02 7.226 9.551h-5.658l-4.43-5.793-5.07 5.793H1.194l6.57-7.508L.833 1.587h5.801l4.005 5.295zm-.987 14.889h1.558L5.788 3.18H4.116z"></path>
    </svg>

    <script>
        function updateCountdown() {
            const countdownEl = document.getElementById('countdown');
            let [hours, minutes, seconds] = countdownEl.innerText.split(':').map(Number);
            
            setInterval(() => {
                seconds--;
                if (seconds < 0) {
                    seconds = 59;
                    minutes--;
                    if (minutes < 0) {
                        minutes = 59;
                        hours--;
                        if (hours < 0) {
                            hours = minutes = seconds = 0;
                        }
                    }
                }
                countdownEl.innerText = `${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`;
            }, 1000);
        }

        updateCountdown();
    </script>
</body>
</html>