html{
    scroll-behavior: smooth;    /* exercice vu en cours */
}
body{
    margin: 150px;
    color: #242424;
    background-image: url(natural-textured-surface_23-2151899505.avif);
    background-size: cover;
    background-repeat: repeat-y;
    line-height: 1.4;

}
.backtotop{
    position: fixed;
    right: 50px;
    bottom: 20px;
    display: none;
}
.backtotop--show{
    display: inline;
    background-color: #242424;
    color: #e9e9e9;
    border-radius: 100px;
    padding: 30px;
    text-decoration: none;
    font-family: jost;
}
h1{
    font-family: plaster;
    font-size: 120px;
    justify-self: center;
    margin-bottom: -90px;
}


ul li{
    list-style: none;
    display: flex;
    text-decoration: none;
}
nav{
    height: 100px;
    background-color: #242424;
    display: flex; 
    margin-left: -150px;
    margin-top: -150px;    
    z-index: 10;
    width: 100vw;
    justify-content: space-between;
    align-items: center;
    color: #e9e9e9;
}
.menu__list{
    display: flex;
    margin-right: 150px;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
    font-size: 40px;
    font-family: jost;
}
.menu__list li{
    margin-left: 44px;
    white-space: nowrap;
}
.menu__logo{
    margin-left: 150px;
    font-size: 60px;
    font-family: Wendy One;
}
.menu__logo a {
    color: #e9e9e9;
    text-decoration: none;
}

.container{
    width: 1140px;
    height: 1200px;
    display: grid;
    justify-self: center;
    background-color: #d8d8d866;
    border: 2px solid #f7f7f7;
    border-radius: 50px;
    padding: 15px;
    margin-top: 158px;
    margin-bottom: 70px;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 20px;
    z-index: 4;

    grid-template-areas: 
    "st st st st st"
    "un un un dx dx"
    "qt qt tr tr tr"
    "qt qt tr tr tr"
    "hu sx sx sx ne"
    "cq cq cq cq cq"
    ;
}
.box{
    background-color: #d8d8d866;
    border: 2px solid #f7f7f7;
    border-radius: 25px;
    padding:45px;
    font-size: 18px;
    line-height: 1.5;
    align-items: center;
}
.box1{
    grid-area: un;
    font-family: ysabeau;
    font-size: 20px;
    line-height: 1.6;
    color: #242424;
}
.box2{
    grid-area: dx;
    padding: 15px;
}
.box2 img{
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    border-radius: 25px;
}
.box3{
    grid-area: tr;
    font-family: ysabeau;
    font-size: 20px;
    line-height: 1.6;
    color: #242424;
    align-self: center;
}
.box4{
    grid-area: qt;
    padding: 15px;
}
.box4 img{
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    border-radius: 25px;
}
.box5{
    grid-area: cq;
    font-family: ysabeau;
    font-size: 20px;
    line-height: 1.6;
    color: #242424;
}
.box6{
    grid-area: sx;
    font-family: ysabeau;
    font-size: 20px;
    line-height: 1.6;
    color: #242424;
    align-content: center;
}
.box7{
    grid-area: st;
    justify-items: center;
    font-family: plaster;
    font-size: 40px;
    background-color: #e9e9e900;
    border-color: #e9e9e900;
    padding: 0;
}
.box7 h2{
    margin: 0;
    align-self: center;
}
.box8{
    grid-area: hu;
    padding: 5px;
    padding-top: 70px;
}
.box8 img{
    width: 100%;
    height: auto;
    object-fit: fill;
    display: block;
    border-radius: 25px;
}
.box9{
    grid-area: ne;
}
.box9 img{
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    border-radius: 25px;
}




.slider{
    margin: 50px;
    height: 60vh;
    color: #242424;
}
.slider__list{
    list-style: none;
    padding: 0;
    margin: 0;

    width: 100%;
    height: 60vh;
    overflow: hidden;
    position: relative;
}
.slider__el{
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #242424;
    font-size: 40px;

    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    pointer-events: none;

    > :first-child{
        margin-right: -5%;
        opacity: 0;
        transform: translateX(10vw);
        transition: opacity .4s, transform .4s;    
    }
    
    > :last-child{
        margin-left: -5%;
        opacity: 0;
        transform: translateX(-10vw);
        transition: opacity .4s, transform .4s;
    }
}
.slider__el--show{
    pointer-events: all;

    > :first-child{
        margin-right: -5%;
        opacity: 1;
        transform: translateX(0);
    }
    
    > :last-child{
        margin-left: -5%;
        opacity: 1;
        transform: translateX(0);
    }
}
.slider__content{
    background-color: #242424;
    padding: 15px;
    z-index: 1;
    width: 45%;
    height: auto;
}
.slider__content a{
    color: #e9e9e9;
    font-family: wendy one;
    font-size: 40px;
}
.sider__img{
    max-width: 100%;
    height: auto;
    width: 60%;
}
.slider__btn button{
    cursor: pointer;
}
.slider__control{
    display: flex;
    justify-content: center;
    gap: 60px;
}




footer{
    height: 200px;
    margin: 0 -200px;
    margin-bottom: -150px;
    display: flex;
    justify-content: center;
    background-color: #242424;
    color: #e9e9e9;
    align-items: center;
    text-decoration: none;
    text-align: center;
    font-family: jost;
}
ul li{
    list-style: none;
    display: flex;
    text-decoration: none;
    color: #e9e9e9;
    justify-content: center;
}
ul li a{
    list-style: none;
    display: flex;
    text-decoration: none;
    color: #e9e9e9;
    justify-content: center;
}



@media (max-width:800px){
    html{
        scroll-behavior: smooth;    /* exercice vu en cours */
    }
    body{
       margin: 20px;
    }
    nav{
      flex-direction: column;
      height: auto;
      padding: 20px 0;
      margin: -20px;
    }

    .menu__logo{
        margin-left: 0;
        font-size: 40px;
    }
    h1{
        margin-bottom: 30px;
    }

  .menu__list{
        margin-right: 0;
        font-size: 24px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        margin: 20px;
        transform: translateX(-24px);
    }
  .title{
        font-size: 40px;
        justify-self: center;
    }
    .slider img{
        width: 85%;
    }
    .container{
        width: auto;
        height: 100%;
        margin-top: 60px;
        padding: 15px;
        grid-template-columns: repeat(3,1fr);
        grid-template-rows: auto;
        grid-template-areas:
            "st st st"
            "un un dx"
            "tr qt cq"
            "tr sx cq"
            "ne sx cq"
            "ne hu hu"
            ;
    }
    .box{
        padding: 20px;
        font-size: 16px;
    }

    .box7{
        font-size: 28px;
    }
    .box3{
        height: 100%;
        align-content: center;
    }
    .box5{
        align-content: center;
    }

}

@media(max-width:1024px){

h1{
    margin-bottom: 50px;
}
    .container{
        width: auto;
        height: 100%;
        margin-top: 60px;
        padding: 15px;
        grid-template-columns: repeat(3,1fr);
        grid-template-rows: auto;
        grid-template-areas:
            "st st st"
            "un un dx"
            "tr qt cq"
            "tr sx cq"
            "ne sx cq"
            "ne hu hu"
            ;
    }
    .box{
        padding: 20px;
        font-size: 16px;
    }

    .box7{
        font-size: 28px;
    }
    .box3{
        height: 100%;
        align-content: center;
    }
    .box5{
        align-content: center;
    }
}