/* =============== FAQ & CONSEILS PAGE STYLES =============== */

/* Introduction section */
.faq-intro-section {
    padding: 50px 15px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-intro-section .sec-title {
    margin-bottom: 25px;
}

.faq-intro-section .sec-title h2 {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    color: var(--light-blue);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.faq-intro-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.faq-intro-text p {
    margin-bottom: 15px;
}

.faq-intro-text p:last-child {
    margin-bottom: 0;
}

/* Questions & Réponses section */
.faq-listing-section {
    padding: 0 15px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-listing-section .sec-title {
    margin-bottom: 30px;
}

.faq-listing-section .sec-title h2 {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    color: var(--light-blue);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.faq-listing-section .sec-title .text {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Accordion items */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-accordion-item {
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.faq-accordion-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.faq-accordion-item[open] {
    border-color: var(--navy-blue);
    box-shadow: 0 2px 16px rgba(26, 148, 195, 0.1);
}

.faq-accordion-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2a3b55;
    cursor: pointer;
    list-style: none;
    line-height: 1.4;
    transition: color 0.2s ease, background-color 0.2s ease;
    gap: 15px;
}

.faq-accordion-item summary::-webkit-details-marker {
    display: none;
}

.faq-accordion-item summary::after {
    content: "+";
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--navy-blue);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.faq-accordion-item[open] summary::after {
    content: "−";
    background-color: var(--red);
    transform: rotate(180deg);
}

.faq-accordion-item summary:hover {
    color: var(--navy-blue);
    background-color: #f8fafb;
}

.faq-accordion-item[open] summary {
    color: var(--navy-blue);
    background-color: #f4f9fc;
    border-bottom: 1px solid #e0e4e8;
}

/* Accordion answer content */
.faq-accordion-answer {
    padding: 20px 22px 22px;
}

.faq-accordion-answer p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 18px;
}

/* Read more button */
.faq-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background-color: var(--navy-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.faq-read-more:hover {
    background-color: var(--red);
    transform: translateY(-1px);
}

.faq-read-more i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.faq-read-more:hover i {
    transform: translateX(3px);
}

/* Separator between sections */
.faq-separator {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.faq-separator hr {
    border: none;
    border-top: 2px solid var(--navy-blue);
    opacity: 0.15;
}

/* =============== RESPONSIVE =============== */

@media (max-width: 768px) {
    .faq-intro-section {
        padding: 35px 15px 30px;
    }

    .faq-listing-section {
        padding: 0 15px 40px;
    }

    .faq-accordion-item summary {
        padding: 15px 16px;
        font-size: 0.98rem;
    }

    .faq-accordion-answer {
        padding: 16px 16px 18px;
    }

    .faq-accordion-item summary::after {
        width: 26px;
        height: 26px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .faq-intro-section .sec-title h2,
    .faq-listing-section .sec-title h2 {
        font-size: 1.3rem;
    }

    .faq-intro-text {
        font-size: 0.98rem;
    }

    .faq-accordion-item summary {
        padding: 13px 14px;
        font-size: 0.93rem;
        gap: 10px;
    }

    .faq-accordion-answer {
        padding: 14px 14px 16px;
    }

    .faq-accordion-answer p {
        font-size: 0.93rem;
    }

    .faq-read-more {
        padding: 9px 18px;
        font-size: 0.88rem;
    }
}
