*{
    padding: 0;
    margin: auto;
}

body{
    background-color: rgb(240, 235, 228);
    padding: 0;
    max-width: 100%;
    margin: auto  ;
    color: black;
    font-family: 'DM Serif Text', serif;
}

.logo{
    margin-left: 20px;
    font-size: 30px;
}
h1 span{
    font-weight: bolder;
    color:green;
}
.navmenu{
    margin: 45px;
    list-style-type: none;
    display: flex;
}

a{
   text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 15px;
}
a:hover{
  color:white;
}

.navlink:hover{
    font-weight: bolder;
    color: green;
    transform: .3s;
}
header{
   background-color: darkgray;
    max-width: 100%;
   
    

}
   .section{
        padding:3rem 0 2rem;
        }
nav{
    background-color: darkgray;
    margin: auto;
    max-width: 100%;
    display:flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'DM Serif Text', serif;
    padding-bottom: -1px;
    
}
.navlink{
    text-decoration: none;
    margin: 30px;
   
}

.menu{
    display: none;
    cursor: pointer;
}

@media only screen and (max-width : 800px){
  

  /* Changer la direction de flex pour afficher gardien_img en dessous */
  .gardien_card {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
 

  
  
  
    .navmenu{
        transition: .3s;
        position: absolute;
        text-align: center;
        flex-direction:column;
        z-index:100;
        background-color: darkgray;
        width: 100%;
        top: -100%;
        left: -50px;
       
  
       
       
    }
    .menu{
        margin-right: 5px;
        display: block;
        width: 5%;
        transition: .3s;
        
    }
    .navitem{
        
        margin: 16px 0;
    }

     .active{
        top:0;
     }
   

    

    
}

.acceuil{
    display: flex;
    background-color: darkgray;
    max-width: 100%;
   overflow: hidden;
   margin: auto;
  
}
.background__acceuil{
    right: 0;
    width: 350px;
    position:relative;
    display:flex;
    margin: auto;
    justify-content:center;
    align-self:center;
    

}
.acceuil_donnees{
 
   z-index: 1;
   justify-content:flex-start;
}
p{
    display:block;
   margin-left: 3px;
    font-size:25px;
    font-weight: 600;
    margin-bottom:1rem;
    text-align: start;

}
.Titre{
    font-size: 45px;
    margin-bottom: 5px;
}
.adopter{
    padding: 15px;
    text-decoration: none;
    font-weight: 10px;
    display: inline-block;
     background-color: green;
     color: black;
     padding: 20px 10px;
     font-weight: bold;
    border-radius: 20px;
    transition :.3s;
    margin-right: 15px;
    
}
.description2{
    font-size: 20px;
    font-weight: 500;
}
.adopter:hover{
    color: green;
    background-color: black;
    transition: .3s;
}
.service_container{
   
    margin-top: 15px;
    row-gap: .7rem;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
   
}

.service_card{
    position: relative;
    display: flex;
    height: 250px;
    width: 250px;
    padding: 50px;
    transition: .3s;
    border-radius: 5px;
    border: 2px solid green;
    box-shadow: 10px -10px green;
    text-decoration: none;
    
}
.service_card:hover{
    background-color: green;
    transform: translateY(-2.5px);
    transition: .3s;
  
}


.service_img{
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    position: absolute;
    width: 150px;
    margin-bottom: 50px;

}
.service_name{
    color:black;
    margin-top: 150px;
    font-size:1.25rem;
    padding: 2px;
}

.bd-grid{
    width:100%;
    display:grid;
    column-gap:2rem;
    width:calc(100% - 2rem);
    margin-left:1rem;
    margin-right:1rem;
  }
  .service_titre{
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 35px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'DM Serif Text', serif;
  }

  .adoption_card{
    position: relative;
    display: flex;
    height: 350px;
    width: 250px;
    padding: 50px;
    transition: .3s;
    border-radius: 5px;
    border: 2px solid green;
    box-shadow: 10px -10px green;
    text-decoration: none;
    margin-top: 20px;
    
}
.adoption_card:hover{
background-color: green;
transition: .3s;
    
}
.adoption_img{
    right: 0;
    left: 0;
   top: 20px;
    position: absolute;
    width: 150px;
   }
   .adoption_img2{
    right: 0;
    left: 0;
    top: 25px;
   position: absolute;
    width: 190px;
    }
    .bulle{
        position: absolute;
        right: 0;
        left: 0;
        margin-top: 30%;
        color:green;
        background:rgba(0,0,0,.9);
        padding:15px;
        border-radius:10px;
        box-shadow:0 0 2px rgba(0,0,0,.5);
        transform:scale(0) rotate(-12deg);
        transition:all .25s;
        opacity:0;
        text-align: center;
    }
    a:hover span, a:focus span{
        transform:scale(1) rotate(0);    
        opacity:1;    
   }
   .service_titre2{
    margin-top: 40px;
    font-size: 35px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'DM Serif Text', serif;
   }
   .help{
     
    left: 0;
    right: 0;
    margin: auto;
    background-color: darkgrey;;
    max-width: 100%;
    margin-top: -83px;
   }
   .aide__description{
    text-align: center;
    left: 0;
    right: 0;
    font-size: 35px;
   }
   .aideimg{
    display: flex;
    justify-content: center;
    align-items: center;
}
    .background__aide{
        max-width: 400px;
       display: flex;
       margin-bottom: -63px;
    }
    .btn__affiche{
        row-gap: 0.9px;
        grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    }
    .aide_description2{
        text-align: center;
        font-weight: 300;
    }
    .aide_card{
        position: relative;
        display: flex;
        height: 130px;
        width: 130px;
        padding: 50px;
        transition: .3s;
        border-radius: 5px;
        border: 2px solid green;
        box-shadow: 10px -10px green;
        text-decoration: none;
        margin-bottom: 15px;
        

    }
    .aide_titre{
        font-size: 20px;
        margin-top: 100px;
        text-align: center;
    }
    .aide_img{
        right: 0;
        left: 0;
        top: 0;
        bottom: 0;
        position: absolute;
        width: 150px;
        margin-bottom: 70px;
        }
        .aide_card:hover{
            background-color: green;
            transform: translateY(-.25rem);
        }
         
          .rejoigner_btn{
            display: flex;
            justify-content: center;
            align-items: center;
            text-decoration: none;
            font-weight: 10px;
            background-color: green;
            color: black;
            width: 50%;
            padding: 30px 30px;
            font-weight: bold;
            transition :.3s;
            margin-top: 20px;
            border-radius: 20px;
            
                }
              .rejoigner_btn:hover{
                
                border: 2px solid darkgray;
                box-shadow: 10px -10px darkgrey;
              }  
              .metier{
                padding: 5px 5px;
                background-color: darkgray;
                border-radius: 10px;
                text-align: center;
                    
            }
            p span{
                color: green;
                font-weight: bold;
            }
            .visite_description{
                font-weight: 300;
                font-size: 20px;
                text-align: center;
               
            }
            .maps{
                border-radius: 50%;
                border: 2px solid green;
                display: flex;
                align-items: center;
            }
            .visite{
                left: 0;
                right: 0;
                background-color: darkgrey;;
                max-width: 90%;
                padding-bottom: 20px;
                margin-bottom: 50px;
                border-radius: 20px;
                box-shadow: 10px 5px 5px green;
                
               }

               ul{
                list-style-type: none;
               }
               .gardien_card{
              
                position: relative;
                display: flex;
                height: 400px;
                width: 1000px;
                padding: 50px;
                transition: .3s;
                border-radius: 5px;
                border: 2px solid darkgray;
                box-shadow: 10px -10px green;
                text-decoration: none;
                margin-top: 20px;
                margin-bottom: 20px;
                
               }
               .gardien_img{
                border: 2px solid darkgray;
                border-radius: 10px;
                left: 50px;
                top: 50px;
               position: absolute;
                width: 250px;
               }
               
             

               .boutton_reserver{
                display: flex;
                justify-content: center;
                align-items: center;
                text-decoration: none;
                font-weight: 10px;
                background-color: green;
                color: black;
                padding: 30px 25px;
                font-weight: bold;
                transition :.3s;
                border-radius: 20px;
                
               }
               .container {
                display: flex;
                justify-content: center;
                align-items: center;
                height: 100vh;
                background-color: #f1f1f1;
                flex-direction: column; /* add this line to change the direction of the flexbox */
              }
              
              .contact-title {
                margin-top: 8%;
                color: #333;
                text-align: center;
                font-size: 2rem;
                
              }
              
              .form {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                background-color: #fff;
                border-radius: 10px;
                box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
                padding: 2rem;
                width: 400px;
                max-width: 100%;
              }
              
              .form input[type="text"],
              .form input[type="password"] {
                border: none;
                border-radius: 5px;
                padding: 1rem;
                margin-bottom: 1rem;
                font-size: 1.2rem;
                width: 100%;
              }
              
              .form input[type="text"]:focus,
              .form input[type="password"]:focus {
                outline: none;
                box-shadow: 0px 0px 5px #333;
              }
              
              .form button.submit {
                background-color: #333;
                color: #fff;
                border: none;
                border-radius: 5px;
                padding: 1rem;
                font-size: 1.2rem;
                cursor: pointer;
                transition: all 0.3s ease-in-out;
                width: 100%;
              }
              
              .form button.submit:hover {
                background-color: #fff;
                color: #333;
                border: 2px solid #333;
              }
              
              @media (max-width: 768px) {
                .form {
                  width: 100%;
                }
              }
              
              .container_reserver {
                max-width:1500px;
                margin: 0 auto;
                padding: 80px;
                background-color: #f7f7f7;
                box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.1);
              }
              
              .reserver-title {
                text-align: center;
                font-size: 32px;
                font-weight: bold;
                margin-bottom: 30px;
                color: #4CAF50;
              }
              
              .form {
                display: flex;
                flex-direction: column;
              }
              
              label {
                font-size: 18px;
                margin-bottom: 10px;
              }
              
              input {
                padding: 10px;
                font-size: 16px;
                border: none;
                border-bottom: 2px solid #4CAF50;
                margin-bottom: 20px;
              }
              
              fieldset {
                margin-bottom: 20px;
              }
              
              legend {
                font-size: 20px;
                font-weight: bold;
                margin-bottom: 10px;
              }
              
              button {
                background-color: #4CAF50;
                color: #fff;
                font-size: 20px;
                font-weight: bold;
                padding: 15px;
                border: none;
                border-radius: 5px;
                cursor: pointer;
                transition: all 0.2s ease-in-out;
              }
              
              button:hover {
                background-color: #3e8e41;
              }
              .lien_inscri {
                margin-top: 10px;
                font-size: 17px;
                text-decoration: underline;
              }
              .lien_inscri:hover{
                color:green;
              }
              .filtre{
                width: 500px;
                margin: 50px auto;
                display: flex;
              }
              select {
                display: block;
                font-size: 16px;
                font-weight: bold;
                line-height: 1.3;
                color: #333;
                padding: 10px 20px;
                box-sizing: border-box;
                border: 1px solid #aaa;
                border-radius: .5em;
                margin-right: 20%;
                
              }
              
              select:hover {
                border-color: #888;
              }
              
              select:focus {
                border-color: #aaa;
                box-shadow: 0 0 1px 3px rgba(59, 153, 252, .7);
                box-shadow: 0 0 0 3px -moz-mac-focusring;
                color: #222;
                outline: none;
              }
              
              select option {
                font-weight:normal;
              }
            .footer_section{
              margin: auto;
                  padding:3rem 0 2rem;
                  background-color: darkgrey;
                
            }
      

