/* =========================
🔥 VERSION PRO ESPORT
========================= */

/* ========= GLOBAL ========= */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #0f172a, #020617);
    color: white;
  }
  
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgb(255, 217, 0);
  }
  
  header h1 {
    color: rgb(255, 217, 0);
    text-shadow: 0 0 10px rgb(255, 217, 0);
  }
  
  nav a {
    margin: 15px;
    color: white;
    text-decoration: none;
    position: relative;
  }
  
  nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: rgb(255, 217, 0);
    transition: 0.3s;
  }
  
  nav a:hover::after {
    width: 100%;
  }
  
  /* ========= HERO ========= */
  .hero {
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, transparent, rgba(0,255,255,0.1));
  }
  
  .hero h2 {
    font-size: 3rem;
    color: rgb(255, 217, 0);
    text-shadow: 0 0 20px rgb(255, 217, 0);
  }
  
  /* ========= GRID ========= */
  .grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 50px;
    justify-content: center;
  }
  
  /* ========= CARD ========= */
  .card {
    background: rgba(30,41,59,0.8);
    padding: 20px;
    border-radius: 15px;
    width: 220px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
  }
  
  .card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(45deg, rgb(255, 217, 0), rgb(0, 0, 0)), rgb(255, 217, 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }
  
  .card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0 25px rgb(255, 217, 0), 0 0 50px rgb(0, 0, 0);
  }
  
  .card img {
    width: 100%;
    border-radius: 10px;
  }
  
  .card h3 {
    margin: 10px 0 5px;
    color: rgb(255, 217, 0);
  }
  
  /* ========= FORM ========= */
  form {
    display: flex;
    flex-direction: column;
    width: 320px;
    margin: auto;
    gap: 15px;
  }
  
  input, textarea {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #020617;
    color: white;
  }
  
  button {
    padding: 12px;
    background: linear-gradient(45deg, rgb(255, 217, 0), rgb(0, 0, 0));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    transition: 0.3s;
  }
  
  button:hover {
    box-shadow: 0 0 20px rgb(255, 217, 0);
    transform: scale(1.05);
  }
  
  /* ========= TOURNOIS PAGE ========= */
  .tournaments {
    padding: 50px;
  }
  
  .tournament-card {
    background: rgba(0,0,0,0.6);
    border-left: 4px solid rgb(255, 217, 0);
    padding: 20px;
    margin: 20px auto;
    width: 60%;
    border-radius: 10px;
    transition: 0.3s;
  }
  
  .tournament-card:hover {
    box-shadow: 0 0 20px rgb(255, 217, 0);
  }
  
  footer {
    text-align: center;
    padding: 20px;
    color: #666;
  }
  
  .video-container {
    height: 90vh;
    aspect-ratio: 9/16;
  }
  
  .video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .social-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 40px 0;
  }
  
  .social-btn {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.5rem;
    color: white;
    background: rgba(255,255,255,0.05);
    transition: 0.3s;
    position: relative;
  }
  
  /* Glow animation */
  .social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient 45deg, rgb(255, 217, 0), rgb(0, 0, 0), rgb(255, 217, 0);
    opacity: 0;
    transition: 0.3s;
    z-index: -1;
  }
  
  .social-btn:hover::before {
    opacity: 1;
    filter: blur(10px);
  }
  
  .social-btn:hover {
    transform: scale(1.2);
  }
  
  .social-btn {
    text-decoration: none; /* enlève le soulignement */
  }
  
  .social-btn:hover {
    text-decoration: none; /* sécurité */
  }
  
  .social-container a {
    text-decoration: none;
  }

  /* Couleurs spécifiques */
  .twitter:hover {
    color: #ffffff;
    box-shadow: 0 0 20px rgb(255, 217, 0);
  }
  
  .discord:hover {
    color: #ffffff;
    box-shadow: 0 0 20px rgb(255, 217, 0);
  }
  
  .instagram:hover {
    color: #ffffff;
    box-shadow: 0 0 20px rgb(255, 217, 0);
  }

  .youtube:hover {
    color: #ffffff;
    box-shadow: 0 0 20px rgb(255, 217, 0);
  }
  
  /* Footer */
  footer {
    text-align: center;
    padding: 20px;
    background: rgba(0,0,0,0.8);
    border-top: 1px solid rgb(255, 217, 0);
  }

  .card-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    
  }
  
  .card-socials a {
    background: rgba(255,255,255,0.1);
    padding: 5px 10px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
  }
  
  .card-socials a:hover {
    background: rgb(255, 217, 0);
    color: black;
    transform: scale(1.1);
  }
  
  .card > * {
    position: relative;
    z-index: 1;
  }

  .twitch-btn {
    display: inline-block;
  }

  .video-container {
    max-width: 800px;
    margin: 30px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 25px cyan;
  }
  
  .video-container video {
    width: 100%;
    display: block;
  }

  /* =========================
🔥 TWITCH SECTION REFAITE PRO
========================= */
.twitch-section {
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.twitch-title {
  font-size: 2.2rem;
  color: rgb(255, 217, 0);
  text-shadow: 0 0 15px rgb(255, 217, 0);
}

.twitch-subtitle {
  opacity: 0.7;
  margin-top: -10px;
}

.twitch-wrapper {
  position: relative;
  width: 100%;
  max-width: 650px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 30px rgb(201, 200, 199);
}

.twitch-wrapper iframe,
.twitch-wrapper video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
}

/* 🔴 badge LIVE */
.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgb(82, 82, 82);
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 5px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 5px rgb(255, 255, 255); }
  50% { box-shadow: 0 0 20px rgb(282, 82, 82); }
  100% { box-shadow: 0 0 5px rgb(255, 255, 255); }
}

/* bouton */
.twitch-btn {
  padding: 12px 30px;
  background: linear-gradient(45deg, rgb(255, 217, 0), rgb(255, 217, 0));
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.twitch-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgb(255, 217, 0);
}
.twitch-section {
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.twitch-section h2 {
  color: rgb(255, 217, 0);
  text-shadow: 0 0 15px rgb(255, 217, 0);
  margin-bottom: 10px;
}

.twitch-section p {
  margin: 0;
  opacity: 0.8;
}

.twitch-container,
.video-container {
  width: 100%;
  max-width: 600px; /* 🔽 plus petit */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 25px rgb(255, 217, 0);
}

.twitch-container iframe,
.video-container iframe,
.video-container video {
  width: 100%;
  aspect-ratio: 16 / 9; /* ✅ 1920x1080 */
  display: block;
}

.twitch-btn {
  margin-top: 10px;
  padding: 12px 25px;
  background: linear-gradient(45deg, rgb(255, 217, 0), rgb(255, 123, 0));
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}

.twitch-btn:hover {
  box-shadow: 0 0 20px rgb(255, 217, 0);
  transform: scale(1.05);
}
.twitch-section {
  text-align: center;
  padding: 60px 20px;
}

.twitch-section h2 {
  color: rgb(255, 217, 0);
  text-shadow: 0 0 15px rgb(255, 217, 0);
}

.twitch-container {
  margin: 30px auto;
  max-width: 800px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 25px rgb(255, 217, 0);
}

.twitch-container iframe {
  width: 100%;
  height: 400px;
}

.twitch-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: linear-gradient(45deg, rgb(255, 217, 0), rgb(255, 115, 0));
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s;
}

.twitch-btn:hover {
  box-shadow: 0 0 20px rgb(255, 217, 0);
  transform: scale(1.05);
}