/* ============================================
   HUB International — FPQ #5
   Navigation & Menu CSS
   ============================================ */

/* ── Topbar layout ── */
.topbar {
  background: var(--hub-navy-3);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 24px rgba(38,55,70,.35);
}

.topbar-left  { display: flex; align-items: center; gap: 0; }
.topbar-right { display: flex; align-items: center; gap: 12px; }

/* ── Logo ── */
.logo { display: flex; align-items: center; margin-right: 40px; }
.logo img { height: 44px; width: auto; }

/* ── Nav liens desktop ── */
.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none;
}
.nav-links li a {
  display: flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.68);
  font-size: 13px; font-weight: 500;
  padding: 8px 13px;
  border-radius: 6px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-links li a i {
  font-size: 12px;
  color: var(--hub-blue);
  opacity: .8;
}
.nav-links li a:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
}
.nav-links li a.active {
  color: var(--hub-blue);
  background: rgba(0,160,225,.1);
}

/* ── Séparateur vertical ── */
.nav-sep {
  width: 1px; height: 24px;
  background: rgba(255,255,255,.1);
  margin: 0 8px;
}

/* ── Switcher langue ── */
.lang-switcher {
  display: flex; align-items: center;
  background: rgba(255,255,255,.07);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: 11px; font-weight: 700;
  letter-spacing: .8px;
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--font-body);
}
.lang-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
.lang-btn.active {
  background: var(--hub-gradient);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,160,225,.3);
}

/* ── CTA topbar ── */
.topbar-cta {
  background: var(--hub-gradient);
  color: var(--white); font-weight: 700; font-size: 13px;
  padding: 9px 20px; border-radius: var(--radius-sm);
  transition: all .2s; box-shadow: var(--shadow-blue);
  white-space: nowrap; display: flex; align-items: center; gap: 7px;
}
.topbar-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }
.topbar-cta i { font-size: 12px; }

/* ── Hamburger (mobile) ── */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07);
  border: none; border-radius: 6px; cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: rgba(255,255,255,.8);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile drawer ── */
.mobile-nav {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--hub-navy-3);
  z-index: 199;
  flex-direction: column;
  padding: 24px 24px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.mobile-nav.open {
  transform: translateX(0);
}
@media (max-width: 900px) {
  .mobile-nav { display: flex; }
}

.mobile-nav-links {
  list-style: none;
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 28px;
}
.mobile-nav-links li a {
  display: flex; align-items: center; gap: 14px;
  color: rgba(255,255,255,.75);
  font-size: 16px; font-weight: 600;
  padding: 14px 16px;
  border-radius: 10px;
  transition: all .2s;
  border: 1px solid transparent;
}
.mobile-nav-links li a i {
  width: 20px; text-align: center;
  color: var(--hub-blue); font-size: 15px;
}
.mobile-nav-links li a:hover,
.mobile-nav-links li a.active {
  background: rgba(0,160,225,.1);
  border-color: rgba(0,160,225,.2);
  color: #fff;
}
.mobile-nav-divider {
  height: 1px; background: rgba(255,255,255,.08);
  margin: 12px 0;
}
.mobile-lang-switcher {
  display: flex; gap: 10px; margin-bottom: 24px;
}
.mobile-lang-btn {
  flex: 1;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.6);
  font-size: 14px; font-weight: 700; letter-spacing: 1px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.mobile-lang-btn.active {
  background: var(--hub-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.mobile-cta {
  background: var(--hub-gradient);
  color: #fff; font-weight: 700; font-size: 15px;
  padding: 16px; border-radius: 10px;
  text-align: center; display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: var(--shadow-blue);
  border: none; cursor: pointer; font-family: var(--font-body);
}
.mobile-cta:hover { filter: brightness(1.08); }

/* ── Scroll spy highlight ── */
.nav-links li a.active {
  color: var(--hub-blue);
  background: rgba(0,160,225,.1);
}

/* ── Responsive : masquer nav desktop ── */
@media (max-width: 1100px) {
  .nav-links li a { padding: 8px 10px; font-size: 12px; }
  .logo { margin-right: 20px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-sep { display: none; }
  .lang-switcher { display: none; }
  .topbar-cta { display: none; }
  .hamburger { display: flex; }
  .topbar { padding: 0 20px; }
}
