/* Styles pour la barre d'onglets mobile */
.mobile-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #141414;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999; /* Valeur z-index très élevée pour s'assurer qu'elle est au-dessus de tout */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    height: 60px; /* Hauteur fixe pour la tab bar */
    display: flex;
    align-items: center;
}

.mobile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.7rem;
    padding: 5px 0;
    transition: all 0.3s ease;
    flex: 1;
}

.tab-item i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.tab-item.active {
    color: #e50914;
}

.tab-item:hover, .tab-item:focus {
    color: #ffffff;
    text-decoration: none;
}

/* Ajustement du padding pour le contenu principal afin d'éviter que la tab bar ne cache le contenu */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 70px !important;
    }
    
    .main-wrapper {
        padding-bottom: 60px !important;
    }
    
    .footer-wrapper {
        margin-bottom: 60px !important;
    }
    
    /* Animation pour les onglets */
    .tab-item {
        position: relative;
        overflow: hidden;
    }
    
    .tab-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: #e50914;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .tab-item.active::after {
        width: 40%;
    }
    
    .tab-item:active {
        transform: scale(0.95);
    }
}
