.dsfr-doc-hp-slice-video {
  overflow: hidden;
  padding-top: 2.5rem;

  &__category {
    margin-bottom: 1rem;
  }

  &__content {
    transition: transform 0.5s ease-out;
  }

  &__title {
    color: var(--text-label-blue-france);
    font-size: 1.75rem;
    line-height: 2.25rem;
    margin-bottom: 1.5rem;
  }

  &__btn {
    margin-bottom: 1.5rem;
    width: 100%;
    justify-content: center;
  }

  &__img {
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    align-items: center;
    transition: transform 0.5s ease-out;
    filter: drop-shadow(0px 0px 50.256px rgba(174, 191, 255, 0.85));
    cursor: pointer;

    &--dark {
      display: none;
    }

    img,
    svg {
      width: 100%;
      height: auto;
    }
  }

  @media (min-width: 36em) {
    &__content {
      max-width: 30rem;
    }

    &__btn {
      width: auto;
    }
  }

  @media (min-width: 48em) {
    padding-top: 3.5rem;

    &__btn {
      margin-bottom: 3rem;
    }

    & > .fr-container {
      position: relative;

      &::before {
        content: '';
        position: absolute;
        width: 244px;
        height: 388px;
        top: 0;
        right: 0;
        transform: translate(40%, -25%);
        background-image: url('/v0.0/asset/home/slice-video/bg-video-light.svg');
        background-size: cover;
        background-repeat: no-repeat;
      }
    }

    &__img {
      filter: drop-shadow(0px 0px 62.373px rgba(174, 191, 255, 0.85));

      &.fr-col-offset-md-1 {
        margin-left: 7%;
      }

      img,
      svg {
        margin-left: -2rem;
      }
    }

    &[dsfr-doc-in-view='true'] {
      .dsfr-doc-hp-slice-video__img,
      .dsfr-doc-hp-slice-video__content {
        transform: translateY(0);
      }
    }

    &[dsfr-doc-in-view='false'] {
      .dsfr-doc-hp-slice-video__img,
      .dsfr-doc-hp-slice-video__content {
        transform: translateY(30%);

        @media (prefers-reduced-motion: reduce) {
          transform: none;
        }
      }
    }
  }

  @media (min-width: 62em) {
    padding-top: 6.25rem;

    & > .fr-container {
      &::before {
        width: 363px;
        height: 419px;
        top: 0;
        right: 0;
        transform: translate(90px, -88px);
      }
    }

    &__btn {
      margin-bottom: 5.5rem;
    }

    &__title {
      margin-bottom: 2.5rem;
      font-size: 2.5rem;
      line-height: 3rem;
    }

    &__img {
      &.fr-col-offset-md-1 {
        margin-left: 3%;
      }

      img,
      svg {
        margin-left: 0;
      }
    }
  }
}

[data-fr-theme='dark'] {
  .dsfr-doc-hp-slice-video {
    &__img {
      filter: drop-shadow(0px 0px 103px rgba(0, 7, 53, 0.90));

      &--light {
        display: none;
      }

      &--dark {
        display: block;
      }
    }

    @media (min-width: 48em) {
      & > .fr-container::before {
        background-image: url('/v0.0/asset/home/slice-video/bg-video-dark.svg');
      }
    }
  }
}