/* ==============================================
   🎰 SoLucky.fr – Style global
   Auteur : Patrick BEQUET
   Dernière mise à jour : 05/10/2025
   ============================================== */

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

/* --- BASE GÉNÉRALE --- */
body {
  background-color: #000;
  color: #f5e6b5;
  font-family: 'Poppins', sans-serif;
  line-height: 1.7em;
  text-align: center;
  overflow-x: hidden;
  overflow-y: visible !important;
}

/* --- TITRES --- */
h1, h2, h3 {
  background: linear-gradient(90deg, #ffd700, #ff8800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.6em;
}

h1 { font-size: 2rem; font-weight: 600; }
h2 { font-size: 1.5rem; font-weight: 500; }
h3 { font-size: 1.2rem; font-weight: 400; }

/* --- LIENS --- */
a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  text-decoration: underline;
  color: #fff;
}

/* --- BOUTONS --- */
button, .btn {
  background-color: #d4af37;
  color: #000;
  border: none;
  border-radius: 30px;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover, .btn:hover {
  background-color: #fff;
  color: #000;
}

/* --- COMPTE À REBOURS --- */
#countdown {
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin: 25px 0;
}

/* --- BLOC D’ENGAGEMENT SOCIÉTAL --- */
.engagement {
  font-size: 1rem;
  max-width: 600px;
  line-height: 1.7em;
  color: #f5e6b5;
  opacity: 0.9;
  margin: 20px auto;
  padding: 0 20px;
  background: linear-gradient(90deg, #f5e6b5, #fff, #f5e6b5);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* --- FOOTER --- */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  padding: 20px 10px;
  margin-top: 60px;
}

/* --- ANIMATION D’APPARITION --- */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .engagement { font-size: 0.9rem; }
}

/* --- ALIGNEMENT SPÉCIFIQUE POUR LES CONTENUS TEXTUELS --- */
p, ul, ol {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

ul, ol {
  list-style-position: outside;
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
}
.fade-in {
  animation: fadeIn 1.5s ease forwards;
  overflow: visible !important;
}
/* --- PAGE GAGNANTS --- */
.winners {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background: radial-gradient(circle at center, rgba(255,215,0,0.1) 0%, transparent 70%);
}

.title-winners {
  background: linear-gradient(90deg, #ffd700, #ff8800);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2rem;
  margin-bottom: 15px;
}

.winners p {
  color: #f5e6b5;
  opacity: 0.9;
  margin-bottom: 35px;
}

.winners-table {
  width: 90%;
  max-width: 700px;
  border-collapse: collapse;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.15);
  backdrop-filter: blur(4px);
}

.winners-table th {
  background: rgba(255, 215, 0, 0.1);
  color: #ffd700;
  text-transform: uppercase;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  letter-spacing: 1px;
}

.winners-table td {
  padding: 12px 15px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.winners-table tr:last-child td {
  border-bottom: none;
}

.winners-table tr:hover {
  background-color: rgba(255, 215, 0, 0.07);
}

@media (max-width: 600px) {
  .winners-table {
    font-size: 0.9rem;
  }
}

/* --- TOTAL DISTRIBUÉ --- */
.total-distribue {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffd700;
  margin-bottom: 40px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 10px;
  padding: 15px 25px;
  display: inline-block;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.15);
  animation: pulseGold 3s infinite ease-in-out;
}

/* Effet léger de pulsation dorée */
@keyframes pulseGold {
  0% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.15); }
  50% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.35); }
  100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.15); }
}

/* --- MONTANT EN VEDETTE --- */
#total-counter {
  font-size: 1.9rem;            /* 💪 Plus grand et impactant */
  font-weight: 700;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6),
               0 0 20px rgba(255, 215, 0, 0.3);
  letter-spacing: 1px;
  display: inline-block;
  background: linear-gradient(90deg, #fff5cc, #ffd700, #ffbb00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerGold 4s linear infinite;
}

/* ✨ effet de lumière glissante sur le texte */
@keyframes shimmerGold {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes pulseNumber {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
#total-counter {
  animation: shimmerGold 4s linear infinite, pulseNumber 2s ease-in-out infinite;
}
/* --- TABLEAU RESPONSIVE --- */
.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto;
}

.table-container::-webkit-scrollbar {
  height: 8px;
}
.table-container::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.4);
  border-radius: 4px;
}
.table-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

/* Table toujours bien espacée même sur mobile */
.winners-table {
  min-width: 500px;
  border-collapse: collapse;
  margin: 0 auto;
}
.winners-table th, .winners-table td {
  padding: 10px 15px;
}
.load-more-btn {
  background: #ffd700;
  color: #000;
  border: none;
  border-radius: 25px;
  padding: 10px 25px;
  margin-top: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: #fff;
  color: #000;
  transform: scale(1.05);
}

