



.hero-billard {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 32px 28px;
  margin-bottom: 30px;
  
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(126, 242, 196, 0.18) 0%, rgba(126, 242, 196, 0) 62%),
    linear-gradient(165deg, #12503f 0%, #0b2f26 46%, #060f12 100%);
  border: 1px solid rgba(126, 242, 196, 0.36);
}


.hero-billard::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(126, 242, 196, 0) 0%, rgba(126, 242, 196, 0.85) 50%, rgba(126, 242, 196, 0) 100%);
  pointer-events: none;
}

.hero-billard > * { position: relative; z-index: 1; }


.hero-drap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    repeating-linear-gradient(52deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-52deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 7px);
  mask-image: radial-gradient(120% 100% at 50% 20%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 20%, #000 0%, transparent 80%);
}



.hero-billes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-bille {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  opacity: 0.45;
}


.hero-bille-1 {
  top: 10%;
  left: 3%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.55) 0%, rgba(226, 59, 59, 0.9) 42%, rgba(120, 20, 20, 0.75) 100%);
}
.hero-bille-2 {
  bottom: 10%;
  right: 4%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.55) 0%, rgba(242, 197, 61, 0.9) 42%, rgba(140, 108, 15, 0.75) 100%);
}

@media (max-width: 760px) {
  .hero-billes { display: none; }
  .hero-billard { padding: 24px 18px; }
}




a.mode-card { text-decoration: none; color: inherit; display: block; }
a.mode-card:hover { text-decoration: none; }

.modes-header {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: 26px 0 14px;
}




.deux-jeux {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 22px 0 8px;
}

.jeu-carte {
  border: 1px solid rgba(126, 242, 196, 0.28);
  border-radius: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.04);
}

.jeu-carte h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  color: var(--color-light);
}

.jeu-carte .jeu-billes {
  display: flex;
  gap: 6px;
  margin: 10px 0 12px;
}

.jeu-carte .pastille {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: inset 2px -2px 4px rgba(0, 0, 0, 0.45), inset -3px 3px 5px rgba(255, 255, 255, 0.35);
}

.pastille-rouge  { background: #e23b3b; }
.pastille-jaune  { background: #f2c53d; }
.pastille-noire  { background: #1b1b22; }
.pastille-bleue  { background: #2f6fd0; }
.pastille-violet { background: #8e5bd0; }
.pastille-rayee  {
  background: linear-gradient(#f4f4ee 0 28%, #e8853a 28% 72%, #f4f4ee 72% 100%);
}

.jeu-carte ul { margin: 0; padding-left: 18px; line-height: 1.65; }
.jeu-carte li { margin-bottom: 4px; }



.faq-section { margin: 34px 0 10px; }

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: none;
  border: 0;
  color: #eef6ff;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  
  min-height: 54px;
}

.faq-question:hover { background: color-mix(in srgb, var(--color-mid) 12%, transparent); }
.faq-question:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }


.faq-question::after {
  content: '';
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--color-light);
  border-bottom: 2px solid var(--color-light);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"]::after { transform: rotate(-135deg) translate(-2px, -2px); }

.faq-answer { padding: 0 18px 16px; color: #93a9c2; line-height: 1.7; }
.faq-answer[hidden] { display: none; }
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }



.lien-classement-accueil {
  display: block;
  margin: 18px auto 6px;
  padding: 13px 18px;
  max-width: 460px;
  text-align: center;
  border: 1px solid var(--color-light);
  border-radius: 8px;
  color: var(--color-light);
  font-weight: 700;
  text-decoration: none;
}
.lien-classement-accueil:hover { background: color-mix(in srgb, var(--color-mid) 16%, transparent); }



.tableau-defilant { overflow-x: auto; margin: 14px 0 6px; }

.tableau-comparatif { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.92rem; }
.tableau-comparatif th, .tableau-comparatif td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.tableau-comparatif thead th { color: var(--color-light); }
.tableau-comparatif tbody th { color: #eef6ff; white-space: nowrap; }

.regles-jeu { margin-top: 26px; }
.regles-jeu details { border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; margin-bottom: 8px; background: rgba(255, 255, 255, 0.04); }
.regles-jeu summary { cursor: pointer; padding: 13px 16px; font-weight: 700; color: #eef6ff; }
.regles-jeu ul { margin: 0; padding: 0 18px 14px 34px; line-height: 1.65; }
.regles-jeu li { margin-bottom: 5px; }
