{
  "version": "0.4",
  "title": "SmartPOS AI Pro - Reproduction Complète du Site",
  "type": "page",
  "content": [
    {
      "id": "sp_main_sec",
      "elType": "section",
      "settings": {
        "stretch_section": "section-stretched",
        "layout": "full_width",
        "background_background": "classic",
        "background_color": "#020617",
        "padding": {
          "unit": "px",
          "top": "20",
          "right": "24",
          "bottom": "20",
          "left": "24",
          "isLinked": false
        }
      },
      "elements": [
        {
          "id": "sp_col_1",
          "elType": "column",
          "settings": {
            "_column_size": 100
          },
          "elements": [
            {
              "id": "sp_widget_html",
              "elType": "widget",
              "widgetType": "html",
              "settings": {
                "html": "\n<!-- SmartPOS AI Pro - Reproduction Complète du Site -->\n<div id=\"smartpos-full-site\" style=\"font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background-color: #020617; color: #f8fafc; min-height: 100vh; line-height: 1.6; margin: 0; padding: 0;\">\n\n  <!-- NAVIGATION HEADER -->\n  <header style=\"position: sticky; top: 0; z-index: 50; background: rgba(2, 6, 23, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid #1e293b; padding: 14px 24px;\">\n    <div style=\"max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;\">\n      <div style=\"display: flex; align-items: center; gap: 12px;\">\n        <div style=\"background: linear-gradient(135deg, #10b981, #059669); color: #020617; font-weight: 900; font-size: 18px; padding: 6px 14px; border-radius: 10px; display: flex; align-items: center; gap: 6px;\">\n          <span>⚡</span> SmartPOS AI\n        </div>\n        <span style=\"font-size: 11px; background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); padding: 3px 8px; border-radius: 9999px; font-weight: 700;\">v3.4 NF525</span>\n      </div>\n      <nav style=\"display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 600;\">\n        <a href=\"#fonctionnalites\" style=\"color: #94a3b8; text-decoration: none;\">Fonctionnalités</a>\n        <a href=\"#terminal-pos\" style=\"color: #94a3b8; text-decoration: none;\">Terminal POS</a>\n        <a href=\"#woocommerce\" style=\"color: #94a3b8; text-decoration: none;\">WooCommerce</a>\n        <a href=\"#certifications\" style=\"color: #94a3b8; text-decoration: none;\">NF525</a>\n        <a href=\"#tarifs\" style=\"color: #94a3b8; text-decoration: none;\">Tarifs</a>\n        <a href=\"#terminal-pos\" style=\"background: #10b981; color: #020617; padding: 8px 16px; border-radius: 8px; text-decoration: none; font-weight: 700;\">Tester la Démo</a>\n      </nav>\n    </div>\n  </header>\n\n  <!-- HERO SECTION -->\n  <section style=\"padding: 80px 24px 60px; max-width: 1280px; margin: 0 auto; text-align: center; position: relative;\">\n    <div style=\"display: inline-flex; align-items: center; gap: 8px; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: #10b981; padding: 6px 16px; border-radius: 9999px; font-size: 12px; font-weight: 700; margin-bottom: 24px;\">\n      <span>✨</span> NOUVELLE VERSION 3.4 — ENCAISSEMENT TACTILE ULTRA-RAPIDE WOOCOMMERCE\n    </div>\n    <h1 style=\"font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.15; margin: 0 0 20px; color: #ffffff; letter-spacing: -0.02em;\">\n      Le Système de Caisse Tactile &amp; IA <br/><span style=\"color: #10b981;\">Directement Connecté à WooCommerce</span>\n    </h1>\n    <p style=\"font-size: 18px; color: #94a3b8; max-width: 780px; margin: 0 auto 36px; line-height: 1.6;\">\n      Synchronisation temps réel des stocks, gestion multi-boutiques, impression thermique ESC/POS 80mm et conformité fiscale NF525 (Article 88 de la Loi Anti-Fraude TVA).\n    </p>\n    <div style=\"display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 50px;\">\n      <a href=\"#terminal-pos\" style=\"background: #10b981; color: #020617; font-weight: 800; font-size: 15px; padding: 14px 28px; border-radius: 12px; text-decoration: none; box-shadow: 0 10px 25px rgba(16, 185, 129, 0.25);\">\n        ⚡ Lancer le Terminal de Caisse\n      </a>\n      <a href=\"#tarifs\" style=\"background: #0f172a; color: #f8fafc; font-weight: 700; font-size: 15px; padding: 14px 28px; border-radius: 12px; text-decoration: none; border: 1px solid #334155;\">\n        Voir les Tarifs &amp; Licences\n      </a>\n    </div>\n\n    <!-- STATS / METRICS -->\n    <div style=\"display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; max-width: 1000px; margin: 0 auto; text-align: left;\">\n      <div style=\"background: #0f172a; border: 1px solid #1e293b; padding: 20px; border-radius: 16px;\">\n        <div style=\"font-size: 28px; font-weight: 900; color: #10b981;\">0.05s</div>\n        <div style=\"font-size: 13px; color: #94a3b8; margin-top: 4px;\">Temps de synchronisation REST API</div>\n      </div>\n      <div style=\"background: #0f172a; border: 1px solid #1e293b; padding: 20px; border-radius: 16px;\">\n        <div style=\"font-size: 28px; font-weight: 900; color: #38bdf8;\">100%</div>\n        <div style=\"font-size: 13px; color: #94a3b8; margin-top: 4px;\">Conforme NF525 &amp; Loi Anti-Fraude</div>\n      </div>\n      <div style=\"background: #0f172a; border: 1px solid #1e293b; padding: 20px; border-radius: 16px;\">\n        <div style=\"font-size: 28px; font-weight: 900; color: #a855f7;\">Offline</div>\n        <div style=\"font-size: 13px; color: #94a3b8; margin-top: 4px;\">Mode PWA sans connexion internet</div>\n      </div>\n      <div style=\"background: #0f172a; border: 1px solid #1e293b; padding: 20px; border-radius: 16px;\">\n        <div style=\"font-size: 28px; font-weight: 900; color: #f59e0b;\">15 000+</div>\n        <div style=\"font-size: 13px; color: #94a3b8; margin-top: 4px;\">Tickets émis quotidiennement</div>\n      </div>\n    </div>\n  </section>\n\n  <!-- LIVE INTERACTIVE POS TERMINAL -->\n  <section id=\"terminal-pos\" style=\"padding: 40px 24px 80px; max-width: 1280px; margin: 0 auto;\">\n    <div style=\"text-align: center; margin-bottom: 32px;\">\n      <span style=\"font-size: 12px; font-weight: 700; color: #10b981; letter-spacing: 0.1em; text-transform: uppercase;\">INTERFACE TACTILE DIRECTE</span>\n      <h2 style=\"font-size: 32px; font-weight: 900; margin: 8px 0; color: #fff;\">Terminal de Caisse Interactif</h2>\n      <p style=\"color: #94a3b8; font-size: 15px;\">Testez l'encaissement, les remises, le calcul de TVA et l'impression de ticket ci-dessous.</p>\n    </div>\n\n    <!-- EMBEDDED POS APP -->\n    <div style=\"border: 1px solid #334155; border-radius: 20px; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);\">\n      \n<div id=\"smartpos-standalone-app\" style=\"font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #f8fafc; background: #020617; border-radius: 16px; border: 1px solid #1e293b; padding: 24px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); width: 100%; box-sizing: border-box;\">\n  <style>\n    #smartpos-standalone-app p:empty { display: none !important; margin: 0 !important; padding: 0 !important; }\n    #smartpos-standalone-app > p { display: none !important; margin: 0 !important; padding: 0 !important; }\n    #smartpos-standalone-app br { display: none !important; }\n    #smartpos-standalone-app * { box-sizing: border-box; }\n    .sp-pos-layout {\n      display: flex !important;\n      flex-direction: row !important;\n      gap: 24px !important;\n      width: 100% !important;\n      align-items: flex-start !important;\n    }\n    @media (max-width: 991px) {\n      .sp-pos-layout { flex-direction: column !important; }\n      .sp-pos-cart-col { width: 100% !important; min-width: 100% !important; }\n    }\n    .sp-pos-catalog {\n      flex: 1 1 0% !important;\n      min-width: 0 !important;\n      width: 100% !important;\n    }\n    .sp-pos-cart-col {\n      width: 380px !important;\n      min-width: 320px !important;\n      flex-shrink: 0 !important;\n    }\n    .sp-products-grid {\n      display: grid !important;\n      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;\n      gap: 14px !important;\n      width: 100% !important;\n    }\n  </style>\n\n  <!-- Header Bar -->\n  <div style=\"display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #1e293b; padding-bottom: 18px; margin-bottom: 24px; flex-wrap: wrap; gap: 14px;\">\n    <div style=\"display: flex; align-items: center; gap: 14px;\">\n      <div style=\"background: linear-gradient(135deg, #10b981, #059669); color: white; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: bold; box-shadow: 0 4px 12px rgba(16,185,129,0.3);\">⚡</div>\n      <div>\n        <h2 style=\"margin: 0; font-size: 20px; font-weight: 700; color: #f8fafc; letter-spacing: -0.02em;\">SmartPOS AI Pro</h2>\n        <div style=\"margin: 2px 0 0 0; font-size: 12px; color: #94a3b8;\">Caisse Enregistreuse Tactile &bull; WooCommerce Sync &bull; NF525</div>\n      </div>\n    </div>\n    <div style=\"display: flex; align-items: center; gap: 12px; flex-wrap: wrap;\">\n      <span style=\"display: inline-flex; align-items: center; gap: 6px; background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); padding: 6px 12px; border-radius: 9999px; font-size: 12px; font-weight: 600;\">\n        <span style=\"width: 8px; height: 8px; background: #10b981; border-radius: 50%; display: inline-block;\"></span> Connecté WooCommerce\n      </span>\n      <span style=\"background: #0f172a; color: #cbd5e1; border: 1px solid #334155; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 500;\">Caisse #01 &bull; Vendeur Principal</span>\n    </div>\n  </div>\n\n  <!-- Main POS Split: Products Grid (Left) + Live Cart / Ticket (Right) -->\n  <div class=\"sp-pos-layout\">\n    <!-- Products Column -->\n    <div class=\"sp-pos-catalog\">\n      <!-- Categories Bar -->\n      <div style=\"display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 6px;\">\n        <button onclick=\"smartposFilter('all')\" class=\"sp-cat-btn active\" style=\"background: #10b981; color: #020617; font-weight: 700; border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 13px;\">Tous les articles</button>\n        <button onclick=\"smartposFilter('boissons')\" class=\"sp-cat-btn\" style=\"background: #0f172a; color: #cbd5e1; border: 1px solid #1e293b; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 13px;\">Boissons</button>\n        <button onclick=\"smartposFilter('boulangerie')\" class=\"sp-cat-btn\" style=\"background: #0f172a; color: #cbd5e1; border: 1px solid #1e293b; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 13px;\">Boulangerie</button>\n        <button onclick=\"smartposFilter('plats')\" class=\"sp-cat-btn\" style=\"background: #0f172a; color: #cbd5e1; border: 1px solid #1e293b; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 13px;\">Plats cuisinés</button>\n        <button onclick=\"smartposFilter('desserts')\" class=\"sp-cat-btn\" style=\"background: #0f172a; color: #cbd5e1; border: 1px solid #1e293b; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 13px;\">Desserts</button>\n      </div>\n\n      <!-- Products Grid -->\n      <div id=\"smartpos-items-grid\" class=\"sp-products-grid\">\n        <!-- Item 1 -->\n        <div onclick=\"smartposAddToCart('Expresso Grand Cru', 2.20, '5.5%')\" style=\"background: #0f172a; border: 1px solid #1e293b; border-radius: 12px; padding: 14px; cursor: pointer; transition: all 0.2s; user-select: none;\" onmouseover=\"this.style.borderColor='#10b981'; this.style.transform='translateY(-2px)';\" onmouseout=\"this.style.borderColor='#1e293b'; this.style.transform='translateY(0)';\">\n          <div style=\"font-size: 28px; margin-bottom: 8px;\">☕</div>\n          <div style=\"font-size: 14px; font-weight: 600; color: #f8fafc;\">Expresso Grand Cru</div>\n          <div style=\"font-size: 11px; color: #64748b; margin-bottom: 8px;\">TVA 5.5% &bull; Réf #101</div>\n          <div style=\"font-size: 16px; font-weight: 700; color: #10b981;\">2,20 €</div>\n        </div>\n\n        <!-- Item 2 -->\n        <div onclick=\"smartposAddToCart('Croissant au Beurre', 1.60, '5.5%')\" style=\"background: #0f172a; border: 1px solid #1e293b; border-radius: 12px; padding: 14px; cursor: pointer; transition: all 0.2s; user-select: none;\" onmouseover=\"this.style.borderColor='#10b981'; this.style.transform='translateY(-2px)';\" onmouseout=\"this.style.borderColor='#1e293b'; this.style.transform='translateY(0)';\">\n          <div style=\"font-size: 28px; margin-bottom: 8px;\">🥐</div>\n          <div style=\"font-size: 14px; font-weight: 600; color: #f8fafc;\">Croissant au Beurre</div>\n          <div style=\"font-size: 11px; color: #64748b; margin-bottom: 8px;\">TVA 5.5% &bull; Réf #102</div>\n          <div style=\"font-size: 16px; font-weight: 700; color: #10b981;\">1,60 €</div>\n        </div>\n\n        <!-- Item 3 -->\n        <div onclick=\"smartposAddToCart('Sandwich Club Poulet', 6.50, '10%')\" style=\"background: #0f172a; border: 1px solid #1e293b; border-radius: 12px; padding: 14px; cursor: pointer; transition: all 0.2s; user-select: none;\" onmouseover=\"this.style.borderColor='#10b981'; this.style.transform='translateY(-2px)';\" onmouseout=\"this.style.borderColor='#1e293b'; this.style.transform='translateY(0)';\">\n          <div style=\"font-size: 28px; margin-bottom: 8px;\">🥪</div>\n          <div style=\"font-size: 14px; font-weight: 600; color: #f8fafc;\">Club Poulet Avocat</div>\n          <div style=\"font-size: 11px; color: #64748b; margin-bottom: 8px;\">TVA 10% &bull; Réf #103</div>\n          <div style=\"font-size: 16px; font-weight: 700; color: #10b981;\">6,50 €</div>\n        </div>\n\n        <!-- Item 4 -->\n        <div onclick=\"smartposAddToCart('Tartelette Framboise', 4.50, '5.5%')\" style=\"background: #0f172a; border: 1px solid #1e293b; border-radius: 12px; padding: 14px; cursor: pointer; transition: all 0.2s; user-select: none;\" onmouseover=\"this.style.borderColor='#10b981'; this.style.transform='translateY(-2px)';\" onmouseout=\"this.style.borderColor='#1e293b'; this.style.transform='translateY(0)';\">\n          <div style=\"font-size: 28px; margin-bottom: 8px;\">🥧</div>\n          <div style=\"font-size: 14px; font-weight: 600; color: #f8fafc;\">Tartelette Framboise</div>\n          <div style=\"font-size: 11px; color: #64748b; margin-bottom: 8px;\">TVA 5.5% &bull; Réf #104</div>\n          <div style=\"font-size: 16px; font-weight: 700; color: #10b981;\">4,50 €</div>\n        </div>\n\n        <!-- Item 5 -->\n        <div onclick=\"smartposAddToCart('Jus d\\'Orange Pressé', 3.80, '10%')\" style=\"background: #0f172a; border: 1px solid #1e293b; border-radius: 12px; padding: 14px; cursor: pointer; transition: all 0.2s; user-select: none;\" onmouseover=\"this.style.borderColor='#10b981'; this.style.transform='translateY(-2px)';\" onmouseout=\"this.style.borderColor='#1e293b'; this.style.transform='translateY(0)';\">\n          <div style=\"font-size: 28px; margin-bottom: 8px;\">🍊</div>\n          <div style=\"font-size: 14px; font-weight: 600; color: #f8fafc;\">Jus d'Orange Frais</div>\n          <div style=\"font-size: 11px; color: #64748b; margin-bottom: 8px;\">TVA 10% &bull; Réf #105</div>\n          <div style=\"font-size: 16px; font-weight: 700; color: #10b981;\">3,80 €</div>\n        </div>\n\n        <!-- Item 6 -->\n        <div onclick=\"smartposAddToCart('Salade César Gourmande', 8.90, '10%')\" style=\"background: #0f172a; border: 1px solid #1e293b; border-radius: 12px; padding: 14px; cursor: pointer; transition: all 0.2s; user-select: none;\" onmouseover=\"this.style.borderColor='#10b981'; this.style.transform='translateY(-2px)';\" onmouseout=\"this.style.borderColor='#1e293b'; this.style.transform='translateY(0)';\">\n          <div style=\"font-size: 28px; margin-bottom: 8px;\">🥗</div>\n          <div style=\"font-size: 14px; font-weight: 600; color: #f8fafc;\">Salade César Bio</div>\n          <div style=\"font-size: 11px; color: #64748b; margin-bottom: 8px;\">TVA 10% &bull; Réf #106</div>\n          <div style=\"font-size: 16px; font-weight: 700; color: #10b981;\">8,90 €</div>\n        </div>\n      </div>\n    </div>\n\n    <!-- Live Ticket & Payment Column -->\n    <div class=\"sp-pos-cart-col\" style=\"background: #0f172a; border: 1px solid #1e293b; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between;\">\n      <div>\n        <div style=\"display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #1e293b; padding-bottom: 12px; margin-bottom: 12px;\">\n          <span style=\"font-size: 14px; font-weight: 700; color: #f8fafc; text-transform: uppercase; letter-spacing: 0.05em;\">Ticket En Cours</span>\n          <button onclick=\"smartposClearCart()\" style=\"background: transparent; color: #ef4444; border: none; font-size: 11px; cursor: pointer; text-decoration: underline;\">Vider</button>\n        </div>\n\n        <div id=\"smartpos-cart-items\" style=\"min-height: 180px; max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;\">\n          <div id=\"smartpos-empty-msg\" style=\"color: #64748b; font-size: 13px; text-align: center; margin-top: 60px;\">\n            Le panier est vide.<br>Touchez un article pour l'ajouter.\n          </div>\n        </div>\n      </div>\n\n      <div>\n        <!-- Totals breakdown -->\n        <div style=\"border-top: 1px dashed #334155; padding-top: 12px; margin-bottom: 14px;\">\n          <div style=\"display: flex; justify-content: space-between; font-size: 12px; color: #94a3b8; margin-bottom: 4px;\">\n            <span>Total Hors Taxe (HT)</span>\n            <span id=\"sp-total-ht\">0,00 €</span>\n          </div>\n          <div style=\"display: flex; justify-content: space-between; font-size: 12px; color: #94a3b8; margin-bottom: 8px;\">\n            <span>TVA Collectée (5.5% / 10%)</span>\n            <span id=\"sp-total-tva\">0,00 €</span>\n          </div>\n          <div style=\"display: flex; justify-content: space-between; font-size: 20px; font-weight: 800; color: #10b981; border-top: 1px solid #1e293b; padding-top: 8px;\">\n            <span>TOTAL TTC</span>\n            <span id=\"sp-total-ttc\">0,00 €</span>\n          </div>\n        </div>\n\n        <!-- Payment buttons -->\n        <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px;\">\n          <button onclick=\"smartposPay('Carte Bancaire')\" style=\"background: #1e293b; color: #f8fafc; border: 1px solid #334155; padding: 12px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer;\">💳 CB / TPE</button>\n          <button onclick=\"smartposPay('Espèces')\" style=\"background: #1e293b; color: #f8fafc; border: 1px solid #334155; padding: 12px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer;\">💵 Espèces</button>\n        </div>\n        <button onclick=\"smartposPay('Ticket Restaurant')\" style=\"width: 100%; background: #10b981; color: #020617; border: none; padding: 14px; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; margin-bottom: 8px;\">⚡ Encaisser la commande</button>\n        \n        <div style=\"text-align: center; font-size: 10px; color: #64748b;\">\n          Conformité Loi Anti-Fraude TVA NF525 &bull; Signature Numérique\n        </div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<script>\nwindow.smartposCart = [];\n\nfunction smartposAddToCart(title, price, tva) {\n  var item = window.smartposCart.find(function(i) { return i.title === title; });\n  if (item) {\n    item.qty++;\n  } else {\n    window.smartposCart.push({ title: title, price: price, tva: tva, qty: 1 });\n  }\n  smartposRenderCart();\n}\n\nfunction smartposRemoveOne(title) {\n  var item = window.smartposCart.find(function(i) { return i.title === title; });\n  if (item) {\n    item.qty--;\n    if (item.qty <= 0) {\n      window.smartposCart = window.smartposCart.filter(function(i) { return i.title !== title; });\n    }\n  }\n  smartposRenderCart();\n}\n\nfunction smartposClearCart() {\n  window.smartposCart = [];\n  smartposRenderCart();\n}\n\nfunction smartposRenderCart() {\n  var container = document.getElementById('smartpos-cart-items');\n  if (!container) return;\n  if (window.smartposCart.length === 0) {\n    container.innerHTML = '<div id=\"smartpos-empty-msg\" style=\"color: #64748b; font-size: 13px; text-align: center; margin-top: 60px;\">Le panier est vide.<br>Touchez un article pour l\\'ajouter.</div>';\n    document.getElementById('sp-total-ht').innerText = '0,00 €';\n    document.getElementById('sp-total-tva').innerText = '0,00 €';\n    document.getElementById('sp-total-ttc').innerText = '0,00 €';\n    return;\n  }\n\n  var html = '';\n  var totalTTC = 0;\n  var totalHT = 0;\n\n  window.smartposCart.forEach(function(item) {\n    var lineTotal = item.price * item.qty;\n    totalTTC += lineTotal;\n    var tvaRate = parseFloat(item.tva) / 100;\n    var lineHT = lineTotal / (1 + tvaRate);\n    totalHT += lineHT;\n\n    html += '<div style=\"display: flex; justify-content: space-between; align-items: center; background: #020617; padding: 8px 12px; border-radius: 8px; border: 1px solid #1e293b;\">';\n    html += '<div><div style=\"font-size: 13px; font-weight: 600; color: #f8fafc;\">' + item.title + '</div><div style=\"font-size: 11px; color: #64748b;\">' + item.qty + ' × ' + item.price.toFixed(2) + ' €</div></div>';\n    html += '<div style=\"display: flex; align-items: center; gap: 8px;\">';\n    html += '<span style=\"font-weight: 700; color: #10b981; font-size: 13px;\">' + lineTotal.toFixed(2) + ' €</span>';\n    html += '<button onclick=\"smartposRemoveOne(\\'' + item.title.replace(/'/g, \"\\'\") + '\\')\" style=\"background: #1e293b; color: #94a3b8; border: none; width: 22px; height: 22px; border-radius: 4px; cursor: pointer;\">-</button>';\n    html += '</div></div>';\n  });\n\n  container.innerHTML = html;\n  var totalTVA = totalTTC - totalHT;\n  document.getElementById('sp-total-ht').innerText = totalHT.toFixed(2).replace('.', ',') + ' €';\n  document.getElementById('sp-total-tva').innerText = totalTVA.toFixed(2).replace('.', ',') + ' €';\n  document.getElementById('sp-total-ttc').innerText = totalTTC.toFixed(2).replace('.', ',') + ' €';\n}\n\nfunction smartposPay(method) {\n  if (window.smartposCart.length === 0) {\n    alert('Veuillez ajouter des articles au panier avant d\\'encaisser.');\n    return;\n  }\n  var total = document.getElementById('sp-total-ttc').innerText;\n  alert('✅ Paiement validé par ' + method + ' pour un montant de ' + total + ' !\\nTicket conforme NF525 généré avec succès.');\n  smartposClearCart();\n}\n\nfunction smartposFilter(cat) {\n  var buttons = document.querySelectorAll('.sp-cat-btn');\n  buttons.forEach(function(b) {\n    b.style.background = '#0f172a';\n    b.style.color = '#cbd5e1';\n  });\n  if (window.event && window.event.target) {\n    window.event.target.style.background = '#10b981';\n    window.event.target.style.color = '#020617';\n  }\n}\n</script>\n\n    </div>\n  </section>\n\n  <!-- FEATURES GRID -->\n  <section id=\"fonctionnalites\" style=\"padding: 80px 24px; max-width: 1280px; margin: 0 auto; border-top: 1px solid #1e293b;\">\n    <div style=\"text-align: center; margin-bottom: 60px;\">\n      <span style=\"font-size: 12px; font-weight: 700; color: #38bdf8; letter-spacing: 0.1em; text-transform: uppercase;\">ARCHITECTURE ROBUSTE</span>\n      <h2 style=\"font-size: 36px; font-weight: 900; margin: 8px 0; color: #fff;\">Conçu pour les Boutiques &amp; la Vente au Comptoir</h2>\n      <p style=\"color: #94a3b8; font-size: 16px; max-width: 600px; margin: 0 auto;\">Tout ce dont un commerçant a besoin pour gérer la caisse, les stocks et la comptabilité sans friction.</p>\n    </div>\n\n    <div style=\"display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px;\">\n      <div style=\"background: #0f172a; border: 1px solid #1e293b; padding: 32px; border-radius: 20px;\">\n        <div style=\"width: 48px; height: 48px; border-radius: 12px; background: rgba(16,185,129,0.15); color: #10b981; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 20px;\">⚡</div>\n        <h3 style=\"font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 12px;\">Synchronisation REST API v3</h3>\n        <p style=\"color: #94a3b8; font-size: 14px; margin: 0; line-height: 1.6;\">Chaque vente physique décrémente instantanément le stock WooCommerce en ligne. Fini les ventes de produits en rupture de stock.</p>\n      </div>\n      <div style=\"background: #0f172a; border: 1px solid #1e293b; padding: 32px; border-radius: 20px;\">\n        <div style=\"width: 48px; height: 48px; border-radius: 12px; background: rgba(56,189,248,0.15); color: #38bdf8; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 20px;\">🛡️</div>\n        <h3 style=\"font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 12px;\">Certifié NF525 &amp; Loi Anti-Fraude</h3>\n        <p style=\"color: #94a3b8; font-size: 14px; margin: 0; line-height: 1.6;\">Signature cryptographique SHA-256 de chaque encaissement, journal inaltérable des événements et grand livre de caisse prêt pour le contrôle fiscal.</p>\n      </div>\n      <div style=\"background: #0f172a; border: 1px solid #1e293b; padding: 32px; border-radius: 20px;\">\n        <div style=\"width: 48px; height: 48px; border-radius: 12px; background: rgba(168,85,247,0.15); color: #a855f7; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 20px;\">🖨️</div>\n        <h3 style=\"font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 12px;\">Impression Thermique ESC/POS</h3>\n        <p style=\"color: #94a3b8; font-size: 14px; margin: 0; line-height: 1.6;\">Compatible avec toutes les imprimantes de tickets 80mm et 58mm (Epson, Star Micronics, Munbyn) en USB, Bluetooth et réseau Ethernet.</p>\n      </div>\n      <div style=\"background: #0f172a; border: 1px solid #1e293b; padding: 32px; border-radius: 20px;\">\n        <div style=\"width: 48px; height: 48px; border-radius: 12px; background: rgba(245,158,11,0.15); color: #f59e0b; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 20px;\">📶</div>\n        <h3 style=\"font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 12px;\">Mode Hors-Ligne Résilient</h3>\n        <p style=\"color: #94a3b8; font-size: 14px; margin: 0; line-height: 1.6;\">Votre connexion internet saute en plein coup de feu ? Le terminal continue d'encaisser et synchronise automatiquement dès le retour du réseau.</p>\n      </div>\n      <div style=\"background: #0f172a; border: 1px solid #1e293b; padding: 32px; border-radius: 20px;\">\n        <div style=\"width: 48px; height: 48px; border-radius: 12px; background: rgba(236,72,153,0.15); color: #ec4899; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 20px;\">🤖</div>\n        <h3 style=\"font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 12px;\">IA &amp; Prédiction des Ventes</h3>\n        <p style=\"color: #94a3b8; font-size: 14px; margin: 0; line-height: 1.6;\">Algorithmes intégrés prédisant vos besoins de réassort, les heures de pointe et recommandant des ventes complémentaires au caissier.</p>\n      </div>\n      <div style=\"background: #0f172a; border: 1px solid #1e293b; padding: 32px; border-radius: 20px;\">\n        <div style=\"width: 48px; height: 48px; border-radius: 12px; background: rgba(34,197,94,0.15); color: #22c55e; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 20px;\">👥</div>\n        <h3 style=\"font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 12px;\">Multi-Caissiers &amp; Clôture Z</h3>\n        <p style=\"color: #94a3b8; font-size: 14px; margin: 0; line-height: 1.6;\">Connexion rapide par code PIN caissier, gestion du fond de caisse, écarts de caisse et génération automatique du rapport journalier Z.</p>\n      </div>\n    </div>\n  </section>\n\n  <!-- WOOCOMMERCE SYNC SECTION -->\n  <section id=\"woocommerce\" style=\"padding: 80px 24px; max-width: 1280px; margin: 0 auto; border-top: 1px solid #1e293b;\">\n    <div style=\"display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 48px; align-items: center;\">\n      <div>\n        <span style=\"font-size: 12px; font-weight: 700; color: #a855f7; letter-spacing: 0.1em; text-transform: uppercase;\">CONNEXION DIRECTE</span>\n        <h2 style=\"font-size: 36px; font-weight: 900; margin: 8px 0 20px; color: #fff;\">Vos Produits WooCommerce Disponibles Instantanément</h2>\n        <p style=\"color: #94a3b8; font-size: 15px; margin-bottom: 24px; line-height: 1.7;\">\n          Pas besoin de réimporter ou ressaisir vos articles : le terminal SmartPOS lit directement votre base de données WooCommerce, gère les variations de produits (tailles, couleurs), les codes-barres SKU et les fiches clients.\n        </p>\n        <ul style=\"list-style: none; padding: 0; margin: 0 0 32px; space-y: 12px;\">\n          <li style=\"display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; color: #e2e8f0;\"><span style=\"color:#10b981;\">✓</span> Gestion des déclinaisons &amp; attributs variables</li>\n          <li style=\"display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; color: #e2e8f0;\"><span style=\"color:#10b981;\">✓</span> Synchronisation des clients &amp; points de fidélité</li>\n          <li style=\"display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; color: #e2e8f0;\"><span style=\"color:#10b981;\">✓</span> Prise en charge des codes promos &amp; remises manuelles</li>\n        </ul>\n      </div>\n      <div style=\"background: #0f172a; border: 1px solid #1e293b; border-radius: 20px; padding: 28px;\">\n        <div style=\"display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;\">\n          <span style=\"font-weight: 800; font-size: 15px;\">Flux WooCommerce REST API v3</span>\n          <span style=\"font-size: 11px; background: rgba(16,185,129,0.15); color: #10b981; padding: 4px 10px; border-radius: 9999px; font-weight: 700;\">Connecté</span>\n        </div>\n        <div style=\"font-family: monospace; font-size: 12px; background: #020617; border: 1px solid #1e293b; padding: 16px; border-radius: 12px; color: #38bdf8; line-height: 1.8;\">\n          <div>&gt; GET /wp-json/wc/v3/products?per_page=100</div>\n          <div style=\"color: #10b981;\">&lt; 200 OK (24 ms) - 148 articles synchronisés</div>\n          <div>&gt; POST /wp-json/wc/v3/orders [Ticket #1042]</div>\n          <div style=\"color: #10b981;\">&lt; 201 Created (18 ms) - Stock décrémenté</div>\n          <div style=\"color: #94a3b8;\">&gt; Signature NF525: 7a9e8...c3b2 (Scellée)</div>\n        </div>\n      </div>\n    </div>\n  </section>\n\n  <!-- CERTIFICATION NF525 -->\n  <section id=\"certifications\" style=\"padding: 80px 24px; max-width: 1280px; margin: 0 auto; border-top: 1px solid #1e293b;\">\n    <div style=\"background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95)); border: 2px solid rgba(16, 185, 129, 0.3); border-radius: 24px; padding: 48px 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px; align-items: center;\">\n      <div>\n        <div style=\"display: inline-flex; align-items: center; gap: 8px; background: rgba(16, 185, 129, 0.15); color: #10b981; padding: 6px 14px; border-radius: 9999px; font-size: 12px; font-weight: 800; margin-bottom: 16px;\">\n          LEGAL &amp; FISCAL\n        </div>\n        <h2 style=\"font-size: 32px; font-weight: 900; color: #fff; margin: 0 0 16px;\">Conforme à la Loi Anti-Fraude TVA 2018</h2>\n        <p style=\"color: #94a3b8; font-size: 15px; line-height: 1.7; margin: 0 0 20px;\">\n          En France, l'article 88 de la Loi de Finances n° 2015-1785 impose aux commerçants assujettis à la TVA d'utiliser un système de caisse satisfaisant à des conditions d'inaltérabilité, de sécurisation, de conservation et d'archivage.\n        </p>\n        <p style=\"color: #cbd5e1; font-size: 14px; font-weight: 600;\">\n          Une attestation individuelle de conformité de l'éditeur est fournie avec chaque licence.\n        </p>\n      </div>\n      <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 16px;\">\n        <div style=\"background: #020617; border: 1px solid #1e293b; padding: 20px; border-radius: 16px;\">\n          <div style=\"font-size: 20px; margin-bottom: 8px;\">🔒</div>\n          <div style=\"font-weight: 700; color: #fff; font-size: 14px;\">Inaltérabilité</div>\n          <div style=\"font-size: 12px; color: #94a3b8; margin-top: 4px;\">Chaînage cryptographique SHA-256 sans modification possible.</div>\n        </div>\n        <div style=\"background: #020617; border: 1px solid #1e293b; padding: 20px; border-radius: 16px;\">\n          <div style=\"font-size: 20px; margin-bottom: 8px;\">📜</div>\n          <div style=\"font-weight: 700; color: #fff; font-size: 14px;\">Archivage 6 ans</div>\n          <div style=\"font-size: 12px; color: #94a3b8; margin-top: 4px;\">Grand livre exportable en XML scellé pour l'administration.</div>\n        </div>\n        <div style=\"background: #020617; border: 1px solid #1e293b; padding: 20px; border-radius: 16px;\">\n          <div style=\"font-size: 20px; margin-bottom: 8px;\">🛡️</div>\n          <div style=\"font-weight: 700; color: #fff; font-size: 14px;\">Sécurisation</div>\n          <div style=\"font-size: 12px; color: #94a3b8; margin-top: 4px;\">Chaque ligne de vente porte une signature unique horodatée.</div>\n        </div>\n        <div style=\"background: #020617; border: 1px solid #1e293b; padding: 20px; border-radius: 16px;\">\n          <div style=\"font-size: 20px; margin-bottom: 8px;\">📋</div>\n          <div style=\"font-weight: 700; color: #fff; font-size: 14px;\">Ticket Z &amp; X</div>\n          <div style=\"font-size: 12px; color: #94a3b8; margin-top: 4px;\">Clôtures journalières, mensuelles et annuelles automatiques.</div>\n        </div>\n      </div>\n    </div>\n  </section>\n\n  <!-- PRICING SECTION -->\n  <section id=\"tarifs\" style=\"padding: 80px 24px; max-width: 1280px; margin: 0 auto; border-top: 1px solid #1e293b;\">\n    <div style=\"text-align: center; margin-bottom: 60px;\">\n      <span style=\"font-size: 12px; font-weight: 700; color: #10b981; letter-spacing: 0.1em; text-transform: uppercase;\">OFFRES &amp; LICENCES</span>\n      <h2 style=\"font-size: 36px; font-weight: 900; margin: 8px 0; color: #fff;\">Des Tarifs Simples et Transparents</h2>\n      <p style=\"color: #94a3b8; font-size: 16px; max-width: 600px; margin: 0 auto;\">Choisissez la licence adaptée à la taille de votre point de vente.</p>\n    </div>\n\n    <div style=\"display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px;\">\n      <!-- Starter -->\n      <div style=\"background: #0f172a; border: 1px solid #1e293b; border-radius: 20px; padding: 36px; display: flex; flex-direction: column; justify-content: space-between;\">\n        <div>\n          <h3 style=\"font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 8px;\">Licence Starter</h3>\n          <p style=\"color: #94a3b8; font-size: 13px; margin: 0 0 24px;\">Pour 1 boutique ou food-truck indépendant.</p>\n          <div style=\"margin-bottom: 24px;\">\n            <span style=\"font-size: 40px; font-weight: 900; color: #fff;\">19€</span>\n            <span style=\"color: #94a3b8; font-size: 14px;\"> / mois</span>\n          </div>\n          <ul style=\"list-style: none; padding: 0; margin: 0; space-y: 12px; font-size: 14px; color: #cbd5e1;\">\n            <li style=\"margin-bottom: 10px;\">✓ 1 Caisse enregistreuse active</li>\n            <li style=\"margin-bottom: 10px;\">✓ Synchronisation WooCommerce illimitée</li>\n            <li style=\"margin-bottom: 10px;\">✓ Conformité NF525 &amp; Attestation</li>\n            <li style=\"margin-bottom: 10px;\">✓ Support par e-mail standard</li>\n          </ul>\n        </div>\n        <a href=\"#\" style=\"margin-top: 32px; display: block; text-align: center; background: #1e293b; color: #fff; padding: 12px; border-radius: 10px; font-weight: 700; text-decoration: none;\">Choisir Starter</a>\n      </div>\n\n      <!-- Pro (Highlighted) -->\n      <div style=\"background: linear-gradient(180deg, #0f172a, #020617); border: 2px solid #10b981; border-radius: 20px; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; position: relative;\">\n        <div style=\"position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: #10b981; color: #020617; font-weight: 800; font-size: 11px; padding: 4px 12px; border-radius: 9999px; text-transform: uppercase;\">\n          LE PLUS POPULAIRE\n        </div>\n        <div>\n          <h3 style=\"font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 8px;\">Licence Pro</h3>\n          <p style=\"color: #94a3b8; font-size: 13px; margin: 0 0 24px;\">Pour magasins de détail, restaurants et boutiques.</p>\n          <div style=\"margin-bottom: 24px;\">\n            <span style=\"font-size: 40px; font-weight: 900; color: #10b981;\">39€</span>\n            <span style=\"color: #94a3b8; font-size: 14px;\"> / mois</span>\n          </div>\n          <ul style=\"list-style: none; padding: 0; margin: 0; space-y: 12px; font-size: 14px; color: #cbd5e1;\">\n            <li style=\"margin-bottom: 10px;\">✓ Jusqu'à 3 Caisses en simultané</li>\n            <li style=\"margin-bottom: 10px;\">✓ Mode multi-vendeurs &amp; codes PIN</li>\n            <li style=\"margin-bottom: 10px;\">✓ Prédiction IA des stocks &amp; ventes</li>\n            <li style=\"margin-bottom: 10px;\">✓ Support prioritaire 7j/7</li>\n          </ul>\n        </div>\n        <a href=\"#\" style=\"margin-top: 32px; display: block; text-align: center; background: #10b981; color: #020617; padding: 12px; border-radius: 10px; font-weight: 800; text-decoration: none;\">Activer la Licence Pro</a>\n      </div>\n\n      <!-- Entreprise -->\n      <div style=\"background: #0f172a; border: 1px solid #1e293b; border-radius: 20px; padding: 36px; display: flex; flex-direction: column; justify-content: space-between;\">\n        <div>\n          <h3 style=\"font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 8px;\">Réseau &amp; Franchises</h3>\n          <p style=\"color: #94a3b8; font-size: 13px; margin: 0 0 24px;\">Pour chaînes de magasins et multi-sites.</p>\n          <div style=\"margin-bottom: 24px;\">\n            <span style=\"font-size: 40px; font-weight: 900; color: #fff;\">89€</span>\n            <span style=\"color: #94a3b8; font-size: 14px;\"> / mois</span>\n          </div>\n          <ul style=\"list-style: none; padding: 0; margin: 0; space-y: 12px; font-size: 14px; color: #cbd5e1;\">\n            <li style=\"margin-bottom: 10px;\">✓ Caisses illimitées</li>\n            <li style=\"margin-bottom: 10px;\">✓ Gestion centralisée multi-entrepôts</li>\n            <li style=\"margin-bottom: 10px;\">✓ API personnalisée &amp; intégration ERP</li>\n            <li style=\"margin-bottom: 10px;\">✓ Gestionnaire de compte dédié</li>\n          </ul>\n        </div>\n        <a href=\"#\" style=\"margin-top: 32px; display: block; text-align: center; background: #1e293b; color: #fff; padding: 12px; border-radius: 10px; font-weight: 700; text-decoration: none;\">Contacter l'Équipe</a>\n      </div>\n    </div>\n  </section>\n\n  <!-- FOOTER -->\n  <footer style=\"background: #010409; border-top: 1px solid #1e293b; padding: 48px 24px; color: #94a3b8; font-size: 13px;\">\n    <div style=\"max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; align-items: center;\">\n      <div>\n        <div style=\"color: #fff; font-weight: 800; font-size: 16px; margin-bottom: 6px;\">SmartPOS AI Pro</div>\n        <p style=\"margin: 0;\">La solution de caisse enregistreuse tactile intelligente certifiée NF525 pour WooCommerce.</p>\n      </div>\n      <div style=\"display: flex; gap: 20px; font-weight: 600;\">\n        <a href=\"#\" style=\"color: #94a3b8; text-decoration: none;\">Mentions Légales</a>\n        <a href=\"#\" style=\"color: #94a3b8; text-decoration: none;\">Conformité NF525</a>\n        <a href=\"#\" style=\"color: #94a3b8; text-decoration: none;\">Conditions Générales</a>\n        <a href=\"#\" style=\"color: #94a3b8; text-decoration: none;\">Support</a>\n      </div>\n    </div>\n    <div style=\"max-width: 1280px; margin: 24px auto 0; padding-top: 24px; border-top: 1px solid #0f172a; text-align: center; font-size: 12px; color: #64748b;\">\n      &copy; 2026 SmartPOS AI. Tous droits réservés. Conforme à l'article 88 de la Loi Anti-Fraude TVA 2018 (NF525 / LNE).\n    </div>\n  </footer>\n\n</div>\n"
              }
            }
          ]
        }
      ]
    }
  ]
}