/* Legacy layout and interaction rules. Visual tokens live in
   design-system-claude/design-system.css; themed components live in theme.css. */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
    min-height: 100vh;
    background: var(--ds-surface-raised);
    font-family: var(--ds-font-sans);
}


.carte {
    background-color: transparent;
}

.container {

    margin-left: auto;
    margin-right: auto;
}

.main-quizz {
    height: 100vh;
    border-radius: 10px;
    background-color: var(--ds-surface);
    margin-top: 10px;
}

.qcm {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    align-content: stretch;
    box-shadow: var(--shadow-card);


    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 100%;

    .gauche {
        width: 50%;
    }

    .droite {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: stretch;
        align-content: stretch;
        width: 50%;
    }
}

.qcm:hover {
    box-shadow: var(--shadow-card-hover);
}


.loginform {
    width: 100%;
}

.contextual_menu {
    margin-bottom: 20px;
}

a.btn {
    margin: 5px;
}

/* MOBILE */
@media screen and (max-width: 768px) {
    .container {
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
    }

    .main {
        border-radius: 10px;
        background-color: var(--ds-paper);
        margin-top: 10px;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: stretch;
        align-content: stretch;

    }


    .formulaire {
        padding: 15px !important;
        width: 100%;
    }

    .sidebar {
        padding: 15px !important;
        width: 100%;
    }

    .right {
        width: 70%;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: stretch;
        align-content: stretch;
    }

    .hide_in_mobile {
        display: none;
    }
}

/* DESKTOP */
@media screen and (min-width: 768px) {
    .main {
        border-radius: 10px;
        background-color: var(--ds-paper);
        margin-top: 10px;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: stretch;
        align-content: stretch;
    }

    .formulaire {
        padding: 15px !important;
        width: 50%;
    }

    .sidebar {
        padding: 15px !important;
        width: 50%;

    }

    .utilisateur-select::-webkit-scrollbar {
        width: 12px;
    }

    .utilisateur-select::-webkit-scrollbar-track {
        background-color: transparent;
        border: 1.5px solid var(--ds-line-strong);
        border-radius: 8px;
    }

    .utilisateur-select::-webkit-scrollbar-thumb {
        background-color: var(--ds-line-strong);
        border: 2px solid var(--ds-paper);
        border-radius: 8px;
    }

    .utilisateur-select {
        height: 600px;
        overflow-y: auto;
    }

    #groupe {
        margin-bottom: 10px;
    }

    .right {
        width: 60%;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: stretch;
        align-content: stretch;
    }


}



.copy {
    border: 1px solid var(--ds-line-strong);
    border-radius: 5px;
    padding: 0px;
    background-color: var(--ds-surface);
    font-size: 1em;
    cursor: pointer;
    padding: 3px;
}

.copy:active {
    transform: translateY(2px);
}



.radio-label {
    cursor: pointer;
    background-color: var(--ds-accent-soft);
    border-radius: 5px;
    padding: 6px;
    margin: 3px;
}

.quizzmain {
    padding: 0 25px 0 25px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    align-content: stretch;

}

.buttonGroup {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid green;
}

ul li {
    cursor: pointer;
}

ol li {
    cursor: pointer;
}

.reponse_wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    align-content: stretch;
}

.reponse_switch {
    /* border: #FF0099 solid 1px !important; */
    width: 10%;
}

.reponse_input {
    /* border: #0011ff solid 1px; */
    width: 80%;

}

.reponse_delete {
    /* border: #FF0099 solid 1px !important; */
    width: 10%;
}

ol li:hover {
    background-color: var(--ds-surface);
}

.fake_link {
    color: var(--ds-accent);
    text-decoration: underline;
    cursor: pointer
}

textarea::placeholder {
    color: var(--ds-muted);
}


#promptWindow {
    margin-bottom: 10px;
}



.time-select-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 5px;
}

#duree {
    display: none;
}

.list-group-item .bi-trash {
    color: var(--ds-danger);
    opacity: 0;
    vertical-align: middle;
    margin-top: 5px;
    transition: opacity 0.2s ease-in-out;
}

.list-group-item:hover .bi-trash {
    opacity: 1;
}

#affectation {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    align-content: stretch;
}

#affectation_utilisateur {
    /* border: 1px solid red; */
    width: 50%
}

#affectation_groupes {
    /* border: 1px solid red; */
    width: 50%
}

/* Section exploitant de editQuestionnaire*/
.exploitant {
    border: var(--ds-line) 1px dashed;
    padding: 10px;
    border-radius: 10px;
    background-color: var(--ds-paper);
    margin-top: 10px;
    /* display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    align-content: stretch; */
}

#exploitant-editor-list {
    margin-top: 8px;
    /* border: #93339E 1px solid;*/
    width: 100%;
}

.exploitant-header {
    cursor: pointer;
    padding: 5px;
    background-color: var(--ds-surface);
    border: 1px solid var(--ds-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    margin-bottom: 8px;
}

.exploitant-header:hover {
    background-color: var(--ds-surface-raised);
}

.arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.arrow.collapsed {
    transform: rotate(-90deg);
}

.exploitant-content {
    width: 100%;
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.exploitant-content.collapsed {
    max-height: 0;
}

#spinner {
    display: none;
}
