    body {
      overflow: hidden;
      height: 100vh;
      margin: 10px;
      font-family: 'Aubrey', cursive;
      background: url('../background.jpg') no-repeat center center fixed;
      background-size: cover;
      color: #fff;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
      text-align: center;
    }

    .riddle-container {
      background: rgba(0, 0, 0, 0.7);
      padding: 20px;
      border-radius: 12px;
      max-width: 600px;
    }

    input[type="text"] {
      padding: 10px;
      font-size: 18px;
      border-radius: 6px;
      border: none;
      margin-top: 15px;
      width: 80%;
    }

  /* Popup de bienvenue */
    #welcome-message {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 15);
      background-image: url('popup-bg.jpg'); /* Ton image ici */
      background-size: cover;
      background-position: center;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      padding: 40px;
      text-align: center;
      font-family: 'Aubrey', cursive;
      color: #fff;
      box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.6);
    }

    #welcome-message.hidden {
      display: none;
    }

    #welcome-message button {
      margin-top: 20px;
      padding: 12px 24px;
      font-size: 1rem;
      font-family: 'Aubrey', cursive;
      border: none;
      border-radius: 8px;
      background-color: #8b5e3c;
      color: #fff;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    #welcome-message button:hover {
      background-color: #a46e45;
    }

    .section {
      margin-top: 30px;
      font-family: 'Aubrey', cursive;
    }

    .icon-container {
      display: flex;
      justify-content: center;
      gap: 40px;
      margin-top: 40px;
      margin-bottom: 40px;
    }

    .icon {
      width: 100px;
      height: 100px;
      background-color: rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      cursor: pointer;
      border: 2px solid #fff;
      transition: background 0.3s;
    }

    .icon:hover {
      background-color: rgba(255, 255, 255, 0.4);
    }

    .locked {
      opacity: 0.5;
      pointer-events: none;
    }


    .button {
	  display: inline-block;
	  padding: 6px 14px;
	  margin: 8px 0;
	  font-size: 16px;
	  color: #fff;
	  background-color: rgba(92, 64, 51, 0.4); /* marron foncé transparent */
	  border: 1px solid rgba(92, 64, 51, 0.6);
	  border-radius: 12px;
	  text-decoration: none;
	  transition: background-color 0.3s ease;
	  text-align: center;
	}

	.button:hover {
	  background-color: rgba(92, 64, 51, 0.6);
	}

	.center-buttons {
	  text-align: center;
	  margin-top: 24px;
	  font-size: 16px;
	}

	.bottom-button {
	  position: fixed;
	  bottom: 20px;
	  left: 50%;
	  transform: translateX(-50%);
	  z-index: 100;
	  text-align: center;
	  font-size: 15px;
	}

	.audio-toggle {
	  position: fixed;
	  top: 15px;
	  right: 20px;
	  background: rgba(0, 0, 0, 0.6);
	  border: none;
	  color: #fff;
	  font-size: 15px;
	  padding: 10px;
	  border-radius: 8px;
	  cursor: pointer;
	  z-index: 10000;
	 }
	  
	.cryptex-buttons {
	  position: fixed;
	  bottom: 60px;
	  width: 100%;
	  display: flex;
	  flex-direction: column; /* <--- empile verticalement */
	  align-items: center;     /* centre les boutons horizontalement */
	  gap: 6px;
	  z-index: 999;
	}

	.cryptex-button {
	  background-color: rgba(101, 67, 33, 0.4);
	  color: white;
	  padding: 6px 12px;
	  border-radius: 16px;
	  text-decoration: none;
	  font-size: 1rem;
	  font-weight: 500;
	  backdrop-filter: blur(2px);
	  transition: background-color 0.3s ease;
	}

	.cryptex-button:hover {
	  background-color: rgba(101, 67, 33, 0.6);
	}
	
	.back-button {
	  position: absolute;
	  bottom: 15px;
	  background: rgba(0, 0, 0, 0.6);
	  border: none;
	  color: #fff;
	  font-size:  1rem;
	  padding: 10px;
	  border-radius: 8px;
	  cursor: pointer;
	  z-index: 10000;
	}

	.back-button:hover {
	  background-color: rgba(0, 0, 0, 0.6);
	}

	.enigmes-icons {
	  display: flex;
	  justify-content: center;
	  gap: 25px;
	  margin-top: 10px;
	}

	.enigmes-icons a {
	  width: 100px;
	  height: 100px;
	  border-radius: 50%;
	  background-color: rgba(255, 255, 255, 0.6);
	  display: flex;
	  justify-content: center;
	  align-items: center;
	  overflow: hidden;
	  transition: transform 0.3s ease;
	}

	.enigmes-icons a:hover {
	  transform: scale(1.1);
	}

	.enigmes-icons img {
	  max-width: 80%;
	  max-height: 80%;
	  object-fit: contain;
	}

        .thumbnail {
  width: 150px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.thumbnail:hover {
  transform: scale(1.05);
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
}

.close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}
