/* Header & Navigation - Shock Music */

/* ========================================
   HEADER
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  background: rgba(244, 244, 244, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(47, 63, 70, 0.08);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

/* ========================================
   LOGO
   ======================================== */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-primary);
  flex-shrink: 0;
}

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

.logo-underline {
  display: inline-block;
  height: 2px;
  width: 40px;
  background: var(--green-accent);
  margin-left: 6px;
}

/* ========================================
   NAVIGATION
   ======================================== */

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--blue-primary);
}

.site-nav a {
  position: relative;
  white-space: nowrap;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--green-accent);
  transition: width 0.2s ease;
}

.site-nav a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--green-accent);
  color: var(--white);
  font-weight: 600;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: #7a9e93;
}

/* ========================================
   MENU HAMBURGER (Mobile)
   ======================================== */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span:nth-child(1) {
  margin-bottom: 6px;
}

.nav-toggle span:nth-child(3) {
  margin-top: 6px;
}

/* Hamburger animé en X quand ouvert */
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
   RESPONSIVE - Tablette
   ======================================== */

@media (max-width: 900px) {
  .site-nav {
    gap: 18px;
    font-size: 0.9rem;
  }

  .nav-cta {
    padding: 8px 14px;
  }

  .logo img {
    height: 38px;
  }
}

/* ========================================
   RESPONSIVE - Mobile
   ======================================== */

@media (max-width: 720px) {
  .header-inner {
    padding: 12px 0;
  }

  .logo img {
    height: 36px;
  }

  .logo-underline {
    width: 30px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 80px 24px 32px;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(47, 63, 70, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(47, 63, 70, 0.08);
  }

  .site-nav a:not(.nav-cta)::after {
    display: none;
  }

  .site-nav .nav-cta {
    margin-top: 16px;
    text-align: center;
    border-bottom: none;
  }

  /* Overlay sombre derrière le menu */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(47, 63, 70, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99;
  }

  .nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
  }
}

/* ========================================
   RESPONSIVE - Petit mobile
   ======================================== */

@media (max-width: 480px) {
  .logo img {
    height: 32px;
  }

  .logo-underline {
    width: 24px;
  }

  .site-nav {
    width: 100vw;
    padding: 70px 20px 24px;
  }

  .site-nav a {
    font-size: 1rem;
    padding: 12px 0;
  }
}

/* ========================================
   SCROLL OFFSET POUR ANCRES
   ======================================== */

html {
  scroll-padding-top: 90px;
}

section[id] {
  scroll-margin-top: 90px;
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 65px;
  }
  section[id] {
    scroll-margin-top: 65px;
  }
}
