/* Fiche jeu — mobile + desktop */

.game-preview {
  padding: 1.25rem 0 2.5rem;
}

@media (min-width: 1024px) {
  .game-preview {
    padding: 2rem 0 3.5rem;
  }
}

.game-preview__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  margin-bottom: 1rem;
}

.game-preview__back:hover {
  color: #2563eb;
}

.game-preview__layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .game-preview__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 2.5rem;
    align-items: start;
  }
}

.game-preview__visual {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  aspect-ratio: 16 / 10;
  max-height: 420px;
}

@media (min-width: 1024px) {
  .game-preview__visual {
    aspect-ratio: 4 / 3;
    max-height: none;
  }
}

.game-preview__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-preview__visual-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.game-preview__panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.game-preview__tagline {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #4b5563;
  margin: 0;
}

.game-preview__box {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.15rem 1.25rem;
  background: #fff;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.game-preview__box h2 {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin: 0 0 0.65rem;
}

.game-preview__box p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #374151;
  white-space: pre-line;
}

.game-preview__actions {
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 1024px) {
  .game-preview__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.game-preview__play {
  width: 100%;
  text-align: center;
  display: block;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .game-preview__play {
    width: auto;
    display: inline-block;
    min-width: 200px;
  }
}

/* Partage (modèle animation-button-model — bouton « Partager » + icônes) */
.game-preview .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.game-preview .share-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-family: "Poppins", system-ui, sans-serif;
}

.game-preview .share-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 0.75rem;
}

.game-preview .text-share-btn {
  background-color: #111827;
  color: #fff;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  border: none;
  font-family: inherit;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.game-preview .text-share-btn:hover {
  background-color: #1f2937;
  transform: scale(1.02);
}

.game-preview .share-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-left: 0;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, max-width 0.35s ease;
}

@media (min-width: 480px) {
  .game-preview .share-items {
    gap: 0.75rem;
  }
}

.game-preview .share-btn.open .share-items {
  max-width: 22rem;
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 480px) {
  .game-preview .share-btn.open .share-items {
    margin-left: 1rem;
  }
}

.game-preview .share-items li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background-color: #f3f4f6;
  color: #374151;
  border-radius: 0.875rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  font-size: 1.15rem;
}

@media (min-width: 480px) {
  .game-preview .share-items li a {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }
}

.game-preview .share-items li a:hover {
  background-color: #7c3aed;
  color: #fff;
  transform: scale(1.08);
}

.game-preview__share-root {
  width: 100%;
}

@media (min-width: 1024px) {
  .game-preview__share-root {
    width: auto;
  }
}

.game-preview__notice--in-actions {
  width: 100%;
  margin: 0;
}

.game-preview__notice {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px dashed #d1d5db;
  background: #f9fafb;
  font-size: 0.8125rem;
  color: #6b7280;
}
