/* Page FAQ : navigation par thème + accordéons au style du thème (nested accordion Elementor) */
.bw-faq {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    font-family: "Hanken Grotesk", system-ui, sans-serif;
    color: #1f2124;
}

/* Thèmes : pastilles comme les « Trajets fréquents » */
.bw-faq-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 40px;
    padding: 0;
}
.bw-faq-nav a {
    padding: 8px 16px;
    border: 1px solid #e6e9ef;
    border-radius: 999px;
    background: #fff;
    color: var(--bw-black);
    font-size: 14px;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.bw-faq-nav a:hover, .bw-faq-nav a.on { border-color: var(--bw-orange, var(--bw-orange)); color: var(--bw-orange, var(--bw-orange)); }

.bw-faq-cat { scroll-margin-top: 90px; margin-bottom: 44px; }
.bw-faq .bw-faq-title {
    margin: 0 0 16px !important;
    font-family: "Young Serif", Georgia, serif; font-weight: 400;
    font-size: 24px !important;
    font-weight: 500;
    line-height: 1.3 !important;
    color: var(--bw-black);
}

/* Accordéon */
.bw-faq-item {
    margin-bottom: 12px;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    background: #fff;
    transition: border-color .2s;
}
.bw-faq-item[open] { border-color: #d9cfbb; }
.bw-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 24px 18px;
    color: #1f2124;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    list-style: none;
    cursor: pointer;
}
.bw-faq-item summary::-webkit-details-marker { display: none; }
.bw-faq-item summary svg { flex: none; color: #4a5468; transition: transform .25s; }
.bw-faq-item[open] summary svg { transform: rotate(180deg); }
.bw-faq-item summary:hover { color: var(--bw-orange, var(--bw-orange)); }
.bw-faq-item summary:focus-visible { outline: 2px solid var(--bw-orange, var(--bw-orange)); outline-offset: 2px; border-radius: 8px; }
.bw-faq-answer {
    padding: 16px 24px 20px;
    border-top: 1px solid #e6e9ef;
    animation: bw-faq-in .25s ease;
}
.bw-faq-answer p { margin: 0; color: #4a5468; font-size: 15px; line-height: 1.7; }
.bw-faq-answer a { color: var(--bw-orange, var(--bw-orange)); text-decoration: underline; text-underline-offset: 2px; }
.bw-faq-answer strong { color: #1f2124; font-weight: 600; }
@keyframes bw-faq-in { from { opacity: 0; transform: translateY(-4px); } }

@media (max-width: 767px) {
    .bw-faq-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        margin: 0 0 28px;
        padding: 0 0 4px;
        scrollbar-width: none;
    }
    .bw-faq-nav::-webkit-scrollbar { display: none; }
    .bw-faq-nav a { flex: none; }
    .bw-faq .bw-faq-title { font-size: 20px !important; }
    .bw-faq-item summary { padding: 15px 18px; font-size: 15px; }
    .bw-faq-answer { padding: 14px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .bw-faq-answer { animation: none; }
}
