@import url("reset.css");
@import url("fonts.css");
@import url("colors.css");
@import url("base.css");

:root {
  --padding-inline: 11rem;

  @media screen and (max-width: 1366px) {
    --padding-inline: 8rem;
  }

  @media screen and (max-width: 1200px) {
    --padding-inline: 5rem;
  }

  @media screen and (max-width: 1024px) {
    --padding-inline: 3rem;
  }

  @media screen and (max-width: 767px) {
    --padding-inline: 2rem;
  }
}

main {
  ul {
    list-style-type: disc;
    margin-block-start: 0.5em;
    margin-block-end: 0.5em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 40px;
    unicode-bidi: isolate;
  }
}

.elementor-widget-text-editor {
  a {
    color: #22ac38;
  }
}

.wrapper {
  max-width: 173rem !important;
  margin-inline: auto !important;
  padding-inline: var(--padding-inline) !important;
}

h1.elementor-heading-title {
  & > span {
    color: #22ac38;
  }
}

.trait-header {
  & > div {
    display: flex;
    position: relative;

    &::before {
      content: "";
      position: absolute;
      top: 0;
      right: 33%;
      width: 100vw;
      height: 100%;
      border-bottom: 4px solid #292433;
      z-index: -1;

      @media screen and (max-width: 767px) {
        border-bottom: 5px solid #292433;
      }
    }

    @media screen and (max-width: 767px) {
      justify-content: flex-end;
    }
  }
}

.btn-elem {
  .elementor-button {
    font-size: 2rem;
    padding: 1.5rem 2.2rem;
    border-radius: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;

    @media screen and (max-width: 767px) {
      gap: 1.2rem;
      font-size: 16px;
      border-radius: 5px 5px 5px 5px;
      padding: 10px 14px 10px 14px;
    }
  }

  &.btn-elem--vert {
    .elementor-button {
      background-color: #22ac38;
      color: #fff;
      box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.25);
    }

    &.btn-elem--fleche {
      .elementor-button::after {
        background-image: url("../img/fleche-btn-blanc.svg");
      }
    }
  }

  &.btn-elem--blanc {
    .elementor-button {
      background-color: #f5f4f0;
      color: #000;
      box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.15);
    }

    &.btn-elem--fleche {
      .elementor-button::after {
        background-image: url("../img/fleche-btn-dark.svg");
      }
    }
  }

  &.btn-elem--fleche {
    .elementor-button::after {
      content: "";
      background-repeat: no-repeat;
      background-size: contain;
      width: 2rem;
      height: 2rem;
      background-position: center;
      scale: 1.4;
      transform-origin: right;

      @media screen and (max-width: 767px) {
        scale: 1;
      }
    }
  }
}

.wpforms-submit {
  font-size: 2rem !important;
  padding: 1.5rem 2.2rem !important;
  border-radius: 1rem !important;
  width: max-content !important;
  background: #22ac38 !important;
  color: #fff !important;
  box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.25) !important;
  height: auto !important;
  line-height: normal !important;
  border: none !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;

  @media screen and (max-width: 767px) {
    gap: 1.2rem !important;
    font-size: 16px !important;
    border-radius: 5px 5px 5px 5px !important;
    padding: 10px 14px 10px 14px !important;
  }
}

/* .trait-before {
  position: relative;

  &::before {
    content: "";
    position: absolute;
    top: calc(50% - 32px);
    right: 105%;
    width: 100vw;
    border-bottom: 4px solid #22ac38;
    z-index: -1;
  }

  @media screen and (max-width: 1024px) {
    &::before {
      border-bottom: 3px solid #22ac38;
      right: 100%;
    }
  }

  &.trait-before--responsive {
    &::before {
      display: none;

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

  &.trait-before--actu {
    &::before {
      top: 0;
      right: 100%;
      border-bottom: 4px solid #22ac38 !important;
    }
  }
}

.trait-after {
  position: relative;

  &::after {
    content: "";
    position: absolute;
    top: calc(50% - 32px);
    left: 105%;
    width: 100vw;
    border-bottom: 4px solid #22ac38;
    z-index: -1;
  }

  @media screen and (max-width: 1024px) {
    &::after {
      border-bottom: 3px solid #22ac38;
      left: 100%;
    }
  }

  &.trait-after--responsive {
    &::before {
      display: none;

      @media screen and (max-width: 1024px) {
        display: block;
      }
    }
  }
} */

.elementor-nav-menu {
  display: flex !important;
  flex-direction: column;
  gap: 1rem;
  .menu-item {
    & > a {
      background-color: white !important;
      border-radius: 1rem;

      & > span:not(.sub-arrow) {
        text-decoration: underline;
        text-underline-offset: 0.2rem;
      }

      &:has(img) {
        &::before {
          display: none;
        }
      }

      & > img {
        width: 4rem !important;
        height: 4rem !important;
        margin-right: 2rem !important;

        @media screen and (max-width: 1024px) {
          margin-right: 0 !important;
        }
      }

      .sub-arrow {
        margin-left: auto;
        width: 3rem;
        height: 3rem;
        align-items: center;
        justify-content: center;
        align-items: center;
        border-radius: 20rem;
        background: #f1f6f9;
        margin-block: 0 !important;
        padding: 0 !important;

        & > svg {
          height: 1.2rem;
          width: 1.6rem;
        }
      }

      @media screen and (max-width: 1024px) {
        padding-left: 0 !important;
      }
    }
  }

  .sub-menu {
    padding: 10px 20px 65px 70px;
    /* display: flex; */
    flex-direction: column;
    gap: 1rem;
    background-color: #fff !important;
    border-radius: 0 0 1rem 1rem;
    margin-top: -8px;

    & > li {
      margin-bottom: 1rem;
      & > a {
        font-size: 1.4rem !important;
        font-weight: 400 !important;
        display: flex;
        align-items: center;
        gap: 0.9rem;
        padding: 0 !important;
        background: none !important;

        &::before {
          content: "";
          width: 15px;
          height: 15px;
          background-image: url("../img/icon-fleche-sub-menu.svg");
          background-size: contain;
          background-repeat: no-repeat;
          transform-origin: center center;
          transition: transform 0.3s ease;
        }

        &:hover {
          &::before {
            transform: rotate(40deg);
          }
        }
      }
    }

    @media screen and (max-width: 1024px) {
      padding: 10px 20px 0px 20px;
      margin: 0;
    }
  }
}

.top-header {
  transition: all 0.3s ease-out !important;

  &.header--min {
    background-color: #f5f4f0;
    box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.15);

    .e-n-menu-title-text {
      color: #292433 !important;
    }

    .e-n-menu-dropdown-icon svg {
      fill: #292433 !important;
    }

    .elementor-element-beb2b52 {
      padding-top: 20px !important;
      padding-bottom: 15px !important;
    }

    .elementor-widget-image {
      & > div {
        padding: 10px 20px 10px 20px !important;
      }
    }
  }

  @media screen and (max-width: 1024px) {
    background-color: #f1f6f9 !important;
  }
}

.article-card {
  min-height: 33rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  border-radius: 1rem;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  z-index: 0;
  text-decoration: none !important;

  .article-card__category {
    color: #f5f4f0;
    font-size: 2.4rem;
    font-weight: var(--fw-semibold);

    @media screen and (max-width: 1200px) {
      font-size: 2.2rem;
    }
  }

  .article-card__content {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;

    .article-card__text {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      color: #f5f4f0;

      & > h3 {
        font-family: "Host Grotesk", sans-serif;
        font-size: 3.6rem;
        font-weight: var(--fw-bold);
        line-height: 1;

        @media screen and (max-width: 1200px) {
          font-size: 3rem;
        }
      }

      & > div {
        max-width: 250px;
        p {
          font-size: 1.6rem;
          font-weight: var(--fw-regular);
        }
      }
    }

    & > svg {
      min-width: 6rem;
      transition: all 0.3s ease-out;
      transform-origin: center center;

      path,
      rect {
        transition: all 0.3s ease-out;
      }

      @media screen and (max-width: 1200px) {
        min-width: 5rem;
      }
    }
  }

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(41, 36, 51, 0.7);
    border-radius: 1rem;
    z-index: -1;
    transition: all 0.3s ease-out;
  }

  &:hover {
    &::before {
      background: rgba(34, 172, 56, 0.8);
    }

    svg {
      transform: rotate(-35deg);

      path {
        stroke: #22ac38;
      }

      rect {
        fill: #f5f4f0;
      }
    }
  }
}

.blog {
  padding: 10rem 0;

  .blog__grid {
    grid-template-columns: repeat(auto-fill, minmax(363px, 1fr));
    display: grid;
    gap: 2rem;
  }

  .blog__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;

    .filter-btn {
      font-size: 2rem;
      padding: 1.5rem 2.2rem;
      border-radius: 1rem;
      position: relative;
      display: flex;
      align-items: center;
      gap: 2.5rem;
      width: max-content;
      background-color: #22ac38;
      color: #fff;
      box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.25);
      transition: all 0.3s ease-out;
      text-decoration: none;

      @media screen and (max-width: 767px) {
        gap: 1.2rem;
        font-size: 16px;
        border-radius: 5px 5px 5px 5px;
        padding: 10px 14px 10px 14px;
      }
    }

    .filter-btn.active,
    .filter-btn:hover {
      background-color: #f5f4f0;
      color: #000;
      box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.15);
    }
  }
}
