/* Container global */
.escape-game-section {
  background: #f9f5f7;
  padding: 30px 25px;
  border-radius: 24px;
  max-width: 720px;
  margin: 50px auto 80px;
  box-shadow: 0 12px 30px rgba(160, 130, 210, 0.25);
  font-family: 'Montserrat', sans-serif;
  color: #4b3a57;
}

/* Titre principal */
.escape-title {
  font-family: 'Abril Fatface', cursive;
  font-size: 2.8rem;
  text-align: center;
  color: #7c5dcf;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(124, 93, 207, 0.4);
}

/* Chaque énigme */
.enigme {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 15px rgba(124, 93, 207, 0.15);
  padding: 24px 20px;
  margin-bottom: 30px;
  transition: box-shadow 0.3s ease;
}

.enigme:hover {
  box-shadow: 0 12px 25px rgba(124, 93, 207, 0.3);
}

.enigme h3 {
  margin-top: 0;
  font-weight: 700;
  color: #7c5dcf;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.enigme p {
  font-size: 1.1rem;
  line-height: 1.4;
  margin-bottom: 18px;
  color: #6d5c8a;
}

/* Input stylé */
.enigme input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1.1rem;
  border: 2px solid #c7b9d9;
  border-radius: 12px;
  outline-offset: 3px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  color: #4b3a57;
}

.enigme input:focus {
  border-color: #7c5dcf;
  box-shadow: 0 0 8px rgba(124, 93, 207, 0.5);
}

/* Bouton stylé */
.enigme button {
  margin-top: 12px;
  padding: 12px 28px;
  background: #7c5dcf;
  color: #fff;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(124, 93, 207, 0.4);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.enigme button:hover {
  background: #6745b9;
  box-shadow: 0 8px 16px rgba(103, 69, 185, 0.6);
}

/* Indices stylés */
.indice {
  margin-top: 14px;
  padding: 14px 20px;
  background: #e9e4f7;
  border-left: 6px solid #7c5dcf;
  border-radius: 12px;
  font-weight: 600;
  color: #5a4a7a;
  font-size: 1rem;
  user-select: none;
  letter-spacing: 0.02em;
}

.hidden {
  display: none;
}

/* Section code final */
.code-final {
  text-align: center;
  margin-top: 40px;
  padding: 25px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(124, 93, 207, 0.15);
}

.code-final h3 {
  font-weight: 700;
  font-size: 1.6rem;
  color: #7c5dcf;
  margin-bottom: 14px;
}

.code-final p {
  font-size: 1.1rem;
  color: #6d5c8a;
  margin-bottom: 20px;
}

/* Inputs du code final */
.code-inputs input {
  width: 60px;
  height: 60px;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 0 10px;
  border-radius: 15px;
  border: 2px solid #c7b9d9;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  color: #4b3a57;
}

.code-inputs input:focus {
  border-color: #7c5dcf;
  box-shadow: 0 0 12px rgba(124, 93, 207, 0.7);
  outline: none;
}

/* Bouton déverrouiller */
.code-final button {
  margin-top: 12px;
  padding: 14px 36px;
  background: #7c5dcf;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(124, 93, 207, 0.45);
  transition: background-color 0.3s ease;
}

.code-final button:hover {
  background: #5a3b98;
}

/* Zone de révélation */
.escape-hidden {
  display: none;
  margin-top: 40px;
  text-align: center;
  animation: fadeIn 1.8s ease forwards;
}

.camp-map {
  max-width: 100%;
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(124, 93, 207, 0.3);
  margin-top: 25px;
  user-select: none;
}

.reveal-message {
  margin-top: 18px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #6f5499;
  text-shadow: 1px 1px 3px rgba(124, 93, 207, 0.3);
}

@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
