/**
 * G4melab — Accueil premium (maquette + polish visuel)
 */

/* ── Ambiance globale ── */
body.g4-page-home {
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(255, 45, 138, 0.11) 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 85% 110%, rgba(0, 229, 192, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(20, 40, 70, 0.4) 0%, transparent 70%),
    #070d18 !important;
}

body.g4-page-home .g4-app {
  position: relative;
}

body.g4-page-home .g4-app::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.g4-page-home .g4-main {
  position: relative;
  z-index: 1;
}

/* ── Topbar accueil ── */
.g4-page-home .g4-topbar {
  background: rgba(4, 8, 14, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

.g4-page-home .g4-topbar__inner {
  justify-content: flex-start;
  gap: 2rem;
}

.g4-page-home .g4-topbar__streamers {
  flex: 1;
  justify-content: center;
  gap: 1.25rem;
}

.g4-page-home .g4-topbar__name {
  transition: color 0.2s;
  font-weight: 600;
}

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

/* ── Hero ── */
.g4-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1rem;
  padding: 1.5rem 0 1.75rem;
  align-items: stretch;
}

.g4-home-featured {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 192, 0.22);
  background: #0a1424;
  box-shadow:
    0 0 0 1px rgba(0, 229, 192, 0.06),
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 100px rgba(0, 229, 192, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.3s;
}

.g4-home-featured:hover {
  box-shadow:
    0 0 0 1px rgba(0, 229, 192, 0.15),
    0 28px 70px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(0, 229, 192, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.g4-home-featured__visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 25% 85%, rgba(255, 45, 138, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 15%, rgba(0, 229, 192, 0.25) 0%, transparent 45%),
    linear-gradient(180deg, #0c1528 0%, #060c14 100%);
}

.g4-home-featured__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(10, 22, 40, 0.85) 100%);
  z-index: 2;
  pointer-events: none;
}

.g4-home-featured__visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  filter: contrast(1.05) saturate(1.08);
  transform: scale(1.02);
}

.g4-home-featured__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: g4-glow-drift 8s ease-in-out infinite alternate;
}

.g4-home-featured__glow--pink {
  width: 260px;
  height: 260px;
  background: rgba(255, 45, 138, 0.45);
  bottom: 0;
  left: -5%;
}

.g4-home-featured__glow--cyan {
  width: 200px;
  height: 200px;
  background: rgba(0, 229, 192, 0.35);
  top: 5%;
  right: 5%;
  animation-delay: -4s;
}

@keyframes g4-glow-drift {
  from { transform: translate(0, 0) scale(1); opacity: 0.85; }
  to   { transform: translate(12px, -8px) scale(1.08); opacity: 1; }
}

.g4-home-featured__content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2rem 2rem 1.5rem;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 45, 138, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(0, 229, 192, 0.08) 0%, transparent 50%),
    linear-gradient(160deg, #0d1a30 0%, #0a1628 100%);
  align-items: flex-start;
}

.g4-home-kicker {
  font-family: var(--g4-font-display);
  color: var(--g4-cyan);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  text-shadow: 0 0 20px rgba(0, 229, 192, 0.4);
}

.g4-home-title {
  font-family: var(--g4-font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.8rem;
  line-height: 1.02;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.g4-home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.g4-home-tag {
  font-family: var(--g4-font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.g4-home-tag--magenta {
  color: #ff6bb3;
  background: rgba(255, 45, 138, 0.1);
  border: 1px solid rgba(255, 45, 138, 0.5);
  box-shadow: 0 0 12px rgba(255, 45, 138, 0.15);
}

.g4-home-tag--cyan {
  color: var(--g4-cyan);
  background: rgba(0, 229, 192, 0.08);
  border: 1px solid rgba(0, 229, 192, 0.45);
  box-shadow: 0 0 12px rgba(0, 229, 192, 0.12);
}

.g4-home-desc {
  color: #a8bdd4;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  max-width: 36ch;
}

.g4-home-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
  background: linear-gradient(135deg, #00f5d4 0%, #00e5c0 50%, #00cdb0 100%);
  color: #041018;
  font-family: var(--g4-font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  border: none;
  box-shadow:
    0 0 24px rgba(0, 229, 192, 0.45),
    0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.g4-home-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 36px rgba(0, 229, 192, 0.6),
    0 8px 24px rgba(0, 0, 0, 0.35);
  color: #041018;
  filter: brightness(1.05);
}

.g4-home-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(4, 16, 24, 0.25);
  border-radius: 50%;
}

/* ── Sidebar streamers ── */
.g4-home-streamers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.g4-page-home .g4-streamer-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 0.6rem;
  background: rgba(10, 18, 32, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  min-height: 66px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.g4-page-home .g4-streamer-row:hover {
  border-color: rgba(0, 229, 192, 0.2);
  transform: translateX(2px);
}

.g4-page-home .g4-streamer-row.is-featured {
  border-color: rgba(0, 229, 192, 0.55);
  background: linear-gradient(135deg, rgba(0, 229, 192, 0.08) 0%, rgba(10, 18, 32, 0.9) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 229, 192, 0.25),
    0 0 28px rgba(0, 229, 192, 0.15),
    inset 0 1px 0 rgba(0, 229, 192, 0.1);
}

.g4-page-home .g4-streamer-row__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 229, 192, 0.3);
  box-shadow: 0 0 12px rgba(0, 229, 192, 0.15);
}

.g4-page-home .g4-streamer-row.is-featured .g4-streamer-row__avatar {
  border-color: var(--g4-cyan);
  box-shadow: 0 0 16px rgba(0, 229, 192, 0.35);
}

.g4-page-home .g4-streamer-row__info strong {
  display: block;
  font-family: var(--g4-font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.g4-page-home .g4-streamer-row__status {
  font-family: var(--g4-font-display);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a7088;
}

.g4-page-home .g4-streamer-row__status::before {
  content: "● ";
  color: #5a7088;
}

.g4-page-home .g4-streamer-row__status.is-live {
  color: #3dff9a;
  text-shadow: 0 0 8px rgba(61, 255, 154, 0.4);
}

.g4-page-home .g4-streamer-row__status.is-live::before {
  color: #3dff9a;
}

.g4-page-home .g4-streamer-row__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--g4-font-display);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.38rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.g4-page-home .g4-streamer-row__btn--live {
  color: var(--g4-cyan);
  border: 1px solid rgba(0, 229, 192, 0.6);
  background: rgba(0, 229, 192, 0.06);
  box-shadow: 0 0 12px rgba(0, 229, 192, 0.15);
}

.g4-page-home .g4-streamer-row__btn--live:hover {
  background: rgba(0, 229, 192, 0.15);
  box-shadow: 0 0 18px rgba(0, 229, 192, 0.3);
}

.g4-page-home .g4-streamer-row__btn--off {
  color: #5a7088;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

/* ── Split panels (60% highlights | 40% boutique) ── */
.g4-home-split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1rem;
  padding-bottom: 3rem;
  align-items: start;
}

.g4-home-panel {
  background: linear-gradient(160deg, rgba(14, 26, 44, 0.85) 0%, rgba(8, 15, 28, 0.9) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 229, 192, 0.14);
  border-radius: 16px;
  padding: 1.15rem 1.15rem 1.2rem;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-width: 0;
}

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

.g4-home-panel__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--g4-font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.g4-home-panel__svg {
  color: var(--g4-cyan);
  filter: drop-shadow(0 0 6px rgba(0, 229, 192, 0.4));
  flex-shrink: 0;
}

.g4-home-panel__link {
  font-family: var(--g4-font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--g4-cyan);
  text-decoration: none;
  transition: text-shadow 0.2s;
}

.g4-home-panel__link:hover {
  text-shadow: 0 0 12px rgba(0, 229, 192, 0.5);
}

/* Highlights — 3 cartes verticales en ligne (maquette) */
.g4-home-panel__highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.g4-home-hcard {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: rgba(6, 12, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  min-width: 0;
}

.g4-home-hcard:hover {
  border-color: rgba(0, 229, 192, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(0, 229, 192, 0.1);
}

.g4-home-hcard__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.g4-home-hcard__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.32);
}

.g4-home-hcard__play svg {
  width: 14px;
  height: 14px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.92);
  color: #0a1628;
  border-radius: 50%;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s, background 0.2s;
}

.g4-home-hcard:hover .g4-home-hcard__play svg {
  transform: scale(1.08);
  background: #fff;
}

.g4-home-hcard__duration {
  position: absolute;
  bottom: 0.4rem;
  right: 0.4rem;
  font-family: var(--g4-font-display);
  font-size: 0.58rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  padding: 0.12rem 0.38rem;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

.g4-home-hcard__body {
  padding: 0.65rem 0.7rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.g4-home-hcard__game {
  font-family: var(--g4-font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g4-cyan);
}

.g4-home-hcard__body h3 {
  font-family: var(--g4-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.g4-home-hcard__body p {
  font-size: 0.62rem;
  color: #7a90a8;
  margin: 0;
  line-height: 1.35;
}

/* Boutique — 4 produits en ligne (maquette) */
.g4-home-panel__shop {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.g4-home-pcard {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: rgba(6, 12, 22, 0.75);
  border: 1px solid rgba(0, 229, 192, 0.15);
  border-radius: 12px;
  padding: 0.65rem 0.55rem 0.7rem;
  text-align: center;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  min-width: 0;
}

.g4-home-pcard:hover {
  border-color: var(--g4-cyan);
  transform: translateY(-3px);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 229, 192, 0.12);
}

.g4-home-pcard__img {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(0, 229, 192, 0.07) 0%, transparent 55%),
    rgba(4, 10, 18, 0.95);
  border-radius: 10px;
  padding: 0.55rem;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.25s;
}

.g4-home-pcard:hover .g4-home-pcard__img {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(0, 229, 192, 0.14) 0%, transparent 55%),
    rgba(4, 10, 18, 0.95);
}

.g4-home-pcard__img img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s;
}

.g4-home-pcard:hover .g4-home-pcard__img img {
  transform: scale(1.06);
}

.g4-home-pcard h3 {
  font-family: var(--g4-font-display);
  font-size: 0.62rem;
  font-weight: 600;
  color: #eef3fa;
  margin: 0 0 0.25rem;
  line-height: 1.25;
  flex: 1;
}

.g4-home-pcard__price {
  font-family: var(--g4-font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--g4-cyan);
  text-shadow: 0 0 12px rgba(0, 229, 192, 0.3);
  margin-top: auto;
}

.g4-home-pcard__price .woocommerce-Price-amount {
  color: var(--g4-cyan);
}

/* ── Footer accueil ── */
@media (max-width: 1100px) {
  .g4-home-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .g4-home-hero {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0 1.25rem;
  }

  .g4-home-featured {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 14px;
  }

  .g4-home-featured__visual {
    min-height: 0;
    aspect-ratio: 16 / 11;
    max-height: 280px;
  }

  .g4-home-featured__visual::after {
    background: linear-gradient(180deg, transparent 40%, rgba(10, 22, 40, 0.5) 100%);
  }

  .g4-home-featured__content {
    padding: 1.35rem 1.25rem 1.5rem;
    text-align: center;
    align-items: center;
  }

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

  .g4-home-desc {
    max-width: none;
    font-size: 0.88rem;
  }

  .g4-home-cta {
    width: 100%;
    justify-content: center;
  }

  .g4-home-title {
    font-size: 2rem;
  }

  /* Streamers — liste compacte verticale */
  .g4-home-streamers {
    flex-direction: column;
    overflow: visible;
    gap: 0.4rem;
    padding-bottom: 0;
  }

  .g4-page-home .g4-streamer-row {
    flex: none;
    min-height: 52px;
    padding: 0.45rem 0.65rem;
    grid-template-columns: 36px 1fr auto;
  }

  .g4-page-home .g4-streamer-row__avatar {
    width: 36px;
    height: 36px;
  }

  .g4-page-home .g4-streamer-row__info strong {
    font-size: 0.82rem;
  }

  .g4-page-home .g4-streamer-row__status {
    font-size: 0.54rem;
  }

  .g4-page-home .g4-streamer-row__btn {
    font-size: 0.5rem;
    padding: 0.3rem 0.45rem;
  }

  .g4-page-home .g4-streamer-row__btn--off {
    display: none;
  }

  .g4-home-split {
    gap: 1rem;
    padding-bottom: 2rem;
  }

  .g4-home-panel {
    padding: 1rem;
    border-radius: 14px;
  }

  .g4-home-panel__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
  }

  /* Highlights — scroll horizontal */
  .g4-home-panel__highlights {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .g4-home-panel__highlights::-webkit-scrollbar {
    display: none;
  }

  .g4-home-hcard {
    flex: 0 0 min(72vw, 260px);
    scroll-snap-align: start;
  }

  /* Boutique — 2 colonnes */
  .g4-home-panel__shop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .g4-home-pcard {
    padding: 0.65rem 0.5rem 0.7rem;
  }

  .g4-home-pcard__img {
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 0.5rem;
  }

  .g4-home-pcard h3 {
    font-size: 0.65rem;
  }

  .g4-home-pcard__price {
    font-size: 0.88rem;
  }
}

@media (max-width: 420px) {
  .g4-home-featured__visual {
    aspect-ratio: 4 / 3;
    max-height: 240px;
  }

  .g4-home-title {
    font-size: 1.75rem;
  }

  .g4-page-home .g4-streamer-row {
    grid-template-columns: 34px 1fr auto;
    min-height: 48px;
  }

  .g4-home-hcard {
    flex: 0 0 84vw;
  }

  .g4-footer__legal a {
    white-space: normal;
  }
}
