.navbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    height: calc(var(--jm-navbar-h) + var(--jm-safe-bottom));
    padding-bottom: var(--jm-safe-bottom);
    display: grid;
    grid-template-columns: 1fr 1fr 76px 1fr 1fr;
    align-items: center;
    background: var(--jm-surface);
    border-top: 1px solid var(--jm-border);
    box-shadow: 0 -4px 20px rgba(10, 37, 64, .08);
    overflow: visible;            /* laisse le logo déborder vers le haut */
}

.navbar__item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    padding: 6px 2px;
    min-width: 0;                 /* autorise le rétrécissement (anti-débordement label) */
    color: var(--jm-text-muted);
    font-size: .62rem; font-weight: 600;
    text-decoration: none;
    transition: color .15s ease, transform .06s ease;
}
.navbar__item svg { width: 24px; height: 24px; }
.navbar__item span {
    line-height: 1; max-width: 100%; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.navbar__item:active { transform: translateY(1px); }
.navbar__item.is-active { color: var(--jm-red); }
.navbar__item:hover { text-decoration: none; }

/* placement explicite : indépendant de l'ordre DOM et du logo */
.navbar__item--1 { grid-column: 1; }
.navbar__item--2 { grid-column: 2; }
.navbar__item--3 { grid-column: 4; }
.navbar__item--4 { grid-column: 5; }

/* Logo central flottant, centré sur toute la largeur de la navbar */
.navbar__logo {
    position: absolute;
    left: 50%;
    bottom: calc(var(--jm-safe-bottom) + 6px);
    transform: translateX(-50%);
    width: 68px; height: 68px;        /* ← agrandi (était 58) */
    display: grid; place-items: center;
    background: var(--jm-surface);
    border-radius: 50%;
    border: 1px solid var(--jm-border);
    box-shadow: 0 6px 18px rgba(10, 37, 64, .18);
    transition: transform .12s ease;
    z-index: 901;
}
.navbar__logo:active { transform: translateX(-50%) scale(.94); }
.navbar__logo img { width: 50px; height: 50px; object-fit: contain; }  /* ← agrandi (était 42) */