*, *::before, *::after { box-sizing: border-box; }
 
html, body { margin: 0; padding: 0; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 28px;
    height: 60px;
    background: #0f0f1a;
    border-bottom: 1px solid #2e2e4d;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.site-logo {
    font-size: 18px;
    font-weight: 700;
    font-style: italic;
    color: #e5a100;
    text-decoration: none;
    letter-spacing: 1px;
    white-space: nowrap;
}

.header-nav {
    display: flex;
    gap: 24px;
    flex: 1;
    justify-content: center;
}

.header-nav a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: color .2s;
}

.header-nav a:hover { color: #fff; }

.header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.btn-header {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .4px;
    transition: background .2s, color .2s;
}

.btn-login {
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
}

.btn-login:hover {
    border-color: #e5a100;
    color: #e5a100;
}

.btn-register {
    background: #e5a100;
    color: #000;
    border: 1px solid #e5a100;
}

.btn-register:hover { background: #ffc107; }

.btn-logout {
    background: transparent;
    border: 1px solid #555;
    color: #aaa;
}

.btn-logout:hover {
    border-color: #f87171;
    color: #f87171;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-pseudo {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.badge-admin {
    background: #7c3aed;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: .5px;
}

/* Responsive */
@media (max-width: 640px) {
    .header-nav { display: none; }
    .site-header { padding: 0 16px; }
}

.nav-admin {
    color: #e5a100 !important;
    border: 1px solid #e5a100;
    border-radius: 6px;
    padding: 4px 12px;
    transition: background .2s !important;
}

.nav-admin:hover {
    background: rgba(229,161,0,.15);
    color: #ffc107 !important;
}

.header-pseudo {
    color: #ccc;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: color .2s, background .2s;
}

.header-pseudo:hover {
    color: #e5a100;
    background: rgba(229,161,0,.08);
}

.nav-admin {
    color: #e5a100 !important;
    border: 1px solid #e5a100;
    border-radius: 6px;
    padding: 4px 12px;
    transition: background .2s !important;
}

.nav-admin:hover {
    background: rgba(229,161,0,.15);
    color: #ffc107 !important;
}