/*
 * MENU MOBILE REDESIGN - INOVATIO v3.2
 * Style moderne inspiré BBDO + Interbrand
 * - Burger 2 lignes épaisses (style Interbrand)
 * - Menu ouvert style BBDO (texte grand, gras, aligné gauche)
 * - Ligne horizontale + icônes réseaux sociaux
 */

/* ===== BURGER ICON REDESIGN (Style Interbrand) ===== */
.navbar-toggler {
    padding: 0.5rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: relative;
    width: 40px;
    height: 32px;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none !important;
}

/* Nouveau burger à 2 lignes épaisses */
.navbar-toggler-icon {
    background-image: none !important;
    position: relative;
    width: 30px;
    height: 20px;
    display: block;
    margin: 0;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px; /* Lignes épaisses */
    background-color: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
    top: 2px;
}

.navbar-toggler-icon::after {
    bottom: 2px;
}

/* Animation burger vers X */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    bottom: 8px;
}

/* ===== MENU MOBILE OUVERT (Style BBDO) ===== */
@media (max-width: 991.98px) {
    
    /* Container du menu mobile */
    .navbar-collapse {
        background: white;
        border-top: 1px solid #e9ecef;
        margin-top: 1rem;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.1);
        padding: 0;
        overflow: hidden;
    }
    
    /* Navigation principale */
    .navbar-nav {
        padding: 1.5rem 0 1rem 0 !important;
        text-align: left !important;
        margin: 0;
        align-items: flex-start !important; /* Force l'alignement à gauche */
    }
    
    /* Liens de navigation - Style BBDO */
    .navbar-nav .nav-item:not(.nav-icons) {
        width: 100% !important;
        text-align: left !important;
    }
    
    .navbar-nav .nav-item:not(.nav-icons) .nav-link {
        font-size: 1.5rem !important; /* Plus grand */
        font-weight: 700 !important; /* Plus gras */
        padding: 1rem 2rem !important; /* Plus d'espace */
        margin: 0 !important;
        text-align: left !important;
        display: block !important;
        width: 100% !important;
        color: #2c3e50 !important;
        border-bottom: none;
        transition: all 0.2s ease;
    }
    
    /* Hover sur les liens */
    .navbar-nav .nav-item:not(.nav-icons) .nav-link:hover {
        background-color: rgba(27, 58, 111, 0.05);
        color: #1B3A6F !important;
        transform: translateX(8px);
    }
    
    /* Active state */
    .navbar-nav .nav-item:not(.nav-icons) .nav-link.active {
        color: #1B3A6F !important;
        background-color: rgba(27, 58, 111, 0.1);
    }
    
    /* Suppression de l'underline mobile */
    .navbar-nav .nav-link::after {
        display: none !important;
    }
    
    /* ===== SECTION ICÔNES ===== */
    
    /* Ligne de séparation horizontale */
    .mobile-separator {
        height: 1px;
        background-color: #2c3e50;
        margin: 1rem 2rem;
        opacity: 0.8;
    }
    
    /* Container des icônes */
    .nav-icons-container {
        padding: 1rem 2rem 1.5rem 2rem;
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }
    
    /* Icônes fonctionnelles (enveloppe, loupe) */
    .nav-icons-container .nav-icon {
        font-size: 1.3rem !important;
        padding: 0.75rem !important;
        margin: 0 !important;
        color: #2c3e50 !important;
        background-color: rgba(27, 58, 111, 0.08);
        border-radius: 50%;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }
    
    .nav-icons-container .nav-icon:hover {
        background-color: #1B3A6F;
        color: white !important;
        transform: scale(1.1);
    }
    
    /* ===== ICÔNES RÉSEAUX SOCIAUX ===== */
    .social-icons {
        display: flex;
        gap: 1rem;
        margin-left: auto;
    }
    
    .social-icon {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background-color: rgba(27, 58, 111, 0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #2c3e50;
        text-decoration: none;
        font-size: 1.1rem;
        transition: all 0.2s ease;
    }
    
    .social-icon:hover {
        background-color: #1B3A6F;
        color: white;
        transform: scale(1.1);
    }
    
    /* Couleurs spécifiques réseaux sociaux */
    .social-icon.instagram:hover {
        background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    }
    
    .social-icon.youtube:hover {
        background-color: #FF0000;
    }
}

/* ===== MASQUER LES ICÔNES DE LA NAVBAR NORMALE SUR MOBILE ===== */
@media (max-width: 991.98px) {
    .navbar-nav .nav-item .nav-icon:not(.mobile-icon) {
        display: none !important;
    }
}

/* ===== VERSION DESKTOP (inchangée) ===== */
@media (min-width: 992px) {
    .mobile-separator,
    .nav-icons-container,
    .social-icons {
        display: none !important;
    }
}
