:root {
  --bg: #03070b;
  --bg-soft: #07131a;
  --card: #081a22;
  --border: #0bc9e7;
  --text: #eafcff;
  --muted: #9ccdd3;
  --accent: #00d9ff;
  --accent-soft: rgba(0, 217, 255, 0.12);
  --shadow: 0 0 20px rgba(0, 217, 255, 0.12);
  --radius: 18px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Merriweather", serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 35%, rgba(0, 217, 255, 0.10), transparent 45%),
    linear-gradient(180deg, #020508 0%, #03070b 100%);
  background-attachment: fixed;
}

.hero-card h1,
.section-title,
.game-title,
.logo,
.nav-link {
  font-family: "Cinzel", serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(2, 8, 12, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(11, 201, 231, 0.25);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--text);
  letter-spacing: 0.4px;
}

.main-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.25s ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 8, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 217, 255, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.site-header::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 217, 255, 0.45) 20%,
    rgba(0, 217, 255, 0.75) 50%,
    rgba(0, 217, 255, 0.45) 80%,
    transparent 100%
  );
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 371px;
  height: 200px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.18));
}

.brand-text {
  font-family: "Cinzel", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f4fbff;
  letter-spacing: 0.4px;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.08);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  color: #cdeef4;
  font-family: "Cinzel", serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(0, 217, 255, 0.08);
  border-color: rgba(0, 217, 255, 0.24);
  box-shadow: 0 0 14px rgba(0, 217, 255, 0.12);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 217, 255, 0.16), rgba(0, 217, 255, 0.08));
  border-color: rgba(0, 217, 255, 0.38);
  box-shadow:
    0 0 18px rgba(0, 217, 255, 0.12),
    inset 0 0 10px rgba(0, 217, 255, 0.04);
}

.hero,
.games-hero {
  padding: 40px 0 24px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem;
  border-radius: 24px;
  text-align: center;
  isolation: isolate;

  /* Image de fond */
  background: url("images/banner/banner2.jpg") center center / cover no-repeat;

  /* bordure + glow léger */
  border: 1px solid rgba(0, 229, 255, 0.25);
  box-shadow:
    0 0 12px rgba(0, 229, 255, 0.12),
    0 0 28px rgba(0, 229, 255, 0.08);
}

/* Overlay sombre */
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  z-index: -2;
}

/* Texture légère */
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://www.transparenttextures.com/patterns/asfalt-light.png");
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}


.hero-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  color: #ffffff;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 18px 0 26px;
  color: #ffffff;
}

.socials,
.planning {
  padding: 20px 0 36px;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  justify-items: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  width: 160px;
  max-width: 260px;
  border-radius: 999px;
  border: 1px solid rgba(11, 201, 231, 0.45);
  background: rgba(8, 26, 34, 0.85);
  color: white;
  font-weight: bold;
  transition: 0.25s ease;
  position: relative;
  z-index: 2;
}

.social-grid::before {
  content: "";
  position: absolute;
  inset: 0;

  background: url("images/banner/rune2.gif") center / 140px no-repeat;

  opacity: 1.00;
  pointer-events: none;
  z-index: 0;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

/* Positionnement custom */
.social-btn.twitch {
  grid-column: 2;
}

.social-btn.youtube {
  grid-column: 1;
  grid-row: 3;
}

.social-btn.tiktok {
  grid-column: 3;
  grid-row: 3;
}

.social-btn.discord {
  grid-column: 2;
  grid-row: 5;
}

.youtube { color: #ff4d4d; }
.twitch { color: #b77dff; }
.tiktok { color: #ffffff; }
.discord { color: #8ea8ff; }

.planning-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.day-card {
  position: relative;
  min-height: 180px;
  padding: 18px 14px;
  border: 1px solid rgba(11, 201, 231, 0.4);
  border-radius: var(--radius);
  background: rgba(4, 17, 24, 0.88);
  text-align: center;
  transition: 0.25s ease;
}

.day-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.day-card h3 {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 1.1rem;
}

.day-card .time {
  font-weight: bold;
  margin-bottom: 12px;
}

.day-card.today {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(0, 217, 255, 0.28);
  background: linear-gradient(180deg, rgba(0, 217, 255, 0.1), rgba(4, 17, 24, 0.95));
}

.day-card.today {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(0, 217, 255, 0.10), rgba(0, 217, 255, 0.04)),
    rgba(4, 17, 24, 0.88);
  box-shadow:
    0 0 24px rgba(0, 217, 255, 0.22),
    inset 0 0 18px rgba(0, 217, 255, 0.05);
}

.filters-section {
  padding: 6px 0 22px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(11, 201, 231, 0.4);
  background: rgba(8, 26, 34, 0.72);
  color: var(--text);
  cursor: pointer;
  transition: 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.games-list {
  display: grid;
  gap: 18px;
  padding-bottom: 42px;
}

.game-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  border: 1px solid rgba(11, 201, 231, 0.35);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(8, 26, 34, 0.78);
  box-shadow: var(--shadow);
}

.game-image {
  width: 100%;
  height: 260px; /* 👈 fixe */
  object-fit: cover;
}

.game-content {
  display: flex;
  flex-direction: column;
  padding: 16px 18px 16px 0;
}

.game-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.game-title {
  margin: 0;
  font-size: 1.8rem;
}

.game-category {
  display: inline-flex;
  margin: 8px 0 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
}

.game-note {
  white-space: nowrap;
  font-weight: bold;
  color: var(--accent);
}

.game-synopsis {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* 👈 au lieu de 4 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-links {
  margin-top: auto;
}

.game-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(11, 201, 231, 0.4);
  background: rgba(0, 217, 255, 0.06);
  transition: 0.25s ease;
}

.game-link:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.empty-state {
  padding: 20px;
  border: 1px dashed rgba(11, 201, 231, 0.35);
  border-radius: 16px;
  color: var(--muted);
}

.tier-badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.85rem;
}

/* S = top tier */
.tier-S {
  background: rgba(0, 255, 200, 0.15);
  color: #00ffd5;
  box-shadow: 0 0 10px rgba(0,255,200,0.4);
}

/* A = très bon */
.tier-A {
  background: rgba(255, 0, 0, 0.15);
  color: #ff0000;
  box-shadow: 0 0 10px rgba(255,0,0,0.4);
}

/* B = moyen */
.tier-B {
  background: rgba(255, 165, 0, 0.15);
  color: #ffc800;
  box-shadow: 0 0 10px rgba(255,165,0,0.4);
}

/* C = faible */
.tier-C {
  background: rgba(255, 200, 0, 0.15);
  color: #ffc800;
  box-shadow: 0 0 10px rgba(255,200,0,0.4);
}

/* D = a chier */
.tier-D {
  background: rgba(180, 180, 180, 0.15);
  color: #aaa;
  box-shadow: 0 0 10px rgba(180,180,180,0.4);
}

.monthly-games {
  padding: 20px 0 40px;
}

.monthly-games-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* Carte */
.monthly-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 160px;
  transition: 0.25s ease;
}

/* Image */
.monthly-game img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;

  border: 1px solid rgba(11, 201, 231, 0.4);
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.12);
  transition: 0.25s ease;
}

/* Hover stylé */
.monthly-game:hover img {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.25);
}

/* Nom du jeu */
.monthly-game p {
  margin-top: 10px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text);
}

  

@media (max-width: 980px) {
  .planning-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-card {
    grid-template-columns: 1fr;
  }

  .game-content {
    padding: 18px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    justify-content: center;
  }

  .brand-logo {
    width: 232px;
    height: 125px;
  }

  .brand-text {
    font-size: 1.05rem;
    text-align: center;
  }

  .main-nav {
    justify-content: center;
  }

  .nav-link {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.85rem;
  }

  .monthly-games-grid {
    grid-template-columns: 1fr;
  }

  .social-btn {
  grid-column: auto !important;
  grid-row: auto !important;
  }

  .game-image {
  width: 100%;
  height: 180px; /* 👈 fixe */
  object-fit: cover;
  }
}
