/* Correction des accents bleus : promotions et composants info. */
@font-face {
  font-family: "Morthena";
  src: url("../fonts/Morthena-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* ==========================================================
   P'TI TRESOR — ACCUEIL HUMMINGBIRD / PRESTASHOP 9
   Pleine largeur — aucun changement de head.tpl requis
   ========================================================== */

:root,
[data-bs-theme="light"] {
  --pt-brick: #a6462d;
  --pt-brick-dark: #873722;
  --pt-brown: #4a2e24;
  --pt-cream: #faf5ee;
  --pt-beige: #e8d7c3;
  --pt-beige-light: #f4eade;
  --pt-teal: #009BB5;
  --pt-teal-dark: #007C92;
  --pt-text: #30251f;
  --pt-muted: #75665e;
  --pt-border: rgba(111, 73, 20, 0.20);
  --pt-glass: rgba(255, 255, 255, 0.80);
  --pt-shadow: 5px 7px 18px rgba(74, 46, 36, 0.13);
  --pt-shadow-hover: 7px 11px 26px rgba(74, 46, 36, 0.20);

  --bs-primary: #a6462d !important;
  --bs-primary-rgb: 166, 70, 45 !important;
  --bs-secondary: #4a2e24 !important;
  --bs-secondary-rgb: 74, 46, 36 !important;
  --bs-success: #009BB5 !important;
  --bs-success-rgb: 0, 155, 181 !important;
  --bs-body-color: #30251f !important;
  --bs-body-bg: #faf5ee !important;
  --bs-link-color: #a6462d !important;
  --bs-link-hover-color: #873722 !important;
  --bs-border-color: #d8c2aa !important;
  --bs-border-radius: 0.75rem !important;
  --bs-border-radius-lg: 1rem !important;
}

html { overflow-x: hidden; }

body {
  color: var(--pt-text) !important;
  background-color: var(--pt-cream) !important;
}

a {
  color: var(--pt-brick);
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}

a:hover,
a:focus { color: var(--pt-brick-dark); }

h1, h2, h3, h4, h5, h6 { color: var(--pt-brown); }

/* ==========================================================
   HEADER HUMMINGBIRD : .header-top ET .header-bottom
   ========================================================== */

.header {
  background-color: var(--pt-cream) !important;
  box-shadow: 0 5px 18px rgba(74, 46, 36, 0.10);
}

.header .container-fluid {
  width: 100% !important;
  max-width: none !important;
  padding-right: clamp(1rem, 3vw, 4rem) !important;
  padding-left: clamp(1rem, 3vw, 4rem) !important;
}

/* Ligne supérieure : coordonnées à gauche, réseaux et compte à droite */

.header-top {
  min-height: 46px;
  padding: 0.35rem 0 !important;
  color: #f8eee5 !important;
  background-color: var(--pt-brown) !important;
  border: 0 !important;
}

.header-top__row,
.header-top__contact,
.header-top__actions,
.header-top__account,
.pti-socials {
  display: flex;
  align-items: center;
}

.header-top__row {
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 38px;
}

.header-top__contact { gap: clamp(1rem, 2vw, 2rem); }
.header-top__actions { gap: 1rem; }
.header-top__account { justify-content: flex-end; }
.pti-socials { gap: 0.45rem; }

.pti-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}

.pti-contact-link .material-icons { font-size: 1.15rem; }

.header-top .pti-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 7px;
  color: #ffffff !important;
  background: var(--pt-brick) !important;
  border-radius: 50%;
  box-shadow: 2px 3px 7px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.header-top .pti-social-link svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.header-top .pti-social-link:hover,
.header-top .pti-social-link:focus {
  color: #ffffff !important;
  background: var(--pt-brick-dark) !important;
  transform: translateY(-2px);
}

/* Pastille indiquant le nombre d'articles dans le panier */

#_desktop_ps_shoppingcart .header-block__badge,
#_mobile_ps_shoppingcart .header-block__badge,
.ps-shoppingcart .header-block__badge {
  color: #ffffff !important;
  background-color: var(--pt-brick) !important;
  border-color: var(--pt-brick) !important;
}

.header-top a:not(.dropdown-item),
.header-top button,
.header-top i,
.header-top .material-icons { color: #f8eee5 !important; }

.header-top a:not(.dropdown-item):hover,
.header-top button:hover { color: var(--pt-beige) !important; }

/* Grande ligne : marque à gauche, menu puis recherche à droite */

.header-bottom {
  min-height: 190px;
  padding: 0.7rem 0 !important;
  background-color: var(--pt-cream) !important;
  border: 0 !important;
}

.header-bottom__row {
  min-height: 170px;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.header-bottom__brand {
  flex: 0 0 auto !important;
  gap: clamp(0.8rem, 1.5vw, 1.5rem);
  min-width: 450px;
  padding: 0 !important;
}

.header-bottom .navbar-brand {
  min-width: 0;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.header-bottom .navbar-brand .logo,
.header-bottom img.logo {
  display: block;
  width: auto !important;
  height: 170px !important;
  max-width: 176px !important;
  max-height: 170px !important;
  object-fit: contain;
}

.header-bottom__h1 { line-height: 1; }

.header-bottom__shop-name {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  overflow: visible;
  color: rgba(74, 46, 36, 0.78) !important;
  font-family: "Morthena", "Brush Script MT", cursive;
  font-size: clamp(2.4rem, 2.9vw, 3.8rem);
  font-weight: 400;
  font-variant-ligatures: none;
  line-height: 1;
  letter-spacing: 0.025em;
  text-shadow: none !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  text-decoration: none !important;
  white-space: nowrap;
}

.header-bottom__shop-name:hover { color: var(--pt-brick) !important; }

/* Bloc commun : menu et recherche restent groupés à droite */
.header-bottom__navigation {
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0.35rem;
  width: auto !important;
  margin-left: auto !important;
  padding: 0 !important;
  align-self: flex-end;
}

@media (min-width: 1200px) {
  .header-bottom__navigation > * {
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
  }

  .header-bottom .ps-mainmenu--desktop {
    flex: 0 0 max-content !important;
    width: max-content !important;
    max-width: max-content !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .header-bottom .ps-mainmenu__desktop,
  .header-bottom .ps-mainmenu__tree {
    width: max-content !important;
    max-width: max-content !important;
    margin-left: auto !important;
    margin-right: 0 !important;
  }

  .header-bottom .ps-mainmenu__tree {
    justify-content: flex-end !important;
  }

  .header-bottom #_desktop_ps_searchbar {
    flex: 0 0 auto !important;
    width: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.header-bottom .nav-link,
.header-bottom a:not(.dropdown-item) {
  color: var(--pt-brown) !important;
  font-weight: 600;
}

.header-bottom .nav-link:hover,
.header-bottom a:not(.dropdown-item):hover { color: var(--pt-brick) !important; }

.header-bottom .nav-link.active,
.header-bottom .nav-link:active {
  color: #ffffff !important;
  background-color: var(--pt-brick) !important;
  border-radius: 10px;
}

.header-bottom .ps-searchbar,
.header-bottom .search-widget,
.header-bottom form[role="search"] {
  min-width: min(330px, 25vw);
  margin-left: auto;
}

.header-bottom .form-control,
.header-bottom input[type="search"] {
  min-height: 46px;
  background-color: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(111, 73, 20, 0.28) !important;
  border-radius: 13px !important;
  box-shadow: inset 1px 2px 5px rgba(74, 46, 36, 0.05);
}

.header-bottom .form-control:focus,
.header-bottom input[type="search"]:focus {
  border-color: var(--pt-brick) !important;
  box-shadow: 0 0 0 0.22rem rgba(166, 70, 45, 0.15) !important;
}

@media (max-width: 1199.98px) {
  .header-bottom__brand { min-width: 310px; }
  .header-bottom .navbar-brand .logo,
  .header-bottom img.logo {
    height: 105px !important;
    max-width: 110px !important;
    max-height: 105px !important;
  }
  .header-bottom__shop-name { font-size: 2.5rem; }
  .pti-contact-link { font-size: 0.82rem; }
}

@media (max-width: 767.98px) {
  .header-top {
    min-height: 48px;
    padding: 0.35rem 0 !important;
  }
  .header-top .container-fluid {
    padding-right: 0.75rem !important;
    padding-left: 0.75rem !important;
  }
  .header-top__row {
    justify-content: center;
    gap: 0.45rem;
    min-height: 36px;
  }
  .header-top__contact {
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
  }
  .header-top__actions { gap: 0.35rem; }
  .header-top__account { display: none !important; }
  .pti-contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
  }
  .pti-contact-link span { display: none !important; }
  .pti-contact-link .material-icons { font-size: 1.15rem; }
  .header-top .pti-social-link {
    width: 30px;
    height: 30px;
    padding: 6px;
  }
  .header-bottom {
    min-height: 86px;
    padding: 0.45rem 0 !important;
  }
  .header-bottom__row {
    min-height: 72px;
    flex-wrap: wrap !important;
  }
  .header-bottom__brand {
    min-width: 0;
    gap: 0.55rem;
  }
  .header-bottom .navbar-brand .logo,
  .header-bottom img.logo {
    height: 68px !important;
    max-width: 72px !important;
    max-height: 68px !important;
  }
  .header-bottom__shop-name { font-size: 1.7rem; }
  .header-bottom__navigation {
    gap: 0.15rem;
    align-self: center;
  }
}

/* ==========================================================
   BANNIÈRE FIXE DE L'ACCUEIL — PLEINE LARGEUR
   Ne modifie pas le slider situé en haut de la page.
   ========================================================== */

body#index,
body.page-index {
  overflow-x: clip;
}

body#index .page-content--home .banner,
body#index .page-content--home .ps-banner,
body.page-index .page-content--home .banner,
body.page-index .page-content--home .ps-banner {
  width: 100vw !important;
  max-width: none !important;
  margin-right: calc(50% - 50vw) !important;
  margin-left: calc(50% - 50vw) !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body#index .page-content--home .banner img,
body#index .page-content--home .ps-banner img,
body.page-index .page-content--home .banner img,
body.page-index .page-content--home .ps-banner img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  border-radius: 0 !important;
}

/* Menus déroulants */

.dropdown-menu,
.popover,
.modal-content,
.offcanvas {
  background-color: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid var(--pt-border) !important;
  border-radius: 14px !important;
  box-shadow: var(--pt-shadow) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.dropdown-item {
  color: var(--pt-text) !important;
  border-radius: 8px;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--pt-brick-dark) !important;
  background-color: var(--pt-beige-light) !important;
}

.dropdown-item.active,
.dropdown-item:active,
.nav-pills .nav-link.active {
  color: #ffffff !important;
  background-color: var(--pt-brick) !important;
}

/* ==========================================================
   TOUTES LES PAGES EN PLEINE LARGEUR
   ========================================================== */

#wrapper,
#center-column,
#content,
.page-content {
  width: 100% !important;
  max-width: none !important;
}

#wrapper .container,
#wrapper .container-sm,
#wrapper .container-md,
#wrapper .container-lg,
#wrapper .container-xl,
#wrapper .container-xxl {
  width: 100% !important;
  max-width: none !important;
  padding-right: clamp(1rem, 3vw, 4rem) !important;
  padding-left: clamp(1rem, 3vw, 4rem) !important;
}

/* ==========================================================
   ACCUEIL : RÉGLAGES SPÉCIFIQUES
   ========================================================== */

body#index .columns-container,
body.page-index .columns-container,
body#index .page-content--home,
body.page-index .page-content--home {
  width: 100% !important;
  max-width: none !important;
}

body#index .columns-container > .container,
body.page-index .columns-container > .container,
body#index .page-content--home > .container,
body.page-index .page-content--home > .container,
body#index .page-content--home .container,
body.page-index .page-content--home .container {
  width: 100% !important;
  max-width: none !important;
  padding-right: clamp(1rem, 3vw, 4rem) !important;
  padding-left: clamp(1rem, 3vw, 4rem) !important;
}

body#index .page-content--home,
body.page-index .page-content--home {
  gap: clamp(2.5rem, 4vw, 4.5rem) !important;
}

body#index .page-content--home > section,
body.page-index .page-content--home > section,
body#index .featured-products,
body.page-index .featured-products {
  width: 100% !important;
  max-width: none !important;
}

/* Slider */

body#index .ps-imageslider,
body.page-index .ps-imageslider {
  width: 100% !important;
  max-width: none !important;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--pt-shadow);
}

body#index .ps-imageslider .carousel-item img,
body.page-index .ps-imageslider .carousel-item img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
}

.ps-imageslider__figcaption {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  color: #ffffff !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  text-shadow:
    -0.5px -0.5px 0 #000000,
     0.5px -0.5px 0 #000000,
    -0.5px  0.5px 0 #000000,
     0.5px  0.5px 0 #000000;
}

/* Bloc texte de l'accueil */

body#index #custom-text,
body.page-index #custom-text,
body#index .custom-text,
body.page-index .custom-text {
  width: 100% !important;
  max-width: none !important;
  padding: clamp(1.25rem, 2.5vw, 2.25rem) !important;
  background-color: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid var(--pt-border);
  border-radius: 16px;
  box-shadow: 3px 5px 14px rgba(74, 46, 36, 0.08);
}

/* ==========================================================
   PRODUITS PHARES SUR TOUTE LA LARGEUR
   ========================================================== */

body#index .page-content--home .products,
body.page-index .page-content--home .products,
body#index .featured-products .products,
body.page-index .featured-products .products {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  gap: clamp(1rem, 1.6vw, 2rem) !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.product-miniature { min-width: 0; }

.product-miniature__inner {
  overflow: hidden;
  height: 100%;
  background-color: var(--pt-glass) !important;
  border: 1px solid var(--pt-border) !important;
  border-radius: 18px !important;
  box-shadow: var(--pt-shadow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.product-miniature__inner:hover,
.product-miniature__inner:has(:focus-visible) {
  transform: translateY(-5px);
  box-shadow: var(--pt-shadow-hover) !important;
}

.product-miniature__top,
.product-miniature__image-container,
.product-miniature__image-link {
  overflow: hidden;
  border-radius: 17px 17px 0 0 !important;
}

.product-miniature__image {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.product-miniature__bottom {
  gap: 0.65rem !important;
  padding: 1rem 1.1rem 1.2rem !important;
}

.product-miniature__price,
.product-price,
.product__price,
.current-price,
.price {
  color: var(--pt-brick) !important;
  font-weight: 700 !important;
}

.product-miniature__regular-price,
.regular-price { color: var(--pt-muted) !important; }

.product-title,
.product-title a,
.product__title,
.product__title a { color: var(--pt-text) !important; }

.product-title a:hover,
.product__title a:hover { color: var(--pt-brick) !important; }

.product-flags .badge:not(.discount),
.text-bg-primary,
.bg-primary,
.badge-primary {
  color: #ffffff !important;
  background-color: var(--pt-brick) !important;
  border-color: var(--pt-brick) !important;
}

.product-flags .badge,
.badge {
  border-radius: 999px !important;
  box-shadow: 2px 3px 7px rgba(74, 46, 36, 0.14);
}

.text-bg-success,
.bg-success,
.badge-success {
  color: #ffffff !important;
  background-color: var(--pt-teal) !important;
}

/* Boutons */

.btn {
  border-radius: 11px !important;
  font-weight: 600;
  box-shadow: 3px 5px 10px rgba(74, 46, 36, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 5px 8px 16px rgba(74, 46, 36, 0.19);
}

.btn-primary {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #a6462d;
  --bs-btn-border-color: #a6462d;
  --bs-btn-hover-bg: #873722;
  --bs-btn-hover-border-color: #873722;
  color: #ffffff !important;
  background-color: var(--pt-brick) !important;
  border-color: var(--pt-brick) !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--pt-brick-dark) !important;
  border-color: var(--pt-brick-dark) !important;
}

.btn-outline-primary {
  color: var(--pt-brick) !important;
  background-color: rgba(255, 255, 255, 0.55) !important;
  border-color: var(--pt-brick) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #ffffff !important;
  background-color: var(--pt-brick) !important;
  border-color: var(--pt-brick) !important;
}

.btn-success {
  color: #ffffff !important;
  background-color: var(--pt-teal) !important;
  border-color: var(--pt-teal) !important;
}

.btn-success:hover,
.btn-success:focus {
  background-color: var(--pt-teal-dark) !important;
  border-color: var(--pt-teal-dark) !important;
}

/* Formulaires */

.form-control,
.form-select,
.input-group-text,
textarea.form-control {
  color: var(--pt-text) !important;
  background-color: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(111, 73, 20, 0.25) !important;
  border-radius: 11px !important;
}

.form-control:focus,
.form-select:focus {
  background-color: #ffffff !important;
  border-color: var(--pt-brick) !important;
  box-shadow: 0 0 0 0.22rem rgba(166, 70, 45, 0.16) !important;
}

.form-check-input:checked {
  background-color: var(--pt-brick) !important;
  border-color: var(--pt-brick) !important;
}

/* Pied de page */

.footer__main,
#footer,
.footer-container {
  color: #f8eee5 !important;
  background-color: var(--pt-brown) !important;
}

#footer a,
.footer-container a,
.footer__main a { color: var(--pt-beige) !important; }

#footer a:hover,
.footer-container a:hover,
.footer__main a:hover { color: #ffffff !important; }

::selection {
  color: #ffffff;
  background-color: var(--pt-brick);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1199.98px) {
  body#index .page-content--home .products,
  body.page-index .page-content--home .products,
  body#index .featured-products .products,
  body.page-index .featured-products .products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

}

@media (max-width: 767.98px) {
  body#index .page-content--home .products,
  body.page-index .page-content--home .products,
  body#index .featured-products .products,
  body.page-index .featured-products .products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1rem !important;
  }

  body#index .ps-imageslider,
  body.page-index .ps-imageslider,
  .product-miniature__inner { border-radius: 12px !important; }
}

@media (max-width: 479.98px) {
  body#index .page-content--home .products,
  body.page-index .page-content--home .products,
  body#index .featured-products .products,
  body.page-index .featured-products .products {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ==========================================================
   PAGE CATÉGORIE : TITRE, BANNIÈRE ET TRI
   ========================================================== */

/* Le H1 reste lisible par Google et les lecteurs d'écran, mais disparaît visuellement. */

body.page-category #js-product-list-header .page-title-section {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.page-category .category__cover {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

body.page-category .category__cover picture {
  display: block;
  width: min(100%, 1000px);
}

body.page-category .category__cover-image {
  display: block;
  width: 100%;
  height: auto;
  margin-right: auto;
  margin-left: auto;
}

body.page-category .products__selection {
  min-height: 0;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

body.page-category .products__sort-label,
body.page-category .products__count {
  font-size: 0.76rem;
}

body.page-category .products__sort-dropdown-button {
  width: auto !important;
  min-width: 135px !important;
  max-width: 190px !important;
  min-height: 30px;
  padding: 0.2rem 0.55rem !important;
  font-size: 0.78rem;
  line-height: 1.2;
  border-radius: 8px;
}

body.page-category .products__sort {
  flex: 0 0 auto !important;
  width: auto !important;
  margin-right: 0 !important;
  margin-left: auto !important;
  justify-self: end !important;
  justify-content: flex-end !important;
}

body.page-category .products__sort-dropdown {
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  width: auto !important;
  min-width: 0 !important;
}

body.page-category .products__sort-dropdown .dropdown-item {
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
}

/* ==========================================================
   RECHERCHE DU HEADER : LOUPE PUIS OUVERTURE AU CLIC
   ========================================================== */

@media (min-width: 768px) {
  .header-bottom #_desktop_ps_searchbar {
    position: relative;
    top: 0 !important;
    width: 44px !important;
    min-width: 44px !important;
    overflow: visible;
    transition: width 0.22s ease;
  }

  .header-bottom #_desktop_ps_searchbar.pti-search-open {
    width: min(330px, 28vw) !important;
  }

  .header-bottom #_desktop_ps_searchbar .ps-searchbar,
  .header-bottom #_desktop_ps_searchbar .ps-searchbar__form {
    position: relative;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px;
    margin: 0 !important;
    overflow: visible;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(111, 73, 20, 0.28) !important;
    border-radius: 50% !important;
    transition: width 0.22s ease, border-radius 0.22s ease;
  }

  .header-bottom #_desktop_ps_searchbar.pti-search-open .ps-searchbar,
  .header-bottom #_desktop_ps_searchbar.pti-search-open .ps-searchbar__form {
    width: min(330px, 28vw) !important;
    border-radius: 13px !important;
  }

  .header-bottom #_desktop_ps_searchbar .ps-searchbar__magnifier {
    position: absolute;
    top: 50%;
    right: 10px;
    z-index: 4;
    margin: 0;
    cursor: pointer;
    transform: translateY(-50%);
  }

  .header-bottom #_desktop_ps_searchbar .ps-searchbar__input {
    width: 100% !important;
    min-width: 0 !important;
    height: 42px;
    padding: 0 40px 0 13px !important;
    opacity: 0;
    pointer-events: none;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transition: opacity 0.16s ease;
  }

  .header-bottom #_desktop_ps_searchbar.pti-search-open .ps-searchbar__input {
    opacity: 1;
    pointer-events: auto;
  }

  .header-bottom #_desktop_ps_searchbar .ps-searchbar__dropdown {
    right: 0;
    left: auto;
    width: min(330px, 28vw);
  }
}

/* Réglages visuels précis du nom et de la navigation. */

.header-bottom__brand {
  align-self: stretch !important;
  align-items: center !important;
}

.header-bottom__shop-name {
  align-self: center !important;
  transform: translateY(0.16em);
}

@media (min-width: 768px) {
  .header-bottom__navigation {
    align-items: center !important;
  }

  .header-bottom__navigation .ps-mainmenu--desktop,
  .header-bottom__navigation #_desktop_ps_searchbar {
    align-self: center !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .header-bottom__shop-name {
    transform: translateY(0.1em);
  }
}

/* ==========================================================
   MODERNISATION SOBRE — PALETTE P'TI TRÉSOR CONSERVÉE
   ========================================================== */

/* Relief plus léger et lignes plus nettes. */

:root {
  --pt-shadow: 0 8px 24px rgba(48, 37, 31, 0.07);
  --pt-shadow-hover: 0 14px 34px rgba(48, 37, 31, 0.11);
}

.header {
  box-shadow: 0 1px 0 rgba(74, 46, 36, 0.12),
              0 8px 24px rgba(48, 37, 31, 0.04) !important;
}

/* Le carrousel reste élégant sans effet de grosse carte. */

body#index .ps-imageslider,
body.page-index .ps-imageslider {
  border-radius: 8px !important;
  box-shadow: 0 10px 28px rgba(48, 37, 31, 0.08) !important;
}

/* Le texte d'accueil respire davantage et perd son encadrement massif. */

body#index #custom-text,
body.page-index #custom-text,
body#index .custom-text,
body.page-index .custom-text {
  padding: clamp(1.5rem, 2.8vw, 2.75rem) clamp(0.25rem, 1vw, 1rem) !important;
  background-color: transparent !important;
  border: 0 !important;
  border-top: 1px solid rgba(111, 73, 20, 0.14) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Cartes produits plus proches d'un catalogue de mode actuel. */

.product-miniature__inner {
  background-color: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(111, 73, 20, 0.10) !important;
  border-radius: 8px !important;
  box-shadow: var(--pt-shadow) !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.product-miniature__inner:hover,
.product-miniature__inner:has(:focus-visible) {
  transform: translateY(-3px);
  border-color: rgba(166, 70, 45, 0.20) !important;
  box-shadow: var(--pt-shadow-hover) !important;
}

.product-miniature__top,
.product-miniature__image-container,
.product-miniature__image-link {
  border-radius: 7px 7px 0 0 !important;
}

.product-miniature__bottom {
  gap: 0.5rem !important;
  padding: 0.9rem 1rem 1.05rem !important;
}

.product-title,
.product-title a,
.product__title,
.product__title a {
  font-weight: 500 !important;
  line-height: 1.35;
}

/* Badges, boutons et champs moins gonflés. */

.product-flags .badge,
.badge {
  border-radius: 5px !important;
  box-shadow: none !important;
}

.btn {
  border-radius: 6px !important;
  box-shadow: none !important;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(48, 37, 31, 0.10) !important;
}

.form-control,
.form-select,
.input-group-text,
textarea.form-control {
  border-radius: 6px !important;
  box-shadow: none;
}

.dropdown-menu,
.popover,
.modal-content,
.offcanvas {
  border-color: rgba(111, 73, 20, 0.12) !important;
  border-radius: 8px !important;
  box-shadow: 0 14px 36px rgba(48, 37, 31, 0.10) !important;
}

.dropdown-item {
  border-radius: 4px;
}

/* Titres plus fins et plus éditoriaux. */

.page-title,
.featured-products h2,
.products-section-title,
.block-category h1,
.block-category h2 {
  font-weight: 600 !important;
  letter-spacing: -0.02em;
}

/* ==========================================================
   MODERNISATION V2 — CATALOGUE DE MODE ÉPURÉ
   ========================================================== */

body,
#wrapper,
#content,
.page-content {
  background-color: #fffdfb !important;
}

/* Header clair, net, sans effet de bloc épais. */

.header-bottom {
  background-color: #fffdfb !important;
}

.header {
  box-shadow: 0 1px 0 rgba(74, 46, 36, 0.14) !important;
}

.header-bottom .nav-link {
  font-weight: 500 !important;
  letter-spacing: 0.015em;
}

/* Slider bord à bord visuellement, comme une campagne de mode. */

body#index .ps-imageslider,
body.page-index .ps-imageslider {
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Sections plus aérées. */

body#index .page-content--home,
body.page-index .page-content--home {
  gap: clamp(3.25rem, 5vw, 6rem) !important;
}

.featured-products h2,
.products-section-title {
  margin-bottom: clamp(1.4rem, 2vw, 2.2rem) !important;
  font-size: clamp(1.55rem, 2vw, 2.15rem) !important;
  text-align: center;
}

.featured-products h2::after,
.products-section-title::after {
  display: block;
  width: 42px;
  height: 2px;
  margin: 0.65rem auto 0;
  content: "";
  background-color: var(--pt-brick);
}

/* Suppression complète de l'aspect carte : la photo devient le produit. */

.product-miniature__inner {
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none;
}

.product-miniature__inner:hover,
.product-miniature__inner:has(:focus-visible) {
  transform: none;
  border: 0 !important;
  box-shadow: none !important;
}

.product-miniature__top,
.product-miniature__image-container,
.product-miniature__image-link {
  overflow: hidden;
  background-color: #f4f0ec !important;
  border-radius: 3px !important;
}

.product-miniature__image {
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.product-miniature__inner:hover .product-miniature__image {
  transform: scale(1.018);
  opacity: 0.97;
}

.product-miniature__bottom {
  padding: 1rem 0.15rem 0.4rem !important;
}

.product-title,
.product-title a,
.product__title,
.product__title a {
  font-size: 0.95rem !important;
  font-weight: 500 !important;
}

.product-miniature__price,
.product-price,
.product__price,
.current-price,
.price {
  font-size: 1rem;
  font-weight: 650 !important;
}

/* Badges minimalistes dans l'angle de la photo. */

.product-flags .badge,
.badge {
  padding: 0.35rem 0.55rem !important;
  border: 0 !important;
  border-radius: 2px !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.025em;
  box-shadow: none !important;
}

/* Boutons plus francs et contemporains. */

.btn {
  min-height: 42px;
  padding-right: 1.15rem;
  padding-left: 1.15rem;
  border-radius: 3px !important;
  font-size: 0.88rem;
  letter-spacing: 0.025em;
  box-shadow: none !important;
}

.btn:hover {
  transform: none;
  box-shadow: none !important;
}

.btn-primary:hover,
.btn-outline-primary:hover {
  filter: brightness(0.94);
}

/* Texte de présentation recentré pour éviter les lignes interminables. */

body#index #custom-text > *,
body.page-index #custom-text > *,
body#index .custom-text > *,
body.page-index .custom-text > * {
  max-width: 1050px;
  margin-right: auto;
  margin-left: auto;
}

/* Tri compact et discret. */

body.page-category .products__selection {
  padding-block: 0.75rem !important;
  border-top: 1px solid rgba(111, 73, 20, 0.10);
  border-bottom: 1px solid rgba(111, 73, 20, 0.10);
}

body.page-category .products__sort-dropdown-button {
  min-height: 34px !important;
  background-color: transparent !important;
  border-color: rgba(111, 73, 20, 0.22) !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}

@media (max-width: 767.98px) {
  body#index .page-content--home,
  body.page-index .page-content--home {
    gap: 2.75rem !important;
  }

  .product-miniature__bottom {
    padding-top: 0.75rem !important;
  }
}

/* ==========================================================
   MÉGA-MENU EN COLONNES — ORDINATEUR UNIQUEMENT
   ========================================================== */

@media (min-width: 1200px) {
  .ps-mainmenu.ps-mainmenu--desktop .submenu {
    padding: 0 clamp(1rem, 3vw, 4rem) !important;
    background-color: rgba(255, 253, 251, 0.98) !important;
    border-top: 1px solid rgba(111, 73, 20, 0.12) !important;
    box-shadow: 0 16px 36px rgba(48, 37, 31, 0.10) !important;
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__row {
    display: grid !important;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    width: 100% !important;
    max-width: 1180px;
    margin: 0 auto !important;
    padding: 1rem 0 !important;
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__left {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    align-content: start;
    gap: 0.2rem 0.75rem !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 1rem 0 0 !important;
    border-right: 1px solid rgba(111, 73, 20, 0.12) !important;
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__left-item {
    min-height: 38px;
    padding: 0.5rem 0.65rem !important;
    border-radius: 3px !important;
    font-size: 0.9rem;
    line-height: 1.25;
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__right {
    width: 100% !important;
    max-width: none !important;
    padding: 0 0 0 1.25rem !important;
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__right-items {
    grid-template-columns: repeat(2, minmax(130px, 1fr)) !important;
    gap: 0.7rem 1rem !important;
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__right-items .menu-item__group--child .menu-item__group-main-item,
  .ps-mainmenu.ps-mainmenu--desktop .submenu__right-items .menu-item__group--nochild .menu-item__group-main-item {
    margin-bottom: 0.35rem !important;
    font-size: 1rem !important;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .ps-mainmenu.ps-mainmenu--desktop .submenu__left {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

/* ==========================================================
   MENU EN CASCADE : UNE COLONNE PAR NIVEAU
   ========================================================== */

@media (min-width: 1200px) {
  .ps-mainmenu.ps-mainmenu--desktop .ps-mainmenu__tree > li {
    position: relative;
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu {
    right: auto !important;
    left: 0 !important;
    width: max-content !important;
    min-width: 255px;
    max-width: calc(100vw - 2rem);
    padding: 0 !important;
    border: 1px solid rgba(111, 73, 20, 0.13) !important;
    border-top: 2px solid var(--pt-brick) !important;
    border-radius: 0 0 4px 4px !important;
    box-shadow: 0 16px 34px rgba(48, 37, 31, 0.12) !important;
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__row {
    display: grid !important;
    grid-template-columns: 255px;
    width: max-content !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0.65rem !important;
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__left {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.1rem !important;
    width: 255px !important;
    min-width: 255px !important;
    padding: 0 !important;
    border-right: 0 !important;
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__left-item {
    width: 100%;
    min-height: 36px;
    padding: 0.45rem 0.65rem !important;
    white-space: nowrap;
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__right {
    display: none !important;
    width: 285px !important;
    min-width: 285px !important;
    padding: 0 0 0 0.75rem !important;
    border-left: 1px solid rgba(111, 73, 20, 0.12);
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__right-items {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.25rem !important;
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__right-items .menu-item {
    padding: 0.4rem 0.55rem !important;
    border-radius: 3px;
    white-space: nowrap;
  }

  /* Si aucune sous-sous-catégorie n'existe, la seconde colonne disparaît. */

  .ps-mainmenu.ps-mainmenu--desktop .submenu__row:has(.submenu__right-items.active .menu-item) {
    grid-template-columns: 255px 285px;
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__right:has(.submenu__right-items.active .menu-item) {
    display: block !important;
  }

  /* La colonne chevauche légèrement le lien : aucune zone morte au survol. */

  .ps-mainmenu.ps-mainmenu--desktop .ps-mainmenu__tree > li > .submenu {
    top: calc(100% - 10px) !important;
    margin-top: 0 !important;
  }

  .ps-mainmenu.ps-mainmenu--desktop .ps-mainmenu__tree > li > .submenu::before {
    position: absolute;
    top: -14px;
    right: 0;
    left: 0;
    height: 14px;
    content: "";
    background: transparent;
  }
}

/* ==========================================================
   HABILLAGE MODERNE DU MENU EN CASCADE
   ========================================================== */

@media (min-width: 1200px) {
  .ps-mainmenu.ps-mainmenu--desktop .submenu {
    background: rgba(255, 253, 251, 0.985) !important;
    border: 1px solid rgba(74, 46, 36, 0.08) !important;
    border-top: 0 !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow:
      0 22px 50px rgba(48, 37, 31, 0.14),
      0 4px 12px rgba(48, 37, 31, 0.06) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__row {
    gap: 0 !important;
    padding: 0.55rem !important;
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__left-item {
    position: relative;
    color: var(--pt-text) !important;
    border-radius: 7px !important;
    font-size: 0.91rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    transition:
      color 0.16s ease,
      background-color 0.16s ease,
      box-shadow 0.16s ease,
      padding-left 0.16s ease;
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__left-item:hover,
  .ps-mainmenu.ps-mainmenu--desktop .submenu__left-item:focus,
  .ps-mainmenu.ps-mainmenu--desktop .submenu__left-item.active {
    color: var(--pt-brick-dark) !important;
    background-color: rgba(166, 70, 45, 0.075) !important;
    box-shadow: inset 3px 0 0 var(--pt-brick);
    padding-left: 0.85rem !important;
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__left-item[data-ps-has-child="true"]::after {
    color: var(--pt-brick);
    font-size: 1.15rem;
    transition: transform 0.16s ease;
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__left-item[data-ps-has-child="true"]:hover::after,
  .ps-mainmenu.ps-mainmenu--desktop .submenu__left-item[data-ps-has-child="true"].active::after {
    transform: translateX(3px);
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__right {
    margin: -0.55rem -0.55rem -0.55rem 0;
    padding: 1.1rem 0.8rem 0.8rem 1rem !important;
    background-color: rgba(232, 215, 195, 0.24);
    border-left: 1px solid rgba(111, 73, 20, 0.10);
    border-radius: 0 0 11px 0;
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__right-items.active {
    animation: pti-submenu-column 0.18s ease-out both;
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__right-items .menu-item {
    color: var(--pt-text) !important;
    border-radius: 6px !important;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.15s ease, background-color 0.15s ease;
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__right-items .menu-item:hover,
  .ps-mainmenu.ps-mainmenu--desktop .submenu__right-items .menu-item:focus {
    color: var(--pt-brick-dark) !important;
    background-color: rgba(255, 255, 255, 0.72) !important;
  }

  .ps-mainmenu.ps-mainmenu--desktop .submenu__right-items .menu-item__group-main-item {
    color: var(--pt-brick-dark) !important;
    font-weight: 600 !important;
  }
}

@keyframes pti-submenu-column {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================================
   HEADER MOBILE — NOM PLUS COMPACT SANS MODIFIER L'ORDINATEUR
   ========================================================== */

@media (max-width: 767.98px) {
  .header-bottom .container-fluid {
    padding-right: 0.65rem !important;
    padding-left: 0.65rem !important;
  }

  .header-bottom__row {
    min-height: 0 !important;
    row-gap: 0.35rem !important;
    column-gap: 0.2rem !important;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .header-bottom__brand {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    gap: 0.55rem !important;
    min-height: 62px;
    margin: 0 !important;
  }

  .header-bottom .navbar-brand .logo,
  .header-bottom img.logo {
    width: auto !important;
    height: 58px !important;
    max-width: 62px !important;
    max-height: 58px !important;
  }

  .header-bottom__h1 {
    min-width: 0;
    margin: 0 !important;
  }

  .header-bottom__shop-name {
    max-width: 100%;
    font-size: clamp(1.25rem, 6vw, 1.6rem) !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    transform: translateY(0.08em) !important;
  }

  .header-bottom__navigation {
    flex: 1 1 auto !important;
    order: 2;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-start !important;
  }

  #_mobile_ps_customersignin {
    flex: 0 0 auto !important;
    order: 3;
    width: auto !important;
    margin-left: auto !important;
    padding-right: 0.15rem !important;
    padding-left: 0.15rem !important;
  }

  #_mobile_ps_shoppingcart {
    flex: 0 0 auto !important;
    order: 4;
    width: auto !important;
    padding-right: 0.15rem !important;
    padding-left: 0.15rem !important;
  }

  .header-bottom {
    min-height: 0 !important;
    padding: 0.25rem 0 0.45rem !important;
  }
}

@media (max-width: 374.98px) {
  .header-bottom__shop-name {
    font-size: 1.15rem !important;
  }

  .header-bottom .navbar-brand .logo,
  .header-bottom img.logo {
    height: 52px !important;
    max-width: 55px !important;
    max-height: 52px !important;
  }
}

/* Masque la mention « Ecommerce software by PrestaShop » du pied de page. */

#footer .copyright,
.footer .copyright {
  display: none !important;
}

/* ==========================================================
   ACCUEIL MOBILE — SLIDER COMPACT ET PRODUITS HORIZONTAUX
   Ces règles restent en fin de fichier pour primer sur les anciennes.
   ========================================================== */

@media (max-width: 767.98px) {
  body#index .page-content--home,
  body.page-index .page-content--home {
    gap: 0 !important;
  }

  body#index .page-content--home > * + *,
  body.page-index .page-content--home > * + * {
    margin-top: .45rem !important;
  }

  body#index .page-content--home > .ps-imageslider + *,
  body.page-index .page-content--home > .ps-imageslider + * {
    margin-top: .15rem !important;
    padding-top: 0 !important;
    border-top: 0 !important;
  }

  body#index .ps-imageslider,
  body.page-index .ps-imageslider {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
  }

  body#index .ps-imageslider .carousel-indicators,
  body.page-index .ps-imageslider .carousel-indicators {
    display: none !important;
  }

  body#index .ps-featuredproducts .products,
  body#index .ps-newproducts .products,
  body#index .ps-specials .products,
  body.page-index .ps-featuredproducts .products,
  body.page-index .ps-newproducts .products,
  body.page-index .ps-specials .products {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: .75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 0 .75rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body#index .module-products,
  body.page-index .module-products,
  body#index .ps-featuredproducts,
  body#index .ps-newproducts,
  body#index .ps-specials,
  body.page-index .ps-featuredproducts,
  body.page-index .ps-newproducts,
  body.page-index .ps-specials {
    margin-top: .45rem !important;
    margin-bottom: .45rem !important;
    padding-top: .35rem !important;
    padding-bottom: .35rem !important;
  }

  body#index .module-products h2,
  body.page-index .module-products h2,
  body#index .featured-products h2,
  body.page-index .featured-products h2,
  body#index .products-section-title,
  body.page-index .products-section-title {
    margin-top: 0 !important;
    margin-bottom: .75rem !important;
  }

  body#index .ps-featuredproducts .products::-webkit-scrollbar,
  body#index .ps-newproducts .products::-webkit-scrollbar,
  body#index .ps-specials .products::-webkit-scrollbar,
  body.page-index .ps-featuredproducts .products::-webkit-scrollbar,
  body.page-index .ps-newproducts .products::-webkit-scrollbar,
  body.page-index .ps-specials .products::-webkit-scrollbar {
    display: none;
  }

  body#index .ps-featuredproducts .products > *,
  body#index .ps-newproducts .products > *,
  body#index .ps-specials .products > *,
  body.page-index .ps-featuredproducts .products > *,
  body.page-index .ps-newproducts .products > *,
  body.page-index .ps-specials .products > * {
    flex: 0 0 82% !important;
    width: 82% !important;
    min-width: 82% !important;
    max-width: 82% !important;
    scroll-snap-align: start;
  }
}

/* ==========================================================
   ESPACEMENT DU SLIDER — ORDINATEUR ET MOBILE
   Le bloc suivant reste proche, quel que soit le module déplacé après.
   ========================================================== */

body#index .page-content--home,
body.page-index .page-content--home {
  gap: 0 !important;
}

body#index .page-content--home > * + *,
body.page-index .page-content--home > * + * {
  margin-top: clamp(2.25rem, 4vw, 4rem) !important;
}

body#index .page-content--home > .ps-imageslider,
body.page-index .page-content--home > .ps-imageslider {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

body#index .page-content--home > .ps-imageslider + *,
body.page-index .page-content--home > .ps-imageslider + * {
  margin-top: 100px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}

@media (max-width: 767.98px) {
  body#index .page-content--home > * + *,
  body.page-index .page-content--home > * + * {
    margin-top: .45rem !important;
  }

  body#index .page-content--home > .ps-imageslider + *,
  body.page-index .page-content--home > .ps-imageslider + * {
    margin-top: -2rem !important;
    padding-top: 0 !important;
    border-top: 0 !important;
  }

  /* Un peu d'air entre la présentation et les catégories rondes. */
  body#index .page-content--home > .ps-customtext + .ptcc,
  body.page-index .page-content--home > .ps-customtext + .ptcc {
    margin-top: 100px !important;
  }
}

/* P'TI TRESOR — ACCENTS VERTS / REDUCTIONS — septembre 2026 */
:root, [data-bs-theme="light"] {
  --bs-info: #009BB5;
  --bs-info-rgb: 0, 155, 181;
  --bs-info-text-emphasis: #007C92;
  --bs-info-bg-subtle: #e6f7fb;
  --bs-info-border-subtle: #9edce7;
  --bs-link-color-rgb: 166, 70, 45;
  --bs-link-hover-color-rgb: 135, 55, 34;
}

/* Badges : traiter le FOND et le texte, y compris les variantes Hummingbird. */
body .product-prices .discount,
body .product__prices .discount,
body .product-price .discount,
body .current-price .discount,
body .discount-percentage,
body .discount-amount,
body .price-percent-reduction,
body .product-flags .discount,
body .product-flags .product-flag.discount,
body .product-flags .on-sale,
body .badge.discount,
body .badge--discount,
body .product__discount,
body .product-prices__discount,
body .bg-info,
body .text-bg-info,
body .badge-info {
  background-color: #009BB5 !important;
  background-image: none !important;
  border-color: #009BB5 !important;
  color: #ffffff !important;
}

body .text-info, body .text-info-emphasis,
body .link-info, body .has-discount .current-price,
body .has-discount .current-price-value {
  color: #009BB5 !important;
}
body .link-info:hover, body .link-info:focus { color: #007C92 !important; }
body .border-info { border-color: #009BB5 !important; }
body .bg-info-subtle { background-color: #e6f7fb !important; }
body .border-info-subtle { border-color: #9edce7 !important; }
body .alert-info {
  --bs-alert-color: #007C92;
  --bs-alert-bg: #e6f7fb;
  --bs-alert-border-color: #9edce7;
  --bs-alert-link-color: #007C92;
  color: #007C92 !important;
  background-color: #e6f7fb !important;
  border-color: #9edce7 !important;
}
body .btn-info, body .btn-outline-info {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: #009BB5;
  --bs-btn-border-color: #009BB5;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #007C92;
  --bs-btn-hover-border-color: #007C92;
  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #007C92;
  --bs-btn-active-border-color: #007C92;
  --bs-btn-focus-shadow-rgb: 0, 155, 181;
  --bs-btn-disabled-bg: #009BB5;
  --bs-btn-disabled-border-color: #009BB5;
}
body .btn-outline-info { --bs-btn-color: #009BB5; --bs-btn-bg: transparent; }

/* Variable utilisee par les textes accentues et les pseudo-elements du theme. */
:root,
[data-bs-theme="light"],
[data-bs-theme="dark"],
body {
  --bs-primary-text-emphasis: #007C92 !important;
}

/* Texte de reduction Hummingbird : conserver les fonds verts ci-dessus. */
body .product__discount-percentage,
body .text-primary-emphasis,
body .text-primary {
  color: #007C92 !important;
}

/* Contraste des textes si une classe de texte est aussi presente sur un badge. */
body .badge.discount,
body .badge.discount .text-primary,
body .badge.discount .text-primary-emphasis,
body .text-bg-info,
body .text-bg-info .text-info {
  color: #ffffff !important;
}

/* P'TI TRESOR : photos portrait 1200 x 1600 (ratio 3:4).
   Les dimensions d'affichage restent fluides. */
.product-miniature .product-miniature__actions,
.product-miniature .product-miniature__form,
.product-miniature .product-miniature__details {
  display: none !important;
}
.product-miniature .product-miniature__image {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: contain !important;
  object-position: center;
}
/* Galerie principale et petites vues : vêtement entier, sans étirement. */
.product__images .product__carousel .carousel-item > picture > img,
.product__images .product__no-image > picture > img,
.product__images .product__thumbnail-image {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 3 / 4 !important;
  object-fit: contain !important;
  object-position: center;
}
.product-miniature__inner:hover .product-miniature__image {
  transform: none !important;
}

/* Ajouter à la fin de custom.css : actions discrètes en catégories */
body#category .product-miniature .pti-category-actions {display:block!important;width:100%;margin-top:12px;}
body#category .pti-category-form {display:block!important;margin:0;}
body#category .pti-category-add,
body#category .pti-category-choice {width:100%;min-height:44px;border:1px solid #a9462c!important;border-radius:4px;background:transparent!important;color:#a9462c!important;font-size:14px;font-weight:500;}
body#category .pti-category-choice {position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;}
body#category .pti-category-choice a,
body#category .pti-category-choice button {position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;margin:0!important;transform:none!important;opacity:1!important;visibility:visible!important;border:0!important;background:transparent!important;color:transparent!important;font-size:0!important;z-index:1;}
body#category .pti-category-choice a > *,
body#category .pti-category-choice button > * {visibility:hidden!important;}
body#category .pti-category-label {pointer-events:none;font-size:14px;padding:10px 12px;}
body#category .pti-category-choice:hover,
body#category .pti-category-add:hover {background:#f6eae4!important;}
body#category .pti-category-choice:focus-within,
body#category .pti-category-add:focus-visible {outline:2px solid #a9462c;outline-offset:3px;}

/* Alignement des prix : emplacement reserve aux couleurs, meme sans variantes. */
.product-miniature .product-miniature__infos {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 44px auto auto;
  row-gap: 0 !important;
  min-width: 0;
}
.product-miniature .product-miniature__title {
  grid-column: 1;
  grid-row: 1;
}
.product-miniature .product-miniature__variants {
  grid-column: 1;
  grid-row: 2;
  align-self: stretch;
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
  padding: 2px 0 !important;
  overflow-x: auto;
  overflow-y: hidden;
}
.product-miniature .product-miniature__variants .variant-links {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 5px;
  width: max-content;
  min-height: 32px;
  margin: 0 !important;
}
.product-miniature .product-miniature__variants .variant-links > * {
  flex-shrink: 0;
}
.product-miniature .product-miniature__prices {
  grid-column: 1;
  grid-row: 3;
  margin-top: 0 !important;
}
background: url('/img/pti-tresor-danseuse-panier.png')/* Danseuse à gauche du bloc de réassurance - page panier uniquement */
body#cart .container-blockreassurance {
  position: relative !important;
  padding-left: 170px !important;
  min-height: 220px !important;
}

body#cart .container-blockreassurance::before {
  content: "" !important;
  position: absolute !important;
  z-index: 2 !important;
  left: 8px !important;
  top: 50% !important;
  width: 145px !important;
  height: 205px !important;
  transform: translateY(-50%) !important;
  background: url('/img/pti-tresor-danseuse-panier.png') center center / contain no-repeat !important;
  pointer-events: none !important;
}

/* Sur mobile, le bloc est affiché uniquement dans le panier et reste compact. */
@media (max-width: 767.98px) {
  body#cart .container-blockreassurance {
    display: block !important;
    padding-left: 92px !important;
    min-height: 130px !important;
  }

  body#cart .container-blockreassurance::before {
    left: 2px !important;
    width: 82px !important;
    height: 122px !important;
  }
}
