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

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

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

/* --- Titres h2 --- */
h2 {
    color: #4CAF50;
}

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

/* --- Champs input, select et textarea --- */
input, select, textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

/* --- Boutons --- */
button {
    margin-top: 20px;
    background-color: #FFD700;
    color: #333;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #4CAF50;
    color: #fff;
}

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

/* Groupe radio horizontal */
.radio-group {
    display: flex;
    gap: 100px;
    align-items: center;
    margin-top: 5px;
}

/* Les labels des radios ne doivent PAS être en block */
.radio-group label {
    display: inline-flex;
    align-items: center;
    font-weight: normal;
    gap: 5px;
}

/* 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;
    }
}
