


:root{
    --primary-color: rgb(48, 45, 45);
    --secondary-color :#2060A0;;
}

*{
    color: var(--primary-color)
}




html, body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: fit-content;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body * {
    box-sizing: border-box;
}

header{
    width: 100%;
    height: 8vh;
    background-color: #2060A0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 2rem;
    padding-right: 6rem;
 
}

header nav{
    width: 100%;
     box-sizing: border-box;
     margin: 0;
     padding: 0;
}

header *{
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
}

header a:hover{
    text-decoration: underline;
}
header a:active{
    text-decoration: underline;  
}

.empty{
    width: 40%;
}
header nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;

}
.message p {
    color: rgb(143, 63, 63);
    font-size: 1.2rem;
}

main.accueil {
    position: relative;
    width: 100%;
    min-height: 85vh;
    height: fit-content;
     background-image: url("../images/crop_image2.jpg");
    background-size: cover;
    background-position: top center; 
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
 
}
.accueil h1 {
    text-align: center;
     color: #1a4112;
     margin-top: 1.5rem;
     font-weight: 900;
     font-style: italic;
     font-size: 4rem;
    
}


 .introduction{
    padding: 1.5rem;
    line-height: 1.5rem;
    font-size: 1.2rem;
    position: absolute;
    top: 6rem;
    right: 10rem;
    width: 30% ;
    height: 35rem;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow:0px 20px 20px 0px rgba(0, 0, 0, 0.8);         
    backdrop-filter:contrast(0.5) saturate(100%) blur(20px); 
     -webkit-backdrop-filter: contrast(0.5) saturate(100%) blur(20px);

}

.accueil .contact{
    box-sizing: border-box;
  padding: 0rem;
  margin: 0;
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: fit-content;
    border-radius: 8px;
    height: auto;
    box-shadow:0px 20px 20px 0px rgba(0, 0, 0, 0.7);         
    backdrop-filter:contrast(1) saturate(100%) blur(15px); 
     -webkit-backdrop-filter: contrast(0.5) saturate(100%) blur(20px);
}

.accueil .contact ul{
    margin: 0;
    padding: 1rem;
    line-height: 1.5rem;
}
.accueil .contact li{
    margin: 0;
    list-style: none;
}

.accueil .contact li a{
    margin: 0;
    text-decoration: none;
}

.contact h3{
    margin: 0;
    padding: 0;
    margin-top: 1rem;
}



.accueil div *{
    color: whitesmoke;
    font-size: 1.2rem;
}
.accueil h3{
    text-align: center;
}
footer{
    display: flex;
    align-items: center;
   
    box-sizing: border-box;
    margin: 0;
 
    width: 100%;
    height: 7vh;
   background-color: #5599D8

}
footer p {
    color: #1a4112;
    font-size: 1.2rem;
    font-weight: 900;
    margin-left: 2rem;
}

footer a{
    color:  white;
}


.intro{
    width: 40rem;
    height: 35rem;
    background-color: blanchedalmond;

}

.posts{
 width: 50%;
 margin-left: 25%;
 padding: 2rem;
 min-height: 85vh;
height: fit-content;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 1rem;
box-sizing: border-box;

}
.post{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: fit-content;
    background-color: #D6E8F5;
    padding: 2rem;
    border-radius: 5px;
    box-sizing: border-box;
}

.posts h1{
    text-align: center;
}
.posts h2{
font-style: italic;
}

.post p{
    width: 100%;
    text-align: end;
    color: var(--secondary-color);

}



.post-btn{
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 2rem;

}

.btn{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 8rem;
    height: 2.5rem;
    margin: 1.5rem 1.5rem 1.5rem 0;
    font-size: 1.1rem;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 5px;
    border: none;
  
}
 a.btn{
    text-decoration: none;
    color: white;
    text-align: center;

}



.post-btn :nth-child(2){
    background-color: transparent;
    border: none;
    padding: 0;
   
}


.btn-delete{
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
     background-color: #6FA65A ;
}








.btn:hover{
    background-color: rgba(32, 96, 160, 0.3);
    color: #000;
}



.post_details{
    min-height: 85vh;
    height: fit-content;
    margin: 0;
     box-sizing: border-box;

}


.container_details{
    padding: 2rem;
    display: flex;
    flex-direction: column;

    margin-left: 25%;
    margin-bottom: 2rem;
    width: 50%;
    height: fit-content;
  
    
}

.post_details h1{
    text-align: center;
}

.details_image{
    margin: 1.5rem;
    width: 30rem;
    height: auto;
   display: flex;
   justify-content: center;

   
}

.details_image img{
    width: 80%;
    height: auto;
}


#element_to_modify{
    display: none;
}

#element_to_modify.visible{
    display: block;
}





.submit{
    background-color: #6FA65A !important;
}

.btn-delete:hover{
    background-color: rgba(111, 166, 90, 0.5);
    color: #000;

}

.special{
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    padding: 0.7rem;
    height: 2.5rem;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    color: white;
    border-radius: 5px;
    border: none;
     background-color: #6FA65A;

}

button.special:hover{
    background-color: rgba(111, 166, 90, 0.5);
    color: #000;

}


.annulation{
    background-color:var(--secondary-color) 
}

#annulation:hover{
    background-color: rgba(32, 96, 160, 0.3);
    color: #000;
}

.contener_btn{
    width: 25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
 
}

.Myform{
    width: 100%;
    min-height: 85vh;
    overflow-y: hidden;
    overflow-x: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}


.Myform form{
    width: 20rem;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 5px;
    padding: 2rem;
    background-color: rgb(214, 232, 245, 0.7);
}

.Myform form .form-input{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


.Myform form button{
    width: 10rem;
    height: 3rem;
    border-radius: 5px;
    margin: 2rem auto 0 auto;
  background-color: var(--secondary-color);

}


.Myform2{
    width: 100%;
    min-height: 85vh;
    overflow-y: hidden;
    overflow-x: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap:1rem
}

.Myform2 form{
    width: 40rem;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 5px;
    padding: 2rem;
    background-color: rgb(214, 232, 245, 0.7);
}

.Myform2 form .form-input{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-input h1{
    text-align: center;
}

.Myform2 form button{
    width: 10rem;
    height: 3rem;
    border-radius: 5px;
    margin: 2rem auto 0 auto;
  background-color: var(--secondary-color);

}


textarea{
    width: 100%;
    min-height: 200px;
    resize: vertical;
    box-sizing: border-box;
}

.sideBar {
    display: none;
}

.mobileHeader{
    display: none;
}

.hidden{
    display: none;
}


hr {
  width: 100%;
  border: 1px solid #000;
  margin: 20px 0;
}

.contener_btn{
    display: none;
}

.contener_btn.show{
    display: block;
}

@media (max-width: 768px) {

 .mobileHeader{
    display: flex;
    width: 100%;
    height: 8vh;
     background-color: #2060A0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
 }


 .mobileHeader .icons{
    margin-left: 1rem;
    
 }

.mobileHeader .icons i{
    color: white;
    font-size: 2rem;
}

.sideBar{
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    height: 100vh;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    margin: 0;
}

.sideBar ul {
    display: flex;
    flex-direction: column;
    gap: 12rem;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sideBar ul .item {
    line-height: 2rem;
}

.sideBar ul .container-icon{
    display: flex;
    justify-content: flex-end;
    width: 100%;
    height: auto;
  padding: 1rem 2rem 1rem 2rem;
    margin: 0;
}

.sideBar ul .container-icon i{
    font-size: 2rem;
    color: rgb(161, 78, 78);
}

.sideBar ul li{
    list-style: none;
}

.sideBar ul li a{
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
}

.sideBar.open{
    transform: translateX(0);
}









  header{
    display: none;
  }


    .accueil{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        gap: 1rem;
        padding: 0;
        min-height: 82vh;
        padding-bottom: 1rem;
    }

    .accueil h1{
        font-size: 2rem;
    }

 .accueil .introduction {
    position: static;
    margin-left: 5%;
    margin-right: 5%;
    width: 90%;
    height: 20rem;
    box-sizing: border-box;
    overflow-y: scroll;
  
 }

  .accueil .contact{
    position: static;
    width: 90%;
    height: fit-content;
  }
  footer{
    height: 10vh;
  }

  footer p {
    color: #1a4112;
    font-size: 1rem;
    font-weight: 900;
    margin-left: 2rem;
}



.posts{
 width: 100%;
 margin:0;
 padding: 0rem;
 line-height: 1rem;
 border: 1px solid black;
  padding-bottom: 1rem;

}

.post{
    display: flex;
    flex-direction: column;
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    height: fit-content;
    background-color: #D6E8F5;
    padding: 1rem;
  
    border-radius: 5px;
    box-sizing: border-box;
}
.post *{
    margin: 0;
}

.post h1{
    font-size: 1.3rem;
}

.post h2{
    font-size: 1rem;
    margin-top: 1rem;  
}
.post p{
    margin-bottom: 1rem;
}


.post-btn{
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;

}



.Myform2{
    padding: 1rem 0rem;
    
  
}

.Myform2 form{
    width: 90%;
    padding: 1rem;
}

.Myform2 form .form-input{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}



.post_details{
    border: 1px solid black;
    min-height: 85vh;
    height: fit-content;
    margin: 0;
    padding: 0;
     box-sizing: border-box;
     padding-bottom: 1rem;

}


.container_details{
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    margin-bottom: 2rem;
    width: 90%;
    margin-left: 5%;
    height: fit-content;

}

.post_details h1{
    text-align: center;
}

.details_image{
    width: 90%;
    margin-left: 5%;
    height: auto;
   display: flex;
   justify-content: center;
   
}

.details_image img{
    width: 100%;
    height: auto;
}




  


}
