/* =========================================================
   FRONTEND – OnlyF1 Mobile Bottom Menu
   ========================================================= */

.onlyf1-mmb {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: stretch;
    width: 100%;
    /* hauteur, background, border-radius, box-shadow, z-index
	   sont injectés en inline CSS via PHP */
}

.onlyf1-mmb__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    position: relative;
    padding: 6px 2px 4px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    /* color, transition injectés via PHP */
}

.onlyf1-mmb__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    /* width/height du svg injectés via PHP */
}

.onlyf1-mmb__icon svg {
    display: block;
    /* width/height injectés via PHP */
}

.onlyf1-mmb__label {
    display: block;
    line-height: 1;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    /* font-size injecté via PHP */
}

/* Ajout d'espace en bas du contenu principal pour ne pas être caché par le menu */
body.has-mmb {
    padding-bottom: var(--mmb-height, 64px);
}