/* ═══════════════════════════════════════════════════════════════
   FAQ.CSS · Page Foire aux questions Hyvirtus
   ───────────────────────────────────────────────────────────────
   S'utilise EN PLUS de legal.css pour la page faq.html.
   Reprend l'accordéon de la landing principale (.lp-faq-*),
   l'adapte au contexte page dédiée (catégories, plus long contenu).
   ═══════════════════════════════════════════════════════════════ */

/* ─── Titre de catégorie (h2 surclassé) ──────────────────────── */
.legal-section .faq-category-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a2238;
  margin: 0 0 20px;
  line-height: 1.3;
  letter-spacing: 0.002em;
}

/* ─── Liste d'items FAQ ──────────────────────────────────────── */
.lp-faq-list {
  margin: 0;
}

.lp-faq-item {
  border-top: 1px solid rgba(15, 20, 36, 0.10);
}
.lp-faq-item:last-child {
  border-bottom: 1px solid rgba(15, 20, 36, 0.10);
}

/* ─── Question (bouton) ──────────────────────────────────────── */
.lp-faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: #1a2238;
  transition: color 220ms ease;
  min-height: 44px; /* touch target */
}
.lp-faq-question:hover {
  color: #8d6f3a;
}
.lp-faq-question:focus-visible {
  outline: 2px solid #c9a36a;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Icône + (rotation 45° quand ouvert) ────────────────────── */
.lp-faq-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: #5a6478;
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1), color 220ms ease;
}
.lp-faq-item.is-open .lp-faq-icon {
  transform: rotate(45deg);
  color: #8d6f3a;
}

/* ─── Réponse (collapsible) ──────────────────────────────────── */
.lp-faq-answer {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 380ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 380ms;
}
.lp-faq-item.is-open .lp-faq-answer {
  max-height: 1200px;
  visibility: visible;
  transition: max-height 380ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s; /* large car certaines réponses font 2-3 paragraphes */
}

.lp-faq-answer-inner {
  padding: 0 36px 22px 4px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #2d3a52;
}
.lp-faq-answer-inner p {
  margin: 0;
}
.lp-faq-answer-inner p + p {
  margin-top: 0.75rem;
}
.lp-faq-answer-inner a {
  color: #2d3a52;
  text-decoration: underline;
  text-decoration-color: rgba(201, 163, 106, 0.45);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.lp-faq-answer-inner a:hover {
  color: #8d6f3a;
  text-decoration-color: #8d6f3a;
}
.lp-faq-answer-inner strong {
  color: #1a2238;
  font-weight: 600;
}

/* ─── Responsive mobile ──────────────────────────────────────── */
@media (max-width: 720px) {
  .legal-section .faq-category-title {
    font-size: 18px;
    margin-bottom: 16px;
  }
  .lp-faq-question {
    font-size: 15px;
    padding: 18px 2px;
    gap: 14px;
  }
  .lp-faq-answer-inner {
    padding: 0 4px 18px 2px;
    font-size: 14.5px;
  }
}

/* ─── Print : toutes les réponses ouvertes ───────────────────── */
@media print {
  .lp-faq-answer {
    max-height: none !important;
    overflow: visible !important;
    visibility: visible !important;
  }
  .lp-faq-icon {
    display: none !important;
  }
  .lp-faq-question {
    cursor: default;
    padding: 12px 0 6px;
  }
  .lp-faq-answer-inner {
    padding: 0 0 14px 0;
    color: #000;
  }
}
