/* =========================
   FAQ
========================= */

.faq-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}


/* Introduction */

.faq-intro {
    text-align: center;
    margin-bottom: 45px;
}

.faq-intro h1 {
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.faq-intro p {
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}


/* Liste */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


/* Élément FAQ */

.faq-item {
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
}


/* Question */

.faq-question {
    width: 100%;
    border: none;
    background: transparent;
    color: inherit;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 25px;

    font-size: 1rem;
    font-weight: bold;

    text-align: left;
    cursor: pointer;

    transition: background 0.2s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.08);
}


/* Icône + */

.faq-icon {
    font-size: 1.5rem;
    min-width: 25px;
    text-align: center;

    transition: transform 0.3s ease;
}


/* Réponse */

.faq-answer {
    max-height: 0;
    overflow: hidden;

    transition:
            max-height 0.35s ease,
            padding 0.35s ease;
}

.faq-answer p {
    margin: 0;
    padding: 0 25px 20px;

    line-height: 1.7;
}


/* FAQ ouverte */

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}


/* Appel à l'action */

.faq-contact {
    text-align: center;
    margin-top: 60px;
    padding: 35px 20px;

    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.faq-contact h2 {
    margin-bottom: 10px;
}

.faq-contact p {
    margin-bottom: 25px;
}


.faq-contact-button {
    display: inline-block;

    padding: 12px 25px;

    border-radius: 8px;

    text-decoration: none;
    font-weight: bold;

    transition: transform 0.2s ease;
}

.faq-contact-button:hover {
    transform: translateY(-2px);
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .faq-container {
        margin: 35px auto;
        padding: 0 15px;
    }

    .faq-intro h1 {
        font-size: 1.8rem;
    }

    .faq-question {
        padding: 17px;
        font-size: 0.95rem;
    }

    .faq-answer p {
        padding: 0 17px 17px;
    }

}