:root {
    --primary-blue: #1e40af;
    --primary-cyan: #0891b2;
    --text-dark: #1e293b;
    --text-medium: #64748b;
    --text-light: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --accent-purple: #8b5cf6;
}

.faq-hero {
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.faq-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.faq-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.faq-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.faq-search-box {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.faq-search-input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.faq-search-input:focus {
    outline: none;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.faq-search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-medium);
    font-size: 1.2rem;
}

.faq-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.faq-stat {
    text-align: center;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.faq-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.3rem;
}

.faq-stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Breadcrumb SEO */
.breadcrumb-seo {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-medium);
}

.breadcrumb-list a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-list a:hover {
    color: var(--primary-cyan);
}

.breadcrumb-separator {
    color: var(--text-light);
}

/* Table des matières */
.faq-toc {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.faq-toc h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
}

.faq-toc-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.faq-toc-item:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateX(5px);
}

.faq-toc-icon {
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    flex-shrink: 0;
}

.faq-toc-item:hover .faq-toc-icon {
    background: rgba(255,255,255,0.2);
}

.faq-toc-count {
    margin-left: auto;
    background: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.faq-toc-item:hover .faq-toc-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Container principal */
.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

/* Catégories */
.faq-category {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    scroll-margin-top: 100px;
    animation: fadeIn 0.6s ease;
    transition: all 0.3s ease;
}

.faq-category:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.faq-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--bg-light);
}

.faq-category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.faq-category-title {
    flex: 1;
}

.faq-category-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.faq-category-count {
    background: var(--bg-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: 600;
}

/* Items FAQ */
.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    user-select: none;
}

.faq-question:hover {
    color: var(--primary-blue);
}

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

.faq-question-toggle {
    width: 28px;
    height: 28px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-question:hover .faq-question-toggle {
    background: var(--primary-blue);
    color: white;
}

.faq-question.active .faq-question-toggle {
    background: var(--primary-blue);
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--text-medium);
    line-height: 1.8;
}

.faq-answer.active {
    max-height: 1000px;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

.faq-answer p {
    margin-bottom: 1rem;
}

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

.faq-answer ul, .faq-answer ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.faq-answer li {
    margin-bottom: 0.6rem;
    padding-left: 0.5rem;
}

.faq-answer strong {
    color: var(--text-dark);
    font-weight: 600;
}

.faq-answer a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
}

.faq-answer a:hover {
    color: var(--primary-cyan);
    border-bottom-color: var(--primary-cyan);
}

/* Message "Aucun résultat" */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    display: none;
}

.no-results-icon {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-medium);
    font-size: 1.1rem;
}

/* CTA Contact */
.faq-cta {
    background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    color: white;
    padding: 3.5rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.faq-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.faq-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.faq-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.contact-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary-blue);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

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

    .faq-hero p {
        font-size: 1.1rem;
    }

    .faq-stats {
        gap: 1.5rem;
    }

    .faq-stat-number {
        font-size: 2rem;
    }

    .faq-toc {
        position: static;
    }

    .faq-toc-list {
        grid-template-columns: 1fr;
    }

    .faq-category {
        padding: 1.5rem;
    }

    .faq-category-header {
        flex-wrap: wrap;
    }

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

    .faq-question {
        font-size: 1.05rem;
    }

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

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

/* Highlight pour la recherche */
.highlight {
    background: linear-gradient(120deg, #fef3c7 0%, #fde68a 100%);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 600;
}

/* Badge "Populaire" */
.popular-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 0.5rem;
    letter-spacing: 0.5px;
}

.new-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 0.5rem;
    letter-spacing: 0.5px;
}
