/* ========================================
   SECTION FAQ
   ======================================== */

.faq-section {
    background: linear-gradient(180deg, #f8fafb 0%, #ffffff 50%, #f1f5f8 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -200px;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}


/* Container principal */

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}


/* Header de la section */

.faq-header {
    text-align: center;
    margin-bottom: 80px;
}

.faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 102, 255, 0.15);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    color: #0066ff;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.08);
}

.faq-title {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #1a1a1a 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.faq-subtitle {
    display: block;
    font-size: 20px;
    font-weight: 400;
    color: #6b7280;
    margin-top: 12px;
}


/* Grid Layout */

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: start;
}


/* FAQ Items */

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border: 1px solid rgba(0, 102, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.04);
}

.faq-item:hover {
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.08);
    border-color: rgba(0, 102, 255, 0.15);
}

.faq-item.active {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.02) 0%, rgba(0, 102, 255, 0.01) 100%);
    border-color: rgba(0, 102, 255, 0.2);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.12);
}


/* Question */

.faq-question {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 102, 255, 0.02);
}

.faq-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 102, 255, 0.05) 100%);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #0066ff;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-item.active .faq-number {
    background: linear-gradient(135deg, #0066ff 0%, #0052d4 100%);
    color: white;
    transform: scale(1.1);
}

.faq-question h3 {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: #6b7280;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    color: #0066ff;
    transform: rotate(180deg);
}


/* Answer */

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 28px 24px 84px;
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #6b7280;
}


/* Support Card */

.support-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.08);
    border: 1px solid rgba(0, 102, 255, 0.08);
    text-align: center;
    position: sticky;
    top: 100px;
}

.support-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 102, 255, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all 0.3s ease;
}

.support-card:hover .support-icon {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.15);
}

.support-icon svg {
    color: #0066ff;
}

.support-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.support-card p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 28px;
}

.support-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #0066ff 0%, #0052d4 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.25);
}

.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.35);
}


/* Animations */

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 300px;
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeInUp 0.6s ease both;
}

.faq-item:nth-child(1) {
    animation-delay: 0.1s;
}

.faq-item:nth-child(2) {
    animation-delay: 0.15s;
}

.faq-item:nth-child(3) {
    animation-delay: 0.2s;
}

.faq-item:nth-child(4) {
    animation-delay: 0.25s;
}

.faq-item:nth-child(5) {
    animation-delay: 0.3s;
}

.faq-item:nth-child(6) {
    animation-delay: 0.35s;
}

.faq-item:nth-child(7) {
    animation-delay: 0.4s;
}

.faq-item:nth-child(8) {
    animation-delay: 0.45s;
}

.faq-item:nth-child(9) {
    animation-delay: 0.5s;
}

.faq-item:nth-child(10) {
    animation-delay: 0.55s;
}


/* Responsive */

@media (max-width: 1024px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .support-card {
        position: static;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 60px 0;
    }
    .faq-header {
        margin-bottom: 50px;
    }
    .faq-title {
        font-size: 36px;
    }
    .faq-subtitle {
        font-size: 18px;
    }
    .faq-question {
        padding: 20px 24px;
    }
    .faq-answer p {
        padding: 0 24px 20px 24px;
    }
    .faq-number {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .faq-question h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .faq-title {
        font-size: 28px;
    }
    .faq-subtitle {
        font-size: 16px;
    }
    .faq-question {
        padding: 16px 20px;
        gap: 12px;
    }
    .faq-question h3 {
        font-size: 15px;
    }
    .faq-answer p {
        font-size: 14px;
        padding: 0 20px 16px 20px;
    }
    .support-card {
        padding: 32px 24px;
    }
    .support-icon {
        width: 60px;
        height: 60px;
    }
    .support-card h3 {
        font-size: 20px;
    }
}


/* Accessibilité */

@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-answer,
    .faq-icon {
        animation: none;
        transition: none;
    }
    .faq-item.active .faq-answer {
        max-height: unset;
    }
}


/* Focus states */

.faq-question:focus-visible {
    outline: 2px solid #0066ff;
    outline-offset: -2px;
    border-radius: 16px;
}