html{
    scroll-behavior: smooth;    /* exercice vu en cours */
}
body{
    background-color: #FFFADD;
    margin: 0 200px;
    font-size: 17px;
    color: #184524;
    line-height: 1.4;
    font-family: "Amaranth", sans-serif;
    font-weight: 400;
    font-style: normal;
}
h1{
    justify-self: center;
    font-size: 136px;
}

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

ul li{
    list-style: none;
    display: flex;
    text-decoration: none;
}
nav{
    height: 100px;
    margin-left: -200px;
    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{
    margin-left: 44px;
    white-space: nowrap;
    font-family: jost;
}
.menu ul li a{
    color: #e9e9e9;
}
.menu__logo{
    margin-left: 150px;
    font-size: 60px;
}
.menu__logo a {
    color: #e9e9e9;
    text-decoration: none;
    font-family: Wendy One;
}

.BT__txt{
    width: 586px;
    display: flex;
    flex-direction: column;    /* source keelan */
    margin-right: auto;
    
}
.BT img{
    justify-self: flex-end;
    height: auto;
    width: 338px;
}
.BT{
    display: flex;
    align-items: center;
    margin-bottom: 100px;
}

.diff__txt{
    width: 585px;
    display: flex;
    flex-direction: column;    /* source keelan */
    margin-left: auto;
    justify-self: flex-end;
    
}
.diff img{
    justify-self: flex-start;
    height: auto;
    width: 338px;
    margin-right: auto;
}
.diff{
    display: flex;
    align-items: center;
    margin-bottom: 100px;
}

.oubli__txt{
    width: 585px;
    display: flex;
    flex-direction: column;    /* source keelan */
    margin-right: auto;
    
}
.oubli img{
    justify-self: flex-end;
    height: auto;
    width: 338px;
}
.oubli{
    display: flex;
    align-items: center;
    margin-bottom: 100px;
}




.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;
    display: flex;
    justify-content: center;
    background-color: #184524;
    color: #FFFADD;
    align-items: center;
    text-decoration: none;
    text-align: center;
    font-family: jost;
}
ul li{
    list-style: none;
    display: flex;
    text-decoration: none;
    color: #FFFADD;
    justify-content: center;
}
ul li a{
    list-style: none;
    display: flex;
    text-decoration: none;
    color: #FFFADD;
    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%;
  }
  .BT{
    gap: 50px;
  }
  .diff{
    gap: 50px;
  }
  .oubli{
    gap: 50px;
  }
}

@media(max-width:1024px){
    h1{
        font-size: 119px;
    }
    .BT{
        gap: 50px;
    }
    .diff{
        gap: 50px;
    }
    .oubli{
        gap: 50px;
    }
}