/**
 * HEADER MOBILE ONLY - L'INDIEN DE PORQUEROLLES
 * Navigation mobile UNIQUEMENT, sans affecter le desktop
 */

/* ========================
   BOUTON MENU MOBILE UNIQUEMENT
   ======================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #FFFFFF;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================
   MENU MOBILE
   ======================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    z-index: 10000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-menu-header img {
    height: 40px;
}

.mobile-menu-close {
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.mobile-menu-close:hover {
    color: #1e3c72;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.mobile-menu-list li {
    margin: 10px 0;
}

.mobile-menu-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-list li a:hover {
    background: #f0f4f8;
    color: #1e3c72;
}

.mobile-menu-list li a i {
    width: 20px;
    color: #1e3c72;
}

/* ========================
   OVERLAY MOBILE
   ======================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================
   RESPONSIVE UNIQUEMENT MOBILE
   ======================== */

/* Tablet et mobile SEULEMENT */
@media (max-width: 991px) {
    .header-navbar-list {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
}

/* Mobile breakpoint - affichage du menu burger */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        order: 1;
        padding: 10px;
        z-index: 1010;
    }
}

/* Mobile small */
@media (max-width: 767px) {
    .mobile-menu {
        width: 85%;
    }
}

/* Mobile very small */
@media (max-width: 479px) {
    .mobile-menu {
        width: 90%;
    }
}
