{"id":69,"date":"2026-02-01T11:12:38","date_gmt":"2026-02-01T11:12:38","guid":{"rendered":"https:\/\/www.myclinia.com\/?page_id=69"},"modified":"2026-06-14T10:14:32","modified_gmt":"2026-06-14T10:14:32","slug":"homeo-chat","status":"publish","type":"page","link":"https:\/\/www.myclinia.com\/es\/homeo-chat\/","title":{"rendered":"Phytoth\u00e9rapie &amp; Hom\u00e9opathie : Votre Expert Nature | MyClinia"},"content":{"rendered":"<p class=\"wp-block-paragraph\"><\/p>\n\n\n    \n    <style>\n        .clinia-homeo-card {\n            transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);\n            border: 1px solid #f1f5f9;\n        }\n        .clinia-homeo-card:hover {\n            transform: translateY(-5px);\n            box-shadow: 0 15px 30px rgba(22, 163, 74, 0.08) !important;\n            border-color: #16a34a !important;\n        }\n        #clinia-chat-container-homeo { \n            animation: fadeInHomeo 0.8s ease-out; \n        }\n        @keyframes fadeInHomeo { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }\n        \n        .clinia-homeo-btn-send { transition: all 0.3s ease; background: #16a34a; }\n        .clinia-homeo-btn-send:hover { background: #15803d !important; transform: scale(1.05); }\n        \n        .trust-badge-green {\n            display: inline-flex;\n            align-items: center;\n            gap: 5px;\n            background: #f0fdf4;\n            color: #166534;\n            padding: 6px 14px;\n            border-radius: 20px;\n            font-size: 0.85em;\n            font-weight: 600;\n            margin-bottom: 15px;\n        }\n    <\/style>\n\n    <div style=\"max-width: 850px; margin: 0 auto 30px auto; font-family: 'Segoe UI', Roboto, sans-serif; padding: 10px;\">\n        <div style=\"text-align: center; margin-bottom: 40px;\">\n            <div class=\"trust-badge-green\">\ud83c\udf3f Expertise Naturelle Certifi\u00e9e<\/div>\n            <h1 style=\"color: #166534; font-size: 2.2em; margin-bottom: 15px; font-weight: 800;\">Votre sant\u00e9 au naturel<\/h1>\n            <p style=\"font-size: 1.1em; color: #4b5563; line-height: 1.6; max-width: 700px; margin: 0 auto;\">\n                Acc\u00e9dez instantan\u00e9ment \u00e0 des conseils experts en m\u00e9decine douce. Que ce soit pour le sommeil, le stress ou les maux du quotidien, <strong>trouvez ici votre r\u00e9ponse naturelle.<\/strong>\n            <\/p>\n        <\/div>\n\n        <div style=\"display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-bottom: 30px;\">\n            <div class=\"clinia-homeo-card\" style=\"flex: 1; min-width: 260px; background: #ffffff; padding: 25px; border-radius: 20px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.02);\">\n                <div style=\"font-size: 40px; margin-bottom: 10px;\">\ud83c\udf43<\/div>\n                <h4 style=\"color: #16a34a; margin: 0 0 10px 0; font-size: 1.15em; font-weight:700;\">Conseil Phyto\/Hom\u00e9o<\/h4>\n                <p style=\"font-size: 0.9em; color: #64748b; margin: 0; line-height: 1.4;\">Analyse imm\u00e9diate de vos besoins pour une orientation naturelle 24h\/24.<\/p>\n            <\/div>\n            <div class=\"clinia-homeo-card\" style=\"flex: 1; min-width: 260px; background: #f0fdf4; padding: 25px; border-radius: 20px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.02);\">\n                <div style=\"font-size: 40px; margin-bottom: 10px;\">\ud83d\udee1\ufe0f<\/div>\n                <h4 style=\"color: #16a34a; margin: 0 0 10px 0; font-size: 1.15em; font-weight:700;\">S\u00e9curit\u00e9 Maximale<\/h4>\n                <p style=\"font-size: 0.9em; color: #64748b; margin: 0; line-height: 1.4;\">Validation par un pharmacien d\u00e8s que votre situation devient sp\u00e9cifique.<\/p>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <div id=\"clinia-chat-container-homeo\" style=\"max-width:650px; margin:20px auto; font-family: sans-serif; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 25px 50px rgba(22,163,74,0.15);\">\n        \n        <div style=\"background: #16a34a; padding: 20px; display: flex; align-items: center; gap: 15px; color: white;\">\n            <div style=\"width: 48px; height: 48px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 4px 8px rgba(0,0,0,0.1);\">\ud83c\udf3f<\/div>\n            <div>\n                <div style=\"font-weight: bold; font-size: 1.1em;\">Assistant Phyto & Hom\u00e9o<\/div>\n                <div style=\"font-size: 0.85em; opacity: 0.9;\">Expertise MyClinia & Pharmahomeo<\/div>\n            <\/div>\n        <\/div>\n        \n        <div id=\"clinia-log-homeo\" style=\"height:420px; padding:25px; overflow-y:auto; background:#f8fafc;\">\n            <div style=\"margin-bottom:20px;\">\n                <span style=\"background:white; color:#1f2937; padding:12px 16px; border-radius:18px 18px 18px 4px; display:inline-block; max-width:85%; box-shadow: 0 2px 5px rgba(0,0,0,0.03);\">\n                    Bonjour ! Je suis votre conseiller en solutions naturelles. Comment puis-je vous guider ?\n                <\/span>\n            <\/div>\n        <\/div>\n        \n        <div id=\"clinia-pro-suggestion-homeo\" style=\"display:none; padding:25px; background:white; border-top:3px solid #16a34a; text-align:center; animation: slideUp 0.4s ease-out;\">\n            <p style=\"margin-bottom:15px; font-weight:600; color:#111827; font-size: 1.05em; line-height:1.4;\">\n                Besoin d\u2019une validation m\u00e9dicale ? Ne restez pas dans le doute. Pour un protocole complet ou une situation sp\u00e9cifique, connectez-vous avec un pharmacien via notre <strong>Chat Premium<\/strong> para asegurar su proceso de atenci\u00f3n m\u00e9dica.\n            <\/p>\n            \n            <button id=\"btn-go-premium-homeo\" style=\"background:#16a34a; color:white; padding:15px 28px; border:none; border-radius:15px; cursor:pointer; font-weight:bold; width: 100%; font-size: 1.1em; transition: 0.3s; box-shadow: 0 4px 10px rgba(22,163,74,0.2);\">\n                Acc\u00e9der au Chat Premium\n            <\/button>\n\n            <p style=\"text-align: center; font-size: 13px; color: #64748b; margin-top: 15px; font-style: italic;\">\n                ... ou continuez \u00e0 discuter gratuitement ci-dessous\n            <\/p>\n        <\/div>\n\n        <div style=\"display:flex; gap:12px; padding:20px; background:#fff; border-top:1px solid #f1f5f9; align-items:center;\">\n            <input type=\"text\" id=\"clinia-user-input-homeo\" placeholder=\"Votre question (ex: Sommeil, Arnica...)\" style=\"flex:1; padding:14px; border:1px solid #e2e8f0; border-radius:12px; outline:none;\">\n            <button class=\"clinia-homeo-btn-send\" onclick=\"sendHomeoMessage()\" style=\"height: 50px; width: 50px; color:white; border:none; border-radius:12px; cursor:pointer; font-weight:bold; display:flex; align-items:center; justify-content:center; font-size:20px;\">\u27a4<\/button>\n        <\/div>\n    <\/div>\n\n    <script>\n    document.addEventListener('DOMContentLoaded', function() {\n        const inputH = document.getElementById('clinia-user-input-homeo');\n        if(inputH) {\n            inputH.addEventListener('keypress', function (e) {\n                if (e.key === 'Enter') { e.preventDefault(); sendHomeoMessage(); }\n            });\n        }\n    });\n\n    async function sendHomeoMessage() {\n        const input = document.getElementById('clinia-user-input-homeo');\n        const log = document.getElementById('clinia-log-homeo');\n        const msg = input.value.trim();\n        if(!msg) return;\n\n        log.innerHTML += `<div style=\"text-align:right; margin-bottom:20px;\"><span style=\"background:#16a34a; color:white; padding:12px 16px; border-radius:18px 18px 4px 18px; display:inline-block; max-width:80%; box-shadow: 0 4px 10px rgba(22,163,74,0.1);\">${msg}<\/span><\/div>`;\n        input.value = '';\n        log.scrollTop = log.scrollHeight;\n\n        try {\n            const response = await fetch('\/wp-json\/clinia\/v1\/chat-homeo', {\n                method: 'POST',\n                headers: {'Content-Type': 'application\/json'},\n                body: JSON.stringify({ message: msg })\n            });\n            const data = await response.json();\n            log.innerHTML += `<div style=\"margin-bottom:20px;\"><span style=\"background:white; color:#1f2937; padding:12px 16px; border-radius:18px 18px 18px 4px; display:inline-block; max-width:85%; box-shadow: 0 2px 5px rgba(0,0,0,0.03);\">${data.answer}<\/span><\/div>`;\n            log.scrollTop = log.scrollHeight;\n\n            if(data.pro_suggestion && data.pro_suggestion.status === 'show_button') {\n                const suggBox = document.getElementById('clinia-pro-suggestion-homeo');\n                if(suggBox) {\n                    suggBox.style.display = 'block';\n                    document.getElementById('btn-go-premium-homeo').onclick = () => window.location.href = \"\/choix-parcours\/\";\n                    log.scrollTop = log.scrollHeight;\n                }\n            }\n        } catch (e) { console.error(\"Erreur:\", e); }\n    }\n    <\/script>","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":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","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-69","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.myclinia.com\/es\/wp-json\/wp\/v2\/pages\/69","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myclinia.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.myclinia.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.myclinia.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myclinia.com\/es\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":11,"href":"https:\/\/www.myclinia.com\/es\/wp-json\/wp\/v2\/pages\/69\/revisions"}],"predecessor-version":[{"id":199,"href":"https:\/\/www.myclinia.com\/es\/wp-json\/wp\/v2\/pages\/69\/revisions\/199"}],"wp:attachment":[{"href":"https:\/\/www.myclinia.com\/es\/wp-json\/wp\/v2\/media?parent=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}