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

body {
  font-family: Arial, sans-serif;
  background: var(--secondary-color);
  color: white;
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--primary-color);
  padding: 20px 0;
  text-align: center;
  transition: all 0.5s ease;
}

header nav {
  background: var(--primary-color);
  padding: 15px;
  text-align: center;
}

header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

header nav ul li {
  display: inline-block;
  margin: 0 20px;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

/* Page d'accueil */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(var(--primary-color), var(--secondary-color));
  position: relative;
}

.hero h1 {
  font-size: 50px;
  margin-bottom: 20px;
  color: var(--text-color);
  text-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color),
    0 0 30px var(--accent-color), 0 0 40px var(--accent-color);
  animation: glow 1.5s ease-in-out infinite alternate;
  font-family: "Teko", "Fugaz One", "Roboto", Arial, sans-serif;
}

@keyframes glow {
  0% {
    text-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color),
      0 0 30px var(--accent-color), 0 0 40px var(--accent-color);
  }
  100% {
    text-shadow: 0 0 20px var(--accent-color), 0 0 30px var(--accent-color),
      0 0 40px var(--accent-color), 0 0 50px var(--accent-color);
  }
}

.hero p {
  font-size: 20px;
  margin-bottom: 40px;
}

.btn-inscription {
  display: inline-block;
  width: 300px;
  text-align: center;
  padding: 1em;
  font-size: 1.5em;
  font-weight: bold;
  color: white;
  background: var(--accent-color);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.btn-inscription:hover {
  background: white;
  color: var(--accent-color);
}

/* Effet étoile filante */
@keyframes etoile-filante {
  0% {
    transform: translateX(0) translateY(0) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translateX(600px) translateY(-400px) scale(0);
    opacity: 0;
  }
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 2px;
  height: 2px;
  background: white;
  animation: etoile-filante 3s linear infinite;
}

/* Section du planning des matchs */
#planning {
  text-align: center;
  padding: 50px 20px;
  background: var(--secondary-color);
  margin-bottom: 50px;
}

/* Style du titre principal */
#planning h2 {
  color: var(--accent-color);
  margin-bottom: 20px;
}

#planning h3 {
  color: var(--accent-color);
  margin-bottom: 20px;
}

.pool-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: stretch;
}

.pool {
  /* background: var(--secondary-color); */
  color: white;
  padding: 20px;
  margin: 20px;
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Carte de chaque match */
.match-card {
  background: var(--secondary-color);
  color: white;
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  border-radius: 8px;
  opacity: 0;
  animation: fondu 2s ease-in-out forwards;
}

/* Animation de fondu */
@keyframes fondu {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Conteneur du match */
.match {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Style du texte VS */
.vs {
  font-size: 24px;
  font-weight: bold;

  margin: 0 20px;
  font-family: "Arial", sans-serif;
}

/* Style du statut "En Live" */
.live {
  color: var(--accent-color);
  font-weight: bold;
}

.mt20 {
  margin-top: 20px;
}

/* Section des équipes */
.equipes {
  margin-bottom: 50px; /* Espace ajouté au-dessus de la section des équipes */
}

.equipes h2 {
  text-align: center;
  font-size: 40px;
  color: var(--accent-color);
  margin-bottom: 30px;
}

.equipes .joueur-nom {
  color: #f8f9fa;
  text-align: center;
  margin-bottom: 1em;
}

.equipes-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.equipe-card {
  display: flex;
  align-items: center;
  background: var(--secondary-color);
  color: white;
  padding: 20px;
  min-width: 400px; /* Largeur minimale de la carte */
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease-in-out;
}

.equipe-card:hover {
  transform: scale(1.05);
}

.logo-equipe {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
}

.logo-equipe-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 20px;
  background-color: var(--accent-color);
}

.looser {
  opacity: 50%;
}

.equipe-details h3 {
  font-size: 24px;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.equipe-details p,
.equipe-details a {
  font-size: 16px;
  color: white;
}

.equipe-details a.btn {
  display: inline-block;
  background: var(--accent-color);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 10px;
}

.equipe-details a.btn:hover {
  background: white;
  color: var(--primary-color);
}

/* Section joueurs dispos */

/* Section Twitch */
#lives {
  text-align: center;
  padding: 50px 20px;
}

#lives h2 {
  color: var(--accent-color);
  margin-bottom: 20px;
}

/* Conteneur des icônes de réseaux sociaux */
.social-links {
  display: flex;
  justify-content: center;
  gap: 30px; /* Espace entre les icônes */
  margin-top: 20px;
}

/* Style des icônes de réseaux sociaux */
.icone-social {
  display: inline-block;
  vertical-align: middle;
  line-height: 0;
  cursor: pointer;
  width: 60px;
  height: 60px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Effet de survol sur les icônes */
.icone-social:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

.icone-social svg {
  width: 100%;
  height: 100%;
  display: block; /* Retire espace blanc possible */
  fill: currentColor; /* Pour que la couleur suive celle du conteneur */
}

/* Effet de braise enflammée */
@keyframes braise-enflammee {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0.9;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-200px) scale(0);
    opacity: 0;
  }
}

.braise {
  position: absolute;
  width: 5px;
  height: 5px;
  background: orange;
  border-radius: 50%;
  animation: braise-enflammee 3s linear infinite;
  opacity: 0.8;
}

.braise::before {
  content: "";
  width: 100%;
  height: 100%;
  background: var(--text-color);
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  filter: blur(4px);
}

.hero {
  position: relative;
  overflow: hidden;
}

/* Style pour chaque carte d'équipe */
.team-card {
  display: flex;
  align-items: center;
  margin: 20px;
  padding: 20px;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  background-color: #fff; /* Fond blanc pour la carte */
}

/* Conteneur du logo avec fond rouge */

/* Style des détails de l'équipe */
.team-details h3 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

/* Section Format du Tournoi */
#format {
  background: var(--accent-color);
  color: white;
  padding: 50px 20px;
  margin-bottom: 50px;
  text-align: center;
}

#format h2 {
  color: var(--accent-color);
  font-size: 36px;
  margin-bottom: 20px;
}

#format h3 {
  font-size: 28px;
  margin: 30px;
  color: var(--accent-color);
}

#format p,
#format ul {
  font-size: 18px;
  line-height: 1.6;
  margin-top: 15px;
}

#format ul {
  list-style-type: disc;
  margin-left: 40px;
}

#format li {
  margin-bottom: 10px;
}

/* Accentuation des points clés */
strong {
  color: var(--accent-color);
}

/* Section des Présentateurs */
#presentateurs {
  text-align: center;
  padding: 50px 20px;
  margin-bottom: 50px; /* Espace sous la section */
}

#presentateurs h2 {
  color: var(--accent-color);
  font-size: 36px;
  margin-bottom: 20px;
}

.photo-presentateurs {
  width: 100%;
  height: auto;
  border-radius: 8px; /* Ajoute un léger arrondi aux coins de la photo */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Ombre portée pour ajouter de la profondeur */
}

.presentateur-container {
  width: 100%;
  overflow: hidden; /* Empêche l'image de déborder */
}

/* Animation de fondu pour l'image des présentateurs */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.photo-presentateurs {
  animation: fadeIn 2s ease-in-out;
}

/* Bannière d'informations */
#banniere {
  background-color: var(
    --primary-color
  ); /* Rouge pour correspondre à la couleur du thème */
  color: white;
  padding: 10px 0;
  width: 100%;
  z-index: 1000; /* Pour qu'elle soit au-dessus de tout autre contenu */
  font-size: 18px;
  font-family: "Arial", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Espacement en bas pour séparer des autres sections */
}

.banniere-content {
  white-space: nowrap; /* Empêche le texte de se casser */
  overflow: hidden;
  display: flex;
}

.banniere-content p {
  animation: defilement 15s linear infinite; /* Animation du défilement */
  margin: 0;
}

@keyframes defilement {
  0% {
    transform: translateX(100%); /* Commence à droite hors de l'écran */
  }
  100% {
    transform: translateX(-100%); /* Défile jusqu'à la gauche hors de l'écran */
  }
}

/* Style général */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: var(--secondary-color);
  color: white;
  padding: 20px;
  text-align: center;
}

/* En-tête */
header {
  background: var(--primary-color);
  padding: 20px 0;
}

header nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
}

header nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
}

/* Section de l'équipe */
#equipe {
  padding: 50px 20px;
}

#equipe h2 {
  font-size: 36px;
  margin-bottom: 30px;
}

.joueur-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.joueur-card {
  width: 200px;
  background: linear-gradient(var(--primary-color), var(--secondary-color));
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  flex: 1 1 200px;
  max-width: 200px;
}

.joueur-card:hover {
  transform: scale(1.1);
}

.svg-joueur-card {
  display: inline-block;
  vertical-align: left;
  line-height: 0;
  width: 80px;
  height: 80px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.svg-joueur-card svg {
  display: block; /* Retire espace blanc possible */
  fill: currentColor; /* Pour que la couleur suive celle du conteneur */
  width: 100%;
  height: 100%;
}

.joueur-card img {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 0px solid white;
}

.joueur-card h3 {
  font-size: 15px;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  margin: 10px 0;
}

.joueur-card .joueur-nom {
  font-size: 20px;
  font-family: Teko;
  font-weight: bold;
  margin: 10px 0;
}

.joueur-card p {
  margin: 5px 0;
  font-size: 16px;
}

.joueur-card a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: white;
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
}

.joueur-card a:hover {
  background: var(--accent-color);
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .joueur-container {
    flex-direction: column;
    align-items: center;
  }
}

.champions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.champion-img {
  width: 60px;
  height: 10px;
  border-radius: 50%;
  object-fit: cover;
}

#format {
  font-family: Arial, sans-serif;
  margin: 2em auto;
  padding: 2em;
  background: var(--secondary-color);
}

h2 {
  text-align: center;
  color: #f8f9fa;
  font-family: Teko;
}

.format-section {
  margin: 1.5em 0;
  padding: 1.5em;
  background: linear-gradient(var(--primary-color) 33, var(--secondary-color));
  border-radius: 8px;
  color: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.format-section h3 {
  color: #ffc107;
}

.custom-list {
  padding-left: 20px;
  list-style-type: none;
}

.custom-list li::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  background: url("fire_icon.png") no-repeat center/contain;
  margin-right: 0.5em;
}

.title-img {
  display: block;
  margin: 0 auto;
  height: auto;
  width: 20%; /* Taille par défaut pour les grands écrans */
}

/* Conteneur principal */
.registration-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
  padding-top: 2em;
}

/* Boîtes d'inscription */
.registration-box {
  background: linear-gradient(var(--primary-color), var(--secondary-color));
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  padding: 2em;
  width: 75%;
  max-width: 1000px;
  text-align: left;
}

label {
  display: block;
  margin: 0.5em 0 0.2em;
  font-weight: bold;
}

.form-control {
  width: 100%;
  padding: 0.5em;
  margin-bottom: 1rem;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  font-size: 1em;
}

/* Champs des joueurs */
.player-input {
  display: flex;
  align-items: center;
  gap: 0.5em;
  /* margin-bottom: 1em; Espacement entre les lignes */
}

.player-label {
  /* flex: 0 0 150px; Largeur fixe pour les labels */
  text-align: right; /* Aligne le texte à droite */
  font-weight: bold; /* Met en gras pour plus de lisibilité */
  margin-bottom: 1rem;
}

.player-input input.form-control {
  /* flex: 1; Les inputs occupent tout l'espace disponible */
  max-width: 400px; /* Limite la largeur maximale des inputs */
}

fieldset {
  border: 2px solid var(--primary-color);
  padding: 1em;
  margin-bottom: 1em;
  border-radius: 5px;
}

legend {
  padding: 0 1em;
  font-weight: bold;
}

/* Bouton d'inscription */
#submit-button {
  background: var(--primary-color);
  color: white;
  padding: 1em 2em;
  font-size: 1.5em;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin: 20px auto;
  display: block;
}

#submit-button:hover {
  background: var(--accent-color);
}

/* Icône Discord */
.discord-link img {
  width: 40px;
  margin-top: 1em;
  transition: transform 0.3s ease;
}

.discord-link img:hover {
  transform: scale(1.2);
}

.infos {
  color: #f8f9fa;
  text-align: center;
  margin: 20px;
}

/* Responsivité */
@media (max-width: 768px) {
  .registration-container {
    flex-direction: column;
    align-items: center;
  }

  .registration-box {
    width: 100%;
  }
}

/* Adaptation mobile */
@media screen and (max-width: 768px) {
  /* Barre de navigation */
  header nav ul {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 5px;
    padding: 0;
  }

  header nav ul li {
    margin: 5px 0;
  }

  header nav ul li a {
    font-size: 16px;
  }

  /* Image */
  .title-img {
    width: 100%; /* Image pleine largeur sur mobile */
  }
}

.epreuves-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: stretch;
}

.epreuves-card {
  text-align: left;
  background: linear-gradient(var(--primary-color), var(--secondary-color));
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  padding: 2em;
  width: 45%;
  max-width: 1000px;
  text-align: left;
  margin: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}
h4 {
  text-align: center;
  font-size: 20px;
  color: var(--accent-color);
}

.logo-tournoi {
  height: 100px;
  transition: all 0.3s ease;
}
.logo-tournoi:hover {
  transform: scale(1.2);
}

.description {
  text-align: center;
  margin: 20px;
}

.bonus-malus {
  margin: 20px;
}

.competition-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: stretch;
  gap: 20px; /* Optionnel : espace égal entre cartes */
}

.competition-card {
  background: linear-gradient(var(--primary-color), var(--secondary-color));
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  padding: 2em;
  width: 45%;
  max-width: 500px; /* Diminue un peu pour mobile */
  margin: 10px auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.comp-details-table {
  width: 100%;
  margin-bottom: 1em;
  border-collapse: collapse;
  color: var(--text-color);
  background: none;
}

.comp-details-table th,
.comp-details-table td {
  padding: 0.4em 1em;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comp-details-table th {
  width: 45%;
  color: var(--accent-color);
  font-weight: bold;
  background: none;
}
.comp-details-table td {
  background: none;
}

.player-input {
  display: grid;
  grid-template-columns: 100px 70px 100px 1fr; /* label1|input1|label2|input2 */
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

/* Responsive mobile */
@media (max-width: 900px) {
  .competition-card {
    width: 95%;
    max-width: 100%;
  }
  .competition-container {
    flex-direction: column;
    align-items: center;
  }
  .player-input {
    display: grid;
    grid-template-columns: 70px 70px 50px 1fr; /* label1|input1|label2|input2 */
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
  }
}

.player-label {
  font-weight: bold;
}

.player-input input {
  height: 2em;
  padding: 3px 7px;
}
