/* Liste des jeux — cartes carrées + filtre type boutique */

.games-page__intro {
  margin-bottom: 1.25rem;
}

.games-page__filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  padding: 0.75rem 0 1.25rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line, #e5e7eb);
}

.games-page__filter a {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  text-decoration: none;
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.games-page__filter a:hover {
  color: #111827;
}

.games-page__filter a.is-active {
  color: #111827;
}

.games-page__filter a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #111827;
  border-radius: 1px;
}

.games-page__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: flex-start;
}

.games-card {
  width: 120px;
  height: 120px;
  flex: 0 0 120px;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid var(--line, #e5e7eb);
  background: #f3f4f6;
  display: block;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.games-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.games-card__media {
  position: relative;
  width: 100%;
  height: 100%;
}

.games-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.games-card__title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.4rem 0.35rem;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.85),
    0 0 12px rgba(0, 0, 0, 0.35);
  z-index: 2;
  pointer-events: none;
}

.games-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.1) 45%,
    transparent 70%
  );
  z-index: 1;
  pointer-events: none;
}

.games-page__empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}
