/* ═══════════════════════════════════════════════════════════
   FAQ.CSS — Section FAQ accordéon, Thinhinane Studio
   ═══════════════════════════════════════════════════════════ */

/* ── Conteneur section ── */
#faq {
  position: relative;
  padding: 100px 0 80px;
  background: var(--bg);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Chaque item ── */
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(var(--theme-rgb), 0.25);
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: rgba(var(--theme-rgb), 0.35);
  box-shadow: 0 0 28px rgba(var(--theme-rgb), 0.07);
}

/* ── Bouton question ── */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--sans);
  font-size: 0.97rem;
  font-weight: 400;
  line-height: 1.4;
  transition: color 0.25s ease;
}

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

.faq-question[aria-expanded="true"] {
  color: var(--gold);
}

/* Icône +/− */
.faq-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(var(--theme-rgb), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--gold);
  transition: background 0.25s ease, transform 0.3s ease, border-color 0.25s ease;
  font-style: normal;
}

.faq-question[aria-expanded="true"] .faq-icon {
  background: rgba(var(--theme-rgb), 0.12);
  border-color: var(--gold);
  transform: rotate(180deg);
}

/* Réponse fermée par défaut */
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Réponse ouverte */
.faq-answer.is-open {
  max-height: var(--faq-h, 400px);
}

.faq-answer p {
  padding: 0 22px 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}

/* ── Focus visible ── */
.faq-question:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
  border-radius: 16px;
}

/* ── Lien légal footer ── */
.footer-legal-link {
  color: rgba(255, 255, 255, 0.35);
  font-size: inherit;
  margin-left: 10px;
  transition: color 0.25s;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal-link:hover {
  color: var(--gold);
}

/* ── Footer bottom pricing.html ── */
.pricing-footer-bottom {
  text-align: center;
  padding: 24px 0 40px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  #faq {
    padding: 70px 0 60px;
  }

  .faq-question {
    font-size: 0.9rem;
    padding: 16px 16px;
  }

  .faq-answer p {
    padding: 0 16px 16px;
    padding-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer,
  .faq-icon,
  .faq-item,
  .faq-question {
    transition: none !important;
  }
}
