/* ==========================================================================
   Hero - nouvelle charte Majesteam
   ========================================================================== */
.brand-hero {
  width: 100%;
  padding: 56px 0 42px;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.brand-hero__inner {
  display: grid;
  grid-template-columns: minmax(420px, 0.85fr) minmax(720px, 1.35fr);
  align-items: center;
  gap: clamp(28px, 3vw, 48px);
  width: min(96%, 1640px);
  margin: 0 auto;
}

.brand-hero__identity {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-hero__logo-link {
  display: block;
  width: min(100%, 650px);
  text-decoration: none;
}

.brand-hero__logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.brand-hero__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.78);
  min-width: 0;
}

.brand-feature {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  background: #000;
  color: inherit;
  text-decoration: none;
}

.brand-feature + .brand-feature {
  border-left: 1px solid rgba(255, 255, 255, 0.78);
}

.brand-feature__media {
  aspect-ratio: 16 / 10;
  min-width: 0;
  overflow: hidden;
  background: #080808;
}

.brand-feature__media .field,
.brand-feature__media .field__item,
.brand-feature__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-feature__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 280ms ease, filter 280ms ease;
}

.brand-feature:hover .brand-feature__media img,
.brand-feature:focus-visible .brand-feature__media img {
  transform: scale(1.035);
  filter: contrast(1.06) saturate(1.08);
}

.brand-feature:focus-visible,
.brand-hero__logo-link:focus-visible {
  outline: 2px solid #d6001c;
  outline-offset: 4px;
}

.brand-feature__title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin: 0;
  padding: 8px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.brand-feature:hover .brand-feature__title,
.brand-feature:focus-visible .brand-feature__title {
  color: #00aeef;
}

@media (max-width: 1180px) {
  .brand-hero__inner {
    grid-template-columns: minmax(330px, 0.8fr) minmax(600px, 1.3fr);
    gap: 34px;
  }

  .brand-hero__logo {
    width: 100%;
  }

  .brand-feature__title {
    font-size: 10px;
  }
}

@media (max-width: 900px) {
  .brand-hero {
    padding: 42px 0 34px;
  }

  .brand-hero__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .brand-hero__identity {
    justify-content: center;
  }

  .brand-hero__logo {
    width: min(100%, 650px);
  }
}

@media (max-width: 640px) {
  .brand-hero {
    padding: 30px 0 26px;
  }

  .brand-hero__inner {
    width: calc(100% - 32px);
    gap: 26px;
  }

  .brand-hero__features {
    grid-template-columns: 1fr;
    border: 0;
    gap: 14px;
  }

  .brand-feature {
    border: 1px solid rgba(255, 255, 255, 0.72);
  }

  .brand-feature + .brand-feature {
    border-left: 1px solid rgba(255, 255, 255, 0.72);
  }

  .brand-feature__media {
    aspect-ratio: 16 / 9;
  }
}
