/* FAQ : index par catégories et page d'une question. Mobile d'abord. */


/* Catégories : puces défilantes sur mobile */
.faq-cats { display: flex; gap: 8px; margin: 18px calc(var(--marge) * -1) 0; padding: 0 var(--marge) 4px; max-width: none; overflow-x: auto; scrollbar-width: none; }
.faq-cats a { flex: none; display: inline-flex; align-items: center; min-height: var(--tactile); padding: 0 16px; border-radius: 999px; background: var(--bleu-pale); color: var(--bleu-nuit); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.faq-cats a:hover { background: var(--bleu); color: var(--blanc); }
.faq-cats::-webkit-scrollbar { display: none; }

.faq-cat { padding-top: 36px; scroll-margin-top: 70px; }
.faq-cat h2, .faq-autres h2 { font-size: 20px; line-height: 1.25; font-weight: 900; margin-bottom: 18px; }
.faq-cat h2 a, .faq-autres h2 a { text-decoration: underline; text-underline-offset: 3px; }   /* lien distingué du titre autrement que par la couleur */

/* Questions : cartes pleine largeur, cible tactile confortable */
.faq-questions { display: grid; max-width: 760px; gap: 12px; }
.faq-questions a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 14px 18px; background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); color: var(--texte); font-weight: 500; line-height: 1.35; text-decoration: none; }
.faq-questions a::after { content: ""; flex: none; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E6CB0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.faq-questions a:hover { border-color: var(--bleu); background: var(--fond-clair); }

/* Page d'une question : colonne de lecture étroite, interligne large */
.faq-reponse { margin-top: 18px; }
.faq-reponse p:first-child { color: var(--texte); }
.faq-autres { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--bord); }
.faq-autres a { color: var(--bleu-fonce); text-decoration: none; }
.faq-autres a:hover { text-decoration: underline; }
.faq-toutes { margin-top: 16px; }
.faq-toutes a { color: var(--bleu-fonce); font-weight: 700; text-decoration: none; }
.faq-toutes a:hover { text-decoration: underline; }

@media (min-width: 768px) {
  .faq-cats { flex-wrap: wrap; overflow: visible; margin: 22px 0 0; padding: 0; }
  .faq-reponse { margin-top: 24px; }
  .faq-cat h2, .faq-autres h2 { font-size: 22px; }
}
@media (min-width: 900px) {
  .faq-cat { padding-top: 44px; }
}
