/* ========================================
   FONTS
   ======================================== */

@font-face {
  font-family: 'Mohio';
  src: url('../assets/fonts/Mohio-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Silka';
  src: url('../assets/fonts/silka-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px 48px;
  background: transparent;
  z-index: 1000;
}

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

.logo {
  text-decoration: none;
  display: inline-flex;
  font-family: 'Mohio', serif;
  font-size: clamp(36px, 4.2vw, 60px);
  color: #000000;
  line-height: 1;
  flex-shrink: 0;
}

.logo-letter {
  display: inline-block;
  transition: margin-right 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  margin-right: 0;
}

/* Hover : écartements spécifiques entre chaque lettre */
.logo:hover .logo-letter[data-letter="m"] {
  margin-right: 20px;
}

.logo:hover .logo-letter[data-letter="ō"] {
  margin-right: 60px;
}

.logo:hover .logo-letter[data-letter="h"] {
  margin-right: 0;
}

.logo:hover .logo-letter[data-letter="i"] {
  margin-right: 90px;
}

/* ========================================
   NAVIGATION — DESKTOP
   ======================================== */

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  position: relative;
  display: inline-block;
  overflow: hidden;
  text-decoration: none;
  color: #000000;
  font-family: 'Silka', sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

/* Text Roll : conteneur des deux lignes de texte */
.nav-link-inner {
  display: block;
  position: relative;
}

.nav-link-text {
  display: block;
}

.nav-link-text span {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Texte original : monte vers le haut au hover */
.nav-link:hover .nav-link-text--top span {
  transform: translateY(-100%);
}

/* Texte dupliqué : positionné en dessous, monte à 0 au hover */
.nav-link-text--bottom {
  position: absolute;
  top: 0;
  left: 0;
}

.nav-link-text--bottom span {
  transform: translateY(100%);
}

.nav-link:hover .nav-link-text--bottom span {
  transform: translateY(0);
}

/* ========================================
   BURGER — BOUTON
   ======================================== */

.burger {
  display: none;
  position: relative;
  width: 32px;
  height: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1100;
}

.burger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #000000;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.burger-line:nth-child(1) {
  top: 0;
}

.burger-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.burger-line:nth-child(3) {
  bottom: 0;
}

/* Burger → Croix */
.burger.is-active .burger-line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.burger.is-active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger.is-active .burger-line:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ========================================
   NAVIGATION — MOBILE (OVERLAY)
   ======================================== */

.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  z-index: 1050;
}

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

.nav-mobile .nav-mobile-link {
  text-decoration: none;
  color: #000000;
  font-family: 'Silka', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-mobile.is-open .nav-mobile-link {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger d'apparition des liens mobile */
.nav-mobile.is-open .nav-mobile-link:nth-child(1) { transition-delay: 0.15s; }
.nav-mobile.is-open .nav-mobile-link:nth-child(2) { transition-delay: 0.2s; }
.nav-mobile.is-open .nav-mobile-link:nth-child(3) { transition-delay: 0.25s; }
.nav-mobile.is-open .nav-mobile-link:nth-child(4) { transition-delay: 0.3s; }
.nav-mobile.is-open .nav-mobile-link:nth-child(5) { transition-delay: 0.35s; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .site-header {
    padding: 20px 32px;
  }

  .nav-desktop {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 20px 24px;
  }

  .nav-desktop {
    display: none;
  }

  .burger {
    display: block;
  }
}