.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 6, 8, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-red);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.06), 0 4px 24px rgba(0, 0, 0, 0.6);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

/* ══ LOGO CLIQUABLE ══ */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.85;
}

.logo-emblem {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px var(--red-glow));
}

.logo-emblem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--gold-light);
    letter-spacing: 0.06em;
}

.logo-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-links li a {
    display: block;
    padding: 8px 16px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--red-bright);
    transition: width 0.3s;
}

.nav-links li a:hover {
    color: var(--gold);
}

.nav-links li a:hover::after {
    width: 60%;
}

/* Lien actif */
.nav-links li a.active {
    color: var(--gold);
}

.nav-links li a.active::after {
    width: 60%;
}

/* ══ BURGER MOBILE ══ */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gold-dim);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s, background 0.2s;
}

.nav-burger:hover span {
    background: var(--gold);
}

.nav-burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-burger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(8, 6, 8, 0.98);
        border-bottom: 1px solid var(--border-red);
        flex-direction: column;
        padding: 12px 0;
        backdrop-filter: blur(20px);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li a {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .nav-links li a::after {
        display: none;
    }
}

/* ══ NAV ACTIONS (GITHUB ET DISCORD) ══ */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.06em;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.nav-action-ghost {
    background: transparent;
    border: 1px solid var(--border-red);
    color: var(--text-muted);
}

.nav-action-ghost:hover {
    border-color: var(--gold-dim);
    color: var(--gold);
    background: rgba(201, 168, 76, 0.05);
}

.nav-action-primary {
    background: var(--red);
    border: 1px solid var(--red-bright);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.nav-action-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.4s ease;
}

.nav-action-primary:hover {
    background: var(--red-bright);
    color: #fff;
    box-shadow: 0 0 20px rgba(139, 26, 26, 0.5);
}

.nav-action-primary:hover::before {
    left: 100%;
}

@media (max-width: 900px) {
    .nav-actions {
        display: none;
    }
}