/* ==========================
   RESET & BASE
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background-color: #0b1d2a;
  color: #dce3ec;
}
a {
  text-decoration: none;
  color: inherit;
}

p {

  text-align: center;
}
/* ==========================
   HEADER
========================== */
header {
  background-color: #0e2435;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* gauche | centre | droite */
  align-items: center;
  padding: 10px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.6);
  animation: slideDown 0.8s ease-out;
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.logo {
  grid-column: 1;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 2px;
  justify-self: start;
}
nav {
  grid-column: 2;
  justify-self: center;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 50px;
}
nav ul li a {
  color: #dce3ec;
  font-weight: 500;
  font-size: 18px;
  transition: color 0.2s;
}
nav ul li a:hover,
nav ul li a.active {
  color: #56b0ff;
  text-shadow: 0 0 6px #56b0ff, 0 0 14px rgba(86,176,255,.6);
}

/* ==========================
   HERO
========================== */
.hero {
  background: url('src/background.png') no-repeat center center/cover;
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  flex-direction: column;
  padding: 0 20px;
}
.hero h1 {
  font-size: 50px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
}
.hero p {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeInUp 1.3s ease forwards;
}
.btn-cta {
  background: #1a8cff;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  color: #fff;
  transition: all 0.3s;
  opacity: 0;
  animation: fadeInUp 1.6s ease forwards;
  cursor: pointer;
}
.btn-cta:hover {
  background: #56b0ff;
  box-shadow: 0 0 10px #56b0ff, 0 0 20px #56b0ff;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
section {
  padding: 60px 80px;
  opacity: 1;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
section.visible {
  opacity: 1;
  transform: translateY(0);
}
section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #56b0ff;
  text-align: center;
}
section p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
}

/* ==========================
   GALLERY
========================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.gallery img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #56b0ff;
}

/* ==========================
   FOOTER
========================== */
footer {
  background: #0e2435;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  margin-top: 40px;
}

/* ==========================
   TWITCH PANEL
========================== */
.twitch-panel {
  background: #0e2435;
  padding: 30px;
  border-radius: 12px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 0 15px rgba(86,176,255,0.6);
}
.twitch-panel h3 {
  margin-bottom: 20px;
  color: #56b0ff;
}
#StriikzLeLama {
  width: 100%;
  height: 550px;
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 768px) {
  #StriikzLeLama { height: 400px; }
}
@media (max-width: 480px) {
  #StriikzLeLama { height: 250px; }
}

/* ==========================
   DISCORD
========================== */
.discord-container {
  text-align: center;
  margin-top: 15px;
}
.discord-logo {
  height: 80px;
  transition: transform 0.3s;
}
.discord-logo:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px #56b0ff);
}

/* ==========================
   EVENTS LOGO
========================== */
.events-logo {
  text-align: center;
  margin-top: 20px;
}
.events-logo img {
  height: 200px;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.events-logo img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px #56b0ff);
}

/* ==========================
   STAR CITIZEN SPECIFIC
========================== */
/* ===== Hero Star Citizen avec vidéo ===== */
.hero-starcitizen {
  position: relative;
  min-height: 65vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;

  /* Fallback image si la vidéo ne charge pas */
  background: url("src/starcitizen_fallback.jpg") center/cover no-repeat;
}


.hero-starcitizen .bg-video {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* assombrit pour lisibilité */
}

.hero-starcitizen .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.hero-starcitizen h1 {
  font-size: 50px;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(86,176,255,.6);
}

.hero-starcitizen p {
  font-size: 20px;
  margin-bottom: 30px;
}

.sc-section {
  padding-top: 50px;
  padding-bottom: 50px;
}
.sc-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 1100px) {
  .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .sc-grid { grid-template-columns: 1fr; }
}
.glow-card {
  background: #0e2435;
  border-radius: 14px;
  padding: 22px;
  border: 1px solid rgba(86,176,255,.15);
  box-shadow:
    0 0 0 1px rgba(86,176,255,.12) inset,
    0 10px 30px rgba(0,0,0,.35),
    0 0 24px rgba(86,176,255,.12);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.glow-card:hover {
  transform: translateY(-4px);
  border-color: rgba(86,176,255,.35);
  box-shadow:
    0 0 0 1px rgba(86,176,255,.35) inset,
    0 16px 40px rgba(0,0,0,.45),
    0 0 42px rgba(86,176,255,.25);
}
.badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .4px;
  color: #bfe1ff;
  background: rgba(86,176,255,.12);
  border: 1px solid rgba(86,176,255,.25);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  box-shadow: 0 0 12px rgba(86,176,255,.25) inset;
}
.cta-panel {
  background: linear-gradient(180deg, rgba(17,43,66,.6), rgba(17,43,66,.85));
  border: 1px solid rgba(86,176,255,.25);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  box-shadow:
    0 0 0 1px rgba(86,176,255,.15) inset,
    0 20px 40px rgba(0,0,0,.45),
    0 0 48px rgba(86,176,255,.18);
}
.cta-panel h3 {
  color: #56b0ff;
  margin-bottom: 8px;
}
.cta-panel p {
  margin-bottom: 16px;
}


/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 1024px) {
  nav ul {
    gap: 20px;
  }
  section { padding: 30px; }
}
@media (max-width: 768px) {
  header { grid-template-columns: 1fr; }
  nav ul { flex-direction: column; gap: 8px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  section h2 { font-size: 24px; }
  section p { font-size: 16px; }
  .sc-grid { grid-template-columns: 1fr; }
}
