/* ==========================================================
   COMPOSANT : CADRE QUESTION (ACCORDÉON)
   ========================================================== */

.cadre-question {
    width: 100%;
    background: rgba(80, 0, 0, 0.9);
    border-left: 4px solid rgba(255, 170, 20, 0.5);
    box-shadow: 0 1px 4px rgba(255, 170, 0, 0.1);
    border-radius: 4px;
    overflow: hidden; /* Crucial pour l'animation de la hauteur */
    transition: background-color 0.3s ease;
}

.cadre-question:hover {
    background: rgba(20, 0, 0, 0.3);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
}

.question-header h3 {
    font-family: var(--font-titres);
    font-size: var(--taille-question);
    color: #f0f0f0;
    margin: 0;
}

.question-toggle-icon {
    font-family: var(--font-texte); /* On utilise la variable de la police */
    font-size: 2rem;
    font-weight: normal; /* Changé de 300 à normal */
    color: rgba(255, 170, 30, 0.6);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.question-answer {
    max-height: 0; /* Caché par défaut */
    opacity: 0;
    padding: 0 1.5rem;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out,
                padding 0.5s ease-in-out,
                opacity 0.3s ease-in-out;
}

.question-answer p {
    font-family: var(--font-texte);
    font-size: var(--taille-reponse);
    line-height: 1.6;
    margin: 0;
    padding-bottom: 1.25rem; /* Padding interne pour l'espacement */
}

/* --- État Actif (quand la réponse est visible) --- */

.cadre-question.active .question-answer {
    max-height: 80rem; /* HAUTEUR DU CADRE QUI SE DÉROULE SOUS LA QUESTION */
    opacity: 1;
    padding: 0 1.5rem; /* Rétablissement du padding horizontal */
}

.cadre-question.active .question-toggle-icon {
    transform: rotate(45deg); /* Le "+" devient une croix "x" */
}