header {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  padding: 0 30px;
  transition: all 0.3s ease;
  @media only screen and (max-width: 500px) {
    padding: 0 10px;
  }
}
nav {
  height: 73px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: auto;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
nav a {
  font-size: 15px;
  text-decoration: none;
}
nav a#logo {
  color: #000000;
  font-weight: 700;
  align-items: center;
  display: flex;
}
nav a#logo img {
  max-height: 34px;
}
nav ul a {
  color: #191919;
  font-size: 14px;
  font-weight: 500;
  line-height: 23.8px;
}
nav ul a:hover {
  color: #191e62;
}
.button-link:hover {
  transition: all 2s ease-in-out;
  text-decoration: none;
  background-color: transparent;
  background-image: linear-gradient(96deg, #9289f1 0%, #6254e7 100%);
}
.button-link {
  overflow: visible;
  padding: 13px 27px 13px 27px;
  transition: all 0.4s ease-in-out;
  color: white;
  background: #6254e7;
  border-radius: 5px;
  display: block;
  width: max-content;
}
#ham-menu {
  display: none;
}
nav ul.active {
  left: 0;
}
@media only screen and (max-width: 950px) {
  #ham-menu {
    display: block;
    color: #3b3663;
  }
  nav a#logo,
  #ham-menu {
    font-size: 2.2rem;
  }
  nav ul {
    background-color: #0a081a;
    position: fixed;
    left: -100vw;
    top: 73.6px;
    width: 100vw;
    height: calc(100vh - 73.6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    transition: 1s;
    gap: 0;
  }
}
@media only screen and (max-width: 950px) {
  nav ul {
    top: 73px;
    height: calc(100vh - 65.18px);
  }
  nav ul a {
    color: #fff;
  }
}

/* Menu profil - Design moderne */
.header__menu-item--profile {
  position: relative;
  margin-left: 1rem;
  z-index: 10002;
}

.header__profile {
  position: relative;
  z-index: 10002;
}

.header__profile-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  border-radius: 24px;
  padding: 4px 4px 4px 12px;
  background-color: transparent;
  position: relative;
  z-index: 10001;
}

.header__profile-toggle:hover {
  background-color: rgba(98, 84, 231, 0.08);
}

.header__profile-toggle.active {
  background-color: rgba(98, 84, 231, 0.12);
}

.header__profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6254e7 0%, #9289f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(98, 84, 231, 0.2);
  pointer-events: none;
}

.header__profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header__profile-initials {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1;
}

.header__profile-chevron {
  font-size: 12px;
  color: #6b7280;
  transition: transform 0.2s ease;
  margin-right: 8px;
  pointer-events: none;
}

.header__profile-toggle.active .header__profile-chevron {
  transform: rotate(180deg);
  color: #6254e7;
}

.header__profile-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.header__profile-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header du dropdown */
.header__profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header__profile-header-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6254e7 0%, #9289f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(98, 84, 231, 0.2);
  box-shadow: 0 4px 12px rgba(98, 84, 231, 0.15);
}

.header__profile-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header__profile-header-initials {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1;
}

.header__profile-header-info {
  flex: 1;
  min-width: 0;
}

.header__profile-header-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header__profile-header-email {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Divider */
.header__profile-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 8px 0;
}

/* Menu items */
.header__profile-menu {
  padding: 8px 0;
}

.header__profile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  position: relative;
}

.header__profile-link span {
  flex: 1;
}

.header__profile-link:hover {
  background-color: #f9fafb;
  color: #6254e7;
}

.header__profile-link i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: #9ca3af;
  transition: color 0.15s ease;
}

.header__profile-link:hover i {
  color: #6254e7;
}

.header__profile-link--logout {
  color: #dc2626;
}

.header__profile-link--logout:hover {
  background-color: #fef2f2;
  color: #dc2626;
}

.header__profile-link--logout i {
  color: #dc2626;
}

.header__profile-form {
  margin: 0;
  padding: 0;
}

/* Responsive pour le menu profil */
@media only screen and (max-width: 950px) {
  .header__menu-item--profile {
    margin-left: 0;
    width: 100%;
  }

  .header__profile-toggle {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 20px;
    border-radius: 0;
    background-color: transparent !important;
  }

  .header__profile-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
  }

  .header__profile-avatar {
    width: 40px;
    height: 40px;
  }

  .header__profile-initials {
    font-size: 16px;
  }

  .header__profile-chevron {
    margin-left: auto;
    margin-right: 0;
    color: #fff;
  }

  .header__profile-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0;
    min-width: auto;
    width: 100%;
    margin-top: 0;
  }

  .header__profile-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
  }

  .header__profile-header-name {
    color: #fff;
  }

  .header__profile-header-email {
    color: rgba(255, 255, 255, 0.7);
  }

  .header__profile-divider {
    background: rgba(255, 255, 255, 0.1);
  }

  .header__profile-link {
    color: #fff;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .header__profile-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .header__profile-link i {
    color: rgba(255, 255, 255, 0.7);
  }

  .header__profile-link:hover i {
    color: #fff;
  }

  .header__profile-link--logout {
    color: #ff6b6b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0;
  }

  .header__profile-link--logout:hover {
    background-color: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
  }

  .header__profile-link--logout i {
    color: #ff6b6b;
  }
}
