/* ============================================================
   GOLDEOR — Section FAQ
   faq.css
   ============================================================ */

.faq {
  position: relative;
}

.faq__header {
  text-align: center;
  margin-bottom: 56px;
}

.faq__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  background: var(--heading-silver);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Liste ────────────────────────────────────────────────── */

.faq__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Item ─────────────────────────────────────────────────── */

.faq__item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 6px 28px rgba(0, 0, 0, 0.40);
}

/* Bordure argentée shiny */
.faq__item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.70)  0%,
    rgba(200, 200, 230, 0.25) 25%,
    rgba(120, 120, 160, 0.08) 50%,
    rgba(200, 200, 230, 0.20) 75%,
    rgba(255, 255, 255, 0.65) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* ── Question (bouton) ───────────────────────────────────── */

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.faq__question:hover {
  color: var(--accent-cyan);
}

.faq__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 300;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.faq__item.is-open .faq__icon {
  background: rgba(196, 168, 232, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: rotate(45deg);
}

/* ── Réponse ─────────────────────────────────────────────── */

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
}

.faq__item.is-open .faq__answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq__answer p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── Mobile ──────────────────────────────────────────────── */

@media (max-width: 768px) {
  .faq__question {
    font-size: 14px;
    padding: 16px 20px;
  }

  .faq__answer {
    padding: 0 20px;
  }

  .faq__item.is-open .faq__answer {
    padding: 0 20px 16px;
  }
}
