{"id":1235,"date":"2025-11-28T07:08:48","date_gmt":"2025-11-28T07:08:48","guid":{"rendered":"https:\/\/clubvivremieux.com\/?page_id=1235"},"modified":"2025-11-28T07:12:09","modified_gmt":"2025-11-28T07:12:09","slug":"test-amoureux","status":"publish","type":"page","link":"https:\/\/clubvivremieux.com\/index.php\/test-amoureux\/","title":{"rendered":"TEST AMOUREUX"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\"><strong>\u201cQuel est ton langage de l\u2019amour ?<\/strong><\/h1>\n\n\n\n\n\n<div id=\"test-amour-container\"><\/div>\n\n<style>\n#test-amour-container {\n  max-width: 1000px;\n  margin: auto;\n  font-family: Arial, sans-serif;\n  background: #ffeef4;\n  padding: 30px;\n  border-radius: 15px;\n}\n\n#test-amour-container h1 {\n  text-align: center;\n  color: #e04387;\n}\n\n.ta-question { display: none; }\n.ta-question.active { display: block; }\n\n.ta-btn {\n  width: 100%;\n  margin: 10px 0;\n  padding: 12px;\n  border: none;\n  border-radius: 10px;\n  background: #e04387;\n  color: white;\n  font-size: 16px;\n  cursor: pointer;\n}\n.ta-btn:hover { background: #c93676; }\n\n#ta-result {\n  display: none;\n  text-align: center;\n  background: #fff;\n  padding: 20px;\n  border-radius: 10px;\n}\n<\/style>\n\n<script>\n(function() {\n  const container = document.getElementById(\"test-amour-container\");\n\n  const questions = [\n    {\n      q: \"1. Quand tu es en couple, qu\u2019est-ce qui te fait le plus plaisir ?\",\n      a: [\"A\",\"B\",\"C\",\"D\",\"E\"],\n      t: [\n        \"Les mots doux\",\n        \"Passer du temps ensemble\",\n        \"Qu\u2019on t\u2019aide\",\n        \"Recevoir une petite surprise\",\n        \"Un c\u00e2lin\"\n      ]\n    },\n    {\n      q: \"2. Ce qui te manque le plus quand ton partenaire n\u2019est pas l\u00e0 :\",\n      a: [\"A\",\"B\",\"C\",\"D\",\"E\"],\n      t: [\n        \"Sa voix \/ messages\",\n        \"Faire des activit\u00e9s ensemble\",\n        \"Son soutien\",\n        \"Ses attentions\",\n        \"Sa pr\u00e9sence physique\"\n      ]\n    },\n    {\n      q: \"3. Ce qui te blesse le plus :\",\n      a: [\"A\",\"B\",\"C\",\"D\",\"E\"],\n      t: [\n        \"Les critiques\",\n        \"Le manque de temps ensemble\",\n        \"Tout g\u00e9rer seule\",\n        \"Oublier les occasions importantes\",\n        \"Le manque d\u2019affection\"\n      ]\n    }\n  ];\n\n  const results = {\n    A: \"\ud83c\udd50 Les mots valorisants\",\n    B: \"\ud83c\udd51 Les moments de qualit\u00e9\",\n    C: \"\ud83c\udd52 Les services rendus\",\n    D: \"\ud83c\udd53 Les cadeaux\",\n    E: \"\ud83c\udd54 Le contact physique\"\n  };\n\n  let index = 0;\n  let score = {A:0,B:0,C:0,D:0,E:0};\n\n  function renderQuestion() {\n    const q = questions[index];\n    container.innerHTML = `\n      <h1>Quel est ton langage de l'amour ?<\/h1>\n      <div class=\"ta-question active\">\n        <h2>${q.q}<\/h2>\n        ${q.a.map((l,i)=>`\n          <button class=\"ta-btn\" onclick=\"window.taChoose('${l}')\">\n            ${q.t[i]}\n          <\/button>\n        `).join(\"\")}\n      <\/div>\n    `;\n  }\n\n  window.taChoose = function(letter) {\n    score[letter]++;\n    index++;\n    if (index < questions.length) {\n      renderQuestion();\n    } else {\n      showResult();\n    }\n  };\n\n  function showResult() {\n    const top = Object.keys(score).reduce((a,b)=> score[a] > score[b] ? a : b);\n    container.innerHTML = `\n      <h1>R\u00e9sultat<\/h1>\n      <div id=\"ta-result\" style=\"display:block;\">\n         <h2>${results[top]}<\/h2>\n      <\/div>\n    `;\n  }\n\n  renderQuestion();\n})();\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"<p>\u201cQuel est ton langage de l\u2019amour ?<\/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-1235","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/clubvivremieux.com\/index.php\/wp-json\/wp\/v2\/pages\/1235","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=1235"}],"version-history":[{"count":2,"href":"https:\/\/clubvivremieux.com\/index.php\/wp-json\/wp\/v2\/pages\/1235\/revisions"}],"predecessor-version":[{"id":1238,"href":"https:\/\/clubvivremieux.com\/index.php\/wp-json\/wp\/v2\/pages\/1235\/revisions\/1238"}],"wp:attachment":[{"href":"https:\/\/clubvivremieux.com\/index.php\/wp-json\/wp\/v2\/media?parent=1235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}