/* Chrome compte — header site public (UI lisible, pas pennypacker) */
@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@500;600;700&display=swap");

.ap-header-account {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 0.65rem;
}

.ap-header-account a,
.ap-header-account__login {
  color: #f0f0f0;
  text-decoration: none;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif !important;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none !important;
  white-space: nowrap;
}

.ap-header-account a:hover,
.ap-header-account__login:hover {
  color: #5fe3ae;
}

.ap-header-account__login {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(240, 240, 240, 0.28);
  border-radius: 999px;
}

.ap-header-account__login:hover {
  border-color: rgba(95, 227, 174, 0.55);
  background: rgba(95, 227, 174, 0.1);
}

.ap-header-account__btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 0.2rem 0.55rem 0.2rem 0.25rem;
  cursor: pointer;
  color: inherit;
}

.ap-header-account__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 12rem;
}

.ap-header-account.is-open .ap-header-account__btn {
  border-color: rgba(95, 227, 174, 0.45);
  background: rgba(95, 227, 174, 0.1);
}

.ap-header-account__avatar,
.ap-header-account__initial {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(95, 227, 174, 0.16);
}

.ap-header-account__initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #5fe3ae;
  letter-spacing: 0.02em;
}

.ap-header-account__label {
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif !important;
  font-size: 0.88rem;
  font-weight: 600;
  color: #f0f0f0;
}

.ap-header-account__caret {
  font-size: 0.65rem;
  opacity: 0.7;
  color: #f0f0f0;
  transition: transform 0.2s ease;
}

.ap-header-account.is-open .ap-header-account__caret {
  transform: rotate(180deg);
}

.ap-header-account__menu[hidden] {
  display: none !important;
}

.ap-header-account__menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 13rem;
  padding: 0.4rem;
  border-radius: 12px;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 10002;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ap-header-account__menu a,
.ap-header-account__menu-btn {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #f0f0f0;
  text-decoration: none;
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.ap-header-account__menu a:hover,
.ap-header-account__menu a:focus-visible,
.ap-header-account__menu-btn:hover,
.ap-header-account__menu-btn:focus-visible {
  background: rgba(95, 227, 174, 0.12);
  color: #5fe3ae;
}

.ap-header-account__menu-danger {
  color: rgba(255, 160, 160, 0.95) !important;
}

.ap-header-account__menu-danger:hover {
  background: rgba(255, 80, 80, 0.12) !important;
  color: #ffb4b4 !important;
}

@media (max-width: 720px) {
  .ap-header-account__label,
  .ap-header-account__caret {
    display: none;
  }

  .ap-header-account {
    margin-right: 0.35rem;
  }

  .ap-header-account__btn {
    padding: 0.15rem;
  }
}
