{"id":20240,"date":"2026-10-20T13:50:42","date_gmt":"2026-10-20T11:50:42","guid":{"rendered":"https:\/\/deep-space-astronomy.ch\/?page_id=20240"},"modified":"2026-10-24T19:51:07","modified_gmt":"2026-10-24T17:51:07","slug":"bien-choisir","status":"publish","type":"page","link":"https:\/\/deep-space-astronomy.ch\/de\/bien-choisir\/","title":{"rendered":"Die richtige Wahl des Teleskops"},"content":{"rendered":"<div class=\"product\"><div class=\"product\">\n<div id=\"dsa-quiz-page\" data-no-dynamic-translation>\n  <article class=\"advice-guide-page\" id=\"advice-guide-page\" aria-labelledby=\"dsa-quiz-page-title\">\n    <header class=\"advice-page-header\">\n      <span class=\"advice-badge\">Les conseils de Carlos<\/span>\n      <h1 id=\"dsa-quiz-page-title\">Quel instrument choisir ?<\/h1>\n      <p>Quelques questions pour pr\u00e9ciser votre projet. \u00c0 la fin, vous pourrez m\u2019envoyer vos r\u00e9ponses par mail pour en discuter.<\/p>\n    <\/header>\n    <section class=\"advice-wizard\" aria-label=\"Trouver un instrument pour votre projet\">\n      <div id=\"dsa-telescope-quiz\">\n        <noscript><p>Activez JavaScript pour utiliser le quiz, ou <a href=\"\/contact\/\">contactez-moi directement<\/a>.<\/p><\/noscript>\n        <div class=\"dsa-progress-label\" hidden><span id=\"dsa-step-label\">Question 1 sur 5<\/span><span>Sans inscription<\/span><\/div>\n        <div class=\"dsa-progress\" role=\"progressbar\" aria-label=\"Progression du quiz\" aria-valuemin=\"0\" aria-valuemax=\"5\" aria-valuenow=\"1\" hidden><div><\/div><\/div>\n        <div id=\"dsa-question-area\" data-no-translation aria-live=\"polite\" hidden><\/div>\n        <div id=\"dsa-guide-actions\" class=\"dsa-actions\" hidden><button type=\"button\" id=\"dsa-back\" class=\"dsa-quiet\">Retour<\/button><button type=\"button\" id=\"dsa-next\" class=\"dsa-pill\" disabled>Continuer <span aria-hidden=\"true\">\u2192<\/span><\/button><\/div>\n        <section id=\"dsa-result\" data-no-translation aria-live=\"polite\" hidden><\/section>\n      <\/div>\n    <\/section>\n    <footer class=\"advice-publication\">20 ans de pratique et des \u00e9changes avec des centaines de clients<br>Deep Space Astronomy \u00b7 Premi\u00e8re publication le <time datetime=\"2026-10-20\">20 octobre 2026<\/time><\/footer>\n  <\/article>\n<\/div>\n<style id=\"dsa-quiz-layout-css\">\n#dsa-quiz-page{--dsa-blue:#1b273d;--dsa-grey:#3b4559;--dsa-soft:#e2e8f0;--dsa-accent:#b6d9ff;width:100%;padding:38px 24px 30px;min-height:calc(100svh - 220px);background:var(--dsa-blue);color:#fff;color-scheme:dark;font:400 15px\/1.55 Inter,Arial,sans-serif;overflow-wrap:anywhere}\n#dsa-quiz-page *,#dsa-quiz-page *::before,#dsa-quiz-page *::after{box-sizing:border-box}\n#dsa-quiz-page [hidden]{display:none!important}\n#dsa-quiz-page .advice-guide-page{max-width:840px;margin:0 auto}\n#dsa-quiz-page .advice-page-header{max-width:700px;margin:0 auto 24px;text-align:center}\n#dsa-quiz-page .advice-badge{display:inline-block;margin:0 0 10px;color:#fff;font-size:12px;font-weight:500;line-height:1.5}\n#dsa-quiz-page h1,#dsa-quiz-page h2,#dsa-quiz-page h3,#dsa-quiz-page h4{color:#fff;font-family:Inter,Arial,sans-serif;font-weight:600}\n#dsa-quiz-page h1{margin:0 0 10px;font-size:34px;line-height:1.2;letter-spacing:-.7px}\n#dsa-quiz-page .advice-page-header p{max-width:590px;margin:0 auto;font-size:14px;line-height:1.65;color:#fff}\n#dsa-quiz-page .advice-wizard{padding:28px 30px;background:var(--dsa-grey);border-radius:24px}\n#dsa-quiz-page .advice-publication{margin:18px 0 0;text-align:center;font-size:11px;line-height:1.6;color:var(--dsa-soft)}\n#dsa-quiz-page a{color:#fff;text-underline-offset:4px}\n#dsa-telescope-quiz button,#dsa-telescope-quiz input,#dsa-telescope-quiz a{font:inherit}\n#dsa-telescope-quiz button{min-height:44px;color:#fff;cursor:pointer}\n#dsa-telescope-quiz button:focus-visible,#dsa-telescope-quiz a:focus-visible,#dsa-telescope-quiz input:focus-visible{outline:2px solid var(--dsa-accent);outline-offset:4px}\n#dsa-telescope-quiz p{margin:0 0 12px;color:#fff}\n#dsa-telescope-quiz .dsa-progress-label{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;line-height:1.5;color:var(--dsa-soft);margin-bottom:9px}\n#dsa-telescope-quiz .dsa-progress{height:4px;background:#586378;border-radius:12px;overflow:hidden;margin-bottom:24px}\n#dsa-telescope-quiz .dsa-progress>div{height:100%;width:20%;background:var(--dsa-accent);border-radius:12px}\n#dsa-telescope-quiz .dsa-question-fieldset{min-width:0;margin:0;padding:0;border:0}\n#dsa-telescope-quiz .dsa-question-fieldset legend{float:none;width:100%;padding:0;margin:0 0 10px;color:#fff;font-size:24px;line-height:1.3;font-weight:600;letter-spacing:-.4px}\n#dsa-telescope-quiz .dsa-question-help{font-size:13px;line-height:1.6;color:var(--dsa-soft);margin:0 0 16px}\n#dsa-telescope-quiz .dsa-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}\n#dsa-telescope-quiz .dsa-option{display:flex;align-items:flex-start;gap:12px;min-width:0;min-height:91px;padding:15px 16px;background:var(--dsa-blue);border-radius:16px;cursor:pointer;box-shadow:inset 0 0 0 1.5px transparent}\n#dsa-telescope-quiz .dsa-option:has(input:checked){background:#293c56;box-shadow:inset 0 0 0 1.5px var(--dsa-accent)}\n#dsa-telescope-quiz .dsa-option:has(input:focus-visible){outline:2px solid var(--dsa-accent);outline-offset:3px}\n#dsa-telescope-quiz .dsa-option input{appearance:auto;accent-color:#b6d9ff;flex:0 0 18px;width:18px;height:18px;margin:2px 0 0}\n#dsa-telescope-quiz .dsa-option strong{display:block;color:#fff;font-size:15px;line-height:1.35;font-weight:500}\n#dsa-telescope-quiz .dsa-option small{display:block;margin-top:5px;color:#fff;font-size:12px;line-height:1.5;font-weight:400}\n#dsa-telescope-quiz .dsa-actions{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:22px}\n#dsa-telescope-quiz .dsa-pill{display:inline-flex;justify-content:center;align-items:center;gap:14px;min-height:46px;max-width:100%;padding:11px 22px;border:0;border-radius:30px;background:#fff;color:#1b273d;font-size:14px;font-weight:600;line-height:1.5;text-align:center;text-decoration:none;white-space:normal}\n#dsa-telescope-quiz .dsa-pill:disabled{background:#566075;color:#e3e8ef;cursor:default}\n#dsa-telescope-quiz .dsa-pill span{font-weight:400}\n#dsa-telescope-quiz .dsa-quiet{border:0;background:transparent;padding:8px 0;color:#fff;font-size:13px;line-height:1.5;text-decoration:underline;text-underline-offset:4px}\n#dsa-telescope-quiz .dsa-quiet:disabled{visibility:hidden}\n#dsa-telescope-quiz #dsa-result>h2{margin:0 0 14px;font-size:25px;line-height:1.3;letter-spacing:-.4px}\n#dsa-telescope-quiz .dsa-result-summary{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 18px}\n#dsa-telescope-quiz .dsa-chip{background:#2e3a50;padding:5px 10px;border-radius:20px;font-size:11px;line-height:1.5}\n#dsa-telescope-quiz .dsa-result-card{padding:24px;background:var(--dsa-blue);border-radius:18px}\n#dsa-telescope-quiz .dsa-result-top{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}\n#dsa-telescope-quiz .dsa-result-label{font-size:12px;color:var(--dsa-soft)}\n#dsa-telescope-quiz .dsa-pastille{padding:6px 11px;border-radius:20px;background:var(--dsa-grey);font-size:11px;font-weight:500;text-align:center}\n#dsa-telescope-quiz .dsa-result-card h3{margin:0 0 10px;font-size:25px;line-height:1.3;letter-spacing:-.4px}\n#dsa-telescope-quiz .dsa-result-card h3 a{text-decoration:none;font:inherit}\n#dsa-telescope-quiz .dsa-result-card h3 a:hover{text-decoration:underline}\n#dsa-telescope-quiz .dsa-result-card .dsa-result-price{margin:0 0 2px;font-size:23px;font-weight:600;line-height:1.35}\n#dsa-telescope-quiz .dsa-scope{margin:0 0 16px;color:var(--dsa-soft);font-size:12px;line-height:1.6}\n#dsa-telescope-quiz .dsa-result-card p:not(.dsa-result-price){font-size:14px;line-height:1.65}\n#dsa-telescope-quiz .dsa-composition{margin:6px 0 14px}\n#dsa-telescope-quiz .dsa-composition p{font-size:12px!important;margin:4px 0!important}\n#dsa-telescope-quiz details{margin-top:14px}\n#dsa-telescope-quiz summary{min-height:44px;padding:10px 0;font-size:13px;line-height:1.6;font-weight:500;cursor:pointer}\n#dsa-telescope-quiz .dsa-limit{margin:14px 0 0;padding:0;border-top:1px solid #4e5c73}\n#dsa-telescope-quiz .dsa-limit-copy{padding:0 0 10px;font-size:12px;line-height:1.7}\n#dsa-telescope-quiz .dsa-result-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;margin-top:16px}\n#dsa-telescope-quiz .dsa-result-links a:not(.dsa-pill){display:inline-flex;align-items:center;min-height:44px;font-size:13px;line-height:1.5}\n#dsa-telescope-quiz .dsa-return-base{margin-top:12px;text-align:left;font-size:12px}\n#dsa-telescope-quiz .dsa-discussion{padding:24px 0 8px}\n#dsa-telescope-quiz .dsa-discussion h3{margin:0 0 10px;font-size:20px;line-height:1.35;letter-spacing:-.3px}\n#dsa-telescope-quiz .dsa-discussion>p{font-size:13px;line-height:1.7}\n#dsa-telescope-quiz .dsa-discussion .dsa-mail-help{font-size:11px;line-height:1.6;color:var(--dsa-soft);margin-top:12px}\n#dsa-telescope-quiz .dsa-alternatives{margin-top:18px;padding-top:18px;border-top:1px solid #5a6578}\n#dsa-telescope-quiz .dsa-alternatives>h3{margin:0 0 14px;font-size:18px;line-height:1.4}\n#dsa-telescope-quiz .dsa-alternative-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}\n#dsa-telescope-quiz .dsa-alternative{display:flex;flex-direction:column;align-items:flex-start;padding:18px;background:#29364c;border-radius:16px;min-width:0}\n#dsa-telescope-quiz .dsa-alternative .dsa-alt-label{font-size:11px;line-height:1.5;color:var(--dsa-soft);margin:0 0 8px}\n#dsa-telescope-quiz .dsa-alternative h4{margin:0 0 10px;font-size:16px;line-height:1.4;font-weight:500}\n#dsa-telescope-quiz .dsa-alternative .dsa-alt-price{font-size:16px;font-weight:600;margin-bottom:8px}\n#dsa-telescope-quiz .dsa-alt-price span{display:block;font-size:11px;line-height:1.5;font-weight:400;color:var(--dsa-soft);margin-top:3px}\n#dsa-telescope-quiz .dsa-alt-price span::after{content:var(--dsa-price-comparison,'')}\n#dsa-telescope-quiz .dsa-alternative p{font-size:12px;line-height:1.6}\n#dsa-telescope-quiz .dsa-alternative button{margin-top:auto;font-size:12px;text-align:left}\n#dsa-telescope-quiz .dsa-restart-row{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:20px}\n#dsa-telescope-quiz .dsa-footnote{margin:18px 0 0;font-size:11px;line-height:1.65;color:var(--dsa-soft)}\n@media(max-width:600px){#dsa-quiz-page{padding:25px 16px 24px}#dsa-quiz-page .advice-page-header{margin-bottom:21px}#dsa-quiz-page h1{font-size:28px;letter-spacing:-.5px}#dsa-quiz-page .advice-page-header p{font-size:13px;line-height:1.65}#dsa-quiz-page .advice-wizard{padding:22px 20px;border-radius:22px}#dsa-quiz-page .advice-badge{font-size:11px;margin-bottom:8px}#dsa-telescope-quiz .dsa-progress{margin-bottom:22px}#dsa-telescope-quiz .dsa-question-fieldset legend{font-size:22px}#dsa-telescope-quiz .dsa-options{grid-template-columns:1fr}#dsa-telescope-quiz .dsa-option{min-height:74px;padding:13px 14px}#dsa-telescope-quiz .dsa-option strong{font-size:14px}#dsa-telescope-quiz .dsa-option small{font-size:12px;line-height:1.5}#dsa-telescope-quiz .dsa-question-help{font-size:12px}#dsa-telescope-quiz .dsa-result-card{padding:19px}#dsa-telescope-quiz .dsa-result-card h3{font-size:22px}#dsa-telescope-quiz #dsa-result>h2{font-size:23px}#dsa-telescope-quiz .dsa-result-top{align-items:flex-start;flex-direction:column;gap:8px}#dsa-telescope-quiz .dsa-alternative-grid{grid-template-columns:1fr}#dsa-telescope-quiz .dsa-result-links{align-items:stretch;flex-direction:column;gap:6px}#dsa-telescope-quiz .dsa-result-links a:not(.dsa-pill){justify-content:center;text-align:center}#dsa-telescope-quiz .dsa-restart-row{align-items:flex-start;flex-direction:column;gap:6px}}\n@media(max-width:359px){#dsa-quiz-page{padding-inline:12px}#dsa-quiz-page .advice-wizard{padding-inline:16px}#dsa-quiz-page h1{font-size:26px}#dsa-telescope-quiz .dsa-pill{padding-inline:17px;font-size:13px}#dsa-telescope-quiz .dsa-option{gap:10px;padding-inline:12px}}\n<\/style>\n<script data-nowprocket>\n(() => {\n  'use strict';\n  const layout = document.getElementById('dsa-quiz-page');\n  const root = layout?.querySelector('#dsa-telescope-quiz');\n  if (!root || root.dataset.initialized === 'true') return;\n  const questionArea = root.querySelector('#dsa-question-area');\n  const resultArea = root.querySelector('#dsa-result');\n  const next = root.querySelector('#dsa-next');\n  const back = root.querySelector('#dsa-back');\n  const actions = root.querySelector('#dsa-guide-actions');\n  const progressLabel = root.querySelector('.dsa-progress-label');\n  const progress = root.querySelector('.dsa-progress');\n  const stepLabel = root.querySelector('#dsa-step-label');\n  if (!questionArea || !resultArea || !next || !back || !actions || !progressLabel || !progress || !stepLabel) return;\n  root.dataset.initialized = 'true';\n\n  \/\/ The URL defines the selected site language; a stale language cookie must not override it.\n  const localeMap = {fr: 'fr_FR', en: 'en_US', de: 'de_CH'};\n  const documentCode = (document.documentElement.lang || '').toLowerCase().replace('_', '-').split('-')[0];\n  const documentLanguage = localeMap[documentCode] || null;\n  const pathCode = window.location.pathname.match(\/^\\\/(fr|en|de)(?=\\\/|$)\/i)?.[1]?.toLowerCase() || 'fr';\n  const pathLanguage = localeMap[pathCode];\n  const language = documentLanguage === pathLanguage ? documentLanguage : pathLanguage;\n  const copy = {\n    fr_FR: {\n      htmlLanguage: 'fr-CH', badge: 'Les conseils de Carlos', title: 'Quel instrument choisir ?',\n      introduction: 'Quelques questions pour pr\u00e9ciser votre projet. \u00c0 la fin, vous pourrez m\u2019envoyer vos r\u00e9ponses par mail pour en discuter.',\n      wizardLabel: 'Trouver un instrument pour votre projet', progressLabel: 'Progression du quiz',\n      noRegistration: 'Sans inscription', step: 'Question {current} sur {total}',\n      back: 'Retour', next: 'Continuer', recommendation: 'Voir mon conseil',\n      loading: 'Un instant, je pr\u00e9pare la suite\u2026',\n      expired: 'Cette session du quiz n\u2019est plus disponible. Vous pouvez recommencer ou me contacter pour parler de votre projet.',\n      rateLimit: 'Le quiz a re\u00e7u plusieurs demandes en peu de temps. Patientez un instant, puis r\u00e9essayez.',\n      loadError: 'Le quiz n\u2019a pas pu charger la suite. R\u00e9essayez dans un instant.',\n      connectionError: 'La connexion a \u00e9t\u00e9 interrompue. Vos r\u00e9ponses d\u00e9j\u00e0 enregistr\u00e9es sont conserv\u00e9es pour cette session. Vous pouvez r\u00e9essayer.',\n      restart: 'Recommencer le quiz', retry: 'R\u00e9essayer', contact: 'Me contacter', contactUrl: '\/contact\/',\n      experience: '20 ans de pratique et des \u00e9changes avec des centaines de clients',\n      publication: 'Deep Space Astronomy \u00b7 Premi\u00e8re publication le ', publicationDate: '20 octobre 2026',\n      priceComparison: ' par rapport au premier choix'\n    },\n    en_US: {\n      htmlLanguage: 'en-US', badge: 'Advice from Carlos', title: 'Which telescope should you choose?',\n      introduction: 'A few questions to help define your project. At the end, you can email me your answers so we can discuss them.',\n      wizardLabel: 'Find the right telescope for your project', progressLabel: 'Quiz progress',\n      noRegistration: 'No registration required', step: 'Question {current} of {total}',\n      back: 'Back', next: 'Continue', recommendation: 'See my recommendation',\n      loading: 'One moment, I\u2019m preparing the next step\u2026',\n      expired: 'This quiz session is no longer available. You can start again or contact me to discuss your project.',\n      rateLimit: 'The quiz has received several requests in a short time. Please wait a moment and try again.',\n      loadError: 'The quiz could not load the next step. Please try again in a moment.',\n      connectionError: 'The connection was interrupted. Your saved answers are kept for this session. You can try again.',\n      restart: 'Start the quiz again', retry: 'Try again', contact: 'Contact me', contactUrl: '\/en\/contact\/',\n      experience: '20 years of hands-on experience and conversations with hundreds of customers',\n      publication: 'Deep Space Astronomy \u00b7 First published on ', publicationDate: 'October 20, 2026',\n      priceComparison: ' compared with the first choice'\n    },\n    de_CH: {\n      htmlLanguage: 'de-CH', badge: 'Tipps von Carlos', title: 'Welches Teleskop passt zu Ihnen?',\n      introduction: 'Ein paar Fragen, um Ihr Vorhaben genauer zu bestimmen. Am Ende k\u00f6nnen Sie mir Ihre Antworten per E-Mail senden, damit wir sie gemeinsam besprechen k\u00f6nnen.',\n      wizardLabel: 'Das passende Teleskop f\u00fcr Ihr Vorhaben finden', progressLabel: 'Fortschritt im Quiz',\n      noRegistration: 'Keine Registrierung erforderlich', step: 'Frage {current} von {total}',\n      back: 'Zur\u00fcck', next: 'Weiter', recommendation: 'Empfehlung ansehen',\n      loading: 'Einen Moment, ich bereite den n\u00e4chsten Schritt vor\u2026',\n      expired: 'Diese Quiz-Sitzung ist nicht mehr verf\u00fcgbar. Sie k\u00f6nnen neu beginnen oder mich kontaktieren, um Ihr Vorhaben zu besprechen.',\n      rateLimit: 'Das Quiz hat in kurzer Zeit mehrere Anfragen erhalten. Bitte warten Sie einen Moment und versuchen Sie es erneut.',\n      loadError: 'Der n\u00e4chste Schritt konnte nicht geladen werden. Bitte versuchen Sie es gleich noch einmal.',\n      connectionError: 'Die Verbindung wurde unterbrochen. Ihre gespeicherten Antworten bleiben f\u00fcr diese Sitzung erhalten. Sie k\u00f6nnen es erneut versuchen.',\n      restart: 'Quiz neu beginnen', retry: 'Erneut versuchen', contact: 'Kontakt aufnehmen', contactUrl: '\/de\/contact\/',\n      experience: '20 Jahre praktische Erfahrung und Gespr\u00e4che mit Hunderten von Kunden',\n      publication: 'Deep Space Astronomy \u00b7 Erstmals ver\u00f6ffentlicht am ', publicationDate: '20. Oktober 2026',\n      priceComparison: ' im Vergleich zur ersten Wahl'\n    }\n  }[language];\n  \/\/ Dynamic content is already localized by this client and the quiz API.\n  layout.lang = copy.htmlLanguage;\n  root.lang = copy.htmlLanguage;\n  root.dataset.language = language;\n  layout.style.setProperty('--dsa-price-comparison', JSON.stringify(copy.priceComparison));\n  layout.querySelector('.advice-badge').textContent = copy.badge;\n  layout.querySelector('#dsa-quiz-page-title').textContent = copy.title;\n  layout.querySelector('.advice-page-header p').textContent = copy.introduction;\n  layout.querySelector('.advice-wizard').setAttribute('aria-label', copy.wizardLabel);\n  progress.setAttribute('aria-label', copy.progressLabel);\n  progressLabel.lastElementChild.textContent = copy.noRegistration;\n  back.textContent = copy.back;\n  next.firstChild.textContent = copy.next + ' ';\n  const publication = layout.querySelector('.advice-publication');\n  publication.replaceChildren(document.createTextNode(copy.experience), document.createElement('br'), document.createTextNode(copy.publication));\n  const publicationDate = document.createElement('time');\n  publicationDate.dateTime = '2026-10-20';\n  publicationDate.textContent = copy.publicationDate;\n  publication.append(publicationDate);\n\n  const endpoint = '\/wp-json\/dsa-quiz\/v1\/flow';\n  const escape = value => String(value ?? '').replace(\/[&<>\"']\/g, char => ({'&': '&amp;', '<': '&lt;', '>': '&gt;', '\"': '&quot;', \"'\": '&#39;'}[char]));\n  let current = null;\n  let busy = false;\n  let failedRequest = null;\n  let restartRequired = false;\n  const disabledBeforeRequest = new Map();\n  const status = document.createElement('p');\n  status.className = 'dsa-question-help';\n  status.setAttribute('role', 'status');\n  status.setAttribute('aria-live', 'polite');\n  status.hidden = true;\n  const error = document.createElement('div');\n  error.className = 'dsa-discussion';\n  error.setAttribute('role', 'alert');\n  error.hidden = true;\n  root.prepend(status);\n  root.append(error);\n\n  function focusHeading(target) {\n    if (!target) return;\n    target.style.scrollMarginTop = window.matchMedia('(max-width:1024px)').matches ? '190px' : '110px';\n    target.focus({preventScroll: true});\n    target.scrollIntoView({block: 'start', behavior: 'auto'});\n  }\n\n  function setBusy(value) {\n    busy = value;\n    root.setAttribute('aria-busy', String(value));\n    status.hidden = !value;\n    status.textContent = value ? copy.loading : '';\n    if (value) {\n      disabledBeforeRequest.clear();\n      root.querySelectorAll('button, input').forEach(control => {\n        disabledBeforeRequest.set(control, control.disabled);\n        control.disabled = true;\n      });\n    } else {\n      disabledBeforeRequest.forEach((wasDisabled, control) => {\n        if (control.isConnected) control.disabled = wasDisabled;\n      });\n      disabledBeforeRequest.clear();\n    }\n  }\n\n  function updateMailLinks(href) {\n    if (typeof href !== 'string' || !\/^mailto:\/i.test(href)) return;\n    layout.querySelectorAll('[data-quiz-mail]').forEach(link => link.setAttribute('href', href));\n  }\n\n  function render(data, moveFocus) {\n    current = data;\n    restartRequired = false;\n    error.hidden = true;\n    error.replaceChildren();\n    const isQuestion = data.view === 'question';\n    progressLabel.hidden = !isQuestion;\n    progress.hidden = !isQuestion;\n    questionArea.hidden = !isQuestion;\n    actions.hidden = !isQuestion;\n    resultArea.hidden = isQuestion;\n    if (isQuestion) {\n      const item = data.question;\n      stepLabel.textContent = copy.step.replace('{current}', String(data.step + 1)).replace('{total}', String(data.total));\n      progress.setAttribute('aria-valuemax', String(data.total));\n      progress.setAttribute('aria-valuenow', String(data.step + 1));\n      progress.firstElementChild.style.width = ((data.step + 1) \/ data.total * 100) + '%';\n      questionArea.innerHTML = '<fieldset class=\"dsa-question-fieldset\" aria-describedby=\"dsa-question-help\"><legend id=\"dsa-question-title\" tabindex=\"-1\">' + escape(item.title) + '<\/legend><p id=\"dsa-question-help\" class=\"dsa-question-help\">' + escape(item.help) + '<\/p><div class=\"dsa-options\">' + item.items.map(option => '<label class=\"dsa-option\"><input type=\"radio\" name=\"dsa-current-answer\" value=\"' + escape(option.value) + '\"' + (item.selected === option.value ? ' checked' : '') + '><span><strong>' + escape(option.label) + '<\/strong><small>' + escape(option.help) + '<\/small><\/span><\/label>').join('') + '<\/div><\/fieldset>';\n      resultArea.replaceChildren();\n      back.disabled = data.step === 0;\n      next.disabled = !questionArea.querySelector('input:checked');\n      next.innerHTML = (data.step === data.total - 1 ? copy.recommendation : copy.next) + ' <span aria-hidden=\"true\">\u2192<\/span>';\n      if (moveFocus) focusHeading(questionArea.querySelector('legend'));\n    } else {\n      questionArea.replaceChildren();\n      resultArea.innerHTML = data.resultHtml;\n      if (moveFocus) focusHeading(resultArea.querySelector('#dsa-result-heading, h2'));\n    }\n    updateMailLinks(data.mailto);\n  }\n\n  function validateResponse(data) {\n    if (!data || data.language !== language || !\/^[a-f0-9]{64}$\/i.test(data.token || '') || !Number.isSafeInteger(data.revision) || 0 > data.revision) return false;\n    if (data.view === 'result') return typeof data.resultHtml === 'string';\n    const item = data.question;\n    return data.view === 'question' && Number.isSafeInteger(data.step) && Number.isSafeInteger(data.total) && data.total > 0 && data.step >= 0 && data.total > data.step && item && typeof item.key === 'string' && typeof item.title === 'string' && Array.isArray(item.items) && item.items.length > 0 && item.items.every(option => typeof option.value === 'string' && typeof option.label === 'string');\n  }\n\n  function showError(statusCode, invalidResponse) {\n    restartRequired = statusCode === 409 || statusCode === 410;\n    if (restartRequired) {\n      questionArea.hidden = true;\n      resultArea.hidden = true;\n      actions.hidden = true;\n      progressLabel.hidden = true;\n      progress.hidden = true;\n    }\n    const message = restartRequired ? copy.expired : statusCode === 429 ? copy.rateLimit : invalidResponse || statusCode ? copy.loadError : copy.connectionError;\n    error.innerHTML = '<p tabindex=\"-1\">' + escape(message) + '<\/p><div class=\"dsa-result-links\"><button type=\"button\" class=\"dsa-pill\" ' + (restartRequired ? 'data-session-restart>' + escape(copy.restart) : 'data-retry>' + escape(copy.retry)) + '<\/button><a href=\"' + escape(copy.contactUrl) + '\">' + escape(copy.contact) + '<\/a><\/div>';\n    error.hidden = false;\n    focusHeading(error.querySelector('p'));\n  }\n\n  async function request(payload, moveFocus = true) {\n    if (busy) return;\n    error.hidden = true;\n    setBusy(true);\n    let responseData = null;\n    let failure = null;\n    const controller = new AbortController();\n    const timeout = window.setTimeout(() => controller.abort(), 25000);\n    try {\n      const response = await fetch(endpoint, {\n        method: 'POST', credentials: 'omit', cache: 'no-store',\n        headers: {'Content-Type': 'application\/json', 'Accept': 'application\/json'},\n        body: JSON.stringify({...payload, language}), signal: controller.signal\n      });\n      let data;\n      try { data = await response.json(); } catch (_) {\n        throw {status: response.status, invalidResponse: true};\n      }\n      if (!response.ok) throw {status: Number(data?.data?.status) || response.status};\n      if (!validateResponse(data)) throw {status: 0, invalidResponse: true};\n      responseData = data;\n    } catch (caught) {\n      failure = caught;\n      failedRequest = payload;\n    } finally {\n      window.clearTimeout(timeout);\n      setBusy(false);\n    }\n    if (failure) showError(Number(failure.status) || 0, failure.invalidResponse === true);\n    else {\n      failedRequest = null;\n      render(responseData, moveFocus);\n    }\n  }\n\n  function sendAction(action, extra = {}) {\n    if (busy || restartRequired || !current) return;\n    request({action, token: current.token, revision: current.revision, ...extra});\n  }\n\n  questionArea.addEventListener('change', event => {\n    if (!busy && event.target.matches('input[type=\"radio\"]')) next.disabled = false;\n  });\n  next.addEventListener('click', () => {\n    const selected = questionArea.querySelector('input:checked');\n    if (current?.view !== 'question' || !selected) return;\n    sendAction('answer', {key: current.question.key, value: selected.value});\n  });\n  back.addEventListener('click', () => sendAction('back'));\n  root.addEventListener('click', event => {\n    const button = event.target.closest('button');\n    if (!button || !root.contains(button) || busy) return;\n    if (button.hasAttribute('data-session-restart')) {\n      request({action: 'start'});\n    } else if (button.hasAttribute('data-retry')) {\n      if (failedRequest) request(failedRequest);\n    } else if (button.hasAttribute('data-choice')) {\n      sendAction('choose', {choice: button.dataset.choice});\n    } else if (button.hasAttribute('data-base')) {\n      sendAction('base');\n    } else if (button.hasAttribute('data-edit')) {\n      sendAction('edit');\n    } else if (button.hasAttribute('data-restart')) {\n      sendAction('restart');\n    }\n  });\n  request({action: 'start'}, false);\n})();\n<\/script>\n<script type=\"application\/ld+json\">{\"@context\":\"https:\/\/schema.org\",\"@type\":\"CreativeWork\",\"@id\":\"https:\/\/deep-space-astronomy.ch\/bien-choisir\/#quiz\",\"url\":\"https:\/\/deep-space-astronomy.ch\/bien-choisir\/\",\"name\":\"Quel instrument choisir ? Le quiz Deep Space\",\"datePublished\":\"2026-10-20\",\"inLanguage\":\"fr-CH\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Deep Space Astronomy\",\"url\":\"https:\/\/deep-space-astronomy.ch\/\"}}<\/script>\n\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Les conseils de Carlos Quel instrument choisir ? Quelques questions pour pr\u00e9ciser votre projet. \u00c0 la fin, vous pourrez m\u2019envoyer vos r\u00e9ponses par mail pour en discuter. Activez JavaScript pour utiliser le quiz, ou contactez-moi directement. Question 1 sur 5Sans inscription RetourContinuer \u2192 20 ans de pratique et des \u00e9changes avec des centaines de clientsDeep [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"footnotes":""},"class_list":["post-20240","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/deep-space-astronomy.ch\/de\/wp-json\/wp\/v2\/pages\/20240","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deep-space-astronomy.ch\/de\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/deep-space-astronomy.ch\/de\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/deep-space-astronomy.ch\/de\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/deep-space-astronomy.ch\/de\/wp-json\/wp\/v2\/comments?post=20240"}],"version-history":[{"count":7,"href":"https:\/\/deep-space-astronomy.ch\/de\/wp-json\/wp\/v2\/pages\/20240\/revisions"}],"predecessor-version":[{"id":20330,"href":"https:\/\/deep-space-astronomy.ch\/de\/wp-json\/wp\/v2\/pages\/20240\/revisions\/20330"}],"wp:attachment":[{"href":"https:\/\/deep-space-astronomy.ch\/de\/wp-json\/wp\/v2\/media?parent=20240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}