html {
    scroll-behavior: smooth;
}
body{
    font-family: sans-serif;
    margin: 0;
    line-height: 140%;
    font-size: 24px;
}
/*---------------nav----------------*/
nav{
    display: flex;
    justify-content: space-between;
    padding: 12px 74px;
    border-bottom: 3px solid #000;
}
nav :first-child{
    justify-self: flex-start;
}
.liste__nav{
    display: flex;
    list-style: none;
}
.el__nav{
    margin: 0px 24px;
}
a{
    text-decoration: none;
}
.a__nav{
    color: black;
}

/*---------------titre---------------*/
.titre{
    font-family: "Bakbak One", sans-serif;
    line-height: 150%;
    font-style: normal;
}
.titre__1{
    font-size: 74px;
    align-self: center;
    margin-bottom: 74px;
}
.titre__1--variation{
    font-size: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 180px 0px;
    color: white;
    margin: 0;
}
.titre__1--credits{
    font-size: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 270px 0px;
    color: white;
    margin: 0;
}
.titre__2{
    font-size: 51px;
    margin: 102px 0px 51px 0px;
}

.titre__2--accueil{
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
/*-------------accueil------------*/
.main__accueil{
    margin: 0;
}
.accueil{
    border-bottom: 3px solid #000;
    background-image: url(images/fondtitre1.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.grid__travaux{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    grid-auto-rows: 150px;
    grid-auto-flow: dense;
    gap: 24px;
    list-style: none;
    max-width: calc(5 * 290px);
    margin: 51px 72px 102px 72px;
}

.grid__travaux li{
    width: 100%;
    height: 100%;
}

.img__accueil{
    display: block;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.img__accueil--hello{
    background-image: url(images/helloworld/miniaturehello.webp);
}
.img__accueil--avenir{
    background-image: url(images/avenirsansfaim/miniatureavenir.webp);
}
.img__accueil--redesign{
    background-image: url(images/redesign/miniatureredesign.webp);
}
.img__accueil--somenews{
    background-image: url(images/somenews/somenews.webp);
}
.li__somenews{
    grid-column: span 2;
    grid-row: span 2;
}
.img__accueil--codekit{
    background-image: url(images/codekit/miniaturecodekit.webp);
}
.img__accueil--janus{
    background-image: url(images/janus/miniaturejanus.webp);
}
.li__janus{
    grid-column: span 2;
    grid-row: span 2;
}

/*-------------credits------------*/
.grid__credits{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 24px;
    list-style: none;
    max-width: calc(5 * 290px);
    margin: 51px 72px 102px 72px;
}
.grid__credits li{
    width: 100%;
    height: 100%;
}
.img__accueil--spellboy{
    background-image: url(images/credits/spellboy.png);
}
.img__accueil--w3c{
    background-image: url(images/credits/w3c.webp);
}
.img__accueil--chat{
    background-image: url(images/credits/chatgpt.webp);
}
/*--------------contenu--------------*/
.presentation{
    margin-bottom: 148px;
}
.presentation__codekit{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.presentation__texte{
    position: absolute;
    right: 74px;
    top: 148px;
    max-width: 50ch;
    background-color: white;
    border-radius: 8px;
    padding: 24px;
}
.presentation__texte--contraste{
    background-color: #191834;
    color: white;
}
.presentation__texte--codekit{
    display: block;
    max-width: 55ch;
}
.miniature{
    filter: blur(3px);
    width: 100%;
    height: 100%;
    opacity: 85%;
}
main{
    margin: 148px 74px;
}
.site__video{
    display: flex;
    flex-direction: column;
}
.video{
    align-self: center;
    width: 60%;
    height: 60%;
    margin-bottom: 74px;
}
.videocodekit{
    width: 100%;
    height: 100%;
    margin-bottom: 74px;
}
.videocodekit--burger{
    width: 60%;
    height: 60%;
    margin: 0;
}
.contenu{
    max-width: 60ch;
    margin: 0% auto;
}
.légende{
    font-size: 20px;
    display: block;
    font-weight:300;
    font-style: italic;
    padding-left: 20px;
}
.quotelien{
    color: blue;
}
/*---------------btn--------------*/
.nav__travaux{
    margin: 102px 74px;
    display: flex;
    justify-content: space-between;
}


.btn__accueil{
    position: absolute;
    top: 24px;
    left: 74px;
}
.btn__accueil--codekit{
    position: static;
    align-self: flex-start; 
    margin: 24px 74px;
}
.btn__acceder{
    align-self: end;
}
.a__btn{
    text-decoration: none;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 230px;
    background-color: #191834;
    border-radius: 4px;
    padding: 8px 12px;
    transition: background-color 0.3s;
}
.a__btn:hover{
    background-color: #2B2C68;
}
.btn__span{
    font-size: 24px;
}
/*---------------slide-----------------*/
.slider__inspirations{
    width: 60ch;
    margin: 0px auto;
}
.slider__list{
    width: 100%;
    padding: 0px 51px;
    margin: 0;
}
.slider__el{
    display: none;
}
.slider__el img{
    width: 100%;
    height: auto;
}
.slider__el--show{
    display: flex;
    justify-content: center;
    width: 100%;
}
.slide__misepage{
    display: flex;
    align-items: center;
}
.slider__btn{
    display: flex;
    align-items: center;
    width: 48px;  
    height: 48px;
    padding: 0;
    background-color: transparent;
    border-style: none;
}
.slider__btn p{
    text-indent: 100%;
    overflow: hidden;
    white-space: nowrap;
}
.span__btn{
    position: absolute;
    color: transparent;
}
/*-----------------footer-------------------*/

 footer {
    height: 460px;
    background-image: url(images/footer.svg);
    background-position: -200px center;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0px 74px;
    color: white;
}
footer a{
    color: white;
}


@media(max-width:800px){
    body{
        font-size: 20px;
    }
    main{
        margin: 84px 42px;
    }
    /*---------------titre---------------*/
    .titre{
        line-height: 120%;
    }
    .titre__1{
        font-size: 62px;
        align-self: center;
        margin-bottom: 62px;
    }
    .titre__1--variation{
        font-size: 62px;
        margin: 62px 42px;
    }
    .titre__1--tel{
        font-size: 42px;
    }
    .titre__2{
        font-size: 42px;
        margin: 84px 42px 42px 42px;
    }
    /*--------------Accueil------------*/
    .accueil{
        background-image: url(images/fondtitretel.svg);
    }
    .grid__travaux{
        grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
        grid-auto-rows: 190px;
        margin: 42px 42px 84px 42px;
    }
    .grid__credits{
        margin: 42px 42px 84px 42px;
    }
    .li__somenews{
        grid-column: span 1;
        grid-row: span 1;
    }
    .li__janus{
        grid-column: span 1;
        grid-row: span 1;
    }
    /*-------------contenu-------------*/
    .presentation{
        margin-bottom: 124px;
    }
    .presentation__texte{
        font-size: 24px;
        display: block;
        position: static;
        max-width: 60ch;
        background-color: transparent;
        padding: 0px;
        margin: 62px 42px;
    }.presentation__texte--contraste{
        color: black;
    }
    .videohello{
        width: 100%;
        height: 100%;
        margin-bottom: 62px;
    }
    .légende{
        font-size: 17px;
        padding-left: 17px;
    }
    /*---------------btn--------------*/
    .btn__accueil{
        top: 20px;
        left: 20px;
    }
    .a__btn{
        width: 170px;
    }
    .btn__span{
        font-size: 20px;
    }
    .nav__travaux{
        margin: 84px 20px;
    }
    .btn__suivant{
        background-color: transparent;
        background-image: url(images/next.svg);
        background-repeat:no-repeat;  
        width: 45px;
        height: 45px;
    }
    .btn__suivant span{
        position: absolute;
        clip: rect(0, 0, 0, 0);
    }
    .btn__suivant:hover{
        background-color: transparent;
    }
    .btn__previous{
        background-color: transparent;
        background-image: url(images/next.svg);
        background-repeat:no-repeat;  
        width: 45px;
        height: 45px;
        transform: scaleX(-1);
    }
    .btn__previous span{
        position: absolute;
        clip: rect(0, 0, 0, 0);
    }
    .btn__previous:hover{
        background-color: transparent;
    }
    /*--------------slider-----------*/
    .slider__inspirations{
        width: auto;
    }
    .slider__list{
        padding: 0px 20px;
    }
    .slider__el img{
        width: 100%;
        height: auto;
    }
    .slider__btn{
        width: 38px;  
        height: 38px;
    }
    /*-----------------footer-------------------*/
    footer {
        padding: 0px 62px;
    }
}