@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

*{
    scroll-behavior: smooth;
    font-family: "Inter", sans-serif;
    text-decoration: none;
    box-sizing: border-box;
}

body{
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container{
    max-width: 1920px;
    margin: 0 auto;
}

header{
    position: sticky;
    top: 0;
    z-index: 1;
}

nav{
    background-color: white;
    height: 67px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav_container{
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.onglets_and_logos{
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 30px;
    gap: 50px;
}

.onglets{
    display: flex;
    justify-content: space-between;
    width: 380px;
}

.onglets a{
    color: #1F2937;
    font-size: 18px;
    font-weight: 500;
}

.onglets a:hover{
    color: #314158;
}

.onglets .blog{
    font-weight: 700;
}

.logos_and_language{
    display: flex;
    align-items: center;
    gap: 45px;
}
  
.logos_and_language a img{
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 17px;
} 
  
.language_selector{
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}
  
.language_selector span{
    font-size: 18px;
    color: #1F2937;
    margin-right: 8px;
    font-weight: 500;
}
  
.language_selector img{
    fill: white;
    width: 13px;
    transition: 0.2s;
    margin-top: 4px;
}

.language_selector i{
    color: #1F2937;
    font-size: 14px;
}

.language_menu{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease ;
}

.language_menu li{
    padding: 8px 16px;
}

.language_menu li a{
    color: #1F2937;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
}

.language_menu li:hover{
    background-color: #f3f4f6;
}

.language_selector:hover .language_menu{
    display: block;
}

.language_selector:hover img{
    transform: rotate(180deg);
}

.linkedin_mobile{
    display: none;
    height: 24px;
    position: absolute;
    right: 80px;
}

.linkedin_mobile img{
    width: 24px;
}

.burger_button{
    position: absolute;
    display: none;
    cursor: pointer;
    right: 20px;
    font-size: 0;
}

.burger_close{
    display: none;
}

.burger_menu{
    display: none;
}
    
.homebutton{
    margin-left: 1.5%;
    margin-left: 20px;
    display: flex;
    align-items: center;
    height: auto;
}

.homebutton img{
    margin-top: 4px;
    width: 45px;
}

.homebutton .lockystarhome{
    color: #1F2937;
    font-size: 24px;
    font-weight: 500;
    margin-left: 15px;
}

section{
    color: #1F2937;
    min-height: 100vh;
    display: flex;
    gap: 35px;
    padding: 30px;
    padding-top: 40px;
}

section::before {
    content: "";
    background: url('/images/Lockystar.svg') no-repeat center center;
    position: fixed;
    background-size: contain; 
    width: 680px;
    height: 680px;
    margin-top: 50px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05; 
    z-index: -1; 
    filter: grayscale(100%);
}

.main_article .mobile_title{
    display: none;
}

.main_article img{
    width: 100%; 
    height: 276px;
    object-fit: cover;
    border-radius: 8px;
}
.main_article .tuto {
    height: initial;
    padding: 4%;
}


ul{
    list-style-type: decimal;
    display: flex;
    flex-direction: column;
    gap: 25px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.main_article_content *:not(h1,h2){
    text-align: justify;
}

.main_article_content strong{
    font-weight: 700;
}

.main_article_content .post_info{
    display: flex;
    align-items: center;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    gap: 10px;
    padding: 10px 0 20px 11px;
    margin-top: -45px;
}

.main_article_content .post_info .post_category{
    background-color:#F3F4F6;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: normal;
}

.main_article_content .title{
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
}

.main_article_content h2{
    font-size: 16px;
    font-weight: 700;
    line-height: 30px;
    margin: 30px 0;
}

.main_article_content p{
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.main_article_content .post_conclusion{
    margin: 70px 0;
}

.other_articles{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.other_articles h1{ 
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    margin-bottom: -10px;
}

.other_article{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 246px;
    height: 235px;
    border-radius: 8px;
    position: relative;
}

.other_article .fade{
    background-image: linear-gradient(180deg, rgba(165, 163, 176, 0.196) 0%, rgba(8, 2, 43, 0.56) 80%);
    width: 100%;
    height: 100%;
    border-radius: 8px;
    position: absolute;
    transition: opacity 0.5s ease; 
}

.other_article:hover .fade{
    opacity: 0.7; 
}

.other_article img{
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.other_article h3{
    color: white;
    font-size: 10px;
    font-weight: 600;
    line-height: 14px;
    text-align: center;
    letter-spacing: 0.05em;
    width: 233px;
    height: 42px;
    position: absolute;
    bottom: 0;
}

.read_also{
    display: none;
}

.blog_posts{
    display: none;
    gap: 20px;
    margin: 20px 0;
}

.blog_post{
    display: flex;
    width: 323px;
    height: 215px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.blog_post .fade{
    background-image: linear-gradient(180deg, rgba(165, 163, 176, 0.196) 0%, rgba(8, 2, 43, 0.56) 80%);
    width: 100%;
    height: 100%;
    border-radius: 8px;
    position: absolute;
    transition: opacity 0.5s ease; 
}

.blog_post:hover .fade {
    opacity: 0.7; 
}

.blog_post img{
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.blog_post .post_info{
    width: 100%;
    padding: 15px 10px;
    color: white;
    display: flex;
    align-items: center;
    gap: 40px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    position: absolute;
    bottom: 55px;
}

.blog_post .post_theme{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.blog_post .post_category{
    color: #1F2937;
    background: rgba(229, 231, 235, 1);
    padding: 4px 8px;
    border-radius: 6px;
}

.blog_post .post_category2{
    color: rgba(255, 255, 255, 1);
    background: rgba(156, 163, 175, 1);
    padding: 4px 8px;
    border-radius: 6px;
}

.blog_post h2{
    width: 100%;
    padding: 0 10px;
    color: white;
    font-size: 12px;
    font-weight: 650;
    line-height: 18px;
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
}



footer{
    background-color:#D1D5DB;
    height: 52px;
    width: 100%;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
  
.footer_container{
    display: flex;
    gap: 40px
}
  
footer a{
    font-size: 14px;
    font-weight: 500;
    color: black;
}

@media screen and (max-width: 850px) {
    section{
        min-height: 1350px;
    }

    .onglets_and_logos {
        display: none;
    }

    .linkedin_mobile{
        display: block;
    }

    .burger_button{
        display: block;
    }

    .burger_button.open{
        display: none;
    }

    .burger_close{
        display: none;
        position: absolute;
        cursor: pointer;
        right: 23px;
        top: 19px;
        width: 30px;
        z-index: 1;
    }

    .burger_close.open{
        display: block;
    }

    .burger_menu{
        position: fixed;
        background-color: white;
        right: 0;
        top: 67px;
        width: 126px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        transform: translateX(100%);
        transition: 0.3s transform ease-in-out;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
        border-end-start-radius: 5px;  
        z-index: 0;
    }

    .burger_menu::before {
        content: "";
        position: absolute;
        top: -5px;
        left: 0;
        right: 0;
        height: 5px; 
        background-color: white;
        z-index: 2;  
    }

    .burger_menu.open{
        transform: initial;
        display: flex;
    } 

    .burger_onglets{
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .burger_onglets a{
        padding: 15px 0;
        padding-left: 20px;
        color: #1F2937;
        font-size: 18px;
        font-weight: 500;
    }

    .burger_onglets a:hover{
        background-color: #f3f4f6;
    }

    .language_selector{
        width: 70%;
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 750px) {
    section{
        display: block;
        padding: 15px;
    }

    .main_article .mobile_title{
        display: block;
        font-size: 16px;
        font-weight: 700;
        line-height: 24px;
        margin-bottom: 30px;
    }    


    .main_article img{
        width: 100%; 
        height: 172px;
        object-fit: cover;
        border-radius: 8px;
    }



    .main_article_content .title{
        display: none;
    }

    .main_article_content .post_conclusion{
        margin-top: 50px;
        margin-bottom: 30px;
    }

    .other_articles{
        display: none;
    }

    .read_also{
        display: block;
        font-size: 20px;
        font-weight: 700;
    }

    .blog_posts{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media screen and (max-width: 730px) {
    footer{
        height: 90px;
        justify-content: flex-start;
    }
      
    .footer_container{
        flex-direction: column;    
        gap: 10px;
        margin-left: 30px;
    }
    
    footer a{
        font-size: 10px;
    }
}

@media screen and (max-width: 696px) {
    .blog_post{
        width: 423px;
    }
}


@media screen and (max-width: 600px) {
    section::before {
        display: block;
        position: fixed;
        background-size: 108% 50%;
        margin: 0;
        top: auto;
        left: auto;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        opacity: 0.05; 
        transform: translate(36%, 45%);
        filter: grayscale(100%);
    }
}   

@media screen and (max-width: 354px) {
    .blog_post{
        height: 185px;
    }
}
