body {
  background-color: #100018; /* Couleur de fond */
  color: #c87cff; /* Couleur du texte */
  font-family: sans-serif;
  text-align: center;
  padding: 30px;
}

input {
  font-size: 1.2em;
  padding: 10px;
  width: 300px;
  background-color: #1a0b26; /* Couleur de fond input */
  color: #c87cff; /* Couleur du texte input*/
  border: 2px solid #9e4eea; /* Couleur de la bordure */
  border-radius: 6px;
  display: block;
  margin: 0 auto ;
}

#helpText {
  margin-top: 10px;
  padding: 8px;
  border: 2px dashed #9e4eea; /* Bordure pointillée */
  background-color: #f7eaff; /* Couleur de fond */
  border-radius: 8px;
  font-style: italic;
}

.help-text {
  display: none;
  margin-top: 10px;
  padding: 8px;
  border: 2px solid #9e4eea; /* Bordure pointillée */
  background-color: #f7eaff; /* Couleur de fond */
  border-radius: 8px;
}

/* Style du conteneur du bouton Grimoire */
#gameUI {
  text-align: center; 
  margin-top: 10px; /* Espace entre l'input et le bouton */
  margin-bottom: 10px;
  display: flex;
  flex-direction: column; 
  align-items: center; 
  gap: 10px; /* Espace entre les boutons */
}

#showHelp {
  padding: 5px 15px;
  font-size: 1em;
  cursor: pointer;
  background-color: transparent;
  color: #c87cff;
  border: 2px solid #9e4eea;
  border-radius: 6px;
  transition: all 0.3s ease;
}

#showHelp:hover {
  background-color: #9e4eea;
  color: #fff;
}

#nextRound {
  text-align: center;
  margin-top: 200px;
  padding: 5px 15px;
  font-size: 1em; 
  cursor: pointer; 
  background-color: transparent;
  color: #c87cff;
  border: 2px solid #9e4eea;
  border-radius: 6px; 
  transition: all 0.3s ease;
}

#nextRound:hover {
  background-color: #9e4eea;
  color: #fff;
}

.glow-underline {
  display: inline-block;
  position: relative;
  text-shadow: 0 0 5px #c87cff, 0 0 10px #9e4eea;
  color: #c87cff;
}

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

/* Boutons unifiés */
.menu-button,
.os-button,
.jeux-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 10px;
  padding: 15px 25px;
  width: 200px;
  height: 65px;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #c87cff;
  border: 2px solid #9e4eea;
  background: transparent;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.menu-button:hover,
.os-button:hover,
.jeux-button:hover {
  background-color: #9e4eea;
  color: #fff;
}

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

/* Mise en page des blocs */
#Modes {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 20px;
  gap: 10px; 
  margin-bottom: 50px;
}

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

#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;
}

#Jeux {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
}

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

/* class qui me permet de mettre 2 blocks côte à côte */
.menu-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  flex: 1;
  margin: 30px 0;
}

#Modes { justify-self: start; }
#OS { justify-self: end; }

.menu-image {
  display: flex;
  justify-content: center;
}

.menu-image img {
  max-width: 2500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(158, 78, 234, 0.6);
}

/* Bloc texte */
.text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 10px;
  gap: 10px; 
  margin-bottom: 50px;
  border: 2px solid #9e4eea;
  padding: 15px;
  border-radius: 8px;
  background-color: #1a0b26;
}

.text-block p {
  width: 100%;
  text-align: center;
  margin: 0;
  text-decoration: underline;
  font-size: 1.5rem;
}

.text-block ul {
  list-style-position: inside;
  padding-left: 0;
  margin: 0;
}

.text-block li {
  margin-bottom: 10px;
  text-align: left;
}

.underline p {
  text-decoration: underline;
}

/* Conteneur général */
#playing {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  width: 800px;
  box-sizing: border-box;
  align-items: flex-start;
}

/* Bloc violet */
.playing-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border: 2px solid #9e4eea;
  border-radius: 8px;
  background-color: #1a0b26;
  padding: 20px;
  width: 100%;
  min-height: 150px;
  margin-bottom: 20px;
}

/* Titres */
.playing-text p {
  margin: 0;
  text-align: left;
  text-decoration: underline;
  font-size: 2rem;
}

/* Texte descriptif */
.playing-text p1 {
  margin: 0;
  font-size: 1rem;
  text-align: left;
}

/* Conteneur des mentions légales */
.legal-container {
  max-width: 800px;
  margin: 40px auto;
  text-align: justify; 
  line-height: 1.7;
}

.legal-container h2 {
  text-align: left; 
  margin-top: 25px;
  color: #e3aaff; /* léger contraste */
}

.legal-container p {
  margin-bottom: 12px;
}
