@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
  font-family: 'Press Start 2P', cursive;
  background: #fff8e1; /* Crème pastel */
  color: #222;
  padding: 30px;
  max-width: 900px;
  margin: auto;
  image-rendering: pixelated;
}

h1 {
  text-align: center;
  color: #ff4081;
  font-size: 20px;
  text-shadow: 1px 1px #00bcd4;
  margin-bottom: 40px;
}

.section {
  background: #ffffff;
  border: 2px solid #aaa;
  box-shadow: inset -2px -2px 0 #fff, inset 2px 2px 0 #555;
  padding: 20px;
  margin-bottom: 20px;
}

.radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

label {

  margin-right: 5px; /* espace entre label et input */
  font-weight: 600;
  color: #444;
  vertical-align: middle; /* aligner verticalement label et input */
}

input[type="text"],
select {
  width: 100%;
  padding: 8px;
  margin-bottom: 0.6rem;
  font-family: inherit;
  font-size: 12px;
  border: 2px solid #888;
  background: #fafafa;
  box-shadow: inset -2px -2px 0 #fff, inset 2px 2px 0 #555;
}

button {
  background: #ff00cc;
  border: 2px solid #888;
  box-shadow: -2px -2px 0 #fff, 2px 2px 0 #555;
  font-family: inherit;
  font-size: 12px;
  padding: 10px 20px;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background: #ffd5ec;
  color: #000;
}

#resultat {
  background-color: #fff8f8;
  border: 2px dashed #ff4081;
  padding: 20px;
  margin-top: 30px;
  font-size: 12px;
  box-shadow: inset -2px -2px 0 #fff, inset 2px 2px 0 #555;
}

#excuseTexte {
  background: #fff;
  border: 2px solid #ccc;
  padding: 15px;
  margin-top: 10px;
  color: #222;
  font-size: 12px;
}
/* Conteneur de boutons radio façon Windows 98 */
.radio-win98 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

/* Cacher les boutons radio natifs */
.radio-win98 input[type="radio"] {
  display: none;
}

/* Style visuel des boutons */
.radio-win98 label {
  display: inline-block;
  padding: 6px 12px;
  background-color: #8EFFFF;
  border: 2px solid #888;
  box-shadow: -2px -2px 0 #fff, 2px 2px 0 #555;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

/* Style bouton sélectionné */
.radio-win98 input[type="radio"]:checked + label {
  background-color: #F5F05A;
  box-shadow: inset -2px -2px 0 #fff, inset 2px 2px 0 #555;
}

.radio-win98 label:hover {
  background-color: #F3F09C;
  color: #d13a2f;
  border-color: #d13a2f;
}

#themeSwitcher {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background-color: #222;
  color: #fff;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  z-index: 999;
}

#themeSwitcher:hover {
  opacity: 1;
  background-color: #444;
}

footer {
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
  color: #666;
  margin-top: 2rem;
}

#falling-elements {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  pointer-events: none; 

}

main, form, etc {
  position: relative;
  z-index: 1; /* 👈 Met le contenu au-dessus */
}

.falling {
  position: absolute;
  width: 40px;
  height: 40px;
  animation: fall linear;
  opacity: 0.8;
  pointer-events: none; 
}

@keyframes fall {
  0% {
    transform: translateY(-60px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}
