/* -------------------------
   FONTS LOCALES RETRO 90s
   ------------------------- */
/* rubik-broken-fax-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'RubikFax';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/RubikBrokenFax-Regular.ttf') format('ttf'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
@font-face {
    font-family: 'PressStart2P';
    src: url('fonts/PressStart2P.woff2') format('woff2'),
         url('fonts/PressStart2P.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'CourierPrime';
    src: url('fonts/CourierPrime.woff2') format('woff2'),
         url('fonts/CourierPrime.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'PixelOperator';
    src: url('fonts/PixelOperator.woff2') format('woff2'),
         url('fonts/PixelOperator.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ArcadeClassic';
    src: url('fonts/ArcadeClassic.woff2') format('woff2'),
         url('fonts/ArcadeClassic.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
h1 { font-family: RubikFax;
  display: fallback; margin: 50px
  }

    h2 {
      margin-right: 40px;
      margin-top: 40px;
      text-align: end;
      font-size: 1,4em;
      cursor: pointer;
      user-select: none;
    }

    h2 span {
      display: inline-block;
      transition: transform 0.5s ease, opacity 0.5s ease;
    }

    h2 span.fade {
      opacity: 0;
      transform: translateY(-20px);
    }
p { position: absolute;
      cursor: pointer;}
calendar {
  size: 41px;
  
}
   body {
      height: 100vh;
      margin: 0;
      position: relative;
      overflow: hidden; /* empêche de dépasser la fenêtre */
    }
.gif-background {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;  /* en arrière */
}
ul {
  font-family: 'courier new', courier, monospace;
  list-style: none;
  color: black;
   
}
ul li a {
  display: inline-block;
  background-color: #ffffff;
    text-decoration: none; /* supprime le soulignement */
    color: #000000;        /* texte noir */
    transition: color 0.2s;
}
ul li a:hover {
    color: yellow; /* couleur au survol si tu veux */
  background-color: #ffffff;
}
/* Menu normal */
#menu a {
    text-decoration: none;
    color: #000;
    display: inline-block;   /* nécessaire pour appliquer transform */
    transition: transform 0.3s;
}

/* Au survol, inversion horizontale */
#menu a:hover {
    transform: scaleX(-1);
}


.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(255, 255, 255, 0.1); /* noir à 50% d’opacité */
  z-index: -1;  /* entre le GIF et le contenu */
}
.popup-box {
  display: none;
  position: fixed;
  background-color: #c0c0c0;
  border: 3px solid #000080;
  box-shadow: 4px 4px 0 #808080;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #000;
  z-index: 1000;
  user-select: none;
  cursor: default;
  width: 500px;
  height: 500px;

  transform: scale(0);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease, left 0.4s ease, top 0.4s ease;
}

.popup-box.active {
  transform: scale(1);
  opacity: 1;
}

.popup-titlebar {
  background: linear-gradient(to bottom, #000080, #00004d);
  color: white;
  font-weight: bold;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #948d8d;
  height: 30px;
  box-sizing: border-box;
}

.close-button {
  background-color: #c0c0c0;
  border: 2px solid #fff;
  width: 18px;
  height: 18px;
  font-weight: bold;
  color: black;
  text-align: center;
  line-height: 15px;
  cursor: pointer;
  user-select: none;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #404040;
  margin-left: 5px;
  transition: transform 0.2s ease;
}
.close-button:active {
  transform: scale(0.8);
}

.popup-content {
  width: 100%;
  height: calc(100% - 30px);
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
}

.popup-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #000080;
}

/* (optionnel) poignée de redimensionnement */
.resize-handle {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, transparent 50%, #000080 50%), 
              linear-gradient(45deg, transparent 50%, #000080 50%);
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 8px 8px;
  position: absolute;
  right: 2px;
  bottom: 2px;
  cursor: nwse-resize;
  user-select: none;
  z-index: 1001;
}

.popup-content img,
.popup-content iframe,
.popup-content video {
  max-width: 100%;
  max-height: 100%;
}

 .gif-background {
    opacity: 0;
    transition: opacity 0s ease-in-out;
  }
  .gif-background.active {
    opacity: 1;
  }




@media (max-width: 500px) {
  /* Titres plus grands et centrés */
  h1 {
    font-size: clamp(1.5rem, 8vw, 2.5rem); /* s'adapte à la largeur de l'écran */
    margin: 3vw 2vw;
    text-align: left;
  }

  h2 {
    font-size: clamp(1.2rem, 6vw, 2rem);
    margin: 2vw;
    text-align: right;
  }

  /* Menu en colonne et textes plus grands */
  ul {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin: 3vw;
  }

  ul li a {
    font-size: clamp(1rem, 5vw, 1.4rem); /* texte qui s’adapte */
    padding: 0.6em 1.2em; /* marges internes confortables */
    display: inline-block;
    text-align: left;
  }

  /* Popups centrées, adaptées à l’écran */
  .popup-box {
    width: 90vw;
    height: 70vh;
    max-width: 400px;
    max-height: 500px;
    min-width: 250px;
    min-height: 200px;

    left: 50% !important;   /* centré horizontalement */
    top: 50% !important;    /* centré verticalement */
    transform: translate(-50%, -50%); /* corrige le centrage */
    box-sizing: border-box;
    padding: 10px; /* marges internes */
  }

  /* Contenu du popup : image/iframe toujours dans la fenêtre */
  .popup-content {
    width: 100%;
    height: calc(100% - 30px);
    overflow: hidden;
    padding: 5px;
    box-sizing: border-box;
  }

  .popup-content img,
  .popup-content iframe,
  .popup-content video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* reste dans la fenêtre */
  }
}

