{"id":1745,"date":"2023-02-10T12:49:50","date_gmt":"2023-02-10T12:49:50","guid":{"rendered":"https:\/\/flavor.wordifysites.com\/?page_id=63"},"modified":"2025-04-26T16:45:10","modified_gmt":"2025-04-26T14:45:10","slug":"estimation","status":"publish","type":"page","link":"https:\/\/numigold.fr\/index.php\/estimation\/","title":{"rendered":"Estimation"},"content":{"rendered":"\n<section class=\"gb-element-9477e18f\">\n<div class=\"gb-element-5e7dd216\">\n<h2 class=\"gb-text gb-text-9e5c560c\">Estimez le prix de votre bien facilement<\/h2>\n\n\n\n<p class=\"gb-text gb-text-a21a0092\">Gr\u00e2ce \u00e0 notre outil en ligne, vous pouvez pr\u00e9-estimer le prix de votre objet facilement sur notre site. Gr\u00e2ce \u00e0 cela vous aurez une id\u00e9e du prix de rachat, mais une expertise sera faite en boutique, avec vous.<\/p>\n<\/div>\n<\/section>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<div>    <style>\n        .estimation-section {\n            text-align: center;\n            padding: 40px 20px;\n        }\n        .estimation-form {\n            display: inline-block;\n            text-align: left;\n            max-width: 400px;\n            width: 100%;\n            background: #f9f9f9;\n            padding: 30px;\n            border-radius: 10px;\n            box-shadow: 0 4px 8px rgba(0,0,0,0.05);\n            font-family: Arial, sans-serif;\n        }\n        .estimation-form label {\n            display: block;\n            margin-bottom: 10px;\n            font-weight: bold;\n        }\n        .estimation-form select,\n        .estimation-form input {\n            width: 100%;\n            padding: 8px;\n            margin-bottom: 20px;\n            border: 1px solid #ccc;\n            border-radius: 5px;\n            font-size: 1em;\n        }\n        #estimation-result {\n            font-size: 1.5em;\n            color: #2a9d8f;\n            display: block;\n            text-align: center;\n            margin-top: 20px;\n        }\n    <\/style>\n\n    <div class=\"estimation-section\">\n        <form id=\"metals-estimation-form\" class=\"estimation-form\">\n            <label for=\"metal\">M\u00e9tal :<\/label>\n            <select id=\"metal\">\n                <option value=\"XAU\">Or<\/option>\n                <option value=\"XAG\">Argent<\/option>                <option value=\"XPT\">Platine<\/option>                <option value=\"XPD\">Palladium<\/option>            <\/select>\n\n            <div id=\"carat-group\" style=\"display:none;\">\n                <label for=\"carat\">Carat :<\/label>\n                <select id=\"carat\">\n                    <option value=\"24k\">24k<\/option>                    <option value=\"22k\">22k<\/option>                    <option value=\"18k\">18k<\/option>                    <option value=\"14k\">14k<\/option>                    <option value=\"9k\">9k<\/option>                <\/select>\n            <\/div>\n\n            <label for=\"weight\">Poids (g) :<\/label>\n            <input type=\"number\" step=\"0.01\" id=\"weight\" value=\"1\" \/>\n\n            <div>Estimation :<\/div>\n            <strong id=\"estimation-result\">-- \u20ac<\/strong>\n        <\/form>\n    <\/div>\n\n    <script type=\"application\/json\" id=\"metalRatesJson\">{\"XAU_24k\":123.61,\"XAU_22k\":113.31,\"XAU_18k\":92.71,\"XAU_14k\":72.11,\"XAU_9k\":0,\"XAG\":2.04,\"XPT\":52.38,\"XPD\":36.22}<\/script>\n    <script>\n        (function() {\n            const rates = JSON.parse(document.getElementById('metalRatesJson').textContent);\n            const margin = 10;\n            const metalSelect = document.getElementById('metal');\n            const caratGroup = document.getElementById('carat-group');\n            const caratSelect = document.getElementById('carat');\n            const weightInput = document.getElementById('weight');\n            const resultDisplay = document.getElementById('estimation-result');\n\n            function getSelectedRate() {\n                const metal = metalSelect.value;\n                if (metal === 'XAU') {\n                    const carat = caratSelect.value;\n                    return rates[`XAU_${carat}`] || null;\n                } else {\n                    return rates[metal] || null;\n                }\n            }\n\n            function updateCaratVisibility() {\n                caratGroup.style.display = (metalSelect.value === 'XAU') ? 'block' : 'none';\n                calculate();\n            }\n\n            function calculate() {\n                const weight = parseFloat(weightInput.value);\n                const rate = getSelectedRate();\n                if (!isNaN(weight) && rate) {\n                    const brut = weight * rate;\n                    const net = brut * (1 - (margin \/ 100));\n                    resultDisplay.textContent = net.toFixed(2) + ' \u20ac';\n                } else {\n                    resultDisplay.textContent = '-- \u20ac';\n                }\n            }\n\n            metalSelect.addEventListener('change', updateCaratVisibility);\n            caratSelect.addEventListener('change', calculate);\n            weightInput.addEventListener('input', calculate);\n            updateCaratVisibility();\ncalculate();\n        })();\n    <\/script>\n    \n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Estimez le prix de votre bien facilement Gr\u00e2ce \u00e0 notre outil en ligne, vous pouvez pr\u00e9-estimer le prix de votre objet facilement sur notre site. &#8230; <a title=\"Estimation\" class=\"read-more\" href=\"https:\/\/numigold.fr\/index.php\/estimation\/\" aria-label=\"En savoir plus sur Estimation\">Lire plus<\/a><\/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-1745","page","type-page","status-publish"],"_links":{"self":[{"href":"https:\/\/numigold.fr\/index.php\/wp-json\/wp\/v2\/pages\/1745","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/numigold.fr\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/numigold.fr\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/numigold.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/numigold.fr\/index.php\/wp-json\/wp\/v2\/comments?post=1745"}],"version-history":[{"count":3,"href":"https:\/\/numigold.fr\/index.php\/wp-json\/wp\/v2\/pages\/1745\/revisions"}],"predecessor-version":[{"id":1823,"href":"https:\/\/numigold.fr\/index.php\/wp-json\/wp\/v2\/pages\/1745\/revisions\/1823"}],"wp:attachment":[{"href":"https:\/\/numigold.fr\/index.php\/wp-json\/wp\/v2\/media?parent=1745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}