/* ============================================================
   FAQ.CSS — styles spécifiques à /faq.html
   Hérite des règles de base de ressources.css (header, footer,
   body.ressources-body) — n'inclure QUE des classes propres à
   la FAQ pour éviter les conflits.
   ============================================================ */

/* ---- Hero ---- */
.faq-hero { background: linear-gradient(180deg, #fef3e6 0%, #fff 100%); padding: 70px 20px 50px; text-align: center; }
.faq-hero-inner { max-width: 900px; margin: 0 auto; }
.faq-hero h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--ink-2); line-height: 1.2; margin-bottom: 20px; }
.faq-hero h1 .accent { color: var(--fire); }
.faq-hero-lead { color: var(--text-mid); font-size: 1rem; line-height: 1.75; max-width: 760px; margin: 0 auto; text-align: left; }

/* ---- Barre d'ancres sticky sous le hero ---- */
.faq-anchors { position: sticky; top: 70px; z-index: 50; background: rgba(13,13,13,.97); backdrop-filter: blur(24px); border-bottom: 1px solid rgba(255,255,255,.08); padding: 14px 16px; }
.faq-anchors-inner { max-width: 1200px; margin: 0 auto; }
.faq-anchors-list { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.faq-anchor-link { display: inline-flex; align-items: center; padding: 6px 16px; border-radius: 999px; background: rgba(255,255,255,.08); color: #ffffff !important; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; transition: background .2s, color .2s, transform .2s; border: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.faq-anchor-link:hover { background: var(--fire); color: #ffffff !important; border-color: var(--fire); text-decoration: none; transform: translateY(-1px); }

/* ---- Sections par thème ---- */
.faq-section { padding: 60px 20px; border-top: 1px solid var(--border); background: #fff; }
.faq-section:nth-of-type(even) { background: var(--bg); }
.faq-section-inner { max-width: 860px; margin: 0 auto; }
.faq-section h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--ink-2); margin-bottom: 32px; padding-bottom: 12px; border-bottom: 3px solid var(--fire); display: inline-block; }

/* ---- Items accordéon ---- */
.faq-item { margin-bottom: 14px; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); border: 1px solid var(--border); overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.faq-item:hover { border-color: rgba(232,88,10,.25); }
.faq-item.open { border-color: rgba(232,88,10,.45); box-shadow: 0 4px 18px rgba(0,0,0,.08); }

.faq-question { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--ink-2); margin: 0; line-height: 1.35; transition: background .2s; }
.faq-question:hover { background: #fafafa; }
.faq-question::after { content: '▼'; color: var(--fire); font-size: .8rem; flex-shrink: 0; transition: transform .3s ease; }
.faq-question.open::after { transform: rotate(180deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s ease; background: #f8fafc; padding: 0 24px; border-radius: 0 0 10px 10px; }
.faq-answer.open { max-height: 800px; padding: 20px 24px; }
.faq-answer p { color: #374151; font-size: .95rem; line-height: 1.75; margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer strong { color: var(--ink-2); }

/* ---- Encart CTA en bas de chaque section ---- */
.faq-cta-box { background: #fff7ed; border-left: 4px solid var(--fire); border-radius: 8px; padding: 20px 24px; margin-top: 32px; }
.faq-cta-box p { color: var(--ink-2); font-weight: 600; margin-bottom: 12px; }
.faq-cta-box .ressources-btn-fire { font-size: .82rem; padding: 10px 20px; }

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .faq-hero { padding: 50px 16px 36px; }
  .faq-hero-lead { font-size: .95rem; }
  .faq-anchors { padding: 10px 12px; }
  .faq-anchors-list { gap: 8px; }
  .faq-anchor-link { padding: 5px 12px; font-size: .72rem; }
  .faq-section { padding: 44px 16px; }
  .faq-section h2 { font-size: 1.35rem; margin-bottom: 24px; }
  .faq-question { padding: 16px 18px; font-size: .98rem; }
  .faq-answer { padding: 0 18px; }
  .faq-answer.open { padding: 16px 18px; }
}
