
/* HeadPage */

div.headerfaq {
    width: 100%;
    height: 200px; /* Adjust as needed */
    background: url('../../img/musculation.webp') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    border-bottom: 5px solid black;
}

div.headerfaq h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
}

/* Conteneur principal */
#faq {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Bloc question */
.category {
    border: 1px solid #ddd;
    padding: 0;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Bouton accordéon */
.accordion-toggle {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 15px;
    font-size: 1.1em;
    font-weight: bold;
    color: green;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Flèche */
.accordion-toggle .arrow {
    transition: transform 0.3s ease;
}

/* Contenu caché */
.accordion-content {
    display: none;
    padding: 0 15px 15px;
    color: black;
    line-height: 1.4;
}

/* Affiché */
.accordion-toggle[aria-expanded="true"] + .accordion-content {
    display: block;
}

/* Rotation de la flèche */
.accordion-toggle[aria-expanded="true"] .arrow {
    transform: rotate(180deg);
}
