/* ==================================================
   CSS pour les pages de sous-menu (s-menu.css)
   VERSION FINALE : FOND DE CARTE TRANSPARENT
================================================== */

/* ---- Conteneur du titre de la page ---- */
.title-box {
  background: rgba(0, 0, 0, 0.6);
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.title-box h1 {
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ---- Sous-titre de la page ---- */
.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 2.5rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* ---- Grille des cartes ---- */
.formes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

/* ---- Style des cartes (FOND TRANSPARENT) ---- */
.Game-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.Game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ---- Image dans la carte ---- */
.Game-card .icon {
  width: 100%;
  height: 180px;
}

.Game-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Contenu textuel de la carte ---- */
.card-content {
  padding: 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
}

/* ---- Titre de la carte (Texte blanc) ---- */
.Game-card h3 {
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 1rem;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ---- Bouton "Voir articles" ---- */
.Game-card .btn {
  display: inline-block;
  background-color: #ffd700;
  color: #111;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 25px;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: auto;
}

.Game-card .btn:hover {
  background-color: #e0c000;
  transform: scale(1.05);
}

/* ---- Responsive Design ---- */
@media (max-width: 768px) {
  .title-box h1 { 
    font-size: 1.8rem; 
  }
  
  .section-subtitle { 
    font-size: 1rem; 
  }
  
  .formes {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .formes { 
    grid-template-columns: 1fr;
    gap: 1.5rem; 
  }
  
  .title-box h1 { 
    font-size: 1.5rem; 
  }
  
  .title-box {
    padding: 1rem;
  }
  
  .Game-card .icon {
    height: 150px;
  }
  
  .Game-card h3 {
    font-size: 1.2rem;
  }
}