/* --------------------------
   🌙 Thème principal
-------------------------- */
:root {
  --violet: #7b2ff7;
  --blue-dark: #0a0a1f;
  --blue: #1c1c3a;
  --text-light: #ffffff;
  --text-gray: #cfcfcf;
  --accent: #00c2ff;
}

/* --------------------------
   🌍 Reset + base
-------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--blue-dark);
  color: var(--text-light);
  line-height: 1.6;
}

/* --------------------------
   🔝 Header + Navigation
-------------------------- */
header {
  background: var(--blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--violet);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

header .logo a {
  color: var(--violet);
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav ul li a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

nav ul li a:hover {
  color: var(--violet);
}

/* Menu burger mobile */
.burger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --------------------------
   📄 Sections générales
-------------------------- */
section {
  padding: 4rem 10%;
}

section h2 {
  font-size: 2rem;
  color: var(--violet);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--violet);
  padding-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

p {
  color: var(--text-gray);
  font-size: 1rem;
}

/* --------------------------
   👥 Cartes (équipe, projets)
-------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--blue);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--violet);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.card p {
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* --------------------------
   🛒 Boutique
-------------------------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.shop-item {
  background: var(--blue);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.shop-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--accent);
}

.shop-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.shop-item button {
  background: var(--violet);
  border: none;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.shop-item button:hover {
  background: #5d14c9;
}

/* --------------------------
   📺 Twitch Embed
-------------------------- */
.twitch-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.twitch-container iframe {
  border-radius: 10px;
}

/* --------------------------
   ⚙️ Admin (pour /admin)
-------------------------- */
.admin-container {
  max-width: 900px;
  margin: 2rem auto;
  background: var(--blue);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(123, 47, 247, 0.3);
}

.admin-container h2 {
  text-align: center;
  color: var(--violet);
  margin-bottom: 1.5rem;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  background: #222248;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 8px;
}

.admin-form button {
  background: var(--violet);
  border: none;
  color: white;
  padding: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.admin-form button:hover {
  background: #5d14c9;
}

/* --------------------------
   📱 Responsive design
-------------------------- */
@media (max-width: 992px) {
  section {
    padding: 3rem 5%;
  }
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    background: var(--blue);
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    display: none;
    text-align: center;
    padding: 1rem 0;
  }

  nav ul.show {
    display: flex;
  }

  .burger {
    display: block;
    color: var(--text-light);
  }
}

@media (max-width: 480px) {
  header .logo a {
    font-size: 1.4rem;
  }

  section h2 {
    font-size: 1.4rem;
  }

  .card img,
  .shop-item img {
    height: 150px;
  }
}

/* --------------------------
   ⚫ Footer
-------------------------- */
footer {
  text-align: center;
  padding: 1rem;
  background: #08081a;
  color: var(--text-gray);
  font-size: 0.9rem;
  border-top: 2px solid var(--violet);
}
