/**
* Theme Name: Helo Child
* Description: This is a child theme of Helo
* Author: <a href="http://themeforest.net/user/crowdytheme">CrowdyTheme</a>
* Template: helo
* Version: 1.0.0
*/

/* JOUEURS PRO */

/* TOPBAR */
/* Transition douce de la topbar */
#topbar,
#navmenu {
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    height 0.3s ease,
    margin 0.3s ease,
    padding 0.3s ease;
}

/* Quand on a scrollé : on cache la topbar */
body.hide-topbar #topbar {
  transform: translateY(-100%);
  
}
body.hide-topbar #navmenu {
	transform: translateY(-45px);
}
/* TITRE ANIMÉ */
/* Conteneur */
.titleanim {
  display: inline-flex; /* plus propre qu'inline-block pour que l'animation parte bien à gauche */
}

/* Style du titre */
.titleanim h2 {
  position: relative;
  padding-bottom: 6px;
  display: inline-block;
}

/* Ligne animée */
.titleanim h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background-color: #F00000;

  /* Animation plus douce & plus lente */
  transition: width 3.2s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Assure que l’animation démarre bien à gauche */
  transform-origin: left center;
}

/* Classe JS activée quand visible */
.titleanim.visible h2::after {
  width: 100%;
}

/* FOOTER DEFILEMENT PARTENAIRES */
#brandslider img {
  height: 90px;
}

/* WOOCOMMERCE */

.elementor-page-428 #site-content,
.tax-product_cat #site-content {
  padding-top: 200px;
  background-color: #2D303A;
}
.elementor-page-428 #site-content h2,
.elementor-page-428 #site-content h3,
.elementor-page-428 #site-content label, 
.elementor-page-428 #site-content output,
.woocommerce.elementor-page-428 .woocommerce-result-count,
.woocommerce.elementor-page-428 bdi{
  color: #fff
}
.woocommerce ul.products li.product .button:hover {
  background-color: #F00000;
  border-color:#000;
}
/* Layout */
.shop-wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  padding: 60px 0;
  position: relative;
}

/* Sidebar */
.shop-sidebar {
  border-right: 1px solid #ddd;
  padding-right: 20px;
  transition: transform 0.3s ease;
  position: relative;
}

.sidebar-title { font-size: 20px; margin: 16px 0 10px; }

.cat-btn {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: #f2f2f2;
  border: none;
  margin-bottom: 8px;
  cursor: pointer;
  border-radius: 6px;
  text-align: left;
  transition: 0.2s;
}
.cat-btn:hover, .cat-btn.is-active { background: #F00000; color: #fff; }
.cat-btn--all { margin-bottom: 12px; font-weight: 600; }

.sidebar-price { margin-top: 18px; }
.price-row { display: flex; justify-content: space-between; font-size: 14px; margin: 6px 0; }
.price-apply, .price-reset {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.price-apply { background: #F00000; color: #fff; }
.price-reset { background: #e9e9e9; }

/* Topbar */
.shop-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

/* Grille produits – reset styles Woo qui cassent */
#ajaxProducts ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px !important;
  align-items: stretch;
  margin: 0 !important;
  padding: 0 !important;
}
#ajaxProducts ul.products::before,
#ajaxProducts ul.products::after { content: none !important; } /* tue le pseudo clearfix qui crée un "bloc vide" */
#ajaxProducts ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  list-style: none !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
#ajaxProducts ul.products li.product .button,
#ajaxProducts ul.products li.product a.button {
  margin-top: auto; /* pousse le bouton en bas */
  display: inline-block;
  max-width: 100%;
  white-space: normal;
}

/* Pagination cliquable en AJAX */
#ajaxProducts .woocommerce-pagination ul {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
}

/* Mobile sidebar toggle */
.open-sidebar-btn {
  display: none;
  position: sticky;
  top: 10px;
  left: 0;
  padding: 10px 14px;
  background: #F00000;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  z-index: 10;
}
.sidebar-close {
  display: none;
  position: absolute;
  right: 10px; top: 10px;
  border: none; background: none; font-size: 22px; cursor: pointer;
}

@media (max-width: 1200px) {
  #ajaxProducts ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shop-wrapper { grid-template-columns: 1fr; }
  .shop-sidebar {
    position: fixed; top: 0; left: 0;
    width: 280px; height: 100%;
    background: #fff; padding: 20px;
    transform: translateX(-100%); z-index: 9999;
  }
  .shop-sidebar.open { transform: translateX(0); }
  .open-sidebar-btn { display: inline-block; }
  .sidebar-close { display: block; }
  #ajaxProducts ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px !important; }
}
@media (max-width: 520px) {
  #ajaxProducts ul.products { grid-template-columns: 1fr; }
}
