/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-smooth);
    background: rgba(6, 6, 13, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.navbar.scrolled {
    background: var(--glass-strong);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 10px 40px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.navbar .logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: 3px;
    /* Tricolore français : davantage de blanc au centre */
    background: linear-gradient(
        90deg,
        #0055a4 0%,
        #0055a4 24%,
        #ffffff 38%,
        #ffffff 62%,
        #ef4135 76%,
        #ef4135 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: all var(--transition-smooth);
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.2));
    flex-shrink: 0;
}
.navbar .logo:hover {
    filter: drop-shadow(0 0 25px rgba(231, 0, 19, 0.45));
    transform: scale(1.04);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
}
/* Groupe des liens principaux (Accueil, Catalogue, TV, Actualités, VIP).
   Sur PC ce groupe est transparent pour le layout (display:contents) afin
   de ne rien changer au rendu actuel de la nav horizontale. Sur mobile
   (voir media queries plus bas) il devient un conteneur flex à part
   entière, ce qui permet de centrer ces liens indépendamment du bouton
   Discord, qui lui reste toujours ancré en bas du panneau. */
.nav-links-group,
.nav-links-inner {
    display: contents;
    list-style: none;
}
.nav-links-inner > li {
    list-style: none;
}
.nav-links li a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all var(--transition-spring);
    letter-spacing: 0.4px;
    white-space: nowrap;
    position: relative;
}
.nav-links li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.2);
}
.nav-links li a.active {
    color: #fff;
    background: rgba(0, 212, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    font-weight: 600;
}
.nav-links .vip-link {
    background: linear-gradient(135deg, #b8860b, #f0c060, #b8860b);
    color: #1a1a1a !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    border-radius: 30px;
    letter-spacing: 1px;
    box-shadow: 0 0 25px rgba(240, 192, 96, 0.5);
    animation: vipPulse 2.5s ease-in-out infinite;
}
@keyframes vipPulse {
    0%, 100% { box-shadow: 0 0 25px rgba(240, 192, 96, 0.5); }
    50% { box-shadow: 0 0 50px rgba(240, 192, 96, 0.85), 0 0 90px rgba(240, 192, 96, 0.3); }
}


/* ===== LIEN VIP : survol & actif ===== */
.nav-links .vip-link:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 0 55px rgba(240, 192, 96, 0.9) !important;
    background: linear-gradient(135deg, #b8860b, #f0c060, #b8860b) !important;
    color: #1a1a1a !important;
}

.nav-links .vip-link.active {
    background: linear-gradient(135deg, #b8860b, #f0c060, #b8860b) !important;
    color: #1a1a1a !important;
    box-shadow: 0 0 30px rgba(240, 192, 96, 0.8) !important;
    /* on conserve l'animation vipPulse si souhaitée */
}

/* ===== BADGE NOTIFICATION "ACTUALITÉS" PREMIUM ===== */
/* Le badge est un petit indicateur posé en exposant sur le coin
   haut-droit du mot "Actualités", à la manière d'une notification
   iOS/macOS — discret au repos, vivant grâce à une respiration lente. */
.nav-link-text {
    position: relative;
    display: inline-block;
}

.news-notif-badge {
    position: absolute;
    top: -5px;
    right: -14px;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(140deg, #ff5f7a 0%, #ff8a3d 100%);
    box-shadow:
        0 2px 8px rgba(255, 79, 90, 0.6);
    animation: newsBadgePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
               newsBadgeBreathe 2.6s 0.6s ease-in-out infinite;
}

@keyframes newsBadgePop {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes newsBadgeBreathe {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            0 2px 6px rgba(255, 79, 90, 0.45);
    }
    50% {
        transform: scale(1.18);
        box-shadow:
            0 3px 12px rgba(255, 79, 90, 0.85);
    }
}

@media (max-width: 1240px) {
    .nav-news-item > a {
        display: flex;
        align-items: center;
    }
}


.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Conteneur de la recherche */
.search-container {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-container.active {
    width: 230px;
}

.search-form-nav {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    border: 1px solid transparent;
    overflow: hidden;
    background: transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.search-container.active .search-form-nav {
    border-color: var(--nav-btn-border-hover);
    background: rgba(0, 0, 0, 0.45);
}

.search-input-nav {
    flex: 1;
    min-width: 0;
    width: 0;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    padding: 0;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, padding 0.25s ease;
}
.search-container.active .search-input-nav {
    width: auto;
    padding: 0 4px 0 18px;
    opacity: 1;
    pointer-events: auto;
}
.search-input-nav::placeholder {
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* ===== BOUTON DE RECHERCHE ===== */
.search-toggle-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 24px;
    background: var(--nav-btn-bg);
    border: 1px solid var(--nav-btn-border);
    color: var(--text);
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}
.search-toggle-btn:hover,
.search-toggle-btn:focus-visible {
    background: var(--nav-btn-bg-hover);
    border-color: var(--nav-btn-border-hover);
    color: #fff;
}
.search-container.active .search-toggle-btn {
    background: transparent;
    border: none;
    border-left: 1px solid var(--nav-btn-border);
    border-radius: 0;
    height: 100%;
    width: 46px;
    transform: none;
}
/* Désactivation du hover une fois le champ de recherche actif */
.search-container.active .search-toggle-btn:hover,
.search-container.active .search-toggle-btn:focus-visible {
    background: transparent;
    border: none;
    border-left: 1px solid var(--nav-btn-border);
    transform: none;
    color: var(--text);
    box-shadow: none;
}

/* ===== MENU UTILISATEUR ===== */
.user-menu {
    position: relative;
}

/* ===== BOUTON UTILISATEUR (général) ===== */
.user-toggle-btn {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    background: var(--nav-btn-bg);
    border: 1px solid var(--nav-btn-border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    font-size: 1.15rem;
    flex-shrink: 0;
}

/* Hover neutre (déconnecté) */
.user-toggle-btn:hover,
.user-toggle-btn:focus-visible {
    background: var(--nav-btn-bg-hover);
    border-color: var(--nav-btn-border-hover);
    color: #fff;
}

/* Style spécifique quand l'utilisateur est connecté (avatar) */
.user-toggle-btn.logged-in {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}
.user-toggle-btn.logged-in:hover,
.user-toggle-btn.logged-in:focus-visible {
    border-color: var(--cyan);
    box-shadow: 0 0 25px var(--cyan-glow);
    transform: scale(1.04);
}

.user-toggle-btn.menu-open {
    background: var(--nav-btn-bg-hover);
    border-color: var(--cyan);
    color: #fff;
    box-shadow: 0 0 20px var(--cyan-glow);
}

/* ===== DROPDOWN UTILISATEUR ===== */
.user-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    background: var(--bg-surface);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 16px;
    width: 280px;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-10px) scale(0.96);
    transform-origin: top right;
    transition: opacity 0.22s ease,
                transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                visibility 0.22s;
    will-change: opacity, transform;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 212, 255, 0.1);
    z-index: 1000;
    padding: 0.6rem 0;
}
.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0) scale(1);
}
.user-dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: var(--bg-surface);
    transform: rotate(45deg);
    border-top: 1px solid rgba(0, 212, 255, 0.25);
    border-left: 1px solid rgba(0, 212, 255, 0.25);
    z-index: -1;
}

/* Liens du dropdown */
.user-option {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.65rem 1.2rem;
    margin: 0 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    border-left: none;
    transition: color 0.2s ease;
    background: none;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}
/* Fond de survol : animé en opacité (géré par le GPU, sans repaint)
   pour éviter le scintillement dans une navbar avec backdrop-filter */
.user-option::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.user-option i {
    flex: 0 0 20px;
    width: 20px;
    text-align: center;
    font-size: 1rem;
    line-height: 1;
    color: var(--text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}
.user-option:hover {
    color: #fff;
}
.user-option:hover::before {
    opacity: 1;
}
.user-option:active::before {
    opacity: 1;
    background: rgba(255, 255, 255, 0.12);
}
.user-option:hover i {
    color: var(--cyan);
    transform: scale(1.15);
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    margin: 0.4rem 1rem;
}

/* Bouton Discord dans le dropdown */
.discord-login-btn-navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: #fff !important;
    font-weight: 600;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    margin: 0.5rem 1rem 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
}
.discord-login-btn-navbar i {
    font-size: 1.1rem;
    color: #fff;
    transition: transform 0.3s ease;
}
.discord-login-btn-navbar:hover {
    background: linear-gradient(135deg, #4752C4, #3c45a5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5), 0 0 15px rgba(88, 101, 242, 0.2);
}
.discord-login-btn-navbar:hover i {
    transform: scale(1.15) rotate(-5deg);
}

/* ===== AVATAR DANS LE BOUTON UTILISATEUR ===== */
.user-toggle-btn .user-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.menu-toggle {
    display: none;
    position: relative;
    z-index: 10001;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition-fast);
}
.menu-toggle-bar {
    display: block;
    width: 26px;
    height: 2.5px;
    border-radius: 3px;
    background: #fff;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                background-color 0.25s ease;
}
.menu-toggle:hover .menu-toggle-bar {
    background: var(--cyan);
}
.menu-toggle.menu-open .menu-toggle-bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.menu-toggle.menu-open .menu-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.menu-toggle.menu-open .menu-toggle-bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.nav-mobile-search {
    display: none;
}
.nav-discord {
    display: none;
}
.nav-panel-header {
    display: none;
}
.nav-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    margin-right: 8px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color var(--transition-fast);
}
.nav-links li a:hover .nav-link-icon,
.nav-links li a.active .nav-link-icon {
    color: var(--cyan);
}
.nav-links li a.vip-link .nav-link-icon,
.nav-links li a.vip-link:hover .nav-link-icon {
    color: #1a1a1a;
}
.nav-overlay {
    display: none;
}
body.nav-open {
    overflow: hidden;
}
.nav-discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    border-radius: 30px;
    background: linear-gradient(135deg, #5865f2, #7983f5);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-decoration: none;
    box-shadow: 0 0 25px rgba(88, 101, 242, 0.4);
    transition: all var(--transition-spring);
}
.nav-discord-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 0 45px rgba(88, 101, 242, 0.7);
}
.nav-discord-btn i {
    font-size: 1.15rem;
}

/* ============================================================
   RESPONSIVE NAVBAR
   ============================================================ */
@media (max-width: 1240px) {
    .menu-toggle {
        display: flex;
    }

    .nav-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(4, 4, 10, 0.55);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.35s ease, visibility 0.35s;
        z-index: 9998;
    }
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        background: radial-gradient(circle at 20% 30%, #0f0f1a, #050508);
        padding: 100px 22px 30px;
        gap: 6px;
        transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), visibility 0.4s;
        z-index: 10000;
        border-right: none;
        box-shadow: none; /* Désactivé au repos pour ne pas déborder */
        visibility: hidden; /* Empêche tout débordement d'ombre ou d'interaction */
        overflow-y: auto;
        overflow-x: hidden;
        transform: translateX(-100%);
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.8); /* Activé uniquement à l'ouverture */
    }

    .nav-panel-header {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 14px;
        padding: 0 4px 6px 4px;
        flex-shrink: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }
    .nav-panel-header-text {
        font-family: 'Orbitron', sans-serif;
        font-size: 0.6rem;
        letter-spacing: 4px;
        color: rgba(255, 255, 255, 0.25);
        font-weight: 700;
        text-transform: uppercase;
        white-space: nowrap;
    }
    .nav-panel-header-line {
        flex: 1;
        height: 1px;
        background: rgba(255, 255, 255, 0.06);
    }

    .nav-links-group {
        display: flex;
        flex: 1;
        min-height: 0;
    }

    .nav-links-inner {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        gap: clamp(6px, 2vh, 14px);
        width: 100%;
        min-height: min-content;
        padding-top: 6px;
        max-height: 70vh;
    }
    .nav-links-inner > li {
        flex: none;
        display: flex;
        align-items: center;
        min-height: 44px;
    }

    .nav-links li a {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 16px;
        padding: 14px 20px;
        font-size: 1.1rem;
        font-weight: 500;
        border-radius: 10px;
        position: relative;
        color: var(--text);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    }
    .nav-links li a:hover {
        background: linear-gradient(90deg, rgba(0, 212, 255, 0.08), transparent);
        transform: translateX(6px);
        color: #fff;
    }

    /* style actif sans bordure */
    .nav-links li a.active {
        color: var(--cyan);
        font-weight: 600;
        background: none;
        /* pas de border-left */
        box-shadow: none;
        text-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
    }

    .nav-link-icon {
        width: 26px;
        font-size: 1.2rem;
        margin-right: 0;
        color: var(--text-muted);
        transition: color 0.3s ease;
    }
    .nav-links li a:hover .nav-link-icon,
    .nav-links li a.active .nav-link-icon {
        color: var(--cyan);
    }

    .nav-links .vip-link {
        background: linear-gradient(135deg, #b8860b, #f0c060, #b8860b) !important;
        color: #1a1a1a !important;
        font-weight: 700 !important;
        border-radius: 30px !important;
        box-shadow: 0 0 25px rgba(240, 192, 96, 0.3);
        padding: 14px 20px !important;
        border-bottom: none !important;
        animation: none !important;
    }
    .nav-links .vip-link:hover {
        transform: translateX(6px) scale(1.02) !important;
        box-shadow: 0 0 40px rgba(240, 192, 96, 0.6) !important;
    }
    .nav-links .vip-link .nav-link-icon {
        color: #1a1a1a !important;
    }

    .search-container {
        display: none;
    }
    .nav-mobile-search {
        display: block;
        margin-bottom: 24px;
        flex-shrink: 0;
    }
    .nav-discord {
        display: block;
        margin-top: auto;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        flex-shrink: 0;
    }
    .mobile-search-form {
        display: flex;
        align-items: center;
        height: 46px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        overflow: hidden;
        transition: border-color 0.3s ease;
    }
    .mobile-search-form:focus-within {
        border-color: var(--cyan);
    }
    .mobile-search-input {
        flex: 1 1 auto;
        min-width: 0;
        height: 100%;
        background: transparent;
        border: none;
        outline: none;
        color: var(--text);
        padding: 0 6px 0 18px;
        font-size: 0.95rem;
        font-family: 'Inter', sans-serif;
    }
    .mobile-search-input::placeholder {
        color: var(--text-muted);
        font-weight: 300;
    }
    .mobile-search-form button {
        flex-shrink: 0;
        width: 46px;
        height: 46px;
        border: none;
        background: transparent;
        color: var(--text);
        font-size: 1.05rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color 0.2s ease;
    }
    .mobile-search-form button:hover {
        color: #fff;
    }

    .navbar,
    .navbar.scrolled {
        padding: 14px 40px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        width: 280px;
        padding: 90px 22px 30px;   /* ajusté pour rester cohérent */
        gap: 4px;
    }
    .nav-links-inner {
        gap: clamp(5px, 1.8vh, 12px);
    }
    .nav-links li a {
        padding: 13px 16px;
        font-size: 1.12rem;
        border-radius: 12px;
    }
    .nav-link-icon {
        width: 22px;
        font-size: 1.06rem;
    }
    .nav-right {
        gap: 6px;
    }
    .user-dropdown {
        width: 260px;
        right: -10px;
    }
    .discord-login-btn-navbar {
        font-size: 0.85rem;
        padding: 0.65rem 0.8rem;
    }
    .navbar,
    .navbar.scrolled {
        padding: 10px 16px;
    }
    .navbar .logo {
        font-size: 1.4rem;
    }
    .user-toggle-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        border-radius: 21px;
    }
}

@media (max-width: 480px) {
    .navbar .logo {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    .navbar,
    .navbar.scrolled {
        padding: 10px 12px;
    }
    .nav-links {
        width: 260px;
        padding: 80px 16px 20px;   /* ajusté */
    }
    .nav-links-inner {
        gap: clamp(4px, 1.5vh, 10px);
    }
    .nav-links li a {
        padding: 12px 14px;
        font-size: 1rem;
        gap: 12px;
    }
    .nav-link-icon {
        width: 20px;
        font-size: 1rem;
    }
    .user-dropdown {
        width: 250px;
        right: -5px;
    }
    .user-dropdown::before {
        right: 10px;
    }
    .user-option {
        font-size: 0.88rem;
        padding: 0.65rem 1.2rem;
    }
    .discord-login-btn-navbar {
        font-size: 0.8rem;
        padding: 0.6rem 0.6rem;
        gap: 6px;
        margin: 0.4rem 0.75rem 0.3rem;
    }
}

@media (max-width: 380px) {
    .navbar,
    .navbar.scrolled {
        padding: 8px 10px;
    }
    .nav-links {
        width: 240px;
        padding: 70px 12px 16px;   /* ajusté */
    }
    .nav-links-inner {
        gap: clamp(3px, 1vh, 8px);
    }
    .user-dropdown {
        width: 235px;
    }
    .discord-login-btn-navbar {
        font-size: 0.75rem;
        padding: 0.55rem 0.4rem;
    }
}