body {
  margin: 0;
  overflow: hidden;
  background-color: #000;
  background-image: url('../images/Xp.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  z-index: 1;
}

/* --- Canvas principal --- */
canvas {
  display: block;
  margin: 0 auto;

  /* en dessous de la barre */
  position: relative;
}

/* --- Barre des tâches (en bas) --- */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: linear-gradient(to top, #245edb, #3a7cf5);
  border-top: 2px solid #1c49a8;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  /* au-dessus du canvas */
}

/* --- Boutons sur la barre --- */
.taskbar button {
  width: 60px;
  height: 60px;
  margin: 0 15px;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease;
}

/* --- Taille correcte des images --- */
.taskbar button img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.taskbar button img.explorer {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.taskbar button img.mail,
.taskbar button img.powershell,
.taskbar button img.chatgpt {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* --- Effets interactifs --- */
.taskbar button:hover {
  transform: translateY(-3px);
  filter: brightness(1.2);
}

.taskbar button:active {
  transform: scale(0.95);
  filter: brightness(0.9);
}

/* Flèche = bouton */
#fleche {
  width: 30px;
  cursor: pointer;
  transition: transform 0.2s;
}

#fleche:hover {
  transform: scale(1.1);
}

#imageHaut {
  position: fixed;
  bottom: 100px;
  /* distance par rapport à la flèche */
  padding-left: 770px;
  transform: translateX(50%);
  display: none;
  /* cachée au départ */
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}
 
#imageHaut.show {
  display: block;
  opacity: 1;
}
 
#imageHaut img {
  width: 30px;
  cursor: pointer;
}
 
#imageCote {
  position: absolute;
  top: 50%;
  left: 105%;
  transform: translateY(-50%);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
 
#imageCote.show {
  display: block;
  opacity: 1;
}
 
#imageCote img {
  width: 250px;
 
}
 
/* Pop-up clé USB */
#popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: white;
  border-radius: 10px;
  padding: 10px;
  display: none;
  z-index: 2000;
 
}
 
#popup img {
  width: 300px;
  border-radius: 10px;
}
 
 
/* --- Bouton de fermeture du pop-up --- */
#closePopup {
  position: absolute;
  top: 5px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 18px;
  cursor: pointer;
  line-height: 22px;
  text-align: center;
  z-index: 2100;
}

#closePopup:hover {
  background: rgba(0, 0, 0, 0.8);
}


.notif-btn {
  position: fixed;
  width: 60px;
  height: 60px;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;

  z-index: 10000;
}

.notif-btn:hover {
  transform: scale(1.05);
}


/* --- Notifications --- */
.notification {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 9999;

  border-radius: 12px;
  display: none;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification.show {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
}

.notification.hide {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.notification img {
  width: 500px;
  display: block;
}

/* --- Bouton de fermeture --- */
.close-btn {
  position: absolute;
  top: 5px;
  right: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 16px;
  cursor: pointer;
  line-height: 22px;
  text-align: center;
  z-index: 10000;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}