LES RÉPONSES À TES QUESTIONS

Horoscope Cosmo-Classique body { font-family: 'Cinzel', serif; background: #FEFAFF; color: #3a3a3a; text-align: center; padding: 4rem 1rem; } .card { background: #ffffffcc; color: #000; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); max-width: 450px; margin: 2rem auto 0 auto; } select, button { font-family: 'Cinzel', serif; padding: 0.75rem 1.5rem; font-size: 1.1rem; border-radius: 8px; border: none; } button { background-color: #5727C5; color: #fff; cursor: pointer; } button:hover { background-color: #5727C5; } .error { color: #b00020; margin-top: 1rem; }

Ton Horoscope du Jour ✨

-- Sélectionne ton signe -- Bélier Taureau Gémeaux Cancer Lion Vierge Balance Scorpion Sagittaire Capricorne Verseau Poissons
const horoscopeBank = [ "Tu vas comprendre l’univers en mangeant un yaourt à l’ananas.", "Un pigeon mystique t’observe depuis un lampadaire.", "Tu découvriras que tu es l’élu… mais d’un concours de saucisson.", "Ton miroir te dira la vérité. N’insiste pas.", "Tu ris, donc tu es. Même si c’est de toi-même.", "Aujourd’hui, ton café détiendra la réponse à tout.", "Un mouton télépathique viendra dans ton rêve. Écoute-le.", "Ta brosse à dents complote contre toi.", "Tu seras attiré par un grille-pain cosmique. Ne résiste pas.", "Ton karma dépendra d’un sandwich oublié.", "Une licorne t’offrira un code promo dans ton sommeil.", "La Lune t’envoie un SMS, mais tu ne captes pas." ]; function showDailyHoroscope() { const select = document.getElementById("zodiac-select"); const sign = select.value; const container = document.getElementById("daily-horoscope"); const sound = document.getElementById("cosmic-sound"); if (!sign) { container.innerHTML = "

Choisis ton signe, ô âme intersidérale 🌌

"; return; } const today = new Date(); const dateKey = today.getFullYear() + '-' + today.getMonth() + '-' + today.getDate(); const combinedKey = dateKey + sign; let hash = 0; for (let i = 0; i < combinedKey.length; i++) { hash = combinedKey.charCodeAt(i) + ((hash << 5) - hash); } const index = Math.abs(hash) % horoscopeBank.length; const emoji = sign; const message = horoscopeBank[index]; container.innerHTML = `
${emoji}

${message}

(Horoscope du jour - ${today.toLocaleDateString()})

`; sound.currentTime = 0; sound.play(); }
Cartes Absurdes
const absurdCards = [ { label: "ALIEN", image: "https://i.postimg.cc/2j234pJ7/alien.png", prediction: "Un alien t’observe. Il prend des notes." }, { label: "CERVEAU", image: "https://i.postimg.cc/Gms2w4pX/cerveau.png", prediction: "Ton cerveau veut partir en RTT. Respecte-le." }, { label: "DUCK", image: "https://i.postimg.cc/SsmNMVfP/duck.png", prediction: "Aujourd’hui, un canard te jugera en silence." }, { label: "TOILET PAPER", image: "https://i.postimg.cc/cJyJsdg0/papier-toilet.png", prediction: "Ton avenir est... en pause pipi." }, { label: "PIGEON", image: "https://i.postimg.cc/Qd5XYv6P/pijeon.png", prediction: "Un pigeon va ruiner ta lessive. Prépare-toi." }, { label: "PIZZA", image: "https://i.postimg.cc/6QfBtnxf/pizza.png", prediction: "Tu trouveras des réponses dans une part de pizza oubliée." }, { label: "POULPE", image: "https://i.postimg.cc/q7TpPQS7/poulpe.png", prediction: "Un poulpe mystique apparaîtra dans ton rêve. Ne lui fais pas confiance." } ]; function drawAbsurdCard() { const random = absurdCards[Math.floor(Math.random() * absurdCards.length)]; const cardDiv = document.getElementById("absurd-card"); const sound = document.getElementById("absurd-sound"); cardDiv.innerHTML = `
${random.label}

${random.prediction}

`; sound.currentTime = 0; sound.play(); }