.m-avis {
  position: relative;

  &.is-square-deco {
    &:after {
      position: absolute;
      right: 0;
      top: -75px !important;
      margin: 0;
      z-index: 1;
    }
  }

  @media(width < 768px) {
    &:after {
      display: none !important;
    }
  }

  .m-avis__wrap {
    overflow: hidden;
  }

  .m-avis__titre {
    margin: 0 0 1em;

    @media(width < 768px) {
      margin: 0;
    }

    &:after {
      display: inline-block;
      width: 118px;
      height: 117px;
      content: '';
      background: url(../../../assets/img/logo-immodvisor.png) no-repeat center center;
      vertical-align: middle;
      margin-left: 1em;

      @media(width < 768px) {
        margin-left: 0;
      }
    }

    @media(width < 768px) {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }
  }

  .m-avis__texte {}

  .m-avis__loop {
    margin-top: 1rem;
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 0;
    overflow: inherit;
    opacity: 0;

    &.swiper-initialized {
      transition: opacity 0.3s ease-in-out 1s;
      opacity: 1;
    }

    @media(width < 768px) {
      margin-top: 1rem;
      margin-bottom: 1rem;
      padding-bottom: 50px;
      position: relative;
    }

    /* .swiper-wrapper {
      overflow: inherit;
    } */

    .swiper-slide {
      height: auto;
      padding: 0;
      margin: 0 auto;
      max-width: 740px !important;
      opacity: 0;
      transition-property: transform, opacity !important;

      .card-avis {
        transform: none !important;
        transition: opactity 0.3s ease-in-out;
        margin: 0 auto;
        opacity: 0;
      }

      &.swiper-slide-prev,
      &.swiper-slide-next {
        opacity: .7;

        @media(width < 991px) {
          opacity: 0;
        }

        .card-avis {
          opacity: 1;
          scale: 0.85;
        }
      }

      /* &.swiper-slide-active {
        transform: translateY(55px) !important;

        @media(width < 991px) {
          transform: translateY(0) !important;
        }
      } */


      &.swiper-slide-active {
        opacity: 1;
        z-index: 2;

        .card-avis {
          scale: 1;
          opacity: 1;
          /* transform: translate3d(0); */
        }
      }

      &.swiper-slide-prev {
        .card {
          transform: translate3d(20%, -5%, 0) !important;
        }
      }

      &.swiper-slide-next {
        .card {
          transform: translate3d(-20%, -5%, 0) !important;
        }
      }
    }

    .swiper-button-prev,
    .swiper-button-next {
      top: 0;
      bottom: 0;
      margin: auto 0 !important;
    }

    .swiper-button-prev {
      left: 25%;
    }

    .swiper-button-next {
      right: 25%;
    }

    @media(width < 768px) {

      .swiper-button-next,
      .swiper-button-prev {
        bottom: -35px;
        top: inherit;
      }

      .swiper-button-prev {
        left: 33%;
      }

      .swiper-button-next {
        right: 33%;
      }
    }


  }

  .buttons {
    margin-top: 60px;

    @media(width < 768px) {
      margin-top: 30px;
    }
  }
}