/* ——— Style global et navigation ——— */

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: #191c22 url('../img/background.png') no-repeat center center fixed;
  background-size: cover;
  color: #f2f6ff;
}

main {
  padding: 1.5rem;
  text-align: center;
}

/* ——— Header de page ——— */
header {
  background: rgba(0, 0, 0, 0.85);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ——— Logo + titre principal ——— */
.logo-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo {
  width: 42px;
  height: auto;
}

/* ——— Effet néon global pour tous les titres ——— */
h1, h2, h3, h4,
.site-title,
.section-title {
  font-weight: 900;
  color: #45c7ff; /* couleur vive */
  text-shadow:
    0 0 12px #45c7ff,
    0 0 18px #45c7ff,
    0 0 30px #45c7ff;
  animation: neon-slide 2.5s ease-out forwards;
}

/* ——— Animation néon ——— */
@keyframes neon-slide {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  50% {
    opacity: 0.6;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    text-shadow:
      0 0 18px #45c7ff,
      0 0 30px #45c7ff;
  }
}

/* ——— Cache le menu par défaut ——— */
.hidden {
  display: none;
}

/* Menu déroulant positionné à droite sous le hamburger */
.mobile-menu {
  position: absolute;
  top: 60px; /* ajuste selon la hauteur de ton header */
  right: 1rem;
  width: 200px;
  background-color: #111;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  margin-bottom: 1rem;
}

.mobile-menu a {
  color: #45c7ff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  display: block;
  padding: 0.4rem 0;
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: #a4e4ff;
}

/* Bouton hamburger */
.hamburger {
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #45c7ff;
  cursor: pointer;
  margin-left: auto;
  padding: 0.5rem 1rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);

}

/* ——— Titres et descriptions uniformisés ——— */

h2.highlight {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #45c7ff;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 0 12px #45c7ff88;
}

.stat-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
  font-size: 1rem;
  color: #f2f6ff;
}
section.fade-up,
section.ecart-section {
  padding: 2rem 1rem;
  box-sizing: border-box;
}

section.fade-up > h2,
section.fade-up > p,
section.ecart-section > h2,
section.ecart-section > p {
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
}
.pair-grid,
.triplet-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0;
}


/* ——— Préchargement magique (Zoltar) ——— */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000; /* ou rgba(0,0,0,0.8) */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease;
  padding: 1rem;
  box-sizing: border-box;
}

#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

#preloader img {
  width: 80%;
  max-width: 400px;
  height: auto;
}

/* ——— Grille et cartes de loterie ——— */
.lottery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  padding: 2rem 1rem;
}

.lottery-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 1.2rem;
  margin: 1rem auto;
  max-width: 90%;
  text-align: center;
}

.lottery-card img {
  width: 64px;
  margin: 0 auto 0.6rem;
  filter: drop-shadow(0 4px 8px #0006);
  animation: levitate 3.2s ease-in-out infinite alternate;
}

.lottery-card span {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f2f6ff;
  text-shadow: 0 0 6px #45c7ff33;
}

.lottery-card.tap-feedback {
  transform: scale(0.97);
  box-shadow: 0 0 18px #62fbe255;
}

@keyframes levitate {
  0%   { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

/* ——— Responsive ——— */
@media (max-width: 480px) {
  .lottery-card {
    padding: 0.7rem;
  }

  .lottery-card img {
    width: 48px;
    margin-bottom: 0.4rem;
  }

  .lottery-card span {
    font-size: 0.9rem;
  }

  .btn-glow {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
  
}
/* ——— Boules de feu : le GIF est la boule ——— */

.fireball-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-bottom: 2rem;
}

.fireball-wrapper {
  position: relative;
  width: 90px;
  margin: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fireball-gif {
  width: 120px;
  height: 120px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  animation: flicker 1.2s ease-in-out infinite alternate;
  filter: brightness(1.05) saturate(1.1);
}

.fireball-number {
  position: absolute;
  top: 51%;
  left: 50%;
  transform: translate(-50%, -35%);
  font-weight: bold;
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 0 0 6px #000, 0 0 3px #f80;
  pointer-events: none;
  z-index: 2;
}

.fireball-count {
  margin-top: 0.5rem;
  font-size: 1.05rem;
  color: #f0f0f0;
  opacity: 0.9;
  text-align: center;
  line-height: 1.2;
}

@keyframes flicker {
  0%   { filter: brightness(1) saturate(1); }
  100% { filter: brightness(1.2) saturate(1.4); }
}
/* ——— Boules givrées pour les numéros froids ——— */

.iceball-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-bottom: 2rem;
}

.iceball-wrapper {
  position: relative;
  width: 90px;
  margin: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.iceball-gif {
  width: 60px;
  height: 60px;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  animation: shimmer 1.6s ease-in-out infinite alternate;
  filter: brightness(1.1) saturate(1.2);
}
.iceball-number {
  position: absolute;
  top: 33%;
  left: 50%;
  transform: translate(-50%, -45%); /* Ajuste si nécessaire */
  font-weight: bold;
  font-size: 1.6rem; /* Plus gros qu’avant */
  color: #eaf9ff;
  text-shadow:
    0 0 2px #000,
    0 0 4px #002233,
    0 0 6px #003355;
  pointer-events: none;
  z-index: 2;
  line-height: 1;
}
/* ——— Paires fréquentes ——— */
.pair-card {
  position: relative;
  display: inline-block;
  width: 150px;
  margin: 10px;
}

.pair-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.overlay span {
  position: absolute;
  font-size: 20px;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 2px black;
}
.overlay span.rouge {
  font-size: 14px;
  font-weight: bold;
  color: black;
}
/* PAIR 1 */
.pair-1 .bleu.gauche { top: 21%; left: 26%; }
.pair-1 .bleu.droite { top: 61%; left: 71%; }
.pair-1 .rouge { top: 47%; left: 50%; transform: translateX(-50%); color: black; }

/* PAIR 2 */
.pair-2 .bleu.gauche { top: 67%; left: 20%; }
.pair-2 .bleu.droite { top: 50%; left: 68%; }
.pair-2 .rouge { top: 20%; left: 32%; transform: translateX(-50%); color: black; }

/* PAIR 3 */
.pair-3 .bleu.gauche { top: 27%; left: 18%; }
.pair-3 .bleu.droite { top: 48%; left: 65%; }
.pair-3 .rouge { top: 55%; left: 47%; transform: translateX(-50%); color: black; }

/* PAIR 4 */
.pair-4 .bleu.gauche { top: 56%; left: 24%; }
.pair-4 .bleu.droite { top: 56%; left: 64%; }
.pair-4 .rouge { top: 31%; left: 50%; transform: translateX(-50%); color: black; }

/* PAIR 5 */
.pair-5 .bleu.gauche { top: 42%; left: 17%; }
.pair-5 .bleu.droite { top: 42%; left: 70%; }
.pair-5 .rouge { top: 44%; left: 50%; transform: translateX(-50%); color: black; }

/* PAIR 6 */
.pair-6 .bleu.gauche { top: 28%; left: 25%; }
.pair-6 .bleu.droite { top: 28%; left: 66%; }
.pair-6 .rouge { top: 55%; left: 51%; transform: translateX(-50%); color: black; }

/* PAIR 7 */
.pair-7 .bleu.gauche { top: 65%; left: 17%; }
.pair-7 .bleu.droite { top: 51%; left: 69%; }
.pair-7 .rouge { top: 18%; left: 44%; transform: translateX(-50%); color: black; }

/* PAIR 8 */
.pair-8 .bleu.gauche { top: 71%; left: 18%; }
.pair-8 .bleu.droite { top: 57%; left: 68%; }
.pair-8 .rouge { top: 16%; left: 33%; transform: translateX(-50%); color: black; }

/* PAIR 9 */
.pair-9 .bleu.gauche { top: 36%; left: 21%; }
.pair-9 .bleu.droite { top: 35%; left: 67%; }
.pair-9 .rouge { top: 52%; left: 50%; transform: translateX(-50%); color: black; }

/* PAIR 10 */
.pair-10 .bleu.gauche { top: 53%; left: 25%; }
.pair-10 .bleu.droite { top: 28%; left: 66%; }
.pair-10 .rouge { top: 43%; left: 51%; transform: translateX(-50%); color: black; }

/* ——— Triplets fréquents ——— */
.triplet-card {
  position: relative;
  display: inline-block;
  width: 150px;
  margin: 10px;
}

.triplet-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.overlay span {
  position: absolute;
  font-size: 20px;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 2px black;
}
.overlay span.rouge {
  font-size: 14px;
  font-weight: bold;
  color: black;
}

/* TRIPLET 1 */
.triplet-1 .bleu.gauche { top: 45%; left: 17%; }
.triplet-1 .bleu.centre { top: 76%; left: 69%; transform: translate(-50%, -50%); }
.triplet-1 .bleu.droite { top: 14%; left: 59%; }
.triplet-1 .rouge { top: 48%; left: 49%; transform: translateX(-50%); }

/* TRIPLET 2 */
.triplet-2 .bleu.gauche { top: 43%; left: 15%; }
.triplet-2 .bleu.centre { top: 70%; left: 43%; }
.triplet-2 .bleu.droite { top: 50%; left: 71%; }
.triplet-2 .rouge { top: 14%; left: 50%; transform: translateX(-50%); }

/* TRIPLET 3 */
.triplet-3 .bleu.gauche { top: 46%; left: 21%; }
.triplet-3 .bleu.centre { top: 64%; left: 43%; }
.triplet-3 .bleu.droite { top: 46%; left: 70%; }
.triplet-3 .rouge { top: 17%; left: 50%; transform: translateX(-50%); }

/* TRIPLET 4 */
.triplet-4 .bleu.gauche { top: 72%; left: 45%; }
.triplet-4 .bleu.centre { top: 12%; left: 46%; }
.triplet-4 .bleu.droite { top: 60%; left: 69%; }
.triplet-4 .rouge { top: 56%; left: 25%; transform: translateX(-50%); }

/* TRIPLET 5 */
.triplet-5 .bleu.gauche { top: 22%; left: 13%; }
.triplet-5 .bleu.centre { top: 20%; left: 66%; }
.triplet-5 .bleu.droite { top: 63%; left: 73%; }
.triplet-5 .rouge { top: 39%; left: 48%; transform: translateX(-50%); }
/* TRIPLET 6 */
.triplet-6 .bleu.gauche { top: 64%; left: 16%; }
.triplet-6 .bleu.centre { top: 13%; left: 43%; }
.triplet-6 .bleu.droite { top: 64%; left: 70%; }
.triplet-6 .rouge { top: 48%; left: 50%; transform: translateX(-50%); }
/* TRIPLET 7 */
.triplet-7 .bleu.gauche { top: 57%; left: 19%; }
.triplet-7 .bleu.centre { top: 73%; left: 43%; }
.triplet-7 .bleu.droite { top: 11%; left: 43%; }
.triplet-7 .rouge { top: 63%; left: 71%; transform: translateX(-50%); }
/* TRIPLET 8 */
.triplet-8 .bleu.gauche { top: 23%; left: 19%; }
.triplet-8 .bleu.centre { top: 35%; left: 76%; }
.triplet-8 .bleu.droite { top: 62%; left: 59%; }
.triplet-8 .rouge { top: 48%; left: 46%; transform: translateX(-50%); }
/* TRIPLET 9 */
.triplet-9 .bleu.gauche { top: 23%; left: 19%; }
.triplet-9 .bleu.centre { top: 55%; left: 69%; }
.triplet-9 .bleu.droite { top: 63%; left: 36%; }
.triplet-9 .rouge { top: 16%; left: 69%; transform: translateX(-50%); }
/* TRIPLET 10 */
.triplet-10 .bleu.gauche { top: 15%; left: 23%; }
.triplet-10 .bleu.centre { top: 41%; left: 70%; }
.triplet-10 .bleu.droite { top: 74%; left: 53%; }
.triplet-10 .rouge { top: 57%; left: 36%; transform: translateX(-50%); }

/* Ecart de sortie max */
.ecart-section {
  background: transparent;
  color: #e0e0ff;
  padding: 1.5rem 1rem;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

.stat-description {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #aaa;
}

/* GRILLE RESPONSIVE */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* CARTES TRANSPARENTES */
.ecart-card {
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 0.8rem;
  width: 100%;
  max-width: 120px;
  text-align: center;
  color: #e0e0ff;
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
}

/* SUPPRESSION DU HOVER POUR MOBILE */
.ecart-card:hover {
  transform: none;
  box-shadow: none;
}

/* HALO TOURNANT (SUBTIL) */
.ecart-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.02) 0%, transparent 70%);
  animation: rotateGlow 14s linear infinite;
  z-index: 0;
}

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

/* SPHÈRES : STYLE MIROIR GALACTIQUE AVEC HIGHLIGHT */
.ecart-card .number {
  background: linear-gradient(135deg, #8eeaf9, #60a5fa, #a78bfa);
  color: #ffffff;
  font-weight: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin: 0 auto 0.5rem;
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.2),
    0 0 14px rgba(138, 180, 255, 0.3),
    inset 0 0 6px rgba(255, 255, 255, 0.1);
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.4),
    -1px -1px 2px rgba(255, 255, 255, 0.2);
  z-index: 1;
}
/* TEXTE SOUS LA SPHÈRE */
.ecart-card p {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0;
  z-index: 1;
  position: relative;
}

/* RESPONSIVE MOBILE */
@media (max-width: 600px) {
  .ecart-card {
    max-width: 100px;
    padding: 0.6rem;
  }

  .ecart-card .number {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .ecart-card p {
    font-size: 0.85rem;
  }
}
/* SECTION PAIRS / IMPAIRS */
.ecart-section {
  background: transparent;
  padding: 1.5rem 1rem;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.ecart-section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: #c9b6ff;
  text-shadow: 0 0 6px rgba(201, 182, 255, 0.3);
}

.stat-description {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #bbb;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.ecart-card {
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 0.8rem;
  width: 100%;
  max-width: 120px;
  text-align: center;
  position: relative;
}

/* LIGNE DE SPHÈRES */
.combo-sequence.split {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.5rem;
}

.pair-group,
.impair-group {
  display: flex;
  gap: 3px;
}

/* SPHÈRES ANIMÉES */
.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  position: relative;
  animation: pulseOrbe 3s ease-in-out infinite;
}

.dot::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  z-index: 1;
}

.pair {
  background: radial-gradient(circle at 30% 30%, #8eeaf9, #60a5fa);
}

.impair {
  background: radial-gradient(circle at 30% 30%, #a78bfa, #7c3aed);
}

/* TEXTE SOUS LA COMBINAISON */
.ecart-card p {
  font-size: 0.9rem;
  color: #e0e0ff;
  margin: 0;
  z-index: 1;
  position: relative;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.15),
    0 0 6px rgba(138, 180, 255, 0.2);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ANIMATION DE PULSATION */
@keyframes pulseOrbe {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 6px rgba(255, 255, 255, 0.15),
      0 0 10px rgba(255, 255, 255, 0.1),
      inset 0 0 4px rgba(255, 255, 255, 0.1);
  }
  50% {
    transform: scale(1.15);
    box-shadow:
      0 0 10px rgba(255, 255, 255, 0.25),
      0 0 16px rgba(255, 255, 255, 0.2),
      inset 0 0 6px rgba(255, 255, 255, 0.15);
  }
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

.accordion-section.open .accordion-content {
  max-height: 1000px;
  opacity: 1;
}

.accordion-toggle {
  cursor: pointer;
  position: relative;
}

.accordion-toggle::after {
  content: "▼";
  position: absolute;
  right: 1rem;
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.accordion-section.open .accordion-toggle::after {
  transform: rotate(180deg);
}
.lottery-logo {
  display: block;
  margin: 1rem auto;
  width: 20vw;
  max-width: 160px;
  min-width: 64px;
  height: auto;
  transition: width 0.3s ease;
}
/* Affichage de l'histoire des tirages */
.draw .number {
  color: #000 !important;
  background: #fff;
  font-weight: bold;
  font-size: 1rem;
  display: inline-block;
  width: 2.2rem;
  height: 2.2rem;
  line-height: 2.2rem;
  border-radius: 50%;
  margin: 0.2rem;
  text-align: center;
  vertical-align: middle;
}

.draw .number.bonus {
  background: #e74c3c !important;
  color: #fff !important;
}
.menu img {
  width: 22vw;
  max-width: 100px;
  min-width: 60px;
  height: auto;
  object-fit: contain;
  opacity: 0.7;
  transition: transform 0.2s, opacity 0.2s;
  cursor: pointer;
}

.menu img.active,
.menu img:hover {
  opacity: 1;
  transform: scale(1.05);
}

