/* Fond coquette horizontal */
body {
  margin: 0;
  height: 100vh;
  background: url('coquette.jpg') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden; /* pour cacher scroll quand feu d'artifice */
}

.container {
  position: relative;
  width: 350px;
  height: 500px;
}

/* Style commun pour enveloppes */
.enveloppe {
  width: 100%;
  height: auto;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  user-select: none;
  position: relative;
  z-index: 10;
}

/* Lettre sur l'enveloppe ouverte */
.lettre {
  position: absolute;
  top: 40px;
  left: 20px;
  right: 20px;
  bottom: 120px; /* espace pour bouton */
  color: #cc0033;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  pointer-events: none;
  font-family: 'Courier New', Courier, monospace;
}

/* Cacher les éléments */
.cachée {
  display: none;
}

/* Bouton */
#fireworkBtn {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  background-color: #cc0033;
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 8px #cc0033;
  transition: background-color 0.3s ease;
  z-index: 20;
}

#fireworkBtn:hover {
  background-color: #e60039;
}

/* Hashtag */
#hashtag {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  font-weight: 700;
  color: #cc0033;
  font-size: 1.1rem;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  text-shadow: 1px 1px 2px #800000;
  z-index: 20;
}

/* Canvas feu d'artifice */
#fireworkCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* ne bloque pas les clics */
  z-index: 1000;
}