/* ==============================================
   Orchestro Base - Styles personnalisés
   ============================================== */

/* Variables CSS pour maintenir la cohérence */
:root {
  --primary-color: #49a5ca;
  --primary-dark: #3a8bb0;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --light-gray: #f8f9fa;
  --border-radius: 0.375rem;
  --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Styles généraux */
.prout {
  color: var(--success-color);
  font-weight: bold;
}

/* Image de fond pour la page de connexion */
.bgimg {
  background-size: cover;
  background-image: url("../backgrounds/default.jpg");
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 100vh;
}

/* Styles pour les titres de section */
.s-titre {
  background-color: var(--primary-color);
  border: 0;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Boutons de petite taille */
.btn-sml {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: var(--border-radius);
}

/* Styles pour le calendrier */
.calendar {
  margin-left: -1px;
  margin-bottom: -1px;
  padding: 0;
  height: 20px;
  border-radius: 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: bold;
}

.calendar-col {
  border: 1px solid var(--primary-color);
  width: 12%;
  border-radius: 0;
}

/* Styles pour les types de jours */
.weekend {
  background-color: #e9ecef;
  color: var(--secondary-color);
}

.maladie {
  background-color: var(--danger-color);
  color: white;
}

.conges {
  background-color: var(--primary-color);
  color: white;
}

/* Styles pour les absences */
.colAbs {
  display: flex;
  align-items: center;
  padding: 0;
}

/* Styles pour les groupes de lignes dans les tableaux */
tr.group,
tr.group:hover {
  background-color: var(--light-gray) !important;
  font-weight: 600;
}

/* Améliorations pour DataTables */
.dataTables_wrapper {
  margin-top: 1rem;
}

.dataTables_filter input {
  border-radius: var(--border-radius);
  border: 1px solid #ced4da;
  padding: 0.375rem 0.75rem;
}

.dataTables_length select {
  border-radius: var(--border-radius);
  border: 1px solid #ced4da;
  padding: 0.375rem 0.75rem;
}

/* Styles pour les cartes */
.card {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(0, 0, 0, 0.125);
}

.refresh-pill {
  align-items: center;
  background-color: rgba(73, 165, 202, 0.12);
  border-radius: 999px;
  color: var(--secondary-color);
  display: inline-flex;
  font-size: 0.85rem;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  white-space: nowrap;
}

.refresh-pill i {
  color: var(--primary-color);
}

.card-header {
  background-color: var(--light-gray);
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: calc(var(--border-radius) - 1px) calc(var(--border-radius) - 1px) 0 0;
}

/* Styles pour les badges */
.badge {
  font-size: 0.75em;
  font-weight: 500;
}

/* Styles pour les alertes */
.alert {
  border-radius: var(--border-radius);
  border: 1px solid transparent;
}

.alert-dismissible .btn-close {
  padding: 0.75rem 1rem;
}

/* Styles pour les formulaires */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(73, 165, 202, 0.25);
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(73, 165, 202, 0.25);
}

/* Styles pour les boutons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Navbar dropdown hover/active colors */
.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item.active {
  background-color: var(--primary-color);
  color: #fff;
}

/* Navigation responsive */
@media (max-width: 768px) {
  .s-titre {
    font-size: 1.1rem;
    padding: 0.5rem;
  }
  
  .card {
    margin: 0.5rem;
  }
  
  .btn-sml {
    padding: 0.125rem 0.25rem;
    font-size: 0.75rem;
  }
}

/* Amélioration de l'accessibilité */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visible pour l'accessibilité */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
