body {
    font-family: Arial, sans-serif;
    background-color: #111;
    color: white;
    margin: 0;
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
}

.sidebar {
    width: 200px; /* Réduit la largeur */
    height: 60vh; /* Réduit la hauteur */
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    border-radius: 15px; /* Arrondi */
    position: absolute;
    left: 200px; /* Décalé du bord */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.logo {
    width: 80px; /* Réduit la taille */
    height: auto;
    margin-bottom: 20px;
    transition: 0.2s;
}

.logo:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    flex-direction: column;
    width: 100%;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px;
    text-align: center;
    display: block;
    transition: 0.3s;
    border-radius: 10px; /* Arrondi pour chaque lien */
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.hyperlink {
    color: #7289DA;
    text-decoration: underline;
    font-weight: bold;
    transition: 0.3s;
}

.hyperlink:hover {
    color: #5865F2; 
}

/* Ajustement des champs de saisie */
.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

input {
    width: 80%; /* Réduction de la largeur */
    max-width: 350px; /* Empêche d'être trop large */
    padding: 12px;
    font-size: 16px;
    border: 2px solid #555;
    border-radius: 8px;
    background: #222;
    color: white;
    outline: none;
    text-align: center;
}

input::placeholder {
    color: #aaa; /* Texte grisé */
    font-size: 14px;
}

/* Bouton Register avec effet au survol */
.submit-button {
    width: 80%;
    max-width: 250px;
    padding: 12px;
    font-size: 18px;
    background: transparent;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s, background 0.3s;
}

.submit-button:hover {
    background: #505050;
    transform: scale(1.05); /* Augmente légèrement la taille */
}

/* Container pour le champ password + bouton "eye" */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
}

.show-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: white;
}


.discord-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #5865F2;
    color: white;
    padding: 8px;
    margin-top: 15px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    height: 20px;
}

.discord-button img {
    width: 32px;
}

.discord-button:hover {
    background-color: #4752C4;
    transform: scale(1.05);
}

.simple-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: transparent;
    color: white;
    padding: 8px;
    margin-top: 5px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.simple-button:hover {
    transform: scale(1.05);
    background-color: #323232;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100% - 250px); /* Ajuste pour prendre l'espace après le menu */
}

.content-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    text-align: center;
    height: 70vh;
    width: 1000px;
}

/* --- conteneur horizontal explicite --- */
.card-grid {
  display: flex;
  flex-direction: row;      /* force l’alignement en ligne */
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
}

/* --- cartes plus larges et un peu plus hautes --- */
.card {
  width: 240px;             /* auparavant 180px, plus “allongé” */
  height: 100px;            /* auparavant 120px, un peu plus haut */
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.top-cards .card {
  width: 300px;   /* un peu plus large */
}

/* --- partie gauche “icone” plus large --- */
.card-icon {
  flex: 0 0 100px;           /* auparavant 60px, plus d’espace pour l’icône */
  background-color: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- icône agrandie --- */
.card-icon img {
  max-width: 100%;           /* auparavant 80%, pour qu’elle remplisse mieux */
  max-height: 100%;
}

/* --- partie droite qui prend le reste --- */
.card-content {
  flex: 1;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

/* --- textes inchangés --- */
.card-title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 5px;
}
.card-qty {
  font-size: 1.8rem;
  font-weight: 600;
}

.error-image {
  text-align: center;
  margin: 20px 0;
}
.error-image img {
  max-width: 300px;
  width: 100%;
  height: auto;
}
