/* ════════════════════════════════
   VARIABLES NAVIGATION
════════════════════════════════ */
:root {
  --beige:     #f8f4f2;
  --nav-green: #778e6f;
  --dark:      #625855;
  --grey:      #999;
  --sidebar-w: 68px;
  --topbar-h:  64px;
}

body {
  padding-left: var(--sidebar-w);
}

/* ════════════════════════════════
   DESKTOP — SIDEBAR VERTICALE
════════════════════════════════ */
.sidebar {
  position: fixed;
  left: 0; top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  z-index: 9999;
  border-right: 1px solid rgba(0,0,0,.06);
}
.hamburger {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent !important;
  border: none;
  border-radius: 4px;
  transition: background .2s;
}
.hamburger:hover {
  background: rgba(184,154,90,.08) !important;
}
.hamburger svg line {
  stroke: var(--dark);
  stroke-width: 1.5;
  transition: stroke .2s;
}
.hamburger:hover svg line {
  stroke: var(--nav-green);
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--dark);
  transition: all .3s ease;
}
.sidebar-brand {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--dark);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(90deg);
  user-select: none;
}
.sidebar-logo { width: 32px; height: 32px; opacity: .6; }
.sidebar-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.action-icon {
  width: 30px; height: 30px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.action-icon:hover { border-color: var(--nav-green); color: var(--nav-green); }
.sidebar-socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.social-icon {
  width: 30px; height: 30px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  color: var(--dark);
  text-decoration: none;
}
.social-icon:hover { border-color: var(--nav-green); color: var(--nav-green); }

/* ════════════════════════════════
   DESKTOP — MENU OVERLAY
════════════════════════════════ */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  pointer-events: none;
}
.menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background .5s ease;
}
.menu-panel {
  position: relative;
  width: 100%; height: 100%;
  background: var(--beige);
  transform: translateX(-100%);
  transition: transform .55s cubic-bezier(.77,0,.175,1);
  display: flex;
  overflow: hidden;
}
.menu-sidebar-inner {
  width: var(--sidebar-w);
  height: 100%;
  background: #fff;
  border-right: 1px solid rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  flex-shrink: 0;
}
.menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  cursor: pointer;
  background: transparent !important;
  border: none;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest, #2a3828);
  transition: transform .3s;
  z-index: 1;
}
.menu-close:hover { transform: rotate(90deg); }
.menu-close svg { width: 18px; height: 18px; stroke: var(--forest, #2a3828); stroke-width: 2; }
.menu-content {
  flex: 1;
  padding: 60px 70px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px 80px;
  align-content: start;
}
.menu-content::-webkit-scrollbar { width: 4px; }
.menu-content::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 2px; }

@media (max-width: 1024px) {
  .menu-content {
    grid-template-columns: 1fr;
    padding: 40px;
    gap: 30px;
  }
}
.menu-group { display: flex; flex-direction: column; }
.menu-group-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--nav-green);
  margin-bottom: 22px;
}
.menu-group ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.menu-group ul li a {
  font-size: 16px;
  font-weight: 400;
  color: var(--dark);
  text-decoration: none;
  line-height: 2;
  display: inline-block;
  position: relative;
  transition: color .2s;
}
.menu-group ul li a::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 0;
  width: 0; height: 1px;
  background: var(--nav-green);
  transition: width .3s ease;
}
.menu-group ul li a:hover { color: var(--nav-green); }
.menu-group ul li a:hover::after { width: 100%; }
.menu-group ul li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
}

.menu-overlay.is-open { pointer-events: all; }
.menu-overlay.is-open .menu-backdrop { background: rgba(0,0,0,.2); }
.menu-overlay.is-open .menu-panel { transform: translateX(0); }
.menu-overlay.is-open .menu-group ul li { opacity: 1; transform: translateY(0); }
.menu-overlay.is-open .menu-group:nth-child(1) ul li:nth-child(1) { transition-delay: .25s; }
.menu-overlay.is-open .menu-group:nth-child(1) ul li:nth-child(2) { transition-delay: .30s; }
.menu-overlay.is-open .menu-group:nth-child(1) ul li:nth-child(3) { transition-delay: .35s; }
.menu-overlay.is-open .menu-group:nth-child(1) ul li:nth-child(4) { transition-delay: .40s; }
.menu-overlay.is-open .menu-group:nth-child(2) ul li:nth-child(1) { transition-delay: .30s; }
.menu-overlay.is-open .menu-group:nth-child(2) ul li:nth-child(2) { transition-delay: .35s; }
.menu-overlay.is-open .menu-group:nth-child(2) ul li:nth-child(3) { transition-delay: .40s; }
.menu-overlay.is-open .menu-group:nth-child(2) ul li:nth-child(4) { transition-delay: .45s; }
.menu-overlay.is-open .menu-group:nth-child(3) ul li:nth-child(1) { transition-delay: .35s; }
.menu-overlay.is-open .menu-group:nth-child(3) ul li:nth-child(2) { transition-delay: .40s; }
.menu-overlay.is-open .menu-group:nth-child(3) ul li:nth-child(3) { transition-delay: .45s; }
.menu-overlay.is-open .menu-group:nth-child(4) ul li:nth-child(1) { transition-delay: .40s; }
.menu-overlay.is-open .menu-group:nth-child(4) ul li:nth-child(2) { transition-delay: .45s; }
.menu-overlay.is-open .menu-group:nth-child(4) ul li:nth-child(3) { transition-delay: .50s; }

/* ════════════════════════════════
   MOBILE — TOPBAR HORIZONTALE
════════════════════════════════ */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 9999;
}
.mobile-topbar-left { display: flex; align-items: center; gap: 10px; }
.mobile-topbar-brand {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dark);
}

.menu-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: var(--beige);
  transform: translateY(-100%);
  transition: transform .45s cubic-bezier(.77,0,.175,1), visibility 0s linear .45s;
  flex-direction: column;
  overflow: hidden;
  display: flex;
  visibility: hidden;
}
.menu-mobile-panel.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform .45s cubic-bezier(.77,0,.175,1), visibility 0s linear 0s;
}
.menu-mobile-header {
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
}
.menu-mobile-header-left { display: flex; align-items: center; gap: 10px; }
.menu-mobile-close {
  background: none; border: none;
  cursor: pointer;
  color: var(--dark);
  display: flex;
  align-items: center;
  transition: transform .3s;
  padding: 4px;
}
.menu-mobile-close:hover { transform: rotate(90deg); }
.menu-mobile-close svg { width: 22px; height: 22px; }
.menu-mobile-body { flex: 1; overflow-y: auto; padding: 10px 0; }
.accordion-trigger {
  width: 100%;
  background: none; border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,.07);
}
.accordion-trigger-label {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: .5px;
}
.accordion-chevron {
  width: 34px; height: 34px;
  background: rgba(0,0,0,.06);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
}
.accordion-chevron svg { width: 14px; height: 14px; color: var(--dark); transition: transform .3s ease; }
.accordion-item.is-open .accordion-chevron { background: var(--nav-green); }
.accordion-item.is-open .accordion-chevron svg { transform: rotate(180deg); color: #fff; }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  background: rgba(0,0,0,.02);
}
.accordion-content ul { list-style: none; padding: 8px 0 12px 0; }
.accordion-content ul li a {
  display: block;
  padding: 12px 24px 12px 40px;
  font-size: 16px;
  color: var(--dark);
  text-decoration: none;
  transition: color .2s;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.accordion-content ul li a:hover { color: var(--nav-green); }
.menu-mobile-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.menu-mobile-footer .social-icon { width: 34px; height: 34px; }
.menu-mobile-footer .action-icon { width: 34px; height: 34px; }

/* ════════════════════════════════
   LIENS SIDEBAR
════════════════════════════════ */
.sidebar-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.sidebar-logo-rotated {
  width: 28px; height: 28px;
  opacity: .7;
  transform: rotate(-45deg);
}
.sidebar-home .sidebar-brand {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  letter-spacing: 3px;
}
.mobile-home-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.mobile-home-link .sidebar-logo-rotated { width: 24px; height: 24px; }

/* ════════════════════════════════
   CAROUSEL ÉCOLODGES
════════════════════════════════ */
.carousel-ecolodges .btn-reserve {
  opacity: 0;
  transition: opacity .3s ease;
  position: relative !important;
  transform: translateZ(0) !important;
}
.carousel-ecolodges .swiper-slide:hover .btn-reserve {
  opacity: 1;
  transform: translateZ(0) !important;
}

/* ════════════════════════════════
   BOUTON RETOUR EN HAUT
════════════════════════════════ */
.bh-top-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--forest, #2a3828);
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 9990;
  box-shadow: 0 4px 14px rgba(42,56,40,.25);
}
.bh-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.bh-top-btn:hover {
  background: #b89a5a !important;
  color: #fff !important;
}

/* ════════════════════════════════
   RESPONSIVE
════════════════════════════════ */
@media (max-width: 768px) {
  body { padding-left: 0; padding-top: var(--topbar-h); }
  .sidebar { display: none; }
  .mobile-topbar { display: flex; }
  .menu-overlay { display: none; }

  .elementor-button {
    white-space: normal !important;
    padding: .75rem 1rem !important;
    font-size: .75rem !important;
    min-height: 44px !important;
  }

  body, p,
  td, .elementor-widget-text-editor,
  .elementor-widget-text-editor p,
  .bh-body, .elementor-text-editor {
    font-size: 16px !important;
    line-height: 1.75 !important;
  }
  li:not(.menu-group ul li):not(.accordion-content ul li) {
    font-size: 16px !important;
    line-height: 1.75 !important;
  }
}

@media (min-width: 769px) {
  .mobile-topbar { display: none !important; }
  .menu-mobile-panel { visibility: hidden !important; transform: translateY(-100%) !important; }

  body, p,
  td, .elementor-widget-text-editor,
  .elementor-widget-text-editor p,
  .bh-body, .elementor-text-editor {
    font-size: 18px !important;
    line-height: 1.8 !important;
  }
  li:not(.menu-group ul li) {
    font-size: 18px !important;
    line-height: 1.8 !important;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .menu-content { padding: 50px 40px; gap: 40px 50px; }
  .menu-group ul li a { font-size: 20px; }
}