/* Centrer tout le contenu de la page */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4; /* Couleur de fond douce */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Prend toute la hauteur de la fenêtre */
}

/* Conteneur principal */
.container {
    display: inline;
    justify-items: center;
    align-items: center;
    text-align: center; /* Centre le texte à l'intérieur */
    width: 500px;
}

/* Formulaire */
form {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    /* mieux adapté aux mobiles */
    margin: 20px auto;
}

/* Style des titres */
h1 {
    text-align: center; /* Centre le titre */
    color: #333333;
    margin: 0; /* Supprime les marges par défaut */
    font-size: 28px; /* Taille du texte du titre */
}

/* Style des labels */
label {
    display: block;
    margin-bottom: 8px;
    color: #555555;
    text-align: left;
}

/* Style des champs de saisie */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Style du bouton de soumission */
input[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

.texte_centre{
    position: relative;
    display: flex;
    margin-left: 55px;
    margin-top: 2px;
    margin-bottom: 0px;
}

a {
    text-decoration: none;
    color: #007BFF;
    font-weight: bold;
    margin-top: 20px;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
        padding: 10px;
        height: auto;
        /* éviter les coupures sur écran court */
    }

    form {
        padding: 15px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="submit"] {
        font-size: 16px;
    }

    .checkbox-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .texte_centre {
        margin-left: 0;
    }
}