/* ========================================
   HEADER / NAVIGATION
======================================== */

/* HEADER */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(9, 11, 13, 0.72);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

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

/* LOGO */
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.brand-mark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid #f5c542;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.brand-text strong {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .06em;
  font-size: 1.85rem;
  line-height: .9;
}

.brand-text span {
  display: flex;
  align-items: center;
  gap: 15px;
  object-fit: cover;
}

/* MENU DESKTOP */
nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .96rem;
  color: #e8dfd0;
}

nav a {
  position: relative;
  font-weight: 600;
  opacity: .92;
}

/* Trait au survol + lien actif */
nav a:hover::after,
nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}

/* ACTIONS HEADER */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
}

/* HAMBURGER */
.hamburger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: #f0c76a;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background .2s ease;
}

.hamburger:hover {
  background: rgba(255,255,255,.06);
}

/* MENU MOBILE */
.mobile-menu {
  position: fixed;
  top: 84px;
  left: 0;
  right: 0;
  background: rgba(9, 11, 13, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.05);
  padding: 20px 0;
  display: none;
  flex-direction: column;
  gap: 0;
  z-index: 35;

  transform: translateY(-10px);
  opacity: 0;
  transition: .25s ease;
}

.mobile-menu.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu a {
  padding: 14px 32px;
  font-weight: 600;
  transition: border-color .2s ease, background .2s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  border-left-color: var(--gold);
  background: rgba(214,169,75,.08);
}

.mobile-menu .mobile-language-switch {
  margin: 12px 16px;
  width: fit-content;
}


/* ========================================
   TABLETTE
======================================== */

@media (max-width: 1120px) {

  nav {
    display: none;
  }

  .header-actions .mini-chip:first-child {
    display: none;
  }

  .hamburger {
    display: inline-grid;
    place-items: center;
  }

  .mobile-menu {
    display: none;
  }

  .mobile-menu.active {
    display: flex;
  }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 760px) {

  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 0;
  }

  .topbar-inner {
    min-height: 78px;
    padding: 0 16px;
    justify-content: space-between;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .brand-text strong {
    font-size: 1.55rem;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .hamburger {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    color: var(--gold-2);
    font-size: 1.4rem;
    display: grid;
    place-items: center;
    transition: .25s ease;
  }

  .hamburger:hover {
    background: rgba(255,255,255,.08);
    transform: scale(1.05);
  }

  .mobile-menu {
    top: 78px;
  }

  nav a .lang.fr,
  nav a .lang.en {
    display: inline-block;
  }

  .header-actions .lang.fr,
  .header-actions .lang.en {
    display: inline-block;
  }
}