/* ══════════════════════════════════════════════
   LDS Équitation — Layout
   Navigation + Footer
   ══════════════════════════════════════════════ */

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.5s ease;
  background: transparent;
}

nav.scrolled {
  background: rgba(253, 251, 247, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
  padding: 0.8rem 3rem;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.logo span {
  color: var(--terracotta);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--charcoal);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--terracotta);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--terracotta);
}

.nav-links a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 200;
  background: none;
  border: none;
  padding: 0;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: all 0.3s;
}

/* ── FOOTER ── */
footer {
  background: var(--charcoal);
  color: rgba(245, 240, 232, 0.5);
  padding: 3rem 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sand);
}

.footer-logo span {
  color: var(--terracotta-light);
}

footer p {
  font-size: 0.8rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sand);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.footer-socials a:hover {
  background: var(--terracotta);
  transform: translateY(-2px);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav {
    padding: 1rem 2rem;
  }

  footer {
    padding: 2rem 3rem;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.2rem;
  }

  nav.scrolled {
    padding: 0.7rem 1.2rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    z-index: 150;
  }

  .nav-links.open {
    right: 0;
  }

  .burger {
    display: flex;
  }

  /* Overlay semi-transparent derrière le menu ouvert */
  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 140;
  }

  footer {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
}
