.tougue-account-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.tougue-account-menu-item{
  display: none;
}

.tougue-account{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.2;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  transition: background-color .2s ease, opacity .2s ease, transform .2s ease;
  max-width: 100%;
}

.tougue-account:hover,
.tougue-account:focus,
.tougue-account-wrap.is-open .tougue-account{
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transform: translateY(-1px);
}

.tougue-account-name{
  white-space: nowrap;
  font: inherit;
  color: inherit;
}

.tougue-account svg{
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: currentColor;
}

.tougue-dropdown{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  max-width: 240px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
  display: none;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease;
}

.tougue-dropdown a{
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #2f3552;
  font-size: 15px;
  line-height: 1.3;
  transition: background-color .15s ease, color .15s ease;
}

.tougue-dropdown a:hover,
.tougue-dropdown a:focus{
  background: rgba(77, 97, 214, 0.08);
  color: #4d61d6;
  text-decoration: none;
}

.tougue-account-wrap.is-open .tougue-dropdown{
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.tougue-mobile-only{
  display: none !important;
}

/* Ajustement quand le header est sombre / transparent */
.ast-theme-transparent-header .tougue-account,
.ast-theme-transparent-header .tougue-account-name,
.ast-theme-transparent-header .tougue-account svg,
.ast-primary-header-bar .tougue-account,
.ast-primary-header-bar .tougue-account-name,
.ast-primary-header-bar .tougue-account svg{
  color: inherit;
}

/* Fond hover léger sur header clair */
.ast-primary-header-bar .tougue-account:hover,
.ast-primary-header-bar .tougue-account:focus,
.ast-primary-header-bar .tougue-account-wrap.is-open .tougue-account{
  background: rgba(0, 0, 0, 0.05);
}

/* Fond hover léger sur header transparent / sombre */
.ast-theme-transparent-header .tougue-account:hover,
.ast-theme-transparent-header .tougue-account:focus,
.ast-theme-transparent-header .tougue-account-wrap.is-open .tougue-account{
  background: rgba(255, 255, 255, 0.10);
}

@media (max-width: 1024px) {
  .tougue-account-menu-item{
    display: block;
  }

  .tougue-account{
    width: 100%;
    justify-content: center;
    color: inherit;
    font-weight: inherit;
    padding: 14px 0;
    font-size: inherit;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .tougue-account:hover,
  .tougue-account:focus{
    background: transparent;
    color: inherit;
    transform: none;
  }

  .tougue-account-wrap{
    display: none !important;
  }

  .tougue-dropdown{
    display: none !important;
  }

  .tougue-mobile-only{
    display: block !important;
  }
}