{"id":1247,"date":"2025-11-28T07:46:13","date_gmt":"2025-11-28T07:46:13","guid":{"rendered":"https:\/\/clubvivremieux.com\/?page_id=1247"},"modified":"2025-11-28T07:46:13","modified_gmt":"2025-11-28T07:46:13","slug":"voyance-du-jour","status":"publish","type":"page","link":"https:\/\/clubvivremieux.com\/index.php\/voyance-du-jour\/","title":{"rendered":"Voyance du Jour\u00a0"},"content":{"rendered":"\n\/\/  \n\n\n    <div class=\"quiz-container\" id=\"voyance-quiz\">\n        <h1>Voyance du Jour \u2728<\/h1>\n        <div id=\"quiz\">\n            <div class=\"question\" id=\"question\"><\/div>\n            <div class=\"options\" id=\"options\"><\/div>\n        <\/div>\n        <div class=\"result\" id=\"result\"><\/div>\n    <\/div>\n\n    <style>\n    .quiz-container {\n        background: #fff;\n        padding: 30px;\n        border-radius: 20px;\n        box-shadow: 0 10px 20px rgba(0,0,0,0.1);\n        max-width: 400px;\n        width: 90%;\n        text-align: center;\n        margin: 20px auto;\n        font-family: 'Arial', sans-serif;\n        background: #fff0f5;\n        color: #333;\n    }\n    h1 {\n        color: #ff69b4;\n    }\n    .question {\n        font-size: 18px;\n        margin-bottom: 20px;\n    }\n    .options button {\n        background: #ffb6c1;\n        border: none;\n        padding: 10px 20px;\n        margin: 10px 0;\n        width: 100%;\n        border-radius: 10px;\n        cursor: pointer;\n        transition: 0.3s;\n        font-size: 16px;\n    }\n    .options button:hover {\n        background: #ff69b4;\n        color: #fff;\n    }\n    .result {\n        font-size: 20px;\n        margin-top: 20px;\n        color: #ff1493;\n    }\n    <\/style>\n\n    <script>\n    document.addEventListener(\"DOMContentLoaded\", function() {\n        const questions = [\n            {\n                question: \"Comment te sens-tu ce matin ?\",\n                options: [\n                    { text: \"\ud83c\udf1e Pleine d\u2019\u00e9nergie\", value: \"A\" },\n                    { text: \"\u2601\ufe0f Un peu fatigu\u00e9e\", value: \"B\" },\n                    { text: \"\ud83d\udcab Myst\u00e9rieuse\", value: \"C\" }\n                ]\n            },\n            {\n                question: \"Quelle couleur t\u2019attire aujourd\u2019hui ?\",\n                options: [\n                    { text: \"\ud83d\udc96 Rose\", value: \"A\" },\n                    { text: \"\ud83d\udc9b Jaune\", value: \"B\" },\n                    { text: \"\ud83d\udc9c Violet\", value: \"C\" }\n                ]\n            },\n            {\n                question: \"Quel est ton \u00e9tat d\u2019esprit ?\",\n                options: [\n                    { text: \"\ud83d\ude0a Joyeuse\", value: \"A\" },\n                    { text: \"\ud83d\ude0c Tranquille\", value: \"B\" },\n                    { text: \"\ud83c\udf19 Songeuse\", value: \"C\" }\n                ]\n            }\n        ];\n\n        let currentQuestion = 0;\n        let score = { A: 0, B: 0, C: 0 };\n\n        function showQuestion() {\n            const q = questions[currentQuestion];\n            document.getElementById(\"question\").innerText = q.question;\n            const optionsDiv = document.getElementById(\"options\");\n            optionsDiv.innerHTML = \"\";\n            q.options.forEach(option => {\n                const btn = document.createElement(\"button\");\n                btn.innerText = option.text;\n                btn.onclick = () => selectOption(option.value);\n                optionsDiv.appendChild(btn);\n            });\n        }\n\n        function selectOption(value) {\n            score[value]++;\n            currentQuestion++;\n            if(currentQuestion < questions.length) {\n                showQuestion();\n            } else {\n                showResult();\n            }\n        }\n\n        function showResult() {\n            const maxScore = Math.max(score.A, score.B, score.C);\n            let resultText = \"\";\n            if(maxScore === score.A) resultText = \"\u2728 Aujourd'hui, ta journ\u00e9e sera pleine de joie et d'\u00e9nergie positive !\";\n            if(maxScore === score.B) resultText = \"\ud83c\udf3f Aujourd'hui, prends du temps pour toi et la tranquillit\u00e9.\";\n            if(maxScore === score.C) resultText = \"\ud83c\udf19 Aujourd'hui, suis ton intuition et laisse place au myst\u00e8re.\";\n\n            document.getElementById(\"quiz\").style.display = \"none\";\n            document.getElementById(\"result\").innerText = resultText;\n        }\n\n        showQuestion();\n    });\n    <\/script>\n    <?php\n    return ob_get_clean();\n}\nadd_shortcode('voyance_quiz', 'voyance_quiz_shortcode');\n\n","protected":false},"excerpt":{"rendered":"<p>\/\/ Voyance du Jour \u2728<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1247","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/clubvivremieux.com\/index.php\/wp-json\/wp\/v2\/pages\/1247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/clubvivremieux.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/clubvivremieux.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/clubvivremieux.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/clubvivremieux.com\/index.php\/wp-json\/wp\/v2\/comments?post=1247"}],"version-history":[{"count":1,"href":"https:\/\/clubvivremieux.com\/index.php\/wp-json\/wp\/v2\/pages\/1247\/revisions"}],"predecessor-version":[{"id":1248,"href":"https:\/\/clubvivremieux.com\/index.php\/wp-json\/wp\/v2\/pages\/1247\/revisions\/1248"}],"wp:attachment":[{"href":"https:\/\/clubvivremieux.com\/index.php\/wp-json\/wp\/v2\/media?parent=1247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}