@import url('https://fonts.googleapis.com/css2?family=Comic+Relief:wght@400;700&family=Luckiest+Guy&display=swap');

body {
  background: linear-gradient(45deg, hotpink, purple);
  font-family: "Comic Relief", system-ui;
  color: white;
  text-align: center;
  height: 100dvh;
  overflow-x: hidden;
}

.container {
  padding: 30px;
}

h1 {
  font-size: 3em;
  text-shadow: 4px 4px black;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.blink {
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.photos img {
  width: 200px;
  margin: 10px;
  border: 8px solid white;
  box-shadow: 0 0 20px black;
  transform: rotate(-2deg);
}

.message {
  font-size: 1.4em;
  margin: 20px;
}

button {
  background: yellow;
  border: 4px solid red;
  padding: 15px;
  font-size: 1.2em;
  cursor: pointer;
}

.hidden {
  display: none;
}

/* Effet VHS */
.vhs {
  pointer-events: none;
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 3px
  );
}

.photos img {
  filter: sepia(0.4) contrast(1.2);
}

.flames {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  display: flex;
  justify-content: space-around;
  pointer-events: none;
  z-index: 999;
}

.flames span {
  width: 40px;
  height: 100px;
  background: linear-gradient(to top, red, orange, yellow);
  border-radius: 50% 50% 50% 50%;
  animation: flame 1s infinite alternate;
  filter: blur(1px);
  opacity: 0.9;
}

.flames span:nth-child(odd) {
  animation-duration: 0.7s;
}

@keyframes flame {
  from {
    transform: translateY(0) scale(1);
  }
  to {
    transform: translateY(-30px) scale(1.2);
  }
}



#flame-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: flex-end;
  justify-content: space-around;
  z-index: 2000;
}

#flame-overlay.active {
  display: flex;
}

.flame {
  width: 80px;
  height: 200px;
  background: linear-gradient(to top, red, orange, yellow, white);
  border-radius: 50% 50% 20% 20%;
  animation: rise 0.8s infinite alternate;
  filter: blur(1px);
  box-shadow: 0 0 30px orange;
}

.flame:nth-child(odd) {
  animation-duration: 0.6s;
}

@keyframes rise {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateY(-80px) scale(1.2);
    opacity: 0.7;
  }
}

/* SHAKE ÉCRAN */
.shake {
  animation: shake 0.5s;
}

@keyframes shake {
  0% { transform: translate(0); }
  25% { transform: translate(-5px, 5px); }
  50% { transform: translate(5px, -5px); }
  75% { transform: translate(-5px, -5px); }
  100% { transform: translate(0); }
}


/* GIF OVERLAY */
#gif-overlay {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0,0,0,0.72);
  z-index: 9999;
}

#gif-overlay.active { display: grid; }

#gif-overlay img {
  width: min(520px, 92vw);
  height: auto;
  image-rendering: pixelated; /* kitch bonus */
  filter: saturate(1.3) contrast(1.15) drop-shadow(0 0 20px rgba(255,120,0,0.8));
}

/* FX LAYER (flammes) */
#fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
}

.flame-particle {
  position: absolute;
  bottom: -40px;
  width: 18px;
  height: 38px;
  border-radius: 50% 50% 50% 50%;
  background: radial-gradient(circle at 50% 70%, rgba(255,255,255,0.95), rgba(255,220,80,0.9) 25%, rgba(255,120,0,0.85) 55%, rgba(255,0,0,0.75) 80%, rgba(0,0,0,0) 100%);
  filter: blur(0.6px);
  mix-blend-mode: screen;
  opacity: 0.95;
  transform: translateX(0) scale(1);
  animation: flameUp var(--dur, 900ms) ease-out forwards;
  box-shadow: 0 0 22px rgba(255,130,0,0.55);
}

@keyframes flameUp {
  0%   { transform: translate(var(--x, 0px), 0px) scale(0.9); opacity: 0.0; }
  10%  { opacity: 1; }
  100% { transform: translate(calc(var(--x, 0px) * 1.4), calc(-1 * var(--h, 420px))) scale(1.6); opacity: 0; }
}

/* Pluie de coeurs */
#hearts-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9100;
}

.heart {
  position: absolute;
  top: -40px;
  font-size: var(--size, 22px);
  filter: drop-shadow(0 0 10px rgba(255, 0, 120, 0.6));
  opacity: 0.95;
  animation: heartFall var(--dur, 1600ms) linear forwards;
}

@keyframes heartFall {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translate(var(--drift, 40px), calc(100vh + 80px)) rotate(360deg); opacity: 0; }
}

/* Petit shake "cinéma" */
.shake-hard {
  animation: shakeHard 350ms;
}

@keyframes shakeHard {
  0% { transform: translate(0,0); }
  20% { transform: translate(-6px, 4px); }
  40% { transform: translate(6px, -4px); }
  60% { transform: translate(-5px, -5px); }
  80% { transform: translate(5px, 5px); }
  100% { transform: translate(0,0); }
}
