

html{
    scroll-behavior: smooth;
}

body{
    font-family: "Geist", sans-serif;
    margin: 0;
    line-height: 1.4;
    font-size: 18px;
    background-color:#121214 ;
    padding: 0;
    user-select: none;
    color: white;

}


nav{
    mix-blend-mode: difference;
    position: fixed;
    top: 50px;
    left: 0;
}

a{
    color: white;
}

.backtomain{


    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed; 
    height:50px;   
    width: 50px ;
    left: 50px;
    top: 5%;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    mix-blend-mode:difference;


    & svg{
        top: 0;
        left: 0;
        position: absolute;
        height: 24px;
        width: 24px;
    }
}

header{

    margin-left: auto;
    margin-right: auto;
    margin: 10vh 0;
    width: 1300px;
    justify-self: center;
    


}



.header__imgcontain{

    background-color: white;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    margin: 0;
}

.header__img{
    width: auto;
    height: 660px;

}


.header__text{
    display: flex;
    flex-direction: row;
    align-content: baseline;
    justify-content: space-between;
    width: 100%;


    h2{
        width: 50%;
    }

    & p {
        width: 100%;
    }
}

.header__link{
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    height: fit-content;
    position:relative;
    box-sizing: border-box;
    padding: 10px 0;
    text-decoration: none;
    margin-bottom: 5px;
    width: 30%;
    border-bottom: 1px rgba(255, 255, 255, 0.6) solid;
    z-index: 1;
    overflow: hidden;


    
    & svg{
        transition: all 0.6s;
        transform: rotate(0deg);
        height: 24px;


    }

}


.header__link:hover{

        & svg{
        
        transform: rotate(15deg);


    }
}

.header__link:before{
    position:absolute;
    bottom: 0;
    right: 0;
    z-index: -1;
    content: "";
    width: 100%;
    height: 1px;
    transform: scaleX(0%);
    background-color: white;
    transition: all .4s;
    transform-origin: left ;
    
}

.header__link:hover:before{

    transform: ScaleX(100%);

    
}

.footer__credit{
    height: fit-content;
    align-self: flex-end;
}


.upper{
    text-transform: uppercase;
}



.backtotop{
    z-index: 3;
    opacity: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    border: 3px white solid;
    height:50px;   
    width: 50px ;
    border-radius: 100px;
    right: 47vw;
    bottom: 5%;
    text-indent: 100%;
    overflow: hidden;
    transition:  ease;
    mix-blend-mode:difference;
    transform: scale(100%);
    transition: right .8s, transform .3s, background-color 0.3s,  opacity .3s;
    transform-origin: center ;
    cursor:default;

    & svg{
        transition: all .6s;
        transform: rotate(0);
        position: absolute;
        height: 24px;
        width: 24px;
        display: block;
    }
}


.backtotop--active{
    opacity: 100%;
    cursor:pointer;
    right: 2% ;

    & svg{
            transform: rotate(180deg);
    }
}




.backtotop--active:hover{
    transform: scale(120%);
    background-color: white;
        & svg{
        fill: black;
        transition: fill 0.3s ease;
    }
}

section{
    margin-left: auto;
    margin-right: auto;
    margin: 20vh 0;
    width: 1300px;
    justify-self: center;
}



h2{
    font-size: 76px;
    font-weight: 600;
    margin: 0;}





.description{
    box-sizing: border-box;
    margin: 10vh 0vw ;
    padding-right: 150px;
}



p{
    font-size: 18px;
}


.description__bloc{

    display: flex;
    margin: 75px 0;
    justify-content: space-between;
    gap: 40px;
    

    & h3{
        text-transform: uppercase;
    }
    

    & p{


        margin: 0;
        max-width: 400px;
    }
}

.description__bloc--column{
    flex-direction: column;
    gap: 20px;

    & p{
        max-width: 800px;
    }
}


.description__bloc--pg2{
    width: 70%;
    display: flex;
    gap: 80px;
    justify-content: flex-start;
}

.header{
    margin-left: auto;
    margin-right: auto;
    margin: 10vh 0;
    width: 1400px;
    justify-self: center;
    display: grid;
    grid-template-columns:  1fr ;
    grid-template-rows: repeat(3, 250px) 20px ;

}

.header--credit{
    grid-template-columns:  1400px 20px  ;
    grid-template-rows: repeat(2, 300px) ;
}

.titre__header{
    margin: 0;
    height: 300px;

    font-size: 235px;
    line-height: 0.9;
    font-weight: 700;

}

.titre__header--1{
    grid-column:  1 / 3   ;
}


.titre__header--3{
    grid-column:1;
    grid-row: 2;
}
.titre__header--4{
    grid-column:1 / -1;
    grid-row: 3 ;
}
.titre__header--crédit{
    height: fit-content;
    grid-column: 1;
    grid-row: 4/5;
    font-size: 16px;
    margin-left: 20px;
    font-weight: 300;
}



.navprojets{
    
    & p{
        margin: 0;
    }
}

.navprojetblocs{
    margin: 30px 0;
    display: grid;
    grid-template-columns:  repeat(5, 1fr)  ;
    grid-template-rows: repeat(4, 150px) ;
    gap: 20px;


}


.navprojet__element{
    text-decoration: none;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    background-color:    rgb(56, 56, 56);
    border-radius: 16px;
    justify-content: end;
    padding: 10px 16px;

    gap:12px ;
    overflow: hidden;
    cursor: pointer;
    & h3{
        transform: translateY(55px);
        transition: all 0.3s ease;
    }
}


.navprojet__element:hover{


    & h3{
        transition: all 0.3s ease;
        transform: translateY(0px);
    }

    & .nav__infos{
        
        opacity: 1;
        transition: all 0.3s ease;
        transform: translateY(0px);
    }


}


.nav__infos{

    display: flex;
    opacity: 0;
    transform: translateY(100px);
    justify-content: space-between;
    height: fit-content;

    border-top: 1px rgba(255, 255, 255, 0.6) solid;
    padding: 12px 0;

    transition: all 0.6s ease;
    
    & p{
        display: inline-block;
        font-size: 16px;
        margin: 0;
    }
}



.nav__filter {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Noir avec 50% d'opacité */
}

.navprojet__element--1{
    background-image: url(img/helloworld_img.webp);
    grid-column: 1 / 5;
}




.navprojet__element--2{
    background-image: url(img/rentacar_img.webp);
    grid-column: 2 / 4;
    grid-row: 2;
}

.navprojet__element--3{
    
    background-image: url(img/janus_img.webp);
    grid-column: 4 / -1;
    grid-row: 2 / 4;
}

.navprojet__element--4{
    background-image: url(img/somenews_img.webp);
    grid-column: 1 / 4;
    grid-row: 3;
}


.navprojet__element--5{
    background-image: url(img/codekit_img.webp);
    grid-column: 1 / 3;
    grid-row: 4;
}


.cards{
    display: flex;
    flex-direction: column;
    gap: 25px ;
}

.card{
    overflow: hidden;
    position:relative;
    background-size: cover;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    border-radius: 16px;
    padding: 20px;

    height: 300px;
    justify-content: end;
    gap:12px ;

    & img{
        position : absolute;
        width: 120%;
        height: auto;
        top: 0;
        left: 0;
        z-index: -1;

    }
    
    & *{
        z-index: 0;
    }
}


.card__infos{
    display: flex;
    justify-content: space-between;
    height: fit-content;

    border-top: 1px rgba(255, 255, 255, 0.6) solid;
    padding: 12px 0;

    & p{
        display: inline-block;
        margin: 0;
    }
}


.seeprojectbtn{
    display: flex;
    gap: 20px;
    align-items:center;
    width: fit-content;
    box-sizing: border-box;
    position:relative;
    padding: 10px 20px;
    border: solid 1px white;
    border-radius: 8px;
    font-size: 14px;
    height: fit-content;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    overflow: hidden;
    z-index: 1;
    transition: all .2s;

}


.seeprojectbtn::before{
    content: "";
    position:absolute;
    left: 0;
    top: 0;
    background-color: aliceblue;
    width: 100%;
    height: 100%;
    transform: translateX(-100%);
    transition: all .4s;
    z-index: -1;

}

.seeprojectbtn:hover{
    color: rgb(56, 56, 56);
}

.seeprojectbtn:hover::before{

    transform: translateX(0);

}



.seeprojectbtn--pg2:hover{
    & svg{    fill:rgb(0, 0, 0);}

}

h3{
    margin: 0;
    font-size: 29px;
    font-weight: 500;

}



















/* footer --------------------------------------*/

footer{
    box-sizing: border-box;
    border-top: 1px solid white;
    padding: 100px 10vw;
    width: 100%;
    margin: 0;
    & *{
        text-transform: uppercase;
        font-size: 14px;
        margin: 0;
    }
}

.footer__container{
    display: flex;
    justify-content: space-between;
}

.footer__links{
    display: flex;
    width: 40%;
    justify-content: space-between;
}

.footer__link{
    position:relative;
    box-sizing: border-box;
    padding: 10px 0;
    text-decoration: none;
    margin-bottom: 5px;
    width: 180px;
    border-bottom: 1px rgba(255, 255, 255, 0.6) solid;
    z-index: 1;
    overflow: hidden;
}


.footer__link:before{
    position:absolute;
    bottom: 0;
    right: 0;
    z-index: -1;
    content: "";
    width: 100%;
    height: 1px;
    transform: scaleX(0%);
    background-color: white;
    transition: all .4s;
    transform-origin: left ;
    
}

.footer__link:hover:before{

    transform: ScaleX(100%);

    
}

.footer__credit{
    height: fit-content;
    align-self: flex-end;
}




@media (max-width: 1420px) {

    header{
        width: 100%;
        padding-right: 100px ;
        padding-left: 100px ;
        box-sizing: border-box;
        height: auto;


    }



    .header__img{
        height: 100%;
        width: auto;
    }
    .header__imgcontain{
        
        width: 100%;
        height: 500px;
        margin-bottom: 20px;
    }


    

    section{

        width: 100%;
        padding-right: 100px ;
        padding-left: 100px ;
        box-sizing: border-box;
        
    }


    .header{

        box-sizing: border-box;
        width: 100%;
        padding-right: 100px ;
        padding-left: 100px ;
        
        grid-template-columns:  1fr   ;
        grid-template-rows: repeat(3, 210px) 20px ;

    }


    .header--credit{
        grid-template-columns:  1400px  ;
        grid-template-rows: repeat(2, 200px) ;
    }   

    .titre__header{

        font-size: 200px;
    }

    .titre__header--crédit{
        margin-left: 10px;
        font-size: 16px;

    }


    .backtotop{

        bottom: 30%;

        }


    .card{

        height: 300px;
    }

    footer{
        width: 100%;
        box-sizing: border-box;
        margin: 0 0;

        padding: 100px 150px;

    }


    .footer__links{
        width: 50%;
    }

    .footer__link{
        width: 125px;
    }


}


@media (max-width: 1024px) {


    .header{
        grid-template-columns: 1fr ;
        grid-template-rows: repeat(3, 165px) 20px ;

    }

    .header--credit{
        grid-template-columns:  1400px   ;
        grid-template-rows: repeat(2, 165px) ;
}

     body{
        font-size: 16px;
    }


    h2{
        font-size: 50px;
    }

    h3{
    font-size: 23px; 
    }


    p{
    font-size: 16px;
    }


    .titre__header{

        font-size: 154px;

    }

    .titre__header--crédit{
        margin-left: 10px;
        font-size: 16px;

    }






    .navprojet__element {

        & h3{
            transform: translateY(0px);
            transition: all 0.3s ease;
        }


        & .nav__infos{
            
            opacity: 1;
            transition: all 0.3s ease;
            transform: translateY(0px);
        }

    }
    
    .navprojet__element--1{
        grid-column: 1 / -1;
    }




    .navprojet__element--2{
        grid-column: 1 / 4;
        grid-row: 2;
    }

    .navprojet__element--3{
        grid-column: 4 / -1;
        grid-row: 2 / 4;
    }

    .navprojet__element--4{
        grid-column: 1 / 4;
        grid-row: 3;
    }


    .navprojet__element--5{
        grid-column: 1 / -1;
        grid-row: 4;
    }


    .backtotop{
        
        display: none;

    }



    footer{
        width: 100%;
        box-sizing: border-box;
        margin: 0 0;

        padding: 100px 50px;

    }


}



@media (max-width: 860px) {


    header{
        width: 100%;
        padding-right: 30px ;
        padding-left: 30px ;
        box-sizing: border-box;
        height: auto;


    }

    .header__imgcontain{
        width: 100%;
        height: 300px;
        margin-bottom: 20px;
    }

    h1{
                font-size: 120px;
    }

    .header__text{
        flex-direction: column;
    }

    .header__link{
        width: 100%;

    }

    .description__bloc{
        gap: 10px;
        flex-direction: column;
    }

    section{
        width: 100%;
        padding-right: 30px ;
        padding-left: 30px ;
        
    }

        

    .header{
        margin-top: 10vh;
        width: 100%;
        padding: 0 30px;
        display: grid;
        grid-template-columns:  1fr  ;
        grid-template-rows: repeat(3, 105px) 25px ;

    }

    .titre__header--4{
        grid-row: 3 ;
    }
    .titre__header--crédit{
        grid-row: -1 ;
    }


    .header--credit{
        grid-template-columns:  1400px  ;
        grid-template-rows: repeat(2, 115px) ;
    }




    .titre__header{
        font-size: 100px;
    }



    h2{
        font-size: 38px;
    }



    h3{
    font-size: 21px; 
    }



    .titre__header--1{
        grid-row:  1   ;
    }

    .titre__header--3{
        grid-column:1;
        grid-row: 2;
    }
    .titre__header--4{
        grid-column:1 / -1;
        grid-row: 3 ;
    }
    .titre__header--crédit{
        grid-column: 1;
        grid-row: 4 ;
        font-size: 16px;
        margin-left: 8px;
        font-weight: 300;
    }


    .navprojetblocs{
        margin: 30px 0;
        display: grid;
        grid-template-columns:  repeat(6, 1fr)  ;
        grid-template-rows: repeat(5, 125px) ;
        gap: 20px;


    }
    .navprojet__element--1{
        grid-column: 1 / 4;
        grid-row: 1 / 3;
    }
    .navprojet__element--2{
        grid-column: 4 / -1;
        grid-row: 1 / 3;
    }
    .navprojet__element--3{

        grid-column: 1 / 4;
        grid-row: 3 / 5;
    }
    .navprojet__element--4{
        grid-column: 4 / -1;
        grid-row: 3 / 5;
    }
    .navprojet__element--5{
        grid-column: 1 / -1;
        grid-row: 5 / 6;
    }
    .card{

        height: 275px;

        & img{
            width: 800px;
        }
    }
    .card__infos{
        display: flex;
        justify-content: space-between;
        flex-direction: column;
        gap: 25px;

        & a{
            text-align: center;
            width: 100%;
        }
    }
    footer{
            padding: 50px 50px;
    }

    .footer__container{
        flex-direction: column-reverse;
        gap: 15px;
    }

    .footer__links{
        display: flex;
        width: 100%;
        justify-content: space-between;
    }

    .footer__credit{
        width: 100%;
    }

    .footer__link{
        width: 40%;

    }

}
