/* Styles spécifiques pour les pages de questionnaire */

/* Div pour le nom du film et la catégorie */
.conteneur_nom_film_categorie {
    display: flex;
    flex-direction: column;
    margin-left: -78%;
}

.conteneur_pointe {
    position: relative;
    color: white;
    width: 100px;
    padding: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.conteneur_pointe::after {
    content: '';
    position: absolute;
    top: 0;
    right: -17.9px;
    width: 15%;
    height: 100%;
    background-color: inherit;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.nom_film {
    background-color: var(--rouge);
    margin-left: 10px;
}

.categorie {
    background-color: var(--vert);
    margin-left: 40px;
    margin-top: -5px;
}

/* Div pour les questions */
.conteneur_question {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 70%;
    margin: 20px;
    padding: 15px;
    border-radius: 20px;
}

.question {
    background-color: var(--couleur-fond);
    color: black;
    padding: 5px;
    border-radius: 10px;
    border: 3px solid var(--jaune);
}

.info {
    color: black;
    padding: 5px;
}

.reponse {
    background-color: white;
    color: black;
    padding: 5px;
    border-radius: 10px;
    border: 3px solid var(--bleu);
}

.bouton_valider {
    padding: 10px 20px;
    border-radius: 15px;
    background-color: var(--vert);
    color: white;
}

input[type="text"] {
    field-sizing: content;
    min-width: 3ch;
    max-width: 100%;
}

/* Avancement */
.avancement {
    margin: 10px;
    color: white;
    font-size: medium;
    font-weight: bold;
    -webkit-text-stroke: 0.3px black;

}

/* Animations de réussite ou d'échec */
@keyframes successAnimation {
    0% { transform: scale(1); background-color: var(--couleur-fond); }
    50% { transform: scale(1.05); background-color: var(--vert); }
    100% { transform: scale(1); background-color: var(--couleur-fond); }
}

@keyframes errorAnimation {
    0% { transform: scale(1); background-color: var(--couleur-fond); }
    50% { transform: scale(1.05); background-color: var(--rouge); }
    100% { transform: scale(1); background-color: var(--couleur-fond); }
}

.reussite {
    animation: successAnimation 0.5s ease-in-out;
}

.echec {
    animation: errorAnimation 0.5s ease-in-out;
}

@media (max-width: 800px) {
    .conteneur_question {
        max-width: 90%;
    }
    .resultats-container {
        max-width: 90%;
    }
    .conteneur_nom_film_categorie {
        position: static;
        margin: 10px;
        margin-left: 0;
        align-self: baseline;
    }
}

/* Modal de sélection des films */
.modal-selection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.conteneur-selection {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 90%;
    max-height: 80%;
    overflow-y: auto;
}

.conteneur-selection h2 {
    text-align: center;
    margin-bottom: 20px;
}

.liste-films {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.liste-films label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.liste-films input[type="checkbox"] {
    margin: 0;
}

.conteneur-selection .boutons-selection {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.conteneur-selection button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: white;
}

#selectionner-tous {
    background: var(--vert);
}

#deslectionner-tous {
    background: var(--rouge);
}

#valider-selection {
    background: var(--bleu);
}