/* Style général */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* Titre */
h2 {
    color: #333;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

/* Formulaire */
form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    animation: fadeIn 0.7s ease-in-out;
}

/* Form-group */
.form-group {
    margin-bottom: 15px;
}

label {
    font-weight: bold;
    color: #4CAF50;
}

/* Champs de saisie */
input[type="text"],
input[type="number"],
input[type="date"],
select.form-control {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease-in-out;
}

    input[type="text"]:focus,
    input[type="number"]:focus,
    input[type="date"]:focus,
    select.form-control:focus {
        border-color: #4CAF50;
    }

/* Erreur de validation */
.text-danger {
    font-size: 12px;
    color: red;
}

/* Boutons */
button.btn {
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    font-weight: bold;
}

.btn-primary {
    background-color: #4CAF50;
    color: #fff;
}

    .btn-primary:hover {
        background-color: #45a049;
    }

.btn-success {
    background-color: #8BC34A;
    color: #fff;
}

    .btn-success:hover {
        background-color: #7cb342;
    }

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notification erreur */
p {
    font-size: 14px;
    font-weight: bold;
    color: red;
    text-align: center;
}

/* Effet survol sur les éléments de formulaire */
.form-group input:hover,
.form-group select:hover {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}
