/* Barre supérieure + navigation (pas de wrapper .site-header : deux blocs frères dans le DOM) */

/* --- Bandeau bleu (contact + langue) — défile avec la page, pas sticky --- */
.site-header__top {
  position: relative;
  z-index: 1060;
  background-color: #4c7da4;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
}

.site-header__top-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 2.25rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.site-header__top-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__top-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-header__top-icon {
  flex-shrink: 0;
  opacity: 0.95;
}

.site-header__lang-dropdown {
  list-style: none;
}

button.site-header__top-link {
  font: inherit;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  appearance: none;
  cursor: pointer;
}

button.site-header__top-link:focus {
  outline: none;
}

button.site-header__top-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  border-radius: 2px;
}

.site-header__top-link--lang:hover {
  text-decoration: none;
}

.site-header__top-link--lang.dropdown-toggle {
  gap: 0.4rem;
}

.site-header__top-link--lang.dropdown-toggle::after {
  display: none;
}

.site-header__lang-menu {
  --bs-dropdown-min-width: 11rem;
  --bs-dropdown-padding-y: 0.35rem;
  --bs-dropdown-link-active-bg: rgba(76, 125, 164, 0.2);
  margin-top: 0.1rem !important;
  border: none;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(5, 10, 16, 0.18);
}

.site-header__lang-menu .dropdown-item {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  color: #2b333d;
}

.site-header__lang-menu .dropdown-item:hover,
.site-header__lang-menu .dropdown-item:focus {
  background-color: rgba(76, 125, 164, 0.12);
  color: #1a3a52;
}

.site-header__lang-menu .dropdown-item.active,
.site-header__lang-menu .dropdown-item:active {
  background-color: rgba(76, 125, 164, 0.22);
  color: #152a3d;
}

@media (max-width: 575.98px) {
  .site-header__top-inner {
    justify-content: center;
  }

  .site-header__top-links {
    justify-content: center;
  }
}

/* --- Barre navigation — seule partie sticky --- */
.site-header__main {
  position: sticky;
  top: 0;
  z-index: 1050;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(5, 10, 16, 0.08);
  box-shadow: 0 2px 12px rgba(5, 10, 16, 0.04);
}

.site-header__navbar {
  --bs-navbar-padding-y: 0.65rem;
}

.site-header__navbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.site-header__brand {
  display: flex;
  align-items: center;
  padding: 0.35rem 0;
  margin-right: 1rem;
}

.site-header__logo {
  display: block;
  height: clamp(2.5rem, 6vw, 3.25rem);
  width: auto;
}

.site-header__toggler {
  border: 1px solid rgba(76, 125, 164, 0.35);
  padding: 0.4rem 0.6rem;
}

.site-header__toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(76, 125, 164, 0.25);
}

.site-header__toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2876, 125, 164, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.site-header__navbar .navbar-nav .nav-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: #4c7da4;
  padding: 0.45rem 0.75rem 0.4rem;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-header__navbar .navbar-nav .nav-link:hover,
.site-header__navbar .navbar-nav .nav-link:focus {
  color: #3a6b92;
}

.site-header__navbar .navbar-nav .nav-link.active {
  color: #2d5470;
  border-bottom-color: #4c7da4;
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff !important;
  background-color: #4c7da4;
  border: 2px solid #4c7da4;
  border-radius: 4px;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.site-header__cta:hover {
  background-color: #3f6d90;
  border-color: #3f6d90;
  color: #ffffff !important;
}

@media (max-width: 991.98px) {
  .site-header__navbar .navbar-collapse {
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
  }

  .site-header__navbar .navbar-nav .nav-item:last-child {
    margin-top: 0.5rem;
  }

  .site-header__cta {
    width: 100%;
  }
}
