/* ================================
   HEADER GLOBAL
================================ */
#header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: #FFFFFF;
  z-index: 1000;
  transition: background 0.3s ease, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Desktop white background */
@media (min-width: 1200px) {
  #header {
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }
  #header::before {
    display: none;
  }
}

#header.scrolled {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(-100%);
}

/* ================================
   HEADER STRUCTURE
================================ */
.header-inner {
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

@media (min-width: 1200px) {
  .header-inner {
    max-width: none;
    height: 100px;
    justify-content: space-between; /* Space between Logo and Right Column */
    align-items: stretch;
  }
}

/* ================================
   LOGO (Mobile & Desktop)
================================ */
.logo {
  position: relative;
  z-index: 1001;
}

.logo img,
.logo .custom-logo {
  height: 80px; /* Mobile height */
  width: auto;
  margin-top: 10px;
  transition: height 0.3s ease, margin-top 0.3s ease, max-width 0.3s ease;
}

.logo a {
  display: block;
}

@media (min-width: 1200px) {
  .logo {
    display: flex;
    align-items: center;
    margin-right: auto; 
    padding-left: 0;
  }
  .logo img,
  .logo .custom-logo {
    height: 170px; /* Large logo from image */
    margin-top: 75px; /* Push down to overlap or center */
    max-width: none;
  }
}

/* ================================
   RIGHT COLUMN (Menu + Buttons)
================================ */
.header-right-column {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Align contents to right */
  justify-content: space-between; /* Buttons top, Menu bottom */
  height: 100%;
  padding-bottom: 12px;
  /* padding-bottom: 25px; */
  padding-top: 0; /* Collé en haut */
}

@media (max-width: 1199px) {
  .header-right-column {
    display: none;
  }
}

/* ================================
   HEADER ACTIONS DESKTOP
================================ */
.header-actions-desktop {
  display: none;
}

@media (min-width: 1200px) {
  .header-actions-desktop {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 0;
    margin-top: 0;
    width: 100%;
  }
}

.btn-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px 8px 16px;
    background: #000000;
    color: #FFFFFF;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.05em;
    border-radius: 0 0 15px 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-header:hover {
  background: #333333;
}

.btn-header svg {
  width: 18px;
  height: 18px;
}

/* ================================
   NAVIGATION DESKTOP
================================ */
#nav-desktop {
  display: none;
}

@media (min-width: 1200px) {
  #nav-desktop {
    display: block;
    width: 100%;
    position: relative;
  }
}

#nav-desktop .desktop-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Right align menu items */
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#nav-desktop .desktop-menu li a {
  color: #1B1B1B;
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 15px; /* Slightly larger */
  font-weight: 400; /* Regular weight */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
  display: block;
}

#nav-desktop .desktop-menu li a::after {
  display: none;
}

#nav-desktop .desktop-menu li:hover a,
#nav-desktop .desktop-menu li.current-menu-item a {
  color: #000000;
}

/* Sliding underline */
#nav-desktop {
  position: relative;
}

#menu-slider {
  position: absolute;
  bottom: -2px; /* Adjust for spacing */
  left: 0;
  height: 1.5px;
  background-color: #000000;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  opacity: 0;
  z-index: 10;
}


/* ================================
   BOUTON BURGER (MOBILE)
================================ */
.menu-toggle {
  position: fixed; /* Changed from absolute to fixed */
  left: 20px;
  top: 26px; /* Adjust from center to fixed position */
  width: 28px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1500;
  background: transparent;
  border: none;
}

.menu-toggle span {
  position: absolute;
  width: 100%;
  height: 3px;
  background: #000000;
  border-radius: 3px;
  transition: all 0.5s ease;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}

.menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
  bottom: 0;
}

/* Animation croix */
.menu-toggle.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* ================================
   MENU MOBILE
================================ */
#nav-main {
  position: fixed;
  top: 0;
  left: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: #FFFFFF;
  background-image: none;
  background-position: center;
  background-size: cover;
  transition: left 0.5s ease;
  display: flex;
  flex-direction: column;
  padding-top: 100px;
  justify-content: space-between;
  z-index: 1200;
}

#nav-main.open {
  left: 0;
}

/* Bouton fermeture menu mobile */
.menu-close {
  position: absolute;
  left: 20px;
  top: 26px;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-close span {
  position: absolute;
  width: 100%;
  height: 2px;
  background: #000000;
  border-radius: 3px;
}

.menu-close span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-close span:nth-child(2) {
  transform: rotate(-45deg);
}

.menu-close:hover span {
  background: #333333;
}

#nav-main .mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

#nav-main .mobile-menu li {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#nav-main.open .mobile-menu li {
  opacity: 1;
  transform: translateX(0);
}

/* Reset delay on close */
#nav-main:not(.open) .mobile-menu li {
  transition-duration: 0.3s;
  transition-delay: 0s !important;
}

#nav-main.open .mobile-menu li:nth-child(1) { transition-delay: 0.1s; }
#nav-main.open .mobile-menu li:nth-child(2) { transition-delay: 0.15s; }
#nav-main.open .mobile-menu li:nth-child(3) { transition-delay: 0.2s; }
#nav-main.open .mobile-menu li:nth-child(4) { transition-delay: 0.25s; }
#nav-main.open .mobile-menu li:nth-child(5) { transition-delay: 0.3s; }
#nav-main.open .mobile-menu li:nth-child(6) { transition-delay: 0.35s; }
#nav-main.open .mobile-menu li:nth-child(7) { transition-delay: 0.4s; }
#nav-main.open .mobile-menu li:nth-child(8) { transition-delay: 0.45s; }
#nav-main.open .mobile-menu li:nth-child(9) { transition-delay: 0.5s; }
#nav-main.open .mobile-menu li:nth-child(10) { transition-delay: 0.55s; }

#nav-main .mobile-menu li a {
  color: #1B1B1B;
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 400;
  padding: 14px 25px;
  display: block;
  position: relative;
  z-index: 1;
}

#nav-main .mobile-menu li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.05);
  transition: left 0.3s ease;
  z-index: -1;
}

#nav-main .mobile-menu li a:hover::before {
  left: 0;
}

#nav-main .mobile-menu li.current-menu-item a {
  color: #1B1B1B;
  font-weight: 600;
}

/* ================================
   BOUTON RESERVER / CONTACT
================================ */
#nav-main .btn-reserver {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 25px;
  background: transparent;
  color: #1B1B1B;
  text-decoration: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: auto;
  transition: background 0.3s ease;
}

#nav-main .btn-reserver:hover {
  background: rgba(0, 0, 0, 0.05);
}

.btn-reserver svg {
  width: 27px;
  height: 28px;
  flex-shrink: 0;
}
.btn-reserver svg path {
  stroke: #1B1B1B;
  fill: #1B1B1B;
}

.btn-reserver div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn-reserver-text-small {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 300;
  line-height: 1;
  color: #666666;
}

.btn-reserver-text-large {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 4px;
}

/* ================================
   HEADER ACTIONS MOBILE
================================ */
.header-actions-mobile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 25px;
  margin-top: auto;
}

.btn-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  text-decoration: none;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
  border-radius: 50px;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
}

.btn-custom svg {
  width: 20px;
  height: 20px;
}

.btn-inscriptions-mobile {
  background: #000000;
  color: #FFFFFF;
}

.btn-inscriptions-mobile:hover {
  background: #333333;
}

.btn-contact-mobile {
  background: #FFFFFF;
  color: #000000;
  border: 1px solid #000000;
}

.btn-contact-mobile:hover {
  background: #000000;
  color: #FFFFFF;
}

/* ================================
   RESEAUX SOCIAUX
================================ */
.socials {
  display: flex;
  gap: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  list-style: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.socials li {
  flex: 1;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: transparent;
  transition: background 0.3s ease;
}

.socials a:hover {
  background: rgba(0, 0, 0, 0.05);
}

.socials svg {
  width: 24px;
  height: 24px;
}

/* ================================
   OVERLAY FLOU + BLUR
================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px) saturate(140%);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 1100;
}

.menu-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* Body locked when menu is open */
body.menu-open {
  overflow: hidden;
}

body.menu-open #header {
  z-index: 1000;
}

/* ================================
   RESPONSIVE - DESKTOP (>= 1024px)
================================ */
/* 
   Note: We primarily use @media(min-width: 1200px) for the main desktop look,
   but keeping this for slightly smaller desktops if needed, or override.
   Actually, let's keep it safe.
*/
@media (min-width: 1200px) {
  /* Logo adjustments provided in LOGO block above */
  
  /* Hide burger menu on desktop */
  .menu-toggle {
    display: none;
  }
}

/* ================================
   RESPONSIVE - TABLETTE (768px - 1023px)
================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  .header-inner {
    height: 85px;
  }

  .logo img,
  .logo .custom-logo {
    height: 100px;
    margin-top: 22px; /* Adjust */
  }

  #nav-main {
    width: 350px;
  }
}

/* ================================
   RESPONSIVE - MOBILE (<= 767px)
================================ */
@media (max-width: 767px) {
  .header-inner {
    height: 70px;
    padding: 0 15px;
  }
  
  /* Reset logo for mobile */
  .logo img,
  .logo .custom-logo {
    height: 70px;
    margin-top: 5px;
  }

  .menu-toggle {
    left: 15px;
    width: 24px;
    height: 18px;
  }

  .menu-toggle span {
    height: 2px;
  }

  #nav-main {
    width: 280px;
    padding-top: 80px;
  }

  #nav-main .mobile-menu li a {
    font-size: 15px;
    padding: 12px 20px;
  }

  .btn-reserver {
    padding: 12px 20px;
  }

  .btn-reserver-text-large {
    font-size: 16px;
  }

  .header-actions-mobile {
    padding: 15px 20px;
  }

  .btn-custom {
    padding: 10px 16px;
    font-size: 13px;
  }
}
