/* ============================================================
   HEADER V2 – BleuBlancDunk
   Parquet sublimé + logo transparent + nav moderne 2026
   ============================================================ */

/* ---- TOPBAR ---- */
.topbar-v2 {
  position: relative;
  z-index: 50;
  background: #f1f5f9;
}

/* ---- BANNIÈRE ---- */
.hv2-banner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 16px 0;
  box-sizing: border-box;
}

.hv2-banner-inner {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-bottom: none;
  box-shadow: 0 8px 32px rgba(15,23,42,.14);
}

.hv2-banner-inner img {
  display: block;
  width: 100%;
  height: auto;
}

/* Vignette sombre sur les bords – donne de la profondeur */
.hv2-banner-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 100% at 50% 50%, transparent 30%, rgba(15,23,42,.28) 100%),
    linear-gradient(to bottom, rgba(15,23,42,.08) 0%, rgba(15,23,42,.0) 40%, rgba(15,23,42,.22) 100%);
  pointer-events: none;
}

/* Bande tricolore en bas de la bannière */
.hv2-banner-inner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg,
    #0055A4 0%,
    #0055A4 33.33%,
    #f0f0f0 33.33%,
    #f0f0f0 66.66%,
    #EF4135 66.66%,
    #EF4135 100%
  );
  box-shadow: 0 -1px 0 rgba(0,0,0,.08);
}


/* ---- BARRE NAV ---- */
.hv2-nav-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.hv2-nav-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(148,163,184,.2);
  border-top: none;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 8px 24px rgba(12,18,32,.18);
  box-sizing: border-box;
}

/* ---- ONGLETS ---- */
.hv2-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.hv2-tabs::-webkit-scrollbar { display: none; }

.hv2-tabs a {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  height: 52px;
  padding: 0 13px;
  color: #334155;
  text-decoration: none;
  white-space: nowrap;
  transition: color .12s ease;
}

.hv2-tabs a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10px; right: 10px;
  height: 3px;
  border-radius: 99px 99px 0 0;
  background: linear-gradient(90deg, #0055A4 0%, #0055A4 33%, #fff 33%, #fff 67%, #EF4135 67%, #EF4135 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .15s ease;
}

.hv2-tabs a:hover {
  color: #0f172a;
}

.hv2-tabs a:hover::after,
.hv2-tabs a.active::after {
  transform: scaleX(1);
}

.hv2-tabs a.active {
  color: #0f172a;
}

.hv2-tab-top {
  display: block;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
}

.hv2-tab-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  line-height: 1.1;
}

.hv2-tabs a.active .hv2-tab-sub {
  color: #475569;
}

/* ---- DROITE : social + user ---- */
.hv2-right {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hv2-x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  transition: background .12s ease, border-color .12s ease;
}

.hv2-x-btn:hover {
  background: #f8fafc;
  border-color: rgba(15,23,42,.22);
}

.hv2-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #5865F2;
  border: none;
  color: #fff;
  font-size: 12.5px;
  font-weight: 900;
  text-decoration: none;
  transition: background .12s ease;
}

.hv2-discord-btn:hover {
  background: #4752c4;
}

/* Flag inline */
.hv2-flag {
  display: inline-block;
  width: 13px;
  height: 9px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  background: linear-gradient(to right,
    #0055A4 0%, #0055A4 33.33%,
    #ffffff 33.33%, #ffffff 66.66%,
    #EF4135 66.66%, #EF4135 100%
  );
}

/* ---- USER MENU ---- */
.hv2-user-menu {
  position: relative;
}

.hv2-user-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: #fff;
  cursor: pointer;
  transition: background .12s ease;
}

.hv2-user-btn:hover { background: #f8fafc; }

.hv2-user-icon {
  width: 17px;
  height: 17px;
  fill: #334155;
}

.hv2-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(15,23,42,.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: .12s ease;
  z-index: 300;
}

.hv2-user-menu.is-open .hv2-user-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hv2-dropdown-label {
  padding: 6px 14px 8px;
  font-size: 10.5px;
  font-weight: 900;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.hv2-dropdown-link {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  text-decoration: none;
  color: #0f172a;
}

.hv2-dropdown-link:hover { background: #f8fafc; }

/* ---- BURGER MOBILE ---- */
.hv2-burger {
  display: none;
}

/* ============================================================
   MOBILE (≤ 760px)
   ============================================================ */
@media (max-width: 760px) {

  .hv2-banner {
    padding: 12px 12px 0;
  }

  .hv2-banner-inner {
    min-height: 110px;
    border-radius: 14px 14px 0 0;
  }

  .hv2-logo {
    height: 88px;
  }

  .hv2-nav-card {
    grid-template-columns: 1fr auto;
    border-radius: 0 0 14px 14px;
    min-height: 46px;
    padding: 0 12px;
  }

  .hv2-tabs {
    display: none;
  }

  .hv2-burger {
    display: inline-flex;
    width: 38px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(15,23,42,.12);
    background: #fff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0 9px;
  }

  .hv2-burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #0f172a;
  }

  /* ---- DRAWER MOBILE ---- */
  .hv2-mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 999999;
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s ease;
  }

  .hv2-mobile-menu.is-open {
    pointer-events: auto;
    opacity: 1;
  }

  .hv2-mobile-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(12,18,32,.6);
    backdrop-filter: blur(4px);
  }

  .hv2-mobile-panel {
    position: absolute;
    top: 0; left: 0;
    width: min(88vw, 320px);
    height: 100%;
    z-index: 2;
    background: #fff;
    box-shadow: 18px 0 40px rgba(12,18,32,.22);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform .22s ease;
    overflow-y: auto;
  }

  .hv2-mobile-menu.is-open .hv2-mobile-panel {
    transform: translateX(0);
  }

  .hv2-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    border-bottom: 1px solid rgba(148,163,184,.16);
    background: #0c1220;
  }

  .hv2-mobile-head img {
    height: 40px;
    width: auto;
  }

  .hv2-mobile-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
  }

  .hv2-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    flex: 1;
  }

  .hv2-mm-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
  }

  .hv2-mm-link:hover { background: #f8fafc; }

  .hv2-mm-link--primary {
    background: #2563eb;
    color: #fff;
  }

  .hv2-mm-sep {
    height: 1px;
    margin: 6px 2px;
    background: rgba(148,163,184,.2);
  }
}

@media (min-width: 761px) {
  .hv2-mobile-menu { display: none !important; }
}
