/* ============================================================
   FAQ V2 — Styles minimaux
   Surchargeable depuis le thème.
   Convention : toutes les règles sont sous .faq2-wrapper
   ============================================================ */

.faq2-wrapper {
    width: 100%;
}

/* ---- Item ---- */
.faq2-item {
    border-bottom: 1px solid currentColor;
}

/* ---- Question ---- */
.faq2-question {
    /* Le Hn ou div wrappant le bouton */
}

.faq2-question__label {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

.faq2-btn {
    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: inherit;
    font-family: inherit;
    color: inherit;
    font-weight: bold;
}

.faq2-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.faq2-btn__text {
    flex: 1;
    padding-right: 1rem;
}

/* ---- Chevron ----
   Carré border-trick, rotation selon état.
   À surcharger dans le thème si font-icon disponible.
   -------------------------------------------------------- */
.faq2-chevron {
    display: inline-block;
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);   /* pointe vers le bas = fermé */
    transition: transform 0.2s ease;
}

/* Quand le bouton est expanded, le chevron pointe vers le haut */
.faq2-btn[aria-expanded="true"] .faq2-chevron {
    transform: rotate(-135deg);
}

/* ---- Réponse ---- */
.faq2-response {
    overflow: hidden;
}

.faq2-response[hidden] {
    display: none;
}

.faq2-response__inner {
    padding: 0.5rem 0 1rem;
}

/* ---- Contenus dans la réponse ---- */
.faq2-response__inner > *:first-child {
    margin-top: 0;
}

.faq2-response__inner > *:last-child {
    margin-bottom: 0;
}
