body {
    font-family: "Comic Sans MS", cursive, sans-serif;
    background-image: url("image/fond.webp");
    background-repeat: repeat;
    background-position: center;
    background-size: 100% 100%;
    background-color: MidnightBlue;

    animation: bgPulse 2s ease-in-out infinite alternate,
               bgCycle 30s linear infinite;

    color: #fff;
    text-align: center;
    margin: 0;
    padding: 0;
}
@keyframes bgPulse {
    from { background-size: 100% 100%; }
    to   { background-size: 115% 115%; }
}

/* CONTENEUR SPRITES */
.sprites {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -5; /* juste au-dessus du fond mais derrière le carousel */
}

/* SPRITE */
.sprite {
    position: absolute;
    width: 64px;
    height: 64px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    animation:
        fadeMove linear infinite;
}

/* ANIMATION FADE + MOVE */
@keyframes fadeMove {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
        transform: translate(var(--dx), var(--dy));
    }
    100% {
        opacity: 0;
    }
}

.titre1-zoom {
    width: 50vw;          /* largeur responsive */
    height: 20vh;        /* hauteur plein écran */
    object-fit: contain;  /* évite la déformation */
    animation: zoomPulse 2s ease-in-out infinite alternate;
}
@keyframes zoomPulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.7);
    }
}
.titre2-zoom {
    width: 40vw;
    display: block;
    margin: auto;
    animation: jump 1s ease-in-out infinite;
}
@keyframes jump {
    0% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-20px); /* monte */
    }
    50% {
        transform: translateY(0);     /* redescend */
    }
    75% {
        transform: translateY(-5px); /* petit rebond */
    }
    100% {
        transform: translateY(0);
    }
}

#space-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    background: radial-gradient(circle at bottom, #050514, #000);
}

/* sprite générique */
.space-sprite {
    position: absolute;
    width: 64px;
    height: 64px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
    pointer-events: none;
    will-change: transform;
}
#space-layer {
    position: fixed;
    inset: 0;
    z-index: 0;          /* au-dessus du body */
    pointer-events: none;
    overflow: hidden;
}

/* contenu du site au-dessus */
main, header, section, footer {
    position: relative;
    z-index: 1;
}

/* sprites */
.space-sprite {
    position: absolute;
    width: 64px;
    height: 64px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.85;
    will-change: transform;
}


.feur-container {
    text-align: left;
    margin: 20px 0 0 10px; /* marge haut / droite / bas / gauche */  
}


.back-container {
    text-align: left;
    margin: 10px 0 10px 10px; /* marge haut / droite / bas / gauche */  
}


.back-btn {
  display: inline-block;   /* Garde la largeur du contenu */
  text-align: left;      /* Aligné à gauche */
  background: linear-gradient(180deg, #cfe7ff, #8ab5e8);
  border: 2px solid #1c4fa1;
  border-radius: 6px;
  color: #001f3f;
  text-decoration: none;
  padding: 6px 12px;
  font-weight: bold;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.5), inset 0 0 3px #fff;
  transition: 0.2s ease;
  text-align: left;      /* Aligné à gauche */
  margin: 20px 0 0 20px; /* marge haut / droite / bas / gauche */
}

.back-btn:hover {
  background: linear-gradient(180deg, #dfffdf, #a8f0a8);
  transform: translateY(-2px);
  box-shadow: 0 0 8px #00ff90;
}

h1 {
  margin-top: 60px;
  font-size: 3.5em;
  background: linear-gradient(90deg, red, orange, yellow, green, blue, violet, red);
  background-size: 300% 100%; /* Permet au dégradé de se déplacer */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow 1s linear infinite;
}
@keyframes rainbow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}


    h2 { color:#ffcc00; text-shadow:2px 2px #000; }


    .retro-button {
      display: inline-block;
      padding: 15px 25px;
      margin: 10px;
      background: #ff6600;
      border: 3px outset #000;
      color: white;
      text-decoration: none;
      font-size: 1.2em;
      text-shadow: 1px 1px #000;
      transition: transform 0.2s;
    }
    .retro-button:hover {
      animation: bounce 0.3s ease;
      background: #ff8800;
      box-shadow: 0 0 10px #fff;
    }
    @keyframes bounce {0%,100%{transform:translateY(0);}50%{transform:translateY(-8px);}}




    .fire-text {
      color: orange;
      text-shadow: 0 0 10px red, 0 0 20px orange, 0 0 30px yellow;
      animation: flickerFire 0.2s infinite alternate;
    }
    @keyframes flickerFire {
      from { opacity: 0.8; }
      to { opacity: 1; }
    }

    .rainbow-link a {
      color: red;
      animation: colorloop 2s infinite;
    }
    @keyframes colorloop {
      0% { color: red; }
      20% { color: orange; }
      40% { color: yellow; }
      60% { color: green; }
      80% { color: blue; }
      100% { color: violet; }
    }

    .star {
      position: fixed;
      width: 32px;
      height: 32px;
      background: url(image/secret.jpg);
      background-size: contain;
      pointer-events: none;
      animation: starFade 0.8s linear forwards;
      z-index: 9999;
    }
    @keyframes starFade { from{opacity:1;transform:scale(1) rotate(0deg);} to{opacity:0;transform:scale(0.1) rotate(180deg);} }
	
#results {
  position: fixed;
  top: 60px;
  right: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1001;
}

/* Container + image */
.result-item {
  width: 120px;
  height: 120px;
  overflow: hidden;
  border: 2px solid #1c4fa1;
  border-radius: 6px;
  background: rgba(242, 247, 255, 0.9); /* semi-transparent XP style */
  box-shadow: 1px 1px 4px rgba(0,0,0,0.4), inset 0 0 3px #fff;
  cursor: pointer;

  animation: bounce 0.5s ease;
  transition: all 0.3s ease;
}

/* L’image prend tout le container */
.result-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}

/* Hover : tremblement + glow arc-en-ciel */
.result-item:hover {
  animation: shake 0.3s infinite;
  box-shadow: 0 0 6px red,
              0 0 6px orange,
              0 0 6px yellow,
              0 0 6px green,
              0 0 6px blue,
              0 0 6px violet;
  transform: translateY(-2px);
}

/* Bounce à l’apparition */
@keyframes bounce {
  0%   { transform: translateY(-10px); opacity: 0; }
  50%  { transform: translateY(5px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Tremblement hover du cadre */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-3px); }
  40%, 80% { transform: translateX(3px); }
}

/* .carousel-caption h5 {
  color: gold !important;
}

.carousel-caption p {
  color: DarkRed !important;
}
 */
.carousel-caption h5,
.carousel-caption p {
  color: white;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
}



/* Scrollbar mini style XP */
#results::-webkit-scrollbar {
  width: 8px;
}
#results::-webkit-scrollbar-thumb {
  background-color: #1c4fa1;
  border-radius: 4px;
}

	* {
  cursor: url("image/pouler.png") 16 16, auto !important;
}
