/**
 * Menu Mobile Android - DESTINS CROISÉS
 * Menu qui slide depuis la droite, style moderne
 */

/* Header Desktop - visible uniquement sur desktop */
.header-desktop {
    display: block;
}

/* Header Mobile - caché sur desktop */
.header-mobile {
    display: none;
}

/* Menu Mobile Overlay - fond semi-transparent */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Panel du menu mobile - slide depuis la droite */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active .mobile-menu-panel {
    right: 0;
}

/* Header du menu mobile */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 25px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu-close-text {
    color: rgba(53, 42, 58, 0.7);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-menu-close-btn {
    background: transparent;
    border: 2px solid #671F2A;
    color: #671F2A;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 44px;
    height: 44px;
}

.mobile-menu-close-btn:hover {
    background: #671F2A;
    color: white;
    transform: rotate(90deg);
}

.mobile-menu-close-btn svg {
    width: 24px;
    height: 24px;
}

/* Navigation du menu mobile */
.mobile-menu-nav {
    flex: 1;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
}

.mobile-menu-item {
    display: block;
    padding: 20px 30px;
    color: rgba(53, 42, 58, 0.8);
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.mobile-menu-item:hover {
    color: #671F2A;
    background: rgba(103, 31, 42, 0.05);
    border-left-color: #CE9F5E;
    padding-left: 35px;
}

.mobile-menu-item.mobile-menu-active {
    color: #671F2A;
    background: rgba(103, 31, 42, 0.1);
    border-left-color: #671F2A;
    font-weight: 600;
}

.mobile-menu-item span {
    display: block;
}

/* Footer du menu mobile */
.mobile-menu-footer {
    padding: 30px 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.mobile-menu-cta {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #671F2A 0%, #CE9F5E 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(103, 31, 42, 0.3);
}

.mobile-menu-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(103, 31, 42, 0.4);
}

.mobile-menu-tagline {
    color: rgba(53, 42, 58, 0.6);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Header Mobile - barre du haut */
.header-mobile {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(215, 217, 240, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(195, 197, 223, 0.3);
    padding: 15px 0;
}

/* Header mobile sticky */
.header-mobile.header-sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(103, 31, 42, 0.15);
    border-bottom: 1px solid rgba(103, 31, 42, 0.1) !important;
    padding: 12px 0 !important;
    transition: all 0.3s ease;
    animation: slideDown 0.3s ease;
    z-index: 1001 !important;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-mobile.header-sticky .logo-img-mobile {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.header-mobile.header-sticky .mobile-menu-toggle {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.header-mobile-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.logo-mobile {
    display: flex;
    align-items: center;
}

.logo-img-mobile {
    width: 150px;
    height: auto;
}

.mobile-menu-toggle {
    background: transparent;
    border: 2px solid #671F2A;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    color: #671F2A;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #671F2A;
    color: white;
    transform: scale(1.05);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Responsive - Afficher/Masquer selon l'appareil */
@media (max-width: 991px) {
    /* Cacher header desktop sur mobile */
    .header-desktop {
        display: none !important;
    }
    
    /* Afficher header mobile sur mobile */
    .header-mobile {
        display: block !important;
    }
}

@media (min-width: 992px) {
    /* Cacher header mobile sur desktop */
    .header-mobile {
        display: none !important;
    }
    
    /* Afficher header desktop sur desktop */
    .header-desktop {
        display: block !important;
    }
}

/* Animation d'entrée pour les items du menu */
.mobile-menu-item {
    opacity: 0;
    transform: translateX(20px);
    animation: slideInMenuItem 0.4s ease forwards;
}

.mobile-menu-item:nth-child(1) {
    animation-delay: 0.1s;
}

.mobile-menu-item:nth-child(2) {
    animation-delay: 0.15s;
}

.mobile-menu-item:nth-child(3) {
    animation-delay: 0.2s;
}

.mobile-menu-item:nth-child(4) {
    animation-delay: 0.25s;
}

@keyframes slideInMenuItem {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Empêcher le scroll du body quand le menu est ouvert */
body.menu-open {
    overflow: hidden;
}
