    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      background-color: #1f2a38;
      color: #d1d5db;
      margin: 0;
      padding: 0;
      margin-top:60px;
    }

  #bitcoin a{
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #f7931a;
  }
  #polkadot a{
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #E6007A;
  }
   .bitcoin{
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #f7931a;
  }
  .polkadot{
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #E6007A;
  }
    header {
      background-color: #111827;
      text-align: center;
      padding: 2rem 1rem;
    }

    header h1 {
      margin: 0;
      font-size: 2rem;
    }

    header p {
      color: #9ca3af;
    }

/* MENU */
nav {
  position:fixed;
  top:0px;
  width:100%;
      background-color: #1e293b;
      transition: all 2s ease;
    }
nav .shrink {
  padding: 5px 0;
}
.fixednav {
  position: fixed;
  top: 0;
  width: 100%;
  background: #1e293b; /* Important pour éviter la transparence */
  z-index: 1000;
  box-shadow: 0 5px 20px #000000;
  transition: all 2s ease;
}
    .nav-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem;
      max-width: 1000px;
      margin: auto;
    }

    .logo {
      font-weight: bold;
    }

    .nav-links {
      display: flex;
      gap: 1rem;
    }

    .nav-links a {
      color: #d1d5db;
      text-decoration: none;
      font-weight: bold;
    }

    .nav-links a:hover {
      text-decoration: underline;
    }

    .nav-links img {
      height: 22px;
      margin: 0 5px;
      cursor: pointer;
      border: 1px solid transparent;
      transition: transform 0.2s ease;
    }

    .menu-toggle {
      display: none;
      width: 30px;
      height: 24px;
      position: relative;
      cursor: pointer;
      z-index: 1001;
    }

    .menu-toggle span {
      position: absolute;
      height: 3px;
      width: 100%;
      background: #d1d5db;
      left: 0;
      transition: 0.3s ease;
      border-radius: 2px;
    }

    .menu-toggle span:nth-child(1) {
      top: 0;
    }

    .menu-toggle span:nth-child(2) {
      top: 10px;
    }

    .menu-toggle span:nth-child(3) {
      top: 20px;
    }

    .menu-toggle.open span:nth-child(1) {
      transform: rotate(45deg);
      top: 10px;
    }

    .menu-toggle.open span:nth-child(2) {
      opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
      transform: rotate(-45deg);
      top: 10px;
    }

    /*.mobile-menu {
      display: none;
      flex-direction: column;
      padding: 1rem;
      background-color: #1e293b;
      transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
    }
#mobile-menu.menu-open {
  transform: translateY(0);
}*/
.mobile-menu {
  display: flex;
      flex-direction: column;
      padding-top: 0px;
      padding-left:1rem;
      background-color: #1e293b;
  max-height: 0;            /* Start hidden */
  overflow: hidden;         /* Hide content outside */
  transition: all 0.4s ease;  /* Animate max-height */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


    .mobile-menu a {
      padding: 0.5rem 0;
      text-decoration: none;
      color: #d1d5db;
    }
    .mobile-menu img {
      /*max-width: 32px;*/
      height: 22px;
      margin: 0 5px;
      cursor: pointer;
      border: 1px solid transparent;
      transition: transform 0.2s ease;
    }

    @media (max-width: 768px) {
      .nav-links {
        display: none;
      }

      .menu-toggle {
        display: block;
      }

      .mobile-menu.show {
        display: flex;
        max-height: 400px;        /* Large enough for your menu content */
        padding: 1rem;
      }
      /* SECTION WALLET */
      #sectionpolkadotwallet button {
        display: block;       /* important pour centrer */
  margin-left: auto;    /* idem */
  margin-right: auto;   /* idem */
    }
    }
/* END MENU */
    #particles-js {
  position: relative;
  width: 100%;
  min-height: 600px; /* adapte selon ta hauteur souhaitée */
  background-color: #1e293b; /* gris foncé / bleu foncé */
  color: #d1d5db; /* gris clair */
  padding: 20px;
  box-sizing: border-box;
}

#particles-js canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
  pointer-events: none; /* pour que le canvas ne bloque pas la souris */
}

#particles-js section {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto 40px auto;
  text-align: justify; /* justifie le texte */
}

    section {
      max-width: 1000px;
      margin: auto;
      padding: 2rem 1rem;
      text-align: justify;
      scroll-margin-top: 60px;
    }

    h2 {
      color: #ffffff;
    }

    .crypto-logo {
      width: 100px;
      margin: 1rem 0;
      display: block;
    }

    footer {
      text-align: center;
      background-color: #111827;
      color: #6b7280;
      padding: 1rem;
      word-wrap: break-word;
    overflow-wrap: break-word;
    }


footer a {
    display: inline-block;
    max-width: 100%;
    word-break: break-all;
}
/* Polkadot Wallet section */

    #sectionpolkadotwallet p {
      font-size: 1.1rem;
      margin: 8px 0;
      /*max-width: 800px;*/
      width: 100%;
    }
    #sectionpolkadotwallet strong {
      display: inline-block;
      width: 100%;
      padding-bottom: 4px;
      margin-top: 15px;
    }
    #sectionpolkadotwallet span {
      font-family: 'Fira Code', Consolas, 'Courier New', monospace;
      background: #1a1a1a;
      padding: 6px 12px;
      border-radius: 6px;
      color: #ddd;
      user-select: all;
      word-break: break-word;
      display: inline-block;
      
    }
    #sectionpolkadotwallet button {
      width:100%;
      margin-top: 24px;
      padding: 10px 24px;
      font-size: 1rem;
      font-weight: bold;
      background-color: #E6007A;
      border: none;
      border-radius: 8px;
      color: #fff;;
      cursor: pointer;
      box-shadow: 0 0 10px #111827;
      transition: background-color 0.3s ease;
    }
    #sectionpolkadotwallet button:hover {
      background-color: #9b0c58;
      box-shadow: 0 0 15px #111827;
    }


/* Bitcoin Wallet section */

.wallet {
      font-size: 1.1rem;
      margin: 8px 0;
      /*max-width: 800px;*/
      width: 100%;
    }
  #sectionbtcwallet strong {
      display: inline-block;
      width: 100%;
    }
 #generate {
    display: block;
    width: 100%;
    padding: 12px 0;
    margin-bottom: 30px;
    font-size: 18px;
    background-color: #f7931a;
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  #generate:hover {
    background-color: #c07315;
  }
  .label {
    font-weight: 700;
    color: #1e90ff;
    margin-top: 15px;
    padding-bottom: 4px;
  }
  #sectionbtcwallet span {
      font-family: 'Fira Code', Consolas, 'Courier New', monospace;
      background: #1a1a1a;
      padding: 6px 12px;
      border-radius: 6px;
      color: #ddd;
      user-select: all;
      word-break: break-word;
      display: inline-block;
      min-width: 300px;
    }


/* DISCLAIMER */
/* Palette inspirée de kahsky.com */
:root {
  --color-bg: #6b88ae;           /* Bleu foncé principal */
  --color-bg-light: #1f2a38;     /* Bleu clair très pâle */
  --color-text: #d1d5db;         /* Gris foncé pour le texte */
  --color-modal-bg: rgba(107, 136, 174, 0.95); /* Fond overlay */
  --btn-bg: #111827;             /* Orange vif */
  --btn-bg-hover: #273759;
  --btn-text: #d1d5db;
}

/* Modal overlay */
#disclaimerModal {
  position: fixed;
  inset: 0;
  background-color: var(--color-modal-bg);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

/* Bloc de contenu du modal */
#disclaimerModal .modal-content {
  background-color: var(--color-bg-light);
  color: var(--color-text);
  max-width: 700px;
  width: 100%;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  font-family: sans-serif;
}

/* Titre */
#disclaimerModal h2 {
  color: var(--color-bg);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

/* Texte */
#disclaimerModal p {
  text-align: justify;
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Bouton d'acceptation */
#disclaimerModal button {
  background-color: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  margin-top: 15px;
}

#disclaimerModal button:hover {
  background-color: var(--btn-bg-hover);
}

#disclaimerModal button .fr {
  font-size: 0.9rem;
  display: block;
  margin-top: 4px;
  opacity: 0.8;
}    



/* Testkey */

        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: #1f2a38;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
            overflow: hidden;
        }
        
        
        
        .input-section {
            padding: 40px;
            background: #1f2a38;
        }
        
        .input-group {
            margin-bottom: 30px;
        }
        
        .input-group label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
            font-size: 1.1em;
        }
        
        .input-group input {
          width:100%;
                font-family: 'Fira Code', Consolas, 'Courier New', monospace;
    background: #1a1a1a;
    padding: 6px 12px;
    border-radius: 6px;
    border-color:#111827;
    color: #ddd;
    user-select: all;
    word-break: break-word;
    display: inline-block;
    min-width: 300px;
        }
        
        .input-group input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }
        
        .btn {
            background: linear-gradient(135deg, #f7931a 0%, #e67e00 50%, #c75d00 100%);
            color: white;
            border: none;
            padding: 15px 40px;
            border-radius: 25px;
            font-size: 1.1em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(247, 147, 26, 0.3);
            transition: all 0.3s ease;
        }

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 147, 26, 0.4);
}
        
        .btn:active {
            transform: translateY(0);
        }
        
        .results {
            padding: 40px;
            display: none;
        }
        
        .results.show {
            display: block;
        }
        
        .address-card {
            background: #fff;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            border-left: 5px solid;
        }
        
        .address-card.legacy {
            border-left-color: #f39c12;
        }
        
        .address-card.segwit {
            border-left-color: #27ae60;
        }
        
        .address-card.bech32 {
            border-left-color: #3498db;
        }
        
        .address-card h3 {
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 1.3em;
            display: flex;
            align-items: center;
        }
        
        .address-card .icon {
            width: 30px;
            height: 30px;
            margin-right: 10px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
        }
        
        .legacy .icon {
            background: #f39c12;
        }
        
        .segwit .icon {
            background: #27ae60;
        }
        
        .bech32 .icon {
            background: #3498db;
        }
        
        .info-row {
            display: grid;
            grid-template-columns: 200px 1fr;
            gap: 15px;
            margin-bottom: 15px;
            padding: 10px;
            border-radius: 8px;
            background: #f8f9fa;
        }
        
        .info-row:last-child {
            margin-bottom: 0;
        }
        
        .info-label {
            font-weight: 600;
            color: #555;
        }
        
        .info-value {
            font-family: 'Courier New', monospace;
            word-break: break-all;
            color: #333;
            background: white;
            padding: 8px;
            border-radius: 5px;
            border: 1px solid #ddd;
        }
        
        .private-key-section {
            background: #ffe6e6;
            border: 2px solid #ff6b6b;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 30px;
        }
        
        .private-key-section h3 {
            color: #d63031;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
        }
        
        .private-key-section .icon {
            width: 25px;
            height: 25px;
            margin-right: 10px;
            background: #d63031;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 12px;
        }
        
        .warning {
            background: #fff3cd;
            border: 1px solid #ffeaa7;
            border-radius: 10px;
            padding: 20px;
            margin-top: 20px;
            color: #856404;
        }
        
        .warning h4 {
            margin-bottom: 10px;
            color: #d63031;
        }
        
        .copy-btn {
            background: #17a2b8;
            color: white;
            border: none;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 0.8em;
            cursor: pointer;
            margin-left: 10px;
            transition: all 0.3s ease;
        }
        
        .copy-btn:hover {
            background: #138496;
        }
        
        .error {
            background: #f8d7da;
            border: 1px solid #f5c6cb;
            border-radius: 10px;
            padding: 20px;
            margin-top: 20px;
            color: #721c24;
        }
        
        @media (max-width: 768px) {
            .info-row {
                grid-template-columns: 1fr;
                gap: 10px;
            }
                       
            .input-section, .results {
                padding: 20px;
            }
        }