/* Header-specific styles for Lieuavenir */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
}

/* ── Header inner: hamburger | logo | cta ── */
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

/* Emblem logo details */
.logo-cloche,
.logo-sparkle,
.logo-cards {
  position: absolute;
}

.site-logo-emblem {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 18px;
  background: radial-gradient(circle at 10% 0%, #ffffff 0%, #f3e8da 45%, #e6dccf 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.logo-cloche {
  bottom: 9px;
  left: 10px;
  width: 20px;
  height: 12px;
  border-radius: 12px 12px 6px 6px;
  border: 1.5px solid rgba(50, 47, 42, 0.45);
  border-top-width: 2px;
}

.logo-cloche::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 6px;
  border-radius: 8px 8px 0 0;
  border: 1.5px solid rgba(50, 47, 42, 0.45);
  border-bottom: none;
}

.logo-cloche::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: -4px;
  right: -4px;
  height: 3px;
  border-radius: 999px;
  background: rgba(50, 47, 42, 0.1);
}

.logo-sparkle {
  top: 6px;
  right: 9px;
  width: 10px;
  height: 10px;
}

.logo-sparkle::before,
.logo-sparkle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(196, 106, 69, 0.7);
}

.logo-sparkle::after {
  inset: 3px;
  border-color: rgba(215, 188, 122, 0.9);
}

.logo-cards {
  left: 14px;
  top: 6px;
  width: 15px;
  height: 12px;
}

.logo-cards::before,
.logo-cards::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 8px;
  border-radius: 3px;
  border: 1px solid rgba(123, 117, 109, 0.8);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(244, 234, 220, 0.9));
}

.logo-cards::before {
  transform: rotate(-18deg);
  left: 0;
  bottom: 0;
}

.logo-cards::after {
  transform: rotate(10deg);
  right: 0;
  bottom: 1px;
}

/* ── Navigation Toggle (always visible) ── */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  position: relative;
  width: 40px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(197, 192, 182, 0.7);
  background: rgba(255, 255, 255, 0.9);
  justify-content: center;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.nav-toggle-bar {
  width: 18px;
  height: 1.6px;
  border-radius: 999px;
  background: #3a3631;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ── Dropdown Navigation ── */
.site-nav-wrapper {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  transform-origin: top center;
  background: rgba(249, 246, 241, 0.98);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), opacity var(--transition-normal);
  opacity: 0;
}

.site-nav-wrapper.is-open {
  max-height: 300px;
  opacity: 1;
}

.site-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-12) var(--space-16) var(--space-16);
  gap: var(--space-4);
}

.site-nav-item {
  width: 100%;
  text-align: center;
}

.site-nav-item a {
  display: block;
  font-size: var(--font-size-base);
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  color: var(--color-text);
  transition: background-color var(--transition-fast);
}

.site-nav-item a:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.site-nav-item a:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 2px;
}

/* ── CTA ── */
.header-cta {
  flex-shrink: 0;
}

.header-reservation {
  font-size: var(--font-size-xs);
}

/* ── Mobile adjustments ── */
@media (max-width: 600px) {
  .site-header-inner {
    padding-inline: var(--space-8);
  }

  .header-reservation {
    font-size: 0.65rem;
    padding: 0.5rem 1rem;
  }
}
