/* =============================================
   STYLES FAQ - À ajouter à style.css
   ============================================= */

/* Container FAQ */
.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    color: #666;
}

.breadcrumb a {
    color: #0077b6;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #005f87;
    text-decoration: underline;
}

/* Introduction FAQ */
.faq-intro {
    background: #f0f8ff;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid #0077b6;
}

.faq-intro p {
    margin: 0;
    line-height: 1.6;
}

.faq-intro a {
    color: #0077b6;
    font-weight: 600;
    text-decoration: none;
}

.faq-intro a:hover {
    text-decoration: underline;
}

/* Navigation des catégories */
.faq-navigation {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.faq-navigation h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #023e8a;
}

.faq-category-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.faq-category-link {
    display: block;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #e6f2f2, #f8faff);
    border-radius: 8px;
    text-decoration: none;
    color: #0077b6;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.faq-category-link:hover {
    background: #0077b6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.3);
}

/* Catégories FAQ */
.faq-category {
    margin-bottom: 3rem;
    scroll-margin-top: 100px; /* Pour le smooth scroll */
}

.faq-category-title {
    font-size: 2rem;
    color: #023e8a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #0077b6;
}

/* Items FAQ */
.faq-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

/* Question (bouton) */
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem 1.5rem;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #023e8a;
    transition: all 0.3s;
    gap: 1rem;
}

.faq-question:hover {
    background: #f8faff;
}

.faq-question.active {
    background: #e6f2f2;
    color: #005f87;
}

.faq-question:focus {
    outline: 2px solid #0077b6;
    outline-offset: -2px;
}

.faq-question-text {
    flex: 1;
}

/* Icône + / − */
.faq-icon {
    font-size: 1.8rem;
    font-weight: 300;
    color: #0077b6;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e6f2f2;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s, background 0.3s;
}

.faq-question.active .faq-icon {
    background: #0077b6;
    color: white;
    transform: rotate(180deg);
}

/* Réponse */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: #f8faff;
}

.faq-answer:not([hidden]) {
    padding: 1.3rem 1.5rem;
}

.faq-answer p {
    margin: 0;
    color: #333;
    line-height: 1.7;
    font-size: 1rem;
}

/* CTA Final */
.faq-cta {
    background: linear-gradient(135deg, #0077b6, #005f87);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 4rem;
}

.faq-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.faq-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.faq-cta .btn {
    background: white;
    color: #0077b6;
    font-weight: bold;
}

.faq-cta .btn:hover {
    background: #f0f8ff;
    transform: translateY(-3px);
}

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

@media (max-width: 768px) {
    .faq-container {
        padding: 2rem 1.2rem;
    }

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

    .faq-question {
        font-size: 1rem;
        padding: 1rem 1.2rem;
    }

    .faq-answer:not([hidden]) {
        padding: 1rem 1.2rem;
    }

    .faq-icon {
        font-size: 1.5rem;
        width: 26px;
        height: 26px;
    }

    .faq-category-links {
        grid-template-columns: 1fr;
    }

    .faq-cta {
        padding: 2rem 1.5rem;
    }

    .faq-cta h2 {
        font-size: 1.5rem;
    }

    .faq-cta p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .faq-question {
        font-size: 0.95rem;
        padding: 0.9rem 1rem;
    }

    .faq-answer {
        font-size: 0.9rem;
    }
}
