/* Largeur fluide commune ; les contrôles et formulaires gardent leurs dimensions. */
html body.ls-app:is(.ls-storefront,.ls-backoffice) .app-shell > main {
    width:100%!important;
    max-width:none!important;
    min-width:0;
    padding-inline:16px!important;
    margin-inline:0!important;
}
body.ls-app .mk-header-inner,
body.ls-app .ls-navigation-wrap,
body.ls-app .vitrine .container {
    width:100%;
    max-width:none!important;
    box-sizing:border-box;
}
/* L’accueil s’étend horizontalement sans augmenter sa hauteur de référence. */
body.ls-storefront .sf-banner-home-hero {
    max-height:var(--site-banner-height);
    overflow:hidden;
}
body.ls-storefront .sf-banner-home-hero img {
    max-height:var(--site-banner-height);
    object-fit:contain;
}

/* Barres latérales un peu plus larges sur ordinateur (+30 px). */
@media(min-width:1100px){
    body.ls-app [data-intuitive-catalogue].ci-responsive-mode .catalogue-filter-layout,
    body.ls-app .support-brands-shell .support-filter-layout {
        grid-template-columns:250px minmax(0,1fr)!important;
    }
    body.ls-backoffice .app-shell {
        grid-template-columns:260px minmax(0,1fr);
    }
}

/* Critères actifs à côté du fil d’Ariane, y compris après filtrage AJAX. */
body.ls-app .catalogue-breadcrumb-row {display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;min-width:0}
body.ls-app .catalogue-breadcrumb-row .catalogue-active-filters {display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0}
body.ls-app .catalogue-breadcrumb-row .catalogue-active-filters[hidden] {display:none}
body.ls-app .catalogue-breadcrumb-separator {display:none;color:var(--muted)}
body.ls-app .catalogue-breadcrumb-row:has(.catalogue-active-filters:not([hidden])) .catalogue-breadcrumb-separator {display:inline}

body.ls-app .aw-settings-buttons {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:12px;margin:16px 0;min-width:0}
body.ls-app .aw-settings-buttons > a {min-width:0;text-align:center;white-space:normal;overflow-wrap:anywhere}

/* La réserve de navigation mobile appartient au footer, sans vide après celui-ci. */
@media(max-width:767px){
    body.ls-storefront:has(.mk-mobile-bar):has(.vitrine-footer) {padding-bottom:0!important}
    body.ls-storefront:has(.mk-mobile-bar) .vitrine-footer .footer {padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))!important}
}

/* Le footer termine aussi les pages plus courtes que la fenêtre. */
body.ls-storefront {display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
body.ls-storefront > :is(header,.ls-navigation-wrap,.vitrine-footer,.catalogue-footer) {flex-shrink:0}
body.ls-storefront > .app-shell {flex:1 0 auto;min-height:0}

/* Copyright, liens légaux et installation intégrés à une seule ligne compacte. */
body.ls-storefront .vitrine-footer .footer-bottom {background:transparent;display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:12px 0;gap:8px 16px;margin:0}
body.ls-storefront .vitrine-footer .footer-legal {text-align:left;color:var(--muted)}
body.ls-storefront .vitrine-footer .footer-legal p {color:inherit;font-size:12px;line-height:1.4}
body.ls-storefront .vitrine-footer .footer-company-info {font-size:11px!important;margin-top:2px!important}
body.ls-storefront .vitrine-footer .footer-legal-links {gap:6px 10px;justify-content:flex-end}
body.ls-storefront .vitrine-footer .footer-legal-links :is(a,.separator) {color:var(--muted);font-size:12px}
body.ls-storefront .vitrine-footer .footer-legal-links a:hover {color:var(--red)}
@media(max-width:767px){
    body.ls-storefront .vitrine-footer .footer-bottom {gap:8px}
    body.ls-storefront .vitrine-footer .footer-legal-links {justify-content:flex-start}
}

/* Footer aligné sur les 16 px latéraux du contenu, sur toutes les pages. */
body.ls-app .vitrine-footer > .footer{padding-inline:0!important}
body.ls-app .vitrine-footer > .footer > .container{box-sizing:border-box;width:100%;max-width:none!important;margin-inline:0!important;padding-inline:16px!important}
