@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #1b1b22;
  color: white;
  min-height: 100vh;
}

/* ----- FADE TRANSITION ----- */
.fade-transition {
  position: fixed;
  inset: 0;
  display: flex; 
  justify-content: center;
  align-items: center;
  transform: translateY(0%);
  background: linear-gradient(#33279E, #7363ff);
  pointer-events: all;
  transition: transform 0.5s ease-in-out;
  z-index: 9999;
}

.fade-transition img {
  height: 50px;
  display: block;
  margin: 0;
  padding: 5px;
}

.fade-transition .text {
  text-align: center;
  font-weight: bolder;
  font-size: xx-large;
  color: #ffffff;
}

.fade-transition.active {
  transform: translateY(0%);
  pointer-events: all;
}

.fade-transition.slide-down {
  transform: translateY(100%);
  pointer-events: none;
}

/* ----- HEADER ----- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #153369;
  flex-wrap: wrap; /* permet de passer à la ligne si écran petit */
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

header img {
  height: 50px;
}

.solde-box {
  background-color: #0e1f44;
  padding: 8px 14px;
  border-radius: 10px;
  color: #ffea00;
  font-weight: 600;
  display: flex;
  gap: 5px;
  align-items: center;
  box-shadow: 0 0 6px rgba(0, 255, 106, 0.4);
}

header .text {
  color: #2b6ac9;
  font-size: 25px;
  font-weight: bold;
  white-space: nowrap;
  text-align: center;
}

header ul {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* permet de passer à la ligne si écran petit */
}

header ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: 0.3s;
}

header ul li a:hover,
header ul li a.active {
  color: #ffea00;
}

/* ----- PAGE ----- */
main {
  width: 90%;
  max-width: 600px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ----- CARDS ----- */
.card {
  background: #222436;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.card h2 {
  color: #ffea00;
  margin-bottom: 15px;
  text-align: center;
}

/* ----- FORM ----- */
.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  color: #cfcfcf;
}

input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background-color: #1a1b28;
  color: white;
  font-size: 15px;
}

#Retour {
  align-self: center;
  width: auto;                /* ne prend plus toute la largeur */
  padding: 8px 16px;          /* réduit le padding vertical */
  font-size: 16px;
  display: flex;
  align-items: center;        /* centre le texte dans le bouton */
  justify-content: center;    /* centre horizontalement */
  border-radius: 8px;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

/* ----- BUTTON ----- */
body button {
  width: 100%;
  padding: 10px;
  background-color: #ffea00;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  color: #1b1b22;
  cursor: pointer;
  transition: 0.3s;
}

#Retour:hover {
  color: #ffea00;
}

button:hover {
  background-color: #ffea00;
}

/* Messages */
.msg {
  text-align: center;
  margin-top: 10px;
  font-size: 15px;
  height: 18px;
}

#lien-Profil {
  background-color: #0e1f44;
  padding: 6px 12px;
  border-radius: 10px;
  color: #ffea00;
  font-weight: 600;
  display: flex;
  align-items: center;
  box-shadow: 0 0 6px rgba(0, 255, 106, 0.4);
}

#avatar-roblox {
    width: clamp(28px, 6vw, 40px);
    height: clamp(28px, 6vw, 40px);
    border-radius: 50%;
}


/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .header-left {
    justify-content: center;
    gap: 10px;
  }

  header .text {
    font-size: 20px;
  }

  header ul {
    justify-content: center;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  header .text {
    font-size: 18px;
  }

  header ul {
    flex-direction: column;
    gap: 8px;
  }

  .solde-box {
    padding: 6px 10px;
    font-size: 14px;
  }

  input {
    font-size: 14px;
    padding: 8px;
  }

  button {
    font-size: 14px;
    padding: 8px;
  }
}
