* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: radial-gradient(ellipse at top, #7F00FF 0%, #000 100%);
  color: #f0f0f0;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: url('../assets/img/banniere.jpeg') center/cover no-repeat;
  text-align: center;
  padding: 60px 20px 80px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  position: relative;
}

header h1 {
  font-size: 3.5em;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 2px 2px 8px #000;
}

header p {
  font-size: 1.2em;
  color: #ddd;
  margin-top: 10px;
}

nav {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 25px;
  display: flex;
  gap: 25px;
  background: rgba(0, 0, 0, 0.45);
  border-bottom-right-radius: 20px;
  box-shadow: 0 0 15px #000;
  z-index: 100;
  align-items: center;
}


nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: #ff4ecf;
  align-items: center;
}

main {
  flex: 1;
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}

.intro h2,
.download h2,
.shop-dev h2 {
  font-size: 2.2em;
  margin-bottom: 25px;
  color: #b976ff;
  text-align: center;
}

.download-list {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.download-list .btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #b976ff;
  color: #000;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1.1em;
  text-decoration: none;
  transition: background 0.2s ease;
}

.download-list .btn:hover {
  background: #ff4ecf;
}

.windows,
.linux,
.macos {
  width: 28px;
  height: 28px;
}

.ip-box {
  margin-top: 20px;
  padding: 15px;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.ip {
  font-family: monospace;
  background: #111;
  padding: 8px 12px;
  border-radius: 5px;
  color: #fff;
}

.label {
  font-weight: bold;
  color: #ccc;
}

button {
  background: #b976ff;
  color: black;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
  background: #ff4ecf;
}

h1 {
  text-align: center;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
}


.card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  width: 240px;
  min-height: 320px;
  padding: 20px;
  transition: transform 0.2s;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 100%;
}

.card h2 {
  margin-top: 15px;
  font-size: 1em;
  color: #333;
  flex-grow: 1;
}


.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}


footer {
  text-align: center;
  padding: 25px 10px;
  font-size: 0.9em;
  color: #777;
  border-top: 1px solid #333;
  background: #111;
  margin-top: 20px;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, #b976ff, #7f00ff);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: 0.3s;
}

.btn:hover {
  background: linear-gradient(135deg, #ff4ecf, #b976ff);
  transform: translateY(-2px);
}

.lang-selector {
  background-color: black;
  color: #f0f0f0;
  font-weight: bold;
}

/* --- Bouton Voir Plus sur les cartes --- */
.card .btn {
  margin-top: auto;
  padding: 10px 18px;
  font-size: 0.9em;
  border-radius: 10px;
  background: linear-gradient(135deg, #b976ff, #7f00ff);
  color: #fff;
  cursor: pointer;
  border: none;
  transition: 0.3s;
}

.card .btn:hover {
  background: linear-gradient(135deg, #ff4ecf, #b976ff);
  transform: translateY(-2px);
}

.card p {
  color: #000;
}

/* --- Modal "Voir plus" --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  color: #f0f0f0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  animation: slideUp 0.3s ease;
}

.modal-content img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid #b976ff;
}

.modal-content h2 {
  color: #b976ff;
  margin-bottom: 10px;
}

.modal-content p {
  margin: 8px 0;
  color: #ddd;
}

.modal-content em {
  color: #ff4ecf;
  font-style: normal;
  font-weight: bold;
}

.close {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 30px;
  cursor: pointer;
  color: #fff;
  transition: 0.3s;
}

.close:hover {
  color: #ff4ecf;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --- Grille 4 colonnes --- */
.team-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  justify-items: center;
}

/* Responsive : 2 colonnes tablette, 1 sur mobile */
@media (max-width: 1024px) {
  .team-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .team-container {
    grid-template-columns: 1fr;
  }
}

/* === Section Boutique === */
/* === Grille boutique === */
#shop-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    width: 80%;
    margin: 0 auto;
}

/* === Carte boutique === */
.shop-card {
    background-color: #1a1a1a; /* fond sombre stylé */
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.shop-card:hover {
    transform: translateY(-10px);
}

.shop-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.shop-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.details {
    padding: 15px;
    text-align: center;
}

.details h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #fff; /* titres en blanc */
}

.details p,
.details span {
    /* color: #ddd;  texte secondaire gris clair */
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    text-decoration: none;
}

.price {
    font-weight: bold;
    color: #ff4ecf; /* prix rose pour coller au thème */
    font-size: 1em;
}

/* === Featured Shop adapté === */
#featured-shop {
    width: 80%;
    margin: 40px auto;
    border-radius: 10px;
    overflow: hidden;
}

#featured-shop .featured-content {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

#featured-shop .featured-content img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
}

#featured-shop .featured-content .info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 8px;
}

#featured-shop .featured-content h2,
#featured-shop .featured-content p,
#featured-shop .featured-content span {
    color: #fff;
    text-decoration: none;
    margin: 5px 0;
}

/* prix du featured */
#featured-shop .featured-content span {
    color: #ff4ecf;
    font-weight: bold;
}

/* --- Containers Connexion / Inscription / Compte --- */
.container {
  max-width: 400px;
  margin: 50px auto;
  background: #1a1a1a;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  text-align: center;
}

.container h1 {
  color: #b976ff;
  margin-bottom: 20px;
  font-size: 2em;
}

.container label {
  display: block;
  text-align: left;
  color: #ddd;
  font-weight: bold;
  margin-top: 15px;
}

.container input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid #444;
  background: #111;
  color: #fff;
  font-size: 1em;
}

.container input:focus {
  outline: none;
  border-color: #b976ff;
  box-shadow: 0 0 8px #b976ff;
}

.container button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  font-size: 1em;
  font-weight: bold;
  background: linear-gradient(135deg, #b976ff, #7f00ff);
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.container button:hover {
  background: linear-gradient(135deg, #ff4ecf, #b976ff);
  transform: translateY(-2px);
}

/* --- Pseudo Minecraft --- */
#mc-create {
  margin-top: 20px;
}

#mc-create input {
  width: calc(100% - 20px);
  margin-bottom: 10px;
}

#mc-create button {
  width: 100%;
}

/* --- Mon compte --- */
#account-section p {
  color: #ccc;
  margin: 8px 0;
}

#account-avatar {
  border: 3px solid #b976ff;
}

#owned-games div {
  background: #111;
  border-radius: 12px;
  padding: 10px;
  width: 120px;
  text-align: center;
  transition: transform 0.2s;
}

#owned-games div:hover {
  transform: translateY(-5px) scale(1.05);
}

#owned-games img {
  width: 100%;
  border-radius: 10px;
}

#owned-games p {
  color: #fff;
  font-size: 0.85em;
  margin-top: 5px;
}

/* --- Message alert / info --- */
.alert {
  background: #ff4ecf;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
  font-weight: bold;
}

/* Responsive mobile */
@media (max-width: 500px) {
  .container {
    margin: 30px 20px;
    padding: 20px;
  }

  #owned-games {
    justify-content: center;
  }
}

