/* Styles pour la FAQ */

.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Barre de recherche */
.faq-search {
    position: relative;
    margin-bottom: 30px;
}

.faq-search input {
    width: 100%;
    padding: 15px 20px;
    padding-right: 50px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.faq-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(101, 183, 65, 0.2);
}

.faq-search i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-medium);
    font-size: 18px;
}

/* Catégories */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.faq-category {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-medium);
    transition: all 0.3s;
}

.faq-category:hover {
    background-color: rgba(101, 183, 65, 0.1);
    color: var(--primary);
    border-color: var(--primary);
}

.faq-category.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Items de FAQ */
.faq-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    border-bottom: 1px solid transparent;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    position: relative;
    padding-left: 15px;
}

.faq-question h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 65%;
    width: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    color: var(--primary);
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    border-bottom: 1px solid var(--border);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    padding: 20px;
}

.faq-answer p {
    margin-top: 0;
    line-height: 1.6;
    color: var(--text-medium);
}

.faq-answer ul, .faq-answer ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.faq-answer li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.faq-answer h4 {
    margin: 20px 0 10px;
    color: var(--text-dark);
}

.faq-answer code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* Filtrage par catégorie */
.faq-item.filtered {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-categories {
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    
    .faq-category {
        white-space: nowrap;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
} 