body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #ffd5ec, #fff5f9);
  overflow-x: hidden;
}

.titre {
  text-align: center;
  font-size: 2.5em;
  margin-top: 40px;
  color: #d63384;
  text-shadow: 2px 2px #fff;
}

.gallery {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
  padding: 20px;
}

.card {
  width: 300px;
  height: 350px;
  perspective: 1000px;
  cursor: pointer;
}

.card .front,
.card .back {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  position: absolute;
  backface-visibility: hidden;
  transition: transform 0.8s;
}

.card .front img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.card .back {
  background: #fff0f5;
  color: #d63384;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  transform: rotateY(180deg);
  font-weight: bold;
  font-size: 1.1em;
  text-align: center;
  border-radius: 20px;
}

.card:hover .front {
  transform: rotateY(180deg);
}

.card:hover .back {
  transform: rotateY(360deg);
}

.final-message {
  text-align: center;
  font-size: 1.5em;
  color: #b8006e;
  margin: 60px 20px;
  font-weight: bold;
}

.balloons-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.balloon {
  position: absolute;
  bottom: -100px;
  width: 20px;
  height: 30px;
  border-radius: 50% 50% 50% 50%;
  background-color: pink;
  animation: float 10s linear forwards;
  z-index: 1;
}

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-120vh) scale(1.2);
    opacity: 0;
  }
}
