.m-image-texte {

  /* .m-image-texte__texte_wrap {
    padding: 2em;

    @media(991px < width) {
      padding: 1.5em 0;
    }
  } */


  .m-image-texte__texte {
    margin: 2em 0;
  }

  .m-image-texte__titre--accent {
    color: var(--wp--preset--color--primary);
  }

  /* Padding interne quand la colonne texte a un fond (propagé par le système de vagues) */
  .col-texte[style*="background"] .m-image-texte__texte_wrap {
    padding: 1.5em;
  }

  &.is-style-rounded {
    .m-image-texte__image {
      img {
        border-radius: 20px;
      }
    }
  }

  /* 
  @media(991px > width) {
    .m-image-texte__texte_wrap {
      max-width: 70%;
    }
  } */

  /* @media(991px < width) {
    .m-image-texte__texte_wrap {
      padding: 2em;
    }
  } */

  &.alignfull {
    .container-fluid {
      .col-texte .m-image-texte__texte_wrap {
        @media(width > 992px) {
          /* width: 70%; */
          margin: 0 auto;
        }
      }
    }
  }


  &.has-secondary-background-color {
    .m-image-texte__titre {
      color: #fff;
    }
  }


  .m-image-texte__image {
    position: relative;

    img {
      border-radius: var(--wp--custom--radius--base);
    }
  }

  .m-image-texte__encart {
    position: absolute;
    bottom: 0;
    left: 10%;
    background: var(--wp--preset--color--base);
    border-radius: var(--wp--custom--radius--base);
    box-shadow: 0 8px 10px -6px rgba(9, 116, 230, 0.15),
      0 20px 25px -5px rgba(9, 116, 230, 0.15);
    padding: 1em 1.5em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    .m-image-texte__encart__chiffre {
      font-size: 2em;
      font-weight: var(--wp--custom--font-weight--semi-bold);
      color: var(--wp--preset--color--primary);
      line-height: 1;
    }

    .m-image-texte__encart__legende {
      padding-top: 5px;
      font-size: 1rem;
      font-weight: var(--wp--custom--font-weight--regular);
      color: var(--wp--preset--color--primary-darken);
    }

    @media (max-width: 768px) {
      bottom: 20px;
      left: 2.5%;
      width: 95%;
    }

  }

  &.m-image-texte--under,
  &.m-image-texte--above {
    .m-image-texte__texte_wrap {
      padding-left: 0;
      padding-right: 0;
    }

    .m-image-texte__image {
      img {
        width: 100%;
        max-height: 450px;
        object-fit: cover;
      }
    }
  }

  &.m-image-texte--noimage {
    .m-image-texte__texte_wrap {
      padding-left: 0;
      padding-right: 0;
    }
  }

}

.m-image-texte__arguments {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.m-image-texte__argument {
  display: flex;
  align-items: flex-start;
  gap: var(--wp--custom--gap--sm);
  padding: 1.25em 0;
  border-bottom: 1px solid var(--wp--preset--color--main-accent);

  &:last-child {
    border-bottom: none;
  }
}

.m-image-texte__argument__icone {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--wp--preset--color--primary);
  border-radius: var(--wp--custom--radius--base);

  img {
    width: 48px;
    height: 48px;
    object-fit: contain;
  }
}

.m-image-texte__argument__titre {
  color: var(--wp--preset--color--primary);
  font-size: 2.5em;
  font-weight: var(--wp--custom--font-weight--bold);
  margin: 0;
}

.m-image-texte__argument__texte {
  font-size: 1.25em;
  color: var(--wp--preset--color--primary-darken);
  font-weight: var(--wp--custom--font-weight--medium);
  line-height: 1.5;
  margin: 0;
}

.m-image-texte__header {
  margin-bottom: 2em;

  .m-image-texte__surtitre.element__surtitre {
    margin: 0 auto;
  }
}

.m-image-texte__sections {
  display: flex;
  flex-direction: column;
  gap: var(--wp--custom--gap--base);
  margin-top: 1.5em;
}

.m-image-texte__section__label {
  display: inline-block;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
  font-weight: var(--wp--custom--font-weight--regular);
  font-size: 1.5em;
  padding: 0.1em 0.75em;
  border-radius: var(--wp--custom--radius--base);
}

.m-image-texte__section__texte {
  line-height: 1.6;

  p {
    margin-top: 0.5em;
  }
}

.m-image-texte__section__texte p:last-child {
  margin-bottom: 0;
}

@media (width < 992px) {
  .m-image-texte--gauche {
    .col-image {
      order: -1;
    }
  }
}