/* Styles généraux */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #1a1a1a;
  color: #fff;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.chest-container {
  position: relative;
  text-align: center;
  cursor: pointer;
}
.chest-container img {
    width: 35%; /* Augmente la taille */
    height: auto; /* Garde les proportions */
}
chest {
  width: 150px;
  transition: transform 0.3s ease-in-out;
}

#inventory-container {
  display: none;
  margin-top: 10px;
}

.chest-open {
  transform: scale(1.1);
}
.skyblock_text {
  text-align: center;
  padding: 50px 10%;
  color: white;
}

.skyblock_images {
  display: flex;
  justify-content: center;
  align-items: left;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.skyblock_images img {
  width: 45%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.skyblock_text h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #ffe600;
}

.skyblock_text p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Header */
.header {
  background: 
    linear-gradient(to bottom right, rgb(80 50 126 / 60%), rgb(0 188 212 / 60%)), url(medias/header.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0;
}

.header h1 {
  font-size: 3rem;
}

.header h1 span {
  color: #ffe600;
}
.header p {
  font-size: 1.2rem;
  margin: 20px 0;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ffe600;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background-color: #ffcc00;
}

/* Features */
.features {
  padding: 50px 0;
  background-color: #222;
}

.features h2 {
  margin-bottom: 30px;
  font-size: 2.5rem;
}

.cards {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.card {
  background: #333;
  padding: 20px;
  border-radius: 10px;
  margin: 10px;
  width: 30%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.card h3 {
  color: #ffe600;
}

/* Conteneur principal */
.inventory-container {
    color: #404040;
    font-size: 15px;
    font-weight: 400;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%; /* Ajusté à l’image du coffre */
    height: 300px;
    margin: auto;
}

/* Image du shulker box */
.inventory-image {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
}

/* Tableau des items positionné sur l’image */
.inventory-table {
    position: absolute;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(9, 1fr); /* 9 colonnes */
    grid-template-rows: repeat(3, 1fr); /* 3 lignes */
    gap: 3px;
    z-index: 2;
}

/* Chaque slot d’inventaire */
.inventory-slot {
    position: relative;
    width: 100%;  /* Ajusté pour correspondre aux cases */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1); /* Léger fond pour visualiser les cases */
    border-radius: 4px; /* Coins arrondis */
}

/* Icônes des items */
.item {
    width: 100%;
    height: 100%;
}

/* Nombre d'items (stack) */
.item-count {
    position: absolute;
    bottom: 2px;
    right: 4px;
    background: rgba(0, 0, 0, 0.6); /* Fond pour meilleure visibilité */
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 1px 3px;
    border-radius: 3px;
}

/* CTA */
.cta {
  background: linear-gradient(to right, rgb(80 50 126), rgb(0 188 212));
  padding: 50px 0;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Styles Responsives */
@media (max-width: 1024px) {
  .header h1 {
    font-size: 2.5rem;
  }
  .features h2 {
    font-size: 2rem;
  }
  .inventory-table {
    width: 100%;
    height: 50%;
}
}

@media (max-width: 768px) {
  .header {
    padding: 80px 0;
  }

  .header h1 {
    font-size: 2rem;
  }

  .header p {
    font-size: 1rem;
  }

  .btn {
    padding: 12px 18px;
    font-size: 1rem;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 80%;
    margin-bottom: 15px;
  }

  .cta h2 {
    font-size: 1.8rem;
  }
.navbar .container {
        flex-direction: column;
        text-align: center;
    }
    .nav-links {
        flex-direction: column;
        padding-top: 10px;
    }
    .nav-links li {
        margin: 10px 0;
    }
    .header {
        padding: 80px 0;
    }
    .header h1 {
        font-size: 2.5rem;
    }
    .header p {
        font-size: 1rem;
    }
    .step {
        width: 90%;
    }
  .skyblock_images img {
    width: 90%;
  }
  .inventory-table {
    width: 100%;
    height: 50%;
}
}

@media (max-width: 480px) {
  .header {
    padding: 60px 0;
  }

  .header h1 {
    font-size: 1.8rem;
  }

  .header p {
    font-size: 0.9rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 10px 15px;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 80%;
  }

  .features h2 {
    font-size: 1.6rem;
  }

  .cta h2 {
    font-size: 1.5rem;
  }
.header {
        padding: 60px 0;
    }
    .header h1 {
        font-size: 2rem;
    }
    .header p {
        font-size: 0.9rem;
    }
    .step {
        width: 100%;
    }

  .inventory-table {
    width: 100%;
    height: 50%;
}
}

/* Navigation */
.navbar {
    background-color: #222;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffe600;
}

.logo a {
  color: #ffe600;
  text-decoration: none;
}

.logo img {
  max-height: 50px;
  float: left;
}

.nav-links {
    list-style: none;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffe600;
}
/* Section Rejoindre */
.join-steps {
    padding: 50px 0;
    background-color: #222;
}

.join-steps .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step {
    background: #333;
    padding: 20px;
    border-radius: 10px;
    margin: 10px 0;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.step h2, .step .lien-serveur {
    color: #ffe600;
}

/* Section CGU */
.CGU {
    padding: 50px 0;
    background-color: #222;
}

.CGU .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article {
    background: #333;
    padding: 20px;
    border-radius: 10px;
    margin: 10px 0;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.article p{
    text-align: justify;
}
.article h2 {
    color: #ffe600;
}

/* Section Description */
.description {
  padding: 60px 20px;
  background-color: #222;
  text-align: center;
}

.description h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.description p {
  text-align: justify;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Section Contact */
.contact {
  padding: 60px 20px;
  background: linear-gradient(to right, #2c7a7b, #4caf50);
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.contact form {
  max-width: 500px;
  margin: 0 auto;
}

.contact input,
.contact textarea, .contact .recaptcha{
  width: 90%;
  padding: 12px;
  margin-bottom: 10px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

.contact textarea {
  height: 120px;
  resize: none;
}

.contact .btn {
  display: inline-block;
  padding: 12px 20px;
  background-color: #ffe600;
  color: #1a1a1a;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.3s;
}

.contact .btn:hover {
  background-color: #ffcc00;
}
.discord-btn {
  display: inline-block;
  background-color: #5865F2; /* Couleur Discord */
  color: white;
  margin: 10px 0;
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.discord-btn:hover {
  background-color: #4752C4;
}

.modes{
  color: #fff;
  text-decoration: none;
}
/* Pied de page */
.footer {
    background-color: #111;
    padding: 20px 0;
    text-align: center;
}