/* =========================================
   HEADER & NAVIGATION
========================================= */

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
  background: rgba(3, 3, 3, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  padding: 15px 20px;
}

.header-inner {
  max-width: 1400px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  min-width: 0; /* permet au flex-item de rétrécir au lieu de déborder */
}

.logo a {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--color-gold);
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
}

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

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  gap: 15px;
  min-width: 0;
}

.logo-img {
  max-height: 80px;
  width: auto;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.logo .gold-text {
    color: var(--color-gold) !important;
    font-style: italic;
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.3);
}

.header-actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.tagline {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: 3px;
    margin-top: 5px;
}

/*======================
    NAVIGATION PRINCIPALE (PC)
======================*/
.main-nav {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-list-luxe {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-list-luxe li a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-list-luxe li a:hover {
    color: var(--color-gold); 
}

.nav-list-luxe li a::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.3s;
}

.nav-list-luxe li a:hover::after {
    width: 100%;
}

/* Bouton Réserver "Clef du Secret" */
.btn-reserver-luxe {
    background: var(--color-primary) !important;
    color: var(--color-gold) !important;
    padding: 12px 25px !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin: 0 !important;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-reserver-luxe:hover {
    background: var(--color-gold) !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
}

/* =========================================
   BOUTON BURGER (3 BARRES -> CROIX)
========================================= */
.burger {
  display: none; /* Masqué sur PC */
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
  flex-shrink: 0;
  padding: 0;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
}

/* Animation de transformation des 3 barres en Croix */
.burger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-15px);
}

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


/* =========================================
   STYLE DU MENU MOBILE (MAX 900px)
========================================= */
@media (max-width: 900px) {
  .burger {
    display: flex; /* Apparaît sur mobile */
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Caché par défaut à droite */
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(6, 6, 6, 0.98); /* Fond velours noir très sombre */
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(197, 160, 89, 0.2);
    padding: 110px 40px 40px;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); /* Transition fluide de glissement */
    z-index: 998;
    display: block !important;
  }

  /* Quand le menu s'ouvre */
  .main-nav.open {
    right: 0;
  }

  /* Liste de liens mobile */
  .nav-list-luxe {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s; /* Petit délai élégant */
  }

  .main-nav.open .nav-list-luxe {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-list-luxe li a {
    font-size: 1.1rem;
  }

  /* Cache le texte du bouton d'en-tête pour garder de la place */
  .btn-reserver-luxe span.btn-text {
    display: none;
  }
  .btn-reserver-luxe {
    padding: 10px 14px !important;
  }

  /* Conteneur du bouton Réserver lorsqu'il est déplacé dans la liste mobile */
  #burger-reserver-item {
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
    list-style: none;
  }

  #burger-reserver-item .btn-reserver-luxe {
    display: inline-flex !important;
    width: auto;
    padding: 12px 25px !important; /* On lui redonne sa taille normale sur le volet */
  }

  #burger-reserver-item .btn-reserver-luxe span.btn-text {
    display: inline !important; /* On force le texte à réapparaître */
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 13px;
  }
  
  .tagline {
    display: none; /* Trop d'infos pour un très petit écran */
  }
  
  #burger-reserver-item .btn-reserver-luxe {
    width: 100%; /* S'adapte à la largeur du menu mobile sur tout petit écran */
    justify-content: center;
  }
}