.app-header { display: flex; align-items: center; justify-content: space-between; background: #1E2227; border-bottom: 1px solid rgba(74,222,128,0.15); padding: 0 16px; height: 64px; box-shadow: 0 2px 12px rgba(0,0,0,0.4); position: sticky; top: 0; z-index: 100; font-family: system-ui, sans-serif; gap: 12px; flex-wrap: nowrap; }
.app-header-left, .app-header-center, .app-header-right { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; white-space: nowrap; }
.app-header-center { flex: 1 1 auto; justify-content: center; min-width: 0; overflow: hidden; }
.app-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #4ADE80; font-size: 18px; font-weight: 700; }
.app-logo-icon { font-size: 22px; }
.app-logo:hover { color: #22c55e; }
.app-user-block { display: flex; align-items: center; gap: 10px; background: #121417; border: 1px solid rgba(74,222,128,0.2); border-radius: 10px; padding: 4px 12px; height: 40px; max-width: 100%; overflow: hidden; }
.app-user-avatar { width: 28px; height: 28px; border-radius: 50%; background: #4ADE80; color: #121417; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.app-user-info { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-user-name { color: #F3F4F6; font-weight: 600; }
.app-user-email { color: #9CA3AF; font-size: 12px; }
.app-user-sep { color: #4B5563; }
.app-user-role { color: #FACC15; font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
.app-user-tenant { color: #9CA3AF; font-size: 12px; }
.app-header-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: #121417; color: #F3F4F6; cursor: pointer; font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.15s; font-family: inherit; white-space: nowrap; }
.app-header-btn:hover { background: #2a2f36; border-color: rgba(74,222,128,0.4); }
.app-header-btn-primary { background: #4ADE80; color: #121417; border-color: #4ADE80; }
.app-header-btn-primary:hover { background: #22c55e; border-color: #22c55e; }
.app-header-btn-danger { border-color: rgba(239,68,68,0.3); }
.app-header-btn-danger:hover { background: #7a2020; border-color: #ef4444; color: #fff; }
.app-server-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #9CA3AF; padding: 0 6px; white-space: nowrap; }
.app-server-dot { width: 8px; height: 8px; border-radius: 50%; background: #6B7280; flex-shrink: 0; }
.app-server-dot.up { background: #4ADE80; box-shadow: 0 0 6px rgba(74,222,128,0.6); }
.app-server-dot.down { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.6); }
body { margin: 0 !important; }
@media (max-width: 1200px) { .app-user-email { display: none; } }
@media (max-width: 1000px) { .app-user-tenant { display: none; } .app-server-status { display: none; } }
@media (max-width: 800px) { .app-user-role { display: none; } }
.app-user-extra { color: #4ADE80; font-size: 12px; font-weight: 600; padding: 2px 8px; background: rgba(74,222,128,0.1); border-radius: 4px; }

/* Fix sticky : la div wrapper doit aussi être sticky pour que le header tienne */
#app-header { position: sticky; top: 0; z-index: 100; }

