/* Xenertec Réservation - Layout CSS */

/* Header */
.site-header {
  position: sticky; 
  top: 0; 
  z-index: 50; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 16px; 
  flex-wrap: nowrap; 
  padding: 14px clamp(18px, 4vw, 40px); 
  background: transparent; 
  border-bottom: 1px solid transparent; 
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.is-scrolled {
  background: rgba(243, 242, 242, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(32, 31, 29, 0.08);
}

.site-header.is-dark {
  background: rgba(32, 31, 29, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.header-logo {
  display: flex; 
  align-items: center; 
  gap: 12px;
}

.header-logo-icon {
  position: relative; 
  width: 22px; 
  height: 22px; 
  border: 1px solid var(--or); 
  border-radius: 50%;
}

.header-logo-icon-inner {
  position: absolute; 
  inset: 6px; 
  border-radius: 50%; 
  background: var(--or); 
  opacity: .5; 
  animation: xnBreath 5.5s ease-in-out infinite;
}

.header-logo-text {
  font-family: 'Cormorant Garamond', serif; 
  font-size: 21px; 
  letter-spacing: .06em; 
  white-space: nowrap;
}

/* La nav desktop complète est retirée : seul le hamburger donne accès au menu, partout. */
.header-nav {
  display: none;
}

/* Burger Menu Button — toujours visible, sur toutes les tailles d'écran */
.burger-btn {
  display: flex;
  align-items: center;
  gap: 12px; 
  margin-left: auto; 
  flex: 0 0 auto; 
  background: transparent; 
  border: none; 
  padding: 6px 2px; 
  cursor: pointer; 
  font-family: 'Lora', serif; 
  color: var(--texte);
}

.burger-icon {
  display: flex; 
  flex-direction: column; 
  gap: 5px; 
  width: 26px;
}

.burger-bar {
  display: block; 
  height: 1px; 
  background: currentColor; 
  transition: transform .35s cubic-bezier(.7,0,.2,1), opacity .2s ease;
}

.burger-bar-accent {
  display: block; 
  height: 1px; 
  width: 16px; 
  background: var(--or); 
  transition: transform .35s cubic-bezier(.7,0,.2,1), opacity .2s ease, width .3s ease;
}

.burger-label {
  font-size: 10.5px; 
  letter-spacing: .26em; 
  text-transform: uppercase; 
  color: var(--or-sombre);
}

/* Fullscreen Mobile Menu */
.mobile-menu {
  position: fixed; 
  inset: 0; 
  z-index: 70; 
  display: none; 
  background: var(--creme);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu-panel {
  position: absolute; 
  inset: 0; 
  display: flex; 
  flex-direction: column; 
  padding: 20px clamp(20px, 6vw, 54px) 28px; 
  overflow-y: auto;
}

.mobile-menu-bg-time {
  position: absolute; 
  right: -6%; 
  top: 6%; 
  font-family: 'Cormorant Garamond', serif; 
  font-size: min(46vw, 340px); 
  line-height: .8; 
  color: rgba(182, 130, 53, .09); 
  white-space: nowrap; 
  pointer-events: none; 
  font-feature-settings: 'tnum';
}

.mobile-menu-header {
  position: relative; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 16px; 
  padding-bottom: 18px; 
  border-bottom: 1px solid rgba(32, 31, 29, .16);
}

.mobile-menu-close {
  display: flex; 
  align-items: center; 
  gap: 10px; 
  background: transparent; 
  border: none; 
  padding: 6px 2px; 
  cursor: pointer; 
  font-family: 'Lora', serif; 
  font-size: 10.5px; 
  letter-spacing: .26em; 
  text-transform: uppercase; 
  color: var(--or-sombre);
}

.close-icon {
  position: relative; 
  display: block; 
  width: 22px; 
  height: 22px; 
  border: 1px solid var(--or); 
  border-radius: 50%;
}

.close-icon::before, .close-icon::after {
  content: '';
  position: absolute; 
  left: 50%; 
  top: 50%; 
  width: 9px; 
  height: 1px; 
  background: var(--or-sombre); 
}

.close-icon::before { transform: translate(-50%, -50%) rotate(45deg); }
.close-icon::after { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-menu-list {
  position: relative; 
  display: flex; 
  flex-direction: column; 
  margin-top: 8px;
}

.mobile-menu-item {
  display: grid; 
  grid-template-columns: auto 1fr auto; 
  gap: 16px; 
  align-items: baseline; 
  padding: 15px 2px; 
  border-bottom: 1px solid rgba(32, 31, 29, .1);
  color: var(--texte);
}

.mobile-menu-item .num {
  font-family: 'Cormorant Garamond', serif; 
  font-size: 13px; 
  letter-spacing: .14em; 
  color: var(--or); 
  font-feature-settings: 'tnum';
}

.mobile-menu-item .title {
  font-family: 'Cormorant Garamond', serif; 
  font-size: clamp(27px, 7.4vw, 40px); 
  line-height: 1.02;
}

.mobile-menu-item .desc {
  font-size: 12px; 
  font-style: italic; 
  color: var(--texte-muted);
}

/* Chapter Rail — repère de progression discret, à points, sans texte permanent */
.chapter-rail {
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  pointer-events: auto;
}

.chapter-rail a {
  display: block;
  padding: 3px;
  line-height: 0;
}

.chapter-rail-tick {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(32, 31, 29, .22);
  transition: background-color .3s ease, transform .3s ease;
}

.chapter-rail a:hover .chapter-rail-tick {
  background: rgba(32, 31, 29, .5);
}

.chapter-rail a.is-active .chapter-rail-tick {
  background: var(--or-sombre);
  transform: scale(1.6);
}

/* Le libellé existe pour l'accessibilité (lu au clavier/lecteur d'écran) mais reste invisible à l'écran */
.chapter-rail .label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Sections */
.section {
  position: relative;
  padding: clamp(80px, 11vw, 140px) clamp(20px, 5vw, 40px);
}

.section.dark {
  background: var(--noir);
  color: var(--creme);
}

.section.alt {
  background: var(--fond-alt);
}

/* Layout Utilities */
.container {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Breakpoints */
@media (max-width: 640px) {
  .chapter-rail {
    display: none;
  }
  /* Hide decorative elements that might clash on smaller screens */
  .hide-on-mobile {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .section {
    padding: clamp(60px, 8vw, 100px) 20px;
  }
  .header-logo-text {
    font-size: 18px;
  }
}
