/* ── HERO FAQ ───────────────────────────────────────────── */
.faq-hero {
  padding-top: var(--nav-h);
  background: var(--ink);
  position: relative; overflow: hidden;
}

.faq-hero::after {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,16,46,0.2) 0%, transparent 65%);
  filter: blur(50px);
}
.faq-hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 4rem 2rem 3.5rem;
  position: relative; z-index: 1;
}
.faq-eyebrow {
  font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 10px; margin-bottom: 1rem;
}
.faq-eyebrow::before { content: ''; display: block; width: 20px; height: 2px; background: var(--accent); }
.faq-hero h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; letter-spacing: -.04em; color: #fff;
  margin-bottom: 1rem; line-height: 1.1;
}
.faq-hero h1 em { font-style: normal; color: var(--red); }
.faq-hero-sub {
  font-size: 1rem; color: rgba(255,255,255,0.55); line-height: 1.75;
  max-width: 600px; margin-bottom: 2.5rem;
}

/* ── RECHERCHE ─────────────────────────────────────────── */
.faq-search-wrap { max-width: 600px; }
.faq-search-box {
  display: flex; align-items: center; gap: .75rem;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 10px; padding: .75rem 1.2rem;
  transition: border-color .2s, background .2s;
}
.faq-search-box:focus-within {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12);
}
.faq-search-icon { font-size: 1rem; flex-shrink: 0; }
.faq-search-input {
  flex: 1; background: none; border: none; outline: none;
  font-family: var(--font-display); font-size: .95rem; font-weight: 500;
  color: #fff;
}
.faq-search-input::placeholder { color: rgba(255,255,255,0.35); }
.faq-search-clear {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.4); font-size: .9rem; padding: 2px 6px;
  border-radius: 4px; transition: color .2s;
}
.faq-search-clear:hover { color: #fff; }
.faq-search-results {
  margin-top: .6rem;
  font-family: var(--font-display); font-size: .78rem;
  color: rgba(255,255,255,0.45);
}

/* ── FILTRES ───────────────────────────────────────────── */
.faq-filter-bar {
  background: var(--ink); border-top: 1px solid rgba(255,255,255,0.08);
  position: sticky; top: var(--nav-h); z-index: 90;
}
.faq-filter-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; gap: .5rem; overflow-x: auto;
  scrollbar-width: none;
}
.faq-filter-inner::-webkit-scrollbar { display: none; }
.faq-filter-btn {
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  padding: 12px 16px; white-space: nowrap; cursor: pointer;
  background: none; border: none;
  color: rgba(255,255,255,0.45); border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.faq-filter-btn:hover { color: rgba(255,255,255,0.8); }
.faq-filter-btn.active { color: #fff; border-color: var(--red); }

/* ── MAIN ──────────────────────────────────────────────── */
.faq-main { padding: 4rem 2rem 6rem; }

/* ── CATÉGORIE ─────────────────────────────────────────── */
.faq-category { margin-bottom: 3rem; }
.faq-category-header {
  display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem;
}
.faq-category-icon { font-size: 1.3rem; }
.faq-category-title {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 800;
  letter-spacing: -.03em;
}
.faq-category-count {
  font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  background: var(--pale); color: var(--mid);
  padding: 2px 8px; border-radius: 20px;
}

/* ── ACCORDÉON ─────────────────────────────────────────── */
.faq-accordion { display: flex; flex-direction: column; gap: .75rem; }

.faq-item {
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; background: var(--white);
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.faq-item.open { border-color: rgba(200,16,46,0.2); }
.faq-item.open .faq-question { color: var(--red); }
.faq-item.highlight { border-color: var(--accent); background: rgba(232,160,32,0.03); }

.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.2rem 1.5rem; text-align: left;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-size: .95rem; font-weight: 700;
  color: var(--ink); letter-spacing: -.02em; line-height: 1.35;
  transition: color .2s;
}
.faq-question:hover { color: var(--red); }
.faq-chevron {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--pale); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; transition: transform .3s var(--ease), background .2s;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--red); color: #fff;
}

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease), padding .3s;
}
.faq-item.open .faq-answer { max-height: 800px; }
.faq-answer-inner {
  padding: 0 1.5rem 1.4rem;
  font-size: .9rem; line-height: 1.8; color: var(--mid);
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
}
.faq-answer-inner a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.faq-answer-inner strong { color: var(--ink); font-weight: 700; }

/* Tag catégorie sur l'item */
.faq-item-cat {
  font-family: var(--font-display); font-size: .62rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 4px; margin-right: .5rem; flex-shrink: 0;
}
.faq-item-cat.certification { background: rgba(200,16,46,0.08); color: var(--red); }
.faq-item-cat.formation     { background: rgba(232,160,32,0.1); color: #9a6800; }
.faq-item-cat.adhesion      { background: rgba(0,119,73,0.08); color: var(--green); }
.faq-item-cat.general       { background: rgba(0,0,0,0.05); color: var(--mid); }

/* ── ÉTAT VIDE / CHARGEMENT ────────────────────────────── */
.faq-loading, .faq-empty {
  text-align: center; padding: 4rem 2rem;
  font-family: var(--font-display); color: var(--mid);
}

/* Surlignage recherche */
.faq-highlight { background: rgba(232,160,32,0.25); border-radius: 3px; padding: 0 2px; }

/* ── CTA ───────────────────────────────────────────────── */
.faq-cta {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: var(--pale); border-radius: 16px; padding: 2rem 2.5rem;
  border: 1px solid var(--border); margin-top: 3rem;
}
.faq-cta-icon { font-size: 2.2rem; flex-shrink: 0; }
.faq-cta > div { flex: 1; min-width: 220px; }
.faq-cta h3 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  margin-bottom: .3rem; letter-spacing: -.02em;
}
.faq-cta p { font-size: .85rem; color: var(--mid); line-height: 1.6; }
.faq-cta-btn {
  font-family: var(--font-display); font-size: .85rem; font-weight: 700;
  padding: 11px 22px; border-radius: 8px;
  background: var(--red); color: #fff; flex-shrink: 0;
  transition: background .2s, transform .15s;
}
.faq-cta-btn:hover { background: #a50d26; transform: translateY(-2px); }

/* ── SECTION FAQ HOMEPAGE ──────────────────────────────── */
.faq-home-section { background: var(--pale); }
.faq-home-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem;
}
.faq-home-accordion { display: flex; flex-direction: column; gap: .75rem; }
.faq-home-cta {
  display: flex; flex-direction: column; justify-content: center;
  gap: 1.5rem;
}
.faq-home-cta-card {
  background: var(--ink); border-radius: 14px; padding: 2rem;
  position: relative; overflow: hidden;
}
.faq-home-cta-card::before {
  content: '';
  position: absolute; top: -30px; right: -30px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,16,46,0.3) 0%, transparent 70%);
}
.faq-home-cta-card h3 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: #fff; margin-bottom: .5rem; position: relative; z-index: 1;
}
.faq-home-cta-card p {
  font-size: .82rem; color: rgba(255,255,255,0.5); line-height: 1.65;
  margin-bottom: 1.2rem; position: relative; z-index: 1;
}
.faq-home-cta-card a {
  font-family: var(--font-display); font-size: .82rem; font-weight: 700;
  color: #fff; background: var(--red); padding: 8px 16px; border-radius: 7px;
  display: inline-block; transition: background .2s;
  position: relative; z-index: 1;
}
.faq-home-cta-card a:hover { background: #a50d26; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
  .faq-home-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .faq-main { padding: 2.5rem 1.2rem 4rem; }
  .faq-question { font-size: .88rem; padding: 1rem 1.2rem; }
}
