/* Hero accueil — images seules, 500px, onglets sous le visuel */

.kt-hero.kt-hero--keytech {
  position: relative;
  z-index: 0;
  padding: 0;
  margin: 0;
  background: #fff;
}

.kt-hero--keytech .kt-hero__frame {
  width: 100%;
  max-width: none;
  margin: 0;
}

.kt-hero--keytech .kt-hero__viewport {
  width: 100%;
  max-width: var(--kt-max, 1500px);
  height: var(--kt-banner-h, 500px);
  max-height: var(--kt-banner-h, 500px);
  margin: 0 auto;
  background: #000;
}

.kt-hero--encart .kt-hero__slide {
  position: absolute;
  inset: 0;
  padding: 0;
  margin: 0;
}

.kt-hero--encart .kt-hero__slide.is-active {
  display: block;
}

.kt-hero--encart .kt-hero__slide-hit {
  display: block;
  width: 100%;
  height: 100%;
  min-height: var(--kt-banner-h, 500px);
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-decoration: none;
}

/* Onglets uniquement — pas de texte sur le banner */
.kt-hero--keytech .kt-hero__tabs {
  display: flex;
  width: 100%;
  max-width: var(--kt-max, 1500px);
  margin: 0 auto;
  border: none;
  background: #fff;
}

.kt-hero--keytech .kt-hero__tabs li {
  flex: 1 1 0;
  min-width: 0;
}

.kt-hero--keytech .kt-hero__tabs button {
  width: 100%;
  border-top: 1px solid #eef1f4;
  border-right: 1px solid #eef1f4;
  border-bottom: 1px solid #eef1f4;
  background: #fff;
  color: var(--kt-header-bg, #1e2b50);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.kt-hero--keytech .kt-hero__tabs li:last-child button {
  border-right: none;
}

.kt-hero--keytech .kt-hero__tabs button.is-active {
  background: var(--kt-green, #00ae01);
  color: #fff;
}

.kt-hero--keytech .kt-hero__tabs button:hover:not(.is-active) {
  background: #f4f7fb;
  color: var(--kt-blue, #0018b4);
}

.kt-hero--keytech ~ .our-category {
  padding-top: 56px;
  margin-top: 0;
}

@media (max-width: 900px) {
  .kt-hero--keytech .kt-hero__viewport {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 3 / 1;
  }

  .kt-hero--encart .kt-hero__slide-hit {
    min-height: 0;
    height: 100%;
    position: absolute;
    inset: 0;
  }

  .kt-hero--keytech ~ .our-category {
    padding-top: 40px;
  }

  .kt-hero--keytech .kt-hero__tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    flex-wrap: unset;
  }

  .kt-hero--keytech .kt-hero__tabs li {
    flex: unset;
    min-width: 0;
    height: 100%;
  }

  .kt-hero--keytech .kt-hero__tabs button {
    width: 100%;
    height: 100%;
    min-height: 2.75rem;
  }
}

@media (max-width: 560px) {
  .kt-hero--keytech .kt-hero__tabs {
    grid-template-columns: 1fr 1fr;
  }

  .kt-hero--keytech .kt-hero__tabs li:last-child {
    grid-column: 1 / -1;
  }

  .kt-hero--keytech .kt-hero__tabs button {
    font-size: 0.62rem;
    padding: 0.55rem 0.35rem;
  }
}
