/*
Theme Name: Mon Ange Stock
Description: Theme enfant de GeneratePress. Vous pouvez maintenant effectuer vos modifications en toute sécurité.
Author: AutarTICa
Author URI: https://www.autartica.be
Template: generatepress
Version: 1.0
*/

.mobile-footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 10px 0;
  z-index: 9999;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}

.mobile-footer-nav a {
  flex: 1;
  text-align: center;
  font-size: 18px;
  text-decoration: none;
  color: #333;
  position: relative;
}

.mobile-footer-nav small {
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

.cart-count {
  background: red;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  padding: 2px 5px;
  position: absolute;
  top: 2px;
  right: 20%;
}

@media (min-width: 768px) {
  .mobile-footer-nav {
    display: none;
  }
}

/* Exemple : styliser les blocs de produit WooCommerce */
.woocommerce ul.products li.product {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.one-container .site-content {
    padding-top: 0px;
}

/* Appliquer une largeur de 90% au conteneur principal */
.container,
.site-grid {
    width:80%;
    max-width: 85%; /* désactive la largeur max fixée par défaut */
    margin-left: auto;
    margin-right: auto;
}



.breadcrumb-trail{
	padding:5px 0px 20px 5px;
	margin-bottom:50px;
}
h1.entry-title {
    font-size: 30px;
}
.entry-title {
    margin-bottom: 10px;
}

.bloc-reassurance-produit {
    background-color: #f7f8f9;
    padding: 15px;
    border: 1px solid #ddd;
    margin-top: 20px;
    font-size: 15px;
    border-radius: 5px;
}

.bloc-reassurance-produit h2 {
    margin-bottom: 8px;
	font-size:16px;
	text-align:center;
}

.woocommerce button.button.alt{
	background-color:#980068 !important;
	color:#ffffff;
}
.woocommerce button.button.alt:hover{
	background-color:#e78dbb !important;
	color:#ffffff;
}
.woocommerce button.button{
	color:#ffffff !important;
}
.woof label {
    cursor: pointer;
    font-size: 15px;
}
.woof_container_inner h4 {
    font-size:18px;
}

/* Conteneur produit : effet au survol */
ul.products li.product {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
/* Masquer le texte de la wishlist */
.woosw-btn .woosw-btn-text {
    display: none;
}

/* Position du bouton wishlist : haut gauche de l'image */
ul.products li.product .woosw-btn {
    position: absolute;
    top: 10px;
    left: 10px; /* <-- changement ici */
    z-index: 9;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Survol du cœur */
ul.products li.product .woosw-btn:hover {
    background: #eb49ac;
    color: #fff;
}

/* Taille de l'icône */
ul.products li.product .woosw-btn .woosw-btn-icon {
    font-size: 16px;
}


/* 2. Style du bouton Filtres */
.filter-bar .bouton-filtres {
  flex: 0 0 auto;
  background: #980068;
  color: #fff;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 20px 0;
  position: relative;
  z-index: 10000;
 
}

/* 3. Conteneur filtré “off-canvas” */
.sidebar-filtres {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  max-width: 80%;
  height: 95%;
  background: #fff;
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s ease-in-out;
  opacity: 0;               /* invisible au départ */
}

/* 4. Quand on l’active */
.sidebar-filtres.active {
  display: block;
  transform: translateX(0);
  opacity: 1;   
}

/* 5. Overlay sombre */
body.filtres-open::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

@media (min-width: 768px){
	.sidebar-filtres {
		width: 350px;
	}
	
}

/* Quand les filtres sont ouverts, on cache le bouton */
body.filtres-open #toggle-filtres {
  display: none;
}

.filtres-titres{
	margin-top : 50px;
}

/* Style du bouton fermer */
.close-filtres {
  position: absolute;
  top: 40px; right: 10px;  
  font-size: 18px;
  cursor: pointer;
  z-index: 400;
}

/* Toujours afficher le bouton fermer dans la sidebar des filtres */
.sidebar-filtres .close-filtres {
  display: block !important;      /* force l’affichage */
  opacity: 1 !important;          /* force l’opacité */
  visibility: visible !important; /* force la visibilité */
}


/* Décale un peu le contenu pour que le bouton n’empiète pas */
.sidebar-filtres {
  padding-top: 40px;
}

/* Cible tous les <p> vides dans le footer et les cache */
.site-footer p:empty,
.footer-widgets p:empty {
  display: none !important;
  margin: 0;
  padding: 0;
}

.separate-containers .inside-article>.featured-image {
    margin-top: 0;
    margin-bottom: 2em;
    text-align: center !important;
}

.main-navigation .inside-navigation {  
    background: white;
}

.woocommerce-info {
    background-color: #E78DBB !important;
    color: #ffffff;
}

/* Mettre en avant l’étiquette du champ Genre dans l’admin */
.acf-field-genre .acf-label > label::after {
  content: " *";
  color: #d54e21;
}
.acf-field-genre {
  background: #fff7e6;
  padding: 10px;
  border-left: 4px solid #d54e21;
}



/* 1. En desktop/tablette, on passe le menu en flex et on centre */
@media (min-width: 768px) {
  .main-navigation .inside-navigation {
    display: flex !important;
    justify-content: center !important;
  }
}

/* 2. On supprime tout “float” qui traînerait */
.main-navigation .inside-navigation ul {
  margin: 0 auto !important;
  float: none !important;
}

/* 3. (optionnel) si tu as un bouton mobile, tu le reviens à droite */
.main-navigation .menu-toggle {
  order: 2;
  margin-left: auto;
}

/* 2 colonnes dans la boutique/catégories sur mobile - ajustement des polices */
@media (max-width: 1024px){
	.woocommerce ul.products li.product .woocommerce-loop-product__title{
		font-size:16px;
	}
	.woocommerce ul.products li.product .button {   
    font-size: 14px;
	}
}

.woocommerce-products-header h1{
	font-size:20px;
}

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
   
    padding: 5px 15px !important;
}

.woocommerce span.onsale {
    background-color: #eb49ac !important;
    color: #ffffff;
}

/**--------------------------titre produit en une seule ligne sur mobile------------------------------------------*/
@media (max-width: 767px) {
  /* 1. Cible le titre WooCommerce en grille */
  .woocommerce-loop-product__title {
    white-space: nowrap;       /* interdit le retour à la ligne */
    overflow: hidden;          /* masque le surplus */
    text-overflow: ellipsis;   /* affiche “…” en fin de ligne */
  }

  /* 2. Si tu utilises GenerateBlocks et que tes titres ont une classe spécifique */
  .home-carousel .gb-loop-item h3.gb-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
	.container, .site-grid {
	  max-width:99%;
	}
	.excerpt{
		font-size:13px;
	}
	.custom-term-description{
		display:none;
	}
}

/* ================================
   Carousel swipe mobile – version finale
   ================================ */
@media (max-width: 767px) {
  /* Empêche tout débordement global */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Conteneur flex qui englobe TOUTES les cartes */
  .home-carousel [class^="gb-looper-"] {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    gap: 12px;             /* espace entre les slides */
    padding: 0 16px;       /* marge à gauche et à droite */
    width: auto !important;
    max-width: none !important;

    /* Masquer les scrollbars */
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .home-carousel [class^="gb-looper-"]::-webkit-scrollbar {
    display: none;
  }

  /* Chaque slide fait 45% de la largeur du viewport */
  .home-carousel [class^="gb-looper-"] .gb-loop-item {
    flex: 0 0 100%;
    min-width: 45%;
    scroll-snap-align: start;
    box-sizing: border-box;
  }
}

/*--------------------------------------------
 * Toggle des description de catégories
 * -------------------------------------------*/
/* Extrait et full par défaut */
.custom-term-description .excerpt { display: block; }
.custom-term-description .full    { display: block; }

/* Quand on a un toggle, on cache .full tant que pas expanded */
.custom-term-description.has-toggle .full {
  display: none;
}
.custom-term-description.has-toggle.expanded .full {
  display: block;
}

/* Cacher l’extrait quand expanded */
.custom-term-description.has-toggle.expanded .excerpt {
  display: none;
}

/* Bouton */
.custom-term-description.has-toggle .read-more {
  background: none;
  border: none;
  color: #0073aa;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-top: 0.5em;
}

/*icônes de filtres*/

/* Conteneur principal : bouton + icônes */
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;            /* espace entre bouton et icônes */
  margin-bottom: 20px;  /* espace sous la barre */
}

/* Container des icônes, juste à droite du bouton */
.filter-icons {
  display: flex;
  align-items: center;
  margin-left: 10px;         /* espace entre bouton et icônes */
}

/* Style de chaque icône */
.filter-icons a {
  flex: 0 0 auto;
  margin-right: 8px;
}
.filter-icons a img {
  display: block;
  width: 100px;
  height: 100px;
}

/* Masquer la scrollbar */
.filter-icons {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.filter-icons::-webkit-scrollbar {
  display: none;
}

/* 1. Ajouter la transition sur les icônes */
.filter-bar .filter-icons a img {
  transition: transform 0.3s ease;
}
@media (min-width: 768px) {
/* 2. Au survol, on scale un peu */
.filter-bar .filter-icons a:hover img {
  transform: scale(1.1);
}
}

/* === Swipe horizontal en mobile === */
@media (max-width: 767px) {
  .filter-icons {
    overflow-x: auto;                  /* active le scroll horizontal */
    -webkit-overflow-scrolling: touch; /* inertie iOS */
    padding: 6px 0;                    /* espace vertical */
  }
}
/* Si tu veux le cacher seulement sur les archives produits */
body.post-type-archive-product .entry-content .breadcrumb.breadcrumbs.woo-breadcrumbs,
body.tax-product_cat      .entry-content .breadcrumb.breadcrumbs.woo-breadcrumbs,
body.tax-product_tag      .entry-content .breadcrumb.breadcrumbs.woo-breadcrumbs {
  display: none !important;
}

@media (max-width: 1024px) {
    .main-navigation .site-logo.navigation-logo img, .mobile-header-navigation .site-logo.mobile-header-logo img, .navigation-search input[type="search"] {
        height: 60px;
    }
}

@media only screen and (max-width: 768px) {
  /* Cible la table responsive du panier */
 .woocommerce table.shop_table_responsive tbody th, .woocommerce-page table.shop_table_responsive tbody th {
        
    display: table-cell !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
	.woof_products_top_panel li span, .woof_products_top_panel2 li span {   
    background-size: 20px 20px;
}

.woof_products_top_panel li span {
    padding-right: 25px;
}
}



