/*
 * front-account-menu.css : avatar rond et menu de profil de l'en-tête de la vitrine (lot G1, composant `x-front.account-menu`), et bloc du tiroir mobile. Jetons existants, thème clair de la vitrine.
 */
.avatar {
  display: inline-grid;
  width: var(--h-md);
  height: var(--h-md);
  flex: none;
  place-items: center;
  overflow: hidden;
  color: var(--violet);
  background: var(--violet-pale);
  border: 2px solid var(--violet);
  border-radius: 50%;
}

.avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar__silhouette {
  width: 70%;
  height: 70%;
  margin-top: 12%;
}

.account-menu {
  position: relative;
  flex: none;
}

.account-menu__button {
  display: inline-grid;
  border-radius: 50%;
}

.account-menu__button:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: 2px;
}

.account-menu__list {
  position: absolute;
  top: calc(100% + var(--s2));
  right: 0;
  z-index: 70;
  box-sizing: border-box;
  width: 15rem;
  max-width: calc(100vw - 2rem);
  padding: var(--s2);
  background: var(--blanc);
  border: 1.5px solid var(--violet);
  border-radius: 14px;
  box-shadow: var(--ombre-menu);
}

.account-menu__list[hidden] {
  display: none;
}

.account-menu__name {
  margin: 0;
  padding: var(--s2) var(--s3);
  overflow-wrap: anywhere;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--encre);
  border-bottom: 1px solid var(--violet-pale);
}

.account-menu__item {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: var(--s3);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: left;
  color: var(--encre);
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
}

.account-menu__item:hover,
.account-menu__item:focus-visible {
  background: var(--violet-pale);
}

.account-menu__item:focus-visible {
  outline: 3px solid var(--or);
  outline-offset: -3px;
}

.drawer__account {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.drawer__account-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
  color: var(--encre);
}
