
/* ==========================================================
   Biscuithé Moderne v3 - PrestaShop 8.2.1
   CSS chargé via theme.yml + fallback direct dans head.tpl.
   ========================================================== */

:root {
  --bt-cream: #fff8ea;
  --bt-cream-deep: #f5e9d1;
  --bt-paper: #fffdf7;
  --bt-teal: #007a78;
  --bt-teal-dark: #005c5a;
  --bt-ink: #231b16;
  --bt-muted: #6c5a4a;
  --bt-biscuit: #c49348;
  --bt-biscuit-soft: #ead2a6;
  --bt-border: #e5d6ba;
  --bt-shadow-soft: 0 12px 35px rgba(35, 27, 22, .09);
  --bt-shadow: 0 22px 65px rgba(35, 27, 22, .14);
  --bt-radius: 30px;
}

html,
body {
  background: var(--bt-cream) !important;
  color: var(--bt-ink) !important;
}

body,
input,
select,
textarea,
button {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

h1, h2, h3, h4,
.h1, .h2, .h3, .h4,
.page-heading,
.page-title,
.product-title {
  font-family: Georgia, "Times New Roman", serif !important;
  color: var(--bt-ink);
  letter-spacing: -.035em;
}

a {
  color: var(--bt-teal);
}

a:hover {
  color: var(--bt-teal-dark);
  text-decoration: none !important;
}

#wrapper,
#content-wrapper,
.page-content,
#main,
.breadcrumb,
#wrapper .container {
  background: transparent !important;
}

/* Header */
#header {
  background:
    radial-gradient(circle at 12% 0%, rgba(196,147,72,.18), transparent 35%),
    var(--bt-cream) !important;
  border-bottom: 1px solid var(--bt-border) !important;
  box-shadow: 0 8px 28px rgba(35,27,22,.06) !important;
}

#header .header-nav,
#header .header-top,
#header .container,
#header .row {
  background: transparent !important;
}

#header .header-nav {
  border-bottom: 1px solid rgba(229,214,186,.75) !important;
  color: var(--bt-ink);
}

#header .header-top {
  padding: 28px 0 24px !important;
}

#header .logo,
#header img.logo,
#header a.logo img,
#header .brand img,
#header .logo img {
  width: auto !important;
  height: auto !important;
  max-width: 250px !important;
  max-height: 128px !important;
  object-fit: contain !important;
}

/* Menu */
#header .header-menu,
#header .nav-full-width,
#header .menu,
#header .menu-content,
#header #_desktop_top_menu,
#header .top-menu,
#header .top-menu > li,
#header .menu > ul,
#header .menu-content > ul {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

#header .nav-full-width,
#header .header-menu,
#header #_desktop_top_menu {
  border-top: 1px solid rgba(229,214,186,.8) !important;
}

#header .top-menu,
#header .menu > ul,
#header .menu-content > ul,
#header #_desktop_top_menu > ul {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 4px 12px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

#header .top-menu a,
#header .menu a,
#header .menu-content a,
#header #_desktop_top_menu a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 56px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--bt-ink) !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  text-transform: uppercase !important;
  letter-spacing: .025em !important;
  transition: all .18s ease !important;
}

#header .top-menu a:hover,
#header .menu a:hover,
#header .menu-content a:hover,
#header #_desktop_top_menu a:hover {
  color: var(--bt-teal) !important;
  background: rgba(255,253,247,.65) !important;
}

/* Panier */
#header .cart-preview {
  border-radius: 999px !important;
  background: var(--bt-ink) !important;
  color: #fff !important;
  padding: 10px 18px !important;
  min-height: 44px;
  display: inline-flex !important;
  align-items: center !important;
  box-shadow: 0 14px 30px rgba(35,27,22,.16);
}

#header .cart-preview a,
#header .cart-preview i,
#header .cart-preview span {
  color: #fff !important;
}

/* Recherche */
#search_widget,
.search-widget {
  position: relative !important;
  max-width: 520px;
}

#search_widget form,
.search-widget form {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

#search_widget input,
.search-widget input,
#header input[name="s"] {
  height: 58px !important;
  min-height: 58px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(35,27,22,.12) !important;
  background: rgba(255,253,247,.92) !important;
  color: var(--bt-ink) !important;
  padding: 0 74px 0 22px !important;
  box-shadow: 0 16px 34px rgba(35,27,22,.07) !important;
}

#search_widget button,
.search-widget button,
#header .search-widget form button[type="submit"],
#header button[type="submit"].search {
  position: absolute !important;
  top: 50% !important;
  right: 7px !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--bt-ink) !important;
  color: transparent !important;
  transform: translateY(-50%) !important;
  text-indent: -9999px !important;
  box-shadow: 0 12px 24px rgba(35,27,22,.18) !important;
  overflow: hidden !important;
}

#search_widget button::before,
.search-widget button::before,
#header button[type="submit"].search::before {
  content: "" !important;
  position: absolute;
  left: 13px;
  top: 11px;
  width: 17px;
  height: 17px;
  border: 4px solid #fff;
  border-radius: 50%;
  box-sizing: border-box;
}

#search_widget button::after,
.search-widget button::after,
#header button[type="submit"].search::after {
  content: "" !important;
  position: absolute;
  right: 10px;
  bottom: 13px;
  width: 14px;
  height: 4px;
  border-radius: 4px;
  background: #fff;
  transform: rotate(45deg);
}

#search_widget button i,
#search_widget button svg,
#search_widget button .material-icons,
.search-widget button i,
.search-widget button svg,
.search-widget button .material-icons {
  display: none !important;
}

/* Boutons */
.btn,
.btn-primary,
.add-to-cart,
.product-add-to-cart .btn,
button[type="submit"],
input[type="submit"] {
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--bt-teal) !important;
  color: #fff !important;
  font-weight: 850 !important;
  box-shadow: 0 14px 30px rgba(0,122,120,.18) !important;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease !important;
}

.btn:hover,
.btn-primary:hover,
.add-to-cart:hover,
.product-add-to-cart .btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--bt-teal-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(0,122,120,.22) !important;
}

.btn-secondary {
  background: var(--bt-paper) !important;
  border: 1px solid var(--bt-border) !important;
  color: var(--bt-ink) !important;
  box-shadow: none !important;
}

/* Accueil */
.bt-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(54px, 7vw, 112px) 16px;
  background:
    linear-gradient(120deg, rgba(255,248,234,.98), rgba(245,233,209,.92)),
    var(--bt-cream);
  border-bottom: 1px solid var(--bt-border);
}

.bt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    radial-gradient(circle at 20px 20px, var(--bt-biscuit) 1px, transparent 1.5px);
  background-size: 28px 28px;
}

.bt-hero__decor {
  position: absolute;
  border-radius: 999px;
  opacity: .18;
  pointer-events: none;
}

.bt-hero__decor--left {
  left: -120px;
  top: 80px;
  width: 360px;
  height: 360px;
  background: var(--bt-teal);
}

.bt-hero__decor--right {
  right: -160px;
  bottom: -150px;
  width: 440px;
  height: 440px;
  background: var(--bt-biscuit);
}

.bt-hero__inner,
.bt-section,
.bt-featured-product__inner,
.bt-boutique__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

.bt-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, .98fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
}

.bt-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 20px;
  padding: 9px 15px;
  border: 1px solid var(--bt-border);
  border-radius: 999px;
  background: rgba(255,253,247,.72);
  color: var(--bt-teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.bt-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  line-height: .93;
  color: var(--bt-ink);
}

.bt-lead {
  max-width: 660px;
  margin: 25px 0 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.72;
  color: var(--bt-muted);
}

.bt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.bt-btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 25px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none !important;
}

.bt-btn--primary {
  background: var(--bt-teal);
  color: #fff !important;
  box-shadow: 0 16px 35px rgba(0,122,120,.2);
}

.bt-btn--primary:hover {
  background: var(--bt-teal-dark);
  color: #fff !important;
}

.bt-btn--ghost {
  background: rgba(255,253,247,.82);
  border: 1px solid var(--bt-border);
  color: var(--bt-ink) !important;
}

.bt-btn--light {
  background: #fff !important;
  color: var(--bt-teal) !important;
}

.bt-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin-top: 34px;
  max-width: 620px;
}

.bt-hero__stats span {
  display: block;
  border: 1px solid var(--bt-border);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255,253,247,.7);
}

.bt-hero__stats strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  color: var(--bt-ink);
}

.bt-hero__stats small {
  display: block;
  margin-top: 4px;
  color: var(--bt-muted);
  line-height: 1.35;
}

.bt-hero__visual {
  position: relative;
  padding: 13px;
  border: 1px solid var(--bt-border);
  border-radius: 38px;
  background: rgba(255,253,247,.72);
  box-shadow: var(--bt-shadow);
  transform: rotate(1.2deg);
}

.bt-hero__visual img {
  display: block;
  width: 100%;
  border-radius: 28px;
  transform: rotate(-1.2deg);
}

.bt-floating-card {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  padding: 20px;
  border: 1px solid var(--bt-border);
  border-radius: 24px;
  background: rgba(255,248,234,.96);
  box-shadow: 0 15px 35px rgba(35,27,22,.14);
}

.bt-floating-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  color: var(--bt-ink);
}

.bt-floating-card span {
  display: block;
  margin-top: 6px;
  color: var(--bt-muted);
  line-height: 1.5;
}

.bt-section {
  padding: clamp(54px, 6vw, 92px) 16px;
}

.bt-title {
  max-width: 780px;
  margin: 0 auto 40px;
  text-align: center;
}

.bt-title--left {
  margin-left: 0;
  text-align: left;
}

.bt-title span,
.bt-univers-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--bt-teal);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.bt-title h2,
.bt-featured-product h2,
.bt-boutique h2 {
  margin: 0;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.02;
}

.bt-title p,
.bt-featured-product p,
.bt-boutique p {
  margin: 18px 0 0;
  color: var(--bt-muted);
  font-size: 17px;
  line-height: 1.75;
}

.bt-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}

.bt-values article {
  padding: 28px;
  border: 1px solid var(--bt-border);
  border-radius: var(--bt-radius);
  background: rgba(255,253,247,.88);
  box-shadow: var(--bt-shadow-soft);
}

.bt-values img {
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
}

.bt-values h3 {
  margin: 0;
  font-size: 27px;
}

.bt-values p {
  margin: 12px 0 0;
  color: var(--bt-muted);
  line-height: 1.7;
}

.bt-univers {
  max-width: none;
  background: var(--bt-cream-deep);
  border-top: 1px solid var(--bt-border);
  border-bottom: 1px solid var(--bt-border);
}

.bt-univers > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.bt-univers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}

.bt-univers-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--bt-border);
  border-radius: 34px;
  background: var(--bt-paper);
  color: inherit !important;
  text-decoration: none !important;
  box-shadow: var(--bt-shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}

.bt-univers-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--bt-shadow);
}

.bt-univers-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
}

.bt-univers-card div {
  padding: 24px;
}

.bt-univers-card h3 {
  margin: 0;
  font-size: 28px;
}

.bt-univers-card p {
  margin: 12px 0 0;
  color: var(--bt-muted);
  line-height: 1.65;
}

.bt-featured-product {
  padding: clamp(54px, 7vw, 96px) 16px;
  background: var(--bt-teal);
  color: #fff;
}

.bt-featured-product__inner {
  display: grid;
  grid-template-columns: minmax(320px,.95fr) minmax(0,1.05fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.bt-featured-product h2,
.bt-featured-product .bt-kicker {
  color: #fff;
}

.bt-featured-product p {
  color: rgba(255,255,255,.82);
}

.bt-featured-product__image {
  padding: 13px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 36px;
  background: rgba(255,255,255,.12);
  box-shadow: 0 25px 70px rgba(0,0,0,.15);
}

.bt-featured-product__image img {
  display: block;
  width: 100%;
  border-radius: 26px;
}

.bt-boutique {
  padding: clamp(54px, 7vw, 92px) 16px;
}

.bt-boutique__inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

.bt-boutique__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

.bt-boutique__cards article {
  padding: 24px;
  border: 1px solid var(--bt-border);
  border-radius: 26px;
  background: var(--bt-paper);
  box-shadow: var(--bt-shadow-soft);
}

.bt-boutique__cards strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  color: var(--bt-ink);
  margin-bottom: 10px;
}

.bt-boutique__cards span {
  color: var(--bt-muted);
  line-height: 1.6;
}

/* Produits */
.products,
#js-product-list .products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  gap: 26px !important;
}

.product-miniature,
.product-miniature .thumbnail-container {
  height: auto !important;
  overflow: hidden !important;
  border: 1px solid var(--bt-border) !important;
  border-radius: 30px !important;
  background: var(--bt-paper) !important;
  box-shadow: var(--bt-shadow-soft) !important;
  transition: transform .2s ease, box-shadow .2s ease !important;
}

.product-miniature:hover,
.product-miniature .thumbnail-container:hover {
  transform: translateY(-4px);
  box-shadow: var(--bt-shadow) !important;
}

.product-miniature .product-description {
  position: relative !important;
  height: auto !important;
  padding: 20px !important;
  background: var(--bt-paper) !important;
}

.product-miniature .product-title a {
  color: var(--bt-ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
}

.product-miniature .product-price-and-shipping,
.product-miniature .price {
  color: var(--bt-teal) !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.block-category,
.card,
.tabs,
.product-information,
.product-actions,
.cart-grid-body,
.cart-grid-right,
.checkout-step {
  border: 1px solid var(--bt-border) !important;
  border-radius: 28px !important;
  background: var(--bt-paper) !important;
  box-shadow: var(--bt-shadow-soft) !important;
}

.block-category {
  padding: 30px !important;
}

.product-cover img,
.product-images > li.thumb-container > .thumb {
  border: 1px solid var(--bt-border) !important;
  border-radius: 24px !important;
  background: var(--bt-paper);
}

.current-price,
.product-prices .current-price {
  color: var(--bt-teal) !important;
  font-weight: 950 !important;
}

.form-control,
.input-group input,
.product-variants-item select,
.product-variants-item input {
  border: 1px solid var(--bt-border) !important;
  border-radius: 16px !important;
  background: var(--bt-paper) !important;
  color: var(--bt-ink) !important;
}

/* Footer */
#footer {
  background:
    radial-gradient(circle at 15% 20%, rgba(0,122,120,.22), transparent 38%),
    var(--bt-ink) !important;
  color: #f4ead8 !important;
  border-top: 0 !important;
}

#footer a,
#footer .h3,
#footer .h4,
#footer h3,
#footer h4 {
  color: #fff !important;
}

/* Responsive */
@media (max-width: 991px) {
  #header .header-top .container > .row,
  #header .header-top .row {
    display: block !important;
  }

  #header .logo,
  #header img.logo,
  #header a.logo img {
    max-width: 205px !important;
    max-height: 105px !important;
    margin: 0 auto 16px !important;
  }

  #search_widget,
  .search-widget {
    width: 100% !important;
    max-width: none !important;
    margin: 14px 0 !important;
  }

  .bt-hero__inner,
  .bt-featured-product__inner,
  .bt-boutique__inner {
    grid-template-columns: 1fr;
  }

  .bt-values,
  .bt-univers-grid,
  .bt-boutique__cards,
  .products,
  #js-product-list .products {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }

  .bt-title--left {
    text-align: center;
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .bt-hero {
    padding-top: 42px;
  }

  .bt-hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .bt-hero__stats,
  .bt-values,
  .bt-univers-grid,
  .bt-boutique__cards,
  .products,
  #js-product-list .products {
    grid-template-columns: 1fr !important;
  }

  .bt-hero__actions,
  .bt-btn {
    width: 100%;
  }

  .bt-floating-card {
    position: static;
    margin-top: 12px;
  }
}


/* ==========================================================
   v4 - Corrections demandées
   ========================================================== */

/* Logo centré en haut */
#header .header-top .container > .row,
#header .header-top .row {
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr) !important;
  align-items: center !important;
  gap: 24px !important;
}

#header #_desktop_logo,
#header .header-logo {
  grid-column: 2 !important;
  justify-self: center !important;
  text-align: center !important;
  width: auto !important;
  max-width: 100% !important;
}

#header #_desktop_logo a,
#header .header-logo a,
#header .logo {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: auto !important;
  max-width: 100% !important;
}

#header .header-top-right,
#header .position-static {
  grid-column: 3 !important;
  justify-self: end !important;
  width: auto !important;
}

/* Taille logo desktop */
#header .logo,
#header img.logo,
#header a.logo img,
#header .brand img,
#header .logo img {
  display: block !important;
  width: auto !important;
  max-width: min(260px, 28vw) !important;
  max-height: 132px !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Loupe parfaitement recentrée dans son bouton */
#search_widget button,
.search-widget button,
#header .search-widget form button[type="submit"],
#header button[type="submit"].search {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#search_widget button::before,
.search-widget button::before,
#header button[type="submit"].search::before {
  left: 50% !important;
  top: 47% !important;
  width: 17px !important;
  height: 17px !important;
  transform: translate(-50%, -50%) translate(-2px, -2px) !important;
  border-width: 4px !important;
}

#search_widget button::after,
.search-widget button::after,
#header button[type="submit"].search::after {
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: 14px !important;
  height: 4px !important;
  transform: translate(-50%, -50%) translate(8px, 8px) rotate(45deg) !important;
  transform-origin: center !important;
}

/* Footer : réseaux sociaux lisibles */
#footer .block-social,
#footer .socialfollow,
#footer .social-follow,
#footer .social-sharing,
#footer .social-links {
  margin-top: 16px !important;
}

#footer .block-social ul,
#footer .socialfollow ul,
#footer .social-follow ul,
#footer .social-sharing ul,
#footer .social-links {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
}

#footer .block-social li,
#footer .socialfollow li,
#footer .social-follow li,
#footer .social-sharing li {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  background: transparent !important;
}

#footer .block-social li a,
#footer .socialfollow li a,
#footer .social-follow li a,
#footer .social-sharing li a,
#footer a.facebook,
#footer a.instagram,
#footer .facebook a,
#footer .instagram a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px !important;
  height: 44px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, .24) !important;
  background: var(--bt-teal) !important;
  color: #fff !important;
  opacity: 1 !important;
  text-indent: 0 !important;
  overflow: visible !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18) !important;
}

#footer .block-social li a::before,
#footer .socialfollow li a::before,
#footer .social-follow li a::before,
#footer .social-sharing li a::before,
#footer .facebook a::before,
#footer .instagram a::before {
  color: #fff !important;
  opacity: 1 !important;
}

/* Ajout d'un libellé lisible si le module masque les icônes */
#footer .facebook a::after,
#footer a.facebook::after {
  content: "Facebook" !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-indent: 0 !important;
}

#footer .instagram a::after,
#footer a.instagram::after {
  content: "Instagram" !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-indent: 0 !important;
}

#footer .block-social li a:hover,
#footer .socialfollow li a:hover,
#footer .social-follow li a:hover,
#footer .social-sharing li a:hover,
#footer .facebook a:hover,
#footer .instagram a:hover {
  background: #fff !important;
  color: var(--bt-teal) !important;
}

#footer .facebook a:hover::after,
#footer a.facebook:hover::after,
#footer .instagram a:hover::after,
#footer a.instagram:hover::after,
#footer .block-social li a:hover::before,
#footer .socialfollow li a:hover::before,
#footer .social-follow li a:hover::before,
#footer .social-sharing li a:hover::before {
  color: var(--bt-teal) !important;
}

/* Bloc horaires */
.bt-boutique__cards article small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--bt-muted);
}

/* Mobile : logo contenu dans sa zone */
@media (max-width: 991px) {
  #header .header-top .container > .row,
  #header .header-top .row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  #header #_desktop_logo,
  #header .header-logo,
  #header .header-top-right,
  #header .position-static {
    grid-column: auto !important;
    justify-self: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  #header .logo,
  #header img.logo,
  #header a.logo img,
  #header .brand img,
  #header .logo img {
    max-width: min(210px, 72vw) !important;
    max-height: 105px !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto 6px !important;
    object-fit: contain !important;
  }

  #search_widget,
  .search-widget,
  #header .header-top .search-widget,
  #header .header-top #search_widget {
    width: 100% !important;
    max-width: 100% !important;
    justify-self: auto !important;
    margin: 8px 0 0 !important;
  }

  #search_widget input,
  .search-widget input,
  #header input[name="s"] {
    height: 52px !important;
    min-height: 52px !important;
    padding-right: 64px !important;
  }

  #search_widget button,
  .search-widget button,
  #header .search-widget form button[type="submit"],
  #header button[type="submit"].search {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }
}

@media (max-width: 420px) {
  #header .logo,
  #header img.logo,
  #header a.logo img,
  #header .brand img,
  #header .logo img {
    max-width: 68vw !important;
    max-height: 92px !important;
  }
}


/* ==========================================================
   v5 - Header cohérent : logo centré, catégories en dessous,
   recherche centrée sous le menu, loupe forcée et centrée.
   ========================================================== */

/* Zone principale du header : empilement propre */
body #header .header-top {
  padding: 30px 0 24px !important;
}

body #header .header-top .container > .row,
body #header .header-top .row {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
}

/* Logo parfaitement centré */
body #header #_desktop_logo,
body #header .header-logo {
  order: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
  justify-self: center !important;
}

body #header #_desktop_logo a,
body #header .header-logo a,
body #header .logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: 100% !important;
}

body #header .logo,
body #header img.logo,
body #header a.logo img,
body #header .brand img,
body #header .logo img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: min(270px, 42vw) !important;
  max-height: 132px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

/* Tout ce qui contient menu + recherche passe sous le logo */
body #header .header-top-right,
body #header .position-static {
  order: 2 !important;
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  text-align: center !important;
}

/* Menu catégories sous le logo */
body #header #_desktop_top_menu,
body #header .top-menu,
body #header .menu,
body #header .menu-content,
body #header .header-menu,
body #header .nav-full-width {
  order: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body #header .top-menu,
body #header .menu > ul,
body #header .menu-content > ul,
body #header #_desktop_top_menu > ul {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 4px 16px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 4px 0 0 !important;
  border-top: 1px solid rgba(229, 214, 186, .9) !important;
  background: transparent !important;
}

body #header .top-menu a,
body #header .menu a,
body #header .menu-content a,
body #header #_desktop_top_menu a {
  min-height: 46px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  background: transparent !important;
}

/* Recherche centrée sous les catégories */
body #header #search_widget,
body #header .search-widget {
  order: 2 !important;
  width: min(420px, 92vw) !important;
  max-width: min(420px, 92vw) !important;
  margin: 0 auto !important;
  position: relative !important;
}

body #header #search_widget form,
body #header .search-widget form {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

body #header #search_widget input,
body #header .search-widget input,
body #header input[name="s"] {
  width: 100% !important;
  height: 54px !important;
  min-height: 54px !important;
  padding: 0 68px 0 20px !important;
  border-radius: 18px !important;
  line-height: 54px !important;
}

/* Bouton de recherche : on neutralise totalement l'icône native */
body #header #search_widget form button,
body #header .search-widget form button,
body #header #search_widget form button[type="submit"],
body #header .search-widget form button[type="submit"],
body #header button[type="submit"].search {
  position: absolute !important;
  top: 50% !important;
  right: 7px !important;
  left: auto !important;
  display: block !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--bt-ink) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 22px rgba(35, 27, 22, .18) !important;
  transform: translateY(-50%) !important;
  z-index: 5 !important;
}

/* Cache tous les pictos/texte natifs */
body #header #search_widget form button *,
body #header .search-widget form button *,
body #header button[type="submit"].search * {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Loupe dessinée en CSS, centrée */
body #header #search_widget form button::before,
body #header .search-widget form button::before,
body #header button[type="submit"].search::before {
  content: "" !important;
  position: absolute !important;
  left: 13px !important;
  top: 11px !important;
  width: 15px !important;
  height: 15px !important;
  border: 4px solid #fff !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
  background: transparent !important;
  transform: none !important;
}

body #header #search_widget form button::after,
body #header .search-widget form button::after,
body #header button[type="submit"].search::after {
  content: "" !important;
  position: absolute !important;
  left: 24px !important;
  top: 27px !important;
  width: 13px !important;
  height: 4px !important;
  border-radius: 4px !important;
  background: #fff !important;
  transform: rotate(45deg) !important;
  transform-origin: left center !important;
}

/* Mobile : logo plus contenu et menu/recherche empilés */
@media (max-width: 991px) {
  body #header .header-top {
    padding: 22px 0 18px !important;
  }

  body #header .logo,
  body #header img.logo,
  body #header a.logo img,
  body #header .brand img,
  body #header .logo img {
    max-width: min(220px, 72vw) !important;
    max-height: 104px !important;
  }

  body #header .top-menu,
  body #header .menu > ul,
  body #header .menu-content > ul,
  body #header #_desktop_top_menu > ul {
    justify-content: center !important;
    gap: 2px 8px !important;
  }

  body #header .top-menu a,
  body #header .menu a,
  body #header .menu-content a,
  body #header #_desktop_top_menu a {
    min-height: 40px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
  }

  body #header #search_widget,
  body #header .search-widget {
    width: min(380px, 92vw) !important;
    max-width: min(380px, 92vw) !important;
  }
}

@media (max-width: 420px) {
  body #header .logo,
  body #header img.logo,
  body #header a.logo img,
  body #header .brand img,
  body #header .logo img {
    max-width: min(190px, 68vw) !important;
    max-height: 88px !important;
  }
}


/* ==========================================================
   v6 - Correction compréhension zone de recherche
   - recherche desktop remise en haut à droite
   - catégories conservées sous le logo
   - icône loupe native PrestaShop recentrée et transformée en bouton
   ========================================================== */

/* Header : on conserve logo + menu centré, mais la recherche sort du flux */
@media (min-width: 992px) {
  body #header .header-top {
    position: relative !important;
    padding: 30px 0 118px !important;
  }

  body #header .header-top .container,
  body #header .header-top .container > .row,
  body #header .header-top .row {
    position: static !important;
  }

  body #header .header-top .container > .row,
  body #header .header-top .row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
  }

  body #header #_desktop_logo,
  body #header .header-logo {
    order: 1 !important;
    width: 100% !important;
    text-align: center !important;
  }

  body #header .header-top-right,
  body #header .position-static {
    order: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    text-align: center !important;
  }

  /* Menu sous le logo */
  body #header #_desktop_top_menu,
  body #header .top-menu,
  body #header .menu,
  body #header .menu-content,
  body #header .header-menu,
  body #header .nav-full-width {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body #header .top-menu,
  body #header .menu > ul,
  body #header .menu-content > ul,
  body #header #_desktop_top_menu > ul {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px 18px !important;
    margin: 0 auto !important;
    padding: 8px 0 0 !important;
    border-top: 1px solid rgba(229, 214, 186, .9) !important;
    background: transparent !important;
  }

  /* Recherche en haut à droite */
  body #header #search_widget,
  body #header .search-widget {
    position: absolute !important;
    right: max(28px, calc((100vw - 1180px) / 2)) !important;
    top: 42px !important;
    width: min(360px, 31vw) !important;
    max-width: min(360px, 31vw) !important;
    margin: 0 !important;
    z-index: 20 !important;
    order: initial !important;
  }

  body #header #search_widget form,
  body #header .search-widget form {
    position: relative !important;
    display: block !important;
    width: 100% !important;
  }
}

/* Input de recherche */
body #header #search_widget input,
body #header .search-widget input,
body #header input[name="s"] {
  width: 100% !important;
  height: 54px !important;
  min-height: 54px !important;
  padding: 0 68px 0 20px !important;
  border-radius: 18px !important;
  line-height: 54px !important;
}

/* PrestaShop Classic utilise souvent <i class="material-icons search">search</i>, pas un bouton */
body #header #search_widget .material-icons.search,
body #header .search-widget .material-icons.search,
body #header #search_widget i.search,
body #header .search-widget i.search {
  position: absolute !important;
  top: 50% !important;
  right: 7px !important;
  left: auto !important;
  display: block !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--bt-ink) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  transform: translateY(-50%) !important;
  z-index: 6 !important;
  box-shadow: 0 10px 22px rgba(35, 27, 22, .18) !important;
}

/* Loupe dessinée dans l'icône native */
body #header #search_widget .material-icons.search::before,
body #header .search-widget .material-icons.search::before,
body #header #search_widget i.search::before,
body #header .search-widget i.search::before {
  content: "" !important;
  position: absolute !important;
  left: 13px !important;
  top: 11px !important;
  width: 15px !important;
  height: 15px !important;
  border: 4px solid #fff !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
  background: transparent !important;
  transform: none !important;
}

body #header #search_widget .material-icons.search::after,
body #header .search-widget .material-icons.search::after,
body #header #search_widget i.search::after,
body #header .search-widget i.search::after {
  content: "" !important;
  position: absolute !important;
  left: 24px !important;
  top: 27px !important;
  width: 13px !important;
  height: 4px !important;
  border-radius: 4px !important;
  background: #fff !important;
  transform: rotate(45deg) !important;
  transform-origin: left center !important;
}

/* Si le module utilise un bouton au lieu du <i>, même rendu */
body #header #search_widget form button,
body #header .search-widget form button,
body #header #search_widget form button[type="submit"],
body #header .search-widget form button[type="submit"],
body #header button[type="submit"].search {
  position: absolute !important;
  top: 50% !important;
  right: 7px !important;
  left: auto !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  border-radius: 999px !important;
  transform: translateY(-50%) !important;
  z-index: 7 !important;
}

/* Mobile : recherche en dessous pour éviter de casser l'affichage */
@media (max-width: 991px) {
  body #header #search_widget,
  body #header .search-widget {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: min(420px, 92vw) !important;
    max-width: min(420px, 92vw) !important;
    margin: 8px auto 0 !important;
    z-index: 2 !important;
  }

  body #header #search_widget .material-icons.search,
  body #header .search-widget .material-icons.search,
  body #header #search_widget i.search,
  body #header .search-widget i.search {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }
}


/* ==========================================================
   v7 - Loupe : on reprend le visuel natif PrestaShop/Material Icons
   et on corrige uniquement son positionnement.
   ========================================================== */

/* Champ de recherche : conserve l'emplacement en haut à droite de la v6 */
body #header #search_widget input,
body #header .search-widget input,
body #header input[name="s"] {
  padding-right: 58px !important;
}

/* Le bouton ne doit plus devenir une pastille dessinée en CSS */
body #header #search_widget form button,
body #header .search-widget form button,
body #header #search_widget form button[type="submit"],
body #header .search-widget form button[type="submit"],
body #header button[type="submit"].search {
  position: absolute !important;
  top: 50% !important;
  right: 18px !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #6f7478 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-indent: 0 !important;
  overflow: visible !important;
  transform: translateY(-50%) !important;
  z-index: 8 !important;
}

/* On supprime la loupe redessinée par les versions précédentes */
body #header #search_widget form button::before,
body #header .search-widget form button::before,
body #header button[type="submit"].search::before,
body #header #search_widget form button::after,
body #header .search-widget form button::after,
body #header button[type="submit"].search::after {
  content: none !important;
  display: none !important;
}

/* On réaffiche l'icône native de PrestaShop et on la centre verticalement */
body #header #search_widget form button *,
body #header .search-widget form button *,
body #header button[type="submit"].search * {
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body #header #search_widget .material-icons.search,
body #header .search-widget .material-icons.search,
body #header #search_widget i.search,
body #header .search-widget i.search,
body #header #search_widget button .material-icons,
body #header .search-widget button .material-icons {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #6f7478 !important;
  font-family: "Material Icons" !important;
  font-size: 30px !important;
  line-height: 30px !important;
  text-indent: 0 !important;
  overflow: visible !important;
  transform: none !important;
}

/* On supprime les pseudo-éléments appliqués directement sur l'icône native */
body #header #search_widget .material-icons.search::before,
body #header .search-widget .material-icons.search::before,
body #header #search_widget i.search::before,
body #header .search-widget i.search::before,
body #header #search_widget button .material-icons::before,
body #header .search-widget button .material-icons::before,
body #header #search_widget .material-icons.search::after,
body #header .search-widget .material-icons.search::after,
body #header #search_widget i.search::after,
body #header .search-widget i.search::after,
body #header #search_widget button .material-icons::after,
body #header .search-widget button .material-icons::after {
  content: none !important;
  display: none !important;
}

/* Cas où l'icône n'est pas dans un bouton mais posée directement dans le formulaire */
body #header #search_widget form > .material-icons.search,
body #header .search-widget form > .material-icons.search,
body #header #search_widget form > i.search,
body #header .search-widget form > i.search {
  position: absolute !important;
  top: 50% !important;
  right: 18px !important;
  transform: translateY(-50%) !important;
  z-index: 8 !important;
}

/* Sur mobile : même visuel, seulement plus compact */
@media (max-width: 991px) {
  body #header #search_widget form button,
  body #header .search-widget form button,
  body #header #search_widget form button[type="submit"],
  body #header .search-widget form button[type="submit"],
  body #header button[type="submit"].search {
    right: 16px !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
  }

  body #header #search_widget .material-icons.search,
  body #header .search-widget .material-icons.search,
  body #header #search_widget i.search,
  body #header .search-widget i.search,
  body #header #search_widget button .material-icons,
  body #header .search-widget button .material-icons {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    font-size: 28px !important;
    line-height: 28px !important;
  }
}


/* ==========================================================
   v8 - Suppression du lien "Contactez-nous" dans le haut de page
   Le lien reste disponible dans le footer / bas de page.
   ========================================================== */

#header .header-nav #contact-link,
#header .header-nav .contact-link,
#header .header-nav a[href*="contact"],
#header .header-nav a[href*="nous-contacter"],
#header .header-nav a[href*="contactez-nous"] {
  display: none !important;
}

/* Si le thème laisse une colonne vide après suppression */
#header .header-nav .left-nav {
  min-height: 0 !important;
}


/* ==========================================================
   v9 - Retour du logo en haut à gauche
   + suppression réelle du contact haut via templates/_partials/header.tpl
   ========================================================== */

@media (min-width: 992px) {
  body #header .header-nav .row {
    display: block !important;
  }

  body #header .header-nav .right-nav {
    text-align: right !important;
    width: 100% !important;
  }

  body #header .header-top {
    position: relative !important;
    padding: 28px 0 30px !important;
  }

  body #header .header-top .container > .row,
  body #header .header-top .row {
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr) !important;
    grid-template-areas: "logo navigation" !important;
    align-items: center !important;
    gap: 28px !important;
  }

  body #header #_desktop_logo,
  body #header .header-logo {
    grid-area: logo !important;
    grid-column: auto !important;
    order: initial !important;
    justify-self: start !important;
    align-self: center !important;
    width: auto !important;
    max-width: 280px !important;
    text-align: left !important;
  }

  body #header #_desktop_logo a,
  body #header .header-logo a,
  body #header .logo {
    display: inline-flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  body #header .logo,
  body #header img.logo,
  body #header a.logo img,
  body #header .brand img,
  body #header .logo img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 230px !important;
    max-height: 112px !important;
    object-fit: contain !important;
    margin: 0 !important;
  }

  body #header .header-top-right,
  body #header .position-static {
    grid-area: navigation !important;
    grid-column: auto !important;
    order: initial !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    gap: 12px !important;
    text-align: right !important;
    padding-right: 0 !important;
  }

  /* Menu sur la droite du logo, cohérent avec la recherche */
  body #header #_desktop_top_menu,
  body #header .top-menu,
  body #header .menu,
  body #header .menu-content,
  body #header .header-menu,
  body #header .nav-full-width {
    order: 1 !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body #header .top-menu,
  body #header .menu > ul,
  body #header .menu-content > ul,
  body #header #_desktop_top_menu > ul {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 4px 16px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 0 !important;
    background: transparent !important;
  }

  /* Recherche à droite, sous le menu dans la zone de droite */
  body #header #search_widget,
  body #header .search-widget {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    order: 2 !important;
    width: min(360px, 100%) !important;
    max-width: 360px !important;
    margin: 0 !important;
    z-index: 20 !important;
  }

  body #header #search_widget form,
  body #header .search-widget form {
    position: relative !important;
    display: block !important;
    width: 100% !important;
  }
}

/* On conserve la loupe native de la v7, correctement placée */
body #header #search_widget input,
body #header .search-widget input,
body #header input[name="s"] {
  padding-right: 58px !important;
}

body #header #search_widget form button,
body #header .search-widget form button,
body #header #search_widget form button[type="submit"],
body #header .search-widget form button[type="submit"],
body #header button[type="submit"].search {
  right: 18px !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
}

body #header #search_widget form button::before,
body #header .search-widget form button::before,
body #header button[type="submit"].search::before,
body #header #search_widget form button::after,
body #header .search-widget form button::after,
body #header button[type="submit"].search::after {
  content: none !important;
  display: none !important;
}

body #header #search_widget .material-icons.search,
body #header .search-widget .material-icons.search,
body #header #search_widget i.search,
body #header .search-widget i.search,
body #header #search_widget button .material-icons,
body #header .search-widget button .material-icons {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  color: #6f7478 !important;
  font-family: "Material Icons" !important;
  font-size: 30px !important;
  line-height: 30px !important;
  text-indent: 0 !important;
  overflow: visible !important;
  transform: none !important;
}

/* Mobile : logo contenu, centré uniquement sur mobile pour éviter les débords */
@media (max-width: 991px) {
  body #header .header-top .container > .row,
  body #header .header-top .row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }

  body #header #_desktop_logo,
  body #header .header-logo {
    width: 100% !important;
    text-align: center !important;
  }

  body #header .logo,
  body #header img.logo,
  body #header a.logo img,
  body #header .brand img,
  body #header .logo img {
    max-width: min(210px, 72vw) !important;
    max-height: 100px !important;
    margin: 0 auto !important;
  }
}


/* ==========================================================
   v10 - Header harmonieux avec le logo 1200x240 intégré
   Structure desktop :
   [Logo]  [Catégories centrées]  [Recherche à droite]
   Barre haute : Connexion / Panier uniquement
   ========================================================== */

/* Barre haute : plus compacte, Connexion/Panier à droite */
body #header .header-nav {
  min-height: 48px !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(229, 214, 186, .95) !important;
}

body #header .header-nav .container,
body #header .header-nav .row {
  min-height: 48px !important;
}

body #header .header-nav .right-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 16px !important;
  min-height: 48px !important;
  text-align: right !important;
}

/* Header principal compact */
@media (min-width: 992px) {
  body #header .header-top {
    position: relative !important;
    padding: 18px 0 20px !important;
    min-height: 112px !important;
  }

  body #header .header-top .container > .row,
  body #header .header-top .row,
  body #header .bt-header-row {
    display: grid !important;
    grid-template-columns: minmax(270px, 320px) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 28px !important;
    min-height: 74px !important;
  }

  /* Logo à gauche, intégré proprement */
  body #header #_desktop_logo {
    grid-column: 1 !important;
    justify-self: start !important;
    align-self: center !important;
    width: 100% !important;
    max-width: 320px !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
  }

  body #header .bt-logo-link,
  body #header #_desktop_logo a,
  body #header .header-logo a,
  body #header .logo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  body #header .bt-logo-img,
  body #header .logo,
  body #header img.logo,
  body #header a.logo img,
  body #header .brand img,
  body #header .logo img {
    display: block !important;
    width: 310px !important;
    max-width: 310px !important;
    height: auto !important;
    max-height: 72px !important;
    object-fit: contain !important;
    object-position: left center !important;
    margin: 0 !important;
  }

  /* Zone droite : catégories + recherche dans une seule ligne harmonieuse */
  body #header .header-top-right,
  body #header .position-static,
  body #header .bt-header-tools {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px) !important;
    align-items: center !important;
    gap: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
  }

  /* Catégories intégrées au centre */
  body #header #_desktop_top_menu,
  body #header .top-menu,
  body #header .menu,
  body #header .menu-content,
  body #header .header-menu,
  body #header .nav-full-width {
    grid-column: 1 !important;
    justify-self: center !important;
    align-self: center !important;
    order: initial !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body #header .top-menu,
  body #header .menu > ul,
  body #header .menu-content > ul,
  body #header #_desktop_top_menu > ul {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 4px 18px !important;
    width: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body #header .top-menu a,
  body #header .menu a,
  body #header .menu-content a,
  body #header #_desktop_top_menu a {
    min-height: 42px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    line-height: 42px !important;
  }

  /* Recherche à droite, sans créer de grand espace vertical */
  body #header #search_widget,
  body #header .search-widget {
    grid-column: 2 !important;
    justify-self: end !important;
    align-self: center !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: 340px !important;
    max-width: 340px !important;
    margin: 0 !important;
    z-index: 5 !important;
  }

  body #header #search_widget form,
  body #header .search-widget form {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body #header #search_widget input,
  body #header .search-widget input,
  body #header input[name="s"] {
    height: 52px !important;
    min-height: 52px !important;
    line-height: 52px !important;
    padding: 0 58px 0 18px !important;
    border-radius: 18px !important;
  }
}

/* Loupe native conservée et bien placée */
body #header #search_widget form button,
body #header .search-widget form button,
body #header #search_widget form button[type="submit"],
body #header .search-widget form button[type="submit"],
body #header button[type="submit"].search {
  position: absolute !important;
  top: 50% !important;
  right: 16px !important;
  left: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #667078 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  text-indent: 0 !important;
  overflow: visible !important;
  transform: translateY(-50%) !important;
  z-index: 8 !important;
}

body #header #search_widget form button::before,
body #header .search-widget form button::before,
body #header button[type="submit"].search::before,
body #header #search_widget form button::after,
body #header .search-widget form button::after,
body #header button[type="submit"].search::after {
  content: none !important;
  display: none !important;
}

body #header #search_widget form button *,
body #header .search-widget form button *,
body #header button[type="submit"].search * {
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body #header #search_widget .material-icons.search,
body #header .search-widget .material-icons.search,
body #header #search_widget i.search,
body #header .search-widget i.search,
body #header #search_widget button .material-icons,
body #header .search-widget button .material-icons {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  color: #667078 !important;
  font-family: "Material Icons" !important;
  font-size: 30px !important;
  line-height: 30px !important;
  text-indent: 0 !important;
  overflow: visible !important;
  transform: none !important;
}

body #header #search_widget .material-icons.search::before,
body #header .search-widget .material-icons.search::before,
body #header #search_widget i.search::before,
body #header .search-widget i.search::before,
body #header #search_widget button .material-icons::before,
body #header .search-widget button .material-icons::before,
body #header #search_widget .material-icons.search::after,
body #header .search-widget .material-icons.search::after,
body #header #search_widget i.search::after,
body #header .search-widget i.search::after,
body #header #search_widget button .material-icons::after,
body #header .search-widget button .material-icons::after {
  content: none !important;
  display: none !important;
}

/* Cas où l'icône native est directement dans le formulaire */
body #header #search_widget form > .material-icons.search,
body #header .search-widget form > .material-icons.search,
body #header #search_widget form > i.search,
body #header .search-widget form > i.search {
  position: absolute !important;
  top: 50% !important;
  right: 16px !important;
  transform: translateY(-50%) !important;
  z-index: 8 !important;
}

/* Mobile : header compact, logo lisible, recherche et catégories propres */
@media (max-width: 991px) {
  body #header .header-top {
    padding: 14px 0 18px !important;
    min-height: 0 !important;
  }

  body #header .header-top .container > .row,
  body #header .header-top .row,
  body #header .bt-header-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 0 !important;
  }

  body #header #_desktop_logo,
  body #header .header-logo,
  body #header #_mobile_logo,
  body #header .top-logo {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
  }

  body #header .bt-logo-img,
  body #header .logo,
  body #header img.logo,
  body #header a.logo img,
  body #header .brand img,
  body #header .logo img,
  body #header #_mobile_logo img {
    width: auto !important;
    max-width: min(180px, 56vw) !important;
    max-height: 46px !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

  body #header .header-top-right,
  body #header .position-static,
  body #header .bt-header-tools {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }

  body #header #search_widget,
  body #header .search-widget {
    order: 1 !important;
    position: relative !important;
    width: min(420px, 92vw) !important;
    max-width: min(420px, 92vw) !important;
    margin: 0 auto !important;
  }

  body #header #_desktop_top_menu,
  body #header .top-menu,
  body #header .menu,
  body #header .menu-content {
    order: 2 !important;
    width: 100% !important;
    text-align: center !important;
  }

  body #header .top-menu,
  body #header .menu > ul,
  body #header .menu-content > ul,
  body #header #_desktop_top_menu > ul {
    justify-content: center !important;
    gap: 2px 8px !important;
    border-top: 1px solid rgba(229, 214, 186, .85) !important;
    padding-top: 10px !important;
  }

  body #header .top-menu a,
  body #header .menu a,
  body #header .menu-content a,
  body #header #_desktop_top_menu a {
    min-height: 36px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
  }
}


/* ==========================================================
   v11 - Header compact et harmonieux
   Objectif desktop :
   [logo gauche] [catégories au même niveau] [recherche droite]
   Suppression des grands espaces sous les catégories.
   ========================================================== */

/* Reset des hauteurs/paddings qui créaient le grand vide */
@media (min-width: 992px) {
  body #header,
  body #header .header-top,
  body #header .header-top .container,
  body #header .header-top .container > .row,
  body #header .header-top .row,
  body #header .bt-header-row,
  body #header .header-top-right,
  body #header .position-static,
  body #header .bt-header-tools {
    min-height: 0 !important;
    height: auto !important;
  }

  body #header .header-top {
    padding: 14px 0 14px !important;
    margin: 0 !important;
  }

  body #header .header-top .container {
    max-width: 1180px !important;
  }

  /* Une seule ligne : logo | menu | recherche */
  body #header .header-top .container > .row,
  body #header .header-top .row,
  body #header .bt-header-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 26px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
  }

  /* Logo à gauche, sans flottement au milieu */
  body #header #_desktop_logo {
    flex: 0 0 285px !important;
    width: 285px !important;
    max-width: 285px !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
    justify-self: auto !important;
    align-self: center !important;
    grid-column: auto !important;
    order: 1 !important;
  }

  body #header .bt-logo-link,
  body #header #_desktop_logo a,
  body #header .header-logo a,
  body #header .logo {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  body #header .bt-logo-img,
  body #header .logo,
  body #header img.logo,
  body #header a.logo img,
  body #header .brand img,
  body #header .logo img {
    display: block !important;
    width: 275px !important;
    max-width: 275px !important;
    height: auto !important;
    max-height: 55px !important;
    object-fit: contain !important;
    object-position: left center !important;
    margin: 0 !important;
  }

  /* Zone droite : menu au centre, recherche à droite, même hauteur */
  body #header .header-top-right,
  body #header .position-static,
  body #header .bt-header-tools {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 26px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    max-width: none !important;
    text-align: left !important;
    grid-column: auto !important;
    order: 2 !important;
  }

  /* Menu catégories intégré au même niveau */
  body #header #_desktop_top_menu,
  body #header .top-menu,
  body #header .menu,
  body #header .menu-content,
  body #header .header-menu,
  body #header .nav-full-width {
    position: relative !important;
    flex: 1 1 auto !important;
    order: 1 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    align-self: center !important;
  }

  body #header .top-menu,
  body #header .menu > ul,
  body #header .menu-content > ul,
  body #header #_desktop_top_menu > ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body #header .top-menu > li,
  body #header .menu > ul > li,
  body #header .menu-content > ul > li,
  body #header #_desktop_top_menu > ul > li {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: auto !important;
    background: transparent !important;
  }

  body #header .top-menu a,
  body #header .menu a,
  body #header .menu-content a,
  body #header #_desktop_top_menu a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 15px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    line-height: 42px !important;
    white-space: nowrap !important;
    background: transparent !important;
  }

  /* Recherche même ligne, à droite */
  body #header #search_widget,
  body #header .search-widget {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    flex: 0 0 330px !important;
    order: 2 !important;
    width: 330px !important;
    max-width: 330px !important;
    min-width: 280px !important;
    margin: 0 !important;
    z-index: 5 !important;
    align-self: center !important;
    justify-self: auto !important;
  }

  body #header #search_widget form,
  body #header .search-widget form {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body #header #search_widget input,
  body #header .search-widget input,
  body #header input[name="s"] {
    display: block !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    line-height: 48px !important;
    padding: 0 52px 0 17px !important;
    border-radius: 17px !important;
    margin: 0 !important;
  }

  /* Loupe native, centrée dans le champ */
  body #header #search_widget form button,
  body #header .search-widget form button,
  body #header #search_widget form button[type="submit"],
  body #header .search-widget form button[type="submit"],
  body #header button[type="submit"].search {
    position: absolute !important;
    top: 50% !important;
    right: 14px !important;
    left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: translateY(-50%) !important;
    z-index: 8 !important;
  }

  body #header #search_widget .material-icons.search,
  body #header .search-widget .material-icons.search,
  body #header #search_widget i.search,
  body #header .search-widget i.search,
  body #header #search_widget button .material-icons,
  body #header .search-widget button .material-icons {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    font-size: 28px !important;
    line-height: 28px !important;
    color: #667078 !important;
    position: static !important;
    transform: none !important;
  }
}

/* Header mobile : compact et propre, sans grand espace */
@media (max-width: 991px) {
  body #header .header-nav {
    min-height: 42px !important;
  }

  body #header .header-top {
    padding: 12px 0 14px !important;
    min-height: 0 !important;
  }

  body #header .header-top .container > .row,
  body #header .header-top .row,
  body #header .bt-header-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body #header #_desktop_logo,
  body #header .header-logo,
  body #header #_mobile_logo,
  body #header .top-logo {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body #header .bt-logo-img,
  body #header .logo,
  body #header img.logo,
  body #header a.logo img,
  body #header .brand img,
  body #header .logo img,
  body #header #_mobile_logo img {
    width: auto !important;
    max-width: min(175px, 54vw) !important;
    max-height: 42px !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

  body #header .header-top-right,
  body #header .position-static,
  body #header .bt-header-tools {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body #header #search_widget,
  body #header .search-widget {
    order: 1 !important;
    position: relative !important;
    width: min(420px, 92vw) !important;
    max-width: min(420px, 92vw) !important;
    margin: 0 auto !important;
  }

  body #header #_desktop_top_menu,
  body #header .top-menu,
  body #header .menu,
  body #header .menu-content {
    order: 2 !important;
    width: 100% !important;
    text-align: center !important;
  }

  body #header .top-menu,
  body #header .menu > ul,
  body #header .menu-content > ul,
  body #header #_desktop_top_menu > ul {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 2px 8px !important;
    border-top: 1px solid rgba(229, 214, 186, .85) !important;
    padding-top: 8px !important;
    margin: 0 !important;
  }

  body #header .top-menu a,
  body #header .menu a,
  body #header .menu-content a,
  body #header #_desktop_top_menu a {
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
    line-height: 34px !important;
  }

  body #header #search_widget input,
  body #header .search-widget input,
  body #header input[name="s"] {
    height: 46px !important;
    min-height: 46px !important;
    line-height: 46px !important;
    padding-right: 50px !important;
  }
}

/* Si peu de catégories, on évite qu'elles se mettent en colonne */
body #header #_desktop_top_menu .top-menu[data-depth="0"],
body #header .top-menu[data-depth="0"] {
  flex-direction: row !important;
}


/* ==========================================================
   v12 - Header inspiré de la maquette initiale
   Desktop : [logo gauche] [menu centré] [panier + commander droite]
   Mobile/tablette : burger gauche, logo centré, actions droite, menu responsive.
   ========================================================== */

/* Nettoyage général du header */
body #header {
  background:
    radial-gradient(circle at 0% 0%, rgba(196,147,72,.12), transparent 34%),
    var(--bt-cream) !important;
  border-bottom: 1px solid var(--bt-border) !important;
  box-shadow: none !important;
}

body #header .header-banner,
body #header .header-nav,
body #header .header-top,
body #header .container,
body #header .row {
  background: transparent !important;
}

/* On ne veut plus l'ancienne zone contact/connexion/panier en barre haute desktop */
@media (min-width: 992px) {
  body #header .bt-header-mobilebar {
    display: none !important;
  }

  body #header .bt-header-main {
    padding: 18px 0 !important;
    min-height: 96px !important;
    height: auto !important;
    border-bottom: 1px solid rgba(229, 214, 186, .9) !important;
  }

  body #header .bt-header-layout {
    display: grid !important;
    grid-template-columns: minmax(240px, 330px) minmax(380px, 1fr) minmax(250px, 330px) !important;
    align-items: center !important;
    gap: 28px !important;
    min-height: 62px !important;
    width: 100% !important;
  }

  /* Logo gauche */
  body #header .bt-header-brand,
  body #header #_desktop_logo {
    grid-column: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 330px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body #header .bt-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: 100% !important;
    text-decoration: none !important;
  }

  body #header .bt-logo-img,
  body #header .logo,
  body #header img.logo,
  body #header a.logo img {
    display: block !important;
    width: 300px !important;
    max-width: 300px !important;
    height: auto !important;
    max-height: 60px !important;
    object-fit: contain !important;
    object-position: left center !important;
    margin: 0 !important;
  }

  /* Menu central */
  body #header .bt-header-nav {
    grid-column: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Le thème/module peut injecter la recherche dans displayTop : on la masque dans ce header,
     pour conserver la composition de la maquette. */
  body #header .bt-header-nav #search_widget,
  body #header .bt-header-nav .search-widget {
    display: none !important;
  }

  body #header .bt-header-nav #_desktop_top_menu,
  body #header .bt-header-nav .top-menu,
  body #header .bt-header-nav .menu,
  body #header .bt-header-nav .menu-content,
  body #header .bt-header-nav .header-menu,
  body #header .bt-header-nav .nav-full-width {
    position: static !important;
    flex: none !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body #header .bt-header-nav .top-menu,
  body #header .bt-header-nav .menu > ul,
  body #header .bt-header-nav .menu-content > ul,
  body #header .bt-header-nav #_desktop_top_menu > ul,
  body #header .bt-header-nav .top-menu[data-depth="0"] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    list-style: none !important;
  }

  body #header .bt-header-nav .top-menu > li,
  body #header .bt-header-nav .menu > ul > li,
  body #header .bt-header-nav .menu-content > ul > li,
  body #header .bt-header-nav #_desktop_top_menu > ul > li {
    display: inline-flex !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    float: none !important;
  }

  body #header .bt-header-nav .top-menu a,
  body #header .bt-header-nav .menu a,
  body #header .bt-header-nav .menu-content a,
  body #header .bt-header-nav #_desktop_top_menu a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: var(--bt-muted) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    line-height: 42px !important;
    transition: background .18s ease, color .18s ease, transform .18s ease !important;
  }

  body #header .bt-header-nav .top-menu a:hover,
  body #header .bt-header-nav .menu a:hover,
  body #header .bt-header-nav .menu-content a:hover,
  body #header .bt-header-nav #_desktop_top_menu a:hover {
    background: rgba(255,253,247,.72) !important;
    color: var(--bt-teal) !important;
    transform: translateY(-1px);
  }

  /* Actions droite */
  body #header .bt-header-actions {
    grid-column: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body #header .bt-header-actions .right-nav,
  body #header .bt-header-actions .user-info,
  body #header .bt-header-actions #_desktop_user_info,
  body #header .bt-header-actions #_desktop_cart {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
  }

  body #header .bt-header-actions .user-info a,
  body #header .bt-header-actions #_desktop_user_info a {
    color: var(--bt-ink) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 0 4px !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  body #header .cart-preview,
  body #header .bt-header-actions .cart-preview {
    border-radius: 999px !important;
    background: var(--bt-ink) !important;
    color: #fff !important;
    min-height: 42px !important;
    padding: 0 18px !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  body #header .cart-preview a,
  body #header .cart-preview span,
  body #header .cart-preview i {
    color: #fff !important;
  }

  body #header .bt-header-order {
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 20px !important;
    border-radius: 999px !important;
    background: var(--bt-ink) !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  body #header .bt-header-order:hover {
    background: var(--bt-teal) !important;
    color: #fff !important;
  }
}

/* Mobile/tablette */
@media (max-width: 991px) {
  body #header .bt-header-main {
    padding: 10px 0 12px !important;
    min-height: 0 !important;
    border-bottom: 1px solid rgba(229, 214, 186, .9) !important;
  }

  body #header .bt-header-mobilebar {
    display: block !important;
    min-height: 46px !important;
    border-bottom: 1px solid rgba(229, 214, 186, .75) !important;
    background: var(--bt-cream) !important;
  }

  body #header .bt-mobile-row {
    min-height: 46px !important;
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
  }

  body #header .bt-mobile-menu {
    width: 38px !important;
    height: 38px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--bt-ink) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  body #header .bt-mobile-logo {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-width: 0 !important;
    margin: 0 auto !important;
  }

  body #header .bt-mobile-logo img {
    width: auto !important;
    max-width: min(180px, 52vw) !important;
    max-height: 40px !important;
    height: auto !important;
    object-fit: contain !important;
  }

  body #header .bt-mobile-actions {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
  }

  body #header .bt-header-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
  }

  body #header .bt-header-brand,
  body #header #_desktop_logo {
    display: none !important;
  }

  body #header .bt-header-actions {
    display: none !important;
  }

  body #header .bt-header-nav {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
  }

  body #header .bt-header-nav #search_widget,
  body #header .bt-header-nav .search-widget {
    display: block !important;
    width: min(420px, 92vw) !important;
    max-width: min(420px, 92vw) !important;
    margin: 0 auto !important;
    order: 1 !important;
  }

  body #header .bt-header-nav #_desktop_top_menu,
  body #header .bt-header-nav .top-menu,
  body #header .bt-header-nav .menu,
  body #header .bt-header-nav .menu-content {
    order: 2 !important;
    width: 100% !important;
    text-align: center !important;
    background: transparent !important;
    border: 0 !important;
  }

  body #header .bt-header-nav .top-menu,
  body #header .bt-header-nav .menu > ul,
  body #header .bt-header-nav .menu-content > ul,
  body #header .bt-header-nav #_desktop_top_menu > ul {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 2px 10px !important;
    padding: 8px 0 0 !important;
    margin: 0 !important;
    border-top: 1px solid rgba(229, 214, 186, .85) !important;
    list-style: none !important;
  }

  body #header .bt-header-nav .top-menu a,
  body #header .bt-header-nav .menu a,
  body #header .bt-header-nav .menu-content a,
  body #header .bt-header-nav #_desktop_top_menu a {
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 9px !important;
    font-size: 12px !important;
    line-height: 34px !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
    letter-spacing: .02em !important;
  }
}

/* Tablettes larges : réduire légèrement les éléments */
@media (min-width: 992px) and (max-width: 1199px) {
  body #header .bt-header-layout {
    grid-template-columns: 240px minmax(300px, 1fr) 260px !important;
    gap: 18px !important;
  }

  body #header .bt-logo-img,
  body #header .logo,
  body #header img.logo,
  body #header a.logo img {
    width: 230px !important;
    max-width: 230px !important;
    max-height: 46px !important;
  }

  body #header .bt-header-nav .top-menu,
  body #header .bt-header-nav .menu > ul,
  body #header .bt-header-nav .menu-content > ul,
  body #header .bt-header-nav #_desktop_top_menu > ul {
    gap: 6px !important;
  }

  body #header .bt-header-nav .top-menu a,
  body #header .bt-header-nav .menu a,
  body #header .bt-header-nav .menu-content a,
  body #header .bt-header-nav #_desktop_top_menu a {
    padding: 0 8px !important;
    font-size: 13px !important;
  }

  body #header .bt-header-order {
    padding: 0 14px !important;
  }
}


/* ==========================================================
   v13 - Correction header desktop
   - suppression du bouton Commander
   - logo replacé sur la même ligne que le menu et les actions
   - panier empêché de passer sur 2 lignes
   ========================================================== */

body #header .bt-header-order {
  display: none !important;
}

@media (min-width: 992px) {
  /* Header plus compact : une vraie ligne horizontale */
  body #header .bt-header-main,
  body #header .header-top {
    padding: 12px 0 !important;
    min-height: 86px !important;
    height: auto !important;
    border-bottom: 1px solid rgba(229, 214, 186, .9) !important;
  }

  body #header .bt-header-main .container,
  body #header .header-top .container {
    max-width: 1180px !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body #header .bt-header-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 34px !important;
    width: 100% !important;
    min-height: 62px !important;
    height: 62px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Logo : à gauche et centré verticalement, plus jamais en bas */
  body #header .bt-header-brand,
  body #header #_desktop_logo {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    grid-column: auto !important;
    order: 1 !important;
    flex: 0 0 300px !important;
    width: 300px !important;
    max-width: 300px !important;
    height: 62px !important;
    min-height: 62px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    align-self: center !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
    float: none !important;
  }

  body #header .bt-logo-link,
  body #header #_desktop_logo a,
  body #header .header-logo a,
  body #header .logo {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
    max-width: 100% !important;
    height: 62px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  body #header .bt-logo-img,
  body #header .logo,
  body #header img.logo,
  body #header a.logo img {
    display: block !important;
    width: 285px !important;
    max-width: 285px !important;
    height: auto !important;
    max-height: 58px !important;
    object-fit: contain !important;
    object-position: left center !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  /* Menu au centre de la même ligne */
  body #header .bt-header-nav {
    order: 2 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 62px !important;
    min-height: 62px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body #header .bt-header-nav #_desktop_top_menu,
  body #header .bt-header-nav .top-menu,
  body #header .bt-header-nav .menu,
  body #header .bt-header-nav .menu-content {
    height: 62px !important;
    min-height: 62px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body #header .bt-header-nav .top-menu,
  body #header .bt-header-nav .menu > ul,
  body #header .bt-header-nav .menu-content > ul,
  body #header .bt-header-nav #_desktop_top_menu > ul,
  body #header .bt-header-nav .top-menu[data-depth="0"] {
    height: 62px !important;
    min-height: 62px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body #header .bt-header-nav .top-menu a,
  body #header .bt-header-nav .menu a,
  body #header .bt-header-nav .menu-content a,
  body #header .bt-header-nav #_desktop_top_menu a {
    height: 42px !important;
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 42px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }

  /* Actions à droite, sans bouton Commander */
  body #header .bt-header-actions {
    order: 3 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    height: 62px !important;
    min-height: 62px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    align-self: center !important;
    gap: 14px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body #header .bt-header-actions .right-nav,
  body #header .bt-header-actions .user-info,
  body #header .bt-header-actions #_desktop_user_info,
  body #header .bt-header-actions #_desktop_cart,
  body #header .bt-header-actions .cart-preview {
    height: 42px !important;
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body #header .bt-header-actions .user-info a,
  body #header .bt-header-actions #_desktop_user_info a {
    height: 42px !important;
    min-height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 0 4px !important;
    line-height: 42px !important;
    white-space: nowrap !important;
  }

  /* Panier propre sur une seule ligne */
  body #header .cart-preview,
  body #header .bt-header-actions .cart-preview {
    min-width: 112px !important;
    width: auto !important;
    max-width: none !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 18px !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
    line-height: 42px !important;
  }

  body #header .cart-preview a,
  body #header .cart-preview span,
  body #header .cart-preview i,
  body #header .cart-preview .shopping-cart,
  body #header .cart-preview .cart-products-count {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }
}

/* Tablette desktop : on garde tout sur une ligne mais en plus compact */
@media (min-width: 992px) and (max-width: 1199px) {
  body #header .bt-header-layout {
    gap: 20px !important;
  }

  body #header .bt-header-brand,
  body #header #_desktop_logo {
    flex-basis: 245px !important;
    width: 245px !important;
    max-width: 245px !important;
  }

  body #header .bt-logo-img,
  body #header .logo,
  body #header img.logo,
  body #header a.logo img {
    width: 235px !important;
    max-width: 235px !important;
    max-height: 48px !important;
  }

  body #header .bt-header-nav .top-menu,
  body #header .bt-header-nav .menu > ul,
  body #header .bt-header-nav .menu-content > ul,
  body #header .bt-header-nav #_desktop_top_menu > ul {
    gap: 8px !important;
  }

  body #header .bt-header-nav .top-menu a,
  body #header .bt-header-nav .menu a,
  body #header .bt-header-nav .menu-content a,
  body #header .bt-header-nav #_desktop_top_menu a {
    font-size: 13px !important;
    padding: 0 6px !important;
  }
}


/* ==========================================================
   v14 - Correction largeur desktop du contenu hors header
   Objectif : supprimer l'effet "encadré" sur grands écrans.
   Mobile/tablette non modifiés.
   ========================================================== */

@media (min-width: 992px) {
  /* Les blocs de la page d'accueil sortent du container Classic */
  body#index .bt-hero,
  body#index .bt-intro,
  body#index .bt-univers,
  body#index .bt-featured-product,
  body#index .bt-boutique {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    box-sizing: border-box !important;
  }

  /* Le fond du hero devient pleine largeur, tout en gardant le contenu lisible */
  body#index .bt-hero {
    padding-left: max(24px, calc((100vw - 1440px) / 2 + 24px)) !important;
    padding-right: max(24px, calc((100vw - 1440px) / 2 + 24px)) !important;
  }

  body#index .bt-hero__inner {
    max-width: 1320px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Sections pleine largeur, contenu centré */
  body#index .bt-intro,
  body#index .bt-univers,
  body#index .bt-featured-product,
  body#index .bt-boutique {
    padding-left: max(24px, calc((100vw - 1440px) / 2 + 24px)) !important;
    padding-right: max(24px, calc((100vw - 1440px) / 2 + 24px)) !important;
  }

  body#index .bt-intro > .bt-title,
  body#index .bt-intro > .bt-values,
  body#index .bt-univers > .bt-title,
  body#index .bt-univers > .bt-univers-grid,
  body#index .bt-featured-product__inner,
  body#index .bt-boutique__inner {
    max-width: 1320px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Sur écran très large, on évite que le visuel paraisse perdu dans une petite carte */
  body#index .bt-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(440px, .9fr) !important;
    gap: clamp(44px, 5vw, 92px) !important;
  }

  body#index .bt-hero h1 {
    max-width: 760px !important;
  }

  body#index .bt-lead {
    max-width: 680px !important;
  }
}


/* ==========================================================
   v15 - Correction icône Fabrication artisanale + cartes produits
   Objectif : les photos produits réapparaissent correctement sur ordinateur.
   ========================================================== */

/* Icône Fabrication artisanale : taille harmonieuse dans la carte */
.bt-values article:first-child img,
.bt-feature:first-child img,
img[src*="bt-icon-artisan.svg"] {
  width: 68px !important;
  height: 68px !important;
  object-fit: contain !important;
}

/* Correction robuste des listings produits PrestaShop Classic */
@media (min-width: 768px) {
  body #js-product-list .products,
  body .featured-products .products,
  body .product-accessories .products,
  body .product-miniature-list .products,
  body .products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 28px !important;
    align-items: stretch !important;
  }

  body #js-product-list .products > *,
  body .featured-products .products > *,
  body .product-accessories .products > *,
  body .products > article,
  body .products > div,
  body .js-product-miniature,
  body article.product-miniature,
  body .product-miniature {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    display: block !important;
  }

  body .product-miniature .thumbnail-container {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 1px solid var(--bt-border) !important;
    border-radius: 30px !important;
    background: var(--bt-paper) !important;
    box-shadow: var(--bt-shadow-soft) !important;
  }

  body .product-miniature .product-thumbnail,
  body .product-miniature a.product-thumbnail,
  body .product-miniature .thumbnail-top,
  body .product-miniature .thumbnail-container > a {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
    overflow: hidden !important;
    background: #fffdf7 !important;
    border-radius: 30px 30px 0 0 !important;
  }

  body .product-miniature .product-thumbnail img,
  body .product-miniature a.product-thumbnail img,
  body .product-miniature .thumbnail-container img,
  body .js-product-miniature img {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  body .product-miniature .product-description {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 130px !important;
    padding: 20px !important;
    background: var(--bt-paper) !important;
    border-radius: 0 0 30px 30px !important;
    overflow: visible !important;
    text-align: left !important;
  }

  body .product-miniature .product-title {
    margin: 0 0 10px !important;
    padding: 0 !important;
    min-height: 0 !important;
  }

  body .product-miniature .product-title a {
    display: block !important;
    color: var(--bt-ink) !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 22px !important;
    line-height: 1.16 !important;
    font-weight: 700 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: initial !important;
  }

  body .product-miniature .product-price-and-shipping,
  body .product-miniature .price {
    display: block !important;
    color: var(--bt-teal) !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 900 !important;
    margin-top: 10px !important;
    white-space: normal !important;
  }

  body .product-miniature .highlighted-informations,
  body .product-miniature .variant-links {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

/* Mobile : on laisse le comportement mobile souple, mais sans masquer l'image */
@media (max-width: 767px) {
  body .product-miniature .product-thumbnail,
  body .product-miniature a.product-thumbnail,
  body .product-miniature .thumbnail-top,
  body .product-miniature .thumbnail-container > a {
    display: block !important;
    width: 100% !important;
    min-height: 190px !important;
    overflow: hidden !important;
  }

  body .product-miniature .product-thumbnail img,
  body .product-miniature a.product-thumbnail img,
  body .product-miniature .thumbnail-container img,
  body .js-product-miniature img {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
  }
}


/* ==========================================================
   v16 - Corrections pages catégories
   - encadré "Accueil" latéral rendu discret / supprimé visuellement
   - bloc "Nos pâtisseries" compact et adapté au texte
   ========================================================== */

/* La colonne latérale Classic crée un encadré blanc peu élégant.
   Sur ordinateur on la retire pour donner plus d'air au listing. */
@media (min-width: 992px) {
  body#category #left-column,
  body#category #left-column .block,
  body#category #left-column .card,
  body#category #left-column .block-categories,
  body#category #left-column .category-top-menu {
    display: none !important;
  }

  body#category #content-wrapper,
  body#category #content-wrapper.left-column,
  body#category #content-wrapper.col-md-9,
  body#category #content-wrapper.col-sm-8,
  body#category #content-wrapper.col-xs-12 {
    width: 100% !important;
    max-width: 1180px !important;
    flex: 0 0 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* Sécurité si la colonne latérale reste affichée par un module :
   elle devient transparente et compacte au lieu d'un gros bloc blanc. */
body#category #left-column .block,
body#category #left-column .card,
body#category #left-column .block-categories,
body#category #left-column .category-top-menu {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

body#category #left-column .block .h6,
body#category #left-column .card-block,
body#category #left-column .category-sub-menu,
body#category #left-column .category-top-menu > li > a {
  background: rgba(255,253,247,.55) !important;
  border: 1px solid rgba(229,214,186,.75) !important;
  border-radius: 18px !important;
}

/* Bloc titre catégorie : hauteur automatique et plus élégante */
body#category .block-category,
body#category #js-product-list-header .block-category,
body#category #js-product-list-header,
body#category .category-cover {
  min-height: 0 !important;
  height: auto !important;
  padding: 22px 28px !important;
  margin-bottom: 26px !important;
  border-radius: 24px !important;
  background: rgba(255,253,247,.86) !important;
  box-shadow: 0 10px 28px rgba(35,27,22,.06) !important;
}

/* Évite le grand vide si la description catégorie est vide */
body#category .block-category .block-category-inner {
  min-height: 0 !important;
  height: auto !important;
  display: block !important;
}

body#category .block-category h1,
body#category .block-category .h1,
body#category #js-product-list-header h1,
body#category .page-title {
  margin: 0 !important;
  padding: 0 !important;
  font-size: clamp(30px, 3vw, 42px) !important;
  line-height: 1.08 !important;
}

/* Description catégorie compacte si elle existe */
body#category .block-category #category-description,
body#category .block-category .category-description,
body#category #category-description {
  margin-top: 12px !important;
  color: var(--bt-muted) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

body#category .block-category #category-description:empty,
body#category .block-category .category-description:empty,
body#category #category-description:empty {
  display: none !important;
}

/* Zone tri / nombre de produits plus proche du titre */
body#category #products .products-selection,
body#category .products-selection {
  margin-top: 0 !important;
  margin-bottom: 22px !important;
  padding: 0 !important;
}

/* Mobile/tablette : on conserve l'organisation mais on évite aussi les gros blocs */
@media (max-width: 991px) {
  body#category #left-column .block,
  body#category #left-column .card,
  body#category #left-column .block-categories,
  body#category #left-column .category-top-menu {
    display: none !important;
  }

  body#category .block-category,
  body#category #js-product-list-header .block-category,
  body#category #js-product-list-header {
    min-height: 0 !important;
    height: auto !important;
    padding: 18px 20px !important;
    margin-bottom: 20px !important;
    border-radius: 20px !important;
  }

  body#category .block-category h1,
  body#category .block-category .h1,
  body#category #js-product-list-header h1,
  body#category .page-title {
    font-size: 30px !important;
  }
}


/* ==========================================================
   v17 - Suppression complète du bloc titre des catégories
   S'applique à toutes les catégories actuelles et futures.
   Exemple : Nos pâtisseries, Nos cakes, etc.
   ========================================================== */

/* Supprime le bloc de présentation/titre catégorie Classic */
body#category #js-product-list-header,
body#category #js-product-list-header .block-category,
body#category .block-category,
body#category .category-cover,
body#category .category-cover img,
body#category .category-description,
body#category #category-description {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

/* Supprime les titres de catégorie éventuels affichés par certains modules/thèmes */
body#category .page-header,
body#category .category-header,
body#category .category-title,
body#category h1.page-title,
body#category h1.h1,
body#category .h1 {
  display: none !important;
}

/* Remonte la ligne "Il y a X produits" + tri après suppression du bloc */
body#category #products,
body#category #js-product-list,
body#category .products-selection {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body#category #products .products-selection,
body#category .products-selection {
  margin-bottom: 24px !important;
}

/* Conserve le fil d'Ariane, mais plus léger */
body#category .breadcrumb {
  margin-bottom: 18px !important;
}


/* ==========================================================
   v18 - Fiche produit
   - prix plus grand
   - prix + TTC sur la même ligne et centrés
   - correction des débordements de texte
   - responsive conservé
   ========================================================== */

/* Base robuste : évite les débordements horizontaux dans les colonnes produit */
body#product .container,
body#product .row,
body#product .product-container,
body#product .product-information,
body#product .product-cover,
body#product .product-images,
body#product .product-prices,
body#product .product-actions,
body#product .product-add-to-cart,
body#product .product-quantity,
body#product .product-description,
body#product .product-description-short,
body#product .product-features,
body#product .product-customization,
body#product .tabs,
body#product .tabs .tab-pane {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body#product .product-information,
body#product .product-description,
body#product .product-description-short,
body#product .product-description p,
body#product .product-features,
body#product .product-features li,
body#product .product-customization,
body#product .product-customization p,
body#product .tabs .tab-pane,
body#product .product-information p,
body#product .product-information li,
body#product .product-information span {
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  hyphens: auto !important;
}

/* Prix : plus visible et TTC sur la même ligne */
body#product .product-prices {
  margin-bottom: 18px !important;
}

body#product .product-prices .current-price,
body#product .product-prices .product-price,
body#product .current-price {
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 0 8px !important;
}

body#product .product-prices .current-price .current-price-value,
body#product .product-prices .current-price span[itemprop="price"],
body#product .product-prices .product-price,
body#product .current-price .current-price-value {
  color: var(--bt-teal) !important;
  font-size: clamp(28px, 2.3vw, 38px) !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  display: inline-block !important;
  margin: 0 !important;
}

body#product .product-prices .tax-shipping-delivery-label,
body#product .current-price .tax-shipping-delivery-label,
body#product .product-prices .tax-shipping-delivery-label span,
body#product .product-prices .tax-shipping-delivery-label label {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--bt-muted) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

/* Centre légèrement le bloc prix dans la colonne info sans casser le layout */
body#product .product-prices,
body#product .product-prices .current-price {
  text-align: left !important;
}

/* Fiche produit desktop : colonne texte protégée contre les débordements */
@media (min-width: 992px) {
  body#product .product-container .row,
  body#product .product-cover-row,
  body#product .product-main,
  body#product .product-page,
  body#product .product-layout {
    align-items: flex-start !important;
  }

  body#product .product-information {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
  }

  body#product .product-description-short,
  body#product .product-description,
  body#product .product-information .product-description {
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 18px !important;
  }

  body#product .product-description-short p,
  body#product .product-description p,
  body#product .product-information p {
    font-size: 15px !important;
    line-height: 1.65 !important;
    margin-bottom: 12px !important;
  }

  /* Encadré quantité / panier : garde tout à l'intérieur */
  body#product .product-actions,
  body#product .product-add-to-cart,
  body#product .product-quantity {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body#product .product-add-to-cart {
    padding: 18px 20px !important;
    border: 1px solid var(--bt-border) !important;
    border-radius: 28px !important;
    background: rgba(255,253,247,.92) !important;
    box-shadow: 0 10px 28px rgba(35,27,22,.05) !important;
  }

  body#product .product-quantity .qty,
  body#product .product-quantity .input-group,
  body#product .product-quantity .add {
    min-width: 0 !important;
  }

  body#product .product-quantity .add-to-cart,
  body#product .product-add-to-cart .add-to-cart,
  body#product .product-actions .add-to-cart {
    white-space: nowrap !important;
    min-height: 54px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
    font-size: 14px !important;
  }

  /* Partage / reassurance / modules sous le panier */
  body#product .social-sharing,
  body#product .product-refresh,
  body#product .product-additional-info,
  body#product .tabs {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }
}

/* Mobile / tablette : conserve le responsive et améliore la lisibilité du prix */
@media (max-width: 991px) {
  body#product .product-prices .current-price,
  body#product .product-prices .product-price,
  body#product .current-price {
    justify-content: center !important;
    text-align: center !important;
  }

  body#product .product-prices {
    text-align: center !important;
  }

  body#product .product-prices .current-price .current-price-value,
  body#product .product-prices .current-price span[itemprop="price"],
  body#product .product-prices .product-price,
  body#product .current-price .current-price-value {
    font-size: 30px !important;
  }

  body#product .product-add-to-cart {
    padding: 16px !important;
  }
}


/* ==========================================================
   v19 - Travail complet fiche produit premium et épuré
   Prix lisible/centré + description centrée
   ========================================================== */

/* Conteneur global fiche produit : aéré, sans surcharge */
body#product #main {
  background: transparent !important;
}

body#product .product-container,
body#product .js-product-container {
  align-items: flex-start !important;
}

/* Colonne image : sobre */
body#product .product-cover img {
  background: #fffdf7 !important;
  border: 1px solid var(--bt-border) !important;
  border-radius: 30px !important;
  box-shadow: 0 18px 45px rgba(35, 27, 22, .08) !important;
}

/* Colonne information : carte premium discrète */
body#product .product-information {
  width: 100% !important;
  max-width: 100% !important;
  padding: 26px 28px !important;
  border: 1px solid var(--bt-border) !important;
  border-radius: 30px !important;
  background: rgba(255, 253, 247, .86) !important;
  box-shadow: 0 18px 45px rgba(35, 27, 22, .07) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* Titre produit centré et premium */
body#product h1,
body#product .h1,
body#product .page-title {
  text-align: center !important;
  max-width: 100% !important;
  margin: 0 auto 14px !important;
  color: var(--bt-ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(28px, 2.2vw, 42px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
  overflow-wrap: anywhere !important;
}

/* Override robuste du prix : fonctionne avec le nouveau product-prices.tpl */
body#product .bt-product-price-box,
body#product .product-prices.js-product-prices,
body#product .product-prices {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto 20px !important;
  padding: 0 0 18px !important;
  border-bottom: 1px solid rgba(229, 214, 186, .85) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 6px !important;
  box-sizing: border-box !important;
}

body#product .bt-product-price-main,
body#product .product-prices .product-price,
body#product .product-prices .current-price,
body#product .current-price {
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  color: var(--bt-teal) !important;
  text-align: center !important;
  line-height: 1 !important;
}

body#product .bt-product-price-value,
body#product .product-prices .current-price-value,
body#product .product-prices span[itemprop="price"],
body#product .current-price-value {
  display: inline-block !important;
  color: var(--bt-teal) !important;
  font-size: clamp(32px, 2.8vw, 48px) !important;
  line-height: .95 !important;
  font-weight: 950 !important;
  margin: 0 !important;
  padding: 0 !important;
  letter-spacing: -.03em !important;
}

body#product .bt-product-price-tax,
body#product .product-prices .tax-shipping-delivery-label,
body#product .tax-shipping-delivery-label {
  display: inline-flex !important;
  align-items: center !important;
  color: var(--bt-muted) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}

/* Ancien label TTC si le parent le rend malgré l'override : éviter le doublon vertical */
body#product .product-prices > .tax-shipping-delivery-label:not(.bt-product-price-tax) {
  display: none !important;
}

body#product .bt-product-regular-price,
body#product .product-discount,
body#product .bt-product-unit-price,
body#product .bt-product-taxless,
body#product .bt-product-pack-price,
body#product .bt-product-ecotax {
  text-align: center !important;
  margin: 4px auto 0 !important;
  color: var(--bt-muted) !important;
}

/* Description produit centrée, lisible, sans débordement */
body#product .product-description-short,
body#product .product-description,
body#product .product-information .product-description,
body#product .product-information .product-description-short {
  width: 100% !important;
  max-width: 620px !important;
  margin: 0 auto 22px !important;
  padding: 0 !important;
  text-align: center !important;
  color: var(--bt-muted) !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body#product .product-description-short p,
body#product .product-description p,
body#product .product-information p,
body#product .product-information li,
body#product .product-information div {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  hyphens: auto !important;
}

body#product .product-description-short p,
body#product .product-description p {
  text-align: center !important;
  font-size: clamp(15px, 1.1vw, 17px) !important;
  line-height: 1.72 !important;
  color: var(--bt-muted) !important;
  margin: 0 auto 12px !important;
}

body#product .product-description-short strong,
body#product .product-description strong,
body#product .product-information strong {
  color: var(--bt-ink) !important;
  font-weight: 800 !important;
}

/* Les listes / pictos dans la description restent centrés proprement */
body#product .product-description-short ul,
body#product .product-description ul,
body#product .product-information ul {
  display: inline-block !important;
  max-width: 100% !important;
  margin: 12px auto !important;
  padding-left: 0 !important;
  text-align: center !important;
  list-style-position: inside !important;
}

/* Encadré quantité / panier plus épuré */
body#product .product-actions,
body#product .product-add-to-cart {
  width: 100% !important;
  max-width: 620px !important;
  margin: 0 auto !important;
  padding: 18px 20px !important;
  border: 1px solid rgba(229, 214, 186, .92) !important;
  border-radius: 26px !important;
  background: rgba(255, 248, 234, .55) !important;
  box-shadow: none !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

body#product .product-quantity {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

body#product .product-quantity .qty {
  margin: 0 !important;
}

body#product .product-quantity .input-group {
  max-width: 95px !important;
}

body#product .product-actions .add-to-cart,
body#product .product-add-to-cart .add-to-cart {
  min-height: 52px !important;
  padding: 0 24px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  font-size: 14px !important;
}

/* Partage et modules sous panier, plus propres */
body#product .social-sharing,
body#product .product-additional-info {
  text-align: center !important;
  margin-top: 16px !important;
}

body#product .product-additional-info,
body#product .tabs,
body#product .product-features {
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Responsive : même logique, mais compact */
@media (max-width: 991px) {
  body#product .product-information {
    padding: 22px 18px !important;
    border-radius: 24px !important;
  }

  body#product h1,
  body#product .h1,
  body#product .page-title {
    font-size: clamp(26px, 7vw, 34px) !important;
    margin-bottom: 12px !important;
  }

  body#product .bt-product-price-value,
  body#product .product-prices .current-price-value,
  body#product .product-prices span[itemprop="price"],
  body#product .current-price-value {
    font-size: clamp(34px, 9vw, 42px) !important;
  }

  body#product .product-description-short,
  body#product .product-description,
  body#product .product-information .product-description,
  body#product .product-information .product-description-short {
    max-width: 100% !important;
  }

  body#product .product-actions,
  body#product .product-add-to-cart {
    max-width: 100% !important;
    padding: 16px !important;
  }

  body#product .product-actions .add-to-cart,
  body#product .product-add-to-cart .add-to-cart {
    width: 100% !important;
    max-width: 320px !important;
  }
}


/* ==========================================================
   v20 - Fiche produit mobile : centrage global du contenu
   Objectif : centrer proprement l'ensemble des éléments sur téléphone
   sans casser la version desktop déjà validée.
   ========================================================== */

@media (max-width: 767px) {
  /* Structure principale */
  body#product #wrapper,
  body#product #content-wrapper,
  body#product .container,
  body#product .row,
  body#product .product-container,
  body#product .js-product-container,
  body#product .product-cover-row,
  body#product .product-main,
  body#product .product-page,
  body#product .product-layout {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  body#product #content-wrapper {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Galerie produit */
  body#product .images-container,
  body#product .product-cover,
  body#product .product-images,
  body#product .scroll-box-arrows,
  body#product .js-qv-mask,
  body#product .mask {
    text-align: center !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body#product .product-cover {
    max-width: 320px !important;
    margin: 0 auto 14px !important;
  }

  body#product .product-cover img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  body#product .product-images > li,
  body#product .js-thumb-container,
  body#product .thumb-container {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 6px !important;
  }

  /* Carte d'information */
  body#product .product-information {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 20px 16px !important;
    text-align: center !important;
  }

  /* Prix vraiment centré */
  body#product .bt-product-price-box,
  body#product .product-prices.js-product-prices,
  body#product .product-prices,
  body#product .bt-product-price-main,
  body#product .product-prices .product-price,
  body#product .product-prices .current-price,
  body#product .current-price {
    justify-content: center !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Description et contenu texte */
  body#product .product-description-short,
  body#product .product-description,
  body#product .product-information .product-description,
  body#product .product-information .product-description-short,
  body#product .product-information p,
  body#product .product-information ul,
  body#product .product-information li {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body#product .product-information ul {
    display: block !important;
    padding-left: 0 !important;
    list-style-position: inside !important;
  }

  /* Bloc quantité / panier complètement centré */
  body#product .product-actions,
  body#product .product-add-to-cart {
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  body#product .product-quantity {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    text-align: center !important;
  }

  body#product .product-quantity .qty,
  body#product .product-quantity .add,
  body#product .product-quantity .input-group,
  body#product .product-quantity .input-group-btn-vertical {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body#product .product-quantity .qty {
    width: auto !important;
  }

  body#product .product-quantity label,
  body#product .control-label,
  body#product .qty label {
    display: block !important;
    text-align: center !important;
    margin: 0 auto 6px !important;
  }

  body#product .product-actions .add-to-cart,
  body#product .product-add-to-cart .add-to-cart {
    width: 100% !important;
    max-width: 260px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Bouton wishlist / favoris centré sous le panier */
  body#product .wishlist-button-add,
  body#product .add-to-wishlist,
  body#product .product-actions .wishlist-button-add,
  body#product .product-add-to-cart .wishlist-button-add {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Réseaux / infos additionnelles */
  body#product .social-sharing,
  body#product .product-additional-info,
  body#product .tabs,
  body#product .product-features,
  body#product .product-customization {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* ==========================================================
   v22 - Footer réseaux sociaux
   Correction du doublon FacebookFacebook / InstagramInstagram.
   On masque les libellés texte et on affiche des pictogrammes propres.
   ========================================================== */

#footer .block-social ul,
#footer .socialfollow ul,
#footer .social-follow ul,
#footer .social-sharing ul,
#footer .social-links {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
}

#footer .block-social li,
#footer .socialfollow li,
#footer .social-follow li,
#footer .social-sharing li {
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  background: transparent !important;
  list-style: none !important;
}

/* Boutons sociaux : plus de texte visible, uniquement l'icône */
#footer .block-social li a,
#footer .socialfollow li a,
#footer .social-follow li a,
#footer .social-sharing li a,
#footer a.facebook,
#footer a.instagram,
#footer .facebook a,
#footer .instagram a {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 46px !important;
  min-width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  background: var(--bt-teal) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  opacity: 1 !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.18) !important;
  text-decoration: none !important;
}

/* Suppression des anciens libellés ajoutés par les versions précédentes */
#footer .facebook a::after,
#footer a.facebook::after,
#footer .instagram a::after,
#footer a.instagram::after,
#footer .block-social li a::after,
#footer .socialfollow li a::after,
#footer .social-follow li a::after,
#footer .social-sharing li a::after {
  content: none !important;
  display: none !important;
}

/* Icône par défaut */
#footer .block-social li a::before,
#footer .socialfollow li a::before,
#footer .social-follow li a::before,
#footer .social-sharing li a::before {
  content: "" !important;
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  text-indent: 0 !important;
  opacity: 1 !important;
}

/* Facebook */
#footer .facebook a::before,
#footer a.facebook::before,
#footer li.facebook a::before,
#footer a[href*="facebook.com"]::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M14.2%208.1V6.6c0-.7.5-.9.9-.9h2.3V2h-3.2c-3.6%200-4.4%202.7-4.4%204.4v1.7H7v3.8h2.8V22h4.4V11.9h3l.5-3.8h-3.5z%22/%3E%0A%3C/svg%3E") !important;
}

/* Instagram */
#footer .instagram a::before,
#footer a.instagram::before,
#footer li.instagram a::before,
#footer a[href*="instagram.com"]::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M7.2%202h9.6A5.2%205.2%200%200%201%2022%207.2v9.6a5.2%205.2%200%200%201-5.2%205.2H7.2A5.2%205.2%200%200%201%202%2016.8V7.2A5.2%205.2%200%200%201%207.2%202zm0%202A3.2%203.2%200%200%200%204%207.2v9.6A3.2%203.2%200%200%200%207.2%2020h9.6a3.2%203.2%200%200%200%203.2-3.2V7.2A3.2%203.2%200%200%200%2016.8%204H7.2zm4.8%203.2A4.8%204.8%200%201%201%2012%2016.8a4.8%204.8%200%200%201%200-9.6zm0%202A2.8%202.8%200%201%200%2014.8%2012%202.8%202.8%200%200%200%2012%209.2zM17.3%206.7a1.1%201.1%200%201%201-1.1%201.1%201.1%201.1%200%200%201%201.1-1.1z%22/%3E%0A%3C/svg%3E") !important;
}

/* Hover propre */
#footer .block-social li a:hover,
#footer .socialfollow li a:hover,
#footer .social-follow li a:hover,
#footer .social-sharing li a:hover,
#footer .facebook a:hover,
#footer .instagram a:hover {
  background: var(--bt-ink) !important;
  transform: translateY(-2px);
}

/* Accessibilité : le texte reste dans le HTML, mais invisible visuellement */
#footer .block-social li a span,
#footer .socialfollow li a span,
#footer .social-follow li a span,
#footer .social-sharing li a span {
  font-size: 0 !important;
  line-height: 0 !important;
}


/* ==========================================================
   v25 - Page CMS "Découvrir Biscuithé" intégrée et responsive
   Corrige les problèmes de largeur / texte coupé dans le container CMS.
   ========================================================== */

body#cms .page-cms-biscuithe-about,
body#cms #content.page-cms-biscuithe-about {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 !important;
  overflow: visible !important;
  background: #fff8ea !important;
  border: 0 !important;
  box-shadow: none !important;
}

body#cms .page-cms-biscuithe-about .bae-page {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: hidden !important;
}

body#cms .page-cms-biscuithe-about .bae-hero,
body#cms .page-cms-biscuithe-about .bae-quick,
body#cms .page-cms-biscuithe-about .bae-values {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body#cms .page-cms-biscuithe-about .bae-hero__inner,
body#cms .page-cms-biscuithe-about .bae-section,
body#cms .page-cms-biscuithe-about .bae-values__inner,
body#cms .page-cms-biscuithe-about .bae-quick__inner {
  max-width: 1360px !important;
}

@media (min-width: 1600px) {
  body#cms .page-cms-biscuithe-about .bae-hero__inner,
  body#cms .page-cms-biscuithe-about .bae-section,
  body#cms .page-cms-biscuithe-about .bae-values__inner,
  body#cms .page-cms-biscuithe-about .bae-quick__inner {
    max-width: 1480px !important;
  }
}


/* ==========================================================
   v26 - Page connexion : espacement bouton "Afficher" mot de passe
   Correction visuelle : le bouton n'est plus collé au champ.
   ========================================================== */

body#authentication .input-group,
body#password .input-group,
body#checkout .input-group {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

body#authentication .input-group .form-control,
body#password .input-group .form-control,
body#checkout .input-group .form-control {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  border-radius: 999px !important;
}

body#authentication .input-group .input-group-btn,
body#password .input-group .input-group-btn,
body#checkout .input-group .input-group-btn {
  width: auto !important;
  flex: 0 0 auto !important;
  margin-left: 0 !important;
}

body#authentication .input-group .input-group-btn .btn,
body#password .input-group .input-group-btn .btn,
body#checkout .input-group .input-group-btn .btn,
body#authentication button[data-action="show-password"],
body#password button[data-action="show-password"],
body#checkout button[data-action="show-password"] {
  margin-left: 0 !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  min-height: 48px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Sécurité si Bootstrap conserve un style collé aux input-group */
body#authentication .input-group .form-control:not(:last-child),
body#password .input-group .form-control:not(:last-child),
body#checkout .input-group .form-control:not(:last-child) {
  border-top-right-radius: 999px !important;
  border-bottom-right-radius: 999px !important;
}

body#authentication .input-group .input-group-btn:not(:first-child) > .btn,
body#password .input-group .input-group-btn:not(:first-child) > .btn,
body#checkout .input-group .input-group-btn:not(:first-child) > .btn {
  border-top-left-radius: 999px !important;
  border-bottom-left-radius: 999px !important;
}

/* Mobile : le bouton reste à côté si possible, sinon il passe proprement dessous */
@media (max-width: 420px) {
  body#authentication .input-group,
  body#password .input-group {
    flex-wrap: wrap !important;
  }

  body#authentication .input-group .input-group-btn,
  body#password .input-group .input-group-btn {
    width: 100% !important;
  }

  body#authentication .input-group .input-group-btn .btn,
  body#password .input-group .input-group-btn .btn {
    width: 100% !important;
  }
}


/* ==========================================================
   v27 - Page connexion : bouton mot de passe remplacé par un œil
   Objectif : l'action "Afficher" est intégrée dans le champ,
   à la même hauteur que la zone de saisie.
   ========================================================== */

/* On annule le comportement bouton séparé de la v26 pour les groupes mot de passe */
body#authentication .input-group:has(button[data-action="show-password"]),
body#password .input-group:has(button[data-action="show-password"]),
body#checkout .input-group:has(button[data-action="show-password"]) {
  position: relative !important;
  display: block !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: 420px !important;
}

/* Champ mot de passe : espace réservé à l'œil à droite */
body#authentication .input-group:has(button[data-action="show-password"]) .form-control,
body#password .input-group:has(button[data-action="show-password"]) .form-control,
body#checkout .input-group:has(button[data-action="show-password"]) .form-control {
  display: block !important;
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  padding-right: 54px !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
}

/* Le conteneur Bootstrap du bouton devient transparent */
body#authentication .input-group:has(button[data-action="show-password"]) .input-group-btn,
body#password .input-group:has(button[data-action="show-password"]) .input-group-btn,
body#checkout .input-group:has(button[data-action="show-password"]) .input-group-btn {
  position: static !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
}

/* Bouton "Afficher" transformé en icône œil dans le champ */
body#authentication button[data-action="show-password"],
body#password button[data-action="show-password"],
body#checkout button[data-action="show-password"] {
  position: absolute !important;
  top: 50% !important;
  right: 7px !important;
  transform: translateY(-50%) !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-left: 1px solid rgba(35, 27, 22, .12) !important;
  border-radius: 999px !important;
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23231b16%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M2.5%2012s3.5-6%209.5-6%209.5%206%209.5%206-3.5%206-9.5%206-9.5-6-9.5-6Z%22/%3E%0A%20%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223.2%22%20fill%3D%22none%22%20stroke%3D%22%23231b16%22%20stroke-width%3D%222%22/%3E%0A%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 20px 20px !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

/* Effet discret au survol/focus */
body#authentication button[data-action="show-password"]:hover,
body#password button[data-action="show-password"]:hover,
body#checkout button[data-action="show-password"]:hover,
body#authentication button[data-action="show-password"]:focus,
body#password button[data-action="show-password"]:focus,
body#checkout button[data-action="show-password"]:focus {
  background-color: rgba(0, 122, 120, .08) !important;
  outline: none !important;
}

/* Sécurité : le bouton ne doit plus prendre toute la largeur sur mobile */
@media (max-width: 420px) {
  body#authentication .input-group:has(button[data-action="show-password"]),
  body#password .input-group:has(button[data-action="show-password"]) {
    max-width: 100% !important;
  }

  body#authentication .input-group:has(button[data-action="show-password"]) .input-group-btn,
  body#password .input-group:has(button[data-action="show-password"]) .input-group-btn {
    width: auto !important;
  }

  body#authentication .input-group:has(button[data-action="show-password"]) .input-group-btn .btn,
  body#password .input-group:has(button[data-action="show-password"]) .input-group-btn .btn {
    width: 38px !important;
  }
}


/* ==========================================================
   v28 - Repositionnement précis de l'œil mot de passe
   Correction : l'icône est centrée verticalement DANS le champ.
   ========================================================== */

/* Le groupe reprend exactement la hauteur du champ */
body#authentication .form-group .input-group,
body#password .form-group .input-group,
body#checkout .form-group .input-group {
  position: relative !important;
}

/* Cible uniquement les groupes contenant le bouton show-password */
body#authentication .form-group .input-group:has(button[data-action="show-password"]),
body#password .form-group .input-group:has(button[data-action="show-password"]),
body#checkout .form-group .input-group:has(button[data-action="show-password"]) {
  display: block !important;
  width: 100% !important;
  max-width: 420px !important;
  min-height: 46px !important;
  height: 46px !important;
  line-height: 46px !important;
  overflow: visible !important;
}

/* Champ pleine largeur avec espace pour l'œil */
body#authentication .form-group .input-group:has(button[data-action="show-password"]) input.form-control,
body#password .form-group .input-group:has(button[data-action="show-password"]) input.form-control,
body#checkout .form-group .input-group:has(button[data-action="show-password"]) input.form-control {
  display: block !important;
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  line-height: 46px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-right: 56px !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
}

/* Le conteneur du bouton se cale sur toute la hauteur du champ */
body#authentication .form-group .input-group:has(button[data-action="show-password"]) .input-group-btn,
body#password .form-group .input-group:has(button[data-action="show-password"]) .input-group-btn,
body#checkout .form-group .input-group:has(button[data-action="show-password"]) .input-group-btn {
  position: absolute !important;
  top: 0 !important;
  right: 7px !important;
  bottom: 0 !important;
  z-index: 5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

/* Bouton œil : plus de top/transform, il est centré par flex */
body#authentication .form-group .input-group:has(button[data-action="show-password"]) button[data-action="show-password"],
body#password .form-group .input-group:has(button[data-action="show-password"]) button[data-action="show-password"],
body#checkout .form-group .input-group:has(button[data-action="show-password"]) button[data-action="show-password"] {
  position: static !important;
  transform: none !important;
  display: block !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23231b16%22%20stroke-width%3D%222.1%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M2.5%2012s3.5-6%209.5-6%209.5%206%209.5%206-3.5%206-9.5%206-9.5-6-9.5-6Z%22/%3E%0A%20%20%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223.2%22%20fill%3D%22none%22%20stroke%3D%22%23231b16%22%20stroke-width%3D%222.1%22/%3E%0A%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 19px 19px !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  box-shadow: none !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

/* Séparation très discrète à gauche de l'œil */
body#authentication .form-group .input-group:has(button[data-action="show-password"]) .input-group-btn::before,
body#password .form-group .input-group:has(button[data-action="show-password"]) .input-group-btn::before,
body#checkout .form-group .input-group:has(button[data-action="show-password"]) .input-group-btn::before {
  content: "" !important;
  position: absolute !important;
  left: -3px !important;
  top: 9px !important;
  bottom: 9px !important;
  width: 1px !important;
  background: rgba(35, 27, 22, .13) !important;
}

body#authentication .form-group .input-group:has(button[data-action="show-password"]) button[data-action="show-password"]:hover,
body#password .form-group .input-group:has(button[data-action="show-password"]) button[data-action="show-password"]:hover,
body#checkout .form-group .input-group:has(button[data-action="show-password"]) button[data-action="show-password"]:hover {
  background-color: rgba(0, 122, 120, .08) !important;
}

/* Mobile */
@media (max-width: 420px) {
  body#authentication .form-group .input-group:has(button[data-action="show-password"]),
  body#password .form-group .input-group:has(button[data-action="show-password"]),
  body#checkout .form-group .input-group:has(button[data-action="show-password"]) {
    max-width: 100% !important;
  }
}


/* ==========================================================
   v29 - Fiche produit : espacement des flèches quantité
   Objectif : les flèches + / - ne sont plus collées au champ quantité.
   ========================================================== */

body#product .product-quantity .qty,
body#product .product-quantity .input-group,
body#product .product-quantity .bootstrap-touchspin {
  overflow: visible !important;
}

/* Conteneur quantité : champ + flèches */
body#product .product-quantity .qty .input-group,
body#product .product-quantity .bootstrap-touchspin {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  max-width: none !important;
}

/* Champ quantité */
body#product .product-quantity input#quantity_wanted,
body#product .product-quantity input[name="qty"],
body#product .product-quantity .qty input,
body#product .product-quantity .bootstrap-touchspin input {
  width: 54px !important;
  min-width: 54px !important;
  height: 44px !important;
  min-height: 44px !important;
  text-align: center !important;
  border-radius: 16px !important;
  margin: 0 !important;
}

/* Colonne des boutons + / - */
body#product .product-quantity .input-group-btn-vertical,
body#product .product-quantity .bootstrap-touchspin .input-group-btn-vertical {
  position: static !important;
  display: inline-flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 4px !important;
  width: 24px !important;
  min-width: 24px !important;
  height: 44px !important;
  margin-left: 0 !important;
  padding: 0 !important;
}

/* Boutons flèches */
body#product .product-quantity .input-group-btn-vertical .btn,
body#product .product-quantity .bootstrap-touchspin .input-group-btn-vertical .btn {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  min-width: 22px !important;
  height: 20px !important;
  min-height: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 999px !important;
  line-height: 1 !important;
}

/* Le bouton panier garde une respiration propre après la quantité */
body#product .product-quantity .add,
body#product .product-quantity .add-to-cart {
  margin-left: 8px !important;
}

/* Mobile : on garde le bloc bien centré et lisible */
@media (max-width: 767px) {
  body#product .product-quantity .qty .input-group,
  body#product .product-quantity .bootstrap-touchspin {
    justify-content: center !important;
  }

  body#product .product-quantity .add,
  body#product .product-quantity .add-to-cart {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* ==========================================================
   v30 - Fiche produit : restauration visuelle des flèches quantité
   Objectif : conserver l'espace ajouté en v29, mais afficher de vraies
   flèches blanches lisibles dans les boutons + / -.
   ========================================================== */

body#product .product-quantity .qty .input-group,
body#product .product-quantity .bootstrap-touchspin {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  overflow: visible !important;
}

/* Champ quantité */
body#product .product-quantity input#quantity_wanted,
body#product .product-quantity input[name="qty"],
body#product .product-quantity .qty input,
body#product .product-quantity .bootstrap-touchspin input {
  width: 56px !important;
  min-width: 56px !important;
  height: 44px !important;
  min-height: 44px !important;
  text-align: center !important;
  border-radius: 16px !important;
}

/* Colonne tactile des flèches */
body#product .product-quantity .input-group-btn-vertical,
body#product .product-quantity .bootstrap-touchspin .input-group-btn-vertical {
  position: static !important;
  display: inline-flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 5px !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 48px !important;
  margin-left: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Boutons : taille suffisante pour tablette/mobile */
body#product .product-quantity .input-group-btn-vertical .btn,
body#product .product-quantity .bootstrap-touchspin .input-group-btn-vertical .btn,
body#product .product-quantity .btn.bootstrap-touchspin-up,
body#product .product-quantity .btn.bootstrap-touchspin-down {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 22px !important;
  min-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--bt-teal) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  box-shadow: 0 7px 14px rgba(0, 122, 120, .18) !important;
}

/* On neutralise les anciens pictos Bootstrap/Material si présents */
body#product .product-quantity .input-group-btn-vertical .btn i,
body#product .product-quantity .bootstrap-touchspin .input-group-btn-vertical .btn i,
body#product .product-quantity .input-group-btn-vertical .btn .material-icons,
body#product .product-quantity .bootstrap-touchspin .input-group-btn-vertical .btn .material-icons {
  display: none !important;
}

/* Flèche dessinée en CSS : visible, nette, indépendante des icônes PrestaShop */
body#product .product-quantity .btn.bootstrap-touchspin-up::before,
body#product .product-quantity .bootstrap-touchspin-up::before,
body#product .product-quantity .input-group-btn-vertical .btn:first-child::before {
  content: "" !important;
  display: block !important;
  width: 7px !important;
  height: 7px !important;
  border-top: 2px solid #fff !important;
  border-left: 2px solid #fff !important;
  transform: rotate(45deg) translate(1px, 1px) !important;
  text-indent: 0 !important;
}

body#product .product-quantity .btn.bootstrap-touchspin-down::before,
body#product .product-quantity .bootstrap-touchspin-down::before,
body#product .product-quantity .input-group-btn-vertical .btn:last-child::before {
  content: "" !important;
  display: block !important;
  width: 7px !important;
  height: 7px !important;
  border-right: 2px solid #fff !important;
  border-bottom: 2px solid #fff !important;
  transform: rotate(45deg) translate(-1px, -1px) !important;
  text-indent: 0 !important;
}

/* Feedback tactile discret */
body#product .product-quantity .input-group-btn-vertical .btn:hover,
body#product .product-quantity .input-group-btn-vertical .btn:focus,
body#product .product-quantity .btn.bootstrap-touchspin-up:hover,
body#product .product-quantity .btn.bootstrap-touchspin-down:hover {
  background: var(--bt-ink) !important;
}

/* Espacement panier : garde une respiration suffisante après les flèches */
body#product .product-quantity .add {
  margin-left: 12px !important;
}

/* Mobile : disposition centrée, boutons toujours utilisables */
@media (max-width: 767px) {
  body#product .product-quantity .qty .input-group,
  body#product .product-quantity .bootstrap-touchspin {
    justify-content: center !important;
  }

  body#product .product-quantity .input-group-btn-vertical,
  body#product .product-quantity .bootstrap-touchspin .input-group-btn-vertical {
    width: 30px !important;
    min-width: 30px !important;
  }

  body#product .product-quantity .input-group-btn-vertical .btn,
  body#product .product-quantity .bootstrap-touchspin .input-group-btn-vertical .btn,
  body#product .product-quantity .btn.bootstrap-touchspin-up,
  body#product .product-quantity .btn.bootstrap-touchspin-down {
    width: 30px !important;
    min-width: 30px !important;
    height: 23px !important;
    min-height: 23px !important;
  }

  body#product .product-quantity .add {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* ==========================================================
   v31 - Header desktop : stabilisation compte + panier
   Correction du décalage quand le panier passe de (0) à (1)
   ou quand l'utilisateur est connecté.
   ========================================================== */

@media (min-width: 992px) {
  /* Zone haute : les éléments restent alignés à droite et ne se chevauchent plus */
  #header .header-nav .container,
  #header .header-nav .row,
  #header .header-top .container,
  #header .header-top .row {
    min-width: 0 !important;
  }

  #header .header-nav .right-nav,
  #header .header-nav #_desktop_user_info,
  #header .header-nav #_desktop_cart,
  #header .header-top #_desktop_user_info,
  #header .header-top #_desktop_cart {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    min-width: 0 !important;
  }

  #header .header-nav .right-nav,
  #header .header-top .header-top-right,
  #header .header-top-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 18px !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
  }

  /* Compte client : largeur auto, texte lisible, pas de décalage vertical */
  #header #_desktop_user_info,
  #header .user-info,
  #header .user-info a,
  #header .user-info span,
  #header .user-info .account {
    white-space: nowrap !important;
    line-height: 1.2 !important;
  }

  #header #_desktop_user_info {
    flex: 0 1 auto !important;
    max-width: 320px !important;
    overflow: hidden !important;
  }

  #header #_desktop_user_info .user-info {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  #header #_desktop_user_info .user-info a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Panier : largeur minimale stable, même quand le nombre change */
  #header #_desktop_cart,
  #header .blockcart {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 132px !important;
    max-width: none !important;
  }

  #header .blockcart,
  #header .blockcart a,
  #header .blockcart .header,
  #header .blockcart .cart-preview,
  #header .blockcart .cart-products-count,
  #header #_desktop_cart .blockcart {
    white-space: nowrap !important;
  }

  #header .blockcart a,
  #header .blockcart .header,
  #header #_desktop_cart .blockcart {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
  }

  /* Empêche le panier de faire bouger la ligne quand le compteur change */
  #header .cart-products-count {
    display: inline-block !important;
    min-width: 22px !important;
    text-align: left !important;
  }

  /* Le bouton panier garde une forme stable */
  #header .blockcart {
    min-height: 48px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    border-radius: 999px !important;
  }

  /* Cas où le thème affiche les éléments dans le header principal */
  #header .bt-header-actions,
  #header .header-actions,
  #header .right-nav {
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
}

/* Très grands écrans : on évite que le compte prenne trop de place
   et fasse partir le panier. */
@media (min-width: 1400px) {
  #header #_desktop_user_info {
    max-width: 380px !important;
  }

  #header #_desktop_cart,
  #header .blockcart {
    min-width: 140px !important;
  }
}


/* ==========================================================
   v32 - Logo officiel PrestaShop
   Le thème utilise désormais {$shop.logo} dans le header.
   Ces règles conservent une taille stable quel que soit le fichier
   envoyé depuis Apparence > Thème et logo.
   ========================================================== */

#header .bt-logo-img,
#header .bt-mobile-logo img {
  object-fit: contain !important;
  object-position: center center !important;
}

@media (min-width: 768px) {
  #header .bt-logo-img {
    width: auto !important;
    max-width: 310px !important;
    max-height: 72px !important;
    height: auto !important;
  }
}

@media (max-width: 767px) {
  #header .bt-mobile-logo img {
    width: auto !important;
    max-width: min(180px, 52vw) !important;
    max-height: 40px !important;
    height: auto !important;
  }
}


/* ==========================================================
   v33 - Panier : flèches quantité visibles et espacées
   Même principe que la fiche produit : boutons tactiles, flèches
   blanches visibles, espacement propre avec le champ quantité.
   ========================================================== */

/* Conteneur quantité dans le panier */
body#cart .cart-item .bootstrap-touchspin,
body#cart .cart-item .input-group.bootstrap-touchspin,
body#cart .cart-items .bootstrap-touchspin,
body#cart .cart-items .input-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: auto !important;
  max-width: none !important;
  overflow: visible !important;
}

/* Champ quantité panier */
body#cart .cart-item input.js-cart-line-product-quantity,
body#cart .cart-item input[name="product-quantity-spin"],
body#cart .cart-items input.js-cart-line-product-quantity,
body#cart .cart-items .bootstrap-touchspin input {
  width: 56px !important;
  min-width: 56px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  text-align: center !important;
  border-radius: 16px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
}

/* Colonne tactile des flèches dans le panier */
body#cart .cart-item .input-group-btn-vertical,
body#cart .cart-items .input-group-btn-vertical,
body#cart .cart-item .bootstrap-touchspin .input-group-btn-vertical,
body#cart .cart-items .bootstrap-touchspin .input-group-btn-vertical {
  position: static !important;
  display: inline-flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 5px !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 48px !important;
  margin-left: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Boutons + / - dans le panier */
body#cart .cart-item .input-group-btn-vertical .btn,
body#cart .cart-items .input-group-btn-vertical .btn,
body#cart .cart-item .btn.bootstrap-touchspin-up,
body#cart .cart-item .btn.bootstrap-touchspin-down,
body#cart .cart-items .btn.bootstrap-touchspin-up,
body#cart .cart-items .btn.bootstrap-touchspin-down {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 22px !important;
  min-height: 22px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--bt-teal) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  box-shadow: 0 7px 14px rgba(0, 122, 120, .18) !important;
}

/* Neutralise les anciens pictos PrestaShop/Bootstrap */
body#cart .cart-item .input-group-btn-vertical .btn i,
body#cart .cart-items .input-group-btn-vertical .btn i,
body#cart .cart-item .input-group-btn-vertical .btn .material-icons,
body#cart .cart-items .input-group-btn-vertical .btn .material-icons {
  display: none !important;
}

/* Flèche du haut */
body#cart .cart-item .btn.bootstrap-touchspin-up::before,
body#cart .cart-items .btn.bootstrap-touchspin-up::before,
body#cart .cart-item .input-group-btn-vertical .btn:first-child::before,
body#cart .cart-items .input-group-btn-vertical .btn:first-child::before {
  content: "" !important;
  display: block !important;
  width: 7px !important;
  height: 7px !important;
  border-top: 2px solid #fff !important;
  border-left: 2px solid #fff !important;
  transform: rotate(45deg) translate(1px, 1px) !important;
  text-indent: 0 !important;
}

/* Flèche du bas */
body#cart .cart-item .btn.bootstrap-touchspin-down::before,
body#cart .cart-items .btn.bootstrap-touchspin-down::before,
body#cart .cart-item .input-group-btn-vertical .btn:last-child::before,
body#cart .cart-items .input-group-btn-vertical .btn:last-child::before {
  content: "" !important;
  display: block !important;
  width: 7px !important;
  height: 7px !important;
  border-right: 2px solid #fff !important;
  border-bottom: 2px solid #fff !important;
  transform: rotate(45deg) translate(-1px, -1px) !important;
  text-indent: 0 !important;
}

body#cart .cart-item .input-group-btn-vertical .btn:hover,
body#cart .cart-items .input-group-btn-vertical .btn:hover,
body#cart .cart-item .input-group-btn-vertical .btn:focus,
body#cart .cart-items .input-group-btn-vertical .btn:focus {
  background: var(--bt-ink) !important;
}

/* Alignement de la ligne produit panier */
body#cart .cart-item .qty,
body#cart .cart-item .cart-line-product-actions,
body#cart .cart-item .cart-line-product-quantity {
  overflow: visible !important;
}

/* Mobile : boutons toujours confortables au toucher */
@media (max-width: 767px) {
  body#cart .cart-item .bootstrap-touchspin,
  body#cart .cart-items .bootstrap-touchspin {
    justify-content: center !important;
  }

  body#cart .cart-item .input-group-btn-vertical .btn,
  body#cart .cart-items .input-group-btn-vertical .btn,
  body#cart .cart-item .btn.bootstrap-touchspin-up,
  body#cart .cart-item .btn.bootstrap-touchspin-down,
  body#cart .cart-items .btn.bootstrap-touchspin-up,
  body#cart .cart-items .btn.bootstrap-touchspin-down {
    width: 32px !important;
    min-width: 32px !important;
    height: 24px !important;
    min-height: 24px !important;
  }

  body#cart .cart-item .input-group-btn-vertical,
  body#cart .cart-items .input-group-btn-vertical {
    width: 32px !important;
    min-width: 32px !important;
    height: 50px !important;
  }
}


/* ==========================================================
   v34 - Onglet Allergènes produit
   Affichage intégré entre Description et Détail produit.
   ========================================================== */

body#product #biscuithe-allergenes.tab-pane {
  color: var(--bt-muted);
}

body#product #biscuithe-allergenes .ba-product-allergens {
  border: 0;
  background: transparent;
}


/* ==========================================================
   v35 - Fiche produit : Description / Allergènes / Détail produit
   transformés en accordéons sur desktop, tablette et mobile.
   ========================================================== */

body#product .bt-product-accordions {
  width: 100%;
  margin: 34px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body#product .bt-product-accordion {
  margin: 0 0 14px !important;
  border: 1px solid var(--bt-border) !important;
  border-radius: 22px !important;
  background: rgba(255, 253, 247, .92) !important;
  box-shadow: 0 12px 30px rgba(35, 27, 22, .06) !important;
  overflow: hidden !important;
}

body#product .bt-product-accordion summary {
  min-height: 62px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 18px 22px !important;
  cursor: pointer !important;
  color: var(--bt-ink) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(20px, 2vw, 26px) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  list-style: none !important;
  user-select: none !important;
}

body#product .bt-product-accordion summary::-webkit-details-marker {
  display: none !important;
}

body#product .bt-product-accordion summary::after {
  content: "+" !important;
  flex: 0 0 auto !important;
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: var(--bt-teal) !important;
  color: #fff !important;
  font-family: Arial, sans-serif !important;
  font-size: 26px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  box-shadow: 0 10px 20px rgba(0, 122, 120, .16) !important;
}

body#product .bt-product-accordion[open] summary {
  border-bottom: 1px solid var(--bt-border) !important;
  background: rgba(245, 233, 209, .35) !important;
}

body#product .bt-product-accordion[open] summary::after {
  content: "−" !important;
  background: var(--bt-ink) !important;
}

body#product .bt-product-accordion__content {
  padding: 24px 26px 28px !important;
  color: var(--bt-muted) !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
}

body#product .bt-product-accordion__content p:last-child {
  margin-bottom: 0 !important;
}

/* Les anciens contenus de product-details sont parfois livrés sous forme
   de .tab-pane par PrestaShop : on les force visibles dans l'accordéon. */
body#product .bt-product-accordions .tab-pane,
body#product .bt-product-accordions .tab-content > .tab-pane,
body#product .bt-product-accordions #product-details {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
  overflow: visible !important;
}

body#product .bt-product-accordions .fade {
  opacity: 1 !important;
}

/* Allergènes dans l'accordéon : plus compact et bien centré */
body#product .bt-product-accordion__content .ba-product-allergens {
  padding: 0 !important;
}

body#product .bt-product-accordion__content .ba-allergen-grid {
  gap: 24px 32px !important;
}

/* Tables / détails produit : lisible dans le bloc */
body#product .bt-product-accordions .product-features,
body#product .bt-product-accordions .product-reference,
body#product .bt-product-accordions .product-quantities,
body#product .bt-product-accordions .product-out-of-stock,
body#product .bt-product-accordions .product-customization {
  margin: 0 !important;
}

body#product .bt-product-accordions dl.data-sheet,
body#product .bt-product-accordions .data-sheet {
  margin-bottom: 0 !important;
}

/* Mobile : accordéons pleine largeur et boutons plus tactiles */
@media (max-width: 767px) {
  body#product .bt-product-accordions {
    margin-top: 26px !important;
  }

  body#product .bt-product-accordion {
    border-radius: 18px !important;
    margin-bottom: 12px !important;
  }

  body#product .bt-product-accordion summary {
    min-height: 58px !important;
    padding: 16px 18px !important;
    font-size: 21px !important;
  }

  body#product .bt-product-accordion summary::after {
    width: 38px !important;
    height: 38px !important;
    font-size: 28px !important;
  }

  body#product .bt-product-accordion__content {
    padding: 20px 18px 24px !important;
    font-size: 15px !important;
  }

  body#product .bt-product-accordion__content .ba-allergen-grid {
    justify-content: center !important;
    gap: 20px 22px !important;
  }
}


/* ==========================================================
   v36 - Fiche produit : accordéons plus fins et fermés par défaut
   Rendu plus léger, moins haut, plus proche d'une liste premium.
   ========================================================== */

body#product .bt-product-accordions {
  margin: 28px 0 0 !important;
}

body#product .bt-product-accordion {
  margin: 0 0 9px !important;
  border: 1px solid rgba(229, 214, 186, .85) !important;
  border-radius: 14px !important;
  background: rgba(255, 253, 247, .72) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body#product .bt-product-accordion summary {
  min-height: 48px !important;
  padding: 12px 16px !important;
  gap: 12px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  color: var(--bt-ink) !important;
  background: transparent !important;
}

body#product .bt-product-accordion summary span {
  display: inline-flex !important;
  align-items: center !important;
}

body#product .bt-product-accordion summary::after {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  background: rgba(0, 122, 120, .10) !important;
  color: var(--bt-teal) !important;
  box-shadow: none !important;
  border: 1px solid rgba(0, 122, 120, .16) !important;
}

body#product .bt-product-accordion[open] {
  background: rgba(255, 253, 247, .92) !important;
  box-shadow: 0 10px 24px rgba(35, 27, 22, .05) !important;
}

body#product .bt-product-accordion[open] summary {
  min-height: 48px !important;
  border-bottom: 1px solid rgba(229, 214, 186, .75) !important;
  background: rgba(245, 233, 209, .22) !important;
}

body#product .bt-product-accordion[open] summary::after {
  background: var(--bt-teal) !important;
  color: #fff !important;
  border-color: var(--bt-teal) !important;
}

body#product .bt-product-accordion__content {
  padding: 18px 18px 20px !important;
  font-size: 15px !important;
  line-height: 1.68 !important;
}

/* Allergènes : visuel moins massif dans l'accordéon */
body#product .bt-product-accordion__content .ba-product-allergens {
  padding: 2px 0 0 !important;
}

body#product .bt-product-accordion__content .ba-allergen-grid {
  gap: 18px 24px !important;
}

body#product .bt-product-accordion__content .ba-allergen-item {
  width: 74px !important;
  min-height: 78px !important;
  font-size: 12px !important;
}

body#product .bt-product-accordion__content .ba-allergen-item img {
  width: 30px !important;
  height: 30px !important;
  margin-bottom: 8px !important;
}

/* Mobile : encore un peu plus compact */
@media (max-width: 767px) {
  body#product .bt-product-accordions {
    margin-top: 22px !important;
  }

  body#product .bt-product-accordion {
    border-radius: 13px !important;
    margin-bottom: 8px !important;
  }

  body#product .bt-product-accordion summary {
    min-height: 46px !important;
    padding: 11px 14px !important;
    font-size: 14px !important;
  }

  body#product .bt-product-accordion summary::after {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    font-size: 18px !important;
  }

  body#product .bt-product-accordion__content {
    padding: 16px 15px 18px !important;
    font-size: 14px !important;
  }

  body#product .bt-product-accordion__content .ba-allergen-grid {
    gap: 16px 18px !important;
  }
}


/* ==========================================================
   v39 - Header mobile : suppression burger inutile + panier compact
   Le menu burger est masqué car le menu principal est déjà affiché.
   Le panier mobile est réduit pour éviter qu'il empiète sur la zone.
   ========================================================== */

@media (max-width: 991px) {
  /* La barre mobile passe en 2 zones : logo à gauche, actions à droite */
  body #header .bt-mobile-row {
    min-height: 42px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 2px !important;
  }

  /* Suppression complète du bouton hamburger */
  body #header .bt-mobile-menu,
  body #header #menu-icon {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  /* Logo mobile : plus naturellement posé à gauche */
  body #header .bt-mobile-logo {
    justify-content: flex-start !important;
    margin: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body #header .bt-mobile-logo img {
    max-width: min(142px, 42vw) !important;
    max-height: 34px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }

  /* Actions à droite : pas de retour à la ligne, pas de débordement */
  body #header .bt-mobile-actions {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
    max-width: 48vw !important;
  }

  body #header .bt-mobile-actions > * {
    flex: 0 0 auto !important;
  }

  /* Icône compte client plus discrète */
  body #header #_mobile_user_info,
  body #header #_mobile_user_info .user-info,
  body #header #_mobile_user_info .user-info a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 28px !important;
    width: auto !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body #header #_mobile_user_info .material-icons,
  body #header #_mobile_user_info i {
    font-size: 18px !important;
    line-height: 1 !important;
  }

  /* Panier mobile compact et stable */
  body #header #_mobile_cart,
  body #header #_mobile_cart .blockcart,
  body #header #_mobile_cart .cart-preview {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 46px !important;
    max-width: 92px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }

  body #header #_mobile_cart .blockcart,
  body #header #_mobile_cart .cart-preview,
  body #header #_mobile_cart .cart-preview .header,
  body #header #_mobile_cart .blockcart .header,
  body #header #_mobile_cart .blockcart a,
  body #header #_mobile_cart .cart-preview a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body #header #_mobile_cart .material-icons,
  body #header #_mobile_cart .shopping-cart,
  body #header #_mobile_cart i {
    font-size: 19px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  body #header #_mobile_cart .cart-products-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 14px !important;
    max-width: 34px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  /* Si le libellé "Panier" réapparaît selon l'état du module, on le masque
     sur mobile pour garder seulement l'icône + compteur. */
  body #header #_mobile_cart .cart-label,
  body #header #_mobile_cart .hidden-sm-down,
  body #header #_mobile_cart .hidden-md-down {
    display: none !important;
  }

  /* Barre globale légèrement plus basse et mieux équilibrée */
  body #header .bt-header-mobilebar {
    min-height: 42px !important;
  }

  body #header .bt-header-mobilebar .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* Très petits écrans : on compresse encore un peu le panier */
@media (max-width: 380px) {
  body #header .bt-mobile-logo img {
    max-width: min(126px, 40vw) !important;
    max-height: 32px !important;
  }

  body #header #_mobile_cart .blockcart,
  body #header #_mobile_cart .cart-preview,
  body #header #_mobile_cart .blockcart a,
  body #header #_mobile_cart .cart-preview a,
  body #header #_mobile_cart .cart-preview .header,
  body #header #_mobile_cart .blockcart .header {
    min-width: 42px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  body #header #_mobile_cart .material-icons,
  body #header #_mobile_cart .shopping-cart,
  body #header #_mobile_cart i {
    font-size: 18px !important;
  }

  body #header #_mobile_cart .cart-products-count {
    font-size: 11px !important;
    min-width: 12px !important;
  }
}


/* ==========================================================
   v40 - Page RGPD mobile : espace entre les boutons export
   Correction simple : les boutons CSV et PDF ne se touchent plus.
   ========================================================== */

body[id*="psgdpr"] .page-content .btn + .btn,
body[class*="psgdpr"] .page-content .btn + .btn,
#module-psgdpr-gdpr .page-content .btn + .btn,
.psgdprinfo17 .btn + .btn,
.psgdprinfo17 a.btn + a.btn,
.psgdprinfo17 button.btn + button.btn {
  margin-top: 9px !important;
}

@media (max-width: 767px) {
  body[id*="psgdpr"] .page-content .btn,
  body[class*="psgdpr"] .page-content .btn,
  #module-psgdpr-gdpr .page-content .btn,
  .psgdprinfo17 .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: 100% !important;
    white-space: normal !important;
    line-height: 1.2 !important;
  }

  body[id*="psgdpr"] .page-content .btn + .btn,
  body[class*="psgdpr"] .page-content .btn + .btn,
  #module-psgdpr-gdpr .page-content .btn + .btn,
  .psgdprinfo17 .btn + .btn {
    margin-top: 10px !important;
  }
}


/* ==========================================================
   v41 - Page RGPD desktop : correction alignement boutons
   La v40 ajoutait un espace vertical utile sur mobile, mais visible
   sur ordinateur. On conserve l'espace uniquement sur petit écran.
   ========================================================== */

@media (min-width: 768px) {
  body[id*="psgdpr"] .page-content .btn + .btn,
  body[class*="psgdpr"] .page-content .btn + .btn,
  #module-psgdpr-gdpr .page-content .btn + .btn,
  .psgdprinfo17 .btn + .btn,
  .psgdprinfo17 a.btn + a.btn,
  .psgdprinfo17 button.btn + button.btn {
    margin-top: 0 !important;
    margin-left: 14px !important;
    vertical-align: middle !important;
  }

  body[id*="psgdpr"] .page-content .btn,
  body[class*="psgdpr"] .page-content .btn,
  #module-psgdpr-gdpr .page-content .btn,
  .psgdprinfo17 .btn {
    vertical-align: middle !important;
  }
}


/* ==========================================================
   v42 - Liste produits : image pleine largeur + bandeaux DA
   Correction des miniatures produits nouvellement ajoutées :
   - l'image remplit toute la largeur de la zone visuelle ;
   - elle reste contenue dans l'image, sans déborder sur le texte ;
   - les bandeaux "Nouveau" / "Rupture de stock" reprennent la DA.
   ========================================================== */

/* Carte produit : sécurité anti-débordement */
.products .product-miniature,
.featured-products .product-miniature,
.product-accessories .product-miniature,
.product-miniature {
  overflow: visible !important;
}

/* Zone image propre, pleine largeur */
.products .product-miniature .thumbnail-container,
.featured-products .product-miniature .thumbnail-container,
.product-accessories .product-miniature .thumbnail-container,
.product-miniature .thumbnail-container {
  overflow: hidden !important;
  border-radius: 26px !important;
  background: #fffdf7 !important;
}

/* Conteneur image uniquement : l'image ne doit pas empiéter sur les infos */
.products .product-miniature .thumbnail-top,
.featured-products .product-miniature .thumbnail-top,
.product-accessories .product-miniature .thumbnail-top,
.product-miniature .thumbnail-top,
.products .product-miniature .product-thumbnail,
.featured-products .product-miniature .product-thumbnail,
.product-accessories .product-miniature .product-thumbnail,
.product-miniature .product-thumbnail {
  width: 100% !important;
  display: block !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 24px 24px 0 0 !important;
  background: #fffdf7 !important;
}

/* Image catalogue : pleine largeur, hauteur maîtrisée */
.products .product-miniature .product-thumbnail img,
.featured-products .product-miniature .product-thumbnail img,
.product-accessories .product-miniature .product-thumbnail img,
.product-miniature .product-thumbnail img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 230px !important;
  object-fit: cover !important;
  object-position: center center !important;
  margin: 0 !important;
  border-radius: 24px 24px 0 0 !important;
}

/* La zone texte reste séparée et lisible */
.products .product-miniature .product-description,
.featured-products .product-miniature .product-description,
.product-accessories .product-miniature .product-description,
.product-miniature .product-description {
  position: relative !important;
  z-index: 2 !important;
  background: #fffdf7 !important;
  border-radius: 0 0 24px 24px !important;
}

/* Bandeaux produit : base commune */
.products .product-miniature .product-flags,
.featured-products .product-miniature .product-flags,
.product-accessories .product-miniature .product-flags,
.product-miniature .product-flags {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 5 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

.products .product-miniature .product-flags li,
.featured-products .product-miniature .product-flags li,
.product-accessories .product-miniature .product-flags li,
.product-miniature .product-flags li,
.products .product-miniature .product-flag,
.featured-products .product-miniature .product-flag,
.product-accessories .product-miniature .product-flag,
.product-miniature .product-flag {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 253, 247, .70) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .035em !important;
  text-transform: uppercase !important;
  box-shadow: 0 10px 22px rgba(35, 27, 22, .16) !important;
}

/* Nouveau : couleur biscuit / dorée */
.products .product-miniature .product-flag.new,
.featured-products .product-miniature .product-flag.new,
.product-accessories .product-miniature .product-flag.new,
.product-miniature .product-flag.new,
.products .product-miniature .product-flags .new,
.featured-products .product-miniature .product-flags .new,
.product-accessories .product-miniature .product-flags .new,
.product-miniature .product-flags .new {
  background: #c49348 !important;
}

/* Rupture stock : brun premium, plus cohérent que le bleu PrestaShop */
.products .product-miniature .product-flag.out_of_stock,
.featured-products .product-miniature .product-flag.out_of_stock,
.product-accessories .product-miniature .product-flag.out_of_stock,
.product-miniature .product-flag.out_of_stock,
.products .product-miniature .product-flags .out_of_stock,
.featured-products .product-miniature .product-flags .out_of_stock,
.product-accessories .product-miniature .product-flags .out_of_stock,
.product-miniature .product-flags .out_of_stock {
  background: #231b16 !important;
}

/* Promotions / remises éventuelles : turquoise DA */
.products .product-miniature .product-flag.discount,
.products .product-miniature .product-flag.on-sale,
.products .product-miniature .product-flags .discount,
.products .product-miniature .product-flags .on-sale,
.product-miniature .product-flag.discount,
.product-miniature .product-flag.on-sale,
.product-miniature .product-flags .discount,
.product-miniature .product-flags .on-sale {
  background: var(--bt-teal) !important;
}

/* Mobile : hauteur image adaptée sans écraser la carte */
@media (max-width: 767px) {
  .products .product-miniature .product-thumbnail img,
  .featured-products .product-miniature .product-thumbnail img,
  .product-accessories .product-miniature .product-thumbnail img,
  .product-miniature .product-thumbnail img {
    height: 210px !important;
  }

  .products .product-miniature .product-flags,
  .featured-products .product-miniature .product-flags,
  .product-accessories .product-miniature .product-flags,
  .product-miniature .product-flags {
    top: 10px !important;
    left: 10px !important;
    gap: 6px !important;
  }

  .products .product-miniature .product-flags li,
  .featured-products .product-miniature .product-flags li,
  .product-accessories .product-miniature .product-flags li,
  .product-miniature .product-flags li,
  .products .product-miniature .product-flag,
  .featured-products .product-miniature .product-flag,
  .product-accessories .product-miniature .product-flag,
  .product-miniature .product-flag {
    min-height: 28px !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
  }
}


/* ==========================================================
   v47 - Cartes produits : suppression encadré noir au clic
   Le contour noir venait du focus navigateur sur le lien image.
   On le retire au clic souris/tactile, tout en gardant un focus clavier
   discret en turquoise pour l'accessibilité.
   ========================================================== */

/* Clic souris/tactile : aucun encadré noir */
body .product-miniature a.product-thumbnail:focus,
body .product-miniature a.product-thumbnail:active,
body .product-miniature .thumbnail-container > a:focus,
body .product-miniature .thumbnail-container > a:active,
body .product-miniature .product-thumbnail:focus,
body .product-miniature .product-thumbnail:active,
body .product-miniature .thumbnail:focus,
body .product-miniature .thumbnail:active,
body .product-miniature img:focus,
body .product-miniature img:active {
  outline: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Navigateurs modernes : pas de focus visible au clic souris */
body .product-miniature a.product-thumbnail:focus:not(:focus-visible),
body .product-miniature .thumbnail-container > a:focus:not(:focus-visible),
body .product-miniature .thumbnail:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

/* Focus clavier : discret et cohérent avec la DA, au lieu du contour noir */
body .product-miniature a.product-thumbnail:focus-visible,
body .product-miniature .thumbnail-container > a:focus-visible,
body .product-miniature .thumbnail:focus-visible {
  outline: 2px solid rgba(0, 122, 120, .55) !important;
  outline-offset: -4px !important;
  box-shadow: none !important;
  border-radius: 24px 24px 0 0 !important;
}

/* Sécurité si Bootstrap applique un style focus global aux liens */
body a.product-thumbnail,
body a.product-thumbnail:focus,
body a.product-thumbnail:hover,
body a.product-thumbnail:active {
  text-decoration: none !important;
}


/* ==========================================================
   v48 - Fiche produit : bandeaux "Nouveau", stock, promo en DA
   Harmonisation avec les cartes produits.
   ========================================================== */

/* La zone image doit permettre le positionnement propre des bandeaux */
body#product .images-container,
body#product .product-cover,
body#product .product-cover .layer {
  position: relative !important;
}

/* Conteneur des bandeaux sur fiche produit */
body#product .product-flags,
body#product .images-container .product-flags,
body#product .product-cover .product-flags {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  z-index: 8 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  pointer-events: none !important;
}

/* Style commun des bandeaux produit */
body#product .product-flags li,
body#product .product-flags .product-flag,
body#product .product-flag {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 7px 12px !important;
  border: 1px solid rgba(255, 253, 247, .72) !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .035em !important;
  text-transform: uppercase !important;
  box-shadow: 0 10px 22px rgba(35, 27, 22, .16) !important;
}

/* Nouveau : couleur biscuit / dorée */
body#product .product-flags .new,
body#product .product-flag.new {
  background: #c49348 !important;
}

/* Rupture de stock : brun premium */
body#product .product-flags .out_of_stock,
body#product .product-flag.out_of_stock {
  background: #231b16 !important;
}

/* Promotions / remises éventuelles : turquoise DA */
body#product .product-flags .discount,
body#product .product-flags .on-sale,
body#product .product-flag.discount,
body#product .product-flag.on-sale {
  background: var(--bt-teal) !important;
}

/* Sécurité : neutralise l'ancien bleu PrestaShop sur la fiche produit */
body#product .product-flags li.product-flag:not(.new):not(.out_of_stock):not(.discount):not(.on-sale) {
  background: var(--bt-teal) !important;
}

/* Mobile : bandeaux légèrement plus compacts */
@media (max-width: 767px) {
  body#product .product-flags,
  body#product .images-container .product-flags,
  body#product .product-cover .product-flags {
    top: 10px !important;
    left: 10px !important;
    gap: 6px !important;
  }

  body#product .product-flags li,
  body#product .product-flags .product-flag,
  body#product .product-flag {
    min-height: 28px !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
  }
}


/* ==========================================================
   v49 - Liste produits : centrage de la carte dans son cadre
   Correction visuelle : la carte produit n'est plus collée en haut
   du grand encadré. Elle est centrée verticalement et horizontalement.
   ========================================================== */

/* Le grand cadre devient un conteneur de centrage */
body .products .product-miniature,
body #js-product-list .products .product-miniature,
body .featured-products .product-miniature,
body .product-accessories .product-miniature {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  padding: 16px !important;
}

/* La carte interne se place au centre du cadre */
body .products .product-miniature .thumbnail-container,
body #js-product-list .products .product-miniature .thumbnail-container,
body .featured-products .product-miniature .thumbnail-container,
body .product-accessories .product-miniature .thumbnail-container {
  margin: auto !important;
}

/* On évite que le survol décale l’équilibre visuel dans le grand cadre */
body .products .product-miniature:hover,
body #js-product-list .products .product-miniature:hover,
body .featured-products .product-miniature:hover,
body .product-accessories .product-miniature:hover {
  transform: none !important;
}

/* Le léger mouvement reste uniquement sur la carte interne */
body .products .product-miniature .thumbnail-container:hover,
body #js-product-list .products .product-miniature .thumbnail-container:hover,
body .featured-products .product-miniature .thumbnail-container:hover,
body .product-accessories .product-miniature .thumbnail-container:hover {
  transform: translateY(-3px) !important;
}

/* Mobile : marge un peu plus compacte */
@media (max-width: 767px) {
  body .products .product-miniature,
  body #js-product-list .products .product-miniature,
  body .featured-products .product-miniature,
  body .product-accessories .product-miniature {
    padding: 12px !important;
  }
}


/* ==========================================================
   v50 - Brunch : affichage responsive du menu image
   Objectif : continuer à remplacer une seule image chaque semaine,
   tout en ayant un affichage propre sur ordinateur et smartphone.

   Compatible avec le HTML actuel du module Contact Form Ultimate :
   <a href="/img/Brunch/Brunch.jpg">
     <img src="/img/Brunch/Brunch.jpg">
   </a>

   Option conseillée si vous éditez le bloc HTML :
   <div class="bt-brunch-menu">
     <a href="/img/Brunch/Brunch.jpg" target="_blank" class="bt-brunch-menu__link">
       <img src="/img/Brunch/Brunch.jpg" alt="Menu brunch Biscuithé de la semaine">
     </a>
     <p class="bt-brunch-menu__hint">Cliquez sur le menu pour l’agrandir</p>
   </div>
   ========================================================== */

/* Version avec classe dédiée */
.bt-brunch-menu {
  width: 100% !important;
  max-width: 820px !important;
  margin: 0 auto 30px !important;
  text-align: center !important;
}

.bt-brunch-menu__link {
  display: block !important;
  width: 100% !important;
  padding: 10px !important;
  border: 1px solid var(--bt-border) !important;
  border-radius: 28px !important;
  background: #fffdf7 !important;
  box-shadow: 0 18px 40px rgba(35, 27, 22, .10) !important;
  overflow: hidden !important;
  text-decoration: none !important;
}

.bt-brunch-menu__link img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  border-radius: 20px !important;
}

.bt-brunch-menu__hint {
  margin: 10px 0 0 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: var(--bt-muted) !important;
}

/* Compatibilité automatique avec votre bloc actuel du module :
   on repère l'image du menu brunch par son chemin /img/Brunch/. */
.ets_cfu_wrapper img[src*="/img/Brunch/" i],
.ets_cfu_form_wrapper img[src*="/img/Brunch/" i],
.ets_cfu_form img[src*="/img/Brunch/" i],
.ets-cfu-form img[src*="/img/Brunch/" i],
.ets_cfultimate img[src*="/img/Brunch/" i],
form img[src*="/img/Brunch/" i],
.page-content img[src*="/img/Brunch/" i] {
  display: block !important;
  width: 100% !important;
  max-width: 800px !important;
  height: auto !important;
  margin: 0 auto !important;
  border-radius: 20px !important;
}

/* Encadre automatiquement le lien contenant l'image brunch,
   sans modifier le contenu du formulaire. */
.ets_cfu_wrapper a:has(img[src*="/img/Brunch/" i]),
.ets_cfu_form_wrapper a:has(img[src*="/img/Brunch/" i]),
.ets_cfu_form a:has(img[src*="/img/Brunch/" i]),
.ets-cfu-form a:has(img[src*="/img/Brunch/" i]),
.ets_cfultimate a:has(img[src*="/img/Brunch/" i]),
form a:has(img[src*="/img/Brunch/" i]),
.page-content a:has(img[src*="/img/Brunch/" i]) {
  display: block !important;
  width: min(100%, 820px) !important;
  margin: 0 auto 30px !important;
  padding: 10px !important;
  border: 1px solid var(--bt-border) !important;
  border-radius: 28px !important;
  background: #fffdf7 !important;
  box-shadow: 0 18px 40px rgba(35, 27, 22, .10) !important;
  overflow: hidden !important;
  text-decoration: none !important;
}

/* Petite indication ajoutable dans le HTML si souhaité */
.ets_cfu_wrapper .bt-brunch-menu__hint,
.ets_cfu_form_wrapper .bt-brunch-menu__hint,
.ets_cfu_form .bt-brunch-menu__hint {
  text-align: center !important;
}

/* Mise en forme générale du formulaire brunch / Contact Form Ultimate :
   on évite les champs trop collés au menu. */
.ets_cfu_wrapper,
.ets_cfu_form_wrapper,
.ets_cfu_form,
.ets-cfu-form,
.ets_cfultimate {
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.ets_cfu_wrapper .form-group,
.ets_cfu_form_wrapper .form-group,
.ets_cfu_form .form-group,
.ets-cfu-form .form-group,
.ets_cfultimate .form-group {
  margin-bottom: 18px !important;
}

/* Sur mobile, le menu prend toute la largeur disponible mais reste lisible */
@media (max-width: 767px) {
  .bt-brunch-menu {
    max-width: 100% !important;
    margin-bottom: 24px !important;
  }

  .bt-brunch-menu__link,
  .ets_cfu_wrapper a:has(img[src*="/img/Brunch/" i]),
  .ets_cfu_form_wrapper a:has(img[src*="/img/Brunch/" i]),
  .ets_cfu_form a:has(img[src*="/img/Brunch/" i]),
  .ets-cfu-form a:has(img[src*="/img/Brunch/" i]),
  .ets_cfultimate a:has(img[src*="/img/Brunch/" i]),
  form a:has(img[src*="/img/Brunch/" i]),
  .page-content a:has(img[src*="/img/Brunch/" i]) {
    width: 100% !important;
    margin-bottom: 22px !important;
    padding: 6px !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 26px rgba(35, 27, 22, .09) !important;
  }

  .bt-brunch-menu__link img,
  .ets_cfu_wrapper img[src*="/img/Brunch/" i],
  .ets_cfu_form_wrapper img[src*="/img/Brunch/" i],
  .ets_cfu_form img[src*="/img/Brunch/" i],
  .ets-cfu-form img[src*="/img/Brunch/" i],
  .ets_cfultimate img[src*="/img/Brunch/" i],
  form img[src*="/img/Brunch/" i],
  .page-content img[src*="/img/Brunch/" i] {
    max-width: 100% !important;
    border-radius: 15px !important;
  }

  .bt-brunch-menu__hint {
    font-size: 12px !important;
  }
}


/* ==========================================================
   v51 - Brunch dynamique via module BiscuitheBrunchMenu
   L'image peut venir de /module/biscuithebrunchmenu/current.
   ========================================================== */

.bt-brunch-menu img[src*="biscuithebrunchmenu/current" i],
.page-content img[src*="biscuithebrunchmenu/current" i],
form img[src*="biscuithebrunchmenu/current" i],
.ets_cfu_wrapper img[src*="biscuithebrunchmenu/current" i],
.ets_cfu_form_wrapper img[src*="biscuithebrunchmenu/current" i],
.ets_cfu_form img[src*="biscuithebrunchmenu/current" i],
.ets-cfu-form img[src*="biscuithebrunchmenu/current" i],
.ets_cfultimate img[src*="biscuithebrunchmenu/current" i] {
  display: block !important;
  width: 100% !important;
  max-width: 800px !important;
  height: auto !important;
  margin: 0 auto !important;
  border-radius: 20px !important;
}

.bt-brunch-menu a[href*="biscuithebrunchmenu/current" i],
.page-content a:has(img[src*="biscuithebrunchmenu/current" i]),
form a:has(img[src*="biscuithebrunchmenu/current" i]),
.ets_cfu_wrapper a:has(img[src*="biscuithebrunchmenu/current" i]),
.ets_cfu_form_wrapper a:has(img[src*="biscuithebrunchmenu/current" i]),
.ets_cfu_form a:has(img[src*="biscuithebrunchmenu/current" i]),
.ets-cfu-form a:has(img[src*="biscuithebrunchmenu/current" i]),
.ets_cfultimate a:has(img[src*="biscuithebrunchmenu/current" i]) {
  display: block !important;
  width: min(100%, 820px) !important;
  margin: 0 auto 30px !important;
  padding: 10px !important;
  border: 1px solid var(--bt-border) !important;
  border-radius: 28px !important;
  background: #fffdf7 !important;
  box-shadow: 0 18px 40px rgba(35, 27, 22, .10) !important;
  overflow: hidden !important;
  text-decoration: none !important;
}

@media (max-width: 767px) {
  .bt-brunch-menu a[href*="biscuithebrunchmenu/current" i],
  .page-content a:has(img[src*="biscuithebrunchmenu/current" i]),
  form a:has(img[src*="biscuithebrunchmenu/current" i]),
  .ets_cfu_wrapper a:has(img[src*="biscuithebrunchmenu/current" i]),
  .ets_cfu_form_wrapper a:has(img[src*="biscuithebrunchmenu/current" i]),
  .ets_cfu_form a:has(img[src*="biscuithebrunchmenu/current" i]),
  .ets-cfu-form a:has(img[src*="biscuithebrunchmenu/current" i]),
  .ets_cfultimate a:has(img[src*="biscuithebrunchmenu/current" i]) {
    width: 100% !important;
    margin-bottom: 22px !important;
    padding: 6px !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 26px rgba(35, 27, 22, .09) !important;
  }

  .bt-brunch-menu img[src*="biscuithebrunchmenu/current" i],
  .page-content img[src*="biscuithebrunchmenu/current" i],
  form img[src*="biscuithebrunchmenu/current" i],
  .ets_cfu_wrapper img[src*="biscuithebrunchmenu/current" i],
  .ets_cfu_form_wrapper img[src*="biscuithebrunchmenu/current" i],
  .ets_cfu_form img[src*="biscuithebrunchmenu/current" i],
  .ets-cfu-form img[src*="biscuithebrunchmenu/current" i],
  .ets_cfultimate img[src*="biscuithebrunchmenu/current" i] {
    max-width: 100% !important;
    border-radius: 15px !important;
  }
}


/* ==========================================================
   v53 - Header desktop : correction propre du débordement
   Annule l'effet v52 :
   - le logo reste dans la barre du haut, à gauche ;
   - le menu reste au centre ;
   - la zone compte / déconnexion / panier n'est plus rognée ;
   - le menu se compacte au lieu de chevaucher le compte.
   ========================================================== */

@media (min-width: 992px) {
  body #header .bt-header-main {
    padding: 14px 0 !important;
    min-height: 82px !important;
    height: auto !important;
    border-bottom: 1px solid rgba(229, 214, 186, .9) !important;
  }

  /* Retour à une vraie grille sur une seule ligne */
  body #header .bt-header-layout {
    display: grid !important;
    grid-template-columns: 210px minmax(0, 1fr) minmax(330px, max-content) !important;
    grid-template-areas: "brand nav actions" !important;
    align-items: center !important;
    column-gap: 18px !important;
    row-gap: 0 !important;
    width: 100% !important;
    min-height: 58px !important;
  }

  /* Logo bien dans la zone de gauche */
  body #header .bt-header-brand,
  body #header #_desktop_logo {
    grid-area: brand !important;
    grid-column: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 210px !important;
    max-width: 210px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body #header .bt-logo-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    max-width: 100% !important;
  }

  body #header .bt-logo-img,
  body #header .logo,
  body #header img.logo,
  body #header a.logo img {
    display: block !important;
    width: auto !important;
    max-width: 170px !important;
    max-height: 48px !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: left center !important;
    margin: 0 !important;
  }

  /* Menu central : il reste dans sa colonne et se compacte */
  body #header .bt-header-nav {
    grid-area: nav !important;
    grid-column: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-top: 0 !important;
  }

  body #header .bt-header-nav #search_widget,
  body #header .bt-header-nav .search-widget {
    display: none !important;
  }

  body #header .bt-header-nav #_desktop_top_menu,
  body #header .bt-header-nav .top-menu,
  body #header .bt-header-nav .menu,
  body #header .bt-header-nav .menu-content,
  body #header .bt-header-nav .header-menu,
  body #header .bt-header-nav .nav-full-width {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;
  }

  body #header .bt-header-nav .top-menu,
  body #header .bt-header-nav .menu > ul,
  body #header .bt-header-nav .menu-content > ul,
  body #header .bt-header-nav #_desktop_top_menu > ul,
  body #header .bt-header-nav .top-menu[data-depth="0"] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 2px 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  body #header .bt-header-nav .top-menu > li,
  body #header .bt-header-nav .menu > ul > li,
  body #header .bt-header-nav .menu-content > ul > li,
  body #header .bt-header-nav #_desktop_top_menu > ul > li {
    display: inline-flex !important;
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body #header .bt-header-nav .top-menu a,
  body #header .bt-header-nav .menu a,
  body #header .bt-header-nav .menu-content a,
  body #header .bt-header-nav #_desktop_top_menu a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    padding: 0 8px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: var(--bt-muted) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }

  /* Zone actions : assez large pour Déconnexion + nom + panier */
  body #header .bt-header-actions {
    grid-area: actions !important;
    grid-column: auto !important;
    position: relative !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    width: auto !important;
    min-width: 330px !important;
    max-width: 430px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    flex-wrap: nowrap !important;
  }

  body #header .bt-header-actions .right-nav,
  body #header .bt-header-actions #_desktop_user_info,
  body #header .bt-header-actions .user-info,
  body #header .bt-header-actions #_desktop_cart {
    display: inline-flex !important;
    align-items: center !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }

  body #header .bt-header-actions #_desktop_user_info,
  body #header .bt-header-actions .user-info {
    flex: 1 1 auto !important;
    max-width: 250px !important;
  }

  body #header .bt-header-actions .user-info a,
  body #header .bt-header-actions #_desktop_user_info a,
  body #header .bt-header-actions .account {
    display: inline-flex !important;
    align-items: center !important;
    max-width: 250px !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    color: var(--bt-ink) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    min-height: 38px !important;
    padding: 0 2px !important;
  }

  body #header .bt-header-actions #_desktop_cart,
  body #header .bt-header-actions .blockcart,
  body #header .bt-header-actions .cart-preview {
    flex: 0 0 auto !important;
    min-width: 118px !important;
    max-width: 155px !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }

  body #header .bt-header-actions .cart-preview,
  body #header .bt-header-actions .blockcart {
    min-height: 42px !important;
    height: 42px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* Écrans plus serrés : on garde la logique propre,
   mais le menu a le droit de prendre une deuxième petite ligne dans sa colonne. */
@media (min-width: 992px) and (max-width: 1180px) {
  body #header .bt-header-layout {
    grid-template-columns: 160px minmax(0, 1fr) minmax(300px, max-content) !important;
    column-gap: 12px !important;
  }

  body #header .bt-header-brand,
  body #header #_desktop_logo {
    width: 160px !important;
    max-width: 160px !important;
  }

  body #header .bt-logo-img,
  body #header .logo,
  body #header img.logo,
  body #header a.logo img {
    max-width: 140px !important;
    max-height: 42px !important;
  }

  body #header .bt-header-nav .top-menu a,
  body #header .bt-header-nav .menu a,
  body #header .bt-header-nav .menu-content a,
  body #header .bt-header-nav #_desktop_top_menu a {
    font-size: 12px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  body #header .bt-header-actions {
    min-width: 300px !important;
    max-width: 390px !important;
  }

  body #header .bt-header-actions #_desktop_user_info,
  body #header .bt-header-actions .user-info {
    max-width: 210px !important;
  }
}


/* ==========================================================
   v54 - Header desktop : logo plus lisible
   Le logo reprend de la hauteur et de la largeur sans sortir du header.
   ========================================================== */

@media (min-width: 992px) {
  body #header .bt-header-main {
    padding: 12px 0 !important;
    min-height: 88px !important;
  }

  /* On donne plus de place au logo tout en gardant assez d'espace menu/actions */
  body #header .bt-header-layout {
    grid-template-columns: 280px minmax(0, 1fr) minmax(330px, max-content) !important;
    column-gap: 18px !important;
    min-height: 64px !important;
  }

  body #header .bt-header-brand,
  body #header #_desktop_logo {
    width: 280px !important;
    max-width: 280px !important;
    min-height: 64px !important;
    display: flex !important;
    align-items: center !important;
  }

  body #header .bt-logo-link {
    width: 100% !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
  }

  body #header .bt-logo-img,
  body #header .logo,
  body #header img.logo,
  body #header a.logo img {
    width: auto !important;
    max-width: 250px !important;
    height: auto !important;
    max-height: 62px !important;
    object-fit: contain !important;
    object-position: left center !important;
  }
}

/* Écrans intermédiaires : logo agrandi mais sans gêner le menu */
@media (min-width: 992px) and (max-width: 1180px) {
  body #header .bt-header-layout {
    grid-template-columns: 215px minmax(0, 1fr) minmax(300px, max-content) !important;
    column-gap: 12px !important;
  }

  body #header .bt-header-brand,
  body #header #_desktop_logo {
    width: 215px !important;
    max-width: 215px !important;
    min-height: 56px !important;
  }

  body #header .bt-logo-link {
    height: 56px !important;
  }

  body #header .bt-logo-img,
  body #header .logo,
  body #header img.logo,
  body #header a.logo img {
    max-width: 200px !important;
    max-height: 54px !important;
  }
}

/* Très grands écrans : on peut encore mieux exploiter la zone gauche */
@media (min-width: 1400px) {
  body #header .bt-header-layout {
    grid-template-columns: 320px minmax(0, 1fr) minmax(330px, max-content) !important;
  }

  body #header .bt-header-brand,
  body #header #_desktop_logo {
    width: 320px !important;
    max-width: 320px !important;
  }

  body #header .bt-logo-img,
  body #header .logo,
  body #header img.logo,
  body #header a.logo img {
    max-width: 285px !important;
    max-height: 66px !important;
  }
}


/* ==========================================================
   v55 - Header desktop : logo compact mais lisible + menu sur 1 ligne
   Objectif :
   - réduire la zone perdue à gauche ;
   - garder le logo lisible ;
   - redonner de la largeur au menu ;
   - maintenir Déconnexion / compte / panier sans rognage.
   ========================================================== */

@media (min-width: 992px) {
  body #header .bt-header-main {
    padding: 10px 0 !important;
    min-height: 76px !important;
  }

  /* Colonne logo plus compacte : on gagne de la place pour le menu. */
  body #header .bt-header-layout {
    grid-template-columns: 205px minmax(0, 1fr) minmax(330px, max-content) !important;
    grid-template-areas: "brand nav actions" !important;
    column-gap: 14px !important;
    row-gap: 0 !important;
    min-height: 56px !important;
    align-items: center !important;
  }

  body #header .bt-header-brand,
  body #header #_desktop_logo {
    grid-area: brand !important;
    width: 205px !important;
    max-width: 205px !important;
    min-height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }

  body #header .bt-logo-link {
    width: 205px !important;
    height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }

  body #header .bt-logo-img,
  body #header .logo,
  body #header img.logo,
  body #header a.logo img {
    width: auto !important;
    max-width: 195px !important;
    height: auto !important;
    max-height: 54px !important;
    object-fit: contain !important;
    object-position: left center !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  /* Menu : on exploite toute la largeur gagnée et on force une seule ligne
     sur desktop standard. */
  body #header .bt-header-nav {
    grid-area: nav !important;
    grid-column: auto !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body #header .bt-header-nav #_desktop_top_menu,
  body #header .bt-header-nav .top-menu,
  body #header .bt-header-nav .menu,
  body #header .bt-header-nav .menu-content,
  body #header .bt-header-nav .header-menu,
  body #header .bt-header-nav .nav-full-width {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body #header .bt-header-nav .top-menu,
  body #header .bt-header-nav .menu > ul,
  body #header .bt-header-nav .menu-content > ul,
  body #header .bt-header-nav #_desktop_top_menu > ul,
  body #header .bt-header-nav .top-menu[data-depth="0"] {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body #header .bt-header-nav .top-menu > li,
  body #header .bt-header-nav .menu > ul > li,
  body #header .bt-header-nav .menu-content > ul > li,
  body #header .bt-header-nav #_desktop_top_menu > ul > li {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
  }

  body #header .bt-header-nav .top-menu a,
  body #header .bt-header-nav .menu a,
  body #header .bt-header-nav .menu-content a,
  body #header .bt-header-nav #_desktop_top_menu a {
    min-height: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    padding: 0 7px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  /* Actions : pas de rognage de "Déconnexion". */
  body #header .bt-header-actions {
    grid-area: actions !important;
    grid-column: auto !important;
    min-width: 330px !important;
    max-width: 430px !important;
    overflow: visible !important;
    gap: 10px !important;
    white-space: nowrap !important;
  }

  body #header .bt-header-actions #_desktop_user_info,
  body #header .bt-header-actions .user-info {
    max-width: 250px !important;
    overflow: visible !important;
  }

  body #header .bt-header-actions .user-info a,
  body #header .bt-header-actions #_desktop_user_info a,
  body #header .bt-header-actions .account {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }
}

/* Grands écrans : logo un peu plus confortable, sans gaspiller la zone. */
@media (min-width: 1400px) {
  body #header .bt-header-layout {
    grid-template-columns: 230px minmax(0, 1fr) minmax(330px, max-content) !important;
  }

  body #header .bt-header-brand,
  body #header #_desktop_logo,
  body #header .bt-logo-link {
    width: 230px !important;
    max-width: 230px !important;
  }

  body #header .bt-logo-img,
  body #header .logo,
  body #header img.logo,
  body #header a.logo img {
    max-width: 220px !important;
    max-height: 58px !important;
  }
}

/* Écrans desktop plus serrés : menu toujours prioritaire, logo compact. */
@media (min-width: 992px) and (max-width: 1180px) {
  body #header .bt-header-layout {
    grid-template-columns: 160px minmax(0, 1fr) minmax(300px, max-content) !important;
    column-gap: 10px !important;
  }

  body #header .bt-header-brand,
  body #header #_desktop_logo,
  body #header .bt-logo-link {
    width: 160px !important;
    max-width: 160px !important;
  }

  body #header .bt-logo-img,
  body #header .logo,
  body #header img.logo,
  body #header a.logo img {
    max-width: 150px !important;
    max-height: 46px !important;
  }

  body #header .bt-header-nav .top-menu a,
  body #header .bt-header-nav .menu a,
  body #header .bt-header-nav .menu-content a,
  body #header .bt-header-nav #_desktop_top_menu a {
    font-size: 12px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
}


/* ==========================================================
   v56 - Header desktop : logo dans la zone gauche perdue
   Objectif :
   - supprimer le centrage trop étroit du header ;
   - placer le logo dans la grande zone vide à gauche ;
   - faire commencer le menu juste après le logo ;
   - conserver compte / panier à droite sans rognage.
   ========================================================== */

@media (min-width: 992px) {
  /* Le header utilise maintenant toute la largeur disponible,
     au lieu d'être enfermé dans un container centré. */
  body #header .bt-header-main > .container {
    width: 100% !important;
    max-width: none !important;
    padding-left: clamp(24px, 3vw, 56px) !important;
    padding-right: clamp(24px, 3vw, 56px) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body #header .bt-header-main {
    padding: 10px 0 !important;
    min-height: 78px !important;
  }

  /* Nouvelle organisation :
     [logo à gauche] [menu qui démarre juste après] [compte + panier à droite] */
  body #header .bt-header-layout {
    display: grid !important;
    grid-template-columns: clamp(220px, 18vw, 340px) minmax(0, 1fr) minmax(330px, max-content) !important;
    grid-template-areas: "brand nav actions" !important;
    align-items: center !important;
    column-gap: clamp(18px, 2vw, 34px) !important;
    row-gap: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 58px !important;
  }

  /* Logo dans la zone gauche */
  body #header .bt-header-brand,
  body #header #_desktop_logo {
    grid-area: brand !important;
    grid-column: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 58px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }

  body #header .bt-logo-link {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: 58px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }

  body #header .bt-logo-img,
  body #header .logo,
  body #header img.logo,
  body #header a.logo img {
    display: block !important;
    width: auto !important;
    max-width: clamp(190px, 16vw, 300px) !important;
    height: auto !important;
    max-height: 56px !important;
    object-fit: contain !important;
    object-position: left center !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  /* Menu : il n'est plus centré dans une zone trop petite.
     Il démarre après le logo et utilise mieux la largeur. */
  body #header .bt-header-nav {
    grid-area: nav !important;
    grid-column: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    border-top: 0 !important;
  }

  body #header .bt-header-nav #_desktop_top_menu,
  body #header .bt-header-nav .top-menu,
  body #header .bt-header-nav .menu,
  body #header .bt-header-nav .menu-content,
  body #header .bt-header-nav .header-menu,
  body #header .bt-header-nav .nav-full-width {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  body #header .bt-header-nav .top-menu,
  body #header .bt-header-nav .menu > ul,
  body #header .bt-header-nav .menu-content > ul,
  body #header .bt-header-nav #_desktop_top_menu > ul,
  body #header .bt-header-nav .top-menu[data-depth="0"] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 0 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  body #header .bt-header-nav .top-menu > li,
  body #header .bt-header-nav .menu > ul > li,
  body #header .bt-header-nav .menu-content > ul > li,
  body #header .bt-header-nav #_desktop_top_menu > ul > li {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body #header .bt-header-nav .top-menu a,
  body #header .bt-header-nav .menu a,
  body #header .bt-header-nav .menu-content a,
  body #header .bt-header-nav #_desktop_top_menu a {
    min-height: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    padding: 0 8px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  /* Actions à droite : elles gardent leur largeur et ne sont plus rognées. */
  body #header .bt-header-actions {
    grid-area: actions !important;
    grid-column: auto !important;
    position: relative !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    width: auto !important;
    min-width: 330px !important;
    max-width: 430px !important;
    overflow: visible !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body #header .bt-header-actions #_desktop_user_info,
  body #header .bt-header-actions .user-info {
    max-width: 250px !important;
    overflow: visible !important;
    flex: 1 1 auto !important;
  }

  body #header .bt-header-actions .user-info a,
  body #header .bt-header-actions #_desktop_user_info a,
  body #header .bt-header-actions .account {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }

  body #header .bt-header-actions #_desktop_cart,
  body #header .bt-header-actions .blockcart,
  body #header .bt-header-actions .cart-preview {
    flex: 0 0 auto !important;
    min-width: 118px !important;
    white-space: nowrap !important;
  }
}

/* Écrans desktop intermédiaires : on compresse un peu le logo et les liens,
   mais on garde la logique : logo à gauche, menu ensuite. */
@media (min-width: 992px) and (max-width: 1240px) {
  body #header .bt-header-main > .container {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  body #header .bt-header-layout {
    grid-template-columns: 175px minmax(0, 1fr) minmax(300px, max-content) !important;
    column-gap: 12px !important;
  }

  body #header .bt-logo-img,
  body #header .logo,
  body #header img.logo,
  body #header a.logo img {
    max-width: 165px !important;
    max-height: 48px !important;
  }

  body #header .bt-header-nav .top-menu,
  body #header .bt-header-nav .menu > ul,
  body #header .bt-header-nav .menu-content > ul,
  body #header .bt-header-nav #_desktop_top_menu > ul,
  body #header .bt-header-nav .top-menu[data-depth="0"] {
    gap: 0 7px !important;
  }

  body #header .bt-header-nav .top-menu a,
  body #header .bt-header-nav .menu a,
  body #header .bt-header-nav .menu-content a,
  body #header .bt-header-nav #_desktop_top_menu a {
    font-size: 12px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  body #header .bt-header-actions {
    min-width: 300px !important;
    max-width: 390px !important;
    gap: 8px !important;
  }
}


/* ==========================================================
   v57 - Mobile : suppression de la barre de recherche
   La recherche reste inchangée sur ordinateur.
   ========================================================== */

@media (max-width: 991px) {
  body #header #search_widget,
  body #header .search-widget,
  body #header #_mobile_search_widget,
  body #header .mobile-search,
  body #header .bt-mobile-search,
  body #header form[role="search"],
  body #header form[action*="search"],
  body #header input[name="s"],
  body #header input[type="search"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* Sécurité : si le module recherche laisse un conteneur vide,
     on supprime l'espace vertical restant. */
  body #header .header-top .search-widget,
  body #header .header-nav .search-widget,
  body #header .bt-header-mobilebar .search-widget,
  body #header .mobile #search_widget,
  body #header #mobile_top_menu_wrapper #search_widget,
  body #header #mobile_top_menu_wrapper .search-widget {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}


/* ==========================================================
   v58 - Essai header : menu plus lisible et plus premium
   Base de référence conservée : v57.
   Objectif :
   - boutons élégants autour des catégories ;
   - texte plus lisible ;
   - harmonie avec la DA Biscuithé ;
   - conservation du menu sur une ligne quand l'espace le permet.
   ========================================================== */

@media (min-width: 992px) {
  /* Légère respiration dans la barre */
  body #header .bt-header-main {
    padding-top: 11px !important;
    padding-bottom: 11px !important;
    min-height: 80px !important;
  }

  /* Le menu reste compact mais plus lisible */
  body #header .bt-header-nav .top-menu,
  body #header .bt-header-nav .menu > ul,
  body #header .bt-header-nav .menu-content > ul,
  body #header .bt-header-nav #_desktop_top_menu > ul,
  body #header .bt-header-nav .top-menu[data-depth="0"] {
    gap: 0 8px !important;
  }

  /* Boutons de navigation */
  body #header .bt-header-nav .top-menu a,
  body #header .bt-header-nav .menu a,
  body #header .bt-header-nav .menu-content a,
  body #header .bt-header-nav #_desktop_top_menu a {
    min-height: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    padding: 0 13px !important;
    border: 1px solid rgba(196, 147, 72, .38) !important;
    border-radius: 999px !important;
    background: rgba(255, 253, 247, .72) !important;
    color: #4b372b !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    letter-spacing: .01em !important;
    box-shadow: 0 6px 15px rgba(35, 27, 22, .045) !important;
    transition:
      color .18s ease,
      background .18s ease,
      border-color .18s ease,
      box-shadow .18s ease,
      transform .18s ease !important;
  }

  body #header .bt-header-nav .top-menu a:hover,
  body #header .bt-header-nav .menu a:hover,
  body #header .bt-header-nav .menu-content a:hover,
  body #header .bt-header-nav #_desktop_top_menu a:hover {
    background: rgba(0, 122, 120, .10) !important;
    color: var(--bt-teal) !important;
    border-color: rgba(0, 122, 120, .36) !important;
    box-shadow: 0 10px 24px rgba(0, 122, 120, .09) !important;
    transform: translateY(-1px) !important;
  }

  /* Page active / item courant, si PrestaShop ajoute ces classes */
  body #header .bt-header-nav .current > a,
  body #header .bt-header-nav .current-menu-item > a,
  body #header .bt-header-nav .active > a,
  body #header .bt-header-nav li.sfHover > a {
    background: var(--bt-teal) !important;
    color: #fff !important;
    border-color: var(--bt-teal) !important;
    box-shadow: 0 10px 24px rgba(0, 122, 120, .16) !important;
  }

  /* Sous-menus : cohérents avec les nouveaux boutons */
  body #header .bt-header-nav .sub-menu,
  body #header .bt-header-nav .top-menu .sub-menu,
  body #header .bt-header-nav .popover {
    border: 1px solid rgba(229, 214, 186, .92) !important;
    border-radius: 20px !important;
    background: #fffdf7 !important;
    box-shadow: 0 18px 38px rgba(35, 27, 22, .12) !important;
    overflow: hidden !important;
  }

  body #header .bt-header-nav .sub-menu a,
  body #header .bt-header-nav .popover a {
    height: auto !important;
    min-height: 36px !important;
    line-height: 1.25 !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #4b372b !important;
    font-size: 13px !important;
    padding: 10px 12px !important;
  }
}

/* Très grands écrans : on peut légèrement agrandir les boutons */
@media (min-width: 1400px) {
  body #header .bt-header-nav .top-menu a,
  body #header .bt-header-nav .menu a,
  body #header .bt-header-nav .menu-content a,
  body #header .bt-header-nav #_desktop_top_menu a {
    font-size: 14.5px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Écrans desktop intermédiaires : on garde la lisibilité sans provoquer de débordement */
@media (min-width: 992px) and (max-width: 1240px) {
  body #header .bt-header-nav .top-menu,
  body #header .bt-header-nav .menu > ul,
  body #header .bt-header-nav .menu-content > ul,
  body #header .bt-header-nav #_desktop_top_menu > ul,
  body #header .bt-header-nav .top-menu[data-depth="0"] {
    gap: 0 5px !important;
  }

  body #header .bt-header-nav .top-menu a,
  body #header .bt-header-nav .menu a,
  body #header .bt-header-nav .menu-content a,
  body #header .bt-header-nav #_desktop_top_menu a {
    height: 36px !important;
    min-height: 36px !important;
    line-height: 36px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 12.5px !important;
  }
}

/* Mobile : on ne modifie pas le fonctionnement v57 */


/* ==========================================================
   v65 - Mobile : overlay CSS-only avec vrai menu PrestaShop
   Correction de la v64 :
   - le panneau n'affiche plus seulement "Menu" ;
   - le vrai conteneur #_mobile_top_menu est placé dans l'overlay ;
   - le hamburger ouvre/ferme sans JavaScript custom ;
   - la page reste visible derrière.
   ========================================================== */

@media (max-width: 991px) {
  /* Le menu desktop du header ne prend aucune place sur mobile */
  body #header .bt-header-main .bt-header-nav {
    display: none !important;
  }

  /* Checkbox invisible qui pilote l'ouverture */
  body #header .bt-mobile-menu-state {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
  }

  /* Bouton hamburger */
  body #header .bt-mobile-menu,
  body #header #bt-mobile-menu-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    border: 1px solid rgba(196, 147, 72, .45) !important;
    border-radius: 999px !important;
    background: rgba(255, 253, 247, .94) !important;
    color: var(--bt-ink) !important;
    box-shadow: 0 8px 18px rgba(35, 27, 22, .08) !important;
    overflow: hidden !important;
  }

  body #header #bt-mobile-menu-toggle i,
  body #header #bt-mobile-menu-toggle .material-icons {
    font-size: 23px !important;
    line-height: 1 !important;
    color: var(--bt-ink) !important;
  }

  body #header #bt-mobile-menu-state:checked ~ .bt-mobile-row #bt-mobile-menu-toggle,
  body #header #bt-mobile-menu-toggle:hover,
  body #header #bt-mobile-menu-toggle:focus {
    background: rgba(0, 122, 120, .12) !important;
    border-color: rgba(0, 122, 120, .38) !important;
    outline: none !important;
  }

  body #header #bt-mobile-menu-state:checked ~ .bt-mobile-row #bt-mobile-menu-toggle i,
  body #header #bt-mobile-menu-toggle:hover i,
  body #header #bt-mobile-menu-toggle:focus i {
    color: var(--bt-teal) !important;
  }

  /* Ligne mobile */
  body #header .bt-mobile-row {
    min-height: 44px !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 2px !important;
  }

  body #header .bt-mobile-logo {
    justify-content: center !important;
    margin: 0 !important;
    min-width: 0 !important;
  }

  body #header .bt-mobile-logo img {
    max-width: min(152px, 42vw) !important;
    max-height: 36px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }

  body #header .bt-mobile-actions {
    justify-content: flex-end !important;
    max-width: 42vw !important;
    gap: 5px !important;
  }

  /* Backdrop */
  body #header .bt-mobile-menu-backdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 10040 !important;
    background: rgba(35, 27, 22, .10) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity .16s ease !important;
  }

  body #header #bt-mobile-menu-state:checked ~ .bt-mobile-menu-backdrop {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Panneau flottant */
  body #header .bt-mobile-menu-panel {
    display: block !important;
    position: fixed !important;
    top: 58px !important;
    left: 12px !important;
    right: 12px !important;
    z-index: 10050 !important;
    width: auto !important;
    max-height: calc(100vh - 78px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 14px !important;
    border: 1px solid rgba(229, 214, 186, .90) !important;
    border-radius: 24px !important;
    background:
      radial-gradient(circle at 0% 0%, rgba(196, 147, 72, .12), transparent 34%),
      rgba(255, 253, 247, .985) !important;
    box-shadow: 0 22px 50px rgba(35, 27, 22, .22) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-8px) scale(.98) !important;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease !important;
  }

  body #header #bt-mobile-menu-state:checked ~ .bt-mobile-menu-panel {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
  }

  body #header .bt-mobile-menu-panel__header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 0 12px !important;
    padding: 0 2px 10px !important;
    border-bottom: 1px solid rgba(229, 214, 186, .70) !important;
    color: var(--bt-ink) !important;
    font-weight: 900 !important;
    font-size: 15px !important;
  }

  body #header .bt-mobile-menu-panel__close {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    cursor: pointer !important;
    border: 1px solid rgba(196, 147, 72, .38) !important;
    border-radius: 999px !important;
    background: rgba(255, 253, 247, .9) !important;
    color: var(--bt-ink) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  body #header .bt-mobile-menu-panel__close i,
  body #header .bt-mobile-menu-panel__close .material-icons {
    font-size: 21px !important;
    line-height: 1 !important;
  }

  /* Le vrai wrapper mobile est dans le panneau : on l'affiche ici */
  body #header .bt-mobile-menu-panel #mobile_top_menu_wrapper,
  body #header .bt-mobile-menu-panel .bt-mobile-menu-panel__content,
  body #header .bt-mobile-menu-panel .js-top-menu,
  body #header .bt-mobile-menu-panel #_mobile_top_menu {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  /* Masque les éléments parasites s'ils sont déplacés dans le panneau */
  body #header .bt-mobile-menu-panel #search_widget,
  body #header .bt-mobile-menu-panel .search-widget {
    display: none !important;
  }

  /* Menu mobile rempli par PrestaShop */
  body #header .bt-mobile-menu-panel .top-menu,
  body #header .bt-mobile-menu-panel .menu > ul,
  body #header .bt-mobile-menu-panel .menu-content > ul,
  body #header .bt-mobile-menu-panel #_mobile_top_menu > ul,
  body #header .bt-mobile-menu-panel .top-menu[data-depth="0"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: transparent !important;
  }

  body #header .bt-mobile-menu-panel .top-menu > li,
  body #header .bt-mobile-menu-panel .menu > ul > li,
  body #header .bt-mobile-menu-panel .menu-content > ul > li,
  body #header .bt-mobile-menu-panel #_mobile_top_menu > ul > li {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    background: transparent !important;
  }

  body #header .bt-mobile-menu-panel .top-menu a,
  body #header .bt-mobile-menu-panel .menu a,
  body #header .bt-mobile-menu-panel .menu-content a,
  body #header .bt-mobile-menu-panel #_mobile_top_menu a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 42px !important;
    height: auto !important;
    padding: 10px 10px !important;
    margin: 0 !important;
    border: 1px solid rgba(196, 147, 72, .38) !important;
    border-radius: 16px !important;
    background: rgba(255, 253, 247, .92) !important;
    color: #4b372b !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    letter-spacing: .005em !important;
    text-transform: none !important;
    text-align: center !important;
    white-space: normal !important;
    box-shadow: 0 6px 14px rgba(35, 27, 22, .05) !important;
    text-decoration: none !important;
  }

  body #header .bt-mobile-menu-panel .top-menu a:hover,
  body #header .bt-mobile-menu-panel .menu a:hover,
  body #header .bt-mobile-menu-panel .menu-content a:hover,
  body #header .bt-mobile-menu-panel #_mobile_top_menu a:hover {
    background: rgba(0, 122, 120, .10) !important;
    color: var(--bt-teal) !important;
    border-color: rgba(0, 122, 120, .34) !important;
  }

  body #header .bt-mobile-menu-panel .sub-menu {
    display: none !important;
  }
}

@media (max-width: 360px) {
  body #header .bt-mobile-menu-panel .top-menu,
  body #header .bt-mobile-menu-panel .menu > ul,
  body #header .bt-mobile-menu-panel .menu-content > ul,
  body #header .bt-mobile-menu-panel #_mobile_top_menu > ul,
  body #header .bt-mobile-menu-panel .top-menu[data-depth="0"] {
    grid-template-columns: 1fr !important;
  }
}


/* ==========================================================
   v68 - Mobile : retour logique proche v64 + logo côté hamburger
   Base : v65, car le menu overlay avec catégories fonctionne.
   Objectif :
   - conserver toutes les infos à droite visibles ;
   - placer le logo côté menu hamburger, pas côté Déconnexion ;
   - agrandir légèrement la hauteur du header mobile ;
   - rendre le logo un peu plus lisible ;
   - conserver le menu overlay validé.
   ========================================================== */

@media (max-width: 991px) {
  body #header .bt-header-mobilebar {
    min-height: 54px !important;
  }

  body #header .bt-header-mobilebar .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body #header .bt-mobile-row {
    position: relative !important;
    min-height: 52px !important;
    display: grid !important;
    grid-template-columns: 42px auto minmax(8px, 1fr) auto !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 0 !important;
  }

  /* Hamburger à gauche */
  body #header #bt-mobile-menu-toggle,
  body #header .bt-mobile-menu {
    grid-column: 1 !important;
    justify-self: start !important;
    position: relative !important;
    z-index: 4 !important;
  }

  /* Logo côté hamburger, avec un peu plus de hauteur */
  body #header .bt-mobile-logo {
    grid-column: 2 !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    z-index: 3 !important;
    width: auto !important;
    max-width: 128px !important;
    height: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    justify-self: start !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: auto !important;
  }

  body #header .bt-mobile-logo img {
    display: block !important;
    width: auto !important;
    max-width: 128px !important;
    height: auto !important;
    max-height: 38px !important;
    object-fit: contain !important;
    object-position: left center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Zone droite : on ne masque plus Déconnexion / compte.
     Elle reste visible et alignée à droite. */
  body #header .bt-mobile-actions {
    grid-column: 4 !important;
    position: relative !important;
    z-index: 4 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    justify-self: end !important;
    gap: 5px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 52vw !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }

  body #header #_mobile_user_info,
  body #header #_mobile_user_info .user-info,
  body #header #_mobile_user_info .user-info a,
  body #header #_mobile_user_info a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 145px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: var(--bt-ink) !important;
  }

  body #header #_mobile_user_info .material-icons,
  body #header #_mobile_user_info i {
    display: inline-flex !important;
    font-size: 17px !important;
    line-height: 1 !important;
    margin: 0 2px 0 0 !important;
    color: var(--bt-ink) !important;
  }

  /* Panier compact, sans rognage */
  body #header #_mobile_cart,
  body #header #_mobile_cart .blockcart,
  body #header #_mobile_cart .cart-preview {
    width: auto !important;
    min-width: 50px !important;
    max-width: 86px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    white-space: nowrap !important;
  }

  body #header #_mobile_cart .blockcart,
  body #header #_mobile_cart .cart-preview,
  body #header #_mobile_cart .cart-preview .header,
  body #header #_mobile_cart .blockcart .header,
  body #header #_mobile_cart .blockcart a,
  body #header #_mobile_cart .cart-preview a {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    box-sizing: border-box !important;
  }

  body #header #_mobile_cart .material-icons,
  body #header #_mobile_cart .shopping-cart,
  body #header #_mobile_cart i {
    font-size: 19px !important;
    line-height: 1 !important;
    margin: 0 !important;
  }

  body #header #_mobile_cart .cart-products-count {
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    min-width: 12px !important;
    margin: 0 !important;
  }

  /* Le panneau overlay descend un peu pour suivre la hauteur de header augmentée */
  body #header .bt-mobile-menu-panel {
    top: 66px !important;
    max-height: calc(100vh - 86px) !important;
  }
}

/* Écrans très étroits : priorité aux éléments à droite et au logo lisible */
@media (max-width: 380px) {
  body #header .bt-header-mobilebar .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body #header .bt-mobile-row {
    grid-template-columns: 40px auto minmax(4px, 1fr) auto !important;
    gap: 4px !important;
  }

  body #header .bt-mobile-logo {
    max-width: 104px !important;
    height: 40px !important;
    min-height: 40px !important;
  }

  body #header .bt-mobile-logo img {
    max-width: 104px !important;
    max-height: 34px !important;
  }

  body #header .bt-mobile-actions {
    max-width: 54vw !important;
    gap: 3px !important;
  }

  body #header #_mobile_user_info,
  body #header #_mobile_user_info .user-info,
  body #header #_mobile_user_info .user-info a,
  body #header #_mobile_user_info a {
    max-width: 112px !important;
    font-size: 11px !important;
  }

  body #header #_mobile_cart,
  body #header #_mobile_cart .blockcart,
  body #header #_mobile_cart .cart-preview {
    min-width: 46px !important;
    max-width: 78px !important;
  }

  body #header #_mobile_cart .blockcart,
  body #header #_mobile_cart .cart-preview,
  body #header #_mobile_cart .cart-preview .header,
  body #header #_mobile_cart .blockcart .header,
  body #header #_mobile_cart .blockcart a,
  body #header #_mobile_cart .cart-preview a {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}


/* ==========================================================
   v71 - Overlay mobile : ajout du second espace demandé
   Annulation de la v70.
   Base reprise depuis la v68.

   Schéma visé :
   Ligne / séparation
   ESPACE
   Boutons catégories
   ========================================================== */

@media (max-width: 991px) {
  /* On ne touche pas au bloc titre "Menu" ni à sa ligne.
     On ajoute uniquement un saut visuel avant la première rangée de boutons. */
  body #header .bt-mobile-menu-panel .top-menu,
  body #header .bt-mobile-menu-panel .menu > ul,
  body #header .bt-mobile-menu-panel .menu-content > ul,
  body #header .bt-mobile-menu-panel #_mobile_top_menu > ul,
  body #header .bt-mobile-menu-panel .top-menu[data-depth="0"] {
    padding-top: 14px !important;
  }
}


/* ==========================================================
   v72 - Boutons de variantes produit
   Objectif :
   - boutons cohérents avec la DA du site ;
   - clairement différents du bouton "Ajouter au panier" ;
   - rendu premium, léger, lisible ;
   - fonctionnement responsive.
   ========================================================== */

/* Zone globale variantes */
.product-variants,
.product-variants-item {
  margin-bottom: 1rem !important;
}

.product-variants-item > span,
.product-variants > .clearfix > span,
.product-variants .product-variants-item label,
.product-variants .control-label {
  color: var(--bt-ink) !important;
  font-weight: 700 !important;
}

/* Liste des variantes type radio */
.product-variants-item ul,
.product-variants > ul,
.product-variants .variant-links,
.product-variants .input-container-group {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Container */
.product-variants-item li.input-container,
.product-variants .variant-links li,
.product-variants-item ul li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Cache propre des radios natifs */
.product-variants-item input[type="radio"],
.product-variants-item .input-radio {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Bouton visuel = différent du CTA panier */
.product-variants-item .radio-label,
.product-variants .variant-links a,
.product-variants-item select,
.product-variants-item .form-control-select {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 10px 18px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(196, 147, 72, .48) !important;
  background: #fffdfa !important;
  color: var(--bt-ink) !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: 0 6px 14px rgba(35, 27, 22, .05) !important;
  transition: all .18s ease !important;
  cursor: pointer !important;
}

/* Hover élégant */
.product-variants-item label:hover .radio-label,
.product-variants-item .radio-label:hover,
.product-variants .variant-links a:hover {
  background: rgba(0, 122, 120, .06) !important;
  border-color: rgba(0, 122, 120, .34) !important;
  color: var(--bt-teal) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 18px rgba(35, 27, 22, .08) !important;
}

/* État sélectionné :
   contour teal + fond très léger, mais PAS plein comme Ajouter au panier */
.product-variants-item input[type="radio"]:checked + .radio-label,
.product-variants-item .input-radio:checked + .radio-label,
.product-variants .variant-links .current a,
.product-variants .variant-links a.selected,
.product-variants-item .radio-label.is-selected {
  background: linear-gradient(180deg, rgba(0, 122, 120, .10), rgba(0, 122, 120, .05)) !important;
  border-color: var(--bt-teal) !important;
  color: var(--bt-teal) !important;
  box-shadow:
    0 0 0 2px rgba(0, 122, 120, .14),
    0 8px 18px rgba(35, 27, 22, .07) !important;
}

/* Focus accessibilité */
.product-variants-item input[type="radio"]:focus + .radio-label,
.product-variants-item .input-radio:focus + .radio-label,
.product-variants .variant-links a:focus {
  outline: none !important;
  box-shadow:
    0 0 0 3px rgba(0, 122, 120, .18),
    0 8px 18px rgba(35, 27, 22, .08) !important;
}

/* Empêche l'effet "bouton par défaut" noir/épais */
.product-variants-item label,
.product-variants-item .radio-label {
  box-sizing: border-box !important;
}

/* Select éventuel (si un groupe de déclinaison est en liste déroulante) */
.product-variants-item select,
.product-variants-item .form-control-select {
  min-width: 220px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  padding-right: 42px !important;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--bt-ink) 50%),
    linear-gradient(135deg, var(--bt-ink) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px !important;
  background-repeat: no-repeat !important;
}

/* Mobile */
@media (max-width: 767px) {
  .product-variants-item ul,
  .product-variants > ul,
  .product-variants .variant-links,
  .product-variants .input-container-group {
    gap: 8px !important;
  }

  .product-variants-item .radio-label,
  .product-variants .variant-links a,
  .product-variants-item select,
  .product-variants-item .form-control-select {
    min-height: 42px !important;
    padding: 9px 14px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
  }
}


/* ==========================================================
   v74 - Variantes produit : léger espace entre les boutons
   Base : v72
   IMPORTANT :
   - annule la v73
   - n'impacte que les boutons de variantes produit
   - aucun impact sur panier / autres boutons
   ========================================================== */

/* Ciblage strict fiche produit */
body#product .product-variants-item ul,
body#product .product-variants .variant-links,
body#product .product-variants .input-container-group {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  row-gap: 10px !important;
  column-gap: 10px !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
}

/* Pas de marge parasite sur les items */
body#product .product-variants-item ul > li,
body#product .product-variants-item li.input-container,
body#product .product-variants .variant-links li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  flex: 0 0 auto !important;
}

/* Le label/bouton garde son style mais ne colle plus aux autres */
body#product .product-variants-item label,
body#product .product-variants-item .radio-label,
body#product .product-variants .variant-links a {
  margin: 0 !important;
}

/* Mobile : 2 colonnes propres avec espacement réel */
@media (max-width: 767px) {
  body#product .product-variants-item ul,
  body#product .product-variants .variant-links,
  body#product .product-variants .input-container-group {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    row-gap: 10px !important;
    column-gap: 10px !important;
  }

  body#product .product-variants-item ul > li,
  body#product .product-variants-item li.input-container,
  body#product .product-variants .variant-links li {
    width: auto !important;
    min-width: 0 !important;
  }

  body#product .product-variants-item .radio-label,
  body#product .product-variants .variant-links a {
    width: 100% !important;
  }
}


/* ==========================================================
   v77 - Fiche produit : suppression réelle des coupures de mots
   Base reprise depuis la v74.
   La justification n'est pas utilisée : elle peut rendre le texte moins lisible.
   On force plutôt l'interdiction des césures dans les zones de description.
   ========================================================== */

body#product .product-information,
body#product .product-information *,
body#product .product-short-description,
body#product .product-short-description *,
body#product .product-description-short,
body#product .product-description-short *,
body#product #product-description-short,
body#product #product-description-short *,
body#product .product-description,
body#product .product-description *,
body#product #description,
body#product #description *,
body#product .tabs .tab-content,
body#product .tabs .tab-content *,
body#product .rte,
body#product .rte *,
.product-information .product-short-description,
.product-information .product-short-description *,
.product-information .product-description-short,
.product-information .product-description-short *,
.product-information .product-description,
.product-information .product-description *,
#product-description-short,
#product-description-short *,
#description,
#description * {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  -moz-hyphens: none !important;
  -ms-hyphens: none !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  word-wrap: normal !important;
  line-break: auto !important;
}

/* Garde le style de lecture actuel sans couper les mots */
body#product .product-short-description,
body#product .product-description-short,
body#product #product-description-short,
body#product .product-description,
body#product #description,
.product-information .product-short-description,
.product-information .product-description-short,
.product-information .product-description,
#product-description-short,
#description {
  text-align: center !important;
  text-wrap: pretty;
}


/* ==========================================================
   v79 - Panier : annulation v78 + recentrage vertical simple
   Objectif :
   - annule la tentative v78 qui modifiait trop la grille produit ;
   - conserve la mise en page panier d'origine validée ;
   - descend légèrement l'encadré intérieur du panier pour qu'il ne soit
     plus collé en haut du cadre global.
   ========================================================== */

body#cart .cart-grid-body {
  padding-top: 14px !important;
}

/* L'encadré intérieur du panier est légèrement descendu,
   sans modifier les colonnes image / texte / quantité / prix. */
body#cart .cart-overview,
body#cart .cart-items,
body#cart .cart-container {
  margin-top: 14px !important;
}

/* Le titre "PANIER" reste proprement aligné avec l'encadré intérieur. */
body#cart .cart-grid-body .card,
body#cart .cart-grid-body .card-block,
body#cart .cart-grid-body .cart-overview {
  box-sizing: border-box !important;
}

/* On évite que le haut du bloc interne touche le haut de la grande carte. */
body#cart .cart-grid-body > .card,
body#cart .cart-grid-body > section,
body#cart .cart-grid-body > .cart-container {
  padding-top: 10px !important;
}

/* Mobile : espace réduit pour ne pas gaspiller de hauteur */
@media (max-width: 767px) {
  body#cart .cart-grid-body {
    padding-top: 8px !important;
  }

  body#cart .cart-overview,
  body#cart .cart-items,
  body#cart .cart-container {
    margin-top: 8px !important;
  }

  body#cart .cart-grid-body > .card,
  body#cart .cart-grid-body > section,
  body#cart .cart-grid-body > .cart-container {
    padding-top: 6px !important;
  }
}


/* ==========================================================
   v80 - Panier : recentrage vertical de la zone résumé à droite
   Base : v79 validée.
   Objectif :
   - appliquer la même logique que la zone panier gauche ;
   - descendre légèrement l'encadré résumé à droite ;
   - ne pas modifier les colonnes produits ni le contenu du résumé.
   ========================================================== */

body#cart .cart-grid-right {
  padding-top: 14px !important;
}

/* Encadré résumé à droite : on le descend sans toucher à sa structure interne */
body#cart .cart-grid-right .cart-summary,
body#cart .cart-grid-right .card,
body#cart .cart-grid-right #cart-subtotal-products,
body#cart .cart-grid-right .cart-detailed-totals {
  box-sizing: border-box !important;
}

/* Si le résumé est le premier bloc dans la colonne droite, on crée le même retrait visuel
   que sur la colonne panier gauche. */
body#cart .cart-grid-right > .card:first-child,
body#cart .cart-grid-right > .cart-summary:first-child,
body#cart .cart-grid-right > section:first-child {
  margin-top: 14px !important;
}

/* On évite que les blocs de réassurance soient eux aussi trop collés au résumé */
body#cart .cart-grid-right .blockreassurance,
body#cart .cart-grid-right #block-reassurance,
body#cart .cart-grid-right .reassurance {
  margin-top: 24px !important;
}

/* Mobile : espace plus léger */
@media (max-width: 767px) {
  body#cart .cart-grid-right {
    padding-top: 8px !important;
  }

  body#cart .cart-grid-right > .card:first-child,
  body#cart .cart-grid-right > .cart-summary:first-child,
  body#cart .cart-grid-right > section:first-child {
    margin-top: 8px !important;
  }

  body#cart .cart-grid-right .blockreassurance,
  body#cart .cart-grid-right #block-reassurance,
  body#cart .cart-grid-right .reassurance {
    margin-top: 18px !important;
  }
}


/* ==========================================================
   v82 - Panier mobile : correction des lignes du résumé
   Base : v80 validée.
   Annule la piste v81 qui ciblait les textes de réassurance.

   Correction mobile uniquement :
   - "5 articles" + montant ;
   - "Livraison" + montant ;
   - "Total TTC" + montant ;
   - évite que les tarifs débordent de l'encadré.
   ========================================================== */

@media (max-width: 767px) {
  body#cart .cart-grid-right {
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Encadré résumé : légèrement resserré pour tenir dans la largeur mobile */
  body#cart .cart-grid-right .cart-summary,
  body#cart .cart-grid-right .card,
  body#cart .cart-grid-right .cart-detailed-totals,
  body#cart .cart-grid-right .cart-summary-totals,
  body#cart .cart-grid-right .cart-summary-subtotals-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  body#cart .cart-grid-right .cart-summary .card-block,
  body#cart .cart-grid-right .cart-detailed-totals,
  body#cart .cart-grid-right .cart-summary-totals,
  body#cart .cart-grid-right .cart-summary-subtotals-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Chaque ligne résumé devient une vraie ligne : libellé à gauche, prix à droite */
  body#cart .cart-grid-right .cart-summary-line,
  body#cart .cart-grid-right .cart-summary-line.cart-total,
  body#cart .cart-grid-right #cart-subtotal-products,
  body#cart .cart-grid-right #cart-subtotal-shipping {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    column-gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body#cart .cart-grid-right .cart-summary-line .label,
  body#cart .cart-grid-right .cart-summary-line .value,
  body#cart .cart-grid-right #cart-subtotal-products .label,
  body#cart .cart-grid-right #cart-subtotal-products .value,
  body#cart .cart-grid-right #cart-subtotal-shipping .label,
  body#cart .cart-grid-right #cart-subtotal-shipping .value {
    float: none !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    white-space: normal !important;
  }

  body#cart .cart-grid-right .cart-summary-line .label,
  body#cart .cart-grid-right #cart-subtotal-products .label,
  body#cart .cart-grid-right #cart-subtotal-shipping .label {
    justify-self: start !important;
    text-align: left !important;
    overflow-wrap: anywhere !important;
  }

  body#cart .cart-grid-right .cart-summary-line .value,
  body#cart .cart-grid-right #cart-subtotal-products .value,
  body#cart .cart-grid-right #cart-subtotal-shipping .value {
    justify-self: end !important;
    text-align: right !important;
    white-space: nowrap !important;
    font-weight: 800 !important;
  }

  /* Bouton commander contenu dans l'encadré */
  body#cart .cart-grid-right .checkout a,
  body#cart .cart-grid-right .checkout button,
  body#cart .cart-grid-right .btn-primary,
  body#cart .cart-grid-right .cart-detailed-actions a {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Très petits écrans : un peu moins de padding pour garder les prix visibles */
@media (max-width: 380px) {
  body#cart .cart-grid-right .cart-summary .card-block,
  body#cart .cart-grid-right .cart-detailed-totals,
  body#cart .cart-grid-right .cart-summary-totals,
  body#cart .cart-grid-right .cart-summary-subtotals-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  body#cart .cart-grid-right .cart-summary-line,
  body#cart .cart-grid-right #cart-subtotal-products,
  body#cart .cart-grid-right #cart-subtotal-shipping {
    column-gap: 6px !important;
  }
}


/* ==========================================================
   v83 - Checkout mobile : restauration du header hamburger
   Base : v82 validée.

   Problème corrigé :
   - après le panier, en cliquant sur "Commander", la page checkout mobile
     réaffichait l'ancien menu texte ;
   - le menu flottant avec hamburger disparaissait.

   Correction mobile uniquement :
   - force l'affichage de la barre mobile validée ;
   - masque l'ancien menu texte dans la zone header-main ;
   - conserve le panneau hamburger / overlay.
   ========================================================== */

@media (max-width: 991px) {
  body#checkout #header .bt-header-mobilebar,
  body#order #header .bt-header-mobilebar,
  body#order-opc #header .bt-header-mobilebar,
  body#authentication #header .bt-header-mobilebar,
  body#checkout #header nav.bt-header-mobilebar,
  body#order #header nav.bt-header-mobilebar,
  body#order-opc #header nav.bt-header-mobilebar,
  body#authentication #header nav.bt-header-mobilebar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 54px !important;
    max-height: none !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 1000 !important;
    background: var(--bt-cream) !important;
  }

  body#checkout #header .bt-header-mobilebar .container,
  body#order #header .bt-header-mobilebar .container,
  body#order-opc #header .bt-header-mobilebar .container,
  body#authentication #header .bt-header-mobilebar .container {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    min-height: 54px !important;
    overflow: visible !important;
  }

  body#checkout #header .bt-mobile-row,
  body#order #header .bt-mobile-row,
  body#order-opc #header .bt-mobile-row,
  body#authentication #header .bt-mobile-row {
    display: grid !important;
    visibility: visible !important;
  }

  body#checkout #header #bt-mobile-menu-toggle,
  body#checkout #header .bt-mobile-menu,
  body#order #header #bt-mobile-menu-toggle,
  body#order #header .bt-mobile-menu,
  body#order-opc #header #bt-mobile-menu-toggle,
  body#order-opc #header .bt-mobile-menu,
  body#authentication #header #bt-mobile-menu-toggle,
  body#authentication #header .bt-mobile-menu {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* On masque uniquement l'ancien menu texte du header principal sur le checkout mobile.
     La source du menu reste dans le DOM pour que PrestaShop puisse remplir le menu mobile. */
  body#checkout #header .bt-header-main,
  body#order #header .bt-header-main,
  body#order-opc #header .bt-header-main,
  body#authentication #header .bt-header-main {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  /* Sécurité : si un module force l'affichage du vieux menu texte ailleurs dans le header checkout */
  body#checkout #header .bt-header-nav,
  body#checkout #header #_desktop_top_menu,
  body#checkout #header .top-menu:not(.bt-mobile-menu-panel .top-menu),
  body#order #header .bt-header-nav,
  body#order #header #_desktop_top_menu,
  body#order #header .top-menu:not(.bt-mobile-menu-panel .top-menu),
  body#order-opc #header .bt-header-nav,
  body#order-opc #header #_desktop_top_menu,
  body#order-opc #header .top-menu:not(.bt-mobile-menu-panel .top-menu),
  body#authentication #header .bt-header-nav,
  body#authentication #header #_desktop_top_menu,
  body#authentication #header .top-menu:not(.bt-mobile-menu-panel .top-menu) {
    display: none !important;
  }

  /* Le panneau overlay doit rester disponible au-dessus de la page checkout */
  body#checkout #header .bt-mobile-menu-panel,
  body#order #header .bt-mobile-menu-panel,
  body#order-opc #header .bt-mobile-menu-panel,
  body#authentication #header .bt-mobile-menu-panel {
    z-index: 10050 !important;
  }

  body#checkout #header .bt-mobile-menu-backdrop,
  body#order #header .bt-mobile-menu-backdrop,
  body#order-opc #header .bt-mobile-menu-backdrop,
  body#authentication #header .bt-mobile-menu-backdrop {
    z-index: 10040 !important;
  }
}


/* ==========================================================
   v84 - Checkout mobile : vrai override du header checkout
   Base : v83.

   Le checkout PrestaShop peut utiliser templates/checkout/_partials/header.tpl.
   La v84 ajoute cet override côté template.
   Cette CSS sécurise le rendu mobile.
   ========================================================== */

@media (max-width: 991px) {
  body#checkout #header .bt-header-mobilebar,
  body#order #header .bt-header-mobilebar,
  body#order-opc #header .bt-header-mobilebar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body#checkout #header .bt-mobile-row,
  body#order #header .bt-mobile-row,
  body#order-opc #header .bt-mobile-row {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body#checkout #header #bt-mobile-menu-toggle,
  body#order #header #bt-mobile-menu-toggle,
  body#order-opc #header #bt-mobile-menu-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Le vieux contact/menu texte du header checkout parent ne doit plus apparaître */
  body#checkout #header .header-nav:not(.bt-header-mobilebar),
  body#order #header .header-nav:not(.bt-header-mobilebar),
  body#order-opc #header .header-nav:not(.bt-header-mobilebar) {
    display: none !important;
  }

  body#checkout #header .bt-header-main,
  body#order #header .bt-header-main,
  body#order-opc #header .bt-header-main {
    display: none !important;
  }
}
