/* ============================================================
   Ochanta FAQ Manager — Frontend Styles
   ============================================================ */

.ochanta-faq-wrapper {
    width: 100%;
    font-family: inherit;
}

/* Item */
.ochanta-faq-item {
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.ochanta-faq-item + .ochanta-faq-item {
    margin-top: 8px;
}

/* Question */
.ochanta-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background-color: #F0F4FB;
    color: #1B3A6B;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease, border-radius 0.2s ease;
    user-select: none;
    font-weight: 600;
    line-height: 1.4;
}

.ochanta-faq-question:hover {
    background-color: #dce6f5;
}

.ochanta-faq-item.ochanta-faq-open .ochanta-faq-question {
    background-color: #1B3A6B;
    color: #ffffff;
    border-radius: 6px 6px 0 0;
}

.ochanta-faq-question-text {
    flex: 1;
}

/* Icône chevron */
.ochanta-faq-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform 0.25s ease;
}

.ochanta-faq-icon svg {
    width: 16px;
    height: 16px;
}

.ochanta-faq-item.ochanta-faq-open .ochanta-faq-icon {
    transform: rotate(180deg);
}

/* Réponse */
.ochanta-faq-answer {
    background-color: #ffffff;
    border: 1px solid #dce6f5;
    border-top: none;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.ochanta-faq-answer-content {
    padding: 16px 20px;
    color: #444444;
    line-height: 1.7;
}

.ochanta-faq-answer-content p:last-child {
    margin-bottom: 0;
}

.ochanta-faq-answer-content ul,
.ochanta-faq-answer-content ol {
    padding-left: 20px;
    margin: 8px 0;
}

/* =====================
   Style : Liste ouverte
   ===================== */
.ochanta-faq-style-list .ochanta-faq-question {
    cursor: default;
    background-color: transparent;
    color: #1B3A6B;
    padding: 0 0 8px 0;
    border-bottom: 2px solid #1B3A6B;
    border-radius: 0;
    font-size: 1.05em;
}

.ochanta-faq-style-list .ochanta-faq-icon {
    display: none;
}

.ochanta-faq-style-list .ochanta-faq-answer {
    display: block !important;
    border: none;
    border-radius: 0;
    background: transparent;
}

.ochanta-faq-style-list .ochanta-faq-answer-content {
    padding: 12px 0 20px 0;
}

.ochanta-faq-style-list .ochanta-faq-item + .ochanta-faq-item {
    margin-top: 24px;
}

/* =====================
   Style : Minimal
   ===================== */
.ochanta-faq-style-minimal .ochanta-faq-question {
    background: transparent;
    color: inherit;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    font-weight: 600;
}

.ochanta-faq-style-minimal .ochanta-faq-item.ochanta-faq-open .ochanta-faq-question {
    background: transparent;
    color: #1B3A6B;
    border-radius: 0;
}

.ochanta-faq-style-minimal .ochanta-faq-answer {
    border: none;
    border-radius: 0;
    background: transparent;
}

.ochanta-faq-style-minimal .ochanta-faq-answer-content {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

/* Accessibilité */
.ochanta-faq-question:focus {
    outline: 2px solid #1B3A6B;
    outline-offset: 2px;
}

.ochanta-faq-question:focus:not(:focus-visible) {
    outline: none;
}

/* Placeholder Elementor */
.ochanta-faq-placeholder {
    background: #f8f8f8;
    border: 2px dashed #ccc;
    border-radius: 6px;
    padding: 24px;
    text-align: center;
    color: #888;
}

/* Message d'erreur */
.ochanta-faq-error {
    color: #c0392b;
    font-size: 0.9em;
}

/* Animation ouverture */
@media (prefers-reduced-motion: no-preference) {
    .ochanta-faq-answer {
        transition: none;
    }
}
