.sticky-header {
  transition: box-shadow 0.3s ease-in-out;
}

/* Amélioration visuelle au scroll */
.sticky-header.scrolled {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--wp--preset--color--white);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease-in-out;
}
/* .overlay-product {
  visibility: hidden;
  transform: translateY(-150px);
}
.overlay-product.visibility {
  visibility: visible;
  transform: translateY(-200px);
} */
/* Style du VRAI bouton à l'intérieur du conteneur marqué .btn-panier */

.btn-panier .wp-block-button__link::before {
  content: "";
  inline-size: 1.1em;
  block-size: 1.1em;
  background: currentColor;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M7 18a2 2 0 1 0 0 4 2 2 0 0 0 0-4m10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4M6.2 5l.3 2H21l-1.6 6.1a2.5 2.5 0 0 1-2.4 1.9H9a2.5 2.5 0 0 1-2.4-1.9L5 4H3V2h2.7c.7 0 1.3.5 1.4 1.2z"/></svg>')
    no-repeat center/contain;
}
.wp-element-button:hover {
  background-color: #1e6870;
}
.wp-block-navigation-item__label::after {
  content: "";
  display: block;
  width: 100%; /* Largeur fixe à 100% */
  height: 4px;
  background: #6eeb83;
  transform: scaleX(0); /* Commence à échelle 0 */
  transform-origin: left; /* Animation depuis la gauche */
  transition: transform 0.3s ease;
  margin-top: 5px;
}
.wp-block-navigation-item__label:hover::after {
  transform: scaleX(1);
}

.current-menu-item .wp-block-navigation-item__label::after,
.current_page_item .wp-block-navigation-item__label::after {
  transform: scaleX(1);
}
.wp-block-read-more::after {
  content: "";
  display: block;
  width: 100%; /* Largeur fixe à 100% */
  height: 1px;
  background: rgb(255, 255, 255);
  transform: scaleX(0); /* Commence à échelle 0 */
  transform-origin: left; /* Animation depuis la gauche */
  transition: transform 0.3s ease;
  margin-top: 5px;
}
.wp-block-read-more:hover::after {
  transform: scaleX(1);
}
.wp-block-cover .size-full {
  transition: transform 0.3s ease;
}
.wp-block-cover:hover .size-full {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}
.wp-block-button .wp-block-button__link {
  position: relative !important;
  padding: 12px 24px !important;
  border: none !important;

  font-size: 16px !important;
  cursor: pointer !important;
  overflow: hidden !important; /* Pour masquer le débordement */
  transition: color 0.3s !important;
  z-index: 1 !important;
}

section .wp-block-button .wp-block-button__link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0; /* Largeur initiale à 0 */
  height: 100%;
  background-color: #26828d;
  /* Couleur au survol */
  transition: width 0.3s ease;
  z-index: -1;
}

section .wp-block-button .wp-block-button__link:hover::before {
  width: 100%; /* Remplit tout le bouton */
}

section .wp-block-button .wp-block-button__link:hover {
  color: white !important;
  border: solid 2px white !important; /* Optionnel : changer la couleur du texte */
}
.wp-block-post-featured-image {
  overflow: hidden;
}
.attachment-post-thumbnail {
  transition: ease-in-out 0.2s;
}
.attachment-post-thumbnail:hover {
  transform: scale(1.05);
  transition: ease-in-out 0.2s;
}
.attachment-post-thumbnail:hover {
  transform: scale(1.05);
  transition: ease-in-out 0.2s;
  overflow: hidden;
}
.woocommerce .added_to_cart {
  display: none !important;
}
.woocommerce span[data-wp-bind--hidden] {
  display: none !important;
}
/* Réduction de mouvement pour l'accessibilité */
@media (prefers-reduced-motion: reduce) {
  .sticky-header {
    transition: none;
  }
}
@media only screen and (max-width: 768px) {
  .wp-container-core-group-is-layout-b757edec {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important ;
  }
  h1 {
    font-size: 48px !important;
  }
  .wp-block-button__link {
    font-size: 14px !important;
  }
}
@media only screen and (max-width: 500px) {
  header .wp-block-buttons {
    display: none !important;
  }
  .wp-container-core-group-is-layout-988b637e {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
  .wp-block-cover {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .border-radius-resp {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
  }
}
