:root {
    --primary-color: #ff4d6d; /* Rose framboise */
    --secondary-color: #ffe5ec; /* Rose très pâle */
    --text-color: #590d22; /* Rouge foncé pour le texte */
    --glass-bg: rgba(255, 255, 255, 0.85); /* Blanc semi-transparent */
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Fond rouge élégant en dégradé */
    background: radial-gradient(circle, #ff4d6d 0%, #c9184a 50%, #590d22 100%);
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

/* Le conteneur qui prend tout l'écran mais reste derrière */
#hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none; /* Laisse passer les clics */
}

/* Le style de base d'un cœur */
.heart {
    position: absolute;
    bottom: -50px; /* On commence hors de l'écran en bas */
    font-size: 2rem;
    animation: floatUp 6s linear forwards; /* Durée de vie de 6s */
    opacity: 0;
}

/* L'animation pure CSS (gérée par la carte graphique) */
@keyframes floatUp {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1; /* Apparaît rapidement */
    }
    100% {
        transform: translateY(-110vh) scale(1.2) rotate(20deg); /* Monte tout en haut */
        opacity: 0;
    }
}

.container {
    text-align: center;
    background: var(--glass-bg);
    padding: 50px;
    border-radius: 30px;
    /* Effet de flou d'arrière-plan (Glassmorphism) */
    backdrop-filter: blur(10px); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.8);
    max-width: 95%;
    width: 700px;
}

h1 {
    font-family: 'Great Vibes', cursive; /* Police manuscrite */
    color: var(--primary-color);
    font-size: 3.5rem;
    margin: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.sous-titre {
    color: var(--text-color);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

button {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 12px 35px;
    margin: 10px;
    border: none;
    border-radius: 50px; /* Forme de pilule */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Style du bouton OUI */
#btn-oui {
    background-color: var(--primary-color);
    color: white;
    /* Petite animation de battement de coeur */
    animation: pulse 2s infinite;
}

#btn-oui:hover {
    transform: scale(1.05);
    background-color: #d90429;
    box-shadow: 0 0 20px var(--primary-color);
}

/* Style du bouton NON */
#btn-non {
    background-color: white;
    color: var(--text-color);
    border: 2px solid var(--secondary-color);
    position: relative; /* Important pour le mouvement */
}

/* L'animation "Pulse" pour le bouton OUI */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Animation de battement pour le container */
@keyframes heartBeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.05); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
    70% { transform: scale(1); }
    100% { transform: scale(1); }
}

.heart-beat-active {
    animation: heartBeat 1.2s infinite ease-in-out;
}

/* Responsive pour mobile */
@media (max-width: 600px) {
    h1 { font-size: 2.8rem; }
    .container { padding: 30px 20px; }
    button { padding: 10px 25px; font-size: 1rem; }
}