*{
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI';
    box-sizing: border-box;
    scroll-behavior:smooth;
}

body{

    width: 100%;
    scroll-behavior:smooth;
    overflow-x: hidden;
}

main{
    width: 100%; 
    padding: 50px;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    position: relative;
    top: 80px;
}

main a{
    text-decoration: none;
    color: black;
    width: 90%;
    box-shadow: rgba(0, 0, 0, 0.389) 0px 15px 25px, rgba(0, 0, 0, 0.34) 0px 5px 10px;
    transition: all .3s;
    background-color: rgba(255, 255, 255, 0.816);
    border-radius: 10px;
}
main a:hover{
    color: black;
}
.article{
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    height: 300px;
    column-gap: 20px;
    padding: 10px;
    
}
.article h2{
    color: #01257D;
    font-size: calc(0.7rem + 1.1vw);
}
.article p{
    text-align: justify;
    font-size: calc(0.7rem + .8vw);
    padding: 5px;
}
.article span{
    color: #01257D;
    font-size: calc(0.7rem + 1vw);
}
.article img{
    height: 100%;
    width: 35%;
    object-fit: cover;
    border-radius: 4px;
}

#navpt{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    row-gap: 20px;
    top: 120px;
    
}


#h1pt{
    text-align: center;
    padding: 10px;
    background-color: #01247dd3;
    color: white;
    border-radius: 5px;
    font-size: calc(0.6rem + 1vw);
}


header{
    width: 65%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    font-size: calc(0.4rem + .9vw);
    background-color: #F0F0F0;
    height: 50px;
    padding: 10px;
    border-radius: 5px;
}
header a{
    text-decoration: none;
    color: black;
    transition: all .2s ;
}
header a:hover{
    color: #01257D;
}

.menu{
    scroll-behavior:smooth;
}


section{
    width: 100%;
    position: relative;
    top: 200px;
    display: flex;
    flex-direction: column;
    padding: 25px;
    align-items: center;
    justify-content: center;
    row-gap: 20px;
    /* background-color: rgba(255, 255, 255, 0.504); */
    background-color: rgba(0, 0, 0, 0.816);
    /* background-color: rgba(128, 128, 128, 0.252); */
    color: rgba(255, 255, 255, 0.96);
}


section article{
    width: 90%;
    text-align: justify;
   
}
section article h2{
    color: #00FFFF;
    font-size: calc(0.8rem + 1.2vw);
}

section article h3{
    color: #00FFFF;
    font-size: calc(0.7rem + 1vw);
}

section article p{
    font-size: calc(0.7rem + 1vw);
}

section article ul{
    font-size: calc(0.7rem + 1vw);
}
section article ul li{
    list-style-type:circle;
}


#comment{
    position: relative;
    top: 200px;
    display: flex;
    flex-direction: column;
    padding: 25px;
    height: 1000px;
    justify-content: space-around;
    align-items: start;

}
#comment h2{
    text-align: center;
    color: #01257D;
    font-size: calc(0.9rem + 1.1vw);
    background-color: rgba(255, 255, 255, 0.656);
    padding: 5px;
    border-radius: 2px;
}
#comment div{
    max-height: 300px;
    padding: 15px;
    /* border: 1px solid black; */
    width: 70%;
    overflow: scroll;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.815);
    overflow-x: hidden;
    /* background-color: rgba(128, 128, 128, 0.252); */
}
#comment div ul{
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}
#comment div ul li{
    list-style:circle;
    position: relative;
    left: 20px;
    min-height: 30px;

    color: white;
}
.commentaire {
    font-size: calc(0.6rem + .9vw);
    overflow-x: hidden;
}
.commentaire span{
    font-size: calc(0.6rem + .9vw);
    font-weight: bold;
    color: #00FFFF;
}

#comment form{
    display: flex;
    flex-direction: column;
    width: 70%;
    row-gap: 15px;
    align-self: flex-start;
}
#comment form input{
    height: 40px;
    background-color: rgba(0, 0, 0, 0.816);
    border: none;
    color: white;
    border-radius: 5px;
    padding: 5px;
    font-size: 18px;
}
#comment form textarea{
    background-color: rgba(0, 0, 0, 0.815);
    border: none;
    color: white;
    border-radius: 5px;
    padding: 5px;
    font-size: 18px;
}
#comment form input[type='submit']{
    width: 30%;
    background-color: #01257D;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    color: white;
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.389) 0px 15px 25px, rgba(0, 0, 0, 0.34) 0px 5px 10px;
}
#comment form input[type='submit']:hover{
    transform : scale(.97);
}





@media (max-width:800px){
    main a{
        width: 95%;
    }
    .article img{
        height: 90%;
    }
    #comment div,  #comment form{
        width: 80%;
    }
}
@media (max-width:700px){

    main{
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }
    main a{
        width: 90%;
        border-radius: 7px;
        
       
    }
    .article{
        flex-direction: column;
        height: 600px;
        row-gap: 10px;
        justify-content: space-evenly;
        align-items: center;
    }
    .article img{
        height: 300px;
        width: 90%;
        border-radius: 4px;
    }
    .article .text{
        width: 90%;
    }
    #comment div,  #comment form{
        width: 90%;
    }
    #navbas{
        display: none;
    }
    #h1pt{
        position: relative;
        top: 50px;
    }
}

@media (max-width:500px){
    .article h2{
        color: #01257D;
        font-size: calc(0.6rem + 1vw);
    }
    main{
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    main a{
        width: 95%;
        border-radius: 7px;
        
       
    }
    .article {
        height: 500px;
    }
    /* .article .text{
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    } */
    .article .text:nth-child(3){
        align-self: start;
    }
    .article h2{
        font-size: calc(0.9rem + 1vw);
       

    }
    .article p{
        font-size: calc(0.6rem + .8vw);
        margin: 0;
    }
    .article img{
        height: 220px;
    }
}