/* Définition des polices Poppins */
@font-face {
  font-family: Poppins;
  src: url(../src/Poppins/Poppins-Thin.ttf);
  font-weight: 100;
}
@font-face {
  font-family: Poppins;
  src: url(../src/Poppins/Poppins-ExtraLight.ttf);
  font-weight: 200;
}
@font-face {
  font-family: Poppins;
  src: url(../src/Poppins/Poppins-Light.ttf);
  font-weight: 300;
}
@font-face {
  font-family: Poppins;
  src: url(../src/Poppins/Poppins-Regular.ttf);
  font-weight: normal;
}
@font-face {
  font-family: Poppins;
  src: url(../src/Poppins/Poppins-Medium.ttf);
  font-weight: 500;
}
@font-face {
  font-family: Poppins;
  src: url(../src/Poppins/Poppins-SemiBold.ttf);
  font-weight: 600;
}
@font-face {
  font-family: Poppins;
  src: url(../src/Poppins/Poppins-Bold.ttf);
  font-weight: bold;
}
@font-face {
  font-family: Poppins;
  src: url(../src/Poppins/Poppins-ExtraBold.ttf);
  font-weight: 800;
}
@font-face {
  font-family: Poppins;
  src: url(../src/Poppins/Poppins-Black.ttf);
  font-weight: 900;
}
@font-face {
  font-family: Poppins;
  src: url(../src/Poppins/Poppins-Italic.ttf);
  font-style: italic;
}

/* CSS All Usage */
* {
  background: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  resize: none;
  list-style-type: none;
  color: white;
}

/* Définition des variables */
:root {
  --marsgreen: #FF00FF;
  --linkscolor: #1877F2;
  --bodycolor: #F0F2F5;
  --whitecolor: #FFFFFF;
  --couleur-primaire: #008C8C;
  --couleur-secondaire: #1877F2;
  --arriere-plan-corps: #F0F2F5;
  --couleur-texte: #333;
  --blackFont1: #0F0F0F;
  --blackFont: #FFFFFF;

  --couleur-bouton: var(--couleur-primaire);
  --texte-bouton: #fff;
  /* --neuromorphism: #EBECF0; */
  --neuromorphism: #000000;
  --fontColor: #008C8C;

}

/* Style du corps */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: var(--neuromorphism);
  color: var(--fontColor);
  flex-direction: column;
  padding-top: 2.5em;
  padding-bottom: 2.5em;
  width: 100%;
  height: 100%;
  background-color: var(--neuromorphism);
}

/* Style des titres */
h1 {
  font-weight: bold;
  font-size: 2.5rem;
  color: var(--marsgreen); /* Titre principal en Marsgreen */
  margin-bottom: 15px;
  text-align: center;
}

h2 {
  font-weight: bold;
  font-size: 1.5rem; /* Titre des sections plus petit */
  margin-bottom: 10px;
  text-align: center;
  color: var(--blackFont);

}
.key-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa; /* Couleur douce */
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.key-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.key-item:last-child {
    border-bottom: none;
}

.key-label {
    font-size: 1rem;
    font-weight: bold;
    color: #333; /* Texte sombre */
    min-width: 120px;
}

.key-display {
    flex-grow: 1;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #555;
    overflow-x: auto;
    white-space: nowrap;
}

.copy-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    background: var(--marsgreen); /* Marsgreen */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.copy-button:hover {
    background: red;
}

.copy-button:active {
    background: #005f5f;
}
#walletOutput{
  width: 100%;
}


/* Formulaire sous Flex */
.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
  padding: 20px;
  margin: 0 20px; /* Marges équivalentes à droite et à gauche */
}

.inputField {
  /* box-shadow: inset -8px -8px 6px -1px white, inset 4px 4px 6px -1px rgba(72, 79, 96, 0.7); */
  box-shadow: inset -8px -8px 6px -1px var(--marsgreen), inset 4px 4px 6px -1px var(--marsgreen);

  background-color: var(--neuromorphism);
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--marsgreen);
  margin-bottom: 10px;
  width: 100%;
  font-size: 1rem;
}

/* Boutons */
.indexButton {
  background: var(--marsgreen);
  outline: none;
  height: 2.5em;
  color: #FFFFFF;
  border-radius: 40px;
  border: none;
  letter-spacing: 0.5px;
  font-weight: 700;
  padding: 0 20px;
  margin-top: 10px;
  cursor: pointer;
  width: 70%;
  text-transform: uppercase;

}

.indexButton:hover {
  color: #FFFFFF;
  transition: 0.0s ease-in-out;
  box-shadow: unset;
}
#transactionsTitle{
  text-align: center;
}

/* Section des transactions */
.menu {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu button#showTransactions, .menu button#hideTransactions {
  width: 100%;
  margin-right: 0;
}

.hidden {
  display: none;
}

/* Tableaux (nouveau style adapté au formulaire) */
table {
  width: 50%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: var(--neuromorphism);
  border-radius: 10px;
  box-shadow: inset -8px -8px 6px -1px white, inset 4px 4px 6px -1px rgba(72, 79, 96, 0.7);
}
#transactionsTable{
  width: 300px;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: var(--neuromorphism);
  border-radius: 10px;
  box-shadow: inset -8px -8px 6px -1px white, inset 4px 4px 6px -1px rgba(72, 79, 96, 0.7);
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #f2f2f2;
}

td {
  max-width: 200px; /* Limite la largeur des cellules */
  white-space: nowrap; /* Empêche le texte de se couper */
  overflow: hidden; /* Cache tout texte qui dépasse */
  text-overflow: ellipsis; /* Ajoute des "..." si le texte dépasse */
}

/* Affichage clé publique */
.publicKeyDisplay {
  display: inline-block;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

/* Formulaire "Send Crypto" */
#sendCryptoForm {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
  padding: 20px;
  margin: 20px 0;
  background-color: var(--neuromorphism);
  border-radius: 10px;
}

#sendCryptoForm h2 {
  font-size: 1.5rem;
  color: var(--marsgreen);
  margin-bottom: 15px;
}

#sendCryptoForm .inputField {
  width: 100%;
  margin-bottom: 10px;
}

/* Formulaire "Buy Crypto" */
#buyCryptoForm {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
  padding: 20px;
  margin: 20px 0;
  background-color: var(--neuromorphism);
  border-radius: 10px;
}

#buyCryptoForm h2 {
  font-size: 1.5rem;
  color: var(--marsgreen);
  margin-bottom: 15px;
}

#buyCryptoForm .inputField {
  width: 100%;
  margin-bottom: 10px;
}

/* Formulaire "Chey Crypto Balance" */
#checkBalanceForm {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 600px;
  padding: 20px;
  margin: 20px 0;
  background-color: var(--neuromorphism);
  border-radius: 10px;
}

#checkBalanceForm h2 {
  font-size: 1.5rem;
  color: var(--marsgreen);
  margin-bottom: 15px;
}

#checkBalanceForm .inputField {
  width: 100%;
  margin-bottom: 10px;
}






.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.progress-container {
    background-color: #f0f0f0;
    border-radius: 10px;
    height: 30px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar {
    display: flex;
    height: 100%;
}

.creators {
    width: 4%;
    background: linear-gradient(90deg, #118C4F, #118C4F);
}

.foundation {
    width: 10%;
    background: linear-gradient(90deg, #4ECDC4, #66D9EF);
}

.swiss-sale {
    width: 25%;
    background: linear-gradient(90deg, #45B7D1, #6BC4FF);
}

.decentralized {
    flex-grow: 1;
    background: linear-gradient(90deg, #ED2939, #FF2400);
}

.legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.creators-color { background: #118C4F; }
.foundation-color { background: #4ECDC4; }
.swiss-color { background: #45B7D1; }
.decentralized-color { background: #ED2939; }





































/* Responsivité */
@media (max-width: 600px) {
  table, th, td {
    font-size: 12px;
  }

  .publicKeyDisplay {
    max-width: 150px;
  }

  .form-container {
    margin: 0 5%;
  }

  #sendCryptoForm, #buyCryptoForm {
    margin: 10px 0;
    padding: 15px;
  }

  .form-container .indexButton {
    /* max-width: 200px; */
    margin-top: 15px;
  }
}

@media (max-width: 1024px) {
  .form-container {
    margin: 0 15%;
  }
}
