/* ─── HAMBURGER ─── */
.hamburger {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  z-index: 200;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(212, 168, 67, 0.5);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── SIDEBAR ─── */
:root {
  --nav-h: 64px;
}

.sidebar-menu {
  position: fixed;
  left: -300px;
  top: var(--nav-h);
  width: 280px;
  height: calc(100vh - var(--nav-h));
  background: rgba(10, 10, 8, 0.97);
  border-right: 1px solid rgba(212, 168, 67, 0.2);
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  backdrop-filter: blur(12px);
}

.sidebar-menu.active {
  left: 0;
}

/* ─── OVERLAY ─── */
.sidebar-overlay {
  position: fixed;
  left: 0;
  top: var(--nav-h);
  width: 100%;
  height: calc(100vh - var(--nav-h));
  background: rgba(10, 10, 8, 0.55);
  z-index: 98;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.sidebar-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ─── HEADER SIDEBAR ─── */
.sidebar-header {
  padding: 1.2rem 1.5rem 0.9rem;
  border-bottom: 1px solid rgba(212, 168, 67, 0.1);
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(212, 168, 67, 0.3);
}

/* ─── LANGUES ─── */
.sidebar-langs {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(212, 168, 67, 0.08);
}

.sidebar-langs img {
  max-height: 28px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, filter 0.2s;
  filter: grayscale(20%);
}

.sidebar-langs img:hover {
  opacity: 1;
  filter: drop-shadow(0 0 6px var(--gold));
}

/* ─── ACCORDION BUTTON ─── */
.accordion {
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 16px 24px;
  width: 100%;
  border: none;
  border-left: 3px solid transparent;
  text-align: left;
  outline: none;
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion:hover,
.accordion.active {
  background: rgba(212, 168, 67, 0.06);
  border-left-color: var(--gold);
  color: var(--gold);
}

.accordion-icon {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--gold);
  opacity: 0.6;
}

.accordion.active .accordion-icon {
  transform: rotate(45deg);
  opacity: 1;
}

/* ─── PANEL ─── */
.panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: rgba(0, 0, 0, 0.2);
}

.panel a {
  display: block;
  padding: 11px 24px 11px 36px;
  color: var(--muted);
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 400;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.panel a::before {
  content: '↳';
  position: absolute;
  left: 20px;
  opacity: 0;
  color: var(--gold);
  transition: opacity 0.2s;
}

.panel a:hover {
  color: var(--gold);
  background: rgba(212, 168, 67, 0.04);
  border-left-color: rgba(212, 168, 67, 0.3);
  padding-left: 42px;
}

.panel a:hover::before {
  opacity: 1;
}

/* ─── BOTTOM LINKS ─── */
.sidebar-bottom {
  margin-top: auto;
  padding: 12px 20px;
  border-top: 1px solid rgba(212, 168, 67, 0.1);
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 8px;
}

.sidebar-bottom a {
  padding: 8px 14px;
  color: var(--muted);
  text-decoration: none;
  font-family: 'Barlow', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  transition: color 0.2s;
  white-space: nowrap;
}

.sidebar-bottom a:hover {
  color: var(--gold);
}

/* ─── MOBILE ─── */
@media (max-width: 600px) {
  .sidebar-bottom {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 0;
  }

  .sidebar-bottom a {
    font-size: 0.78rem;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(212, 168, 67, 0.06);
    text-align: center;
  }

  .sidebar-bottom a:last-child {
    border-bottom: none;
  }
}
