/**
 * Composant FAQ
 *
 * Accordéon natif (<details> / <summary>) : accessible au clavier et aux lecteurs d'écran sans JavaScript.
 */

.faq{
    margin-top: clamp(4rem, 5vw, 8rem);
    color: rgb(var(--marron-fonce));
}
.faq__titre{
    margin-bottom: 1.5rem;
    color: rgb(var(--marron-texte));
}
.faq__introduction{
    margin: 0 0 2.5rem;
}
.faq__liste{
    border-top: 1px solid rgb(var(--gris));
}

/* Question */
.faq__item{
    border-bottom: 1px solid rgb(var(--gris));
}
.faq__question{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 0;
    font-family: "Taviraj", serif;
    font-weight: 600;
    font-size: clamp(1.6rem, 1.6vw, 2rem);
    line-height: 1.3;
    color: rgb(var(--marron-fonce));
    cursor: pointer;
    list-style: none;
    transition: 0.4s all ease;
}
.faq__question::-webkit-details-marker{
    display: none;
}
.faq__question:hover{
    color: rgb(var(--marron-texte));
}
.faq__question:focus-visible{
    outline: 2px solid rgb(var(--marron-fonce));
    outline-offset: 2px;
}

/* Icône + / − */
.faq__question::after{
    content: "";
    flex-shrink: 0;
    width: 1.6rem;
    height: 1.6rem;
    background:
        linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
    transition: 0.4s transform ease;
}
.faq__item[open] > .faq__question::after{
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

/* Réponse */
.faq__reponse{
    padding: 0 0 2.5rem;
    font-size: var(--1-8rem);
    line-height: 1.6;
}
.faq__reponse > :first-child{
    margin-top: 0;
}
.faq__reponse > :last-child{
    margin-bottom: 0;
}
.faq__reponse a{
    color: rgb(var(--marron-texte));
    text-decoration: underline;
    text-underline-offset: 0.3rem;
}
.faq__reponse a:hover,
.faq__reponse a:focus{
    color: rgb(var(--marron-fonce));
}
