/* Style global */
body {
    background: url("background.png") no-repeat center center fixed;
    background-size: cover;
    position: relative;
    font-family: 'Arial', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}
body::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgb(255, 255, 255);       /* Couleur de fallback */
    background: rgba(255, 255, 255, 0.7); /* Couleur avec opacité */
    z-index: -1;
}

/* En-tête */
header {
    background-color: white;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header img {
    height: 100px;
}

header h1 {
    font-size: 24px;
    color: #087E36;
    margin: 0;
    font-weight: bold;
}

/* Formulaire */
.card {
    border-radius: 10px;
    border: none;
}

.card-body {
    padding: 30px;
}

.form-label {
    font-weight: bold;
    color: #087E36;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"],
select[type="poste"]{
    border: 2px solid #087E36;
    border-radius: 8px;
    padding: 10px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="file"]:focus,
select[type="poste"]:focus{
    border-color: #065c29;
    box-shadow: 0 0 5px rgba(8, 126, 54, 0.5);
    outline: none;
}

/* Bouton d'envoi */
button {
    background-color: #087E36;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 18px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #065c29;
}

/* reCAPTCHA */
.g-recaptcha {
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        text-align: center;
    }

    header img {
        margin-bottom: 10px;
    }

    header h1 {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="file"],
    option[type="poste"]{
        font-size: 16px;
    }

    button {
        font-size: 16px;
    }
}
/* Loader plein écran */
#loader {
    display: none; /* caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255, 255, 255);
    background: rgba(255, 255, 255, 0.8); /* voile blanc semi-transparent */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999; /* au-dessus de tout */
}
footer {
    text-align : center;
    margin-top: 50px;
}
.foot {
    font-size: 18px;
    color: #087E36;
}

/* Animation circulaire */
.spinner {
    border: 6px solid #f3f3f3; /* gris clair */
    border-top: 6px solid #087E36; /* couleur verte */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loader p {
    font-size: 18px;
    color: #087E36;
    font-weight: bold;
}

