{"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-03-28T15:27:47","modified_gmt":"2026-03-28T14:27:47","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=\"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\n  .reservation-calendly h2 {\n    margin: 0 0 10px;\n  }\n\n  .reservation-calendly p {\n    margin: 0 0 20px;\n    color: #666;\n  }\n\n  .form-row {\n    margin-bottom: 18px;\n  }\n\n  .form-row label {\n    display: block;\n    margin-bottom: 8px;\n    font-weight: 700;\n  }\n\n  .form-row select {\n    width: 100%;\n    padding: 12px;\n    border: 1px solid #d0d0d0;\n    border-radius: 10px;\n    font-size: 16px;\n    background: #fff;\n  }\n\n  .prix {\n    margin: 20px 0;\n    font-size: 22px;\n    font-weight: 700;\n  }\n\n  #btn-reserver {\n    width: 100%;\n    padding: 14px;\n    border: none;\n    border-radius: 10px;\n    background: #000;\n    color: #fff;\n    font-size: 16px;\n    cursor: pointer;\n  }\n\n  #btn-reserver:hover {\n    opacity: 0.9;\n  }\n<\/style>\n\n<script>\ndocument.addEventListener('DOMContentLoaded', function () {\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    '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      '2h-1': 'https:\/\/calendly.com\/contact-ttsv68\/2-heure-25-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      '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      '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      '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 updatePrix() {\n    const d = duree.value;\n    const p = personnes.value;\n    const prix = tarifs[d][p];\n    prixAffiche.textContent = 'Prix : ' + formatPrix(prix);\n  }\n\n  function goToCalendly() {\n    const key = duree.value + '-' + personnes.value;\n    const mode = paiement.value;\n    const url = liensCalendly[mode] && liensCalendly[mode][key];\n\n    if (url) {\n      window.location.href = url;\n    } else {\n      alert('Le lien Calendly correspondant est introuvable.');\n    }\n  }\n\n  duree.addEventListener('change', updatePrix);\n  personnes.addEventListener('change', updatePrix);\n  paiement.addEventListener('change', updatePrix);\n  btnReserver.addEventListener('click', goToCalendly);\n\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 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":14,"href":"https:\/\/www.ttsv68.fr\/index.php\/wp-json\/wp\/v2\/pages\/236\/revisions"}],"predecessor-version":[{"id":307,"href":"https:\/\/www.ttsv68.fr\/index.php\/wp-json\/wp\/v2\/pages\/236\/revisions\/307"}],"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}]}}