/* Style global */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #4caf50, #81c784);
    color: #333;
    display: flex;
    flex-direction: column;
    
    min-height: 100vh;
}


/* Conteneur principal */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 80lvh;
    width: 100%;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Formulaire */
form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    
    width: clamp(250px, 100%, 600px);
    text-align: center;
}

form div {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 1rem;
    color: #555;
}

input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
    border-color: #4caf50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
    outline: none;
}

/* Bouton */
button {
    width: 100%;
    padding: 12px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #388e3c;
    transform: scale(1.05);
}

button:active {
    transform: scale(0.98);
}

/* Liens */
main a {
    color: #4caf50;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

main a:hover {
    color: #2e7d32;
    text-decoration: underline;
}

/* Message d'erreur */
.message {
    color: red;
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}

textarea{
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: none;
}
/* Debug session (à masquer en production) */
pre {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-top: 20px;
    overflow: auto;
    display: none; /* Masqué en production */
}

/* Responsive */
@media (max-width: 600px) {
    form {
        padding: 20px;
    }

    h1 {
        font-size: 2.5rem;
    }
}
