/* =====================================================================
   Peyron Équitation — thème enfant de Hummingbird (PrestaShop 9.2)
   Identité : bordeaux Peyron, marine, crème ; titres Playfair Display.
   Les règles de Hummingbird sont dans des @layer : ce fichier, hors
   couche, a toujours la priorité, sans !important (sauf styles en ligne).
   Source : ~/peyron/design/styles/peyron-hummingbird.css
   ===================================================================== */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(../fonts/playfair-display-latin.woff2) format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/playfair-display-latin-italic.woff2) format("woff2");
}

/* ---------- Palette et variables Bootstrap ---------- */
:root, [data-bs-theme=light] {
  --py-bordeaux: #800020;
  --py-bordeaux-dark: #66001a;
  --py-bordeaux-deep: #4d0014;
  --py-bordeaux-soft: #f6ecee;
  --py-navy: #0f1a33;
  --py-navy-2: #1a2747;
  --py-ink: #1d1d22;
  --py-muted: #6b6b75;
  --py-cream: #f7f3ee;
  --py-line: #e9e4dd;
  --py-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --py-shadow: 0 12px 32px rgba(15, 26, 51, .08);
  --py-shadow-sm: 0 4px 14px rgba(15, 26, 51, .06);
  --py-ease: cubic-bezier(.2, .7, .2, 1);

  --bs-blue: var(--py-bordeaux);
  --bs-primary: var(--py-bordeaux);
  --bs-primary-rgb: 128, 0, 32;
  --bs-primary-text-emphasis: var(--py-bordeaux-dark);
  --bs-primary-bg-subtle: var(--py-bordeaux-soft);
  --bs-primary-border-subtle: #e2c0c8;
  --bs-link-color: var(--py-bordeaux);
  --bs-link-color-rgb: 128, 0, 32;
  --bs-link-hover-color: var(--py-bordeaux-dark);
  --bs-link-hover-color-rgb: 102, 0, 26;
  --bs-body-color: var(--py-ink);
  --bs-body-color-rgb: 29, 29, 34;
  --bs-emphasis-color: var(--py-navy);
  --bs-secondary-color: var(--py-muted);
  --bs-border-color: var(--py-line);
  --bs-tertiary-bg: var(--py-cream);
  --bs-tertiary-bg-rgb: 247, 243, 238;
  --bs-dark: var(--py-navy);
  --bs-dark-rgb: 15, 26, 51;
  --bs-border-radius: .625rem;
  --bs-border-radius-sm: .375rem;
  --bs-border-radius-lg: .875rem;
  --bs-focus-ring-color: rgba(128, 0, 32, .25);
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--py-bordeaux); color: #fff; }

/* ---------- Typographie ---------- */
h1, .h1, h2, .h2, .section-title, .page-title, .product__name {
  font-family: var(--py-serif);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--py-navy);
}
h1, .h1 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }

.section-title {
  position: relative;
  text-align: center;
  font-size: clamp(1.6rem, 1.25rem + 1.1vw, 2.15rem);
  margin-block-end: 2.25rem;
  padding-block-end: .9rem;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 3rem;
  height: 2px;
  background: var(--py-bordeaux);
  transform: translateX(-50%);
}

/* ---------- Boutons ---------- */
.btn { font-weight: 600; letter-spacing: .01em; transition: all .2s var(--py-ease); }
.btn-primary {
  --bs-btn-bg: var(--py-bordeaux);
  --bs-btn-border-color: var(--py-bordeaux);
  --bs-btn-hover-bg: var(--py-bordeaux-dark);
  --bs-btn-hover-border-color: var(--py-bordeaux-dark);
  --bs-btn-active-bg: var(--py-bordeaux-deep);
  --bs-btn-active-border-color: var(--py-bordeaux-deep);
  --bs-btn-disabled-bg: var(--py-bordeaux);
  --bs-btn-disabled-border-color: var(--py-bordeaux);
  --bs-btn-focus-shadow-rgb: 128, 0, 32;
}
.btn-primary:hover { box-shadow: 0 6px 18px rgba(128, 0, 32, .25); }
.btn-outline-primary {
  --bs-btn-color: var(--py-bordeaux);
  --bs-btn-border-color: var(--py-bordeaux);
  --bs-btn-hover-bg: var(--py-bordeaux);
  --bs-btn-hover-border-color: var(--py-bordeaux);
  --bs-btn-active-bg: var(--py-bordeaux-dark);
  --bs-btn-active-border-color: var(--py-bordeaux-dark);
  --bs-btn-disabled-color: var(--py-bordeaux);
  --bs-btn-disabled-border-color: var(--py-bordeaux);
  --bs-btn-focus-shadow-rgb: 128, 0, 32;
}
.nav-pills { --bs-nav-pills-link-active-bg: var(--py-bordeaux); }

/* Formulaires : focus bordeaux à la place du bleu codé en dur */
.form-control, .form-select { border-color: #ddd6cc; }
.form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: #c58f9c;
  box-shadow: 0 0 0 .25rem rgba(128, 0, 32, .15);
}
.form-check-input:checked,
.form-check-input[type=checkbox]:indeterminate {
  background-color: var(--py-bordeaux);
  border-color: var(--py-bordeaux);
}
.nav-link:focus-visible,
.search-filters__form-check--color .color:focus-visible,
.stars-selector:has(.stars-selector__input:focus-visible) {
  box-shadow: 0 0 0 .25rem rgba(128, 0, 32, .25);
}
.form-range::-webkit-slider-thumb { background-color: var(--py-bordeaux); }
.form-range::-moz-range-thumb { background-color: var(--py-bordeaux); }

/* ---------- En-tête ---------- */
.header-top {
  background: var(--py-navy);
  color: rgba(255, 255, 255, .85);
  font-size: .8125rem;
  letter-spacing: .02em;
}
.header-top a,
.header-top .header-block__action-btn,
.header-top .header-block__icon { color: #fff; }
.header-top a:hover,
.header-top .header-block__action-btn:hover { color: #e9c9d1; }
.header-top .header-block__badge { background: var(--py-bordeaux); color: #fff; }

.header-bottom {
  background: #fff;
  border-bottom: 1px solid var(--py-line);
  transition: box-shadow .25s var(--py-ease);
}
.header.is-sticky .header-bottom,
.header--sticky .header-bottom { box-shadow: var(--py-shadow-sm); }
.header-bottom .logo { max-height: 3.75rem; width: auto; }

.ps-mainmenu__tree-link {
  position: relative;
  color: var(--py-ink);
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.ps-mainmenu__tree-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.35rem;
  height: 2px;
  background: var(--py-bordeaux);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--py-ease);
}
.ps-mainmenu__tree-item:hover .ps-mainmenu__tree-link,
.ps-mainmenu__tree-link:hover { color: var(--py-bordeaux); }
.ps-mainmenu__tree-item:hover .ps-mainmenu__tree-link::after { transform: scaleX(1); }
.submenu { border-top: 2px solid var(--py-bordeaux); box-shadow: var(--py-shadow); }
.submenu a:hover { color: var(--py-bordeaux); }

.ps-searchbar__input {
  background: var(--py-cream);
  border-color: transparent;
  border-radius: 50rem;
  padding-inline-start: 2.5rem;
}
.ps-searchbar__input:focus { background: #fff; }

/* Menu sur une ligne jusqu'à 1200 px (Hummingbird passe au menu mobile en dessous) */
.ps-mainmenu__tree { flex-wrap: nowrap; }
.ps-mainmenu__tree-link { white-space: nowrap; }
@media (max-width: 1399.98px) {
  .ps-mainmenu__tree-link { font-size: .75rem; letter-spacing: .05em; }
  .ps-mainmenu__tree-item-wrapper { gap: 0; }
  .header-bottom .logo { max-height: 3.25rem; }
}

/* ---------- Fil d'Ariane ---------- */
.breadcrumb__wrapper { background: var(--py-cream); font-size: .8125rem; }
.breadcrumb { padding-block: .7rem; margin: 0; }
.breadcrumb-link { color: var(--py-muted); }
.breadcrumb-link:hover { color: var(--py-bordeaux); }
.page-index .breadcrumb__wrapper { display: none; }

/* ---------- Accueil : carrousel, texte, bannière ---------- */
.ps-imageslider {
  max-width: 1320px;
  margin: 1.25rem auto 0;
  padding-inline: calc(var(--bs-gutter-x, 1.5rem) * .5);
}
.ps-imageslider .carousel { overflow: hidden; border-radius: var(--bs-border-radius-lg); }
/* Bannières dessinées en 1110x350 : affichées entières, jamais recadrées */
.ps-imageslider .carousel-inner,
.ps-imageslider .carousel-item,
.ps-imageslider__link,
.ps-imageslider__figure,
.ps-imageslider__figure img { height: auto; }
.ps-imageslider__figure { margin: 0; }
.ps-imageslider__figure img { object-fit: contain; aspect-ratio: 1110 / 350; }
.ps-imageslider .carousel-indicators [data-bs-target],
.ps-imageslider .carousel-indicators button {
  width: 1.75rem;
  height: 3px;
  border: 0;
  background: #fff;
  opacity: .55;
}
.ps-imageslider .carousel-indicators .active { opacity: 1; background: var(--py-bordeaux); }

.ps-customtext { padding-block: clamp(2rem, 4vw, 3.5rem) 0; }
.ps-customtext h2 {
  font-family: var(--py-serif);
  font-size: clamp(1.25rem, 1rem + .8vw, 1.625rem);
  line-height: 1.4;
  font-weight: 500;
  max-width: 52rem;
  margin: 0 auto;
}
.ps-customtext h2 { text-wrap: balance; }
.ps-customtext h2 > br:last-child, .ps-customtext h2 > br:nth-last-child(2) { display: none; }
.ps-customtext h2 > span:first-child > span:first-child + br { display: none; }
.ps-customtext h2 > span:first-child > span:first-child {
  display: block;
  margin-bottom: .75rem;
  color: var(--py-bordeaux) !important;
  font-family: Inter, sans-serif;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ps-customtext span[style*="#041134"] { color: var(--py-navy) !important; }

.ps-featuredproducts, .ps-bestsellers, .ps-specials, .ps-newproducts {
  padding-block: clamp(2rem, 4vw, 3.5rem);
}
.ps-bestsellers { background: var(--py-cream); }

.ps-banner { padding-block: 1rem; }
.ps-banner .container { text-align: center; }
.ps-banner .banner { display: inline-block; max-width: 100%; }
.ps-banner .banner img {
  border-radius: var(--bs-border-radius-lg);
  box-shadow: var(--py-shadow);
  transition: transform .6s var(--py-ease), box-shadow .6s var(--py-ease);
}
.ps-banner .banner:hover img { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(15, 26, 51, .14); }

.module-products__buttons { margin-top: 2rem; text-align: center; }
.module-products__buttons .btn-outline-primary {
  border-radius: 50rem;
  padding: .6rem 1.5rem;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ---------- Vignettes produit ---------- */
.product-miniature__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: .75rem;
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--bs-border-radius-lg);
  transition: border-color .25s var(--py-ease), box-shadow .25s var(--py-ease), transform .25s var(--py-ease);
}
.product-miniature:hover .product-miniature__inner {
  border-color: var(--py-line);
  box-shadow: var(--py-shadow);
  transform: translateY(-3px);
}
.ps-bestsellers .product-miniature__inner { background: #fff; }
.product-miniature__image-container {
  overflow: hidden;
  border-radius: var(--bs-border-radius);
  background: #fff;
}
.product-miniature__image { transition: transform .5s var(--py-ease); }
.product-miniature:hover .product-miniature__image { transform: scale(1.05); }

.product-miniature__title {
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-miniature__title, .product-miniature__title a { color: var(--py-ink); text-decoration: none; }
.product-miniature__title:hover, .product-miniature__title a:hover { color: var(--py-bordeaux); }
.product-miniature__infos { gap: .25rem; }
.product-miniature__price { font-size: 1.0625rem; font-weight: 700; color: var(--py-navy); }
.product-miniature__discount-price { color: var(--py-bordeaux); }
.product-miniature__regular-price { color: var(--py-muted); font-weight: 400; }

/* Listes : un seul bouton clair, la quantité se choisit sur la fiche ou au panier */
.product-miniature__form { flex-direction: column; align-items: stretch; }
.product-miniature__form .quantity-button { display: none; }
.product-miniature__add, .product-miniature__details {
  width: 100%;
  border-radius: 50rem;
  padding-block: .55rem;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.product-miniature__add { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.product-miniature__add-text { display: block; }
.product-miniature__quickview-button { background: rgba(255, 255, 255, .92); box-shadow: var(--py-shadow-sm); }

/* Pastilles */
.product-flags .badge {
  border-radius: 50rem;
  padding: .35em .75em;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.product-flags .badge.on-sale { background: var(--py-bordeaux); color: #fff; }
.product-flags .badge.discount {
  background: #fff;
  color: var(--py-bordeaux);
  border: 1px solid var(--py-bordeaux);
}
.product-flags .badge.new { background: var(--py-navy); color: #fff; }
.product-flags .badge.out_of_stock { background: #ece8e2; color: var(--py-muted); }
.product-flags .badge.online-only, .product-flags .badge.pack { background: var(--py-navy-2); color: #fff; }

/* ---------- Catégories ---------- */
.subcategory__link { border-color: var(--py-line); font-size: .875rem; transition: all .2s var(--py-ease); }
.subcategory__link:hover {
  border-color: var(--py-bordeaux);
  background: var(--py-bordeaux-soft);
  color: var(--py-bordeaux);
}
.left-column .block-categories a:hover,
.left-column .category-tree a:hover { color: var(--py-bordeaux); }
.pagination { --bs-pagination-active-bg: var(--py-bordeaux); --bs-pagination-active-border-color: var(--py-bordeaux); }
.pagination .page-link.active, .pagination .active > .page-link {
  background: var(--py-bordeaux);
  color: #fff;
  border-radius: 50rem;
}

/* ---------- Fiche produit ---------- */
.product__name { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.2; }
.product__price { font-size: 1.875rem; font-weight: 700; color: var(--py-bordeaux); }
.product__tax-label { color: var(--py-muted); }
.product__carousel .carousel-inner {
  border: 1px solid var(--py-line);
  border-radius: var(--bs-border-radius-lg);
  overflow: hidden;
}
.product__thumbnail-image { border-radius: var(--bs-border-radius); border: 1px solid var(--py-line); }
.product__thumbnail.active .product__thumbnail-image,
.js-thumb-selected { border-color: var(--py-bordeaux); box-shadow: 0 0 0 1px var(--py-bordeaux); }
.product__actions .btn-primary[data-button-action="add-to-cart"],
.product__add-to-cart .btn-primary {
  min-height: 3.25rem;
  border-radius: 50rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .875rem;
}
.product__right .blockreassurance,
.product__container .blockreassurance {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--py-cream);
  border-radius: var(--bs-border-radius-lg);
}
.blockreassurance .reassurance__title { font-weight: 600; color: var(--py-navy); }
.accordion {
  --bs-accordion-active-color: var(--py-navy);
  --bs-accordion-active-bg: transparent;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(128, 0, 32, .15);
}
.accordion-button { font-weight: 600; }

/* ---------- Tunnel de commande : étapes en marine et bordeaux au lieu du vert ---------- */
.checkout-steps__step--current:before,
.checkout-steps__step--success .checkout-steps__number,
.checkout-steps__step--success:after,
.checkout-steps__step--success:before { background: var(--py-bordeaux); }
.checkout-steps__step--success .checkout-steps__btn { color: var(--py-bordeaux); }
.checkout-steps__step--current .checkout-steps__number { background: var(--py-navy); }

/* ---------- Newsletter, réseaux, pied de page ---------- */
.ps-emailsubscription { background: var(--py-cream); padding-block: clamp(2rem, 4vw, 3rem); }
.ps-emailsubscription .h3 { font-family: var(--py-serif); color: var(--py-navy); font-weight: 600; }
.ps-emailsubscription .form-control { border-radius: 50rem; padding-inline: 1.25rem; background: #fff; }
.ps-emailsubscription .btn-primary { border-radius: 50rem; padding-inline: 1.75rem; }

.footer__before .ps-socialfollow a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--py-line);
  color: var(--py-navy);
  transition: all .2s var(--py-ease);
}
.footer__before .ps-socialfollow a:hover { background: var(--py-bordeaux); border-color: var(--py-bordeaux); color: #fff; }

.footer__main { background: var(--py-navy); color: rgba(255, 255, 255, .72); }
.footer__main a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.footer__main a:hover { color: #fff; }
.footer-block__title {
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.footer-block__list li { margin-bottom: .35rem; }
.footer__main .copyright {
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .8125rem;
}

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
  .section-title { margin-block-end: 1.5rem; }
  .product-miniature__inner { padding: .375rem; }
  .product-miniature__add, .product-miniature__details {
    font-size: .6875rem;
    letter-spacing: .02em;
    white-space: nowrap;
    padding-inline: .5rem;
    gap: .3rem;
  }
  .product-miniature__add .material-icons { font-size: 1rem; }
  .ps-imageslider { margin-top: .75rem; }
  .ps-customtext h2 { padding-inline: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
