/* Espacement entre les questions */
.faq-section{
    padding: 40px;
}

/* Masquer les checkbox et les paragraphes */
.faq-section input,
.faq-section p{
    display: none;
    margin-left: 20px;
    margin-right: 20px;
}


.faq-section p {
    max-width: 800px; /* ou toute autre valeur appropriée */
    margin: 0 auto; /* Centrer le paragraphe */
    overflow-wrap: break-word;
}


/* Si le checkbox est coché, montrer tous les paragraphes */
.faq-section input[type=checkbox]:checked~p{
    display: block;
    color: #342401e7;
    font-size: 1.2em;
    /* Restaurer le texte entier */
    text-overflow: clip;
    white-space: normal;
    overflow: visible;
    font-family: 'Times New Roman', Times, serif;
}

/* Style des label */
.faq-section label{
    font-size: 1.2em;
    cursor: pointer;
    background: #f3f3efe7;
    display: block;
    position: relative;
    padding: 7px 10px;
    font-weight: bold;
    border: 1px solid #342401e7;
    border-left: 3px solid #342401e7;
    text-shadow: 0 1px 0 rgba(255,255,255,.5);
    transition: all .15s ease-out;
    width: min(800px, 100%);
    max-width: 800px;
    box-sizing: border-box;
    margin: 0 auto;
    padding-right: 32px;
}



/* Éviter de sélectionner le texte en cliquant plusieurs fois */
.faq-section label::selection{
    background: none;
}

.faq-section label:hover{
    background: #946b4f;
}

/* Style du label si le checkbox est coché */
.faq-section input[type=checkbox]:checked~label{
    border-color: #342401e7;
    background: #f5deb4;
    background-image: linear-gradient(to bottom, #fff, #f5deb4);
    box-shadow: 0 0 1px rgba(0,0,0,.4);
}

/* Flèche label par défaut */
.faq-section label::before{
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -6px;
    border: 6px solid transparent;
    border-left-color: inherit;
}

/* Flèche label sélectionné */
.faq-section input[type=checkbox]:checked~label::before{
    border: 6px solid transparent;
    border-top-color: inherit;
    margin-top: -3px;
    right: 10px;
}

h3 {
    color: #211001;
    font-family: 'Stencil';
    font-size: 35px;
    padding: 20px;

}

label {
    color: #211001;
}

.faq-section label {
    font-size: 15px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: bold;
}

.faq-section input[type=checkbox] {
    vertical-align: middle;
}


@media screen and (max-width: 480px) {
    .faq-section{
        padding: 18px 12px;
    }

    .faq-section br{
        display: none;
    }

    .faq-section label{
        width: 100%;
        max-width: 100%;
        font-size: 14px;
        padding: 10px 36px 10px 12px;
    }

    .faq-section input[type=checkbox]:checked~p{
        font-size: 1em;
        margin: 10px 0 0 0;
        max-width: 100%;
    }

    .faq-section p{
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
}


