/* Barre utilitaire — structure alignée sur header-top Lusinage */

.head-top {
  --ht-bg: var(--color-primary-dark, #002e58);
  --ht-bg-icon: rgba(0, 0, 0, 0.22);
  --ht-divider: rgba(255, 255, 255, 0.22);
  --ht-text: #ffffff;
  --ht-font: 'Inter', 'DM Sans', ui-sans-serif, system-ui, sans-serif;

  position: relative;
  z-index: 75;
  background: var(--ht-bg);
  color: var(--ht-text);
  font-family: var(--ht-font);
  font-size: 0.875rem;
  line-height: 1.375rem;
}

.head-top__container {
  padding-left: var(--container-padding, 1rem);
  padding-right: var(--container-padding, 1rem);
}

.head-top__row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
}

.head-top__start,
.head-top__nav {
  display: none;
}

.head-top__center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4375rem;
  margin: 0;
  padding: 0.75rem 0;
  font-size: 0.875rem;
  line-height: 1.375rem;
  text-align: center;
}

.head-top__center-icon {
  display: inline-flex;
  align-items: center;
  font-size: 1.125rem;
  line-height: 1;
}

.head-top__center-icon .hgi,
.head-top__center-icon i {
  color: var(--ht-text) !important;
}

.head-top__utilities {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.head-top__utility {
  position: relative;
}

.head-top__utility--locale .head-top__utility-btn {
  padding-right: 0;
}

.head-top__locale-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.head-top__mobility-route {
  gap: 0.4rem;
}

.head-top__mobility-end {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 7.5rem;
}

.head-top__mobility-end [data-origin-label],
.head-top__mobility-end [data-destination-label] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.head-top__mobility-arrow {
  opacity: 0.75;
  font-size: 0.8125rem;
}

@media (max-width: 767px) {
  .head-top__mobility-end [data-origin-label],
  .head-top__mobility-end [data-destination-label] {
    display: none;
  }
}

.head-top__utility--lang::after {
  display: none;
}

.head-top__utility-btn,
.head-top__utility-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1875rem 0.75rem 0;
  color: var(--ht-text);
  font-size: 0.875rem;
  line-height: 1.375rem;
  white-space: nowrap;
  text-decoration: none;
}

.head-top__utility-link:hover {
  opacity: 0.92;
}

.head-top__utility-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.head-top__utility-btn {
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.head-top__utility-btn:hover {
  opacity: 0.92;
}

.head-top__utility-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.head-top__utility-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--ht-bg-icon);
}

.head-top__utility-icon .hgi,
.head-top__utility-icon i {
  font-size: 1.125rem;
  color: var(--ht-text) !important;
}

.head-top__chevron {
  font-size: 1.125rem;
  line-height: 1;
}

.head-top__chevron.hgi,
.head-top__chevron i {
  color: var(--ht-text) !important;
}

.head-top__menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 95;
  min-width: 12.5rem;
  margin: 0;
  padding: 0.375rem 0;
  list-style: none;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 12px 32px rgba(22, 28, 36, 0.16);
}

.head-top__menu-option {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: #161c24;
  font-family: inherit;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}

.head-top__menu-option:hover,
.head-top__menu-option[aria-selected='true'] {
  background: rgba(12, 39, 179, 0.06);
  color: var(--color-primary, #0c27b3);
}

.head-top__menu-option:focus-visible {
  outline: 2px solid var(--color-primary, #0c27b3);
  outline-offset: -2px;
}

.head-top__nav-list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.head-top__nav-link {
  display: block;
  padding: 0.75rem 0;
  color: var(--ht-text);
  font-size: 0.875rem;
  line-height: 1.375rem;
  text-decoration: none;
  white-space: nowrap;
}

.head-top__nav-link:hover {
  opacity: 0.9;
}

.head-top__nav-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.head-top__nav-item--divider .head-top__nav-link {
  padding-right: 1.1875rem;
  margin-right: 1.1875rem;
  position: relative;
}

.head-top__nav-item--divider .head-top__nav-link::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 1.875rem;
  background: var(--ht-divider);
  transform: translateY(-50%);
}

@media (min-width: 1200px) {
  .head-top__row {
    justify-content: space-between;
  }

  .head-top__start,
  .head-top__nav {
    display: block;
    flex: 1 1 0;
    min-width: 0;
  }

  .head-top__nav {
    flex: 1 1 0;
    display: flex;
    justify-content: flex-end;
  }

  .head-top__center {
    flex: 0 1 auto;
    padding: 0.75rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .head-top__utility-btn,
  .head-top__nav-link {
    transition: none;
  }
}
