/* --- HERO SECTION --- */
.faq-hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 1.5rem;
    /* RÉDUIT : Colle les onglets au bas du hero */
    text-align: center;
    overflow: hidden;
}

/* Background Glow Effect */
.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 3.5rem;
    }
}

/* --- SEARCH BAR --- */
.search-wrapper {
    max-width: 500px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-container {
    position: relative;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.search-container:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 8px 25px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.search-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-tertiary);
    margin-left: 1rem;
    margin-right: 0.75rem;
}

.search-container input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    padding: 0.75rem 0;
    outline: none;
}

.search-container input::placeholder {
    color: var(--text-muted);
}

/* --- TABS --- */
.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.tab-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.625rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: var(--surface-light);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.tab-btn.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-light);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

/* --- FAQ SECTION LAYOUT --- */
/* Surcharge importante pour réduire les espaces du base.css */
.faq-section {
    padding-top: 1.5rem;
    /* Colle la grille aux onglets */
    padding-bottom: 6rem;
    /* Espace modéré avant le CTA */
}

/* Optionnel : Grille sur grand écran */
/* @media (min-width: 1024px) {
    .faq-grid { grid-template-columns: repeat(2, 1fr); align-items: start; }
} */

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.faq-item:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.faq-item.active {
    background: linear-gradient(to bottom, rgba(30, 41, 59, 0.8), rgba(30, 41, 59, 0.5));
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2), 0 10px 40px rgba(59, 130, 246, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
}

.faq-question span {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.faq-item.active .faq-question span {
    color: var(--text-primary);
}

.faq-icon-wrapper {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item:hover .faq-icon-wrapper {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-light);
}

.faq-item.active .faq-icon-wrapper {
    background: var(--accent-primary);
}

.faq-item.active .faq-icon {
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.active .faq-answer {
    max-height: 800px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-tertiary);
    line-height: 1.7;
    font-size: 0.95rem;
    border-top: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.faq-item.active .faq-answer-content {
    border-top-color: var(--border-light);
    padding-top: 1.5rem;
}

/* Styled lists inside answers */
.styled-list {
    list-style: none;
    margin: 1rem 0;
    padding-left: 0.5rem;
}

.styled-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--accent-primary);
}

.highlight-green {
    color: #10b981;
    font-weight: 700;
}

.note {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Pricing Mini Table Style */
.pricing-table-mini {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.pricing-table-mini .row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.pricing-table-mini .row:last-child {
    border-bottom: none;
}

.pricing-table-mini span {
    color: var(--text-tertiary);
}

.pricing-table-mini strong {
    color: var(--text-primary);
}


/* --- NO RESULTS STATE --- */
.no-results {
    text-align: center;
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.no-results.hidden {
    display: none;
}

.no-results-icon {
    font-size: 3rem;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

/* --- CTA SECTION --- */
/* Surcharge pour coller cette section à la FAQ */
.cta-section {
    padding-top: 0;
    /* Colle le bouton à la grille précédente */
    padding-bottom: 6rem;
    /* Espace final avant le footer */
}

.cta-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

@media (min-width: 768px) {
    .cta-card {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-direction: column;
}

@media (min-width: 768px) {
    .cta-content {
        flex-direction: row;
    }
}

.cta-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-icon svg {
    width: 2rem;
    height: 2rem;
}

.cta-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cta-text p {
    color: var(--text-tertiary);
}

/* Animations d'apparition */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}



@media (max-width: 767px) {
    .faq-hero {
        padding-top: 6rem;
        padding-bottom: 1rem;
    }

    .faq-hero .badge {
        margin-bottom: 1.5rem;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .hero-glow {
        width: 400px;
        height: 400px;
    }

    .search-wrapper {
        max-width: 100%;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .search-container {
        padding: 0.375rem;
    }

    .search-icon {
        width: 1rem;
        height: 1rem;
        margin-left: 0.75rem;
        margin-right: 0.5rem;
    }

    .search-container input {
        font-size: 0.9375rem;
        padding: 0.625rem 0;
    }

    .category-tabs {
        gap: 0.5rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .faq-section {
        padding-top: 1rem;
        padding-bottom: 4rem;
    }

    .faq-grid {
        gap: 1rem;
        padding: 0 1rem;
    }

    .faq-question {
        padding: 1.25rem;
        gap: 1rem;
    }

    .faq-question span {
        font-size: 0.9375rem;
    }

    .faq-icon-wrapper {
        width: 1.75rem;
        height: 1.75rem;
    }

    .faq-icon {
        width: 1rem;
        height: 1rem;
    }

    .faq-answer-content {
        padding: 0 1.25rem 1.25rem 1.25rem;
        font-size: 0.875rem;
    }

    .faq-item.active .faq-answer-content {
        padding-top: 1.25rem;
    }

    .cta-section {
        padding-bottom: 4rem;
    }

    .cta-card {
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        margin: 0 1rem;
    }

    .cta-content {
        gap: 1.25rem;
    }

    .cta-icon {
        width: 3.5rem;
        height: 3.5rem;
    }

    .cta-icon svg {
        width: 1.75rem;
        height: 1.75rem;
    }

    .cta-text h3 {
        font-size: 1.25rem;
    }

    .cta-text p {
        font-size: 0.9375rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .no-results {
        padding: 3rem 1rem;
    }

    .no-results-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .faq-hero {
        padding-top: 5rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .section-description {
        font-size: 0.9375rem;
    }

    .search-wrapper {
        padding: 0 0.75rem;
    }

    .category-tabs {
        padding: 0 0.75rem;
        gap: 0.375rem;
    }

    .tab-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .faq-grid {
        padding: 0 0.75rem;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-question span {
        font-size: 0.875rem;
    }

    .faq-answer-content {
        padding: 0 1rem 1rem 1rem;
        font-size: 0.8125rem;
    }

    .faq-item.active .faq-answer-content {
        padding-top: 1rem;
    }

    .cta-card {
        padding: 1.75rem 1.25rem;
        margin: 0 0.75rem;
    }

    .cta-icon {
        width: 3rem;
        height: 3rem;
    }

    .cta-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .cta-text h3 {
        font-size: 1.125rem;
    }

    .cta-text p {
        font-size: 0.875rem;
    }

    .styled-list li {
        padding-left: 0.75rem;
    }

    .pricing-table-mini {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}