
body {
  margin: 0;
  font-family: 'FSEX300';
  position: relative;
  height: 100vh;
  overflow: hidden;
}
@font-face {
  font-family: 'FSEX300';
  src: url('fonts/fsex300-webfont.eot'); /* IE9 Compat Modes */
  src: url('fonts/fsex300-webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('fonts/fsex300-webfont.woff2') format('woff2'), /* Modern browsers */
       url('fonts/fsex300-webfont.woff') format('woff'), /* Modern browsers */
       url('fonts/fsex300-webfont.ttf') format('truetype'), /* Safari, Android, iOS */
       url('fonts/fsex300-webfont.svg#FSEX300') format('svg'); /* Legacy iOS */
  font-weight: normal;
  font-style: normal;
}


.icon {
  position: relative; /* plus besoin de absolute */
  width: 150px;       /* 2 à 3x plus grand qu'avant */
  text-align: center;
  cursor: pointer;
  user-select: none;
  color: white;
  text-shadow:
    -1px -1px 4px black,
     1px -1px 4px black,
    -1px  1px 0 black,
     1px  1px 0 black;
  font-size: 20px;
  color: #fafafa
}

.icon img {
  width: 60px; /* agrandit l’image d’icône */
  height: 60px;
}
.window {
  position: absolute;
  top: 100px;
  left: 100px;
  z-index: 1;
  width: 600px;
  background: #c0c0c0;
  border: 2px solid #000;
  display: none;
  resize: both;
  overflow: auto; /* Pour que le contenu s’adapte lors du redimensionnement */
  min-width: 300px;
  min-height: 150px;
}

.window {
  border: 2px solid transparent;
}

.window[style*="z-index: 1003"] {
  border: 2px solid red;
}

.window-header {
  background: #000080;
  color: white;
  padding: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.window-body {
  padding: 10px;
}

.media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}
.media-grid img,
.media-grid video {
  width: calc(33.33% - 8px); /* 3 colonnes avec l'écart */
  height: auto;
  object-fit: contain;
  display: block;
}

@media (max-width: 900px) {
  .media-grid img,
  .media-grid video {
    width: calc(50% - 8px);
  }
}
@media (max-width: 600px) {
  .media-grid img,
  .media-grid video {
    width: 100%;
  }
}

.media-grid img,
.media-grid video {
  transition: transform 0.3s ease;
}

.media-grid img:hover,
.media-grid video:hover {
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.clock {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: white;
  font-family: monospace;
  background: rgba(0,0,0,0.5);
  padding: 5px 10px;
  border-radius: 5px;
}
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35px;
  background: #c0c0c0;
  border-top: 2px solid white;
  display: flex;
  align-items: center;
  padding: 0 5px;
  box-shadow: inset 0 2px #808080;
  z-index: 100;
}

.start-button {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #c0c0c0;
  border: 2px outset white;
  padding: 2px 10px;
  font-family: 'FSEX300';
  font-size: 14px;
  cursor: pointer;
}

.start-button img {
  height: 16px;
  width: 16px;
}

.taskbar-spacer {
  flex-grow: 1;
}

#clock-taskbar {
  color: black;
  font-family: monospace;
  background: #e0e0e0;
  padding: 2px 8px;
  border: 2px inset #fff;
  font-size: 14px;
}

.task-icons {
  display: flex;
  gap: 4px;
  margin-left: 10px;
}

.task-icon {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #c0c0c0;
  border: 2px outset white;
  padding: 2px 6px;
  font-size: 12px;
  font-family: 'FSEX300';
  cursor: default;
  color: black;
}

.task-icon img {
  width: 16px;
  height: 16px;
}

.task-icon.active {
  background: #000080;
  color: white;
  border: 2px inset #808080;
}

.desktop {
  display: flex;
  justify-content: center;   /* centre horizontalement */
  align-items: center;       /* centre verticalement */
  flex-wrap: wrap;           /* passe à la ligne si trop long */
  gap: 15px;                 /* espace entre les icônes */
  background: url('images/background.jpg') center/cover no-repeat;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
}

.folder {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'FSEX300';
  color: rgb(0, 0, 0);
  cursor: pointer;
  text-align: center;
}

.folder img {
  width: 48px;
}

.window-body {
  padding: 10px;
  max-height: calc(100vh - 150px); /* hauteur max = hauteur de l’écran - header + marges */
  overflow-y: auto; /* Ajoute une barre de scroll verticale si nécessaire */
}

.window {
  max-height: calc(100vh - 50px); /* empêche la fenêtre elle-même de sortir de l’écran */
}

.section-title {
  width: 100%;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.7); /* bandeau sombre */
  color: white;
  padding: 8px 0;
  margin: 20px 0 10px 0;
  font-size: 18px;
  border-radius: 4px;
  font-weight: normal;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.media-preview {
  position: fixed;
  top: 50px;
  left: 50px;
  width: calc(100% - 100px);
  height: calc(100% - 100px);
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  gap: 20px;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

.media-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-left img,
.media-left video {
  max-width: 100%;
  max-height: 100%;
  border: 2px solid white;
  box-shadow: 0 0 10px black;
}

.media-right {
  flex: 1;
  color: white;
  font-family: 'FSEX300', monospace;
  font-size: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center; /* centrage vertical */
  align-items: center;     /* centrage horizontal */
  text-align: center;  
  margin-bottom: 20px;
}

.media-right button {
  margin-top: 20px;
  background: white;
  color: black;
  font-weight: bold;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

#edit-description {
  font-family: monospace;
  font-size: 14px;
  padding: 5px;
  resize: vertical;
}

.media-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  color: white;
  cursor: pointer;
  z-index: 10001;
  user-select: none;
  padding: 5px;
  background: transparent !important;   /* ✅ force la transparence */
  border: none;
  outline: none;                        /* ✅ empêche le focus visuel */
  box-shadow: none;                     /* ✅ supprime les ombres de bordure */
  text-shadow: 0 0 6px black;
  transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.media-nav:hover {
  transform: translateY(-50%) scale(1.2); /* ✅ zoom fluide */
  text-shadow: 0 0 10px black;            /* ✅ glow plus fort */
  background: transparent
}

#nav-left {
  left: 10px;  /* ✅ rapproché du bord */
}

#nav-right {
  right: 10px;  /* ✅ rapproché du bord */
}

.media-nav:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

@media (max-width: 600px) {
  .window {
    width: 95% !important;
    left: 2.5% !important;
    top: 60px !important;
    height: calc(100% - 100px);
    max-height: none;
    min-width: unset;
    min-height: unset;
  }

  .window-body {
    max-height: unset;
    overflow-y: auto;
  }

  .window-header button {
    font-size: 18px;
  }

  .media-preview {
    flex-direction: column;
    padding: 10px;
  }

  .media-left, .media-right {
    width: 100%;
    flex: unset;
  }

  .media-nav {
    display: none; /* ← enlève les flèches latérales */
  }

  .icon {
    width: 33%;
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  button, input, textarea {
    font-size: 18px;
    padding: 10px;
  }
}