body {
  background-color: #2d2d2d; /* Fond sombre */
  color: #ffffff; /* Texte clair */
  font-family: sans-serif;
  text-align: center;
  padding: 30px;
}

/* Conteneur des boutons */
#gameUI {
  text-align: center; 
  margin-top: 10px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column; 
  align-items: center; 
  gap: 10px;
}

.glow-underline {
  display: inline-block;
  position: relative;
  text-shadow: 0 0 8px #F4C300; 
  color: #F4C300; /* Texte jaune */
}

.glow-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: #F4C300;
  box-shadow: 0 0 8px #F4C300;
}

.underline {
  display: inline-block;
  position: relative;
  color: #F4C300; /* Texte jaune */
}

.underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: #F4C300;
}

#Modes {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  gap: 10px; 
  margin-bottom: 50px;
}

#Settings {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 20px auto;
  width: fit-content;
}

.menu-button {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  text-decoration: none;
  color: #F4C300; /* Texte bouton */
  border: 2px solid #F4C300; /* Bordure jaune */
  background: transparent;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.menu-button:hover {
  background-color: #F4C300; /* Survol : fond jaune */
  color: #2d2d2d; /* Texte foncé */
}

.disabled {
  opacity: 0.4;
  border-style: dashed;
  cursor: not-allowed;
}

#cours ul, #rules ul {
  text-align: left;
  max-width: 600px;
  margin: auto;
  padding-left: 20px;
  line-height: 1.8;
}

#cours, #rules {
  margin-top: 30px;
}

#cours li, #rules li {
  margin-bottom: 10px;
}

.text-block {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px 30px;
  background: #f8f8f8; /* Fond clair */
  border: 1px solid #F4C300; /* Bordure fine jaune */
  border-radius: 8px; /* Coins arrondis */
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-align: left;
  line-height: 1.6;
  color: #2d2d2d; /* Texte anthracite */
}

.text-block p {
  text-align: justify;
  text-justify: inter-word; /* améliore la répartition des espaces */
}

.text-block.red{
  border: 2px solid #f50000; /* Bordure  */;
  border-radius: 8px;
  background: #f8f8f8;
}

.text-block h3 {
  background: #f8f8f8; /* Fond clair */
  text-align: center;
  line-height: 1.6;
}

.text-block h2 {
  margin-bottom: 15px;
  color: #F4C300; /* Titre  */
}

.warn-glow-underline {
  display: inline-block;
  position: relative;
  text-shadow: 0 0 8px #f50000; /* Ombres */
  color: #f50000; /* Texte */
}

.warn-glow-underline::after {
  content: '';
  align-items: center;
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: #f50000;
  box-shadow: 0 0 8px #f50000;
}

/* Fond sombre et flou derrière le modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 45, 45, 0.8);
  backdrop-filter: blur(6px); /* flou */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Contenu du pop-up */
.modal-content {
  background: #1f1f1f;
  color: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  animation: fadeIn 0.4s ease;
}

/* Animation douce */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
