/* ─── FAQ page ────────────────────────────────────────────── */

/* Lien actif dans la nav */
.nav__link--active {
    color: var(--accent);
}

/* ─── Hero ────────────────────────────────────────────────── */
.faq-hero {
    background-color: var(--bg-alt);
    padding: clamp(4rem, 10vw, 7rem) 0 1.5rem;
}

.faq-hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    text-align: center;
}

.faq-hero__sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    text-align: center;
}

/* ─── Corps ───────────────────────────────────────────────── */
.faq-body {
    background-color: var(--bg-alt);
    padding: 1.5rem 0 clamp(3rem, 8vw, 6rem);
    min-height: 60vh;
}

.faq-body__inner {
    max-width: 760px;
}

/* ─── Accordéon ───────────────────────────────────────────── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 1.75rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    transition: color 0.2s;
}

.faq-item__question:hover {
    color: var(--accent);
}

/* Icône + / × */
.faq-item__icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 2px solid var(--border);
    position: relative;
    transition: border-color 0.2s, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity   0.2s;
}

.faq-item__icon::before {
    width: 10px;
    height: 2px;
}

.faq-item__icon::after {
    width: 2px;
    height: 10px;
}

/* État ouvert */
.faq-item--open .faq-item__icon {
    border-color: var(--accent);
    transform: rotate(45deg);
}

.faq-item--open .faq-item__icon::before,
.faq-item--open .faq-item__icon::after {
    background: var(--accent);
}

/* Réponse */
.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item__answer-inner {
    padding: 0 1.75rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.7;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

/* ─── Mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .faq-item__question {
        padding: 1.2rem 1.25rem;
        font-size: 0.97rem;
    }

    .faq-item__answer-inner {
        padding: 0 1.25rem 1.25rem;
        padding-top: 1rem;
    }
}
