/* ================================
   HAMBURGER MENU MOBILE
   ================================ */

/* Masquer le hamburger sur desktop */
.hamburger-btn {
  display: none;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {

  /* ─── HAMBURGER BUTTON ─── */
  .hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
  }

  .hamburger-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--terracotta);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
  }

  /* Animation X quand ouvert */
  .hamburger-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }

  .hamburger-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* ─── NAVIGATION REDESIGN ─── */
  nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
  }

  /* Logo reste visible */
  .nav-logo {
    font-size: 1.2rem;
    z-index: 1001;
  }

  /* Wrapper pour hamburger + lang switcher */
  .nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
  }

  /* Lang switcher mobile */
  .lang-switcher {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: flex;
    gap: 0.3rem;
  }

  .lang-switcher a {
    font-size: 0.75rem;
  }

  /* ─── MENU MOBILE FULLSCREEN ─── */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg,
      rgba(26, 18, 8, 0.98) 0%,
      rgba(194, 96, 58, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    z-index: 1000;
    padding: 2rem;
  }

  /* Menu ouvert */
  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Liens menu mobile */
  .nav-links a {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--sand);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
  }

  /* Animation stagger des liens */
  .nav-links.active a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.active a:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active a:nth-child(2) { transition-delay: 0.15s; }
  .nav-links.active a:nth-child(3) { transition-delay: 0.2s; }
  .nav-links.active a:nth-child(4) { transition-delay: 0.25s; }
  .nav-links.active a:nth-child(5) { transition-delay: 0.3s; }
  .nav-links.active a:nth-child(6) { transition-delay: 0.35s; }
  .nav-links.active a:nth-child(7) { transition-delay: 0.4s; }

  /* Underline effect */
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--terracotta);
    transition: width 0.3s ease;
  }

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

  /* ─── OVERLAY PATTERN ─── */
  .nav-links::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F0E2C8' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
  }

  /* ─── PREVENT BODY SCROLL WHEN MENU OPEN ─── */
  body.menu-open {
    overflow: hidden;
  }

  /* ─── CLOSE BUTTON DANS LE MENU ─── */
  .nav-links::after {
    content: '×';
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--sand);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease 0.4s;
    line-height: 1;
  }

  .nav-links.active::after {
    opacity: 0.6;
  }
}

/* ─── TABLETS ─── */
@media (max-width: 1024px) and (min-width: 769px) {
  .hamburger-btn {
    display: none;
  }

  .nav-links {
    position: static;
    flex-direction: row;
    height: auto;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 0.75rem;
    opacity: 1;
    transform: none;
  }
}

/* ─── ANIMATIONS SUPPLÉMENTAIRES ─── */
@keyframes menuSlideIn {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes linkFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
