/* css de mon projet helloworld */
body{
  color: #2E2C2F;
  background-color: #BACDB0;
  margin: 0;
  line-height: 1.4;
}
.backtotop{
    position: fixed;
    right: 50px;
    bottom: 20px;
    display: none;
    font-family: jost;
}
.backtotop--show{
    display: inline;
    background-color: #242424;
    color: #e9e9e9;
    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;    
  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;
}
.menu__list li a{
  margin-left: 44px;
  white-space: nowrap;
  font-size: 40px;
  font-family: jost;
  color: #e9e9e9;
}
.menu ul li a{
  text-decoration: none;
}
.menu__logo{
  margin-left: 150px;
}
.menu__logo a {
  color: #e9e9e9;
  text-decoration: none;
  font-family: Wendy One;
  font-size: 60px;
}



.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;
    gap: 200px;
    justify-content: center;
    align-items: center;
    color: #242424;
    font-size: 40px;
    text-decoration: none;

    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: auto;
    height: auto;
    font-family: wendy one;
}
.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;
}
li div a{
  text-decoration: none;
  color: #e9e9e9;
}



main, footer{
  font-family: "League Spartan", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
  text-indent: 30px;
  font-size: 17px;
  line-height: 1.333;
  max-width: 65ch;  
  margin: 0 auto;
}

main h1{
  font-family: "Condiment", static;
  font-weight: 400;
  font-style: normal;
  font-size: 135px;
  text-indent: 0;
  margin: 30px;
  margin-top: 100px;
}

main img{
    width: 630px;
    height: auto;
}
main h2{
  font-family: "Rubik Mono One", monospace;
  font-weight: 700;
  font-style: normal;
  font-size: 23px;
  text-indent: 0;
  line-height: 1.5;
}
.sec .tert .quad{
  margin-top: 45px;
}

main a{
    color: #F3E8EE;
}


footer{
    height: 200px;
    width: 100vw;
    max-width: none;
    margin: 0;
    margin-bottom: -150px;
    display: flex;
    justify-content: center;
    background-color: #729b79;
    color: #2E2C2F;
    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%;
  }
}