{"id":453,"date":"2026-05-08T15:48:27","date_gmt":"2026-05-08T15:48:27","guid":{"rendered":"https:\/\/www.zerep.ch\/pro\/?page_id=453"},"modified":"2026-05-08T20:30:43","modified_gmt":"2026-05-08T20:30:43","slug":"valorise_1","status":"publish","type":"page","link":"https:\/\/www.zerep.ch\/pro\/index.php\/valorise_1\/","title":{"rendered":"Valorise_1"},"content":{"rendered":"\n<div class=\"wp-block-cover alignfull has-custom-content-position is-position-top-center has-medium-font-size wp-duotone-cf2e2e-ffffff-1\" style=\"border-width:14px;border-radius:24px;margin-top:var(--wp--preset--spacing--80);margin-bottom:var(--wp--preset--spacing--80);padding-top:var(--wp--preset--spacing--20);padding-right:var(--wp--preset--spacing--20);padding-bottom:var(--wp--preset--spacing--20);padding-left:var(--wp--preset--spacing--20)\"><span aria-hidden=\"true\" class=\"wp-block-cover__background has-ast-global-color-0-background-color has-background-dim-100 has-background-dim\"><\/span><div class=\"wp-block-cover__inner-container is-layout-flow wp-container-core-cover-is-layout-35ec2c3e wp-block-cover-is-layout-flow\">\n<figure class=\"wp-block-image alignright size-full is-resized has-custom-border is-style-rounded\" style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0\"><a href=\"https:\/\/www.zerep.ch\/pro\/index.php\/links\/\" target=\"_blank\" rel=\" noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"107\" height=\"45\" src=\"https:\/\/www.zerep.ch\/pro\/wp-content\/uploads\/2025\/08\/cropped-Zerep_ch.gif\" alt=\"www.zerep.ch\" class=\"has-border-color has-vivid-red-border-color wp-image-31\" style=\"border-width:5px;border-top-left-radius:11px;border-top-right-radius:11px;border-bottom-left-radius:11px;border-bottom-right-radius:11px;aspect-ratio:2.3784397163120565;width:151px;height:auto\"\/><\/a><\/figure>\n\n\n\n<p class=\"has-text-align-left wp-block-paragraph\" style=\"font-size:21px;text-transform:none\"><\/p>\n\n\n\n<div id=\"expertise-wp-container\" style=\"max-width: 650px; margin: 20px auto; font-family: 'Segoe UI', system-ui, sans-serif; border: 1px solid #e2e8f0; padding: 30px; border-radius: 20px; background: #ffffff; box-shadow: 0 15px 35px rgba(0,0,0,0.1); color: #1a202c;\">\n    \n    <!-- INTERFACE SAISIE (Masqu\u00e9e au PDF) -->\n    <div id=\"ui-form-section\">\n        <div style=\"text-align: center; margin-bottom: 25px;\">\n            <h2 style=\"color:#d32f2f; margin:0 0 5px 0; font-size: 1.6em;\">Valeur actuelle v\u00e9hicule<\/h2>\n            <p style=\"font-size: 13px; color: #718096;\">Estimation (CHF)<\/p>\n        <\/div>\n\n        <div style=\"margin-bottom: 20px;\">\n            <label style=\"display:block; font-size: 14px; font-weight: 700; margin-bottom: 8px;\">\ud83d\udcb0 Prix d&rsquo;achat neuf (CHF)<\/label>\n            <input type=\"number\" id=\"x_prix\" value=\"50000\" style=\"width:100%; padding: 14px; border: 2px solid #edf2f7; border-radius: 10px; font-size: 1.1em; box-sizing: border-box;\">\n        <\/div>\n\n        <div style=\"display: flex; gap: 15px; margin-bottom: 20px; flex-wrap: wrap;\">\n            <div style=\"flex:1; min-width: 200px;\">\n                <label style=\"display:block; font-size: 14px; font-weight: 700; margin-bottom: 8px;\">\ud83d\udcc5 Mise en circulation<\/label>\n                <input type=\"number\" id=\"x_annee\" value=\"2021\" style=\"width:100%; padding: 14px; border: 2px solid #edf2f7; border-radius: 10px; font-size: 1.1em; box-sizing: border-box;\">\n            <\/div>\n            <div style=\"flex:1; min-width: 200px;\">\n                <label style=\"display:block; font-size: 14px; font-weight: 700; margin-bottom: 8px;\">\u2728 \u00c9tat du v\u00e9hicule<\/label>\n                <select id=\"x_etat_select\" style=\"width:100%; padding: 10px 14px; border: 2px solid #edf2f7; border-radius: 10px; font-size: 1.1em; background:#fff; height: 53px; color:#000; appearance: auto !important;\">\n                    <option value=\"exceptionnel\">Rare (Collection)<\/option>\n                    <option value=\"standard\" selected>Standard (Normal)<\/option>\n                    <option value=\"usage\">Mauvais (Usag\u00e9)<\/option>\n                <\/select>\n            <\/div>\n        <\/div>\n\n        <details style=\"margin-bottom: 25px; border: 1px solid #edf2f7; border-radius: 10px; background: #fcfcfc;\">\n            <summary style=\"cursor:pointer; font-size: 12px; font-weight: 700; padding: 10px; color: #4a5568;\">\u2699\ufe0f Param\u00e8tres avanc\u00e9s<\/summary>\n            <div style=\"padding: 15px; display: flex; flex-direction: column; gap: 10px;\">\n                <div style=\"display: flex; gap: 15px;\">\n                    <div style=\"flex:1;\"><label style=\"font-size: 10px; font-weight:bold; color:#718096;\">D\u00e9cote An 1 (%)<\/label><input type=\"number\" id=\"x_t1\" value=\"35\" style=\"width:100%; padding: 5px;\"><\/div>\n                    <div style=\"flex:1;\"><label style=\"font-size: 10px; font-weight:bold; color:#718096;\">Suivantes (%)<\/label><input type=\"number\" id=\"x_ts\" value=\"10\" style=\"width:100%; padding: 5px;\"><\/div>\n                <\/div>\n                <div style=\"display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;\">\n                    <div><label style=\"font-size: 9px;\">Coef. Rare (%)<\/label><input type=\"number\" id=\"coef_exc\" value=\"110\" style=\"width:100%; padding: 5px;\"><\/div>\n                    <div><label style=\"font-size: 9px;\">Coef. Std (%)<\/label><input type=\"number\" id=\"coef_std\" value=\"100\" style=\"width:100%; padding: 5px;\"><\/div>\n                    <div><label style=\"font-size: 9px;\">Coef. Mauv (%)<\/label><input type=\"number\" id=\"coef_usa\" value=\"80\" style=\"width:100%; padding: 5px;\"><\/div>\n                <\/div>\n            <\/div>\n        <\/details>\n\n        <button onclick=\"genererExpertise()\" style=\"width:100%; background:#d32f2f; color:#fff; border:none; padding:18px; border-radius: 12px; cursor:pointer; font-weight:bold; font-size: 1.1em; transition: 0.3s;\">ESTIMER LA VALEUR ACHAT<\/button>\n    <\/div>\n\n    <!-- RAPPORT (Optimis\u00e9 pour Impression A4 Portrait) -->\n    <div id=\"x_printable\" style=\"display:none;\">\n        <div class=\"print-only-header\" style=\"display:none; text-align:center; border-bottom: 3px solid #d32f2f; padding-bottom: 15px; margin-bottom: 25px;\">\n            <h1 style=\"margin:0; font-size: 24px; color:#1a202c;\">ESTIMATION VALEUR<\/h1>\n            <p id=\"pdf-date\" style=\"margin:5px 0 0 0; color:#718096; font-size: 12px;\"><\/p>\n        <\/div>\n\n        <div style=\"display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; background: #f8fafc; padding: 15px; border-radius: 12px; border: 1px solid #e2e8f0; margin-bottom: 25px;\">\n            <div><small style=\"font-size: 10px; color:#a0aec0; text-transform:uppercase; font-weight:bold;\">Prix Neuf<\/small><br><strong id=\"rec_prix\" style=\"font-size:14px;\"><\/strong><\/div>\n            <div><small style=\"font-size: 10px; color:#a0aec0; text-transform:uppercase; font-weight:bold;\">Ann\u00e9e<\/small><br><strong id=\"rec_an\" style=\"font-size:14px;\"><\/strong><\/div>\n            <div><small style=\"font-size: 10px; color:#a0aec0; text-transform:uppercase; font-weight:bold;\">\u00c9tat<\/small><br><strong id=\"rec_etat\" style=\"font-size:14px;\"><\/strong><\/div>\n        <\/div>\n\n        <div style=\"text-align:center; padding:30px 15px; background:#fff5f5; border: 1px solid #feb2b2; border-radius:15px; margin-bottom: 30px;\">\n            <span style=\"text-transform: uppercase; font-size: 11px; color: #e53e3e; font-weight: 800; letter-spacing: 1.5px;\">Valeur de march\u00e9 estim\u00e9e<\/span>\n            <strong id=\"x_final\" style=\"font-size: 3em; color: #c53030; display:block; margin: 10px 0; line-height: 1;\">&#8211;<\/strong>\n            <div id=\"x_age_txt\" style=\"font-size: 14px; color: #4a5568; font-weight: 600;\"><\/div>\n        <\/div>\n\n        <div id=\"x_g_area\">\n            <h4 style=\"font-size:13px; color:#2d3748; margin-bottom:15px; text-align:center; text-transform:uppercase; letter-spacing:1px;\">D\u00e9pr\u00e9ciation sur 10 ans<\/h4>\n            <div style=\"display:flex; align-items: flex-end; height:180px; gap:8px; border-left: 2px solid #e2e8f0; border-bottom: 2px solid #e2e8f0; padding-left: 10px; margin-left: 45px; position: relative;\">\n                <div id=\"x_bars_container\" style=\"display:flex; align-items:flex-end; width:100%; height:100%; gap:8px;\"><\/div>\n                <span style=\"position: absolute; left: -45px; top: 0; font-size: 10px; color: #a0aec0; font-weight:bold;\">100%<\/span>\n                <span style=\"position: absolute; left: -45px; bottom: 0; font-size: 10px; color: #a0aec0; font-weight:bold;\">0%<\/span>\n            <\/div>\n            <div style=\"display: flex; justify-content: space-between; margin: 10px 0 0 55px; font-size: 10px; color: #718096; font-weight: bold; text-transform: uppercase;\">\n                <span>Neuf<\/span><span>2 ans<\/span><span>4 ans<\/span><span>6 ans<\/span><span>8 ans<\/span><span>10 ans<\/span>\n            <\/div>\n        <\/div>\n        \n        <p class=\"print-only-footer\" style=\"display:none; margin-top:30px; text-align:center; font-size:9px; color:#cbd5e0; font-style:italic;\">Estimation \u00e0 titre indicatif bas\u00e9e sur les donn\u00e9es du march\u00e9 Suisse (CHF).<\/p>\n    <\/div>\n\n    <!-- BOUTONS (Masqu\u00e9s au PDF) -->\n    <div id=\"x_actions\" style=\"display:none; margin-top: 25px; display: flex; gap: 10px;\">\n        <button onclick=\"window.print()\" style=\"flex:1; background: #2d3748; color: white; border: none; padding: 15px; border-radius: 10px; cursor: pointer; font-weight: bold;\">\ud83d\udda8\ufe0f T\u00e9l\u00e9charger le Rapport PDF<\/button>\n        <button onclick=\"location.reload()\" style=\"background: #edf2f7; border: none; padding: 15px; border-radius: 10px; cursor: pointer; color: #4a5568; font-weight:bold;\">Effacer<\/button>\n    <\/div>\n<\/div>\n\n<style>\n    @media print {\n        @page { size: portrait; margin: 1.5cm; }\n        body { background: white !important; }\n        #expertise-wp-container { border: none !important; box-shadow: none !important; max-width: 100% !important; margin: 0 !important; width: 100% !important; }\n        #ui-form-section, #x_actions, details, header, footer, .sidebar, .nav { display: none !important; }\n        #x_printable { display: block !important; visibility: visible !important; }\n        .print-only-header, .print-only-footer { display: block !important; }\n        #x_res_box { margin-top: 0 !important; }\n        * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }\n    }\n<\/style>\n\n<script>\nfunction genererExpertise() {\n    var p = parseFloat(document.getElementById('x_prix').value);\n    var a = parseInt(document.getElementById('x_annee').value);\n    var t1 = parseFloat(document.getElementById('x_t1').value)\/100;\n    var ts = parseFloat(document.getElementById('x_ts').value)\/100;\n    var cExc = parseFloat(document.getElementById('coef_exc').value)\/100;\n    var cStd = parseFloat(document.getElementById('coef_std').value)\/100;\n    var cUsa = parseFloat(document.getElementById('coef_usa').value)\/100;\n    \n    var age = new Date().getFullYear() - a;\n    if(!p || age < 0) { alert(\"Ann\u00e9e incorrecte.\"); return; }\n\n    var etatKey = document.getElementById('x_etat_select').value;\n    var coef = (etatKey === 'exceptionnel') ? cExc : (etatKey === 'usage' ? cUsa : cStd);\n\n    var points = [p]; var val = p;\n    for(var i=1; i<=10; i++) { val *= (i===1) ? (1-t1) : (1-ts); points.push(val); }\n\n    var vFinale = (age <= 10 ? points[age] : val) * coef;\n    var fmt = new Intl.NumberFormat('fr-CH', { style: 'currency', currency: 'CHF', maximumFractionDigits: 0 }).format(vFinale);\n\n    document.getElementById('rec_prix').innerText = p.toLocaleString() + \" CHF\";\n    document.getElementById('rec_an').innerText = a;\n    document.getElementById('rec_etat').innerText = document.getElementById('x_etat_select').options[document.getElementById('x_etat_select').selectedIndex].text;\n    document.getElementById('pdf-date').innerText = \"Estimation du \" + new Date().toLocaleDateString('fr-CH');\n    document.getElementById('x_final').innerText = fmt;\n    document.getElementById('x_age_txt').innerText = \"Analyse pour un v\u00e9hicule de \" + age + \" an(s)\";\n    \n    document.getElementById('x_printable').style.display = 'block';\n    document.getElementById('x_actions').style.display = 'flex';\n\n    var container = document.getElementById('x_bars_container');\n    container.innerHTML = '';\n    points.forEach(function(v, index) {\n        var hP = (v \/ p) * 100;\n        var barWrap = document.createElement('div');\n        barWrap.style = \"flex:1; height:100%; display:flex; align-items:flex-end;\";\n        var bar = document.createElement('div');\n        bar.style = \"width:100%; height:\" + hP + \"%; background:\" + (index === age ? \"#d32f2f\" : \"#fee2e2\") + \"; border-radius:4px 4px 0 0; transition: height 0.6s;\";\n        barWrap.appendChild(bar);\n        container.appendChild(barWrap);\n    });\n}\n<\/script>\n\n\n\n\n<p class=\"has-text-align-right wp-block-paragraph\">Jose(at)zerep.ch<\/p>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"left-sidebar","site-content-layout":"plain-container","ast-site-content-layout":"narrow-width-container","site-content-style":"unboxed","site-sidebar-style":"unboxed","ast-global-header-display":"disabled","ast-banner-title-visibility":"disabled","ast-main-header-display":"disabled","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"disabled","site-post-title":"disabled","ast-breadcrumbs-content":"disabled","ast-featured-img":"","footer-sml-layout":"disabled","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-453","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.zerep.ch\/pro\/index.php\/wp-json\/wp\/v2\/pages\/453","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zerep.ch\/pro\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.zerep.ch\/pro\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.zerep.ch\/pro\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zerep.ch\/pro\/index.php\/wp-json\/wp\/v2\/comments?post=453"}],"version-history":[{"count":17,"href":"https:\/\/www.zerep.ch\/pro\/index.php\/wp-json\/wp\/v2\/pages\/453\/revisions"}],"predecessor-version":[{"id":471,"href":"https:\/\/www.zerep.ch\/pro\/index.php\/wp-json\/wp\/v2\/pages\/453\/revisions\/471"}],"wp:attachment":[{"href":"https:\/\/www.zerep.ch\/pro\/index.php\/wp-json\/wp\/v2\/media?parent=453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}