/* Moncaer — largeurs de contenu — 22 octobre 2026 */
body:not(.page-index) #wrapper > .container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3vw, 32px) !important;
  padding-right: clamp(16px, 3vw, 32px) !important;
}
body:not(.page-index) #wrapper > .container:not(.breadcrumb-bottom) {
  padding-top: clamp(32px, 5vw, 72px) !important;
  padding-bottom: 64px !important;
}
body.page-cms #wrapper > .container:not(.breadcrumb-bottom) {
  max-width: 1000px;
  padding: 0 10px !important;
}
body.page-contact #wrapper > .container:not(.breadcrumb-bottom),
body.page-authentication #wrapper > .container:not(.breadcrumb-bottom) {
  max-width: 1100px;
}
/* Lecture des pages de contenu CMS */
body.page-cms #wrapper { background: #fafaf9; }
body.page-cms #content.page-cms {
  box-sizing: border-box;
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) clamp(14px, 3vw, 32px) clamp(56px, 7vw, 96px);
  color: #484844;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.85;
  overflow-wrap: break-word;
}
body.page-cms #content.page-cms h1 {
  margin: 0 0 28px;
  color: #252523;
  font-size: clamp(30px, 3.4vw, 46px) !important;
  font-weight: 700;
  line-height: 1.18 !important;
  letter-spacing: -0.035em;
  text-transform: none;
}
body.page-cms #content.page-cms p { margin: 0 0 22px; line-height: inherit; color: inherit; }
body.page-cms #content.page-cms h1 + p {
  color: #383835;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.75;
  margin-bottom: 24px;
}
body.page-cms #content.page-cms h2 {
  margin: 44px 0 20px;
  padding-top: 36px;
  border-top: 1px solid #deded9;
  color: #252523;
  font-size: clamp(23px, 2.1vw, 28px) !important;
  font-weight: 600;
  line-height: 1.35 !important;
  letter-spacing: -0.025em;
  text-transform: none;
}
body.page-cms #content.page-cms a {
  color: #252523;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
body.page-cms #content.page-cms a:hover { color: #57574f; }
body.page-cms #content.page-cms a:focus-visible { outline: 2px solid #252523; outline-offset: 4px; }
body.page-cms #content.page-cms p:last-child { margin-bottom: 0; }
@media (max-width: 575px) {
  body.page-cms #content.page-cms { font-size: 16px; line-height: 1.8; }
  body.page-cms #content.page-cms h1 { margin-bottom: 24px; }
  body.page-cms #content.page-cms h2 { margin-top: 32px; padding-top: 28px; }
}

body.page-cms #content.page-cms img { max-width: 100%; height: auto; }

/* Titres des cartes lisibles, y compris dans la grille mobile à deux colonnes. */
body:not(.page-index) #js-product-list .product-title,
body:not(.page-index) #js-product-list .product-title .product-link {
  font-size: 18px !important;
  line-height: 1.45 !important;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}
@media (max-width: 575px) {
  body:not(.page-index) #js-product-list .product-title,
  body:not(.page-index) #js-product-list .product-title .product-link {
    font-size: 15px !important;
    line-height: 1.4 !important;
  }
}

/* Moncaer — proportions des fiches produits — 22 octobre 2026.
   À charger après les règles de largeur/espacement générales hors accueil.
   Les sélecteurs visent la fiche principale, jamais les aperçus ou la modale. */
body#product.page-product #wrapper > .container:not(.breadcrumb-bottom) {
  max-width: 1320px;
}

body#product.page-product #content-wrapper,
body#product.page-product #main,
body#product.page-product #main > .product-detail,
body#product.page-product #main > .product-detail > .pb-left-column,
body#product.page-product #main > .product-detail > .pb-right-column {
  min-width: 0;
}

body#product.page-product #main > .product-detail {
  align-items: flex-start;
  margin-left: 0;
  margin-right: 0;
}

body#product.page-product #main > .product-detail > .pb-left-column {
  padding-left: 0;
  padding-right: 0;
}

body#product.page-product #main > .product-detail > .pb-right-column {
  box-sizing: border-box;
  align-self: flex-start;
  height: auto;
  min-height: 0;
  padding: 36px;
  background: #fff;
  border-radius: 20px;
}

body#product.page-product #main > .product-detail > .pb-right-column .product-name {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: clamp(23px, 2vw, 28px);
  line-height: 1.3;
  overflow-wrap: break-word;
}

body#product.page-product #main > .product-detail > .pb-left-column .pd-left-content,
body#product.page-product #main > .product-detail > .pb-left-column #content,
body#product.page-product #main > .product-detail > .pb-left-column .images-container,
body#product.page-product #main > .product-detail > .pb-left-column .product-cover {
  min-width: 0;
  max-width: 100%;
}

body#product.page-product #main > .product-detail > .pb-left-column .images-container > .product-cover > img {
  display: block;
  width: 100%;
  height: clamp(460px, 43vw, 640px);
  max-width: 100%;
  object-fit: contain;
}

body#product.page-product #main > .product-detail > .pb-right-column .product-quantity {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

body#product.page-product #main > .product-detail > .pb-right-column .product-quantity > .qty {
  flex: 0 0 96px;
  max-width: 100%;
  margin: 0;
}

body#product.page-product #main > .product-detail > .pb-right-column .product-quantity > .add {
  flex: 1 1 190px;
  min-width: 0;
  margin: 0;
}

body#product.page-product #main > .product-detail > .pb-right-column .product-quantity .add-to-cart {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  height: auto;
  padding-left: 12px;
  padding-right: 12px;
  white-space: normal;
}

body#product.page-product #main > .product-detail > .pb-right-column .product-variants select,
body#product.page-product #main > .product-detail > .pb-right-column .guaranteed img {
  max-width: 100%;
}

@media (min-width: 992px) {
  /* 53 % galerie / 47 % achat, hors espace entre les colonnes. */
  body#product.page-product #main > .product-detail:has(> .pb-left-column:first-child):has(> .pb-right-column:nth-child(2):last-child) {
    display: grid;
    grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
    gap: 32px;
  }

  body#product.page-product #main > .product-detail:has(> .pb-left-column:first-child):has(> .pb-right-column:nth-child(2):last-child) > .pb-left-column,
  body#product.page-product #main > .product-detail:has(> .pb-left-column:first-child):has(> .pb-right-column:nth-child(2):last-child) > .pb-right-column {
    width: 100%;
    max-width: 100%;
    flex-basis: auto;
  }
}

@media (max-width: 991px) {
  /* Une seule colonne évite de comprimer les variantes et l'achat à 768 px. */
  body#product.page-product #main > .product-detail {
    row-gap: 28px;
  }

  body#product.page-product #main > .product-detail > .pb-left-column,
  body#product.page-product #main > .product-detail > .pb-right-column {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  body#product.page-product #main > .product-detail > .pb-left-column .images-container > .product-cover > img {
    height: clamp(360px, 66vw, 560px);
  }

  body#product.page-product #main > .product-detail > .pb-right-column {
    padding: 32px;
  }
}

@media (max-width: 575px) {
  body#product.page-product #main > .product-detail {
    row-gap: 24px;
  }

  body#product.page-product #main > .product-detail > .pb-right-column {
    padding: 24px 20px;
    border-radius: 16px;
  }

  body#product.page-product #main > .product-detail > .pb-right-column .product-name {
    font-size: 22px;
    line-height: 1.35;
  }

  body#product.page-product #main > .product-detail > .pb-left-column .images-mobile .image-mobile-carousel img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: clamp(270px, 86vw, 430px);
    object-fit: contain;
  }
}

/* Les descriptions longues gardent une largeur confortable pour la lecture. */
body#product.page-product #main > .new_tabs {
  width: 100%;
  max-width: 960px;
  margin: 48px auto 0;
}
body#product.page-product #main > .new_tabs #description {
  color: #484844;
  font-size: 17px;
  line-height: 1.8;
}
body#product.page-product #main > .new_tabs #description p,
body#product.page-product #main > .new_tabs #description ul,
body#product.page-product #main > .new_tabs #description ol {
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}
body#product.page-product #main > .new_tabs #description img {
  max-width: 100%;
  height: auto;
}
