body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f1f1f1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* hauteur fiable mobile (évite les barres d'adresse) */
    min-height: 100svh;
    /* au lieu de height:100vh */
}

.conteneur_connexion {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.logo img {
    height: 170px;
}

.texte_de_bienvenue {
    color: #2f3f64;
    margin-bottom: 0.5rem;
}

.texte_de_bienvenue h1 {
    font-size: 2rem;
    margin-top: 0;
}

.texte_de_bienvenue p {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

button {
    background-color: #2f3f64;
    color: white;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background-color: rgb(76, 106, 172)
}

.info_site {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #6b7280;
}

/* Style du message d'erreur */
.conteneur_connexion .message_d_erreur {
    font-size: 16px;
    margin-bottom: 20px;
    color: red;
    font-weight: bold;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

/* Par défaut (desktop) : tu peux garder 170px si tu veux */
.logo img {
    height: 170px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding: 16px;
    }
    .logo img {
        height: auto;
        max-width: 270px;
        /* ajuste si besoin */
    }
}