/**
 * Calculateurs Pro FAQ Widget Styles
 * Version: 1.0.0
 */

.cp-faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.cp-faq-item {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(48px);
    -webkit-backdrop-filter: blur(48px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.cp-faq-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 20px 25px -5px rgba(59, 130, 246, 0.15),
        0 8px 10px -6px rgba(59, 130, 246, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.1) inset;
}

.cp-faq-item.active {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 
        0 20px 25px -5px rgba(59, 130, 246, 0.2),
        0 8px 10px -6px rgba(59, 130, 246, 0.2),
        0 0 0 1px rgba(59, 130, 246, 0.2) inset;
}

.cp-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    cursor: pointer;
    user-select: none;
    gap: 16px;
}

.cp-faq-question h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
    flex: 1;
    line-height: 1.4;
}

.cp-faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.cp-faq-item.active .cp-faq-icon {
    transform: rotate(180deg);
}

.cp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    padding: 0 24px;
    opacity: 0;
}

.cp-faq-item.active .cp-faq-answer {
    max-height: 1000px;
    padding: 0 24px 24px 24px;
    opacity: 1;
}

.cp-faq-answer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.cp-faq-answer p:not(:last-child) {
    margin-bottom: 12px;
}

/* Hover effect sur la question */
.cp-faq-question:hover h3 {
    color: rgba(255, 255, 255, 1);
}

/* Animation de glow subtile */
@keyframes glow {
    0%, 100% {
        box-shadow: 
            0 20px 25px -5px rgba(59, 130, 246, 0.15),
            0 8px 10px -6px rgba(59, 130, 246, 0.15);
    }
    50% {
        box-shadow: 
            0 20px 25px -5px rgba(59, 130, 246, 0.25),
            0 8px 10px -6px rgba(59, 130, 246, 0.25);
    }
}

.cp-faq-item.active {
    animation: glow 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .cp-faq-question {
        padding: 20px;
    }
    
    .cp-faq-question h3 {
        font-size: 16px;
    }
    
    .cp-faq-icon {
        font-size: 18px;
        width: 20px;
        height: 20px;
    }
    
    .cp-faq-answer {
        font-size: 14px;
    }
    
    .cp-faq-item.active .cp-faq-answer {
        padding: 0 20px 20px 20px;
    }
}

/* Style pour les listes dans les réponses */
.cp-faq-answer ul,
.cp-faq-answer ol {
    margin: 12px 0;
    padding-left: 24px;
}

.cp-faq-answer li {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
}

/* Style pour les liens dans les réponses */
.cp-faq-answer a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cp-faq-answer a:hover {
    color: #3b82f6;
    text-decoration: underline;
}