html {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: scroll;
}


body {
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: rgb(193, 214, 207);
    width: 100%;
    height: 100%;
    overflow: hidden;

}

body.prof {
    background: #ffffff;
}

#haut {
    display: flex;
    justify-content: space-between;
    color: #ffffff;
    font-size: 24px;
    font-family: Arial, Helvetica, sans-serif;
    height: 80px;
    background-color: #2c3e50; /* Couleur de fond sombre et moderne */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Légère ombre portée */
    align-items: center;
    flex-direction: row;  
    position: relative;
    gap: 10px;
}



.correct {
    background-color: rgb(117, 255, 117);
}

.incorrect {
    background-color: rgb(247, 227, 48);
}

.neant {
    background-color: rgb(240, 167, 58);
}

.futur {
    background-color: rgb(218, 119, 243);
}


#zone-titre {
    display: flex;
    justify-content: center;
    align-items: center;
}

#titre {
    font-family: Arial;
    font-size: 64px;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;

}

#logo {
    height: 70px;
    margin-right: 10px;
    cursor: pointer;
}

.hide {
    display: none !important;
}

.transparent {
    opacity: 0;
}

#educajou {
    display: inline-block;
    height: 70px;
    width: 70px;
    margin: 5px;
}

.primtux #educajou {display: none;}

#milieu {
    flex: 1;
    height: 100%;
    position: relative;
    font-size: 12px;
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

#contenu {
    flex: 1;
    font-size: inherit;
    overflow-x: scroll;
    overflow-y: scroll;
    width: 100%;
}

#consignes, #intro {
    font-size: 16px;
    padding: 10px;
    margin: 0px auto 0px auto;
    border: 1px solid #000000;
    width: fit-content;
    border-radius: 5px;
    background-color: #ffffff;
}

#resultats-recherche {
    position: absolute;    
    top: 0px;
    left: 90px;
    max-width: 400px;
    max-height: 300px;
    overflow-y: scroll;
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 0px 0px 5px 5px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
    color: #000000;
    text-align: left;
    padding: 10px;
}

#resultats-recherche p {
    margin: 0px;
    padding: 5px;
    border-radius: 3px;
    cursor: pointer;
}

#resultats-recherche p:hover {
    background-color: #000000;
    color: #ffffff;
}

#entete-milieu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 10px;
}

#saisie {
    background: url(images/ouvrir.svg), #a2d1ff;
    background-size: 100px, 100%;
    background-position: left center;
    background-repeat: no-repeat;
    height: 100px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
    margin: 10px;
    width: fit-content;
    border: 1px #000000 solid;
    padding: 10px 10px 10px 100px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    box-shadow: 5px 5px 5px #00000083;
}

#dataGouv {
    font-size: 18px;
}


.input-texte {
    border-radius: 5px;
    font-family: inherit;
    font-size: inherit;
    width: 100%;    
    text-align: left;
    position: relative;
    box-sizing: border-box;
}

.hide {
    display: none !important;
}


#bouton-envoyer-mail {
    display: block;
    margin-top: 5px;
}

.boutonTri {
    position: absolute;
    bottom: 2px;
    left: 50%;
    border-radius: 2px;
}

.boutonTri.actif {
    background-color: red;
}

.croissant {
    transform: translateX(-100%);
}


#darkbox {
    /* Elle doit prendre toute la largeur et toute la hauteyr  */
      position: fixed;
      z-index: 999; /* O la place sous la lightbox */
      width: 100%;
      height: 100%;
      top: 0px;
      left: 0px;
      background-color: rgba(0,0,0,0.5);
    }
    
    .lightbox {
      position: fixed;
      z-index: 1000; /* O la place sur la lightbox */
      display: flex;
      flex-direction: column;
      max-width: 60%;
      height: 60%;
      top: 50%;
      left: 50%;
      padding: 10px; /* Marge intérieure */
      border-radius: 20px; /* Coins arrondis */
      box-shadow: 0px 0px 15px #ffffff; /* Ombre transparente blanche */
      border: 2px solid #000000; /* Bordure de 2px noire */
      transform: translateX(-50%) translateY(-50%); /* Pour centrer dans la page */
      background-color: #ffffff; /* Couleur de fond */
    
    }
    
    .lightbox h1 { /* Le titre */
      font-family: Arial, Helvetica, sans-serif;
      font-size: 36px;
      min-height: 36px;
      margin: 10px;
    }
    
    .contenu-lightbox {
      flex: 1;
      font-size: 16px;
      font-family: Arial, Helvetica, sans-serif;
      overflow-y: auto;
      text-align: left;
      width: fit-content;
      margin: auto;
    }
    
    .bouton-fermer {
      position : fixed;
      top: 10px;
      right: 10px;
      width: 30px;
      height: 30px;
      background-image: url(images/bouton_fermer.svg);
      background-size: contain;
      background-color: transparent;
      border: none;
      outline: none;
    }

    .cartouche {
        padding-left: 20px;
        background-repeat: no-repeat;
        background-size: contain;
        background-position: left;
    }
    
    
    #bouton-infos {
        height: 60px;
        width: 60px;
        background-image: url(images/question.svg);
        background-size: contain;
        background-repeat: no-repeat;
        background-color: transparent;
        border: none;
        outline: none;
        cursor: pointer;
    }

    #bouton-back {
        height: 60px;
        width: 60px;
        background-image: url(images/back.svg);
        background-size: contain;
        background-repeat: no-repeat;
        background-color: transparent;
        border: none;
        outline: none;
        cursor: pointer;

    }

    #bouton-majxls {
        height: 60px;
        width: 60px;
        background-image: url(images/majxls.svg);
        background-size: contain;
        background-repeat: no-repeat;
        background-color: transparent;
        border: none;
        outline: none;
        cursor: pointer;
    }

    #bouton-imprimer {
        height: 60px;
        width: 60px;
        background-image: url(images/imprimer.svg);
        background-size: contain;
        background-repeat: no-repeat;
        background-color: transparent;
        border: none;
        outline: none;
        cursor: pointer;
    }

    #bouton-enregistrer-xls {
        height: 60px;
        width: 60px;
        background-image: url(images/enregistrerXls.svg);
        background-size: contain;
        background-repeat: no-repeat;
        background-color: transparent;
        border: none;
        outline: none;
        cursor: pointer;
    }

    #bouton-enregistrer-ods {
        height: 60px;
        width: 60px;
        background-image: url(images/enregistrerOds.svg);
        background-size: contain;
        background-repeat: no-repeat;
        background-color: transparent;
        border: none;
        outline: none;
        cursor: pointer;
    }

    #bouton-carte {
        height: 60px;
        width: 60px;
        background-image: url(images/map.svg);
        background-size: contain;
        background-repeat: no-repeat;
        background-color: transparent;
        border: none;
        outline: none;
        cursor: pointer;
    }

    #tableau {
        background-color: #ffffff;
    }


    @media print {
        #haut, #entete-milieu {
            display: none;
        }

        body {
            background-color: #ffffff;
        }

        table, th, td {
            border: 1px solid black;
        }

    }


table {
    border-collapse: separate;
    box-sizing: border-box;
    border-spacing: 0px;
    table-layout: auto;
    width: fit-content;
}

th {
    background-color: #a2d1ff;
    box-sizing: border-box;
}

td {
    background-color: #ffffff;
    box-sizing: border-box;
}

/* Largeurs des colonnes fixes */
th:nth-child(1), td:nth-child(1) { width: 80px !important; min-width: 80px;}
th:nth-child(2), td:nth-child(2) { width: 150px !important; min-width: 150px; }
th:nth-child(3), td:nth-child(3) { width: 300px !important; min-width: 300px;}
th:nth-child(4), td:nth-child(4) { width: 75px !important; min-width: 75px;}

td:nth-child(-n+4) {
    background-color: #cae1fa;
}

/* Colonnes sticky */
tbody td:nth-child(1),
thead th:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 3;
}

tbody td:nth-child(2),
thead th:nth-child(2) {
  position: sticky;
  left: 80px; /* largeur col 1 */
  z-index: 3;
}

tbody td:nth-child(3),
thead th:nth-child(3) {
  position: sticky;
  left: 230px;
  z-index: 3;
}

tbody td:nth-child(4),
thead th:nth-child(4) {
  position: sticky;
  left: 530px;
  z-index: 3;
}

/* En-tête sticky */
thead {
  position: sticky;
  top: 0;
  z-index: 4;
  box-sizing: border-box;
}

table, th, td {
    border: 1px solid black;
    box-sizing: border-box;
}

th, td {
    padding: 4px;
    text-align: left;
    white-space: nowrap;
    width: fit-content;
    word-wrap: break-word;
    overflow: hidden;
    max-width: 200px;
}

/* Styles spécifiques */
td.date {
    width: 6rem;
    font-weight: bold;
    text-align: center;
}

td.mail {
    font-size: 24px;
}

td.texte {
    width: 200px !important;
}

td.mail a, td.mail a:visited {
    text-decoration: none;
}

th {
    text-align: center;
    background-color: #b6d0eb;
    position: relative;
    padding-bottom: 25px;
    vertical-align: top;
}



