<!DOCTYPE html>
<html lang="fr">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" type="image/gif" href="/Capture_d_écran_2024-12-01_141507-removebg-preview.png">
    <title>Récapitulatif de Paiement</title>
  
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
    
        body {
    font-family: 'Arial', sans-serif;
    color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
    position: relative;
    background-color: transparent; /* Aucune superposition blanche */
    margin: 0;
    background-color: #000; /* Fond noir */
}

.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
     /* Réduction de la luminosité sans opacité */
}
    
        header {
    background-color: rgba(0, 0, 0, 0.8); /* Couleur d'arrière-plan avec transparence */
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 2.5em;
    letter-spacing: 2px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.4);
    margin-bottom: 10px; /* Ajoute un espace en bas */
    width: 100%; /* Prend toute la largeur */
    position: relative; /* Pour que le box-shadow fonctionne correctement */
    left: 0; /* Aligne le header à gauche */
}


/* Menu de navigation */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    background-color: rgba(34, 34, 34, 0.8); /* Couleur d'arrière-plan avec transparence */
    padding: 15px 0;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.4);
    border-radius: 10px; /* Arrondi des coins */
    margin-top: 20px; /* Espace entre le header et la nav */
}
        nav ul li {
            margin: 0 20px;
        }

        nav ul li a {
            color: white;
            text-decoration: none;
            padding: 15px 25px;
            background-color: rgba(34, 34, 34, 0.8); /* Couleur d'arrière-plan avec transparence */
            border-radius: 30px;
            transition: background-color 0.5s, transform 0.4s, box-shadow 0.4s;
        }

        nav ul li a:hover {
            background-color: #000000;
            box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.6);
            transform: translateY(-5px);
        }

        nav ul li a:active {
            background-color: #ff0080;
            box-shadow: 0px 5px 15px rgba(255, 0, 128, 0.6);
            transform: scale(1.1);
        }
        nav ul li {
            margin: 0 20px;
        }

        main {
            padding: 20px;
            max-width: 800px;
            margin: auto; /* Centre le main horizontalement */
            display: flex; /* Flexbox pour centrer la section de récap */
            flex-direction: column; /* Disposition verticale */
            align-items: center; /* Centrer horizontalement */
            justify-content: center; /* Centrer verticalement */
            flex: 1; /* Permet au main d'occuper l'espace restant */
            background: rgba(0, 0, 0, 0.8); /* Fond noir semi-transparent */
            border-radius: 10px; /* Coins arrondis */
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Ombre portée */
            backdrop-filter: blur(10px); /* Flou en arrière-plan */
            animation: fadeIn 1.5s; /* Animation d'entrée */
        }
    
        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }
    
        h2 {
            color: #ffffff; /* Couleur pour les titres */
            border-bottom: 2px solid #ccc; /* Ligne en bas des titres */
            padding-bottom: 5px;
            margin-bottom: 15px;
            animation: slideIn 1s; /* Animation pour les titres */
        }
    
        @keyframes slideIn {
            from {
                transform: translateY(-20px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }
    
        p {
            line-height: 1.6; /* Hauteur de ligne pour la lisibilité */
            margin-bottom: 15px;
            animation: fadeIn 2s; /* Animation pour les paragraphes */
            animation-delay: 0.5s; /* Délai pour les paragraphes */
            opacity: 0; /* Commence invisible */
            animation-fill-mode: forwards; /* Rester visible après l'animation */
        }
    
        footer {
            text-align: center;
            padding: 10px;
            color: #ffffff;
            background-color: #222222;
            width: 100%; /* S'assurer que le footer s'étend sur toute la largeur */
        }
    
        
    
        /* Style pour le résumé de commande */
        .order-summary {
            background-color: rgba(173, 216, 230, 0.9); /* Fond bleu clair semi-transparent */
            color: #333;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            display: inline-block;
            margin-top: 20px; /* Ajuster pour éviter le chevauchement avec le header */
            animation: fadeIn 1.5s; /* Animation d'entrée */
            text-align: center; /* Centre le contenu du résumé */
        }
    
        button {
            padding: 10px 20px;
            background-color: #00b7ff;
            color: white;
            border: none;
            border-radius: 30px;
            cursor: pointer;
            font-size: 1.2em;
            transition: background-color 0.3s, transform 0.3s;
            margin-top: 20px;
        }
    
        button:hover {
            background-color: #0092cc;
            transform: scale(1.05);
        }
    
        /* Styles supplémentaires */
        h1,
        h2 {
            margin: 10px 0;
        }
    
        strong {
            margin-right: 5px;
        }
    
        /* Animation de chargement */
        #loadingOverlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 9999;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 1.5em;
            flex-direction: column;
        }
    
        .spinner {
            border: 8px solid rgba(255, 255, 255, 0.3);
            border-top: 8px solid white;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            animation: spin 1s linear infinite;
            margin-bottom: 20px;
        }
    
        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }
    
      
/* Overlay de chargement - initialement masqué */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none; /* Masqué par défaut */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Permet à l'overlay d'être au-dessus des autres éléments */
}

.spinner {
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

/* Animation pour la rotation de la spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Texte du message de chargement */
#loadingOverlay div {
    margin-top: 20px;
    font-size: 1.2rem;
    text-align: center;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 1rem;
    width: 100%;
    position: relative;
    bottom: 0;
}

/* Media Queries pour la réactivité */

/* Pour les petits écrans (mobiles) */
@media (max-width: 600px) {
    #reviews {
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Centre les éléments */
    }

    .review-card {
        width: 100%; /* Occupation complète de l'espace */
        padding: 15px;
    }

    /* Ajuster la taille de l'image pour les petits écrans */
    .client-img {
        width: 60px;
        height: 60px;
    }

    /* Ajuster la taille du texte */
    .review-text {
        font-size: 0.9rem;
    }

    .client-name {
        font-size: 1.1rem;
    }

    #ratingText {
        font-size: 1rem;
    }

    /* Réduire la taille du titre sur mobile */
    h1 {
        font-size: 1.5rem; /* Ajuste la taille du titre */
        text-align: center; /* Centrer le titre */
        word-wrap: break-word; /* Éviter que le titre dépasse de l'écran */
        overflow-wrap: break-word; /* En cas de mots longs */
    }
}

/* Pour les écrans moyens (tablettes) */
@media (min-width: 601px) and (max-width: 1024px) {
    #reviews {
        justify-content: flex-start; /* Aligne les éléments sur le côté gauche pour maximiser l'espace */
    }

    .review-card {
        width: 45%;
    }

    .client-img {
        width: 70px;
        height: 70px;
    }

    .review-text {
        font-size: 1rem;
    }

    .client-name {
        font-size: 1.2rem;
    }

    /* Ajuster la taille du titre pour les tablettes */
    h1 {
        font-size: 2rem; /* Ajuster la taille pour les écrans moyens */
        text-align: center;
    }
}
    </style>
    
    
    
</head>

<body>

    <video class="background-video" autoplay muted loop>
        <source src="/bleuciel.mp4" type="video/mp4">
        Votre navigateur ne prend pas en charge la lecture de vidéos.
    </video>


    <header>
        <h1>Récapitulatif de votre Commande</h1>
        <nav>
            <ul>
                <li><a href="accueil.html">Accueil</a></li> <!-- Lien vers la page d'accueil -->
            </ul>
        </nav>
    </header>

    <div class="order-summary">
        <h2>Détails de la Transaction</h2>
        <div>
            <strong>Montant à dupliquer (en €) :</strong>
            <span id="amount"></span>
        </div>
        <div>
            <strong>Cryptomonnaie choisie :</strong>
            <span id="crypto"></span>
        </div>
        <div>
            <strong>Montant à envoyer :</strong>
            <span id="cryptoAmount"></span>
        </div>
        <div>
            <strong>Adresse de paiement :</strong>
            <span id="cryptoAddress"></span>
        </div>
        <button onclick="confirmPayment()">Valider votre payement</button>
    </div>

    <!-- Overlay de chargement -->
    <div id="loadingOverlay">
        <div class="spinner"></div>
        <div>Nous attendons la confirmation de votre paiement...</div>
    </div>
    <footer>
        <p>© 2024 Tech Paypal. Tous droits réservés.</p>
    </footer>
    <script>
        function getParams() {
            const params = new URLSearchParams(window.location.search);
            return {
                amount: params.get('amount'),
                cryptoAmount: params.get('cryptoAmount'),
                crypto: params.get('crypto') || 'usdc', // Récupération de la cryptomonnaie choisie
            };
        }

        function displayPaymentInfo() {
            const params = getParams();
            document.getElementById('amount').textContent = params.amount + ' €';
            document.getElementById('crypto').textContent = params.crypto.toUpperCase();
            document.getElementById('cryptoAmount').textContent = params.cryptoAmount;
            document.getElementById('cryptoAddress').textContent = getCryptoAddress(params.crypto);
        }

        function getCryptoAddress(crypto) {
            const cryptoAddresses = {
                usdc: '0x03a9ba487FD79C1D7eC72ff8Ffafe2a5ff6C256D',
                btc: 'bc1qguw8tmnkcr58ua2wvpylhm0ql5dclpmm3u2fcl', // Adresse pour BTC
                ltc: 'ltc1q55a8mkwgguplkx8qrms6scnaj3ztx5rra7xtx6',   // Adresse pour LTC
                // Ajoutez d'autres cryptomonnaies si nécessaire
            };
            return cryptoAddresses[crypto] || 'Adresse non trouvée';
        }

        function confirmPayment() {
            // Afficher l'overlay de chargement
            document.getElementById('loadingOverlay').style.display = 'flex';
            // Logique de traitement du paiement peut être ajoutée ici
        }

        window.onload = displayPaymentInfo;
    </script>

</body>

</html>