body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Dégradé de fond reprenant les couleurs du logo */
    background: linear-gradient(to bottom, #e1e8f0, #a7bdd3);
    /* Ajout d'une texture subtile */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23e1e8f0' fill-opacity='0.4' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
}

header {
    background-color: #003366;
    color: white;
    padding: 1rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    animation: fadeIn 2s ease-in-out; /* Animation d'apparition progressive */
}

.logo {
    max-height: 75px;
    margin: 0 10px;
    transition: all 0.3s ease-in-out; /* Transition pour l'effet de survol */
}

.logo:hover {
    transform: rotate(5deg) scale(1.1); /* Agrandissement au survol */
}

main {
    padding: 20px;
    max-width: 800px;
    margin: 20px auto;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

section:last-child {
    border-bottom: none;
}

h1,
h2 {
    color: #003366;
    margin-top: 0;
}

header h1 {
    animation: slideInDown 1s ease-out;
}

header h2 {
    animation: slideInUp 1s ease-out;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 5px;
}

input[type="checkbox"],
input[type="radio"] {
    margin-right: 5px;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

button {
    background-color: #003366;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
}

button:hover {
    background-color: #0056b3;
}

/* Style pour le titre du formulaire */
.form-title {
    color: #003366;
    font-size: 1.5em;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-bottom: 3px solid #003366;
}

footer {
    text-align: center;
    padding: 1rem 0;
    background-color: #003366;
    color: white;
    /* position: sticky; */
    bottom: 0;
    width: 100%;
}

/* Keyframes pour l'animation d'apparition progressive */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Keyframes pour l'animation de glissement vers le bas */
@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Keyframes pour l'animation de glissement vers le haut */
@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animation plus subtile pour le logo APBM */
.logo[alt="APBM Logo"] {
    animation: pulse 5s infinite alternate; /* Animation de pulsation légère */
}

/* Animation plus vive pour le logo Richat */
.logo[alt="Richat Logo"] {
    animation: spin 8s linear infinite; /* Animation de rotation continue */
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
