
body, h1, p {
    margin: 0;
    padding: 0;
}


body {
    font-family: Arial, sans-serif;
    background-color: #FBF6EF; 
    color: #1A160D; 
}


header {
    background-color: #027433; 
    padding: 10px;
}

nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px;
}


.menu-toggle {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: #FBF6EF; 
    margin: 4px 0;
}


.nav-list {
    list-style-type: none; 
    display: none; 
}

.nav-list.active {
    display: flex;
    flex-direction: column; 
    position: absolute; 
    top: 50px; 
    left: 0; 
    background-color: #027433; 
    width: 90%; 
    z-index: 1000; 
}

.nav-list li {
    padding: 10px 20px;
}


nav a {
    color: #FBF6EF; 
    text-decoration: none; 
    font-weight: bold; 
    margin: 0 15px;
}


nav a:hover {
    text-decoration: underline; 
}


.banner {
    background-image: url('images/phone.jpg'); 
    background-size: cover; 
    background-position: bottom; 
    height: 670px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}


main {
    padding: 20px;
    text-align: center; 
}



h1 {
    font-family: 'Oswald';
    font-size:30px;
    margin-bottom: 30px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}


tr {
    font-weight: bolder;
}

/*listing*/ 

h1#list {
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.container-sm {
    max-width: 100%;
    margin: 0 auto;
}

.row {
    display: grid;
    grid-template-columns: 1fr; /* 1 colonne */
    gap: 20px; /* Espace entre les cartes */
    padding: 20px;
    justify-items: center;
}

.card {
    width: 100%; /* Prend toute la largeur de la cellule de la grille */
    max-width: 300px; /* Limite la largeur des cartes */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding: 10px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.05); /* Effet de zoom au survol */
}

.card-img-top {
    width: 100%;
    object-fit: cover; /* Recadre l'image pour qu'elle remplisse le carré sans déformation */
    margin-top: auto;
}


.card h5 {
    font-size: 1rem;
    font-weight: bold;
    margin: 15px;
    color: #333;
}

.card p {
    margin: 10px;
    font-size: 0.85rem;
    color: #555;
}


/*page admin*/


.containerlinka {
    text-align: center; /* Centrer les liens */
}


.links-list {
    display: flex; /* Utilise flexbox pour aligner les éléments horizontalement */
    flex-direction: column; /* Par défaut, aligne les éléments en colonne pour mobile */
    list-style: none; /* Enlever les puces de la liste */
    padding: 10px;
    margin: 180px 0; 
}

.links-list li {
    margin: 10px 0; 
}


.adm {
    text-decoration: none;
    color: white; 
    background-color: black;
    padding: 20px;
    border-radius: 20px;
    display: block; 
}


.adm:hover {
    color: #027433;
}


.containerlinka {
    background-image: url('../images/adminpic.jpeg'); 
    background-size: cover; 
    background-position: bottom; 
    height: 80vh;
    display: flex;
    margin-bottom: -20px;
    flex-direction: row; /* Aligne les éléments côte à côte sur les écrans plus larges */
    justify-content: center;
    align-items: center;
}



/*page gestion*/

.infotel {
    display: block; 
    margin-top: -40px;
    margin-left: 41px;
    font-style: italic;
}

table {
    width: 90%; /* Tu peux ajuster cette valeur pour changer la largeur du tableau */
    margin-left: 30px;/* Cela va centrer le tableau horizontalement */
    border-collapse: collapse; /* Pour que les bordures se fusionnent */
    margin-top: 20px; /* Ajoute un peu d'espace au-dessus du tableau */
    margin-bottom: 50px; /* Ajoute un peu d'espace en dessous du tableau */
    overflow-x: auto; /* Permet le défilement horizontal si nécessaire */
    display: block;
}
th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid black; 
    word-wrap: break-word;
}

tr:hover {
    background-color: black;
    background-blend-mode: lighten;
    color: #FBF6EF; 
}

.supmod {
    text-decoration: none;
    color:#027433;
}

tr:hover .supmod {
    background-color: black;
    background-blend-mode: lighten;
    color: #FBF6EF; 
    text-decoration: underline;
}

thead {
    background-color: black;
    color: #FBF6EF;
}

.retourl {
    display:flex;
    justify-content: center;
    text-decoration: none;
    padding: 20px 25px;
    background-color: #1A160D;
    color: #FBF6EF;
    font-weight: bold;
}

.btn-link {
    display: flex;
    justify-content: center;
    background-color: #1A160D;
    color: #FBF6EF;
    padding: 10px 15px;
    border: none;
    font-weight: bold;
    margin-bottom: 20px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-link:hover {
    background-color: #027433;
    color: #FBF6EF;
}

h2 {
    display: flex;
    justify-content: center;
    margin-bottom: 55px;
    margin-left: 10px;
}

.containerad {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    height:60vh;
    text-align: center;
}
.inputad[type="text"] {
    width: auto; 
    padding: 8px; 
    border: 1px solid #027433; 
    border-radius: 5px; 
    font-size: 14px; 
    margin-bottom: 15px; 
}

.formad {
    background-color: black;
    color: #FBF6EF;
    opacity: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
    padding: 30px;
    margin-top: 50px;
    margin-bottom: 70px;
}

input[type="submit"] {
    background-color: #027433; 
    color: #FBF6EF; 
    padding: 10px 15px; 
    border: none; 
    font-weight: bold;
    transition: background-color 0.3s; 
}

select {
    width: auto; 
    padding: 8px; 
    border: 1px solid #027433; 
    border-radius: 5px; 
    font-size: 14px; 
    margin-bottom: 15px; 
}

/* formulaire recherche */ 

.container {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    height: 70vh;
    text-align: center;
}

form {
    padding: 20px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
    width: 70%; /* Largeur complète */
    max-width: 800px;
    margin-top: 100Px;
    margin-bottom: 250px;
    background-color: black;
    opacity: 80%;
}

#h1f {
    color: white
}

label {
    display: block; 
    margin-bottom: 10px; 
    color: white
}

input[type="text"] {
    width: 85%; 
    padding: 10px; 
    border: 1px solid #ccc; 
    border-radius: 5px; 
    font-size: 16px; 
    margin-bottom: 15px; 
}


input[type="text"]:focus {
    border-color: #027433; 
    outline: none; 
}


button {
    background-color: #027433; 
    color: #FBF6EF; 
    padding: 10px 15px; 
    border: none; 
    font-weight: bold;
    transition: background-color 0.3s; 
}

button:hover {
    background-color: #1A160D; 
    color: #FBF6EF; 
}

#resu {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

#phrase {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.video-pc {
    display: none; /* Cache la vidéo PC */
}
    
.image-background {
    display: block; 
    position: fixed; /* Reste fixe pendant le défilement */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.image-mobile {
    object-fit: cover;  
    width: 100%;
    height: 100%;
    filter: grayscale(100%);
    margin-top: 30px;
}


/*suppression page */
.suppr {
    margin-top: 70px;
}
.containerimg {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content:flex-start;
    height: 40vh;
    text-align: center;
    margin-bottom: 30px;

}

img#supprimersad {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    width: 55%;

}

#sad {
    margin-top: 20px;
}




/* footer */

footer {
    background-color: #027433; 
   color: #FBF6EF; 
   text-align: center; 
   padding: 10px 0; 
   position: relative; 
   bottom: 0; 
   width: 100%; 
   height: 60px;
   display: flex;
   justify-content: center;
   align-items: center;
}

footer p {
    margin: 0;
}


body.recherche-page footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #027433;
    color: #FBF6EF;
    text-align: center;
    padding: 10px 0;
    z-index: 1000; /* Assurez-vous que le footer est au-dessus des autres éléments */
}





@media (min-width: 576px) {


body.recherche-page {
    margin: 0;
    padding: 0;
    height: 100%; /* Assure que le corps prend toute la hauteur */
    overflow: hidden; /* Empêche le défilement */
}

main {
    flex-grow: 1;
}

nav {
    background-color: #027433; 
    padding: 5px 10px; 
    display: flex;   
    justify-content: center; 
    align-items: center;   
    height: 50px;  
    width: 99%;
    margin-top: 12px; 
}

.nav-list {
    display: flex; 
}


.menu-toggle {
    display: none; 
}

.banner {
    background-image: url('images/accueil.jpg'); 
    background-size: cover; 
    background-position: center; 
    height: 500px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.video-pc {
    display: block; 
}
    
.image-background {
    display: none; 
}

h1 {
    font-family: 'Oswald';
    font-size:30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

#h1f {
    color:#1A160D;
    margin-bottom: 20px;
}

h1#list {
    margin-bottom: 60px;
    margin-top: 40px;
}

/*cartes*/

.row {
    grid-template-columns: repeat(3, 1fr); 
}

.card {
    width: 100%; /* Prend toute la largeur de la cellule de la grille */
    max-width: 300px; /* Limite la largeur des cartes */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.card h5 {
    font-size: 1.2rem;
}

.card p {
    font-size: 0.9rem;
}

/*fin cartes*/

label {
    display: block; 
    margin-bottom: 10px; 
    color: #1A160D;
    text-shadow: -2px -2px 0 #027433,;
    font-size: large;
    font-weight: bolder;
}

.video-background {
    position: fixed; /* Reste fixe pendant le défilement */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* La vidéo est en arrière-plan */
}

.video-pc {
    object-fit: cover; /* La vidéo couvre tout l'écran */
    width: 100%;
    height: 110%;
    filter: grayscale(100%);
}

footer {
    background-color: #027433; 
   color: #FBF6EF; 
   text-align: center; 
   padding: 10px 0; 
   position: relative; 
   bottom: 0; 
   width: 100%; 
}

body.recherche-page footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #027433;
    color: #FBF6EF;
    text-align: center;
    padding: 10px 0;
    z-index: 1000; /* Assurez-vous que le footer est au-dessus des autres éléments */
}

.container {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center;
    height: 100vh;
    text-align: center;
}

form {
    border: 1px solid #027433;
    padding: 20px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
    width: 100%; /* Largeur complète */
    max-width: 800px;
    margin-bottom: 450px;
    background-color: white;
    opacity: 90%;
}

button {
    background-color: #1A160D;
    color: #FBF6EF; 
    padding: 10px 15px; 
    border: none; 
    font-weight: bold;
    transition: background-color 0.3s; 
}


button:hover {
    background-color:#027433 ;
    color: #FBF6EF; 
}

/*admin*/
.links-list {
    display: flex; /* Utilise flexbox pour aligner les éléments horizontalement */
    flex-direction: row; /* Aligne les éléments côte à côte sur les écrans plus larges */
    justify-content: center;
    align-items: center;

}


.links-list li {
    margin: 0 70px; /* Ajouter un espacement horizontal entre les éléments de la liste */
}

h2 {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/*tableau*/

.infotel {
    display: none; /* Masque les éléments par défaut */
}

table {
    width: 80%; /* Largeur du tableau pour les écrans plus larges */
    margin: 0 auto; /* Centre le tableau */
    margin-bottom: 50px;;
}

.containerimg {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content:flex-start;
    height: 70vh;
    text-align: center;
}

img#supprimersad {
    width: 35%;
    margin-top: 20px;
    margin-bottom: 20px;
}

}