/* zeyi-symfony/assets/styles/header.css
   Bandeau de contact + en-tête clair collant. */

/* ---------- Bandeau de contact ---------- */

.topbar {
  background: var(--dark);
  color: var(--text-on-dark-muted);
  font-size: 13px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 42px;
  padding: 6px 0;
}

.topbar__list {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar__list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.topbar__list i {
  color: var(--orange);
  font-size: 12px;
}

.topbar a:hover {
  color: var(--text-on-dark);
}

/* ---------- En-tête ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 84px;
}

/* Le logo est dessiné en lettres blanches cerclées d'orange, pour fond sombre.
   invert() rend les lettres sombres ; hue-rotate(180deg) ramène l'orange,
   que l'inversion avait viré au bleu. */
.header__logo {
  display: inline-flex;
  align-items: center;
}

/* Le lettrage du logo est blanc : il se pose tel quel sur le thème sombre et
   doit être inversé sur le clair. Le jeton porte cette différence. */
.header__logo img,
.header__drawer-logo img {
  filter: var(--logo-filter);
}

.header__logo img {
  width: auto;
  height: 54px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}

.header__link {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 4px 0;
}

.header__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transition: right 0.2s ease;
}

.header__link:hover::after,
.header__link.is-active::after {
  right: 0;
}

.header__link.is-active {
  color: var(--orange);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.header__theme:hover,
.header__theme:focus-visible {
  color: var(--orange);
  border-color: var(--orange);
}

.header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}

/* ---------- Tiroir mobile ---------- */

.header__overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(36, 28, 23, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.header__overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.header__drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  width: min(320px, 86vw);
  padding: 28px 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.header__drawer.is-open {
  transform: translateX(0);
}

.header__drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.header__drawer-logo {
  display: inline-flex;
  align-items: center;
}

.header__drawer-top img {
  height: 42px;
  width: auto;
}

.header__drawer-close {
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}

.header__drawer a:not(.btn) {
  padding: 13px 0;
  font-size: 16px;
  font-weight: 600;
}

.header__drawer .btn {
  margin-top: 20px;
}

@media (max-width: 1000px) {
  .topbar__list--hours {
    display: none;
  }

  .header__nav,
  .header__actions .btn {
    display: none;
  }

  .header__burger {
    display: inline-flex;
  }

  .header__inner {
    min-height: 70px;
  }

  .header__logo img {
    height: 44px;
  }
}

@media (max-width: 620px) {
  .topbar__inner {
    justify-content: center;
    gap: 16px;
  }

  .topbar__list--address {
    display: none;
  }
}
