/* Styles généraux */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centre verticalement */
    align-items: center; /* Centre horizontalement */
    background: white; /* Assure un fond blanc sur toute la page */
}

h1 {
    margin-top: 80px; /* Ajoute une marge en haut du titre */
    margin-bottom: 20px; /* Optionnel : Ajoute un espace en bas du titre */
}


/* Centrage parfait du formulaire */
form {
    width: 50%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px; /* Ajoute une marge en haut du formulaire */

}

/* Gestion des champs du formulaire */
.form-group {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px; /* Ajoute un espace entre les champs */
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: none; /* Supprime toutes les bordures */
    outline: none; /* Supprime l'effet de focus */
    border-radius: 5px;
    font-size: 16px;
    background: #f5f5f5; /* Fond gris clair pour un effet moderne */
    box-shadow: none; /* Supprime tout relief */
}

/* Champs alignés correctement */
.form-group input {
    flex: 1; /* Prend tout l'espace disponible */
}

.form-group.full-width textarea {
    width: 100%;
    height: 100px;
    resize: none; /* Désactive le redimensionnement */
}

/* Bouton */
button {
    width: 100%;
    padding: 12px;
    background: black;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #333;
}

/* Footer toujours en bas */
.footer {
    background: white;
    color: black;
    padding: 20px;
    text-align: center;
    width: 100%;
    margin-top: auto;
    font-size: 14px;
}

/* ===================== */
/* === RESPONSIVE CSS === */
/* ===================== */

/* Petites tablettes et téléphones */
@media (max-width: 768px) {
    form {
        width: 90%;
        padding: 15px;
    }

    .form-group {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .footer {
        font-size: 12px;
        padding: 10px;
    }
}

/* Très petits écrans (mobiles) */
@media (max-width: 480px) {
    h1 {
        font-size: 20px;
    }

    form {
        padding: 10px;
    }

    button {
        padding: 12px;
    }

    .footer {
        font-size: 11px;
    }
}
