/* Fond d'écran pour toute la page */
body {
  background-image: url('fond_décran.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
}

/* Conteneur principal des jeux */
.jeux-container {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 75px 20px 20px 20px;
}

.jeux-container h1 {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  font-weight: 700;
}

.jeux-container > p {
  text-align: center;
  color: #e0e0e0;
  margin-bottom: 40px;
  font-size: 1.1em;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* Conteneur des catégories */
.categories-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

/* Labels boutons catégories */
.btn-label-short { display: none; }
.btn-label-full  { display: inline; }

@media (max-width: 480px) {
  .btn-label-short { display: inline; }
  .btn-label-full  { display: none; }
}

/* Boutons de catégorie */
.category-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  padding: 12px 24px;
  font-size: 1em;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.category-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.category-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.category-emoji {
  font-size: 1.3em;
  line-height: 1;
}

/* Grille de jeux */
.jeux-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 22px;
  margin-top: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Carte de jeu */
.jeu-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.jeu-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Image du jeu */
.jeu-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1536 / 1024;
  object-fit: cover;
  display: block;
}

/* Icône du jeu (pour les jeux sans image) */
.jeu-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px;
  text-align: center;
  font-size: 5em;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenu de la carte */
.jeu-content {
  position: relative;
  padding: 8px 12px;
  background: rgba(50, 50, 55, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.jeu-title {
  font-size: 0.825em;
  font-weight: 600;
  color: white;
  margin: 0;
  display: none;
}

.jeu-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Badge nombre de joueurs */
.jeu-players {
  display: inline-block;
  background: transparent;
  color: #a8b3ff;
  padding: 0;
  border-radius: 0;
  font-size: 0.85em;
  font-weight: 500;
  white-space: nowrap;
}

/* Badge statut */
.jeu-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
}

/* Jeux bientôt disponibles */
.coming-soon {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
}

.coming-soon::after {
  content: "Bientôt disponible";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.coming-soon:hover::after {
  opacity: 1;
}

.coming-soon:hover {
  transform: none;
}

/* Responsive */
@media (max-width: 768px) {
  .jeux-container {
    padding: 85px 12px 20px 12px;
  }

  .jeux-container h1 {
    font-size: 1.8em;
  }

  .jeux-container > p {
    font-size: 0.95em;
    margin-bottom: 25px;
  }

  .categories-container {
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: nowrap;
  }

  .category-btn {
    padding: 9px 10px;
    font-size: 0.85em;
    gap: 5px;
    flex: 1;
    justify-content: center;
  }

  .category-emoji {
    font-size: 1.1em;
  }

  .jeux-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .jeu-image,
  .jeu-icon {
    height: auto;
  }
}

@media (max-width: 480px) {
  .jeux-container {
    padding: 80px 10px 20px 10px;
  }

  .jeux-container h1 {
    font-size: 1.5em;
  }

  .categories-container {
    gap: 6px;
    flex-wrap: nowrap;
  }

  .category-btn {
    padding: 8px 8px;
    font-size: 0.75em;
    flex: 1;
    justify-content: center;
  }

  .category-emoji {
    font-size: 1.3em;
  }

  .jeux-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Section salons (temporaire) */
.salons-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 40px;
}

.placeholder-content {
  text-align: center;
  max-width: 500px;
}

.placeholder-icon {
  font-size: 4em;
  display: block;
  margin-bottom: 20px;
}

.placeholder-content h2 {
  font-size: 2em;
  color: #333;
  margin-bottom: 15px;
}

.placeholder-content p {
  color: #666;
  font-size: 1.1em;
  margin-bottom: 30px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  color: #667eea;
  font-size: 1em;
  margin: 10px 0;
  font-weight: 500;
}
/* ==========================================
   MODALE JEU NON DISPONIBLE
   ========================================== */

.unavailable-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.unavailable-modal.show {
  opacity: 1;
  pointer-events: all;
}

.unavailable-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.unavailable-content {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  color: white;
}

.unavailable-modal.show .unavailable-content {
  transform: scale(1);
}

.unavailable-icon {
  font-size: 5em;
  margin-bottom: 20px;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.unavailable-content h2 {
  font-size: 2em;
  margin: 0 0 15px 0;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.unavailable-content p {
  font-size: 1.1em;
  margin: 10px 0;
  line-height: 1.6;
  opacity: 0.95;
}

.unavailable-content p strong {
  font-weight: 700;
  color: #ffd700;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.unavailable-subtitle {
  font-size: 0.95em !important;
  opacity: 0.8 !important;
  font-style: italic;
  margin-top: 15px !important;
}

.unavailable-close-btn {
  margin-top: 30px;
  padding: 12px 40px;
  font-size: 1.1em;
  font-weight: 600;
  background: white;
  color: #667eea;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.unavailable-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #ffd700;
  color: #667eea;
}

.unavailable-close-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .unavailable-content {
    padding: 30px 20px;
  }
  
  .unavailable-icon {
    font-size: 4em;
  }
  
  .unavailable-content h2 {
    font-size: 1.6em;
  }
  
  .unavailable-content p {
    font-size: 1em;
  }
}
