.services {
  padding: 256px 0;
  row-gap: 128px;
  z-index: 2;
  position: relative;
}

.gradient-bottom {
  position: relative;
}

.gradient-bottom::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 100%
  );
}

.white-shade.gradient-bottom::after {
  background: linear-gradient(
    to bottom,
    rgba(248, 248, 248, 0) 0%,
    rgba(248, 248, 248, 1) 100%
  );
}

.services-illustration {
  position: relative;
}

.illustration {
  width: 100%;
  height: 100%;
  max-width: 100dvw;
  aspect-ratio: 16/9;
}

.services-illustration-logistique {
  top: 4%;
  left: 67%;
  width: 20%;
  height: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
}

.services-illustration-affretement {
  top: 16.5%;
  left: 0%;
  width: 35%;
  height: 80%;
  padding-top: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
}

.services-illustration-stockage {
  top: 10%;
  left: 40%;
  width: 25%;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 15;
}

.illustration-no-hovered,
.illustration-logistique-hovered,
.illustration-affretement-hovered,
.illustration-stockage-hovered {
  transition: opacity 0.6s;
}

.services-illustration-logistique:has(.secondary-button:hover)
  ~ .illustration-logistique-hovered {
  opacity: 0;
}

.services-illustration-logistique:has(.secondary-button:hover)
  ~ .illustration-logistique-hovered {
  opacity: 1;
}

.services-illustration-affretement:has(.secondary-button:hover)
  ~ .illustration-no-hovered {
  opacity: 0;
}

.services-illustration-affretement:has(.secondary-button:hover)
  ~ .illustration-affretement-hovered {
  opacity: 1;
}

.services-illustration-stockage:has(.secondary-button:hover)
  ~ .illustration-no-hovered {
  opacity: 0;
}

.services-illustration-stockage:has(.secondary-button:hover)
  ~ .illustration-stockage-hovered {
  opacity: 1;
}

.secondary-button a.secondary-button-arrow-to-text {
  width: fit-content;
  padding: 16px;
  transition: 0.6s ease-out;
}

.secondary-button-arrow-to-text::before {
  content: attr(data-text);
  transition: transform 0.6s ease-out;
  transform: translate(0, 100%);
  transform-origin: center bottom;
  opacity: 0;
  position: absolute;
}

.secondary-button-arrow-to-text:hover::before {
  transform: translate(0, 0);
  opacity: 1;
  position: relative;
}

.secondary-button-arrow-to-text::after {
  content: "";
  display: none;
}

.illustration-logistique-hovered,
.illustration-affretement-hovered,
.illustration-stockage-hovered {
  top: 0;
  left: 0;
  opacity: 0;
}

@media screen and (max-width: 900px) {
  .secondary-button a.secondary-button-arrow-to-text {
    padding: 10px;
  }

  .secondary-button-arrow-to-text:hover::before {
    transform: translate(0, 100%);
    opacity: 0;
    position: absolute;
  }

  .gradient-bottom::after {
    height: 50px;
  }
}
