/* =================================
   HEADER STYLES - GoDataTravel
   Fond blanc + Syne font
   ================================= */

.header {
  background: #ffffff;
  opacity: 1;
  color: #1e5799;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── Logo ──────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logo img {
  height: 44px;
  width: auto;
}

.logo-wordmark {
  font-family: 'Syne', sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  white-space: nowrap;
}

.logo-text-go     { color: #f97316; }
.logo-text-data   { color: #f5a500; }
.logo-text-travel { color: #1e5799; }

/* ── Navigation desktop ────────────────── */
.nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-menu a {
  font-family: 'Syne', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1e5799;
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #f97316;
  background: rgba(249,115,22,0.06);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #f97316;
  border-radius: 2px;
}

/* ── Côté droit ────────────────────────── */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* ── CTA ───────────────────────────────── */
.cta-button {
  background: #f97316;
  color: #fff;
  padding: 0.6rem 1.3rem;
  border-radius: 25px;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 3px 12px rgba(249,115,22,0.30);
}

.cta-button:hover {
  background: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,0.40);
}

.cta-desktop { display: inline-flex; }
.cta-mobile  { display: none; }

/* ── Language toggle ───────────────────── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(30,87,153,0.08);
  border-radius: 50px;
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #1e5799;
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lang-btn:hover { color: #f97316; }

.lang-btn.active {
  background: #f97316;
  color: #fff;
  box-shadow: 0 2px 8px rgba(249,115,22,0.3);
}

/* ════════════════════════════════════════
   HAMBURGER — 3 lignes professionnelles
   ════════════════════════════════════════ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1.5px solid rgba(30,87,153,0.20);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(30,87,153,0.06);
  border-color: rgba(30,87,153,0.40);
}

/* Les 3 lignes */
.nav-toggle span {
  display: block;
  height: 2px;
  background: #1e5799;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.nav-toggle span:nth-child(1) { width: 20px; }
.nav-toggle span:nth-child(2) { width: 14px; align-self: flex-start; margin-left: 11px; }
.nav-toggle span:nth-child(3) { width: 20px; }

/* ── Visibilité lang desktop/mobile ── */
.lang-mobile  { display: none; }
.lang-desktop { display: flex; }

/* ═══════════════════════════════════════
   MOBILE  ≤ 1024px
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {

  .nav-container {
    padding: 0 1rem;
    height: 60px;
  }

  .logo img      { height: 36px; }
  .logo-wordmark { font-size: 1.3rem; }

  /* Hamburger visible */
  .nav-toggle {
    display: inline-flex;
  }

  .cta-desktop  { display: none; }
  .lang-desktop { display: none; }

  /* Panneau menu mobile — fermé par défaut */
  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    z-index: 9999;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-menu a {
    padding: 13px 14px;
    font-size: 0.95rem;
    border-radius: 10px;
    white-space: normal;
  }

  .nav-menu a.active::after { display: none; }

  .cta-mobile {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  .lang-mobile {
    display: flex;
    margin: 8px auto 0;
    justify-content: center;
  }

  /* OUVERTURE du menu */
  .header.menu-open .nav-menu { display: flex; }

  /* Hamburger → X animé */
  .header.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    width: 20px;
  }
  .header.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
    width: 0;
  }
  .header.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 20px;
    margin-left: 0;
  }
}

/* Très petits écrans */
@media (max-width: 480px) {
  .logo-wordmark { font-size: 1.15rem; }
  .cta-button    { padding: 0.6rem 1rem; font-size: 0.82rem; }
}
