/* FIX MOBILE POUR PAGE AGENCES */
@media (max-width: 968px) {
    /* Sections avec fond fixe */
    #why-join,
    #how-it-works {
        background-attachment: scroll !important;
        background-size: 100% auto !important;
        background-position: center top !important;
        position: relative !important;
    }
    
    /* Pseudo-élément pour l'effet parallax sur Safari iOS */
    #why-join::before,
    #how-it-works::before {
        content: '' !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url(/static/client/images/contact-bg.png) center/cover no-repeat !important;
        z-index: -1 !important;
        will-change: transform !important;
    }
    
    /* Blocs glassmorphism */
    .feature-block {
        background: rgba(255, 255, 255, 0.12) !important;
        backdrop-filter: blur(40px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    /* Textes blancs sur mobile */
    #why-join h2,
    #why-join h3,
    #why-join h4,
    #why-join p,
    #how-it-works h2,
    #how-it-works h3,
    #how-it-works h4,
    #how-it-works p {
        color: #ffffff !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
    }
}

/* FIX: Retirer le background inline des sections sur mobile */
@media (max-width: 968px) {
    #why-join[style],
    #how-it-works[style] {
        background: none !important;
    }
}

/* MENU MOBILE TRANSPARENT COMME LA LANDING */
@media (max-width: 968px) {
    /* Overlay transparent */
    .mobile-menu-overlay {
        background: rgba(0, 0, 0, 0.3) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }
    
    /* Menu content glassmorphism */
    .mobile-menu-content {
        background: rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(40px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    /* Liens du menu en blanc */
    .mobile-menu-content a {
        color: #ffffff !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    }
}

    }
}

/* CROIX DE FERMETURE CORRECTE */
.mobile-menu-close {
    position: fixed !important;
    top: 25px !important;
    right: 25px !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 300 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    z-index: 10001 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.35) !important;
    transform: rotate(90deg) !important;
}
