/* Recherche et filtres publics — typographie et actions cohérentes, tous écrans.
   Ciblé sur les moteurs de recherche, pas sur les titres des contenus/cartes. */
html body.lms-navigation-v2{
  --lms-search-font-size:13px;
}

/* Mot-clé, catégorie, ville : un même corps et aucune graisse accentuée. */
html body.lms-navigation-v2 :is(.premium-store-search,.explore-page .market-search-primary,.feed-explore-search)
  :is(.explore-search-query,.explore-search-location,.explore-search-category,.feed-category-open),
html body.lms-navigation-v2 :is(.premium-store-search,.explore-page .market-search-primary,.feed-explore-search)
  :is(.explore-search-query input,.explore-search-location input,.explore-search-category>span,.feed-category-open>span){
  font-size:var(--lms-search-font-size)!important;
  font-weight:400!important;
  letter-spacing:normal!important;
  text-transform:none!important;
}
html body.lms-navigation-v2 :is(.premium-store-search,.explore-page .market-search-primary,.feed-explore-search)
  :is(.explore-search-query input,.explore-search-location input)::placeholder{
  font-size:var(--lms-search-font-size)!important;
  font-weight:400!important;
  opacity:1;
}

/* Les recherches détaillées partagent la même hiérarchie typographique.
   On ne touche ni aux icônes ni aux cartes de résultats. */
html body.lms-navigation-v2 :is(.feed-search-panel,.market-all-filters-drawer,.feed-category-drawer,.feed-filter-drawer)
  :is(h2,h3,strong,b,label,button,select,option,input,span:not(.explore-location-suggestions),a){
  font-size:var(--lms-search-font-size)!important;
  font-weight:400!important;
  letter-spacing:normal!important;
}
html body.lms-navigation-v2 :is(.feed-search-panel,.market-all-filters-drawer,.feed-category-drawer,.feed-filter-drawer)
  input::placeholder{
  font-size:var(--lms-search-font-size)!important;
  font-weight:400!important;
}
html body.lms-navigation-v2 :is(.feed-app,.lms-shared-feed-search) .feed-search-actions>button{
  font-size:var(--lms-search-font-size)!important;
  font-weight:400!important;
}

/* Trois filtres compacts, regroupés sans pilules surdimensionnées. */
html body.lms-navigation-v2 .premium-profile .premium-store-search .explore-quick-filters{
  display:flex!important;
  flex-wrap:wrap!important;
  grid-template-columns:none!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  width:100%!important;
  margin:0!important;
  padding:10px 0 0!important;
}
html body.lms-navigation-v2 .premium-profile .premium-store-search
  .explore-quick-filters>.feed-featured-filter{
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  width:auto!important;
  min-width:74px!important;
  min-height:36px!important;
  height:36px!important;
  margin:0!important;
  padding:0 14px!important;
  border:1px solid var(--line)!important;
  border-radius:999px!important;
  background:var(--surface)!important;
  color:var(--text)!important;
  font-size:var(--lms-search-font-size)!important;
  font-weight:400!important;
  line-height:1.2!important;
  letter-spacing:normal!important;
  white-space:nowrap!important;
}
html body.lms-navigation-v2 .premium-profile .premium-store-search
  .explore-quick-filters>.feed-featured-filter>span{
  font-size:var(--lms-search-font-size)!important;
  font-weight:400!important;
  line-height:1.2!important;
  letter-spacing:normal!important;
  color:inherit!important;
}
html body.lms-navigation-v2 .premium-profile .premium-store-search
  .explore-quick-filters>.feed-featured-filter:has(input:checked){
  background:var(--accent)!important;
  border-color:var(--accent)!important;
  color:var(--accent-contrast)!important;
}
html body.lms-navigation-v2 .premium-profile .premium-store-search
  .explore-quick-filters>.feed-featured-filter:has(input:focus-visible){
  outline:2px solid var(--accent)!important;
  outline-offset:2px!important;
}

/* Même taille dans les compteurs et actions de recherche, sans gras. */
html body.lms-navigation-v2 :is(.explore-results-row,.premium-offers-toolbar)
  :is(.explore-results-meta,.explore-results-meta strong,.premium-offers-heading h2,.premium-offers-heading h2 span){
  font-size:var(--lms-search-font-size)!important;
  font-weight:400!important;
  letter-spacing:normal!important;
  line-height:1.35!important;
}
html body.lms-navigation-v2 :is(.explore-results-actions,.public-profile-sort-actions)
  :is(.explore-reset,.explore-sort-menu>summary,.explore-view-actions>a){
  box-sizing:border-box!important;
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:auto!important;
  min-width:0!important;
  height:36px!important;
  min-height:36px!important;
  padding:0 12px!important;
  border:1px solid var(--line)!important;
  border-radius:999px!important;
  background:var(--surface)!important;
  color:var(--text)!important;
  font-size:var(--lms-search-font-size)!important;
  font-weight:400!important;
  line-height:1.2!important;
  letter-spacing:normal!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
html body.lms-navigation-v2 :is(.explore-results-actions,.public-profile-sort-actions)
  :is(.explore-reset,.explore-sort-menu>summary,.explore-view-actions>a)>span,
html body.lms-navigation-v2 :is(.explore-results-actions,.public-profile-sort-actions)
  .explore-sort-menu>div :is(a,a span){
  font-size:var(--lms-search-font-size)!important;
  font-weight:400!important;
  letter-spacing:normal!important;
}
html body.lms-navigation-v2 :is(.explore-results-actions,.public-profile-sort-actions)
  :is(.explore-sort-menu>summary,.explore-view-actions>a) svg{
  flex:0 0 16px!important;
  width:16px!important;
  height:16px!important;
}
html body.lms-navigation-v2 .premium-profile .premium-offers-toolbar{
  align-items:center!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
  padding-bottom:12px!important;
}
html body.lms-navigation-v2 .premium-profile .premium-offers-toolbar .public-profile-sort-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  padding:0!important;
}
html body.lms-navigation-v2 .explore-results-row .explore-results-actions{
  gap:6px!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
}
@media(max-width:360px){
  html body.lms-navigation-v2 .premium-profile .premium-offers-toolbar{
    grid-template-columns:minmax(0,1fr)!important;
  }
  html body.lms-navigation-v2 .premium-profile .premium-offers-toolbar .public-profile-sort-actions{
    justify-content:flex-start!important;
  }
  html body.lms-navigation-v2 .explore-results-row{
    flex-wrap:wrap!important;
  }
}

/* L'attribut hidden doit rester prioritaire sur les anciens display!important. */
html body.lms-navigation-v2 :is(.explore-results-actions,.public-profile-sort-actions) .explore-reset[hidden],
html body.lms-navigation-v2 :is(.feed-app,.lms-shared-feed-search) [data-feed-search-clear][hidden],
html body.lms-navigation-v2 :is(.feed-app,.lms-shared-feed-search) [data-feed-filters-clear][hidden]{
  display:none!important;
}

/* Retour visuel cohérent : véritable changement de fond au survol, sans grossir le texte. */
@media(hover:hover){
  html body.lms-navigation-v2 :is(.explore-results-actions,.public-profile-sort-actions)
    :is(.explore-reset,.explore-sort-menu>summary,.explore-view-actions>a):hover,
  html body.lms-navigation-v2 :is(.explore-results-actions,.public-profile-sort-actions)
    .explore-sort-menu>div a:hover{
    background:color-mix(in srgb,var(--accent) 16%,var(--surface))!important;
    border-color:color-mix(in srgb,var(--accent) 50%,var(--line))!important;
    color:var(--text)!important;
  }
  html body.lms-navigation-v2 .premium-profile .premium-store-search
    .explore-quick-filters>.feed-featured-filter:not(:has(input:checked)):hover{
    background:color-mix(in srgb,var(--accent) 16%,var(--surface))!important;
    border-color:color-mix(in srgb,var(--accent) 65%,var(--line))!important;
    color:var(--text)!important;
  }
  html body.lms-navigation-v2 .premium-profile .premium-store-search
    .explore-quick-filters>.feed-featured-filter:has(input:checked):hover{
    background:color-mix(in srgb,var(--accent) 88%,var(--surface))!important;
    border-color:var(--accent)!important;
    color:var(--accent-contrast)!important;
  }
  html body.lms-navigation-v2 :is(.feed-app,.lms-shared-feed-search)
    .feed-search-actions>button:not([type=submit]):hover,
  html body.lms-navigation-v2 :is(.premium-store-search,.explore-page .market-search-primary,.feed-explore-search)
    :is(.feed-category-open,.explore-search-category):hover{
    background:color-mix(in srgb,var(--accent) 16%,var(--surface))!important;
    color:var(--text)!important;
  }
  html body.lms-navigation-v2 :is(.market-all-filters-drawer,.feed-category-drawer,.feed-filter-drawer)
    :is(.market-category-drawer-list button,.market-all-filter-row,footer button:not([type=submit])):hover{
    background:color-mix(in srgb,var(--accent) 16%,var(--surface))!important;
    color:var(--text)!important;
  }
  html body.lms-navigation-v2 :is(.feed-app,.lms-shared-feed-search)
    .feed-search-actions>button[type=submit]:hover{
    background:color-mix(in srgb,var(--accent) 88%,var(--text))!important;
    border-color:var(--accent)!important;
    color:var(--accent-contrast)!important;
  }
}

/* Le filtre de l'administration suit la même logique de bouton compact. */
html body.admin-console-shell .admin-offer-filters .admin-offer-reset{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  min-height:36px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--surface);
  color:var(--text);
  font-size:var(--lms-search-font-size,13px);
  font-weight:400;
  text-decoration:none;
}
@media(hover:hover){
  html body.admin-console-shell .admin-offer-filters .admin-offer-reset:hover{
    background:color-mix(in srgb,var(--accent) 16%,var(--surface));
    border-color:var(--accent);
    color:var(--text);
  }
}

/* LMS_NEWS_CARD_HOVER_REFERENCE_V1
   A restrained image zoom and card lift inspired by editorial story grids.
   Limit motion to mouse/trackpad; keyboard receives the same clear focus cue. */
html body.page-shell :is(
  .media-home .media-content,
  .explore-page .explore-card,
  .boutiques-page .boutique-card
){
  transition:transform .28s cubic-bezier(.2,.8,.2,1),box-shadow .28s ease,border-color .28s ease!important;
}
html body.page-shell :is(
  .media-home .media-content-image img,
  .explore-page .explore-thumbnail>img,
  .boutiques-page .boutique-card-portrait>img
){
  transition:transform .45s cubic-bezier(.2,.8,.2,1)!important;
  transform-origin:center center!important;
}
@media(hover:hover) and (pointer:fine){
  html body.page-shell :is(
    .media-home .media-content,
    .explore-page .explore-card,
    .boutiques-page .boutique-card
  ):is(:hover,:focus-within){
    transform:translateY(-4px)!important;
    border-color:color-mix(in srgb,var(--accent) 55%,var(--line))!important;
    box-shadow:0 18px 40px -28px rgba(0,0,0,.5)!important;
  }
  html body.page-shell :is(
    .media-home .media-content,
    .explore-page .explore-card,
    .boutiques-page .boutique-card
  ):is(:hover,:focus-within) :is(
    .media-content-image img,
    .explore-thumbnail>img,
    .boutique-card-portrait>img
  ){
    transform:scale(1.045)!important;
  }
  html body.page-shell :is(
    .media-home .media-content,
    .explore-page .explore-card,
    .boutiques-page .boutique-card
  ):is(:hover,:focus-within) :is(
    .media-content-copy h3,
    .explore-card-copy>strong,
    .boutique-card-name
  ){
    color:var(--accent-text,var(--accent))!important;
  }
}
@media(prefers-reduced-motion:reduce){
  html body.page-shell :is(
    .media-home .media-content,
    .explore-page .explore-card,
    .boutiques-page .boutique-card,
    .media-home .media-content-image img,
    .explore-page .explore-thumbnail>img,
    .boutiques-page .boutique-card-portrait>img
  ){transition:none!important;transform:none!important;}
}

/* Search category buttons: replace colored hover surface by icon/text color. */
@media(hover:hover) and (pointer:fine){
  html body.lms-navigation-v2 :is(.premium-store-search,.explore-page .market-search-primary,.feed-explore-search)
    :is(.feed-category-open,.explore-search-category):hover{
    background:transparent!important;background-image:none!important;
    box-shadow:none!important;filter:none!important;transform:none!important;
    color:var(--accent-text,var(--accent))!important;
  }
}

/* Résultats vides : illustration, titre, description et action centrés sur tous les écrans. */
html body.page-shell .explore-page .illustrated-empty-state.explore-empty-state{
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;grid-template-columns:none!important;
  gap:16px!important;width:100%!important;min-height:300px!important;
  padding:32px clamp(16px,4vw,40px)!important;text-align:center!important;
}
html body.page-shell .explore-page .explore-empty-state .illustrated-empty-visual{
  flex:0 0 126px!important;width:min(240px,100%)!important;height:126px!important;
  margin:0 auto!important;
}
html body.page-shell .explore-page .explore-empty-state .illustrated-empty-copy{
  display:flex!important;flex-direction:column!important;align-items:center!important;
  gap:10px!important;max-width:580px!important;width:100%!important;
  margin-inline:auto!important;text-align:center!important;
}
html body.page-shell .explore-page .explore-empty-state .illustrated-empty-copy :is(h2,p){
  max-width:100%!important;margin:0 auto!important;text-align:center!important;
}
html body.page-shell .explore-page .explore-empty-state .illustrated-empty-copy>a{
  align-self:center!important;margin:8px auto 0!important;
}
@media(max-width:640px){
  html body.page-shell .explore-page .illustrated-empty-state.explore-empty-state{
    min-height:260px!important;padding:28px 16px!important;gap:12px!important;
  }
  html body.page-shell .explore-page .explore-empty-state .illustrated-empty-copy h2{
    font-size:clamp(21px,5vw,27px)!important;
  }
}
