body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom right, #4CAF50, #FFD700); /* fond page vert → jaune */
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* empile titre et formulaire verticalement */
    align-items: center; /* centre horizontalement */
}

/* --- Bande titre h1 --- */
h1 {
    width: 90%;
    max-width: 600px;
    text-align: center;
    font-size: 2.8em;
    font-weight: bold;
    color: #fff; /* texte blanc */
    
}

/* h1:hover {
    background: linear-gradient(90deg, #45a049, #FFC300);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transform: scale(1.03);
} */

/* --- Conteneur formulaire --- */
form {
    background: #fff; /* formulaire en blanc */
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 90%;
    margin-bottom: 40px;
}

/* --- Labels --- */
label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

/* --- Champs input et select --- */
input[type="text"],
input[type="email"],
input[type="number"],
select {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1em;
    box-sizing: border-box;
}

/* --- Bouton --- */
button, input[type="submit"] {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background-color: #FFD700;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover, input[type="submit"]:hover {
    background-color: #4CAF50;
    color: #fff;
}

/* --- Responsive --- */
@media(max-width: 640px){
    form {
        padding: 25px;
    }
    h1 {
        font-size: 2em;
    }
}


/* Lien retour */
.back-link {
    text-decoration: none;
    font-weight: bold;
    color: #fff;
    background: rgba(0,0,0,0.2);
    padding: 8px 15px;
    border-radius: 8px;
    transition: 0.3s ease;
}

.back-link:hover {
    background: #FFD700;
    color: #333;
}

/* Responsive */
@media(max-width: 640px){
    .back-link {
        padding: 6px 12px;
        font-size: 0.9em;
    }
}
