/* ======================================= */
/* BOUTONS ADMIN - STYLES COHÉRENTS AVEC LA VITRINE */
/* Compatible Safari, Chrome, Firefox, Edge */
/* ======================================= */

/* Fallback global pour Safari */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .btn, .btn-primary, .action-btn, .modal-btn, .filter-btn, .pagination-btn {
    -webkit-appearance: none;
    -webkit-border-radius: 25px;
  }
}

/* Boutons principaux (style vitrine sophistiqué) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00AEEF 0%, #008fbf 100%);
  color: #fff;
  padding: 12px 25px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95em;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: auto;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover {
  background: linear-gradient(135deg, #008fbf 0%, #003B5C 100%);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 174, 239, 0.4);
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
}

/* Bouton principal spécial (comme dans login) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  background: linear-gradient(135deg, #00AEEF 0%, #008fbf 100%);
  color: #fff;
  padding: 16px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(0, 174, 239, 0.3);
  position: relative;
  overflow: hidden;
  width: auto;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #008fbf 0%, #003B5C 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 174, 239, 0.4);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 20px rgba(0, 174, 239, 0.3);
}

/* Bouton secondaire */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00AEEF 0%, #008fbf 100%);
  color: #fff;
  padding: 12px 25px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95em;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: auto;
}

/* Style spécifique pour les boutons dans les cartes de cours */
.course-card .btn-secondary {
  width: 120px;
  justify-content: center;
  padding: 10px 20px;
  font-size: 0.9em;
  margin-top: 15px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  display: block !important; /* Force l'affichage */
  min-height: 44px; /* Touch target minimum */
  line-height: 1.2;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #008fbf 0%, #003B5C 100%);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 174, 239, 0.4);
}

.btn-secondary:hover::before {
  left: 100%;
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
}

/* Style spécifique pour le bouton Free Level Test - copié du btn-primary avec couleur différente */
.btn-level-test,
a.btn-level-test {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  justify-content: center;
  background: linear-gradient(135deg, #003B5C 0%, #1a4a6b 100%) !important;
  background-color: #003B5C !important;
  color: #fff !important;
  padding: 16px 32px;
  border-radius: 50px;
  border: none !important;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1em;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(0, 59, 92, 0.3) !important;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: auto;
}

.btn-level-test::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.3), rgba(255,255,255,0));
  transition: left 0.5s;
}

.btn-level-test:hover {
  background: linear-gradient(135deg, #1a4a6b 0%, #003B5C 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 59, 92, 0.4);
}

.btn-level-test:hover::before {
  left: 100%;
}

.btn-level-test:active {
  transform: translateY(0);
  box-shadow: 0 6px 20px rgba(0, 59, 92, 0.3);
}

/* Bouton vert pour Download Timetable */
.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #fff;
  padding: 12px 25px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95em;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: auto;
}

.btn-green::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-green:hover {
  background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-green:hover::before {
  left: 100%;
}

.btn-green:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Boutons d'action avec variantes de couleur */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #003B5C 0%, #002a42 100%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 59, 92, 0.2);
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.4s;
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 59, 92, 0.3);
}

.action-btn:hover::before {
  left: 100%;
}

.action-btn.info {
  background: linear-gradient(135deg, #00AEEF 0%, #008fbf 100%);
  box-shadow: 0 2px 8px rgba(0, 174, 239, 0.2);
}

.action-btn.info:hover {
  background: linear-gradient(135deg, #008fbf 0%, #003B5C 100%);
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}

.action-btn.assign {
  background: linear-gradient(135deg, #00AEEF 0%, #008fbf 100%);
  box-shadow: 0 2px 8px rgba(0, 174, 239, 0.2);
}

.action-btn.assign:hover {
  background: linear-gradient(135deg, #008fbf 0%, #003B5C 100%);
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}

.action-btn.edit {
  background: linear-gradient(135deg, #43a047 0%, #388e3c 100%);
  box-shadow: 0 2px 8px rgba(67, 160, 71, 0.2);
}

.action-btn.edit:hover {
  background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
  box-shadow: 0 4px 12px rgba(67, 160, 71, 0.3);
}

.action-btn.delete {
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  box-shadow: 0 2px 8px rgba(211, 47, 47, 0.2);
}

.action-btn.delete:hover {
  background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.action-btn.warning {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

.action-btn.warning:hover {
  background: linear-gradient(135deg, #F57C00 0%, #E65100 100%);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.action-btn.success {
  background: linear-gradient(135deg, #43a047 0%, #388e3c 100%);
  box-shadow: 0 2px 8px rgba(67, 160, 71, 0.2);
}

.action-btn.success:hover {
  background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
  box-shadow: 0 4px 12px rgba(67, 160, 71, 0.3);
}

.action-btn.secondary {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.action-btn.secondary:hover {
  background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Style pour le bouton danger (rouge) */
.action-btn.danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.action-btn.danger:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Styles spécifiques pour les boutons du modal Detail Modal */
#detailModalActions {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 9999;
  width: auto;
  height: auto;
  background: transparent;
  padding: 0;
  margin: 0;
  transform: none;
  left: auto;
  top: auto;
}

/* Force les styles pour les boutons du modal */
#detailModalActions .action-btn.warning {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

#detailModalActions .action-btn.warning:hover {
  background: linear-gradient(135deg, #F57C00 0%, #E65100 100%);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

#detailModalActions .action-btn.secondary {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

#detailModalActions .action-btn.secondary:hover {
  background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

#detailModalActions .action-btn.danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

#detailModalActions .action-btn.danger:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Styles pour les boutons dans les modals */
.modal .modal-actions .action-btn {
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 14px;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.modal .modal-actions .action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.4s;
}

.modal .modal-actions .action-btn:hover {
  transform: translateY(-1px);
}

.modal .modal-actions .action-btn:hover::before {
  left: 100%;
}

/* Couleurs spécifiques pour les action-btn dans les modals */
.modal .modal-actions .action-btn.secondary {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.modal .modal-actions .action-btn.secondary:hover {
  background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.modal .modal-actions .action-btn.warning {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

.modal .modal-actions .action-btn.warning:hover {
  background: linear-gradient(135deg, #F57C00 0%, #E65100 100%);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.modal .modal-actions .action-btn.delete {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.modal .modal-actions .action-btn.delete:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.modal .modal-actions .action-btn.info {
  background: linear-gradient(135deg, #00AEEF 0%, #008fbf 100%);
  box-shadow: 0 2px 8px rgba(0, 174, 239, 0.2);
}

.modal .modal-actions .action-btn.info:hover {
  background: linear-gradient(135deg, #008fbf 0%, #003B5C 100%);
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}

/* Bouton d'information des filtres */
.filter-info-btn {
  background: linear-gradient(135deg, #666 0%, #555 100%);
  box-shadow: 0 2px 8px rgba(102, 102, 102, 0.2);
}

.filter-info-btn:hover {
  background: linear-gradient(135deg, #555 0%, #444 100%);
  box-shadow: 0 4px 12px rgba(102, 102, 102, 0.3);
}

/* Conteneur des onglets */
.tabs-container {
  display: flex;
  gap: 6px;
  margin-bottom: 30px;
  justify-content: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0 10px;
  max-width: 100%;
}

/* Boutons d'onglets compacts */
.tab-btn-compact {
  padding: 6px 12px;
  font-size: 0.85em;
  min-width: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Bouton de déconnexion */
.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9em;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.logout-btn:hover {
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(244, 67, 54, 0.4);
}

.logout-btn:hover::before {
  left: 100%;
}

.logout-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.logout-btn i {
  font-size: 1.1em;
}

/* Boutons d'onglets */
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #eaf6fb 0%, #d1e7f0 100%);
  color: #003B5C;
  border: none;
  border-radius: 8px 8px 0 0;
  padding: 8px 16px;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 59, 92, 0.1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.4s;
}

.tab-btn:hover {
  background: linear-gradient(135deg, #d1e7f0 0%, #b8d9e6 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 59, 92, 0.15);
}

.tab-btn:hover::before {
  left: 100%;
}

.tab-btn.active {
  background: linear-gradient(135deg, #00AEEF 0%, #008fbf 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}

/* Boutons de modal */
.modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #00AEEF 0%, #008fbf 100%);
  color: #fff;
  padding: 10px 18px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 3px 10px rgba(0, 174, 239, 0.2);
  position: relative;
  overflow: hidden;
}

.modal-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.4s;
}

.modal-btn:hover {
  background: linear-gradient(135deg, #008fbf 0%, #003B5C 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 174, 239, 0.3);
}

.modal-btn:hover::before {
  left: 100%;
}

.modal-btn.cancel {
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  box-shadow: 0 3px 10px rgba(211, 47, 47, 0.2);
}

.modal-btn.cancel:hover {
  background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.modal-btn.success {
  background: linear-gradient(135deg, #43a047 0%, #388e3c 100%);
  box-shadow: 0 3px 10px rgba(67, 160, 71, 0.2);
}

.modal-btn.success:hover {
  background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
  box-shadow: 0 5px 15px rgba(67, 160, 71, 0.3);
}

.modal-btn.delete {
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  box-shadow: 0 3px 10px rgba(211, 47, 47, 0.2);
}

.modal-btn.delete:hover {
  background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
  box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

/* Boutons de formulaire */
.form-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00AEEF 0%, #008fbf 100%);
  color: #fff;
  padding: 12px 24px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 174, 239, 0.3);
  position: relative;
  overflow: hidden;
}

.form-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.4s;
}

.form-btn:hover {
  background: linear-gradient(135deg, #008fbf 0%, #003B5C 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 174, 239, 0.4);
}

.form-btn:hover::before {
  left: 100%;
}

/* Boutons de pagination */
.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  color: #333;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #ddd;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.pagination-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.4s;
}

.pagination-btn:hover {
  background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pagination-btn:hover::before {
  left: 100%;
}

.pagination-btn:disabled {
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
  color: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Boutons de filtre */
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #003B5C 0%, #002a42 100%);
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 59, 92, 0.3);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.4s;
}

.filter-btn:hover {
  background: linear-gradient(135deg, #002a42 0%, #001a2e 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 59, 92, 0.4);
}

.filter-btn:hover::before {
  left: 100%;
}

/* Boutons de recherche */
.search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #00AEEF 0%, #008fbf 100%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 174, 239, 0.2);
  position: relative;
  overflow: hidden;
}

.search-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.4s;
}

.search-btn:hover {
  background: linear-gradient(135deg, #008fbf 0%, #003B5C 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}

.search-btn:hover::before {
  left: 100%;
}

/* Boutons d'export */
.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #43a047 0%, #388e3c 100%);
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(67, 160, 71, 0.3);
  position: relative;
  overflow: hidden;
}

.export-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.4s;
}

.export-btn:hover {
  background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(67, 160, 71, 0.4);
}

.export-btn:hover::before {
  left: 100%;
}

/* Boutons de statut */
.status-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  color: #333;
  padding: 6px 12px;
  border-radius: 15px;
  border: 1px solid #ddd;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.status-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.4s;
}

.status-btn:hover {
  background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
  transform: translateY(-1px);
}

.status-btn:hover::before {
  left: 100%;
}

.status-btn.active {
  background: linear-gradient(135deg, #43a047 0%, #388e3c 100%);
  color: #fff;
  border-color: #43a047;
}

.status-btn.pending {
  background: linear-gradient(135deg, #FFA726 0%, #FF9800 100%);
  color: #fff;
  border-color: #FFA726;
}

.status-btn.inactive {
  background: linear-gradient(135deg, #d32f2f 0%, #c62828 100%);
  color: #fff;
  border-color: #d32f2f;
}

/* Boutons de toggle */
.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  color: #333;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #ddd;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.toggle-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.4s;
}

.toggle-btn:hover {
  background: linear-gradient(135deg, #e0e0e0 0%, #d0d0d0 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.toggle-btn:hover::before {
  left: 100%;
}

.toggle-btn.active {
  background: linear-gradient(135deg, #00AEEF 0%, #008fbf 100%);
  color: #fff;
  border-color: #00AEEF;
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}

/* Animation de pulsation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 174, 239, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 174, 239, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 174, 239, 0);
  }
}

.btn-pulse {
  animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  
  .btn-primary {
    padding: 14px 28px;
    font-size: 1em;
  }
  
  .action-btn {
    padding: 6px 12px;
    font-size: 0.85em;
  }
  
  .logout-btn {
    padding: 8px 16px;
    font-size: 0.85em;
  }
  
  .tab-btn {
    padding: 10px 20px;
    font-size: 1em;
  }
  
  .modal-btn {
    padding: 8px 16px;
    font-size: 0.9em;
  }
  
  /* S'assurer que les boutons des cartes de cours sont visibles sur mobile */
  .course-card .btn-secondary {
    display: block !important;
    width: 140px;
    padding: 12px 20px;
    font-size: 16px;
    min-height: 44px;
    margin: 15px auto;
  }
} 