/* FAQ accordion — shared across funnel pages.
   Mirrors the home page's inline FAQ block (public/index.html) so the
   same /js/faq.js script can drive accordions on join / discover /
   industrie / communes / tarifs without each page redeclaring styles.

   Visible Q&A here is the source mirrored into the FAQPage JSON-LD by
   src/i18n/html-processor.js#buildFaqLd — Google penalises FAQ markup
   that isn't actually on screen, hence the deliberate visual section. */

.faq-section {
  padding: 4rem 1rem 6rem;
  background: #fafaf9;
}
.faq-section__inner {
  max-width: 48rem;
  margin: 0 auto;
}
.faq-section__title {
  font-family: 'Suisse Screen', 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: #1C1917;
  margin-bottom: 2.5rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid #e7e5e4;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  font-size: 1rem;
}
.faq-toggle:hover {
  background: #fafaf9;
}
.faq-toggle > span {
  font-weight: 600;
  color: #1C1917;
  padding-right: 1rem;
  flex: 1;
}
.faq-chevron {
  flex-shrink: 0;
  color: #57534E;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 0 1.5rem;
}
.faq-answer.open {
  max-height: 720px;
}
.faq-answer p {
  color: #57534E;
  padding-bottom: 1.25rem;
  line-height: 1.65;
  margin: 0;
}

@media (min-width: 640px) {
  .faq-section {
    padding: 5rem 1.5rem 7rem;
  }
  .faq-section__title {
    font-size: 2.5rem;
  }
}
