/* Menu profil du pied de sidebar (port du composant React profile-dropdown fourni par l'utilisateur, 2026-09-29) :
   variante jour (blanc/95, bordures zinc-200/60, demande de l'utilisateur, 2026-09-29), ouvert au-dessus de la carte profil, par-dessus « Améliorer » et
   « France 2027 » ; apparition fondu + zoom 95 % + glissement depuis le bas, comme data-[side=top]. */
.sidebar-profile-wrap { position: relative; margin-top: 8px; }

.profile-menu {
  position: absolute; z-index: 20; right: 0; bottom: calc(100% + 6px); left: 0;
  padding: 8px; border: 1px solid rgb(228 228 231 / 0.6); border-radius: 16px;
  background: rgb(255 255 255 / 0.98); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  box-shadow: 0 20px 25px -5px rgb(24 24 27 / 0.12), 0 8px 10px -6px rgb(24 24 27 / 0.08);
  transform-origin: bottom center;
}
.profile-menu[hidden] { display: none; }
.profile-menu:not([hidden]) { animation: profile-menu-in 160ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes profile-menu-in { from { opacity: 0; transform: translateY(8px) scale(0.95); } to { opacity: 1; transform: none; } }

.profile-menu-items { display: flex; flex-direction: column; gap: 2px; }

.profile-menu-item,
.profile-menu-signout {
  display: flex; width: 100%; min-height: 38px; align-items: center; padding: 8px 11px; border: 1px solid transparent; border-radius: 11px;
  /* même corps que les rubriques de la sidebar (.sidebar-item : 12px / 1.2) */
  font: 500 12px / 1.2 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.01em; text-align: left; cursor: pointer; transition: background 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.profile-menu-item { gap: 11px; color: #18181b; background: transparent; }
a.profile-menu-item { text-decoration: none; }   /* « Abonnement » : lien vers la page des offres (2026-09-30) */
.profile-menu-item:hover,
.profile-menu-item:focus-visible { outline: none; color: #09090b; border-color: rgb(228 228 231 / 0.5); background: rgb(244 244 245 / 0.8); box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
.profile-menu-item > span:not(.profile-menu-badge) { flex: 1; white-space: nowrap; }
.profile-menu-item svg,
.profile-menu-signout svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.profile-menu-item svg.profile-menu-gemini { stroke: none; }

.profile-menu-badge {
  flex: 0 0 auto; margin-left: auto; padding: 3px 7px; border: 1px solid; border-radius: 6px;
  font: 500 10.5px / 1 Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; letter-spacing: -0.01em;
}
/* Performance · Oracle : vert menthe (demande de l'utilisateur, 2026-09-29) */
.profile-menu-badge.is-model { color: #047857; border-color: rgb(16 185 129 / 0.15); background: #ecfdf5; }
.profile-menu-badge.is-plan { color: #9333ea; border-color: rgb(168 85 247 / 0.1); background: #faf5ff; }

.profile-menu-sep { height: 1px; margin: 8px 0; background: linear-gradient(90deg, transparent, #e4e4e7, transparent); }

.profile-menu-signout { gap: 11px; color: #ef4444; background: rgb(239 68 68 / 0.1); }
.profile-menu-signout:hover,
.profile-menu-signout:focus-visible { outline: none; color: #dc2626; border-color: rgb(239 68 68 / 0.3); background: rgb(239 68 68 / 0.2); box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }

@media (prefers-reduced-motion: reduce) {
  .profile-menu:not([hidden]) { animation: none; }
  .profile-menu-item, .profile-menu-signout { transition: none; }
}
