/* --- RESET ET BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: 'Press Start 2P', monospace;
    background-color: #1c1c1c;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  /* --- NAVIGATION --- */
  .navbar {
    background-color: #333;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }
  .logo {
    font-size: 20px;
    color: #e0e0e0;
  }
  .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
  }
  .nav-link {
    text-decoration: none;
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s;
  }
  .nav-link:hover,
  .nav-link.active {
    color: #fff;
  }
  /* Bouton hamburger */
  .nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 28px;
    cursor: pointer;
  }
  
  /* --- SECTIONS GENERALES --- */
  section {
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
  }
  .container {
    max-width: 1200px;
    margin: auto;
  }
  
  /* --- ANIMATIONS --- */
  .fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
  }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .slide-in {
    animation: slideIn 1s ease forwards;
    opacity: 0;
  }
  @keyframes slideIn {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
  }
  
  /* --- HOME PAGE --- */
  .home-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .home-canvas {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background-color: #000;
    border: 2px solid #444;
    margin: 10px;
    position: relative;
  }
  .home-info {
    flex: 1;
    min-width: 300px;
    margin: 10px;
    position: relative;
    overflow: hidden;
  }
  .diagonal-box {
    background-color: #fff;
    color: #111;
    padding: 40px;
    transform: skew(-10deg);
    position: relative;
  }
  .diagonal-box * {
    transform: skew(10deg);
  }
  .diagonal-box h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }
  .diagonal-box p {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .home-buttons {
    margin-top: 20px;
  }
  .home-buttons .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #555;
    color: #fff;
    text-decoration: none;
    margin-right: 10px;
    border: 1px solid #444;
    transition: background 0.3s, transform 0.3s;
    font-size: 12px;
  }
  .home-buttons .btn:hover {
    background-color: #777;
    transform: translateY(-3px);
  }
  
  /* --- ABOUT PAGE --- */
  .about-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 60px;
    padding: 20px;
    background-color: #fff;
    border-radius: 15px;
    color: #111;
    position: relative;
  }
  .about-section:nth-child(even) {
    flex-direction: row-reverse;
  }
  .about-section .about-text {
    flex: 1;
    min-width: 250px;
    padding: 20px;
  }
  .about-section .about-text h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .about-section .about-text p,
  .about-section .about-text ul {
    font-size: 12px;
    line-height: 1.4;
  }
  .about-section .about-image {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .about-section .about-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  }
  
  /* --- DOWNLOAD PAGE --- */
  .download ol {
    text-align: left;
    margin: 20px auto;
    max-width: 500px;
    font-size: 12px;
    line-height: 1.4;
  }
  .download .btn {
    margin-top: 20px;
    font-size: 12px;
    padding: 10px 20px;
    border: 1px solid #444;
    background-color: #555;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
  }
  .download .btn:hover {
    background-color: #777;
    transform: translateY(-3px);
  }
  
  /* --- FOOTER --- */
  footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #888;
    font-size: 10px;
  }
  
  /* --- POP-UP --- */
  .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .popup-overlay.active {
    visibility: visible;
    opacity: 1;
  }
  .popup-content {
    background: #222;
    color: #e0e0e0;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    font-size: 12px;
  }
  .popup-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
  }
  .lang-btn {
    background: #444;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
  }
  .lang-btn:hover {
    background: #666;
  }
  
  /* --- RESPONSIVITÉ --- */
  @media (max-width: 768px) {
    .nav-links {
      display: none;
      flex-direction: column;
      gap: 10px;
      background-color: #333;
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      padding: 10px 0;
    }
    .nav-links.active {
      display: flex;
    }
    .nav-toggle {
      display: block;
    }
    /* Pour Home : la zone se transforme en colonne */
    .home-wrapper {
      flex-direction: column;
      align-items: center;
    }
    .diagonal-box h2 {
      font-size: 18px;
    }
    .diagonal-box p {
      font-size: 10px;
    }
    .home-canvas, .home-info {
      margin: 10px 0;
    }
    /* About : empilement vertical */
    .about-section {
      flex-direction: column;
      text-align: center;
    }
    .about-section:nth-child(even) {
      flex-direction: column;
    }
  }
  