/* =========================================
   STRUCTURE PRINCIPALE DU HEADER
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--nav-bg, #26221d);
  border-bottom: var(--border-bot, 1px solid #4a3e2c);
  box-shadow: var(--glow, none);
  transition: all var(--transition, 0.4s ease);
  width: 100%;
}

.site-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  min-height: 70px;
  gap: 15px;
}

/* --- Lien de retour (Web & Passion) --- */
.sh-back-link {
  color: var(--text-main, #d4b886);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.3s;
}
.sh-back-link:hover {
  color: var(--accent-color, #c49a45);
}

/* --- Logo Cartouche --- */
.sh-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.sh-cartouche {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
}

.sh-cartouche-body {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
}

.sh-logo-glyph {
  font-size: 1.2rem;
  color: var(--accent-color, #c49a45);
}

.sh-logo-text {
  font-family: var(--font-title, serif);
  color: var(--text-main, #d4b886);
  font-size: 1.1rem;
  white-space: nowrap;
}

.cap {
  width: 8px;
  height: 26px;
}

/* --- Séparateur visuel --- */
.sh-sep {
  width: 1px;
  height: 30px;
  background-color: var(--border-bot, #4a3e2c);
}

/* =========================================
   NAVIGATION PRINCIPALE (Desktop)
   ========================================= */
.sh-nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.sh-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-main, #d4b886);
  font-size: 1rem;
  font-family: var(--font-ui, serif);
  transition: color 0.3s;
  white-space: nowrap;
}

.sh-glyph {
  color: var(--accent-color, #c49a45);
  font-size: 1.1rem;
}

.sh-nav-link:hover, .sh-nav-link:hover .sh-glyph {
  color: var(--text-hover, #ffffff);
  text-shadow: var(--glow, none);
}

/* --- Menu Déroulant (Dropdown Portails) --- */
.sh-nav-item.has-drop {
  position: relative;
}

.sh-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--nav-bg, #26221d);
  border: var(--border-bot, 1px solid #4a3e2c);
  min-width: 200px;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  border-radius: 4px;
}

.sh-nav-item.has-drop:hover .sh-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sh-drop-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  color: var(--text-main, #d4b886);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s, padding-left 0.2s;
}

.sh-drop-link:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-hover, #ffffff);
  padding-left: 20px;
}

.sh-drop-glyph {
  color: var(--accent-color, #c49a45);
}

/* --- Bouton Burger Mobile (Masqué par défaut sur PC) --- */
.sh-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 5px;
}

.sh-burger span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--accent-color, #c49a45);
  transition: 0.3s;
}


/* =========================================
   ADAPTATION RESPONSIVE (Tablettes & Mobiles)
   ========================================= */
@media (max-width: 1024px) {
  /* On cache le séparateur et le lien retour trop long si besoin, ou on réorganise */
  .sh-sep, .sh-back-link {
    display: none;
  }

  /* Afficher le bouton burger */
  .sh-burger {
    display: flex;
  }

  /* Transformer le menu principal en panneau coulissant */
  .sh-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg, #26221d);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 15px;
    border-bottom: var(--border-bot, 1px solid #4a3e2c);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
    
    /* Animation d'ouverture */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }

  /* Classe activée en JS pour ouvrir le menu */
  .sh-nav.active {
    max-height: 600px;
    opacity: 1;
  }

  .sh-nav-item {
    width: 100%;
  }

  .sh-nav-link {
    padding: 8px 0;
    font-size: 1.1rem;
    width: 100%;
  }

  /* Gestion du dropdown sur mobile pour qu'il s'affiche directement dans la liste */
  .sh-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding-left: 15px;
    width: 100%;
  }
}
