/* ==========================================================================
   DESIGN DE LA NAVBAR ADMIN (SUR ORDINATEUR)
   ========================================================================== */
.navbar-admin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 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-admin {
    display: flex;
    align-items: center;
}

.logo-admin a {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #111111;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-admin a i {
    color: #ff4757;
    font-size: 26px;
}

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

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

.nav-links-admin a, .dropdown-trigger-admin {
    font-size: 14px;
    font-weight: 700;
    color: #626262;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.nav-links-admin a:hover, 
.nav-links-admin a.active,
.dropdown-trigger-admin:hover,
.dropdown-trigger-admin.active {
    color: #111111;
}

.nav-links-admin a i, .dropdown-trigger-admin i {
    font-size: 18px;
}

.nav-links-admin a.active i,
.dropdown-trigger-admin.active i {
    color: #ff4757;
}

/* --- Menu Déroulant (Dropdown) sur Ordinateur --- */
.dropdown-admin {
    position: relative;
}

.arrow-icon-admin {
    font-size: 14px !important;
    transition: transform 0.25s ease;
}

.dropdown-admin:hover .arrow-icon-admin {
    transform: rotate(180deg);
}

.dropdown-menu-admin {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #ffffff;
    min-width: 260px;
    border-radius: 12px;
    padding: 10px 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-admin:hover .dropdown-menu-admin {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-arrow-admin {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.dropdown-menu-admin ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu-admin ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-weight: 600;
    color: #626262;
    font-size: 13px;
}

.dropdown-menu-admin ul li a:hover,
.dropdown-menu-admin ul li a.active {
    background-color: rgba(0, 0, 0, 0.02);
    color: #111111;
}

/* Style du bouton déconnexion admin sur PC */
.btn-logout-admin-item {
    background: #ff4757;
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.15);
}

.btn-logout-admin-item:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

/* --- Burger Menu Isolé Admin --- */
.burger-menu-admin {
    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-admin .bar-admin {
    height: 3px;
    width: 100%;
    background-color: #111111;
    border-radius: 5px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

    .nav-menu-admin {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        
        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-admin.open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

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

    .nav-links-admin li {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

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

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

    .nav-links-admin li a, .dropdown-trigger-admin {
        font-size: 24px;
        font-weight: 700;
        color: #4a4a4a;
        padding: 6px 16px;
    }

    /* --- Adaptations Menu Déroulant sur Admin Mobile --- */
    .dropdown-menu-admin {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding: 0 !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        width: 100%;
    }

    .dropdown-admin.mobile-active .dropdown-menu-admin {
        max-height: 200px; 
        margin-top: 10px;
    }

    .dropdown-admin.mobile-active .arrow-icon-admin {
        transform: rotate(180deg);
    }

    .dropdown-arrow-admin {
        display: none;
    }

    .dropdown-menu-admin ul li a {
        font-size: 17px;
        color: #626262;
        justify-content: center;
        padding: 10px 0;
    }

    /* Déconnexion Mobile */
    .btn-logout-admin-item {
        width: 240px;
        justify-content: center;
        padding: 14px 0;
        border-radius: 12px;
        font-size: 16px;
        margin-top: 10px;
        box-shadow: 0 4px 14px rgba(255, 71, 87, 0.2);
    }

    .burger-menu-admin.active .bar-admin:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .burger-menu-admin.active .bar-admin:nth-child(2) { opacity: 0; }
    .burger-menu-admin.active .bar-admin:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}