/* ==========================================================
   Cyclable Category FAQ — Front-office styles
   ========================================================== */

.category-faq-block {
    width: 100%;
    max-width: 100%;
    margin: 2rem auto 1rem;
    padding: 0 0;
    box-sizing: border-box;
}

.category-faq-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #232323;
}

.category-faq-list {
    border-top: 1px solid #e5e5e5;
}

/* ---- Item ---- */
.category-faq-item {
    border-bottom: 1px solid #e5e5e5;
}

/* ---- Question (button) ---- */
.category-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 600;
    color: #232323;
    line-height: 1.4;
    gap: 1rem;
}

.category-faq-question:hover {
    color: #0056b3;
}

.category-faq-question:focus {
    outline: 2px solid #0056b3;
    outline-offset: -2px;
}

/* ---- Chevron ---- */
.category-faq-chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.category-faq-item.is-open .category-faq-chevron {
    transform: rotate(180deg);
}

/* ---- Answer ---- */
.category-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.category-faq-item.is-open .category-faq-answer {
    max-height: 2000px; /* suffisamment grand pour le contenu */
}

.category-faq-answer-inner {
    padding: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.category-faq-answer-inner p {
    margin-bottom: 0.5rem;
}

.category-faq-answer-inner p:last-child {
    margin-bottom: 0;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .category-faq-block {
        margin: 1.5rem auto 0.5rem;
    }

    .category-faq-title {
        font-size: 1.25rem;
    }

    .category-faq-question {
        font-size: 0.95rem;
        padding: 0.85rem 0;
    }
}
