body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

h2,
h3,
h4 {
  color: #017fdb;
  text-align: center;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

/* Styles pour l'en-tête */
.site-header {
  /* background-color: #046bd2; */
  background: linear-gradient(to top, #5ab3f6, #017fdb);
  height: 60px; /* Hauteur fixe de l'en-tête */
  color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  z-index: 1000;
  padding: 0 10px;
}

.header-container {
  display: flex;
  justify-content: space-between; /* Espace les éléments à gauche, au centre, et à droite */
  width: 100%;
  align-items: center;
}

/* Bouton de retour aligné à gauche */

.back-button a {
  font-size: 1.2em;

  padding: 6px;

  color: #ffffff;

  text-decoration: none;
}

/* Centrer le logo */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px 0;
}

/* Logo centré 

.logo {

    text-align: center;

}*/

.logo img {
  height: 30px; /* Ajustez selon la taille de votre logo */
}

/* Conteneur des boutons Home et Home Manager */
.home-buttons {
  display: flex;
  gap: 10px; /* Espacement entre les boutons */
  align-items: center;
}

/* Bouton d'accueil aligné à droite */

.home-button a {
  font-size: 1.2em;
  padding: 6px;
  color: #ffffff;
  text-decoration: none;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Effet de survol pour les boutons */

.home-button a:hover,
.back-button a:hover {
  background-color: #0056b3;

  border-radius: 4px;
}

/* Pastille de notification sur l'icône "Fonction Manager" */
.home-button {
  position: relative;
}

.home-button .notif-badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
  background-color: red;
  color: white;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 50%;
  min-width: 18px;
  text-align: center;
  font-weight: bold;
}

/* Conteneur principal pour l'espace flexible */

.main-content {
  padding-top: 60px;
  padding-left: 10px;
  padding-right: 10px;
  flex: 1;
}

.main-content-filtre {
  padding-left: 10px;
  padding-right: 10px;
  flex: 1;
}

/* Styles pour le conteneur de connexion, similaire à enregistrer_heure */

.login-container {
  width: calc(100% - 20px);
  max-width: 500px;
  margin: 20px auto;
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  box-sizing: border-box;
}

.login-container h2 {
  margin-bottom: 20px;
  color: #017fdb;
}

.login-container label {
  display: inline-block;
  margin: 10px 0 5px;
  color: #555;
  text-align: left;
  width: 100%; /* Force l'alignement à droite */
}

.login-container input[type="email"],
.login-container input[type="password"] {
  font-size: 16px;
  width: calc(100% - 20px);
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.login-container .remember-me {
  display: flex;
  align-items: center;
  justify-content: left;
  margin-bottom: 15px;
}

.login-container .remember-me input {
  margin-right: 5px;
}

/* Bouton de connexion */
.submit-button {
  width: 100%;
  padding: 10px;
  /*background-color: #046bd2;*/
  background: linear-gradient(to right, #5ab3f6, #017fdb);
  color: #ffffff;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s;
  box-sizing: border-box; /* Inclut le padding dans la largeur */
}

.submit-button:hover {
  background-color: #0056b3;
}

/* Styles pour popup-install */

#popup-install {
  position: fixed; /* Position fixe pour rester ancré à l'écran */

  left: 50%;

  transform: translateX(-50%); /* Centre horizontalement */

  bottom: 25px;

  color: #fff;

  font-size: 14px;

  text-align: center;

  width: 280px;

  max-width: 90%; /* Empêche le dépassement de la largeur de l’écran */

  box-sizing: border-box; /* Inclut le padding dans la largeur */
}

#popup-install > div {
  padding: 10px;
  border-radius: 10px;
  background-color: #4c4c4c;
  z-index: 10;
  box-shadow: 1px 1px 12px #555;
}

#popup-install strong {
  font-weight: bold;
}

#popup-install .arrow {
  z-index: -1;
  position: absolute;
  left: 115px;
  bottom: -10px;
  width: 50px;
  height: 50px;
  background: #4c4c4c;
  transform: rotate(45deg);
  box-shadow: 1px 1px 12px #555;
}

body.landscape #popup-install {
  left: 100px;

  bottom: 130px;
}

/* Styles pour le formulaire d'enregistrement des heures */

/* Styles pour le champ select */
.form-container select {
  font-size: 16px;
  width: calc(100% - 0px);
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  appearance: none; /* Retire le style par défaut */
}

/* Conteneur du champ select avec une flèche */
.form-container {
  position: relative;
}

.form-container select {
  appearance: none;
  -webkit-appearance: none; /* Pour Safari */
  -moz-appearance: none; /* Pour Firefox */
  padding-right: 30px; /* Espace pour la flèche */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='%23666' d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E"); /* Icône SVG de flèche */
  background-repeat: no-repeat;
  background-position: right 10px center; /* Position de la flèche */
  background-size: 15px; /* Taille de la flèche */
}

/* Correction pour aligner le champ et la flèche */
.form-container select:focus {
  background-position: right 10px center;
}

.form-container select:focus {
  outline: none;
  border: 2px solid #6baed6; /* Bordure bleue claire */
  box-shadow: 0 0 5px rgba(107, 174, 219, 0.5); /* Ombre douce */
}

/* Styles pour le champ textarea */
.form-container textarea {
  font-size: 16px;
  width: calc(100% - 20px);
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  resize: vertical; /* Autorise le redimensionnement vertical */
  min-height: 80px; /* Hauteur minimale pour le texte */
  background-color: #fff;
}

.form-container textarea:focus {
  outline: none;
  border: 2px solid #6baed6; /* Bordure bleue claire */
  box-shadow: 0 0 5px rgba(107, 174, 219, 0.5); /* Ombre douce */
}

.form-container {
  width: calc(100% - 20px);
  max-width: 500px;
  margin: 15px auto;
  padding: 10px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  box-sizing: border-box;
}

.form-container h2 {
  margin-bottom: 20px;
  color: #017fdb;
}

.form-container label {
  display: inline-block;
  margin: 10px 0 5px;
  color: #555;
  text-align: left;
  width: 100%; /* Force l'alignement à droite */
}

.form-container input.date-local,
.form-container input[type="datetime-local"] {
  width: calc(100% - 20px);
  max-width: 100%; /* Empêcher le dépassement */
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 15px;
  /*box-sizing: border-box; /* Empêche le dépassement */
}

@media screen and (max-width: 600px) {
  .form-container input.date-local,
  .form-container input[type="datetime-local"] {
    font-size: 14px; /* Ajuste la taille sur mobile */
  }
}

.form-container input[type="datetime-local"]:focus {
  outline: none;
  border: 2px solid #6baed6; /* Bordure bleue claire */
  box-shadow: 0 0 5px rgba(107, 174, 219, 0.5); /* Ombre douce */
}

/* Cibler les champs de type datetime-local */
input[type="datetime-local"],
input.date-local {
  -webkit-appearance: none; /* Retire les styles par défaut de Safari */
  appearance: none;
  font-family: inherit; /* Utilise la même police que le corps */
  font-size: 16px; /* Ajuste la taille du texte */
  width: 100%; /* Assure un remplissage à 100 % */
  padding: 10px; /* Ajuste le remplissage pour une meilleure apparence */
  border: 1px solid #ddd; /* Couleur de la bordure */
  border-radius: 4px; /* Bordure arrondie */
  background-color: #fff; /* Assure une couleur de fond blanche */
}

/* Ajuste le focus sur iOS */
input[type="datetime-local"],
input.date-local:focus {
  outline: none;
  border: 2px solid #6baed6; /* Bordure bleue claire */
  box-shadow: 0 0 5px rgba(107, 174, 219, 0.5); /* Ombre douce */
}

.form-container .submit-button {
  width: 100%;
  padding: 10px;
  /* background-color: #046bd2; */
  background: linear-gradient(to right, #5ab3f6, #017fdb);
  color: #ffffff;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s;
}

.form-container .submit-button:hover {
  background-color: #0056b3;
}

.error-message {
  color: #ff0000;
  font-size: 14px;
  font-weight: normal;
  margin-left: 10px;
  display: inline;
  text-align: left;
}

.success-message {
  color: green;
  font-size: 14px;
  font-weight: normal;
  margin-left: 10px;
  display: inline;
  text-align: left;
}

/* Largeur complète du champ de saisie */
.date-input {
  width: 100%;
  text-align: left; /* Aligne le texte à gauche */
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  background-color: #fff; /* Assure une couleur de fond blanche */
  appearance: none; /* Enlève le style natif sur certains navigateurs */
  -webkit-appearance: none; /* Enlève le style natif sur iOS */
}

.manual-entry-text {
  font-size: 0.9em;
  color: #555;
  margin-top: 5px;
  text-align: left;
}

.manual-entry-text a {
  color: #2e99e8; /* Vert ou une couleur de votre choix */
  text-decoration: underline;
}

.manual-entry-text a:hover {
  text-decoration: underline;
}

/* Style pour le tableau des enregistrements récents */
.recent-entries {
  margin-top: 20px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;

  /* padding: 20px; 
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
}

.recent-entries h2 {
  margin-bottom: 15px;
}

.recent-entries table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
}

.recent-entries th,
.recent-entries td {
  padding: 3px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  font-size: 0.7rem;
}

.recent-entries th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.recent-entries tr:nth-child(even) {
  background-color: #f9f9f9;
}

.recent-entries tr:hover {
  background-color: #e0e0e0;
}

/* Styles pour le compteur des heures */
.compteur-container {
  background: transparent;
  padding: 10px;
  border-radius: 12px;
}

.compteur-total {
  background-color: #fff;
  padding: 15px 20px;
  border-left: 4px solid #0866c6;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 1.1em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.compteur-totaux-speciaux {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.compteur-totaux-speciaux span {
    display: inline-block;
}

.compteur-total strong {
  color: #0866c6;
  font-size: 1.2em;
}

.compteur-titre {
  color: #2c3e50;
  font-size: 1.3em;
  margin: 20px 0 0 0;
  padding-bottom: 10px;
  border-bottom: 3px solid #0866c6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.compteur-container .compteur-titre {
  margin-top: 30px;
}

.compteur-semaines {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.compteur-semaine {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}



.compteur-semaine h4 {
  color: #333;
  font-size: 1.15em;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8eef5;
  font-weight: 600;
}

.compteur-semaine ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.compteur-semaine ul li {
  padding: 10px 0;
  font-size: 0.95em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.compteur-semaine ul li:last-child {
  border-bottom: none;
}

.compteur-semaine .label {
  color: #555;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.compteur-semaine .label::before {
  content: "●";
  margin-right: 8px;
  font-size: 1.2em;
  color: #0866c6;
}

.compteur-semaine .value {
  color: #0866c6;
  font-weight: 700;
  background-color: #e8f4f8;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.9em;
}

.main-content-filtre {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive mobile pour le compteur */
@media (max-width: 768px) {
  .compteur-container {
    padding: 15px 10px;
  }

  .compteur-titre {
    font-size: 1.1em;
    margin: 15px 0 0 0;
    padding-bottom: 8px;
  }

  .compteur-container .compteur-titre {
    margin-top: 25px;
  }

  .compteur-total {
    font-size: 1em;
    padding: 12px 15px;
  }

  .compteur-total strong {
    font-size: 1.1em;
  }

  .compteur-semaines {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .compteur-semaine {
    padding: 15px;
  }

  .compteur-semaine h4 {
    font-size: 1.05em;
  }

  .compteur-semaine ul li {
    padding: 8px 0;
    font-size: 0.9em;
  }

  .compteur-semaine .value {
    font-size: 0.85em;
    padding: 4px 10px;
  }
}

@media (max-width: 480px) {
  .compteur-container {
    padding: 10px 5px;
  }

  .compteur-titre {
    font-size: 1em;
    letter-spacing: 0.5px;
  }

  .compteur-total {
    font-size: 0.95em;
    padding: 10px 12px;
  }

  .compteur-semaine {
    padding: 12px;
  }

  .compteur-semaine h4 {
    font-size: 1em;
  }

  .compteur-semaine ul li {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
  }

  .compteur-semaine .label {
    font-size: 0.9em;
  }

  .compteur-semaine .value {
    font-size: 0.9em;
  }
}

.counter-container {
  background-color: #f9f9f9;

  padding: 15px;

  border: 1px solid #ddd;

  border-radius: 8px;

  margin-top: 20px;
}

.counter-container h4 {
  color: #555;

  font-size: 1.1em;
}

.counter-container ul {
  list-style-type: none;

  padding: 0;
}

.counter-container ul li {
  padding: 5px 0;

  font-size: 0.9em;
}

/* Footer en bas de l'écran */

.site-footer {
  text-align: center;

  padding: 10px 0;

  font-size: 14px;

  color: #555;

  background-color: #f5f5f5;

  border-top: 1px solid #ddd;

  margin-top: auto;
}

.logout-button {
  margin-bottom: 10px; /* Ajoute de l'espace sous le bouton de déconnexion */
}

.logout-link {
  color: #555;

  text-decoration: none;

  font-weight: bold;
}

.logout-link:hover {
  color: #0866c6;

  text-decoration: underline;
}

/* Ajoute de l'espace entre les paragraphes du footer */

.site-footer p {
  margin: 2px 0; /* Ajuste cette valeur selon l'espace souhaité */
}

.site-footer p strong {
  color: #017fdb; /* Couleur spécifique pour le nom */

  font-weight: bold;
}

/* ---- STYLE CSS POUR LES MENUS HOME ---- */

/* Grille de boutons */
.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px 15px; /* Ajuste l'espace vertical et horizontal entre les boutons */
  padding: 20px 10px;
  height: auto; /* Retire la contrainte de hauteur de la grille */
  /* overflow-y: auto; */
  box-sizing: border-box;
  align-items: start; /* Aligne les éléments en haut de chaque ligne */
}

/* Bouton avec hauteur ajustable */
.button-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s;
  min-height: 100px; /* Hauteur minimale */
  /* max-height : 150px; */
  flex-grow: 1; /* Permet aux boutons de grandir pour remplir l'espace */
}

.button-card:hover {
  background-color: #f0f0f0;
}

.button-card .card-title {
  font-size: 24px;
  margin-bottom: 10px;
  margin-top: 20px;
}

.button-card .card-text {
  font-size: 14px;
  color: #555;
}

.button-card.disabled {
  pointer-events: none; /* Désactive les clics */
  background-color: #d3d3d3; /* Fond gris clair */
  color: #a9a9a9; /* Texte gris */
  cursor: not-allowed; /* Curseur interdit */
  opacity: 0.6; /* Transparence pour indiquer l'inactivité */
}

/* Sous-menu */
.submenu {
  display: none;
  padding: 10px 0;
  margin-top: 10px;
  border-top: 1px solid #ddd;
}

.submenu-item {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.submenu-item:hover {
  background-color: #f0f0f0;
}

.submenu-item.disabled {
  pointer-events: none; /* Désactive le clic */
  color: grey; /* Change la couleur du texte */
  opacity: 0.6; /* Rend l'élément plus transparent */
  cursor: not-allowed; /* Change le curseur pour montrer que c'est inactif */
}

/* Affiche le sous-menu au survol */
.button-card:hover .submenu {
  display: block;
}

/* Style pour la pastille de notification */
.notif-badge {
  background-color: red;
  color: white;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 50%;
  margin-left: 5px;
  display: inline-block;
  min-width: 20px;
  text-align: center;
}

.notif-badge:empty {
  display: none !important;
}

/* ---- STYLE CSS POUR LE TABLEAU DES HEURES ---- */
.heures-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9em;
  background-color: white;
}

.heures-table,
.heures-table th,
.heures-table td {
  border: 1px solid #ddd;
  text-align: left;
}

.heures-table th,
.heures-table td {
  padding: 10px;
}

.heures-table th {
  background-color: #007bff;
  color: white;
}

.heures-table td {
  color: #333;
}

.heures-table td.action a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.heures-table td.action a:hover {
  text-decoration: underline;
}

/* Styles pour le statut */
.statut-valide {
  color: green;
  font-weight: bold;
}

.statut-rejetee {
  color: red;
  font-weight: bold;
}

.statut-non-validee {
  color: orange;
  font-weight: bold;
}

/* Style pour la ligne de la semaine */
.semaine-header {
  background-color: #f0f0f0;
  font-weight: bold;
  text-align: center;
}

/* Affichage en cartes pour les écrans de moins de 600px */
@media (max-width: 600px) {
  .heures-table,
  .heures-table thead,
  .heures-table tbody,
  .heures-table tr,
  .heures-table td,
  .heures-table th {
    display: block;
    width: 100%; /* Retirer le 99% pour éviter les ajustements arbitraires */
  }

  .heures-table tr {
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    background-color: #fff;
  }

  /* Masquer les en-têtes de colonne */
  .heures-table th {
    display: none;
  }

  /* Affichage en lignes pour chaque cellule avec label */
  .heures-table td {
    display: flex;
    justify-content: space-between;
    padding: 10px 5px;
    box-sizing: border-box; /* Assure que padding ne provoque pas de dépassement */
  }

  /* Ajouter le label avant chaque cellule */
  .heures-table td:before {
    content: attr(data-label);
    font-weight: bold;
    width: 50%;
    text-align: left;
    padding-right: 10px;
    box-sizing: border-box;
  }

  /* Centrer la ligne de semaine en mode cartes */
  .semaine-header {
    display: block;
    text-align: center;
    padding: 10px 0;
    margin-bottom: 10px;
    background-color: #f0f0f0;
  }
}

/* ---- STYLE CSS POUR LE TABLEAU GESTION SALARIES ---- */

/* Style du tableau */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
  text-align: left;
}

.table thead tr {
  background-color: #f4f4f4;
  border-bottom: 2px solid #ddd;
}

.table th,
.table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
}

.table tbody tr:hover {
  background-color: #f9f9f9;
}

/* Boutons d'action */
.button-small {
  display: inline-block;
  padding: 5px 10px;
  color: #fff;
  background-color: #007bff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
}

.button-small:hover {
  background-color: #0056b3;
}

.button-danger {
  background-color: #dc3545;
}

.button-danger:hover {
  background-color: #c82333;
}

/* Style pour les actions du tableau */
.table-actions {
  margin-bottom: 15px; /* Espacement sous le bouton */
  text-align: left; /* Positionne le bouton à droite */
}

/* Bouton Ajouter un utilisateur */
.button-add {
  display: inline-block;
  background-color: #007bff; /* Bleu */
  color: white;
  padding: 8px 12px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.button-add:hover {
  background-color: #0056b3; /* Bleu foncé au survol */
}

.button-add i {
  margin-right: 5px; /* Espacement entre l'icône et le texte */
}

/* ---- STYLE CSS MODALE DE CREATION D'UTILISATEURS ---- */

/* Conteneur de la modale */
.modal {
  display: none; /* Cachée par défaut */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
  z-index: 1000; /* Toujours au-dessus du contenu principal */
  align-items: center;
  justify-content: center; /* Centre la modale dans l'écran */
}

/* Classe active pour afficher la modale */
.modal.active {
  display: flex; /* La modale devient visible */
}

/* Contenu de la modale */
.modal-content {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Ombre subtile */
  width: 90%;
  max-width: 500px;
  padding: 20px 30px;
  position: relative;
  animation: fadeIn 0.3s ease-in-out; /* Animation douce d'apparition */
}

/* Animation pour l'apparition */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation pour la fermeture (optionnelle) */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

/* Titre de la modale */
.modal-content h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

/* Formulaire dans la modale */
.modal-content .form {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Espacement entre les champs */
}

/* Champs du formulaire */
.modal-content .form input,
.modal-content .form select,
.modal-content .form textarea {
  padding: 10px 15px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s ease;
}

/* Focus sur les champs */
.modal-content .form input:focus,
.modal-content .form select:focus {
  border-color: #007bff; /* Bordure bleue au focus */
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Effet lumineux doux */
}

/* Bouton du formulaire */
.modal-content .form button {
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.modal-content .form button:hover {
  background-color: #0056b3; /* Bleu foncé au survol */
  transform: translateY(-2px); /* Légère élévation */
}

/* Bouton de fermeture */
.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.close-button:hover {
  color: #e74c3c; /* Rouge clair au survol */
  transform: scale(1.2); /* Agrandissement léger */
}

/* Responsive : Ajuste la largeur et le padding sur mobile */
@media (max-width: 600px) {
  .modal-content {
    width: 90%;
    padding: 15px 12px;
    max-height: 85vh;
    overflow-y: auto;
  }
  
  .modal-content h2 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .modal-content p {
    font-size: 13px;
    margin-bottom: 15px;
  }
  
  .modal-content .form {
    gap: 12px;
  }
  
  .modal-content .form label {
    font-size: 14px;
    margin-bottom: 3px;
  }
  
  .modal-content .form input,
  .modal-content .form select,
  .modal-content .form textarea {
    font-size: 16px; /* Évite le zoom automatique sur iOS */
    padding: 10px;
  }
  
  .modal-content button[type="submit"],
  .modal-content .submit-button {
    padding: 11px;
    font-size: 15px;
  }
  
  .close-button {
    font-size: 24px;
    top: 8px;
    right: 10px;
  }
}

/* Responsive : Login container pour mobile */
@media (max-width: 600px) {
  .login-container {
    width: calc(100% - 20px);
    margin: 10px auto;
    padding: 15px;
  }
  
  .login-container h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }
  
  .login-container p {
    font-size: 14px;
  }
  
  .login-container input[type="email"],
  .login-container input[type="password"] {
    font-size: 16px; /* Évite le zoom automatique sur iOS */
    padding: 12px;
  }
  
  .login-container .submit-button {
    padding: 12px;
    font-size: 16px;
  }
  
  .login-container label {
    font-size: 14px;
  }
}

/* ---- MODALE STATUT SALARIAL ---- */
.modal-statut {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
  z-index: 1000;
  align-items: center;
  justify-content: center; /* Centre la modale */
}

.modal-statut.active {
  display: flex; /* Affiche la modale */
}

.modal-statut-container {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Ombre */
  width: 80%;
  max-width: 560px;
  padding: 20px;
  overflow-y: auto;
  max-height: 90%; /* Evite de dépasser l'écran */
  position: relative;
}

/* Boutons Modifier et Enregistrer */
.form-modal-statut #editButton,
.form-modal-statut #saveButton {
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.form-modal-statut #editButton:hover,
.form-modal-statut #saveButton:hover {
  background-color: #0056b3; /* Bleu foncé au survol */
  transform: translateY(-2px); /* Légère élévation */
}

/* Formulaire de la modale */
.form-modal-statut {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Espacement entre les champs */
}

/* Gestion des catégories dans les champs */
.details-category {
  padding: 0px;
}

.details-category h3 {
  font-size: 18px;
  color: #555;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

/* ---- Conteneur des champs ---- */
.details-category .form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.details-category .form-group label {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.details-category .form-group input[type="number"] {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  width: 100%;
  outline: none;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.details-category .form-group input[type="number"]:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.details-category .form-group input[type="number"]::placeholder {
  font-style: italic;
  color: #aaa;
}

/* ---- Tableaux spécifiques ---- */
.details-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 14px;
  color: #333;
}

.details-table th,
.details-table td {
  padding: 7px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.details-table th {
  background-color: #f4f4f4;
  font-weight: bold;
  text-align: left;
  border-bottom: 2px solid #ccc;
}

.details-table td {
  vertical-align: middle;
}

.details-table input[type="number"] {
  width: 100%;
  padding: 5px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.details-table input[type="number"]:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Champ de saisie pour le nom du statut */
#statutNameInput {
  width: 50%;
  padding: 8px 12px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-bottom: 1px solid #ddd;
  color: #333;
  outline: none;
  transition: border-color 0.3s ease;
}

#statutNameInput:disabled {
  background-color: transparent;
  color: #555;
}

#statutNameInput:focus {
  border-color: #007bff;
  box-shadow: 0 1px 3px rgba(0, 123, 255, 0.3);
}
/* Champ de filtre pour compteur des heures */
.main-content-util {
  padding-left: 5px;
  padding-right: 5px;
} 
/* Classe pour les pages avec formulaire au-dessus du header */
.page-with-top-form {
  padding-top: 70px;
}

.page-with-top-form .main-content-util {
  padding-top: 0;
}

.main-content-util form {
  background-color: transparent;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 0px;
}

.main-content-util label {
  display: inline-block;
  margin-right: 10px;
  font-size: 14px;
  color: #555;
}

.main-content-util select,
.main-content-util input[type="date"] {
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-right: 10px;
  margin-bottom: 5px;
}

.main-content-util button[type="submit"] {
  padding: 8px 15px;
  background-color: #017fdb;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.main-content-util button[type="submit"]:hover {
  background-color: #0056b3;
}

@media (max-width: 600px) {
  .main-content-util {
    padding-left: 5px;
    padding-right: 5px;
  }

  .main-content-util label {
    display: block;
    margin-bottom: 5px;
  }

  .main-content-util select,
  .main-content-util input[type="date"] {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
    box-sizing: border-box;
  }

  .main-content-util button[type="submit"] {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
  }

  .page-with-top-form {
    padding-top: 65px;
    padding-left: 5px;
    padding-right: 5px;
  }
  
  .main-content-util form {
    padding: 8px;
  }
}

/* Boutons d'actions - position normale */
.actions {
  padding: 10px;
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Boutons d'actions - état flottant (activé par JavaScript) */
.actions.sticky {
  position: fixed;
  top: 60px; /* Juste sous l'en-tête */
  left: 10px;
  right: 10px;
  z-index: 999;
  background-color: #f5f5f5;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.actions .button-add {
  margin: 0; /* Supprimer les marges par défaut */
}
