.green--bg {
  background-color: $c-main2;
}
.signatures__area {
  padding: 60px 0 40px 0;

  @media (max-width: 600px) {
    padding: 40px 0 20px 0;
  }

  .item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    @media (max-width: 640px) {
      margin: 0 16px;
    }
    img {
      height: 520px;
      width: 100%;
      object-fit: cover;
      transition: transform 1s ease-in-out;
    }

    .overlay {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
      background-image: linear-gradient(
        to top,
        rgba($c-black, 0.9) 40%,
        rgba($c-black, 0)
      );
      width: 100%;
      height: 100%;

      .content {
        padding: clamp(16px, 3vw, 24px);
        position: absolute;
        bottom: 0;
        left: 0;

        .head {
          padding-bottom: 16px;
          object {
            height: 24px;
            margin-bottom: 4px;
          }
          h3 {
            color: $c-white;
            font-size: clamp(20px, 3vw, 32px);
            font-weight: 500;
          }
        }
        .short {
          padding-bottom: 16px;
          p {
            margin-bottom: 0;
          }
        }

        .action {
          display: none;
          a {
            text-decoration: none;
            span {
              color: $c-second;
              font-size: clamp(16px, 3vw, 20px);
              padding-right: 8px;
            }
          }
        }
      }
    }

    &:hover {
      // background-color: rgba($c-white, 1);
      // -webkit-transition: background-color 1s ease;
      // -moz-transition: background-color 1s ease;
      // -o-transition: background-color 1s ease;
      // transition: background-color 1s ease;
      // -ms-transition: background-color 1s ease;
      // border-radius: 16px;

      .overlay {
        background-image: linear-gradient(
          to top,
          rgba($c-black, 1),
          rgba($c-text, 0.4)
        );
        -webkit-transition: background-image 1s linear;
        -moz-transition: background-image 1s linear;
        -o-transition: background-image 1s linear;
        transition: background-image 1s linear;
        -ms-transition: background-image 1s linear;
        .content {
          .action {
            display: block;
            -webkit-transition: display 1s linear;
            -moz-transition: display 1s linear;
            -o-transition: display 1s linear;
            transition: display 1s linear;
            -ms-transition: display 1s linear;
          }
        }
      }

      img {
        transform: rotate(-10deg) scale(1.4);
        -webkit-transition: transform 1s ease;
        -moz-transition: transform 1s ease;
        -o-transition: transform 1s ease;
        transition: transform 1s ease;
        -ms-transition: transform 1s ease;
      }
      span {
        color: $c-main;
      }
    }
  }

  .item--price {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    @media (max-width: 640px) {
      margin: 0 16px;
    }
    img {
      height: 360px;
      width: 100%;
      object-fit: cover;
      transition: transform 1s ease-in-out;
    }

    .overlay {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
      background-image: linear-gradient(
        to top,
        rgba($c-black, 0.9) 40%,
        rgba($c-black, 0)
      );
      width: 100%;
      height: 100%;

      .content {
        padding: clamp(16px, 3vw, 24px);
        position: absolute;
        bottom: 0;
        left: 0;

        .head {
          padding-bottom: 16px;
          object {
            height: 24px;
            margin-bottom: 4px;
          }
          h3 {
            color: $c-white;
            font-size: clamp(20px, 3vw, 32px);
            font-weight: 500;
          }
        }
        .short {
          padding-bottom: 0;
          p {
            margin-bottom: 0;
          }
        }

        svg {
          margin: 24px 0
        }
        .price {
              span {
                color: $c-second;
              font-size: clamp(18px, 3vw, 24px);
              padding-right: 8px;
              font-weight: 600;
              }
        }
      }
    }

    &:hover {

      .overlay {
        background-image: linear-gradient(
          to top,
          rgba($c-black, 1),
          rgba($c-text, 0.4)
        );
        -webkit-transition: background-image 1s linear;
        -moz-transition: background-image 1s linear;
        -o-transition: background-image 1s linear;
        transition: background-image 1s linear;
        -ms-transition: background-image 1s linear;
        .content {
          .price {
            color: $c-second;
          }
        }
      }

      img {
        transform: rotate(-10deg) scale(1.4);
        -webkit-transition: transform 1s ease;
        -moz-transition: transform 1s ease;
        -o-transition: transform 1s ease;
        transition: transform 1s ease;
        -ms-transition: transform 1s ease;
      }
      span {
        color: $c-main;
      }
    }
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    grid-gap: 16px;

    @media (max-width: 1199px) {
      grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
    }
  }
}

.prestations__area {
  &--head {
    text-align: center;
    padding: 64px 0;

    @media (max-width: 991px) {
      padding: 24px 0;
    }
    h2 {
      font-size: clamp(18px, 3vw, 24px);
      color: $c-second;
      font-weight: 500;
    }
    p {
      text-align: center;
    }
  }

  &--block {
    // display: grid;
    // grid-template-columns: repeat(auto-fit, minmax(48%, 1fr));
    // grid-gap: 16px;

    // @media (max-width: 1199px) {
    //     grid-template-columns: repeat(auto-fit, minmax( 46%, 1fr));
    // }
    // @media (max-width: 991px) {
    //   grid-template-columns: repeat(auto-fit, minmax( 100%, 1fr));
    // }

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;

    &--media {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      width: 48%;
      @media (max-width: 991px) {
        width: 100%;
      }

      img {
        width: 92%;
        height: 350px;
        object-fit: cover;
        object-position: center;
        @media (max-width: 991px) {
          width: 100%;
          height: 320px;
        }
      }

      &::after {
        content: "";
        background-image: url("/assets/images/motif--left.svg");
        background-repeat: no-repeat;
        background-position: left;
        width: 100%;
        position: absolute;
        top: 0;
        bottom: 0;
        margin: auto 0;
        left: 0px;
        z-index: -1;
        height: 100%;
        display: block;

        @media (max-width: 991px) {
          transform: rotate(90deg);
          height: 200px;
          background-size: contain;
          top: unset;
          right: unset;
        }
      }
    }

    &--content {
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 16px 0;
      width: 48%;
      @media (max-width: 991px) {
        width: 100%;
      }

      @media (max-width: 991px) {
        border: 1px solid $c-second;
        padding: 16px 16px;
      }

      h3 {
        font-size: clamp(18px, 3vw, 24px);
        font-weight: 500;
        font-family: Mmtsdr;
        letter-spacing: 0.2rem;
        color: $c-black;
        margin-bottom: 0;
        padding-bottom: clamp(16px, 3vw, 24px);
      }
      p {
        margin-bottom: 0;
        text-align: left;
        padding-bottom: clamp(16px, 3vw, 24px);
      }

      svg {
        margin-bottom: clamp(16px, 3vw, 24px);
      }

      .price {
        font-size: clamp(18px, 3vw, 24px);
        font-weight: 600;
        color: $c-second;
        // padding-bottom: clamp(16px, 3vw, 24px);
      }

      .actions {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 16px;
        margin-top: clamp(16px, 3vw, 24px);
      }
    }
  }
}

.section--white {
  background-color: transparent;
  padding: 40px 0;
}

.section--dark {
  background-color: $c-black;
  padding: 40px 0;

  @media (max-width: 991px) {
    padding-top: 60px;
  }

  h3 {
    color: $c-white;
  }
  p {
    color: $c-gray-d2;
  }

  .prestations__area--block {
    @media (max-width: 991px) {
      flex-direction: column-reverse;
    }
  }

  .prestations__area--block--content {
    @media (max-width: 991px) {
      border: 1px solid $c-second;
      padding: 16px 16px;
    }
  }

  .prestations__area--block--media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;

    img {
      width: 92%;
      height: 350px;
      object-fit: cover;
      object-position: center;
      z-index: 1;
      @media (max-width: 991px) {
        width: 100%;
        height: 320px;
      }
    }

    &::after {
      content: "";
      background-image: url("/assets/images/motif--right.svg");
      background-repeat: no-repeat;
      background-position: right;
      width: 100%;
      position: absolute;
      top: 0;
      bottom: 0;
      margin: auto 0;
      right: 0px;
      z-index: 0;
      height: 100%;
      display: block;
      @media (max-width: 991px) {
        transform: rotate(-90deg);
        height: 200px;
        background-size: contain;
        top: unset;
        right: unset;
      }
    }
  }
}

// Single

.single__prestation {
  margin: 64px 0;

  .media {
    img {
      width: 100%;
      min-height: 440px;
      height: 460px;
      object-fit: cover;
    }
  }

  &--content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;

    @media (max-width: 991px) {
      border: 1px solid $c-second;
      padding: 16px 16px;
    }

    .categories {
      margin-bottom: 16px;
      .item {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        img {
          height: 24px;
          width: 24px;
          object-fit: cover;
          margin-right: 4px;
        }
        span {
          font-size: clamp(14px, 3vw, 16px);
          font-weight: 500;
          font-family: Mmtsdr;
          color: $c-main;
        }
      }
    }

    h3 {
      font-size: clamp(18px, 3vw, 24px);
      font-weight: 500;
      font-family: Mmtsdr;
      letter-spacing: 0.2rem;
      color: $c-black;
      margin-bottom: 0;
      padding-bottom: clamp(16px, 3vw, 24px);
    }
    p {
      margin-bottom: 0;
      text-align: left;
      padding-bottom: clamp(16px, 3vw, 24px);
    }

    svg {
      margin-bottom: clamp(16px, 3vw, 24px);
    }

    .price {
      font-size: clamp(18px, 3vw, 24px);
      font-weight: 600;
      color: $c-second;
      // padding-bottom: clamp(16px, 3vw, 24px);
    }

    .actions {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      flex-direction: column;
      gap: 16px;
      margin-top: clamp(16px, 3vw, 24px);
    }
  }

  .body {
  }

  .list {
    border-left: 1px solid $c-gray-d2;
    padding-left: 16px;

    @media (max-width: 991px) {
      border-top: 1px solid $c-gray-d2;
      border-left: 0;
      padding-top: 16px;
      padding-left: 0;
      margin-top: 16px;
    }


    ul {

      list-style: none;
      padding-left: 0;
      li {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 8px 0;

        object {
          height: 32px;
          margin-right: 8px;
        }
        span {
          color: $c-text;
          font-size: clamp(14px, 3vw, 16px);
          font-weight: 400;
        }
      }
    }
  }
}


.prestation--categories {

}
