/* ============================================================
   Kubi FAQ — kubifaq-front.css
   ============================================================ */

.kubifaq-section {
    --kf-closed: #E85511;
    --kf-open:   #374A58;
    --kf-border: #E85511;
    width: 100%;
    padding: 48px 16px;
    box-sizing: border-box;
}

.kubifaq-wrapper {
    max-width: 990px;
    margin: 0 auto;
}

/* ---- Item wrapper ---- */
.kubifaq-item {
    border: 1.5px solid var(--kf-closed);
    border-radius: 18px;
    margin-bottom: 14px;
    overflow: hidden;
}

.kubifaq-item.is-open {
    border-color: var(--kf-border);
}

/* ---- Bouton question ---- */
.kubifaq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'ITC Avant Garde Gothic Std', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--kf-closed);
    line-height: 1.4;
    -webkit-appearance: none;
    appearance: none;
}

.kubifaq-question:focus {
    outline: 2px dashed var(--kf-closed);
    outline-offset: -4px;
}

.kubifaq-question-text {
    flex: 1;
    padding-right: 16px;
}

/* ---- Icône +/- ---- */
.kubifaq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    position: relative;
}

.kubifaq-icon::before,
.kubifaq-icon::after {
    content: '';
    position: absolute;
    background: var(--kf-closed);
    border-radius: 2px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.kubifaq-icon::before { width: 14px; height: 2px; }
.kubifaq-icon::after  { width: 2px;  height: 14px; }

.kubifaq-item.is-open .kubifaq-icon::after {
    opacity: 0;
    transform: scaleY(0);
}

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

.kubifaq-item.is-open .kubifaq-answer {
    max-height: 800px;
}

.kubifaq-answer-inner {
    padding: 0 24px 20px;
    font-family: 'ITC Avant Garde Gothic Std', sans-serif;
    font-size: 15px;
    color: var(--kf-open);
    line-height: 1.65;
}

.kubifaq-answer-inner p {
    margin: 0 0 8px;
}
.kubifaq-answer-inner p:last-child {
    margin-bottom: 0;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .kubifaq-question {
        padding: 14px 16px;
        font-size: 14px;
    }
    .kubifaq-answer-inner {
        padding: 0 16px 16px;
        font-size: 14px;
    }
}
