html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}


body {

  background-color: rgb(255, 193, 157);
  margin: 0 auto;
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden;
  width: 100%;
  height: 100%;



}


p {
  font-family: Arial, Helvetica, sans-serif;
  color: #000000;
  font-size: 14px;
  margin: 0;
  padding: 0;
}


.fond-nid-image {
  position: absolute;
  width: 150vh;
  height: auto;
  top: 5vh;
  left: -16vh;
  z-index: 0;
}

.main-fond-nid {
  position: relative;
  width: 140vh;
  height: 100vh;
  margin: 0px auto;
  z-index: 0;
  background-color: rgb(254, 247, 190);

}

.nid-et-boutons-ensemble {
  position: absolute;
  width: 130vh;
  height: 100vh;
  margin: 0px auto;
  z-index: 0;
  left: 6vh;
  top: 3vh;
  background-color: rgb(254, 247, 190);

}


/* Fond sombre */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1; /* Place derriÃ¨re les fenÃªtres */
}

/* FenÃªtre modale */
.window {
  position: absolute;
  background: rgb(251, 245, 255);
  border-radius: 1vh;
  overflow: hidden;
  z-index: 2;
  font-family: 'Courier New', Courier, monospace;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

/* Barre de titre */
.title-bar {
  background: white;
  color: rgb(255, 139, 166);
  padding: 2vh;
  cursor: grab;
  display: flex;
  justify-content: space-between;
  font-family: 'Courier New', Courier, monospace;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

/* Bouton fermer */
.close {
  cursor: pointer;
  font-size: 1.5vh;
}

/* iframe */
iframe {
  width: 100%;
  height: 100%;
  border: none;
  font-family: 'Courier New', Courier, monospace;
}

/* RÃ©duction de la taille par dÃ©faut de la fenÃªtre */
.window {
  width: 60%;
  height: 70%;
  top: 15%;
  left: 20%;
}




.button-sketchbook {
      all: unset;
      display: inline-block;
      cursor: pointer;
      width: 35vh;
      height: 25vh;
      background-image: url("dossier-images/public-sketchbook.png");
      background-size: 100%;
      background-repeat: no-repeat;
      position: absolute;
      top: 53vh;
      left: 30vh;
      z-index: 1;
}

.button-actus {
  all: unset;
  display: inline-block;
  cursor: pointer;
  width: 65vh;
  height: 35vh;
  background-image: url("dossier-images/public-actus.png");
  background-size: 100%;
  background-repeat: no-repeat;
  position: absolute;
  top: 0vh;
  left: 50vh;
  z-index: 1;
}

.button-gallery {
  all: unset;
  display: inline-block;
  cursor: pointer;
  width: 31vh;
  height: 21vh;
  background-image: url("dossier-images/public-photos.png");
  background-size: 100%;
  background-repeat: no-repeat;
  position: absolute;
  top: 42vh;
  left: 19vh;
  z-index: 1;
}

.button-games {
  all: unset;
  display: inline-block;
  cursor: pointer;
  width: 31vh;
  height: 13vh;
  background-image: url("dossier-images/public-games.png");
  background-size: 100%;
  background-repeat: no-repeat;
  position: absolute;
  top: 60.5vh;
  left: 60vh;
  z-index: 1;
}

.button-ressources {
  all: unset;
  display: inline-block;
  cursor: pointer;
  width: 31vh;
  height: 40vh;
  background-image: url("dossier-images/public-ressources.png");
  background-size: 100%;
  background-repeat: no-repeat;
  position: absolute;
  top: 44vh;
  left: 82vh;
  z-index: 1;
}

.button-sketchbook:hover {
  transform: scale(1.03);
}

.button-actus:hover {
  transform: scale(1.03);
}

.button-gallery:hover {
  transform: scale(1.03);
}

.button-games:hover {
  transform: scale(1.03);
}

.button-ressources:hover {
  transform: scale(1.03);
}



.cursor-img {
  position: fixed;
  width: 50px;
  left: 30px;
  pointer-events: none; /* important pour ne pas bloquer la souris */
  transform: translate(50%, -50%);
}






@media (max-width: 768px) {

  body {

    background-color: rgb(254, 247, 190);
    background-image: url("dossier-images/fond-tel-2.png");
    background-size: 320px;
    background-repeat: no-repeat;
    margin: 0 auto;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
  
  }
  
  
  p {
    font-family: Arial, Helvetica, sans-serif;
    color: #000000;
    font-size: 14px;
    margin: 0;
    padding: 0;
  }
  
  
.main-fond-nid {
    position: fixed;
    width: 80vw;
    height: 100vh;
    top: 0;
    left: 0;
    margin: 0;
    z-index: 0;
    overflow: hidden;
}
  
  
  /* Fond sombre */
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1; /* Place derriÃ¨re les fenÃªtres */
  }
  
  /* FenÃªtre modale */
  .window {
    position: absolute;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
    font-family: 'Courier New', Courier, monospace;
    overflow: auto;
  }
  
  /* Barre de titre */
  .title-bar {
    background: transparent;
    color: white;
    padding: 10px;
    cursor: grab;
    display: flex;
    justify-content: space-between;
    font-family: 'Courier New', Courier, monospace;
  }
  
  /* Bouton fermer */
  .close {
    cursor: pointer;
    font-size: 18px;
  }
  
  /* iframe */
  iframe {
    width: 100%;
    height: 100%;
    border: none;
    font-family: 'Courier New', Courier, monospace;
  }
  
  /* RÃ©duction de la taille par dÃ©faut de la fenÃªtre */
  .window {
    width: 60%;
    height: 70%;
    top: 15%;
    left: 20%;
  }
  
  
  
  
  .button-sketchbook {
        all: unset;
        display: inline-block;
        cursor: pointer;
        width: 36vh;
        height: 16vh;
        background-image: url("dossier-images/sketchbook-tel.png");
        background-size: 100%;
        background-repeat: no-repeat;
        position: absolute;
        top: 14vh;
        left: 4vh;
        z-index: 1;
  }
  
  .button-actus {
    all: unset;
    display: inline-block;
    cursor: pointer;
    width: 40vh;
    height: 16vh;
    background-image: url("dossier-images/actu-tel.png");
    background-size: 100%;
    background-repeat: no-repeat;
    position: absolute;
    top: 35vh;
    left: 30vh;
    z-index: 1;
  }
  
  .button-gallery {
    all: unset;
    display: inline-block;
    cursor: pointer;
    width: 32vh;
    height: 50vh;
    background-image: url("dossier-images/photos-tel.png");
    background-size: 100%;
    background-repeat: no-repeat;
    position: absolute;
    top: 1vh;
    left: 16vh;
    z-index: 1;
  }
  
  .button-games {
    all: unset;
    display: inline-block;
    cursor: pointer;
    width: 23vh;
    height: 15vh;
    background-image: url("dossier-images/games-tel.png");
    background-size: 100%;
    background-repeat: no-repeat;
    position: absolute;
    top: 48vh;
    left: 7vh;
    z-index: 1;
  }
  
  .button-ressources {
    all: unset;
    display: inline-block;
    cursor: pointer;
    width: 31vh;
    height: 20vh;
    background-image: url("dossier-images/ressources-tel.png");
    background-size: 100%;
    background-repeat: no-repeat;
    position: absolute;
    top: 60vh;
    left: 4vh;
    z-index: 1;
  }
  

  

  .fond-nid-image {
    position: absolute;
    width: 120vh;
    height: auto;
    top: 3vh;
    left: -32vh;
    z-index: 0;
    transform: rotate(90deg);
  }

.nid-et-boutons-ensemble {
    pointer-events: all;
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 0;
    left: 0;
    top: 0;
    background-color: transparent;
}



}