.animation-section {
  position: relative;
  overflow: hidden;
  background: #000;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  z-index: 2;
  isolation: isolate;
}

/* OVERLAY */
.animation-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.15) 75%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* CANVAS */
#image-sequence {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
}

/* TEXTE */
.text-overlay {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 55vw;
  padding-left: 8%;
  color: #fff;
  z-index: 10;
}

/* TITRE */
.text-overlay h2 {
  font-family: "Teachers", sans-serif;
  font-size: 70px;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 20px;
  max-width: 900px;
}

/* PARAGRAPHES */
.text-overlay p {
    font-family: "Space Grotesk", sans-serif;
    font-size: 17px;
    line-height: 27px;
    margin-bottom: 30px;
    max-width: 700px;
    text-align: justify;
}

/* SOUS TITRE */
p.sous-titre {
  text-transform: uppercase;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 1px;
  opacity: 0.9;
}

/* TABLETTE */
@media screen and (max-width: 768px) {

  .text-overlay {
    width: 100%;
    padding: 0 24px;
    top: auto;
    bottom: 80px;
    transform: none;
  }

  .text-overlay h2 {
    font-size: 36px;
    line-height: 1.15;
  }

  .text-overlay p {
    font-size: 15px;
    line-height: 24px;
  }
}

/* MOBILE */
@media screen and (max-width: 480px) {

  .text-overlay {
    padding: 0 20px;
    bottom: 60px;
  }

  .text-overlay h2 {
    font-size: 30px;
  }

  .text-overlay p {
    font-size: 14px;
    line-height: 22px;
  }
}