@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap");
/**** Reset ****/

*, 
*::after,
*::before  {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
    list-style-type: none;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
}

/**** Variables css ****/

:root {
    --container: 144rem;
    --m-auto: 0 auto;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-dark: rgba(255, 255, 255, 0.5);
    --active-thumb: #ffcc00;
    --dark: #0d0427;
}

/**** Style général de la page ****/

html {
    font-size: 62.5%;
}

body {
    width: 100%;
    min-height: 100vh;
    font-size: 1.6rem;
}

.container {
    max-width: var(--container);
    margin: var(--m-auto);
    padding: 0 2rem;
}

.text-secondary {
    color: var(--text-dark);
}

#hero {
    width: 100%;
    min-height: 100vh;
    background: url("img/slide-1.png") no-repeat top/cover;
    position: relative;
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 8rem;
}

.nav__menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__list {
    display: inline-flex;
    margin: 0 0.2rem;
}

.nav__link {
    color: var(--text-light);
    padding: 1rem;
    transition: color 0.3s ease-in-out,
                border-radius 0.3s ease-in-out,
                background-color 0.3s ease-in-out;
}

.nav__link:hover {
    color: var(--dark);
    background-color: var(--active-thumb);
    border-radius: 5px;
}

.nav__link.img {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__content {
    padding-top: 20rem;
}
  
.title {
    color: var(--text-light);
    font-size: 7rem;
    font-weight: 700;
    padding-bottom: 2rem;
}
  
.actions {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}
  
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}
  
.slider__controler {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--dark);
    display: flex;
}
  
.slider__thumb {
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    position: relative;
}
  
.slider__thumb--left h2 {
    font-size: 4rem;
    font-weight: 500;
}
  
.thumb__title {
    font-size: 2rem;
}
  
.thumb__subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-dark); 
}
  
.slider__thumb::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 0;
    z-index: 1;
}
  
.slider__thumb.active::before {
    width: 100%;
    height: 0.1rem;
    background-color: var(--active-thumb);
    transition: width 6s ease-in-out;
}

.slider__thumb:not(:first-child) {
    border-left: 0.1rem solid var(--text-dark);
}

.slider__thumb.active {
    color: var(--text-light);
}

/**** Responsive design ****/

@media screen and (max-width: 768px) { 
    .title {
      font-size: 5rem;
      line-height: 6rem;
    }

    .navigation {
        width: 100%;
    }

    .menu__toggle {
      cursor: pointer;
      display: block;
      margin-left: auto;
    }

    .menu__toggle img {
        width: 3rem;
    }
    
    .nav__menu {
        display: none;
    }
    
    .nav__menu.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        text-align: center;
        position: absolute;
        margin: 0 20px;
        top: 100px;
        left: 0;
        width: calc(100% - 40px);
        padding: 15px;
        z-index: 1;
        background-color: var(--active-thumb);
    }

    /**** Pour dessiner le menu burger ****/

    .nav__menu::before {
        content: "";
        width: 30px;
        height: 30px;
        background-color: var(--active-thumb);
        position: absolute;
        bottom: 100%;
        right: 0;
        clip-path: polygon(100% 0, 100% 100%, 0 100%);
    }

    .nav__link:hover {
        background-color: var(--text-dark);
    }

    .slider__controler {
      background-color: transparent;
      flex-direction: column;
      gap: 1rem;
      top: 50%;
      right: 1.5rem;
      transform: translateX(-50%);
    }

    .slider__thumb:not(:first-child) {
      border: none;
    }

    .slider__thumb {
      width: 1.5rem;
      height: 1.5rem;
      padding: 0;
      border-radius: 50%;
      background-color: var(--text-dark);
      transition: all 0.5s ease-in-out;
    }

    .slider__thumb.active {
      background-color: var(--active-thumb);
    }

    .slider__thumb.active::before {
      display: none;
    }

    .slider__thumb * {
      display: none;
    }
}