/* =====================================================
   WAKAANA MARKET — FAQ Page CSS
   ===================================================== */

/* ── Filtres catégories ── */
.faq-cats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.faq-cat {
  padding: 8px 20px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--grey);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  font-family: var(--ff-sans);
}
.faq-cat:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.faq-cat.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ── FAQ list ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--white);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.faq-item:hover { box-shadow: var(--shadow); }
.faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(43,78,122,.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--ff-sans);
  font-size: .97rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: color .2s;
}
.faq-question:hover { color: var(--primary); }
.faq-item.open .faq-question { color: var(--primary); }

.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
  color: var(--primary);
  transition: transform .3s var(--spring), background .2s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: var(--white);
}

/* Answer with smooth slide */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 24px 20px;
}
.faq-answer p {
  font-size: .93rem;
  color: var(--grey);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 10px;
}
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
}
.faq-answer li {
  list-style: disc;
  font-size: .92rem;
  color: var(--grey);
  line-height: 1.7;
}
.faq-answer strong { color: var(--dark); font-weight: 600; }
.faq-answer a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .faq-question { padding: 16px 18px; font-size: .9rem; }
  .faq-item.open .faq-answer { padding: 0 18px 16px; }
  .faq-cats { gap: 8px; }
  .faq-cat { padding: 7px 14px; font-size: .78rem; }
}
