/* Mahat Advisory — barre de navigation principale (cohérente site) */
.mh-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #040720;
  display: flex;
  align-items: center;
  padding: 0 48px;
  height: 88px;
  gap: 2px;
  border-bottom: 1px solid rgba(200, 154, 40, 0.12);
}
.mh-logo {
  display: flex;
  align-items: center;
  margin-right: auto;
  line-height: 0;
  text-decoration: none;
  white-space: nowrap;
}
.mh-logo img {
  height: 54px;
  width: auto;
  display: block;
}
.mh-logo:hover img {
  opacity: 0.92;
  filter: brightness(1.06);
}
.mh-item {
  position: relative;
}
.mh-link {
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: 88px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
  gap: 5px;
}
.mh-link::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.5;
  transition: transform 0.2s;
}
.mh-item:not(:has(.mh-dropdown)) .mh-link::after {
  display: none;
}
.mh-item:hover > .mh-link,
.mh-item.nav-active > .mh-link {
  color: #c89a28;
}
.mh-item:hover > .mh-link::after,
.mh-item.nav-active > .mh-link::after {
  transform: rotate(-135deg) translateY(-2px);
  opacity: 1;
}
.mh-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 300;
}
.mhd-right {
  left: auto;
  right: 0;
}
.mh-item:hover > .mh-dropdown {
  display: block;
}
.mhd-label {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9c772b;
  padding: 10px 12px 4px;
  margin-top: 2px;
}
.mhd-item {
  display: block;
  padding: 8px 12px;
  font-size: 0.75rem;
  color: #14110a;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s;
  line-height: 1.4;
}
.mhd-item:hover {
  background: #faf8f2;
}
.mhd-edge {
  color: #040720;
  font-weight: 600;
}
.mhd-edge:hover {
  background: #eee8d5;
}
.mhd-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: #c89a28;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.mh-cta {
  margin-left: 10px;
  background: #c89a28;
  color: #040720 !important;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.mh-cta:hover {
  background: #9c772b;
}
.mh-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 12px;
}
.mh-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 1px;
  transition: all 0.3s;
}
.mh-nav.open .mh-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mh-nav.open .mh-burger span:nth-child(2) {
  opacity: 0;
}
.mh-nav.open .mh-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 860px) {
  .mh-nav {
    padding: 0 20px;
    flex-wrap: wrap;
    height: auto;
    min-height: 72px;
  }
  .mh-logo {
    padding: 14px 0;
  }
  .mh-logo img {
    height: 44px;
  }
  .mh-item,
  .mh-cta.desktop-only {
    display: none;
  }
  .mh-burger {
    display: flex;
  }
  .mh-nav.open .mh-item {
    display: block;
    width: 100%;
  }
  .mh-nav.open .mh-cta {
    display: block;
    width: 100%;
    text-align: center;
    margin: 8px 0 12px;
    padding: 12px;
  }
  .mh-link {
    height: 44px;
    padding: 0 8px;
    font-size: 0.72rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .mh-link::after {
    display: none;
  }
  .mh-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: #040720;
    padding: 0 0 4px 16px;
    max-height: none;
  }
  .mhd-label {
    color: rgba(200, 154, 40, 0.6);
  }
  .mhd-item {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.7rem;
  }
  .mhd-item:hover {
    background: rgba(255, 255, 255, 0.05);
  }
  .mh-item:hover > .mh-dropdown,
  .mh-item > .mh-dropdown {
    display: none;
  }
  .mh-item.mob-open > .mh-dropdown {
    display: block;
  }
  .mh-nav.open .mh-cta {
    margin-left: 0;
  }
}
