body { margin: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; background-image: url("../media/champ_amour.webp"); background-position: center; background-repeat: no-repeat; background-size: cover; overflow: hidden; font-family: Arial, sans-serif; } .field { position: relative; width: 400px; height: 150px; } .emoji { position: absolute; top: 50%; font-size: 5rem; transform: translate(-50%, -50%); } .emoji-img { width: 5rem; height: 5rem; object-fit: contain; } .left-emoji { left: -100px; } .right-emoji { left: 500px; } @keyframes slideInLeft { to { left: 200px; opacity:0; } } @keyframes slideInRight { to { left: 200px; opacity:0; } } .slide-in-left { animation: slideInLeft 3s forwards; } .slide-in-right { animation: slideInRight 3s forwards; } @keyframes Fade { to { opacity: 0; } } .fading-animation { animation: Fade 3s forwards; } @keyframes growing { to { transform: scale(5); } } .growing-animation { animation: growing 5s forwards; } #child-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: flex; justify-content: center; align-items: center; text-align: center; flex-direction: column; } .emoji-wrapper { display: flex; flex-direction: column; align-items: center; } .emoji-glow-text { position: relative; display: inline-block; font-size: 5rem; } .emoji-glow-text::before { content: attr(data-emoji); position: absolute; top: 0; left: 0; filter: blur(1px) brightness(10); opacity: 0.9; z-index: -1; } .emoji-glow-img { position: relative; display: inline-block; } .emoji-glow-img::before { content: ""; position: absolute; top: 0; left: 0; filter: blur(1px) brightness(10); opacity: 0.9; z-index: -1; } .birth-text{ font-size: 2rem; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); margin-top: 20px; } #heart-gif{ position: absolute; display:none; background-image: url("../media/hearts.gif"); top: 50%; left: 50%; transform: translate(-50%, -50%); width: 30vw; height: 50vh; background-repeat: no-repeat; background-size: 100% 100%; z-index: -1; } /* Bouton de retour */ .btn-retour { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); padding: 10px 25px; font-size: 1.1rem; font-weight: bold; background-color: #f2e6c9; border: 2px solid #000; border-radius: 8px; cursor: pointer; box-shadow: 2px 2px 0 #000; transition: transform 0.2s ease; z-index: 9999; /* pour qu’il soit toujours au-dessus */ } .btn-retour:hover { transform: translateX(-50%) scale(1.05); background-color: #e0d1b3; }