/* Conteneur principal */
main.container {
  background-color: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Titre */
main h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1.5rem;
}

/* Formulaire */
#compteForm input,
#compteForm select {
  border-radius: 8px;
  padding: 0.75rem;
  border: 1px solid #ced4da;
  transition: border-color 0.3s ease;
}

#compteForm input:focus,
#compteForm select:focus {
  border-color: #0d6efd;
  outline: none;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
}

/* Bouton */
#compteForm button[type="submit"] {
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border-radius: 8px;
  width: 100%;
  transition: background-color 0.3s ease;
}

#compteForm button[type="submit"]:hover {
  background-color: #0b5ed7;
}

/* Tableau */
.table {
  margin-top: 2rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #dee2e6;
}

.table thead {
  background-color: #f8f9fa;
  font-weight: bold;
}

.table tbody tr {
  transition: background-color 0.2s;
}

.table tbody tr:hover {
  background-color: #f1f3f5;
}

/* Responsive table: scroll horizontally on small devices */
@media (max-width: 768px) {
  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  #compteForm {
    flex-direction: column;
  }

  #compteForm .col-md-6 {
    width: 100%;
  }

  #compteForm .col-12 {
    width: 100%;
  }
}

/* Message d'alerte */
#message {
  transition: all 0.3s ease;
  font-weight: 500;
}
