@font-face {
   font-family: 'poti';
   src: url('/font/poti.ttf') format('truetype'),
        url('/font/poti.woff2') format('woff2');
   font-weight: normal;
   font-style: normal;
}
* {
  cursor: url('images/souris_3.png') 20 0, auto;
}
body {
  margin: 0;
  
  background-color: black;
  background-image: url('images/wall.png');
  /*background-size: 100%;*/
  background-attachment: fixed;
  background-position: center;

  color: white;
  text-align: center;
  font-family: 'poti', Arial, sans-serif;
  letter-spacing: 2px;

}

.container {
  width: 1300px;              
  margin: 10px auto;

  background-image: url('images/house.png');   
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-color: black;
  background-size: 105%;

  padding-top: 0px;   /* ↓ diminue l’espace en haut */
  padding-bottom: 10px;
  padding-left: 20px;
  padding-right: 20px;
  
  border: 2px solid SeaGreen;     
  border-radius: 10px;       
  
  box-shadow: 0 0 20px SeaGreen;       
}

h1 {
  margin-top: 0;
  color: PaleGreen;
  text-shadow: 0 0 5px PaleGreen;
  font-size: 70px;
  padding-top: 20px
}
.title {
  margin-top: 0;
  color: PaleGreen;
  text-shadow: 0 0 5px PaleGreen;
  font-size: 70px;
  padding-bottom: 5px
}

.icon {
  width: 40px;
  vertical-align: middle;
}

nav a {
  color: white;
  margin: 10px;
  text-decoration: none;
  font-size: 40px;
}

nav a:hover {
  color: PaleGreen;
}

.gallery {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  border: 1px solid PaleGreen;
  padding: 10px;
  width: 200px;
  font-size: 40px;
}

.card img {
  width: 100%;
}

section {
  padding-bottom: 5px;
}

a {
  font-size: 50px;
  color: Palegreen;
  text-shadow: 0 0 5px PaleGreen;
}
h2 {
  color: PaleGreen;
  text-shadow: 0 0 5px PaleGreen;
  font-size: 50px;
  padding-top: 1px;
}

p  {
  font-size: 50px;
}

.overlay {
  position: relative; bottom: 0px;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px; /* ajuste */

  background-image: url('images/paleman.png');
  background-repeat: no-repeat;
  background-position: relative; top: 1500px; left: 360px;
  background-size: contain;
  
  pointer-events: none; 
}

.music-btn {
  background: black;
  color: SeaGreen;
  border: 2px solid SeaGreen;
  padding: 10px 20px;
  font-family: 'poti', Arial, sans-serif;
  font-size: 16px;
  cursor: pointer;

  text-transform: uppercase;
  letter-spacing: 2px;

  box-shadow: 0 0 10px SeaGreen;
  transition: all 0.2s ease;
  
}

.music-btn:hover {
  background: SeaGreen;
  color: black;
  box-shadow: 0 0 20px SeaGreen;
}

.window {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: block;
  overflow: visible;
}

.window-left {
  left: 70px;
}

.window-right {
  right: 70px;
}

.window img {
  width: 140px; /* ajuste comme tu veux */
  height: auto;
  display: block;
}

.window-left .window-content {
  position: absolute;
  top: 14px;
  left: 10px;
  right: 10px;
  bottom: 12px;
  border: 2px solid red;
  background-image: url('images/road.png'); /* ton image */
  background-size: cover;
  background-position: center;

  z-index: 1;
}

.window-right .window-content {
  position: absolute;
  top: 14px;
  left: 10px;
  right: 10px;
  bottom: 12px;
  border: 2px solid red;
  background-image: url('images/house.png'); /* ton image */
  background-size: cover;
  background-position: center;

  z-index: 1;
}

.window-frame {
  position: relative;
  width: 100%;
  display: block;
  z-index: 2;
}

.window-label {
  position: absolute;
  top: -25px; /* au-dessus de la fenêtre */
  left: 50%;
  transform: translateX(-50%);

  color: PaleGreen;
  font-family: 'poti', monospace;
  font-size: 34px;

  white-space: nowrap;
  text-shadow: 0 0 5px PaleGreen;
  z-index: 10;
  opacity: 0;

  transition: opacity 0.2s;
}

.window:hover .window-label {
  opacity: 1;
}

.ds-box {
  position: relative;
  width: 668px;   /* adapte à ton image 3DS */
  height: 653px;  /* adapte à ton image 3DS */
  margin: 40px auto;
}

.ds-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 3;
}

.ds-top-screen {
  position: absolute;
  background-color: black;
  top: 50px;      /* ajuste */
  left: 85px;     /* ajuste */
  width: 530px;   /* ajuste */
  height: 300px;  /* ajuste */

  overflow: hidden;
  z-index: 1;
}

.ds-top-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: scroll-3ds 15s linear infinite;
}

.ds-top-track img {
  width: 530px;
  height: 250px;
  object-fit: contain;
  flex-shrink: 0;
}

.ds-bottom-screen {
  position: absolute;

  top: 360px;     /* ajuste */
  left: 150px;     /* ajuste */
  width: 355px;   /* ajuste */
  height: 250px;  /* ajuste */

  overflow: hidden;
  z-index: 2;
}

.ds-bottom-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes scroll-3ds {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}