html{
    scroll-behavior: smooth;    /* exercice vu en cours */
}
body{
    margin: 150px;
    color: #1F6FFF;
    background-color: #E5E7EB;
    line-height: 1.4;

}
h1{
    font-size: 144px;
    justify-self: center;
    margin-top: 10px;
    font-family: Wendy one;
}

.backtotop{
    position: fixed;
    right: 50px;
    bottom: 20px;
    display: none;
}
.backtotop--show{
    display: inline;
    background-color: #1F6FFF;
    color: #E5E7EB;
    border-radius: 100px;
    padding: 30px;
    text-decoration: none;
}


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: 800px;
    height: 500px;
    justify-self: center;
    margin-bottom: 70px;
    display: grid;
    margin-top: 158px;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 20px;
    z-index: 4;

    grid-template-areas: 
    "un un un dx dx dx dx dx"
    "un un un dx dx dx dx dx"
    "un un un dx dx dx dx dx"
    "tr tr tr tr tr qd qd qd"
    "tr tr tr tr tr qd qd qd"
    ;
}

.box{
    background-color: none;
    border-radius: 25px;
}
.box1{
    grid-area: un;
    background-color: #1f6dff1e;
    border: 2px solid #87affa;
    padding:45px 45px;
    font-size: 18px;
    line-height: 1.5;
}
.box1 img{
    width: 200px;
    height: auto;
    justify-self: center;
    align-content: center;
}
.box2{
    grid-area: dx;
    background-color: #1f6dff1e;
    border: 2px solid #87affa;
    padding: 0 30px;
    font-size: 18px;
    line-height: 1.5;
    font-family: jost;
    align-content: center;
}

.box3{
    grid-area: tr;
    background-color: #1f6dff1e;
    border: 2px solid #87affa;
    padding: 0 30px;
    font-size: 18px;
    font-family: jost;
    line-height: 1.5;
    align-content: center;
}
.box4{
    grid-area: qd;
    background-color: #1f6dff1e;
    border: 2px solid #87affa;
    padding: 0 65px ;
    align-content: center;
}
.box4 img{
    width: 150px;
    height: auto;
    border-radius: 500px;
}
.grille__title{
    font-size: 36px;
    justify-self: center;
    margin-bottom: -100px;
    margin-top: 70px;
    font-family: Wendy one;
}




.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;
  }

  .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: 700px;
    height: 500px;
    justify-self: center;
    margin-bottom: 70px;
    display: grid;
    margin-top: 158px;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 20px;
    z-index: 4;

    grid-template-areas: 
    "un un un dx dx dx dx dx"
    "un un un dx dx dx dx dx"
    "un un un dx dx dx dx dx"
    "tr tr tr tr tr qd qd qd"
    "tr tr tr tr tr qd qd qd"
    ;
   }
   .box1{
    padding: 46px 25px;
   }
   .box4{
    padding: 0 50px;
   }
   
}