/* HEADER */
.header {
  position: fixed;
  width: 100%;
  background: white;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  flex: 1;
}

.logo a {
  color: inherit;
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.03125rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  flex: 2;
  text-align: center;
  padding: 0 2rem;
}

.nav ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  list-style: none;
}

.nav a {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: .0625rem;
  text-decoration: none;
  color: var(--gray-200);
  transition: .2s ease-in-out;
}

.nav a:hover {
  color: var(--color-text-primary);
  font-weight: 500;
}

.nav a.active {
  color: var(--color-text-heading);
  font-weight: 500;
}

/* Social */
.social {
  flex: 1;
  text-align: right;
}

.social a {
  color:  var(--gray-200);
  font-size: 1.25rem;
  margin-left: 6px;
  cursor: pointer;
}

.social a:hover {
  color: var(--gray-300);
}

/* HAMBURGER */
.hamburger {
  display: none;
  font-size: 32px;
  cursor: pointer;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100%;
  background: #fafafa;
  transition: 0.3s;
  padding: 2rem 0;
  z-index: 2000;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.mobile-menu ul {
  list-style: none;
  margin-top: 50px;
  flex: 1;
}

.mobile-menu li {
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--gray-100);
}

.mobile-menu a {
  color: var(--gray-200);
  text-decoration: none;
  font-size: clamp(1.25rem, 1rem + 1.36vw, 2rem)
}

.mobile-menu a:hover {
  color: var(--gray-300);
  font-weight: 500;
}

.mobile-menu a.active {
  color: var(--color-text-heading);
  font-weight: 500;
}

.mobile-menu-social {
  padding-left: 2rem;
  display: flex;
  gap: .5rem;
}

.mobile-menu .bi-facebook,
.mobile-menu .bi-play-circle-fill {
  font-size: 1.75rem;
}

.close {
  font-size: 28px;
  color: var(--gray-200);
  cursor: pointer;
  margin-left: 2rem;
}

/* MOBILE */
@media (max-width: 768px) {

  .nav {
    display: none;
  }

  .nav-container {
    padding: 1rem;
  }

  .hamburger {
    display: block;
  }

  .social {
    display: none;
  }
}

/* OVERLAY */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.9);

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;

  z-index: 1500; /* sous menu, au-dessus contenu */
}

/* actif */
.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* s'assurer que menu est au-dessus */
.mobile-menu {
  z-index: 2000;
}