/* Body - Adaptation pour mobiles */
body {
    background: url('pictures/Jungle.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: #289321;
    overflow-x: hidden; /* Empêcher le défilement horizontal */
    box-sizing: border-box;
}

/* Header */
header {
    background: linear-gradient(to right, rgba(85, 107, 47, 0.3), rgba(143, 188, 143, 0.3));
    padding: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    border-bottom: 4px solid #3b5323;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    box-sizing: border-box;
}

header .logo {
    max-width: 100px; /* Réduire la taille du logo pour les petits écrans */
    height: auto;
    margin-bottom: 10px;
}

header h1 {
    font-size: 1.3rem;
    margin: 0;
    font-weight: bold;
    color: #fff;
}

header p {
    font-size: 1rem;
    margin-top: 5px;
    color: #fff;
}

/* Main container */
main {
    flex: 1;
    background: rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box; /* Assurer une largeur toujours égale à celle de la fenêtre */
}

/* Titre du formulaire */
h2 {
    color: #006400;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
}

/* Formulaire */
.form-control {
    padding: 10px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid #3b5323;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.form-control:focus {
    border-color: #006400;
    box-shadow: 0 0 8px rgba(0, 100, 0, 0.4);
}

/* Section d'informations de contact */
.contact-info {
    background-color: rgba(255, 255, 255, 0.15); 
    border: 2px solid #3b5323;
    border-radius: 10px;
    padding: 20px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); 
    margin-top: 20px;
    backdrop-filter: blur(5px); /* Ajout d'un flou d'arrière-plan */
}

.contact-info h5 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #289321;
    margin-bottom: 5px;
}

.contact-info p {
    margin: 0;
    color: #3b5323;
}


/* Button */
.back-to-home {
    text-align: center;
    margin: 20px 0;
}

.back-to-home a.btn-primary {
    background-color: #4caf50;
    border-color: #4caf50;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 10px;
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-to-home a.btn-primary:hover {
    background-color: #388e3c;
    border-color: #388e3c;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: white;
}
/* Footer */
footer {
    background: linear-gradient(to right, rgba(59, 83, 35, 0.8), rgba(85, 107, 47, 0.8));
    color: blanchedalmond;
    text-align: center;
    padding: 10px;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-top: 4px solid #556b2f;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

/* Message d'erreur */
.invalid-feedback {
    color: #d9534f;
    font-size: 0.9rem;
}

/* Mobile-first */
@media (max-width: 576px) {
    .container {
        padding: 20px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .contact-info h5 {
        font-size: 1rem;
    }
}

/* Tablette */
@media (min-width: 768px) {
    .container {
        padding: 40px;
    }

    h2 {
        font-size: 1.75rem;
    }

    .form-control {
        font-size: 0.9rem;
    }

    .btn-primary, .btn-secondary {
        font-size: 1rem;
        padding: 10px;
    }
    .contact-info h5 {
        font-size: 1.25rem;
    }
    .contact-info p {
        font-size: 1rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    h2 {
        font-size: 2.25rem;
    }

    .container {
        max-width: 800px;
        padding: 50px;
    }
}
