/* DÉBUT CSS QUESTIONS */
.flexbox_questions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5em;
    max-width: 100%;
    padding: 1em;
}

.flexbox_questions article {
    flex: 0 1 22%;
    display: flex;
    justify-content: center;
}

.case_question_anim {
    width: 100%;
    background: #fefefe;
    border: none;
    border-radius: 12px;
    padding: 1em;
    text-align: center;
    box-shadow: 0 4px 12px rgba(55, 50, 62, 0.15);
    font-size: 0.9em;
    transition: transform 0.2s ease;
}

.case_question_anim:hover {
    transform: translateY(-4px);
}

.case_question_anim h1.tri_num {
    color: #de9e36;
    font-weight: bold;
    font-size: 1.2em;
}

.case_question_anim h3.tri-theme {
    color: #6d6a75;
}

.case_question_anim em.tri-auteur {
    font-style: italic;
    color: #6d6a75;
}

button {
    background-color: #deb841;
    color: #37323e;
    border: none;
    padding: 0.5em 1em;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease;
}

button:hover {
    background-color: #de9e36;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 1em;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 1.5em;
    border: 2px solid #de9e36;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Crois de fermeture */
.close-modal {
    color: #de9e36;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* Titres et infos centrés */
.modal-content h1,
.modal-content h2,
.modal-content h3,
.modal-content em {
    text-align: center;
    margin: 0.3em 0;
}

/* Réponse alignée à gauche */
.modal-content h1:has(.toggle-rep) {
    align-self: flex-start;
    text-align: left;
    margin-top: 1em;
}

/* Effet réponse */
.toggle-rep {
    background-color: black;
    color: transparent;
    cursor: pointer;
    padding: 0.3em;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toggle-rep-content {
    opacity: 0;
    transition: opacity 0.3s ease;
    color: black;
    display: inline;
}

/* Formulaire */
.modal-content form {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 1em;
    align-items: center;
}

.modal-content input[type="text"] {
    width: 90%;
    margin: 0.3em 0;
    padding: 0.4em;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Boutons centrés */
.modal-content button {
    margin-top: 0.5em;
    padding: 0.4em 1em;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

.modal-content form:first-of-type button {
    background-color: #deb841;
    color: white;
}

.modal-content form:first-of-type button:hover {
    background-color: #de9e36;
    color: white;
}

.modal-content form:last-of-type button {
    background-color: #deb841;
    color: white;
}

.modal-content form:last-of-type button:hover {
    background-color: #de9e36;
    color: white;
}



@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.toggle-rep {
    background-color: #6d6a75;
    padding: 0.2em 0.4em;
    display: inline-block;
    cursor: pointer;
    border-radius: 5px;
    color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.toggle-rep-content {
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #37323e;
}

.active {
    color: #c60;
}

.hidden {
    display: none !important;
}

.modification-actions {
    margin-top: 1em;
    display: flex;
    gap: 1em;
    justify-content: center;
}

.modification-actions button {
    padding: 0.5em 1em;
    border: none;
    background: #37323e;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.modification-actions button:hover {
    background: #555;
}

.controls {
    background-color: #fefefe;
    border-radius: 10px;
    padding: 1em;
    margin-bottom: 1em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sort-controls button,
.filter-controls button {
    margin: 0 0.2em;
}

.sort-controls button.active,
.filter-controls button.active {
    background-color: #de9e36;
    color: white;
}
/* FIN CSS QUESTIONS */