:root{--ap5-accent:#f3a829;--ap5-accent-soft:#fffbf0;--ap5-accent-soft2:#fffef7;--ap5-accent-ind:#efc14f;--ap5-accent2:#f4c051;--ap5-accent2-soft:#fff7d6;--ap5-accent3:#ffd221;--ap5-accent4:#f7efd5;}
/* Custom Font */
@font-face {
  font-family: "ap5-mu";
  src: url("../fonts/ap5-mu.eot?seokvj");
  src:
    url("../fonts/ap5-mu.eot?seokvj#iefix") format("embedded-opentype"),
    url("../fonts/ap5-mu.ttf?seokvj") format("truetype"),
    url("../fonts/ap5-mu.woff?seokvj") format("woff"),
    url("../fonts/ap5-mu.svg?seokvj#ap5-mu") format("svg");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* Top of page */
.top-hr {
  margin-bottom: 15px;
}
.mx-auto {
  margin-right: auto !important;
  margin-left: auto !important;
}
/* /Top of page */

/* Pack content */
#ap5-product-list.ap5-on-product-page {
  margin-top: 25px;
  margin-bottom: 25px;
}

.ap5-product-list {
  background: #f7f7f7;
  border-radius: 15px;
  display: flex;
  flex-wrap: wrap;
}

#ap5-product-list.card {
  flex-flow: row wrap;
}

.ap5-on-product-page .ap5-pack-product-title a {
  color: #414141;
}

.ap5-on-product-page .ap5-pack-product-title .ap5-pack-product-remove-label,
.ap5-on-product-page .ap5-pack-product-title .ap5-pack-product-add-label {
  font-size: 10px;
  font-weight: normal;
  cursor: pointer;
}

.ap5-on-product-page .ap5-pack-product-content {
  position: inherit;
}

.ap5-on-product-page .ap5-pack-product-content .ap5-pack-product-infos {
  margin-bottom: 5px;
  padding-bottom: 5px;
  border-bottom: 1px dotted #ccc;
}

.ap5-on-product-page .ap5-pack-product-content .ap5-attributes {
  padding: 0;
}

.ap5-on-product-page .ap5-pack-product-content .label,
.ap5-on-product-page .ap5-pack-product-content .ap5-attributes label {
  font-weight: bold;
  color: inherit;
  padding: 0;
}

.ap5-on-product-page .ap5-pack-product-content .pull-left {
  float: left;
}

.ap5-on-product-page .ap5-pack-product-content .pull-right {
  float: right;
}

.ap5-on-product-page .ap5-pack-product-content .attribute_label {
  padding: 0;
  margin: 0 0 10px 0;
  font-weight: bold;
}

.ap5-on-product-page .ap5-pack-product-content .ap5-attribute-list {
  display: block !important;
  padding-right: 0 !important;
}

.ap5-on-product-page .ap5-pack-product-content .ap5-attribute-list li {
  float: left;
  clear: none !important;
  margin-right: 10px;
}

/* Product block */
.ap5-pack-product {
  padding: 15px;
}
.ap5-on-product-page .ap5-pack-product {
  padding: 5px 0px;
}

.ap5-pack-product-content-card {
  display: flex;
  flex-direction: row;
  width: auto;
  gap: 0.2rem;
  align-items: center;
  height: fit-content;
}

.ap5-pack-product.ap5-no-attributes hr:last-child {
  margin-bottom: 0px;
  border: none;
}

/* Product Quantity Ribbon */
.ap5-pack-product-content .ribbon-wrapper {
  width: 85px;
  height: 88px;
  overflow: hidden;
  position: absolute;
  top: -3px;
  right: -3px;
  z-index: 50;
}
.ap5-pack-product-content .ribbon {
  font-weight: bold;
  text-align: center;
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  position: relative;
  padding: 7px 0;
  left: -5px;
  top: 15px;
  width: 120px;
  -webkit-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);
  -moz-box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);
  box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.3);
}
.ap5-pack-product-content .ribbon:before,
.ap5-pack-product-content .ribbon:after {
  content: "";
  border-top: 3px solid transparent;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  position: absolute;
  bottom: -3px;
}
.ap5-pack-product-content .ribbon:before {
  left: 0;
}
.ap5-pack-product-content .ribbon:after {
  right: 0;
}
/* /Product Quantity Ribbon */

/* Product Title Content */
.ap5-pack-product-content {
  padding: 0px 0px 0px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  position: relative;
}
.ap5-pack-product-name.title-left {
  padding: 10px 80px 10px 10px;
}
.ap5-pack-product-name.title-center {
  padding: 10px 10px 10px 10px;
  text-align: center;
}
.ap5-pack-product-name {
  font-size: inherit;
  margin: initial;
  padding: initial;
  font-weight: initial;
  line-height: initial;
}
.ap5-pack-product-name a {
  color: #414141;
}
/* /Product Title */

.ap5-price-total {
  font-size: 16px;
}
.ap5-price-total-ttc {
  font-size: 11px;
}

.ap5-has-discount {
  display: flex;
  flex-direction: column;
}

.ap5-pack-product-reduction-value {
  background: #fff;
  border-color: var(--ap5-accent3);
  border-radius: 5px;
  font-size: 14px;
  border-width: 2px;
  border-style: solid;
  padding: 0.25rem 1rem;
  align-self: end;
}

.ap5-pack-product-reduction-value-else {
  background: #fff;
  border-color: var(--ap5-accent3);
  border-radius: 5px;
  font-size: 14px;
  border-width: 2px;
  border-style: solid;
  padding: 0.25rem 1rem;
  position: absolute;
  top: 0;
  right: 0;
}

.ap5-discount-percentage {
  display: flex !important;
  flex-direction: row;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2px;
}

.ap5-regular-price {
  text-decoration: line-through;
  font-size: 0.9rem;
}

.ap5-regular-price-option {
  font-size: 0.85rem;
  display: inline-block;
  color: var(--color-grey) !important;
  font-weight: bold;
  width: 100%;
  text-decoration: line-through;
  text-align: center;
}

/* Product Image */
.ap5-pack-product-image-card {
  position: relative;
}

.img-product-pack-card {
  border-radius: 1.2rem;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14);
  border: 1px solid #f5f5f5;
  width: 120px;
  height: 120px;
  aspect-ratio: auto 120 / 120;
}
/* /Product Image */

/* Product Thumbnails */
.ap5-pack-product-slideshow {
  margin: 0 auto;
  overflow: hidden;
}
.ap5-pack-product-slideshow.pm-ap-owl-carousel div.ap5-pack-product-thumbnail {
  float: none;
}
.ap5-pack-product-slideshow.pm-ap-owl-carousel .pm-ap-owl-stage {
  margin: 0 auto;
}
/* /Product Thumbnails */

/* Remove Icon */
.ap5-pack-product .ap5-pack-product-icon-remove:after,
.ap5-is-mobile .ap5-pack-product .ap5-pack-product-icon-remove:after {
  color: black;
  content: "\e834";
  font-family: "Material Icons", "ap5-mu";
  font-size: 23px;
  position: absolute;
  top: 10px;
  right: -5px;
  cursor: pointer;
  z-index: 60;
}
.ap5-pack-product .ap5-pack-product-icon-remove:after {
  opacity: 0.5;
}
.ap5-pack-product:hover .ap5-pack-product-icon-remove:after,
.ap5-is-mobile .ap5-pack-product .ap5-pack-product-icon-remove:after {
  opacity: 1;
}
.ap5-is-mobile .ap5-pack-product .ap5-pack-product-icon-remove:after {
  top: -13px;
  right: -13px;
  padding: 20px;
}
.ap5-on-product-page .ap5-pack-product .ap5-pack-product-icon-remove:after {
  color: black;
  content: "\e834";
  font-family: "Material Icons", "ap5-mu";
  cursor: pointer;
  position: inherit;
  top: inherit;
  right: inherit;
  font-size: inherit;
}
/* Remove Icon */

/* Check Icon */
.ap5-is-excluded-product .ap5-pack-product-icon-check:after {
  color: black;
  content: "\e835";
  font-family: "Material Icons", "ap5-mu";
  font-size: 23px;
  position: absolute;
  top: 10px;
  right: -5px;
  cursor: pointer;
  z-index: 60;
}
.ap5-on-product-page
  .ap5-is-excluded-product
  .ap5-pack-product-icon-check:after {
  color: black;
  content: "\e835";
  font-family: "Material Icons", "ap5-mu";
  position: inherit;
  top: inherit;
  right: inherit;
  font-size: inherit;
  cursor: pointer;
}
/* Check Icon */

/* Icons */
.ap5-pack-product-icon-remove,
.ap5-pack-product-icon-check {
  cursor: pointer;
}
/* Icons */

/* Product Prices */
.ap5-pack-product-price-table-container {
  display: table;
  width: 100%;
}
.ap5-pack-product-price-table-container.ap5-no-reduction p {
  margin-bottom: 0;
}
.ap5-pack-product-price-table-container .ap5-pack-product-price-table-cell {
  display: table-cell;
  vertical-align: middle;
}
.ap5-pack-product-price-table-container .ap5-pack-product-price-table-cell div {
  margin-bottom: 0;
}
.ap5-old-price-container .ap5-pack-product-original-price {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.ap5-old-price-container .ap5-pack-product-reduction-container {
  margin-bottom: 0 !important;
}
p#reduction_amount.ap5-pack-product-amount-container {
  margin-bottom: 0 !important;
}
/* /Product Prices */

/* Product Availability */
.ap5-availability-statut {
  text-align: center;
  display: block;
}
.ap5-availability-statut #product-availability {
  margin-left: 0;
}
/* /Product Availability */

/* Product Quantity */
fieldset.ap5-quantity-fieldset {
  padding: 5px;
}
div.ap5-quantity-input-container {
  width: 80px;
}
div.ap5-quantity-input-container input.ap5-quantity-wanted {
  background: #ffffff;
  color: #414141;
  height: 2.5rem;
  padding: 0.175rem 0.5rem;
  width: 3.3rem;
}

/* Product Attributes */
.ap5-attributes fieldset label {
  margin-top: 4px;
}
.ap5-attributes fieldset.ap5-attribute-fieldset {
  padding: 5px 0;
}
.ap5-attributes fieldset.ap5-attribute-fieldset .ap5-attribute-list {
  padding-right: 5px;
}
.ap5-attributes ul.ap5-color-to-pick-list li.selected a {
  border: 2px solid #414141;
}
.ap5-attributes ul.ap5-color-to-pick-list a.ap5-color.disabled,
.ap5-attributes .ap5-attribute-select[disabled] {
  cursor: not-allowed;
}
.ap5-attributes ul.ap5-color-to-pick-list a.ap5-color img {
  vertical-align: top;
  width: 100%;
  max-width: 100%;
}

/* /Buy Button Block */
.ap5-pack-page
  .ap5-add-to-cart-container
  .product-add-to-cart
  .product-quantity {
  display: block;
}
.ap5-pack-page .ap5-add-to-cart-container .add {
  margin: 0;
}
.ap5-pack-page .ap5-buy-block-with-errors.ap5-is-mobile {
  padding: 20px;
}

/* Pack Content Block */
#ap5-pack-content-block .tabs {
  margin-top: unset;
  padding: unset;
}

/* Pack Download Block */
#ap5-pack-download-block .attachment {
  margin-top: 15px;
}

/* Tabs */
#ap5-pack-product-tab-list {
  border: 0;
  margin: 0 20px;
}
#ap5-pack-product-tab-list > li {
  margin: 0;
  padding: 0;
  text-align: center;
  min-height: 100%;
}
#ap5-pack-product-tab-list > li > a {
  margin-right: 0;
  text-decoration: none;
  border-color: #d6d4d4;
  outline: none;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* Tab Contents */
#ap5-pack-product-tabs-content {
  margin: 0 20px;
  padding-top: 20px;
  border: 1px #d6d4d4 solid;
  border-top: 0;
}
#ap5-pack-product-tabs-content > .tab-pane > div {
  margin-bottom: 20px;
}
#ap5-pack-product-tabs-content > .tab-pane > div > .rte {
  padding: 0;
}

/* Features table */
#ap5-pack-product-tabs-content > .tab-pane > div > section.page-product-box {
  padding-bottom: 0;
  border-bottom: 0;
}
#ap5-pack-product-tabs-content
  > .tab-pane
  > div
  > section.page-product-box
  > h3.page-product-heading {
  margin-bottom: 0;
}
#ap5-pack-product-tabs-content
  > .tab-pane
  > div
  > section.page-product-box
  > .table-data-sheet {
  margin-bottom: 0;
}
/* /Features table */

/* Google Rich Snippets & Reviews */
#ap5-pack-product-tabs-content div.ap5-gsnippetsreviews-reviews-container {
  clear: both;
}
#ap5-pack-product-tabs-content #gsr .pagination,
#ap5-pack-product-tabs-content #gsr div.gsr_social_buttons,
#ap5-pack-product-tabs-content #gsr .gsr_report_button,
#ap5-pack-product-tabs-content a[id^="reportReview"] {
  display: none !important;
}
#ap5-pack-product-tab-list #gsr-review-list,
#ap5-pack-product-tab-list #gsr-review-list > div {
  float: none !important;
}
/* /Google Rich Snippets & Reviews */

/* Product customization */
#ap5-pack-product-tabs-content .ap5-product-customization-container {
  clear: both;
}
#ap5-pack-product-tabs-content .customizationUploadLine textarea {
  width: 100%;
}
/* /Product customization */

/* /Tab Contents */
/* /Pack Content Block */

/* Alert and error cases */
.ap5-product-pack-row-has-errors
  > .ap5-pack-product-content
  > *:not(.ap5-pack-product-icon-check):not(.ap5-pack-product-icon-plus),
.ap5-product-pack-row-has-fatal-errors
  > .ap5-pack-product-content
  > *:not(.ap5-pack-product-icon-check):not(.ap5-pack-product-icon-plus) {
  filter: blur(1px);
  -webkit-filter: blur(1px);
  -moz-filter: blur(1px);
  -o-filter: blur(1px);
  -ms-filter: blur(1px);
  filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius='1');
}
.ap5-on-product-page
  .ap5-product-pack-row-has-errors
  > .ap5-pack-product-content
  > *:not(.ap5-pack-product-icon-check):not(.ap5-pack-product-icon-plus) {
  filter: inherit;
  -webkit-filter: inherit;
  -moz-filter: inherit;
  -o-filter: inherit;
  -ms-filter: inherit;
  filter: inherit;
}
.ap5-is-excluded-product
  .ap5-pack-product-content
  > *:not(.ap5-pack-product-icon-check):not(.ap5-pack-product-title) {
  opacity: 0.2;
}
.ap5-product-pack-row-has-errors div.alert,
.ap5-product-pack-row-has-errors div.ap5-attributes,
.ap5-product-pack-row-has-errors div.product-actions,
.ap5-product-pack-row-has-errors fieldset.ap5-quantity-fieldset,
.ap5-product-pack-row-has-fatal-errors div.alert,
.ap5-product-pack-row-has-errors hr,
.ap5-product-pack-row-has-fatal-errors hr {
  filter: none !important;
  -webkit-filter: none !important;
  -moz-filter: none !important;
  -o-filter: none !important;
  -ms-filter: none !important;
}
.ap5-product-pack-row-has-errors div.alert,
.ap5-product-pack-row-has-fatal-errors div.alert {
  text-align: center;
  margin-bottom: 0;
  /*box-shadow*/
  -webkit-box-shadow: 0px 0px 3px 0px #656565;
  -moz-box-shadow: 0px 0px 3px 0px #656565;
  box-shadow: 0px 0px 3px 0px #656565;
  /*border-radius*/
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
}
@-webkit-keyframes pulse {
  0% {
    background: rgba(255, 109, 36, 0);
  }
  100% {
    background: rgba(255, 109, 36, 0.3);
  }
}
@-moz-keyframes pulse {
  0% {
    background: rgba(255, 109, 36, 0);
  }
  100% {
    background: rgba(255, 109, 36, 0.3);
  }
}
@-o-keyframes pulse {
  0% {
    background: rgba(255, 109, 36, 0);
  }
  100% {
    background: rgba(255, 109, 36, 0.3);
  }
}
@keyframes pulse {
  0% {
    background: rgba(255, 109, 36, 0);
  }
  100% {
    background: rgba(255, 109, 36, 0.3);
  }
}

@-webkit-keyframes oosmsg {
  0% {
    opacity: 0;
    bottom: 55%;
  }
  100% {
    opacity: 1;
    bottom: 20%;
  }
}
@-moz-keyframes oosmsg {
  0% {
    opacity: 0;
    bottom: 55%;
  }
  100% {
    opacity: 1;
    bottom: 20%;
  }
}
@-o-keyframes oosmsg {
  0% {
    opacity: 0;
    bottom: 55%;
  }
  100% {
    opacity: 1;
    bottom: 20%;
  }
}
@keyframes oosmsg {
  0% {
    opacity: 0;
    bottom: 55%;
  }
  100% {
    opacity: 1;
    bottom: 20%;
  }
}
.ap5-product-pack-row-has-errors div.ap5-attributes,
.ap5-product-pack-row-has-errors fieldset.ap5-quantity-fieldset {
  /*border-radius*/
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  /*animation-name*/
  -webkit-animation-name: pulse;
  -moz-animation-name: pulse;
  -ms-animation-name: pulse;
  -o-animation-name: pulse;
  animation-name: pulse;
  /*animation-duration*/
  -webkit-animation-duration: 0.8s;
  -moz-animation-duration: 0.8s;
  -ms-animation-duration: 0.8s;
  -o-animation-duration: 0.8s;
  animation-duration: 0.8s;
  /*animation-iteration-count*/
  -webkit-animation-iteration-count: 8;
  -moz-animation-iteration-count: 8;
  -ms-animation-iteration-count: 8;
  -o-animation-iteration-count: 8;
  animation-iteration-count: 8;
  /*animation-direction*/
  -webkit-animation-direction: alternate;
  -moz-animation-direction: alternate;
  -ms-animation-direction: alternate;
  -o-animation-direction: alternate;
  animation-direction: alternate;
  /*animation-timing-function*/
  -webkit-animation-timing-function: ease-in-out;
  -moz-animation-timing-function: ease-in-out;
  -ms-animation-timing-function: ease-in-out;
  -o-animation-timing-function: ease-in-out;
  animation-timing-function: ease-in-out;
}
.ap5-product-pack-row-has-errors div.alert ol,
.ap5-product-pack-row-has-fatal-errors div.alert ol {
  padding: 0;
  margin: 0;
  font-weight: bold;
}
.ap5-product-pack-row-has-errors div.alert ol li,
.ap5-product-pack-row-has-fatal-errors div.alert ol li {
  list-style-type: none;
}
.ap5-pack-product .ap5-overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
}

#ap5-buy-container p.ap5-pack-unavailable,
#ap5-buy-container p.ap5-combination-unavailable {
  padding: 10px;
  margin: 0;
  font-weight: bold;
}
#ap5-buy-container p.ap5-combination-unavailable span a {
  color: inherit;
  outline: none;
}
/* /Container special styles */

/* Spinner */
.ap5-loader-blur {
  filter: blur(1px);
  -webkit-filter: blur(1px);
  -moz-filter: blur(1px);
  -o-filter: blur(1px);
  -ms-filter: blur(1px);
  filter: progid:DXImageTransform.Microsoft.Blur(PixelRadius='1');
}
.ap5-loader:before,
.ap5-loader:after,
.ap5-loader {
  border-radius: 50%;
  width: 2.5em;
  height: 2.5em;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: ap5loader 1.8s infinite ease-in-out;
  animation: ap5loader 1.8s infinite ease-in-out;
}
.ap5-loader {
  margin-left: auto;
  margin-right: auto;
  font-size: 10px;
  position: relative;
  text-indent: -9999em;
  -webkit-animation-delay: 0.16s;
  animation-delay: 0.16s;
  opacity: 1;
}
.ap5-loader:before {
  left: -3.5em;
}
.ap5-loader:after {
  left: 3.5em;
  -webkit-animation-delay: 0.32s;
  animation-delay: 0.32s;
}
.ap5-loader:before,
.ap5-loader:after {
  content: "";
  position: absolute;
  top: 0;
}
/* /Spinner */

/* Block Associated */

.container-associated {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 16px 0px;
  height: 100%;
  background: #f7f7f7;
  border-radius: 30px;
  gap: 1rem;
}
.icon-equal {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
}

.icon-equal-content {
  font-size: 4rem;
  color: #126acc;
}

.block-price-container-associated {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: fit-content;
  align-items: center;
  padding-left: 2rem;
  margin-bottom: 52px;
}
.block-price-container {
  width: 100%;
  margin-bottom: 2rem;
  align-content: center;
}
.block-price-container .price {
  font-size: 3rem;
  font-weight: bold;
  color: black;
}

.block-price-container .taxe {
  font-size: 1rem;
}

/* Masquer la checkbox native */
.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* Créer un élément pour remplacer la checkbox */
.custom-checkbox .checkmark {
  display: inline-block;
  width: 30px; /* Largeur personnalisée */
  height: 30px; /* Hauteur personnalisée */
  background-color: #ccc; /* Couleur de fond */
  border-radius: 10px; /* Border radius personnalisé */
  border: 2px solid #000; /* Bordure */
  position: relative;
}

/* État "checked" */
.custom-checkbox input:checked + .checkmark {
  background-color: #2196f3; /* Couleur de fond quand coché */
  border-color: #2196f3;
}

/* Effet de focus */
.custom-checkbox input:focus + .checkmark {
  border-color: #2196f3 !important; /* Bordure bleue lors du focus */
}

/* Dessiner une coche à l'intérieur */
.custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 1px;
  width: 7px;
  height: 13px;
  border: solid white;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* Afficher la coche quand l'input est coché */
.custom-checkbox input:checked + .checkmark:after {
  display: block;
}

.associed-product-tab {
  display: flex;
  flex-direction: column;
  width: auto;
  gap: 0.2rem;
  height: inherit;
}

.icon-equal-accesory:after {
  content: "";
  display: inline-block;
  width: 25px; /* La largeur de l'image */
  height: 25px; /* La hauteur de l'image */
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA8klEQVR4nO2XMQ6CMBiFuUJr4oSjMcoingE2jVeAxUgTDsDigQzhDI4EepUmymhMaophs3TBtDHvS97+Hu3/0+d5AAAAAADTQbJmQTJeEsY7yrh0QYTxjmRtNTs3K6N5yriwbZjqJWhe+yMBeOmASWnQVR/AoWtDvyg4FHKzL17aALYNUoN2cdrrfwMQh6/Q/HTrzYdxch8Z4rZy1fz6eHl+TiAptQHUnh3WqBqY4chcURglYhslS22Afg7y2lerSk27O8bTh/ryRvMAAGAfgj7Af/lXFugD1OKbKEAfYHZfpTv0AYY+INEHAAAAAAC8yXgDlGcGRAtJLN0AAAAASUVORK5CYII="); /* Ton image en base64 */
  background-size: cover; /* Ajuste la taille de l'image */
  position: absolute;
  top: 100px;
  right: -33px;
}

.accessory-product {
  padding: 0px 15px;
}

.container-icon {
  font-size: 20px;
  padding: 10px 10px 0px 10px;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: inherit;
  justify-content: end;
}

.view-product-accessory {
  font-size: 0.8rem !important;
  padding: 0.3rem 1rem;
  font-weight: bold;
}
.product-list-title {
  font-size: 0.8rem;
  min-height: 40px;
}

#empty-product-comment {
  border: solid 2px;
  margin-top: 2rem;
  border-radius: 6px;
}

.col-card-ap5 {
  width: 25%;
  position: relative;
  min-height: 1px;
}

/* ====== Block CSS Panel options configurable ====== */
.product-info::before,
.product-add-to-cart::before {
  position: initial;
}

.product-add-to-cart {
  margin-top: 10px;
}

#product #main > .row > div.col-content .col-content-inside {
  padding: 2rem 2rem 0;
}

/* ====== CONTENEUR & ESPACES ====== */
.ap5 {
  display: grid;
  gap: 10px;
  margin-top: 15px;
  width: 100%;
  overflow: visible;
}

/* ====== ITEM / HEADER (bouton) ====== */
.ap5-item {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  overflow: visible;
}
.ap5-btn {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 10px 12px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  overflow: visible;
}
.ap5-ico {
  width: 50px;
  height: 50px;
  display: block;
}
.ap5-ico.--ph {
  width: 50px;
  height: 50px;
  background: #e5e7eb;
  border-radius: 6px;
}
.ap5-label {
  flex: 1;
  text-align: left;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
/* Bouton ? tooltip option */
.ap5-label {
  position: relative;
  z-index: 10;
}
.ap5-option-tooltip-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-brand, #f5a623);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  line-height: 1;
  user-select: none;
}
.ap5-option-tooltip-wrap::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: pre-wrap;
  width: max-content;
  max-width: 260px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
  z-index: 99;
}
.ap5-option-tooltip-wrap:hover::after,
.ap5-option-tooltip-wrap:focus::after {
  opacity: 1;
}
/* Faire passer l'item au premier plan quand le tooltip est visible */
.ap5-item:has(.ap5-option-tooltip-wrap:hover),
.ap5-item:has(.ap5-option-tooltip-wrap:focus) {
  z-index: 100;
  position: relative;
}
.ap5-chevron {
  transition: transform 0.2s;
  font-size: 20px;
}
.ap5-item.is-open .ap5-chevron {
  transform: rotate(90deg);
}

/* ====== PANEL (ANIMATION FLUIDE) ====== */
.ap5-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 12px;
  border-top: 1px solid transparent;
  background: #fafbfc;
  border-radius: 18px;
  transition:
    max-height 0.28s ease,
    opacity 0.28s ease,
    border-color 0.28s ease,
    padding-top 0.28s ease,
    padding-bottom 0.28s ease;
}
.ap5-item.is-open .ap5-panel {
  max-height: 1000px;
  overflow: visible;
  opacity: 1;
  padding-top: 12px;
  padding-bottom: 12px;
  border-top-color: #e5e7eb;
}

/* ====== GRID DE CARDS SÉLECTIONNABLES ====== */
.ap5-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
}

/* radio masqué mais accessible */
.ap5-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* card (label) */
.ap5-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  border: 2px solid #e6e7f3;
  border-radius: 14px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background-color 0.2s,
    transform 0.06s;
}
.ap5-card:hover {
  border-color: #cfcfea;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.ap5-card:active {
  transform: translateY(1px);
}

/* icône & libellé dans la card */
.ap5-card__icon {
  width: auto;
  max-width: 80px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
}
.ap5-card__label {
  font-weight: 600;
  font-size: 0.7rem;
}
.ap5-legend {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}

/* état sélectionné → jaune pâle + bord jaune + check */
.ap5-radio:checked + .ap5-card {
  background: var(--ap5-accent2-soft); /* jaune très pâle */
  border-color: var(--ap5-accent2); /* jaune doux */
  box-shadow: 0 0 0 2px rgba(244, 192, 81, 0.25) inset;
}
/* Pastille « ✓ » de la carte type sélectionnée retirée (demande) : la sélection
   reste indiquée par le fond jaune + la bordure ci-dessus. */

/* ====== LISTES COMPACTES (si besoin sous le panel) ====== */
.ap5-types,
.ap5-products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  width: 100%;
}
.ap5-products.has-scroll {
  max-height: 290px;
  overflow-y: scroll;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-brand, #f5a623) #f0f0f0;
}
.ap5-products.has-scroll::-webkit-scrollbar {
  width: 6px;
}
.ap5-products.has-scroll::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}
.ap5-products.has-scroll::-webkit-scrollbar-thumb {
  background: var(--color-brand, #f5a623);
  border-radius: 4px;
}

.ap5-type {
  border: 1px solid #edf0f3;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}
.ap5-type.is-off {
  opacity: 0.6;
}
.ap5-type-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ap5-type-name {
  font-weight: 600;
}
.ap5-bdg {
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  border: 1px solid #e0e8df;
  background: #eaf7ef;
  color: #1a7a3a;
}
.ap5-bdg.--off {
  background: #fff4f4;
  color: #a03a3a;
  border-color: #f3d0d0;
}
.ap5-count {
  opacity: 0.8;
  font-size: 0.85rem;
}

.ap5-product {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  align-items: center;
  border: 1px solid #e9edf2;
  border-radius: 8px;
  padding: 6px;
  background: #f7f9fb;
}
.ap5-product__img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
}
.ap5-product__name {
  font-weight: 600;
  font-size: 0.95rem;
}
.ap5-product__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: #555;
}
.ap5-chip {
  border: 1px solid #e3e6ea;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  background: #fff;
}

.ap5-empty {
  margin: 0;
  color: #666;
}

/* ====== BADGE PRODUIT (type option) ====== */
.ap5-prod-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 12px;
  font-weight: 700;
  color: #1a1a1a;
  background: var(--ap5-accent3);
  padding: 2px 10px;
  border-radius: 6px 6px 6px 0;
  position: relative;
  bottom: -10px;
  z-index: 1;
}

.ap5-prod-line--badged {
  margin-top: -10px;
}

/* ====== LISTE DES PRODUITS DU TYPE SÉLECTIONNÉ ====== */
.ap5-prods-box {
  width: 100%;
}
.ap5-prods {
  display: none;
  width: 100%;
}
.ap5-prods.is-active {
  display: block;
}

/* Ligne produit sélectionnable (compact) */
.ap5-prod-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ap5-prod {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid #e6ebf1;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background-color 0.2s;
  text-align: left;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
/* bloc infos (nom) */
.ap5-prod__info {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

/* prix à droite */
.ap5-prod__price {
  justify-self: end;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--color-brand);
  margin-right: 1.6rem;
  flex-shrink: 0;
}
.ap5-prod__img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  background: #f7f9fb;
}
.ap5-prod__name {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ap5-prod__qty {
  border-radius: 100%;
  font-weight: bold;
  height: 1.5rem;
  width: 1.5rem;
  align-items: center;
  justify-content: center;
  display: flex;
  font-size: 13px;
  color: white;
  background: var(--color-brand);
  margin-right: 10px;
}
.ap5-prod__meta {
  font-size: 0.8rem;
  color: #555;
}

.ap5-prod-radio:checked + .ap5-prod {
  background: var(--ap5-accent2-soft);
  border-color: var(--ap5-accent2);
  box-shadow: 0 0 0 2px rgba(244, 192, 81, 0.15) inset;
}
/* Pastille ✓ retirée sur TOUTES les cartes produit (demande) : la sélection reste
   montrée par le fond jaune + la bordure. */

/* Multi-select : case à cocher produit (variante liste). La variante carte hérite
   déjà de .ap5-pc-prod-radio (le checkbox porte cette classe). */
.ap5-prod-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ap5-prod-check:checked + .ap5-prod {
  background: var(--ap5-accent2-soft);
  border-color: var(--ap5-accent2);
  box-shadow: 0 0 0 2px rgba(244, 192, 81, 0.15) inset;
}
/* (pastille ✓ multi-select retirée — voir plus haut) */

/* Ligne: label à gauche / switch à droite */
.ap5-orient {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  flex-wrap: wrap;
}
.ap5-orient__label {
  font-weight: bold;
  color: black;
}

/* Le switch “pilule” à droite */
.ap5-orient__ctrl {
  margin-left: auto; /* pousse à droite */
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid #e6e7f3;
  border-radius: 999px;
  background: #fff;
  justify-content: center;
}

/* radios masqués accessibles */
.ap5-orient__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* boutons du switch */
.ap5-orient__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 2.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
  margin-bottom: 0;
}
.ap5-orient__btn:hover {
  border-color: #cfcfea;
}

/* état sélectionné (mêmes codes que tes cards AP5) */
.ap5-orient__radio:checked + .ap5-orient__btn {
  background: var(--ap5-accent2-soft);
  border-color: var(--ap5-accent2);
  box-shadow: 0 0 0 2px rgba(244, 192, 81, 0.25) inset;
}

/* mini-icônes orientation */
.ap5-orient__icon {
  display: inline-block;
  border: 2px solid #cfd6df;
}
.ap5-orient__icon.--land {
  width: 22px;
  height: 12px;
}
.ap5-orient__icon.--port {
  width: 12px;
  height: 22px;
}

/* ====== BADGE DU TYPE CHOISI DANS LE HEADER ====== */
.ap5-picked {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  font-size: 0.9rem;
  min-width: 0;
}
.ap5-item.has-choice .ap5-picked {
  display: inline-flex;
}

.ap5-picked__icon {
  width: 25px;
  height: 25px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #1a7a3a;
  color: #1a7a3a;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.ap5-picked__icon--excluded {
  color: #0e4f9a;
  padding: 0;
}
.ap5-picked__icon--excluded svg {
  width: 25px;
  height: 25px;
  display: block;
}
.ap5-picked__label {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}

.ap5-hide {
  display: none !important;
}

/* ============================================================
 * AP5 — Tooltip d'aide pour les options (info-bulle au survol)
 * ============================================================ */

/* Conteneur icône + bulle */
.ap5-info-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
}

/* Icône "i" */
.ap5-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #e6f3ff;
  font-size: 11px;
  line-height: 1;
  cursor: help;
  color: #4b5563;
}

/* Hover / focus sur l'icône elle-même */
.ap5-info:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* Focus clavier */
.ap5-info:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Bloc de la bulle */
.ap5-tooltip {
  position: absolute;
  z-index: 9999;
  top: 28px;
  left: -8px;
  min-width: 345px;
  padding: 10px 12px;
  border-radius: 10px;
  background: gray; /* fond sombre */
  color: #f9fafb;
  font-size: 0.78rem;
  line-height: 1.4;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  pointer-events: none;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease,
    visibility 0.16s ease;
}

/* Petite flèche */
.ap5-tooltip::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 12px;
  width: 10px;
  height: 10px;
  background: gray;
  transform: rotate(45deg);
}

/* Affichage AU SURVOL de la zone info (et au focus clavier) */
.ap5-info-wrap:hover .ap5-tooltip,
.ap5-info-wrap:focus-within .ap5-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Texte interne */
.ap5-info-intro {
  margin: 0 0 6px;
  font-weight: bold;
  font-size: 0.8rem;
  color: white;
}

.ap5-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.ap5-info-line {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 6px;
  row-gap: 2px;
  align-items: baseline;
  padding: 4px 6px;
  border-radius: 6px;
}

.ap5-info-text {
  font-size: 0.76rem;
  font-weight: normal;
}

#product-modal .modal-dialog {
  max-width: 1000px;
}

#product-modal .modal-content {
  padding: 0;
  width: fit-content;
  background-color: transparent;
  border: none;
  box-shadow: none;
}

#product-modal .modal-body {
  display: flex;
  flex-direction: row;
  padding: 1rem;
  gap: 1rem;
  align-items: flex-start;
}

.modal-image-left {
  flex: 1 1 75%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: white;
  border-radius: 1rem;
}

.modal-image-left img {
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  background-color: white;
  padding: 10px;
}

.modal-thumbnails-right {
  flex: 0 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  overflow-y: auto;
  padding: inherit;
}

.modal-thumbnails-right img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  background-color: white;
  padding: 4px;
  transition: transform 0.2s ease;
}

.modal-thumbnails-right img:hover {
  transform: scale(1.05);
}

.modal-thumbnails-right img.active-thumb {
  border: 2px solid #007bff;
}

.modal-body-custom {
  display: flex;
  padding: 10px;
  justify-content: center;
  align-items: center;
  width: fit-content;
}

#reco {
  border: none;
  border-radius: 0;
  background: none;
  width: 100%;
  overflow: hidden;
}

#reco .ap5-reco-head {
  padding: 12px;
  border-bottom: 1px solid #eef1f4;
  text-align: center;
  font-weight: 700;
  background: var(--ap5-accent3);
  width: fit-content;
  padding: 2px 10px;
  margin: 20px 0 5px;
  border-radius: 6px;
  color: black;
  position: relative;
}

/* petite flèche "bulle" */
#reco .ap5-reco-head::before {
  content: "";
  position: absolute;
  left: 20px;
  bottom: -8px;
  width: 0;
  height: 0;

  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--ap5-accent3);
}

.ap5-item--reco .ap5-reco-head .ap5-reco-title {
  color: black;
}

.ap5-item--reco .ap5-reco-body {
  background: #fafbfc;
  border-radius: 0 0 10px 10px;
}

.ap5-prod--reco {
  text-decoration: none;
  color: inherit;
}

.ap5-prod__ref {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-top: 2px;
}

/* Liste reco */
.ap5-products--reco {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

/* Item reco */
.ap5-reco-li {
  min-width: 0;
  width: 100%;
}

/* Input radio caché mais actif */
.ap5-prod-radio--reco {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Ligne reco */
.ap5-reco-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  cursor: pointer;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Zone gauche (image + nom) */
.ap5-reco-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.ap5-reco-img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}
.ap5-reco-img.--ph {
  background: #e5e7eb;
  display: block;
}
.ap5-reco-name {
  font-weight: 600;
  white-space: normal;
  word-break: break-word;
  min-width: 0;
  flex: 1;
  display: block;
  text-align: left;
}
.ap5-reco-qty {
  font-weight: 600;
  opacity: 0.7;
  margin-left: 4px;
}
.ap5-reco-info-text {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: #666;
  margin-top: 2px;
  white-space: normal;
}

/* Zone droite (prix + switch) */
.ap5-reco-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.ap5-reco-price {
  font-weight: 700;
}

/* Switch visuel */
.ap5-reco-switch {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  flex: 0 0 auto;
  transition: background 0.2s ease;
}
.ap5-reco-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

/* Etat sélectionné (radio checked) */
.ap5-prod-radio--reco:checked + .ap5-reco-row {
  border-color: var(--ap5-accent3);
  box-shadow: 0 0 0 2px rgba(255, 210, 33, 0.25) inset;
}
.ap5-prod-radio--reco:checked + .ap5-reco-row .ap5-reco-switch {
  background: #22c55e;
}
.ap5-prod-radio--reco:checked + .ap5-reco-row .ap5-reco-switch::after {
  transform: translateX(20px);
}

/* ====== Block CSS Panel options configurable ====== */

/* ====== Steps (toiture -> orientation) ====== */
.ap5-steps {
  margin-bottom: 10px;
}
.ap5-steps-hint {
  margin: 8px 0 0;
  color: #666;
  font-size: 0.85rem;
}

/* ====== Toiture (cards icon + label) ====== */
.ap5-roof {
  margin-top: 10px;
}
.ap5-roof__label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #666;
}

.ap5-roof-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

/* radio caché mais accessible */
.ap5-roof__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ap5-roof-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  min-height: 92px;

  background: #fff;
  border: 2px solid #e6e7f3;
  border-radius: 14px;
  cursor: pointer;

  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background-color 0.2s,
    transform 0.06s;
}

.ap5-roof-card:hover {
  border-color: #cfcfea;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.ap5-roof-card:active {
  transform: translateY(1px);
}

.ap5-roof-card__icon {
  width: 85px;
  height: 60px;
  object-fit: contain;
}

.ap5-roof-card__icon.--ph {
  background: #e5e7eb;
  border-radius: 10px;
}

.ap5-roof-card__label {
  font-weight: 600;
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.1;
}

/* état sélectionné */
.ap5-roof__radio:checked + .ap5-roof-card {
  background: var(--ap5-accent2-soft);
  border-color: var(--ap5-accent2);
  box-shadow: 0 0 0 2px rgba(244, 192, 81, 0.25) inset;
}

/* Pastille ✓ retirée (demande) : la sélection reste indiquée par le fond jaune + la bordure. */

/* ============================================================
   Étapes ajustables GÉNÉRIQUES (N étapes configurables par type)
   4 styles : cards | switch | buttons | dropdown.
   ============================================================ */
.ap5-step {
  margin-top: 10px;
}
.ap5-step__label {
  font-weight: 600;
  margin-bottom: 8px;
  color: #666;
}
/* Étape « interrupteur » : libellé + switch sur la MÊME ligne (comme l'orientation legacy). */
.ap5-step[data-step-style="switch"] {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ap5-step[data-step-style="switch"] .ap5-step__label {
  margin-bottom: 0;
}
.ap5-step[data-step-style="switch"] .ap5-step__ctrl--switch {
  margin-left: auto;
}
/* radio masqué mais accessible */
.ap5-step__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ap5-step-card__label {
  font-weight: 600;
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.1;
}

/* --- style CARDS : grille d'icônes (calqué sur .ap5-roof) --- */
.ap5-step__ctrl--cards {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.ap5-step-card--cards {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  min-height: 92px;
  background: #fff;
  border: 2px solid #e6e7f3;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s, transform 0.06s;
}
.ap5-step-card--cards:hover { border-color: #cfcfea; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03); }
.ap5-step-card--cards:active { transform: translateY(1px); }
.ap5-step-card--cards .ap5-step-card__icon { width: 85px; height: 60px; object-fit: contain; }

/* --- style BUTTONS : pilules --- */
.ap5-step__ctrl--buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ap5-step-card--buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1.1rem;
  background: #fff;
  border: 2px solid #e6e7f3;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  margin-bottom: 0;
}
.ap5-step-card--buttons:hover { border-color: #cfcfea; }
.ap5-step-card--buttons .ap5-step-card__icon { width: 22px; height: 22px; object-fit: contain; }

/* --- style SWITCH : segmenté (calqué sur .ap5-orient) --- */
.ap5-step__ctrl--switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid #e6e7f3;
  border-radius: 999px;
  background: #fff;
}
.ap5-step-card--switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 2rem;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 0;
}
.ap5-step-card--switch:hover { border-color: #cfcfea; }
.ap5-step-card--switch .ap5-step-card__icon { width: 22px; height: 22px; object-fit: contain; }

/* état sélectionné commun (cards/buttons/switch) */
.ap5-step__radio:checked + .ap5-step-card {
  background: var(--ap5-accent2-soft);
  border-color: var(--ap5-accent2);
  box-shadow: 0 0 0 2px rgba(244, 192, 81, 0.25) inset;
}
/* Pastille ✓ retirée (demande) : la sélection reste indiquée par le fond jaune + la bordure. */
/* option inatteignable (désactivée par le moteur) */
.ap5-step__radio:disabled + .ap5-step-card {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- style DROPDOWN : select (calqué sur .ap5-dd-select) --- */
.ap5-step-dd { margin-top: 4px; }
.ap5-step-dd__wrap { position: relative; display: inline-block; min-width: 220px; }
.ap5-step-dd__select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 0.55rem 2.2rem 0.55rem 0.9rem;
  background: #fff;
  border: 2px solid #e6e7f3;
  border-radius: 12px;
  font-size: 0.9rem;
  cursor: pointer;
}
.ap5-step-dd__select:focus { border-color: var(--ap5-accent); outline: none; }
.ap5-step-dd__wrap .ap5-dd-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
  color: #666;
}

/* aucun produit ne correspond à la sélection d'étapes */
.ap5-empty--filter {
  margin: 8px 0 0;
  color: #666;
  font-size: 0.9rem;
}

/* ====== Utils ====== */
.ap5-products-wrap[hidden] {
  display: none !important;
}
/* Marge entre la/les étape(s) (ex. interrupteur d'orientation) et la liste de produits. */
.ap5-products-wrap--gated {
  margin-top: 14px;
}

/* MODAL PRODUCT PACK PRINCIPAL */
#product-modal-pack .modal-dialog {
  max-width: 1000px;
}

#product-modal-pack .modal-content {
  padding: 0;
  width: fit-content;
  background-color: transparent;
  border: none;
  box-shadow: none;
}

#product-modal-pack .modal-body {
  display: flex;
  flex-direction: row;
  padding: 1rem;
  gap: 1rem;
  align-items: flex-start;
}

/* =================================================
   AP5 - CSS extras (optionnel) produit option
   ================================================ */
.ap5-extras {
  margin-top: 6px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ap5-extra-line {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.1;
  font-size: 0.85em;
  color: #555;
}

.ap5-extra-plus {
  font-weight: 700;
}

.ap5-extra-qty {
  opacity: 0.85;
  white-space: nowrap;
}

/* Sécurité si le HTML du caddie est encore dans le bouton */
button.ap5-atc .ap5-atc__cart {
  display: none;
}

/* ============================
   OVERLAY (fond grisé + centre)
   ============================ */
.ap5-atc-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999; /* au-dessus des modals bootstrap */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.ap5-atc-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ap5-atc-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.ap5-atc-overlay__panel {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  min-width: 260px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ap5-atc-overlay__text {
  font-weight: 700;
  font-size: 1rem;
}

.ap5-atc-overlay__sub {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Optionnel : bloquer le scroll quand overlay visible */
body.ap5-atc-overlay-open {
  overflow: hidden;
}

.ap5-prod {
  margin-bottom: 0;
}

.ap5-prod-line {
  display: block;
  min-width: 0;
}

.ap5-prod-extras {
  margin: 0px 15px 0 45px;
  padding: 12px 12px 0 12px;
  border: 1px solid #e1b84f;
  border-top: 0;
  background: var(--ap5-accent4);
  border-bottom: 0px;
}

.ap5-prod-extras[hidden] {
  display: none !important;
}

.ap5-prod-extras__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.ap5-prod-extras__head-left {
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.ap5-prod-extras__head-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ap5-prod-extras__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #6b5115;
}

.ap5-prod-extras__state {
  font-size: 0.8rem;
  font-weight: 600;
  color: #7a6440;
}

.ap5-prod-extras__state.is-off {
  color: #a03a3a;
}

/* Extras OBLIGATOIRES — décomposition prix (piste #1), FUSIONNÉE au bloc produit :
   « Ce produit » + chaque extension requise (avec vignette) = Total. */
/* min-max(0,1fr) : la colonne grid par défaut (auto=max-content) s'étirait à la
   largeur du texte non-wrap (.ap5-reqbill__txt) → débordement sur mobile ; on la borne
   à la largeur du conteneur pour que le nom s'ellipse et le prix reste dans la carte. */
.ap5-prod-extras--required .ap5-reqbill { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
.ap5-reqbill__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.8rem; color: #4b5563; }
.ap5-reqbill__lbl { display: flex; align-items: center; gap: 7px; flex: 1 1 auto; min-width: 0; }
.ap5-reqbill__txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap5-reqbill__img { width: 28px; height: 28px; flex: 0 0 auto; object-fit: contain; border-radius: 4px; background: transparent; border: 0; }
.ap5-reqbill__val { flex: 0 0 auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Lignes extra plus compactes que la ligne produit. Prix en BRUN (couleurs inversées avec le total). */
.ap5-reqbill__row--ex { font-size: 0.78rem; }
.ap5-reqbill__row--ex .ap5-reqbill__val { color: #6c7280; font-weight: 700; font-size: 0.9rem; }
.ap5-reqbill__op { color: #b0a279; font-weight: 700; font-size: 15px; line-height: 1; flex: 0 0 auto; }
.ap5-reqbill__badge { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; background: var(--color-brand); color: #fff; font-weight: 700; font-size: 10px; line-height: 1; border-radius: 20px; padding: 4px 5px; white-space: nowrap; }
.ap5-reqbill__row--total { margin-top: 2px; padding-top: 7px; border-top: 1px solid rgba(0, 0, 0, 0.1); font-weight: 700; color: var(--color-brand); font-size: 0.95rem; }
/* Couleurs inversées : le prix du PRODUIT (header) passe en brun, le TOTAL en bleu (le total ressort). */
.ap5-has-reqbill .ap5-prod__price,
.ap5-has-reqbill .ap5-prod__price .js-ap5-price-current,
.ap5-has-reqbill .ap5-pc-price-current { color: #6c7280; }

/* Fusion produit + décomposition = UN SEUL bloc. Blanc classique par défaut ; toute la carte
   passe en teinte sélection quand le produit est coché (comme une carte produit normale).
   La décomposition est un <label for> → cliquer dessus sélectionne aussi (sélection = toute la carte). */
.ap5-has-reqbill .ap5-prod-extras { margin: 0; }
.ap5-has-reqbill .ap5-prod,
.ap5-has-reqbill .ap5-pc-card { border-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none; }
.ap5-has-reqbill .ap5-prod-radio:checked + .ap5-prod,
.ap5-has-reqbill .ap5-pc-prod-radio:checked + .ap5-pc-card { box-shadow: none; }
.ap5-has-reqbill .ap5-prod-extras--required {
  display: block;
  background: #fff;
  border-color: #e6ebf1;
  cursor: pointer;
  /* haut réduit → colle au header ; droite alignée sur le prix produit (padding 6px + marge 1.6rem) */
  padding: 1px calc(6px + 1.6rem) 1px 6px;
}
.ap5-has-reqbill .ap5-prod-extras--required:last-child,
.ap5-has-reqbill .ap5-prod-extras--required.ap5-prod-extras--no-info { border-radius: 0 0 8px 8px; border-bottom-color: #e6ebf1; padding-bottom: 7px; }
.ap5-prod-radio:checked ~ .ap5-prod-extras--required,
.ap5-pc-prod-radio:checked ~ .ap5-prod-extras--required {
  background: var(--ap5-accent2-soft);
  border-color: var(--ap5-accent2);
}
.ap5-prod-radio:checked ~ .ap5-prod-extras--required:last-child,
.ap5-prod-radio:checked ~ .ap5-prod-extras--required.ap5-prod-extras--no-info,
.ap5-pc-prod-radio:checked ~ .ap5-prod-extras--required:last-child,
.ap5-pc-prod-radio:checked ~ .ap5-prod-extras--required.ap5-prod-extras--no-info { border-bottom-color: var(--ap5-accent2); }

.ap5-prod-extras__total {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b5115;
}

.ap5-prod-extras__list {
  display: grid;
  gap: 0;
}

.ap5-extra-line-static {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  padding: 0;
  font-size: 0.7rem;
  color: #4b5563;
}

.ap5-extra-line-static__name {
  font-weight: 600;
}

.ap5-extra-line-static__qty {
  color: var(--color-brand);
  font-weight: bold;
  font-size: 0.85rem;
}

.ap5-bundle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 22px;
  flex: 0 0 48px;
  margin-bottom: 0;
}

.ap5-extras-bundle-checkbox {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  height: 22px;
}

.ap5-bundle-switch__slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: 0.2s;
}

.ap5-bundle-switch__slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: 0.2s;
}

.ap5-extras-bundle-checkbox:checked + .ap5-bundle-switch__slider {
  background: #126acc;
}

.ap5-extras-bundle-checkbox:checked + .ap5-bundle-switch__slider::after {
  transform: translateX(20px);
}

.ap5-prod__price .js-ap5-price-current,
.ap5-reco-price .js-ap5-price-current {
  display: inline-block;
}
/* Suffixe prix unitaire « /u » : toujours sur la même ligne que le prix, discret. */
.ap5-priceu { display: inline-flex; align-items: baseline; gap: 2px; }
.ap5-price-unit {
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #8a94a6 !important;
  margin-left: 0;
  white-space: nowrap;
}

/* ============================
   LOADER (reprend vos classes)
   ============================ */
.ap5-atc-loader {
  position: relative;
  width: 120px;
  height: 64px;
  isolation: isolate;
}

/* Même positionnement que votre ancien code, mais dans l’overlay */
.ap5-atc-loader .ap5-atc__cart {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  opacity: 1;
  pointer-events: none;
}

/* Taille + rendu SVG (fixe) */
.ap5-atc-loader .ap5-atc__icon {
  width: 52px;
  height: 52px;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.12));
  transform: scaleX(-1); /* même “miroir” que votre is-busy */
  opacity: 0.9;
}

/* LIGNES DE VITESSE */
.ap5-atc-loader .ap5-atc__cart::before {
  content: "";
  position: absolute;
  right: calc(100% + -4px);
  top: 60%;
  width: 50px;
  height: 28px;
  transform: translateY(-50%);
  opacity: 1;

  background:
    linear-gradient(
        90deg,
        rgba(17, 24, 39, 0) 0%,
        rgba(17, 24, 39, 0.28) 45%,
        rgba(17, 24, 39, 0) 100%
      )
      0 4px / 100% 3px no-repeat,
    linear-gradient(
        90deg,
        rgba(17, 24, 39, 0) 0%,
        rgba(17, 24, 39, 0.22) 45%,
        rgba(17, 24, 39, 0) 100%
      )
      0 13px / 78% 3px no-repeat,
    linear-gradient(
        90deg,
        rgba(17, 24, 39, 0) 0%,
        rgba(17, 24, 39, 0.18) 45%,
        rgba(17, 24, 39, 0) 100%
      )
      0 22px / 90% 3px no-repeat;

  will-change: transform, opacity;
  animation: ap5SpeedLines 420ms linear infinite;
}

@keyframes ap5SpeedLines {
  0% {
    transform: translateY(-50%) translateX(0);
    opacity: 0.15;
  }
  30% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-50%) translateX(-18px);
    opacity: 0.15;
  }
}

/* ============ Responsive  ============ */

@media (prefers-reduced-motion: reduce) {
  .ap5-atc-overlay {
    transition: none !important;
  }
  .ap5-atc-loader .ap5-atc__cart::before {
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ap5-roof-card {
    transition: none !important;
  }
  .ap5-tooltip {
    transition: none !important;
  }
  .ap5-panel,
  .ap5-chevron,
  .ap5-card {
    transition: none !important;
  }
}

@media (max-width: 1440px) {
  .col-card-ap5 {
    width: 33%;
  }
}

@media (max-width: 1200px) {
  .col-card-ap5 {
    width: 50%;
  }

  .view-product-accessory {
    font-size: 0.8rem !important;
    padding: 0.5rem 2rem;
    margin-right: auto;
  }
  .container-icon h3 {
    max-width: 24rem;
  }
  .accessory-product {
    padding: 0rem 1rem;
    width: 100% !important;
  }
  .ap5-pack-product {
    padding: 10px;
  }
  .associed-product-tab {
    flex-direction: row;
    padding: 15px 0px;
  }
  .icon-equal {
    width: inherit;
  }
  .block-price-container-associated {
    width: 100%;
    gap: 3rem;
    padding: 1rem;
    margin-bottom: 0px;
  }
  .associed-product-pack {
    padding: 0rem 1rem;
  }
  .container-icon {
    padding: 10px 10px 10px 10px;
    justify-content: center;
  }
  .icon-equal-accesory:after {
    top: 103%;
    left: 47%;
  }
  .block-price-container {
    margin-bottom: 0rem;
    text-align: center;
    margin-top: 20px;
  }
  .product-list-title {
    min-height: 0px;
  }
}

@media (max-width: 992px) {
  .col-card-ap5 {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .ap5-pack-product {
    margin-top: 10px !important;
  }
  #ap5-pack-product-tab-list,
  #ap5-pack-product-tabs-content {
    margin: 0 10px;
  }
  .img-product-pack {
    width: 120px;
    height: 120px;
  }
  .ap5-prod-extras {
    margin: 0px 15px 0px 45px;
    margin-bottom: 0;
  }
}

@media (min-width: 768px) {
  .ap5-buy-block.ap5-fixed {
    position: fixed;
    top: 10px;
  }
}

@media (max-width: 600px) {
  .ap5-tooltip {
    left: 50%;
    transform: translate(-50%, 4px);
    max-width: min(320px, 90vw);
  }

  .ap5-tooltip::before {
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
  }

  .ap5-info-wrap:hover .ap5-tooltip,
  .ap5-info-wrap:focus-within .ap5-tooltip {
    transform: translate(-50%, 0);
  }

  .ap5-prod__price {
    margin-right: 5px;
  }

  .ap5-prod__qty {
    position: static;
    top: unset;
    right: unset;
  }
}

@media (max-width: 575px) {
  .custom-view {
    margin: auto;
  }
  .ap5-prod-extras {
    margin: 0px 8px 0px 8px;
  }
  .ap5-prod-info-text__warning {
    margin: 0px 8px 0 8px !important;
  }
  .ap5-prod-info-text__custom {
    margin: 0px 8px 0 8px !important;
  }
  .ap5-prod__qty {
    position: static;
    top: unset;
    left: unset;
    height: 1.3rem;
    width: 1.3rem;
    font-size: 11px;
    margin-right: 0;
  }
  .ap5-products {
    gap: 15px;
  }
  .ap5 {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    overflow: hidden;
  }
  .ap5-product-list {
    padding-right: 0;
    padding-left: 0;
  }
  /* En-tête d'option : titre trop à l'étroit (2 lignes) + valeur tronquée. On EMPILE
     la valeur choisie SOUS le titre : ligne 1 = icône + titre (1 ligne) + chevron ;
     ligne 2 = ✓ + valeur choisie (indentée sous le titre, ellipsis). */
  .ap5-btn {
    padding: 8px;
    flex-wrap: wrap;
    gap: 2px 10px; /* row-gap réduit (titre ↔ valeur), column-gap conservé */
  }
  .ap5-label {
    font-size: 0.8rem;
    order: 0;
  }
  .ap5-ico,
  .ap5-ico.--ph {
    width: 40px;
    height: 40px;
  }
  .ap5-chevron {
    order: 1;
    margin-left: auto;
  }
  .ap5-picked {
    order: 2;
    flex-basis: 100%;
    padding-left: 0; /* valeur de sélection collée à gauche */
    margin: 4px 0 0; /* petit écart au-dessus */
    box-sizing: border-box;
  }
  .ap5-picked__icon {
    width: 20px;
    height: 20px;
  }
  .ap5-picked__icon--excluded svg {
    width: 20px;
    height: 20px;
  }
  .ap5-picked__label {
    font-size: 0.8rem;
    font-weight: 500;
    max-width: none;
    flex: 1;
    min-width: 0;
    text-align: left;
  }
  .ap5-prod__name {
    font-weight: 500;
    font-size: 0.8rem;
  }
  .ap5-reco-price {
    font-size: 0.75rem;
  }
  /* Reco compacte sur mobile : le buy-block est étroit (~281px) → dans une seule
     ligne le nom n'a que ~84px et s'enroule sur 6-7 lignes. On passe en 2 rangées :
     image + nom + description en pleine largeur, prix + switch en dessous à droite. */
  .ap5-reco-row { flex-wrap: wrap; row-gap: 8px; }
  .ap5-reco-left { flex: 1 1 100%; }
  .ap5-reco-right { width: 100%; justify-content: flex-end; }
  /* Étapes d'option en cartes (ex. « Type de toiture ») : grille 2×2 sur mobile
     (sinon 1 seule colonne empilée, cartes énormes). Cartes confortables, label réduit. */
  .ap5-step__ctrl--cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ap5-step-card--cards { padding: 10px 8px; min-height: 0; gap: 6px; }
  .ap5-step-card--cards .ap5-step-card__icon { width: 50px; height: 42px; }
  .ap5-step-card__label { font-size: 0.78rem; line-height: 1.15; }
  .ap5-pc-card {
    padding: 8px !important;
  }
  .ap5-pc-img-wrap {
    height: auto !important;
  }
  .ap5-pc-name {
    font-size: 0.75rem !important;
  }
}

@media (max-width: 375px) {
  .ap5-picked__label {
    font-size: 0.75rem;
    max-width: none; /* valeur choisie empilée sous le titre → pleine largeur */
  }
}

/* ====== MOBILE : ap5-grid inline + cards en row ====== */
@media (max-width: 767px) {
  /* Grille des types : inline sur mobile */
  .ap5-grid {
    display: inline;
  }

  /* Card en ligne (icône à gauche, label à droite) */
  .ap5-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 8px;
    padding: 8px 10px;
    flex: 1 1 auto;
  }

  /* Icône réduite */
  .ap5-card__icon {
    max-width: 45px;
    max-height: 45px;
    flex-shrink: 0;
  }

  /* Zone produits collée à la zone types sur mobile (demande) */
  .ap5-prods-box {
    margin-top: 0;
  }

  /* Bloc scrollable : pleine largeur sur mobile (le badge qty est en flux static ici,
     plus besoin du retrait gauche). */
  .ap5-products.has-scroll {
    overflow-x: visible;
    padding-left: 0;
    padding-right: 0;
  }
  /* Extra obligatoire : retirer le grand padding droit (alignement prix desktop) →
     pleine largeur sur mobile. */
  .ap5-has-reqbill .ap5-prod-extras--required {
    padding-left: 6px;
    padding-right: 6px;
  }

  /* Badge qty : position statique sur TOUTES les cartes mobile (scrollable ou non) */
  .ap5-prod__qty {
    position: static;
    margin-right: 6px;
    flex-shrink: 0;
    align-self: center;
    top: unset;
    left: unset;
    right: unset;
  }
  /* Info row : flex pour avoir [badge][nom] sur une ligne */
  .ap5-prod__info {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
  }

  /* Orientation : le switch prend TOUTE la largeur (Portrait/Paysage à 50/50). */
  .ap5-orient__ctrl {
    flex: 1 1 100%;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }
  .ap5-orient__btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 0.4rem 0.5rem;
  }
  /* Étapes « switch » (segmentées) : même plein-largeur / répartition égale. */
  .ap5-step__ctrl--switch {
    display: flex;
    width: 100%;
    box-sizing: border-box;
  }
  .ap5-step-card--switch {
    flex: 1 1 0;
    justify-content: center;
    padding: 0.4rem 0.5rem;
  }

  /* Unification cards toiture/ajustable avec cards classiques */
  .ap5-roof-grid {
    display: inline;
  }
  .ap5-roof-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 8px;
    padding: 8px 10px;
    min-height: unset;
    justify-content: flex-start;
  }
  .ap5-roof-card__icon {
    width: 45px;
    height: 45px;
    max-width: 45px;
    max-height: 45px;
    flex-shrink: 0;
  }

  /* ── Unification product-cards.tpl → même rendu ligne que radio-cards ── */
  .ap5-pc-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .ap5-pc-card-wrap {
    height: auto;
  }
  .ap5-pc-card {
    flex-direction: row;
    align-items: center;
    min-height: unset;
    padding: 8px;
    gap: 10px;
  }
  /* Badge qty redevient en-flux, placé avant l'image (premier dans le DOM) */
  .ap5-prod__qty.ap5-pc-qty-abs {
    position: static;
    flex-shrink: 0;
    align-self: center;
    margin-right: 0;
  }
  /* Image : taille fixe comme ap5-prod__img */
  .ap5-pc-img-wrap {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
  }
  .ap5-pc-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  /* Corps : texte + prix alignés à gauche */
  .ap5-pc-body {
    flex: 1;
    min-width: 0;
    gap: 4px;
  }
  .ap5-pc-name {
    font-size: 0.85rem;
    min-height: unset;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ap5-pc-price-wrap {
    text-align: left;
    margin-top: 4px;
  }
  .ap5-pc-price-current {
    font-size: 0.95rem;
  }
  .ap5-pc-price-regular {
    font-size: 0.75rem;
  }
  /* Indicateur check (coin haut-droit) reste absolu mais redimensionné */
  .ap5-pc-indicator {
    width: 18px;
    height: 18px;
    top: 6px;
    right: 6px;
    font-size: 18px;
  }
  /* Badge ribbon/ruban : masqué en mobile row */
  .ap5-ribbon-wrapper-solar-panel,
  .ap5-pc-badge {
    display: none;
  }

  /* ── Dropdown : aligner avec radio-cards (même grid 40px 1fr auto) ── */
  .ap5-dd-prod-line .ap5-prod {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 8px;
    padding: 6px;
  }
  .ap5-dd-prod-img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 450px) {
  .ap5 {
    gap: 15px;
  }

  .ap5-info-wrap {
    position: absolute;
    top: -5px;
    left: -10px;
  }

  .ap5-tooltip {
    transform: translate(-10%, 0) !important;
    min-width: 200px;
  }

  .ap5-tooltip::before {
    left: 10%;
    transform: translateX(-50%) rotate(45deg);
  }

  .ap5-info {
    width: 20px;
    height: 20px;
  }
}

/* ==================================== */

/* ============================================================
   Bloc texte info produit configurable — AP5
   ============================================================ */

/* Texte info personnalisé (défini en back-office) */
.ap5-prod-info-text__custom {
  color: #7c4c00;
  font-size: 0.95em;
  line-height: 1.55;
  padding: 12px;
  border: 1px solid #e1b84f;
  background: var(--ap5-accent4);
  margin: 0px 15px 0 45px;
}

.ap5-prod-info-text__no-extras p {
  font-size: 0.95em;
  margin-top: 0;
  margin-bottom: 0;
}

.ap5-prod-info-text__no-extras {
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.ap5-prod-info-text__with-extras {
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.ap5-prod-info-text__with-extras p {
  font-size: 0.95em;
  margin-top: 0;
  margin-bottom: 0;
}

/* Warning par défaut quand les extras non obligatoires sont retirés */
.ap5-prod-info-text__warning {
  color: #7c4c00;
  font-size: 0.95em;
  line-height: 1.55;
  padding: 12px;
  border: 1px solid #e1b84f;
  background: var(--ap5-accent4);
  border-top: 0;
  margin: 0px 15px 0 45px;
}

.ap5-prod-info-text__warning strong,
.ap5-prod-info-text__custom strong {
  font-weight: 700;
}

/* Bloc extras qui referme la carte : soit c'est le dernier élément (produit
   sans texte info → :last-child), soit le texte info est masqué (--no-info).
   Dans les deux cas : padding bas de 12px + bordure + coins arrondis. */
.ap5-prod-extras:last-child,
.ap5-prod-extras--no-info {
  padding-bottom: 12px;
  border-bottom: 1px solid #e1b84f;
  border-radius: 0 0 12px 12px;
}

/* ============================================================
   dropdown.tpl — styles sélecteur déroulant d'option
   ============================================================ */
.ap5-dd-wrap { font-family: inherit; }

.ap5-dd-selector { margin-bottom: 14px; }

.ap5-dd-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
  max-width: 340px;
}
.ap5-dd-select {
  width: 100%;
  padding: 10px 42px 10px 14px;
  border: 2px solid #dde3ec;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  background: #fafbfc;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
}
.ap5-dd-select:focus { border-color: var(--ap5-accent); }
.ap5-dd-chevron {
  position: absolute;
  right: 12px;
  width: 18px;
  height: 18px;
  pointer-events: none;
  color: #aaa;
  flex-shrink: 0;
}

.ap5-dd-prod-line { list-style: none; min-width: 0; }
.ap5-dd-prod-line .ap5-prod {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  margin-bottom: 6px;
  background: #fafbfc;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.ap5-dd-prod-line .ap5-prod-radio:checked + .ap5-prod {
  border-color: var(--ap5-accent);
  background: var(--ap5-accent-soft);
}
.ap5-dd-prod-line .ap5-prod-radio { display: none; }
.ap5-dd-prod-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: #f0f4fa;
  flex-shrink: 0;
}
.ap5-dd-prod-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #dde3ec;
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.ap5-dd-prod-line .ap5-prod-radio:checked + .ap5-prod .ap5-dd-prod-check {
  border-color: var(--ap5-accent);
  background: var(--ap5-accent);
}
.ap5-dd-prod-check::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  display: none;
}
.ap5-dd-prod-line .ap5-prod-radio:checked + .ap5-prod .ap5-dd-prod-check::after { display: block; }

/* ============================================================
   toggle-switch.tpl — interrupteur binaire d'option
   ============================================================ */
.ap5-ts-wrap { font-family: inherit; }

.ap5-ts-toggle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
}

.ap5-ts-label {
  font-size: 14px;
  font-weight: 600;
  color: #bbb;
  transition: color .2s;
  min-width: 60px;
  text-align: center;
}
.ap5-ts-label.--active { color: #1a1a2e; }

.ap5-ts-track {
  width: 60px;
  height: 32px;
  border-radius: 16px;
  background: #dde3ec;
  position: relative;
  cursor: pointer;
  transition: background .25s;
  flex-shrink: 0;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.12);
}
.ap5-ts-track.--on { background: var(--ap5-accent); }

.ap5-ts-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 4px;
  left: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  transition: left .25s;
}
.ap5-ts-track.--on .ap5-ts-thumb { left: 32px; }

.ap5-ts-result {
  border: 2px solid #eaecf0;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s;
}
.ap5-ts-result.--on { border-color: var(--ap5-accent); }

.ap5-ts-prod-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #fff;
  min-width: 0;
}

.ap5-ts-prod-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 7px;
  background: #f0f4fa;
  flex-shrink: 0;
}
.ap5-ts-prod-img-ph {
  width: 52px;
  height: 52px;
  border-radius: 7px;
  background: #f0f4fa;
  flex-shrink: 0;
}
.ap5-ts-prod-body { flex: 1; min-width: 0; }
.ap5-ts-prod-name { font-size: 14px; font-weight: 700; color: #1a1a2e; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap5-ts-prod-ref  { font-size: 11px; color: #aaa; }
.ap5-ts-prod-none { font-size: 13px; color: #bbb; font-style: italic; }
.ap5-ts-prod-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--ap5-accent);
  flex-shrink: 0;
  text-align: right;
}
.ap5-ts-prod-price s {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #bbb;
  text-decoration: line-through;
}

.ap5-ts-empty-msg {
  font-size: 12px;
  color: #aaa;
  text-align: center;
  padding: 10px 0 4px;
}

/* ============================================================
   product-cards.tpl — cartes produit e-commerce
   ============================================================ */
.ap5-pc-wrap { font-family: inherit; }

.ap5-pc-type-bar { display:flex; align-items:center; justify-content:flex-end; margin-bottom:16px; min-height:36px; }
.ap5-pc-type-badge {
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px 6px 12px;
  border:1.5px solid #dde3ec; border-radius:20px; background:#fafbfc;
  cursor:pointer; font-size:13px; font-weight:600; color:#1a1a2e; position:relative;
  transition:border-color .15s,background .15s;
}
.ap5-pc-type-badge:hover { border-color:var(--ap5-accent); background:var(--ap5-accent-soft); }
.ap5-pc-type-badge .ap5-pc-check-ico { color:#1a8a52; font-size:16px; line-height:1; }
.ap5-pc-type-badge select { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
.ap5-pc-type-badge svg { flex-shrink:0; color:#aaa; }
.ap5-pc-type-name { max-width:160px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.ap5-pc-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media (max-width:768px) { .ap5-pc-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:480px) { .ap5-pc-grid { grid-template-columns:repeat(2,1fr); } }

.ap5-pc-card-wrap { position:relative; display:flex; height:100%; }
.ap5-pc-prod-radio { display:none; }

/* ── Produit indisponible (remplacé, non disponible à la vente) ─────── */
.ap5-prod-unavailable {
  opacity: 0.42;
  cursor: not-allowed;
}
.ap5-prod-unavailable label,
.ap5-prod-unavailable .ap5-prod,
.ap5-prod-unavailable .ap5-pc-card,
.ap5-prod-unavailable .ap5-ts-prod-item {
  cursor: not-allowed;
  pointer-events: none;
}

.ap5-pc-card {
  position:relative; display:flex; flex-direction:column;
  height:100%; min-height:320px;
  padding:18px 18px 16px;
  background:#fff;
  border:1px solid #dfe3ea; border-radius:14px;
  cursor:pointer;
  transition:border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .2s ease;
}
.ap5-pc-card:hover {
  border-color:#c9d5e4;
  box-shadow:0 6px 20px rgba(19,34,68,.09);
}
.ap5-pc-prod-radio:checked + .ap5-pc-card {
  border-color:var(--ap5-accent-ind);
  box-shadow:inset 0 0 0 1px rgba(239,193,79,.35);
}

.ap5-pc-qty-abs {
  position:absolute; top:10px; left:10px; z-index:2;
  margin-right:0;
}
.ap5-pc-indicator {
  position:absolute; top:12px; right:12px; z-index:2;
  width:24px; height:24px; border-radius:50%;
  display:none; align-items:center; justify-content:center;
  background:var(--ap5-accent-soft2); border:2px solid var(--ap5-accent-ind);
  color:#2aa84a; font-size:27px; font-weight:700; line-height:1;
  box-sizing:border-box;
}
/* Indicateur ✓ des cartes panneau retiré (demande) — sélection = bordure jaune. */
.ap5-pc-prod-radio:checked + .ap5-pc-card .ap5-pc-indicator {
  display:none;
}

.ap5-pc-img-wrap {
  position:relative; width:100%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  height:200px; overflow:hidden;
}
.ap5-pc-img {
  width:auto; max-width:100%; height:170px;
  object-fit:contain;
}
.ap5-pc-img-ph { width:100%; height:170px; background:#eef2f7; }

/* Ruban info_text (commun à tous les templates) */
.ap5-ribbon-wrapper-solar-panel {
  position: absolute;
  top: 45px;
  left: -6px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px 0 12px;
  background: #136acd;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .2px;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
  transform-origin: left center;
}
.ap5-ribbon-wrapper-solar-panel::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 0;
  border-top: 4px solid #0d4f9b;
  border-left: 6px solid transparent;
}
.ribbon-solar-panel {
  display: block;
  position: relative;
}


.ap5-pc-badge {
  position:absolute; top:10px; left:0; z-index:4;
  background:#136acd; color:#fff;
  font-size:11px; font-weight:700;
  padding:4px 12px 4px 10px;
  border-radius:0 20px 20px 0;
  text-transform:uppercase; letter-spacing:.4px; line-height:1.4;
  box-shadow:0 2px 8px rgba(0,0,0,.18);
  white-space:nowrap;
}
.ap5-pc-badge::after {
  content:'';
  position:absolute; left:0; bottom:-4px;
  border-top:4px solid #0d4f9b;
  border-left:4px solid transparent;
}

.ap5-pc-body {
  display:flex; flex-direction:column; flex:1; gap:10px;
}

.ap5-pc-name {
  font-size:14px; font-weight:700; color:#1a1a2e;
  line-height:1.35; text-align:left; flex:1;
  min-height:calc(1.35em * 3);
}

.ap5-pc-price-wrap { text-align:center; margin-top:auto; }
.ap5-pc-price-current {
  display:block; font-size:17px; font-weight:800; color:#1d67d8;
  letter-spacing:-.2px;
}
.ap5-pc-price-regular {
  display:block; font-size:12px; font-weight:400;
  color:#9aa3b2; text-decoration:line-through; margin-top:4px;
}

/* ── Mobile étroit (2 colonnes serrées) : compacter les vignettes de choix produit
   et tronquer PROPREMENT le nom sur 2 lignes (il était coupé à mi-ligne à cause du
   min-height 3 lignes du bloc de base + line-clamp neutralisé). Placé APRÈS les règles
   de base pour gagner l'ordre de cascade sans !important. ── */
@media (max-width: 575px) {
  .ap5-pc-card { min-height: 0; padding: 10px 10px 12px; }
  .ap5-pc-img-wrap { height: 120px; }
  .ap5-pc-img { height: 104px; }
  .ap5-pc-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    /* Hauteur max = 3 lignes EXACTES (line-height 1.35) → coupe NETTE à 3 lignes
       même si le device n'applique pas -webkit-line-clamp (pas de coupe mi-ligne). */
    max-height: calc(1.35em * 3);
  }
}

/* Classe utilitaire modal (remplace inline style="width:fit-content") */
.ap5-modal-fit-content { width: fit-content; }
