/* public/css/faq_page.css */

.faq-page-section {
    background-color: #1c1c1c;
    padding: 60px 0;
}

.faq-category {
    margin-bottom: 50px;
}
.faq-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.8rem;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #2ECC71;
    display: inline-block;
    padding-bottom: 10px;
    /* Pour centrer le titre */
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* NOUVELLE STRUCTURE DE COLONNES AVEC FLEXBOX */
.faq-columns-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.faq-column {
    flex: 1; /* Chaque colonne prend la moitié de l'espace */
    min-width: 0; /* Important pour que flexbox gère bien le wrapping */
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espace entre les items dans une même colonne */
}

/* Les styles pour les items individuels restent les mêmes */
.faq-item {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.faq-question:hover {
    background-color: #333;
}
.faq-item.active .faq-question {
    background-color: #2ECC71;
    color: #1a1a1a;
}

/* On ne fait plus tourner l'icône, on la change juste */
.faq-icon {
    transition: color 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out; /* On ne transitionne que la hauteur */
    background-color: #25282a;
}
.faq-answer p {
    padding: 0 20px 20px 20px; /* Padding uniquement en bas pour l'espace */
    margin: 0;
    color: #b0b0b0;
    line-height: 1.6;
}

/* Responsive : les colonnes passent l'une sous l'autre */
@media (max-width: 768px) {
    .faq-columns-container {
        flex-direction: column;
    }
}