{"id":218,"date":"2025-10-31T15:36:08","date_gmt":"2025-10-31T15:36:08","guid":{"rendered":"http:\/\/ennoiamundi.com\/?page_id=218"},"modified":"2025-10-31T15:50:48","modified_gmt":"2025-10-31T15:50:48","slug":"nous-contacter","status":"publish","type":"page","link":"https:\/\/ennoiamundi.com\/index.php\/nous-contacter\/","title":{"rendered":"Nous contacter"},"content":{"rendered":"\n<pre class=\"wp-block-preformatted\"><\/pre>\n\n\n<!-- Formulaire de contact simple (mailto) -->\n<section aria-labelledby=\"contact-title\" style=\"max-width:640px;margin:24px auto;padding:20px;border:1px solid #e5e7eb;border-radius:12px;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif\">\n  <h2 id=\"contact-title\" style=\"margin:0 0 12px;font-size:1.5rem\"><\/h2>\n  <p style=\"margin:0 0 16px;color:#555\">Remplissez le formulaire : votre client e-mail s\u2019ouvrira avec un brouillon pr\u00eat \u00e0 envoyer.<\/p>\n\n  <form id=\"contact-form\" onsubmit=\"return composeMailto(event)\">\n    <div style=\"margin-bottom:12px\">\n      <label for=\"cf-name\" style=\"display:block;font-weight:600;margin-bottom:6px\">Nom<\/label>\n      <input id=\"cf-name\" name=\"name\" type=\"text\" required placeholder=\"Votre nom\"\n             style=\"width:100%;padding:12px;border:1px solid #e5e7eb;border-radius:10px\">\n    <\/div>\n\n    <div style=\"margin-bottom:12px\">\n      <label for=\"cf-email\" style=\"display:block;font-weight:600;margin-bottom:6px\">E-mail<\/label>\n      <input id=\"cf-email\" name=\"email\" type=\"email\" required placeholder=\"vous@domaine.fr\"\n             style=\"width:100%;padding:12px;border:1px solid #e5e7eb;border-radius:10px\">\n    <\/div>\n\n    <div style=\"margin-bottom:12px\">\n      <label for=\"cf-subject\" style=\"display:block;font-weight:600;margin-bottom:6px\">Sujet<\/label>\n      <input id=\"cf-subject\" name=\"subject\" type=\"text\" placeholder=\"Objet de votre message\"\n             style=\"width:100%;padding:12px;border:1px solid #e5e7eb;border-radius:10px\">\n    <\/div>\n\n    <div style=\"margin-bottom:12px\">\n      <label for=\"cf-message\" style=\"display:block;font-weight:600;margin-bottom:6px\">Message<\/label>\n      <textarea id=\"cf-message\" name=\"message\" required placeholder=\"Votre message\u2026\"\n                style=\"width:100%;min-height:140px;padding:12px;border:1px solid #e5e7eb;border-radius:10px;resize:vertical\"><\/textarea>\n    <\/div>\n\n    <div style=\"margin:8px 0 16px;display:flex;gap:8px;align-items:flex-start\">\n      <input id=\"cf-consent\" type=\"checkbox\" required style=\"margin-top:4px\">\n      <label for=\"cf-consent\" style=\"color:#555\">J\u2019accepte que mes informations soient utilis\u00e9es pour r\u00e9pondre \u00e0 ma demande. Consultez nos mentions l\u00e9gales.\n    <\/div>\n\n    <button type=\"submit\"\n            style=\"padding:12px 16px;border:1px solid #e5e7eb;border-radius:10px;background:#006AD8;color:#fff;cursor:pointer\">\n      Envoyer le message \u2709\ufe0f\n    <\/button>\n\n    <p id=\"cf-note\" style=\"margin-top:10px;color:#666;font-size:0.9rem\">\n      Aucun envoi n\u2019est fait depuis ce site : votre logiciel de messagerie s\u2019ouvre avec un e-mail pr\u00e9-rempli.\n    <\/p>\n  <\/form>\n<\/section>\n\n<script>\n  \/\/ Param\u00e8tres\n  const CF_TO = \"contact@ennoiamundi.com\";\n\n  function composeMailto(e){\n    e.preventDefault();\n    const name = document.getElementById('cf-name').value.trim();\n    const email = document.getElementById('cf-email').value.trim();\n    const subject = (document.getElementById('cf-subject').value || 'Contact').trim();\n    const message = document.getElementById('cf-message').value.trim();\n\n    \/\/ Sujet + corps de l'e-mail\n    const mailSubject = encodeURIComponent(`${subject} \u2013 ${name}`);\n    const bodyLines = [\n      message,\n      '',\n      '\u2014 \u2014 \u2014',\n      `Nom : ${name}`,\n      `E-mail : ${email}`\n    ];\n    const mailBody = encodeURIComponent(bodyLines.join('\\n'));\n\n    \/\/ Ouvre le client mail\n    const href = `mailto:${CF_TO}?subject=${mailSubject}&body=${mailBody}`;\n    window.location.href = href;\n    return false;\n  }\n<\/script>","protected":false},"excerpt":{"rendered":"<p>Remplissez le formulaire : votre client e-mail s\u2019ouvrira avec un brouillon pr\u00eat \u00e0 envoyer. Nom E-mail Sujet Message J\u2019accepte que mes informations soient utilis\u00e9es pour r\u00e9pondre \u00e0 ma demande. Consultez nos mentions l\u00e9gales. Envoyer le message \u2709\ufe0f Aucun envoi n\u2019est fait depuis ce site : votre logiciel de messagerie s\u2019ouvre avec un e-mail pr\u00e9-rempli.<\/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-218","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ennoiamundi.com\/index.php\/wp-json\/wp\/v2\/pages\/218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ennoiamundi.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ennoiamundi.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ennoiamundi.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ennoiamundi.com\/index.php\/wp-json\/wp\/v2\/comments?post=218"}],"version-history":[{"count":6,"href":"https:\/\/ennoiamundi.com\/index.php\/wp-json\/wp\/v2\/pages\/218\/revisions"}],"predecessor-version":[{"id":228,"href":"https:\/\/ennoiamundi.com\/index.php\/wp-json\/wp\/v2\/pages\/218\/revisions\/228"}],"wp:attachment":[{"href":"https:\/\/ennoiamundi.com\/index.php\/wp-json\/wp\/v2\/media?parent=218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}