/**
 * Image With Text
 */

.image-with-text {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  margin: 0 -1rem;
}
.image-with-text--over {
  margin-top: 2rem;
  position: relative;
  z-index: 5;
}
.image-with-text__medias {
  padding: 1.5rem 1.5rem 81px;
  border-radius: 16px;
  background: var(--color-neutral--white);
  box-shadow: -1px 22px 49px 0px rgba(92, 92, 92, 0.10), -4px 90px 90px 0px rgba(92, 92, 92, 0.09);
  max-width: 390px;
  width: 100%;
  height: fit-content;
}
.image-with-text__wrapper {
  position: relative;
  overflow: hidden;
}
.image-with-text__image {
  position: relative;

}
.image-with-text__image img {
  border-radius: 16px;
}
.image-with-text__image-description {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0.2rem;
  font-size: 16px;
  font-weight: 700;
  line-height: 120%;
  width: 90%;
  text-align: center;
}
.image-with-text__content {
  margin-top: 3rem;
  margin-left: 1rem;
  margin-right: 1rem;
}
.image-with-text__content ul {
  margin: 0;
}
.image-with-text__cta {
  margin: 1.5rem 0;
}
.image-with-text__cta .cta{
  margin: 0 auto;
}
.image-with-text__link:hover {
  text-decoration: none;
}
@media all and (min-width: 450px) {
  .image-with-text__medias {
    margin: 0 auto;
  }
}
@media all and (min-width: 550px) {
  .image-with-text {
    overflow-x: initial;
    margin: 0;
  }
  .image-with-text__content {
    margin-left: 0;
    margin-right: 0;
  }
}
@media screen and (min-width: 850px) {
  .image-with-text {
    display: grid;
    grid-template-columns: repeat(2, calc(50% - 0.75rem));
    gap: 1.5rem;
    align-items: center;
  }
  .image-with-text--left {
    grid-template-columns: calc(55% - 0.75rem) calc(45% - 0.75rem);
  }
  .image-with-text--right {
    grid-template-columns: calc(45% - 0.75rem) calc(55% - 0.75rem);
  }
  .image-with-text__medias {
    max-width: 630px;
    padding: 1.5rem 1.5rem 101px;
  }
  .image-with-text__content {
    margin: 0;
    max-width: 530px;
  }
  .image-with-text--over {
    margin-top: -3rem;
    align-items: initial;
  }
  .image-with-text--over .image-with-text__content{
    margin-top: 3rem;
  }
  .image-with-text__image-description {
    font-size: 25px;
    bottom: 0.7rem;
    width: 75%;
    line-height: 140%;
  }
  .image-with-text__cta .cta{
    margin: 0;
  }
}
@media screen and (min-width: 1300px) {
  .image-with-text {
    grid-template-columns: repeat(2, calc(50% - 1rem));
    gap: 2rem;
  }
  .image-with-text--left {
    grid-template-columns: calc(55% - 1rem) calc(45% - 1rem);
  }
  .image-with-text--right {
    grid-template-columns: calc(45% - 1rem) calc(55% - 1rem);
  }
}


/**
 * Modifiers Left
 */

.image-with-text--left .image-with-text__medias {
  transform: rotate(-4.811deg) translateX(-25px);
}
@media all and (min-width: 850px) {
  .image-with-text--left .image-with-text__medias {
    transform: rotate(-4.811deg);
  }
  .image-with-text--left .image-with-text__content {
    margin-left: auto;
    padding-left: 1rem;
  }
}

/**
 * Modifiers right
 */

.image-with-text--right .image-with-text__medias {
  transform:rotate(6.222deg) translateX(25px);
}
@media all and (min-width: 850px) {
  .image-with-text--right .image-with-text__medias {
    transform: rotate(6.222deg);
    order: 2;
  }
  .image-with-text--right .image-with-text__content {
    margin-right: auto;
    padding-right: 1rem;
    order: 1;
  }
}

/**
 * image with text slider
 */

.image-with-text__container {
  position: absolute;
  top: 50%;
  right: 10%;
  max-height: 80px;
  transform: translateY(-50%);
}
.image-with-text__container .tns-ovh {
  overflow: unset;
}
.image-with-text__images-slider {
  display: flex;
  flex-direction: column;
  align-items: end;
}
.image-with-text__images-slider-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: right;
  transform: scale(0.75);
  opacity: 0.5;
  transition: all .70s cubic-bezier(.475,.425,0,.995);
}
.image-with-text__images-slider-item-text {
  border-radius: 100px;
  width: fit-content;
  padding: 6px 12px;
  background: var(--color-neutral--white);
  color: var(--color-brand--dark-orange-2);
  font-size: var(--content-size-s);
  display: none;
  margin: 0;
}
.image-with-text__images-slider-item-image {
  border-radius: 100px;
  display: block;
  width: fit-content;
  padding: 8px;
  background: var(--color-neutral--white);
}
.image-with-text__images-slider-item-image img{
  width: 45px;
  height: 45px;
}
.tns-slide-active .image-with-text__images-slider-item {
  transform: scale(1);
  opacity: 1;
}
.tns-slide-active .image-with-text__images-slider-item-text{
  display: block;
}
@media all and (min-width: 850px) {
  .image-with-text__images-slider-item-image {
    padding: 13px;
  }
  .image-with-text__images-slider-item-image img{
    width: 63px;
    height: 63px;
  }
}

/**
 * Modifiers slider right
 */

.image-with-text--right .image-with-text__container {
  left: 10%;
  right: initial;
}
.image-with-text--right .image-with-text__images-slider {
  align-items: start;
}
.image-with-text--right .image-with-text__images-slider-item {
  justify-content: left;
  flex-direction: row-reverse;
}
@media all and (min-width: 850px) {

}
