html, body {
  margin: 0;
  padding: 0;
  overflow: hidden; /* coupe scroll horizontal + vertical */
  width: 100%;
  height: 100%;
}

/* --- Fond plein écran --- */
.fond-porte-secrete {
  background-image: url("../images/fonds/fond_porte_secrete.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  color: #e6dcc2;
}

/* --- Wrapper --- */
.porte-wrapper {
  position: relative;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4rem;
}

/* --- Terminal --- */
.terminal-acces {
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid #6b5a36;
  border-radius: 10px;
  padding: 1.2rem 2.2rem;
  width: 320px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* --- Textes --- */
.terminal-title {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9b37a;
  margin-bottom: 0.5rem;
}

.terminal-text {
  font-size: 0.95rem;
  color: #ddd2b5;
  margin-bottom: 1rem;
}

/* --- Input --- */
.terminal-input {
  width: 160px;
  padding: 0.6rem;
  font-size: 1.4rem;
  text-align: center;
  letter-spacing: 0.4rem;
  background: #000;
  color: #f5e9c8;
  border: 1px solid #8d6e3a;
  border-radius: 6px;
  outline: none;
}

.terminal-input:focus {
  box-shadow: 0 0 12px rgba(201,179,122,0.5);
}

/* --- Bouton --- */
.terminal-btn {
  margin-top: 1rem;
  padding: 0.5rem 1.8rem;
  background: transparent;
  color: #c9b37a;
  border: 1px solid #c9b37a;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.terminal-btn:hover {
  background: rgba(201,179,122,0.15);
}

/* --- Erreur --- */
.error-message {
  opacity: 0;
  margin-top: 0.8rem;
  font-style: italic;
  font-size: 0.85rem;
  transition: opacity 0.4s;
}

.error-message.visible {
  opacity: 1;
}
