/* Bloc FAQ */
.wp-block-padel-sevan-faq {
    background: #F8F7ED;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Titre de la section */
.faq-title {
    text-align: center;
    color: #863131;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Wrapper FAQ */
.faq-wrapper {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Liste FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Item FAQ */
.faq-item {
    border-bottom: 1px solid #E5E5E5;
    transition: all 0.3s ease;
}

.faq-item:last-child {
    border-bottom: none;
}

/* Question */
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    color: #863131;
}

.faq-question-text {
    font-size: 18px;
    font-weight: 600;
    color: #863131;
    flex: 1;
    padding-right: 30px;
    line-height: 1.4;
}

/* Flèche */
.faq-arrow {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: #863131;
}

.faq-arrow svg {
    width: 24px;
    height: 24px;
}

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

/* Réponse */
.faq-answer {
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    max-height: 0;
    padding: 0;
}

.faq-answer p {
    color: #863131;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0 30px 0 0;
}

.faq-item.active .faq-answer {
    padding-top: 0;
    padding-bottom: 25px;
}

/* Hover et focus */
.faq-item:hover .faq-question-text {
    color: #6D2E2C;
}

.faq-item:hover .faq-arrow {
    color: #6D2E2C;
}

/* Animation supplémentaire */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.faq-item.active .faq-answer p {
    animation: fadeIn 0.4s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .faq-wrapper {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .faq-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .faq-question {
        padding: 20px 0;
    }
    
    .faq-question-text {
        font-size: 16px;
        padding-right: 20px;
    }
    
    .faq-arrow {
        width: 20px;
        height: 20px;
    }
    
    .faq-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .faq-answer p {
        font-size: 15px;
        padding-right: 20px;
    }
    
    .faq-item.active .faq-answer {
        padding-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .wp-block-padel-sevan-faq {
        padding: 40px 0;
    }
    
    .faq-wrapper {
        padding: 20px 15px;
    }
    
    .faq-title {
        font-size: 24px;
    }
    
    .faq-question {
        padding: 18px 0;
    }
    
    .faq-question-text {
        font-size: 15px;
    }
    
    .faq-answer p {
        font-size: 14px;
        padding-right: 15px;
    }
}