/* Logo GoMyRoof : source HD conseillee 480 x 180 px */
.header-bottom .navbar-brand .logo {
    width: auto !important;
    height: auto !important;
    max-width: 160px !important;
    max-height: 60px !important;
}

/* Logo mobile */
@media (max-width: 768px) {
    /* Google Traduction peut injecter des wrappers et augmenter leur largeur
       intrinseque. Le document reste strictement borne au viewport mobile. */
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
        overscroll-behavior-x: none;
    }

    .header-bottom .navbar-brand .logo {
        max-width: 150px !important;
        max-height: 55px !important;
    }

    /* Le header reste sur une seule ligne, meme lorsque la barre de traduction
       de Google modifie temporairement la largeur visuelle du navigateur. */
    .header-bottom__row {
        flex-wrap: nowrap !important;
        min-width: 0;
    }

    .header-bottom__row > .logo {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0;
        overflow: hidden;
    }

    .header-bottom__row > .logo img {
        display: block;
    }

    #_mobile_user_info,
    #_mobile_cart,
    .awemsg-mobile-header {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0;
        padding-right: 2px !important;
        padding-left: 2px !important;
    }

    #_mobile_user_info .header-block__action-btn {
        gap: 2px;
        padding-right: 2px;
        padding-left: 2px;
    }

    #_mobile_user_info .gm-signin-label {
        display: inline !important;
        max-width: 72px;
        overflow: hidden;
        font-size: 12px;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #_mobile_cart {
        display: flex !important;
    }

    .header-bottom__row .material-icons {
        flex: 0 0 auto;
    }

    /* Le panneau de navigation et le selecteur de langue ne doivent jamais
       devenir plus larges que l'ecran pendant une traduction automatique. */
    #mobileMenu {
        --bs-offcanvas-width: 100%;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: auto !important;
        max-width: none !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    #mobileMenu.show,
    #mobileMenu.showing {
        transform: none !important;
    }

    #mobileMenu .offcanvas-header,
    #mobileMenu .main-menu__mobile,
    #mobileMenu .main-menu__additionnals,
    #mobileMenu .main-menu__selects,
    #_mobile_language_selector,
    #_mobile_language_selector .language-selector__wrapper,
    #_mobile_language_selector .js-language-selector {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    #mobileMenu .offcanvas-header {
        position: relative;
        width: 100%;
        padding-right: 52px;
    }

    #mobileMenu .btn-close {
        position: absolute !important;
        z-index: 3;
        top: 8px !important;
        right: 8px !important;
        left: auto !important;
        margin: 0 !important;
    }

    #mobileMenu .offcanvas-body,
    #mobileMenu .main-menu__mobile,
    #mobileMenu .menu,
    #mobileMenu .menu__list {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow-x: hidden !important;
    }

    #mobileMenu .menu__link {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    #mobileMenu .main-menu__selects {
        width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    #_mobile_language_selector .js-language-selector {
        width: 100%;
    }

    #_mobile_language_selector {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    #_mobile_language_selector .language-selector__wrapper {
        width: 100%;
    }
}

@media (max-width: 359.98px) {
    #_mobile_user_info .gm-signin-label {
        max-width: 64px;
        font-size: 11.5px;
    }
}

body {
    background-image: url('../img/gmr2.png');
    background-repeat: repeat;
    background-size: auto;
    background-position: top left;
}

.page .breadcrumb-container,
.page .breadcrumb {
    display: none !important;
}

/* Navigation cohérente des espaces privés : la règle générale ci-dessus
   continue de masquer les fils d'Ariane des autres pages module. */
.page .breadcrumb.breadcrumb--private-account {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.breadcrumb--private-account::-webkit-scrollbar {
    display: none;
}

.breadcrumb--private-account .breadcrumb-item {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 32px;
}

.breadcrumb--private-account .breadcrumb-item > span,
.breadcrumb--private-account .breadcrumb-item + .breadcrumb-item::before {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    line-height: inherit;
}

.breadcrumb--private-account .breadcrumb-item + .breadcrumb-item::before {
    float: none;
}

#gm-account-space-traveller,
#gm-account-space-host,
#gm-account-space-real-estate,
#gm-account-profile,
#gm-account-shop {
    scroll-margin-top: 110px;
}

/* Page CMS #8 — Comment fonctionne GoMyRoof */
body.cms-id-8 .page-header {
    display: none;
}

body.cms-id-8 .gomyroof-how__title {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
}

body.cms-id-8 .gomyroof-how__intro {
    max-width: 880px;
}

body.cms-id-8 .gomyroof-how__cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

body.cms-id-8 .gomyroof-how__cta-actions .btn {
    min-width: 220px;
    border-radius: 999px;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    body.cms-id-8 .gomyroof-how__title {
        font-size: 1.75rem;
        line-height: 1.16;
    }

    body.cms-id-8 .gomyroof-how__cta-actions {
        flex-direction: column;
    }

    body.cms-id-8 .gomyroof-how__cta-actions .btn {
        width: 100%;
        min-width: 0;
    }
}

/* Accessibilité et confort tactile — préproduction 2026-08-30 */
.footer .footer__block__toggle {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--footer-heading-color, #fff);
    text-align: left;
}

.footer .footer__block__toggle:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

#contact .contact-form .form-select,
#contact .contact-form input.form-control,
#contact .contact-form .form-footer .btn {
    min-height: 44px;
}

#module-psclassifiedspro-view .gmr-side-column .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

#module-psclassifiedspro-view .gmr-listing-gallery .swiper-button-next,
#module-psclassifiedspro-view .gmr-listing-gallery .swiper-button-prev {
    width: 44px;
    height: 44px;
}

#module-psclassifiedspro-view .gmr-listing-gallery .swiper-pagination-bullet {
    position: relative;
    width: 24px;
    height: 24px;
    margin: 0 1px !important;
    border-radius: 0;
    background: transparent;
    opacity: 1;
}

#module-psclassifiedspro-view .gmr-listing-gallery .swiper-pagination-bullet::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    content: "";
    transform: translate(-50%, -50%);
}

#module-psclassifiedspro-view .gmr-listing-gallery .swiper-pagination-bullet-active {
    width: 32px;
    background: transparent;
}

#module-psclassifiedspro-view .gmr-listing-gallery .swiper-pagination-bullet-active::after {
    width: 22px;
    background: #fff;
}

#module-psclassifiedspro-view .gmr-listing-gallery .swiper-pagination-bullet:focus-visible,
#module-psclassifiedspro-view .gmr-listing-gallery .swiper-button-next:focus-visible,
#module-psclassifiedspro-view .gmr-listing-gallery .swiper-button-prev:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.pscs-filters__close {
    min-width: 44px;
    min-height: 44px;
}

.pscs-destination-combobox__clear {
    min-width: 32px;
    min-height: 32px;
}

@media (max-width: 767.98px) {
    .gm-mainmenu__toggle {
        min-width: 44px;
        min-height: 44px;
    }

    .breadcrumb-link {
        display: inline-flex;
        align-items: center;
        min-height: 32px;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    body#my-account .breadcrumb-item {
        display: flex;
        align-items: center;
        min-height: 32px;
    }

    body#my-account .breadcrumb-item > span,
    body#my-account .breadcrumb-item + .breadcrumb-item::before {
        display: inline-flex;
        align-items: center;
        min-height: 32px;
        line-height: inherit;
    }

    body#my-account .breadcrumb-item + .breadcrumb-item::before {
        float: none;
    }

    .footer .footer__block__toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
        padding: 10px 0;
    }

    .footer .footer__block__content-list a {
        display: flex;
        align-items: center;
        min-height: 44px;
    }
}

