/* ── Scrollbar dark theme ── */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #141414; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 4px; border: 2px solid #141414; }
::-webkit-scrollbar-thumb:hover { background: #5a5a5a; }
::-webkit-scrollbar-corner { background: #141414; }
* { scrollbar-width: thin; scrollbar-color: #3a3a3a #141414; }

/* ── Select placeholder (valeur vide = gris) ── */
select.select-empty { color: #888; }
select.select-empty option:not([value=""]) { color: #fff; }

/* ── Bouton retour accueil ── */
#home-nav-btn {
    position: fixed;
    top: 14px;
    left: 18px;
    z-index: 99999;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.45);
    transition: border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
#home-nav-btn:hover {
    border-color: rgba(255,255,255,0.55);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.6);
    transform: scale(1.08);
}

#user-avatar-badge {
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 99999;
}
#user-avatar-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
    position: relative;
}
.avatar-gear-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 9px;
    line-height: 13px;
    color: #999;
    background: rgba(18,18,18,0.88);
    border-radius: 50%;
    width: 13px;
    height: 13px;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}
#user-avatar-btn img,
#user-avatar-btn .avatar-initials {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    box-shadow: 0 2px 8px rgba(0,0,0,0.45);
    display: block;
    transition: transform .15s ease, box-shadow .15s ease;
}
#user-avatar-btn .avatar-initials {
    background: #007acc;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
#user-avatar-btn:hover img,
#user-avatar-btn:hover .avatar-initials {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(0,0,0,0.6);
}
#user-avatar-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    min-width: 190px;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.55);
    overflow: hidden;
    display: none;
}
#user-avatar-dropdown.open { display: block; }
.avatar-menu-header {
    padding: 12px 14px 10px;
    border-bottom: 1px solid #333;
}
.avatar-menu-header .avatar-menu-name {
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 600;
}
.avatar-menu-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    background: none;
    border: none;
    padding: 10px 14px;
    color: #ccc;
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: background .12s;
    text-decoration: none;
}
.avatar-menu-item:hover { background: #2a2a2a; color: #fff; }
.avatar-menu-item.danger { color: #e05555; }
.avatar-menu-item.danger:hover { background: #2e1515; color: #ff6b6b; }