/* Menu « Mon compte » du header : en-tête avec initiale, pastilles colorées par rubrique, déconnexion à part.
   Sélecteurs préfixés par html body pour passer devant les styles de navbar propres à chaque page. */
html body .navbar .dropdown-menu.account-menu {
  --am-accent: var(--site-accent, #d72e43);
  min-width: 268px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid #ece7de;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(37, 34, 27, .16), 0 2px 6px rgba(37, 34, 27, .06);
  overflow: hidden;
}

html body .navbar .dropdown-menu.account-menu.show {
  animation: account-menu-in .16s ease-out;
}

@keyframes account-menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to { opacity: 1; transform: none; }
}

html body .navbar .account-menu .account-menu__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -8px -8px 8px;
  padding: 16px 16px 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--am-accent) 14%, #fff), color-mix(in srgb, var(--am-accent) 4%, #fff));
  border-bottom: 1px solid color-mix(in srgb, var(--am-accent) 14%, #fff);
}

html body .navbar .account-menu .account-menu__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--am-accent);
  color: #fff;
  font-size: 18px;
  font-weight: 750;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--am-accent) 35%, transparent);
}

html body .navbar .account-menu .account-menu__hello {
  min-width: 0;
  line-height: 1.25;
}

html body .navbar .account-menu .account-menu__hello strong {
  display: block;
  color: #23252a;
  font-size: 15px;
  font-weight: 750;
}

html body .navbar .account-menu .account-menu__hello span {
  display: block;
  overflow: hidden;
  color: #7a7c76;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .navbar .account-menu .dropdown-item {
  --am-tone: #6b6f68;
  --am-soft: #f3f2ee;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  background: transparent;
  color: #2d2f2b;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  transition: background-color .15s ease, color .15s ease;
}

html body .navbar .account-menu .dropdown-item::before {
  content: none !important;
  display: none !important;
}

html body .navbar .account-menu .dropdown-item::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  opacity: 0;
  transform: translateX(-4px) rotate(45deg);
  transition: opacity .15s ease, transform .15s ease;
}

html body .navbar .account-menu .account-menu__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--am-soft);
  color: var(--am-tone);
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}

html body .navbar .account-menu .account-menu__icon svg {
  width: 18px;
  height: 18px;
}

html body .navbar .account-menu .dropdown-item:hover,
html body .navbar .account-menu .dropdown-item:focus-visible {
  background: var(--am-soft);
  color: var(--am-tone);
}

html body .navbar .account-menu .dropdown-item:hover::after,
html body .navbar .account-menu .dropdown-item:focus-visible::after {
  opacity: .7;
  transform: translateX(0) rotate(45deg);
}

html body .navbar .account-menu .dropdown-item:hover .account-menu__icon,
html body .navbar .account-menu .dropdown-item:focus-visible .account-menu__icon {
  background: var(--am-tone);
  color: #fff;
  transform: scale(1.06);
}

html body .navbar .account-menu .dropdown-item:focus-visible {
  outline: 2px solid var(--am-tone);
  outline-offset: 1px;
}

html body .navbar .account-menu .am-orders { --am-tone: #e8590c; --am-soft: #fff1e6; }
html body .navbar .account-menu .am-bookings { --am-tone: #7048e8; --am-soft: #f1edff; }
html body .navbar .account-menu .am-reviews { --am-tone: #e67700; --am-soft: #fff6d8; }
html body .navbar .account-menu .am-profile { --am-tone: #0c8f6b; --am-soft: #e3f8f0; }
html body .navbar .account-menu .am-settings { --am-tone: #1971c2; --am-soft: #e7f3ff; }
html body .navbar .account-menu .am-logout { --am-tone: #c92a2a; --am-soft: #fff0f0; color: #c92a2a; }

html body .navbar .account-menu .account-menu__sep {
  height: 1px;
  margin: 6px 4px;
  background: #eeebe4;
}

@media (max-width: 991.98px) {
  html body .navbar .dropdown-menu.account-menu {
    min-width: 0;
    box-shadow: 0 10px 28px rgba(37, 34, 27, .1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .navbar .dropdown-menu.account-menu.show { animation: none; }
  html body .navbar .account-menu .dropdown-item,
  html body .navbar .account-menu .dropdown-item::after,
  html body .navbar .account-menu .account-menu__icon { transition: none; }
}
