/* ============================================
   FAQ PAGE
   Questions fréquentes
   ============================================ */

.faq-page {
    padding: 60px 0;
    background: linear-gradient(to bottom, #F9FBFD 0%, #FFFFFF 100%);
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-header h1 {
    font-size: 2.5rem;
    color: #1A2332;
    margin-bottom: 15px;
}

.faq-page .section-intro {
    font-size: 1.2rem;
    color: #3B5073;
    max-width: 600px;
    margin: 0 auto;
}

.faq-categories {
    max-width: 900px;
    margin: 0 auto;
}

.faq-category {
    margin-bottom: 50px;
}

.category-title {
    font-size: 1.8rem;
    color: #0077BE;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0077BE;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 119, 190, 0.15);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1A2332;
    text-align: left;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #F9FBFD;
}

.faq-question[aria-expanded="true"] {
    background-color: #E3F2FD;
    color: #0077BE;
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #0077BE;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px 20px 25px;
    color: #3B5073;
    line-height: 1.7;
    font-size: 1rem;
}

.faq-answer p {
    margin-bottom: 10px;
}

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

.faq-answer li {
    margin-bottom: 5px;
}

.faq-answer strong {
    color: #1A2332;
}

/* Share Link Button */
.faq-share {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #E3F2FD;
}

.share-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #F9FBFD;
    border: 1px solid #0077BE;
    border-radius: 6px;
    color: #0077BE;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-link-btn:hover {
    background: #E3F2FD;
    transform: translateY(-1px);
}

.share-link-btn svg {
    flex-shrink: 0;
}

.share-link-btn .copied-text {
    color: #28a745;
    font-weight: 600;
}

/* Contact CTA Section */
.faq-contact {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #0077BE 0%, #005A94 100%);
    border-radius: 12px;
    color: white;
}

.faq-contact h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.faq-contact p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

.faq-contact .btn {
    background: white;
    color: #0077BE;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.faq-contact .btn:hover {
    background: #F9FBFD;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.no-faqs {
    text-align: center;
    padding: 60px 20px;
    color: #3B5073;
}

/* Highlight effect for targeted FAQ */
.faq-item.highlight {
    animation: faq-highlight 2s ease;
}

@keyframes faq-highlight {
    0%, 100% {
        background: white;
    }
    50% {
        background: #FFF9E6;
        box-shadow: 0 0 20px rgba(0, 119, 190, 0.3);
    }
}

/* Back to Top Button */
.faq-page .back-to-top {
    position: fixed;
    bottom: 4rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--dark-navy);
    border: 3px solid var(--dark-navy);
    border-radius: 0;
    font-size: 1.5rem;
    font-weight: 900;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
}

.faq-page .back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.faq-page .back-to-top:hover {
    background: var(--dark-navy);
    color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
}

.faq-page .back-to-top:active {
    transform: translateY(-2px);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .faq-header h1 {
        font-size: 2rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95rem;
    }

    .faq-contact {
        padding: 30px 20px;
    }

    .faq-contact h3 {
        font-size: 1.5rem;
    }

    .faq-page .back-to-top {
        bottom: 2rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}
