/* ==========================================================================
   DESIGN DE LA NAVBAR PANEL (SUR ORDINATEUR)
   ========================================================================== */
.navbar-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 4%;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.nav-left-group-panel {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-panel a {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #111111;
    text-decoration: none;
}

.logo-panel span {
    color: #2ed573;
}

.link-back-site-panel {
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
    text-decoration: none;
    font-weight: 500 !important;
    transition: color 0.2s;
}

.link-back-site-panel:hover {
    color: #4a51ff !important;
}

.nav-links-panel {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links-panel a {
    font-size: 14px;
    font-weight: 700;
    color: #626262;
    text-decoration: none;
    transition: all 0.25s ease;
}

.nav-links-panel a:hover, 
.nav-links-panel a.active {
    color: #111111;
}

.btn-logout-panel-item {
    background: #ff4757;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-logout-panel-item:hover {
    opacity: 0.9;
}

.mobile-only-link {
    display: none;
}

/* --- Burger Menu Isolé --- */
.burger-menu-panel {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 19px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
    padding: 0;
}

.burger-menu-panel .bar-panel {
    height: 3px;
    width: 100%;
    background-color: #111111;
    border-radius: 5px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESPONSIVE MOBILE MODERNE : PLEIN ÉCRAN FLOU & CENTRAGE ABSOLU
   ========================================================================== */
@media screen and (max-width: 768px) {
    body.panel-menu-open {
        overflow: hidden;
    }

    .link-back-site-panel {
        display: none; /* Masqué à gauche sur mobile */
    }

    .mobile-only-link {
        display: block;
    }

    .burger-menu-panel {
        display: flex;
    }

    .nav-menu-panel {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Centrage vertical total */
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        
        /* Animation fluide latérale (droite -> gauche) */
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.45s cubic-bezier(0.6, 0.05, 0.1, 1), 
                    opacity 0.35s ease, 
                    visibility 0.45s;
        z-index: 1005;
    }

    .nav-menu-panel.open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links-panel {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        width: 100%;
        text-align: center;
    }

    .nav-links-panel li {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        
        /* Effet en cascade à l'ouverture */
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .nav-menu-panel.open .nav-links-panel li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu-panel.open .nav-links-panel li:nth-child(1) { transition-delay: 0.10s; }
    .nav-menu-panel.open .nav-links-panel li:nth-child(2) { transition-delay: 0.18s; }
    .nav-menu-panel.open .nav-links-panel li:nth-child(3) { transition-delay: 0.26s; }
    .nav-menu-panel.open .nav-links-panel li:nth-child(4) { transition-delay: 0.34s; }
    .nav-menu-panel.open .nav-links-panel li:nth-child(5) { transition-delay: 0.42s; }

    .nav-links-panel li a {
        font-size: 24px; /* Rendu épuré et lisible */
        font-weight: 700;
        color: #4a4a4a;
        padding: 6px 16px;
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

    .nav-links-panel li a.active {
        color: #111111;
    }

    .nav-links-panel li a:active {
        color: #2ed573;
        transform: scale(0.96);
    }

    /* Style du bouton déconnexion centré sur mobile */
    .btn-logout-panel-item {
        width: 200px;
        justify-content: center;
        padding: 14px 0;
        border-radius: 12px;
        font-size: 16px;
        margin-top: 10px;
        box-shadow: 0 4px 12px rgba(255, 71, 87, 0.2);
    }

    /* Animation du bouton burger en Croix (X) */
    .burger-menu-panel.active .bar-panel:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu-panel.active .bar-panel:nth-child(2) {
        opacity: 0;
    }
    .burger-menu-panel.active .bar-panel:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}