/* ═══════════════════════════════════════════════════════════════════
   faq.css — Page FAQ — AECJ Les Mureaux
   Mobile-first · breakpoints : 640px · 1024px
   Exclusivement var(--x) de tokens.css — 0 hex inline
   ═══════════════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────────────────────────────
   HERO — override padding seul
   ────────────────────────────────────────────────────────────────── */
.faq-hero {
  padding: 48px 0 52px;
}


/* ──────────────────────────────────────────────────────────────────
   BARRE DE RECHERCHE
   ────────────────────────────────────────────────────────────────── */
.faq-search-bar {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 64px; /* sous la navbar */
  z-index: 10;
}

.faq-search-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.faq-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.faq-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--soft);
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}

.faq-search-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: var(--transition);
}

.faq-search-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(26, 107, 63, .12);
}

.faq-search-input::placeholder {
  color: var(--soft);
}

.faq-search-count {
  font-size: 12px;
  color: var(--soft);
  white-space: nowrap;
  flex-shrink: 0;
}


/* ──────────────────────────────────────────────────────────────────
   NAVIGATION CATÉGORIES
   ────────────────────────────────────────────────────────────────── */
.faq-cats-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.faq-cats-list {
  list-style: none;
  display: flex;
  gap: 0;
  padding: 0;
  margin: 0;
  white-space: nowrap;
}

.faq-cat-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.faq-cat-link:hover {
  color: var(--green);
  border-bottom-color: var(--green-light);
}

.faq-cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--green-light);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}


/* ──────────────────────────────────────────────────────────────────
   ACCORDÉON FAQ
   ────────────────────────────────────────────────────────────────── */
.faq-main {
  background: var(--white);
  padding: 56px 0 72px;
}

.faq-category {
  margin-bottom: 56px;
}

.faq-category:last-of-type {
  margin-bottom: 0;
}

.faq-category-title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-light);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

/* Bouton question */
.faq-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.faq-btn:hover .faq-btn-text {
  color: var(--green);
}

.faq-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

.faq-btn-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  transition: var(--transition);
  flex: 1;
}

.faq-btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.faq-btn-icon svg {
  width: 10px;
  height: 10px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s ease;
}

/* Bouton ouvert */
.faq-btn[aria-expanded="true"] .faq-btn-icon {
  background: var(--green);
}

.faq-btn[aria-expanded="true"] .faq-btn-icon svg {
  stroke: var(--white);
  transform: rotate(180deg);
}

/* Réponse */
.faq-answer {
  overflow: hidden;
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer-inner {
  padding: 0 0 20px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

.faq-answer-inner strong {
  color: var(--ink);
  font-weight: 600;
}

.faq-link {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: var(--transition);
}

.faq-link:hover {
  color: var(--green-mid);
}

/* Mise en valeur si item correspond à la recherche */
.faq-item--match .faq-btn-text {
  color: var(--green);
}

/* Item caché (recherche) */
.faq-item--hidden {
  display: none;
}

/* Catégorie entièrement cachée */
.faq-category--hidden {
  display: none;
}

/* Aucun résultat */
.faq-no-result {
  text-align: center;
  padding: 56px 0;
  color: var(--muted);
  font-size: 15px;
}


/* ──────────────────────────────────────────────────────────────────
   CTA — Question non trouvée
   ────────────────────────────────────────────────────────────────── */
.faq-cta {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 56px 0;
}

.faq-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

@media (min-width: 768px) {
  .faq-cta-inner {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  .faq-cta-text {
    flex: 1;
  }

  .faq-cta-actions {
    flex-shrink: 0;
  }
}

.faq-cta-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
}

.faq-cta-icon svg {
  width: 22px;
  height: 22px;
}

.faq-cta-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.faq-cta-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


/* ──────────────────────────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .faq-btn-text { font-size: 15px; }
}

@media (min-width: 1024px) {
  .faq-main { padding: 64px 0 80px; }
}
