/* =========================================================
   HS — Corrections labels + aides zone customisations
   ========================================================= */

#customisations .form__field{
  position: relative;
}

#customisations .form__label{
  position: static !important;
  transform: none !important;
  top: auto !important;
  left: auto !important;
  line-height: 1.2;
  margin: 0 0 6px 0;
}

#customisations .form__label.form__label--date,
#customisations .form__field--dropdown .form__label{
  position: static !important;
  transform: none !important;
}

#customisations .form__text,
#customisations .form__file,
#customisations .form__select,
#customisations textarea{
  margin-top: 0;
}

#customisations .custo-help{
  font-size: 0.96em;
  color: #888;
  margin-top: 6px;
  margin-bottom: 12px;
  line-height: 1.5;
  clear: both;
  display: block;
}

#customisations .custo-help a.hs-link{
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  color: inherit;
}


/* =========================================================
   HS — Modales (guide tailles + simulateurs)
   ========================================================= */

.hs-modal{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  overscroll-behavior: contain;
}

.hs-modal[aria-hidden="false"]{
  display: block;
}

.hs-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.70);
}

.hs-modal__panel{
  position: relative;
  width: min(900px, 92vw);
  margin: 6vh auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);

  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.hs-modal__panel--narrow{
  width: min(800px, 92vw);
}

.hs-modal__close{
  position: absolute;
  right: 16px;
  top: 10px;
  z-index: 2;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #444;
  cursor: pointer;
  line-height: 1;
}

.hs-modal__close:focus{
  outline: 2px solid rgba(29,71,71,.35);
  outline-offset: 2px;
}

.hs-modal__header{
  padding: 18px 18px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.hs-modal__title{
  margin: 0;
  font-size: 1.4rem;
  color: #1d4747;
}

.hs-modal__iframe{
  width: 100%;
  border: none;
  display: block;

  flex: 1 1 auto;
  height: auto;
  min-height: 60vh;
}

@media (max-width: 700px){
  .hs-modal__panel{
    width: 98vw;
    margin: 2vh auto;
    border-radius: 0;
    max-height: 92vh;
  }

  .hs-modal__iframe{
    min-height: 62vh;
  }
}


/* =========================================================
   HS — Mode EMBED (pages affichées DANS l’iframe modale)
   Objectif : enlever tout le “chrome” (header/menu/breadcrumb/footer),
   réassurance + logos CB + widgets chat, et ne garder que le contenu.
   ========================================================= */

/* 1) Cache header/menu/footer + barres */
html.hs-embed header,
html.hs-embed footer,
html.hs-embed #header,
html.hs-embed #footer,
html.hs-embed .wrapperHeader,
html.hs-embed .wrapperFooter,
html.hs-embed .header,
html.hs-embed .footer,
html.hs-embed .new-menu,
html.hs-embed .header_new-menu,
html.hs-embed .emergency-bar,
html.hs-embed .emergency-strip,
html.hs-embed #emergency-strip{
  display: none !important;
}

/* 2) Fil d’Ariane */
html.hs-embed .breadcrumbs,
html.hs-embed .breadcrumb,
html.hs-embed nav.breadcrumbs{
  display: none !important;
}

/* 3) Réassurance + logos CB */
html.hs-embed .rea,
html.hs-embed .w-cb-logos{
  display: none !important;
}

/* 4) Bouton sidebar des pages libres (confirmé dans page.html.twig) */
html.hs-embed .wrapperPage--options,
html.hs-embed .list-top__sidebar{
  display: none !important;
}

/* 5) Sidebar (pages libres) */
html.hs-embed .wrapperPage__left{
  display: none !important;
}

/* 6) Widgets / chat / overlays */
html.hs-embed #tiledesk-container,
html.hs-embed #tiledesk-launcher,
html.hs-embed #loom-companion-mv3,
html.hs-embed #chat-root{
  display: none !important;
}

/* 7) Étire le contenu */
html.hs-embed body{
  margin: 0 !important;
}

html.hs-embed .wrapperPage{
  padding: 0 !important;
  margin: 0 !important;
}

html.hs-embed .wrapperPage__right{
  width: 100% !important;
  max-width: 100% !important;
  padding: 16px !important;
}

html.hs-embed .title-page{
  margin-top: 0 !important;
}

/* HS — même rendu du help dans les variations */
#variations .custo-help{
  font-size: 0.96em;
  color: #888;
  margin-top: 6px;
  margin-bottom: 12px;
  line-height: 1.5;
  clear: both;
  display: block;
}

#variations .custo-help a.hs-link{
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  color: inherit;
}
/* =========================================================
   HS — Quick bar mobile (prix + accès tailles/perso)
   ========================================================= */

#hs-quickbar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;

  background: #fff;
  border-top: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 -10px 28px rgba(0,0,0,.10);

  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: none;
}

#hs-quickbar.is-visible{ display:block; }

#hs-quickbar .hsqb{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

#hs-quickbar .hsqb__price{
  min-width: 92px;
  line-height: 1.1;
}

#hs-quickbar .hsqb__price .prod__price{
  margin: 0;
}

#hs-quickbar .hsqb__price .price-cur{
  font-size: 1.05rem;
  font-weight: 800;
}

#hs-quickbar .hsqb__actions{
  display:flex;
  align-items:center;
  gap: 8px;
  flex: 1 1 auto;
  justify-content:flex-end;
}

#hs-quickbar .hsqb__btn{
  border: 1px solid rgba(16,51,63,.25);
  background:#fff;
  color:#10333f;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  cursor:pointer;
  white-space: nowrap;
}

#hs-quickbar .hsqb__btn--primary{
  background:#10333f;
  color:#fff;
  border-color:#10333f;
}

#hs-quickbar .hsqb__btn:active{ transform: translateY(1px); }

/* effet “focus” léger quand on scroll vers la section */
.hs-jump-flash{
  outline: 2px solid rgba(16,51,63,.25);
  outline-offset: 6px;
  border-radius: 8px;
}

/* mobile only */
@media (min-width: 901px){
  #hs-quickbar{ display:none !important; }
}

@media (max-width: 900px){
  #hover-add-cart-btn,
  #hover-close-btn{
    display: none !important;
  }
}


/* =========================================================
   HS — Bloc preuve + délais (fiche produit)
   ========================================================= */
.hs-proof{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.08);
  display:block; width:100%;
}

.hs-proof__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px 16px;
}

.hs-proof__item{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95em;
  line-height: 1.35;
  color: #222;
}

.hs-proof__icon{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  color: #111;          /* noir */
  opacity: .85;         /* léger */
}

.hs-proof__text strong{
  font-weight: 700;
}

