/* ----- BASE ----- */

body {
  background-color: #0d001a; /* noir-violet profond */
  color: #e0c9ff; /* texte lisible en violet pâle */
  font-family: "Comic Sans MS", cursive, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
}

/* ----- CONTAINER ----- */

.container {
  background-color: rgba(51, 0, 51, 0.8);
  padding: 40px;
  max-width: 800px;
  margin: auto;
  border: 3px double #a64dff;
  box-shadow: 0 0 12px #9933ff;
  border-radius: 16px;
  color: #f5e6ff;
}

/* ----- HEADERS ----- */

h1 {
  color: #d9b3ff;
  text-shadow: 2px 2px #4b0082;
  font-size: 36px;
}

/* ----- LIENS ----- */

a {
  color: #cc99ff;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
  color: #ff99ff;
}

/* ----- IMAGE CENTRÉE ----- */

.center-img {
  display: block;
  margin: 20px auto;
  width: 200px;
}

/* ----- FOOTER ----- */

footer {
  margin-top: 40px;
  font-size: 0.9em;
  color: #aa88cc;
}

/* ----- WIDGET CURRENTLY ----- */

.widget-currently {
  width: 300px;
  margin: 40px auto;
  border: 2px solid #9933cc;
  border-radius: 10px;
  box-shadow: 4px 4px 0 #660099;
  background: linear-gradient(145deg, #330033, #1a001a);
}

.widget-header {
  background-color: #9933cc;
  color: white;
  padding: 10px;
  font-weight: bold;
  font-size: 18px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  text-align: center;
  text-shadow: 1px 1px #330033;
}

.widget-body {
  padding: 15px;
  font-size: 14px;
  color: #e6ccff;
}

.widget-body p {
  margin: 10px 0;
}

/* ----- GIF DÉCOR ----- */

.gif-border {
  position: fixed;
  top: 200px;
  right: 700px;
  width: 150px;
  height: auto;
  z-index: 9999;
  pointer-events: none;
  filter: drop-shadow(0 0 8px #cc33ff);
  animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    filter: drop-shadow(0 0 8px #cc33ff);
  }
  50% {
    filter: drop-shadow(0 0 20px #ff66cc);
  }
}

/* ----- GLITCH ----- */

.glitch-neon {
  position: relative;
  animation: glitch 2.5s infinite;
}

@keyframes glitch {
  0%, 30%, 100% {
    text-shadow: 2px 0 #ff66cc, -2px 0 #cc33ff;
  }
  20%, 40%, 80% {
    text-shadow: -2px 0 #ff66cc, 2px 0 #cc33ff;
  }
}

/* ----- HEADER DU SITE ----- */

.site-header {
  position: sticky;
  top: 0;
  background: linear-gradient(90deg, #330033, #660066);
  box-shadow: 0 4px 12px #9900cc;
  z-index: 1000;
}

.site-header .container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 15px 20px;
  flex-direction: column;
  text-align: center;
  gap: 10px;
}

.site-title {
  font-size: 2rem;
  color: #f2e6ff;
  text-shadow: 0 0 6px #cc66ff;
  margin: 0;
  user-select: none;
  animation: glitch 2.5s infinite;
}

/* ----- NAVIGATION ----- */

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: 'Arial Black', Gadget, sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: white;
  text-decoration: none;
  text-shadow: 0 0 5px #cc33ff;
  padding: 5px 10px;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  background-color: #ff66cc;
  color: #330033;
  text-shadow: 0 0 12px #ff33cc;
  outline: none;
  cursor: pointer;
}

/* ----- RESPONSIVE ----- */

@media (max-width: 600px) {
  .site-header .container {
    flex-direction: column;
    gap: 10px;
  }
  .site-nav ul {
    gap: 15px;
    justify-content: center;
  }
}

/* ----- RETOUR MAISON ----- */

.return-home {
  margin: 30px auto;
  text-align: center;
}

.return-home a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  color: #cc99ff;
  font-weight: bold;
  font-size: 1.2rem;
  text-shadow: 1px 1px #4b0082;
  transition: transform 0.2s ease;
}

.return-home a:hover {
  transform: scale(1.05);
  color: #ff66cc;
}

.home-gif {
  width: 100px;
  height: auto;
  filter: drop-shadow(0 0 4px #cc33ff);
}

/* ----- BACKGROUNDS DES PIÈCES ----- */

.home {
  #background-image: url("/img/house_alien.gif");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  background-attachment: scroll;
  min-height: 100vh;
}

.bedroom {
  background-image: url("/img/bedroom.gif");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  background-attachment: fixed;
  min-height: 100vh;
}

.game-button i {
  margin-right: 8px;
  font-size: 1.2rem;
  vertical-align: middle;
}

.game-links {
  display: flex;          /* aligne les boutons en ligne */
  gap: 15px;              /* espace de 15px entre chaque bouton */
  justify-content: center; /* centre les boutons horizontalement */
  margin-top: 5px;       /* un peu d’espace au-dessus du groupe */
  margin-bottom: 5px;
}

.game-button {
  padding: 10px 20px;     /* espace intérieur pour que ça respire */
  background-color: #660066;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: flex;          /* pour aligner icône + texte */
  align-items: center;
  transition: background-color 0.3s ease;
}

.game-button:hover {
  background-color: #990099;
}

.posters-room {
  background: linear-gradient(135deg, #1a001a, #330033);
  min-height: 100vh;
  color: #cc99ff;
}

.poster-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 20px;
}

.poster {
  width: 100%;
  border: 3px solid #a64dff;
  border-radius: 12px;
  box-shadow: 0 0 15px #9933ff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.poster:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 0 25px #ff66cc, 0 0 30px #cc33ff;
}

.room-link {
  display: inline-flex;
  align-items: center;
  gap: 8px; /* espace entre texte et gif */
  color: #cc99ff;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.room-link:hover {
  color: #ff66cc;
}

.portal-gif {
  width: 50px; 
  height: auto;
  filter: drop-shadow(0 0 4px #cc33ff);
  user-select: none;
  pointer-events: none; 
}

.widget-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0px;
  margin-bottom: 1px;
  flex-wrap: wrap;
}

.widget-wrapper .widget-currently {
  flex-shrink: 0;
  width: 350px; /* force largeur propre */
}

.side-gif {
  width: 180px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px #cc33ff);
  animation: pulseGlow 2.5s ease-in-out infinite;
}
.guestroom {
  background-image: url("/img/guestroom_background.gif");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: 100vh;
}

.decor-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.decor-img {
  width: 240px;
  height: auto;
  border-radius: 8px;
  filter: drop-shadow(0 0 6px #9933ff);
}

.left-sidebar {
  position: fixed;
  top: 120px; /* adapte si besoin selon ton header */
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  padding: 5px;
  background-color: rgba(13, 0, 26, 0.6); /* fond léger */
  border: 2px double #a64dff;
  border-radius: 8px;
  box-shadow: 0 0 10px #660099;
}

.left-sidebar img {
  width: 100px;
  height: auto;
  image-rendering: pixelated;
  transition: transform 0.2s ease;
}

.left-sidebar img:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 5px #ff66cc);
}

.stamps-floating {
  position: fixed;
  top: 100px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 900;
}

.stamps-floating img {
  width: 120px;
  height: 65px;
  box-shadow: 0 0 6px #9933ff;
  background-color: #1a001a;
  transition: transform 0.2s ease;
}

.stamps-floating img:hover {
  transform: scale(1.55) rotate(-2deg);
}



