/* ===================================
   SECTION FAQ
   Questions fréquemment posées avec accordéon
   =================================== */

.faq-section {
  background: #FFFFFF;
  padding: 48px 8% 48px !important;
  width: 100%;
  position: relative;
}

/* ========== CONTAINER ========== */
.faq-container {
  max-width: 900px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ========== FAQ ITEM ========== */
.faq-item {
  background: #FFFFFF;
  border: 2px solid rgba(184, 144, 81, 0.15);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(184, 144, 81, 0.35);
  box-shadow: 0 4px 16px rgba(184, 144, 81, 0.1);
}

.faq-item.active {
  border-color: #B89051;
  box-shadow: 0 6px 20px rgba(184, 144, 81, 0.15);
}

/* ========== QUESTION BUTTON ========== */
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.5;
  transition: all 0.3s ease;
  min-height: 52px;
  display: flex;
  align-items: center;
}

.faq-question:hover {
  color: #B89051;
}

.faq-item.active .faq-question {
  color: #B89051;
  padding-bottom: 18px;
}

/* ========== ICON ========== */
.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: #B89051;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-question:hover .faq-icon {
  transform: scale(1.1);
}

.faq-item.active .faq-question:hover .faq-icon {
  transform: rotate(180deg) scale(1.1);
}

/* ========== ANSWER ========== */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 2000px !important;
  opacity: 1 !important;
  padding: 0 28px 22px 28px !important;
}

.faq-answer p {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.75;
  margin: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .faq-section {
    padding: 40px 6% 40px !important;
  }
}

@media (max-width: 768px) {
  .faq-section {
    padding: 32px 5% 32px !important;
  }

  .faq-container {
    margin: 25px auto 0;
    gap: 10px;
  }

  /* Hide FAQ items 6-10 on mobile to reduce scroll */
  .faq-item:nth-child(n+6) {
    display: none;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 1rem;
    gap: 16px;
  }

  .faq-item.active .faq-question {
    padding-bottom: 14px;
  }

  .faq-icon {
    width: 20px;
    height: 20px;
  }

  .faq-item.active .faq-answer {
    padding: 0 20px 18px 20px;
  }

  .faq-answer p {
    font-size: 0.9375rem;
    line-height: 1.65;
  }
}
