/* Polices appliquées */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial', serif;
}
p, li, th, td {
    font-family: 'Arial', serif;
}
form * {
    font-family: 'Arial', serif !important;
}

/* Style du carousel de la page d'accueil */
#carouselAccueil {
    position: relative;
    margin:auto;
}
#carouselAccueil img {
    width: 380px;
    height: 269px;
    object-fit: contain;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1); /* Rend les icônes noires (sur fond clair) */
}

/* Style de la bannière d'information sur le stockage local des données */
.localstorage-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #343a40;
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  z-index: 1000;
}

/* Style des éléments de pagination */
.page-link {
    color: #000 !important;          /* Texte noir */
    background-color: #fff;          /* Fond blanc */
    border: 1px solid #dee2e6;       /* Bordure standard Bootstrap */
}

.page-link:hover {
    background-color: #e9ecef;       /* Fond gris clair au survol */
    color: #000 !important;          /* Texte reste noir */
}

.page-item.active .page-link {
    background-color: #6c757d;       /* Couleur btn-secondary */
    border-color: #6c757d;
    color: #fff !important;          /* Texte blanc */
}

th a {
    color: #000;
    font-weight: bold;
    transition: color 0.2s ease;
}

th a:hover {
    color: #333;
}

table th:last-child, td:last-child {
    text-align: center;
    vertical-align: middle;
}

#special-link:link, #special-link:visited {
    color: darkseagreen;
}

#special-link:hover, #special-link:active {
    color: darkgreen;
}

img {
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Style de la barre de navigation */
.custom-navbar {
  background: rgba(118, 165, 42, 0.144);
  font-family: 'Quicksand', sans-serif;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.custom-navbar .navbar-brand h1 {
  font-size: 1.8rem;
  font-weight: bold;
  color: #2f4f2f;
  margin: 0;
}

.custom-navbar .nav-link {
  font-size: 1.1rem;
  color: #2f4f2f !important;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 8px 12px;
}

.custom-navbar .nav-link:hover {
  /* background-color: rgba(255,255,255,0.4); */
  background: rgba(118, 165, 42, 0.2);
  transform: translateY(-2px);
}

.navbar-toggler {
  border-color: #2f4f2f;
}

/* Style du footer */
.custom-footer {
  background: rgba(118, 165, 42, 0.144);
  font-family: 'Quicksand', sans-serif;
  color: #2f4f2f;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
  line-height: 0.6;
}

.custom-footer span {
  transition: transform 0.3s ease, background-color 0.3s ease;
  padding: 2px 6px;
  border-radius: 8px;
}

/* Style des toasts */
#toast {
  visibility: hidden;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #333;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  transition: visibility 0s, opacity 0.5s ease;
  opacity: 0;
}

#toast.show {
  visibility: visible;
  opacity: 1;
}

/* Style des boutons Sauvegarde et Charger */
#save, #load, #delete {
  background: rgba(118, 165, 42, 0.144);
  font-size: 1.1rem;
  color: #2f4f2f !important;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 8px 12px;
  border : none;
  outline : none;      
}
#save:hover, #load:hover, #delete:hover{
  background: rgba(118, 165, 42, 0.25);
  transform: translateY(-2px);
}
