/**
 * OPUS UI V2 — boutons compte topbar (profil / déconnexion).
 */

.opus-v2-topbar-account {
  display: none;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}

.opus-v2-topbar-account.is-visible {
  display: inline-flex;
}

.opus-v2-topbar-account-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #4c566b !important;
  background: #fff !important;
  border: 1px solid #dfe2ea !important;
  border-radius: 12px;
  box-shadow: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.opus-v2-topbar-account-btn:hover,
.opus-v2-topbar-account-btn:focus-visible {
  color: #182033 !important;
  background: #f7f8fa !important;
  border-color: #cfd4de !important;
  transform: none;
}

.opus-v2-topbar-account-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.opus-v2-topbar-account-btn.is-logout {
  color: #9a4f49 !important;
  background: #fff9f8 !important;
  border-color: #f0d6d2 !important;
}

.opus-v2-topbar-account-btn.is-logout:hover,
.opus-v2-topbar-account-btn.is-logout:focus-visible {
  color: #b14a41 !important;
  background: #fff3f1 !important;
  border-color: #e8b9b2 !important;
}

@media (max-width: 768px) {
  body.opus-ui-v2.auth-mode .topbar-actions {
    gap: 8px;
  }

  body.opus-ui-v2.auth-mode #mobileMenuToggle {
    display: none !important;
  }

  .opus-v2-topbar-account-btn {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .opus-v2-topbar-account-btn svg {
    width: 17px;
    height: 17px;
  }
}
