/* ══════════════════════════════════════════
   NAVBAR — barre flottante (sans backdrop-filter :
   évite le bug Chrome/Edge qui masque le contenu)
   ══════════════════════════════════════════ */

.site-nav {
  position: fixed;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 1000;
  width: auto;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 12px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border: 1px solid rgba(254, 115, 20, 0.14);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(26, 18, 8, 0.1);
  transform: none;
  overflow: visible;
}

/* ── Logo ── */
.site-nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #1a1208 !important;
  text-decoration: none;
  text-transform: none;
}

.site-nav .logo-mark {
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
  background: transparent;
}

/* ── Liens centraux ── */
.nav-links {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 4px;
  min-width: 0;
  background: rgba(26, 18, 8, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(26, 18, 8, 0.06);
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: #3d342c !important;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: #1a1208 !important;
  background: rgba(255, 255, 255, 0.9);
}

.nav-links a.is-active {
  color: var(--orange) !important;
  background: #fff;
  font-weight: 600;
}

/* ── Zone droite ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.site-nav .lang-selected {
  color: #1a1208 !important;
}

/* ── Login (web app) ── */
.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 12px;
  border: none;
  background: #3b6fff;
  color: #ffffff !important;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(59, 111, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.nav-login:hover {
  color: #ffffff !important;
  background: #2f5ef0;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 111, 255, 0.45);
}

/* ── CTA ── */
.nav-cta {
  background: linear-gradient(135deg, #E85A0A 0%, #FE7314 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 12px;
  padding: 9px 18px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(254, 115, 20, 0.38);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(254, 115, 20, 0.4);
}

/* ── Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(26, 18, 8, 0.05);
  border: 1px solid rgba(26, 18, 8, 0.1);
  cursor: pointer;
  padding: 0;
  border-radius: 10px;
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #1a1208;
  border-radius: 99px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 10px;
    right: 10px;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    background: #ffffff;
    border: 1px solid rgba(254, 115, 20, 0.14);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(26, 18, 8, 0.14);
    z-index: 9998;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    padding: 13px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a1208 !important;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-cta,
  .lang-dropdown {
    display: none;
  }

  .site-nav {
    top: 10px;
    left: 10px;
    right: 10px;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .site-nav .logo {
    font-size: 1.05rem;
  }

  .site-nav .logo-mark {
    width: 32px;
    height: 32px;
  }
}
