.section--image_tab {
  position: relative;
  background-color: var(--adebeo-color-primary);
  color: var(--adebeo-white);
  padding: var(--adebeo-spacing-l) 0;
}
/* full width */
.section--image_tab.section--fullwidth .section__image-tab-inner {
  margin-top: var(--adebeo-spacing-m);
}
/* Heading */
.section--image_tab .section__heading {
  width: var(--adebeo-container-width);
  margin: 0 auto;
}

/* Tabs */
.section__image-tab-inner-tabs-tab {
  position: relative;
  display: grid;
  grid-template-rows: min-content;
  grid-template-columns: 100%;
  gap: 8px var(--adebeo-spacing-inner);
  align-items: center;
}
.section__image-tab-inner-tabs-tab:has(.section__image-tab-inner-tabs-tab-icon),
.section__image-tab-inner-tabs-tab:has(.section__image-tab-inner-tabs-tab-icon-wrapper) {
  grid-template-columns: 38px auto;
}

.section__image-tab-inner-tabs-tab:before {
  content: '';
  display: block;
  position: absolute;
  z-index: 2;
  top: 31px;
  right: 24px;
  height: 15px;
  width: 22px;
  transform: rotate(0deg);
  transition:
    transform 0.3s ease-in-out,
    background-image 0.2s 0.2s ease-in-out;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 16.501"><path fill="%23d54414" d="M15.756 0a.75.75 0 0 0-.537.22.75.75 0 0 0 0 1.061L21.438 7.5H.75a.75.75 0 0 0-.75.75.75.75 0 0 0 .75.75h20.69l-6.221 6.22a.75.75 0 0 0 0 1.061.75.75 0 0 0 1.06 0l7.496-7.496a.75.75 0 0 0 .055-.058.75.75 0 0 0 .04-.053.75.75 0 0 0 .003-.006.75.75 0 0 0 .033-.057.75.75 0 0 0 .004-.006.75.75 0 0 0 .03-.058.75.75 0 0 0 .001-.006.75.75 0 0 0 .024-.062.75.75 0 0 0 .002-.006.75.75 0 0 0 .016-.065.75.75 0 0 0 .002-.008.75.75 0 0 0 .01-.064.75.75 0 0 0 .003-.059.75.75 0 0 0 .002-.013.75.75 0 0 0 0-.008.75.75 0 0 0 0-.006.75.75 0 0 0-.004-.066.75.75 0 0 0 0-.006.75.75 0 0 0-.01-.067.75.75 0 0 0-.011-.052.75.75 0 0 0-.004-.018.75.75 0 0 0-.002-.006.75.75 0 0 0 0-.002.75.75 0 0 0-.025-.066.75.75 0 0 0-.018-.04.75.75 0 0 0-.012-.027.75.75 0 0 0-.035-.056.75.75 0 0 0-.03-.041.75.75 0 0 0-.011-.02.75.75 0 0 0-.004-.004.75.75 0 0 0-.045-.05.75.75 0 0 0-.004-.004.75.75 0 0 0-.006-.004l-.011-.012L16.279.221A.75.75 0 0 0 15.756 0Z"/></svg>')
    no-repeat;
  background-size: 22px 15px;
}

.section__image-tab-inner-tabs-tab-content {
  white-space: normal;
}

/* Icons */
.section__image-tab-inner-tabs-tab-icon-wrapper svg {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  object-position: left center;
}

/* Tabs Title */
.section__image-tab-inner-tabs-tab-title a {
  color: var(--adebeo-text-color);
  text-decoration: none;
}

.section__image-tab-inner-tabs-tab-title a:after {
  content: '';
  display: block;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
}

/* Images */
.section__image-tab-inner-tabs-images-image img {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.section__image-tab-inner-tabs-images-image--active img {
  opacity: 1;
}

/* Non full width */
.section--image_tab.section--normal .section__image-tab__content {
  margin-top: var(--adebeo-spacing-m);
}
.section--image_tab.section--button .section__image-tab__content {
  color: var(--adebeo-text-color);
}
.section--image_tab.section--normal .section__image-tab-inner-tabs ul:not(.glide__slides) {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--adebeo-spacing-m);
}
.section--image_tab.section--normal .section__image-tab-inner-tabs-tab path {
  fill: var(--adebeo-text-color);
}

/*  CTA */
.section__image-tab__cta {
  order: 9;
  grid-column: span 2;
  margin-top: var(--adebeo-spacing-m);
}
.section__image-tab__cta .button {
  margin: 0 auto;
}

/* Alternance des pages */
.section--image_tab:nth-of-type(even) + .section--image_tab,
.section--image_tab.section--white {
  padding-top: 0;
  padding-bottom: 0;
  background-color: var(--adebeo-white);
  color: var(--adebeo-text-color);
}

.section--image_tab:nth-of-type(even) + .section--image_tab .section__image-tab-inner-tabs-tab,
.section--image_tab.section--white .section__image-tab-inner-tabs-tab {
  border: 2px solid var(--adebeo-color-primary);
}
.section--image_tab.section--white.section--normal .section__image-tab-inner-tabs-tab {
  background-color: var(--adebeo-color-primary);
  border: none;
}
.section--image_tab.section--white.section--normal .section__image-tab-inner-tabs-tab-title {
    color: var(--adebeo-white);
}

@media (min-width: 1024px) {
  /* Full width */
  .section--image_tab.section--fullwidth {
    position: relative;
    padding-bottom: var(--adebeo-spacing-m);
  }
  .section--image_tab.section--fullwidth .section__image-tab__content {
    padding-right: 5.725vw;
    width: 50vw;
    margin-left: auto;
  }
  .section--image_tab.section--fullwidth .section__image-tab-inner-tabs {
    position: relative;
    z-index: 2;
  }
  /* suite */
  .section--image_tab--button:nth-of-type(odd) {
    background-color: var(--adebeo-white);
    color: var(--adebeo-text-color);
  }
  .section--image_tab--button:nth-of-type(odd) {
    background-color: var(--adebeo-white);
    color: var(--adebeo-text-color);
  }
  .section--image_tab--button:nth-of-type(odd) .section__image-tab-inner-tabs-tab {
    border: 2px solid var(--adebeo-color-primary);
  }
  .section--image_tab.section--button:nth-of-type(odd) .section__image-tab-inner {
    grid-template-columns: auto 30%;
  }
  .section--image_tab.section--button:nth-of-type(odd) .section__image-tab-inner-tabs {
    order: -1;
  }
  /* Heading */
  .section--image_tab.section--fullwidth .section__heading {
    width: 50vw;
    margin-left: auto;
    margin-right: 0;
    padding-right: 5.725vw;
    padding-left: 174px;
    grid-template-columns: auto;
  }
  /*  Tabs */
  .section--image_tab.section--button .section__image-tab__content {
    margin-top: var(--adebeo-spacing-m);
  }
  .section__image-tab-inner-tabs-tab:before {
    top: calc(50% - 7.5px);
    right: 30px;
  }
  .section--button .section__image-tab-inner-tabs-tab:before {
    top: 45px;
  }
  .section--image_tab .glide__track,
  .section--image_tab .glide__slides,
  .section__image-tab-inner-tabs.glide {
    overflow: visible;
  }
  .section--image_tab .glide__slides {
    flex-direction: column;
  }
  .section__image-tab-inner-tabs-tab {
    position: relative;
    z-index: 2;
    padding: var(--adebeo-spacing-m) 80px var(--adebeo-spacing-m) var(--adebeo-spacing-m);
    grid-auto-flow: dense;
  }

  .section--button .section__image-tab-inner-tabs-tab {
    gap: var(--adebeo-spacing-xs);
    padding: var(--adebeo-spacing-m);
    background-color: var(--adebeo-white);
    border-radius: var(--adebeo-border-radius-xs);
  }
  .section__image-tab-inner-tabs-tab:has(.section__image-tab-inner-tabs-tab-icon),
  .section__image-tab-inner-tabs-tab:has(.section__image-tab-inner-tabs-tab-icon-wrapper) {
    grid-template-columns: 110px auto;
  }
  .section--button .section__image-tab-inner-tabs-tab:has(.section__image-tab-inner-tabs-tab-icon),
  .section--button
    .section__image-tab-inner-tabs-tab:has(.section__image-tab-inner-tabs-tab-icon-wrapper) {
    grid-template-columns: 43px auto;
  }
  /* Hover active states */
  .section--image_tab.section--fullwidth .section__image-tab-inner-tabs-tab:after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: calc(100% + 5.725vw);
    height: 100%;
    background-color: var(--adebeo-white);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
  .section--image_tab.section--fullwidth .section__image-tab-inner-tabs-tab.active:after,
  .section--image_tab.section--fullwidth .section__image-tab-inner-tabs-tab:hover:after {
    opacity: 1;
  }
  .section--image_tab.section--fullwidth .section__image-tab-inner-arrow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(calc(-100% + 8px));
    width: 150px;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    clip-path: polygon(0 0, calc(100% - 8px) 0, calc(100% - 8px) 100%, 0% 100%);
  }
  .section--image_tab.section--fullwidth
    .section__image-tab-inner-tabs-tab.active
    .section__image-tab-inner-arrow,
  .section--image_tab.section--fullwidth
    .section__image-tab-inner-tabs-tab:hover
    .section__image-tab-inner-arrow {
    opacity: 1;
  }
  /* Tabs Arrow */
  .section__image-tab-inner-tabs-tab:hover:before,
  .section__image-tab-inner-tabs-tab.active:before {
    transform: rotate(0deg);
  }
  .section__image-tab-inner-tabs-tab:before {
    transform: rotate(45deg);
  }
  /* Tabs Title icon */
  .section__image-tab-inner-tabs-tab .section__image-tab-inner-tabs-tab-icon,
  .section__image-tab-inner-tabs-tab .section__image-tab-inner-tabs-tab-icon-wrapper {
    grid-row: span 2;
    width: 75px;
    height: 75px;
    margin: auto;
  }
  .section--button .section__image-tab-inner-tabs-tab .section__image-tab-inner-tabs-tab-icon,
  .section--button
    .section__image-tab-inner-tabs-tab
    .section__image-tab-inner-tabs-tab-icon-wrapper {
    width: 43px;
    height: 43px;
  }
  .section--button .section__image-tab-inner-tabs-tab .section__image-tab-inner-tabs-tab-icon {
    grid-row: 1;
    grid-column: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    aspect-ratio: 1/1;
  }
  .section__image-tab-inner-tabs-tab .section__image-tab-inner-tabs-tab-icon img {
    max-width: 100%;
  }
  .section__image-tab-inner-tabs-tab path {
    transition: fill 0.3s ease-in-out;
  }
  .section__image-tab-inner-tabs-tab:not(:hover) path[fill='#006270'] {
    fill: var(--adebeo-white);
  }
  /* Tabs Title */
  .section--image_tab.section--fullwidth:not(.section--button)
    .section__image-tab-inner-tabs-tab
    .section__image-tab-inner-tabs-tab-title,
  .section--image_tab.section--fullwidth:not(.section--button)
    .section__image-tab-inner-tabs-tab
    .section__image-tab-inner-tabs-tab-title
    a {
    color: var(--adebeo-white);
  }
  .section--image_tab.section--fullwidth:not(.section--button)
    .section__image-tab-inner-tabs-tab.active
    .section__image-tab-inner-tabs-tab-title,
  .section--image_tab.section--fullwidth:not(.section--button)
    .section__image-tab-inner-tabs-tab.active
    .section__image-tab-inner-tabs-tab-title
    a {
    color: var(--adebeo-text-color);
  }
  .section--image_tab:not(.section--button)
    .section__image-tab-inner-tabs-tab
    .section__image-tab-inner-tabs-tab-title
    a {
    color: var(--adebeo-text-color);
  }
  .section--image_tab.section--button
    .section__image-tab-inner-tabs-tab.active
    .section__image-tab-inner-tabs-tab-title,
  .section--image_tab.section--button
    .section__image-tab-inner-tabs-tab:hover
    .section__image-tab-inner-tabs-tab-title,
  .section--image_tab.section--button
    .section__image-tab-inner-tabs-tab.active
    .section__image-tab-inner-tabs-tab-title
    a,
  .section--image_tab.section--button
    .section__image-tab-inner-tabs-tab:hover
    .section__image-tab-inner-tabs-tab-title
    a {
    color: var(--adebeo-text-color) !important;
  }
  /* Tabs Content */
  .section__image-tab-inner-tabs-tab.active .section__image-tab-inner-tabs-tab-content,
  .section__image-tab-inner-tabs-tab:hover .section__image-tab-inner-tabs-tab-content {
    color: var(--adebeo-text-color);
  }
  .section--button .section__image-tab-inner-tabs-tab .section__image-tab-inner-tabs-tab-content {
    grid-column: span 2;
  }
  /* Images */
  .section--image_tab.section--fullwidth .section__image-tab-inner-tabs-images {
    position: absolute;
    top: 0;
    right: 50%;
    width: 50vw;
    height: 100%;
    z-index: 1;
  }

  .section--image_tab.section--fullwidth .section__image-tab-inner-tabs-images-image {
    display: none;
  }

  .section--image_tab.section--fullwidth .section__image-tab-inner-tabs-images-image--active {
    display: block;
    position: sticky;
    top: 0;
    left: 0;
    height: 100% !important;
    max-height: 100vh;
  }

  .section--image_tab.section--fullwidth .section__image-tab-inner-tabs-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
  }
  /* Normal width */
  .section--image_tab.section--normal .section__image-tab-inner,
  .section--image_tab.section--button .section__image-tab-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .section--image_tab.section--button .section__image-tab-inner {
    grid-template-columns: 30% auto;
    gap: 16px;
  }
  .section--image_tab.section--normal .section__image-tab-inner-tabs ul:not(.glide__slides),
  .section--image_tab.section--button .section__image-tab-inner-tabs ul:not(.glide__slides) {
    gap: 0;
  }
  .section--image_tab.section--button .section__image-tab-inner-tabs ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 16px;
    padding: 0;
  }
  .section--image_tab.section--button
    .section__image-tab-inner-tabs
    ul:has(.section__image-tab-inner-tabs-tab:last-child:nth-child(2)),
  .section--image_tab.section--button
    .section__image-tab-inner-tabs
    ul:has(.section__image-tab-inner-tabs-tab:last-child:nth-child(1)) {
    grid-template-columns: 1fr;
  }
  .section--image_tab.section--normal .section__image-tab-inner-tabs,
  .section--image_tab.section--button .section__image-tab-inner-tabs {
    order: 2;
  }
  .section--image_tab.section--button .section__image-tab-inner-tabs-images,
  .section--image_tab.section--normal .section__image-tab-inner-tabs-images {
    order: 1;
  }
  .section__image-tab-inner-tabs-images {
    min-height: 330px;
    height: 100%;
    position: relative;
  }
  .section__image-tab-inner-tabs {
    align-self: center;
  }
  /* Tabs */
  .section--image_tab.section--normal .section__image-tab-inner-tabs {
    background-color: var(--adebeo-white);
    transition: color 0.3s ease-in-out;
  }
  .section--image_tab.section--normal .section__image-tab-inner-tabs-tab {
    position: relative;
    z-index: 2;
  }
  .section--image_tab.section--normal .section__image-tab-inner-tabs-tab:after {
    content: '';
    display: block;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 0;
    background-color: var(--adebeo-accent-color);
    height: 100%;
    transition: width 0.3s ease-in-out;
  }
  .section--image_tab.section--normal .section__image-tab-inner-tabs-tab.active:after,
  .section--image_tab.section--normal .section__image-tab-inner-tabs-tab:hover:after {
    width: 100%;
  }
  /* arrow */
  .section--image_tab.section--normal .section__image-tab-inner-tabs-tab:hover:before,
  .section--image_tab.section--normal .section__image-tab-inner-tabs-tab.active:before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 16.501"><path fill="%23ffffff" d="M15.756 0a.75.75 0 0 0-.537.22.75.75 0 0 0 0 1.061L21.438 7.5H.75a.75.75 0 0 0-.75.75.75.75 0 0 0 .75.75h20.69l-6.221 6.22a.75.75 0 0 0 0 1.061.75.75 0 0 0 1.06 0l7.496-7.496a.75.75 0 0 0 .055-.058.75.75 0 0 0 .04-.053.75.75 0 0 0 .003-.006.75.75 0 0 0 .033-.057.75.75 0 0 0 .004-.006.75.75 0 0 0 .03-.058.75.75 0 0 0 .001-.006.75.75 0 0 0 .024-.062.75.75 0 0 0 .002-.006.75.75 0 0 0 .016-.065.75.75 0 0 0 .002-.008.75.75 0 0 0 .01-.064.75.75 0 0 0 .003-.059.75.75 0 0 0 .002-.013.75.75 0 0 0 0-.008.75.75 0 0 0 0-.006.75.75 0 0 0-.004-.066.75.75 0 0 0 0-.006.75.75 0 0 0-.01-.067.75.75 0 0 0-.011-.052.75.75 0 0 0-.004-.018.75.75 0 0 0-.002-.006.75.75 0 0 0 0-.002.75.75 0 0 0-.025-.066.75.75 0 0 0-.018-.04.75.75 0 0 0-.012-.027.75.75 0 0 0-.035-.056.75.75 0 0 0-.03-.041.75.75 0 0 0-.011-.02.75.75 0 0 0-.004-.004.75.75 0 0 0-.045-.05.75.75 0 0 0-.004-.004.75.75 0 0 0-.006-.004l-.011-.012L16.279.221A.75.75 0 0 0 15.756 0Z"/></svg>');
  }
  /* tabs content color */
  .section--image_tab.section--button .section__image-tab-inner-tabs-tab-title {
    padding-right: 50px;
  }
  .section--image_tab.section--normal .section__image-tab-inner-tabs-tab-title a,
  .section--image_tab.section--normal .section__image-tab-inner-tabs-tab-title,
  .section--image_tab.section--normal .section__image-tab-inner-tabs-tab-content {
    color: var(--adebeo-text-color);
  }
  .section--image_tab.section--normal
    .section__image-tab-inner-tabs-tab.active
    .section__image-tab-inner-tabs-tab-title,
  .section--image_tab.section--normal
    .section__image-tab-inner-tabs-tab.active
    .section__image-tab-inner-tabs-tab-title
    a,
  .section--image_tab.section--normal
    .section__image-tab-inner-tabs-tab.active
    .section__image-tab-inner-tabs-tab-content {
    color: var(--adebeo-white);
  }
  .section--image_tab.section--normal .section__image-tab-inner-tabs-tab.active path,
  .section--image_tab.section--normal .section__image-tab-inner-tabs-tab:hover path {
    fill: var(--adebeo-white);
  }
  /* images */
  .section--image_tab.section--normal .section__image-tab-inner-tabs-images-image,
  .section--image_tab.section--button .section__image-tab-inner-tabs-images-image {
    display: none;
    position: relative;
  }
  .section--image_tab.section--button .section__image-tab-inner-tabs-images-image--active,
  .section--image_tab.section--normal .section__image-tab-inner-tabs-images-image--active {
    display: block;
    width: 100%;
    height: 100%;
  }
  .section--image_tab.section--normal .section__image-tab-inner-tabs-images-image--active {
    height: 100% !important;
    aspect-ratio: unset;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
  }
  .section--image_tab.section--button .section__image-tab-inner-tabs-images-image img,
  .section--image_tab.section--normal .section__image-tab-inner-tabs-images-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
  }
}

@media (min-width: 768px) and (max-width: 1200px) {
  .section--image_tab.section--button .section__image-tab-inner {
    grid-template-columns: 45% auto;
    grid-gap: 16px;
  }
  .section--image_tab.section--button .section__image-tab-inner-tabs ul {
    grid-template-columns: 100%;
  }
}

@media (max-width: 1023px) {
  .section--button > .container {
    width: 100%;
    max-width: 100%;
  }
  /* Layout */
  .section--image_tab {
    overflow: hidden;
  }
  .section__image-tab-inner-tabs.glide {
    position: relative;
    z-index: 2;
    left: 0px;
    padding-left: 20px;
  }
  .glide__slides {
    display: flex;
  }
  /* Full width */
  .section--image_tab.section--fullwidth .section__image-tab-inner,
  .section--image_tab.section--button .section__image-tab-inner {
    padding-top: 218px;
    position: relative;
  }
  .section--image_tab.section--button .heading__description {
    margin-bottom: var(--adebeo-spacing-m);
  }
  .section__image-tab-inner-tabs-images img {
    position: absolute;
    top: 0;
    left: 0;
    margin-bottom: -72px;
    max-width: 100vw !important;
    width: 100vw !important;
    height: 290px !important;
    object-fit: cover;
  }
  /* Tab */
  .section__image-tab-inner-tabs-tab {
    z-index: 1;
    background-color: var(--adebeo-white);
    color: var(--adebeo-black);
    padding: var(--adebeo-spacing-inner);
    border-radius: var(--adebeo-border-radius-xs);
  }
  /* Tabs Arrow */
  .section__image-tab-inner-arrow {
    display: none;
  }
  /* Tabs Title */
  .section__image-tab-inner-tabs-tab-title {
    padding-right: 60px;
  }
  /* Tabs content */
  .section__image-tab-inner-tabs-tab-content {
    grid-column: span 2;
  }
}
