/* -----------------------------------------------------------
   MENU MOBILE BAS — SENTRAVAIL
   Optimisé + bouton + vert (#00853F)
----------------------------------------------------------- */

/* Fix iOS safe area + bloquer le rebond */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overscroll-behavior-y: contain;
}

/* Conteneur du menu mobile */
.sentravail-mobile-menu {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;

    display: flex;
    justify-content: space-around;
    align-items: center;

    padding: 12px 0;
    padding-bottom: env(safe-area-inset-bottom);
    padding-bottom: constant(safe-area-inset-bottom);

    z-index: 9999;
    transform: translateZ(0);

    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}

/* Masquer sur desktop */
@media (min-width: 768px) {
    .sentravail-mobile-menu {
        display: none;
    }
}

/* Boutons du menu */
.mbm-item {
    flex: 1;
    text-decoration: none;
    color: #444;
    font-size: 13px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mbm-icon {
    font-size: 20px;
    line-height: 1;
}

.mbm-label {
    font-size: 11px;
    white-space: nowrap;
}

/* Bloc central (bouton +) */
.mbm-add-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* BOUTON + EN VERT (#00853F) */
.mbm-add-btn {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);

    width: 64px;
    height: 64px;
    background: #00853F;         /* VERT DU SÉNÉGAL */
    color: white;
    font-size: 32px;
    font-weight: bold;

    border-radius: 50%;
    text-decoration: none;

    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    z-index: 10000;
}

/* TEXTE SOUS LE + EN VERT AUSSI */
.mbm-add-text {
    margin-top: 36px;
    font-size: 12px;
    color: #00853F;     /* VERT DU SÉNÉGAL */
    font-weight: 600;
}

/* Fix Safari iOS */
@supports (-webkit-touch-callout: none) {
    .sentravail-mobile-menu {
        will-change: transform;
    }
}

/* Éviter que le contenu soit caché par le menu */
body.sentravail-has-mobile-menu {
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
}
