/* Général */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1e1e2f;
    color: #f5f5f5;
    line-height: 1.6;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
  }

  
  /* Titres */
  h1, h2, h3 {
    margin: 20px 0 10px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  /* Paragraphes */
  p {
    margin: 10px auto;
    max-width: 700px;
  }
  
  /* Liens sous forme de boutons */
  a {
    padding: 10px 20px;
    margin: 10px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
  }
  
  a:hover {
    background-color: #3e8e41;
    transform: scale(1.05);
  }
  
  /* Boutons classiques */
  button {
    padding: 10px 20px;
    margin: 10px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
  }
  
  button:hover {
    background-color: #3e8e41;
    transform: scale(1.05);
  }
  
  /* Formulaires et champs */
  form {
    margin: 20px auto;
    max-width: 500px;
  }
  
  input[type="text"], select,input[type="email"], input[type="password"],input[type="number"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #2d2d44;
    color: #fff;
  }
  
  input[type="text"]::placeholder {
    color: #aaa;
  }
  
  /* Section */
  section {
    margin: 40px 0;
    padding: 20px;
    background-color: #2d2d44;
    border-radius: 15px;
  }
  
  /* Listes */
  ul {
    list-style-type: disc;
    margin: 10px auto;
    padding-left: 20px;
    text-align: left;
    max-width: 600px;
  }
  
  /* Tableaux */
  table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px auto;
    background-color: #2d2d44;
    border-radius: 10px;
    overflow: hidden;
  }
  
  thead {
    background-color: #444;
  }
  
  th, td {
    padding: 12px 15px;
    border: 1px solid #555;
  }
  
  th {
    font-weight: bold;
    text-transform: uppercase;
  }
  
  tbody tr:nth-child(even) {
    background-color: #3a3a57;
  }

  
  #toggle-sidebar {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    padding: 10px 15px;
}

/* Sidebar cachée par défaut */
#sidebar-jeux {
    position: fixed;
    top: 0;
    right: -300px; /* en dehors de l'écran */
    width: 300px;
    height: 100%;
    background-color: #f1f1f1;
    box-shadow: -2px 0 5px rgba(0,0,0,0.3);
    transition: right 0.4s ease;
    padding: 20px;
    overflow-y: auto;
    z-index: 1000;
    color: black;
}

/* Sidebar visible */
#sidebar-jeux.active {
    right: 0;
}

#toggle-sidebar {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1100;
  width: 150px;  /* Fixe la largeur du bouton */
  height: 50px; /* Fixe la hauteur du bouton */
  background-color: #4CAF50; /* couleur du bouton */
  color: white;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.3s ease; /* Ajout de l'animation de déplacement */
}


.delete-btn {
  background-color: red;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}

.delete-btn:hover {
  background-color: darkred;
}

.btn-supprimer-jeu {
  background-color: rgb(38, 38, 38);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
}
.btn-supprimer-jeu:hover {
  background-color: rgb(0, 0, 0);
}