/* ===== FAQ PAGE - STYLE MODERNE AVEC EFFETS GLASS ===== */
/* ⚠️ IMPORTANT : Tous les styles sont scopés à .faq-section pour ne pas interférer avec le reste du site */

/* Section principale - Variables locales pour thème jour */
.faq-section {
    --faq-accent: #3b82f6;
    --faq-accent-hover: #2563eb;
    --faq-accent-light: rgba(59, 130, 246, 0.1);
    --faq-text-primary: #2c3e50;
    --faq-text-secondary: #373b3b;
    --faq-text-light: #ecf0f1;
    --faq-border: rgba(255, 255, 255, 0.2);
    --faq-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --faq-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.2);
    --faq-glass-bg: rgba(255, 255, 255, 0.75);
    --faq-glass-item: rgba(255, 255, 255, 0.65);
    --faq-number-bg: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    
    min-height: 100vh;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

/* Variables pour thème nuit - scopées à body.night .faq-section */
body.night .faq-section {
    --faq-accent: #60a5fa;
    --faq-accent-hover: #3b82f6;
    --faq-accent-light: rgba(96, 165, 250, 0.1);
    --faq-text-primary: #d6e4ee;
    --faq-text-secondary: #a8b8c8;
    --faq-text-light: #d3dada;
    --faq-border: rgba(211, 218, 218, 0.3);
    --faq-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --faq-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.6);
    --faq-glass-bg: rgba(26, 33, 84, 0.75);
    --faq-glass-item: rgba(26, 33, 84, 0.65);
    --faq-number-bg: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
}

.faq-section .faq-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header de la FAQ */
.faq-section .faq-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: var(--faq-glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: var(--faq-shadow);
    border: 1px solid var(--faq-border);
    position: relative;
    overflow: hidden;
}

.faq-section .faq-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #60a5fa);
    opacity: 0.8;
}

.faq-section .faq-title {
    display: inline-block;
    position: relative;
}

.faq-section .title-text {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Yanone Kaffeesatz', sans-serif;
    background: linear-gradient(45deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

body.night .faq-section .title-text {
    background: linear-gradient(45deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-section .faq-subtitle {
    margin-top: 15px;
    color: var(--faq-text-secondary);
    font-weight: 500;
}

/* Barre de recherche */
.faq-section .faq-search-container {
    margin-bottom: 40px;
}

.faq-section .search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.faq-section .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--faq-text-secondary);
    font-size: 1.2rem;
    pointer-events: none;
}

.faq-section .faq-search-input {
    width: 100%;
    padding: 18px 60px 18px 55px;
    border: 1px solid var(--faq-border);
    border-radius: 50px;
    background: var(--faq-glass-bg);
    backdrop-filter: blur(20px);
    color: var(--faq-text-primary);
    transition: all 0.3s ease;
    box-shadow: var(--faq-shadow);
    font-weight: 500;
}

.faq-section .faq-search-input:focus {
    outline: none;
    border-color: var(--faq-accent);
    box-shadow: var(--faq-shadow-hover), 0 0 0 4px var(--faq-accent-light);
    transform: translateY(-2px);
}

.faq-section .faq-search-input::placeholder {
    color: var(--faq-text-secondary);
    opacity: 0.7;
}

.faq-section .clear-search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--faq-accent);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-section .clear-search-btn:hover {
    background: var(--faq-accent-hover);
    transform: translateY(-50%) scale(1.1);
}

/* Headers de catégories */
.faq-section .faq-category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    margin: 30px 0 15px;
    background: var(--faq-glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border-left: 5px solid var(--faq-accent);
    box-shadow: var(--faq-shadow);
    border: 1px solid var(--faq-border);
}

.faq-section .faq-category-header:first-child {
    margin-top: 0;
}

.faq-section .faq-category-icon {
    font-size: 1.8rem;
    opacity: 0.9;
}

.faq-section .faq-category-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--faq-text-primary);
    margin: 0;
    flex: 1;
}

.faq-section .faq-category-count {
    background: var(--faq-accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Items FAQ */
.faq-section .faq-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-section .faq-item {
    background: var(--faq-glass-item);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--faq-shadow);
    border: 1px solid var(--faq-border);
}

.faq-section .faq-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--faq-shadow-hover);
    border-color: var(--faq-accent);
}

.faq-section .faq-item.active {
    border-color: var(--faq-accent);
    box-shadow: var(--faq-shadow-hover);
    background: var(--faq-glass-bg);
}

.faq-section .faq-question {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    cursor: pointer;
    position: relative;
}

.faq-section .faq-question:hover {
    opacity: 0.9;
}

.faq-section .faq-number {
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--faq-number-bg);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.faq-section .faq-item:hover .faq-number {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.faq-section .faq-question-text {
    flex: 1;
    font-weight: 600;
    color: var(--faq-text-primary);
    line-height: 1.5;
}

.faq-section .faq-icon {
    font-size: 1.5rem;
    color: var(--faq-accent);
    transition: transform 0.3s ease;
}

.faq-section .faq-item:hover .faq-icon {
    color: var(--faq-accent-hover);
}

.faq-section .faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--faq-accent-hover);
}

.faq-section .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-section .faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-section .faq-answer-content {
    padding: 0 25px 25px 95px;
    line-height: 1.8;
    color: var(--faq-text-secondary);
    background: var(--faq-accent-light);
    border-top: 1px solid var(--faq-border);
}

.faq-section .faq-answer-content p {
    margin-bottom: 15px;
    margin-top: 15px;
}

.faq-section .faq-answer-content ul,
.faq-section .faq-answer-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.faq-section .faq-answer-content li {
    margin-bottom: 10px;
    color: var(--faq-text-secondary);
}

.faq-section .faq-answer-content strong {
    color: var(--faq-text-primary);
    font-weight: 600;
}

.faq-section .faq-answer-content a {
    color: var(--faq-accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.faq-section .faq-answer-content a:hover {
    color: var(--faq-accent-hover);
    border-bottom-color: var(--faq-accent-hover);
}

/* Highlight de recherche */
.faq-section .highlight {
    background: #fef3c7;
    color: #92400e;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

body.night .faq-section .highlight {
    background: #fbbf24;
    color: #1e293b;
}

/* Loading indicator */
.faq-section .loading-indicator {
    text-align: center;
    padding: 60px 20px;
}

.faq-section .skeleton-faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-section .skeleton-faq-item {
    height: 80px;
    background: linear-gradient(90deg, var(--faq-glass-item) 25%, var(--faq-glass-bg) 50%, var(--faq-glass-item) 75%);
    backdrop-filter: blur(20px);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 16px;
    border: 1px solid var(--faq-border);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Animations d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-section .faq-header {
    animation: fadeInUp 0.6s ease-out;
}

.faq-section .faq-search-container {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.faq-section .faq-category-header {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.faq-section .faq-item {
    animation: fadeInUp 0.6s ease-out both;
}

.faq-section .faq-item:nth-child(1) { animation-delay: 0.3s; }
.faq-section .faq-item:nth-child(2) { animation-delay: 0.35s; }
.faq-section .faq-item:nth-child(3) { animation-delay: 0.4s; }
.faq-section .faq-item:nth-child(4) { animation-delay: 0.45s; }
.faq-section .faq-item:nth-child(5) { animation-delay: 0.5s; }

/* No results */
.faq-section .no-results {
    text-align: center;
    padding: 80px 20px;
    background: var(--faq-glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--faq-border);
    margin: 40px 0;
    box-shadow: var(--faq-shadow);
}

.faq-section .no-results-icon {
    color: var(--faq-text-secondary);
    margin-bottom: 20px;
    opacity: 0.5;
}

.faq-section .no-results-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--faq-text-primary);
    margin-bottom: 15px;
}

.faq-section .no-results-message {
    font-size: 1.1rem;
    color: var(--faq-text-secondary);
    margin-bottom: 10px;
}

.faq-section .no-results-suggestion {
    color: var(--faq-text-secondary);
    margin-bottom: 30px;
}

.faq-section .browse-all-btn {
    padding: 15px 35px;
    background: var(--faq-accent);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.faq-section .browse-all-btn:hover {
    background: var(--faq-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Footer FAQ */
.faq-section .faq-footer {
    margin-top: 60px;
}

.faq-section .help-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(139, 92, 246, 0.95) 100%);
    backdrop-filter: blur(20px);
    padding: 50px;
    border-radius: 16px;
    text-align: center;
    color: white;
    box-shadow: var(--faq-shadow-hover);
    border: 1px solid var(--faq-border);
}

body.night .faq-section .help-card {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.95) 0%, rgba(109, 40, 217, 0.95) 100%);
}

.faq-section .help-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.faq-section .help-card p {
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
}

.faq-section .discord-btn {
    display: inline-block;
    padding: 18px 40px;
    background: white;
    color: #3b82f6;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.faq-section .discord-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    background: #f8fafc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-section {
        padding: 40px 15px;
    }

    .faq-section .faq-header {
        padding: 30px 15px;
        margin-bottom: 30px;
    }

    .faq-section .title-text {
        font-size: 1.8rem;
    }

    .faq-section .faq-subtitle {
        font-size: 1rem;
    }

    .faq-section .faq-search-input {
        padding: 15px 50px 15px 45px;
    }

    .faq-section .faq-category-header {
        padding: 15px 20px;
        gap: 10px;
    }

    .faq-section .faq-category-icon {
        font-size: 1.4rem;
    }

    .faq-section .faq-category-title {
        font-size: 1.1rem;
    }

    .faq-section .faq-category-count {
        font-size: 0.8rem;
        padding: 4px 12px;
    }

    .faq-section .faq-question {
        padding: 20px 15px;
        gap: 15px;
    }

    .faq-section .faq-number {
        min-width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .faq-section .faq-question-text {
        font-size: 1rem;
    }

    .faq-section .faq-icon {
        font-size: 1.2rem;
    }

    .faq-section .faq-answer-content {
        padding: 0 15px 20px 15px;
        font-size: 0.95rem;
    }

    .faq-section .help-card {
        padding: 35px 25px;
    }

    .faq-section .help-card h3 {
        font-size: 1.5rem;
    }

    .faq-section .help-card p {
        font-size: 1rem;
    }

    .faq-section .discord-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .faq-section .faq-header {
        padding: 25px 15px;
    }

    .faq-section .title-text {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .faq-section .faq-subtitle {
        font-size: 0.9rem;
    }

    .faq-section .faq-search-input {
        padding: 12px 45px 12px 40px;
    }

    .faq-section .search-icon {
        left: 15px;
        font-size: 1rem;
    }

    .faq-section .clear-search-btn {
        width: 30px;
        height: 30px;
        right: 10px;
    }

    .faq-section .faq-category-header {
        flex-wrap: wrap;
    }

    .faq-section .faq-category-title {
        font-size: 1rem;
    }

    .faq-section .faq-question {
        padding: 15px;
    }

    .faq-section .faq-number {
        min-width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }

    .faq-section .faq-question-text {
        font-size: 0.95rem;
    }

    .faq-section .help-card {
        padding: 30px 20px;
    }

    .faq-section .help-card h3 {
        font-size: 1.3rem;
    }

    .faq-section .discord-btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}
