.lb-pt {
  --lb-text: #1a1a1a;
  --lb-bg: #fff;
  --lb-gap: clamp(4px, 0.35cqw, 10px);
  --lb-h: 26cqw;
  --lb-h-open: 30cqw;
  width: 100%;
  margin: 0 auto;
  container-type: inline-size;
  container-name: lbpt;
  color: var(--lb-text);
  background: var(--lb-bg);
  font-family: inherit;
}

.lb-pt *,
.lb-pt *::before,
.lb-pt *::after {
  box-sizing: border-box;
}

.lb-pt img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lb-pt__mobile {
  display: none;
}

.lb-pt__hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.lb-pt__hero-img {
  height: min(62.5cqw, 100vh);
  min-height: 420px;
  overflow: hidden;
}

.lb-pt__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(180px, 19cqw, 460px);
}

.lb-pt__logo img {
  height: auto;
  object-fit: contain;
}

.lb-pt__intro {
  max-width: clamp(560px, 46cqw, 1000px);
  margin: 0 auto;
  /* pas de padding bas : la réserve d'ouverture des produits (lb-h-open - lb-h)
     sert d'espace entre le texte et les visuels, symétrique au padding haut */
  padding: clamp(40px, 4cqw, 110px) 20px 0;
  text-align: center;
}

.lb-pt__title {
  margin: 0 0 clamp(18px, 1.7cqw, 40px);
  font-size: clamp(18px, 1.3cqw, 32px);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lb-pt__text {
  margin: 0 0 clamp(14px, 1.1cqw, 26px);
  font-size: 16px;
  line-height: 1.6;
}

.lb-pt__text:last-child {
  margin-bottom: 0;
}

.lb-pt__radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.lb-pt__products {
  display: flex;
  align-items: flex-end;
  gap: var(--lb-gap);
  height: var(--lb-h-open);
  padding: 0 0 var(--lb-gap);
}

.lb-pt__item {
  position: relative;
  flex: 1 1 0;
  height: var(--lb-h);
  overflow: hidden;
  transition:
    flex-grow 0.45s ease,
    height 0.45s ease;
}

.lb-pt__item > a {
  display: block;
  height: 100%;
}

#lb-pt-p1:checked ~ .lb-pt__products .lb-pt__item--1,
#lb-pt-p2:checked ~ .lb-pt__products .lb-pt__item--2,
#lb-pt-p3:checked ~ .lb-pt__products .lb-pt__item--3,
#lb-pt-p4:checked ~ .lb-pt__products .lb-pt__item--4,
#lb-pt-p5:checked ~ .lb-pt__products .lb-pt__item--5 {
  flex-grow: 1.15;
  height: var(--lb-h-open);
}

.lb-pt__label {
  position: absolute;
  left: clamp(8px, 0.6cqw, 16px);
  right: clamp(8px, 0.6cqw, 16px);
  bottom: clamp(8px, 0.6cqw, 16px);
  padding: clamp(8px, 0.6cqw, 16px) clamp(36px, 2.8cqw, 60px) clamp(8px, 0.6cqw, 16px) clamp(10px, 0.75cqw, 20px);
  background: #fff;
  font-size: 16px;
  line-height: 1.4;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease 0.15s,
    visibility 0s linear 0.4s;
}

.lb-pt__label a {
  color: inherit;
  text-decoration: none;
}

.lb-pt__label span {
  display: block;
  text-transform: none;
}

.lb-pt__label .lb-pt__tag {
  display: block;
  margin-bottom: 0.35em;
  color: #8c8c8c;
  font-size: 0.85em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lb-pt__label--vds a {
  display: block;
}

.lb-pt .lb-pt__label--vds,
.lb-pt .lb-pt__label--vds * {
  color: #8c8c8c !important;
  font-style: normal !important;
  text-transform: uppercase !important;
}

.lb-pt .lb-pt__label--vds .lb-pt__tag {
  font-style: italic !important;
  font-size: 0.85em;
  letter-spacing: 0.08em;
  margin-bottom: 0.35em;
}

.lb-pt .lb-pt__label--vds .lb-pt__row,
.lb-pt .lb-pt__label--vds .lb-pt__row span {
  display: block;
}

.lb-pt__label .lb-pt__row {
  text-transform: uppercase;
}

#lb-pt-p1:checked ~ .lb-pt__products .lb-pt__item--1 .lb-pt__label,
#lb-pt-p2:checked ~ .lb-pt__products .lb-pt__item--2 .lb-pt__label,
#lb-pt-p3:checked ~ .lb-pt__products .lb-pt__item--3 .lb-pt__label,
#lb-pt-p4:checked ~ .lb-pt__products .lb-pt__item--4 .lb-pt__label,
#lb-pt-p5:checked ~ .lb-pt__products .lb-pt__item--5 .lb-pt__label {
  opacity: 1;
  visibility: visible;
  transition-delay: 0.15s, 0s;
}

.lb-pt__btn {
  position: absolute;
  right: clamp(8px, 0.6cqw, 16px);
  bottom: clamp(8px, 0.6cqw, 16px);
  width: clamp(22px, 1.6cqw, 40px);
  height: clamp(22px, 1.6cqw, 40px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  font-size: clamp(14px, 1cqw, 22px);
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.lb-pt__btn--open::before {
  content: "+";
}

.lb-pt__btn--close::before {
  content: "\2013";
}

.lb-pt__btn--close {
  display: none;
}

#lb-pt-p1:checked ~ .lb-pt__products .lb-pt__item--1 .lb-pt__btn--open,
#lb-pt-p2:checked ~ .lb-pt__products .lb-pt__item--2 .lb-pt__btn--open,
#lb-pt-p3:checked ~ .lb-pt__products .lb-pt__item--3 .lb-pt__btn--open,
#lb-pt-p4:checked ~ .lb-pt__products .lb-pt__item--4 .lb-pt__btn--open,
#lb-pt-p5:checked ~ .lb-pt__products .lb-pt__item--5 .lb-pt__btn--open {
  display: none;
}

#lb-pt-p1:checked ~ .lb-pt__products .lb-pt__item--1 .lb-pt__btn--close,
#lb-pt-p2:checked ~ .lb-pt__products .lb-pt__item--2 .lb-pt__btn--close,
#lb-pt-p3:checked ~ .lb-pt__products .lb-pt__item--3 .lb-pt__btn--close,
#lb-pt-p4:checked ~ .lb-pt__products .lb-pt__item--4 .lb-pt__btn--close,
#lb-pt-p5:checked ~ .lb-pt__products .lb-pt__item--5 .lb-pt__btn--close {
  display: flex;
}

@media (hover: hover) {
  .lb-pt__products:has(.lb-pt__item:hover) .lb-pt__item:not(:hover) {
    flex-grow: 1 !important;
    height: var(--lb-h) !important;
  }

  .lb-pt__products:has(.lb-pt__item:hover) .lb-pt__item:not(:hover) .lb-pt__label {
    opacity: 0 !important;
    visibility: hidden !important;
    transition-delay: 0s, 0.25s !important;
  }

  .lb-pt__products:has(.lb-pt__item:hover) .lb-pt__item:not(:hover) .lb-pt__btn--close {
    display: none !important;
  }

  .lb-pt__products:has(.lb-pt__item:hover) .lb-pt__item:not(:hover) .lb-pt__btn--open {
    display: flex !important;
  }
}

@container lbpt (max-width:767px) {
  .lb-pt__desktop {
    display: none;
  }

  .lb-pt__mobile {
    display: block;
  }

  .lb-pt__hero {
    grid-template-columns: 1fr;
  }

  .lb-pt__hero-img {
    height: auto;
    min-height: 0;
    aspect-ratio: 2/3;
  }

  .lb-pt__hero-img--2 {
    display: none;
  }

  .lb-pt__logo {
    top: auto;
    bottom: 9%;
    transform: translateX(-50%);
    width: 58%;
  }

  .lb-pt__intro {
    padding: 32px 24px 16px;
  }

  .lb-pt__title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .lb-pt__text {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .lb-pt__text:last-child {
    margin-bottom: 0;
  }

  .lb-pt__products {
    display: block;
    height: auto;
    padding: 0;
  }

  .lb-pt__products .lb-pt__item[class] {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: 45% 55%;
    align-items: center;
    height: auto !important;
    flex: none !important;
    overflow: visible;
    padding: 8px 16px 16px;
    background: var(--lb-bg);
  }

  .lb-pt__item > a {
    grid-column: 2;
    grid-row: 1;
    aspect-ratio: 2/3;
    height: auto;
    overflow: hidden;
  }

  .lb-pt__products .lb-pt__item .lb-pt__label {
    position: static;
    grid-column: 1;
    grid-row: 1;
    padding: 0 12px 0 0;
    background: none;
    font-size: 12px;
    opacity: 1 !important;
    visibility: visible !important;
    transition: none;
  }

  .lb-pt__products .lb-pt__item .lb-pt__btn {
    display: none !important;
  }

  .lb-pt .lb-pt__label--vds .lb-pt__tag {
    white-space: nowrap;
    font-size: min(11px, 2.5cqw);
    letter-spacing: 0.03em;
  }
}

/* ==========================================================================
   Fil d'Ariane Salesforce : posé sur le hero, en haut à gauche
   (uniquement sur la page qui contient .lb-pt, HTML Salesforce non modifié)
   ========================================================================== */

/* Le fil d'Ariane sort du flux : il reste à sa place mais ne prend plus de hauteur,
   le hero remonte en dessous */
body:has(.lb-pt) :is(.breadcrumb-wrapper, .page-breadcrumb, .breadcrumbs, .breadcrumb, nav[aria-label="breadcrumb" i]):not(:is(.breadcrumb-wrapper, .page-breadcrumb, .breadcrumbs, .breadcrumb, nav[aria-label="breadcrumb" i]) *) {
  position: absolute !important;
  z-index: 10;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: clamp(16px, 1.5vw, 36px) clamp(16px, 1.5vw, 40px) !important;
  background: transparent !important;
  border: 0 !important;
  text-align: left !important;
  justify-content: flex-start !important;
}

/* Supprime la bande blanche laissée par les blocs qui entourent le fil d'Ariane */
body:has(.lb-pt) :has(> :is(.breadcrumb-wrapper, .page-breadcrumb, .breadcrumbs, .breadcrumb, nav[aria-label="breadcrumb" i])):not(:has(.lb-pt)) {
  height: auto !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: 0 !important;
}

@media (max-width: 767px) {
  body:has(.lb-pt) :is(.breadcrumb-wrapper, .page-breadcrumb, .breadcrumbs, .breadcrumb, nav[aria-label="breadcrumb" i]):not(:is(.breadcrumb-wrapper, .page-breadcrumb, .breadcrumbs, .breadcrumb, nav[aria-label="breadcrumb" i]) *) {
    padding: 12px 16px !important;
    font-size: 12px;
  }
}

.lb-pt {
  margin-top: -35px;
}

@media (max-width: 767px) {
  .lb-pt {
    margin-top: -48px;
  }
}
