/* IPTV Charleroi v1.3.35 — Command Menu UX 2026
   Scope: header/menu only. Keeps the validated hero and SEO page padding untouched. */

:root {
  --ipch-header-h: 74px;
  --ipch-header-h-scrolled: 66px;
  --ipch-menu-glass: rgba(8, 8, 12, .76);
  --ipch-menu-line: rgba(255, 255, 255, .12);
  --ipch-menu-red-soft: rgba(237, 13, 18, .16);
}

body.ipch-menu-open {
  overflow: hidden;
  touch-action: none;
}

.topbar.ipch-command-header {
  height: var(--ipch-header-h);
  z-index: 5000;
  background:
    radial-gradient(circle at 84% 0%, rgba(237, 13, 18, .24), transparent 34%),
    linear-gradient(180deg, rgba(4, 4, 7, .96), rgba(6, 6, 8, .86));
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 22px 54px rgba(0, 0, 0, .32);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: height .28s ease, background .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.topbar.ipch-command-header.is-scrolled {
  height: var(--ipch-header-h-scrolled);
  background: rgba(4, 4, 7, .92);
  border-bottom-color: rgba(237, 13, 18, .22);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .42);
}

.topbar.ipch-command-header .brand-plate {
  width: max(246px, calc(var(--ipch-logo-desktop) + 42px));
  height: calc(var(--ipch-header-h) + 10px);
  border-bottom-right-radius: 54px;
  transition: height .28s ease, width .28s ease, filter .28s ease;
}

.topbar.ipch-command-header.is-scrolled .brand-plate {
  height: calc(var(--ipch-header-h-scrolled) + 8px);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .2));
}

.topbar.ipch-command-header .nav.ipch-command-nav {
  height: var(--ipch-header-h);
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 24px);
  padding-left: max(226px, calc(var(--ipch-logo-desktop) + 34px));
  transition: height .28s ease;
}

.topbar.ipch-command-header.is-scrolled .nav.ipch-command-nav {
  height: var(--ipch-header-h-scrolled);
}

.topbar.ipch-command-header .brand.brand-elegant {
  top: 10px;
  left: 24px;
  transition: top .28s ease, transform .28s ease;
}

.topbar.ipch-command-header.is-scrolled .brand.brand-elegant {
  top: 8px;
  transform: scale(.94);
  transform-origin: left top;
}

.ipch-primary-nav {
  display: flex;
  align-items: center;
  min-width: 0;
}

.topbar.ipch-command-header .menu.ipch-primary-menu,
.topbar.ipch-command-header .ipch-primary-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 5px;
  list-style: none;
  border: 1px solid var(--ipch-menu-line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 28px rgba(0, 0, 0, .16);
}

.topbar.ipch-command-header .ipch-primary-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar.ipch-command-header .ipch-primary-menu a {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .86);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  opacity: 1;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.topbar.ipch-command-header .ipch-primary-menu a:hover,
.topbar.ipch-command-header .ipch-primary-menu a:focus-visible,
.topbar.ipch-command-header .ipch-primary-menu .current-menu-item > a,
.topbar.ipch-command-header .ipch-primary-menu .current_page_item > a,
.topbar.ipch-command-header .ipch-primary-menu a[aria-current="page"],
.topbar.ipch-command-header .ipch-primary-menu a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(237, 13, 18, .24), rgba(255, 255, 255, .08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 8px 22px rgba(237, 13, 18, .18);
}

.topbar.ipch-command-header .ipch-primary-menu a:hover {
  transform: translateY(-1px);
}

.topbar.ipch-command-header .ipch-primary-menu a.active::after,
.topbar.ipch-command-header .ipch-primary-menu a[aria-current="page"]::after {
  content: none;
}

.ipch-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.ipch-nav-secondary,
.topbar.ipch-command-header .nav-cta.ipch-nav-test {
  height: 42px;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.ipch-nav-secondary {
  color: #fff;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

.ipch-nav-secondary:hover,
.ipch-nav-secondary:focus-visible {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .22);
  transform: translateY(-1px);
}

.topbar.ipch-command-header .nav-cta.ipch-nav-test {
  background: linear-gradient(135deg, #ff3035 0%, #d90008 52%, #850007 100%);
  box-shadow: 0 14px 30px rgba(237, 13, 18, .32), inset 0 1px 0 rgba(255, 255, 255, .18);
  position: relative;
  overflow: hidden;
}

.topbar.ipch-command-header .nav-cta.ipch-nav-test::after {
  content: "";
  position: absolute;
  inset: -30% auto -30% -70%;
  width: 44%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent);
  animation: ipchMenuShine 5.8s ease-in-out infinite;
}

.topbar.ipch-command-header .nav-cta.ipch-nav-test span,
.topbar.ipch-command-header .nav-cta.ipch-nav-test i {
  position: relative;
  z-index: 1;
}

.ipch-command-deck {
  position: absolute;
  left: max(270px, calc(var(--ipch-logo-desktop) + 58px));
  right: 28px;
  top: calc(100% + 12px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 0%, rgba(237, 13, 18, .22), transparent 34%),
    rgba(8, 8, 12, .9);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .36);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(.985);
  transition: opacity .2s ease, transform .2s ease;
}

.topbar.ipch-command-header.is-command-open .ipch-command-deck {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ipch-command-card {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
  border: 1px solid rgba(255, 255, 255, .1);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ipch-command-card:hover,
.ipch-command-card:focus-visible {
  transform: translateY(-3px);
  background: linear-gradient(145deg, rgba(237, 13, 18, .18), rgba(255, 255, 255, .055));
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .28);
}

.ipch-command-card--hot {
  background: linear-gradient(145deg, rgba(237, 13, 18, .27), rgba(255, 255, 255, .06));
  border-color: rgba(237, 13, 18, .32);
}

.ipch-command-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #ff3035, #9d0008);
  box-shadow: 0 10px 24px rgba(237, 13, 18, .24);
}

.ipch-command-card strong {
  font-size: 13px;
  line-height: 1.1;
}

.ipch-command-card small {
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
  line-height: 1.35;
}

.ipch-mobile-toggle {
  position: relative;
  z-index: 80;
}

.ipch-burger,
.ipch-burger span {
  display: block;
}

.ipch-burger {
  width: 19px;
  height: 15px;
  position: relative;
}

.ipch-burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 10px;
  background: #fff;
  transition: transform .22s ease, top .22s ease, opacity .18s ease;
}

.ipch-burger span:nth-child(1) { top: 0; }
.ipch-burger span:nth-child(2) { top: 6.5px; }
.ipch-burger span:nth-child(3) { top: 13px; }

.ipch-mobile-toggle[aria-expanded="true"] .ipch-burger span:nth-child(1) {
  top: 6.5px;
  transform: rotate(45deg);
}

.ipch-mobile-toggle[aria-expanded="true"] .ipch-burger span:nth-child(2) {
  opacity: 0;
}

.ipch-mobile-toggle[aria-expanded="true"] .ipch-burger span:nth-child(3) {
  top: 6.5px;
  transform: rotate(-45deg);
}

.ipch-mobile-panel[hidden] {
  display: none !important;
}

.ipch-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(237, 13, 18, .38), transparent 30%),
    radial-gradient(circle at 12% 92%, rgba(237, 13, 18, .18), transparent 34%),
    rgba(4, 4, 7, .96);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.ipch-mobile-panel__inner {
  width: min(100% - 28px, 480px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 96px 0 24px;
  display: grid;
  align-content: start;
  gap: 16px;
}

.ipch-mobile-panel__head {
  display: grid;
  gap: 4px;
  padding: 0 2px;
}

.ipch-mobile-panel__head span {
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.ipch-mobile-panel__head strong {
  font-size: clamp(26px, 7vw, 38px);
  line-height: 1;
  letter-spacing: -.045em;
}

.ipch-mobile-hero-cta {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 20px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #ff3035, #d40009 58%, #820006);
  box-shadow: 0 20px 48px rgba(237, 13, 18, .28);
  font-size: 15px;
  font-weight: 950;
  text-decoration: none;
}

.ipch-mobile-links {
  display: grid;
  gap: 8px;
}

.ipch-mobile-links a {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.ipch-mobile-links a::after {
  content: "›";
  color: rgba(255, 255, 255, .54);
  font-size: 24px;
  line-height: 1;
}

.ipch-mobile-links a:hover,
.ipch-mobile-links a:focus-visible {
  background: rgba(237, 13, 18, .18);
  border-color: rgba(237, 13, 18, .34);
}

.ipch-mobile-trust {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .1);
}

.ipch-mobile-trust span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 750;
}

.ipch-mobile-trust i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: rgba(237, 13, 18, .28);
}

.topbar.ipch-command-header a:focus-visible,
.ipch-mobile-toggle:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .88);
  outline-offset: 3px;
}

@keyframes ipchMenuShine {
  0%, 48% { left: -70%; }
  62%, 100% { left: 132%; }
}

@media (max-width: 1260px) {
  .topbar.ipch-command-header .ipch-primary-menu a {
    padding: 0 10px;
    font-size: 10.5px;
  }

  .ipch-nav-secondary span {
    display: none;
  }

  .ipch-nav-secondary {
    width: 42px;
    padding: 0;
  }
}

@media (max-width: 1120px) {
  .ipch-command-deck {
    display: none;
  }

  .topbar.ipch-command-header .ipch-primary-menu {
    gap: 2px;
  }

  .topbar.ipch-command-header .ipch-primary-menu a {
    padding: 0 8px;
  }
}

@media (max-width: 980px) {
  :root {
    --ipch-header-h: 70px;
    --ipch-header-h-scrolled: 66px;
  }

  .topbar.ipch-command-header,
  .topbar.ipch-command-header.is-scrolled {
    height: var(--ipch-header-h);
  }

  .topbar.ipch-command-header .brand-plate,
  .topbar.ipch-command-header.is-scrolled .brand-plate {
    width: max(188px, calc(var(--ipch-logo-mobile) + 52px));
    height: 76px;
    border-bottom-right-radius: 42px;
  }

  .topbar.ipch-command-header .nav.ipch-command-nav,
  .topbar.ipch-command-header.is-scrolled .nav.ipch-command-nav {
    height: var(--ipch-header-h);
    justify-content: flex-end;
    padding-left: max(170px, calc(var(--ipch-logo-mobile) + 42px));
  }

  .topbar.ipch-command-header .brand.brand-elegant,
  .topbar.ipch-command-header.is-scrolled .brand.brand-elegant {
    top: 10px;
    left: 18px;
    transform: none;
  }

  .ipch-primary-nav,
  .ipch-nav-actions,
  .topbar.ipch-command-header .menu.ipch-primary-menu,
  .topbar.ipch-command-header .nav-cta.ipch-nav-test {
    display: none !important;
  }

  .topbar.ipch-command-header .mobile-toggle.ipch-mobile-toggle {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  }

  .ipch-mobile-panel {
    display: block;
  }

  .admin-bar .ipch-mobile-panel__inner {
    padding-top: 128px;
  }
}

@media (max-width: 560px) {
  .container.nav.ipch-command-nav {
    width: min(100% - 24px, 560px);
  }

  .topbar.ipch-command-header .brand-plate,
  .topbar.ipch-command-header.is-scrolled .brand-plate {
    width: max(166px, calc(var(--ipch-logo-mobile) + 34px));
    height: 72px;
  }

  .topbar.ipch-command-header .nav.ipch-command-nav,
  .topbar.ipch-command-header.is-scrolled .nav.ipch-command-nav {
    padding-left: max(144px, calc(var(--ipch-logo-mobile) + 24px));
  }

  .ipch-mobile-panel__inner {
    width: min(100% - 24px, 480px);
    padding-top: 88px;
  }

  .admin-bar .ipch-mobile-panel__inner {
    padding-top: 118px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar.ipch-command-header,
  .topbar.ipch-command-header *,
  .ipch-command-deck,
  .ipch-mobile-panel * {
    animation: none !important;
    transition: none !important;
  }
}
