/* FAQ Section */
.ivx-faq-section {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

/* Titre FAQ */
.faq-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    font-style: italic;
    position: relative;
}

.faq-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin-top: 3px;
}

.dark-mode .faq-title {
    color: #fff;
}

/* Container FAQ */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Items FAQ */
.faq-item {
    border: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
    margin: 0;
    transition: all 0.2s ease;
}

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

/* Mode sombre */
.dark-mode .faq-item {
    border-bottom: 1px solid #444;
}

/* Question */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1.5rem 0;
    transition: all 0.2s ease;
}

.faq-question h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex-grow: 1;
    padding-right: 1rem;
    line-height: 1.4;
}

.dark-mode .faq-question h3 {
    color: #fff;
}

/* Icône +/- */
.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #666;
    transition: all 0.2s ease;
}

.dark-mode .faq-icon {
    color: #ccc;
}

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

.faq-icon .icon-minus {
    display: none;
}

.faq-item.active .faq-icon .icon-plus {
    display: none;
}

.faq-item.active .faq-icon .icon-minus {
    display: block;
}

.faq-item.active .faq-icon {
    color: var(--accent-color);
}

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

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-answer-content {
    padding-right: 44px; /* Espace pour l'icône */
}

.faq-answer-content p {
    margin: 0;
    line-height: 1.6;
    color: #666;
    font-size: 15px;
}

.faq-answer-content p a {
    color: #f0b400;
    text-decoration: underline;
}

.faq-answer-content p a:hover {
    color: #d9a200;
}

.dark-mode .faq-answer-content p {
    color: #ccc;
}

.dark-mode .faq-answer-content p a {
    color: #f0b400;
}


/* Message si pas de FAQ */
.no-faq {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem 0;
}

.dark-mode .no-faq {
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ivx-faq-section {
        margin-top: 3rem;
        margin-bottom: 3rem;
    }

    .faq-title {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .faq-question {
        padding: 1.2rem 0;
    }

    .faq-question h3 {
        font-size: 15px;
        padding-right: 0.75rem;
    }

    .faq-answer-content {
        padding-right: 36px;
    }

    .faq-answer-content p {
        font-size: 14px;
    }

    .faq-item.active .faq-answer {
        padding-bottom: 1.2rem;
    }
}

@media (max-width: 480px) {
    .ivx-faq-section {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .faq-title {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .faq-question {
        padding: 1rem 0;
    }

    .faq-question h3 {
        font-size: 14px;
        padding-right: 0.5rem;
    }

    .faq-icon {
        width: 20px;
        height: 20px;
    }

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

    .faq-answer-content {
        padding-right: 30px;
    }

    .faq-answer-content p {
        font-size: 13px;
    }

    .faq-item.active .faq-answer {
        padding-bottom: 1rem;
    }
}