/* Style général de la page */
body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(135deg, #000000, #8b0000);
  color: #f8f9fa;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  padding-top: 60px;
}

/* Conteneur principal */
#collection-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Titre principal */
h1 {
  font-size: 3rem;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin: 20px 0 40px;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Grille des jeux */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  padding: 20px;
}

/* Carte de jeu */
.game-card {
  background: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(255, 0, 0, 0.3);
}

/* Image du jeu */
.game-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 2px solid #8b0000;
}

/* Corps de la carte */
.game-info {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.game-info h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.4rem;
}

.game-info p {
  margin: 5px 0;
  font-size: 0.9rem;
  color: #ddd;
}

.game-info .info-label {
  color: #ff4d4d;
  font-weight: bold;
}

/* Prix et date */
.price-date {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #333;
}

/* Bouton/lien */
.game-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background: #8b0000;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
  text-align: center;
}

.game-link:hover {
  background: #ff0000;
}

/* Messages d'état */
#loading,
#error-message {
  text-align: center;
  padding: 20px;
  font-size: 1.2rem;
}

#error-message {
  color: #ff6b6b;
}

/* Style de la navbar */
.navbar {
  background: linear-gradient(135deg, #000000, #8b0000) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff !important;
  text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.navbar-brand:hover {
  color: #ff4d4d !important;
}

.nav-link {
  color: #f8f9fa !important;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #ff4d4d !important;
  transform: translateY(-2px);
}

.nav-item.active .nav-link {
  color: #ff4d4d !important;
  font-weight: bold;
  border-bottom: 2px solid #ff4d4d;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* Bouton Supprimer */
.delete-btn {
  background-color: #8b0000;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  width: 100%;
}

.delete-btn:hover {
  background-color: #ff0000;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


/* Style du footer */
footer {
  background: linear-gradient(135deg, #000000, #7f1d1d);
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 50px;
  border-top: 1px solid rgba(255, 0, 0, 0.3);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-link {
  color: #f8f9fa;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.9rem;
}

.footer-link:hover {
  color: #ff4d4d;
  text-decoration: underline;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.social-icon {
  color: white;
  font-size: 1.5rem;
  transition: transform 0.3s, color 0.3s;
}

.social-icon:hover {
  color: #ff4d4d;
  transform: translateY(-3px);
}

.copyright {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .footer-logo {
    font-size: 1.5rem;
  }
}
/* Responsive */
@media (max-width: 768px) {
  .collection-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .game-card img {
    height: 200px;
  }
}

@media (max-width: 992px) {
  .navbar-collapse {
    background: linear-gradient(135deg, #000000, #8b0000);
    padding: 1rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }

  .nav-item {
    margin: 0.5rem 0;
  }
}
