/* Utilisation des variables de base.css */
:root {
    --bg-color: #0a0a0a;
    --primary-text-color: #e0e0e0;
    --secondary-text-color: #a0a0a0;
    --accent-color: #00ffff;
    --card-bg-color: #1a1a1a;
    --border-color: #2a2a2a;
}

body {
    background-color: var(--bg-color);
    font-family: 'Poppins', sans-serif;
    color: var(--primary-text-color);
}

.faq-wrapper {
    padding-top: 80px; /* Espace pour le header fixed */
    min-height: 100vh;
}

/* --- HERO SECTION --- */
.faq-hero {
    text-align: center;
    padding: 6rem 1rem 4rem;
    position: relative;
    overflow: hidden;
}

/* Background Glow Effect */
.faq-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: -1;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50px;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.faq-hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--secondary-text-color);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* --- SEARCH BAR --- */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-container input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-text-color);
    pointer-events: none;
    transition: color 0.3s;
}

.search-container input:focus + .search-icon,
.search-container input:focus ~ .search-icon {
    color: var(--accent-color);
}

/* --- FAQ CONTENT --- */
.faq-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.faq-category {
    margin-bottom: 4rem;
}

.faq-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-text-color);
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
}

/* FAQ Item Styling */
.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.faq-item:hover {
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.04);
}

.faq-item.active {
    border-color: var(--accent-color);
    background: rgba(0, 255, 255, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--primary-text-color);
    font-size: 1.1rem;
    font-weight: 500;
    font-family: inherit;
}

/* Icon Animation */
.icon-plus {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.icon-plus::before,
.icon-plus::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: var(--accent-color);
    transform: translate(-50%, -50%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-plus::before {
    width: 14px;
    height: 2px;
}

.icon-plus::after {
    width: 2px;
    height: 14px;
}

.faq-item.active .icon-plus::after {
    transform: translate(-50%, -50%) rotate(90deg); /* Transforme le + en - ou x */
    opacity: 0;
}
.faq-item.active .icon-plus::before {
    transform: translate(-50%, -50%) rotate(180deg);
}

/* Answer Slide Animation */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Valeur arbitraire suffisante */
}

.answer-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--secondary-text-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --- CTA BOX --- */
.help-cta {
    padding: 4rem 1.5rem;
    text-align: center;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.8) 0%, rgba(10, 10, 10, 1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

/* Petit effet de lumière en haut de la box */
.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    box-shadow: 0 0 30px 5px var(--accent-color);
}

.cta-box h2 {
    margin-bottom: 1rem;
}

.contact-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-color), #0088cc);
    color: black;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s;
}

.contact-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .faq-hero h1 {
        font-size: 2.2rem;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 1.2rem;
    }
    
    .cta-box {
        padding: 2rem 1rem;
    }
}