{"id":10602,"date":"2026-05-17T09:50:09","date_gmt":"2026-05-17T07:50:09","guid":{"rendered":"https:\/\/stockholmnature.com\/?page_id=10602"},"modified":"2026-05-19T09:52:21","modified_gmt":"2026-05-19T07:52:21","slug":"commentaires-prives","status":"publish","type":"page","link":"https:\/\/stockholmnature.com\/fr\/private-feedback\/","title":{"rendered":"Commentaire priv\u00e9"},"content":{"rendered":"<section class=\"bde-section-10602-100 bde-section\">\n  \n  \n\t\n\n\n\n<div class=\"section-container\"><div class=\"bde-code-block-10602-101 bde-code-block\">\n\n  <div class=\"sn-feedback-interface\">\n  <div class=\"sn-feedback-card\">\n    <p class=\"sn-feedback-eyebrow\">Stockholm Nature<\/p>\n\n    <h2>Racontez-nous ce qui s'est pass\u00e9<\/h2>\n\n    <p class=\"sn-feedback-text\">\n      D\u00e9sol\u00e9 d'apprendre que l'exp\u00e9rience n'a pas \u00e9t\u00e9 \u00e0 la hauteur de vos attentes. Veuillez nous faire savoir comment nous pouvons nous am\u00e9liorer.\n    <\/p>\n\n    <textarea\n      id=\"snFeedbackMessage\"\n      class=\"sn-feedback-textarea\"\n      placeholder=\"\u00c9crivez vos commentaires ici...\"\n      rows=\"6\"\n    ><\/textarea>\n\n    <div class=\"sn-feedback-error\" id=\"snFeedbackError\"><\/div>\n\n    <button type=\"button\" class=\"sn-feedback-button\" id=\"snFeedbackButton\">\n      Envoyer des commentaires\n    <\/button>\n  <\/div>\n<\/div>\n\n<style>\n  .sn-feedback-interface {\n    width: 100%;\n    padding: 32px 16px;\n    display: flex;\n    justify-content: center;\n  }\n\n  .sn-feedback-card {\n    width: 100%;\n    max-width: 620px;\n    text-align: center;\n    background: #ffffff;\n    border-radius: 24px;\n    padding: 36px 24px;\n    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);\n  }\n\n  .sn-feedback-eyebrow {\n    margin: 0 0 10px;\n    font-size: 14px;\n    font-weight: 700;\n    letter-spacing: 0.04em;\n    text-transform: uppercase;\n    color: #2f6b4f;\n  }\n\n  .sn-feedback-card h2 {\n    margin: 0 0 12px;\n    font-size: 32px;\n    line-height: 1.2;\n    color: #1d1d1f;\n  }\n\n  .sn-feedback-text {\n    max-width: 470px;\n    margin: 0 auto 24px;\n    font-size: 17px;\n    line-height: 1.55;\n    color: #555;\n  }\n\n  .sn-feedback-textarea {\n    width: 100%;\n    min-height: 150px;\n    padding: 16px;\n    border: 1px solid #d7d7d7;\n    border-radius: 16px;\n    font-size: 16px;\n    line-height: 1.5;\n    resize: vertical;\n    margin-bottom: 14px;\n  }\n\n  .sn-feedback-textarea:focus {\n    outline: none;\n    border-color: #2f6b4f;\n    box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.12);\n  }\n\n  .sn-feedback-error {\n    min-height: 22px;\n    margin-bottom: 14px;\n    font-size: 15px;\n    color: #b42318;\n  }\n\n  .sn-feedback-button {\n    border: 0;\n    border-radius: 999px;\n    padding: 15px 34px;\n    font-size: 16px;\n    font-weight: 700;\n    background: #2f6b4f;\n    color: #ffffff;\n    cursor: pointer;\n    transition: opacity 0.15s ease, transform 0.15s ease;\n  }\n\n  .sn-feedback-button:hover {\n    transform: translateY(-1px);\n  }\n\n  .sn-feedback-button:disabled {\n    opacity: 0.5;\n    cursor: not-allowed;\n    transform: none;\n  }\n\n  @media (max-width: 480px) {\n    .sn-feedback-card {\n      padding: 30px 18px;\n      border-radius: 20px;\n    }\n\n    .sn-feedback-card h2 {\n      font-size: 26px;\n    }\n\n    .sn-feedback-text {\n      font-size: 16px;\n    }\n  }\n<\/style>\n\n<script>\n  document.addEventListener(\"DOMContentLoaded\", function () {\n    const messageField = document.getElementById(\"snFeedbackMessage\");\n    const submitButton = document.getElementById(\"snFeedbackButton\");\n    const errorBox = document.getElementById(\"snFeedbackError\");\n\n    const params = new URLSearchParams(window.location.search);\n    const token = params.get(\"token\") || \"\";\n    const rating = params.get(\"rating\") || \"\";\n\n    if (!token) {\n      errorBox.textContent = \"Review link is missing. Please open the link from your email again.\";\n      submitButton.disabled = true;\n      return;\n    }\n\n    submitButton.addEventListener(\"click\", function () {\n      const feedback = messageField.value.trim();\n\n      if (feedback.length < 5) {\n        errorBox.textContent = \"Please write a little more before sending.\";\n        return;\n      }\n\n      errorBox.textContent = \"\";\n      submitButton.disabled = true;\n      submitButton.textContent = \"Sending...\";\n\n      fetch(\"\/wp-json\/sn-reviews\/v1\/save-feedback\", {\n        method: \"POST\",\n        headers: {\n          \"Content-Type\": \"application\/json\"\n        },\n        body: JSON.stringify({\n          token: token,\n          rating: rating,\n          feedback: feedback\n        })\n      })\n        .then(function (response) {\n          if (!response.ok) {\n            throw new Error(\"Server error\");\n          }\n\n          return response.json();\n        })\n        .then(function (data) {\n          if (!data.success) {\n            throw new Error(data.message || \"Could not save feedback.\");\n          }\n\n          window.location.href = \"\/review-confirmed\/?token=\" + encodeURIComponent(token);\n        })\n        .catch(function () {\n          submitButton.disabled = false;\n          submitButton.textContent = \"Send feedback\";\n          errorBox.textContent = \"Sorry, your feedback could not be saved. Please try again.\";\n        });\n    });\n  });\n<\/script>\n\n\n<\/div><\/div>\n<\/section>","protected":false},"excerpt":{"rendered":"<p>Stockholm Nature Dites-nous ce qui s'est pass\u00e9. Nous sommes d\u00e9sol\u00e9s que votre exp\u00e9rience n'ait pas \u00e9t\u00e9 \u00e0 la hauteur de vos attentes. Veuillez nous faire savoir comment nous pouvons nous am\u00e9liorer. Envoyer des commentaires<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"ai_generated_summary":"","_breakdance_hide_in_design_set":false,"_breakdance_tags":"","footnotes":""},"class_list":["post-10602","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/stockholmnature.com\/fr\/wp-json\/wp\/v2\/pages\/10602","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stockholmnature.com\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/stockholmnature.com\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/stockholmnature.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stockholmnature.com\/fr\/wp-json\/wp\/v2\/comments?post=10602"}],"version-history":[{"count":3,"href":"https:\/\/stockholmnature.com\/fr\/wp-json\/wp\/v2\/pages\/10602\/revisions"}],"predecessor-version":[{"id":10636,"href":"https:\/\/stockholmnature.com\/fr\/wp-json\/wp\/v2\/pages\/10602\/revisions\/10636"}],"wp:attachment":[{"href":"https:\/\/stockholmnature.com\/fr\/wp-json\/wp\/v2\/media?parent=10602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}