/* ========================================
   HEADERS UNIFORMES - STYLE ITELEC ÉLÉGANT
   Basé sur le design sobre de gestion-conges.html
   ======================================== */

/* Header principal uniforme - Version compacte avec beau design */
.itelec-header {
  background: var(--glass);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 1.2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  min-height: 56px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

/* Ajuster le contenu pour éviter qu'il soit caché */
body {
  scroll-padding-top: 60px;
}

/* Ajuster le padding du body pour compenser les marges négatives du header */
body {
  padding-top: 60px;
}

/* S'assurer que tous les conteneurs permettent au header de prendre toute la largeur */
body, html {
  margin: 0;
  padding: 0;
}

/* Force header à prendre toute la largeur de l'écran avec marges négatives */
.itelec-header {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

/* Titre du header avec gradient et icône - Version compacte */
.itelec-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  line-height: 1.2;
}

/* Icônes avant les titres - Version optimisée */
.itelec-header h1::before {
  -webkit-text-fill-color: initial;
  font-size: 1.2rem;
  filter: drop-shadow(0 1px 2px rgba(0, 120, 215, 0.2));
}

/* Icônes spécifiques par page */
.header-dashboard h1::before { content: '📊'; }
.header-vehicules h1::before { content: '🚗'; }
.header-conges h1::before { content: '👥'; }
.header-encodage h1::before { content: '📝'; }
.header-proximus h1::before { content: '🔌'; }
.header-infra h1::before { content: '🏗️'; }
.header-tickets h1::before { content: '🎫'; }
.header-historique h1::before { content: '📋'; }
.header-statistiques h1::before { content: '📈'; }
.header-technicien h1::before { content: '🔧'; }
.header-coach h1::before { content: '👨‍🏫'; }
.header-admin h1::before { content: '⚙️'; }
.header-controles h1::before { content: '🔍'; }
.header-profile h1::before { content: '👤'; }
.header-notifications h1::before { content: '🔔'; }
.header-utilisateurs h1::before { content: '👥'; }

/* Groupe de boutons uniformes - Version compacte */
.itelec-header .btn-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.itelec-header .btn-group button,
.itelec-header .btn-group input,
.itelec-header .btn-group select {
  padding: 0.4rem 0.8rem;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-full);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 0.85rem;
  white-space: nowrap;
  height: 36px;
}

.itelec-header .btn-group button:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 120, 215, 0.15);
}

.itelec-header .btn-group input:focus,
.itelec-header .btn-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 120, 215, 0.1);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .itelec-header {
    padding: 0.5rem 1rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    min-height: 80px;
  }

  .itelec-header h1 {
    font-size: 1.2rem;
  }

  .itelec-header .btn-group {
    gap: 0.3rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  .itelec-header .btn-group button,
  .itelec-header .btn-group input,
  .itelec-header .btn-group select {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    height: 32px;
  }
}

/* Sous-titre optionnel - Version compacte */
.itelec-header .header-subtitle {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 400;
  margin-top: 0.1rem;
  opacity: 0.9;
}

/* Auto-hide sur scroll (optionnel) */
.itelec-header.scrolled {
  transform: translateY(-100%);
}

/* Performance: Réduire les repaints */
.itelec-header {
  will-change: transform;
}

.itelec-header *,
.itelec-header *::before,
.itelec-header *::after {
  will-change: auto;
}

/* Styles spéciaux pour les inputs de filtre */
.itelec-header .filter-input {
  min-width: 100px;
  background: var(--glass) !important;
}

.itelec-header .month-selector {
  min-width: 120px;
  background: var(--glass) !important;
}

.itelec-header .btn-clear {
  background: rgba(255, 99, 71, 0.1) !important;
  color: #ff6347 !important;
  border-color: rgba(255, 99, 71, 0.3) !important;
}

.itelec-header .btn-clear:hover {
  background: rgba(255, 99, 71, 0.2) !important;
  border-color: #ff6347 !important;
  transform: translateY(-1px) !important;
} 