/* ======================
   RESET & FONTS
====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #202020, #3b3b3b);
  color: #fff;
  line-height: 1.6;
  position: relative;
  transition: background 0.3s, color 0.3s;
}

/* ======================
   LIGHT THEME
====================== */
body.light-theme {
  background: linear-gradient(135deg, #f0f0f0, #dcdcdc);
  color: #222;
}

/* ======================
   PARTICLES BACKGROUND
====================== */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
  top: 0;
  left: 0;
}

/* ======================
   HEADER
====================== */
header {
  background: rgba(17,17,17,0.9);
  padding: 1rem 2rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s;
}

body.light-theme header {
  background: rgba(255,255,255,0.95);
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  text-shadow: 0 0 10px #ff5c5c, 0 0 20px #ff5c5c;
  transition: text-shadow 0.3s, color 0.3s;
  text-align: center;
}

body.light-theme .logo {
  text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
  color: #222;
}

.logo span {
  color: #ff5c5c;
}

body.light-theme .logo span {
  color: #ff0000;
}

nav {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

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

nav a:hover {
  color: #ff5c5c;
}

body.light-theme nav a {
  color: #222;
}

body.light-theme nav a:hover {
  color: #ff0000;
}

/* ======================
   THEME TOGGLE BUTTON
====================== */
#themeToggle {
  margin-top: 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: inherit;
  transition: transform 0.2s;
}

#themeToggle:hover {
  transform: rotate(20deg);
}

/* ======================
   SECTIONS
====================== */
section {
  padding: 3rem 1rem;
  max-width: 900px;
  margin: auto;
  text-align: center; /* Tout le contenu centré */
}

/* ======================
   TITRES
====================== */
h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ff5c5c;
  transition: color 0.3s;
  text-align: center;
}

body.light-theme h2 {
  color: #ff0000;
}

/* ======================
   HISTOIRE ENCADRÉE
====================== */
#histoire ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem; /* espace entre les boîtes */
}

#histoire li {
  background: rgba(42,42,42,0.85);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  max-width: 600px;
  width: 100%;
  text-align: center;
  transition: background 0.3s;
}

body.light-theme #histoire li {
  background: rgba(255,255,255,0.9);
  color: #222;
}

#histoire li strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #ff5c5c;
}

body.light-theme #histoire li strong {
  color: #ff0000;
}

/* ======================
   STREAMEURS GRID
====================== */
.streamer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.streamer-card {
  background: rgba(42,42,42,0.8);
  border-radius: 12px;
  width: 150px;
  padding: 1rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

body.light-theme .streamer-card {
  background: rgba(255,255,255,0.9);
}

.streamer-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #ff5c5c55;
}

.streamer-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  object-fit: cover;
  transition: box-shadow 0.3s;
}

.streamer-card img:hover {
  box-shadow: 0 0 10px #ff5c5c;
}

/* ======================
   FOOTER
====================== */
footer {
  text-align: center;
  padding: 1.5rem;
  background: rgba(17,17,17,0.9);
  margin-top: 2rem;
  font-size: 0.9rem;
}

body.light-theme footer {
  background: rgba(255,255,255,0.95);
  color: #222;
}

/* ======================
   BACK TO TOP BUTTON
====================== */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #ff5c5c;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 200;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-5px);
}

body.light-theme #backToTop {
  background: #ff0000;
}

/* ======================
   RESPONSIVE
====================== */
@media (max-width: 600px) {
  header { flex-direction: column; }
  nav { gap: 10px; }
  .streamer-card { width: 120px; }
  #histoire li { max-width: 90%; }
}
