/* Style de la section FAQ */
.faq-refactored {
    padding: 100px 0;
    background-color: #fff; /* Fond blanc */
    position: relative;
    overflow: hidden;
}

/* Ajout d'un motif de fond subtil */
.faq-refactored::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cdefs%3E%3Cpattern id="p" width="100" height="100" patternUnits="userSpaceOnUse"%3E%3Cpath d="M0 50Q50 0 100 50" stroke="%23f0f0f0" fill="none"/%3E%3Cpath d="M0 50Q50 100 100 50" stroke="%23f0f0f0" fill="none"/%3E%3C/pattern%3E%3C/defs%3E%3Crect width="100%25" height="100%25" fill="url(%23p)"/%3E%3C/svg%3E');
    opacity: 0.5;
    z-index: 0;
}

.faq-refactored .faq-accordion {
    max-width: 800px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative; /* Pour que les cartes soient au-dessus du motif */
    z-index: 1;
}

.faq-refactored .faq-item {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, border-left-color 0.3s ease;
    border-left: 5px solid transparent; /* Bordure pour l'état actif */
    position: relative; /* Pour le positionnement de la réponse */
}

.faq-refactored .faq-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.faq-refactored .faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px; /* Padding augmenté */
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem; /* Taille de police ajustée */
    font-weight: 600;
    color: #343a40;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-refactored .faq-question i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #6c757d;
}

.faq-refactored .faq-item.active {
    border-left-color: var(--color-primary-start, #ff8c4d);
    box-shadow: 0 10px 25px rgba(230, 102, 163, 0.15); /* Ombre plus prononcée */
}

.faq-refactored .faq-item.active .faq-question {
    color: var(--color-primary-start, #ff8c4d);
}

.faq-refactored .faq-item.active .faq-question i {
    transform: rotate(180deg);
    background-color: var(--color-primary-start, #ff8c4d);
    color: #fff;
}

.faq-refactored .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.1, 0.25, 1); /* Animation plus douce */
    color: #6c757d;
    line-height: 1.7;
}

.faq-refactored .faq-answer p {
    padding: 0 30px;
    margin: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s; /* Animation du texte */
}

.faq-refactored .faq-item.active .faq-answer {
    max-height: 20rem; /* Hauteur suffisante pour le contenu */
}

.faq-refactored .faq-item.active .faq-answer p {
    opacity: 1;
    transform: translateY(0);
    padding-bottom: 24px;
}

