/* Conteneur général */
.container.subbanner.modpack {
  max-width: 1900px;
  margin: 2rem auto;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #f0f0f0;
}

/* Titre */
.card h4 {
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: #aad4ff;
  text-align: left;
}

/* Table responsive */
.table-responsive {
  overflow-x: auto;
}

/* Table */
table.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.5rem; /* espace vertical entre les lignes */
}

/* En-tête */
table.table thead tr {
  background: #2e3a55;
  color: #cfd9ee;
  font-weight: 600;
  text-align: center;
}

table.table thead th {
  padding: 0.75rem 1rem;
  border: none;
  user-select: none;
  font-size: 0.95rem;
}

/* Corps */
table.table tbody tr {
  background: #1c2233;
  transition: background-color 0.3s ease;
  cursor: default;
  border-radius: 0.6rem;
  /* on utilisera un peu de padding sur les td */
}

table.table tbody tr:hover {
  background: #2a3360;
}

table.table tbody td {
  padding: 0.8rem 1rem;
  text-align: center;
  vertical-align: middle;
  border: none;
  font-size: 0.9rem;
  color: #e2e8f7;
}

/* Images jeux */
table.table tbody img {
  max-height: 40px;
  border-radius: 0.4rem;
  box-shadow: 0 0 5px rgba(0,0,0,0.7);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  user-select: none;
  min-width: 50px;
  justify-content: center;
}

/* Badge couleurs */
.badge.bg-success {
  background-color: #28a745;
}

.badge.bg-warning {
  background-color: #ffc107;
  color: #333;
}

.badge.bg-danger {
  background-color: #dc3545;
}

/* Boutons */
.btn.btn-sm.btn-primary {
  background-color: #3b7ddd;
  border: none;
  padding: 0.35rem 0.9rem;
  border-radius: 0.5rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.25s ease;
  text-decoration: none;
  display: inline-block;
}

.btn.btn-sm.btn-primary:hover,
.btn.btn-sm.btn-primary:focus {
  background-color: #2c5cb8;
  text-decoration: none;
  outline: none;
}

/* Centrer le contenu des <th> et <td> */
th, td {
  text-align: center;
  vertical-align: middle;
}
/* Conteneur scroll horizontal */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* scroll fluide sur iOS */
}

/* Sur petits écrans, réduis les paddings et la taille de police */
@media (max-width: 768px) {
  table.table thead tr {
    font-size: 0.85rem;
  }
  table.table tbody td, table.table thead th {
    padding: 0.5rem 0.6rem;
    font-size: 0.85rem;
  }
  /* Images plus petites */
  table.table tbody img {
    max-height: 30px;
  }
  /* Boutons plus petits */
  .btn.btn-sm.btn-primary {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
  }
}

/* Sur très petits écrans (ex: mobile), la table devient scrollable horizontal */
@media (max-width: 480px) {
  /* On garde la table normale mais avec scroll horizontal */
  .table-responsive {
    max-width: 100%;
  }
  /* On peut aussi réduire encore la taille */
  table.table thead tr, table.table tbody td, table.table thead th {
    font-size: 0.75rem;
    padding: 0.4rem 0.4rem;
  }
  table.table tbody img {
    max-height: 25px;
  }
  .btn.btn-sm.btn-primary {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
  }
}

#pagination button {
  background: #3399ff;
  border: none;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.3rem;
  cursor: pointer;
  font-weight: 600;
}
#pagination button:disabled {
  background: #ccc;
  cursor: default;
}

.pagination-container button {
  background-color: transparent;
  border: 1px solid #ccc;
  color: #333;
  padding: 6px 12px;
  margin-left: 4px;
  cursor: pointer;
  border-radius: 0.3rem;
  transition: background-color 0.2s ease;
}
.pagination-container button:hover {
  background-color: #eee;
}
.pagination-container button.active {
  background-color: #3399ff;
  border-color: #3399ff;
  color: #fff;
  cursor: default;
}