.bp-highlights{
  --bp-h-surface: rgba(238,238,242,.92);
  --bp-h-border: rgba(17,17,17,.08);
  --bp-h-text: #111111;
  --bp-h-soft: #34343a;
  --bp-h-shadow: 0 18px 40px rgba(17,17,17,.10);

  padding: clamp(42px, 6vw, 84px) 0;
}

.bp-highlights__shell{
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
}

/* =========================
   HEAD
========================= */

.bp-highlights__head{
  margin: 0 0 32px;
}

.bp-highlights .bp-title-global{
  font-size: clamp(2.2rem, 3.2vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.bp-highlights .bp-text-global{
  margin-top: 14px;
  max-width: 1280px;
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  line-height: 1.6;
  color: var(--text-soft);
}

/* =========================
   STAGE
========================= */

.bp-highlights__stage{
  position: relative;
  min-height: 680px;
  height: 800px;
  border-radius: 34px;
  overflow: hidden;
  background: #e9e9ed;
  isolation: isolate;
}

.bp-highlights__figure{
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .45s ease, transform .55s ease;
  pointer-events: none;
  overflow: hidden;
}

.bp-highlights__figure.is-active{
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.bp-highlights__figure img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* =========================
   LOTTIE RESPONSIVE
   Desktop/tablette : 1600 x 1400
   Mobile : 900 x 1600
========================= */

.bp-highlights__figure.has-lottie{
  background: #e9e9ed;
}

.bp-lottie-mobile{
  display: none !important;
}

.bp-lottie-desktop,
.bp-lottie-mobile{
  position: absolute;
  left: 50%;
  display: block;
  max-width: none;
  max-height: none;
  transform: translateX(-50%);
}

/* Desktop : crop vertical assumé */
.bp-lottie-desktop{
  top: 60%;
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 1400;
  transform: translate(-50%, -50%);
}

/* Desktop large : léger zoom pour bien remplir */
@media (min-width: 1181px){
  .bp-lottie-desktop{
    width: 100%;
  }
}

/* Tablette : on remplit mieux le bloc 600px */
@media (min-width: 768px) and (max-width: 1180px){
  .bp-lottie-desktop{
    width: 100%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

/* =========================
   BASE OVERLAY
========================= */

.bp-highlights__topbar{
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 5;
  pointer-events: none;
}

.bp-highlights__pills{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  width: 300px;
  max-width: 300px;
  pointer-events: auto;
}

.bp-highlights__pill{
  appearance: none;
  border: 1px solid rgba(17,17,17,.07);
  background: rgba(238,238,242,.78);
  backdrop-filter: blur(10px);
  color: var(--bp-h-text);
  min-height: 52px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  cursor: pointer;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease, border-color .22s ease;
  box-shadow: 0 10px 24px rgba(17,17,17,.04);
  white-space: nowrap;
  flex: 0 0 auto;
}

.bp-highlights__pill:hover{
  transform: translateY(-1px);
}

.bp-highlights__pill.is-active{
  background: rgba(230,230,236,.88);
  box-shadow: 0 14px 28px rgba(17,17,17,.08);
}

.bp-highlights__pill.is-hidden{
  display: none !important;
}

.bp-highlights__pill-icon{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(17,17,17,.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #1f1f23;
}

.bp-highlights__pill-icon svg{
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.bp-highlights__pill-dot{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #66748f;
  box-shadow: inset 0 0 0 1px rgba(17,17,17,.14);
}

.bp-highlights__pill-label{
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
}

/* =========================
   CLOSE
========================= */

.bp-highlights__close{
  position: absolute;
  top: 1px;
  right: 1px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(238,238,242,.9);
  backdrop-filter: blur(10px);
  color: #1d1d1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .22s ease, background .22s ease, opacity .22s ease, box-shadow .22s ease;
  pointer-events: auto;
  z-index: 7;
}

.bp-highlights__close[hidden]{
  display: none !important;
}

.bp-highlights__close:hover{
  background: rgba(230,230,236,.98);
  transform: translateY(-1px) scale(1.04);
}

/* =========================
   OVERLAY / CARD
========================= */

.bp-highlights__overlay{
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.bp-highlights__overlay[hidden]{
  display: none !important;
}

.bp-highlights__card{
  position: static;
  width: 100%;
  max-width: 420px;
  margin: 0;
  background: rgba(238,238,242,.82);
  backdrop-filter: blur(12px);
  color: var(--bp-h-text);
  border: 1px solid rgba(17,17,17,.07);
  border-radius: 28px;
  padding: 24px 24px 22px;
  box-shadow: var(--bp-h-shadow);
  pointer-events: auto;
}

.bp-highlights__card[hidden]{
  display: none !important;
}

.bp-highlights__card.theme-soft{
  background: rgba(238,238,242,.10);
}

.bp-highlights__card.theme-warm{
  background: rgba(244,235,230,.10);
}

.bp-highlights__card.theme-cool{
  background: rgba(232,242,255,.10);
}

.bp-highlights__card-title{
  margin: 0 0 10px;
  font-size: 1.42rem;
  line-height: 1.08;
  font-weight: 700;
}

.bp-highlights__card-text{
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--bp-h-soft);
}

/* =========================
   NAV
========================= */

.bp-highlights__nav{
  position: absolute;
  right: 22px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: auto;
}

.bp-highlights__nav[hidden]{
  display: none !important;
}

.bp-highlights__nav-btn{
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(238,238,242,.9);
  backdrop-filter: blur(10px);
  color: #1d1d1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease, opacity .22s ease;
}

.bp-highlights__nav-btn:hover{
  background: rgba(230,230,236,.98);
  transform: translateY(-1px) scale(1.04);
}

.bp-highlights__close .bp-icon,
.bp-highlights__nav-btn .bp-icon{
  display: block;
  width: 22px;
  height: 22px;
  overflow: visible;
  visibility: visible;
  opacity: 1;
}

/* =========================
   DESKTOP
========================= */

@media (min-width: 1181px){
  .bp-highlights__pills{
    margin-left: 28px;
  }
}

/* =========================
   TABLET
========================= */

@media (min-width: 768px) and (max-width: 1180px){
  .bp-highlights__stage{
    min-height: 600px;
    height: 600px;
  }

  .bp-highlights__pills{
    width: 260px;
    max-width: 260px;
    gap: 12px;
    margin-left: 18px;
  }

  .bp-highlights__pill{
    min-height: 48px;
    padding: 9px 14px 9px 11px;
  }

  .bp-highlights__pill-label{
    font-size: .94rem;
  }

  .bp-highlights__pill-icon{
    width: 24px;
    height: 24px;
  }

  .bp-highlights__pill-icon svg{
    width: 14px;
    height: 14px;
  }

  .bp-highlights__pill-dot{
    width: 14px;
    height: 14px;
  }

  .bp-highlights__card{
    max-width: 340px;
    padding: 20px 20px 18px;
  }

  .bp-highlights__card-title{
    font-size: 1.2rem;
  }

  .bp-highlights__card-text{
    font-size: .96rem;
    line-height: 1.55;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px){
  .bp-highlights{
    padding: 34px 0 56px;
  }

  .bp-highlights__shell{
    width: calc(100% - 12px);
  }

  .bp-highlights__stage{
    height: clamp(520px, 136vw, 680px);
    min-height: 0;
    border-radius: 28px;
  }

  .bp-lottie-desktop{
    display: none !important;
  }

  .bp-lottie-mobile{
    display: block !important;
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 900 / 1600;
    transform: translateX(-50%) translateY(92px);
    max-width: none;
    max-height: none;
  }

  .bp-highlights__topbar{
    top: auto;
    bottom: 16px;
    left: 14px;
    right: 14px;
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
  }

  .bp-highlights__pills{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-right: 8px;
    scrollbar-width: none;
    max-width: 100%;
    width: auto;
    margin-left: 0;
    scroll-behavior: smooth;
  }

  .bp-highlights__pills::-webkit-scrollbar{
    display: none;
  }

  .bp-highlights__pill{
    min-height: 50px;
    padding: 10px 14px 10px 12px;
    flex: 0 0 auto;
  }

  .bp-highlights__pill-label{
    font-size: 1rem;
  }

  .bp-highlights__card{
    position: absolute;
    left: 18px;
    right: 18px;
    top: auto;
    bottom: 96px;
    width: auto;
    max-width: none;
    padding: 18px 18px 20px;
    border-radius: 26px;
  }

  .bp-highlights__card-title{
    font-size: 1.18rem;
  }

  .bp-highlights__card-text{
    font-size: .95rem;
    line-height: 1.18;
  }

  .bp-highlights__nav{
    left: 10px;
    right: 10px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .bp-highlights__nav-btn{
    width: 42px;
    height: 42px;
  }
}

/* 560px → 767px */
@media (min-width: 560px) and (max-width: 767px){
  .bp-highlights__stage{
    height: clamp(600px, 92vw, 680px);
  }

  .bp-lottie-mobile{
    transform: translateX(-50%) translateY(280px);
  }

  .bp-highlights__card{
    bottom: 108px;
  }
}

/* 421px → 559px */
@media (min-width: 421px) and (max-width: 559px){
  .bp-highlights__stage{
    height: clamp(560px, 136vw, 680px);
  }

  .bp-lottie-mobile{
    bottom: -170px;
    transform: translateX(-50%);
  }

}

/* 386px → 420px */
@media (min-width: 386px) and (max-width: 420px){
  .bp-highlights__stage{
    height: clamp(520px, 136vw, 610px);
  }

  .bp-lottie-mobile{
    bottom: 0;
    transform: translateX(-50%) translateY(96px);
  }

  .bp-highlights__card{
    bottom: 88px;
  }
}

/* <= 385px */
@media (max-width: 385px){
  .bp-highlights__stage{
    height: clamp(500px, 132vw, 550px);
  }

  .bp-lottie-mobile{
    bottom: 0;
    transform: translateX(-50%) translateY(50px);
  }

  .bp-highlights__card{
    left: 14px;
    right: 14px;
    bottom: 82px;
    padding: 16px;
  }

  .bp-highlights__card-text{
    font-size: .9rem;
  }
}