#parametrage_bareme_ds h2,
#zone_correction_ds h2{
    position: sticky;
    top: 0;
    z-index: 10;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

#parametrage_bareme_ds h2 div,
#zone_correction_ds h2 div{
    display: flex;
    gap: 5px;
    align-items: center;
}

#parametrage_bareme_ds h2 img,
#zone_correction_ds h2 img{
    height: 24px;
    width: 24px;
}

.partie_bareme{
    border: 2px solid var(--main_color_light);
    margin: 10px;
}

.partie_bareme h3{
	color: black;
    background-color: var(--main_color_lightest);
    margin:0;
    padding: 10px;

    display: flex;
    justify-content: space-between;
    
    position: sticky;
    top:44.6px;
    z-index: 2;
}

.partie_bareme h3 div:nth-child(2){
    display: flex;
    align-items: center;
    gap: 10px;
}

.zone_info_partie{
    display: flex;
    gap: 5px;
    align-items: center;
}

.liste_liens_docs > div{
	display: flex;
    flex-direction: column;
}

.contenu_question{
    display: grid;
    grid-template-areas: 
        "right left"; /* ← ordre inversé */
    grid-template-columns: 1.3fr 1fr;
}

.contenu_question > div:first-child{
    padding: 5px;
    border-left: 1px solid black;
    grid-area: left;
    /*overflow-x: auto;*/
}

.contenu_question > div:nth-child(2){
    grid-area: right;
}

.question_bareme{
    border: 1px solid var(--main_color_light);
    margin: 5px;
    padding: 5px;
}

.question_bareme > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    position: sticky;
    top:86.8px;
    background: white;
    z-index: 1;
}

.question_bareme > div:first-child > div{
    display: flex;
    gap: 5px;
    align-items: baseline;
}

.itemsCorrection_bareme div label{
    display: flex;
    align-items: start;
    gap: 5px;
    flex: 1;
    /*background-color: #f0f0f0; /* zone cliquable visible */
    padding: 3px;
    cursor: pointer;
}

/*.question_bareme div:first-child div span:nth-child(2){
    white-space: nowrap;
}*/

.enonce_question_label{
    font-style: italic;
    font-weight: bold;
    color: var(--main_color);
}

.critere_bareme{
    margin-left: 24px;
    margin-top: 5px;
    border-left: 1px solid var(--main_color_light);
}

.critere_bareme div {
    transition: background 1s ease;
}


.critere_bareme span{
    margin-left: 5px;
    font-weight: bold;
}

#parametrage_bareme_ds .itemsCorrection_bareme{
    margin: 5px;
}


.critere_bareme input{
    margin: 5px;
    font-weight: bold;
    border: none;
    border-bottom: 1px solid #000; 
}
.critere_bareme input:focus{
    outline:none;
    border-bottom: 1px dashed #000; 
}

.critere_bareme span input:nth-child(even){
    text-align: left;
    border-left: 1px solid #000; 
}
.critere_bareme span input:nth-child(even):focus{
    border-left: 1px dashed #000;
}


.itemsCorrection_bareme input{
    margin: 0;
    font-weight: normal;
    border: none;
    border-bottom: 1px dotted #000;
}
.itemsCorrection_bareme input:focus{
    outline:none;
    border-bottom: 1px dashed #000; 
}

.itemsCorrection_bareme span:nth-child(odd) input{
    text-align: left;
    border-left: 1px dotted #000;
}
.itemsCorrection_bareme span:nth-child(odd) input:focus{
    border-left: 1px dashed #000;
}

.zone_affichage_correction div{
    display: block;
    color: gray;
}



#zone_correction_ds .critere_bareme{
    border: 1px solid var(--main_color_light);
    margin-right: 10px;
    margin-left: 0px;
    padding: 5px;
}

.all_buttons_modif_correction{
    display: flex !important;
    gap: 5px;
    margin-bottom: 5px;
    position: sticky;
    background: white;
    top: 0;
}

.all_buttons_modif_correction img{
    width: 1.5em !important;
    height: 1.5em !important;
}

.bareme_critere, .enonce_critere{
    font-weight: normal !important;
}

.enonce_critere{
    text-decoration: underline;
    margin-bottom: 5px;
}

.coeff_item_correction, .intitule_item_correction{
    font-weight: normal !important;
}

.coeff_item_correction{
    min-width: 35px;
}



.zone_items_correction_and_commentaire{
    display: flex;
    justify-content: space-between;
    gap: 5px;
    margin-top: 5px;
}

.zone_items_correction{
    display: flex;
    flex-direction: column;
    flex:1
}
.elements_importants_raisonnement{
    color: darkseagreen;
}

.reponse_mise_en_evidence{
    display: inline-block;
    background-color: rgb(193, 232, 193);
    color: black;
}


.theme-logo {
  margin: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.theme-logo[src*="_blocked"] {
  opacity: 0.5;
}

.theme-logo[src*="_blocked"]:hover {
  opacity: 1;
}

.chapter-item {
  padding: 5px;
  cursor: pointer;
  user-select: none;
}

.chapter-item.selected {
  background-color: var(--main_color_lightest);
  font-weight: bold;
}









.custom-select-remarque-container {
    position: relative;
    width: calc(33ch);
    font-family: sans-serif;
    user-select: none;
}

.custom-select-remarque-selected {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    cursor: pointer;
    width: calc(33ch);
    box-sizing: border-box;
    
    white-space: nowrap;         /* Empêche les retours à la ligne */
    overflow: hidden;            /* Cache ce qui dépasse */
    text-overflow: ellipsis;     /* Affiche "..." à la fin */
}

.custom-select-remarque-options {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    box-sizing: border-box;
    width: max-content; 
    max-width: 50vw;
    overflow-x: auto;
}

.custom-select-remarque-option {
    padding: 8px 12px;
    cursor: pointer;
}

.custom-select-remarque-option:hover {
    background-color: #f0f0f0;
}

.hidden-remarque {
    display: none;
}







.global-side-panel {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background-color: #fff;
    border-left: 2px solid #ccc;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    padding: 8px;
    overflow-y: auto;
    z-index: 9999;
    font-family : "Trebuchet MS";
}

.global-side-panel * {
    transition: background 1s ease;
}

.close-panel-button {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.recap_ds_table{
    margin-bottom : 0.5em;
    font-size: 0.8em;
}

.first_ligne{
    border-top: 3px solid black;
}

.ligne_recap_ds_quickView td:first-child,
.ligne_recap_partie_quickView td:first-child,
.ligne_recap_chapitre_quickView td:first-child,
.ligne_recap_theme_quickView td:first-child{
    text-align: left;
}

.zone_note_20{
    margin-bottom: 0.5em;
}

.zone_commentaire_global{
    display: flex;
    flex-direction: column;
}

.zone_commentaire_global div{
    display: flex;
    font-size: 0.9em;
    justify-content: space-around;
    margin-bottom: 0.5em;
}

.zone_commentaire_global button{
    background: var(--main_color_lightest);
    border-color: var(--main_color);
    color: var(--main_color);
    font-size:0.9em;
}

.recap_previous_ds_table{
    font-size: 0.7em;
}



.select_etudiant_wrapper {
    position: relative;
    display: inline-block;
}

.select_etudiant_wrapper select {
    padding: 4px;
    font-size: 0.75em;
    max-width: none;
    font-weight: bold;
}

.etudiant_corrige{
    background-color: var(--main_color_light);
    font-weight: normal;
}


.floating_image_in_correction{
    float: right;
}