/*
 * Mobile fixes for the public corpo_v2 layout (theme lvdpv2).
 * Loaded as a separate <link media="(max-width: 991.98px)"> by templates/layout/corpo_v2.php,
 * kept out of the theme's Minify bundle so desktop stays byte-for-byte unchanged.
 * Every rule below MUST stay inside the two @media blocks: desktop (>= 992px) must not change.
 */

@media (max-width: 991.98px)
{
    /* Z1 - menu and header */
    #pq-main-menu > li.menu-item > a
    {
        display: block;
        padding-top: 12px;
        padding-bottom: 12px;
        min-height: 44px;
    }

    .pq-menu-contain .navbar-nav .menu-item a::before
    {
        display: none;
    }

    header .pq-header-right .pq-login-link
    {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    /* Z2 - overflowing grids and WYSIWYG content */
    .pq-designer-content-aboutus-section-wrapper,
    .pq-designer-page-2-wrapper
    {
        grid-template-columns: minmax(0, 1fr);
    }

    .pq-designer-info-box-detail,
    .pq-title-description,
    .pq-event-content,
    .pq-event-description,
    .pq-single-page-left-div,
    .pq-project-info-box-details p
    {
        overflow-wrap: anywhere;
    }

    .container img
    {
        max-width: 100%;
    }

    /* Z3 - gutter */
    .container .row.g-5
    {
        --bs-gutter-x: 1.5rem;
    }

    /* Z4 - home/agenda event cards */
    .pq-tab-event-box .pq-event-thumb
    {
        padding-top: 40px;
    }

    .pq-tabs-section-page-2 .pq-tab-event-box .pq-event-thumb .pq-event-catagory
    {
        top: 0;
        left: 0;
    }

    /* Z5 - agenda filters */
    #pills-tab
    {
        flex-wrap: wrap;
        gap: 8px;
    }

    #pills-tab > .nav-item
    {
        padding-top: 0;
    }

    #pills-tab > .nav-item > .nav-link
    {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 16px;
    }

    #pills-tab > .nav-item.ms-auto
    {
        flex: 1 1 100%;
        margin-left: 0 !important;
    }

    /* Z6 - public forms */
    .pq-event-details-page-section .pq-single-page-right-div
    {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Z7 - directory */
    #map-groupes
    {
        min-height: 300px !important;
    }

    /* Z8 - member card / group page */
    .pq-breadcrumb-title > img.rounded-circle
    {
        display: block;
        margin: 0 auto 12px !important;
    }

    .pq-project-info-box-details-wrapper .pq-project-info-box-details .pq-details-title
    {
        flex: 0 0 auto;
        width: auto;
        min-width: 90px;
        margin-right: 12px;
        white-space: nowrap;
    }

    .pq-project-info-box-details-wrapper .pq-project-info-box-details p
    {
        min-width: 0;
    }

    .container .row.g-5 > [class*="col-"] > a
    {
        display: block;
        padding: 8px 0;
        min-height: 40px;
    }

    .pq-single-page-left-div a.text-decoration-none,
    .pq-project-details-page a.text-decoration-none,
    .pq-project-info-box-details p a
    {
        display: inline-block;
        padding: 8px 0;
    }

    /* Z9 - footer */
    .pq-footer-page-2 .list-inline-item > a
    {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    .mid-footer-about-list ul li
    {
        margin-bottom: 4px;
    }

    .mid-footer-about-list ul li a
    {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .footer-pq-right-btn .pq-right-button
    {
        min-width: 44px;
        min-height: 44px;
    }

    .pq-bottom-footer a
    {
        display: inline-block;
        padding: 10px 4px;
    }

    .pq-bottom-footer p,
    .pq-bottom-footer a,
    .pq-bottom-footer span
    {
        color: #fff;
    }

    /* Z10 - "PARAMETRES DES COOKIES" button */
    #BtnCookie
    {
        position: static !important;
        display: block;
        width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 44px;
    }
}

@media (max-width: 419.98px)
{
    /* Z11 - hCaptcha */
    .h-captcha
    {
        zoom: 0.9;
    }
}
