/* MacFix — tablette et smartphone du child template VP Neoteric. */

/* Conserver les sept liens et leurs sous-menus sur une ligne à 992–1199 px. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  body.tpl-vp-neoteric-macfix .header-content .header-main .container-inner > .d-lg-flex {
    gap: 24px !important;
  }

  body.tpl-vp-neoteric-macfix .header-content .site-logo img {
    width: min(100%, 280px);
  }

  body.tpl-vp-neoteric-macfix #mega-menu .mod-vmcategory-dropdown {
    flex: 0 0 190px;
    width: 190px;
  }

  body.tpl-vp-neoteric-macfix #mega-menu .mod-vmcategory-dropdown-opener {
    padding-inline: 8px;
    white-space: nowrap;
    font-size: 13px;
  }

  body.tpl-vp-neoteric-macfix #mega-menu .mod-megamenu {
    flex-wrap: nowrap;
    min-width: 0;
    padding-left: 3px;
  }

  body.tpl-vp-neoteric-macfix #mega-menu .mod-megamenu > .mod-megamenu--item > .mod-megamenu--item-anchor {
    padding-inline: 5px;
    white-space: nowrap;
    font-size: 13px;
  }
}

@media (min-width: 1020px) and (max-width: 1199.98px) {
  body.tpl-vp-neoteric-macfix #mega-menu .mod-megamenu > .mod-megamenu--item > .mod-megamenu--item-anchor {
    font-size: 13.5px;
  }
}

@media (min-width: 992px) {
  body.tpl-vp-neoteric-macfix .bottom-section .mod-row:not(:last-child) {
    border-right: 1px solid rgb(179 220 245 / 16%);
  }
}

/* Les deux bannières du module 153 mesurent 1920 × 500 px. */
@media (min-width: 1920px) {
  body.tpl-vp-neoteric-macfix #PrimeSlider-153 .prime-slide-inner {
    height: auto;
    aspect-ratio: 1920 / 500;
  }
}

/* Le module latéral occupe toute la largeur sous le contenu sur tablette. */
@media (min-width: 768px) and (max-width: 991.98px) {
  body.tpl-vp-neoteric-macfix:is(.view-category, .view-contact) #right-aside [data-mod-id="89"] .product-grid-view {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 991.98px) {
  body.tpl-vp-neoteric-macfix .bottom-section .container-inner {
    padding-block: 30px 22px;
  }

  body.tpl-vp-neoteric-macfix .bottom-section .mod-row {
    flex: 0 0 50%;
    max-width: 50%;
    padding-block: 18px;
  }

  body.tpl-vp-neoteric-macfix .bottom-section .mod-row:first-child {
    flex-basis: 100%;
    max-width: 100%;
    border-bottom: 1px solid rgb(179 220 245 / 16%);
  }

  body.tpl-vp-neoteric-macfix .header-content .header-main .container-inner {
    padding-block: 15px;
  }

  body.tpl-vp-neoteric-macfix .header-content .mobile-header-center .brand-logo {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
  }

  body.tpl-vp-neoteric-macfix .header-content .mobile-header-center img {
    display: block;
    max-width: min(100%, 250px);
    height: auto;
  }

  body.tpl-vp-neoteric-macfix .header-content .offcanvas-toggler,
  body.tpl-vp-neoteric-macfix .header-content .mobile-header-right .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 46px;
    padding: 7px;
    border-radius: 10px;
    background-color: #eef7fc;
    color: #17324d;
  }

  body.tpl-vp-neoteric-macfix .header-content .offcanvas-toggler:focus-visible,
  body.tpl-vp-neoteric-macfix .header-content .mobile-header-right .btn-icon:focus-visible {
    outline: 2px solid var(--template-primary-color, #007bc4);
    outline-offset: 2px;
  }

  body.tpl-vp-neoteric-macfix .header-content .offcanvas-toggler:hover,
  body.tpl-vp-neoteric-macfix .header-content .mobile-header-right .btn-icon:hover {
    background-color: #dceff9;
  }

  body.tpl-vp-neoteric-macfix .prime-slider .prime-slide-text-area {
    padding: 19px 21px;
  }

  body.tpl-vp-neoteric-macfix.view-virtuemart .featured-view .product-container {
    padding: 13px 11px 17px;
  }

  body.tpl-vp-neoteric-macfix.view-virtuemart .latest-view .product-container,
  body.tpl-vp-neoteric-macfix.view-category .browse-view .product-container,
  body.tpl-vp-neoteric-macfix [data-mod-id="151"] .product-container {
    padding: 13px 11px 17px;
  }
}

@media (max-width: 575.98px) {
  body.tpl-vp-neoteric-macfix .bottom-section .mod-row,
  body.tpl-vp-neoteric-macfix .bottom-section .mod-row:first-child {
    flex: 0 0 100%;
    max-width: 100%;
    border-bottom: 1px solid rgb(179 220 245 / 16%);
  }

  body.tpl-vp-neoteric-macfix .bottom-section .mod-row:last-child {
    border-bottom: 0;
  }

  body.tpl-vp-neoteric-macfix .footer-area {
    padding-bottom: 66px; /* Garder les paiements visibles au-dessus de la barre mobile fixe. */
  }

  body.tpl-vp-neoteric-macfix .header-content .mobile-header-center {
    flex: 1 1 auto;
    min-width: 0;
  }

  body.tpl-vp-neoteric-macfix .header-content .mobile-header-center .brand-logo {
    min-width: 0;
  }

  body.tpl-vp-neoteric-macfix .header-content .mobile-header-center img {
    max-width: 100%;
  }

  /* Le contenu détermine la hauteur, avec une réserve pour les points. */
  body.tpl-vp-neoteric-macfix .prime-slider .prime-slider-slide {
    height: auto;
  }

  body.tpl-vp-neoteric-macfix .prime-slider .prime-slide-inner {
    height: auto;
    min-height: 500px;
  }

  body.tpl-vp-neoteric-macfix .prime-slider .prime-slide-image {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  body.tpl-vp-neoteric-macfix .prime-slider .prime-slide-container {
    position: relative;
    min-height: 500px;
    padding-block: 16px 55px;
  }

  body.tpl-vp-neoteric-macfix .prime-slider .prime-slide-text-area {
    padding: 17px 17px 20px;
    border-radius: 0 11px 11px 0;
  }

  body.tpl-vp-neoteric-macfix .prime-slider .prime-slide-subheading {
    margin-bottom: 10px;
  }

  body.tpl-vp-neoteric-macfix .prime-slider .prime-slide-heading {
    margin-bottom: 14px;
    font-size: 24px;
  }

  body.tpl-vp-neoteric-macfix .prime-slider .prime-slide-paragraph {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.42;
  }

  body.tpl-vp-neoteric-macfix .prime-slider .prime-slide-buttons {
    padding-top: 10px;
  }

  body.tpl-vp-neoteric-macfix .prime-slider .btn.btn-primary {
    padding: 12px 16px;
  }

  body.tpl-vp-neoteric-macfix .prime-slider .prime-slider-navigation {
    bottom: 17px;
  }

  body.tpl-vp-neoteric-macfix.view-virtuemart .featured-view .product-name {
    font-size: 14px;
    line-height: 1.4;
  }

  body.tpl-vp-neoteric-macfix.view-virtuemart .featured-view .product-list-images {
    min-height: 120px;
  }

  body.tpl-vp-neoteric-macfix.view-virtuemart .featured-view .product-container {
    padding: 12px 11px 16px;
  }

  body.tpl-vp-neoteric-macfix:is(.view-category, .view-contact) #right-aside [data-mod-id="89"] .product-grid-view {
    flex: 0 0 100%;
    max-width: 100%;
  }

  body.tpl-vp-neoteric-macfix.view-virtuemart .latest-view .product-list-images,
  body.tpl-vp-neoteric-macfix.view-category .browse-view .product-list-images,
  body.tpl-vp-neoteric-macfix [data-mod-id="151"] .product-list-images {
    min-height: 120px;
  }

  body.tpl-vp-neoteric-macfix.view-virtuemart .latest-view .product-name,
  body.tpl-vp-neoteric-macfix.view-category .browse-view .product-name,
  body.tpl-vp-neoteric-macfix [data-mod-id="151"] .product-name {
    font-size: 14px;
  }

  body.tpl-vp-neoteric-macfix.view-contact main .contact-misc ul {
    grid-template-columns: 1fr;
  }

  body.tpl-vp-neoteric-macfix.view-contact main .com-contact__container,
  body.tpl-vp-neoteric-macfix.view-contact main .contact-miscinfo {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.tpl-vp-neoteric-macfix .bottom-section .mod-menu a,
  body.tpl-vp-neoteric-macfix .header-content .site-logo img,
  body.tpl-vp-neoteric-macfix .header-content .header-right-lg .btn-icon,
  body.tpl-vp-neoteric-macfix #mega-menu .mod-megamenu--item-anchor,
  body.tpl-vp-neoteric-macfix .prime-slider .btn.btn-primary {
    transition: none;
  }

  body.tpl-vp-neoteric-macfix.view-virtuemart .featured-view .product-container {
    transition: none;
  }

  body.tpl-vp-neoteric-macfix .prime-slider .btn.btn-primary:hover {
    transform: none;
  }

  body.tpl-vp-neoteric-macfix.view-virtuemart .featured-view .product-container:hover {
    transform: none;
  }

  body.tpl-vp-neoteric-macfix.view-category .category-view .category .item-container,
  body.tpl-vp-neoteric-macfix:is(.view-category, .view-contact) #right-aside [data-mod-id="89"] .product-container,
  body.tpl-vp-neoteric-macfix.view-virtuemart .latest-view .product-container,
  body.tpl-vp-neoteric-macfix.view-category .browse-view .product-container,
  body.tpl-vp-neoteric-macfix [data-mod-id="151"] .product-container {
    transition: none;
  }

  body.tpl-vp-neoteric-macfix.view-category .category-view .category .item-container:hover {
    transform: none;
  }

  body.tpl-vp-neoteric-macfix.view-virtuemart .latest-view .product-container:hover,
  body.tpl-vp-neoteric-macfix.view-category .browse-view .product-container:hover {
    transform: none;
  }
}

/* Trois ou quatre modules visibles se repartissent sur toute la ligne. */
@media (min-width: 1200px) {
  body.tpl-vp-neoteric-macfix .bottom-section .mod-row {
    flex: 1 1 0;
    max-width: none;
  }

  body.tpl-vp-neoteric-macfix .bottom-section .row:has(> .mod-row:nth-child(3):last-child) > [data-mod-id="117"] {
    flex-grow: 1.4;
  }
}

@media (min-width: 576px) and (max-width: 1199.98px) {
  body.tpl-vp-neoteric-macfix .bottom-section .mod-row,
  body.tpl-vp-neoteric-macfix .bottom-section .mod-row:first-child {
    flex: 0 0 50%;
    max-width: 50%;
  }

  body.tpl-vp-neoteric-macfix .bottom-section .mod-row:nth-child(-n+2) {
    border-bottom: 1px solid rgb(179 220 245 / 16%);
  }

  body.tpl-vp-neoteric-macfix .bottom-section .mod-row:nth-child(2) {
    border-right: 0;
  }

  body.tpl-vp-neoteric-macfix .bottom-section .mod-row:last-child:nth-child(odd) {
    flex-basis: 100%;
    max-width: 100%;
  }
}
