/* ======================================================= # FAQ STYLES ======================================================= */

.faq-section {
  max-width: 860px;
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.faq-item:hover,
.faq-item.is-open {
  border-color: var(--blue-color);
  box-shadow: 0 4px 16px rgba(0, 85, 255, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
  font-family: system-ui, sans-serif;
}

.faq-question:focus-visible {
  outline: 2px solid var(--blue-color);
  outline-offset: -2px;
  border-radius: 10px;
}

.faq-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-light-color);
  color: var(--blue-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  user-select: none;
}

.faq-icon::before {
  content: "+";
}

.faq-item.is-open .faq-icon {
  background: var(--blue-color);
  color: var(--white-color);
}

.faq-item.is-open .faq-icon::before {
  content: "−";
}

/* Animation ouverture via grid-template-rows */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-inner p {
  padding: 0 24px 20px;
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

/* ======================================================= # RESPONSIVE ======================================================= */

@media (max-width: 768px) {
  .faq-question {
    padding: 16px 18px;
    font-size: 0.9rem;
  }
  .faq-answer-inner p {
    padding: 0 18px 16px;
    font-size: 0.9rem;
  }
  .faq-icon {
    width: 28px;
    height: 28px;
    font-size: 1.2rem;
  }
}
