body {
  background-color: rgb(255, 250, 250) !important;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

/* Style général de la table */
table.dataTable {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  font-family: 'Arial', sans-serif;
}

/* Bordures autour de la table */
table.dataTable thead th {
  background-color: #4CAF50;
  color: white;
  padding: 10px;
  text-align: center;
  border-bottom: 2px solid #ddd;
}

table.dataTable tbody tr {
  border-bottom: 1px solid #ddd;
}

table.dataTable tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Styles pour les cellules */
table.dataTable td,
table.dataTable th {
  padding: 12px 15px;
  text-align: center;
}

/* Effet hover sur les lignes */
table.dataTable tbody tr:hover {
  background-color: #f1f1f1;
}

/* Pagination et autres éléments DataTables */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 5px 10px;
  margin-left: 5px;
  border-radius: 5px;
  background-color: #4CAF50;
  color: white;
  border: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background-color: #45a049;
  color: white;
}

.dataTables_wrapper .dataTables_filter input {
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.dataTables_wrapper .dataTables_length select {
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Style général pour le menu */
.menu {
  background-color: #ffffff;
  padding: 10px 0;
  width: 100%;
  position: relative;
}

/* Style de la liste pour centrer les éléments */
.menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Style des liens */
.menu li {
  margin: 0;
}

.menu a {
  text-decoration: none;
  color: rgb(0, 0, 0);
  padding: 10px 20px;
  display: block;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s;
}

.menu a:hover {
  background-color: #dcdbdb;
}

/* Style pour le logo */
.menu .logo {
  margin-right: auto; /* Pousse les autres éléments vers la droite */
  padding-left: 10px;
}

.menu .logo img {
  height: 40px; /* Ajustez la hauteur selon vos besoins */
  width: auto;
}

/* Style pour centrer les liens */
.menu .menu-links {
  display: flex;
  gap: 5px;
  justify-content: center;
  flex-grow: 1; /* Permet aux liens de prendre l'espace restant */
}

/* Centrer le formulaire */
.import-form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 20px;
}

/* Styliser le bouton */
button {
  background-color: #007bff;
  /* Couleur de fond */
  color: white;
  /* Couleur du texte */
  padding: 10px 20px;
  /* Espacement interne */
  border: none;
  /* Supprime les bordures */
  border-radius: 5px;
  /* Coins arrondis */
  cursor: pointer;
  /* Pointeur en mode clic */
  font-size: 16px;
  /* Taille du texte */
  margin-top: 15px;
  /* Espacement au-dessus */
  transition: background-color 0.3s;
  /* Animation au survol */
}

button:hover {
  background-color: #0056b3;
  /* Couleur de fond au survol */
}

button:disabled {
  background-color: #cccccc;
  /* Couleur pour bouton désactivé */
  cursor: not-allowed;
  /* Curseur désactivé */
}

/* Conteneur pour centrer le bouton d'import */
.file-upload-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

/* Style du champ input type=file */
.file-upload-container input[type="file"] {
  display: block;
  padding: 10px;
  border: 2px solid #007bff; /* Bordure bleue */
  border-radius: 5px; /* Coins arrondis */
  font-size: 16px;
  cursor: pointer;
  background-color: white; /* Fond blanc */
  color: #007bff; /* Texte bleu */
  transition: background-color 0.3s, color 0.3s;
}

.file-upload-container input[type="file"]:hover {
  background-color: #007bff; /* Fond bleu au survol */
  color: white; /* Texte blanc au survol */
}

h1 {
  text-align: center;
}

.text-success {
  color: green;
}

.text-danger {
  color: red;
}

/* Styles pour la table avec l'ID show */
#show {
  width: 70%;
  margin: 20px auto; /* Centre la table horizontalement */
  border-collapse: collapse;
  font-size: 18px;
  text-align: left;
  box-shadow: 0 2px 3px rgba(0,0,0,0.1);
  border-radius: 5px;
  overflow: hidden;
}

#show th, #show td {
  padding: 12px 15px;
  text-align: center;
  border: 1px solid #ddd;
}

#show th {
  text-align: center;
  color: black;
  font-weight: bold;
}

#show tr:nth-child(even) {
  background-color: #f9f9f9;
}

#show tr:hover {
  background-color: #f1f1f1;
}

/* Styles généraux pour le formulaire */
.form-edit {
  max-width: 900px; 
  margin: 0 auto; 
  padding: 20px;
  background-color: #f9f9f9; 
  border-radius: 8px;
  box-shadow: 5px 5px 5px 5px rgba(0, 0, 0, 0.1) Ombre discrète
}

/* Style pour chaque champ de formulaire */
.form-group {
  margin-bottom: 20px; /* Espacement entre les champs */
}

.form-group label {
  font-weight: bold;
  color: #333; /* Couleur des labels */
  margin-bottom: 5px; /* Un peu d'espace sous les labels */
  display: block;
}

/* Les champs de formulaire (input, select, textarea) */
.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

/* Changement de couleur lorsque l'utilisateur est en train de remplir le champ */
.form-control:focus {
  border-color: #66afe9; /* Bleu clair lors du focus */
  outline: none; /* Enlève le contour par défaut */
}

/* Styliser les messages d'erreur */
.form-control.is-invalid {
  border-color: #e74c3c; /* Bordure rouge pour un champ invalide */
}

.form-group .invalid-feedback {
  color: #e74c3c; /* Texte rouge pour les erreurs */
  font-size: 14px;
  display: block;
  margin-top: 5px;
}

/* Boutons de soumission */
button[type="submit"] {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #0056b3;
}

/* Les messages d'alerte ou d'information */
.alert {
  padding: 15px;
  background-color: #f8d7da; /* Fond rouge pâle pour les alertes */
  border-radius: 5px;
  color: #721c24; /* Texte rouge */
  margin-bottom: 20px;
}

.alert-success {
  background-color: #d4edda; /* Vert pâle pour les succès */
  color: #155724; /* Texte vert */
}

.alert-info {
  background-color: #cce5ff; /* Bleu pâle pour les informations */
  color: #004085; /* Texte bleu */
}

/* Positionnement du conteneur label + icône */
.label-with-icon {
  display: flex;
  align-items: center; /* Aligne verticalement le label et l'icône */
  position: relative; /* Pour positionner l'icône par rapport au label */
}

/* Style de l'icône */
.info-icon {
  background-color: #007bff; /* Couleur de fond du "i" */
  color: white; /* Couleur du texte */
  font-size: 14px; /* Taille du texte */
  width: 20px; /* Dimensions de l'icône */
  height: 20px;
  border-radius: 50%; /* Cercle */
  display: flex;
  justify-content: center; /* Centrer horizontalement */
  align-items: center; /* Centrer verticalement */
  margin-left: 8px; /* Espacement entre le label et l'icône */
  cursor: pointer; /* Curseur interactif */
}

/* Info bulle */
/* Tooltip */
.info-icon:hover::after {
  content: attr(data-info); /* Récupère les limites depuis data-info */
  position: absolute;
  top: -35px; /* Place le tooltip au-dessus de l'icône */
  left: 50%;
  transform: translateX(-50%); /* Centre horizontalement */
  background-color: rgba(0, 0, 0, 0.9); /* Fond noir légèrement transparent */
  color: #ffffff; /* Texte en blanc pur */
  padding: 6px 12px; /* Espacement interne pour un meilleur rendu */
  border-radius: 6px; /* Arrondi des coins */
  font-size: 13px; /* Taille du texte */
  font-weight: 400; /* Poids du texte */
  white-space: nowrap; /* Empêche le retour à la ligne */
  z-index: 1000; /* Place au-dessus des autres éléments */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Ajoute une ombre subtile */
  opacity: 0; /* Caché par défaut */
  pointer-events: none; /* Empêche le focus du pointeur sur le tooltip */
  transition: opacity 0.3s ease-in-out; /* Animation fluide */
}

/* Animation pour rendre le tooltip visible */
.info-icon:hover::after {
  opacity: 1; /* Rend visible au hover */
}

.btn-danger {
  background-color: red !important;
}

button a {
  color: white;
  text-decoration: none;
}

/* Formulaire de login - Classe principale */
.form-login {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f5f7fa; /* Fond clair */
}

.form-login-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 40px;
  width: 100%;
  max-width: 400px; /* Largeur maximale du formulaire */
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-login-title {
  text-align: center;
  font-size: 24px;
  color: #333;
  margin-bottom: 25px;
}

.form-login-group {
  margin-bottom: 20px;
}

.form-login-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  margin-bottom: 5px;
}

.form-login-input {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  background-color: #f9f9f9;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-login-input:focus {
  border-color: #4e73df;
  box-shadow: 0 0 8px rgba(78, 115, 223, 0.3);
  outline: none;
}

.form-login-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  background-color: #4e73df;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-login-btn:hover {
  background-color: #2e59d9;
}

.alert {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 5px;
  font-weight: bold;
}

/* Message d'alerte d'erreur */
.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Message d'alerte d'information */
.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Positionnement et dimensionnement du logo */
.form-login-logo {
  text-align: center;
  margin-bottom: 30px; /* Espacement entre le logo et le formulaire */
}

.form-login-logo img {
  width: 120px;  /* Largeur du logo, ajustez si nécessaire */
  height: auto;  /* Conserver le ratio de l'image */
}

