/* Tablet Layout (force side-by-side) */
@media (min-width: 768px) and (max-width: 1024px) {
  .choco-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
  }

  .choco-row > .wp-block-column {
    width: 50% !important;
  }
}

/* Mobile Layout (allow stacking) */
@media (max-width: 767px) {
  .choco-row {
    flex-direction: column !important;
  }

  .choco-row > .wp-block-column {
    width: 100% !important;
  }
}
/* Étend le bloc de résumé produit pour que la description courte prenne plus de largeur */
.woocommerce.single-product .product .summary {
    max-width: 100%;
    width: 100%;
}

/* Donne de l'espace à la description courte */
.woocommerce-product-details__short-description {
    font-size: 1rem;
    line-height: 1.8;
    margin-top: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Réduit la taille du titre si trop grand */
.woocommerce .product_title {
    font-size: 2rem;
    line-height: 1.2;
    word-break: normal;
}

/* Pour éviter que le titre s’affiche en colonne verticale */
.single-product .product .summary h1 {
    white-space: normal;
}

.cookie-list {
  list-style: none;
  padding-left: 0;
}
.cookie-list li::before {
  content: "🍪 ";
  margin-right: 6px;
}


/* 1) Cacher le sélecteur de quantité dans les onglets */
.woocommerce-tabs .wc-block-components-quantity-selector {
  display: none !important;
}

/* 2) Cacher le bouton add-to-cart dans les onglets */
.woocommerce-tabs .wc-block-components-product-add-to-cart-button,
.woocommerce-tabs .wc-block-components-add-to-cart__button {
  display: none !important;
}

/* 3) Cacher tout autre wrapper cart-block dans les onglets */
.woocommerce-tabs .wc-block-cart,
.woocommerce-tabs .wc-block-cart-item__quantity {
  display: none !important;
}


/* 1) Masquer toute forme de bouton “add to cart” dans les panels d’onglets */
.woocommerce-tabs .woocommerce-Tabs-panel button,
.woocommerce-tabs .woocommerce-Tabs-panel .wc-block-components-product-add-to-cart-button,
.woocommerce-tabs .woocommerce-Tabs-panel .wc-block-components-add-to-cart__button {
  display: none !important;
}

/* 2) Masquer tout champ de quantité (input, spinner) dans les panels */
.woocommerce-tabs .woocommerce-Tabs-panel input.qty,
.woocommerce-tabs .woocommerce-Tabs-panel .wc-block-components-quantity-selector,
.woocommerce-tabs .woocommerce-Tabs-panel .quantity {
  display: none !important;
}

/* 3) Masquer tout conteneur de panier/tableau dans les panels */
.woocommerce-tabs .woocommerce-Tabs-panel .wc-block-cart,
.woocommerce-tabs .woocommerce-Tabs-panel .wc-block-cart__inner,
.woocommerce-tabs .woocommerce-Tabs-panel .wc-block-cart-items__row {
  display: none !important;
}


.faq-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.faq-section h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}
.faq-grid details {
  background: #FFBD59;
  border: 1px solid #542B15;
  border-radius: 6px;
  padding: 1rem;
}
.faq-grid summary {
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.faq-grid summary .icon {
  font-size: 1.25rem;
}
.faq-grid details[open] {
  background: #FFBD59;
}
.faq-grid p {
  margin-top: 0.5rem;
  line-height: 1.4;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;

  /* ↓ ne pas étirer les cases, mais les laisser grandir à leur propre taille */
  align-items: start;
  grid-auto-rows: min-content;
}
.faq-section.faq--ligne .faq-grid{
  grid-template-columns: 1fr !important;  /* une seule colonne */
  gap: 12px !important;
  align-items: stretch !important;
  grid-auto-rows: auto !important;
}

/* (optionnel) s'assurer que chaque item occupe bien toute la largeur */
.faq-section.faq--ligne .faq-grid details{
  width: 100%;
}



.product-gallery {
  position: relative;
  max-width: 800px;
  margin: 0 auto 2rem;
  border: 2px solid #333;
  border-radius: 12px;
  padding: .5rem;
}

.product-gallery .badge--most-popular {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #9edef7;
  color: #00497a;
  padding: .5rem 1rem;
  border-radius: 1rem;
  font-style: italic;
  font-size: .9rem;
}

.swiper-container.swiper-main {
  width: 100%;
  height: auto;
}

.swiper-container.swiper-thumbs {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: calc(100% - 20px);
  box-sizing: border-box;
  background: rgba(255,255,255,0.8);
  padding: .5rem;
  border-radius: 6px;
}

.swiper-container.swiper-thumbs .swiper-slide {
  width: 80px !important;
  height: 80px !important;
  opacity: .6;
  cursor: pointer;
}
.swiper-container.swiper-thumbs .swiper-slide-thumb-active {
  opacity: 0;
  border: 2px solid #333;
}

.swiper-button-prev,
.swiper-button-next {
  color: #fff;
  background: rgba(0,0,0,.5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 1.5rem;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .swiper-container.swiper-thumbs {
    left: 5px;
    right: 5px;
    bottom: 5px;
  }
}

.home-boxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.home-box-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.home-box-item h3 {
  margin: .5rem 0;
  font-size: 1.1rem;
}
.home-box-item .price {
  display: block;
  margin-bottom: .5rem;
  font-weight: bold;
}
.home-box-item .button {
  background: #f8c14a;
  border: none;
  padding: .5rem 1rem;
  border-radius: 4px;
  color: #222;
  text-decoration: none;
}
.home-boxes-more {
  text-align: right;
}
.home-boxes-more .button-outline {
  border: 2px solid #222;
  background: transparent;
  padding: .5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  color: #222;
}

/* 1) Grille responsive avec cartes */
.home-boxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* 2) Style « carte » autour de chaque item */
.home-box-item {
  background: #fff;              /* fond blanc */
  border-radius: 1rem;           /* coins arrondis */
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  text-align: center;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 3) Images en haut, 100% largeur, coins arrondis */
.home-box-item img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  margin-bottom: 1rem;
  object-fit: cover;
}

/* 4) Titre et prix centrés */
.home-box-item h3 {
  font-size: 1.125rem;
  margin: .5rem 0;
  color: #3d2614;
}
.home-box-item .price {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
}

/* 5) Bouton « Voir la box » ou « Ajouter au panier » style Krok’me */
.home-box-item .button {
  background: #ffb224;
  color: #3d2614;
  padding: .75rem 1.5rem;
  border: none;
  border-radius: 2rem;
  box-shadow: inset -3px -3px 0 rgba(255,255,255,0.6);
  text-decoration: none;
  font-weight: 500;
  transition: transform .1s ease;
}
.home-box-item .button:hover {
  transform: translateY(-2px);
}

/* 6) Bouton « Voir toutes nos boxes » aligné à droite */
.home-boxes-more {
  text-align: right;
  margin-top: 1.5rem;
}
.home-boxes-more .button-outline {
  background: transparent;
  border: 2px solid #3d2614;
  color: #3d2614;
  padding: .75rem 1.5rem;
  border-radius: 2rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.home-boxes-more .button-outline:hover {
  background: #3d2614;
  color: #fff;
}


/* 1) Container */
.cookie-swiper-container {
  position: relative;
  margin: 2rem auto;
}

/* 2) Slide styling */
.cookie-swiper-container .swiper-slide.cookie-slide {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* 3) Image full width */
.cookie-swiper-container .cookie-slide img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
  margin-bottom: .75rem;
}

/* 4) Titre & prix */
.cookie-swiper-container .cookie-slide h3 {
  font-size: 1.1rem;
  margin: .5rem 0;
  color: #3d2614;
}
.cookie-swiper-container .cookie-slide .price {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
}

/* 5) Navigation */
/* Les cercles noirs */
.cookie-swiper-container .swiper-button-prev,
.cookie-swiper-container .swiper-button-next {
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  width: 2.5rem; height: 2.5rem;
  top: 40%; /* ajustez selon le visuel */
}
.cookie-swiper-container .swiper-button-prev::after,
.cookie-swiper-container .swiper-button-next::after {
  color: #fff;
  font-size: 1.2rem;
}
/* 6) Pagination */
.swiper-pagination-bullet {
  background: #fff;
  opacity: 0;
}
.swiper-pagination-bullet-active {
  background: #3d2615;
}


/* /* 1) On cible chaque slide d’avis */
.testimonials-swiper .swiper-slide.testimonial-slide {
  background: #542B15;       /* fond marron uniforme */
  border-radius: 8px;        /* coins arrondis */
  padding: 1.5rem;           /* espace intérieur */
  box-sizing: border-box;    /* inclure le padding dans la largeur */
  /* 2) on ajoute un peu d’espace horizontal entre les slides */
  margin-right: 15px;
}

/* 3) on enlève la marge sur la dernière slide pour que ça reste centré */
.testimonials-swiper .swiper-wrapper .swiper-slide:last-child {
  margin-right: 0;
}

/* 4) Ajuster la taille des titres et citations pour rester lisible */
.testimonial-slide blockquote {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: .75rem;
}
.testimonial-slide cite {
  display: block;
  text-align: right;
  font-size: .9rem;
}

/* 5) Adapter le container pour laisser respirer (espaces extérieurs) */
.testimonials-swiper {
  padding: 2rem 0;
}

/* 6) Si besoin, forcer swiper à ne pas toucher à nos marges */
.swiper-wrapper {
  display: flex !important;
}

/* 7) Retoucher la navigation si nécessaire (optionnel) */
.testimonials-swiper .swiper-button-prev,
.testimonials-swiper .swiper-button-next {
  top: 50%;
  transform: translateY(-50%);
}
.marquee {
  overflow: hidden;
  background-color: #ffbd59;
  padding: 0.3rem 0;
  width: 100%;
}

.marquee__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: scroll 25s linear infinite;
  min-width: max-content;
}

.marquee__word {
  font-weight: bold;
  font-size: 1.2rem;
  color: #3d2614;
  white-space: nowrap;
}

.cookie-separator {
  font-size: 1.2rem;
  margin: 0 0.5rem;
}
 
@keyframes scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee:hover .marquee__inner {
  animation-play-state: paused;
}




/* Assure un affichage net */
.woocommerce div.product .woocommerce-product-gallery__wrapper img {
  image-rendering: auto !important;
  filter: none !important;
  max-width: 100%;
  height: auto;
}

/* Masquer la ligne Category sous le bouton paiement en page produit */
.single-product div.product .product_meta .posted_in {
  display: none !important;
}

/* Au cas où le label est mal classé */
.single-product div.product .product_meta {
  font-size: 0;             /* cache tout le meta… */
}
/* Cache complètement le bloc “Category:” et son lien */
.wc-block-components-product-categories {
  display: none !important;
}

/* Cacher le bloc “Catégorie” sur la page produit FSE */
.wp-block-woocommerce-product-details .wc-block-components-product-categories,
.wp-block-woocommerce-product-details .wc-block-components-product-meta .wc-block-components-product-categories {
  display: none !important;
}
/* 1. Cache le bloc FSE qui affiche la catégorie produit */
.wc-block-components-product-categories,
.woocommerce-product-details__meta .wc-block-components-product-categories {
  display: none !important;
}

/* 2. Cache la meta “posted_in” classique si elle existe encore */
.single-product .product_meta .posted_in {
  display: none !important;
}

.wc-block-components-product-categories,
.woocommerce-product-details__meta .wc-block-components-product-categories,
.product_meta .posted_in {
  display: none !important;
}


/* 1) Arrondir l’image principale */
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img {
  border-radius: 16px !important;
  display: block;
  width: 100%;
  height: auto;
}

/* 2) Espacer la galerie principale des vignettes */
.woocommerce-product-gallery {
  margin-bottom: 1rem; /* espace sous la grande image */
}

/* 3) Mettre les vignettes sur une ligne et ajouter du gap */
.flex-control-thumbs {
  display: flex !important;
  gap: 10px;
  margin-top: 0.5rem;
  justify-content: flex-start;
}

/* 4) Arrondir les vignettes et espacer chaque image */
.flex-control-thumbs li {
  margin: 0 !important; /* on gère l’espace via gap */
}

.flex-control-thumbs li img {
  border-radius: 20px !important;
  display: block;
  width: auto;
  height: auto;
}


/* 1) Ajoute une bordure autour de la grande image (qui suit les coins arrondis) */
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image {
  border: 4px solid #542B15;           /* change la couleur si tu veux */
  border-radius: 20px;              /* même rayon que l’image */
  overflow: hidden;                 /* pour que la bordure épouse le conteneur */
  box-sizing: border-box;
}

/* 2) Arrondis toujours l’image à l’intérieur */
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img {
  border-radius: 20px;              /* identique au conteneur */
  display: block;
  width: 100%;
  height: auto;
}

/* 3) Espace entre la grande image et la rangée de vignettes */
.woocommerce-product-gallery {
  margin-bottom: 1.5rem;              /* augmente ou réduit l’écart ici */
}

/* 4) Affiche les vignettes en ligne avec un gap */
.flex-control-thumbs {
  display: flex !important;
  gap: 10px;                        /* espace entre chaque miniature */
  margin-top: 0;                    /* on gère tout via gap */
  justify-content: flex-start;
}

/* 5) Bord et coins arrondis pour chaque vignette */
.flex-control-thumbs li {
  flex: 0 0 auto;
}
.flex-control-thumbs li img {
  border: 2px solid #542B15;           /* fine bordure autour de chaque miniature */
  border-radius: 20px;              /* identique au grand visuel */
  display: block;
  width: auto;
  height: auto;
}
/* Décaler les miniatures vers le bas */
.single-product .flex-control-thumbs {
  margin-top: 12px !important;
}




/* Supprime toutes les paginations Swiper (les petits points) */
.swiper-pagination {
  display: none !important;
}


/* ──────────────────────────────────────────────────────────────────────────
   Bloquer définitivement le scroll horizontal du document
   ────────────────────────────────────────────────────────────────────────── */
html, body {
  overflow-x: hidden !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   Masquer tout débordement hors du carrousel
   ────────────────────────────────────────────────────────────────────────── */
.cookie-swiper-home {
  overflow-x: hidden !important;
}

/* Make header fixed site-wide */
header.wp-block-template-part {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: #FFE7A7 !important;
  width: 100%;
}
/* Sticky header padding fix: different height for desktop vs mobile */
body {
  padding-top: 190px; /* Desktop default */
}

@media (max-width: 1024px) {
  body {
    padding-top: 170px; /* Tablets & mobiles */
  }
}

/* Désactive toutes les bordures, arrondis, padding sur la galerie produit */
.woocommerce-product-gallery__image,
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image,
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img,
.flex-control-thumbs img,
.flex-control-thumbs img.flex-active {
  border: none !important;
  border-radius: 20  !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: none !important;
}
.flex-control-thumbs {
  gap: 20 !important;
  margin-top: 23 !important;
  padding: 0 !important;
}
/* Liste verticale des composants (panier & checkout) */
.cp-components-list { margin: .25rem 0 0; padding-left: 1rem; }
.cp-components-list li { margin: 2px 0; }

/* Checkout: header present but NOT sticky */
body.woocommerce-checkout header.wp-block-template-part {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: auto !important;
  width: 100%;
}

/* Remove the global sticky offset on Checkout */
body.woocommerce-checkout { padding-top: 0 !important; }

/* Mobile drawer: no offset on Checkout since header isn't sticky */
body.woocommerce-checkout .wp-block-navigation__responsive-container.is-menu-open {
  top: 0 !important;
  height: 100dvh !important;
}



/* CHECKOUT : header présent, plein écran, non-sticky */
body.woocommerce-checkout header.wp-block-template-part {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: auto !important;
  width: 100%;
}
body.woocommerce-checkout { padding-top: 0 !important; }

/* Pleine largeur du bloc header (débordement contrôlé) */
body.woocommerce-checkout .wp-site-blocks > header.wp-block-template-part {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* ⚡ Neutraliser TOUTES les contraintes internes du header */
body.woocommerce-checkout header.wp-block-template-part :where(.is-layout-constrained) {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.woocommerce-checkout header.wp-block-template-part :where(.has-global-padding) {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* S’assurer que le template-part interne n’impose pas de largeur */
body.woocommerce-checkout header.wp-block-template-part .wp-block-template-part {
  max-width: none !important;
  width: 100% !important;
}

/* Colonnes du header en ligne, sans rétrécir le menu */
@media (min-width: 768px) {
  body.woocommerce-checkout header.wp-block-template-part .wp-block-columns {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: var(--wp--style--block-gap, 1rem);
    width: 100% !important;
  }
  body.woocommerce-checkout header.wp-block-template-part .wp-block-columns > .wp-block-column {
    min-width: 0 !important; /* évite les compressions bizarres */
  }
  body.woocommerce-checkout header.wp-block-template-part nav.wp-block-navigation,
  body.woocommerce-checkout header.wp-block-template-part .wp-block-navigation__container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1.25rem !important;
    white-space: nowrap !important;
  }
}


/* ---- Fix overflow tablette pour le slider ---- */
@media (min-width: 768px) and (max-width: 1180px){
  /* Le wrapper ne dépasse jamais l'écran */
  .lfc-slider-wrap{
    width: 100% !important;
    max-width: 100% !important;
    padding-left: clamp(12px, 2.5vw, 24px);
    padding-right: clamp(12px, 2.5vw, 24px);
    overflow: hidden; /* on clippe tout débordement éventuel */
  }

  /* Neutralise les effets alignwide/alignfull autour du slider */
  .lfc-slider-wrap.alignwide,
  .lfc-slider-wrap.alignfull{
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Sécurité côté piste/diapos pour éviter les 1px de débordement */
  .lfc-slider{ width: 100%; }
  .lfc-track{ transform: translate3d(0,0,0); } /* évite les décimales foireuses */
  .lfc-slide{ flex: 0 0 100%; min-width: 100%; }
}

/* (Optionnel) si tu veux un cadrage un peu plus haut sur tablette */
@media (min-width: 768px) and (max-width: 1024px){
  .lfc-slider-wrap.home-hero .lfc-slider{
    aspect-ratio: 16 / 7; /* au lieu de 3/1 trop panoramique sur tablette */
  }
}

@media (min-width: 768px) and (max-width: 1180px){
  body { overflow-x: hidden; }
}


/* Menu mobile : pas d’offset spécifique sur Checkout (header non-sticky) */
body.woocommerce-checkout .wp-block-navigation__responsive-container.is-menu-open {
  top: 0 !important;
  height: 100dvh !important;
}
/* Partout ailleurs, on garde ton offset */
body:not(.woocommerce-checkout) .wp-block-navigation__responsive-container.is-menu-open {
  top: 125px !important;
  height: calc(100dvh - 125px) !important;
}



/* Caption qui recouvre toute l'image */
.lfc-slider-wrap.cap-full .lfc-cap{
  position:absolute;
  inset:0 !important;              /* occupe 100% du slide */
  left:0 !important; right:0 !important; top:0 !important; bottom:0 !important;
  transform:none !important;       /* annule le translate des positions */
  width:100%; height:100%;
  max-width:100%;
  border-radius:inherit;           /* suit l'arrondi du slider */
  display:flex;                    /* centrage facile */
  align-items:center;              /* centre vertical */
  justify-content:center;          /* centre horizontal */
  text-align:center;
  padding:clamp(16px,4vw,48px);
  background: var(--lfc-cap-bg, rgba(0,0,0,.35)); /* ton fond du shortcode */
  z-index:5;
}

/* Helpers d'alignement (optionnels) */
.lfc-slider-wrap.cap-full.cap-left  .lfc-cap{ justify-content:flex-start; text-align:left; }
.lfc-slider-wrap.cap-full.cap-right .lfc-cap{ justify-content:flex-end;  text-align:right; }
.lfc-slider-wrap.cap-full.cap-top   .lfc-cap{ align-items:flex-start; }
.lfc-slider-wrap.cap-full.cap-bottom .lfc-cap{ align-items:flex-end; }






/* Checkout — Résumé : cacher les lignes enfants WPC Composite */
.wc-block-checkout__order-summary .wc-block-components-order-summary-item.wooco-component,
.wc-block-checkout__order-summary .wc-block-components-order-summary-item.wooco-hide-component,
.wc-block-components-order-summary .wc-block-components-order-summary-item.wooco-component,
.wc-block-components-order-summary .wc-block-components-order-summary-item.wooco-hide-component{
  display: none !important;
}

/* Sécurité : si un conteneur "children" est rendu */
.wc-block-order-summary .wc-block-order-summary-item__children{
  display: none !important;
}

/* La légende en mode libre (coordonnées X/Y) doit l'emporter partout */
.lfc-slider-wrap .lfc-cap.pos-free{
  inset:auto !important;
  left:var(--cap-x,50%) !important;
  top:var(--cap-y,50%) !important;
  right:auto !important;
  bottom:auto !important;
  transform:translate(-50%,-50%) !important;
  width:auto; height:auto;
  display:block !important;
}

/* Décale légèrement la caption vers la gauche (desktop) */
@media (min-width: px){
  .home-hero.cap-full .lfc-cap{
    justify-content: flex-start !important;  /* aligne à gauche */
    text-align: left !important;
    padding-left: clamp(24px, 3vw, 72px) !important;  /* ← ajuste l’offset ici */
    padding-right: clamp(12px, 2vw, 32px) !important;
  }
}

/* Décalage plus léger sur tablette (optionnel) */
@media (min-width: 768px) and (max-width: 1023px){
  .home-hero.cap-full .lfc-cap{
    justify-content: flex-start !important;
    text-align: left !important;
    padding-left: clamp(16px, 3vw, 48px) !important;
  }
}
/* Si tu utilises cap-full (ton cas) : centre dans toute l'image */
.home-hero.cap-full .lfc-cap{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;   /* ← centre vertical */
  justify-content:center; /* ← centre horizontal */
  text-align:center;
}

/* Fallback si pas cap-full mais caption_pos="cc" */
.home-hero .lfc-cap.pos-cc{
  left:50% !important;
  top:50% !important;
  transform:translate(-50%, -50%) !important;
}


/* === WPClever Composite (WOOC) : 4 cartes par ligne === */

/* Le conteneur des options passe en GRID 4 colonnes */
.wooco_component_product_selection_grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px 18px !important;
}

/* Empêche les items d'imposer une largeur mini (héritée du plugin) */
.wooco_component_product_selection_grid_item {
  flex: initial !important;      /* au cas où le conteneur resterait en flex quelque part */
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Optionnel : carte un peu plus compacte si besoin */
.wooco_component_product_selection_grid_item .wooco_component_product_selection_grid_item_inner {
  padding: 14px !important;
}

/* Responsive : 3 colonnes tablette, 2 colonnes mobile */
@media (max-width: 1024px){
  .wooco_component_product_selection_grid{
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  }
}
@media (max-width: 680px){
  .wooco_component_product_selection_grid{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
}
/* MOBILE — compresse le ruban ET supprime l'espace du conteneur suivant */
@media (max-width:600px){
  /* Hauteur interne du ruban */
  .lfc-nb{
    font-size: var(--fs-mob) !important;
    padding: var(--pv-mob) var(--ph-mob) !important;
    line-height: 1.05 !important;
    margin-bottom: 0 !important;
  }
  .lfc-nb__item{ line-height:1.05 !important; margin:0 !important; padding:0 !important; }

  /* <<< ÉLIMINE le "gap" créé par WordPress autour du shortcode >>> */
  /* 1) Paragraphe(s) vides insérés juste après le shortcode */
  .lfc-nb + p:empty,
  .lfc-nb + p:empty + p:empty,
  header.wp-block-template-part p:empty,
  .wp-block-template-part p:empty { 
    display:none !important; margin:0 !important; padding:0 !important;
  }

  /* 2) Pas de marge/padding en haut du bloc qui suit le header contenant le ruban */
  header.wp-block-template-part:has(.lfc-nb){ margin-bottom:0 !important; padding-bottom:0 !important; }
  header.wp-block-template-part:has(.lfc-nb) + *{ margin-top:0 !important; padding-top:0 !important; }

  /* 3) Si un Spacer est posé sous le ruban, on le masque en mobile */
  .lfc-nb + .wp-block-spacer,
  header.wp-block-template-part:has(.lfc-nb) .wp-block-spacer{
    display:none !important; height:0 !important; margin:0 !important;
  }

  /* 4) Au besoin, annule le block-gap global juste sous le header */
  .wp-site-blocks > header.wp-block-template-part:has(.lfc-nb) + *{
    margin-block-start:0 !important;
  }
}

/* Supprime le bandeau Woocommerce + l'offset qu'il ajoute */
.woocommerce-store-notice,
p.demo_store{ display:none !important; height:0 !important; }

/* Enlève la marge/padding de compensation que le thème ajoute quand il est actif */
body.woocommerce-demo-store .wp-site-blocks,
body.woocommerce-demo-store .site,
body.woocommerce-demo-store .site-main{
  margin-top:0 !important; padding-top:0 !important;
}



/* === LFC Product Slider — contour blanc propre === */
.lfc-prod-slider{
  --gap: 12px;            /* espace fixe entre cartes */
  --cols: 8;              /* 8 / 4 / 2 colonnes */
  --card-pad: 14px;       /* épaisseur du "cadre" blanc autour de l'image */
  --card-radius: 18px;    /* arrondi carte */
}

/* ==== KROK SLIDER (classes isolées) ==== */
.krok-slider{
  --cols: 8;               /* 8/4/2 cartes */
  --gap: 12px;             /* écart fixe entre cartes */
  --card-pad: 14px;        /* cadre blanc */
  --card-radius: 18px;
  --img-ratio: 5/4;        /* image + grande; ex: 4/3, 1/1 */
  position: relative;
  isolation: isolate;
}

/* viewport + liste horizontale */
.krok-slider .krok-viewport{ overflow: hidden; }
.krok-slider ul.products{
  display:flex !important; flex-wrap:nowrap !important;
  gap: var(--gap) !important;
  overflow-x:auto !important;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling: touch;
  margin:0 !important; padding:0 .5rem !important;
}

/* cartes */
.krok-slider ul.products li.product{
  flex: 0 0 calc((100% - (var(--cols) - 1)*var(--gap)) / var(--cols));
  scroll-snap-align:start;
  background:#fff !important;
  border-radius:var(--card-radius) !important;
  padding:var(--card-pad) !important;
  margin:0 !important; box-sizing:border-box;
  box-shadow:0 2px 0 rgba(0,0,0,.04), 0 6px 12px rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.04);
}

/* images plus grandes */
.krok-slider ul.products li.product img{
  width:100%; height:auto;
  aspect-ratio: var(--img-ratio);
  object-fit: cover;
  border-radius: calc(var(--card-radius) - 4px);
  display:block; margin-bottom:.5rem;
}

/* titre + prix compacts (petit espace sous le prix) */
.krok-slider .woocommerce-loop-product__title{ 
  margin:.45rem 0 .25rem !important; text-align:center; color:#3d2614;
}
.krok-slider .price{
  margin:0 0 .25rem 0 !important; text-align:center; font-weight:600; color:#333;
}

/* masquer tout bouton "ajout panier" dans ce slider */
.krok-slider .button,
.krok-slider .wp-block-button,
.krok-slider .wp-block-button__link,
.krok-slider .wc-block-grid__product-add-to-cart{ display:none !important; }

/* flèches (une seule paire) */
.krok-arrow{
  position:absolute; top:50%; transform:translateY(-50%);
  z-index: 99999; width:44px; height:44px; line-height:44px;
  display:inline-flex; justify-content:center; align-items:center;
  background: rgba(255,189,89,.95); color:#542B15;
  border-radius:999px; font-size:28px; font-weight:700;
  cursor:pointer; user-select:none;
}
.krok-arrow--prev{ left:6px; }
.krok-arrow--next{ right:6px; }
.krok-arrow[aria-disabled="true"]{ opacity:.35; pointer-events:none; }

/* responsive colonnes */
@media (max-width: 900px){ .krok-slider{ --cols:4; } }
@media (max-width: 600px){ .krok-slider{ --cols:2; } }


/* Responsive colonnes */
@media (max-width: 900px){ .lfc-prod-slider{ --cols: 4; } }
@media (max-width: 600px){ .lfc-prod-slider{ --cols: 2; } }

/* === KROK SLIDER — flèches plus basses, style rond gris === */
.krok-slider{
  /* paramètres faciles à ajuster */
  --arrow-size: 44px;              /* diamètre du rond */
  --arrow-bottom: 20px;            /* distance au bas du slider */
  --arrow-bg: rgba(120,120,120,.9);/* gris (légèrement transparent) */
  --arrow-color: #fff;             /* chevron blanc */
}

.krok-slider .krok-arrow{
  top: auto !important;                    /* on ignore le centrage vertical */
  bottom: var(--arrow-bottom) !important;  /* -> plus bas */
  transform: none !important;

  width: var(--arrow-size);
  height: var(--arrow-size);
  line-height: var(--arrow-size);
  font-size: calc(var(--arrow-size) * .45) !important; /* chevron plus fin */
  color: var(--arrow-color) !important;
  background: var(--arrow-bg) !important;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);            /* léger liseré */
  box-shadow: 0 6px 14px rgba(0,0,0,.18), inset 0 -1px 0 rgba(0,0,0,.15);
  z-index: 99999;
}

.krok-slider .krok-arrow--prev{ left: 10px; }
.krok-slider .krok-arrow--next{ right: 10px; }

.krok-slider .krok-arrow:hover{ filter: brightness(1.05); }
.krok-slider .krok-arrow[aria-disabled="true"]{ opacity:.35; pointer-events:none; }

/* tailles adaptées en responsive */
@media (max-width: 900px){
  .krok-slider{ --arrow-size: 40px; --arrow-bottom: 14px; }
}
@media (max-width: 600px){
  .krok-slider{ --arrow-size: 36px; --arrow-bottom: 10px; }
}


/* --- KROK SLIDER : aligner la ligne "À partir de" --- */
.krok-slider{
  --title-lines: 3;      /* 2 ou 3 lignes selon tes titres */
  --title-lh: 1.25;      /* line-height du titre */
}

/* Cartes en colonne (sécurise la mise en page) */
.krok-slider ul.products li.product{
  display: flex;
  flex-direction: column;
}

/* Titre à hauteur fixe + clamp pour uniformiser */
.krok-slider .woocommerce-loop-product__title,
.krok-slider .wc-block-grid__product-title{
  line-height: var(--title-lh);
  display: -webkit-box;
  -webkit-line-clamp: var(--title-lines);
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(var(--title-lines) * var(--title-lh) * 1em); /* ← clé de l’alignement */
  margin: .45rem 0 .25rem !important;
  text-align: center;
}

/* La ligne "À partir de ..." sera donc exactement à la même hauteur */
.krok-slider .price,
.krok-slider .wc-block-grid__product-price{
  margin: 0 0 .25rem 0 !important;
  text-align: center;
  font-weight: 600;
}
