/* FAQ Styles */
.faq {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.faq-item {
    background: #F8F9FA;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(76, 92, 107, 0.15);
    border-top: 4px solid #4C5C6B;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(76, 92, 107, 0.2);
    background: #FFFFFF;
}

/* En-tête de la question (cliquable) */
.faq-item h2 {
    font-family: 'Spline Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #4C5C6B;
    margin: 0;
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(76, 92, 107, 0.1);
    background: linear-gradient(135deg, rgba(76, 92, 107, 0.05), rgba(122, 143, 163, 0.05));
}

.faq-item h2:hover {
    background: linear-gradient(135deg, rgba(76, 92, 107, 0.1), rgba(122, 143, 163, 0.1));
    color: #3A4751;
}

/* Icône d'expansion */
.faq-item h2::after {
    content: "➤";
    font-size: 1rem;
    font-weight: 400;
    transition: transform 0.3s ease;
    color: #4C5C6B;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active h2::after {
    transform: rotate(90deg);
    color: #3A4751;
}

.faq-item.active h2 {
    color: #3A4751;
    background: linear-gradient(135deg, rgba(58, 71, 81, 0.1), rgba(122, 143, 163, 0.1));
}

/* Contenu de la réponse */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: #F8F9FA;
}

.faq-item.active .faq-content {
    max-height: 1000px; /* Assez grand pour le contenu le plus long */
    padding: 0 2rem 1.5rem 2rem;
    background: #FFFFFF;
}

.faq-content p {
    font-family: 'Spline Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #7A8FA3;
    margin: 1rem 0;
}

.faq-content ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.faq-content li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    font-family: 'Spline Sans', sans-serif;
    font-weight: 500;
    color: #4C5C6B;
    line-height: 1.5;
}

/* Icône personnalisée pour les listes */
.faq-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4em;
    width: 1rem;
    height: 1rem;
    background: radial-gradient(circle, #4C5C6B 40%, transparent 40%);
    border-radius: 50%;
}

/* Style pour les éléments en gras dans les listes */
.faq-content li strong {
    color: #3A4751;
    font-weight: 600;
}

/* Animation d'apparition progressive */
.faq-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }
.faq-item:nth-child(7) { animation-delay: 0.7s; }
.faq-item:nth-child(8) { animation-delay: 0.8s; }
.faq-item:nth-child(9) { animation-delay: 0.9s; }
.faq-item:nth-child(10) { animation-delay: 1s; }
.faq-item:nth-child(11) { animation-delay: 1.1s; }

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

/* Style pour le titre principal de la page */
.page-content h1 {
    font-family: 'Spline Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #4C5C6B;
    position: relative;
    display: inline-block;
    width: 100%;
}

.page-content h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #4C5C6B, #7A8FA3);
    border-radius: 2px;
}

/* Variante avec accent chaleureux pour certains items */
.faq-item:nth-child(even) {
    border-top-color: #B8A082;
}

.faq-item:nth-child(even) h2 {
    background: linear-gradient(135deg, rgba(184, 160, 130, 0.05), rgba(122, 143, 163, 0.05));
}

.faq-item:nth-child(even) h2:hover {
    background: linear-gradient(135deg, rgba(184, 160, 130, 0.1), rgba(122, 143, 163, 0.1));
}

.faq-item:nth-child(even) h2::after {
    color: #B8A082;
}

.faq-item:nth-child(even).active h2::after {
    color: #A08B6F;
}

.faq-item:nth-child(even).active h2 {
    background: linear-gradient(135deg, rgba(160, 139, 111, 0.1), rgba(122, 143, 163, 0.1));
}

.faq-item:nth-child(even) .faq-content li::before {
    background: radial-gradient(circle, #B8A082 40%, transparent 40%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq {
        padding: 1rem;
    }
    
    .faq-item h2 {
        font-size: 1.1rem;
        padding: 1.2rem 1.5rem;
    }
    
    .faq-item.active .faq-content {
        padding: 0 1.5rem 1.2rem 1.5rem;
    }
    
    .faq-content p {
        font-size: 0.95rem;
    }
    
    .page-content h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .faq-item h2 {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .faq-item.active .faq-content {
        padding: 0 1rem 1rem 1rem;
    }
    
    .faq-content li {
        padding-left: 1.5rem;
        font-size: 0.9rem;
    }
    
    .page-content h1 {
        font-size: 1.8rem;
    }
    
    .page-content {
        padding: 2rem 1rem;
    }
}

/* Focus pour l'accessibilité */
.faq-item h2:focus {
    outline: 2px solid #4C5C6B;
    outline-offset: 2px;
}

/* Animation au hover sur mobile */
@media (hover: none) {
    .faq-item:hover {
        transform: none;
    }
}

/* Section FAQ avec fond dégradé optionnel */
.faq-section {
    background: linear-gradient(135deg, #E8EBF0 0%, #F8F9FA 100%);
    padding: 4rem 2rem;
    border-radius: 20px;
    margin: 2rem 0;
}

/* Animation d'ouverture/fermeture améliorée */
.faq-content {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.3s ease,
                background-color 0.3s ease;
}

/* États interactifs améliorés */
.faq-item h2:active {
    transform: scale(0.98);
}

.faq-item.active {
    box-shadow: 0 6px 16px rgba(76, 92, 107, 0.18);
}
