@font-face {
    font-family: 'Itim-Regular';
    src: url(fonts/Itim-Regular.woff2);
}

body, html{
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100svh;
    position: relative;
}
.body_wrapper{
    gap: 0px;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 65px 1fr;
    grid-template-rows: 150px 9% auto;
}
.sidebar{
    display: grid;
    grid-template-rows: 90px 10% auto 300px;
    background-color: #003982;
    grid-column: 1;
    grid-row: 1/5;
    border: red;
    width: 100%;
    height: 100%;
}
/* off-screen-menu */
.off-screen-menu {
    background-color:  #003982;
    height: 100vh;
    width: 100%;
    max-width: 450px;
    position: fixed;
    top: 0;
    left: -450px;
    display: flex;
    flex-direction: column;
    align-items: center;    
    justify-content: center;
    text-align: center;
    font-size: 3rem;
    transition: .3s ease;
}
.off-screen-menu ul{
    font-family: 'Itim-Regular';
    height: 50%;
    justify-content: space-between;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.off-screen-menu ul a{
    text-decoration: none;
        color: white;
}
.off-screen-menu.active {
    left: 0;
}
/* ham menu */
.ham-menu {
   top: 135px;
    height: 50px;
    width: 40px;
    position: relative;
    margin: auto;
}
.ham-menu span {
    height: 5px;
    width: 100%;
    background-color: #d0c9cc;
    border-radius: 25px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: .3s ease;
}
.ham-menu span:nth-child(1) {
    top: 25%;
}
.ham-menu span:nth-child(3) {
    top: 75%;
}
.ham-menu.active span {
    background-color: white;
}
.ham-menu.active span:nth-child(1) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}
.ham-menu.active span:nth-child(2) {
    opacity: 0;
}
.ham-menu.active span:nth-child(3) {
    top: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.socials{
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    grid-column: 1;
    grid-row: 4/5;
}
footer{
    position: relative;
    bottom: auto;
}
.socials_footer{
    margin: 10px;
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}
.footer_socials{
    display: none;
}
.hidephone{
    display: none;
}
header{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    grid-column: 2;
    grid-row: 1;
}
header h2{
    margin: 0;
    font-family: 'Itim-Regular';
    font-size: 24px;
    font-weight: 100;
    color: #003982;
}
header h5{
    text-align: center;
    margin: 0;
    font-family: 'Itim-Regular';
    font-size: 18px;
    font-weight: 100;
    color: #676767;
}
.titrePage_container{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #003982;
    grid-column: 2;
    grid-row: 2;

}
.titrePage_container ul{
    display: none;
}
.main{
    grid-row: 3/5;
    display: flex;
    flex-direction: column;
    align-items: center;
}
header h2, .titrePage_container h2{
    width: fit-content;
    font-family: 'Itim-Regular';
    padding: 10px;
    text-align: center;
    font-size: 32px;
    font-weight: 100;
}
.titrePage_container h2{
    color: white;
}
.gray, .actu{
    -webkit-box-shadow: 0px 0px 19px -3px rgba(0,0,0,0.56); 
box-shadow: 0px 0px 19px -3px rgba(0,0,0,0.56);
    overflow: hidden;
    border-radius: 13px;
    margin: 20px;
    width: 320px;
}
.last_posts{
    overflow-y: hidden;
    -webkit-box-shadow: 0px 0px 19px -3px rgba(0,0,0,0.56); 
box-shadow: 0px 0px 19px -3px rgba(0,0,0,0.56);
    border-radius: 13px;
    margin: 20px;
    width: 320px;
    height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lp_articles{
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    width: 100%;
    overflow-y: scroll;
}
.lp_title{
    font-size: 28px;
    font-weight: 100;
    color: white;
    font-family: 'Itim-Regular';
    background-color: #003982;
    margin: 0;
    min-height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    justify-content: space-evenly;
    align-items:center;
}
.lp_title a{
    height: 40px;
}
.lp_title div{
    display: flex;
    align-items: center;
    gap: 25px;
    justify-content: center;
}

.arrow{
    aspect-ratio: 1/1;
    width: 40px;
}
#Calque_1-2{
    fill: white;
}
.gray h2{
    font-size: 28px;
    font-weight: 100;
    color: white;
    font-family: 'Itim-Regular';
    background-color: #586F7C;
    margin: 0;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.gray_text{
    color: #676767;
    font-size: 22px;
    font-family: 'Itim-Regular';
    margin: 10px;
    text-align: center;
}
.blue{
    color: #003BFF;
}
.green{
    color: #0B6518;
}
.red{
    color: #DF1818;
}

.actu_title, .photo_title{
    padding: 5px;
    background-color: #003982;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center ;
    height: fit-content;
}
.actu_title_preview{
     border-radius: 13px;
    color: white;
    font-family: 'Itim-Regular';
    background-color: #003982;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    width: 70%;
    min-height: 70px;
    margin: 15px;
    justify-content: center;
    padding: 0;
}
.actu_title_preview p{
    text-align: center;
    margin: 0;
    font-size: 20px;
     font-weight: 100;
}
.actu_title_preview h2{
    text-align: center;
    margin: 0;
    font-size:28px;
     font-weight: 100;
}
.actu_title p, .photo_title p{
    margin: 0;
    font-size: 15px;
     font-weight: 100;
    color: white;
    font-family: 'Itim-Regular';
}
.actu_title h2, .photo_title h1{
    font-size: 28px;
    font-weight: 100;
    color: white;
    font-family: 'Itim-Regular';
    margin: 0;
    text-align: center;
}
.actu_text{
    color: #676767;
    font-size: 18px;
    font-family: 'Itim-Regular';
    margin: 10px;
    text-align: center;
}

.articles {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: row-reverse wrap-reverse;
}


.gray:nth-child(1) .location{
    display: none;
}

.location{
    -webkit-box-shadow: 0px 0px 19px -3px rgba(0,0,0,0.56);
box-shadow: 0px 0px 19px -3px rgba(0,0,0,0.56);
    overflow: hidden;
    display: flex;
    align-items: center;
    flex-direction: column;
    border-radius: 13px;
    margin: 20px;
    width: 320px;
}
.location h2{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 50px;
    background-color: #586F7C;
     font-size: 28px;
    font-weight: 100;
    color: white;
    font-family: 'Itim-Regular';
    margin: 0;
    width: 100%;
}
.location iframe{
    width: 300px;
    margin: 10px;
}

.photo{
    -webkit-box-shadow: 0px 0px 19px -3px rgba(0,0,0,0.56); 
box-shadow: 0px 0px 19px -3px rgba(0,0,0,0.56);
    overflow: hidden;
    border-radius: 13px;
    margin: 20px;
    width: 320px;
    height: fit-content;
}
.photo img{
    width: 100%;
    aspect-ratio: initial;
}
    


@media (min-width: 600px) {
    .location iframe{
    width: 370px;
}
    .gray, .last_posts, .actu, .location, .photo{
        width: 500px;
    }
        .body_wrapper{
    grid-template-columns: 75px auto;
}
}


@media (min-width: 760px) {
    .gallery{
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: auto;
    }
    .location {
    width: 98%;
    }
    .footer_socials{
        margin-top: 15px;
    display: block;
}
    .location iframe{
    width: 95%;
    }
    .gray.gray:nth-child(1){
        width: 90%;
        margin: 10px;
        height: 360px;
    }

    .last_posts{
        margin: 10px;
        width: 90%;
        height: 360px;
    }

    .desktop_flex{
        display: flex;
        flex-direction: row;
    }
    .body_wrapper{
        display: flex;
        flex-direction: column;
    }
    .sidebar, .ham-menu{
        display: none;
    }
    .titrePage_container{
    height: 135px;
    display: flex;
    flex-direction: column;
}
.titrePage_container ul{
    display: flex;
    width: fit-content;
    gap: 20px;
    padding: 0;
    list-style-type: none;
    font-family: 'Itim-Regular';
    font-size: 24px;
    margin-bottom: 15px;
}
.titrePage_container ul a{
    color: rgb(171, 226, 189);
    text-decoration: underline;
}
.titrePage_container h2{
    margin: 0;
}
header{
    min-height: 110px;
}
.gray{
    width: 98%;
    margin: 10px;
}
@media (min-width: 1100px){
    .articles{
        width: fit-content;
        margin: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .gallery{
        margin: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .actu{
        justify-self: center;
        align-self: flex-start;
        height: 100%;
    }
}
}
@media (min-width: 1200px){
    .gray.gray:nth-child(1), .last_posts{
        min-height: 390px;
    }
    .hidephone{
        display: inline;
    }
}
