{"id":67202,"date":"2024-10-31T16:43:57","date_gmt":"2024-10-31T15:43:57","guid":{"rendered":"http:\/\/francescabianchiperfumes.com\/contactez-moi\/"},"modified":"2026-04-02T00:00:25","modified_gmt":"2026-04-01T22:00:25","slug":"contactez-moi","status":"publish","type":"page","link":"https:\/\/francescabianchiperfumes.com\/fr\/contactez-moi\/","title":{"rendered":"Contactez-moi"},"content":{"rendered":"\n<div class=\"gb-element-8b42d9dc\">\n<script src=\"https:\/\/challenges.cloudflare.com\/turnstile\/v0\/api.js\" async=\"\" defer=\"defer\"><\/script>\n\n\n\n<form method=\"post\" action=\"\/wp-admin\/admin-post.php\" class=\"fbp-contact-form\" novalidate=\"\"> <input type=\"hidden\" name=\"action\" value=\"fbp_handle_contact_form\"\/> <div class=\"fbp-field\"> <label for=\"fbp-name\">Votre nom<\/label> <input type=\"text\" id=\"fbp-name\" name=\"name\" placeholder=\"Votre nom\" required=\"\"\/> <\/div> <div class=\"fbp-field\"> <label for=\"fbp-email\">Votre email<\/label> <input type=\"email\" id=\"fbp-email\" name=\"email\" placeholder=\"Votre email\" required=\"\"\/> <\/div> <div class=\"fbp-field\"> <label for=\"fbp-topic\">Sujet<\/label> <select id=\"fbp-topic\" name=\"topic\"> <option value=\"\">S\u00e9lectionnez un sujet<\/option> <option value=\"general\">Demande g\u00e9n\u00e9rale<\/option> <option value=\"order\">Aide \u00e0 la commande<\/option> <option value=\"b2b\">B2B \/ Commerce de d\u00e9tail<\/option> <option value=\"press\">Presse \/ Collaboration<\/option> <\/select> <\/div> <div class=\"fbp-field\"> <label for=\"fbp-order\">Num\u00e9ro de commande (facultatif)<\/label> <input type=\"text\" id=\"fbp-order\" name=\"order_id\" placeholder=\"par exemple : #12345\"\/> <\/div> <div class=\"fbp-field\"> <label for=\"fbp-message\">Votre message<\/label> <textarea id=\"fbp-message\" name=\"message\" rows=\"6\" placeholder=\"\u00c9crivez votre message ici...\" required=\"\"><\/textarea> <\/div> <div class=\"fbp-field fbp-consent\"> <label> <input type=\"checkbox\" name=\"consent\" required=\"\"\/> J&rsquo;accepte que mes donn\u00e9es soient utilis\u00e9es pour traiter cette demande. <\/label> <\/div> \n<div class=\"fbp-field fbp-submit\"> \n<div class=\"cf-turnstile\" data-sitekey=\"0x4AAAAAACzHq6HYMGBHezG-\"><\/div>\n<button type=\"submit\">Envoyer un message<\/button> <\/div>\n<input type=\"text\" name=\"website\" value=\"\" style=\"display:none !important;\" tabindex=\"-1\" autocomplete=\"off\"\/>\n <\/form>\n\n\n\n<script> document.addEventListener('DOMContentLoaded', function () { const params = new URLSearchParams(window.location.search); const target = document.querySelector('.fbp-contact-form'); if (!target) return; let message = ''; let bg = ''; let color = ''; if (params.get('contact_sent') === '1') { message = 'Your message has been sent successfully.'; bg = '#f3f3f3'; color = '#111'; } if (params.get('contact_error') === '1') { message = 'There was an error sending your message. Please try again.'; bg = '#f8f1f1'; color = '#7a1f1f'; } if (message) { const notice = document.createElement('div'); notice.className = 'fbp-form-notice'; notice.textContent = message; notice.style.padding = '14px 16px'; notice.style.marginBottom = '20px'; notice.style.background = bg; notice.style.color = color; notice.style.fontSize = '14px'; notice.style.lineHeight = '1.5'; target.parentNode.insertBefore(notice, target); if (params.get('contact_sent') === '1') { target.reset(); } } }); <\/script>\n\n\n\n<script>document.addEventListener('DOMContentLoaded', function () {\n  const form = document.querySelector('.fbp-contact-form');\n  if (!form) return;\n\n  const params = new URLSearchParams(window.location.search);\n  const fields = form.querySelectorAll('input, select, textarea');\n\n  function showTopNotice(message, type) {\n    const oldNotice = document.querySelector('.fbp-form-notice');\n    if (oldNotice) oldNotice.remove();\n\n    const notice = document.createElement('div');\n    notice.className = 'fbp-form-notice';\n    notice.textContent = message;\n    notice.style.padding = '14px 16px';\n    notice.style.marginBottom = '20px';\n    notice.style.fontSize = '14px';\n    notice.style.lineHeight = '1.5';\n\n    if (type === 'success') {\n      notice.style.background = '#f3f3f3';\n      notice.style.color = '#111';\n    } else {\n      notice.style.background = '#f8f1f1';\n      notice.style.color = '#7a1f1f';\n    }\n\n    form.parentNode.insertBefore(notice, form);\n  }\n\n  if (params.get('contact_sent') === '1') {\n    showTopNotice('Your message has been sent successfully.', 'success');\n    form.reset();\n  }\n\n  if (params.get('contact_error') === '1') {\n    showTopNotice('There was an error sending your message. Please check the required fields and try again.', 'error');\n  }\n\n  if (params.get('contact_error') === 'captcha') {\n    showTopNotice('Verification failed. Please try again.', 'error');\n  }\n\n  function clearError(field) {\n    const wrapper = field.closest('.fbp-field');\n    if (!wrapper) return;\n\n    wrapper.classList.remove('fbp-field-error');\n\n    const error = wrapper.querySelector('.fbp-error-text');\n    if (error) error.remove();\n  }\n\n  function showError(field, message) {\n    const wrapper = field.closest('.fbp-field');\n    if (!wrapper) return;\n\n    wrapper.classList.add('fbp-field-error');\n\n    let error = wrapper.querySelector('.fbp-error-text');\n    if (!error) {\n      error = document.createElement('small');\n      error.className = 'fbp-error-text';\n      wrapper.appendChild(error);\n    }\n\n    error.textContent = message;\n  }\n\n  function validateField(field) {\n    clearError(field);\n\n    const type = field.getAttribute('type');\n    const value = field.type === 'checkbox' ? field.checked : field.value.trim();\n\n    if (field.hasAttribute('required')) {\n      if (type === 'checkbox' && !field.checked) {\n        showError(field, 'This field is required.');\n        return false;\n      }\n\n      if (type !== 'checkbox' && value === '') {\n        showError(field, 'This field is required.');\n        return false;\n      }\n    }\n\n    if (type === 'email' && field.value.trim() !== '') {\n      const emailRegex = \/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$\/;\n      if (!emailRegex.test(field.value.trim())) {\n        showError(field, 'Please enter a valid email address.');\n        return false;\n      }\n    }\n\n    return true;\n  }\n\n  fields.forEach(function (field) {\n    field.addEventListener('input', function () {\n      validateField(field);\n    });\n\n    field.addEventListener('change', function () {\n      validateField(field);\n    });\n\n    field.addEventListener('blur', function () {\n      validateField(field);\n    });\n  });\n\n  form.addEventListener('submit', function (e) {\n    let firstInvalid = null;\n    let isValid = true;\n\n    fields.forEach(function (field) {\n      const valid = validateField(field);\n      if (!valid) {\n        isValid = false;\n        if (!firstInvalid) firstInvalid = field;\n      }\n    });\n\n    if (!isValid) {\n      e.preventDefault();\n      showTopNotice('Please fill in the required fields.', 'error');\n      firstInvalid.focus();\n    }\n  });\n});\n<\/script>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Votre nom Votre email Sujet S\u00e9lectionnez un sujetDemande g\u00e9n\u00e9raleAide \u00e0 la commandeB2B \/ Commerce de d\u00e9tailPresse \/ Collaboration Num\u00e9ro de commande (facultatif) Votre message J&rsquo;accepte que mes donn\u00e9es soient utilis\u00e9es pour traiter cette demande. Envoyer un message<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"class_list":["post-67202","page","type-page","status-publish"],"_links":{"self":[{"href":"https:\/\/francescabianchiperfumes.com\/fr\/wp-json\/wp\/v2\/pages\/67202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/francescabianchiperfumes.com\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/francescabianchiperfumes.com\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/francescabianchiperfumes.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/francescabianchiperfumes.com\/fr\/wp-json\/wp\/v2\/comments?post=67202"}],"version-history":[{"count":0,"href":"https:\/\/francescabianchiperfumes.com\/fr\/wp-json\/wp\/v2\/pages\/67202\/revisions"}],"wp:attachment":[{"href":"https:\/\/francescabianchiperfumes.com\/fr\/wp-json\/wp\/v2\/media?parent=67202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}