/* Réinitialisation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fond de page */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Carte du formulaire */
.container {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.97);
    padding: 40px;
    border-radius: 20px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    animation: apparition 0.6s ease;
}

/* Titre */
h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #222;
    font-size: 2rem;
    font-weight: 700;
}

/* Groupes */
.form-group {
    margin-bottom: 20px;
}

/* Labels */
label {
    display: block;
    margin-bottom: 8px;
    color: #444;
    font-weight: 600;
}

/* Inputs et textarea */
input,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

/* Focus */
input:focus,
textarea:focus {
    outline: none;
    border-color: #6366f1;
    background-color: white;
    box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.15);
}

/* Bouton */
button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        #4f46e5,
        #7c3aed
    );
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover bouton */
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.35);
}

/* Clic bouton */
button:active {
    transform: translateY(0);
}

/* Message résultat */
#resultat {
    margin-top: 20px;
    text-align: center;
    color: #16a34a;
    font-weight: 600;
    padding: 10px;
}

/* Animation d'apparition */
@keyframes apparition {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}