/**
 * Shared Navigation Styles (nav-shared.css)
 * ==========================================
 * Loaded by both client and pro-landing pages.
 * Handles: hamburger menu, mobile nav, toggle buttons.
 * Section-specific colors (dark vs light) stay in their own CSS files.
 */

/* ---- Hamburger Button ---- */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Desktop / Mobile Nav Visibility ---- */

.nav-desktop {
  display: flex;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.nav-mobile.open {
  display: flex;
  max-height: 500px;
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(128, 128, 128, 0.15);
}

.nav-mobile .nav-link {
  padding: 12px 0;
  font-size: 1rem;
  border-bottom: 1px solid rgba(128, 128, 128, 0.1);
}

.nav-mobile .nav-link:last-child {
  border-bottom: none;
}

.nav-mobile-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(128, 128, 128, 0.15);
}

.nav-mobile-toggles .nav-btn {
  text-align: center;
}

/* ---- Toggle Buttons ---- */

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

/* Dark solid button — used for "Espace Pro" on client pages */
.nav-btn-dark {
  background: #171717;
  color: #fff;
  border: 1px solid #171717;
}
.nav-btn-dark:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Primary button — used for "Portail Artisan" on pro pages */
.nav-btn-primary {
  background: #2563eb;
  color: #fff;
  border: 1px solid #2563eb;
}
.nav-btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

/* Outline/ghost — used for "Particuliers" on pro pages */
.nav-btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: inherit;
}
.nav-btn-outline:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-mobile {
    display: flex;
  }
}
