/* Barre de comptes et repère de navigation : surfaces mates, sans effet vitré. */
.accounts-sidebar-legacy-list[hidden] { display:none !important; }
body.freev-apple .sidebar-header { border-bottom:1px solid var(--apple-outline,#e6e6eb); background:transparent; }
.sidebar-quickbar { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:center; justify-items:center; gap:7px 8px; width:100%; max-width:78px; margin:auto; }
body.freev-apple .sidebar-quick-action { display:grid; place-items:center; min-width:0; width:35px; height:35px; padding:0; border:1px solid var(--apple-outline,#e6e6eb); border-radius:11px; color:var(--apple-muted,#697488); background:var(--apple-surface,#fff); font-size:.82rem; cursor:pointer; transition:transform .22s cubic-bezier(.2,.8,.2,1),background-color .2s ease,color .2s ease,box-shadow .2s ease; }
body.freev-apple .sidebar-account-picker { grid-column:1 / -1; width:46px; height:46px; border-radius:16px; background:var(--apple-tint,#eaf3ff); box-shadow:0 6px 15px #2059b01a; }
body.freev-apple .sidebar-quick-action:hover { color:var(--apple-accent,#2563eb); background:var(--apple-tint,#eaf3ff); transform:translateY(-2px); }
body.freev-apple .sidebar-quick-action:active { transform:scale(.94); }
body.dark-mode.freev-apple .sidebar-account-picker { background:color-mix(in srgb,var(--apple-accent,#83b5ff) 17%,var(--apple-surface,#24334b)); }
.sidebar-quick-action:focus-visible { outline:3px solid var(--apple-accent,#2563eb); outline-offset:2px; }
#sidebarCurrentAccountMark { display:grid; place-items:center; width:31px; height:31px; border:2px solid var(--apple-surface,#fff); border-radius:50%; color:#fff; background:linear-gradient(145deg,#7190fc,#1f61db); box-shadow:0 3px 9px #2059b033; font-size:.72rem; font-weight:800; }
.sidebar-account-menu[hidden] { display:none !important; }
.sidebar-account-menu { position:absolute; top:.8rem; left:calc(100% + .55rem); z-index:1200; width:min(280px,calc(100vw - 110px)); padding:.7rem; border:1px solid var(--apple-outline,#e6e6eb); border-radius:18px; background:var(--apple-surface,#fff); box-shadow:0 18px 46px #142d4b2b; color:var(--apple-ink,#1c2535); animation:sidebarMenuIn .2s cubic-bezier(.2,.8,.2,1) both; }
.sidebar-account-menu-head { display:flex; align-items:center; justify-content:space-between; gap:.6rem; padding:.2rem .3rem .55rem; }
.sidebar-account-menu-head strong { font-size:.83rem; letter-spacing:-.01em; }
.sidebar-account-menu-hint { margin:0 .3rem .6rem; color:var(--apple-muted,#64748b); font-size:.72rem; line-height:1.35; }
.sidebar-account-menu-head button { display:grid; place-items:center; width:26px; height:26px; border:0; border-radius:8px; background:var(--apple-hover,#f1f4f8); color:var(--apple-muted,#64748b); cursor:pointer; }
.sidebar-account-menu-list { display:grid; gap:4px; max-height:min(48vh,330px); overflow-y:auto; }
.sidebar-account-option { display:flex; align-items:center; gap:.7rem; width:100%; min-height:45px; padding:.4rem .5rem; border:1px solid transparent; border-radius:11px; background:transparent; color:var(--apple-ink,#1c2535); text-align:left; font-family:inherit; font-size:.79rem; font-weight:600; line-height:1.3; cursor:pointer; }
.sidebar-account-option:hover,.sidebar-account-option.is-active { border-color:var(--apple-outline,#e6e6eb); background:var(--apple-tint,#eaf3ff); }
.sidebar-account-option:focus-visible,.sidebar-account-menu-head button:focus-visible { outline:3px solid var(--apple-accent,#2563eb); outline-offset:2px; }
.sidebar-account-option-avatar { display:grid; flex:0 0 28px; place-items:center; width:28px; height:28px; border-radius:9px; color:#fff; font-size:.68rem; font-weight:800; }
.sidebar-account-option-name { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sidebar-account-option > i { color:var(--apple-accent,#2563eb); font-size:.75rem; }
@keyframes sidebarMenuIn { from { opacity:0; transform:translateY(-5px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
@media (min-width:769px) {
  body.freev-apple .sidebar { position:relative; z-index:20; }
  body.freev-apple .sidebar-header { width:100%; padding:.8rem .25rem .9rem; }
  body.freev-apple .sidebar-nav .nav-item { overflow:visible; }
  body.freev-apple .sidebar-nav .nav-item.active,
  body.freev-apple .sidebar-nav .nav-item[aria-current="page"] { background:var(--apple-tint,#eaf3ff); border-color:transparent; box-shadow:0 6px 16px #2563eb16; animation:sidebarSelectIn .38s cubic-bezier(.2,.8,.2,1) both; }
  body.freev-apple .sidebar-nav .nav-item.active::before,
  body.freev-apple .sidebar-nav .nav-item[aria-current="page"]::before { content:''; position:absolute; top:12px; bottom:12px; left:-5px; width:3px; border-radius:3px; background:var(--apple-accent,#2563eb); box-shadow:0 0 9px color-mix(in srgb,var(--apple-accent,#2563eb) 45%,transparent); animation:sidebarMarkerIn .32s ease-out both; }
  body.freev-apple .sidebar-nav .nav-item.active i,
  body.freev-apple .sidebar-nav .nav-item[aria-current="page"] i { animation:sidebarIconIn .34s cubic-bezier(.2,.8,.2,1) both; }
  body.freev-apple .sidebar-nav .nav-item:hover { transform:translateY(-1px); }
  body.dark-mode.freev-apple .sidebar-nav .nav-item.active,
  body.dark-mode.freev-apple .sidebar-nav .nav-item[aria-current="page"] { background:color-mix(in srgb,var(--apple-accent,#2563eb) 18%,var(--apple-surface,#24334b)); box-shadow:0 5px 14px #0002; }
}
@keyframes sidebarSelectIn { from { opacity:.55; transform:scale(.88); } to { opacity:1; transform:scale(1); } }
@keyframes sidebarMarkerIn { from { opacity:0; transform:scaleY(.35); } to { opacity:1; transform:scaleY(1); } }
@keyframes sidebarIconIn { from { transform:scale(.72); } to { transform:scale(1); } }
@media (max-width:768px) {
  body.freev-apple .sidebar-header { padding:.9rem 3.5rem .85rem 1rem; }
  .sidebar-quickbar { display:flex; justify-content:flex-start; max-width:none; margin:0; gap:10px; }
  body.freev-apple .sidebar-quick-action { flex:0 0 43px; width:43px; height:43px; border-color:var(--apple-outline,#e6e6eb); border-radius:13px; background:var(--apple-surface,#fff); font-size:.93rem; }
  body.freev-apple .sidebar-account-picker { flex:0 0 48px; width:48px; height:48px; }
  #sidebarCurrentAccountMark { width:30px; height:30px; }
  .sidebar-account-menu { top:calc(100% + .4rem); left:.8rem; width:min(270px,calc(100vw - 1.6rem)); }
}
@media (prefers-reduced-motion:reduce) { .sidebar-quick-action,.sidebar-nav .nav-item,.sidebar-nav .nav-item::before,.sidebar-nav .nav-item i,.sidebar-account-menu { animation:none !important; transition:none !important; } }
