{"id":236,"date":"2026-03-22T14:54:21","date_gmt":"2026-03-22T13:54:21","guid":{"rendered":"https:\/\/www.ttsv68.fr\/?page_id=236"},"modified":"2026-05-01T10:39:36","modified_gmt":"2026-05-01T08:39:36","slug":"reservation","status":"publish","type":"page","link":"https:\/\/www.ttsv68.fr\/index.php\/reservation\/","title":{"rendered":"R\u00e9servation"},"content":{"rendered":"\n<div class=\"reservation-calendly\">\n  <h2>R\u00e9server une s\u00e9ance<\/h2>\n  <p>Choisissez la dur\u00e9e, le nombre de personnes et le mode de paiement.<\/p>\n\n  <div class=\"form-row\">\n    <label for=\"duree\">Dur\u00e9e<\/label>\n    <select id=\"duree\">\n      <option value=\"1h\">1 heure<\/option>\n      <option value=\"2h\">2 heures<\/option>\n      <option value=\"abo-2h\">Abonnement 2 heures<\/option>\n      <option value=\"ce-2h\">CE 2 heures<\/option>\n      <option value=\"demi-journee\">Demi-journ\u00e9e<\/option>\n    <\/select>\n  <\/div>\n\n  <div class=\"form-row\">\n    <label for=\"personnes\">Nombre de personnes<\/label>\n    <select id=\"personnes\">\n      <option value=\"1\">1 personne<\/option>\n      <option value=\"2\">2 personnes<\/option>\n      <option value=\"3\">3 personnes<\/option>\n      <option value=\"4\">4 personnes<\/option>\n    <\/select>\n  <\/div>\n\n  <div class=\"form-row\">\n    <label for=\"paiement\">Mode de paiement<\/label>\n    <select id=\"paiement\">\n      <option value=\"stripe\">Stripe (CB)<\/option>\n      <option value=\"paypal\">PayPal<\/option>\n    <\/select>\n  <\/div>\n\n  <div class=\"prix\" id=\"prix-affiche\">Prix : 25 \u20ac<\/div>\n\n  <button id=\"btn-reserver\" type=\"button\">R\u00e9server<\/button>\n<\/div>\n\n<style>\n.reservation-calendly {\n  max-width: 520px;\n  margin: 40px auto;\n  padding: 30px;\n  border-radius: 16px;\n  background: #f7f7f7;\n  box-shadow: 0 8px 25px rgba(0,0,0,0.08);\n  font-family: Arial, sans-serif;\n}\n.form-row { margin-bottom: 18px; }\n.form-row label { display:block; margin-bottom:8px; font-weight:700; }\n.form-row select {\n  width:100%; padding:12px; border:1px solid #d0d0d0;\n  border-radius:10px; font-size:16px; background:#fff;\n}\n.prix { margin:20px 0; font-size:22px; font-weight:700; }\n#btn-reserver {\n  width:100%; padding:14px; border:none;\n  border-radius:10px; background:#000; color:#fff;\n  font-size:16px; cursor:pointer;\n}\n#btn-reserver:hover { opacity:0.9; }\n<\/style>\n\n<script>\ndocument.addEventListener('DOMContentLoaded', function () {\n\n  const duree = document.getElementById('duree');\n  const personnes = document.getElementById('personnes');\n  const paiement = document.getElementById('paiement');\n  const prixAffiche = document.getElementById('prix-affiche');\n  const btnReserver = document.getElementById('btn-reserver');\n\n  const tarifs = {\n    '1h': { 1: 25, 2: 50, 3: 75, 4: 100 },\n    '2h': { 1: 50, 2: 100, 3: 150, 4: 200 },\n    'abo-2h': { 1: 25 },\n    'ce-2h': { 1: 37.5, 2: 75, 3: 105, 4: 140 },\n    'demi-journee': { 1: 75, 2: 150, 3: 225, 4: 300 }\n  };\n\n  const liensCalendly = {\n    stripe: {\n      '1h-1': 'https:\/\/calendly.com\/contact-ttsv68\/1-heure-25-euros-par-personne-stripe',\n      '1h-2': 'https:\/\/calendly.com\/contact-ttsv68\/1-heure-50-euros-par--deux-personnes-stripe',\n      '1h-3': 'https:\/\/calendly.com\/contact-ttsv68\/1-heure-75-euros-pour-trois-personnes-stipe',\n      '1h-4': 'https:\/\/calendly.com\/contact-ttsv68\/1-heure-100-euros-pour-quatre-personnes-stripe',\n\n      '2h-1': 'https:\/\/calendly.com\/contact-ttsv68\/2-heure-50-euros-par-personne-stripe',\n      '2h-2': 'https:\/\/calendly.com\/contact-ttsv68\/2-heure-100-euros-pour-deux-personnes-stripe',\n      '2h-3': 'https:\/\/calendly.com\/contact-ttsv68\/2-heure-150-euros-pour-trois-personnes-stripe',\n      '2h-4': 'https:\/\/calendly.com\/contact-ttsv68\/2-heure-200-euros-pour-quatre-personnes-stripe',\n\n      'abo-2h-1': 'https:\/\/calendly.com\/contact-ttsv68\/abo-2h-pour-une-personne-stripe',\n\n      'ce-2h-1': 'https:\/\/calendly.com\/contact-ttsv68\/ce-2-heure-37-5-euros-par-personne-stripe',\n      'ce-2h-2': 'https:\/\/calendly.com\/contact-ttsv68\/ce-2-heure-75-euros-pour-deux-personnes-stripe',\n      'ce-2h-3': 'https:\/\/calendly.com\/contact-ttsv68\/ce-2-heure-105-euros-pour-trois-personnes-stripe',\n      'ce-2h-4': 'https:\/\/calendly.com\/contact-ttsv68\/ce-2-heure-140-euros-pour-quatre-personnes-stripe',\n\n      'demi-journee-1': 'https:\/\/calendly.com\/contact-ttsv68\/demi-journee-75-euros-par-personne-stripe',\n      'demi-journee-2': 'https:\/\/calendly.com\/contact-ttsv68\/demi-journee-150-euros-pour-deux-personne-stripe',\n      'demi-journee-3': 'https:\/\/calendly.com\/contact-ttsv68\/demi-journee-225-euros-pour-trois-personnes-stripe',\n      'demi-journee-4': 'https:\/\/calendly.com\/contact-ttsv68\/demi-journee-300-euros-pour-quatre-personnes-stripe'\n    },\n    paypal: {\n      '1h-1': 'https:\/\/calendly.com\/contact-ttsv68\/1-heure-25-euros-par-personne-paypal',\n      '1h-2': 'https:\/\/calendly.com\/contact-ttsv68\/1-heure-50-euros-pour-deux-personnes-paypal',\n      '1h-3': 'https:\/\/calendly.com\/contact-ttsv68\/1-heure-75-euros-pour-trois-personnes-paypal',\n      '1h-4': 'https:\/\/calendly.com\/contact-ttsv68\/1-heure-100-euros-pour-quatre-personnes-paypal',\n\n      '2h-1': 'https:\/\/calendly.com\/contact-ttsv68\/2-heure-50-euros-par-personne-paypal',\n      '2h-2': 'https:\/\/calendly.com\/contact-ttsv68\/2-heure-100-euros-pour-deux-personnes-paypal',\n      '2h-3': 'https:\/\/calendly.com\/contact-ttsv68\/2-heure-150-euros-pour-trois-personnes-paypal',\n      '2h-4': 'https:\/\/calendly.com\/contact-ttsv68\/2-heure-200-euros-pour-quatre-personnes-paypal',\n\n      'abo-2h-1': 'https:\/\/calendly.com\/contact-ttsv68\/abo-2h-pour-une-personne-paypal',\n\n      'ce-2h-1': 'https:\/\/calendly.com\/contact-ttsv68\/ce-2-heure-37-50-euros-par-personne-paypal',\n      'ce-2h-2': 'https:\/\/calendly.com\/contact-ttsv68\/ce-2-heure-75-euros-pour-deux-personnes-paypal',\n      'ce-2h-3': 'https:\/\/calendly.com\/contact-ttsv68\/ce-2-heure-105-euros-pour-trois-personnes-paypal',\n      'ce-2h-4': 'https:\/\/calendly.com\/contact-ttsv68\/ce-2-heure-140-euros-pour-quatre-personnes-paypal',\n\n      'demi-journee-1': 'https:\/\/calendly.com\/contact-ttsv68\/demi-journee-75-euros-par-personne-paypal',\n      'demi-journee-2': 'https:\/\/calendly.com\/contact-ttsv68\/demi-journee-150-euros-pour-deux-personnes-paypal',\n      'demi-journee-3': 'https:\/\/calendly.com\/contact-ttsv68\/demi-journee-225-euros-pour-trois-personnes-paypal',\n      'demi-journee-4': 'https:\/\/calendly.com\/contact-ttsv68\/demi-journee-300-euros-pour-quatre-personnes-paypal'\n    }\n  };\n\n  function formatPrix(prix) {\n    return Number.isInteger(prix)\n      ? prix + ' \u20ac'\n      : prix.toFixed(2).replace('.', ',') + ' \u20ac';\n  }\n\n  function handlePersonnes() {\n    if (duree.value === 'abo-2h') {\n      personnes.value = '1';\n      personnes.disabled = true;\n    } else {\n      personnes.disabled = false;\n    }\n  }\n\n  function updatePrix() {\n    const d = duree.value;\n    const p = personnes.value;\n\n    if (!tarifs[d] || !tarifs[d][p]) {\n      prixAffiche.textContent = 'Prix : \u2014';\n      return;\n    }\n\n    prixAffiche.textContent = 'Prix : ' + formatPrix(tarifs[d][p]);\n  }\n\n  function goToCalendly() {\n    const key = duree.value + '-' + personnes.value;\n    const mode = paiement.value;\n    const url = liensCalendly[mode]?.[key];\n\n    if (url) {\n      window.location.href = url;\n    } else {\n      alert('Lien indisponible.');\n    }\n  }\n\n  duree.addEventListener('change', () => {\n    handlePersonnes();\n    updatePrix();\n  });\n\n  personnes.addEventListener('change', updatePrix);\n  paiement.addEventListener('change', updatePrix);\n  btnReserver.addEventListener('click', goToCalendly);\n\n  handlePersonnes();\n  updatePrix();\n});\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>R\u00e9server une s\u00e9ance Choisissez la dur\u00e9e, le nombre de personnes et le mode de paiement. Dur\u00e9e 1 heure2 heuresAbonnement 2 heuresCE 2 heuresDemi-journ\u00e9e Nombre de personnes 1 personne2 personnes3 personnes4 personnes Mode de paiement Stripe (CB)PayPal Prix : 25 \u20ac R\u00e9server<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-236","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ttsv68.fr\/index.php\/wp-json\/wp\/v2\/pages\/236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ttsv68.fr\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.ttsv68.fr\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.ttsv68.fr\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ttsv68.fr\/index.php\/wp-json\/wp\/v2\/comments?post=236"}],"version-history":[{"count":15,"href":"https:\/\/www.ttsv68.fr\/index.php\/wp-json\/wp\/v2\/pages\/236\/revisions"}],"predecessor-version":[{"id":350,"href":"https:\/\/www.ttsv68.fr\/index.php\/wp-json\/wp\/v2\/pages\/236\/revisions\/350"}],"wp:attachment":[{"href":"https:\/\/www.ttsv68.fr\/index.php\/wp-json\/wp\/v2\/media?parent=236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}