/* Import de la police W95Font depuis le dossier font/ */
@font-face {
  font-family: "W95Font";
  src: url("../font/w95font.woff2") format("woff2"),
       url("../font/w95font.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

/* Styles globaux pour le bureau */
html, body {
  height: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "W95Font", sans-serif;
  background-color: teal;
  overflow: hidden;
}

body {
  position: relative;
}

/* Icônes sur le bureau */
.icon {
  width: 80px;
  text-align: center;
  margin: 8px;
  font-size: 14px;
  color: white;
  cursor: default;
  user-select: none;
}

.icon img {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
}

/* Fenêtre visionneur d'image */
.window.image-viewer {
  position: absolute;
  top: 80px;
  left: 80px;
  display: inline-block;
}

/* Forcer le contenu à ne jamais crop */
.window.image-viewer .window-body {
  padding: 6px;
  overflow: visible !important;
}

/* Image : jamais croppée */
.viewer-image {
  display: block;
  width: auto;
  height: auto;

  /* réduction proportionnelle */
  max-width: 560px;
  max-height: 480px;
}


/* Barre des tâches */
.taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 36px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #808080;
  display: flex;
  align-items: center;
  padding: 2px 4px;
  box-sizing: border-box;
}

/* Bouton Démarrer */
.start-button {
  display: flex;
  align-items: center;
  padding: 2px 6px;
  background: #c0c0c0;
  border: 2px outset #fff;
  font-weight: bold; /* Démarrer en gras */
  font-family: "W95Font", sans-serif;
  cursor: default;
  margin-right: 4px;
}

.start-button:hover {
  border-style: inset;
}

.windows-logo {
  width: 20px;
  height: 20px;
  margin-right: 4px;
}

/* Bouton de la barre des tâches */
.taskbar-button {
  display: flex;
  align-items: center;
  padding: 2px 6px;
  margin-left: 4px;
  background: #c0c0c0;
  border: 2px outset #fff;
  font-family: "W95Font", sans-serif;
  cursor: default;
}

.taskbar-button:hover {
  border-style: inset;
}

/* Boutons avec icône dans la barre des tâches */
.taskbar-icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

/* Fenêtre Paint */
/* Icône dans la barre des tâches */
.taskbar-icon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

/* Fenêtre Paint */
/* Paint affiché comme une fenêtre (image seule) */
.paint-only {
  position: fixed;        /* ← CLÉ DU PROBLÈME */
  bottom: 60px;           /* juste au-dessus de la barre des tâches */
  right: 40px;

  display: block;
  width: auto;
  height: auto;

  max-width: 520px;
  max-height: 420px;
}

/* Fenêtre Internet Explorer (grande, active, premier plan) */
/* Fenêtre Internet Explorer */
.ie-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateX(80px);

  width: 70vw;
  height: 70vh;

  max-width: 900px;
  max-height: 650px;

  z-index: 999;

  /* 🔴 TRÈS IMPORTANT */
  display: flex;
  flex-direction: column;
}



/* Fenêtre active (title-bar bleue) */
.active-window .title-bar {
  background: linear-gradient(to right, #000080, #1084d0);
  color: white;
}

/* Barre de menus IE */
.ie-menu-bar {
  background: #c0c0c0;
  padding: 4px 6px;
  border-bottom: 1px solid #808080;
  font-size: 13px;
}

.ie-menu-bar span {
  margin-right: 12px;
}

/* Barre d'adresse */
.ie-address-bar {
  background: #c0c0c0;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px inset #fff;
}

.ie-address-bar input {
  flex: 1;
  font-family: "W95Font", sans-serif;
  font-size: 13px;
}

/* Contenu Internet Explorer */
.ie-content {
  flex: 1;                /* ← prend TOUT l’espace restant */
  background: white;
  overflow: auto;
  padding: 12px;
  font-family: serif;
  font-size: 14px;
}


/* Bouton actif dans la barre des tâches */
.taskbar-button-active {
  border: 2px inset #fff;
  background: #dcdcdc;
}

/* Horloge Windows 98 */
.taskbar-clock {
  margin-left: auto; /* pousse l’horloge à droite */
  padding: 2px 6px;
  background: #c0c0c0;
  border: 2px inset #fff;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  min-width: 80px;
}

/* Écran Windows 98 figé */
#screen {
  position: absolute;
  width: 1920px;
  height: 1080px;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  background: #008080;
  overflow: hidden;
}

/* Boutons projets Internet Explorer */
.project-buttons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.project-button {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 6px 10px;
  background: #c0c0c0;
  border: 2px outset #fff;

  color: black;
  text-decoration: none;
  font-size: 13px;
}

.project-button img {
  width: 32px;
  height: 32px;
}

.project-button:active {
  border: 2px inset #fff;
}
