/**
 * G4melab Design System v5 — fidèle aux maquettes docs/maquettes/
 */

:root {
  --g4-bg: #0a1628;
  --g4-bg-2: #0f1d32;
  --g4-card: #132238;
  --g4-card-2: #1a2d4a;
  --g4-cyan: #00e5c0;
  --g4-cyan-dim: rgba(0, 229, 192, 0.14);
  --g4-magenta: #ff2d8a;
  --g4-text: #eef3fa;
  --g4-muted: #8fa3b8;
  --g4-border: rgba(0, 229, 192, 0.22);
  --g4-radius: 14px;
  --g4-radius-sm: 8px;
  --g4-wrap-fluid: clamp(960px, 94vw, 1560px);
  --g4-wrap-gutter: clamp(1.25rem, 3vw, 2rem);
  --g4-wrap: var(--g4-wrap-fluid);
  --g4-main-foot-gap: clamp(1.25rem, 2.5vw, 3rem);
  --g4-font-display: "Rajdhani", sans-serif;
  --g4-font-body: "Inter", sans-serif;
}

/* Masquer chrome du thème parent quand template G4 actif */
body.g4-design #qtMasterContainter,
body.g4-design #qtmasterheader,
body.g4-design .qt-headermenu-container,
body.g4-design .qt-main:not(.g4-main),
body.g4-design .qt-footer,
body.g4-design #qtfooter {
  display: none !important;
}

body.g4-design {
  margin: 0;
  background: var(--g4-bg) !important;
  color: var(--g4-text);
  font-family: var(--g4-font-body);
  line-height: 1.5;
}

.g4-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.g4-wrap {
  width: min(100% - var(--g4-wrap-gutter), var(--g4-wrap-fluid));
  margin-inline: auto;
}

.g4-main {
  flex: 1;
  padding-bottom: var(--g4-main-foot-gap);
}

/* ── Topbar ── */
.g4-topbar {
  background: #060e18;
  border-bottom: 1px solid var(--g4-border);
  font-family: var(--g4-font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.g4-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}

.g4-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--g4-magenta);
  text-decoration: none;
  font-weight: 700;
}

.g4-live-pill--muted {
  color: var(--g4-muted);
}

.g4-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #555;
  display: inline-block;
}

.g4-dot--live {
  background: #3dff9a;
  box-shadow: 0 0 8px #3dff9a;
}

.g4-dot--online {
  background: #3dff9a;
  box-shadow: 0 0 6px rgba(61, 255, 154, 0.6);
}

.g4-dot--pulse {
  background: #ff3b5c;
  box-shadow: 0 0 8px #ff3b5c;
  animation: g4-pulse 1.5s ease-in-out infinite;
}

@keyframes g4-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.g4-topbar__streamers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.g4-topbar__name {
  color: var(--g4-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.g4-topbar__name:hover {
  color: var(--g4-cyan);
}

.g4-topbar__status {
  color: var(--g4-cyan);
  font-size: 0.65rem;
  text-transform: lowercase;
}

/* ── Header ── */
.g4-chrome {
  background: rgba(8, 14, 26, 0.92);
  border-bottom: 1px solid rgba(0, 229, 192, 0.12);
}

.g4-chrome__sticky {
  background: inherit;
}

.g4-header {
  background: transparent;
  border: none;
}

.g4-header__bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.75rem 0;
}

.g4-header__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.g4-logo img {
  height: 54px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0, 229, 192, 0.1));
}

.g4-nav {
  display: flex;
  gap: 0.1rem;
  flex-wrap: wrap;
}

.g4-nav__link {
  font-family: var(--g4-font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g4-muted);
  text-decoration: none;
  padding: 0.55rem 0.85rem 0.65rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, text-shadow 0.2s;
}

.g4-nav__link:hover {
  color: #fff;
  text-shadow: 0 0 12px rgba(0, 229, 192, 0.25);
}

.g4-nav__link.is-active {
  color: var(--g4-cyan);
  border-bottom-color: var(--g4-cyan);
  text-shadow: 0 0 18px rgba(0, 229, 192, 0.4);
}

.g4-nav__link--cart {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.g4-nav__icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.g4-nav__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: rgba(0, 229, 192, 0.18);
  border: 1px solid rgba(0, 229, 192, 0.45);
  color: var(--g4-cyan);
  font-family: var(--g4-font-display);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

/* Desktop : logo + nav sur une ligne */
@media (min-width: 861px) {
  .g4-chrome {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem max(1rem, calc((100% - var(--g4-wrap)) / 2));
    backdrop-filter: blur(12px);
  }

  .g4-chrome__sticky {
    flex-shrink: 0;
  }

  .g4-header__bar {
    width: auto;
    margin: 0;
    padding: 0;
  }

  .g4-header__tools .g4-mobile-toggle {
    display: none;
  }

  .g4-chrome .g4-nav {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-start;
    gap: 0.1rem;
    flex-wrap: wrap;
    position: static;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }

  .g4-nav-backdrop {
    display: none !important;
  }
}

/* Réseaux sociaux header (desktop : à droite du menu) */
.g4-header-social {
  display: none;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.g4-header-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 14, 26, 0.55);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

/* Panier : plus petit que les réseaux */
.g4-header-social__link--cart {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  position: relative;
  color: var(--g4-cyan);
}
.g4-header-social__link--cart svg {
  width: 18px;
  height: 18px;
}
.g4-header-social__link--cart .g4-nav__count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  font-size: 0.72rem;
}

.g4-header-social__link:hover {
  border-color: rgba(0, 229, 192, 0.35);
  background: rgba(0, 229, 192, 0.08);
  transform: translateY(-1px);
}

.g4-header-social__link--twitch {
  color: #9147ff;
}

.g4-header-social__link--youtube {
  color: #ff0033;
}

.g4-header-social__link--discord {
  color: #5865f2;
}

.g4-nav__social {
  display: none;
}

@media (min-width: 861px) {
  .g4-header-social:not(.g4-header-social--drawer) {
    display: flex;
  }

  .g4-nav__social {
    display: none !important;
  }
}

@media (max-width: 860px) {
  .g4-nav__social {
    display: block;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .g4-header-social--drawer {
    display: flex;
    justify-content: center;
    gap: 1.1rem;
  }

  .g4-header-social--drawer .g4-header-social__link {
    width: 88px;
    height: 88px;
  }
}

.g4-header__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.g4-header__link {
  font-family: var(--g4-font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g4-muted);
  text-decoration: none;
}

.g4-header__link:hover {
  color: var(--g4-cyan);
}

.g4-header__cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--g4-muted);
  text-decoration: none;
  flex-shrink: 0;
}

.g4-header__cart:hover {
  color: var(--g4-cyan);
}

.g4-header__cart--mobile {
  display: none;
}

/* Menu mobile — bouton toujours prêt, drawer hors du flux header */
.g4-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(0, 229, 192, 0.45);
  border-radius: 10px;
  background: rgba(0, 229, 192, 0.1);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 230;
}

body.g4-nav-open .g4-chrome__sticky {
  position: relative;
  z-index: 230;
}

.g4-mobile-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--g4-cyan);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
  box-shadow: 0 0 6px rgba(0, 229, 192, 0.4);
}

.g4-mobile-toggle[aria-expanded="true"] .g4-mobile-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.g4-mobile-toggle[aria-expanded="true"] .g4-mobile-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.g4-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 14, 0.75);
  backdrop-filter: blur(4px);
  z-index: 210;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
}

.g4-nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.g4-icon-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--g4-border);
  border-radius: var(--g4-radius-sm);
  color: var(--g4-cyan);
  text-decoration: none;
  font-family: var(--g4-font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Typography ── */
.g4-page-head {
  padding: 2.5rem 0 1.5rem;
}

.g4-page-head--center {
  text-align: center;
}

.g4-page-head h1 {
  font-family: var(--g4-font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: #fff;
}

.g4-gradient-title {
  background: linear-gradient(90deg, var(--g4-cyan), #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.g4-underline {
  border-bottom: 3px solid var(--g4-cyan);
  padding-bottom: 0.15rem;
}

.g4-page-head p {
  color: var(--g4-muted);
  margin: 0;
}

.g4-page-content {
  padding-bottom: var(--g4-main-foot-gap);
  color: var(--g4-text);
  line-height: 1.65;
}

.g4-page-content > :first-child {
  margin-top: 0;
}

.g4-page-content a {
  color: var(--g4-cyan);
}

/* ── Buttons ── */
.g4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--g4-font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--g4-radius-sm);
  padding: 0.75rem 1.35rem;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.2s;
}

.g4-btn--solid {
  background: var(--g4-cyan);
  color: #041018;
  border-color: var(--g4-cyan);
}

.g4-btn--solid:hover {
  filter: brightness(1.08);
  color: #041018;
}

.g4-btn--outline {
  background: transparent;
  color: var(--g4-cyan);
  border-color: var(--g4-cyan);
}

.g4-btn--outline:hover {
  background: var(--g4-cyan-dim);
}

.g4-btn--twitch {
  background: transparent;
  color: #bf94ff;
  border-color: #9147ff;
}

.g4-btn--twitch:hover {
  background: #9147ff;
  color: #fff;
}

.g4-btn--ghost {
  background: transparent;
  color: var(--g4-muted);
  border-color: var(--g4-border);
}

.g4-btn--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.72rem;
}

.g4-btn--live {
  background: transparent;
  color: var(--g4-cyan);
  border-color: var(--g4-cyan);
}

.g4-btn--live:hover {
  background: var(--g4-cyan-dim);
  color: var(--g4-cyan);
}

.g4-btn--off {
  background: rgba(255, 255, 255, 0.04);
  color: var(--g4-muted);
  border-color: rgba(255, 255, 255, 0.12);
}

.g4-btn--off:hover {
  color: var(--g4-text);
  border-color: rgba(255, 255, 255, 0.22);
}

.g4-btn--block {
  width: 100%;
}

/* ── Tags ── */
.g4-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.g4-tags--center {
  justify-content: center;
}

.g4-tag {
  font-family: var(--g4-font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 45, 138, 0.15);
  color: var(--g4-magenta);
  border: 1px solid rgba(255, 45, 138, 0.35);
}

.g4-tag--dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--g4-muted);
  border-color: rgba(255, 255, 255, 0.12);
}

.g4-tag--sm {
  font-size: 0.6rem;
}

.g4-kicker {
  font-family: var(--g4-font-display);
  color: var(--g4-cyan);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ── Home Hero ── */
.g4-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 1.25rem;
  padding: 1.75rem 0 2rem;
}

.g4-hero__featured {
  position: relative;
  min-height: 420px;
  border-radius: var(--g4-radius);
  overflow: hidden;
  border: 1px solid var(--g4-border);
}

.g4-hero__featured-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
}

.g4-hero__featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.4) 55%, rgba(10, 22, 40, 0.15) 100%);
}

.g4-hero__featured-body {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 62%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
}

.g4-hero__featured-body h1 {
  font-family: var(--g4-font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.35rem 0 0.75rem;
  color: #fff;
  text-transform: none;
  letter-spacing: 0.02em;
}

.g4-hero__desc {
  color: var(--g4-muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.g4-hero__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.g4-streamer-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  background: var(--g4-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--g4-radius-sm);
  padding: 0.65rem 0.85rem;
}

.g4-streamer-row.is-featured {
  border-color: var(--g4-cyan);
  box-shadow: 0 0 0 1px rgba(0, 229, 192, 0.35), 0 0 18px rgba(0, 229, 192, 0.12);
}

.g4-streamer-row__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--g4-border);
}

.g4-streamer-row__info strong {
  display: block;
  font-family: var(--g4-font-display);
  font-size: 1rem;
  color: #fff;
}

.g4-status {
  font-size: 0.72rem;
  color: var(--g4-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.g4-status--live {
  color: var(--g4-cyan);
}

.g4-status--live::before {
  content: "● ";
  color: #3dff9a;
}

.g4-status--off::before {
  content: "● ";
  color: #666;
}

/* ── Split panels (highlights + shop) ── */
.g4-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding-bottom: 2rem;
}

.g4-panel {
  background: var(--g4-card);
  border: 1px solid var(--g4-border);
  border-radius: var(--g4-radius);
  padding: 1.25rem;
}

.g4-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.g4-panel__head h2 {
  font-family: var(--g4-font-display);
  font-size: 1.1rem;
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.g4-panel__head a {
  font-family: var(--g4-font-display);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--g4-cyan);
  text-decoration: none;
  white-space: nowrap;
}

.g4-highlights {
  display: grid;
  gap: 0.85rem;
}

.g4-highlight-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.85rem;
  text-decoration: none;
  background: var(--g4-bg-2);
  border-radius: var(--g4-radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.g4-highlight-card__thumb {
  min-height: 80px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.g4-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.25rem;
}

.g4-tag--on-thumb {
  position: absolute;
  top: 0.45rem;
  left: 0.45rem;
  z-index: 1;
  background: rgba(10, 22, 40, 0.85);
}

.g4-highlight-card__body {
  padding: 0.65rem 0.65rem 0.65rem 0;
}

.g4-highlight-card__body h3 {
  font-family: var(--g4-font-display);
  font-size: 0.9rem;
  color: #fff;
  margin: 0.35rem 0 0.15rem;
}

.g4-highlight-card__body p {
  font-size: 0.75rem;
  color: var(--g4-muted);
  margin: 0;
}

.g4-shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.g4-shop-grid--compact .g4-product-card img {
  height: 90px;
}

.g4-product-card {
  background: var(--g4-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--g4-radius-sm);
  padding: 0.75rem;
  text-decoration: none;
  text-align: center;
}

.g4-product-card img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.g4-product-card h3 {
  font-family: var(--g4-font-display);
  font-size: 0.8rem;
  color: #fff;
  margin: 0 0 0.25rem;
}

.g4-price {
  color: var(--g4-cyan);
  font-family: var(--g4-font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.g4-recruit {
  text-align: center;
  background: var(--g4-card);
  border: 1px solid var(--g4-border);
  border-radius: var(--g4-radius);
  padding: 2rem;
  margin-bottom: 2rem;
}

.g4-recruit h2 {
  font-family: var(--g4-font-display);
  color: #fff;
  margin: 0 0 0.5rem;
}

.g4-recruit p {
  color: var(--g4-muted);
  margin: 0 0 1rem;
}

/* ── Live page ── */
.g4-live-layout {
  display: grid;
  grid-template-columns: 200px 1fr 260px;
  gap: 1rem;
  align-items: start;
}

.g4-live-tabs,
.g4-live-status {
  background: var(--g4-card);
  border: 1px solid var(--g4-border);
  border-radius: var(--g4-radius);
  padding: 1rem;
}

.g4-live-tabs h3,
.g4-live-status h3 {
  font-family: var(--g4-font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g4-muted);
  margin: 0 0 0.85rem;
}

.g4-live-tab {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem;
  border-radius: var(--g4-radius-sm);
  text-decoration: none;
  color: var(--g4-muted);
  margin-bottom: 0.35rem;
  border: 1px solid transparent;
}

.g4-live-tab img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.g4-live-tab.is-active,
.g4-live-tab:hover {
  background: var(--g4-cyan-dim);
  border-color: var(--g4-border);
  color: var(--g4-cyan);
}

.g4-live-embed {
  background: #000;
  border: 1px solid var(--g4-border);
  border-radius: var(--g4-radius);
  overflow: hidden;
  min-height: 400px;
}

.g4-live-embed iframe,
.g4-live-embed .cp-streamweasels {
  width: 100% !important;
  min-height: 420px;
}

.g4-live-actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.g4-status-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.g4-status-row small {
  display: block;
  color: var(--g4-muted);
  font-size: 0.72rem;
  margin-top: 0.15rem;
}

.g4-status-row img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.g4-status-row strong {
  display: block;
  font-family: var(--g4-font-display);
  color: #fff;
  font-size: 0.9rem;
}

/* ── Pied de section (planning, légendes…) ── */
.g4-section-foot,
.g4-planning-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding: 0.85rem 1.05rem;
  background: rgba(8, 14, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--g4-radius-sm);
  box-shadow:
    0 0 0 1px rgba(0, 229, 192, 0.05) inset,
    0 8px 24px rgba(0, 0, 0, 0.18);
}

body.g4-design .g4-footer .g4-wrap {
  width: min(100% - var(--g4-wrap-gutter), var(--g4-wrap-fluid));
}

.g4-section-foot__main {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 auto;
}

.g4-section-foot__label {
  margin: 0;
  font-family: var(--g4-font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g4-cyan);
  white-space: nowrap;
}

.g4-legend,
.g4-planning-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
}

.g4-legend span,
.g4-planning-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--g4-font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--g4-muted);
}

.g4-legend i,
.g4-planning-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.g4-section-foot__note,
.g4-planning-note {
  margin: 0;
  flex: 0 0 auto;
  color: var(--g4-muted);
  font-size: 0.76rem;
  font-style: italic;
  line-height: 1.35;
  text-align: right;
  max-width: 22rem;
}

@media (max-width: 640px) {
  .g4-section-foot {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0.85rem;
  }

  .g4-section-foot__main {
    width: 100%;
  }

  .g4-section-foot__note,
  .g4-planning-note {
    text-align: left;
    max-width: none;
  }

  .g4-legend,
  .g4-planning-legend {
    gap: 0.45rem 0.85rem;
  }
}

/* ── Planning (legacy shell iframe) ── */
.g4-planning-shell {
  padding-bottom: 2rem;
}

.g4-planning-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1109;
  border: 1px solid var(--g4-border);
  border-radius: var(--g4-radius);
  overflow: hidden;
  background: var(--g4-bg-2);
}

.g4-planning-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.g4-planning-overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36%;
  background: var(--g4-bg);
  pointer-events: none;
  z-index: 2;
}

.g4-planning-overlay-brand {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36%;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g4-planning-overlay-brand img {
  max-height: 64px;
  width: auto;
}

/* ── Team ── */
.g4-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  padding-bottom: 3rem;
}

.g4-team-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.g4-team-card {
  background: var(--g4-card);
  border: 1px solid var(--g4-border);
  border-radius: var(--g4-radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.g4-team-card__avatar-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--g4-cyan), #6366f1);
}

.g4-team-card__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.g4-team-card h2,
.g4-team-card h3 {
  font-family: var(--g4-font-display);
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.g4-badge {
  display: inline-block;
  background: var(--g4-cyan-dim);
  color: var(--g4-cyan);
  font-family: var(--g4-font-display);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.g4-team-card__socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  font-size: 0.75rem;
}

.g4-team-card__socials a {
  color: var(--g4-muted);
  text-decoration: none;
}

.g4-team-card__socials a:hover {
  color: var(--g4-cyan);
}

/* ── Boutique ── */
.g4-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.g4-filter-tab {
  font-family: var(--g4-font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--g4-cyan);
  color: var(--g4-cyan);
  text-decoration: none;
  background: transparent;
}

.g4-filter-tab.is-active {
  background: var(--g4-cyan);
  color: #041018;
}

.g4-product-card--shop {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.g4-product-card__img {
  display: block;
  background: var(--g4-bg-2);
  border-radius: var(--g4-radius-sm);
  padding: 1rem;
}

/* ── Contact ── */
.g4-contact {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.25rem;
  padding-bottom: 3rem;
}

.g4-contact__form {
  background: var(--g4-card);
  border: 1px solid var(--g4-border);
  border-radius: var(--g4-radius);
  padding: 1.5rem;
}

.g4-contact__form input,
.g4-contact__form textarea {
  width: 100%;
  background: var(--g4-bg) !important;
  border: 1px solid var(--g4-border) !important;
  color: var(--g4-text) !important;
  border-radius: var(--g4-radius-sm) !important;
  padding: 0.75rem 1rem !important;
  margin-bottom: 0.85rem;
}

.g4-contact__form input[type="submit"],
.g4-contact__form .wpcf7-submit {
  background: var(--g4-cyan) !important;
  color: #041018 !important;
  border: none !important;
  font-family: var(--g4-font-display) !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  width: 100%;
}

.g4-contact__socials {
  background: var(--g4-card);
  border: 1px solid var(--g4-border);
  border-radius: var(--g4-radius);
  padding: 1.25rem;
}

.g4-contact__socials h3 {
  font-family: var(--g4-font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--g4-muted);
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

.g4-social-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: var(--g4-text);
}

.g4-social-row span:last-child {
  color: var(--g4-cyan);
}

/* ── Streamer profile (legacy — neutralisé sur g4-page-streamer) ── */
body.g4-page-streamer .g4-streamer-hero {
  padding: 0;
}

body.g4-page-streamer .g4-streamer-hero__profile {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

body.g4-page-streamer .g4-streamer-hero__profile h1,
body.g4-page-streamer .g4-streamer-hero__profile p {
  margin: inherit;
  color: inherit;
}

.g4-streamer-hero {
  padding: 2rem 0 1rem;
}

.g4-section-title {
  font-family: var(--g4-font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin: 2rem 0 1rem;
}

.g4-core-twitch iframe {
  width: 100%;
  border: 0;
  border-radius: var(--g4-radius-sm);
}

/* ── YouTube embed styling (legacy) ── */
.g4-youtube-content .qt-part-archive-item,
.g4-youtube-content .sw-youtube-video {
  background: var(--g4-card);
  border: 1px solid var(--g4-border);
  border-radius: var(--g4-radius-sm);
}

.g4-youtube-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  padding-bottom: 3rem;
}

/* ── Footer site (harmonisé avec .g4-section-foot) ── */
.g4-footer {
  background: transparent;
  border-top: none;
  margin-top: auto;
  padding: clamp(0.75rem, 1.5vw, 1.25rem) 0 clamp(1.25rem, 2.5vw, 2rem);
  flex-shrink: 0;
}

.g4-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1.15fr 1.1fr;
  gap: 2rem 2.5rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  background: rgba(8, 14, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--g4-radius-sm);
  box-shadow:
    0 0 0 1px rgba(0, 229, 192, 0.05) inset,
    0 8px 24px rgba(0, 0, 0, 0.18);
}

.g4-footer__logo {
  height: 52px;
  width: auto;
  margin-bottom: 0.85rem;
  filter: drop-shadow(0 0 10px rgba(0, 229, 192, 0.08));
}

.g4-footer__brand p {
  color: #8fa3b8;
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
  max-width: 28ch;
}

.g4-footer h4 {
  font-family: var(--g4-font-display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.g4-footer__social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
}

.g4-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--g4-font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #c8d6e5;
  text-decoration: none;
  transition: color 0.2s;
}

.g4-social-link:hover {
  color: #fff;
}

.g4-social-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.g4-social-link__icon--twitch {
  color: #9147ff;
}

.g4-social-link__icon--youtube {
  color: #ff0033;
}

.g4-social-link__icon--x {
  color: #1da1f2;
}

.g4-social-link__icon--instagram {
  color: #e4405f;
}

.g4-social-link__icon--discord {
  color: #5865f2;
}

.g4-footer__legal-col {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-end;
  text-align: right;
}

.g4-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: flex-end;
}

.g4-footer__legal a {
  font-family: var(--g4-font-display);
  color: #8fa3b8;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s;
}

.g4-footer__legal a:hover {
  color: var(--g4-cyan);
}

.g4-footer__copy {
  color: #6b8098;
  font-size: 0.72rem;
  margin: 0;
  letter-spacing: 0.02em;
}

/* Legacy social pills — autres pages si besoin */
.g4-socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.g4-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 0.45rem 0.75rem;
  border-radius: var(--g4-radius-sm);
  font-family: var(--g4-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}

.g4-social--twitch { background: #9147ff; }
.g4-social--youtube { background: #ff0033; }
.g4-social--facebook { background: #1877f2; }
.g4-social--x { background: #111; border: 1px solid rgba(255, 255, 255, 0.15); }
.g4-social--instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.g4-social--discord { background: #5865f2; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .g4-hero {
    grid-template-columns: 1fr;
  }

  .g4-hero__featured-body {
    max-width: 100%;
  }

  .g4-split {
    grid-template-columns: 1fr;
  }

  .g4-live-layout {
    grid-template-columns: 1fr;
  }

  .g4-contact {
    grid-template-columns: 1fr;
  }

  .g4-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .g4-footer__legal-col {
    border-left: none;
    padding-left: 0;
    align-items: flex-start;
    text-align: left;
  }

  .g4-footer__legal {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  body.g4-design .g4-wrap {
    width: min(100% - 1.25rem, var(--g4-wrap-fluid));
  }

  .g4-chrome__sticky {
    position: sticky;
    top: 0;
    z-index: 230;
  }

  .g4-mobile-toggle {
    display: flex;
  }

  .g4-header__tools .g4-header__cart {
    display: none;
  }

  .g4-logo img {
    height: 46px;
  }

  .g4-chrome .g4-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(88vw, 300px);
    height: 100dvh;
    max-height: 100dvh;
    z-index: 220;
    padding: 4.5rem 1.25rem 2rem;
    background: linear-gradient(180deg, #0c1628 0%, #080e18 100%);
    border-left: 1px solid rgba(0, 229, 192, 0.25);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.55);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.28s ease, visibility 0.28s;
    visibility: hidden;
    pointer-events: none;
  }

  .g4-chrome .g4-nav.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .g4-nav__link {
    border-bottom: none;
    border-left: 3px solid transparent;
    padding: 0.9rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0;
  }

  .g4-nav__link.is-active {
    border-left-color: var(--g4-cyan);
    border-bottom-color: transparent;
    background: rgba(0, 229, 192, 0.08);
  }

  body.g4-nav-open {
    overflow: hidden;
  }

  .g4-topbar__inner {
    flex-wrap: nowrap;
    gap: 0.75rem;
  }

  .g4-topbar__streamers {
    display: flex;
    flex: 1;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.85rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }

  .g4-topbar__streamers::-webkit-scrollbar {
    display: none;
  }

  .g4-topbar__name {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.68rem;
  }

  .g4-live-pill,
  .g4-live-pill--muted {
    flex-shrink: 0;
    font-size: 0.65rem;
  }

  .g4-footer {
    padding: clamp(0.65rem, 1.2vw, 1rem) 0 clamp(1rem, 2vw, 1.5rem);
  }

  .g4-footer__grid {
    padding: 0.95rem 1rem;
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .g4-footer__legal-col {
    border-left: none;
    padding-left: 0;
    align-items: flex-start;
    text-align: left;
  }

  .g4-footer__legal {
    justify-content: flex-start;
  }

  .g4-shop-grid {
    grid-template-columns: 1fr;
  }

  .g4-streamer-hero__profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
