/*
Theme Name: Thème CMQLF
Template: astra
Author: Child Theme Configurator
Version: 1.0.1750172661
Updated: 2025-06-17 15:04:21

*/
/* Animation logo */
.site-branding {
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInLogo 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInLogo {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Animation scrolltop */
#ast-scroll-top {
  opacity: 0;
  transform: translateX(30px);
  animation: slideInRight 0.5s ease-out forwards;
  animation-delay: 0.3s;
}

/* Animation keyframes */
@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* Modifie l'icone du panier */
.ast-site-header-cart .ast-icon-shopping-bag svg {
  display: none;
}
.ast-site-header-cart .ast-icon-shopping-bag {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('/wp-content/themes/cmqlf/images/panier-cmqlf.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.astra-cart-drawer-title::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('/wp-content/themes/cmqlf/images/panier-final-cmqlf.png');
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 8px;
  vertical-align: middle;
}
/* Modifie l'icone du compte */
.ast-header-account .account-icon {
  display: none;
}
.ast-header-account .ast-header-account-link {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('/wp-content/themes/cmqlf/images/compte-cmqlf.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom;
  margin-left : 10px;
  margin-bottom: 3px;
}
.ast-wooaccount-user-wrapper img.avatar {
  display: none;
}
/* Modifie l'icone du recherche */
.ast-header-search .ast-search-icon svg {
  display: none;
}
.ast-header-search .ast-search-icon a {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('/wp-content/themes/cmqlf/images/recherche-cmqlf.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: bottom;
}
/* Tooltip Header */
.tooltip {
	position:relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ast-global-color-2);
  color: #fff;
  padding: 0.4em 0.7em;
  font-size: 0.8em;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-top: 6px; /* Réduit l'espace entre l'élément et le tooltip */
  z-index: 10;
}

.tooltip:hover::after {
  opacity: 1;
}

.tooltip::before {
  content: "";
  position: absolute;
  top: calc(100% + 0px); /* colle parfaitement la flèche au tooltip */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--ast-global-color-2);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 9;
}

.tooltip:hover::before {
  opacity: 1;
}
/* Moyens de paiement */
.moyens-paiement-icones {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 0;
  margin: 0;
}
.payment-icon {
  list-style: none;
}
.payment-icon svg {
  height: 30px; /* augmente ici pour des icônes plus grandes */
  width: auto;
  display: block;
}
/* Recherche via Fibo */
.fibosearch {
  max-width: 300px;
  margin-left: auto;
  margin-right: 0;
}
.dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp {
	background-color : transparent;
}
/* Moyens de livraison */
.modes-livraison-icones {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.livraison-icon {
  list-style: none;
}

.livraison-icon svg {
  display: block;
  max-height: 40px;
  height: auto;
  width: auto;
}

/* Centrage du fil d’Ariane WooCommerce */
.woocommerce-breadcrumb {
  text-align: center;
  display: block;
  margin: 0 auto;
}
/* Image de catégorie à gauche du titre */
.woocommerce-products-header__title img.image-categorie-inline {
  display: inline-block;
  width: 65px;
  height: auto;
  margin-left: 10px;
  vertical-align: middle;
  border-radius: 4px;
}
/* Conteneur du titre catégorie avec image */
.woocommerce-products-header__title.page-title {
  display: flex;
  align-items: center; /* Centrage vertical */
  justify-content: flex-start; /* Centrage horizontal */
  gap: 10px; /* Espace entre image et texte */
  flex-wrap: wrap;
}

/* Image de la catégorie */
.image-categorie-inline {
  width: 50px;
  height: auto;
  vertical-align: middle;
}
/* Animation d’apparition pour l’image */
.image-categorie-inline {
  opacity: 0;
  transform: translateX(-10px);
  animation: fadeInSlide 0.6s ease-out forwards;
  animation-delay: 0.3s;
}

/* Animation d’apparition pour le titre */
.page-title {
  opacity: 0;
  transform: translateX(-10px);
  animation: fadeInSlide 0.6s ease-out forwards;
  animation-delay: 0.1s; /* Légèrement avant l’image */
}

/* Animation commune */
@keyframes fadeInSlide {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
/* Réduction de l’espace entre le titre et le séparateur */
.term-description::before {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 10px 0 10px 0; /* plus de auto = plus centré */
  background-color: var(--ast-global-color-2);
  border-radius: 2px;
}

/* Description plus grosse et centrée */
.term-description {
  text-align: left;
  font-size: 1.15rem; /* taille augmentée */
  line-height: 1.6;
  color: var(--ast-global-color-3);
  max-width: 700px;
  margin: 0 15% 50px 0; 
}

/* Entête categorie */
.woocommerce-products-header {
  display: flex;
  align-items: flex-start;
  padding: 60px 40px;
  gap: 40px;
  flex-wrap: wrap;
}

.vignette-categorie-gauche {
  flex: 0 0 35%;
  max-width: 40%;
}

.vignette-categorie-gauche img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.vignette-categorie-gauche {
  opacity: 0;
  transform: translateX(-30px);
  animation: slideInLeft 0.8s ease-out forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.page-title {
    margin-bottom: 0.5em; /* plus serré */
}
/* Topbar central */
.ast-above-header-section-center {
  flex: 1 1 100%;
  text-align: center;
}
.ast-above-header-section-left,
.ast-above-header-section-right {
  display: none;
}
/* Puce du site */
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding-left: 0;
}

/*.woocommerce-MyAccount-navigation ul li.is-active {
  background: url('/wp-content/themes/cmqlf/images/puce-cmqlf.png') no-repeat 0 0.4em;
  background-size: 16px 16px; 
  padding-left: 26px;
  line-height: 1.6;
}
*/
/* Boutons globaux */
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button,
.woocommerce-js button.button,
.woocommerce-js input.button,
.woocommerce-js a.button, 
.woocommerce-mini-cart__buttons, 
.wc-block-components-button:not(.is-link),
.wp-element-button {
  border-radius: 4px!important; /* ajuste ici selon le degré d’arrondi souhaité */
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  transform: scale(1.02);
  transition: all 0.3s ease;
}
/* Validation commande */
.woocommerce-checkout h1.entry-title {
  background-image: url('/wp-content/themes/cmqlf/images/commande-cmqlf.png');
}
.woocommerce-account h1.entry-title {
  background-image: url('/wp-content/themes/cmqlf/images/compteclient-cmqlf.png');
}
.woocommerce-cart h1.entry-title {
  background-image: url('/wp-content/themes/cmqlf/images/panier-final-cmqlf.png');
}
.woocommerce-checkout h1.entry-title,
.woocommerce-account h1.entry-title,
.woocommerce-cart h1.entry-title {
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 50px 50px; /* taille augmentée */
  padding-bottom : 40px;
  padding-top : 50px;
  padding-left: 60px; /* espace pour l’icône */
  line-height: 1.4;
  display: inline-block;
  font-size: 2.25rem;
}
.wp-block-woocommerce-checkout-order-summary-block {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 16px;
  background-color: #fff;
}
/* Bannière cookies */
#cmplz-manage-consent .cmplz-manage-consent {
	right: 70px!important;
}
/* Changer Icône retait click and collect */
.custom-pickup img {
  width: 36px !important;
  height: auto;
}
/* Panier vide */
.wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
  display: none;
}
.wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
  content: "";
  display: block;
  width: 5em;
  height: 5em;
  margin: 0 auto 2em;
  background-image: url('/wp-content/themes/cmqlf/images/panier-vide-cmqlf.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  mask-image: none!important;
  background-color: transparent!important;
  height: 2em!important;
  margin: 0 auto 1em!important;
}
.woocommerce-mini-cart__empty-message::before {
  content: '';
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background-image: url('/wp-content/themes/cmqlf/images/panier-vide-cmqlf.png');
  background-size: contain;
  background-repeat: no-repeat;
}
.ast-sticky-add-to-cart-action-wrap {
	padding-right: 60px;
}
.cmqlf-share-buttons {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.95rem;
}
/* Partage réseaux sociaux page produit */
.cmqlf-share-buttons a {
  padding: 6px 12px;
  background: #f1f1f1;
  border-radius: 4px;
  text-decoration: none;
  color: #222;
  transition: all 0.2s ease-in-out;
}

.cmqlf-share-buttons a:hover {
  background: #007cba;
  color: #fff;
}
.cmqlf-share-inline-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.cmqlf-share-inline-icons a svg {
  transition: transform 0.2s ease;
}

.cmqlf-share-inline-icons a:hover svg {
  transform: scale(1.2);
}

.cmqlf-share-label {
  font-weight: 500;
  font-size: 0.95rem;
  color: #333;
}
/* Newsletter */
#sib_signup_form_1 input[type="email"] {
  padding: 14px 24px;
  font-size: 16px;
  width: 100%;
  border-radius: 50px; /* arrondi complet gauche + droite */
  border: 1px solid #ccc;
  box-sizing: border-box;
}
#sib_signup_form_1 {
  width: 300px;
  max-width: 100%;
  margin: 0 auto; /* pour le centrer */
}
.sib_signup_box_inside_1 {
  display: flex;
  flex-direction: column;
  align-items: center; /* centre horizontalement */
}
.newsletter {
  text-shadow: 0 0 2px #fff, 0 0 4px #fff;
}

.newsletter img {
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
	filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 2px #fff);
}
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px; /* espace entre la case et le texte */
  font-size: 14px;
  line-height: 1.4;
}

.checkbox-wrapper input[type="checkbox"] {
  margin: 0;
}

#sib_signup_form_1 .sib-default-btn {
  width: 120px; 
  border-radius: 4px;
}