/* ==========================================================================
   BEN'S LINE DANCE — BOTTOM NAV
   ========================================================================== */

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;

    padding:
        8px
        max(12px, env(safe-area-inset-right))
        calc(8px + env(safe-area-inset-bottom))
        max(12px, env(safe-area-inset-left));

    background: rgba(250, 248, 244, 0.96);

    border-top: 1px solid rgba(90, 70, 52, 0.12);

    box-shadow:
        0 -8px 25px rgba(45, 35, 25, 0.08);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}


/* ==========================================================================
   CONTENEUR
   ========================================================================== */

.bottom-nav-inner {
    width: 100%;
    max-width: 700px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(5, 1fr);

    align-items: center;
}


/* ==========================================================================
   ITEM
   ========================================================================== */

.bottom-nav-item {
    position: relative;

    min-height: 58px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    color: #5A4634;

    text-decoration: none;

    border-radius: 14px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


/* ==========================================================================
   ICÔNE
   ========================================================================== */

.bottom-nav-icon {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;

    color: #6F8A6A;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


/* ==========================================================================
   TEXTE
   ========================================================================== */

.bottom-nav-label {
    font-size: 10px;
    font-weight: 700;

    line-height: 1;

    white-space: nowrap;

    color: #5A4634;
}


/* ==========================================================================
   HOVER
   ========================================================================== */

.bottom-nav-item:hover {
    background: rgba(111, 138, 106, 0.08);

    color: #5C7358;
}

.bottom-nav-item:hover .bottom-nav-icon {
    color: #5C7358;

    transform: translateY(-2px);
}


/* ==========================================================================
   PAGE ACTIVE
   ========================================================================== */

.bottom-nav-item.active {
    color: #5C7358;
}

.bottom-nav-item.active .bottom-nav-icon {
    color: #5C7358;

    transform: translateY(-2px);
}

.bottom-nav-item.active .bottom-nav-label {
    color: #5C7358;
}


/* Petit indicateur sous l'élément actif */

.bottom-nav-item.active::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 2px;

    width: 5px;
    height: 5px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: #6F8A6A;
}


/* ==========================================================================
   APPUI MOBILE
   ========================================================================== */

.bottom-nav-item:active {
    transform: scale(0.96);
}


/* ==========================================================================
   TABLETTE / DESKTOP
   ========================================================================== */

@media (min-width: 768px) {

    .bottom-nav {
        max-width: 620px;

        left: 50%;
        right: auto;
        bottom: 18px;

        transform: translateX(-50%);

        padding: 8px;

        border: 1px solid rgba(90, 70, 52, 0.12);

        border-radius: 22px;

        box-shadow:
            0 12px 35px rgba(45, 35, 25, 0.14);
    }

    .bottom-nav-inner {
        max-width: none;
    }

    .bottom-nav-item {
        min-height: 54px;
    }
}


/* ==========================================================================
   TRÈS PETITS ÉCRANS
   ========================================================================== */

@media (max-width: 380px) {

    .bottom-nav {
        padding-left: 6px;
        padding-right: 6px;
    }

    .bottom-nav-item {
        min-height: 56px;
    }

    .bottom-nav-label {
        font-size: 9px;
    }

    .bottom-nav-icon {
        font-size: 18px;
    }
}