:root {
  --logo-max-w: 700px;
  --logo-min-w: 350px;
  --logo-rel-w: 60vw;
  --signature-ratio: .4;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #121212;
  background-image:
    linear-gradient(145deg, #151515 0%, #1e1e1e 100%),
    url('../Hbble_Cosmos_Pictures/noise-dark.png');
  background-size: 100% 100%, 300px 300px;
  background-blend-mode: overlay;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

#connect-button {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 22px;
  background: #2b2b2b;
  color: #fafafa;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.25s ease;
}
#connect-button:hover {
  background: #444;
}

.container {
  position: relative;
  text-align: left;
}

.logo {
  width: min(var(--logo-rel-w), var(--logo-max-w));
  max-width: var(--logo-max-w);
  min-width: var(--logo-min-w);
  height: auto;
  display: block;
  user-select: none;
  filter: invert(1) brightness(0.45) contrast(1.15);
  opacity: 0.55;
}

.signature {
  position: absolute;
  top: calc(100% - 12%);
  left: 6%;
  width: calc(var(--signature-ratio) * var(--logo-rel-w));
  max-width: calc(var(--signature-ratio) * var(--logo-max-w));
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
  height: auto;
}

@media (max-width: 450px) {
  :root {
    --logo-rel-w: 75vw;
  }
}
.wallet-choice {
  background: #333;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}
.wallet-choice:hover {
  background: #555;
}
/* Réduction du logo après connexion */
.logo.shrink {
  width: 120px !important;
  opacity: 0.8;
  position: fixed;
  top: 20px;
  left: 20px;
  transition: all 0.5s ease;
  z-index: 10;
}

/* Masquer la signature */
.signature.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Zone de contenu connectée */
#wallet-content.connected {
  margin: 100px auto 40px;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  box-shadow: 0 0 15px #000;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------
   Footer
-------------------------------------------------------------- */
footer.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 0;
  background: rgba(0, 0, 0, 0.5);
  color: #aaa;
  text-align: center;
  font-size: 14px;
}

footer.site-footer a {
  color: #aaa;
  text-decoration: none;
}

footer.site-footer a:hover {
  text-decoration: underline;
}
