/* --- NOUVEAU HEADER UNIFIÉ - THÈME SOMBRE --- */

/* 1. Structure générale du Header */
.header-unified.dark-theme {
  background-color: transparent; /* Un noir un peu plus doux que le noir pur #000 */
  padding: 12px 24px;
  color: #ffffff;
  position: relative;
  z-index: 9; /* Ligne de séparation subtile */
}

.header-content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px; /* Optionnel : pour centrer le contenu sur de très grands écrans */
  margin: 0 auto;
}

/* 2. Logo (Remarque importante) */
.header-unified .logo img {
  max-height: 50px;
  /* Rappel : le logo doit être une version PNG/SVG avec des couleurs claires */
}

/* 3. Groupe d'actions à droite */
.header-right-group {
  display: flex;
  align-items: center;
  gap: 12px; /* Espace entre les boutons et le menu */
}

/* 4. Styles des Boutons (Hiérarchie) */
.header-right-group .btn {
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
}

/* Bouton Primaire : Rouge sur fond sombre */
.header-right-group .btn.btn-primary-red {
  background-color: #D9232D;
  color: #ffffff;
  border-color: #D9232D;
}
.header-right-group .btn.btn-primary-red:hover {
  background-color: #b51c25;
  border-color: #b51c25;
  transform: translateY(-1px);
}

/* Bouton Secondaire : "Ghost" blanc */
.header-right-group .btn.btn-secondary-ghost {
  background-color: transparent;
  color: #ffffff;
  border-color: #666; /* Bordure grise pour ne pas être trop agressive */
}
.header-right-group .btn.btn-secondary-ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}


/* 5. Style du Menu Utilisateur (Crucial) */
.header-right-group .user-info .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  border: 1.5px solid #666; /* Même style que le bouton secondaire pour la cohérence */
  border-radius: 8px;
  padding: 7px 15px; /* Ajustement du padding pour être aligné avec les autres boutons */
  cursor: pointer;
  transition: all 0.2s ease;
  color: #ffffff;
}
.header-right-group .user-info .dropdown-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}
.header-right-group .user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.header-right-group .dropdown-toggle span {
  font-weight: 500;
  font-size: 14px;
}
.header-right-group .dropdown-chevron-icon {
  color: #ccc;
}

/* Style du bouton d'action principal (CTA) */
.btn.btn-primary {
  padding: 10px 20px;
  border-radius: 8px; /* Bords légèrement arrondis, très moderne */
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px; /* Espace entre l'icône et le texte */
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgb(4 74 86 / 49%);
}


/* 2. Style du Sub-Header (barre de navigation) */
.subnav {
    background-color: #f3f3f3;

}
.subnav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  height: 50px;
      max-width: 1600px;
    margin: auto;
  background-color: #f3f3f3;
}

.subnav-tabs {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.subnav-link {
    padding: 0;
  text-decoration: none;
  color: #555;
  font-weight: 500;
  font-size: 15px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  border-bottom: 3px solid transparent; /* Bordure pour l'onglet actif */
  transition: color 0.2s ease, border-color 0.2s ease;
}

.subnav-link:hover {
  color: #111;
}

.subnav-link.active {
  color: #D9232D;
  border-bottom-color: #D9232D;
}

/* Outils à droite de la subnav */
.subnav-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Style moderne et CLAIR pour le menu utilisateur */
.subnav-tools .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f5f5f5; /* Fond subtil pour montrer que c'est un élément */
  border: 1px solid #e0e0e0;
  border-radius: 20px; /* Forme "pilule" */
  padding: 4px 12px 4px 4px; /* Padding asymétrique pour l'avatar */
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.subnav-tools .dropdown-toggle:hover {
  background-color: #e9e9e9;
}
.subnav-tools .user-avatar {
  width: 28px;
  height: 28px;
}
.subnav-tools .dropdown-toggle span {
  font-weight: 500;
  color: #333;
}
.subnav-tools .dropdown-chevron-icon {
  color: #777;
}

body.role-anonymous .subnav {
  display: none;
}