{"id":172,"date":"2026-06-08T19:02:28","date_gmt":"2026-06-08T19:02:28","guid":{"rendered":"https:\/\/www.bmdogsitter.fr\/?page_id=172"},"modified":"2026-06-09T19:57:27","modified_gmt":"2026-06-09T19:57:27","slug":"reservation-grande-balade","status":"publish","type":"page","link":"https:\/\/www.bmdogsitter.fr\/?page_id=172","title":{"rendered":"R\u00e9servation &#8211; Grande balade"},"content":{"rendered":"\n<header class=\"bm-header\">\n  <div class=\"bm-header-inner\">\n    <a href=\"https:\/\/www.bmdogsitter.fr\" class=\"bm-logo\">BM Dog Sitter<\/a>\n\n    <nav class=\"bm-nav\">\n      <a href=\"https:\/\/www.bmdogsitter.fr\">Accueil<\/a>\n<a href=\"https:\/\/www.bmdogsitter.fr\/#services\">\n    Services et tarifs\n<\/a>\n<a href=\"https:\/\/www.bmdogsitter.fr\/#avis\">\n    Avis\n<\/a>\n<a href=\"https:\/\/www.bmdogsitter.fr\/#album\">\n    Album photo\n<\/a>\n<a href=\"https:\/\/www.bmdogsitter.fr\/#apropos\">\n    \u00c0 propos\n<\/a>\n      <a href=\"https:\/\/www.bmdogsitter.fr\/#services\" class=\"bm-reserve-btn\">R\u00e9server<\/a>\n    <\/nav>\n  <\/div>\n<\/header>\n\n<style>\n.bm-header {\n  width: 100vw;\n  margin-left: calc(50% - 50vw);\n  background: #F7F7F2;\n  border-bottom: 1px solid rgba(61, 130, 54, 0.15);\n  position: sticky;\n  top: 0;\n  z-index: 9999;\n}\n\n.bm-header-inner {\n  max-width: 1400px;\n  margin: 0 auto;\n  padding: 18px 32px;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 24px;\n}\n\n.bm-logo {\n  font-family: Georgia, \"Times New Roman\", serif;\n  font-size: 28px;\n  font-weight: 700;\n  color: #3D8236 !important;\n  text-decoration: none;\n  white-space: nowrap;\n}\n\n.bm-nav {\n  display: flex;\n  align-items: center;\n  gap: 28px;\n}\n\n.bm-nav a {\n  color: #3D8236 !important;\n  text-decoration: none;\n  font-size: 16px;\n  font-weight: 700;\n  transition: 0.25s ease;\n}\n\n.bm-nav a:hover {\n  color: #ff5b1a !important;\n}\n\n.bm-reserve-btn {\n  padding: 12px 22px;\n  background: #ffb6d9;\n  color: #333 !important;\n  border-radius: 999px;\n}\n\n.bm-reserve-btn:hover,\n.bm-reserve-btn:focus,\n.bm-reserve-btn:active {\n  background: #FFDDEC !important;\n  color: #3D8236 !important;\n  text-decoration: none !important;\n}\n\n@media (max-width: 900px) {\n  .bm-header-inner {\n    flex-direction: column;\n    padding: 16px 20px;\n  }\n\n  .bm-nav {\n    flex-wrap: wrap;\n    justify-content: center;\n    gap: 14px 20px;\n  }\n\n  .bm-nav a {\n    font-size: 15px;\n  }\n}\n<\/style>\n\n\n\n<section class=\"bm-booking-section\" id=\"reservation-grande-balade\">\n  <div class=\"bm-booking-card\">\n    <p class=\"bm-booking-eyebrow\">BM Dog Sitter<\/p>\n    <h2>R\u00e9server une grande balade<\/h2>\n    <p>S\u00e9lectionnez un ou plusieurs jours pour une grande balade de 3 heures.<\/p>\n\n    <form id=\"bm-booking-form-grande\">\n      <input type=\"text\" name=\"nom\" placeholder=\"Votre nom\" required>\n      <input type=\"email\" name=\"email\" placeholder=\"Votre email\" required>\n      <input type=\"tel\" name=\"telephone\" placeholder=\"Votre t\u00e9l\u00e9phone\" required>\n\n      <input type=\"hidden\" name=\"prestation\" value=\"Grande balade 3h\">\n      <input type=\"hidden\" name=\"jours_selectionnes\" id=\"jours_selectionnes_grande\">\n      <input type=\"hidden\" name=\"prix_total\" id=\"prix_total_grande\">\n\n      <div>\n        <label>Choisissez vos jours<\/label>\n        <div class=\"bm-days-grid\" id=\"bm-days-grid-grande\"><\/div>\n      <\/div>\n\n      <div class=\"bm-price-box\">\n        <span>Simulation du prix<\/span>\n        <strong id=\"bm-price-total-grande\">0 \u20ac<\/strong>\n        <small id=\"bm-price-detail-grande\">Aucun jour s\u00e9lectionn\u00e9<\/small>\n      <\/div>\n\n      <input type=\"text\" name=\"chien\" placeholder=\"Nom du chien\" required>\n      <input type=\"text\" name=\"race\" placeholder=\"Race \/ taille du chien\">\n\n      <textarea name=\"message\" placeholder=\"Informations importantes : allergies, sociabilit\u00e9, habitudes, horaires souhait\u00e9s...\" rows=\"5\"><\/textarea>\n\n      <button type=\"submit\">Envoyer ma demande<\/button>\n\n      <p id=\"bm-booking-response-grande\"><\/p>\n    <\/form>\n  <\/div>\n<\/section>\n\n<style>\n.bm-booking-section {\n  display: flex;\n  justify-content: center;\n  padding: 70px 20px;\n  background: #F6F7F2;\n  width: 100% !important;\n}\n\n.bm-booking-card {\n  width: 760px !important;\n  max-width: calc(100vw - 40px) !important;\n  margin: 0 auto !important;\n  background: var(--bm-rose);\n  border-radius: 28px;\n  padding: 42px;\n  box-shadow: 0 18px 45px rgba(0,0,0,0.08);\n  text-align: center;\n}\n\n.bm-booking-eyebrow {\n  color: #3D8236;\n  font-weight: 700;\n  text-transform: uppercase;\n  letter-spacing: 1px;\n  margin-bottom: 8px;\n}\n\n.bm-booking-card h2 {\n  color: #3D8236;\n  font-size: 36px;\n  margin: 0 0 12px;\n}\n\n#bm-booking-form-grande {\n  display: grid;\n  gap: 14px;\n}\n\n#bm-booking-form-grande input,\n#bm-booking-form-grande textarea {\n  width: 100%;\n  border: none;\n  border-radius: 16px;\n  padding: 15px 16px;\n  font-size: 16px;\n  background: #fff;\n  box-sizing: border-box;\n}\n\n#bm-booking-form-grande label {\n  font-weight: 700;\n  color: #3D8236;\n  margin-bottom: 8px;\n  display: block;\n}\n\n.bm-days-grid {\n  display: grid;\n  grid-template-columns: repeat(3, 1fr);\n  gap: 12px;\n}\n\n.bm-day-card {\n  cursor: pointer;\n  margin: 0 !important;\n}\n\n.bm-day-card input {\n  display: none;\n}\n\n.bm-day-card span {\n  display: block;\n  background: #fff;\n  border: 2px solid transparent;\n  border-radius: 20px;\n  padding: 15px 12px;\n  text-align: center;\n  color: #333;\n  box-shadow: 0 8px 20px rgba(0,0,0,0.06);\n  transition: all 0.25s ease;\n}\n\n.bm-day-card strong {\n  display: block;\n  color: #3D8236;\n  font-size: 18px;\n  margin-bottom: 3px;\n}\n\n.bm-day-card small {\n  font-size: 13px;\n  color: #666;\n}\n\n.bm-day-card:hover span {\n  transform: translateY(-2px);\n}\n\n.bm-day-card input:checked + span {\n  border-color: #3D8236;\n  background: #F6F7F2;\n  box-shadow: 0 10px 25px rgba(61,130,54,0.18);\n}\n\n.bm-day-card.bm-disabled {\n  cursor: not-allowed;\n  opacity: 0.45;\n}\n\n.bm-day-card.bm-disabled span {\n  background: #f1f1f1;\n  color: #999;\n  box-shadow: none;\n}\n\n.bm-day-card.bm-disabled:hover span {\n  transform: none;\n}\n\n.bm-day-card.bm-disabled strong,\n.bm-day-card.bm-disabled small {\n  color: #999;\n}\n\n.bm-price-box {\n  background: #fff;\n  border-radius: 22px;\n  padding: 20px;\n  margin-top: 4px;\n  border: 2px solid rgba(61,130,54,0.18);\n}\n\n.bm-price-box span {\n  display: block;\n  color: #3D8236;\n  font-weight: 700;\n  margin-bottom: 6px;\n}\n\n.bm-price-box strong {\n  display: block;\n  font-size: 32px;\n  color: #3D8236;\n}\n\n.bm-price-box small {\n  color: #555;\n}\n\n#bm-booking-form-grande button {\n  margin-top: 10px;\n  border: none;\n  border-radius: 999px;\n  padding: 16px 22px;\n  background: #3D8236;\n  color: #fff;\n  font-size: 17px;\n  font-weight: 700;\n  cursor: pointer;\n  transition: transform 0.2s ease, opacity 0.2s ease;\n}\n\n#bm-booking-form-grande button:hover {\n  transform: translateY(-2px);\n  opacity: 0.9;\n}\n\n#bm-booking-form-grande button:disabled {\n  opacity: 0.6;\n  cursor: not-allowed;\n}\n\n#bm-booking-response-grande {\n  font-weight: 700;\n  margin-top: 12px;\n}\n\n@media (max-width: 700px) {\n  .bm-days-grid {\n    grid-template-columns: repeat(2, 1fr);\n  }\n}\n\n@media (max-width: 600px) {\n  .bm-booking-card {\n    padding: 28px 20px;\n    border-radius: 22px;\n  }\n\n  .bm-booking-card h2 {\n    font-size: 28px;\n  }\n}\n<\/style>\n\n<script>\nconst daysGridGrande = document.getElementById(\"bm-days-grid-grande\");\nconst priceTotalGrande = document.getElementById(\"bm-price-total-grande\");\nconst priceDetailGrande = document.getElementById(\"bm-price-detail-grande\");\nconst joursSelectionnesInputGrande = document.getElementById(\"jours_selectionnes_grande\");\nconst prixTotalInputGrande = document.getElementById(\"prix_total_grande\");\n\nconst prixParJourGrande = 50;\n\nconst joursGrande = [\"Dim.\", \"Lun.\", \"Mar.\", \"Mer.\", \"Jeu.\", \"Ven.\", \"Sam.\"];\nconst moisGrande = [\"janv.\", \"f\u00e9vr.\", \"mars\", \"avr.\", \"mai\", \"juin\", \"juil.\", \"ao\u00fbt\", \"sept.\", \"oct.\", \"nov.\", \"d\u00e9c.\"];\n\nfunction formatDateValueGrande(date) {\n  return date.toISOString().split(\"T\")[0];\n}\n\nfunction generateDaysGrande() {\n  const today = new Date();\n\n  for (let i = 0; i < 15; i++) {\n    const date = new Date(today);\n    date.setDate(today.getDate() + i);\n\n    const dayIndex = date.getDay();\n    const isWeekend = dayIndex === 0 || dayIndex === 6;\n\n    const dayName = joursGrande[dayIndex];\n    const dayNumber = date.getDate();\n    const monthName = moisGrande[date.getMonth()];\n    const value = formatDateValueGrande(date);\n\n    const label = document.createElement(\"label\");\n    label.className = isWeekend ? \"bm-day-card bm-disabled\" : \"bm-day-card\";\n\n    label.innerHTML = `\n      <input type=\"checkbox\" name=\"jours[]\" value=\"${value}\" ${isWeekend ? \"disabled\" : \"\"}>\n      <span>\n        <strong>${dayName} ${dayNumber}<\/strong>\n        <small>${isWeekend ? \"Non r\u00e9servable\" : monthName}<\/small>\n      <\/span>\n    `;\n\n    daysGridGrande.appendChild(label);\n  }\n}\n\nfunction updatePriceGrande() {\n  const selectedDays = Array.from(document.querySelectorAll('#bm-booking-form-grande input[name=\"jours[]\"]:checked'));\n  const count = selectedDays.length;\n  const total = count * prixParJourGrande;\n\n  priceTotalGrande.textContent = total + \" \u20ac\";\n\n  if (count === 0) {\n    priceDetailGrande.textContent = \"Aucun jour s\u00e9lectionn\u00e9\";\n  } else if (count === 1) {\n    priceDetailGrande.textContent = \"1 jour s\u00e9lectionn\u00e9 \u00d7 50 \u20ac\";\n  } else {\n    priceDetailGrande.textContent = count + \" jours s\u00e9lectionn\u00e9s \u00d7 50 \u20ac\";\n  }\n\n  joursSelectionnesInputGrande.value = selectedDays.map(day => day.value).join(\", \");\n  prixTotalInputGrande.value = total + \" \u20ac\";\n}\n\ngenerateDaysGrande();\n\ndaysGridGrande.addEventListener(\"change\", updatePriceGrande);\n\ndocument.getElementById(\"bm-booking-form-grande\").addEventListener(\"submit\", async function(e) {\n  e.preventDefault();\n\n  const selectedDays = document.querySelectorAll('#bm-booking-form-grande input[name=\"jours[]\"]:checked');\n\n  if (selectedDays.length === 0) {\n    document.getElementById(\"bm-booking-response-grande\").textContent = \"Merci de s\u00e9lectionner au moins un jour.\";\n    return;\n  }\n\n  const form = e.target;\n  const response = document.getElementById(\"bm-booking-response-grande\");\n  const button = form.querySelector(\"button\");\n\n  response.textContent = \"Envoi en cours...\";\n  button.disabled = true;\n\n  const formData = new FormData(form);\n  formData.append(\"action\", \"bm_send_booking_request\");\n\n  try {\n    const res = await fetch(\"\/wp-admin\/admin-ajax.php\", {\n      method: \"POST\",\n      body: formData\n    });\n\n    const data = await res.json();\n\n    if (data.success) {\n      response.innerHTML = \"Votre demande a bien \u00e9t\u00e9 envoy\u00e9e &#x2705;\";\n      form.reset();\n      updatePriceGrande();\n    } else {\n      response.textContent = \"Une erreur est survenue. Merci de r\u00e9essayer.\";\n    }\n  } catch (error) {\n    response.textContent = \"Erreur d\u2019envoi. Merci de r\u00e9essayer.\";\n  }\n\n  button.disabled = false;\n});\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>BM Dog Sitter Accueil Services et tarifs Avis Album photo \u00c0 propos R\u00e9server BM Dog Sitter R\u00e9server une grande balade S\u00e9lectionnez un ou plusieurs jours pour une grande balade de 3 heures. Choisissez vos jours Simulation du prix 0 \u20ac Aucun jour s\u00e9lectionn\u00e9 Envoyer ma demande<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-172","page","type-page","status-publish"],"_links":{"self":[{"href":"https:\/\/www.bmdogsitter.fr\/index.php?rest_route=\/wp\/v2\/pages\/172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bmdogsitter.fr\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bmdogsitter.fr\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bmdogsitter.fr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bmdogsitter.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=172"}],"version-history":[{"count":6,"href":"https:\/\/www.bmdogsitter.fr\/index.php?rest_route=\/wp\/v2\/pages\/172\/revisions"}],"predecessor-version":[{"id":363,"href":"https:\/\/www.bmdogsitter.fr\/index.php?rest_route=\/wp\/v2\/pages\/172\/revisions\/363"}],"wp:attachment":[{"href":"https:\/\/www.bmdogsitter.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}