/**
 * Styles pour la page FAQ générée par WooCommerce Shop Builder.
 *
 * @package WC_Shop_Builder
 */

/* Container principal FAQ */
.wcsb-faq {
  margin: 30px 0;
}

/* Titre de section */
.wcsb-faq-section-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 40px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.wcsb-faq-section-title:first-of-type {
  margin-top: 20px;
}

.wcsb-faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 15px;
  background-color: #fff;
  transition: box-shadow 0.2s ease;
}

.wcsb-faq-item:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Question (toujours visible) */
.wcsb-faq-question {
  margin: 0;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  position: relative;
  padding-right: 50px;
  user-select: none;
}

.wcsb-faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: #0693e3;
  transition: transform 0.3s ease;
}

.wcsb-faq-item.active .wcsb-faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

/* Réponse (masquée par défaut) */
.wcsb-faq-answer {
  display: none;
  padding: 0 20px 20px 20px;
  color: #666;
  line-height: 1.6;
}

/* Ne pas forcer display: block, laisser JavaScript gérer via slideDown/slideUp */

.wcsb-faq-answer p {
  margin: 0 0 15px 0;
}

.wcsb-faq-answer p:last-child {
  margin-bottom: 0;
}

/* Animation d'ouverture */
.wcsb-faq-answer {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive : Mobile */
@media (max-width: 768px) {
  .wcsb-faq-question {
    font-size: 16px;
    padding: 15px;
    padding-right: 45px;
  }

  .wcsb-faq-answer {
    padding: 0 15px 15px 15px;
    font-size: 14px;
  }
}
