/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: radial-gradient(ellipse at top, #101c2c, #060e1b);
  color: #f0f0f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

header {
  width: 100%;
  padding: 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

header img {
  height: 80px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,255,213,0.4), 0 0 40px rgba(0,255,213,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

header img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0,255,213,0.6), 0 0 50px rgba(0,255,213,0.4);
}

header h1 {
  margin-top: 15px;
  font-size: 2.2em;
  color: #00ffd5;
  text-shadow:
    0 0 10px #00ffd5,
    0 0 20px #00ffd5,
    0 0 40px #00ffd5,
    0 0 60px #00ffd5;
  transition: text-shadow 0.3s;
}

header h1:hover {
  text-shadow:
    0 0 20px #00ffd5,
    0 0 40px #00ffd5,
    0 0 60px #00ffd5,
    0 0 80px #00ffd5;
}

#profil {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 20px;
  margin: 30px 0;
  box-shadow: 0 0 25px rgba(0,255,213,0.15);
  gap: 30px;
  flex-wrap: wrap;
  max-width: 95%;
}

.avatar-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid #00ffd5;
  box-shadow: 0 0 15px rgba(0,255,213,0.6);
}

#pseudo {
  font-size: 1.6em;
  color: #aaf0ff;
  text-shadow: 0 0 5px #00ffd5;
}

.profil-btn-img {
  width: 120px;
  border-radius: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 15px rgba(0,255,213,0.3);
}

.profil-btn-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0,255,213,0.6);
  cursor: pointer;
}


#profil img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid #00ffd5;
  box-shadow: 0 0 15px rgba(0,255,213,0.6);
}

#profil h2 {
  font-size: 1.6em;
  color: #aaf0ff;
  text-shadow: 0 0 5px #00ffd5;
}

/* Boutons Wallet & Compte avec images */
.wallet-button {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.wallet-button a img {
  width: 200px;
  max-width: 90vw;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 255, 213, 0.4);
  transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
}

.wallet-button a img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px #00ffd5, 0 0 50px #00ffd5;
  filter: brightness(1.1);
}

/* Blocs du tableau de bord */
.dashboard-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
  padding-bottom: 20px;
  max-width: 95%;
}

.dashboard-block {
  text-align: center;
  flex: 1 1 40%;
  min-width: 140px;
}

.dashboard-block h2 {
  margin-bottom: 10px;
  font-size: 1.4em;
  color: #00ffd5;
  text-shadow: 0 0 5px #00ffd5;
}

.dashboard-description {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 15px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.dashboard-block img {
  width: 100%;
  max-width: 300px;
  border-radius: 20px;
  transition: transform 0.5s, box-shadow 0.5s, filter 0.5s;
  box-shadow: 0 0 20px rgba(0,255,213,0.4);
  filter: brightness(1);
}

.dashboard-block img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px #00ffd5, 0 0 50px #00ffd5;
  filter: brightness(1.2);
  cursor: pointer;
}

footer {
  margin-top: auto;
  padding: 20px;
  font-size: 0.9em;
  color: #999;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(0, 0, 0, 0.3);
  width: 100%;
}

/* MODAL Zack */
.modal {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #121c30;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 30px #00ffd5;
  text-align: center;
  width: 90%;
  max-width: 450px;
}

.chat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.message {
  background-color: rgba(0, 255, 213, 0.15);
  border: 1px solid #00ffd5;
  border-radius: 20px;
  padding: 15px 25px;
  margin-bottom: 20px;
  color: #00ffd5;
  font-size: 1.2em;
  text-shadow: 0 0 8px #00ffd5;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.message.show {
  opacity: 1;
  transform: translateY(0);
}

.modal-content button.option-btn {
  background-color: #00ffd5;
  color: #000;
  font-weight: bold;
  border: none;
  padding: 10px 20px;
  margin: 8px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,255,213,0.4);
  transition: transform 0.3s;
}

.modal-content button.option-btn:hover {
  transform: scale(1.1);
}

.close-btn {
  background-color: #333;
  color: #fff;
  border: none;
  margin-top: 20px;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
}

/* Responsive Compact */
@media screen and (max-width: 500px) {
  header h1 {
    font-size: 1.5em;
  }
  .dashboard-block img {
    max-width: 140px;
  }
  .dashboard-block h2 {
    font-size: 1.1em;
  }
  .dashboard-description {
    font-size: 0.85em;
  }
  #profil h2 {
    font-size: 1.3em;
  }
  .wallet-button a img {
    width: 140px;
  }
}

#secretaire-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 15px;
}

#secretaire-buttons button {
  background-color: #00ffd5;
  color: #000;
  font-weight: bold;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0,255,213,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  min-width: 120px;
  font-size: 1em;
}

#secretaire-buttons button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0,255,213,0.6);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('https://www.transparenttextures.com/patterns/stardust.png');
  background-size: 600px;
  opacity: 0.5;
  animation: subtleMove2 90s infinite linear;
  z-index: -2;
}

@keyframes subtleMove2 {
  0% { background-position: 0 0; }
  100% { background-position: -1000px -1000px; }
}

#galaxyCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
}
