/* ============ RUELLE CSS - AUTONOME ============ */

/* Import de la font Pixelify Sans */
@import url("https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400;500;600;700&display=swap");

/* Zones interactives générales */
.zone-interactive {
  position: absolute;
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s;
}
.zone-interactive:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.zone-lettre {
  background: rgba(231, 76, 60, 0.3);
  border: 2px dashed #e74c3c;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  color: #e74c3c;
}

.lettre-hint {
  animation: pulse-letter 2s ease-in-out infinite;
}

@keyframes pulse-letter {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

/* ========== GANTS ========== */
#gants-item {
  left: 3%;
  bottom: 18%;
  width: 70px;
  height: 50px;
}

#gants-item img {
  width: 200%;
  height: 200%;
}

.gants-draggable {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  cursor: grab;
  touch-action: none;
  z-index: 500;
  position: relative;
}

.gants-draggable:active {
  cursor: grabbing;
}

/* ========== POUBELLES (positions inline dans HTML) ========== */
.poubelle {
  position: absolute;
  font-size: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.3s;
  z-index: 100;
}

/* ========== GOUTTIÈRE SECRÈTE ========== */
#goutiere-secret {
  right: 18%;
  top: 62%;
  width: 20px;
  height: 20px;
}

/* ========== TAG MUR ========== */
#tag-mur {
  left: 22%;
  top: 15%;
  width: 100px;
  height: 120px;
}

.zone-tag {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tag-content {
  font-family: "Courier New", monospace;
  font-weight: bold;
  text-align: center;
  line-height: 1.5;
}

/* ========== SYSTÈME DE PENSÉES ========== */
#thoughts-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 600px;
  width: 90%;
  padding: 20px 30px;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.95),
    rgba(22, 33, 62, 0.95)
  );
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 9000;

  /* Font Pixelify Sans */
  font-family: "Pixelify Sans", "Courier New", monospace;
  font-size: 18px;
  font-weight: 500;
  color: white;
  text-align: center;
  line-height: 1.4;

  /* Effet de texte */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);

  /* Animation par défaut */
  transition: all 0.3s ease;
}

#thoughts-container.thoughts-hidden {
  display: none;
  opacity: 0;
}

#thoughts-container.thoughts-visible {
  display: block;
  opacity: 1;
  animation: thoughts-appear 0.4s ease-out;
}

@keyframes thoughts-appear {
  0% {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* Variante pour le style "dialogue" */
#thoughts-container::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid rgba(22, 33, 62, 0.95);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .zone-lettre,
  .gants-draggable,
  .poubelle {
    font-size: 32px;
  }
}

/* ========== HOVER EFFECTS PENSÉES ========== */
#thoughts-container:hover {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.7);
}
