/* Accueil mobile : recherche + hero visible. Le reste suit custom.css. */
.m46-home-find,
.m46-home-reassure-compact {
  display: none;
}

@media (max-width: 767.98px) {
  .m46-home-find {
    display: block;
    margin: 0;
    padding: 0.65rem 0 0.75rem;
    background: var(--m46-paper);
    border-bottom: 1px solid var(--m46-steel-line);
  }

  .m46-home-find__form {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--m46-black);
    background: #fff;
  }

  .m46-home-find__input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 2.75rem;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff;
    color: var(--m46-ink);
    font-size: 1rem;
    padding: 0.55rem 0.75rem;
  }

  .m46-home-find__input::placeholder {
    color: var(--m46-steel);
    opacity: 1;
  }

  .m46-home-find__submit {
    flex: 0 0 2.85rem;
    width: 2.85rem;
    min-height: 2.75rem;
    border: 0;
    border-left: 2px solid var(--m46-black);
    background: var(--m46-yellow);
    color: var(--m46-black);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .m46-home-find__submit .material-icons {
    font-size: 1.35rem;
    line-height: 1;
  }

  .page-index .m46-home-section__lead,
  .page-index .m46-home-section__more,
  .page-index .m46-home-reassure {
    display: none !important;
  }

  /* Disciplines = vrais boutons (bordure M46 + chevron) */
  .page-index .m46-home-univers__tile {
    flex-wrap: nowrap;
    border: 2px solid var(--m46-black);
    min-height: 3rem;
    padding: 0.55rem 0.65rem;
  }

  .page-index .m46-home-univers__tile::after {
    content: "\E315";
    font-family: "Material Icons";
    font-size: 1.25rem;
    line-height: 1;
    color: var(--m46-black);
    flex: 0 0 auto;
    margin-left: auto;
  }

  .page-index .m46-home-univers__tile:active {
    background: var(--m46-yellow);
  }

  /* Même grille 2 cols + visuels que bestsellers / populaires / promos */
  .page-index .ps-bestsellers .products,
  .page-index .ps-bestsellers .module-products__list .products,
  .page-index .ps-newproducts .products,
  .page-index .ps-newproducts .module-products__list .products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .page-index .ps-bestsellers .products > .product-miniature:nth-child(n + 5),
  .page-index .ps-newproducts .products > .product-miniature:nth-child(n + 5) {
    display: none !important;
  }

  .page-index .ps-bestsellers .product-miniature__title,
  .page-index .ps-newproducts .product-miniature__title {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 0.9375rem;
    line-height: 1.3;
    min-height: calc(1.3em * 2);
  }

  .page-index .ps-bestsellers .product-miniature__top img,
  .page-index .ps-newproducts .product-miniature__top img,
  .page-index .ps-featuredproducts .product-miniature__top img,
  .page-index .ps-specials .product-miniature__top img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .page-index .ps-bestsellers .module-products__buttons .btn,
  .page-index .ps-newproducts .module-products__buttons .btn {
    width: 100%;
    min-height: 2.75rem;
  }
}
