/* =====================================================
   ecfaq - FAQ Module CSS
   Ether Création
   ===================================================== */

/* Section */
.ecfaq-product-section,
.ecfaq-category-section {
    margin: 40px 0;
    padding: 0;
}

.ecfaq-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e5e5;
    color: #2d2d2d;
}

/* Accordéon */
.ecfaq-accordion {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.ecfaq-item {
    border-bottom: 1px solid #e0e0e0;
}

.ecfaq-item:last-child {
    border-bottom: none;
}

/* Question (bouton) */
.ecfaq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #2d2d2d;
    text-align: left;
    transition: background 0.2s ease;
    line-height: 1.4;
    gap: 10px;
}

.ecfaq-question:hover {
    background: #f8f9fa;
}

.ecfaq-question[aria-expanded="true"] {
    background: #f0f4ff;
    color: #2056b3;
}

/* Icône chevron */
.ecfaq-icon {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    display: flex;
    align-items: center;
    color: #888;
}

.ecfaq-question[aria-expanded="true"] .ecfaq-icon {
    transform: rotate(180deg);
    color: #2056b3;
}

/* Réponse */
.ecfaq-answer {
    background: #fafbff;
    overflow: hidden;
    animation: ecfaq-open 0.25s ease;
}

.ecfaq-answer[hidden] {
    display: none;
}

.ecfaq-answer-content {
    padding: 16px 20px 20px 20px;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.7;
}

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

@keyframes ecfaq-open {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 576px) {
    .ecfaq-question {
        padding: 14px 15px;
        font-size: 0.92rem;
    }
    .ecfaq-answer-content {
        padding: 12px 15px;
    }
}
