/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body, html {
  background-color: #ffffff; /* Couleur blanche globale */
  margin: 0;
  padding: 0;
}


/* Header */
.body-jackpot{
  background-color: #32194d;
}
.en-jackpot {
  /*position: relative;*/
  height: 70vh;
  background: url('image/picture/jackpot1.jpg') no-repeat center center/cover;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 10px; /* Ajout d'un léger arrondi (facultatif) */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ajoutez un ombrage pour plus d'esthétique */
  width: 90%; /* Réduisez la largeur à 80% de la largeur de l'écran */
  max-width: 1200px; /* Limitez la largeur maximale */
  margin: 0 auto; /* Centrez horizontalement */
  
}

.en-jackpot::before {
  content: ""; /* Pseudo-élément pour l'overlay */
  position: absolute; /* Se place par-dessus le background */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background-color: rgba(36, 36, 147, 0.5); /* Bleu transparent (RGBA) */
  z-index: -1; /* Envoie l'overlay derrière le contenu */
}


/*-----------------------------------------------------------*/
.hero-jackpot h1 {
  font-size: 4rem; /* Taille initiale */
  color: #0743e7; /* Couleur de base du texte */
  font-weight: bold;
  text-align: center; /* Centre le texte horizontalement */
  transition: transform 0.3s ease, color 0.3s ease; /* Ajoute une transition douce */
}

.hero-jackpot h1 .titre-en-couleur {
  color: #ffc107; /* Couleur différente pour le mot "d'or" */
  transition: transform 0.3s ease, color 0.3s ease; /* Transition douce */
}

/* Effet au survol */
.hero-jackpot h1:hover {
  transform: scale(1.2); /* Agrandit le texte au survol */
  color: #0056b3; /* Change la couleur du texte entier */
}

.hero-jackpot h1:hover .titre-en-couleur {
  color: #ff9800; /* Change également la couleur du mot en surbrillance */
}

/*====Section 2======================================================================================*/


/* Section Grand Gagnants */
.grand-winners {
  padding: 2rem;
  
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #2b094b; /* Nouvelle couleur de fond */
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ajout d'ombrage */
}

.title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
}

.title img {
  width: 40px;
  height: 40px;
}

.title h2 {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
}

/* Liste des gagnants */
.winners-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.winner {
  display: flex;
  align-items: center;
  background-color: #3a0d65;
  border-radius: 8px;
  padding: 1rem;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  width: calc(100% + 80px); /* Augmente la longueur de 20px */
  margin-left: -10px; /* Recentre */
}

.winner img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
}

.winner-info h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.winner-info p {
  font-size: 0.9rem;
  color: #ffc107;
  font-weight: bold;
}

/* Cercle pour la position */
.position-circle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #002d62;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .winner {
    flex-direction: column;
    text-align: center;
    width: 100%; /* Adapte à la largeur du container */
    padding: 0.8rem; /* Réduit légèrement le padding */
    margin-left: 0; /* Enlève l'offset */
  }

  .winner img {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .position-circle {
    position: static;
    transform: none;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .winner {
    padding: 0.5rem; /* Réduit encore le padding */
    font-size: 0.9rem; /* Diminue légèrement la taille de texte pour plus de lisibilité */
  }
}

/*====Section 3======================================================================================*/

/* Section Styles */
.city-games-section {
  /*background-color: #2e004f; /* Couleur de fond violet foncé */
  padding: 4rem 2rem;
  color: #fff;
}

.city-games-section .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-direction: row-reverse; /* Inverse la position (texte à gauche, image à droite) */
}

.text-content {
  flex: 1;
  text-align: left;
}

.text-content h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
}

.text-content h1::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 0;
  width: 10px;
  height: 100%;
  background: linear-gradient(180deg, #ff0099, #ff5700);
  border-radius: 5px;
}

.text-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #e4e4e4;
  margin-bottom: 2rem;
}

.gallery-btn {
  background: linear-gradient(180deg, #ff0099, #ff5700);
  color: #fff;
  padding: 0.8rem 2rem; /* Augmenté pour plus d'espace */
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  min-width: 150px; /* Longueur minimale pour éviter le débordement */
  text-align: center; /* Centrage du texte */
}

.gallery-btn:hover {
  transform: scale(1.05);
}

.image-content {
  flex: 1;
}

.image-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .city-games-section .container {
    flex-direction: column;
  }

  .text-content {
    text-align: center;
  }

  .text-content h1::before {
    display: none; /* Retire la barre verticale sur mobile */
  }

  .image-content {
    margin-top: 2rem;
  }
}

/*====Section 4======================================================================================*/

/* Section */
.games-section {
  text-align: center;
  padding: 2rem;
  background-color: #24053c; /* Couleur de fond */
  color: #fff;
}

.games-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.icon-square {
  display: inline-block;
  background: linear-gradient(to bottom, #ff0099, #ff5700);
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-right: 8px;
}

.games-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 800px;
  overflow: hidden;
  position: relative; /* Pour contenir l'animation */
  transition: transform 0.5s ease-in-out; /* Animation fluide */
}

.games-grid.animate-left {
  transform: translateX(-10%);
}

.games-grid.animate-right {
  transform: translateX(10%);
}

.game-item {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease; /* Animation des images */
}

.game-item img {
  width: 100%;
  height: auto;
  display: block;
}

.game-item:hover {
  transform: scale(1.05);
}

/* Navigation buttons */
.nav-btn {
  background: linear-gradient(to bottom, #ff0099, #ff5700);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.nav-btn:hover {
  transform: scale(1.1);
  transition: all 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .nav-btn {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: 1fr;
  }

  .games-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-btn {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .games-section h2 {
    font-size: 1.5rem;
  }

  .icon-square {
    width: 8px;
    height: 8px;
  }

  .game-item img {
    border-radius: 5px;
  }
}

/*====Section 5======================================================================================*/

/* Jackpot Section */
.jackpot-section {
  text-align: center;
  padding: 2rem;
  background-color: #24053c;
  color: #fff;
}

.jackpot-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.icon-square {
  display: inline-block;
  background: linear-gradient(to bottom, #ff0099, #ff5700);
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-right: 8px;
}

.jackpot-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}

.winner-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  
}

.winner-card {
  display: flex;
  align-items: center;
  background-color: #3a0d65;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  width: 300px; /* Augmentez la largeur ici */
  
  
}

.winner-cards .left {
  margin-left: 50%;
}

.winner-cards .right {
  margin-left: -50%;
}


.winner-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
}

.winner-info {
  text-align: left;
}

.winner-name {
  font-size: 1rem;
  font-weight: bold;
}

.winner-status {
  color: #ff0099;
  font-size: 0.9rem;
  font-weight: bold;
}

.winner-amount {
  font-size: 1.1rem;
}

.game-status {
  font-size: 0.9rem;
  color: #fff;
}

.jackpot-image img {
  max-width: 300px;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .jackpot-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* Espacement réduit pour petits écrans */
  }

  .winner-cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .winner-card {
    width: 45%;
  }

  .jackpot-image img {
    max-width: 250px;
  }
}

@media (max-width: 768px) {
  .winner-card {
    width: 90%;
  }
}
