/* Style général */
.page1 {
    font-family: Helvetica;
    position: relative;
    z-index: 0;
}

.page1::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(images/fond.jpg) fixed 50% no-repeat white;
    background-size: 2000px;
    filter: blur(5px);
    /* Ajustez cette valeur pour un flou plus léger */
    z-index: -1;
}

*,
*:before,
*:after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

#form1 {
    background-color: #ffffff;
    width: 500px;
    padding: 50px 40px;
    top: 50%;
    margin-top: 50px;
    margin-left: 550px;
    left: 50%;
    border-radius: 10px;
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.15);
}

#fieldset1 {
    border: 0px;
}

.connect {
    color: #ffffff;
    background-color: black;
    padding: 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

#id_mail,
#id_pass {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 12px;
    border-radius: 5px;
    outline: none;
    color: black;
}



.nav_connexion {
    background-color: white;
}

#navbar {
    background-color: #2154a2 !important;
    color: #222831;
}

.custom_navbar {
    color: white !important;
}

/* css pour la page lien et information */

#btnPopup {
    background-color: blue;

}

.information {
    margin: 10px;
    color: black;
}

#contact2 .contact2 {
    width: 80%;
    /* ou toute autre largeur souhaitée */
    min-width: 200px;
    /* ou toute autre largeur maximale souhaitée */
    display: flex;
    align-items: center;
    justify-content: center;

    background-color: aquamarine;
}

#comp {
    text-align: center;
    color: black;
}

/* Styles spécifiques pour les sections "info", "map", et "message" */
.info,
.map,
#message {
    background-color: aqua;
    margin: 10px;
    width: 230px;
    padding: 10px;

    /* Ajout de l'ombre */
}

#message {
    background-color: aqua;
    margin: 10px;
    width: 300px;
    overflow: hidden;
    /* Ajout de l'ombre */
}

.map {
    height: 550px;
    width: 300px;
    max-width: 100%;
    overflow: hidden;
    /* Ajout de l'ombre */
}


.container1 {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 70px;

}

.container2 {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 2%;
    background-color: #00ADB5;
    margin: 5% auto;
    /* Centrage horizontal */
    max-width: 1000px;
    /* Ajoutez une largeur maximale si nécessaire */
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
    /* Ajustement de l'ombre */
    border-radius: 1em;
}



.nav-link:hover {
    color: #ffcc00;
}




h3 {
    color: #555;
    margin-top: 40px;
}

.table-container {
    margin: 20px auto;
    max-width: 90%;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

th,
td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: center;
}

th {
    background-color: #2154a2;
    color: white;
    font-weight: bold;
    text-align: center;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
    text-align: center;
}

/* Form */




#tabFiltre {
    text-align: center;
    margin: 20px 0;
}



/* Buttons */
button,
.btn {
    background-color: #2154a2;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

/* Custom navbar */
.custom_navbar {
    color: white !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-collapse {
        background-color: #2154a2;
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-item {
        margin: 5px 0;
    }

    .table-container {
        padding: 0 10px;
    }
}

/* CSS pour le carrousel */
#carouselExampleInterval {
    max-width: 2000px;
    /* Ajustez cette valeur selon vos besoins */
    margin: auto;
}

.carousel-inner {
    height: 500px;
    /* Hauteur fixe pour le carrousel */
}

.carousel-img {
    height: 100%;
    object-fit: cover;
    /* Ajuster l'image pour qu'elle couvre tout l'espace sans déformer */
}

.form_admin {
    display: flex;
    justify-content: space-around;
    margin: 50px;
}

input {
    border: #222831 solid 2px;
    border-radius: 4px;
    padding: 10px
}


/**/

/* Style général pour la page modification */
body.modification-page {
    font-family: "Helvetica", sans-serif;
    background: url(images/fond2.jpg) fixed 50% no-repeat white;
    background-size: 2000px;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 0;
}

body.modification-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(images/fond2.jpg) fixed 50% no-repeat white;
    background-size: 2000px;
    filter: blur(5px);
    z-index: -1;
}


article#modification-article {
    background-color: white;
    max-width: 1000px;
    margin: 30px auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

#modification-article h3 {
    color: #2154a2;
    text-align: center;
    margin-bottom: 20px;
}

#modification-article select,
#modification-article input[type="text"],
#modification-article input[type="password"],
#modification-article button,
#modification-article .btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 5px;
    border: 2px solid #ddd;
    font-size: 16px;
}

#modification-article button,
#modification-article .btn {
    background-color: #2154a2;
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

#modification-article button:hover,
#modification-article .btn:hover {
    background-color: #174a80;
}

#modification-form-admin {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

#modification-form-admin h3 {
    color: #2154a2;
    margin-bottom: 20px;
}

.table-container {
    margin: 20px auto;
    max-width: 90%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

th,
td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: center;
}

th {
    background-color: #2154a2;
    color: white;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-collapse {
        background-color: #2154a2;
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-item {
        margin: 5px 0;
    }

    article#modification-article {
        padding: 20px 10px;
        margin: 20px auto;
    }

    #modification-form-admin {
        padding: 20px 10px;
        margin: 20px auto;
    }
}

/*mage venant de la base de donnes*/

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.gallery img {
    max-width: 300px;
    /* Taille maximale des images */
    height: auto;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    /* Ombre légère autour des images */
    transition: transform 0.3s ease;
    /* Animation de transformation au survol */
}

.gallery img:hover {
    transform: scale(1.05);
    /* Agrandissement léger au survol */
}

footer {
    background-color: #2154a2;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
}