/* ============================================================================
   Wolf Pack — wolf-chrome.css
   EN-TÊTE COMMUN, identique au bandeau du site principal wolf-agency.org.
   Feuille AUTONOME (ne consomme que les tokens --wolf-*) chargée par TOUS les
   gabarits du Pack (entete-commune / layout / wp-page) EN DERNIER, afin que le
   bandeau soit rigoureusement le même quelle que soit la page.
   Contient : structure d'en-tête, logotype, navigation + menu déroulant « Pack »,
   sélecteur de langue compact (accès direct + menu « Langue »), burger mobile.
   ============================================================================ */

/* --- Structure -------------------------------------------------------------- */
.wolf-header {
  position: sticky;
  top: 0;
  z-index: var(--wolf-z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wolf-space-4);
  padding: var(--wolf-space-3) var(--wolf-container-pad);
  background: var(--wolf-color-bg);
  border-bottom: var(--wolf-border-hairline) solid var(--wolf-color-border);
}
.wolf-header__end { display: flex; align-items: center; gap: var(--wolf-space-6); }

/* --- Logotype --------------------------------------------------------------- */
.wolf-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--wolf-space-3);
  text-decoration: none;
  color: var(--wolf-color-text);
}
.wolf-logo__mark { width: 34px; height: 34px; color: var(--wolf-color-accent); flex: none; }
.wolf-logo__mark svg { display: block; width: 100%; height: 100%; }
.wolf-logo__txt { display: inline-flex; flex-direction: column; }
.wolf-logo__word {
  font-family: var(--wolf-font-display);
  font-weight: var(--wolf-weight-bold);
  font-size: var(--wolf-text-lg);
  letter-spacing: 0.1em;
  line-height: 1;
}
.wolf-logo__dot { color: var(--wolf-color-accent); }
.wolf-logo__sub {
  display: block;
  font-family: var(--wolf-font-mono);
  font-size: var(--wolf-text-2xs);
  letter-spacing: var(--wolf-tracking-wider);
  text-transform: uppercase;
  color: var(--wolf-color-text-subtle);
  margin-top: 3px;
}

/* --- Navigation principale -------------------------------------------------- */
.wolf-nav { display: flex; align-items: center; gap: var(--wolf-space-5); }
.wolf-nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--wolf-space-1, 4px);
  font-family: inherit;
  font-size: var(--wolf-text-sm);
  font-weight: var(--wolf-weight-medium);
  color: var(--wolf-color-text-muted);
  text-decoration: none;
  padding: var(--wolf-space-2) 0;
  position: relative;
  white-space: nowrap;
  background: none;
  border: 0;
  cursor: pointer;
}
.wolf-nav__link:hover,
.wolf-nav__link[aria-current="page"] { color: var(--wolf-color-text); }
.wolf-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: var(--wolf-border-thick, 2px);
  background: var(--wolf-color-accent);
}

/* --- Onglet « Pack » : menu déroulant natif <details> ----------------------- */
.wolf-nav__drop { position: relative; }
.wolf-nav__drop-summary { list-style: none; }
.wolf-nav__drop-summary::-webkit-details-marker { display: none; }
.wolf-nav__chevron {
  width: 0; height: 0; margin-inline-start: 2px;
  border-inline: 3px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--wolf-duration-fast) var(--wolf-ease);
}
.wolf-nav__drop[open] .wolf-nav__chevron { transform: rotate(180deg); }
.wolf-nav__menu {
  position: absolute;
  top: calc(100% + var(--wolf-space-2));
  inset-inline-start: 0;
  min-width: 12rem;
  margin: 0;
  padding: var(--wolf-space-2);
  list-style: none;
  background: var(--wolf-color-bg-elevated);
  border: var(--wolf-border-hairline) solid var(--wolf-color-border);
  border-radius: var(--wolf-radius-lg);
  box-shadow: var(--wolf-shadow-lg);
  z-index: var(--wolf-z-overlay);
}
.wolf-nav__menu-link {
  display: block;
  padding: var(--wolf-space-2) var(--wolf-space-3);
  color: var(--wolf-color-text-muted);
  text-decoration: none;
  border-radius: var(--wolf-radius-sm);
  font-size: var(--wolf-text-sm);
  white-space: nowrap;
}
.wolf-nav__menu-link:hover { background: var(--wolf-color-surface-2); color: var(--wolf-color-text); }
.wolf-nav__menu-link[aria-current="page"] { color: var(--wolf-color-accent-text); }

/* --- Sélecteur de langue compact -------------------------------------------- */
.wolf-langswitch { position: relative; display: inline-flex; align-items: center; gap: var(--wolf-space-2); }
.wolf-langswitch__direct { display: inline-flex; gap: var(--wolf-space-1, 4px); }
.wolf-langswitch__flag {
  display: inline-flex;
  align-items: center;
  gap: var(--wolf-space-2);
  padding: var(--wolf-space-2) var(--wolf-space-3);
  font-family: var(--wolf-font-mono);
  font-size: var(--wolf-text-xs);
  font-weight: var(--wolf-weight-medium);
  letter-spacing: var(--wolf-tracking-wide);
  color: var(--wolf-color-text-muted);
  text-decoration: none;
  background: var(--wolf-color-surface-2);
  border: var(--wolf-border-hairline) solid var(--wolf-color-border);
  border-radius: var(--wolf-radius-md);
  cursor: pointer;
  list-style: none;
  transition: border-color var(--wolf-duration-fast) var(--wolf-ease),
              color var(--wolf-duration-fast) var(--wolf-ease);
}
.wolf-langswitch__flag::-webkit-details-marker { display: none; }
.wolf-langswitch__flag:hover {
  color: var(--wolf-color-text);
  border-color: var(--wolf-color-accent-line);
}
.wolf-langswitch__flag.is-current,
.wolf-langswitch__list a[aria-current="true"] {
  color: var(--wolf-color-accent-text);
  border-color: var(--wolf-color-accent-line);
}
.wolf-langswitch__emoji { font-size: 1.05em; line-height: 1; }
.wolf-langswitch__chevron {
  width: 0; height: 0; margin-inline-start: 2px;
  border-inline: 3px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--wolf-duration-fast) var(--wolf-ease);
}
.wolf-langswitch__menu { position: relative; }
.wolf-langswitch__menu[open] .wolf-langswitch__chevron { transform: rotate(180deg); }
.wolf-langswitch__list {
  position: absolute;
  top: calc(100% + var(--wolf-space-2));
  inset-inline-end: 0;
  min-width: 12rem;
  max-height: 60vh;
  overflow-y: auto;
  margin: 0;
  padding: var(--wolf-space-2);
  list-style: none;
  background: var(--wolf-color-bg-elevated);
  border: var(--wolf-border-hairline) solid var(--wolf-color-border);
  border-radius: var(--wolf-radius-lg);
  box-shadow: var(--wolf-shadow-lg);
  z-index: var(--wolf-z-overlay);
}
.wolf-langswitch__list a {
  display: flex;
  align-items: center;
  gap: var(--wolf-space-3);
  padding: var(--wolf-space-2) var(--wolf-space-3);
  color: var(--wolf-color-text-muted);
  text-decoration: none;
  border-radius: var(--wolf-radius-sm);
  font-size: var(--wolf-text-sm);
}
.wolf-langswitch__list a:hover { background: var(--wolf-color-surface-2); color: var(--wolf-color-text); }
.wolf-langswitch__name { flex: 1 1 auto; }
.wolf-langswitch__tag {
  font-family: var(--wolf-font-mono);
  font-size: var(--wolf-text-xs);
  color: var(--wolf-color-text-muted);
  letter-spacing: var(--wolf-tracking-wide);
}

/* --- Burger mobile ---------------------------------------------------------- */
.wolf-nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: var(--wolf-border-hairline) solid var(--wolf-color-border-strong);
  border-radius: var(--wolf-radius-md);
  cursor: pointer;
  position: relative;
}
.wolf-nav-toggle__bar,
.wolf-nav-toggle__bar::before,
.wolf-nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 2px;
  background: var(--wolf-color-text);
  transform: translate(-50%, -50%);
  transition: transform var(--wolf-duration-fast) var(--wolf-ease),
              opacity var(--wolf-duration-fast) var(--wolf-ease);
}
.wolf-nav-toggle__bar::before { transform: translate(-50%, -8px); }
.wolf-nav-toggle__bar::after  { transform: translate(-50%,  6px); }
.wolf-nav-toggle[aria-expanded="true"] .wolf-nav-toggle__bar { background: transparent; }
.wolf-nav-toggle[aria-expanded="true"] .wolf-nav-toggle__bar::before { transform: translate(-50%, -1px) rotate(45deg); background: var(--wolf-color-text); }
.wolf-nav-toggle[aria-expanded="true"] .wolf-nav-toggle__bar::after  { transform: translate(-50%, -1px) rotate(-45deg); background: var(--wolf-color-text); }

/* --- Responsive ------------------------------------------------------------- */
@media (max-width: 860px) {
  .wolf-nav-toggle { display: block; }
  .wolf-header__end {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--wolf-space-4);
    padding: var(--wolf-space-4) var(--wolf-container-pad);
    background: var(--wolf-color-bg);
    border-bottom: var(--wolf-border-hairline) solid var(--wolf-color-border);
  }
  .wolf-header__end.is-open { display: flex; }
  .wolf-nav { flex-direction: column; align-items: flex-start; gap: var(--wolf-space-3); width: 100%; }
  /* En pile mobile, les menus déroulants s'affichent en flux (pas en absolu). */
  .wolf-nav__menu,
  .wolf-langswitch__list { position: static; box-shadow: none; min-width: 0; }
  .wolf-langswitch { flex-wrap: wrap; }
}
