.competences-presentation {
  margin: auto;

  .competences {
    display: flex;
    flex-flow: wrap;
    justify-content: space-evenly;
    padding: 0 30px;
    margin-top: 40px;
    gap: 10px 40px;
  }

  figure.competence {
    display: flex;
    flex-flow: column;

    .image,
    .image img {
      max-height: 130px;
    }
  }

  figcaption {
    text-align: center;
    margin: 20px 0 0;
    font-weight: 600;
    font-size: 18px;
    max-width: 190px;
    min-height: 67px;
    align-content: center;
    font-family: fonts(default), serif;
  }

  .competences-text {
    p {
      margin: 0 0 10px 0;
    }
  }

  @media screen and (max-width: 560px) {
    .competences {
      gap: 10px;
    }

    figure.competence {
      .image,
      .image img {
        max-height: 90px;
      }
    }
    figcaption {
      font-size: 16px;
      max-width: 150px;
      min-height: 54px;
    }
  }
}

.carousel-values-item {
  min-height: 100px;
  min-width: 310px;
  max-width: 310px;
  padding: 10px;
  overflow: hidden;
  transition: transform 0.5s, -moz-transform 0.5s, -webkit-transform 0.5s;
  display: flex;
  flex-flow: column;
  margin: auto;

  .value-image {
    width: 290px;
    height: 290px;
    overflow: hidden;

    > img {
      transition: transform 0.5s, -moz-transform 0.5s, -webkit-transform 0.5s;
      height: 100%;
    }
  }

  .value-title {
    h3 {
      margin: 18px 0;
      text-align: center;
    }
  }

  .value-description {
    p {
      margin: 0;
      text-align: justify;

      &:not(:last-child) {
        margin-bottom: 10px;
      }
    }
  }

  &:hover {
    .value-image {
      > img {
        -moz-transform: scale(1.1);
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
      }
    }
  }
}

.outer-values {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fbfbf0;
  z-index: 2000000;
  overflow: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s ease-out;

  button.close {
    position: fixed;
    top: 0;
    right: 0;
    padding: 30px;
  }

  .carousel-values-item {
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: center;
    max-height: none;
    max-width: none;
    margin: 0;
    overflow: auto;

    .value-sub-content {
      margin-left: 30px;
      max-width: 600px;

      .value-title {
        h3 {
          text-align: left;
          font-size: 25px;
        }
      }

      @media screen and (max-width: 980px) {
        max-width: 400px;
      }

      @media screen and (max-width: 760px) {
        max-width: 300px;
      }
    }

    .value-complete-description {
      display: initial;

      p {
        margin: 10px 0;
      }
    }

    .value-partial-description,
    .read-more {
      display: none;
    }

    &:hover {
      .value-image {
        > img {
          -moz-transform: none;
          -webkit-transform: none;
          transform: none;
        }
      }
    }
  }

  &.in {
    opacity: 1;
    visibility: visible;
  }

  @media screen and (max-width: 670px) {
    display: block;

    .carousel-values-item {
      display: flex;
      flex-flow: column;

      .value-image {
        width: 300px;
        height: 300px;
      }

      .value-sub-content {
        margin-left: 0;
      }
    }
  }
}


.accompagnements-section {
  p {
    margin: 0 0 10px 0;
  }

}

.accompagnements-section__sejours-cards {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-flow: wrap;
  gap: 20px 40px;
  margin: 40px 0;

  .accompagnements-section__sejour-card {
    overflow: hidden;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.2);
    max-width: 310px;
    display: flex;
    flex-direction: column;
  }

  .sejour__card__bottom {
    justify-self: flex-end;
  }

  .sejour__card__image {
    min-height: 270px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }


  .sejour__card__content {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    flex-grow: 1;
    padding: 18px;
  }

  .sejour__card__title {
    h3 {
      font-weight: 600;
      font-size: 20px;
      color: esprit-sentiers(orange);
      margin: 0 0 10px 0;
    }

    .title__details {
      margin: 10px 0;
      font-family: fonts(default);
      font-size: 16px;
      font-weight: 600;
      min-height: 35px;
      align-content: center;

      .arrow-icon::before,
      .arrow-icon::after {
        margin: 0 10px;
      }
    }
  }

  .sejour__card__description {
    text-align: center;
    margin: 0 0 20px 0;
    font-size: 15px;
  }

  .sejour__card__pictos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 40px;
    font-size: 15px;
  }

  .picto-group {
    display: flex;

    .picto-group__picto {
      display: flex;
      align-items: center;
      justify-content: center;
      padding-right: 10px;

      img {
        width: 25px;
      }
    }

    .picto-group__label {
      line-height: 1.1;
      text-align: left;
    }
  }
}

#index-sub-title {
  font-family: fonts(titles);
  text-transform: uppercase;
  font-weight: 500;
  font-size: 30px;
  line-height: normal;

  @media (max-width: 600px) {
    font-size: 25px;
  }

  @media (max-width: 430px) {
    font-size: 22px;
  }

  @media (max-width: 420px) {
    font-size: 20px;
  }

  @media (max-width: 310px) {
    font-size: 18px;
  }
}