/* =========================================================
   ACCORDÉON DE QUESTIONS (même présentation que la page FAQ)
   Utilisé sur l'accueil. Les règles reprennent celles de faq.css (charte enerev).
   Vert nuit #0B2B29 · Vert titres #0A5048 · Vert enerev #0D8A7E · Vert d'eau #CFE6E1
   Vert pâle #F0F8F6 · Crème #F7F3EA · Sable #E4DED3 · Encre #1B1C1A · Ardoise #4A5350
   ========================================================= */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 920px;
    margin: 0 auto;
}

.faq-item {
    overflow: hidden;
    scroll-margin-top: 120px;
    background: #fff;
    border: 1px solid #E4DED3;
    border-radius: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.faq-item:hover {
    border-color: #CFE6E1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.faq-item.is-open {
    background: #F0F8F6;
    border-color: #0D8A7E;
    box-shadow: 0 12px 35px rgba(13, 138, 126, 0.08);
}

.faq-question-title {
    margin: 0;
    padding: 0;
    font: inherit;
    line-height: inherit;
    color: inherit;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    padding: 1.25rem 1.4rem;
    color: #1B1C1A;
    background: transparent;
    border: 0;
    font-family: Aptos, 'Nunito', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: color 0.25s ease;
}

.faq-question:hover,
.faq-item.is-open .faq-question {
    color: #0A5048;
}

.faq-question:focus-visible {
    outline: 3px solid rgba(13, 138, 126, 0.3);
    outline-offset: -3px;
}

.faq-question__icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #0D8A7E;
    background: #F0F8F6;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 400;
    transition: transform 0.35s ease, background-color 0.35s ease, color 0.35s ease;
}

.faq-item.is-open .faq-question__icon {
    color: #fff;
    background: #0D8A7E;
    transform: rotate(45deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.35s ease;
}

.faq-answer-inner {
    min-height: 0;
    overflow: hidden;
}

.faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer-inner {
    padding: 0 1.4rem 1.2rem;
}

.faq-answer p {
    margin: 0;
    color: #4A5350;
}

.faq-answer-link {
    margin-top: 0.75rem !important;
}

.faq-answer-link a {
    color: #0D8A7E;
    font-weight: 600;
    text-decoration: none;
}

.faq-answer-link a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 1.1rem 1rem;
        font-size: 0.9rem;
    }

    .faq-item.is-open .faq-answer-inner {
        padding: 0 1rem 1.1rem;
    }
}

@media (max-width: 480px) {
    .faq-question {
        gap: 0.75rem;
        font-size: 0.86rem;
    }

    .faq-question__icon {
        flex-basis: 27px;
        width: 27px;
        height: 27px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-question__icon,
    .faq-answer {
        transition: none !important;
    }
}
