/* ══════════════════════════════════════
   pages/faq.css
══════════════════════════════════════ */

/* ── Hero ── */
.faq-hero {
    padding: 8rem 0 4rem;
    background: white;
    position: relative;
    overflow: hidden;
    text-align: center;
}
[data-theme="dark"] .faq-hero { background: #090d1a; }

.faq-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--sky-text);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.8rem;
}
.faq-hero p {
    font-size: 1rem;
    color: var(--sky-muted);
    max-width: 460px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* ── Section ── */
.faq-section {
    padding: 20px 0 80px;
    background: var(--sky-off);
}
[data-theme="dark"] .faq-section { background: #0d1117; }

/* ── Catégories rapides ── */
.faq-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 3rem;
}
.faq-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: white;
    border: 1.5px solid var(--sky-border);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--sky-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
[data-theme="dark"] .faq-cat-btn { background: #161b2e; }
.faq-cat-btn:hover,
.faq-cat-btn.active {
    background: var(--sky-navy);
    border-color: var(--sky-navy);
    color: white;
}
.faq-cat-btn i { font-size: 0.72rem; }

/* ── Accordion ── */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 780px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 14px;
    border: 1.5px solid var(--sky-border);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}
[data-theme="dark"] .faq-item { background: #161b2e; }
.faq-item.open {
    border-color: rgba(74,108,247,0.3);
    box-shadow: 0 4px 20px rgba(74,108,247,0.08);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}
.faq-question:hover { background: var(--sky-off); }
[data-theme="dark"] .faq-question:hover { background: rgba(255,255,255,0.03); }

.faq-q-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(74,108,247,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    color: var(--sky-blue);
    flex-shrink: 0;
    transition: background 0.25s, color 0.25s;
}
.faq-item.open .faq-q-icon {
    background: var(--sky-navy);
    color: white;
}

.faq-q-text {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--sky-text);
    line-height: 1.35;
}

.faq-chevron {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--sky-off);
    border: 1px solid var(--sky-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem;
    color: var(--sky-muted);
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.25s, color 0.25s;
}
[data-theme="dark"] .faq-chevron { background: rgba(255,255,255,0.05); }
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    background: var(--sky-blue);
    border-color: var(--sky-blue);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.faq-answer-inner {
    padding: 1rem 1.5rem 1.4rem 4rem;
    font-size: 0.85rem;
    color: var(--sky-muted);
    line-height: 1.75;
    border-top: 1px solid var(--sky-border);
}
.faq-answer-inner a { color: var(--sky-blue); font-weight: 600; text-decoration: none; }
.faq-answer-inner a:hover { text-decoration: underline; }
.faq-answer-inner ol,
.faq-answer-inner ul { padding-left: 1.4rem; margin: 0.5rem 0 0; }
.faq-answer-inner li { margin-bottom: 0.35rem; }
.faq-answer-inner strong { color: var(--sky-text); font-weight: 700; }

/* ── CTA support ── */
.faq-support {
    max-width: 780px;
    margin: 2.5rem auto 0;
    background: white;
    border: 1.5px solid var(--sky-border);
    border-radius: 18px;
    padding: 1.8rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
[data-theme="dark"] .faq-support { background: #161b2e; }

.faq-support-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(74,108,247,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: var(--sky-blue);
    flex-shrink: 0;
}
.faq-support-text { flex: 1; min-width: 200px; }
.faq-support-text h4 { font-size: 0.95rem; font-weight: 700; color: var(--sky-text); margin: 0 0 0.2rem; }
.faq-support-text p  { font-size: 0.8rem; color: var(--sky-muted); margin: 0; line-height: 1.5; }

/* ── Bloc pub ── */
.faq-ad { padding: 40px 0 20px; background: var(--sky-off); }
[data-theme="dark"] .faq-ad { background: #0d1117; }