
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Orbitron', sans-serif;
}

body {
  background: linear-gradient(to bottom, #0f172a, #0a0f1c);
  color: #ffffff;
  overflow-x: hidden;
}

/* ===== SECTIONS ===== */
section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 20px;
  transition: opacity 0.8s ease;
}

/* ===== LOGO â‚¿ CLIGNOTANT ===== */
.logo-flash {
  font-size: 120px;
  color: #3b82f6;
  animation: flash 1.5s infinite alternate;
  text-shadow: 0 0 25px #3b82f6;
}

@keyframes flash {
  0% { opacity: 1; text-shadow: 0 0 25px #3b82f6; }
  100% { opacity: 0.3; text-shadow: 0 0 5px #3b82f6; }
}

/* ===== FORMULAIRE PSEUDO ===== */
#pseudo-input {
  padding: 12px 20px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  margin-top: 20px;
  width: 250px;
  text-align: center;
}

#start-btn {
  margin-top: 10px;
}

/* ===== BOUTONS ===== */
button {
  background-color: #2563eb;
  color: white;
  border: none;
  padding: 12px 28px;
  font-size: 18px;
  border-radius: 10px;
  cursor: pointer;
  margin: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #3b82f6;
}

/* ===== TOKEN DISPLAY ===== */
#token-counter {
  font-size: 20px;
  margin-top: 15px;
  color: #60a5fa;
}

/* ===== MATCHMAKING ===== */
.matchmaking-text {
  font-size: 22px;
  margin-top: 20px;
}

.radar-animation {
  margin-top: 30px;
  width: 100px;
  height: 100px;
  border: 3px solid #3b82f6;
  border-radius: 50%;
  animation: radarScan 1.8s linear infinite;
  box-shadow: 0 0 25px #3b82f6;
}

@keyframes radarScan {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== ZONES DE JEU ===== */
.player-zone {
  background: rgba(59, 130, 246, 0.05);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 600px;
  margin: 10px auto;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease-in-out;
}

.player-zone h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.player-zone p {
  font-size: 18px;
  color: #60a5fa;
}

/* ===== CARTES ===== */
.cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.card, .card-slot {
  width: 100px;
  height: 140px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px dashed #3b82f6;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.05);
}

.card.back {
  background-image: linear-gradient(135deg, #1e293b, #334155);
  background-size: cover;
}

/* ===== CENTRE DE LA TABLE ===== */
.table-center {
  margin: 30px auto;
  text-align: center;
}

.community-cards {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.pot-display {
  font-size: 20px;
  margin-bottom: 15px;
  color: #38bdf8;
}

/* ===== ACTION ZONE ===== */
.action-zone {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ===== Ã‰CRAN DE FIN ===== */
#endgame {
  text-align: center;
}

#game-result-message {
  font-size: 26px;
  font-weight: bold;
  color: #3b82f6;
  margin-bottom: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .card, .card-slot {
    width: 80px;
    height: 110px;
  }

  .player-zone {
    padding: 15px;
  }

  button {
    padding: 10px 20px;
    font-size: 16px;
  }
}