/* ========================================
   BOUTON HAMBURGER
======================================== */
.btn-hamburger {
    display: none;
    background: #fec341;
    border: none;
    border-radius: 6px;
    padding: 7px 9px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.btn-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s;
}
.btn-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);  
}
.btn-hamburger.open span:nth-child(2) {
    opacity: 0;
}
.btn-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ========================================
   OVERLAY
======================================== */
.drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1998;
}
.drawer-overlay.active {
    display: block;
}


/* ========================================
   DRAWER PANNEAU
======================================== */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    visibility: hidden;
    transition: left 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.mobile-drawer.open {
    left: 0;
    visibility: visible;
}


/* ========================================
   DRAWER HEADER
======================================== */
.drawer-head {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}
.drawer-head-title {
    color: #fec341;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.drawer-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.drawer-close:hover {
    background: #fec341;
    color: #2c3e50;
}


/* ========================================
   DRAWER SECTIONS
======================================== */
.drawer-section {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}
.drawer-section-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}


/* ========================================
   SECTION COMPTE
======================================== */
.drawer-account {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #fec341 !important;
}
.drawer-user-info {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.drawer-user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fec341 0%, #e5af2b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.drawer-user-avatar i {
    font-size: 28px;
    color: #2c3e50;
}
.drawer-user-welcome {
    font-size: 11px;
    color: #999;
}
.drawer-user-name {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}
.drawer-account-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.drawer-account-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
}
.drawer-account-links a:hover {
    background: #fff;
    color: #c60013;
    padding-left: 18px;
}
.drawer-account-links a i {
    font-size: 15px;
    color: #fec341;
    width: 20px;
}
.drawer-logout {
    color: #c60013 !important;
    margin-top: 6px;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 10px !important;
}
.drawer-logout i {
    color: #c60013 !important;
}


/* ========================================
   COMPTE NON CONNECTÉ DANS DRAWER
======================================== */
.drawer-guest-account {
    padding: 10px 0;
}

.drawer-guest-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(254, 195, 65, 0.1);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.drawer-guest-link:hover {
    background: rgba(254, 195, 65, 0.2);
    transform: translateX(5px);
}

.drawer-guest-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fec341 0%, #e5af2b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.drawer-guest-avatar i {
    font-size: 28px;
    color: #2c3e50;
}

.drawer-guest-text {
    flex: 1;
}

.drawer-guest-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2px;
}

.drawer-guest-subtitle {
    font-size: 12px;
    color: #999;
}


/* ========================================
   SECTION LANGUES
======================================== */
.drawer-lang-btns {
    display: flex;
    gap: 8px;
}

.drawer-lang-btn {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    color: #2c3e50;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}
.drawer-lang-btn.active {
    background: #fec341;
    border-color: #fec341;
    color: #2c3e50;
}
.drawer-lang-btn:hover:not(.active) {
    background: #f8f9fa;
    border-color: #fec341;
}


/* ========================================
   BARRE DE RECHERCHE DANS DRAWER
======================================== */
.drawer-search-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.drawer-search-box input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    background: #fff;
    color: #2c3e50;
}

.drawer-search-box input:focus {
    border-color: #fec341;
    box-shadow: 0 0 0 3px rgba(254, 195, 65, 0.1);
}

.drawer-search-box input::placeholder {
    color: #999;
}

.drawer-search-box select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #2c3e50;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
}

.drawer-search-box select:focus {
    border-color: #fec341;
    box-shadow: 0 0 0 3px rgba(254, 195, 65, 0.1);
}

.drawer-search-box button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #fec341 0%, #e5af2b 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.drawer-search-box button:hover {
    background: linear-gradient(135deg, #e5af2b 0%, #d19b25 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 195, 65, 0.3);
}

.drawer-search-box button:active {
    transform: translateY(0);
}

.drawer-search-box button i {
    font-size: 18px;
    color: #2c3e50;
}


/* ========================================
   NAVIGATION DRAWER
======================================== */
.drawer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.drawer-menu-list > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    transition: all 0.3s;
}
.drawer-menu-list > li > a:hover {
    color: #c60013;
    padding-left: 8px;
}
.drawer-menu-list > li > a i {
    color: #ccc;
    font-size: 11px;
    transition: transform 0.3s;
}


/* ========================================
   SOUS-MENUS DRAWER
======================================== */
.drawer-submenu {
    display: none !important;
    list-style: none;
    padding: 8px 0 8px 16px;
    margin: 0;
    background: #f8f9fa;
    border-left: 3px solid #fec341;
}
.drawer-submenu.open {
    display: block !important;
}
.drawer-submenu li {
    list-style: none;
}
.drawer-submenu li a {
    display: block;
    padding: 10px 12px;
    color: #555;
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}
.drawer-submenu li a:hover {
    color: #c60013;
    padding-left: 16px;
}


/* ========================================
   RESPONSIVE MOBILE (< 768px)
======================================== */
@media (max-width: 768px) {
    
    /* Hamburger visible */
    .btn-hamburger {
        display: flex !important;
    }

    /* Cacher desktop only */
    .desktop-only {
        display: none !important;
    }

    /* Menu principal caché */
    .main-nav {
        display: none !important;
    }
    
    /* Recherche visible dans le drawer */
    .drawer-search-box {
        display: flex !important;
    }
}


/* ========================================
   RESPONSIVE DESKTOP (>= 769px)
======================================== */
@media (min-width: 769px) {
    
    /* Hamburger caché */
    .btn-hamburger {
        display: none !important;
    }

    /* Drawer caché */
    .mobile-drawer {
        left: -320px !important;
        visibility: hidden !important;
    }

    .drawer-overlay {
        display: none !important;
    }
    
    /* Recherche dans drawer cachée sur desktop */
    .drawer-search-box {
        display: none !important;
    }
}


/* Style pour icône user non connecté */
.drawer-user-info a.drawer-user-avatar {
    text-decoration: none;
    transition: transform 0.3s;
}

.drawer-user-info a.drawer-user-avatar:hover {
    transform: scale(1.1);
}


