/* Floratek FAQ – faq.css v3.1 */

/* -- Conteneur ---------------------------------------------- */
.fltk-faq { width: 100%; font-family: inherit; }
.fltk-faq__list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; }

/* -- Item ---------------------------------------------------- */
.fltk-faq__item { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06); overflow: hidden; transition: box-shadow .28s ease; }
.fltk-faq__item.is-open { box-shadow: 0 4px 16px rgba(0,0,0,.1); }

/* -- Question ----------------------------------------------- */
.fltk-faq__title { margin: 0; padding: 0; font-size: inherit; }
.fltk-faq__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #1a2035;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    font-family: inherit;
    transition: color .28s ease;
    /* Centrage vertical quand min-height est définie */
    box-sizing: border-box;
}
.fltk-faq__btn:focus { outline: none; }
.fltk-faq__btn:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.fltk-faq__question-text { flex: 1; }

/* -- Icone par défaut (CSS +/-) ------------------------------ */
.fltk-faq__icon {
    flex-shrink: 0;
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #1a2035;
    transition: background .28s ease, border-color .28s ease;
}
.fltk-faq__icon::before,
.fltk-faq__icon::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    background: #1a2035;
    transition: transform .28s ease, opacity .28s ease, background-color .28s ease;
}
.fltk-faq__icon::before { width: 10px; height: 1.5px; transform: translate(-50%,-50%); }
.fltk-faq__icon::after  { width: 1.5px; height: 10px; transform: translate(-50%,-50%); }

.fltk-faq__item.is-open .fltk-faq__icon:not(.fltk-faq__icon--custom) { background: #1a2035; }
.fltk-faq__item.is-open .fltk-faq__icon:not(.fltk-faq__icon--custom)::after { opacity: 0; transform: translate(-50%,-50%) rotate(90deg); }

/* -- Icone personnalisee ------------------------------------ */
.fltk-faq__icon--custom {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    width: auto;
    height: auto;
}
.fltk-faq__icon--custom::before,
.fltk-faq__icon--custom::after { display: none; }

.fltk-icon-closed,
.fltk-icon-open {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .28s ease, transform .28s ease;
}

/* Etat ferme : affiche closed, cache open */
.fltk-icon-closed { opacity: 1; }
.fltk-icon-open   { display: none; opacity: 0; }

/* Etat ouvert : affiche open, cache closed */
.fltk-faq__item.is-open .fltk-icon-closed { display: none; opacity: 0; }
.fltk-faq__item.is-open .fltk-icon-open   { display: flex; opacity: 1; }

.fltk-faq__icon--custom i,
.fltk-faq__icon--custom svg { font-size: 22px; width: 22px; height: 22px; }

/* -- Reponse ------------------------------------------------ */
.fltk-faq__answer { overflow: hidden; transition: height .28s cubic-bezier(.4,0,.2,1); }
.fltk-faq__answer[hidden] { display: block !important; height: 0 !important; visibility: hidden !important; }
.fltk-faq__answer-inner { padding: 0 24px 24px; color: #3d4a60; font-size: 1rem; line-height: 1.75; }
.fltk-faq__answer-inner > *:first-child { margin-top: 0; }
.fltk-faq__answer-inner > *:last-child  { margin-bottom: 0; }

/* -- Responsive --------------------------------------------- */
@media (max-width: 600px) {
    .fltk-faq__btn          { padding: 16px 18px; }
    .fltk-faq__answer-inner { padding: 0 18px 18px; }
}
