/* RESET */
* {
    margin:0;
    padding:0;
    box-sizing:border-box;
}


.reveal {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.7s ease, transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {

    opacity: 1;
    transform: translateX(0);
}

html, body {
    overflow-x: hidden;
}


body {
    font-family: Montserrat, sans-serif;
    background:#111;
    color:white;
    line-height:1.6;
    overflow-x: hidden;
    width: 100vw;
}

/* HEADER */
header {
    width:100%;
    background: rgba(0,0,0,0.70);
    display:flex;
    justify-content: space-between;
    align-items:center;
    padding:20px 40px;
    position: relative;
    z-index:1000;
}

.logo {
    font-family:"Playfair Display", serif;
    font-size:24px;
}

/* MENU TOGGLE */
.menu-toggle {
    display:none; /* caché desktop */
    font-size:30px;
    cursor:pointer;
    z-index:2000;
    position: relative;
}

/* NAVIGATION - Desktop */
nav {
    display:flex;
    gap:25px;
    
}

nav a {
    color: white;
    text-decoration: none;
    transition: 0.4s;
    position: relative;
}

nav a::after {
    content: "";
    display: block;
    width: 0;
    height: 1px;
    background-color: #d4a373;
    transition: width 0.4s;
}

nav a:hover {
    color: #d4a373;
}

nav a:hover::after {
    width: 100%;
}

@media(max-width:768px) {

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 2000;
    position: relative;
  }

  .menu-toggle span {
    display: block;
    height: 1.5px;
    background: white;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.3s ease;
  }

  /* Burger → X */
  .menu-toggle.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

 nav {
    position: fixed; /* fixed au lieu de absolute */
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 0 60px;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 999; /* sous le header qui reste à z-index: 1000 */
}

  nav.active {
    opacity: 0.99;
    pointer-events: all;
  }

nav a {
    font-family: 'Playfair Display', serif;
    font-size: 30px; /* plus grand */
    font-style: italic;
    letter-spacing: 3px;
    color: white;
    padding: 18px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.5s ease,
                color 0.3s ease;
    position: relative;
}

body.no-scroll {
  overflow: hidden;
}

  nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #d4a373;
    transition: transform 0.3s ease;
  }

  nav.active a::after {
    width: 100%;
  }

  nav a:hover { color: #d4a373; }

  nav.active a:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
  nav.active a:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
  nav.active a:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
}