/**
 * Component-specific styles
 *
 * This file contains styles for custom components
 * that extend or override Tailwind defaults.
 */

/* FAQ Component */
.bh-faq-container {
  max-width: 1018px;
  width: 100%;
  margin: 0 auto !important;
}

.bhcar-acheter-glowing-ellipse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  z-index: -1;
  height: 100%;
}
@media (max-width: 1400px) {
  .bhcar-acheter-glowing-ellipse {
    width: 100%;
  }
}
.bh-faq-item {
  transition: all 0.3s ease;
  border-radius: 16px;
  padding: 11px 18px 11px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(42px);
  box-shadow: inset -5px -5px 250px 0 rgba(255, 255, 255, 0.02);
  background: rgba(0, 0, 0, 0.8);
  margin-bottom: 22px;
}

.bh-faq-question {
  position: relative;
  /* padding: 1rem 1.5rem; */
  color: #fff;
  /* background-color: rgba(0, 0, 0, 0.8); */
  /* border: 1px solid; */
  /* border-image-source: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0) 137.31%,
    rgba(255, 255, 255, 0) 137.32%
  ); */
  > span {
    padding-right: 15px;
  }
}

.bh-faq-question svg {
  transition: transform 0.3s ease;
  color: #fff;
  /* Couleur par défaut de l'icône */
}

.bh-faq-question .bh-faq-icon {
  width: 14px;
  height: 14px;
  position: relative;
}

.bh-faq-question .bh-faq-icon::before,
.bh-faq-question .bh-faq-icon::after {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.bh-faq-question .bh-faq-icon::before {
  width: 14px;
  height: 2px;
}

.bh-faq-question .bh-faq-icon::after {
  width: 2px;
  height: 14px;
}

.bh-faq-question .bh-faq-icon.active::before {
  transform: translate(-50%, -50%) rotate(180deg);
}

.bh-faq-question .bh-faq-icon.active::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Rotation de 45 degrés pour transformer le + en × */
.bh-faq-question svg.rotate-45 {
  transform: rotate(45deg);
}

.bh-faq-answer {
  /* padding: 0.5rem 0 1rem; */
  line-height: 1.6;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.bh-faq-answer.active {
  opacity: 0.8;
  max-height: 1000px;
}

/* Override the hidden class for smoother transitions */
.bh-faq-answer.hidden {
  display: block !important;
  opacity: 0;
  max-height: 0;
  margin-top: 0;
}

/* Custom hover and active states */
.bh-faq-question:hover {
  color: #fff;
}

.bh-no-faqs {
  text-align: center;
  padding: 2rem;
  color: #666;
  font-style: italic;
}

/* Swiper custom nav in best-sellers slider */
.swiper-nav .swiper-button-prev,
.swiper-nav .swiper-button-next {
  position: static !important;
  margin: 0 !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  width: 40px;
  height: 40px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  display: none !important;
}

/* Header Marquee Animation for Featured Post */
.bh-top-featured-post {
  max-width: 1000px;
  position: relative;
}

.bh-marquee-text {
  display: inline-block;
  /* Animation will be added via JavaScript if needed */
}

.bh-marquee-text.needs-scroll {
  animation: marquee 15s linear infinite;
  padding-left: 100%;
}

.bh-marquee-text.needs-scroll:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Responsive adjustments for marquee */
@media (max-width: 768px) {
  .bh-top-featured-post {
    max-width: 316px;
  }

  .bh-marquee-text.needs-scroll {
    animation-duration: 20s;
  }
}

/* BH Toggle States - Homepage */
/* Fix container height to prevent shrinking on toggle */
[class*="bh-toggle"] {
  /* min-height: 44px; */
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media(min-width: 1921px){
  [class*="bh-toggle"]{
    height: 52px;
  }
}

a.bh-toggle-enabled,
button.bh-toggle-enabled {
  font-family: Inter var, system-ui, sans-serif;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: #fff !important;
  background: #e22415 !important;
  padding: 10px 40px !important;
  border-radius: 66px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

a.bh-toggle-disabled,
button.bh-toggle-disabled {
  background-color: transparent !important;
  padding: 10px 40px !important;
  text-decoration: none;
  font-family: Inter var, system-ui, sans-serif;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: #050505 !important;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

@media (max-width: 768px) {
  [class*="bh-toggle"] {
    min-height: 38px;
  }

  a.bh-toggle-disabled,
  button.bh-toggle-disabled {
    padding: 7px 24px !important;
    font-size: 16px;
    min-height: 38px;
  }

  a.bh-toggle-enabled,
  button.bh-toggle-enabled {
    padding: 7px 24px !important;
    font-size: 16px;
    min-height: 38px;
  }
}
