/* Navigation : burger + panneau uniquement < 1024px (tablette incluse) */

body.abit-nav-open {
  overflow: hidden;
}

.abit-header__cta-short {
  display: none;
}

@media (max-width: 379px) {
  .abit-header__cta-full {
    display: none;
  }
  .abit-header__cta-short {
    display: inline;
  }
}

.abit-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 0.35rem;
  background: transparent;
  cursor: pointer;
}

.abit-header__burger span {
  display: block;
  height: 2px;
  width: 1.15rem;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.abit-header__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.abit-header__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.abit-header__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.abit-header__burger:focus-visible {
  outline: 2px solid #5bc6f0;
  outline-offset: 2px;
}

/* Panneau mobile / tablette : plein écran sous la barre */
.abit-mobile-nav {
  display: none;
  position: fixed;
  top: 3.75rem;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 29;
  flex-direction: column;
  gap: 0;
  padding: 1.35rem 1.5rem 2rem;
  background: #123049;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.abit-mobile-nav.is-open {
  display: none;
}

.abit-mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.abit-mobile-nav__link {
  display: block;
  padding: 0.95rem 0.15rem;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.abit-mobile-nav__link:hover,
.abit-mobile-nav__link:focus-visible {
  color: #ffc72c;
}

.abit-mobile-nav__cta {
  margin-top: 1.35rem;
  display: inline-flex;
  align-self: stretch;
  justify-content: center;
  padding: 0.85rem 1.1rem;
  border: 2px solid #ffc72c;
  border-radius: 999px;
  color: #123049;
  background: #ffc72c;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.abit-mobile-nav__cta:hover {
  background: #f0c200;
  border-color: #f0c200;
}

@media (max-width: 1023.98px) {
  .abit-header__burger {
    display: inline-flex;
  }

  .abit-mobile-nav.is-open {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .abit-header__burger,
  .abit-mobile-nav,
  .abit-mobile-nav.is-open {
    display: none !important;
  }
}

/* Sélecteur de langue */
.abit-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 0.15rem;
}

.abit-lang__item {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  padding: 0.15rem 0.2rem;
}

a.abit-lang__item:hover,
a.abit-lang__item:focus-visible {
  color: #fff;
}

.abit-lang__item--active {
  color: #ffc72c;
}

.abit-lang__sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.65rem;
  user-select: none;
}
