/* ==========================================================================
   EP FAQ Block - Styles Frontend
   ========================================================================== */

.ep-faq-block {
    margin: 2rem 0;
}

.ep-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Items FAQ */
.ep-faq-item {
    background-color: var(--wp--preset--color--background, #ffffff);
    border: 1px solid var(--wp--preset--color--border-light, #e9ecef);
    border-radius: var(--wp--custom--border--radius--medium, 8px);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.ep-faq-item:hover {
    border-color: var(--wp--preset--color--primary-light, #7ACFF4);
    box-shadow: var(--wp--custom--shadow--light, 0 2px 8px rgba(0, 0, 0, 0.08));
}

/* Questions */
.ep-faq-question {
    cursor: pointer;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    background-color: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.ep-faq-question:hover {
    background-color: var(--wp--preset--color--background-light, #f8f9fa);
}

.ep-faq-question:focus {
    outline: 2px solid var(--wp--preset--color--primary, #00AEED);
    outline-offset: 2px;
}

.ep-faq-question-text {
    font-family: var(--wp--preset--font-family--helvetica, "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--wp--preset--color--primary-dark, #0080C8);
    margin: 0;
    padding-right: 1rem;
    flex-grow: 1;
}

/* Icône +/- */
.ep-faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--wp--preset--color--primary, #00AEED);
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--wp--preset--color--primary-light, #7ACFF4);
    border-radius: 50%;
    background-color: var(--wp--preset--color--background, #ffffff);
}

.ep-faq-open .ep-faq-icon {
    transform: rotate(180deg);
    background-color: var(--wp--preset--color--primary-light, #7ACFF4);
    color: var(--wp--preset--color--foreground, #000000);
}

/* Réponses */
.ep-faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    background-color: var(--wp--preset--color--background, #ffffff);
}

.ep-faq-open .ep-faq-answer {
    opacity: 1;
    border-top: 1px solid var(--wp--preset--color--border-light, #e9ecef);
}

.ep-faq-answer-content {
    padding: 1.5rem;
    color: var(--wp--preset--color--text-light, #6c757d);
    line-height: 1.6;
}

.ep-faq-answer-content p {
    margin: 0 0 1rem 0;
}

.ep-faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* Mode Hover spécifique */
.ep-faq-hover .ep-faq-item {
    transition: all 0.2s ease;
}

.ep-faq-hover .ep-faq-question {
    transition: all 0.2s ease;
}

.ep-faq-hover .ep-faq-answer {
    transition: all 0.3s ease;
}

/* Indicateur pour mode hover verrouillé */
.ep-faq-hover .ep-faq-locked .ep-faq-question::before {
    content: "📌 ";
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ep-faq-question {
        padding: 1rem;
    }
    
    .ep-faq-question-text {
        font-size: 1rem;
        padding-right: 0.5rem;
    }
    
    .ep-faq-icon {
        width: 28px;
        height: 28px;
        font-size: 1.3rem;
    }
    
    .ep-faq-answer-content {
        padding: 1rem;
    }
}

/* Animations d'entrée */
@media (prefers-reduced-motion: no-preference) {
    .ep-faq-item {
        animation: fadeInUp 0.6s ease forwards;
    }
    
    .ep-faq-item:nth-child(1) { animation-delay: 0s; }
    .ep-faq-item:nth-child(2) { animation-delay: 0.1s; }
    .ep-faq-item:nth-child(3) { animation-delay: 0.2s; }
    .ep-faq-item:nth-child(4) { animation-delay: 0.3s; }
    .ep-faq-item:nth-child(5) { animation-delay: 0.4s; }
}

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

/* Mode sombre (si supporté) */
@media (prefers-color-scheme: dark) {
    .ep-faq-item {
        background-color: #1e1e1e;
        border-color: #333;
    }
    
    .ep-faq-question:hover {
        background-color: #2a2a2a;
    }
    
    .ep-faq-question-text {
        color: #ffffff;
    }
    
    .ep-faq-answer-content {
        color: #cccccc;
    }
}
