/* -------- LISTE DES MODULES -------- */

/* Conteneur principal */
#modules-container {
  max-width: 90%;
  margin: 2rem auto;
}

/* Titre de la page */
#modules-container .titre-page {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #333;
}

/* Table centrée */
#modules-container .table-responsive-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto;
  max-width: 100%;
}

/* Table principale */
#modules-container table {
  width: 80%;
  margin: 0 auto;
  border-collapse: collapse;
  border: 2px solid #ccc;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  min-width: 600px;
}

#modules-container th,
#modules-container td {
  padding: 0.8rem;
  border: 1px solid #ddd;
  text-align: center;
  color: #333;
}

#modules-container th {
  background-color: #9e2d66;
  color: white;
  font-weight: bold;
  padding: 1rem;
}

/* Icônes d'action */
#modules-container .icon-action {
  color: #9e2d66;
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}

#modules-container .icon-action:hover {
  transform: scale(1.2);
}

/* Bouton de suppression */
.btn-supprimer {
  background-color: #dc3545;
  border: none;
  color: white;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-supprimer:hover {
  background-color: #b02a37;
  transform: scale(1.05);
}

.btn-supprimer i {
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  #modules-container table {
    width: 100%;
    font-size: 0.85rem;
    min-width: 500px;
  }

  #modules-container th,
  #modules-container td {
    padding: 0.5rem;
  }
}