.faq-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

/* Hero Section - Moderne et attractif */
.faq-hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.05) 0%, rgba(52, 152, 219, 0.05) 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

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

.hero-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.faq-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem 0;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 0 0 2rem 0;
    position: relative;
    z-index: 1;
}

/* Barre de recherche moderne */
.faq-search-container {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--text-muted);
    pointer-events: none;
}

.faq-search-input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 3.5rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.2);
    transform: translateY(-2px);
}

.search-clear {
    position: absolute;
    right: 1rem;
    background: var(--accent);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.search-clear:hover {
    transform: scale(1.1) rotate(90deg);
    background: var(--primary);
}

.search-results-count {
    text-align: center;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Bouton tout ouvrir/fermer */
.toggle-all-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
    position: relative;
    z-index: 1;
}

.toggle-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.4);
}

.toggle-all-btn.active {
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

.toggle-all-btn svg {
    transition: transform 0.3s ease;
}

.toggle-all-btn.active svg {
    transform: rotate(180deg);
}

/* Category Section - Design moderne */
.faq-category {
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease;
}

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

.category-header {
    margin-bottom: 1.5rem;
}

.category-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(52, 152, 219, 0.1) 100%);
    border-radius: 16px;
    border-left: 4px solid var(--accent);
}

.category-icon {
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
}

.category-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
    font-weight: 700;
    flex: 1;
}

.category-count {
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

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

/* FAQ Item - Cards modernes */
.faq-item {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.15);
    transform: translateY(-4px);
}

.faq-item.search-highlight {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.2);
    animation: highlight 0.6s ease;
}

@keyframes highlight {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* FAQ Question (Button) - Design amélioré */
.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    position: relative;
}

.faq-question::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.faq-question:hover::before,
.faq-question.active::before {
    transform: scaleY(1);
}

.faq-question:hover {
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.05) 0%, transparent 100%);
    padding-left: 2rem;
}

.faq-question:focus {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.faq-question.active {
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.1) 0%, transparent 100%);
    padding-left: 2rem;
}

.faq-number {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

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

.faq-toggle-icon {
    flex-shrink: 0;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-question.active .faq-toggle-icon {
    transform: rotate(180deg);
}

/* FAQ Answer - Design amélioré */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 2px dashed var(--border);
}

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

.no-results h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-muted);
    margin: 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

/* Animations au scroll */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .faq-page {
        padding: 1rem;
    }
    
    .faq-hero {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .faq-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-icon {
        font-size: 3rem;
    }
    
    .faq-search-input {
        padding: 0.875rem 3rem 0.875rem 3rem;
        font-size: 0.95rem;
    }
    
    .toggle-all-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .category-title {
        font-size: 1.25rem;
    }
    
    .category-title-wrapper {
        padding: 0.875rem 1rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-question:hover,
    .faq-question.active {
        padding-left: 1.5rem;
    }
    
    .faq-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .faq-answer-content {
        padding: 0 1rem 1rem 1rem;
        font-size: 0.95rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .faq-search-input {
        background: var(--bg-card);
        border-color: var(--border);
    }
    
    .faq-item {
        background: var(--bg-card);
        border-color: var(--border);
    }
    
    .faq-item:hover {
        border-color: var(--accent);
        box-shadow: 0 8px 24px rgba(192, 132, 252, 0.2);
    }
}

/* Print Styles */
@media print {
    .faq-hero,
    .faq-search-container,
    .toggle-all-btn,
    .category-count {
        display: none;
    }
    
    .faq-answer {
        max-height: none !important;
        display: block !important;
    }
    
    .faq-toggle-icon {
        display: none;
    }
    
    .faq-item {
        page-break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
        margin-bottom: 1rem;
    }
    
    .faq-number {
        background: #333;
    }
}
