/* ============================================
   HEADER & NAVIGATION - VERSION AVEC ANIMATIONS ORIGINALES
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: all var(--transition);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

/* Logo */
.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.02);
}

.logo span {
  color: var(--accent);
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  padding: 4px;
}

/* Navigation */
.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.menu {
  display: flex;
  list-style: none;
  gap: 10px;
  margin: 0;
  padding: 0;
}

/* ============================================
   NAV-LINK AVEC ANIMATIONS ORIGINALES
   ============================================ */

.nav-link {
  all: unset;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  transition: color 0.2s ease;
}

/* Pseudo-éléments pour l'animation */
.nav-link::after,
.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -1;
  transition: all var(--transition);
}

.nav-link::before {
  transform: translate(0%, 0%);
  width: 100%;
  height: 100%;
  background: var(--surface-hover);
  border-radius: var(--radius-sm);
  opacity: 0;
}

.nav-link::after {
  transform: translate(3px, 3px);
  width: 15px;
  height: 15px;
  background: var(--primary);
  opacity: 0.15;
  border-radius: 50px;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::before {
  transform: translate(2%, 10%);
  width: 104%;
  height: 110%;
  opacity: 1;
  background: var(--surface-hover);
}

.nav-link:hover::after {
  border-radius: var(--radius-sm);
  transform: translate(0, 0);
  width: 100%;
  height: 100%;
  opacity: 0.05;
}

/* État actif */
.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active::before {
  opacity: 1;
  background: var(--primary);
  transform: translate(0%, 0%);
  width: 100%;
  height: 100%;
}

.nav-link.active::after {
  display: none;
}

.nav-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Header CTAs */
.header-ctas {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Sélecteur de devise */
.currency-selector select {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  background: white;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s;
}

.currency-selector select:focus {
  border-color: var(--primary);
  outline: none;
}

/* Bouton hamburger */
.menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background var(--transition-fast);
}

.menu-btn:hover {
  background: var(--surface-hover);
}

.menu-btn .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 4px 0;
  transition: all var(--transition);
  border-radius: 2px;
}

.menu-btn[aria-expanded="true"] .bar1 {
  transform: rotate(-45deg) translate(-4px, 5px);
}
.menu-btn[aria-expanded="true"] .bar2 {
  opacity: 0;
}
.menu-btn[aria-expanded="true"] .bar3 {
  transform: rotate(45deg) translate(-4px, -5px);
}

/* ============================================
   RESPONSIVE HEADER
   ============================================ */

@media (max-width: 992px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .header-ctas {
    gap: 4px;
  }
  .currency-selector.desktop-only {
    display: none;
  }
}

@media (max-width: 768px) {
  .logo {
    font-size: 17px;
  }
  .logo img {
    width: 34px;
    height: 34px;
  }
  :root {
    --header-height: 58px;
  }
}

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  z-index: 999;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-inner {
  padding: 20px;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-menu a {
  color: var(--text-primary);
  text-decoration: none;
  padding: 14px 16px;
  display: block;
  font-weight: 500;
  font-size: 16px;
  border-radius: 10px;
  transition: all var(--transition-fast);
}

.mobile-menu a:hover {
  background: var(--surface-hover);
  color: var(--primary);
}

/* Sélecteur de devise dans le menu mobile */
.mobile-currency-selector {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.mobile-currency-selector label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.mobile-currency-selector select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  background: white;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 998;
  backdrop-filter: blur(4px);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   MODE BUSINESS - OVERRIDES
   ============================================ */

.business-mode-active .nav {
  display: none !important;
}

.business-mode-active #menu-toggle {
  display: inline-flex !important;
}

.business-mode-active .header-inner {
  justify-content: space-between;
}