  body {
      background: #0f0f0f;
      color: #ffffff;
      font-family: 'Inter', Arial, sans-serif;
      margin: 0;
      padding: 0;
    }
    /* Top Bar */
    #top-bar {
      background: #fff;
      box-shadow: none;
      height: 60px;
      display: flex;
      justify-content: flex-start;
      align-items: center;
      padding: 0 20px;
      border-bottom: 1px solid #eee;
    }
    .top-left {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .logo {
      width: 40px;
      height: auto;
      border-radius: 6px;
      transition: transform 0.3s;
      box-shadow: 0 0 6px rgba(255,255,255,0.3);
    }

    .logo:hover {
      transform: scale(1.1);
    }
    
    .site-title {
      font-size: 20px;
      font-weight: bold;
      color: #111;
      margin: 0;
    }

    /* Welcome Section */
    #welcome-section {
      padding: 80px 20px 120px 20px;
      text-align: center;
    }
    #welcome-section h1 {
      font-size: 60px;
      margin-bottom: 60px;
      font-weight: 600;
    }
    #welcome-section p {
      font-size: 15px;
      color: #ffffff;
      margin-top: 20px;
    }
    
    /* Pixel Button */
    .pixel-button-container {
      display: inline-block;
      cursor: pointer;
      position: relative;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
      transition: transform 0.1s ease-in-out, box-shadow 0.2s ease-in-out;
    }
    .pixel-button-container:hover {
      transform: translateY(-3px);
    }
    .pixel-button-container.clicked {
      transform: scale(0.98);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    .pixel-grid {
      display: grid;
      gap: 0px;
      background-color: transparent;
      padding: 0px;
      border-radius: 8px;
    }
    .pixel {
      width: var(--pixel-size);
      height: var(--pixel-size);
      transition: background-color 0.05s linear;
    }
    .pixel-button-container:hover .pixel {
      filter: brightness(1.1);
    }
    .button-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: #FFFFFF;
      font-family: 'Press Start 2P', cursive;
      font-size: 1.6rem;
      font-weight: 400;
      text-shadow: 0 0 8px rgba(0, 0, 0, 1),
                   0 0 15px rgba(0, 0, 0, 0.8),
                   0 0 20px rgba(0, 0, 0, 0.6);
      pointer-events: none;
      z-index: 10;
      white-space: nowrap;
    }

    /* Section Styles - Moving inline styles to CSS for better maintainability and caching */
    #features, #rules, #about {
      padding: 2rem 1rem; /* Uniform padding */
      max-width: 900px;
      margin: auto;
    }
    #features h2, #rules h2, #about h2 {
      text-align: center;
      margin-bottom: 1.5rem; /* Consistent margin */
      font-weight: bold; /* Use specific weight if not already defined by font */
      font-size: 1.8rem; /* Consistent font size */
      color: #f5f5f5; /* Lighter shade of white for headings */
    }
    #features h2 {
      font-size: 2rem; /* Specific font size for features heading */
      margin-bottom: 2rem;
      font-weight: 700;
      color: rgb(255, 255, 255); /* Ensure correct color value */
    }

    #features > div {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      justify-content: center;
    }
    #features > div > div {
      flex: 1 1 250px;
      background: #f0f0f0;
      padding: 1.5rem;
      border-radius: 12px;
      text-align: center;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
      color: black; /* Text color for feature boxes */
    }
    #features > div > div div { /* Icon styling */
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }
    #features > div > div h3 {
      margin-bottom: 0.5rem;
      font-weight: 600;
    }

    #rules > div {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1rem;
    }
    #rules > div > div {
      background: #1e1e1e;
      color: #e0e0e0;
      padding: 1.2rem;
      border-radius: 10px;
    }
    #rules > div > div strong {
      color: #fff; /* Make strong text more prominent */
    }
    #rules > div > div:last-child { /* Specific style for the warning rule */
      background: #b71c1c;
      color: white;
    }

    #about p {
      color: #e0e0e0;
      line-height: 1.6;
    }
    #about p a {
      color: #87CEEB; /* A light blue for links, stands out from white */
      text-decoration: underline;
    }

    /* Footer */
    footer {
      background: #111;
      color: #fff;
      padding: 1rem;
      text-align: center;
      font-family: 'Segoe UI', sans-serif;
    }
    footer p {
      margin: 0;
    }

    .experimentationIA {
      font-weight: bold;
    }






#keyboard-shortcuts {
  max-width: 600px;
  margin: 40px auto;
  background: #1a1a1a;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  color: #fff;
  font-family: 'Inter', sans-serif;
}

#keyboard-shortcuts h2 {
  font-size: 1.4em;
  margin-bottom: 1em;
  text-align: center;
}

#keyboard-shortcuts ul {
  list-style: none;
  padding: 0;
}

#keyboard-shortcuts li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

kbd {
  background: #2e2e2e;
  border-radius: 6px;
  border: 1px solid #444;
  padding: 4px 8px;
  font-family: monospace;
  font-size: 0.9em;
}











/* Responsive styles for homepage */

@media screen and (max-width: 1024px) {
  #welcome-section h1 {
    font-size: 48px;
  }
  .button-text {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 768px) {
  #top-bar {
    flex-direction: column;
    height: auto;
    padding: 10px;
    align-items: flex-start;
  }
  .site-title {
    font-size: 18px;
  }

  #welcome-section {
    padding: 60px 15px 100px 15px;
  }
  #welcome-section h1 {
    font-size: 36px;
    margin-bottom: 40px;
  }
  #welcome-section p {
    font-size: 14px;
  }

  .button-text {
    font-size: 1.2rem;
  }

  #features > div > div {
    flex: 1 1 100%;
  }
}

@media screen and (max-width: 480px) {
  .logo {
    width: 30px;
  }

  .site-title {
    font-size: 16px;
  }

  #welcome-section h1 {
    font-size: 28px;
  }
  #welcome-section p {
    font-size: 13px;
  }

  .button-text {
    font-size: 1rem;
  }

  #features h2, #rules h2, #about h2 {
    font-size: 1.4rem;
  }

  #features > div {
    gap: 1rem;
  }

  #features > div > div {
    padding: 1rem;
  }

  #rules > div > div {
    padding: 1rem;
  }

  footer {
    font-size: 0.9rem;
  }
}
@media screen and (max-width: 768px) {
  .pixel-button-container {
    transform: scale(0.85);
  }
  .button-text {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 480px) {
  .pixel-button-container {
    width: 90vw;
    max-width: 300px;
    transform: scale(0.75);
  }
  .pixel-grid {
    grid-template-columns: repeat(12, 1fr); /* réduit le nombre de colonnes */
  }
  .pixel {
    width: 10px;
    height: 10px;
  }
  .button-text {
    font-size: 1rem;
  }
}
