/* Header styles */
.entreprise-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  padding: 0;
  position: fixed;
  top: 0;
  left: 330px; /* Aligné avec le sidebar */
  right: 0;
  z-index: 900;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 48px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-title {
  margin: 0;
  color: #1F2937;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px; /* 116.667% */
}

.header-right {
  display: flex;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.notification-btn {
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-btn:hover {
  background-color: #F9FAFB;
}

.profile-container {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 228px;
  padding: 9px 13px;
  border: 1px solid #E5E7EB;
  border-radius: 15px;
  gap: 10px;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease;
  border-radius: 10px;
  padding: 4px;
}

.profile-trigger:hover {
  background-color: #F9FAFB;
}

.profile-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.profile-name {
  font-size: 14px;
  font-weight: 700;
  color: #1F2937;
  line-height: 16px;
}

.profile-role {
  font-size: 12px;
  color: #6B7280;
  font-weight: 400;
  line-height: 16px;
}

.dropdown-arrow {
  color: #6B7280;
  transition: transform 0.2s ease;
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
}

.profile-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid #F3F4F6;
}

.dropdown-title {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-menu {
  padding: 8px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: #F9FAFB;
  color: #1F2937;
}

.dropdown-icon {
  color: #6B7280;
  flex-shrink: 0;
}

.dropdown-item:hover .dropdown-icon {
  color: #1F2937;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
  background-color: #F9FAFB;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: #1F2937;
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile responsive header */
@media (max-width: 768px) {
  .entreprise-header {
    left: 0;
  }
  
  .header-content {
    padding: 14px 20px;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .page-title {
    font-size: 20px;
  }
  
  .profile-container {
    min-width: auto;
    padding: 6px 10px;
  }
  
  .profile-info {
    display: none;
  }
  
  .profile-photo {
    width: 32px;
    height: 32px;
  }
  
  .header-actions {
    gap: 16px;
  }
}
