/* Header & navigation mobile — aligné accueil / pages intérieures */

.header {
  position: relative;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  transition: padding 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.header.is-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.5rem 1.5rem;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
}

.header.is-scrolled::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 100vw;
  margin-left: -50vw;
  background: linear-gradient(to right, #111111 0%, #1f222e 50%, #111111 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  z-index: -1;
  pointer-events: none;
}

.logo {
  height: 5rem;
  width: auto;
  transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s ease;
}

.header.is-scrolled .logo {
  height: 3.5rem;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-footer {
  height: 5rem;
  width: auto;
}

.nav-desktop a {
  color: white;
  text-decoration: none;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-desktop a:hover {
  color: var(--odomo-blue, #1a73e8);
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--odomo-blue, #1a73e8);
  transition: width 0.3s ease;
}

.nav-desktop a:hover::after {
  width: 100%;
}

.burger-btn {
  display: none;
  width: 24px;
  height: 16px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 215;
}

.burger-line {
  width: 100%;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease;
}

.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 300px;
  height: 100vh;
  background: #1a1c26;
  padding: 6rem 1.5rem 2rem;
  transition: right 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 210;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile.open {
  right: 0;
}

.nav-mobile a {
  display: block;
  color: white;
  padding: 1rem 0;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s ease;
  text-decoration: none;
}

.nav-mobile a:hover {
  color: var(--odomo-blue, #1a73e8);
}

.nav-mobile .mobile-cta {
  display: block;
  text-align: center;
  margin: 1.5rem 0 0;
  padding: 0.8rem;
  border-radius: 2rem;
  background: var(--odomo-blue, #1a73e8);
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.nav-mobile .mobile-cta:hover {
  background: white;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 205;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
}

.burger-btn.open .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.open .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-btn.open .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1023px) {
  .header .nav-desktop,
  .header nav.nav-desktop,
  .header .menu-primary-menu-container,
  .header #menu-primary-menu {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }

  .header .header-cta,
  .header .header-cta.cta {
    display: none !important;
  }

  .header .burger-btn {
    display: flex !important;
    margin-left: auto;
  }

  .header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
  }

  .header-logo .logo,
  .header-logo img {
    height: 3.25rem;
  }
}
