/* ==========================================================================
   HERO - Mobile First
   ========================================================================== */

.hero__container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: var(--color-primary--4);

  padding: 2rem 0;
}

/* Colonne gauche */
.hero__left {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}

.hero__title {
  margin: 0;
  font-family: var(--font--archivo);
  line-height: 140%;
  font-weight: 900;
  color: var(--color-primary--1);
}

.hero__text {
  margin-bottom: 0.5rem;
  color: #31363D;
}

.hero__text p{
  margin-top: 0.8rem;
}

.hero__link {
  margin-bottom: 1.5rem;
}

.hero__link > a {
  max-width: fit-content;
  border-radius: 40px;
  color: var(--color-white);
  font-size: 1rem;
  padding: 16px;
  cursor: pointer!important;
  max-height: fit-content;
  font-family: var(--font--lexend);
  background-color: var(--color-primary--2);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-weight: 300;
  line-height: 140%;
}
.hero__link > a:hover{
  text-decoration: none!important;
  background-color: var(--color-primary--2)!important;
  text-decoration: none!important;
  opacity: 0.9;
  transform: translateY(-2px);
}

.hero__image {
  margin-top: 0.3rem;
}

/* Colonne droite */
.hero__right {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==========================================================================
   SLIDERS MARQUEE CSS
   ========================================================================== */

.hero__slider {
  overflow: hidden;
  width: 100%;
}

.hero__track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scroll-left 30s linear infinite;
  will-change: transform;
}

.hero__track--reverse {
  animation-name: scroll-right;
}

.hero__slide {
  flex-shrink: 0;
}

.hero__slide article,
.hero__slide .media {
  width: 100%;
  height: 100%;
}

.hero__slide img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* Keyframes - avec 3x les images, on translate de 33.33% */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.33%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-33.33%);
  }
  100% {
    transform: translateX(0);
  }
}

/* ==========================================================================
   DESKTOP
   ========================================================================== */

@media (min-width: 1300px) {
  .hero__container {
    flex-direction: row;
  }

  .hero__left {
    width: 40%;
    padding: 8rem 0 0 7rem;
  }

  .hero__right {
    width: 60%;
  }

}
