.product-faq,
.elementor-widget-faq {
    margin: 2rem 0;
}

.faq-main-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background-color: #f0f0f0;
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.faq-main-title:hover {
    background-color: #e9ecef;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.faq-main-title h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.current-category-id {
    background-color: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    display: inline-block;
    font-weight: 500;
    color: #666;
    border: 1px solid #e0e0e0;
}

.faq-toggle-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #666;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 22px;
}

.faq-group,
.elementor-widget-faq .faq-group {
    margin-bottom: 2rem;
}

.faq-group-title,
.elementor-widget-faq .faq-group-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.faq-item,
.elementor-widget-faq .faq-item {
    padding: 0;
    margin-bottom: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background: #fff;
    transition: all 0.3s ease;
}

.faq-item:hover,
.elementor-widget-faq .faq-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.faq-question,
.elementor-widget-faq .faq-question {
    padding: 1.25rem;
    background-color: #f8f9fa;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.faq-question:hover,
.elementor-widget-faq .faq-question:hover {
    background-color: #e9ecef;
}

.faq-question.active,
.faq-question:focus {
    border-radius: 8px 8px 0 0;
}
.question-icon,
.elementor-widget-faq .question-icon {
    margin-right: 1rem;
    color: #666;
    font-size: 1.1rem;
}

.question-text,
.elementor-widget-faq .question-text {
    flex: 1;
    line-height: 1.4;
}

.faq-question::after,
.elementor-widget-faq .faq-question::after {
    content: '';
    position: absolute;
    right: 1.25rem;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.faq-question.active::after,
.elementor-widget-faq .faq-question.active::after {
    transform: rotate(180deg);
}

.faq-answer,
.elementor-widget-faq .faq-answer {
    padding: 1.25rem;
    border-top: 1px solid #e0e0e0;
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.answer-icon,
.elementor-widget-faq .answer-icon {
    float: left;
    margin-right: 1rem;
    color: #666;
    font-size: 1.1rem;
}

.answer-text,
.elementor-widget-faq .answer-text {
    overflow: hidden;
    line-height: 1.6;
    color: #666;
}

/* Style pour l'accordéon */
.product-faq[data-layout="accordion"] .faq-item,
.elementor-widget-faq[data-layout="accordion"] .faq-item {
    margin-bottom: 0.5rem;
}

.product-faq[data-layout="accordion"] .faq-answer,
.elementor-widget-faq[data-layout="accordion"] .faq-answer {
    background-color: #fff;
    border-radius: 0 0 8px 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-group-title,
    .elementor-widget-faq .faq-group-title {
        font-size: 1.25rem;
    }

    .faq-question,
    .elementor-widget-faq .faq-question {
        padding: 1rem;
    }

    .faq-answer,
    .elementor-widget-faq .faq-answer {
        padding: 1rem;
    }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
