
/* -------------------------
   PAGE DONNEES
   ------------------------- */

/* Section Données */
.data-section {
  padding: 3rem 0;
  background-color: #ffffff;
}

.data-section .container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 1rem;
}

.data-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #007BFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
}

/* ----------- Container Global DataTables ----------- */
.dataTables_wrapper {
  margin: 2rem 0;
  font-family: 'Arial', sans-serif;
  color: #333;
}

/* Espacement pour les menus déroulants, la recherche, etc. */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info {
  margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_info {
  margin-top: 1rem;
}

.dataTables_wrapper .dataTables_paginate {
  margin-top: 1rem;
}

/* ----------- Style du Tableau ----------- */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.styled-table thead tr {
  background: linear-gradient(to right, #6366f1, #9333ea, #ec4899); /* Couleur d'en-tête (bleu) */
  color: #fff;
  text-align: left;
  font-weight: 600;
}

.styled-table thead th {
  padding: 1rem;
  font-size: 1rem;
}

.styled-table tbody tr {
  border-bottom: 1px solid #ddd;
}

.styled-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.styled-table tbody tr:hover {
  background-color: #f0f5ff; /* Léger changement de fond au survol */
}

.styled-table tbody td {
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
}

/* ----------- Responsivité (pour DataTables responsive) ----------- */
@media screen and (max-width: 768px) {
  .styled-table thead {
    display: none; /* On masque l'en-tête sur mobile */
  }
  .styled-table tbody td {
    display: block;
    text-align: right;
    border-bottom: 1px solid #ddd;
  }
  .styled-table tbody td::before {
    content: attr(data-label);
    float: left;
    font-weight: 600;
    text-transform: uppercase;
  }
}

/* ----------- Boutons (Exports) DataTables ----------- */
.dt-button-custom {
  background-color: #6366f1;
  border: none;
  color: #fff !important;
  padding: 0.6rem 1rem;
  margin: 0 0.3rem 10px 0;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dt-button-custom:hover,
.dt-button-custom:focus {
  background-color: #9333ea;
  outline: none;
}

/* ----------- Champs de Recherche & Sélecteurs ----------- */
.dataTables_wrapper .dataTables_filter input {
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-left: 0.5rem;
}

.dataTables_wrapper .dataTables_length select {
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  margin-left: 0.5rem;
}

/* ----------------------------------------------------
   Barre du haut pour "Afficher X entrées" et "Rechercher"
   ---------------------------------------------------- */
.dt-top-bar {
  display: flex;
  justify-content: space-between; /* "Afficher X entrées" (gauche), "Rechercher" (droite) */
  align-items: center;
  margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_length {
  margin: 0;
}

.dataTables_wrapper .dataTables_filter {
  margin: 0;
}

/* ----------------------------------------------------
   Barre du bas pour "info" et "pagination" DataTables
   ---------------------------------------------------- */
.dt-bottom-bar {
  display: flex;
  justify-content: space-between; /* info (gauche), pagination (droite) */
  align-items: center;
  margin-top: 1rem;
}

.dataTables_wrapper .dataTables_info {
  margin: 0;
}

.dataTables_wrapper .dataTables_paginate {
  margin: 0;
}
/* ----------------------------------------------------
   Pagination "Custom" avec .dt-container / .dt-paging
   ---------------------------------------------------- */
/* Conteneur général de la pagination */
div.dt-container .dt-paging {
  display: flex;
  align-items: center;
  gap: 0.4rem; /* espace horizontal entre les boutons */
  /* margin-top: 1rem; // si tu veux ajouter un espace vertical */
}

/* Style de base des boutons de pagination custom */
div.dt-container .dt-paging .dt-paging-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 3px;
  font-size: 0.9rem;
  border: 1px solid #0d6efd;
  border-radius: 4px; /* Coins arrondis */
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

/* Survol (Custom) */
div.dt-container .dt-paging .dt-paging-button:hover {
  background: #004dcf;
  color: #fff;
  transform: translateY(-2px);
}

/* Bouton de la page courante (Custom) */
div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
  background: #6366f1;
  color: #fff !important;
  border: 1px solid #007BFF;
  transform: none;
}

/* Boutons inactifs / désactivés (Custom) */
div.dt-container .dt-paging .dt-paging-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

  




/* ----------------------------------------------------
   Page jeux (game.php)
   ---------------------------------------------------- */

.game-container {
  width: 800px;
  height: 400px;
  margin: 0 auto;
  position: relative;
}

#gameCanvas {
  border: 2px solid #333;
  background: #87CEEB;
}