body {

    padding: 0;
    background: white;
    background-size: cover;
    margin: 0 auto;
    position: relative;
    background: rgb(255, 251, 237);
    background-size: 1500px;
    max-height: 1000px;
  
  }
  
  
  p {
    font-family: 'Courier New', Courier, monospace;
    color: #000000;
    font-size: 14px
  }
  
  
  a {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #31a499;
  }
  
  h1 {
    font-family: Arial, sans-serif;
    color: #000000;
    font-size: 20px;
    margin: 0;
    padding: 0;
  }
  
  
  h2 {
    font-family: Arial, sans-serif;
    color: #31a499;
  }
  
  h3 {
    font-family: Arial, sans-serif;
    font-size: 25px;
    color: #ffffff;
  }
  
  h4 {
    font-family: 'Courier New', Courier, monospace;
    color: #7678c4;
    font-size: 17px; 
    margin: 0;
    padding: 0;
  }
  
  h5 {
    font-family: Arial, sans-serif;
    color: #ff8ea3;
  }

  h6 {
    font-family: Arial, sans-serif;
    color: #be0000;
    font-size: 12px;
    margin: 0;
    padding: 0;
    font-weight: normal; /* facultatif, pour un rendu plus léger */
  }

  h7 {
    font-family: 'Courier New', Courier, monospace;
    color: #ffffff;
    font-size: 12px;
    margin: 0;
    padding: 0;
    font-weight: 600;
  }
  
  
  .main {
    position: relative;
    width: 1500px;
    height: 1000px;
    margin: 10px auto;
    border-radius: 10px;
    background-color: #b6cadd;
    overflow: hidden;
    z-index: 0;
  }

  .main img {
    position: absolute;
  }






  .zone-libre {
    position: relative;
    top: 0px;
    width: 3000px;
    height: 1000px;
    margin: 0px auto;
    background-color: transparent;
    overflow: hidden;
  }

  /* Chaque image a sa position libre */
  .zone-libre img {
    position: absolute;
  }


  .zone-libre-petite {
    position: relative;
    top: 0px;
    width: 3000px;
    height: 1000px;
    margin: 0px auto;
    background-color: transparent;
    overflow: hidden;
  }

  /* Chaque image a sa position libre */
  .zone-libre-petite img {
    position: absolute;
  }

  .img-welcome {
    width: 300px;
    height: auto;
    top: 20px;
    left: 800px;
  }





  
  .menu {
    position: absolute;
    top: 50px;
    left: 500px;
  }

  .nid  {
    position: absolute;
    top: 20px;
    left: 30px;
    width: 500px; /* obligatoire */
    height: 200px; /* obligatoire */
    background-image: url('collages/nid1.png');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 10;
  }

  .diary {
    position: absolute;
    top: 55px;
    left: 90px;
    width: 200px; /* obligatoire */
    height: 200px; /* obligatoire */
    background-image: url('collages/niddiary.png');
    background-size: 120px;
    background-repeat: no-repeat;
    z-index: 12;
  }

.diary:hover {
  background-image: url('collages/niddiaryhover.png');
  transform: scale(1.02)
}

.portfolio {
  position: absolute;
  top: 130px;
  left: 30px;
  width: 200px; /* obligatoire */
  height: 200px; /* obligatoire */
  background-image: url('collages/nidportfolio.png');
  background-size: 160px;
  background-repeat: no-repeat;
  z-index: 12;
}

.portfolio:hover {
  background-image: url('collages/nidportfoliohover.png');
  transform: scale(1.02)
}

.medias {
  position: absolute;
  top: 62px;
  left: 200px;
  width: 200px; /* obligatoire */
  height: 200px; /* obligatoire */
  background-image: url('collages/nidmedia.png');
  background-size: 100px;
  background-repeat: no-repeat;
  z-index: 14;
}


.medias:hover {
  background-image: url('collages/nidmediahover.png');
  transform: scale(1.02)
}

.ressources {
  position: absolute;
  top: 145px;
  left: 180px;
  width: 200px; /* obligatoire */
  height: 200px; /* obligatoire */
  background-image: url('collages/nidress.png');
  background-size: 150px;
  background-repeat: no-repeat;
  z-index: 14;
}

.ressources:hover {
  background: url('collages/nidresshover.png');
  background-size: 150px;
  background-repeat: no-repeat;
  transform: scale(1.02)
}



.img-obj:hover {
  transform: scale(1.05) rotate(1.5deg);
}







.nid-rempli {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 1500px;
  height: 900px;
  overflow: hidden;
}





.actus-box-fond {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 1500px;
  height: 570px;
  overflow: hidden;
  padding: 240px;
  padding-top: 300px;
}


.actu-box1 {
  position: absolute;
  top: 450px;
  left: 1000px;
  width: 220px;
  height: 205px;
  overflow: hidden;
  background: url('dossier-images/oeuf-fonce.png');
  background-size: cover;
  transform: rotate(1deg);
  padding: 20px;
  z-index: 2;
}

.actu-box1:hover {
  z-index: 70;
  transform: scale(1.07);
  background: url('dossier-images/oeuf-fonce2.png');
  background-size: cover;
  width: 220px;
  height: 205px;
}



.actu-box2 {
  position: absolute;
  top: 470px;
  left: 200px;
  width: 340px;
  height: 200px;
  overflow: auto;
  background: url('dossier-images/papiercarnet.JPG');
  background-size: 600px;
  padding: 20px;
  z-index: 20;
  z-index: 3;
  border-radius: 10px;
}


.actu-box2:hover  {
  z-index: 70;
  transform: scale(1.02) rotate(1deg);
}

.actu-box4 {
  position: absolute;
  top: 150px;
  left: 1100px;
  width: 170px;
  height: 220px;
  overflow: auto;
  background: url('dossier-images/papiercarnet2.JPG');
  background-size: 250px;
  padding: 10px;
  z-index: 20;
  transform: rotate(2deg);
  z-index: 3;
  border-radius: 10px;
}

.actu-box4:hover  {
  z-index: 70;
  transform: scale(1.02);
}


.actu-box6 {
  position: absolute;
  top: 350px;
  left: 80px;
  width: 180px;
  height: 200px;
  overflow: auto;
  background: url('dossier-images/oeuf-grand.png');
  background-size: cover;
  transform: rotate(-1deg);
  z-index: 2;
}

.actu-box6:hover  {
  z-index: 70;
  transform: scale(1.05);
  background: url('dossier-images/oeuf-grand2.png');
  background-size: cover;
  width: 180px;
  height: 200px;
}



.oeuf-vert {
  position: absolute;
  top: 350px;
  left: 1300px;
  width: 180px;
  height: 200px;
  overflow: auto;
  background: url('dossier-images/oeuf-vert.png');
  background-size: cover;
  transform: rotate(-1deg);
  z-index: 10;
}

.oeuf-vert:hover  {
  z-index: 70;
  transform: scale(1.05);
}

.petit-oeuf {
  position: absolute;
  top: 500px;
  left: 800px;
  width: 180px;
  height: 200px;
  overflow: auto;
  background: url('dossier-images/oeuf-petit.png');
  background-size: cover;
  transform: rotate(-1deg);
  z-index: 1;
}




.gallery-container {
  position: absolute;
  top: 550px;
  left: 550px;
  width: 300px;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  background-color: transparent;
  z-index: 50;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.gallery-image.active {
  display: block;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; /* ou selon la taille de ton image */
  height: 40px;
  cursor: pointer;
  z-index: 10;
  user-select: none;
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

.gallery-container:hover  {
  z-index: 70;
  transform: scale(1.02);
}















.slider {
  position: absolute;
  top: 800px;
  left: 50px;
  width: 800px;
  height: 120px; /* hauteur ajustée pour contenir les images */
  background: transparent;
  overflow: hidden;
  border: dotted brown;
}

.slider-track {
  display: flex; /* important pour aligner horizontalement */
  gap: 0;
  animation: scroll 20s linear infinite;
}

.slide {
  flex: 0 0 auto; /* largeur fixe */
  width: 300px;
  height: 120px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: 300px;
  height: 120px;
  object-fit: contain;
  background: transparent;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}



.nid-fond {
  position: absolute;
  top: 2px;
  left: 0px;
  background: url('home2-images/nid-dessous1.png');
  background-size: cover;
  width: 1500px; /* obligatoire */
  height: 900px; /* obligatoire */
  z-index: 1;
  pointer-events: none;
  z-index: 1;
  
}



.image-tour-nid {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 1500px;
  height: 900px;
  background: url('home2-images/nid-dessus1.png');
  background-size: cover;
  z-index: 50;
  pointer-events: none;
}

.oeuf-violet-info {
  position: absolute;
  top: 420px;
  left: 200px;
  width: 300px;
  height: 300px;
  background-image: url('dossier-images/oeuf-info.png');
  background-size: 100%;
  z-index: 50;
}

.oeuf-violet-info:hover {

  background-image: url('dossier-images/oeuf-info-hover.png');
  transform: scale(1.1);
  z-index: 100;
}









  /* Boîte qui apparaît */
  .oeuf-popup {
      display: none;
      width: 420px;
      height: 300px;
      background-image: url('dossier-images/bulle-vide-info.png');
      background-size: cover;
      padding: 6px 10px;
      border-radius: 5px;
      position: absolute;
      top: 340px; /* Ajuste si besoin */
      left: 510px;
      z-index: 500;
      overflow: hidden;
    }
    
    /* Affichage au hover */
    .oeuf-wrapper:hover .oeuf-popup {
      display: block;
      pointer-events: none;
    }




  .container {
    top: 85px;
    left: 40px;
    width: 30px;
    height: 30px;
    position: relative;
    display: inline-block;
    border: solid green;
  }
  
  .target {
    top: 85px;
    left: 40px;
    width: 30px;
    height: 30px;
    display: none; /* Cachée par défaut */
    background: lightblue;
    position: absolute;
    top: 100%; /* Juste en dessous */
    left: 0;
    border: solid red;
  }
  
  .container:hover .target {
    display: block; /* Apparaît quand on hover le conteneur */
  }
  

