@font-face {
    font-family: 'Romain';
    src: url(polices/EcritureA-Romain.otf)
}

* {
    user-select: none;
}

html, body {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    color: #000000;
}


body {
    background: linear-gradient(to bottom, #9bbbff, #ffffff); /* Dégradé du bleu clair vers le blanc */
    display: flex;
    flex-direction: row;
    margin: 0; /* Enlève les marges par défaut du body */
}

  

body.prof {
    background: #ffffff;
}

#droite {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#haut {
    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 */
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

#logo {
    height: 70px;
}


#bas {
    display: flex;
    align-items: center;
    justify-content: center;
    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 */
    position: relative;
    color: #ffffff;
    font-size: 34px;
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
}

#message-beta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    width: 600px;
    max-width: 100%;
    max-height: 100%;
    padding: 15px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    background-color: #c5d8ff;
    color: #000000;
    border: 3px outset #000000;
    border-radius: 15px;
    z-index: 1000000;
}

#message-beta img {
    float: left;
    margin-right: 10px;
}

#understood-button {
    display: block;
    width: fit-content;
    font-size: 24px;
    margin-left: auto;
    margin-right: auto;
}

.cartouche {
    padding-left: 20px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left;
}


#bouton-infos {
    position: absolute;
    bottom: 10px;
    left: 5px;
    height: 60px;
    width: 60px;
    background-image: url(images/question.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    outline: none;
}

#panneau input[type="number"] {
    width: 1.2em;
    display: inline-block;
    font-family: Romain;
    font-weight: bold;
    text-align: center;
    font-size: 54px;
    height: 40px;
    line-height: 40px;
    margin-bottom: 3px;
    border-radius: 5px;
    vertical-align: bottom;
    padding: 0;
}

#section-intervalle input[type="number"] {
    width: 2em;
    font-size: 24px;
    height: 18px;
    line-height: 18px;
    margin-bottom: 3px;
    border-radius: 5px;
    box-sizing: border-box;
    vertical-align: bottom;
    padding: 0;
}

#panneau input[type="range"] {
    vertical-align: middle;
    width: 120px;
}

.nombre {
    display: inline-block;
    font-family: Romain;
    font-weight: bold;
    text-align: center;
    font-size: 64px;
    line-height: 40px;
    height: 40px;
    min-width: 40px;
    color: #000000;
    background: #ffffff;
    border-radius: 50%;
    padding: 1px;
    vertical-align: middle;
}

#input-nombre {
    display: block;
    width: 2em !important;
    box-sizing: border-box;
}

#resultat {
    min-width: 60px;
    height: 60px;
    line-height: 60px;
}

#milieu {
    flex: 1;
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    position: relative;
    overflow: hidden;
    font-size: 0px;
    padding: 0px 5px; /* Espacement sur les côtés */
    gap: 10px; /* Espacement entre les colonnes */
}

.tableau-blanc #milieu {
    gap: 0px;
}

.colonne {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}




.entete-colonne {
    height: 110px;
}

.entete-colonne>div {
    margin-top: 5px;
}

.pied-colonne {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 15px;
}

.entete-colonne>div {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.bouton-image {
    display: inline-block;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    outline: none;
    vertical-align: middle;
}

.petit {
    height: 30px;
    width: 30px;
}

button.texte {
    display: flex; /* Active Flexbox */
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    font-size: 16px; /* Taille du texte du "+" */
}

.lettre {
    display: inline-block;
    font-size: 24px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    vertical-align: middle;
    margin: 0 5px 0 5px;
}

.corbeille {
    background-image: url(images/corbeille2.png);
}
.oeil {
    background-image: url(images/oeil.png);
}
.ranger {
    background-image: url(images/ranger.png);
}
.melanger {
    background-image: url(images/melanger.png);
}

.bouton-image.grouper {
    background-image: url(images/grouper.png);
}
.bouton-image.degrouper {
    background-image: url(images/degrouper.png);
}

.loup {
    background-image: url(images/rideau-down.png);
}

.couleur {
    background-image: url(images/couleurs.svg);
}

.masquee .loup {
    background-image: url(images/rideau-up.png);
}

.afficher {
    background-image: url(images/teacher.png);
}
.afficher-hasard {
    background-image: url(images/hasard.png);
}
.interroger {
    background-image: url(images/teacher2.png);
}
.interroger-hasard {
    background-image: url(images/hasard2.png);
}
.cadenas {
    background-image: url(images/cadenas_ouvert.png);
    background-size: 80%;
    background-position: center;
}

.cadenas.ferme {
    background-image: url(images/cadenas_ferme.png);
}

.annuler {
    background-image: url(images/annuler.svg);
}

.refaire {
    background-image: url(images/refaire.svg);
}

button:hover:not(:disabled):not(.bouton-couleur) {
    background-color: #ffffff75 !important;
    filter: brightness(110%);
    border-radius: 5px;
}

.annuler:disabled {
    opacity: 0.5;
    filter: grayscale(1);
}

.refaire:disabled {
    opacity: 0.5;
    filter: grayscale(1);
}

.separation {
    background-image: url(images/separation.png);
}

.deselectionner {
    background-image: url(images/deselectionner.svg);
}


.centre-colonne {
    flex: 1;
    background-color: rgba(255, 255, 255, 1);
    border: 1px solid #000000;
    border-radius: 5px;
    position: relative;
}

body.modeSeparation .centre-colonne::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1%;
    background-color: #c50063;
    top: 50%;
    left: 0px;
    transform: translateY(-50%);
    z-index: 999999;
}

body.signaler .centre-colonne.dix {
    background-color: rgb(255, 202, 237);
}

.bloc {
    position: absolute;
    transform: translate(-50%, -50%);
    background-color: transparent;
    overflow: visible;
    transition: filter 0.1s ease;
}

body.couleursHautBas .bloc.inverse {
    filter: invert(1);
}

.bloc:hover {
    box-shadow: 0 0 0 4px rgba(0, 0, 255, 0.555);
    cursor: pointer;
}



.color-selector-container {
    position: absolute;
    z-index: 1000000;
    border: 1px solid #000000;
    background: #fff;
    padding: 5px;
    border-radius: 5px;
    left: 50%;
    top: -220px;
    width: calc(90% - 10px);
    transform: translateX(-50%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.color-selector-label {
    font-size: 14px;
    margin-bottom: 8px;
    text-align: center;
    margin: 5px auto 0px auto;
    pointer-events: none;
}

.color-selector-range {
    width: 100%;
}


#panneau {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 100%;
    width: 200px;
    background-color: #a4bcd4; /* Couleur de fond sombre et moderne */
    font-size: 18px;
    font-family: Arial, Helvetica, sans-serif;
    overflow-y: auto;
}

#haut-panneau {

}

#zone-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.primtux #haut-panneau {
    justify-content: right;
    padding-right: 15px;
}

#milieu-panneau {
    flex: 1;
    overflow-y: scroll;
}

.section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    margin: 10px auto 10px auto;
    padding: 5px;
    width: calc(90% - 10px);
    border: 2px outset #ffffff;
    border-radius: 5px;
}

#section-intervalle {        
    display: block;
    justify-content: left;
    text-align: left;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    color : #000000;
}

#section-colonnes {
    display: flex;
    flex-direction: column;
    color: #000000;
    font-weight: bold;
}

#section-objets {
    font-size: 12px;    
}

#section-objets>div {
    display: block;
    width: 100%;
    text-align: left;
}

#select-blocs {
    width: 100px;
}


#input-colonnes {
    display: flex;
    flex-direction: row; /* Les enfants sont disposés en ligne */
    gap: 10px; /* Espacement entre les colonnes */
    color: #000000;
    font-weight: bold;
  }
  
  .input-container {
    display: flex;
    flex-direction: column; /* Affiche le label au-dessus de l'input */
    align-items: center; /* Centre les éléments horizontalement */
  }
  
  .input-container label {
    margin-bottom: 5px; /* Ajoute un espacement entre le label et l'input */
  }

#section-intervalle>div:first-of-type {
    margin-top: 5px;
}

.section button {
    font-size: 16px;
    height: 38px;
    font-weight: bold;
    vertical-align: middle;
}


.bouton-panneau {
    display: inline-block;
    width: 35px !important;
    height: 35px !important;
}

#compteur-general {
    text-align: center;
    margin: 10px auto 10px auto;
    width: 80%;
    background-color: #000000;
    color : #ffffff;
    font-family: Romain;
    font-weight: bold;
    font-size: 64px;
    border: 2px #ffffff outset;
    border-radius: 10px;
    position: relative;
    margin-bottom: 20px;
}

.entete-colonne .compteur {
    font-family: Romain;
    font-size: 64px;
    line-height: 24px;
    font-weight: bold;
    margin: 0px;
    padding: 8px;
    color: #ffffff;
    background-color: #000000;
    border-radius: 5px;
    position: absolute;
    top: 32px;
    box-sizing: border-box;
    border: 1px #ffffff outset;
}

.centre-colonne .compteur {
    font-family: Romain;
    font-size: 64px;
    line-height: 24px;
    font-weight: bold;
    margin: 0px;
    padding: 8px;
    color: #ffffff;
    background-color: #000000;
    border-radius: 5px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    border: 1px #ffffff outset;
    display: inline-block;
    min-width: 0.7em;
    text-align: center;
}

body:not(.modeSeparation) .centre-colonne .compteur {
    display: none;
}

.centre-colonne .compteur.masque {
    color: transparent;
    background-image: url(images/oeil.png);
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #cde8fa;
}

.centre-colonne .compteur:first-of-type {
    bottom: 52%;
}

.centre-colonne .compteur:last-of-type {
    top: 52%;
}

body.masquer-compteur #compteur-general.grouper::after {
    content: '';
    position: absolute;
    width: 38px;
    height: 38px;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background-image: url(images/grouper.png);
    background-size: cover;    
}

.general {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #ffffff;
    border-radius: 5px;
    border: gray outset 1px;
    background-size: 90%;
    background-repeat: no-repeat;
    background-position: center;

}

#oeil-general {
    right: -15px;
    top: -15px;   
}

#corbeille-generale {
    left: -15px;
    top: -15px; 
}

#ranger-general {
    left: -15px;
    bottom: -15px;   
}

#melanger-general {
    right: -15px;
    bottom: -15px;   
}


#bas-panneau {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#panneau h2 {
    text-align: center;
}


.intitule {
    display: inline-block;    
    padding-right: 0.3em;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    text-align: right;
    vertical-align: middle;
}

#gestion-hasard .intitule {
    width: 1.8em;
}

#gestion-flou .intitule {
    width: 4.2em;
}


#bouton-hasard {
    position: absolute;
    bottom: 10px;
    right: 10px;
    height: 60px;
    font-size: 24px;
    padding: 5px 5px 5px 32px;    
    background-image: url(images/hasard.svg);
    background-size: 25px;
    background-position: 2px center;
    background-repeat: no-repeat;
    border-radius: 5px;

}






:root {
    /* Teinte (Hue) */
    --filtre-unite: hue-rotate(0deg);
    --filtre-dizaine: hue-rotate(0deg);
    --filtre-centaine: hue-rotate(0deg);
    --filtre-millier: hue-rotate(0deg);

    /* Luminosité (Brightness) */
    --filtre-unite-brightness: brightness(100%);
    --filtre-dizaine-brightness: brightness(100%);
    --filtre-centaine-brightness: brightness(100%);
    --filtre-millier-brightness: brightness(100%);

    /* Saturation (Saturate) */
    --filtre-unite-saturate: saturate(100%);
    --filtre-dizaine-saturate: saturate(100%);
    --filtre-centaine-saturate: saturate(100%);
    --filtre-millier-saturate: saturate(100%);

    /* Inversion des couleurs (Invert) */
    --filtre-unite-invert: invert(0);
    --filtre-dizaine-invert: invert(0);
    --filtre-centaine-invert: invert(0);
    --filtre-millier-invert: invert(0);

    --filtre-unite-invert-inverse: invert(1);
    --filtre-dizaine-invert-inverse: invert(1);
    --filtre-centaine-invert-inverse: invert(1);
    --filtre-millier-invert-inverse: invert(1);
}


#bouton-options {
    background-image: url(images/options.png);
}

#bouton-lien {
    background-image: url(images/lien.svg);
}

#bouton-a-propos {
    background-image: url(images/info.png);
}





.transparent {
    color: rgba(255, 255, 255, 0) !important;
}

#educajou {
    height: 70px;
    width: 70px;
}

.primtux #educajou {display: none;}


#menu {
    position: absolute;
    bottom: 0px;
    width: 389px;
    max-height: calc(100% - 10px);
    max-width: calc(100% - 10px);
    padding: 5px 5px 5px 5px;
    background: #ffffffe5;
    border: none;
    z-index: 1000;
    border-radius: 0px 15px 0px 0px;
    transition: left 0.2s linear;
    color: #fff;
    font-size: 24px;
    font-family: Arial, Helvetica, sans-serif;
}

#menu p {
    margin: 0px 0px 10px 0px;
    font-weight: bold;

}

#stats {
    position: absolute;
    overflow-y: hidden;
    bottom: 0px;
    width: 389px;
    max-width: calc(100% - 10px);
    padding: 5px 5px 5px 5px;
    height: calc(100% - 10px);
    background: #041832ec;
    border: none;
    z-index: 1000;
    border-radius: 15px 0px 0px 0px;
    transition: right 0.2s linear;
    color: #fff;
    font-size: 24px;
    font-family: Arial, Helvetica, sans-serif;
}

#stats p {
    margin: 0px 0px 10px 0px;
    font-weight: bold;

}

.section {
    border-top: 1px solid #fff;
}

.section:first-of-type {
    border-top: none;
}

#reussite {
    text-align: center;
}

#resultats {
    padding-top: 15px;
    height: calc(100% - 170px);
    overflow-y: scroll;
    text-align: left;
    border-bottom: 1px solid #fff;
}

.titre {
    padding: 5px 0px 5px 0px;
}

#titre-options, #titre-stats {
    height: 60px;
    margin: 0;
    font-size: 36px;
    line-height: 52px;
}


.bouton-couleur {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #444;
  margin: 5px;
  cursor: pointer;
  outline: none;
}

.bouton-couleur.jaune {
  background-color: #f1c40f;
}

.bouton-couleur.bleu {
  background-color: #3498db;
}

.bouton-couleur.vert {
  background-color: #2ecc71;
}

.bouton-couleur.rouge {
  background-color: #e74c3c;
}

.bouton-couleur.orange {
  background-color: #e67e22;
}

.bouton-couleur.violet {
  background-color: #9b59b6;
}


/* Optionnel : effet au survol */
.bouton-couleur:hover {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}


#bouton-ferme-menu {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 24px;    
}

#stats-bas {
    display: flex;
    align-items: center;
    justify-content: center;
}

#bouton-effacer-stats {
    font-size: 24px;
    margin: 5px;
    vertical-align: middle;
}

.bouton {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 24px;
}

.bouton-haut {
    width: 50px;
    height: 50px;
    background-repeat: no-repeat;
    background-position: center;
    padding: 5px;
    border-radius: 5px;
    background-color: rgb(214, 207, 207);
    background-size: 90%;
    border-radius: 5px;
    margin-left: 5px;
    margin-right: 5px;
}

#bouton-menu {
    background-image: url(images/menu.svg);
    position: absolute;
    bottom: 15px;
    left: 10px;
    z-index: 100000;    
}

#bouton-stats {
    display: none;
    background-image: url(images/stats.svg);
    position: absolute;
    bottom: 15px;
    right: 10px;
    z-index: 100000;
}

.eleve #bouton-stats {
    display: block;
}

.eleve #bouton-reponses {
    display: none;
}

#menu button {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 24px;
    font-family: Arial, Helvetica, sans-serif;
    padding-left: 40px;
    background-size: 30px;
    background-position: left;
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    outline: none;
}

form {
    margin-bottom: 10px;
}

#boutonPleinEcran {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background-image: url(images/pleinecran.png);
    background-size: contain;
    background-color: transparent;
    border: none;
    outline: none;
    z-index: 1000000;
}

#darkbox {
    /* Elle doit prendre toute la largeur et toute la hauteyr  */
      position: fixed;
      z-index: 1000000; /* 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: 1000001; /* 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;
    }

    .section-option {
        margin-bottom: 15px;
        padding: 20px 10px;
        min-width: 300px;
        border: 1px #000000 solid;
        border-radius: 10px;
        position: relative;
        overflow: visible;
    }
    
    .titre-section {
        font-size: 14px;
        position: absolute;
        top: -10px;
        left: 10px;
        background-color: #ffffff;
        padding: 0 5px;
        z-index: 1;
    }



.accueil #boutons-milieu-bas {
    display: none !important;
}

.select {
    box-shadow: 0 0 0 4px blue !important; /* Une ombre avec une couleur rouge autour de l'image */
}


.centre-colonne.interdit {
    background-color: rgb(182, 58, 79);
}

.centre-colonne .rideau {
    content: '';
    position: absolute;
    top: 0%;
    left: 0px;
    width: 100%;
    height: 0%;
    background: #000000;
    border-radius: 0px 0px 0px 5px;
    cursor: ns-resize;
}

.tableau-blanc .centre-colonne .rideau {
    border-radius: 0px 0px 5px 5px;
}

.centre-colonne .rideau::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0%;
    width: 10px;
    height: 10px;
    background-color: #000000;
    border-radius: 0px 0px 0px 15px;
    transition: width 0.3s ease, height 0.3s ease;
}

.centre-colonne .rideau:hover::after {
    width: 40px;
    height: 40px;    
}

.rideau.releve::after{
    height: 10px;
    width: 10px;
    border-radius: 0px 0px 0px 15px;
}

.rideau:not(.releve) {
    box-shadow: 0px 10px 10px gray;
}

.tableau-blanc .rideau.releve::after{
    border-radius: 0px 0px 15px 15px;
}

.rideau.baisse::after{
    height: 0px !important;
    width: 0px !important;
}

.masquee .rideau {
    height: 100%;
}

.centre-colonne.degroupage::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    height: 50px;
    width: 50px;
    z-index: 1000000;
    background-image: url(images/degrouper.png);
    background-size: cover;
    transition: all 0.3s linear;    
}

.tableau-blanc .centre-colonne {
    background: none !important;
    border: none !important;
}

#tableau-blanc {
    position: absolute;
    top: 110px;
    width: calc(100% - 12px) ;
    height: calc(100% - 162px);
    background-color: #ffffff;
    border: 1px solid #000000;
    border-radius: 5px;
}



.survol {
    box-shadow: 
    0px -0px 5px rgba(255, 230, 0, 0.8); /* Lumière en haut à gauche */
}

.suppr {
    filter: brightness(0.7) sepia(1) hue-rotate(-50deg) saturate(4);
}

.rectangle {
    position: absolute;
    border: 3px solid blue;
    background: transparent;
}

body.masquer-compteur .flou {
    filter: blur(8px);
}

.hide {
    display: none;
}

.tableau-blanc #tableau-blanc {
    display: block;
}