/* FAQ — AnonyModels (mini CMS)
   Fichier: faq.css
*/

html {
    scroll-behavior: smooth;
}

/* Optional: if your header is sticky, this helps anchors not hide behind it */
.am-faq__item {
    scroll-margin-top: 96px;
}

.am-faq-toc {
    margin: 22px 0 28px;
    padding: 16px;
    border: 1px solid #e6e8ee;
    border-radius: 14px;
    background: #f8f9fc;
}

.am-faq-toc__heading {
    display: block;
    margin-bottom: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.am-faq-toc__grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
}

@media (max-width: 1024px) {
    .am-faq-toc__grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 640px) {
    .am-faq-toc__grid {
        grid-template-columns: 1fr;
    }
}

.am-faq-toc__block {
    padding: 10px 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(230,232,238,0.9);
}

.am-faq-toc__title {
    font-weight: 900;
    margin: 6px 0 8px;
    font-size: 1.15rem;
    color: #0f172a;
}

.am-faq-toc__list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.7;
    font-size: 1.02rem;
    list-style: disc;
}

.am-faq-toc__link {
    text-decoration: none;
    color: #111827;
    font-weight: 500;
}

    .am-faq-toc__link:hover {
        text-decoration: underline;
    }

/* Content */
.am-faq {
    margin-top: 18px;
}

.am-faq__category {
    margin: 26px 0 12px;
    font-size: 1.25rem;
    font-weight: 900;
    color: #0f172a;
}

.am-faq__item {
    border: 1px solid #e6e8ee;
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 16px 14px;
    margin: 12px 0;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.am-faq__question {
    margin: 0 0 10px;
    font-size: 1.12rem;
    line-height: 1.35;
    font-weight: 900;
    color: #0f172a;
}

.am-faq__answer p {
    margin: 0 0 10px;
    line-height: 1.85;
    font-size: 1.02rem;
    color: #111827;
}

    .am-faq__answer p:last-child {
        margin-bottom: 0;
    }

.am-faq__answer ul {
    margin: 8px 0 10px;
    padding-left: 18px;
    line-height: 1.85;
    font-size: 1.02rem;
    color: #111827;
}

.am-faq__answer li {
    margin: 4px 0;
}

.am-faq__divider {
    height: 1px;
    border: 0;
    background: #eef0f5;
    margin: 22px 0;
}

.am-faq__link {
    color: #0f172a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

    .am-faq__link:hover {
        opacity: 0.85;
    }
