.navbar-light .navbar-brand.brand {
    color: rgba(0, 0, 0, .85);
    position: relative;
    top: 3px;
}

.nav-link.selected {
    position: relative;
    display: inline-block;
}

.nav-link.selected::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px; /* épaisseur du soulignement */
    background-color: #8a2be2; /* couleur mauve du h1 */
    border-radius: 1px;
}

/* Enlarge tap targets ONLY on mobile/tablet (below lg) */
@media (max-width: 991.98px) {
    /* All nav links in the collapsed menu */
    .navbar .nav-link {
        padding: 0.9rem 1rem;        /* ~45px tall */
        font-size: 1.05rem;          /* slightly larger text */
        line-height: 1.2;
        min-height: 44px;            /* WCAG touch size */
    }

    /* Dropdown items (when logged in) */
    .navbar .dropdown-menu .dropdown-item {
        padding: 0.9rem 1rem;
        font-size: 1.05rem;
        min-height: 44px;
    }

    /* Make the toggler easier to hit */
    .navbar-toggler {
        padding: 0.65rem 0.95rem;
    }

    /* Cart/icon sizes inside mobile list */
    #cart-icon img {
        width: 28px;
        height: 28px;
    }

    /* Language flags inside the mobile list items */
    .navbar .flag-icon {
        font-size: 1.25rem;
        vertical-align: -2px;
        margin-left: .5rem; /* replace pl-2 for BS5 */
    }

    /* Optional: subtle separators between stacked items */
    .navbar-nav.d-lg-none .nav-item + .nav-item {
        border-top: 1px solid rgba(0,0,0,.06);
    }

    /* Reduce accidental taps by giving the right block space if ever visible */
    .navbar .btn.btn-link {
        padding: 0.75rem 0.9rem;
        min-height: 44px;
    }
}

/* Fix for Bootstrap 5 spacing utilities where needed */
@supports (padding: max(0px)) {
    .pl-2 { padding-left: .5rem !important; }  /* if you still use pl-2 in template */
    .pr-2 { padding-right: .5rem !important; }
}

/* Never show popunder on collapsed navbar screens */
@media (max-width: 991.98px) {
    #cart-popunder { display: none !important; }
}



