.expertise_tabs {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.tabs_content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  gap: 10%;
}

.tab_infos {
  display: flex;
  flex-direction: column;
}

.tab_item {
  border-bottom: 1px dashed #014f534d;
  padding: 22px 0 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab_header {
  display: flex;
  align-items: center;
  gap: 0.8rem;

  & p {
    color: #6E737D;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 2em;
    letter-spacing: -0.03em;
    margin: 0 !important;
  }
}

.tab_header img.tab_icon {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.tab_header h3 {
  color: #6E737D;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3em;
  letter-spacing: -0.02em;

  padding: 0;
  margin: 0;
}

.tab_item.active .tab_header p {
    color: #0CDC75;
}
.tab_item.active .tab_header h3 {
    color: #01271A;
}

.tab_body {
  display: none;
  margin-top: 9px;
  color: #444;

  & p {
    color: #01271A;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5em;
    letter-spacing: 0;
  }

  & img.mobile_tab_img {
    display: none;
  }
}

.btn_tab {
  background: #fff;
  color: #767d95;
  border-radius: 4px;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3em;
  letter-spacing: 0.04em;
  padding: 8px 11px;
  margin-top: 25px !important;
  display: inline-block;
  transition: 300ms;

  &:hover {
    background: #2ca8dd;
    color: #fff;
  }
}

.tab_image {
  height: fit-content;
  position: sticky;
  top: 130px;

  & .tab_image_inner {
    aspect-ratio: 552 / 499;
    height: 100%;
  }
}

.tab_image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 767px) {
  .expertise_tabs {
    display: block;
  }

  .tabs_content {
    display: block;
  }

  .tab_infos {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .tab_item {
    padding: 20px 0;
    border-radius: 0;
  }

  .tab_item:first-of-type {
    border-top: 1px solid #8095b333;
  }

  .tab_item.active {
    background: transparent;

    & .tab_header::after {
      rotate: 180deg;
      top: auto;
      bottom: 50%;
    }
  }

  .tab_header {
    position: relative;
    padding-right: 20px;
	 align-items: start;

    &::after {
      content: "";
      background: url('data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"> <path d="M14.702 4 16 5.3l-8.015 8.001L0 5.33l1.298-1.3 6.687 6.675L14.702 4Z" fill="%23003366"></path> </svg>');
      background-position: center;
      background-repeat: no-repeat;
      background-size: contain;
      height: 16px;
      width: 16px;
      position: absolute;
      top: 50%;
      right: 0;
      transform: translateY(-50%);
      transition: 500ms;
    }
  }

  .tab_body {
    display: none;
    margin-top: 12px;
  }

  #page-container
    #et-boc
    #et-main-area
    #main-content
    .expertise_tabs
    > .tabs_content
    > .tab_infos
    > .tab_item
    > .tab_header
    > h3 {
    font-size: 18px !important;
  }

  .tab_header img.tab_icon {
    width: 18px;
    height: 18px;
  }

  .tab_body p {
    font-size: 14px;
    line-height: 1.4em;
  }

  .tab_body .btn_tab {
    display: inline-block;
    margin-top: 18px !important;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* On cache la colonne d’image desktop */
  .tab_image {
    display: none;
  }

  /* Image intégrée à chaque bloc actif */
  .tab_body img.mobile_tab_img {
    width: 100%;
    border-radius: 10px;
    margin-top: 15px;
  }
}
